From b28e18997fa587317a203a44dfcf1b7e030a12d7 Mon Sep 17 00:00:00 2001 From: Ashley C Date: Tue, 31 Aug 2021 19:22:45 +0100 Subject: [PATCH 1/8] Bump Vega protos to latest --- .../cpp/generated/api/trading.grpc.pb.cc | 3011 +- .../cpp/generated/api/trading.grpc.pb.h | 14937 +- grpc/clients/cpp/generated/api/trading.pb.cc | 37857 +---- grpc/clients/cpp/generated/api/trading.pb.h | 34721 +---- grpc/clients/cpp/generated/chain_events.pb.cc | 1198 +- grpc/clients/cpp/generated/chain_events.pb.h | 4530 +- .../cpp/generated/commands/v1/commands.pb.cc | 247 +- .../cpp/generated/commands/v1/commands.pb.h | 216 +- .../generated/commands/v1/transaction.pb.cc | 106 +- .../generated/commands/v1/transaction.pb.h | 87 + .../commands/v1/validator_commands.pb.cc | 239 +- .../commands/v1/validator_commands.pb.h | 286 +- .../generated/coreapi/v1/coreapi.grpc.pb.cc | 426 + .../generated/coreapi/v1/coreapi.grpc.pb.h | 1904 + .../cpp/generated/coreapi/v1/coreapi.pb.cc | 4764 + .../cpp/generated/coreapi/v1/coreapi.pb.h | 4344 + .../cpp/generated/events/v1/events.pb.cc | 2346 +- .../cpp/generated/events/v1/events.pb.h | 6538 +- .../generated/snapshot/v1/snapshot.grpc.pb.cc | 29 + .../generated/snapshot/v1/snapshot.grpc.pb.h | 38 + .../cpp/generated/snapshot/v1/snapshot.pb.cc | 2892 + .../cpp/generated/snapshot/v1/snapshot.pb.h | 3052 + grpc/clients/cpp/generated/vega.pb.cc | 8816 +- grpc/clients/cpp/generated/vega.pb.h | 13768 +- .../cpp/generated/wallet/v1/wallet.pb.cc | 2 +- .../vega/proto/api/trading.pb.go | 11255 +- .../vega/proto/api/trading.validator.pb.go | 1043 +- .../vega/proto/api/trading_grpc.pb.go | 3266 +- .../vega/proto/chain_events.pb.go | 353 +- .../vega/proto/chain_events.validator.pb.go | 23 + .../vega/proto/commands/v1/commands.pb.go | 133 +- .../commands/v1/commands.validator.pb.go | 3 + .../vega/proto/commands/v1/transaction.pb.go | 90 +- .../commands/v1/transaction.validator.pb.go | 7 + .../commands/v1/validator_commands.pb.go | 167 +- .../v1/validator_commands.validator.pb.go | 16 + .../vega/proto/coreapi/v1/coreapi.pb.go | 1446 + .../proto/coreapi/v1/coreapi.validator.pb.go | 140 + .../vega/proto/coreapi/v1/coreapi_grpc.pb.go | 390 + .../vega/proto/events/v1/events.pb.go | 1742 +- .../proto/events/v1/events.validator.pb.go | 41 +- .../vega/proto/snapshot/v1/snapshot.pb.go | 878 + .../snapshot/v1/snapshot.validator.pb.go | 96 + .../vega/proto/vega.pb.go | 4789 +- .../vega/proto/vega.validator.pb.go | 103 +- .../src/io/vegaprotocol/vega/ChainEvents.java | 3335 +- .../src/io/vegaprotocol/vega/Vega.java | 49979 ++++--- .../src/io/vegaprotocol/vega/api/Trading.java | 112569 +-------------- .../vega/api/TradingDataServiceGrpc.java | 5629 - .../vega/api/TradingServiceGrpc.java | 812 +- .../vega/commands/v1/Commands.java | 518 +- .../commands/v1/TransactionOuterClass.java | 316 +- .../vega/commands/v1/ValidatorCommands.java | 882 +- .../vega/coreapi/v1/CoreApiServiceGrpc.java | 867 + .../vegaprotocol/vega/coreapi/v1/Coreapi.java | 14024 ++ .../vegaprotocol/vega/events/v1/Events.java | 6078 +- .../vega/snapshot/v1/SnapshotOuterClass.java | 8600 ++ .../js/generated/api/trading_grpc_pb.d.ts | 495 +- .../js/generated/api/trading_grpc_pb.js | 226 + grpc/clients/js/generated/api/trading_pb.d.ts | 3650 +- grpc/clients/js/generated/api/trading_pb.js | 26218 +--- .../js/generated/api/trading_pb_service.d.ts | 1359 - .../js/generated/api/trading_pb_service.js | 3162 - grpc/clients/js/generated/assets_grpc_pb.d.ts | 1 - grpc/clients/js/generated/assets_grpc_pb.js | 1 + grpc/clients/js/generated/assets_pb.d.ts | 196 +- .../js/generated/assets_pb_service.d.ts | 3 - .../clients/js/generated/assets_pb_service.js | 3 - .../js/generated/chain_events_grpc_pb.d.ts | 1 - .../js/generated/chain_events_grpc_pb.js | 1 + .../clients/js/generated/chain_events_pb.d.ts | 892 +- grpc/clients/js/generated/chain_events_pb.js | 795 + .../js/generated/chain_events_pb_service.d.ts | 3 - .../js/generated/chain_events_pb_service.js | 3 - .../commands/v1/commands_grpc_pb.d.ts | 1 - .../generated/commands/v1/commands_grpc_pb.js | 1 + .../js/generated/commands/v1/commands_pb.d.ts | 527 +- .../js/generated/commands/v1/commands_pb.js | 176 + .../commands/v1/commands_pb_service.d.ts | 3 - .../commands/v1/commands_pb_service.js | 3 - .../commands/v1/oracles_grpc_pb.d.ts | 1 - .../generated/commands/v1/oracles_grpc_pb.js | 1 + .../js/generated/commands/v1/oracles_pb.d.ts | 52 +- .../commands/v1/oracles_pb_service.d.ts | 3 - .../commands/v1/oracles_pb_service.js | 3 - .../commands/v1/transaction_grpc_pb.d.ts | 1 - .../commands/v1/transaction_grpc_pb.js | 1 + .../generated/commands/v1/transaction_pb.d.ts | 387 +- .../generated/commands/v1/transaction_pb.js | 58 +- .../commands/v1/transaction_pb_service.d.ts | 3 - .../commands/v1/transaction_pb_service.js | 3 - .../v1/validator_commands_grpc_pb.d.ts | 1 - .../commands/v1/validator_commands_grpc_pb.js | 1 + .../commands/v1/validator_commands_pb.d.ts | 265 +- .../commands/v1/validator_commands_pb.js | 182 +- .../v1/validator_commands_pb_service.d.ts | 3 - .../v1/validator_commands_pb_service.js | 3 - .../generated/coreapi/v1/coreapi_grpc_pb.d.ts | 182 + .../generated/coreapi/v1/coreapi_grpc_pb.js | 313 + .../js/generated/coreapi/v1/coreapi_pb.d.ts | 425 + .../js/generated/coreapi/v1/coreapi_pb.js | 3337 + .../generated/events/v1/events_grpc_pb.d.ts | 1 - .../js/generated/events/v1/events_grpc_pb.js | 1 + .../js/generated/events/v1/events_pb.d.ts | 1578 +- .../js/generated/events/v1/events_pb.js | 1415 +- .../events/v1/events_pb_service.d.ts | 3 - .../generated/events/v1/events_pb_service.js | 3 - .../validator_grpc_pb.d.ts | 1 - .../go-proto-validators/validator_grpc_pb.js | 1 + .../go-proto-validators/validator_pb.d.ts | 278 +- .../validator_pb_service.d.ts | 3 - .../validator_pb_service.js | 3 - .../js/generated/governance_grpc_pb.d.ts | 1 - .../js/generated/governance_grpc_pb.js | 1 + grpc/clients/js/generated/governance_pb.d.ts | 930 +- .../js/generated/governance_pb_service.d.ts | 3 - .../js/generated/governance_pb_service.js | 3 - .../clients/js/generated/markets_grpc_pb.d.ts | 1 - grpc/clients/js/generated/markets_grpc_pb.js | 1 + grpc/clients/js/generated/markets_pb.d.ts | 1163 +- .../js/generated/markets_pb_service.d.ts | 3 - .../js/generated/markets_pb_service.js | 3 - .../js/generated/oracles/v1/data_grpc_pb.d.ts | 1 - .../js/generated/oracles/v1/data_grpc_pb.js | 1 + .../js/generated/oracles/v1/data_pb.d.ts | 96 +- .../generated/oracles/v1/data_pb_service.d.ts | 3 - .../generated/oracles/v1/data_pb_service.js | 3 - .../js/generated/oracles/v1/spec_grpc_pb.d.ts | 1 - .../js/generated/oracles/v1/spec_grpc_pb.js | 1 + .../js/generated/oracles/v1/spec_pb.d.ts | 291 +- .../generated/oracles/v1/spec_pb_service.d.ts | 3 - .../generated/oracles/v1/spec_pb_service.js | 3 - .../generated/snapshot/v1/snapshot_grpc_pb.js | 1 + .../js/generated/snapshot/v1/snapshot_pb.d.ts | 278 + .../js/generated/snapshot/v1/snapshot_pb.js | 2295 + .../js/generated/tm/replay_grpc_pb.d.ts | 1 - .../clients/js/generated/tm/replay_grpc_pb.js | 1 + grpc/clients/js/generated/tm/replay_pb.d.ts | 1061 +- .../js/generated/tm/replay_pb_service.d.ts | 3 - .../js/generated/tm/replay_pb_service.js | 3 - grpc/clients/js/generated/vega_grpc_pb.d.ts | 1 - grpc/clients/js/generated/vega_grpc_pb.js | 1 + grpc/clients/js/generated/vega_pb.d.ts | 3362 +- grpc/clients/js/generated/vega_pb.js | 8430 +- .../clients/js/generated/vega_pb_service.d.ts | 3 - grpc/clients/js/generated/vega_pb_service.js | 3 - .../generated/wallet/v1/wallet_grpc_pb.d.ts | 1 - .../js/generated/wallet/v1/wallet_grpc_pb.js | 1 + .../js/generated/wallet/v1/wallet_pb.d.ts | 247 +- .../wallet/v1/wallet_pb_service.d.ts | 3 - .../generated/wallet/v1/wallet_pb_service.js | 3 - grpc/clients/js/index.d.ts | 34 +- grpc/clients/js/index.js | 62 +- .../generated/api/trading_pb2.py | 7309 +- .../generated/api/trading_pb2_grpc.py | 2544 +- .../generated/chain_events_pb2.py | 198 +- .../generated/commands/v1/commands_pb2.py | 42 +- .../generated/commands/v1/transaction_pb2.py | 23 +- .../commands/v1/validator_commands_pb2.py | 63 +- .../generated/coreapi/v1/coreapi_pb2.py | 947 + .../generated/coreapi/v1/coreapi_pb2_grpc.py | 330 + .../generated/events/v1/events_pb2.py | 472 +- .../generated/snapshot/v1/snapshot_pb2.py | 533 + .../snapshot/v1/snapshot_pb2_grpc.py | 4 + .../vegaapiclient/generated/vega_pb2.py | 1339 +- grpc/doc/doc.json | 14750 +- grpc/doc/index.html | 16036 +- grpc/doc/index.md | 3080 +- proto/api/trading.proto | 1256 +- proto/chain_events.proto | 38 + proto/commands/v1/commands.proto | 7 +- proto/commands/v1/transaction.proto | 3 + proto/commands/v1/validator_commands.proto | 14 +- proto/coreapi/v1/coreapi.proto | 102 + proto/events/v1/events.proto | 239 +- proto/from.txt | 2 +- proto/snapshot/v1/snapshot.proto | 73 + proto/vega.proto | 233 +- rest/api/trading.swagger.json | 4188 +- rest/grpc-rest-bindings.yml | 173 +- 180 files changed, 161062 insertions(+), 333418 deletions(-) create mode 100644 grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc create mode 100644 grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h create mode 100644 grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc create mode 100644 grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h create mode 100644 grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.cc create mode 100644 grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.h create mode 100644 grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc create mode 100644 grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h create mode 100644 grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go create mode 100644 grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go create mode 100644 grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go create mode 100644 grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.pb.go create mode 100644 grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.validator.pb.go delete mode 100644 grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingDataServiceGrpc.java create mode 100644 grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java create mode 100644 grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java create mode 100644 grpc/clients/java/generated/src/io/vegaprotocol/vega/snapshot/v1/SnapshotOuterClass.java create mode 100644 grpc/clients/js/generated/api/trading_grpc_pb.js delete mode 100644 grpc/clients/js/generated/api/trading_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/api/trading_pb_service.js delete mode 100644 grpc/clients/js/generated/assets_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/assets_grpc_pb.js delete mode 100644 grpc/clients/js/generated/assets_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/assets_pb_service.js delete mode 100644 grpc/clients/js/generated/chain_events_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/chain_events_grpc_pb.js delete mode 100644 grpc/clients/js/generated/chain_events_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/chain_events_pb_service.js delete mode 100644 grpc/clients/js/generated/commands/v1/commands_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/commands/v1/commands_grpc_pb.js delete mode 100644 grpc/clients/js/generated/commands/v1/commands_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/commands/v1/commands_pb_service.js delete mode 100644 grpc/clients/js/generated/commands/v1/oracles_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/commands/v1/oracles_grpc_pb.js delete mode 100644 grpc/clients/js/generated/commands/v1/oracles_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/commands/v1/oracles_pb_service.js delete mode 100644 grpc/clients/js/generated/commands/v1/transaction_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/commands/v1/transaction_grpc_pb.js delete mode 100644 grpc/clients/js/generated/commands/v1/transaction_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/commands/v1/transaction_pb_service.js delete mode 100644 grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.js delete mode 100644 grpc/clients/js/generated/commands/v1/validator_commands_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/commands/v1/validator_commands_pb_service.js create mode 100644 grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js create mode 100644 grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts create mode 100644 grpc/clients/js/generated/coreapi/v1/coreapi_pb.js delete mode 100644 grpc/clients/js/generated/events/v1/events_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/events/v1/events_grpc_pb.js delete mode 100644 grpc/clients/js/generated/events/v1/events_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/events/v1/events_pb_service.js delete mode 100644 grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.js delete mode 100644 grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.js delete mode 100644 grpc/clients/js/generated/governance_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/governance_grpc_pb.js delete mode 100644 grpc/clients/js/generated/governance_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/governance_pb_service.js delete mode 100644 grpc/clients/js/generated/markets_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/markets_grpc_pb.js delete mode 100644 grpc/clients/js/generated/markets_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/markets_pb_service.js delete mode 100644 grpc/clients/js/generated/oracles/v1/data_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/oracles/v1/data_grpc_pb.js delete mode 100644 grpc/clients/js/generated/oracles/v1/data_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/oracles/v1/data_pb_service.js delete mode 100644 grpc/clients/js/generated/oracles/v1/spec_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/oracles/v1/spec_grpc_pb.js delete mode 100644 grpc/clients/js/generated/oracles/v1/spec_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/oracles/v1/spec_pb_service.js create mode 100644 grpc/clients/js/generated/snapshot/v1/snapshot_grpc_pb.js create mode 100644 grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts create mode 100644 grpc/clients/js/generated/snapshot/v1/snapshot_pb.js delete mode 100644 grpc/clients/js/generated/tm/replay_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/tm/replay_grpc_pb.js delete mode 100644 grpc/clients/js/generated/tm/replay_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/tm/replay_pb_service.js delete mode 100644 grpc/clients/js/generated/vega_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/vega_grpc_pb.js delete mode 100644 grpc/clients/js/generated/vega_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/vega_pb_service.js delete mode 100644 grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.d.ts create mode 100644 grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.js delete mode 100644 grpc/clients/js/generated/wallet/v1/wallet_pb_service.d.ts delete mode 100644 grpc/clients/js/generated/wallet/v1/wallet_pb_service.js create mode 100644 grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py create mode 100644 grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py create mode 100644 grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py create mode 100644 grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2_grpc.py create mode 100644 proto/coreapi/v1/coreapi.proto create mode 100644 proto/snapshot/v1/snapshot.proto diff --git a/grpc/clients/cpp/generated/api/trading.grpc.pb.cc b/grpc/clients/cpp/generated/api/trading.grpc.pb.cc index de393278..df78bd99 100644 --- a/grpc/clients/cpp/generated/api/trading.grpc.pb.cc +++ b/grpc/clients/cpp/generated/api/trading.grpc.pb.cc @@ -23,16 +23,12 @@ namespace api { namespace v1 { static const char* TradingService_method_names[] = { - "/api.v1.TradingService/PrepareSubmitOrder", - "/api.v1.TradingService/PrepareCancelOrder", - "/api.v1.TradingService/PrepareAmendOrder", - "/api.v1.TradingService/PrepareWithdraw", - "/api.v1.TradingService/SubmitTransaction", "/api.v1.TradingService/SubmitTransactionV2", - "/api.v1.TradingService/PrepareProposalSubmission", - "/api.v1.TradingService/PrepareVoteSubmission", "/api.v1.TradingService/PropagateChainEvent", - "/api.v1.TradingService/PrepareLiquidityProvision", + "/api.v1.TradingService/Statistics", + "/api.v1.TradingService/LastBlockHeight", + "/api.v1.TradingService/GetVegaTime", + "/api.v1.TradingService/ObserveEventBus", }; std::unique_ptr< TradingService::Stub> TradingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -42,133 +38,14 @@ std::unique_ptr< TradingService::Stub> TradingService::NewStub(const std::shared } TradingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_PrepareSubmitOrder_(TradingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareCancelOrder_(TradingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareAmendOrder_(TradingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareWithdraw_(TradingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SubmitTransaction_(TradingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SubmitTransactionV2_(TradingService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareProposalSubmission_(TradingService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareVoteSubmission_(TradingService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PropagateChainEvent_(TradingService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PrepareLiquidityProvision_(TradingService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_SubmitTransactionV2_(TradingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PropagateChainEvent_(TradingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Statistics_(TradingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_LastBlockHeight_(TradingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetVegaTime_(TradingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ObserveEventBus_(TradingService_method_names[5], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) {} -::grpc::Status TradingService::Stub::PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::api::v1::PrepareSubmitOrderResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareSubmitOrder_, context, request, response); -} - -void TradingService::Stub::experimental_async::PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareSubmitOrder_, context, request, response, std::move(f)); -} - -void TradingService::Stub::experimental_async::PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareSubmitOrder_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>* TradingService::Stub::PrepareAsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareSubmitOrderResponse, ::api::v1::PrepareSubmitOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareSubmitOrder_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>* TradingService::Stub::AsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPrepareSubmitOrderRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingService::Stub::PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::api::v1::PrepareCancelOrderResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareCancelOrder_, context, request, response); -} - -void TradingService::Stub::experimental_async::PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareCancelOrder_, context, request, response, std::move(f)); -} - -void TradingService::Stub::experimental_async::PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareCancelOrder_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>* TradingService::Stub::PrepareAsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareCancelOrderResponse, ::api::v1::PrepareCancelOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareCancelOrder_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>* TradingService::Stub::AsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPrepareCancelOrderRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingService::Stub::PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::api::v1::PrepareAmendOrderResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareAmendOrder_, context, request, response); -} - -void TradingService::Stub::experimental_async::PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareAmendOrder_, context, request, response, std::move(f)); -} - -void TradingService::Stub::experimental_async::PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareAmendOrder_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>* TradingService::Stub::PrepareAsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareAmendOrderResponse, ::api::v1::PrepareAmendOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareAmendOrder_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>* TradingService::Stub::AsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPrepareAmendOrderRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingService::Stub::PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::api::v1::PrepareWithdrawResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareWithdraw_, context, request, response); -} - -void TradingService::Stub::experimental_async::PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareWithdraw_, context, request, response, std::move(f)); -} - -void TradingService::Stub::experimental_async::PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareWithdraw_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>* TradingService::Stub::PrepareAsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareWithdrawResponse, ::api::v1::PrepareWithdrawRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareWithdraw_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>* TradingService::Stub::AsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPrepareWithdrawRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingService::Stub::SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::api::v1::SubmitTransactionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitTransaction_, context, request, response); -} - -void TradingService::Stub::experimental_async::SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitTransaction_, context, request, response, std::move(f)); -} - -void TradingService::Stub::experimental_async::SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitTransaction_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>* TradingService::Stub::PrepareAsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::SubmitTransactionResponse, ::api::v1::SubmitTransactionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SubmitTransaction_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>* TradingService::Stub::AsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSubmitTransactionRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status TradingService::Stub::SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::api::v1::SubmitTransactionV2Response* response) { return ::grpc::internal::BlockingUnaryCall< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitTransactionV2_, context, request, response); } @@ -192,239 +69,180 @@ ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>* Trad return result; } -::grpc::Status TradingService::Stub::PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::api::v1::PrepareProposalSubmissionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareProposalSubmission_, context, request, response); +::grpc::Status TradingService::Stub::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::api::v1::PropagateChainEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PropagateChainEvent_, context, request, response); } -void TradingService::Stub::experimental_async::PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareProposalSubmission_, context, request, response, std::move(f)); +void TradingService::Stub::experimental_async::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PropagateChainEvent_, context, request, response, std::move(f)); } -void TradingService::Stub::experimental_async::PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareProposalSubmission_, context, request, response, reactor); +void TradingService::Stub::experimental_async::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PropagateChainEvent_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>* TradingService::Stub::PrepareAsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareProposalSubmissionResponse, ::api::v1::PrepareProposalSubmissionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareProposalSubmission_, context, request); +::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* TradingService::Stub::PrepareAsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PropagateChainEventResponse, ::api::v1::PropagateChainEventRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PropagateChainEvent_, context, request); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>* TradingService::Stub::AsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* TradingService::Stub::AsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPrepareProposalSubmissionRaw(context, request, cq); + this->PrepareAsyncPropagateChainEventRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status TradingService::Stub::PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::api::v1::PrepareVoteSubmissionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareVoteSubmission_, context, request, response); +::grpc::Status TradingService::Stub::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Statistics_, context, request, response); } -void TradingService::Stub::experimental_async::PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareVoteSubmission_, context, request, response, std::move(f)); +void TradingService::Stub::experimental_async::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Statistics_, context, request, response, std::move(f)); } -void TradingService::Stub::experimental_async::PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareVoteSubmission_, context, request, response, reactor); +void TradingService::Stub::experimental_async::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Statistics_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>* TradingService::Stub::PrepareAsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareVoteSubmissionResponse, ::api::v1::PrepareVoteSubmissionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareVoteSubmission_, context, request); +::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* TradingService::Stub::PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::StatisticsResponse, ::api::v1::StatisticsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Statistics_, context, request); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>* TradingService::Stub::AsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* TradingService::Stub::AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPrepareVoteSubmissionRaw(context, request, cq); + this->PrepareAsyncStatisticsRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status TradingService::Stub::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::api::v1::PropagateChainEventResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PropagateChainEvent_, context, request, response); +::grpc::Status TradingService::Stub::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LastBlockHeight_, context, request, response); } -void TradingService::Stub::experimental_async::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PropagateChainEvent_, context, request, response, std::move(f)); +void TradingService::Stub::experimental_async::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastBlockHeight_, context, request, response, std::move(f)); } -void TradingService::Stub::experimental_async::PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PropagateChainEvent_, context, request, response, reactor); +void TradingService::Stub::experimental_async::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastBlockHeight_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* TradingService::Stub::PrepareAsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PropagateChainEventResponse, ::api::v1::PropagateChainEventRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PropagateChainEvent_, context, request); +::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* TradingService::Stub::PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::LastBlockHeightResponse, ::api::v1::LastBlockHeightRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LastBlockHeight_, context, request); } -::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* TradingService::Stub::AsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* TradingService::Stub::AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPropagateChainEventRaw(context, request, cq); + this->PrepareAsyncLastBlockHeightRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status TradingService::Stub::PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::api::v1::PrepareLiquidityProvisionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PrepareLiquidityProvision_, context, request, response); +::grpc::Status TradingService::Stub::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVegaTime_, context, request, response); } -void TradingService::Stub::experimental_async::PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareLiquidityProvision_, context, request, response, std::move(f)); +void TradingService::Stub::experimental_async::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVegaTime_, context, request, response, std::move(f)); } -void TradingService::Stub::experimental_async::PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PrepareLiquidityProvision_, context, request, response, reactor); +void TradingService::Stub::experimental_async::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVegaTime_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>* TradingService::Stub::PrepareAsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PrepareLiquidityProvisionResponse, ::api::v1::PrepareLiquidityProvisionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PrepareLiquidityProvision_, context, request); +::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* TradingService::Stub::PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetVegaTimeResponse, ::api::v1::GetVegaTimeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVegaTime_, context, request); } -::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>* TradingService::Stub::AsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* TradingService::Stub::AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPrepareLiquidityProvisionRaw(context, request, cq); + this->PrepareAsyncGetVegaTimeRaw(context, request, cq); result->StartCall(); return result; } +::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingService::Stub::ObserveEventBusRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), rpcmethod_ObserveEventBus_, context); +} + +void TradingService::Stub::experimental_async::ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObserveEventBus_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingService::Stub::AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), cq, rpcmethod_ObserveEventBus_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingService::Stub::PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), cq, rpcmethod_ObserveEventBus_, context, false, nullptr); +} + TradingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::PrepareSubmitOrderRequest* req, - ::api::v1::PrepareSubmitOrderResponse* resp) { - return service->PrepareSubmitOrder(ctx, req, resp); + const ::api::v1::SubmitTransactionV2Request* req, + ::api::v1::SubmitTransactionV2Response* resp) { + return service->SubmitTransactionV2(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::PrepareCancelOrderRequest* req, - ::api::v1::PrepareCancelOrderResponse* resp) { - return service->PrepareCancelOrder(ctx, req, resp); + const ::api::v1::PropagateChainEventRequest* req, + ::api::v1::PropagateChainEventResponse* resp) { + return service->PropagateChainEvent(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::PrepareAmendOrderRequest* req, - ::api::v1::PrepareAmendOrderResponse* resp) { - return service->PrepareAmendOrder(ctx, req, resp); + const ::api::v1::StatisticsRequest* req, + ::api::v1::StatisticsResponse* resp) { + return service->Statistics(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::PrepareWithdrawRequest* req, - ::api::v1::PrepareWithdrawResponse* resp) { - return service->PrepareWithdraw(ctx, req, resp); + const ::api::v1::LastBlockHeightRequest* req, + ::api::v1::LastBlockHeightResponse* resp) { + return service->LastBlockHeight(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::SubmitTransactionRequest* req, - ::api::v1::SubmitTransactionResponse* resp) { - return service->SubmitTransaction(ctx, req, resp); + const ::api::v1::GetVegaTimeRequest* req, + ::api::v1::GetVegaTimeResponse* resp) { + return service->GetVegaTime(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TradingService_method_names[5], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::SubmitTransactionV2Request* req, - ::api::v1::SubmitTransactionV2Response* resp) { - return service->SubmitTransactionV2(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingService_method_names[6], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PrepareProposalSubmissionRequest* req, - ::api::v1::PrepareProposalSubmissionResponse* resp) { - return service->PrepareProposalSubmission(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingService_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PrepareVoteSubmissionRequest* req, - ::api::v1::PrepareVoteSubmissionResponse* resp) { - return service->PrepareVoteSubmission(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingService_method_names[8], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PropagateChainEventRequest* req, - ::api::v1::PropagateChainEventResponse* resp) { - return service->PropagateChainEvent(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingService_method_names[9], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingService::Service, ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< TradingService::Service, ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>( [](TradingService::Service* service, ::grpc::ServerContext* ctx, - const ::api::v1::PrepareLiquidityProvisionRequest* req, - ::api::v1::PrepareLiquidityProvisionResponse* resp) { - return service->PrepareLiquidityProvision(ctx, req, resp); + ::grpc::ServerReaderWriter<::api::v1::ObserveEventBusResponse, + ::api::v1::ObserveEventBusRequest>* stream) { + return service->ObserveEventBus(ctx, stream); }, this))); } TradingService::Service::~Service() { } -::grpc::Status TradingService::Service::PrepareSubmitOrder(::grpc::ServerContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingService::Service::PrepareCancelOrder(::grpc::ServerContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingService::Service::PrepareAmendOrder(::grpc::ServerContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingService::Service::PrepareWithdraw(::grpc::ServerContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingService::Service::SubmitTransaction(::grpc::ServerContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status TradingService::Service::SubmitTransactionV2(::grpc::ServerContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response) { (void) context; (void) request; @@ -432,2677 +250,40 @@ ::grpc::Status TradingService::Service::SubmitTransactionV2(::grpc::ServerContex return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status TradingService::Service::PrepareProposalSubmission(::grpc::ServerContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response) { +::grpc::Status TradingService::Service::PropagateChainEvent(::grpc::ServerContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status TradingService::Service::PrepareVoteSubmission(::grpc::ServerContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response) { +::grpc::Status TradingService::Service::Statistics(::grpc::ServerContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status TradingService::Service::PropagateChainEvent(::grpc::ServerContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response) { +::grpc::Status TradingService::Service::LastBlockHeight(::grpc::ServerContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status TradingService::Service::PrepareLiquidityProvision(::grpc::ServerContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response) { +::grpc::Status TradingService::Service::GetVegaTime(::grpc::ServerContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - -static const char* TradingDataService_method_names[] = { - "/api.v1.TradingDataService/MarketAccounts", - "/api.v1.TradingDataService/PartyAccounts", - "/api.v1.TradingDataService/FeeInfrastructureAccounts", - "/api.v1.TradingDataService/Candles", - "/api.v1.TradingDataService/MarketDataByID", - "/api.v1.TradingDataService/MarketsData", - "/api.v1.TradingDataService/MarketByID", - "/api.v1.TradingDataService/MarketDepth", - "/api.v1.TradingDataService/Markets", - "/api.v1.TradingDataService/OrderByMarketAndID", - "/api.v1.TradingDataService/OrderByReference", - "/api.v1.TradingDataService/OrdersByMarket", - "/api.v1.TradingDataService/OrdersByParty", - "/api.v1.TradingDataService/OrderByID", - "/api.v1.TradingDataService/OrderVersionsByID", - "/api.v1.TradingDataService/MarginLevels", - "/api.v1.TradingDataService/Parties", - "/api.v1.TradingDataService/PartyByID", - "/api.v1.TradingDataService/PositionsByParty", - "/api.v1.TradingDataService/LastTrade", - "/api.v1.TradingDataService/TradesByMarket", - "/api.v1.TradingDataService/TradesByOrder", - "/api.v1.TradingDataService/TradesByParty", - "/api.v1.TradingDataService/GetProposals", - "/api.v1.TradingDataService/GetProposalsByParty", - "/api.v1.TradingDataService/GetVotesByParty", - "/api.v1.TradingDataService/GetNewMarketProposals", - "/api.v1.TradingDataService/GetUpdateMarketProposals", - "/api.v1.TradingDataService/GetNetworkParametersProposals", - "/api.v1.TradingDataService/GetNewAssetProposals", - "/api.v1.TradingDataService/GetProposalByID", - "/api.v1.TradingDataService/GetProposalByReference", - "/api.v1.TradingDataService/ObserveGovernance", - "/api.v1.TradingDataService/ObservePartyProposals", - "/api.v1.TradingDataService/ObservePartyVotes", - "/api.v1.TradingDataService/ObserveProposalVotes", - "/api.v1.TradingDataService/ObserveEventBus", - "/api.v1.TradingDataService/Statistics", - "/api.v1.TradingDataService/LastBlockHeight", - "/api.v1.TradingDataService/GetVegaTime", - "/api.v1.TradingDataService/AccountsSubscribe", - "/api.v1.TradingDataService/CandlesSubscribe", - "/api.v1.TradingDataService/MarginLevelsSubscribe", - "/api.v1.TradingDataService/MarketDepthSubscribe", - "/api.v1.TradingDataService/MarketDepthUpdatesSubscribe", - "/api.v1.TradingDataService/MarketsDataSubscribe", - "/api.v1.TradingDataService/OrdersSubscribe", - "/api.v1.TradingDataService/PositionsSubscribe", - "/api.v1.TradingDataService/TradesSubscribe", - "/api.v1.TradingDataService/TransferResponsesSubscribe", - "/api.v1.TradingDataService/GetNodeSignaturesAggregate", - "/api.v1.TradingDataService/AssetByID", - "/api.v1.TradingDataService/Assets", - "/api.v1.TradingDataService/EstimateFee", - "/api.v1.TradingDataService/EstimateMargin", - "/api.v1.TradingDataService/ERC20WithdrawalApproval", - "/api.v1.TradingDataService/Withdrawal", - "/api.v1.TradingDataService/Withdrawals", - "/api.v1.TradingDataService/Deposit", - "/api.v1.TradingDataService/Deposits", - "/api.v1.TradingDataService/NetworkParameters", - "/api.v1.TradingDataService/LiquidityProvisions", - "/api.v1.TradingDataService/OracleSpec", - "/api.v1.TradingDataService/OracleSpecs", - "/api.v1.TradingDataService/OracleDataBySpec", -}; - -std::unique_ptr< TradingDataService::Stub> TradingDataService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< TradingDataService::Stub> stub(new TradingDataService::Stub(channel)); - return stub; -} - -TradingDataService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_MarketAccounts_(TradingDataService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PartyAccounts_(TradingDataService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_FeeInfrastructureAccounts_(TradingDataService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Candles_(TradingDataService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarketDataByID_(TradingDataService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarketsData_(TradingDataService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarketByID_(TradingDataService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarketDepth_(TradingDataService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Markets_(TradingDataService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrderByMarketAndID_(TradingDataService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrderByReference_(TradingDataService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrdersByMarket_(TradingDataService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrdersByParty_(TradingDataService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrderByID_(TradingDataService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrderVersionsByID_(TradingDataService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarginLevels_(TradingDataService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Parties_(TradingDataService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PartyByID_(TradingDataService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PositionsByParty_(TradingDataService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_LastTrade_(TradingDataService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TradesByMarket_(TradingDataService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TradesByOrder_(TradingDataService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TradesByParty_(TradingDataService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProposals_(TradingDataService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProposalsByParty_(TradingDataService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetVotesByParty_(TradingDataService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNewMarketProposals_(TradingDataService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetUpdateMarketProposals_(TradingDataService_method_names[27], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNetworkParametersProposals_(TradingDataService_method_names[28], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNewAssetProposals_(TradingDataService_method_names[29], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProposalByID_(TradingDataService_method_names[30], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProposalByReference_(TradingDataService_method_names[31], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ObserveGovernance_(TradingDataService_method_names[32], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_ObservePartyProposals_(TradingDataService_method_names[33], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_ObservePartyVotes_(TradingDataService_method_names[34], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_ObserveProposalVotes_(TradingDataService_method_names[35], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_ObserveEventBus_(TradingDataService_method_names[36], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_Statistics_(TradingDataService_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_LastBlockHeight_(TradingDataService_method_names[38], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetVegaTime_(TradingDataService_method_names[39], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AccountsSubscribe_(TradingDataService_method_names[40], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_CandlesSubscribe_(TradingDataService_method_names[41], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_MarginLevelsSubscribe_(TradingDataService_method_names[42], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_MarketDepthSubscribe_(TradingDataService_method_names[43], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_MarketDepthUpdatesSubscribe_(TradingDataService_method_names[44], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_MarketsDataSubscribe_(TradingDataService_method_names[45], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_OrdersSubscribe_(TradingDataService_method_names[46], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_PositionsSubscribe_(TradingDataService_method_names[47], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_TradesSubscribe_(TradingDataService_method_names[48], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_TransferResponsesSubscribe_(TradingDataService_method_names[49], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetNodeSignaturesAggregate_(TradingDataService_method_names[50], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AssetByID_(TradingDataService_method_names[51], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Assets_(TradingDataService_method_names[52], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EstimateFee_(TradingDataService_method_names[53], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EstimateMargin_(TradingDataService_method_names[54], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ERC20WithdrawalApproval_(TradingDataService_method_names[55], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Withdrawal_(TradingDataService_method_names[56], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Withdrawals_(TradingDataService_method_names[57], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Deposit_(TradingDataService_method_names[58], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Deposits_(TradingDataService_method_names[59], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_NetworkParameters_(TradingDataService_method_names[60], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_LiquidityProvisions_(TradingDataService_method_names[61], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OracleSpec_(TradingDataService_method_names[62], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OracleSpecs_(TradingDataService_method_names[63], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OracleDataBySpec_(TradingDataService_method_names[64], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status TradingDataService::Stub::MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::api::v1::MarketAccountsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarketAccounts_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketAccounts_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketAccounts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>* TradingDataService::Stub::PrepareAsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketAccountsResponse, ::api::v1::MarketAccountsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarketAccounts_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>* TradingDataService::Stub::AsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketAccountsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::api::v1::PartyAccountsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PartyAccounts_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PartyAccounts_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PartyAccounts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>* TradingDataService::Stub::PrepareAsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PartyAccountsResponse, ::api::v1::PartyAccountsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PartyAccounts_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>* TradingDataService::Stub::AsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPartyAccountsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::api::v1::FeeInfrastructureAccountsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_FeeInfrastructureAccounts_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FeeInfrastructureAccounts_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FeeInfrastructureAccounts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>* TradingDataService::Stub::PrepareAsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::FeeInfrastructureAccountsResponse, ::api::v1::FeeInfrastructureAccountsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_FeeInfrastructureAccounts_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>* TradingDataService::Stub::AsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncFeeInfrastructureAccountsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::api::v1::CandlesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::CandlesRequest, ::api::v1::CandlesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Candles_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::CandlesRequest, ::api::v1::CandlesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Candles_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Candles_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>* TradingDataService::Stub::PrepareAsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::CandlesResponse, ::api::v1::CandlesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Candles_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>* TradingDataService::Stub::AsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCandlesRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::api::v1::MarketDataByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarketDataByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketDataByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketDataByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>* TradingDataService::Stub::PrepareAsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketDataByIDResponse, ::api::v1::MarketDataByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarketDataByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>* TradingDataService::Stub::AsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketDataByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::api::v1::MarketsDataResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarketsData_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketsData_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketsData_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>* TradingDataService::Stub::PrepareAsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketsDataResponse, ::api::v1::MarketsDataRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarketsData_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>* TradingDataService::Stub::AsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketsDataRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::api::v1::MarketByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarketByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>* TradingDataService::Stub::PrepareAsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketByIDResponse, ::api::v1::MarketByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarketByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>* TradingDataService::Stub::AsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::api::v1::MarketDepthResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarketDepth_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketDepth_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarketDepth_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>* TradingDataService::Stub::PrepareAsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketDepthResponse, ::api::v1::MarketDepthRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarketDepth_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>* TradingDataService::Stub::AsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketDepthRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::api::v1::MarketsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarketsRequest, ::api::v1::MarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Markets_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarketsRequest, ::api::v1::MarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Markets_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Markets_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>* TradingDataService::Stub::PrepareAsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarketsResponse, ::api::v1::MarketsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Markets_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>* TradingDataService::Stub::AsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarketsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::api::v1::OrderByMarketAndIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrderByMarketAndID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByMarketAndID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByMarketAndID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>* TradingDataService::Stub::PrepareAsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrderByMarketAndIDResponse, ::api::v1::OrderByMarketAndIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrderByMarketAndID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>* TradingDataService::Stub::AsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrderByMarketAndIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::api::v1::OrderByReferenceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrderByReference_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByReference_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByReference_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>* TradingDataService::Stub::PrepareAsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrderByReferenceResponse, ::api::v1::OrderByReferenceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrderByReference_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>* TradingDataService::Stub::AsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrderByReferenceRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::api::v1::OrdersByMarketResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrdersByMarket_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrdersByMarket_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrdersByMarket_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>* TradingDataService::Stub::PrepareAsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrdersByMarketResponse, ::api::v1::OrdersByMarketRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrdersByMarket_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>* TradingDataService::Stub::AsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrdersByMarketRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::api::v1::OrdersByPartyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrdersByParty_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrdersByParty_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrdersByParty_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>* TradingDataService::Stub::PrepareAsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrdersByPartyResponse, ::api::v1::OrdersByPartyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrdersByParty_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>* TradingDataService::Stub::AsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrdersByPartyRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::api::v1::OrderByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrderByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>* TradingDataService::Stub::PrepareAsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrderByIDResponse, ::api::v1::OrderByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrderByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>* TradingDataService::Stub::AsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrderByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::api::v1::OrderVersionsByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrderVersionsByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderVersionsByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrderVersionsByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>* TradingDataService::Stub::PrepareAsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OrderVersionsByIDResponse, ::api::v1::OrderVersionsByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrderVersionsByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>* TradingDataService::Stub::AsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrderVersionsByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::api::v1::MarginLevelsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarginLevels_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarginLevels_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarginLevels_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>* TradingDataService::Stub::PrepareAsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::MarginLevelsResponse, ::api::v1::MarginLevelsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarginLevels_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>* TradingDataService::Stub::AsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarginLevelsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::api::v1::PartiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PartiesRequest, ::api::v1::PartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Parties_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PartiesRequest, ::api::v1::PartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Parties_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Parties_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>* TradingDataService::Stub::PrepareAsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PartiesResponse, ::api::v1::PartiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Parties_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>* TradingDataService::Stub::AsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPartiesRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::api::v1::PartyByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PartyByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PartyByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PartyByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>* TradingDataService::Stub::PrepareAsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PartyByIDResponse, ::api::v1::PartyByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PartyByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>* TradingDataService::Stub::AsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPartyByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::api::v1::PositionsByPartyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PositionsByParty_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PositionsByParty_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PositionsByParty_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>* TradingDataService::Stub::PrepareAsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::PositionsByPartyResponse, ::api::v1::PositionsByPartyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PositionsByParty_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>* TradingDataService::Stub::AsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPositionsByPartyRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::api::v1::LastTradeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LastTrade_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastTrade_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastTrade_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>* TradingDataService::Stub::PrepareAsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::LastTradeResponse, ::api::v1::LastTradeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LastTrade_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>* TradingDataService::Stub::AsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLastTradeRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::api::v1::TradesByMarketResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TradesByMarket_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByMarket_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByMarket_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>* TradingDataService::Stub::PrepareAsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::TradesByMarketResponse, ::api::v1::TradesByMarketRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TradesByMarket_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>* TradingDataService::Stub::AsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTradesByMarketRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::api::v1::TradesByOrderResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TradesByOrder_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByOrder_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByOrder_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>* TradingDataService::Stub::PrepareAsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::TradesByOrderResponse, ::api::v1::TradesByOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TradesByOrder_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>* TradingDataService::Stub::AsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTradesByOrderRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::api::v1::TradesByPartyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TradesByParty_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByParty_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TradesByParty_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>* TradingDataService::Stub::PrepareAsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::TradesByPartyResponse, ::api::v1::TradesByPartyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TradesByParty_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>* TradingDataService::Stub::AsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTradesByPartyRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::api::v1::GetProposalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProposals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>* TradingDataService::Stub::PrepareAsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetProposalsResponse, ::api::v1::GetProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProposals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>* TradingDataService::Stub::AsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetProposalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::api::v1::GetProposalsByPartyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProposalsByParty_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalsByParty_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalsByParty_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>* TradingDataService::Stub::PrepareAsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetProposalsByPartyResponse, ::api::v1::GetProposalsByPartyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProposalsByParty_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>* TradingDataService::Stub::AsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetProposalsByPartyRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::api::v1::GetVotesByPartyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVotesByParty_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVotesByParty_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVotesByParty_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>* TradingDataService::Stub::PrepareAsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetVotesByPartyResponse, ::api::v1::GetVotesByPartyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVotesByParty_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>* TradingDataService::Stub::AsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetVotesByPartyRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::api::v1::GetNewMarketProposalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetNewMarketProposals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNewMarketProposals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNewMarketProposals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>* TradingDataService::Stub::PrepareAsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetNewMarketProposalsResponse, ::api::v1::GetNewMarketProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetNewMarketProposals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>* TradingDataService::Stub::AsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetNewMarketProposalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::api::v1::GetUpdateMarketProposalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetUpdateMarketProposals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetUpdateMarketProposals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetUpdateMarketProposals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>* TradingDataService::Stub::PrepareAsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetUpdateMarketProposalsResponse, ::api::v1::GetUpdateMarketProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetUpdateMarketProposals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>* TradingDataService::Stub::AsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetUpdateMarketProposalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::api::v1::GetNetworkParametersProposalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetNetworkParametersProposals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNetworkParametersProposals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNetworkParametersProposals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>* TradingDataService::Stub::PrepareAsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetNetworkParametersProposalsResponse, ::api::v1::GetNetworkParametersProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetNetworkParametersProposals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>* TradingDataService::Stub::AsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetNetworkParametersProposalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::api::v1::GetNewAssetProposalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetNewAssetProposals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNewAssetProposals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNewAssetProposals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>* TradingDataService::Stub::PrepareAsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetNewAssetProposalsResponse, ::api::v1::GetNewAssetProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetNewAssetProposals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>* TradingDataService::Stub::AsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetNewAssetProposalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::api::v1::GetProposalByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProposalByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>* TradingDataService::Stub::PrepareAsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetProposalByIDResponse, ::api::v1::GetProposalByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProposalByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>* TradingDataService::Stub::AsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetProposalByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::api::v1::GetProposalByReferenceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProposalByReference_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalByReference_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProposalByReference_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>* TradingDataService::Stub::PrepareAsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetProposalByReferenceResponse, ::api::v1::GetProposalByReferenceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProposalByReference_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>* TradingDataService::Stub::AsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetProposalByReferenceRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::ClientReader< ::api::v1::ObserveGovernanceResponse>* TradingDataService::Stub::ObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::ObserveGovernanceResponse>::Create(channel_.get(), rpcmethod_ObserveGovernance_, context, request); -} - -void TradingDataService::Stub::experimental_async::ObserveGovernance(::grpc::ClientContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveGovernanceResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::ObserveGovernanceResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObserveGovernance_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>* TradingDataService::Stub::AsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObserveGovernanceResponse>::Create(channel_.get(), cq, rpcmethod_ObserveGovernance_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>* TradingDataService::Stub::PrepareAsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObserveGovernanceResponse>::Create(channel_.get(), cq, rpcmethod_ObserveGovernance_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::ObservePartyProposalsResponse>* TradingDataService::Stub::ObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::ObservePartyProposalsResponse>::Create(channel_.get(), rpcmethod_ObservePartyProposals_, context, request); -} - -void TradingDataService::Stub::experimental_async::ObservePartyProposals(::grpc::ClientContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyProposalsResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::ObservePartyProposalsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObservePartyProposals_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>* TradingDataService::Stub::AsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObservePartyProposalsResponse>::Create(channel_.get(), cq, rpcmethod_ObservePartyProposals_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>* TradingDataService::Stub::PrepareAsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObservePartyProposalsResponse>::Create(channel_.get(), cq, rpcmethod_ObservePartyProposals_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::ObservePartyVotesResponse>* TradingDataService::Stub::ObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::ObservePartyVotesResponse>::Create(channel_.get(), rpcmethod_ObservePartyVotes_, context, request); -} - -void TradingDataService::Stub::experimental_async::ObservePartyVotes(::grpc::ClientContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyVotesResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::ObservePartyVotesResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObservePartyVotes_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>* TradingDataService::Stub::AsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObservePartyVotesResponse>::Create(channel_.get(), cq, rpcmethod_ObservePartyVotes_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>* TradingDataService::Stub::PrepareAsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObservePartyVotesResponse>::Create(channel_.get(), cq, rpcmethod_ObservePartyVotes_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::ObserveProposalVotesResponse>* TradingDataService::Stub::ObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::ObserveProposalVotesResponse>::Create(channel_.get(), rpcmethod_ObserveProposalVotes_, context, request); -} - -void TradingDataService::Stub::experimental_async::ObserveProposalVotes(::grpc::ClientContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveProposalVotesResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::ObserveProposalVotesResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObserveProposalVotes_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>* TradingDataService::Stub::AsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObserveProposalVotesResponse>::Create(channel_.get(), cq, rpcmethod_ObserveProposalVotes_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>* TradingDataService::Stub::PrepareAsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::ObserveProposalVotesResponse>::Create(channel_.get(), cq, rpcmethod_ObserveProposalVotes_, context, request, false, nullptr); -} - -::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingDataService::Stub::ObserveEventBusRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), rpcmethod_ObserveEventBus_, context); -} - -void TradingDataService::Stub::experimental_async::ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_ObserveEventBus_, context, reactor); -} - -::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingDataService::Stub::AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), cq, rpcmethod_ObserveEventBus_, context, true, tag); -} - -::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* TradingDataService::Stub::PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>::Create(channel_.get(), cq, rpcmethod_ObserveEventBus_, context, false, nullptr); -} - -::grpc::Status TradingDataService::Stub::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Statistics_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Statistics_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Statistics_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* TradingDataService::Stub::PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::StatisticsResponse, ::api::v1::StatisticsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Statistics_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* TradingDataService::Stub::AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStatisticsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LastBlockHeight_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastBlockHeight_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LastBlockHeight_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* TradingDataService::Stub::PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::LastBlockHeightResponse, ::api::v1::LastBlockHeightRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LastBlockHeight_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* TradingDataService::Stub::AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLastBlockHeightRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVegaTime_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVegaTime_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVegaTime_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* TradingDataService::Stub::PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetVegaTimeResponse, ::api::v1::GetVegaTimeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVegaTime_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* TradingDataService::Stub::AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetVegaTimeRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::ClientReader< ::api::v1::AccountsSubscribeResponse>* TradingDataService::Stub::AccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::AccountsSubscribeResponse>::Create(channel_.get(), rpcmethod_AccountsSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::AccountsSubscribe(::grpc::ClientContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::AccountsSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::AccountsSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_AccountsSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>* TradingDataService::Stub::AsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::AccountsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_AccountsSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>* TradingDataService::Stub::PrepareAsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::AccountsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_AccountsSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::CandlesSubscribeResponse>* TradingDataService::Stub::CandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::CandlesSubscribeResponse>::Create(channel_.get(), rpcmethod_CandlesSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::CandlesSubscribe(::grpc::ClientContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::CandlesSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::CandlesSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CandlesSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>* TradingDataService::Stub::AsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::CandlesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_CandlesSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>* TradingDataService::Stub::PrepareAsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::CandlesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_CandlesSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::MarginLevelsSubscribeResponse>* TradingDataService::Stub::MarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::MarginLevelsSubscribeResponse>::Create(channel_.get(), rpcmethod_MarginLevelsSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::MarginLevelsSubscribe(::grpc::ClientContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarginLevelsSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::MarginLevelsSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_MarginLevelsSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>* TradingDataService::Stub::AsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarginLevelsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarginLevelsSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>* TradingDataService::Stub::PrepareAsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarginLevelsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarginLevelsSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::MarketDepthSubscribeResponse>* TradingDataService::Stub::MarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::MarketDepthSubscribeResponse>::Create(channel_.get(), rpcmethod_MarketDepthSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::MarketDepthSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::MarketDepthSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_MarketDepthSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>* TradingDataService::Stub::AsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketDepthSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketDepthSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>* TradingDataService::Stub::PrepareAsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketDepthSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketDepthSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* TradingDataService::Stub::MarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::MarketDepthUpdatesSubscribeResponse>::Create(channel_.get(), rpcmethod_MarketDepthUpdatesSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::MarketDepthUpdatesSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_MarketDepthUpdatesSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* TradingDataService::Stub::AsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketDepthUpdatesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketDepthUpdatesSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* TradingDataService::Stub::PrepareAsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketDepthUpdatesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketDepthUpdatesSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::MarketsDataSubscribeResponse>* TradingDataService::Stub::MarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::MarketsDataSubscribeResponse>::Create(channel_.get(), rpcmethod_MarketsDataSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::MarketsDataSubscribe(::grpc::ClientContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketsDataSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::MarketsDataSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_MarketsDataSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>* TradingDataService::Stub::AsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketsDataSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketsDataSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>* TradingDataService::Stub::PrepareAsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::MarketsDataSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_MarketsDataSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::OrdersSubscribeResponse>* TradingDataService::Stub::OrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::OrdersSubscribeResponse>::Create(channel_.get(), rpcmethod_OrdersSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::OrdersSubscribe(::grpc::ClientContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::OrdersSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::OrdersSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_OrdersSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>* TradingDataService::Stub::AsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::OrdersSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_OrdersSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>* TradingDataService::Stub::PrepareAsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::OrdersSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_OrdersSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::PositionsSubscribeResponse>* TradingDataService::Stub::PositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::PositionsSubscribeResponse>::Create(channel_.get(), rpcmethod_PositionsSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::PositionsSubscribe(::grpc::ClientContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::PositionsSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::PositionsSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_PositionsSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>* TradingDataService::Stub::AsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::PositionsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_PositionsSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>* TradingDataService::Stub::PrepareAsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::PositionsSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_PositionsSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::TradesSubscribeResponse>* TradingDataService::Stub::TradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::TradesSubscribeResponse>::Create(channel_.get(), rpcmethod_TradesSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::TradesSubscribe(::grpc::ClientContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TradesSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::TradesSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_TradesSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>* TradingDataService::Stub::AsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::TradesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_TradesSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>* TradingDataService::Stub::PrepareAsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::TradesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_TradesSubscribe_, context, request, false, nullptr); -} - -::grpc::ClientReader< ::api::v1::TransferResponsesSubscribeResponse>* TradingDataService::Stub::TransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::api::v1::TransferResponsesSubscribeResponse>::Create(channel_.get(), rpcmethod_TransferResponsesSubscribe_, context, request); -} - -void TradingDataService::Stub::experimental_async::TransferResponsesSubscribe(::grpc::ClientContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TransferResponsesSubscribeResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::api::v1::TransferResponsesSubscribeResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_TransferResponsesSubscribe_, context, request, reactor); -} - -::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>* TradingDataService::Stub::AsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::TransferResponsesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_TransferResponsesSubscribe_, context, request, true, tag); -} - -::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>* TradingDataService::Stub::PrepareAsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::api::v1::TransferResponsesSubscribeResponse>::Create(channel_.get(), cq, rpcmethod_TransferResponsesSubscribe_, context, request, false, nullptr); -} - -::grpc::Status TradingDataService::Stub::GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::api::v1::GetNodeSignaturesAggregateResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetNodeSignaturesAggregate_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNodeSignaturesAggregate_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetNodeSignaturesAggregate_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>* TradingDataService::Stub::PrepareAsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::GetNodeSignaturesAggregateResponse, ::api::v1::GetNodeSignaturesAggregateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetNodeSignaturesAggregate_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>* TradingDataService::Stub::AsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetNodeSignaturesAggregateRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::api::v1::AssetByIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AssetByID_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AssetByID_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AssetByID_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>* TradingDataService::Stub::PrepareAsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::AssetByIDResponse, ::api::v1::AssetByIDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AssetByID_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>* TradingDataService::Stub::AsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAssetByIDRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::api::v1::AssetsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::AssetsRequest, ::api::v1::AssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Assets_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::AssetsRequest, ::api::v1::AssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Assets_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Assets_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>* TradingDataService::Stub::PrepareAsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::AssetsResponse, ::api::v1::AssetsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Assets_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>* TradingDataService::Stub::AsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAssetsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::api::v1::EstimateFeeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EstimateFee_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EstimateFee_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EstimateFee_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>* TradingDataService::Stub::PrepareAsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::EstimateFeeResponse, ::api::v1::EstimateFeeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EstimateFee_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>* TradingDataService::Stub::AsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEstimateFeeRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::api::v1::EstimateMarginResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EstimateMargin_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EstimateMargin_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EstimateMargin_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>* TradingDataService::Stub::PrepareAsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::EstimateMarginResponse, ::api::v1::EstimateMarginRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EstimateMargin_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>* TradingDataService::Stub::AsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEstimateMarginRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::api::v1::ERC20WithdrawalApprovalResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ERC20WithdrawalApproval_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ERC20WithdrawalApproval_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ERC20WithdrawalApproval_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>* TradingDataService::Stub::PrepareAsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::ERC20WithdrawalApprovalResponse, ::api::v1::ERC20WithdrawalApprovalRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ERC20WithdrawalApproval_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>* TradingDataService::Stub::AsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncERC20WithdrawalApprovalRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::api::v1::WithdrawalResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Withdrawal_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Withdrawal_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Withdrawal_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>* TradingDataService::Stub::PrepareAsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::WithdrawalResponse, ::api::v1::WithdrawalRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Withdrawal_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>* TradingDataService::Stub::AsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncWithdrawalRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::api::v1::WithdrawalsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Withdrawals_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Withdrawals_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Withdrawals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>* TradingDataService::Stub::PrepareAsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::WithdrawalsResponse, ::api::v1::WithdrawalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Withdrawals_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>* TradingDataService::Stub::AsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncWithdrawalsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::api::v1::DepositResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::DepositRequest, ::api::v1::DepositResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Deposit_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::DepositRequest, ::api::v1::DepositResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deposit_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deposit_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>* TradingDataService::Stub::PrepareAsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::DepositResponse, ::api::v1::DepositRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Deposit_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>* TradingDataService::Stub::AsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDepositRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::api::v1::DepositsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::DepositsRequest, ::api::v1::DepositsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Deposits_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::DepositsRequest, ::api::v1::DepositsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deposits_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Deposits_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>* TradingDataService::Stub::PrepareAsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::DepositsResponse, ::api::v1::DepositsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Deposits_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>* TradingDataService::Stub::AsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDepositsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::api::v1::NetworkParametersResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NetworkParameters_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NetworkParameters_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NetworkParameters_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>* TradingDataService::Stub::PrepareAsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::NetworkParametersResponse, ::api::v1::NetworkParametersRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NetworkParameters_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>* TradingDataService::Stub::AsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncNetworkParametersRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::api::v1::LiquidityProvisionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LiquidityProvisions_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LiquidityProvisions_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LiquidityProvisions_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>* TradingDataService::Stub::PrepareAsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::LiquidityProvisionsResponse, ::api::v1::LiquidityProvisionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LiquidityProvisions_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>* TradingDataService::Stub::AsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLiquidityProvisionsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::api::v1::OracleSpecResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OracleSpec_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleSpec_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleSpec_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>* TradingDataService::Stub::PrepareAsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OracleSpecResponse, ::api::v1::OracleSpecRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OracleSpec_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>* TradingDataService::Stub::AsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOracleSpecRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::api::v1::OracleSpecsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OracleSpecs_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleSpecs_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleSpecs_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>* TradingDataService::Stub::PrepareAsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OracleSpecsResponse, ::api::v1::OracleSpecsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OracleSpecs_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>* TradingDataService::Stub::AsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOracleSpecsRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TradingDataService::Stub::OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::api::v1::OracleDataBySpecResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OracleDataBySpec_, context, request, response); -} - -void TradingDataService::Stub::experimental_async::OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleDataBySpec_, context, request, response, std::move(f)); -} - -void TradingDataService::Stub::experimental_async::OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OracleDataBySpec_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>* TradingDataService::Stub::PrepareAsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::api::v1::OracleDataBySpecResponse, ::api::v1::OracleDataBySpecRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OracleDataBySpec_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>* TradingDataService::Stub::AsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOracleDataBySpecRaw(context, request, cq); - result->StartCall(); - return result; -} - -TradingDataService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketAccountsRequest* req, - ::api::v1::MarketAccountsResponse* resp) { - return service->MarketAccounts(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PartyAccountsRequest* req, - ::api::v1::PartyAccountsResponse* resp) { - return service->PartyAccounts(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::FeeInfrastructureAccountsRequest* req, - ::api::v1::FeeInfrastructureAccountsResponse* resp) { - return service->FeeInfrastructureAccounts(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::CandlesRequest, ::api::v1::CandlesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::CandlesRequest* req, - ::api::v1::CandlesResponse* resp) { - return service->Candles(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketDataByIDRequest* req, - ::api::v1::MarketDataByIDResponse* resp) { - return service->MarketDataByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[5], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketsDataRequest* req, - ::api::v1::MarketsDataResponse* resp) { - return service->MarketsData(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[6], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketByIDRequest* req, - ::api::v1::MarketByIDResponse* resp) { - return service->MarketByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketDepthRequest* req, - ::api::v1::MarketDepthResponse* resp) { - return service->MarketDepth(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[8], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarketsRequest, ::api::v1::MarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketsRequest* req, - ::api::v1::MarketsResponse* resp) { - return service->Markets(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[9], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrderByMarketAndIDRequest* req, - ::api::v1::OrderByMarketAndIDResponse* resp) { - return service->OrderByMarketAndID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[10], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrderByReferenceRequest* req, - ::api::v1::OrderByReferenceResponse* resp) { - return service->OrderByReference(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[11], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrdersByMarketRequest* req, - ::api::v1::OrdersByMarketResponse* resp) { - return service->OrdersByMarket(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[12], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrdersByPartyRequest* req, - ::api::v1::OrdersByPartyResponse* resp) { - return service->OrdersByParty(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[13], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrderByIDRequest* req, - ::api::v1::OrderByIDResponse* resp) { - return service->OrderByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[14], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrderVersionsByIDRequest* req, - ::api::v1::OrderVersionsByIDResponse* resp) { - return service->OrderVersionsByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[15], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarginLevelsRequest* req, - ::api::v1::MarginLevelsResponse* resp) { - return service->MarginLevels(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[16], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::PartiesRequest, ::api::v1::PartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PartiesRequest* req, - ::api::v1::PartiesResponse* resp) { - return service->Parties(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[17], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PartyByIDRequest* req, - ::api::v1::PartyByIDResponse* resp) { - return service->PartyByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[18], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PositionsByPartyRequest* req, - ::api::v1::PositionsByPartyResponse* resp) { - return service->PositionsByParty(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[19], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::LastTradeRequest* req, - ::api::v1::LastTradeResponse* resp) { - return service->LastTrade(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[20], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::TradesByMarketRequest* req, - ::api::v1::TradesByMarketResponse* resp) { - return service->TradesByMarket(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[21], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::TradesByOrderRequest* req, - ::api::v1::TradesByOrderResponse* resp) { - return service->TradesByOrder(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[22], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::TradesByPartyRequest* req, - ::api::v1::TradesByPartyResponse* resp) { - return service->TradesByParty(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[23], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetProposalsRequest* req, - ::api::v1::GetProposalsResponse* resp) { - return service->GetProposals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[24], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetProposalsByPartyRequest* req, - ::api::v1::GetProposalsByPartyResponse* resp) { - return service->GetProposalsByParty(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[25], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetVotesByPartyRequest* req, - ::api::v1::GetVotesByPartyResponse* resp) { - return service->GetVotesByParty(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[26], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetNewMarketProposalsRequest* req, - ::api::v1::GetNewMarketProposalsResponse* resp) { - return service->GetNewMarketProposals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[27], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetUpdateMarketProposalsRequest* req, - ::api::v1::GetUpdateMarketProposalsResponse* resp) { - return service->GetUpdateMarketProposals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[28], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetNetworkParametersProposalsRequest* req, - ::api::v1::GetNetworkParametersProposalsResponse* resp) { - return service->GetNetworkParametersProposals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[29], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetNewAssetProposalsRequest* req, - ::api::v1::GetNewAssetProposalsResponse* resp) { - return service->GetNewAssetProposals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[30], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetProposalByIDRequest* req, - ::api::v1::GetProposalByIDResponse* resp) { - return service->GetProposalByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[31], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetProposalByReferenceRequest* req, - ::api::v1::GetProposalByReferenceResponse* resp) { - return service->GetProposalByReference(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[32], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::ObserveGovernanceRequest, ::api::v1::ObserveGovernanceResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::ObserveGovernanceRequest* req, - ::grpc::ServerWriter<::api::v1::ObserveGovernanceResponse>* writer) { - return service->ObserveGovernance(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[33], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::ObservePartyProposalsRequest, ::api::v1::ObservePartyProposalsResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::ObservePartyProposalsRequest* req, - ::grpc::ServerWriter<::api::v1::ObservePartyProposalsResponse>* writer) { - return service->ObservePartyProposals(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[34], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::ObservePartyVotesRequest, ::api::v1::ObservePartyVotesResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::ObservePartyVotesRequest* req, - ::grpc::ServerWriter<::api::v1::ObservePartyVotesResponse>* writer) { - return service->ObservePartyVotes(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[35], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::ObserveProposalVotesRequest, ::api::v1::ObserveProposalVotesResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::ObserveProposalVotesRequest* req, - ::grpc::ServerWriter<::api::v1::ObserveProposalVotesResponse>* writer) { - return service->ObserveProposalVotes(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[36], - ::grpc::internal::RpcMethod::BIDI_STREAMING, - new ::grpc::internal::BidiStreamingHandler< TradingDataService::Service, ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::api::v1::ObserveEventBusResponse, - ::api::v1::ObserveEventBusRequest>* stream) { - return service->ObserveEventBus(ctx, stream); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[37], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::StatisticsRequest* req, - ::api::v1::StatisticsResponse* resp) { - return service->Statistics(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[38], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::LastBlockHeightRequest* req, - ::api::v1::LastBlockHeightResponse* resp) { - return service->LastBlockHeight(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[39], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetVegaTimeRequest* req, - ::api::v1::GetVegaTimeResponse* resp) { - return service->GetVegaTime(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[40], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::AccountsSubscribeRequest, ::api::v1::AccountsSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::AccountsSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::AccountsSubscribeResponse>* writer) { - return service->AccountsSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[41], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::CandlesSubscribeRequest, ::api::v1::CandlesSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::CandlesSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::CandlesSubscribeResponse>* writer) { - return service->CandlesSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[42], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::MarginLevelsSubscribeRequest, ::api::v1::MarginLevelsSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarginLevelsSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::MarginLevelsSubscribeResponse>* writer) { - return service->MarginLevelsSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[43], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::MarketDepthSubscribeRequest, ::api::v1::MarketDepthSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketDepthSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::MarketDepthSubscribeResponse>* writer) { - return service->MarketDepthSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[44], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::MarketDepthUpdatesSubscribeRequest, ::api::v1::MarketDepthUpdatesSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketDepthUpdatesSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::MarketDepthUpdatesSubscribeResponse>* writer) { - return service->MarketDepthUpdatesSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[45], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::MarketsDataSubscribeRequest, ::api::v1::MarketsDataSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::MarketsDataSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::MarketsDataSubscribeResponse>* writer) { - return service->MarketsDataSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[46], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::OrdersSubscribeRequest, ::api::v1::OrdersSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OrdersSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::OrdersSubscribeResponse>* writer) { - return service->OrdersSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[47], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::PositionsSubscribeRequest, ::api::v1::PositionsSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::PositionsSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::PositionsSubscribeResponse>* writer) { - return service->PositionsSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[48], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::TradesSubscribeRequest, ::api::v1::TradesSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::TradesSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::TradesSubscribeResponse>* writer) { - return service->TradesSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[49], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< TradingDataService::Service, ::api::v1::TransferResponsesSubscribeRequest, ::api::v1::TransferResponsesSubscribeResponse>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::TransferResponsesSubscribeRequest* req, - ::grpc::ServerWriter<::api::v1::TransferResponsesSubscribeResponse>* writer) { - return service->TransferResponsesSubscribe(ctx, req, writer); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[50], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::GetNodeSignaturesAggregateRequest* req, - ::api::v1::GetNodeSignaturesAggregateResponse* resp) { - return service->GetNodeSignaturesAggregate(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[51], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::AssetByIDRequest* req, - ::api::v1::AssetByIDResponse* resp) { - return service->AssetByID(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[52], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::AssetsRequest, ::api::v1::AssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::AssetsRequest* req, - ::api::v1::AssetsResponse* resp) { - return service->Assets(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[53], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::EstimateFeeRequest* req, - ::api::v1::EstimateFeeResponse* resp) { - return service->EstimateFee(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[54], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::EstimateMarginRequest* req, - ::api::v1::EstimateMarginResponse* resp) { - return service->EstimateMargin(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[55], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::ERC20WithdrawalApprovalRequest* req, - ::api::v1::ERC20WithdrawalApprovalResponse* resp) { - return service->ERC20WithdrawalApproval(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[56], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::WithdrawalRequest* req, - ::api::v1::WithdrawalResponse* resp) { - return service->Withdrawal(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[57], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::WithdrawalsRequest* req, - ::api::v1::WithdrawalsResponse* resp) { - return service->Withdrawals(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[58], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::DepositRequest, ::api::v1::DepositResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::DepositRequest* req, - ::api::v1::DepositResponse* resp) { - return service->Deposit(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[59], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::DepositsRequest, ::api::v1::DepositsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::DepositsRequest* req, - ::api::v1::DepositsResponse* resp) { - return service->Deposits(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[60], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::NetworkParametersRequest* req, - ::api::v1::NetworkParametersResponse* resp) { - return service->NetworkParameters(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[61], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::LiquidityProvisionsRequest* req, - ::api::v1::LiquidityProvisionsResponse* resp) { - return service->LiquidityProvisions(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[62], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OracleSpecRequest* req, - ::api::v1::OracleSpecResponse* resp) { - return service->OracleSpec(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[63], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OracleSpecsRequest* req, - ::api::v1::OracleSpecsResponse* resp) { - return service->OracleSpecs(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TradingDataService_method_names[64], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TradingDataService::Service, ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TradingDataService::Service* service, - ::grpc::ServerContext* ctx, - const ::api::v1::OracleDataBySpecRequest* req, - ::api::v1::OracleDataBySpecResponse* resp) { - return service->OracleDataBySpec(ctx, req, resp); - }, this))); -} - -TradingDataService::Service::~Service() { -} - -::grpc::Status TradingDataService::Service::MarketAccounts(::grpc::ServerContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::PartyAccounts(::grpc::ServerContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::FeeInfrastructureAccounts(::grpc::ServerContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Candles(::grpc::ServerContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketDataByID(::grpc::ServerContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketsData(::grpc::ServerContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketByID(::grpc::ServerContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketDepth(::grpc::ServerContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Markets(::grpc::ServerContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrderByMarketAndID(::grpc::ServerContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrderByReference(::grpc::ServerContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrdersByMarket(::grpc::ServerContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrdersByParty(::grpc::ServerContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrderByID(::grpc::ServerContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrderVersionsByID(::grpc::ServerContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarginLevels(::grpc::ServerContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Parties(::grpc::ServerContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::PartyByID(::grpc::ServerContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::PositionsByParty(::grpc::ServerContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::LastTrade(::grpc::ServerContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::TradesByMarket(::grpc::ServerContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::TradesByOrder(::grpc::ServerContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::TradesByParty(::grpc::ServerContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetProposals(::grpc::ServerContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetProposalsByParty(::grpc::ServerContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetVotesByParty(::grpc::ServerContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetNewMarketProposals(::grpc::ServerContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetUpdateMarketProposals(::grpc::ServerContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetNetworkParametersProposals(::grpc::ServerContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetNewAssetProposals(::grpc::ServerContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetProposalByID(::grpc::ServerContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetProposalByReference(::grpc::ServerContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ObserveGovernance(::grpc::ServerContext* context, const ::api::v1::ObserveGovernanceRequest* request, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ObservePartyProposals(::grpc::ServerContext* context, const ::api::v1::ObservePartyProposalsRequest* request, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ObservePartyVotes(::grpc::ServerContext* context, const ::api::v1::ObservePartyVotesRequest* request, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ObserveProposalVotes(::grpc::ServerContext* context, const ::api::v1::ObserveProposalVotesRequest* request, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream) { +::grpc::Status TradingService::Service::ObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream) { (void) context; (void) stream; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status TradingDataService::Service::Statistics(::grpc::ServerContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::LastBlockHeight(::grpc::ServerContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetVegaTime(::grpc::ServerContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::AccountsSubscribe(::grpc::ServerContext* context, const ::api::v1::AccountsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::CandlesSubscribe(::grpc::ServerContext* context, const ::api::v1::CandlesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarginLevelsSubscribe(::grpc::ServerContext* context, const ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketDepthSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketDepthUpdatesSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::MarketsDataSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OrdersSubscribe(::grpc::ServerContext* context, const ::api::v1::OrdersSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::PositionsSubscribe(::grpc::ServerContext* context, const ::api::v1::PositionsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::TradesSubscribe(::grpc::ServerContext* context, const ::api::v1::TradesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::TransferResponsesSubscribe(::grpc::ServerContext* context, const ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* writer) { - (void) context; - (void) request; - (void) writer; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::GetNodeSignaturesAggregate(::grpc::ServerContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::AssetByID(::grpc::ServerContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Assets(::grpc::ServerContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::EstimateFee(::grpc::ServerContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::EstimateMargin(::grpc::ServerContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::ERC20WithdrawalApproval(::grpc::ServerContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Withdrawal(::grpc::ServerContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Withdrawals(::grpc::ServerContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Deposit(::grpc::ServerContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::Deposits(::grpc::ServerContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::NetworkParameters(::grpc::ServerContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::LiquidityProvisions(::grpc::ServerContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OracleSpec(::grpc::ServerContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OracleSpecs(::grpc::ServerContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TradingDataService::Service::OracleDataBySpec(::grpc::ServerContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - } // namespace api } // namespace v1 diff --git a/grpc/clients/cpp/generated/api/trading.grpc.pb.h b/grpc/clients/cpp/generated/api/trading.grpc.pb.h index 0945b5fc..2667244d 100644 --- a/grpc/clients/cpp/generated/api/trading.grpc.pb.h +++ b/grpc/clients/cpp/generated/api/trading.grpc.pb.h @@ -37,46 +37,6 @@ class TradingService final { class StubInterface { public: virtual ~StubInterface() {} - // Prepare a submit order request - virtual ::grpc::Status PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::api::v1::PrepareSubmitOrderResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>> AsyncPrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>>(AsyncPrepareSubmitOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>> PrepareAsyncPrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>>(PrepareAsyncPrepareSubmitOrderRaw(context, request, cq)); - } - // Prepare a cancel order request - virtual ::grpc::Status PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::api::v1::PrepareCancelOrderResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>> AsyncPrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>>(AsyncPrepareCancelOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>> PrepareAsyncPrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>>(PrepareAsyncPrepareCancelOrderRaw(context, request, cq)); - } - // Prepare an amend order request - virtual ::grpc::Status PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::api::v1::PrepareAmendOrderResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>> AsyncPrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>>(AsyncPrepareAmendOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>> PrepareAsyncPrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>>(PrepareAsyncPrepareAmendOrderRaw(context, request, cq)); - } - // Request a withdrawal - virtual ::grpc::Status PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::api::v1::PrepareWithdrawResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>> AsyncPrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>>(AsyncPrepareWithdrawRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>> PrepareAsyncPrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>>(PrepareAsyncPrepareWithdrawRaw(context, request, cq)); - } - // Submit a signed transaction - virtual ::grpc::Status SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::api::v1::SubmitTransactionResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>> AsyncSubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>>(AsyncSubmitTransactionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>> PrepareAsyncSubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>>(PrepareAsyncSubmitTransactionRaw(context, request, cq)); - } // Submit a signed transaction (v2) virtual ::grpc::Status SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::api::v1::SubmitTransactionV2Response* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionV2Response>> AsyncSubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) { @@ -85,22 +45,6 @@ class TradingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionV2Response>> PrepareAsyncSubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionV2Response>>(PrepareAsyncSubmitTransactionV2Raw(context, request, cq)); } - // Prepare a governance proposal - virtual ::grpc::Status PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::api::v1::PrepareProposalSubmissionResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>> AsyncPrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>>(AsyncPrepareProposalSubmissionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>> PrepareAsyncPrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>>(PrepareAsyncPrepareProposalSubmissionRaw(context, request, cq)); - } - // Prepare a governance vote - virtual ::grpc::Status PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::api::v1::PrepareVoteSubmissionResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>> AsyncPrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>>(AsyncPrepareVoteSubmissionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>> PrepareAsyncPrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>>(PrepareAsyncPrepareVoteSubmissionRaw(context, request, cq)); - } // Propagate a chain event virtual ::grpc::Status PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::api::v1::PropagateChainEventResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PropagateChainEventResponse>> AsyncPropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { @@ -109,52 +53,43 @@ class TradingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PropagateChainEventResponse>> PrepareAsyncPropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PropagateChainEventResponse>>(PrepareAsyncPropagateChainEventRaw(context, request, cq)); } - // Prepare a liquidity provision request - virtual ::grpc::Status PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::api::v1::PrepareLiquidityProvisionResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>> AsyncPrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>>(AsyncPrepareLiquidityProvisionRaw(context, request, cq)); + // Get Statistics on Vega + virtual ::grpc::Status Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>> AsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>>(AsyncStatisticsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>> PrepareAsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>>(PrepareAsyncStatisticsRaw(context, request, cq)); + } + // Get the height of the last tendermint block + virtual ::grpc::Status LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>> AsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>>(AsyncLastBlockHeightRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>> PrepareAsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>>(PrepareAsyncLastBlockHeightRaw(context, request, cq)); + } + // Get Time + virtual ::grpc::Status GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>> AsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>>(AsyncGetVegaTimeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>> PrepareAsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>>(PrepareAsyncGetVegaTimeRaw(context, request, cq)); + } + // Subscribe to a stream of events from the core + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> ObserveEventBus(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(ObserveEventBusRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> AsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(AsyncObserveEventBusRaw(context, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>> PrepareAsyncPrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>>(PrepareAsyncPrepareLiquidityProvisionRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> PrepareAsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(PrepareAsyncObserveEventBusRaw(context, cq)); } class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // Prepare a submit order request - virtual void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Prepare a cancel order request - virtual void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Prepare an amend order request - virtual void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Request a withdrawal - virtual void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Submit a signed transaction - virtual void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif // Submit a signed transaction (v2) virtual void SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL @@ -162,33 +97,39 @@ class TradingService final { #else virtual void SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - // Prepare a governance proposal - virtual void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, std::function) = 0; + // Propagate a chain event + virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // Get Statistics on Vega + virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else - virtual void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - // Prepare a governance vote - virtual void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, std::function) = 0; + // Get the height of the last tendermint block + virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else - virtual void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - // Propagate a chain event - virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function) = 0; + // Get Time + virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function) = 0; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; #else - virtual void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif - // Prepare a liquidity provision request - virtual void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, std::function) = 0; + // Subscribe to a stream of events from the core #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ObserveEventBus(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) = 0; #else - virtual void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) = 0; #endif }; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL @@ -199,65 +140,23 @@ class TradingService final { #endif virtual class experimental_async_interface* experimental_async() { return nullptr; } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>* AsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareSubmitOrderResponse>* PrepareAsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>* AsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareCancelOrderResponse>* PrepareAsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>* AsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareAmendOrderResponse>* PrepareAsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>* AsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareWithdrawResponse>* PrepareAsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>* AsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionResponse>* PrepareAsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionV2Response>* AsyncSubmitTransactionV2Raw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::SubmitTransactionV2Response>* PrepareAsyncSubmitTransactionV2Raw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>* AsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareProposalSubmissionResponse>* PrepareAsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>* AsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareVoteSubmissionResponse>* PrepareAsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PropagateChainEventResponse>* AsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PropagateChainEventResponse>* PrepareAsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>* AsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PrepareLiquidityProvisionResponse>* PrepareAsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>* AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>* PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>* AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>* PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>* AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>* PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBusRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::api::v1::PrepareSubmitOrderResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>> AsyncPrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>>(AsyncPrepareSubmitOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>> PrepareAsyncPrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>>(PrepareAsyncPrepareSubmitOrderRaw(context, request, cq)); - } - ::grpc::Status PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::api::v1::PrepareCancelOrderResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>> AsyncPrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>>(AsyncPrepareCancelOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>> PrepareAsyncPrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>>(PrepareAsyncPrepareCancelOrderRaw(context, request, cq)); - } - ::grpc::Status PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::api::v1::PrepareAmendOrderResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>> AsyncPrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>>(AsyncPrepareAmendOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>> PrepareAsyncPrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>>(PrepareAsyncPrepareAmendOrderRaw(context, request, cq)); - } - ::grpc::Status PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::api::v1::PrepareWithdrawResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>> AsyncPrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>>(AsyncPrepareWithdrawRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>> PrepareAsyncPrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>>(PrepareAsyncPrepareWithdrawRaw(context, request, cq)); - } - ::grpc::Status SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::api::v1::SubmitTransactionResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>> AsyncSubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>>(AsyncSubmitTransactionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>> PrepareAsyncSubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>>(PrepareAsyncSubmitTransactionRaw(context, request, cq)); - } ::grpc::Status SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::api::v1::SubmitTransactionV2Response* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>> AsyncSubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>>(AsyncSubmitTransactionV2Raw(context, request, cq)); @@ -265,20 +164,6 @@ class TradingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>> PrepareAsyncSubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>>(PrepareAsyncSubmitTransactionV2Raw(context, request, cq)); } - ::grpc::Status PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::api::v1::PrepareProposalSubmissionResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>> AsyncPrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>>(AsyncPrepareProposalSubmissionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>> PrepareAsyncPrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>>(PrepareAsyncPrepareProposalSubmissionRaw(context, request, cq)); - } - ::grpc::Status PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::api::v1::PrepareVoteSubmissionResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>> AsyncPrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>>(AsyncPrepareVoteSubmissionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>> PrepareAsyncPrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>>(PrepareAsyncPrepareVoteSubmissionRaw(context, request, cq)); - } ::grpc::Status PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::api::v1::PropagateChainEventResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>> AsyncPropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>>(AsyncPropagateChainEventRaw(context, request, cq)); @@ -286,75 +171,73 @@ class TradingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>> PrepareAsyncPropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>>(PrepareAsyncPropagateChainEventRaw(context, request, cq)); } - ::grpc::Status PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::api::v1::PrepareLiquidityProvisionResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>> AsyncPrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>>(AsyncPrepareLiquidityProvisionRaw(context, request, cq)); + ::grpc::Status Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>> AsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>>(AsyncStatisticsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>> PrepareAsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>>(PrepareAsyncStatisticsRaw(context, request, cq)); + } + ::grpc::Status LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>> AsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>>(AsyncLastBlockHeightRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>> PrepareAsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>>(PrepareAsyncLastBlockHeightRaw(context, request, cq)); + } + ::grpc::Status GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>> AsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>>(AsyncGetVegaTimeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>> PrepareAsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>>(PrepareAsyncGetVegaTimeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> ObserveEventBus(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(ObserveEventBusRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> AsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(AsyncObserveEventBusRaw(context, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>> PrepareAsyncPrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>>(PrepareAsyncPrepareLiquidityProvisionRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> PrepareAsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(PrepareAsyncObserveEventBusRaw(context, cq)); } class experimental_async final : public StubInterface::experimental_async_interface { public: - void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PrepareSubmitOrder(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PrepareCancelOrder(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PrepareAmendOrder(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PrepareWithdraw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void SubmitTransaction(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif void SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response, ::grpc::ClientUnaryReactor* reactor) override; #else void SubmitTransactionV2(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, std::function) override; + void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::ClientUnaryReactor* reactor) override; #else - void PrepareProposalSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, std::function) override; + void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; #else - void PrepareVoteSubmission(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, std::function) override; + void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::ClientUnaryReactor* reactor) override; #else - void PropagateChainEvent(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif - void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, std::function) override; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ObserveEventBus(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) override; #else - void PrepareLiquidityProvision(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) override; #endif private: friend class Stub; @@ -367,36 +250,25 @@ class TradingService final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>* AsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareSubmitOrderResponse>* PrepareAsyncPrepareSubmitOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareSubmitOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>* AsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareCancelOrderResponse>* PrepareAsyncPrepareCancelOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareCancelOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>* AsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareAmendOrderResponse>* PrepareAsyncPrepareAmendOrderRaw(::grpc::ClientContext* context, const ::api::v1::PrepareAmendOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>* AsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareWithdrawResponse>* PrepareAsyncPrepareWithdrawRaw(::grpc::ClientContext* context, const ::api::v1::PrepareWithdrawRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>* AsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionResponse>* PrepareAsyncSubmitTransactionRaw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>* AsyncSubmitTransactionV2Raw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::api::v1::SubmitTransactionV2Response>* PrepareAsyncSubmitTransactionV2Raw(::grpc::ClientContext* context, const ::api::v1::SubmitTransactionV2Request& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>* AsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareProposalSubmissionResponse>* PrepareAsyncPrepareProposalSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareProposalSubmissionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>* AsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareVoteSubmissionResponse>* PrepareAsyncPrepareVoteSubmissionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareVoteSubmissionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* AsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::api::v1::PropagateChainEventResponse>* PrepareAsyncPropagateChainEventRaw(::grpc::ClientContext* context, const ::api::v1::PropagateChainEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>* AsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PrepareLiquidityProvisionResponse>* PrepareAsyncPrepareLiquidityProvisionRaw(::grpc::ClientContext* context, const ::api::v1::PrepareLiquidityProvisionRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_PrepareSubmitOrder_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareCancelOrder_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareAmendOrder_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareWithdraw_; - const ::grpc::internal::RpcMethod rpcmethod_SubmitTransaction_; + ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBusRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_SubmitTransactionV2_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareProposalSubmission_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareVoteSubmission_; const ::grpc::internal::RpcMethod rpcmethod_PropagateChainEvent_; - const ::grpc::internal::RpcMethod rpcmethod_PrepareLiquidityProvision_; + const ::grpc::internal::RpcMethod rpcmethod_Statistics_; + const ::grpc::internal::RpcMethod rpcmethod_LastBlockHeight_; + const ::grpc::internal::RpcMethod rpcmethod_GetVegaTime_; + const ::grpc::internal::RpcMethod rpcmethod_ObserveEventBus_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -404,1079 +276,646 @@ class TradingService final { public: Service(); virtual ~Service(); - // Prepare a submit order request - virtual ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response); - // Prepare a cancel order request - virtual ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response); - // Prepare an amend order request - virtual ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response); - // Request a withdrawal - virtual ::grpc::Status PrepareWithdraw(::grpc::ServerContext* context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response); - // Submit a signed transaction - virtual ::grpc::Status SubmitTransaction(::grpc::ServerContext* context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response); // Submit a signed transaction (v2) virtual ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response); - // Prepare a governance proposal - virtual ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response); - // Prepare a governance vote - virtual ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response); // Propagate a chain event virtual ::grpc::Status PropagateChainEvent(::grpc::ServerContext* context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response); - // Prepare a liquidity provision request - virtual ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response); + // Get Statistics on Vega + virtual ::grpc::Status Statistics(::grpc::ServerContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response); + // Get the height of the last tendermint block + virtual ::grpc::Status LastBlockHeight(::grpc::ServerContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response); + // Get Time + virtual ::grpc::Status GetVegaTime(::grpc::ServerContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response); + // Subscribe to a stream of events from the core + virtual ::grpc::Status ObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream); }; template - class WithAsyncMethod_PrepareSubmitOrder : public BaseClass { + class WithAsyncMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PrepareSubmitOrder() { + WithAsyncMethod_SubmitTransactionV2() { ::grpc::Service::MarkMethodAsync(0); } - ~WithAsyncMethod_PrepareSubmitOrder() override { + ~WithAsyncMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareSubmitOrder(::grpc::ServerContext* context, ::api::v1::PrepareSubmitOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareSubmitOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSubmitTransactionV2(::grpc::ServerContext* context, ::api::v1::SubmitTransactionV2Request* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::SubmitTransactionV2Response>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_PrepareCancelOrder : public BaseClass { + class WithAsyncMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PrepareCancelOrder() { + WithAsyncMethod_PropagateChainEvent() { ::grpc::Service::MarkMethodAsync(1); } - ~WithAsyncMethod_PrepareCancelOrder() override { + ~WithAsyncMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareCancelOrder(::grpc::ServerContext* context, ::api::v1::PrepareCancelOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareCancelOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestPropagateChainEvent(::grpc::ServerContext* context, ::api::v1::PropagateChainEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PropagateChainEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_PrepareAmendOrder : public BaseClass { + class WithAsyncMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PrepareAmendOrder() { + WithAsyncMethod_Statistics() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_PrepareAmendOrder() override { + ~WithAsyncMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareAmendOrder(::grpc::ServerContext* context, ::api::v1::PrepareAmendOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareAmendOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestStatistics(::grpc::ServerContext* context, ::api::v1::StatisticsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::StatisticsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_PrepareWithdraw : public BaseClass { + class WithAsyncMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PrepareWithdraw() { + WithAsyncMethod_LastBlockHeight() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_PrepareWithdraw() override { + ~WithAsyncMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareWithdraw(::grpc::ServerContext* context, ::api::v1::PrepareWithdrawRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareWithdrawResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestLastBlockHeight(::grpc::ServerContext* context, ::api::v1::LastBlockHeightRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::LastBlockHeightResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SubmitTransaction : public BaseClass { + class WithAsyncMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_SubmitTransaction() { + WithAsyncMethod_GetVegaTime() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_SubmitTransaction() override { + ~WithAsyncMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSubmitTransaction(::grpc::ServerContext* context, ::api::v1::SubmitTransactionRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::SubmitTransactionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetVegaTime(::grpc::ServerContext* context, ::api::v1::GetVegaTimeRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetVegaTimeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SubmitTransactionV2 : public BaseClass { + class WithAsyncMethod_ObserveEventBus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_SubmitTransactionV2() { + WithAsyncMethod_ObserveEventBus() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_SubmitTransactionV2() override { + ~WithAsyncMethod_ObserveEventBus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { + ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSubmitTransactionV2(::grpc::ServerContext* context, ::api::v1::SubmitTransactionV2Request* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::SubmitTransactionV2Response>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + void RequestObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(5, context, stream, new_call_cq, notification_cq, tag); } }; + typedef WithAsyncMethod_SubmitTransactionV2 > > > > > AsyncService; template - class WithAsyncMethod_PrepareProposalSubmission : public BaseClass { + class ExperimentalWithCallbackMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PrepareProposalSubmission() { - ::grpc::Service::MarkMethodAsync(6); + ExperimentalWithCallbackMethod_SubmitTransactionV2() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response) { return this->SubmitTransactionV2(context, request, response); }));} + void SetMessageAllocatorFor_SubmitTransactionV2( + ::grpc::experimental::MessageAllocator< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithAsyncMethod_PrepareProposalSubmission() override { + ~ExperimentalWithCallbackMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPrepareProposalSubmission(::grpc::ServerContext* context, ::api::v1::PrepareProposalSubmissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareProposalSubmissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PrepareVoteSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PrepareVoteSubmission() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_PrepareVoteSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPrepareVoteSubmission(::grpc::ServerContext* context, ::api::v1::PrepareVoteSubmissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareVoteSubmissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PropagateChainEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PropagateChainEvent() { - ::grpc::Service::MarkMethodAsync(8); - } - ~WithAsyncMethod_PropagateChainEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPropagateChainEvent(::grpc::ServerContext* context, ::api::v1::PropagateChainEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PropagateChainEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PrepareLiquidityProvision : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PrepareLiquidityProvision() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_PrepareLiquidityProvision() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPrepareLiquidityProvision(::grpc::ServerContext* context, ::api::v1::PrepareLiquidityProvisionRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PrepareLiquidityProvisionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_PrepareSubmitOrder > > > > > > > > > AsyncService; - template - class ExperimentalWithCallbackMethod_PrepareSubmitOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_PrepareSubmitOrder() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PrepareSubmitOrderRequest* request, ::api::v1::PrepareSubmitOrderResponse* response) { return this->PrepareSubmitOrder(context, request, response); }));} - void SetMessageAllocatorFor_PrepareSubmitOrder( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_PrepareSubmitOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareSubmitOrder( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) + virtual ::grpc::ServerUnaryReactor* SubmitTransactionV2( + ::grpc::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareSubmitOrder( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) + virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransactionV2( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PrepareCancelOrder : public BaseClass { + class ExperimentalWithCallbackMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareCancelOrder() { + ExperimentalWithCallbackMethod_PropagateChainEvent() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::api::v1::PrepareCancelOrderRequest* request, ::api::v1::PrepareCancelOrderResponse* response) { return this->PrepareCancelOrder(context, request, response); }));} - void SetMessageAllocatorFor_PrepareCancelOrder( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse>* allocator) { + context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response) { return this->PropagateChainEvent(context, request, response); }));} + void SetMessageAllocatorFor_PropagateChainEvent( + ::grpc::experimental::MessageAllocator< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>* allocator) { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_PrepareCancelOrder() override { + ~ExperimentalWithCallbackMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareCancelOrder( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) + virtual ::grpc::ServerUnaryReactor* PropagateChainEvent( + ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareCancelOrder( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) + virtual ::grpc::experimental::ServerUnaryReactor* PropagateChainEvent( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PrepareAmendOrder : public BaseClass { + class ExperimentalWithCallbackMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareAmendOrder() { + ExperimentalWithCallbackMethod_Statistics() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::api::v1::PrepareAmendOrderRequest* request, ::api::v1::PrepareAmendOrderResponse* response) { return this->PrepareAmendOrder(context, request, response); }));} - void SetMessageAllocatorFor_PrepareAmendOrder( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse>* allocator) { + context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response) { return this->Statistics(context, request, response); }));} + void SetMessageAllocatorFor_Statistics( + ::grpc::experimental::MessageAllocator< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>* allocator) { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_PrepareAmendOrder() override { + ~ExperimentalWithCallbackMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareAmendOrder( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) + virtual ::grpc::ServerUnaryReactor* Statistics( + ::grpc::CallbackServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareAmendOrder( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) + virtual ::grpc::experimental::ServerUnaryReactor* Statistics( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PrepareWithdraw : public BaseClass { + class ExperimentalWithCallbackMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareWithdraw() { + ExperimentalWithCallbackMethod_LastBlockHeight() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::api::v1::PrepareWithdrawRequest* request, ::api::v1::PrepareWithdrawResponse* response) { return this->PrepareWithdraw(context, request, response); }));} - void SetMessageAllocatorFor_PrepareWithdraw( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse>* allocator) { + context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response) { return this->LastBlockHeight(context, request, response); }));} + void SetMessageAllocatorFor_LastBlockHeight( + ::grpc::experimental::MessageAllocator< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>* allocator) { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_PrepareWithdraw() override { + ~ExperimentalWithCallbackMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareWithdraw( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) + virtual ::grpc::ServerUnaryReactor* LastBlockHeight( + ::grpc::CallbackServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareWithdraw( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) + virtual ::grpc::experimental::ServerUnaryReactor* LastBlockHeight( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithCallbackMethod_SubmitTransaction : public BaseClass { + class ExperimentalWithCallbackMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_SubmitTransaction() { + ExperimentalWithCallbackMethod_GetVegaTime() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::api::v1::SubmitTransactionRequest* request, ::api::v1::SubmitTransactionResponse* response) { return this->SubmitTransaction(context, request, response); }));} - void SetMessageAllocatorFor_SubmitTransaction( - ::grpc::experimental::MessageAllocator< ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse>* allocator) { + context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response) { return this->GetVegaTime(context, request, response); }));} + void SetMessageAllocatorFor_GetVegaTime( + ::grpc::experimental::MessageAllocator< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>* allocator) { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); #else ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_SubmitTransaction() override { + ~ExperimentalWithCallbackMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* SubmitTransaction( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) + virtual ::grpc::ServerUnaryReactor* GetVegaTime( + ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransaction( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) + virtual ::grpc::experimental::ServerUnaryReactor* GetVegaTime( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithCallbackMethod_SubmitTransactionV2 : public BaseClass { + class ExperimentalWithCallbackMethod_ObserveEventBus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_SubmitTransactionV2() { + ExperimentalWithCallbackMethod_ObserveEventBus() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>( + new ::grpc::internal::CallbackBidiHandler< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::api::v1::SubmitTransactionV2Request* request, ::api::v1::SubmitTransactionV2Response* response) { return this->SubmitTransactionV2(context, request, response); }));} - void SetMessageAllocatorFor_SubmitTransactionV2( - ::grpc::experimental::MessageAllocator< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>*>(handler) - ->SetMessageAllocator(allocator); + context) { return this->ObserveEventBus(context); })); } - ~ExperimentalWithCallbackMethod_SubmitTransactionV2() override { + ~ExperimentalWithCallbackMethod_ObserveEventBus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { + ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* SubmitTransactionV2( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) + virtual ::grpc::ServerBidiReactor< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBus( + ::grpc::CallbackServerContext* /*context*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransactionV2( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) + virtual ::grpc::experimental::ServerBidiReactor< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBus( + ::grpc::experimental::CallbackServerContext* /*context*/) #endif { return nullptr; } }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_SubmitTransactionV2 > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_SubmitTransactionV2 > > > > > ExperimentalCallbackService; template - class ExperimentalWithCallbackMethod_PrepareProposalSubmission : public BaseClass { + class WithGenericMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareProposalSubmission() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PrepareProposalSubmissionRequest* request, ::api::v1::PrepareProposalSubmissionResponse* response) { return this->PrepareProposalSubmission(context, request, response); }));} - void SetMessageAllocatorFor_PrepareProposalSubmission( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse>*>(handler) - ->SetMessageAllocator(allocator); + WithGenericMethod_SubmitTransactionV2() { + ::grpc::Service::MarkMethodGeneric(0); } - ~ExperimentalWithCallbackMethod_PrepareProposalSubmission() override { + ~WithGenericMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareProposalSubmission( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareProposalSubmission( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) - #endif - { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PrepareVoteSubmission : public BaseClass { + class WithGenericMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareVoteSubmission() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PrepareVoteSubmissionRequest* request, ::api::v1::PrepareVoteSubmissionResponse* response) { return this->PrepareVoteSubmission(context, request, response); }));} - void SetMessageAllocatorFor_PrepareVoteSubmission( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse>*>(handler) - ->SetMessageAllocator(allocator); + WithGenericMethod_PropagateChainEvent() { + ::grpc::Service::MarkMethodGeneric(1); } - ~ExperimentalWithCallbackMethod_PrepareVoteSubmission() override { + ~WithGenericMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareVoteSubmission( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareVoteSubmission( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) - #endif - { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PropagateChainEvent : public BaseClass { + class WithGenericMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PropagateChainEvent() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PropagateChainEventRequest* request, ::api::v1::PropagateChainEventResponse* response) { return this->PropagateChainEvent(context, request, response); }));} - void SetMessageAllocatorFor_PropagateChainEvent( - ::grpc::experimental::MessageAllocator< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>*>(handler) - ->SetMessageAllocator(allocator); + WithGenericMethod_Statistics() { + ::grpc::Service::MarkMethodGeneric(2); } - ~ExperimentalWithCallbackMethod_PropagateChainEvent() override { + ~WithGenericMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PropagateChainEvent( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PropagateChainEvent( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) - #endif - { return nullptr; } }; template - class ExperimentalWithCallbackMethod_PrepareLiquidityProvision : public BaseClass { + class WithGenericMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_PrepareLiquidityProvision() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PrepareLiquidityProvisionRequest* request, ::api::v1::PrepareLiquidityProvisionResponse* response) { return this->PrepareLiquidityProvision(context, request, response); }));} - void SetMessageAllocatorFor_PrepareLiquidityProvision( - ::grpc::experimental::MessageAllocator< ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_PrepareLiquidityProvision() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareLiquidityProvision( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareLiquidityProvision( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) - #endif - { return nullptr; } - }; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - typedef ExperimentalWithCallbackMethod_PrepareSubmitOrder > > > > > > > > > CallbackService; - #endif - - typedef ExperimentalWithCallbackMethod_PrepareSubmitOrder > > > > > > > > > ExperimentalCallbackService; - template - class WithGenericMethod_PrepareSubmitOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareSubmitOrder() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_PrepareSubmitOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareCancelOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareCancelOrder() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_PrepareCancelOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareAmendOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareAmendOrder() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_PrepareAmendOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareWithdraw : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareWithdraw() { + WithGenericMethod_LastBlockHeight() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_PrepareWithdraw() override { + ~WithGenericMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_SubmitTransaction : public BaseClass { + class WithGenericMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_SubmitTransaction() { + WithGenericMethod_GetVegaTime() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_SubmitTransaction() override { + ~WithGenericMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_SubmitTransactionV2 : public BaseClass { + class WithGenericMethod_ObserveEventBus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_SubmitTransactionV2() { + WithGenericMethod_ObserveEventBus() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_SubmitTransactionV2() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareProposalSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareProposalSubmission() { - ::grpc::Service::MarkMethodGeneric(6); - } - ~WithGenericMethod_PrepareProposalSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareVoteSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareVoteSubmission() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_PrepareVoteSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PropagateChainEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PropagateChainEvent() { - ::grpc::Service::MarkMethodGeneric(8); - } - ~WithGenericMethod_PropagateChainEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PrepareLiquidityProvision : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PrepareLiquidityProvision() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_PrepareLiquidityProvision() override { + ~WithGenericMethod_ObserveEventBus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { + ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithRawMethod_PrepareSubmitOrder : public BaseClass { + class WithRawMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PrepareSubmitOrder() { + WithRawMethod_SubmitTransactionV2() { ::grpc::Service::MarkMethodRaw(0); } - ~WithRawMethod_PrepareSubmitOrder() override { + ~WithRawMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareSubmitOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSubmitTransactionV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_PrepareCancelOrder : public BaseClass { + class WithRawMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PrepareCancelOrder() { + WithRawMethod_PropagateChainEvent() { ::grpc::Service::MarkMethodRaw(1); } - ~WithRawMethod_PrepareCancelOrder() override { + ~WithRawMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareCancelOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestPropagateChainEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_PrepareAmendOrder : public BaseClass { + class WithRawMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PrepareAmendOrder() { + WithRawMethod_Statistics() { ::grpc::Service::MarkMethodRaw(2); } - ~WithRawMethod_PrepareAmendOrder() override { + ~WithRawMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareAmendOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestStatistics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_PrepareWithdraw : public BaseClass { + class WithRawMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PrepareWithdraw() { + WithRawMethod_LastBlockHeight() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_PrepareWithdraw() override { + ~WithRawMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareWithdraw(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestLastBlockHeight(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SubmitTransaction : public BaseClass { + class WithRawMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_SubmitTransaction() { + WithRawMethod_GetVegaTime() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_SubmitTransaction() override { + ~WithRawMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSubmitTransaction(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetVegaTime(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SubmitTransactionV2 : public BaseClass { + class WithRawMethod_ObserveEventBus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_SubmitTransactionV2() { + WithRawMethod_ObserveEventBus() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_SubmitTransactionV2() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSubmitTransactionV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PrepareProposalSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PrepareProposalSubmission() { - ::grpc::Service::MarkMethodRaw(6); - } - ~WithRawMethod_PrepareProposalSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPrepareProposalSubmission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PrepareVoteSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PrepareVoteSubmission() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_PrepareVoteSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPrepareVoteSubmission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PropagateChainEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PropagateChainEvent() { - ::grpc::Service::MarkMethodRaw(8); - } - ~WithRawMethod_PropagateChainEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPropagateChainEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PrepareLiquidityProvision : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PrepareLiquidityProvision() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_PrepareLiquidityProvision() override { + ~WithRawMethod_ObserveEventBus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { + ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPrepareLiquidityProvision(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + void RequestObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(5, context, stream, new_call_cq, notification_cq, tag); } }; template - class ExperimentalWithRawCallbackMethod_PrepareSubmitOrder : public BaseClass { + class ExperimentalWithRawCallbackMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_PrepareSubmitOrder() { + ExperimentalWithRawCallbackMethod_SubmitTransactionV2() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else @@ -1490,31 +929,31 @@ class TradingService final { #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareSubmitOrder(context, request, response); })); + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitTransactionV2(context, request, response); })); } - ~ExperimentalWithRawCallbackMethod_PrepareSubmitOrder() override { + ~ExperimentalWithRawCallbackMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareSubmitOrder( + virtual ::grpc::ServerUnaryReactor* SubmitTransactionV2( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareSubmitOrder( + virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransactionV2( ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithRawCallbackMethod_PrepareCancelOrder : public BaseClass { + class ExperimentalWithRawCallbackMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_PrepareCancelOrder() { + ExperimentalWithRawCallbackMethod_PropagateChainEvent() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else @@ -1528,31 +967,31 @@ class TradingService final { #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareCancelOrder(context, request, response); })); + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PropagateChainEvent(context, request, response); })); } - ~ExperimentalWithRawCallbackMethod_PrepareCancelOrder() override { + ~ExperimentalWithRawCallbackMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareCancelOrder( + virtual ::grpc::ServerUnaryReactor* PropagateChainEvent( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareCancelOrder( + virtual ::grpc::experimental::ServerUnaryReactor* PropagateChainEvent( ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithRawCallbackMethod_PrepareAmendOrder : public BaseClass { + class ExperimentalWithRawCallbackMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_PrepareAmendOrder() { + ExperimentalWithRawCallbackMethod_Statistics() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else @@ -1566,31 +1005,31 @@ class TradingService final { #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareAmendOrder(context, request, response); })); + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Statistics(context, request, response); })); } - ~ExperimentalWithRawCallbackMethod_PrepareAmendOrder() override { + ~ExperimentalWithRawCallbackMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareAmendOrder( + virtual ::grpc::ServerUnaryReactor* Statistics( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareAmendOrder( + virtual ::grpc::experimental::ServerUnaryReactor* Statistics( ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithRawCallbackMethod_PrepareWithdraw : public BaseClass { + class ExperimentalWithRawCallbackMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_PrepareWithdraw() { + ExperimentalWithRawCallbackMethod_LastBlockHeight() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else @@ -1604,31 +1043,31 @@ class TradingService final { #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareWithdraw(context, request, response); })); + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LastBlockHeight(context, request, response); })); } - ~ExperimentalWithRawCallbackMethod_PrepareWithdraw() override { + ~ExperimentalWithRawCallbackMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareWithdraw( + virtual ::grpc::ServerUnaryReactor* LastBlockHeight( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareWithdraw( + virtual ::grpc::experimental::ServerUnaryReactor* LastBlockHeight( ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithRawCallbackMethod_SubmitTransaction : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_SubmitTransaction() { + ExperimentalWithRawCallbackMethod_GetVegaTime() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else @@ -1642,13769 +1081,201 @@ class TradingService final { #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitTransaction(context, request, response); })); + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVegaTime(context, request, response); })); } - ~ExperimentalWithRawCallbackMethod_SubmitTransaction() override { + ~ExperimentalWithRawCallbackMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* SubmitTransaction( + virtual ::grpc::ServerUnaryReactor* GetVegaTime( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransaction( + virtual ::grpc::experimental::ServerUnaryReactor* GetVegaTime( ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) #endif { return nullptr; } }; template - class ExperimentalWithRawCallbackMethod_SubmitTransactionV2 : public BaseClass { + class ExperimentalWithRawCallbackMethod_ObserveEventBus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_SubmitTransactionV2() { + ExperimentalWithRawCallbackMethod_ObserveEventBus() { #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::Service:: #else ::grpc::Service::experimental(). #endif MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitTransactionV2(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_SubmitTransactionV2() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* SubmitTransactionV2( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* SubmitTransactionV2( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PrepareProposalSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PrepareProposalSubmission() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareProposalSubmission(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PrepareProposalSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareProposalSubmission( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareProposalSubmission( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PrepareVoteSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PrepareVoteSubmission() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareVoteSubmission(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PrepareVoteSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareVoteSubmission( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareVoteSubmission( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PropagateChainEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PropagateChainEvent() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PropagateChainEvent(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PropagateChainEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PropagateChainEvent( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PropagateChainEvent( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PrepareLiquidityProvision : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PrepareLiquidityProvision() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::CallbackServerContext* #else ::grpc::experimental::CallbackServerContext* #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PrepareLiquidityProvision(context, request, response); })); + context) { return this->ObserveEventBus(context); })); } - ~ExperimentalWithRawCallbackMethod_PrepareLiquidityProvision() override { + ~ExperimentalWithRawCallbackMethod_ObserveEventBus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { + ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PrepareLiquidityProvision( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* ObserveEventBus( + ::grpc::CallbackServerContext* /*context*/) #else - virtual ::grpc::experimental::ServerUnaryReactor* PrepareLiquidityProvision( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* ObserveEventBus( + ::grpc::experimental::CallbackServerContext* /*context*/) #endif { return nullptr; } }; template - class WithStreamedUnaryMethod_PrepareSubmitOrder : public BaseClass { + class WithStreamedUnaryMethod_SubmitTransactionV2 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PrepareSubmitOrder() { + WithStreamedUnaryMethod_SubmitTransactionV2() { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse>( + ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareSubmitOrderRequest, ::api::v1::PrepareSubmitOrderResponse>* streamer) { - return this->StreamedPrepareSubmitOrder(context, + ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>* streamer) { + return this->StreamedSubmitTransactionV2(context, streamer); })); } - ~WithStreamedUnaryMethod_PrepareSubmitOrder() override { + ~WithStreamedUnaryMethod_SubmitTransactionV2() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PrepareSubmitOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareSubmitOrderRequest* /*request*/, ::api::v1::PrepareSubmitOrderResponse* /*response*/) override { + ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareSubmitOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareSubmitOrderRequest,::api::v1::PrepareSubmitOrderResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedSubmitTransactionV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::SubmitTransactionV2Request,::api::v1::SubmitTransactionV2Response>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PrepareCancelOrder : public BaseClass { + class WithStreamedUnaryMethod_PropagateChainEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PrepareCancelOrder() { + WithStreamedUnaryMethod_PropagateChainEvent() { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse>( + ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareCancelOrderRequest, ::api::v1::PrepareCancelOrderResponse>* streamer) { - return this->StreamedPrepareCancelOrder(context, + ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>* streamer) { + return this->StreamedPropagateChainEvent(context, streamer); })); } - ~WithStreamedUnaryMethod_PrepareCancelOrder() override { + ~WithStreamedUnaryMethod_PropagateChainEvent() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PrepareCancelOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareCancelOrderRequest* /*request*/, ::api::v1::PrepareCancelOrderResponse* /*response*/) override { + ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareCancelOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareCancelOrderRequest,::api::v1::PrepareCancelOrderResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedPropagateChainEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PropagateChainEventRequest,::api::v1::PropagateChainEventResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PrepareAmendOrder : public BaseClass { + class WithStreamedUnaryMethod_Statistics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PrepareAmendOrder() { + WithStreamedUnaryMethod_Statistics() { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse>( + ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareAmendOrderRequest, ::api::v1::PrepareAmendOrderResponse>* streamer) { - return this->StreamedPrepareAmendOrder(context, + ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>* streamer) { + return this->StreamedStatistics(context, streamer); })); } - ~WithStreamedUnaryMethod_PrepareAmendOrder() override { + ~WithStreamedUnaryMethod_Statistics() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PrepareAmendOrder(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareAmendOrderRequest* /*request*/, ::api::v1::PrepareAmendOrderResponse* /*response*/) override { + ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareAmendOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareAmendOrderRequest,::api::v1::PrepareAmendOrderResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedStatistics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::StatisticsRequest,::api::v1::StatisticsResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PrepareWithdraw : public BaseClass { + class WithStreamedUnaryMethod_LastBlockHeight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PrepareWithdraw() { + WithStreamedUnaryMethod_LastBlockHeight() { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse>( + ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareWithdrawRequest, ::api::v1::PrepareWithdrawResponse>* streamer) { - return this->StreamedPrepareWithdraw(context, + ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>* streamer) { + return this->StreamedLastBlockHeight(context, streamer); })); } - ~WithStreamedUnaryMethod_PrepareWithdraw() override { + ~WithStreamedUnaryMethod_LastBlockHeight() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PrepareWithdraw(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareWithdrawRequest* /*request*/, ::api::v1::PrepareWithdrawResponse* /*response*/) override { + ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareWithdraw(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareWithdrawRequest,::api::v1::PrepareWithdrawResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedLastBlockHeight(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::LastBlockHeightRequest,::api::v1::LastBlockHeightResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_SubmitTransaction : public BaseClass { + class WithStreamedUnaryMethod_GetVegaTime : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_SubmitTransaction() { + WithStreamedUnaryMethod_GetVegaTime() { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::SubmitTransactionRequest, ::api::v1::SubmitTransactionResponse>* streamer) { - return this->StreamedSubmitTransaction(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SubmitTransaction() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SubmitTransaction(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionRequest* /*request*/, ::api::v1::SubmitTransactionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSubmitTransaction(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::SubmitTransactionRequest,::api::v1::SubmitTransactionResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SubmitTransactionV2 : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SubmitTransactionV2() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::SubmitTransactionV2Request, ::api::v1::SubmitTransactionV2Response>* streamer) { - return this->StreamedSubmitTransactionV2(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SubmitTransactionV2() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SubmitTransactionV2(::grpc::ServerContext* /*context*/, const ::api::v1::SubmitTransactionV2Request* /*request*/, ::api::v1::SubmitTransactionV2Response* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSubmitTransactionV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::SubmitTransactionV2Request,::api::v1::SubmitTransactionV2Response>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PrepareProposalSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PrepareProposalSubmission() { - ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareProposalSubmissionRequest, ::api::v1::PrepareProposalSubmissionResponse>* streamer) { - return this->StreamedPrepareProposalSubmission(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PrepareProposalSubmission() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PrepareProposalSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareProposalSubmissionRequest* /*request*/, ::api::v1::PrepareProposalSubmissionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareProposalSubmission(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareProposalSubmissionRequest,::api::v1::PrepareProposalSubmissionResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PrepareVoteSubmission : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PrepareVoteSubmission() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse>( + ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareVoteSubmissionRequest, ::api::v1::PrepareVoteSubmissionResponse>* streamer) { - return this->StreamedPrepareVoteSubmission(context, + ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>* streamer) { + return this->StreamedGetVegaTime(context, streamer); })); } - ~WithStreamedUnaryMethod_PrepareVoteSubmission() override { + ~WithStreamedUnaryMethod_GetVegaTime() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PrepareVoteSubmission(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareVoteSubmissionRequest* /*request*/, ::api::v1::PrepareVoteSubmissionResponse* /*response*/) override { + ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareVoteSubmission(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareVoteSubmissionRequest,::api::v1::PrepareVoteSubmissionResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetVegaTime(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetVegaTimeRequest,::api::v1::GetVegaTimeResponse>* server_unary_streamer) = 0; }; - template - class WithStreamedUnaryMethod_PropagateChainEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PropagateChainEvent() { - ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PropagateChainEventRequest, ::api::v1::PropagateChainEventResponse>* streamer) { - return this->StreamedPropagateChainEvent(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PropagateChainEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PropagateChainEvent(::grpc::ServerContext* /*context*/, const ::api::v1::PropagateChainEventRequest* /*request*/, ::api::v1::PropagateChainEventResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPropagateChainEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PropagateChainEventRequest,::api::v1::PropagateChainEventResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PrepareLiquidityProvision : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PrepareLiquidityProvision() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PrepareLiquidityProvisionRequest, ::api::v1::PrepareLiquidityProvisionResponse>* streamer) { - return this->StreamedPrepareLiquidityProvision(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PrepareLiquidityProvision() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PrepareLiquidityProvision(::grpc::ServerContext* /*context*/, const ::api::v1::PrepareLiquidityProvisionRequest* /*request*/, ::api::v1::PrepareLiquidityProvisionResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPrepareLiquidityProvision(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PrepareLiquidityProvisionRequest,::api::v1::PrepareLiquidityProvisionResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_PrepareSubmitOrder > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_SubmitTransactionV2 > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_PrepareSubmitOrder > > > > > > > > > StreamedService; -}; - -class TradingDataService final { - public: - static constexpr char const* service_full_name() { - return "api.v1.TradingDataService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // -- Accounts -- - // - // Get a list of Accounts by Market - virtual ::grpc::Status MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::api::v1::MarketAccountsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>> AsyncMarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>>(AsyncMarketAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>> PrepareAsyncMarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>>(PrepareAsyncMarketAccountsRaw(context, request, cq)); - } - // Get a list of Accounts by Party - virtual ::grpc::Status PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::api::v1::PartyAccountsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>> AsyncPartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>>(AsyncPartyAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>> PrepareAsyncPartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>>(PrepareAsyncPartyAccountsRaw(context, request, cq)); - } - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - virtual ::grpc::Status FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::api::v1::FeeInfrastructureAccountsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>> AsyncFeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>>(AsyncFeeInfrastructureAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>> PrepareAsyncFeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>>(PrepareAsyncFeeInfrastructureAccountsRaw(context, request, cq)); - } - // -- Candles -- - // - // Get a list of Candles by Market - virtual ::grpc::Status Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::api::v1::CandlesResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>> AsyncCandles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>>(AsyncCandlesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>> PrepareAsyncCandles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>>(PrepareAsyncCandlesRaw(context, request, cq)); - } - // -- Market Data -- - // - // Get Market Data by Market ID - virtual ::grpc::Status MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::api::v1::MarketDataByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>> AsyncMarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>>(AsyncMarketDataByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>> PrepareAsyncMarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>>(PrepareAsyncMarketDataByIDRaw(context, request, cq)); - } - // Get a list of Market Data - virtual ::grpc::Status MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::api::v1::MarketsDataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>> AsyncMarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>>(AsyncMarketsDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>> PrepareAsyncMarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>>(PrepareAsyncMarketsDataRaw(context, request, cq)); - } - // -- Markets -- - // - // Get a Market by ID - virtual ::grpc::Status MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::api::v1::MarketByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>> AsyncMarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>>(AsyncMarketByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>> PrepareAsyncMarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>>(PrepareAsyncMarketByIDRaw(context, request, cq)); - } - // Get Market Depth - virtual ::grpc::Status MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::api::v1::MarketDepthResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>> AsyncMarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>>(AsyncMarketDepthRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>> PrepareAsyncMarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>>(PrepareAsyncMarketDepthRaw(context, request, cq)); - } - // Get a list of Markets - virtual ::grpc::Status Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::api::v1::MarketsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>> AsyncMarkets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>>(AsyncMarketsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>> PrepareAsyncMarkets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>>(PrepareAsyncMarketsRaw(context, request, cq)); - } - // -- Orders -- - // - // Get an Order by Market and Order ID - virtual ::grpc::Status OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::api::v1::OrderByMarketAndIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>> AsyncOrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>>(AsyncOrderByMarketAndIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>> PrepareAsyncOrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>>(PrepareAsyncOrderByMarketAndIDRaw(context, request, cq)); - } - // Get an Order by Pending Order reference (UUID) - virtual ::grpc::Status OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::api::v1::OrderByReferenceResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>> AsyncOrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>>(AsyncOrderByReferenceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>> PrepareAsyncOrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>>(PrepareAsyncOrderByReferenceRaw(context, request, cq)); - } - // Get a list of Orders by Market - virtual ::grpc::Status OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::api::v1::OrdersByMarketResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>> AsyncOrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>>(AsyncOrdersByMarketRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>> PrepareAsyncOrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>>(PrepareAsyncOrdersByMarketRaw(context, request, cq)); - } - // Get a list of Orders by Party - virtual ::grpc::Status OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::api::v1::OrdersByPartyResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>> AsyncOrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>>(AsyncOrdersByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>> PrepareAsyncOrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>>(PrepareAsyncOrdersByPartyRaw(context, request, cq)); - } - // Get a specific order by order ID - virtual ::grpc::Status OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::api::v1::OrderByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>> AsyncOrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>>(AsyncOrderByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>> PrepareAsyncOrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>>(PrepareAsyncOrderByIDRaw(context, request, cq)); - } - // Get all versions of the order by its orderID - virtual ::grpc::Status OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::api::v1::OrderVersionsByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>> AsyncOrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>>(AsyncOrderVersionsByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>> PrepareAsyncOrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>>(PrepareAsyncOrderVersionsByIDRaw(context, request, cq)); - } - // -- Parties -- - // - // Get Margin Levels by Party ID - virtual ::grpc::Status MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::api::v1::MarginLevelsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>> AsyncMarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>>(AsyncMarginLevelsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>> PrepareAsyncMarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>>(PrepareAsyncMarginLevelsRaw(context, request, cq)); - } - // Get a list of Parties - virtual ::grpc::Status Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::api::v1::PartiesResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>> AsyncParties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>>(AsyncPartiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>> PrepareAsyncParties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>>(PrepareAsyncPartiesRaw(context, request, cq)); - } - // Get a Party by ID - virtual ::grpc::Status PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::api::v1::PartyByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>> AsyncPartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>>(AsyncPartyByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>> PrepareAsyncPartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>>(PrepareAsyncPartyByIDRaw(context, request, cq)); - } - // -- Positions -- - // - // Get a list of Positions by Party - virtual ::grpc::Status PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::api::v1::PositionsByPartyResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>> AsyncPositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>>(AsyncPositionsByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>> PrepareAsyncPositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>>(PrepareAsyncPositionsByPartyRaw(context, request, cq)); - } - // -- Trades -- - // - // Get latest Trade - virtual ::grpc::Status LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::api::v1::LastTradeResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>> AsyncLastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>>(AsyncLastTradeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>> PrepareAsyncLastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>>(PrepareAsyncLastTradeRaw(context, request, cq)); - } - // Get a list of Trades by Market - virtual ::grpc::Status TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::api::v1::TradesByMarketResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>> AsyncTradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>>(AsyncTradesByMarketRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>> PrepareAsyncTradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>>(PrepareAsyncTradesByMarketRaw(context, request, cq)); - } - // Get a list of Trades by Order - virtual ::grpc::Status TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::api::v1::TradesByOrderResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>> AsyncTradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>>(AsyncTradesByOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>> PrepareAsyncTradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>>(PrepareAsyncTradesByOrderRaw(context, request, cq)); - } - // Get a list of Trades by Party - virtual ::grpc::Status TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::api::v1::TradesByPartyResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>> AsyncTradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>>(AsyncTradesByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>> PrepareAsyncTradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>>(PrepareAsyncTradesByPartyRaw(context, request, cq)); - } - // -- Governance -- - // - // Get governance data (proposals and votes) for all proposals - virtual ::grpc::Status GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::api::v1::GetProposalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>> AsyncGetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>>(AsyncGetProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>> PrepareAsyncGetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>>(PrepareAsyncGetProposalsRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for proposals by party authoring them - virtual ::grpc::Status GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::api::v1::GetProposalsByPartyResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>> AsyncGetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>>(AsyncGetProposalsByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>> PrepareAsyncGetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>>(PrepareAsyncGetProposalsByPartyRaw(context, request, cq)); - } - // Get votes by party casting them - virtual ::grpc::Status GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::api::v1::GetVotesByPartyResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>> AsyncGetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>>(AsyncGetVotesByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>> PrepareAsyncGetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>>(PrepareAsyncGetVotesByPartyRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for proposals that aim creating new markets - virtual ::grpc::Status GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::api::v1::GetNewMarketProposalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>> AsyncGetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>>(AsyncGetNewMarketProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>> PrepareAsyncGetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>>(PrepareAsyncGetNewMarketProposalsRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for proposals that aim updating markets - virtual ::grpc::Status GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::api::v1::GetUpdateMarketProposalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>> AsyncGetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>>(AsyncGetUpdateMarketProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>> PrepareAsyncGetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>>(PrepareAsyncGetUpdateMarketProposalsRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - virtual ::grpc::Status GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::api::v1::GetNetworkParametersProposalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>> AsyncGetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>>(AsyncGetNetworkParametersProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>> PrepareAsyncGetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>>(PrepareAsyncGetNetworkParametersProposalsRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for proposals aiming to create new assets - virtual ::grpc::Status GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::api::v1::GetNewAssetProposalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>> AsyncGetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>>(AsyncGetNewAssetProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>> PrepareAsyncGetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>>(PrepareAsyncGetNewAssetProposalsRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for a proposal located by ID - virtual ::grpc::Status GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::api::v1::GetProposalByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>> AsyncGetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>>(AsyncGetProposalByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>> PrepareAsyncGetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>>(PrepareAsyncGetProposalByIDRaw(context, request, cq)); - } - // Get governance data (proposals and votes) for a proposal located by reference - virtual ::grpc::Status GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::api::v1::GetProposalByReferenceResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>> AsyncGetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>>(AsyncGetProposalByReferenceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>> PrepareAsyncGetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>>(PrepareAsyncGetProposalByReferenceRaw(context, request, cq)); - } - // Subscribe to a stream of all governance updates - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObserveGovernanceResponse>> ObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObserveGovernanceResponse>>(ObserveGovernanceRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>> AsyncObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>>(AsyncObserveGovernanceRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>> PrepareAsyncObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>>(PrepareAsyncObserveGovernanceRaw(context, request, cq)); - } - // Subscribe to a stream of proposal updates - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObservePartyProposalsResponse>> ObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObservePartyProposalsResponse>>(ObservePartyProposalsRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>> AsyncObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>>(AsyncObservePartyProposalsRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>> PrepareAsyncObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>>(PrepareAsyncObservePartyProposalsRaw(context, request, cq)); - } - // Subscribe to a stream of votes cast by a specific party - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObservePartyVotesResponse>> ObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObservePartyVotesResponse>>(ObservePartyVotesRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>> AsyncObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>>(AsyncObservePartyVotesRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>> PrepareAsyncObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>>(PrepareAsyncObservePartyVotesRaw(context, request, cq)); - } - // Subscribe to a stream of proposal votes - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObserveProposalVotesResponse>> ObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::ObserveProposalVotesResponse>>(ObserveProposalVotesRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>> AsyncObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>>(AsyncObserveProposalVotesRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>> PrepareAsyncObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>>(PrepareAsyncObserveProposalVotesRaw(context, request, cq)); - } - // Subscribe to a stream of events from the core - std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> ObserveEventBus(::grpc::ClientContext* context) { - return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(ObserveEventBusRaw(context)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> AsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(AsyncObserveEventBusRaw(context, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> PrepareAsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(PrepareAsyncObserveEventBusRaw(context, cq)); - } - // -- Misc -- - // - // Get Statistics on Vega - virtual ::grpc::Status Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>> AsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>>(AsyncStatisticsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>> PrepareAsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>>(PrepareAsyncStatisticsRaw(context, request, cq)); - } - virtual ::grpc::Status LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>> AsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>>(AsyncLastBlockHeightRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>> PrepareAsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>>(PrepareAsyncLastBlockHeightRaw(context, request, cq)); - } - // Get Time - virtual ::grpc::Status GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>> AsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>>(AsyncGetVegaTimeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>> PrepareAsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>>(PrepareAsyncGetVegaTimeRaw(context, request, cq)); - } - // Subscribe to a stream of Accounts - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::AccountsSubscribeResponse>> AccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::AccountsSubscribeResponse>>(AccountsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>> AsyncAccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>>(AsyncAccountsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>> PrepareAsyncAccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>>(PrepareAsyncAccountsSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Candles - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::CandlesSubscribeResponse>> CandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::CandlesSubscribeResponse>>(CandlesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>> AsyncCandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>>(AsyncCandlesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>> PrepareAsyncCandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>>(PrepareAsyncCandlesSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Margin Levels - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>> MarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>>(MarginLevelsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>> AsyncMarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>>(AsyncMarginLevelsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>> PrepareAsyncMarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>>(PrepareAsyncMarginLevelsSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Market Depth - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketDepthSubscribeResponse>> MarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketDepthSubscribeResponse>>(MarketDepthSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>> AsyncMarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>>(AsyncMarketDepthSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>> PrepareAsyncMarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>>(PrepareAsyncMarketDepthSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Market Depth Price Level Updates - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>> MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(MarketDepthUpdatesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>> AsyncMarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(AsyncMarketDepthUpdatesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>> PrepareAsyncMarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(PrepareAsyncMarketDepthUpdatesSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Markets Data - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketsDataSubscribeResponse>> MarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::MarketsDataSubscribeResponse>>(MarketsDataSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>> AsyncMarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>>(AsyncMarketsDataSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>> PrepareAsyncMarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>>(PrepareAsyncMarketsDataSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Orders - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::OrdersSubscribeResponse>> OrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::OrdersSubscribeResponse>>(OrdersSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>> AsyncOrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>>(AsyncOrdersSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>> PrepareAsyncOrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>>(PrepareAsyncOrdersSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Positions - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::PositionsSubscribeResponse>> PositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::PositionsSubscribeResponse>>(PositionsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>> AsyncPositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>>(AsyncPositionsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>> PrepareAsyncPositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>>(PrepareAsyncPositionsSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Trades - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::TradesSubscribeResponse>> TradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::TradesSubscribeResponse>>(TradesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>> AsyncTradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>>(AsyncTradesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>> PrepareAsyncTradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>>(PrepareAsyncTradesSubscribeRaw(context, request, cq)); - } - // Subscribe to a stream of Transfer Responses - std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>> TransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>>(TransferResponsesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>> AsyncTransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>>(AsyncTransferResponsesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>> PrepareAsyncTransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>>(PrepareAsyncTransferResponsesSubscribeRaw(context, request, cq)); - } - // Get an aggregate of signatures from all the nodes of the network - virtual ::grpc::Status GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::api::v1::GetNodeSignaturesAggregateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>> AsyncGetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>>(AsyncGetNodeSignaturesAggregateRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>> PrepareAsyncGetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>>(PrepareAsyncGetNodeSignaturesAggregateRaw(context, request, cq)); - } - // Get an asset by its identifier - virtual ::grpc::Status AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::api::v1::AssetByIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>> AsyncAssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>>(AsyncAssetByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>> PrepareAsyncAssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>>(PrepareAsyncAssetByIDRaw(context, request, cq)); - } - // Get a list of all assets on Vega - virtual ::grpc::Status Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::api::v1::AssetsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>> AsyncAssets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>>(AsyncAssetsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>> PrepareAsyncAssets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>>(PrepareAsyncAssetsRaw(context, request, cq)); - } - // Get an estimate for the fee to be paid for a given order - virtual ::grpc::Status EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::api::v1::EstimateFeeResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>> AsyncEstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>>(AsyncEstimateFeeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>> PrepareAsyncEstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>>(PrepareAsyncEstimateFeeRaw(context, request, cq)); - } - // Get an estimate for the margin required for a new order - virtual ::grpc::Status EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::api::v1::EstimateMarginResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>> AsyncEstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>>(AsyncEstimateMarginRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>> PrepareAsyncEstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>>(PrepareAsyncEstimateMarginRaw(context, request, cq)); - } - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - virtual ::grpc::Status ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::api::v1::ERC20WithdrawalApprovalResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>> AsyncERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>>(AsyncERC20WithdrawalApprovalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>> PrepareAsyncERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>>(PrepareAsyncERC20WithdrawalApprovalRaw(context, request, cq)); - } - // Get a withdrawal by its identifier - virtual ::grpc::Status Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::api::v1::WithdrawalResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>> AsyncWithdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>>(AsyncWithdrawalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>> PrepareAsyncWithdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>>(PrepareAsyncWithdrawalRaw(context, request, cq)); - } - // Get withdrawals for a party - virtual ::grpc::Status Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::api::v1::WithdrawalsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>> AsyncWithdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>>(AsyncWithdrawalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>> PrepareAsyncWithdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>>(PrepareAsyncWithdrawalsRaw(context, request, cq)); - } - // Get a deposit by its identifier - virtual ::grpc::Status Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::api::v1::DepositResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>> AsyncDeposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>>(AsyncDepositRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>> PrepareAsyncDeposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>>(PrepareAsyncDepositRaw(context, request, cq)); - } - // Get deposits for a party - virtual ::grpc::Status Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::api::v1::DepositsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>> AsyncDeposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>>(AsyncDepositsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>> PrepareAsyncDeposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>>(PrepareAsyncDepositsRaw(context, request, cq)); - } - // Get the network parameters - virtual ::grpc::Status NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::api::v1::NetworkParametersResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>> AsyncNetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>>(AsyncNetworkParametersRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>> PrepareAsyncNetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>>(PrepareAsyncNetworkParametersRaw(context, request, cq)); - } - // Get the liquidity provision orders - virtual ::grpc::Status LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::api::v1::LiquidityProvisionsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>> AsyncLiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>>(AsyncLiquidityProvisionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>> PrepareAsyncLiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>>(PrepareAsyncLiquidityProvisionsRaw(context, request, cq)); - } - // Get an oracle spec by ID - virtual ::grpc::Status OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::api::v1::OracleSpecResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>> AsyncOracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>>(AsyncOracleSpecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>> PrepareAsyncOracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>>(PrepareAsyncOracleSpecRaw(context, request, cq)); - } - // Get the oracle specs - virtual ::grpc::Status OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::api::v1::OracleSpecsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>> AsyncOracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>>(AsyncOracleSpecsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>> PrepareAsyncOracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>>(PrepareAsyncOracleSpecsRaw(context, request, cq)); - } - // Get all oracle data - virtual ::grpc::Status OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::api::v1::OracleDataBySpecResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>> AsyncOracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>>(AsyncOracleDataBySpecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>> PrepareAsyncOracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>>(PrepareAsyncOracleDataBySpecRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // -- Accounts -- - // - // Get a list of Accounts by Market - virtual void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Accounts by Party - virtual void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - virtual void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Candles -- - // - // Get a list of Candles by Market - virtual void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Market Data -- - // - // Get Market Data by Market ID - virtual void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Market Data - virtual void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Markets -- - // - // Get a Market by ID - virtual void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get Market Depth - virtual void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Markets - virtual void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Orders -- - // - // Get an Order by Market and Order ID - virtual void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get an Order by Pending Order reference (UUID) - virtual void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Orders by Market - virtual void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Orders by Party - virtual void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a specific order by order ID - virtual void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get all versions of the order by its orderID - virtual void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Parties -- - // - // Get Margin Levels by Party ID - virtual void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Parties - virtual void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a Party by ID - virtual void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Positions -- - // - // Get a list of Positions by Party - virtual void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Trades -- - // - // Get latest Trade - virtual void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Trades by Market - virtual void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Trades by Order - virtual void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of Trades by Party - virtual void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // -- Governance -- - // - // Get governance data (proposals and votes) for all proposals - virtual void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for proposals by party authoring them - virtual void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get votes by party casting them - virtual void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for proposals that aim creating new markets - virtual void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for proposals that aim updating markets - virtual void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - virtual void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for proposals aiming to create new assets - virtual void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for a proposal located by ID - virtual void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get governance data (proposals and votes) for a proposal located by reference - virtual void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Subscribe to a stream of all governance updates - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ObserveGovernance(::grpc::ClientContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObserveGovernanceResponse>* reactor) = 0; - #else - virtual void ObserveGovernance(::grpc::ClientContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveGovernanceResponse>* reactor) = 0; - #endif - // Subscribe to a stream of proposal updates - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ObservePartyProposals(::grpc::ClientContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObservePartyProposalsResponse>* reactor) = 0; - #else - virtual void ObservePartyProposals(::grpc::ClientContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyProposalsResponse>* reactor) = 0; - #endif - // Subscribe to a stream of votes cast by a specific party - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ObservePartyVotes(::grpc::ClientContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObservePartyVotesResponse>* reactor) = 0; - #else - virtual void ObservePartyVotes(::grpc::ClientContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyVotesResponse>* reactor) = 0; - #endif - // Subscribe to a stream of proposal votes - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ObserveProposalVotes(::grpc::ClientContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObserveProposalVotesResponse>* reactor) = 0; - #else - virtual void ObserveProposalVotes(::grpc::ClientContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveProposalVotesResponse>* reactor) = 0; - #endif - // Subscribe to a stream of events from the core - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ObserveEventBus(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) = 0; - #else - virtual void ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) = 0; - #endif - // -- Misc -- - // - // Get Statistics on Vega - virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get Time - virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Subscribe to a stream of Accounts - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void AccountsSubscribe(::grpc::ClientContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::AccountsSubscribeResponse>* reactor) = 0; - #else - virtual void AccountsSubscribe(::grpc::ClientContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::AccountsSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Candles - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void CandlesSubscribe(::grpc::ClientContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::CandlesSubscribeResponse>* reactor) = 0; - #else - virtual void CandlesSubscribe(::grpc::ClientContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::CandlesSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Margin Levels - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarginLevelsSubscribe(::grpc::ClientContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarginLevelsSubscribeResponse>* reactor) = 0; - #else - virtual void MarginLevelsSubscribe(::grpc::ClientContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarginLevelsSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Market Depth - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketDepthSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketDepthSubscribeResponse>* reactor) = 0; - #else - virtual void MarketDepthSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Market Depth Price Level Updates - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* reactor) = 0; - #else - virtual void MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Markets Data - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void MarketsDataSubscribe(::grpc::ClientContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketsDataSubscribeResponse>* reactor) = 0; - #else - virtual void MarketsDataSubscribe(::grpc::ClientContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketsDataSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Orders - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OrdersSubscribe(::grpc::ClientContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::OrdersSubscribeResponse>* reactor) = 0; - #else - virtual void OrdersSubscribe(::grpc::ClientContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::OrdersSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Positions - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void PositionsSubscribe(::grpc::ClientContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::PositionsSubscribeResponse>* reactor) = 0; - #else - virtual void PositionsSubscribe(::grpc::ClientContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::PositionsSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Trades - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void TradesSubscribe(::grpc::ClientContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::TradesSubscribeResponse>* reactor) = 0; - #else - virtual void TradesSubscribe(::grpc::ClientContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TradesSubscribeResponse>* reactor) = 0; - #endif - // Subscribe to a stream of Transfer Responses - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void TransferResponsesSubscribe(::grpc::ClientContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::TransferResponsesSubscribeResponse>* reactor) = 0; - #else - virtual void TransferResponsesSubscribe(::grpc::ClientContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TransferResponsesSubscribeResponse>* reactor) = 0; - #endif - // Get an aggregate of signatures from all the nodes of the network - virtual void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get an asset by its identifier - virtual void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a list of all assets on Vega - virtual void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get an estimate for the fee to be paid for a given order - virtual void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get an estimate for the margin required for a new order - virtual void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - virtual void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a withdrawal by its identifier - virtual void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get withdrawals for a party - virtual void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get a deposit by its identifier - virtual void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get deposits for a party - virtual void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get the network parameters - virtual void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get the liquidity provision orders - virtual void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get an oracle spec by ID - virtual void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get the oracle specs - virtual void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - // Get all oracle data - virtual void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, std::function) = 0; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - #else - virtual void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - #endif - }; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - typedef class experimental_async_interface async_interface; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - async_interface* async() { return experimental_async(); } - #endif - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>* AsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketAccountsResponse>* PrepareAsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>* AsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyAccountsResponse>* PrepareAsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>* AsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::FeeInfrastructureAccountsResponse>* PrepareAsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>* AsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::CandlesResponse>* PrepareAsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>* AsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDataByIDResponse>* PrepareAsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>* AsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsDataResponse>* PrepareAsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>* AsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketByIDResponse>* PrepareAsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>* AsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketDepthResponse>* PrepareAsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>* AsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarketsResponse>* PrepareAsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>* AsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByMarketAndIDResponse>* PrepareAsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>* AsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByReferenceResponse>* PrepareAsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>* AsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByMarketResponse>* PrepareAsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>* AsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrdersByPartyResponse>* PrepareAsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>* AsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderByIDResponse>* PrepareAsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>* AsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OrderVersionsByIDResponse>* PrepareAsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>* AsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::MarginLevelsResponse>* PrepareAsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>* AsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartiesResponse>* PrepareAsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>* AsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PartyByIDResponse>* PrepareAsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>* AsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::PositionsByPartyResponse>* PrepareAsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>* AsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastTradeResponse>* PrepareAsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>* AsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByMarketResponse>* PrepareAsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>* AsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByOrderResponse>* PrepareAsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>* AsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::TradesByPartyResponse>* PrepareAsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>* AsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsResponse>* PrepareAsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>* AsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalsByPartyResponse>* PrepareAsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>* AsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVotesByPartyResponse>* PrepareAsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>* AsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewMarketProposalsResponse>* PrepareAsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>* AsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetUpdateMarketProposalsResponse>* PrepareAsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>* AsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNetworkParametersProposalsResponse>* PrepareAsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>* AsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNewAssetProposalsResponse>* PrepareAsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>* AsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByIDResponse>* PrepareAsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>* AsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetProposalByReferenceResponse>* PrepareAsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::ObserveGovernanceResponse>* ObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>* AsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveGovernanceResponse>* PrepareAsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::ObservePartyProposalsResponse>* ObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>* AsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyProposalsResponse>* PrepareAsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::ObservePartyVotesResponse>* ObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>* AsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObservePartyVotesResponse>* PrepareAsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::ObserveProposalVotesResponse>* ObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>* AsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::ObserveProposalVotesResponse>* PrepareAsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBusRaw(::grpc::ClientContext* context) = 0; - virtual ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderWriterInterface< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>* AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::StatisticsResponse>* PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>* AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LastBlockHeightResponse>* PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>* AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetVegaTimeResponse>* PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::AccountsSubscribeResponse>* AccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>* AsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::AccountsSubscribeResponse>* PrepareAsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::CandlesSubscribeResponse>* CandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>* AsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::CandlesSubscribeResponse>* PrepareAsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>* MarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>* AsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarginLevelsSubscribeResponse>* PrepareAsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::MarketDepthSubscribeResponse>* MarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>* AsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthSubscribeResponse>* PrepareAsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>* MarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>* AsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketDepthUpdatesSubscribeResponse>* PrepareAsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::MarketsDataSubscribeResponse>* MarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>* AsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::MarketsDataSubscribeResponse>* PrepareAsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::OrdersSubscribeResponse>* OrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>* AsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::OrdersSubscribeResponse>* PrepareAsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::PositionsSubscribeResponse>* PositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>* AsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::PositionsSubscribeResponse>* PrepareAsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::TradesSubscribeResponse>* TradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>* AsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::TradesSubscribeResponse>* PrepareAsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>* TransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>* AsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::api::v1::TransferResponsesSubscribeResponse>* PrepareAsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>* AsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::GetNodeSignaturesAggregateResponse>* PrepareAsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>* AsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetByIDResponse>* PrepareAsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>* AsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::AssetsResponse>* PrepareAsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>* AsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateFeeResponse>* PrepareAsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>* AsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::EstimateMarginResponse>* PrepareAsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>* AsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::ERC20WithdrawalApprovalResponse>* PrepareAsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>* AsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalResponse>* PrepareAsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>* AsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::WithdrawalsResponse>* PrepareAsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>* AsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositResponse>* PrepareAsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>* AsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::DepositsResponse>* PrepareAsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>* AsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::NetworkParametersResponse>* PrepareAsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>* AsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::LiquidityProvisionsResponse>* PrepareAsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>* AsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecResponse>* PrepareAsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>* AsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleSpecsResponse>* PrepareAsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>* AsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::v1::OracleDataBySpecResponse>* PrepareAsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::api::v1::MarketAccountsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>> AsyncMarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>>(AsyncMarketAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>> PrepareAsyncMarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>>(PrepareAsyncMarketAccountsRaw(context, request, cq)); - } - ::grpc::Status PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::api::v1::PartyAccountsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>> AsyncPartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>>(AsyncPartyAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>> PrepareAsyncPartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>>(PrepareAsyncPartyAccountsRaw(context, request, cq)); - } - ::grpc::Status FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::api::v1::FeeInfrastructureAccountsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>> AsyncFeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>>(AsyncFeeInfrastructureAccountsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>> PrepareAsyncFeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>>(PrepareAsyncFeeInfrastructureAccountsRaw(context, request, cq)); - } - ::grpc::Status Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::api::v1::CandlesResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>> AsyncCandles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>>(AsyncCandlesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>> PrepareAsyncCandles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>>(PrepareAsyncCandlesRaw(context, request, cq)); - } - ::grpc::Status MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::api::v1::MarketDataByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>> AsyncMarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>>(AsyncMarketDataByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>> PrepareAsyncMarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>>(PrepareAsyncMarketDataByIDRaw(context, request, cq)); - } - ::grpc::Status MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::api::v1::MarketsDataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>> AsyncMarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>>(AsyncMarketsDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>> PrepareAsyncMarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>>(PrepareAsyncMarketsDataRaw(context, request, cq)); - } - ::grpc::Status MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::api::v1::MarketByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>> AsyncMarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>>(AsyncMarketByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>> PrepareAsyncMarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>>(PrepareAsyncMarketByIDRaw(context, request, cq)); - } - ::grpc::Status MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::api::v1::MarketDepthResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>> AsyncMarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>>(AsyncMarketDepthRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>> PrepareAsyncMarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>>(PrepareAsyncMarketDepthRaw(context, request, cq)); - } - ::grpc::Status Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::api::v1::MarketsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>> AsyncMarkets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>>(AsyncMarketsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>> PrepareAsyncMarkets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>>(PrepareAsyncMarketsRaw(context, request, cq)); - } - ::grpc::Status OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::api::v1::OrderByMarketAndIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>> AsyncOrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>>(AsyncOrderByMarketAndIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>> PrepareAsyncOrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>>(PrepareAsyncOrderByMarketAndIDRaw(context, request, cq)); - } - ::grpc::Status OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::api::v1::OrderByReferenceResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>> AsyncOrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>>(AsyncOrderByReferenceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>> PrepareAsyncOrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>>(PrepareAsyncOrderByReferenceRaw(context, request, cq)); - } - ::grpc::Status OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::api::v1::OrdersByMarketResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>> AsyncOrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>>(AsyncOrdersByMarketRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>> PrepareAsyncOrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>>(PrepareAsyncOrdersByMarketRaw(context, request, cq)); - } - ::grpc::Status OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::api::v1::OrdersByPartyResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>> AsyncOrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>>(AsyncOrdersByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>> PrepareAsyncOrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>>(PrepareAsyncOrdersByPartyRaw(context, request, cq)); - } - ::grpc::Status OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::api::v1::OrderByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>> AsyncOrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>>(AsyncOrderByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>> PrepareAsyncOrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>>(PrepareAsyncOrderByIDRaw(context, request, cq)); - } - ::grpc::Status OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::api::v1::OrderVersionsByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>> AsyncOrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>>(AsyncOrderVersionsByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>> PrepareAsyncOrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>>(PrepareAsyncOrderVersionsByIDRaw(context, request, cq)); - } - ::grpc::Status MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::api::v1::MarginLevelsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>> AsyncMarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>>(AsyncMarginLevelsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>> PrepareAsyncMarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>>(PrepareAsyncMarginLevelsRaw(context, request, cq)); - } - ::grpc::Status Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::api::v1::PartiesResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>> AsyncParties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>>(AsyncPartiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>> PrepareAsyncParties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>>(PrepareAsyncPartiesRaw(context, request, cq)); - } - ::grpc::Status PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::api::v1::PartyByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>> AsyncPartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>>(AsyncPartyByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>> PrepareAsyncPartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>>(PrepareAsyncPartyByIDRaw(context, request, cq)); - } - ::grpc::Status PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::api::v1::PositionsByPartyResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>> AsyncPositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>>(AsyncPositionsByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>> PrepareAsyncPositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>>(PrepareAsyncPositionsByPartyRaw(context, request, cq)); - } - ::grpc::Status LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::api::v1::LastTradeResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>> AsyncLastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>>(AsyncLastTradeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>> PrepareAsyncLastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>>(PrepareAsyncLastTradeRaw(context, request, cq)); - } - ::grpc::Status TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::api::v1::TradesByMarketResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>> AsyncTradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>>(AsyncTradesByMarketRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>> PrepareAsyncTradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>>(PrepareAsyncTradesByMarketRaw(context, request, cq)); - } - ::grpc::Status TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::api::v1::TradesByOrderResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>> AsyncTradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>>(AsyncTradesByOrderRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>> PrepareAsyncTradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>>(PrepareAsyncTradesByOrderRaw(context, request, cq)); - } - ::grpc::Status TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::api::v1::TradesByPartyResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>> AsyncTradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>>(AsyncTradesByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>> PrepareAsyncTradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>>(PrepareAsyncTradesByPartyRaw(context, request, cq)); - } - ::grpc::Status GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::api::v1::GetProposalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>> AsyncGetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>>(AsyncGetProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>> PrepareAsyncGetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>>(PrepareAsyncGetProposalsRaw(context, request, cq)); - } - ::grpc::Status GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::api::v1::GetProposalsByPartyResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>> AsyncGetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>>(AsyncGetProposalsByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>> PrepareAsyncGetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>>(PrepareAsyncGetProposalsByPartyRaw(context, request, cq)); - } - ::grpc::Status GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::api::v1::GetVotesByPartyResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>> AsyncGetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>>(AsyncGetVotesByPartyRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>> PrepareAsyncGetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>>(PrepareAsyncGetVotesByPartyRaw(context, request, cq)); - } - ::grpc::Status GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::api::v1::GetNewMarketProposalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>> AsyncGetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>>(AsyncGetNewMarketProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>> PrepareAsyncGetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>>(PrepareAsyncGetNewMarketProposalsRaw(context, request, cq)); - } - ::grpc::Status GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::api::v1::GetUpdateMarketProposalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>> AsyncGetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>>(AsyncGetUpdateMarketProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>> PrepareAsyncGetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>>(PrepareAsyncGetUpdateMarketProposalsRaw(context, request, cq)); - } - ::grpc::Status GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::api::v1::GetNetworkParametersProposalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>> AsyncGetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>>(AsyncGetNetworkParametersProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>> PrepareAsyncGetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>>(PrepareAsyncGetNetworkParametersProposalsRaw(context, request, cq)); - } - ::grpc::Status GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::api::v1::GetNewAssetProposalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>> AsyncGetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>>(AsyncGetNewAssetProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>> PrepareAsyncGetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>>(PrepareAsyncGetNewAssetProposalsRaw(context, request, cq)); - } - ::grpc::Status GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::api::v1::GetProposalByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>> AsyncGetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>>(AsyncGetProposalByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>> PrepareAsyncGetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>>(PrepareAsyncGetProposalByIDRaw(context, request, cq)); - } - ::grpc::Status GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::api::v1::GetProposalByReferenceResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>> AsyncGetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>>(AsyncGetProposalByReferenceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>> PrepareAsyncGetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>>(PrepareAsyncGetProposalByReferenceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObserveGovernanceResponse>> ObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObserveGovernanceResponse>>(ObserveGovernanceRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>> AsyncObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>>(AsyncObserveGovernanceRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>> PrepareAsyncObserveGovernance(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>>(PrepareAsyncObserveGovernanceRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObservePartyProposalsResponse>> ObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObservePartyProposalsResponse>>(ObservePartyProposalsRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>> AsyncObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>>(AsyncObservePartyProposalsRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>> PrepareAsyncObservePartyProposals(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>>(PrepareAsyncObservePartyProposalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObservePartyVotesResponse>> ObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObservePartyVotesResponse>>(ObservePartyVotesRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>> AsyncObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>>(AsyncObservePartyVotesRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>> PrepareAsyncObservePartyVotes(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>>(PrepareAsyncObservePartyVotesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObserveProposalVotesResponse>> ObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::ObserveProposalVotesResponse>>(ObserveProposalVotesRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>> AsyncObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>>(AsyncObserveProposalVotesRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>> PrepareAsyncObserveProposalVotes(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>>(PrepareAsyncObserveProposalVotesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> ObserveEventBus(::grpc::ClientContext* context) { - return std::unique_ptr< ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(ObserveEventBusRaw(context)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> AsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(AsyncObserveEventBusRaw(context, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>> PrepareAsyncObserveEventBus(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>>(PrepareAsyncObserveEventBusRaw(context, cq)); - } - ::grpc::Status Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::api::v1::StatisticsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>> AsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>>(AsyncStatisticsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>> PrepareAsyncStatistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>>(PrepareAsyncStatisticsRaw(context, request, cq)); - } - ::grpc::Status LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::api::v1::LastBlockHeightResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>> AsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>>(AsyncLastBlockHeightRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>> PrepareAsyncLastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>>(PrepareAsyncLastBlockHeightRaw(context, request, cq)); - } - ::grpc::Status GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::api::v1::GetVegaTimeResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>> AsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>>(AsyncGetVegaTimeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>> PrepareAsyncGetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>>(PrepareAsyncGetVegaTimeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::AccountsSubscribeResponse>> AccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::AccountsSubscribeResponse>>(AccountsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>> AsyncAccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>>(AsyncAccountsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>> PrepareAsyncAccountsSubscribe(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>>(PrepareAsyncAccountsSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::CandlesSubscribeResponse>> CandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::CandlesSubscribeResponse>>(CandlesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>> AsyncCandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>>(AsyncCandlesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>> PrepareAsyncCandlesSubscribe(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>>(PrepareAsyncCandlesSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarginLevelsSubscribeResponse>> MarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarginLevelsSubscribeResponse>>(MarginLevelsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>> AsyncMarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>>(AsyncMarginLevelsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>> PrepareAsyncMarginLevelsSubscribe(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>>(PrepareAsyncMarginLevelsSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketDepthSubscribeResponse>> MarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketDepthSubscribeResponse>>(MarketDepthSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>> AsyncMarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>>(AsyncMarketDepthSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>> PrepareAsyncMarketDepthSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>>(PrepareAsyncMarketDepthSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>> MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(MarketDepthUpdatesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>> AsyncMarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(AsyncMarketDepthUpdatesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>> PrepareAsyncMarketDepthUpdatesSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>>(PrepareAsyncMarketDepthUpdatesSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketsDataSubscribeResponse>> MarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::MarketsDataSubscribeResponse>>(MarketsDataSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>> AsyncMarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>>(AsyncMarketsDataSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>> PrepareAsyncMarketsDataSubscribe(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>>(PrepareAsyncMarketsDataSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::OrdersSubscribeResponse>> OrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::OrdersSubscribeResponse>>(OrdersSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>> AsyncOrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>>(AsyncOrdersSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>> PrepareAsyncOrdersSubscribe(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>>(PrepareAsyncOrdersSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::PositionsSubscribeResponse>> PositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::PositionsSubscribeResponse>>(PositionsSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>> AsyncPositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>>(AsyncPositionsSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>> PrepareAsyncPositionsSubscribe(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>>(PrepareAsyncPositionsSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::TradesSubscribeResponse>> TradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::TradesSubscribeResponse>>(TradesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>> AsyncTradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>>(AsyncTradesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>> PrepareAsyncTradesSubscribe(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>>(PrepareAsyncTradesSubscribeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientReader< ::api::v1::TransferResponsesSubscribeResponse>> TransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request) { - return std::unique_ptr< ::grpc::ClientReader< ::api::v1::TransferResponsesSubscribeResponse>>(TransferResponsesSubscribeRaw(context, request)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>> AsyncTransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>>(AsyncTransferResponsesSubscribeRaw(context, request, cq, tag)); - } - std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>> PrepareAsyncTransferResponsesSubscribe(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>>(PrepareAsyncTransferResponsesSubscribeRaw(context, request, cq)); - } - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::api::v1::GetNodeSignaturesAggregateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>> AsyncGetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>>(AsyncGetNodeSignaturesAggregateRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>> PrepareAsyncGetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>>(PrepareAsyncGetNodeSignaturesAggregateRaw(context, request, cq)); - } - ::grpc::Status AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::api::v1::AssetByIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>> AsyncAssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>>(AsyncAssetByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>> PrepareAsyncAssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>>(PrepareAsyncAssetByIDRaw(context, request, cq)); - } - ::grpc::Status Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::api::v1::AssetsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>> AsyncAssets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>>(AsyncAssetsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>> PrepareAsyncAssets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>>(PrepareAsyncAssetsRaw(context, request, cq)); - } - ::grpc::Status EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::api::v1::EstimateFeeResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>> AsyncEstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>>(AsyncEstimateFeeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>> PrepareAsyncEstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>>(PrepareAsyncEstimateFeeRaw(context, request, cq)); - } - ::grpc::Status EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::api::v1::EstimateMarginResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>> AsyncEstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>>(AsyncEstimateMarginRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>> PrepareAsyncEstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>>(PrepareAsyncEstimateMarginRaw(context, request, cq)); - } - ::grpc::Status ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::api::v1::ERC20WithdrawalApprovalResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>> AsyncERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>>(AsyncERC20WithdrawalApprovalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>> PrepareAsyncERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>>(PrepareAsyncERC20WithdrawalApprovalRaw(context, request, cq)); - } - ::grpc::Status Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::api::v1::WithdrawalResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>> AsyncWithdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>>(AsyncWithdrawalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>> PrepareAsyncWithdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>>(PrepareAsyncWithdrawalRaw(context, request, cq)); - } - ::grpc::Status Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::api::v1::WithdrawalsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>> AsyncWithdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>>(AsyncWithdrawalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>> PrepareAsyncWithdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>>(PrepareAsyncWithdrawalsRaw(context, request, cq)); - } - ::grpc::Status Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::api::v1::DepositResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>> AsyncDeposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>>(AsyncDepositRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>> PrepareAsyncDeposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>>(PrepareAsyncDepositRaw(context, request, cq)); - } - ::grpc::Status Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::api::v1::DepositsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>> AsyncDeposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>>(AsyncDepositsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>> PrepareAsyncDeposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>>(PrepareAsyncDepositsRaw(context, request, cq)); - } - ::grpc::Status NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::api::v1::NetworkParametersResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>> AsyncNetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>>(AsyncNetworkParametersRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>> PrepareAsyncNetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>>(PrepareAsyncNetworkParametersRaw(context, request, cq)); - } - ::grpc::Status LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::api::v1::LiquidityProvisionsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>> AsyncLiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>>(AsyncLiquidityProvisionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>> PrepareAsyncLiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>>(PrepareAsyncLiquidityProvisionsRaw(context, request, cq)); - } - ::grpc::Status OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::api::v1::OracleSpecResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>> AsyncOracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>>(AsyncOracleSpecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>> PrepareAsyncOracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>>(PrepareAsyncOracleSpecRaw(context, request, cq)); - } - ::grpc::Status OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::api::v1::OracleSpecsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>> AsyncOracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>>(AsyncOracleSpecsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>> PrepareAsyncOracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>>(PrepareAsyncOracleSpecsRaw(context, request, cq)); - } - ::grpc::Status OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::api::v1::OracleDataBySpecResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>> AsyncOracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>>(AsyncOracleDataBySpecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>> PrepareAsyncOracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>>(PrepareAsyncOracleDataBySpecRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarketAccounts(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PartyAccounts(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void FeeInfrastructureAccounts(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Candles(::grpc::ClientContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarketDataByID(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarketsData(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarketByID(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarketDepth(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Markets(::grpc::ClientContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrderByMarketAndID(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrderByReference(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrdersByMarket(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrdersByParty(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrderByID(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OrderVersionsByID(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void MarginLevels(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Parties(::grpc::ClientContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PartyByID(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void PositionsByParty(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void LastTrade(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void TradesByMarket(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void TradesByOrder(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void TradesByParty(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetProposals(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetProposalsByParty(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetVotesByParty(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetNewMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetUpdateMarketProposals(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetNetworkParametersProposals(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetNewAssetProposals(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetProposalByID(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetProposalByReference(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ObserveGovernance(::grpc::ClientContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObserveGovernanceResponse>* reactor) override; - #else - void ObserveGovernance(::grpc::ClientContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveGovernanceResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ObservePartyProposals(::grpc::ClientContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObservePartyProposalsResponse>* reactor) override; - #else - void ObservePartyProposals(::grpc::ClientContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyProposalsResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ObservePartyVotes(::grpc::ClientContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObservePartyVotesResponse>* reactor) override; - #else - void ObservePartyVotes(::grpc::ClientContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObservePartyVotesResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ObserveProposalVotes(::grpc::ClientContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::ClientReadReactor< ::api::v1::ObserveProposalVotesResponse>* reactor) override; - #else - void ObserveProposalVotes(::grpc::ClientContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::ObserveProposalVotesResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ObserveEventBus(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) override; - #else - void ObserveEventBus(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::api::v1::ObserveEventBusRequest,::api::v1::ObserveEventBusResponse>* reactor) override; - #endif - void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Statistics(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void LastBlockHeight(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetVegaTime(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void AccountsSubscribe(::grpc::ClientContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::AccountsSubscribeResponse>* reactor) override; - #else - void AccountsSubscribe(::grpc::ClientContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::AccountsSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void CandlesSubscribe(::grpc::ClientContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::CandlesSubscribeResponse>* reactor) override; - #else - void CandlesSubscribe(::grpc::ClientContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::CandlesSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarginLevelsSubscribe(::grpc::ClientContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarginLevelsSubscribeResponse>* reactor) override; - #else - void MarginLevelsSubscribe(::grpc::ClientContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarginLevelsSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketDepthSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketDepthSubscribeResponse>* reactor) override; - #else - void MarketDepthSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* reactor) override; - #else - void MarketDepthUpdatesSubscribe(::grpc::ClientContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void MarketsDataSubscribe(::grpc::ClientContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::MarketsDataSubscribeResponse>* reactor) override; - #else - void MarketsDataSubscribe(::grpc::ClientContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::MarketsDataSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OrdersSubscribe(::grpc::ClientContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::OrdersSubscribeResponse>* reactor) override; - #else - void OrdersSubscribe(::grpc::ClientContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::OrdersSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void PositionsSubscribe(::grpc::ClientContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::PositionsSubscribeResponse>* reactor) override; - #else - void PositionsSubscribe(::grpc::ClientContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::PositionsSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void TradesSubscribe(::grpc::ClientContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::TradesSubscribeResponse>* reactor) override; - #else - void TradesSubscribe(::grpc::ClientContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TradesSubscribeResponse>* reactor) override; - #endif - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void TransferResponsesSubscribe(::grpc::ClientContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::ClientReadReactor< ::api::v1::TransferResponsesSubscribeResponse>* reactor) override; - #else - void TransferResponsesSubscribe(::grpc::ClientContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::experimental::ClientReadReactor< ::api::v1::TransferResponsesSubscribeResponse>* reactor) override; - #endif - void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void GetNodeSignaturesAggregate(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void AssetByID(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Assets(::grpc::ClientContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void EstimateFee(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void EstimateMargin(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void ERC20WithdrawalApproval(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Withdrawal(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Withdrawals(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Deposit(::grpc::ClientContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void Deposits(::grpc::ClientContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void NetworkParameters(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void LiquidityProvisions(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OracleSpec(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OracleSpecs(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, std::function) override; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - #else - void OracleDataBySpec(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - #endif - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>* AsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketAccountsResponse>* PrepareAsyncMarketAccountsRaw(::grpc::ClientContext* context, const ::api::v1::MarketAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>* AsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartyAccountsResponse>* PrepareAsyncPartyAccountsRaw(::grpc::ClientContext* context, const ::api::v1::PartyAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>* AsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::FeeInfrastructureAccountsResponse>* PrepareAsyncFeeInfrastructureAccountsRaw(::grpc::ClientContext* context, const ::api::v1::FeeInfrastructureAccountsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>* AsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::CandlesResponse>* PrepareAsyncCandlesRaw(::grpc::ClientContext* context, const ::api::v1::CandlesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>* AsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDataByIDResponse>* PrepareAsyncMarketDataByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketDataByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>* AsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsDataResponse>* PrepareAsyncMarketsDataRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>* AsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketByIDResponse>* PrepareAsyncMarketByIDRaw(::grpc::ClientContext* context, const ::api::v1::MarketByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>* AsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketDepthResponse>* PrepareAsyncMarketDepthRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>* AsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarketsResponse>* PrepareAsyncMarketsRaw(::grpc::ClientContext* context, const ::api::v1::MarketsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>* AsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByMarketAndIDResponse>* PrepareAsyncOrderByMarketAndIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByMarketAndIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>* AsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByReferenceResponse>* PrepareAsyncOrderByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::OrderByReferenceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>* AsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByMarketResponse>* PrepareAsyncOrdersByMarketRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByMarketRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>* AsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrdersByPartyResponse>* PrepareAsyncOrdersByPartyRaw(::grpc::ClientContext* context, const ::api::v1::OrdersByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>* AsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderByIDResponse>* PrepareAsyncOrderByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>* AsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OrderVersionsByIDResponse>* PrepareAsyncOrderVersionsByIDRaw(::grpc::ClientContext* context, const ::api::v1::OrderVersionsByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>* AsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::MarginLevelsResponse>* PrepareAsyncMarginLevelsRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>* AsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartiesResponse>* PrepareAsyncPartiesRaw(::grpc::ClientContext* context, const ::api::v1::PartiesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>* AsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PartyByIDResponse>* PrepareAsyncPartyByIDRaw(::grpc::ClientContext* context, const ::api::v1::PartyByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>* AsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::PositionsByPartyResponse>* PrepareAsyncPositionsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::PositionsByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>* AsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LastTradeResponse>* PrepareAsyncLastTradeRaw(::grpc::ClientContext* context, const ::api::v1::LastTradeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>* AsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByMarketResponse>* PrepareAsyncTradesByMarketRaw(::grpc::ClientContext* context, const ::api::v1::TradesByMarketRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>* AsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByOrderResponse>* PrepareAsyncTradesByOrderRaw(::grpc::ClientContext* context, const ::api::v1::TradesByOrderRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>* AsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::TradesByPartyResponse>* PrepareAsyncTradesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::TradesByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>* AsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsResponse>* PrepareAsyncGetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>* AsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalsByPartyResponse>* PrepareAsyncGetProposalsByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalsByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>* AsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetVotesByPartyResponse>* PrepareAsyncGetVotesByPartyRaw(::grpc::ClientContext* context, const ::api::v1::GetVotesByPartyRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>* AsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewMarketProposalsResponse>* PrepareAsyncGetNewMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>* AsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetUpdateMarketProposalsResponse>* PrepareAsyncGetUpdateMarketProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetUpdateMarketProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>* AsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNetworkParametersProposalsResponse>* PrepareAsyncGetNetworkParametersProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNetworkParametersProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>* AsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNewAssetProposalsResponse>* PrepareAsyncGetNewAssetProposalsRaw(::grpc::ClientContext* context, const ::api::v1::GetNewAssetProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>* AsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByIDResponse>* PrepareAsyncGetProposalByIDRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>* AsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetProposalByReferenceResponse>* PrepareAsyncGetProposalByReferenceRaw(::grpc::ClientContext* context, const ::api::v1::GetProposalByReferenceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::ObserveGovernanceResponse>* ObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>* AsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::ObserveGovernanceResponse>* PrepareAsyncObserveGovernanceRaw(::grpc::ClientContext* context, const ::api::v1::ObserveGovernanceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::ObservePartyProposalsResponse>* ObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>* AsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::ObservePartyProposalsResponse>* PrepareAsyncObservePartyProposalsRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyProposalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::ObservePartyVotesResponse>* ObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>* AsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::ObservePartyVotesResponse>* PrepareAsyncObservePartyVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObservePartyVotesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::ObserveProposalVotesResponse>* ObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>* AsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::ObserveProposalVotesResponse>* PrepareAsyncObserveProposalVotesRaw(::grpc::ClientContext* context, const ::api::v1::ObserveProposalVotesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBusRaw(::grpc::ClientContext* context) override; - ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* AsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReaderWriter< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* PrepareAsyncObserveEventBusRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* AsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::StatisticsResponse>* PrepareAsyncStatisticsRaw(::grpc::ClientContext* context, const ::api::v1::StatisticsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* AsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LastBlockHeightResponse>* PrepareAsyncLastBlockHeightRaw(::grpc::ClientContext* context, const ::api::v1::LastBlockHeightRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* AsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetVegaTimeResponse>* PrepareAsyncGetVegaTimeRaw(::grpc::ClientContext* context, const ::api::v1::GetVegaTimeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::AccountsSubscribeResponse>* AccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>* AsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::AccountsSubscribeResponse>* PrepareAsyncAccountsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::AccountsSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::CandlesSubscribeResponse>* CandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>* AsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::CandlesSubscribeResponse>* PrepareAsyncCandlesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::CandlesSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::MarginLevelsSubscribeResponse>* MarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>* AsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::MarginLevelsSubscribeResponse>* PrepareAsyncMarginLevelsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarginLevelsSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::MarketDepthSubscribeResponse>* MarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>* AsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketDepthSubscribeResponse>* PrepareAsyncMarketDepthSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* MarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* AsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketDepthUpdatesSubscribeResponse>* PrepareAsyncMarketDepthUpdatesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::MarketsDataSubscribeResponse>* MarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>* AsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::MarketsDataSubscribeResponse>* PrepareAsyncMarketsDataSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::MarketsDataSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::OrdersSubscribeResponse>* OrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>* AsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::OrdersSubscribeResponse>* PrepareAsyncOrdersSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::OrdersSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::PositionsSubscribeResponse>* PositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>* AsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::PositionsSubscribeResponse>* PrepareAsyncPositionsSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::PositionsSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::TradesSubscribeResponse>* TradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>* AsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::TradesSubscribeResponse>* PrepareAsyncTradesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TradesSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::api::v1::TransferResponsesSubscribeResponse>* TransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request) override; - ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>* AsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::api::v1::TransferResponsesSubscribeResponse>* PrepareAsyncTransferResponsesSubscribeRaw(::grpc::ClientContext* context, const ::api::v1::TransferResponsesSubscribeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>* AsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::GetNodeSignaturesAggregateResponse>* PrepareAsyncGetNodeSignaturesAggregateRaw(::grpc::ClientContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>* AsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::AssetByIDResponse>* PrepareAsyncAssetByIDRaw(::grpc::ClientContext* context, const ::api::v1::AssetByIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>* AsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::AssetsResponse>* PrepareAsyncAssetsRaw(::grpc::ClientContext* context, const ::api::v1::AssetsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>* AsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateFeeResponse>* PrepareAsyncEstimateFeeRaw(::grpc::ClientContext* context, const ::api::v1::EstimateFeeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>* AsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::EstimateMarginResponse>* PrepareAsyncEstimateMarginRaw(::grpc::ClientContext* context, const ::api::v1::EstimateMarginRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>* AsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::ERC20WithdrawalApprovalResponse>* PrepareAsyncERC20WithdrawalApprovalRaw(::grpc::ClientContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>* AsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalResponse>* PrepareAsyncWithdrawalRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>* AsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::WithdrawalsResponse>* PrepareAsyncWithdrawalsRaw(::grpc::ClientContext* context, const ::api::v1::WithdrawalsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>* AsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::DepositResponse>* PrepareAsyncDepositRaw(::grpc::ClientContext* context, const ::api::v1::DepositRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>* AsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::DepositsResponse>* PrepareAsyncDepositsRaw(::grpc::ClientContext* context, const ::api::v1::DepositsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>* AsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::NetworkParametersResponse>* PrepareAsyncNetworkParametersRaw(::grpc::ClientContext* context, const ::api::v1::NetworkParametersRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>* AsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::LiquidityProvisionsResponse>* PrepareAsyncLiquidityProvisionsRaw(::grpc::ClientContext* context, const ::api::v1::LiquidityProvisionsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>* AsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecResponse>* PrepareAsyncOracleSpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>* AsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleSpecsResponse>* PrepareAsyncOracleSpecsRaw(::grpc::ClientContext* context, const ::api::v1::OracleSpecsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>* AsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::api::v1::OracleDataBySpecResponse>* PrepareAsyncOracleDataBySpecRaw(::grpc::ClientContext* context, const ::api::v1::OracleDataBySpecRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_MarketAccounts_; - const ::grpc::internal::RpcMethod rpcmethod_PartyAccounts_; - const ::grpc::internal::RpcMethod rpcmethod_FeeInfrastructureAccounts_; - const ::grpc::internal::RpcMethod rpcmethod_Candles_; - const ::grpc::internal::RpcMethod rpcmethod_MarketDataByID_; - const ::grpc::internal::RpcMethod rpcmethod_MarketsData_; - const ::grpc::internal::RpcMethod rpcmethod_MarketByID_; - const ::grpc::internal::RpcMethod rpcmethod_MarketDepth_; - const ::grpc::internal::RpcMethod rpcmethod_Markets_; - const ::grpc::internal::RpcMethod rpcmethod_OrderByMarketAndID_; - const ::grpc::internal::RpcMethod rpcmethod_OrderByReference_; - const ::grpc::internal::RpcMethod rpcmethod_OrdersByMarket_; - const ::grpc::internal::RpcMethod rpcmethod_OrdersByParty_; - const ::grpc::internal::RpcMethod rpcmethod_OrderByID_; - const ::grpc::internal::RpcMethod rpcmethod_OrderVersionsByID_; - const ::grpc::internal::RpcMethod rpcmethod_MarginLevels_; - const ::grpc::internal::RpcMethod rpcmethod_Parties_; - const ::grpc::internal::RpcMethod rpcmethod_PartyByID_; - const ::grpc::internal::RpcMethod rpcmethod_PositionsByParty_; - const ::grpc::internal::RpcMethod rpcmethod_LastTrade_; - const ::grpc::internal::RpcMethod rpcmethod_TradesByMarket_; - const ::grpc::internal::RpcMethod rpcmethod_TradesByOrder_; - const ::grpc::internal::RpcMethod rpcmethod_TradesByParty_; - const ::grpc::internal::RpcMethod rpcmethod_GetProposals_; - const ::grpc::internal::RpcMethod rpcmethod_GetProposalsByParty_; - const ::grpc::internal::RpcMethod rpcmethod_GetVotesByParty_; - const ::grpc::internal::RpcMethod rpcmethod_GetNewMarketProposals_; - const ::grpc::internal::RpcMethod rpcmethod_GetUpdateMarketProposals_; - const ::grpc::internal::RpcMethod rpcmethod_GetNetworkParametersProposals_; - const ::grpc::internal::RpcMethod rpcmethod_GetNewAssetProposals_; - const ::grpc::internal::RpcMethod rpcmethod_GetProposalByID_; - const ::grpc::internal::RpcMethod rpcmethod_GetProposalByReference_; - const ::grpc::internal::RpcMethod rpcmethod_ObserveGovernance_; - const ::grpc::internal::RpcMethod rpcmethod_ObservePartyProposals_; - const ::grpc::internal::RpcMethod rpcmethod_ObservePartyVotes_; - const ::grpc::internal::RpcMethod rpcmethod_ObserveProposalVotes_; - const ::grpc::internal::RpcMethod rpcmethod_ObserveEventBus_; - const ::grpc::internal::RpcMethod rpcmethod_Statistics_; - const ::grpc::internal::RpcMethod rpcmethod_LastBlockHeight_; - const ::grpc::internal::RpcMethod rpcmethod_GetVegaTime_; - const ::grpc::internal::RpcMethod rpcmethod_AccountsSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_CandlesSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_MarginLevelsSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_MarketDepthSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_MarketDepthUpdatesSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_MarketsDataSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_OrdersSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_PositionsSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_TradesSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_TransferResponsesSubscribe_; - const ::grpc::internal::RpcMethod rpcmethod_GetNodeSignaturesAggregate_; - const ::grpc::internal::RpcMethod rpcmethod_AssetByID_; - const ::grpc::internal::RpcMethod rpcmethod_Assets_; - const ::grpc::internal::RpcMethod rpcmethod_EstimateFee_; - const ::grpc::internal::RpcMethod rpcmethod_EstimateMargin_; - const ::grpc::internal::RpcMethod rpcmethod_ERC20WithdrawalApproval_; - const ::grpc::internal::RpcMethod rpcmethod_Withdrawal_; - const ::grpc::internal::RpcMethod rpcmethod_Withdrawals_; - const ::grpc::internal::RpcMethod rpcmethod_Deposit_; - const ::grpc::internal::RpcMethod rpcmethod_Deposits_; - const ::grpc::internal::RpcMethod rpcmethod_NetworkParameters_; - const ::grpc::internal::RpcMethod rpcmethod_LiquidityProvisions_; - const ::grpc::internal::RpcMethod rpcmethod_OracleSpec_; - const ::grpc::internal::RpcMethod rpcmethod_OracleSpecs_; - const ::grpc::internal::RpcMethod rpcmethod_OracleDataBySpec_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // -- Accounts -- - // - // Get a list of Accounts by Market - virtual ::grpc::Status MarketAccounts(::grpc::ServerContext* context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response); - // Get a list of Accounts by Party - virtual ::grpc::Status PartyAccounts(::grpc::ServerContext* context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response); - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - virtual ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response); - // -- Candles -- - // - // Get a list of Candles by Market - virtual ::grpc::Status Candles(::grpc::ServerContext* context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response); - // -- Market Data -- - // - // Get Market Data by Market ID - virtual ::grpc::Status MarketDataByID(::grpc::ServerContext* context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response); - // Get a list of Market Data - virtual ::grpc::Status MarketsData(::grpc::ServerContext* context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response); - // -- Markets -- - // - // Get a Market by ID - virtual ::grpc::Status MarketByID(::grpc::ServerContext* context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response); - // Get Market Depth - virtual ::grpc::Status MarketDepth(::grpc::ServerContext* context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response); - // Get a list of Markets - virtual ::grpc::Status Markets(::grpc::ServerContext* context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response); - // -- Orders -- - // - // Get an Order by Market and Order ID - virtual ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response); - // Get an Order by Pending Order reference (UUID) - virtual ::grpc::Status OrderByReference(::grpc::ServerContext* context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response); - // Get a list of Orders by Market - virtual ::grpc::Status OrdersByMarket(::grpc::ServerContext* context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response); - // Get a list of Orders by Party - virtual ::grpc::Status OrdersByParty(::grpc::ServerContext* context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response); - // Get a specific order by order ID - virtual ::grpc::Status OrderByID(::grpc::ServerContext* context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response); - // Get all versions of the order by its orderID - virtual ::grpc::Status OrderVersionsByID(::grpc::ServerContext* context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response); - // -- Parties -- - // - // Get Margin Levels by Party ID - virtual ::grpc::Status MarginLevels(::grpc::ServerContext* context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response); - // Get a list of Parties - virtual ::grpc::Status Parties(::grpc::ServerContext* context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response); - // Get a Party by ID - virtual ::grpc::Status PartyByID(::grpc::ServerContext* context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response); - // -- Positions -- - // - // Get a list of Positions by Party - virtual ::grpc::Status PositionsByParty(::grpc::ServerContext* context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response); - // -- Trades -- - // - // Get latest Trade - virtual ::grpc::Status LastTrade(::grpc::ServerContext* context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response); - // Get a list of Trades by Market - virtual ::grpc::Status TradesByMarket(::grpc::ServerContext* context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response); - // Get a list of Trades by Order - virtual ::grpc::Status TradesByOrder(::grpc::ServerContext* context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response); - // Get a list of Trades by Party - virtual ::grpc::Status TradesByParty(::grpc::ServerContext* context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response); - // -- Governance -- - // - // Get governance data (proposals and votes) for all proposals - virtual ::grpc::Status GetProposals(::grpc::ServerContext* context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response); - // Get governance data (proposals and votes) for proposals by party authoring them - virtual ::grpc::Status GetProposalsByParty(::grpc::ServerContext* context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response); - // Get votes by party casting them - virtual ::grpc::Status GetVotesByParty(::grpc::ServerContext* context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response); - // Get governance data (proposals and votes) for proposals that aim creating new markets - virtual ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response); - // Get governance data (proposals and votes) for proposals that aim updating markets - virtual ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response); - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - virtual ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response); - // Get governance data (proposals and votes) for proposals aiming to create new assets - virtual ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response); - // Get governance data (proposals and votes) for a proposal located by ID - virtual ::grpc::Status GetProposalByID(::grpc::ServerContext* context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response); - // Get governance data (proposals and votes) for a proposal located by reference - virtual ::grpc::Status GetProposalByReference(::grpc::ServerContext* context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response); - // Subscribe to a stream of all governance updates - virtual ::grpc::Status ObserveGovernance(::grpc::ServerContext* context, const ::api::v1::ObserveGovernanceRequest* request, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* writer); - // Subscribe to a stream of proposal updates - virtual ::grpc::Status ObservePartyProposals(::grpc::ServerContext* context, const ::api::v1::ObservePartyProposalsRequest* request, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* writer); - // Subscribe to a stream of votes cast by a specific party - virtual ::grpc::Status ObservePartyVotes(::grpc::ServerContext* context, const ::api::v1::ObservePartyVotesRequest* request, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* writer); - // Subscribe to a stream of proposal votes - virtual ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* context, const ::api::v1::ObserveProposalVotesRequest* request, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* writer); - // Subscribe to a stream of events from the core - virtual ::grpc::Status ObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream); - // -- Misc -- - // - // Get Statistics on Vega - virtual ::grpc::Status Statistics(::grpc::ServerContext* context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response); - virtual ::grpc::Status LastBlockHeight(::grpc::ServerContext* context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response); - // Get Time - virtual ::grpc::Status GetVegaTime(::grpc::ServerContext* context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response); - // Subscribe to a stream of Accounts - virtual ::grpc::Status AccountsSubscribe(::grpc::ServerContext* context, const ::api::v1::AccountsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* writer); - // Subscribe to a stream of Candles - virtual ::grpc::Status CandlesSubscribe(::grpc::ServerContext* context, const ::api::v1::CandlesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* writer); - // Subscribe to a stream of Margin Levels - virtual ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* context, const ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* writer); - // Subscribe to a stream of Market Depth - virtual ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* writer); - // Subscribe to a stream of Market Depth Price Level Updates - virtual ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* writer); - // Subscribe to a stream of Markets Data - virtual ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* context, const ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* writer); - // Subscribe to a stream of Orders - virtual ::grpc::Status OrdersSubscribe(::grpc::ServerContext* context, const ::api::v1::OrdersSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* writer); - // Subscribe to a stream of Positions - virtual ::grpc::Status PositionsSubscribe(::grpc::ServerContext* context, const ::api::v1::PositionsSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* writer); - // Subscribe to a stream of Trades - virtual ::grpc::Status TradesSubscribe(::grpc::ServerContext* context, const ::api::v1::TradesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* writer); - // Subscribe to a stream of Transfer Responses - virtual ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* context, const ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* writer); - // Get an aggregate of signatures from all the nodes of the network - virtual ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response); - // Get an asset by its identifier - virtual ::grpc::Status AssetByID(::grpc::ServerContext* context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response); - // Get a list of all assets on Vega - virtual ::grpc::Status Assets(::grpc::ServerContext* context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response); - // Get an estimate for the fee to be paid for a given order - virtual ::grpc::Status EstimateFee(::grpc::ServerContext* context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response); - // Get an estimate for the margin required for a new order - virtual ::grpc::Status EstimateMargin(::grpc::ServerContext* context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response); - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - virtual ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response); - // Get a withdrawal by its identifier - virtual ::grpc::Status Withdrawal(::grpc::ServerContext* context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response); - // Get withdrawals for a party - virtual ::grpc::Status Withdrawals(::grpc::ServerContext* context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response); - // Get a deposit by its identifier - virtual ::grpc::Status Deposit(::grpc::ServerContext* context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response); - // Get deposits for a party - virtual ::grpc::Status Deposits(::grpc::ServerContext* context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response); - // Get the network parameters - virtual ::grpc::Status NetworkParameters(::grpc::ServerContext* context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response); - // Get the liquidity provision orders - virtual ::grpc::Status LiquidityProvisions(::grpc::ServerContext* context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response); - // Get an oracle spec by ID - virtual ::grpc::Status OracleSpec(::grpc::ServerContext* context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response); - // Get the oracle specs - virtual ::grpc::Status OracleSpecs(::grpc::ServerContext* context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response); - // Get all oracle data - virtual ::grpc::Status OracleDataBySpec(::grpc::ServerContext* context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response); - }; - template - class WithAsyncMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketAccounts() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketAccounts(::grpc::ServerContext* context, ::api::v1::MarketAccountsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketAccountsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PartyAccounts() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPartyAccounts(::grpc::ServerContext* context, ::api::v1::PartyAccountsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PartyAccountsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_FeeInfrastructureAccounts() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestFeeInfrastructureAccounts(::grpc::ServerContext* context, ::api::v1::FeeInfrastructureAccountsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::FeeInfrastructureAccountsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Candles() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCandles(::grpc::ServerContext* context, ::api::v1::CandlesRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::CandlesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketDataByID() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDataByID(::grpc::ServerContext* context, ::api::v1::MarketDataByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketDataByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketsData() { - ::grpc::Service::MarkMethodAsync(5); - } - ~WithAsyncMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketsData(::grpc::ServerContext* context, ::api::v1::MarketsDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketsDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketByID() { - ::grpc::Service::MarkMethodAsync(6); - } - ~WithAsyncMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketByID(::grpc::ServerContext* context, ::api::v1::MarketByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketDepth() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepth(::grpc::ServerContext* context, ::api::v1::MarketDepthRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketDepthResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Markets() { - ::grpc::Service::MarkMethodAsync(8); - } - ~WithAsyncMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarkets(::grpc::ServerContext* context, ::api::v1::MarketsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarketsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrderByMarketAndID() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByMarketAndID(::grpc::ServerContext* context, ::api::v1::OrderByMarketAndIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrderByMarketAndIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrderByReference() { - ::grpc::Service::MarkMethodAsync(10); - } - ~WithAsyncMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByReference(::grpc::ServerContext* context, ::api::v1::OrderByReferenceRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrderByReferenceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrdersByMarket() { - ::grpc::Service::MarkMethodAsync(11); - } - ~WithAsyncMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersByMarket(::grpc::ServerContext* context, ::api::v1::OrdersByMarketRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrdersByMarketResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrdersByParty() { - ::grpc::Service::MarkMethodAsync(12); - } - ~WithAsyncMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersByParty(::grpc::ServerContext* context, ::api::v1::OrdersByPartyRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrdersByPartyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrderByID() { - ::grpc::Service::MarkMethodAsync(13); - } - ~WithAsyncMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByID(::grpc::ServerContext* context, ::api::v1::OrderByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrderByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrderVersionsByID() { - ::grpc::Service::MarkMethodAsync(14); - } - ~WithAsyncMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderVersionsByID(::grpc::ServerContext* context, ::api::v1::OrderVersionsByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OrderVersionsByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarginLevels() { - ::grpc::Service::MarkMethodAsync(15); - } - ~WithAsyncMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarginLevels(::grpc::ServerContext* context, ::api::v1::MarginLevelsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::MarginLevelsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Parties() { - ::grpc::Service::MarkMethodAsync(16); - } - ~WithAsyncMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestParties(::grpc::ServerContext* context, ::api::v1::PartiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PartiesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PartyByID() { - ::grpc::Service::MarkMethodAsync(17); - } - ~WithAsyncMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPartyByID(::grpc::ServerContext* context, ::api::v1::PartyByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PartyByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PositionsByParty() { - ::grpc::Service::MarkMethodAsync(18); - } - ~WithAsyncMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPositionsByParty(::grpc::ServerContext* context, ::api::v1::PositionsByPartyRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::PositionsByPartyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_LastTrade() { - ::grpc::Service::MarkMethodAsync(19); - } - ~WithAsyncMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLastTrade(::grpc::ServerContext* context, ::api::v1::LastTradeRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::LastTradeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_TradesByMarket() { - ::grpc::Service::MarkMethodAsync(20); - } - ~WithAsyncMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByMarket(::grpc::ServerContext* context, ::api::v1::TradesByMarketRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::TradesByMarketResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_TradesByOrder() { - ::grpc::Service::MarkMethodAsync(21); - } - ~WithAsyncMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByOrder(::grpc::ServerContext* context, ::api::v1::TradesByOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::TradesByOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_TradesByParty() { - ::grpc::Service::MarkMethodAsync(22); - } - ~WithAsyncMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByParty(::grpc::ServerContext* context, ::api::v1::TradesByPartyRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::TradesByPartyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetProposals() { - ::grpc::Service::MarkMethodAsync(23); - } - ~WithAsyncMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposals(::grpc::ServerContext* context, ::api::v1::GetProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetProposalsByParty() { - ::grpc::Service::MarkMethodAsync(24); - } - ~WithAsyncMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalsByParty(::grpc::ServerContext* context, ::api::v1::GetProposalsByPartyRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetProposalsByPartyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetVotesByParty() { - ::grpc::Service::MarkMethodAsync(25); - } - ~WithAsyncMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVotesByParty(::grpc::ServerContext* context, ::api::v1::GetVotesByPartyRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetVotesByPartyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetNewMarketProposals() { - ::grpc::Service::MarkMethodAsync(26); - } - ~WithAsyncMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNewMarketProposals(::grpc::ServerContext* context, ::api::v1::GetNewMarketProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetNewMarketProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetUpdateMarketProposals() { - ::grpc::Service::MarkMethodAsync(27); - } - ~WithAsyncMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetUpdateMarketProposals(::grpc::ServerContext* context, ::api::v1::GetUpdateMarketProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetUpdateMarketProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetNetworkParametersProposals() { - ::grpc::Service::MarkMethodAsync(28); - } - ~WithAsyncMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNetworkParametersProposals(::grpc::ServerContext* context, ::api::v1::GetNetworkParametersProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetNetworkParametersProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetNewAssetProposals() { - ::grpc::Service::MarkMethodAsync(29); - } - ~WithAsyncMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNewAssetProposals(::grpc::ServerContext* context, ::api::v1::GetNewAssetProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetNewAssetProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetProposalByID() { - ::grpc::Service::MarkMethodAsync(30); - } - ~WithAsyncMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalByID(::grpc::ServerContext* context, ::api::v1::GetProposalByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetProposalByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetProposalByReference() { - ::grpc::Service::MarkMethodAsync(31); - } - ~WithAsyncMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalByReference(::grpc::ServerContext* context, ::api::v1::GetProposalByReferenceRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetProposalByReferenceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ObserveGovernance() { - ::grpc::Service::MarkMethodAsync(32); - } - ~WithAsyncMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveGovernance(::grpc::ServerContext* context, ::api::v1::ObserveGovernanceRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::ObserveGovernanceResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(32, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ObservePartyProposals() { - ::grpc::Service::MarkMethodAsync(33); - } - ~WithAsyncMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObservePartyProposals(::grpc::ServerContext* context, ::api::v1::ObservePartyProposalsRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::ObservePartyProposalsResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(33, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ObservePartyVotes() { - ::grpc::Service::MarkMethodAsync(34); - } - ~WithAsyncMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObservePartyVotes(::grpc::ServerContext* context, ::api::v1::ObservePartyVotesRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::ObservePartyVotesResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(34, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ObserveProposalVotes() { - ::grpc::Service::MarkMethodAsync(35); - } - ~WithAsyncMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveProposalVotes(::grpc::ServerContext* context, ::api::v1::ObserveProposalVotesRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::ObserveProposalVotesResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ObserveEventBus : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ObserveEventBus() { - ::grpc::Service::MarkMethodAsync(36); - } - ~WithAsyncMethod_ObserveEventBus() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncBidiStreaming(36, context, stream, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Statistics() { - ::grpc::Service::MarkMethodAsync(37); - } - ~WithAsyncMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStatistics(::grpc::ServerContext* context, ::api::v1::StatisticsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::StatisticsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_LastBlockHeight() { - ::grpc::Service::MarkMethodAsync(38); - } - ~WithAsyncMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLastBlockHeight(::grpc::ServerContext* context, ::api::v1::LastBlockHeightRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::LastBlockHeightResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetVegaTime() { - ::grpc::Service::MarkMethodAsync(39); - } - ~WithAsyncMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVegaTime(::grpc::ServerContext* context, ::api::v1::GetVegaTimeRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetVegaTimeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_AccountsSubscribe() { - ::grpc::Service::MarkMethodAsync(40); - } - ~WithAsyncMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAccountsSubscribe(::grpc::ServerContext* context, ::api::v1::AccountsSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::AccountsSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(40, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_CandlesSubscribe() { - ::grpc::Service::MarkMethodAsync(41); - } - ~WithAsyncMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCandlesSubscribe(::grpc::ServerContext* context, ::api::v1::CandlesSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::CandlesSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(41, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarginLevelsSubscribe() { - ::grpc::Service::MarkMethodAsync(42); - } - ~WithAsyncMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarginLevelsSubscribe(::grpc::ServerContext* context, ::api::v1::MarginLevelsSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::MarginLevelsSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(42, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketDepthSubscribe() { - ::grpc::Service::MarkMethodAsync(43); - } - ~WithAsyncMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepthSubscribe(::grpc::ServerContext* context, ::api::v1::MarketDepthSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::MarketDepthSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(43, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketDepthUpdatesSubscribe() { - ::grpc::Service::MarkMethodAsync(44); - } - ~WithAsyncMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepthUpdatesSubscribe(::grpc::ServerContext* context, ::api::v1::MarketDepthUpdatesSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(44, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MarketsDataSubscribe() { - ::grpc::Service::MarkMethodAsync(45); - } - ~WithAsyncMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketsDataSubscribe(::grpc::ServerContext* context, ::api::v1::MarketsDataSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::MarketsDataSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(45, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OrdersSubscribe() { - ::grpc::Service::MarkMethodAsync(46); - } - ~WithAsyncMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersSubscribe(::grpc::ServerContext* context, ::api::v1::OrdersSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::OrdersSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(46, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PositionsSubscribe() { - ::grpc::Service::MarkMethodAsync(47); - } - ~WithAsyncMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPositionsSubscribe(::grpc::ServerContext* context, ::api::v1::PositionsSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::PositionsSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(47, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_TradesSubscribe() { - ::grpc::Service::MarkMethodAsync(48); - } - ~WithAsyncMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesSubscribe(::grpc::ServerContext* context, ::api::v1::TradesSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::TradesSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(48, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_TransferResponsesSubscribe() { - ::grpc::Service::MarkMethodAsync(49); - } - ~WithAsyncMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTransferResponsesSubscribe(::grpc::ServerContext* context, ::api::v1::TransferResponsesSubscribeRequest* request, ::grpc::ServerAsyncWriter< ::api::v1::TransferResponsesSubscribeResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(49, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetNodeSignaturesAggregate() { - ::grpc::Service::MarkMethodAsync(50); - } - ~WithAsyncMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeSignaturesAggregate(::grpc::ServerContext* context, ::api::v1::GetNodeSignaturesAggregateRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::GetNodeSignaturesAggregateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_AssetByID() { - ::grpc::Service::MarkMethodAsync(51); - } - ~WithAsyncMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAssetByID(::grpc::ServerContext* context, ::api::v1::AssetByIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::AssetByIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Assets() { - ::grpc::Service::MarkMethodAsync(52); - } - ~WithAsyncMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAssets(::grpc::ServerContext* context, ::api::v1::AssetsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::AssetsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_EstimateFee() { - ::grpc::Service::MarkMethodAsync(53); - } - ~WithAsyncMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestEstimateFee(::grpc::ServerContext* context, ::api::v1::EstimateFeeRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::EstimateFeeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(53, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_EstimateMargin() { - ::grpc::Service::MarkMethodAsync(54); - } - ~WithAsyncMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestEstimateMargin(::grpc::ServerContext* context, ::api::v1::EstimateMarginRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::EstimateMarginResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(54, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ERC20WithdrawalApproval() { - ::grpc::Service::MarkMethodAsync(55); - } - ~WithAsyncMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestERC20WithdrawalApproval(::grpc::ServerContext* context, ::api::v1::ERC20WithdrawalApprovalRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::ERC20WithdrawalApprovalResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(55, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Withdrawal() { - ::grpc::Service::MarkMethodAsync(56); - } - ~WithAsyncMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestWithdrawal(::grpc::ServerContext* context, ::api::v1::WithdrawalRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::WithdrawalResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(56, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Withdrawals() { - ::grpc::Service::MarkMethodAsync(57); - } - ~WithAsyncMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestWithdrawals(::grpc::ServerContext* context, ::api::v1::WithdrawalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::WithdrawalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(57, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Deposit() { - ::grpc::Service::MarkMethodAsync(58); - } - ~WithAsyncMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeposit(::grpc::ServerContext* context, ::api::v1::DepositRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::DepositResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(58, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Deposits() { - ::grpc::Service::MarkMethodAsync(59); - } - ~WithAsyncMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeposits(::grpc::ServerContext* context, ::api::v1::DepositsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::DepositsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(59, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_NetworkParameters() { - ::grpc::Service::MarkMethodAsync(60); - } - ~WithAsyncMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestNetworkParameters(::grpc::ServerContext* context, ::api::v1::NetworkParametersRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::NetworkParametersResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(60, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_LiquidityProvisions() { - ::grpc::Service::MarkMethodAsync(61); - } - ~WithAsyncMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLiquidityProvisions(::grpc::ServerContext* context, ::api::v1::LiquidityProvisionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::LiquidityProvisionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(61, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OracleSpec() { - ::grpc::Service::MarkMethodAsync(62); - } - ~WithAsyncMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleSpec(::grpc::ServerContext* context, ::api::v1::OracleSpecRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OracleSpecResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(62, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OracleSpecs() { - ::grpc::Service::MarkMethodAsync(63); - } - ~WithAsyncMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleSpecs(::grpc::ServerContext* context, ::api::v1::OracleSpecsRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OracleSpecsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(63, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_OracleDataBySpec() { - ::grpc::Service::MarkMethodAsync(64); - } - ~WithAsyncMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleDataBySpec(::grpc::ServerContext* context, ::api::v1::OracleDataBySpecRequest* request, ::grpc::ServerAsyncResponseWriter< ::api::v1::OracleDataBySpecResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(64, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_MarketAccounts > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; - template - class ExperimentalWithCallbackMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketAccountsRequest* request, ::api::v1::MarketAccountsResponse* response) { return this->MarketAccounts(context, request, response); }));} - void SetMessageAllocatorFor_MarketAccounts( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_PartyAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PartyAccountsRequest* request, ::api::v1::PartyAccountsResponse* response) { return this->PartyAccounts(context, request, response); }));} - void SetMessageAllocatorFor_PartyAccounts( - ::grpc::experimental::MessageAllocator< ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PartyAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PartyAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_FeeInfrastructureAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::FeeInfrastructureAccountsRequest* request, ::api::v1::FeeInfrastructureAccountsResponse* response) { return this->FeeInfrastructureAccounts(context, request, response); }));} - void SetMessageAllocatorFor_FeeInfrastructureAccounts( - ::grpc::experimental::MessageAllocator< ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* FeeInfrastructureAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* FeeInfrastructureAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Candles() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::CandlesRequest, ::api::v1::CandlesResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::CandlesRequest* request, ::api::v1::CandlesResponse* response) { return this->Candles(context, request, response); }));} - void SetMessageAllocatorFor_Candles( - ::grpc::experimental::MessageAllocator< ::api::v1::CandlesRequest, ::api::v1::CandlesResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::CandlesRequest, ::api::v1::CandlesResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Candles( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Candles( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketDataByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketDataByIDRequest* request, ::api::v1::MarketDataByIDResponse* response) { return this->MarketDataByID(context, request, response); }));} - void SetMessageAllocatorFor_MarketDataByID( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketDataByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketDataByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketsData() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketsDataRequest* request, ::api::v1::MarketsDataResponse* response) { return this->MarketsData(context, request, response); }));} - void SetMessageAllocatorFor_MarketsData( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketsData( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketsData( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketByIDRequest* request, ::api::v1::MarketByIDResponse* response) { return this->MarketByID(context, request, response); }));} - void SetMessageAllocatorFor_MarketByID( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketDepth() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketDepthRequest* request, ::api::v1::MarketDepthResponse* response) { return this->MarketDepth(context, request, response); }));} - void SetMessageAllocatorFor_MarketDepth( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketDepth( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketDepth( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Markets() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketsRequest, ::api::v1::MarketsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketsRequest* request, ::api::v1::MarketsResponse* response) { return this->Markets(context, request, response); }));} - void SetMessageAllocatorFor_Markets( - ::grpc::experimental::MessageAllocator< ::api::v1::MarketsRequest, ::api::v1::MarketsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarketsRequest, ::api::v1::MarketsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Markets( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Markets( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrderByMarketAndID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrderByMarketAndIDRequest* request, ::api::v1::OrderByMarketAndIDResponse* response) { return this->OrderByMarketAndID(context, request, response); }));} - void SetMessageAllocatorFor_OrderByMarketAndID( - ::grpc::experimental::MessageAllocator< ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByMarketAndID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByMarketAndID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrderByReference() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrderByReferenceRequest* request, ::api::v1::OrderByReferenceResponse* response) { return this->OrderByReference(context, request, response); }));} - void SetMessageAllocatorFor_OrderByReference( - ::grpc::experimental::MessageAllocator< ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByReference( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByReference( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrdersByMarket() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrdersByMarketRequest* request, ::api::v1::OrdersByMarketResponse* response) { return this->OrdersByMarket(context, request, response); }));} - void SetMessageAllocatorFor_OrdersByMarket( - ::grpc::experimental::MessageAllocator< ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrdersByMarket( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrdersByMarket( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrdersByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrdersByPartyRequest* request, ::api::v1::OrdersByPartyResponse* response) { return this->OrdersByParty(context, request, response); }));} - void SetMessageAllocatorFor_OrdersByParty( - ::grpc::experimental::MessageAllocator< ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(12); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrdersByParty( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrdersByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrderByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrderByIDRequest* request, ::api::v1::OrderByIDResponse* response) { return this->OrderByID(context, request, response); }));} - void SetMessageAllocatorFor_OrderByID( - ::grpc::experimental::MessageAllocator< ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(13); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrderVersionsByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrderVersionsByIDRequest* request, ::api::v1::OrderVersionsByIDResponse* response) { return this->OrderVersionsByID(context, request, response); }));} - void SetMessageAllocatorFor_OrderVersionsByID( - ::grpc::experimental::MessageAllocator< ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(14); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderVersionsByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderVersionsByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarginLevels() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarginLevelsRequest* request, ::api::v1::MarginLevelsResponse* response) { return this->MarginLevels(context, request, response); }));} - void SetMessageAllocatorFor_MarginLevels( - ::grpc::experimental::MessageAllocator< ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(15); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarginLevels( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarginLevels( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Parties() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PartiesRequest, ::api::v1::PartiesResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PartiesRequest* request, ::api::v1::PartiesResponse* response) { return this->Parties(context, request, response); }));} - void SetMessageAllocatorFor_Parties( - ::grpc::experimental::MessageAllocator< ::api::v1::PartiesRequest, ::api::v1::PartiesResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(16); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PartiesRequest, ::api::v1::PartiesResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Parties( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Parties( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_PartyByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PartyByIDRequest* request, ::api::v1::PartyByIDResponse* response) { return this->PartyByID(context, request, response); }));} - void SetMessageAllocatorFor_PartyByID( - ::grpc::experimental::MessageAllocator< ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(17); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PartyByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PartyByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_PositionsByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PositionsByPartyRequest* request, ::api::v1::PositionsByPartyResponse* response) { return this->PositionsByParty(context, request, response); }));} - void SetMessageAllocatorFor_PositionsByParty( - ::grpc::experimental::MessageAllocator< ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(18); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PositionsByParty( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PositionsByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_LastTrade() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::LastTradeRequest* request, ::api::v1::LastTradeResponse* response) { return this->LastTrade(context, request, response); }));} - void SetMessageAllocatorFor_LastTrade( - ::grpc::experimental::MessageAllocator< ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(19); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LastTrade( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LastTrade( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_TradesByMarket() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::TradesByMarketRequest* request, ::api::v1::TradesByMarketResponse* response) { return this->TradesByMarket(context, request, response); }));} - void SetMessageAllocatorFor_TradesByMarket( - ::grpc::experimental::MessageAllocator< ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(20); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByMarket( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByMarket( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_TradesByOrder() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::TradesByOrderRequest* request, ::api::v1::TradesByOrderResponse* response) { return this->TradesByOrder(context, request, response); }));} - void SetMessageAllocatorFor_TradesByOrder( - ::grpc::experimental::MessageAllocator< ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(21); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(21); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByOrder( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByOrder( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_TradesByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::TradesByPartyRequest* request, ::api::v1::TradesByPartyResponse* response) { return this->TradesByParty(context, request, response); }));} - void SetMessageAllocatorFor_TradesByParty( - ::grpc::experimental::MessageAllocator< ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(22); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(22); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByParty( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetProposalsRequest* request, ::api::v1::GetProposalsResponse* response) { return this->GetProposals(context, request, response); }));} - void SetMessageAllocatorFor_GetProposals( - ::grpc::experimental::MessageAllocator< ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(23); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(23); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetProposalsByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetProposalsByPartyRequest* request, ::api::v1::GetProposalsByPartyResponse* response) { return this->GetProposalsByParty(context, request, response); }));} - void SetMessageAllocatorFor_GetProposalsByParty( - ::grpc::experimental::MessageAllocator< ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(24); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(24); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalsByParty( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalsByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetVotesByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetVotesByPartyRequest* request, ::api::v1::GetVotesByPartyResponse* response) { return this->GetVotesByParty(context, request, response); }));} - void SetMessageAllocatorFor_GetVotesByParty( - ::grpc::experimental::MessageAllocator< ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(25); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(25); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetVotesByParty( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetVotesByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetNewMarketProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetNewMarketProposalsRequest* request, ::api::v1::GetNewMarketProposalsResponse* response) { return this->GetNewMarketProposals(context, request, response); }));} - void SetMessageAllocatorFor_GetNewMarketProposals( - ::grpc::experimental::MessageAllocator< ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(26); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(26); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNewMarketProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNewMarketProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetUpdateMarketProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetUpdateMarketProposalsRequest* request, ::api::v1::GetUpdateMarketProposalsResponse* response) { return this->GetUpdateMarketProposals(context, request, response); }));} - void SetMessageAllocatorFor_GetUpdateMarketProposals( - ::grpc::experimental::MessageAllocator< ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(27); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(27); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetUpdateMarketProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetUpdateMarketProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetNetworkParametersProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetNetworkParametersProposalsRequest* request, ::api::v1::GetNetworkParametersProposalsResponse* response) { return this->GetNetworkParametersProposals(context, request, response); }));} - void SetMessageAllocatorFor_GetNetworkParametersProposals( - ::grpc::experimental::MessageAllocator< ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(28); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(28); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNetworkParametersProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNetworkParametersProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetNewAssetProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetNewAssetProposalsRequest* request, ::api::v1::GetNewAssetProposalsResponse* response) { return this->GetNewAssetProposals(context, request, response); }));} - void SetMessageAllocatorFor_GetNewAssetProposals( - ::grpc::experimental::MessageAllocator< ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(29); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(29); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNewAssetProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNewAssetProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetProposalByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetProposalByIDRequest* request, ::api::v1::GetProposalByIDResponse* response) { return this->GetProposalByID(context, request, response); }));} - void SetMessageAllocatorFor_GetProposalByID( - ::grpc::experimental::MessageAllocator< ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(30); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(30); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetProposalByReference() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetProposalByReferenceRequest* request, ::api::v1::GetProposalByReferenceResponse* response) { return this->GetProposalByReference(context, request, response); }));} - void SetMessageAllocatorFor_GetProposalByReference( - ::grpc::experimental::MessageAllocator< ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(31); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(31); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalByReference( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalByReference( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ObserveGovernance() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(32, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::ObserveGovernanceRequest, ::api::v1::ObserveGovernanceResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::ObserveGovernanceRequest* request) { return this->ObserveGovernance(context, request); })); - } - ~ExperimentalWithCallbackMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::ObserveGovernanceResponse>* ObserveGovernance( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::ObserveGovernanceResponse>* ObserveGovernance( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ObservePartyProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(33, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::ObservePartyProposalsRequest, ::api::v1::ObservePartyProposalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::ObservePartyProposalsRequest* request) { return this->ObservePartyProposals(context, request); })); - } - ~ExperimentalWithCallbackMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::ObservePartyProposalsResponse>* ObservePartyProposals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::ObservePartyProposalsResponse>* ObservePartyProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ObservePartyVotes() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(34, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::ObservePartyVotesRequest, ::api::v1::ObservePartyVotesResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::ObservePartyVotesRequest* request) { return this->ObservePartyVotes(context, request); })); - } - ~ExperimentalWithCallbackMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::ObservePartyVotesResponse>* ObservePartyVotes( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::ObservePartyVotesResponse>* ObservePartyVotes( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ObserveProposalVotes() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(35, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::ObserveProposalVotesRequest, ::api::v1::ObserveProposalVotesResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::ObserveProposalVotesRequest* request) { return this->ObserveProposalVotes(context, request); })); - } - ~ExperimentalWithCallbackMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::ObserveProposalVotesResponse>* ObserveProposalVotes( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::ObserveProposalVotesResponse>* ObserveProposalVotes( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ObserveEventBus : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ObserveEventBus() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(36, - new ::grpc::internal::CallbackBidiHandler< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context) { return this->ObserveEventBus(context); })); - } - ~ExperimentalWithCallbackMethod_ObserveEventBus() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerBidiReactor< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBus( - ::grpc::CallbackServerContext* /*context*/) - #else - virtual ::grpc::experimental::ServerBidiReactor< ::api::v1::ObserveEventBusRequest, ::api::v1::ObserveEventBusResponse>* ObserveEventBus( - ::grpc::experimental::CallbackServerContext* /*context*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Statistics() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::StatisticsRequest* request, ::api::v1::StatisticsResponse* response) { return this->Statistics(context, request, response); }));} - void SetMessageAllocatorFor_Statistics( - ::grpc::experimental::MessageAllocator< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(37); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(37); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Statistics( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Statistics( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_LastBlockHeight() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::LastBlockHeightRequest* request, ::api::v1::LastBlockHeightResponse* response) { return this->LastBlockHeight(context, request, response); }));} - void SetMessageAllocatorFor_LastBlockHeight( - ::grpc::experimental::MessageAllocator< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(38); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(38); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LastBlockHeight( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LastBlockHeight( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetVegaTime() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetVegaTimeRequest* request, ::api::v1::GetVegaTimeResponse* response) { return this->GetVegaTime(context, request, response); }));} - void SetMessageAllocatorFor_GetVegaTime( - ::grpc::experimental::MessageAllocator< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(39); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(39); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetVegaTime( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetVegaTime( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_AccountsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(40, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::AccountsSubscribeRequest, ::api::v1::AccountsSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::AccountsSubscribeRequest* request) { return this->AccountsSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::AccountsSubscribeResponse>* AccountsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::AccountsSubscribeResponse>* AccountsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_CandlesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(41, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::CandlesSubscribeRequest, ::api::v1::CandlesSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::CandlesSubscribeRequest* request) { return this->CandlesSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::CandlesSubscribeResponse>* CandlesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::CandlesSubscribeResponse>* CandlesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarginLevelsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(42, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::MarginLevelsSubscribeRequest, ::api::v1::MarginLevelsSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarginLevelsSubscribeRequest* request) { return this->MarginLevelsSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::MarginLevelsSubscribeResponse>* MarginLevelsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::MarginLevelsSubscribeResponse>* MarginLevelsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketDepthSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(43, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::MarketDepthSubscribeRequest, ::api::v1::MarketDepthSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketDepthSubscribeRequest* request) { return this->MarketDepthSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::MarketDepthSubscribeResponse>* MarketDepthSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::MarketDepthSubscribeResponse>* MarketDepthSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketDepthUpdatesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(44, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::MarketDepthUpdatesSubscribeRequest, ::api::v1::MarketDepthUpdatesSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketDepthUpdatesSubscribeRequest* request) { return this->MarketDepthUpdatesSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* MarketDepthUpdatesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::MarketDepthUpdatesSubscribeResponse>* MarketDepthUpdatesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_MarketsDataSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(45, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::MarketsDataSubscribeRequest, ::api::v1::MarketsDataSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::MarketsDataSubscribeRequest* request) { return this->MarketsDataSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::MarketsDataSubscribeResponse>* MarketsDataSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::MarketsDataSubscribeResponse>* MarketsDataSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OrdersSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(46, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::OrdersSubscribeRequest, ::api::v1::OrdersSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OrdersSubscribeRequest* request) { return this->OrdersSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::OrdersSubscribeResponse>* OrdersSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::OrdersSubscribeResponse>* OrdersSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_PositionsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(47, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::PositionsSubscribeRequest, ::api::v1::PositionsSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::PositionsSubscribeRequest* request) { return this->PositionsSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::PositionsSubscribeResponse>* PositionsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::PositionsSubscribeResponse>* PositionsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_TradesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(48, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::TradesSubscribeRequest, ::api::v1::TradesSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::TradesSubscribeRequest* request) { return this->TradesSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::TradesSubscribeResponse>* TradesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::TradesSubscribeResponse>* TradesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_TransferResponsesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(49, - new ::grpc::internal::CallbackServerStreamingHandler< ::api::v1::TransferResponsesSubscribeRequest, ::api::v1::TransferResponsesSubscribeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::TransferResponsesSubscribeRequest* request) { return this->TransferResponsesSubscribe(context, request); })); - } - ~ExperimentalWithCallbackMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::api::v1::TransferResponsesSubscribeResponse>* TransferResponsesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::api::v1::TransferResponsesSubscribeResponse>* TransferResponsesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_GetNodeSignaturesAggregate() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::GetNodeSignaturesAggregateRequest* request, ::api::v1::GetNodeSignaturesAggregateResponse* response) { return this->GetNodeSignaturesAggregate(context, request, response); }));} - void SetMessageAllocatorFor_GetNodeSignaturesAggregate( - ::grpc::experimental::MessageAllocator< ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(50); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(50); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNodeSignaturesAggregate( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNodeSignaturesAggregate( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_AssetByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::AssetByIDRequest* request, ::api::v1::AssetByIDResponse* response) { return this->AssetByID(context, request, response); }));} - void SetMessageAllocatorFor_AssetByID( - ::grpc::experimental::MessageAllocator< ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(51); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(51); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* AssetByID( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* AssetByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Assets() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::AssetsRequest, ::api::v1::AssetsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::AssetsRequest* request, ::api::v1::AssetsResponse* response) { return this->Assets(context, request, response); }));} - void SetMessageAllocatorFor_Assets( - ::grpc::experimental::MessageAllocator< ::api::v1::AssetsRequest, ::api::v1::AssetsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(52); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(52); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::AssetsRequest, ::api::v1::AssetsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Assets( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Assets( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_EstimateFee() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(53, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::EstimateFeeRequest* request, ::api::v1::EstimateFeeResponse* response) { return this->EstimateFee(context, request, response); }));} - void SetMessageAllocatorFor_EstimateFee( - ::grpc::experimental::MessageAllocator< ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(53); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(53); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* EstimateFee( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* EstimateFee( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_EstimateMargin() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(54, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::EstimateMarginRequest* request, ::api::v1::EstimateMarginResponse* response) { return this->EstimateMargin(context, request, response); }));} - void SetMessageAllocatorFor_EstimateMargin( - ::grpc::experimental::MessageAllocator< ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(54); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(54); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* EstimateMargin( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* EstimateMargin( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ERC20WithdrawalApproval() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(55, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::ERC20WithdrawalApprovalRequest* request, ::api::v1::ERC20WithdrawalApprovalResponse* response) { return this->ERC20WithdrawalApproval(context, request, response); }));} - void SetMessageAllocatorFor_ERC20WithdrawalApproval( - ::grpc::experimental::MessageAllocator< ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(55); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(55); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* ERC20WithdrawalApproval( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* ERC20WithdrawalApproval( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Withdrawal() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(56, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::WithdrawalRequest* request, ::api::v1::WithdrawalResponse* response) { return this->Withdrawal(context, request, response); }));} - void SetMessageAllocatorFor_Withdrawal( - ::grpc::experimental::MessageAllocator< ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(56); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(56); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Withdrawal( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Withdrawal( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Withdrawals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(57, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::WithdrawalsRequest* request, ::api::v1::WithdrawalsResponse* response) { return this->Withdrawals(context, request, response); }));} - void SetMessageAllocatorFor_Withdrawals( - ::grpc::experimental::MessageAllocator< ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(57); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(57); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Withdrawals( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Withdrawals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Deposit() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(58, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::DepositRequest, ::api::v1::DepositResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::DepositRequest* request, ::api::v1::DepositResponse* response) { return this->Deposit(context, request, response); }));} - void SetMessageAllocatorFor_Deposit( - ::grpc::experimental::MessageAllocator< ::api::v1::DepositRequest, ::api::v1::DepositResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(58); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(58); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::DepositRequest, ::api::v1::DepositResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Deposit( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Deposit( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_Deposits() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(59, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::DepositsRequest, ::api::v1::DepositsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::DepositsRequest* request, ::api::v1::DepositsResponse* response) { return this->Deposits(context, request, response); }));} - void SetMessageAllocatorFor_Deposits( - ::grpc::experimental::MessageAllocator< ::api::v1::DepositsRequest, ::api::v1::DepositsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(59); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(59); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::DepositsRequest, ::api::v1::DepositsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Deposits( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Deposits( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_NetworkParameters() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(60, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::NetworkParametersRequest* request, ::api::v1::NetworkParametersResponse* response) { return this->NetworkParameters(context, request, response); }));} - void SetMessageAllocatorFor_NetworkParameters( - ::grpc::experimental::MessageAllocator< ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(60); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(60); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* NetworkParameters( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* NetworkParameters( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_LiquidityProvisions() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(61, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::LiquidityProvisionsRequest* request, ::api::v1::LiquidityProvisionsResponse* response) { return this->LiquidityProvisions(context, request, response); }));} - void SetMessageAllocatorFor_LiquidityProvisions( - ::grpc::experimental::MessageAllocator< ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(61); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(61); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LiquidityProvisions( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LiquidityProvisions( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OracleSpec() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(62, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OracleSpecRequest* request, ::api::v1::OracleSpecResponse* response) { return this->OracleSpec(context, request, response); }));} - void SetMessageAllocatorFor_OracleSpec( - ::grpc::experimental::MessageAllocator< ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(62); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(62); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleSpec( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleSpec( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OracleSpecs() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(63, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OracleSpecsRequest* request, ::api::v1::OracleSpecsResponse* response) { return this->OracleSpecs(context, request, response); }));} - void SetMessageAllocatorFor_OracleSpecs( - ::grpc::experimental::MessageAllocator< ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(63); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(63); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleSpecs( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleSpecs( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithCallbackMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_OracleDataBySpec() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodCallback(64, - new ::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::api::v1::OracleDataBySpecRequest* request, ::api::v1::OracleDataBySpecResponse* response) { return this->OracleDataBySpec(context, request, response); }));} - void SetMessageAllocatorFor_OracleDataBySpec( - ::grpc::experimental::MessageAllocator< ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse>* allocator) { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(64); - #else - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(64); - #endif - static_cast<::grpc::internal::CallbackUnaryHandler< ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleDataBySpec( - ::grpc::CallbackServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleDataBySpec( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) - #endif - { return nullptr; } - }; - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - typedef ExperimentalWithCallbackMethod_MarketAccounts > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > CallbackService; - #endif - - typedef ExperimentalWithCallbackMethod_MarketAccounts > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; - template - class WithGenericMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketAccounts() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PartyAccounts() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_FeeInfrastructureAccounts() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Candles() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketDataByID() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketsData() { - ::grpc::Service::MarkMethodGeneric(5); - } - ~WithGenericMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketByID() { - ::grpc::Service::MarkMethodGeneric(6); - } - ~WithGenericMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketDepth() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Markets() { - ::grpc::Service::MarkMethodGeneric(8); - } - ~WithGenericMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrderByMarketAndID() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrderByReference() { - ::grpc::Service::MarkMethodGeneric(10); - } - ~WithGenericMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrdersByMarket() { - ::grpc::Service::MarkMethodGeneric(11); - } - ~WithGenericMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrdersByParty() { - ::grpc::Service::MarkMethodGeneric(12); - } - ~WithGenericMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrderByID() { - ::grpc::Service::MarkMethodGeneric(13); - } - ~WithGenericMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrderVersionsByID() { - ::grpc::Service::MarkMethodGeneric(14); - } - ~WithGenericMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarginLevels() { - ::grpc::Service::MarkMethodGeneric(15); - } - ~WithGenericMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Parties() { - ::grpc::Service::MarkMethodGeneric(16); - } - ~WithGenericMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PartyByID() { - ::grpc::Service::MarkMethodGeneric(17); - } - ~WithGenericMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PositionsByParty() { - ::grpc::Service::MarkMethodGeneric(18); - } - ~WithGenericMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_LastTrade() { - ::grpc::Service::MarkMethodGeneric(19); - } - ~WithGenericMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_TradesByMarket() { - ::grpc::Service::MarkMethodGeneric(20); - } - ~WithGenericMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_TradesByOrder() { - ::grpc::Service::MarkMethodGeneric(21); - } - ~WithGenericMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_TradesByParty() { - ::grpc::Service::MarkMethodGeneric(22); - } - ~WithGenericMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetProposals() { - ::grpc::Service::MarkMethodGeneric(23); - } - ~WithGenericMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetProposalsByParty() { - ::grpc::Service::MarkMethodGeneric(24); - } - ~WithGenericMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetVotesByParty() { - ::grpc::Service::MarkMethodGeneric(25); - } - ~WithGenericMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetNewMarketProposals() { - ::grpc::Service::MarkMethodGeneric(26); - } - ~WithGenericMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetUpdateMarketProposals() { - ::grpc::Service::MarkMethodGeneric(27); - } - ~WithGenericMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetNetworkParametersProposals() { - ::grpc::Service::MarkMethodGeneric(28); - } - ~WithGenericMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetNewAssetProposals() { - ::grpc::Service::MarkMethodGeneric(29); - } - ~WithGenericMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetProposalByID() { - ::grpc::Service::MarkMethodGeneric(30); - } - ~WithGenericMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetProposalByReference() { - ::grpc::Service::MarkMethodGeneric(31); - } - ~WithGenericMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ObserveGovernance() { - ::grpc::Service::MarkMethodGeneric(32); - } - ~WithGenericMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ObservePartyProposals() { - ::grpc::Service::MarkMethodGeneric(33); - } - ~WithGenericMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ObservePartyVotes() { - ::grpc::Service::MarkMethodGeneric(34); - } - ~WithGenericMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ObserveProposalVotes() { - ::grpc::Service::MarkMethodGeneric(35); - } - ~WithGenericMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ObserveEventBus : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ObserveEventBus() { - ::grpc::Service::MarkMethodGeneric(36); - } - ~WithGenericMethod_ObserveEventBus() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Statistics() { - ::grpc::Service::MarkMethodGeneric(37); - } - ~WithGenericMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_LastBlockHeight() { - ::grpc::Service::MarkMethodGeneric(38); - } - ~WithGenericMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetVegaTime() { - ::grpc::Service::MarkMethodGeneric(39); - } - ~WithGenericMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_AccountsSubscribe() { - ::grpc::Service::MarkMethodGeneric(40); - } - ~WithGenericMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_CandlesSubscribe() { - ::grpc::Service::MarkMethodGeneric(41); - } - ~WithGenericMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarginLevelsSubscribe() { - ::grpc::Service::MarkMethodGeneric(42); - } - ~WithGenericMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketDepthSubscribe() { - ::grpc::Service::MarkMethodGeneric(43); - } - ~WithGenericMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketDepthUpdatesSubscribe() { - ::grpc::Service::MarkMethodGeneric(44); - } - ~WithGenericMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MarketsDataSubscribe() { - ::grpc::Service::MarkMethodGeneric(45); - } - ~WithGenericMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OrdersSubscribe() { - ::grpc::Service::MarkMethodGeneric(46); - } - ~WithGenericMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PositionsSubscribe() { - ::grpc::Service::MarkMethodGeneric(47); - } - ~WithGenericMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_TradesSubscribe() { - ::grpc::Service::MarkMethodGeneric(48); - } - ~WithGenericMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_TransferResponsesSubscribe() { - ::grpc::Service::MarkMethodGeneric(49); - } - ~WithGenericMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetNodeSignaturesAggregate() { - ::grpc::Service::MarkMethodGeneric(50); - } - ~WithGenericMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_AssetByID() { - ::grpc::Service::MarkMethodGeneric(51); - } - ~WithGenericMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Assets() { - ::grpc::Service::MarkMethodGeneric(52); - } - ~WithGenericMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_EstimateFee() { - ::grpc::Service::MarkMethodGeneric(53); - } - ~WithGenericMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_EstimateMargin() { - ::grpc::Service::MarkMethodGeneric(54); - } - ~WithGenericMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ERC20WithdrawalApproval() { - ::grpc::Service::MarkMethodGeneric(55); - } - ~WithGenericMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Withdrawal() { - ::grpc::Service::MarkMethodGeneric(56); - } - ~WithGenericMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Withdrawals() { - ::grpc::Service::MarkMethodGeneric(57); - } - ~WithGenericMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Deposit() { - ::grpc::Service::MarkMethodGeneric(58); - } - ~WithGenericMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Deposits() { - ::grpc::Service::MarkMethodGeneric(59); - } - ~WithGenericMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_NetworkParameters() { - ::grpc::Service::MarkMethodGeneric(60); - } - ~WithGenericMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_LiquidityProvisions() { - ::grpc::Service::MarkMethodGeneric(61); - } - ~WithGenericMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OracleSpec() { - ::grpc::Service::MarkMethodGeneric(62); - } - ~WithGenericMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OracleSpecs() { - ::grpc::Service::MarkMethodGeneric(63); - } - ~WithGenericMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_OracleDataBySpec() { - ::grpc::Service::MarkMethodGeneric(64); - } - ~WithGenericMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketAccounts() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketAccounts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PartyAccounts() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPartyAccounts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_FeeInfrastructureAccounts() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestFeeInfrastructureAccounts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Candles() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCandles(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketDataByID() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDataByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketsData() { - ::grpc::Service::MarkMethodRaw(5); - } - ~WithRawMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketsData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketByID() { - ::grpc::Service::MarkMethodRaw(6); - } - ~WithRawMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketDepth() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepth(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Markets() { - ::grpc::Service::MarkMethodRaw(8); - } - ~WithRawMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarkets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrderByMarketAndID() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByMarketAndID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrderByReference() { - ::grpc::Service::MarkMethodRaw(10); - } - ~WithRawMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByReference(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrdersByMarket() { - ::grpc::Service::MarkMethodRaw(11); - } - ~WithRawMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersByMarket(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrdersByParty() { - ::grpc::Service::MarkMethodRaw(12); - } - ~WithRawMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersByParty(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrderByID() { - ::grpc::Service::MarkMethodRaw(13); - } - ~WithRawMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrderVersionsByID() { - ::grpc::Service::MarkMethodRaw(14); - } - ~WithRawMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrderVersionsByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarginLevels() { - ::grpc::Service::MarkMethodRaw(15); - } - ~WithRawMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarginLevels(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Parties() { - ::grpc::Service::MarkMethodRaw(16); - } - ~WithRawMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestParties(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PartyByID() { - ::grpc::Service::MarkMethodRaw(17); - } - ~WithRawMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPartyByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PositionsByParty() { - ::grpc::Service::MarkMethodRaw(18); - } - ~WithRawMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPositionsByParty(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_LastTrade() { - ::grpc::Service::MarkMethodRaw(19); - } - ~WithRawMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLastTrade(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_TradesByMarket() { - ::grpc::Service::MarkMethodRaw(20); - } - ~WithRawMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByMarket(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_TradesByOrder() { - ::grpc::Service::MarkMethodRaw(21); - } - ~WithRawMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_TradesByParty() { - ::grpc::Service::MarkMethodRaw(22); - } - ~WithRawMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesByParty(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetProposals() { - ::grpc::Service::MarkMethodRaw(23); - } - ~WithRawMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetProposalsByParty() { - ::grpc::Service::MarkMethodRaw(24); - } - ~WithRawMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalsByParty(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetVotesByParty() { - ::grpc::Service::MarkMethodRaw(25); - } - ~WithRawMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVotesByParty(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetNewMarketProposals() { - ::grpc::Service::MarkMethodRaw(26); - } - ~WithRawMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNewMarketProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetUpdateMarketProposals() { - ::grpc::Service::MarkMethodRaw(27); - } - ~WithRawMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetUpdateMarketProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetNetworkParametersProposals() { - ::grpc::Service::MarkMethodRaw(28); - } - ~WithRawMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNetworkParametersProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetNewAssetProposals() { - ::grpc::Service::MarkMethodRaw(29); - } - ~WithRawMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNewAssetProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetProposalByID() { - ::grpc::Service::MarkMethodRaw(30); - } - ~WithRawMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetProposalByReference() { - ::grpc::Service::MarkMethodRaw(31); - } - ~WithRawMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProposalByReference(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ObserveGovernance() { - ::grpc::Service::MarkMethodRaw(32); - } - ~WithRawMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveGovernance(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(32, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ObservePartyProposals() { - ::grpc::Service::MarkMethodRaw(33); - } - ~WithRawMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObservePartyProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(33, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ObservePartyVotes() { - ::grpc::Service::MarkMethodRaw(34); - } - ~WithRawMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObservePartyVotes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(34, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ObserveProposalVotes() { - ::grpc::Service::MarkMethodRaw(35); - } - ~WithRawMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveProposalVotes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ObserveEventBus : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ObserveEventBus() { - ::grpc::Service::MarkMethodRaw(36); - } - ~WithRawMethod_ObserveEventBus() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestObserveEventBus(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncBidiStreaming(36, context, stream, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Statistics() { - ::grpc::Service::MarkMethodRaw(37); - } - ~WithRawMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStatistics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_LastBlockHeight() { - ::grpc::Service::MarkMethodRaw(38); - } - ~WithRawMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLastBlockHeight(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetVegaTime() { - ::grpc::Service::MarkMethodRaw(39); - } - ~WithRawMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVegaTime(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_AccountsSubscribe() { - ::grpc::Service::MarkMethodRaw(40); - } - ~WithRawMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAccountsSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(40, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_CandlesSubscribe() { - ::grpc::Service::MarkMethodRaw(41); - } - ~WithRawMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCandlesSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(41, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarginLevelsSubscribe() { - ::grpc::Service::MarkMethodRaw(42); - } - ~WithRawMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarginLevelsSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(42, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketDepthSubscribe() { - ::grpc::Service::MarkMethodRaw(43); - } - ~WithRawMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepthSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(43, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketDepthUpdatesSubscribe() { - ::grpc::Service::MarkMethodRaw(44); - } - ~WithRawMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketDepthUpdatesSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(44, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MarketsDataSubscribe() { - ::grpc::Service::MarkMethodRaw(45); - } - ~WithRawMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMarketsDataSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(45, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OrdersSubscribe() { - ::grpc::Service::MarkMethodRaw(46); - } - ~WithRawMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOrdersSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(46, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PositionsSubscribe() { - ::grpc::Service::MarkMethodRaw(47); - } - ~WithRawMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPositionsSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(47, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_TradesSubscribe() { - ::grpc::Service::MarkMethodRaw(48); - } - ~WithRawMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTradesSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(48, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_TransferResponsesSubscribe() { - ::grpc::Service::MarkMethodRaw(49); - } - ~WithRawMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTransferResponsesSubscribe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(49, context, request, writer, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetNodeSignaturesAggregate() { - ::grpc::Service::MarkMethodRaw(50); - } - ~WithRawMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeSignaturesAggregate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_AssetByID() { - ::grpc::Service::MarkMethodRaw(51); - } - ~WithRawMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAssetByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Assets() { - ::grpc::Service::MarkMethodRaw(52); - } - ~WithRawMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAssets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_EstimateFee() { - ::grpc::Service::MarkMethodRaw(53); - } - ~WithRawMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestEstimateFee(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(53, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_EstimateMargin() { - ::grpc::Service::MarkMethodRaw(54); - } - ~WithRawMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestEstimateMargin(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(54, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ERC20WithdrawalApproval() { - ::grpc::Service::MarkMethodRaw(55); - } - ~WithRawMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestERC20WithdrawalApproval(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(55, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Withdrawal() { - ::grpc::Service::MarkMethodRaw(56); - } - ~WithRawMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestWithdrawal(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(56, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Withdrawals() { - ::grpc::Service::MarkMethodRaw(57); - } - ~WithRawMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestWithdrawals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(57, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Deposit() { - ::grpc::Service::MarkMethodRaw(58); - } - ~WithRawMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeposit(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(58, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Deposits() { - ::grpc::Service::MarkMethodRaw(59); - } - ~WithRawMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeposits(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(59, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_NetworkParameters() { - ::grpc::Service::MarkMethodRaw(60); - } - ~WithRawMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestNetworkParameters(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(60, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_LiquidityProvisions() { - ::grpc::Service::MarkMethodRaw(61); - } - ~WithRawMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLiquidityProvisions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(61, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OracleSpec() { - ::grpc::Service::MarkMethodRaw(62); - } - ~WithRawMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleSpec(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(62, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OracleSpecs() { - ::grpc::Service::MarkMethodRaw(63); - } - ~WithRawMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleSpecs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(63, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_OracleDataBySpec() { - ::grpc::Service::MarkMethodRaw(64); - } - ~WithRawMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestOracleDataBySpec(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(64, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarketAccounts(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PartyAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PartyAccounts(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PartyAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PartyAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_FeeInfrastructureAccounts() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->FeeInfrastructureAccounts(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* FeeInfrastructureAccounts( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* FeeInfrastructureAccounts( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Candles() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Candles(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Candles( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Candles( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketDataByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarketDataByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketDataByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketDataByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketsData() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarketsData(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketsData( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketsData( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarketByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketDepth() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarketDepth(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarketDepth( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarketDepth( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Markets() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Markets(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Markets( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Markets( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrderByMarketAndID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrderByMarketAndID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByMarketAndID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByMarketAndID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrderByReference() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrderByReference(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByReference( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByReference( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrdersByMarket() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrdersByMarket(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrdersByMarket( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrdersByMarket( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrdersByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrdersByParty(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrdersByParty( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrdersByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrderByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrderByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrderVersionsByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrderVersionsByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OrderVersionsByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OrderVersionsByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarginLevels() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarginLevels(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* MarginLevels( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* MarginLevels( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Parties() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Parties(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Parties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Parties( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PartyByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PartyByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PartyByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PartyByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PositionsByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PositionsByParty(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* PositionsByParty( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* PositionsByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_LastTrade() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LastTrade(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LastTrade( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LastTrade( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_TradesByMarket() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TradesByMarket(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByMarket( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByMarket( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_TradesByOrder() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TradesByOrder(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByOrder( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByOrder( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_TradesByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TradesByParty(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* TradesByParty( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* TradesByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProposals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetProposalsByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProposalsByParty(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalsByParty( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalsByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetVotesByParty() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVotesByParty(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetVotesByParty( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetVotesByParty( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetNewMarketProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNewMarketProposals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNewMarketProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNewMarketProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetUpdateMarketProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetUpdateMarketProposals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetUpdateMarketProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetUpdateMarketProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetNetworkParametersProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNetworkParametersProposals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNetworkParametersProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNetworkParametersProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetNewAssetProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNewAssetProposals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNewAssetProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNewAssetProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetProposalByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProposalByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetProposalByReference() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProposalByReference(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetProposalByReference( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetProposalByReference( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ObserveGovernance() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(32, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->ObserveGovernance(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* ObserveGovernance( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* ObserveGovernance( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ObservePartyProposals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(33, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->ObservePartyProposals(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* ObservePartyProposals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* ObservePartyProposals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ObservePartyVotes() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(34, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->ObservePartyVotes(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* ObservePartyVotes( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* ObservePartyVotes( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ObserveProposalVotes() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(35, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->ObserveProposalVotes(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* ObserveProposalVotes( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* ObserveProposalVotes( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ObserveEventBus : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ObserveEventBus() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(36, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context) { return this->ObserveEventBus(context); })); - } - ~ExperimentalWithRawCallbackMethod_ObserveEventBus() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ObserveEventBus(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::api::v1::ObserveEventBusResponse, ::api::v1::ObserveEventBusRequest>* /*stream*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* ObserveEventBus( - ::grpc::CallbackServerContext* /*context*/) - #else - virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* ObserveEventBus( - ::grpc::experimental::CallbackServerContext* /*context*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Statistics() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Statistics(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Statistics( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Statistics( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_LastBlockHeight() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LastBlockHeight(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LastBlockHeight( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LastBlockHeight( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetVegaTime() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVegaTime(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetVegaTime( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetVegaTime( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_AccountsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(40, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->AccountsSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* AccountsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* AccountsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_CandlesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(41, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->CandlesSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* CandlesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* CandlesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarginLevelsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(42, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->MarginLevelsSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* MarginLevelsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* MarginLevelsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketDepthSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(43, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->MarketDepthSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* MarketDepthSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* MarketDepthSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketDepthUpdatesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(44, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->MarketDepthUpdatesSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* MarketDepthUpdatesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* MarketDepthUpdatesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_MarketsDataSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(45, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->MarketsDataSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* MarketsDataSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* MarketsDataSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OrdersSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(46, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->OrdersSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* OrdersSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* OrdersSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_PositionsSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(47, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->PositionsSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* PositionsSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* PositionsSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_TradesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(48, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->TradesSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* TradesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* TradesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_TransferResponsesSubscribe() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(49, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const::grpc::ByteBuffer* request) { return this->TransferResponsesSubscribe(context, request); })); - } - ~ExperimentalWithRawCallbackMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* TransferResponsesSubscribe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #else - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* TransferResponsesSubscribe( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_GetNodeSignaturesAggregate() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNodeSignaturesAggregate(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* GetNodeSignaturesAggregate( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* GetNodeSignaturesAggregate( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_AssetByID() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AssetByID(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* AssetByID( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* AssetByID( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Assets() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Assets(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Assets( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Assets( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_EstimateFee() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(53, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EstimateFee(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* EstimateFee( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* EstimateFee( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_EstimateMargin() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(54, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EstimateMargin(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* EstimateMargin( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* EstimateMargin( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ERC20WithdrawalApproval() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(55, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ERC20WithdrawalApproval(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* ERC20WithdrawalApproval( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* ERC20WithdrawalApproval( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Withdrawal() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(56, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Withdrawal(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Withdrawal( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Withdrawal( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Withdrawals() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(57, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Withdrawals(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Withdrawals( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Withdrawals( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Deposit() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(58, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Deposit(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Deposit( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Deposit( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_Deposits() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(59, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Deposits(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* Deposits( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* Deposits( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_NetworkParameters() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(60, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NetworkParameters(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* NetworkParameters( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* NetworkParameters( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_LiquidityProvisions() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(61, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LiquidityProvisions(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* LiquidityProvisions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* LiquidityProvisions( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OracleSpec() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(62, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OracleSpec(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleSpec( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleSpec( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OracleSpecs() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(63, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OracleSpecs(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleSpecs( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleSpecs( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class ExperimentalWithRawCallbackMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_OracleDataBySpec() { - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::Service:: - #else - ::grpc::Service::experimental(). - #endif - MarkMethodRawCallback(64, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - ::grpc::CallbackServerContext* - #else - ::grpc::experimental::CallbackServerContext* - #endif - context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OracleDataBySpec(context, request, response); })); - } - ~ExperimentalWithRawCallbackMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - virtual ::grpc::ServerUnaryReactor* OracleDataBySpec( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #else - virtual ::grpc::experimental::ServerUnaryReactor* OracleDataBySpec( - ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) - #endif - { return nullptr; } - }; - template - class WithStreamedUnaryMethod_MarketAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarketAccounts() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketAccountsRequest, ::api::v1::MarketAccountsResponse>* streamer) { - return this->StreamedMarketAccounts(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarketAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::MarketAccountsRequest* /*request*/, ::api::v1::MarketAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarketAccounts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketAccountsRequest,::api::v1::MarketAccountsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PartyAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PartyAccounts() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PartyAccountsRequest, ::api::v1::PartyAccountsResponse>* streamer) { - return this->StreamedPartyAccounts(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PartyAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PartyAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::PartyAccountsRequest* /*request*/, ::api::v1::PartyAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPartyAccounts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PartyAccountsRequest,::api::v1::PartyAccountsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_FeeInfrastructureAccounts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_FeeInfrastructureAccounts() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::FeeInfrastructureAccountsRequest, ::api::v1::FeeInfrastructureAccountsResponse>* streamer) { - return this->StreamedFeeInfrastructureAccounts(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_FeeInfrastructureAccounts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status FeeInfrastructureAccounts(::grpc::ServerContext* /*context*/, const ::api::v1::FeeInfrastructureAccountsRequest* /*request*/, ::api::v1::FeeInfrastructureAccountsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedFeeInfrastructureAccounts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::FeeInfrastructureAccountsRequest,::api::v1::FeeInfrastructureAccountsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Candles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Candles() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::CandlesRequest, ::api::v1::CandlesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::CandlesRequest, ::api::v1::CandlesResponse>* streamer) { - return this->StreamedCandles(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Candles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Candles(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesRequest* /*request*/, ::api::v1::CandlesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCandles(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::CandlesRequest,::api::v1::CandlesResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_MarketDataByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarketDataByID() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketDataByIDRequest, ::api::v1::MarketDataByIDResponse>* streamer) { - return this->StreamedMarketDataByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarketDataByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketDataByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDataByIDRequest* /*request*/, ::api::v1::MarketDataByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarketDataByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketDataByIDRequest,::api::v1::MarketDataByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_MarketsData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarketsData() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketsDataRequest, ::api::v1::MarketsDataResponse>* streamer) { - return this->StreamedMarketsData(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarketsData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketsData(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataRequest* /*request*/, ::api::v1::MarketsDataResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarketsData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketsDataRequest,::api::v1::MarketsDataResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_MarketByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarketByID() { - ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketByIDRequest, ::api::v1::MarketByIDResponse>* streamer) { - return this->StreamedMarketByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarketByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketByID(::grpc::ServerContext* /*context*/, const ::api::v1::MarketByIDRequest* /*request*/, ::api::v1::MarketByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarketByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketByIDRequest,::api::v1::MarketByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_MarketDepth : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarketDepth() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketDepthRequest, ::api::v1::MarketDepthResponse>* streamer) { - return this->StreamedMarketDepth(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarketDepth() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketDepth(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthRequest* /*request*/, ::api::v1::MarketDepthResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarketDepth(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketDepthRequest,::api::v1::MarketDepthResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Markets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Markets() { - ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarketsRequest, ::api::v1::MarketsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarketsRequest, ::api::v1::MarketsResponse>* streamer) { - return this->StreamedMarkets(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Markets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Markets(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsRequest* /*request*/, ::api::v1::MarketsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarkets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarketsRequest,::api::v1::MarketsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrderByMarketAndID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrderByMarketAndID() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrderByMarketAndIDRequest, ::api::v1::OrderByMarketAndIDResponse>* streamer) { - return this->StreamedOrderByMarketAndID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrderByMarketAndID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrderByMarketAndID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByMarketAndIDRequest* /*request*/, ::api::v1::OrderByMarketAndIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrderByMarketAndID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrderByMarketAndIDRequest,::api::v1::OrderByMarketAndIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrderByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrderByReference() { - ::grpc::Service::MarkMethodStreamed(10, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrderByReferenceRequest, ::api::v1::OrderByReferenceResponse>* streamer) { - return this->StreamedOrderByReference(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrderByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrderByReference(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByReferenceRequest* /*request*/, ::api::v1::OrderByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrderByReference(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrderByReferenceRequest,::api::v1::OrderByReferenceResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrdersByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrdersByMarket() { - ::grpc::Service::MarkMethodStreamed(11, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrdersByMarketRequest, ::api::v1::OrdersByMarketResponse>* streamer) { - return this->StreamedOrdersByMarket(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrdersByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrdersByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByMarketRequest* /*request*/, ::api::v1::OrdersByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrdersByMarket(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrdersByMarketRequest,::api::v1::OrdersByMarketResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrdersByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrdersByParty() { - ::grpc::Service::MarkMethodStreamed(12, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrdersByPartyRequest, ::api::v1::OrdersByPartyResponse>* streamer) { - return this->StreamedOrdersByParty(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrdersByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrdersByParty(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersByPartyRequest* /*request*/, ::api::v1::OrdersByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrdersByParty(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrdersByPartyRequest,::api::v1::OrdersByPartyResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrderByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrderByID() { - ::grpc::Service::MarkMethodStreamed(13, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrderByIDRequest, ::api::v1::OrderByIDResponse>* streamer) { - return this->StreamedOrderByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrderByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrderByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderByIDRequest* /*request*/, ::api::v1::OrderByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrderByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrderByIDRequest,::api::v1::OrderByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OrderVersionsByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OrderVersionsByID() { - ::grpc::Service::MarkMethodStreamed(14, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OrderVersionsByIDRequest, ::api::v1::OrderVersionsByIDResponse>* streamer) { - return this->StreamedOrderVersionsByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OrderVersionsByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrderVersionsByID(::grpc::ServerContext* /*context*/, const ::api::v1::OrderVersionsByIDRequest* /*request*/, ::api::v1::OrderVersionsByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrderVersionsByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OrderVersionsByIDRequest,::api::v1::OrderVersionsByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_MarginLevels : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MarginLevels() { - ::grpc::Service::MarkMethodStreamed(15, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::MarginLevelsRequest, ::api::v1::MarginLevelsResponse>* streamer) { - return this->StreamedMarginLevels(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MarginLevels() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarginLevels(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsRequest* /*request*/, ::api::v1::MarginLevelsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMarginLevels(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::MarginLevelsRequest,::api::v1::MarginLevelsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Parties : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Parties() { - ::grpc::Service::MarkMethodStreamed(16, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PartiesRequest, ::api::v1::PartiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PartiesRequest, ::api::v1::PartiesResponse>* streamer) { - return this->StreamedParties(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Parties() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Parties(::grpc::ServerContext* /*context*/, const ::api::v1::PartiesRequest* /*request*/, ::api::v1::PartiesResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedParties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PartiesRequest,::api::v1::PartiesResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PartyByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PartyByID() { - ::grpc::Service::MarkMethodStreamed(17, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PartyByIDRequest, ::api::v1::PartyByIDResponse>* streamer) { - return this->StreamedPartyByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PartyByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PartyByID(::grpc::ServerContext* /*context*/, const ::api::v1::PartyByIDRequest* /*request*/, ::api::v1::PartyByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPartyByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PartyByIDRequest,::api::v1::PartyByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_PositionsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PositionsByParty() { - ::grpc::Service::MarkMethodStreamed(18, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::PositionsByPartyRequest, ::api::v1::PositionsByPartyResponse>* streamer) { - return this->StreamedPositionsByParty(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PositionsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PositionsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsByPartyRequest* /*request*/, ::api::v1::PositionsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPositionsByParty(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::PositionsByPartyRequest,::api::v1::PositionsByPartyResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_LastTrade : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_LastTrade() { - ::grpc::Service::MarkMethodStreamed(19, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::LastTradeRequest, ::api::v1::LastTradeResponse>* streamer) { - return this->StreamedLastTrade(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_LastTrade() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status LastTrade(::grpc::ServerContext* /*context*/, const ::api::v1::LastTradeRequest* /*request*/, ::api::v1::LastTradeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedLastTrade(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::LastTradeRequest,::api::v1::LastTradeResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_TradesByMarket : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_TradesByMarket() { - ::grpc::Service::MarkMethodStreamed(20, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::TradesByMarketRequest, ::api::v1::TradesByMarketResponse>* streamer) { - return this->StreamedTradesByMarket(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_TradesByMarket() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TradesByMarket(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByMarketRequest* /*request*/, ::api::v1::TradesByMarketResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedTradesByMarket(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::TradesByMarketRequest,::api::v1::TradesByMarketResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_TradesByOrder : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_TradesByOrder() { - ::grpc::Service::MarkMethodStreamed(21, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::TradesByOrderRequest, ::api::v1::TradesByOrderResponse>* streamer) { - return this->StreamedTradesByOrder(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_TradesByOrder() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TradesByOrder(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByOrderRequest* /*request*/, ::api::v1::TradesByOrderResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedTradesByOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::TradesByOrderRequest,::api::v1::TradesByOrderResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_TradesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_TradesByParty() { - ::grpc::Service::MarkMethodStreamed(22, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::TradesByPartyRequest, ::api::v1::TradesByPartyResponse>* streamer) { - return this->StreamedTradesByParty(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_TradesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TradesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::TradesByPartyRequest* /*request*/, ::api::v1::TradesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedTradesByParty(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::TradesByPartyRequest,::api::v1::TradesByPartyResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetProposals() { - ::grpc::Service::MarkMethodStreamed(23, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetProposalsRequest, ::api::v1::GetProposalsResponse>* streamer) { - return this->StreamedGetProposals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsRequest* /*request*/, ::api::v1::GetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetProposalsRequest,::api::v1::GetProposalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProposalsByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetProposalsByParty() { - ::grpc::Service::MarkMethodStreamed(24, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetProposalsByPartyRequest, ::api::v1::GetProposalsByPartyResponse>* streamer) { - return this->StreamedGetProposalsByParty(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetProposalsByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProposalsByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalsByPartyRequest* /*request*/, ::api::v1::GetProposalsByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProposalsByParty(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetProposalsByPartyRequest,::api::v1::GetProposalsByPartyResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetVotesByParty : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetVotesByParty() { - ::grpc::Service::MarkMethodStreamed(25, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetVotesByPartyRequest, ::api::v1::GetVotesByPartyResponse>* streamer) { - return this->StreamedGetVotesByParty(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetVotesByParty() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetVotesByParty(::grpc::ServerContext* /*context*/, const ::api::v1::GetVotesByPartyRequest* /*request*/, ::api::v1::GetVotesByPartyResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetVotesByParty(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetVotesByPartyRequest,::api::v1::GetVotesByPartyResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNewMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetNewMarketProposals() { - ::grpc::Service::MarkMethodStreamed(26, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetNewMarketProposalsRequest, ::api::v1::GetNewMarketProposalsResponse>* streamer) { - return this->StreamedGetNewMarketProposals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetNewMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNewMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewMarketProposalsRequest* /*request*/, ::api::v1::GetNewMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNewMarketProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetNewMarketProposalsRequest,::api::v1::GetNewMarketProposalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetUpdateMarketProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetUpdateMarketProposals() { - ::grpc::Service::MarkMethodStreamed(27, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetUpdateMarketProposalsRequest, ::api::v1::GetUpdateMarketProposalsResponse>* streamer) { - return this->StreamedGetUpdateMarketProposals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetUpdateMarketProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetUpdateMarketProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetUpdateMarketProposalsRequest* /*request*/, ::api::v1::GetUpdateMarketProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetUpdateMarketProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetUpdateMarketProposalsRequest,::api::v1::GetUpdateMarketProposalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNetworkParametersProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetNetworkParametersProposals() { - ::grpc::Service::MarkMethodStreamed(28, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetNetworkParametersProposalsRequest, ::api::v1::GetNetworkParametersProposalsResponse>* streamer) { - return this->StreamedGetNetworkParametersProposals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetNetworkParametersProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNetworkParametersProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNetworkParametersProposalsRequest* /*request*/, ::api::v1::GetNetworkParametersProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNetworkParametersProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetNetworkParametersProposalsRequest,::api::v1::GetNetworkParametersProposalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNewAssetProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetNewAssetProposals() { - ::grpc::Service::MarkMethodStreamed(29, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetNewAssetProposalsRequest, ::api::v1::GetNewAssetProposalsResponse>* streamer) { - return this->StreamedGetNewAssetProposals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetNewAssetProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNewAssetProposals(::grpc::ServerContext* /*context*/, const ::api::v1::GetNewAssetProposalsRequest* /*request*/, ::api::v1::GetNewAssetProposalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNewAssetProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetNewAssetProposalsRequest,::api::v1::GetNewAssetProposalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProposalByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetProposalByID() { - ::grpc::Service::MarkMethodStreamed(30, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetProposalByIDRequest, ::api::v1::GetProposalByIDResponse>* streamer) { - return this->StreamedGetProposalByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetProposalByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProposalByID(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByIDRequest* /*request*/, ::api::v1::GetProposalByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProposalByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetProposalByIDRequest,::api::v1::GetProposalByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProposalByReference : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetProposalByReference() { - ::grpc::Service::MarkMethodStreamed(31, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetProposalByReferenceRequest, ::api::v1::GetProposalByReferenceResponse>* streamer) { - return this->StreamedGetProposalByReference(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetProposalByReference() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProposalByReference(::grpc::ServerContext* /*context*/, const ::api::v1::GetProposalByReferenceRequest* /*request*/, ::api::v1::GetProposalByReferenceResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProposalByReference(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetProposalByReferenceRequest,::api::v1::GetProposalByReferenceResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Statistics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Statistics() { - ::grpc::Service::MarkMethodStreamed(37, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::StatisticsRequest, ::api::v1::StatisticsResponse>* streamer) { - return this->StreamedStatistics(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Statistics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Statistics(::grpc::ServerContext* /*context*/, const ::api::v1::StatisticsRequest* /*request*/, ::api::v1::StatisticsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedStatistics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::StatisticsRequest,::api::v1::StatisticsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_LastBlockHeight : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_LastBlockHeight() { - ::grpc::Service::MarkMethodStreamed(38, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::LastBlockHeightRequest, ::api::v1::LastBlockHeightResponse>* streamer) { - return this->StreamedLastBlockHeight(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_LastBlockHeight() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status LastBlockHeight(::grpc::ServerContext* /*context*/, const ::api::v1::LastBlockHeightRequest* /*request*/, ::api::v1::LastBlockHeightResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedLastBlockHeight(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::LastBlockHeightRequest,::api::v1::LastBlockHeightResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetVegaTime : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetVegaTime() { - ::grpc::Service::MarkMethodStreamed(39, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetVegaTimeRequest, ::api::v1::GetVegaTimeResponse>* streamer) { - return this->StreamedGetVegaTime(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetVegaTime() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetVegaTime(::grpc::ServerContext* /*context*/, const ::api::v1::GetVegaTimeRequest* /*request*/, ::api::v1::GetVegaTimeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetVegaTime(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetVegaTimeRequest,::api::v1::GetVegaTimeResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNodeSignaturesAggregate : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetNodeSignaturesAggregate() { - ::grpc::Service::MarkMethodStreamed(50, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::GetNodeSignaturesAggregateRequest, ::api::v1::GetNodeSignaturesAggregateResponse>* streamer) { - return this->StreamedGetNodeSignaturesAggregate(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetNodeSignaturesAggregate() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNodeSignaturesAggregate(::grpc::ServerContext* /*context*/, const ::api::v1::GetNodeSignaturesAggregateRequest* /*request*/, ::api::v1::GetNodeSignaturesAggregateResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNodeSignaturesAggregate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::GetNodeSignaturesAggregateRequest,::api::v1::GetNodeSignaturesAggregateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_AssetByID : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_AssetByID() { - ::grpc::Service::MarkMethodStreamed(51, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::AssetByIDRequest, ::api::v1::AssetByIDResponse>* streamer) { - return this->StreamedAssetByID(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_AssetByID() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status AssetByID(::grpc::ServerContext* /*context*/, const ::api::v1::AssetByIDRequest* /*request*/, ::api::v1::AssetByIDResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedAssetByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::AssetByIDRequest,::api::v1::AssetByIDResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Assets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Assets() { - ::grpc::Service::MarkMethodStreamed(52, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::AssetsRequest, ::api::v1::AssetsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::AssetsRequest, ::api::v1::AssetsResponse>* streamer) { - return this->StreamedAssets(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Assets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Assets(::grpc::ServerContext* /*context*/, const ::api::v1::AssetsRequest* /*request*/, ::api::v1::AssetsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedAssets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::AssetsRequest,::api::v1::AssetsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_EstimateFee : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_EstimateFee() { - ::grpc::Service::MarkMethodStreamed(53, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::EstimateFeeRequest, ::api::v1::EstimateFeeResponse>* streamer) { - return this->StreamedEstimateFee(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_EstimateFee() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status EstimateFee(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateFeeRequest* /*request*/, ::api::v1::EstimateFeeResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEstimateFee(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::EstimateFeeRequest,::api::v1::EstimateFeeResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_EstimateMargin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_EstimateMargin() { - ::grpc::Service::MarkMethodStreamed(54, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::EstimateMarginRequest, ::api::v1::EstimateMarginResponse>* streamer) { - return this->StreamedEstimateMargin(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_EstimateMargin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status EstimateMargin(::grpc::ServerContext* /*context*/, const ::api::v1::EstimateMarginRequest* /*request*/, ::api::v1::EstimateMarginResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEstimateMargin(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::EstimateMarginRequest,::api::v1::EstimateMarginResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ERC20WithdrawalApproval : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_ERC20WithdrawalApproval() { - ::grpc::Service::MarkMethodStreamed(55, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::ERC20WithdrawalApprovalRequest, ::api::v1::ERC20WithdrawalApprovalResponse>* streamer) { - return this->StreamedERC20WithdrawalApproval(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_ERC20WithdrawalApproval() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ERC20WithdrawalApproval(::grpc::ServerContext* /*context*/, const ::api::v1::ERC20WithdrawalApprovalRequest* /*request*/, ::api::v1::ERC20WithdrawalApprovalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedERC20WithdrawalApproval(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::ERC20WithdrawalApprovalRequest,::api::v1::ERC20WithdrawalApprovalResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Withdrawal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Withdrawal() { - ::grpc::Service::MarkMethodStreamed(56, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::WithdrawalRequest, ::api::v1::WithdrawalResponse>* streamer) { - return this->StreamedWithdrawal(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Withdrawal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Withdrawal(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalRequest* /*request*/, ::api::v1::WithdrawalResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedWithdrawal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::WithdrawalRequest,::api::v1::WithdrawalResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Withdrawals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Withdrawals() { - ::grpc::Service::MarkMethodStreamed(57, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::WithdrawalsRequest, ::api::v1::WithdrawalsResponse>* streamer) { - return this->StreamedWithdrawals(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Withdrawals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Withdrawals(::grpc::ServerContext* /*context*/, const ::api::v1::WithdrawalsRequest* /*request*/, ::api::v1::WithdrawalsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedWithdrawals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::WithdrawalsRequest,::api::v1::WithdrawalsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Deposit : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Deposit() { - ::grpc::Service::MarkMethodStreamed(58, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::DepositRequest, ::api::v1::DepositResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::DepositRequest, ::api::v1::DepositResponse>* streamer) { - return this->StreamedDeposit(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Deposit() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Deposit(::grpc::ServerContext* /*context*/, const ::api::v1::DepositRequest* /*request*/, ::api::v1::DepositResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeposit(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::DepositRequest,::api::v1::DepositResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Deposits : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Deposits() { - ::grpc::Service::MarkMethodStreamed(59, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::DepositsRequest, ::api::v1::DepositsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::DepositsRequest, ::api::v1::DepositsResponse>* streamer) { - return this->StreamedDeposits(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Deposits() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Deposits(::grpc::ServerContext* /*context*/, const ::api::v1::DepositsRequest* /*request*/, ::api::v1::DepositsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeposits(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::DepositsRequest,::api::v1::DepositsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_NetworkParameters : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_NetworkParameters() { - ::grpc::Service::MarkMethodStreamed(60, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::NetworkParametersRequest, ::api::v1::NetworkParametersResponse>* streamer) { - return this->StreamedNetworkParameters(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_NetworkParameters() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status NetworkParameters(::grpc::ServerContext* /*context*/, const ::api::v1::NetworkParametersRequest* /*request*/, ::api::v1::NetworkParametersResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedNetworkParameters(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::NetworkParametersRequest,::api::v1::NetworkParametersResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_LiquidityProvisions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_LiquidityProvisions() { - ::grpc::Service::MarkMethodStreamed(61, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::LiquidityProvisionsRequest, ::api::v1::LiquidityProvisionsResponse>* streamer) { - return this->StreamedLiquidityProvisions(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_LiquidityProvisions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status LiquidityProvisions(::grpc::ServerContext* /*context*/, const ::api::v1::LiquidityProvisionsRequest* /*request*/, ::api::v1::LiquidityProvisionsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedLiquidityProvisions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::LiquidityProvisionsRequest,::api::v1::LiquidityProvisionsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OracleSpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OracleSpec() { - ::grpc::Service::MarkMethodStreamed(62, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OracleSpecRequest, ::api::v1::OracleSpecResponse>* streamer) { - return this->StreamedOracleSpec(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OracleSpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OracleSpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecRequest* /*request*/, ::api::v1::OracleSpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOracleSpec(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OracleSpecRequest,::api::v1::OracleSpecResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OracleSpecs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OracleSpecs() { - ::grpc::Service::MarkMethodStreamed(63, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OracleSpecsRequest, ::api::v1::OracleSpecsResponse>* streamer) { - return this->StreamedOracleSpecs(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OracleSpecs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OracleSpecs(::grpc::ServerContext* /*context*/, const ::api::v1::OracleSpecsRequest* /*request*/, ::api::v1::OracleSpecsResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOracleSpecs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OracleSpecsRequest,::api::v1::OracleSpecsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_OracleDataBySpec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_OracleDataBySpec() { - ::grpc::Service::MarkMethodStreamed(64, - new ::grpc::internal::StreamedUnaryHandler< - ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::api::v1::OracleDataBySpecRequest, ::api::v1::OracleDataBySpecResponse>* streamer) { - return this->StreamedOracleDataBySpec(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_OracleDataBySpec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OracleDataBySpec(::grpc::ServerContext* /*context*/, const ::api::v1::OracleDataBySpecRequest* /*request*/, ::api::v1::OracleDataBySpecResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOracleDataBySpec(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::v1::OracleDataBySpecRequest,::api::v1::OracleDataBySpecResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_MarketAccounts > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; - template - class WithSplitStreamingMethod_ObserveGovernance : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_ObserveGovernance() { - ::grpc::Service::MarkMethodStreamed(32, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::ObserveGovernanceRequest, ::api::v1::ObserveGovernanceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::ObserveGovernanceRequest, ::api::v1::ObserveGovernanceResponse>* streamer) { - return this->StreamedObserveGovernance(context, - streamer); - })); - } - ~WithSplitStreamingMethod_ObserveGovernance() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ObserveGovernance(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveGovernanceRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveGovernanceResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedObserveGovernance(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::ObserveGovernanceRequest,::api::v1::ObserveGovernanceResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_ObservePartyProposals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_ObservePartyProposals() { - ::grpc::Service::MarkMethodStreamed(33, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::ObservePartyProposalsRequest, ::api::v1::ObservePartyProposalsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::ObservePartyProposalsRequest, ::api::v1::ObservePartyProposalsResponse>* streamer) { - return this->StreamedObservePartyProposals(context, - streamer); - })); - } - ~WithSplitStreamingMethod_ObservePartyProposals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ObservePartyProposals(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyProposalsRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyProposalsResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedObservePartyProposals(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::ObservePartyProposalsRequest,::api::v1::ObservePartyProposalsResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_ObservePartyVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_ObservePartyVotes() { - ::grpc::Service::MarkMethodStreamed(34, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::ObservePartyVotesRequest, ::api::v1::ObservePartyVotesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::ObservePartyVotesRequest, ::api::v1::ObservePartyVotesResponse>* streamer) { - return this->StreamedObservePartyVotes(context, - streamer); - })); - } - ~WithSplitStreamingMethod_ObservePartyVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ObservePartyVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObservePartyVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObservePartyVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedObservePartyVotes(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::ObservePartyVotesRequest,::api::v1::ObservePartyVotesResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_ObserveProposalVotes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_ObserveProposalVotes() { - ::grpc::Service::MarkMethodStreamed(35, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::ObserveProposalVotesRequest, ::api::v1::ObserveProposalVotesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::ObserveProposalVotesRequest, ::api::v1::ObserveProposalVotesResponse>* streamer) { - return this->StreamedObserveProposalVotes(context, - streamer); - })); - } - ~WithSplitStreamingMethod_ObserveProposalVotes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ObserveProposalVotes(::grpc::ServerContext* /*context*/, const ::api::v1::ObserveProposalVotesRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::ObserveProposalVotesResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedObserveProposalVotes(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::ObserveProposalVotesRequest,::api::v1::ObserveProposalVotesResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_AccountsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_AccountsSubscribe() { - ::grpc::Service::MarkMethodStreamed(40, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::AccountsSubscribeRequest, ::api::v1::AccountsSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::AccountsSubscribeRequest, ::api::v1::AccountsSubscribeResponse>* streamer) { - return this->StreamedAccountsSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_AccountsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status AccountsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::AccountsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::AccountsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedAccountsSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::AccountsSubscribeRequest,::api::v1::AccountsSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_CandlesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_CandlesSubscribe() { - ::grpc::Service::MarkMethodStreamed(41, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::CandlesSubscribeRequest, ::api::v1::CandlesSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::CandlesSubscribeRequest, ::api::v1::CandlesSubscribeResponse>* streamer) { - return this->StreamedCandlesSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_CandlesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CandlesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::CandlesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::CandlesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedCandlesSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::CandlesSubscribeRequest,::api::v1::CandlesSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_MarginLevelsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_MarginLevelsSubscribe() { - ::grpc::Service::MarkMethodStreamed(42, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::MarginLevelsSubscribeRequest, ::api::v1::MarginLevelsSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::MarginLevelsSubscribeRequest, ::api::v1::MarginLevelsSubscribeResponse>* streamer) { - return this->StreamedMarginLevelsSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_MarginLevelsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarginLevelsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarginLevelsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarginLevelsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedMarginLevelsSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::MarginLevelsSubscribeRequest,::api::v1::MarginLevelsSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_MarketDepthSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_MarketDepthSubscribe() { - ::grpc::Service::MarkMethodStreamed(43, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::MarketDepthSubscribeRequest, ::api::v1::MarketDepthSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::MarketDepthSubscribeRequest, ::api::v1::MarketDepthSubscribeResponse>* streamer) { - return this->StreamedMarketDepthSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_MarketDepthSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketDepthSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedMarketDepthSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::MarketDepthSubscribeRequest,::api::v1::MarketDepthSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_MarketDepthUpdatesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_MarketDepthUpdatesSubscribe() { - ::grpc::Service::MarkMethodStreamed(44, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::MarketDepthUpdatesSubscribeRequest, ::api::v1::MarketDepthUpdatesSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::MarketDepthUpdatesSubscribeRequest, ::api::v1::MarketDepthUpdatesSubscribeResponse>* streamer) { - return this->StreamedMarketDepthUpdatesSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_MarketDepthUpdatesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketDepthUpdatesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketDepthUpdatesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketDepthUpdatesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedMarketDepthUpdatesSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::MarketDepthUpdatesSubscribeRequest,::api::v1::MarketDepthUpdatesSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_MarketsDataSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_MarketsDataSubscribe() { - ::grpc::Service::MarkMethodStreamed(45, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::MarketsDataSubscribeRequest, ::api::v1::MarketsDataSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::MarketsDataSubscribeRequest, ::api::v1::MarketsDataSubscribeResponse>* streamer) { - return this->StreamedMarketsDataSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_MarketsDataSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MarketsDataSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::MarketsDataSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::MarketsDataSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedMarketsDataSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::MarketsDataSubscribeRequest,::api::v1::MarketsDataSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_OrdersSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_OrdersSubscribe() { - ::grpc::Service::MarkMethodStreamed(46, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::OrdersSubscribeRequest, ::api::v1::OrdersSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::OrdersSubscribeRequest, ::api::v1::OrdersSubscribeResponse>* streamer) { - return this->StreamedOrdersSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_OrdersSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status OrdersSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::OrdersSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::OrdersSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedOrdersSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::OrdersSubscribeRequest,::api::v1::OrdersSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_PositionsSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_PositionsSubscribe() { - ::grpc::Service::MarkMethodStreamed(47, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::PositionsSubscribeRequest, ::api::v1::PositionsSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::PositionsSubscribeRequest, ::api::v1::PositionsSubscribeResponse>* streamer) { - return this->StreamedPositionsSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_PositionsSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PositionsSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::PositionsSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::PositionsSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedPositionsSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::PositionsSubscribeRequest,::api::v1::PositionsSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_TradesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_TradesSubscribe() { - ::grpc::Service::MarkMethodStreamed(48, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::TradesSubscribeRequest, ::api::v1::TradesSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::TradesSubscribeRequest, ::api::v1::TradesSubscribeResponse>* streamer) { - return this->StreamedTradesSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_TradesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TradesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TradesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TradesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedTradesSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::TradesSubscribeRequest,::api::v1::TradesSubscribeResponse>* server_split_streamer) = 0; - }; - template - class WithSplitStreamingMethod_TransferResponsesSubscribe : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithSplitStreamingMethod_TransferResponsesSubscribe() { - ::grpc::Service::MarkMethodStreamed(49, - new ::grpc::internal::SplitServerStreamingHandler< - ::api::v1::TransferResponsesSubscribeRequest, ::api::v1::TransferResponsesSubscribeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::api::v1::TransferResponsesSubscribeRequest, ::api::v1::TransferResponsesSubscribeResponse>* streamer) { - return this->StreamedTransferResponsesSubscribe(context, - streamer); - })); - } - ~WithSplitStreamingMethod_TransferResponsesSubscribe() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TransferResponsesSubscribe(::grpc::ServerContext* /*context*/, const ::api::v1::TransferResponsesSubscribeRequest* /*request*/, ::grpc::ServerWriter< ::api::v1::TransferResponsesSubscribeResponse>* /*writer*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedTransferResponsesSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::api::v1::TransferResponsesSubscribeRequest,::api::v1::TransferResponsesSubscribeResponse>* server_split_streamer) = 0; - }; - typedef WithSplitStreamingMethod_ObserveGovernance > > > > > > > > > > > > > SplitStreamedService; - typedef WithStreamedUnaryMethod_MarketAccounts > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_SubmitTransactionV2 > > > > StreamedService; }; } // namespace v1 diff --git a/grpc/clients/cpp/generated/api/trading.pb.cc b/grpc/clients/cpp/generated/api/trading.pb.cc index 805bbabd..054d3f17 100644 --- a/grpc/clients/cpp/generated/api/trading.pb.cc +++ b/grpc/clients/cpp/generated/api/trading.pb.cc @@ -14,44 +14,9 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_api_2ftrading_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OptionalProposalState_api_2ftrading_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_api_2ftrading_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pagination_api_2ftrading_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_oracles_2fv1_2fdata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OracleData_oracles_2fv1_2fdata_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_oracles_2fv1_2fspec_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OracleSpec_oracles_2fv1_2fspec_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Account_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_assets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Asset_assets_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Candle_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Deposit_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fee_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GovernanceData_governance_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvision_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarginLevels_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_markets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_Market_markets_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MarketData_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketDepth_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketDepthUpdate_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParameter_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Order_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Party_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Position_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PriceLevel_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignedBundle_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Statistics_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trade_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TransferResponse_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Vote_governance_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeSignature_commands_2fv1_2fvalidator_5fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_api_2ftrading_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Statistics_api_2ftrading_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2ftransaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Transaction_commands_2fv1_2ftransaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<33> scc_info_BusEvent_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<35> scc_info_BusEvent_events_2fv1_2fevents_2eproto; namespace api { namespace v1 { class PropagateChainEventRequestDefaultTypeInternal { @@ -62,14 +27,6 @@ class PropagateChainEventResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PropagateChainEventResponse_default_instance_; -class SubmitTransactionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SubmitTransactionRequest_default_instance_; -class SubmitTransactionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SubmitTransactionResponse_default_instance_; class SubmitTransactionV2RequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -78,378 +35,6 @@ class SubmitTransactionV2ResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SubmitTransactionV2Response_default_instance_; -class PrepareWithdrawRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareWithdrawRequest_default_instance_; -class PrepareWithdrawResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareWithdrawResponse_default_instance_; -class PrepareSubmitOrderResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareSubmitOrderResponse_default_instance_; -class PrepareCancelOrderResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareCancelOrderResponse_default_instance_; -class PrepareAmendOrderResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareAmendOrderResponse_default_instance_; -class PrepareSubmitOrderRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareSubmitOrderRequest_default_instance_; -class PrepareCancelOrderRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareCancelOrderRequest_default_instance_; -class PrepareAmendOrderRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareAmendOrderRequest_default_instance_; -class AssetsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AssetsRequest_default_instance_; -class AssetsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AssetsResponse_default_instance_; -class AssetByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AssetByIDRequest_default_instance_; -class AssetByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AssetByIDResponse_default_instance_; -class GetNodeSignaturesAggregateRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNodeSignaturesAggregateRequest_default_instance_; -class GetNodeSignaturesAggregateResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNodeSignaturesAggregateResponse_default_instance_; -class OptionalProposalStateDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OptionalProposalState_default_instance_; -class GetProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalsRequest_default_instance_; -class GetProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalsResponse_default_instance_; -class GetProposalsByPartyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalsByPartyRequest_default_instance_; -class GetProposalsByPartyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalsByPartyResponse_default_instance_; -class GetVotesByPartyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetVotesByPartyRequest_default_instance_; -class GetVotesByPartyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetVotesByPartyResponse_default_instance_; -class GetNewMarketProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNewMarketProposalsRequest_default_instance_; -class GetNewMarketProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNewMarketProposalsResponse_default_instance_; -class GetUpdateMarketProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetUpdateMarketProposalsRequest_default_instance_; -class GetUpdateMarketProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetUpdateMarketProposalsResponse_default_instance_; -class GetNetworkParametersProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNetworkParametersProposalsRequest_default_instance_; -class GetNetworkParametersProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNetworkParametersProposalsResponse_default_instance_; -class GetNewAssetProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNewAssetProposalsRequest_default_instance_; -class GetNewAssetProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetNewAssetProposalsResponse_default_instance_; -class GetProposalByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalByIDRequest_default_instance_; -class GetProposalByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalByIDResponse_default_instance_; -class GetProposalByReferenceRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalByReferenceRequest_default_instance_; -class GetProposalByReferenceResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetProposalByReferenceResponse_default_instance_; -class ObserveGovernanceRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObserveGovernanceRequest_default_instance_; -class ObserveGovernanceResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObserveGovernanceResponse_default_instance_; -class ObservePartyProposalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObservePartyProposalsRequest_default_instance_; -class ObservePartyProposalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObservePartyProposalsResponse_default_instance_; -class ObserveProposalVotesRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObserveProposalVotesRequest_default_instance_; -class ObserveProposalVotesResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObserveProposalVotesResponse_default_instance_; -class ObservePartyVotesRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObservePartyVotesRequest_default_instance_; -class ObservePartyVotesResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObservePartyVotesResponse_default_instance_; -class MarginLevelsSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarginLevelsSubscribeRequest_default_instance_; -class MarginLevelsSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarginLevelsSubscribeResponse_default_instance_; -class MarginLevelsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarginLevelsRequest_default_instance_; -class MarginLevelsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarginLevelsResponse_default_instance_; -class MarketsDataSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsDataSubscribeRequest_default_instance_; -class MarketsDataSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsDataSubscribeResponse_default_instance_; -class MarketDataByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDataByIDRequest_default_instance_; -class MarketDataByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDataByIDResponse_default_instance_; -class MarketsDataRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsDataRequest_default_instance_; -class MarketsDataResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsDataResponse_default_instance_; -class LastTradeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _LastTradeRequest_default_instance_; -class LastTradeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _LastTradeResponse_default_instance_; -class MarketByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketByIDRequest_default_instance_; -class MarketByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketByIDResponse_default_instance_; -class PartyByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartyByIDRequest_default_instance_; -class PartyByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartyByIDResponse_default_instance_; -class PartiesRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartiesRequest_default_instance_; -class PartiesResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartiesResponse_default_instance_; -class TradesByPartyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByPartyRequest_default_instance_; -class TradesByPartyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByPartyResponse_default_instance_; -class TradesByOrderRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByOrderRequest_default_instance_; -class TradesByOrderResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByOrderResponse_default_instance_; -class AccountsSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AccountsSubscribeRequest_default_instance_; -class AccountsSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AccountsSubscribeResponse_default_instance_; -class OrdersSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersSubscribeRequest_default_instance_; -class TradesSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesSubscribeRequest_default_instance_; -class CandlesSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CandlesSubscribeRequest_default_instance_; -class CandlesSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CandlesSubscribeResponse_default_instance_; -class MarketDepthSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthSubscribeRequest_default_instance_; -class MarketDepthSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthSubscribeResponse_default_instance_; -class MarketDepthUpdatesSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthUpdatesSubscribeRequest_default_instance_; -class MarketDepthUpdatesSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthUpdatesSubscribeResponse_default_instance_; -class PositionsSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PositionsSubscribeRequest_default_instance_; -class PositionsSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PositionsSubscribeResponse_default_instance_; -class OrdersByMarketRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersByMarketRequest_default_instance_; -class OrdersByMarketResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersByMarketResponse_default_instance_; -class OrdersByPartyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersByPartyRequest_default_instance_; -class OrdersByPartyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersByPartyResponse_default_instance_; -class OrderByMarketAndIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByMarketAndIDRequest_default_instance_; -class OrderByMarketAndIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByMarketAndIDResponse_default_instance_; -class OrderByReferenceRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByReferenceRequest_default_instance_; -class OrderByReferenceResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByReferenceResponse_default_instance_; -class MarketsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsRequest_default_instance_; -class MarketsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketsResponse_default_instance_; -class CandlesRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CandlesRequest_default_instance_; -class CandlesResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CandlesResponse_default_instance_; -class MarketDepthRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthRequest_default_instance_; -class MarketDepthResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketDepthResponse_default_instance_; -class TradesByMarketRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByMarketRequest_default_instance_; -class TradesByMarketResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesByMarketResponse_default_instance_; -class PositionsByPartyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PositionsByPartyRequest_default_instance_; -class PositionsByPartyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PositionsByPartyResponse_default_instance_; class GetVegaTimeRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -458,106 +43,6 @@ class GetVegaTimeResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetVegaTimeResponse_default_instance_; -class PaginationDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Pagination_default_instance_; -class OrdersSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrdersSubscribeResponse_default_instance_; -class TradesSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TradesSubscribeResponse_default_instance_; -class TransferResponsesSubscribeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TransferResponsesSubscribeRequest_default_instance_; -class TransferResponsesSubscribeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TransferResponsesSubscribeResponse_default_instance_; -class PartyAccountsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartyAccountsRequest_default_instance_; -class PartyAccountsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PartyAccountsResponse_default_instance_; -class MarketAccountsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketAccountsRequest_default_instance_; -class MarketAccountsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MarketAccountsResponse_default_instance_; -class FeeInfrastructureAccountsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FeeInfrastructureAccountsRequest_default_instance_; -class FeeInfrastructureAccountsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FeeInfrastructureAccountsResponse_default_instance_; -class PrepareProposalSubmissionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareProposalSubmissionRequest_default_instance_; -class PrepareProposalSubmissionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareProposalSubmissionResponse_default_instance_; -class PrepareVoteSubmissionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareVoteSubmissionRequest_default_instance_; -class PrepareVoteSubmissionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareVoteSubmissionResponse_default_instance_; -class PrepareLiquidityProvisionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareLiquidityProvisionRequest_default_instance_; -class PrepareLiquidityProvisionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PrepareLiquidityProvisionResponse_default_instance_; -class OrderByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByIDRequest_default_instance_; -class OrderByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderByIDResponse_default_instance_; -class OrderVersionsByIDRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderVersionsByIDRequest_default_instance_; -class OrderVersionsByIDResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OrderVersionsByIDResponse_default_instance_; -class EstimateFeeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EstimateFeeRequest_default_instance_; -class EstimateFeeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EstimateFeeResponse_default_instance_; -class EstimateMarginRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EstimateMarginRequest_default_instance_; -class EstimateMarginResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EstimateMarginResponse_default_instance_; class ObserveEventBusRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -574,86 +59,10 @@ class StatisticsResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _StatisticsResponse_default_instance_; -class WithdrawalsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WithdrawalsRequest_default_instance_; -class WithdrawalsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WithdrawalsResponse_default_instance_; -class WithdrawalRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WithdrawalRequest_default_instance_; -class WithdrawalResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _WithdrawalResponse_default_instance_; -class ERC20WithdrawalApprovalRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ERC20WithdrawalApprovalRequest_default_instance_; -class ERC20WithdrawalApprovalResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ERC20WithdrawalApprovalResponse_default_instance_; -class DepositsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DepositsRequest_default_instance_; -class DepositsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DepositsResponse_default_instance_; -class DepositRequestDefaultTypeInternal { +class StatisticsDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DepositRequest_default_instance_; -class DepositResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DepositResponse_default_instance_; -class NetworkParametersRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _NetworkParametersRequest_default_instance_; -class NetworkParametersResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _NetworkParametersResponse_default_instance_; -class LiquidityProvisionsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _LiquidityProvisionsRequest_default_instance_; -class LiquidityProvisionsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _LiquidityProvisionsResponse_default_instance_; -class OracleSpecRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleSpecRequest_default_instance_; -class OracleSpecResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleSpecResponse_default_instance_; -class OracleSpecsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleSpecsRequest_default_instance_; -class OracleSpecsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleSpecsResponse_default_instance_; -class OracleDataBySpecRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleDataBySpecRequest_default_instance_; -class OracleDataBySpecResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _OracleDataBySpecResponse_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Statistics_default_instance_; class LastBlockHeightRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -664,34103 +73,586 @@ class LastBlockHeightResponseDefaultTypeInternal { } _LastBlockHeightResponse_default_instance_; } // namespace v1 } // namespace api -static void InitDefaultsscc_info_AccountsSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AccountsSubscribeRequest_default_instance_; - new (ptr) ::api::v1::AccountsSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AccountsSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AccountsSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_AccountsSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AccountsSubscribeResponse_default_instance_; - new (ptr) ::api::v1::AccountsSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AccountsSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AccountsSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_Account_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_AssetByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AssetByIDRequest_default_instance_; - new (ptr) ::api::v1::AssetByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AssetByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AssetByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_AssetByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AssetByIDResponse_default_instance_; - new (ptr) ::api::v1::AssetByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AssetByIDResponse_api_2ftrading_2eproto}, { - &scc_info_Asset_assets_2eproto.base,}}; - -static void InitDefaultsscc_info_AssetsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AssetsRequest_default_instance_; - new (ptr) ::api::v1::AssetsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AssetsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AssetsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_AssetsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_AssetsResponse_default_instance_; - new (ptr) ::api::v1::AssetsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AssetsResponse_api_2ftrading_2eproto}, { - &scc_info_Asset_assets_2eproto.base,}}; - -static void InitDefaultsscc_info_CandlesRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_GetVegaTimeRequest_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_CandlesRequest_default_instance_; - new (ptr) ::api::v1::CandlesRequest(); + void* ptr = &::api::v1::_GetVegaTimeRequest_default_instance_; + new (ptr) ::api::v1::GetVegaTimeRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CandlesRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CandlesRequest_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVegaTimeRequest_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVegaTimeRequest_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_CandlesResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_GetVegaTimeResponse_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_CandlesResponse_default_instance_; - new (ptr) ::api::v1::CandlesResponse(); + void* ptr = &::api::v1::_GetVegaTimeResponse_default_instance_; + new (ptr) ::api::v1::GetVegaTimeResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CandlesResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CandlesResponse_api_2ftrading_2eproto}, { - &scc_info_Candle_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVegaTimeResponse_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVegaTimeResponse_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_CandlesSubscribeRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_LastBlockHeightRequest_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_CandlesSubscribeRequest_default_instance_; - new (ptr) ::api::v1::CandlesSubscribeRequest(); + void* ptr = &::api::v1::_LastBlockHeightRequest_default_instance_; + new (ptr) ::api::v1::LastBlockHeightRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CandlesSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CandlesSubscribeRequest_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LastBlockHeightRequest_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LastBlockHeightRequest_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_CandlesSubscribeResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_LastBlockHeightResponse_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_CandlesSubscribeResponse_default_instance_; - new (ptr) ::api::v1::CandlesSubscribeResponse(); + void* ptr = &::api::v1::_LastBlockHeightResponse_default_instance_; + new (ptr) ::api::v1::LastBlockHeightResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CandlesSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CandlesSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_Candle_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LastBlockHeightResponse_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LastBlockHeightResponse_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_DepositRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_ObserveEventBusRequest_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_DepositRequest_default_instance_; - new (ptr) ::api::v1::DepositRequest(); + void* ptr = &::api::v1::_ObserveEventBusRequest_default_instance_; + new (ptr) ::api::v1::ObserveEventBusRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DepositRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DepositRequest_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObserveEventBusRequest_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObserveEventBusRequest_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_DepositResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_ObserveEventBusResponse_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_DepositResponse_default_instance_; - new (ptr) ::api::v1::DepositResponse(); + void* ptr = &::api::v1::_ObserveEventBusResponse_default_instance_; + new (ptr) ::api::v1::ObserveEventBusResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DepositResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_DepositResponse_api_2ftrading_2eproto}, { - &scc_info_Deposit_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObserveEventBusResponse_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObserveEventBusResponse_api_2ftrading_2eproto}, { + &scc_info_BusEvent_events_2fv1_2fevents_2eproto.base,}}; -static void InitDefaultsscc_info_DepositsRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_PropagateChainEventRequest_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_DepositsRequest_default_instance_; - new (ptr) ::api::v1::DepositsRequest(); + void* ptr = &::api::v1::_PropagateChainEventRequest_default_instance_; + new (ptr) ::api::v1::PropagateChainEventRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DepositsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DepositsRequest_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PropagateChainEventRequest_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PropagateChainEventRequest_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_DepositsResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_PropagateChainEventResponse_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_DepositsResponse_default_instance_; - new (ptr) ::api::v1::DepositsResponse(); + void* ptr = &::api::v1::_PropagateChainEventResponse_default_instance_; + new (ptr) ::api::v1::PropagateChainEventResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DepositsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_DepositsResponse_api_2ftrading_2eproto}, { - &scc_info_Deposit_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PropagateChainEventResponse_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PropagateChainEventResponse_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_Statistics_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_ERC20WithdrawalApprovalRequest_default_instance_; - new (ptr) ::api::v1::ERC20WithdrawalApprovalRequest(); + void* ptr = &::api::v1::_Statistics_default_instance_; + new (ptr) ::api::v1::Statistics(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Statistics_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Statistics_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_StatisticsRequest_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_ERC20WithdrawalApprovalResponse_default_instance_; - new (ptr) ::api::v1::ERC20WithdrawalApprovalResponse(); + void* ptr = &::api::v1::_StatisticsRequest_default_instance_; + new (ptr) ::api::v1::StatisticsRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StatisticsRequest_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StatisticsRequest_api_2ftrading_2eproto}, {}}; -static void InitDefaultsscc_info_EstimateFeeRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_StatisticsResponse_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_EstimateFeeRequest_default_instance_; - new (ptr) ::api::v1::EstimateFeeRequest(); + void* ptr = &::api::v1::_StatisticsResponse_default_instance_; + new (ptr) ::api::v1::StatisticsResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EstimateFeeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EstimateFeeRequest_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatisticsResponse_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_StatisticsResponse_api_2ftrading_2eproto}, { + &scc_info_Statistics_api_2ftrading_2eproto.base,}}; -static void InitDefaultsscc_info_EstimateFeeResponse_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_SubmitTransactionV2Request_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_EstimateFeeResponse_default_instance_; - new (ptr) ::api::v1::EstimateFeeResponse(); + void* ptr = &::api::v1::_SubmitTransactionV2Request_default_instance_; + new (ptr) ::api::v1::SubmitTransactionV2Request(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EstimateFeeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EstimateFeeResponse_api_2ftrading_2eproto}, { - &scc_info_Fee_vega_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SubmitTransactionV2Request_api_2ftrading_2eproto}, { + &scc_info_Transaction_commands_2fv1_2ftransaction_2eproto.base,}}; -static void InitDefaultsscc_info_EstimateMarginRequest_api_2ftrading_2eproto() { +static void InitDefaultsscc_info_SubmitTransactionV2Response_api_2ftrading_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::api::v1::_EstimateMarginRequest_default_instance_; - new (ptr) ::api::v1::EstimateMarginRequest(); + void* ptr = &::api::v1::_SubmitTransactionV2Response_default_instance_; + new (ptr) ::api::v1::SubmitTransactionV2Response(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EstimateMarginRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EstimateMarginRequest_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_EstimateMarginResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_EstimateMarginResponse_default_instance_; - new (ptr) ::api::v1::EstimateMarginResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SubmitTransactionV2Response_api_2ftrading_2eproto}, {}}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EstimateMarginResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EstimateMarginResponse_api_2ftrading_2eproto}, { - &scc_info_MarginLevels_vega_2eproto.base,}}; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_api_2ftrading_2eproto[13]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_api_2ftrading_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_api_2ftrading_2eproto = nullptr; -static void InitDefaultsscc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_FeeInfrastructureAccountsRequest_default_instance_; - new (ptr) ::api::v1::FeeInfrastructureAccountsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_FeeInfrastructureAccountsResponse_default_instance_; - new (ptr) ::api::v1::FeeInfrastructureAccountsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto}, { - &scc_info_Account_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNetworkParametersProposalsRequest_default_instance_; - new (ptr) ::api::v1::GetNetworkParametersProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNetworkParametersProposalsResponse_default_instance_; - new (ptr) ::api::v1::GetNetworkParametersProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNewAssetProposalsRequest_default_instance_; - new (ptr) ::api::v1::GetNewAssetProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNewAssetProposalsResponse_default_instance_; - new (ptr) ::api::v1::GetNewAssetProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNewMarketProposalsRequest_default_instance_; - new (ptr) ::api::v1::GetNewMarketProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNewMarketProposalsResponse_default_instance_; - new (ptr) ::api::v1::GetNewMarketProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNodeSignaturesAggregateRequest_default_instance_; - new (ptr) ::api::v1::GetNodeSignaturesAggregateRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetNodeSignaturesAggregateResponse_default_instance_; - new (ptr) ::api::v1::GetNodeSignaturesAggregateResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto}, { - &scc_info_NodeSignature_commands_2fv1_2fvalidator_5fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalByIDRequest_default_instance_; - new (ptr) ::api::v1::GetProposalByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetProposalByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetProposalByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetProposalByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalByIDResponse_default_instance_; - new (ptr) ::api::v1::GetProposalByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalByIDResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalByReferenceRequest_default_instance_; - new (ptr) ::api::v1::GetProposalByReferenceRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalByReferenceResponse_default_instance_; - new (ptr) ::api::v1::GetProposalByReferenceResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalsByPartyRequest_default_instance_; - new (ptr) ::api::v1::GetProposalsByPartyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalsByPartyResponse_default_instance_; - new (ptr) ::api::v1::GetProposalsByPartyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalsRequest_default_instance_; - new (ptr) ::api::v1::GetProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalsRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetProposalsResponse_default_instance_; - new (ptr) ::api::v1::GetProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetUpdateMarketProposalsRequest_default_instance_; - new (ptr) ::api::v1::GetUpdateMarketProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto}, { - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetUpdateMarketProposalsResponse_default_instance_; - new (ptr) ::api::v1::GetUpdateMarketProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_GetVegaTimeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetVegaTimeRequest_default_instance_; - new (ptr) ::api::v1::GetVegaTimeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVegaTimeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVegaTimeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetVegaTimeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetVegaTimeResponse_default_instance_; - new (ptr) ::api::v1::GetVegaTimeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVegaTimeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVegaTimeResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetVotesByPartyRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetVotesByPartyRequest_default_instance_; - new (ptr) ::api::v1::GetVotesByPartyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVotesByPartyRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVotesByPartyRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_GetVotesByPartyResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_GetVotesByPartyResponse_default_instance_; - new (ptr) ::api::v1::GetVotesByPartyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetVotesByPartyResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetVotesByPartyResponse_api_2ftrading_2eproto}, { - &scc_info_Vote_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_LastBlockHeightRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LastBlockHeightRequest_default_instance_; - new (ptr) ::api::v1::LastBlockHeightRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LastBlockHeightRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LastBlockHeightRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_LastBlockHeightResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LastBlockHeightResponse_default_instance_; - new (ptr) ::api::v1::LastBlockHeightResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LastBlockHeightResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LastBlockHeightResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_LastTradeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LastTradeRequest_default_instance_; - new (ptr) ::api::v1::LastTradeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LastTradeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LastTradeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_LastTradeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LastTradeResponse_default_instance_; - new (ptr) ::api::v1::LastTradeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LastTradeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_LastTradeResponse_api_2ftrading_2eproto}, { - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LiquidityProvisionsRequest_default_instance_; - new (ptr) ::api::v1::LiquidityProvisionsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_LiquidityProvisionsResponse_default_instance_; - new (ptr) ::api::v1::LiquidityProvisionsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto}, { - &scc_info_LiquidityProvision_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarginLevelsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarginLevelsRequest_default_instance_; - new (ptr) ::api::v1::MarginLevelsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarginLevelsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarginLevelsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarginLevelsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarginLevelsResponse_default_instance_; - new (ptr) ::api::v1::MarginLevelsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarginLevelsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarginLevelsResponse_api_2ftrading_2eproto}, { - &scc_info_MarginLevels_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarginLevelsSubscribeRequest_default_instance_; - new (ptr) ::api::v1::MarginLevelsSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarginLevelsSubscribeResponse_default_instance_; - new (ptr) ::api::v1::MarginLevelsSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_MarginLevels_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketAccountsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketAccountsRequest_default_instance_; - new (ptr) ::api::v1::MarketAccountsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketAccountsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketAccountsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketAccountsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketAccountsResponse_default_instance_; - new (ptr) ::api::v1::MarketAccountsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketAccountsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketAccountsResponse_api_2ftrading_2eproto}, { - &scc_info_Account_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketByIDRequest_default_instance_; - new (ptr) ::api::v1::MarketByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketByIDResponse_default_instance_; - new (ptr) ::api::v1::MarketByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketByIDResponse_api_2ftrading_2eproto}, { - &scc_info_Market_markets_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketDataByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDataByIDRequest_default_instance_; - new (ptr) ::api::v1::MarketDataByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketDataByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketDataByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketDataByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDataByIDResponse_default_instance_; - new (ptr) ::api::v1::MarketDataByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketDataByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketDataByIDResponse_api_2ftrading_2eproto}, { - &scc_info_MarketData_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketDepthRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthRequest_default_instance_; - new (ptr) ::api::v1::MarketDepthRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketDepthRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketDepthRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketDepthResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthResponse_default_instance_; - new (ptr) ::api::v1::MarketDepthResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MarketDepthResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_MarketDepthResponse_api_2ftrading_2eproto}, { - &scc_info_PriceLevel_vega_2eproto.base, - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthSubscribeRequest_default_instance_; - new (ptr) ::api::v1::MarketDepthSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthSubscribeResponse_default_instance_; - new (ptr) ::api::v1::MarketDepthSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_MarketDepth_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthUpdatesSubscribeRequest_default_instance_; - new (ptr) ::api::v1::MarketDepthUpdatesSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketDepthUpdatesSubscribeResponse_default_instance_; - new (ptr) ::api::v1::MarketDepthUpdatesSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_MarketDepthUpdate_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketsDataRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsDataRequest_default_instance_; - new (ptr) ::api::v1::MarketsDataRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketsDataRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketsDataRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketsDataResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsDataResponse_default_instance_; - new (ptr) ::api::v1::MarketsDataResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketsDataResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketsDataResponse_api_2ftrading_2eproto}, { - &scc_info_MarketData_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsDataSubscribeRequest_default_instance_; - new (ptr) ::api::v1::MarketsDataSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsDataSubscribeResponse_default_instance_; - new (ptr) ::api::v1::MarketsDataSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_MarketData_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_MarketsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsRequest_default_instance_; - new (ptr) ::api::v1::MarketsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MarketsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_MarketsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_MarketsResponse_default_instance_; - new (ptr) ::api::v1::MarketsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MarketsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_MarketsResponse_api_2ftrading_2eproto}, { - &scc_info_Market_markets_2eproto.base,}}; - -static void InitDefaultsscc_info_NetworkParametersRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_NetworkParametersRequest_default_instance_; - new (ptr) ::api::v1::NetworkParametersRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParametersRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_NetworkParametersRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_NetworkParametersResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_NetworkParametersResponse_default_instance_; - new (ptr) ::api::v1::NetworkParametersResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NetworkParametersResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_NetworkParametersResponse_api_2ftrading_2eproto}, { - &scc_info_NetworkParameter_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_ObserveEventBusRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveEventBusRequest_default_instance_; - new (ptr) ::api::v1::ObserveEventBusRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObserveEventBusRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObserveEventBusRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_ObserveEventBusResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveEventBusResponse_default_instance_; - new (ptr) ::api::v1::ObserveEventBusResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObserveEventBusResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObserveEventBusResponse_api_2ftrading_2eproto}, { - &scc_info_BusEvent_events_2fv1_2fevents_2eproto.base,}}; - -static void InitDefaultsscc_info_ObserveGovernanceRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveGovernanceRequest_default_instance_; - new (ptr) ::api::v1::ObserveGovernanceRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObserveGovernanceRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObserveGovernanceRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_ObserveGovernanceResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveGovernanceResponse_default_instance_; - new (ptr) ::api::v1::ObserveGovernanceResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObserveGovernanceResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObserveGovernanceResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObservePartyProposalsRequest_default_instance_; - new (ptr) ::api::v1::ObservePartyProposalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObservePartyProposalsResponse_default_instance_; - new (ptr) ::api::v1::ObservePartyProposalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto}, { - &scc_info_GovernanceData_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_ObservePartyVotesRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObservePartyVotesRequest_default_instance_; - new (ptr) ::api::v1::ObservePartyVotesRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObservePartyVotesRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObservePartyVotesRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_ObservePartyVotesResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObservePartyVotesResponse_default_instance_; - new (ptr) ::api::v1::ObservePartyVotesResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObservePartyVotesResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObservePartyVotesResponse_api_2ftrading_2eproto}, { - &scc_info_Vote_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveProposalVotesRequest_default_instance_; - new (ptr) ::api::v1::ObserveProposalVotesRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_ObserveProposalVotesResponse_default_instance_; - new (ptr) ::api::v1::ObserveProposalVotesResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto}, { - &scc_info_Vote_governance_2eproto.base,}}; - -static void InitDefaultsscc_info_OptionalProposalState_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OptionalProposalState_default_instance_; - new (ptr) ::api::v1::OptionalProposalState(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OptionalProposalState_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OptionalProposalState_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OracleDataBySpecRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleDataBySpecRequest_default_instance_; - new (ptr) ::api::v1::OracleDataBySpecRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OracleDataBySpecRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OracleDataBySpecRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OracleDataBySpecResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleDataBySpecResponse_default_instance_; - new (ptr) ::api::v1::OracleDataBySpecResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OracleDataBySpecResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OracleDataBySpecResponse_api_2ftrading_2eproto}, { - &scc_info_OracleData_oracles_2fv1_2fdata_2eproto.base,}}; - -static void InitDefaultsscc_info_OracleSpecRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleSpecRequest_default_instance_; - new (ptr) ::api::v1::OracleSpecRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OracleSpecRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OracleSpecRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OracleSpecResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleSpecResponse_default_instance_; - new (ptr) ::api::v1::OracleSpecResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OracleSpecResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OracleSpecResponse_api_2ftrading_2eproto}, { - &scc_info_OracleSpec_oracles_2fv1_2fspec_2eproto.base,}}; - -static void InitDefaultsscc_info_OracleSpecsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleSpecsRequest_default_instance_; - new (ptr) ::api::v1::OracleSpecsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OracleSpecsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OracleSpecsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OracleSpecsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OracleSpecsResponse_default_instance_; - new (ptr) ::api::v1::OracleSpecsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OracleSpecsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OracleSpecsResponse_api_2ftrading_2eproto}, { - &scc_info_OracleSpec_oracles_2fv1_2fspec_2eproto.base,}}; - -static void InitDefaultsscc_info_OrderByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByIDRequest_default_instance_; - new (ptr) ::api::v1::OrderByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OrderByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OrderByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByIDResponse_default_instance_; - new (ptr) ::api::v1::OrderByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrderByIDResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByMarketAndIDRequest_default_instance_; - new (ptr) ::api::v1::OrderByMarketAndIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByMarketAndIDResponse_default_instance_; - new (ptr) ::api::v1::OrderByMarketAndIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrderByReferenceRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByReferenceRequest_default_instance_; - new (ptr) ::api::v1::OrderByReferenceRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderByReferenceRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OrderByReferenceRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OrderByReferenceResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderByReferenceResponse_default_instance_; - new (ptr) ::api::v1::OrderByReferenceResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderByReferenceResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrderByReferenceResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderVersionsByIDRequest_default_instance_; - new (ptr) ::api::v1::OrderVersionsByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto}, { - &scc_info_Pagination_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrderVersionsByIDResponse_default_instance_; - new (ptr) ::api::v1::OrderVersionsByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrdersByMarketRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersByMarketRequest_default_instance_; - new (ptr) ::api::v1::OrdersByMarketRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrdersByMarketRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrdersByMarketRequest_api_2ftrading_2eproto}, { - &scc_info_Pagination_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_OrdersByMarketResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersByMarketResponse_default_instance_; - new (ptr) ::api::v1::OrdersByMarketResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrdersByMarketResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrdersByMarketResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrdersByPartyRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersByPartyRequest_default_instance_; - new (ptr) ::api::v1::OrdersByPartyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrdersByPartyRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrdersByPartyRequest_api_2ftrading_2eproto}, { - &scc_info_Pagination_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_OrdersByPartyResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersByPartyResponse_default_instance_; - new (ptr) ::api::v1::OrdersByPartyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrdersByPartyResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrdersByPartyResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_OrdersSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersSubscribeRequest_default_instance_; - new (ptr) ::api::v1::OrdersSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrdersSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_OrdersSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_OrdersSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_OrdersSubscribeResponse_default_instance_; - new (ptr) ::api::v1::OrdersSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrdersSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_OrdersSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_Order_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_Pagination_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_Pagination_default_instance_; - new (ptr) ::api::v1::Pagination(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pagination_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Pagination_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PartiesRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartiesRequest_default_instance_; - new (ptr) ::api::v1::PartiesRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartiesRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PartiesRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PartiesResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartiesResponse_default_instance_; - new (ptr) ::api::v1::PartiesResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartiesResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PartiesResponse_api_2ftrading_2eproto}, { - &scc_info_Party_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_PartyAccountsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartyAccountsRequest_default_instance_; - new (ptr) ::api::v1::PartyAccountsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartyAccountsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PartyAccountsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PartyAccountsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartyAccountsResponse_default_instance_; - new (ptr) ::api::v1::PartyAccountsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartyAccountsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PartyAccountsResponse_api_2ftrading_2eproto}, { - &scc_info_Account_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_PartyByIDRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartyByIDRequest_default_instance_; - new (ptr) ::api::v1::PartyByIDRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PartyByIDRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PartyByIDRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PartyByIDResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PartyByIDResponse_default_instance_; - new (ptr) ::api::v1::PartyByIDResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartyByIDResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PartyByIDResponse_api_2ftrading_2eproto}, { - &scc_info_Party_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_PositionsByPartyRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PositionsByPartyRequest_default_instance_; - new (ptr) ::api::v1::PositionsByPartyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PositionsByPartyRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PositionsByPartyRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PositionsByPartyResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PositionsByPartyResponse_default_instance_; - new (ptr) ::api::v1::PositionsByPartyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PositionsByPartyResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PositionsByPartyResponse_api_2ftrading_2eproto}, { - &scc_info_Position_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_PositionsSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PositionsSubscribeRequest_default_instance_; - new (ptr) ::api::v1::PositionsSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PositionsSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PositionsSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PositionsSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PositionsSubscribeResponse_default_instance_; - new (ptr) ::api::v1::PositionsSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PositionsSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PositionsSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_Position_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareAmendOrderRequest_default_instance_; - new (ptr) ::api::v1::PrepareAmendOrderRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto}, { - &scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareAmendOrderResponse_default_instance_; - new (ptr) ::api::v1::PrepareAmendOrderResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareCancelOrderRequest_default_instance_; - new (ptr) ::api::v1::PrepareCancelOrderRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto}, { - &scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareCancelOrderResponse_default_instance_; - new (ptr) ::api::v1::PrepareCancelOrderResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareLiquidityProvisionRequest_default_instance_; - new (ptr) ::api::v1::PrepareLiquidityProvisionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto}, { - &scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareLiquidityProvisionResponse_default_instance_; - new (ptr) ::api::v1::PrepareLiquidityProvisionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareProposalSubmissionRequest_default_instance_; - new (ptr) ::api::v1::PrepareProposalSubmissionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto}, { - &scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareProposalSubmissionResponse_default_instance_; - new (ptr) ::api::v1::PrepareProposalSubmissionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto}, { - &scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareSubmitOrderRequest_default_instance_; - new (ptr) ::api::v1::PrepareSubmitOrderRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto}, { - &scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareSubmitOrderResponse_default_instance_; - new (ptr) ::api::v1::PrepareSubmitOrderResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareVoteSubmissionRequest_default_instance_; - new (ptr) ::api::v1::PrepareVoteSubmissionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto}, { - &scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareVoteSubmissionResponse_default_instance_; - new (ptr) ::api::v1::PrepareVoteSubmissionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto}, { - &scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareWithdrawRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareWithdrawRequest_default_instance_; - new (ptr) ::api::v1::PrepareWithdrawRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PrepareWithdrawRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PrepareWithdrawRequest_api_2ftrading_2eproto}, { - &scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PrepareWithdrawResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PrepareWithdrawResponse_default_instance_; - new (ptr) ::api::v1::PrepareWithdrawResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrepareWithdrawResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PrepareWithdrawResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_PropagateChainEventRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PropagateChainEventRequest_default_instance_; - new (ptr) ::api::v1::PropagateChainEventRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PropagateChainEventRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PropagateChainEventRequest_api_2ftrading_2eproto}, { - &scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto.base,}}; - -static void InitDefaultsscc_info_PropagateChainEventResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_PropagateChainEventResponse_default_instance_; - new (ptr) ::api::v1::PropagateChainEventResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PropagateChainEventResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PropagateChainEventResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_StatisticsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_StatisticsRequest_default_instance_; - new (ptr) ::api::v1::StatisticsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StatisticsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StatisticsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_StatisticsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_StatisticsResponse_default_instance_; - new (ptr) ::api::v1::StatisticsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatisticsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_StatisticsResponse_api_2ftrading_2eproto}, { - &scc_info_Statistics_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_SubmitTransactionRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_SubmitTransactionRequest_default_instance_; - new (ptr) ::api::v1::SubmitTransactionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SubmitTransactionRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SubmitTransactionRequest_api_2ftrading_2eproto}, { - &scc_info_SignedBundle_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_SubmitTransactionResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_SubmitTransactionResponse_default_instance_; - new (ptr) ::api::v1::SubmitTransactionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubmitTransactionResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SubmitTransactionResponse_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_SubmitTransactionV2Request_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_SubmitTransactionV2Request_default_instance_; - new (ptr) ::api::v1::SubmitTransactionV2Request(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SubmitTransactionV2Request_api_2ftrading_2eproto}, { - &scc_info_Transaction_commands_2fv1_2ftransaction_2eproto.base,}}; - -static void InitDefaultsscc_info_SubmitTransactionV2Response_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_SubmitTransactionV2Response_default_instance_; - new (ptr) ::api::v1::SubmitTransactionV2Response(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SubmitTransactionV2Response_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_TradesByMarketRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByMarketRequest_default_instance_; - new (ptr) ::api::v1::TradesByMarketRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesByMarketRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesByMarketRequest_api_2ftrading_2eproto}, { - &scc_info_Pagination_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_TradesByMarketResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByMarketResponse_default_instance_; - new (ptr) ::api::v1::TradesByMarketResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesByMarketResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesByMarketResponse_api_2ftrading_2eproto}, { - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_TradesByOrderRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByOrderRequest_default_instance_; - new (ptr) ::api::v1::TradesByOrderRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TradesByOrderRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TradesByOrderRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_TradesByOrderResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByOrderResponse_default_instance_; - new (ptr) ::api::v1::TradesByOrderResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesByOrderResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesByOrderResponse_api_2ftrading_2eproto}, { - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_TradesByPartyRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByPartyRequest_default_instance_; - new (ptr) ::api::v1::TradesByPartyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesByPartyRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesByPartyRequest_api_2ftrading_2eproto}, { - &scc_info_Pagination_api_2ftrading_2eproto.base,}}; - -static void InitDefaultsscc_info_TradesByPartyResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesByPartyResponse_default_instance_; - new (ptr) ::api::v1::TradesByPartyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesByPartyResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesByPartyResponse_api_2ftrading_2eproto}, { - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_TradesSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesSubscribeRequest_default_instance_; - new (ptr) ::api::v1::TradesSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TradesSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TradesSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_TradesSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TradesSubscribeResponse_default_instance_; - new (ptr) ::api::v1::TradesSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradesSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradesSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_Trade_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_TransferResponsesSubscribeRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TransferResponsesSubscribeRequest_default_instance_; - new (ptr) ::api::v1::TransferResponsesSubscribeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TransferResponsesSubscribeRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TransferResponsesSubscribeRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_TransferResponsesSubscribeResponse_default_instance_; - new (ptr) ::api::v1::TransferResponsesSubscribeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto}, { - &scc_info_TransferResponse_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_WithdrawalRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_WithdrawalRequest_default_instance_; - new (ptr) ::api::v1::WithdrawalRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WithdrawalRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_WithdrawalRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_WithdrawalResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_WithdrawalResponse_default_instance_; - new (ptr) ::api::v1::WithdrawalResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawalResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_WithdrawalResponse_api_2ftrading_2eproto}, { - &scc_info_Withdrawal_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_WithdrawalsRequest_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_WithdrawalsRequest_default_instance_; - new (ptr) ::api::v1::WithdrawalsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WithdrawalsRequest_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_WithdrawalsRequest_api_2ftrading_2eproto}, {}}; - -static void InitDefaultsscc_info_WithdrawalsResponse_api_2ftrading_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::api::v1::_WithdrawalsResponse_default_instance_; - new (ptr) ::api::v1::WithdrawalsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawalsResponse_api_2ftrading_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_WithdrawalsResponse_api_2ftrading_2eproto}, { - &scc_info_Withdrawal_vega_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_api_2ftrading_2eproto[152]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_api_2ftrading_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_api_2ftrading_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_api_2ftrading_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, evt_), - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, pub_key_), - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, signature_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventResponse, success_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionRequest, tx_), - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionRequest, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionResponse, success_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, tx_), - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Response, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Response, success_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareWithdrawRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareWithdrawRequest, withdraw_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareWithdrawResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareWithdrawResponse, blob_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareSubmitOrderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareSubmitOrderResponse, blob_), - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareSubmitOrderResponse, submit_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareCancelOrderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareCancelOrderResponse, blob_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareAmendOrderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareAmendOrderResponse, blob_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareSubmitOrderRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareSubmitOrderRequest, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareCancelOrderRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareCancelOrderRequest, cancellation_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareAmendOrderRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareAmendOrderRequest, amendment_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetsResponse, assets_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetByIDRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::AssetByIDResponse, asset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNodeSignaturesAggregateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNodeSignaturesAggregateRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNodeSignaturesAggregateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNodeSignaturesAggregateResponse, signatures_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OptionalProposalState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OptionalProposalState, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsByPartyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsByPartyRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsByPartyRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsByPartyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalsByPartyResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVotesByPartyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVotesByPartyRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVotesByPartyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVotesByPartyResponse, votes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewMarketProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewMarketProposalsRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewMarketProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewMarketProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetUpdateMarketProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetUpdateMarketProposalsRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::GetUpdateMarketProposalsRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetUpdateMarketProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetUpdateMarketProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNetworkParametersProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNetworkParametersProposalsRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNetworkParametersProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNetworkParametersProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewAssetProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewAssetProposalsRequest, select_in_state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewAssetProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetNewAssetProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByIDRequest, proposal_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByIDResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByReferenceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByReferenceRequest, reference_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByReferenceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetProposalByReferenceResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveGovernanceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveGovernanceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveGovernanceResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyProposalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyProposalsRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyProposalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyProposalsResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveProposalVotesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveProposalVotesRequest, proposal_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveProposalVotesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveProposalVotesResponse, vote_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyVotesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyVotesRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyVotesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObservePartyVotesResponse, vote_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsSubscribeRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsSubscribeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsSubscribeResponse, margin_levels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarginLevelsResponse, margin_levels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataSubscribeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataSubscribeResponse, market_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDataByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDataByIDRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDataByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDataByIDResponse, market_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsDataResponse, markets_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastTradeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastTradeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastTradeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastTradeResponse, trade_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketByIDRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketByIDResponse, market_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyByIDRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyByIDResponse, party_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartiesResponse, parties_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByPartyResponse, trades_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByOrderRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByOrderRequest, order_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByOrderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByOrderResponse, trades_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeRequest, asset_), - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeRequest, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::AccountsSubscribeResponse, account_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersSubscribeRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersSubscribeRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesSubscribeRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::TradesSubscribeRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesSubscribeRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesSubscribeRequest, interval_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesSubscribeResponse, candle_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthSubscribeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthSubscribeResponse, market_depth_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthUpdatesSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthUpdatesSubscribeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthUpdatesSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthUpdatesSubscribeResponse, update_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsSubscribeRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsSubscribeRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsSubscribeResponse, position_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByMarketRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByMarketRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByMarketRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByMarketResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByMarketResponse, orders_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByPartyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByPartyRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByPartyRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByPartyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersByPartyResponse, orders_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByMarketAndIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByMarketAndIDRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByMarketAndIDRequest, order_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByMarketAndIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByMarketAndIDResponse, order_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByReferenceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByReferenceRequest, reference_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByReferenceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByReferenceResponse, order_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketsResponse, markets_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesRequest, since_timestamp_), - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesRequest, interval_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::CandlesResponse, candles_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthRequest, max_depth_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, buy_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, sell_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, last_trade_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketDepthResponse, sequence_number_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByMarketRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByMarketRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByMarketRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByMarketResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesByMarketResponse, trades_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsByPartyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsByPartyRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsByPartyRequest, market_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsByPartyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PositionsByPartyResponse, positions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeResponse, timestamp_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::Pagination, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::Pagination, skip_), - PROTOBUF_FIELD_OFFSET(::api::v1::Pagination, limit_), - PROTOBUF_FIELD_OFFSET(::api::v1::Pagination, descending_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrdersSubscribeResponse, orders_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TradesSubscribeResponse, trades_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TransferResponsesSubscribeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::TransferResponsesSubscribeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::TransferResponsesSubscribeResponse, response_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsRequest, type_), - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsRequest, asset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PartyAccountsResponse, accounts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketAccountsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketAccountsRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::MarketAccountsRequest, asset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketAccountsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::MarketAccountsResponse, accounts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::FeeInfrastructureAccountsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::FeeInfrastructureAccountsRequest, asset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::FeeInfrastructureAccountsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::FeeInfrastructureAccountsResponse, accounts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareProposalSubmissionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareProposalSubmissionRequest, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareProposalSubmissionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareProposalSubmissionResponse, blob_), - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareProposalSubmissionResponse, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareVoteSubmissionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareVoteSubmissionRequest, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareVoteSubmissionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareVoteSubmissionResponse, blob_), - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareVoteSubmissionResponse, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareLiquidityProvisionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareLiquidityProvisionRequest, submission_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareLiquidityProvisionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::PrepareLiquidityProvisionResponse, blob_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByIDRequest, order_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByIDRequest, version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderByIDResponse, order_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderVersionsByIDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderVersionsByIDRequest, order_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::OrderVersionsByIDRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderVersionsByIDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OrderVersionsByIDResponse, orders_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateFeeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateFeeRequest, order_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateFeeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateFeeResponse, fee_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateMarginRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateMarginRequest, order_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateMarginResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::EstimateMarginResponse, margin_levels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, type_), - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, market_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, party_id_), - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, batch_size_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusResponse, events_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsResponse, statistics_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalsRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalsResponse, withdrawals_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::WithdrawalResponse, withdrawal_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalRequest, withdrawal_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, asset_source_), - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, amount_), - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, expiry_), - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, nonce_), - PROTOBUF_FIELD_OFFSET(::api::v1::ERC20WithdrawalApprovalResponse, signatures_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositsRequest, party_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositsResponse, deposits_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::DepositResponse, deposit_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::NetworkParametersRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::NetworkParametersResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::NetworkParametersResponse, network_parameters_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LiquidityProvisionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::LiquidityProvisionsRequest, market_), - PROTOBUF_FIELD_OFFSET(::api::v1::LiquidityProvisionsRequest, party_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LiquidityProvisionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::LiquidityProvisionsResponse, liquidity_provisions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecResponse, oracle_spec_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleSpecsResponse, oracle_specs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleDataBySpecRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleDataBySpecRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleDataBySpecResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::OracleDataBySpecResponse, oracle_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightResponse, height_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::api::v1::PropagateChainEventRequest)}, - { 8, -1, sizeof(::api::v1::PropagateChainEventResponse)}, - { 14, -1, sizeof(::api::v1::SubmitTransactionRequest)}, - { 21, -1, sizeof(::api::v1::SubmitTransactionResponse)}, - { 27, -1, sizeof(::api::v1::SubmitTransactionV2Request)}, - { 34, -1, sizeof(::api::v1::SubmitTransactionV2Response)}, - { 40, -1, sizeof(::api::v1::PrepareWithdrawRequest)}, - { 46, -1, sizeof(::api::v1::PrepareWithdrawResponse)}, - { 52, -1, sizeof(::api::v1::PrepareSubmitOrderResponse)}, - { 59, -1, sizeof(::api::v1::PrepareCancelOrderResponse)}, - { 65, -1, sizeof(::api::v1::PrepareAmendOrderResponse)}, - { 71, -1, sizeof(::api::v1::PrepareSubmitOrderRequest)}, - { 77, -1, sizeof(::api::v1::PrepareCancelOrderRequest)}, - { 83, -1, sizeof(::api::v1::PrepareAmendOrderRequest)}, - { 89, -1, sizeof(::api::v1::AssetsRequest)}, - { 94, -1, sizeof(::api::v1::AssetsResponse)}, - { 100, -1, sizeof(::api::v1::AssetByIDRequest)}, - { 106, -1, sizeof(::api::v1::AssetByIDResponse)}, - { 112, -1, sizeof(::api::v1::GetNodeSignaturesAggregateRequest)}, - { 118, -1, sizeof(::api::v1::GetNodeSignaturesAggregateResponse)}, - { 124, -1, sizeof(::api::v1::OptionalProposalState)}, - { 130, -1, sizeof(::api::v1::GetProposalsRequest)}, - { 136, -1, sizeof(::api::v1::GetProposalsResponse)}, - { 142, -1, sizeof(::api::v1::GetProposalsByPartyRequest)}, - { 149, -1, sizeof(::api::v1::GetProposalsByPartyResponse)}, - { 155, -1, sizeof(::api::v1::GetVotesByPartyRequest)}, - { 161, -1, sizeof(::api::v1::GetVotesByPartyResponse)}, - { 167, -1, sizeof(::api::v1::GetNewMarketProposalsRequest)}, - { 173, -1, sizeof(::api::v1::GetNewMarketProposalsResponse)}, - { 179, -1, sizeof(::api::v1::GetUpdateMarketProposalsRequest)}, - { 186, -1, sizeof(::api::v1::GetUpdateMarketProposalsResponse)}, - { 192, -1, sizeof(::api::v1::GetNetworkParametersProposalsRequest)}, - { 198, -1, sizeof(::api::v1::GetNetworkParametersProposalsResponse)}, - { 204, -1, sizeof(::api::v1::GetNewAssetProposalsRequest)}, - { 210, -1, sizeof(::api::v1::GetNewAssetProposalsResponse)}, - { 216, -1, sizeof(::api::v1::GetProposalByIDRequest)}, - { 222, -1, sizeof(::api::v1::GetProposalByIDResponse)}, - { 228, -1, sizeof(::api::v1::GetProposalByReferenceRequest)}, - { 234, -1, sizeof(::api::v1::GetProposalByReferenceResponse)}, - { 240, -1, sizeof(::api::v1::ObserveGovernanceRequest)}, - { 245, -1, sizeof(::api::v1::ObserveGovernanceResponse)}, - { 251, -1, sizeof(::api::v1::ObservePartyProposalsRequest)}, - { 257, -1, sizeof(::api::v1::ObservePartyProposalsResponse)}, - { 263, -1, sizeof(::api::v1::ObserveProposalVotesRequest)}, - { 269, -1, sizeof(::api::v1::ObserveProposalVotesResponse)}, - { 275, -1, sizeof(::api::v1::ObservePartyVotesRequest)}, - { 281, -1, sizeof(::api::v1::ObservePartyVotesResponse)}, - { 287, -1, sizeof(::api::v1::MarginLevelsSubscribeRequest)}, - { 294, -1, sizeof(::api::v1::MarginLevelsSubscribeResponse)}, - { 300, -1, sizeof(::api::v1::MarginLevelsRequest)}, - { 307, -1, sizeof(::api::v1::MarginLevelsResponse)}, - { 313, -1, sizeof(::api::v1::MarketsDataSubscribeRequest)}, - { 319, -1, sizeof(::api::v1::MarketsDataSubscribeResponse)}, - { 325, -1, sizeof(::api::v1::MarketDataByIDRequest)}, - { 331, -1, sizeof(::api::v1::MarketDataByIDResponse)}, - { 337, -1, sizeof(::api::v1::MarketsDataRequest)}, - { 342, -1, sizeof(::api::v1::MarketsDataResponse)}, - { 348, -1, sizeof(::api::v1::LastTradeRequest)}, - { 354, -1, sizeof(::api::v1::LastTradeResponse)}, - { 360, -1, sizeof(::api::v1::MarketByIDRequest)}, - { 366, -1, sizeof(::api::v1::MarketByIDResponse)}, - { 372, -1, sizeof(::api::v1::PartyByIDRequest)}, - { 378, -1, sizeof(::api::v1::PartyByIDResponse)}, - { 384, -1, sizeof(::api::v1::PartiesRequest)}, - { 389, -1, sizeof(::api::v1::PartiesResponse)}, - { 395, -1, sizeof(::api::v1::TradesByPartyRequest)}, - { 403, -1, sizeof(::api::v1::TradesByPartyResponse)}, - { 409, -1, sizeof(::api::v1::TradesByOrderRequest)}, - { 415, -1, sizeof(::api::v1::TradesByOrderResponse)}, - { 421, -1, sizeof(::api::v1::AccountsSubscribeRequest)}, - { 430, -1, sizeof(::api::v1::AccountsSubscribeResponse)}, - { 436, -1, sizeof(::api::v1::OrdersSubscribeRequest)}, - { 443, -1, sizeof(::api::v1::TradesSubscribeRequest)}, - { 450, -1, sizeof(::api::v1::CandlesSubscribeRequest)}, - { 457, -1, sizeof(::api::v1::CandlesSubscribeResponse)}, - { 463, -1, sizeof(::api::v1::MarketDepthSubscribeRequest)}, - { 469, -1, sizeof(::api::v1::MarketDepthSubscribeResponse)}, - { 475, -1, sizeof(::api::v1::MarketDepthUpdatesSubscribeRequest)}, - { 481, -1, sizeof(::api::v1::MarketDepthUpdatesSubscribeResponse)}, - { 487, -1, sizeof(::api::v1::PositionsSubscribeRequest)}, - { 494, -1, sizeof(::api::v1::PositionsSubscribeResponse)}, - { 500, -1, sizeof(::api::v1::OrdersByMarketRequest)}, - { 507, -1, sizeof(::api::v1::OrdersByMarketResponse)}, - { 513, -1, sizeof(::api::v1::OrdersByPartyRequest)}, - { 520, -1, sizeof(::api::v1::OrdersByPartyResponse)}, - { 526, -1, sizeof(::api::v1::OrderByMarketAndIDRequest)}, - { 533, -1, sizeof(::api::v1::OrderByMarketAndIDResponse)}, - { 539, -1, sizeof(::api::v1::OrderByReferenceRequest)}, - { 545, -1, sizeof(::api::v1::OrderByReferenceResponse)}, - { 551, -1, sizeof(::api::v1::MarketsRequest)}, - { 556, -1, sizeof(::api::v1::MarketsResponse)}, - { 562, -1, sizeof(::api::v1::CandlesRequest)}, - { 570, -1, sizeof(::api::v1::CandlesResponse)}, - { 576, -1, sizeof(::api::v1::MarketDepthRequest)}, - { 583, -1, sizeof(::api::v1::MarketDepthResponse)}, - { 593, -1, sizeof(::api::v1::TradesByMarketRequest)}, - { 600, -1, sizeof(::api::v1::TradesByMarketResponse)}, - { 606, -1, sizeof(::api::v1::PositionsByPartyRequest)}, - { 613, -1, sizeof(::api::v1::PositionsByPartyResponse)}, - { 619, -1, sizeof(::api::v1::GetVegaTimeRequest)}, - { 624, -1, sizeof(::api::v1::GetVegaTimeResponse)}, - { 630, -1, sizeof(::api::v1::Pagination)}, - { 638, -1, sizeof(::api::v1::OrdersSubscribeResponse)}, - { 644, -1, sizeof(::api::v1::TradesSubscribeResponse)}, - { 650, -1, sizeof(::api::v1::TransferResponsesSubscribeRequest)}, - { 655, -1, sizeof(::api::v1::TransferResponsesSubscribeResponse)}, - { 661, -1, sizeof(::api::v1::PartyAccountsRequest)}, - { 670, -1, sizeof(::api::v1::PartyAccountsResponse)}, - { 676, -1, sizeof(::api::v1::MarketAccountsRequest)}, - { 683, -1, sizeof(::api::v1::MarketAccountsResponse)}, - { 689, -1, sizeof(::api::v1::FeeInfrastructureAccountsRequest)}, - { 695, -1, sizeof(::api::v1::FeeInfrastructureAccountsResponse)}, - { 701, -1, sizeof(::api::v1::PrepareProposalSubmissionRequest)}, - { 707, -1, sizeof(::api::v1::PrepareProposalSubmissionResponse)}, - { 714, -1, sizeof(::api::v1::PrepareVoteSubmissionRequest)}, - { 720, -1, sizeof(::api::v1::PrepareVoteSubmissionResponse)}, - { 727, -1, sizeof(::api::v1::PrepareLiquidityProvisionRequest)}, - { 733, -1, sizeof(::api::v1::PrepareLiquidityProvisionResponse)}, - { 739, -1, sizeof(::api::v1::OrderByIDRequest)}, - { 746, -1, sizeof(::api::v1::OrderByIDResponse)}, - { 752, -1, sizeof(::api::v1::OrderVersionsByIDRequest)}, - { 759, -1, sizeof(::api::v1::OrderVersionsByIDResponse)}, - { 765, -1, sizeof(::api::v1::EstimateFeeRequest)}, - { 771, -1, sizeof(::api::v1::EstimateFeeResponse)}, - { 777, -1, sizeof(::api::v1::EstimateMarginRequest)}, - { 783, -1, sizeof(::api::v1::EstimateMarginResponse)}, - { 789, -1, sizeof(::api::v1::ObserveEventBusRequest)}, - { 798, -1, sizeof(::api::v1::ObserveEventBusResponse)}, - { 804, -1, sizeof(::api::v1::StatisticsRequest)}, - { 809, -1, sizeof(::api::v1::StatisticsResponse)}, - { 815, -1, sizeof(::api::v1::WithdrawalsRequest)}, - { 821, -1, sizeof(::api::v1::WithdrawalsResponse)}, - { 827, -1, sizeof(::api::v1::WithdrawalRequest)}, - { 833, -1, sizeof(::api::v1::WithdrawalResponse)}, - { 839, -1, sizeof(::api::v1::ERC20WithdrawalApprovalRequest)}, - { 845, -1, sizeof(::api::v1::ERC20WithdrawalApprovalResponse)}, - { 855, -1, sizeof(::api::v1::DepositsRequest)}, - { 861, -1, sizeof(::api::v1::DepositsResponse)}, - { 867, -1, sizeof(::api::v1::DepositRequest)}, - { 873, -1, sizeof(::api::v1::DepositResponse)}, - { 879, -1, sizeof(::api::v1::NetworkParametersRequest)}, - { 884, -1, sizeof(::api::v1::NetworkParametersResponse)}, - { 890, -1, sizeof(::api::v1::LiquidityProvisionsRequest)}, - { 897, -1, sizeof(::api::v1::LiquidityProvisionsResponse)}, - { 903, -1, sizeof(::api::v1::OracleSpecRequest)}, - { 909, -1, sizeof(::api::v1::OracleSpecResponse)}, - { 915, -1, sizeof(::api::v1::OracleSpecsRequest)}, - { 920, -1, sizeof(::api::v1::OracleSpecsResponse)}, - { 926, -1, sizeof(::api::v1::OracleDataBySpecRequest)}, - { 932, -1, sizeof(::api::v1::OracleDataBySpecResponse)}, - { 938, -1, sizeof(::api::v1::LastBlockHeightRequest)}, - { 943, -1, sizeof(::api::v1::LastBlockHeightResponse)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::api::v1::_PropagateChainEventRequest_default_instance_), - reinterpret_cast(&::api::v1::_PropagateChainEventResponse_default_instance_), - reinterpret_cast(&::api::v1::_SubmitTransactionRequest_default_instance_), - reinterpret_cast(&::api::v1::_SubmitTransactionResponse_default_instance_), - reinterpret_cast(&::api::v1::_SubmitTransactionV2Request_default_instance_), - reinterpret_cast(&::api::v1::_SubmitTransactionV2Response_default_instance_), - reinterpret_cast(&::api::v1::_PrepareWithdrawRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareWithdrawResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareSubmitOrderResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareCancelOrderResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareAmendOrderResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareSubmitOrderRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareCancelOrderRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareAmendOrderRequest_default_instance_), - reinterpret_cast(&::api::v1::_AssetsRequest_default_instance_), - reinterpret_cast(&::api::v1::_AssetsResponse_default_instance_), - reinterpret_cast(&::api::v1::_AssetByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_AssetByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetNodeSignaturesAggregateRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetNodeSignaturesAggregateResponse_default_instance_), - reinterpret_cast(&::api::v1::_OptionalProposalState_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalsByPartyRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalsByPartyResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetVotesByPartyRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetVotesByPartyResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetNewMarketProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetNewMarketProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetUpdateMarketProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetUpdateMarketProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetNetworkParametersProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetNetworkParametersProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetNewAssetProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetNewAssetProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalByReferenceRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetProposalByReferenceResponse_default_instance_), - reinterpret_cast(&::api::v1::_ObserveGovernanceRequest_default_instance_), - reinterpret_cast(&::api::v1::_ObserveGovernanceResponse_default_instance_), - reinterpret_cast(&::api::v1::_ObservePartyProposalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_ObservePartyProposalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_ObserveProposalVotesRequest_default_instance_), - reinterpret_cast(&::api::v1::_ObserveProposalVotesResponse_default_instance_), - reinterpret_cast(&::api::v1::_ObservePartyVotesRequest_default_instance_), - reinterpret_cast(&::api::v1::_ObservePartyVotesResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarginLevelsSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarginLevelsSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarginLevelsRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarginLevelsResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketsDataSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketsDataSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketDataByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketDataByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketsDataRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketsDataResponse_default_instance_), - reinterpret_cast(&::api::v1::_LastTradeRequest_default_instance_), - reinterpret_cast(&::api::v1::_LastTradeResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_PartyByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_PartyByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_PartiesRequest_default_instance_), - reinterpret_cast(&::api::v1::_PartiesResponse_default_instance_), - reinterpret_cast(&::api::v1::_TradesByPartyRequest_default_instance_), - reinterpret_cast(&::api::v1::_TradesByPartyResponse_default_instance_), - reinterpret_cast(&::api::v1::_TradesByOrderRequest_default_instance_), - reinterpret_cast(&::api::v1::_TradesByOrderResponse_default_instance_), - reinterpret_cast(&::api::v1::_AccountsSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_AccountsSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrdersSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_TradesSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_CandlesSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_CandlesSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthUpdatesSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthUpdatesSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_PositionsSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_PositionsSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrdersByMarketRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrdersByMarketResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrdersByPartyRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrdersByPartyResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrderByMarketAndIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrderByMarketAndIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrderByReferenceRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrderByReferenceResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketsRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketsResponse_default_instance_), - reinterpret_cast(&::api::v1::_CandlesRequest_default_instance_), - reinterpret_cast(&::api::v1::_CandlesResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketDepthResponse_default_instance_), - reinterpret_cast(&::api::v1::_TradesByMarketRequest_default_instance_), - reinterpret_cast(&::api::v1::_TradesByMarketResponse_default_instance_), - reinterpret_cast(&::api::v1::_PositionsByPartyRequest_default_instance_), - reinterpret_cast(&::api::v1::_PositionsByPartyResponse_default_instance_), - reinterpret_cast(&::api::v1::_GetVegaTimeRequest_default_instance_), - reinterpret_cast(&::api::v1::_GetVegaTimeResponse_default_instance_), - reinterpret_cast(&::api::v1::_Pagination_default_instance_), - reinterpret_cast(&::api::v1::_OrdersSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_TradesSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_TransferResponsesSubscribeRequest_default_instance_), - reinterpret_cast(&::api::v1::_TransferResponsesSubscribeResponse_default_instance_), - reinterpret_cast(&::api::v1::_PartyAccountsRequest_default_instance_), - reinterpret_cast(&::api::v1::_PartyAccountsResponse_default_instance_), - reinterpret_cast(&::api::v1::_MarketAccountsRequest_default_instance_), - reinterpret_cast(&::api::v1::_MarketAccountsResponse_default_instance_), - reinterpret_cast(&::api::v1::_FeeInfrastructureAccountsRequest_default_instance_), - reinterpret_cast(&::api::v1::_FeeInfrastructureAccountsResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareProposalSubmissionRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareProposalSubmissionResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareVoteSubmissionRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareVoteSubmissionResponse_default_instance_), - reinterpret_cast(&::api::v1::_PrepareLiquidityProvisionRequest_default_instance_), - reinterpret_cast(&::api::v1::_PrepareLiquidityProvisionResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrderByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrderByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_OrderVersionsByIDRequest_default_instance_), - reinterpret_cast(&::api::v1::_OrderVersionsByIDResponse_default_instance_), - reinterpret_cast(&::api::v1::_EstimateFeeRequest_default_instance_), - reinterpret_cast(&::api::v1::_EstimateFeeResponse_default_instance_), - reinterpret_cast(&::api::v1::_EstimateMarginRequest_default_instance_), - reinterpret_cast(&::api::v1::_EstimateMarginResponse_default_instance_), - reinterpret_cast(&::api::v1::_ObserveEventBusRequest_default_instance_), - reinterpret_cast(&::api::v1::_ObserveEventBusResponse_default_instance_), - reinterpret_cast(&::api::v1::_StatisticsRequest_default_instance_), - reinterpret_cast(&::api::v1::_StatisticsResponse_default_instance_), - reinterpret_cast(&::api::v1::_WithdrawalsRequest_default_instance_), - reinterpret_cast(&::api::v1::_WithdrawalsResponse_default_instance_), - reinterpret_cast(&::api::v1::_WithdrawalRequest_default_instance_), - reinterpret_cast(&::api::v1::_WithdrawalResponse_default_instance_), - reinterpret_cast(&::api::v1::_ERC20WithdrawalApprovalRequest_default_instance_), - reinterpret_cast(&::api::v1::_ERC20WithdrawalApprovalResponse_default_instance_), - reinterpret_cast(&::api::v1::_DepositsRequest_default_instance_), - reinterpret_cast(&::api::v1::_DepositsResponse_default_instance_), - reinterpret_cast(&::api::v1::_DepositRequest_default_instance_), - reinterpret_cast(&::api::v1::_DepositResponse_default_instance_), - reinterpret_cast(&::api::v1::_NetworkParametersRequest_default_instance_), - reinterpret_cast(&::api::v1::_NetworkParametersResponse_default_instance_), - reinterpret_cast(&::api::v1::_LiquidityProvisionsRequest_default_instance_), - reinterpret_cast(&::api::v1::_LiquidityProvisionsResponse_default_instance_), - reinterpret_cast(&::api::v1::_OracleSpecRequest_default_instance_), - reinterpret_cast(&::api::v1::_OracleSpecResponse_default_instance_), - reinterpret_cast(&::api::v1::_OracleSpecsRequest_default_instance_), - reinterpret_cast(&::api::v1::_OracleSpecsResponse_default_instance_), - reinterpret_cast(&::api::v1::_OracleDataBySpecRequest_default_instance_), - reinterpret_cast(&::api::v1::_OracleDataBySpecResponse_default_instance_), - reinterpret_cast(&::api::v1::_LastBlockHeightRequest_default_instance_), - reinterpret_cast(&::api::v1::_LastBlockHeightResponse_default_instance_), -}; - -const char descriptor_table_protodef_api_2ftrading_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021api/trading.proto\022\006api.v1\032\nvega.proto\032" - "\rmarkets.proto\032\020governance.proto\032\014assets" - ".proto\032\026events/v1/events.proto\032\025oracles/" - "v1/spec.proto\032\025oracles/v1/data.proto\032\032co" - "mmands/v1/commands.proto\032\035commands/v1/tr" - "ansaction.proto\032$commands/v1/validator_c" - "ommands.proto\0326github.com/mwitkow/go-pro" - "to-validators/validator.proto\"\203\001\n\032Propag" - "ateChainEventRequest\022.\n\003evt\030\001 \001(\0132\034.vega" - ".commands.v1.ChainEventR\003evt\022\027\n\007pub_key\030" - "\002 \001(\tR\006pubKey\022\034\n\tsignature\030\003 \001(\014R\tsignat" - "ure\"7\n\033PropagateChainEventResponse\022\030\n\007su" - "ccess\030\001 \001(\010R\007success\"\307\001\n\030SubmitTransacti" - "onRequest\022\"\n\002tx\030\001 \001(\0132\022.vega.SignedBundl" - "eR\002tx\0229\n\004type\030\002 \001(\0162%.api.v1.SubmitTrans" - "actionRequest.TypeR\004type\"L\n\004Type\022\024\n\020TYPE" - "_UNSPECIFIED\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_S" - "YNC\020\002\022\017\n\013TYPE_COMMIT\020\003\"5\n\031SubmitTransact" - "ionResponse\022\030\n\007success\030\001 \001(\010R\007success\"\326\001" - "\n\032SubmitTransactionV2Request\022-\n\002tx\030\001 \001(\013" - "2\035.vega.commands.v1.TransactionR\002tx\022;\n\004t" - "ype\030\002 \001(\0162\'.api.v1.SubmitTransactionV2Re" - "quest.TypeR\004type\"L\n\004Type\022\024\n\020TYPE_UNSPECI" - "FIED\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_SYNC\020\002\022\017\n" - "\013TYPE_COMMIT\020\003\"7\n\033SubmitTransactionV2Res" - "ponse\022\030\n\007success\030\001 \001(\010R\007success\"Z\n\026Prepa" - "reWithdrawRequest\022@\n\010withdraw\030\001 \001(\0132$.ve" - "ga.commands.v1.WithdrawSubmissionR\010withd" - "raw\"-\n\027PrepareWithdrawResponse\022\022\n\004blob\030\001" - " \001(\014R\004blob\"M\n\032PrepareSubmitOrderResponse" - "\022\022\n\004blob\030\001 \001(\014R\004blob\022\033\n\tsubmit_id\030\002 \001(\tR" - "\010submitId\"0\n\032PrepareCancelOrderResponse\022" - "\022\n\004blob\030\001 \001(\014R\004blob\"/\n\031PrepareAmendOrder" - "Response\022\022\n\004blob\030\001 \001(\014R\004blob\"^\n\031PrepareS" - "ubmitOrderRequest\022A\n\nsubmission\030\001 \001(\0132!." - "vega.commands.v1.OrderSubmissionR\nsubmis" - "sion\"d\n\031PrepareCancelOrderRequest\022G\n\014can" - "cellation\030\001 \001(\0132#.vega.commands.v1.Order" - "CancellationR\014cancellation\"Z\n\030PrepareAme" - "ndOrderRequest\022>\n\tamendment\030\001 \001(\0132 .vega" - ".commands.v1.OrderAmendmentR\tamendment\"\017" - "\n\rAssetsRequest\"5\n\016AssetsResponse\022#\n\006ass" - "ets\030\001 \003(\0132\013.vega.AssetR\006assets\"*\n\020AssetB" - "yIDRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"6\n\021As" - "setByIDResponse\022!\n\005asset\030\001 \001(\0132\013.vega.As" - "setR\005asset\";\n!GetNodeSignaturesAggregate" - "Request\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"e\n\"GetNo" - "deSignaturesAggregateResponse\022\?\n\nsignatu" - "res\030\001 \003(\0132\037.vega.commands.v1.NodeSignatu" - "reR\nsignatures\"C\n\025OptionalProposalState\022" - "*\n\005value\030\001 \001(\0162\024.vega.Proposal.StateR\005va" - "lue\"\\\n\023GetProposalsRequest\022E\n\017select_in_" - "state\030\001 \001(\0132\035.api.v1.OptionalProposalSta" - "teR\rselectInState\"@\n\024GetProposalsRespons" - "e\022(\n\004data\030\001 \003(\0132\024.vega.GovernanceDataR\004d" - "ata\"\206\001\n\032GetProposalsByPartyRequest\022!\n\010pa" - "rty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\022E\n\017select_" - "in_state\030\002 \001(\0132\035.api.v1.OptionalProposal" - "StateR\rselectInState\"G\n\033GetProposalsByPa" - "rtyResponse\022(\n\004data\030\001 \003(\0132\024.vega.Governa" - "nceDataR\004data\";\n\026GetVotesByPartyRequest\022" - "!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\";\n\027Ge" - "tVotesByPartyResponse\022 \n\005votes\030\001 \003(\0132\n.v" - "ega.VoteR\005votes\"e\n\034GetNewMarketProposals" - "Request\022E\n\017select_in_state\030\001 \001(\0132\035.api.v" - "1.OptionalProposalStateR\rselectInState\"I" - "\n\035GetNewMarketProposalsResponse\022(\n\004data\030" - "\001 \003(\0132\024.vega.GovernanceDataR\004data\"\215\001\n\037Ge" - "tUpdateMarketProposalsRequest\022#\n\tmarket_" - "id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022E\n\017select_in_" - "state\030\002 \001(\0132\035.api.v1.OptionalProposalSta" - "teR\rselectInState\"L\n GetUpdateMarketProp" - "osalsResponse\022(\n\004data\030\001 \003(\0132\024.vega.Gover" - "nanceDataR\004data\"m\n$GetNetworkParametersP" - "roposalsRequest\022E\n\017select_in_state\030\001 \001(\013" - "2\035.api.v1.OptionalProposalStateR\rselectI" - "nState\"Q\n%GetNetworkParametersProposalsR" - "esponse\022(\n\004data\030\001 \003(\0132\024.vega.GovernanceD" - "ataR\004data\"d\n\033GetNewAssetProposalsRequest" - "\022E\n\017select_in_state\030\001 \001(\0132\035.api.v1.Optio" - "nalProposalStateR\rselectInState\"H\n\034GetNe" - "wAssetProposalsResponse\022(\n\004data\030\001 \003(\0132\024." - "vega.GovernanceDataR\004data\"A\n\026GetProposal" - "ByIDRequest\022\'\n\013proposal_id\030\001 \001(\tB\006\342\337\037\002X\001" - "R\nproposalId\"C\n\027GetProposalByIDResponse\022" - "(\n\004data\030\001 \001(\0132\024.vega.GovernanceDataR\004dat" - "a\"E\n\035GetProposalByReferenceRequest\022$\n\tre" - "ference\030\001 \001(\tB\006\342\337\037\002X\001R\treference\"J\n\036GetP" - "roposalByReferenceResponse\022(\n\004data\030\001 \001(\013" - "2\024.vega.GovernanceDataR\004data\"\032\n\030ObserveG" - "overnanceRequest\"E\n\031ObserveGovernanceRes" - "ponse\022(\n\004data\030\001 \001(\0132\024.vega.GovernanceDat" - "aR\004data\"A\n\034ObservePartyProposalsRequest\022" - "!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"I\n\035Ob" - "servePartyProposalsResponse\022(\n\004data\030\001 \001(" - "\0132\024.vega.GovernanceDataR\004data\"F\n\033Observe" - "ProposalVotesRequest\022\'\n\013proposal_id\030\001 \001(" - "\tB\006\342\337\037\002X\001R\nproposalId\">\n\034ObserveProposal" - "VotesResponse\022\036\n\004vote\030\001 \001(\0132\n.vega.VoteR" - "\004vote\"=\n\030ObservePartyVotesRequest\022!\n\010par" - "ty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\";\n\031ObserveP" - "artyVotesResponse\022\036\n\004vote\030\001 \001(\0132\n.vega.V" - "oteR\004vote\"^\n\034MarginLevelsSubscribeReques" - "t\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\022\033\n\t" - "market_id\030\002 \001(\tR\010marketId\"X\n\035MarginLevel" - "sSubscribeResponse\0227\n\rmargin_levels\030\001 \001(" - "\0132\022.vega.MarginLevelsR\014marginLevels\"U\n\023M" - "arginLevelsRequest\022!\n\010party_id\030\001 \001(\tB\006\342\337" - "\037\002X\001R\007partyId\022\033\n\tmarket_id\030\002 \001(\tR\010market" - "Id\"O\n\024MarginLevelsResponse\0227\n\rmargin_lev" - "els\030\001 \003(\0132\022.vega.MarginLevelsR\014marginLev" - "els\":\n\033MarketsDataSubscribeRequest\022\033\n\tma" - "rket_id\030\001 \001(\tR\010marketId\"Q\n\034MarketsDataSu" - "bscribeResponse\0221\n\013market_data\030\001 \001(\0132\020.v" - "ega.MarketDataR\nmarketData\"<\n\025MarketData" - "ByIDRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010" - "marketId\"K\n\026MarketDataByIDResponse\0221\n\013ma" - "rket_data\030\001 \001(\0132\020.vega.MarketDataR\nmarke" - "tData\"\024\n\022MarketsDataRequest\"J\n\023MarketsDa" - "taResponse\0223\n\014markets_data\030\001 \003(\0132\020.vega." - "MarketDataR\013marketsData\"7\n\020LastTradeRequ" - "est\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId" - "\"6\n\021LastTradeResponse\022!\n\005trade\030\001 \001(\0132\013.v" - "ega.TradeR\005trade\"8\n\021MarketByIDRequest\022#\n" - "\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\":\n\022Ma" - "rketByIDResponse\022$\n\006market\030\001 \001(\0132\014.vega." - "MarketR\006market\"5\n\020PartyByIDRequest\022!\n\010pa" - "rty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"6\n\021PartyBy" - "IDResponse\022!\n\005party\030\001 \001(\0132\013.vega.PartyR\005" - "party\"\020\n\016PartiesRequest\"8\n\017PartiesRespon" - "se\022%\n\007parties\030\001 \003(\0132\013.vega.PartyR\007partie" - "s\"\202\001\n\024TradesByPartyRequest\022\031\n\010party_id\030\001" - " \001(\tR\007partyId\022\033\n\tmarket_id\030\002 \001(\tR\010market" - "Id\0222\n\npagination\030\003 \001(\0132\022.api.v1.Paginati" - "onR\npagination\"<\n\025TradesByPartyResponse\022" - "#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trades\"1\n\024" - "TradesByOrderRequest\022\031\n\010order_id\030\001 \001(\tR\007" - "orderId\"<\n\025TradesByOrderResponse\022#\n\006trad" - "es\030\001 \003(\0132\013.vega.TradeR\006trades\"\217\001\n\030Accoun" - "tsSubscribeRequest\022\033\n\tmarket_id\030\001 \001(\tR\010m" - "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005as" - "set\030\003 \001(\tR\005asset\022%\n\004type\030\004 \001(\0162\021.vega.Ac" - "countTypeR\004type\"D\n\031AccountsSubscribeResp" - "onse\022\'\n\007account\030\001 \001(\0132\r.vega.AccountR\007ac" - "count\"P\n\026OrdersSubscribeRequest\022\033\n\tmarke" - "t_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\tR\007" - "partyId\"P\n\026TradesSubscribeRequest\022\033\n\tmar" - "ket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\t" - "R\007partyId\"j\n\027CandlesSubscribeRequest\022#\n\t" - "market_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022*\n\010int" - "erval\030\002 \001(\0162\016.vega.IntervalR\010interval\"@\n" - "\030CandlesSubscribeResponse\022$\n\006candle\030\001 \001(" - "\0132\014.vega.CandleR\006candle\"B\n\033MarketDepthSu" - "bscribeRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X" - "\001R\010marketId\"T\n\034MarketDepthSubscribeRespo" - "nse\0224\n\014market_depth\030\001 \001(\0132\021.vega.MarketD" - "epthR\013marketDepth\"I\n\"MarketDepthUpdatesS" - "ubscribeRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002" - "X\001R\010marketId\"V\n#MarketDepthUpdatesSubscr" - "ibeResponse\022/\n\006update\030\001 \001(\0132\027.vega.Marke" - "tDepthUpdateR\006update\"S\n\031PositionsSubscri" - "beRequest\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\033\n\t" - "market_id\030\002 \001(\tR\010marketId\"H\n\032PositionsSu" - "bscribeResponse\022*\n\010position\030\001 \001(\0132\016.vega" - ".PositionR\010position\"p\n\025OrdersByMarketReq" - "uest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketI" - "d\0222\n\npagination\030\002 \001(\0132\022.api.v1.Paginatio" - "nR\npagination\"=\n\026OrdersByMarketResponse\022" - "#\n\006orders\030\001 \003(\0132\013.vega.OrderR\006orders\"m\n\024" - "OrdersByPartyRequest\022!\n\010party_id\030\001 \001(\tB\006" - "\342\337\037\002X\001R\007partyId\0222\n\npagination\030\002 \001(\0132\022.ap" - "i.v1.PaginationR\npagination\"<\n\025OrdersByP" - "artyResponse\022#\n\006orders\030\001 \003(\0132\013.vega.Orde" - "rR\006orders\"c\n\031OrderByMarketAndIDRequest\022#" - "\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022!\n\010o" - "rder_id\030\002 \001(\tB\006\342\337\037\002X\001R\007orderId\"\?\n\032OrderB" - "yMarketAndIDResponse\022!\n\005order\030\001 \001(\0132\013.ve" - "ga.OrderR\005order\"\?\n\027OrderByReferenceReque" - "st\022$\n\treference\030\001 \001(\tB\006\342\337\037\002X\001R\treference" - "\"=\n\030OrderByReferenceResponse\022!\n\005order\030\001 " - "\001(\0132\013.vega.OrderR\005order\"\020\n\016MarketsReques" - "t\"9\n\017MarketsResponse\022&\n\007markets\030\001 \003(\0132\014." - "vega.MarketR\007markets\"\222\001\n\016CandlesRequest\022" - "#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022/\n\017" - "since_timestamp\030\002 \001(\003B\006\342\337\037\002\020\000R\016sinceTime" - "stamp\022*\n\010interval\030\003 \001(\0162\016.vega.IntervalR" - "\010interval\"9\n\017CandlesResponse\022&\n\007candles\030" - "\001 \003(\0132\014.vega.CandleR\007candles\"V\n\022MarketDe" - "pthRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010m" - "arketId\022\033\n\tmax_depth\030\002 \001(\004R\010maxDepth\"\321\001\n" - "\023MarketDepthResponse\022\033\n\tmarket_id\030\001 \001(\tR" - "\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevel" - "R\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR\004s" - "ell\022*\n\nlast_trade\030\004 \001(\0132\013.vega.TradeR\tla" - "stTrade\022\'\n\017sequence_number\030\005 \001(\004R\016sequen" - "ceNumber\"p\n\025TradesByMarketRequest\022#\n\tmar" - "ket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\0222\n\npagina" - "tion\030\002 \001(\0132\022.api.v1.PaginationR\npaginati" - "on\"=\n\026TradesByMarketResponse\022#\n\006trades\030\001" - " \003(\0132\013.vega.TradeR\006trades\"Y\n\027PositionsBy" - "PartyRequest\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007" - "partyId\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\"H\n\030" - "PositionsByPartyResponse\022,\n\tpositions\030\001 " - "\003(\0132\016.vega.PositionR\tpositions\"\024\n\022GetVeg" - "aTimeRequest\"3\n\023GetVegaTimeResponse\022\034\n\tt" - "imestamp\030\001 \001(\003R\ttimestamp\"V\n\nPagination\022" - "\022\n\004skip\030\001 \001(\004R\004skip\022\024\n\005limit\030\002 \001(\004R\005limi" - "t\022\036\n\ndescending\030\003 \001(\010R\ndescending\">\n\027Ord" - "ersSubscribeResponse\022#\n\006orders\030\001 \003(\0132\013.v" - "ega.OrderR\006orders\">\n\027TradesSubscribeResp" - "onse\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" - "s\"#\n!TransferResponsesSubscribeRequest\"X" - "\n\"TransferResponsesSubscribeResponse\0222\n\010" - "response\030\001 \001(\0132\026.vega.TransferResponseR\010" - "response\"\213\001\n\024PartyAccountsRequest\022\031\n\010par" - "ty_id\030\001 \001(\tR\007partyId\022\033\n\tmarket_id\030\002 \001(\tR" - "\010marketId\022%\n\004type\030\003 \001(\0162\021.vega.AccountTy" - "peR\004type\022\024\n\005asset\030\004 \001(\tR\005asset\"B\n\025PartyA" - "ccountsResponse\022)\n\010accounts\030\001 \003(\0132\r.vega" - ".AccountR\010accounts\"J\n\025MarketAccountsRequ" - "est\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\024\n\005asse" - "t\030\002 \001(\tR\005asset\"C\n\026MarketAccountsResponse" - "\022)\n\010accounts\030\001 \003(\0132\r.vega.AccountR\010accou" - "nts\"8\n FeeInfrastructureAccountsRequest\022" - "\024\n\005asset\030\001 \001(\tR\005asset\"N\n!FeeInfrastructu" - "reAccountsResponse\022)\n\010accounts\030\001 \003(\0132\r.v" - "ega.AccountR\010accounts\"h\n PrepareProposal" - "SubmissionRequest\022D\n\nsubmission\030\001 \001(\0132$." - "vega.commands.v1.ProposalSubmissionR\nsub" - "mission\"}\n!PrepareProposalSubmissionResp" - "onse\022\022\n\004blob\030\001 \001(\014R\004blob\022D\n\nsubmission\030\002" - " \001(\0132$.vega.commands.v1.ProposalSubmissi" - "onR\nsubmission\"h\n\034PrepareVoteSubmissionR" - "equest\022H\n\nsubmission\030\001 \001(\0132 .vega.comman" - "ds.v1.VoteSubmissionB\006\342\337\037\002 \001R\nsubmission" - "\"u\n\035PrepareVoteSubmissionResponse\022\022\n\004blo" - "b\030\001 \001(\014R\004blob\022@\n\nsubmission\030\002 \001(\0132 .vega" - ".commands.v1.VoteSubmissionR\nsubmission\"" - "z\n PrepareLiquidityProvisionRequest\022V\n\ns" - "ubmission\030\001 \001(\0132..vega.commands.v1.Liqui" - "dityProvisionSubmissionB\006\342\337\037\002 \001R\nsubmiss" - "ion\"7\n!PrepareLiquidityProvisionResponse" - "\022\022\n\004blob\030\001 \001(\014R\004blob\"O\n\020OrderByIDRequest" - "\022!\n\010order_id\030\001 \001(\tB\006\342\337\037\002 \001R\007orderId\022\030\n\007v" - "ersion\030\002 \001(\004R\007version\"6\n\021OrderByIDRespon" - "se\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order\"q\n" - "\030OrderVersionsByIDRequest\022!\n\010order_id\030\001 " - "\001(\tB\006\342\337\037\002 \001R\007orderId\0222\n\npagination\030\002 \001(\013" - "2\022.api.v1.PaginationR\npagination\"@\n\031Orde" - "rVersionsByIDResponse\022#\n\006orders\030\001 \003(\0132\013." - "vega.OrderR\006orders\"7\n\022EstimateFeeRequest" - "\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order\"2\n\023E" - "stimateFeeResponse\022\033\n\003fee\030\002 \001(\0132\t.vega.F" - "eeR\003fee\":\n\025EstimateMarginRequest\022!\n\005orde" - "r\030\001 \001(\0132\013.vega.OrderR\005order\"Q\n\026EstimateM" - "arginResponse\0227\n\rmargin_levels\030\002 \001(\0132\022.v" - "ega.MarginLevelsR\014marginLevels\"\241\001\n\026Obser" - "veEventBusRequest\0220\n\004type\030\001 \003(\0162\034.vega.e" - "vents.v1.BusEventTypeR\004type\022\033\n\tmarket_id" - "\030\002 \001(\tR\010marketId\022\031\n\010party_id\030\003 \001(\tR\007part" - "yId\022\035\n\nbatch_size\030\004 \001(\003R\tbatchSize\"K\n\027Ob" - "serveEventBusResponse\0220\n\006events\030\001 \003(\0132\030." - "vega.events.v1.BusEventR\006events\"\023\n\021Stati" - "sticsRequest\"F\n\022StatisticsResponse\0220\n\nst" - "atistics\030\001 \001(\0132\020.vega.StatisticsR\nstatis" - "tics\"7\n\022WithdrawalsRequest\022!\n\010party_id\030\001" - " \001(\tB\006\342\337\037\002X\001R\007partyId\"I\n\023WithdrawalsResp" - "onse\0222\n\013withdrawals\030\001 \003(\0132\020.vega.Withdra" - "walR\013withdrawals\"+\n\021WithdrawalRequest\022\026\n" - "\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"F\n\022WithdrawalRespo" - "nse\0220\n\nwithdrawal\030\001 \001(\0132\020.vega.Withdrawa" - "lR\nwithdrawal\"M\n\036ERC20WithdrawalApproval" - "Request\022+\n\rwithdrawal_id\030\001 \001(\tB\006\342\337\037\002X\001R\014" - "withdrawalId\"\252\001\n\037ERC20WithdrawalApproval" - "Response\022!\n\014asset_source\030\001 \001(\tR\013assetSou" - "rce\022\026\n\006amount\030\002 \001(\tR\006amount\022\026\n\006expiry\030\003 " - "\001(\003R\006expiry\022\024\n\005nonce\030\004 \001(\tR\005nonce\022\036\n\nsig" - "natures\030\005 \001(\tR\nsignatures\"4\n\017DepositsReq" - "uest\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"" - "=\n\020DepositsResponse\022)\n\010deposits\030\001 \003(\0132\r." - "vega.DepositR\010deposits\"(\n\016DepositRequest" - "\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\":\n\017DepositRespo" - "nse\022\'\n\007deposit\030\001 \001(\0132\r.vega.DepositR\007dep" - "osit\"\032\n\030NetworkParametersRequest\"b\n\031Netw" - "orkParametersResponse\022E\n\022network_paramet" - "ers\030\001 \003(\0132\026.vega.NetworkParameterR\021netwo" - "rkParameters\"J\n\032LiquidityProvisionsReque" - "st\022\026\n\006market\030\001 \001(\tR\006market\022\024\n\005party\030\002 \001(" - "\tR\005party\"j\n\033LiquidityProvisionsResponse\022" - "K\n\024liquidity_provisions\030\001 \003(\0132\030.vega.Liq" - "uidityProvisionR\023liquidityProvisions\"+\n\021" - "OracleSpecRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002i" - "d\"M\n\022OracleSpecResponse\0227\n\013oracle_spec\030\001" - " \001(\0132\026.oracles.v1.OracleSpecR\noracleSpec" - "\"\024\n\022OracleSpecsRequest\"P\n\023OracleSpecsRes" - "ponse\0229\n\014oracle_specs\030\001 \003(\0132\026.oracles.v1" - ".OracleSpecR\013oracleSpecs\"1\n\027OracleDataBy" - "SpecRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"S\n\030O" - "racleDataBySpecResponse\0227\n\013oracle_data\030\001" - " \003(\0132\026.oracles.v1.OracleDataR\noracleData" - "\"\030\n\026LastBlockHeightRequest\"1\n\027LastBlockH" - "eightResponse\022\026\n\006height\030\001 \001(\004R\006height2\334\007" - "\n\016TradingService\022[\n\022PrepareSubmitOrder\022!" - ".api.v1.PrepareSubmitOrderRequest\032\".api." - "v1.PrepareSubmitOrderResponse\022[\n\022Prepare" - "CancelOrder\022!.api.v1.PrepareCancelOrderR" - "equest\032\".api.v1.PrepareCancelOrderRespon" - "se\022X\n\021PrepareAmendOrder\022 .api.v1.Prepare" - "AmendOrderRequest\032!.api.v1.PrepareAmendO" - "rderResponse\022R\n\017PrepareWithdraw\022\036.api.v1" - ".PrepareWithdrawRequest\032\037.api.v1.Prepare" - "WithdrawResponse\022X\n\021SubmitTransaction\022 ." - "api.v1.SubmitTransactionRequest\032!.api.v1" - ".SubmitTransactionResponse\022^\n\023SubmitTran" - "sactionV2\022\".api.v1.SubmitTransactionV2Re" - "quest\032#.api.v1.SubmitTransactionV2Respon" - "se\022p\n\031PrepareProposalSubmission\022(.api.v1" - ".PrepareProposalSubmissionRequest\032).api." - "v1.PrepareProposalSubmissionResponse\022d\n\025" - "PrepareVoteSubmission\022$.api.v1.PrepareVo" - "teSubmissionRequest\032%.api.v1.PrepareVote" - "SubmissionResponse\022^\n\023PropagateChainEven" - "t\022\".api.v1.PropagateChainEventRequest\032#." - "api.v1.PropagateChainEventResponse\022p\n\031Pr" - "epareLiquidityProvision\022(.api.v1.Prepare" - "LiquidityProvisionRequest\032).api.v1.Prepa" - "reLiquidityProvisionResponse2\257+\n\022Trading" - "DataService\022O\n\016MarketAccounts\022\035.api.v1.M" - "arketAccountsRequest\032\036.api.v1.MarketAcco" - "untsResponse\022L\n\rPartyAccounts\022\034.api.v1.P" - "artyAccountsRequest\032\035.api.v1.PartyAccoun" - "tsResponse\022p\n\031FeeInfrastructureAccounts\022" - "(.api.v1.FeeInfrastructureAccountsReques" - "t\032).api.v1.FeeInfrastructureAccountsResp" - "onse\022:\n\007Candles\022\026.api.v1.CandlesRequest\032" - "\027.api.v1.CandlesResponse\022O\n\016MarketDataBy" - "ID\022\035.api.v1.MarketDataByIDRequest\032\036.api." - "v1.MarketDataByIDResponse\022F\n\013MarketsData" - "\022\032.api.v1.MarketsDataRequest\032\033.api.v1.Ma" - "rketsDataResponse\022C\n\nMarketByID\022\031.api.v1" - ".MarketByIDRequest\032\032.api.v1.MarketByIDRe" - "sponse\022F\n\013MarketDepth\022\032.api.v1.MarketDep" - "thRequest\032\033.api.v1.MarketDepthResponse\022:" - "\n\007Markets\022\026.api.v1.MarketsRequest\032\027.api." - "v1.MarketsResponse\022[\n\022OrderByMarketAndID" - "\022!.api.v1.OrderByMarketAndIDRequest\032\".ap" - "i.v1.OrderByMarketAndIDResponse\022U\n\020Order" - "ByReference\022\037.api.v1.OrderByReferenceReq" - "uest\032 .api.v1.OrderByReferenceResponse\022O" - "\n\016OrdersByMarket\022\035.api.v1.OrdersByMarket" - "Request\032\036.api.v1.OrdersByMarketResponse\022" - "L\n\rOrdersByParty\022\034.api.v1.OrdersByPartyR" - "equest\032\035.api.v1.OrdersByPartyResponse\022@\n" - "\tOrderByID\022\030.api.v1.OrderByIDRequest\032\031.a" - "pi.v1.OrderByIDResponse\022X\n\021OrderVersions" - "ByID\022 .api.v1.OrderVersionsByIDRequest\032!" - ".api.v1.OrderVersionsByIDResponse\022I\n\014Mar" - "ginLevels\022\033.api.v1.MarginLevelsRequest\032\034" - ".api.v1.MarginLevelsResponse\022:\n\007Parties\022" - "\026.api.v1.PartiesRequest\032\027.api.v1.Parties" - "Response\022@\n\tPartyByID\022\030.api.v1.PartyByID" - "Request\032\031.api.v1.PartyByIDResponse\022U\n\020Po" - "sitionsByParty\022\037.api.v1.PositionsByParty" - "Request\032 .api.v1.PositionsByPartyRespons" - "e\022@\n\tLastTrade\022\030.api.v1.LastTradeRequest" - "\032\031.api.v1.LastTradeResponse\022O\n\016TradesByM" - "arket\022\035.api.v1.TradesByMarketRequest\032\036.a" - "pi.v1.TradesByMarketResponse\022L\n\rTradesBy" - "Order\022\034.api.v1.TradesByOrderRequest\032\035.ap" - "i.v1.TradesByOrderResponse\022L\n\rTradesByPa" - "rty\022\034.api.v1.TradesByPartyRequest\032\035.api." - "v1.TradesByPartyResponse\022I\n\014GetProposals" - "\022\033.api.v1.GetProposalsRequest\032\034.api.v1.G" - "etProposalsResponse\022^\n\023GetProposalsByPar" - "ty\022\".api.v1.GetProposalsByPartyRequest\032#" - ".api.v1.GetProposalsByPartyResponse\022R\n\017G" - "etVotesByParty\022\036.api.v1.GetVotesByPartyR" - "equest\032\037.api.v1.GetVotesByPartyResponse\022" - "d\n\025GetNewMarketProposals\022$.api.v1.GetNew" - "MarketProposalsRequest\032%.api.v1.GetNewMa" - "rketProposalsResponse\022m\n\030GetUpdateMarket" - "Proposals\022\'.api.v1.GetUpdateMarketPropos" - "alsRequest\032(.api.v1.GetUpdateMarketPropo" - "salsResponse\022|\n\035GetNetworkParametersProp" - "osals\022,.api.v1.GetNetworkParametersPropo" - "salsRequest\032-.api.v1.GetNetworkParameter" - "sProposalsResponse\022a\n\024GetNewAssetProposa" - "ls\022#.api.v1.GetNewAssetProposalsRequest\032" - "$.api.v1.GetNewAssetProposalsResponse\022R\n" - "\017GetProposalByID\022\036.api.v1.GetProposalByI" - "DRequest\032\037.api.v1.GetProposalByIDRespons" - "e\022g\n\026GetProposalByReference\022%.api.v1.Get" - "ProposalByReferenceRequest\032&.api.v1.GetP" - "roposalByReferenceResponse\022Z\n\021ObserveGov" - "ernance\022 .api.v1.ObserveGovernanceReques" - "t\032!.api.v1.ObserveGovernanceResponse0\001\022f" - "\n\025ObservePartyProposals\022$.api.v1.Observe" - "PartyProposalsRequest\032%.api.v1.ObservePa" - "rtyProposalsResponse0\001\022Z\n\021ObservePartyVo" - "tes\022 .api.v1.ObservePartyVotesRequest\032!." - "api.v1.ObservePartyVotesResponse0\001\022c\n\024Ob" - "serveProposalVotes\022#.api.v1.ObservePropo" - "salVotesRequest\032$.api.v1.ObserveProposal" - "VotesResponse0\001\022V\n\017ObserveEventBus\022\036.api" - ".v1.ObserveEventBusRequest\032\037.api.v1.Obse" - "rveEventBusResponse(\0010\001\022C\n\nStatistics\022\031." - "api.v1.StatisticsRequest\032\032.api.v1.Statis" - "ticsResponse\022R\n\017LastBlockHeight\022\036.api.v1" - ".LastBlockHeightRequest\032\037.api.v1.LastBlo" - "ckHeightResponse\022F\n\013GetVegaTime\022\032.api.v1" - ".GetVegaTimeRequest\032\033.api.v1.GetVegaTime" - "Response\022Z\n\021AccountsSubscribe\022 .api.v1.A" - "ccountsSubscribeRequest\032!.api.v1.Account" - "sSubscribeResponse0\001\022W\n\020CandlesSubscribe" - "\022\037.api.v1.CandlesSubscribeRequest\032 .api." - "v1.CandlesSubscribeResponse0\001\022f\n\025MarginL" - "evelsSubscribe\022$.api.v1.MarginLevelsSubs" - "cribeRequest\032%.api.v1.MarginLevelsSubscr" - "ibeResponse0\001\022c\n\024MarketDepthSubscribe\022#." - "api.v1.MarketDepthSubscribeRequest\032$.api" - ".v1.MarketDepthSubscribeResponse0\001\022x\n\033Ma" - "rketDepthUpdatesSubscribe\022*.api.v1.Marke" - "tDepthUpdatesSubscribeRequest\032+.api.v1.M" - "arketDepthUpdatesSubscribeResponse0\001\022c\n\024" - "MarketsDataSubscribe\022#.api.v1.MarketsDat" - "aSubscribeRequest\032$.api.v1.MarketsDataSu" - "bscribeResponse0\001\022T\n\017OrdersSubscribe\022\036.a" - "pi.v1.OrdersSubscribeRequest\032\037.api.v1.Or" - "dersSubscribeResponse0\001\022]\n\022PositionsSubs" - "cribe\022!.api.v1.PositionsSubscribeRequest" - "\032\".api.v1.PositionsSubscribeResponse0\001\022T" - "\n\017TradesSubscribe\022\036.api.v1.TradesSubscri" - "beRequest\032\037.api.v1.TradesSubscribeRespon" - "se0\001\022u\n\032TransferResponsesSubscribe\022).api" - ".v1.TransferResponsesSubscribeRequest\032*." - "api.v1.TransferResponsesSubscribeRespons" - "e0\001\022s\n\032GetNodeSignaturesAggregate\022).api." - "v1.GetNodeSignaturesAggregateRequest\032*.a" - "pi.v1.GetNodeSignaturesAggregateResponse" - "\022@\n\tAssetByID\022\030.api.v1.AssetByIDRequest\032" - "\031.api.v1.AssetByIDResponse\0227\n\006Assets\022\025.a" - "pi.v1.AssetsRequest\032\026.api.v1.AssetsRespo" - "nse\022F\n\013EstimateFee\022\032.api.v1.EstimateFeeR" - "equest\032\033.api.v1.EstimateFeeResponse\022O\n\016E" - "stimateMargin\022\035.api.v1.EstimateMarginReq" - "uest\032\036.api.v1.EstimateMarginResponse\022j\n\027" - "ERC20WithdrawalApproval\022&.api.v1.ERC20Wi" - "thdrawalApprovalRequest\032\'.api.v1.ERC20Wi" - "thdrawalApprovalResponse\022C\n\nWithdrawal\022\031" - ".api.v1.WithdrawalRequest\032\032.api.v1.Withd" - "rawalResponse\022F\n\013Withdrawals\022\032.api.v1.Wi" - "thdrawalsRequest\032\033.api.v1.WithdrawalsRes" - "ponse\022:\n\007Deposit\022\026.api.v1.DepositRequest" - "\032\027.api.v1.DepositResponse\022=\n\010Deposits\022\027." - "api.v1.DepositsRequest\032\030.api.v1.Deposits" - "Response\022X\n\021NetworkParameters\022 .api.v1.N" - "etworkParametersRequest\032!.api.v1.Network" - "ParametersResponse\022^\n\023LiquidityProvision" - "s\022\".api.v1.LiquidityProvisionsRequest\032#." - "api.v1.LiquidityProvisionsResponse\022C\n\nOr" - "acleSpec\022\031.api.v1.OracleSpecRequest\032\032.ap" - "i.v1.OracleSpecResponse\022F\n\013OracleSpecs\022\032" - ".api.v1.OracleSpecsRequest\032\033.api.v1.Orac" - "leSpecsResponse\022U\n\020OracleDataBySpec\022\037.ap" - "i.v1.OracleDataBySpecRequest\032 .api.v1.Or" - "acleDataBySpecResponseB\?\n\030io.vegaprotoco" - "l.vega.apiZ#code.vegaprotocol.io/vega/pr" - "oto/apib\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_api_2ftrading_2eproto_deps[11] = { - &::descriptor_table_assets_2eproto, - &::descriptor_table_commands_2fv1_2fcommands_2eproto, - &::descriptor_table_commands_2fv1_2ftransaction_2eproto, - &::descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto, - &::descriptor_table_events_2fv1_2fevents_2eproto, - &::descriptor_table_github_2ecom_2fmwitkow_2fgo_2dproto_2dvalidators_2fvalidator_2eproto, - &::descriptor_table_governance_2eproto, - &::descriptor_table_markets_2eproto, - &::descriptor_table_oracles_2fv1_2fdata_2eproto, - &::descriptor_table_oracles_2fv1_2fspec_2eproto, - &::descriptor_table_vega_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_api_2ftrading_2eproto_sccs[152] = { - &scc_info_AccountsSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_AccountsSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_AssetByIDRequest_api_2ftrading_2eproto.base, - &scc_info_AssetByIDResponse_api_2ftrading_2eproto.base, - &scc_info_AssetsRequest_api_2ftrading_2eproto.base, - &scc_info_AssetsResponse_api_2ftrading_2eproto.base, - &scc_info_CandlesRequest_api_2ftrading_2eproto.base, - &scc_info_CandlesResponse_api_2ftrading_2eproto.base, - &scc_info_CandlesSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_CandlesSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_DepositRequest_api_2ftrading_2eproto.base, - &scc_info_DepositResponse_api_2ftrading_2eproto.base, - &scc_info_DepositsRequest_api_2ftrading_2eproto.base, - &scc_info_DepositsResponse_api_2ftrading_2eproto.base, - &scc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto.base, - &scc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto.base, - &scc_info_EstimateFeeRequest_api_2ftrading_2eproto.base, - &scc_info_EstimateFeeResponse_api_2ftrading_2eproto.base, - &scc_info_EstimateMarginRequest_api_2ftrading_2eproto.base, - &scc_info_EstimateMarginResponse_api_2ftrading_2eproto.base, - &scc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto.base, - &scc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto.base, - &scc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto.base, - &scc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto.base, - &scc_info_GetProposalByIDRequest_api_2ftrading_2eproto.base, - &scc_info_GetProposalByIDResponse_api_2ftrading_2eproto.base, - &scc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto.base, - &scc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto.base, - &scc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto.base, - &scc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto.base, - &scc_info_GetProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_GetProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_GetVegaTimeRequest_api_2ftrading_2eproto.base, - &scc_info_GetVegaTimeResponse_api_2ftrading_2eproto.base, - &scc_info_GetVotesByPartyRequest_api_2ftrading_2eproto.base, - &scc_info_GetVotesByPartyResponse_api_2ftrading_2eproto.base, - &scc_info_LastBlockHeightRequest_api_2ftrading_2eproto.base, - &scc_info_LastBlockHeightResponse_api_2ftrading_2eproto.base, - &scc_info_LastTradeRequest_api_2ftrading_2eproto.base, - &scc_info_LastTradeResponse_api_2ftrading_2eproto.base, - &scc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto.base, - &scc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto.base, - &scc_info_MarginLevelsRequest_api_2ftrading_2eproto.base, - &scc_info_MarginLevelsResponse_api_2ftrading_2eproto.base, - &scc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_MarketAccountsRequest_api_2ftrading_2eproto.base, - &scc_info_MarketAccountsResponse_api_2ftrading_2eproto.base, - &scc_info_MarketByIDRequest_api_2ftrading_2eproto.base, - &scc_info_MarketByIDResponse_api_2ftrading_2eproto.base, - &scc_info_MarketDataByIDRequest_api_2ftrading_2eproto.base, - &scc_info_MarketDataByIDResponse_api_2ftrading_2eproto.base, - &scc_info_MarketDepthRequest_api_2ftrading_2eproto.base, - &scc_info_MarketDepthResponse_api_2ftrading_2eproto.base, - &scc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_MarketsDataRequest_api_2ftrading_2eproto.base, - &scc_info_MarketsDataResponse_api_2ftrading_2eproto.base, - &scc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_MarketsRequest_api_2ftrading_2eproto.base, - &scc_info_MarketsResponse_api_2ftrading_2eproto.base, - &scc_info_NetworkParametersRequest_api_2ftrading_2eproto.base, - &scc_info_NetworkParametersResponse_api_2ftrading_2eproto.base, - &scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base, - &scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base, - &scc_info_ObserveGovernanceRequest_api_2ftrading_2eproto.base, - &scc_info_ObserveGovernanceResponse_api_2ftrading_2eproto.base, - &scc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto.base, - &scc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto.base, - &scc_info_ObservePartyVotesRequest_api_2ftrading_2eproto.base, - &scc_info_ObservePartyVotesResponse_api_2ftrading_2eproto.base, - &scc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto.base, - &scc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto.base, - &scc_info_OptionalProposalState_api_2ftrading_2eproto.base, - &scc_info_OracleDataBySpecRequest_api_2ftrading_2eproto.base, - &scc_info_OracleDataBySpecResponse_api_2ftrading_2eproto.base, - &scc_info_OracleSpecRequest_api_2ftrading_2eproto.base, - &scc_info_OracleSpecResponse_api_2ftrading_2eproto.base, - &scc_info_OracleSpecsRequest_api_2ftrading_2eproto.base, - &scc_info_OracleSpecsResponse_api_2ftrading_2eproto.base, - &scc_info_OrderByIDRequest_api_2ftrading_2eproto.base, - &scc_info_OrderByIDResponse_api_2ftrading_2eproto.base, - &scc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto.base, - &scc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto.base, - &scc_info_OrderByReferenceRequest_api_2ftrading_2eproto.base, - &scc_info_OrderByReferenceResponse_api_2ftrading_2eproto.base, - &scc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto.base, - &scc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto.base, - &scc_info_OrdersByMarketRequest_api_2ftrading_2eproto.base, - &scc_info_OrdersByMarketResponse_api_2ftrading_2eproto.base, - &scc_info_OrdersByPartyRequest_api_2ftrading_2eproto.base, - &scc_info_OrdersByPartyResponse_api_2ftrading_2eproto.base, - &scc_info_OrdersSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_OrdersSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_Pagination_api_2ftrading_2eproto.base, - &scc_info_PartiesRequest_api_2ftrading_2eproto.base, - &scc_info_PartiesResponse_api_2ftrading_2eproto.base, - &scc_info_PartyAccountsRequest_api_2ftrading_2eproto.base, - &scc_info_PartyAccountsResponse_api_2ftrading_2eproto.base, - &scc_info_PartyByIDRequest_api_2ftrading_2eproto.base, - &scc_info_PartyByIDResponse_api_2ftrading_2eproto.base, - &scc_info_PositionsByPartyRequest_api_2ftrading_2eproto.base, - &scc_info_PositionsByPartyResponse_api_2ftrading_2eproto.base, - &scc_info_PositionsSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_PositionsSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto.base, - &scc_info_PrepareWithdrawRequest_api_2ftrading_2eproto.base, - &scc_info_PrepareWithdrawResponse_api_2ftrading_2eproto.base, - &scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base, - &scc_info_PropagateChainEventResponse_api_2ftrading_2eproto.base, - &scc_info_StatisticsRequest_api_2ftrading_2eproto.base, - &scc_info_StatisticsResponse_api_2ftrading_2eproto.base, - &scc_info_SubmitTransactionRequest_api_2ftrading_2eproto.base, - &scc_info_SubmitTransactionResponse_api_2ftrading_2eproto.base, - &scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base, - &scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto.base, - &scc_info_TradesByMarketRequest_api_2ftrading_2eproto.base, - &scc_info_TradesByMarketResponse_api_2ftrading_2eproto.base, - &scc_info_TradesByOrderRequest_api_2ftrading_2eproto.base, - &scc_info_TradesByOrderResponse_api_2ftrading_2eproto.base, - &scc_info_TradesByPartyRequest_api_2ftrading_2eproto.base, - &scc_info_TradesByPartyResponse_api_2ftrading_2eproto.base, - &scc_info_TradesSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_TradesSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_TransferResponsesSubscribeRequest_api_2ftrading_2eproto.base, - &scc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto.base, - &scc_info_WithdrawalRequest_api_2ftrading_2eproto.base, - &scc_info_WithdrawalResponse_api_2ftrading_2eproto.base, - &scc_info_WithdrawalsRequest_api_2ftrading_2eproto.base, - &scc_info_WithdrawalsResponse_api_2ftrading_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_api_2ftrading_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_api_2ftrading_2eproto = { - false, false, descriptor_table_protodef_api_2ftrading_2eproto, "api/trading.proto", 18695, - &descriptor_table_api_2ftrading_2eproto_once, descriptor_table_api_2ftrading_2eproto_sccs, descriptor_table_api_2ftrading_2eproto_deps, 152, 11, - schemas, file_default_instances, TableStruct_api_2ftrading_2eproto::offsets, - file_level_metadata_api_2ftrading_2eproto, 152, file_level_enum_descriptors_api_2ftrading_2eproto, file_level_service_descriptors_api_2ftrading_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_api_2ftrading_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_api_2ftrading_2eproto)), true); -namespace api { -namespace v1 { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SubmitTransactionRequest_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_api_2ftrading_2eproto); - return file_level_enum_descriptors_api_2ftrading_2eproto[0]; -} -bool SubmitTransactionRequest_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::TYPE_UNSPECIFIED; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::TYPE_ASYNC; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::TYPE_SYNC; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::TYPE_COMMIT; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::Type_MIN; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest::Type_MAX; -constexpr int SubmitTransactionRequest::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SubmitTransactionV2Request_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_api_2ftrading_2eproto); - return file_level_enum_descriptors_api_2ftrading_2eproto[1]; -} -bool SubmitTransactionV2Request_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_UNSPECIFIED; -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_ASYNC; -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_SYNC; -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_COMMIT; -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::Type_MIN; -constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::Type_MAX; -constexpr int SubmitTransactionV2Request::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) - -// =================================================================== - -class PropagateChainEventRequest::_Internal { - public: - static const ::vega::commands::v1::ChainEvent& evt(const PropagateChainEventRequest* msg); -}; - -const ::vega::commands::v1::ChainEvent& -PropagateChainEventRequest::_Internal::evt(const PropagateChainEventRequest* msg) { - return *msg->evt_; -} -void PropagateChainEventRequest::clear_evt() { - if (GetArena() == nullptr && evt_ != nullptr) { - delete evt_; - } - evt_ = nullptr; -} -PropagateChainEventRequest::PropagateChainEventRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PropagateChainEventRequest) -} -PropagateChainEventRequest::PropagateChainEventRequest(const PropagateChainEventRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_pub_key().empty()) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pub_key(), - GetArena()); - } - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_signature().empty()) { - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signature(), - GetArena()); - } - if (from._internal_has_evt()) { - evt_ = new ::vega::commands::v1::ChainEvent(*from.evt_); - } else { - evt_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PropagateChainEventRequest) -} - -void PropagateChainEventRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - evt_ = nullptr; -} - -PropagateChainEventRequest::~PropagateChainEventRequest() { - // @@protoc_insertion_point(destructor:api.v1.PropagateChainEventRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PropagateChainEventRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete evt_; -} - -void PropagateChainEventRequest::ArenaDtor(void* object) { - PropagateChainEventRequest* _this = reinterpret_cast< PropagateChainEventRequest* >(object); - (void)_this; -} -void PropagateChainEventRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PropagateChainEventRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PropagateChainEventRequest& PropagateChainEventRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PropagateChainEventRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PropagateChainEventRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - pub_key_.ClearToEmpty(); - signature_.ClearToEmpty(); - if (GetArena() == nullptr && evt_ != nullptr) { - delete evt_; - } - evt_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PropagateChainEventRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_evt(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string pub_key = 2 [json_name = "pubKey"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_pub_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PropagateChainEventRequest.pub_key")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes signature = 3 [json_name = "signature"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PropagateChainEventRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PropagateChainEventRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - if (this->has_evt()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::evt(this), target, stream); - } - - // string pub_key = 2 [json_name = "pubKey"]; - if (this->pub_key().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_pub_key().data(), static_cast(this->_internal_pub_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PropagateChainEventRequest.pub_key"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_pub_key(), target); - } - - // bytes signature = 3 [json_name = "signature"]; - if (this->signature().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_signature(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PropagateChainEventRequest) - return target; -} - -size_t PropagateChainEventRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PropagateChainEventRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string pub_key = 2 [json_name = "pubKey"]; - if (this->pub_key().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_pub_key()); - } - - // bytes signature = 3 [json_name = "signature"]; - if (this->signature().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signature()); - } - - // .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - if (this->has_evt()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *evt_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PropagateChainEventRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PropagateChainEventRequest) - GOOGLE_DCHECK_NE(&from, this); - const PropagateChainEventRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PropagateChainEventRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PropagateChainEventRequest) - MergeFrom(*source); - } -} - -void PropagateChainEventRequest::MergeFrom(const PropagateChainEventRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PropagateChainEventRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.pub_key().size() > 0) { - _internal_set_pub_key(from._internal_pub_key()); - } - if (from.signature().size() > 0) { - _internal_set_signature(from._internal_signature()); - } - if (from.has_evt()) { - _internal_mutable_evt()->::vega::commands::v1::ChainEvent::MergeFrom(from._internal_evt()); - } -} - -void PropagateChainEventRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PropagateChainEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PropagateChainEventRequest::CopyFrom(const PropagateChainEventRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PropagateChainEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PropagateChainEventRequest::IsInitialized() const { - return true; -} - -void PropagateChainEventRequest::InternalSwap(PropagateChainEventRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - pub_key_.Swap(&other->pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - signature_.Swap(&other->signature_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(evt_, other->evt_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PropagateChainEventRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PropagateChainEventResponse::_Internal { - public: -}; - -PropagateChainEventResponse::PropagateChainEventResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PropagateChainEventResponse) -} -PropagateChainEventResponse::PropagateChainEventResponse(const PropagateChainEventResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; - // @@protoc_insertion_point(copy_constructor:api.v1.PropagateChainEventResponse) -} - -void PropagateChainEventResponse::SharedCtor() { - success_ = false; -} - -PropagateChainEventResponse::~PropagateChainEventResponse() { - // @@protoc_insertion_point(destructor:api.v1.PropagateChainEventResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PropagateChainEventResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void PropagateChainEventResponse::ArenaDtor(void* object) { - PropagateChainEventResponse* _this = reinterpret_cast< PropagateChainEventResponse* >(object); - (void)_this; -} -void PropagateChainEventResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PropagateChainEventResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PropagateChainEventResponse& PropagateChainEventResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PropagateChainEventResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PropagateChainEventResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PropagateChainEventResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - success_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PropagateChainEventResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bool success = 1 [json_name = "success"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PropagateChainEventResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PropagateChainEventResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PropagateChainEventResponse) - return target; -} - -size_t PropagateChainEventResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PropagateChainEventResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PropagateChainEventResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PropagateChainEventResponse) - GOOGLE_DCHECK_NE(&from, this); - const PropagateChainEventResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PropagateChainEventResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PropagateChainEventResponse) - MergeFrom(*source); - } -} - -void PropagateChainEventResponse::MergeFrom(const PropagateChainEventResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PropagateChainEventResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.success() != 0) { - _internal_set_success(from._internal_success()); - } -} - -void PropagateChainEventResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PropagateChainEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PropagateChainEventResponse::CopyFrom(const PropagateChainEventResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PropagateChainEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PropagateChainEventResponse::IsInitialized() const { - return true; -} - -void PropagateChainEventResponse::InternalSwap(PropagateChainEventResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(success_, other->success_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PropagateChainEventResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class SubmitTransactionRequest::_Internal { - public: - static const ::vega::SignedBundle& tx(const SubmitTransactionRequest* msg); -}; - -const ::vega::SignedBundle& -SubmitTransactionRequest::_Internal::tx(const SubmitTransactionRequest* msg) { - return *msg->tx_; -} -void SubmitTransactionRequest::clear_tx() { - if (GetArena() == nullptr && tx_ != nullptr) { - delete tx_; - } - tx_ = nullptr; -} -SubmitTransactionRequest::SubmitTransactionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionRequest) -} -SubmitTransactionRequest::SubmitTransactionRequest(const SubmitTransactionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_tx()) { - tx_ = new ::vega::SignedBundle(*from.tx_); - } else { - tx_ = nullptr; - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionRequest) -} - -void SubmitTransactionRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SubmitTransactionRequest_api_2ftrading_2eproto.base); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&tx_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&tx_)) + sizeof(type_)); -} - -SubmitTransactionRequest::~SubmitTransactionRequest() { - // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void SubmitTransactionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete tx_; -} - -void SubmitTransactionRequest::ArenaDtor(void* object) { - SubmitTransactionRequest* _this = reinterpret_cast< SubmitTransactionRequest* >(object); - (void)_this; -} -void SubmitTransactionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SubmitTransactionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SubmitTransactionRequest& SubmitTransactionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void SubmitTransactionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && tx_ != nullptr) { - delete tx_; - } - tx_ = nullptr; - type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SubmitTransactionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.SignedBundle tx = 1 [json_name = "tx"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_tx(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::api::v1::SubmitTransactionRequest_Type>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.SignedBundle tx = 1 [json_name = "tx"]; - if (this->has_tx()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::tx(this), target, stream); - } - - // .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionRequest) - return target; -} - -size_t SubmitTransactionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.SignedBundle tx = 1 [json_name = "tx"]; - if (this->has_tx()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tx_); - } - - // .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SubmitTransactionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionRequest) - GOOGLE_DCHECK_NE(&from, this); - const SubmitTransactionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionRequest) - MergeFrom(*source); - } -} - -void SubmitTransactionRequest::MergeFrom(const SubmitTransactionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_tx()) { - _internal_mutable_tx()->::vega::SignedBundle::MergeFrom(from._internal_tx()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void SubmitTransactionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitTransactionRequest::CopyFrom(const SubmitTransactionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitTransactionRequest::IsInitialized() const { - return true; -} - -void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, type_) - + sizeof(SubmitTransactionRequest::type_) - - PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, tx_)>( - reinterpret_cast(&tx_), - reinterpret_cast(&other->tx_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class SubmitTransactionResponse::_Internal { - public: -}; - -SubmitTransactionResponse::SubmitTransactionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionResponse) -} -SubmitTransactionResponse::SubmitTransactionResponse(const SubmitTransactionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; - // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionResponse) -} - -void SubmitTransactionResponse::SharedCtor() { - success_ = false; -} - -SubmitTransactionResponse::~SubmitTransactionResponse() { - // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void SubmitTransactionResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void SubmitTransactionResponse::ArenaDtor(void* object) { - SubmitTransactionResponse* _this = reinterpret_cast< SubmitTransactionResponse* >(object); - (void)_this; -} -void SubmitTransactionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SubmitTransactionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SubmitTransactionResponse& SubmitTransactionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void SubmitTransactionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - success_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SubmitTransactionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bool success = 1 [json_name = "success"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionResponse) - return target; -} - -size_t SubmitTransactionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SubmitTransactionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionResponse) - GOOGLE_DCHECK_NE(&from, this); - const SubmitTransactionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionResponse) - MergeFrom(*source); - } -} - -void SubmitTransactionResponse::MergeFrom(const SubmitTransactionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.success() != 0) { - _internal_set_success(from._internal_success()); - } -} - -void SubmitTransactionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitTransactionResponse::CopyFrom(const SubmitTransactionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitTransactionResponse::IsInitialized() const { - return true; -} - -void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(success_, other->success_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class SubmitTransactionV2Request::_Internal { - public: - static const ::vega::commands::v1::Transaction& tx(const SubmitTransactionV2Request* msg); -}; - -const ::vega::commands::v1::Transaction& -SubmitTransactionV2Request::_Internal::tx(const SubmitTransactionV2Request* msg) { - return *msg->tx_; -} -void SubmitTransactionV2Request::clear_tx() { - if (GetArena() == nullptr && tx_ != nullptr) { - delete tx_; - } - tx_ = nullptr; -} -SubmitTransactionV2Request::SubmitTransactionV2Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionV2Request) -} -SubmitTransactionV2Request::SubmitTransactionV2Request(const SubmitTransactionV2Request& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_tx()) { - tx_ = new ::vega::commands::v1::Transaction(*from.tx_); - } else { - tx_ = nullptr; - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionV2Request) -} - -void SubmitTransactionV2Request::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&tx_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&tx_)) + sizeof(type_)); -} - -SubmitTransactionV2Request::~SubmitTransactionV2Request() { - // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionV2Request) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void SubmitTransactionV2Request::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete tx_; -} - -void SubmitTransactionV2Request::ArenaDtor(void* object) { - SubmitTransactionV2Request* _this = reinterpret_cast< SubmitTransactionV2Request* >(object); - (void)_this; -} -void SubmitTransactionV2Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SubmitTransactionV2Request::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SubmitTransactionV2Request& SubmitTransactionV2Request::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void SubmitTransactionV2Request::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionV2Request) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && tx_ != nullptr) { - delete tx_; - } - tx_ = nullptr; - type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SubmitTransactionV2Request::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_tx(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::api::v1::SubmitTransactionV2Request_Type>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionV2Request::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionV2Request) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - if (this->has_tx()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::tx(this), target, stream); - } - - // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionV2Request) - return target; -} - -size_t SubmitTransactionV2Request::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionV2Request) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - if (this->has_tx()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *tx_); - } - - // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SubmitTransactionV2Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionV2Request) - GOOGLE_DCHECK_NE(&from, this); - const SubmitTransactionV2Request* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionV2Request) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionV2Request) - MergeFrom(*source); - } -} - -void SubmitTransactionV2Request::MergeFrom(const SubmitTransactionV2Request& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionV2Request) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_tx()) { - _internal_mutable_tx()->::vega::commands::v1::Transaction::MergeFrom(from._internal_tx()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void SubmitTransactionV2Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionV2Request) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitTransactionV2Request::CopyFrom(const SubmitTransactionV2Request& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionV2Request) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitTransactionV2Request::IsInitialized() const { - return true; -} - -void SubmitTransactionV2Request::InternalSwap(SubmitTransactionV2Request* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SubmitTransactionV2Request, type_) - + sizeof(SubmitTransactionV2Request::type_) - - PROTOBUF_FIELD_OFFSET(SubmitTransactionV2Request, tx_)>( - reinterpret_cast(&tx_), - reinterpret_cast(&other->tx_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionV2Request::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class SubmitTransactionV2Response::_Internal { - public: -}; - -SubmitTransactionV2Response::SubmitTransactionV2Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionV2Response) -} -SubmitTransactionV2Response::SubmitTransactionV2Response(const SubmitTransactionV2Response& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; - // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionV2Response) -} - -void SubmitTransactionV2Response::SharedCtor() { - success_ = false; -} - -SubmitTransactionV2Response::~SubmitTransactionV2Response() { - // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionV2Response) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void SubmitTransactionV2Response::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void SubmitTransactionV2Response::ArenaDtor(void* object) { - SubmitTransactionV2Response* _this = reinterpret_cast< SubmitTransactionV2Response* >(object); - (void)_this; -} -void SubmitTransactionV2Response::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SubmitTransactionV2Response::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SubmitTransactionV2Response& SubmitTransactionV2Response::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void SubmitTransactionV2Response::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionV2Response) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - success_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SubmitTransactionV2Response::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bool success = 1 [json_name = "success"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionV2Response::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionV2Response) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionV2Response) - return target; -} - -size_t SubmitTransactionV2Response::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionV2Response) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->success() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SubmitTransactionV2Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionV2Response) - GOOGLE_DCHECK_NE(&from, this); - const SubmitTransactionV2Response* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionV2Response) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionV2Response) - MergeFrom(*source); - } -} - -void SubmitTransactionV2Response::MergeFrom(const SubmitTransactionV2Response& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionV2Response) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.success() != 0) { - _internal_set_success(from._internal_success()); - } -} - -void SubmitTransactionV2Response::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionV2Response) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubmitTransactionV2Response::CopyFrom(const SubmitTransactionV2Response& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionV2Response) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubmitTransactionV2Response::IsInitialized() const { - return true; -} - -void SubmitTransactionV2Response::InternalSwap(SubmitTransactionV2Response* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(success_, other->success_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionV2Response::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareWithdrawRequest::_Internal { - public: - static const ::vega::commands::v1::WithdrawSubmission& withdraw(const PrepareWithdrawRequest* msg); -}; - -const ::vega::commands::v1::WithdrawSubmission& -PrepareWithdrawRequest::_Internal::withdraw(const PrepareWithdrawRequest* msg) { - return *msg->withdraw_; -} -void PrepareWithdrawRequest::clear_withdraw() { - if (GetArena() == nullptr && withdraw_ != nullptr) { - delete withdraw_; - } - withdraw_ = nullptr; -} -PrepareWithdrawRequest::PrepareWithdrawRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareWithdrawRequest) -} -PrepareWithdrawRequest::PrepareWithdrawRequest(const PrepareWithdrawRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_withdraw()) { - withdraw_ = new ::vega::commands::v1::WithdrawSubmission(*from.withdraw_); - } else { - withdraw_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareWithdrawRequest) -} - -void PrepareWithdrawRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareWithdrawRequest_api_2ftrading_2eproto.base); - withdraw_ = nullptr; -} - -PrepareWithdrawRequest::~PrepareWithdrawRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareWithdrawRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareWithdrawRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete withdraw_; -} - -void PrepareWithdrawRequest::ArenaDtor(void* object) { - PrepareWithdrawRequest* _this = reinterpret_cast< PrepareWithdrawRequest* >(object); - (void)_this; -} -void PrepareWithdrawRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareWithdrawRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareWithdrawRequest& PrepareWithdrawRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareWithdrawRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareWithdrawRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareWithdrawRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && withdraw_ != nullptr) { - delete withdraw_; - } - withdraw_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareWithdrawRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_withdraw(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareWithdrawRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareWithdrawRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - if (this->has_withdraw()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::withdraw(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareWithdrawRequest) - return target; -} - -size_t PrepareWithdrawRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareWithdrawRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - if (this->has_withdraw()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *withdraw_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareWithdrawRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareWithdrawRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareWithdrawRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareWithdrawRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareWithdrawRequest) - MergeFrom(*source); - } -} - -void PrepareWithdrawRequest::MergeFrom(const PrepareWithdrawRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareWithdrawRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_withdraw()) { - _internal_mutable_withdraw()->::vega::commands::v1::WithdrawSubmission::MergeFrom(from._internal_withdraw()); - } -} - -void PrepareWithdrawRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareWithdrawRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareWithdrawRequest::CopyFrom(const PrepareWithdrawRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareWithdrawRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareWithdrawRequest::IsInitialized() const { - return true; -} - -void PrepareWithdrawRequest::InternalSwap(PrepareWithdrawRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(withdraw_, other->withdraw_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareWithdrawRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareWithdrawResponse::_Internal { - public: -}; - -PrepareWithdrawResponse::PrepareWithdrawResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareWithdrawResponse) -} -PrepareWithdrawResponse::PrepareWithdrawResponse(const PrepareWithdrawResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareWithdrawResponse) -} - -void PrepareWithdrawResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareWithdrawResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PrepareWithdrawResponse::~PrepareWithdrawResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareWithdrawResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareWithdrawResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PrepareWithdrawResponse::ArenaDtor(void* object) { - PrepareWithdrawResponse* _this = reinterpret_cast< PrepareWithdrawResponse* >(object); - (void)_this; -} -void PrepareWithdrawResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareWithdrawResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareWithdrawResponse& PrepareWithdrawResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareWithdrawResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareWithdrawResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareWithdrawResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareWithdrawResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareWithdrawResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareWithdrawResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareWithdrawResponse) - return target; -} - -size_t PrepareWithdrawResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareWithdrawResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareWithdrawResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareWithdrawResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareWithdrawResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareWithdrawResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareWithdrawResponse) - MergeFrom(*source); - } -} - -void PrepareWithdrawResponse::MergeFrom(const PrepareWithdrawResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareWithdrawResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } -} - -void PrepareWithdrawResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareWithdrawResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareWithdrawResponse::CopyFrom(const PrepareWithdrawResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareWithdrawResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareWithdrawResponse::IsInitialized() const { - return true; -} - -void PrepareWithdrawResponse::InternalSwap(PrepareWithdrawResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareWithdrawResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareSubmitOrderResponse::_Internal { - public: -}; - -PrepareSubmitOrderResponse::PrepareSubmitOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareSubmitOrderResponse) -} -PrepareSubmitOrderResponse::PrepareSubmitOrderResponse(const PrepareSubmitOrderResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - submit_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_submit_id().empty()) { - submit_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_submit_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareSubmitOrderResponse) -} - -void PrepareSubmitOrderResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - submit_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PrepareSubmitOrderResponse::~PrepareSubmitOrderResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareSubmitOrderResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareSubmitOrderResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - submit_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PrepareSubmitOrderResponse::ArenaDtor(void* object) { - PrepareSubmitOrderResponse* _this = reinterpret_cast< PrepareSubmitOrderResponse* >(object); - (void)_this; -} -void PrepareSubmitOrderResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareSubmitOrderResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareSubmitOrderResponse& PrepareSubmitOrderResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareSubmitOrderResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareSubmitOrderResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareSubmitOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - submit_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareSubmitOrderResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string submit_id = 2 [json_name = "submitId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_submit_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PrepareSubmitOrderResponse.submit_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareSubmitOrderResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareSubmitOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - // string submit_id = 2 [json_name = "submitId"]; - if (this->submit_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_submit_id().data(), static_cast(this->_internal_submit_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PrepareSubmitOrderResponse.submit_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_submit_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareSubmitOrderResponse) - return target; -} - -size_t PrepareSubmitOrderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareSubmitOrderResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - // string submit_id = 2 [json_name = "submitId"]; - if (this->submit_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_submit_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareSubmitOrderResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareSubmitOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareSubmitOrderResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareSubmitOrderResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareSubmitOrderResponse) - MergeFrom(*source); - } -} - -void PrepareSubmitOrderResponse::MergeFrom(const PrepareSubmitOrderResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareSubmitOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } - if (from.submit_id().size() > 0) { - _internal_set_submit_id(from._internal_submit_id()); - } -} - -void PrepareSubmitOrderResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareSubmitOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareSubmitOrderResponse::CopyFrom(const PrepareSubmitOrderResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareSubmitOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareSubmitOrderResponse::IsInitialized() const { - return true; -} - -void PrepareSubmitOrderResponse::InternalSwap(PrepareSubmitOrderResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - submit_id_.Swap(&other->submit_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareSubmitOrderResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareCancelOrderResponse::_Internal { - public: -}; - -PrepareCancelOrderResponse::PrepareCancelOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareCancelOrderResponse) -} -PrepareCancelOrderResponse::PrepareCancelOrderResponse(const PrepareCancelOrderResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareCancelOrderResponse) -} - -void PrepareCancelOrderResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PrepareCancelOrderResponse::~PrepareCancelOrderResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareCancelOrderResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareCancelOrderResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PrepareCancelOrderResponse::ArenaDtor(void* object) { - PrepareCancelOrderResponse* _this = reinterpret_cast< PrepareCancelOrderResponse* >(object); - (void)_this; -} -void PrepareCancelOrderResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareCancelOrderResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareCancelOrderResponse& PrepareCancelOrderResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareCancelOrderResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareCancelOrderResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareCancelOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareCancelOrderResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareCancelOrderResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareCancelOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareCancelOrderResponse) - return target; -} - -size_t PrepareCancelOrderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareCancelOrderResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareCancelOrderResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareCancelOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareCancelOrderResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareCancelOrderResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareCancelOrderResponse) - MergeFrom(*source); - } -} - -void PrepareCancelOrderResponse::MergeFrom(const PrepareCancelOrderResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareCancelOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } -} - -void PrepareCancelOrderResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareCancelOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareCancelOrderResponse::CopyFrom(const PrepareCancelOrderResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareCancelOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareCancelOrderResponse::IsInitialized() const { - return true; -} - -void PrepareCancelOrderResponse::InternalSwap(PrepareCancelOrderResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareCancelOrderResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareAmendOrderResponse::_Internal { - public: -}; - -PrepareAmendOrderResponse::PrepareAmendOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareAmendOrderResponse) -} -PrepareAmendOrderResponse::PrepareAmendOrderResponse(const PrepareAmendOrderResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareAmendOrderResponse) -} - -void PrepareAmendOrderResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PrepareAmendOrderResponse::~PrepareAmendOrderResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareAmendOrderResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareAmendOrderResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PrepareAmendOrderResponse::ArenaDtor(void* object) { - PrepareAmendOrderResponse* _this = reinterpret_cast< PrepareAmendOrderResponse* >(object); - (void)_this; -} -void PrepareAmendOrderResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareAmendOrderResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareAmendOrderResponse& PrepareAmendOrderResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareAmendOrderResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareAmendOrderResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareAmendOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareAmendOrderResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareAmendOrderResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareAmendOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareAmendOrderResponse) - return target; -} - -size_t PrepareAmendOrderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareAmendOrderResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareAmendOrderResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareAmendOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareAmendOrderResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareAmendOrderResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareAmendOrderResponse) - MergeFrom(*source); - } -} - -void PrepareAmendOrderResponse::MergeFrom(const PrepareAmendOrderResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareAmendOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } -} - -void PrepareAmendOrderResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareAmendOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareAmendOrderResponse::CopyFrom(const PrepareAmendOrderResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareAmendOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareAmendOrderResponse::IsInitialized() const { - return true; -} - -void PrepareAmendOrderResponse::InternalSwap(PrepareAmendOrderResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareAmendOrderResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareSubmitOrderRequest::_Internal { - public: - static const ::vega::commands::v1::OrderSubmission& submission(const PrepareSubmitOrderRequest* msg); -}; - -const ::vega::commands::v1::OrderSubmission& -PrepareSubmitOrderRequest::_Internal::submission(const PrepareSubmitOrderRequest* msg) { - return *msg->submission_; -} -void PrepareSubmitOrderRequest::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareSubmitOrderRequest::PrepareSubmitOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareSubmitOrderRequest) -} -PrepareSubmitOrderRequest::PrepareSubmitOrderRequest(const PrepareSubmitOrderRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::OrderSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareSubmitOrderRequest) -} - -void PrepareSubmitOrderRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto.base); - submission_ = nullptr; -} - -PrepareSubmitOrderRequest::~PrepareSubmitOrderRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareSubmitOrderRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareSubmitOrderRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareSubmitOrderRequest::ArenaDtor(void* object) { - PrepareSubmitOrderRequest* _this = reinterpret_cast< PrepareSubmitOrderRequest* >(object); - (void)_this; -} -void PrepareSubmitOrderRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareSubmitOrderRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareSubmitOrderRequest& PrepareSubmitOrderRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareSubmitOrderRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareSubmitOrderRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareSubmitOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareSubmitOrderRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareSubmitOrderRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareSubmitOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareSubmitOrderRequest) - return target; -} - -size_t PrepareSubmitOrderRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareSubmitOrderRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareSubmitOrderRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareSubmitOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareSubmitOrderRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareSubmitOrderRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareSubmitOrderRequest) - MergeFrom(*source); - } -} - -void PrepareSubmitOrderRequest::MergeFrom(const PrepareSubmitOrderRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareSubmitOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::OrderSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareSubmitOrderRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareSubmitOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareSubmitOrderRequest::CopyFrom(const PrepareSubmitOrderRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareSubmitOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareSubmitOrderRequest::IsInitialized() const { - return true; -} - -void PrepareSubmitOrderRequest::InternalSwap(PrepareSubmitOrderRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareSubmitOrderRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareCancelOrderRequest::_Internal { - public: - static const ::vega::commands::v1::OrderCancellation& cancellation(const PrepareCancelOrderRequest* msg); -}; - -const ::vega::commands::v1::OrderCancellation& -PrepareCancelOrderRequest::_Internal::cancellation(const PrepareCancelOrderRequest* msg) { - return *msg->cancellation_; -} -void PrepareCancelOrderRequest::clear_cancellation() { - if (GetArena() == nullptr && cancellation_ != nullptr) { - delete cancellation_; - } - cancellation_ = nullptr; -} -PrepareCancelOrderRequest::PrepareCancelOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareCancelOrderRequest) -} -PrepareCancelOrderRequest::PrepareCancelOrderRequest(const PrepareCancelOrderRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_cancellation()) { - cancellation_ = new ::vega::commands::v1::OrderCancellation(*from.cancellation_); - } else { - cancellation_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareCancelOrderRequest) -} - -void PrepareCancelOrderRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto.base); - cancellation_ = nullptr; -} - -PrepareCancelOrderRequest::~PrepareCancelOrderRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareCancelOrderRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareCancelOrderRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete cancellation_; -} - -void PrepareCancelOrderRequest::ArenaDtor(void* object) { - PrepareCancelOrderRequest* _this = reinterpret_cast< PrepareCancelOrderRequest* >(object); - (void)_this; -} -void PrepareCancelOrderRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareCancelOrderRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareCancelOrderRequest& PrepareCancelOrderRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareCancelOrderRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareCancelOrderRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareCancelOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && cancellation_ != nullptr) { - delete cancellation_; - } - cancellation_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareCancelOrderRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_cancellation(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareCancelOrderRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareCancelOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - if (this->has_cancellation()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::cancellation(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareCancelOrderRequest) - return target; -} - -size_t PrepareCancelOrderRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareCancelOrderRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - if (this->has_cancellation()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cancellation_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareCancelOrderRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareCancelOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareCancelOrderRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareCancelOrderRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareCancelOrderRequest) - MergeFrom(*source); - } -} - -void PrepareCancelOrderRequest::MergeFrom(const PrepareCancelOrderRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareCancelOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_cancellation()) { - _internal_mutable_cancellation()->::vega::commands::v1::OrderCancellation::MergeFrom(from._internal_cancellation()); - } -} - -void PrepareCancelOrderRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareCancelOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareCancelOrderRequest::CopyFrom(const PrepareCancelOrderRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareCancelOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareCancelOrderRequest::IsInitialized() const { - return true; -} - -void PrepareCancelOrderRequest::InternalSwap(PrepareCancelOrderRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(cancellation_, other->cancellation_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareCancelOrderRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareAmendOrderRequest::_Internal { - public: - static const ::vega::commands::v1::OrderAmendment& amendment(const PrepareAmendOrderRequest* msg); -}; - -const ::vega::commands::v1::OrderAmendment& -PrepareAmendOrderRequest::_Internal::amendment(const PrepareAmendOrderRequest* msg) { - return *msg->amendment_; -} -void PrepareAmendOrderRequest::clear_amendment() { - if (GetArena() == nullptr && amendment_ != nullptr) { - delete amendment_; - } - amendment_ = nullptr; -} -PrepareAmendOrderRequest::PrepareAmendOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareAmendOrderRequest) -} -PrepareAmendOrderRequest::PrepareAmendOrderRequest(const PrepareAmendOrderRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_amendment()) { - amendment_ = new ::vega::commands::v1::OrderAmendment(*from.amendment_); - } else { - amendment_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareAmendOrderRequest) -} - -void PrepareAmendOrderRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto.base); - amendment_ = nullptr; -} - -PrepareAmendOrderRequest::~PrepareAmendOrderRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareAmendOrderRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareAmendOrderRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete amendment_; -} - -void PrepareAmendOrderRequest::ArenaDtor(void* object) { - PrepareAmendOrderRequest* _this = reinterpret_cast< PrepareAmendOrderRequest* >(object); - (void)_this; -} -void PrepareAmendOrderRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareAmendOrderRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareAmendOrderRequest& PrepareAmendOrderRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareAmendOrderRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareAmendOrderRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareAmendOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && amendment_ != nullptr) { - delete amendment_; - } - amendment_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareAmendOrderRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_amendment(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareAmendOrderRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareAmendOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - if (this->has_amendment()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::amendment(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareAmendOrderRequest) - return target; -} - -size_t PrepareAmendOrderRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareAmendOrderRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - if (this->has_amendment()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *amendment_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareAmendOrderRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareAmendOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareAmendOrderRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareAmendOrderRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareAmendOrderRequest) - MergeFrom(*source); - } -} - -void PrepareAmendOrderRequest::MergeFrom(const PrepareAmendOrderRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareAmendOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_amendment()) { - _internal_mutable_amendment()->::vega::commands::v1::OrderAmendment::MergeFrom(from._internal_amendment()); - } -} - -void PrepareAmendOrderRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareAmendOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareAmendOrderRequest::CopyFrom(const PrepareAmendOrderRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareAmendOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareAmendOrderRequest::IsInitialized() const { - return true; -} - -void PrepareAmendOrderRequest::InternalSwap(PrepareAmendOrderRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(amendment_, other->amendment_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareAmendOrderRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AssetsRequest::_Internal { - public: -}; - -AssetsRequest::AssetsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AssetsRequest) -} -AssetsRequest::AssetsRequest(const AssetsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.AssetsRequest) -} - -void AssetsRequest::SharedCtor() { -} - -AssetsRequest::~AssetsRequest() { - // @@protoc_insertion_point(destructor:api.v1.AssetsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AssetsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void AssetsRequest::ArenaDtor(void* object) { - AssetsRequest* _this = reinterpret_cast< AssetsRequest* >(object); - (void)_this; -} -void AssetsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AssetsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AssetsRequest& AssetsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AssetsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AssetsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AssetsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AssetsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AssetsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AssetsRequest) - return target; -} - -size_t AssetsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AssetsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AssetsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AssetsRequest) - GOOGLE_DCHECK_NE(&from, this); - const AssetsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AssetsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AssetsRequest) - MergeFrom(*source); - } -} - -void AssetsRequest::MergeFrom(const AssetsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AssetsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void AssetsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AssetsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AssetsRequest::CopyFrom(const AssetsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AssetsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AssetsRequest::IsInitialized() const { - return true; -} - -void AssetsRequest::InternalSwap(AssetsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AssetsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AssetsResponse::_Internal { - public: -}; - -void AssetsResponse::clear_assets() { - assets_.Clear(); -} -AssetsResponse::AssetsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - assets_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AssetsResponse) -} -AssetsResponse::AssetsResponse(const AssetsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - assets_(from.assets_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.AssetsResponse) -} - -void AssetsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetsResponse_api_2ftrading_2eproto.base); -} - -AssetsResponse::~AssetsResponse() { - // @@protoc_insertion_point(destructor:api.v1.AssetsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AssetsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void AssetsResponse::ArenaDtor(void* object) { - AssetsResponse* _this = reinterpret_cast< AssetsResponse* >(object); - (void)_this; -} -void AssetsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AssetsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AssetsResponse& AssetsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AssetsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AssetsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - assets_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AssetsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Asset assets = 1 [json_name = "assets"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_assets(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AssetsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AssetsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Asset assets = 1 [json_name = "assets"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_assets_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_assets(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AssetsResponse) - return target; -} - -size_t AssetsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AssetsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Asset assets = 1 [json_name = "assets"]; - total_size += 1UL * this->_internal_assets_size(); - for (const auto& msg : this->assets_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AssetsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AssetsResponse) - GOOGLE_DCHECK_NE(&from, this); - const AssetsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AssetsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AssetsResponse) - MergeFrom(*source); - } -} - -void AssetsResponse::MergeFrom(const AssetsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AssetsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - assets_.MergeFrom(from.assets_); -} - -void AssetsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AssetsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AssetsResponse::CopyFrom(const AssetsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AssetsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AssetsResponse::IsInitialized() const { - return true; -} - -void AssetsResponse::InternalSwap(AssetsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - assets_.InternalSwap(&other->assets_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AssetsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AssetByIDRequest::_Internal { - public: -}; - -AssetByIDRequest::AssetByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AssetByIDRequest) -} -AssetByIDRequest::AssetByIDRequest(const AssetByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.AssetByIDRequest) -} - -void AssetByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetByIDRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -AssetByIDRequest::~AssetByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.AssetByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AssetByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void AssetByIDRequest::ArenaDtor(void* object) { - AssetByIDRequest* _this = reinterpret_cast< AssetByIDRequest* >(object); - (void)_this; -} -void AssetByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AssetByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AssetByIDRequest& AssetByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AssetByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AssetByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AssetByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.AssetByIDRequest.id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AssetByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AssetByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.AssetByIDRequest.id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AssetByIDRequest) - return target; -} - -size_t AssetByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AssetByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AssetByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AssetByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const AssetByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AssetByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AssetByIDRequest) - MergeFrom(*source); - } -} - -void AssetByIDRequest::MergeFrom(const AssetByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AssetByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); - } -} - -void AssetByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AssetByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AssetByIDRequest::CopyFrom(const AssetByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AssetByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AssetByIDRequest::IsInitialized() const { - return true; -} - -void AssetByIDRequest::InternalSwap(AssetByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AssetByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AssetByIDResponse::_Internal { - public: - static const ::vega::Asset& asset(const AssetByIDResponse* msg); -}; - -const ::vega::Asset& -AssetByIDResponse::_Internal::asset(const AssetByIDResponse* msg) { - return *msg->asset_; -} -void AssetByIDResponse::clear_asset() { - if (GetArena() == nullptr && asset_ != nullptr) { - delete asset_; - } - asset_ = nullptr; -} -AssetByIDResponse::AssetByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AssetByIDResponse) -} -AssetByIDResponse::AssetByIDResponse(const AssetByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_asset()) { - asset_ = new ::vega::Asset(*from.asset_); - } else { - asset_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.AssetByIDResponse) -} - -void AssetByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetByIDResponse_api_2ftrading_2eproto.base); - asset_ = nullptr; -} - -AssetByIDResponse::~AssetByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.AssetByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AssetByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete asset_; -} - -void AssetByIDResponse::ArenaDtor(void* object) { - AssetByIDResponse* _this = reinterpret_cast< AssetByIDResponse* >(object); - (void)_this; -} -void AssetByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AssetByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AssetByIDResponse& AssetByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AssetByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AssetByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && asset_ != nullptr) { - delete asset_; - } - asset_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AssetByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Asset asset = 1 [json_name = "asset"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_asset(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AssetByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AssetByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Asset asset = 1 [json_name = "asset"]; - if (this->has_asset()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::asset(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AssetByIDResponse) - return target; -} - -size_t AssetByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AssetByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Asset asset = 1 [json_name = "asset"]; - if (this->has_asset()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *asset_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AssetByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AssetByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const AssetByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AssetByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AssetByIDResponse) - MergeFrom(*source); - } -} - -void AssetByIDResponse::MergeFrom(const AssetByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AssetByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_asset()) { - _internal_mutable_asset()->::vega::Asset::MergeFrom(from._internal_asset()); - } -} - -void AssetByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AssetByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AssetByIDResponse::CopyFrom(const AssetByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AssetByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AssetByIDResponse::IsInitialized() const { - return true; -} - -void AssetByIDResponse::InternalSwap(AssetByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(asset_, other->asset_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AssetByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNodeSignaturesAggregateRequest::_Internal { - public: -}; - -GetNodeSignaturesAggregateRequest::GetNodeSignaturesAggregateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNodeSignaturesAggregateRequest) -} -GetNodeSignaturesAggregateRequest::GetNodeSignaturesAggregateRequest(const GetNodeSignaturesAggregateRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetNodeSignaturesAggregateRequest) -} - -void GetNodeSignaturesAggregateRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GetNodeSignaturesAggregateRequest::~GetNodeSignaturesAggregateRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetNodeSignaturesAggregateRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNodeSignaturesAggregateRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetNodeSignaturesAggregateRequest::ArenaDtor(void* object) { - GetNodeSignaturesAggregateRequest* _this = reinterpret_cast< GetNodeSignaturesAggregateRequest* >(object); - (void)_this; -} -void GetNodeSignaturesAggregateRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNodeSignaturesAggregateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNodeSignaturesAggregateRequest& GetNodeSignaturesAggregateRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNodeSignaturesAggregateRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNodeSignaturesAggregateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNodeSignaturesAggregateRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNodeSignaturesAggregateRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetNodeSignaturesAggregateRequest.id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNodeSignaturesAggregateRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNodeSignaturesAggregateRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetNodeSignaturesAggregateRequest.id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNodeSignaturesAggregateRequest) - return target; -} - -size_t GetNodeSignaturesAggregateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNodeSignaturesAggregateRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNodeSignaturesAggregateRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNodeSignaturesAggregateRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetNodeSignaturesAggregateRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNodeSignaturesAggregateRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNodeSignaturesAggregateRequest) - MergeFrom(*source); - } -} - -void GetNodeSignaturesAggregateRequest::MergeFrom(const GetNodeSignaturesAggregateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNodeSignaturesAggregateRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); - } -} - -void GetNodeSignaturesAggregateRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNodeSignaturesAggregateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNodeSignaturesAggregateRequest::CopyFrom(const GetNodeSignaturesAggregateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNodeSignaturesAggregateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNodeSignaturesAggregateRequest::IsInitialized() const { - return true; -} - -void GetNodeSignaturesAggregateRequest::InternalSwap(GetNodeSignaturesAggregateRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNodeSignaturesAggregateRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNodeSignaturesAggregateResponse::_Internal { - public: -}; - -void GetNodeSignaturesAggregateResponse::clear_signatures() { - signatures_.Clear(); -} -GetNodeSignaturesAggregateResponse::GetNodeSignaturesAggregateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - signatures_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNodeSignaturesAggregateResponse) -} -GetNodeSignaturesAggregateResponse::GetNodeSignaturesAggregateResponse(const GetNodeSignaturesAggregateResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - signatures_(from.signatures_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetNodeSignaturesAggregateResponse) -} - -void GetNodeSignaturesAggregateResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto.base); -} - -GetNodeSignaturesAggregateResponse::~GetNodeSignaturesAggregateResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetNodeSignaturesAggregateResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNodeSignaturesAggregateResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetNodeSignaturesAggregateResponse::ArenaDtor(void* object) { - GetNodeSignaturesAggregateResponse* _this = reinterpret_cast< GetNodeSignaturesAggregateResponse* >(object); - (void)_this; -} -void GetNodeSignaturesAggregateResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNodeSignaturesAggregateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNodeSignaturesAggregateResponse& GetNodeSignaturesAggregateResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNodeSignaturesAggregateResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNodeSignaturesAggregateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNodeSignaturesAggregateResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signatures_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNodeSignaturesAggregateResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_signatures(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNodeSignaturesAggregateResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNodeSignaturesAggregateResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_signatures_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_signatures(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNodeSignaturesAggregateResponse) - return target; -} - -size_t GetNodeSignaturesAggregateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNodeSignaturesAggregateResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - total_size += 1UL * this->_internal_signatures_size(); - for (const auto& msg : this->signatures_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNodeSignaturesAggregateResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNodeSignaturesAggregateResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetNodeSignaturesAggregateResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNodeSignaturesAggregateResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNodeSignaturesAggregateResponse) - MergeFrom(*source); - } -} - -void GetNodeSignaturesAggregateResponse::MergeFrom(const GetNodeSignaturesAggregateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNodeSignaturesAggregateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - signatures_.MergeFrom(from.signatures_); -} - -void GetNodeSignaturesAggregateResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNodeSignaturesAggregateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNodeSignaturesAggregateResponse::CopyFrom(const GetNodeSignaturesAggregateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNodeSignaturesAggregateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNodeSignaturesAggregateResponse::IsInitialized() const { - return true; -} - -void GetNodeSignaturesAggregateResponse::InternalSwap(GetNodeSignaturesAggregateResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - signatures_.InternalSwap(&other->signatures_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNodeSignaturesAggregateResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OptionalProposalState::_Internal { - public: -}; - -OptionalProposalState::OptionalProposalState(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OptionalProposalState) -} -OptionalProposalState::OptionalProposalState(const OptionalProposalState& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:api.v1.OptionalProposalState) -} - -void OptionalProposalState::SharedCtor() { - value_ = 0; -} - -OptionalProposalState::~OptionalProposalState() { - // @@protoc_insertion_point(destructor:api.v1.OptionalProposalState) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OptionalProposalState::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void OptionalProposalState::ArenaDtor(void* object) { - OptionalProposalState* _this = reinterpret_cast< OptionalProposalState* >(object); - (void)_this; -} -void OptionalProposalState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OptionalProposalState::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OptionalProposalState& OptionalProposalState::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OptionalProposalState_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OptionalProposalState::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OptionalProposalState) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OptionalProposalState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Proposal.State value = 1 [json_name = "value"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_value(static_cast<::vega::Proposal_State>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OptionalProposalState::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OptionalProposalState) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Proposal.State value = 1 [json_name = "value"]; - if (this->value() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OptionalProposalState) - return target; -} - -size_t OptionalProposalState::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OptionalProposalState) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Proposal.State value = 1 [json_name = "value"]; - if (this->value() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_value()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OptionalProposalState::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OptionalProposalState) - GOOGLE_DCHECK_NE(&from, this); - const OptionalProposalState* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OptionalProposalState) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OptionalProposalState) - MergeFrom(*source); - } -} - -void OptionalProposalState::MergeFrom(const OptionalProposalState& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OptionalProposalState) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value() != 0) { - _internal_set_value(from._internal_value()); - } -} - -void OptionalProposalState::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OptionalProposalState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OptionalProposalState::CopyFrom(const OptionalProposalState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OptionalProposalState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OptionalProposalState::IsInitialized() const { - return true; -} - -void OptionalProposalState::InternalSwap(OptionalProposalState* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(value_, other->value_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OptionalProposalState::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalsRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetProposalsRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetProposalsRequest::_Internal::select_in_state(const GetProposalsRequest* msg) { - return *msg->select_in_state_; -} -GetProposalsRequest::GetProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalsRequest) -} -GetProposalsRequest::GetProposalsRequest(const GetProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalsRequest) -} - -void GetProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalsRequest_api_2ftrading_2eproto.base); - select_in_state_ = nullptr; -} - -GetProposalsRequest::~GetProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetProposalsRequest::ArenaDtor(void* object) { - GetProposalsRequest* _this = reinterpret_cast< GetProposalsRequest* >(object); - (void)_this; -} -void GetProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalsRequest& GetProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalsRequest) - return target; -} - -size_t GetProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalsRequest) - MergeFrom(*source); - } -} - -void GetProposalsRequest::MergeFrom(const GetProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalsRequest::CopyFrom(const GetProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalsRequest::IsInitialized() const { - return true; -} - -void GetProposalsRequest::InternalSwap(GetProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalsResponse::_Internal { - public: -}; - -void GetProposalsResponse::clear_data() { - data_.Clear(); -} -GetProposalsResponse::GetProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalsResponse) -} -GetProposalsResponse::GetProposalsResponse(const GetProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalsResponse) -} - -void GetProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalsResponse_api_2ftrading_2eproto.base); -} - -GetProposalsResponse::~GetProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetProposalsResponse::ArenaDtor(void* object) { - GetProposalsResponse* _this = reinterpret_cast< GetProposalsResponse* >(object); - (void)_this; -} -void GetProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalsResponse& GetProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalsResponse) - return target; -} - -size_t GetProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalsResponse) - MergeFrom(*source); - } -} - -void GetProposalsResponse::MergeFrom(const GetProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalsResponse::CopyFrom(const GetProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalsResponse::IsInitialized() const { - return true; -} - -void GetProposalsResponse::InternalSwap(GetProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalsByPartyRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetProposalsByPartyRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetProposalsByPartyRequest::_Internal::select_in_state(const GetProposalsByPartyRequest* msg) { - return *msg->select_in_state_; -} -GetProposalsByPartyRequest::GetProposalsByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalsByPartyRequest) -} -GetProposalsByPartyRequest::GetProposalsByPartyRequest(const GetProposalsByPartyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalsByPartyRequest) -} - -void GetProposalsByPartyRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - select_in_state_ = nullptr; -} - -GetProposalsByPartyRequest::~GetProposalsByPartyRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalsByPartyRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalsByPartyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetProposalsByPartyRequest::ArenaDtor(void* object) { - GetProposalsByPartyRequest* _this = reinterpret_cast< GetProposalsByPartyRequest* >(object); - (void)_this; -} -void GetProposalsByPartyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalsByPartyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalsByPartyRequest& GetProposalsByPartyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalsByPartyRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalsByPartyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalsByPartyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetProposalsByPartyRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalsByPartyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetProposalsByPartyRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalsByPartyRequest) - return target; -} - -size_t GetProposalsByPartyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalsByPartyRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalsByPartyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalsByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalsByPartyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalsByPartyRequest) - MergeFrom(*source); - } -} - -void GetProposalsByPartyRequest::MergeFrom(const GetProposalsByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalsByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetProposalsByPartyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalsByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalsByPartyRequest::CopyFrom(const GetProposalsByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalsByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalsByPartyRequest::IsInitialized() const { - return true; -} - -void GetProposalsByPartyRequest::InternalSwap(GetProposalsByPartyRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalsByPartyRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalsByPartyResponse::_Internal { - public: -}; - -void GetProposalsByPartyResponse::clear_data() { - data_.Clear(); -} -GetProposalsByPartyResponse::GetProposalsByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalsByPartyResponse) -} -GetProposalsByPartyResponse::GetProposalsByPartyResponse(const GetProposalsByPartyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalsByPartyResponse) -} - -void GetProposalsByPartyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto.base); -} - -GetProposalsByPartyResponse::~GetProposalsByPartyResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalsByPartyResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalsByPartyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetProposalsByPartyResponse::ArenaDtor(void* object) { - GetProposalsByPartyResponse* _this = reinterpret_cast< GetProposalsByPartyResponse* >(object); - (void)_this; -} -void GetProposalsByPartyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalsByPartyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalsByPartyResponse& GetProposalsByPartyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalsByPartyResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalsByPartyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalsByPartyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalsByPartyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalsByPartyResponse) - return target; -} - -size_t GetProposalsByPartyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalsByPartyResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalsByPartyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalsByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalsByPartyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalsByPartyResponse) - MergeFrom(*source); - } -} - -void GetProposalsByPartyResponse::MergeFrom(const GetProposalsByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalsByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetProposalsByPartyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalsByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalsByPartyResponse::CopyFrom(const GetProposalsByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalsByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalsByPartyResponse::IsInitialized() const { - return true; -} - -void GetProposalsByPartyResponse::InternalSwap(GetProposalsByPartyResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalsByPartyResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetVotesByPartyRequest::_Internal { - public: -}; - -GetVotesByPartyRequest::GetVotesByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetVotesByPartyRequest) -} -GetVotesByPartyRequest::GetVotesByPartyRequest(const GetVotesByPartyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetVotesByPartyRequest) -} - -void GetVotesByPartyRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetVotesByPartyRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GetVotesByPartyRequest::~GetVotesByPartyRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetVotesByPartyRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetVotesByPartyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetVotesByPartyRequest::ArenaDtor(void* object) { - GetVotesByPartyRequest* _this = reinterpret_cast< GetVotesByPartyRequest* >(object); - (void)_this; -} -void GetVotesByPartyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetVotesByPartyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVotesByPartyRequest& GetVotesByPartyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVotesByPartyRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetVotesByPartyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetVotesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetVotesByPartyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetVotesByPartyRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetVotesByPartyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVotesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetVotesByPartyRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVotesByPartyRequest) - return target; -} - -size_t GetVotesByPartyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVotesByPartyRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVotesByPartyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVotesByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetVotesByPartyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVotesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVotesByPartyRequest) - MergeFrom(*source); - } -} - -void GetVotesByPartyRequest::MergeFrom(const GetVotesByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVotesByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void GetVotesByPartyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVotesByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVotesByPartyRequest::CopyFrom(const GetVotesByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVotesByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVotesByPartyRequest::IsInitialized() const { - return true; -} - -void GetVotesByPartyRequest::InternalSwap(GetVotesByPartyRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetVotesByPartyRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetVotesByPartyResponse::_Internal { - public: -}; - -void GetVotesByPartyResponse::clear_votes() { - votes_.Clear(); -} -GetVotesByPartyResponse::GetVotesByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - votes_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetVotesByPartyResponse) -} -GetVotesByPartyResponse::GetVotesByPartyResponse(const GetVotesByPartyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - votes_(from.votes_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetVotesByPartyResponse) -} - -void GetVotesByPartyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetVotesByPartyResponse_api_2ftrading_2eproto.base); -} - -GetVotesByPartyResponse::~GetVotesByPartyResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetVotesByPartyResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetVotesByPartyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetVotesByPartyResponse::ArenaDtor(void* object) { - GetVotesByPartyResponse* _this = reinterpret_cast< GetVotesByPartyResponse* >(object); - (void)_this; -} -void GetVotesByPartyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetVotesByPartyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVotesByPartyResponse& GetVotesByPartyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVotesByPartyResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetVotesByPartyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetVotesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - votes_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetVotesByPartyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Vote votes = 1 [json_name = "votes"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_votes(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetVotesByPartyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVotesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Vote votes = 1 [json_name = "votes"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_votes_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_votes(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVotesByPartyResponse) - return target; -} - -size_t GetVotesByPartyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVotesByPartyResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Vote votes = 1 [json_name = "votes"]; - total_size += 1UL * this->_internal_votes_size(); - for (const auto& msg : this->votes_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVotesByPartyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVotesByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetVotesByPartyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVotesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVotesByPartyResponse) - MergeFrom(*source); - } -} - -void GetVotesByPartyResponse::MergeFrom(const GetVotesByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVotesByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - votes_.MergeFrom(from.votes_); -} - -void GetVotesByPartyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVotesByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVotesByPartyResponse::CopyFrom(const GetVotesByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVotesByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVotesByPartyResponse::IsInitialized() const { - return true; -} - -void GetVotesByPartyResponse::InternalSwap(GetVotesByPartyResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - votes_.InternalSwap(&other->votes_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetVotesByPartyResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNewMarketProposalsRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetNewMarketProposalsRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetNewMarketProposalsRequest::_Internal::select_in_state(const GetNewMarketProposalsRequest* msg) { - return *msg->select_in_state_; -} -GetNewMarketProposalsRequest::GetNewMarketProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNewMarketProposalsRequest) -} -GetNewMarketProposalsRequest::GetNewMarketProposalsRequest(const GetNewMarketProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetNewMarketProposalsRequest) -} - -void GetNewMarketProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto.base); - select_in_state_ = nullptr; -} - -GetNewMarketProposalsRequest::~GetNewMarketProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetNewMarketProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNewMarketProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetNewMarketProposalsRequest::ArenaDtor(void* object) { - GetNewMarketProposalsRequest* _this = reinterpret_cast< GetNewMarketProposalsRequest* >(object); - (void)_this; -} -void GetNewMarketProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNewMarketProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNewMarketProposalsRequest& GetNewMarketProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNewMarketProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNewMarketProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNewMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNewMarketProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNewMarketProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNewMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNewMarketProposalsRequest) - return target; -} - -size_t GetNewMarketProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNewMarketProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNewMarketProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNewMarketProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetNewMarketProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNewMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNewMarketProposalsRequest) - MergeFrom(*source); - } -} - -void GetNewMarketProposalsRequest::MergeFrom(const GetNewMarketProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNewMarketProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetNewMarketProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNewMarketProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNewMarketProposalsRequest::CopyFrom(const GetNewMarketProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNewMarketProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNewMarketProposalsRequest::IsInitialized() const { - return true; -} - -void GetNewMarketProposalsRequest::InternalSwap(GetNewMarketProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNewMarketProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNewMarketProposalsResponse::_Internal { - public: -}; - -void GetNewMarketProposalsResponse::clear_data() { - data_.Clear(); -} -GetNewMarketProposalsResponse::GetNewMarketProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNewMarketProposalsResponse) -} -GetNewMarketProposalsResponse::GetNewMarketProposalsResponse(const GetNewMarketProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetNewMarketProposalsResponse) -} - -void GetNewMarketProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto.base); -} - -GetNewMarketProposalsResponse::~GetNewMarketProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetNewMarketProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNewMarketProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetNewMarketProposalsResponse::ArenaDtor(void* object) { - GetNewMarketProposalsResponse* _this = reinterpret_cast< GetNewMarketProposalsResponse* >(object); - (void)_this; -} -void GetNewMarketProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNewMarketProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNewMarketProposalsResponse& GetNewMarketProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNewMarketProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNewMarketProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNewMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNewMarketProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNewMarketProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNewMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNewMarketProposalsResponse) - return target; -} - -size_t GetNewMarketProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNewMarketProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNewMarketProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNewMarketProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetNewMarketProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNewMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNewMarketProposalsResponse) - MergeFrom(*source); - } -} - -void GetNewMarketProposalsResponse::MergeFrom(const GetNewMarketProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNewMarketProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetNewMarketProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNewMarketProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNewMarketProposalsResponse::CopyFrom(const GetNewMarketProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNewMarketProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNewMarketProposalsResponse::IsInitialized() const { - return true; -} - -void GetNewMarketProposalsResponse::InternalSwap(GetNewMarketProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNewMarketProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetUpdateMarketProposalsRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetUpdateMarketProposalsRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetUpdateMarketProposalsRequest::_Internal::select_in_state(const GetUpdateMarketProposalsRequest* msg) { - return *msg->select_in_state_; -} -GetUpdateMarketProposalsRequest::GetUpdateMarketProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetUpdateMarketProposalsRequest) -} -GetUpdateMarketProposalsRequest::GetUpdateMarketProposalsRequest(const GetUpdateMarketProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetUpdateMarketProposalsRequest) -} - -void GetUpdateMarketProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - select_in_state_ = nullptr; -} - -GetUpdateMarketProposalsRequest::~GetUpdateMarketProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetUpdateMarketProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetUpdateMarketProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetUpdateMarketProposalsRequest::ArenaDtor(void* object) { - GetUpdateMarketProposalsRequest* _this = reinterpret_cast< GetUpdateMarketProposalsRequest* >(object); - (void)_this; -} -void GetUpdateMarketProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetUpdateMarketProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetUpdateMarketProposalsRequest& GetUpdateMarketProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetUpdateMarketProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetUpdateMarketProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetUpdateMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetUpdateMarketProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetUpdateMarketProposalsRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetUpdateMarketProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetUpdateMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetUpdateMarketProposalsRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetUpdateMarketProposalsRequest) - return target; -} - -size_t GetUpdateMarketProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetUpdateMarketProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetUpdateMarketProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetUpdateMarketProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetUpdateMarketProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetUpdateMarketProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetUpdateMarketProposalsRequest) - MergeFrom(*source); - } -} - -void GetUpdateMarketProposalsRequest::MergeFrom(const GetUpdateMarketProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetUpdateMarketProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetUpdateMarketProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetUpdateMarketProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetUpdateMarketProposalsRequest::CopyFrom(const GetUpdateMarketProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetUpdateMarketProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetUpdateMarketProposalsRequest::IsInitialized() const { - return true; -} - -void GetUpdateMarketProposalsRequest::InternalSwap(GetUpdateMarketProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetUpdateMarketProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetUpdateMarketProposalsResponse::_Internal { - public: -}; - -void GetUpdateMarketProposalsResponse::clear_data() { - data_.Clear(); -} -GetUpdateMarketProposalsResponse::GetUpdateMarketProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetUpdateMarketProposalsResponse) -} -GetUpdateMarketProposalsResponse::GetUpdateMarketProposalsResponse(const GetUpdateMarketProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetUpdateMarketProposalsResponse) -} - -void GetUpdateMarketProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto.base); -} - -GetUpdateMarketProposalsResponse::~GetUpdateMarketProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetUpdateMarketProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetUpdateMarketProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetUpdateMarketProposalsResponse::ArenaDtor(void* object) { - GetUpdateMarketProposalsResponse* _this = reinterpret_cast< GetUpdateMarketProposalsResponse* >(object); - (void)_this; -} -void GetUpdateMarketProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetUpdateMarketProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetUpdateMarketProposalsResponse& GetUpdateMarketProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetUpdateMarketProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetUpdateMarketProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetUpdateMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetUpdateMarketProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetUpdateMarketProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetUpdateMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetUpdateMarketProposalsResponse) - return target; -} - -size_t GetUpdateMarketProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetUpdateMarketProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetUpdateMarketProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetUpdateMarketProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetUpdateMarketProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetUpdateMarketProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetUpdateMarketProposalsResponse) - MergeFrom(*source); - } -} - -void GetUpdateMarketProposalsResponse::MergeFrom(const GetUpdateMarketProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetUpdateMarketProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetUpdateMarketProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetUpdateMarketProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetUpdateMarketProposalsResponse::CopyFrom(const GetUpdateMarketProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetUpdateMarketProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetUpdateMarketProposalsResponse::IsInitialized() const { - return true; -} - -void GetUpdateMarketProposalsResponse::InternalSwap(GetUpdateMarketProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetUpdateMarketProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNetworkParametersProposalsRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetNetworkParametersProposalsRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetNetworkParametersProposalsRequest::_Internal::select_in_state(const GetNetworkParametersProposalsRequest* msg) { - return *msg->select_in_state_; -} -GetNetworkParametersProposalsRequest::GetNetworkParametersProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNetworkParametersProposalsRequest) -} -GetNetworkParametersProposalsRequest::GetNetworkParametersProposalsRequest(const GetNetworkParametersProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetNetworkParametersProposalsRequest) -} - -void GetNetworkParametersProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto.base); - select_in_state_ = nullptr; -} - -GetNetworkParametersProposalsRequest::~GetNetworkParametersProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetNetworkParametersProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNetworkParametersProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetNetworkParametersProposalsRequest::ArenaDtor(void* object) { - GetNetworkParametersProposalsRequest* _this = reinterpret_cast< GetNetworkParametersProposalsRequest* >(object); - (void)_this; -} -void GetNetworkParametersProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNetworkParametersProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNetworkParametersProposalsRequest& GetNetworkParametersProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNetworkParametersProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNetworkParametersProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNetworkParametersProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNetworkParametersProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNetworkParametersProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNetworkParametersProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNetworkParametersProposalsRequest) - return target; -} - -size_t GetNetworkParametersProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNetworkParametersProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNetworkParametersProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNetworkParametersProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetNetworkParametersProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNetworkParametersProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNetworkParametersProposalsRequest) - MergeFrom(*source); - } -} - -void GetNetworkParametersProposalsRequest::MergeFrom(const GetNetworkParametersProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNetworkParametersProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetNetworkParametersProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNetworkParametersProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNetworkParametersProposalsRequest::CopyFrom(const GetNetworkParametersProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNetworkParametersProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNetworkParametersProposalsRequest::IsInitialized() const { - return true; -} - -void GetNetworkParametersProposalsRequest::InternalSwap(GetNetworkParametersProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNetworkParametersProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNetworkParametersProposalsResponse::_Internal { - public: -}; - -void GetNetworkParametersProposalsResponse::clear_data() { - data_.Clear(); -} -GetNetworkParametersProposalsResponse::GetNetworkParametersProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNetworkParametersProposalsResponse) -} -GetNetworkParametersProposalsResponse::GetNetworkParametersProposalsResponse(const GetNetworkParametersProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetNetworkParametersProposalsResponse) -} - -void GetNetworkParametersProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto.base); -} - -GetNetworkParametersProposalsResponse::~GetNetworkParametersProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetNetworkParametersProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNetworkParametersProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetNetworkParametersProposalsResponse::ArenaDtor(void* object) { - GetNetworkParametersProposalsResponse* _this = reinterpret_cast< GetNetworkParametersProposalsResponse* >(object); - (void)_this; -} -void GetNetworkParametersProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNetworkParametersProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNetworkParametersProposalsResponse& GetNetworkParametersProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNetworkParametersProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNetworkParametersProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNetworkParametersProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNetworkParametersProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNetworkParametersProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNetworkParametersProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNetworkParametersProposalsResponse) - return target; -} - -size_t GetNetworkParametersProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNetworkParametersProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNetworkParametersProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNetworkParametersProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetNetworkParametersProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNetworkParametersProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNetworkParametersProposalsResponse) - MergeFrom(*source); - } -} - -void GetNetworkParametersProposalsResponse::MergeFrom(const GetNetworkParametersProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNetworkParametersProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetNetworkParametersProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNetworkParametersProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNetworkParametersProposalsResponse::CopyFrom(const GetNetworkParametersProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNetworkParametersProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNetworkParametersProposalsResponse::IsInitialized() const { - return true; -} - -void GetNetworkParametersProposalsResponse::InternalSwap(GetNetworkParametersProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNetworkParametersProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNewAssetProposalsRequest::_Internal { - public: - static const ::api::v1::OptionalProposalState& select_in_state(const GetNewAssetProposalsRequest* msg); -}; - -const ::api::v1::OptionalProposalState& -GetNewAssetProposalsRequest::_Internal::select_in_state(const GetNewAssetProposalsRequest* msg) { - return *msg->select_in_state_; -} -GetNewAssetProposalsRequest::GetNewAssetProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNewAssetProposalsRequest) -} -GetNewAssetProposalsRequest::GetNewAssetProposalsRequest(const GetNewAssetProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_select_in_state()) { - select_in_state_ = new ::api::v1::OptionalProposalState(*from.select_in_state_); - } else { - select_in_state_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetNewAssetProposalsRequest) -} - -void GetNewAssetProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto.base); - select_in_state_ = nullptr; -} - -GetNewAssetProposalsRequest::~GetNewAssetProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetNewAssetProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNewAssetProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete select_in_state_; -} - -void GetNewAssetProposalsRequest::ArenaDtor(void* object) { - GetNewAssetProposalsRequest* _this = reinterpret_cast< GetNewAssetProposalsRequest* >(object); - (void)_this; -} -void GetNewAssetProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNewAssetProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNewAssetProposalsRequest& GetNewAssetProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNewAssetProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNewAssetProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNewAssetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNewAssetProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_select_in_state(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNewAssetProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNewAssetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::select_in_state(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNewAssetProposalsRequest) - return target; -} - -size_t GetNewAssetProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNewAssetProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - if (this->has_select_in_state()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *select_in_state_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNewAssetProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNewAssetProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetNewAssetProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNewAssetProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNewAssetProposalsRequest) - MergeFrom(*source); - } -} - -void GetNewAssetProposalsRequest::MergeFrom(const GetNewAssetProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNewAssetProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_select_in_state()) { - _internal_mutable_select_in_state()->::api::v1::OptionalProposalState::MergeFrom(from._internal_select_in_state()); - } -} - -void GetNewAssetProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNewAssetProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNewAssetProposalsRequest::CopyFrom(const GetNewAssetProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNewAssetProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNewAssetProposalsRequest::IsInitialized() const { - return true; -} - -void GetNewAssetProposalsRequest::InternalSwap(GetNewAssetProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(select_in_state_, other->select_in_state_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNewAssetProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetNewAssetProposalsResponse::_Internal { - public: -}; - -void GetNewAssetProposalsResponse::clear_data() { - data_.Clear(); -} -GetNewAssetProposalsResponse::GetNewAssetProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetNewAssetProposalsResponse) -} -GetNewAssetProposalsResponse::GetNewAssetProposalsResponse(const GetNewAssetProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_(from.data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetNewAssetProposalsResponse) -} - -void GetNewAssetProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto.base); -} - -GetNewAssetProposalsResponse::~GetNewAssetProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetNewAssetProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetNewAssetProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetNewAssetProposalsResponse::ArenaDtor(void* object) { - GetNewAssetProposalsResponse* _this = reinterpret_cast< GetNewAssetProposalsResponse* >(object); - (void)_this; -} -void GetNewAssetProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetNewAssetProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetNewAssetProposalsResponse& GetNewAssetProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetNewAssetProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetNewAssetProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetNewAssetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetNewAssetProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetNewAssetProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetNewAssetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetNewAssetProposalsResponse) - return target; -} - -size_t GetNewAssetProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetNewAssetProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - total_size += 1UL * this->_internal_data_size(); - for (const auto& msg : this->data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetNewAssetProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetNewAssetProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetNewAssetProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetNewAssetProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetNewAssetProposalsResponse) - MergeFrom(*source); - } -} - -void GetNewAssetProposalsResponse::MergeFrom(const GetNewAssetProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetNewAssetProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetNewAssetProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetNewAssetProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetNewAssetProposalsResponse::CopyFrom(const GetNewAssetProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetNewAssetProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetNewAssetProposalsResponse::IsInitialized() const { - return true; -} - -void GetNewAssetProposalsResponse::InternalSwap(GetNewAssetProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetNewAssetProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalByIDRequest::_Internal { - public: -}; - -GetProposalByIDRequest::GetProposalByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalByIDRequest) -} -GetProposalByIDRequest::GetProposalByIDRequest(const GetProposalByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - proposal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_proposal_id().empty()) { - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalByIDRequest) -} - -void GetProposalByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalByIDRequest_api_2ftrading_2eproto.base); - proposal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GetProposalByIDRequest::~GetProposalByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - proposal_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetProposalByIDRequest::ArenaDtor(void* object) { - GetProposalByIDRequest* _this = reinterpret_cast< GetProposalByIDRequest* >(object); - (void)_this; -} -void GetProposalByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalByIDRequest& GetProposalByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - proposal_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_proposal_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetProposalByIDRequest.proposal_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - if (this->proposal_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_proposal_id().data(), static_cast(this->_internal_proposal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetProposalByIDRequest.proposal_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_proposal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalByIDRequest) - return target; -} - -size_t GetProposalByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - if (this->proposal_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_proposal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalByIDRequest) - MergeFrom(*source); - } -} - -void GetProposalByIDRequest::MergeFrom(const GetProposalByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.proposal_id().size() > 0) { - _internal_set_proposal_id(from._internal_proposal_id()); - } -} - -void GetProposalByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalByIDRequest::CopyFrom(const GetProposalByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalByIDRequest::IsInitialized() const { - return true; -} - -void GetProposalByIDRequest::InternalSwap(GetProposalByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - proposal_id_.Swap(&other->proposal_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalByIDResponse::_Internal { - public: - static const ::vega::GovernanceData& data(const GetProposalByIDResponse* msg); -}; - -const ::vega::GovernanceData& -GetProposalByIDResponse::_Internal::data(const GetProposalByIDResponse* msg) { - return *msg->data_; -} -void GetProposalByIDResponse::clear_data() { - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; -} -GetProposalByIDResponse::GetProposalByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalByIDResponse) -} -GetProposalByIDResponse::GetProposalByIDResponse(const GetProposalByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_data()) { - data_ = new ::vega::GovernanceData(*from.data_); - } else { - data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalByIDResponse) -} - -void GetProposalByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalByIDResponse_api_2ftrading_2eproto.base); - data_ = nullptr; -} - -GetProposalByIDResponse::~GetProposalByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete data_; -} - -void GetProposalByIDResponse::ArenaDtor(void* object) { - GetProposalByIDResponse* _this = reinterpret_cast< GetProposalByIDResponse* >(object); - (void)_this; -} -void GetProposalByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalByIDResponse& GetProposalByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalByIDResponse) - return target; -} - -size_t GetProposalByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalByIDResponse) - MergeFrom(*source); - } -} - -void GetProposalByIDResponse::MergeFrom(const GetProposalByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_data()) { - _internal_mutable_data()->::vega::GovernanceData::MergeFrom(from._internal_data()); - } -} - -void GetProposalByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalByIDResponse::CopyFrom(const GetProposalByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalByIDResponse::IsInitialized() const { - return true; -} - -void GetProposalByIDResponse::InternalSwap(GetProposalByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalByReferenceRequest::_Internal { - public: -}; - -GetProposalByReferenceRequest::GetProposalByReferenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalByReferenceRequest) -} -GetProposalByReferenceRequest::GetProposalByReferenceRequest(const GetProposalByReferenceRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_reference().empty()) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalByReferenceRequest) -} - -void GetProposalByReferenceRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto.base); - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GetProposalByReferenceRequest::~GetProposalByReferenceRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalByReferenceRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalByReferenceRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GetProposalByReferenceRequest::ArenaDtor(void* object) { - GetProposalByReferenceRequest* _this = reinterpret_cast< GetProposalByReferenceRequest* >(object); - (void)_this; -} -void GetProposalByReferenceRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalByReferenceRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalByReferenceRequest& GetProposalByReferenceRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalByReferenceRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalByReferenceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reference_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalByReferenceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string reference = 1 [json_name = "reference", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_reference(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.GetProposalByReferenceRequest.reference")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalByReferenceRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string reference = 1 [json_name = "reference", (.validator.field) = { - if (this->reference().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_reference().data(), static_cast(this->_internal_reference().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.GetProposalByReferenceRequest.reference"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_reference(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalByReferenceRequest) - return target; -} - -size_t GetProposalByReferenceRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalByReferenceRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string reference = 1 [json_name = "reference", (.validator.field) = { - if (this->reference().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_reference()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalByReferenceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalByReferenceRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalByReferenceRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalByReferenceRequest) - MergeFrom(*source); - } -} - -void GetProposalByReferenceRequest::MergeFrom(const GetProposalByReferenceRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalByReferenceRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.reference().size() > 0) { - _internal_set_reference(from._internal_reference()); - } -} - -void GetProposalByReferenceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalByReferenceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalByReferenceRequest::CopyFrom(const GetProposalByReferenceRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalByReferenceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalByReferenceRequest::IsInitialized() const { - return true; -} - -void GetProposalByReferenceRequest::InternalSwap(GetProposalByReferenceRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalByReferenceRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetProposalByReferenceResponse::_Internal { - public: - static const ::vega::GovernanceData& data(const GetProposalByReferenceResponse* msg); -}; - -const ::vega::GovernanceData& -GetProposalByReferenceResponse::_Internal::data(const GetProposalByReferenceResponse* msg) { - return *msg->data_; -} -void GetProposalByReferenceResponse::clear_data() { - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; -} -GetProposalByReferenceResponse::GetProposalByReferenceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetProposalByReferenceResponse) -} -GetProposalByReferenceResponse::GetProposalByReferenceResponse(const GetProposalByReferenceResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_data()) { - data_ = new ::vega::GovernanceData(*from.data_); - } else { - data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.GetProposalByReferenceResponse) -} - -void GetProposalByReferenceResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto.base); - data_ = nullptr; -} - -GetProposalByReferenceResponse::~GetProposalByReferenceResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetProposalByReferenceResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetProposalByReferenceResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete data_; -} - -void GetProposalByReferenceResponse::ArenaDtor(void* object) { - GetProposalByReferenceResponse* _this = reinterpret_cast< GetProposalByReferenceResponse* >(object); - (void)_this; -} -void GetProposalByReferenceResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetProposalByReferenceResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetProposalByReferenceResponse& GetProposalByReferenceResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetProposalByReferenceResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetProposalByReferenceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetProposalByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetProposalByReferenceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetProposalByReferenceResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetProposalByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetProposalByReferenceResponse) - return target; -} - -size_t GetProposalByReferenceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetProposalByReferenceResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetProposalByReferenceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetProposalByReferenceResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetProposalByReferenceResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetProposalByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetProposalByReferenceResponse) - MergeFrom(*source); - } -} - -void GetProposalByReferenceResponse::MergeFrom(const GetProposalByReferenceResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetProposalByReferenceResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_data()) { - _internal_mutable_data()->::vega::GovernanceData::MergeFrom(from._internal_data()); - } -} - -void GetProposalByReferenceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetProposalByReferenceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetProposalByReferenceResponse::CopyFrom(const GetProposalByReferenceResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetProposalByReferenceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetProposalByReferenceResponse::IsInitialized() const { - return true; -} - -void GetProposalByReferenceResponse::InternalSwap(GetProposalByReferenceResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetProposalByReferenceResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveGovernanceRequest::_Internal { - public: -}; - -ObserveGovernanceRequest::ObserveGovernanceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveGovernanceRequest) -} -ObserveGovernanceRequest::ObserveGovernanceRequest(const ObserveGovernanceRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveGovernanceRequest) -} - -void ObserveGovernanceRequest::SharedCtor() { -} - -ObserveGovernanceRequest::~ObserveGovernanceRequest() { - // @@protoc_insertion_point(destructor:api.v1.ObserveGovernanceRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveGovernanceRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void ObserveGovernanceRequest::ArenaDtor(void* object) { - ObserveGovernanceRequest* _this = reinterpret_cast< ObserveGovernanceRequest* >(object); - (void)_this; -} -void ObserveGovernanceRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveGovernanceRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveGovernanceRequest& ObserveGovernanceRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveGovernanceRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveGovernanceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveGovernanceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveGovernanceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveGovernanceRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveGovernanceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveGovernanceRequest) - return target; -} - -size_t ObserveGovernanceRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveGovernanceRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveGovernanceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveGovernanceRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObserveGovernanceRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveGovernanceRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveGovernanceRequest) - MergeFrom(*source); - } -} - -void ObserveGovernanceRequest::MergeFrom(const ObserveGovernanceRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveGovernanceRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ObserveGovernanceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveGovernanceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveGovernanceRequest::CopyFrom(const ObserveGovernanceRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveGovernanceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveGovernanceRequest::IsInitialized() const { - return true; -} - -void ObserveGovernanceRequest::InternalSwap(ObserveGovernanceRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveGovernanceRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveGovernanceResponse::_Internal { - public: - static const ::vega::GovernanceData& data(const ObserveGovernanceResponse* msg); -}; - -const ::vega::GovernanceData& -ObserveGovernanceResponse::_Internal::data(const ObserveGovernanceResponse* msg) { - return *msg->data_; -} -void ObserveGovernanceResponse::clear_data() { - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; -} -ObserveGovernanceResponse::ObserveGovernanceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveGovernanceResponse) -} -ObserveGovernanceResponse::ObserveGovernanceResponse(const ObserveGovernanceResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_data()) { - data_ = new ::vega::GovernanceData(*from.data_); - } else { - data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveGovernanceResponse) -} - -void ObserveGovernanceResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveGovernanceResponse_api_2ftrading_2eproto.base); - data_ = nullptr; -} - -ObserveGovernanceResponse::~ObserveGovernanceResponse() { - // @@protoc_insertion_point(destructor:api.v1.ObserveGovernanceResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveGovernanceResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete data_; -} - -void ObserveGovernanceResponse::ArenaDtor(void* object) { - ObserveGovernanceResponse* _this = reinterpret_cast< ObserveGovernanceResponse* >(object); - (void)_this; -} -void ObserveGovernanceResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveGovernanceResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveGovernanceResponse& ObserveGovernanceResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveGovernanceResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveGovernanceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveGovernanceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveGovernanceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveGovernanceResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveGovernanceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveGovernanceResponse) - return target; -} - -size_t ObserveGovernanceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveGovernanceResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveGovernanceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveGovernanceResponse) - GOOGLE_DCHECK_NE(&from, this); - const ObserveGovernanceResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveGovernanceResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveGovernanceResponse) - MergeFrom(*source); - } -} - -void ObserveGovernanceResponse::MergeFrom(const ObserveGovernanceResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveGovernanceResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_data()) { - _internal_mutable_data()->::vega::GovernanceData::MergeFrom(from._internal_data()); - } -} - -void ObserveGovernanceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveGovernanceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveGovernanceResponse::CopyFrom(const ObserveGovernanceResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveGovernanceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveGovernanceResponse::IsInitialized() const { - return true; -} - -void ObserveGovernanceResponse::InternalSwap(ObserveGovernanceResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveGovernanceResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObservePartyProposalsRequest::_Internal { - public: -}; - -ObservePartyProposalsRequest::ObservePartyProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObservePartyProposalsRequest) -} -ObservePartyProposalsRequest::ObservePartyProposalsRequest(const ObservePartyProposalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObservePartyProposalsRequest) -} - -void ObservePartyProposalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -ObservePartyProposalsRequest::~ObservePartyProposalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.ObservePartyProposalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObservePartyProposalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ObservePartyProposalsRequest::ArenaDtor(void* object) { - ObservePartyProposalsRequest* _this = reinterpret_cast< ObservePartyProposalsRequest* >(object); - (void)_this; -} -void ObservePartyProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObservePartyProposalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObservePartyProposalsRequest& ObservePartyProposalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObservePartyProposalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObservePartyProposalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObservePartyProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObservePartyProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObservePartyProposalsRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObservePartyProposalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObservePartyProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ObservePartyProposalsRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObservePartyProposalsRequest) - return target; -} - -size_t ObservePartyProposalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObservePartyProposalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObservePartyProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObservePartyProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObservePartyProposalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObservePartyProposalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObservePartyProposalsRequest) - MergeFrom(*source); - } -} - -void ObservePartyProposalsRequest::MergeFrom(const ObservePartyProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObservePartyProposalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void ObservePartyProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObservePartyProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObservePartyProposalsRequest::CopyFrom(const ObservePartyProposalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObservePartyProposalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObservePartyProposalsRequest::IsInitialized() const { - return true; -} - -void ObservePartyProposalsRequest::InternalSwap(ObservePartyProposalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObservePartyProposalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObservePartyProposalsResponse::_Internal { - public: - static const ::vega::GovernanceData& data(const ObservePartyProposalsResponse* msg); -}; - -const ::vega::GovernanceData& -ObservePartyProposalsResponse::_Internal::data(const ObservePartyProposalsResponse* msg) { - return *msg->data_; -} -void ObservePartyProposalsResponse::clear_data() { - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; -} -ObservePartyProposalsResponse::ObservePartyProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObservePartyProposalsResponse) -} -ObservePartyProposalsResponse::ObservePartyProposalsResponse(const ObservePartyProposalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_data()) { - data_ = new ::vega::GovernanceData(*from.data_); - } else { - data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObservePartyProposalsResponse) -} - -void ObservePartyProposalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto.base); - data_ = nullptr; -} - -ObservePartyProposalsResponse::~ObservePartyProposalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.ObservePartyProposalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObservePartyProposalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete data_; -} - -void ObservePartyProposalsResponse::ArenaDtor(void* object) { - ObservePartyProposalsResponse* _this = reinterpret_cast< ObservePartyProposalsResponse* >(object); - (void)_this; -} -void ObservePartyProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObservePartyProposalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObservePartyProposalsResponse& ObservePartyProposalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObservePartyProposalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObservePartyProposalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObservePartyProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && data_ != nullptr) { - delete data_; - } - data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObservePartyProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.GovernanceData data = 1 [json_name = "data"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObservePartyProposalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObservePartyProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObservePartyProposalsResponse) - return target; -} - -size_t ObservePartyProposalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObservePartyProposalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.GovernanceData data = 1 [json_name = "data"]; - if (this->has_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObservePartyProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObservePartyProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const ObservePartyProposalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObservePartyProposalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObservePartyProposalsResponse) - MergeFrom(*source); - } -} - -void ObservePartyProposalsResponse::MergeFrom(const ObservePartyProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObservePartyProposalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_data()) { - _internal_mutable_data()->::vega::GovernanceData::MergeFrom(from._internal_data()); - } -} - -void ObservePartyProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObservePartyProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObservePartyProposalsResponse::CopyFrom(const ObservePartyProposalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObservePartyProposalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObservePartyProposalsResponse::IsInitialized() const { - return true; -} - -void ObservePartyProposalsResponse::InternalSwap(ObservePartyProposalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObservePartyProposalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveProposalVotesRequest::_Internal { - public: -}; - -ObserveProposalVotesRequest::ObserveProposalVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveProposalVotesRequest) -} -ObserveProposalVotesRequest::ObserveProposalVotesRequest(const ObserveProposalVotesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - proposal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_proposal_id().empty()) { - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveProposalVotesRequest) -} - -void ObserveProposalVotesRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto.base); - proposal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -ObserveProposalVotesRequest::~ObserveProposalVotesRequest() { - // @@protoc_insertion_point(destructor:api.v1.ObserveProposalVotesRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveProposalVotesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - proposal_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ObserveProposalVotesRequest::ArenaDtor(void* object) { - ObserveProposalVotesRequest* _this = reinterpret_cast< ObserveProposalVotesRequest* >(object); - (void)_this; -} -void ObserveProposalVotesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveProposalVotesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveProposalVotesRequest& ObserveProposalVotesRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveProposalVotesRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveProposalVotesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveProposalVotesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - proposal_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveProposalVotesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_proposal_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObserveProposalVotesRequest.proposal_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveProposalVotesRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveProposalVotesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - if (this->proposal_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_proposal_id().data(), static_cast(this->_internal_proposal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ObserveProposalVotesRequest.proposal_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_proposal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveProposalVotesRequest) - return target; -} - -size_t ObserveProposalVotesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveProposalVotesRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - if (this->proposal_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_proposal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveProposalVotesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveProposalVotesRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObserveProposalVotesRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveProposalVotesRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveProposalVotesRequest) - MergeFrom(*source); - } -} - -void ObserveProposalVotesRequest::MergeFrom(const ObserveProposalVotesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveProposalVotesRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.proposal_id().size() > 0) { - _internal_set_proposal_id(from._internal_proposal_id()); - } -} - -void ObserveProposalVotesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveProposalVotesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveProposalVotesRequest::CopyFrom(const ObserveProposalVotesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveProposalVotesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveProposalVotesRequest::IsInitialized() const { - return true; -} - -void ObserveProposalVotesRequest::InternalSwap(ObserveProposalVotesRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - proposal_id_.Swap(&other->proposal_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveProposalVotesRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveProposalVotesResponse::_Internal { - public: - static const ::vega::Vote& vote(const ObserveProposalVotesResponse* msg); -}; - -const ::vega::Vote& -ObserveProposalVotesResponse::_Internal::vote(const ObserveProposalVotesResponse* msg) { - return *msg->vote_; -} -void ObserveProposalVotesResponse::clear_vote() { - if (GetArena() == nullptr && vote_ != nullptr) { - delete vote_; - } - vote_ = nullptr; -} -ObserveProposalVotesResponse::ObserveProposalVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveProposalVotesResponse) -} -ObserveProposalVotesResponse::ObserveProposalVotesResponse(const ObserveProposalVotesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_vote()) { - vote_ = new ::vega::Vote(*from.vote_); - } else { - vote_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveProposalVotesResponse) -} - -void ObserveProposalVotesResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto.base); - vote_ = nullptr; -} - -ObserveProposalVotesResponse::~ObserveProposalVotesResponse() { - // @@protoc_insertion_point(destructor:api.v1.ObserveProposalVotesResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveProposalVotesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete vote_; -} - -void ObserveProposalVotesResponse::ArenaDtor(void* object) { - ObserveProposalVotesResponse* _this = reinterpret_cast< ObserveProposalVotesResponse* >(object); - (void)_this; -} -void ObserveProposalVotesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveProposalVotesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveProposalVotesResponse& ObserveProposalVotesResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveProposalVotesResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveProposalVotesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveProposalVotesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && vote_ != nullptr) { - delete vote_; - } - vote_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveProposalVotesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Vote vote = 1 [json_name = "vote"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_vote(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveProposalVotesResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveProposalVotesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Vote vote = 1 [json_name = "vote"]; - if (this->has_vote()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::vote(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveProposalVotesResponse) - return target; -} - -size_t ObserveProposalVotesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveProposalVotesResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Vote vote = 1 [json_name = "vote"]; - if (this->has_vote()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vote_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveProposalVotesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveProposalVotesResponse) - GOOGLE_DCHECK_NE(&from, this); - const ObserveProposalVotesResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveProposalVotesResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveProposalVotesResponse) - MergeFrom(*source); - } -} - -void ObserveProposalVotesResponse::MergeFrom(const ObserveProposalVotesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveProposalVotesResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_vote()) { - _internal_mutable_vote()->::vega::Vote::MergeFrom(from._internal_vote()); - } -} - -void ObserveProposalVotesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveProposalVotesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveProposalVotesResponse::CopyFrom(const ObserveProposalVotesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveProposalVotesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveProposalVotesResponse::IsInitialized() const { - return true; -} - -void ObserveProposalVotesResponse::InternalSwap(ObserveProposalVotesResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(vote_, other->vote_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveProposalVotesResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObservePartyVotesRequest::_Internal { - public: -}; - -ObservePartyVotesRequest::ObservePartyVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObservePartyVotesRequest) -} -ObservePartyVotesRequest::ObservePartyVotesRequest(const ObservePartyVotesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObservePartyVotesRequest) -} - -void ObservePartyVotesRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObservePartyVotesRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -ObservePartyVotesRequest::~ObservePartyVotesRequest() { - // @@protoc_insertion_point(destructor:api.v1.ObservePartyVotesRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObservePartyVotesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ObservePartyVotesRequest::ArenaDtor(void* object) { - ObservePartyVotesRequest* _this = reinterpret_cast< ObservePartyVotesRequest* >(object); - (void)_this; -} -void ObservePartyVotesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObservePartyVotesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObservePartyVotesRequest& ObservePartyVotesRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObservePartyVotesRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObservePartyVotesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObservePartyVotesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObservePartyVotesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObservePartyVotesRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObservePartyVotesRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObservePartyVotesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ObservePartyVotesRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObservePartyVotesRequest) - return target; -} - -size_t ObservePartyVotesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObservePartyVotesRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObservePartyVotesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObservePartyVotesRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObservePartyVotesRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObservePartyVotesRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObservePartyVotesRequest) - MergeFrom(*source); - } -} - -void ObservePartyVotesRequest::MergeFrom(const ObservePartyVotesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObservePartyVotesRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void ObservePartyVotesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObservePartyVotesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObservePartyVotesRequest::CopyFrom(const ObservePartyVotesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObservePartyVotesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObservePartyVotesRequest::IsInitialized() const { - return true; -} - -void ObservePartyVotesRequest::InternalSwap(ObservePartyVotesRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObservePartyVotesRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObservePartyVotesResponse::_Internal { - public: - static const ::vega::Vote& vote(const ObservePartyVotesResponse* msg); -}; - -const ::vega::Vote& -ObservePartyVotesResponse::_Internal::vote(const ObservePartyVotesResponse* msg) { - return *msg->vote_; -} -void ObservePartyVotesResponse::clear_vote() { - if (GetArena() == nullptr && vote_ != nullptr) { - delete vote_; - } - vote_ = nullptr; -} -ObservePartyVotesResponse::ObservePartyVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObservePartyVotesResponse) -} -ObservePartyVotesResponse::ObservePartyVotesResponse(const ObservePartyVotesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_vote()) { - vote_ = new ::vega::Vote(*from.vote_); - } else { - vote_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.ObservePartyVotesResponse) -} - -void ObservePartyVotesResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObservePartyVotesResponse_api_2ftrading_2eproto.base); - vote_ = nullptr; -} - -ObservePartyVotesResponse::~ObservePartyVotesResponse() { - // @@protoc_insertion_point(destructor:api.v1.ObservePartyVotesResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObservePartyVotesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete vote_; -} - -void ObservePartyVotesResponse::ArenaDtor(void* object) { - ObservePartyVotesResponse* _this = reinterpret_cast< ObservePartyVotesResponse* >(object); - (void)_this; -} -void ObservePartyVotesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObservePartyVotesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObservePartyVotesResponse& ObservePartyVotesResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObservePartyVotesResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObservePartyVotesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObservePartyVotesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && vote_ != nullptr) { - delete vote_; - } - vote_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObservePartyVotesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Vote vote = 1 [json_name = "vote"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_vote(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObservePartyVotesResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObservePartyVotesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Vote vote = 1 [json_name = "vote"]; - if (this->has_vote()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::vote(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObservePartyVotesResponse) - return target; -} - -size_t ObservePartyVotesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObservePartyVotesResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Vote vote = 1 [json_name = "vote"]; - if (this->has_vote()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vote_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObservePartyVotesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObservePartyVotesResponse) - GOOGLE_DCHECK_NE(&from, this); - const ObservePartyVotesResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObservePartyVotesResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObservePartyVotesResponse) - MergeFrom(*source); - } -} - -void ObservePartyVotesResponse::MergeFrom(const ObservePartyVotesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObservePartyVotesResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_vote()) { - _internal_mutable_vote()->::vega::Vote::MergeFrom(from._internal_vote()); - } -} - -void ObservePartyVotesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObservePartyVotesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObservePartyVotesResponse::CopyFrom(const ObservePartyVotesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObservePartyVotesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObservePartyVotesResponse::IsInitialized() const { - return true; -} - -void ObservePartyVotesResponse::InternalSwap(ObservePartyVotesResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(vote_, other->vote_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObservePartyVotesResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarginLevelsSubscribeRequest::_Internal { - public: -}; - -MarginLevelsSubscribeRequest::MarginLevelsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarginLevelsSubscribeRequest) -} -MarginLevelsSubscribeRequest::MarginLevelsSubscribeRequest(const MarginLevelsSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarginLevelsSubscribeRequest) -} - -void MarginLevelsSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarginLevelsSubscribeRequest::~MarginLevelsSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarginLevelsSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarginLevelsSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarginLevelsSubscribeRequest::ArenaDtor(void* object) { - MarginLevelsSubscribeRequest* _this = reinterpret_cast< MarginLevelsSubscribeRequest* >(object); - (void)_this; -} -void MarginLevelsSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarginLevelsSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarginLevelsSubscribeRequest& MarginLevelsSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarginLevelsSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarginLevelsSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarginLevelsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarginLevelsSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarginLevelsSubscribeRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarginLevelsSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarginLevelsSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarginLevelsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarginLevelsSubscribeRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarginLevelsSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarginLevelsSubscribeRequest) - return target; -} - -size_t MarginLevelsSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarginLevelsSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarginLevelsSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarginLevelsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarginLevelsSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarginLevelsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarginLevelsSubscribeRequest) - MergeFrom(*source); - } -} - -void MarginLevelsSubscribeRequest::MergeFrom(const MarginLevelsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarginLevelsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarginLevelsSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarginLevelsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarginLevelsSubscribeRequest::CopyFrom(const MarginLevelsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarginLevelsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarginLevelsSubscribeRequest::IsInitialized() const { - return true; -} - -void MarginLevelsSubscribeRequest::InternalSwap(MarginLevelsSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarginLevelsSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarginLevelsSubscribeResponse::_Internal { - public: - static const ::vega::MarginLevels& margin_levels(const MarginLevelsSubscribeResponse* msg); -}; - -const ::vega::MarginLevels& -MarginLevelsSubscribeResponse::_Internal::margin_levels(const MarginLevelsSubscribeResponse* msg) { - return *msg->margin_levels_; -} -void MarginLevelsSubscribeResponse::clear_margin_levels() { - if (GetArena() == nullptr && margin_levels_ != nullptr) { - delete margin_levels_; - } - margin_levels_ = nullptr; -} -MarginLevelsSubscribeResponse::MarginLevelsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarginLevelsSubscribeResponse) -} -MarginLevelsSubscribeResponse::MarginLevelsSubscribeResponse(const MarginLevelsSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_margin_levels()) { - margin_levels_ = new ::vega::MarginLevels(*from.margin_levels_); - } else { - margin_levels_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarginLevelsSubscribeResponse) -} - -void MarginLevelsSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto.base); - margin_levels_ = nullptr; -} - -MarginLevelsSubscribeResponse::~MarginLevelsSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarginLevelsSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarginLevelsSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete margin_levels_; -} - -void MarginLevelsSubscribeResponse::ArenaDtor(void* object) { - MarginLevelsSubscribeResponse* _this = reinterpret_cast< MarginLevelsSubscribeResponse* >(object); - (void)_this; -} -void MarginLevelsSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarginLevelsSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarginLevelsSubscribeResponse& MarginLevelsSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarginLevelsSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarginLevelsSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarginLevelsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && margin_levels_ != nullptr) { - delete margin_levels_; - } - margin_levels_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarginLevelsSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_margin_levels(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarginLevelsSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarginLevelsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - if (this->has_margin_levels()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::margin_levels(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarginLevelsSubscribeResponse) - return target; -} - -size_t MarginLevelsSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarginLevelsSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - if (this->has_margin_levels()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *margin_levels_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarginLevelsSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarginLevelsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarginLevelsSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarginLevelsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarginLevelsSubscribeResponse) - MergeFrom(*source); - } -} - -void MarginLevelsSubscribeResponse::MergeFrom(const MarginLevelsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarginLevelsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_margin_levels()) { - _internal_mutable_margin_levels()->::vega::MarginLevels::MergeFrom(from._internal_margin_levels()); - } -} - -void MarginLevelsSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarginLevelsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarginLevelsSubscribeResponse::CopyFrom(const MarginLevelsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarginLevelsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarginLevelsSubscribeResponse::IsInitialized() const { - return true; -} - -void MarginLevelsSubscribeResponse::InternalSwap(MarginLevelsSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(margin_levels_, other->margin_levels_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarginLevelsSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarginLevelsRequest::_Internal { - public: -}; - -MarginLevelsRequest::MarginLevelsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarginLevelsRequest) -} -MarginLevelsRequest::MarginLevelsRequest(const MarginLevelsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarginLevelsRequest) -} - -void MarginLevelsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarginLevelsRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarginLevelsRequest::~MarginLevelsRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarginLevelsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarginLevelsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarginLevelsRequest::ArenaDtor(void* object) { - MarginLevelsRequest* _this = reinterpret_cast< MarginLevelsRequest* >(object); - (void)_this; -} -void MarginLevelsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarginLevelsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarginLevelsRequest& MarginLevelsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarginLevelsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarginLevelsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarginLevelsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarginLevelsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarginLevelsRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarginLevelsRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarginLevelsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarginLevelsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarginLevelsRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarginLevelsRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarginLevelsRequest) - return target; -} - -size_t MarginLevelsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarginLevelsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarginLevelsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarginLevelsRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarginLevelsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarginLevelsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarginLevelsRequest) - MergeFrom(*source); - } -} - -void MarginLevelsRequest::MergeFrom(const MarginLevelsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarginLevelsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarginLevelsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarginLevelsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarginLevelsRequest::CopyFrom(const MarginLevelsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarginLevelsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarginLevelsRequest::IsInitialized() const { - return true; -} - -void MarginLevelsRequest::InternalSwap(MarginLevelsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarginLevelsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarginLevelsResponse::_Internal { - public: -}; - -void MarginLevelsResponse::clear_margin_levels() { - margin_levels_.Clear(); -} -MarginLevelsResponse::MarginLevelsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - margin_levels_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarginLevelsResponse) -} -MarginLevelsResponse::MarginLevelsResponse(const MarginLevelsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - margin_levels_(from.margin_levels_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarginLevelsResponse) -} - -void MarginLevelsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarginLevelsResponse_api_2ftrading_2eproto.base); -} - -MarginLevelsResponse::~MarginLevelsResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarginLevelsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarginLevelsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarginLevelsResponse::ArenaDtor(void* object) { - MarginLevelsResponse* _this = reinterpret_cast< MarginLevelsResponse* >(object); - (void)_this; -} -void MarginLevelsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarginLevelsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarginLevelsResponse& MarginLevelsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarginLevelsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarginLevelsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarginLevelsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - margin_levels_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarginLevelsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_margin_levels(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarginLevelsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarginLevelsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_margin_levels_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_margin_levels(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarginLevelsResponse) - return target; -} - -size_t MarginLevelsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarginLevelsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - total_size += 1UL * this->_internal_margin_levels_size(); - for (const auto& msg : this->margin_levels_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarginLevelsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarginLevelsResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarginLevelsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarginLevelsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarginLevelsResponse) - MergeFrom(*source); - } -} - -void MarginLevelsResponse::MergeFrom(const MarginLevelsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarginLevelsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - margin_levels_.MergeFrom(from.margin_levels_); -} - -void MarginLevelsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarginLevelsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarginLevelsResponse::CopyFrom(const MarginLevelsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarginLevelsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarginLevelsResponse::IsInitialized() const { - return true; -} - -void MarginLevelsResponse::InternalSwap(MarginLevelsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - margin_levels_.InternalSwap(&other->margin_levels_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarginLevelsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsDataSubscribeRequest::_Internal { - public: -}; - -MarketsDataSubscribeRequest::MarketsDataSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsDataSubscribeRequest) -} -MarketsDataSubscribeRequest::MarketsDataSubscribeRequest(const MarketsDataSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsDataSubscribeRequest) -} - -void MarketsDataSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketsDataSubscribeRequest::~MarketsDataSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketsDataSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsDataSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketsDataSubscribeRequest::ArenaDtor(void* object) { - MarketsDataSubscribeRequest* _this = reinterpret_cast< MarketsDataSubscribeRequest* >(object); - (void)_this; -} -void MarketsDataSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsDataSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsDataSubscribeRequest& MarketsDataSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsDataSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsDataSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsDataSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsDataSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketsDataSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsDataSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsDataSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketsDataSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsDataSubscribeRequest) - return target; -} - -size_t MarketsDataSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsDataSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsDataSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsDataSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketsDataSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsDataSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsDataSubscribeRequest) - MergeFrom(*source); - } -} - -void MarketsDataSubscribeRequest::MergeFrom(const MarketsDataSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsDataSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarketsDataSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsDataSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsDataSubscribeRequest::CopyFrom(const MarketsDataSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsDataSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsDataSubscribeRequest::IsInitialized() const { - return true; -} - -void MarketsDataSubscribeRequest::InternalSwap(MarketsDataSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsDataSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsDataSubscribeResponse::_Internal { - public: - static const ::vega::MarketData& market_data(const MarketsDataSubscribeResponse* msg); -}; - -const ::vega::MarketData& -MarketsDataSubscribeResponse::_Internal::market_data(const MarketsDataSubscribeResponse* msg) { - return *msg->market_data_; -} -void MarketsDataSubscribeResponse::clear_market_data() { - if (GetArena() == nullptr && market_data_ != nullptr) { - delete market_data_; - } - market_data_ = nullptr; -} -MarketsDataSubscribeResponse::MarketsDataSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsDataSubscribeResponse) -} -MarketsDataSubscribeResponse::MarketsDataSubscribeResponse(const MarketsDataSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_market_data()) { - market_data_ = new ::vega::MarketData(*from.market_data_); - } else { - market_data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsDataSubscribeResponse) -} - -void MarketsDataSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto.base); - market_data_ = nullptr; -} - -MarketsDataSubscribeResponse::~MarketsDataSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketsDataSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsDataSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete market_data_; -} - -void MarketsDataSubscribeResponse::ArenaDtor(void* object) { - MarketsDataSubscribeResponse* _this = reinterpret_cast< MarketsDataSubscribeResponse* >(object); - (void)_this; -} -void MarketsDataSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsDataSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsDataSubscribeResponse& MarketsDataSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsDataSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsDataSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsDataSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && market_data_ != nullptr) { - delete market_data_; - } - market_data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsDataSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_market_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsDataSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsDataSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - if (this->has_market_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::market_data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsDataSubscribeResponse) - return target; -} - -size_t MarketsDataSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsDataSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - if (this->has_market_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *market_data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsDataSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsDataSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketsDataSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsDataSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsDataSubscribeResponse) - MergeFrom(*source); - } -} - -void MarketsDataSubscribeResponse::MergeFrom(const MarketsDataSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsDataSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_market_data()) { - _internal_mutable_market_data()->::vega::MarketData::MergeFrom(from._internal_market_data()); - } -} - -void MarketsDataSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsDataSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsDataSubscribeResponse::CopyFrom(const MarketsDataSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsDataSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsDataSubscribeResponse::IsInitialized() const { - return true; -} - -void MarketsDataSubscribeResponse::InternalSwap(MarketsDataSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(market_data_, other->market_data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsDataSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDataByIDRequest::_Internal { - public: -}; - -MarketDataByIDRequest::MarketDataByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDataByIDRequest) -} -MarketDataByIDRequest::MarketDataByIDRequest(const MarketDataByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDataByIDRequest) -} - -void MarketDataByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDataByIDRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketDataByIDRequest::~MarketDataByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketDataByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDataByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketDataByIDRequest::ArenaDtor(void* object) { - MarketDataByIDRequest* _this = reinterpret_cast< MarketDataByIDRequest* >(object); - (void)_this; -} -void MarketDataByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDataByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDataByIDRequest& MarketDataByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDataByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDataByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDataByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDataByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketDataByIDRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDataByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDataByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketDataByIDRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDataByIDRequest) - return target; -} - -size_t MarketDataByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDataByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDataByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDataByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketDataByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDataByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDataByIDRequest) - MergeFrom(*source); - } -} - -void MarketDataByIDRequest::MergeFrom(const MarketDataByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDataByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarketDataByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDataByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDataByIDRequest::CopyFrom(const MarketDataByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDataByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDataByIDRequest::IsInitialized() const { - return true; -} - -void MarketDataByIDRequest::InternalSwap(MarketDataByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDataByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDataByIDResponse::_Internal { - public: - static const ::vega::MarketData& market_data(const MarketDataByIDResponse* msg); -}; - -const ::vega::MarketData& -MarketDataByIDResponse::_Internal::market_data(const MarketDataByIDResponse* msg) { - return *msg->market_data_; -} -void MarketDataByIDResponse::clear_market_data() { - if (GetArena() == nullptr && market_data_ != nullptr) { - delete market_data_; - } - market_data_ = nullptr; -} -MarketDataByIDResponse::MarketDataByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDataByIDResponse) -} -MarketDataByIDResponse::MarketDataByIDResponse(const MarketDataByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_market_data()) { - market_data_ = new ::vega::MarketData(*from.market_data_); - } else { - market_data_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDataByIDResponse) -} - -void MarketDataByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDataByIDResponse_api_2ftrading_2eproto.base); - market_data_ = nullptr; -} - -MarketDataByIDResponse::~MarketDataByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketDataByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDataByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete market_data_; -} - -void MarketDataByIDResponse::ArenaDtor(void* object) { - MarketDataByIDResponse* _this = reinterpret_cast< MarketDataByIDResponse* >(object); - (void)_this; -} -void MarketDataByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDataByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDataByIDResponse& MarketDataByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDataByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDataByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDataByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && market_data_ != nullptr) { - delete market_data_; - } - market_data_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDataByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_market_data(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDataByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDataByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - if (this->has_market_data()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::market_data(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDataByIDResponse) - return target; -} - -size_t MarketDataByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDataByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - if (this->has_market_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *market_data_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDataByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDataByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketDataByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDataByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDataByIDResponse) - MergeFrom(*source); - } -} - -void MarketDataByIDResponse::MergeFrom(const MarketDataByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDataByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_market_data()) { - _internal_mutable_market_data()->::vega::MarketData::MergeFrom(from._internal_market_data()); - } -} - -void MarketDataByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDataByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDataByIDResponse::CopyFrom(const MarketDataByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDataByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDataByIDResponse::IsInitialized() const { - return true; -} - -void MarketDataByIDResponse::InternalSwap(MarketDataByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(market_data_, other->market_data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDataByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsDataRequest::_Internal { - public: -}; - -MarketsDataRequest::MarketsDataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsDataRequest) -} -MarketsDataRequest::MarketsDataRequest(const MarketsDataRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsDataRequest) -} - -void MarketsDataRequest::SharedCtor() { -} - -MarketsDataRequest::~MarketsDataRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketsDataRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsDataRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarketsDataRequest::ArenaDtor(void* object) { - MarketsDataRequest* _this = reinterpret_cast< MarketsDataRequest* >(object); - (void)_this; -} -void MarketsDataRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsDataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsDataRequest& MarketsDataRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsDataRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsDataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsDataRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsDataRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsDataRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsDataRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsDataRequest) - return target; -} - -size_t MarketsDataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsDataRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsDataRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsDataRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketsDataRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsDataRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsDataRequest) - MergeFrom(*source); - } -} - -void MarketsDataRequest::MergeFrom(const MarketsDataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsDataRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void MarketsDataRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsDataRequest::CopyFrom(const MarketsDataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsDataRequest::IsInitialized() const { - return true; -} - -void MarketsDataRequest::InternalSwap(MarketsDataRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsDataRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsDataResponse::_Internal { - public: -}; - -void MarketsDataResponse::clear_markets_data() { - markets_data_.Clear(); -} -MarketsDataResponse::MarketsDataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - markets_data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsDataResponse) -} -MarketsDataResponse::MarketsDataResponse(const MarketsDataResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - markets_data_(from.markets_data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsDataResponse) -} - -void MarketsDataResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketsDataResponse_api_2ftrading_2eproto.base); -} - -MarketsDataResponse::~MarketsDataResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketsDataResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsDataResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarketsDataResponse::ArenaDtor(void* object) { - MarketsDataResponse* _this = reinterpret_cast< MarketsDataResponse* >(object); - (void)_this; -} -void MarketsDataResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsDataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsDataResponse& MarketsDataResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsDataResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsDataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsDataResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - markets_data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsDataResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_markets_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsDataResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsDataResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_markets_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_markets_data(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsDataResponse) - return target; -} - -size_t MarketsDataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsDataResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - total_size += 1UL * this->_internal_markets_data_size(); - for (const auto& msg : this->markets_data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsDataResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsDataResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketsDataResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsDataResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsDataResponse) - MergeFrom(*source); - } -} - -void MarketsDataResponse::MergeFrom(const MarketsDataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsDataResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - markets_data_.MergeFrom(from.markets_data_); -} - -void MarketsDataResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsDataResponse::CopyFrom(const MarketsDataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsDataResponse::IsInitialized() const { - return true; -} - -void MarketsDataResponse::InternalSwap(MarketsDataResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - markets_data_.InternalSwap(&other->markets_data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsDataResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class LastTradeRequest::_Internal { - public: -}; - -LastTradeRequest::LastTradeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.LastTradeRequest) -} -LastTradeRequest::LastTradeRequest(const LastTradeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.LastTradeRequest) -} - -void LastTradeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LastTradeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -LastTradeRequest::~LastTradeRequest() { - // @@protoc_insertion_point(destructor:api.v1.LastTradeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void LastTradeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void LastTradeRequest::ArenaDtor(void* object) { - LastTradeRequest* _this = reinterpret_cast< LastTradeRequest* >(object); - (void)_this; -} -void LastTradeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LastTradeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LastTradeRequest& LastTradeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LastTradeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void LastTradeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.LastTradeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LastTradeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.LastTradeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* LastTradeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.LastTradeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.LastTradeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.LastTradeRequest) - return target; -} - -size_t LastTradeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.LastTradeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LastTradeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.LastTradeRequest) - GOOGLE_DCHECK_NE(&from, this); - const LastTradeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.LastTradeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.LastTradeRequest) - MergeFrom(*source); - } -} - -void LastTradeRequest::MergeFrom(const LastTradeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.LastTradeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void LastTradeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.LastTradeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LastTradeRequest::CopyFrom(const LastTradeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.LastTradeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LastTradeRequest::IsInitialized() const { - return true; -} - -void LastTradeRequest::InternalSwap(LastTradeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LastTradeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class LastTradeResponse::_Internal { - public: - static const ::vega::Trade& trade(const LastTradeResponse* msg); -}; - -const ::vega::Trade& -LastTradeResponse::_Internal::trade(const LastTradeResponse* msg) { - return *msg->trade_; -} -void LastTradeResponse::clear_trade() { - if (GetArena() == nullptr && trade_ != nullptr) { - delete trade_; - } - trade_ = nullptr; -} -LastTradeResponse::LastTradeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.LastTradeResponse) -} -LastTradeResponse::LastTradeResponse(const LastTradeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_trade()) { - trade_ = new ::vega::Trade(*from.trade_); - } else { - trade_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.LastTradeResponse) -} - -void LastTradeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LastTradeResponse_api_2ftrading_2eproto.base); - trade_ = nullptr; -} - -LastTradeResponse::~LastTradeResponse() { - // @@protoc_insertion_point(destructor:api.v1.LastTradeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void LastTradeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete trade_; -} - -void LastTradeResponse::ArenaDtor(void* object) { - LastTradeResponse* _this = reinterpret_cast< LastTradeResponse* >(object); - (void)_this; -} -void LastTradeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LastTradeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LastTradeResponse& LastTradeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LastTradeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void LastTradeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.LastTradeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && trade_ != nullptr) { - delete trade_; - } - trade_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LastTradeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Trade trade = 1 [json_name = "trade"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_trade(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* LastTradeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.LastTradeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Trade trade = 1 [json_name = "trade"]; - if (this->has_trade()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::trade(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.LastTradeResponse) - return target; -} - -size_t LastTradeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.LastTradeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Trade trade = 1 [json_name = "trade"]; - if (this->has_trade()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *trade_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LastTradeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.LastTradeResponse) - GOOGLE_DCHECK_NE(&from, this); - const LastTradeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.LastTradeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.LastTradeResponse) - MergeFrom(*source); - } -} - -void LastTradeResponse::MergeFrom(const LastTradeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.LastTradeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_trade()) { - _internal_mutable_trade()->::vega::Trade::MergeFrom(from._internal_trade()); - } -} - -void LastTradeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.LastTradeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LastTradeResponse::CopyFrom(const LastTradeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.LastTradeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LastTradeResponse::IsInitialized() const { - return true; -} - -void LastTradeResponse::InternalSwap(LastTradeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(trade_, other->trade_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LastTradeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketByIDRequest::_Internal { - public: -}; - -MarketByIDRequest::MarketByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketByIDRequest) -} -MarketByIDRequest::MarketByIDRequest(const MarketByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketByIDRequest) -} - -void MarketByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketByIDRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketByIDRequest::~MarketByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketByIDRequest::ArenaDtor(void* object) { - MarketByIDRequest* _this = reinterpret_cast< MarketByIDRequest* >(object); - (void)_this; -} -void MarketByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketByIDRequest& MarketByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketByIDRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketByIDRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketByIDRequest) - return target; -} - -size_t MarketByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketByIDRequest) - MergeFrom(*source); - } -} - -void MarketByIDRequest::MergeFrom(const MarketByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarketByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketByIDRequest::CopyFrom(const MarketByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketByIDRequest::IsInitialized() const { - return true; -} - -void MarketByIDRequest::InternalSwap(MarketByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketByIDResponse::_Internal { - public: - static const ::vega::Market& market(const MarketByIDResponse* msg); -}; - -const ::vega::Market& -MarketByIDResponse::_Internal::market(const MarketByIDResponse* msg) { - return *msg->market_; -} -void MarketByIDResponse::clear_market() { - if (GetArena() == nullptr && market_ != nullptr) { - delete market_; - } - market_ = nullptr; -} -MarketByIDResponse::MarketByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketByIDResponse) -} -MarketByIDResponse::MarketByIDResponse(const MarketByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_market()) { - market_ = new ::vega::Market(*from.market_); - } else { - market_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketByIDResponse) -} - -void MarketByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketByIDResponse_api_2ftrading_2eproto.base); - market_ = nullptr; -} - -MarketByIDResponse::~MarketByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete market_; -} - -void MarketByIDResponse::ArenaDtor(void* object) { - MarketByIDResponse* _this = reinterpret_cast< MarketByIDResponse* >(object); - (void)_this; -} -void MarketByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketByIDResponse& MarketByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && market_ != nullptr) { - delete market_; - } - market_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Market market = 1 [json_name = "market"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_market(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Market market = 1 [json_name = "market"]; - if (this->has_market()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::market(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketByIDResponse) - return target; -} - -size_t MarketByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Market market = 1 [json_name = "market"]; - if (this->has_market()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *market_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketByIDResponse) - MergeFrom(*source); - } -} - -void MarketByIDResponse::MergeFrom(const MarketByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_market()) { - _internal_mutable_market()->::vega::Market::MergeFrom(from._internal_market()); - } -} - -void MarketByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketByIDResponse::CopyFrom(const MarketByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketByIDResponse::IsInitialized() const { - return true; -} - -void MarketByIDResponse::InternalSwap(MarketByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(market_, other->market_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartyByIDRequest::_Internal { - public: -}; - -PartyByIDRequest::PartyByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartyByIDRequest) -} -PartyByIDRequest::PartyByIDRequest(const PartyByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PartyByIDRequest) -} - -void PartyByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartyByIDRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PartyByIDRequest::~PartyByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.PartyByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartyByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PartyByIDRequest::ArenaDtor(void* object) { - PartyByIDRequest* _this = reinterpret_cast< PartyByIDRequest* >(object); - (void)_this; -} -void PartyByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartyByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartyByIDRequest& PartyByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartyByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartyByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartyByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartyByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PartyByIDRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartyByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartyByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PartyByIDRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartyByIDRequest) - return target; -} - -size_t PartyByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartyByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartyByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartyByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const PartyByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartyByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartyByIDRequest) - MergeFrom(*source); - } -} - -void PartyByIDRequest::MergeFrom(const PartyByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartyByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void PartyByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartyByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartyByIDRequest::CopyFrom(const PartyByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartyByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartyByIDRequest::IsInitialized() const { - return true; -} - -void PartyByIDRequest::InternalSwap(PartyByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartyByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartyByIDResponse::_Internal { - public: - static const ::vega::Party& party(const PartyByIDResponse* msg); -}; - -const ::vega::Party& -PartyByIDResponse::_Internal::party(const PartyByIDResponse* msg) { - return *msg->party_; -} -void PartyByIDResponse::clear_party() { - if (GetArena() == nullptr && party_ != nullptr) { - delete party_; - } - party_ = nullptr; -} -PartyByIDResponse::PartyByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartyByIDResponse) -} -PartyByIDResponse::PartyByIDResponse(const PartyByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_party()) { - party_ = new ::vega::Party(*from.party_); - } else { - party_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PartyByIDResponse) -} - -void PartyByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartyByIDResponse_api_2ftrading_2eproto.base); - party_ = nullptr; -} - -PartyByIDResponse::~PartyByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.PartyByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartyByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete party_; -} - -void PartyByIDResponse::ArenaDtor(void* object) { - PartyByIDResponse* _this = reinterpret_cast< PartyByIDResponse* >(object); - (void)_this; -} -void PartyByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartyByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartyByIDResponse& PartyByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartyByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartyByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartyByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && party_ != nullptr) { - delete party_; - } - party_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartyByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Party party = 1 [json_name = "party"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_party(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartyByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartyByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Party party = 1 [json_name = "party"]; - if (this->has_party()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::party(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartyByIDResponse) - return target; -} - -size_t PartyByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartyByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Party party = 1 [json_name = "party"]; - if (this->has_party()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *party_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartyByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartyByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const PartyByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartyByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartyByIDResponse) - MergeFrom(*source); - } -} - -void PartyByIDResponse::MergeFrom(const PartyByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartyByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_party()) { - _internal_mutable_party()->::vega::Party::MergeFrom(from._internal_party()); - } -} - -void PartyByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartyByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartyByIDResponse::CopyFrom(const PartyByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartyByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartyByIDResponse::IsInitialized() const { - return true; -} - -void PartyByIDResponse::InternalSwap(PartyByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(party_, other->party_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartyByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartiesRequest::_Internal { - public: -}; - -PartiesRequest::PartiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartiesRequest) -} -PartiesRequest::PartiesRequest(const PartiesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.PartiesRequest) -} - -void PartiesRequest::SharedCtor() { -} - -PartiesRequest::~PartiesRequest() { - // @@protoc_insertion_point(destructor:api.v1.PartiesRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartiesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void PartiesRequest::ArenaDtor(void* object) { - PartiesRequest* _this = reinterpret_cast< PartiesRequest* >(object); - (void)_this; -} -void PartiesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartiesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartiesRequest& PartiesRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartiesRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartiesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartiesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartiesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartiesRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartiesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartiesRequest) - return target; -} - -size_t PartiesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartiesRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartiesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartiesRequest) - GOOGLE_DCHECK_NE(&from, this); - const PartiesRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartiesRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartiesRequest) - MergeFrom(*source); - } -} - -void PartiesRequest::MergeFrom(const PartiesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartiesRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void PartiesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartiesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartiesRequest::CopyFrom(const PartiesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartiesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartiesRequest::IsInitialized() const { - return true; -} - -void PartiesRequest::InternalSwap(PartiesRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartiesRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartiesResponse::_Internal { - public: -}; - -void PartiesResponse::clear_parties() { - parties_.Clear(); -} -PartiesResponse::PartiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - parties_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartiesResponse) -} -PartiesResponse::PartiesResponse(const PartiesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - parties_(from.parties_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.PartiesResponse) -} - -void PartiesResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartiesResponse_api_2ftrading_2eproto.base); -} - -PartiesResponse::~PartiesResponse() { - // @@protoc_insertion_point(destructor:api.v1.PartiesResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartiesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void PartiesResponse::ArenaDtor(void* object) { - PartiesResponse* _this = reinterpret_cast< PartiesResponse* >(object); - (void)_this; -} -void PartiesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartiesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartiesResponse& PartiesResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartiesResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartiesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartiesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - parties_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartiesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Party parties = 1 [json_name = "parties"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_parties(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartiesResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartiesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Party parties = 1 [json_name = "parties"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_parties_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_parties(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartiesResponse) - return target; -} - -size_t PartiesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartiesResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Party parties = 1 [json_name = "parties"]; - total_size += 1UL * this->_internal_parties_size(); - for (const auto& msg : this->parties_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartiesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartiesResponse) - GOOGLE_DCHECK_NE(&from, this); - const PartiesResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartiesResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartiesResponse) - MergeFrom(*source); - } -} - -void PartiesResponse::MergeFrom(const PartiesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartiesResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - parties_.MergeFrom(from.parties_); -} - -void PartiesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartiesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartiesResponse::CopyFrom(const PartiesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartiesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartiesResponse::IsInitialized() const { - return true; -} - -void PartiesResponse::InternalSwap(PartiesResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - parties_.InternalSwap(&other->parties_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartiesResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByPartyRequest::_Internal { - public: - static const ::api::v1::Pagination& pagination(const TradesByPartyRequest* msg); -}; - -const ::api::v1::Pagination& -TradesByPartyRequest::_Internal::pagination(const TradesByPartyRequest* msg) { - return *msg->pagination_; -} -TradesByPartyRequest::TradesByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByPartyRequest) -} -TradesByPartyRequest::TradesByPartyRequest(const TradesByPartyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - if (from._internal_has_pagination()) { - pagination_ = new ::api::v1::Pagination(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByPartyRequest) -} - -void TradesByPartyRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByPartyRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pagination_ = nullptr; -} - -TradesByPartyRequest::~TradesByPartyRequest() { - // @@protoc_insertion_point(destructor:api.v1.TradesByPartyRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByPartyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete pagination_; -} - -void TradesByPartyRequest::ArenaDtor(void* object) { - TradesByPartyRequest* _this = reinterpret_cast< TradesByPartyRequest* >(object); - (void)_this; -} -void TradesByPartyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByPartyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByPartyRequest& TradesByPartyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByPartyRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByPartyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByPartyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesByPartyRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesByPartyRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_pagination(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByPartyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesByPartyRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesByPartyRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - // .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - if (this->has_pagination()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::pagination(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByPartyRequest) - return target; -} - -size_t TradesByPartyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByPartyRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - if (this->has_pagination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pagination_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByPartyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - const TradesByPartyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByPartyRequest) - MergeFrom(*source); - } -} - -void TradesByPartyRequest::MergeFrom(const TradesByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.has_pagination()) { - _internal_mutable_pagination()->::api::v1::Pagination::MergeFrom(from._internal_pagination()); - } -} - -void TradesByPartyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByPartyRequest::CopyFrom(const TradesByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByPartyRequest::IsInitialized() const { - return true; -} - -void TradesByPartyRequest::InternalSwap(TradesByPartyRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(pagination_, other->pagination_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByPartyRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByPartyResponse::_Internal { - public: -}; - -void TradesByPartyResponse::clear_trades() { - trades_.Clear(); -} -TradesByPartyResponse::TradesByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - trades_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByPartyResponse) -} -TradesByPartyResponse::TradesByPartyResponse(const TradesByPartyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - trades_(from.trades_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByPartyResponse) -} - -void TradesByPartyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByPartyResponse_api_2ftrading_2eproto.base); -} - -TradesByPartyResponse::~TradesByPartyResponse() { - // @@protoc_insertion_point(destructor:api.v1.TradesByPartyResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByPartyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void TradesByPartyResponse::ArenaDtor(void* object) { - TradesByPartyResponse* _this = reinterpret_cast< TradesByPartyResponse* >(object); - (void)_this; -} -void TradesByPartyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByPartyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByPartyResponse& TradesByPartyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByPartyResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByPartyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - trades_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByPartyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_trades(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByPartyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_trades_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_trades(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByPartyResponse) - return target; -} - -size_t TradesByPartyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByPartyResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - total_size += 1UL * this->_internal_trades_size(); - for (const auto& msg : this->trades_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByPartyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - const TradesByPartyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByPartyResponse) - MergeFrom(*source); - } -} - -void TradesByPartyResponse::MergeFrom(const TradesByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - trades_.MergeFrom(from.trades_); -} - -void TradesByPartyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByPartyResponse::CopyFrom(const TradesByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByPartyResponse::IsInitialized() const { - return true; -} - -void TradesByPartyResponse::InternalSwap(TradesByPartyResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - trades_.InternalSwap(&other->trades_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByPartyResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByOrderRequest::_Internal { - public: -}; - -TradesByOrderRequest::TradesByOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByOrderRequest) -} -TradesByOrderRequest::TradesByOrderRequest(const TradesByOrderRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_order_id().empty()) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByOrderRequest) -} - -void TradesByOrderRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByOrderRequest_api_2ftrading_2eproto.base); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -TradesByOrderRequest::~TradesByOrderRequest() { - // @@protoc_insertion_point(destructor:api.v1.TradesByOrderRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByOrderRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void TradesByOrderRequest::ArenaDtor(void* object) { - TradesByOrderRequest* _this = reinterpret_cast< TradesByOrderRequest* >(object); - (void)_this; -} -void TradesByOrderRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByOrderRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByOrderRequest& TradesByOrderRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByOrderRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByOrderRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - order_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByOrderRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string order_id = 1 [json_name = "orderId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_order_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesByOrderRequest.order_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByOrderRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByOrderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId"]; - if (this->order_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesByOrderRequest.order_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_order_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByOrderRequest) - return target; -} - -size_t TradesByOrderRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByOrderRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId"]; - if (this->order_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_order_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByOrderRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - const TradesByOrderRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByOrderRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByOrderRequest) - MergeFrom(*source); - } -} - -void TradesByOrderRequest::MergeFrom(const TradesByOrderRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByOrderRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.order_id().size() > 0) { - _internal_set_order_id(from._internal_order_id()); - } -} - -void TradesByOrderRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByOrderRequest::CopyFrom(const TradesByOrderRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByOrderRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByOrderRequest::IsInitialized() const { - return true; -} - -void TradesByOrderRequest::InternalSwap(TradesByOrderRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByOrderRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByOrderResponse::_Internal { - public: -}; - -void TradesByOrderResponse::clear_trades() { - trades_.Clear(); -} -TradesByOrderResponse::TradesByOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - trades_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByOrderResponse) -} -TradesByOrderResponse::TradesByOrderResponse(const TradesByOrderResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - trades_(from.trades_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByOrderResponse) -} - -void TradesByOrderResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByOrderResponse_api_2ftrading_2eproto.base); -} - -TradesByOrderResponse::~TradesByOrderResponse() { - // @@protoc_insertion_point(destructor:api.v1.TradesByOrderResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByOrderResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void TradesByOrderResponse::ArenaDtor(void* object) { - TradesByOrderResponse* _this = reinterpret_cast< TradesByOrderResponse* >(object); - (void)_this; -} -void TradesByOrderResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByOrderResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByOrderResponse& TradesByOrderResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByOrderResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByOrderResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - trades_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByOrderResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_trades(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByOrderResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByOrderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_trades_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_trades(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByOrderResponse) - return target; -} - -size_t TradesByOrderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByOrderResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - total_size += 1UL * this->_internal_trades_size(); - for (const auto& msg : this->trades_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByOrderResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - const TradesByOrderResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByOrderResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByOrderResponse) - MergeFrom(*source); - } -} - -void TradesByOrderResponse::MergeFrom(const TradesByOrderResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByOrderResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - trades_.MergeFrom(from.trades_); -} - -void TradesByOrderResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByOrderResponse::CopyFrom(const TradesByOrderResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByOrderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByOrderResponse::IsInitialized() const { - return true; -} - -void TradesByOrderResponse::InternalSwap(TradesByOrderResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - trades_.InternalSwap(&other->trades_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByOrderResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AccountsSubscribeRequest::_Internal { - public: -}; - -AccountsSubscribeRequest::AccountsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AccountsSubscribeRequest) -} -AccountsSubscribeRequest::AccountsSubscribeRequest(const AccountsSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset().empty()) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), - GetArena()); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:api.v1.AccountsSubscribeRequest) -} - -void AccountsSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AccountsSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -AccountsSubscribeRequest::~AccountsSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.AccountsSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AccountsSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void AccountsSubscribeRequest::ArenaDtor(void* object) { - AccountsSubscribeRequest* _this = reinterpret_cast< AccountsSubscribeRequest* >(object); - (void)_this; -} -void AccountsSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AccountsSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AccountsSubscribeRequest& AccountsSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AccountsSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AccountsSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AccountsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - party_id_.ClearToEmpty(); - asset_.ClearToEmpty(); - type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AccountsSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.AccountsSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party_id = 2 [json_name = "partyId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.AccountsSubscribeRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string asset = 3 [json_name = "asset"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_asset(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.AccountsSubscribeRequest.asset")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.AccountType type = 4 [json_name = "type"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::vega::AccountType>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AccountsSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AccountsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.AccountsSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.AccountsSubscribeRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_party_id(), target); - } - - // string asset = 3 [json_name = "asset"]; - if (this->asset().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset().data(), static_cast(this->_internal_asset().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.AccountsSubscribeRequest.asset"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_asset(), target); - } - - // .vega.AccountType type = 4 [json_name = "type"]; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 4, this->_internal_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AccountsSubscribeRequest) - return target; -} - -size_t AccountsSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AccountsSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string asset = 3 [json_name = "asset"]; - if (this->asset().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); - } - - // .vega.AccountType type = 4 [json_name = "type"]; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AccountsSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AccountsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const AccountsSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AccountsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AccountsSubscribeRequest) - MergeFrom(*source); - } -} - -void AccountsSubscribeRequest::MergeFrom(const AccountsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AccountsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.asset().size() > 0) { - _internal_set_asset(from._internal_asset()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void AccountsSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AccountsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountsSubscribeRequest::CopyFrom(const AccountsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AccountsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountsSubscribeRequest::IsInitialized() const { - return true; -} - -void AccountsSubscribeRequest::InternalSwap(AccountsSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AccountsSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class AccountsSubscribeResponse::_Internal { - public: - static const ::vega::Account& account(const AccountsSubscribeResponse* msg); -}; - -const ::vega::Account& -AccountsSubscribeResponse::_Internal::account(const AccountsSubscribeResponse* msg) { - return *msg->account_; -} -void AccountsSubscribeResponse::clear_account() { - if (GetArena() == nullptr && account_ != nullptr) { - delete account_; - } - account_ = nullptr; -} -AccountsSubscribeResponse::AccountsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.AccountsSubscribeResponse) -} -AccountsSubscribeResponse::AccountsSubscribeResponse(const AccountsSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_account()) { - account_ = new ::vega::Account(*from.account_); - } else { - account_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.AccountsSubscribeResponse) -} - -void AccountsSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AccountsSubscribeResponse_api_2ftrading_2eproto.base); - account_ = nullptr; -} - -AccountsSubscribeResponse::~AccountsSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.AccountsSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void AccountsSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete account_; -} - -void AccountsSubscribeResponse::ArenaDtor(void* object) { - AccountsSubscribeResponse* _this = reinterpret_cast< AccountsSubscribeResponse* >(object); - (void)_this; -} -void AccountsSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AccountsSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AccountsSubscribeResponse& AccountsSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AccountsSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void AccountsSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.AccountsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && account_ != nullptr) { - delete account_; - } - account_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AccountsSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Account account = 1 [json_name = "account"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_account(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AccountsSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.AccountsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Account account = 1 [json_name = "account"]; - if (this->has_account()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::account(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.AccountsSubscribeResponse) - return target; -} - -size_t AccountsSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.AccountsSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Account account = 1 [json_name = "account"]; - if (this->has_account()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *account_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AccountsSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.AccountsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const AccountsSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.AccountsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.AccountsSubscribeResponse) - MergeFrom(*source); - } -} - -void AccountsSubscribeResponse::MergeFrom(const AccountsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.AccountsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_account()) { - _internal_mutable_account()->::vega::Account::MergeFrom(from._internal_account()); - } -} - -void AccountsSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.AccountsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccountsSubscribeResponse::CopyFrom(const AccountsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.AccountsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AccountsSubscribeResponse::IsInitialized() const { - return true; -} - -void AccountsSubscribeResponse::InternalSwap(AccountsSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(account_, other->account_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AccountsSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersSubscribeRequest::_Internal { - public: -}; - -OrdersSubscribeRequest::OrdersSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersSubscribeRequest) -} -OrdersSubscribeRequest::OrdersSubscribeRequest(const OrdersSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersSubscribeRequest) -} - -void OrdersSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -OrdersSubscribeRequest::~OrdersSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrdersSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void OrdersSubscribeRequest::ArenaDtor(void* object) { - OrdersSubscribeRequest* _this = reinterpret_cast< OrdersSubscribeRequest* >(object); - (void)_this; -} -void OrdersSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersSubscribeRequest& OrdersSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrdersSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party_id = 2 [json_name = "partyId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrdersSubscribeRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrdersSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrdersSubscribeRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersSubscribeRequest) - return target; -} - -size_t OrdersSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrdersSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersSubscribeRequest) - MergeFrom(*source); - } -} - -void OrdersSubscribeRequest::MergeFrom(const OrdersSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void OrdersSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersSubscribeRequest::CopyFrom(const OrdersSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersSubscribeRequest::IsInitialized() const { - return true; -} - -void OrdersSubscribeRequest::InternalSwap(OrdersSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesSubscribeRequest::_Internal { - public: -}; - -TradesSubscribeRequest::TradesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesSubscribeRequest) -} -TradesSubscribeRequest::TradesSubscribeRequest(const TradesSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.TradesSubscribeRequest) -} - -void TradesSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -TradesSubscribeRequest::~TradesSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.TradesSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void TradesSubscribeRequest::ArenaDtor(void* object) { - TradesSubscribeRequest* _this = reinterpret_cast< TradesSubscribeRequest* >(object); - (void)_this; -} -void TradesSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesSubscribeRequest& TradesSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party_id = 2 [json_name = "partyId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesSubscribeRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesSubscribeRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesSubscribeRequest) - return target; -} - -size_t TradesSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const TradesSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesSubscribeRequest) - MergeFrom(*source); - } -} - -void TradesSubscribeRequest::MergeFrom(const TradesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void TradesSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesSubscribeRequest::CopyFrom(const TradesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesSubscribeRequest::IsInitialized() const { - return true; -} - -void TradesSubscribeRequest::InternalSwap(TradesSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class CandlesSubscribeRequest::_Internal { - public: -}; - -CandlesSubscribeRequest::CandlesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.CandlesSubscribeRequest) -} -CandlesSubscribeRequest::CandlesSubscribeRequest(const CandlesSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - interval_ = from.interval_; - // @@protoc_insertion_point(copy_constructor:api.v1.CandlesSubscribeRequest) -} - -void CandlesSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CandlesSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - interval_ = 0; -} - -CandlesSubscribeRequest::~CandlesSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.CandlesSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void CandlesSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CandlesSubscribeRequest::ArenaDtor(void* object) { - CandlesSubscribeRequest* _this = reinterpret_cast< CandlesSubscribeRequest* >(object); - (void)_this; -} -void CandlesSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CandlesSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CandlesSubscribeRequest& CandlesSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CandlesSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void CandlesSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.CandlesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - interval_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CandlesSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.CandlesSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.Interval interval = 2 [json_name = "interval"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_interval(static_cast<::vega::Interval>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CandlesSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.CandlesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.CandlesSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // .vega.Interval interval = 2 [json_name = "interval"]; - if (this->interval() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_interval(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.CandlesSubscribeRequest) - return target; -} - -size_t CandlesSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.CandlesSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .vega.Interval interval = 2 [json_name = "interval"]; - if (this->interval() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_interval()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CandlesSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.CandlesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const CandlesSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.CandlesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.CandlesSubscribeRequest) - MergeFrom(*source); - } -} - -void CandlesSubscribeRequest::MergeFrom(const CandlesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.CandlesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.interval() != 0) { - _internal_set_interval(from._internal_interval()); - } -} - -void CandlesSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.CandlesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CandlesSubscribeRequest::CopyFrom(const CandlesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.CandlesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CandlesSubscribeRequest::IsInitialized() const { - return true; -} - -void CandlesSubscribeRequest::InternalSwap(CandlesSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(interval_, other->interval_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CandlesSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class CandlesSubscribeResponse::_Internal { - public: - static const ::vega::Candle& candle(const CandlesSubscribeResponse* msg); -}; - -const ::vega::Candle& -CandlesSubscribeResponse::_Internal::candle(const CandlesSubscribeResponse* msg) { - return *msg->candle_; -} -void CandlesSubscribeResponse::clear_candle() { - if (GetArena() == nullptr && candle_ != nullptr) { - delete candle_; - } - candle_ = nullptr; -} -CandlesSubscribeResponse::CandlesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.CandlesSubscribeResponse) -} -CandlesSubscribeResponse::CandlesSubscribeResponse(const CandlesSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_candle()) { - candle_ = new ::vega::Candle(*from.candle_); - } else { - candle_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.CandlesSubscribeResponse) -} - -void CandlesSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CandlesSubscribeResponse_api_2ftrading_2eproto.base); - candle_ = nullptr; -} - -CandlesSubscribeResponse::~CandlesSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.CandlesSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void CandlesSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete candle_; -} - -void CandlesSubscribeResponse::ArenaDtor(void* object) { - CandlesSubscribeResponse* _this = reinterpret_cast< CandlesSubscribeResponse* >(object); - (void)_this; -} -void CandlesSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CandlesSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CandlesSubscribeResponse& CandlesSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CandlesSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void CandlesSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.CandlesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && candle_ != nullptr) { - delete candle_; - } - candle_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CandlesSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Candle candle = 1 [json_name = "candle"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_candle(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CandlesSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.CandlesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Candle candle = 1 [json_name = "candle"]; - if (this->has_candle()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::candle(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.CandlesSubscribeResponse) - return target; -} - -size_t CandlesSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.CandlesSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Candle candle = 1 [json_name = "candle"]; - if (this->has_candle()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *candle_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CandlesSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.CandlesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const CandlesSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.CandlesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.CandlesSubscribeResponse) - MergeFrom(*source); - } -} - -void CandlesSubscribeResponse::MergeFrom(const CandlesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.CandlesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_candle()) { - _internal_mutable_candle()->::vega::Candle::MergeFrom(from._internal_candle()); - } -} - -void CandlesSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.CandlesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CandlesSubscribeResponse::CopyFrom(const CandlesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.CandlesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CandlesSubscribeResponse::IsInitialized() const { - return true; -} - -void CandlesSubscribeResponse::InternalSwap(CandlesSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(candle_, other->candle_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CandlesSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthSubscribeRequest::_Internal { - public: -}; - -MarketDepthSubscribeRequest::MarketDepthSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthSubscribeRequest) -} -MarketDepthSubscribeRequest::MarketDepthSubscribeRequest(const MarketDepthSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthSubscribeRequest) -} - -void MarketDepthSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketDepthSubscribeRequest::~MarketDepthSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketDepthSubscribeRequest::ArenaDtor(void* object) { - MarketDepthSubscribeRequest* _this = reinterpret_cast< MarketDepthSubscribeRequest* >(object); - (void)_this; -} -void MarketDepthSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthSubscribeRequest& MarketDepthSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketDepthSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketDepthSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthSubscribeRequest) - return target; -} - -size_t MarketDepthSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthSubscribeRequest) - MergeFrom(*source); - } -} - -void MarketDepthSubscribeRequest::MergeFrom(const MarketDepthSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarketDepthSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthSubscribeRequest::CopyFrom(const MarketDepthSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthSubscribeRequest::IsInitialized() const { - return true; -} - -void MarketDepthSubscribeRequest::InternalSwap(MarketDepthSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthSubscribeResponse::_Internal { - public: - static const ::vega::MarketDepth& market_depth(const MarketDepthSubscribeResponse* msg); -}; - -const ::vega::MarketDepth& -MarketDepthSubscribeResponse::_Internal::market_depth(const MarketDepthSubscribeResponse* msg) { - return *msg->market_depth_; -} -void MarketDepthSubscribeResponse::clear_market_depth() { - if (GetArena() == nullptr && market_depth_ != nullptr) { - delete market_depth_; - } - market_depth_ = nullptr; -} -MarketDepthSubscribeResponse::MarketDepthSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthSubscribeResponse) -} -MarketDepthSubscribeResponse::MarketDepthSubscribeResponse(const MarketDepthSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_market_depth()) { - market_depth_ = new ::vega::MarketDepth(*from.market_depth_); - } else { - market_depth_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthSubscribeResponse) -} - -void MarketDepthSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto.base); - market_depth_ = nullptr; -} - -MarketDepthSubscribeResponse::~MarketDepthSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete market_depth_; -} - -void MarketDepthSubscribeResponse::ArenaDtor(void* object) { - MarketDepthSubscribeResponse* _this = reinterpret_cast< MarketDepthSubscribeResponse* >(object); - (void)_this; -} -void MarketDepthSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthSubscribeResponse& MarketDepthSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && market_depth_ != nullptr) { - delete market_depth_; - } - market_depth_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_market_depth(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - if (this->has_market_depth()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::market_depth(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthSubscribeResponse) - return target; -} - -size_t MarketDepthSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - if (this->has_market_depth()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *market_depth_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthSubscribeResponse) - MergeFrom(*source); - } -} - -void MarketDepthSubscribeResponse::MergeFrom(const MarketDepthSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_market_depth()) { - _internal_mutable_market_depth()->::vega::MarketDepth::MergeFrom(from._internal_market_depth()); - } -} - -void MarketDepthSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthSubscribeResponse::CopyFrom(const MarketDepthSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthSubscribeResponse::IsInitialized() const { - return true; -} - -void MarketDepthSubscribeResponse::InternalSwap(MarketDepthSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(market_depth_, other->market_depth_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthUpdatesSubscribeRequest::_Internal { - public: -}; - -MarketDepthUpdatesSubscribeRequest::MarketDepthUpdatesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthUpdatesSubscribeRequest) -} -MarketDepthUpdatesSubscribeRequest::MarketDepthUpdatesSubscribeRequest(const MarketDepthUpdatesSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthUpdatesSubscribeRequest) -} - -void MarketDepthUpdatesSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketDepthUpdatesSubscribeRequest::~MarketDepthUpdatesSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthUpdatesSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthUpdatesSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketDepthUpdatesSubscribeRequest::ArenaDtor(void* object) { - MarketDepthUpdatesSubscribeRequest* _this = reinterpret_cast< MarketDepthUpdatesSubscribeRequest* >(object); - (void)_this; -} -void MarketDepthUpdatesSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthUpdatesSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthUpdatesSubscribeRequest& MarketDepthUpdatesSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthUpdatesSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthUpdatesSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthUpdatesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthUpdatesSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketDepthUpdatesSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthUpdatesSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthUpdatesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketDepthUpdatesSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthUpdatesSubscribeRequest) - return target; -} - -size_t MarketDepthUpdatesSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthUpdatesSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthUpdatesSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthUpdatesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthUpdatesSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthUpdatesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthUpdatesSubscribeRequest) - MergeFrom(*source); - } -} - -void MarketDepthUpdatesSubscribeRequest::MergeFrom(const MarketDepthUpdatesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthUpdatesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void MarketDepthUpdatesSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthUpdatesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthUpdatesSubscribeRequest::CopyFrom(const MarketDepthUpdatesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthUpdatesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthUpdatesSubscribeRequest::IsInitialized() const { - return true; -} - -void MarketDepthUpdatesSubscribeRequest::InternalSwap(MarketDepthUpdatesSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthUpdatesSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthUpdatesSubscribeResponse::_Internal { - public: - static const ::vega::MarketDepthUpdate& update(const MarketDepthUpdatesSubscribeResponse* msg); -}; - -const ::vega::MarketDepthUpdate& -MarketDepthUpdatesSubscribeResponse::_Internal::update(const MarketDepthUpdatesSubscribeResponse* msg) { - return *msg->update_; -} -void MarketDepthUpdatesSubscribeResponse::clear_update() { - if (GetArena() == nullptr && update_ != nullptr) { - delete update_; - } - update_ = nullptr; -} -MarketDepthUpdatesSubscribeResponse::MarketDepthUpdatesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthUpdatesSubscribeResponse) -} -MarketDepthUpdatesSubscribeResponse::MarketDepthUpdatesSubscribeResponse(const MarketDepthUpdatesSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_update()) { - update_ = new ::vega::MarketDepthUpdate(*from.update_); - } else { - update_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthUpdatesSubscribeResponse) -} - -void MarketDepthUpdatesSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto.base); - update_ = nullptr; -} - -MarketDepthUpdatesSubscribeResponse::~MarketDepthUpdatesSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthUpdatesSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthUpdatesSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete update_; -} - -void MarketDepthUpdatesSubscribeResponse::ArenaDtor(void* object) { - MarketDepthUpdatesSubscribeResponse* _this = reinterpret_cast< MarketDepthUpdatesSubscribeResponse* >(object); - (void)_this; -} -void MarketDepthUpdatesSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthUpdatesSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthUpdatesSubscribeResponse& MarketDepthUpdatesSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthUpdatesSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthUpdatesSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthUpdatesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && update_ != nullptr) { - delete update_; - } - update_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthUpdatesSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_update(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthUpdatesSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthUpdatesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - if (this->has_update()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::update(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthUpdatesSubscribeResponse) - return target; -} - -size_t MarketDepthUpdatesSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthUpdatesSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - if (this->has_update()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *update_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthUpdatesSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthUpdatesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthUpdatesSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthUpdatesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthUpdatesSubscribeResponse) - MergeFrom(*source); - } -} - -void MarketDepthUpdatesSubscribeResponse::MergeFrom(const MarketDepthUpdatesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthUpdatesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_update()) { - _internal_mutable_update()->::vega::MarketDepthUpdate::MergeFrom(from._internal_update()); - } -} - -void MarketDepthUpdatesSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthUpdatesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthUpdatesSubscribeResponse::CopyFrom(const MarketDepthUpdatesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthUpdatesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthUpdatesSubscribeResponse::IsInitialized() const { - return true; -} - -void MarketDepthUpdatesSubscribeResponse::InternalSwap(MarketDepthUpdatesSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(update_, other->update_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthUpdatesSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PositionsSubscribeRequest::_Internal { - public: -}; - -PositionsSubscribeRequest::PositionsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PositionsSubscribeRequest) -} -PositionsSubscribeRequest::PositionsSubscribeRequest(const PositionsSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PositionsSubscribeRequest) -} - -void PositionsSubscribeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PositionsSubscribeRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PositionsSubscribeRequest::~PositionsSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.PositionsSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PositionsSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PositionsSubscribeRequest::ArenaDtor(void* object) { - PositionsSubscribeRequest* _this = reinterpret_cast< PositionsSubscribeRequest* >(object); - (void)_this; -} -void PositionsSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PositionsSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PositionsSubscribeRequest& PositionsSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PositionsSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PositionsSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PositionsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PositionsSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PositionsSubscribeRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PositionsSubscribeRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PositionsSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PositionsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PositionsSubscribeRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PositionsSubscribeRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PositionsSubscribeRequest) - return target; -} - -size_t PositionsSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PositionsSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PositionsSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PositionsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const PositionsSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PositionsSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PositionsSubscribeRequest) - MergeFrom(*source); - } -} - -void PositionsSubscribeRequest::MergeFrom(const PositionsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PositionsSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void PositionsSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PositionsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PositionsSubscribeRequest::CopyFrom(const PositionsSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PositionsSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PositionsSubscribeRequest::IsInitialized() const { - return true; -} - -void PositionsSubscribeRequest::InternalSwap(PositionsSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PositionsSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PositionsSubscribeResponse::_Internal { - public: - static const ::vega::Position& position(const PositionsSubscribeResponse* msg); -}; - -const ::vega::Position& -PositionsSubscribeResponse::_Internal::position(const PositionsSubscribeResponse* msg) { - return *msg->position_; -} -void PositionsSubscribeResponse::clear_position() { - if (GetArena() == nullptr && position_ != nullptr) { - delete position_; - } - position_ = nullptr; -} -PositionsSubscribeResponse::PositionsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PositionsSubscribeResponse) -} -PositionsSubscribeResponse::PositionsSubscribeResponse(const PositionsSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_position()) { - position_ = new ::vega::Position(*from.position_); - } else { - position_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PositionsSubscribeResponse) -} - -void PositionsSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PositionsSubscribeResponse_api_2ftrading_2eproto.base); - position_ = nullptr; -} - -PositionsSubscribeResponse::~PositionsSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.PositionsSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PositionsSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete position_; -} - -void PositionsSubscribeResponse::ArenaDtor(void* object) { - PositionsSubscribeResponse* _this = reinterpret_cast< PositionsSubscribeResponse* >(object); - (void)_this; -} -void PositionsSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PositionsSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PositionsSubscribeResponse& PositionsSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PositionsSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PositionsSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PositionsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && position_ != nullptr) { - delete position_; - } - position_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PositionsSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Position position = 1 [json_name = "position"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_position(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PositionsSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PositionsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Position position = 1 [json_name = "position"]; - if (this->has_position()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::position(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PositionsSubscribeResponse) - return target; -} - -size_t PositionsSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PositionsSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Position position = 1 [json_name = "position"]; - if (this->has_position()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *position_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PositionsSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PositionsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const PositionsSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PositionsSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PositionsSubscribeResponse) - MergeFrom(*source); - } -} - -void PositionsSubscribeResponse::MergeFrom(const PositionsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PositionsSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_position()) { - _internal_mutable_position()->::vega::Position::MergeFrom(from._internal_position()); - } -} - -void PositionsSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PositionsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PositionsSubscribeResponse::CopyFrom(const PositionsSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PositionsSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PositionsSubscribeResponse::IsInitialized() const { - return true; -} - -void PositionsSubscribeResponse::InternalSwap(PositionsSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(position_, other->position_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PositionsSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersByMarketRequest::_Internal { - public: - static const ::api::v1::Pagination& pagination(const OrdersByMarketRequest* msg); -}; - -const ::api::v1::Pagination& -OrdersByMarketRequest::_Internal::pagination(const OrdersByMarketRequest* msg) { - return *msg->pagination_; -} -OrdersByMarketRequest::OrdersByMarketRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersByMarketRequest) -} -OrdersByMarketRequest::OrdersByMarketRequest(const OrdersByMarketRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - if (from._internal_has_pagination()) { - pagination_ = new ::api::v1::Pagination(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersByMarketRequest) -} - -void OrdersByMarketRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersByMarketRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pagination_ = nullptr; -} - -OrdersByMarketRequest::~OrdersByMarketRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrdersByMarketRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersByMarketRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete pagination_; -} - -void OrdersByMarketRequest::ArenaDtor(void* object) { - OrdersByMarketRequest* _this = reinterpret_cast< OrdersByMarketRequest* >(object); - (void)_this; -} -void OrdersByMarketRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersByMarketRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersByMarketRequest& OrdersByMarketRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersByMarketRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersByMarketRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersByMarketRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrdersByMarketRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pagination(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersByMarketRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrdersByMarketRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::pagination(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersByMarketRequest) - return target; -} - -size_t OrdersByMarketRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersByMarketRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pagination_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersByMarketRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersByMarketRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrdersByMarketRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersByMarketRequest) - MergeFrom(*source); - } -} - -void OrdersByMarketRequest::MergeFrom(const OrdersByMarketRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersByMarketRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.has_pagination()) { - _internal_mutable_pagination()->::api::v1::Pagination::MergeFrom(from._internal_pagination()); - } -} - -void OrdersByMarketRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersByMarketRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersByMarketRequest::CopyFrom(const OrdersByMarketRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersByMarketRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersByMarketRequest::IsInitialized() const { - return true; -} - -void OrdersByMarketRequest::InternalSwap(OrdersByMarketRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(pagination_, other->pagination_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersByMarketRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersByMarketResponse::_Internal { - public: -}; - -void OrdersByMarketResponse::clear_orders() { - orders_.Clear(); -} -OrdersByMarketResponse::OrdersByMarketResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - orders_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersByMarketResponse) -} -OrdersByMarketResponse::OrdersByMarketResponse(const OrdersByMarketResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - orders_(from.orders_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersByMarketResponse) -} - -void OrdersByMarketResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersByMarketResponse_api_2ftrading_2eproto.base); -} - -OrdersByMarketResponse::~OrdersByMarketResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrdersByMarketResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersByMarketResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void OrdersByMarketResponse::ArenaDtor(void* object) { - OrdersByMarketResponse* _this = reinterpret_cast< OrdersByMarketResponse* >(object); - (void)_this; -} -void OrdersByMarketResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersByMarketResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersByMarketResponse& OrdersByMarketResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersByMarketResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersByMarketResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - orders_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersByMarketResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Order orders = 1 [json_name = "orders"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_orders(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersByMarketResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_orders_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_orders(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersByMarketResponse) - return target; -} - -size_t OrdersByMarketResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersByMarketResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - total_size += 1UL * this->_internal_orders_size(); - for (const auto& msg : this->orders_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersByMarketResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersByMarketResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrdersByMarketResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersByMarketResponse) - MergeFrom(*source); - } -} - -void OrdersByMarketResponse::MergeFrom(const OrdersByMarketResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersByMarketResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - orders_.MergeFrom(from.orders_); -} - -void OrdersByMarketResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersByMarketResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersByMarketResponse::CopyFrom(const OrdersByMarketResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersByMarketResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersByMarketResponse::IsInitialized() const { - return true; -} - -void OrdersByMarketResponse::InternalSwap(OrdersByMarketResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - orders_.InternalSwap(&other->orders_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersByMarketResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersByPartyRequest::_Internal { - public: - static const ::api::v1::Pagination& pagination(const OrdersByPartyRequest* msg); -}; - -const ::api::v1::Pagination& -OrdersByPartyRequest::_Internal::pagination(const OrdersByPartyRequest* msg) { - return *msg->pagination_; -} -OrdersByPartyRequest::OrdersByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersByPartyRequest) -} -OrdersByPartyRequest::OrdersByPartyRequest(const OrdersByPartyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - if (from._internal_has_pagination()) { - pagination_ = new ::api::v1::Pagination(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersByPartyRequest) -} - -void OrdersByPartyRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersByPartyRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pagination_ = nullptr; -} - -OrdersByPartyRequest::~OrdersByPartyRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrdersByPartyRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersByPartyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete pagination_; -} - -void OrdersByPartyRequest::ArenaDtor(void* object) { - OrdersByPartyRequest* _this = reinterpret_cast< OrdersByPartyRequest* >(object); - (void)_this; -} -void OrdersByPartyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersByPartyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersByPartyRequest& OrdersByPartyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersByPartyRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersByPartyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersByPartyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrdersByPartyRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pagination(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersByPartyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrdersByPartyRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::pagination(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersByPartyRequest) - return target; -} - -size_t OrdersByPartyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersByPartyRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pagination_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersByPartyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrdersByPartyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersByPartyRequest) - MergeFrom(*source); - } -} - -void OrdersByPartyRequest::MergeFrom(const OrdersByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.has_pagination()) { - _internal_mutable_pagination()->::api::v1::Pagination::MergeFrom(from._internal_pagination()); - } -} - -void OrdersByPartyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersByPartyRequest::CopyFrom(const OrdersByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersByPartyRequest::IsInitialized() const { - return true; -} - -void OrdersByPartyRequest::InternalSwap(OrdersByPartyRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(pagination_, other->pagination_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersByPartyRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersByPartyResponse::_Internal { - public: -}; - -void OrdersByPartyResponse::clear_orders() { - orders_.Clear(); -} -OrdersByPartyResponse::OrdersByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - orders_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersByPartyResponse) -} -OrdersByPartyResponse::OrdersByPartyResponse(const OrdersByPartyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - orders_(from.orders_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersByPartyResponse) -} - -void OrdersByPartyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersByPartyResponse_api_2ftrading_2eproto.base); -} - -OrdersByPartyResponse::~OrdersByPartyResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrdersByPartyResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersByPartyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void OrdersByPartyResponse::ArenaDtor(void* object) { - OrdersByPartyResponse* _this = reinterpret_cast< OrdersByPartyResponse* >(object); - (void)_this; -} -void OrdersByPartyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersByPartyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersByPartyResponse& OrdersByPartyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersByPartyResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersByPartyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - orders_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersByPartyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Order orders = 1 [json_name = "orders"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_orders(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersByPartyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_orders_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_orders(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersByPartyResponse) - return target; -} - -size_t OrdersByPartyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersByPartyResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - total_size += 1UL * this->_internal_orders_size(); - for (const auto& msg : this->orders_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersByPartyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrdersByPartyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersByPartyResponse) - MergeFrom(*source); - } -} - -void OrdersByPartyResponse::MergeFrom(const OrdersByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - orders_.MergeFrom(from.orders_); -} - -void OrdersByPartyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersByPartyResponse::CopyFrom(const OrdersByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersByPartyResponse::IsInitialized() const { - return true; -} - -void OrdersByPartyResponse::InternalSwap(OrdersByPartyResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - orders_.InternalSwap(&other->orders_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersByPartyResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByMarketAndIDRequest::_Internal { - public: -}; - -OrderByMarketAndIDRequest::OrderByMarketAndIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByMarketAndIDRequest) -} -OrderByMarketAndIDRequest::OrderByMarketAndIDRequest(const OrderByMarketAndIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_order_id().empty()) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByMarketAndIDRequest) -} - -void OrderByMarketAndIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -OrderByMarketAndIDRequest::~OrderByMarketAndIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrderByMarketAndIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByMarketAndIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void OrderByMarketAndIDRequest::ArenaDtor(void* object) { - OrderByMarketAndIDRequest* _this = reinterpret_cast< OrderByMarketAndIDRequest* >(object); - (void)_this; -} -void OrderByMarketAndIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByMarketAndIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByMarketAndIDRequest& OrderByMarketAndIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByMarketAndIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByMarketAndIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByMarketAndIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - order_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByMarketAndIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrderByMarketAndIDRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string order_id = 2 [json_name = "orderId", (.validator.field) = { - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_order_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrderByMarketAndIDRequest.order_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByMarketAndIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByMarketAndIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrderByMarketAndIDRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // string order_id = 2 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrderByMarketAndIDRequest.order_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_order_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByMarketAndIDRequest) - return target; -} - -size_t OrderByMarketAndIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByMarketAndIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string order_id = 2 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_order_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByMarketAndIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByMarketAndIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrderByMarketAndIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByMarketAndIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByMarketAndIDRequest) - MergeFrom(*source); - } -} - -void OrderByMarketAndIDRequest::MergeFrom(const OrderByMarketAndIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByMarketAndIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.order_id().size() > 0) { - _internal_set_order_id(from._internal_order_id()); - } -} - -void OrderByMarketAndIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByMarketAndIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByMarketAndIDRequest::CopyFrom(const OrderByMarketAndIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByMarketAndIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByMarketAndIDRequest::IsInitialized() const { - return true; -} - -void OrderByMarketAndIDRequest::InternalSwap(OrderByMarketAndIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByMarketAndIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByMarketAndIDResponse::_Internal { - public: - static const ::vega::Order& order(const OrderByMarketAndIDResponse* msg); -}; - -const ::vega::Order& -OrderByMarketAndIDResponse::_Internal::order(const OrderByMarketAndIDResponse* msg) { - return *msg->order_; -} -void OrderByMarketAndIDResponse::clear_order() { - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; -} -OrderByMarketAndIDResponse::OrderByMarketAndIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByMarketAndIDResponse) -} -OrderByMarketAndIDResponse::OrderByMarketAndIDResponse(const OrderByMarketAndIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_order()) { - order_ = new ::vega::Order(*from.order_); - } else { - order_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByMarketAndIDResponse) -} - -void OrderByMarketAndIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto.base); - order_ = nullptr; -} - -OrderByMarketAndIDResponse::~OrderByMarketAndIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrderByMarketAndIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByMarketAndIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete order_; -} - -void OrderByMarketAndIDResponse::ArenaDtor(void* object) { - OrderByMarketAndIDResponse* _this = reinterpret_cast< OrderByMarketAndIDResponse* >(object); - (void)_this; -} -void OrderByMarketAndIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByMarketAndIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByMarketAndIDResponse& OrderByMarketAndIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByMarketAndIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByMarketAndIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByMarketAndIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByMarketAndIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Order order = 1 [json_name = "order"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_order(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByMarketAndIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByMarketAndIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::order(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByMarketAndIDResponse) - return target; -} - -size_t OrderByMarketAndIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByMarketAndIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *order_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByMarketAndIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByMarketAndIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrderByMarketAndIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByMarketAndIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByMarketAndIDResponse) - MergeFrom(*source); - } -} - -void OrderByMarketAndIDResponse::MergeFrom(const OrderByMarketAndIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByMarketAndIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_order()) { - _internal_mutable_order()->::vega::Order::MergeFrom(from._internal_order()); - } -} - -void OrderByMarketAndIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByMarketAndIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByMarketAndIDResponse::CopyFrom(const OrderByMarketAndIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByMarketAndIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByMarketAndIDResponse::IsInitialized() const { - return true; -} - -void OrderByMarketAndIDResponse::InternalSwap(OrderByMarketAndIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(order_, other->order_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByMarketAndIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByReferenceRequest::_Internal { - public: -}; - -OrderByReferenceRequest::OrderByReferenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByReferenceRequest) -} -OrderByReferenceRequest::OrderByReferenceRequest(const OrderByReferenceRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_reference().empty()) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByReferenceRequest) -} - -void OrderByReferenceRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByReferenceRequest_api_2ftrading_2eproto.base); - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -OrderByReferenceRequest::~OrderByReferenceRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrderByReferenceRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByReferenceRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void OrderByReferenceRequest::ArenaDtor(void* object) { - OrderByReferenceRequest* _this = reinterpret_cast< OrderByReferenceRequest* >(object); - (void)_this; -} -void OrderByReferenceRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByReferenceRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByReferenceRequest& OrderByReferenceRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByReferenceRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByReferenceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reference_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByReferenceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string reference = 1 [json_name = "reference", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_reference(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrderByReferenceRequest.reference")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByReferenceRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string reference = 1 [json_name = "reference", (.validator.field) = { - if (this->reference().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_reference().data(), static_cast(this->_internal_reference().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrderByReferenceRequest.reference"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_reference(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByReferenceRequest) - return target; -} - -size_t OrderByReferenceRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByReferenceRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string reference = 1 [json_name = "reference", (.validator.field) = { - if (this->reference().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_reference()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByReferenceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByReferenceRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrderByReferenceRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByReferenceRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByReferenceRequest) - MergeFrom(*source); - } -} - -void OrderByReferenceRequest::MergeFrom(const OrderByReferenceRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByReferenceRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.reference().size() > 0) { - _internal_set_reference(from._internal_reference()); - } -} - -void OrderByReferenceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByReferenceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByReferenceRequest::CopyFrom(const OrderByReferenceRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByReferenceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByReferenceRequest::IsInitialized() const { - return true; -} - -void OrderByReferenceRequest::InternalSwap(OrderByReferenceRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByReferenceRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByReferenceResponse::_Internal { - public: - static const ::vega::Order& order(const OrderByReferenceResponse* msg); -}; - -const ::vega::Order& -OrderByReferenceResponse::_Internal::order(const OrderByReferenceResponse* msg) { - return *msg->order_; -} -void OrderByReferenceResponse::clear_order() { - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; -} -OrderByReferenceResponse::OrderByReferenceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByReferenceResponse) -} -OrderByReferenceResponse::OrderByReferenceResponse(const OrderByReferenceResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_order()) { - order_ = new ::vega::Order(*from.order_); - } else { - order_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByReferenceResponse) -} - -void OrderByReferenceResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByReferenceResponse_api_2ftrading_2eproto.base); - order_ = nullptr; -} - -OrderByReferenceResponse::~OrderByReferenceResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrderByReferenceResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByReferenceResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete order_; -} - -void OrderByReferenceResponse::ArenaDtor(void* object) { - OrderByReferenceResponse* _this = reinterpret_cast< OrderByReferenceResponse* >(object); - (void)_this; -} -void OrderByReferenceResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByReferenceResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByReferenceResponse& OrderByReferenceResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByReferenceResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByReferenceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByReferenceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Order order = 1 [json_name = "order"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_order(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByReferenceResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::order(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByReferenceResponse) - return target; -} - -size_t OrderByReferenceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByReferenceResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *order_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByReferenceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByReferenceResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrderByReferenceResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByReferenceResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByReferenceResponse) - MergeFrom(*source); - } -} - -void OrderByReferenceResponse::MergeFrom(const OrderByReferenceResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByReferenceResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_order()) { - _internal_mutable_order()->::vega::Order::MergeFrom(from._internal_order()); - } -} - -void OrderByReferenceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByReferenceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByReferenceResponse::CopyFrom(const OrderByReferenceResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByReferenceResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByReferenceResponse::IsInitialized() const { - return true; -} - -void OrderByReferenceResponse::InternalSwap(OrderByReferenceResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(order_, other->order_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByReferenceResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsRequest::_Internal { - public: -}; - -MarketsRequest::MarketsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsRequest) -} -MarketsRequest::MarketsRequest(const MarketsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsRequest) -} - -void MarketsRequest::SharedCtor() { -} - -MarketsRequest::~MarketsRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarketsRequest::ArenaDtor(void* object) { - MarketsRequest* _this = reinterpret_cast< MarketsRequest* >(object); - (void)_this; -} -void MarketsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsRequest& MarketsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsRequest) - return target; -} - -size_t MarketsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsRequest) - MergeFrom(*source); - } -} - -void MarketsRequest::MergeFrom(const MarketsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void MarketsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsRequest::CopyFrom(const MarketsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsRequest::IsInitialized() const { - return true; -} - -void MarketsRequest::InternalSwap(MarketsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketsResponse::_Internal { - public: -}; - -void MarketsResponse::clear_markets() { - markets_.Clear(); -} -MarketsResponse::MarketsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - markets_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketsResponse) -} -MarketsResponse::MarketsResponse(const MarketsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - markets_(from.markets_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarketsResponse) -} - -void MarketsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketsResponse_api_2ftrading_2eproto.base); -} - -MarketsResponse::~MarketsResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarketsResponse::ArenaDtor(void* object) { - MarketsResponse* _this = reinterpret_cast< MarketsResponse* >(object); - (void)_this; -} -void MarketsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketsResponse& MarketsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - markets_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Market markets = 1 [json_name = "markets"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_markets(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Market markets = 1 [json_name = "markets"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_markets_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_markets(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketsResponse) - return target; -} - -size_t MarketsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Market markets = 1 [json_name = "markets"]; - total_size += 1UL * this->_internal_markets_size(); - for (const auto& msg : this->markets_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketsResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketsResponse) - MergeFrom(*source); - } -} - -void MarketsResponse::MergeFrom(const MarketsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - markets_.MergeFrom(from.markets_); -} - -void MarketsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketsResponse::CopyFrom(const MarketsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketsResponse::IsInitialized() const { - return true; -} - -void MarketsResponse::InternalSwap(MarketsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - markets_.InternalSwap(&other->markets_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class CandlesRequest::_Internal { - public: -}; - -CandlesRequest::CandlesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.CandlesRequest) -} -CandlesRequest::CandlesRequest(const CandlesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - ::memcpy(&since_timestamp_, &from.since_timestamp_, - static_cast(reinterpret_cast(&interval_) - - reinterpret_cast(&since_timestamp_)) + sizeof(interval_)); - // @@protoc_insertion_point(copy_constructor:api.v1.CandlesRequest) -} - -void CandlesRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CandlesRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&since_timestamp_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&interval_) - - reinterpret_cast(&since_timestamp_)) + sizeof(interval_)); -} - -CandlesRequest::~CandlesRequest() { - // @@protoc_insertion_point(destructor:api.v1.CandlesRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void CandlesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CandlesRequest::ArenaDtor(void* object) { - CandlesRequest* _this = reinterpret_cast< CandlesRequest* >(object); - (void)_this; -} -void CandlesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CandlesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CandlesRequest& CandlesRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CandlesRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void CandlesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.CandlesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - ::memset(&since_timestamp_, 0, static_cast( - reinterpret_cast(&interval_) - - reinterpret_cast(&since_timestamp_)) + sizeof(interval_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CandlesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.CandlesRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - since_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.Interval interval = 3 [json_name = "interval"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_interval(static_cast<::vega::Interval>(val)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CandlesRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.CandlesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.CandlesRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { - if (this->since_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_since_timestamp(), target); - } - - // .vega.Interval interval = 3 [json_name = "interval"]; - if (this->interval() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_interval(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.CandlesRequest) - return target; -} - -size_t CandlesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.CandlesRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { - if (this->since_timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_since_timestamp()); - } - - // .vega.Interval interval = 3 [json_name = "interval"]; - if (this->interval() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_interval()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CandlesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.CandlesRequest) - GOOGLE_DCHECK_NE(&from, this); - const CandlesRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.CandlesRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.CandlesRequest) - MergeFrom(*source); - } -} - -void CandlesRequest::MergeFrom(const CandlesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.CandlesRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.since_timestamp() != 0) { - _internal_set_since_timestamp(from._internal_since_timestamp()); - } - if (from.interval() != 0) { - _internal_set_interval(from._internal_interval()); - } -} - -void CandlesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.CandlesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CandlesRequest::CopyFrom(const CandlesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.CandlesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CandlesRequest::IsInitialized() const { - return true; -} - -void CandlesRequest::InternalSwap(CandlesRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CandlesRequest, interval_) - + sizeof(CandlesRequest::interval_) - - PROTOBUF_FIELD_OFFSET(CandlesRequest, since_timestamp_)>( - reinterpret_cast(&since_timestamp_), - reinterpret_cast(&other->since_timestamp_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CandlesRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class CandlesResponse::_Internal { - public: -}; - -void CandlesResponse::clear_candles() { - candles_.Clear(); -} -CandlesResponse::CandlesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - candles_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.CandlesResponse) -} -CandlesResponse::CandlesResponse(const CandlesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - candles_(from.candles_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.CandlesResponse) -} - -void CandlesResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CandlesResponse_api_2ftrading_2eproto.base); -} - -CandlesResponse::~CandlesResponse() { - // @@protoc_insertion_point(destructor:api.v1.CandlesResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void CandlesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void CandlesResponse::ArenaDtor(void* object) { - CandlesResponse* _this = reinterpret_cast< CandlesResponse* >(object); - (void)_this; -} -void CandlesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CandlesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CandlesResponse& CandlesResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CandlesResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void CandlesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.CandlesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - candles_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CandlesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Candle candles = 1 [json_name = "candles"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_candles(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CandlesResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.CandlesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Candle candles = 1 [json_name = "candles"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_candles_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_candles(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.CandlesResponse) - return target; -} - -size_t CandlesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.CandlesResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Candle candles = 1 [json_name = "candles"]; - total_size += 1UL * this->_internal_candles_size(); - for (const auto& msg : this->candles_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CandlesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.CandlesResponse) - GOOGLE_DCHECK_NE(&from, this); - const CandlesResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.CandlesResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.CandlesResponse) - MergeFrom(*source); - } -} - -void CandlesResponse::MergeFrom(const CandlesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.CandlesResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - candles_.MergeFrom(from.candles_); -} - -void CandlesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.CandlesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CandlesResponse::CopyFrom(const CandlesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.CandlesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CandlesResponse::IsInitialized() const { - return true; -} - -void CandlesResponse::InternalSwap(CandlesResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - candles_.InternalSwap(&other->candles_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CandlesResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthRequest::_Internal { - public: -}; - -MarketDepthRequest::MarketDepthRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthRequest) -} -MarketDepthRequest::MarketDepthRequest(const MarketDepthRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - max_depth_ = from.max_depth_; - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthRequest) -} - -void MarketDepthRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - max_depth_ = PROTOBUF_ULONGLONG(0); -} - -MarketDepthRequest::~MarketDepthRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketDepthRequest::ArenaDtor(void* object) { - MarketDepthRequest* _this = reinterpret_cast< MarketDepthRequest* >(object); - (void)_this; -} -void MarketDepthRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthRequest& MarketDepthRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - max_depth_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketDepthRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 max_depth = 2 [json_name = "maxDepth"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - max_depth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketDepthRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // uint64 max_depth = 2 [json_name = "maxDepth"]; - if (this->max_depth() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_max_depth(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthRequest) - return target; -} - -size_t MarketDepthRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // uint64 max_depth = 2 [json_name = "maxDepth"]; - if (this->max_depth() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_max_depth()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthRequest) - MergeFrom(*source); - } -} - -void MarketDepthRequest::MergeFrom(const MarketDepthRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.max_depth() != 0) { - _internal_set_max_depth(from._internal_max_depth()); - } -} - -void MarketDepthRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthRequest::CopyFrom(const MarketDepthRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthRequest::IsInitialized() const { - return true; -} - -void MarketDepthRequest::InternalSwap(MarketDepthRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(max_depth_, other->max_depth_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketDepthResponse::_Internal { - public: - static const ::vega::Trade& last_trade(const MarketDepthResponse* msg); -}; - -const ::vega::Trade& -MarketDepthResponse::_Internal::last_trade(const MarketDepthResponse* msg) { - return *msg->last_trade_; -} -void MarketDepthResponse::clear_buy() { - buy_.Clear(); -} -void MarketDepthResponse::clear_sell() { - sell_.Clear(); -} -void MarketDepthResponse::clear_last_trade() { - if (GetArena() == nullptr && last_trade_ != nullptr) { - delete last_trade_; - } - last_trade_ = nullptr; -} -MarketDepthResponse::MarketDepthResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - buy_(arena), - sell_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketDepthResponse) -} -MarketDepthResponse::MarketDepthResponse(const MarketDepthResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - buy_(from.buy_), - sell_(from.sell_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - if (from._internal_has_last_trade()) { - last_trade_ = new ::vega::Trade(*from.last_trade_); - } else { - last_trade_ = nullptr; - } - sequence_number_ = from.sequence_number_; - // @@protoc_insertion_point(copy_constructor:api.v1.MarketDepthResponse) -} - -void MarketDepthResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketDepthResponse_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&last_trade_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&sequence_number_) - - reinterpret_cast(&last_trade_)) + sizeof(sequence_number_)); -} - -MarketDepthResponse::~MarketDepthResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketDepthResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketDepthResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete last_trade_; -} - -void MarketDepthResponse::ArenaDtor(void* object) { - MarketDepthResponse* _this = reinterpret_cast< MarketDepthResponse* >(object); - (void)_this; -} -void MarketDepthResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketDepthResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketDepthResponse& MarketDepthResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketDepthResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketDepthResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketDepthResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - buy_.Clear(); - sell_.Clear(); - market_id_.ClearToEmpty(); - if (GetArena() == nullptr && last_trade_ != nullptr) { - delete last_trade_; - } - last_trade_ = nullptr; - sequence_number_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketDepthResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketDepthResponse.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_buy(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - // repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_sell(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; - // .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_last_trade(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - sequence_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketDepthResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketDepthResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketDepthResponse.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_buy_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_buy(i), target, stream); - } - - // repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_sell_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_sell(i), target, stream); - } - - // .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - if (this->has_last_trade()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::last_trade(this), target, stream); - } - - // uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - if (this->sequence_number() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_sequence_number(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketDepthResponse) - return target; -} - -size_t MarketDepthResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketDepthResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - total_size += 1UL * this->_internal_buy_size(); - for (const auto& msg : this->buy_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - total_size += 1UL * this->_internal_sell_size(); - for (const auto& msg : this->sell_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - if (this->has_last_trade()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *last_trade_); - } - - // uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - if (this->sequence_number() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_sequence_number()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketDepthResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketDepthResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketDepthResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketDepthResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketDepthResponse) - MergeFrom(*source); - } -} - -void MarketDepthResponse::MergeFrom(const MarketDepthResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketDepthResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - buy_.MergeFrom(from.buy_); - sell_.MergeFrom(from.sell_); - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.has_last_trade()) { - _internal_mutable_last_trade()->::vega::Trade::MergeFrom(from._internal_last_trade()); - } - if (from.sequence_number() != 0) { - _internal_set_sequence_number(from._internal_sequence_number()); - } -} - -void MarketDepthResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketDepthResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketDepthResponse::CopyFrom(const MarketDepthResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketDepthResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketDepthResponse::IsInitialized() const { - return true; -} - -void MarketDepthResponse::InternalSwap(MarketDepthResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - buy_.InternalSwap(&other->buy_); - sell_.InternalSwap(&other->sell_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MarketDepthResponse, sequence_number_) - + sizeof(MarketDepthResponse::sequence_number_) - - PROTOBUF_FIELD_OFFSET(MarketDepthResponse, last_trade_)>( - reinterpret_cast(&last_trade_), - reinterpret_cast(&other->last_trade_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketDepthResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByMarketRequest::_Internal { - public: - static const ::api::v1::Pagination& pagination(const TradesByMarketRequest* msg); -}; - -const ::api::v1::Pagination& -TradesByMarketRequest::_Internal::pagination(const TradesByMarketRequest* msg) { - return *msg->pagination_; -} -TradesByMarketRequest::TradesByMarketRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByMarketRequest) -} -TradesByMarketRequest::TradesByMarketRequest(const TradesByMarketRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - if (from._internal_has_pagination()) { - pagination_ = new ::api::v1::Pagination(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByMarketRequest) -} - -void TradesByMarketRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByMarketRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pagination_ = nullptr; -} - -TradesByMarketRequest::~TradesByMarketRequest() { - // @@protoc_insertion_point(destructor:api.v1.TradesByMarketRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByMarketRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete pagination_; -} - -void TradesByMarketRequest::ArenaDtor(void* object) { - TradesByMarketRequest* _this = reinterpret_cast< TradesByMarketRequest* >(object); - (void)_this; -} -void TradesByMarketRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByMarketRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByMarketRequest& TradesByMarketRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByMarketRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByMarketRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByMarketRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.TradesByMarketRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pagination(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByMarketRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.TradesByMarketRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::pagination(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByMarketRequest) - return target; -} - -size_t TradesByMarketRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByMarketRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pagination_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByMarketRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByMarketRequest) - GOOGLE_DCHECK_NE(&from, this); - const TradesByMarketRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByMarketRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByMarketRequest) - MergeFrom(*source); - } -} - -void TradesByMarketRequest::MergeFrom(const TradesByMarketRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByMarketRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.has_pagination()) { - _internal_mutable_pagination()->::api::v1::Pagination::MergeFrom(from._internal_pagination()); - } -} - -void TradesByMarketRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByMarketRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByMarketRequest::CopyFrom(const TradesByMarketRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByMarketRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByMarketRequest::IsInitialized() const { - return true; -} - -void TradesByMarketRequest::InternalSwap(TradesByMarketRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(pagination_, other->pagination_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByMarketRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesByMarketResponse::_Internal { - public: -}; - -void TradesByMarketResponse::clear_trades() { - trades_.Clear(); -} -TradesByMarketResponse::TradesByMarketResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - trades_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesByMarketResponse) -} -TradesByMarketResponse::TradesByMarketResponse(const TradesByMarketResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - trades_(from.trades_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.TradesByMarketResponse) -} - -void TradesByMarketResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesByMarketResponse_api_2ftrading_2eproto.base); -} - -TradesByMarketResponse::~TradesByMarketResponse() { - // @@protoc_insertion_point(destructor:api.v1.TradesByMarketResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesByMarketResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void TradesByMarketResponse::ArenaDtor(void* object) { - TradesByMarketResponse* _this = reinterpret_cast< TradesByMarketResponse* >(object); - (void)_this; -} -void TradesByMarketResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesByMarketResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesByMarketResponse& TradesByMarketResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesByMarketResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesByMarketResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - trades_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesByMarketResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_trades(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesByMarketResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_trades_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_trades(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesByMarketResponse) - return target; -} - -size_t TradesByMarketResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesByMarketResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - total_size += 1UL * this->_internal_trades_size(); - for (const auto& msg : this->trades_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesByMarketResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesByMarketResponse) - GOOGLE_DCHECK_NE(&from, this); - const TradesByMarketResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesByMarketResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesByMarketResponse) - MergeFrom(*source); - } -} - -void TradesByMarketResponse::MergeFrom(const TradesByMarketResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesByMarketResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - trades_.MergeFrom(from.trades_); -} - -void TradesByMarketResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesByMarketResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesByMarketResponse::CopyFrom(const TradesByMarketResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesByMarketResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesByMarketResponse::IsInitialized() const { - return true; -} - -void TradesByMarketResponse::InternalSwap(TradesByMarketResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - trades_.InternalSwap(&other->trades_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesByMarketResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PositionsByPartyRequest::_Internal { - public: -}; - -PositionsByPartyRequest::PositionsByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PositionsByPartyRequest) -} -PositionsByPartyRequest::PositionsByPartyRequest(const PositionsByPartyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PositionsByPartyRequest) -} - -void PositionsByPartyRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PositionsByPartyRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PositionsByPartyRequest::~PositionsByPartyRequest() { - // @@protoc_insertion_point(destructor:api.v1.PositionsByPartyRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PositionsByPartyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PositionsByPartyRequest::ArenaDtor(void* object) { - PositionsByPartyRequest* _this = reinterpret_cast< PositionsByPartyRequest* >(object); - (void)_this; -} -void PositionsByPartyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PositionsByPartyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PositionsByPartyRequest& PositionsByPartyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PositionsByPartyRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PositionsByPartyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PositionsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PositionsByPartyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PositionsByPartyRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PositionsByPartyRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PositionsByPartyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PositionsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PositionsByPartyRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PositionsByPartyRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PositionsByPartyRequest) - return target; -} - -size_t PositionsByPartyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PositionsByPartyRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PositionsByPartyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PositionsByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - const PositionsByPartyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PositionsByPartyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PositionsByPartyRequest) - MergeFrom(*source); - } -} - -void PositionsByPartyRequest::MergeFrom(const PositionsByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PositionsByPartyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } -} - -void PositionsByPartyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PositionsByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PositionsByPartyRequest::CopyFrom(const PositionsByPartyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PositionsByPartyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PositionsByPartyRequest::IsInitialized() const { - return true; -} - -void PositionsByPartyRequest::InternalSwap(PositionsByPartyRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PositionsByPartyRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PositionsByPartyResponse::_Internal { - public: -}; - -void PositionsByPartyResponse::clear_positions() { - positions_.Clear(); -} -PositionsByPartyResponse::PositionsByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - positions_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PositionsByPartyResponse) -} -PositionsByPartyResponse::PositionsByPartyResponse(const PositionsByPartyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - positions_(from.positions_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.PositionsByPartyResponse) -} - -void PositionsByPartyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PositionsByPartyResponse_api_2ftrading_2eproto.base); -} - -PositionsByPartyResponse::~PositionsByPartyResponse() { - // @@protoc_insertion_point(destructor:api.v1.PositionsByPartyResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PositionsByPartyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void PositionsByPartyResponse::ArenaDtor(void* object) { - PositionsByPartyResponse* _this = reinterpret_cast< PositionsByPartyResponse* >(object); - (void)_this; -} -void PositionsByPartyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PositionsByPartyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PositionsByPartyResponse& PositionsByPartyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PositionsByPartyResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PositionsByPartyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PositionsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - positions_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PositionsByPartyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Position positions = 1 [json_name = "positions"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_positions(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PositionsByPartyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PositionsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Position positions = 1 [json_name = "positions"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_positions_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_positions(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PositionsByPartyResponse) - return target; -} - -size_t PositionsByPartyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PositionsByPartyResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Position positions = 1 [json_name = "positions"]; - total_size += 1UL * this->_internal_positions_size(); - for (const auto& msg : this->positions_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PositionsByPartyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PositionsByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - const PositionsByPartyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PositionsByPartyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PositionsByPartyResponse) - MergeFrom(*source); - } -} - -void PositionsByPartyResponse::MergeFrom(const PositionsByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PositionsByPartyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - positions_.MergeFrom(from.positions_); -} - -void PositionsByPartyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PositionsByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PositionsByPartyResponse::CopyFrom(const PositionsByPartyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PositionsByPartyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PositionsByPartyResponse::IsInitialized() const { - return true; -} - -void PositionsByPartyResponse::InternalSwap(PositionsByPartyResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - positions_.InternalSwap(&other->positions_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PositionsByPartyResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetVegaTimeRequest::_Internal { - public: -}; - -GetVegaTimeRequest::GetVegaTimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetVegaTimeRequest) -} -GetVegaTimeRequest::GetVegaTimeRequest(const GetVegaTimeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.GetVegaTimeRequest) -} - -void GetVegaTimeRequest::SharedCtor() { -} - -GetVegaTimeRequest::~GetVegaTimeRequest() { - // @@protoc_insertion_point(destructor:api.v1.GetVegaTimeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetVegaTimeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetVegaTimeRequest::ArenaDtor(void* object) { - GetVegaTimeRequest* _this = reinterpret_cast< GetVegaTimeRequest* >(object); - (void)_this; -} -void GetVegaTimeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetVegaTimeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVegaTimeRequest& GetVegaTimeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVegaTimeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetVegaTimeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetVegaTimeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetVegaTimeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetVegaTimeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVegaTimeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVegaTimeRequest) - return target; -} - -size_t GetVegaTimeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVegaTimeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVegaTimeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVegaTimeRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetVegaTimeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVegaTimeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVegaTimeRequest) - MergeFrom(*source); - } -} - -void GetVegaTimeRequest::MergeFrom(const GetVegaTimeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVegaTimeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void GetVegaTimeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVegaTimeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVegaTimeRequest::CopyFrom(const GetVegaTimeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVegaTimeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVegaTimeRequest::IsInitialized() const { - return true; -} - -void GetVegaTimeRequest::InternalSwap(GetVegaTimeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetVegaTimeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class GetVegaTimeResponse::_Internal { - public: -}; - -GetVegaTimeResponse::GetVegaTimeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.GetVegaTimeResponse) -} -GetVegaTimeResponse::GetVegaTimeResponse(const GetVegaTimeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - timestamp_ = from.timestamp_; - // @@protoc_insertion_point(copy_constructor:api.v1.GetVegaTimeResponse) -} - -void GetVegaTimeResponse::SharedCtor() { - timestamp_ = PROTOBUF_LONGLONG(0); -} - -GetVegaTimeResponse::~GetVegaTimeResponse() { - // @@protoc_insertion_point(destructor:api.v1.GetVegaTimeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void GetVegaTimeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void GetVegaTimeResponse::ArenaDtor(void* object) { - GetVegaTimeResponse* _this = reinterpret_cast< GetVegaTimeResponse* >(object); - (void)_this; -} -void GetVegaTimeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void GetVegaTimeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVegaTimeResponse& GetVegaTimeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVegaTimeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void GetVegaTimeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.GetVegaTimeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - timestamp_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetVegaTimeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int64 timestamp = 1 [json_name = "timestamp"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* GetVegaTimeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVegaTimeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 timestamp = 1 [json_name = "timestamp"]; - if (this->timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_timestamp(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVegaTimeResponse) - return target; -} - -size_t GetVegaTimeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVegaTimeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 timestamp = 1 [json_name = "timestamp"]; - if (this->timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_timestamp()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVegaTimeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVegaTimeResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetVegaTimeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVegaTimeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVegaTimeResponse) - MergeFrom(*source); - } -} - -void GetVegaTimeResponse::MergeFrom(const GetVegaTimeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVegaTimeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.timestamp() != 0) { - _internal_set_timestamp(from._internal_timestamp()); - } -} - -void GetVegaTimeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVegaTimeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVegaTimeResponse::CopyFrom(const GetVegaTimeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVegaTimeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVegaTimeResponse::IsInitialized() const { - return true; -} - -void GetVegaTimeResponse::InternalSwap(GetVegaTimeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(timestamp_, other->timestamp_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetVegaTimeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class Pagination::_Internal { - public: -}; - -Pagination::Pagination(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.Pagination) -} -Pagination::Pagination(const Pagination& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&skip_, &from.skip_, - static_cast(reinterpret_cast(&descending_) - - reinterpret_cast(&skip_)) + sizeof(descending_)); - // @@protoc_insertion_point(copy_constructor:api.v1.Pagination) -} - -void Pagination::SharedCtor() { - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&skip_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&descending_) - - reinterpret_cast(&skip_)) + sizeof(descending_)); -} - -Pagination::~Pagination() { - // @@protoc_insertion_point(destructor:api.v1.Pagination) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Pagination::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Pagination::ArenaDtor(void* object) { - Pagination* _this = reinterpret_cast< Pagination* >(object); - (void)_this; -} -void Pagination::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Pagination::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Pagination& Pagination::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Pagination_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void Pagination::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.Pagination) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&skip_, 0, static_cast( - reinterpret_cast(&descending_) - - reinterpret_cast(&skip_)) + sizeof(descending_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Pagination::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // uint64 skip = 1 [json_name = "skip"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - skip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 limit = 2 [json_name = "limit"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool descending = 3 [json_name = "descending"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - descending_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Pagination::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.Pagination) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint64 skip = 1 [json_name = "skip"]; - if (this->skip() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_skip(), target); - } - - // uint64 limit = 2 [json_name = "limit"]; - if (this->limit() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_limit(), target); - } - - // bool descending = 3 [json_name = "descending"]; - if (this->descending() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_descending(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.Pagination) - return target; -} - -size_t Pagination::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.Pagination) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // uint64 skip = 1 [json_name = "skip"]; - if (this->skip() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_skip()); - } - - // uint64 limit = 2 [json_name = "limit"]; - if (this->limit() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_limit()); - } - - // bool descending = 3 [json_name = "descending"]; - if (this->descending() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Pagination::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.Pagination) - GOOGLE_DCHECK_NE(&from, this); - const Pagination* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.Pagination) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.Pagination) - MergeFrom(*source); - } -} - -void Pagination::MergeFrom(const Pagination& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.Pagination) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.skip() != 0) { - _internal_set_skip(from._internal_skip()); - } - if (from.limit() != 0) { - _internal_set_limit(from._internal_limit()); - } - if (from.descending() != 0) { - _internal_set_descending(from._internal_descending()); - } -} - -void Pagination::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.Pagination) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Pagination::CopyFrom(const Pagination& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.Pagination) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Pagination::IsInitialized() const { - return true; -} - -void Pagination::InternalSwap(Pagination* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Pagination, descending_) - + sizeof(Pagination::descending_) - - PROTOBUF_FIELD_OFFSET(Pagination, skip_)>( - reinterpret_cast(&skip_), - reinterpret_cast(&other->skip_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Pagination::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrdersSubscribeResponse::_Internal { - public: -}; - -void OrdersSubscribeResponse::clear_orders() { - orders_.Clear(); -} -OrdersSubscribeResponse::OrdersSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - orders_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrdersSubscribeResponse) -} -OrdersSubscribeResponse::OrdersSubscribeResponse(const OrdersSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - orders_(from.orders_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OrdersSubscribeResponse) -} - -void OrdersSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrdersSubscribeResponse_api_2ftrading_2eproto.base); -} - -OrdersSubscribeResponse::~OrdersSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrdersSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrdersSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void OrdersSubscribeResponse::ArenaDtor(void* object) { - OrdersSubscribeResponse* _this = reinterpret_cast< OrdersSubscribeResponse* >(object); - (void)_this; -} -void OrdersSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrdersSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrdersSubscribeResponse& OrdersSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrdersSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrdersSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrdersSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - orders_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrdersSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Order orders = 1 [json_name = "orders"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_orders(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrdersSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrdersSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_orders_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_orders(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrdersSubscribeResponse) - return target; -} - -size_t OrdersSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrdersSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - total_size += 1UL * this->_internal_orders_size(); - for (const auto& msg : this->orders_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrdersSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrdersSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrdersSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrdersSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrdersSubscribeResponse) - MergeFrom(*source); - } -} - -void OrdersSubscribeResponse::MergeFrom(const OrdersSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrdersSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - orders_.MergeFrom(from.orders_); -} - -void OrdersSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrdersSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrdersSubscribeResponse::CopyFrom(const OrdersSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrdersSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrdersSubscribeResponse::IsInitialized() const { - return true; -} - -void OrdersSubscribeResponse::InternalSwap(OrdersSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - orders_.InternalSwap(&other->orders_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrdersSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TradesSubscribeResponse::_Internal { - public: -}; - -void TradesSubscribeResponse::clear_trades() { - trades_.Clear(); -} -TradesSubscribeResponse::TradesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - trades_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TradesSubscribeResponse) -} -TradesSubscribeResponse::TradesSubscribeResponse(const TradesSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - trades_(from.trades_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.TradesSubscribeResponse) -} - -void TradesSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TradesSubscribeResponse_api_2ftrading_2eproto.base); -} - -TradesSubscribeResponse::~TradesSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.TradesSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TradesSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void TradesSubscribeResponse::ArenaDtor(void* object) { - TradesSubscribeResponse* _this = reinterpret_cast< TradesSubscribeResponse* >(object); - (void)_this; -} -void TradesSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TradesSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TradesSubscribeResponse& TradesSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TradesSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TradesSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TradesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - trades_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TradesSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_trades(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TradesSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TradesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_trades_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_trades(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TradesSubscribeResponse) - return target; -} - -size_t TradesSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TradesSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - total_size += 1UL * this->_internal_trades_size(); - for (const auto& msg : this->trades_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TradesSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TradesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const TradesSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TradesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TradesSubscribeResponse) - MergeFrom(*source); - } -} - -void TradesSubscribeResponse::MergeFrom(const TradesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TradesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - trades_.MergeFrom(from.trades_); -} - -void TradesSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TradesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TradesSubscribeResponse::CopyFrom(const TradesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TradesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TradesSubscribeResponse::IsInitialized() const { - return true; -} - -void TradesSubscribeResponse::InternalSwap(TradesSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - trades_.InternalSwap(&other->trades_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TradesSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TransferResponsesSubscribeRequest::_Internal { - public: -}; - -TransferResponsesSubscribeRequest::TransferResponsesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TransferResponsesSubscribeRequest) -} -TransferResponsesSubscribeRequest::TransferResponsesSubscribeRequest(const TransferResponsesSubscribeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.TransferResponsesSubscribeRequest) -} - -void TransferResponsesSubscribeRequest::SharedCtor() { -} - -TransferResponsesSubscribeRequest::~TransferResponsesSubscribeRequest() { - // @@protoc_insertion_point(destructor:api.v1.TransferResponsesSubscribeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TransferResponsesSubscribeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void TransferResponsesSubscribeRequest::ArenaDtor(void* object) { - TransferResponsesSubscribeRequest* _this = reinterpret_cast< TransferResponsesSubscribeRequest* >(object); - (void)_this; -} -void TransferResponsesSubscribeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TransferResponsesSubscribeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TransferResponsesSubscribeRequest& TransferResponsesSubscribeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TransferResponsesSubscribeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TransferResponsesSubscribeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TransferResponsesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TransferResponsesSubscribeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TransferResponsesSubscribeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TransferResponsesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TransferResponsesSubscribeRequest) - return target; -} - -size_t TransferResponsesSubscribeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TransferResponsesSubscribeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TransferResponsesSubscribeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TransferResponsesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - const TransferResponsesSubscribeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TransferResponsesSubscribeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TransferResponsesSubscribeRequest) - MergeFrom(*source); - } -} - -void TransferResponsesSubscribeRequest::MergeFrom(const TransferResponsesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TransferResponsesSubscribeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void TransferResponsesSubscribeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TransferResponsesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TransferResponsesSubscribeRequest::CopyFrom(const TransferResponsesSubscribeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TransferResponsesSubscribeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TransferResponsesSubscribeRequest::IsInitialized() const { - return true; -} - -void TransferResponsesSubscribeRequest::InternalSwap(TransferResponsesSubscribeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TransferResponsesSubscribeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class TransferResponsesSubscribeResponse::_Internal { - public: - static const ::vega::TransferResponse& response(const TransferResponsesSubscribeResponse* msg); -}; - -const ::vega::TransferResponse& -TransferResponsesSubscribeResponse::_Internal::response(const TransferResponsesSubscribeResponse* msg) { - return *msg->response_; -} -void TransferResponsesSubscribeResponse::clear_response() { - if (GetArena() == nullptr && response_ != nullptr) { - delete response_; - } - response_ = nullptr; -} -TransferResponsesSubscribeResponse::TransferResponsesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.TransferResponsesSubscribeResponse) -} -TransferResponsesSubscribeResponse::TransferResponsesSubscribeResponse(const TransferResponsesSubscribeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_response()) { - response_ = new ::vega::TransferResponse(*from.response_); - } else { - response_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.TransferResponsesSubscribeResponse) -} - -void TransferResponsesSubscribeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto.base); - response_ = nullptr; -} - -TransferResponsesSubscribeResponse::~TransferResponsesSubscribeResponse() { - // @@protoc_insertion_point(destructor:api.v1.TransferResponsesSubscribeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void TransferResponsesSubscribeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete response_; -} - -void TransferResponsesSubscribeResponse::ArenaDtor(void* object) { - TransferResponsesSubscribeResponse* _this = reinterpret_cast< TransferResponsesSubscribeResponse* >(object); - (void)_this; -} -void TransferResponsesSubscribeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void TransferResponsesSubscribeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TransferResponsesSubscribeResponse& TransferResponsesSubscribeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TransferResponsesSubscribeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void TransferResponsesSubscribeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.TransferResponsesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && response_ != nullptr) { - delete response_; - } - response_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TransferResponsesSubscribeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.TransferResponse response = 1 [json_name = "response"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_response(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TransferResponsesSubscribeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.TransferResponsesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.TransferResponse response = 1 [json_name = "response"]; - if (this->has_response()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::response(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.TransferResponsesSubscribeResponse) - return target; -} - -size_t TransferResponsesSubscribeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.TransferResponsesSubscribeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.TransferResponse response = 1 [json_name = "response"]; - if (this->has_response()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *response_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TransferResponsesSubscribeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.TransferResponsesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - const TransferResponsesSubscribeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.TransferResponsesSubscribeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.TransferResponsesSubscribeResponse) - MergeFrom(*source); - } -} - -void TransferResponsesSubscribeResponse::MergeFrom(const TransferResponsesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.TransferResponsesSubscribeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_response()) { - _internal_mutable_response()->::vega::TransferResponse::MergeFrom(from._internal_response()); - } -} - -void TransferResponsesSubscribeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.TransferResponsesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TransferResponsesSubscribeResponse::CopyFrom(const TransferResponsesSubscribeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.TransferResponsesSubscribeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TransferResponsesSubscribeResponse::IsInitialized() const { - return true; -} - -void TransferResponsesSubscribeResponse::InternalSwap(TransferResponsesSubscribeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(response_, other->response_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TransferResponsesSubscribeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartyAccountsRequest::_Internal { - public: -}; - -PartyAccountsRequest::PartyAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartyAccountsRequest) -} -PartyAccountsRequest::PartyAccountsRequest(const PartyAccountsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset().empty()) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), - GetArena()); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:api.v1.PartyAccountsRequest) -} - -void PartyAccountsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartyAccountsRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -PartyAccountsRequest::~PartyAccountsRequest() { - // @@protoc_insertion_point(destructor:api.v1.PartyAccountsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartyAccountsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PartyAccountsRequest::ArenaDtor(void* object) { - PartyAccountsRequest* _this = reinterpret_cast< PartyAccountsRequest* >(object); - (void)_this; -} -void PartyAccountsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartyAccountsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartyAccountsRequest& PartyAccountsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartyAccountsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartyAccountsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartyAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - asset_.ClearToEmpty(); - type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartyAccountsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PartyAccountsRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PartyAccountsRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.AccountType type = 3 [json_name = "type"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::vega::AccountType>(val)); - } else goto handle_unusual; - continue; - // string asset = 4 [json_name = "asset"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_asset(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PartyAccountsRequest.asset")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartyAccountsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartyAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PartyAccountsRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PartyAccountsRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - // .vega.AccountType type = 3 [json_name = "type"]; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_type(), target); - } - - // string asset = 4 [json_name = "asset"]; - if (this->asset().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset().data(), static_cast(this->_internal_asset().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.PartyAccountsRequest.asset"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_asset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartyAccountsRequest) - return target; -} - -size_t PartyAccountsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartyAccountsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string asset = 4 [json_name = "asset"]; - if (this->asset().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); - } - - // .vega.AccountType type = 3 [json_name = "type"]; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartyAccountsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartyAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - const PartyAccountsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartyAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartyAccountsRequest) - MergeFrom(*source); - } -} - -void PartyAccountsRequest::MergeFrom(const PartyAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartyAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.asset().size() > 0) { - _internal_set_asset(from._internal_asset()); - } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } -} - -void PartyAccountsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartyAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartyAccountsRequest::CopyFrom(const PartyAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartyAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartyAccountsRequest::IsInitialized() const { - return true; -} - -void PartyAccountsRequest::InternalSwap(PartyAccountsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartyAccountsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PartyAccountsResponse::_Internal { - public: -}; - -void PartyAccountsResponse::clear_accounts() { - accounts_.Clear(); -} -PartyAccountsResponse::PartyAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - accounts_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PartyAccountsResponse) -} -PartyAccountsResponse::PartyAccountsResponse(const PartyAccountsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - accounts_(from.accounts_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.PartyAccountsResponse) -} - -void PartyAccountsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartyAccountsResponse_api_2ftrading_2eproto.base); -} - -PartyAccountsResponse::~PartyAccountsResponse() { - // @@protoc_insertion_point(destructor:api.v1.PartyAccountsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PartyAccountsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void PartyAccountsResponse::ArenaDtor(void* object) { - PartyAccountsResponse* _this = reinterpret_cast< PartyAccountsResponse* >(object); - (void)_this; -} -void PartyAccountsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PartyAccountsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartyAccountsResponse& PartyAccountsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartyAccountsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PartyAccountsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PartyAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - accounts_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PartyAccountsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_accounts(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PartyAccountsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PartyAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_accounts_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_accounts(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PartyAccountsResponse) - return target; -} - -size_t PartyAccountsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PartyAccountsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - total_size += 1UL * this->_internal_accounts_size(); - for (const auto& msg : this->accounts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartyAccountsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PartyAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - const PartyAccountsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PartyAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PartyAccountsResponse) - MergeFrom(*source); - } -} - -void PartyAccountsResponse::MergeFrom(const PartyAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PartyAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - accounts_.MergeFrom(from.accounts_); -} - -void PartyAccountsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PartyAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartyAccountsResponse::CopyFrom(const PartyAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PartyAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartyAccountsResponse::IsInitialized() const { - return true; -} - -void PartyAccountsResponse::InternalSwap(PartyAccountsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - accounts_.InternalSwap(&other->accounts_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PartyAccountsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketAccountsRequest::_Internal { - public: -}; - -MarketAccountsRequest::MarketAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketAccountsRequest) -} -MarketAccountsRequest::MarketAccountsRequest(const MarketAccountsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset().empty()) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.MarketAccountsRequest) -} - -void MarketAccountsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketAccountsRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -MarketAccountsRequest::~MarketAccountsRequest() { - // @@protoc_insertion_point(destructor:api.v1.MarketAccountsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketAccountsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void MarketAccountsRequest::ArenaDtor(void* object) { - MarketAccountsRequest* _this = reinterpret_cast< MarketAccountsRequest* >(object); - (void)_this; -} -void MarketAccountsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketAccountsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketAccountsRequest& MarketAccountsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketAccountsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketAccountsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - market_id_.ClearToEmpty(); - asset_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketAccountsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string market_id = 1 [json_name = "marketId"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketAccountsRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string asset = 2 [json_name = "asset"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_asset(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.MarketAccountsRequest.asset")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketAccountsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketAccountsRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market_id(), target); - } - - // string asset = 2 [json_name = "asset"]; - if (this->asset().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset().data(), static_cast(this->_internal_asset().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.MarketAccountsRequest.asset"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_asset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketAccountsRequest) - return target; -} - -size_t MarketAccountsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketAccountsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string market_id = 1 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string asset = 2 [json_name = "asset"]; - if (this->asset().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketAccountsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - const MarketAccountsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketAccountsRequest) - MergeFrom(*source); - } -} - -void MarketAccountsRequest::MergeFrom(const MarketAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.asset().size() > 0) { - _internal_set_asset(from._internal_asset()); - } -} - -void MarketAccountsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketAccountsRequest::CopyFrom(const MarketAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketAccountsRequest::IsInitialized() const { - return true; -} - -void MarketAccountsRequest::InternalSwap(MarketAccountsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketAccountsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class MarketAccountsResponse::_Internal { - public: -}; - -void MarketAccountsResponse::clear_accounts() { - accounts_.Clear(); -} -MarketAccountsResponse::MarketAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - accounts_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.MarketAccountsResponse) -} -MarketAccountsResponse::MarketAccountsResponse(const MarketAccountsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - accounts_(from.accounts_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.MarketAccountsResponse) -} - -void MarketAccountsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketAccountsResponse_api_2ftrading_2eproto.base); -} - -MarketAccountsResponse::~MarketAccountsResponse() { - // @@protoc_insertion_point(destructor:api.v1.MarketAccountsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void MarketAccountsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void MarketAccountsResponse::ArenaDtor(void* object) { - MarketAccountsResponse* _this = reinterpret_cast< MarketAccountsResponse* >(object); - (void)_this; -} -void MarketAccountsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MarketAccountsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MarketAccountsResponse& MarketAccountsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MarketAccountsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void MarketAccountsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.MarketAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - accounts_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MarketAccountsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_accounts(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MarketAccountsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.MarketAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_accounts_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_accounts(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.MarketAccountsResponse) - return target; -} - -size_t MarketAccountsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.MarketAccountsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - total_size += 1UL * this->_internal_accounts_size(); - for (const auto& msg : this->accounts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MarketAccountsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.MarketAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - const MarketAccountsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.MarketAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.MarketAccountsResponse) - MergeFrom(*source); - } -} - -void MarketAccountsResponse::MergeFrom(const MarketAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.MarketAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - accounts_.MergeFrom(from.accounts_); -} - -void MarketAccountsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.MarketAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MarketAccountsResponse::CopyFrom(const MarketAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.MarketAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MarketAccountsResponse::IsInitialized() const { - return true; -} - -void MarketAccountsResponse::InternalSwap(MarketAccountsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - accounts_.InternalSwap(&other->accounts_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MarketAccountsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class FeeInfrastructureAccountsRequest::_Internal { - public: -}; - -FeeInfrastructureAccountsRequest::FeeInfrastructureAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.FeeInfrastructureAccountsRequest) -} -FeeInfrastructureAccountsRequest::FeeInfrastructureAccountsRequest(const FeeInfrastructureAccountsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset().empty()) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.FeeInfrastructureAccountsRequest) -} - -void FeeInfrastructureAccountsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto.base); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -FeeInfrastructureAccountsRequest::~FeeInfrastructureAccountsRequest() { - // @@protoc_insertion_point(destructor:api.v1.FeeInfrastructureAccountsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void FeeInfrastructureAccountsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FeeInfrastructureAccountsRequest::ArenaDtor(void* object) { - FeeInfrastructureAccountsRequest* _this = reinterpret_cast< FeeInfrastructureAccountsRequest* >(object); - (void)_this; -} -void FeeInfrastructureAccountsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FeeInfrastructureAccountsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FeeInfrastructureAccountsRequest& FeeInfrastructureAccountsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FeeInfrastructureAccountsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void FeeInfrastructureAccountsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.FeeInfrastructureAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - asset_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FeeInfrastructureAccountsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string asset = 1 [json_name = "asset"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_asset(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.FeeInfrastructureAccountsRequest.asset")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FeeInfrastructureAccountsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.FeeInfrastructureAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string asset = 1 [json_name = "asset"]; - if (this->asset().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset().data(), static_cast(this->_internal_asset().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.FeeInfrastructureAccountsRequest.asset"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_asset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.FeeInfrastructureAccountsRequest) - return target; -} - -size_t FeeInfrastructureAccountsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.FeeInfrastructureAccountsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string asset = 1 [json_name = "asset"]; - if (this->asset().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FeeInfrastructureAccountsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.FeeInfrastructureAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - const FeeInfrastructureAccountsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.FeeInfrastructureAccountsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.FeeInfrastructureAccountsRequest) - MergeFrom(*source); - } -} - -void FeeInfrastructureAccountsRequest::MergeFrom(const FeeInfrastructureAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.FeeInfrastructureAccountsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.asset().size() > 0) { - _internal_set_asset(from._internal_asset()); - } -} - -void FeeInfrastructureAccountsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.FeeInfrastructureAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FeeInfrastructureAccountsRequest::CopyFrom(const FeeInfrastructureAccountsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.FeeInfrastructureAccountsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FeeInfrastructureAccountsRequest::IsInitialized() const { - return true; -} - -void FeeInfrastructureAccountsRequest::InternalSwap(FeeInfrastructureAccountsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FeeInfrastructureAccountsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class FeeInfrastructureAccountsResponse::_Internal { - public: -}; - -void FeeInfrastructureAccountsResponse::clear_accounts() { - accounts_.Clear(); -} -FeeInfrastructureAccountsResponse::FeeInfrastructureAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - accounts_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.FeeInfrastructureAccountsResponse) -} -FeeInfrastructureAccountsResponse::FeeInfrastructureAccountsResponse(const FeeInfrastructureAccountsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - accounts_(from.accounts_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.FeeInfrastructureAccountsResponse) -} - -void FeeInfrastructureAccountsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto.base); -} - -FeeInfrastructureAccountsResponse::~FeeInfrastructureAccountsResponse() { - // @@protoc_insertion_point(destructor:api.v1.FeeInfrastructureAccountsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void FeeInfrastructureAccountsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void FeeInfrastructureAccountsResponse::ArenaDtor(void* object) { - FeeInfrastructureAccountsResponse* _this = reinterpret_cast< FeeInfrastructureAccountsResponse* >(object); - (void)_this; -} -void FeeInfrastructureAccountsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FeeInfrastructureAccountsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FeeInfrastructureAccountsResponse& FeeInfrastructureAccountsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FeeInfrastructureAccountsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void FeeInfrastructureAccountsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.FeeInfrastructureAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - accounts_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FeeInfrastructureAccountsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_accounts(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FeeInfrastructureAccountsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.FeeInfrastructureAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_accounts_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_accounts(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.FeeInfrastructureAccountsResponse) - return target; -} - -size_t FeeInfrastructureAccountsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.FeeInfrastructureAccountsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - total_size += 1UL * this->_internal_accounts_size(); - for (const auto& msg : this->accounts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FeeInfrastructureAccountsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.FeeInfrastructureAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - const FeeInfrastructureAccountsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.FeeInfrastructureAccountsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.FeeInfrastructureAccountsResponse) - MergeFrom(*source); - } -} - -void FeeInfrastructureAccountsResponse::MergeFrom(const FeeInfrastructureAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.FeeInfrastructureAccountsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - accounts_.MergeFrom(from.accounts_); -} - -void FeeInfrastructureAccountsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.FeeInfrastructureAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FeeInfrastructureAccountsResponse::CopyFrom(const FeeInfrastructureAccountsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.FeeInfrastructureAccountsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FeeInfrastructureAccountsResponse::IsInitialized() const { - return true; -} - -void FeeInfrastructureAccountsResponse::InternalSwap(FeeInfrastructureAccountsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - accounts_.InternalSwap(&other->accounts_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FeeInfrastructureAccountsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareProposalSubmissionRequest::_Internal { - public: - static const ::vega::commands::v1::ProposalSubmission& submission(const PrepareProposalSubmissionRequest* msg); -}; - -const ::vega::commands::v1::ProposalSubmission& -PrepareProposalSubmissionRequest::_Internal::submission(const PrepareProposalSubmissionRequest* msg) { - return *msg->submission_; -} -void PrepareProposalSubmissionRequest::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareProposalSubmissionRequest::PrepareProposalSubmissionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareProposalSubmissionRequest) -} -PrepareProposalSubmissionRequest::PrepareProposalSubmissionRequest(const PrepareProposalSubmissionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::ProposalSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareProposalSubmissionRequest) -} - -void PrepareProposalSubmissionRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto.base); - submission_ = nullptr; -} - -PrepareProposalSubmissionRequest::~PrepareProposalSubmissionRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareProposalSubmissionRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareProposalSubmissionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareProposalSubmissionRequest::ArenaDtor(void* object) { - PrepareProposalSubmissionRequest* _this = reinterpret_cast< PrepareProposalSubmissionRequest* >(object); - (void)_this; -} -void PrepareProposalSubmissionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareProposalSubmissionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareProposalSubmissionRequest& PrepareProposalSubmissionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareProposalSubmissionRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareProposalSubmissionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareProposalSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareProposalSubmissionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareProposalSubmissionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareProposalSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareProposalSubmissionRequest) - return target; -} - -size_t PrepareProposalSubmissionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareProposalSubmissionRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareProposalSubmissionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareProposalSubmissionRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareProposalSubmissionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareProposalSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareProposalSubmissionRequest) - MergeFrom(*source); - } -} - -void PrepareProposalSubmissionRequest::MergeFrom(const PrepareProposalSubmissionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareProposalSubmissionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::ProposalSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareProposalSubmissionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareProposalSubmissionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareProposalSubmissionRequest::CopyFrom(const PrepareProposalSubmissionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareProposalSubmissionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareProposalSubmissionRequest::IsInitialized() const { - return true; -} - -void PrepareProposalSubmissionRequest::InternalSwap(PrepareProposalSubmissionRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareProposalSubmissionRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareProposalSubmissionResponse::_Internal { - public: - static const ::vega::commands::v1::ProposalSubmission& submission(const PrepareProposalSubmissionResponse* msg); -}; - -const ::vega::commands::v1::ProposalSubmission& -PrepareProposalSubmissionResponse::_Internal::submission(const PrepareProposalSubmissionResponse* msg) { - return *msg->submission_; -} -void PrepareProposalSubmissionResponse::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareProposalSubmissionResponse::PrepareProposalSubmissionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareProposalSubmissionResponse) -} -PrepareProposalSubmissionResponse::PrepareProposalSubmissionResponse(const PrepareProposalSubmissionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::ProposalSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareProposalSubmissionResponse) -} - -void PrepareProposalSubmissionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - submission_ = nullptr; -} - -PrepareProposalSubmissionResponse::~PrepareProposalSubmissionResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareProposalSubmissionResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareProposalSubmissionResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareProposalSubmissionResponse::ArenaDtor(void* object) { - PrepareProposalSubmissionResponse* _this = reinterpret_cast< PrepareProposalSubmissionResponse* >(object); - (void)_this; -} -void PrepareProposalSubmissionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareProposalSubmissionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareProposalSubmissionResponse& PrepareProposalSubmissionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareProposalSubmissionResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareProposalSubmissionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareProposalSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareProposalSubmissionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareProposalSubmissionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareProposalSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - // .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareProposalSubmissionResponse) - return target; -} - -size_t PrepareProposalSubmissionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareProposalSubmissionResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - // .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareProposalSubmissionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareProposalSubmissionResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareProposalSubmissionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareProposalSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareProposalSubmissionResponse) - MergeFrom(*source); - } -} - -void PrepareProposalSubmissionResponse::MergeFrom(const PrepareProposalSubmissionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareProposalSubmissionResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::ProposalSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareProposalSubmissionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareProposalSubmissionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareProposalSubmissionResponse::CopyFrom(const PrepareProposalSubmissionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareProposalSubmissionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareProposalSubmissionResponse::IsInitialized() const { - return true; -} - -void PrepareProposalSubmissionResponse::InternalSwap(PrepareProposalSubmissionResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareProposalSubmissionResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareVoteSubmissionRequest::_Internal { - public: - static const ::vega::commands::v1::VoteSubmission& submission(const PrepareVoteSubmissionRequest* msg); -}; - -const ::vega::commands::v1::VoteSubmission& -PrepareVoteSubmissionRequest::_Internal::submission(const PrepareVoteSubmissionRequest* msg) { - return *msg->submission_; -} -void PrepareVoteSubmissionRequest::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareVoteSubmissionRequest::PrepareVoteSubmissionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareVoteSubmissionRequest) -} -PrepareVoteSubmissionRequest::PrepareVoteSubmissionRequest(const PrepareVoteSubmissionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::VoteSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareVoteSubmissionRequest) -} - -void PrepareVoteSubmissionRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto.base); - submission_ = nullptr; -} - -PrepareVoteSubmissionRequest::~PrepareVoteSubmissionRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareVoteSubmissionRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareVoteSubmissionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareVoteSubmissionRequest::ArenaDtor(void* object) { - PrepareVoteSubmissionRequest* _this = reinterpret_cast< PrepareVoteSubmissionRequest* >(object); - (void)_this; -} -void PrepareVoteSubmissionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareVoteSubmissionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareVoteSubmissionRequest& PrepareVoteSubmissionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareVoteSubmissionRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareVoteSubmissionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareVoteSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareVoteSubmissionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareVoteSubmissionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareVoteSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareVoteSubmissionRequest) - return target; -} - -size_t PrepareVoteSubmissionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareVoteSubmissionRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareVoteSubmissionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareVoteSubmissionRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareVoteSubmissionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareVoteSubmissionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareVoteSubmissionRequest) - MergeFrom(*source); - } -} - -void PrepareVoteSubmissionRequest::MergeFrom(const PrepareVoteSubmissionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareVoteSubmissionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::VoteSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareVoteSubmissionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareVoteSubmissionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareVoteSubmissionRequest::CopyFrom(const PrepareVoteSubmissionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareVoteSubmissionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareVoteSubmissionRequest::IsInitialized() const { - return true; -} - -void PrepareVoteSubmissionRequest::InternalSwap(PrepareVoteSubmissionRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareVoteSubmissionRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareVoteSubmissionResponse::_Internal { - public: - static const ::vega::commands::v1::VoteSubmission& submission(const PrepareVoteSubmissionResponse* msg); -}; - -const ::vega::commands::v1::VoteSubmission& -PrepareVoteSubmissionResponse::_Internal::submission(const PrepareVoteSubmissionResponse* msg) { - return *msg->submission_; -} -void PrepareVoteSubmissionResponse::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareVoteSubmissionResponse::PrepareVoteSubmissionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareVoteSubmissionResponse) -} -PrepareVoteSubmissionResponse::PrepareVoteSubmissionResponse(const PrepareVoteSubmissionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::VoteSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareVoteSubmissionResponse) -} - -void PrepareVoteSubmissionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - submission_ = nullptr; -} - -PrepareVoteSubmissionResponse::~PrepareVoteSubmissionResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareVoteSubmissionResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareVoteSubmissionResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareVoteSubmissionResponse::ArenaDtor(void* object) { - PrepareVoteSubmissionResponse* _this = reinterpret_cast< PrepareVoteSubmissionResponse* >(object); - (void)_this; -} -void PrepareVoteSubmissionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareVoteSubmissionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareVoteSubmissionResponse& PrepareVoteSubmissionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareVoteSubmissionResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareVoteSubmissionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareVoteSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareVoteSubmissionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareVoteSubmissionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareVoteSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - // .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareVoteSubmissionResponse) - return target; -} - -size_t PrepareVoteSubmissionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareVoteSubmissionResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - // .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareVoteSubmissionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareVoteSubmissionResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareVoteSubmissionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareVoteSubmissionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareVoteSubmissionResponse) - MergeFrom(*source); - } -} - -void PrepareVoteSubmissionResponse::MergeFrom(const PrepareVoteSubmissionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareVoteSubmissionResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::VoteSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareVoteSubmissionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareVoteSubmissionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareVoteSubmissionResponse::CopyFrom(const PrepareVoteSubmissionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareVoteSubmissionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareVoteSubmissionResponse::IsInitialized() const { - return true; -} - -void PrepareVoteSubmissionResponse::InternalSwap(PrepareVoteSubmissionResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareVoteSubmissionResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareLiquidityProvisionRequest::_Internal { - public: - static const ::vega::commands::v1::LiquidityProvisionSubmission& submission(const PrepareLiquidityProvisionRequest* msg); -}; - -const ::vega::commands::v1::LiquidityProvisionSubmission& -PrepareLiquidityProvisionRequest::_Internal::submission(const PrepareLiquidityProvisionRequest* msg) { - return *msg->submission_; -} -void PrepareLiquidityProvisionRequest::clear_submission() { - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; -} -PrepareLiquidityProvisionRequest::PrepareLiquidityProvisionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareLiquidityProvisionRequest) -} -PrepareLiquidityProvisionRequest::PrepareLiquidityProvisionRequest(const PrepareLiquidityProvisionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_submission()) { - submission_ = new ::vega::commands::v1::LiquidityProvisionSubmission(*from.submission_); - } else { - submission_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareLiquidityProvisionRequest) -} - -void PrepareLiquidityProvisionRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto.base); - submission_ = nullptr; -} - -PrepareLiquidityProvisionRequest::~PrepareLiquidityProvisionRequest() { - // @@protoc_insertion_point(destructor:api.v1.PrepareLiquidityProvisionRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareLiquidityProvisionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete submission_; -} - -void PrepareLiquidityProvisionRequest::ArenaDtor(void* object) { - PrepareLiquidityProvisionRequest* _this = reinterpret_cast< PrepareLiquidityProvisionRequest* >(object); - (void)_this; -} -void PrepareLiquidityProvisionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareLiquidityProvisionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareLiquidityProvisionRequest& PrepareLiquidityProvisionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareLiquidityProvisionRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareLiquidityProvisionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareLiquidityProvisionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && submission_ != nullptr) { - delete submission_; - } - submission_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareLiquidityProvisionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_submission(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareLiquidityProvisionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareLiquidityProvisionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { - if (this->has_submission()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::submission(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareLiquidityProvisionRequest) - return target; -} - -size_t PrepareLiquidityProvisionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareLiquidityProvisionRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { - if (this->has_submission()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *submission_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareLiquidityProvisionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareLiquidityProvisionRequest) - GOOGLE_DCHECK_NE(&from, this); - const PrepareLiquidityProvisionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareLiquidityProvisionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareLiquidityProvisionRequest) - MergeFrom(*source); - } -} - -void PrepareLiquidityProvisionRequest::MergeFrom(const PrepareLiquidityProvisionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareLiquidityProvisionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_submission()) { - _internal_mutable_submission()->::vega::commands::v1::LiquidityProvisionSubmission::MergeFrom(from._internal_submission()); - } -} - -void PrepareLiquidityProvisionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareLiquidityProvisionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareLiquidityProvisionRequest::CopyFrom(const PrepareLiquidityProvisionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareLiquidityProvisionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareLiquidityProvisionRequest::IsInitialized() const { - return true; -} - -void PrepareLiquidityProvisionRequest::InternalSwap(PrepareLiquidityProvisionRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(submission_, other->submission_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareLiquidityProvisionRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PrepareLiquidityProvisionResponse::_Internal { - public: -}; - -PrepareLiquidityProvisionResponse::PrepareLiquidityProvisionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.PrepareLiquidityProvisionResponse) -} -PrepareLiquidityProvisionResponse::PrepareLiquidityProvisionResponse(const PrepareLiquidityProvisionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_blob().empty()) { - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_blob(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.PrepareLiquidityProvisionResponse) -} - -void PrepareLiquidityProvisionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto.base); - blob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PrepareLiquidityProvisionResponse::~PrepareLiquidityProvisionResponse() { - // @@protoc_insertion_point(destructor:api.v1.PrepareLiquidityProvisionResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PrepareLiquidityProvisionResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - blob_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PrepareLiquidityProvisionResponse::ArenaDtor(void* object) { - PrepareLiquidityProvisionResponse* _this = reinterpret_cast< PrepareLiquidityProvisionResponse* >(object); - (void)_this; -} -void PrepareLiquidityProvisionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PrepareLiquidityProvisionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrepareLiquidityProvisionResponse& PrepareLiquidityProvisionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PrepareLiquidityProvisionResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void PrepareLiquidityProvisionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.PrepareLiquidityProvisionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - blob_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareLiquidityProvisionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // bytes blob = 1 [json_name = "blob"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_blob(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PrepareLiquidityProvisionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.PrepareLiquidityProvisionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_blob(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.PrepareLiquidityProvisionResponse) - return target; -} - -size_t PrepareLiquidityProvisionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.PrepareLiquidityProvisionResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bytes blob = 1 [json_name = "blob"]; - if (this->blob().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_blob()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrepareLiquidityProvisionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PrepareLiquidityProvisionResponse) - GOOGLE_DCHECK_NE(&from, this); - const PrepareLiquidityProvisionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PrepareLiquidityProvisionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PrepareLiquidityProvisionResponse) - MergeFrom(*source); - } -} - -void PrepareLiquidityProvisionResponse::MergeFrom(const PrepareLiquidityProvisionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PrepareLiquidityProvisionResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.blob().size() > 0) { - _internal_set_blob(from._internal_blob()); - } -} - -void PrepareLiquidityProvisionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PrepareLiquidityProvisionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrepareLiquidityProvisionResponse::CopyFrom(const PrepareLiquidityProvisionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PrepareLiquidityProvisionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrepareLiquidityProvisionResponse::IsInitialized() const { - return true; -} - -void PrepareLiquidityProvisionResponse::InternalSwap(PrepareLiquidityProvisionResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blob_.Swap(&other->blob_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareLiquidityProvisionResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByIDRequest::_Internal { - public: -}; - -OrderByIDRequest::OrderByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByIDRequest) -} -OrderByIDRequest::OrderByIDRequest(const OrderByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_order_id().empty()) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), - GetArena()); - } - version_ = from.version_; - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByIDRequest) -} - -void OrderByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByIDRequest_api_2ftrading_2eproto.base); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_ = PROTOBUF_ULONGLONG(0); -} - -OrderByIDRequest::~OrderByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrderByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void OrderByIDRequest::ArenaDtor(void* object) { - OrderByIDRequest* _this = reinterpret_cast< OrderByIDRequest* >(object); - (void)_this; -} -void OrderByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByIDRequest& OrderByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - order_id_.ClearToEmpty(); - version_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_order_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrderByIDRequest.order_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 version = 2 [json_name = "version"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrderByIDRequest.order_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_order_id(), target); - } - - // uint64 version = 2 [json_name = "version"]; - if (this->version() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_version(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByIDRequest) - return target; -} - -size_t OrderByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_order_id()); - } - - // uint64 version = 2 [json_name = "version"]; - if (this->version() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_version()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrderByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByIDRequest) - MergeFrom(*source); - } -} - -void OrderByIDRequest::MergeFrom(const OrderByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.order_id().size() > 0) { - _internal_set_order_id(from._internal_order_id()); - } - if (from.version() != 0) { - _internal_set_version(from._internal_version()); - } -} - -void OrderByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByIDRequest::CopyFrom(const OrderByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByIDRequest::IsInitialized() const { - return true; -} - -void OrderByIDRequest::InternalSwap(OrderByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(version_, other->version_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderByIDResponse::_Internal { - public: - static const ::vega::Order& order(const OrderByIDResponse* msg); -}; - -const ::vega::Order& -OrderByIDResponse::_Internal::order(const OrderByIDResponse* msg) { - return *msg->order_; -} -void OrderByIDResponse::clear_order() { - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; -} -OrderByIDResponse::OrderByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderByIDResponse) -} -OrderByIDResponse::OrderByIDResponse(const OrderByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_order()) { - order_ = new ::vega::Order(*from.order_); - } else { - order_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderByIDResponse) -} - -void OrderByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderByIDResponse_api_2ftrading_2eproto.base); - order_ = nullptr; -} - -OrderByIDResponse::~OrderByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrderByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete order_; -} - -void OrderByIDResponse::ArenaDtor(void* object) { - OrderByIDResponse* _this = reinterpret_cast< OrderByIDResponse* >(object); - (void)_this; -} -void OrderByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderByIDResponse& OrderByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Order order = 1 [json_name = "order"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_order(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::order(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderByIDResponse) - return target; -} - -size_t OrderByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *order_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrderByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderByIDResponse) - MergeFrom(*source); - } -} - -void OrderByIDResponse::MergeFrom(const OrderByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_order()) { - _internal_mutable_order()->::vega::Order::MergeFrom(from._internal_order()); - } -} - -void OrderByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderByIDResponse::CopyFrom(const OrderByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderByIDResponse::IsInitialized() const { - return true; -} - -void OrderByIDResponse::InternalSwap(OrderByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(order_, other->order_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderVersionsByIDRequest::_Internal { - public: - static const ::api::v1::Pagination& pagination(const OrderVersionsByIDRequest* msg); -}; - -const ::api::v1::Pagination& -OrderVersionsByIDRequest::_Internal::pagination(const OrderVersionsByIDRequest* msg) { - return *msg->pagination_; -} -OrderVersionsByIDRequest::OrderVersionsByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderVersionsByIDRequest) -} -OrderVersionsByIDRequest::OrderVersionsByIDRequest(const OrderVersionsByIDRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_order_id().empty()) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), - GetArena()); - } - if (from._internal_has_pagination()) { - pagination_ = new ::api::v1::Pagination(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OrderVersionsByIDRequest) -} - -void OrderVersionsByIDRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto.base); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pagination_ = nullptr; -} - -OrderVersionsByIDRequest::~OrderVersionsByIDRequest() { - // @@protoc_insertion_point(destructor:api.v1.OrderVersionsByIDRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderVersionsByIDRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete pagination_; -} - -void OrderVersionsByIDRequest::ArenaDtor(void* object) { - OrderVersionsByIDRequest* _this = reinterpret_cast< OrderVersionsByIDRequest* >(object); - (void)_this; -} -void OrderVersionsByIDRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderVersionsByIDRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderVersionsByIDRequest& OrderVersionsByIDRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderVersionsByIDRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderVersionsByIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderVersionsByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - order_id_.ClearToEmpty(); - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderVersionsByIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_order_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OrderVersionsByIDRequest.order_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pagination(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderVersionsByIDRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderVersionsByIDRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OrderVersionsByIDRequest.order_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_order_id(), target); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::pagination(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderVersionsByIDRequest) - return target; -} - -size_t OrderVersionsByIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderVersionsByIDRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - if (this->order_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_order_id()); - } - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - if (this->has_pagination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pagination_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderVersionsByIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderVersionsByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - const OrderVersionsByIDRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderVersionsByIDRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderVersionsByIDRequest) - MergeFrom(*source); - } -} - -void OrderVersionsByIDRequest::MergeFrom(const OrderVersionsByIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderVersionsByIDRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.order_id().size() > 0) { - _internal_set_order_id(from._internal_order_id()); - } - if (from.has_pagination()) { - _internal_mutable_pagination()->::api::v1::Pagination::MergeFrom(from._internal_pagination()); - } -} - -void OrderVersionsByIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderVersionsByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderVersionsByIDRequest::CopyFrom(const OrderVersionsByIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderVersionsByIDRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderVersionsByIDRequest::IsInitialized() const { - return true; -} - -void OrderVersionsByIDRequest::InternalSwap(OrderVersionsByIDRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(pagination_, other->pagination_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderVersionsByIDRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class OrderVersionsByIDResponse::_Internal { - public: -}; - -void OrderVersionsByIDResponse::clear_orders() { - orders_.Clear(); -} -OrderVersionsByIDResponse::OrderVersionsByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - orders_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OrderVersionsByIDResponse) -} -OrderVersionsByIDResponse::OrderVersionsByIDResponse(const OrderVersionsByIDResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - orders_(from.orders_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OrderVersionsByIDResponse) -} - -void OrderVersionsByIDResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto.base); -} - -OrderVersionsByIDResponse::~OrderVersionsByIDResponse() { - // @@protoc_insertion_point(destructor:api.v1.OrderVersionsByIDResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void OrderVersionsByIDResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void OrderVersionsByIDResponse::ArenaDtor(void* object) { - OrderVersionsByIDResponse* _this = reinterpret_cast< OrderVersionsByIDResponse* >(object); - (void)_this; -} -void OrderVersionsByIDResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OrderVersionsByIDResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OrderVersionsByIDResponse& OrderVersionsByIDResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OrderVersionsByIDResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void OrderVersionsByIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OrderVersionsByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - orders_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* OrderVersionsByIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Order orders = 1 [json_name = "orders"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_orders(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* OrderVersionsByIDResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OrderVersionsByIDResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_orders_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_orders(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OrderVersionsByIDResponse) - return target; -} - -size_t OrderVersionsByIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OrderVersionsByIDResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Order orders = 1 [json_name = "orders"]; - total_size += 1UL * this->_internal_orders_size(); - for (const auto& msg : this->orders_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OrderVersionsByIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OrderVersionsByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - const OrderVersionsByIDResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OrderVersionsByIDResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OrderVersionsByIDResponse) - MergeFrom(*source); - } -} - -void OrderVersionsByIDResponse::MergeFrom(const OrderVersionsByIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OrderVersionsByIDResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - orders_.MergeFrom(from.orders_); -} - -void OrderVersionsByIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OrderVersionsByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OrderVersionsByIDResponse::CopyFrom(const OrderVersionsByIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OrderVersionsByIDResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OrderVersionsByIDResponse::IsInitialized() const { - return true; -} - -void OrderVersionsByIDResponse::InternalSwap(OrderVersionsByIDResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - orders_.InternalSwap(&other->orders_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata OrderVersionsByIDResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class EstimateFeeRequest::_Internal { - public: - static const ::vega::Order& order(const EstimateFeeRequest* msg); -}; - -const ::vega::Order& -EstimateFeeRequest::_Internal::order(const EstimateFeeRequest* msg) { - return *msg->order_; -} -void EstimateFeeRequest::clear_order() { - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; -} -EstimateFeeRequest::EstimateFeeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.EstimateFeeRequest) -} -EstimateFeeRequest::EstimateFeeRequest(const EstimateFeeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_order()) { - order_ = new ::vega::Order(*from.order_); - } else { - order_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.EstimateFeeRequest) -} - -void EstimateFeeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EstimateFeeRequest_api_2ftrading_2eproto.base); - order_ = nullptr; -} - -EstimateFeeRequest::~EstimateFeeRequest() { - // @@protoc_insertion_point(destructor:api.v1.EstimateFeeRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void EstimateFeeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete order_; -} - -void EstimateFeeRequest::ArenaDtor(void* object) { - EstimateFeeRequest* _this = reinterpret_cast< EstimateFeeRequest* >(object); - (void)_this; -} -void EstimateFeeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EstimateFeeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EstimateFeeRequest& EstimateFeeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EstimateFeeRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void EstimateFeeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.EstimateFeeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EstimateFeeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Order order = 1 [json_name = "order"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_order(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EstimateFeeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.EstimateFeeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::order(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.EstimateFeeRequest) - return target; -} - -size_t EstimateFeeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.EstimateFeeRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *order_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EstimateFeeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.EstimateFeeRequest) - GOOGLE_DCHECK_NE(&from, this); - const EstimateFeeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.EstimateFeeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.EstimateFeeRequest) - MergeFrom(*source); - } -} - -void EstimateFeeRequest::MergeFrom(const EstimateFeeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.EstimateFeeRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_order()) { - _internal_mutable_order()->::vega::Order::MergeFrom(from._internal_order()); - } -} - -void EstimateFeeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.EstimateFeeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EstimateFeeRequest::CopyFrom(const EstimateFeeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.EstimateFeeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EstimateFeeRequest::IsInitialized() const { - return true; -} - -void EstimateFeeRequest::InternalSwap(EstimateFeeRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(order_, other->order_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EstimateFeeRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class EstimateFeeResponse::_Internal { - public: - static const ::vega::Fee& fee(const EstimateFeeResponse* msg); -}; - -const ::vega::Fee& -EstimateFeeResponse::_Internal::fee(const EstimateFeeResponse* msg) { - return *msg->fee_; -} -void EstimateFeeResponse::clear_fee() { - if (GetArena() == nullptr && fee_ != nullptr) { - delete fee_; - } - fee_ = nullptr; -} -EstimateFeeResponse::EstimateFeeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.EstimateFeeResponse) -} -EstimateFeeResponse::EstimateFeeResponse(const EstimateFeeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_fee()) { - fee_ = new ::vega::Fee(*from.fee_); - } else { - fee_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.EstimateFeeResponse) -} - -void EstimateFeeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EstimateFeeResponse_api_2ftrading_2eproto.base); - fee_ = nullptr; -} - -EstimateFeeResponse::~EstimateFeeResponse() { - // @@protoc_insertion_point(destructor:api.v1.EstimateFeeResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void EstimateFeeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete fee_; -} - -void EstimateFeeResponse::ArenaDtor(void* object) { - EstimateFeeResponse* _this = reinterpret_cast< EstimateFeeResponse* >(object); - (void)_this; -} -void EstimateFeeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EstimateFeeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EstimateFeeResponse& EstimateFeeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EstimateFeeResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void EstimateFeeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.EstimateFeeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && fee_ != nullptr) { - delete fee_; - } - fee_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EstimateFeeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Fee fee = 2 [json_name = "fee"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_fee(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EstimateFeeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.EstimateFeeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Fee fee = 2 [json_name = "fee"]; - if (this->has_fee()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::fee(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.EstimateFeeResponse) - return target; -} - -size_t EstimateFeeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.EstimateFeeResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Fee fee = 2 [json_name = "fee"]; - if (this->has_fee()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *fee_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EstimateFeeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.EstimateFeeResponse) - GOOGLE_DCHECK_NE(&from, this); - const EstimateFeeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.EstimateFeeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.EstimateFeeResponse) - MergeFrom(*source); - } -} - -void EstimateFeeResponse::MergeFrom(const EstimateFeeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.EstimateFeeResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_fee()) { - _internal_mutable_fee()->::vega::Fee::MergeFrom(from._internal_fee()); - } -} - -void EstimateFeeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.EstimateFeeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EstimateFeeResponse::CopyFrom(const EstimateFeeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.EstimateFeeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EstimateFeeResponse::IsInitialized() const { - return true; -} - -void EstimateFeeResponse::InternalSwap(EstimateFeeResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(fee_, other->fee_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EstimateFeeResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class EstimateMarginRequest::_Internal { - public: - static const ::vega::Order& order(const EstimateMarginRequest* msg); -}; - -const ::vega::Order& -EstimateMarginRequest::_Internal::order(const EstimateMarginRequest* msg) { - return *msg->order_; -} -void EstimateMarginRequest::clear_order() { - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; -} -EstimateMarginRequest::EstimateMarginRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.EstimateMarginRequest) -} -EstimateMarginRequest::EstimateMarginRequest(const EstimateMarginRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_order()) { - order_ = new ::vega::Order(*from.order_); - } else { - order_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.EstimateMarginRequest) -} - -void EstimateMarginRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EstimateMarginRequest_api_2ftrading_2eproto.base); - order_ = nullptr; -} - -EstimateMarginRequest::~EstimateMarginRequest() { - // @@protoc_insertion_point(destructor:api.v1.EstimateMarginRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void EstimateMarginRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete order_; -} - -void EstimateMarginRequest::ArenaDtor(void* object) { - EstimateMarginRequest* _this = reinterpret_cast< EstimateMarginRequest* >(object); - (void)_this; -} -void EstimateMarginRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EstimateMarginRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EstimateMarginRequest& EstimateMarginRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EstimateMarginRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void EstimateMarginRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.EstimateMarginRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && order_ != nullptr) { - delete order_; - } - order_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EstimateMarginRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Order order = 1 [json_name = "order"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_order(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EstimateMarginRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.EstimateMarginRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::order(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.EstimateMarginRequest) - return target; -} - -size_t EstimateMarginRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.EstimateMarginRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Order order = 1 [json_name = "order"]; - if (this->has_order()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *order_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EstimateMarginRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.EstimateMarginRequest) - GOOGLE_DCHECK_NE(&from, this); - const EstimateMarginRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.EstimateMarginRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.EstimateMarginRequest) - MergeFrom(*source); - } -} - -void EstimateMarginRequest::MergeFrom(const EstimateMarginRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.EstimateMarginRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_order()) { - _internal_mutable_order()->::vega::Order::MergeFrom(from._internal_order()); - } -} - -void EstimateMarginRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.EstimateMarginRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EstimateMarginRequest::CopyFrom(const EstimateMarginRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.EstimateMarginRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EstimateMarginRequest::IsInitialized() const { - return true; -} - -void EstimateMarginRequest::InternalSwap(EstimateMarginRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(order_, other->order_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EstimateMarginRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class EstimateMarginResponse::_Internal { - public: - static const ::vega::MarginLevels& margin_levels(const EstimateMarginResponse* msg); -}; - -const ::vega::MarginLevels& -EstimateMarginResponse::_Internal::margin_levels(const EstimateMarginResponse* msg) { - return *msg->margin_levels_; -} -void EstimateMarginResponse::clear_margin_levels() { - if (GetArena() == nullptr && margin_levels_ != nullptr) { - delete margin_levels_; - } - margin_levels_ = nullptr; -} -EstimateMarginResponse::EstimateMarginResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.EstimateMarginResponse) -} -EstimateMarginResponse::EstimateMarginResponse(const EstimateMarginResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_margin_levels()) { - margin_levels_ = new ::vega::MarginLevels(*from.margin_levels_); - } else { - margin_levels_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.EstimateMarginResponse) -} - -void EstimateMarginResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EstimateMarginResponse_api_2ftrading_2eproto.base); - margin_levels_ = nullptr; -} - -EstimateMarginResponse::~EstimateMarginResponse() { - // @@protoc_insertion_point(destructor:api.v1.EstimateMarginResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void EstimateMarginResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete margin_levels_; -} - -void EstimateMarginResponse::ArenaDtor(void* object) { - EstimateMarginResponse* _this = reinterpret_cast< EstimateMarginResponse* >(object); - (void)_this; -} -void EstimateMarginResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void EstimateMarginResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EstimateMarginResponse& EstimateMarginResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EstimateMarginResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void EstimateMarginResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.EstimateMarginResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && margin_levels_ != nullptr) { - delete margin_levels_; - } - margin_levels_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EstimateMarginResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_margin_levels(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EstimateMarginResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.EstimateMarginResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - if (this->has_margin_levels()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::margin_levels(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.EstimateMarginResponse) - return target; -} - -size_t EstimateMarginResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.EstimateMarginResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - if (this->has_margin_levels()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *margin_levels_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EstimateMarginResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.EstimateMarginResponse) - GOOGLE_DCHECK_NE(&from, this); - const EstimateMarginResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.EstimateMarginResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.EstimateMarginResponse) - MergeFrom(*source); - } -} - -void EstimateMarginResponse::MergeFrom(const EstimateMarginResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.EstimateMarginResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_margin_levels()) { - _internal_mutable_margin_levels()->::vega::MarginLevels::MergeFrom(from._internal_margin_levels()); - } -} - -void EstimateMarginResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.EstimateMarginResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EstimateMarginResponse::CopyFrom(const EstimateMarginResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.EstimateMarginResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EstimateMarginResponse::IsInitialized() const { - return true; -} - -void EstimateMarginResponse::InternalSwap(EstimateMarginResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(margin_levels_, other->margin_levels_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EstimateMarginResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveEventBusRequest::_Internal { - public: -}; - -ObserveEventBusRequest::ObserveEventBusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - type_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveEventBusRequest) -} -ObserveEventBusRequest::ObserveEventBusRequest(const ObserveEventBusRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - type_(from.type_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - batch_size_ = from.batch_size_; - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveEventBusRequest) -} - -void ObserveEventBusRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - batch_size_ = PROTOBUF_LONGLONG(0); -} - -ObserveEventBusRequest::~ObserveEventBusRequest() { - // @@protoc_insertion_point(destructor:api.v1.ObserveEventBusRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveEventBusRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ObserveEventBusRequest::ArenaDtor(void* object) { - ObserveEventBusRequest* _this = reinterpret_cast< ObserveEventBusRequest* >(object); - (void)_this; -} -void ObserveEventBusRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveEventBusRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveEventBusRequest& ObserveEventBusRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveEventBusRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveEventBusRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - type_.Clear(); - market_id_.ClearToEmpty(); - party_id_.ClearToEmpty(); - batch_size_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveEventBusRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_type(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_add_type(static_cast<::vega::events::v1::BusEventType>(val)); - } else goto handle_unusual; - continue; - // string market_id = 2 [json_name = "marketId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_market_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObserveEventBusRequest.market_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party_id = 3 [json_name = "partyId"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObserveEventBusRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 batch_size = 4 [json_name = "batchSize"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - batch_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveEventBusRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveEventBusRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - { - int byte_size = _type_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 1, type_, byte_size, target); - } - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ObserveEventBusRequest.market_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_market_id(), target); - } - - // string party_id = 3 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ObserveEventBusRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_party_id(), target); - } - - // int64 batch_size = 4 [json_name = "batchSize"]; - if (this->batch_size() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_batch_size(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveEventBusRequest) - return target; -} - -size_t ObserveEventBusRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveEventBusRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_type_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_type(static_cast(i))); - } - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _type_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // string market_id = 2 [json_name = "marketId"]; - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string party_id = 3 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // int64 batch_size = 4 [json_name = "batchSize"]; - if (this->batch_size() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_batch_size()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveEventBusRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveEventBusRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObserveEventBusRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveEventBusRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveEventBusRequest) - MergeFrom(*source); - } -} - -void ObserveEventBusRequest::MergeFrom(const ObserveEventBusRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveEventBusRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - type_.MergeFrom(from.type_); - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.batch_size() != 0) { - _internal_set_batch_size(from._internal_batch_size()); - } -} - -void ObserveEventBusRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveEventBusRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveEventBusRequest::CopyFrom(const ObserveEventBusRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveEventBusRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveEventBusRequest::IsInitialized() const { - return true; -} - -void ObserveEventBusRequest::InternalSwap(ObserveEventBusRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - type_.InternalSwap(&other->type_); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(batch_size_, other->batch_size_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveEventBusRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ObserveEventBusResponse::_Internal { - public: -}; - -void ObserveEventBusResponse::clear_events() { - events_.Clear(); -} -ObserveEventBusResponse::ObserveEventBusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - events_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ObserveEventBusResponse) -} -ObserveEventBusResponse::ObserveEventBusResponse(const ObserveEventBusResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - events_(from.events_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.ObserveEventBusResponse) -} - -void ObserveEventBusResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base); -} - -ObserveEventBusResponse::~ObserveEventBusResponse() { - // @@protoc_insertion_point(destructor:api.v1.ObserveEventBusResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObserveEventBusResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void ObserveEventBusResponse::ArenaDtor(void* object) { - ObserveEventBusResponse* _this = reinterpret_cast< ObserveEventBusResponse* >(object); - (void)_this; -} -void ObserveEventBusResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObserveEventBusResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObserveEventBusResponse& ObserveEventBusResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ObserveEventBusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ObserveEventBusResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - events_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObserveEventBusResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_events(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObserveEventBusResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveEventBusResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_events_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_events(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveEventBusResponse) - return target; -} - -size_t ObserveEventBusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveEventBusResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - total_size += 1UL * this->_internal_events_size(); - for (const auto& msg : this->events_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObserveEventBusResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveEventBusResponse) - GOOGLE_DCHECK_NE(&from, this); - const ObserveEventBusResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveEventBusResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveEventBusResponse) - MergeFrom(*source); - } -} - -void ObserveEventBusResponse::MergeFrom(const ObserveEventBusResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveEventBusResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - events_.MergeFrom(from.events_); -} - -void ObserveEventBusResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveEventBusResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObserveEventBusResponse::CopyFrom(const ObserveEventBusResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveEventBusResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObserveEventBusResponse::IsInitialized() const { - return true; -} - -void ObserveEventBusResponse::InternalSwap(ObserveEventBusResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - events_.InternalSwap(&other->events_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObserveEventBusResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class StatisticsRequest::_Internal { - public: -}; - -StatisticsRequest::StatisticsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.StatisticsRequest) -} -StatisticsRequest::StatisticsRequest(const StatisticsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.StatisticsRequest) -} - -void StatisticsRequest::SharedCtor() { -} - -StatisticsRequest::~StatisticsRequest() { - // @@protoc_insertion_point(destructor:api.v1.StatisticsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void StatisticsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void StatisticsRequest::ArenaDtor(void* object) { - StatisticsRequest* _this = reinterpret_cast< StatisticsRequest* >(object); - (void)_this; -} -void StatisticsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void StatisticsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StatisticsRequest& StatisticsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void StatisticsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.StatisticsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StatisticsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* StatisticsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.StatisticsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.StatisticsRequest) - return target; -} - -size_t StatisticsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.StatisticsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StatisticsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.StatisticsRequest) - GOOGLE_DCHECK_NE(&from, this); - const StatisticsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.StatisticsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.StatisticsRequest) - MergeFrom(*source); - } -} - -void StatisticsRequest::MergeFrom(const StatisticsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.StatisticsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void StatisticsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.StatisticsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StatisticsRequest::CopyFrom(const StatisticsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.StatisticsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StatisticsRequest::IsInitialized() const { - return true; -} - -void StatisticsRequest::InternalSwap(StatisticsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StatisticsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class StatisticsResponse::_Internal { - public: - static const ::vega::Statistics& statistics(const StatisticsResponse* msg); -}; - -const ::vega::Statistics& -StatisticsResponse::_Internal::statistics(const StatisticsResponse* msg) { - return *msg->statistics_; -} -void StatisticsResponse::clear_statistics() { - if (GetArena() == nullptr && statistics_ != nullptr) { - delete statistics_; - } - statistics_ = nullptr; -} -StatisticsResponse::StatisticsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.StatisticsResponse) -} -StatisticsResponse::StatisticsResponse(const StatisticsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_statistics()) { - statistics_ = new ::vega::Statistics(*from.statistics_); - } else { - statistics_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.StatisticsResponse) -} - -void StatisticsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StatisticsResponse_api_2ftrading_2eproto.base); - statistics_ = nullptr; -} - -StatisticsResponse::~StatisticsResponse() { - // @@protoc_insertion_point(destructor:api.v1.StatisticsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void StatisticsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete statistics_; -} - -void StatisticsResponse::ArenaDtor(void* object) { - StatisticsResponse* _this = reinterpret_cast< StatisticsResponse* >(object); - (void)_this; -} -void StatisticsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void StatisticsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StatisticsResponse& StatisticsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void StatisticsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.StatisticsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && statistics_ != nullptr) { - delete statistics_; - } - statistics_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StatisticsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Statistics statistics = 1 [json_name = "statistics"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_statistics(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* StatisticsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.StatisticsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Statistics statistics = 1 [json_name = "statistics"]; - if (this->has_statistics()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::statistics(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.StatisticsResponse) - return target; -} - -size_t StatisticsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.StatisticsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Statistics statistics = 1 [json_name = "statistics"]; - if (this->has_statistics()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *statistics_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StatisticsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.StatisticsResponse) - GOOGLE_DCHECK_NE(&from, this); - const StatisticsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.StatisticsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.StatisticsResponse) - MergeFrom(*source); - } -} - -void StatisticsResponse::MergeFrom(const StatisticsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.StatisticsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_statistics()) { - _internal_mutable_statistics()->::vega::Statistics::MergeFrom(from._internal_statistics()); - } -} - -void StatisticsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.StatisticsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StatisticsResponse::CopyFrom(const StatisticsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.StatisticsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StatisticsResponse::IsInitialized() const { - return true; -} - -void StatisticsResponse::InternalSwap(StatisticsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(statistics_, other->statistics_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata StatisticsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WithdrawalsRequest::_Internal { - public: -}; - -WithdrawalsRequest::WithdrawalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.WithdrawalsRequest) -} -WithdrawalsRequest::WithdrawalsRequest(const WithdrawalsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.WithdrawalsRequest) -} - -void WithdrawalsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawalsRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -WithdrawalsRequest::~WithdrawalsRequest() { - // @@protoc_insertion_point(destructor:api.v1.WithdrawalsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WithdrawalsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void WithdrawalsRequest::ArenaDtor(void* object) { - WithdrawalsRequest* _this = reinterpret_cast< WithdrawalsRequest* >(object); - (void)_this; -} -void WithdrawalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WithdrawalsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WithdrawalsRequest& WithdrawalsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawalsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void WithdrawalsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.WithdrawalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WithdrawalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.WithdrawalsRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WithdrawalsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.WithdrawalsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.WithdrawalsRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.WithdrawalsRequest) - return target; -} - -size_t WithdrawalsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.WithdrawalsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WithdrawalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.WithdrawalsRequest) - GOOGLE_DCHECK_NE(&from, this); - const WithdrawalsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.WithdrawalsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.WithdrawalsRequest) - MergeFrom(*source); - } -} - -void WithdrawalsRequest::MergeFrom(const WithdrawalsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.WithdrawalsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void WithdrawalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.WithdrawalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WithdrawalsRequest::CopyFrom(const WithdrawalsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.WithdrawalsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WithdrawalsRequest::IsInitialized() const { - return true; -} - -void WithdrawalsRequest::InternalSwap(WithdrawalsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WithdrawalsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WithdrawalsResponse::_Internal { - public: -}; - -void WithdrawalsResponse::clear_withdrawals() { - withdrawals_.Clear(); -} -WithdrawalsResponse::WithdrawalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - withdrawals_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.WithdrawalsResponse) -} -WithdrawalsResponse::WithdrawalsResponse(const WithdrawalsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - withdrawals_(from.withdrawals_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.WithdrawalsResponse) -} - -void WithdrawalsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawalsResponse_api_2ftrading_2eproto.base); -} - -WithdrawalsResponse::~WithdrawalsResponse() { - // @@protoc_insertion_point(destructor:api.v1.WithdrawalsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WithdrawalsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void WithdrawalsResponse::ArenaDtor(void* object) { - WithdrawalsResponse* _this = reinterpret_cast< WithdrawalsResponse* >(object); - (void)_this; -} -void WithdrawalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WithdrawalsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WithdrawalsResponse& WithdrawalsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawalsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void WithdrawalsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.WithdrawalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - withdrawals_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WithdrawalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WithdrawalsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.WithdrawalsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_withdrawals(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.WithdrawalsResponse) - return target; -} - -size_t WithdrawalsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.WithdrawalsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - total_size += 1UL * this->_internal_withdrawals_size(); - for (const auto& msg : this->withdrawals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WithdrawalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.WithdrawalsResponse) - GOOGLE_DCHECK_NE(&from, this); - const WithdrawalsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.WithdrawalsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.WithdrawalsResponse) - MergeFrom(*source); - } -} - -void WithdrawalsResponse::MergeFrom(const WithdrawalsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.WithdrawalsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - withdrawals_.MergeFrom(from.withdrawals_); -} - -void WithdrawalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.WithdrawalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WithdrawalsResponse::CopyFrom(const WithdrawalsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.WithdrawalsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WithdrawalsResponse::IsInitialized() const { - return true; -} - -void WithdrawalsResponse::InternalSwap(WithdrawalsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - withdrawals_.InternalSwap(&other->withdrawals_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WithdrawalsResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WithdrawalRequest::_Internal { - public: -}; - -WithdrawalRequest::WithdrawalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.WithdrawalRequest) -} -WithdrawalRequest::WithdrawalRequest(const WithdrawalRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.WithdrawalRequest) -} - -void WithdrawalRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawalRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -WithdrawalRequest::~WithdrawalRequest() { - // @@protoc_insertion_point(destructor:api.v1.WithdrawalRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WithdrawalRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void WithdrawalRequest::ArenaDtor(void* object) { - WithdrawalRequest* _this = reinterpret_cast< WithdrawalRequest* >(object); - (void)_this; -} -void WithdrawalRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WithdrawalRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WithdrawalRequest& WithdrawalRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawalRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void WithdrawalRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.WithdrawalRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WithdrawalRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.WithdrawalRequest.id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WithdrawalRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.WithdrawalRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.WithdrawalRequest.id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.WithdrawalRequest) - return target; -} - -size_t WithdrawalRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.WithdrawalRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WithdrawalRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.WithdrawalRequest) - GOOGLE_DCHECK_NE(&from, this); - const WithdrawalRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.WithdrawalRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.WithdrawalRequest) - MergeFrom(*source); - } -} - -void WithdrawalRequest::MergeFrom(const WithdrawalRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.WithdrawalRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); - } -} - -void WithdrawalRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.WithdrawalRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WithdrawalRequest::CopyFrom(const WithdrawalRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.WithdrawalRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WithdrawalRequest::IsInitialized() const { - return true; -} - -void WithdrawalRequest::InternalSwap(WithdrawalRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WithdrawalRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WithdrawalResponse::_Internal { - public: - static const ::vega::Withdrawal& withdrawal(const WithdrawalResponse* msg); -}; - -const ::vega::Withdrawal& -WithdrawalResponse::_Internal::withdrawal(const WithdrawalResponse* msg) { - return *msg->withdrawal_; -} -void WithdrawalResponse::clear_withdrawal() { - if (GetArena() == nullptr && withdrawal_ != nullptr) { - delete withdrawal_; - } - withdrawal_ = nullptr; -} -WithdrawalResponse::WithdrawalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.WithdrawalResponse) -} -WithdrawalResponse::WithdrawalResponse(const WithdrawalResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_withdrawal()) { - withdrawal_ = new ::vega::Withdrawal(*from.withdrawal_); - } else { - withdrawal_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.WithdrawalResponse) -} - -void WithdrawalResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawalResponse_api_2ftrading_2eproto.base); - withdrawal_ = nullptr; -} - -WithdrawalResponse::~WithdrawalResponse() { - // @@protoc_insertion_point(destructor:api.v1.WithdrawalResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WithdrawalResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete withdrawal_; -} - -void WithdrawalResponse::ArenaDtor(void* object) { - WithdrawalResponse* _this = reinterpret_cast< WithdrawalResponse* >(object); - (void)_this; -} -void WithdrawalResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WithdrawalResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WithdrawalResponse& WithdrawalResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawalResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void WithdrawalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.WithdrawalResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && withdrawal_ != nullptr) { - delete withdrawal_; - } - withdrawal_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WithdrawalResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_withdrawal(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WithdrawalResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.WithdrawalResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - if (this->has_withdrawal()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::withdrawal(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.WithdrawalResponse) - return target; -} - -size_t WithdrawalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.WithdrawalResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - if (this->has_withdrawal()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *withdrawal_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WithdrawalResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.WithdrawalResponse) - GOOGLE_DCHECK_NE(&from, this); - const WithdrawalResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.WithdrawalResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.WithdrawalResponse) - MergeFrom(*source); - } -} - -void WithdrawalResponse::MergeFrom(const WithdrawalResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.WithdrawalResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_withdrawal()) { - _internal_mutable_withdrawal()->::vega::Withdrawal::MergeFrom(from._internal_withdrawal()); - } -} - -void WithdrawalResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.WithdrawalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WithdrawalResponse::CopyFrom(const WithdrawalResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.WithdrawalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WithdrawalResponse::IsInitialized() const { - return true; -} - -void WithdrawalResponse::InternalSwap(WithdrawalResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(withdrawal_, other->withdrawal_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WithdrawalResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ERC20WithdrawalApprovalRequest::_Internal { - public: -}; - -ERC20WithdrawalApprovalRequest::ERC20WithdrawalApprovalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ERC20WithdrawalApprovalRequest) -} -ERC20WithdrawalApprovalRequest::ERC20WithdrawalApprovalRequest(const ERC20WithdrawalApprovalRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - withdrawal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_withdrawal_id().empty()) { - withdrawal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_withdrawal_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.ERC20WithdrawalApprovalRequest) -} - -void ERC20WithdrawalApprovalRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto.base); - withdrawal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -ERC20WithdrawalApprovalRequest::~ERC20WithdrawalApprovalRequest() { - // @@protoc_insertion_point(destructor:api.v1.ERC20WithdrawalApprovalRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ERC20WithdrawalApprovalRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - withdrawal_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ERC20WithdrawalApprovalRequest::ArenaDtor(void* object) { - ERC20WithdrawalApprovalRequest* _this = reinterpret_cast< ERC20WithdrawalApprovalRequest* >(object); - (void)_this; -} -void ERC20WithdrawalApprovalRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ERC20WithdrawalApprovalRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ERC20WithdrawalApprovalRequest& ERC20WithdrawalApprovalRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ERC20WithdrawalApprovalRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ERC20WithdrawalApprovalRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ERC20WithdrawalApprovalRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - withdrawal_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ERC20WithdrawalApprovalRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_withdrawal_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ERC20WithdrawalApprovalRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ERC20WithdrawalApprovalRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { - if (this->withdrawal_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_withdrawal_id().data(), static_cast(this->_internal_withdrawal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_withdrawal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ERC20WithdrawalApprovalRequest) - return target; -} - -size_t ERC20WithdrawalApprovalRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ERC20WithdrawalApprovalRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { - if (this->withdrawal_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_withdrawal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ERC20WithdrawalApprovalRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ERC20WithdrawalApprovalRequest) - GOOGLE_DCHECK_NE(&from, this); - const ERC20WithdrawalApprovalRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ERC20WithdrawalApprovalRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ERC20WithdrawalApprovalRequest) - MergeFrom(*source); - } -} - -void ERC20WithdrawalApprovalRequest::MergeFrom(const ERC20WithdrawalApprovalRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ERC20WithdrawalApprovalRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.withdrawal_id().size() > 0) { - _internal_set_withdrawal_id(from._internal_withdrawal_id()); - } -} - -void ERC20WithdrawalApprovalRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ERC20WithdrawalApprovalRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ERC20WithdrawalApprovalRequest::CopyFrom(const ERC20WithdrawalApprovalRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ERC20WithdrawalApprovalRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ERC20WithdrawalApprovalRequest::IsInitialized() const { - return true; -} - -void ERC20WithdrawalApprovalRequest::InternalSwap(ERC20WithdrawalApprovalRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - withdrawal_id_.Swap(&other->withdrawal_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ERC20WithdrawalApprovalRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ERC20WithdrawalApprovalResponse::_Internal { - public: -}; - -ERC20WithdrawalApprovalResponse::ERC20WithdrawalApprovalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.ERC20WithdrawalApprovalResponse) -} -ERC20WithdrawalApprovalResponse::ERC20WithdrawalApprovalResponse(const ERC20WithdrawalApprovalResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - asset_source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset_source().empty()) { - asset_source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset_source(), - GetArena()); - } - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_amount().empty()) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), - GetArena()); - } - nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_nonce().empty()) { - nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_nonce(), - GetArena()); - } - signatures_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_signatures().empty()) { - signatures_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signatures(), - GetArena()); - } - expiry_ = from.expiry_; - // @@protoc_insertion_point(copy_constructor:api.v1.ERC20WithdrawalApprovalResponse) -} - -void ERC20WithdrawalApprovalResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto.base); - asset_source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signatures_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - expiry_ = PROTOBUF_LONGLONG(0); -} - -ERC20WithdrawalApprovalResponse::~ERC20WithdrawalApprovalResponse() { - // @@protoc_insertion_point(destructor:api.v1.ERC20WithdrawalApprovalResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ERC20WithdrawalApprovalResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - asset_source_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - nonce_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signatures_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ERC20WithdrawalApprovalResponse::ArenaDtor(void* object) { - ERC20WithdrawalApprovalResponse* _this = reinterpret_cast< ERC20WithdrawalApprovalResponse* >(object); - (void)_this; -} -void ERC20WithdrawalApprovalResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ERC20WithdrawalApprovalResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ERC20WithdrawalApprovalResponse& ERC20WithdrawalApprovalResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ERC20WithdrawalApprovalResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void ERC20WithdrawalApprovalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.ERC20WithdrawalApprovalResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - asset_source_.ClearToEmpty(); - amount_.ClearToEmpty(); - nonce_.ClearToEmpty(); - signatures_.ClearToEmpty(); - expiry_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ERC20WithdrawalApprovalResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string asset_source = 1 [json_name = "assetSource"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_asset_source(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ERC20WithdrawalApprovalResponse.asset_source")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string amount = 2 [json_name = "amount"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_amount(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ERC20WithdrawalApprovalResponse.amount")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 expiry = 3 [json_name = "expiry"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - expiry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string nonce = 4 [json_name = "nonce"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_nonce(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ERC20WithdrawalApprovalResponse.nonce")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string signatures = 5 [json_name = "signatures"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_signatures(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ERC20WithdrawalApprovalResponse.signatures")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ERC20WithdrawalApprovalResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.ERC20WithdrawalApprovalResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string asset_source = 1 [json_name = "assetSource"]; - if (this->asset_source().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset_source().data(), static_cast(this->_internal_asset_source().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ERC20WithdrawalApprovalResponse.asset_source"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_asset_source(), target); - } - - // string amount = 2 [json_name = "amount"]; - if (this->amount().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_amount().data(), static_cast(this->_internal_amount().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ERC20WithdrawalApprovalResponse.amount"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_amount(), target); - } - - // int64 expiry = 3 [json_name = "expiry"]; - if (this->expiry() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_expiry(), target); - } - - // string nonce = 4 [json_name = "nonce"]; - if (this->nonce().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_nonce().data(), static_cast(this->_internal_nonce().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ERC20WithdrawalApprovalResponse.nonce"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_nonce(), target); - } - - // string signatures = 5 [json_name = "signatures"]; - if (this->signatures().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_signatures().data(), static_cast(this->_internal_signatures().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.ERC20WithdrawalApprovalResponse.signatures"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_signatures(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.ERC20WithdrawalApprovalResponse) - return target; -} - -size_t ERC20WithdrawalApprovalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.ERC20WithdrawalApprovalResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string asset_source = 1 [json_name = "assetSource"]; - if (this->asset_source().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset_source()); - } - - // string amount = 2 [json_name = "amount"]; - if (this->amount().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_amount()); - } - - // string nonce = 4 [json_name = "nonce"]; - if (this->nonce().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_nonce()); - } - - // string signatures = 5 [json_name = "signatures"]; - if (this->signatures().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_signatures()); - } - - // int64 expiry = 3 [json_name = "expiry"]; - if (this->expiry() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_expiry()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ERC20WithdrawalApprovalResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ERC20WithdrawalApprovalResponse) - GOOGLE_DCHECK_NE(&from, this); - const ERC20WithdrawalApprovalResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ERC20WithdrawalApprovalResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ERC20WithdrawalApprovalResponse) - MergeFrom(*source); - } -} - -void ERC20WithdrawalApprovalResponse::MergeFrom(const ERC20WithdrawalApprovalResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ERC20WithdrawalApprovalResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.asset_source().size() > 0) { - _internal_set_asset_source(from._internal_asset_source()); - } - if (from.amount().size() > 0) { - _internal_set_amount(from._internal_amount()); - } - if (from.nonce().size() > 0) { - _internal_set_nonce(from._internal_nonce()); - } - if (from.signatures().size() > 0) { - _internal_set_signatures(from._internal_signatures()); - } - if (from.expiry() != 0) { - _internal_set_expiry(from._internal_expiry()); - } -} - -void ERC20WithdrawalApprovalResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ERC20WithdrawalApprovalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ERC20WithdrawalApprovalResponse::CopyFrom(const ERC20WithdrawalApprovalResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ERC20WithdrawalApprovalResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ERC20WithdrawalApprovalResponse::IsInitialized() const { - return true; -} - -void ERC20WithdrawalApprovalResponse::InternalSwap(ERC20WithdrawalApprovalResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - asset_source_.Swap(&other->asset_source_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - nonce_.Swap(&other->nonce_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - signatures_.Swap(&other->signatures_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(expiry_, other->expiry_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ERC20WithdrawalApprovalResponse::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class DepositsRequest::_Internal { - public: -}; - -DepositsRequest::DepositsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.DepositsRequest) -} -DepositsRequest::DepositsRequest(const DepositsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.DepositsRequest) -} - -void DepositsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DepositsRequest_api_2ftrading_2eproto.base); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -DepositsRequest::~DepositsRequest() { - // @@protoc_insertion_point(destructor:api.v1.DepositsRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void DepositsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DepositsRequest::ArenaDtor(void* object) { - DepositsRequest* _this = reinterpret_cast< DepositsRequest* >(object); - (void)_this; -} -void DepositsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DepositsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DepositsRequest& DepositsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DepositsRequest_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void DepositsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.DepositsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - party_id_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DepositsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.DepositsRequest.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* DepositsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.DepositsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.DepositsRequest.party_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_party_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.DepositsRequest) - return target; -} - -size_t DepositsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.DepositsRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DepositsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.DepositsRequest) - GOOGLE_DCHECK_NE(&from, this); - const DepositsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.DepositsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.DepositsRequest) - MergeFrom(*source); - } -} - -void DepositsRequest::MergeFrom(const DepositsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.DepositsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } -} - -void DepositsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.DepositsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DepositsRequest::CopyFrom(const DepositsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.DepositsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DepositsRequest::IsInitialized() const { - return true; -} - -void DepositsRequest::InternalSwap(DepositsRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DepositsRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class DepositsResponse::_Internal { - public: +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_api_2ftrading_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, event_), + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, pub_key_), + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventRequest, signature_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::PropagateChainEventResponse, success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, tx_), + PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Request, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::SubmitTransactionV2Response, success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::GetVegaTimeResponse, timestamp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, type_), + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, market_id_), + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, party_id_), + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusRequest, batch_size_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::ObserveEventBusResponse, events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::StatisticsResponse, statistics_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, block_height_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, backlog_length_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_peers_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, genesis_time_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, current_time_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, vega_time_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, status_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, tx_per_block_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, average_tx_bytes_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, average_orders_per_block_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, trades_per_second_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, orders_per_second_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_markets_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_amend_order_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_cancel_order_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_create_order_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_orders_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, total_trades_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, order_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, trade_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, candle_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, market_depth_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, positions_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, account_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, market_data_subscriptions_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, app_version_hash_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, app_version_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, chain_version_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, block_duration_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, uptime_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, chain_id_), + PROTOBUF_FIELD_OFFSET(::api::v1::Statistics, market_depth_updates_subscriptions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::api::v1::LastBlockHeightResponse, height_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::api::v1::PropagateChainEventRequest)}, + { 8, -1, sizeof(::api::v1::PropagateChainEventResponse)}, + { 14, -1, sizeof(::api::v1::SubmitTransactionV2Request)}, + { 21, -1, sizeof(::api::v1::SubmitTransactionV2Response)}, + { 27, -1, sizeof(::api::v1::GetVegaTimeRequest)}, + { 32, -1, sizeof(::api::v1::GetVegaTimeResponse)}, + { 38, -1, sizeof(::api::v1::ObserveEventBusRequest)}, + { 47, -1, sizeof(::api::v1::ObserveEventBusResponse)}, + { 53, -1, sizeof(::api::v1::StatisticsRequest)}, + { 58, -1, sizeof(::api::v1::StatisticsResponse)}, + { 64, -1, sizeof(::api::v1::Statistics)}, + { 101, -1, sizeof(::api::v1::LastBlockHeightRequest)}, + { 106, -1, sizeof(::api::v1::LastBlockHeightResponse)}, }; -void DepositsResponse::clear_deposits() { - deposits_.Clear(); -} -DepositsResponse::DepositsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - deposits_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.DepositsResponse) -} -DepositsResponse::DepositsResponse(const DepositsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - deposits_(from.deposits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.DepositsResponse) -} - -void DepositsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DepositsResponse_api_2ftrading_2eproto.base); -} - -DepositsResponse::~DepositsResponse() { - // @@protoc_insertion_point(destructor:api.v1.DepositsResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void DepositsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void DepositsResponse::ArenaDtor(void* object) { - DepositsResponse* _this = reinterpret_cast< DepositsResponse* >(object); - (void)_this; -} -void DepositsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DepositsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DepositsResponse& DepositsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DepositsResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} - - -void DepositsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.DepositsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - deposits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DepositsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_deposits(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* DepositsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.DepositsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_deposits_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_deposits(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.DepositsResponse) - return target; -} - -size_t DepositsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.DepositsResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - total_size += 1UL * this->_internal_deposits_size(); - for (const auto& msg : this->deposits_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DepositsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.DepositsResponse) - GOOGLE_DCHECK_NE(&from, this); - const DepositsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.DepositsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.DepositsResponse) - MergeFrom(*source); - } -} - -void DepositsResponse::MergeFrom(const DepositsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.DepositsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - deposits_.MergeFrom(from.deposits_); -} - -void DepositsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.DepositsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DepositsResponse::CopyFrom(const DepositsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.DepositsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::api::v1::_PropagateChainEventRequest_default_instance_), + reinterpret_cast(&::api::v1::_PropagateChainEventResponse_default_instance_), + reinterpret_cast(&::api::v1::_SubmitTransactionV2Request_default_instance_), + reinterpret_cast(&::api::v1::_SubmitTransactionV2Response_default_instance_), + reinterpret_cast(&::api::v1::_GetVegaTimeRequest_default_instance_), + reinterpret_cast(&::api::v1::_GetVegaTimeResponse_default_instance_), + reinterpret_cast(&::api::v1::_ObserveEventBusRequest_default_instance_), + reinterpret_cast(&::api::v1::_ObserveEventBusResponse_default_instance_), + reinterpret_cast(&::api::v1::_StatisticsRequest_default_instance_), + reinterpret_cast(&::api::v1::_StatisticsResponse_default_instance_), + reinterpret_cast(&::api::v1::_Statistics_default_instance_), + reinterpret_cast(&::api::v1::_LastBlockHeightRequest_default_instance_), + reinterpret_cast(&::api::v1::_LastBlockHeightResponse_default_instance_), +}; -bool DepositsResponse::IsInitialized() const { - return true; -} +const char descriptor_table_protodef_api_2ftrading_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\021api/trading.proto\022\006api.v1\032\nvega.proto\032" + "\rmarkets.proto\032\020governance.proto\032\014assets" + ".proto\032\026events/v1/events.proto\032\025oracles/" + "v1/spec.proto\032\025oracles/v1/data.proto\032\032co" + "mmands/v1/commands.proto\032\035commands/v1/tr" + "ansaction.proto\032$commands/v1/validator_c" + "ommands.proto\0326github.com/mwitkow/go-pro" + "to-validators/validator.proto\"i\n\032Propaga" + "teChainEventRequest\022\024\n\005event\030\001 \001(\014R\005even" + "t\022\027\n\007pub_key\030\002 \001(\tR\006pubKey\022\034\n\tsignature\030" + "\003 \001(\014R\tsignature\"7\n\033PropagateChainEventR" + "esponse\022\030\n\007success\030\001 \001(\010R\007success\"\326\001\n\032Su" + "bmitTransactionV2Request\022-\n\002tx\030\001 \001(\0132\035.v" + "ega.commands.v1.TransactionR\002tx\022;\n\004type\030" + "\002 \001(\0162\'.api.v1.SubmitTransactionV2Reques" + "t.TypeR\004type\"L\n\004Type\022\024\n\020TYPE_UNSPECIFIED" + "\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_SYNC\020\002\022\017\n\013TYP" + "E_COMMIT\020\003\"7\n\033SubmitTransactionV2Respons" + "e\022\030\n\007success\030\001 \001(\010R\007success\"\024\n\022GetVegaTi" + "meRequest\"3\n\023GetVegaTimeResponse\022\034\n\ttime" + "stamp\030\001 \001(\003R\ttimestamp\"\241\001\n\026ObserveEventB" + "usRequest\0220\n\004type\030\001 \003(\0162\034.vega.events.v1" + ".BusEventTypeR\004type\022\033\n\tmarket_id\030\002 \001(\tR\010" + "marketId\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\035\n\nb" + "atch_size\030\004 \001(\003R\tbatchSize\"K\n\027ObserveEve" + "ntBusResponse\0220\n\006events\030\001 \003(\0132\030.vega.eve" + "nts.v1.BusEventR\006events\"\023\n\021StatisticsReq" + "uest\"H\n\022StatisticsResponse\0222\n\nstatistics" + "\030\001 \001(\0132\022.api.v1.StatisticsR\nstatistics\"\351" + "\n\n\nStatistics\022!\n\014block_height\030\001 \001(\004R\013blo" + "ckHeight\022%\n\016backlog_length\030\002 \001(\004R\rbacklo" + "gLength\022\037\n\013total_peers\030\003 \001(\004R\ntotalPeers" + "\022!\n\014genesis_time\030\004 \001(\tR\013genesisTime\022!\n\014c" + "urrent_time\030\005 \001(\tR\013currentTime\022\033\n\tvega_t" + "ime\030\006 \001(\tR\010vegaTime\022)\n\006status\030\007 \001(\0162\021.ve" + "ga.ChainStatusR\006status\022 \n\014tx_per_block\030\010" + " \001(\004R\ntxPerBlock\022(\n\020average_tx_bytes\030\t \001" + "(\004R\016averageTxBytes\0227\n\030average_orders_per" + "_block\030\n \001(\004R\025averageOrdersPerBlock\022*\n\021t" + "rades_per_second\030\013 \001(\004R\017tradesPerSecond\022" + "*\n\021orders_per_second\030\014 \001(\004R\017ordersPerSec" + "ond\022#\n\rtotal_markets\030\r \001(\004R\014totalMarkets" + "\022*\n\021total_amend_order\030\020 \001(\004R\017totalAmendO" + "rder\022,\n\022total_cancel_order\030\021 \001(\004R\020totalC" + "ancelOrder\022,\n\022total_create_order\030\022 \001(\004R\020" + "totalCreateOrder\022!\n\014total_orders\030\023 \001(\004R\013" + "totalOrders\022!\n\014total_trades\030\024 \001(\004R\013total" + "Trades\022/\n\023order_subscriptions\030\025 \001(\rR\022ord" + "erSubscriptions\022/\n\023trade_subscriptions\030\026" + " \001(\rR\022tradeSubscriptions\0221\n\024candle_subsc" + "riptions\030\027 \001(\rR\023candleSubscriptions\022<\n\032m" + "arket_depth_subscriptions\030\030 \001(\rR\030marketD" + "epthSubscriptions\0227\n\027positions_subscript" + "ions\030\031 \001(\rR\026positionsSubscriptions\0223\n\025ac" + "count_subscriptions\030\032 \001(\rR\024accountSubscr" + "iptions\022:\n\031market_data_subscriptions\030\033 \001" + "(\rR\027marketDataSubscriptions\022(\n\020app_versi" + "on_hash\030\034 \001(\tR\016appVersionHash\022\037\n\013app_ver" + "sion\030\035 \001(\tR\nappVersion\022#\n\rchain_version\030" + "\036 \001(\tR\014chainVersion\022%\n\016block_duration\030\037 " + "\001(\004R\rblockDuration\022\026\n\006uptime\030 \001(\tR\006upti" + "me\022\031\n\010chain_id\030! \001(\tR\007chainId\022K\n\"market_" + "depth_updates_subscriptions\030\" \001(\rR\037marke" + "tDepthUpdatesSubscriptions\"\030\n\026LastBlockH" + "eightRequest\"1\n\027LastBlockHeightResponse\022" + "\026\n\006height\030\001 \001(\004R\006height2\211\004\n\016TradingServi" + "ce\022^\n\023SubmitTransactionV2\022\".api.v1.Submi" + "tTransactionV2Request\032#.api.v1.SubmitTra" + "nsactionV2Response\022^\n\023PropagateChainEven" + "t\022\".api.v1.PropagateChainEventRequest\032#." + "api.v1.PropagateChainEventResponse\022C\n\nSt" + "atistics\022\031.api.v1.StatisticsRequest\032\032.ap" + "i.v1.StatisticsResponse\022R\n\017LastBlockHeig" + "ht\022\036.api.v1.LastBlockHeightRequest\032\037.api" + ".v1.LastBlockHeightResponse\022F\n\013GetVegaTi" + "me\022\032.api.v1.GetVegaTimeRequest\032\033.api.v1." + "GetVegaTimeResponse\022V\n\017ObserveEventBus\022\036" + ".api.v1.ObserveEventBusRequest\032\037.api.v1." + "ObserveEventBusResponse(\0010\001B\?\n\030io.vegapr" + "otocol.vega.apiZ#code.vegaprotocol.io/ve" + "ga/proto/apib\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_api_2ftrading_2eproto_deps[11] = { + &::descriptor_table_assets_2eproto, + &::descriptor_table_commands_2fv1_2fcommands_2eproto, + &::descriptor_table_commands_2fv1_2ftransaction_2eproto, + &::descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto, + &::descriptor_table_events_2fv1_2fevents_2eproto, + &::descriptor_table_github_2ecom_2fmwitkow_2fgo_2dproto_2dvalidators_2fvalidator_2eproto, + &::descriptor_table_governance_2eproto, + &::descriptor_table_markets_2eproto, + &::descriptor_table_oracles_2fv1_2fdata_2eproto, + &::descriptor_table_oracles_2fv1_2fspec_2eproto, + &::descriptor_table_vega_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_api_2ftrading_2eproto_sccs[13] = { + &scc_info_GetVegaTimeRequest_api_2ftrading_2eproto.base, + &scc_info_GetVegaTimeResponse_api_2ftrading_2eproto.base, + &scc_info_LastBlockHeightRequest_api_2ftrading_2eproto.base, + &scc_info_LastBlockHeightResponse_api_2ftrading_2eproto.base, + &scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base, + &scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base, + &scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base, + &scc_info_PropagateChainEventResponse_api_2ftrading_2eproto.base, + &scc_info_Statistics_api_2ftrading_2eproto.base, + &scc_info_StatisticsRequest_api_2ftrading_2eproto.base, + &scc_info_StatisticsResponse_api_2ftrading_2eproto.base, + &scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base, + &scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_api_2ftrading_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_api_2ftrading_2eproto = { + false, false, descriptor_table_protodef_api_2ftrading_2eproto, "api/trading.proto", 3220, + &descriptor_table_api_2ftrading_2eproto_once, descriptor_table_api_2ftrading_2eproto_sccs, descriptor_table_api_2ftrading_2eproto_deps, 13, 11, + schemas, file_default_instances, TableStruct_api_2ftrading_2eproto::offsets, + file_level_metadata_api_2ftrading_2eproto, 13, file_level_enum_descriptors_api_2ftrading_2eproto, file_level_service_descriptors_api_2ftrading_2eproto, +}; -void DepositsResponse::InternalSwap(DepositsResponse* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - deposits_.InternalSwap(&other->deposits_); +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_api_2ftrading_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_api_2ftrading_2eproto)), true); +namespace api { +namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SubmitTransactionV2Request_Type_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_api_2ftrading_2eproto); + return file_level_enum_descriptors_api_2ftrading_2eproto[0]; } - -::PROTOBUF_NAMESPACE_ID::Metadata DepositsResponse::GetMetadata() const { - return GetMetadataStatic(); +bool SubmitTransactionV2Request_Type_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_UNSPECIFIED; +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_ASYNC; +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_SYNC; +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::TYPE_COMMIT; +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::Type_MIN; +constexpr SubmitTransactionV2Request_Type SubmitTransactionV2Request::Type_MAX; +constexpr int SubmitTransactionV2Request::Type_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) // =================================================================== -class DepositRequest::_Internal { +class PropagateChainEventRequest::_Internal { public: }; -DepositRequest::DepositRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) +PropagateChainEventRequest::PropagateChainEventRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.DepositRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.PropagateChainEventRequest) } -DepositRequest::DepositRequest(const DepositRequest& from) +PropagateChainEventRequest::PropagateChainEventRequest(const PropagateChainEventRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + event_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_event().empty()) { + event_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_event(), + GetArena()); + } + pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_pub_key().empty()) { + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pub_key(), + GetArena()); + } + signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_signature().empty()) { + signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signature(), GetArena()); } - // @@protoc_insertion_point(copy_constructor:api.v1.DepositRequest) + // @@protoc_insertion_point(copy_constructor:api.v1.PropagateChainEventRequest) } -void DepositRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DepositRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void PropagateChainEventRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base); + event_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -DepositRequest::~DepositRequest() { - // @@protoc_insertion_point(destructor:api.v1.DepositRequest) +PropagateChainEventRequest::~PropagateChainEventRequest() { + // @@protoc_insertion_point(destructor:api.v1.PropagateChainEventRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DepositRequest::SharedDtor() { +void PropagateChainEventRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + event_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void DepositRequest::ArenaDtor(void* object) { - DepositRequest* _this = reinterpret_cast< DepositRequest* >(object); +void PropagateChainEventRequest::ArenaDtor(void* object) { + PropagateChainEventRequest* _this = reinterpret_cast< PropagateChainEventRequest* >(object); (void)_this; } -void DepositRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void PropagateChainEventRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void DepositRequest::SetCachedSize(int size) const { +void PropagateChainEventRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const DepositRequest& DepositRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DepositRequest_api_2ftrading_2eproto.base); +const PropagateChainEventRequest& PropagateChainEventRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PropagateChainEventRequest_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void DepositRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.DepositRequest) +void PropagateChainEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.PropagateChainEventRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmpty(); + event_.ClearToEmpty(); + pub_key_.ClearToEmpty(); + signature_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DepositRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PropagateChainEventRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { + // bytes event = 1 [json_name = "event"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); + auto str = _internal_mutable_event(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string pub_key = 2 [json_name = "pubKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_pub_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.PropagateChainEventRequest.pub_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes signature = 3 [json_name = "signature"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_signature(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.DepositRequest.id")); CHK_(ptr); } else goto handle_unusual; continue; @@ -34786,43 +678,69 @@ const char* DepositRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DepositRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PropagateChainEventRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.DepositRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.PropagateChainEventRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // bytes event = 1 [json_name = "event"]; + if (this->event().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_event(), target); + } + + // string pub_key = 2 [json_name = "pubKey"]; + if (this->pub_key().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), + this->_internal_pub_key().data(), static_cast(this->_internal_pub_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.DepositRequest.id"); + "api.v1.PropagateChainEventRequest.pub_key"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); + 2, this->_internal_pub_key(), target); + } + + // bytes signature = 3 [json_name = "signature"]; + if (this->signature().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_signature(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.DepositRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.PropagateChainEventRequest) return target; } -size_t DepositRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.DepositRequest) +size_t PropagateChainEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.PropagateChainEventRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // bytes event = 1 [json_name = "event"]; + if (this->event().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_event()); + } + + // string pub_key = 2 [json_name = "pubKey"]; + if (this->pub_key().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); + this->_internal_pub_key()); + } + + // bytes signature = 3 [json_name = "signature"]; + if (this->signature().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_signature()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -34834,151 +752,139 @@ size_t DepositRequest::ByteSizeLong() const { return total_size; } -void DepositRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.DepositRequest) +void PropagateChainEventRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PropagateChainEventRequest) GOOGLE_DCHECK_NE(&from, this); - const DepositRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const PropagateChainEventRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.DepositRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PropagateChainEventRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.DepositRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PropagateChainEventRequest) MergeFrom(*source); } } -void DepositRequest::MergeFrom(const DepositRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.DepositRequest) +void PropagateChainEventRequest::MergeFrom(const PropagateChainEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PropagateChainEventRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); + if (from.event().size() > 0) { + _internal_set_event(from._internal_event()); + } + if (from.pub_key().size() > 0) { + _internal_set_pub_key(from._internal_pub_key()); + } + if (from.signature().size() > 0) { + _internal_set_signature(from._internal_signature()); } } -void DepositRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.DepositRequest) +void PropagateChainEventRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PropagateChainEventRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void DepositRequest::CopyFrom(const DepositRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.DepositRequest) +void PropagateChainEventRequest::CopyFrom(const PropagateChainEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PropagateChainEventRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool DepositRequest::IsInitialized() const { +bool PropagateChainEventRequest::IsInitialized() const { return true; } -void DepositRequest::InternalSwap(DepositRequest* other) { +void PropagateChainEventRequest::InternalSwap(PropagateChainEventRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + event_.Swap(&other->event_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + pub_key_.Swap(&other->pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + signature_.Swap(&other->signature_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata DepositRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PropagateChainEventRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class DepositResponse::_Internal { +class PropagateChainEventResponse::_Internal { public: - static const ::vega::Deposit& deposit(const DepositResponse* msg); }; -const ::vega::Deposit& -DepositResponse::_Internal::deposit(const DepositResponse* msg) { - return *msg->deposit_; -} -void DepositResponse::clear_deposit() { - if (GetArena() == nullptr && deposit_ != nullptr) { - delete deposit_; - } - deposit_ = nullptr; -} -DepositResponse::DepositResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +PropagateChainEventResponse::PropagateChainEventResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.DepositResponse) + // @@protoc_insertion_point(arena_constructor:api.v1.PropagateChainEventResponse) } -DepositResponse::DepositResponse(const DepositResponse& from) +PropagateChainEventResponse::PropagateChainEventResponse(const PropagateChainEventResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_deposit()) { - deposit_ = new ::vega::Deposit(*from.deposit_); - } else { - deposit_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.DepositResponse) + success_ = from.success_; + // @@protoc_insertion_point(copy_constructor:api.v1.PropagateChainEventResponse) } -void DepositResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DepositResponse_api_2ftrading_2eproto.base); - deposit_ = nullptr; +void PropagateChainEventResponse::SharedCtor() { + success_ = false; } -DepositResponse::~DepositResponse() { - // @@protoc_insertion_point(destructor:api.v1.DepositResponse) +PropagateChainEventResponse::~PropagateChainEventResponse() { + // @@protoc_insertion_point(destructor:api.v1.PropagateChainEventResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DepositResponse::SharedDtor() { +void PropagateChainEventResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete deposit_; } -void DepositResponse::ArenaDtor(void* object) { - DepositResponse* _this = reinterpret_cast< DepositResponse* >(object); +void PropagateChainEventResponse::ArenaDtor(void* object) { + PropagateChainEventResponse* _this = reinterpret_cast< PropagateChainEventResponse* >(object); (void)_this; } -void DepositResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void PropagateChainEventResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void DepositResponse::SetCachedSize(int size) const { +void PropagateChainEventResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const DepositResponse& DepositResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DepositResponse_api_2ftrading_2eproto.base); +const PropagateChainEventResponse& PropagateChainEventResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PropagateChainEventResponse_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void DepositResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.DepositResponse) +void PropagateChainEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.PropagateChainEventResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && deposit_ != nullptr) { - delete deposit_; - } - deposit_ = nullptr; + success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DepositResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PropagateChainEventResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .vega.Deposit deposit = 1 [json_name = "deposit"]; + // bool success = 1 [json_name = "success"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_deposit(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -35004,41 +910,37 @@ const char* DepositResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DepositResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PropagateChainEventResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.DepositResponse) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.PropagateChainEventResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .vega.Deposit deposit = 1 [json_name = "deposit"]; - if (this->has_deposit()) { + // bool success = 1 [json_name = "success"]; + if (this->success() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::deposit(this), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.DepositResponse) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.PropagateChainEventResponse) return target; } -size_t DepositResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.DepositResponse) +size_t PropagateChainEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.PropagateChainEventResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .vega.Deposit deposit = 1 [json_name = "deposit"]; - if (this->has_deposit()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *deposit_); + // bool success = 1 [json_name = "success"]; + if (this->success() != 0) { + total_size += 1 + 1; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -35050,123 +952,169 @@ size_t DepositResponse::ByteSizeLong() const { return total_size; } -void DepositResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.DepositResponse) +void PropagateChainEventResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.PropagateChainEventResponse) GOOGLE_DCHECK_NE(&from, this); - const DepositResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const PropagateChainEventResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.DepositResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.PropagateChainEventResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.DepositResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.PropagateChainEventResponse) MergeFrom(*source); } } -void DepositResponse::MergeFrom(const DepositResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.DepositResponse) +void PropagateChainEventResponse::MergeFrom(const PropagateChainEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.PropagateChainEventResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_deposit()) { - _internal_mutable_deposit()->::vega::Deposit::MergeFrom(from._internal_deposit()); + if (from.success() != 0) { + _internal_set_success(from._internal_success()); } } -void DepositResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.DepositResponse) +void PropagateChainEventResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.PropagateChainEventResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void DepositResponse::CopyFrom(const DepositResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.DepositResponse) +void PropagateChainEventResponse::CopyFrom(const PropagateChainEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.PropagateChainEventResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool DepositResponse::IsInitialized() const { +bool PropagateChainEventResponse::IsInitialized() const { return true; } -void DepositResponse::InternalSwap(DepositResponse* other) { +void PropagateChainEventResponse::InternalSwap(PropagateChainEventResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(deposit_, other->deposit_); + swap(success_, other->success_); } -::PROTOBUF_NAMESPACE_ID::Metadata DepositResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PropagateChainEventResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class NetworkParametersRequest::_Internal { +class SubmitTransactionV2Request::_Internal { public: + static const ::vega::commands::v1::Transaction& tx(const SubmitTransactionV2Request* msg); }; -NetworkParametersRequest::NetworkParametersRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) +const ::vega::commands::v1::Transaction& +SubmitTransactionV2Request::_Internal::tx(const SubmitTransactionV2Request* msg) { + return *msg->tx_; +} +void SubmitTransactionV2Request::clear_tx() { + if (GetArena() == nullptr && tx_ != nullptr) { + delete tx_; + } + tx_ = nullptr; +} +SubmitTransactionV2Request::SubmitTransactionV2Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.NetworkParametersRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionV2Request) } -NetworkParametersRequest::NetworkParametersRequest(const NetworkParametersRequest& from) +SubmitTransactionV2Request::SubmitTransactionV2Request(const SubmitTransactionV2Request& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.NetworkParametersRequest) + if (from._internal_has_tx()) { + tx_ = new ::vega::commands::v1::Transaction(*from.tx_); + } else { + tx_ = nullptr; + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionV2Request) } -void NetworkParametersRequest::SharedCtor() { +void SubmitTransactionV2Request::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&tx_)) + sizeof(type_)); } -NetworkParametersRequest::~NetworkParametersRequest() { - // @@protoc_insertion_point(destructor:api.v1.NetworkParametersRequest) +SubmitTransactionV2Request::~SubmitTransactionV2Request() { + // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionV2Request) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NetworkParametersRequest::SharedDtor() { +void SubmitTransactionV2Request::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete tx_; } -void NetworkParametersRequest::ArenaDtor(void* object) { - NetworkParametersRequest* _this = reinterpret_cast< NetworkParametersRequest* >(object); +void SubmitTransactionV2Request::ArenaDtor(void* object) { + SubmitTransactionV2Request* _this = reinterpret_cast< SubmitTransactionV2Request* >(object); (void)_this; } -void NetworkParametersRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void SubmitTransactionV2Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void NetworkParametersRequest::SetCachedSize(int size) const { +void SubmitTransactionV2Request::SetCachedSize(int size) const { _cached_size_.Set(size); } -const NetworkParametersRequest& NetworkParametersRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetworkParametersRequest_api_2ftrading_2eproto.base); +const SubmitTransactionV2Request& SubmitTransactionV2Request::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionV2Request_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void NetworkParametersRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.NetworkParametersRequest) +void SubmitTransactionV2Request::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionV2Request) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + if (GetArena() == nullptr && tx_ != nullptr) { + delete tx_; + } + tx_ = nullptr; + type_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NetworkParametersRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SubmitTransactionV2Request::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); + switch (tag >> 3) { + // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_tx(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::api::v1::SubmitTransactionV2Request_Type>(val)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; @@ -35176,6 +1124,8 @@ const char* NetworkParametersRequest::_InternalParse(const char* ptr, ::PROTOBUF ptr, ctx); CHK_(ptr != nullptr); continue; + } + } // switch } // while success: return ptr; @@ -35185,28 +1135,56 @@ const char* NetworkParametersRequest::_InternalParse(const char* ptr, ::PROTOBUF #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NetworkParametersRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionV2Request::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.NetworkParametersRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionV2Request) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; + if (this->has_tx()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::tx(this), target, stream); + } + + // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; + if (this->type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_type(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.NetworkParametersRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionV2Request) return target; } -size_t NetworkParametersRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.NetworkParametersRequest) +size_t SubmitTransactionV2Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionV2Request) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; + if (this->has_tx()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tx_); + } + + // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -35216,137 +1194,140 @@ size_t NetworkParametersRequest::ByteSizeLong() const { return total_size; } -void NetworkParametersRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.NetworkParametersRequest) +void SubmitTransactionV2Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionV2Request) GOOGLE_DCHECK_NE(&from, this); - const NetworkParametersRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const SubmitTransactionV2Request* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.NetworkParametersRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionV2Request) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.NetworkParametersRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionV2Request) MergeFrom(*source); } } -void NetworkParametersRequest::MergeFrom(const NetworkParametersRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.NetworkParametersRequest) +void SubmitTransactionV2Request::MergeFrom(const SubmitTransactionV2Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionV2Request) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.has_tx()) { + _internal_mutable_tx()->::vega::commands::v1::Transaction::MergeFrom(from._internal_tx()); + } + if (from.type() != 0) { + _internal_set_type(from._internal_type()); + } } -void NetworkParametersRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.NetworkParametersRequest) +void SubmitTransactionV2Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionV2Request) if (&from == this) return; Clear(); MergeFrom(from); } -void NetworkParametersRequest::CopyFrom(const NetworkParametersRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.NetworkParametersRequest) +void SubmitTransactionV2Request::CopyFrom(const SubmitTransactionV2Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionV2Request) if (&from == this) return; Clear(); MergeFrom(from); } -bool NetworkParametersRequest::IsInitialized() const { +bool SubmitTransactionV2Request::IsInitialized() const { return true; } -void NetworkParametersRequest::InternalSwap(NetworkParametersRequest* other) { +void SubmitTransactionV2Request::InternalSwap(SubmitTransactionV2Request* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SubmitTransactionV2Request, type_) + + sizeof(SubmitTransactionV2Request::type_) + - PROTOBUF_FIELD_OFFSET(SubmitTransactionV2Request, tx_)>( + reinterpret_cast(&tx_), + reinterpret_cast(&other->tx_)); } -::PROTOBUF_NAMESPACE_ID::Metadata NetworkParametersRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionV2Request::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class NetworkParametersResponse::_Internal { +class SubmitTransactionV2Response::_Internal { public: }; -void NetworkParametersResponse::clear_network_parameters() { - network_parameters_.Clear(); -} -NetworkParametersResponse::NetworkParametersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - network_parameters_(arena) { +SubmitTransactionV2Response::SubmitTransactionV2Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.NetworkParametersResponse) + // @@protoc_insertion_point(arena_constructor:api.v1.SubmitTransactionV2Response) } -NetworkParametersResponse::NetworkParametersResponse(const NetworkParametersResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - network_parameters_(from.network_parameters_) { +SubmitTransactionV2Response::SubmitTransactionV2Response(const SubmitTransactionV2Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.NetworkParametersResponse) + success_ = from.success_; + // @@protoc_insertion_point(copy_constructor:api.v1.SubmitTransactionV2Response) } -void NetworkParametersResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NetworkParametersResponse_api_2ftrading_2eproto.base); +void SubmitTransactionV2Response::SharedCtor() { + success_ = false; } -NetworkParametersResponse::~NetworkParametersResponse() { - // @@protoc_insertion_point(destructor:api.v1.NetworkParametersResponse) +SubmitTransactionV2Response::~SubmitTransactionV2Response() { + // @@protoc_insertion_point(destructor:api.v1.SubmitTransactionV2Response) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NetworkParametersResponse::SharedDtor() { +void SubmitTransactionV2Response::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } -void NetworkParametersResponse::ArenaDtor(void* object) { - NetworkParametersResponse* _this = reinterpret_cast< NetworkParametersResponse* >(object); +void SubmitTransactionV2Response::ArenaDtor(void* object) { + SubmitTransactionV2Response* _this = reinterpret_cast< SubmitTransactionV2Response* >(object); (void)_this; } -void NetworkParametersResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void SubmitTransactionV2Response::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void NetworkParametersResponse::SetCachedSize(int size) const { +void SubmitTransactionV2Response::SetCachedSize(int size) const { _cached_size_.Set(size); } -const NetworkParametersResponse& NetworkParametersResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetworkParametersResponse_api_2ftrading_2eproto.base); +const SubmitTransactionV2Response& SubmitTransactionV2Response::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubmitTransactionV2Response_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void NetworkParametersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.NetworkParametersResponse) +void SubmitTransactionV2Response::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.SubmitTransactionV2Response) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - network_parameters_.Clear(); + success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NetworkParametersResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SubmitTransactionV2Response::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + // bool success = 1 [json_name = "success"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_network_parameters(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; default: { @@ -35371,41 +1352,37 @@ const char* NetworkParametersResponse::_InternalParse(const char* ptr, ::PROTOBU #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NetworkParametersResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* SubmitTransactionV2Response::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.NetworkParametersResponse) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.SubmitTransactionV2Response) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_network_parameters_size()); i < n; i++) { + // bool success = 1 [json_name = "success"]; + if (this->success() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_network_parameters(i), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.NetworkParametersResponse) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.SubmitTransactionV2Response) return target; } -size_t NetworkParametersResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.NetworkParametersResponse) +size_t SubmitTransactionV2Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.SubmitTransactionV2Response) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - total_size += 1UL * this->_internal_network_parameters_size(); - for (const auto& msg : this->network_parameters_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // bool success = 1 [json_name = "success"]; + if (this->success() != 0) { + total_size += 1 + 1; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -35417,159 +1394,123 @@ size_t NetworkParametersResponse::ByteSizeLong() const { return total_size; } -void NetworkParametersResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.NetworkParametersResponse) +void SubmitTransactionV2Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.SubmitTransactionV2Response) GOOGLE_DCHECK_NE(&from, this); - const NetworkParametersResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const SubmitTransactionV2Response* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.NetworkParametersResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.SubmitTransactionV2Response) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.NetworkParametersResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.SubmitTransactionV2Response) MergeFrom(*source); } } -void NetworkParametersResponse::MergeFrom(const NetworkParametersResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.NetworkParametersResponse) +void SubmitTransactionV2Response::MergeFrom(const SubmitTransactionV2Response& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.SubmitTransactionV2Response) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - network_parameters_.MergeFrom(from.network_parameters_); + if (from.success() != 0) { + _internal_set_success(from._internal_success()); + } } -void NetworkParametersResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.NetworkParametersResponse) +void SubmitTransactionV2Response::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.SubmitTransactionV2Response) if (&from == this) return; Clear(); MergeFrom(from); } -void NetworkParametersResponse::CopyFrom(const NetworkParametersResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.NetworkParametersResponse) +void SubmitTransactionV2Response::CopyFrom(const SubmitTransactionV2Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.SubmitTransactionV2Response) if (&from == this) return; Clear(); MergeFrom(from); } -bool NetworkParametersResponse::IsInitialized() const { +bool SubmitTransactionV2Response::IsInitialized() const { return true; } -void NetworkParametersResponse::InternalSwap(NetworkParametersResponse* other) { +void SubmitTransactionV2Response::InternalSwap(SubmitTransactionV2Response* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - network_parameters_.InternalSwap(&other->network_parameters_); + swap(success_, other->success_); } -::PROTOBUF_NAMESPACE_ID::Metadata NetworkParametersResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SubmitTransactionV2Response::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityProvisionsRequest::_Internal { +class GetVegaTimeRequest::_Internal { public: }; -LiquidityProvisionsRequest::LiquidityProvisionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) +GetVegaTimeRequest::GetVegaTimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.GetVegaTimeRequest) } -LiquidityProvisionsRequest::LiquidityProvisionsRequest(const LiquidityProvisionsRequest& from) +GetVegaTimeRequest::GetVegaTimeRequest(const GetVegaTimeRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market().empty()) { - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), - GetArena()); - } - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party().empty()) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(copy_constructor:api.v1.GetVegaTimeRequest) } -void LiquidityProvisionsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto.base); - market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void GetVegaTimeRequest::SharedCtor() { } -LiquidityProvisionsRequest::~LiquidityProvisionsRequest() { - // @@protoc_insertion_point(destructor:api.v1.LiquidityProvisionsRequest) +GetVegaTimeRequest::~GetVegaTimeRequest() { + // @@protoc_insertion_point(destructor:api.v1.GetVegaTimeRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityProvisionsRequest::SharedDtor() { +void GetVegaTimeRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void LiquidityProvisionsRequest::ArenaDtor(void* object) { - LiquidityProvisionsRequest* _this = reinterpret_cast< LiquidityProvisionsRequest* >(object); +void GetVegaTimeRequest::ArenaDtor(void* object) { + GetVegaTimeRequest* _this = reinterpret_cast< GetVegaTimeRequest* >(object); (void)_this; } -void LiquidityProvisionsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void GetVegaTimeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityProvisionsRequest::SetCachedSize(int size) const { +void GetVegaTimeRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityProvisionsRequest& LiquidityProvisionsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProvisionsRequest_api_2ftrading_2eproto.base); +const GetVegaTimeRequest& GetVegaTimeRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVegaTimeRequest_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void LiquidityProvisionsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.LiquidityProvisionsRequest) +void GetVegaTimeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.GetVegaTimeRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - market_.ClearToEmpty(); - party_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityProvisionsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetVegaTimeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); - switch (tag >> 3) { - // string market = 1 [json_name = "market"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_market(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.LiquidityProvisionsRequest.market")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party = 2 [json_name = "party"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_party(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.LiquidityProvisionsRequest.party")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; @@ -35579,8 +1520,6 @@ const char* LiquidityProvisionsRequest::_InternalParse(const char* ptr, ::PROTOB ptr, ctx); CHK_(ptr != nullptr); continue; - } - } // switch } // while success: return ptr; @@ -35590,62 +1529,28 @@ const char* LiquidityProvisionsRequest::_InternalParse(const char* ptr, ::PROTOB #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvisionsRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* GetVegaTimeRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVegaTimeRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string market = 1 [json_name = "market"]; - if (this->market().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market().data(), static_cast(this->_internal_market().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.LiquidityProvisionsRequest.market"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_market(), target); - } - - // string party = 2 [json_name = "party"]; - if (this->party().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party().data(), static_cast(this->_internal_party().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.LiquidityProvisionsRequest.party"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_party(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVegaTimeRequest) return target; } -size_t LiquidityProvisionsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.LiquidityProvisionsRequest) +size_t GetVegaTimeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVegaTimeRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string market = 1 [json_name = "market"]; - if (this->market().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market()); - } - - // string party = 2 [json_name = "party"]; - if (this->party().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -35655,145 +1560,128 @@ size_t LiquidityProvisionsRequest::ByteSizeLong() const { return total_size; } -void LiquidityProvisionsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.LiquidityProvisionsRequest) +void GetVegaTimeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVegaTimeRequest) GOOGLE_DCHECK_NE(&from, this); - const LiquidityProvisionsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const GetVegaTimeRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVegaTimeRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.LiquidityProvisionsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVegaTimeRequest) MergeFrom(*source); } } -void LiquidityProvisionsRequest::MergeFrom(const LiquidityProvisionsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.LiquidityProvisionsRequest) +void GetVegaTimeRequest::MergeFrom(const GetVegaTimeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVegaTimeRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.market().size() > 0) { - _internal_set_market(from._internal_market()); - } - if (from.party().size() > 0) { - _internal_set_party(from._internal_party()); - } } -void LiquidityProvisionsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.LiquidityProvisionsRequest) +void GetVegaTimeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVegaTimeRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityProvisionsRequest::CopyFrom(const LiquidityProvisionsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.LiquidityProvisionsRequest) +void GetVegaTimeRequest::CopyFrom(const GetVegaTimeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVegaTimeRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityProvisionsRequest::IsInitialized() const { +bool GetVegaTimeRequest::IsInitialized() const { return true; } -void LiquidityProvisionsRequest::InternalSwap(LiquidityProvisionsRequest* other) { +void GetVegaTimeRequest::InternalSwap(GetVegaTimeRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProvisionsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetVegaTimeRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityProvisionsResponse::_Internal { +class GetVegaTimeResponse::_Internal { public: }; -void LiquidityProvisionsResponse::clear_liquidity_provisions() { - liquidity_provisions_.Clear(); -} -LiquidityProvisionsResponse::LiquidityProvisionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - liquidity_provisions_(arena) { +GetVegaTimeResponse::GetVegaTimeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.LiquidityProvisionsResponse) + // @@protoc_insertion_point(arena_constructor:api.v1.GetVegaTimeResponse) } -LiquidityProvisionsResponse::LiquidityProvisionsResponse(const LiquidityProvisionsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - liquidity_provisions_(from.liquidity_provisions_) { +GetVegaTimeResponse::GetVegaTimeResponse(const GetVegaTimeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.LiquidityProvisionsResponse) + timestamp_ = from.timestamp_; + // @@protoc_insertion_point(copy_constructor:api.v1.GetVegaTimeResponse) } -void LiquidityProvisionsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto.base); +void GetVegaTimeResponse::SharedCtor() { + timestamp_ = PROTOBUF_LONGLONG(0); } -LiquidityProvisionsResponse::~LiquidityProvisionsResponse() { - // @@protoc_insertion_point(destructor:api.v1.LiquidityProvisionsResponse) +GetVegaTimeResponse::~GetVegaTimeResponse() { + // @@protoc_insertion_point(destructor:api.v1.GetVegaTimeResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityProvisionsResponse::SharedDtor() { +void GetVegaTimeResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } -void LiquidityProvisionsResponse::ArenaDtor(void* object) { - LiquidityProvisionsResponse* _this = reinterpret_cast< LiquidityProvisionsResponse* >(object); +void GetVegaTimeResponse::ArenaDtor(void* object) { + GetVegaTimeResponse* _this = reinterpret_cast< GetVegaTimeResponse* >(object); (void)_this; } -void LiquidityProvisionsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void GetVegaTimeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityProvisionsResponse::SetCachedSize(int size) const { +void GetVegaTimeResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityProvisionsResponse& LiquidityProvisionsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProvisionsResponse_api_2ftrading_2eproto.base); +const GetVegaTimeResponse& GetVegaTimeResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVegaTimeResponse_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void LiquidityProvisionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.LiquidityProvisionsResponse) +void GetVegaTimeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.GetVegaTimeResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - liquidity_provisions_.Clear(); + timestamp_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityProvisionsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetVegaTimeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; + // int64 timestamp = 1 [json_name = "timestamp"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_liquidity_provisions(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; default: { @@ -35818,41 +1706,39 @@ const char* LiquidityProvisionsResponse::_InternalParse(const char* ptr, ::PROTO #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvisionsResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* GetVegaTimeResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.LiquidityProvisionsResponse) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.GetVegaTimeResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_liquidity_provisions_size()); i < n; i++) { + // int64 timestamp = 1 [json_name = "timestamp"]; + if (this->timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_liquidity_provisions(i), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_timestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.LiquidityProvisionsResponse) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.GetVegaTimeResponse) return target; } -size_t LiquidityProvisionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.LiquidityProvisionsResponse) +size_t GetVegaTimeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.GetVegaTimeResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - total_size += 1UL * this->_internal_liquidity_provisions_size(); - for (const auto& msg : this->liquidity_provisions_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // int64 timestamp = 1 [json_name = "timestamp"]; + if (this->timestamp() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_timestamp()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -35864,137 +1750,180 @@ size_t LiquidityProvisionsResponse::ByteSizeLong() const { return total_size; } -void LiquidityProvisionsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.LiquidityProvisionsResponse) +void GetVegaTimeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.GetVegaTimeResponse) GOOGLE_DCHECK_NE(&from, this); - const LiquidityProvisionsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const GetVegaTimeResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.LiquidityProvisionsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.GetVegaTimeResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.LiquidityProvisionsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.GetVegaTimeResponse) MergeFrom(*source); } } -void LiquidityProvisionsResponse::MergeFrom(const LiquidityProvisionsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.LiquidityProvisionsResponse) +void GetVegaTimeResponse::MergeFrom(const GetVegaTimeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.GetVegaTimeResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - liquidity_provisions_.MergeFrom(from.liquidity_provisions_); + if (from.timestamp() != 0) { + _internal_set_timestamp(from._internal_timestamp()); + } } -void LiquidityProvisionsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.LiquidityProvisionsResponse) +void GetVegaTimeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.GetVegaTimeResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityProvisionsResponse::CopyFrom(const LiquidityProvisionsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.LiquidityProvisionsResponse) +void GetVegaTimeResponse::CopyFrom(const GetVegaTimeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.GetVegaTimeResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityProvisionsResponse::IsInitialized() const { +bool GetVegaTimeResponse::IsInitialized() const { return true; } -void LiquidityProvisionsResponse::InternalSwap(LiquidityProvisionsResponse* other) { +void GetVegaTimeResponse::InternalSwap(GetVegaTimeResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - liquidity_provisions_.InternalSwap(&other->liquidity_provisions_); + swap(timestamp_, other->timestamp_); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProvisionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetVegaTimeResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class OracleSpecRequest::_Internal { +class ObserveEventBusRequest::_Internal { public: }; -OracleSpecRequest::OracleSpecRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ObserveEventBusRequest::ObserveEventBusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + type_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleSpecRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.ObserveEventBusRequest) } -OracleSpecRequest::OracleSpecRequest(const OracleSpecRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +ObserveEventBusRequest::ObserveEventBusRequest(const ObserveEventBusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + type_(from.type_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market_id().empty()) { + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), + GetArena()); + } + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party_id().empty()) { + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } - // @@protoc_insertion_point(copy_constructor:api.v1.OracleSpecRequest) + batch_size_ = from.batch_size_; + // @@protoc_insertion_point(copy_constructor:api.v1.ObserveEventBusRequest) } -void OracleSpecRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OracleSpecRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void ObserveEventBusRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base); + market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + batch_size_ = PROTOBUF_LONGLONG(0); } -OracleSpecRequest::~OracleSpecRequest() { - // @@protoc_insertion_point(destructor:api.v1.OracleSpecRequest) +ObserveEventBusRequest::~ObserveEventBusRequest() { + // @@protoc_insertion_point(destructor:api.v1.ObserveEventBusRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OracleSpecRequest::SharedDtor() { +void ObserveEventBusRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void OracleSpecRequest::ArenaDtor(void* object) { - OracleSpecRequest* _this = reinterpret_cast< OracleSpecRequest* >(object); +void ObserveEventBusRequest::ArenaDtor(void* object) { + ObserveEventBusRequest* _this = reinterpret_cast< ObserveEventBusRequest* >(object); (void)_this; } -void OracleSpecRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ObserveEventBusRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void OracleSpecRequest::SetCachedSize(int size) const { +void ObserveEventBusRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const OracleSpecRequest& OracleSpecRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleSpecRequest_api_2ftrading_2eproto.base); +const ObserveEventBusRequest& ObserveEventBusRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveEventBusRequest_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void OracleSpecRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleSpecRequest) +void ObserveEventBusRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.ObserveEventBusRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmpty(); + type_.Clear(); + market_id_.ClearToEmpty(); + party_id_.ClearToEmpty(); + batch_size_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OracleSpecRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ObserveEventBusRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { + // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_type(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_type(static_cast<::vega::events::v1::BusEventType>(val)); + } else goto handle_unusual; + continue; + // string market_id = 2 [json_name = "marketId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_market_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObserveEventBusRequest.market_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string party_id = 3 [json_name = "partyId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_party_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OracleSpecRequest.id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.ObserveEventBusRequest.party_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 batch_size = 4 [json_name = "batchSize"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + batch_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -36020,43 +1949,100 @@ const char* OracleSpecRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OracleSpecRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ObserveEventBusRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleSpecRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveEventBusRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + { + int byte_size = _type_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, type_, byte_size, target); + } + } + + // string market_id = 2 [json_name = "marketId"]; + if (this->market_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.ObserveEventBusRequest.market_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_market_id(), target); + } + + // string party_id = 3 [json_name = "partyId"]; + if (this->party_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), + this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OracleSpecRequest.id"); + "api.v1.ObserveEventBusRequest.party_id"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); + 3, this->_internal_party_id(), target); + } + + // int64 batch_size = 4 [json_name = "batchSize"]; + if (this->batch_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_batch_size(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleSpecRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveEventBusRequest) return target; } -size_t OracleSpecRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleSpecRequest) +size_t ObserveEventBusRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveEventBusRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_type_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_type(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _type_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string market_id = 2 [json_name = "marketId"]; + if (this->market_id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market_id()); + } + + // string party_id = 3 [json_name = "partyId"]; + if (this->party_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); + this->_internal_party_id()); + } + + // int64 batch_size = 4 [json_name = "batchSize"]; + if (this->batch_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_batch_size()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -36068,152 +2054,151 @@ size_t OracleSpecRequest::ByteSizeLong() const { return total_size; } -void OracleSpecRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleSpecRequest) +void ObserveEventBusRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveEventBusRequest) GOOGLE_DCHECK_NE(&from, this); - const OracleSpecRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const ObserveEventBusRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleSpecRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveEventBusRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleSpecRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveEventBusRequest) MergeFrom(*source); } } -void OracleSpecRequest::MergeFrom(const OracleSpecRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleSpecRequest) +void ObserveEventBusRequest::MergeFrom(const ObserveEventBusRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveEventBusRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); + type_.MergeFrom(from.type_); + if (from.market_id().size() > 0) { + _internal_set_market_id(from._internal_market_id()); + } + if (from.party_id().size() > 0) { + _internal_set_party_id(from._internal_party_id()); + } + if (from.batch_size() != 0) { + _internal_set_batch_size(from._internal_batch_size()); } } -void OracleSpecRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleSpecRequest) +void ObserveEventBusRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveEventBusRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void OracleSpecRequest::CopyFrom(const OracleSpecRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleSpecRequest) +void ObserveEventBusRequest::CopyFrom(const ObserveEventBusRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveEventBusRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool OracleSpecRequest::IsInitialized() const { +bool ObserveEventBusRequest::IsInitialized() const { return true; } -void OracleSpecRequest::InternalSwap(OracleSpecRequest* other) { +void ObserveEventBusRequest::InternalSwap(ObserveEventBusRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + type_.InternalSwap(&other->type_); + market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(batch_size_, other->batch_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata OracleSpecRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ObserveEventBusRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class OracleSpecResponse::_Internal { +class ObserveEventBusResponse::_Internal { public: - static const ::oracles::v1::OracleSpec& oracle_spec(const OracleSpecResponse* msg); }; -const ::oracles::v1::OracleSpec& -OracleSpecResponse::_Internal::oracle_spec(const OracleSpecResponse* msg) { - return *msg->oracle_spec_; -} -void OracleSpecResponse::clear_oracle_spec() { - if (GetArena() == nullptr && oracle_spec_ != nullptr) { - delete oracle_spec_; - } - oracle_spec_ = nullptr; +void ObserveEventBusResponse::clear_events() { + events_.Clear(); } -OracleSpecResponse::OracleSpecResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ObserveEventBusResponse::ObserveEventBusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + events_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(arena_constructor:api.v1.ObserveEventBusResponse) } -OracleSpecResponse::OracleSpecResponse(const OracleSpecResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +ObserveEventBusResponse::ObserveEventBusResponse(const ObserveEventBusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + events_(from.events_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_oracle_spec()) { - oracle_spec_ = new ::oracles::v1::OracleSpec(*from.oracle_spec_); - } else { - oracle_spec_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(copy_constructor:api.v1.ObserveEventBusResponse) } -void OracleSpecResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OracleSpecResponse_api_2ftrading_2eproto.base); - oracle_spec_ = nullptr; +void ObserveEventBusResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base); } -OracleSpecResponse::~OracleSpecResponse() { - // @@protoc_insertion_point(destructor:api.v1.OracleSpecResponse) +ObserveEventBusResponse::~ObserveEventBusResponse() { + // @@protoc_insertion_point(destructor:api.v1.ObserveEventBusResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OracleSpecResponse::SharedDtor() { +void ObserveEventBusResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete oracle_spec_; } -void OracleSpecResponse::ArenaDtor(void* object) { - OracleSpecResponse* _this = reinterpret_cast< OracleSpecResponse* >(object); +void ObserveEventBusResponse::ArenaDtor(void* object) { + ObserveEventBusResponse* _this = reinterpret_cast< ObserveEventBusResponse* >(object); (void)_this; } -void OracleSpecResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ObserveEventBusResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void OracleSpecResponse::SetCachedSize(int size) const { +void ObserveEventBusResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const OracleSpecResponse& OracleSpecResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleSpecResponse_api_2ftrading_2eproto.base); +const ObserveEventBusResponse& ObserveEventBusResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObserveEventBusResponse_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void OracleSpecResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleSpecResponse) +void ObserveEventBusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.ObserveEventBusResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && oracle_spec_ != nullptr) { - delete oracle_spec_; - } - oracle_spec_ = nullptr; + events_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OracleSpecResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ObserveEventBusResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; + // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_oracle_spec(), ptr); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; default: { @@ -36238,41 +2223,41 @@ const char* OracleSpecResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OracleSpecResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ObserveEventBusResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.ObserveEventBusResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - if (this->has_oracle_spec()) { + // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_events_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::oracle_spec(this), target, stream); + InternalWriteMessage(1, this->_internal_events(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.ObserveEventBusResponse) return target; } -size_t OracleSpecResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleSpecResponse) +size_t ObserveEventBusResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.ObserveEventBusResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - if (this->has_oracle_spec()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *oracle_spec_); + // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + total_size += 1UL * this->_internal_events_size(); + for (const auto& msg : this->events_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -36284,110 +2269,108 @@ size_t OracleSpecResponse::ByteSizeLong() const { return total_size; } -void OracleSpecResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleSpecResponse) +void ObserveEventBusResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.ObserveEventBusResponse) GOOGLE_DCHECK_NE(&from, this); - const OracleSpecResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const ObserveEventBusResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.ObserveEventBusResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleSpecResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.ObserveEventBusResponse) MergeFrom(*source); } } -void OracleSpecResponse::MergeFrom(const OracleSpecResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleSpecResponse) +void ObserveEventBusResponse::MergeFrom(const ObserveEventBusResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.ObserveEventBusResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_oracle_spec()) { - _internal_mutable_oracle_spec()->::oracles::v1::OracleSpec::MergeFrom(from._internal_oracle_spec()); - } + events_.MergeFrom(from.events_); } -void OracleSpecResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleSpecResponse) +void ObserveEventBusResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.ObserveEventBusResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void OracleSpecResponse::CopyFrom(const OracleSpecResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleSpecResponse) +void ObserveEventBusResponse::CopyFrom(const ObserveEventBusResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.ObserveEventBusResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool OracleSpecResponse::IsInitialized() const { +bool ObserveEventBusResponse::IsInitialized() const { return true; } -void OracleSpecResponse::InternalSwap(OracleSpecResponse* other) { +void ObserveEventBusResponse::InternalSwap(ObserveEventBusResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(oracle_spec_, other->oracle_spec_); + events_.InternalSwap(&other->events_); } -::PROTOBUF_NAMESPACE_ID::Metadata OracleSpecResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ObserveEventBusResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class OracleSpecsRequest::_Internal { +class StatisticsRequest::_Internal { public: }; -OracleSpecsRequest::OracleSpecsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) +StatisticsRequest::StatisticsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.StatisticsRequest) } -OracleSpecsRequest::OracleSpecsRequest(const OracleSpecsRequest& from) +StatisticsRequest::StatisticsRequest(const StatisticsRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(copy_constructor:api.v1.StatisticsRequest) } -void OracleSpecsRequest::SharedCtor() { +void StatisticsRequest::SharedCtor() { } -OracleSpecsRequest::~OracleSpecsRequest() { - // @@protoc_insertion_point(destructor:api.v1.OracleSpecsRequest) +StatisticsRequest::~StatisticsRequest() { + // @@protoc_insertion_point(destructor:api.v1.StatisticsRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OracleSpecsRequest::SharedDtor() { +void StatisticsRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } -void OracleSpecsRequest::ArenaDtor(void* object) { - OracleSpecsRequest* _this = reinterpret_cast< OracleSpecsRequest* >(object); +void StatisticsRequest::ArenaDtor(void* object) { + StatisticsRequest* _this = reinterpret_cast< StatisticsRequest* >(object); (void)_this; } -void OracleSpecsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void StatisticsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void OracleSpecsRequest::SetCachedSize(int size) const { +void StatisticsRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const OracleSpecsRequest& OracleSpecsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleSpecsRequest_api_2ftrading_2eproto.base); +const StatisticsRequest& StatisticsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsRequest_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void OracleSpecsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleSpecsRequest) +void StatisticsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.StatisticsRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -36395,7 +2378,7 @@ void OracleSpecsRequest::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OracleSpecsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* StatisticsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; @@ -36419,9 +2402,9 @@ const char* OracleSpecsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OracleSpecsRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* StatisticsRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.StatisticsRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -36429,12 +2412,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* OracleSpecsRequest::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.StatisticsRequest) return target; } -size_t OracleSpecsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleSpecsRequest) +size_t StatisticsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.StatisticsRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -36450,23 +2433,23 @@ size_t OracleSpecsRequest::ByteSizeLong() const { return total_size; } -void OracleSpecsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleSpecsRequest) +void StatisticsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.StatisticsRequest) GOOGLE_DCHECK_NE(&from, this); - const OracleSpecsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const StatisticsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.StatisticsRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleSpecsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.StatisticsRequest) MergeFrom(*source); } } -void OracleSpecsRequest::MergeFrom(const OracleSpecsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleSpecsRequest) +void StatisticsRequest::MergeFrom(const StatisticsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.StatisticsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -36474,113 +2457,118 @@ void OracleSpecsRequest::MergeFrom(const OracleSpecsRequest& from) { } -void OracleSpecsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleSpecsRequest) +void StatisticsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.StatisticsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void OracleSpecsRequest::CopyFrom(const OracleSpecsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleSpecsRequest) +void StatisticsRequest::CopyFrom(const StatisticsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.StatisticsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool OracleSpecsRequest::IsInitialized() const { +bool StatisticsRequest::IsInitialized() const { return true; } -void OracleSpecsRequest::InternalSwap(OracleSpecsRequest* other) { +void StatisticsRequest::InternalSwap(StatisticsRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); } -::PROTOBUF_NAMESPACE_ID::Metadata OracleSpecsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StatisticsRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class OracleSpecsResponse::_Internal { +class StatisticsResponse::_Internal { public: + static const ::api::v1::Statistics& statistics(const StatisticsResponse* msg); }; -void OracleSpecsResponse::clear_oracle_specs() { - oracle_specs_.Clear(); +const ::api::v1::Statistics& +StatisticsResponse::_Internal::statistics(const StatisticsResponse* msg) { + return *msg->statistics_; } -OracleSpecsResponse::OracleSpecsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - oracle_specs_(arena) { +StatisticsResponse::StatisticsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleSpecsResponse) + // @@protoc_insertion_point(arena_constructor:api.v1.StatisticsResponse) } -OracleSpecsResponse::OracleSpecsResponse(const OracleSpecsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - oracle_specs_(from.oracle_specs_) { +StatisticsResponse::StatisticsResponse(const StatisticsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OracleSpecsResponse) + if (from._internal_has_statistics()) { + statistics_ = new ::api::v1::Statistics(*from.statistics_); + } else { + statistics_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:api.v1.StatisticsResponse) } -void OracleSpecsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OracleSpecsResponse_api_2ftrading_2eproto.base); +void StatisticsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StatisticsResponse_api_2ftrading_2eproto.base); + statistics_ = nullptr; } -OracleSpecsResponse::~OracleSpecsResponse() { - // @@protoc_insertion_point(destructor:api.v1.OracleSpecsResponse) +StatisticsResponse::~StatisticsResponse() { + // @@protoc_insertion_point(destructor:api.v1.StatisticsResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OracleSpecsResponse::SharedDtor() { +void StatisticsResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete statistics_; } -void OracleSpecsResponse::ArenaDtor(void* object) { - OracleSpecsResponse* _this = reinterpret_cast< OracleSpecsResponse* >(object); +void StatisticsResponse::ArenaDtor(void* object) { + StatisticsResponse* _this = reinterpret_cast< StatisticsResponse* >(object); (void)_this; } -void OracleSpecsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void StatisticsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void OracleSpecsResponse::SetCachedSize(int size) const { +void StatisticsResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const OracleSpecsResponse& OracleSpecsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleSpecsResponse_api_2ftrading_2eproto.base); +const StatisticsResponse& StatisticsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsResponse_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void OracleSpecsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleSpecsResponse) +void StatisticsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.StatisticsResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - oracle_specs_.Clear(); + if (GetArena() == nullptr && statistics_ != nullptr) { + delete statistics_; + } + statistics_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OracleSpecsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* StatisticsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + // .api.v1.Statistics statistics = 1 [json_name = "statistics"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_oracle_specs(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + ptr = ctx->ParseMessage(_internal_mutable_statistics(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; default: { @@ -36605,41 +2593,41 @@ const char* OracleSpecsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAME #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OracleSpecsResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* StatisticsResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleSpecsResponse) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.StatisticsResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_oracle_specs_size()); i < n; i++) { + // .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + if (this->has_statistics()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_oracle_specs(i), target, stream); + InternalWriteMessage( + 1, _Internal::statistics(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleSpecsResponse) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.StatisticsResponse) return target; } -size_t OracleSpecsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleSpecsResponse) +size_t StatisticsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.StatisticsResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; - total_size += 1UL * this->_internal_oracle_specs_size(); - for (const auto& msg : this->oracle_specs_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + if (this->has_statistics()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *statistics_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -36651,137 +2639,437 @@ size_t OracleSpecsResponse::ByteSizeLong() const { return total_size; } -void OracleSpecsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleSpecsResponse) +void StatisticsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.StatisticsResponse) GOOGLE_DCHECK_NE(&from, this); - const OracleSpecsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const StatisticsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleSpecsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.StatisticsResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleSpecsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.StatisticsResponse) MergeFrom(*source); } } -void OracleSpecsResponse::MergeFrom(const OracleSpecsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleSpecsResponse) +void StatisticsResponse::MergeFrom(const StatisticsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.StatisticsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - oracle_specs_.MergeFrom(from.oracle_specs_); + if (from.has_statistics()) { + _internal_mutable_statistics()->::api::v1::Statistics::MergeFrom(from._internal_statistics()); + } } -void OracleSpecsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleSpecsResponse) +void StatisticsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.StatisticsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void OracleSpecsResponse::CopyFrom(const OracleSpecsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleSpecsResponse) +void StatisticsResponse::CopyFrom(const StatisticsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.StatisticsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool OracleSpecsResponse::IsInitialized() const { +bool StatisticsResponse::IsInitialized() const { return true; } -void OracleSpecsResponse::InternalSwap(OracleSpecsResponse* other) { +void StatisticsResponse::InternalSwap(StatisticsResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - oracle_specs_.InternalSwap(&other->oracle_specs_); + swap(statistics_, other->statistics_); } -::PROTOBUF_NAMESPACE_ID::Metadata OracleSpecsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StatisticsResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class OracleDataBySpecRequest::_Internal { +class Statistics::_Internal { public: }; -OracleDataBySpecRequest::OracleDataBySpecRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Statistics::Statistics(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleDataBySpecRequest) + // @@protoc_insertion_point(arena_constructor:api.v1.Statistics) } -OracleDataBySpecRequest::OracleDataBySpecRequest(const OracleDataBySpecRequest& from) +Statistics::Statistics(const Statistics& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + genesis_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_genesis_time().empty()) { + genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_genesis_time(), GetArena()); } - // @@protoc_insertion_point(copy_constructor:api.v1.OracleDataBySpecRequest) -} - -void OracleDataBySpecRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OracleDataBySpecRequest_api_2ftrading_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + current_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_current_time().empty()) { + current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_current_time(), + GetArena()); + } + vega_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_vega_time().empty()) { + vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_time(), + GetArena()); + } + app_version_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_app_version_hash().empty()) { + app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version_hash(), + GetArena()); + } + app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_app_version().empty()) { + app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version(), + GetArena()); + } + chain_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_chain_version().empty()) { + chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_version(), + GetArena()); + } + uptime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_uptime().empty()) { + uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_uptime(), + GetArena()); + } + chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_chain_id().empty()) { + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_id(), + GetArena()); + } + ::memcpy(&block_height_, &from.block_height_, + static_cast(reinterpret_cast(&market_depth_updates_subscriptions_) - + reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); + // @@protoc_insertion_point(copy_constructor:api.v1.Statistics) +} + +void Statistics::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Statistics_api_2ftrading_2eproto.base); + genesis_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + current_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + app_version_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + uptime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&block_height_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&market_depth_updates_subscriptions_) - + reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); } -OracleDataBySpecRequest::~OracleDataBySpecRequest() { - // @@protoc_insertion_point(destructor:api.v1.OracleDataBySpecRequest) +Statistics::~Statistics() { + // @@protoc_insertion_point(destructor:api.v1.Statistics) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OracleDataBySpecRequest::SharedDtor() { +void Statistics::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + genesis_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + current_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + app_version_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + app_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + uptime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void OracleDataBySpecRequest::ArenaDtor(void* object) { - OracleDataBySpecRequest* _this = reinterpret_cast< OracleDataBySpecRequest* >(object); +void Statistics::ArenaDtor(void* object) { + Statistics* _this = reinterpret_cast< Statistics* >(object); (void)_this; } -void OracleDataBySpecRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Statistics::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void OracleDataBySpecRequest::SetCachedSize(int size) const { +void Statistics::SetCachedSize(int size) const { _cached_size_.Set(size); } -const OracleDataBySpecRequest& OracleDataBySpecRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleDataBySpecRequest_api_2ftrading_2eproto.base); +const Statistics& Statistics::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Statistics_api_2ftrading_2eproto.base); return *internal_default_instance(); } -void OracleDataBySpecRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleDataBySpecRequest) +void Statistics::Clear() { +// @@protoc_insertion_point(message_clear_start:api.v1.Statistics) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmpty(); + genesis_time_.ClearToEmpty(); + current_time_.ClearToEmpty(); + vega_time_.ClearToEmpty(); + app_version_hash_.ClearToEmpty(); + app_version_.ClearToEmpty(); + chain_version_.ClearToEmpty(); + uptime_.ClearToEmpty(); + chain_id_.ClearToEmpty(); + ::memset(&block_height_, 0, static_cast( + reinterpret_cast(&market_depth_updates_subscriptions_) - + reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OracleDataBySpecRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Statistics::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id", (.validator.field) = { + // uint64 block_height = 1 [json_name = "blockHeight"]; case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + block_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 backlog_length = 2 [json_name = "backlogLength"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + backlog_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_peers = 3 [json_name = "totalPeers"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + total_peers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string genesis_time = 4 [json_name = "genesisTime"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_genesis_time(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.genesis_time")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string current_time = 5 [json_name = "currentTime"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_current_time(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.current_time")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string vega_time = 6 [json_name = "vegaTime"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_vega_time(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.vega_time")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.ChainStatus status = 7 [json_name = "status"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::vega::ChainStatus>(val)); + } else goto handle_unusual; + continue; + // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + tx_per_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + average_tx_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + average_orders_per_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + trades_per_second_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + orders_per_second_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_markets = 13 [json_name = "totalMarkets"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + total_markets_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) { + total_amend_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { + total_cancel_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + total_create_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_orders = 19 [json_name = "totalOrders"]; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { + total_orders_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 total_trades = 20 [json_name = "totalTrades"]; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { + total_trades_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { + order_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + trade_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { + candle_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { + market_depth_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + positions_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { + account_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + case 27: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { + market_data_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string app_version_hash = 28 [json_name = "appVersionHash"]; + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + auto str = _internal_mutable_app_version_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.app_version_hash")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string app_version = 29 [json_name = "appVersion"]; + case 29: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + auto str = _internal_mutable_app_version(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.app_version")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string chain_version = 30 [json_name = "chainVersion"]; + case 30: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + auto str = _internal_mutable_chain_version(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.chain_version")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 block_duration = 31 [json_name = "blockDuration"]; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 248)) { + block_duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string uptime = 32 [json_name = "uptime"]; + case 32: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 2)) { + auto str = _internal_mutable_uptime(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.uptime")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string chain_id = 33 [json_name = "chainId"]; + case 33: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); + auto str = _internal_mutable_chain_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.OracleDataBySpecRequest.id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "api.v1.Statistics.chain_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + case 34: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + market_depth_updates_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -36807,248 +3095,474 @@ const char* OracleDataBySpecRequest::_InternalParse(const char* ptr, ::PROTOBUF_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OracleDataBySpecRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Statistics::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleDataBySpecRequest) + // @@protoc_insertion_point(serialize_to_array_start:api.v1.Statistics) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // uint64 block_height = 1 [json_name = "blockHeight"]; + if (this->block_height() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_block_height(), target); + } + + // uint64 backlog_length = 2 [json_name = "backlogLength"]; + if (this->backlog_length() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_backlog_length(), target); + } + + // uint64 total_peers = 3 [json_name = "totalPeers"]; + if (this->total_peers() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_total_peers(), target); + } + + // string genesis_time = 4 [json_name = "genesisTime"]; + if (this->genesis_time().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_genesis_time().data(), static_cast(this->_internal_genesis_time().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.genesis_time"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_genesis_time(), target); + } + + // string current_time = 5 [json_name = "currentTime"]; + if (this->current_time().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_current_time().data(), static_cast(this->_internal_current_time().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.current_time"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_current_time(), target); + } + + // string vega_time = 6 [json_name = "vegaTime"]; + if (this->vega_time().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vega_time().data(), static_cast(this->_internal_vega_time().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.vega_time"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_vega_time(), target); + } + + // .vega.ChainStatus status = 7 [json_name = "status"]; + if (this->status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 7, this->_internal_status(), target); + } + + // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + if (this->tx_per_block() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_tx_per_block(), target); + } + + // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + if (this->average_tx_bytes() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_average_tx_bytes(), target); + } + + // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + if (this->average_orders_per_block() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_average_orders_per_block(), target); + } + + // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + if (this->trades_per_second() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_trades_per_second(), target); + } + + // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + if (this->orders_per_second() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(12, this->_internal_orders_per_second(), target); + } + + // uint64 total_markets = 13 [json_name = "totalMarkets"]; + if (this->total_markets() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(13, this->_internal_total_markets(), target); + } + + // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + if (this->total_amend_order() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(16, this->_internal_total_amend_order(), target); + } + + // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + if (this->total_cancel_order() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(17, this->_internal_total_cancel_order(), target); + } + + // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + if (this->total_create_order() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(18, this->_internal_total_create_order(), target); + } + + // uint64 total_orders = 19 [json_name = "totalOrders"]; + if (this->total_orders() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(19, this->_internal_total_orders(), target); + } + + // uint64 total_trades = 20 [json_name = "totalTrades"]; + if (this->total_trades() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(20, this->_internal_total_trades(), target); + } + + // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + if (this->order_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(21, this->_internal_order_subscriptions(), target); + } + + // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + if (this->trade_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(22, this->_internal_trade_subscriptions(), target); + } + + // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + if (this->candle_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(23, this->_internal_candle_subscriptions(), target); + } + + // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + if (this->market_depth_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(24, this->_internal_market_depth_subscriptions(), target); + } + + // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + if (this->positions_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(25, this->_internal_positions_subscriptions(), target); + } + + // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + if (this->account_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(26, this->_internal_account_subscriptions(), target); + } + + // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + if (this->market_data_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(27, this->_internal_market_data_subscriptions(), target); + } + + // string app_version_hash = 28 [json_name = "appVersionHash"]; + if (this->app_version_hash().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_app_version_hash().data(), static_cast(this->_internal_app_version_hash().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.app_version_hash"); + target = stream->WriteStringMaybeAliased( + 28, this->_internal_app_version_hash(), target); + } + + // string app_version = 29 [json_name = "appVersion"]; + if (this->app_version().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_app_version().data(), static_cast(this->_internal_app_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.app_version"); + target = stream->WriteStringMaybeAliased( + 29, this->_internal_app_version(), target); + } + + // string chain_version = 30 [json_name = "chainVersion"]; + if (this->chain_version().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), + this->_internal_chain_version().data(), static_cast(this->_internal_chain_version().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "api.v1.OracleDataBySpecRequest.id"); + "api.v1.Statistics.chain_version"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); + 30, this->_internal_chain_version(), target); + } + + // uint64 block_duration = 31 [json_name = "blockDuration"]; + if (this->block_duration() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(31, this->_internal_block_duration(), target); + } + + // string uptime = 32 [json_name = "uptime"]; + if (this->uptime().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uptime().data(), static_cast(this->_internal_uptime().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.uptime"); + target = stream->WriteStringMaybeAliased( + 32, this->_internal_uptime(), target); + } + + // string chain_id = 33 [json_name = "chainId"]; + if (this->chain_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_chain_id().data(), static_cast(this->_internal_chain_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "api.v1.Statistics.chain_id"); + target = stream->WriteStringMaybeAliased( + 33, this->_internal_chain_id(), target); + } + + // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + if (this->market_depth_updates_subscriptions() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(34, this->_internal_market_depth_updates_subscriptions(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleDataBySpecRequest) + // @@protoc_insertion_point(serialize_to_array_end:api.v1.Statistics) return target; } -size_t OracleDataBySpecRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleDataBySpecRequest) +size_t Statistics::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:api.v1.Statistics) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id", (.validator.field) = { - if (this->id().size() > 0) { + // string genesis_time = 4 [json_name = "genesisTime"]; + if (this->genesis_time().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); + this->_internal_genesis_time()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); + // string current_time = 5 [json_name = "currentTime"]; + if (this->current_time().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_current_time()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} -void OracleDataBySpecRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleDataBySpecRequest) - GOOGLE_DCHECK_NE(&from, this); - const OracleDataBySpecRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleDataBySpecRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleDataBySpecRequest) - MergeFrom(*source); + // string vega_time = 6 [json_name = "vegaTime"]; + if (this->vega_time().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vega_time()); } -} -void OracleDataBySpecRequest::MergeFrom(const OracleDataBySpecRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleDataBySpecRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + // string app_version_hash = 28 [json_name = "appVersionHash"]; + if (this->app_version_hash().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_app_version_hash()); + } - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); + // string app_version = 29 [json_name = "appVersion"]; + if (this->app_version().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_app_version()); } -} -void OracleDataBySpecRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleDataBySpecRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // string chain_version = 30 [json_name = "chainVersion"]; + if (this->chain_version().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chain_version()); + } -void OracleDataBySpecRequest::CopyFrom(const OracleDataBySpecRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleDataBySpecRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // string uptime = 32 [json_name = "uptime"]; + if (this->uptime().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uptime()); + } -bool OracleDataBySpecRequest::IsInitialized() const { - return true; -} + // string chain_id = 33 [json_name = "chainId"]; + if (this->chain_id().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chain_id()); + } -void OracleDataBySpecRequest::InternalSwap(OracleDataBySpecRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} + // uint64 block_height = 1 [json_name = "blockHeight"]; + if (this->block_height() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_block_height()); + } -::PROTOBUF_NAMESPACE_ID::Metadata OracleDataBySpecRequest::GetMetadata() const { - return GetMetadataStatic(); -} + // uint64 backlog_length = 2 [json_name = "backlogLength"]; + if (this->backlog_length() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_backlog_length()); + } + // uint64 total_peers = 3 [json_name = "totalPeers"]; + if (this->total_peers() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_peers()); + } -// =================================================================== + // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + if (this->tx_per_block() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_per_block()); + } -class OracleDataBySpecResponse::_Internal { - public: -}; + // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + if (this->average_tx_bytes() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_average_tx_bytes()); + } -void OracleDataBySpecResponse::clear_oracle_data() { - oracle_data_.Clear(); -} -OracleDataBySpecResponse::OracleDataBySpecResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - oracle_data_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:api.v1.OracleDataBySpecResponse) -} -OracleDataBySpecResponse::OracleDataBySpecResponse(const OracleDataBySpecResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - oracle_data_(from.oracle_data_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:api.v1.OracleDataBySpecResponse) -} + // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + if (this->average_orders_per_block() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_average_orders_per_block()); + } -void OracleDataBySpecResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OracleDataBySpecResponse_api_2ftrading_2eproto.base); -} + // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + if (this->trades_per_second() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_trades_per_second()); + } -OracleDataBySpecResponse::~OracleDataBySpecResponse() { - // @@protoc_insertion_point(destructor:api.v1.OracleDataBySpecResponse) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} + // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + if (this->orders_per_second() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_orders_per_second()); + } + + // uint64 total_markets = 13 [json_name = "totalMarkets"]; + if (this->total_markets() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_markets()); + } + + // .vega.ChainStatus status = 7 [json_name = "status"]; + if (this->status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + } + + // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + if (this->order_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_order_subscriptions()); + } + + // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + if (this->total_amend_order() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_amend_order()); + } -void OracleDataBySpecResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} + // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + if (this->total_cancel_order() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_cancel_order()); + } -void OracleDataBySpecResponse::ArenaDtor(void* object) { - OracleDataBySpecResponse* _this = reinterpret_cast< OracleDataBySpecResponse* >(object); - (void)_this; -} -void OracleDataBySpecResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OracleDataBySpecResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OracleDataBySpecResponse& OracleDataBySpecResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OracleDataBySpecResponse_api_2ftrading_2eproto.base); - return *internal_default_instance(); -} + // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + if (this->total_create_order() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_create_order()); + } + // uint64 total_orders = 19 [json_name = "totalOrders"]; + if (this->total_orders() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_orders()); + } -void OracleDataBySpecResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:api.v1.OracleDataBySpecResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + // uint64 total_trades = 20 [json_name = "totalTrades"]; + if (this->total_trades() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_total_trades()); + } - oracle_data_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} + // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + if (this->trade_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_trade_subscriptions()); + } -const char* OracleDataBySpecResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_oracle_data(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} + // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + if (this->candle_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_candle_subscriptions()); + } -::PROTOBUF_NAMESPACE_ID::uint8* OracleDataBySpecResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:api.v1.OracleDataBySpecResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + if (this->market_depth_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_market_depth_subscriptions()); + } - // repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_oracle_data_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_oracle_data(i), target, stream); + // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + if (this->positions_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_positions_subscriptions()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + if (this->account_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_account_subscriptions()); } - // @@protoc_insertion_point(serialize_to_array_end:api.v1.OracleDataBySpecResponse) - return target; -} -size_t OracleDataBySpecResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:api.v1.OracleDataBySpecResponse) - size_t total_size = 0; + // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + if (this->market_data_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_market_data_subscriptions()); + } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + // uint64 block_duration = 31 [json_name = "blockDuration"]; + if (this->block_duration() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_block_duration()); + } - // repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - total_size += 1UL * this->_internal_oracle_data_size(); - for (const auto& msg : this->oracle_data_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + if (this->market_depth_updates_subscriptions() != 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_market_depth_updates_subscriptions()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -37060,56 +3574,164 @@ size_t OracleDataBySpecResponse::ByteSizeLong() const { return total_size; } -void OracleDataBySpecResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:api.v1.OracleDataBySpecResponse) +void Statistics::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:api.v1.Statistics) GOOGLE_DCHECK_NE(&from, this); - const OracleDataBySpecResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Statistics* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.OracleDataBySpecResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:api.v1.Statistics) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.OracleDataBySpecResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:api.v1.Statistics) MergeFrom(*source); } } -void OracleDataBySpecResponse::MergeFrom(const OracleDataBySpecResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.OracleDataBySpecResponse) +void Statistics::MergeFrom(const Statistics& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:api.v1.Statistics) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - oracle_data_.MergeFrom(from.oracle_data_); + if (from.genesis_time().size() > 0) { + _internal_set_genesis_time(from._internal_genesis_time()); + } + if (from.current_time().size() > 0) { + _internal_set_current_time(from._internal_current_time()); + } + if (from.vega_time().size() > 0) { + _internal_set_vega_time(from._internal_vega_time()); + } + if (from.app_version_hash().size() > 0) { + _internal_set_app_version_hash(from._internal_app_version_hash()); + } + if (from.app_version().size() > 0) { + _internal_set_app_version(from._internal_app_version()); + } + if (from.chain_version().size() > 0) { + _internal_set_chain_version(from._internal_chain_version()); + } + if (from.uptime().size() > 0) { + _internal_set_uptime(from._internal_uptime()); + } + if (from.chain_id().size() > 0) { + _internal_set_chain_id(from._internal_chain_id()); + } + if (from.block_height() != 0) { + _internal_set_block_height(from._internal_block_height()); + } + if (from.backlog_length() != 0) { + _internal_set_backlog_length(from._internal_backlog_length()); + } + if (from.total_peers() != 0) { + _internal_set_total_peers(from._internal_total_peers()); + } + if (from.tx_per_block() != 0) { + _internal_set_tx_per_block(from._internal_tx_per_block()); + } + if (from.average_tx_bytes() != 0) { + _internal_set_average_tx_bytes(from._internal_average_tx_bytes()); + } + if (from.average_orders_per_block() != 0) { + _internal_set_average_orders_per_block(from._internal_average_orders_per_block()); + } + if (from.trades_per_second() != 0) { + _internal_set_trades_per_second(from._internal_trades_per_second()); + } + if (from.orders_per_second() != 0) { + _internal_set_orders_per_second(from._internal_orders_per_second()); + } + if (from.total_markets() != 0) { + _internal_set_total_markets(from._internal_total_markets()); + } + if (from.status() != 0) { + _internal_set_status(from._internal_status()); + } + if (from.order_subscriptions() != 0) { + _internal_set_order_subscriptions(from._internal_order_subscriptions()); + } + if (from.total_amend_order() != 0) { + _internal_set_total_amend_order(from._internal_total_amend_order()); + } + if (from.total_cancel_order() != 0) { + _internal_set_total_cancel_order(from._internal_total_cancel_order()); + } + if (from.total_create_order() != 0) { + _internal_set_total_create_order(from._internal_total_create_order()); + } + if (from.total_orders() != 0) { + _internal_set_total_orders(from._internal_total_orders()); + } + if (from.total_trades() != 0) { + _internal_set_total_trades(from._internal_total_trades()); + } + if (from.trade_subscriptions() != 0) { + _internal_set_trade_subscriptions(from._internal_trade_subscriptions()); + } + if (from.candle_subscriptions() != 0) { + _internal_set_candle_subscriptions(from._internal_candle_subscriptions()); + } + if (from.market_depth_subscriptions() != 0) { + _internal_set_market_depth_subscriptions(from._internal_market_depth_subscriptions()); + } + if (from.positions_subscriptions() != 0) { + _internal_set_positions_subscriptions(from._internal_positions_subscriptions()); + } + if (from.account_subscriptions() != 0) { + _internal_set_account_subscriptions(from._internal_account_subscriptions()); + } + if (from.market_data_subscriptions() != 0) { + _internal_set_market_data_subscriptions(from._internal_market_data_subscriptions()); + } + if (from.block_duration() != 0) { + _internal_set_block_duration(from._internal_block_duration()); + } + if (from.market_depth_updates_subscriptions() != 0) { + _internal_set_market_depth_updates_subscriptions(from._internal_market_depth_updates_subscriptions()); + } } -void OracleDataBySpecResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:api.v1.OracleDataBySpecResponse) +void Statistics::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:api.v1.Statistics) if (&from == this) return; Clear(); MergeFrom(from); } -void OracleDataBySpecResponse::CopyFrom(const OracleDataBySpecResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.OracleDataBySpecResponse) +void Statistics::CopyFrom(const Statistics& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:api.v1.Statistics) if (&from == this) return; Clear(); MergeFrom(from); } -bool OracleDataBySpecResponse::IsInitialized() const { +bool Statistics::IsInitialized() const { return true; } -void OracleDataBySpecResponse::InternalSwap(OracleDataBySpecResponse* other) { +void Statistics::InternalSwap(Statistics* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - oracle_data_.InternalSwap(&other->oracle_data_); + genesis_time_.Swap(&other->genesis_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + current_time_.Swap(&other->current_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vega_time_.Swap(&other->vega_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + app_version_hash_.Swap(&other->app_version_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + app_version_.Swap(&other->app_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + chain_version_.Swap(&other->chain_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + uptime_.Swap(&other->uptime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + chain_id_.Swap(&other->chain_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Statistics, market_depth_updates_subscriptions_) + + sizeof(Statistics::market_depth_updates_subscriptions_) + - PROTOBUF_FIELD_OFFSET(Statistics, block_height_)>( + reinterpret_cast(&block_height_), + reinterpret_cast(&other->block_height_)); } -::PROTOBUF_NAMESPACE_ID::Metadata OracleDataBySpecResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Statistics::GetMetadata() const { return GetMetadataStatic(); } @@ -37480,378 +4102,18 @@ template<> PROTOBUF_NOINLINE ::api::v1::PropagateChainEventRequest* Arena::Creat template<> PROTOBUF_NOINLINE ::api::v1::PropagateChainEventResponse* Arena::CreateMaybeMessage< ::api::v1::PropagateChainEventResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::PropagateChainEventResponse >(arena); } -template<> PROTOBUF_NOINLINE ::api::v1::SubmitTransactionRequest* Arena::CreateMaybeMessage< ::api::v1::SubmitTransactionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::SubmitTransactionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::SubmitTransactionResponse* Arena::CreateMaybeMessage< ::api::v1::SubmitTransactionResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::SubmitTransactionResponse >(arena); -} template<> PROTOBUF_NOINLINE ::api::v1::SubmitTransactionV2Request* Arena::CreateMaybeMessage< ::api::v1::SubmitTransactionV2Request >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::SubmitTransactionV2Request >(arena); } template<> PROTOBUF_NOINLINE ::api::v1::SubmitTransactionV2Response* Arena::CreateMaybeMessage< ::api::v1::SubmitTransactionV2Response >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::SubmitTransactionV2Response >(arena); } -template<> PROTOBUF_NOINLINE ::api::v1::PrepareWithdrawRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareWithdrawRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareWithdrawRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareWithdrawResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareWithdrawResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareWithdrawResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareSubmitOrderResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareSubmitOrderResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareSubmitOrderResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareCancelOrderResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareCancelOrderResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareCancelOrderResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareAmendOrderResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareAmendOrderResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareAmendOrderResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareSubmitOrderRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareSubmitOrderRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareSubmitOrderRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareCancelOrderRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareCancelOrderRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareCancelOrderRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareAmendOrderRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareAmendOrderRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareAmendOrderRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AssetsRequest* Arena::CreateMaybeMessage< ::api::v1::AssetsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AssetsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AssetsResponse* Arena::CreateMaybeMessage< ::api::v1::AssetsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AssetsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AssetByIDRequest* Arena::CreateMaybeMessage< ::api::v1::AssetByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AssetByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AssetByIDResponse* Arena::CreateMaybeMessage< ::api::v1::AssetByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AssetByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNodeSignaturesAggregateRequest* Arena::CreateMaybeMessage< ::api::v1::GetNodeSignaturesAggregateRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNodeSignaturesAggregateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNodeSignaturesAggregateResponse* Arena::CreateMaybeMessage< ::api::v1::GetNodeSignaturesAggregateResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNodeSignaturesAggregateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OptionalProposalState* Arena::CreateMaybeMessage< ::api::v1::OptionalProposalState >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OptionalProposalState >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::GetProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::GetProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalsByPartyRequest* Arena::CreateMaybeMessage< ::api::v1::GetProposalsByPartyRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalsByPartyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalsByPartyResponse* Arena::CreateMaybeMessage< ::api::v1::GetProposalsByPartyResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalsByPartyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetVotesByPartyRequest* Arena::CreateMaybeMessage< ::api::v1::GetVotesByPartyRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetVotesByPartyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetVotesByPartyResponse* Arena::CreateMaybeMessage< ::api::v1::GetVotesByPartyResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetVotesByPartyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNewMarketProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::GetNewMarketProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNewMarketProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNewMarketProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::GetNewMarketProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNewMarketProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetUpdateMarketProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::GetUpdateMarketProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetUpdateMarketProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetUpdateMarketProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::GetUpdateMarketProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetUpdateMarketProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNetworkParametersProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::GetNetworkParametersProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNetworkParametersProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNetworkParametersProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::GetNetworkParametersProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNetworkParametersProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNewAssetProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::GetNewAssetProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNewAssetProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetNewAssetProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::GetNewAssetProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetNewAssetProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalByIDRequest* Arena::CreateMaybeMessage< ::api::v1::GetProposalByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalByIDResponse* Arena::CreateMaybeMessage< ::api::v1::GetProposalByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalByReferenceRequest* Arena::CreateMaybeMessage< ::api::v1::GetProposalByReferenceRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalByReferenceRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::GetProposalByReferenceResponse* Arena::CreateMaybeMessage< ::api::v1::GetProposalByReferenceResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::GetProposalByReferenceResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObserveGovernanceRequest* Arena::CreateMaybeMessage< ::api::v1::ObserveGovernanceRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObserveGovernanceRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObserveGovernanceResponse* Arena::CreateMaybeMessage< ::api::v1::ObserveGovernanceResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObserveGovernanceResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObservePartyProposalsRequest* Arena::CreateMaybeMessage< ::api::v1::ObservePartyProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObservePartyProposalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObservePartyProposalsResponse* Arena::CreateMaybeMessage< ::api::v1::ObservePartyProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObservePartyProposalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObserveProposalVotesRequest* Arena::CreateMaybeMessage< ::api::v1::ObserveProposalVotesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObserveProposalVotesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObserveProposalVotesResponse* Arena::CreateMaybeMessage< ::api::v1::ObserveProposalVotesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObserveProposalVotesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObservePartyVotesRequest* Arena::CreateMaybeMessage< ::api::v1::ObservePartyVotesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObservePartyVotesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ObservePartyVotesResponse* Arena::CreateMaybeMessage< ::api::v1::ObservePartyVotesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ObservePartyVotesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarginLevelsSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::MarginLevelsSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarginLevelsSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarginLevelsSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::MarginLevelsSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarginLevelsSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarginLevelsRequest* Arena::CreateMaybeMessage< ::api::v1::MarginLevelsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarginLevelsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarginLevelsResponse* Arena::CreateMaybeMessage< ::api::v1::MarginLevelsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarginLevelsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsDataSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::MarketsDataSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsDataSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsDataSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::MarketsDataSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsDataSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDataByIDRequest* Arena::CreateMaybeMessage< ::api::v1::MarketDataByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDataByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDataByIDResponse* Arena::CreateMaybeMessage< ::api::v1::MarketDataByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDataByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsDataRequest* Arena::CreateMaybeMessage< ::api::v1::MarketsDataRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsDataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsDataResponse* Arena::CreateMaybeMessage< ::api::v1::MarketsDataResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsDataResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::LastTradeRequest* Arena::CreateMaybeMessage< ::api::v1::LastTradeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::LastTradeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::LastTradeResponse* Arena::CreateMaybeMessage< ::api::v1::LastTradeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::LastTradeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketByIDRequest* Arena::CreateMaybeMessage< ::api::v1::MarketByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketByIDResponse* Arena::CreateMaybeMessage< ::api::v1::MarketByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartyByIDRequest* Arena::CreateMaybeMessage< ::api::v1::PartyByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartyByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartyByIDResponse* Arena::CreateMaybeMessage< ::api::v1::PartyByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartyByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartiesRequest* Arena::CreateMaybeMessage< ::api::v1::PartiesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartiesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartiesResponse* Arena::CreateMaybeMessage< ::api::v1::PartiesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartiesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByPartyRequest* Arena::CreateMaybeMessage< ::api::v1::TradesByPartyRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByPartyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByPartyResponse* Arena::CreateMaybeMessage< ::api::v1::TradesByPartyResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByPartyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByOrderRequest* Arena::CreateMaybeMessage< ::api::v1::TradesByOrderRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByOrderRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByOrderResponse* Arena::CreateMaybeMessage< ::api::v1::TradesByOrderResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByOrderResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AccountsSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::AccountsSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AccountsSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::AccountsSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::AccountsSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::AccountsSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::OrdersSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::TradesSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::CandlesSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::CandlesSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::CandlesSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::CandlesSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::CandlesSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::CandlesSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::MarketDepthSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::MarketDepthSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthUpdatesSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::MarketDepthUpdatesSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthUpdatesSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthUpdatesSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::MarketDepthUpdatesSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthUpdatesSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PositionsSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::PositionsSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PositionsSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PositionsSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::PositionsSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PositionsSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersByMarketRequest* Arena::CreateMaybeMessage< ::api::v1::OrdersByMarketRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersByMarketRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersByMarketResponse* Arena::CreateMaybeMessage< ::api::v1::OrdersByMarketResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersByMarketResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersByPartyRequest* Arena::CreateMaybeMessage< ::api::v1::OrdersByPartyRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersByPartyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersByPartyResponse* Arena::CreateMaybeMessage< ::api::v1::OrdersByPartyResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersByPartyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByMarketAndIDRequest* Arena::CreateMaybeMessage< ::api::v1::OrderByMarketAndIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByMarketAndIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByMarketAndIDResponse* Arena::CreateMaybeMessage< ::api::v1::OrderByMarketAndIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByMarketAndIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByReferenceRequest* Arena::CreateMaybeMessage< ::api::v1::OrderByReferenceRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByReferenceRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByReferenceResponse* Arena::CreateMaybeMessage< ::api::v1::OrderByReferenceResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByReferenceResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsRequest* Arena::CreateMaybeMessage< ::api::v1::MarketsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketsResponse* Arena::CreateMaybeMessage< ::api::v1::MarketsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::CandlesRequest* Arena::CreateMaybeMessage< ::api::v1::CandlesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::CandlesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::CandlesResponse* Arena::CreateMaybeMessage< ::api::v1::CandlesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::CandlesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthRequest* Arena::CreateMaybeMessage< ::api::v1::MarketDepthRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketDepthResponse* Arena::CreateMaybeMessage< ::api::v1::MarketDepthResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketDepthResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByMarketRequest* Arena::CreateMaybeMessage< ::api::v1::TradesByMarketRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByMarketRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesByMarketResponse* Arena::CreateMaybeMessage< ::api::v1::TradesByMarketResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesByMarketResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PositionsByPartyRequest* Arena::CreateMaybeMessage< ::api::v1::PositionsByPartyRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PositionsByPartyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PositionsByPartyResponse* Arena::CreateMaybeMessage< ::api::v1::PositionsByPartyResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PositionsByPartyResponse >(arena); -} template<> PROTOBUF_NOINLINE ::api::v1::GetVegaTimeRequest* Arena::CreateMaybeMessage< ::api::v1::GetVegaTimeRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::GetVegaTimeRequest >(arena); } template<> PROTOBUF_NOINLINE ::api::v1::GetVegaTimeResponse* Arena::CreateMaybeMessage< ::api::v1::GetVegaTimeResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::GetVegaTimeResponse >(arena); } -template<> PROTOBUF_NOINLINE ::api::v1::Pagination* Arena::CreateMaybeMessage< ::api::v1::Pagination >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::Pagination >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrdersSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::OrdersSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrdersSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TradesSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::TradesSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TradesSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TransferResponsesSubscribeRequest* Arena::CreateMaybeMessage< ::api::v1::TransferResponsesSubscribeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TransferResponsesSubscribeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::TransferResponsesSubscribeResponse* Arena::CreateMaybeMessage< ::api::v1::TransferResponsesSubscribeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::TransferResponsesSubscribeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartyAccountsRequest* Arena::CreateMaybeMessage< ::api::v1::PartyAccountsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartyAccountsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PartyAccountsResponse* Arena::CreateMaybeMessage< ::api::v1::PartyAccountsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PartyAccountsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketAccountsRequest* Arena::CreateMaybeMessage< ::api::v1::MarketAccountsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketAccountsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::MarketAccountsResponse* Arena::CreateMaybeMessage< ::api::v1::MarketAccountsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::MarketAccountsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::FeeInfrastructureAccountsRequest* Arena::CreateMaybeMessage< ::api::v1::FeeInfrastructureAccountsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::FeeInfrastructureAccountsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::FeeInfrastructureAccountsResponse* Arena::CreateMaybeMessage< ::api::v1::FeeInfrastructureAccountsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::FeeInfrastructureAccountsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareProposalSubmissionRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareProposalSubmissionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareProposalSubmissionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareProposalSubmissionResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareProposalSubmissionResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareProposalSubmissionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareVoteSubmissionRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareVoteSubmissionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareVoteSubmissionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareVoteSubmissionResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareVoteSubmissionResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareVoteSubmissionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareLiquidityProvisionRequest* Arena::CreateMaybeMessage< ::api::v1::PrepareLiquidityProvisionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareLiquidityProvisionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::PrepareLiquidityProvisionResponse* Arena::CreateMaybeMessage< ::api::v1::PrepareLiquidityProvisionResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::PrepareLiquidityProvisionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByIDRequest* Arena::CreateMaybeMessage< ::api::v1::OrderByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderByIDResponse* Arena::CreateMaybeMessage< ::api::v1::OrderByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderVersionsByIDRequest* Arena::CreateMaybeMessage< ::api::v1::OrderVersionsByIDRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderVersionsByIDRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OrderVersionsByIDResponse* Arena::CreateMaybeMessage< ::api::v1::OrderVersionsByIDResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OrderVersionsByIDResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::EstimateFeeRequest* Arena::CreateMaybeMessage< ::api::v1::EstimateFeeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::EstimateFeeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::EstimateFeeResponse* Arena::CreateMaybeMessage< ::api::v1::EstimateFeeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::EstimateFeeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::EstimateMarginRequest* Arena::CreateMaybeMessage< ::api::v1::EstimateMarginRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::EstimateMarginRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::EstimateMarginResponse* Arena::CreateMaybeMessage< ::api::v1::EstimateMarginResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::EstimateMarginResponse >(arena); -} template<> PROTOBUF_NOINLINE ::api::v1::ObserveEventBusRequest* Arena::CreateMaybeMessage< ::api::v1::ObserveEventBusRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::ObserveEventBusRequest >(arena); } @@ -37864,65 +4126,8 @@ template<> PROTOBUF_NOINLINE ::api::v1::StatisticsRequest* Arena::CreateMaybeMes template<> PROTOBUF_NOINLINE ::api::v1::StatisticsResponse* Arena::CreateMaybeMessage< ::api::v1::StatisticsResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::StatisticsResponse >(arena); } -template<> PROTOBUF_NOINLINE ::api::v1::WithdrawalsRequest* Arena::CreateMaybeMessage< ::api::v1::WithdrawalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::WithdrawalsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::WithdrawalsResponse* Arena::CreateMaybeMessage< ::api::v1::WithdrawalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::WithdrawalsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::WithdrawalRequest* Arena::CreateMaybeMessage< ::api::v1::WithdrawalRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::WithdrawalRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::WithdrawalResponse* Arena::CreateMaybeMessage< ::api::v1::WithdrawalResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::WithdrawalResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ERC20WithdrawalApprovalRequest* Arena::CreateMaybeMessage< ::api::v1::ERC20WithdrawalApprovalRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ERC20WithdrawalApprovalRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::ERC20WithdrawalApprovalResponse* Arena::CreateMaybeMessage< ::api::v1::ERC20WithdrawalApprovalResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::ERC20WithdrawalApprovalResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::DepositsRequest* Arena::CreateMaybeMessage< ::api::v1::DepositsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::DepositsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::DepositsResponse* Arena::CreateMaybeMessage< ::api::v1::DepositsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::DepositsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::DepositRequest* Arena::CreateMaybeMessage< ::api::v1::DepositRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::DepositRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::DepositResponse* Arena::CreateMaybeMessage< ::api::v1::DepositResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::DepositResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::NetworkParametersRequest* Arena::CreateMaybeMessage< ::api::v1::NetworkParametersRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::NetworkParametersRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::NetworkParametersResponse* Arena::CreateMaybeMessage< ::api::v1::NetworkParametersResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::NetworkParametersResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::LiquidityProvisionsRequest* Arena::CreateMaybeMessage< ::api::v1::LiquidityProvisionsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::LiquidityProvisionsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::LiquidityProvisionsResponse* Arena::CreateMaybeMessage< ::api::v1::LiquidityProvisionsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::LiquidityProvisionsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleSpecRequest* Arena::CreateMaybeMessage< ::api::v1::OracleSpecRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleSpecRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleSpecResponse* Arena::CreateMaybeMessage< ::api::v1::OracleSpecResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleSpecResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleSpecsRequest* Arena::CreateMaybeMessage< ::api::v1::OracleSpecsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleSpecsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleSpecsResponse* Arena::CreateMaybeMessage< ::api::v1::OracleSpecsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleSpecsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleDataBySpecRequest* Arena::CreateMaybeMessage< ::api::v1::OracleDataBySpecRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleDataBySpecRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::api::v1::OracleDataBySpecResponse* Arena::CreateMaybeMessage< ::api::v1::OracleDataBySpecResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::api::v1::OracleDataBySpecResponse >(arena); +template<> PROTOBUF_NOINLINE ::api::v1::Statistics* Arena::CreateMaybeMessage< ::api::v1::Statistics >(Arena* arena) { + return Arena::CreateMessageInternal< ::api::v1::Statistics >(arena); } template<> PROTOBUF_NOINLINE ::api::v1::LastBlockHeightRequest* Arena::CreateMaybeMessage< ::api::v1::LastBlockHeightRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::api::v1::LastBlockHeightRequest >(arena); diff --git a/grpc/clients/cpp/generated/api/trading.pb.h b/grpc/clients/cpp/generated/api/trading.pb.h index ef41cff3..b8c6b28a 100644 --- a/grpc/clients/cpp/generated/api/trading.pb.h +++ b/grpc/clients/cpp/generated/api/trading.pb.h @@ -58,7 +58,7 @@ struct TableStruct_api_2ftrading_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[152] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -67,648 +67,65 @@ struct TableStruct_api_2ftrading_2eproto { extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_api_2ftrading_2eproto; namespace api { namespace v1 { -class AccountsSubscribeRequest; -class AccountsSubscribeRequestDefaultTypeInternal; -extern AccountsSubscribeRequestDefaultTypeInternal _AccountsSubscribeRequest_default_instance_; -class AccountsSubscribeResponse; -class AccountsSubscribeResponseDefaultTypeInternal; -extern AccountsSubscribeResponseDefaultTypeInternal _AccountsSubscribeResponse_default_instance_; -class AssetByIDRequest; -class AssetByIDRequestDefaultTypeInternal; -extern AssetByIDRequestDefaultTypeInternal _AssetByIDRequest_default_instance_; -class AssetByIDResponse; -class AssetByIDResponseDefaultTypeInternal; -extern AssetByIDResponseDefaultTypeInternal _AssetByIDResponse_default_instance_; -class AssetsRequest; -class AssetsRequestDefaultTypeInternal; -extern AssetsRequestDefaultTypeInternal _AssetsRequest_default_instance_; -class AssetsResponse; -class AssetsResponseDefaultTypeInternal; -extern AssetsResponseDefaultTypeInternal _AssetsResponse_default_instance_; -class CandlesRequest; -class CandlesRequestDefaultTypeInternal; -extern CandlesRequestDefaultTypeInternal _CandlesRequest_default_instance_; -class CandlesResponse; -class CandlesResponseDefaultTypeInternal; -extern CandlesResponseDefaultTypeInternal _CandlesResponse_default_instance_; -class CandlesSubscribeRequest; -class CandlesSubscribeRequestDefaultTypeInternal; -extern CandlesSubscribeRequestDefaultTypeInternal _CandlesSubscribeRequest_default_instance_; -class CandlesSubscribeResponse; -class CandlesSubscribeResponseDefaultTypeInternal; -extern CandlesSubscribeResponseDefaultTypeInternal _CandlesSubscribeResponse_default_instance_; -class DepositRequest; -class DepositRequestDefaultTypeInternal; -extern DepositRequestDefaultTypeInternal _DepositRequest_default_instance_; -class DepositResponse; -class DepositResponseDefaultTypeInternal; -extern DepositResponseDefaultTypeInternal _DepositResponse_default_instance_; -class DepositsRequest; -class DepositsRequestDefaultTypeInternal; -extern DepositsRequestDefaultTypeInternal _DepositsRequest_default_instance_; -class DepositsResponse; -class DepositsResponseDefaultTypeInternal; -extern DepositsResponseDefaultTypeInternal _DepositsResponse_default_instance_; -class ERC20WithdrawalApprovalRequest; -class ERC20WithdrawalApprovalRequestDefaultTypeInternal; -extern ERC20WithdrawalApprovalRequestDefaultTypeInternal _ERC20WithdrawalApprovalRequest_default_instance_; -class ERC20WithdrawalApprovalResponse; -class ERC20WithdrawalApprovalResponseDefaultTypeInternal; -extern ERC20WithdrawalApprovalResponseDefaultTypeInternal _ERC20WithdrawalApprovalResponse_default_instance_; -class EstimateFeeRequest; -class EstimateFeeRequestDefaultTypeInternal; -extern EstimateFeeRequestDefaultTypeInternal _EstimateFeeRequest_default_instance_; -class EstimateFeeResponse; -class EstimateFeeResponseDefaultTypeInternal; -extern EstimateFeeResponseDefaultTypeInternal _EstimateFeeResponse_default_instance_; -class EstimateMarginRequest; -class EstimateMarginRequestDefaultTypeInternal; -extern EstimateMarginRequestDefaultTypeInternal _EstimateMarginRequest_default_instance_; -class EstimateMarginResponse; -class EstimateMarginResponseDefaultTypeInternal; -extern EstimateMarginResponseDefaultTypeInternal _EstimateMarginResponse_default_instance_; -class FeeInfrastructureAccountsRequest; -class FeeInfrastructureAccountsRequestDefaultTypeInternal; -extern FeeInfrastructureAccountsRequestDefaultTypeInternal _FeeInfrastructureAccountsRequest_default_instance_; -class FeeInfrastructureAccountsResponse; -class FeeInfrastructureAccountsResponseDefaultTypeInternal; -extern FeeInfrastructureAccountsResponseDefaultTypeInternal _FeeInfrastructureAccountsResponse_default_instance_; -class GetNetworkParametersProposalsRequest; -class GetNetworkParametersProposalsRequestDefaultTypeInternal; -extern GetNetworkParametersProposalsRequestDefaultTypeInternal _GetNetworkParametersProposalsRequest_default_instance_; -class GetNetworkParametersProposalsResponse; -class GetNetworkParametersProposalsResponseDefaultTypeInternal; -extern GetNetworkParametersProposalsResponseDefaultTypeInternal _GetNetworkParametersProposalsResponse_default_instance_; -class GetNewAssetProposalsRequest; -class GetNewAssetProposalsRequestDefaultTypeInternal; -extern GetNewAssetProposalsRequestDefaultTypeInternal _GetNewAssetProposalsRequest_default_instance_; -class GetNewAssetProposalsResponse; -class GetNewAssetProposalsResponseDefaultTypeInternal; -extern GetNewAssetProposalsResponseDefaultTypeInternal _GetNewAssetProposalsResponse_default_instance_; -class GetNewMarketProposalsRequest; -class GetNewMarketProposalsRequestDefaultTypeInternal; -extern GetNewMarketProposalsRequestDefaultTypeInternal _GetNewMarketProposalsRequest_default_instance_; -class GetNewMarketProposalsResponse; -class GetNewMarketProposalsResponseDefaultTypeInternal; -extern GetNewMarketProposalsResponseDefaultTypeInternal _GetNewMarketProposalsResponse_default_instance_; -class GetNodeSignaturesAggregateRequest; -class GetNodeSignaturesAggregateRequestDefaultTypeInternal; -extern GetNodeSignaturesAggregateRequestDefaultTypeInternal _GetNodeSignaturesAggregateRequest_default_instance_; -class GetNodeSignaturesAggregateResponse; -class GetNodeSignaturesAggregateResponseDefaultTypeInternal; -extern GetNodeSignaturesAggregateResponseDefaultTypeInternal _GetNodeSignaturesAggregateResponse_default_instance_; -class GetProposalByIDRequest; -class GetProposalByIDRequestDefaultTypeInternal; -extern GetProposalByIDRequestDefaultTypeInternal _GetProposalByIDRequest_default_instance_; -class GetProposalByIDResponse; -class GetProposalByIDResponseDefaultTypeInternal; -extern GetProposalByIDResponseDefaultTypeInternal _GetProposalByIDResponse_default_instance_; -class GetProposalByReferenceRequest; -class GetProposalByReferenceRequestDefaultTypeInternal; -extern GetProposalByReferenceRequestDefaultTypeInternal _GetProposalByReferenceRequest_default_instance_; -class GetProposalByReferenceResponse; -class GetProposalByReferenceResponseDefaultTypeInternal; -extern GetProposalByReferenceResponseDefaultTypeInternal _GetProposalByReferenceResponse_default_instance_; -class GetProposalsByPartyRequest; -class GetProposalsByPartyRequestDefaultTypeInternal; -extern GetProposalsByPartyRequestDefaultTypeInternal _GetProposalsByPartyRequest_default_instance_; -class GetProposalsByPartyResponse; -class GetProposalsByPartyResponseDefaultTypeInternal; -extern GetProposalsByPartyResponseDefaultTypeInternal _GetProposalsByPartyResponse_default_instance_; -class GetProposalsRequest; -class GetProposalsRequestDefaultTypeInternal; -extern GetProposalsRequestDefaultTypeInternal _GetProposalsRequest_default_instance_; -class GetProposalsResponse; -class GetProposalsResponseDefaultTypeInternal; -extern GetProposalsResponseDefaultTypeInternal _GetProposalsResponse_default_instance_; -class GetUpdateMarketProposalsRequest; -class GetUpdateMarketProposalsRequestDefaultTypeInternal; -extern GetUpdateMarketProposalsRequestDefaultTypeInternal _GetUpdateMarketProposalsRequest_default_instance_; -class GetUpdateMarketProposalsResponse; -class GetUpdateMarketProposalsResponseDefaultTypeInternal; -extern GetUpdateMarketProposalsResponseDefaultTypeInternal _GetUpdateMarketProposalsResponse_default_instance_; class GetVegaTimeRequest; class GetVegaTimeRequestDefaultTypeInternal; extern GetVegaTimeRequestDefaultTypeInternal _GetVegaTimeRequest_default_instance_; class GetVegaTimeResponse; class GetVegaTimeResponseDefaultTypeInternal; extern GetVegaTimeResponseDefaultTypeInternal _GetVegaTimeResponse_default_instance_; -class GetVotesByPartyRequest; -class GetVotesByPartyRequestDefaultTypeInternal; -extern GetVotesByPartyRequestDefaultTypeInternal _GetVotesByPartyRequest_default_instance_; -class GetVotesByPartyResponse; -class GetVotesByPartyResponseDefaultTypeInternal; -extern GetVotesByPartyResponseDefaultTypeInternal _GetVotesByPartyResponse_default_instance_; class LastBlockHeightRequest; class LastBlockHeightRequestDefaultTypeInternal; extern LastBlockHeightRequestDefaultTypeInternal _LastBlockHeightRequest_default_instance_; class LastBlockHeightResponse; class LastBlockHeightResponseDefaultTypeInternal; extern LastBlockHeightResponseDefaultTypeInternal _LastBlockHeightResponse_default_instance_; -class LastTradeRequest; -class LastTradeRequestDefaultTypeInternal; -extern LastTradeRequestDefaultTypeInternal _LastTradeRequest_default_instance_; -class LastTradeResponse; -class LastTradeResponseDefaultTypeInternal; -extern LastTradeResponseDefaultTypeInternal _LastTradeResponse_default_instance_; -class LiquidityProvisionsRequest; -class LiquidityProvisionsRequestDefaultTypeInternal; -extern LiquidityProvisionsRequestDefaultTypeInternal _LiquidityProvisionsRequest_default_instance_; -class LiquidityProvisionsResponse; -class LiquidityProvisionsResponseDefaultTypeInternal; -extern LiquidityProvisionsResponseDefaultTypeInternal _LiquidityProvisionsResponse_default_instance_; -class MarginLevelsRequest; -class MarginLevelsRequestDefaultTypeInternal; -extern MarginLevelsRequestDefaultTypeInternal _MarginLevelsRequest_default_instance_; -class MarginLevelsResponse; -class MarginLevelsResponseDefaultTypeInternal; -extern MarginLevelsResponseDefaultTypeInternal _MarginLevelsResponse_default_instance_; -class MarginLevelsSubscribeRequest; -class MarginLevelsSubscribeRequestDefaultTypeInternal; -extern MarginLevelsSubscribeRequestDefaultTypeInternal _MarginLevelsSubscribeRequest_default_instance_; -class MarginLevelsSubscribeResponse; -class MarginLevelsSubscribeResponseDefaultTypeInternal; -extern MarginLevelsSubscribeResponseDefaultTypeInternal _MarginLevelsSubscribeResponse_default_instance_; -class MarketAccountsRequest; -class MarketAccountsRequestDefaultTypeInternal; -extern MarketAccountsRequestDefaultTypeInternal _MarketAccountsRequest_default_instance_; -class MarketAccountsResponse; -class MarketAccountsResponseDefaultTypeInternal; -extern MarketAccountsResponseDefaultTypeInternal _MarketAccountsResponse_default_instance_; -class MarketByIDRequest; -class MarketByIDRequestDefaultTypeInternal; -extern MarketByIDRequestDefaultTypeInternal _MarketByIDRequest_default_instance_; -class MarketByIDResponse; -class MarketByIDResponseDefaultTypeInternal; -extern MarketByIDResponseDefaultTypeInternal _MarketByIDResponse_default_instance_; -class MarketDataByIDRequest; -class MarketDataByIDRequestDefaultTypeInternal; -extern MarketDataByIDRequestDefaultTypeInternal _MarketDataByIDRequest_default_instance_; -class MarketDataByIDResponse; -class MarketDataByIDResponseDefaultTypeInternal; -extern MarketDataByIDResponseDefaultTypeInternal _MarketDataByIDResponse_default_instance_; -class MarketDepthRequest; -class MarketDepthRequestDefaultTypeInternal; -extern MarketDepthRequestDefaultTypeInternal _MarketDepthRequest_default_instance_; -class MarketDepthResponse; -class MarketDepthResponseDefaultTypeInternal; -extern MarketDepthResponseDefaultTypeInternal _MarketDepthResponse_default_instance_; -class MarketDepthSubscribeRequest; -class MarketDepthSubscribeRequestDefaultTypeInternal; -extern MarketDepthSubscribeRequestDefaultTypeInternal _MarketDepthSubscribeRequest_default_instance_; -class MarketDepthSubscribeResponse; -class MarketDepthSubscribeResponseDefaultTypeInternal; -extern MarketDepthSubscribeResponseDefaultTypeInternal _MarketDepthSubscribeResponse_default_instance_; -class MarketDepthUpdatesSubscribeRequest; -class MarketDepthUpdatesSubscribeRequestDefaultTypeInternal; -extern MarketDepthUpdatesSubscribeRequestDefaultTypeInternal _MarketDepthUpdatesSubscribeRequest_default_instance_; -class MarketDepthUpdatesSubscribeResponse; -class MarketDepthUpdatesSubscribeResponseDefaultTypeInternal; -extern MarketDepthUpdatesSubscribeResponseDefaultTypeInternal _MarketDepthUpdatesSubscribeResponse_default_instance_; -class MarketsDataRequest; -class MarketsDataRequestDefaultTypeInternal; -extern MarketsDataRequestDefaultTypeInternal _MarketsDataRequest_default_instance_; -class MarketsDataResponse; -class MarketsDataResponseDefaultTypeInternal; -extern MarketsDataResponseDefaultTypeInternal _MarketsDataResponse_default_instance_; -class MarketsDataSubscribeRequest; -class MarketsDataSubscribeRequestDefaultTypeInternal; -extern MarketsDataSubscribeRequestDefaultTypeInternal _MarketsDataSubscribeRequest_default_instance_; -class MarketsDataSubscribeResponse; -class MarketsDataSubscribeResponseDefaultTypeInternal; -extern MarketsDataSubscribeResponseDefaultTypeInternal _MarketsDataSubscribeResponse_default_instance_; -class MarketsRequest; -class MarketsRequestDefaultTypeInternal; -extern MarketsRequestDefaultTypeInternal _MarketsRequest_default_instance_; -class MarketsResponse; -class MarketsResponseDefaultTypeInternal; -extern MarketsResponseDefaultTypeInternal _MarketsResponse_default_instance_; -class NetworkParametersRequest; -class NetworkParametersRequestDefaultTypeInternal; -extern NetworkParametersRequestDefaultTypeInternal _NetworkParametersRequest_default_instance_; -class NetworkParametersResponse; -class NetworkParametersResponseDefaultTypeInternal; -extern NetworkParametersResponseDefaultTypeInternal _NetworkParametersResponse_default_instance_; class ObserveEventBusRequest; class ObserveEventBusRequestDefaultTypeInternal; extern ObserveEventBusRequestDefaultTypeInternal _ObserveEventBusRequest_default_instance_; class ObserveEventBusResponse; class ObserveEventBusResponseDefaultTypeInternal; extern ObserveEventBusResponseDefaultTypeInternal _ObserveEventBusResponse_default_instance_; -class ObserveGovernanceRequest; -class ObserveGovernanceRequestDefaultTypeInternal; -extern ObserveGovernanceRequestDefaultTypeInternal _ObserveGovernanceRequest_default_instance_; -class ObserveGovernanceResponse; -class ObserveGovernanceResponseDefaultTypeInternal; -extern ObserveGovernanceResponseDefaultTypeInternal _ObserveGovernanceResponse_default_instance_; -class ObservePartyProposalsRequest; -class ObservePartyProposalsRequestDefaultTypeInternal; -extern ObservePartyProposalsRequestDefaultTypeInternal _ObservePartyProposalsRequest_default_instance_; -class ObservePartyProposalsResponse; -class ObservePartyProposalsResponseDefaultTypeInternal; -extern ObservePartyProposalsResponseDefaultTypeInternal _ObservePartyProposalsResponse_default_instance_; -class ObservePartyVotesRequest; -class ObservePartyVotesRequestDefaultTypeInternal; -extern ObservePartyVotesRequestDefaultTypeInternal _ObservePartyVotesRequest_default_instance_; -class ObservePartyVotesResponse; -class ObservePartyVotesResponseDefaultTypeInternal; -extern ObservePartyVotesResponseDefaultTypeInternal _ObservePartyVotesResponse_default_instance_; -class ObserveProposalVotesRequest; -class ObserveProposalVotesRequestDefaultTypeInternal; -extern ObserveProposalVotesRequestDefaultTypeInternal _ObserveProposalVotesRequest_default_instance_; -class ObserveProposalVotesResponse; -class ObserveProposalVotesResponseDefaultTypeInternal; -extern ObserveProposalVotesResponseDefaultTypeInternal _ObserveProposalVotesResponse_default_instance_; -class OptionalProposalState; -class OptionalProposalStateDefaultTypeInternal; -extern OptionalProposalStateDefaultTypeInternal _OptionalProposalState_default_instance_; -class OracleDataBySpecRequest; -class OracleDataBySpecRequestDefaultTypeInternal; -extern OracleDataBySpecRequestDefaultTypeInternal _OracleDataBySpecRequest_default_instance_; -class OracleDataBySpecResponse; -class OracleDataBySpecResponseDefaultTypeInternal; -extern OracleDataBySpecResponseDefaultTypeInternal _OracleDataBySpecResponse_default_instance_; -class OracleSpecRequest; -class OracleSpecRequestDefaultTypeInternal; -extern OracleSpecRequestDefaultTypeInternal _OracleSpecRequest_default_instance_; -class OracleSpecResponse; -class OracleSpecResponseDefaultTypeInternal; -extern OracleSpecResponseDefaultTypeInternal _OracleSpecResponse_default_instance_; -class OracleSpecsRequest; -class OracleSpecsRequestDefaultTypeInternal; -extern OracleSpecsRequestDefaultTypeInternal _OracleSpecsRequest_default_instance_; -class OracleSpecsResponse; -class OracleSpecsResponseDefaultTypeInternal; -extern OracleSpecsResponseDefaultTypeInternal _OracleSpecsResponse_default_instance_; -class OrderByIDRequest; -class OrderByIDRequestDefaultTypeInternal; -extern OrderByIDRequestDefaultTypeInternal _OrderByIDRequest_default_instance_; -class OrderByIDResponse; -class OrderByIDResponseDefaultTypeInternal; -extern OrderByIDResponseDefaultTypeInternal _OrderByIDResponse_default_instance_; -class OrderByMarketAndIDRequest; -class OrderByMarketAndIDRequestDefaultTypeInternal; -extern OrderByMarketAndIDRequestDefaultTypeInternal _OrderByMarketAndIDRequest_default_instance_; -class OrderByMarketAndIDResponse; -class OrderByMarketAndIDResponseDefaultTypeInternal; -extern OrderByMarketAndIDResponseDefaultTypeInternal _OrderByMarketAndIDResponse_default_instance_; -class OrderByReferenceRequest; -class OrderByReferenceRequestDefaultTypeInternal; -extern OrderByReferenceRequestDefaultTypeInternal _OrderByReferenceRequest_default_instance_; -class OrderByReferenceResponse; -class OrderByReferenceResponseDefaultTypeInternal; -extern OrderByReferenceResponseDefaultTypeInternal _OrderByReferenceResponse_default_instance_; -class OrderVersionsByIDRequest; -class OrderVersionsByIDRequestDefaultTypeInternal; -extern OrderVersionsByIDRequestDefaultTypeInternal _OrderVersionsByIDRequest_default_instance_; -class OrderVersionsByIDResponse; -class OrderVersionsByIDResponseDefaultTypeInternal; -extern OrderVersionsByIDResponseDefaultTypeInternal _OrderVersionsByIDResponse_default_instance_; -class OrdersByMarketRequest; -class OrdersByMarketRequestDefaultTypeInternal; -extern OrdersByMarketRequestDefaultTypeInternal _OrdersByMarketRequest_default_instance_; -class OrdersByMarketResponse; -class OrdersByMarketResponseDefaultTypeInternal; -extern OrdersByMarketResponseDefaultTypeInternal _OrdersByMarketResponse_default_instance_; -class OrdersByPartyRequest; -class OrdersByPartyRequestDefaultTypeInternal; -extern OrdersByPartyRequestDefaultTypeInternal _OrdersByPartyRequest_default_instance_; -class OrdersByPartyResponse; -class OrdersByPartyResponseDefaultTypeInternal; -extern OrdersByPartyResponseDefaultTypeInternal _OrdersByPartyResponse_default_instance_; -class OrdersSubscribeRequest; -class OrdersSubscribeRequestDefaultTypeInternal; -extern OrdersSubscribeRequestDefaultTypeInternal _OrdersSubscribeRequest_default_instance_; -class OrdersSubscribeResponse; -class OrdersSubscribeResponseDefaultTypeInternal; -extern OrdersSubscribeResponseDefaultTypeInternal _OrdersSubscribeResponse_default_instance_; -class Pagination; -class PaginationDefaultTypeInternal; -extern PaginationDefaultTypeInternal _Pagination_default_instance_; -class PartiesRequest; -class PartiesRequestDefaultTypeInternal; -extern PartiesRequestDefaultTypeInternal _PartiesRequest_default_instance_; -class PartiesResponse; -class PartiesResponseDefaultTypeInternal; -extern PartiesResponseDefaultTypeInternal _PartiesResponse_default_instance_; -class PartyAccountsRequest; -class PartyAccountsRequestDefaultTypeInternal; -extern PartyAccountsRequestDefaultTypeInternal _PartyAccountsRequest_default_instance_; -class PartyAccountsResponse; -class PartyAccountsResponseDefaultTypeInternal; -extern PartyAccountsResponseDefaultTypeInternal _PartyAccountsResponse_default_instance_; -class PartyByIDRequest; -class PartyByIDRequestDefaultTypeInternal; -extern PartyByIDRequestDefaultTypeInternal _PartyByIDRequest_default_instance_; -class PartyByIDResponse; -class PartyByIDResponseDefaultTypeInternal; -extern PartyByIDResponseDefaultTypeInternal _PartyByIDResponse_default_instance_; -class PositionsByPartyRequest; -class PositionsByPartyRequestDefaultTypeInternal; -extern PositionsByPartyRequestDefaultTypeInternal _PositionsByPartyRequest_default_instance_; -class PositionsByPartyResponse; -class PositionsByPartyResponseDefaultTypeInternal; -extern PositionsByPartyResponseDefaultTypeInternal _PositionsByPartyResponse_default_instance_; -class PositionsSubscribeRequest; -class PositionsSubscribeRequestDefaultTypeInternal; -extern PositionsSubscribeRequestDefaultTypeInternal _PositionsSubscribeRequest_default_instance_; -class PositionsSubscribeResponse; -class PositionsSubscribeResponseDefaultTypeInternal; -extern PositionsSubscribeResponseDefaultTypeInternal _PositionsSubscribeResponse_default_instance_; -class PrepareAmendOrderRequest; -class PrepareAmendOrderRequestDefaultTypeInternal; -extern PrepareAmendOrderRequestDefaultTypeInternal _PrepareAmendOrderRequest_default_instance_; -class PrepareAmendOrderResponse; -class PrepareAmendOrderResponseDefaultTypeInternal; -extern PrepareAmendOrderResponseDefaultTypeInternal _PrepareAmendOrderResponse_default_instance_; -class PrepareCancelOrderRequest; -class PrepareCancelOrderRequestDefaultTypeInternal; -extern PrepareCancelOrderRequestDefaultTypeInternal _PrepareCancelOrderRequest_default_instance_; -class PrepareCancelOrderResponse; -class PrepareCancelOrderResponseDefaultTypeInternal; -extern PrepareCancelOrderResponseDefaultTypeInternal _PrepareCancelOrderResponse_default_instance_; -class PrepareLiquidityProvisionRequest; -class PrepareLiquidityProvisionRequestDefaultTypeInternal; -extern PrepareLiquidityProvisionRequestDefaultTypeInternal _PrepareLiquidityProvisionRequest_default_instance_; -class PrepareLiquidityProvisionResponse; -class PrepareLiquidityProvisionResponseDefaultTypeInternal; -extern PrepareLiquidityProvisionResponseDefaultTypeInternal _PrepareLiquidityProvisionResponse_default_instance_; -class PrepareProposalSubmissionRequest; -class PrepareProposalSubmissionRequestDefaultTypeInternal; -extern PrepareProposalSubmissionRequestDefaultTypeInternal _PrepareProposalSubmissionRequest_default_instance_; -class PrepareProposalSubmissionResponse; -class PrepareProposalSubmissionResponseDefaultTypeInternal; -extern PrepareProposalSubmissionResponseDefaultTypeInternal _PrepareProposalSubmissionResponse_default_instance_; -class PrepareSubmitOrderRequest; -class PrepareSubmitOrderRequestDefaultTypeInternal; -extern PrepareSubmitOrderRequestDefaultTypeInternal _PrepareSubmitOrderRequest_default_instance_; -class PrepareSubmitOrderResponse; -class PrepareSubmitOrderResponseDefaultTypeInternal; -extern PrepareSubmitOrderResponseDefaultTypeInternal _PrepareSubmitOrderResponse_default_instance_; -class PrepareVoteSubmissionRequest; -class PrepareVoteSubmissionRequestDefaultTypeInternal; -extern PrepareVoteSubmissionRequestDefaultTypeInternal _PrepareVoteSubmissionRequest_default_instance_; -class PrepareVoteSubmissionResponse; -class PrepareVoteSubmissionResponseDefaultTypeInternal; -extern PrepareVoteSubmissionResponseDefaultTypeInternal _PrepareVoteSubmissionResponse_default_instance_; -class PrepareWithdrawRequest; -class PrepareWithdrawRequestDefaultTypeInternal; -extern PrepareWithdrawRequestDefaultTypeInternal _PrepareWithdrawRequest_default_instance_; -class PrepareWithdrawResponse; -class PrepareWithdrawResponseDefaultTypeInternal; -extern PrepareWithdrawResponseDefaultTypeInternal _PrepareWithdrawResponse_default_instance_; class PropagateChainEventRequest; class PropagateChainEventRequestDefaultTypeInternal; extern PropagateChainEventRequestDefaultTypeInternal _PropagateChainEventRequest_default_instance_; class PropagateChainEventResponse; class PropagateChainEventResponseDefaultTypeInternal; extern PropagateChainEventResponseDefaultTypeInternal _PropagateChainEventResponse_default_instance_; +class Statistics; +class StatisticsDefaultTypeInternal; +extern StatisticsDefaultTypeInternal _Statistics_default_instance_; class StatisticsRequest; class StatisticsRequestDefaultTypeInternal; extern StatisticsRequestDefaultTypeInternal _StatisticsRequest_default_instance_; class StatisticsResponse; class StatisticsResponseDefaultTypeInternal; extern StatisticsResponseDefaultTypeInternal _StatisticsResponse_default_instance_; -class SubmitTransactionRequest; -class SubmitTransactionRequestDefaultTypeInternal; -extern SubmitTransactionRequestDefaultTypeInternal _SubmitTransactionRequest_default_instance_; -class SubmitTransactionResponse; -class SubmitTransactionResponseDefaultTypeInternal; -extern SubmitTransactionResponseDefaultTypeInternal _SubmitTransactionResponse_default_instance_; class SubmitTransactionV2Request; class SubmitTransactionV2RequestDefaultTypeInternal; extern SubmitTransactionV2RequestDefaultTypeInternal _SubmitTransactionV2Request_default_instance_; class SubmitTransactionV2Response; class SubmitTransactionV2ResponseDefaultTypeInternal; extern SubmitTransactionV2ResponseDefaultTypeInternal _SubmitTransactionV2Response_default_instance_; -class TradesByMarketRequest; -class TradesByMarketRequestDefaultTypeInternal; -extern TradesByMarketRequestDefaultTypeInternal _TradesByMarketRequest_default_instance_; -class TradesByMarketResponse; -class TradesByMarketResponseDefaultTypeInternal; -extern TradesByMarketResponseDefaultTypeInternal _TradesByMarketResponse_default_instance_; -class TradesByOrderRequest; -class TradesByOrderRequestDefaultTypeInternal; -extern TradesByOrderRequestDefaultTypeInternal _TradesByOrderRequest_default_instance_; -class TradesByOrderResponse; -class TradesByOrderResponseDefaultTypeInternal; -extern TradesByOrderResponseDefaultTypeInternal _TradesByOrderResponse_default_instance_; -class TradesByPartyRequest; -class TradesByPartyRequestDefaultTypeInternal; -extern TradesByPartyRequestDefaultTypeInternal _TradesByPartyRequest_default_instance_; -class TradesByPartyResponse; -class TradesByPartyResponseDefaultTypeInternal; -extern TradesByPartyResponseDefaultTypeInternal _TradesByPartyResponse_default_instance_; -class TradesSubscribeRequest; -class TradesSubscribeRequestDefaultTypeInternal; -extern TradesSubscribeRequestDefaultTypeInternal _TradesSubscribeRequest_default_instance_; -class TradesSubscribeResponse; -class TradesSubscribeResponseDefaultTypeInternal; -extern TradesSubscribeResponseDefaultTypeInternal _TradesSubscribeResponse_default_instance_; -class TransferResponsesSubscribeRequest; -class TransferResponsesSubscribeRequestDefaultTypeInternal; -extern TransferResponsesSubscribeRequestDefaultTypeInternal _TransferResponsesSubscribeRequest_default_instance_; -class TransferResponsesSubscribeResponse; -class TransferResponsesSubscribeResponseDefaultTypeInternal; -extern TransferResponsesSubscribeResponseDefaultTypeInternal _TransferResponsesSubscribeResponse_default_instance_; -class WithdrawalRequest; -class WithdrawalRequestDefaultTypeInternal; -extern WithdrawalRequestDefaultTypeInternal _WithdrawalRequest_default_instance_; -class WithdrawalResponse; -class WithdrawalResponseDefaultTypeInternal; -extern WithdrawalResponseDefaultTypeInternal _WithdrawalResponse_default_instance_; -class WithdrawalsRequest; -class WithdrawalsRequestDefaultTypeInternal; -extern WithdrawalsRequestDefaultTypeInternal _WithdrawalsRequest_default_instance_; -class WithdrawalsResponse; -class WithdrawalsResponseDefaultTypeInternal; -extern WithdrawalsResponseDefaultTypeInternal _WithdrawalsResponse_default_instance_; } // namespace v1 } // namespace api PROTOBUF_NAMESPACE_OPEN -template<> ::api::v1::AccountsSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::AccountsSubscribeRequest>(Arena*); -template<> ::api::v1::AccountsSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::AccountsSubscribeResponse>(Arena*); -template<> ::api::v1::AssetByIDRequest* Arena::CreateMaybeMessage<::api::v1::AssetByIDRequest>(Arena*); -template<> ::api::v1::AssetByIDResponse* Arena::CreateMaybeMessage<::api::v1::AssetByIDResponse>(Arena*); -template<> ::api::v1::AssetsRequest* Arena::CreateMaybeMessage<::api::v1::AssetsRequest>(Arena*); -template<> ::api::v1::AssetsResponse* Arena::CreateMaybeMessage<::api::v1::AssetsResponse>(Arena*); -template<> ::api::v1::CandlesRequest* Arena::CreateMaybeMessage<::api::v1::CandlesRequest>(Arena*); -template<> ::api::v1::CandlesResponse* Arena::CreateMaybeMessage<::api::v1::CandlesResponse>(Arena*); -template<> ::api::v1::CandlesSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::CandlesSubscribeRequest>(Arena*); -template<> ::api::v1::CandlesSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::CandlesSubscribeResponse>(Arena*); -template<> ::api::v1::DepositRequest* Arena::CreateMaybeMessage<::api::v1::DepositRequest>(Arena*); -template<> ::api::v1::DepositResponse* Arena::CreateMaybeMessage<::api::v1::DepositResponse>(Arena*); -template<> ::api::v1::DepositsRequest* Arena::CreateMaybeMessage<::api::v1::DepositsRequest>(Arena*); -template<> ::api::v1::DepositsResponse* Arena::CreateMaybeMessage<::api::v1::DepositsResponse>(Arena*); -template<> ::api::v1::ERC20WithdrawalApprovalRequest* Arena::CreateMaybeMessage<::api::v1::ERC20WithdrawalApprovalRequest>(Arena*); -template<> ::api::v1::ERC20WithdrawalApprovalResponse* Arena::CreateMaybeMessage<::api::v1::ERC20WithdrawalApprovalResponse>(Arena*); -template<> ::api::v1::EstimateFeeRequest* Arena::CreateMaybeMessage<::api::v1::EstimateFeeRequest>(Arena*); -template<> ::api::v1::EstimateFeeResponse* Arena::CreateMaybeMessage<::api::v1::EstimateFeeResponse>(Arena*); -template<> ::api::v1::EstimateMarginRequest* Arena::CreateMaybeMessage<::api::v1::EstimateMarginRequest>(Arena*); -template<> ::api::v1::EstimateMarginResponse* Arena::CreateMaybeMessage<::api::v1::EstimateMarginResponse>(Arena*); -template<> ::api::v1::FeeInfrastructureAccountsRequest* Arena::CreateMaybeMessage<::api::v1::FeeInfrastructureAccountsRequest>(Arena*); -template<> ::api::v1::FeeInfrastructureAccountsResponse* Arena::CreateMaybeMessage<::api::v1::FeeInfrastructureAccountsResponse>(Arena*); -template<> ::api::v1::GetNetworkParametersProposalsRequest* Arena::CreateMaybeMessage<::api::v1::GetNetworkParametersProposalsRequest>(Arena*); -template<> ::api::v1::GetNetworkParametersProposalsResponse* Arena::CreateMaybeMessage<::api::v1::GetNetworkParametersProposalsResponse>(Arena*); -template<> ::api::v1::GetNewAssetProposalsRequest* Arena::CreateMaybeMessage<::api::v1::GetNewAssetProposalsRequest>(Arena*); -template<> ::api::v1::GetNewAssetProposalsResponse* Arena::CreateMaybeMessage<::api::v1::GetNewAssetProposalsResponse>(Arena*); -template<> ::api::v1::GetNewMarketProposalsRequest* Arena::CreateMaybeMessage<::api::v1::GetNewMarketProposalsRequest>(Arena*); -template<> ::api::v1::GetNewMarketProposalsResponse* Arena::CreateMaybeMessage<::api::v1::GetNewMarketProposalsResponse>(Arena*); -template<> ::api::v1::GetNodeSignaturesAggregateRequest* Arena::CreateMaybeMessage<::api::v1::GetNodeSignaturesAggregateRequest>(Arena*); -template<> ::api::v1::GetNodeSignaturesAggregateResponse* Arena::CreateMaybeMessage<::api::v1::GetNodeSignaturesAggregateResponse>(Arena*); -template<> ::api::v1::GetProposalByIDRequest* Arena::CreateMaybeMessage<::api::v1::GetProposalByIDRequest>(Arena*); -template<> ::api::v1::GetProposalByIDResponse* Arena::CreateMaybeMessage<::api::v1::GetProposalByIDResponse>(Arena*); -template<> ::api::v1::GetProposalByReferenceRequest* Arena::CreateMaybeMessage<::api::v1::GetProposalByReferenceRequest>(Arena*); -template<> ::api::v1::GetProposalByReferenceResponse* Arena::CreateMaybeMessage<::api::v1::GetProposalByReferenceResponse>(Arena*); -template<> ::api::v1::GetProposalsByPartyRequest* Arena::CreateMaybeMessage<::api::v1::GetProposalsByPartyRequest>(Arena*); -template<> ::api::v1::GetProposalsByPartyResponse* Arena::CreateMaybeMessage<::api::v1::GetProposalsByPartyResponse>(Arena*); -template<> ::api::v1::GetProposalsRequest* Arena::CreateMaybeMessage<::api::v1::GetProposalsRequest>(Arena*); -template<> ::api::v1::GetProposalsResponse* Arena::CreateMaybeMessage<::api::v1::GetProposalsResponse>(Arena*); -template<> ::api::v1::GetUpdateMarketProposalsRequest* Arena::CreateMaybeMessage<::api::v1::GetUpdateMarketProposalsRequest>(Arena*); -template<> ::api::v1::GetUpdateMarketProposalsResponse* Arena::CreateMaybeMessage<::api::v1::GetUpdateMarketProposalsResponse>(Arena*); template<> ::api::v1::GetVegaTimeRequest* Arena::CreateMaybeMessage<::api::v1::GetVegaTimeRequest>(Arena*); template<> ::api::v1::GetVegaTimeResponse* Arena::CreateMaybeMessage<::api::v1::GetVegaTimeResponse>(Arena*); -template<> ::api::v1::GetVotesByPartyRequest* Arena::CreateMaybeMessage<::api::v1::GetVotesByPartyRequest>(Arena*); -template<> ::api::v1::GetVotesByPartyResponse* Arena::CreateMaybeMessage<::api::v1::GetVotesByPartyResponse>(Arena*); template<> ::api::v1::LastBlockHeightRequest* Arena::CreateMaybeMessage<::api::v1::LastBlockHeightRequest>(Arena*); template<> ::api::v1::LastBlockHeightResponse* Arena::CreateMaybeMessage<::api::v1::LastBlockHeightResponse>(Arena*); -template<> ::api::v1::LastTradeRequest* Arena::CreateMaybeMessage<::api::v1::LastTradeRequest>(Arena*); -template<> ::api::v1::LastTradeResponse* Arena::CreateMaybeMessage<::api::v1::LastTradeResponse>(Arena*); -template<> ::api::v1::LiquidityProvisionsRequest* Arena::CreateMaybeMessage<::api::v1::LiquidityProvisionsRequest>(Arena*); -template<> ::api::v1::LiquidityProvisionsResponse* Arena::CreateMaybeMessage<::api::v1::LiquidityProvisionsResponse>(Arena*); -template<> ::api::v1::MarginLevelsRequest* Arena::CreateMaybeMessage<::api::v1::MarginLevelsRequest>(Arena*); -template<> ::api::v1::MarginLevelsResponse* Arena::CreateMaybeMessage<::api::v1::MarginLevelsResponse>(Arena*); -template<> ::api::v1::MarginLevelsSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::MarginLevelsSubscribeRequest>(Arena*); -template<> ::api::v1::MarginLevelsSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::MarginLevelsSubscribeResponse>(Arena*); -template<> ::api::v1::MarketAccountsRequest* Arena::CreateMaybeMessage<::api::v1::MarketAccountsRequest>(Arena*); -template<> ::api::v1::MarketAccountsResponse* Arena::CreateMaybeMessage<::api::v1::MarketAccountsResponse>(Arena*); -template<> ::api::v1::MarketByIDRequest* Arena::CreateMaybeMessage<::api::v1::MarketByIDRequest>(Arena*); -template<> ::api::v1::MarketByIDResponse* Arena::CreateMaybeMessage<::api::v1::MarketByIDResponse>(Arena*); -template<> ::api::v1::MarketDataByIDRequest* Arena::CreateMaybeMessage<::api::v1::MarketDataByIDRequest>(Arena*); -template<> ::api::v1::MarketDataByIDResponse* Arena::CreateMaybeMessage<::api::v1::MarketDataByIDResponse>(Arena*); -template<> ::api::v1::MarketDepthRequest* Arena::CreateMaybeMessage<::api::v1::MarketDepthRequest>(Arena*); -template<> ::api::v1::MarketDepthResponse* Arena::CreateMaybeMessage<::api::v1::MarketDepthResponse>(Arena*); -template<> ::api::v1::MarketDepthSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::MarketDepthSubscribeRequest>(Arena*); -template<> ::api::v1::MarketDepthSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::MarketDepthSubscribeResponse>(Arena*); -template<> ::api::v1::MarketDepthUpdatesSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::MarketDepthUpdatesSubscribeRequest>(Arena*); -template<> ::api::v1::MarketDepthUpdatesSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::MarketDepthUpdatesSubscribeResponse>(Arena*); -template<> ::api::v1::MarketsDataRequest* Arena::CreateMaybeMessage<::api::v1::MarketsDataRequest>(Arena*); -template<> ::api::v1::MarketsDataResponse* Arena::CreateMaybeMessage<::api::v1::MarketsDataResponse>(Arena*); -template<> ::api::v1::MarketsDataSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::MarketsDataSubscribeRequest>(Arena*); -template<> ::api::v1::MarketsDataSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::MarketsDataSubscribeResponse>(Arena*); -template<> ::api::v1::MarketsRequest* Arena::CreateMaybeMessage<::api::v1::MarketsRequest>(Arena*); -template<> ::api::v1::MarketsResponse* Arena::CreateMaybeMessage<::api::v1::MarketsResponse>(Arena*); -template<> ::api::v1::NetworkParametersRequest* Arena::CreateMaybeMessage<::api::v1::NetworkParametersRequest>(Arena*); -template<> ::api::v1::NetworkParametersResponse* Arena::CreateMaybeMessage<::api::v1::NetworkParametersResponse>(Arena*); template<> ::api::v1::ObserveEventBusRequest* Arena::CreateMaybeMessage<::api::v1::ObserveEventBusRequest>(Arena*); template<> ::api::v1::ObserveEventBusResponse* Arena::CreateMaybeMessage<::api::v1::ObserveEventBusResponse>(Arena*); -template<> ::api::v1::ObserveGovernanceRequest* Arena::CreateMaybeMessage<::api::v1::ObserveGovernanceRequest>(Arena*); -template<> ::api::v1::ObserveGovernanceResponse* Arena::CreateMaybeMessage<::api::v1::ObserveGovernanceResponse>(Arena*); -template<> ::api::v1::ObservePartyProposalsRequest* Arena::CreateMaybeMessage<::api::v1::ObservePartyProposalsRequest>(Arena*); -template<> ::api::v1::ObservePartyProposalsResponse* Arena::CreateMaybeMessage<::api::v1::ObservePartyProposalsResponse>(Arena*); -template<> ::api::v1::ObservePartyVotesRequest* Arena::CreateMaybeMessage<::api::v1::ObservePartyVotesRequest>(Arena*); -template<> ::api::v1::ObservePartyVotesResponse* Arena::CreateMaybeMessage<::api::v1::ObservePartyVotesResponse>(Arena*); -template<> ::api::v1::ObserveProposalVotesRequest* Arena::CreateMaybeMessage<::api::v1::ObserveProposalVotesRequest>(Arena*); -template<> ::api::v1::ObserveProposalVotesResponse* Arena::CreateMaybeMessage<::api::v1::ObserveProposalVotesResponse>(Arena*); -template<> ::api::v1::OptionalProposalState* Arena::CreateMaybeMessage<::api::v1::OptionalProposalState>(Arena*); -template<> ::api::v1::OracleDataBySpecRequest* Arena::CreateMaybeMessage<::api::v1::OracleDataBySpecRequest>(Arena*); -template<> ::api::v1::OracleDataBySpecResponse* Arena::CreateMaybeMessage<::api::v1::OracleDataBySpecResponse>(Arena*); -template<> ::api::v1::OracleSpecRequest* Arena::CreateMaybeMessage<::api::v1::OracleSpecRequest>(Arena*); -template<> ::api::v1::OracleSpecResponse* Arena::CreateMaybeMessage<::api::v1::OracleSpecResponse>(Arena*); -template<> ::api::v1::OracleSpecsRequest* Arena::CreateMaybeMessage<::api::v1::OracleSpecsRequest>(Arena*); -template<> ::api::v1::OracleSpecsResponse* Arena::CreateMaybeMessage<::api::v1::OracleSpecsResponse>(Arena*); -template<> ::api::v1::OrderByIDRequest* Arena::CreateMaybeMessage<::api::v1::OrderByIDRequest>(Arena*); -template<> ::api::v1::OrderByIDResponse* Arena::CreateMaybeMessage<::api::v1::OrderByIDResponse>(Arena*); -template<> ::api::v1::OrderByMarketAndIDRequest* Arena::CreateMaybeMessage<::api::v1::OrderByMarketAndIDRequest>(Arena*); -template<> ::api::v1::OrderByMarketAndIDResponse* Arena::CreateMaybeMessage<::api::v1::OrderByMarketAndIDResponse>(Arena*); -template<> ::api::v1::OrderByReferenceRequest* Arena::CreateMaybeMessage<::api::v1::OrderByReferenceRequest>(Arena*); -template<> ::api::v1::OrderByReferenceResponse* Arena::CreateMaybeMessage<::api::v1::OrderByReferenceResponse>(Arena*); -template<> ::api::v1::OrderVersionsByIDRequest* Arena::CreateMaybeMessage<::api::v1::OrderVersionsByIDRequest>(Arena*); -template<> ::api::v1::OrderVersionsByIDResponse* Arena::CreateMaybeMessage<::api::v1::OrderVersionsByIDResponse>(Arena*); -template<> ::api::v1::OrdersByMarketRequest* Arena::CreateMaybeMessage<::api::v1::OrdersByMarketRequest>(Arena*); -template<> ::api::v1::OrdersByMarketResponse* Arena::CreateMaybeMessage<::api::v1::OrdersByMarketResponse>(Arena*); -template<> ::api::v1::OrdersByPartyRequest* Arena::CreateMaybeMessage<::api::v1::OrdersByPartyRequest>(Arena*); -template<> ::api::v1::OrdersByPartyResponse* Arena::CreateMaybeMessage<::api::v1::OrdersByPartyResponse>(Arena*); -template<> ::api::v1::OrdersSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::OrdersSubscribeRequest>(Arena*); -template<> ::api::v1::OrdersSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::OrdersSubscribeResponse>(Arena*); -template<> ::api::v1::Pagination* Arena::CreateMaybeMessage<::api::v1::Pagination>(Arena*); -template<> ::api::v1::PartiesRequest* Arena::CreateMaybeMessage<::api::v1::PartiesRequest>(Arena*); -template<> ::api::v1::PartiesResponse* Arena::CreateMaybeMessage<::api::v1::PartiesResponse>(Arena*); -template<> ::api::v1::PartyAccountsRequest* Arena::CreateMaybeMessage<::api::v1::PartyAccountsRequest>(Arena*); -template<> ::api::v1::PartyAccountsResponse* Arena::CreateMaybeMessage<::api::v1::PartyAccountsResponse>(Arena*); -template<> ::api::v1::PartyByIDRequest* Arena::CreateMaybeMessage<::api::v1::PartyByIDRequest>(Arena*); -template<> ::api::v1::PartyByIDResponse* Arena::CreateMaybeMessage<::api::v1::PartyByIDResponse>(Arena*); -template<> ::api::v1::PositionsByPartyRequest* Arena::CreateMaybeMessage<::api::v1::PositionsByPartyRequest>(Arena*); -template<> ::api::v1::PositionsByPartyResponse* Arena::CreateMaybeMessage<::api::v1::PositionsByPartyResponse>(Arena*); -template<> ::api::v1::PositionsSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::PositionsSubscribeRequest>(Arena*); -template<> ::api::v1::PositionsSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::PositionsSubscribeResponse>(Arena*); -template<> ::api::v1::PrepareAmendOrderRequest* Arena::CreateMaybeMessage<::api::v1::PrepareAmendOrderRequest>(Arena*); -template<> ::api::v1::PrepareAmendOrderResponse* Arena::CreateMaybeMessage<::api::v1::PrepareAmendOrderResponse>(Arena*); -template<> ::api::v1::PrepareCancelOrderRequest* Arena::CreateMaybeMessage<::api::v1::PrepareCancelOrderRequest>(Arena*); -template<> ::api::v1::PrepareCancelOrderResponse* Arena::CreateMaybeMessage<::api::v1::PrepareCancelOrderResponse>(Arena*); -template<> ::api::v1::PrepareLiquidityProvisionRequest* Arena::CreateMaybeMessage<::api::v1::PrepareLiquidityProvisionRequest>(Arena*); -template<> ::api::v1::PrepareLiquidityProvisionResponse* Arena::CreateMaybeMessage<::api::v1::PrepareLiquidityProvisionResponse>(Arena*); -template<> ::api::v1::PrepareProposalSubmissionRequest* Arena::CreateMaybeMessage<::api::v1::PrepareProposalSubmissionRequest>(Arena*); -template<> ::api::v1::PrepareProposalSubmissionResponse* Arena::CreateMaybeMessage<::api::v1::PrepareProposalSubmissionResponse>(Arena*); -template<> ::api::v1::PrepareSubmitOrderRequest* Arena::CreateMaybeMessage<::api::v1::PrepareSubmitOrderRequest>(Arena*); -template<> ::api::v1::PrepareSubmitOrderResponse* Arena::CreateMaybeMessage<::api::v1::PrepareSubmitOrderResponse>(Arena*); -template<> ::api::v1::PrepareVoteSubmissionRequest* Arena::CreateMaybeMessage<::api::v1::PrepareVoteSubmissionRequest>(Arena*); -template<> ::api::v1::PrepareVoteSubmissionResponse* Arena::CreateMaybeMessage<::api::v1::PrepareVoteSubmissionResponse>(Arena*); -template<> ::api::v1::PrepareWithdrawRequest* Arena::CreateMaybeMessage<::api::v1::PrepareWithdrawRequest>(Arena*); -template<> ::api::v1::PrepareWithdrawResponse* Arena::CreateMaybeMessage<::api::v1::PrepareWithdrawResponse>(Arena*); template<> ::api::v1::PropagateChainEventRequest* Arena::CreateMaybeMessage<::api::v1::PropagateChainEventRequest>(Arena*); template<> ::api::v1::PropagateChainEventResponse* Arena::CreateMaybeMessage<::api::v1::PropagateChainEventResponse>(Arena*); +template<> ::api::v1::Statistics* Arena::CreateMaybeMessage<::api::v1::Statistics>(Arena*); template<> ::api::v1::StatisticsRequest* Arena::CreateMaybeMessage<::api::v1::StatisticsRequest>(Arena*); template<> ::api::v1::StatisticsResponse* Arena::CreateMaybeMessage<::api::v1::StatisticsResponse>(Arena*); -template<> ::api::v1::SubmitTransactionRequest* Arena::CreateMaybeMessage<::api::v1::SubmitTransactionRequest>(Arena*); -template<> ::api::v1::SubmitTransactionResponse* Arena::CreateMaybeMessage<::api::v1::SubmitTransactionResponse>(Arena*); template<> ::api::v1::SubmitTransactionV2Request* Arena::CreateMaybeMessage<::api::v1::SubmitTransactionV2Request>(Arena*); template<> ::api::v1::SubmitTransactionV2Response* Arena::CreateMaybeMessage<::api::v1::SubmitTransactionV2Response>(Arena*); -template<> ::api::v1::TradesByMarketRequest* Arena::CreateMaybeMessage<::api::v1::TradesByMarketRequest>(Arena*); -template<> ::api::v1::TradesByMarketResponse* Arena::CreateMaybeMessage<::api::v1::TradesByMarketResponse>(Arena*); -template<> ::api::v1::TradesByOrderRequest* Arena::CreateMaybeMessage<::api::v1::TradesByOrderRequest>(Arena*); -template<> ::api::v1::TradesByOrderResponse* Arena::CreateMaybeMessage<::api::v1::TradesByOrderResponse>(Arena*); -template<> ::api::v1::TradesByPartyRequest* Arena::CreateMaybeMessage<::api::v1::TradesByPartyRequest>(Arena*); -template<> ::api::v1::TradesByPartyResponse* Arena::CreateMaybeMessage<::api::v1::TradesByPartyResponse>(Arena*); -template<> ::api::v1::TradesSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::TradesSubscribeRequest>(Arena*); -template<> ::api::v1::TradesSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::TradesSubscribeResponse>(Arena*); -template<> ::api::v1::TransferResponsesSubscribeRequest* Arena::CreateMaybeMessage<::api::v1::TransferResponsesSubscribeRequest>(Arena*); -template<> ::api::v1::TransferResponsesSubscribeResponse* Arena::CreateMaybeMessage<::api::v1::TransferResponsesSubscribeResponse>(Arena*); -template<> ::api::v1::WithdrawalRequest* Arena::CreateMaybeMessage<::api::v1::WithdrawalRequest>(Arena*); -template<> ::api::v1::WithdrawalResponse* Arena::CreateMaybeMessage<::api::v1::WithdrawalResponse>(Arena*); -template<> ::api::v1::WithdrawalsRequest* Arena::CreateMaybeMessage<::api::v1::WithdrawalsRequest>(Arena*); -template<> ::api::v1::WithdrawalsResponse* Arena::CreateMaybeMessage<::api::v1::WithdrawalsResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace api { namespace v1 { -enum SubmitTransactionRequest_Type : int { - SubmitTransactionRequest_Type_TYPE_UNSPECIFIED = 0, - SubmitTransactionRequest_Type_TYPE_ASYNC = 1, - SubmitTransactionRequest_Type_TYPE_SYNC = 2, - SubmitTransactionRequest_Type_TYPE_COMMIT = 3, - SubmitTransactionRequest_Type_SubmitTransactionRequest_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - SubmitTransactionRequest_Type_SubmitTransactionRequest_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() -}; -bool SubmitTransactionRequest_Type_IsValid(int value); -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest_Type_Type_MIN = SubmitTransactionRequest_Type_TYPE_UNSPECIFIED; -constexpr SubmitTransactionRequest_Type SubmitTransactionRequest_Type_Type_MAX = SubmitTransactionRequest_Type_TYPE_COMMIT; -constexpr int SubmitTransactionRequest_Type_Type_ARRAYSIZE = SubmitTransactionRequest_Type_Type_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SubmitTransactionRequest_Type_descriptor(); -template -inline const std::string& SubmitTransactionRequest_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SubmitTransactionRequest_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SubmitTransactionRequest_Type_descriptor(), enum_t_value); -} -inline bool SubmitTransactionRequest_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SubmitTransactionRequest_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SubmitTransactionRequest_Type_descriptor(), name, value); -} enum SubmitTransactionV2Request_Type : int { SubmitTransactionV2Request_Type_TYPE_UNSPECIFIED = 0, SubmitTransactionV2Request_Type_TYPE_ASYNC = 1, @@ -850,10 +267,26 @@ class PropagateChainEventRequest PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { + kEventFieldNumber = 1, kPubKeyFieldNumber = 2, kSignatureFieldNumber = 3, - kEvtFieldNumber = 1, }; + // bytes event = 1 [json_name = "event"]; + void clear_event(); + const std::string& event() const; + void set_event(const std::string& value); + void set_event(std::string&& value); + void set_event(const char* value); + void set_event(const void* value, size_t size); + std::string* mutable_event(); + std::string* release_event(); + void set_allocated_event(std::string* event); + private: + const std::string& _internal_event() const; + void _internal_set_event(const std::string& value); + std::string* _internal_mutable_event(); + public: + // string pub_key = 2 [json_name = "pubKey"]; void clear_pub_key(); const std::string& pub_key() const; @@ -886,24 +319,6 @@ class PropagateChainEventRequest PROTOBUF_FINAL : std::string* _internal_mutable_signature(); public: - // .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - bool has_evt() const; - private: - bool _internal_has_evt() const; - public: - void clear_evt(); - const ::vega::commands::v1::ChainEvent& evt() const; - ::vega::commands::v1::ChainEvent* release_evt(); - ::vega::commands::v1::ChainEvent* mutable_evt(); - void set_allocated_evt(::vega::commands::v1::ChainEvent* evt); - private: - const ::vega::commands::v1::ChainEvent& _internal_evt() const; - ::vega::commands::v1::ChainEvent* _internal_mutable_evt(); - public: - void unsafe_arena_set_allocated_evt( - ::vega::commands::v1::ChainEvent* evt); - ::vega::commands::v1::ChainEvent* unsafe_arena_release_evt(); - // @@protoc_insertion_point(class_scope:api.v1.PropagateChainEventRequest) private: class _Internal; @@ -911,9 +326,9 @@ class PropagateChainEventRequest PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr event_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pub_key_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; - ::vega::commands::v1::ChainEvent* evt_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; @@ -1055,23 +470,23 @@ class PropagateChainEventResponse PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class SubmitTransactionRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionRequest) */ { +class SubmitTransactionV2Request PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionV2Request) */ { public: - inline SubmitTransactionRequest() : SubmitTransactionRequest(nullptr) {} - virtual ~SubmitTransactionRequest(); + inline SubmitTransactionV2Request() : SubmitTransactionV2Request(nullptr) {} + virtual ~SubmitTransactionV2Request(); - SubmitTransactionRequest(const SubmitTransactionRequest& from); - SubmitTransactionRequest(SubmitTransactionRequest&& from) noexcept - : SubmitTransactionRequest() { + SubmitTransactionV2Request(const SubmitTransactionV2Request& from); + SubmitTransactionV2Request(SubmitTransactionV2Request&& from) noexcept + : SubmitTransactionV2Request() { *this = ::std::move(from); } - inline SubmitTransactionRequest& operator=(const SubmitTransactionRequest& from) { + inline SubmitTransactionV2Request& operator=(const SubmitTransactionV2Request& from) { CopyFrom(from); return *this; } - inline SubmitTransactionRequest& operator=(SubmitTransactionRequest&& from) noexcept { + inline SubmitTransactionV2Request& operator=(SubmitTransactionV2Request&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1089,19 +504,19 @@ class SubmitTransactionRequest PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SubmitTransactionRequest& default_instance(); + static const SubmitTransactionV2Request& default_instance(); - static inline const SubmitTransactionRequest* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionRequest_default_instance_); + static inline const SubmitTransactionV2Request* internal_default_instance() { + return reinterpret_cast( + &_SubmitTransactionV2Request_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { + friend void swap(SubmitTransactionV2Request& a, SubmitTransactionV2Request& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionRequest* other) { + inline void Swap(SubmitTransactionV2Request* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1109,7 +524,7 @@ class SubmitTransactionRequest PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionRequest* other) { + void UnsafeArenaSwap(SubmitTransactionV2Request* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1117,17 +532,17 @@ class SubmitTransactionRequest PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SubmitTransactionRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline SubmitTransactionV2Request* New() const final { + return CreateMaybeMessage(nullptr); } - SubmitTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SubmitTransactionV2Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SubmitTransactionRequest& from); - void MergeFrom(const SubmitTransactionRequest& from); + void CopyFrom(const SubmitTransactionV2Request& from); + void MergeFrom(const SubmitTransactionV2Request& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1141,13 +556,13 @@ class SubmitTransactionRequest PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitTransactionRequest* other); + void InternalSwap(SubmitTransactionV2Request* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.SubmitTransactionRequest"; + return "api.v1.SubmitTransactionV2Request"; } protected: - explicit SubmitTransactionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubmitTransactionV2Request(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1164,38 +579,38 @@ class SubmitTransactionRequest PROTOBUF_FINAL : // nested types ---------------------------------------------------- - typedef SubmitTransactionRequest_Type Type; + typedef SubmitTransactionV2Request_Type Type; static constexpr Type TYPE_UNSPECIFIED = - SubmitTransactionRequest_Type_TYPE_UNSPECIFIED; + SubmitTransactionV2Request_Type_TYPE_UNSPECIFIED; static constexpr Type TYPE_ASYNC = - SubmitTransactionRequest_Type_TYPE_ASYNC; + SubmitTransactionV2Request_Type_TYPE_ASYNC; static constexpr Type TYPE_SYNC = - SubmitTransactionRequest_Type_TYPE_SYNC; + SubmitTransactionV2Request_Type_TYPE_SYNC; static constexpr Type TYPE_COMMIT = - SubmitTransactionRequest_Type_TYPE_COMMIT; + SubmitTransactionV2Request_Type_TYPE_COMMIT; static inline bool Type_IsValid(int value) { - return SubmitTransactionRequest_Type_IsValid(value); + return SubmitTransactionV2Request_Type_IsValid(value); } static constexpr Type Type_MIN = - SubmitTransactionRequest_Type_Type_MIN; + SubmitTransactionV2Request_Type_Type_MIN; static constexpr Type Type_MAX = - SubmitTransactionRequest_Type_Type_MAX; + SubmitTransactionV2Request_Type_Type_MAX; static constexpr int Type_ARRAYSIZE = - SubmitTransactionRequest_Type_Type_ARRAYSIZE; + SubmitTransactionV2Request_Type_Type_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_descriptor() { - return SubmitTransactionRequest_Type_descriptor(); + return SubmitTransactionV2Request_Type_descriptor(); } template static inline const std::string& Type_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Type_Name."); - return SubmitTransactionRequest_Type_Name(enum_t_value); + return SubmitTransactionV2Request_Type_Name(enum_t_value); } static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type* value) { - return SubmitTransactionRequest_Type_Parse(name, value); + return SubmitTransactionV2Request_Type_Parse(name, value); } // accessors ------------------------------------------------------- @@ -1204,64 +619,64 @@ class SubmitTransactionRequest PROTOBUF_FINAL : kTxFieldNumber = 1, kTypeFieldNumber = 2, }; - // .vega.SignedBundle tx = 1 [json_name = "tx"]; + // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; bool has_tx() const; private: bool _internal_has_tx() const; public: void clear_tx(); - const ::vega::SignedBundle& tx() const; - ::vega::SignedBundle* release_tx(); - ::vega::SignedBundle* mutable_tx(); - void set_allocated_tx(::vega::SignedBundle* tx); + const ::vega::commands::v1::Transaction& tx() const; + ::vega::commands::v1::Transaction* release_tx(); + ::vega::commands::v1::Transaction* mutable_tx(); + void set_allocated_tx(::vega::commands::v1::Transaction* tx); private: - const ::vega::SignedBundle& _internal_tx() const; - ::vega::SignedBundle* _internal_mutable_tx(); + const ::vega::commands::v1::Transaction& _internal_tx() const; + ::vega::commands::v1::Transaction* _internal_mutable_tx(); public: void unsafe_arena_set_allocated_tx( - ::vega::SignedBundle* tx); - ::vega::SignedBundle* unsafe_arena_release_tx(); + ::vega::commands::v1::Transaction* tx); + ::vega::commands::v1::Transaction* unsafe_arena_release_tx(); - // .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; void clear_type(); - ::api::v1::SubmitTransactionRequest_Type type() const; - void set_type(::api::v1::SubmitTransactionRequest_Type value); + ::api::v1::SubmitTransactionV2Request_Type type() const; + void set_type(::api::v1::SubmitTransactionV2Request_Type value); private: - ::api::v1::SubmitTransactionRequest_Type _internal_type() const; - void _internal_set_type(::api::v1::SubmitTransactionRequest_Type value); + ::api::v1::SubmitTransactionV2Request_Type _internal_type() const; + void _internal_set_type(::api::v1::SubmitTransactionV2Request_Type value); public: - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionRequest) + // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::vega::SignedBundle* tx_; + ::vega::commands::v1::Transaction* tx_; int type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class SubmitTransactionResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionResponse) */ { +class SubmitTransactionV2Response PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionV2Response) */ { public: - inline SubmitTransactionResponse() : SubmitTransactionResponse(nullptr) {} - virtual ~SubmitTransactionResponse(); + inline SubmitTransactionV2Response() : SubmitTransactionV2Response(nullptr) {} + virtual ~SubmitTransactionV2Response(); - SubmitTransactionResponse(const SubmitTransactionResponse& from); - SubmitTransactionResponse(SubmitTransactionResponse&& from) noexcept - : SubmitTransactionResponse() { + SubmitTransactionV2Response(const SubmitTransactionV2Response& from); + SubmitTransactionV2Response(SubmitTransactionV2Response&& from) noexcept + : SubmitTransactionV2Response() { *this = ::std::move(from); } - inline SubmitTransactionResponse& operator=(const SubmitTransactionResponse& from) { + inline SubmitTransactionV2Response& operator=(const SubmitTransactionV2Response& from) { CopyFrom(from); return *this; } - inline SubmitTransactionResponse& operator=(SubmitTransactionResponse&& from) noexcept { + inline SubmitTransactionV2Response& operator=(SubmitTransactionV2Response&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1279,19 +694,19 @@ class SubmitTransactionResponse PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SubmitTransactionResponse& default_instance(); + static const SubmitTransactionV2Response& default_instance(); - static inline const SubmitTransactionResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionResponse_default_instance_); + static inline const SubmitTransactionV2Response* internal_default_instance() { + return reinterpret_cast( + &_SubmitTransactionV2Response_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { + friend void swap(SubmitTransactionV2Response& a, SubmitTransactionV2Response& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionResponse* other) { + inline void Swap(SubmitTransactionV2Response* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1299,7 +714,7 @@ class SubmitTransactionResponse PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionResponse* other) { + void UnsafeArenaSwap(SubmitTransactionV2Response* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1307,17 +722,17 @@ class SubmitTransactionResponse PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SubmitTransactionResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline SubmitTransactionV2Response* New() const final { + return CreateMaybeMessage(nullptr); } - SubmitTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SubmitTransactionV2Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SubmitTransactionResponse& from); - void MergeFrom(const SubmitTransactionResponse& from); + void CopyFrom(const SubmitTransactionV2Response& from); + void MergeFrom(const SubmitTransactionV2Response& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1331,13 +746,13 @@ class SubmitTransactionResponse PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitTransactionResponse* other); + void InternalSwap(SubmitTransactionV2Response* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.SubmitTransactionResponse"; + return "api.v1.SubmitTransactionV2Response"; } protected: - explicit SubmitTransactionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubmitTransactionV2Response(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1368,7 +783,7 @@ class SubmitTransactionResponse PROTOBUF_FINAL : void _internal_set_success(bool value); public: - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionResponse) + // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) private: class _Internal; @@ -1381,23 +796,23 @@ class SubmitTransactionResponse PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class SubmitTransactionV2Request PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionV2Request) */ { +class GetVegaTimeRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVegaTimeRequest) */ { public: - inline SubmitTransactionV2Request() : SubmitTransactionV2Request(nullptr) {} - virtual ~SubmitTransactionV2Request(); + inline GetVegaTimeRequest() : GetVegaTimeRequest(nullptr) {} + virtual ~GetVegaTimeRequest(); - SubmitTransactionV2Request(const SubmitTransactionV2Request& from); - SubmitTransactionV2Request(SubmitTransactionV2Request&& from) noexcept - : SubmitTransactionV2Request() { + GetVegaTimeRequest(const GetVegaTimeRequest& from); + GetVegaTimeRequest(GetVegaTimeRequest&& from) noexcept + : GetVegaTimeRequest() { *this = ::std::move(from); } - inline SubmitTransactionV2Request& operator=(const SubmitTransactionV2Request& from) { + inline GetVegaTimeRequest& operator=(const GetVegaTimeRequest& from) { CopyFrom(from); return *this; } - inline SubmitTransactionV2Request& operator=(SubmitTransactionV2Request&& from) noexcept { + inline GetVegaTimeRequest& operator=(GetVegaTimeRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1415,19 +830,19 @@ class SubmitTransactionV2Request PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SubmitTransactionV2Request& default_instance(); + static const GetVegaTimeRequest& default_instance(); - static inline const SubmitTransactionV2Request* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionV2Request_default_instance_); + static inline const GetVegaTimeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVegaTimeRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(SubmitTransactionV2Request& a, SubmitTransactionV2Request& b) { + friend void swap(GetVegaTimeRequest& a, GetVegaTimeRequest& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionV2Request* other) { + inline void Swap(GetVegaTimeRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1435,7 +850,7 @@ class SubmitTransactionV2Request PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionV2Request* other) { + void UnsafeArenaSwap(GetVegaTimeRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1443,17 +858,17 @@ class SubmitTransactionV2Request PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SubmitTransactionV2Request* New() const final { - return CreateMaybeMessage(nullptr); + inline GetVegaTimeRequest* New() const final { + return CreateMaybeMessage(nullptr); } - SubmitTransactionV2Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetVegaTimeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SubmitTransactionV2Request& from); - void MergeFrom(const SubmitTransactionV2Request& from); + void CopyFrom(const GetVegaTimeRequest& from); + void MergeFrom(const GetVegaTimeRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1467,13 +882,13 @@ class SubmitTransactionV2Request PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitTransactionV2Request* other); + void InternalSwap(GetVegaTimeRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.SubmitTransactionV2Request"; + return "api.v1.GetVegaTimeRequest"; } protected: - explicit SubmitTransactionV2Request(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetVegaTimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1490,104 +905,37 @@ class SubmitTransactionV2Request PROTOBUF_FINAL : // nested types ---------------------------------------------------- - typedef SubmitTransactionV2Request_Type Type; - static constexpr Type TYPE_UNSPECIFIED = - SubmitTransactionV2Request_Type_TYPE_UNSPECIFIED; - static constexpr Type TYPE_ASYNC = - SubmitTransactionV2Request_Type_TYPE_ASYNC; - static constexpr Type TYPE_SYNC = - SubmitTransactionV2Request_Type_TYPE_SYNC; - static constexpr Type TYPE_COMMIT = - SubmitTransactionV2Request_Type_TYPE_COMMIT; - static inline bool Type_IsValid(int value) { - return SubmitTransactionV2Request_Type_IsValid(value); - } - static constexpr Type Type_MIN = - SubmitTransactionV2Request_Type_Type_MIN; - static constexpr Type Type_MAX = - SubmitTransactionV2Request_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - SubmitTransactionV2Request_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { - return SubmitTransactionV2Request_Type_descriptor(); - } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return SubmitTransactionV2Request_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return SubmitTransactionV2Request_Type_Parse(name, value); - } - // accessors ------------------------------------------------------- - enum : int { - kTxFieldNumber = 1, - kTypeFieldNumber = 2, - }; - // .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - bool has_tx() const; - private: - bool _internal_has_tx() const; - public: - void clear_tx(); - const ::vega::commands::v1::Transaction& tx() const; - ::vega::commands::v1::Transaction* release_tx(); - ::vega::commands::v1::Transaction* mutable_tx(); - void set_allocated_tx(::vega::commands::v1::Transaction* tx); - private: - const ::vega::commands::v1::Transaction& _internal_tx() const; - ::vega::commands::v1::Transaction* _internal_mutable_tx(); - public: - void unsafe_arena_set_allocated_tx( - ::vega::commands::v1::Transaction* tx); - ::vega::commands::v1::Transaction* unsafe_arena_release_tx(); - - // .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - void clear_type(); - ::api::v1::SubmitTransactionV2Request_Type type() const; - void set_type(::api::v1::SubmitTransactionV2Request_Type value); - private: - ::api::v1::SubmitTransactionV2Request_Type _internal_type() const; - void _internal_set_type(::api::v1::SubmitTransactionV2Request_Type value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) + // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::vega::commands::v1::Transaction* tx_; - int type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class SubmitTransactionV2Response PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.SubmitTransactionV2Response) */ { +class GetVegaTimeResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVegaTimeResponse) */ { public: - inline SubmitTransactionV2Response() : SubmitTransactionV2Response(nullptr) {} - virtual ~SubmitTransactionV2Response(); + inline GetVegaTimeResponse() : GetVegaTimeResponse(nullptr) {} + virtual ~GetVegaTimeResponse(); - SubmitTransactionV2Response(const SubmitTransactionV2Response& from); - SubmitTransactionV2Response(SubmitTransactionV2Response&& from) noexcept - : SubmitTransactionV2Response() { + GetVegaTimeResponse(const GetVegaTimeResponse& from); + GetVegaTimeResponse(GetVegaTimeResponse&& from) noexcept + : GetVegaTimeResponse() { *this = ::std::move(from); } - inline SubmitTransactionV2Response& operator=(const SubmitTransactionV2Response& from) { + inline GetVegaTimeResponse& operator=(const GetVegaTimeResponse& from) { CopyFrom(from); return *this; } - inline SubmitTransactionV2Response& operator=(SubmitTransactionV2Response&& from) noexcept { + inline GetVegaTimeResponse& operator=(GetVegaTimeResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1605,19 +953,19 @@ class SubmitTransactionV2Response PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SubmitTransactionV2Response& default_instance(); + static const GetVegaTimeResponse& default_instance(); - static inline const SubmitTransactionV2Response* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionV2Response_default_instance_); + static inline const GetVegaTimeResponse* internal_default_instance() { + return reinterpret_cast( + &_GetVegaTimeResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(SubmitTransactionV2Response& a, SubmitTransactionV2Response& b) { + friend void swap(GetVegaTimeResponse& a, GetVegaTimeResponse& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionV2Response* other) { + inline void Swap(GetVegaTimeResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1625,7 +973,7 @@ class SubmitTransactionV2Response PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionV2Response* other) { + void UnsafeArenaSwap(GetVegaTimeResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1633,18 +981,18 @@ class SubmitTransactionV2Response PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SubmitTransactionV2Response* New() const final { - return CreateMaybeMessage(nullptr); + inline GetVegaTimeResponse* New() const final { + return CreateMaybeMessage(nullptr); } - SubmitTransactionV2Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetVegaTimeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SubmitTransactionV2Response& from); - void MergeFrom(const SubmitTransactionV2Response& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + void CopyFrom(const GetVegaTimeResponse& from); + void MergeFrom(const GetVegaTimeResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; @@ -1657,13 +1005,13 @@ class SubmitTransactionV2Response PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitTransactionV2Response* other); + void InternalSwap(GetVegaTimeResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.SubmitTransactionV2Response"; + return "api.v1.GetVegaTimeResponse"; } protected: - explicit SubmitTransactionV2Response(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetVegaTimeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1683,47 +1031,47 @@ class SubmitTransactionV2Response PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kSuccessFieldNumber = 1, + kTimestampFieldNumber = 1, }; - // bool success = 1 [json_name = "success"]; - void clear_success(); - bool success() const; - void set_success(bool value); + // int64 timestamp = 1 [json_name = "timestamp"]; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); private: - bool _internal_success() const; - void _internal_set_success(bool value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) + // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool success_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareWithdrawRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareWithdrawRequest) */ { +class ObserveEventBusRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveEventBusRequest) */ { public: - inline PrepareWithdrawRequest() : PrepareWithdrawRequest(nullptr) {} - virtual ~PrepareWithdrawRequest(); + inline ObserveEventBusRequest() : ObserveEventBusRequest(nullptr) {} + virtual ~ObserveEventBusRequest(); - PrepareWithdrawRequest(const PrepareWithdrawRequest& from); - PrepareWithdrawRequest(PrepareWithdrawRequest&& from) noexcept - : PrepareWithdrawRequest() { + ObserveEventBusRequest(const ObserveEventBusRequest& from); + ObserveEventBusRequest(ObserveEventBusRequest&& from) noexcept + : ObserveEventBusRequest() { *this = ::std::move(from); } - inline PrepareWithdrawRequest& operator=(const PrepareWithdrawRequest& from) { + inline ObserveEventBusRequest& operator=(const ObserveEventBusRequest& from) { CopyFrom(from); return *this; } - inline PrepareWithdrawRequest& operator=(PrepareWithdrawRequest&& from) noexcept { + inline ObserveEventBusRequest& operator=(ObserveEventBusRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1741,19 +1089,19 @@ class PrepareWithdrawRequest PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareWithdrawRequest& default_instance(); + static const ObserveEventBusRequest& default_instance(); - static inline const PrepareWithdrawRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareWithdrawRequest_default_instance_); + static inline const ObserveEventBusRequest* internal_default_instance() { + return reinterpret_cast( + &_ObserveEventBusRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(PrepareWithdrawRequest& a, PrepareWithdrawRequest& b) { + friend void swap(ObserveEventBusRequest& a, ObserveEventBusRequest& b) { a.Swap(&b); } - inline void Swap(PrepareWithdrawRequest* other) { + inline void Swap(ObserveEventBusRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1761,7 +1109,7 @@ class PrepareWithdrawRequest PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareWithdrawRequest* other) { + void UnsafeArenaSwap(ObserveEventBusRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1769,17 +1117,17 @@ class PrepareWithdrawRequest PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareWithdrawRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline ObserveEventBusRequest* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareWithdrawRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + ObserveEventBusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareWithdrawRequest& from); - void MergeFrom(const PrepareWithdrawRequest& from); + void CopyFrom(const ObserveEventBusRequest& from); + void MergeFrom(const ObserveEventBusRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1793,13 +1141,13 @@ class PrepareWithdrawRequest PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareWithdrawRequest* other); + void InternalSwap(ObserveEventBusRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareWithdrawRequest"; + return "api.v1.ObserveEventBusRequest"; } protected: - explicit PrepareWithdrawRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ObserveEventBusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1819,56 +1167,103 @@ class PrepareWithdrawRequest PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kWithdrawFieldNumber = 1, + kTypeFieldNumber = 1, + kMarketIdFieldNumber = 2, + kPartyIdFieldNumber = 3, + kBatchSizeFieldNumber = 4, }; - // .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - bool has_withdraw() const; + // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + int type_size() const; + private: + int _internal_type_size() const; + public: + void clear_type(); + private: + ::vega::events::v1::BusEventType _internal_type(int index) const; + void _internal_add_type(::vega::events::v1::BusEventType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_type(); + public: + ::vega::events::v1::BusEventType type(int index) const; + void set_type(int index, ::vega::events::v1::BusEventType value); + void add_type(::vega::events::v1::BusEventType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& type() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_type(); + + // string market_id = 2 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); + private: + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); + public: + + // string party_id = 3 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); private: - bool _internal_has_withdraw() const; + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); public: - void clear_withdraw(); - const ::vega::commands::v1::WithdrawSubmission& withdraw() const; - ::vega::commands::v1::WithdrawSubmission* release_withdraw(); - ::vega::commands::v1::WithdrawSubmission* mutable_withdraw(); - void set_allocated_withdraw(::vega::commands::v1::WithdrawSubmission* withdraw); + + // int64 batch_size = 4 [json_name = "batchSize"]; + void clear_batch_size(); + ::PROTOBUF_NAMESPACE_ID::int64 batch_size() const; + void set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value); private: - const ::vega::commands::v1::WithdrawSubmission& _internal_withdraw() const; - ::vega::commands::v1::WithdrawSubmission* _internal_mutable_withdraw(); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_batch_size() const; + void _internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value); public: - void unsafe_arena_set_allocated_withdraw( - ::vega::commands::v1::WithdrawSubmission* withdraw); - ::vega::commands::v1::WithdrawSubmission* unsafe_arena_release_withdraw(); - // @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawRequest) + // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::vega::commands::v1::WithdrawSubmission* withdraw_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField type_; + mutable std::atomic _type_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::int64 batch_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareWithdrawResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareWithdrawResponse) */ { +class ObserveEventBusResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveEventBusResponse) */ { public: - inline PrepareWithdrawResponse() : PrepareWithdrawResponse(nullptr) {} - virtual ~PrepareWithdrawResponse(); + inline ObserveEventBusResponse() : ObserveEventBusResponse(nullptr) {} + virtual ~ObserveEventBusResponse(); - PrepareWithdrawResponse(const PrepareWithdrawResponse& from); - PrepareWithdrawResponse(PrepareWithdrawResponse&& from) noexcept - : PrepareWithdrawResponse() { + ObserveEventBusResponse(const ObserveEventBusResponse& from); + ObserveEventBusResponse(ObserveEventBusResponse&& from) noexcept + : ObserveEventBusResponse() { *this = ::std::move(from); } - inline PrepareWithdrawResponse& operator=(const PrepareWithdrawResponse& from) { + inline ObserveEventBusResponse& operator=(const ObserveEventBusResponse& from) { CopyFrom(from); return *this; } - inline PrepareWithdrawResponse& operator=(PrepareWithdrawResponse&& from) noexcept { + inline ObserveEventBusResponse& operator=(ObserveEventBusResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1886,19 +1281,19 @@ class PrepareWithdrawResponse PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareWithdrawResponse& default_instance(); + static const ObserveEventBusResponse& default_instance(); - static inline const PrepareWithdrawResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareWithdrawResponse_default_instance_); + static inline const ObserveEventBusResponse* internal_default_instance() { + return reinterpret_cast( + &_ObserveEventBusResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(PrepareWithdrawResponse& a, PrepareWithdrawResponse& b) { + friend void swap(ObserveEventBusResponse& a, ObserveEventBusResponse& b) { a.Swap(&b); } - inline void Swap(PrepareWithdrawResponse* other) { + inline void Swap(ObserveEventBusResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1906,7 +1301,7 @@ class PrepareWithdrawResponse PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareWithdrawResponse* other) { + void UnsafeArenaSwap(ObserveEventBusResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1914,17 +1309,17 @@ class PrepareWithdrawResponse PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareWithdrawResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline ObserveEventBusResponse* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareWithdrawResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + ObserveEventBusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareWithdrawResponse& from); - void MergeFrom(const PrepareWithdrawResponse& from); + void CopyFrom(const ObserveEventBusResponse& from); + void MergeFrom(const ObserveEventBusResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1938,13 +1333,13 @@ class PrepareWithdrawResponse PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareWithdrawResponse* other); + void InternalSwap(ObserveEventBusResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareWithdrawResponse"; + return "api.v1.ObserveEventBusResponse"; } protected: - explicit PrepareWithdrawResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ObserveEventBusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1964,54 +1359,56 @@ class PrepareWithdrawResponse PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kBlobFieldNumber = 1, + kEventsFieldNumber = 1, }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); + // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + ::vega::events::v1::BusEvent* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >* + mutable_events(); private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); + const ::vega::events::v1::BusEvent& _internal_events(int index) const; + ::vega::events::v1::BusEvent* _internal_add_events(); public: + const ::vega::events::v1::BusEvent& events(int index) const; + ::vega::events::v1::BusEvent* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >& + events() const; - // @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawResponse) + // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent > events_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareSubmitOrderResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareSubmitOrderResponse) */ { +class StatisticsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.StatisticsRequest) */ { public: - inline PrepareSubmitOrderResponse() : PrepareSubmitOrderResponse(nullptr) {} - virtual ~PrepareSubmitOrderResponse(); + inline StatisticsRequest() : StatisticsRequest(nullptr) {} + virtual ~StatisticsRequest(); - PrepareSubmitOrderResponse(const PrepareSubmitOrderResponse& from); - PrepareSubmitOrderResponse(PrepareSubmitOrderResponse&& from) noexcept - : PrepareSubmitOrderResponse() { + StatisticsRequest(const StatisticsRequest& from); + StatisticsRequest(StatisticsRequest&& from) noexcept + : StatisticsRequest() { *this = ::std::move(from); } - inline PrepareSubmitOrderResponse& operator=(const PrepareSubmitOrderResponse& from) { + inline StatisticsRequest& operator=(const StatisticsRequest& from) { CopyFrom(from); return *this; } - inline PrepareSubmitOrderResponse& operator=(PrepareSubmitOrderResponse&& from) noexcept { + inline StatisticsRequest& operator=(StatisticsRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2029,19 +1426,19 @@ class PrepareSubmitOrderResponse PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareSubmitOrderResponse& default_instance(); + static const StatisticsRequest& default_instance(); - static inline const PrepareSubmitOrderResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareSubmitOrderResponse_default_instance_); + static inline const StatisticsRequest* internal_default_instance() { + return reinterpret_cast( + &_StatisticsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - friend void swap(PrepareSubmitOrderResponse& a, PrepareSubmitOrderResponse& b) { + friend void swap(StatisticsRequest& a, StatisticsRequest& b) { a.Swap(&b); } - inline void Swap(PrepareSubmitOrderResponse* other) { + inline void Swap(StatisticsRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2049,7 +1446,7 @@ class PrepareSubmitOrderResponse PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareSubmitOrderResponse* other) { + void UnsafeArenaSwap(StatisticsRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2057,17 +1454,17 @@ class PrepareSubmitOrderResponse PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareSubmitOrderResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline StatisticsRequest* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareSubmitOrderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + StatisticsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareSubmitOrderResponse& from); - void MergeFrom(const PrepareSubmitOrderResponse& from); + void CopyFrom(const StatisticsRequest& from); + void MergeFrom(const StatisticsRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2081,13 +1478,13 @@ class PrepareSubmitOrderResponse PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareSubmitOrderResponse* other); + void InternalSwap(StatisticsRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareSubmitOrderResponse"; + return "api.v1.StatisticsRequest"; } protected: - explicit PrepareSubmitOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StatisticsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2106,73 +1503,35 @@ class PrepareSubmitOrderResponse PROTOBUF_FINAL : // accessors ------------------------------------------------------- - enum : int { - kBlobFieldNumber = 1, - kSubmitIdFieldNumber = 2, - }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); - private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); - public: - - // string submit_id = 2 [json_name = "submitId"]; - void clear_submit_id(); - const std::string& submit_id() const; - void set_submit_id(const std::string& value); - void set_submit_id(std::string&& value); - void set_submit_id(const char* value); - void set_submit_id(const char* value, size_t size); - std::string* mutable_submit_id(); - std::string* release_submit_id(); - void set_allocated_submit_id(std::string* submit_id); - private: - const std::string& _internal_submit_id() const; - void _internal_set_submit_id(const std::string& value); - std::string* _internal_mutable_submit_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderResponse) + // @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr submit_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareCancelOrderResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareCancelOrderResponse) */ { +class StatisticsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.StatisticsResponse) */ { public: - inline PrepareCancelOrderResponse() : PrepareCancelOrderResponse(nullptr) {} - virtual ~PrepareCancelOrderResponse(); + inline StatisticsResponse() : StatisticsResponse(nullptr) {} + virtual ~StatisticsResponse(); - PrepareCancelOrderResponse(const PrepareCancelOrderResponse& from); - PrepareCancelOrderResponse(PrepareCancelOrderResponse&& from) noexcept - : PrepareCancelOrderResponse() { + StatisticsResponse(const StatisticsResponse& from); + StatisticsResponse(StatisticsResponse&& from) noexcept + : StatisticsResponse() { *this = ::std::move(from); } - inline PrepareCancelOrderResponse& operator=(const PrepareCancelOrderResponse& from) { + inline StatisticsResponse& operator=(const StatisticsResponse& from) { CopyFrom(from); return *this; } - inline PrepareCancelOrderResponse& operator=(PrepareCancelOrderResponse&& from) noexcept { + inline StatisticsResponse& operator=(StatisticsResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2190,19 +1549,19 @@ class PrepareCancelOrderResponse PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareCancelOrderResponse& default_instance(); + static const StatisticsResponse& default_instance(); - static inline const PrepareCancelOrderResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareCancelOrderResponse_default_instance_); + static inline const StatisticsResponse* internal_default_instance() { + return reinterpret_cast( + &_StatisticsResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(PrepareCancelOrderResponse& a, PrepareCancelOrderResponse& b) { + friend void swap(StatisticsResponse& a, StatisticsResponse& b) { a.Swap(&b); } - inline void Swap(PrepareCancelOrderResponse* other) { + inline void Swap(StatisticsResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2210,7 +1569,7 @@ class PrepareCancelOrderResponse PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareCancelOrderResponse* other) { + void UnsafeArenaSwap(StatisticsResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2218,17 +1577,17 @@ class PrepareCancelOrderResponse PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareCancelOrderResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline StatisticsResponse* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareCancelOrderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + StatisticsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareCancelOrderResponse& from); - void MergeFrom(const PrepareCancelOrderResponse& from); + void CopyFrom(const StatisticsResponse& from); + void MergeFrom(const StatisticsResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2242,13 +1601,13 @@ class PrepareCancelOrderResponse PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareCancelOrderResponse* other); + void InternalSwap(StatisticsResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareCancelOrderResponse"; + return "api.v1.StatisticsResponse"; } protected: - explicit PrepareCancelOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StatisticsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2268,54 +1627,56 @@ class PrepareCancelOrderResponse PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kBlobFieldNumber = 1, + kStatisticsFieldNumber = 1, }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); + // .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + bool has_statistics() const; + private: + bool _internal_has_statistics() const; + public: + void clear_statistics(); + const ::api::v1::Statistics& statistics() const; + ::api::v1::Statistics* release_statistics(); + ::api::v1::Statistics* mutable_statistics(); + void set_allocated_statistics(::api::v1::Statistics* statistics); private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); + const ::api::v1::Statistics& _internal_statistics() const; + ::api::v1::Statistics* _internal_mutable_statistics(); public: + void unsafe_arena_set_allocated_statistics( + ::api::v1::Statistics* statistics); + ::api::v1::Statistics* unsafe_arena_release_statistics(); - // @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderResponse) + // @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; + ::api::v1::Statistics* statistics_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareAmendOrderResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareAmendOrderResponse) */ { +class Statistics PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.Statistics) */ { public: - inline PrepareAmendOrderResponse() : PrepareAmendOrderResponse(nullptr) {} - virtual ~PrepareAmendOrderResponse(); + inline Statistics() : Statistics(nullptr) {} + virtual ~Statistics(); - PrepareAmendOrderResponse(const PrepareAmendOrderResponse& from); - PrepareAmendOrderResponse(PrepareAmendOrderResponse&& from) noexcept - : PrepareAmendOrderResponse() { + Statistics(const Statistics& from); + Statistics(Statistics&& from) noexcept + : Statistics() { *this = ::std::move(from); } - inline PrepareAmendOrderResponse& operator=(const PrepareAmendOrderResponse& from) { + inline Statistics& operator=(const Statistics& from) { CopyFrom(from); return *this; } - inline PrepareAmendOrderResponse& operator=(PrepareAmendOrderResponse&& from) noexcept { + inline Statistics& operator=(Statistics&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2333,19 +1694,19 @@ class PrepareAmendOrderResponse PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareAmendOrderResponse& default_instance(); + static const Statistics& default_instance(); - static inline const PrepareAmendOrderResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareAmendOrderResponse_default_instance_); + static inline const Statistics* internal_default_instance() { + return reinterpret_cast( + &_Statistics_default_instance_); } static constexpr int kIndexInFileMessages = 10; - friend void swap(PrepareAmendOrderResponse& a, PrepareAmendOrderResponse& b) { + friend void swap(Statistics& a, Statistics& b) { a.Swap(&b); } - inline void Swap(PrepareAmendOrderResponse* other) { + inline void Swap(Statistics* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2353,7 +1714,7 @@ class PrepareAmendOrderResponse PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareAmendOrderResponse* other) { + void UnsafeArenaSwap(Statistics* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2361,17 +1722,17 @@ class PrepareAmendOrderResponse PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareAmendOrderResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline Statistics* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareAmendOrderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Statistics* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareAmendOrderResponse& from); - void MergeFrom(const PrepareAmendOrderResponse& from); + void CopyFrom(const Statistics& from); + void MergeFrom(const Statistics& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2385,13 +1746,13 @@ class PrepareAmendOrderResponse PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareAmendOrderResponse* other); + void InternalSwap(Statistics* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareAmendOrderResponse"; + return "api.v1.Statistics"; } protected: - explicit PrepareAmendOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Statistics(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2411,344 +1772,444 @@ class PrepareAmendOrderResponse PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kBlobFieldNumber = 1, + kGenesisTimeFieldNumber = 4, + kCurrentTimeFieldNumber = 5, + kVegaTimeFieldNumber = 6, + kAppVersionHashFieldNumber = 28, + kAppVersionFieldNumber = 29, + kChainVersionFieldNumber = 30, + kUptimeFieldNumber = 32, + kChainIdFieldNumber = 33, + kBlockHeightFieldNumber = 1, + kBacklogLengthFieldNumber = 2, + kTotalPeersFieldNumber = 3, + kTxPerBlockFieldNumber = 8, + kAverageTxBytesFieldNumber = 9, + kAverageOrdersPerBlockFieldNumber = 10, + kTradesPerSecondFieldNumber = 11, + kOrdersPerSecondFieldNumber = 12, + kTotalMarketsFieldNumber = 13, + kStatusFieldNumber = 7, + kOrderSubscriptionsFieldNumber = 21, + kTotalAmendOrderFieldNumber = 16, + kTotalCancelOrderFieldNumber = 17, + kTotalCreateOrderFieldNumber = 18, + kTotalOrdersFieldNumber = 19, + kTotalTradesFieldNumber = 20, + kTradeSubscriptionsFieldNumber = 22, + kCandleSubscriptionsFieldNumber = 23, + kMarketDepthSubscriptionsFieldNumber = 24, + kPositionsSubscriptionsFieldNumber = 25, + kAccountSubscriptionsFieldNumber = 26, + kMarketDataSubscriptionsFieldNumber = 27, + kBlockDurationFieldNumber = 31, + kMarketDepthUpdatesSubscriptionsFieldNumber = 34, }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); + // string genesis_time = 4 [json_name = "genesisTime"]; + void clear_genesis_time(); + const std::string& genesis_time() const; + void set_genesis_time(const std::string& value); + void set_genesis_time(std::string&& value); + void set_genesis_time(const char* value); + void set_genesis_time(const char* value, size_t size); + std::string* mutable_genesis_time(); + std::string* release_genesis_time(); + void set_allocated_genesis_time(std::string* genesis_time); private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); + const std::string& _internal_genesis_time() const; + void _internal_set_genesis_time(const std::string& value); + std::string* _internal_mutable_genesis_time(); public: - // @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderResponse) - private: - class _Internal; + // string current_time = 5 [json_name = "currentTime"]; + void clear_current_time(); + const std::string& current_time() const; + void set_current_time(const std::string& value); + void set_current_time(std::string&& value); + void set_current_time(const char* value); + void set_current_time(const char* value, size_t size); + std::string* mutable_current_time(); + std::string* release_current_time(); + void set_allocated_current_time(std::string* current_time); + private: + const std::string& _internal_current_time() const; + void _internal_set_current_time(const std::string& value); + std::string* _internal_mutable_current_time(); + public: - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- + // string vega_time = 6 [json_name = "vegaTime"]; + void clear_vega_time(); + const std::string& vega_time() const; + void set_vega_time(const std::string& value); + void set_vega_time(std::string&& value); + void set_vega_time(const char* value); + void set_vega_time(const char* value, size_t size); + std::string* mutable_vega_time(); + std::string* release_vega_time(); + void set_allocated_vega_time(std::string* vega_time); + private: + const std::string& _internal_vega_time() const; + void _internal_set_vega_time(const std::string& value); + std::string* _internal_mutable_vega_time(); + public: -class PrepareSubmitOrderRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareSubmitOrderRequest) */ { - public: - inline PrepareSubmitOrderRequest() : PrepareSubmitOrderRequest(nullptr) {} - virtual ~PrepareSubmitOrderRequest(); + // string app_version_hash = 28 [json_name = "appVersionHash"]; + void clear_app_version_hash(); + const std::string& app_version_hash() const; + void set_app_version_hash(const std::string& value); + void set_app_version_hash(std::string&& value); + void set_app_version_hash(const char* value); + void set_app_version_hash(const char* value, size_t size); + std::string* mutable_app_version_hash(); + std::string* release_app_version_hash(); + void set_allocated_app_version_hash(std::string* app_version_hash); + private: + const std::string& _internal_app_version_hash() const; + void _internal_set_app_version_hash(const std::string& value); + std::string* _internal_mutable_app_version_hash(); + public: + + // string app_version = 29 [json_name = "appVersion"]; + void clear_app_version(); + const std::string& app_version() const; + void set_app_version(const std::string& value); + void set_app_version(std::string&& value); + void set_app_version(const char* value); + void set_app_version(const char* value, size_t size); + std::string* mutable_app_version(); + std::string* release_app_version(); + void set_allocated_app_version(std::string* app_version); + private: + const std::string& _internal_app_version() const; + void _internal_set_app_version(const std::string& value); + std::string* _internal_mutable_app_version(); + public: + + // string chain_version = 30 [json_name = "chainVersion"]; + void clear_chain_version(); + const std::string& chain_version() const; + void set_chain_version(const std::string& value); + void set_chain_version(std::string&& value); + void set_chain_version(const char* value); + void set_chain_version(const char* value, size_t size); + std::string* mutable_chain_version(); + std::string* release_chain_version(); + void set_allocated_chain_version(std::string* chain_version); + private: + const std::string& _internal_chain_version() const; + void _internal_set_chain_version(const std::string& value); + std::string* _internal_mutable_chain_version(); + public: + + // string uptime = 32 [json_name = "uptime"]; + void clear_uptime(); + const std::string& uptime() const; + void set_uptime(const std::string& value); + void set_uptime(std::string&& value); + void set_uptime(const char* value); + void set_uptime(const char* value, size_t size); + std::string* mutable_uptime(); + std::string* release_uptime(); + void set_allocated_uptime(std::string* uptime); + private: + const std::string& _internal_uptime() const; + void _internal_set_uptime(const std::string& value); + std::string* _internal_mutable_uptime(); + public: - PrepareSubmitOrderRequest(const PrepareSubmitOrderRequest& from); - PrepareSubmitOrderRequest(PrepareSubmitOrderRequest&& from) noexcept - : PrepareSubmitOrderRequest() { - *this = ::std::move(from); - } + // string chain_id = 33 [json_name = "chainId"]; + void clear_chain_id(); + const std::string& chain_id() const; + void set_chain_id(const std::string& value); + void set_chain_id(std::string&& value); + void set_chain_id(const char* value); + void set_chain_id(const char* value, size_t size); + std::string* mutable_chain_id(); + std::string* release_chain_id(); + void set_allocated_chain_id(std::string* chain_id); + private: + const std::string& _internal_chain_id() const; + void _internal_set_chain_id(const std::string& value); + std::string* _internal_mutable_chain_id(); + public: - inline PrepareSubmitOrderRequest& operator=(const PrepareSubmitOrderRequest& from) { - CopyFrom(from); - return *this; - } - inline PrepareSubmitOrderRequest& operator=(PrepareSubmitOrderRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } + // uint64 block_height = 1 [json_name = "blockHeight"]; + void clear_block_height(); + ::PROTOBUF_NAMESPACE_ID::uint64 block_height() const; + void set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_height() const; + void _internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareSubmitOrderRequest& default_instance(); - - static inline const PrepareSubmitOrderRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareSubmitOrderRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(PrepareSubmitOrderRequest& a, PrepareSubmitOrderRequest& b) { - a.Swap(&b); - } - inline void Swap(PrepareSubmitOrderRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareSubmitOrderRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareSubmitOrderRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareSubmitOrderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareSubmitOrderRequest& from); - void MergeFrom(const PrepareSubmitOrderRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareSubmitOrderRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareSubmitOrderRequest"; - } - protected: - explicit PrepareSubmitOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + // uint64 backlog_length = 2 [json_name = "backlogLength"]; + void clear_backlog_length(); + ::PROTOBUF_NAMESPACE_ID::uint64 backlog_length() const; + void set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_backlog_length() const; + void _internal_set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + // uint64 total_peers = 3 [json_name = "totalPeers"]; + void clear_total_peers(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_peers() const; + void set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_peers() const; + void _internal_set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubmissionFieldNumber = 1, - }; - // .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - bool has_submission() const; + // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + void clear_tx_per_block(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_per_block() const; + void set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - bool _internal_has_submission() const; + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_per_block() const; + void _internal_set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void clear_submission(); - const ::vega::commands::v1::OrderSubmission& submission() const; - ::vega::commands::v1::OrderSubmission* release_submission(); - ::vega::commands::v1::OrderSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::OrderSubmission* submission); + + // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + void clear_average_tx_bytes(); + ::PROTOBUF_NAMESPACE_ID::uint64 average_tx_bytes() const; + void set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::vega::commands::v1::OrderSubmission& _internal_submission() const; - ::vega::commands::v1::OrderSubmission* _internal_mutable_submission(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_average_tx_bytes() const; + void _internal_set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::OrderSubmission* submission); - ::vega::commands::v1::OrderSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderRequest) - private: - class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::commands::v1::OrderSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- + // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + void clear_average_orders_per_block(); + ::PROTOBUF_NAMESPACE_ID::uint64 average_orders_per_block() const; + void set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_average_orders_per_block() const; + void _internal_set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: -class PrepareCancelOrderRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareCancelOrderRequest) */ { - public: - inline PrepareCancelOrderRequest() : PrepareCancelOrderRequest(nullptr) {} - virtual ~PrepareCancelOrderRequest(); + // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + void clear_trades_per_second(); + ::PROTOBUF_NAMESPACE_ID::uint64 trades_per_second() const; + void set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_trades_per_second() const; + void _internal_set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - PrepareCancelOrderRequest(const PrepareCancelOrderRequest& from); - PrepareCancelOrderRequest(PrepareCancelOrderRequest&& from) noexcept - : PrepareCancelOrderRequest() { - *this = ::std::move(from); - } + // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + void clear_orders_per_second(); + ::PROTOBUF_NAMESPACE_ID::uint64 orders_per_second() const; + void set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_orders_per_second() const; + void _internal_set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - inline PrepareCancelOrderRequest& operator=(const PrepareCancelOrderRequest& from) { - CopyFrom(from); - return *this; - } - inline PrepareCancelOrderRequest& operator=(PrepareCancelOrderRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } + // uint64 total_markets = 13 [json_name = "totalMarkets"]; + void clear_total_markets(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_markets() const; + void set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_markets() const; + void _internal_set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareCancelOrderRequest& default_instance(); + // .vega.ChainStatus status = 7 [json_name = "status"]; + void clear_status(); + ::vega::ChainStatus status() const; + void set_status(::vega::ChainStatus value); + private: + ::vega::ChainStatus _internal_status() const; + void _internal_set_status(::vega::ChainStatus value); + public: - static inline const PrepareCancelOrderRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareCancelOrderRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; + // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + void clear_order_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 order_subscriptions() const; + void set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_order_subscriptions() const; + void _internal_set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: - friend void swap(PrepareCancelOrderRequest& a, PrepareCancelOrderRequest& b) { - a.Swap(&b); - } - inline void Swap(PrepareCancelOrderRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareCancelOrderRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } + // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + void clear_total_amend_order(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_amend_order() const; + void set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_amend_order() const; + void _internal_set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - // implements Message ---------------------------------------------- + // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + void clear_total_cancel_order(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_cancel_order() const; + void set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_cancel_order() const; + void _internal_set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - inline PrepareCancelOrderRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + void clear_total_create_order(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_create_order() const; + void set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_create_order() const; + void _internal_set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - PrepareCancelOrderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareCancelOrderRequest& from); - void MergeFrom(const PrepareCancelOrderRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + // uint64 total_orders = 19 [json_name = "totalOrders"]; + void clear_total_orders(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_orders() const; + void set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_orders() const; + void _internal_set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + // uint64 total_trades = 20 [json_name = "totalTrades"]; + void clear_total_trades(); + ::PROTOBUF_NAMESPACE_ID::uint64 total_trades() const; + void set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_trades() const; + void _internal_set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + void clear_trade_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 trade_subscriptions() const; + void set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareCancelOrderRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareCancelOrderRequest"; - } - protected: - explicit PrepareCancelOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_trade_subscriptions() const; + void _internal_set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + void clear_candle_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 candle_subscriptions() const; + void set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_candle_subscriptions() const; + void _internal_set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + void clear_market_depth_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_subscriptions() const; + void set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_depth_subscriptions() const; + void _internal_set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + void clear_positions_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 positions_subscriptions() const; + void set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_positions_subscriptions() const; + void _internal_set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - // nested types ---------------------------------------------------- + // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + void clear_account_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 account_subscriptions() const; + void set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_account_subscriptions() const; + void _internal_set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: - // accessors ------------------------------------------------------- + // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + void clear_market_data_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 market_data_subscriptions() const; + void set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_data_subscriptions() const; + void _internal_set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: - enum : int { - kCancellationFieldNumber = 1, - }; - // .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - bool has_cancellation() const; + // uint64 block_duration = 31 [json_name = "blockDuration"]; + void clear_block_duration(); + ::PROTOBUF_NAMESPACE_ID::uint64 block_duration() const; + void set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - bool _internal_has_cancellation() const; + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_duration() const; + void _internal_set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void clear_cancellation(); - const ::vega::commands::v1::OrderCancellation& cancellation() const; - ::vega::commands::v1::OrderCancellation* release_cancellation(); - ::vega::commands::v1::OrderCancellation* mutable_cancellation(); - void set_allocated_cancellation(::vega::commands::v1::OrderCancellation* cancellation); + + // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + void clear_market_depth_updates_subscriptions(); + ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_updates_subscriptions() const; + void set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - const ::vega::commands::v1::OrderCancellation& _internal_cancellation() const; - ::vega::commands::v1::OrderCancellation* _internal_mutable_cancellation(); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_depth_updates_subscriptions() const; + void _internal_set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - void unsafe_arena_set_allocated_cancellation( - ::vega::commands::v1::OrderCancellation* cancellation); - ::vega::commands::v1::OrderCancellation* unsafe_arena_release_cancellation(); - // @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderRequest) + // @@protoc_insertion_point(class_scope:api.v1.Statistics) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::vega::commands::v1::OrderCancellation* cancellation_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr genesis_time_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_time_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_time_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_hash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uptime_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 block_height_; + ::PROTOBUF_NAMESPACE_ID::uint64 backlog_length_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_peers_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_per_block_; + ::PROTOBUF_NAMESPACE_ID::uint64 average_tx_bytes_; + ::PROTOBUF_NAMESPACE_ID::uint64 average_orders_per_block_; + ::PROTOBUF_NAMESPACE_ID::uint64 trades_per_second_; + ::PROTOBUF_NAMESPACE_ID::uint64 orders_per_second_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_markets_; + int status_; + ::PROTOBUF_NAMESPACE_ID::uint32 order_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_amend_order_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_cancel_order_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_create_order_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_orders_; + ::PROTOBUF_NAMESPACE_ID::uint64 total_trades_; + ::PROTOBUF_NAMESPACE_ID::uint32 trade_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint32 candle_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint32 positions_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint32 account_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint32 market_data_subscriptions_; + ::PROTOBUF_NAMESPACE_ID::uint64 block_duration_; + ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_updates_subscriptions_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class PrepareAmendOrderRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareAmendOrderRequest) */ { +class LastBlockHeightRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastBlockHeightRequest) */ { public: - inline PrepareAmendOrderRequest() : PrepareAmendOrderRequest(nullptr) {} - virtual ~PrepareAmendOrderRequest(); + inline LastBlockHeightRequest() : LastBlockHeightRequest(nullptr) {} + virtual ~LastBlockHeightRequest(); - PrepareAmendOrderRequest(const PrepareAmendOrderRequest& from); - PrepareAmendOrderRequest(PrepareAmendOrderRequest&& from) noexcept - : PrepareAmendOrderRequest() { + LastBlockHeightRequest(const LastBlockHeightRequest& from); + LastBlockHeightRequest(LastBlockHeightRequest&& from) noexcept + : LastBlockHeightRequest() { *this = ::std::move(from); } - inline PrepareAmendOrderRequest& operator=(const PrepareAmendOrderRequest& from) { + inline LastBlockHeightRequest& operator=(const LastBlockHeightRequest& from) { CopyFrom(from); return *this; } - inline PrepareAmendOrderRequest& operator=(PrepareAmendOrderRequest&& from) noexcept { + inline LastBlockHeightRequest& operator=(LastBlockHeightRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2766,19 +2227,19 @@ class PrepareAmendOrderRequest PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PrepareAmendOrderRequest& default_instance(); + static const LastBlockHeightRequest& default_instance(); - static inline const PrepareAmendOrderRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareAmendOrderRequest_default_instance_); + static inline const LastBlockHeightRequest* internal_default_instance() { + return reinterpret_cast( + &_LastBlockHeightRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 11; - friend void swap(PrepareAmendOrderRequest& a, PrepareAmendOrderRequest& b) { + friend void swap(LastBlockHeightRequest& a, LastBlockHeightRequest& b) { a.Swap(&b); } - inline void Swap(PrepareAmendOrderRequest* other) { + inline void Swap(LastBlockHeightRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2786,7 +2247,7 @@ class PrepareAmendOrderRequest PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareAmendOrderRequest* other) { + void UnsafeArenaSwap(LastBlockHeightRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2794,17 +2255,17 @@ class PrepareAmendOrderRequest PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PrepareAmendOrderRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline LastBlockHeightRequest* New() const final { + return CreateMaybeMessage(nullptr); } - PrepareAmendOrderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LastBlockHeightRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareAmendOrderRequest& from); - void MergeFrom(const PrepareAmendOrderRequest& from); + void CopyFrom(const LastBlockHeightRequest& from); + void MergeFrom(const LastBlockHeightRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2818,13 +2279,13 @@ class PrepareAmendOrderRequest PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PrepareAmendOrderRequest* other); + void InternalSwap(LastBlockHeightRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareAmendOrderRequest"; + return "api.v1.LastBlockHeightRequest"; } protected: - explicit PrepareAmendOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LastBlockHeightRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2843,57 +2304,35 @@ class PrepareAmendOrderRequest PROTOBUF_FINAL : // accessors ------------------------------------------------------- - enum : int { - kAmendmentFieldNumber = 1, - }; - // .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - bool has_amendment() const; - private: - bool _internal_has_amendment() const; - public: - void clear_amendment(); - const ::vega::commands::v1::OrderAmendment& amendment() const; - ::vega::commands::v1::OrderAmendment* release_amendment(); - ::vega::commands::v1::OrderAmendment* mutable_amendment(); - void set_allocated_amendment(::vega::commands::v1::OrderAmendment* amendment); - private: - const ::vega::commands::v1::OrderAmendment& _internal_amendment() const; - ::vega::commands::v1::OrderAmendment* _internal_mutable_amendment(); - public: - void unsafe_arena_set_allocated_amendment( - ::vega::commands::v1::OrderAmendment* amendment); - ::vega::commands::v1::OrderAmendment* unsafe_arena_release_amendment(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderRequest) + // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::vega::commands::v1::OrderAmendment* amendment_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; // ------------------------------------------------------------------- -class AssetsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AssetsRequest) */ { +class LastBlockHeightResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastBlockHeightResponse) */ { public: - inline AssetsRequest() : AssetsRequest(nullptr) {} - virtual ~AssetsRequest(); + inline LastBlockHeightResponse() : LastBlockHeightResponse(nullptr) {} + virtual ~LastBlockHeightResponse(); - AssetsRequest(const AssetsRequest& from); - AssetsRequest(AssetsRequest&& from) noexcept - : AssetsRequest() { + LastBlockHeightResponse(const LastBlockHeightResponse& from); + LastBlockHeightResponse(LastBlockHeightResponse&& from) noexcept + : LastBlockHeightResponse() { *this = ::std::move(from); } - inline AssetsRequest& operator=(const AssetsRequest& from) { + inline LastBlockHeightResponse& operator=(const LastBlockHeightResponse& from) { CopyFrom(from); return *this; } - inline AssetsRequest& operator=(AssetsRequest&& from) noexcept { + inline LastBlockHeightResponse& operator=(LastBlockHeightResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2911,19 +2350,19 @@ class AssetsRequest PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const AssetsRequest& default_instance(); + static const LastBlockHeightResponse& default_instance(); - static inline const AssetsRequest* internal_default_instance() { - return reinterpret_cast( - &_AssetsRequest_default_instance_); + static inline const LastBlockHeightResponse* internal_default_instance() { + return reinterpret_cast( + &_LastBlockHeightResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 12; - friend void swap(AssetsRequest& a, AssetsRequest& b) { + friend void swap(LastBlockHeightResponse& a, LastBlockHeightResponse& b) { a.Swap(&b); } - inline void Swap(AssetsRequest* other) { + inline void Swap(LastBlockHeightResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2931,7 +2370,7 @@ class AssetsRequest PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AssetsRequest* other) { + void UnsafeArenaSwap(LastBlockHeightResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2939,17 +2378,17 @@ class AssetsRequest PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline AssetsRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline LastBlockHeightResponse* New() const final { + return CreateMaybeMessage(nullptr); } - AssetsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LastBlockHeightResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AssetsRequest& from); - void MergeFrom(const AssetsRequest& from); + void CopyFrom(const LastBlockHeightResponse& from); + void MergeFrom(const LastBlockHeightResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2963,13 +2402,13 @@ class AssetsRequest PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AssetsRequest* other); + void InternalSwap(LastBlockHeightResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AssetsRequest"; + return "api.v1.LastBlockHeightResponse"; } protected: - explicit AssetsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LastBlockHeightResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2988,30826 +2427,559 @@ class AssetsRequest PROTOBUF_FINAL : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:api.v1.AssetsRequest) + enum : int { + kHeightFieldNumber = 1, + }; + // uint64 height = 1 [json_name = "height"]; + void clear_height(); + ::PROTOBUF_NAMESPACE_ID::uint64 height() const; + void set_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_height() const; + void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 height_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_api_2ftrading_2eproto; }; -// ------------------------------------------------------------------- +// =================================================================== -class AssetsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AssetsResponse) */ { - public: - inline AssetsResponse() : AssetsResponse(nullptr) {} - virtual ~AssetsResponse(); - AssetsResponse(const AssetsResponse& from); - AssetsResponse(AssetsResponse&& from) noexcept - : AssetsResponse() { - *this = ::std::move(from); - } +// =================================================================== - inline AssetsResponse& operator=(const AssetsResponse& from) { - CopyFrom(from); - return *this; - } - inline AssetsResponse& operator=(AssetsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const AssetsResponse& default_instance(); - - static inline const AssetsResponse* internal_default_instance() { - return reinterpret_cast( - &_AssetsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(AssetsResponse& a, AssetsResponse& b) { - a.Swap(&b); - } - inline void Swap(AssetsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AssetsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AssetsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - AssetsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AssetsResponse& from); - void MergeFrom(const AssetsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AssetsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AssetsResponse"; - } - protected: - explicit AssetsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAssetsFieldNumber = 1, - }; - // repeated .vega.Asset assets = 1 [json_name = "assets"]; - int assets_size() const; - private: - int _internal_assets_size() const; - public: - void clear_assets(); - ::vega::Asset* mutable_assets(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >* - mutable_assets(); - private: - const ::vega::Asset& _internal_assets(int index) const; - ::vega::Asset* _internal_add_assets(); - public: - const ::vega::Asset& assets(int index) const; - ::vega::Asset* add_assets(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >& - assets() const; - - // @@protoc_insertion_point(class_scope:api.v1.AssetsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset > assets_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class AssetByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AssetByIDRequest) */ { - public: - inline AssetByIDRequest() : AssetByIDRequest(nullptr) {} - virtual ~AssetByIDRequest(); - - AssetByIDRequest(const AssetByIDRequest& from); - AssetByIDRequest(AssetByIDRequest&& from) noexcept - : AssetByIDRequest() { - *this = ::std::move(from); - } - - inline AssetByIDRequest& operator=(const AssetByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline AssetByIDRequest& operator=(AssetByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const AssetByIDRequest& default_instance(); - - static inline const AssetByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_AssetByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(AssetByIDRequest& a, AssetByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(AssetByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AssetByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AssetByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - AssetByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AssetByIDRequest& from); - void MergeFrom(const AssetByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AssetByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AssetByIDRequest"; - } - protected: - explicit AssetByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.AssetByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class AssetByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AssetByIDResponse) */ { - public: - inline AssetByIDResponse() : AssetByIDResponse(nullptr) {} - virtual ~AssetByIDResponse(); - - AssetByIDResponse(const AssetByIDResponse& from); - AssetByIDResponse(AssetByIDResponse&& from) noexcept - : AssetByIDResponse() { - *this = ::std::move(from); - } - - inline AssetByIDResponse& operator=(const AssetByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline AssetByIDResponse& operator=(AssetByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const AssetByIDResponse& default_instance(); - - static inline const AssetByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_AssetByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(AssetByIDResponse& a, AssetByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(AssetByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AssetByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AssetByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - AssetByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AssetByIDResponse& from); - void MergeFrom(const AssetByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AssetByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AssetByIDResponse"; - } - protected: - explicit AssetByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAssetFieldNumber = 1, - }; - // .vega.Asset asset = 1 [json_name = "asset"]; - bool has_asset() const; - private: - bool _internal_has_asset() const; - public: - void clear_asset(); - const ::vega::Asset& asset() const; - ::vega::Asset* release_asset(); - ::vega::Asset* mutable_asset(); - void set_allocated_asset(::vega::Asset* asset); - private: - const ::vega::Asset& _internal_asset() const; - ::vega::Asset* _internal_mutable_asset(); - public: - void unsafe_arena_set_allocated_asset( - ::vega::Asset* asset); - ::vega::Asset* unsafe_arena_release_asset(); - - // @@protoc_insertion_point(class_scope:api.v1.AssetByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Asset* asset_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNodeSignaturesAggregateRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNodeSignaturesAggregateRequest) */ { - public: - inline GetNodeSignaturesAggregateRequest() : GetNodeSignaturesAggregateRequest(nullptr) {} - virtual ~GetNodeSignaturesAggregateRequest(); - - GetNodeSignaturesAggregateRequest(const GetNodeSignaturesAggregateRequest& from); - GetNodeSignaturesAggregateRequest(GetNodeSignaturesAggregateRequest&& from) noexcept - : GetNodeSignaturesAggregateRequest() { - *this = ::std::move(from); - } - - inline GetNodeSignaturesAggregateRequest& operator=(const GetNodeSignaturesAggregateRequest& from) { - CopyFrom(from); - return *this; - } - inline GetNodeSignaturesAggregateRequest& operator=(GetNodeSignaturesAggregateRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNodeSignaturesAggregateRequest& default_instance(); - - static inline const GetNodeSignaturesAggregateRequest* internal_default_instance() { - return reinterpret_cast( - &_GetNodeSignaturesAggregateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(GetNodeSignaturesAggregateRequest& a, GetNodeSignaturesAggregateRequest& b) { - a.Swap(&b); - } - inline void Swap(GetNodeSignaturesAggregateRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNodeSignaturesAggregateRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNodeSignaturesAggregateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNodeSignaturesAggregateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNodeSignaturesAggregateRequest& from); - void MergeFrom(const GetNodeSignaturesAggregateRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNodeSignaturesAggregateRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNodeSignaturesAggregateRequest"; - } - protected: - explicit GetNodeSignaturesAggregateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNodeSignaturesAggregateResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNodeSignaturesAggregateResponse) */ { - public: - inline GetNodeSignaturesAggregateResponse() : GetNodeSignaturesAggregateResponse(nullptr) {} - virtual ~GetNodeSignaturesAggregateResponse(); - - GetNodeSignaturesAggregateResponse(const GetNodeSignaturesAggregateResponse& from); - GetNodeSignaturesAggregateResponse(GetNodeSignaturesAggregateResponse&& from) noexcept - : GetNodeSignaturesAggregateResponse() { - *this = ::std::move(from); - } - - inline GetNodeSignaturesAggregateResponse& operator=(const GetNodeSignaturesAggregateResponse& from) { - CopyFrom(from); - return *this; - } - inline GetNodeSignaturesAggregateResponse& operator=(GetNodeSignaturesAggregateResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNodeSignaturesAggregateResponse& default_instance(); - - static inline const GetNodeSignaturesAggregateResponse* internal_default_instance() { - return reinterpret_cast( - &_GetNodeSignaturesAggregateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(GetNodeSignaturesAggregateResponse& a, GetNodeSignaturesAggregateResponse& b) { - a.Swap(&b); - } - inline void Swap(GetNodeSignaturesAggregateResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNodeSignaturesAggregateResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNodeSignaturesAggregateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNodeSignaturesAggregateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNodeSignaturesAggregateResponse& from); - void MergeFrom(const GetNodeSignaturesAggregateResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNodeSignaturesAggregateResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNodeSignaturesAggregateResponse"; - } - protected: - explicit GetNodeSignaturesAggregateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSignaturesFieldNumber = 1, - }; - // repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - int signatures_size() const; - private: - int _internal_signatures_size() const; - public: - void clear_signatures(); - ::vega::commands::v1::NodeSignature* mutable_signatures(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::commands::v1::NodeSignature >* - mutable_signatures(); - private: - const ::vega::commands::v1::NodeSignature& _internal_signatures(int index) const; - ::vega::commands::v1::NodeSignature* _internal_add_signatures(); - public: - const ::vega::commands::v1::NodeSignature& signatures(int index) const; - ::vega::commands::v1::NodeSignature* add_signatures(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::commands::v1::NodeSignature >& - signatures() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::commands::v1::NodeSignature > signatures_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OptionalProposalState PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OptionalProposalState) */ { - public: - inline OptionalProposalState() : OptionalProposalState(nullptr) {} - virtual ~OptionalProposalState(); - - OptionalProposalState(const OptionalProposalState& from); - OptionalProposalState(OptionalProposalState&& from) noexcept - : OptionalProposalState() { - *this = ::std::move(from); - } - - inline OptionalProposalState& operator=(const OptionalProposalState& from) { - CopyFrom(from); - return *this; - } - inline OptionalProposalState& operator=(OptionalProposalState&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OptionalProposalState& default_instance(); - - static inline const OptionalProposalState* internal_default_instance() { - return reinterpret_cast( - &_OptionalProposalState_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(OptionalProposalState& a, OptionalProposalState& b) { - a.Swap(&b); - } - inline void Swap(OptionalProposalState* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OptionalProposalState* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OptionalProposalState* New() const final { - return CreateMaybeMessage(nullptr); - } - - OptionalProposalState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OptionalProposalState& from); - void MergeFrom(const OptionalProposalState& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OptionalProposalState* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OptionalProposalState"; - } - protected: - explicit OptionalProposalState(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValueFieldNumber = 1, - }; - // .vega.Proposal.State value = 1 [json_name = "value"]; - void clear_value(); - ::vega::Proposal_State value() const; - void set_value(::vega::Proposal_State value); - private: - ::vega::Proposal_State _internal_value() const; - void _internal_set_value(::vega::Proposal_State value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OptionalProposalState) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - int value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalsRequest) */ { - public: - inline GetProposalsRequest() : GetProposalsRequest(nullptr) {} - virtual ~GetProposalsRequest(); - - GetProposalsRequest(const GetProposalsRequest& from); - GetProposalsRequest(GetProposalsRequest&& from) noexcept - : GetProposalsRequest() { - *this = ::std::move(from); - } - - inline GetProposalsRequest& operator=(const GetProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetProposalsRequest& operator=(GetProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalsRequest& default_instance(); - - static inline const GetProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(GetProposalsRequest& a, GetProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalsRequest& from); - void MergeFrom(const GetProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalsRequest"; - } - protected: - explicit GetProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSelectInStateFieldNumber = 1, - }; - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalsResponse) */ { - public: - inline GetProposalsResponse() : GetProposalsResponse(nullptr) {} - virtual ~GetProposalsResponse(); - - GetProposalsResponse(const GetProposalsResponse& from); - GetProposalsResponse(GetProposalsResponse&& from) noexcept - : GetProposalsResponse() { - *this = ::std::move(from); - } - - inline GetProposalsResponse& operator=(const GetProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetProposalsResponse& operator=(GetProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalsResponse& default_instance(); - - static inline const GetProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(GetProposalsResponse& a, GetProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalsResponse& from); - void MergeFrom(const GetProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalsResponse"; - } - protected: - explicit GetProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalsByPartyRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalsByPartyRequest) */ { - public: - inline GetProposalsByPartyRequest() : GetProposalsByPartyRequest(nullptr) {} - virtual ~GetProposalsByPartyRequest(); - - GetProposalsByPartyRequest(const GetProposalsByPartyRequest& from); - GetProposalsByPartyRequest(GetProposalsByPartyRequest&& from) noexcept - : GetProposalsByPartyRequest() { - *this = ::std::move(from); - } - - inline GetProposalsByPartyRequest& operator=(const GetProposalsByPartyRequest& from) { - CopyFrom(from); - return *this; - } - inline GetProposalsByPartyRequest& operator=(GetProposalsByPartyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalsByPartyRequest& default_instance(); - - static inline const GetProposalsByPartyRequest* internal_default_instance() { - return reinterpret_cast( - &_GetProposalsByPartyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(GetProposalsByPartyRequest& a, GetProposalsByPartyRequest& b) { - a.Swap(&b); - } - inline void Swap(GetProposalsByPartyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalsByPartyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalsByPartyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalsByPartyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalsByPartyRequest& from); - void MergeFrom(const GetProposalsByPartyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalsByPartyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalsByPartyRequest"; - } - protected: - explicit GetProposalsByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kSelectInStateFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalsByPartyResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalsByPartyResponse) */ { - public: - inline GetProposalsByPartyResponse() : GetProposalsByPartyResponse(nullptr) {} - virtual ~GetProposalsByPartyResponse(); - - GetProposalsByPartyResponse(const GetProposalsByPartyResponse& from); - GetProposalsByPartyResponse(GetProposalsByPartyResponse&& from) noexcept - : GetProposalsByPartyResponse() { - *this = ::std::move(from); - } - - inline GetProposalsByPartyResponse& operator=(const GetProposalsByPartyResponse& from) { - CopyFrom(from); - return *this; - } - inline GetProposalsByPartyResponse& operator=(GetProposalsByPartyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalsByPartyResponse& default_instance(); - - static inline const GetProposalsByPartyResponse* internal_default_instance() { - return reinterpret_cast( - &_GetProposalsByPartyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(GetProposalsByPartyResponse& a, GetProposalsByPartyResponse& b) { - a.Swap(&b); - } - inline void Swap(GetProposalsByPartyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalsByPartyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalsByPartyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalsByPartyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalsByPartyResponse& from); - void MergeFrom(const GetProposalsByPartyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalsByPartyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalsByPartyResponse"; - } - protected: - explicit GetProposalsByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetVotesByPartyRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVotesByPartyRequest) */ { - public: - inline GetVotesByPartyRequest() : GetVotesByPartyRequest(nullptr) {} - virtual ~GetVotesByPartyRequest(); - - GetVotesByPartyRequest(const GetVotesByPartyRequest& from); - GetVotesByPartyRequest(GetVotesByPartyRequest&& from) noexcept - : GetVotesByPartyRequest() { - *this = ::std::move(from); - } - - inline GetVotesByPartyRequest& operator=(const GetVotesByPartyRequest& from) { - CopyFrom(from); - return *this; - } - inline GetVotesByPartyRequest& operator=(GetVotesByPartyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetVotesByPartyRequest& default_instance(); - - static inline const GetVotesByPartyRequest* internal_default_instance() { - return reinterpret_cast( - &_GetVotesByPartyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(GetVotesByPartyRequest& a, GetVotesByPartyRequest& b) { - a.Swap(&b); - } - inline void Swap(GetVotesByPartyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetVotesByPartyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetVotesByPartyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVotesByPartyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetVotesByPartyRequest& from); - void MergeFrom(const GetVotesByPartyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetVotesByPartyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetVotesByPartyRequest"; - } - protected: - explicit GetVotesByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetVotesByPartyResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVotesByPartyResponse) */ { - public: - inline GetVotesByPartyResponse() : GetVotesByPartyResponse(nullptr) {} - virtual ~GetVotesByPartyResponse(); - - GetVotesByPartyResponse(const GetVotesByPartyResponse& from); - GetVotesByPartyResponse(GetVotesByPartyResponse&& from) noexcept - : GetVotesByPartyResponse() { - *this = ::std::move(from); - } - - inline GetVotesByPartyResponse& operator=(const GetVotesByPartyResponse& from) { - CopyFrom(from); - return *this; - } - inline GetVotesByPartyResponse& operator=(GetVotesByPartyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetVotesByPartyResponse& default_instance(); - - static inline const GetVotesByPartyResponse* internal_default_instance() { - return reinterpret_cast( - &_GetVotesByPartyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(GetVotesByPartyResponse& a, GetVotesByPartyResponse& b) { - a.Swap(&b); - } - inline void Swap(GetVotesByPartyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetVotesByPartyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetVotesByPartyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVotesByPartyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetVotesByPartyResponse& from); - void MergeFrom(const GetVotesByPartyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetVotesByPartyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetVotesByPartyResponse"; - } - protected: - explicit GetVotesByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVotesFieldNumber = 1, - }; - // repeated .vega.Vote votes = 1 [json_name = "votes"]; - int votes_size() const; - private: - int _internal_votes_size() const; - public: - void clear_votes(); - ::vega::Vote* mutable_votes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >* - mutable_votes(); - private: - const ::vega::Vote& _internal_votes(int index) const; - ::vega::Vote* _internal_add_votes(); - public: - const ::vega::Vote& votes(int index) const; - ::vega::Vote* add_votes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >& - votes() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote > votes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewMarketProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNewMarketProposalsRequest) */ { - public: - inline GetNewMarketProposalsRequest() : GetNewMarketProposalsRequest(nullptr) {} - virtual ~GetNewMarketProposalsRequest(); - - GetNewMarketProposalsRequest(const GetNewMarketProposalsRequest& from); - GetNewMarketProposalsRequest(GetNewMarketProposalsRequest&& from) noexcept - : GetNewMarketProposalsRequest() { - *this = ::std::move(from); - } - - inline GetNewMarketProposalsRequest& operator=(const GetNewMarketProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetNewMarketProposalsRequest& operator=(GetNewMarketProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNewMarketProposalsRequest& default_instance(); - - static inline const GetNewMarketProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetNewMarketProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(GetNewMarketProposalsRequest& a, GetNewMarketProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetNewMarketProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewMarketProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNewMarketProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNewMarketProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNewMarketProposalsRequest& from); - void MergeFrom(const GetNewMarketProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNewMarketProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNewMarketProposalsRequest"; - } - protected: - explicit GetNewMarketProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSelectInStateFieldNumber = 1, - }; - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewMarketProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNewMarketProposalsResponse) */ { - public: - inline GetNewMarketProposalsResponse() : GetNewMarketProposalsResponse(nullptr) {} - virtual ~GetNewMarketProposalsResponse(); - - GetNewMarketProposalsResponse(const GetNewMarketProposalsResponse& from); - GetNewMarketProposalsResponse(GetNewMarketProposalsResponse&& from) noexcept - : GetNewMarketProposalsResponse() { - *this = ::std::move(from); - } - - inline GetNewMarketProposalsResponse& operator=(const GetNewMarketProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetNewMarketProposalsResponse& operator=(GetNewMarketProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNewMarketProposalsResponse& default_instance(); - - static inline const GetNewMarketProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetNewMarketProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(GetNewMarketProposalsResponse& a, GetNewMarketProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetNewMarketProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewMarketProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNewMarketProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNewMarketProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNewMarketProposalsResponse& from); - void MergeFrom(const GetNewMarketProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNewMarketProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNewMarketProposalsResponse"; - } - protected: - explicit GetNewMarketProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetUpdateMarketProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetUpdateMarketProposalsRequest) */ { - public: - inline GetUpdateMarketProposalsRequest() : GetUpdateMarketProposalsRequest(nullptr) {} - virtual ~GetUpdateMarketProposalsRequest(); - - GetUpdateMarketProposalsRequest(const GetUpdateMarketProposalsRequest& from); - GetUpdateMarketProposalsRequest(GetUpdateMarketProposalsRequest&& from) noexcept - : GetUpdateMarketProposalsRequest() { - *this = ::std::move(from); - } - - inline GetUpdateMarketProposalsRequest& operator=(const GetUpdateMarketProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetUpdateMarketProposalsRequest& operator=(GetUpdateMarketProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetUpdateMarketProposalsRequest& default_instance(); - - static inline const GetUpdateMarketProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetUpdateMarketProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(GetUpdateMarketProposalsRequest& a, GetUpdateMarketProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetUpdateMarketProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetUpdateMarketProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetUpdateMarketProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetUpdateMarketProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetUpdateMarketProposalsRequest& from); - void MergeFrom(const GetUpdateMarketProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetUpdateMarketProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetUpdateMarketProposalsRequest"; - } - protected: - explicit GetUpdateMarketProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kSelectInStateFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetUpdateMarketProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetUpdateMarketProposalsResponse) */ { - public: - inline GetUpdateMarketProposalsResponse() : GetUpdateMarketProposalsResponse(nullptr) {} - virtual ~GetUpdateMarketProposalsResponse(); - - GetUpdateMarketProposalsResponse(const GetUpdateMarketProposalsResponse& from); - GetUpdateMarketProposalsResponse(GetUpdateMarketProposalsResponse&& from) noexcept - : GetUpdateMarketProposalsResponse() { - *this = ::std::move(from); - } - - inline GetUpdateMarketProposalsResponse& operator=(const GetUpdateMarketProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetUpdateMarketProposalsResponse& operator=(GetUpdateMarketProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetUpdateMarketProposalsResponse& default_instance(); - - static inline const GetUpdateMarketProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetUpdateMarketProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(GetUpdateMarketProposalsResponse& a, GetUpdateMarketProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetUpdateMarketProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetUpdateMarketProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetUpdateMarketProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetUpdateMarketProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetUpdateMarketProposalsResponse& from); - void MergeFrom(const GetUpdateMarketProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetUpdateMarketProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetUpdateMarketProposalsResponse"; - } - protected: - explicit GetUpdateMarketProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNetworkParametersProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNetworkParametersProposalsRequest) */ { - public: - inline GetNetworkParametersProposalsRequest() : GetNetworkParametersProposalsRequest(nullptr) {} - virtual ~GetNetworkParametersProposalsRequest(); - - GetNetworkParametersProposalsRequest(const GetNetworkParametersProposalsRequest& from); - GetNetworkParametersProposalsRequest(GetNetworkParametersProposalsRequest&& from) noexcept - : GetNetworkParametersProposalsRequest() { - *this = ::std::move(from); - } - - inline GetNetworkParametersProposalsRequest& operator=(const GetNetworkParametersProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetNetworkParametersProposalsRequest& operator=(GetNetworkParametersProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNetworkParametersProposalsRequest& default_instance(); - - static inline const GetNetworkParametersProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetNetworkParametersProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(GetNetworkParametersProposalsRequest& a, GetNetworkParametersProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetNetworkParametersProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNetworkParametersProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNetworkParametersProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNetworkParametersProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNetworkParametersProposalsRequest& from); - void MergeFrom(const GetNetworkParametersProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNetworkParametersProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNetworkParametersProposalsRequest"; - } - protected: - explicit GetNetworkParametersProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSelectInStateFieldNumber = 1, - }; - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNetworkParametersProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNetworkParametersProposalsResponse) */ { - public: - inline GetNetworkParametersProposalsResponse() : GetNetworkParametersProposalsResponse(nullptr) {} - virtual ~GetNetworkParametersProposalsResponse(); - - GetNetworkParametersProposalsResponse(const GetNetworkParametersProposalsResponse& from); - GetNetworkParametersProposalsResponse(GetNetworkParametersProposalsResponse&& from) noexcept - : GetNetworkParametersProposalsResponse() { - *this = ::std::move(from); - } - - inline GetNetworkParametersProposalsResponse& operator=(const GetNetworkParametersProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetNetworkParametersProposalsResponse& operator=(GetNetworkParametersProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNetworkParametersProposalsResponse& default_instance(); - - static inline const GetNetworkParametersProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetNetworkParametersProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(GetNetworkParametersProposalsResponse& a, GetNetworkParametersProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetNetworkParametersProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNetworkParametersProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNetworkParametersProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNetworkParametersProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNetworkParametersProposalsResponse& from); - void MergeFrom(const GetNetworkParametersProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNetworkParametersProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNetworkParametersProposalsResponse"; - } - protected: - explicit GetNetworkParametersProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewAssetProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNewAssetProposalsRequest) */ { - public: - inline GetNewAssetProposalsRequest() : GetNewAssetProposalsRequest(nullptr) {} - virtual ~GetNewAssetProposalsRequest(); - - GetNewAssetProposalsRequest(const GetNewAssetProposalsRequest& from); - GetNewAssetProposalsRequest(GetNewAssetProposalsRequest&& from) noexcept - : GetNewAssetProposalsRequest() { - *this = ::std::move(from); - } - - inline GetNewAssetProposalsRequest& operator=(const GetNewAssetProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetNewAssetProposalsRequest& operator=(GetNewAssetProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNewAssetProposalsRequest& default_instance(); - - static inline const GetNewAssetProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetNewAssetProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(GetNewAssetProposalsRequest& a, GetNewAssetProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetNewAssetProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewAssetProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNewAssetProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNewAssetProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNewAssetProposalsRequest& from); - void MergeFrom(const GetNewAssetProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNewAssetProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNewAssetProposalsRequest"; - } - protected: - explicit GetNewAssetProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSelectInStateFieldNumber = 1, - }; - // .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - bool has_select_in_state() const; - private: - bool _internal_has_select_in_state() const; - public: - void clear_select_in_state(); - const ::api::v1::OptionalProposalState& select_in_state() const; - ::api::v1::OptionalProposalState* release_select_in_state(); - ::api::v1::OptionalProposalState* mutable_select_in_state(); - void set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state); - private: - const ::api::v1::OptionalProposalState& _internal_select_in_state() const; - ::api::v1::OptionalProposalState* _internal_mutable_select_in_state(); - public: - void unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state); - ::api::v1::OptionalProposalState* unsafe_arena_release_select_in_state(); - - // @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::api::v1::OptionalProposalState* select_in_state_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewAssetProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetNewAssetProposalsResponse) */ { - public: - inline GetNewAssetProposalsResponse() : GetNewAssetProposalsResponse(nullptr) {} - virtual ~GetNewAssetProposalsResponse(); - - GetNewAssetProposalsResponse(const GetNewAssetProposalsResponse& from); - GetNewAssetProposalsResponse(GetNewAssetProposalsResponse&& from) noexcept - : GetNewAssetProposalsResponse() { - *this = ::std::move(from); - } - - inline GetNewAssetProposalsResponse& operator=(const GetNewAssetProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetNewAssetProposalsResponse& operator=(GetNewAssetProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetNewAssetProposalsResponse& default_instance(); - - static inline const GetNewAssetProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetNewAssetProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(GetNewAssetProposalsResponse& a, GetNewAssetProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetNewAssetProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewAssetProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetNewAssetProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetNewAssetProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetNewAssetProposalsResponse& from); - void MergeFrom(const GetNewAssetProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetNewAssetProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetNewAssetProposalsResponse"; - } - protected: - explicit GetNewAssetProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // repeated .vega.GovernanceData data = 1 [json_name = "data"]; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - ::vega::GovernanceData* mutable_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* - mutable_data(); - private: - const ::vega::GovernanceData& _internal_data(int index) const; - ::vega::GovernanceData* _internal_add_data(); - public: - const ::vega::GovernanceData& data(int index) const; - ::vega::GovernanceData* add_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& - data() const; - - // @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData > data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalByIDRequest) */ { - public: - inline GetProposalByIDRequest() : GetProposalByIDRequest(nullptr) {} - virtual ~GetProposalByIDRequest(); - - GetProposalByIDRequest(const GetProposalByIDRequest& from); - GetProposalByIDRequest(GetProposalByIDRequest&& from) noexcept - : GetProposalByIDRequest() { - *this = ::std::move(from); - } - - inline GetProposalByIDRequest& operator=(const GetProposalByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline GetProposalByIDRequest& operator=(GetProposalByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalByIDRequest& default_instance(); - - static inline const GetProposalByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_GetProposalByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(GetProposalByIDRequest& a, GetProposalByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(GetProposalByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalByIDRequest& from); - void MergeFrom(const GetProposalByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalByIDRequest"; - } - protected: - explicit GetProposalByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kProposalIdFieldNumber = 1, - }; - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - void clear_proposal_id(); - const std::string& proposal_id() const; - void set_proposal_id(const std::string& value); - void set_proposal_id(std::string&& value); - void set_proposal_id(const char* value); - void set_proposal_id(const char* value, size_t size); - std::string* mutable_proposal_id(); - std::string* release_proposal_id(); - void set_allocated_proposal_id(std::string* proposal_id); - private: - const std::string& _internal_proposal_id() const; - void _internal_set_proposal_id(const std::string& value); - std::string* _internal_mutable_proposal_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposal_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalByIDResponse) */ { - public: - inline GetProposalByIDResponse() : GetProposalByIDResponse(nullptr) {} - virtual ~GetProposalByIDResponse(); - - GetProposalByIDResponse(const GetProposalByIDResponse& from); - GetProposalByIDResponse(GetProposalByIDResponse&& from) noexcept - : GetProposalByIDResponse() { - *this = ::std::move(from); - } - - inline GetProposalByIDResponse& operator=(const GetProposalByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline GetProposalByIDResponse& operator=(GetProposalByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalByIDResponse& default_instance(); - - static inline const GetProposalByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_GetProposalByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(GetProposalByIDResponse& a, GetProposalByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(GetProposalByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalByIDResponse& from); - void MergeFrom(const GetProposalByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalByIDResponse"; - } - protected: - explicit GetProposalByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // .vega.GovernanceData data = 1 [json_name = "data"]; - bool has_data() const; - private: - bool _internal_has_data() const; - public: - void clear_data(); - const ::vega::GovernanceData& data() const; - ::vega::GovernanceData* release_data(); - ::vega::GovernanceData* mutable_data(); - void set_allocated_data(::vega::GovernanceData* data); - private: - const ::vega::GovernanceData& _internal_data() const; - ::vega::GovernanceData* _internal_mutable_data(); - public: - void unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data); - ::vega::GovernanceData* unsafe_arena_release_data(); - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::GovernanceData* data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalByReferenceRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalByReferenceRequest) */ { - public: - inline GetProposalByReferenceRequest() : GetProposalByReferenceRequest(nullptr) {} - virtual ~GetProposalByReferenceRequest(); - - GetProposalByReferenceRequest(const GetProposalByReferenceRequest& from); - GetProposalByReferenceRequest(GetProposalByReferenceRequest&& from) noexcept - : GetProposalByReferenceRequest() { - *this = ::std::move(from); - } - - inline GetProposalByReferenceRequest& operator=(const GetProposalByReferenceRequest& from) { - CopyFrom(from); - return *this; - } - inline GetProposalByReferenceRequest& operator=(GetProposalByReferenceRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalByReferenceRequest& default_instance(); - - static inline const GetProposalByReferenceRequest* internal_default_instance() { - return reinterpret_cast( - &_GetProposalByReferenceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(GetProposalByReferenceRequest& a, GetProposalByReferenceRequest& b) { - a.Swap(&b); - } - inline void Swap(GetProposalByReferenceRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalByReferenceRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalByReferenceRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalByReferenceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalByReferenceRequest& from); - void MergeFrom(const GetProposalByReferenceRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalByReferenceRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalByReferenceRequest"; - } - protected: - explicit GetProposalByReferenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferenceFieldNumber = 1, - }; - // string reference = 1 [json_name = "reference", (.validator.field) = { - void clear_reference(); - const std::string& reference() const; - void set_reference(const std::string& value); - void set_reference(std::string&& value); - void set_reference(const char* value); - void set_reference(const char* value, size_t size); - std::string* mutable_reference(); - std::string* release_reference(); - void set_allocated_reference(std::string* reference); - private: - const std::string& _internal_reference() const; - void _internal_set_reference(const std::string& value); - std::string* _internal_mutable_reference(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetProposalByReferenceResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetProposalByReferenceResponse) */ { - public: - inline GetProposalByReferenceResponse() : GetProposalByReferenceResponse(nullptr) {} - virtual ~GetProposalByReferenceResponse(); - - GetProposalByReferenceResponse(const GetProposalByReferenceResponse& from); - GetProposalByReferenceResponse(GetProposalByReferenceResponse&& from) noexcept - : GetProposalByReferenceResponse() { - *this = ::std::move(from); - } - - inline GetProposalByReferenceResponse& operator=(const GetProposalByReferenceResponse& from) { - CopyFrom(from); - return *this; - } - inline GetProposalByReferenceResponse& operator=(GetProposalByReferenceResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetProposalByReferenceResponse& default_instance(); - - static inline const GetProposalByReferenceResponse* internal_default_instance() { - return reinterpret_cast( - &_GetProposalByReferenceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(GetProposalByReferenceResponse& a, GetProposalByReferenceResponse& b) { - a.Swap(&b); - } - inline void Swap(GetProposalByReferenceResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetProposalByReferenceResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetProposalByReferenceResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetProposalByReferenceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetProposalByReferenceResponse& from); - void MergeFrom(const GetProposalByReferenceResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetProposalByReferenceResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetProposalByReferenceResponse"; - } - protected: - explicit GetProposalByReferenceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // .vega.GovernanceData data = 1 [json_name = "data"]; - bool has_data() const; - private: - bool _internal_has_data() const; - public: - void clear_data(); - const ::vega::GovernanceData& data() const; - ::vega::GovernanceData* release_data(); - ::vega::GovernanceData* mutable_data(); - void set_allocated_data(::vega::GovernanceData* data); - private: - const ::vega::GovernanceData& _internal_data() const; - ::vega::GovernanceData* _internal_mutable_data(); - public: - void unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data); - ::vega::GovernanceData* unsafe_arena_release_data(); - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::GovernanceData* data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveGovernanceRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveGovernanceRequest) */ { - public: - inline ObserveGovernanceRequest() : ObserveGovernanceRequest(nullptr) {} - virtual ~ObserveGovernanceRequest(); - - ObserveGovernanceRequest(const ObserveGovernanceRequest& from); - ObserveGovernanceRequest(ObserveGovernanceRequest&& from) noexcept - : ObserveGovernanceRequest() { - *this = ::std::move(from); - } - - inline ObserveGovernanceRequest& operator=(const ObserveGovernanceRequest& from) { - CopyFrom(from); - return *this; - } - inline ObserveGovernanceRequest& operator=(ObserveGovernanceRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveGovernanceRequest& default_instance(); - - static inline const ObserveGovernanceRequest* internal_default_instance() { - return reinterpret_cast( - &_ObserveGovernanceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(ObserveGovernanceRequest& a, ObserveGovernanceRequest& b) { - a.Swap(&b); - } - inline void Swap(ObserveGovernanceRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveGovernanceRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveGovernanceRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveGovernanceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveGovernanceRequest& from); - void MergeFrom(const ObserveGovernanceRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveGovernanceRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveGovernanceRequest"; - } - protected: - explicit ObserveGovernanceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveGovernanceResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveGovernanceResponse) */ { - public: - inline ObserveGovernanceResponse() : ObserveGovernanceResponse(nullptr) {} - virtual ~ObserveGovernanceResponse(); - - ObserveGovernanceResponse(const ObserveGovernanceResponse& from); - ObserveGovernanceResponse(ObserveGovernanceResponse&& from) noexcept - : ObserveGovernanceResponse() { - *this = ::std::move(from); - } - - inline ObserveGovernanceResponse& operator=(const ObserveGovernanceResponse& from) { - CopyFrom(from); - return *this; - } - inline ObserveGovernanceResponse& operator=(ObserveGovernanceResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveGovernanceResponse& default_instance(); - - static inline const ObserveGovernanceResponse* internal_default_instance() { - return reinterpret_cast( - &_ObserveGovernanceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(ObserveGovernanceResponse& a, ObserveGovernanceResponse& b) { - a.Swap(&b); - } - inline void Swap(ObserveGovernanceResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveGovernanceResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveGovernanceResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveGovernanceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveGovernanceResponse& from); - void MergeFrom(const ObserveGovernanceResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveGovernanceResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveGovernanceResponse"; - } - protected: - explicit ObserveGovernanceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // .vega.GovernanceData data = 1 [json_name = "data"]; - bool has_data() const; - private: - bool _internal_has_data() const; - public: - void clear_data(); - const ::vega::GovernanceData& data() const; - ::vega::GovernanceData* release_data(); - ::vega::GovernanceData* mutable_data(); - void set_allocated_data(::vega::GovernanceData* data); - private: - const ::vega::GovernanceData& _internal_data() const; - ::vega::GovernanceData* _internal_mutable_data(); - public: - void unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data); - ::vega::GovernanceData* unsafe_arena_release_data(); - - // @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::GovernanceData* data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObservePartyProposalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObservePartyProposalsRequest) */ { - public: - inline ObservePartyProposalsRequest() : ObservePartyProposalsRequest(nullptr) {} - virtual ~ObservePartyProposalsRequest(); - - ObservePartyProposalsRequest(const ObservePartyProposalsRequest& from); - ObservePartyProposalsRequest(ObservePartyProposalsRequest&& from) noexcept - : ObservePartyProposalsRequest() { - *this = ::std::move(from); - } - - inline ObservePartyProposalsRequest& operator=(const ObservePartyProposalsRequest& from) { - CopyFrom(from); - return *this; - } - inline ObservePartyProposalsRequest& operator=(ObservePartyProposalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObservePartyProposalsRequest& default_instance(); - - static inline const ObservePartyProposalsRequest* internal_default_instance() { - return reinterpret_cast( - &_ObservePartyProposalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(ObservePartyProposalsRequest& a, ObservePartyProposalsRequest& b) { - a.Swap(&b); - } - inline void Swap(ObservePartyProposalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObservePartyProposalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObservePartyProposalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObservePartyProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObservePartyProposalsRequest& from); - void MergeFrom(const ObservePartyProposalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObservePartyProposalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObservePartyProposalsRequest"; - } - protected: - explicit ObservePartyProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObservePartyProposalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObservePartyProposalsResponse) */ { - public: - inline ObservePartyProposalsResponse() : ObservePartyProposalsResponse(nullptr) {} - virtual ~ObservePartyProposalsResponse(); - - ObservePartyProposalsResponse(const ObservePartyProposalsResponse& from); - ObservePartyProposalsResponse(ObservePartyProposalsResponse&& from) noexcept - : ObservePartyProposalsResponse() { - *this = ::std::move(from); - } - - inline ObservePartyProposalsResponse& operator=(const ObservePartyProposalsResponse& from) { - CopyFrom(from); - return *this; - } - inline ObservePartyProposalsResponse& operator=(ObservePartyProposalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObservePartyProposalsResponse& default_instance(); - - static inline const ObservePartyProposalsResponse* internal_default_instance() { - return reinterpret_cast( - &_ObservePartyProposalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(ObservePartyProposalsResponse& a, ObservePartyProposalsResponse& b) { - a.Swap(&b); - } - inline void Swap(ObservePartyProposalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObservePartyProposalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObservePartyProposalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObservePartyProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObservePartyProposalsResponse& from); - void MergeFrom(const ObservePartyProposalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObservePartyProposalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObservePartyProposalsResponse"; - } - protected: - explicit ObservePartyProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 1, - }; - // .vega.GovernanceData data = 1 [json_name = "data"]; - bool has_data() const; - private: - bool _internal_has_data() const; - public: - void clear_data(); - const ::vega::GovernanceData& data() const; - ::vega::GovernanceData* release_data(); - ::vega::GovernanceData* mutable_data(); - void set_allocated_data(::vega::GovernanceData* data); - private: - const ::vega::GovernanceData& _internal_data() const; - ::vega::GovernanceData* _internal_mutable_data(); - public: - void unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data); - ::vega::GovernanceData* unsafe_arena_release_data(); - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::GovernanceData* data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveProposalVotesRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveProposalVotesRequest) */ { - public: - inline ObserveProposalVotesRequest() : ObserveProposalVotesRequest(nullptr) {} - virtual ~ObserveProposalVotesRequest(); - - ObserveProposalVotesRequest(const ObserveProposalVotesRequest& from); - ObserveProposalVotesRequest(ObserveProposalVotesRequest&& from) noexcept - : ObserveProposalVotesRequest() { - *this = ::std::move(from); - } - - inline ObserveProposalVotesRequest& operator=(const ObserveProposalVotesRequest& from) { - CopyFrom(from); - return *this; - } - inline ObserveProposalVotesRequest& operator=(ObserveProposalVotesRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveProposalVotesRequest& default_instance(); - - static inline const ObserveProposalVotesRequest* internal_default_instance() { - return reinterpret_cast( - &_ObserveProposalVotesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(ObserveProposalVotesRequest& a, ObserveProposalVotesRequest& b) { - a.Swap(&b); - } - inline void Swap(ObserveProposalVotesRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveProposalVotesRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveProposalVotesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveProposalVotesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveProposalVotesRequest& from); - void MergeFrom(const ObserveProposalVotesRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveProposalVotesRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveProposalVotesRequest"; - } - protected: - explicit ObserveProposalVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kProposalIdFieldNumber = 1, - }; - // string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { - void clear_proposal_id(); - const std::string& proposal_id() const; - void set_proposal_id(const std::string& value); - void set_proposal_id(std::string&& value); - void set_proposal_id(const char* value); - void set_proposal_id(const char* value, size_t size); - std::string* mutable_proposal_id(); - std::string* release_proposal_id(); - void set_allocated_proposal_id(std::string* proposal_id); - private: - const std::string& _internal_proposal_id() const; - void _internal_set_proposal_id(const std::string& value); - std::string* _internal_mutable_proposal_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposal_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveProposalVotesResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveProposalVotesResponse) */ { - public: - inline ObserveProposalVotesResponse() : ObserveProposalVotesResponse(nullptr) {} - virtual ~ObserveProposalVotesResponse(); - - ObserveProposalVotesResponse(const ObserveProposalVotesResponse& from); - ObserveProposalVotesResponse(ObserveProposalVotesResponse&& from) noexcept - : ObserveProposalVotesResponse() { - *this = ::std::move(from); - } - - inline ObserveProposalVotesResponse& operator=(const ObserveProposalVotesResponse& from) { - CopyFrom(from); - return *this; - } - inline ObserveProposalVotesResponse& operator=(ObserveProposalVotesResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveProposalVotesResponse& default_instance(); - - static inline const ObserveProposalVotesResponse* internal_default_instance() { - return reinterpret_cast( - &_ObserveProposalVotesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(ObserveProposalVotesResponse& a, ObserveProposalVotesResponse& b) { - a.Swap(&b); - } - inline void Swap(ObserveProposalVotesResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveProposalVotesResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveProposalVotesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveProposalVotesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveProposalVotesResponse& from); - void MergeFrom(const ObserveProposalVotesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveProposalVotesResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveProposalVotesResponse"; - } - protected: - explicit ObserveProposalVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVoteFieldNumber = 1, - }; - // .vega.Vote vote = 1 [json_name = "vote"]; - bool has_vote() const; - private: - bool _internal_has_vote() const; - public: - void clear_vote(); - const ::vega::Vote& vote() const; - ::vega::Vote* release_vote(); - ::vega::Vote* mutable_vote(); - void set_allocated_vote(::vega::Vote* vote); - private: - const ::vega::Vote& _internal_vote() const; - ::vega::Vote* _internal_mutable_vote(); - public: - void unsafe_arena_set_allocated_vote( - ::vega::Vote* vote); - ::vega::Vote* unsafe_arena_release_vote(); - - // @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Vote* vote_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObservePartyVotesRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObservePartyVotesRequest) */ { - public: - inline ObservePartyVotesRequest() : ObservePartyVotesRequest(nullptr) {} - virtual ~ObservePartyVotesRequest(); - - ObservePartyVotesRequest(const ObservePartyVotesRequest& from); - ObservePartyVotesRequest(ObservePartyVotesRequest&& from) noexcept - : ObservePartyVotesRequest() { - *this = ::std::move(from); - } - - inline ObservePartyVotesRequest& operator=(const ObservePartyVotesRequest& from) { - CopyFrom(from); - return *this; - } - inline ObservePartyVotesRequest& operator=(ObservePartyVotesRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObservePartyVotesRequest& default_instance(); - - static inline const ObservePartyVotesRequest* internal_default_instance() { - return reinterpret_cast( - &_ObservePartyVotesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(ObservePartyVotesRequest& a, ObservePartyVotesRequest& b) { - a.Swap(&b); - } - inline void Swap(ObservePartyVotesRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObservePartyVotesRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObservePartyVotesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObservePartyVotesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObservePartyVotesRequest& from); - void MergeFrom(const ObservePartyVotesRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObservePartyVotesRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObservePartyVotesRequest"; - } - protected: - explicit ObservePartyVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObservePartyVotesResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObservePartyVotesResponse) */ { - public: - inline ObservePartyVotesResponse() : ObservePartyVotesResponse(nullptr) {} - virtual ~ObservePartyVotesResponse(); - - ObservePartyVotesResponse(const ObservePartyVotesResponse& from); - ObservePartyVotesResponse(ObservePartyVotesResponse&& from) noexcept - : ObservePartyVotesResponse() { - *this = ::std::move(from); - } - - inline ObservePartyVotesResponse& operator=(const ObservePartyVotesResponse& from) { - CopyFrom(from); - return *this; - } - inline ObservePartyVotesResponse& operator=(ObservePartyVotesResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObservePartyVotesResponse& default_instance(); - - static inline const ObservePartyVotesResponse* internal_default_instance() { - return reinterpret_cast( - &_ObservePartyVotesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(ObservePartyVotesResponse& a, ObservePartyVotesResponse& b) { - a.Swap(&b); - } - inline void Swap(ObservePartyVotesResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObservePartyVotesResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObservePartyVotesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObservePartyVotesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObservePartyVotesResponse& from); - void MergeFrom(const ObservePartyVotesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObservePartyVotesResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObservePartyVotesResponse"; - } - protected: - explicit ObservePartyVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVoteFieldNumber = 1, - }; - // .vega.Vote vote = 1 [json_name = "vote"]; - bool has_vote() const; - private: - bool _internal_has_vote() const; - public: - void clear_vote(); - const ::vega::Vote& vote() const; - ::vega::Vote* release_vote(); - ::vega::Vote* mutable_vote(); - void set_allocated_vote(::vega::Vote* vote); - private: - const ::vega::Vote& _internal_vote() const; - ::vega::Vote* _internal_mutable_vote(); - public: - void unsafe_arena_set_allocated_vote( - ::vega::Vote* vote); - ::vega::Vote* unsafe_arena_release_vote(); - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Vote* vote_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarginLevelsSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarginLevelsSubscribeRequest) */ { - public: - inline MarginLevelsSubscribeRequest() : MarginLevelsSubscribeRequest(nullptr) {} - virtual ~MarginLevelsSubscribeRequest(); - - MarginLevelsSubscribeRequest(const MarginLevelsSubscribeRequest& from); - MarginLevelsSubscribeRequest(MarginLevelsSubscribeRequest&& from) noexcept - : MarginLevelsSubscribeRequest() { - *this = ::std::move(from); - } - - inline MarginLevelsSubscribeRequest& operator=(const MarginLevelsSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline MarginLevelsSubscribeRequest& operator=(MarginLevelsSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarginLevelsSubscribeRequest& default_instance(); - - static inline const MarginLevelsSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_MarginLevelsSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - - friend void swap(MarginLevelsSubscribeRequest& a, MarginLevelsSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(MarginLevelsSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarginLevelsSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarginLevelsSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarginLevelsSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarginLevelsSubscribeRequest& from); - void MergeFrom(const MarginLevelsSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarginLevelsSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarginLevelsSubscribeRequest"; - } - protected: - explicit MarginLevelsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarginLevelsSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarginLevelsSubscribeResponse) */ { - public: - inline MarginLevelsSubscribeResponse() : MarginLevelsSubscribeResponse(nullptr) {} - virtual ~MarginLevelsSubscribeResponse(); - - MarginLevelsSubscribeResponse(const MarginLevelsSubscribeResponse& from); - MarginLevelsSubscribeResponse(MarginLevelsSubscribeResponse&& from) noexcept - : MarginLevelsSubscribeResponse() { - *this = ::std::move(from); - } - - inline MarginLevelsSubscribeResponse& operator=(const MarginLevelsSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline MarginLevelsSubscribeResponse& operator=(MarginLevelsSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarginLevelsSubscribeResponse& default_instance(); - - static inline const MarginLevelsSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_MarginLevelsSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - - friend void swap(MarginLevelsSubscribeResponse& a, MarginLevelsSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(MarginLevelsSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarginLevelsSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarginLevelsSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarginLevelsSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarginLevelsSubscribeResponse& from); - void MergeFrom(const MarginLevelsSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarginLevelsSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarginLevelsSubscribeResponse"; - } - protected: - explicit MarginLevelsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarginLevelsFieldNumber = 1, - }; - // .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - bool has_margin_levels() const; - private: - bool _internal_has_margin_levels() const; - public: - void clear_margin_levels(); - const ::vega::MarginLevels& margin_levels() const; - ::vega::MarginLevels* release_margin_levels(); - ::vega::MarginLevels* mutable_margin_levels(); - void set_allocated_margin_levels(::vega::MarginLevels* margin_levels); - private: - const ::vega::MarginLevels& _internal_margin_levels() const; - ::vega::MarginLevels* _internal_mutable_margin_levels(); - public: - void unsafe_arena_set_allocated_margin_levels( - ::vega::MarginLevels* margin_levels); - ::vega::MarginLevels* unsafe_arena_release_margin_levels(); - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarginLevels* margin_levels_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarginLevelsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarginLevelsRequest) */ { - public: - inline MarginLevelsRequest() : MarginLevelsRequest(nullptr) {} - virtual ~MarginLevelsRequest(); - - MarginLevelsRequest(const MarginLevelsRequest& from); - MarginLevelsRequest(MarginLevelsRequest&& from) noexcept - : MarginLevelsRequest() { - *this = ::std::move(from); - } - - inline MarginLevelsRequest& operator=(const MarginLevelsRequest& from) { - CopyFrom(from); - return *this; - } - inline MarginLevelsRequest& operator=(MarginLevelsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarginLevelsRequest& default_instance(); - - static inline const MarginLevelsRequest* internal_default_instance() { - return reinterpret_cast( - &_MarginLevelsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - - friend void swap(MarginLevelsRequest& a, MarginLevelsRequest& b) { - a.Swap(&b); - } - inline void Swap(MarginLevelsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarginLevelsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarginLevelsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarginLevelsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarginLevelsRequest& from); - void MergeFrom(const MarginLevelsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarginLevelsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarginLevelsRequest"; - } - protected: - explicit MarginLevelsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarginLevelsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarginLevelsResponse) */ { - public: - inline MarginLevelsResponse() : MarginLevelsResponse(nullptr) {} - virtual ~MarginLevelsResponse(); - - MarginLevelsResponse(const MarginLevelsResponse& from); - MarginLevelsResponse(MarginLevelsResponse&& from) noexcept - : MarginLevelsResponse() { - *this = ::std::move(from); - } - - inline MarginLevelsResponse& operator=(const MarginLevelsResponse& from) { - CopyFrom(from); - return *this; - } - inline MarginLevelsResponse& operator=(MarginLevelsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarginLevelsResponse& default_instance(); - - static inline const MarginLevelsResponse* internal_default_instance() { - return reinterpret_cast( - &_MarginLevelsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - - friend void swap(MarginLevelsResponse& a, MarginLevelsResponse& b) { - a.Swap(&b); - } - inline void Swap(MarginLevelsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarginLevelsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarginLevelsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarginLevelsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarginLevelsResponse& from); - void MergeFrom(const MarginLevelsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarginLevelsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarginLevelsResponse"; - } - protected: - explicit MarginLevelsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarginLevelsFieldNumber = 1, - }; - // repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - int margin_levels_size() const; - private: - int _internal_margin_levels_size() const; - public: - void clear_margin_levels(); - ::vega::MarginLevels* mutable_margin_levels(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarginLevels >* - mutable_margin_levels(); - private: - const ::vega::MarginLevels& _internal_margin_levels(int index) const; - ::vega::MarginLevels* _internal_add_margin_levels(); - public: - const ::vega::MarginLevels& margin_levels(int index) const; - ::vega::MarginLevels* add_margin_levels(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarginLevels >& - margin_levels() const; - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarginLevels > margin_levels_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsDataSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsDataSubscribeRequest) */ { - public: - inline MarketsDataSubscribeRequest() : MarketsDataSubscribeRequest(nullptr) {} - virtual ~MarketsDataSubscribeRequest(); - - MarketsDataSubscribeRequest(const MarketsDataSubscribeRequest& from); - MarketsDataSubscribeRequest(MarketsDataSubscribeRequest&& from) noexcept - : MarketsDataSubscribeRequest() { - *this = ::std::move(from); - } - - inline MarketsDataSubscribeRequest& operator=(const MarketsDataSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketsDataSubscribeRequest& operator=(MarketsDataSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsDataSubscribeRequest& default_instance(); - - static inline const MarketsDataSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketsDataSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - - friend void swap(MarketsDataSubscribeRequest& a, MarketsDataSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketsDataSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsDataSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsDataSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsDataSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsDataSubscribeRequest& from); - void MergeFrom(const MarketsDataSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsDataSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsDataSubscribeRequest"; - } - protected: - explicit MarketsDataSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsDataSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsDataSubscribeResponse) */ { - public: - inline MarketsDataSubscribeResponse() : MarketsDataSubscribeResponse(nullptr) {} - virtual ~MarketsDataSubscribeResponse(); - - MarketsDataSubscribeResponse(const MarketsDataSubscribeResponse& from); - MarketsDataSubscribeResponse(MarketsDataSubscribeResponse&& from) noexcept - : MarketsDataSubscribeResponse() { - *this = ::std::move(from); - } - - inline MarketsDataSubscribeResponse& operator=(const MarketsDataSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketsDataSubscribeResponse& operator=(MarketsDataSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsDataSubscribeResponse& default_instance(); - - static inline const MarketsDataSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketsDataSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 52; - - friend void swap(MarketsDataSubscribeResponse& a, MarketsDataSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketsDataSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsDataSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsDataSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsDataSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsDataSubscribeResponse& from); - void MergeFrom(const MarketsDataSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsDataSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsDataSubscribeResponse"; - } - protected: - explicit MarketsDataSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketDataFieldNumber = 1, - }; - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - bool has_market_data() const; - private: - bool _internal_has_market_data() const; - public: - void clear_market_data(); - const ::vega::MarketData& market_data() const; - ::vega::MarketData* release_market_data(); - ::vega::MarketData* mutable_market_data(); - void set_allocated_market_data(::vega::MarketData* market_data); - private: - const ::vega::MarketData& _internal_market_data() const; - ::vega::MarketData* _internal_mutable_market_data(); - public: - void unsafe_arena_set_allocated_market_data( - ::vega::MarketData* market_data); - ::vega::MarketData* unsafe_arena_release_market_data(); - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarketData* market_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDataByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDataByIDRequest) */ { - public: - inline MarketDataByIDRequest() : MarketDataByIDRequest(nullptr) {} - virtual ~MarketDataByIDRequest(); - - MarketDataByIDRequest(const MarketDataByIDRequest& from); - MarketDataByIDRequest(MarketDataByIDRequest&& from) noexcept - : MarketDataByIDRequest() { - *this = ::std::move(from); - } - - inline MarketDataByIDRequest& operator=(const MarketDataByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketDataByIDRequest& operator=(MarketDataByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDataByIDRequest& default_instance(); - - static inline const MarketDataByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketDataByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 53; - - friend void swap(MarketDataByIDRequest& a, MarketDataByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketDataByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDataByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDataByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDataByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDataByIDRequest& from); - void MergeFrom(const MarketDataByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDataByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDataByIDRequest"; - } - protected: - explicit MarketDataByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDataByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDataByIDResponse) */ { - public: - inline MarketDataByIDResponse() : MarketDataByIDResponse(nullptr) {} - virtual ~MarketDataByIDResponse(); - - MarketDataByIDResponse(const MarketDataByIDResponse& from); - MarketDataByIDResponse(MarketDataByIDResponse&& from) noexcept - : MarketDataByIDResponse() { - *this = ::std::move(from); - } - - inline MarketDataByIDResponse& operator=(const MarketDataByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketDataByIDResponse& operator=(MarketDataByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDataByIDResponse& default_instance(); - - static inline const MarketDataByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketDataByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 54; - - friend void swap(MarketDataByIDResponse& a, MarketDataByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketDataByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDataByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDataByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDataByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDataByIDResponse& from); - void MergeFrom(const MarketDataByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDataByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDataByIDResponse"; - } - protected: - explicit MarketDataByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketDataFieldNumber = 1, - }; - // .vega.MarketData market_data = 1 [json_name = "marketData"]; - bool has_market_data() const; - private: - bool _internal_has_market_data() const; - public: - void clear_market_data(); - const ::vega::MarketData& market_data() const; - ::vega::MarketData* release_market_data(); - ::vega::MarketData* mutable_market_data(); - void set_allocated_market_data(::vega::MarketData* market_data); - private: - const ::vega::MarketData& _internal_market_data() const; - ::vega::MarketData* _internal_mutable_market_data(); - public: - void unsafe_arena_set_allocated_market_data( - ::vega::MarketData* market_data); - ::vega::MarketData* unsafe_arena_release_market_data(); - - // @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarketData* market_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsDataRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsDataRequest) */ { - public: - inline MarketsDataRequest() : MarketsDataRequest(nullptr) {} - virtual ~MarketsDataRequest(); - - MarketsDataRequest(const MarketsDataRequest& from); - MarketsDataRequest(MarketsDataRequest&& from) noexcept - : MarketsDataRequest() { - *this = ::std::move(from); - } - - inline MarketsDataRequest& operator=(const MarketsDataRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketsDataRequest& operator=(MarketsDataRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsDataRequest& default_instance(); - - static inline const MarketsDataRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketsDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 55; - - friend void swap(MarketsDataRequest& a, MarketsDataRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketsDataRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsDataRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsDataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsDataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsDataRequest& from); - void MergeFrom(const MarketsDataRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsDataRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsDataRequest"; - } - protected: - explicit MarketsDataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsDataResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsDataResponse) */ { - public: - inline MarketsDataResponse() : MarketsDataResponse(nullptr) {} - virtual ~MarketsDataResponse(); - - MarketsDataResponse(const MarketsDataResponse& from); - MarketsDataResponse(MarketsDataResponse&& from) noexcept - : MarketsDataResponse() { - *this = ::std::move(from); - } - - inline MarketsDataResponse& operator=(const MarketsDataResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketsDataResponse& operator=(MarketsDataResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsDataResponse& default_instance(); - - static inline const MarketsDataResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketsDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 56; - - friend void swap(MarketsDataResponse& a, MarketsDataResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketsDataResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsDataResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsDataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsDataResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsDataResponse& from); - void MergeFrom(const MarketsDataResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsDataResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsDataResponse"; - } - protected: - explicit MarketsDataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketsDataFieldNumber = 1, - }; - // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - int markets_data_size() const; - private: - int _internal_markets_data_size() const; - public: - void clear_markets_data(); - ::vega::MarketData* mutable_markets_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >* - mutable_markets_data(); - private: - const ::vega::MarketData& _internal_markets_data(int index) const; - ::vega::MarketData* _internal_add_markets_data(); - public: - const ::vega::MarketData& markets_data(int index) const; - ::vega::MarketData* add_markets_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >& - markets_data() const; - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData > markets_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LastTradeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastTradeRequest) */ { - public: - inline LastTradeRequest() : LastTradeRequest(nullptr) {} - virtual ~LastTradeRequest(); - - LastTradeRequest(const LastTradeRequest& from); - LastTradeRequest(LastTradeRequest&& from) noexcept - : LastTradeRequest() { - *this = ::std::move(from); - } - - inline LastTradeRequest& operator=(const LastTradeRequest& from) { - CopyFrom(from); - return *this; - } - inline LastTradeRequest& operator=(LastTradeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LastTradeRequest& default_instance(); - - static inline const LastTradeRequest* internal_default_instance() { - return reinterpret_cast( - &_LastTradeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 57; - - friend void swap(LastTradeRequest& a, LastTradeRequest& b) { - a.Swap(&b); - } - inline void Swap(LastTradeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LastTradeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LastTradeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - LastTradeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LastTradeRequest& from); - void MergeFrom(const LastTradeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LastTradeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LastTradeRequest"; - } - protected: - explicit LastTradeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.LastTradeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LastTradeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastTradeResponse) */ { - public: - inline LastTradeResponse() : LastTradeResponse(nullptr) {} - virtual ~LastTradeResponse(); - - LastTradeResponse(const LastTradeResponse& from); - LastTradeResponse(LastTradeResponse&& from) noexcept - : LastTradeResponse() { - *this = ::std::move(from); - } - - inline LastTradeResponse& operator=(const LastTradeResponse& from) { - CopyFrom(from); - return *this; - } - inline LastTradeResponse& operator=(LastTradeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LastTradeResponse& default_instance(); - - static inline const LastTradeResponse* internal_default_instance() { - return reinterpret_cast( - &_LastTradeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 58; - - friend void swap(LastTradeResponse& a, LastTradeResponse& b) { - a.Swap(&b); - } - inline void Swap(LastTradeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LastTradeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LastTradeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - LastTradeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LastTradeResponse& from); - void MergeFrom(const LastTradeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LastTradeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LastTradeResponse"; - } - protected: - explicit LastTradeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTradeFieldNumber = 1, - }; - // .vega.Trade trade = 1 [json_name = "trade"]; - bool has_trade() const; - private: - bool _internal_has_trade() const; - public: - void clear_trade(); - const ::vega::Trade& trade() const; - ::vega::Trade* release_trade(); - ::vega::Trade* mutable_trade(); - void set_allocated_trade(::vega::Trade* trade); - private: - const ::vega::Trade& _internal_trade() const; - ::vega::Trade* _internal_mutable_trade(); - public: - void unsafe_arena_set_allocated_trade( - ::vega::Trade* trade); - ::vega::Trade* unsafe_arena_release_trade(); - - // @@protoc_insertion_point(class_scope:api.v1.LastTradeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Trade* trade_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketByIDRequest) */ { - public: - inline MarketByIDRequest() : MarketByIDRequest(nullptr) {} - virtual ~MarketByIDRequest(); - - MarketByIDRequest(const MarketByIDRequest& from); - MarketByIDRequest(MarketByIDRequest&& from) noexcept - : MarketByIDRequest() { - *this = ::std::move(from); - } - - inline MarketByIDRequest& operator=(const MarketByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketByIDRequest& operator=(MarketByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketByIDRequest& default_instance(); - - static inline const MarketByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 59; - - friend void swap(MarketByIDRequest& a, MarketByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketByIDRequest& from); - void MergeFrom(const MarketByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketByIDRequest"; - } - protected: - explicit MarketByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketByIDResponse) */ { - public: - inline MarketByIDResponse() : MarketByIDResponse(nullptr) {} - virtual ~MarketByIDResponse(); - - MarketByIDResponse(const MarketByIDResponse& from); - MarketByIDResponse(MarketByIDResponse&& from) noexcept - : MarketByIDResponse() { - *this = ::std::move(from); - } - - inline MarketByIDResponse& operator=(const MarketByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketByIDResponse& operator=(MarketByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketByIDResponse& default_instance(); - - static inline const MarketByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 60; - - friend void swap(MarketByIDResponse& a, MarketByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketByIDResponse& from); - void MergeFrom(const MarketByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketByIDResponse"; - } - protected: - explicit MarketByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketFieldNumber = 1, - }; - // .vega.Market market = 1 [json_name = "market"]; - bool has_market() const; - private: - bool _internal_has_market() const; - public: - void clear_market(); - const ::vega::Market& market() const; - ::vega::Market* release_market(); - ::vega::Market* mutable_market(); - void set_allocated_market(::vega::Market* market); - private: - const ::vega::Market& _internal_market() const; - ::vega::Market* _internal_mutable_market(); - public: - void unsafe_arena_set_allocated_market( - ::vega::Market* market); - ::vega::Market* unsafe_arena_release_market(); - - // @@protoc_insertion_point(class_scope:api.v1.MarketByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Market* market_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartyByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartyByIDRequest) */ { - public: - inline PartyByIDRequest() : PartyByIDRequest(nullptr) {} - virtual ~PartyByIDRequest(); - - PartyByIDRequest(const PartyByIDRequest& from); - PartyByIDRequest(PartyByIDRequest&& from) noexcept - : PartyByIDRequest() { - *this = ::std::move(from); - } - - inline PartyByIDRequest& operator=(const PartyByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline PartyByIDRequest& operator=(PartyByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartyByIDRequest& default_instance(); - - static inline const PartyByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_PartyByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 61; - - friend void swap(PartyByIDRequest& a, PartyByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(PartyByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartyByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartyByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartyByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartyByIDRequest& from); - void MergeFrom(const PartyByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartyByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartyByIDRequest"; - } - protected: - explicit PartyByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PartyByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartyByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartyByIDResponse) */ { - public: - inline PartyByIDResponse() : PartyByIDResponse(nullptr) {} - virtual ~PartyByIDResponse(); - - PartyByIDResponse(const PartyByIDResponse& from); - PartyByIDResponse(PartyByIDResponse&& from) noexcept - : PartyByIDResponse() { - *this = ::std::move(from); - } - - inline PartyByIDResponse& operator=(const PartyByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline PartyByIDResponse& operator=(PartyByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartyByIDResponse& default_instance(); - - static inline const PartyByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_PartyByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 62; - - friend void swap(PartyByIDResponse& a, PartyByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(PartyByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartyByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartyByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartyByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartyByIDResponse& from); - void MergeFrom(const PartyByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartyByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartyByIDResponse"; - } - protected: - explicit PartyByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyFieldNumber = 1, - }; - // .vega.Party party = 1 [json_name = "party"]; - bool has_party() const; - private: - bool _internal_has_party() const; - public: - void clear_party(); - const ::vega::Party& party() const; - ::vega::Party* release_party(); - ::vega::Party* mutable_party(); - void set_allocated_party(::vega::Party* party); - private: - const ::vega::Party& _internal_party() const; - ::vega::Party* _internal_mutable_party(); - public: - void unsafe_arena_set_allocated_party( - ::vega::Party* party); - ::vega::Party* unsafe_arena_release_party(); - - // @@protoc_insertion_point(class_scope:api.v1.PartyByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Party* party_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartiesRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartiesRequest) */ { - public: - inline PartiesRequest() : PartiesRequest(nullptr) {} - virtual ~PartiesRequest(); - - PartiesRequest(const PartiesRequest& from); - PartiesRequest(PartiesRequest&& from) noexcept - : PartiesRequest() { - *this = ::std::move(from); - } - - inline PartiesRequest& operator=(const PartiesRequest& from) { - CopyFrom(from); - return *this; - } - inline PartiesRequest& operator=(PartiesRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartiesRequest& default_instance(); - - static inline const PartiesRequest* internal_default_instance() { - return reinterpret_cast( - &_PartiesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 63; - - friend void swap(PartiesRequest& a, PartiesRequest& b) { - a.Swap(&b); - } - inline void Swap(PartiesRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartiesRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartiesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartiesRequest& from); - void MergeFrom(const PartiesRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartiesRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartiesRequest"; - } - protected: - explicit PartiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.PartiesRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartiesResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartiesResponse) */ { - public: - inline PartiesResponse() : PartiesResponse(nullptr) {} - virtual ~PartiesResponse(); - - PartiesResponse(const PartiesResponse& from); - PartiesResponse(PartiesResponse&& from) noexcept - : PartiesResponse() { - *this = ::std::move(from); - } - - inline PartiesResponse& operator=(const PartiesResponse& from) { - CopyFrom(from); - return *this; - } - inline PartiesResponse& operator=(PartiesResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartiesResponse& default_instance(); - - static inline const PartiesResponse* internal_default_instance() { - return reinterpret_cast( - &_PartiesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 64; - - friend void swap(PartiesResponse& a, PartiesResponse& b) { - a.Swap(&b); - } - inline void Swap(PartiesResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartiesResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartiesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartiesResponse& from); - void MergeFrom(const PartiesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartiesResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartiesResponse"; - } - protected: - explicit PartiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartiesFieldNumber = 1, - }; - // repeated .vega.Party parties = 1 [json_name = "parties"]; - int parties_size() const; - private: - int _internal_parties_size() const; - public: - void clear_parties(); - ::vega::Party* mutable_parties(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >* - mutable_parties(); - private: - const ::vega::Party& _internal_parties(int index) const; - ::vega::Party* _internal_add_parties(); - public: - const ::vega::Party& parties(int index) const; - ::vega::Party* add_parties(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >& - parties() const; - - // @@protoc_insertion_point(class_scope:api.v1.PartiesResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party > parties_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByPartyRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByPartyRequest) */ { - public: - inline TradesByPartyRequest() : TradesByPartyRequest(nullptr) {} - virtual ~TradesByPartyRequest(); - - TradesByPartyRequest(const TradesByPartyRequest& from); - TradesByPartyRequest(TradesByPartyRequest&& from) noexcept - : TradesByPartyRequest() { - *this = ::std::move(from); - } - - inline TradesByPartyRequest& operator=(const TradesByPartyRequest& from) { - CopyFrom(from); - return *this; - } - inline TradesByPartyRequest& operator=(TradesByPartyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByPartyRequest& default_instance(); - - static inline const TradesByPartyRequest* internal_default_instance() { - return reinterpret_cast( - &_TradesByPartyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 65; - - friend void swap(TradesByPartyRequest& a, TradesByPartyRequest& b) { - a.Swap(&b); - } - inline void Swap(TradesByPartyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByPartyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByPartyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByPartyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByPartyRequest& from); - void MergeFrom(const TradesByPartyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByPartyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByPartyRequest"; - } - protected: - explicit TradesByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - kPaginationFieldNumber = 3, - }; - // string party_id = 1 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - bool has_pagination() const; - private: - bool _internal_has_pagination() const; - public: - void clear_pagination(); - const ::api::v1::Pagination& pagination() const; - ::api::v1::Pagination* release_pagination(); - ::api::v1::Pagination* mutable_pagination(); - void set_allocated_pagination(::api::v1::Pagination* pagination); - private: - const ::api::v1::Pagination& _internal_pagination() const; - ::api::v1::Pagination* _internal_mutable_pagination(); - public: - void unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination); - ::api::v1::Pagination* unsafe_arena_release_pagination(); - - // @@protoc_insertion_point(class_scope:api.v1.TradesByPartyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::api::v1::Pagination* pagination_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByPartyResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByPartyResponse) */ { - public: - inline TradesByPartyResponse() : TradesByPartyResponse(nullptr) {} - virtual ~TradesByPartyResponse(); - - TradesByPartyResponse(const TradesByPartyResponse& from); - TradesByPartyResponse(TradesByPartyResponse&& from) noexcept - : TradesByPartyResponse() { - *this = ::std::move(from); - } - - inline TradesByPartyResponse& operator=(const TradesByPartyResponse& from) { - CopyFrom(from); - return *this; - } - inline TradesByPartyResponse& operator=(TradesByPartyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByPartyResponse& default_instance(); - - static inline const TradesByPartyResponse* internal_default_instance() { - return reinterpret_cast( - &_TradesByPartyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 66; - - friend void swap(TradesByPartyResponse& a, TradesByPartyResponse& b) { - a.Swap(&b); - } - inline void Swap(TradesByPartyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByPartyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByPartyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByPartyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByPartyResponse& from); - void MergeFrom(const TradesByPartyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByPartyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByPartyResponse"; - } - protected: - explicit TradesByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTradesFieldNumber = 1, - }; - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - int trades_size() const; - private: - int _internal_trades_size() const; - public: - void clear_trades(); - ::vega::Trade* mutable_trades(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* - mutable_trades(); - private: - const ::vega::Trade& _internal_trades(int index) const; - ::vega::Trade* _internal_add_trades(); - public: - const ::vega::Trade& trades(int index) const; - ::vega::Trade* add_trades(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& - trades() const; - - // @@protoc_insertion_point(class_scope:api.v1.TradesByPartyResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade > trades_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByOrderRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByOrderRequest) */ { - public: - inline TradesByOrderRequest() : TradesByOrderRequest(nullptr) {} - virtual ~TradesByOrderRequest(); - - TradesByOrderRequest(const TradesByOrderRequest& from); - TradesByOrderRequest(TradesByOrderRequest&& from) noexcept - : TradesByOrderRequest() { - *this = ::std::move(from); - } - - inline TradesByOrderRequest& operator=(const TradesByOrderRequest& from) { - CopyFrom(from); - return *this; - } - inline TradesByOrderRequest& operator=(TradesByOrderRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByOrderRequest& default_instance(); - - static inline const TradesByOrderRequest* internal_default_instance() { - return reinterpret_cast( - &_TradesByOrderRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 67; - - friend void swap(TradesByOrderRequest& a, TradesByOrderRequest& b) { - a.Swap(&b); - } - inline void Swap(TradesByOrderRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByOrderRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByOrderRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByOrderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByOrderRequest& from); - void MergeFrom(const TradesByOrderRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByOrderRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByOrderRequest"; - } - protected: - explicit TradesByOrderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderIdFieldNumber = 1, - }; - // string order_id = 1 [json_name = "orderId"]; - void clear_order_id(); - const std::string& order_id() const; - void set_order_id(const std::string& value); - void set_order_id(std::string&& value); - void set_order_id(const char* value); - void set_order_id(const char* value, size_t size); - std::string* mutable_order_id(); - std::string* release_order_id(); - void set_allocated_order_id(std::string* order_id); - private: - const std::string& _internal_order_id() const; - void _internal_set_order_id(const std::string& value); - std::string* _internal_mutable_order_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.TradesByOrderRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByOrderResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByOrderResponse) */ { - public: - inline TradesByOrderResponse() : TradesByOrderResponse(nullptr) {} - virtual ~TradesByOrderResponse(); - - TradesByOrderResponse(const TradesByOrderResponse& from); - TradesByOrderResponse(TradesByOrderResponse&& from) noexcept - : TradesByOrderResponse() { - *this = ::std::move(from); - } - - inline TradesByOrderResponse& operator=(const TradesByOrderResponse& from) { - CopyFrom(from); - return *this; - } - inline TradesByOrderResponse& operator=(TradesByOrderResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByOrderResponse& default_instance(); - - static inline const TradesByOrderResponse* internal_default_instance() { - return reinterpret_cast( - &_TradesByOrderResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 68; - - friend void swap(TradesByOrderResponse& a, TradesByOrderResponse& b) { - a.Swap(&b); - } - inline void Swap(TradesByOrderResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByOrderResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByOrderResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByOrderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByOrderResponse& from); - void MergeFrom(const TradesByOrderResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByOrderResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByOrderResponse"; - } - protected: - explicit TradesByOrderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTradesFieldNumber = 1, - }; - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - int trades_size() const; - private: - int _internal_trades_size() const; - public: - void clear_trades(); - ::vega::Trade* mutable_trades(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* - mutable_trades(); - private: - const ::vega::Trade& _internal_trades(int index) const; - ::vega::Trade* _internal_add_trades(); - public: - const ::vega::Trade& trades(int index) const; - ::vega::Trade* add_trades(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& - trades() const; - - // @@protoc_insertion_point(class_scope:api.v1.TradesByOrderResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade > trades_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class AccountsSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AccountsSubscribeRequest) */ { - public: - inline AccountsSubscribeRequest() : AccountsSubscribeRequest(nullptr) {} - virtual ~AccountsSubscribeRequest(); - - AccountsSubscribeRequest(const AccountsSubscribeRequest& from); - AccountsSubscribeRequest(AccountsSubscribeRequest&& from) noexcept - : AccountsSubscribeRequest() { - *this = ::std::move(from); - } - - inline AccountsSubscribeRequest& operator=(const AccountsSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline AccountsSubscribeRequest& operator=(AccountsSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const AccountsSubscribeRequest& default_instance(); - - static inline const AccountsSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_AccountsSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 69; - - friend void swap(AccountsSubscribeRequest& a, AccountsSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(AccountsSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AccountsSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AccountsSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - AccountsSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AccountsSubscribeRequest& from); - void MergeFrom(const AccountsSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AccountsSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AccountsSubscribeRequest"; - } - protected: - explicit AccountsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - kAssetFieldNumber = 3, - kTypeFieldNumber = 4, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string asset = 3 [json_name = "asset"]; - void clear_asset(); - const std::string& asset() const; - void set_asset(const std::string& value); - void set_asset(std::string&& value); - void set_asset(const char* value); - void set_asset(const char* value, size_t size); - std::string* mutable_asset(); - std::string* release_asset(); - void set_allocated_asset(std::string* asset); - private: - const std::string& _internal_asset() const; - void _internal_set_asset(const std::string& value); - std::string* _internal_mutable_asset(); - public: - - // .vega.AccountType type = 4 [json_name = "type"]; - void clear_type(); - ::vega::AccountType type() const; - void set_type(::vega::AccountType value); - private: - ::vega::AccountType _internal_type() const; - void _internal_set_type(::vega::AccountType value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class AccountsSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.AccountsSubscribeResponse) */ { - public: - inline AccountsSubscribeResponse() : AccountsSubscribeResponse(nullptr) {} - virtual ~AccountsSubscribeResponse(); - - AccountsSubscribeResponse(const AccountsSubscribeResponse& from); - AccountsSubscribeResponse(AccountsSubscribeResponse&& from) noexcept - : AccountsSubscribeResponse() { - *this = ::std::move(from); - } - - inline AccountsSubscribeResponse& operator=(const AccountsSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline AccountsSubscribeResponse& operator=(AccountsSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const AccountsSubscribeResponse& default_instance(); - - static inline const AccountsSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_AccountsSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 70; - - friend void swap(AccountsSubscribeResponse& a, AccountsSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(AccountsSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AccountsSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline AccountsSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - AccountsSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AccountsSubscribeResponse& from); - void MergeFrom(const AccountsSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AccountsSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.AccountsSubscribeResponse"; - } - protected: - explicit AccountsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAccountFieldNumber = 1, - }; - // .vega.Account account = 1 [json_name = "account"]; - bool has_account() const; - private: - bool _internal_has_account() const; - public: - void clear_account(); - const ::vega::Account& account() const; - ::vega::Account* release_account(); - ::vega::Account* mutable_account(); - void set_allocated_account(::vega::Account* account); - private: - const ::vega::Account& _internal_account() const; - ::vega::Account* _internal_mutable_account(); - public: - void unsafe_arena_set_allocated_account( - ::vega::Account* account); - ::vega::Account* unsafe_arena_release_account(); - - // @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Account* account_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersSubscribeRequest) */ { - public: - inline OrdersSubscribeRequest() : OrdersSubscribeRequest(nullptr) {} - virtual ~OrdersSubscribeRequest(); - - OrdersSubscribeRequest(const OrdersSubscribeRequest& from); - OrdersSubscribeRequest(OrdersSubscribeRequest&& from) noexcept - : OrdersSubscribeRequest() { - *this = ::std::move(from); - } - - inline OrdersSubscribeRequest& operator=(const OrdersSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline OrdersSubscribeRequest& operator=(OrdersSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersSubscribeRequest& default_instance(); - - static inline const OrdersSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_OrdersSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 71; - - friend void swap(OrdersSubscribeRequest& a, OrdersSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(OrdersSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersSubscribeRequest& from); - void MergeFrom(const OrdersSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersSubscribeRequest"; - } - protected: - explicit OrdersSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesSubscribeRequest) */ { - public: - inline TradesSubscribeRequest() : TradesSubscribeRequest(nullptr) {} - virtual ~TradesSubscribeRequest(); - - TradesSubscribeRequest(const TradesSubscribeRequest& from); - TradesSubscribeRequest(TradesSubscribeRequest&& from) noexcept - : TradesSubscribeRequest() { - *this = ::std::move(from); - } - - inline TradesSubscribeRequest& operator=(const TradesSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline TradesSubscribeRequest& operator=(TradesSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesSubscribeRequest& default_instance(); - - static inline const TradesSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_TradesSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 72; - - friend void swap(TradesSubscribeRequest& a, TradesSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(TradesSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesSubscribeRequest& from); - void MergeFrom(const TradesSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesSubscribeRequest"; - } - protected: - explicit TradesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class CandlesSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.CandlesSubscribeRequest) */ { - public: - inline CandlesSubscribeRequest() : CandlesSubscribeRequest(nullptr) {} - virtual ~CandlesSubscribeRequest(); - - CandlesSubscribeRequest(const CandlesSubscribeRequest& from); - CandlesSubscribeRequest(CandlesSubscribeRequest&& from) noexcept - : CandlesSubscribeRequest() { - *this = ::std::move(from); - } - - inline CandlesSubscribeRequest& operator=(const CandlesSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline CandlesSubscribeRequest& operator=(CandlesSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CandlesSubscribeRequest& default_instance(); - - static inline const CandlesSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_CandlesSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 73; - - friend void swap(CandlesSubscribeRequest& a, CandlesSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(CandlesSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CandlesSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CandlesSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CandlesSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CandlesSubscribeRequest& from); - void MergeFrom(const CandlesSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CandlesSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.CandlesSubscribeRequest"; - } - protected: - explicit CandlesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kIntervalFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .vega.Interval interval = 2 [json_name = "interval"]; - void clear_interval(); - ::vega::Interval interval() const; - void set_interval(::vega::Interval value); - private: - ::vega::Interval _internal_interval() const; - void _internal_set_interval(::vega::Interval value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - int interval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class CandlesSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.CandlesSubscribeResponse) */ { - public: - inline CandlesSubscribeResponse() : CandlesSubscribeResponse(nullptr) {} - virtual ~CandlesSubscribeResponse(); - - CandlesSubscribeResponse(const CandlesSubscribeResponse& from); - CandlesSubscribeResponse(CandlesSubscribeResponse&& from) noexcept - : CandlesSubscribeResponse() { - *this = ::std::move(from); - } - - inline CandlesSubscribeResponse& operator=(const CandlesSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline CandlesSubscribeResponse& operator=(CandlesSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CandlesSubscribeResponse& default_instance(); - - static inline const CandlesSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_CandlesSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 74; - - friend void swap(CandlesSubscribeResponse& a, CandlesSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(CandlesSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CandlesSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CandlesSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CandlesSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CandlesSubscribeResponse& from); - void MergeFrom(const CandlesSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CandlesSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.CandlesSubscribeResponse"; - } - protected: - explicit CandlesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCandleFieldNumber = 1, - }; - // .vega.Candle candle = 1 [json_name = "candle"]; - bool has_candle() const; - private: - bool _internal_has_candle() const; - public: - void clear_candle(); - const ::vega::Candle& candle() const; - ::vega::Candle* release_candle(); - ::vega::Candle* mutable_candle(); - void set_allocated_candle(::vega::Candle* candle); - private: - const ::vega::Candle& _internal_candle() const; - ::vega::Candle* _internal_mutable_candle(); - public: - void unsafe_arena_set_allocated_candle( - ::vega::Candle* candle); - ::vega::Candle* unsafe_arena_release_candle(); - - // @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Candle* candle_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthSubscribeRequest) */ { - public: - inline MarketDepthSubscribeRequest() : MarketDepthSubscribeRequest(nullptr) {} - virtual ~MarketDepthSubscribeRequest(); - - MarketDepthSubscribeRequest(const MarketDepthSubscribeRequest& from); - MarketDepthSubscribeRequest(MarketDepthSubscribeRequest&& from) noexcept - : MarketDepthSubscribeRequest() { - *this = ::std::move(from); - } - - inline MarketDepthSubscribeRequest& operator=(const MarketDepthSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthSubscribeRequest& operator=(MarketDepthSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthSubscribeRequest& default_instance(); - - static inline const MarketDepthSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 75; - - friend void swap(MarketDepthSubscribeRequest& a, MarketDepthSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthSubscribeRequest& from); - void MergeFrom(const MarketDepthSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthSubscribeRequest"; - } - protected: - explicit MarketDepthSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthSubscribeResponse) */ { - public: - inline MarketDepthSubscribeResponse() : MarketDepthSubscribeResponse(nullptr) {} - virtual ~MarketDepthSubscribeResponse(); - - MarketDepthSubscribeResponse(const MarketDepthSubscribeResponse& from); - MarketDepthSubscribeResponse(MarketDepthSubscribeResponse&& from) noexcept - : MarketDepthSubscribeResponse() { - *this = ::std::move(from); - } - - inline MarketDepthSubscribeResponse& operator=(const MarketDepthSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthSubscribeResponse& operator=(MarketDepthSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthSubscribeResponse& default_instance(); - - static inline const MarketDepthSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 76; - - friend void swap(MarketDepthSubscribeResponse& a, MarketDepthSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthSubscribeResponse& from); - void MergeFrom(const MarketDepthSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthSubscribeResponse"; - } - protected: - explicit MarketDepthSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketDepthFieldNumber = 1, - }; - // .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - bool has_market_depth() const; - private: - bool _internal_has_market_depth() const; - public: - void clear_market_depth(); - const ::vega::MarketDepth& market_depth() const; - ::vega::MarketDepth* release_market_depth(); - ::vega::MarketDepth* mutable_market_depth(); - void set_allocated_market_depth(::vega::MarketDepth* market_depth); - private: - const ::vega::MarketDepth& _internal_market_depth() const; - ::vega::MarketDepth* _internal_mutable_market_depth(); - public: - void unsafe_arena_set_allocated_market_depth( - ::vega::MarketDepth* market_depth); - ::vega::MarketDepth* unsafe_arena_release_market_depth(); - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarketDepth* market_depth_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthUpdatesSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthUpdatesSubscribeRequest) */ { - public: - inline MarketDepthUpdatesSubscribeRequest() : MarketDepthUpdatesSubscribeRequest(nullptr) {} - virtual ~MarketDepthUpdatesSubscribeRequest(); - - MarketDepthUpdatesSubscribeRequest(const MarketDepthUpdatesSubscribeRequest& from); - MarketDepthUpdatesSubscribeRequest(MarketDepthUpdatesSubscribeRequest&& from) noexcept - : MarketDepthUpdatesSubscribeRequest() { - *this = ::std::move(from); - } - - inline MarketDepthUpdatesSubscribeRequest& operator=(const MarketDepthUpdatesSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthUpdatesSubscribeRequest& operator=(MarketDepthUpdatesSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthUpdatesSubscribeRequest& default_instance(); - - static inline const MarketDepthUpdatesSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthUpdatesSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 77; - - friend void swap(MarketDepthUpdatesSubscribeRequest& a, MarketDepthUpdatesSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthUpdatesSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthUpdatesSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthUpdatesSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthUpdatesSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthUpdatesSubscribeRequest& from); - void MergeFrom(const MarketDepthUpdatesSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthUpdatesSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthUpdatesSubscribeRequest"; - } - protected: - explicit MarketDepthUpdatesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthUpdatesSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthUpdatesSubscribeResponse) */ { - public: - inline MarketDepthUpdatesSubscribeResponse() : MarketDepthUpdatesSubscribeResponse(nullptr) {} - virtual ~MarketDepthUpdatesSubscribeResponse(); - - MarketDepthUpdatesSubscribeResponse(const MarketDepthUpdatesSubscribeResponse& from); - MarketDepthUpdatesSubscribeResponse(MarketDepthUpdatesSubscribeResponse&& from) noexcept - : MarketDepthUpdatesSubscribeResponse() { - *this = ::std::move(from); - } - - inline MarketDepthUpdatesSubscribeResponse& operator=(const MarketDepthUpdatesSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthUpdatesSubscribeResponse& operator=(MarketDepthUpdatesSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthUpdatesSubscribeResponse& default_instance(); - - static inline const MarketDepthUpdatesSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthUpdatesSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 78; - - friend void swap(MarketDepthUpdatesSubscribeResponse& a, MarketDepthUpdatesSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthUpdatesSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthUpdatesSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthUpdatesSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthUpdatesSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthUpdatesSubscribeResponse& from); - void MergeFrom(const MarketDepthUpdatesSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthUpdatesSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthUpdatesSubscribeResponse"; - } - protected: - explicit MarketDepthUpdatesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUpdateFieldNumber = 1, - }; - // .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - bool has_update() const; - private: - bool _internal_has_update() const; - public: - void clear_update(); - const ::vega::MarketDepthUpdate& update() const; - ::vega::MarketDepthUpdate* release_update(); - ::vega::MarketDepthUpdate* mutable_update(); - void set_allocated_update(::vega::MarketDepthUpdate* update); - private: - const ::vega::MarketDepthUpdate& _internal_update() const; - ::vega::MarketDepthUpdate* _internal_mutable_update(); - public: - void unsafe_arena_set_allocated_update( - ::vega::MarketDepthUpdate* update); - ::vega::MarketDepthUpdate* unsafe_arena_release_update(); - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarketDepthUpdate* update_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PositionsSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PositionsSubscribeRequest) */ { - public: - inline PositionsSubscribeRequest() : PositionsSubscribeRequest(nullptr) {} - virtual ~PositionsSubscribeRequest(); - - PositionsSubscribeRequest(const PositionsSubscribeRequest& from); - PositionsSubscribeRequest(PositionsSubscribeRequest&& from) noexcept - : PositionsSubscribeRequest() { - *this = ::std::move(from); - } - - inline PositionsSubscribeRequest& operator=(const PositionsSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline PositionsSubscribeRequest& operator=(PositionsSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PositionsSubscribeRequest& default_instance(); - - static inline const PositionsSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_PositionsSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 79; - - friend void swap(PositionsSubscribeRequest& a, PositionsSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(PositionsSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PositionsSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PositionsSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PositionsSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PositionsSubscribeRequest& from); - void MergeFrom(const PositionsSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PositionsSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PositionsSubscribeRequest"; - } - protected: - explicit PositionsSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PositionsSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PositionsSubscribeResponse) */ { - public: - inline PositionsSubscribeResponse() : PositionsSubscribeResponse(nullptr) {} - virtual ~PositionsSubscribeResponse(); - - PositionsSubscribeResponse(const PositionsSubscribeResponse& from); - PositionsSubscribeResponse(PositionsSubscribeResponse&& from) noexcept - : PositionsSubscribeResponse() { - *this = ::std::move(from); - } - - inline PositionsSubscribeResponse& operator=(const PositionsSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline PositionsSubscribeResponse& operator=(PositionsSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PositionsSubscribeResponse& default_instance(); - - static inline const PositionsSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_PositionsSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 80; - - friend void swap(PositionsSubscribeResponse& a, PositionsSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(PositionsSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PositionsSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PositionsSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PositionsSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PositionsSubscribeResponse& from); - void MergeFrom(const PositionsSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PositionsSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PositionsSubscribeResponse"; - } - protected: - explicit PositionsSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPositionFieldNumber = 1, - }; - // .vega.Position position = 1 [json_name = "position"]; - bool has_position() const; - private: - bool _internal_has_position() const; - public: - void clear_position(); - const ::vega::Position& position() const; - ::vega::Position* release_position(); - ::vega::Position* mutable_position(); - void set_allocated_position(::vega::Position* position); - private: - const ::vega::Position& _internal_position() const; - ::vega::Position* _internal_mutable_position(); - public: - void unsafe_arena_set_allocated_position( - ::vega::Position* position); - ::vega::Position* unsafe_arena_release_position(); - - // @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Position* position_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersByMarketRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersByMarketRequest) */ { - public: - inline OrdersByMarketRequest() : OrdersByMarketRequest(nullptr) {} - virtual ~OrdersByMarketRequest(); - - OrdersByMarketRequest(const OrdersByMarketRequest& from); - OrdersByMarketRequest(OrdersByMarketRequest&& from) noexcept - : OrdersByMarketRequest() { - *this = ::std::move(from); - } - - inline OrdersByMarketRequest& operator=(const OrdersByMarketRequest& from) { - CopyFrom(from); - return *this; - } - inline OrdersByMarketRequest& operator=(OrdersByMarketRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersByMarketRequest& default_instance(); - - static inline const OrdersByMarketRequest* internal_default_instance() { - return reinterpret_cast( - &_OrdersByMarketRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 81; - - friend void swap(OrdersByMarketRequest& a, OrdersByMarketRequest& b) { - a.Swap(&b); - } - inline void Swap(OrdersByMarketRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersByMarketRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersByMarketRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersByMarketRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersByMarketRequest& from); - void MergeFrom(const OrdersByMarketRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersByMarketRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersByMarketRequest"; - } - protected: - explicit OrdersByMarketRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kPaginationFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - bool has_pagination() const; - private: - bool _internal_has_pagination() const; - public: - void clear_pagination(); - const ::api::v1::Pagination& pagination() const; - ::api::v1::Pagination* release_pagination(); - ::api::v1::Pagination* mutable_pagination(); - void set_allocated_pagination(::api::v1::Pagination* pagination); - private: - const ::api::v1::Pagination& _internal_pagination() const; - ::api::v1::Pagination* _internal_mutable_pagination(); - public: - void unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination); - ::api::v1::Pagination* unsafe_arena_release_pagination(); - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::api::v1::Pagination* pagination_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersByMarketResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersByMarketResponse) */ { - public: - inline OrdersByMarketResponse() : OrdersByMarketResponse(nullptr) {} - virtual ~OrdersByMarketResponse(); - - OrdersByMarketResponse(const OrdersByMarketResponse& from); - OrdersByMarketResponse(OrdersByMarketResponse&& from) noexcept - : OrdersByMarketResponse() { - *this = ::std::move(from); - } - - inline OrdersByMarketResponse& operator=(const OrdersByMarketResponse& from) { - CopyFrom(from); - return *this; - } - inline OrdersByMarketResponse& operator=(OrdersByMarketResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersByMarketResponse& default_instance(); - - static inline const OrdersByMarketResponse* internal_default_instance() { - return reinterpret_cast( - &_OrdersByMarketResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 82; - - friend void swap(OrdersByMarketResponse& a, OrdersByMarketResponse& b) { - a.Swap(&b); - } - inline void Swap(OrdersByMarketResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersByMarketResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersByMarketResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersByMarketResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersByMarketResponse& from); - void MergeFrom(const OrdersByMarketResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersByMarketResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersByMarketResponse"; - } - protected: - explicit OrdersByMarketResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrdersFieldNumber = 1, - }; - // repeated .vega.Order orders = 1 [json_name = "orders"]; - int orders_size() const; - private: - int _internal_orders_size() const; - public: - void clear_orders(); - ::vega::Order* mutable_orders(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* - mutable_orders(); - private: - const ::vega::Order& _internal_orders(int index) const; - ::vega::Order* _internal_add_orders(); - public: - const ::vega::Order& orders(int index) const; - ::vega::Order* add_orders(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& - orders() const; - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order > orders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersByPartyRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersByPartyRequest) */ { - public: - inline OrdersByPartyRequest() : OrdersByPartyRequest(nullptr) {} - virtual ~OrdersByPartyRequest(); - - OrdersByPartyRequest(const OrdersByPartyRequest& from); - OrdersByPartyRequest(OrdersByPartyRequest&& from) noexcept - : OrdersByPartyRequest() { - *this = ::std::move(from); - } - - inline OrdersByPartyRequest& operator=(const OrdersByPartyRequest& from) { - CopyFrom(from); - return *this; - } - inline OrdersByPartyRequest& operator=(OrdersByPartyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersByPartyRequest& default_instance(); - - static inline const OrdersByPartyRequest* internal_default_instance() { - return reinterpret_cast( - &_OrdersByPartyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 83; - - friend void swap(OrdersByPartyRequest& a, OrdersByPartyRequest& b) { - a.Swap(&b); - } - inline void Swap(OrdersByPartyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersByPartyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersByPartyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersByPartyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersByPartyRequest& from); - void MergeFrom(const OrdersByPartyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersByPartyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersByPartyRequest"; - } - protected: - explicit OrdersByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kPaginationFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - bool has_pagination() const; - private: - bool _internal_has_pagination() const; - public: - void clear_pagination(); - const ::api::v1::Pagination& pagination() const; - ::api::v1::Pagination* release_pagination(); - ::api::v1::Pagination* mutable_pagination(); - void set_allocated_pagination(::api::v1::Pagination* pagination); - private: - const ::api::v1::Pagination& _internal_pagination() const; - ::api::v1::Pagination* _internal_mutable_pagination(); - public: - void unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination); - ::api::v1::Pagination* unsafe_arena_release_pagination(); - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::api::v1::Pagination* pagination_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersByPartyResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersByPartyResponse) */ { - public: - inline OrdersByPartyResponse() : OrdersByPartyResponse(nullptr) {} - virtual ~OrdersByPartyResponse(); - - OrdersByPartyResponse(const OrdersByPartyResponse& from); - OrdersByPartyResponse(OrdersByPartyResponse&& from) noexcept - : OrdersByPartyResponse() { - *this = ::std::move(from); - } - - inline OrdersByPartyResponse& operator=(const OrdersByPartyResponse& from) { - CopyFrom(from); - return *this; - } - inline OrdersByPartyResponse& operator=(OrdersByPartyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersByPartyResponse& default_instance(); - - static inline const OrdersByPartyResponse* internal_default_instance() { - return reinterpret_cast( - &_OrdersByPartyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 84; - - friend void swap(OrdersByPartyResponse& a, OrdersByPartyResponse& b) { - a.Swap(&b); - } - inline void Swap(OrdersByPartyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersByPartyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersByPartyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersByPartyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersByPartyResponse& from); - void MergeFrom(const OrdersByPartyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersByPartyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersByPartyResponse"; - } - protected: - explicit OrdersByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrdersFieldNumber = 1, - }; - // repeated .vega.Order orders = 1 [json_name = "orders"]; - int orders_size() const; - private: - int _internal_orders_size() const; - public: - void clear_orders(); - ::vega::Order* mutable_orders(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* - mutable_orders(); - private: - const ::vega::Order& _internal_orders(int index) const; - ::vega::Order* _internal_add_orders(); - public: - const ::vega::Order& orders(int index) const; - ::vega::Order* add_orders(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& - orders() const; - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order > orders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByMarketAndIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByMarketAndIDRequest) */ { - public: - inline OrderByMarketAndIDRequest() : OrderByMarketAndIDRequest(nullptr) {} - virtual ~OrderByMarketAndIDRequest(); - - OrderByMarketAndIDRequest(const OrderByMarketAndIDRequest& from); - OrderByMarketAndIDRequest(OrderByMarketAndIDRequest&& from) noexcept - : OrderByMarketAndIDRequest() { - *this = ::std::move(from); - } - - inline OrderByMarketAndIDRequest& operator=(const OrderByMarketAndIDRequest& from) { - CopyFrom(from); - return *this; - } - inline OrderByMarketAndIDRequest& operator=(OrderByMarketAndIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByMarketAndIDRequest& default_instance(); - - static inline const OrderByMarketAndIDRequest* internal_default_instance() { - return reinterpret_cast( - &_OrderByMarketAndIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 85; - - friend void swap(OrderByMarketAndIDRequest& a, OrderByMarketAndIDRequest& b) { - a.Swap(&b); - } - inline void Swap(OrderByMarketAndIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByMarketAndIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByMarketAndIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByMarketAndIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByMarketAndIDRequest& from); - void MergeFrom(const OrderByMarketAndIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByMarketAndIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByMarketAndIDRequest"; - } - protected: - explicit OrderByMarketAndIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kOrderIdFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string order_id = 2 [json_name = "orderId", (.validator.field) = { - void clear_order_id(); - const std::string& order_id() const; - void set_order_id(const std::string& value); - void set_order_id(std::string&& value); - void set_order_id(const char* value); - void set_order_id(const char* value, size_t size); - std::string* mutable_order_id(); - std::string* release_order_id(); - void set_allocated_order_id(std::string* order_id); - private: - const std::string& _internal_order_id() const; - void _internal_set_order_id(const std::string& value); - std::string* _internal_mutable_order_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByMarketAndIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByMarketAndIDResponse) */ { - public: - inline OrderByMarketAndIDResponse() : OrderByMarketAndIDResponse(nullptr) {} - virtual ~OrderByMarketAndIDResponse(); - - OrderByMarketAndIDResponse(const OrderByMarketAndIDResponse& from); - OrderByMarketAndIDResponse(OrderByMarketAndIDResponse&& from) noexcept - : OrderByMarketAndIDResponse() { - *this = ::std::move(from); - } - - inline OrderByMarketAndIDResponse& operator=(const OrderByMarketAndIDResponse& from) { - CopyFrom(from); - return *this; - } - inline OrderByMarketAndIDResponse& operator=(OrderByMarketAndIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByMarketAndIDResponse& default_instance(); - - static inline const OrderByMarketAndIDResponse* internal_default_instance() { - return reinterpret_cast( - &_OrderByMarketAndIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 86; - - friend void swap(OrderByMarketAndIDResponse& a, OrderByMarketAndIDResponse& b) { - a.Swap(&b); - } - inline void Swap(OrderByMarketAndIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByMarketAndIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByMarketAndIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByMarketAndIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByMarketAndIDResponse& from); - void MergeFrom(const OrderByMarketAndIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByMarketAndIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByMarketAndIDResponse"; - } - protected: - explicit OrderByMarketAndIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFieldNumber = 1, - }; - // .vega.Order order = 1 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); - - // @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Order* order_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByReferenceRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByReferenceRequest) */ { - public: - inline OrderByReferenceRequest() : OrderByReferenceRequest(nullptr) {} - virtual ~OrderByReferenceRequest(); - - OrderByReferenceRequest(const OrderByReferenceRequest& from); - OrderByReferenceRequest(OrderByReferenceRequest&& from) noexcept - : OrderByReferenceRequest() { - *this = ::std::move(from); - } - - inline OrderByReferenceRequest& operator=(const OrderByReferenceRequest& from) { - CopyFrom(from); - return *this; - } - inline OrderByReferenceRequest& operator=(OrderByReferenceRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByReferenceRequest& default_instance(); - - static inline const OrderByReferenceRequest* internal_default_instance() { - return reinterpret_cast( - &_OrderByReferenceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 87; - - friend void swap(OrderByReferenceRequest& a, OrderByReferenceRequest& b) { - a.Swap(&b); - } - inline void Swap(OrderByReferenceRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByReferenceRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByReferenceRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByReferenceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByReferenceRequest& from); - void MergeFrom(const OrderByReferenceRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByReferenceRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByReferenceRequest"; - } - protected: - explicit OrderByReferenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReferenceFieldNumber = 1, - }; - // string reference = 1 [json_name = "reference", (.validator.field) = { - void clear_reference(); - const std::string& reference() const; - void set_reference(const std::string& value); - void set_reference(std::string&& value); - void set_reference(const char* value); - void set_reference(const char* value, size_t size); - std::string* mutable_reference(); - std::string* release_reference(); - void set_allocated_reference(std::string* reference); - private: - const std::string& _internal_reference() const; - void _internal_set_reference(const std::string& value); - std::string* _internal_mutable_reference(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByReferenceResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByReferenceResponse) */ { - public: - inline OrderByReferenceResponse() : OrderByReferenceResponse(nullptr) {} - virtual ~OrderByReferenceResponse(); - - OrderByReferenceResponse(const OrderByReferenceResponse& from); - OrderByReferenceResponse(OrderByReferenceResponse&& from) noexcept - : OrderByReferenceResponse() { - *this = ::std::move(from); - } - - inline OrderByReferenceResponse& operator=(const OrderByReferenceResponse& from) { - CopyFrom(from); - return *this; - } - inline OrderByReferenceResponse& operator=(OrderByReferenceResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByReferenceResponse& default_instance(); - - static inline const OrderByReferenceResponse* internal_default_instance() { - return reinterpret_cast( - &_OrderByReferenceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 88; - - friend void swap(OrderByReferenceResponse& a, OrderByReferenceResponse& b) { - a.Swap(&b); - } - inline void Swap(OrderByReferenceResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByReferenceResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByReferenceResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByReferenceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByReferenceResponse& from); - void MergeFrom(const OrderByReferenceResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByReferenceResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByReferenceResponse"; - } - protected: - explicit OrderByReferenceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFieldNumber = 1, - }; - // .vega.Order order = 1 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); - - // @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Order* order_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsRequest) */ { - public: - inline MarketsRequest() : MarketsRequest(nullptr) {} - virtual ~MarketsRequest(); - - MarketsRequest(const MarketsRequest& from); - MarketsRequest(MarketsRequest&& from) noexcept - : MarketsRequest() { - *this = ::std::move(from); - } - - inline MarketsRequest& operator=(const MarketsRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketsRequest& operator=(MarketsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsRequest& default_instance(); - - static inline const MarketsRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 89; - - friend void swap(MarketsRequest& a, MarketsRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsRequest& from); - void MergeFrom(const MarketsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsRequest"; - } - protected: - explicit MarketsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.MarketsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketsResponse) */ { - public: - inline MarketsResponse() : MarketsResponse(nullptr) {} - virtual ~MarketsResponse(); - - MarketsResponse(const MarketsResponse& from); - MarketsResponse(MarketsResponse&& from) noexcept - : MarketsResponse() { - *this = ::std::move(from); - } - - inline MarketsResponse& operator=(const MarketsResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketsResponse& operator=(MarketsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketsResponse& default_instance(); - - static inline const MarketsResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 90; - - friend void swap(MarketsResponse& a, MarketsResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketsResponse& from); - void MergeFrom(const MarketsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketsResponse"; - } - protected: - explicit MarketsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketsFieldNumber = 1, - }; - // repeated .vega.Market markets = 1 [json_name = "markets"]; - int markets_size() const; - private: - int _internal_markets_size() const; - public: - void clear_markets(); - ::vega::Market* mutable_markets(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >* - mutable_markets(); - private: - const ::vega::Market& _internal_markets(int index) const; - ::vega::Market* _internal_add_markets(); - public: - const ::vega::Market& markets(int index) const; - ::vega::Market* add_markets(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >& - markets() const; - - // @@protoc_insertion_point(class_scope:api.v1.MarketsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market > markets_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class CandlesRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.CandlesRequest) */ { - public: - inline CandlesRequest() : CandlesRequest(nullptr) {} - virtual ~CandlesRequest(); - - CandlesRequest(const CandlesRequest& from); - CandlesRequest(CandlesRequest&& from) noexcept - : CandlesRequest() { - *this = ::std::move(from); - } - - inline CandlesRequest& operator=(const CandlesRequest& from) { - CopyFrom(from); - return *this; - } - inline CandlesRequest& operator=(CandlesRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CandlesRequest& default_instance(); - - static inline const CandlesRequest* internal_default_instance() { - return reinterpret_cast( - &_CandlesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 91; - - friend void swap(CandlesRequest& a, CandlesRequest& b) { - a.Swap(&b); - } - inline void Swap(CandlesRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CandlesRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CandlesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CandlesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CandlesRequest& from); - void MergeFrom(const CandlesRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CandlesRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.CandlesRequest"; - } - protected: - explicit CandlesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kSinceTimestampFieldNumber = 2, - kIntervalFieldNumber = 3, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { - void clear_since_timestamp(); - ::PROTOBUF_NAMESPACE_ID::int64 since_timestamp() const; - void set_since_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_since_timestamp() const; - void _internal_set_since_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // .vega.Interval interval = 3 [json_name = "interval"]; - void clear_interval(); - ::vega::Interval interval() const; - void set_interval(::vega::Interval value); - private: - ::vega::Interval _internal_interval() const; - void _internal_set_interval(::vega::Interval value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.CandlesRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::int64 since_timestamp_; - int interval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class CandlesResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.CandlesResponse) */ { - public: - inline CandlesResponse() : CandlesResponse(nullptr) {} - virtual ~CandlesResponse(); - - CandlesResponse(const CandlesResponse& from); - CandlesResponse(CandlesResponse&& from) noexcept - : CandlesResponse() { - *this = ::std::move(from); - } - - inline CandlesResponse& operator=(const CandlesResponse& from) { - CopyFrom(from); - return *this; - } - inline CandlesResponse& operator=(CandlesResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CandlesResponse& default_instance(); - - static inline const CandlesResponse* internal_default_instance() { - return reinterpret_cast( - &_CandlesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 92; - - friend void swap(CandlesResponse& a, CandlesResponse& b) { - a.Swap(&b); - } - inline void Swap(CandlesResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CandlesResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CandlesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CandlesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CandlesResponse& from); - void MergeFrom(const CandlesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CandlesResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.CandlesResponse"; - } - protected: - explicit CandlesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCandlesFieldNumber = 1, - }; - // repeated .vega.Candle candles = 1 [json_name = "candles"]; - int candles_size() const; - private: - int _internal_candles_size() const; - public: - void clear_candles(); - ::vega::Candle* mutable_candles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Candle >* - mutable_candles(); - private: - const ::vega::Candle& _internal_candles(int index) const; - ::vega::Candle* _internal_add_candles(); - public: - const ::vega::Candle& candles(int index) const; - ::vega::Candle* add_candles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Candle >& - candles() const; - - // @@protoc_insertion_point(class_scope:api.v1.CandlesResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Candle > candles_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthRequest) */ { - public: - inline MarketDepthRequest() : MarketDepthRequest(nullptr) {} - virtual ~MarketDepthRequest(); - - MarketDepthRequest(const MarketDepthRequest& from); - MarketDepthRequest(MarketDepthRequest&& from) noexcept - : MarketDepthRequest() { - *this = ::std::move(from); - } - - inline MarketDepthRequest& operator=(const MarketDepthRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthRequest& operator=(MarketDepthRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthRequest& default_instance(); - - static inline const MarketDepthRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 93; - - friend void swap(MarketDepthRequest& a, MarketDepthRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthRequest& from); - void MergeFrom(const MarketDepthRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthRequest"; - } - protected: - explicit MarketDepthRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kMaxDepthFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // uint64 max_depth = 2 [json_name = "maxDepth"]; - void clear_max_depth(); - ::PROTOBUF_NAMESPACE_ID::uint64 max_depth() const; - void set_max_depth(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_max_depth() const; - void _internal_set_max_depth(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 max_depth_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketDepthResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketDepthResponse) */ { - public: - inline MarketDepthResponse() : MarketDepthResponse(nullptr) {} - virtual ~MarketDepthResponse(); - - MarketDepthResponse(const MarketDepthResponse& from); - MarketDepthResponse(MarketDepthResponse&& from) noexcept - : MarketDepthResponse() { - *this = ::std::move(from); - } - - inline MarketDepthResponse& operator=(const MarketDepthResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketDepthResponse& operator=(MarketDepthResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketDepthResponse& default_instance(); - - static inline const MarketDepthResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketDepthResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 94; - - friend void swap(MarketDepthResponse& a, MarketDepthResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketDepthResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketDepthResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketDepthResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketDepthResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketDepthResponse& from); - void MergeFrom(const MarketDepthResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketDepthResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketDepthResponse"; - } - protected: - explicit MarketDepthResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBuyFieldNumber = 2, - kSellFieldNumber = 3, - kMarketIdFieldNumber = 1, - kLastTradeFieldNumber = 4, - kSequenceNumberFieldNumber = 5, - }; - // repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - int buy_size() const; - private: - int _internal_buy_size() const; - public: - void clear_buy(); - ::vega::PriceLevel* mutable_buy(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* - mutable_buy(); - private: - const ::vega::PriceLevel& _internal_buy(int index) const; - ::vega::PriceLevel* _internal_add_buy(); - public: - const ::vega::PriceLevel& buy(int index) const; - ::vega::PriceLevel* add_buy(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& - buy() const; - - // repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - int sell_size() const; - private: - int _internal_sell_size() const; - public: - void clear_sell(); - ::vega::PriceLevel* mutable_sell(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* - mutable_sell(); - private: - const ::vega::PriceLevel& _internal_sell(int index) const; - ::vega::PriceLevel* _internal_add_sell(); - public: - const ::vega::PriceLevel& sell(int index) const; - ::vega::PriceLevel* add_sell(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& - sell() const; - - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - bool has_last_trade() const; - private: - bool _internal_has_last_trade() const; - public: - void clear_last_trade(); - const ::vega::Trade& last_trade() const; - ::vega::Trade* release_last_trade(); - ::vega::Trade* mutable_last_trade(); - void set_allocated_last_trade(::vega::Trade* last_trade); - private: - const ::vega::Trade& _internal_last_trade() const; - ::vega::Trade* _internal_mutable_last_trade(); - public: - void unsafe_arena_set_allocated_last_trade( - ::vega::Trade* last_trade); - ::vega::Trade* unsafe_arena_release_last_trade(); - - // uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - void clear_sequence_number(); - ::PROTOBUF_NAMESPACE_ID::uint64 sequence_number() const; - void set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_sequence_number() const; - void _internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel > buy_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel > sell_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::vega::Trade* last_trade_; - ::PROTOBUF_NAMESPACE_ID::uint64 sequence_number_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByMarketRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByMarketRequest) */ { - public: - inline TradesByMarketRequest() : TradesByMarketRequest(nullptr) {} - virtual ~TradesByMarketRequest(); - - TradesByMarketRequest(const TradesByMarketRequest& from); - TradesByMarketRequest(TradesByMarketRequest&& from) noexcept - : TradesByMarketRequest() { - *this = ::std::move(from); - } - - inline TradesByMarketRequest& operator=(const TradesByMarketRequest& from) { - CopyFrom(from); - return *this; - } - inline TradesByMarketRequest& operator=(TradesByMarketRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByMarketRequest& default_instance(); - - static inline const TradesByMarketRequest* internal_default_instance() { - return reinterpret_cast( - &_TradesByMarketRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 95; - - friend void swap(TradesByMarketRequest& a, TradesByMarketRequest& b) { - a.Swap(&b); - } - inline void Swap(TradesByMarketRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByMarketRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByMarketRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByMarketRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByMarketRequest& from); - void MergeFrom(const TradesByMarketRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByMarketRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByMarketRequest"; - } - protected: - explicit TradesByMarketRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kPaginationFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - bool has_pagination() const; - private: - bool _internal_has_pagination() const; - public: - void clear_pagination(); - const ::api::v1::Pagination& pagination() const; - ::api::v1::Pagination* release_pagination(); - ::api::v1::Pagination* mutable_pagination(); - void set_allocated_pagination(::api::v1::Pagination* pagination); - private: - const ::api::v1::Pagination& _internal_pagination() const; - ::api::v1::Pagination* _internal_mutable_pagination(); - public: - void unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination); - ::api::v1::Pagination* unsafe_arena_release_pagination(); - - // @@protoc_insertion_point(class_scope:api.v1.TradesByMarketRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::api::v1::Pagination* pagination_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesByMarketResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesByMarketResponse) */ { - public: - inline TradesByMarketResponse() : TradesByMarketResponse(nullptr) {} - virtual ~TradesByMarketResponse(); - - TradesByMarketResponse(const TradesByMarketResponse& from); - TradesByMarketResponse(TradesByMarketResponse&& from) noexcept - : TradesByMarketResponse() { - *this = ::std::move(from); - } - - inline TradesByMarketResponse& operator=(const TradesByMarketResponse& from) { - CopyFrom(from); - return *this; - } - inline TradesByMarketResponse& operator=(TradesByMarketResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesByMarketResponse& default_instance(); - - static inline const TradesByMarketResponse* internal_default_instance() { - return reinterpret_cast( - &_TradesByMarketResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 96; - - friend void swap(TradesByMarketResponse& a, TradesByMarketResponse& b) { - a.Swap(&b); - } - inline void Swap(TradesByMarketResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesByMarketResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesByMarketResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesByMarketResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesByMarketResponse& from); - void MergeFrom(const TradesByMarketResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesByMarketResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesByMarketResponse"; - } - protected: - explicit TradesByMarketResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTradesFieldNumber = 1, - }; - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - int trades_size() const; - private: - int _internal_trades_size() const; - public: - void clear_trades(); - ::vega::Trade* mutable_trades(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* - mutable_trades(); - private: - const ::vega::Trade& _internal_trades(int index) const; - ::vega::Trade* _internal_add_trades(); - public: - const ::vega::Trade& trades(int index) const; - ::vega::Trade* add_trades(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& - trades() const; - - // @@protoc_insertion_point(class_scope:api.v1.TradesByMarketResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade > trades_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PositionsByPartyRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PositionsByPartyRequest) */ { - public: - inline PositionsByPartyRequest() : PositionsByPartyRequest(nullptr) {} - virtual ~PositionsByPartyRequest(); - - PositionsByPartyRequest(const PositionsByPartyRequest& from); - PositionsByPartyRequest(PositionsByPartyRequest&& from) noexcept - : PositionsByPartyRequest() { - *this = ::std::move(from); - } - - inline PositionsByPartyRequest& operator=(const PositionsByPartyRequest& from) { - CopyFrom(from); - return *this; - } - inline PositionsByPartyRequest& operator=(PositionsByPartyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PositionsByPartyRequest& default_instance(); - - static inline const PositionsByPartyRequest* internal_default_instance() { - return reinterpret_cast( - &_PositionsByPartyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 97; - - friend void swap(PositionsByPartyRequest& a, PositionsByPartyRequest& b) { - a.Swap(&b); - } - inline void Swap(PositionsByPartyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PositionsByPartyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PositionsByPartyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PositionsByPartyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PositionsByPartyRequest& from); - void MergeFrom(const PositionsByPartyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PositionsByPartyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PositionsByPartyRequest"; - } - protected: - explicit PositionsByPartyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PositionsByPartyResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PositionsByPartyResponse) */ { - public: - inline PositionsByPartyResponse() : PositionsByPartyResponse(nullptr) {} - virtual ~PositionsByPartyResponse(); - - PositionsByPartyResponse(const PositionsByPartyResponse& from); - PositionsByPartyResponse(PositionsByPartyResponse&& from) noexcept - : PositionsByPartyResponse() { - *this = ::std::move(from); - } - - inline PositionsByPartyResponse& operator=(const PositionsByPartyResponse& from) { - CopyFrom(from); - return *this; - } - inline PositionsByPartyResponse& operator=(PositionsByPartyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PositionsByPartyResponse& default_instance(); - - static inline const PositionsByPartyResponse* internal_default_instance() { - return reinterpret_cast( - &_PositionsByPartyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 98; - - friend void swap(PositionsByPartyResponse& a, PositionsByPartyResponse& b) { - a.Swap(&b); - } - inline void Swap(PositionsByPartyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PositionsByPartyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PositionsByPartyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PositionsByPartyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PositionsByPartyResponse& from); - void MergeFrom(const PositionsByPartyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PositionsByPartyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PositionsByPartyResponse"; - } - protected: - explicit PositionsByPartyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPositionsFieldNumber = 1, - }; - // repeated .vega.Position positions = 1 [json_name = "positions"]; - int positions_size() const; - private: - int _internal_positions_size() const; - public: - void clear_positions(); - ::vega::Position* mutable_positions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Position >* - mutable_positions(); - private: - const ::vega::Position& _internal_positions(int index) const; - ::vega::Position* _internal_add_positions(); - public: - const ::vega::Position& positions(int index) const; - ::vega::Position* add_positions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Position >& - positions() const; - - // @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Position > positions_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetVegaTimeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVegaTimeRequest) */ { - public: - inline GetVegaTimeRequest() : GetVegaTimeRequest(nullptr) {} - virtual ~GetVegaTimeRequest(); - - GetVegaTimeRequest(const GetVegaTimeRequest& from); - GetVegaTimeRequest(GetVegaTimeRequest&& from) noexcept - : GetVegaTimeRequest() { - *this = ::std::move(from); - } - - inline GetVegaTimeRequest& operator=(const GetVegaTimeRequest& from) { - CopyFrom(from); - return *this; - } - inline GetVegaTimeRequest& operator=(GetVegaTimeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetVegaTimeRequest& default_instance(); - - static inline const GetVegaTimeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetVegaTimeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 99; - - friend void swap(GetVegaTimeRequest& a, GetVegaTimeRequest& b) { - a.Swap(&b); - } - inline void Swap(GetVegaTimeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetVegaTimeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetVegaTimeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVegaTimeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetVegaTimeRequest& from); - void MergeFrom(const GetVegaTimeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetVegaTimeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetVegaTimeRequest"; - } - protected: - explicit GetVegaTimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class GetVegaTimeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.GetVegaTimeResponse) */ { - public: - inline GetVegaTimeResponse() : GetVegaTimeResponse(nullptr) {} - virtual ~GetVegaTimeResponse(); - - GetVegaTimeResponse(const GetVegaTimeResponse& from); - GetVegaTimeResponse(GetVegaTimeResponse&& from) noexcept - : GetVegaTimeResponse() { - *this = ::std::move(from); - } - - inline GetVegaTimeResponse& operator=(const GetVegaTimeResponse& from) { - CopyFrom(from); - return *this; - } - inline GetVegaTimeResponse& operator=(GetVegaTimeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GetVegaTimeResponse& default_instance(); - - static inline const GetVegaTimeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetVegaTimeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 100; - - friend void swap(GetVegaTimeResponse& a, GetVegaTimeResponse& b) { - a.Swap(&b); - } - inline void Swap(GetVegaTimeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetVegaTimeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetVegaTimeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVegaTimeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GetVegaTimeResponse& from); - void MergeFrom(const GetVegaTimeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetVegaTimeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.GetVegaTimeResponse"; - } - protected: - explicit GetVegaTimeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTimestampFieldNumber = 1, - }; - // int64 timestamp = 1 [json_name = "timestamp"]; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class Pagination PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.Pagination) */ { - public: - inline Pagination() : Pagination(nullptr) {} - virtual ~Pagination(); - - Pagination(const Pagination& from); - Pagination(Pagination&& from) noexcept - : Pagination() { - *this = ::std::move(from); - } - - inline Pagination& operator=(const Pagination& from) { - CopyFrom(from); - return *this; - } - inline Pagination& operator=(Pagination&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Pagination& default_instance(); - - static inline const Pagination* internal_default_instance() { - return reinterpret_cast( - &_Pagination_default_instance_); - } - static constexpr int kIndexInFileMessages = - 101; - - friend void swap(Pagination& a, Pagination& b) { - a.Swap(&b); - } - inline void Swap(Pagination* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Pagination* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Pagination* New() const final { - return CreateMaybeMessage(nullptr); - } - - Pagination* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Pagination& from); - void MergeFrom(const Pagination& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Pagination* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.Pagination"; - } - protected: - explicit Pagination(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSkipFieldNumber = 1, - kLimitFieldNumber = 2, - kDescendingFieldNumber = 3, - }; - // uint64 skip = 1 [json_name = "skip"]; - void clear_skip(); - ::PROTOBUF_NAMESPACE_ID::uint64 skip() const; - void set_skip(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_skip() const; - void _internal_set_skip(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 limit = 2 [json_name = "limit"]; - void clear_limit(); - ::PROTOBUF_NAMESPACE_ID::uint64 limit() const; - void set_limit(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_limit() const; - void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // bool descending = 3 [json_name = "descending"]; - void clear_descending(); - bool descending() const; - void set_descending(bool value); - private: - bool _internal_descending() const; - void _internal_set_descending(bool value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.Pagination) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 skip_; - ::PROTOBUF_NAMESPACE_ID::uint64 limit_; - bool descending_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrdersSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrdersSubscribeResponse) */ { - public: - inline OrdersSubscribeResponse() : OrdersSubscribeResponse(nullptr) {} - virtual ~OrdersSubscribeResponse(); - - OrdersSubscribeResponse(const OrdersSubscribeResponse& from); - OrdersSubscribeResponse(OrdersSubscribeResponse&& from) noexcept - : OrdersSubscribeResponse() { - *this = ::std::move(from); - } - - inline OrdersSubscribeResponse& operator=(const OrdersSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline OrdersSubscribeResponse& operator=(OrdersSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrdersSubscribeResponse& default_instance(); - - static inline const OrdersSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_OrdersSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 102; - - friend void swap(OrdersSubscribeResponse& a, OrdersSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(OrdersSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrdersSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrdersSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrdersSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrdersSubscribeResponse& from); - void MergeFrom(const OrdersSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrdersSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrdersSubscribeResponse"; - } - protected: - explicit OrdersSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrdersFieldNumber = 1, - }; - // repeated .vega.Order orders = 1 [json_name = "orders"]; - int orders_size() const; - private: - int _internal_orders_size() const; - public: - void clear_orders(); - ::vega::Order* mutable_orders(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* - mutable_orders(); - private: - const ::vega::Order& _internal_orders(int index) const; - ::vega::Order* _internal_add_orders(); - public: - const ::vega::Order& orders(int index) const; - ::vega::Order* add_orders(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& - orders() const; - - // @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order > orders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TradesSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TradesSubscribeResponse) */ { - public: - inline TradesSubscribeResponse() : TradesSubscribeResponse(nullptr) {} - virtual ~TradesSubscribeResponse(); - - TradesSubscribeResponse(const TradesSubscribeResponse& from); - TradesSubscribeResponse(TradesSubscribeResponse&& from) noexcept - : TradesSubscribeResponse() { - *this = ::std::move(from); - } - - inline TradesSubscribeResponse& operator=(const TradesSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline TradesSubscribeResponse& operator=(TradesSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TradesSubscribeResponse& default_instance(); - - static inline const TradesSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_TradesSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 103; - - friend void swap(TradesSubscribeResponse& a, TradesSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(TradesSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TradesSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TradesSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TradesSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradesSubscribeResponse& from); - void MergeFrom(const TradesSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TradesSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TradesSubscribeResponse"; - } - protected: - explicit TradesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTradesFieldNumber = 1, - }; - // repeated .vega.Trade trades = 1 [json_name = "trades"]; - int trades_size() const; - private: - int _internal_trades_size() const; - public: - void clear_trades(); - ::vega::Trade* mutable_trades(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* - mutable_trades(); - private: - const ::vega::Trade& _internal_trades(int index) const; - ::vega::Trade* _internal_add_trades(); - public: - const ::vega::Trade& trades(int index) const; - ::vega::Trade* add_trades(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& - trades() const; - - // @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade > trades_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TransferResponsesSubscribeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TransferResponsesSubscribeRequest) */ { - public: - inline TransferResponsesSubscribeRequest() : TransferResponsesSubscribeRequest(nullptr) {} - virtual ~TransferResponsesSubscribeRequest(); - - TransferResponsesSubscribeRequest(const TransferResponsesSubscribeRequest& from); - TransferResponsesSubscribeRequest(TransferResponsesSubscribeRequest&& from) noexcept - : TransferResponsesSubscribeRequest() { - *this = ::std::move(from); - } - - inline TransferResponsesSubscribeRequest& operator=(const TransferResponsesSubscribeRequest& from) { - CopyFrom(from); - return *this; - } - inline TransferResponsesSubscribeRequest& operator=(TransferResponsesSubscribeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TransferResponsesSubscribeRequest& default_instance(); - - static inline const TransferResponsesSubscribeRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferResponsesSubscribeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 104; - - friend void swap(TransferResponsesSubscribeRequest& a, TransferResponsesSubscribeRequest& b) { - a.Swap(&b); - } - inline void Swap(TransferResponsesSubscribeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransferResponsesSubscribeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TransferResponsesSubscribeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TransferResponsesSubscribeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TransferResponsesSubscribeRequest& from); - void MergeFrom(const TransferResponsesSubscribeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferResponsesSubscribeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TransferResponsesSubscribeRequest"; - } - protected: - explicit TransferResponsesSubscribeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class TransferResponsesSubscribeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.TransferResponsesSubscribeResponse) */ { - public: - inline TransferResponsesSubscribeResponse() : TransferResponsesSubscribeResponse(nullptr) {} - virtual ~TransferResponsesSubscribeResponse(); - - TransferResponsesSubscribeResponse(const TransferResponsesSubscribeResponse& from); - TransferResponsesSubscribeResponse(TransferResponsesSubscribeResponse&& from) noexcept - : TransferResponsesSubscribeResponse() { - *this = ::std::move(from); - } - - inline TransferResponsesSubscribeResponse& operator=(const TransferResponsesSubscribeResponse& from) { - CopyFrom(from); - return *this; - } - inline TransferResponsesSubscribeResponse& operator=(TransferResponsesSubscribeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const TransferResponsesSubscribeResponse& default_instance(); - - static inline const TransferResponsesSubscribeResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferResponsesSubscribeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 105; - - friend void swap(TransferResponsesSubscribeResponse& a, TransferResponsesSubscribeResponse& b) { - a.Swap(&b); - } - inline void Swap(TransferResponsesSubscribeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransferResponsesSubscribeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TransferResponsesSubscribeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TransferResponsesSubscribeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TransferResponsesSubscribeResponse& from); - void MergeFrom(const TransferResponsesSubscribeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferResponsesSubscribeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.TransferResponsesSubscribeResponse"; - } - protected: - explicit TransferResponsesSubscribeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kResponseFieldNumber = 1, - }; - // .vega.TransferResponse response = 1 [json_name = "response"]; - bool has_response() const; - private: - bool _internal_has_response() const; - public: - void clear_response(); - const ::vega::TransferResponse& response() const; - ::vega::TransferResponse* release_response(); - ::vega::TransferResponse* mutable_response(); - void set_allocated_response(::vega::TransferResponse* response); - private: - const ::vega::TransferResponse& _internal_response() const; - ::vega::TransferResponse* _internal_mutable_response(); - public: - void unsafe_arena_set_allocated_response( - ::vega::TransferResponse* response); - ::vega::TransferResponse* unsafe_arena_release_response(); - - // @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::TransferResponse* response_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartyAccountsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartyAccountsRequest) */ { - public: - inline PartyAccountsRequest() : PartyAccountsRequest(nullptr) {} - virtual ~PartyAccountsRequest(); - - PartyAccountsRequest(const PartyAccountsRequest& from); - PartyAccountsRequest(PartyAccountsRequest&& from) noexcept - : PartyAccountsRequest() { - *this = ::std::move(from); - } - - inline PartyAccountsRequest& operator=(const PartyAccountsRequest& from) { - CopyFrom(from); - return *this; - } - inline PartyAccountsRequest& operator=(PartyAccountsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartyAccountsRequest& default_instance(); - - static inline const PartyAccountsRequest* internal_default_instance() { - return reinterpret_cast( - &_PartyAccountsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 106; - - friend void swap(PartyAccountsRequest& a, PartyAccountsRequest& b) { - a.Swap(&b); - } - inline void Swap(PartyAccountsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartyAccountsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartyAccountsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartyAccountsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartyAccountsRequest& from); - void MergeFrom(const PartyAccountsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartyAccountsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartyAccountsRequest"; - } - protected: - explicit PartyAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - kMarketIdFieldNumber = 2, - kAssetFieldNumber = 4, - kTypeFieldNumber = 3, - }; - // string party_id = 1 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string asset = 4 [json_name = "asset"]; - void clear_asset(); - const std::string& asset() const; - void set_asset(const std::string& value); - void set_asset(std::string&& value); - void set_asset(const char* value); - void set_asset(const char* value, size_t size); - std::string* mutable_asset(); - std::string* release_asset(); - void set_allocated_asset(std::string* asset); - private: - const std::string& _internal_asset() const; - void _internal_set_asset(const std::string& value); - std::string* _internal_mutable_asset(); - public: - - // .vega.AccountType type = 3 [json_name = "type"]; - void clear_type(); - ::vega::AccountType type() const; - void set_type(::vega::AccountType value); - private: - ::vega::AccountType _internal_type() const; - void _internal_set_type(::vega::AccountType value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PartyAccountsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PartyAccountsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PartyAccountsResponse) */ { - public: - inline PartyAccountsResponse() : PartyAccountsResponse(nullptr) {} - virtual ~PartyAccountsResponse(); - - PartyAccountsResponse(const PartyAccountsResponse& from); - PartyAccountsResponse(PartyAccountsResponse&& from) noexcept - : PartyAccountsResponse() { - *this = ::std::move(from); - } - - inline PartyAccountsResponse& operator=(const PartyAccountsResponse& from) { - CopyFrom(from); - return *this; - } - inline PartyAccountsResponse& operator=(PartyAccountsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PartyAccountsResponse& default_instance(); - - static inline const PartyAccountsResponse* internal_default_instance() { - return reinterpret_cast( - &_PartyAccountsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 107; - - friend void swap(PartyAccountsResponse& a, PartyAccountsResponse& b) { - a.Swap(&b); - } - inline void Swap(PartyAccountsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartyAccountsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PartyAccountsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartyAccountsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PartyAccountsResponse& from); - void MergeFrom(const PartyAccountsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartyAccountsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PartyAccountsResponse"; - } - protected: - explicit PartyAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAccountsFieldNumber = 1, - }; - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - int accounts_size() const; - private: - int _internal_accounts_size() const; - public: - void clear_accounts(); - ::vega::Account* mutable_accounts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* - mutable_accounts(); - private: - const ::vega::Account& _internal_accounts(int index) const; - ::vega::Account* _internal_add_accounts(); - public: - const ::vega::Account& accounts(int index) const; - ::vega::Account* add_accounts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& - accounts() const; - - // @@protoc_insertion_point(class_scope:api.v1.PartyAccountsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account > accounts_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketAccountsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketAccountsRequest) */ { - public: - inline MarketAccountsRequest() : MarketAccountsRequest(nullptr) {} - virtual ~MarketAccountsRequest(); - - MarketAccountsRequest(const MarketAccountsRequest& from); - MarketAccountsRequest(MarketAccountsRequest&& from) noexcept - : MarketAccountsRequest() { - *this = ::std::move(from); - } - - inline MarketAccountsRequest& operator=(const MarketAccountsRequest& from) { - CopyFrom(from); - return *this; - } - inline MarketAccountsRequest& operator=(MarketAccountsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketAccountsRequest& default_instance(); - - static inline const MarketAccountsRequest* internal_default_instance() { - return reinterpret_cast( - &_MarketAccountsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 108; - - friend void swap(MarketAccountsRequest& a, MarketAccountsRequest& b) { - a.Swap(&b); - } - inline void Swap(MarketAccountsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketAccountsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketAccountsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketAccountsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketAccountsRequest& from); - void MergeFrom(const MarketAccountsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketAccountsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketAccountsRequest"; - } - protected: - explicit MarketAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kAssetFieldNumber = 2, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string asset = 2 [json_name = "asset"]; - void clear_asset(); - const std::string& asset() const; - void set_asset(const std::string& value); - void set_asset(std::string&& value); - void set_asset(const char* value); - void set_asset(const char* value, size_t size); - std::string* mutable_asset(); - std::string* release_asset(); - void set_allocated_asset(std::string* asset); - private: - const std::string& _internal_asset() const; - void _internal_set_asset(const std::string& value); - std::string* _internal_mutable_asset(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.MarketAccountsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class MarketAccountsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.MarketAccountsResponse) */ { - public: - inline MarketAccountsResponse() : MarketAccountsResponse(nullptr) {} - virtual ~MarketAccountsResponse(); - - MarketAccountsResponse(const MarketAccountsResponse& from); - MarketAccountsResponse(MarketAccountsResponse&& from) noexcept - : MarketAccountsResponse() { - *this = ::std::move(from); - } - - inline MarketAccountsResponse& operator=(const MarketAccountsResponse& from) { - CopyFrom(from); - return *this; - } - inline MarketAccountsResponse& operator=(MarketAccountsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const MarketAccountsResponse& default_instance(); - - static inline const MarketAccountsResponse* internal_default_instance() { - return reinterpret_cast( - &_MarketAccountsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 109; - - friend void swap(MarketAccountsResponse& a, MarketAccountsResponse& b) { - a.Swap(&b); - } - inline void Swap(MarketAccountsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MarketAccountsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MarketAccountsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - MarketAccountsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketAccountsResponse& from); - void MergeFrom(const MarketAccountsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MarketAccountsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.MarketAccountsResponse"; - } - protected: - explicit MarketAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAccountsFieldNumber = 1, - }; - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - int accounts_size() const; - private: - int _internal_accounts_size() const; - public: - void clear_accounts(); - ::vega::Account* mutable_accounts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* - mutable_accounts(); - private: - const ::vega::Account& _internal_accounts(int index) const; - ::vega::Account* _internal_add_accounts(); - public: - const ::vega::Account& accounts(int index) const; - ::vega::Account* add_accounts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& - accounts() const; - - // @@protoc_insertion_point(class_scope:api.v1.MarketAccountsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account > accounts_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class FeeInfrastructureAccountsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.FeeInfrastructureAccountsRequest) */ { - public: - inline FeeInfrastructureAccountsRequest() : FeeInfrastructureAccountsRequest(nullptr) {} - virtual ~FeeInfrastructureAccountsRequest(); - - FeeInfrastructureAccountsRequest(const FeeInfrastructureAccountsRequest& from); - FeeInfrastructureAccountsRequest(FeeInfrastructureAccountsRequest&& from) noexcept - : FeeInfrastructureAccountsRequest() { - *this = ::std::move(from); - } - - inline FeeInfrastructureAccountsRequest& operator=(const FeeInfrastructureAccountsRequest& from) { - CopyFrom(from); - return *this; - } - inline FeeInfrastructureAccountsRequest& operator=(FeeInfrastructureAccountsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FeeInfrastructureAccountsRequest& default_instance(); - - static inline const FeeInfrastructureAccountsRequest* internal_default_instance() { - return reinterpret_cast( - &_FeeInfrastructureAccountsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 110; - - friend void swap(FeeInfrastructureAccountsRequest& a, FeeInfrastructureAccountsRequest& b) { - a.Swap(&b); - } - inline void Swap(FeeInfrastructureAccountsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FeeInfrastructureAccountsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FeeInfrastructureAccountsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - FeeInfrastructureAccountsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FeeInfrastructureAccountsRequest& from); - void MergeFrom(const FeeInfrastructureAccountsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeeInfrastructureAccountsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.FeeInfrastructureAccountsRequest"; - } - protected: - explicit FeeInfrastructureAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAssetFieldNumber = 1, - }; - // string asset = 1 [json_name = "asset"]; - void clear_asset(); - const std::string& asset() const; - void set_asset(const std::string& value); - void set_asset(std::string&& value); - void set_asset(const char* value); - void set_asset(const char* value, size_t size); - std::string* mutable_asset(); - std::string* release_asset(); - void set_allocated_asset(std::string* asset); - private: - const std::string& _internal_asset() const; - void _internal_set_asset(const std::string& value); - std::string* _internal_mutable_asset(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class FeeInfrastructureAccountsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.FeeInfrastructureAccountsResponse) */ { - public: - inline FeeInfrastructureAccountsResponse() : FeeInfrastructureAccountsResponse(nullptr) {} - virtual ~FeeInfrastructureAccountsResponse(); - - FeeInfrastructureAccountsResponse(const FeeInfrastructureAccountsResponse& from); - FeeInfrastructureAccountsResponse(FeeInfrastructureAccountsResponse&& from) noexcept - : FeeInfrastructureAccountsResponse() { - *this = ::std::move(from); - } - - inline FeeInfrastructureAccountsResponse& operator=(const FeeInfrastructureAccountsResponse& from) { - CopyFrom(from); - return *this; - } - inline FeeInfrastructureAccountsResponse& operator=(FeeInfrastructureAccountsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const FeeInfrastructureAccountsResponse& default_instance(); - - static inline const FeeInfrastructureAccountsResponse* internal_default_instance() { - return reinterpret_cast( - &_FeeInfrastructureAccountsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 111; - - friend void swap(FeeInfrastructureAccountsResponse& a, FeeInfrastructureAccountsResponse& b) { - a.Swap(&b); - } - inline void Swap(FeeInfrastructureAccountsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FeeInfrastructureAccountsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline FeeInfrastructureAccountsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - FeeInfrastructureAccountsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FeeInfrastructureAccountsResponse& from); - void MergeFrom(const FeeInfrastructureAccountsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeeInfrastructureAccountsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.FeeInfrastructureAccountsResponse"; - } - protected: - explicit FeeInfrastructureAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAccountsFieldNumber = 1, - }; - // repeated .vega.Account accounts = 1 [json_name = "accounts"]; - int accounts_size() const; - private: - int _internal_accounts_size() const; - public: - void clear_accounts(); - ::vega::Account* mutable_accounts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* - mutable_accounts(); - private: - const ::vega::Account& _internal_accounts(int index) const; - ::vega::Account* _internal_add_accounts(); - public: - const ::vega::Account& accounts(int index) const; - ::vega::Account* add_accounts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& - accounts() const; - - // @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account > accounts_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareProposalSubmissionRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareProposalSubmissionRequest) */ { - public: - inline PrepareProposalSubmissionRequest() : PrepareProposalSubmissionRequest(nullptr) {} - virtual ~PrepareProposalSubmissionRequest(); - - PrepareProposalSubmissionRequest(const PrepareProposalSubmissionRequest& from); - PrepareProposalSubmissionRequest(PrepareProposalSubmissionRequest&& from) noexcept - : PrepareProposalSubmissionRequest() { - *this = ::std::move(from); - } - - inline PrepareProposalSubmissionRequest& operator=(const PrepareProposalSubmissionRequest& from) { - CopyFrom(from); - return *this; - } - inline PrepareProposalSubmissionRequest& operator=(PrepareProposalSubmissionRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareProposalSubmissionRequest& default_instance(); - - static inline const PrepareProposalSubmissionRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareProposalSubmissionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 112; - - friend void swap(PrepareProposalSubmissionRequest& a, PrepareProposalSubmissionRequest& b) { - a.Swap(&b); - } - inline void Swap(PrepareProposalSubmissionRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareProposalSubmissionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareProposalSubmissionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareProposalSubmissionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareProposalSubmissionRequest& from); - void MergeFrom(const PrepareProposalSubmissionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareProposalSubmissionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareProposalSubmissionRequest"; - } - protected: - explicit PrepareProposalSubmissionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubmissionFieldNumber = 1, - }; - // .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - bool has_submission() const; - private: - bool _internal_has_submission() const; - public: - void clear_submission(); - const ::vega::commands::v1::ProposalSubmission& submission() const; - ::vega::commands::v1::ProposalSubmission* release_submission(); - ::vega::commands::v1::ProposalSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::ProposalSubmission* submission); - private: - const ::vega::commands::v1::ProposalSubmission& _internal_submission() const; - ::vega::commands::v1::ProposalSubmission* _internal_mutable_submission(); - public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::ProposalSubmission* submission); - ::vega::commands::v1::ProposalSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::commands::v1::ProposalSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareProposalSubmissionResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareProposalSubmissionResponse) */ { - public: - inline PrepareProposalSubmissionResponse() : PrepareProposalSubmissionResponse(nullptr) {} - virtual ~PrepareProposalSubmissionResponse(); - - PrepareProposalSubmissionResponse(const PrepareProposalSubmissionResponse& from); - PrepareProposalSubmissionResponse(PrepareProposalSubmissionResponse&& from) noexcept - : PrepareProposalSubmissionResponse() { - *this = ::std::move(from); - } - - inline PrepareProposalSubmissionResponse& operator=(const PrepareProposalSubmissionResponse& from) { - CopyFrom(from); - return *this; - } - inline PrepareProposalSubmissionResponse& operator=(PrepareProposalSubmissionResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareProposalSubmissionResponse& default_instance(); - - static inline const PrepareProposalSubmissionResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareProposalSubmissionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 113; - - friend void swap(PrepareProposalSubmissionResponse& a, PrepareProposalSubmissionResponse& b) { - a.Swap(&b); - } - inline void Swap(PrepareProposalSubmissionResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareProposalSubmissionResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareProposalSubmissionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareProposalSubmissionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareProposalSubmissionResponse& from); - void MergeFrom(const PrepareProposalSubmissionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareProposalSubmissionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareProposalSubmissionResponse"; - } - protected: - explicit PrepareProposalSubmissionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBlobFieldNumber = 1, - kSubmissionFieldNumber = 2, - }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); - private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); - public: - - // .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - bool has_submission() const; - private: - bool _internal_has_submission() const; - public: - void clear_submission(); - const ::vega::commands::v1::ProposalSubmission& submission() const; - ::vega::commands::v1::ProposalSubmission* release_submission(); - ::vega::commands::v1::ProposalSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::ProposalSubmission* submission); - private: - const ::vega::commands::v1::ProposalSubmission& _internal_submission() const; - ::vega::commands::v1::ProposalSubmission* _internal_mutable_submission(); - public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::ProposalSubmission* submission); - ::vega::commands::v1::ProposalSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - ::vega::commands::v1::ProposalSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareVoteSubmissionRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareVoteSubmissionRequest) */ { - public: - inline PrepareVoteSubmissionRequest() : PrepareVoteSubmissionRequest(nullptr) {} - virtual ~PrepareVoteSubmissionRequest(); - - PrepareVoteSubmissionRequest(const PrepareVoteSubmissionRequest& from); - PrepareVoteSubmissionRequest(PrepareVoteSubmissionRequest&& from) noexcept - : PrepareVoteSubmissionRequest() { - *this = ::std::move(from); - } - - inline PrepareVoteSubmissionRequest& operator=(const PrepareVoteSubmissionRequest& from) { - CopyFrom(from); - return *this; - } - inline PrepareVoteSubmissionRequest& operator=(PrepareVoteSubmissionRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareVoteSubmissionRequest& default_instance(); - - static inline const PrepareVoteSubmissionRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareVoteSubmissionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 114; - - friend void swap(PrepareVoteSubmissionRequest& a, PrepareVoteSubmissionRequest& b) { - a.Swap(&b); - } - inline void Swap(PrepareVoteSubmissionRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareVoteSubmissionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareVoteSubmissionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareVoteSubmissionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareVoteSubmissionRequest& from); - void MergeFrom(const PrepareVoteSubmissionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareVoteSubmissionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareVoteSubmissionRequest"; - } - protected: - explicit PrepareVoteSubmissionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubmissionFieldNumber = 1, - }; - // .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { - bool has_submission() const; - private: - bool _internal_has_submission() const; - public: - void clear_submission(); - const ::vega::commands::v1::VoteSubmission& submission() const; - ::vega::commands::v1::VoteSubmission* release_submission(); - ::vega::commands::v1::VoteSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::VoteSubmission* submission); - private: - const ::vega::commands::v1::VoteSubmission& _internal_submission() const; - ::vega::commands::v1::VoteSubmission* _internal_mutable_submission(); - public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::VoteSubmission* submission); - ::vega::commands::v1::VoteSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::commands::v1::VoteSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareVoteSubmissionResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareVoteSubmissionResponse) */ { - public: - inline PrepareVoteSubmissionResponse() : PrepareVoteSubmissionResponse(nullptr) {} - virtual ~PrepareVoteSubmissionResponse(); - - PrepareVoteSubmissionResponse(const PrepareVoteSubmissionResponse& from); - PrepareVoteSubmissionResponse(PrepareVoteSubmissionResponse&& from) noexcept - : PrepareVoteSubmissionResponse() { - *this = ::std::move(from); - } - - inline PrepareVoteSubmissionResponse& operator=(const PrepareVoteSubmissionResponse& from) { - CopyFrom(from); - return *this; - } - inline PrepareVoteSubmissionResponse& operator=(PrepareVoteSubmissionResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareVoteSubmissionResponse& default_instance(); - - static inline const PrepareVoteSubmissionResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareVoteSubmissionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 115; - - friend void swap(PrepareVoteSubmissionResponse& a, PrepareVoteSubmissionResponse& b) { - a.Swap(&b); - } - inline void Swap(PrepareVoteSubmissionResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareVoteSubmissionResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareVoteSubmissionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareVoteSubmissionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareVoteSubmissionResponse& from); - void MergeFrom(const PrepareVoteSubmissionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareVoteSubmissionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareVoteSubmissionResponse"; - } - protected: - explicit PrepareVoteSubmissionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBlobFieldNumber = 1, - kSubmissionFieldNumber = 2, - }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); - private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); - public: - - // .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - bool has_submission() const; - private: - bool _internal_has_submission() const; - public: - void clear_submission(); - const ::vega::commands::v1::VoteSubmission& submission() const; - ::vega::commands::v1::VoteSubmission* release_submission(); - ::vega::commands::v1::VoteSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::VoteSubmission* submission); - private: - const ::vega::commands::v1::VoteSubmission& _internal_submission() const; - ::vega::commands::v1::VoteSubmission* _internal_mutable_submission(); - public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::VoteSubmission* submission); - ::vega::commands::v1::VoteSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - ::vega::commands::v1::VoteSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareLiquidityProvisionRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareLiquidityProvisionRequest) */ { - public: - inline PrepareLiquidityProvisionRequest() : PrepareLiquidityProvisionRequest(nullptr) {} - virtual ~PrepareLiquidityProvisionRequest(); - - PrepareLiquidityProvisionRequest(const PrepareLiquidityProvisionRequest& from); - PrepareLiquidityProvisionRequest(PrepareLiquidityProvisionRequest&& from) noexcept - : PrepareLiquidityProvisionRequest() { - *this = ::std::move(from); - } - - inline PrepareLiquidityProvisionRequest& operator=(const PrepareLiquidityProvisionRequest& from) { - CopyFrom(from); - return *this; - } - inline PrepareLiquidityProvisionRequest& operator=(PrepareLiquidityProvisionRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareLiquidityProvisionRequest& default_instance(); - - static inline const PrepareLiquidityProvisionRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareLiquidityProvisionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 116; - - friend void swap(PrepareLiquidityProvisionRequest& a, PrepareLiquidityProvisionRequest& b) { - a.Swap(&b); - } - inline void Swap(PrepareLiquidityProvisionRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareLiquidityProvisionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareLiquidityProvisionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareLiquidityProvisionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareLiquidityProvisionRequest& from); - void MergeFrom(const PrepareLiquidityProvisionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareLiquidityProvisionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareLiquidityProvisionRequest"; - } - protected: - explicit PrepareLiquidityProvisionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubmissionFieldNumber = 1, - }; - // .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { - bool has_submission() const; - private: - bool _internal_has_submission() const; - public: - void clear_submission(); - const ::vega::commands::v1::LiquidityProvisionSubmission& submission() const; - ::vega::commands::v1::LiquidityProvisionSubmission* release_submission(); - ::vega::commands::v1::LiquidityProvisionSubmission* mutable_submission(); - void set_allocated_submission(::vega::commands::v1::LiquidityProvisionSubmission* submission); - private: - const ::vega::commands::v1::LiquidityProvisionSubmission& _internal_submission() const; - ::vega::commands::v1::LiquidityProvisionSubmission* _internal_mutable_submission(); - public: - void unsafe_arena_set_allocated_submission( - ::vega::commands::v1::LiquidityProvisionSubmission* submission); - ::vega::commands::v1::LiquidityProvisionSubmission* unsafe_arena_release_submission(); - - // @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::commands::v1::LiquidityProvisionSubmission* submission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareLiquidityProvisionResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.PrepareLiquidityProvisionResponse) */ { - public: - inline PrepareLiquidityProvisionResponse() : PrepareLiquidityProvisionResponse(nullptr) {} - virtual ~PrepareLiquidityProvisionResponse(); - - PrepareLiquidityProvisionResponse(const PrepareLiquidityProvisionResponse& from); - PrepareLiquidityProvisionResponse(PrepareLiquidityProvisionResponse&& from) noexcept - : PrepareLiquidityProvisionResponse() { - *this = ::std::move(from); - } - - inline PrepareLiquidityProvisionResponse& operator=(const PrepareLiquidityProvisionResponse& from) { - CopyFrom(from); - return *this; - } - inline PrepareLiquidityProvisionResponse& operator=(PrepareLiquidityProvisionResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PrepareLiquidityProvisionResponse& default_instance(); - - static inline const PrepareLiquidityProvisionResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareLiquidityProvisionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 117; - - friend void swap(PrepareLiquidityProvisionResponse& a, PrepareLiquidityProvisionResponse& b) { - a.Swap(&b); - } - inline void Swap(PrepareLiquidityProvisionResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareLiquidityProvisionResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PrepareLiquidityProvisionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrepareLiquidityProvisionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PrepareLiquidityProvisionResponse& from); - void MergeFrom(const PrepareLiquidityProvisionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareLiquidityProvisionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.PrepareLiquidityProvisionResponse"; - } - protected: - explicit PrepareLiquidityProvisionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBlobFieldNumber = 1, - }; - // bytes blob = 1 [json_name = "blob"]; - void clear_blob(); - const std::string& blob() const; - void set_blob(const std::string& value); - void set_blob(std::string&& value); - void set_blob(const char* value); - void set_blob(const void* value, size_t size); - std::string* mutable_blob(); - std::string* release_blob(); - void set_allocated_blob(std::string* blob); - private: - const std::string& _internal_blob() const; - void _internal_set_blob(const std::string& value); - std::string* _internal_mutable_blob(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blob_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByIDRequest) */ { - public: - inline OrderByIDRequest() : OrderByIDRequest(nullptr) {} - virtual ~OrderByIDRequest(); - - OrderByIDRequest(const OrderByIDRequest& from); - OrderByIDRequest(OrderByIDRequest&& from) noexcept - : OrderByIDRequest() { - *this = ::std::move(from); - } - - inline OrderByIDRequest& operator=(const OrderByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline OrderByIDRequest& operator=(OrderByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByIDRequest& default_instance(); - - static inline const OrderByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_OrderByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 118; - - friend void swap(OrderByIDRequest& a, OrderByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(OrderByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByIDRequest& from); - void MergeFrom(const OrderByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByIDRequest"; - } - protected: - explicit OrderByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderIdFieldNumber = 1, - kVersionFieldNumber = 2, - }; - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - void clear_order_id(); - const std::string& order_id() const; - void set_order_id(const std::string& value); - void set_order_id(std::string&& value); - void set_order_id(const char* value); - void set_order_id(const char* value, size_t size); - std::string* mutable_order_id(); - std::string* release_order_id(); - void set_allocated_order_id(std::string* order_id); - private: - const std::string& _internal_order_id() const; - void _internal_set_order_id(const std::string& value); - std::string* _internal_mutable_order_id(); - public: - - // uint64 version = 2 [json_name = "version"]; - void clear_version(); - ::PROTOBUF_NAMESPACE_ID::uint64 version() const; - void set_version(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_version() const; - void _internal_set_version(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OrderByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderByIDResponse) */ { - public: - inline OrderByIDResponse() : OrderByIDResponse(nullptr) {} - virtual ~OrderByIDResponse(); - - OrderByIDResponse(const OrderByIDResponse& from); - OrderByIDResponse(OrderByIDResponse&& from) noexcept - : OrderByIDResponse() { - *this = ::std::move(from); - } - - inline OrderByIDResponse& operator=(const OrderByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline OrderByIDResponse& operator=(OrderByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderByIDResponse& default_instance(); - - static inline const OrderByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_OrderByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 119; - - friend void swap(OrderByIDResponse& a, OrderByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(OrderByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderByIDResponse& from); - void MergeFrom(const OrderByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderByIDResponse"; - } - protected: - explicit OrderByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFieldNumber = 1, - }; - // .vega.Order order = 1 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); - - // @@protoc_insertion_point(class_scope:api.v1.OrderByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Order* order_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderVersionsByIDRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderVersionsByIDRequest) */ { - public: - inline OrderVersionsByIDRequest() : OrderVersionsByIDRequest(nullptr) {} - virtual ~OrderVersionsByIDRequest(); - - OrderVersionsByIDRequest(const OrderVersionsByIDRequest& from); - OrderVersionsByIDRequest(OrderVersionsByIDRequest&& from) noexcept - : OrderVersionsByIDRequest() { - *this = ::std::move(from); - } - - inline OrderVersionsByIDRequest& operator=(const OrderVersionsByIDRequest& from) { - CopyFrom(from); - return *this; - } - inline OrderVersionsByIDRequest& operator=(OrderVersionsByIDRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderVersionsByIDRequest& default_instance(); - - static inline const OrderVersionsByIDRequest* internal_default_instance() { - return reinterpret_cast( - &_OrderVersionsByIDRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 120; - - friend void swap(OrderVersionsByIDRequest& a, OrderVersionsByIDRequest& b) { - a.Swap(&b); - } - inline void Swap(OrderVersionsByIDRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderVersionsByIDRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderVersionsByIDRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderVersionsByIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderVersionsByIDRequest& from); - void MergeFrom(const OrderVersionsByIDRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderVersionsByIDRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderVersionsByIDRequest"; - } - protected: - explicit OrderVersionsByIDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderIdFieldNumber = 1, - kPaginationFieldNumber = 2, - }; - // string order_id = 1 [json_name = "orderId", (.validator.field) = { - void clear_order_id(); - const std::string& order_id() const; - void set_order_id(const std::string& value); - void set_order_id(std::string&& value); - void set_order_id(const char* value); - void set_order_id(const char* value, size_t size); - std::string* mutable_order_id(); - std::string* release_order_id(); - void set_allocated_order_id(std::string* order_id); - private: - const std::string& _internal_order_id() const; - void _internal_set_order_id(const std::string& value); - std::string* _internal_mutable_order_id(); - public: - - // .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - bool has_pagination() const; - private: - bool _internal_has_pagination() const; - public: - void clear_pagination(); - const ::api::v1::Pagination& pagination() const; - ::api::v1::Pagination* release_pagination(); - ::api::v1::Pagination* mutable_pagination(); - void set_allocated_pagination(::api::v1::Pagination* pagination); - private: - const ::api::v1::Pagination& _internal_pagination() const; - ::api::v1::Pagination* _internal_mutable_pagination(); - public: - void unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination); - ::api::v1::Pagination* unsafe_arena_release_pagination(); - - // @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; - ::api::v1::Pagination* pagination_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OrderVersionsByIDResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OrderVersionsByIDResponse) */ { - public: - inline OrderVersionsByIDResponse() : OrderVersionsByIDResponse(nullptr) {} - virtual ~OrderVersionsByIDResponse(); - - OrderVersionsByIDResponse(const OrderVersionsByIDResponse& from); - OrderVersionsByIDResponse(OrderVersionsByIDResponse&& from) noexcept - : OrderVersionsByIDResponse() { - *this = ::std::move(from); - } - - inline OrderVersionsByIDResponse& operator=(const OrderVersionsByIDResponse& from) { - CopyFrom(from); - return *this; - } - inline OrderVersionsByIDResponse& operator=(OrderVersionsByIDResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OrderVersionsByIDResponse& default_instance(); - - static inline const OrderVersionsByIDResponse* internal_default_instance() { - return reinterpret_cast( - &_OrderVersionsByIDResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 121; - - friend void swap(OrderVersionsByIDResponse& a, OrderVersionsByIDResponse& b) { - a.Swap(&b); - } - inline void Swap(OrderVersionsByIDResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OrderVersionsByIDResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OrderVersionsByIDResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OrderVersionsByIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OrderVersionsByIDResponse& from); - void MergeFrom(const OrderVersionsByIDResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OrderVersionsByIDResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OrderVersionsByIDResponse"; - } - protected: - explicit OrderVersionsByIDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrdersFieldNumber = 1, - }; - // repeated .vega.Order orders = 1 [json_name = "orders"]; - int orders_size() const; - private: - int _internal_orders_size() const; - public: - void clear_orders(); - ::vega::Order* mutable_orders(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* - mutable_orders(); - private: - const ::vega::Order& _internal_orders(int index) const; - ::vega::Order* _internal_add_orders(); - public: - const ::vega::Order& orders(int index) const; - ::vega::Order* add_orders(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& - orders() const; - - // @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order > orders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class EstimateFeeRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.EstimateFeeRequest) */ { - public: - inline EstimateFeeRequest() : EstimateFeeRequest(nullptr) {} - virtual ~EstimateFeeRequest(); - - EstimateFeeRequest(const EstimateFeeRequest& from); - EstimateFeeRequest(EstimateFeeRequest&& from) noexcept - : EstimateFeeRequest() { - *this = ::std::move(from); - } - - inline EstimateFeeRequest& operator=(const EstimateFeeRequest& from) { - CopyFrom(from); - return *this; - } - inline EstimateFeeRequest& operator=(EstimateFeeRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EstimateFeeRequest& default_instance(); - - static inline const EstimateFeeRequest* internal_default_instance() { - return reinterpret_cast( - &_EstimateFeeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 122; - - friend void swap(EstimateFeeRequest& a, EstimateFeeRequest& b) { - a.Swap(&b); - } - inline void Swap(EstimateFeeRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EstimateFeeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EstimateFeeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - EstimateFeeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EstimateFeeRequest& from); - void MergeFrom(const EstimateFeeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EstimateFeeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.EstimateFeeRequest"; - } - protected: - explicit EstimateFeeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFieldNumber = 1, - }; - // .vega.Order order = 1 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); - - // @@protoc_insertion_point(class_scope:api.v1.EstimateFeeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Order* order_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class EstimateFeeResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.EstimateFeeResponse) */ { - public: - inline EstimateFeeResponse() : EstimateFeeResponse(nullptr) {} - virtual ~EstimateFeeResponse(); - - EstimateFeeResponse(const EstimateFeeResponse& from); - EstimateFeeResponse(EstimateFeeResponse&& from) noexcept - : EstimateFeeResponse() { - *this = ::std::move(from); - } - - inline EstimateFeeResponse& operator=(const EstimateFeeResponse& from) { - CopyFrom(from); - return *this; - } - inline EstimateFeeResponse& operator=(EstimateFeeResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EstimateFeeResponse& default_instance(); - - static inline const EstimateFeeResponse* internal_default_instance() { - return reinterpret_cast( - &_EstimateFeeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 123; - - friend void swap(EstimateFeeResponse& a, EstimateFeeResponse& b) { - a.Swap(&b); - } - inline void Swap(EstimateFeeResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EstimateFeeResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EstimateFeeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - EstimateFeeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EstimateFeeResponse& from); - void MergeFrom(const EstimateFeeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EstimateFeeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.EstimateFeeResponse"; - } - protected: - explicit EstimateFeeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFeeFieldNumber = 2, - }; - // .vega.Fee fee = 2 [json_name = "fee"]; - bool has_fee() const; - private: - bool _internal_has_fee() const; - public: - void clear_fee(); - const ::vega::Fee& fee() const; - ::vega::Fee* release_fee(); - ::vega::Fee* mutable_fee(); - void set_allocated_fee(::vega::Fee* fee); - private: - const ::vega::Fee& _internal_fee() const; - ::vega::Fee* _internal_mutable_fee(); - public: - void unsafe_arena_set_allocated_fee( - ::vega::Fee* fee); - ::vega::Fee* unsafe_arena_release_fee(); - - // @@protoc_insertion_point(class_scope:api.v1.EstimateFeeResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Fee* fee_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class EstimateMarginRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.EstimateMarginRequest) */ { - public: - inline EstimateMarginRequest() : EstimateMarginRequest(nullptr) {} - virtual ~EstimateMarginRequest(); - - EstimateMarginRequest(const EstimateMarginRequest& from); - EstimateMarginRequest(EstimateMarginRequest&& from) noexcept - : EstimateMarginRequest() { - *this = ::std::move(from); - } - - inline EstimateMarginRequest& operator=(const EstimateMarginRequest& from) { - CopyFrom(from); - return *this; - } - inline EstimateMarginRequest& operator=(EstimateMarginRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EstimateMarginRequest& default_instance(); - - static inline const EstimateMarginRequest* internal_default_instance() { - return reinterpret_cast( - &_EstimateMarginRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 124; - - friend void swap(EstimateMarginRequest& a, EstimateMarginRequest& b) { - a.Swap(&b); - } - inline void Swap(EstimateMarginRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EstimateMarginRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EstimateMarginRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - EstimateMarginRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EstimateMarginRequest& from); - void MergeFrom(const EstimateMarginRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EstimateMarginRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.EstimateMarginRequest"; - } - protected: - explicit EstimateMarginRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFieldNumber = 1, - }; - // .vega.Order order = 1 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); - - // @@protoc_insertion_point(class_scope:api.v1.EstimateMarginRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Order* order_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class EstimateMarginResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.EstimateMarginResponse) */ { - public: - inline EstimateMarginResponse() : EstimateMarginResponse(nullptr) {} - virtual ~EstimateMarginResponse(); - - EstimateMarginResponse(const EstimateMarginResponse& from); - EstimateMarginResponse(EstimateMarginResponse&& from) noexcept - : EstimateMarginResponse() { - *this = ::std::move(from); - } - - inline EstimateMarginResponse& operator=(const EstimateMarginResponse& from) { - CopyFrom(from); - return *this; - } - inline EstimateMarginResponse& operator=(EstimateMarginResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const EstimateMarginResponse& default_instance(); - - static inline const EstimateMarginResponse* internal_default_instance() { - return reinterpret_cast( - &_EstimateMarginResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 125; - - friend void swap(EstimateMarginResponse& a, EstimateMarginResponse& b) { - a.Swap(&b); - } - inline void Swap(EstimateMarginResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EstimateMarginResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline EstimateMarginResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - EstimateMarginResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EstimateMarginResponse& from); - void MergeFrom(const EstimateMarginResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EstimateMarginResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.EstimateMarginResponse"; - } - protected: - explicit EstimateMarginResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarginLevelsFieldNumber = 2, - }; - // .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - bool has_margin_levels() const; - private: - bool _internal_has_margin_levels() const; - public: - void clear_margin_levels(); - const ::vega::MarginLevels& margin_levels() const; - ::vega::MarginLevels* release_margin_levels(); - ::vega::MarginLevels* mutable_margin_levels(); - void set_allocated_margin_levels(::vega::MarginLevels* margin_levels); - private: - const ::vega::MarginLevels& _internal_margin_levels() const; - ::vega::MarginLevels* _internal_mutable_margin_levels(); - public: - void unsafe_arena_set_allocated_margin_levels( - ::vega::MarginLevels* margin_levels); - ::vega::MarginLevels* unsafe_arena_release_margin_levels(); - - // @@protoc_insertion_point(class_scope:api.v1.EstimateMarginResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::MarginLevels* margin_levels_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveEventBusRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveEventBusRequest) */ { - public: - inline ObserveEventBusRequest() : ObserveEventBusRequest(nullptr) {} - virtual ~ObserveEventBusRequest(); - - ObserveEventBusRequest(const ObserveEventBusRequest& from); - ObserveEventBusRequest(ObserveEventBusRequest&& from) noexcept - : ObserveEventBusRequest() { - *this = ::std::move(from); - } - - inline ObserveEventBusRequest& operator=(const ObserveEventBusRequest& from) { - CopyFrom(from); - return *this; - } - inline ObserveEventBusRequest& operator=(ObserveEventBusRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveEventBusRequest& default_instance(); - - static inline const ObserveEventBusRequest* internal_default_instance() { - return reinterpret_cast( - &_ObserveEventBusRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 126; - - friend void swap(ObserveEventBusRequest& a, ObserveEventBusRequest& b) { - a.Swap(&b); - } - inline void Swap(ObserveEventBusRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveEventBusRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveEventBusRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveEventBusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveEventBusRequest& from); - void MergeFrom(const ObserveEventBusRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveEventBusRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveEventBusRequest"; - } - protected: - explicit ObserveEventBusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeFieldNumber = 1, - kMarketIdFieldNumber = 2, - kPartyIdFieldNumber = 3, - kBatchSizeFieldNumber = 4, - }; - // repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - int type_size() const; - private: - int _internal_type_size() const; - public: - void clear_type(); - private: - ::vega::events::v1::BusEventType _internal_type(int index) const; - void _internal_add_type(::vega::events::v1::BusEventType value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_type(); - public: - ::vega::events::v1::BusEventType type(int index) const; - void set_type(int index, ::vega::events::v1::BusEventType value); - void add_type(::vega::events::v1::BusEventType value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& type() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_type(); - - // string market_id = 2 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 3 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // int64 batch_size = 4 [json_name = "batchSize"]; - void clear_batch_size(); - ::PROTOBUF_NAMESPACE_ID::int64 batch_size() const; - void set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_batch_size() const; - void _internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField type_; - mutable std::atomic _type_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::int64 batch_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ObserveEventBusResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ObserveEventBusResponse) */ { - public: - inline ObserveEventBusResponse() : ObserveEventBusResponse(nullptr) {} - virtual ~ObserveEventBusResponse(); - - ObserveEventBusResponse(const ObserveEventBusResponse& from); - ObserveEventBusResponse(ObserveEventBusResponse&& from) noexcept - : ObserveEventBusResponse() { - *this = ::std::move(from); - } - - inline ObserveEventBusResponse& operator=(const ObserveEventBusResponse& from) { - CopyFrom(from); - return *this; - } - inline ObserveEventBusResponse& operator=(ObserveEventBusResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObserveEventBusResponse& default_instance(); - - static inline const ObserveEventBusResponse* internal_default_instance() { - return reinterpret_cast( - &_ObserveEventBusResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 127; - - friend void swap(ObserveEventBusResponse& a, ObserveEventBusResponse& b) { - a.Swap(&b); - } - inline void Swap(ObserveEventBusResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObserveEventBusResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObserveEventBusResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObserveEventBusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObserveEventBusResponse& from); - void MergeFrom(const ObserveEventBusResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObserveEventBusResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ObserveEventBusResponse"; - } - protected: - explicit ObserveEventBusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEventsFieldNumber = 1, - }; - // repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - int events_size() const; - private: - int _internal_events_size() const; - public: - void clear_events(); - ::vega::events::v1::BusEvent* mutable_events(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >* - mutable_events(); - private: - const ::vega::events::v1::BusEvent& _internal_events(int index) const; - ::vega::events::v1::BusEvent* _internal_add_events(); - public: - const ::vega::events::v1::BusEvent& events(int index) const; - ::vega::events::v1::BusEvent* add_events(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >& - events() const; - - // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent > events_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class StatisticsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.StatisticsRequest) */ { - public: - inline StatisticsRequest() : StatisticsRequest(nullptr) {} - virtual ~StatisticsRequest(); - - StatisticsRequest(const StatisticsRequest& from); - StatisticsRequest(StatisticsRequest&& from) noexcept - : StatisticsRequest() { - *this = ::std::move(from); - } - - inline StatisticsRequest& operator=(const StatisticsRequest& from) { - CopyFrom(from); - return *this; - } - inline StatisticsRequest& operator=(StatisticsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const StatisticsRequest& default_instance(); - - static inline const StatisticsRequest* internal_default_instance() { - return reinterpret_cast( - &_StatisticsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 128; - - friend void swap(StatisticsRequest& a, StatisticsRequest& b) { - a.Swap(&b); - } - inline void Swap(StatisticsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StatisticsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StatisticsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - StatisticsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StatisticsRequest& from); - void MergeFrom(const StatisticsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StatisticsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.StatisticsRequest"; - } - protected: - explicit StatisticsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class StatisticsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.StatisticsResponse) */ { - public: - inline StatisticsResponse() : StatisticsResponse(nullptr) {} - virtual ~StatisticsResponse(); - - StatisticsResponse(const StatisticsResponse& from); - StatisticsResponse(StatisticsResponse&& from) noexcept - : StatisticsResponse() { - *this = ::std::move(from); - } - - inline StatisticsResponse& operator=(const StatisticsResponse& from) { - CopyFrom(from); - return *this; - } - inline StatisticsResponse& operator=(StatisticsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const StatisticsResponse& default_instance(); - - static inline const StatisticsResponse* internal_default_instance() { - return reinterpret_cast( - &_StatisticsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 129; - - friend void swap(StatisticsResponse& a, StatisticsResponse& b) { - a.Swap(&b); - } - inline void Swap(StatisticsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StatisticsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StatisticsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - StatisticsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StatisticsResponse& from); - void MergeFrom(const StatisticsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StatisticsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.StatisticsResponse"; - } - protected: - explicit StatisticsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatisticsFieldNumber = 1, - }; - // .vega.Statistics statistics = 1 [json_name = "statistics"]; - bool has_statistics() const; - private: - bool _internal_has_statistics() const; - public: - void clear_statistics(); - const ::vega::Statistics& statistics() const; - ::vega::Statistics* release_statistics(); - ::vega::Statistics* mutable_statistics(); - void set_allocated_statistics(::vega::Statistics* statistics); - private: - const ::vega::Statistics& _internal_statistics() const; - ::vega::Statistics* _internal_mutable_statistics(); - public: - void unsafe_arena_set_allocated_statistics( - ::vega::Statistics* statistics); - ::vega::Statistics* unsafe_arena_release_statistics(); - - // @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Statistics* statistics_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class WithdrawalsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.WithdrawalsRequest) */ { - public: - inline WithdrawalsRequest() : WithdrawalsRequest(nullptr) {} - virtual ~WithdrawalsRequest(); - - WithdrawalsRequest(const WithdrawalsRequest& from); - WithdrawalsRequest(WithdrawalsRequest&& from) noexcept - : WithdrawalsRequest() { - *this = ::std::move(from); - } - - inline WithdrawalsRequest& operator=(const WithdrawalsRequest& from) { - CopyFrom(from); - return *this; - } - inline WithdrawalsRequest& operator=(WithdrawalsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const WithdrawalsRequest& default_instance(); - - static inline const WithdrawalsRequest* internal_default_instance() { - return reinterpret_cast( - &_WithdrawalsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 130; - - friend void swap(WithdrawalsRequest& a, WithdrawalsRequest& b) { - a.Swap(&b); - } - inline void Swap(WithdrawalsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithdrawalsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WithdrawalsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WithdrawalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WithdrawalsRequest& from); - void MergeFrom(const WithdrawalsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithdrawalsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.WithdrawalsRequest"; - } - protected: - explicit WithdrawalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class WithdrawalsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.WithdrawalsResponse) */ { - public: - inline WithdrawalsResponse() : WithdrawalsResponse(nullptr) {} - virtual ~WithdrawalsResponse(); - - WithdrawalsResponse(const WithdrawalsResponse& from); - WithdrawalsResponse(WithdrawalsResponse&& from) noexcept - : WithdrawalsResponse() { - *this = ::std::move(from); - } - - inline WithdrawalsResponse& operator=(const WithdrawalsResponse& from) { - CopyFrom(from); - return *this; - } - inline WithdrawalsResponse& operator=(WithdrawalsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const WithdrawalsResponse& default_instance(); - - static inline const WithdrawalsResponse* internal_default_instance() { - return reinterpret_cast( - &_WithdrawalsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 131; - - friend void swap(WithdrawalsResponse& a, WithdrawalsResponse& b) { - a.Swap(&b); - } - inline void Swap(WithdrawalsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithdrawalsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WithdrawalsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WithdrawalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WithdrawalsResponse& from); - void MergeFrom(const WithdrawalsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithdrawalsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.WithdrawalsResponse"; - } - protected: - explicit WithdrawalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWithdrawalsFieldNumber = 1, - }; - // repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - int withdrawals_size() const; - private: - int _internal_withdrawals_size() const; - public: - void clear_withdrawals(); - ::vega::Withdrawal* mutable_withdrawals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Withdrawal >* - mutable_withdrawals(); - private: - const ::vega::Withdrawal& _internal_withdrawals(int index) const; - ::vega::Withdrawal* _internal_add_withdrawals(); - public: - const ::vega::Withdrawal& withdrawals(int index) const; - ::vega::Withdrawal* add_withdrawals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Withdrawal >& - withdrawals() const; - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Withdrawal > withdrawals_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class WithdrawalRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.WithdrawalRequest) */ { - public: - inline WithdrawalRequest() : WithdrawalRequest(nullptr) {} - virtual ~WithdrawalRequest(); - - WithdrawalRequest(const WithdrawalRequest& from); - WithdrawalRequest(WithdrawalRequest&& from) noexcept - : WithdrawalRequest() { - *this = ::std::move(from); - } - - inline WithdrawalRequest& operator=(const WithdrawalRequest& from) { - CopyFrom(from); - return *this; - } - inline WithdrawalRequest& operator=(WithdrawalRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const WithdrawalRequest& default_instance(); - - static inline const WithdrawalRequest* internal_default_instance() { - return reinterpret_cast( - &_WithdrawalRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 132; - - friend void swap(WithdrawalRequest& a, WithdrawalRequest& b) { - a.Swap(&b); - } - inline void Swap(WithdrawalRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithdrawalRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WithdrawalRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WithdrawalRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WithdrawalRequest& from); - void MergeFrom(const WithdrawalRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithdrawalRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.WithdrawalRequest"; - } - protected: - explicit WithdrawalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class WithdrawalResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.WithdrawalResponse) */ { - public: - inline WithdrawalResponse() : WithdrawalResponse(nullptr) {} - virtual ~WithdrawalResponse(); - - WithdrawalResponse(const WithdrawalResponse& from); - WithdrawalResponse(WithdrawalResponse&& from) noexcept - : WithdrawalResponse() { - *this = ::std::move(from); - } - - inline WithdrawalResponse& operator=(const WithdrawalResponse& from) { - CopyFrom(from); - return *this; - } - inline WithdrawalResponse& operator=(WithdrawalResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const WithdrawalResponse& default_instance(); - - static inline const WithdrawalResponse* internal_default_instance() { - return reinterpret_cast( - &_WithdrawalResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 133; - - friend void swap(WithdrawalResponse& a, WithdrawalResponse& b) { - a.Swap(&b); - } - inline void Swap(WithdrawalResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithdrawalResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline WithdrawalResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WithdrawalResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WithdrawalResponse& from); - void MergeFrom(const WithdrawalResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithdrawalResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.WithdrawalResponse"; - } - protected: - explicit WithdrawalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWithdrawalFieldNumber = 1, - }; - // .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - bool has_withdrawal() const; - private: - bool _internal_has_withdrawal() const; - public: - void clear_withdrawal(); - const ::vega::Withdrawal& withdrawal() const; - ::vega::Withdrawal* release_withdrawal(); - ::vega::Withdrawal* mutable_withdrawal(); - void set_allocated_withdrawal(::vega::Withdrawal* withdrawal); - private: - const ::vega::Withdrawal& _internal_withdrawal() const; - ::vega::Withdrawal* _internal_mutable_withdrawal(); - public: - void unsafe_arena_set_allocated_withdrawal( - ::vega::Withdrawal* withdrawal); - ::vega::Withdrawal* unsafe_arena_release_withdrawal(); - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Withdrawal* withdrawal_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ERC20WithdrawalApprovalRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ERC20WithdrawalApprovalRequest) */ { - public: - inline ERC20WithdrawalApprovalRequest() : ERC20WithdrawalApprovalRequest(nullptr) {} - virtual ~ERC20WithdrawalApprovalRequest(); - - ERC20WithdrawalApprovalRequest(const ERC20WithdrawalApprovalRequest& from); - ERC20WithdrawalApprovalRequest(ERC20WithdrawalApprovalRequest&& from) noexcept - : ERC20WithdrawalApprovalRequest() { - *this = ::std::move(from); - } - - inline ERC20WithdrawalApprovalRequest& operator=(const ERC20WithdrawalApprovalRequest& from) { - CopyFrom(from); - return *this; - } - inline ERC20WithdrawalApprovalRequest& operator=(ERC20WithdrawalApprovalRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ERC20WithdrawalApprovalRequest& default_instance(); - - static inline const ERC20WithdrawalApprovalRequest* internal_default_instance() { - return reinterpret_cast( - &_ERC20WithdrawalApprovalRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 134; - - friend void swap(ERC20WithdrawalApprovalRequest& a, ERC20WithdrawalApprovalRequest& b) { - a.Swap(&b); - } - inline void Swap(ERC20WithdrawalApprovalRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ERC20WithdrawalApprovalRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ERC20WithdrawalApprovalRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ERC20WithdrawalApprovalRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ERC20WithdrawalApprovalRequest& from); - void MergeFrom(const ERC20WithdrawalApprovalRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ERC20WithdrawalApprovalRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ERC20WithdrawalApprovalRequest"; - } - protected: - explicit ERC20WithdrawalApprovalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWithdrawalIdFieldNumber = 1, - }; - // string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { - void clear_withdrawal_id(); - const std::string& withdrawal_id() const; - void set_withdrawal_id(const std::string& value); - void set_withdrawal_id(std::string&& value); - void set_withdrawal_id(const char* value); - void set_withdrawal_id(const char* value, size_t size); - std::string* mutable_withdrawal_id(); - std::string* release_withdrawal_id(); - void set_allocated_withdrawal_id(std::string* withdrawal_id); - private: - const std::string& _internal_withdrawal_id() const; - void _internal_set_withdrawal_id(const std::string& value); - std::string* _internal_mutable_withdrawal_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr withdrawal_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class ERC20WithdrawalApprovalResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.ERC20WithdrawalApprovalResponse) */ { - public: - inline ERC20WithdrawalApprovalResponse() : ERC20WithdrawalApprovalResponse(nullptr) {} - virtual ~ERC20WithdrawalApprovalResponse(); - - ERC20WithdrawalApprovalResponse(const ERC20WithdrawalApprovalResponse& from); - ERC20WithdrawalApprovalResponse(ERC20WithdrawalApprovalResponse&& from) noexcept - : ERC20WithdrawalApprovalResponse() { - *this = ::std::move(from); - } - - inline ERC20WithdrawalApprovalResponse& operator=(const ERC20WithdrawalApprovalResponse& from) { - CopyFrom(from); - return *this; - } - inline ERC20WithdrawalApprovalResponse& operator=(ERC20WithdrawalApprovalResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ERC20WithdrawalApprovalResponse& default_instance(); - - static inline const ERC20WithdrawalApprovalResponse* internal_default_instance() { - return reinterpret_cast( - &_ERC20WithdrawalApprovalResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 135; - - friend void swap(ERC20WithdrawalApprovalResponse& a, ERC20WithdrawalApprovalResponse& b) { - a.Swap(&b); - } - inline void Swap(ERC20WithdrawalApprovalResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ERC20WithdrawalApprovalResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ERC20WithdrawalApprovalResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ERC20WithdrawalApprovalResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ERC20WithdrawalApprovalResponse& from); - void MergeFrom(const ERC20WithdrawalApprovalResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ERC20WithdrawalApprovalResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.ERC20WithdrawalApprovalResponse"; - } - protected: - explicit ERC20WithdrawalApprovalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAssetSourceFieldNumber = 1, - kAmountFieldNumber = 2, - kNonceFieldNumber = 4, - kSignaturesFieldNumber = 5, - kExpiryFieldNumber = 3, - }; - // string asset_source = 1 [json_name = "assetSource"]; - void clear_asset_source(); - const std::string& asset_source() const; - void set_asset_source(const std::string& value); - void set_asset_source(std::string&& value); - void set_asset_source(const char* value); - void set_asset_source(const char* value, size_t size); - std::string* mutable_asset_source(); - std::string* release_asset_source(); - void set_allocated_asset_source(std::string* asset_source); - private: - const std::string& _internal_asset_source() const; - void _internal_set_asset_source(const std::string& value); - std::string* _internal_mutable_asset_source(); - public: - - // string amount = 2 [json_name = "amount"]; - void clear_amount(); - const std::string& amount() const; - void set_amount(const std::string& value); - void set_amount(std::string&& value); - void set_amount(const char* value); - void set_amount(const char* value, size_t size); - std::string* mutable_amount(); - std::string* release_amount(); - void set_allocated_amount(std::string* amount); - private: - const std::string& _internal_amount() const; - void _internal_set_amount(const std::string& value); - std::string* _internal_mutable_amount(); - public: - - // string nonce = 4 [json_name = "nonce"]; - void clear_nonce(); - const std::string& nonce() const; - void set_nonce(const std::string& value); - void set_nonce(std::string&& value); - void set_nonce(const char* value); - void set_nonce(const char* value, size_t size); - std::string* mutable_nonce(); - std::string* release_nonce(); - void set_allocated_nonce(std::string* nonce); - private: - const std::string& _internal_nonce() const; - void _internal_set_nonce(const std::string& value); - std::string* _internal_mutable_nonce(); - public: - - // string signatures = 5 [json_name = "signatures"]; - void clear_signatures(); - const std::string& signatures() const; - void set_signatures(const std::string& value); - void set_signatures(std::string&& value); - void set_signatures(const char* value); - void set_signatures(const char* value, size_t size); - std::string* mutable_signatures(); - std::string* release_signatures(); - void set_allocated_signatures(std::string* signatures); - private: - const std::string& _internal_signatures() const; - void _internal_set_signatures(const std::string& value); - std::string* _internal_mutable_signatures(); - public: - - // int64 expiry = 3 [json_name = "expiry"]; - void clear_expiry(); - ::PROTOBUF_NAMESPACE_ID::int64 expiry() const; - void set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_expiry() const; - void _internal_set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_source_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr nonce_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signatures_; - ::PROTOBUF_NAMESPACE_ID::int64 expiry_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class DepositsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.DepositsRequest) */ { - public: - inline DepositsRequest() : DepositsRequest(nullptr) {} - virtual ~DepositsRequest(); - - DepositsRequest(const DepositsRequest& from); - DepositsRequest(DepositsRequest&& from) noexcept - : DepositsRequest() { - *this = ::std::move(from); - } - - inline DepositsRequest& operator=(const DepositsRequest& from) { - CopyFrom(from); - return *this; - } - inline DepositsRequest& operator=(DepositsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const DepositsRequest& default_instance(); - - static inline const DepositsRequest* internal_default_instance() { - return reinterpret_cast( - &_DepositsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 136; - - friend void swap(DepositsRequest& a, DepositsRequest& b) { - a.Swap(&b); - } - inline void Swap(DepositsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DepositsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DepositsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DepositsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DepositsRequest& from); - void MergeFrom(const DepositsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DepositsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.DepositsRequest"; - } - protected: - explicit DepositsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartyIdFieldNumber = 1, - }; - // string party_id = 1 [json_name = "partyId", (.validator.field) = { - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.DepositsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class DepositsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.DepositsResponse) */ { - public: - inline DepositsResponse() : DepositsResponse(nullptr) {} - virtual ~DepositsResponse(); - - DepositsResponse(const DepositsResponse& from); - DepositsResponse(DepositsResponse&& from) noexcept - : DepositsResponse() { - *this = ::std::move(from); - } - - inline DepositsResponse& operator=(const DepositsResponse& from) { - CopyFrom(from); - return *this; - } - inline DepositsResponse& operator=(DepositsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const DepositsResponse& default_instance(); - - static inline const DepositsResponse* internal_default_instance() { - return reinterpret_cast( - &_DepositsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 137; - - friend void swap(DepositsResponse& a, DepositsResponse& b) { - a.Swap(&b); - } - inline void Swap(DepositsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DepositsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DepositsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - DepositsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DepositsResponse& from); - void MergeFrom(const DepositsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DepositsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.DepositsResponse"; - } - protected: - explicit DepositsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDepositsFieldNumber = 1, - }; - // repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - int deposits_size() const; - private: - int _internal_deposits_size() const; - public: - void clear_deposits(); - ::vega::Deposit* mutable_deposits(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Deposit >* - mutable_deposits(); - private: - const ::vega::Deposit& _internal_deposits(int index) const; - ::vega::Deposit* _internal_add_deposits(); - public: - const ::vega::Deposit& deposits(int index) const; - ::vega::Deposit* add_deposits(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Deposit >& - deposits() const; - - // @@protoc_insertion_point(class_scope:api.v1.DepositsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Deposit > deposits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class DepositRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.DepositRequest) */ { - public: - inline DepositRequest() : DepositRequest(nullptr) {} - virtual ~DepositRequest(); - - DepositRequest(const DepositRequest& from); - DepositRequest(DepositRequest&& from) noexcept - : DepositRequest() { - *this = ::std::move(from); - } - - inline DepositRequest& operator=(const DepositRequest& from) { - CopyFrom(from); - return *this; - } - inline DepositRequest& operator=(DepositRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const DepositRequest& default_instance(); - - static inline const DepositRequest* internal_default_instance() { - return reinterpret_cast( - &_DepositRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 138; - - friend void swap(DepositRequest& a, DepositRequest& b) { - a.Swap(&b); - } - inline void Swap(DepositRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DepositRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DepositRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DepositRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DepositRequest& from); - void MergeFrom(const DepositRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DepositRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.DepositRequest"; - } - protected: - explicit DepositRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.DepositRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class DepositResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.DepositResponse) */ { - public: - inline DepositResponse() : DepositResponse(nullptr) {} - virtual ~DepositResponse(); - - DepositResponse(const DepositResponse& from); - DepositResponse(DepositResponse&& from) noexcept - : DepositResponse() { - *this = ::std::move(from); - } - - inline DepositResponse& operator=(const DepositResponse& from) { - CopyFrom(from); - return *this; - } - inline DepositResponse& operator=(DepositResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const DepositResponse& default_instance(); - - static inline const DepositResponse* internal_default_instance() { - return reinterpret_cast( - &_DepositResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 139; - - friend void swap(DepositResponse& a, DepositResponse& b) { - a.Swap(&b); - } - inline void Swap(DepositResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DepositResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DepositResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - DepositResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DepositResponse& from); - void MergeFrom(const DepositResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DepositResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.DepositResponse"; - } - protected: - explicit DepositResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDepositFieldNumber = 1, - }; - // .vega.Deposit deposit = 1 [json_name = "deposit"]; - bool has_deposit() const; - private: - bool _internal_has_deposit() const; - public: - void clear_deposit(); - const ::vega::Deposit& deposit() const; - ::vega::Deposit* release_deposit(); - ::vega::Deposit* mutable_deposit(); - void set_allocated_deposit(::vega::Deposit* deposit); - private: - const ::vega::Deposit& _internal_deposit() const; - ::vega::Deposit* _internal_mutable_deposit(); - public: - void unsafe_arena_set_allocated_deposit( - ::vega::Deposit* deposit); - ::vega::Deposit* unsafe_arena_release_deposit(); - - // @@protoc_insertion_point(class_scope:api.v1.DepositResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::vega::Deposit* deposit_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class NetworkParametersRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.NetworkParametersRequest) */ { - public: - inline NetworkParametersRequest() : NetworkParametersRequest(nullptr) {} - virtual ~NetworkParametersRequest(); - - NetworkParametersRequest(const NetworkParametersRequest& from); - NetworkParametersRequest(NetworkParametersRequest&& from) noexcept - : NetworkParametersRequest() { - *this = ::std::move(from); - } - - inline NetworkParametersRequest& operator=(const NetworkParametersRequest& from) { - CopyFrom(from); - return *this; - } - inline NetworkParametersRequest& operator=(NetworkParametersRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const NetworkParametersRequest& default_instance(); - - static inline const NetworkParametersRequest* internal_default_instance() { - return reinterpret_cast( - &_NetworkParametersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 140; - - friend void swap(NetworkParametersRequest& a, NetworkParametersRequest& b) { - a.Swap(&b); - } - inline void Swap(NetworkParametersRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NetworkParametersRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline NetworkParametersRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NetworkParametersRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const NetworkParametersRequest& from); - void MergeFrom(const NetworkParametersRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NetworkParametersRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.NetworkParametersRequest"; - } - protected: - explicit NetworkParametersRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.NetworkParametersRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class NetworkParametersResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.NetworkParametersResponse) */ { - public: - inline NetworkParametersResponse() : NetworkParametersResponse(nullptr) {} - virtual ~NetworkParametersResponse(); - - NetworkParametersResponse(const NetworkParametersResponse& from); - NetworkParametersResponse(NetworkParametersResponse&& from) noexcept - : NetworkParametersResponse() { - *this = ::std::move(from); - } - - inline NetworkParametersResponse& operator=(const NetworkParametersResponse& from) { - CopyFrom(from); - return *this; - } - inline NetworkParametersResponse& operator=(NetworkParametersResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const NetworkParametersResponse& default_instance(); - - static inline const NetworkParametersResponse* internal_default_instance() { - return reinterpret_cast( - &_NetworkParametersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 141; - - friend void swap(NetworkParametersResponse& a, NetworkParametersResponse& b) { - a.Swap(&b); - } - inline void Swap(NetworkParametersResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NetworkParametersResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline NetworkParametersResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NetworkParametersResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const NetworkParametersResponse& from); - void MergeFrom(const NetworkParametersResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NetworkParametersResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.NetworkParametersResponse"; - } - protected: - explicit NetworkParametersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNetworkParametersFieldNumber = 1, - }; - // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - int network_parameters_size() const; - private: - int _internal_network_parameters_size() const; - public: - void clear_network_parameters(); - ::vega::NetworkParameter* mutable_network_parameters(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* - mutable_network_parameters(); - private: - const ::vega::NetworkParameter& _internal_network_parameters(int index) const; - ::vega::NetworkParameter* _internal_add_network_parameters(); - public: - const ::vega::NetworkParameter& network_parameters(int index) const; - ::vega::NetworkParameter* add_network_parameters(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& - network_parameters() const; - - // @@protoc_insertion_point(class_scope:api.v1.NetworkParametersResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter > network_parameters_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LiquidityProvisionsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LiquidityProvisionsRequest) */ { - public: - inline LiquidityProvisionsRequest() : LiquidityProvisionsRequest(nullptr) {} - virtual ~LiquidityProvisionsRequest(); - - LiquidityProvisionsRequest(const LiquidityProvisionsRequest& from); - LiquidityProvisionsRequest(LiquidityProvisionsRequest&& from) noexcept - : LiquidityProvisionsRequest() { - *this = ::std::move(from); - } - - inline LiquidityProvisionsRequest& operator=(const LiquidityProvisionsRequest& from) { - CopyFrom(from); - return *this; - } - inline LiquidityProvisionsRequest& operator=(LiquidityProvisionsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LiquidityProvisionsRequest& default_instance(); - - static inline const LiquidityProvisionsRequest* internal_default_instance() { - return reinterpret_cast( - &_LiquidityProvisionsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 142; - - friend void swap(LiquidityProvisionsRequest& a, LiquidityProvisionsRequest& b) { - a.Swap(&b); - } - inline void Swap(LiquidityProvisionsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LiquidityProvisionsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LiquidityProvisionsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiquidityProvisionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LiquidityProvisionsRequest& from); - void MergeFrom(const LiquidityProvisionsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LiquidityProvisionsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LiquidityProvisionsRequest"; - } - protected: - explicit LiquidityProvisionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketFieldNumber = 1, - kPartyFieldNumber = 2, - }; - // string market = 1 [json_name = "market"]; - void clear_market(); - const std::string& market() const; - void set_market(const std::string& value); - void set_market(std::string&& value); - void set_market(const char* value); - void set_market(const char* value, size_t size); - std::string* mutable_market(); - std::string* release_market(); - void set_allocated_market(std::string* market); - private: - const std::string& _internal_market() const; - void _internal_set_market(const std::string& value); - std::string* _internal_mutable_market(); - public: - - // string party = 2 [json_name = "party"]; - void clear_party(); - const std::string& party() const; - void set_party(const std::string& value); - void set_party(std::string&& value); - void set_party(const char* value); - void set_party(const char* value, size_t size); - std::string* mutable_party(); - std::string* release_party(); - void set_allocated_party(std::string* party); - private: - const std::string& _internal_party() const; - void _internal_set_party(const std::string& value); - std::string* _internal_mutable_party(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LiquidityProvisionsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LiquidityProvisionsResponse) */ { - public: - inline LiquidityProvisionsResponse() : LiquidityProvisionsResponse(nullptr) {} - virtual ~LiquidityProvisionsResponse(); - - LiquidityProvisionsResponse(const LiquidityProvisionsResponse& from); - LiquidityProvisionsResponse(LiquidityProvisionsResponse&& from) noexcept - : LiquidityProvisionsResponse() { - *this = ::std::move(from); - } - - inline LiquidityProvisionsResponse& operator=(const LiquidityProvisionsResponse& from) { - CopyFrom(from); - return *this; - } - inline LiquidityProvisionsResponse& operator=(LiquidityProvisionsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LiquidityProvisionsResponse& default_instance(); - - static inline const LiquidityProvisionsResponse* internal_default_instance() { - return reinterpret_cast( - &_LiquidityProvisionsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 143; - - friend void swap(LiquidityProvisionsResponse& a, LiquidityProvisionsResponse& b) { - a.Swap(&b); - } - inline void Swap(LiquidityProvisionsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LiquidityProvisionsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LiquidityProvisionsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiquidityProvisionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LiquidityProvisionsResponse& from); - void MergeFrom(const LiquidityProvisionsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LiquidityProvisionsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LiquidityProvisionsResponse"; - } - protected: - explicit LiquidityProvisionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLiquidityProvisionsFieldNumber = 1, - }; - // repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - int liquidity_provisions_size() const; - private: - int _internal_liquidity_provisions_size() const; - public: - void clear_liquidity_provisions(); - ::vega::LiquidityProvision* mutable_liquidity_provisions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProvision >* - mutable_liquidity_provisions(); - private: - const ::vega::LiquidityProvision& _internal_liquidity_provisions(int index) const; - ::vega::LiquidityProvision* _internal_add_liquidity_provisions(); - public: - const ::vega::LiquidityProvision& liquidity_provisions(int index) const; - ::vega::LiquidityProvision* add_liquidity_provisions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProvision >& - liquidity_provisions() const; - - // @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProvision > liquidity_provisions_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleSpecRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleSpecRequest) */ { - public: - inline OracleSpecRequest() : OracleSpecRequest(nullptr) {} - virtual ~OracleSpecRequest(); - - OracleSpecRequest(const OracleSpecRequest& from); - OracleSpecRequest(OracleSpecRequest&& from) noexcept - : OracleSpecRequest() { - *this = ::std::move(from); - } - - inline OracleSpecRequest& operator=(const OracleSpecRequest& from) { - CopyFrom(from); - return *this; - } - inline OracleSpecRequest& operator=(OracleSpecRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleSpecRequest& default_instance(); - - static inline const OracleSpecRequest* internal_default_instance() { - return reinterpret_cast( - &_OracleSpecRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 144; - - friend void swap(OracleSpecRequest& a, OracleSpecRequest& b) { - a.Swap(&b); - } - inline void Swap(OracleSpecRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleSpecRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleSpecRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleSpecRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleSpecRequest& from); - void MergeFrom(const OracleSpecRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleSpecRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleSpecRequest"; - } - protected: - explicit OracleSpecRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleSpecResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleSpecResponse) */ { - public: - inline OracleSpecResponse() : OracleSpecResponse(nullptr) {} - virtual ~OracleSpecResponse(); - - OracleSpecResponse(const OracleSpecResponse& from); - OracleSpecResponse(OracleSpecResponse&& from) noexcept - : OracleSpecResponse() { - *this = ::std::move(from); - } - - inline OracleSpecResponse& operator=(const OracleSpecResponse& from) { - CopyFrom(from); - return *this; - } - inline OracleSpecResponse& operator=(OracleSpecResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleSpecResponse& default_instance(); - - static inline const OracleSpecResponse* internal_default_instance() { - return reinterpret_cast( - &_OracleSpecResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 145; - - friend void swap(OracleSpecResponse& a, OracleSpecResponse& b) { - a.Swap(&b); - } - inline void Swap(OracleSpecResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleSpecResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleSpecResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleSpecResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleSpecResponse& from); - void MergeFrom(const OracleSpecResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleSpecResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleSpecResponse"; - } - protected: - explicit OracleSpecResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOracleSpecFieldNumber = 1, - }; - // .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - bool has_oracle_spec() const; - private: - bool _internal_has_oracle_spec() const; - public: - void clear_oracle_spec(); - const ::oracles::v1::OracleSpec& oracle_spec() const; - ::oracles::v1::OracleSpec* release_oracle_spec(); - ::oracles::v1::OracleSpec* mutable_oracle_spec(); - void set_allocated_oracle_spec(::oracles::v1::OracleSpec* oracle_spec); - private: - const ::oracles::v1::OracleSpec& _internal_oracle_spec() const; - ::oracles::v1::OracleSpec* _internal_mutable_oracle_spec(); - public: - void unsafe_arena_set_allocated_oracle_spec( - ::oracles::v1::OracleSpec* oracle_spec); - ::oracles::v1::OracleSpec* unsafe_arena_release_oracle_spec(); - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::oracles::v1::OracleSpec* oracle_spec_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleSpecsRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleSpecsRequest) */ { - public: - inline OracleSpecsRequest() : OracleSpecsRequest(nullptr) {} - virtual ~OracleSpecsRequest(); - - OracleSpecsRequest(const OracleSpecsRequest& from); - OracleSpecsRequest(OracleSpecsRequest&& from) noexcept - : OracleSpecsRequest() { - *this = ::std::move(from); - } - - inline OracleSpecsRequest& operator=(const OracleSpecsRequest& from) { - CopyFrom(from); - return *this; - } - inline OracleSpecsRequest& operator=(OracleSpecsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleSpecsRequest& default_instance(); - - static inline const OracleSpecsRequest* internal_default_instance() { - return reinterpret_cast( - &_OracleSpecsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 146; - - friend void swap(OracleSpecsRequest& a, OracleSpecsRequest& b) { - a.Swap(&b); - } - inline void Swap(OracleSpecsRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleSpecsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleSpecsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleSpecsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleSpecsRequest& from); - void MergeFrom(const OracleSpecsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleSpecsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleSpecsRequest"; - } - protected: - explicit OracleSpecsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleSpecsResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleSpecsResponse) */ { - public: - inline OracleSpecsResponse() : OracleSpecsResponse(nullptr) {} - virtual ~OracleSpecsResponse(); - - OracleSpecsResponse(const OracleSpecsResponse& from); - OracleSpecsResponse(OracleSpecsResponse&& from) noexcept - : OracleSpecsResponse() { - *this = ::std::move(from); - } - - inline OracleSpecsResponse& operator=(const OracleSpecsResponse& from) { - CopyFrom(from); - return *this; - } - inline OracleSpecsResponse& operator=(OracleSpecsResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleSpecsResponse& default_instance(); - - static inline const OracleSpecsResponse* internal_default_instance() { - return reinterpret_cast( - &_OracleSpecsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 147; - - friend void swap(OracleSpecsResponse& a, OracleSpecsResponse& b) { - a.Swap(&b); - } - inline void Swap(OracleSpecsResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleSpecsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleSpecsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleSpecsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleSpecsResponse& from); - void MergeFrom(const OracleSpecsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleSpecsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleSpecsResponse"; - } - protected: - explicit OracleSpecsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOracleSpecsFieldNumber = 1, - }; - // repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; - int oracle_specs_size() const; - private: - int _internal_oracle_specs_size() const; - public: - void clear_oracle_specs(); - ::oracles::v1::OracleSpec* mutable_oracle_specs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleSpec >* - mutable_oracle_specs(); - private: - const ::oracles::v1::OracleSpec& _internal_oracle_specs(int index) const; - ::oracles::v1::OracleSpec* _internal_add_oracle_specs(); - public: - const ::oracles::v1::OracleSpec& oracle_specs(int index) const; - ::oracles::v1::OracleSpec* add_oracle_specs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleSpec >& - oracle_specs() const; - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleSpec > oracle_specs_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleDataBySpecRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleDataBySpecRequest) */ { - public: - inline OracleDataBySpecRequest() : OracleDataBySpecRequest(nullptr) {} - virtual ~OracleDataBySpecRequest(); - - OracleDataBySpecRequest(const OracleDataBySpecRequest& from); - OracleDataBySpecRequest(OracleDataBySpecRequest&& from) noexcept - : OracleDataBySpecRequest() { - *this = ::std::move(from); - } - - inline OracleDataBySpecRequest& operator=(const OracleDataBySpecRequest& from) { - CopyFrom(from); - return *this; - } - inline OracleDataBySpecRequest& operator=(OracleDataBySpecRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleDataBySpecRequest& default_instance(); - - static inline const OracleDataBySpecRequest* internal_default_instance() { - return reinterpret_cast( - &_OracleDataBySpecRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 148; - - friend void swap(OracleDataBySpecRequest& a, OracleDataBySpecRequest& b) { - a.Swap(&b); - } - inline void Swap(OracleDataBySpecRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleDataBySpecRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleDataBySpecRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleDataBySpecRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleDataBySpecRequest& from); - void MergeFrom(const OracleDataBySpecRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleDataBySpecRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleDataBySpecRequest"; - } - protected: - explicit OracleDataBySpecRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id", (.validator.field) = { - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class OracleDataBySpecResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.OracleDataBySpecResponse) */ { - public: - inline OracleDataBySpecResponse() : OracleDataBySpecResponse(nullptr) {} - virtual ~OracleDataBySpecResponse(); - - OracleDataBySpecResponse(const OracleDataBySpecResponse& from); - OracleDataBySpecResponse(OracleDataBySpecResponse&& from) noexcept - : OracleDataBySpecResponse() { - *this = ::std::move(from); - } - - inline OracleDataBySpecResponse& operator=(const OracleDataBySpecResponse& from) { - CopyFrom(from); - return *this; - } - inline OracleDataBySpecResponse& operator=(OracleDataBySpecResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const OracleDataBySpecResponse& default_instance(); - - static inline const OracleDataBySpecResponse* internal_default_instance() { - return reinterpret_cast( - &_OracleDataBySpecResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 149; - - friend void swap(OracleDataBySpecResponse& a, OracleDataBySpecResponse& b) { - a.Swap(&b); - } - inline void Swap(OracleDataBySpecResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OracleDataBySpecResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline OracleDataBySpecResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OracleDataBySpecResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const OracleDataBySpecResponse& from); - void MergeFrom(const OracleDataBySpecResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OracleDataBySpecResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.OracleDataBySpecResponse"; - } - protected: - explicit OracleDataBySpecResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOracleDataFieldNumber = 1, - }; - // repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - int oracle_data_size() const; - private: - int _internal_oracle_data_size() const; - public: - void clear_oracle_data(); - ::oracles::v1::OracleData* mutable_oracle_data(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleData >* - mutable_oracle_data(); - private: - const ::oracles::v1::OracleData& _internal_oracle_data(int index) const; - ::oracles::v1::OracleData* _internal_add_oracle_data(); - public: - const ::oracles::v1::OracleData& oracle_data(int index) const; - ::oracles::v1::OracleData* add_oracle_data(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleData >& - oracle_data() const; - - // @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleData > oracle_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LastBlockHeightRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastBlockHeightRequest) */ { - public: - inline LastBlockHeightRequest() : LastBlockHeightRequest(nullptr) {} - virtual ~LastBlockHeightRequest(); - - LastBlockHeightRequest(const LastBlockHeightRequest& from); - LastBlockHeightRequest(LastBlockHeightRequest&& from) noexcept - : LastBlockHeightRequest() { - *this = ::std::move(from); - } - - inline LastBlockHeightRequest& operator=(const LastBlockHeightRequest& from) { - CopyFrom(from); - return *this; - } - inline LastBlockHeightRequest& operator=(LastBlockHeightRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LastBlockHeightRequest& default_instance(); - - static inline const LastBlockHeightRequest* internal_default_instance() { - return reinterpret_cast( - &_LastBlockHeightRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 150; - - friend void swap(LastBlockHeightRequest& a, LastBlockHeightRequest& b) { - a.Swap(&b); - } - inline void Swap(LastBlockHeightRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LastBlockHeightRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LastBlockHeightRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - LastBlockHeightRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LastBlockHeightRequest& from); - void MergeFrom(const LastBlockHeightRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LastBlockHeightRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LastBlockHeightRequest"; - } - protected: - explicit LastBlockHeightRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// ------------------------------------------------------------------- - -class LastBlockHeightResponse PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:api.v1.LastBlockHeightResponse) */ { - public: - inline LastBlockHeightResponse() : LastBlockHeightResponse(nullptr) {} - virtual ~LastBlockHeightResponse(); - - LastBlockHeightResponse(const LastBlockHeightResponse& from); - LastBlockHeightResponse(LastBlockHeightResponse&& from) noexcept - : LastBlockHeightResponse() { - *this = ::std::move(from); - } - - inline LastBlockHeightResponse& operator=(const LastBlockHeightResponse& from) { - CopyFrom(from); - return *this; - } - inline LastBlockHeightResponse& operator=(LastBlockHeightResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const LastBlockHeightResponse& default_instance(); - - static inline const LastBlockHeightResponse* internal_default_instance() { - return reinterpret_cast( - &_LastBlockHeightResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 151; - - friend void swap(LastBlockHeightResponse& a, LastBlockHeightResponse& b) { - a.Swap(&b); - } - inline void Swap(LastBlockHeightResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LastBlockHeightResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline LastBlockHeightResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - LastBlockHeightResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LastBlockHeightResponse& from); - void MergeFrom(const LastBlockHeightResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LastBlockHeightResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "api.v1.LastBlockHeightResponse"; - } - protected: - explicit LastBlockHeightResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_api_2ftrading_2eproto); - return ::descriptor_table_api_2ftrading_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kHeightFieldNumber = 1, - }; - // uint64 height = 1 [json_name = "height"]; - void clear_height(); - ::PROTOBUF_NAMESPACE_ID::uint64 height() const; - void set_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_height() const; - void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 height_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_api_2ftrading_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// PropagateChainEventRequest - -// .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; -inline bool PropagateChainEventRequest::_internal_has_evt() const { - return this != internal_default_instance() && evt_ != nullptr; -} -inline bool PropagateChainEventRequest::has_evt() const { - return _internal_has_evt(); -} -inline const ::vega::commands::v1::ChainEvent& PropagateChainEventRequest::_internal_evt() const { - const ::vega::commands::v1::ChainEvent* p = evt_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_ChainEvent_default_instance_); -} -inline const ::vega::commands::v1::ChainEvent& PropagateChainEventRequest::evt() const { - // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.evt) - return _internal_evt(); -} -inline void PropagateChainEventRequest::unsafe_arena_set_allocated_evt( - ::vega::commands::v1::ChainEvent* evt) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(evt_); - } - evt_ = evt; - if (evt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PropagateChainEventRequest.evt) -} -inline ::vega::commands::v1::ChainEvent* PropagateChainEventRequest::release_evt() { - - ::vega::commands::v1::ChainEvent* temp = evt_; - evt_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::ChainEvent* PropagateChainEventRequest::unsafe_arena_release_evt() { - // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.evt) - - ::vega::commands::v1::ChainEvent* temp = evt_; - evt_ = nullptr; - return temp; -} -inline ::vega::commands::v1::ChainEvent* PropagateChainEventRequest::_internal_mutable_evt() { - - if (evt_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::ChainEvent>(GetArena()); - evt_ = p; - } - return evt_; -} -inline ::vega::commands::v1::ChainEvent* PropagateChainEventRequest::mutable_evt() { - // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.evt) - return _internal_mutable_evt(); -} -inline void PropagateChainEventRequest::set_allocated_evt(::vega::commands::v1::ChainEvent* evt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(evt_); - } - if (evt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(evt)->GetArena(); - if (message_arena != submessage_arena) { - evt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, evt, submessage_arena); - } - - } else { - - } - evt_ = evt; - // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.evt) -} - -// string pub_key = 2 [json_name = "pubKey"]; -inline void PropagateChainEventRequest::clear_pub_key() { - pub_key_.ClearToEmpty(); -} -inline const std::string& PropagateChainEventRequest::pub_key() const { - // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.pub_key) - return _internal_pub_key(); -} -inline void PropagateChainEventRequest::set_pub_key(const std::string& value) { - _internal_set_pub_key(value); - // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventRequest.pub_key) -} -inline std::string* PropagateChainEventRequest::mutable_pub_key() { - // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.pub_key) - return _internal_mutable_pub_key(); -} -inline const std::string& PropagateChainEventRequest::_internal_pub_key() const { - return pub_key_.Get(); -} -inline void PropagateChainEventRequest::_internal_set_pub_key(const std::string& value) { - - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PropagateChainEventRequest::set_pub_key(std::string&& value) { - - pub_key_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PropagateChainEventRequest.pub_key) -} -inline void PropagateChainEventRequest::set_pub_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PropagateChainEventRequest.pub_key) -} -inline void PropagateChainEventRequest::set_pub_key(const char* value, - size_t size) { - - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PropagateChainEventRequest.pub_key) -} -inline std::string* PropagateChainEventRequest::_internal_mutable_pub_key() { - - return pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PropagateChainEventRequest::release_pub_key() { - // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.pub_key) - return pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PropagateChainEventRequest::set_allocated_pub_key(std::string* pub_key) { - if (pub_key != nullptr) { - - } else { - - } - pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pub_key, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.pub_key) -} - -// bytes signature = 3 [json_name = "signature"]; -inline void PropagateChainEventRequest::clear_signature() { - signature_.ClearToEmpty(); -} -inline const std::string& PropagateChainEventRequest::signature() const { - // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.signature) - return _internal_signature(); -} -inline void PropagateChainEventRequest::set_signature(const std::string& value) { - _internal_set_signature(value); - // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventRequest.signature) -} -inline std::string* PropagateChainEventRequest::mutable_signature() { - // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.signature) - return _internal_mutable_signature(); -} -inline const std::string& PropagateChainEventRequest::_internal_signature() const { - return signature_.Get(); -} -inline void PropagateChainEventRequest::_internal_set_signature(const std::string& value) { - - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PropagateChainEventRequest::set_signature(std::string&& value) { - - signature_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PropagateChainEventRequest.signature) -} -inline void PropagateChainEventRequest::set_signature(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PropagateChainEventRequest.signature) -} -inline void PropagateChainEventRequest::set_signature(const void* value, - size_t size) { - - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PropagateChainEventRequest.signature) -} -inline std::string* PropagateChainEventRequest::_internal_mutable_signature() { - - return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PropagateChainEventRequest::release_signature() { - // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.signature) - return signature_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PropagateChainEventRequest::set_allocated_signature(std::string* signature) { - if (signature != nullptr) { - - } else { - - } - signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.signature) -} - -// ------------------------------------------------------------------- - -// PropagateChainEventResponse - -// bool success = 1 [json_name = "success"]; -inline void PropagateChainEventResponse::clear_success() { - success_ = false; -} -inline bool PropagateChainEventResponse::_internal_success() const { - return success_; -} -inline bool PropagateChainEventResponse::success() const { - // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventResponse.success) - return _internal_success(); -} -inline void PropagateChainEventResponse::_internal_set_success(bool value) { - - success_ = value; -} -inline void PropagateChainEventResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventResponse.success) -} - -// ------------------------------------------------------------------- - -// SubmitTransactionRequest - -// .vega.SignedBundle tx = 1 [json_name = "tx"]; -inline bool SubmitTransactionRequest::_internal_has_tx() const { - return this != internal_default_instance() && tx_ != nullptr; -} -inline bool SubmitTransactionRequest::has_tx() const { - return _internal_has_tx(); -} -inline const ::vega::SignedBundle& SubmitTransactionRequest::_internal_tx() const { - const ::vega::SignedBundle* p = tx_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_SignedBundle_default_instance_); -} -inline const ::vega::SignedBundle& SubmitTransactionRequest::tx() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionRequest.tx) - return _internal_tx(); -} -inline void SubmitTransactionRequest::unsafe_arena_set_allocated_tx( - ::vega::SignedBundle* tx) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); - } - tx_ = tx; - if (tx) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.SubmitTransactionRequest.tx) -} -inline ::vega::SignedBundle* SubmitTransactionRequest::release_tx() { - - ::vega::SignedBundle* temp = tx_; - tx_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::SignedBundle* SubmitTransactionRequest::unsafe_arena_release_tx() { - // @@protoc_insertion_point(field_release:api.v1.SubmitTransactionRequest.tx) - - ::vega::SignedBundle* temp = tx_; - tx_ = nullptr; - return temp; -} -inline ::vega::SignedBundle* SubmitTransactionRequest::_internal_mutable_tx() { - - if (tx_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::SignedBundle>(GetArena()); - tx_ = p; - } - return tx_; -} -inline ::vega::SignedBundle* SubmitTransactionRequest::mutable_tx() { - // @@protoc_insertion_point(field_mutable:api.v1.SubmitTransactionRequest.tx) - return _internal_mutable_tx(); -} -inline void SubmitTransactionRequest::set_allocated_tx(::vega::SignedBundle* tx) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); - } - if (tx) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx)->GetArena(); - if (message_arena != submessage_arena) { - tx = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tx, submessage_arena); - } - - } else { - - } - tx_ = tx; - // @@protoc_insertion_point(field_set_allocated:api.v1.SubmitTransactionRequest.tx) -} - -// .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; -inline void SubmitTransactionRequest::clear_type() { - type_ = 0; -} -inline ::api::v1::SubmitTransactionRequest_Type SubmitTransactionRequest::_internal_type() const { - return static_cast< ::api::v1::SubmitTransactionRequest_Type >(type_); -} -inline ::api::v1::SubmitTransactionRequest_Type SubmitTransactionRequest::type() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionRequest.type) - return _internal_type(); -} -inline void SubmitTransactionRequest::_internal_set_type(::api::v1::SubmitTransactionRequest_Type value) { - - type_ = value; -} -inline void SubmitTransactionRequest::set_type(::api::v1::SubmitTransactionRequest_Type value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionRequest.type) -} - -// ------------------------------------------------------------------- - -// SubmitTransactionResponse - -// bool success = 1 [json_name = "success"]; -inline void SubmitTransactionResponse::clear_success() { - success_ = false; -} -inline bool SubmitTransactionResponse::_internal_success() const { - return success_; -} -inline bool SubmitTransactionResponse::success() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionResponse.success) - return _internal_success(); -} -inline void SubmitTransactionResponse::_internal_set_success(bool value) { - - success_ = value; -} -inline void SubmitTransactionResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionResponse.success) -} - -// ------------------------------------------------------------------- - -// SubmitTransactionV2Request - -// .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; -inline bool SubmitTransactionV2Request::_internal_has_tx() const { - return this != internal_default_instance() && tx_ != nullptr; -} -inline bool SubmitTransactionV2Request::has_tx() const { - return _internal_has_tx(); -} -inline const ::vega::commands::v1::Transaction& SubmitTransactionV2Request::_internal_tx() const { - const ::vega::commands::v1::Transaction* p = tx_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_Transaction_default_instance_); -} -inline const ::vega::commands::v1::Transaction& SubmitTransactionV2Request::tx() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Request.tx) - return _internal_tx(); -} -inline void SubmitTransactionV2Request::unsafe_arena_set_allocated_tx( - ::vega::commands::v1::Transaction* tx) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); - } - tx_ = tx; - if (tx) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.SubmitTransactionV2Request.tx) -} -inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::release_tx() { - - ::vega::commands::v1::Transaction* temp = tx_; - tx_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::unsafe_arena_release_tx() { - // @@protoc_insertion_point(field_release:api.v1.SubmitTransactionV2Request.tx) - - ::vega::commands::v1::Transaction* temp = tx_; - tx_ = nullptr; - return temp; -} -inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::_internal_mutable_tx() { - - if (tx_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::Transaction>(GetArena()); - tx_ = p; - } - return tx_; -} -inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::mutable_tx() { - // @@protoc_insertion_point(field_mutable:api.v1.SubmitTransactionV2Request.tx) - return _internal_mutable_tx(); -} -inline void SubmitTransactionV2Request::set_allocated_tx(::vega::commands::v1::Transaction* tx) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); - } - if (tx) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx)->GetArena(); - if (message_arena != submessage_arena) { - tx = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tx, submessage_arena); - } - - } else { - - } - tx_ = tx; - // @@protoc_insertion_point(field_set_allocated:api.v1.SubmitTransactionV2Request.tx) -} - -// .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; -inline void SubmitTransactionV2Request::clear_type() { - type_ = 0; -} -inline ::api::v1::SubmitTransactionV2Request_Type SubmitTransactionV2Request::_internal_type() const { - return static_cast< ::api::v1::SubmitTransactionV2Request_Type >(type_); -} -inline ::api::v1::SubmitTransactionV2Request_Type SubmitTransactionV2Request::type() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Request.type) - return _internal_type(); -} -inline void SubmitTransactionV2Request::_internal_set_type(::api::v1::SubmitTransactionV2Request_Type value) { - - type_ = value; -} -inline void SubmitTransactionV2Request::set_type(::api::v1::SubmitTransactionV2Request_Type value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionV2Request.type) -} - -// ------------------------------------------------------------------- - -// SubmitTransactionV2Response - -// bool success = 1 [json_name = "success"]; -inline void SubmitTransactionV2Response::clear_success() { - success_ = false; -} -inline bool SubmitTransactionV2Response::_internal_success() const { - return success_; -} -inline bool SubmitTransactionV2Response::success() const { - // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Response.success) - return _internal_success(); -} -inline void SubmitTransactionV2Response::_internal_set_success(bool value) { - - success_ = value; -} -inline void SubmitTransactionV2Response::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionV2Response.success) -} - -// ------------------------------------------------------------------- - -// PrepareWithdrawRequest - -// .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; -inline bool PrepareWithdrawRequest::_internal_has_withdraw() const { - return this != internal_default_instance() && withdraw_ != nullptr; -} -inline bool PrepareWithdrawRequest::has_withdraw() const { - return _internal_has_withdraw(); -} -inline const ::vega::commands::v1::WithdrawSubmission& PrepareWithdrawRequest::_internal_withdraw() const { - const ::vega::commands::v1::WithdrawSubmission* p = withdraw_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_WithdrawSubmission_default_instance_); -} -inline const ::vega::commands::v1::WithdrawSubmission& PrepareWithdrawRequest::withdraw() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareWithdrawRequest.withdraw) - return _internal_withdraw(); -} -inline void PrepareWithdrawRequest::unsafe_arena_set_allocated_withdraw( - ::vega::commands::v1::WithdrawSubmission* withdraw) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdraw_); - } - withdraw_ = withdraw; - if (withdraw) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareWithdrawRequest.withdraw) -} -inline ::vega::commands::v1::WithdrawSubmission* PrepareWithdrawRequest::release_withdraw() { - - ::vega::commands::v1::WithdrawSubmission* temp = withdraw_; - withdraw_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::WithdrawSubmission* PrepareWithdrawRequest::unsafe_arena_release_withdraw() { - // @@protoc_insertion_point(field_release:api.v1.PrepareWithdrawRequest.withdraw) - - ::vega::commands::v1::WithdrawSubmission* temp = withdraw_; - withdraw_ = nullptr; - return temp; -} -inline ::vega::commands::v1::WithdrawSubmission* PrepareWithdrawRequest::_internal_mutable_withdraw() { - - if (withdraw_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::WithdrawSubmission>(GetArena()); - withdraw_ = p; - } - return withdraw_; -} -inline ::vega::commands::v1::WithdrawSubmission* PrepareWithdrawRequest::mutable_withdraw() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareWithdrawRequest.withdraw) - return _internal_mutable_withdraw(); -} -inline void PrepareWithdrawRequest::set_allocated_withdraw(::vega::commands::v1::WithdrawSubmission* withdraw) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdraw_); - } - if (withdraw) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdraw)->GetArena(); - if (message_arena != submessage_arena) { - withdraw = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, withdraw, submessage_arena); - } - - } else { - - } - withdraw_ = withdraw; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareWithdrawRequest.withdraw) -} - -// ------------------------------------------------------------------- - -// PrepareWithdrawResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareWithdrawResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareWithdrawResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareWithdrawResponse.blob) - return _internal_blob(); -} -inline void PrepareWithdrawResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareWithdrawResponse.blob) -} -inline std::string* PrepareWithdrawResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareWithdrawResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareWithdrawResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareWithdrawResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareWithdrawResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareWithdrawResponse.blob) -} -inline void PrepareWithdrawResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareWithdrawResponse.blob) -} -inline void PrepareWithdrawResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareWithdrawResponse.blob) -} -inline std::string* PrepareWithdrawResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareWithdrawResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareWithdrawResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareWithdrawResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareWithdrawResponse.blob) -} - -// ------------------------------------------------------------------- - -// PrepareSubmitOrderResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareSubmitOrderResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareSubmitOrderResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareSubmitOrderResponse.blob) - return _internal_blob(); -} -inline void PrepareSubmitOrderResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareSubmitOrderResponse.blob) -} -inline std::string* PrepareSubmitOrderResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareSubmitOrderResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareSubmitOrderResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareSubmitOrderResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareSubmitOrderResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareSubmitOrderResponse.blob) -} -inline void PrepareSubmitOrderResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareSubmitOrderResponse.blob) -} -inline void PrepareSubmitOrderResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareSubmitOrderResponse.blob) -} -inline std::string* PrepareSubmitOrderResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareSubmitOrderResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareSubmitOrderResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareSubmitOrderResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareSubmitOrderResponse.blob) -} - -// string submit_id = 2 [json_name = "submitId"]; -inline void PrepareSubmitOrderResponse::clear_submit_id() { - submit_id_.ClearToEmpty(); -} -inline const std::string& PrepareSubmitOrderResponse::submit_id() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareSubmitOrderResponse.submit_id) - return _internal_submit_id(); -} -inline void PrepareSubmitOrderResponse::set_submit_id(const std::string& value) { - _internal_set_submit_id(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareSubmitOrderResponse.submit_id) -} -inline std::string* PrepareSubmitOrderResponse::mutable_submit_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareSubmitOrderResponse.submit_id) - return _internal_mutable_submit_id(); -} -inline const std::string& PrepareSubmitOrderResponse::_internal_submit_id() const { - return submit_id_.Get(); -} -inline void PrepareSubmitOrderResponse::_internal_set_submit_id(const std::string& value) { - - submit_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareSubmitOrderResponse::set_submit_id(std::string&& value) { - - submit_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareSubmitOrderResponse.submit_id) -} -inline void PrepareSubmitOrderResponse::set_submit_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - submit_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareSubmitOrderResponse.submit_id) -} -inline void PrepareSubmitOrderResponse::set_submit_id(const char* value, - size_t size) { - - submit_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareSubmitOrderResponse.submit_id) -} -inline std::string* PrepareSubmitOrderResponse::_internal_mutable_submit_id() { - - return submit_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareSubmitOrderResponse::release_submit_id() { - // @@protoc_insertion_point(field_release:api.v1.PrepareSubmitOrderResponse.submit_id) - return submit_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareSubmitOrderResponse::set_allocated_submit_id(std::string* submit_id) { - if (submit_id != nullptr) { - - } else { - - } - submit_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), submit_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareSubmitOrderResponse.submit_id) -} - -// ------------------------------------------------------------------- - -// PrepareCancelOrderResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareCancelOrderResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareCancelOrderResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareCancelOrderResponse.blob) - return _internal_blob(); -} -inline void PrepareCancelOrderResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareCancelOrderResponse.blob) -} -inline std::string* PrepareCancelOrderResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareCancelOrderResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareCancelOrderResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareCancelOrderResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareCancelOrderResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareCancelOrderResponse.blob) -} -inline void PrepareCancelOrderResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareCancelOrderResponse.blob) -} -inline void PrepareCancelOrderResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareCancelOrderResponse.blob) -} -inline std::string* PrepareCancelOrderResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareCancelOrderResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareCancelOrderResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareCancelOrderResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareCancelOrderResponse.blob) -} - -// ------------------------------------------------------------------- - -// PrepareAmendOrderResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareAmendOrderResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareAmendOrderResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareAmendOrderResponse.blob) - return _internal_blob(); -} -inline void PrepareAmendOrderResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareAmendOrderResponse.blob) -} -inline std::string* PrepareAmendOrderResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareAmendOrderResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareAmendOrderResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareAmendOrderResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareAmendOrderResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareAmendOrderResponse.blob) -} -inline void PrepareAmendOrderResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareAmendOrderResponse.blob) -} -inline void PrepareAmendOrderResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareAmendOrderResponse.blob) -} -inline std::string* PrepareAmendOrderResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareAmendOrderResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareAmendOrderResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareAmendOrderResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareAmendOrderResponse.blob) -} - -// ------------------------------------------------------------------- - -// PrepareSubmitOrderRequest - -// .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; -inline bool PrepareSubmitOrderRequest::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareSubmitOrderRequest::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::OrderSubmission& PrepareSubmitOrderRequest::_internal_submission() const { - const ::vega::commands::v1::OrderSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_OrderSubmission_default_instance_); -} -inline const ::vega::commands::v1::OrderSubmission& PrepareSubmitOrderRequest::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareSubmitOrderRequest.submission) - return _internal_submission(); -} -inline void PrepareSubmitOrderRequest::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::OrderSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareSubmitOrderRequest.submission) -} -inline ::vega::commands::v1::OrderSubmission* PrepareSubmitOrderRequest::release_submission() { - - ::vega::commands::v1::OrderSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::OrderSubmission* PrepareSubmitOrderRequest::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareSubmitOrderRequest.submission) - - ::vega::commands::v1::OrderSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::OrderSubmission* PrepareSubmitOrderRequest::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::OrderSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::OrderSubmission* PrepareSubmitOrderRequest::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareSubmitOrderRequest.submission) - return _internal_mutable_submission(); -} -inline void PrepareSubmitOrderRequest::set_allocated_submission(::vega::commands::v1::OrderSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareSubmitOrderRequest.submission) -} - -// ------------------------------------------------------------------- - -// PrepareCancelOrderRequest - -// .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; -inline bool PrepareCancelOrderRequest::_internal_has_cancellation() const { - return this != internal_default_instance() && cancellation_ != nullptr; -} -inline bool PrepareCancelOrderRequest::has_cancellation() const { - return _internal_has_cancellation(); -} -inline const ::vega::commands::v1::OrderCancellation& PrepareCancelOrderRequest::_internal_cancellation() const { - const ::vega::commands::v1::OrderCancellation* p = cancellation_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_OrderCancellation_default_instance_); -} -inline const ::vega::commands::v1::OrderCancellation& PrepareCancelOrderRequest::cancellation() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareCancelOrderRequest.cancellation) - return _internal_cancellation(); -} -inline void PrepareCancelOrderRequest::unsafe_arena_set_allocated_cancellation( - ::vega::commands::v1::OrderCancellation* cancellation) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancellation_); - } - cancellation_ = cancellation; - if (cancellation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareCancelOrderRequest.cancellation) -} -inline ::vega::commands::v1::OrderCancellation* PrepareCancelOrderRequest::release_cancellation() { - - ::vega::commands::v1::OrderCancellation* temp = cancellation_; - cancellation_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::OrderCancellation* PrepareCancelOrderRequest::unsafe_arena_release_cancellation() { - // @@protoc_insertion_point(field_release:api.v1.PrepareCancelOrderRequest.cancellation) - - ::vega::commands::v1::OrderCancellation* temp = cancellation_; - cancellation_ = nullptr; - return temp; -} -inline ::vega::commands::v1::OrderCancellation* PrepareCancelOrderRequest::_internal_mutable_cancellation() { - - if (cancellation_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::OrderCancellation>(GetArena()); - cancellation_ = p; - } - return cancellation_; -} -inline ::vega::commands::v1::OrderCancellation* PrepareCancelOrderRequest::mutable_cancellation() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareCancelOrderRequest.cancellation) - return _internal_mutable_cancellation(); -} -inline void PrepareCancelOrderRequest::set_allocated_cancellation(::vega::commands::v1::OrderCancellation* cancellation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancellation_); - } - if (cancellation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancellation)->GetArena(); - if (message_arena != submessage_arena) { - cancellation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cancellation, submessage_arena); - } - - } else { - - } - cancellation_ = cancellation; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareCancelOrderRequest.cancellation) -} - -// ------------------------------------------------------------------- - -// PrepareAmendOrderRequest - -// .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; -inline bool PrepareAmendOrderRequest::_internal_has_amendment() const { - return this != internal_default_instance() && amendment_ != nullptr; -} -inline bool PrepareAmendOrderRequest::has_amendment() const { - return _internal_has_amendment(); -} -inline const ::vega::commands::v1::OrderAmendment& PrepareAmendOrderRequest::_internal_amendment() const { - const ::vega::commands::v1::OrderAmendment* p = amendment_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_OrderAmendment_default_instance_); -} -inline const ::vega::commands::v1::OrderAmendment& PrepareAmendOrderRequest::amendment() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareAmendOrderRequest.amendment) - return _internal_amendment(); -} -inline void PrepareAmendOrderRequest::unsafe_arena_set_allocated_amendment( - ::vega::commands::v1::OrderAmendment* amendment) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amendment_); - } - amendment_ = amendment; - if (amendment) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareAmendOrderRequest.amendment) -} -inline ::vega::commands::v1::OrderAmendment* PrepareAmendOrderRequest::release_amendment() { - - ::vega::commands::v1::OrderAmendment* temp = amendment_; - amendment_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::OrderAmendment* PrepareAmendOrderRequest::unsafe_arena_release_amendment() { - // @@protoc_insertion_point(field_release:api.v1.PrepareAmendOrderRequest.amendment) - - ::vega::commands::v1::OrderAmendment* temp = amendment_; - amendment_ = nullptr; - return temp; -} -inline ::vega::commands::v1::OrderAmendment* PrepareAmendOrderRequest::_internal_mutable_amendment() { - - if (amendment_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::OrderAmendment>(GetArena()); - amendment_ = p; - } - return amendment_; -} -inline ::vega::commands::v1::OrderAmendment* PrepareAmendOrderRequest::mutable_amendment() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareAmendOrderRequest.amendment) - return _internal_mutable_amendment(); -} -inline void PrepareAmendOrderRequest::set_allocated_amendment(::vega::commands::v1::OrderAmendment* amendment) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(amendment_); - } - if (amendment) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amendment)->GetArena(); - if (message_arena != submessage_arena) { - amendment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, amendment, submessage_arena); - } - - } else { - - } - amendment_ = amendment; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareAmendOrderRequest.amendment) -} - -// ------------------------------------------------------------------- - -// AssetsRequest - -// ------------------------------------------------------------------- - -// AssetsResponse - -// repeated .vega.Asset assets = 1 [json_name = "assets"]; -inline int AssetsResponse::_internal_assets_size() const { - return assets_.size(); -} -inline int AssetsResponse::assets_size() const { - return _internal_assets_size(); -} -inline ::vega::Asset* AssetsResponse::mutable_assets(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.AssetsResponse.assets) - return assets_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >* -AssetsResponse::mutable_assets() { - // @@protoc_insertion_point(field_mutable_list:api.v1.AssetsResponse.assets) - return &assets_; -} -inline const ::vega::Asset& AssetsResponse::_internal_assets(int index) const { - return assets_.Get(index); -} -inline const ::vega::Asset& AssetsResponse::assets(int index) const { - // @@protoc_insertion_point(field_get:api.v1.AssetsResponse.assets) - return _internal_assets(index); -} -inline ::vega::Asset* AssetsResponse::_internal_add_assets() { - return assets_.Add(); -} -inline ::vega::Asset* AssetsResponse::add_assets() { - // @@protoc_insertion_point(field_add:api.v1.AssetsResponse.assets) - return _internal_add_assets(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >& -AssetsResponse::assets() const { - // @@protoc_insertion_point(field_list:api.v1.AssetsResponse.assets) - return assets_; -} - -// ------------------------------------------------------------------- - -// AssetByIDRequest - -// string id = 1 [json_name = "id", (.validator.field) = { -inline void AssetByIDRequest::clear_id() { - id_.ClearToEmpty(); -} -inline const std::string& AssetByIDRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.AssetByIDRequest.id) - return _internal_id(); -} -inline void AssetByIDRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.AssetByIDRequest.id) -} -inline std::string* AssetByIDRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.AssetByIDRequest.id) - return _internal_mutable_id(); -} -inline const std::string& AssetByIDRequest::_internal_id() const { - return id_.Get(); -} -inline void AssetByIDRequest::_internal_set_id(const std::string& value) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AssetByIDRequest::set_id(std::string&& value) { - - id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.AssetByIDRequest.id) -} -inline void AssetByIDRequest::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.AssetByIDRequest.id) -} -inline void AssetByIDRequest::set_id(const char* value, - size_t size) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.AssetByIDRequest.id) -} -inline std::string* AssetByIDRequest::_internal_mutable_id() { - - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* AssetByIDRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.AssetByIDRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void AssetByIDRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.AssetByIDRequest.id) -} - -// ------------------------------------------------------------------- - -// AssetByIDResponse - -// .vega.Asset asset = 1 [json_name = "asset"]; -inline bool AssetByIDResponse::_internal_has_asset() const { - return this != internal_default_instance() && asset_ != nullptr; -} -inline bool AssetByIDResponse::has_asset() const { - return _internal_has_asset(); -} -inline const ::vega::Asset& AssetByIDResponse::_internal_asset() const { - const ::vega::Asset* p = asset_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Asset_default_instance_); -} -inline const ::vega::Asset& AssetByIDResponse::asset() const { - // @@protoc_insertion_point(field_get:api.v1.AssetByIDResponse.asset) - return _internal_asset(); -} -inline void AssetByIDResponse::unsafe_arena_set_allocated_asset( - ::vega::Asset* asset) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset_); - } - asset_ = asset; - if (asset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.AssetByIDResponse.asset) -} -inline ::vega::Asset* AssetByIDResponse::release_asset() { - - ::vega::Asset* temp = asset_; - asset_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Asset* AssetByIDResponse::unsafe_arena_release_asset() { - // @@protoc_insertion_point(field_release:api.v1.AssetByIDResponse.asset) - - ::vega::Asset* temp = asset_; - asset_ = nullptr; - return temp; -} -inline ::vega::Asset* AssetByIDResponse::_internal_mutable_asset() { - - if (asset_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Asset>(GetArena()); - asset_ = p; - } - return asset_; -} -inline ::vega::Asset* AssetByIDResponse::mutable_asset() { - // @@protoc_insertion_point(field_mutable:api.v1.AssetByIDResponse.asset) - return _internal_mutable_asset(); -} -inline void AssetByIDResponse::set_allocated_asset(::vega::Asset* asset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset_); - } - if (asset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset)->GetArena(); - if (message_arena != submessage_arena) { - asset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, asset, submessage_arena); - } - - } else { - - } - asset_ = asset; - // @@protoc_insertion_point(field_set_allocated:api.v1.AssetByIDResponse.asset) -} - -// ------------------------------------------------------------------- - -// GetNodeSignaturesAggregateRequest - -// string id = 1 [json_name = "id", (.validator.field) = { -inline void GetNodeSignaturesAggregateRequest::clear_id() { - id_.ClearToEmpty(); -} -inline const std::string& GetNodeSignaturesAggregateRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.GetNodeSignaturesAggregateRequest.id) - return _internal_id(); -} -inline void GetNodeSignaturesAggregateRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.GetNodeSignaturesAggregateRequest.id) -} -inline std::string* GetNodeSignaturesAggregateRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.GetNodeSignaturesAggregateRequest.id) - return _internal_mutable_id(); -} -inline const std::string& GetNodeSignaturesAggregateRequest::_internal_id() const { - return id_.Get(); -} -inline void GetNodeSignaturesAggregateRequest::_internal_set_id(const std::string& value) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetNodeSignaturesAggregateRequest::set_id(std::string&& value) { - - id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetNodeSignaturesAggregateRequest.id) -} -inline void GetNodeSignaturesAggregateRequest::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetNodeSignaturesAggregateRequest.id) -} -inline void GetNodeSignaturesAggregateRequest::set_id(const char* value, - size_t size) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetNodeSignaturesAggregateRequest.id) -} -inline std::string* GetNodeSignaturesAggregateRequest::_internal_mutable_id() { - - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetNodeSignaturesAggregateRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.GetNodeSignaturesAggregateRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetNodeSignaturesAggregateRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetNodeSignaturesAggregateRequest.id) -} - -// ------------------------------------------------------------------- - -// GetNodeSignaturesAggregateResponse - -// repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; -inline int GetNodeSignaturesAggregateResponse::_internal_signatures_size() const { - return signatures_.size(); -} -inline int GetNodeSignaturesAggregateResponse::signatures_size() const { - return _internal_signatures_size(); -} -inline ::vega::commands::v1::NodeSignature* GetNodeSignaturesAggregateResponse::mutable_signatures(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetNodeSignaturesAggregateResponse.signatures) - return signatures_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::commands::v1::NodeSignature >* -GetNodeSignaturesAggregateResponse::mutable_signatures() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetNodeSignaturesAggregateResponse.signatures) - return &signatures_; -} -inline const ::vega::commands::v1::NodeSignature& GetNodeSignaturesAggregateResponse::_internal_signatures(int index) const { - return signatures_.Get(index); -} -inline const ::vega::commands::v1::NodeSignature& GetNodeSignaturesAggregateResponse::signatures(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetNodeSignaturesAggregateResponse.signatures) - return _internal_signatures(index); -} -inline ::vega::commands::v1::NodeSignature* GetNodeSignaturesAggregateResponse::_internal_add_signatures() { - return signatures_.Add(); -} -inline ::vega::commands::v1::NodeSignature* GetNodeSignaturesAggregateResponse::add_signatures() { - // @@protoc_insertion_point(field_add:api.v1.GetNodeSignaturesAggregateResponse.signatures) - return _internal_add_signatures(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::commands::v1::NodeSignature >& -GetNodeSignaturesAggregateResponse::signatures() const { - // @@protoc_insertion_point(field_list:api.v1.GetNodeSignaturesAggregateResponse.signatures) - return signatures_; -} - -// ------------------------------------------------------------------- - -// OptionalProposalState - -// .vega.Proposal.State value = 1 [json_name = "value"]; -inline void OptionalProposalState::clear_value() { - value_ = 0; -} -inline ::vega::Proposal_State OptionalProposalState::_internal_value() const { - return static_cast< ::vega::Proposal_State >(value_); -} -inline ::vega::Proposal_State OptionalProposalState::value() const { - // @@protoc_insertion_point(field_get:api.v1.OptionalProposalState.value) - return _internal_value(); -} -inline void OptionalProposalState::_internal_set_value(::vega::Proposal_State value) { - - value_ = value; -} -inline void OptionalProposalState::set_value(::vega::Proposal_State value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:api.v1.OptionalProposalState.value) -} - -// ------------------------------------------------------------------- - -// GetProposalsRequest - -// .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; -inline bool GetProposalsRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetProposalsRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetProposalsRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetProposalsRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetProposalsRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalsRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetProposalsRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetProposalsRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetProposalsRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetProposalsRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalsRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetProposalsRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetProposalsRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalsRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetProposalsRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalsRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetProposalsResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetProposalsResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetProposalsResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetProposalsResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalsResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetProposalsResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetProposalsResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetProposalsResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalsResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetProposalsResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetProposalsResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetProposalsResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetProposalsResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetProposalsResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetProposalsByPartyRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void GetProposalsByPartyRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& GetProposalsByPartyRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalsByPartyRequest.party_id) - return _internal_party_id(); -} -inline void GetProposalsByPartyRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.GetProposalsByPartyRequest.party_id) -} -inline std::string* GetProposalsByPartyRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalsByPartyRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& GetProposalsByPartyRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void GetProposalsByPartyRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetProposalsByPartyRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetProposalsByPartyRequest.party_id) -} -inline void GetProposalsByPartyRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetProposalsByPartyRequest.party_id) -} -inline void GetProposalsByPartyRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetProposalsByPartyRequest.party_id) -} -inline std::string* GetProposalsByPartyRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetProposalsByPartyRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalsByPartyRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetProposalsByPartyRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalsByPartyRequest.party_id) -} - -// .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; -inline bool GetProposalsByPartyRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetProposalsByPartyRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetProposalsByPartyRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetProposalsByPartyRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetProposalsByPartyRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalsByPartyRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetProposalsByPartyRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetProposalsByPartyRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetProposalsByPartyRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetProposalsByPartyRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalsByPartyRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetProposalsByPartyRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetProposalsByPartyRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalsByPartyRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetProposalsByPartyRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalsByPartyRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetProposalsByPartyResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetProposalsByPartyResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetProposalsByPartyResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetProposalsByPartyResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalsByPartyResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetProposalsByPartyResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetProposalsByPartyResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetProposalsByPartyResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetProposalsByPartyResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalsByPartyResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetProposalsByPartyResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetProposalsByPartyResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetProposalsByPartyResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetProposalsByPartyResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetProposalsByPartyResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetVotesByPartyRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void GetVotesByPartyRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& GetVotesByPartyRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.GetVotesByPartyRequest.party_id) - return _internal_party_id(); -} -inline void GetVotesByPartyRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.GetVotesByPartyRequest.party_id) -} -inline std::string* GetVotesByPartyRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.GetVotesByPartyRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& GetVotesByPartyRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void GetVotesByPartyRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetVotesByPartyRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetVotesByPartyRequest.party_id) -} -inline void GetVotesByPartyRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetVotesByPartyRequest.party_id) -} -inline void GetVotesByPartyRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetVotesByPartyRequest.party_id) -} -inline std::string* GetVotesByPartyRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetVotesByPartyRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.GetVotesByPartyRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetVotesByPartyRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetVotesByPartyRequest.party_id) -} - -// ------------------------------------------------------------------- - -// GetVotesByPartyResponse - -// repeated .vega.Vote votes = 1 [json_name = "votes"]; -inline int GetVotesByPartyResponse::_internal_votes_size() const { - return votes_.size(); -} -inline int GetVotesByPartyResponse::votes_size() const { - return _internal_votes_size(); -} -inline ::vega::Vote* GetVotesByPartyResponse::mutable_votes(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetVotesByPartyResponse.votes) - return votes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >* -GetVotesByPartyResponse::mutable_votes() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetVotesByPartyResponse.votes) - return &votes_; -} -inline const ::vega::Vote& GetVotesByPartyResponse::_internal_votes(int index) const { - return votes_.Get(index); -} -inline const ::vega::Vote& GetVotesByPartyResponse::votes(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetVotesByPartyResponse.votes) - return _internal_votes(index); -} -inline ::vega::Vote* GetVotesByPartyResponse::_internal_add_votes() { - return votes_.Add(); -} -inline ::vega::Vote* GetVotesByPartyResponse::add_votes() { - // @@protoc_insertion_point(field_add:api.v1.GetVotesByPartyResponse.votes) - return _internal_add_votes(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >& -GetVotesByPartyResponse::votes() const { - // @@protoc_insertion_point(field_list:api.v1.GetVotesByPartyResponse.votes) - return votes_; -} - -// ------------------------------------------------------------------- - -// GetNewMarketProposalsRequest - -// .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; -inline bool GetNewMarketProposalsRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetNewMarketProposalsRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetNewMarketProposalsRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetNewMarketProposalsRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetNewMarketProposalsRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetNewMarketProposalsRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetNewMarketProposalsRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetNewMarketProposalsRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetNewMarketProposalsRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetNewMarketProposalsRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetNewMarketProposalsRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetNewMarketProposalsRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetNewMarketProposalsRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetNewMarketProposalsRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetNewMarketProposalsRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetNewMarketProposalsRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetNewMarketProposalsResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetNewMarketProposalsResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetNewMarketProposalsResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetNewMarketProposalsResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetNewMarketProposalsResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetNewMarketProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetNewMarketProposalsResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetNewMarketProposalsResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetNewMarketProposalsResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetNewMarketProposalsResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetNewMarketProposalsResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetNewMarketProposalsResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetNewMarketProposalsResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetNewMarketProposalsResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetNewMarketProposalsResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetUpdateMarketProposalsRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void GetUpdateMarketProposalsRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& GetUpdateMarketProposalsRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.GetUpdateMarketProposalsRequest.market_id) - return _internal_market_id(); -} -inline void GetUpdateMarketProposalsRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.GetUpdateMarketProposalsRequest.market_id) -} -inline std::string* GetUpdateMarketProposalsRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.GetUpdateMarketProposalsRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& GetUpdateMarketProposalsRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void GetUpdateMarketProposalsRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetUpdateMarketProposalsRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetUpdateMarketProposalsRequest.market_id) -} -inline void GetUpdateMarketProposalsRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetUpdateMarketProposalsRequest.market_id) -} -inline void GetUpdateMarketProposalsRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetUpdateMarketProposalsRequest.market_id) -} -inline std::string* GetUpdateMarketProposalsRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetUpdateMarketProposalsRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.GetUpdateMarketProposalsRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetUpdateMarketProposalsRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetUpdateMarketProposalsRequest.market_id) -} - -// .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; -inline bool GetUpdateMarketProposalsRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetUpdateMarketProposalsRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetUpdateMarketProposalsRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetUpdateMarketProposalsRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetUpdateMarketProposalsRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetUpdateMarketProposalsRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetUpdateMarketProposalsRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetUpdateMarketProposalsRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetUpdateMarketProposalsRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetUpdateMarketProposalsRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetUpdateMarketProposalsRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetUpdateMarketProposalsRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetUpdateMarketProposalsRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetUpdateMarketProposalsRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetUpdateMarketProposalsRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetUpdateMarketProposalsRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetUpdateMarketProposalsResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetUpdateMarketProposalsResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetUpdateMarketProposalsResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetUpdateMarketProposalsResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetUpdateMarketProposalsResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetUpdateMarketProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetUpdateMarketProposalsResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetUpdateMarketProposalsResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetUpdateMarketProposalsResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetUpdateMarketProposalsResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetUpdateMarketProposalsResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetUpdateMarketProposalsResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetUpdateMarketProposalsResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetUpdateMarketProposalsResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetUpdateMarketProposalsResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetNetworkParametersProposalsRequest - -// .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; -inline bool GetNetworkParametersProposalsRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetNetworkParametersProposalsRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetNetworkParametersProposalsRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetNetworkParametersProposalsRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetNetworkParametersProposalsRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetNetworkParametersProposalsRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetNetworkParametersProposalsRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetNetworkParametersProposalsRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetNetworkParametersProposalsRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetNetworkParametersProposalsRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetNetworkParametersProposalsRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetNetworkParametersProposalsRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetNetworkParametersProposalsRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetNetworkParametersProposalsRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetNetworkParametersProposalsRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetNetworkParametersProposalsRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetNetworkParametersProposalsResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetNetworkParametersProposalsResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetNetworkParametersProposalsResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetNetworkParametersProposalsResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetNetworkParametersProposalsResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetNetworkParametersProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetNetworkParametersProposalsResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetNetworkParametersProposalsResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetNetworkParametersProposalsResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetNetworkParametersProposalsResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetNetworkParametersProposalsResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetNetworkParametersProposalsResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetNetworkParametersProposalsResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetNetworkParametersProposalsResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetNetworkParametersProposalsResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetNewAssetProposalsRequest - -// .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; -inline bool GetNewAssetProposalsRequest::_internal_has_select_in_state() const { - return this != internal_default_instance() && select_in_state_ != nullptr; -} -inline bool GetNewAssetProposalsRequest::has_select_in_state() const { - return _internal_has_select_in_state(); -} -inline void GetNewAssetProposalsRequest::clear_select_in_state() { - if (GetArena() == nullptr && select_in_state_ != nullptr) { - delete select_in_state_; - } - select_in_state_ = nullptr; -} -inline const ::api::v1::OptionalProposalState& GetNewAssetProposalsRequest::_internal_select_in_state() const { - const ::api::v1::OptionalProposalState* p = select_in_state_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_OptionalProposalState_default_instance_); -} -inline const ::api::v1::OptionalProposalState& GetNewAssetProposalsRequest::select_in_state() const { - // @@protoc_insertion_point(field_get:api.v1.GetNewAssetProposalsRequest.select_in_state) - return _internal_select_in_state(); -} -inline void GetNewAssetProposalsRequest::unsafe_arena_set_allocated_select_in_state( - ::api::v1::OptionalProposalState* select_in_state) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(select_in_state_); - } - select_in_state_ = select_in_state; - if (select_in_state) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetNewAssetProposalsRequest.select_in_state) -} -inline ::api::v1::OptionalProposalState* GetNewAssetProposalsRequest::release_select_in_state() { - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::OptionalProposalState* GetNewAssetProposalsRequest::unsafe_arena_release_select_in_state() { - // @@protoc_insertion_point(field_release:api.v1.GetNewAssetProposalsRequest.select_in_state) - - ::api::v1::OptionalProposalState* temp = select_in_state_; - select_in_state_ = nullptr; - return temp; -} -inline ::api::v1::OptionalProposalState* GetNewAssetProposalsRequest::_internal_mutable_select_in_state() { - - if (select_in_state_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::OptionalProposalState>(GetArena()); - select_in_state_ = p; - } - return select_in_state_; -} -inline ::api::v1::OptionalProposalState* GetNewAssetProposalsRequest::mutable_select_in_state() { - // @@protoc_insertion_point(field_mutable:api.v1.GetNewAssetProposalsRequest.select_in_state) - return _internal_mutable_select_in_state(); -} -inline void GetNewAssetProposalsRequest::set_allocated_select_in_state(::api::v1::OptionalProposalState* select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete select_in_state_; - } - if (select_in_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(select_in_state); - if (message_arena != submessage_arena) { - select_in_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_in_state, submessage_arena); - } - - } else { - - } - select_in_state_ = select_in_state; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetNewAssetProposalsRequest.select_in_state) -} - -// ------------------------------------------------------------------- - -// GetNewAssetProposalsResponse - -// repeated .vega.GovernanceData data = 1 [json_name = "data"]; -inline int GetNewAssetProposalsResponse::_internal_data_size() const { - return data_.size(); -} -inline int GetNewAssetProposalsResponse::data_size() const { - return _internal_data_size(); -} -inline ::vega::GovernanceData* GetNewAssetProposalsResponse::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.GetNewAssetProposalsResponse.data) - return data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >* -GetNewAssetProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.GetNewAssetProposalsResponse.data) - return &data_; -} -inline const ::vega::GovernanceData& GetNewAssetProposalsResponse::_internal_data(int index) const { - return data_.Get(index); -} -inline const ::vega::GovernanceData& GetNewAssetProposalsResponse::data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.GetNewAssetProposalsResponse.data) - return _internal_data(index); -} -inline ::vega::GovernanceData* GetNewAssetProposalsResponse::_internal_add_data() { - return data_.Add(); -} -inline ::vega::GovernanceData* GetNewAssetProposalsResponse::add_data() { - // @@protoc_insertion_point(field_add:api.v1.GetNewAssetProposalsResponse.data) - return _internal_add_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::GovernanceData >& -GetNewAssetProposalsResponse::data() const { - // @@protoc_insertion_point(field_list:api.v1.GetNewAssetProposalsResponse.data) - return data_; -} - -// ------------------------------------------------------------------- - -// GetProposalByIDRequest - -// string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { -inline void GetProposalByIDRequest::clear_proposal_id() { - proposal_id_.ClearToEmpty(); -} -inline const std::string& GetProposalByIDRequest::proposal_id() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalByIDRequest.proposal_id) - return _internal_proposal_id(); -} -inline void GetProposalByIDRequest::set_proposal_id(const std::string& value) { - _internal_set_proposal_id(value); - // @@protoc_insertion_point(field_set:api.v1.GetProposalByIDRequest.proposal_id) -} -inline std::string* GetProposalByIDRequest::mutable_proposal_id() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalByIDRequest.proposal_id) - return _internal_mutable_proposal_id(); -} -inline const std::string& GetProposalByIDRequest::_internal_proposal_id() const { - return proposal_id_.Get(); -} -inline void GetProposalByIDRequest::_internal_set_proposal_id(const std::string& value) { - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetProposalByIDRequest::set_proposal_id(std::string&& value) { - - proposal_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetProposalByIDRequest.proposal_id) -} -inline void GetProposalByIDRequest::set_proposal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetProposalByIDRequest.proposal_id) -} -inline void GetProposalByIDRequest::set_proposal_id(const char* value, - size_t size) { - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetProposalByIDRequest.proposal_id) -} -inline std::string* GetProposalByIDRequest::_internal_mutable_proposal_id() { - - return proposal_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetProposalByIDRequest::release_proposal_id() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalByIDRequest.proposal_id) - return proposal_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetProposalByIDRequest::set_allocated_proposal_id(std::string* proposal_id) { - if (proposal_id != nullptr) { - - } else { - - } - proposal_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proposal_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalByIDRequest.proposal_id) -} - -// ------------------------------------------------------------------- - -// GetProposalByIDResponse - -// .vega.GovernanceData data = 1 [json_name = "data"]; -inline bool GetProposalByIDResponse::_internal_has_data() const { - return this != internal_default_instance() && data_ != nullptr; -} -inline bool GetProposalByIDResponse::has_data() const { - return _internal_has_data(); -} -inline const ::vega::GovernanceData& GetProposalByIDResponse::_internal_data() const { - const ::vega::GovernanceData* p = data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_GovernanceData_default_instance_); -} -inline const ::vega::GovernanceData& GetProposalByIDResponse::data() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalByIDResponse.data) - return _internal_data(); -} -inline void GetProposalByIDResponse::unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - data_ = data; - if (data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetProposalByIDResponse.data) -} -inline ::vega::GovernanceData* GetProposalByIDResponse::release_data() { - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::GovernanceData* GetProposalByIDResponse::unsafe_arena_release_data() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalByIDResponse.data) - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - return temp; -} -inline ::vega::GovernanceData* GetProposalByIDResponse::_internal_mutable_data() { - - if (data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::GovernanceData>(GetArena()); - data_ = p; - } - return data_; -} -inline ::vega::GovernanceData* GetProposalByIDResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalByIDResponse.data) - return _internal_mutable_data(); -} -inline void GetProposalByIDResponse::set_allocated_data(::vega::GovernanceData* data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - if (data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalByIDResponse.data) -} - -// ------------------------------------------------------------------- - -// GetProposalByReferenceRequest - -// string reference = 1 [json_name = "reference", (.validator.field) = { -inline void GetProposalByReferenceRequest::clear_reference() { - reference_.ClearToEmpty(); -} -inline const std::string& GetProposalByReferenceRequest::reference() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalByReferenceRequest.reference) - return _internal_reference(); -} -inline void GetProposalByReferenceRequest::set_reference(const std::string& value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:api.v1.GetProposalByReferenceRequest.reference) -} -inline std::string* GetProposalByReferenceRequest::mutable_reference() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalByReferenceRequest.reference) - return _internal_mutable_reference(); -} -inline const std::string& GetProposalByReferenceRequest::_internal_reference() const { - return reference_.Get(); -} -inline void GetProposalByReferenceRequest::_internal_set_reference(const std::string& value) { - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetProposalByReferenceRequest::set_reference(std::string&& value) { - - reference_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.GetProposalByReferenceRequest.reference) -} -inline void GetProposalByReferenceRequest::set_reference(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.GetProposalByReferenceRequest.reference) -} -inline void GetProposalByReferenceRequest::set_reference(const char* value, - size_t size) { - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.GetProposalByReferenceRequest.reference) -} -inline std::string* GetProposalByReferenceRequest::_internal_mutable_reference() { - - return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* GetProposalByReferenceRequest::release_reference() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalByReferenceRequest.reference) - return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void GetProposalByReferenceRequest::set_allocated_reference(std::string* reference) { - if (reference != nullptr) { - - } else { - - } - reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalByReferenceRequest.reference) -} - -// ------------------------------------------------------------------- - -// GetProposalByReferenceResponse - -// .vega.GovernanceData data = 1 [json_name = "data"]; -inline bool GetProposalByReferenceResponse::_internal_has_data() const { - return this != internal_default_instance() && data_ != nullptr; -} -inline bool GetProposalByReferenceResponse::has_data() const { - return _internal_has_data(); -} -inline const ::vega::GovernanceData& GetProposalByReferenceResponse::_internal_data() const { - const ::vega::GovernanceData* p = data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_GovernanceData_default_instance_); -} -inline const ::vega::GovernanceData& GetProposalByReferenceResponse::data() const { - // @@protoc_insertion_point(field_get:api.v1.GetProposalByReferenceResponse.data) - return _internal_data(); -} -inline void GetProposalByReferenceResponse::unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - data_ = data; - if (data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.GetProposalByReferenceResponse.data) -} -inline ::vega::GovernanceData* GetProposalByReferenceResponse::release_data() { - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::GovernanceData* GetProposalByReferenceResponse::unsafe_arena_release_data() { - // @@protoc_insertion_point(field_release:api.v1.GetProposalByReferenceResponse.data) - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - return temp; -} -inline ::vega::GovernanceData* GetProposalByReferenceResponse::_internal_mutable_data() { - - if (data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::GovernanceData>(GetArena()); - data_ = p; - } - return data_; -} -inline ::vega::GovernanceData* GetProposalByReferenceResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable:api.v1.GetProposalByReferenceResponse.data) - return _internal_mutable_data(); -} -inline void GetProposalByReferenceResponse::set_allocated_data(::vega::GovernanceData* data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - if (data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:api.v1.GetProposalByReferenceResponse.data) -} - -// ------------------------------------------------------------------- - -// ObserveGovernanceRequest - -// ------------------------------------------------------------------- - -// ObserveGovernanceResponse - -// .vega.GovernanceData data = 1 [json_name = "data"]; -inline bool ObserveGovernanceResponse::_internal_has_data() const { - return this != internal_default_instance() && data_ != nullptr; -} -inline bool ObserveGovernanceResponse::has_data() const { - return _internal_has_data(); -} -inline const ::vega::GovernanceData& ObserveGovernanceResponse::_internal_data() const { - const ::vega::GovernanceData* p = data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_GovernanceData_default_instance_); -} -inline const ::vega::GovernanceData& ObserveGovernanceResponse::data() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveGovernanceResponse.data) - return _internal_data(); -} -inline void ObserveGovernanceResponse::unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - data_ = data; - if (data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.ObserveGovernanceResponse.data) -} -inline ::vega::GovernanceData* ObserveGovernanceResponse::release_data() { - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::GovernanceData* ObserveGovernanceResponse::unsafe_arena_release_data() { - // @@protoc_insertion_point(field_release:api.v1.ObserveGovernanceResponse.data) - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - return temp; -} -inline ::vega::GovernanceData* ObserveGovernanceResponse::_internal_mutable_data() { - - if (data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::GovernanceData>(GetArena()); - data_ = p; - } - return data_; -} -inline ::vega::GovernanceData* ObserveGovernanceResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveGovernanceResponse.data) - return _internal_mutable_data(); -} -inline void ObserveGovernanceResponse::set_allocated_data(::vega::GovernanceData* data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - if (data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveGovernanceResponse.data) -} - -// ------------------------------------------------------------------- - -// ObservePartyProposalsRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void ObservePartyProposalsRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& ObservePartyProposalsRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.ObservePartyProposalsRequest.party_id) - return _internal_party_id(); -} -inline void ObservePartyProposalsRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.ObservePartyProposalsRequest.party_id) -} -inline std::string* ObservePartyProposalsRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ObservePartyProposalsRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& ObservePartyProposalsRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void ObservePartyProposalsRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ObservePartyProposalsRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ObservePartyProposalsRequest.party_id) -} -inline void ObservePartyProposalsRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ObservePartyProposalsRequest.party_id) -} -inline void ObservePartyProposalsRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ObservePartyProposalsRequest.party_id) -} -inline std::string* ObservePartyProposalsRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ObservePartyProposalsRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.ObservePartyProposalsRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void ObservePartyProposalsRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ObservePartyProposalsRequest.party_id) -} - -// ------------------------------------------------------------------- - -// ObservePartyProposalsResponse - -// .vega.GovernanceData data = 1 [json_name = "data"]; -inline bool ObservePartyProposalsResponse::_internal_has_data() const { - return this != internal_default_instance() && data_ != nullptr; -} -inline bool ObservePartyProposalsResponse::has_data() const { - return _internal_has_data(); -} -inline const ::vega::GovernanceData& ObservePartyProposalsResponse::_internal_data() const { - const ::vega::GovernanceData* p = data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_GovernanceData_default_instance_); -} -inline const ::vega::GovernanceData& ObservePartyProposalsResponse::data() const { - // @@protoc_insertion_point(field_get:api.v1.ObservePartyProposalsResponse.data) - return _internal_data(); -} -inline void ObservePartyProposalsResponse::unsafe_arena_set_allocated_data( - ::vega::GovernanceData* data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - data_ = data; - if (data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.ObservePartyProposalsResponse.data) -} -inline ::vega::GovernanceData* ObservePartyProposalsResponse::release_data() { - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::GovernanceData* ObservePartyProposalsResponse::unsafe_arena_release_data() { - // @@protoc_insertion_point(field_release:api.v1.ObservePartyProposalsResponse.data) - - ::vega::GovernanceData* temp = data_; - data_ = nullptr; - return temp; -} -inline ::vega::GovernanceData* ObservePartyProposalsResponse::_internal_mutable_data() { - - if (data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::GovernanceData>(GetArena()); - data_ = p; - } - return data_; -} -inline ::vega::GovernanceData* ObservePartyProposalsResponse::mutable_data() { - // @@protoc_insertion_point(field_mutable:api.v1.ObservePartyProposalsResponse.data) - return _internal_mutable_data(); -} -inline void ObservePartyProposalsResponse::set_allocated_data(::vega::GovernanceData* data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); - } - if (data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:api.v1.ObservePartyProposalsResponse.data) -} - -// ------------------------------------------------------------------- - -// ObserveProposalVotesRequest - -// string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { -inline void ObserveProposalVotesRequest::clear_proposal_id() { - proposal_id_.ClearToEmpty(); -} -inline const std::string& ObserveProposalVotesRequest::proposal_id() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveProposalVotesRequest.proposal_id) - return _internal_proposal_id(); -} -inline void ObserveProposalVotesRequest::set_proposal_id(const std::string& value) { - _internal_set_proposal_id(value); - // @@protoc_insertion_point(field_set:api.v1.ObserveProposalVotesRequest.proposal_id) -} -inline std::string* ObserveProposalVotesRequest::mutable_proposal_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveProposalVotesRequest.proposal_id) - return _internal_mutable_proposal_id(); -} -inline const std::string& ObserveProposalVotesRequest::_internal_proposal_id() const { - return proposal_id_.Get(); -} -inline void ObserveProposalVotesRequest::_internal_set_proposal_id(const std::string& value) { - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ObserveProposalVotesRequest::set_proposal_id(std::string&& value) { - - proposal_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ObserveProposalVotesRequest.proposal_id) -} -inline void ObserveProposalVotesRequest::set_proposal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ObserveProposalVotesRequest.proposal_id) -} -inline void ObserveProposalVotesRequest::set_proposal_id(const char* value, - size_t size) { - - proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ObserveProposalVotesRequest.proposal_id) -} -inline std::string* ObserveProposalVotesRequest::_internal_mutable_proposal_id() { - - return proposal_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ObserveProposalVotesRequest::release_proposal_id() { - // @@protoc_insertion_point(field_release:api.v1.ObserveProposalVotesRequest.proposal_id) - return proposal_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void ObserveProposalVotesRequest::set_allocated_proposal_id(std::string* proposal_id) { - if (proposal_id != nullptr) { - - } else { - - } - proposal_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proposal_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveProposalVotesRequest.proposal_id) -} - -// ------------------------------------------------------------------- - -// ObserveProposalVotesResponse - -// .vega.Vote vote = 1 [json_name = "vote"]; -inline bool ObserveProposalVotesResponse::_internal_has_vote() const { - return this != internal_default_instance() && vote_ != nullptr; -} -inline bool ObserveProposalVotesResponse::has_vote() const { - return _internal_has_vote(); -} -inline const ::vega::Vote& ObserveProposalVotesResponse::_internal_vote() const { - const ::vega::Vote* p = vote_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Vote_default_instance_); -} -inline const ::vega::Vote& ObserveProposalVotesResponse::vote() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveProposalVotesResponse.vote) - return _internal_vote(); -} -inline void ObserveProposalVotesResponse::unsafe_arena_set_allocated_vote( - ::vega::Vote* vote) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote_); - } - vote_ = vote; - if (vote) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.ObserveProposalVotesResponse.vote) -} -inline ::vega::Vote* ObserveProposalVotesResponse::release_vote() { - - ::vega::Vote* temp = vote_; - vote_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Vote* ObserveProposalVotesResponse::unsafe_arena_release_vote() { - // @@protoc_insertion_point(field_release:api.v1.ObserveProposalVotesResponse.vote) - - ::vega::Vote* temp = vote_; - vote_ = nullptr; - return temp; -} -inline ::vega::Vote* ObserveProposalVotesResponse::_internal_mutable_vote() { - - if (vote_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Vote>(GetArena()); - vote_ = p; - } - return vote_; -} -inline ::vega::Vote* ObserveProposalVotesResponse::mutable_vote() { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveProposalVotesResponse.vote) - return _internal_mutable_vote(); -} -inline void ObserveProposalVotesResponse::set_allocated_vote(::vega::Vote* vote) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote_); - } - if (vote) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote)->GetArena(); - if (message_arena != submessage_arena) { - vote = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vote, submessage_arena); - } - - } else { - - } - vote_ = vote; - // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveProposalVotesResponse.vote) -} - -// ------------------------------------------------------------------- - -// ObservePartyVotesRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void ObservePartyVotesRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& ObservePartyVotesRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.ObservePartyVotesRequest.party_id) - return _internal_party_id(); -} -inline void ObservePartyVotesRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.ObservePartyVotesRequest.party_id) -} -inline std::string* ObservePartyVotesRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ObservePartyVotesRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& ObservePartyVotesRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void ObservePartyVotesRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ObservePartyVotesRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ObservePartyVotesRequest.party_id) -} -inline void ObservePartyVotesRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ObservePartyVotesRequest.party_id) -} -inline void ObservePartyVotesRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ObservePartyVotesRequest.party_id) -} -inline std::string* ObservePartyVotesRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ObservePartyVotesRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.ObservePartyVotesRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void ObservePartyVotesRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ObservePartyVotesRequest.party_id) -} - -// ------------------------------------------------------------------- - -// ObservePartyVotesResponse - -// .vega.Vote vote = 1 [json_name = "vote"]; -inline bool ObservePartyVotesResponse::_internal_has_vote() const { - return this != internal_default_instance() && vote_ != nullptr; -} -inline bool ObservePartyVotesResponse::has_vote() const { - return _internal_has_vote(); -} -inline const ::vega::Vote& ObservePartyVotesResponse::_internal_vote() const { - const ::vega::Vote* p = vote_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Vote_default_instance_); -} -inline const ::vega::Vote& ObservePartyVotesResponse::vote() const { - // @@protoc_insertion_point(field_get:api.v1.ObservePartyVotesResponse.vote) - return _internal_vote(); -} -inline void ObservePartyVotesResponse::unsafe_arena_set_allocated_vote( - ::vega::Vote* vote) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote_); - } - vote_ = vote; - if (vote) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.ObservePartyVotesResponse.vote) -} -inline ::vega::Vote* ObservePartyVotesResponse::release_vote() { - - ::vega::Vote* temp = vote_; - vote_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Vote* ObservePartyVotesResponse::unsafe_arena_release_vote() { - // @@protoc_insertion_point(field_release:api.v1.ObservePartyVotesResponse.vote) - - ::vega::Vote* temp = vote_; - vote_ = nullptr; - return temp; -} -inline ::vega::Vote* ObservePartyVotesResponse::_internal_mutable_vote() { - - if (vote_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Vote>(GetArena()); - vote_ = p; - } - return vote_; -} -inline ::vega::Vote* ObservePartyVotesResponse::mutable_vote() { - // @@protoc_insertion_point(field_mutable:api.v1.ObservePartyVotesResponse.vote) - return _internal_mutable_vote(); -} -inline void ObservePartyVotesResponse::set_allocated_vote(::vega::Vote* vote) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote_); - } - if (vote) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vote)->GetArena(); - if (message_arena != submessage_arena) { - vote = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vote, submessage_arena); - } - - } else { - - } - vote_ = vote; - // @@protoc_insertion_point(field_set_allocated:api.v1.ObservePartyVotesResponse.vote) -} - -// ------------------------------------------------------------------- - -// MarginLevelsSubscribeRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void MarginLevelsSubscribeRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& MarginLevelsSubscribeRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsSubscribeRequest.party_id) - return _internal_party_id(); -} -inline void MarginLevelsSubscribeRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarginLevelsSubscribeRequest.party_id) -} -inline std::string* MarginLevelsSubscribeRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsSubscribeRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& MarginLevelsSubscribeRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void MarginLevelsSubscribeRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarginLevelsSubscribeRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarginLevelsSubscribeRequest.party_id) -} -inline void MarginLevelsSubscribeRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarginLevelsSubscribeRequest.party_id) -} -inline void MarginLevelsSubscribeRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarginLevelsSubscribeRequest.party_id) -} -inline std::string* MarginLevelsSubscribeRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarginLevelsSubscribeRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.MarginLevelsSubscribeRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarginLevelsSubscribeRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarginLevelsSubscribeRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void MarginLevelsSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarginLevelsSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void MarginLevelsSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarginLevelsSubscribeRequest.market_id) -} -inline std::string* MarginLevelsSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarginLevelsSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarginLevelsSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarginLevelsSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarginLevelsSubscribeRequest.market_id) -} -inline void MarginLevelsSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarginLevelsSubscribeRequest.market_id) -} -inline void MarginLevelsSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarginLevelsSubscribeRequest.market_id) -} -inline std::string* MarginLevelsSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarginLevelsSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarginLevelsSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarginLevelsSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarginLevelsSubscribeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarginLevelsSubscribeResponse - -// .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; -inline bool MarginLevelsSubscribeResponse::_internal_has_margin_levels() const { - return this != internal_default_instance() && margin_levels_ != nullptr; -} -inline bool MarginLevelsSubscribeResponse::has_margin_levels() const { - return _internal_has_margin_levels(); -} -inline const ::vega::MarginLevels& MarginLevelsSubscribeResponse::_internal_margin_levels() const { - const ::vega::MarginLevels* p = margin_levels_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarginLevels_default_instance_); -} -inline const ::vega::MarginLevels& MarginLevelsSubscribeResponse::margin_levels() const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsSubscribeResponse.margin_levels) - return _internal_margin_levels(); -} -inline void MarginLevelsSubscribeResponse::unsafe_arena_set_allocated_margin_levels( - ::vega::MarginLevels* margin_levels) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels_); - } - margin_levels_ = margin_levels; - if (margin_levels) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarginLevelsSubscribeResponse.margin_levels) -} -inline ::vega::MarginLevels* MarginLevelsSubscribeResponse::release_margin_levels() { - - ::vega::MarginLevels* temp = margin_levels_; - margin_levels_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarginLevels* MarginLevelsSubscribeResponse::unsafe_arena_release_margin_levels() { - // @@protoc_insertion_point(field_release:api.v1.MarginLevelsSubscribeResponse.margin_levels) - - ::vega::MarginLevels* temp = margin_levels_; - margin_levels_ = nullptr; - return temp; -} -inline ::vega::MarginLevels* MarginLevelsSubscribeResponse::_internal_mutable_margin_levels() { - - if (margin_levels_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarginLevels>(GetArena()); - margin_levels_ = p; - } - return margin_levels_; -} -inline ::vega::MarginLevels* MarginLevelsSubscribeResponse::mutable_margin_levels() { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsSubscribeResponse.margin_levels) - return _internal_mutable_margin_levels(); -} -inline void MarginLevelsSubscribeResponse::set_allocated_margin_levels(::vega::MarginLevels* margin_levels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels_); - } - if (margin_levels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels)->GetArena(); - if (message_arena != submessage_arena) { - margin_levels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, margin_levels, submessage_arena); - } - - } else { - - } - margin_levels_ = margin_levels; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarginLevelsSubscribeResponse.margin_levels) -} - -// ------------------------------------------------------------------- - -// MarginLevelsRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void MarginLevelsRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& MarginLevelsRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsRequest.party_id) - return _internal_party_id(); -} -inline void MarginLevelsRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarginLevelsRequest.party_id) -} -inline std::string* MarginLevelsRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& MarginLevelsRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void MarginLevelsRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarginLevelsRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarginLevelsRequest.party_id) -} -inline void MarginLevelsRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarginLevelsRequest.party_id) -} -inline void MarginLevelsRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarginLevelsRequest.party_id) -} -inline std::string* MarginLevelsRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarginLevelsRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.MarginLevelsRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarginLevelsRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarginLevelsRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void MarginLevelsRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarginLevelsRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsRequest.market_id) - return _internal_market_id(); -} -inline void MarginLevelsRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarginLevelsRequest.market_id) -} -inline std::string* MarginLevelsRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarginLevelsRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarginLevelsRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarginLevelsRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarginLevelsRequest.market_id) -} -inline void MarginLevelsRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarginLevelsRequest.market_id) -} -inline void MarginLevelsRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarginLevelsRequest.market_id) -} -inline std::string* MarginLevelsRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarginLevelsRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarginLevelsRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarginLevelsRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarginLevelsRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarginLevelsResponse - -// repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; -inline int MarginLevelsResponse::_internal_margin_levels_size() const { - return margin_levels_.size(); -} -inline int MarginLevelsResponse::margin_levels_size() const { - return _internal_margin_levels_size(); -} -inline ::vega::MarginLevels* MarginLevelsResponse::mutable_margin_levels(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarginLevelsResponse.margin_levels) - return margin_levels_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarginLevels >* -MarginLevelsResponse::mutable_margin_levels() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarginLevelsResponse.margin_levels) - return &margin_levels_; -} -inline const ::vega::MarginLevels& MarginLevelsResponse::_internal_margin_levels(int index) const { - return margin_levels_.Get(index); -} -inline const ::vega::MarginLevels& MarginLevelsResponse::margin_levels(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarginLevelsResponse.margin_levels) - return _internal_margin_levels(index); -} -inline ::vega::MarginLevels* MarginLevelsResponse::_internal_add_margin_levels() { - return margin_levels_.Add(); -} -inline ::vega::MarginLevels* MarginLevelsResponse::add_margin_levels() { - // @@protoc_insertion_point(field_add:api.v1.MarginLevelsResponse.margin_levels) - return _internal_add_margin_levels(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarginLevels >& -MarginLevelsResponse::margin_levels() const { - // @@protoc_insertion_point(field_list:api.v1.MarginLevelsResponse.margin_levels) - return margin_levels_; -} - -// ------------------------------------------------------------------- - -// MarketsDataSubscribeRequest - -// string market_id = 1 [json_name = "marketId"]; -inline void MarketsDataSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketsDataSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketsDataSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void MarketsDataSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketsDataSubscribeRequest.market_id) -} -inline std::string* MarketsDataSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketsDataSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketsDataSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketsDataSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketsDataSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketsDataSubscribeRequest.market_id) -} -inline void MarketsDataSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketsDataSubscribeRequest.market_id) -} -inline void MarketsDataSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketsDataSubscribeRequest.market_id) -} -inline std::string* MarketsDataSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketsDataSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketsDataSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketsDataSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketsDataSubscribeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarketsDataSubscribeResponse - -// .vega.MarketData market_data = 1 [json_name = "marketData"]; -inline bool MarketsDataSubscribeResponse::_internal_has_market_data() const { - return this != internal_default_instance() && market_data_ != nullptr; -} -inline bool MarketsDataSubscribeResponse::has_market_data() const { - return _internal_has_market_data(); -} -inline const ::vega::MarketData& MarketsDataSubscribeResponse::_internal_market_data() const { - const ::vega::MarketData* p = market_data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarketData_default_instance_); -} -inline const ::vega::MarketData& MarketsDataSubscribeResponse::market_data() const { - // @@protoc_insertion_point(field_get:api.v1.MarketsDataSubscribeResponse.market_data) - return _internal_market_data(); -} -inline void MarketsDataSubscribeResponse::unsafe_arena_set_allocated_market_data( - ::vega::MarketData* market_data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data_); - } - market_data_ = market_data; - if (market_data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketsDataSubscribeResponse.market_data) -} -inline ::vega::MarketData* MarketsDataSubscribeResponse::release_market_data() { - - ::vega::MarketData* temp = market_data_; - market_data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarketData* MarketsDataSubscribeResponse::unsafe_arena_release_market_data() { - // @@protoc_insertion_point(field_release:api.v1.MarketsDataSubscribeResponse.market_data) - - ::vega::MarketData* temp = market_data_; - market_data_ = nullptr; - return temp; -} -inline ::vega::MarketData* MarketsDataSubscribeResponse::_internal_mutable_market_data() { - - if (market_data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarketData>(GetArena()); - market_data_ = p; - } - return market_data_; -} -inline ::vega::MarketData* MarketsDataSubscribeResponse::mutable_market_data() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketsDataSubscribeResponse.market_data) - return _internal_mutable_market_data(); -} -inline void MarketsDataSubscribeResponse::set_allocated_market_data(::vega::MarketData* market_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data_); - } - if (market_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data)->GetArena(); - if (message_arena != submessage_arena) { - market_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, market_data, submessage_arena); - } - - } else { - - } - market_data_ = market_data; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketsDataSubscribeResponse.market_data) -} - -// ------------------------------------------------------------------- - -// MarketDataByIDRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void MarketDataByIDRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketDataByIDRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDataByIDRequest.market_id) - return _internal_market_id(); -} -inline void MarketDataByIDRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDataByIDRequest.market_id) -} -inline std::string* MarketDataByIDRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDataByIDRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketDataByIDRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketDataByIDRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketDataByIDRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketDataByIDRequest.market_id) -} -inline void MarketDataByIDRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketDataByIDRequest.market_id) -} -inline void MarketDataByIDRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketDataByIDRequest.market_id) -} -inline std::string* MarketDataByIDRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketDataByIDRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketDataByIDRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketDataByIDRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDataByIDRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarketDataByIDResponse - -// .vega.MarketData market_data = 1 [json_name = "marketData"]; -inline bool MarketDataByIDResponse::_internal_has_market_data() const { - return this != internal_default_instance() && market_data_ != nullptr; -} -inline bool MarketDataByIDResponse::has_market_data() const { - return _internal_has_market_data(); -} -inline const ::vega::MarketData& MarketDataByIDResponse::_internal_market_data() const { - const ::vega::MarketData* p = market_data_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarketData_default_instance_); -} -inline const ::vega::MarketData& MarketDataByIDResponse::market_data() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDataByIDResponse.market_data) - return _internal_market_data(); -} -inline void MarketDataByIDResponse::unsafe_arena_set_allocated_market_data( - ::vega::MarketData* market_data) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data_); - } - market_data_ = market_data; - if (market_data) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketDataByIDResponse.market_data) -} -inline ::vega::MarketData* MarketDataByIDResponse::release_market_data() { - - ::vega::MarketData* temp = market_data_; - market_data_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarketData* MarketDataByIDResponse::unsafe_arena_release_market_data() { - // @@protoc_insertion_point(field_release:api.v1.MarketDataByIDResponse.market_data) - - ::vega::MarketData* temp = market_data_; - market_data_ = nullptr; - return temp; -} -inline ::vega::MarketData* MarketDataByIDResponse::_internal_mutable_market_data() { - - if (market_data_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarketData>(GetArena()); - market_data_ = p; - } - return market_data_; -} -inline ::vega::MarketData* MarketDataByIDResponse::mutable_market_data() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDataByIDResponse.market_data) - return _internal_mutable_market_data(); -} -inline void MarketDataByIDResponse::set_allocated_market_data(::vega::MarketData* market_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data_); - } - if (market_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_data)->GetArena(); - if (message_arena != submessage_arena) { - market_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, market_data, submessage_arena); - } - - } else { - - } - market_data_ = market_data; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDataByIDResponse.market_data) -} - -// ------------------------------------------------------------------- - -// MarketsDataRequest - -// ------------------------------------------------------------------- - -// MarketsDataResponse - -// repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; -inline int MarketsDataResponse::_internal_markets_data_size() const { - return markets_data_.size(); -} -inline int MarketsDataResponse::markets_data_size() const { - return _internal_markets_data_size(); -} -inline ::vega::MarketData* MarketsDataResponse::mutable_markets_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarketsDataResponse.markets_data) - return markets_data_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >* -MarketsDataResponse::mutable_markets_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarketsDataResponse.markets_data) - return &markets_data_; -} -inline const ::vega::MarketData& MarketsDataResponse::_internal_markets_data(int index) const { - return markets_data_.Get(index); -} -inline const ::vega::MarketData& MarketsDataResponse::markets_data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarketsDataResponse.markets_data) - return _internal_markets_data(index); -} -inline ::vega::MarketData* MarketsDataResponse::_internal_add_markets_data() { - return markets_data_.Add(); -} -inline ::vega::MarketData* MarketsDataResponse::add_markets_data() { - // @@protoc_insertion_point(field_add:api.v1.MarketsDataResponse.markets_data) - return _internal_add_markets_data(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >& -MarketsDataResponse::markets_data() const { - // @@protoc_insertion_point(field_list:api.v1.MarketsDataResponse.markets_data) - return markets_data_; -} - -// ------------------------------------------------------------------- - -// LastTradeRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void LastTradeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& LastTradeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.LastTradeRequest.market_id) - return _internal_market_id(); -} -inline void LastTradeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.LastTradeRequest.market_id) -} -inline std::string* LastTradeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.LastTradeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& LastTradeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void LastTradeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void LastTradeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.LastTradeRequest.market_id) -} -inline void LastTradeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.LastTradeRequest.market_id) -} -inline void LastTradeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.LastTradeRequest.market_id) -} -inline std::string* LastTradeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* LastTradeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.LastTradeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void LastTradeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.LastTradeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// LastTradeResponse - -// .vega.Trade trade = 1 [json_name = "trade"]; -inline bool LastTradeResponse::_internal_has_trade() const { - return this != internal_default_instance() && trade_ != nullptr; -} -inline bool LastTradeResponse::has_trade() const { - return _internal_has_trade(); -} -inline const ::vega::Trade& LastTradeResponse::_internal_trade() const { - const ::vega::Trade* p = trade_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Trade_default_instance_); -} -inline const ::vega::Trade& LastTradeResponse::trade() const { - // @@protoc_insertion_point(field_get:api.v1.LastTradeResponse.trade) - return _internal_trade(); -} -inline void LastTradeResponse::unsafe_arena_set_allocated_trade( - ::vega::Trade* trade) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trade_); - } - trade_ = trade; - if (trade) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.LastTradeResponse.trade) -} -inline ::vega::Trade* LastTradeResponse::release_trade() { - - ::vega::Trade* temp = trade_; - trade_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Trade* LastTradeResponse::unsafe_arena_release_trade() { - // @@protoc_insertion_point(field_release:api.v1.LastTradeResponse.trade) - - ::vega::Trade* temp = trade_; - trade_ = nullptr; - return temp; -} -inline ::vega::Trade* LastTradeResponse::_internal_mutable_trade() { - - if (trade_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Trade>(GetArena()); - trade_ = p; - } - return trade_; -} -inline ::vega::Trade* LastTradeResponse::mutable_trade() { - // @@protoc_insertion_point(field_mutable:api.v1.LastTradeResponse.trade) - return _internal_mutable_trade(); -} -inline void LastTradeResponse::set_allocated_trade(::vega::Trade* trade) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(trade_); - } - if (trade) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trade)->GetArena(); - if (message_arena != submessage_arena) { - trade = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, trade, submessage_arena); - } - - } else { - - } - trade_ = trade; - // @@protoc_insertion_point(field_set_allocated:api.v1.LastTradeResponse.trade) -} - -// ------------------------------------------------------------------- - -// MarketByIDRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void MarketByIDRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketByIDRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketByIDRequest.market_id) - return _internal_market_id(); -} -inline void MarketByIDRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketByIDRequest.market_id) -} -inline std::string* MarketByIDRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketByIDRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketByIDRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketByIDRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketByIDRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketByIDRequest.market_id) -} -inline void MarketByIDRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketByIDRequest.market_id) -} -inline void MarketByIDRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketByIDRequest.market_id) -} -inline std::string* MarketByIDRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketByIDRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketByIDRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketByIDRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketByIDRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarketByIDResponse - -// .vega.Market market = 1 [json_name = "market"]; -inline bool MarketByIDResponse::_internal_has_market() const { - return this != internal_default_instance() && market_ != nullptr; -} -inline bool MarketByIDResponse::has_market() const { - return _internal_has_market(); -} -inline const ::vega::Market& MarketByIDResponse::_internal_market() const { - const ::vega::Market* p = market_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Market_default_instance_); -} -inline const ::vega::Market& MarketByIDResponse::market() const { - // @@protoc_insertion_point(field_get:api.v1.MarketByIDResponse.market) - return _internal_market(); -} -inline void MarketByIDResponse::unsafe_arena_set_allocated_market( - ::vega::Market* market) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_); - } - market_ = market; - if (market) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketByIDResponse.market) -} -inline ::vega::Market* MarketByIDResponse::release_market() { - - ::vega::Market* temp = market_; - market_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Market* MarketByIDResponse::unsafe_arena_release_market() { - // @@protoc_insertion_point(field_release:api.v1.MarketByIDResponse.market) - - ::vega::Market* temp = market_; - market_ = nullptr; - return temp; -} -inline ::vega::Market* MarketByIDResponse::_internal_mutable_market() { - - if (market_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Market>(GetArena()); - market_ = p; - } - return market_; -} -inline ::vega::Market* MarketByIDResponse::mutable_market() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketByIDResponse.market) - return _internal_mutable_market(); -} -inline void MarketByIDResponse::set_allocated_market(::vega::Market* market) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_); - } - if (market) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market)->GetArena(); - if (message_arena != submessage_arena) { - market = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, market, submessage_arena); - } - - } else { - - } - market_ = market; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketByIDResponse.market) -} - -// ------------------------------------------------------------------- - -// PartyByIDRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void PartyByIDRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& PartyByIDRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.PartyByIDRequest.party_id) - return _internal_party_id(); -} -inline void PartyByIDRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.PartyByIDRequest.party_id) -} -inline std::string* PartyByIDRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PartyByIDRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& PartyByIDRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void PartyByIDRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PartyByIDRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PartyByIDRequest.party_id) -} -inline void PartyByIDRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PartyByIDRequest.party_id) -} -inline void PartyByIDRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PartyByIDRequest.party_id) -} -inline std::string* PartyByIDRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PartyByIDRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.PartyByIDRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PartyByIDRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PartyByIDRequest.party_id) -} - -// ------------------------------------------------------------------- - -// PartyByIDResponse - -// .vega.Party party = 1 [json_name = "party"]; -inline bool PartyByIDResponse::_internal_has_party() const { - return this != internal_default_instance() && party_ != nullptr; -} -inline bool PartyByIDResponse::has_party() const { - return _internal_has_party(); -} -inline const ::vega::Party& PartyByIDResponse::_internal_party() const { - const ::vega::Party* p = party_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Party_default_instance_); -} -inline const ::vega::Party& PartyByIDResponse::party() const { - // @@protoc_insertion_point(field_get:api.v1.PartyByIDResponse.party) - return _internal_party(); -} -inline void PartyByIDResponse::unsafe_arena_set_allocated_party( - ::vega::Party* party) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(party_); - } - party_ = party; - if (party) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PartyByIDResponse.party) -} -inline ::vega::Party* PartyByIDResponse::release_party() { - - ::vega::Party* temp = party_; - party_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Party* PartyByIDResponse::unsafe_arena_release_party() { - // @@protoc_insertion_point(field_release:api.v1.PartyByIDResponse.party) - - ::vega::Party* temp = party_; - party_ = nullptr; - return temp; -} -inline ::vega::Party* PartyByIDResponse::_internal_mutable_party() { - - if (party_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Party>(GetArena()); - party_ = p; - } - return party_; -} -inline ::vega::Party* PartyByIDResponse::mutable_party() { - // @@protoc_insertion_point(field_mutable:api.v1.PartyByIDResponse.party) - return _internal_mutable_party(); -} -inline void PartyByIDResponse::set_allocated_party(::vega::Party* party) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(party_); - } - if (party) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(party)->GetArena(); - if (message_arena != submessage_arena) { - party = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, party, submessage_arena); - } - - } else { - - } - party_ = party; - // @@protoc_insertion_point(field_set_allocated:api.v1.PartyByIDResponse.party) -} - -// ------------------------------------------------------------------- - -// PartiesRequest - -// ------------------------------------------------------------------- - -// PartiesResponse - -// repeated .vega.Party parties = 1 [json_name = "parties"]; -inline int PartiesResponse::_internal_parties_size() const { - return parties_.size(); -} -inline int PartiesResponse::parties_size() const { - return _internal_parties_size(); -} -inline ::vega::Party* PartiesResponse::mutable_parties(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.PartiesResponse.parties) - return parties_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >* -PartiesResponse::mutable_parties() { - // @@protoc_insertion_point(field_mutable_list:api.v1.PartiesResponse.parties) - return &parties_; -} -inline const ::vega::Party& PartiesResponse::_internal_parties(int index) const { - return parties_.Get(index); -} -inline const ::vega::Party& PartiesResponse::parties(int index) const { - // @@protoc_insertion_point(field_get:api.v1.PartiesResponse.parties) - return _internal_parties(index); -} -inline ::vega::Party* PartiesResponse::_internal_add_parties() { - return parties_.Add(); -} -inline ::vega::Party* PartiesResponse::add_parties() { - // @@protoc_insertion_point(field_add:api.v1.PartiesResponse.parties) - return _internal_add_parties(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >& -PartiesResponse::parties() const { - // @@protoc_insertion_point(field_list:api.v1.PartiesResponse.parties) - return parties_; -} - -// ------------------------------------------------------------------- - -// TradesByPartyRequest - -// string party_id = 1 [json_name = "partyId"]; -inline void TradesByPartyRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& TradesByPartyRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByPartyRequest.party_id) - return _internal_party_id(); -} -inline void TradesByPartyRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesByPartyRequest.party_id) -} -inline std::string* TradesByPartyRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByPartyRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& TradesByPartyRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void TradesByPartyRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesByPartyRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesByPartyRequest.party_id) -} -inline void TradesByPartyRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesByPartyRequest.party_id) -} -inline void TradesByPartyRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesByPartyRequest.party_id) -} -inline std::string* TradesByPartyRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesByPartyRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesByPartyRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesByPartyRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByPartyRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void TradesByPartyRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& TradesByPartyRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByPartyRequest.market_id) - return _internal_market_id(); -} -inline void TradesByPartyRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesByPartyRequest.market_id) -} -inline std::string* TradesByPartyRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByPartyRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& TradesByPartyRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void TradesByPartyRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesByPartyRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesByPartyRequest.market_id) -} -inline void TradesByPartyRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesByPartyRequest.market_id) -} -inline void TradesByPartyRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesByPartyRequest.market_id) -} -inline std::string* TradesByPartyRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesByPartyRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesByPartyRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesByPartyRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByPartyRequest.market_id) -} - -// .api.v1.Pagination pagination = 3 [json_name = "pagination"]; -inline bool TradesByPartyRequest::_internal_has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline bool TradesByPartyRequest::has_pagination() const { - return _internal_has_pagination(); -} -inline void TradesByPartyRequest::clear_pagination() { - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::api::v1::Pagination& TradesByPartyRequest::_internal_pagination() const { - const ::api::v1::Pagination* p = pagination_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_Pagination_default_instance_); -} -inline const ::api::v1::Pagination& TradesByPartyRequest::pagination() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByPartyRequest.pagination) - return _internal_pagination(); -} -inline void TradesByPartyRequest::unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pagination_); - } - pagination_ = pagination; - if (pagination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.TradesByPartyRequest.pagination) -} -inline ::api::v1::Pagination* TradesByPartyRequest::release_pagination() { - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::Pagination* TradesByPartyRequest::unsafe_arena_release_pagination() { - // @@protoc_insertion_point(field_release:api.v1.TradesByPartyRequest.pagination) - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::api::v1::Pagination* TradesByPartyRequest::_internal_mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::Pagination>(GetArena()); - pagination_ = p; - } - return pagination_; -} -inline ::api::v1::Pagination* TradesByPartyRequest::mutable_pagination() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByPartyRequest.pagination) - return _internal_mutable_pagination(); -} -inline void TradesByPartyRequest::set_allocated_pagination(::api::v1::Pagination* pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pagination); - if (message_arena != submessage_arena) { - pagination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByPartyRequest.pagination) -} - -// ------------------------------------------------------------------- - -// TradesByPartyResponse - -// repeated .vega.Trade trades = 1 [json_name = "trades"]; -inline int TradesByPartyResponse::_internal_trades_size() const { - return trades_.size(); -} -inline int TradesByPartyResponse::trades_size() const { - return _internal_trades_size(); -} -inline ::vega::Trade* TradesByPartyResponse::mutable_trades(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByPartyResponse.trades) - return trades_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* -TradesByPartyResponse::mutable_trades() { - // @@protoc_insertion_point(field_mutable_list:api.v1.TradesByPartyResponse.trades) - return &trades_; -} -inline const ::vega::Trade& TradesByPartyResponse::_internal_trades(int index) const { - return trades_.Get(index); -} -inline const ::vega::Trade& TradesByPartyResponse::trades(int index) const { - // @@protoc_insertion_point(field_get:api.v1.TradesByPartyResponse.trades) - return _internal_trades(index); -} -inline ::vega::Trade* TradesByPartyResponse::_internal_add_trades() { - return trades_.Add(); -} -inline ::vega::Trade* TradesByPartyResponse::add_trades() { - // @@protoc_insertion_point(field_add:api.v1.TradesByPartyResponse.trades) - return _internal_add_trades(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& -TradesByPartyResponse::trades() const { - // @@protoc_insertion_point(field_list:api.v1.TradesByPartyResponse.trades) - return trades_; -} - -// ------------------------------------------------------------------- - -// TradesByOrderRequest - -// string order_id = 1 [json_name = "orderId"]; -inline void TradesByOrderRequest::clear_order_id() { - order_id_.ClearToEmpty(); -} -inline const std::string& TradesByOrderRequest::order_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByOrderRequest.order_id) - return _internal_order_id(); -} -inline void TradesByOrderRequest::set_order_id(const std::string& value) { - _internal_set_order_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesByOrderRequest.order_id) -} -inline std::string* TradesByOrderRequest::mutable_order_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByOrderRequest.order_id) - return _internal_mutable_order_id(); -} -inline const std::string& TradesByOrderRequest::_internal_order_id() const { - return order_id_.Get(); -} -inline void TradesByOrderRequest::_internal_set_order_id(const std::string& value) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesByOrderRequest::set_order_id(std::string&& value) { - - order_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesByOrderRequest.order_id) -} -inline void TradesByOrderRequest::set_order_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesByOrderRequest.order_id) -} -inline void TradesByOrderRequest::set_order_id(const char* value, - size_t size) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesByOrderRequest.order_id) -} -inline std::string* TradesByOrderRequest::_internal_mutable_order_id() { - - return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesByOrderRequest::release_order_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesByOrderRequest.order_id) - return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesByOrderRequest::set_allocated_order_id(std::string* order_id) { - if (order_id != nullptr) { - - } else { - - } - order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByOrderRequest.order_id) -} - -// ------------------------------------------------------------------- - -// TradesByOrderResponse - -// repeated .vega.Trade trades = 1 [json_name = "trades"]; -inline int TradesByOrderResponse::_internal_trades_size() const { - return trades_.size(); -} -inline int TradesByOrderResponse::trades_size() const { - return _internal_trades_size(); -} -inline ::vega::Trade* TradesByOrderResponse::mutable_trades(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByOrderResponse.trades) - return trades_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* -TradesByOrderResponse::mutable_trades() { - // @@protoc_insertion_point(field_mutable_list:api.v1.TradesByOrderResponse.trades) - return &trades_; -} -inline const ::vega::Trade& TradesByOrderResponse::_internal_trades(int index) const { - return trades_.Get(index); -} -inline const ::vega::Trade& TradesByOrderResponse::trades(int index) const { - // @@protoc_insertion_point(field_get:api.v1.TradesByOrderResponse.trades) - return _internal_trades(index); -} -inline ::vega::Trade* TradesByOrderResponse::_internal_add_trades() { - return trades_.Add(); -} -inline ::vega::Trade* TradesByOrderResponse::add_trades() { - // @@protoc_insertion_point(field_add:api.v1.TradesByOrderResponse.trades) - return _internal_add_trades(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& -TradesByOrderResponse::trades() const { - // @@protoc_insertion_point(field_list:api.v1.TradesByOrderResponse.trades) - return trades_; -} - -// ------------------------------------------------------------------- - -// AccountsSubscribeRequest - -// string market_id = 1 [json_name = "marketId"]; -inline void AccountsSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& AccountsSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.AccountsSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void AccountsSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.AccountsSubscribeRequest.market_id) -} -inline std::string* AccountsSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.AccountsSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& AccountsSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void AccountsSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AccountsSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.AccountsSubscribeRequest.market_id) -} -inline void AccountsSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.AccountsSubscribeRequest.market_id) -} -inline void AccountsSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.AccountsSubscribeRequest.market_id) -} -inline std::string* AccountsSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* AccountsSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.AccountsSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void AccountsSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.AccountsSubscribeRequest.market_id) -} - -// string party_id = 2 [json_name = "partyId"]; -inline void AccountsSubscribeRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& AccountsSubscribeRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.AccountsSubscribeRequest.party_id) - return _internal_party_id(); -} -inline void AccountsSubscribeRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.AccountsSubscribeRequest.party_id) -} -inline std::string* AccountsSubscribeRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.AccountsSubscribeRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& AccountsSubscribeRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void AccountsSubscribeRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AccountsSubscribeRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.AccountsSubscribeRequest.party_id) -} -inline void AccountsSubscribeRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.AccountsSubscribeRequest.party_id) -} -inline void AccountsSubscribeRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.AccountsSubscribeRequest.party_id) -} -inline std::string* AccountsSubscribeRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* AccountsSubscribeRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.AccountsSubscribeRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void AccountsSubscribeRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.AccountsSubscribeRequest.party_id) -} - -// string asset = 3 [json_name = "asset"]; -inline void AccountsSubscribeRequest::clear_asset() { - asset_.ClearToEmpty(); -} -inline const std::string& AccountsSubscribeRequest::asset() const { - // @@protoc_insertion_point(field_get:api.v1.AccountsSubscribeRequest.asset) - return _internal_asset(); -} -inline void AccountsSubscribeRequest::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:api.v1.AccountsSubscribeRequest.asset) -} -inline std::string* AccountsSubscribeRequest::mutable_asset() { - // @@protoc_insertion_point(field_mutable:api.v1.AccountsSubscribeRequest.asset) - return _internal_mutable_asset(); -} -inline const std::string& AccountsSubscribeRequest::_internal_asset() const { - return asset_.Get(); -} -inline void AccountsSubscribeRequest::_internal_set_asset(const std::string& value) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AccountsSubscribeRequest::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.AccountsSubscribeRequest.asset) -} -inline void AccountsSubscribeRequest::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.AccountsSubscribeRequest.asset) -} -inline void AccountsSubscribeRequest::set_asset(const char* value, - size_t size) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.AccountsSubscribeRequest.asset) -} -inline std::string* AccountsSubscribeRequest::_internal_mutable_asset() { - - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* AccountsSubscribeRequest::release_asset() { - // @@protoc_insertion_point(field_release:api.v1.AccountsSubscribeRequest.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void AccountsSubscribeRequest::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - - } else { - - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.AccountsSubscribeRequest.asset) -} - -// .vega.AccountType type = 4 [json_name = "type"]; -inline void AccountsSubscribeRequest::clear_type() { - type_ = 0; -} -inline ::vega::AccountType AccountsSubscribeRequest::_internal_type() const { - return static_cast< ::vega::AccountType >(type_); -} -inline ::vega::AccountType AccountsSubscribeRequest::type() const { - // @@protoc_insertion_point(field_get:api.v1.AccountsSubscribeRequest.type) - return _internal_type(); -} -inline void AccountsSubscribeRequest::_internal_set_type(::vega::AccountType value) { - - type_ = value; -} -inline void AccountsSubscribeRequest::set_type(::vega::AccountType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:api.v1.AccountsSubscribeRequest.type) -} - -// ------------------------------------------------------------------- - -// AccountsSubscribeResponse - -// .vega.Account account = 1 [json_name = "account"]; -inline bool AccountsSubscribeResponse::_internal_has_account() const { - return this != internal_default_instance() && account_ != nullptr; -} -inline bool AccountsSubscribeResponse::has_account() const { - return _internal_has_account(); -} -inline const ::vega::Account& AccountsSubscribeResponse::_internal_account() const { - const ::vega::Account* p = account_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Account_default_instance_); -} -inline const ::vega::Account& AccountsSubscribeResponse::account() const { - // @@protoc_insertion_point(field_get:api.v1.AccountsSubscribeResponse.account) - return _internal_account(); -} -inline void AccountsSubscribeResponse::unsafe_arena_set_allocated_account( - ::vega::Account* account) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(account_); - } - account_ = account; - if (account) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.AccountsSubscribeResponse.account) -} -inline ::vega::Account* AccountsSubscribeResponse::release_account() { - - ::vega::Account* temp = account_; - account_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Account* AccountsSubscribeResponse::unsafe_arena_release_account() { - // @@protoc_insertion_point(field_release:api.v1.AccountsSubscribeResponse.account) - - ::vega::Account* temp = account_; - account_ = nullptr; - return temp; -} -inline ::vega::Account* AccountsSubscribeResponse::_internal_mutable_account() { - - if (account_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Account>(GetArena()); - account_ = p; - } - return account_; -} -inline ::vega::Account* AccountsSubscribeResponse::mutable_account() { - // @@protoc_insertion_point(field_mutable:api.v1.AccountsSubscribeResponse.account) - return _internal_mutable_account(); -} -inline void AccountsSubscribeResponse::set_allocated_account(::vega::Account* account) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(account_); - } - if (account) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(account)->GetArena(); - if (message_arena != submessage_arena) { - account = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, account, submessage_arena); - } - - } else { - - } - account_ = account; - // @@protoc_insertion_point(field_set_allocated:api.v1.AccountsSubscribeResponse.account) -} - -// ------------------------------------------------------------------- - -// OrdersSubscribeRequest - -// string market_id = 1 [json_name = "marketId"]; -inline void OrdersSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& OrdersSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void OrdersSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrdersSubscribeRequest.market_id) -} -inline std::string* OrdersSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& OrdersSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void OrdersSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrdersSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrdersSubscribeRequest.market_id) -} -inline void OrdersSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrdersSubscribeRequest.market_id) -} -inline void OrdersSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrdersSubscribeRequest.market_id) -} -inline std::string* OrdersSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrdersSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.OrdersSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrdersSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersSubscribeRequest.market_id) -} - -// string party_id = 2 [json_name = "partyId"]; -inline void OrdersSubscribeRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& OrdersSubscribeRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersSubscribeRequest.party_id) - return _internal_party_id(); -} -inline void OrdersSubscribeRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrdersSubscribeRequest.party_id) -} -inline std::string* OrdersSubscribeRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersSubscribeRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& OrdersSubscribeRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void OrdersSubscribeRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrdersSubscribeRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrdersSubscribeRequest.party_id) -} -inline void OrdersSubscribeRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrdersSubscribeRequest.party_id) -} -inline void OrdersSubscribeRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrdersSubscribeRequest.party_id) -} -inline std::string* OrdersSubscribeRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrdersSubscribeRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.OrdersSubscribeRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrdersSubscribeRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersSubscribeRequest.party_id) -} - -// ------------------------------------------------------------------- - -// TradesSubscribeRequest - -// string market_id = 1 [json_name = "marketId"]; -inline void TradesSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& TradesSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void TradesSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesSubscribeRequest.market_id) -} -inline std::string* TradesSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& TradesSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void TradesSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesSubscribeRequest.market_id) -} -inline void TradesSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesSubscribeRequest.market_id) -} -inline void TradesSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesSubscribeRequest.market_id) -} -inline std::string* TradesSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesSubscribeRequest.market_id) -} - -// string party_id = 2 [json_name = "partyId"]; -inline void TradesSubscribeRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& TradesSubscribeRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesSubscribeRequest.party_id) - return _internal_party_id(); -} -inline void TradesSubscribeRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesSubscribeRequest.party_id) -} -inline std::string* TradesSubscribeRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesSubscribeRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& TradesSubscribeRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void TradesSubscribeRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesSubscribeRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesSubscribeRequest.party_id) -} -inline void TradesSubscribeRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesSubscribeRequest.party_id) -} -inline void TradesSubscribeRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesSubscribeRequest.party_id) -} -inline std::string* TradesSubscribeRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesSubscribeRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesSubscribeRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesSubscribeRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesSubscribeRequest.party_id) -} - -// ------------------------------------------------------------------- - -// CandlesSubscribeRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void CandlesSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& CandlesSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void CandlesSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.CandlesSubscribeRequest.market_id) -} -inline std::string* CandlesSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.CandlesSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& CandlesSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void CandlesSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CandlesSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.CandlesSubscribeRequest.market_id) -} -inline void CandlesSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.CandlesSubscribeRequest.market_id) -} -inline void CandlesSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.CandlesSubscribeRequest.market_id) -} -inline std::string* CandlesSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* CandlesSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.CandlesSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void CandlesSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.CandlesSubscribeRequest.market_id) -} - -// .vega.Interval interval = 2 [json_name = "interval"]; -inline void CandlesSubscribeRequest::clear_interval() { - interval_ = 0; -} -inline ::vega::Interval CandlesSubscribeRequest::_internal_interval() const { - return static_cast< ::vega::Interval >(interval_); -} -inline ::vega::Interval CandlesSubscribeRequest::interval() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesSubscribeRequest.interval) - return _internal_interval(); -} -inline void CandlesSubscribeRequest::_internal_set_interval(::vega::Interval value) { - - interval_ = value; -} -inline void CandlesSubscribeRequest::set_interval(::vega::Interval value) { - _internal_set_interval(value); - // @@protoc_insertion_point(field_set:api.v1.CandlesSubscribeRequest.interval) -} - -// ------------------------------------------------------------------- - -// CandlesSubscribeResponse - -// .vega.Candle candle = 1 [json_name = "candle"]; -inline bool CandlesSubscribeResponse::_internal_has_candle() const { - return this != internal_default_instance() && candle_ != nullptr; -} -inline bool CandlesSubscribeResponse::has_candle() const { - return _internal_has_candle(); -} -inline const ::vega::Candle& CandlesSubscribeResponse::_internal_candle() const { - const ::vega::Candle* p = candle_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Candle_default_instance_); -} -inline const ::vega::Candle& CandlesSubscribeResponse::candle() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesSubscribeResponse.candle) - return _internal_candle(); -} -inline void CandlesSubscribeResponse::unsafe_arena_set_allocated_candle( - ::vega::Candle* candle) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(candle_); - } - candle_ = candle; - if (candle) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.CandlesSubscribeResponse.candle) -} -inline ::vega::Candle* CandlesSubscribeResponse::release_candle() { - - ::vega::Candle* temp = candle_; - candle_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Candle* CandlesSubscribeResponse::unsafe_arena_release_candle() { - // @@protoc_insertion_point(field_release:api.v1.CandlesSubscribeResponse.candle) - - ::vega::Candle* temp = candle_; - candle_ = nullptr; - return temp; -} -inline ::vega::Candle* CandlesSubscribeResponse::_internal_mutable_candle() { - - if (candle_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Candle>(GetArena()); - candle_ = p; - } - return candle_; -} -inline ::vega::Candle* CandlesSubscribeResponse::mutable_candle() { - // @@protoc_insertion_point(field_mutable:api.v1.CandlesSubscribeResponse.candle) - return _internal_mutable_candle(); -} -inline void CandlesSubscribeResponse::set_allocated_candle(::vega::Candle* candle) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(candle_); - } - if (candle) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(candle)->GetArena(); - if (message_arena != submessage_arena) { - candle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, candle, submessage_arena); - } - - } else { - - } - candle_ = candle; - // @@protoc_insertion_point(field_set_allocated:api.v1.CandlesSubscribeResponse.candle) -} - -// ------------------------------------------------------------------- - -// MarketDepthSubscribeRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void MarketDepthSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketDepthSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void MarketDepthSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthSubscribeRequest.market_id) -} -inline std::string* MarketDepthSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketDepthSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketDepthSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketDepthSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketDepthSubscribeRequest.market_id) -} -inline void MarketDepthSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketDepthSubscribeRequest.market_id) -} -inline void MarketDepthSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketDepthSubscribeRequest.market_id) -} -inline std::string* MarketDepthSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketDepthSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketDepthSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthSubscribeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarketDepthSubscribeResponse - -// .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; -inline bool MarketDepthSubscribeResponse::_internal_has_market_depth() const { - return this != internal_default_instance() && market_depth_ != nullptr; -} -inline bool MarketDepthSubscribeResponse::has_market_depth() const { - return _internal_has_market_depth(); -} -inline const ::vega::MarketDepth& MarketDepthSubscribeResponse::_internal_market_depth() const { - const ::vega::MarketDepth* p = market_depth_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarketDepth_default_instance_); -} -inline const ::vega::MarketDepth& MarketDepthSubscribeResponse::market_depth() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthSubscribeResponse.market_depth) - return _internal_market_depth(); -} -inline void MarketDepthSubscribeResponse::unsafe_arena_set_allocated_market_depth( - ::vega::MarketDepth* market_depth) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_depth_); - } - market_depth_ = market_depth; - if (market_depth) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketDepthSubscribeResponse.market_depth) -} -inline ::vega::MarketDepth* MarketDepthSubscribeResponse::release_market_depth() { - - ::vega::MarketDepth* temp = market_depth_; - market_depth_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarketDepth* MarketDepthSubscribeResponse::unsafe_arena_release_market_depth() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthSubscribeResponse.market_depth) - - ::vega::MarketDepth* temp = market_depth_; - market_depth_ = nullptr; - return temp; -} -inline ::vega::MarketDepth* MarketDepthSubscribeResponse::_internal_mutable_market_depth() { - - if (market_depth_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarketDepth>(GetArena()); - market_depth_ = p; - } - return market_depth_; -} -inline ::vega::MarketDepth* MarketDepthSubscribeResponse::mutable_market_depth() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthSubscribeResponse.market_depth) - return _internal_mutable_market_depth(); -} -inline void MarketDepthSubscribeResponse::set_allocated_market_depth(::vega::MarketDepth* market_depth) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_depth_); - } - if (market_depth) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(market_depth)->GetArena(); - if (message_arena != submessage_arena) { - market_depth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, market_depth, submessage_arena); - } - - } else { - - } - market_depth_ = market_depth; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthSubscribeResponse.market_depth) -} - -// ------------------------------------------------------------------- - -// MarketDepthUpdatesSubscribeRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void MarketDepthUpdatesSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketDepthUpdatesSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void MarketDepthUpdatesSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) -} -inline std::string* MarketDepthUpdatesSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketDepthUpdatesSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketDepthUpdatesSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketDepthUpdatesSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) -} -inline void MarketDepthUpdatesSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) -} -inline void MarketDepthUpdatesSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) -} -inline std::string* MarketDepthUpdatesSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketDepthUpdatesSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketDepthUpdatesSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthUpdatesSubscribeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// MarketDepthUpdatesSubscribeResponse - -// .vega.MarketDepthUpdate update = 1 [json_name = "update"]; -inline bool MarketDepthUpdatesSubscribeResponse::_internal_has_update() const { - return this != internal_default_instance() && update_ != nullptr; -} -inline bool MarketDepthUpdatesSubscribeResponse::has_update() const { - return _internal_has_update(); -} -inline const ::vega::MarketDepthUpdate& MarketDepthUpdatesSubscribeResponse::_internal_update() const { - const ::vega::MarketDepthUpdate* p = update_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarketDepthUpdate_default_instance_); -} -inline const ::vega::MarketDepthUpdate& MarketDepthUpdatesSubscribeResponse::update() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthUpdatesSubscribeResponse.update) - return _internal_update(); -} -inline void MarketDepthUpdatesSubscribeResponse::unsafe_arena_set_allocated_update( - ::vega::MarketDepthUpdate* update) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_); - } - update_ = update; - if (update) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketDepthUpdatesSubscribeResponse.update) -} -inline ::vega::MarketDepthUpdate* MarketDepthUpdatesSubscribeResponse::release_update() { - - ::vega::MarketDepthUpdate* temp = update_; - update_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarketDepthUpdate* MarketDepthUpdatesSubscribeResponse::unsafe_arena_release_update() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthUpdatesSubscribeResponse.update) - - ::vega::MarketDepthUpdate* temp = update_; - update_ = nullptr; - return temp; -} -inline ::vega::MarketDepthUpdate* MarketDepthUpdatesSubscribeResponse::_internal_mutable_update() { - - if (update_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarketDepthUpdate>(GetArena()); - update_ = p; - } - return update_; -} -inline ::vega::MarketDepthUpdate* MarketDepthUpdatesSubscribeResponse::mutable_update() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthUpdatesSubscribeResponse.update) - return _internal_mutable_update(); -} -inline void MarketDepthUpdatesSubscribeResponse::set_allocated_update(::vega::MarketDepthUpdate* update) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_); - } - if (update) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update)->GetArena(); - if (message_arena != submessage_arena) { - update = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, update, submessage_arena); - } - - } else { - - } - update_ = update; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthUpdatesSubscribeResponse.update) -} - -// ------------------------------------------------------------------- - -// PositionsSubscribeRequest - -// string party_id = 1 [json_name = "partyId"]; -inline void PositionsSubscribeRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& PositionsSubscribeRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.PositionsSubscribeRequest.party_id) - return _internal_party_id(); -} -inline void PositionsSubscribeRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.PositionsSubscribeRequest.party_id) -} -inline std::string* PositionsSubscribeRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsSubscribeRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& PositionsSubscribeRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void PositionsSubscribeRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PositionsSubscribeRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PositionsSubscribeRequest.party_id) -} -inline void PositionsSubscribeRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PositionsSubscribeRequest.party_id) -} -inline void PositionsSubscribeRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PositionsSubscribeRequest.party_id) -} -inline std::string* PositionsSubscribeRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PositionsSubscribeRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.PositionsSubscribeRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PositionsSubscribeRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PositionsSubscribeRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void PositionsSubscribeRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& PositionsSubscribeRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.PositionsSubscribeRequest.market_id) - return _internal_market_id(); -} -inline void PositionsSubscribeRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.PositionsSubscribeRequest.market_id) -} -inline std::string* PositionsSubscribeRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsSubscribeRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& PositionsSubscribeRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void PositionsSubscribeRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PositionsSubscribeRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PositionsSubscribeRequest.market_id) -} -inline void PositionsSubscribeRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PositionsSubscribeRequest.market_id) -} -inline void PositionsSubscribeRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PositionsSubscribeRequest.market_id) -} -inline std::string* PositionsSubscribeRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PositionsSubscribeRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.PositionsSubscribeRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PositionsSubscribeRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PositionsSubscribeRequest.market_id) -} - -// ------------------------------------------------------------------- - -// PositionsSubscribeResponse - -// .vega.Position position = 1 [json_name = "position"]; -inline bool PositionsSubscribeResponse::_internal_has_position() const { - return this != internal_default_instance() && position_ != nullptr; -} -inline bool PositionsSubscribeResponse::has_position() const { - return _internal_has_position(); -} -inline const ::vega::Position& PositionsSubscribeResponse::_internal_position() const { - const ::vega::Position* p = position_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Position_default_instance_); -} -inline const ::vega::Position& PositionsSubscribeResponse::position() const { - // @@protoc_insertion_point(field_get:api.v1.PositionsSubscribeResponse.position) - return _internal_position(); -} -inline void PositionsSubscribeResponse::unsafe_arena_set_allocated_position( - ::vega::Position* position) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(position_); - } - position_ = position; - if (position) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PositionsSubscribeResponse.position) -} -inline ::vega::Position* PositionsSubscribeResponse::release_position() { - - ::vega::Position* temp = position_; - position_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Position* PositionsSubscribeResponse::unsafe_arena_release_position() { - // @@protoc_insertion_point(field_release:api.v1.PositionsSubscribeResponse.position) - - ::vega::Position* temp = position_; - position_ = nullptr; - return temp; -} -inline ::vega::Position* PositionsSubscribeResponse::_internal_mutable_position() { - - if (position_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Position>(GetArena()); - position_ = p; - } - return position_; -} -inline ::vega::Position* PositionsSubscribeResponse::mutable_position() { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsSubscribeResponse.position) - return _internal_mutable_position(); -} -inline void PositionsSubscribeResponse::set_allocated_position(::vega::Position* position) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(position_); - } - if (position) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(position)->GetArena(); - if (message_arena != submessage_arena) { - position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, position, submessage_arena); - } - - } else { - - } - position_ = position; - // @@protoc_insertion_point(field_set_allocated:api.v1.PositionsSubscribeResponse.position) -} - -// ------------------------------------------------------------------- - -// OrdersByMarketRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void OrdersByMarketRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& OrdersByMarketRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByMarketRequest.market_id) - return _internal_market_id(); -} -inline void OrdersByMarketRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrdersByMarketRequest.market_id) -} -inline std::string* OrdersByMarketRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByMarketRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& OrdersByMarketRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void OrdersByMarketRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrdersByMarketRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrdersByMarketRequest.market_id) -} -inline void OrdersByMarketRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrdersByMarketRequest.market_id) -} -inline void OrdersByMarketRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrdersByMarketRequest.market_id) -} -inline std::string* OrdersByMarketRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrdersByMarketRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.OrdersByMarketRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrdersByMarketRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersByMarketRequest.market_id) -} - -// .api.v1.Pagination pagination = 2 [json_name = "pagination"]; -inline bool OrdersByMarketRequest::_internal_has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline bool OrdersByMarketRequest::has_pagination() const { - return _internal_has_pagination(); -} -inline void OrdersByMarketRequest::clear_pagination() { - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::api::v1::Pagination& OrdersByMarketRequest::_internal_pagination() const { - const ::api::v1::Pagination* p = pagination_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_Pagination_default_instance_); -} -inline const ::api::v1::Pagination& OrdersByMarketRequest::pagination() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByMarketRequest.pagination) - return _internal_pagination(); -} -inline void OrdersByMarketRequest::unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pagination_); - } - pagination_ = pagination; - if (pagination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrdersByMarketRequest.pagination) -} -inline ::api::v1::Pagination* OrdersByMarketRequest::release_pagination() { - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::Pagination* OrdersByMarketRequest::unsafe_arena_release_pagination() { - // @@protoc_insertion_point(field_release:api.v1.OrdersByMarketRequest.pagination) - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::api::v1::Pagination* OrdersByMarketRequest::_internal_mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::Pagination>(GetArena()); - pagination_ = p; - } - return pagination_; -} -inline ::api::v1::Pagination* OrdersByMarketRequest::mutable_pagination() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByMarketRequest.pagination) - return _internal_mutable_pagination(); -} -inline void OrdersByMarketRequest::set_allocated_pagination(::api::v1::Pagination* pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pagination); - if (message_arena != submessage_arena) { - pagination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersByMarketRequest.pagination) -} - -// ------------------------------------------------------------------- - -// OrdersByMarketResponse - -// repeated .vega.Order orders = 1 [json_name = "orders"]; -inline int OrdersByMarketResponse::_internal_orders_size() const { - return orders_.size(); -} -inline int OrdersByMarketResponse::orders_size() const { - return _internal_orders_size(); -} -inline ::vega::Order* OrdersByMarketResponse::mutable_orders(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByMarketResponse.orders) - return orders_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* -OrdersByMarketResponse::mutable_orders() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OrdersByMarketResponse.orders) - return &orders_; -} -inline const ::vega::Order& OrdersByMarketResponse::_internal_orders(int index) const { - return orders_.Get(index); -} -inline const ::vega::Order& OrdersByMarketResponse::orders(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByMarketResponse.orders) - return _internal_orders(index); -} -inline ::vega::Order* OrdersByMarketResponse::_internal_add_orders() { - return orders_.Add(); -} -inline ::vega::Order* OrdersByMarketResponse::add_orders() { - // @@protoc_insertion_point(field_add:api.v1.OrdersByMarketResponse.orders) - return _internal_add_orders(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& -OrdersByMarketResponse::orders() const { - // @@protoc_insertion_point(field_list:api.v1.OrdersByMarketResponse.orders) - return orders_; -} - -// ------------------------------------------------------------------- - -// OrdersByPartyRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void OrdersByPartyRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& OrdersByPartyRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByPartyRequest.party_id) - return _internal_party_id(); -} -inline void OrdersByPartyRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrdersByPartyRequest.party_id) -} -inline std::string* OrdersByPartyRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByPartyRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& OrdersByPartyRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void OrdersByPartyRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrdersByPartyRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrdersByPartyRequest.party_id) -} -inline void OrdersByPartyRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrdersByPartyRequest.party_id) -} -inline void OrdersByPartyRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrdersByPartyRequest.party_id) -} -inline std::string* OrdersByPartyRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrdersByPartyRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.OrdersByPartyRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrdersByPartyRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersByPartyRequest.party_id) -} - -// .api.v1.Pagination pagination = 2 [json_name = "pagination"]; -inline bool OrdersByPartyRequest::_internal_has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline bool OrdersByPartyRequest::has_pagination() const { - return _internal_has_pagination(); -} -inline void OrdersByPartyRequest::clear_pagination() { - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::api::v1::Pagination& OrdersByPartyRequest::_internal_pagination() const { - const ::api::v1::Pagination* p = pagination_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_Pagination_default_instance_); -} -inline const ::api::v1::Pagination& OrdersByPartyRequest::pagination() const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByPartyRequest.pagination) - return _internal_pagination(); -} -inline void OrdersByPartyRequest::unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pagination_); - } - pagination_ = pagination; - if (pagination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrdersByPartyRequest.pagination) -} -inline ::api::v1::Pagination* OrdersByPartyRequest::release_pagination() { - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::Pagination* OrdersByPartyRequest::unsafe_arena_release_pagination() { - // @@protoc_insertion_point(field_release:api.v1.OrdersByPartyRequest.pagination) - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::api::v1::Pagination* OrdersByPartyRequest::_internal_mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::Pagination>(GetArena()); - pagination_ = p; - } - return pagination_; -} -inline ::api::v1::Pagination* OrdersByPartyRequest::mutable_pagination() { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByPartyRequest.pagination) - return _internal_mutable_pagination(); -} -inline void OrdersByPartyRequest::set_allocated_pagination(::api::v1::Pagination* pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pagination); - if (message_arena != submessage_arena) { - pagination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrdersByPartyRequest.pagination) -} - -// ------------------------------------------------------------------- - -// OrdersByPartyResponse - -// repeated .vega.Order orders = 1 [json_name = "orders"]; -inline int OrdersByPartyResponse::_internal_orders_size() const { - return orders_.size(); -} -inline int OrdersByPartyResponse::orders_size() const { - return _internal_orders_size(); -} -inline ::vega::Order* OrdersByPartyResponse::mutable_orders(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersByPartyResponse.orders) - return orders_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* -OrdersByPartyResponse::mutable_orders() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OrdersByPartyResponse.orders) - return &orders_; -} -inline const ::vega::Order& OrdersByPartyResponse::_internal_orders(int index) const { - return orders_.Get(index); -} -inline const ::vega::Order& OrdersByPartyResponse::orders(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OrdersByPartyResponse.orders) - return _internal_orders(index); -} -inline ::vega::Order* OrdersByPartyResponse::_internal_add_orders() { - return orders_.Add(); -} -inline ::vega::Order* OrdersByPartyResponse::add_orders() { - // @@protoc_insertion_point(field_add:api.v1.OrdersByPartyResponse.orders) - return _internal_add_orders(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& -OrdersByPartyResponse::orders() const { - // @@protoc_insertion_point(field_list:api.v1.OrdersByPartyResponse.orders) - return orders_; -} - -// ------------------------------------------------------------------- - -// OrderByMarketAndIDRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void OrderByMarketAndIDRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& OrderByMarketAndIDRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByMarketAndIDRequest.market_id) - return _internal_market_id(); -} -inline void OrderByMarketAndIDRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrderByMarketAndIDRequest.market_id) -} -inline std::string* OrderByMarketAndIDRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByMarketAndIDRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& OrderByMarketAndIDRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void OrderByMarketAndIDRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrderByMarketAndIDRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrderByMarketAndIDRequest.market_id) -} -inline void OrderByMarketAndIDRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrderByMarketAndIDRequest.market_id) -} -inline void OrderByMarketAndIDRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrderByMarketAndIDRequest.market_id) -} -inline std::string* OrderByMarketAndIDRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrderByMarketAndIDRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.OrderByMarketAndIDRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrderByMarketAndIDRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByMarketAndIDRequest.market_id) -} - -// string order_id = 2 [json_name = "orderId", (.validator.field) = { -inline void OrderByMarketAndIDRequest::clear_order_id() { - order_id_.ClearToEmpty(); -} -inline const std::string& OrderByMarketAndIDRequest::order_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByMarketAndIDRequest.order_id) - return _internal_order_id(); -} -inline void OrderByMarketAndIDRequest::set_order_id(const std::string& value) { - _internal_set_order_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrderByMarketAndIDRequest.order_id) -} -inline std::string* OrderByMarketAndIDRequest::mutable_order_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByMarketAndIDRequest.order_id) - return _internal_mutable_order_id(); -} -inline const std::string& OrderByMarketAndIDRequest::_internal_order_id() const { - return order_id_.Get(); -} -inline void OrderByMarketAndIDRequest::_internal_set_order_id(const std::string& value) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrderByMarketAndIDRequest::set_order_id(std::string&& value) { - - order_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrderByMarketAndIDRequest.order_id) -} -inline void OrderByMarketAndIDRequest::set_order_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrderByMarketAndIDRequest.order_id) -} -inline void OrderByMarketAndIDRequest::set_order_id(const char* value, - size_t size) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrderByMarketAndIDRequest.order_id) -} -inline std::string* OrderByMarketAndIDRequest::_internal_mutable_order_id() { - - return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrderByMarketAndIDRequest::release_order_id() { - // @@protoc_insertion_point(field_release:api.v1.OrderByMarketAndIDRequest.order_id) - return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrderByMarketAndIDRequest::set_allocated_order_id(std::string* order_id) { - if (order_id != nullptr) { - - } else { - - } - order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByMarketAndIDRequest.order_id) -} - -// ------------------------------------------------------------------- - -// OrderByMarketAndIDResponse - -// .vega.Order order = 1 [json_name = "order"]; -inline bool OrderByMarketAndIDResponse::_internal_has_order() const { - return this != internal_default_instance() && order_ != nullptr; -} -inline bool OrderByMarketAndIDResponse::has_order() const { - return _internal_has_order(); -} -inline const ::vega::Order& OrderByMarketAndIDResponse::_internal_order() const { - const ::vega::Order* p = order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Order_default_instance_); -} -inline const ::vega::Order& OrderByMarketAndIDResponse::order() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByMarketAndIDResponse.order) - return _internal_order(); -} -inline void OrderByMarketAndIDResponse::unsafe_arena_set_allocated_order( - ::vega::Order* order) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - order_ = order; - if (order) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrderByMarketAndIDResponse.order) -} -inline ::vega::Order* OrderByMarketAndIDResponse::release_order() { - - ::vega::Order* temp = order_; - order_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Order* OrderByMarketAndIDResponse::unsafe_arena_release_order() { - // @@protoc_insertion_point(field_release:api.v1.OrderByMarketAndIDResponse.order) - - ::vega::Order* temp = order_; - order_ = nullptr; - return temp; -} -inline ::vega::Order* OrderByMarketAndIDResponse::_internal_mutable_order() { - - if (order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Order>(GetArena()); - order_ = p; - } - return order_; -} -inline ::vega::Order* OrderByMarketAndIDResponse::mutable_order() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByMarketAndIDResponse.order) - return _internal_mutable_order(); -} -inline void OrderByMarketAndIDResponse::set_allocated_order(::vega::Order* order) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - if (order) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order)->GetArena(); - if (message_arena != submessage_arena) { - order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, order, submessage_arena); - } - - } else { - - } - order_ = order; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByMarketAndIDResponse.order) -} - -// ------------------------------------------------------------------- - -// OrderByReferenceRequest - -// string reference = 1 [json_name = "reference", (.validator.field) = { -inline void OrderByReferenceRequest::clear_reference() { - reference_.ClearToEmpty(); -} -inline const std::string& OrderByReferenceRequest::reference() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByReferenceRequest.reference) - return _internal_reference(); -} -inline void OrderByReferenceRequest::set_reference(const std::string& value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:api.v1.OrderByReferenceRequest.reference) -} -inline std::string* OrderByReferenceRequest::mutable_reference() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByReferenceRequest.reference) - return _internal_mutable_reference(); -} -inline const std::string& OrderByReferenceRequest::_internal_reference() const { - return reference_.Get(); -} -inline void OrderByReferenceRequest::_internal_set_reference(const std::string& value) { - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrderByReferenceRequest::set_reference(std::string&& value) { - - reference_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrderByReferenceRequest.reference) -} -inline void OrderByReferenceRequest::set_reference(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrderByReferenceRequest.reference) -} -inline void OrderByReferenceRequest::set_reference(const char* value, - size_t size) { - - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrderByReferenceRequest.reference) -} -inline std::string* OrderByReferenceRequest::_internal_mutable_reference() { - - return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrderByReferenceRequest::release_reference() { - // @@protoc_insertion_point(field_release:api.v1.OrderByReferenceRequest.reference) - return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrderByReferenceRequest::set_allocated_reference(std::string* reference) { - if (reference != nullptr) { - - } else { - - } - reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByReferenceRequest.reference) -} - -// ------------------------------------------------------------------- - -// OrderByReferenceResponse - -// .vega.Order order = 1 [json_name = "order"]; -inline bool OrderByReferenceResponse::_internal_has_order() const { - return this != internal_default_instance() && order_ != nullptr; -} -inline bool OrderByReferenceResponse::has_order() const { - return _internal_has_order(); -} -inline const ::vega::Order& OrderByReferenceResponse::_internal_order() const { - const ::vega::Order* p = order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Order_default_instance_); -} -inline const ::vega::Order& OrderByReferenceResponse::order() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByReferenceResponse.order) - return _internal_order(); -} -inline void OrderByReferenceResponse::unsafe_arena_set_allocated_order( - ::vega::Order* order) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - order_ = order; - if (order) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrderByReferenceResponse.order) -} -inline ::vega::Order* OrderByReferenceResponse::release_order() { - - ::vega::Order* temp = order_; - order_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Order* OrderByReferenceResponse::unsafe_arena_release_order() { - // @@protoc_insertion_point(field_release:api.v1.OrderByReferenceResponse.order) - - ::vega::Order* temp = order_; - order_ = nullptr; - return temp; -} -inline ::vega::Order* OrderByReferenceResponse::_internal_mutable_order() { - - if (order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Order>(GetArena()); - order_ = p; - } - return order_; -} -inline ::vega::Order* OrderByReferenceResponse::mutable_order() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByReferenceResponse.order) - return _internal_mutable_order(); -} -inline void OrderByReferenceResponse::set_allocated_order(::vega::Order* order) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - if (order) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order)->GetArena(); - if (message_arena != submessage_arena) { - order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, order, submessage_arena); - } - - } else { - - } - order_ = order; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByReferenceResponse.order) -} - -// ------------------------------------------------------------------- - -// MarketsRequest - -// ------------------------------------------------------------------- - -// MarketsResponse - -// repeated .vega.Market markets = 1 [json_name = "markets"]; -inline int MarketsResponse::_internal_markets_size() const { - return markets_.size(); -} -inline int MarketsResponse::markets_size() const { - return _internal_markets_size(); -} -inline ::vega::Market* MarketsResponse::mutable_markets(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarketsResponse.markets) - return markets_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >* -MarketsResponse::mutable_markets() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarketsResponse.markets) - return &markets_; -} -inline const ::vega::Market& MarketsResponse::_internal_markets(int index) const { - return markets_.Get(index); -} -inline const ::vega::Market& MarketsResponse::markets(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarketsResponse.markets) - return _internal_markets(index); -} -inline ::vega::Market* MarketsResponse::_internal_add_markets() { - return markets_.Add(); -} -inline ::vega::Market* MarketsResponse::add_markets() { - // @@protoc_insertion_point(field_add:api.v1.MarketsResponse.markets) - return _internal_add_markets(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >& -MarketsResponse::markets() const { - // @@protoc_insertion_point(field_list:api.v1.MarketsResponse.markets) - return markets_; -} - -// ------------------------------------------------------------------- - -// CandlesRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void CandlesRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& CandlesRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesRequest.market_id) - return _internal_market_id(); -} -inline void CandlesRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.CandlesRequest.market_id) -} -inline std::string* CandlesRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.CandlesRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& CandlesRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void CandlesRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CandlesRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.CandlesRequest.market_id) -} -inline void CandlesRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.CandlesRequest.market_id) -} -inline void CandlesRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.CandlesRequest.market_id) -} -inline std::string* CandlesRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* CandlesRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.CandlesRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void CandlesRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.CandlesRequest.market_id) -} - -// int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { -inline void CandlesRequest::clear_since_timestamp() { - since_timestamp_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CandlesRequest::_internal_since_timestamp() const { - return since_timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CandlesRequest::since_timestamp() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesRequest.since_timestamp) - return _internal_since_timestamp(); -} -inline void CandlesRequest::_internal_set_since_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - - since_timestamp_ = value; -} -inline void CandlesRequest::set_since_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_since_timestamp(value); - // @@protoc_insertion_point(field_set:api.v1.CandlesRequest.since_timestamp) -} - -// .vega.Interval interval = 3 [json_name = "interval"]; -inline void CandlesRequest::clear_interval() { - interval_ = 0; -} -inline ::vega::Interval CandlesRequest::_internal_interval() const { - return static_cast< ::vega::Interval >(interval_); -} -inline ::vega::Interval CandlesRequest::interval() const { - // @@protoc_insertion_point(field_get:api.v1.CandlesRequest.interval) - return _internal_interval(); -} -inline void CandlesRequest::_internal_set_interval(::vega::Interval value) { - - interval_ = value; -} -inline void CandlesRequest::set_interval(::vega::Interval value) { - _internal_set_interval(value); - // @@protoc_insertion_point(field_set:api.v1.CandlesRequest.interval) -} - -// ------------------------------------------------------------------- - -// CandlesResponse - -// repeated .vega.Candle candles = 1 [json_name = "candles"]; -inline int CandlesResponse::_internal_candles_size() const { - return candles_.size(); -} -inline int CandlesResponse::candles_size() const { - return _internal_candles_size(); -} -inline ::vega::Candle* CandlesResponse::mutable_candles(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.CandlesResponse.candles) - return candles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Candle >* -CandlesResponse::mutable_candles() { - // @@protoc_insertion_point(field_mutable_list:api.v1.CandlesResponse.candles) - return &candles_; -} -inline const ::vega::Candle& CandlesResponse::_internal_candles(int index) const { - return candles_.Get(index); -} -inline const ::vega::Candle& CandlesResponse::candles(int index) const { - // @@protoc_insertion_point(field_get:api.v1.CandlesResponse.candles) - return _internal_candles(index); -} -inline ::vega::Candle* CandlesResponse::_internal_add_candles() { - return candles_.Add(); -} -inline ::vega::Candle* CandlesResponse::add_candles() { - // @@protoc_insertion_point(field_add:api.v1.CandlesResponse.candles) - return _internal_add_candles(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Candle >& -CandlesResponse::candles() const { - // @@protoc_insertion_point(field_list:api.v1.CandlesResponse.candles) - return candles_; -} - -// ------------------------------------------------------------------- - -// MarketDepthRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void MarketDepthRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketDepthRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthRequest.market_id) - return _internal_market_id(); -} -inline void MarketDepthRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthRequest.market_id) -} -inline std::string* MarketDepthRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketDepthRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketDepthRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketDepthRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketDepthRequest.market_id) -} -inline void MarketDepthRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketDepthRequest.market_id) -} -inline void MarketDepthRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketDepthRequest.market_id) -} -inline std::string* MarketDepthRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketDepthRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketDepthRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthRequest.market_id) -} - -// uint64 max_depth = 2 [json_name = "maxDepth"]; -inline void MarketDepthRequest::clear_max_depth() { - max_depth_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthRequest::_internal_max_depth() const { - return max_depth_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthRequest::max_depth() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthRequest.max_depth) - return _internal_max_depth(); -} -inline void MarketDepthRequest::_internal_set_max_depth(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - max_depth_ = value; -} -inline void MarketDepthRequest::set_max_depth(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_max_depth(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthRequest.max_depth) -} - -// ------------------------------------------------------------------- - -// MarketDepthResponse - -// string market_id = 1 [json_name = "marketId"]; -inline void MarketDepthResponse::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketDepthResponse::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthResponse.market_id) - return _internal_market_id(); -} -inline void MarketDepthResponse::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthResponse.market_id) -} -inline std::string* MarketDepthResponse::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthResponse.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketDepthResponse::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketDepthResponse::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketDepthResponse::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketDepthResponse.market_id) -} -inline void MarketDepthResponse::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketDepthResponse.market_id) -} -inline void MarketDepthResponse::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketDepthResponse.market_id) -} -inline std::string* MarketDepthResponse::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketDepthResponse::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthResponse.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketDepthResponse::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthResponse.market_id) -} - -// repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; -inline int MarketDepthResponse::_internal_buy_size() const { - return buy_.size(); -} -inline int MarketDepthResponse::buy_size() const { - return _internal_buy_size(); -} -inline ::vega::PriceLevel* MarketDepthResponse::mutable_buy(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthResponse.buy) - return buy_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepthResponse::mutable_buy() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarketDepthResponse.buy) - return &buy_; -} -inline const ::vega::PriceLevel& MarketDepthResponse::_internal_buy(int index) const { - return buy_.Get(index); -} -inline const ::vega::PriceLevel& MarketDepthResponse::buy(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthResponse.buy) - return _internal_buy(index); -} -inline ::vega::PriceLevel* MarketDepthResponse::_internal_add_buy() { - return buy_.Add(); -} -inline ::vega::PriceLevel* MarketDepthResponse::add_buy() { - // @@protoc_insertion_point(field_add:api.v1.MarketDepthResponse.buy) - return _internal_add_buy(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepthResponse::buy() const { - // @@protoc_insertion_point(field_list:api.v1.MarketDepthResponse.buy) - return buy_; -} - -// repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; -inline int MarketDepthResponse::_internal_sell_size() const { - return sell_.size(); -} -inline int MarketDepthResponse::sell_size() const { - return _internal_sell_size(); -} -inline ::vega::PriceLevel* MarketDepthResponse::mutable_sell(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthResponse.sell) - return sell_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepthResponse::mutable_sell() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarketDepthResponse.sell) - return &sell_; -} -inline const ::vega::PriceLevel& MarketDepthResponse::_internal_sell(int index) const { - return sell_.Get(index); -} -inline const ::vega::PriceLevel& MarketDepthResponse::sell(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthResponse.sell) - return _internal_sell(index); -} -inline ::vega::PriceLevel* MarketDepthResponse::_internal_add_sell() { - return sell_.Add(); -} -inline ::vega::PriceLevel* MarketDepthResponse::add_sell() { - // @@protoc_insertion_point(field_add:api.v1.MarketDepthResponse.sell) - return _internal_add_sell(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepthResponse::sell() const { - // @@protoc_insertion_point(field_list:api.v1.MarketDepthResponse.sell) - return sell_; -} - -// .vega.Trade last_trade = 4 [json_name = "lastTrade"]; -inline bool MarketDepthResponse::_internal_has_last_trade() const { - return this != internal_default_instance() && last_trade_ != nullptr; -} -inline bool MarketDepthResponse::has_last_trade() const { - return _internal_has_last_trade(); -} -inline const ::vega::Trade& MarketDepthResponse::_internal_last_trade() const { - const ::vega::Trade* p = last_trade_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Trade_default_instance_); -} -inline const ::vega::Trade& MarketDepthResponse::last_trade() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthResponse.last_trade) - return _internal_last_trade(); -} -inline void MarketDepthResponse::unsafe_arena_set_allocated_last_trade( - ::vega::Trade* last_trade) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_trade_); - } - last_trade_ = last_trade; - if (last_trade) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.MarketDepthResponse.last_trade) -} -inline ::vega::Trade* MarketDepthResponse::release_last_trade() { - - ::vega::Trade* temp = last_trade_; - last_trade_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Trade* MarketDepthResponse::unsafe_arena_release_last_trade() { - // @@protoc_insertion_point(field_release:api.v1.MarketDepthResponse.last_trade) - - ::vega::Trade* temp = last_trade_; - last_trade_ = nullptr; - return temp; -} -inline ::vega::Trade* MarketDepthResponse::_internal_mutable_last_trade() { - - if (last_trade_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Trade>(GetArena()); - last_trade_ = p; - } - return last_trade_; -} -inline ::vega::Trade* MarketDepthResponse::mutable_last_trade() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketDepthResponse.last_trade) - return _internal_mutable_last_trade(); -} -inline void MarketDepthResponse::set_allocated_last_trade(::vega::Trade* last_trade) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_trade_); - } - if (last_trade) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_trade)->GetArena(); - if (message_arena != submessage_arena) { - last_trade = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, last_trade, submessage_arena); - } - - } else { - - } - last_trade_ = last_trade; - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketDepthResponse.last_trade) -} - -// uint64 sequence_number = 5 [json_name = "sequenceNumber"]; -inline void MarketDepthResponse::clear_sequence_number() { - sequence_number_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthResponse::_internal_sequence_number() const { - return sequence_number_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthResponse::sequence_number() const { - // @@protoc_insertion_point(field_get:api.v1.MarketDepthResponse.sequence_number) - return _internal_sequence_number(); -} -inline void MarketDepthResponse::_internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - sequence_number_ = value; -} -inline void MarketDepthResponse::set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_sequence_number(value); - // @@protoc_insertion_point(field_set:api.v1.MarketDepthResponse.sequence_number) -} - -// ------------------------------------------------------------------- - -// TradesByMarketRequest - -// string market_id = 1 [json_name = "marketId", (.validator.field) = { -inline void TradesByMarketRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& TradesByMarketRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByMarketRequest.market_id) - return _internal_market_id(); -} -inline void TradesByMarketRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.TradesByMarketRequest.market_id) -} -inline std::string* TradesByMarketRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByMarketRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& TradesByMarketRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void TradesByMarketRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void TradesByMarketRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.TradesByMarketRequest.market_id) -} -inline void TradesByMarketRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.TradesByMarketRequest.market_id) -} -inline void TradesByMarketRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.TradesByMarketRequest.market_id) -} -inline std::string* TradesByMarketRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* TradesByMarketRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.TradesByMarketRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void TradesByMarketRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByMarketRequest.market_id) -} - -// .api.v1.Pagination pagination = 2 [json_name = "pagination"]; -inline bool TradesByMarketRequest::_internal_has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline bool TradesByMarketRequest::has_pagination() const { - return _internal_has_pagination(); -} -inline void TradesByMarketRequest::clear_pagination() { - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::api::v1::Pagination& TradesByMarketRequest::_internal_pagination() const { - const ::api::v1::Pagination* p = pagination_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_Pagination_default_instance_); -} -inline const ::api::v1::Pagination& TradesByMarketRequest::pagination() const { - // @@protoc_insertion_point(field_get:api.v1.TradesByMarketRequest.pagination) - return _internal_pagination(); -} -inline void TradesByMarketRequest::unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pagination_); - } - pagination_ = pagination; - if (pagination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.TradesByMarketRequest.pagination) -} -inline ::api::v1::Pagination* TradesByMarketRequest::release_pagination() { - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::Pagination* TradesByMarketRequest::unsafe_arena_release_pagination() { - // @@protoc_insertion_point(field_release:api.v1.TradesByMarketRequest.pagination) - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::api::v1::Pagination* TradesByMarketRequest::_internal_mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::Pagination>(GetArena()); - pagination_ = p; - } - return pagination_; -} -inline ::api::v1::Pagination* TradesByMarketRequest::mutable_pagination() { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByMarketRequest.pagination) - return _internal_mutable_pagination(); -} -inline void TradesByMarketRequest::set_allocated_pagination(::api::v1::Pagination* pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pagination); - if (message_arena != submessage_arena) { - pagination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:api.v1.TradesByMarketRequest.pagination) -} - -// ------------------------------------------------------------------- - -// TradesByMarketResponse - -// repeated .vega.Trade trades = 1 [json_name = "trades"]; -inline int TradesByMarketResponse::_internal_trades_size() const { - return trades_.size(); -} -inline int TradesByMarketResponse::trades_size() const { - return _internal_trades_size(); -} -inline ::vega::Trade* TradesByMarketResponse::mutable_trades(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.TradesByMarketResponse.trades) - return trades_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* -TradesByMarketResponse::mutable_trades() { - // @@protoc_insertion_point(field_mutable_list:api.v1.TradesByMarketResponse.trades) - return &trades_; -} -inline const ::vega::Trade& TradesByMarketResponse::_internal_trades(int index) const { - return trades_.Get(index); -} -inline const ::vega::Trade& TradesByMarketResponse::trades(int index) const { - // @@protoc_insertion_point(field_get:api.v1.TradesByMarketResponse.trades) - return _internal_trades(index); -} -inline ::vega::Trade* TradesByMarketResponse::_internal_add_trades() { - return trades_.Add(); -} -inline ::vega::Trade* TradesByMarketResponse::add_trades() { - // @@protoc_insertion_point(field_add:api.v1.TradesByMarketResponse.trades) - return _internal_add_trades(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& -TradesByMarketResponse::trades() const { - // @@protoc_insertion_point(field_list:api.v1.TradesByMarketResponse.trades) - return trades_; -} - -// ------------------------------------------------------------------- - -// PositionsByPartyRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void PositionsByPartyRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& PositionsByPartyRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.PositionsByPartyRequest.party_id) - return _internal_party_id(); -} -inline void PositionsByPartyRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.PositionsByPartyRequest.party_id) -} -inline std::string* PositionsByPartyRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsByPartyRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& PositionsByPartyRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void PositionsByPartyRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PositionsByPartyRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PositionsByPartyRequest.party_id) -} -inline void PositionsByPartyRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PositionsByPartyRequest.party_id) -} -inline void PositionsByPartyRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PositionsByPartyRequest.party_id) -} -inline std::string* PositionsByPartyRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PositionsByPartyRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.PositionsByPartyRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PositionsByPartyRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PositionsByPartyRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void PositionsByPartyRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& PositionsByPartyRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.PositionsByPartyRequest.market_id) - return _internal_market_id(); -} -inline void PositionsByPartyRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.PositionsByPartyRequest.market_id) -} -inline std::string* PositionsByPartyRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsByPartyRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& PositionsByPartyRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void PositionsByPartyRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PositionsByPartyRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PositionsByPartyRequest.market_id) -} -inline void PositionsByPartyRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PositionsByPartyRequest.market_id) -} -inline void PositionsByPartyRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PositionsByPartyRequest.market_id) -} -inline std::string* PositionsByPartyRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PositionsByPartyRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.PositionsByPartyRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PositionsByPartyRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PositionsByPartyRequest.market_id) -} - -// ------------------------------------------------------------------- - -// PositionsByPartyResponse - -// repeated .vega.Position positions = 1 [json_name = "positions"]; -inline int PositionsByPartyResponse::_internal_positions_size() const { - return positions_.size(); -} -inline int PositionsByPartyResponse::positions_size() const { - return _internal_positions_size(); -} -inline ::vega::Position* PositionsByPartyResponse::mutable_positions(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.PositionsByPartyResponse.positions) - return positions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Position >* -PositionsByPartyResponse::mutable_positions() { - // @@protoc_insertion_point(field_mutable_list:api.v1.PositionsByPartyResponse.positions) - return &positions_; -} -inline const ::vega::Position& PositionsByPartyResponse::_internal_positions(int index) const { - return positions_.Get(index); -} -inline const ::vega::Position& PositionsByPartyResponse::positions(int index) const { - // @@protoc_insertion_point(field_get:api.v1.PositionsByPartyResponse.positions) - return _internal_positions(index); -} -inline ::vega::Position* PositionsByPartyResponse::_internal_add_positions() { - return positions_.Add(); -} -inline ::vega::Position* PositionsByPartyResponse::add_positions() { - // @@protoc_insertion_point(field_add:api.v1.PositionsByPartyResponse.positions) - return _internal_add_positions(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Position >& -PositionsByPartyResponse::positions() const { - // @@protoc_insertion_point(field_list:api.v1.PositionsByPartyResponse.positions) - return positions_; -} - -// ------------------------------------------------------------------- - -// GetVegaTimeRequest - -// ------------------------------------------------------------------- - -// GetVegaTimeResponse - -// int64 timestamp = 1 [json_name = "timestamp"]; -inline void GetVegaTimeResponse::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 GetVegaTimeResponse::_internal_timestamp() const { - return timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 GetVegaTimeResponse::timestamp() const { - // @@protoc_insertion_point(field_get:api.v1.GetVegaTimeResponse.timestamp) - return _internal_timestamp(); -} -inline void GetVegaTimeResponse::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - - timestamp_ = value; -} -inline void GetVegaTimeResponse::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:api.v1.GetVegaTimeResponse.timestamp) -} - -// ------------------------------------------------------------------- - -// Pagination - -// uint64 skip = 1 [json_name = "skip"]; -inline void Pagination::clear_skip() { - skip_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pagination::_internal_skip() const { - return skip_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pagination::skip() const { - // @@protoc_insertion_point(field_get:api.v1.Pagination.skip) - return _internal_skip(); -} -inline void Pagination::_internal_set_skip(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - skip_ = value; -} -inline void Pagination::set_skip(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_skip(value); - // @@protoc_insertion_point(field_set:api.v1.Pagination.skip) -} - -// uint64 limit = 2 [json_name = "limit"]; -inline void Pagination::clear_limit() { - limit_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pagination::_internal_limit() const { - return limit_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pagination::limit() const { - // @@protoc_insertion_point(field_get:api.v1.Pagination.limit) - return _internal_limit(); -} -inline void Pagination::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - limit_ = value; -} -inline void Pagination::set_limit(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_limit(value); - // @@protoc_insertion_point(field_set:api.v1.Pagination.limit) -} - -// bool descending = 3 [json_name = "descending"]; -inline void Pagination::clear_descending() { - descending_ = false; -} -inline bool Pagination::_internal_descending() const { - return descending_; -} -inline bool Pagination::descending() const { - // @@protoc_insertion_point(field_get:api.v1.Pagination.descending) - return _internal_descending(); -} -inline void Pagination::_internal_set_descending(bool value) { - - descending_ = value; -} -inline void Pagination::set_descending(bool value) { - _internal_set_descending(value); - // @@protoc_insertion_point(field_set:api.v1.Pagination.descending) -} - -// ------------------------------------------------------------------- - -// OrdersSubscribeResponse - -// repeated .vega.Order orders = 1 [json_name = "orders"]; -inline int OrdersSubscribeResponse::_internal_orders_size() const { - return orders_.size(); -} -inline int OrdersSubscribeResponse::orders_size() const { - return _internal_orders_size(); -} -inline ::vega::Order* OrdersSubscribeResponse::mutable_orders(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OrdersSubscribeResponse.orders) - return orders_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* -OrdersSubscribeResponse::mutable_orders() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OrdersSubscribeResponse.orders) - return &orders_; -} -inline const ::vega::Order& OrdersSubscribeResponse::_internal_orders(int index) const { - return orders_.Get(index); -} -inline const ::vega::Order& OrdersSubscribeResponse::orders(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OrdersSubscribeResponse.orders) - return _internal_orders(index); -} -inline ::vega::Order* OrdersSubscribeResponse::_internal_add_orders() { - return orders_.Add(); -} -inline ::vega::Order* OrdersSubscribeResponse::add_orders() { - // @@protoc_insertion_point(field_add:api.v1.OrdersSubscribeResponse.orders) - return _internal_add_orders(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& -OrdersSubscribeResponse::orders() const { - // @@protoc_insertion_point(field_list:api.v1.OrdersSubscribeResponse.orders) - return orders_; -} - -// ------------------------------------------------------------------- - -// TradesSubscribeResponse - -// repeated .vega.Trade trades = 1 [json_name = "trades"]; -inline int TradesSubscribeResponse::_internal_trades_size() const { - return trades_.size(); -} -inline int TradesSubscribeResponse::trades_size() const { - return _internal_trades_size(); -} -inline ::vega::Trade* TradesSubscribeResponse::mutable_trades(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.TradesSubscribeResponse.trades) - return trades_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* -TradesSubscribeResponse::mutable_trades() { - // @@protoc_insertion_point(field_mutable_list:api.v1.TradesSubscribeResponse.trades) - return &trades_; -} -inline const ::vega::Trade& TradesSubscribeResponse::_internal_trades(int index) const { - return trades_.Get(index); -} -inline const ::vega::Trade& TradesSubscribeResponse::trades(int index) const { - // @@protoc_insertion_point(field_get:api.v1.TradesSubscribeResponse.trades) - return _internal_trades(index); -} -inline ::vega::Trade* TradesSubscribeResponse::_internal_add_trades() { - return trades_.Add(); -} -inline ::vega::Trade* TradesSubscribeResponse::add_trades() { - // @@protoc_insertion_point(field_add:api.v1.TradesSubscribeResponse.trades) - return _internal_add_trades(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& -TradesSubscribeResponse::trades() const { - // @@protoc_insertion_point(field_list:api.v1.TradesSubscribeResponse.trades) - return trades_; -} - -// ------------------------------------------------------------------- - -// TransferResponsesSubscribeRequest - -// ------------------------------------------------------------------- - -// TransferResponsesSubscribeResponse - -// .vega.TransferResponse response = 1 [json_name = "response"]; -inline bool TransferResponsesSubscribeResponse::_internal_has_response() const { - return this != internal_default_instance() && response_ != nullptr; -} -inline bool TransferResponsesSubscribeResponse::has_response() const { - return _internal_has_response(); -} -inline const ::vega::TransferResponse& TransferResponsesSubscribeResponse::_internal_response() const { - const ::vega::TransferResponse* p = response_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_TransferResponse_default_instance_); -} -inline const ::vega::TransferResponse& TransferResponsesSubscribeResponse::response() const { - // @@protoc_insertion_point(field_get:api.v1.TransferResponsesSubscribeResponse.response) - return _internal_response(); -} -inline void TransferResponsesSubscribeResponse::unsafe_arena_set_allocated_response( - ::vega::TransferResponse* response) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_); - } - response_ = response; - if (response) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.TransferResponsesSubscribeResponse.response) -} -inline ::vega::TransferResponse* TransferResponsesSubscribeResponse::release_response() { - - ::vega::TransferResponse* temp = response_; - response_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::TransferResponse* TransferResponsesSubscribeResponse::unsafe_arena_release_response() { - // @@protoc_insertion_point(field_release:api.v1.TransferResponsesSubscribeResponse.response) - - ::vega::TransferResponse* temp = response_; - response_ = nullptr; - return temp; -} -inline ::vega::TransferResponse* TransferResponsesSubscribeResponse::_internal_mutable_response() { - - if (response_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::TransferResponse>(GetArena()); - response_ = p; - } - return response_; -} -inline ::vega::TransferResponse* TransferResponsesSubscribeResponse::mutable_response() { - // @@protoc_insertion_point(field_mutable:api.v1.TransferResponsesSubscribeResponse.response) - return _internal_mutable_response(); -} -inline void TransferResponsesSubscribeResponse::set_allocated_response(::vega::TransferResponse* response) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_); - } - if (response) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(response)->GetArena(); - if (message_arena != submessage_arena) { - response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, response, submessage_arena); - } - - } else { - - } - response_ = response; - // @@protoc_insertion_point(field_set_allocated:api.v1.TransferResponsesSubscribeResponse.response) -} - -// ------------------------------------------------------------------- - -// PartyAccountsRequest - -// string party_id = 1 [json_name = "partyId"]; -inline void PartyAccountsRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& PartyAccountsRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.PartyAccountsRequest.party_id) - return _internal_party_id(); -} -inline void PartyAccountsRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.PartyAccountsRequest.party_id) -} -inline std::string* PartyAccountsRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PartyAccountsRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& PartyAccountsRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void PartyAccountsRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PartyAccountsRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PartyAccountsRequest.party_id) -} -inline void PartyAccountsRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PartyAccountsRequest.party_id) -} -inline void PartyAccountsRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PartyAccountsRequest.party_id) -} -inline std::string* PartyAccountsRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PartyAccountsRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.PartyAccountsRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PartyAccountsRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PartyAccountsRequest.party_id) -} - -// string market_id = 2 [json_name = "marketId"]; -inline void PartyAccountsRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& PartyAccountsRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.PartyAccountsRequest.market_id) - return _internal_market_id(); -} -inline void PartyAccountsRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.PartyAccountsRequest.market_id) -} -inline std::string* PartyAccountsRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.PartyAccountsRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& PartyAccountsRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void PartyAccountsRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PartyAccountsRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PartyAccountsRequest.market_id) -} -inline void PartyAccountsRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PartyAccountsRequest.market_id) -} -inline void PartyAccountsRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PartyAccountsRequest.market_id) -} -inline std::string* PartyAccountsRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PartyAccountsRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.PartyAccountsRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PartyAccountsRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PartyAccountsRequest.market_id) -} - -// .vega.AccountType type = 3 [json_name = "type"]; -inline void PartyAccountsRequest::clear_type() { - type_ = 0; -} -inline ::vega::AccountType PartyAccountsRequest::_internal_type() const { - return static_cast< ::vega::AccountType >(type_); -} -inline ::vega::AccountType PartyAccountsRequest::type() const { - // @@protoc_insertion_point(field_get:api.v1.PartyAccountsRequest.type) - return _internal_type(); -} -inline void PartyAccountsRequest::_internal_set_type(::vega::AccountType value) { - - type_ = value; -} -inline void PartyAccountsRequest::set_type(::vega::AccountType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:api.v1.PartyAccountsRequest.type) -} - -// string asset = 4 [json_name = "asset"]; -inline void PartyAccountsRequest::clear_asset() { - asset_.ClearToEmpty(); -} -inline const std::string& PartyAccountsRequest::asset() const { - // @@protoc_insertion_point(field_get:api.v1.PartyAccountsRequest.asset) - return _internal_asset(); -} -inline void PartyAccountsRequest::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:api.v1.PartyAccountsRequest.asset) -} -inline std::string* PartyAccountsRequest::mutable_asset() { - // @@protoc_insertion_point(field_mutable:api.v1.PartyAccountsRequest.asset) - return _internal_mutable_asset(); -} -inline const std::string& PartyAccountsRequest::_internal_asset() const { - return asset_.Get(); -} -inline void PartyAccountsRequest::_internal_set_asset(const std::string& value) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PartyAccountsRequest::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PartyAccountsRequest.asset) -} -inline void PartyAccountsRequest::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PartyAccountsRequest.asset) -} -inline void PartyAccountsRequest::set_asset(const char* value, - size_t size) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PartyAccountsRequest.asset) -} -inline std::string* PartyAccountsRequest::_internal_mutable_asset() { - - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PartyAccountsRequest::release_asset() { - // @@protoc_insertion_point(field_release:api.v1.PartyAccountsRequest.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PartyAccountsRequest::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - - } else { - - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PartyAccountsRequest.asset) -} - -// ------------------------------------------------------------------- - -// PartyAccountsResponse - -// repeated .vega.Account accounts = 1 [json_name = "accounts"]; -inline int PartyAccountsResponse::_internal_accounts_size() const { - return accounts_.size(); -} -inline int PartyAccountsResponse::accounts_size() const { - return _internal_accounts_size(); -} -inline ::vega::Account* PartyAccountsResponse::mutable_accounts(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.PartyAccountsResponse.accounts) - return accounts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* -PartyAccountsResponse::mutable_accounts() { - // @@protoc_insertion_point(field_mutable_list:api.v1.PartyAccountsResponse.accounts) - return &accounts_; -} -inline const ::vega::Account& PartyAccountsResponse::_internal_accounts(int index) const { - return accounts_.Get(index); -} -inline const ::vega::Account& PartyAccountsResponse::accounts(int index) const { - // @@protoc_insertion_point(field_get:api.v1.PartyAccountsResponse.accounts) - return _internal_accounts(index); -} -inline ::vega::Account* PartyAccountsResponse::_internal_add_accounts() { - return accounts_.Add(); -} -inline ::vega::Account* PartyAccountsResponse::add_accounts() { - // @@protoc_insertion_point(field_add:api.v1.PartyAccountsResponse.accounts) - return _internal_add_accounts(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& -PartyAccountsResponse::accounts() const { - // @@protoc_insertion_point(field_list:api.v1.PartyAccountsResponse.accounts) - return accounts_; -} - -// ------------------------------------------------------------------- - -// MarketAccountsRequest - -// string market_id = 1 [json_name = "marketId"]; -inline void MarketAccountsRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& MarketAccountsRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.MarketAccountsRequest.market_id) - return _internal_market_id(); -} -inline void MarketAccountsRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.MarketAccountsRequest.market_id) -} -inline std::string* MarketAccountsRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketAccountsRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& MarketAccountsRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void MarketAccountsRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketAccountsRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketAccountsRequest.market_id) -} -inline void MarketAccountsRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketAccountsRequest.market_id) -} -inline void MarketAccountsRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketAccountsRequest.market_id) -} -inline std::string* MarketAccountsRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketAccountsRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.MarketAccountsRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketAccountsRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketAccountsRequest.market_id) -} - -// string asset = 2 [json_name = "asset"]; -inline void MarketAccountsRequest::clear_asset() { - asset_.ClearToEmpty(); -} -inline const std::string& MarketAccountsRequest::asset() const { - // @@protoc_insertion_point(field_get:api.v1.MarketAccountsRequest.asset) - return _internal_asset(); -} -inline void MarketAccountsRequest::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:api.v1.MarketAccountsRequest.asset) -} -inline std::string* MarketAccountsRequest::mutable_asset() { - // @@protoc_insertion_point(field_mutable:api.v1.MarketAccountsRequest.asset) - return _internal_mutable_asset(); -} -inline const std::string& MarketAccountsRequest::_internal_asset() const { - return asset_.Get(); -} -inline void MarketAccountsRequest::_internal_set_asset(const std::string& value) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MarketAccountsRequest::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.MarketAccountsRequest.asset) -} -inline void MarketAccountsRequest::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.MarketAccountsRequest.asset) -} -inline void MarketAccountsRequest::set_asset(const char* value, - size_t size) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.MarketAccountsRequest.asset) -} -inline std::string* MarketAccountsRequest::_internal_mutable_asset() { - - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* MarketAccountsRequest::release_asset() { - // @@protoc_insertion_point(field_release:api.v1.MarketAccountsRequest.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void MarketAccountsRequest::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - - } else { - - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.MarketAccountsRequest.asset) -} - -// ------------------------------------------------------------------- - -// MarketAccountsResponse - -// repeated .vega.Account accounts = 1 [json_name = "accounts"]; -inline int MarketAccountsResponse::_internal_accounts_size() const { - return accounts_.size(); -} -inline int MarketAccountsResponse::accounts_size() const { - return _internal_accounts_size(); -} -inline ::vega::Account* MarketAccountsResponse::mutable_accounts(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.MarketAccountsResponse.accounts) - return accounts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* -MarketAccountsResponse::mutable_accounts() { - // @@protoc_insertion_point(field_mutable_list:api.v1.MarketAccountsResponse.accounts) - return &accounts_; -} -inline const ::vega::Account& MarketAccountsResponse::_internal_accounts(int index) const { - return accounts_.Get(index); -} -inline const ::vega::Account& MarketAccountsResponse::accounts(int index) const { - // @@protoc_insertion_point(field_get:api.v1.MarketAccountsResponse.accounts) - return _internal_accounts(index); -} -inline ::vega::Account* MarketAccountsResponse::_internal_add_accounts() { - return accounts_.Add(); -} -inline ::vega::Account* MarketAccountsResponse::add_accounts() { - // @@protoc_insertion_point(field_add:api.v1.MarketAccountsResponse.accounts) - return _internal_add_accounts(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& -MarketAccountsResponse::accounts() const { - // @@protoc_insertion_point(field_list:api.v1.MarketAccountsResponse.accounts) - return accounts_; -} - -// ------------------------------------------------------------------- - -// FeeInfrastructureAccountsRequest - -// string asset = 1 [json_name = "asset"]; -inline void FeeInfrastructureAccountsRequest::clear_asset() { - asset_.ClearToEmpty(); -} -inline const std::string& FeeInfrastructureAccountsRequest::asset() const { - // @@protoc_insertion_point(field_get:api.v1.FeeInfrastructureAccountsRequest.asset) - return _internal_asset(); -} -inline void FeeInfrastructureAccountsRequest::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:api.v1.FeeInfrastructureAccountsRequest.asset) -} -inline std::string* FeeInfrastructureAccountsRequest::mutable_asset() { - // @@protoc_insertion_point(field_mutable:api.v1.FeeInfrastructureAccountsRequest.asset) - return _internal_mutable_asset(); -} -inline const std::string& FeeInfrastructureAccountsRequest::_internal_asset() const { - return asset_.Get(); -} -inline void FeeInfrastructureAccountsRequest::_internal_set_asset(const std::string& value) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void FeeInfrastructureAccountsRequest::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.FeeInfrastructureAccountsRequest.asset) -} -inline void FeeInfrastructureAccountsRequest::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.FeeInfrastructureAccountsRequest.asset) -} -inline void FeeInfrastructureAccountsRequest::set_asset(const char* value, - size_t size) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.FeeInfrastructureAccountsRequest.asset) -} -inline std::string* FeeInfrastructureAccountsRequest::_internal_mutable_asset() { - - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* FeeInfrastructureAccountsRequest::release_asset() { - // @@protoc_insertion_point(field_release:api.v1.FeeInfrastructureAccountsRequest.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void FeeInfrastructureAccountsRequest::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - - } else { - - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.FeeInfrastructureAccountsRequest.asset) -} - -// ------------------------------------------------------------------- - -// FeeInfrastructureAccountsResponse - -// repeated .vega.Account accounts = 1 [json_name = "accounts"]; -inline int FeeInfrastructureAccountsResponse::_internal_accounts_size() const { - return accounts_.size(); -} -inline int FeeInfrastructureAccountsResponse::accounts_size() const { - return _internal_accounts_size(); -} -inline ::vega::Account* FeeInfrastructureAccountsResponse::mutable_accounts(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.FeeInfrastructureAccountsResponse.accounts) - return accounts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* -FeeInfrastructureAccountsResponse::mutable_accounts() { - // @@protoc_insertion_point(field_mutable_list:api.v1.FeeInfrastructureAccountsResponse.accounts) - return &accounts_; -} -inline const ::vega::Account& FeeInfrastructureAccountsResponse::_internal_accounts(int index) const { - return accounts_.Get(index); -} -inline const ::vega::Account& FeeInfrastructureAccountsResponse::accounts(int index) const { - // @@protoc_insertion_point(field_get:api.v1.FeeInfrastructureAccountsResponse.accounts) - return _internal_accounts(index); -} -inline ::vega::Account* FeeInfrastructureAccountsResponse::_internal_add_accounts() { - return accounts_.Add(); -} -inline ::vega::Account* FeeInfrastructureAccountsResponse::add_accounts() { - // @@protoc_insertion_point(field_add:api.v1.FeeInfrastructureAccountsResponse.accounts) - return _internal_add_accounts(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& -FeeInfrastructureAccountsResponse::accounts() const { - // @@protoc_insertion_point(field_list:api.v1.FeeInfrastructureAccountsResponse.accounts) - return accounts_; -} - -// ------------------------------------------------------------------- - -// PrepareProposalSubmissionRequest - -// .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; -inline bool PrepareProposalSubmissionRequest::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareProposalSubmissionRequest::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::ProposalSubmission& PrepareProposalSubmissionRequest::_internal_submission() const { - const ::vega::commands::v1::ProposalSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_ProposalSubmission_default_instance_); -} -inline const ::vega::commands::v1::ProposalSubmission& PrepareProposalSubmissionRequest::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareProposalSubmissionRequest.submission) - return _internal_submission(); -} -inline void PrepareProposalSubmissionRequest::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::ProposalSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareProposalSubmissionRequest.submission) -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionRequest::release_submission() { - - ::vega::commands::v1::ProposalSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionRequest::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareProposalSubmissionRequest.submission) - - ::vega::commands::v1::ProposalSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionRequest::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::ProposalSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionRequest::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareProposalSubmissionRequest.submission) - return _internal_mutable_submission(); -} -inline void PrepareProposalSubmissionRequest::set_allocated_submission(::vega::commands::v1::ProposalSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareProposalSubmissionRequest.submission) -} - -// ------------------------------------------------------------------- - -// PrepareProposalSubmissionResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareProposalSubmissionResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareProposalSubmissionResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareProposalSubmissionResponse.blob) - return _internal_blob(); -} -inline void PrepareProposalSubmissionResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareProposalSubmissionResponse.blob) -} -inline std::string* PrepareProposalSubmissionResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareProposalSubmissionResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareProposalSubmissionResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareProposalSubmissionResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareProposalSubmissionResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareProposalSubmissionResponse.blob) -} -inline void PrepareProposalSubmissionResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareProposalSubmissionResponse.blob) -} -inline void PrepareProposalSubmissionResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareProposalSubmissionResponse.blob) -} -inline std::string* PrepareProposalSubmissionResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareProposalSubmissionResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareProposalSubmissionResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareProposalSubmissionResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareProposalSubmissionResponse.blob) -} - -// .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; -inline bool PrepareProposalSubmissionResponse::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareProposalSubmissionResponse::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::ProposalSubmission& PrepareProposalSubmissionResponse::_internal_submission() const { - const ::vega::commands::v1::ProposalSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_ProposalSubmission_default_instance_); -} -inline const ::vega::commands::v1::ProposalSubmission& PrepareProposalSubmissionResponse::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareProposalSubmissionResponse.submission) - return _internal_submission(); -} -inline void PrepareProposalSubmissionResponse::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::ProposalSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareProposalSubmissionResponse.submission) -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionResponse::release_submission() { - - ::vega::commands::v1::ProposalSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionResponse::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareProposalSubmissionResponse.submission) - - ::vega::commands::v1::ProposalSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionResponse::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::ProposalSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::ProposalSubmission* PrepareProposalSubmissionResponse::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareProposalSubmissionResponse.submission) - return _internal_mutable_submission(); -} -inline void PrepareProposalSubmissionResponse::set_allocated_submission(::vega::commands::v1::ProposalSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareProposalSubmissionResponse.submission) -} - -// ------------------------------------------------------------------- - -// PrepareVoteSubmissionRequest - -// .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { -inline bool PrepareVoteSubmissionRequest::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareVoteSubmissionRequest::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::VoteSubmission& PrepareVoteSubmissionRequest::_internal_submission() const { - const ::vega::commands::v1::VoteSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_VoteSubmission_default_instance_); -} -inline const ::vega::commands::v1::VoteSubmission& PrepareVoteSubmissionRequest::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareVoteSubmissionRequest.submission) - return _internal_submission(); -} -inline void PrepareVoteSubmissionRequest::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::VoteSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareVoteSubmissionRequest.submission) -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionRequest::release_submission() { - - ::vega::commands::v1::VoteSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionRequest::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareVoteSubmissionRequest.submission) - - ::vega::commands::v1::VoteSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionRequest::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::VoteSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionRequest::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareVoteSubmissionRequest.submission) - return _internal_mutable_submission(); -} -inline void PrepareVoteSubmissionRequest::set_allocated_submission(::vega::commands::v1::VoteSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareVoteSubmissionRequest.submission) -} - -// ------------------------------------------------------------------- - -// PrepareVoteSubmissionResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareVoteSubmissionResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareVoteSubmissionResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareVoteSubmissionResponse.blob) - return _internal_blob(); -} -inline void PrepareVoteSubmissionResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareVoteSubmissionResponse.blob) -} -inline std::string* PrepareVoteSubmissionResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareVoteSubmissionResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareVoteSubmissionResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareVoteSubmissionResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareVoteSubmissionResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareVoteSubmissionResponse.blob) -} -inline void PrepareVoteSubmissionResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareVoteSubmissionResponse.blob) -} -inline void PrepareVoteSubmissionResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareVoteSubmissionResponse.blob) -} -inline std::string* PrepareVoteSubmissionResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareVoteSubmissionResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareVoteSubmissionResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareVoteSubmissionResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareVoteSubmissionResponse.blob) -} - -// .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; -inline bool PrepareVoteSubmissionResponse::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareVoteSubmissionResponse::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::VoteSubmission& PrepareVoteSubmissionResponse::_internal_submission() const { - const ::vega::commands::v1::VoteSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_VoteSubmission_default_instance_); -} -inline const ::vega::commands::v1::VoteSubmission& PrepareVoteSubmissionResponse::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareVoteSubmissionResponse.submission) - return _internal_submission(); -} -inline void PrepareVoteSubmissionResponse::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::VoteSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareVoteSubmissionResponse.submission) -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionResponse::release_submission() { - - ::vega::commands::v1::VoteSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionResponse::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareVoteSubmissionResponse.submission) - - ::vega::commands::v1::VoteSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionResponse::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::VoteSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::VoteSubmission* PrepareVoteSubmissionResponse::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareVoteSubmissionResponse.submission) - return _internal_mutable_submission(); -} -inline void PrepareVoteSubmissionResponse::set_allocated_submission(::vega::commands::v1::VoteSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareVoteSubmissionResponse.submission) -} - -// ------------------------------------------------------------------- - -// PrepareLiquidityProvisionRequest - -// .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { -inline bool PrepareLiquidityProvisionRequest::_internal_has_submission() const { - return this != internal_default_instance() && submission_ != nullptr; -} -inline bool PrepareLiquidityProvisionRequest::has_submission() const { - return _internal_has_submission(); -} -inline const ::vega::commands::v1::LiquidityProvisionSubmission& PrepareLiquidityProvisionRequest::_internal_submission() const { - const ::vega::commands::v1::LiquidityProvisionSubmission* p = submission_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::commands::v1::_LiquidityProvisionSubmission_default_instance_); -} -inline const ::vega::commands::v1::LiquidityProvisionSubmission& PrepareLiquidityProvisionRequest::submission() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareLiquidityProvisionRequest.submission) - return _internal_submission(); -} -inline void PrepareLiquidityProvisionRequest::unsafe_arena_set_allocated_submission( - ::vega::commands::v1::LiquidityProvisionSubmission* submission) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - submission_ = submission; - if (submission) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.PrepareLiquidityProvisionRequest.submission) -} -inline ::vega::commands::v1::LiquidityProvisionSubmission* PrepareLiquidityProvisionRequest::release_submission() { - - ::vega::commands::v1::LiquidityProvisionSubmission* temp = submission_; - submission_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::commands::v1::LiquidityProvisionSubmission* PrepareLiquidityProvisionRequest::unsafe_arena_release_submission() { - // @@protoc_insertion_point(field_release:api.v1.PrepareLiquidityProvisionRequest.submission) - - ::vega::commands::v1::LiquidityProvisionSubmission* temp = submission_; - submission_ = nullptr; - return temp; -} -inline ::vega::commands::v1::LiquidityProvisionSubmission* PrepareLiquidityProvisionRequest::_internal_mutable_submission() { - - if (submission_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::commands::v1::LiquidityProvisionSubmission>(GetArena()); - submission_ = p; - } - return submission_; -} -inline ::vega::commands::v1::LiquidityProvisionSubmission* PrepareLiquidityProvisionRequest::mutable_submission() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareLiquidityProvisionRequest.submission) - return _internal_mutable_submission(); -} -inline void PrepareLiquidityProvisionRequest::set_allocated_submission(::vega::commands::v1::LiquidityProvisionSubmission* submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission_); - } - if (submission) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(submission)->GetArena(); - if (message_arena != submessage_arena) { - submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, submission, submessage_arena); - } - - } else { - - } - submission_ = submission; - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareLiquidityProvisionRequest.submission) -} - -// ------------------------------------------------------------------- - -// PrepareLiquidityProvisionResponse - -// bytes blob = 1 [json_name = "blob"]; -inline void PrepareLiquidityProvisionResponse::clear_blob() { - blob_.ClearToEmpty(); -} -inline const std::string& PrepareLiquidityProvisionResponse::blob() const { - // @@protoc_insertion_point(field_get:api.v1.PrepareLiquidityProvisionResponse.blob) - return _internal_blob(); -} -inline void PrepareLiquidityProvisionResponse::set_blob(const std::string& value) { - _internal_set_blob(value); - // @@protoc_insertion_point(field_set:api.v1.PrepareLiquidityProvisionResponse.blob) -} -inline std::string* PrepareLiquidityProvisionResponse::mutable_blob() { - // @@protoc_insertion_point(field_mutable:api.v1.PrepareLiquidityProvisionResponse.blob) - return _internal_mutable_blob(); -} -inline const std::string& PrepareLiquidityProvisionResponse::_internal_blob() const { - return blob_.Get(); -} -inline void PrepareLiquidityProvisionResponse::_internal_set_blob(const std::string& value) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PrepareLiquidityProvisionResponse::set_blob(std::string&& value) { - - blob_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.PrepareLiquidityProvisionResponse.blob) -} -inline void PrepareLiquidityProvisionResponse::set_blob(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.PrepareLiquidityProvisionResponse.blob) -} -inline void PrepareLiquidityProvisionResponse::set_blob(const void* value, - size_t size) { - - blob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.PrepareLiquidityProvisionResponse.blob) -} -inline std::string* PrepareLiquidityProvisionResponse::_internal_mutable_blob() { - - return blob_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PrepareLiquidityProvisionResponse::release_blob() { - // @@protoc_insertion_point(field_release:api.v1.PrepareLiquidityProvisionResponse.blob) - return blob_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PrepareLiquidityProvisionResponse::set_allocated_blob(std::string* blob) { - if (blob != nullptr) { - - } else { - - } - blob_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), blob, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.PrepareLiquidityProvisionResponse.blob) -} - -// ------------------------------------------------------------------- - -// OrderByIDRequest - -// string order_id = 1 [json_name = "orderId", (.validator.field) = { -inline void OrderByIDRequest::clear_order_id() { - order_id_.ClearToEmpty(); -} -inline const std::string& OrderByIDRequest::order_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByIDRequest.order_id) - return _internal_order_id(); -} -inline void OrderByIDRequest::set_order_id(const std::string& value) { - _internal_set_order_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrderByIDRequest.order_id) -} -inline std::string* OrderByIDRequest::mutable_order_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByIDRequest.order_id) - return _internal_mutable_order_id(); -} -inline const std::string& OrderByIDRequest::_internal_order_id() const { - return order_id_.Get(); -} -inline void OrderByIDRequest::_internal_set_order_id(const std::string& value) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrderByIDRequest::set_order_id(std::string&& value) { - - order_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrderByIDRequest.order_id) -} -inline void OrderByIDRequest::set_order_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrderByIDRequest.order_id) -} -inline void OrderByIDRequest::set_order_id(const char* value, - size_t size) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrderByIDRequest.order_id) -} -inline std::string* OrderByIDRequest::_internal_mutable_order_id() { - - return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrderByIDRequest::release_order_id() { - // @@protoc_insertion_point(field_release:api.v1.OrderByIDRequest.order_id) - return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrderByIDRequest::set_allocated_order_id(std::string* order_id) { - if (order_id != nullptr) { - - } else { - - } - order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByIDRequest.order_id) -} - -// uint64 version = 2 [json_name = "version"]; -inline void OrderByIDRequest::clear_version() { - version_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 OrderByIDRequest::_internal_version() const { - return version_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 OrderByIDRequest::version() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByIDRequest.version) - return _internal_version(); -} -inline void OrderByIDRequest::_internal_set_version(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - version_ = value; -} -inline void OrderByIDRequest::set_version(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:api.v1.OrderByIDRequest.version) -} - -// ------------------------------------------------------------------- - -// OrderByIDResponse - -// .vega.Order order = 1 [json_name = "order"]; -inline bool OrderByIDResponse::_internal_has_order() const { - return this != internal_default_instance() && order_ != nullptr; -} -inline bool OrderByIDResponse::has_order() const { - return _internal_has_order(); -} -inline const ::vega::Order& OrderByIDResponse::_internal_order() const { - const ::vega::Order* p = order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Order_default_instance_); -} -inline const ::vega::Order& OrderByIDResponse::order() const { - // @@protoc_insertion_point(field_get:api.v1.OrderByIDResponse.order) - return _internal_order(); -} -inline void OrderByIDResponse::unsafe_arena_set_allocated_order( - ::vega::Order* order) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - order_ = order; - if (order) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrderByIDResponse.order) -} -inline ::vega::Order* OrderByIDResponse::release_order() { - - ::vega::Order* temp = order_; - order_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Order* OrderByIDResponse::unsafe_arena_release_order() { - // @@protoc_insertion_point(field_release:api.v1.OrderByIDResponse.order) - - ::vega::Order* temp = order_; - order_ = nullptr; - return temp; -} -inline ::vega::Order* OrderByIDResponse::_internal_mutable_order() { - - if (order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Order>(GetArena()); - order_ = p; - } - return order_; -} -inline ::vega::Order* OrderByIDResponse::mutable_order() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderByIDResponse.order) - return _internal_mutable_order(); -} -inline void OrderByIDResponse::set_allocated_order(::vega::Order* order) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - if (order) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order)->GetArena(); - if (message_arena != submessage_arena) { - order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, order, submessage_arena); - } - - } else { - - } - order_ = order; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderByIDResponse.order) -} - -// ------------------------------------------------------------------- - -// OrderVersionsByIDRequest - -// string order_id = 1 [json_name = "orderId", (.validator.field) = { -inline void OrderVersionsByIDRequest::clear_order_id() { - order_id_.ClearToEmpty(); -} -inline const std::string& OrderVersionsByIDRequest::order_id() const { - // @@protoc_insertion_point(field_get:api.v1.OrderVersionsByIDRequest.order_id) - return _internal_order_id(); -} -inline void OrderVersionsByIDRequest::set_order_id(const std::string& value) { - _internal_set_order_id(value); - // @@protoc_insertion_point(field_set:api.v1.OrderVersionsByIDRequest.order_id) -} -inline std::string* OrderVersionsByIDRequest::mutable_order_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderVersionsByIDRequest.order_id) - return _internal_mutable_order_id(); -} -inline const std::string& OrderVersionsByIDRequest::_internal_order_id() const { - return order_id_.Get(); -} -inline void OrderVersionsByIDRequest::_internal_set_order_id(const std::string& value) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void OrderVersionsByIDRequest::set_order_id(std::string&& value) { - - order_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OrderVersionsByIDRequest.order_id) -} -inline void OrderVersionsByIDRequest::set_order_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OrderVersionsByIDRequest.order_id) -} -inline void OrderVersionsByIDRequest::set_order_id(const char* value, - size_t size) { - - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OrderVersionsByIDRequest.order_id) -} -inline std::string* OrderVersionsByIDRequest::_internal_mutable_order_id() { - - return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* OrderVersionsByIDRequest::release_order_id() { - // @@protoc_insertion_point(field_release:api.v1.OrderVersionsByIDRequest.order_id) - return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void OrderVersionsByIDRequest::set_allocated_order_id(std::string* order_id) { - if (order_id != nullptr) { - - } else { - - } - order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderVersionsByIDRequest.order_id) -} - -// .api.v1.Pagination pagination = 2 [json_name = "pagination"]; -inline bool OrderVersionsByIDRequest::_internal_has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline bool OrderVersionsByIDRequest::has_pagination() const { - return _internal_has_pagination(); -} -inline void OrderVersionsByIDRequest::clear_pagination() { - if (GetArena() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::api::v1::Pagination& OrderVersionsByIDRequest::_internal_pagination() const { - const ::api::v1::Pagination* p = pagination_; - return p != nullptr ? *p : reinterpret_cast( - ::api::v1::_Pagination_default_instance_); -} -inline const ::api::v1::Pagination& OrderVersionsByIDRequest::pagination() const { - // @@protoc_insertion_point(field_get:api.v1.OrderVersionsByIDRequest.pagination) - return _internal_pagination(); -} -inline void OrderVersionsByIDRequest::unsafe_arena_set_allocated_pagination( - ::api::v1::Pagination* pagination) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pagination_); - } - pagination_ = pagination; - if (pagination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OrderVersionsByIDRequest.pagination) -} -inline ::api::v1::Pagination* OrderVersionsByIDRequest::release_pagination() { - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::api::v1::Pagination* OrderVersionsByIDRequest::unsafe_arena_release_pagination() { - // @@protoc_insertion_point(field_release:api.v1.OrderVersionsByIDRequest.pagination) - - ::api::v1::Pagination* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::api::v1::Pagination* OrderVersionsByIDRequest::_internal_mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::api::v1::Pagination>(GetArena()); - pagination_ = p; - } - return pagination_; -} -inline ::api::v1::Pagination* OrderVersionsByIDRequest::mutable_pagination() { - // @@protoc_insertion_point(field_mutable:api.v1.OrderVersionsByIDRequest.pagination) - return _internal_mutable_pagination(); -} -inline void OrderVersionsByIDRequest::set_allocated_pagination(::api::v1::Pagination* pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pagination); - if (message_arena != submessage_arena) { - pagination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:api.v1.OrderVersionsByIDRequest.pagination) -} - -// ------------------------------------------------------------------- - -// OrderVersionsByIDResponse - -// repeated .vega.Order orders = 1 [json_name = "orders"]; -inline int OrderVersionsByIDResponse::_internal_orders_size() const { - return orders_.size(); -} -inline int OrderVersionsByIDResponse::orders_size() const { - return _internal_orders_size(); -} -inline ::vega::Order* OrderVersionsByIDResponse::mutable_orders(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OrderVersionsByIDResponse.orders) - return orders_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >* -OrderVersionsByIDResponse::mutable_orders() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OrderVersionsByIDResponse.orders) - return &orders_; -} -inline const ::vega::Order& OrderVersionsByIDResponse::_internal_orders(int index) const { - return orders_.Get(index); -} -inline const ::vega::Order& OrderVersionsByIDResponse::orders(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OrderVersionsByIDResponse.orders) - return _internal_orders(index); -} -inline ::vega::Order* OrderVersionsByIDResponse::_internal_add_orders() { - return orders_.Add(); -} -inline ::vega::Order* OrderVersionsByIDResponse::add_orders() { - // @@protoc_insertion_point(field_add:api.v1.OrderVersionsByIDResponse.orders) - return _internal_add_orders(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Order >& -OrderVersionsByIDResponse::orders() const { - // @@protoc_insertion_point(field_list:api.v1.OrderVersionsByIDResponse.orders) - return orders_; -} - -// ------------------------------------------------------------------- - -// EstimateFeeRequest - -// .vega.Order order = 1 [json_name = "order"]; -inline bool EstimateFeeRequest::_internal_has_order() const { - return this != internal_default_instance() && order_ != nullptr; -} -inline bool EstimateFeeRequest::has_order() const { - return _internal_has_order(); -} -inline const ::vega::Order& EstimateFeeRequest::_internal_order() const { - const ::vega::Order* p = order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Order_default_instance_); -} -inline const ::vega::Order& EstimateFeeRequest::order() const { - // @@protoc_insertion_point(field_get:api.v1.EstimateFeeRequest.order) - return _internal_order(); -} -inline void EstimateFeeRequest::unsafe_arena_set_allocated_order( - ::vega::Order* order) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - order_ = order; - if (order) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.EstimateFeeRequest.order) -} -inline ::vega::Order* EstimateFeeRequest::release_order() { - - ::vega::Order* temp = order_; - order_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Order* EstimateFeeRequest::unsafe_arena_release_order() { - // @@protoc_insertion_point(field_release:api.v1.EstimateFeeRequest.order) - - ::vega::Order* temp = order_; - order_ = nullptr; - return temp; -} -inline ::vega::Order* EstimateFeeRequest::_internal_mutable_order() { - - if (order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Order>(GetArena()); - order_ = p; - } - return order_; -} -inline ::vega::Order* EstimateFeeRequest::mutable_order() { - // @@protoc_insertion_point(field_mutable:api.v1.EstimateFeeRequest.order) - return _internal_mutable_order(); -} -inline void EstimateFeeRequest::set_allocated_order(::vega::Order* order) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - if (order) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order)->GetArena(); - if (message_arena != submessage_arena) { - order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, order, submessage_arena); - } - - } else { - - } - order_ = order; - // @@protoc_insertion_point(field_set_allocated:api.v1.EstimateFeeRequest.order) -} - -// ------------------------------------------------------------------- - -// EstimateFeeResponse - -// .vega.Fee fee = 2 [json_name = "fee"]; -inline bool EstimateFeeResponse::_internal_has_fee() const { - return this != internal_default_instance() && fee_ != nullptr; -} -inline bool EstimateFeeResponse::has_fee() const { - return _internal_has_fee(); -} -inline const ::vega::Fee& EstimateFeeResponse::_internal_fee() const { - const ::vega::Fee* p = fee_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Fee_default_instance_); -} -inline const ::vega::Fee& EstimateFeeResponse::fee() const { - // @@protoc_insertion_point(field_get:api.v1.EstimateFeeResponse.fee) - return _internal_fee(); -} -inline void EstimateFeeResponse::unsafe_arena_set_allocated_fee( - ::vega::Fee* fee) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fee_); - } - fee_ = fee; - if (fee) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.EstimateFeeResponse.fee) -} -inline ::vega::Fee* EstimateFeeResponse::release_fee() { - - ::vega::Fee* temp = fee_; - fee_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Fee* EstimateFeeResponse::unsafe_arena_release_fee() { - // @@protoc_insertion_point(field_release:api.v1.EstimateFeeResponse.fee) - - ::vega::Fee* temp = fee_; - fee_ = nullptr; - return temp; -} -inline ::vega::Fee* EstimateFeeResponse::_internal_mutable_fee() { - - if (fee_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Fee>(GetArena()); - fee_ = p; - } - return fee_; -} -inline ::vega::Fee* EstimateFeeResponse::mutable_fee() { - // @@protoc_insertion_point(field_mutable:api.v1.EstimateFeeResponse.fee) - return _internal_mutable_fee(); -} -inline void EstimateFeeResponse::set_allocated_fee(::vega::Fee* fee) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fee_); - } - if (fee) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fee)->GetArena(); - if (message_arena != submessage_arena) { - fee = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, fee, submessage_arena); - } - - } else { - - } - fee_ = fee; - // @@protoc_insertion_point(field_set_allocated:api.v1.EstimateFeeResponse.fee) -} - -// ------------------------------------------------------------------- - -// EstimateMarginRequest - -// .vega.Order order = 1 [json_name = "order"]; -inline bool EstimateMarginRequest::_internal_has_order() const { - return this != internal_default_instance() && order_ != nullptr; -} -inline bool EstimateMarginRequest::has_order() const { - return _internal_has_order(); -} -inline const ::vega::Order& EstimateMarginRequest::_internal_order() const { - const ::vega::Order* p = order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Order_default_instance_); -} -inline const ::vega::Order& EstimateMarginRequest::order() const { - // @@protoc_insertion_point(field_get:api.v1.EstimateMarginRequest.order) - return _internal_order(); -} -inline void EstimateMarginRequest::unsafe_arena_set_allocated_order( - ::vega::Order* order) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - order_ = order; - if (order) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.EstimateMarginRequest.order) -} -inline ::vega::Order* EstimateMarginRequest::release_order() { - - ::vega::Order* temp = order_; - order_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Order* EstimateMarginRequest::unsafe_arena_release_order() { - // @@protoc_insertion_point(field_release:api.v1.EstimateMarginRequest.order) - - ::vega::Order* temp = order_; - order_ = nullptr; - return temp; -} -inline ::vega::Order* EstimateMarginRequest::_internal_mutable_order() { - - if (order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Order>(GetArena()); - order_ = p; - } - return order_; -} -inline ::vega::Order* EstimateMarginRequest::mutable_order() { - // @@protoc_insertion_point(field_mutable:api.v1.EstimateMarginRequest.order) - return _internal_mutable_order(); -} -inline void EstimateMarginRequest::set_allocated_order(::vega::Order* order) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(order_); - } - if (order) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(order)->GetArena(); - if (message_arena != submessage_arena) { - order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, order, submessage_arena); - } - - } else { - - } - order_ = order; - // @@protoc_insertion_point(field_set_allocated:api.v1.EstimateMarginRequest.order) -} - -// ------------------------------------------------------------------- - -// EstimateMarginResponse - -// .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; -inline bool EstimateMarginResponse::_internal_has_margin_levels() const { - return this != internal_default_instance() && margin_levels_ != nullptr; -} -inline bool EstimateMarginResponse::has_margin_levels() const { - return _internal_has_margin_levels(); -} -inline const ::vega::MarginLevels& EstimateMarginResponse::_internal_margin_levels() const { - const ::vega::MarginLevels* p = margin_levels_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_MarginLevels_default_instance_); -} -inline const ::vega::MarginLevels& EstimateMarginResponse::margin_levels() const { - // @@protoc_insertion_point(field_get:api.v1.EstimateMarginResponse.margin_levels) - return _internal_margin_levels(); -} -inline void EstimateMarginResponse::unsafe_arena_set_allocated_margin_levels( - ::vega::MarginLevels* margin_levels) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels_); - } - margin_levels_ = margin_levels; - if (margin_levels) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.EstimateMarginResponse.margin_levels) -} -inline ::vega::MarginLevels* EstimateMarginResponse::release_margin_levels() { - - ::vega::MarginLevels* temp = margin_levels_; - margin_levels_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::MarginLevels* EstimateMarginResponse::unsafe_arena_release_margin_levels() { - // @@protoc_insertion_point(field_release:api.v1.EstimateMarginResponse.margin_levels) - - ::vega::MarginLevels* temp = margin_levels_; - margin_levels_ = nullptr; - return temp; -} -inline ::vega::MarginLevels* EstimateMarginResponse::_internal_mutable_margin_levels() { - - if (margin_levels_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::MarginLevels>(GetArena()); - margin_levels_ = p; - } - return margin_levels_; -} -inline ::vega::MarginLevels* EstimateMarginResponse::mutable_margin_levels() { - // @@protoc_insertion_point(field_mutable:api.v1.EstimateMarginResponse.margin_levels) - return _internal_mutable_margin_levels(); -} -inline void EstimateMarginResponse::set_allocated_margin_levels(::vega::MarginLevels* margin_levels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels_); - } - if (margin_levels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(margin_levels)->GetArena(); - if (message_arena != submessage_arena) { - margin_levels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, margin_levels, submessage_arena); - } - - } else { - - } - margin_levels_ = margin_levels; - // @@protoc_insertion_point(field_set_allocated:api.v1.EstimateMarginResponse.margin_levels) -} - -// ------------------------------------------------------------------- - -// ObserveEventBusRequest - -// repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; -inline int ObserveEventBusRequest::_internal_type_size() const { - return type_.size(); -} -inline int ObserveEventBusRequest::type_size() const { - return _internal_type_size(); -} -inline void ObserveEventBusRequest::clear_type() { - type_.Clear(); -} -inline ::vega::events::v1::BusEventType ObserveEventBusRequest::_internal_type(int index) const { - return static_cast< ::vega::events::v1::BusEventType >(type_.Get(index)); -} -inline ::vega::events::v1::BusEventType ObserveEventBusRequest::type(int index) const { - // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.type) - return _internal_type(index); -} -inline void ObserveEventBusRequest::set_type(int index, ::vega::events::v1::BusEventType value) { - type_.Set(index, value); - // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.type) -} -inline void ObserveEventBusRequest::_internal_add_type(::vega::events::v1::BusEventType value) { - type_.Add(value); -} -inline void ObserveEventBusRequest::add_type(::vega::events::v1::BusEventType value) { - // @@protoc_insertion_point(field_add:api.v1.ObserveEventBusRequest.type) - _internal_add_type(value); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ObserveEventBusRequest::type() const { - // @@protoc_insertion_point(field_list:api.v1.ObserveEventBusRequest.type) - return type_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ObserveEventBusRequest::_internal_mutable_type() { - return &type_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ObserveEventBusRequest::mutable_type() { - // @@protoc_insertion_point(field_mutable_list:api.v1.ObserveEventBusRequest.type) - return _internal_mutable_type(); -} - -// string market_id = 2 [json_name = "marketId"]; -inline void ObserveEventBusRequest::clear_market_id() { - market_id_.ClearToEmpty(); -} -inline const std::string& ObserveEventBusRequest::market_id() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.market_id) - return _internal_market_id(); -} -inline void ObserveEventBusRequest::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.market_id) -} -inline std::string* ObserveEventBusRequest::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusRequest.market_id) - return _internal_mutable_market_id(); -} -inline const std::string& ObserveEventBusRequest::_internal_market_id() const { - return market_id_.Get(); -} -inline void ObserveEventBusRequest::_internal_set_market_id(const std::string& value) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ObserveEventBusRequest::set_market_id(std::string&& value) { - - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ObserveEventBusRequest.market_id) -} -inline void ObserveEventBusRequest::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ObserveEventBusRequest.market_id) -} -inline void ObserveEventBusRequest::set_market_id(const char* value, - size_t size) { - - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ObserveEventBusRequest.market_id) -} -inline std::string* ObserveEventBusRequest::_internal_mutable_market_id() { - - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ObserveEventBusRequest::release_market_id() { - // @@protoc_insertion_point(field_release:api.v1.ObserveEventBusRequest.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void ObserveEventBusRequest::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { - - } else { - - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveEventBusRequest.market_id) -} - -// string party_id = 3 [json_name = "partyId"]; -inline void ObserveEventBusRequest::clear_party_id() { - party_id_.ClearToEmpty(); -} -inline const std::string& ObserveEventBusRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.party_id) - return _internal_party_id(); -} -inline void ObserveEventBusRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.party_id) -} -inline std::string* ObserveEventBusRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusRequest.party_id) - return _internal_mutable_party_id(); -} -inline const std::string& ObserveEventBusRequest::_internal_party_id() const { - return party_id_.Get(); -} -inline void ObserveEventBusRequest::_internal_set_party_id(const std::string& value) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ObserveEventBusRequest::set_party_id(std::string&& value) { - - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ObserveEventBusRequest.party_id) -} -inline void ObserveEventBusRequest::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ObserveEventBusRequest.party_id) -} -inline void ObserveEventBusRequest::set_party_id(const char* value, - size_t size) { - - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ObserveEventBusRequest.party_id) -} -inline std::string* ObserveEventBusRequest::_internal_mutable_party_id() { - - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ObserveEventBusRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.ObserveEventBusRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void ObserveEventBusRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { - - } else { - - } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveEventBusRequest.party_id) -} - -// int64 batch_size = 4 [json_name = "batchSize"]; -inline void ObserveEventBusRequest::clear_batch_size() { - batch_size_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 ObserveEventBusRequest::_internal_batch_size() const { - return batch_size_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 ObserveEventBusRequest::batch_size() const { - // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.batch_size) - return _internal_batch_size(); -} -inline void ObserveEventBusRequest::_internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value) { - - batch_size_ = value; -} -inline void ObserveEventBusRequest::set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_batch_size(value); - // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.batch_size) -} - -// ------------------------------------------------------------------- - -// ObserveEventBusResponse - -// repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; -inline int ObserveEventBusResponse::_internal_events_size() const { - return events_.size(); -} -inline int ObserveEventBusResponse::events_size() const { - return _internal_events_size(); -} -inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::mutable_events(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusResponse.events) - return events_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >* -ObserveEventBusResponse::mutable_events() { - // @@protoc_insertion_point(field_mutable_list:api.v1.ObserveEventBusResponse.events) - return &events_; -} -inline const ::vega::events::v1::BusEvent& ObserveEventBusResponse::_internal_events(int index) const { - return events_.Get(index); -} -inline const ::vega::events::v1::BusEvent& ObserveEventBusResponse::events(int index) const { - // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusResponse.events) - return _internal_events(index); -} -inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::_internal_add_events() { - return events_.Add(); -} -inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::add_events() { - // @@protoc_insertion_point(field_add:api.v1.ObserveEventBusResponse.events) - return _internal_add_events(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >& -ObserveEventBusResponse::events() const { - // @@protoc_insertion_point(field_list:api.v1.ObserveEventBusResponse.events) - return events_; -} - -// ------------------------------------------------------------------- - -// StatisticsRequest - -// ------------------------------------------------------------------- - -// StatisticsResponse - -// .vega.Statistics statistics = 1 [json_name = "statistics"]; -inline bool StatisticsResponse::_internal_has_statistics() const { - return this != internal_default_instance() && statistics_ != nullptr; -} -inline bool StatisticsResponse::has_statistics() const { - return _internal_has_statistics(); -} -inline const ::vega::Statistics& StatisticsResponse::_internal_statistics() const { - const ::vega::Statistics* p = statistics_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Statistics_default_instance_); -} -inline const ::vega::Statistics& StatisticsResponse::statistics() const { - // @@protoc_insertion_point(field_get:api.v1.StatisticsResponse.statistics) - return _internal_statistics(); -} -inline void StatisticsResponse::unsafe_arena_set_allocated_statistics( - ::vega::Statistics* statistics) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(statistics_); - } - statistics_ = statistics; - if (statistics) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.StatisticsResponse.statistics) -} -inline ::vega::Statistics* StatisticsResponse::release_statistics() { - - ::vega::Statistics* temp = statistics_; - statistics_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::Statistics* StatisticsResponse::unsafe_arena_release_statistics() { - // @@protoc_insertion_point(field_release:api.v1.StatisticsResponse.statistics) - - ::vega::Statistics* temp = statistics_; - statistics_ = nullptr; - return temp; -} -inline ::vega::Statistics* StatisticsResponse::_internal_mutable_statistics() { - - if (statistics_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Statistics>(GetArena()); - statistics_ = p; - } - return statistics_; -} -inline ::vega::Statistics* StatisticsResponse::mutable_statistics() { - // @@protoc_insertion_point(field_mutable:api.v1.StatisticsResponse.statistics) - return _internal_mutable_statistics(); -} -inline void StatisticsResponse::set_allocated_statistics(::vega::Statistics* statistics) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(statistics_); - } - if (statistics) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(statistics)->GetArena(); - if (message_arena != submessage_arena) { - statistics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, statistics, submessage_arena); - } - - } else { - - } - statistics_ = statistics; - // @@protoc_insertion_point(field_set_allocated:api.v1.StatisticsResponse.statistics) -} - -// ------------------------------------------------------------------- - -// WithdrawalsRequest +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PropagateChainEventRequest -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void WithdrawalsRequest::clear_party_id() { - party_id_.ClearToEmpty(); +// bytes event = 1 [json_name = "event"]; +inline void PropagateChainEventRequest::clear_event() { + event_.ClearToEmpty(); } -inline const std::string& WithdrawalsRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.WithdrawalsRequest.party_id) - return _internal_party_id(); +inline const std::string& PropagateChainEventRequest::event() const { + // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.event) + return _internal_event(); } -inline void WithdrawalsRequest::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.WithdrawalsRequest.party_id) +inline void PropagateChainEventRequest::set_event(const std::string& value) { + _internal_set_event(value); + // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventRequest.event) } -inline std::string* WithdrawalsRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.WithdrawalsRequest.party_id) - return _internal_mutable_party_id(); +inline std::string* PropagateChainEventRequest::mutable_event() { + // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.event) + return _internal_mutable_event(); } -inline const std::string& WithdrawalsRequest::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& PropagateChainEventRequest::_internal_event() const { + return event_.Get(); } -inline void WithdrawalsRequest::_internal_set_party_id(const std::string& value) { +inline void PropagateChainEventRequest::_internal_set_event(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + event_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void WithdrawalsRequest::set_party_id(std::string&& value) { +inline void PropagateChainEventRequest::set_event(std::string&& value) { - party_id_.Set( + event_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.WithdrawalsRequest.party_id) + // @@protoc_insertion_point(field_set_rvalue:api.v1.PropagateChainEventRequest.event) } -inline void WithdrawalsRequest::set_party_id(const char* value) { +inline void PropagateChainEventRequest::set_event(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.WithdrawalsRequest.party_id) + event_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.PropagateChainEventRequest.event) } -inline void WithdrawalsRequest::set_party_id(const char* value, +inline void PropagateChainEventRequest::set_event(const void* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + event_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.WithdrawalsRequest.party_id) + // @@protoc_insertion_point(field_set_pointer:api.v1.PropagateChainEventRequest.event) } -inline std::string* WithdrawalsRequest::_internal_mutable_party_id() { +inline std::string* PropagateChainEventRequest::_internal_mutable_event() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return event_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* WithdrawalsRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.WithdrawalsRequest.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* PropagateChainEventRequest::release_event() { + // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.event) + return event_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void WithdrawalsRequest::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void PropagateChainEventRequest::set_allocated_event(std::string* event) { + if (event != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + event_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), event, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.WithdrawalsRequest.party_id) -} - -// ------------------------------------------------------------------- - -// WithdrawalsResponse - -// repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; -inline int WithdrawalsResponse::_internal_withdrawals_size() const { - return withdrawals_.size(); -} -inline int WithdrawalsResponse::withdrawals_size() const { - return _internal_withdrawals_size(); -} -inline ::vega::Withdrawal* WithdrawalsResponse::mutable_withdrawals(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.WithdrawalsResponse.withdrawals) - return withdrawals_.Mutable(index); + // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.event) } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Withdrawal >* -WithdrawalsResponse::mutable_withdrawals() { - // @@protoc_insertion_point(field_mutable_list:api.v1.WithdrawalsResponse.withdrawals) - return &withdrawals_; -} -inline const ::vega::Withdrawal& WithdrawalsResponse::_internal_withdrawals(int index) const { - return withdrawals_.Get(index); -} -inline const ::vega::Withdrawal& WithdrawalsResponse::withdrawals(int index) const { - // @@protoc_insertion_point(field_get:api.v1.WithdrawalsResponse.withdrawals) - return _internal_withdrawals(index); -} -inline ::vega::Withdrawal* WithdrawalsResponse::_internal_add_withdrawals() { - return withdrawals_.Add(); -} -inline ::vega::Withdrawal* WithdrawalsResponse::add_withdrawals() { - // @@protoc_insertion_point(field_add:api.v1.WithdrawalsResponse.withdrawals) - return _internal_add_withdrawals(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Withdrawal >& -WithdrawalsResponse::withdrawals() const { - // @@protoc_insertion_point(field_list:api.v1.WithdrawalsResponse.withdrawals) - return withdrawals_; -} - -// ------------------------------------------------------------------- -// WithdrawalRequest - -// string id = 1 [json_name = "id", (.validator.field) = { -inline void WithdrawalRequest::clear_id() { - id_.ClearToEmpty(); +// string pub_key = 2 [json_name = "pubKey"]; +inline void PropagateChainEventRequest::clear_pub_key() { + pub_key_.ClearToEmpty(); } -inline const std::string& WithdrawalRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.WithdrawalRequest.id) - return _internal_id(); +inline const std::string& PropagateChainEventRequest::pub_key() const { + // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.pub_key) + return _internal_pub_key(); } -inline void WithdrawalRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.WithdrawalRequest.id) +inline void PropagateChainEventRequest::set_pub_key(const std::string& value) { + _internal_set_pub_key(value); + // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventRequest.pub_key) } -inline std::string* WithdrawalRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.WithdrawalRequest.id) - return _internal_mutable_id(); +inline std::string* PropagateChainEventRequest::mutable_pub_key() { + // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.pub_key) + return _internal_mutable_pub_key(); } -inline const std::string& WithdrawalRequest::_internal_id() const { - return id_.Get(); +inline const std::string& PropagateChainEventRequest::_internal_pub_key() const { + return pub_key_.Get(); } -inline void WithdrawalRequest::_internal_set_id(const std::string& value) { +inline void PropagateChainEventRequest::_internal_set_pub_key(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void WithdrawalRequest::set_id(std::string&& value) { +inline void PropagateChainEventRequest::set_pub_key(std::string&& value) { - id_.Set( + pub_key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.WithdrawalRequest.id) + // @@protoc_insertion_point(field_set_rvalue:api.v1.PropagateChainEventRequest.pub_key) } -inline void WithdrawalRequest::set_id(const char* value) { +inline void PropagateChainEventRequest::set_pub_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.WithdrawalRequest.id) + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.PropagateChainEventRequest.pub_key) } -inline void WithdrawalRequest::set_id(const char* value, +inline void PropagateChainEventRequest::set_pub_key(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.WithdrawalRequest.id) + // @@protoc_insertion_point(field_set_pointer:api.v1.PropagateChainEventRequest.pub_key) } -inline std::string* WithdrawalRequest::_internal_mutable_id() { +inline std::string* PropagateChainEventRequest::_internal_mutable_pub_key() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* WithdrawalRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.WithdrawalRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* PropagateChainEventRequest::release_pub_key() { + // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.pub_key) + return pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void WithdrawalRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void PropagateChainEventRequest::set_allocated_pub_key(std::string* pub_key) { + if (pub_key != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pub_key, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.WithdrawalRequest.id) + // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.pub_key) } -// ------------------------------------------------------------------- - -// WithdrawalResponse - -// .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; -inline bool WithdrawalResponse::_internal_has_withdrawal() const { - return this != internal_default_instance() && withdrawal_ != nullptr; +// bytes signature = 3 [json_name = "signature"]; +inline void PropagateChainEventRequest::clear_signature() { + signature_.ClearToEmpty(); +} +inline const std::string& PropagateChainEventRequest::signature() const { + // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventRequest.signature) + return _internal_signature(); } -inline bool WithdrawalResponse::has_withdrawal() const { - return _internal_has_withdrawal(); +inline void PropagateChainEventRequest::set_signature(const std::string& value) { + _internal_set_signature(value); + // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventRequest.signature) } -inline const ::vega::Withdrawal& WithdrawalResponse::_internal_withdrawal() const { - const ::vega::Withdrawal* p = withdrawal_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Withdrawal_default_instance_); +inline std::string* PropagateChainEventRequest::mutable_signature() { + // @@protoc_insertion_point(field_mutable:api.v1.PropagateChainEventRequest.signature) + return _internal_mutable_signature(); } -inline const ::vega::Withdrawal& WithdrawalResponse::withdrawal() const { - // @@protoc_insertion_point(field_get:api.v1.WithdrawalResponse.withdrawal) - return _internal_withdrawal(); +inline const std::string& PropagateChainEventRequest::_internal_signature() const { + return signature_.Get(); } -inline void WithdrawalResponse::unsafe_arena_set_allocated_withdrawal( - ::vega::Withdrawal* withdrawal) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdrawal_); - } - withdrawal_ = withdrawal; - if (withdrawal) { +inline void PropagateChainEventRequest::_internal_set_signature(const std::string& value) { - } else { + signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PropagateChainEventRequest::set_signature(std::string&& value) { - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.WithdrawalResponse.withdrawal) + signature_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.PropagateChainEventRequest.signature) } -inline ::vega::Withdrawal* WithdrawalResponse::release_withdrawal() { +inline void PropagateChainEventRequest::set_signature(const char* value) { + GOOGLE_DCHECK(value != nullptr); - ::vega::Withdrawal* temp = withdrawal_; - withdrawal_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.PropagateChainEventRequest.signature) } -inline ::vega::Withdrawal* WithdrawalResponse::unsafe_arena_release_withdrawal() { - // @@protoc_insertion_point(field_release:api.v1.WithdrawalResponse.withdrawal) +inline void PropagateChainEventRequest::set_signature(const void* value, + size_t size) { - ::vega::Withdrawal* temp = withdrawal_; - withdrawal_ = nullptr; - return temp; + signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.PropagateChainEventRequest.signature) } -inline ::vega::Withdrawal* WithdrawalResponse::_internal_mutable_withdrawal() { +inline std::string* PropagateChainEventRequest::_internal_mutable_signature() { - if (withdrawal_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Withdrawal>(GetArena()); - withdrawal_ = p; - } - return withdrawal_; + return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::Withdrawal* WithdrawalResponse::mutable_withdrawal() { - // @@protoc_insertion_point(field_mutable:api.v1.WithdrawalResponse.withdrawal) - return _internal_mutable_withdrawal(); +inline std::string* PropagateChainEventRequest::release_signature() { + // @@protoc_insertion_point(field_release:api.v1.PropagateChainEventRequest.signature) + return signature_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void WithdrawalResponse::set_allocated_withdrawal(::vega::Withdrawal* withdrawal) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdrawal_); - } - if (withdrawal) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(withdrawal)->GetArena(); - if (message_arena != submessage_arena) { - withdrawal = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, withdrawal, submessage_arena); - } +inline void PropagateChainEventRequest::set_allocated_signature(std::string* signature) { + if (signature != nullptr) { } else { } - withdrawal_ = withdrawal; - // @@protoc_insertion_point(field_set_allocated:api.v1.WithdrawalResponse.withdrawal) + signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.PropagateChainEventRequest.signature) } // ------------------------------------------------------------------- -// ERC20WithdrawalApprovalRequest - -// string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { -inline void ERC20WithdrawalApprovalRequest::clear_withdrawal_id() { - withdrawal_id_.ClearToEmpty(); -} -inline const std::string& ERC20WithdrawalApprovalRequest::withdrawal_id() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) - return _internal_withdrawal_id(); -} -inline void ERC20WithdrawalApprovalRequest::set_withdrawal_id(const std::string& value) { - _internal_set_withdrawal_id(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) -} -inline std::string* ERC20WithdrawalApprovalRequest::mutable_withdrawal_id() { - // @@protoc_insertion_point(field_mutable:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) - return _internal_mutable_withdrawal_id(); -} -inline const std::string& ERC20WithdrawalApprovalRequest::_internal_withdrawal_id() const { - return withdrawal_id_.Get(); -} -inline void ERC20WithdrawalApprovalRequest::_internal_set_withdrawal_id(const std::string& value) { - - withdrawal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ERC20WithdrawalApprovalRequest::set_withdrawal_id(std::string&& value) { +// PropagateChainEventResponse - withdrawal_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) +// bool success = 1 [json_name = "success"]; +inline void PropagateChainEventResponse::clear_success() { + success_ = false; } -inline void ERC20WithdrawalApprovalRequest::set_withdrawal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - withdrawal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) +inline bool PropagateChainEventResponse::_internal_success() const { + return success_; } -inline void ERC20WithdrawalApprovalRequest::set_withdrawal_id(const char* value, - size_t size) { - - withdrawal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) +inline bool PropagateChainEventResponse::success() const { + // @@protoc_insertion_point(field_get:api.v1.PropagateChainEventResponse.success) + return _internal_success(); } -inline std::string* ERC20WithdrawalApprovalRequest::_internal_mutable_withdrawal_id() { +inline void PropagateChainEventResponse::_internal_set_success(bool value) { - return withdrawal_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* ERC20WithdrawalApprovalRequest::release_withdrawal_id() { - // @@protoc_insertion_point(field_release:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) - return withdrawal_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + success_ = value; } -inline void ERC20WithdrawalApprovalRequest::set_allocated_withdrawal_id(std::string* withdrawal_id) { - if (withdrawal_id != nullptr) { - - } else { - - } - withdrawal_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), withdrawal_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id) +inline void PropagateChainEventResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:api.v1.PropagateChainEventResponse.success) } // ------------------------------------------------------------------- -// ERC20WithdrawalApprovalResponse +// SubmitTransactionV2Request -// string asset_source = 1 [json_name = "assetSource"]; -inline void ERC20WithdrawalApprovalResponse::clear_asset_source() { - asset_source_.ClearToEmpty(); -} -inline const std::string& ERC20WithdrawalApprovalResponse::asset_source() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalResponse.asset_source) - return _internal_asset_source(); +// .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; +inline bool SubmitTransactionV2Request::_internal_has_tx() const { + return this != internal_default_instance() && tx_ != nullptr; } -inline void ERC20WithdrawalApprovalResponse::set_asset_source(const std::string& value) { - _internal_set_asset_source(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalResponse.asset_source) +inline bool SubmitTransactionV2Request::has_tx() const { + return _internal_has_tx(); } -inline std::string* ERC20WithdrawalApprovalResponse::mutable_asset_source() { - // @@protoc_insertion_point(field_mutable:api.v1.ERC20WithdrawalApprovalResponse.asset_source) - return _internal_mutable_asset_source(); +inline const ::vega::commands::v1::Transaction& SubmitTransactionV2Request::_internal_tx() const { + const ::vega::commands::v1::Transaction* p = tx_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::commands::v1::_Transaction_default_instance_); } -inline const std::string& ERC20WithdrawalApprovalResponse::_internal_asset_source() const { - return asset_source_.Get(); +inline const ::vega::commands::v1::Transaction& SubmitTransactionV2Request::tx() const { + // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Request.tx) + return _internal_tx(); } -inline void ERC20WithdrawalApprovalResponse::_internal_set_asset_source(const std::string& value) { +inline void SubmitTransactionV2Request::unsafe_arena_set_allocated_tx( + ::vega::commands::v1::Transaction* tx) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); + } + tx_ = tx; + if (tx) { - asset_source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ERC20WithdrawalApprovalResponse::set_asset_source(std::string&& value) { + } else { - asset_source_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ERC20WithdrawalApprovalResponse.asset_source) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.SubmitTransactionV2Request.tx) } -inline void ERC20WithdrawalApprovalResponse::set_asset_source(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::release_tx() { - asset_source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ERC20WithdrawalApprovalResponse.asset_source) + ::vega::commands::v1::Transaction* temp = tx_; + tx_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void ERC20WithdrawalApprovalResponse::set_asset_source(const char* value, - size_t size) { +inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::unsafe_arena_release_tx() { + // @@protoc_insertion_point(field_release:api.v1.SubmitTransactionV2Request.tx) - asset_source_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ERC20WithdrawalApprovalResponse.asset_source) + ::vega::commands::v1::Transaction* temp = tx_; + tx_ = nullptr; + return temp; } -inline std::string* ERC20WithdrawalApprovalResponse::_internal_mutable_asset_source() { +inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::_internal_mutable_tx() { - return asset_source_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (tx_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::commands::v1::Transaction>(GetArena()); + tx_ = p; + } + return tx_; } -inline std::string* ERC20WithdrawalApprovalResponse::release_asset_source() { - // @@protoc_insertion_point(field_release:api.v1.ERC20WithdrawalApprovalResponse.asset_source) - return asset_source_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::commands::v1::Transaction* SubmitTransactionV2Request::mutable_tx() { + // @@protoc_insertion_point(field_mutable:api.v1.SubmitTransactionV2Request.tx) + return _internal_mutable_tx(); } -inline void ERC20WithdrawalApprovalResponse::set_allocated_asset_source(std::string* asset_source) { - if (asset_source != nullptr) { +inline void SubmitTransactionV2Request::set_allocated_tx(::vega::commands::v1::Transaction* tx) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx_); + } + if (tx) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tx)->GetArena(); + if (message_arena != submessage_arena) { + tx = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, tx, submessage_arena); + } } else { } - asset_source_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset_source, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ERC20WithdrawalApprovalResponse.asset_source) + tx_ = tx; + // @@protoc_insertion_point(field_set_allocated:api.v1.SubmitTransactionV2Request.tx) } -// string amount = 2 [json_name = "amount"]; -inline void ERC20WithdrawalApprovalResponse::clear_amount() { - amount_.ClearToEmpty(); +// .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; +inline void SubmitTransactionV2Request::clear_type() { + type_ = 0; } -inline const std::string& ERC20WithdrawalApprovalResponse::amount() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalResponse.amount) - return _internal_amount(); +inline ::api::v1::SubmitTransactionV2Request_Type SubmitTransactionV2Request::_internal_type() const { + return static_cast< ::api::v1::SubmitTransactionV2Request_Type >(type_); } -inline void ERC20WithdrawalApprovalResponse::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalResponse.amount) +inline ::api::v1::SubmitTransactionV2Request_Type SubmitTransactionV2Request::type() const { + // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Request.type) + return _internal_type(); } -inline std::string* ERC20WithdrawalApprovalResponse::mutable_amount() { - // @@protoc_insertion_point(field_mutable:api.v1.ERC20WithdrawalApprovalResponse.amount) - return _internal_mutable_amount(); +inline void SubmitTransactionV2Request::_internal_set_type(::api::v1::SubmitTransactionV2Request_Type value) { + + type_ = value; } -inline const std::string& ERC20WithdrawalApprovalResponse::_internal_amount() const { - return amount_.Get(); +inline void SubmitTransactionV2Request::set_type(::api::v1::SubmitTransactionV2Request_Type value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionV2Request.type) } -inline void ERC20WithdrawalApprovalResponse::_internal_set_amount(const std::string& value) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ERC20WithdrawalApprovalResponse::set_amount(std::string&& value) { +// ------------------------------------------------------------------- - amount_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ERC20WithdrawalApprovalResponse.amount) -} -inline void ERC20WithdrawalApprovalResponse::set_amount(const char* value) { - GOOGLE_DCHECK(value != nullptr); +// SubmitTransactionV2Response - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ERC20WithdrawalApprovalResponse.amount) +// bool success = 1 [json_name = "success"]; +inline void SubmitTransactionV2Response::clear_success() { + success_ = false; } -inline void ERC20WithdrawalApprovalResponse::set_amount(const char* value, - size_t size) { - - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ERC20WithdrawalApprovalResponse.amount) +inline bool SubmitTransactionV2Response::_internal_success() const { + return success_; +} +inline bool SubmitTransactionV2Response::success() const { + // @@protoc_insertion_point(field_get:api.v1.SubmitTransactionV2Response.success) + return _internal_success(); } -inline std::string* ERC20WithdrawalApprovalResponse::_internal_mutable_amount() { +inline void SubmitTransactionV2Response::_internal_set_success(bool value) { - return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + success_ = value; } -inline std::string* ERC20WithdrawalApprovalResponse::release_amount() { - // @@protoc_insertion_point(field_release:api.v1.ERC20WithdrawalApprovalResponse.amount) - return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void SubmitTransactionV2Response::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:api.v1.SubmitTransactionV2Response.success) } -inline void ERC20WithdrawalApprovalResponse::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { - } else { +// ------------------------------------------------------------------- - } - amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ERC20WithdrawalApprovalResponse.amount) -} +// GetVegaTimeRequest + +// ------------------------------------------------------------------- + +// GetVegaTimeResponse -// int64 expiry = 3 [json_name = "expiry"]; -inline void ERC20WithdrawalApprovalResponse::clear_expiry() { - expiry_ = PROTOBUF_LONGLONG(0); +// int64 timestamp = 1 [json_name = "timestamp"]; +inline void GetVegaTimeResponse::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 ERC20WithdrawalApprovalResponse::_internal_expiry() const { - return expiry_; +inline ::PROTOBUF_NAMESPACE_ID::int64 GetVegaTimeResponse::_internal_timestamp() const { + return timestamp_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 ERC20WithdrawalApprovalResponse::expiry() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalResponse.expiry) - return _internal_expiry(); +inline ::PROTOBUF_NAMESPACE_ID::int64 GetVegaTimeResponse::timestamp() const { + // @@protoc_insertion_point(field_get:api.v1.GetVegaTimeResponse.timestamp) + return _internal_timestamp(); } -inline void ERC20WithdrawalApprovalResponse::_internal_set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void GetVegaTimeResponse::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - expiry_ = value; + timestamp_ = value; } -inline void ERC20WithdrawalApprovalResponse::set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_expiry(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalResponse.expiry) +inline void GetVegaTimeResponse::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:api.v1.GetVegaTimeResponse.timestamp) } -// string nonce = 4 [json_name = "nonce"]; -inline void ERC20WithdrawalApprovalResponse::clear_nonce() { - nonce_.ClearToEmpty(); -} -inline const std::string& ERC20WithdrawalApprovalResponse::nonce() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalResponse.nonce) - return _internal_nonce(); +// ------------------------------------------------------------------- + +// ObserveEventBusRequest + +// repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; +inline int ObserveEventBusRequest::_internal_type_size() const { + return type_.size(); } -inline void ERC20WithdrawalApprovalResponse::set_nonce(const std::string& value) { - _internal_set_nonce(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalResponse.nonce) +inline int ObserveEventBusRequest::type_size() const { + return _internal_type_size(); } -inline std::string* ERC20WithdrawalApprovalResponse::mutable_nonce() { - // @@protoc_insertion_point(field_mutable:api.v1.ERC20WithdrawalApprovalResponse.nonce) - return _internal_mutable_nonce(); +inline void ObserveEventBusRequest::clear_type() { + type_.Clear(); } -inline const std::string& ERC20WithdrawalApprovalResponse::_internal_nonce() const { - return nonce_.Get(); +inline ::vega::events::v1::BusEventType ObserveEventBusRequest::_internal_type(int index) const { + return static_cast< ::vega::events::v1::BusEventType >(type_.Get(index)); } -inline void ERC20WithdrawalApprovalResponse::_internal_set_nonce(const std::string& value) { - - nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline ::vega::events::v1::BusEventType ObserveEventBusRequest::type(int index) const { + // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.type) + return _internal_type(index); } -inline void ERC20WithdrawalApprovalResponse::set_nonce(std::string&& value) { - - nonce_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ERC20WithdrawalApprovalResponse.nonce) +inline void ObserveEventBusRequest::set_type(int index, ::vega::events::v1::BusEventType value) { + type_.Set(index, value); + // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.type) } -inline void ERC20WithdrawalApprovalResponse::set_nonce(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ERC20WithdrawalApprovalResponse.nonce) +inline void ObserveEventBusRequest::_internal_add_type(::vega::events::v1::BusEventType value) { + type_.Add(value); } -inline void ERC20WithdrawalApprovalResponse::set_nonce(const char* value, - size_t size) { - - nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ERC20WithdrawalApprovalResponse.nonce) +inline void ObserveEventBusRequest::add_type(::vega::events::v1::BusEventType value) { + // @@protoc_insertion_point(field_add:api.v1.ObserveEventBusRequest.type) + _internal_add_type(value); } -inline std::string* ERC20WithdrawalApprovalResponse::_internal_mutable_nonce() { - - return nonce_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ObserveEventBusRequest::type() const { + // @@protoc_insertion_point(field_list:api.v1.ObserveEventBusRequest.type) + return type_; } -inline std::string* ERC20WithdrawalApprovalResponse::release_nonce() { - // @@protoc_insertion_point(field_release:api.v1.ERC20WithdrawalApprovalResponse.nonce) - return nonce_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ObserveEventBusRequest::_internal_mutable_type() { + return &type_; } -inline void ERC20WithdrawalApprovalResponse::set_allocated_nonce(std::string* nonce) { - if (nonce != nullptr) { - - } else { - - } - nonce_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), nonce, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ERC20WithdrawalApprovalResponse.nonce) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ObserveEventBusRequest::mutable_type() { + // @@protoc_insertion_point(field_mutable_list:api.v1.ObserveEventBusRequest.type) + return _internal_mutable_type(); } -// string signatures = 5 [json_name = "signatures"]; -inline void ERC20WithdrawalApprovalResponse::clear_signatures() { - signatures_.ClearToEmpty(); +// string market_id = 2 [json_name = "marketId"]; +inline void ObserveEventBusRequest::clear_market_id() { + market_id_.ClearToEmpty(); } -inline const std::string& ERC20WithdrawalApprovalResponse::signatures() const { - // @@protoc_insertion_point(field_get:api.v1.ERC20WithdrawalApprovalResponse.signatures) - return _internal_signatures(); +inline const std::string& ObserveEventBusRequest::market_id() const { + // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.market_id) + return _internal_market_id(); } -inline void ERC20WithdrawalApprovalResponse::set_signatures(const std::string& value) { - _internal_set_signatures(value); - // @@protoc_insertion_point(field_set:api.v1.ERC20WithdrawalApprovalResponse.signatures) +inline void ObserveEventBusRequest::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.market_id) } -inline std::string* ERC20WithdrawalApprovalResponse::mutable_signatures() { - // @@protoc_insertion_point(field_mutable:api.v1.ERC20WithdrawalApprovalResponse.signatures) - return _internal_mutable_signatures(); +inline std::string* ObserveEventBusRequest::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusRequest.market_id) + return _internal_mutable_market_id(); } -inline const std::string& ERC20WithdrawalApprovalResponse::_internal_signatures() const { - return signatures_.Get(); +inline const std::string& ObserveEventBusRequest::_internal_market_id() const { + return market_id_.Get(); } -inline void ERC20WithdrawalApprovalResponse::_internal_set_signatures(const std::string& value) { +inline void ObserveEventBusRequest::_internal_set_market_id(const std::string& value) { - signatures_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20WithdrawalApprovalResponse::set_signatures(std::string&& value) { +inline void ObserveEventBusRequest::set_market_id(std::string&& value) { - signatures_.Set( + market_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.ERC20WithdrawalApprovalResponse.signatures) + // @@protoc_insertion_point(field_set_rvalue:api.v1.ObserveEventBusRequest.market_id) } -inline void ERC20WithdrawalApprovalResponse::set_signatures(const char* value) { +inline void ObserveEventBusRequest::set_market_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - signatures_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.ERC20WithdrawalApprovalResponse.signatures) + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.ObserveEventBusRequest.market_id) } -inline void ERC20WithdrawalApprovalResponse::set_signatures(const char* value, +inline void ObserveEventBusRequest::set_market_id(const char* value, size_t size) { - signatures_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.ERC20WithdrawalApprovalResponse.signatures) + // @@protoc_insertion_point(field_set_pointer:api.v1.ObserveEventBusRequest.market_id) } -inline std::string* ERC20WithdrawalApprovalResponse::_internal_mutable_signatures() { +inline std::string* ObserveEventBusRequest::_internal_mutable_market_id() { - return signatures_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20WithdrawalApprovalResponse::release_signatures() { - // @@protoc_insertion_point(field_release:api.v1.ERC20WithdrawalApprovalResponse.signatures) - return signatures_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ObserveEventBusRequest::release_market_id() { + // @@protoc_insertion_point(field_release:api.v1.ObserveEventBusRequest.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20WithdrawalApprovalResponse::set_allocated_signatures(std::string* signatures) { - if (signatures != nullptr) { +inline void ObserveEventBusRequest::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { } else { } - signatures_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signatures, + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.ERC20WithdrawalApprovalResponse.signatures) + // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveEventBusRequest.market_id) } -// ------------------------------------------------------------------- - -// DepositsRequest - -// string party_id = 1 [json_name = "partyId", (.validator.field) = { -inline void DepositsRequest::clear_party_id() { +// string party_id = 3 [json_name = "partyId"]; +inline void ObserveEventBusRequest::clear_party_id() { party_id_.ClearToEmpty(); } -inline const std::string& DepositsRequest::party_id() const { - // @@protoc_insertion_point(field_get:api.v1.DepositsRequest.party_id) +inline const std::string& ObserveEventBusRequest::party_id() const { + // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.party_id) return _internal_party_id(); } -inline void DepositsRequest::set_party_id(const std::string& value) { +inline void ObserveEventBusRequest::set_party_id(const std::string& value) { _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:api.v1.DepositsRequest.party_id) + // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.party_id) } -inline std::string* DepositsRequest::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:api.v1.DepositsRequest.party_id) +inline std::string* ObserveEventBusRequest::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusRequest.party_id) return _internal_mutable_party_id(); } -inline const std::string& DepositsRequest::_internal_party_id() const { +inline const std::string& ObserveEventBusRequest::_internal_party_id() const { return party_id_.Get(); } -inline void DepositsRequest::_internal_set_party_id(const std::string& value) { +inline void ObserveEventBusRequest::_internal_set_party_id(const std::string& value) { party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void DepositsRequest::set_party_id(std::string&& value) { +inline void ObserveEventBusRequest::set_party_id(std::string&& value) { party_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.DepositsRequest.party_id) + // @@protoc_insertion_point(field_set_rvalue:api.v1.ObserveEventBusRequest.party_id) } -inline void DepositsRequest::set_party_id(const char* value) { +inline void ObserveEventBusRequest::set_party_id(const char* value) { GOOGLE_DCHECK(value != nullptr); party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.DepositsRequest.party_id) + // @@protoc_insertion_point(field_set_char:api.v1.ObserveEventBusRequest.party_id) } -inline void DepositsRequest::set_party_id(const char* value, +inline void ObserveEventBusRequest::set_party_id(const char* value, size_t size) { party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.DepositsRequest.party_id) + // @@protoc_insertion_point(field_set_pointer:api.v1.ObserveEventBusRequest.party_id) } -inline std::string* DepositsRequest::_internal_mutable_party_id() { +inline std::string* ObserveEventBusRequest::_internal_mutable_party_id() { return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* DepositsRequest::release_party_id() { - // @@protoc_insertion_point(field_release:api.v1.DepositsRequest.party_id) +inline std::string* ObserveEventBusRequest::release_party_id() { + // @@protoc_insertion_point(field_release:api.v1.ObserveEventBusRequest.party_id) return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void DepositsRequest::set_allocated_party_id(std::string* party_id) { +inline void ObserveEventBusRequest::set_allocated_party_id(std::string* party_id) { if (party_id != nullptr) { } else { @@ -33815,1009 +2987,1163 @@ inline void DepositsRequest::set_allocated_party_id(std::string* party_id) { } party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.DepositsRequest.party_id) + // @@protoc_insertion_point(field_set_allocated:api.v1.ObserveEventBusRequest.party_id) } -// ------------------------------------------------------------------- - -// DepositsResponse - -// repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; -inline int DepositsResponse::_internal_deposits_size() const { - return deposits_.size(); -} -inline int DepositsResponse::deposits_size() const { - return _internal_deposits_size(); -} -inline ::vega::Deposit* DepositsResponse::mutable_deposits(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.DepositsResponse.deposits) - return deposits_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Deposit >* -DepositsResponse::mutable_deposits() { - // @@protoc_insertion_point(field_mutable_list:api.v1.DepositsResponse.deposits) - return &deposits_; -} -inline const ::vega::Deposit& DepositsResponse::_internal_deposits(int index) const { - return deposits_.Get(index); +// int64 batch_size = 4 [json_name = "batchSize"]; +inline void ObserveEventBusRequest::clear_batch_size() { + batch_size_ = PROTOBUF_LONGLONG(0); } -inline const ::vega::Deposit& DepositsResponse::deposits(int index) const { - // @@protoc_insertion_point(field_get:api.v1.DepositsResponse.deposits) - return _internal_deposits(index); +inline ::PROTOBUF_NAMESPACE_ID::int64 ObserveEventBusRequest::_internal_batch_size() const { + return batch_size_; } -inline ::vega::Deposit* DepositsResponse::_internal_add_deposits() { - return deposits_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::int64 ObserveEventBusRequest::batch_size() const { + // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusRequest.batch_size) + return _internal_batch_size(); } -inline ::vega::Deposit* DepositsResponse::add_deposits() { - // @@protoc_insertion_point(field_add:api.v1.DepositsResponse.deposits) - return _internal_add_deposits(); +inline void ObserveEventBusRequest::_internal_set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value) { + + batch_size_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Deposit >& -DepositsResponse::deposits() const { - // @@protoc_insertion_point(field_list:api.v1.DepositsResponse.deposits) - return deposits_; +inline void ObserveEventBusRequest::set_batch_size(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_batch_size(value); + // @@protoc_insertion_point(field_set:api.v1.ObserveEventBusRequest.batch_size) } // ------------------------------------------------------------------- -// DepositRequest +// ObserveEventBusResponse -// string id = 1 [json_name = "id", (.validator.field) = { -inline void DepositRequest::clear_id() { - id_.ClearToEmpty(); -} -inline const std::string& DepositRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.DepositRequest.id) - return _internal_id(); -} -inline void DepositRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.DepositRequest.id) +// repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; +inline int ObserveEventBusResponse::_internal_events_size() const { + return events_.size(); } -inline std::string* DepositRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.DepositRequest.id) - return _internal_mutable_id(); +inline int ObserveEventBusResponse::events_size() const { + return _internal_events_size(); } -inline const std::string& DepositRequest::_internal_id() const { - return id_.Get(); +inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::mutable_events(int index) { + // @@protoc_insertion_point(field_mutable:api.v1.ObserveEventBusResponse.events) + return events_.Mutable(index); } -inline void DepositRequest::_internal_set_id(const std::string& value) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >* +ObserveEventBusResponse::mutable_events() { + // @@protoc_insertion_point(field_mutable_list:api.v1.ObserveEventBusResponse.events) + return &events_; } -inline void DepositRequest::set_id(std::string&& value) { - - id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.DepositRequest.id) +inline const ::vega::events::v1::BusEvent& ObserveEventBusResponse::_internal_events(int index) const { + return events_.Get(index); } -inline void DepositRequest::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.DepositRequest.id) +inline const ::vega::events::v1::BusEvent& ObserveEventBusResponse::events(int index) const { + // @@protoc_insertion_point(field_get:api.v1.ObserveEventBusResponse.events) + return _internal_events(index); } -inline void DepositRequest::set_id(const char* value, - size_t size) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.DepositRequest.id) +inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::_internal_add_events() { + return events_.Add(); } -inline std::string* DepositRequest::_internal_mutable_id() { - - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline ::vega::events::v1::BusEvent* ObserveEventBusResponse::add_events() { + // @@protoc_insertion_point(field_add:api.v1.ObserveEventBusResponse.events) + return _internal_add_events(); } -inline std::string* DepositRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.DepositRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::BusEvent >& +ObserveEventBusResponse::events() const { + // @@protoc_insertion_point(field_list:api.v1.ObserveEventBusResponse.events) + return events_; } -inline void DepositRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { - } else { +// ------------------------------------------------------------------- - } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.DepositRequest.id) -} +// StatisticsRequest // ------------------------------------------------------------------- -// DepositResponse +// StatisticsResponse -// .vega.Deposit deposit = 1 [json_name = "deposit"]; -inline bool DepositResponse::_internal_has_deposit() const { - return this != internal_default_instance() && deposit_ != nullptr; +// .api.v1.Statistics statistics = 1 [json_name = "statistics"]; +inline bool StatisticsResponse::_internal_has_statistics() const { + return this != internal_default_instance() && statistics_ != nullptr; +} +inline bool StatisticsResponse::has_statistics() const { + return _internal_has_statistics(); } -inline bool DepositResponse::has_deposit() const { - return _internal_has_deposit(); +inline void StatisticsResponse::clear_statistics() { + if (GetArena() == nullptr && statistics_ != nullptr) { + delete statistics_; + } + statistics_ = nullptr; } -inline const ::vega::Deposit& DepositResponse::_internal_deposit() const { - const ::vega::Deposit* p = deposit_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Deposit_default_instance_); +inline const ::api::v1::Statistics& StatisticsResponse::_internal_statistics() const { + const ::api::v1::Statistics* p = statistics_; + return p != nullptr ? *p : reinterpret_cast( + ::api::v1::_Statistics_default_instance_); } -inline const ::vega::Deposit& DepositResponse::deposit() const { - // @@protoc_insertion_point(field_get:api.v1.DepositResponse.deposit) - return _internal_deposit(); +inline const ::api::v1::Statistics& StatisticsResponse::statistics() const { + // @@protoc_insertion_point(field_get:api.v1.StatisticsResponse.statistics) + return _internal_statistics(); } -inline void DepositResponse::unsafe_arena_set_allocated_deposit( - ::vega::Deposit* deposit) { +inline void StatisticsResponse::unsafe_arena_set_allocated_statistics( + ::api::v1::Statistics* statistics) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(deposit_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(statistics_); } - deposit_ = deposit; - if (deposit) { + statistics_ = statistics; + if (statistics) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.DepositResponse.deposit) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.StatisticsResponse.statistics) } -inline ::vega::Deposit* DepositResponse::release_deposit() { +inline ::api::v1::Statistics* StatisticsResponse::release_statistics() { - ::vega::Deposit* temp = deposit_; - deposit_ = nullptr; + ::api::v1::Statistics* temp = statistics_; + statistics_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::vega::Deposit* DepositResponse::unsafe_arena_release_deposit() { - // @@protoc_insertion_point(field_release:api.v1.DepositResponse.deposit) +inline ::api::v1::Statistics* StatisticsResponse::unsafe_arena_release_statistics() { + // @@protoc_insertion_point(field_release:api.v1.StatisticsResponse.statistics) - ::vega::Deposit* temp = deposit_; - deposit_ = nullptr; + ::api::v1::Statistics* temp = statistics_; + statistics_ = nullptr; return temp; } -inline ::vega::Deposit* DepositResponse::_internal_mutable_deposit() { +inline ::api::v1::Statistics* StatisticsResponse::_internal_mutable_statistics() { - if (deposit_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Deposit>(GetArena()); - deposit_ = p; + if (statistics_ == nullptr) { + auto* p = CreateMaybeMessage<::api::v1::Statistics>(GetArena()); + statistics_ = p; } - return deposit_; + return statistics_; } -inline ::vega::Deposit* DepositResponse::mutable_deposit() { - // @@protoc_insertion_point(field_mutable:api.v1.DepositResponse.deposit) - return _internal_mutable_deposit(); +inline ::api::v1::Statistics* StatisticsResponse::mutable_statistics() { + // @@protoc_insertion_point(field_mutable:api.v1.StatisticsResponse.statistics) + return _internal_mutable_statistics(); } -inline void DepositResponse::set_allocated_deposit(::vega::Deposit* deposit) { +inline void StatisticsResponse::set_allocated_statistics(::api::v1::Statistics* statistics) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(deposit_); + delete statistics_; } - if (deposit) { + if (statistics) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(deposit)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(statistics); if (message_arena != submessage_arena) { - deposit = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, deposit, submessage_arena); + statistics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, statistics, submessage_arena); } } else { } - deposit_ = deposit; - // @@protoc_insertion_point(field_set_allocated:api.v1.DepositResponse.deposit) + statistics_ = statistics; + // @@protoc_insertion_point(field_set_allocated:api.v1.StatisticsResponse.statistics) } // ------------------------------------------------------------------- -// NetworkParametersRequest - -// ------------------------------------------------------------------- - -// NetworkParametersResponse +// Statistics -// repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; -inline int NetworkParametersResponse::_internal_network_parameters_size() const { - return network_parameters_.size(); +// uint64 block_height = 1 [json_name = "blockHeight"]; +inline void Statistics::clear_block_height() { + block_height_ = PROTOBUF_ULONGLONG(0); } -inline int NetworkParametersResponse::network_parameters_size() const { - return _internal_network_parameters_size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_block_height() const { + return block_height_; } -inline ::vega::NetworkParameter* NetworkParametersResponse::mutable_network_parameters(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.NetworkParametersResponse.network_parameters) - return network_parameters_.Mutable(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::block_height() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.block_height) + return _internal_block_height(); +} +inline void Statistics::_internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + block_height_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* -NetworkParametersResponse::mutable_network_parameters() { - // @@protoc_insertion_point(field_mutable_list:api.v1.NetworkParametersResponse.network_parameters) - return &network_parameters_; +inline void Statistics::set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_block_height(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.block_height) } -inline const ::vega::NetworkParameter& NetworkParametersResponse::_internal_network_parameters(int index) const { - return network_parameters_.Get(index); + +// uint64 backlog_length = 2 [json_name = "backlogLength"]; +inline void Statistics::clear_backlog_length() { + backlog_length_ = PROTOBUF_ULONGLONG(0); } -inline const ::vega::NetworkParameter& NetworkParametersResponse::network_parameters(int index) const { - // @@protoc_insertion_point(field_get:api.v1.NetworkParametersResponse.network_parameters) - return _internal_network_parameters(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_backlog_length() const { + return backlog_length_; } -inline ::vega::NetworkParameter* NetworkParametersResponse::_internal_add_network_parameters() { - return network_parameters_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::backlog_length() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.backlog_length) + return _internal_backlog_length(); } -inline ::vega::NetworkParameter* NetworkParametersResponse::add_network_parameters() { - // @@protoc_insertion_point(field_add:api.v1.NetworkParametersResponse.network_parameters) - return _internal_add_network_parameters(); +inline void Statistics::_internal_set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + backlog_length_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& -NetworkParametersResponse::network_parameters() const { - // @@protoc_insertion_point(field_list:api.v1.NetworkParametersResponse.network_parameters) - return network_parameters_; +inline void Statistics::set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_backlog_length(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.backlog_length) } -// ------------------------------------------------------------------- +// uint64 total_peers = 3 [json_name = "totalPeers"]; +inline void Statistics::clear_total_peers() { + total_peers_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_peers() const { + return total_peers_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_peers() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_peers) + return _internal_total_peers(); +} +inline void Statistics::_internal_set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// LiquidityProvisionsRequest + total_peers_ = value; +} +inline void Statistics::set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_peers(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_peers) +} -// string market = 1 [json_name = "market"]; -inline void LiquidityProvisionsRequest::clear_market() { - market_.ClearToEmpty(); +// string genesis_time = 4 [json_name = "genesisTime"]; +inline void Statistics::clear_genesis_time() { + genesis_time_.ClearToEmpty(); } -inline const std::string& LiquidityProvisionsRequest::market() const { - // @@protoc_insertion_point(field_get:api.v1.LiquidityProvisionsRequest.market) - return _internal_market(); +inline const std::string& Statistics::genesis_time() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.genesis_time) + return _internal_genesis_time(); } -inline void LiquidityProvisionsRequest::set_market(const std::string& value) { - _internal_set_market(value); - // @@protoc_insertion_point(field_set:api.v1.LiquidityProvisionsRequest.market) +inline void Statistics::set_genesis_time(const std::string& value) { + _internal_set_genesis_time(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.genesis_time) } -inline std::string* LiquidityProvisionsRequest::mutable_market() { - // @@protoc_insertion_point(field_mutable:api.v1.LiquidityProvisionsRequest.market) - return _internal_mutable_market(); +inline std::string* Statistics::mutable_genesis_time() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.genesis_time) + return _internal_mutable_genesis_time(); } -inline const std::string& LiquidityProvisionsRequest::_internal_market() const { - return market_.Get(); +inline const std::string& Statistics::_internal_genesis_time() const { + return genesis_time_.Get(); } -inline void LiquidityProvisionsRequest::_internal_set_market(const std::string& value) { +inline void Statistics::_internal_set_genesis_time(const std::string& value) { - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvisionsRequest::set_market(std::string&& value) { +inline void Statistics::set_genesis_time(std::string&& value) { - market_.Set( + genesis_time_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.LiquidityProvisionsRequest.market) + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.genesis_time) } -inline void LiquidityProvisionsRequest::set_market(const char* value) { +inline void Statistics::set_genesis_time(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.LiquidityProvisionsRequest.market) + genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.genesis_time) } -inline void LiquidityProvisionsRequest::set_market(const char* value, +inline void Statistics::set_genesis_time(const char* value, size_t size) { - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.LiquidityProvisionsRequest.market) + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.genesis_time) } -inline std::string* LiquidityProvisionsRequest::_internal_mutable_market() { +inline std::string* Statistics::_internal_mutable_genesis_time() { - return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return genesis_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvisionsRequest::release_market() { - // @@protoc_insertion_point(field_release:api.v1.LiquidityProvisionsRequest.market) - return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Statistics::release_genesis_time() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.genesis_time) + return genesis_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvisionsRequest::set_allocated_market(std::string* market) { - if (market != nullptr) { +inline void Statistics::set_allocated_genesis_time(std::string* genesis_time) { + if (genesis_time != nullptr) { } else { } - market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + genesis_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), genesis_time, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.LiquidityProvisionsRequest.market) + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.genesis_time) } -// string party = 2 [json_name = "party"]; -inline void LiquidityProvisionsRequest::clear_party() { - party_.ClearToEmpty(); +// string current_time = 5 [json_name = "currentTime"]; +inline void Statistics::clear_current_time() { + current_time_.ClearToEmpty(); } -inline const std::string& LiquidityProvisionsRequest::party() const { - // @@protoc_insertion_point(field_get:api.v1.LiquidityProvisionsRequest.party) - return _internal_party(); +inline const std::string& Statistics::current_time() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.current_time) + return _internal_current_time(); } -inline void LiquidityProvisionsRequest::set_party(const std::string& value) { - _internal_set_party(value); - // @@protoc_insertion_point(field_set:api.v1.LiquidityProvisionsRequest.party) +inline void Statistics::set_current_time(const std::string& value) { + _internal_set_current_time(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.current_time) } -inline std::string* LiquidityProvisionsRequest::mutable_party() { - // @@protoc_insertion_point(field_mutable:api.v1.LiquidityProvisionsRequest.party) - return _internal_mutable_party(); +inline std::string* Statistics::mutable_current_time() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.current_time) + return _internal_mutable_current_time(); } -inline const std::string& LiquidityProvisionsRequest::_internal_party() const { - return party_.Get(); +inline const std::string& Statistics::_internal_current_time() const { + return current_time_.Get(); } -inline void LiquidityProvisionsRequest::_internal_set_party(const std::string& value) { +inline void Statistics::_internal_set_current_time(const std::string& value) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvisionsRequest::set_party(std::string&& value) { +inline void Statistics::set_current_time(std::string&& value) { - party_.Set( + current_time_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.LiquidityProvisionsRequest.party) + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.current_time) } -inline void LiquidityProvisionsRequest::set_party(const char* value) { +inline void Statistics::set_current_time(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.LiquidityProvisionsRequest.party) + current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.current_time) } -inline void LiquidityProvisionsRequest::set_party(const char* value, +inline void Statistics::set_current_time(const char* value, size_t size) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.LiquidityProvisionsRequest.party) + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.current_time) } -inline std::string* LiquidityProvisionsRequest::_internal_mutable_party() { +inline std::string* Statistics::_internal_mutable_current_time() { - return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return current_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvisionsRequest::release_party() { - // @@protoc_insertion_point(field_release:api.v1.LiquidityProvisionsRequest.party) - return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Statistics::release_current_time() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.current_time) + return current_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvisionsRequest::set_allocated_party(std::string* party) { - if (party != nullptr) { +inline void Statistics::set_allocated_current_time(std::string* current_time) { + if (current_time != nullptr) { } else { } - party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + current_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), current_time, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.LiquidityProvisionsRequest.party) -} - -// ------------------------------------------------------------------- - -// LiquidityProvisionsResponse - -// repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; -inline int LiquidityProvisionsResponse::_internal_liquidity_provisions_size() const { - return liquidity_provisions_.size(); -} -inline int LiquidityProvisionsResponse::liquidity_provisions_size() const { - return _internal_liquidity_provisions_size(); -} -inline ::vega::LiquidityProvision* LiquidityProvisionsResponse::mutable_liquidity_provisions(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.LiquidityProvisionsResponse.liquidity_provisions) - return liquidity_provisions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProvision >* -LiquidityProvisionsResponse::mutable_liquidity_provisions() { - // @@protoc_insertion_point(field_mutable_list:api.v1.LiquidityProvisionsResponse.liquidity_provisions) - return &liquidity_provisions_; -} -inline const ::vega::LiquidityProvision& LiquidityProvisionsResponse::_internal_liquidity_provisions(int index) const { - return liquidity_provisions_.Get(index); -} -inline const ::vega::LiquidityProvision& LiquidityProvisionsResponse::liquidity_provisions(int index) const { - // @@protoc_insertion_point(field_get:api.v1.LiquidityProvisionsResponse.liquidity_provisions) - return _internal_liquidity_provisions(index); -} -inline ::vega::LiquidityProvision* LiquidityProvisionsResponse::_internal_add_liquidity_provisions() { - return liquidity_provisions_.Add(); -} -inline ::vega::LiquidityProvision* LiquidityProvisionsResponse::add_liquidity_provisions() { - // @@protoc_insertion_point(field_add:api.v1.LiquidityProvisionsResponse.liquidity_provisions) - return _internal_add_liquidity_provisions(); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.current_time) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProvision >& -LiquidityProvisionsResponse::liquidity_provisions() const { - // @@protoc_insertion_point(field_list:api.v1.LiquidityProvisionsResponse.liquidity_provisions) - return liquidity_provisions_; -} - -// ------------------------------------------------------------------- - -// OracleSpecRequest -// string id = 1 [json_name = "id", (.validator.field) = { -inline void OracleSpecRequest::clear_id() { - id_.ClearToEmpty(); +// string vega_time = 6 [json_name = "vegaTime"]; +inline void Statistics::clear_vega_time() { + vega_time_.ClearToEmpty(); } -inline const std::string& OracleSpecRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.OracleSpecRequest.id) - return _internal_id(); +inline const std::string& Statistics::vega_time() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.vega_time) + return _internal_vega_time(); } -inline void OracleSpecRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.OracleSpecRequest.id) +inline void Statistics::set_vega_time(const std::string& value) { + _internal_set_vega_time(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.vega_time) } -inline std::string* OracleSpecRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OracleSpecRequest.id) - return _internal_mutable_id(); +inline std::string* Statistics::mutable_vega_time() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.vega_time) + return _internal_mutable_vega_time(); } -inline const std::string& OracleSpecRequest::_internal_id() const { - return id_.Get(); +inline const std::string& Statistics::_internal_vega_time() const { + return vega_time_.Get(); } -inline void OracleSpecRequest::_internal_set_id(const std::string& value) { +inline void Statistics::_internal_set_vega_time(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void OracleSpecRequest::set_id(std::string&& value) { +inline void Statistics::set_vega_time(std::string&& value) { - id_.Set( + vega_time_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OracleSpecRequest.id) + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.vega_time) } -inline void OracleSpecRequest::set_id(const char* value) { +inline void Statistics::set_vega_time(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OracleSpecRequest.id) + vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.vega_time) } -inline void OracleSpecRequest::set_id(const char* value, +inline void Statistics::set_vega_time(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OracleSpecRequest.id) + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.vega_time) } -inline std::string* OracleSpecRequest::_internal_mutable_id() { +inline std::string* Statistics::_internal_mutable_vega_time() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return vega_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* OracleSpecRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.OracleSpecRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Statistics::release_vega_time() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.vega_time) + return vega_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void OracleSpecRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void Statistics::set_allocated_vega_time(std::string* vega_time) { + if (vega_time != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + vega_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_time, GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OracleSpecRequest.id) + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.vega_time) } -// ------------------------------------------------------------------- - -// OracleSpecResponse - -// .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; -inline bool OracleSpecResponse::_internal_has_oracle_spec() const { - return this != internal_default_instance() && oracle_spec_ != nullptr; -} -inline bool OracleSpecResponse::has_oracle_spec() const { - return _internal_has_oracle_spec(); +// .vega.ChainStatus status = 7 [json_name = "status"]; +inline void Statistics::clear_status() { + status_ = 0; } -inline const ::oracles::v1::OracleSpec& OracleSpecResponse::_internal_oracle_spec() const { - const ::oracles::v1::OracleSpec* p = oracle_spec_; - return p != nullptr ? *p : reinterpret_cast( - ::oracles::v1::_OracleSpec_default_instance_); +inline ::vega::ChainStatus Statistics::_internal_status() const { + return static_cast< ::vega::ChainStatus >(status_); } -inline const ::oracles::v1::OracleSpec& OracleSpecResponse::oracle_spec() const { - // @@protoc_insertion_point(field_get:api.v1.OracleSpecResponse.oracle_spec) - return _internal_oracle_spec(); +inline ::vega::ChainStatus Statistics::status() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.status) + return _internal_status(); } -inline void OracleSpecResponse::unsafe_arena_set_allocated_oracle_spec( - ::oracles::v1::OracleSpec* oracle_spec) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(oracle_spec_); - } - oracle_spec_ = oracle_spec; - if (oracle_spec) { - - } else { +inline void Statistics::_internal_set_status(::vega::ChainStatus value) { - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:api.v1.OracleSpecResponse.oracle_spec) -} -inline ::oracles::v1::OracleSpec* OracleSpecResponse::release_oracle_spec() { - - ::oracles::v1::OracleSpec* temp = oracle_spec_; - oracle_spec_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + status_ = value; } -inline ::oracles::v1::OracleSpec* OracleSpecResponse::unsafe_arena_release_oracle_spec() { - // @@protoc_insertion_point(field_release:api.v1.OracleSpecResponse.oracle_spec) - - ::oracles::v1::OracleSpec* temp = oracle_spec_; - oracle_spec_ = nullptr; - return temp; +inline void Statistics::set_status(::vega::ChainStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.status) } -inline ::oracles::v1::OracleSpec* OracleSpecResponse::_internal_mutable_oracle_spec() { - if (oracle_spec_ == nullptr) { - auto* p = CreateMaybeMessage<::oracles::v1::OracleSpec>(GetArena()); - oracle_spec_ = p; - } - return oracle_spec_; +// uint64 tx_per_block = 8 [json_name = "txPerBlock"]; +inline void Statistics::clear_tx_per_block() { + tx_per_block_ = PROTOBUF_ULONGLONG(0); } -inline ::oracles::v1::OracleSpec* OracleSpecResponse::mutable_oracle_spec() { - // @@protoc_insertion_point(field_mutable:api.v1.OracleSpecResponse.oracle_spec) - return _internal_mutable_oracle_spec(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_tx_per_block() const { + return tx_per_block_; } -inline void OracleSpecResponse::set_allocated_oracle_spec(::oracles::v1::OracleSpec* oracle_spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(oracle_spec_); - } - if (oracle_spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(oracle_spec)->GetArena(); - if (message_arena != submessage_arena) { - oracle_spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, oracle_spec, submessage_arena); - } - - } else { - - } - oracle_spec_ = oracle_spec; - // @@protoc_insertion_point(field_set_allocated:api.v1.OracleSpecResponse.oracle_spec) +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::tx_per_block() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.tx_per_block) + return _internal_tx_per_block(); } +inline void Statistics::_internal_set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- - -// OracleSpecsRequest - -// ------------------------------------------------------------------- - -// OracleSpecsResponse - -// repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; -inline int OracleSpecsResponse::_internal_oracle_specs_size() const { - return oracle_specs_.size(); -} -inline int OracleSpecsResponse::oracle_specs_size() const { - return _internal_oracle_specs_size(); -} -inline ::oracles::v1::OracleSpec* OracleSpecsResponse::mutable_oracle_specs(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OracleSpecsResponse.oracle_specs) - return oracle_specs_.Mutable(index); + tx_per_block_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleSpec >* -OracleSpecsResponse::mutable_oracle_specs() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OracleSpecsResponse.oracle_specs) - return &oracle_specs_; +inline void Statistics::set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_per_block(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.tx_per_block) } -inline const ::oracles::v1::OracleSpec& OracleSpecsResponse::_internal_oracle_specs(int index) const { - return oracle_specs_.Get(index); -} -inline const ::oracles::v1::OracleSpec& OracleSpecsResponse::oracle_specs(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OracleSpecsResponse.oracle_specs) - return _internal_oracle_specs(index); -} -inline ::oracles::v1::OracleSpec* OracleSpecsResponse::_internal_add_oracle_specs() { - return oracle_specs_.Add(); + +// uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; +inline void Statistics::clear_average_tx_bytes() { + average_tx_bytes_ = PROTOBUF_ULONGLONG(0); } -inline ::oracles::v1::OracleSpec* OracleSpecsResponse::add_oracle_specs() { - // @@protoc_insertion_point(field_add:api.v1.OracleSpecsResponse.oracle_specs) - return _internal_add_oracle_specs(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_average_tx_bytes() const { + return average_tx_bytes_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleSpec >& -OracleSpecsResponse::oracle_specs() const { - // @@protoc_insertion_point(field_list:api.v1.OracleSpecsResponse.oracle_specs) - return oracle_specs_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::average_tx_bytes() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.average_tx_bytes) + return _internal_average_tx_bytes(); } +inline void Statistics::_internal_set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- - -// OracleDataBySpecRequest - -// string id = 1 [json_name = "id", (.validator.field) = { -inline void OracleDataBySpecRequest::clear_id() { - id_.ClearToEmpty(); + average_tx_bytes_ = value; } -inline const std::string& OracleDataBySpecRequest::id() const { - // @@protoc_insertion_point(field_get:api.v1.OracleDataBySpecRequest.id) - return _internal_id(); +inline void Statistics::set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_average_tx_bytes(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.average_tx_bytes) } -inline void OracleDataBySpecRequest::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:api.v1.OracleDataBySpecRequest.id) + +// uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; +inline void Statistics::clear_average_orders_per_block() { + average_orders_per_block_ = PROTOBUF_ULONGLONG(0); } -inline std::string* OracleDataBySpecRequest::mutable_id() { - // @@protoc_insertion_point(field_mutable:api.v1.OracleDataBySpecRequest.id) - return _internal_mutable_id(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_average_orders_per_block() const { + return average_orders_per_block_; } -inline const std::string& OracleDataBySpecRequest::_internal_id() const { - return id_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::average_orders_per_block() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.average_orders_per_block) + return _internal_average_orders_per_block(); } -inline void OracleDataBySpecRequest::_internal_set_id(const std::string& value) { +inline void Statistics::_internal_set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + average_orders_per_block_ = value; } -inline void OracleDataBySpecRequest::set_id(std::string&& value) { - - id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:api.v1.OracleDataBySpecRequest.id) +inline void Statistics::set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_average_orders_per_block(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.average_orders_per_block) } -inline void OracleDataBySpecRequest::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:api.v1.OracleDataBySpecRequest.id) +// uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; +inline void Statistics::clear_trades_per_second() { + trades_per_second_ = PROTOBUF_ULONGLONG(0); } -inline void OracleDataBySpecRequest::set_id(const char* value, - size_t size) { - - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:api.v1.OracleDataBySpecRequest.id) +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_trades_per_second() const { + return trades_per_second_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::trades_per_second() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.trades_per_second) + return _internal_trades_per_second(); } -inline std::string* OracleDataBySpecRequest::_internal_mutable_id() { +inline void Statistics::_internal_set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + trades_per_second_ = value; } -inline std::string* OracleDataBySpecRequest::release_id() { - // @@protoc_insertion_point(field_release:api.v1.OracleDataBySpecRequest.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Statistics::set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_trades_per_second(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.trades_per_second) } -inline void OracleDataBySpecRequest::set_allocated_id(std::string* id) { - if (id != nullptr) { - - } else { - } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:api.v1.OracleDataBySpecRequest.id) +// uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; +inline void Statistics::clear_orders_per_second() { + orders_per_second_ = PROTOBUF_ULONGLONG(0); } - -// ------------------------------------------------------------------- - -// OracleDataBySpecResponse - -// repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; -inline int OracleDataBySpecResponse::_internal_oracle_data_size() const { - return oracle_data_.size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_orders_per_second() const { + return orders_per_second_; } -inline int OracleDataBySpecResponse::oracle_data_size() const { - return _internal_oracle_data_size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::orders_per_second() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.orders_per_second) + return _internal_orders_per_second(); } -inline ::oracles::v1::OracleData* OracleDataBySpecResponse::mutable_oracle_data(int index) { - // @@protoc_insertion_point(field_mutable:api.v1.OracleDataBySpecResponse.oracle_data) - return oracle_data_.Mutable(index); +inline void Statistics::_internal_set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + orders_per_second_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleData >* -OracleDataBySpecResponse::mutable_oracle_data() { - // @@protoc_insertion_point(field_mutable_list:api.v1.OracleDataBySpecResponse.oracle_data) - return &oracle_data_; +inline void Statistics::set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_orders_per_second(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.orders_per_second) } -inline const ::oracles::v1::OracleData& OracleDataBySpecResponse::_internal_oracle_data(int index) const { - return oracle_data_.Get(index); + +// uint64 total_markets = 13 [json_name = "totalMarkets"]; +inline void Statistics::clear_total_markets() { + total_markets_ = PROTOBUF_ULONGLONG(0); } -inline const ::oracles::v1::OracleData& OracleDataBySpecResponse::oracle_data(int index) const { - // @@protoc_insertion_point(field_get:api.v1.OracleDataBySpecResponse.oracle_data) - return _internal_oracle_data(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_markets() const { + return total_markets_; } -inline ::oracles::v1::OracleData* OracleDataBySpecResponse::_internal_add_oracle_data() { - return oracle_data_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_markets() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_markets) + return _internal_total_markets(); } -inline ::oracles::v1::OracleData* OracleDataBySpecResponse::add_oracle_data() { - // @@protoc_insertion_point(field_add:api.v1.OracleDataBySpecResponse.oracle_data) - return _internal_add_oracle_data(); +inline void Statistics::_internal_set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + total_markets_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::oracles::v1::OracleData >& -OracleDataBySpecResponse::oracle_data() const { - // @@protoc_insertion_point(field_list:api.v1.OracleDataBySpecResponse.oracle_data) - return oracle_data_; +inline void Statistics::set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_markets(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_markets) } -// ------------------------------------------------------------------- - -// LastBlockHeightRequest - -// ------------------------------------------------------------------- - -// LastBlockHeightResponse - -// uint64 height = 1 [json_name = "height"]; -inline void LastBlockHeightResponse::clear_height() { - height_ = PROTOBUF_ULONGLONG(0); +// uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; +inline void Statistics::clear_total_amend_order() { + total_amend_order_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 LastBlockHeightResponse::_internal_height() const { - return height_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_amend_order() const { + return total_amend_order_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 LastBlockHeightResponse::height() const { - // @@protoc_insertion_point(field_get:api.v1.LastBlockHeightResponse.height) - return _internal_height(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_amend_order() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_amend_order) + return _internal_total_amend_order(); } -inline void LastBlockHeightResponse::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Statistics::_internal_set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - height_ = value; -} -inline void LastBlockHeightResponse::set_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:api.v1.LastBlockHeightResponse.height) + total_amend_order_ = value; +} +inline void Statistics::set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_amend_order(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_amend_order) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- +// uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; +inline void Statistics::clear_total_cancel_order() { + total_cancel_order_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_cancel_order() const { + return total_cancel_order_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_cancel_order() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_cancel_order) + return _internal_total_cancel_order(); +} +inline void Statistics::_internal_set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + total_cancel_order_ = value; +} +inline void Statistics::set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_cancel_order(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_cancel_order) +} -// ------------------------------------------------------------------- +// uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; +inline void Statistics::clear_total_create_order() { + total_create_order_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_create_order() const { + return total_create_order_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_create_order() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_create_order) + return _internal_total_create_order(); +} +inline void Statistics::_internal_set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + total_create_order_ = value; +} +inline void Statistics::set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_create_order(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_create_order) +} -// ------------------------------------------------------------------- +// uint64 total_orders = 19 [json_name = "totalOrders"]; +inline void Statistics::clear_total_orders() { + total_orders_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_orders() const { + return total_orders_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_orders() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_orders) + return _internal_total_orders(); +} +inline void Statistics::_internal_set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + total_orders_ = value; +} +inline void Statistics::set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_orders(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_orders) +} -// ------------------------------------------------------------------- +// uint64 total_trades = 20 [json_name = "totalTrades"]; +inline void Statistics::clear_total_trades() { + total_trades_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_trades() const { + return total_trades_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_trades() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.total_trades) + return _internal_total_trades(); +} +inline void Statistics::_internal_set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + total_trades_ = value; +} +inline void Statistics::set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_total_trades(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.total_trades) +} -// ------------------------------------------------------------------- +// uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; +inline void Statistics::clear_order_subscriptions() { + order_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_order_subscriptions() const { + return order_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::order_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.order_subscriptions) + return _internal_order_subscriptions(); +} +inline void Statistics::_internal_set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + order_subscriptions_ = value; +} +inline void Statistics::set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_order_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.order_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; +inline void Statistics::clear_trade_subscriptions() { + trade_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_trade_subscriptions() const { + return trade_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::trade_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.trade_subscriptions) + return _internal_trade_subscriptions(); +} +inline void Statistics::_internal_set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + trade_subscriptions_ = value; +} +inline void Statistics::set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_trade_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.trade_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; +inline void Statistics::clear_candle_subscriptions() { + candle_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_candle_subscriptions() const { + return candle_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::candle_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.candle_subscriptions) + return _internal_candle_subscriptions(); +} +inline void Statistics::_internal_set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + candle_subscriptions_ = value; +} +inline void Statistics::set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_candle_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.candle_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; +inline void Statistics::clear_market_depth_subscriptions() { + market_depth_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_depth_subscriptions() const { + return market_depth_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_depth_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.market_depth_subscriptions) + return _internal_market_depth_subscriptions(); +} +inline void Statistics::_internal_set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + market_depth_subscriptions_ = value; +} +inline void Statistics::set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_market_depth_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.market_depth_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; +inline void Statistics::clear_positions_subscriptions() { + positions_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_positions_subscriptions() const { + return positions_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::positions_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.positions_subscriptions) + return _internal_positions_subscriptions(); +} +inline void Statistics::_internal_set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + positions_subscriptions_ = value; +} +inline void Statistics::set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_positions_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.positions_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; +inline void Statistics::clear_account_subscriptions() { + account_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_account_subscriptions() const { + return account_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::account_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.account_subscriptions) + return _internal_account_subscriptions(); +} +inline void Statistics::_internal_set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + account_subscriptions_ = value; +} +inline void Statistics::set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_account_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.account_subscriptions) +} -// ------------------------------------------------------------------- +// uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; +inline void Statistics::clear_market_data_subscriptions() { + market_data_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_data_subscriptions() const { + return market_data_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_data_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.market_data_subscriptions) + return _internal_market_data_subscriptions(); +} +inline void Statistics::_internal_set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + market_data_subscriptions_ = value; +} +inline void Statistics::set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_market_data_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.market_data_subscriptions) +} -// ------------------------------------------------------------------- +// string app_version_hash = 28 [json_name = "appVersionHash"]; +inline void Statistics::clear_app_version_hash() { + app_version_hash_.ClearToEmpty(); +} +inline const std::string& Statistics::app_version_hash() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.app_version_hash) + return _internal_app_version_hash(); +} +inline void Statistics::set_app_version_hash(const std::string& value) { + _internal_set_app_version_hash(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.app_version_hash) +} +inline std::string* Statistics::mutable_app_version_hash() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.app_version_hash) + return _internal_mutable_app_version_hash(); +} +inline const std::string& Statistics::_internal_app_version_hash() const { + return app_version_hash_.Get(); +} +inline void Statistics::_internal_set_app_version_hash(const std::string& value) { -// ------------------------------------------------------------------- + app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Statistics::set_app_version_hash(std::string&& value) { -// ------------------------------------------------------------------- + app_version_hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.app_version_hash) +} +inline void Statistics::set_app_version_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.app_version_hash) +} +inline void Statistics::set_app_version_hash(const char* value, + size_t size) { -// ------------------------------------------------------------------- + app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.app_version_hash) +} +inline std::string* Statistics::_internal_mutable_app_version_hash() { -// ------------------------------------------------------------------- + return app_version_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Statistics::release_app_version_hash() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.app_version_hash) + return app_version_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Statistics::set_allocated_app_version_hash(std::string* app_version_hash) { + if (app_version_hash != nullptr) { -// ------------------------------------------------------------------- + } else { -// ------------------------------------------------------------------- + } + app_version_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version_hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.app_version_hash) +} -// ------------------------------------------------------------------- +// string app_version = 29 [json_name = "appVersion"]; +inline void Statistics::clear_app_version() { + app_version_.ClearToEmpty(); +} +inline const std::string& Statistics::app_version() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.app_version) + return _internal_app_version(); +} +inline void Statistics::set_app_version(const std::string& value) { + _internal_set_app_version(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.app_version) +} +inline std::string* Statistics::mutable_app_version() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.app_version) + return _internal_mutable_app_version(); +} +inline const std::string& Statistics::_internal_app_version() const { + return app_version_.Get(); +} +inline void Statistics::_internal_set_app_version(const std::string& value) { -// ------------------------------------------------------------------- + app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Statistics::set_app_version(std::string&& value) { -// ------------------------------------------------------------------- + app_version_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.app_version) +} +inline void Statistics::set_app_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.app_version) +} +inline void Statistics::set_app_version(const char* value, + size_t size) { -// ------------------------------------------------------------------- + app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.app_version) +} +inline std::string* Statistics::_internal_mutable_app_version() { -// ------------------------------------------------------------------- + return app_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Statistics::release_app_version() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.app_version) + return app_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Statistics::set_allocated_app_version(std::string* app_version) { + if (app_version != nullptr) { -// ------------------------------------------------------------------- + } else { -// ------------------------------------------------------------------- + } + app_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.app_version) +} -// ------------------------------------------------------------------- +// string chain_version = 30 [json_name = "chainVersion"]; +inline void Statistics::clear_chain_version() { + chain_version_.ClearToEmpty(); +} +inline const std::string& Statistics::chain_version() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.chain_version) + return _internal_chain_version(); +} +inline void Statistics::set_chain_version(const std::string& value) { + _internal_set_chain_version(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.chain_version) +} +inline std::string* Statistics::mutable_chain_version() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.chain_version) + return _internal_mutable_chain_version(); +} +inline const std::string& Statistics::_internal_chain_version() const { + return chain_version_.Get(); +} +inline void Statistics::_internal_set_chain_version(const std::string& value) { -// ------------------------------------------------------------------- + chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Statistics::set_chain_version(std::string&& value) { -// ------------------------------------------------------------------- + chain_version_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.chain_version) +} +inline void Statistics::set_chain_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.chain_version) +} +inline void Statistics::set_chain_version(const char* value, + size_t size) { -// ------------------------------------------------------------------- + chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.chain_version) +} +inline std::string* Statistics::_internal_mutable_chain_version() { -// ------------------------------------------------------------------- + return chain_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Statistics::release_chain_version() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.chain_version) + return chain_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Statistics::set_allocated_chain_version(std::string* chain_version) { + if (chain_version != nullptr) { -// ------------------------------------------------------------------- + } else { -// ------------------------------------------------------------------- + } + chain_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_version, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.chain_version) +} -// ------------------------------------------------------------------- +// uint64 block_duration = 31 [json_name = "blockDuration"]; +inline void Statistics::clear_block_duration() { + block_duration_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_block_duration() const { + return block_duration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::block_duration() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.block_duration) + return _internal_block_duration(); +} +inline void Statistics::_internal_set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + block_duration_ = value; +} +inline void Statistics::set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_block_duration(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.block_duration) +} -// ------------------------------------------------------------------- +// string uptime = 32 [json_name = "uptime"]; +inline void Statistics::clear_uptime() { + uptime_.ClearToEmpty(); +} +inline const std::string& Statistics::uptime() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.uptime) + return _internal_uptime(); +} +inline void Statistics::set_uptime(const std::string& value) { + _internal_set_uptime(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.uptime) +} +inline std::string* Statistics::mutable_uptime() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.uptime) + return _internal_mutable_uptime(); +} +inline const std::string& Statistics::_internal_uptime() const { + return uptime_.Get(); +} +inline void Statistics::_internal_set_uptime(const std::string& value) { -// ------------------------------------------------------------------- + uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Statistics::set_uptime(std::string&& value) { -// ------------------------------------------------------------------- + uptime_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.uptime) +} +inline void Statistics::set_uptime(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.uptime) +} +inline void Statistics::set_uptime(const char* value, + size_t size) { -// ------------------------------------------------------------------- + uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.uptime) +} +inline std::string* Statistics::_internal_mutable_uptime() { -// ------------------------------------------------------------------- + return uptime_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Statistics::release_uptime() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.uptime) + return uptime_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Statistics::set_allocated_uptime(std::string* uptime) { + if (uptime != nullptr) { -// ------------------------------------------------------------------- + } else { -// ------------------------------------------------------------------- + } + uptime_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uptime, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.uptime) +} -// ------------------------------------------------------------------- +// string chain_id = 33 [json_name = "chainId"]; +inline void Statistics::clear_chain_id() { + chain_id_.ClearToEmpty(); +} +inline const std::string& Statistics::chain_id() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.chain_id) + return _internal_chain_id(); +} +inline void Statistics::set_chain_id(const std::string& value) { + _internal_set_chain_id(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.chain_id) +} +inline std::string* Statistics::mutable_chain_id() { + // @@protoc_insertion_point(field_mutable:api.v1.Statistics.chain_id) + return _internal_mutable_chain_id(); +} +inline const std::string& Statistics::_internal_chain_id() const { + return chain_id_.Get(); +} +inline void Statistics::_internal_set_chain_id(const std::string& value) { -// ------------------------------------------------------------------- + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Statistics::set_chain_id(std::string&& value) { -// ------------------------------------------------------------------- + chain_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:api.v1.Statistics.chain_id) +} +inline void Statistics::set_chain_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:api.v1.Statistics.chain_id) +} +inline void Statistics::set_chain_id(const char* value, + size_t size) { -// ------------------------------------------------------------------- + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:api.v1.Statistics.chain_id) +} +inline std::string* Statistics::_internal_mutable_chain_id() { -// ------------------------------------------------------------------- + return chain_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Statistics::release_chain_id() { + // @@protoc_insertion_point(field_release:api.v1.Statistics.chain_id) + return chain_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Statistics::set_allocated_chain_id(std::string* chain_id) { + if (chain_id != nullptr) { -// ------------------------------------------------------------------- + } else { -// ------------------------------------------------------------------- + } + chain_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:api.v1.Statistics.chain_id) +} -// ------------------------------------------------------------------- +// uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; +inline void Statistics::clear_market_depth_updates_subscriptions() { + market_depth_updates_subscriptions_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_depth_updates_subscriptions() const { + return market_depth_updates_subscriptions_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_depth_updates_subscriptions() const { + // @@protoc_insertion_point(field_get:api.v1.Statistics.market_depth_updates_subscriptions) + return _internal_market_depth_updates_subscriptions(); +} +inline void Statistics::_internal_set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { -// ------------------------------------------------------------------- + market_depth_updates_subscriptions_ = value; +} +inline void Statistics::set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_market_depth_updates_subscriptions(value); + // @@protoc_insertion_point(field_set:api.v1.Statistics.market_depth_updates_subscriptions) +} // ------------------------------------------------------------------- -// ------------------------------------------------------------------- +// LastBlockHeightRequest // ------------------------------------------------------------------- -// ------------------------------------------------------------------- +// LastBlockHeightResponse -// ------------------------------------------------------------------- +// uint64 height = 1 [json_name = "height"]; +inline void LastBlockHeightResponse::clear_height() { + height_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 LastBlockHeightResponse::_internal_height() const { + return height_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 LastBlockHeightResponse::height() const { + // @@protoc_insertion_point(field_get:api.v1.LastBlockHeightResponse.height) + return _internal_height(); +} +inline void LastBlockHeightResponse::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- + height_ = value; +} +inline void LastBlockHeightResponse::set_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:api.v1.LastBlockHeightResponse.height) +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -34850,11 +4176,6 @@ inline void LastBlockHeightResponse::set_height(::PROTOBUF_NAMESPACE_ID::uint64 PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::api::v1::SubmitTransactionRequest_Type> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::api::v1::SubmitTransactionRequest_Type>() { - return ::api::v1::SubmitTransactionRequest_Type_descriptor(); -} template <> struct is_proto_enum< ::api::v1::SubmitTransactionV2Request_Type> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::api::v1::SubmitTransactionV2Request_Type>() { diff --git a/grpc/clients/cpp/generated/chain_events.pb.cc b/grpc/clients/cpp/generated/chain_events.pb.cc index b13f58a4..7f83c5e6 100644 --- a/grpc/clients/cpp/generated/chain_events.pb.cc +++ b/grpc/clients/cpp/generated/chain_events.pb.cc @@ -27,6 +27,8 @@ extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID:: extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EthereumAddress_chain_5fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Identifier_chain_5fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RemoveValidator_chain_5fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeDeposited_chain_5fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeRemoved_chain_5fevents_2eproto; namespace vega { class BuiltinAssetDepositDefaultTypeInternal { public: @@ -96,6 +98,18 @@ class ValidatorEventDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ValidatorEvent_default_instance_; +class StakingEventDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StakingEvent_default_instance_; +class StakeDepositedDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StakeDeposited_default_instance_; +class StakeRemovedDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StakeRemoved_default_instance_; } // namespace vega static void InitDefaultsscc_info_AddValidator_chain_5fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -317,6 +331,47 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RemoveValidator_chain_5fe {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_RemoveValidator_chain_5fevents_2eproto}, { &scc_info_Identifier_chain_5fevents_2eproto.base,}}; +static void InitDefaultsscc_info_StakeDeposited_chain_5fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_StakeDeposited_default_instance_; + new (ptr) ::vega::StakeDeposited(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeDeposited_chain_5fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StakeDeposited_chain_5fevents_2eproto}, {}}; + +static void InitDefaultsscc_info_StakeRemoved_chain_5fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_StakeRemoved_default_instance_; + new (ptr) ::vega::StakeRemoved(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeRemoved_chain_5fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StakeRemoved_chain_5fevents_2eproto}, {}}; + +static void InitDefaultsscc_info_StakingEvent_chain_5fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_StakingEvent_default_instance_; + new (ptr) ::vega::StakingEvent(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_StakingEvent_chain_5fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_StakingEvent_chain_5fevents_2eproto}, { + &scc_info_StakeDeposited_chain_5fevents_2eproto.base, + &scc_info_StakeRemoved_chain_5fevents_2eproto.base,}}; + static void InitDefaultsscc_info_ValidatorEvent_chain_5fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -332,7 +387,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ValidatorEvent_chain_5fev &scc_info_AddValidator_chain_5fevents_2eproto.base, &scc_info_RemoveValidator_chain_5fevents_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_chain_5fevents_2eproto[17]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_chain_5fevents_2eproto[20]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_chain_5fevents_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_chain_5fevents_2eproto = nullptr; @@ -470,6 +525,34 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_chain_5fevents_2eproto::offset ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::vega::ValidatorEvent, action_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::StakingEvent, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::vega::StakingEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::StakingEvent, index_), + PROTOBUF_FIELD_OFFSET(::vega::StakingEvent, block_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::vega::StakingEvent, action_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::StakeDeposited, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::StakeDeposited, ethereum_address_), + PROTOBUF_FIELD_OFFSET(::vega::StakeDeposited, vega_public_key_), + PROTOBUF_FIELD_OFFSET(::vega::StakeDeposited, amount_), + PROTOBUF_FIELD_OFFSET(::vega::StakeDeposited, block_time_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::StakeRemoved, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::StakeRemoved, ethereum_address_), + PROTOBUF_FIELD_OFFSET(::vega::StakeRemoved, vega_public_key_), + PROTOBUF_FIELD_OFFSET(::vega::StakeRemoved, amount_), + PROTOBUF_FIELD_OFFSET(::vega::StakeRemoved, block_time_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::BuiltinAssetDeposit)}, @@ -489,6 +572,9 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 112, -1, sizeof(::vega::AddValidator)}, { 118, -1, sizeof(::vega::RemoveValidator)}, { 124, -1, sizeof(::vega::ValidatorEvent)}, + { 133, -1, sizeof(::vega::StakingEvent)}, + { 143, -1, sizeof(::vega::StakeDeposited)}, + { 152, -1, sizeof(::vega::StakeRemoved)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -509,6 +595,9 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::vega::_AddValidator_default_instance_), reinterpret_cast(&::vega::_RemoveValidator_default_instance_), reinterpret_cast(&::vega::_ValidatorEvent_default_instance_), + reinterpret_cast(&::vega::_StakingEvent_default_instance_), + reinterpret_cast(&::vega::_StakeDeposited_default_instance_), + reinterpret_cast(&::vega::_StakeRemoved_default_instance_), }; const char descriptor_table_protodef_chain_5fevents_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -564,13 +653,26 @@ const char descriptor_table_protodef_chain_5fevents_2eproto[] PROTOBUF_SECTION_V "IdentifierR\002id\"\212\001\n\016ValidatorEvent\022\033\n\tsou" "rce_id\030\001 \001(\tR\010sourceId\022\'\n\003add\030\351\007 \001(\0132\022.v" "ega.AddValidatorH\000R\003add\022(\n\002rm\030\352\007 \001(\0132\025.v" - "ega.RemoveValidatorH\000R\002rmB\010\n\006actionB7\n\024i" - "o.vegaprotocol.vegaZ\037code.vegaprotocol.i" - "o/vega/protob\006proto3" + "ega.RemoveValidatorH\000R\002rmB\010\n\006action\"\302\001\n\014" + "StakingEvent\022\024\n\005index\030\001 \001(\004R\005index\022\024\n\005bl" + "ock\030\002 \001(\004R\005block\022@\n\017stake_deposited\030\351\007 \001" + "(\0132\024.vega.StakeDepositedH\000R\016stakeDeposit" + "ed\022:\n\rstake_removed\030\352\007 \001(\0132\022.vega.StakeR" + "emovedH\000R\014stakeRemovedB\010\n\006action\"\232\001\n\016Sta" + "keDeposited\022)\n\020ethereum_address\030\001 \001(\tR\017e" + "thereumAddress\022&\n\017vega_public_key\030\002 \001(\tR" + "\rvegaPublicKey\022\026\n\006amount\030\003 \001(\tR\006amount\022\035" + "\n\nblock_time\030\004 \001(\003R\tblockTime\"\230\001\n\014StakeR" + "emoved\022)\n\020ethereum_address\030\001 \001(\tR\017ethere" + "umAddress\022&\n\017vega_public_key\030\002 \001(\tR\rvega" + "PublicKey\022\026\n\006amount\030\003 \001(\tR\006amount\022\035\n\nblo" + "ck_time\030\004 \001(\003R\tblockTimeB7\n\024io.vegaproto" + "col.vegaZ\037code.vegaprotocol.io/vega/prot" + "ob\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_chain_5fevents_2eproto_deps[1] = { }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_chain_5fevents_2eproto_sccs[17] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_chain_5fevents_2eproto_sccs[20] = { &scc_info_AddValidator_chain_5fevents_2eproto.base, &scc_info_BTCDeposit_chain_5fevents_2eproto.base, &scc_info_BTCEvent_chain_5fevents_2eproto.base, @@ -587,14 +689,17 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_cha &scc_info_EthereumAddress_chain_5fevents_2eproto.base, &scc_info_Identifier_chain_5fevents_2eproto.base, &scc_info_RemoveValidator_chain_5fevents_2eproto.base, + &scc_info_StakeDeposited_chain_5fevents_2eproto.base, + &scc_info_StakeRemoved_chain_5fevents_2eproto.base, + &scc_info_StakingEvent_chain_5fevents_2eproto.base, &scc_info_ValidatorEvent_chain_5fevents_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_chain_5fevents_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_chain_5fevents_2eproto = { - false, false, descriptor_table_protodef_chain_5fevents_2eproto, "chain_events.proto", 2180, - &descriptor_table_chain_5fevents_2eproto_once, descriptor_table_chain_5fevents_2eproto_sccs, descriptor_table_chain_5fevents_2eproto_deps, 17, 0, + false, false, descriptor_table_protodef_chain_5fevents_2eproto, "chain_events.proto", 2689, + &descriptor_table_chain_5fevents_2eproto_once, descriptor_table_chain_5fevents_2eproto_sccs, descriptor_table_chain_5fevents_2eproto_deps, 20, 0, schemas, file_default_instances, TableStruct_chain_5fevents_2eproto::offsets, - file_level_metadata_chain_5fevents_2eproto, 17, file_level_enum_descriptors_chain_5fevents_2eproto, file_level_service_descriptors_chain_5fevents_2eproto, + file_level_metadata_chain_5fevents_2eproto, 20, file_level_enum_descriptors_chain_5fevents_2eproto, file_level_service_descriptors_chain_5fevents_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -5435,59 +5540,1062 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ValidatorEvent::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace vega -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetDeposit* Arena::CreateMaybeMessage< ::vega::BuiltinAssetDeposit >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BuiltinAssetDeposit >(arena); +// =================================================================== + +class StakingEvent::_Internal { + public: + static const ::vega::StakeDeposited& stake_deposited(const StakingEvent* msg); + static const ::vega::StakeRemoved& stake_removed(const StakingEvent* msg); +}; + +const ::vega::StakeDeposited& +StakingEvent::_Internal::stake_deposited(const StakingEvent* msg) { + return *msg->action_.stake_deposited_; } -template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetWithdrawal* Arena::CreateMaybeMessage< ::vega::BuiltinAssetWithdrawal >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BuiltinAssetWithdrawal >(arena); +const ::vega::StakeRemoved& +StakingEvent::_Internal::stake_removed(const StakingEvent* msg) { + return *msg->action_.stake_removed_; } -template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetEvent* Arena::CreateMaybeMessage< ::vega::BuiltinAssetEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BuiltinAssetEvent >(arena); +void StakingEvent::set_allocated_stake_deposited(::vega::StakeDeposited* stake_deposited) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_action(); + if (stake_deposited) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stake_deposited); + if (message_arena != submessage_arena) { + stake_deposited = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stake_deposited, submessage_arena); + } + set_has_stake_deposited(); + action_.stake_deposited_ = stake_deposited; + } + // @@protoc_insertion_point(field_set_allocated:vega.StakingEvent.stake_deposited) } -template<> PROTOBUF_NOINLINE ::vega::ERC20AssetList* Arena::CreateMaybeMessage< ::vega::ERC20AssetList >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ERC20AssetList >(arena); +void StakingEvent::set_allocated_stake_removed(::vega::StakeRemoved* stake_removed) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_action(); + if (stake_removed) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stake_removed); + if (message_arena != submessage_arena) { + stake_removed = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stake_removed, submessage_arena); + } + set_has_stake_removed(); + action_.stake_removed_ = stake_removed; + } + // @@protoc_insertion_point(field_set_allocated:vega.StakingEvent.stake_removed) } -template<> PROTOBUF_NOINLINE ::vega::ERC20AssetDelist* Arena::CreateMaybeMessage< ::vega::ERC20AssetDelist >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ERC20AssetDelist >(arena); +StakingEvent::StakingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.StakingEvent) } -template<> PROTOBUF_NOINLINE ::vega::ERC20Deposit* Arena::CreateMaybeMessage< ::vega::ERC20Deposit >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ERC20Deposit >(arena); +StakingEvent::StakingEvent(const StakingEvent& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&index_, &from.index_, + static_cast(reinterpret_cast(&block_) - + reinterpret_cast(&index_)) + sizeof(block_)); + clear_has_action(); + switch (from.action_case()) { + case kStakeDeposited: { + _internal_mutable_stake_deposited()->::vega::StakeDeposited::MergeFrom(from._internal_stake_deposited()); + break; + } + case kStakeRemoved: { + _internal_mutable_stake_removed()->::vega::StakeRemoved::MergeFrom(from._internal_stake_removed()); + break; + } + case ACTION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:vega.StakingEvent) } -template<> PROTOBUF_NOINLINE ::vega::ERC20Withdrawal* Arena::CreateMaybeMessage< ::vega::ERC20Withdrawal >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ERC20Withdrawal >(arena); + +void StakingEvent::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StakingEvent_chain_5fevents_2eproto.base); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&index_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&block_) - + reinterpret_cast(&index_)) + sizeof(block_)); + clear_has_action(); } -template<> PROTOBUF_NOINLINE ::vega::ERC20Event* Arena::CreateMaybeMessage< ::vega::ERC20Event >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ERC20Event >(arena); + +StakingEvent::~StakingEvent() { + // @@protoc_insertion_point(destructor:vega.StakingEvent) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::vega::BTCDeposit* Arena::CreateMaybeMessage< ::vega::BTCDeposit >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BTCDeposit >(arena); + +void StakingEvent::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (has_action()) { + clear_action(); + } } -template<> PROTOBUF_NOINLINE ::vega::BTCWithdrawal* Arena::CreateMaybeMessage< ::vega::BTCWithdrawal >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BTCWithdrawal >(arena); + +void StakingEvent::ArenaDtor(void* object) { + StakingEvent* _this = reinterpret_cast< StakingEvent* >(object); + (void)_this; } -template<> PROTOBUF_NOINLINE ::vega::BTCEvent* Arena::CreateMaybeMessage< ::vega::BTCEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BTCEvent >(arena); +void StakingEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -template<> PROTOBUF_NOINLINE ::vega::EthereumAddress* Arena::CreateMaybeMessage< ::vega::EthereumAddress >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::EthereumAddress >(arena); +void StakingEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::vega::BitcoinAddress* Arena::CreateMaybeMessage< ::vega::BitcoinAddress >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::BitcoinAddress >(arena); +const StakingEvent& StakingEvent::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StakingEvent_chain_5fevents_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::vega::Identifier* Arena::CreateMaybeMessage< ::vega::Identifier >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::Identifier >(arena); + + +void StakingEvent::clear_action() { +// @@protoc_insertion_point(one_of_clear_start:vega.StakingEvent) + switch (action_case()) { + case kStakeDeposited: { + if (GetArena() == nullptr) { + delete action_.stake_deposited_; + } + break; + } + case kStakeRemoved: { + if (GetArena() == nullptr) { + delete action_.stake_removed_; + } + break; + } + case ACTION_NOT_SET: { + break; + } + } + _oneof_case_[0] = ACTION_NOT_SET; } -template<> PROTOBUF_NOINLINE ::vega::AddValidator* Arena::CreateMaybeMessage< ::vega::AddValidator >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::AddValidator >(arena); + + +void StakingEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.StakingEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&index_, 0, static_cast( + reinterpret_cast(&block_) - + reinterpret_cast(&index_)) + sizeof(block_)); + clear_action(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::vega::RemoveValidator* Arena::CreateMaybeMessage< ::vega::RemoveValidator >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::RemoveValidator >(arena); + +const char* StakingEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 index = 1 [json_name = "index"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 block = 2 [json_name = "block"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + case 1001: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_stake_deposited(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + case 1002: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_stake_removed(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -template<> PROTOBUF_NOINLINE ::vega::ValidatorEvent* Arena::CreateMaybeMessage< ::vega::ValidatorEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::ValidatorEvent >(arena); + +::PROTOBUF_NAMESPACE_ID::uint8* StakingEvent::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.StakingEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 index = 1 [json_name = "index"]; + if (this->index() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_index(), target); + } + + // uint64 block = 2 [json_name = "block"]; + if (this->block() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_block(), target); + } + + // .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + if (_internal_has_stake_deposited()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1001, _Internal::stake_deposited(this), target, stream); + } + + // .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + if (_internal_has_stake_removed()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1002, _Internal::stake_removed(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.StakingEvent) + return target; +} + +size_t StakingEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.StakingEvent) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 index = 1 [json_name = "index"]; + if (this->index() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_index()); + } + + // uint64 block = 2 [json_name = "block"]; + if (this->block() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_block()); + } + + switch (action_case()) { + // .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + case kStakeDeposited: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *action_.stake_deposited_); + break; + } + // .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + case kStakeRemoved: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *action_.stake_removed_); + break; + } + case ACTION_NOT_SET: { + break; + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StakingEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.StakingEvent) + GOOGLE_DCHECK_NE(&from, this); + const StakingEvent* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.StakingEvent) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.StakingEvent) + MergeFrom(*source); + } +} + +void StakingEvent::MergeFrom(const StakingEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.StakingEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.index() != 0) { + _internal_set_index(from._internal_index()); + } + if (from.block() != 0) { + _internal_set_block(from._internal_block()); + } + switch (from.action_case()) { + case kStakeDeposited: { + _internal_mutable_stake_deposited()->::vega::StakeDeposited::MergeFrom(from._internal_stake_deposited()); + break; + } + case kStakeRemoved: { + _internal_mutable_stake_removed()->::vega::StakeRemoved::MergeFrom(from._internal_stake_removed()); + break; + } + case ACTION_NOT_SET: { + break; + } + } +} + +void StakingEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.StakingEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StakingEvent::CopyFrom(const StakingEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.StakingEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StakingEvent::IsInitialized() const { + return true; +} + +void StakingEvent::InternalSwap(StakingEvent* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StakingEvent, block_) + + sizeof(StakingEvent::block_) + - PROTOBUF_FIELD_OFFSET(StakingEvent, index_)>( + reinterpret_cast(&index_), + reinterpret_cast(&other->index_)); + swap(action_, other->action_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StakingEvent::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class StakeDeposited::_Internal { + public: +}; + +StakeDeposited::StakeDeposited(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.StakeDeposited) +} +StakeDeposited::StakeDeposited(const StakeDeposited& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ethereum_address().empty()) { + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ethereum_address(), + GetArena()); + } + vega_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_vega_public_key().empty()) { + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_public_key(), + GetArena()); + } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + block_time_ = from.block_time_; + // @@protoc_insertion_point(copy_constructor:vega.StakeDeposited) +} + +void StakeDeposited::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StakeDeposited_chain_5fevents_2eproto.base); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_time_ = PROTOBUF_LONGLONG(0); +} + +StakeDeposited::~StakeDeposited() { + // @@protoc_insertion_point(destructor:vega.StakeDeposited) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void StakeDeposited::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + ethereum_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void StakeDeposited::ArenaDtor(void* object) { + StakeDeposited* _this = reinterpret_cast< StakeDeposited* >(object); + (void)_this; +} +void StakeDeposited::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StakeDeposited::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StakeDeposited& StakeDeposited::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StakeDeposited_chain_5fevents_2eproto.base); + return *internal_default_instance(); +} + + +void StakeDeposited::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.StakeDeposited) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ethereum_address_.ClearToEmpty(); + vega_public_key_.ClearToEmpty(); + amount_.ClearToEmpty(); + block_time_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StakeDeposited::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_ethereum_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeDeposited.ethereum_address")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_vega_public_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeDeposited.vega_public_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 3 [json_name = "amount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeDeposited.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 block_time = 4 [json_name = "blockTime"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + block_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StakeDeposited::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.StakeDeposited) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ethereum_address().data(), static_cast(this->_internal_ethereum_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeDeposited.ethereum_address"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_ethereum_address(), target); + } + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + if (this->vega_public_key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vega_public_key().data(), static_cast(this->_internal_vega_public_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeDeposited.vega_public_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_vega_public_key(), target); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeDeposited.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); + } + + // int64 block_time = 4 [json_name = "blockTime"]; + if (this->block_time() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_block_time(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.StakeDeposited) + return target; +} + +size_t StakeDeposited::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.StakeDeposited) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ethereum_address()); + } + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + if (this->vega_public_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vega_public_key()); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // int64 block_time = 4 [json_name = "blockTime"]; + if (this->block_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_block_time()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StakeDeposited::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.StakeDeposited) + GOOGLE_DCHECK_NE(&from, this); + const StakeDeposited* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.StakeDeposited) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.StakeDeposited) + MergeFrom(*source); + } +} + +void StakeDeposited::MergeFrom(const StakeDeposited& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.StakeDeposited) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.ethereum_address().size() > 0) { + _internal_set_ethereum_address(from._internal_ethereum_address()); + } + if (from.vega_public_key().size() > 0) { + _internal_set_vega_public_key(from._internal_vega_public_key()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.block_time() != 0) { + _internal_set_block_time(from._internal_block_time()); + } +} + +void StakeDeposited::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.StakeDeposited) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StakeDeposited::CopyFrom(const StakeDeposited& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.StakeDeposited) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StakeDeposited::IsInitialized() const { + return true; +} + +void StakeDeposited::InternalSwap(StakeDeposited* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ethereum_address_.Swap(&other->ethereum_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vega_public_key_.Swap(&other->vega_public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(block_time_, other->block_time_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StakeDeposited::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class StakeRemoved::_Internal { + public: +}; + +StakeRemoved::StakeRemoved(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.StakeRemoved) +} +StakeRemoved::StakeRemoved(const StakeRemoved& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ethereum_address().empty()) { + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ethereum_address(), + GetArena()); + } + vega_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_vega_public_key().empty()) { + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_public_key(), + GetArena()); + } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + block_time_ = from.block_time_; + // @@protoc_insertion_point(copy_constructor:vega.StakeRemoved) +} + +void StakeRemoved::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StakeRemoved_chain_5fevents_2eproto.base); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_time_ = PROTOBUF_LONGLONG(0); +} + +StakeRemoved::~StakeRemoved() { + // @@protoc_insertion_point(destructor:vega.StakeRemoved) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void StakeRemoved::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + ethereum_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void StakeRemoved::ArenaDtor(void* object) { + StakeRemoved* _this = reinterpret_cast< StakeRemoved* >(object); + (void)_this; +} +void StakeRemoved::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StakeRemoved::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StakeRemoved& StakeRemoved::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StakeRemoved_chain_5fevents_2eproto.base); + return *internal_default_instance(); +} + + +void StakeRemoved::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.StakeRemoved) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ethereum_address_.ClearToEmpty(); + vega_public_key_.ClearToEmpty(); + amount_.ClearToEmpty(); + block_time_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StakeRemoved::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_ethereum_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeRemoved.ethereum_address")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_vega_public_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeRemoved.vega_public_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 3 [json_name = "amount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.StakeRemoved.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 block_time = 4 [json_name = "blockTime"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + block_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StakeRemoved::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.StakeRemoved) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ethereum_address().data(), static_cast(this->_internal_ethereum_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeRemoved.ethereum_address"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_ethereum_address(), target); + } + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + if (this->vega_public_key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vega_public_key().data(), static_cast(this->_internal_vega_public_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeRemoved.vega_public_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_vega_public_key(), target); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.StakeRemoved.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); + } + + // int64 block_time = 4 [json_name = "blockTime"]; + if (this->block_time() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_block_time(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.StakeRemoved) + return target; +} + +size_t StakeRemoved::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.StakeRemoved) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ethereum_address()); + } + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + if (this->vega_public_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vega_public_key()); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // int64 block_time = 4 [json_name = "blockTime"]; + if (this->block_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_block_time()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StakeRemoved::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.StakeRemoved) + GOOGLE_DCHECK_NE(&from, this); + const StakeRemoved* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.StakeRemoved) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.StakeRemoved) + MergeFrom(*source); + } +} + +void StakeRemoved::MergeFrom(const StakeRemoved& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.StakeRemoved) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.ethereum_address().size() > 0) { + _internal_set_ethereum_address(from._internal_ethereum_address()); + } + if (from.vega_public_key().size() > 0) { + _internal_set_vega_public_key(from._internal_vega_public_key()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.block_time() != 0) { + _internal_set_block_time(from._internal_block_time()); + } +} + +void StakeRemoved::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.StakeRemoved) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StakeRemoved::CopyFrom(const StakeRemoved& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.StakeRemoved) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StakeRemoved::IsInitialized() const { + return true; +} + +void StakeRemoved::InternalSwap(StakeRemoved* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ethereum_address_.Swap(&other->ethereum_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vega_public_key_.Swap(&other->vega_public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(block_time_, other->block_time_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StakeRemoved::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetDeposit* Arena::CreateMaybeMessage< ::vega::BuiltinAssetDeposit >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BuiltinAssetDeposit >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetWithdrawal* Arena::CreateMaybeMessage< ::vega::BuiltinAssetWithdrawal >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BuiltinAssetWithdrawal >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BuiltinAssetEvent* Arena::CreateMaybeMessage< ::vega::BuiltinAssetEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BuiltinAssetEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ERC20AssetList* Arena::CreateMaybeMessage< ::vega::ERC20AssetList >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ERC20AssetList >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ERC20AssetDelist* Arena::CreateMaybeMessage< ::vega::ERC20AssetDelist >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ERC20AssetDelist >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ERC20Deposit* Arena::CreateMaybeMessage< ::vega::ERC20Deposit >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ERC20Deposit >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ERC20Withdrawal* Arena::CreateMaybeMessage< ::vega::ERC20Withdrawal >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ERC20Withdrawal >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ERC20Event* Arena::CreateMaybeMessage< ::vega::ERC20Event >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ERC20Event >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BTCDeposit* Arena::CreateMaybeMessage< ::vega::BTCDeposit >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BTCDeposit >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BTCWithdrawal* Arena::CreateMaybeMessage< ::vega::BTCWithdrawal >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BTCWithdrawal >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BTCEvent* Arena::CreateMaybeMessage< ::vega::BTCEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BTCEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::EthereumAddress* Arena::CreateMaybeMessage< ::vega::EthereumAddress >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::EthereumAddress >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::BitcoinAddress* Arena::CreateMaybeMessage< ::vega::BitcoinAddress >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::BitcoinAddress >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::Identifier* Arena::CreateMaybeMessage< ::vega::Identifier >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::Identifier >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::AddValidator* Arena::CreateMaybeMessage< ::vega::AddValidator >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::AddValidator >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::RemoveValidator* Arena::CreateMaybeMessage< ::vega::RemoveValidator >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::RemoveValidator >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::ValidatorEvent* Arena::CreateMaybeMessage< ::vega::ValidatorEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::ValidatorEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::StakingEvent* Arena::CreateMaybeMessage< ::vega::StakingEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::StakingEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::StakeDeposited* Arena::CreateMaybeMessage< ::vega::StakeDeposited >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::StakeDeposited >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::StakeRemoved* Arena::CreateMaybeMessage< ::vega::StakeRemoved >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::StakeRemoved >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/grpc/clients/cpp/generated/chain_events.pb.h b/grpc/clients/cpp/generated/chain_events.pb.h index 8b90b961..c321ec83 100644 --- a/grpc/clients/cpp/generated/chain_events.pb.h +++ b/grpc/clients/cpp/generated/chain_events.pb.h @@ -46,7 +46,7 @@ struct TableStruct_chain_5fevents_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[17] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[20] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -102,6 +102,15 @@ extern IdentifierDefaultTypeInternal _Identifier_default_instance_; class RemoveValidator; class RemoveValidatorDefaultTypeInternal; extern RemoveValidatorDefaultTypeInternal _RemoveValidator_default_instance_; +class StakeDeposited; +class StakeDepositedDefaultTypeInternal; +extern StakeDepositedDefaultTypeInternal _StakeDeposited_default_instance_; +class StakeRemoved; +class StakeRemovedDefaultTypeInternal; +extern StakeRemovedDefaultTypeInternal _StakeRemoved_default_instance_; +class StakingEvent; +class StakingEventDefaultTypeInternal; +extern StakingEventDefaultTypeInternal _StakingEvent_default_instance_; class ValidatorEvent; class ValidatorEventDefaultTypeInternal; extern ValidatorEventDefaultTypeInternal _ValidatorEvent_default_instance_; @@ -123,6 +132,9 @@ template<> ::vega::ERC20Withdrawal* Arena::CreateMaybeMessage<::vega::ERC20Withd template<> ::vega::EthereumAddress* Arena::CreateMaybeMessage<::vega::EthereumAddress>(Arena*); template<> ::vega::Identifier* Arena::CreateMaybeMessage<::vega::Identifier>(Arena*); template<> ::vega::RemoveValidator* Arena::CreateMaybeMessage<::vega::RemoveValidator>(Arena*); +template<> ::vega::StakeDeposited* Arena::CreateMaybeMessage<::vega::StakeDeposited>(Arena*); +template<> ::vega::StakeRemoved* Arena::CreateMaybeMessage<::vega::StakeRemoved>(Arena*); +template<> ::vega::StakingEvent* Arena::CreateMaybeMessage<::vega::StakingEvent>(Arena*); template<> ::vega::ValidatorEvent* Arena::CreateMaybeMessage<::vega::ValidatorEvent>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace vega { @@ -3106,68 +3118,1234 @@ class ValidatorEvent PROTOBUF_FINAL : friend struct ::TableStruct_chain_5fevents_2eproto; }; +// ------------------------------------------------------------------- + +class StakingEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.StakingEvent) */ { + public: + inline StakingEvent() : StakingEvent(nullptr) {} + virtual ~StakingEvent(); + + StakingEvent(const StakingEvent& from); + StakingEvent(StakingEvent&& from) noexcept + : StakingEvent() { + *this = ::std::move(from); + } + + inline StakingEvent& operator=(const StakingEvent& from) { + CopyFrom(from); + return *this; + } + inline StakingEvent& operator=(StakingEvent&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const StakingEvent& default_instance(); + + enum ActionCase { + kStakeDeposited = 1001, + kStakeRemoved = 1002, + ACTION_NOT_SET = 0, + }; + + static inline const StakingEvent* internal_default_instance() { + return reinterpret_cast( + &_StakingEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(StakingEvent& a, StakingEvent& b) { + a.Swap(&b); + } + inline void Swap(StakingEvent* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StakingEvent* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StakingEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + StakingEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StakingEvent& from); + void MergeFrom(const StakingEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StakingEvent* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.StakingEvent"; + } + protected: + explicit StakingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_chain_5fevents_2eproto); + return ::descriptor_table_chain_5fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexFieldNumber = 1, + kBlockFieldNumber = 2, + kStakeDepositedFieldNumber = 1001, + kStakeRemovedFieldNumber = 1002, + }; + // uint64 index = 1 [json_name = "index"]; + void clear_index(); + ::PROTOBUF_NAMESPACE_ID::uint64 index() const; + void set_index(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_index() const; + void _internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 block = 2 [json_name = "block"]; + void clear_block(); + ::PROTOBUF_NAMESPACE_ID::uint64 block() const; + void set_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block() const; + void _internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + bool has_stake_deposited() const; + private: + bool _internal_has_stake_deposited() const; + public: + void clear_stake_deposited(); + const ::vega::StakeDeposited& stake_deposited() const; + ::vega::StakeDeposited* release_stake_deposited(); + ::vega::StakeDeposited* mutable_stake_deposited(); + void set_allocated_stake_deposited(::vega::StakeDeposited* stake_deposited); + private: + const ::vega::StakeDeposited& _internal_stake_deposited() const; + ::vega::StakeDeposited* _internal_mutable_stake_deposited(); + public: + void unsafe_arena_set_allocated_stake_deposited( + ::vega::StakeDeposited* stake_deposited); + ::vega::StakeDeposited* unsafe_arena_release_stake_deposited(); + + // .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + bool has_stake_removed() const; + private: + bool _internal_has_stake_removed() const; + public: + void clear_stake_removed(); + const ::vega::StakeRemoved& stake_removed() const; + ::vega::StakeRemoved* release_stake_removed(); + ::vega::StakeRemoved* mutable_stake_removed(); + void set_allocated_stake_removed(::vega::StakeRemoved* stake_removed); + private: + const ::vega::StakeRemoved& _internal_stake_removed() const; + ::vega::StakeRemoved* _internal_mutable_stake_removed(); + public: + void unsafe_arena_set_allocated_stake_removed( + ::vega::StakeRemoved* stake_removed); + ::vega::StakeRemoved* unsafe_arena_release_stake_removed(); + + void clear_action(); + ActionCase action_case() const; + // @@protoc_insertion_point(class_scope:vega.StakingEvent) + private: + class _Internal; + void set_has_stake_deposited(); + void set_has_stake_removed(); + + inline bool has_action() const; + inline void clear_has_action(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 index_; + ::PROTOBUF_NAMESPACE_ID::uint64 block_; + union ActionUnion { + ActionUnion() {} + ::vega::StakeDeposited* stake_deposited_; + ::vega::StakeRemoved* stake_removed_; + } action_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_chain_5fevents_2eproto; +}; +// ------------------------------------------------------------------- + +class StakeDeposited PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.StakeDeposited) */ { + public: + inline StakeDeposited() : StakeDeposited(nullptr) {} + virtual ~StakeDeposited(); + + StakeDeposited(const StakeDeposited& from); + StakeDeposited(StakeDeposited&& from) noexcept + : StakeDeposited() { + *this = ::std::move(from); + } + + inline StakeDeposited& operator=(const StakeDeposited& from) { + CopyFrom(from); + return *this; + } + inline StakeDeposited& operator=(StakeDeposited&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const StakeDeposited& default_instance(); + + static inline const StakeDeposited* internal_default_instance() { + return reinterpret_cast( + &_StakeDeposited_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(StakeDeposited& a, StakeDeposited& b) { + a.Swap(&b); + } + inline void Swap(StakeDeposited* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StakeDeposited* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StakeDeposited* New() const final { + return CreateMaybeMessage(nullptr); + } + + StakeDeposited* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StakeDeposited& from); + void MergeFrom(const StakeDeposited& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StakeDeposited* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.StakeDeposited"; + } + protected: + explicit StakeDeposited(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_chain_5fevents_2eproto); + return ::descriptor_table_chain_5fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kEthereumAddressFieldNumber = 1, + kVegaPublicKeyFieldNumber = 2, + kAmountFieldNumber = 3, + kBlockTimeFieldNumber = 4, + }; + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + void clear_ethereum_address(); + const std::string& ethereum_address() const; + void set_ethereum_address(const std::string& value); + void set_ethereum_address(std::string&& value); + void set_ethereum_address(const char* value); + void set_ethereum_address(const char* value, size_t size); + std::string* mutable_ethereum_address(); + std::string* release_ethereum_address(); + void set_allocated_ethereum_address(std::string* ethereum_address); + private: + const std::string& _internal_ethereum_address() const; + void _internal_set_ethereum_address(const std::string& value); + std::string* _internal_mutable_ethereum_address(); + public: + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + void clear_vega_public_key(); + const std::string& vega_public_key() const; + void set_vega_public_key(const std::string& value); + void set_vega_public_key(std::string&& value); + void set_vega_public_key(const char* value); + void set_vega_public_key(const char* value, size_t size); + std::string* mutable_vega_public_key(); + std::string* release_vega_public_key(); + void set_allocated_vega_public_key(std::string* vega_public_key); + private: + const std::string& _internal_vega_public_key() const; + void _internal_set_vega_public_key(const std::string& value); + std::string* _internal_mutable_vega_public_key(); + public: + + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + + // int64 block_time = 4 [json_name = "blockTime"]; + void clear_block_time(); + ::PROTOBUF_NAMESPACE_ID::int64 block_time() const; + void set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_block_time() const; + void _internal_set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.StakeDeposited) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ethereum_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_public_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::int64 block_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_chain_5fevents_2eproto; +}; +// ------------------------------------------------------------------- + +class StakeRemoved PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.StakeRemoved) */ { + public: + inline StakeRemoved() : StakeRemoved(nullptr) {} + virtual ~StakeRemoved(); + + StakeRemoved(const StakeRemoved& from); + StakeRemoved(StakeRemoved&& from) noexcept + : StakeRemoved() { + *this = ::std::move(from); + } + + inline StakeRemoved& operator=(const StakeRemoved& from) { + CopyFrom(from); + return *this; + } + inline StakeRemoved& operator=(StakeRemoved&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const StakeRemoved& default_instance(); + + static inline const StakeRemoved* internal_default_instance() { + return reinterpret_cast( + &_StakeRemoved_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(StakeRemoved& a, StakeRemoved& b) { + a.Swap(&b); + } + inline void Swap(StakeRemoved* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StakeRemoved* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StakeRemoved* New() const final { + return CreateMaybeMessage(nullptr); + } + + StakeRemoved* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StakeRemoved& from); + void MergeFrom(const StakeRemoved& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StakeRemoved* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.StakeRemoved"; + } + protected: + explicit StakeRemoved(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_chain_5fevents_2eproto); + return ::descriptor_table_chain_5fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kEthereumAddressFieldNumber = 1, + kVegaPublicKeyFieldNumber = 2, + kAmountFieldNumber = 3, + kBlockTimeFieldNumber = 4, + }; + // string ethereum_address = 1 [json_name = "ethereumAddress"]; + void clear_ethereum_address(); + const std::string& ethereum_address() const; + void set_ethereum_address(const std::string& value); + void set_ethereum_address(std::string&& value); + void set_ethereum_address(const char* value); + void set_ethereum_address(const char* value, size_t size); + std::string* mutable_ethereum_address(); + std::string* release_ethereum_address(); + void set_allocated_ethereum_address(std::string* ethereum_address); + private: + const std::string& _internal_ethereum_address() const; + void _internal_set_ethereum_address(const std::string& value); + std::string* _internal_mutable_ethereum_address(); + public: + + // string vega_public_key = 2 [json_name = "vegaPublicKey"]; + void clear_vega_public_key(); + const std::string& vega_public_key() const; + void set_vega_public_key(const std::string& value); + void set_vega_public_key(std::string&& value); + void set_vega_public_key(const char* value); + void set_vega_public_key(const char* value, size_t size); + std::string* mutable_vega_public_key(); + std::string* release_vega_public_key(); + void set_allocated_vega_public_key(std::string* vega_public_key); + private: + const std::string& _internal_vega_public_key() const; + void _internal_set_vega_public_key(const std::string& value); + std::string* _internal_mutable_vega_public_key(); + public: + + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + + // int64 block_time = 4 [json_name = "blockTime"]; + void clear_block_time(); + ::PROTOBUF_NAMESPACE_ID::int64 block_time() const; + void set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_block_time() const; + void _internal_set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.StakeRemoved) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ethereum_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_public_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::int64 block_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_chain_5fevents_2eproto; +}; // =================================================================== -// =================================================================== +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// BuiltinAssetDeposit + +// string vega_asset_id = 1 [json_name = "vegaAssetId"]; +inline void BuiltinAssetDeposit::clear_vega_asset_id() { + vega_asset_id_.ClearToEmpty(); +} +inline const std::string& BuiltinAssetDeposit::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.vega_asset_id) + return _internal_vega_asset_id(); +} +inline void BuiltinAssetDeposit::set_vega_asset_id(const std::string& value) { + _internal_set_vega_asset_id(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.vega_asset_id) +} +inline std::string* BuiltinAssetDeposit::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetDeposit.vega_asset_id) + return _internal_mutable_vega_asset_id(); +} +inline const std::string& BuiltinAssetDeposit::_internal_vega_asset_id() const { + return vega_asset_id_.Get(); +} +inline void BuiltinAssetDeposit::_internal_set_vega_asset_id(const std::string& value) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void BuiltinAssetDeposit::set_vega_asset_id(std::string&& value) { + + vega_asset_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetDeposit.vega_asset_id) +} +inline void BuiltinAssetDeposit::set_vega_asset_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetDeposit.vega_asset_id) +} +inline void BuiltinAssetDeposit::set_vega_asset_id(const char* value, + size_t size) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetDeposit.vega_asset_id) +} +inline std::string* BuiltinAssetDeposit::_internal_mutable_vega_asset_id() { + + return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* BuiltinAssetDeposit::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetDeposit.vega_asset_id) + return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void BuiltinAssetDeposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { + if (vega_asset_id != nullptr) { + + } else { + + } + vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetDeposit.vega_asset_id) +} + +// string party_id = 2 [json_name = "partyId"]; +inline void BuiltinAssetDeposit::clear_party_id() { + party_id_.ClearToEmpty(); +} +inline const std::string& BuiltinAssetDeposit::party_id() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.party_id) + return _internal_party_id(); +} +inline void BuiltinAssetDeposit::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.party_id) +} +inline std::string* BuiltinAssetDeposit::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetDeposit.party_id) + return _internal_mutable_party_id(); +} +inline const std::string& BuiltinAssetDeposit::_internal_party_id() const { + return party_id_.Get(); +} +inline void BuiltinAssetDeposit::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void BuiltinAssetDeposit::set_party_id(std::string&& value) { + + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetDeposit.party_id) +} +inline void BuiltinAssetDeposit::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetDeposit.party_id) +} +inline void BuiltinAssetDeposit::set_party_id(const char* value, + size_t size) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetDeposit.party_id) +} +inline std::string* BuiltinAssetDeposit::_internal_mutable_party_id() { + + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* BuiltinAssetDeposit::release_party_id() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetDeposit.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void BuiltinAssetDeposit::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { + + } else { + + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetDeposit.party_id) +} + +// uint64 amount = 3 [json_name = "amount"]; +inline void BuiltinAssetDeposit::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetDeposit::_internal_amount() const { + return amount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetDeposit::amount() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.amount) + return _internal_amount(); +} +inline void BuiltinAssetDeposit::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + amount_ = value; +} +inline void BuiltinAssetDeposit::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.amount) +} + +// ------------------------------------------------------------------- + +// BuiltinAssetWithdrawal + +// string vega_asset_id = 1 [json_name = "vegaAssetId"]; +inline void BuiltinAssetWithdrawal::clear_vega_asset_id() { + vega_asset_id_.ClearToEmpty(); +} +inline const std::string& BuiltinAssetWithdrawal::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.vega_asset_id) + return _internal_vega_asset_id(); +} +inline void BuiltinAssetWithdrawal::set_vega_asset_id(const std::string& value) { + _internal_set_vega_asset_id(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.vega_asset_id) +} +inline std::string* BuiltinAssetWithdrawal::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetWithdrawal.vega_asset_id) + return _internal_mutable_vega_asset_id(); +} +inline const std::string& BuiltinAssetWithdrawal::_internal_vega_asset_id() const { + return vega_asset_id_.Get(); +} +inline void BuiltinAssetWithdrawal::_internal_set_vega_asset_id(const std::string& value) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void BuiltinAssetWithdrawal::set_vega_asset_id(std::string&& value) { + + vega_asset_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetWithdrawal.vega_asset_id) +} +inline void BuiltinAssetWithdrawal::set_vega_asset_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetWithdrawal.vega_asset_id) +} +inline void BuiltinAssetWithdrawal::set_vega_asset_id(const char* value, + size_t size) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetWithdrawal.vega_asset_id) +} +inline std::string* BuiltinAssetWithdrawal::_internal_mutable_vega_asset_id() { + + return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* BuiltinAssetWithdrawal::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetWithdrawal.vega_asset_id) + return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void BuiltinAssetWithdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { + if (vega_asset_id != nullptr) { + + } else { + + } + vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.vega_asset_id) +} + +// string party_id = 2 [json_name = "partyId"]; +inline void BuiltinAssetWithdrawal::clear_party_id() { + party_id_.ClearToEmpty(); +} +inline const std::string& BuiltinAssetWithdrawal::party_id() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.party_id) + return _internal_party_id(); +} +inline void BuiltinAssetWithdrawal::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.party_id) +} +inline std::string* BuiltinAssetWithdrawal::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetWithdrawal.party_id) + return _internal_mutable_party_id(); +} +inline const std::string& BuiltinAssetWithdrawal::_internal_party_id() const { + return party_id_.Get(); +} +inline void BuiltinAssetWithdrawal::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void BuiltinAssetWithdrawal::set_party_id(std::string&& value) { + + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetWithdrawal.party_id) +} +inline void BuiltinAssetWithdrawal::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetWithdrawal.party_id) +} +inline void BuiltinAssetWithdrawal::set_party_id(const char* value, + size_t size) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetWithdrawal.party_id) +} +inline std::string* BuiltinAssetWithdrawal::_internal_mutable_party_id() { + + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* BuiltinAssetWithdrawal::release_party_id() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetWithdrawal.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void BuiltinAssetWithdrawal::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { + + } else { + + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.party_id) +} + +// uint64 amount = 3 [json_name = "amount"]; +inline void BuiltinAssetWithdrawal::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::_internal_amount() const { + return amount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::amount() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.amount) + return _internal_amount(); +} +inline void BuiltinAssetWithdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + amount_ = value; +} +inline void BuiltinAssetWithdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.amount) +} + +// ------------------------------------------------------------------- + +// BuiltinAssetEvent + +// .vega.BuiltinAssetDeposit deposit = 1001 [json_name = "deposit"]; +inline bool BuiltinAssetEvent::_internal_has_deposit() const { + return action_case() == kDeposit; +} +inline bool BuiltinAssetEvent::has_deposit() const { + return _internal_has_deposit(); +} +inline void BuiltinAssetEvent::set_has_deposit() { + _oneof_case_[0] = kDeposit; +} +inline void BuiltinAssetEvent::clear_deposit() { + if (_internal_has_deposit()) { + if (GetArena() == nullptr) { + delete action_.deposit_; + } + clear_has_action(); + } +} +inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::release_deposit() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetEvent.deposit) + if (_internal_has_deposit()) { + clear_has_action(); + ::vega::BuiltinAssetDeposit* temp = action_.deposit_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + action_.deposit_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::BuiltinAssetDeposit& BuiltinAssetEvent::_internal_deposit() const { + return _internal_has_deposit() + ? *action_.deposit_ + : reinterpret_cast< ::vega::BuiltinAssetDeposit&>(::vega::_BuiltinAssetDeposit_default_instance_); +} +inline const ::vega::BuiltinAssetDeposit& BuiltinAssetEvent::deposit() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetEvent.deposit) + return _internal_deposit(); +} +inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::unsafe_arena_release_deposit() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.BuiltinAssetEvent.deposit) + if (_internal_has_deposit()) { + clear_has_action(); + ::vega::BuiltinAssetDeposit* temp = action_.deposit_; + action_.deposit_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void BuiltinAssetEvent::unsafe_arena_set_allocated_deposit(::vega::BuiltinAssetDeposit* deposit) { + clear_action(); + if (deposit) { + set_has_deposit(); + action_.deposit_ = deposit; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BuiltinAssetEvent.deposit) +} +inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::_internal_mutable_deposit() { + if (!_internal_has_deposit()) { + clear_action(); + set_has_deposit(); + action_.deposit_ = CreateMaybeMessage< ::vega::BuiltinAssetDeposit >(GetArena()); + } + return action_.deposit_; +} +inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::mutable_deposit() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetEvent.deposit) + return _internal_mutable_deposit(); +} + +// .vega.BuiltinAssetWithdrawal withdrawal = 1002 [json_name = "withdrawal"]; +inline bool BuiltinAssetEvent::_internal_has_withdrawal() const { + return action_case() == kWithdrawal; +} +inline bool BuiltinAssetEvent::has_withdrawal() const { + return _internal_has_withdrawal(); +} +inline void BuiltinAssetEvent::set_has_withdrawal() { + _oneof_case_[0] = kWithdrawal; +} +inline void BuiltinAssetEvent::clear_withdrawal() { + if (_internal_has_withdrawal()) { + if (GetArena() == nullptr) { + delete action_.withdrawal_; + } + clear_has_action(); + } +} +inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::release_withdrawal() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetEvent.withdrawal) + if (_internal_has_withdrawal()) { + clear_has_action(); + ::vega::BuiltinAssetWithdrawal* temp = action_.withdrawal_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + action_.withdrawal_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::BuiltinAssetWithdrawal& BuiltinAssetEvent::_internal_withdrawal() const { + return _internal_has_withdrawal() + ? *action_.withdrawal_ + : reinterpret_cast< ::vega::BuiltinAssetWithdrawal&>(::vega::_BuiltinAssetWithdrawal_default_instance_); +} +inline const ::vega::BuiltinAssetWithdrawal& BuiltinAssetEvent::withdrawal() const { + // @@protoc_insertion_point(field_get:vega.BuiltinAssetEvent.withdrawal) + return _internal_withdrawal(); +} +inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::unsafe_arena_release_withdrawal() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.BuiltinAssetEvent.withdrawal) + if (_internal_has_withdrawal()) { + clear_has_action(); + ::vega::BuiltinAssetWithdrawal* temp = action_.withdrawal_; + action_.withdrawal_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void BuiltinAssetEvent::unsafe_arena_set_allocated_withdrawal(::vega::BuiltinAssetWithdrawal* withdrawal) { + clear_action(); + if (withdrawal) { + set_has_withdrawal(); + action_.withdrawal_ = withdrawal; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BuiltinAssetEvent.withdrawal) +} +inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::_internal_mutable_withdrawal() { + if (!_internal_has_withdrawal()) { + clear_action(); + set_has_withdrawal(); + action_.withdrawal_ = CreateMaybeMessage< ::vega::BuiltinAssetWithdrawal >(GetArena()); + } + return action_.withdrawal_; +} +inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::mutable_withdrawal() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetEvent.withdrawal) + return _internal_mutable_withdrawal(); +} + +inline bool BuiltinAssetEvent::has_action() const { + return action_case() != ACTION_NOT_SET; +} +inline void BuiltinAssetEvent::clear_has_action() { + _oneof_case_[0] = ACTION_NOT_SET; +} +inline BuiltinAssetEvent::ActionCase BuiltinAssetEvent::action_case() const { + return BuiltinAssetEvent::ActionCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ERC20AssetList + +// string vega_asset_id = 1 [json_name = "vegaAssetId"]; +inline void ERC20AssetList::clear_vega_asset_id() { + vega_asset_id_.ClearToEmpty(); +} +inline const std::string& ERC20AssetList::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.ERC20AssetList.vega_asset_id) + return _internal_vega_asset_id(); +} +inline void ERC20AssetList::set_vega_asset_id(const std::string& value) { + _internal_set_vega_asset_id(value); + // @@protoc_insertion_point(field_set:vega.ERC20AssetList.vega_asset_id) +} +inline std::string* ERC20AssetList::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.ERC20AssetList.vega_asset_id) + return _internal_mutable_vega_asset_id(); +} +inline const std::string& ERC20AssetList::_internal_vega_asset_id() const { + return vega_asset_id_.Get(); +} +inline void ERC20AssetList::_internal_set_vega_asset_id(const std::string& value) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ERC20AssetList::set_vega_asset_id(std::string&& value) { + + vega_asset_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20AssetList.vega_asset_id) +} +inline void ERC20AssetList::set_vega_asset_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20AssetList.vega_asset_id) +} +inline void ERC20AssetList::set_vega_asset_id(const char* value, + size_t size) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.ERC20AssetList.vega_asset_id) +} +inline std::string* ERC20AssetList::_internal_mutable_vega_asset_id() { + + return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ERC20AssetList::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.ERC20AssetList.vega_asset_id) + return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ERC20AssetList::set_allocated_vega_asset_id(std::string* vega_asset_id) { + if (vega_asset_id != nullptr) { + + } else { + + } + vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.ERC20AssetList.vega_asset_id) +} + +// ------------------------------------------------------------------- + +// ERC20AssetDelist + +// string vega_asset_id = 1 [json_name = "vegaAssetId"]; +inline void ERC20AssetDelist::clear_vega_asset_id() { + vega_asset_id_.ClearToEmpty(); +} +inline const std::string& ERC20AssetDelist::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.ERC20AssetDelist.vega_asset_id) + return _internal_vega_asset_id(); +} +inline void ERC20AssetDelist::set_vega_asset_id(const std::string& value) { + _internal_set_vega_asset_id(value); + // @@protoc_insertion_point(field_set:vega.ERC20AssetDelist.vega_asset_id) +} +inline std::string* ERC20AssetDelist::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.ERC20AssetDelist.vega_asset_id) + return _internal_mutable_vega_asset_id(); +} +inline const std::string& ERC20AssetDelist::_internal_vega_asset_id() const { + return vega_asset_id_.Get(); +} +inline void ERC20AssetDelist::_internal_set_vega_asset_id(const std::string& value) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ERC20AssetDelist::set_vega_asset_id(std::string&& value) { + + vega_asset_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20AssetDelist.vega_asset_id) +} +inline void ERC20AssetDelist::set_vega_asset_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20AssetDelist.vega_asset_id) +} +inline void ERC20AssetDelist::set_vega_asset_id(const char* value, + size_t size) { + + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.ERC20AssetDelist.vega_asset_id) +} +inline std::string* ERC20AssetDelist::_internal_mutable_vega_asset_id() { + + return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ERC20AssetDelist::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.ERC20AssetDelist.vega_asset_id) + return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ERC20AssetDelist::set_allocated_vega_asset_id(std::string* vega_asset_id) { + if (vega_asset_id != nullptr) { -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// BuiltinAssetDeposit + } else { + + } + vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.ERC20AssetDelist.vega_asset_id) +} + +// ------------------------------------------------------------------- + +// ERC20Deposit // string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void BuiltinAssetDeposit::clear_vega_asset_id() { +inline void ERC20Deposit::clear_vega_asset_id() { vega_asset_id_.ClearToEmpty(); } -inline const std::string& BuiltinAssetDeposit::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.vega_asset_id) +inline const std::string& ERC20Deposit::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.ERC20Deposit.vega_asset_id) return _internal_vega_asset_id(); } -inline void BuiltinAssetDeposit::set_vega_asset_id(const std::string& value) { +inline void ERC20Deposit::set_vega_asset_id(const std::string& value) { _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set:vega.ERC20Deposit.vega_asset_id) } -inline std::string* BuiltinAssetDeposit::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetDeposit.vega_asset_id) +inline std::string* ERC20Deposit::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.vega_asset_id) return _internal_mutable_vega_asset_id(); } -inline const std::string& BuiltinAssetDeposit::_internal_vega_asset_id() const { +inline const std::string& ERC20Deposit::_internal_vega_asset_id() const { return vega_asset_id_.Get(); } -inline void BuiltinAssetDeposit::_internal_set_vega_asset_id(const std::string& value) { +inline void ERC20Deposit::_internal_set_vega_asset_id(const std::string& value) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BuiltinAssetDeposit::set_vega_asset_id(std::string&& value) { +inline void ERC20Deposit::set_vega_asset_id(std::string&& value) { vega_asset_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.vega_asset_id) } -inline void BuiltinAssetDeposit::set_vega_asset_id(const char* value) { +inline void ERC20Deposit::set_vega_asset_id(const char* value) { GOOGLE_DCHECK(value != nullptr); vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.vega_asset_id) } -inline void BuiltinAssetDeposit::set_vega_asset_id(const char* value, +inline void ERC20Deposit::set_vega_asset_id(const char* value, size_t size) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.vega_asset_id) } -inline std::string* BuiltinAssetDeposit::_internal_mutable_vega_asset_id() { +inline std::string* ERC20Deposit::_internal_mutable_vega_asset_id() { return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BuiltinAssetDeposit::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetDeposit.vega_asset_id) +inline std::string* ERC20Deposit::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.ERC20Deposit.vega_asset_id) return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BuiltinAssetDeposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { +inline void ERC20Deposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { if (vega_asset_id != nullptr) { } else { @@ -3175,145 +4353,247 @@ inline void BuiltinAssetDeposit::set_allocated_vega_asset_id(std::string* vega_a } vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.vega_asset_id) } -// string party_id = 2 [json_name = "partyId"]; -inline void BuiltinAssetDeposit::clear_party_id() { - party_id_.ClearToEmpty(); +// string source_ethereum_address = 2 [json_name = "sourceEthereumAddress"]; +inline void ERC20Deposit::clear_source_ethereum_address() { + source_ethereum_address_.ClearToEmpty(); } -inline const std::string& BuiltinAssetDeposit::party_id() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.party_id) - return _internal_party_id(); +inline const std::string& ERC20Deposit::source_ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.ERC20Deposit.source_ethereum_address) + return _internal_source_ethereum_address(); } -inline void BuiltinAssetDeposit::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.party_id) +inline void ERC20Deposit::set_source_ethereum_address(const std::string& value) { + _internal_set_source_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.ERC20Deposit.source_ethereum_address) } -inline std::string* BuiltinAssetDeposit::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetDeposit.party_id) - return _internal_mutable_party_id(); +inline std::string* ERC20Deposit::mutable_source_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.source_ethereum_address) + return _internal_mutable_source_ethereum_address(); } -inline const std::string& BuiltinAssetDeposit::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& ERC20Deposit::_internal_source_ethereum_address() const { + return source_ethereum_address_.Get(); } -inline void BuiltinAssetDeposit::_internal_set_party_id(const std::string& value) { +inline void ERC20Deposit::_internal_set_source_ethereum_address(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BuiltinAssetDeposit::set_party_id(std::string&& value) { +inline void ERC20Deposit::set_source_ethereum_address(std::string&& value) { - party_id_.Set( + source_ethereum_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetDeposit.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.source_ethereum_address) } -inline void BuiltinAssetDeposit::set_party_id(const char* value) { +inline void ERC20Deposit::set_source_ethereum_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetDeposit.party_id) + source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.source_ethereum_address) } -inline void BuiltinAssetDeposit::set_party_id(const char* value, +inline void ERC20Deposit::set_source_ethereum_address(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetDeposit.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.source_ethereum_address) } -inline std::string* BuiltinAssetDeposit::_internal_mutable_party_id() { +inline std::string* ERC20Deposit::_internal_mutable_source_ethereum_address() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return source_ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BuiltinAssetDeposit::release_party_id() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetDeposit.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ERC20Deposit::release_source_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.ERC20Deposit.source_ethereum_address) + return source_ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BuiltinAssetDeposit::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void ERC20Deposit::set_allocated_source_ethereum_address(std::string* source_ethereum_address) { + if (source_ethereum_address != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + source_ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_ethereum_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetDeposit.party_id) + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.source_ethereum_address) } -// uint64 amount = 3 [json_name = "amount"]; -inline void BuiltinAssetDeposit::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); +// string target_party_id = 3 [json_name = "targetPartyId"]; +inline void ERC20Deposit::clear_target_party_id() { + target_party_id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetDeposit::_internal_amount() const { - return amount_; +inline const std::string& ERC20Deposit::target_party_id() const { + // @@protoc_insertion_point(field_get:vega.ERC20Deposit.target_party_id) + return _internal_target_party_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetDeposit::amount() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetDeposit.amount) +inline void ERC20Deposit::set_target_party_id(const std::string& value) { + _internal_set_target_party_id(value); + // @@protoc_insertion_point(field_set:vega.ERC20Deposit.target_party_id) +} +inline std::string* ERC20Deposit::mutable_target_party_id() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.target_party_id) + return _internal_mutable_target_party_id(); +} +inline const std::string& ERC20Deposit::_internal_target_party_id() const { + return target_party_id_.Get(); +} +inline void ERC20Deposit::_internal_set_target_party_id(const std::string& value) { + + target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ERC20Deposit::set_target_party_id(std::string&& value) { + + target_party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.target_party_id) +} +inline void ERC20Deposit::set_target_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.target_party_id) +} +inline void ERC20Deposit::set_target_party_id(const char* value, + size_t size) { + + target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.target_party_id) +} +inline std::string* ERC20Deposit::_internal_mutable_target_party_id() { + + return target_party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ERC20Deposit::release_target_party_id() { + // @@protoc_insertion_point(field_release:vega.ERC20Deposit.target_party_id) + return target_party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ERC20Deposit::set_allocated_target_party_id(std::string* target_party_id) { + if (target_party_id != nullptr) { + + } else { + + } + target_party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.target_party_id) +} + +// string amount = 4 [json_name = "amount"]; +inline void ERC20Deposit::clear_amount() { + amount_.ClearToEmpty(); +} +inline const std::string& ERC20Deposit::amount() const { + // @@protoc_insertion_point(field_get:vega.ERC20Deposit.amount) return _internal_amount(); } -inline void BuiltinAssetDeposit::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void ERC20Deposit::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.ERC20Deposit.amount) +} +inline std::string* ERC20Deposit::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.amount) + return _internal_mutable_amount(); +} +inline const std::string& ERC20Deposit::_internal_amount() const { + return amount_.Get(); +} +inline void ERC20Deposit::_internal_set_amount(const std::string& value) { - amount_ = value; + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ERC20Deposit::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.amount) +} +inline void ERC20Deposit::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.amount) +} +inline void ERC20Deposit::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.amount) +} +inline std::string* ERC20Deposit::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ERC20Deposit::release_amount() { + // @@protoc_insertion_point(field_release:vega.ERC20Deposit.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BuiltinAssetDeposit::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetDeposit.amount) +inline void ERC20Deposit::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.amount) } // ------------------------------------------------------------------- -// BuiltinAssetWithdrawal +// ERC20Withdrawal // string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void BuiltinAssetWithdrawal::clear_vega_asset_id() { +inline void ERC20Withdrawal::clear_vega_asset_id() { vega_asset_id_.ClearToEmpty(); } -inline const std::string& BuiltinAssetWithdrawal::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.vega_asset_id) +inline const std::string& ERC20Withdrawal::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.vega_asset_id) return _internal_vega_asset_id(); } -inline void BuiltinAssetWithdrawal::set_vega_asset_id(const std::string& value) { +inline void ERC20Withdrawal::set_vega_asset_id(const std::string& value) { _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.vega_asset_id) } -inline std::string* BuiltinAssetWithdrawal::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetWithdrawal.vega_asset_id) +inline std::string* ERC20Withdrawal::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.vega_asset_id) return _internal_mutable_vega_asset_id(); } -inline const std::string& BuiltinAssetWithdrawal::_internal_vega_asset_id() const { +inline const std::string& ERC20Withdrawal::_internal_vega_asset_id() const { return vega_asset_id_.Get(); } -inline void BuiltinAssetWithdrawal::_internal_set_vega_asset_id(const std::string& value) { +inline void ERC20Withdrawal::_internal_set_vega_asset_id(const std::string& value) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BuiltinAssetWithdrawal::set_vega_asset_id(std::string&& value) { +inline void ERC20Withdrawal::set_vega_asset_id(std::string&& value) { vega_asset_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetWithdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.vega_asset_id) } -inline void BuiltinAssetWithdrawal::set_vega_asset_id(const char* value) { +inline void ERC20Withdrawal::set_vega_asset_id(const char* value) { GOOGLE_DCHECK(value != nullptr); vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetWithdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.vega_asset_id) } -inline void BuiltinAssetWithdrawal::set_vega_asset_id(const char* value, +inline void ERC20Withdrawal::set_vega_asset_id(const char* value, size_t size) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetWithdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.vega_asset_id) } -inline std::string* BuiltinAssetWithdrawal::_internal_mutable_vega_asset_id() { +inline std::string* ERC20Withdrawal::_internal_mutable_vega_asset_id() { return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BuiltinAssetWithdrawal::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetWithdrawal.vega_asset_id) +inline std::string* ERC20Withdrawal::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.vega_asset_id) return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BuiltinAssetWithdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { +inline void ERC20Withdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { if (vega_asset_id != nullptr) { } else { @@ -3321,434 +4601,531 @@ inline void BuiltinAssetWithdrawal::set_allocated_vega_asset_id(std::string* veg } vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.vega_asset_id) } -// string party_id = 2 [json_name = "partyId"]; -inline void BuiltinAssetWithdrawal::clear_party_id() { - party_id_.ClearToEmpty(); +// string target_ethereum_address = 2 [json_name = "targetEthereumAddress"]; +inline void ERC20Withdrawal::clear_target_ethereum_address() { + target_ethereum_address_.ClearToEmpty(); } -inline const std::string& BuiltinAssetWithdrawal::party_id() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.party_id) - return _internal_party_id(); +inline const std::string& ERC20Withdrawal::target_ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.target_ethereum_address) + return _internal_target_ethereum_address(); } -inline void BuiltinAssetWithdrawal::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.party_id) +inline void ERC20Withdrawal::set_target_ethereum_address(const std::string& value) { + _internal_set_target_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.target_ethereum_address) } -inline std::string* BuiltinAssetWithdrawal::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetWithdrawal.party_id) - return _internal_mutable_party_id(); +inline std::string* ERC20Withdrawal::mutable_target_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.target_ethereum_address) + return _internal_mutable_target_ethereum_address(); } -inline const std::string& BuiltinAssetWithdrawal::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& ERC20Withdrawal::_internal_target_ethereum_address() const { + return target_ethereum_address_.Get(); } -inline void BuiltinAssetWithdrawal::_internal_set_party_id(const std::string& value) { +inline void ERC20Withdrawal::_internal_set_target_ethereum_address(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BuiltinAssetWithdrawal::set_party_id(std::string&& value) { +inline void ERC20Withdrawal::set_target_ethereum_address(std::string&& value) { - party_id_.Set( + target_ethereum_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetWithdrawal.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.target_ethereum_address) } -inline void BuiltinAssetWithdrawal::set_party_id(const char* value) { +inline void ERC20Withdrawal::set_target_ethereum_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetWithdrawal.party_id) + target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.target_ethereum_address) } -inline void BuiltinAssetWithdrawal::set_party_id(const char* value, +inline void ERC20Withdrawal::set_target_ethereum_address(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetWithdrawal.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.target_ethereum_address) } -inline std::string* BuiltinAssetWithdrawal::_internal_mutable_party_id() { +inline std::string* ERC20Withdrawal::_internal_mutable_target_ethereum_address() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return target_ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BuiltinAssetWithdrawal::release_party_id() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetWithdrawal.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ERC20Withdrawal::release_target_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.target_ethereum_address) + return target_ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BuiltinAssetWithdrawal::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void ERC20Withdrawal::set_allocated_target_ethereum_address(std::string* target_ethereum_address) { + if (target_ethereum_address != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + target_ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_ethereum_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.party_id) + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.target_ethereum_address) } -// uint64 amount = 3 [json_name = "amount"]; -inline void BuiltinAssetWithdrawal::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); +// string reference_nonce = 3 [json_name = "referenceNonce"]; +inline void ERC20Withdrawal::clear_reference_nonce() { + reference_nonce_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::_internal_amount() const { - return amount_; +inline const std::string& ERC20Withdrawal::reference_nonce() const { + // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.reference_nonce) + return _internal_reference_nonce(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::amount() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.amount) - return _internal_amount(); +inline void ERC20Withdrawal::set_reference_nonce(const std::string& value) { + _internal_set_reference_nonce(value); + // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.reference_nonce) } -inline void BuiltinAssetWithdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* ERC20Withdrawal::mutable_reference_nonce() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.reference_nonce) + return _internal_mutable_reference_nonce(); +} +inline const std::string& ERC20Withdrawal::_internal_reference_nonce() const { + return reference_nonce_.Get(); +} +inline void ERC20Withdrawal::_internal_set_reference_nonce(const std::string& value) { - amount_ = value; + reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BuiltinAssetWithdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.amount) +inline void ERC20Withdrawal::set_reference_nonce(std::string&& value) { + + reference_nonce_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.reference_nonce) +} +inline void ERC20Withdrawal::set_reference_nonce(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.reference_nonce) +} +inline void ERC20Withdrawal::set_reference_nonce(const char* value, + size_t size) { + + reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.reference_nonce) +} +inline std::string* ERC20Withdrawal::_internal_mutable_reference_nonce() { + + return reference_nonce_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ERC20Withdrawal::release_reference_nonce() { + // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.reference_nonce) + return reference_nonce_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ERC20Withdrawal::set_allocated_reference_nonce(std::string* reference_nonce) { + if (reference_nonce != nullptr) { + + } else { + + } + reference_nonce_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference_nonce, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.reference_nonce) } // ------------------------------------------------------------------- -// BuiltinAssetEvent +// ERC20Event -// .vega.BuiltinAssetDeposit deposit = 1001 [json_name = "deposit"]; -inline bool BuiltinAssetEvent::_internal_has_deposit() const { - return action_case() == kDeposit; +// uint64 index = 1 [json_name = "index"]; +inline void ERC20Event::clear_index() { + index_ = PROTOBUF_ULONGLONG(0); } -inline bool BuiltinAssetEvent::has_deposit() const { - return _internal_has_deposit(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::_internal_index() const { + return index_; } -inline void BuiltinAssetEvent::set_has_deposit() { - _oneof_case_[0] = kDeposit; +inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::index() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.index) + return _internal_index(); } -inline void BuiltinAssetEvent::clear_deposit() { - if (_internal_has_deposit()) { +inline void ERC20Event::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + index_ = value; +} +inline void ERC20Event::set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_index(value); + // @@protoc_insertion_point(field_set:vega.ERC20Event.index) +} + +// uint64 block = 2 [json_name = "block"]; +inline void ERC20Event::clear_block() { + block_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::_internal_block() const { + return block_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::block() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.block) + return _internal_block(); +} +inline void ERC20Event::_internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + block_ = value; +} +inline void ERC20Event::set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_block(value); + // @@protoc_insertion_point(field_set:vega.ERC20Event.block) +} + +// .vega.ERC20AssetList asset_list = 1001 [json_name = "assetList"]; +inline bool ERC20Event::_internal_has_asset_list() const { + return action_case() == kAssetList; +} +inline bool ERC20Event::has_asset_list() const { + return _internal_has_asset_list(); +} +inline void ERC20Event::set_has_asset_list() { + _oneof_case_[0] = kAssetList; +} +inline void ERC20Event::clear_asset_list() { + if (_internal_has_asset_list()) { if (GetArena() == nullptr) { - delete action_.deposit_; + delete action_.asset_list_; } clear_has_action(); } -} -inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::release_deposit() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetEvent.deposit) - if (_internal_has_deposit()) { +} +inline ::vega::ERC20AssetList* ERC20Event::release_asset_list() { + // @@protoc_insertion_point(field_release:vega.ERC20Event.asset_list) + if (_internal_has_asset_list()) { clear_has_action(); - ::vega::BuiltinAssetDeposit* temp = action_.deposit_; + ::vega::ERC20AssetList* temp = action_.asset_list_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - action_.deposit_ = nullptr; + action_.asset_list_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::BuiltinAssetDeposit& BuiltinAssetEvent::_internal_deposit() const { - return _internal_has_deposit() - ? *action_.deposit_ - : reinterpret_cast< ::vega::BuiltinAssetDeposit&>(::vega::_BuiltinAssetDeposit_default_instance_); +inline const ::vega::ERC20AssetList& ERC20Event::_internal_asset_list() const { + return _internal_has_asset_list() + ? *action_.asset_list_ + : reinterpret_cast< ::vega::ERC20AssetList&>(::vega::_ERC20AssetList_default_instance_); } -inline const ::vega::BuiltinAssetDeposit& BuiltinAssetEvent::deposit() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetEvent.deposit) - return _internal_deposit(); +inline const ::vega::ERC20AssetList& ERC20Event::asset_list() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.asset_list) + return _internal_asset_list(); } -inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::unsafe_arena_release_deposit() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.BuiltinAssetEvent.deposit) - if (_internal_has_deposit()) { +inline ::vega::ERC20AssetList* ERC20Event::unsafe_arena_release_asset_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.asset_list) + if (_internal_has_asset_list()) { clear_has_action(); - ::vega::BuiltinAssetDeposit* temp = action_.deposit_; - action_.deposit_ = nullptr; + ::vega::ERC20AssetList* temp = action_.asset_list_; + action_.asset_list_ = nullptr; return temp; } else { return nullptr; } } -inline void BuiltinAssetEvent::unsafe_arena_set_allocated_deposit(::vega::BuiltinAssetDeposit* deposit) { +inline void ERC20Event::unsafe_arena_set_allocated_asset_list(::vega::ERC20AssetList* asset_list) { clear_action(); - if (deposit) { - set_has_deposit(); - action_.deposit_ = deposit; + if (asset_list) { + set_has_asset_list(); + action_.asset_list_ = asset_list; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BuiltinAssetEvent.deposit) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.asset_list) } -inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::_internal_mutable_deposit() { - if (!_internal_has_deposit()) { +inline ::vega::ERC20AssetList* ERC20Event::_internal_mutable_asset_list() { + if (!_internal_has_asset_list()) { clear_action(); - set_has_deposit(); - action_.deposit_ = CreateMaybeMessage< ::vega::BuiltinAssetDeposit >(GetArena()); + set_has_asset_list(); + action_.asset_list_ = CreateMaybeMessage< ::vega::ERC20AssetList >(GetArena()); } - return action_.deposit_; + return action_.asset_list_; } -inline ::vega::BuiltinAssetDeposit* BuiltinAssetEvent::mutable_deposit() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetEvent.deposit) - return _internal_mutable_deposit(); +inline ::vega::ERC20AssetList* ERC20Event::mutable_asset_list() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Event.asset_list) + return _internal_mutable_asset_list(); } -// .vega.BuiltinAssetWithdrawal withdrawal = 1002 [json_name = "withdrawal"]; -inline bool BuiltinAssetEvent::_internal_has_withdrawal() const { - return action_case() == kWithdrawal; +// .vega.ERC20AssetDelist asset_delist = 1002 [json_name = "assetDelist"]; +inline bool ERC20Event::_internal_has_asset_delist() const { + return action_case() == kAssetDelist; } -inline bool BuiltinAssetEvent::has_withdrawal() const { - return _internal_has_withdrawal(); +inline bool ERC20Event::has_asset_delist() const { + return _internal_has_asset_delist(); } -inline void BuiltinAssetEvent::set_has_withdrawal() { - _oneof_case_[0] = kWithdrawal; +inline void ERC20Event::set_has_asset_delist() { + _oneof_case_[0] = kAssetDelist; } -inline void BuiltinAssetEvent::clear_withdrawal() { - if (_internal_has_withdrawal()) { +inline void ERC20Event::clear_asset_delist() { + if (_internal_has_asset_delist()) { if (GetArena() == nullptr) { - delete action_.withdrawal_; + delete action_.asset_delist_; } clear_has_action(); } } -inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::release_withdrawal() { - // @@protoc_insertion_point(field_release:vega.BuiltinAssetEvent.withdrawal) - if (_internal_has_withdrawal()) { +inline ::vega::ERC20AssetDelist* ERC20Event::release_asset_delist() { + // @@protoc_insertion_point(field_release:vega.ERC20Event.asset_delist) + if (_internal_has_asset_delist()) { clear_has_action(); - ::vega::BuiltinAssetWithdrawal* temp = action_.withdrawal_; + ::vega::ERC20AssetDelist* temp = action_.asset_delist_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - action_.withdrawal_ = nullptr; + action_.asset_delist_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::BuiltinAssetWithdrawal& BuiltinAssetEvent::_internal_withdrawal() const { - return _internal_has_withdrawal() - ? *action_.withdrawal_ - : reinterpret_cast< ::vega::BuiltinAssetWithdrawal&>(::vega::_BuiltinAssetWithdrawal_default_instance_); +inline const ::vega::ERC20AssetDelist& ERC20Event::_internal_asset_delist() const { + return _internal_has_asset_delist() + ? *action_.asset_delist_ + : reinterpret_cast< ::vega::ERC20AssetDelist&>(::vega::_ERC20AssetDelist_default_instance_); } -inline const ::vega::BuiltinAssetWithdrawal& BuiltinAssetEvent::withdrawal() const { - // @@protoc_insertion_point(field_get:vega.BuiltinAssetEvent.withdrawal) - return _internal_withdrawal(); +inline const ::vega::ERC20AssetDelist& ERC20Event::asset_delist() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.asset_delist) + return _internal_asset_delist(); } -inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::unsafe_arena_release_withdrawal() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.BuiltinAssetEvent.withdrawal) - if (_internal_has_withdrawal()) { +inline ::vega::ERC20AssetDelist* ERC20Event::unsafe_arena_release_asset_delist() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.asset_delist) + if (_internal_has_asset_delist()) { clear_has_action(); - ::vega::BuiltinAssetWithdrawal* temp = action_.withdrawal_; - action_.withdrawal_ = nullptr; + ::vega::ERC20AssetDelist* temp = action_.asset_delist_; + action_.asset_delist_ = nullptr; return temp; } else { return nullptr; } } -inline void BuiltinAssetEvent::unsafe_arena_set_allocated_withdrawal(::vega::BuiltinAssetWithdrawal* withdrawal) { +inline void ERC20Event::unsafe_arena_set_allocated_asset_delist(::vega::ERC20AssetDelist* asset_delist) { clear_action(); - if (withdrawal) { - set_has_withdrawal(); - action_.withdrawal_ = withdrawal; + if (asset_delist) { + set_has_asset_delist(); + action_.asset_delist_ = asset_delist; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BuiltinAssetEvent.withdrawal) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.asset_delist) } -inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::_internal_mutable_withdrawal() { - if (!_internal_has_withdrawal()) { +inline ::vega::ERC20AssetDelist* ERC20Event::_internal_mutable_asset_delist() { + if (!_internal_has_asset_delist()) { clear_action(); - set_has_withdrawal(); - action_.withdrawal_ = CreateMaybeMessage< ::vega::BuiltinAssetWithdrawal >(GetArena()); + set_has_asset_delist(); + action_.asset_delist_ = CreateMaybeMessage< ::vega::ERC20AssetDelist >(GetArena()); } - return action_.withdrawal_; -} -inline ::vega::BuiltinAssetWithdrawal* BuiltinAssetEvent::mutable_withdrawal() { - // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetEvent.withdrawal) - return _internal_mutable_withdrawal(); -} - -inline bool BuiltinAssetEvent::has_action() const { - return action_case() != ACTION_NOT_SET; -} -inline void BuiltinAssetEvent::clear_has_action() { - _oneof_case_[0] = ACTION_NOT_SET; + return action_.asset_delist_; } -inline BuiltinAssetEvent::ActionCase BuiltinAssetEvent::action_case() const { - return BuiltinAssetEvent::ActionCase(_oneof_case_[0]); +inline ::vega::ERC20AssetDelist* ERC20Event::mutable_asset_delist() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Event.asset_delist) + return _internal_mutable_asset_delist(); } -// ------------------------------------------------------------------- - -// ERC20AssetList -// string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void ERC20AssetList::clear_vega_asset_id() { - vega_asset_id_.ClearToEmpty(); -} -inline const std::string& ERC20AssetList::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.ERC20AssetList.vega_asset_id) - return _internal_vega_asset_id(); -} -inline void ERC20AssetList::set_vega_asset_id(const std::string& value) { - _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.ERC20AssetList.vega_asset_id) +// .vega.ERC20Deposit deposit = 1003 [json_name = "deposit"]; +inline bool ERC20Event::_internal_has_deposit() const { + return action_case() == kDeposit; } -inline std::string* ERC20AssetList::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.ERC20AssetList.vega_asset_id) - return _internal_mutable_vega_asset_id(); +inline bool ERC20Event::has_deposit() const { + return _internal_has_deposit(); } -inline const std::string& ERC20AssetList::_internal_vega_asset_id() const { - return vega_asset_id_.Get(); +inline void ERC20Event::set_has_deposit() { + _oneof_case_[0] = kDeposit; } -inline void ERC20AssetList::_internal_set_vega_asset_id(const std::string& value) { - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline void ERC20Event::clear_deposit() { + if (_internal_has_deposit()) { + if (GetArena() == nullptr) { + delete action_.deposit_; + } + clear_has_action(); + } } -inline void ERC20AssetList::set_vega_asset_id(std::string&& value) { - - vega_asset_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20AssetList.vega_asset_id) +inline ::vega::ERC20Deposit* ERC20Event::release_deposit() { + // @@protoc_insertion_point(field_release:vega.ERC20Event.deposit) + if (_internal_has_deposit()) { + clear_has_action(); + ::vega::ERC20Deposit* temp = action_.deposit_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + action_.deposit_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void ERC20AssetList::set_vega_asset_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20AssetList.vega_asset_id) +inline const ::vega::ERC20Deposit& ERC20Event::_internal_deposit() const { + return _internal_has_deposit() + ? *action_.deposit_ + : reinterpret_cast< ::vega::ERC20Deposit&>(::vega::_ERC20Deposit_default_instance_); } -inline void ERC20AssetList::set_vega_asset_id(const char* value, - size_t size) { - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20AssetList.vega_asset_id) +inline const ::vega::ERC20Deposit& ERC20Event::deposit() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.deposit) + return _internal_deposit(); } -inline std::string* ERC20AssetList::_internal_mutable_vega_asset_id() { - - return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline ::vega::ERC20Deposit* ERC20Event::unsafe_arena_release_deposit() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.deposit) + if (_internal_has_deposit()) { + clear_has_action(); + ::vega::ERC20Deposit* temp = action_.deposit_; + action_.deposit_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline std::string* ERC20AssetList::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.ERC20AssetList.vega_asset_id) - return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void ERC20Event::unsafe_arena_set_allocated_deposit(::vega::ERC20Deposit* deposit) { + clear_action(); + if (deposit) { + set_has_deposit(); + action_.deposit_ = deposit; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.deposit) } -inline void ERC20AssetList::set_allocated_vega_asset_id(std::string* vega_asset_id) { - if (vega_asset_id != nullptr) { - - } else { - +inline ::vega::ERC20Deposit* ERC20Event::_internal_mutable_deposit() { + if (!_internal_has_deposit()) { + clear_action(); + set_has_deposit(); + action_.deposit_ = CreateMaybeMessage< ::vega::ERC20Deposit >(GetArena()); } - vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20AssetList.vega_asset_id) + return action_.deposit_; +} +inline ::vega::ERC20Deposit* ERC20Event::mutable_deposit() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Event.deposit) + return _internal_mutable_deposit(); } -// ------------------------------------------------------------------- - -// ERC20AssetDelist - -// string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void ERC20AssetDelist::clear_vega_asset_id() { - vega_asset_id_.ClearToEmpty(); +// .vega.ERC20Withdrawal withdrawal = 1004 [json_name = "withdrawal"]; +inline bool ERC20Event::_internal_has_withdrawal() const { + return action_case() == kWithdrawal; } -inline const std::string& ERC20AssetDelist::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.ERC20AssetDelist.vega_asset_id) - return _internal_vega_asset_id(); +inline bool ERC20Event::has_withdrawal() const { + return _internal_has_withdrawal(); } -inline void ERC20AssetDelist::set_vega_asset_id(const std::string& value) { - _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.ERC20AssetDelist.vega_asset_id) +inline void ERC20Event::set_has_withdrawal() { + _oneof_case_[0] = kWithdrawal; } -inline std::string* ERC20AssetDelist::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.ERC20AssetDelist.vega_asset_id) - return _internal_mutable_vega_asset_id(); +inline void ERC20Event::clear_withdrawal() { + if (_internal_has_withdrawal()) { + if (GetArena() == nullptr) { + delete action_.withdrawal_; + } + clear_has_action(); + } } -inline const std::string& ERC20AssetDelist::_internal_vega_asset_id() const { - return vega_asset_id_.Get(); +inline ::vega::ERC20Withdrawal* ERC20Event::release_withdrawal() { + // @@protoc_insertion_point(field_release:vega.ERC20Event.withdrawal) + if (_internal_has_withdrawal()) { + clear_has_action(); + ::vega::ERC20Withdrawal* temp = action_.withdrawal_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + action_.withdrawal_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void ERC20AssetDelist::_internal_set_vega_asset_id(const std::string& value) { - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline const ::vega::ERC20Withdrawal& ERC20Event::_internal_withdrawal() const { + return _internal_has_withdrawal() + ? *action_.withdrawal_ + : reinterpret_cast< ::vega::ERC20Withdrawal&>(::vega::_ERC20Withdrawal_default_instance_); } -inline void ERC20AssetDelist::set_vega_asset_id(std::string&& value) { - - vega_asset_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20AssetDelist.vega_asset_id) +inline const ::vega::ERC20Withdrawal& ERC20Event::withdrawal() const { + // @@protoc_insertion_point(field_get:vega.ERC20Event.withdrawal) + return _internal_withdrawal(); } -inline void ERC20AssetDelist::set_vega_asset_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20AssetDelist.vega_asset_id) +inline ::vega::ERC20Withdrawal* ERC20Event::unsafe_arena_release_withdrawal() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.withdrawal) + if (_internal_has_withdrawal()) { + clear_has_action(); + ::vega::ERC20Withdrawal* temp = action_.withdrawal_; + action_.withdrawal_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void ERC20AssetDelist::set_vega_asset_id(const char* value, - size_t size) { - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20AssetDelist.vega_asset_id) +inline void ERC20Event::unsafe_arena_set_allocated_withdrawal(::vega::ERC20Withdrawal* withdrawal) { + clear_action(); + if (withdrawal) { + set_has_withdrawal(); + action_.withdrawal_ = withdrawal; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.withdrawal) } -inline std::string* ERC20AssetDelist::_internal_mutable_vega_asset_id() { - - return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline ::vega::ERC20Withdrawal* ERC20Event::_internal_mutable_withdrawal() { + if (!_internal_has_withdrawal()) { + clear_action(); + set_has_withdrawal(); + action_.withdrawal_ = CreateMaybeMessage< ::vega::ERC20Withdrawal >(GetArena()); + } + return action_.withdrawal_; } -inline std::string* ERC20AssetDelist::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.ERC20AssetDelist.vega_asset_id) - return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::ERC20Withdrawal* ERC20Event::mutable_withdrawal() { + // @@protoc_insertion_point(field_mutable:vega.ERC20Event.withdrawal) + return _internal_mutable_withdrawal(); } -inline void ERC20AssetDelist::set_allocated_vega_asset_id(std::string* vega_asset_id) { - if (vega_asset_id != nullptr) { - - } else { - } - vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20AssetDelist.vega_asset_id) +inline bool ERC20Event::has_action() const { + return action_case() != ACTION_NOT_SET; +} +inline void ERC20Event::clear_has_action() { + _oneof_case_[0] = ACTION_NOT_SET; +} +inline ERC20Event::ActionCase ERC20Event::action_case() const { + return ERC20Event::ActionCase(_oneof_case_[0]); } - // ------------------------------------------------------------------- -// ERC20Deposit +// BTCDeposit // string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void ERC20Deposit::clear_vega_asset_id() { +inline void BTCDeposit::clear_vega_asset_id() { vega_asset_id_.ClearToEmpty(); } -inline const std::string& ERC20Deposit::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.ERC20Deposit.vega_asset_id) +inline const std::string& BTCDeposit::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.BTCDeposit.vega_asset_id) return _internal_vega_asset_id(); } -inline void ERC20Deposit::set_vega_asset_id(const std::string& value) { +inline void BTCDeposit::set_vega_asset_id(const std::string& value) { _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.ERC20Deposit.vega_asset_id) + // @@protoc_insertion_point(field_set:vega.BTCDeposit.vega_asset_id) } -inline std::string* ERC20Deposit::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.vega_asset_id) +inline std::string* BTCDeposit::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.vega_asset_id) return _internal_mutable_vega_asset_id(); } -inline const std::string& ERC20Deposit::_internal_vega_asset_id() const { +inline const std::string& BTCDeposit::_internal_vega_asset_id() const { return vega_asset_id_.Get(); } -inline void ERC20Deposit::_internal_set_vega_asset_id(const std::string& value) { +inline void BTCDeposit::_internal_set_vega_asset_id(const std::string& value) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Deposit::set_vega_asset_id(std::string&& value) { +inline void BTCDeposit::set_vega_asset_id(std::string&& value) { vega_asset_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.vega_asset_id) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.vega_asset_id) } -inline void ERC20Deposit::set_vega_asset_id(const char* value) { +inline void BTCDeposit::set_vega_asset_id(const char* value) { GOOGLE_DCHECK(value != nullptr); vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.vega_asset_id) + // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.vega_asset_id) } -inline void ERC20Deposit::set_vega_asset_id(const char* value, +inline void BTCDeposit::set_vega_asset_id(const char* value, size_t size) { vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.vega_asset_id) + // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.vega_asset_id) } -inline std::string* ERC20Deposit::_internal_mutable_vega_asset_id() { +inline std::string* BTCDeposit::_internal_mutable_vega_asset_id() { return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Deposit::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.ERC20Deposit.vega_asset_id) +inline std::string* BTCDeposit::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.BTCDeposit.vega_asset_id) return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Deposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { +inline void BTCDeposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { if (vega_asset_id != nullptr) { } else { @@ -3756,121 +5133,121 @@ inline void ERC20Deposit::set_allocated_vega_asset_id(std::string* vega_asset_id } vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.vega_asset_id) + // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.vega_asset_id) } -// string source_ethereum_address = 2 [json_name = "sourceEthereumAddress"]; -inline void ERC20Deposit::clear_source_ethereum_address() { - source_ethereum_address_.ClearToEmpty(); +// string source_btc_address = 2 [json_name = "sourceBtcAddress"]; +inline void BTCDeposit::clear_source_btc_address() { + source_btc_address_.ClearToEmpty(); } -inline const std::string& ERC20Deposit::source_ethereum_address() const { - // @@protoc_insertion_point(field_get:vega.ERC20Deposit.source_ethereum_address) - return _internal_source_ethereum_address(); +inline const std::string& BTCDeposit::source_btc_address() const { + // @@protoc_insertion_point(field_get:vega.BTCDeposit.source_btc_address) + return _internal_source_btc_address(); } -inline void ERC20Deposit::set_source_ethereum_address(const std::string& value) { - _internal_set_source_ethereum_address(value); - // @@protoc_insertion_point(field_set:vega.ERC20Deposit.source_ethereum_address) +inline void BTCDeposit::set_source_btc_address(const std::string& value) { + _internal_set_source_btc_address(value); + // @@protoc_insertion_point(field_set:vega.BTCDeposit.source_btc_address) } -inline std::string* ERC20Deposit::mutable_source_ethereum_address() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.source_ethereum_address) - return _internal_mutable_source_ethereum_address(); +inline std::string* BTCDeposit::mutable_source_btc_address() { + // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.source_btc_address) + return _internal_mutable_source_btc_address(); } -inline const std::string& ERC20Deposit::_internal_source_ethereum_address() const { - return source_ethereum_address_.Get(); +inline const std::string& BTCDeposit::_internal_source_btc_address() const { + return source_btc_address_.Get(); } -inline void ERC20Deposit::_internal_set_source_ethereum_address(const std::string& value) { +inline void BTCDeposit::_internal_set_source_btc_address(const std::string& value) { - source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Deposit::set_source_ethereum_address(std::string&& value) { +inline void BTCDeposit::set_source_btc_address(std::string&& value) { - source_ethereum_address_.Set( + source_btc_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.source_ethereum_address) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.source_btc_address) } -inline void ERC20Deposit::set_source_ethereum_address(const char* value) { +inline void BTCDeposit::set_source_btc_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.source_ethereum_address) + source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.source_btc_address) } -inline void ERC20Deposit::set_source_ethereum_address(const char* value, +inline void BTCDeposit::set_source_btc_address(const char* value, size_t size) { - source_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.source_ethereum_address) + // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.source_btc_address) } -inline std::string* ERC20Deposit::_internal_mutable_source_ethereum_address() { +inline std::string* BTCDeposit::_internal_mutable_source_btc_address() { - return source_ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return source_btc_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Deposit::release_source_ethereum_address() { - // @@protoc_insertion_point(field_release:vega.ERC20Deposit.source_ethereum_address) - return source_ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* BTCDeposit::release_source_btc_address() { + // @@protoc_insertion_point(field_release:vega.BTCDeposit.source_btc_address) + return source_btc_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Deposit::set_allocated_source_ethereum_address(std::string* source_ethereum_address) { - if (source_ethereum_address != nullptr) { +inline void BTCDeposit::set_allocated_source_btc_address(std::string* source_btc_address) { + if (source_btc_address != nullptr) { } else { } - source_ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_ethereum_address, + source_btc_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_btc_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.source_ethereum_address) + // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.source_btc_address) } // string target_party_id = 3 [json_name = "targetPartyId"]; -inline void ERC20Deposit::clear_target_party_id() { +inline void BTCDeposit::clear_target_party_id() { target_party_id_.ClearToEmpty(); } -inline const std::string& ERC20Deposit::target_party_id() const { - // @@protoc_insertion_point(field_get:vega.ERC20Deposit.target_party_id) +inline const std::string& BTCDeposit::target_party_id() const { + // @@protoc_insertion_point(field_get:vega.BTCDeposit.target_party_id) return _internal_target_party_id(); } -inline void ERC20Deposit::set_target_party_id(const std::string& value) { +inline void BTCDeposit::set_target_party_id(const std::string& value) { _internal_set_target_party_id(value); - // @@protoc_insertion_point(field_set:vega.ERC20Deposit.target_party_id) + // @@protoc_insertion_point(field_set:vega.BTCDeposit.target_party_id) } -inline std::string* ERC20Deposit::mutable_target_party_id() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.target_party_id) +inline std::string* BTCDeposit::mutable_target_party_id() { + // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.target_party_id) return _internal_mutable_target_party_id(); } -inline const std::string& ERC20Deposit::_internal_target_party_id() const { +inline const std::string& BTCDeposit::_internal_target_party_id() const { return target_party_id_.Get(); } -inline void ERC20Deposit::_internal_set_target_party_id(const std::string& value) { +inline void BTCDeposit::_internal_set_target_party_id(const std::string& value) { target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Deposit::set_target_party_id(std::string&& value) { +inline void BTCDeposit::set_target_party_id(std::string&& value) { target_party_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.target_party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.target_party_id) } -inline void ERC20Deposit::set_target_party_id(const char* value) { +inline void BTCDeposit::set_target_party_id(const char* value) { GOOGLE_DCHECK(value != nullptr); target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.target_party_id) + // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.target_party_id) } -inline void ERC20Deposit::set_target_party_id(const char* value, +inline void BTCDeposit::set_target_party_id(const char* value, size_t size) { target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.target_party_id) + // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.target_party_id) } -inline std::string* ERC20Deposit::_internal_mutable_target_party_id() { +inline std::string* BTCDeposit::_internal_mutable_target_party_id() { return target_party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Deposit::release_target_party_id() { - // @@protoc_insertion_point(field_release:vega.ERC20Deposit.target_party_id) +inline std::string* BTCDeposit::release_target_party_id() { + // @@protoc_insertion_point(field_release:vega.BTCDeposit.target_party_id) return target_party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Deposit::set_allocated_target_party_id(std::string* target_party_id) { +inline void BTCDeposit::set_allocated_target_party_id(std::string* target_party_id) { if (target_party_id != nullptr) { } else { @@ -3878,247 +5255,247 @@ inline void ERC20Deposit::set_allocated_target_party_id(std::string* target_part } target_party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_party_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.target_party_id) + // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.target_party_id) } -// string amount = 4 [json_name = "amount"]; -inline void ERC20Deposit::clear_amount() { - amount_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// BTCWithdrawal + +// string vega_asset_id = 1 [json_name = "vegaAssetId"]; +inline void BTCWithdrawal::clear_vega_asset_id() { + vega_asset_id_.ClearToEmpty(); } -inline const std::string& ERC20Deposit::amount() const { - // @@protoc_insertion_point(field_get:vega.ERC20Deposit.amount) - return _internal_amount(); +inline const std::string& BTCWithdrawal::vega_asset_id() const { + // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.vega_asset_id) + return _internal_vega_asset_id(); } -inline void ERC20Deposit::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.ERC20Deposit.amount) +inline void BTCWithdrawal::set_vega_asset_id(const std::string& value) { + _internal_set_vega_asset_id(value); + // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.vega_asset_id) } -inline std::string* ERC20Deposit::mutable_amount() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Deposit.amount) - return _internal_mutable_amount(); +inline std::string* BTCWithdrawal::mutable_vega_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.vega_asset_id) + return _internal_mutable_vega_asset_id(); } -inline const std::string& ERC20Deposit::_internal_amount() const { - return amount_.Get(); +inline const std::string& BTCWithdrawal::_internal_vega_asset_id() const { + return vega_asset_id_.Get(); } -inline void ERC20Deposit::_internal_set_amount(const std::string& value) { +inline void BTCWithdrawal::_internal_set_vega_asset_id(const std::string& value) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Deposit::set_amount(std::string&& value) { +inline void BTCWithdrawal::set_vega_asset_id(std::string&& value) { - amount_.Set( + vega_asset_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Deposit.amount) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.vega_asset_id) } -inline void ERC20Deposit::set_amount(const char* value) { +inline void BTCWithdrawal::set_vega_asset_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Deposit.amount) + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.vega_asset_id) } -inline void ERC20Deposit::set_amount(const char* value, +inline void BTCWithdrawal::set_vega_asset_id(const char* value, size_t size) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Deposit.amount) + // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.vega_asset_id) } -inline std::string* ERC20Deposit::_internal_mutable_amount() { +inline std::string* BTCWithdrawal::_internal_mutable_vega_asset_id() { - return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Deposit::release_amount() { - // @@protoc_insertion_point(field_release:vega.ERC20Deposit.amount) - return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* BTCWithdrawal::release_vega_asset_id() { + // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.vega_asset_id) + return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Deposit::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { +inline void BTCWithdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { + if (vega_asset_id != nullptr) { } else { } - amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Deposit.amount) + // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.vega_asset_id) } -// ------------------------------------------------------------------- - -// ERC20Withdrawal - -// string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void ERC20Withdrawal::clear_vega_asset_id() { - vega_asset_id_.ClearToEmpty(); +// string source_party_id = 2 [json_name = "sourcePartyId"]; +inline void BTCWithdrawal::clear_source_party_id() { + source_party_id_.ClearToEmpty(); } -inline const std::string& ERC20Withdrawal::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.vega_asset_id) - return _internal_vega_asset_id(); +inline const std::string& BTCWithdrawal::source_party_id() const { + // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.source_party_id) + return _internal_source_party_id(); } -inline void ERC20Withdrawal::set_vega_asset_id(const std::string& value) { - _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.vega_asset_id) +inline void BTCWithdrawal::set_source_party_id(const std::string& value) { + _internal_set_source_party_id(value); + // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.source_party_id) } -inline std::string* ERC20Withdrawal::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.vega_asset_id) - return _internal_mutable_vega_asset_id(); +inline std::string* BTCWithdrawal::mutable_source_party_id() { + // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.source_party_id) + return _internal_mutable_source_party_id(); } -inline const std::string& ERC20Withdrawal::_internal_vega_asset_id() const { - return vega_asset_id_.Get(); +inline const std::string& BTCWithdrawal::_internal_source_party_id() const { + return source_party_id_.Get(); } -inline void ERC20Withdrawal::_internal_set_vega_asset_id(const std::string& value) { +inline void BTCWithdrawal::_internal_set_source_party_id(const std::string& value) { - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Withdrawal::set_vega_asset_id(std::string&& value) { +inline void BTCWithdrawal::set_source_party_id(std::string&& value) { - vega_asset_id_.Set( + source_party_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.source_party_id) } -inline void ERC20Withdrawal::set_vega_asset_id(const char* value) { +inline void BTCWithdrawal::set_source_party_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.vega_asset_id) + source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.source_party_id) } -inline void ERC20Withdrawal::set_vega_asset_id(const char* value, +inline void BTCWithdrawal::set_source_party_id(const char* value, size_t size) { - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.source_party_id) } -inline std::string* ERC20Withdrawal::_internal_mutable_vega_asset_id() { +inline std::string* BTCWithdrawal::_internal_mutable_source_party_id() { - return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return source_party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Withdrawal::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.vega_asset_id) - return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* BTCWithdrawal::release_source_party_id() { + // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.source_party_id) + return source_party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Withdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { - if (vega_asset_id != nullptr) { +inline void BTCWithdrawal::set_allocated_source_party_id(std::string* source_party_id) { + if (source_party_id != nullptr) { } else { } - vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + source_party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_party_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.vega_asset_id) + // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.source_party_id) } -// string target_ethereum_address = 2 [json_name = "targetEthereumAddress"]; -inline void ERC20Withdrawal::clear_target_ethereum_address() { - target_ethereum_address_.ClearToEmpty(); +// string target_btc_address = 3 [json_name = "targetBtcAddress"]; +inline void BTCWithdrawal::clear_target_btc_address() { + target_btc_address_.ClearToEmpty(); } -inline const std::string& ERC20Withdrawal::target_ethereum_address() const { - // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.target_ethereum_address) - return _internal_target_ethereum_address(); +inline const std::string& BTCWithdrawal::target_btc_address() const { + // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.target_btc_address) + return _internal_target_btc_address(); } -inline void ERC20Withdrawal::set_target_ethereum_address(const std::string& value) { - _internal_set_target_ethereum_address(value); - // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.target_ethereum_address) +inline void BTCWithdrawal::set_target_btc_address(const std::string& value) { + _internal_set_target_btc_address(value); + // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.target_btc_address) } -inline std::string* ERC20Withdrawal::mutable_target_ethereum_address() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.target_ethereum_address) - return _internal_mutable_target_ethereum_address(); +inline std::string* BTCWithdrawal::mutable_target_btc_address() { + // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.target_btc_address) + return _internal_mutable_target_btc_address(); } -inline const std::string& ERC20Withdrawal::_internal_target_ethereum_address() const { - return target_ethereum_address_.Get(); +inline const std::string& BTCWithdrawal::_internal_target_btc_address() const { + return target_btc_address_.Get(); } -inline void ERC20Withdrawal::_internal_set_target_ethereum_address(const std::string& value) { +inline void BTCWithdrawal::_internal_set_target_btc_address(const std::string& value) { - target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Withdrawal::set_target_ethereum_address(std::string&& value) { +inline void BTCWithdrawal::set_target_btc_address(std::string&& value) { - target_ethereum_address_.Set( + target_btc_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.target_ethereum_address) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.target_btc_address) } -inline void ERC20Withdrawal::set_target_ethereum_address(const char* value) { +inline void BTCWithdrawal::set_target_btc_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.target_ethereum_address) + target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.target_btc_address) } -inline void ERC20Withdrawal::set_target_ethereum_address(const char* value, +inline void BTCWithdrawal::set_target_btc_address(const char* value, size_t size) { - target_ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.target_ethereum_address) + // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.target_btc_address) } -inline std::string* ERC20Withdrawal::_internal_mutable_target_ethereum_address() { +inline std::string* BTCWithdrawal::_internal_mutable_target_btc_address() { - return target_ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return target_btc_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Withdrawal::release_target_ethereum_address() { - // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.target_ethereum_address) - return target_ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* BTCWithdrawal::release_target_btc_address() { + // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.target_btc_address) + return target_btc_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Withdrawal::set_allocated_target_ethereum_address(std::string* target_ethereum_address) { - if (target_ethereum_address != nullptr) { +inline void BTCWithdrawal::set_allocated_target_btc_address(std::string* target_btc_address) { + if (target_btc_address != nullptr) { } else { } - target_ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_ethereum_address, + target_btc_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_btc_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.target_ethereum_address) + // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.target_btc_address) } -// string reference_nonce = 3 [json_name = "referenceNonce"]; -inline void ERC20Withdrawal::clear_reference_nonce() { +// string reference_nonce = 4 [json_name = "referenceNonce"]; +inline void BTCWithdrawal::clear_reference_nonce() { reference_nonce_.ClearToEmpty(); } -inline const std::string& ERC20Withdrawal::reference_nonce() const { - // @@protoc_insertion_point(field_get:vega.ERC20Withdrawal.reference_nonce) +inline const std::string& BTCWithdrawal::reference_nonce() const { + // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.reference_nonce) return _internal_reference_nonce(); } -inline void ERC20Withdrawal::set_reference_nonce(const std::string& value) { +inline void BTCWithdrawal::set_reference_nonce(const std::string& value) { _internal_set_reference_nonce(value); - // @@protoc_insertion_point(field_set:vega.ERC20Withdrawal.reference_nonce) + // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.reference_nonce) } -inline std::string* ERC20Withdrawal::mutable_reference_nonce() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Withdrawal.reference_nonce) +inline std::string* BTCWithdrawal::mutable_reference_nonce() { + // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.reference_nonce) return _internal_mutable_reference_nonce(); } -inline const std::string& ERC20Withdrawal::_internal_reference_nonce() const { +inline const std::string& BTCWithdrawal::_internal_reference_nonce() const { return reference_nonce_.Get(); } -inline void ERC20Withdrawal::_internal_set_reference_nonce(const std::string& value) { +inline void BTCWithdrawal::_internal_set_reference_nonce(const std::string& value) { reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ERC20Withdrawal::set_reference_nonce(std::string&& value) { +inline void BTCWithdrawal::set_reference_nonce(std::string&& value) { reference_nonce_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ERC20Withdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.reference_nonce) } -inline void ERC20Withdrawal::set_reference_nonce(const char* value) { +inline void BTCWithdrawal::set_reference_nonce(const char* value) { GOOGLE_DCHECK(value != nullptr); reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ERC20Withdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.reference_nonce) } -inline void ERC20Withdrawal::set_reference_nonce(const char* value, +inline void BTCWithdrawal::set_reference_nonce(const char* value, size_t size) { reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ERC20Withdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.reference_nonce) } -inline std::string* ERC20Withdrawal::_internal_mutable_reference_nonce() { +inline std::string* BTCWithdrawal::_internal_mutable_reference_nonce() { return reference_nonce_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ERC20Withdrawal::release_reference_nonce() { - // @@protoc_insertion_point(field_release:vega.ERC20Withdrawal.reference_nonce) +inline std::string* BTCWithdrawal::release_reference_nonce() { + // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.reference_nonce) return reference_nonce_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ERC20Withdrawal::set_allocated_reference_nonce(std::string* reference_nonce) { +inline void BTCWithdrawal::set_allocated_reference_nonce(std::string* reference_nonce) { if (reference_nonce != nullptr) { } else { @@ -4126,210 +5503,64 @@ inline void ERC20Withdrawal::set_allocated_reference_nonce(std::string* referenc } reference_nonce_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference_nonce, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ERC20Withdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.reference_nonce) } // ------------------------------------------------------------------- -// ERC20Event +// BTCEvent // uint64 index = 1 [json_name = "index"]; -inline void ERC20Event::clear_index() { +inline void BTCEvent::clear_index() { index_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::_internal_index() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::_internal_index() const { return index_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::index() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.index) +inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::index() const { + // @@protoc_insertion_point(field_get:vega.BTCEvent.index) return _internal_index(); } -inline void ERC20Event::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void BTCEvent::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { index_ = value; } -inline void ERC20Event::set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void BTCEvent::set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_index(value); - // @@protoc_insertion_point(field_set:vega.ERC20Event.index) + // @@protoc_insertion_point(field_set:vega.BTCEvent.index) } // uint64 block = 2 [json_name = "block"]; -inline void ERC20Event::clear_block() { +inline void BTCEvent::clear_block() { block_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::_internal_block() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::_internal_block() const { return block_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 ERC20Event::block() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.block) +inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::block() const { + // @@protoc_insertion_point(field_get:vega.BTCEvent.block) return _internal_block(); } -inline void ERC20Event::_internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void BTCEvent::_internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { block_ = value; } -inline void ERC20Event::set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void BTCEvent::set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_block(value); - // @@protoc_insertion_point(field_set:vega.ERC20Event.block) -} - -// .vega.ERC20AssetList asset_list = 1001 [json_name = "assetList"]; -inline bool ERC20Event::_internal_has_asset_list() const { - return action_case() == kAssetList; -} -inline bool ERC20Event::has_asset_list() const { - return _internal_has_asset_list(); -} -inline void ERC20Event::set_has_asset_list() { - _oneof_case_[0] = kAssetList; -} -inline void ERC20Event::clear_asset_list() { - if (_internal_has_asset_list()) { - if (GetArena() == nullptr) { - delete action_.asset_list_; - } - clear_has_action(); - } -} -inline ::vega::ERC20AssetList* ERC20Event::release_asset_list() { - // @@protoc_insertion_point(field_release:vega.ERC20Event.asset_list) - if (_internal_has_asset_list()) { - clear_has_action(); - ::vega::ERC20AssetList* temp = action_.asset_list_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - action_.asset_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::vega::ERC20AssetList& ERC20Event::_internal_asset_list() const { - return _internal_has_asset_list() - ? *action_.asset_list_ - : reinterpret_cast< ::vega::ERC20AssetList&>(::vega::_ERC20AssetList_default_instance_); -} -inline const ::vega::ERC20AssetList& ERC20Event::asset_list() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.asset_list) - return _internal_asset_list(); -} -inline ::vega::ERC20AssetList* ERC20Event::unsafe_arena_release_asset_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.asset_list) - if (_internal_has_asset_list()) { - clear_has_action(); - ::vega::ERC20AssetList* temp = action_.asset_list_; - action_.asset_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ERC20Event::unsafe_arena_set_allocated_asset_list(::vega::ERC20AssetList* asset_list) { - clear_action(); - if (asset_list) { - set_has_asset_list(); - action_.asset_list_ = asset_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.asset_list) -} -inline ::vega::ERC20AssetList* ERC20Event::_internal_mutable_asset_list() { - if (!_internal_has_asset_list()) { - clear_action(); - set_has_asset_list(); - action_.asset_list_ = CreateMaybeMessage< ::vega::ERC20AssetList >(GetArena()); - } - return action_.asset_list_; -} -inline ::vega::ERC20AssetList* ERC20Event::mutable_asset_list() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Event.asset_list) - return _internal_mutable_asset_list(); -} - -// .vega.ERC20AssetDelist asset_delist = 1002 [json_name = "assetDelist"]; -inline bool ERC20Event::_internal_has_asset_delist() const { - return action_case() == kAssetDelist; -} -inline bool ERC20Event::has_asset_delist() const { - return _internal_has_asset_delist(); -} -inline void ERC20Event::set_has_asset_delist() { - _oneof_case_[0] = kAssetDelist; -} -inline void ERC20Event::clear_asset_delist() { - if (_internal_has_asset_delist()) { - if (GetArena() == nullptr) { - delete action_.asset_delist_; - } - clear_has_action(); - } -} -inline ::vega::ERC20AssetDelist* ERC20Event::release_asset_delist() { - // @@protoc_insertion_point(field_release:vega.ERC20Event.asset_delist) - if (_internal_has_asset_delist()) { - clear_has_action(); - ::vega::ERC20AssetDelist* temp = action_.asset_delist_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - action_.asset_delist_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::vega::ERC20AssetDelist& ERC20Event::_internal_asset_delist() const { - return _internal_has_asset_delist() - ? *action_.asset_delist_ - : reinterpret_cast< ::vega::ERC20AssetDelist&>(::vega::_ERC20AssetDelist_default_instance_); -} -inline const ::vega::ERC20AssetDelist& ERC20Event::asset_delist() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.asset_delist) - return _internal_asset_delist(); -} -inline ::vega::ERC20AssetDelist* ERC20Event::unsafe_arena_release_asset_delist() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.asset_delist) - if (_internal_has_asset_delist()) { - clear_has_action(); - ::vega::ERC20AssetDelist* temp = action_.asset_delist_; - action_.asset_delist_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ERC20Event::unsafe_arena_set_allocated_asset_delist(::vega::ERC20AssetDelist* asset_delist) { - clear_action(); - if (asset_delist) { - set_has_asset_delist(); - action_.asset_delist_ = asset_delist; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.asset_delist) -} -inline ::vega::ERC20AssetDelist* ERC20Event::_internal_mutable_asset_delist() { - if (!_internal_has_asset_delist()) { - clear_action(); - set_has_asset_delist(); - action_.asset_delist_ = CreateMaybeMessage< ::vega::ERC20AssetDelist >(GetArena()); - } - return action_.asset_delist_; -} -inline ::vega::ERC20AssetDelist* ERC20Event::mutable_asset_delist() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Event.asset_delist) - return _internal_mutable_asset_delist(); + // @@protoc_insertion_point(field_set:vega.BTCEvent.block) } -// .vega.ERC20Deposit deposit = 1003 [json_name = "deposit"]; -inline bool ERC20Event::_internal_has_deposit() const { +// .vega.BTCDeposit deposit = 1001 [json_name = "deposit"]; +inline bool BTCEvent::_internal_has_deposit() const { return action_case() == kDeposit; } -inline bool ERC20Event::has_deposit() const { +inline bool BTCEvent::has_deposit() const { return _internal_has_deposit(); } -inline void ERC20Event::set_has_deposit() { +inline void BTCEvent::set_has_deposit() { _oneof_case_[0] = kDeposit; } -inline void ERC20Event::clear_deposit() { +inline void BTCEvent::clear_deposit() { if (_internal_has_deposit()) { if (GetArena() == nullptr) { delete action_.deposit_; @@ -4337,11 +5568,11 @@ inline void ERC20Event::clear_deposit() { clear_has_action(); } } -inline ::vega::ERC20Deposit* ERC20Event::release_deposit() { - // @@protoc_insertion_point(field_release:vega.ERC20Event.deposit) +inline ::vega::BTCDeposit* BTCEvent::release_deposit() { + // @@protoc_insertion_point(field_release:vega.BTCEvent.deposit) if (_internal_has_deposit()) { clear_has_action(); - ::vega::ERC20Deposit* temp = action_.deposit_; + ::vega::BTCDeposit* temp = action_.deposit_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -4351,58 +5582,58 @@ inline ::vega::ERC20Deposit* ERC20Event::release_deposit() { return nullptr; } } -inline const ::vega::ERC20Deposit& ERC20Event::_internal_deposit() const { +inline const ::vega::BTCDeposit& BTCEvent::_internal_deposit() const { return _internal_has_deposit() ? *action_.deposit_ - : reinterpret_cast< ::vega::ERC20Deposit&>(::vega::_ERC20Deposit_default_instance_); + : reinterpret_cast< ::vega::BTCDeposit&>(::vega::_BTCDeposit_default_instance_); } -inline const ::vega::ERC20Deposit& ERC20Event::deposit() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.deposit) +inline const ::vega::BTCDeposit& BTCEvent::deposit() const { + // @@protoc_insertion_point(field_get:vega.BTCEvent.deposit) return _internal_deposit(); } -inline ::vega::ERC20Deposit* ERC20Event::unsafe_arena_release_deposit() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.deposit) +inline ::vega::BTCDeposit* BTCEvent::unsafe_arena_release_deposit() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.BTCEvent.deposit) if (_internal_has_deposit()) { clear_has_action(); - ::vega::ERC20Deposit* temp = action_.deposit_; + ::vega::BTCDeposit* temp = action_.deposit_; action_.deposit_ = nullptr; return temp; } else { return nullptr; } } -inline void ERC20Event::unsafe_arena_set_allocated_deposit(::vega::ERC20Deposit* deposit) { +inline void BTCEvent::unsafe_arena_set_allocated_deposit(::vega::BTCDeposit* deposit) { clear_action(); if (deposit) { set_has_deposit(); action_.deposit_ = deposit; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.deposit) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BTCEvent.deposit) } -inline ::vega::ERC20Deposit* ERC20Event::_internal_mutable_deposit() { +inline ::vega::BTCDeposit* BTCEvent::_internal_mutable_deposit() { if (!_internal_has_deposit()) { clear_action(); set_has_deposit(); - action_.deposit_ = CreateMaybeMessage< ::vega::ERC20Deposit >(GetArena()); + action_.deposit_ = CreateMaybeMessage< ::vega::BTCDeposit >(GetArena()); } return action_.deposit_; } -inline ::vega::ERC20Deposit* ERC20Event::mutable_deposit() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Event.deposit) +inline ::vega::BTCDeposit* BTCEvent::mutable_deposit() { + // @@protoc_insertion_point(field_mutable:vega.BTCEvent.deposit) return _internal_mutable_deposit(); } -// .vega.ERC20Withdrawal withdrawal = 1004 [json_name = "withdrawal"]; -inline bool ERC20Event::_internal_has_withdrawal() const { +// .vega.BTCWithdrawal withdrawal = 1002 [json_name = "withdrawal"]; +inline bool BTCEvent::_internal_has_withdrawal() const { return action_case() == kWithdrawal; } -inline bool ERC20Event::has_withdrawal() const { +inline bool BTCEvent::has_withdrawal() const { return _internal_has_withdrawal(); } -inline void ERC20Event::set_has_withdrawal() { +inline void BTCEvent::set_has_withdrawal() { _oneof_case_[0] = kWithdrawal; } -inline void ERC20Event::clear_withdrawal() { +inline void BTCEvent::clear_withdrawal() { if (_internal_has_withdrawal()) { if (GetArena() == nullptr) { delete action_.withdrawal_; @@ -4410,11 +5641,11 @@ inline void ERC20Event::clear_withdrawal() { clear_has_action(); } } -inline ::vega::ERC20Withdrawal* ERC20Event::release_withdrawal() { - // @@protoc_insertion_point(field_release:vega.ERC20Event.withdrawal) +inline ::vega::BTCWithdrawal* BTCEvent::release_withdrawal() { + // @@protoc_insertion_point(field_release:vega.BTCEvent.withdrawal) if (_internal_has_withdrawal()) { clear_has_action(); - ::vega::ERC20Withdrawal* temp = action_.withdrawal_; + ::vega::BTCWithdrawal* temp = action_.withdrawal_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -4424,1373 +5655,1352 @@ inline ::vega::ERC20Withdrawal* ERC20Event::release_withdrawal() { return nullptr; } } -inline const ::vega::ERC20Withdrawal& ERC20Event::_internal_withdrawal() const { +inline const ::vega::BTCWithdrawal& BTCEvent::_internal_withdrawal() const { return _internal_has_withdrawal() ? *action_.withdrawal_ - : reinterpret_cast< ::vega::ERC20Withdrawal&>(::vega::_ERC20Withdrawal_default_instance_); + : reinterpret_cast< ::vega::BTCWithdrawal&>(::vega::_BTCWithdrawal_default_instance_); } -inline const ::vega::ERC20Withdrawal& ERC20Event::withdrawal() const { - // @@protoc_insertion_point(field_get:vega.ERC20Event.withdrawal) +inline const ::vega::BTCWithdrawal& BTCEvent::withdrawal() const { + // @@protoc_insertion_point(field_get:vega.BTCEvent.withdrawal) return _internal_withdrawal(); } -inline ::vega::ERC20Withdrawal* ERC20Event::unsafe_arena_release_withdrawal() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ERC20Event.withdrawal) +inline ::vega::BTCWithdrawal* BTCEvent::unsafe_arena_release_withdrawal() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.BTCEvent.withdrawal) if (_internal_has_withdrawal()) { clear_has_action(); - ::vega::ERC20Withdrawal* temp = action_.withdrawal_; + ::vega::BTCWithdrawal* temp = action_.withdrawal_; action_.withdrawal_ = nullptr; return temp; } else { return nullptr; } } -inline void ERC20Event::unsafe_arena_set_allocated_withdrawal(::vega::ERC20Withdrawal* withdrawal) { +inline void BTCEvent::unsafe_arena_set_allocated_withdrawal(::vega::BTCWithdrawal* withdrawal) { clear_action(); if (withdrawal) { set_has_withdrawal(); action_.withdrawal_ = withdrawal; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ERC20Event.withdrawal) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BTCEvent.withdrawal) } -inline ::vega::ERC20Withdrawal* ERC20Event::_internal_mutable_withdrawal() { +inline ::vega::BTCWithdrawal* BTCEvent::_internal_mutable_withdrawal() { if (!_internal_has_withdrawal()) { clear_action(); set_has_withdrawal(); - action_.withdrawal_ = CreateMaybeMessage< ::vega::ERC20Withdrawal >(GetArena()); + action_.withdrawal_ = CreateMaybeMessage< ::vega::BTCWithdrawal >(GetArena()); } return action_.withdrawal_; } -inline ::vega::ERC20Withdrawal* ERC20Event::mutable_withdrawal() { - // @@protoc_insertion_point(field_mutable:vega.ERC20Event.withdrawal) +inline ::vega::BTCWithdrawal* BTCEvent::mutable_withdrawal() { + // @@protoc_insertion_point(field_mutable:vega.BTCEvent.withdrawal) return _internal_mutable_withdrawal(); } -inline bool ERC20Event::has_action() const { +inline bool BTCEvent::has_action() const { return action_case() != ACTION_NOT_SET; } -inline void ERC20Event::clear_has_action() { +inline void BTCEvent::clear_has_action() { _oneof_case_[0] = ACTION_NOT_SET; } -inline ERC20Event::ActionCase ERC20Event::action_case() const { - return ERC20Event::ActionCase(_oneof_case_[0]); +inline BTCEvent::ActionCase BTCEvent::action_case() const { + return BTCEvent::ActionCase(_oneof_case_[0]); } // ------------------------------------------------------------------- -// BTCDeposit +// EthereumAddress -// string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void BTCDeposit::clear_vega_asset_id() { - vega_asset_id_.ClearToEmpty(); +// string address = 1 [json_name = "address"]; +inline void EthereumAddress::clear_address() { + address_.ClearToEmpty(); } -inline const std::string& BTCDeposit::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.BTCDeposit.vega_asset_id) - return _internal_vega_asset_id(); +inline const std::string& EthereumAddress::address() const { + // @@protoc_insertion_point(field_get:vega.EthereumAddress.address) + return _internal_address(); } -inline void BTCDeposit::set_vega_asset_id(const std::string& value) { - _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.BTCDeposit.vega_asset_id) +inline void EthereumAddress::set_address(const std::string& value) { + _internal_set_address(value); + // @@protoc_insertion_point(field_set:vega.EthereumAddress.address) } -inline std::string* BTCDeposit::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.vega_asset_id) - return _internal_mutable_vega_asset_id(); +inline std::string* EthereumAddress::mutable_address() { + // @@protoc_insertion_point(field_mutable:vega.EthereumAddress.address) + return _internal_mutable_address(); } -inline const std::string& BTCDeposit::_internal_vega_asset_id() const { - return vega_asset_id_.Get(); +inline const std::string& EthereumAddress::_internal_address() const { + return address_.Get(); } -inline void BTCDeposit::_internal_set_vega_asset_id(const std::string& value) { +inline void EthereumAddress::_internal_set_address(const std::string& value) { - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BTCDeposit::set_vega_asset_id(std::string&& value) { +inline void EthereumAddress::set_address(std::string&& value) { - vega_asset_id_.Set( + address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_rvalue:vega.EthereumAddress.address) } -inline void BTCDeposit::set_vega_asset_id(const char* value) { +inline void EthereumAddress::set_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.vega_asset_id) + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.EthereumAddress.address) } -inline void BTCDeposit::set_vega_asset_id(const char* value, +inline void EthereumAddress::set_address(const char* value, size_t size) { - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_pointer:vega.EthereumAddress.address) } -inline std::string* BTCDeposit::_internal_mutable_vega_asset_id() { +inline std::string* EthereumAddress::_internal_mutable_address() { - return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BTCDeposit::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.BTCDeposit.vega_asset_id) - return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* EthereumAddress::release_address() { + // @@protoc_insertion_point(field_release:vega.EthereumAddress.address) + return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BTCDeposit::set_allocated_vega_asset_id(std::string* vega_asset_id) { - if (vega_asset_id != nullptr) { +inline void EthereumAddress::set_allocated_address(std::string* address) { + if (address != nullptr) { } else { } - vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, + address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.vega_asset_id) + // @@protoc_insertion_point(field_set_allocated:vega.EthereumAddress.address) } -// string source_btc_address = 2 [json_name = "sourceBtcAddress"]; -inline void BTCDeposit::clear_source_btc_address() { - source_btc_address_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// BitcoinAddress + +// string address = 1 [json_name = "address"]; +inline void BitcoinAddress::clear_address() { + address_.ClearToEmpty(); } -inline const std::string& BTCDeposit::source_btc_address() const { - // @@protoc_insertion_point(field_get:vega.BTCDeposit.source_btc_address) - return _internal_source_btc_address(); +inline const std::string& BitcoinAddress::address() const { + // @@protoc_insertion_point(field_get:vega.BitcoinAddress.address) + return _internal_address(); } -inline void BTCDeposit::set_source_btc_address(const std::string& value) { - _internal_set_source_btc_address(value); - // @@protoc_insertion_point(field_set:vega.BTCDeposit.source_btc_address) +inline void BitcoinAddress::set_address(const std::string& value) { + _internal_set_address(value); + // @@protoc_insertion_point(field_set:vega.BitcoinAddress.address) } -inline std::string* BTCDeposit::mutable_source_btc_address() { - // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.source_btc_address) - return _internal_mutable_source_btc_address(); +inline std::string* BitcoinAddress::mutable_address() { + // @@protoc_insertion_point(field_mutable:vega.BitcoinAddress.address) + return _internal_mutable_address(); } -inline const std::string& BTCDeposit::_internal_source_btc_address() const { - return source_btc_address_.Get(); +inline const std::string& BitcoinAddress::_internal_address() const { + return address_.Get(); } -inline void BTCDeposit::_internal_set_source_btc_address(const std::string& value) { +inline void BitcoinAddress::_internal_set_address(const std::string& value) { - source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BTCDeposit::set_source_btc_address(std::string&& value) { +inline void BitcoinAddress::set_address(std::string&& value) { - source_btc_address_.Set( + address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.source_btc_address) + // @@protoc_insertion_point(field_set_rvalue:vega.BitcoinAddress.address) } -inline void BTCDeposit::set_source_btc_address(const char* value) { +inline void BitcoinAddress::set_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.source_btc_address) + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BitcoinAddress.address) } -inline void BTCDeposit::set_source_btc_address(const char* value, +inline void BitcoinAddress::set_address(const char* value, size_t size) { - source_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.source_btc_address) + // @@protoc_insertion_point(field_set_pointer:vega.BitcoinAddress.address) } -inline std::string* BTCDeposit::_internal_mutable_source_btc_address() { +inline std::string* BitcoinAddress::_internal_mutable_address() { - return source_btc_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BTCDeposit::release_source_btc_address() { - // @@protoc_insertion_point(field_release:vega.BTCDeposit.source_btc_address) - return source_btc_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* BitcoinAddress::release_address() { + // @@protoc_insertion_point(field_release:vega.BitcoinAddress.address) + return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BTCDeposit::set_allocated_source_btc_address(std::string* source_btc_address) { - if (source_btc_address != nullptr) { +inline void BitcoinAddress::set_allocated_address(std::string* address) { + if (address != nullptr) { } else { } - source_btc_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_btc_address, + address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.source_btc_address) + // @@protoc_insertion_point(field_set_allocated:vega.BitcoinAddress.address) } -// string target_party_id = 3 [json_name = "targetPartyId"]; -inline void BTCDeposit::clear_target_party_id() { - target_party_id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// Identifier + +// .vega.EthereumAddress ethereum_address = 1 [json_name = "ethereumAddress"]; +inline bool Identifier::_internal_has_ethereum_address() const { + return identifier_case() == kEthereumAddress; } -inline const std::string& BTCDeposit::target_party_id() const { - // @@protoc_insertion_point(field_get:vega.BTCDeposit.target_party_id) - return _internal_target_party_id(); +inline bool Identifier::has_ethereum_address() const { + return _internal_has_ethereum_address(); } -inline void BTCDeposit::set_target_party_id(const std::string& value) { - _internal_set_target_party_id(value); - // @@protoc_insertion_point(field_set:vega.BTCDeposit.target_party_id) +inline void Identifier::set_has_ethereum_address() { + _oneof_case_[0] = kEthereumAddress; } -inline std::string* BTCDeposit::mutable_target_party_id() { - // @@protoc_insertion_point(field_mutable:vega.BTCDeposit.target_party_id) - return _internal_mutable_target_party_id(); +inline void Identifier::clear_ethereum_address() { + if (_internal_has_ethereum_address()) { + if (GetArena() == nullptr) { + delete identifier_.ethereum_address_; + } + clear_has_identifier(); + } } -inline const std::string& BTCDeposit::_internal_target_party_id() const { - return target_party_id_.Get(); +inline ::vega::EthereumAddress* Identifier::release_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.Identifier.ethereum_address) + if (_internal_has_ethereum_address()) { + clear_has_identifier(); + ::vega::EthereumAddress* temp = identifier_.ethereum_address_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + identifier_.ethereum_address_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void BTCDeposit::_internal_set_target_party_id(const std::string& value) { - - target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline const ::vega::EthereumAddress& Identifier::_internal_ethereum_address() const { + return _internal_has_ethereum_address() + ? *identifier_.ethereum_address_ + : reinterpret_cast< ::vega::EthereumAddress&>(::vega::_EthereumAddress_default_instance_); } -inline void BTCDeposit::set_target_party_id(std::string&& value) { - - target_party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCDeposit.target_party_id) +inline const ::vega::EthereumAddress& Identifier::ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.Identifier.ethereum_address) + return _internal_ethereum_address(); +} +inline ::vega::EthereumAddress* Identifier::unsafe_arena_release_ethereum_address() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.Identifier.ethereum_address) + if (_internal_has_ethereum_address()) { + clear_has_identifier(); + ::vega::EthereumAddress* temp = identifier_.ethereum_address_; + identifier_.ethereum_address_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Identifier::unsafe_arena_set_allocated_ethereum_address(::vega::EthereumAddress* ethereum_address) { + clear_identifier(); + if (ethereum_address) { + set_has_ethereum_address(); + identifier_.ethereum_address_ = ethereum_address; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Identifier.ethereum_address) +} +inline ::vega::EthereumAddress* Identifier::_internal_mutable_ethereum_address() { + if (!_internal_has_ethereum_address()) { + clear_identifier(); + set_has_ethereum_address(); + identifier_.ethereum_address_ = CreateMaybeMessage< ::vega::EthereumAddress >(GetArena()); + } + return identifier_.ethereum_address_; } -inline void BTCDeposit::set_target_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCDeposit.target_party_id) +inline ::vega::EthereumAddress* Identifier::mutable_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.Identifier.ethereum_address) + return _internal_mutable_ethereum_address(); } -inline void BTCDeposit::set_target_party_id(const char* value, - size_t size) { - target_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCDeposit.target_party_id) +// .vega.BitcoinAddress bitcoin_address = 2 [json_name = "bitcoinAddress"]; +inline bool Identifier::_internal_has_bitcoin_address() const { + return identifier_case() == kBitcoinAddress; } -inline std::string* BTCDeposit::_internal_mutable_target_party_id() { - - return target_party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline bool Identifier::has_bitcoin_address() const { + return _internal_has_bitcoin_address(); } -inline std::string* BTCDeposit::release_target_party_id() { - // @@protoc_insertion_point(field_release:vega.BTCDeposit.target_party_id) - return target_party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Identifier::set_has_bitcoin_address() { + _oneof_case_[0] = kBitcoinAddress; } -inline void BTCDeposit::set_allocated_target_party_id(std::string* target_party_id) { - if (target_party_id != nullptr) { - - } else { - +inline void Identifier::clear_bitcoin_address() { + if (_internal_has_bitcoin_address()) { + if (GetArena() == nullptr) { + delete identifier_.bitcoin_address_; + } + clear_has_identifier(); } - target_party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCDeposit.target_party_id) -} - -// ------------------------------------------------------------------- - -// BTCWithdrawal - -// string vega_asset_id = 1 [json_name = "vegaAssetId"]; -inline void BTCWithdrawal::clear_vega_asset_id() { - vega_asset_id_.ClearToEmpty(); } -inline const std::string& BTCWithdrawal::vega_asset_id() const { - // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.vega_asset_id) - return _internal_vega_asset_id(); +inline ::vega::BitcoinAddress* Identifier::release_bitcoin_address() { + // @@protoc_insertion_point(field_release:vega.Identifier.bitcoin_address) + if (_internal_has_bitcoin_address()) { + clear_has_identifier(); + ::vega::BitcoinAddress* temp = identifier_.bitcoin_address_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + identifier_.bitcoin_address_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void BTCWithdrawal::set_vega_asset_id(const std::string& value) { - _internal_set_vega_asset_id(value); - // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.vega_asset_id) +inline const ::vega::BitcoinAddress& Identifier::_internal_bitcoin_address() const { + return _internal_has_bitcoin_address() + ? *identifier_.bitcoin_address_ + : reinterpret_cast< ::vega::BitcoinAddress&>(::vega::_BitcoinAddress_default_instance_); } -inline std::string* BTCWithdrawal::mutable_vega_asset_id() { - // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.vega_asset_id) - return _internal_mutable_vega_asset_id(); +inline const ::vega::BitcoinAddress& Identifier::bitcoin_address() const { + // @@protoc_insertion_point(field_get:vega.Identifier.bitcoin_address) + return _internal_bitcoin_address(); } -inline const std::string& BTCWithdrawal::_internal_vega_asset_id() const { - return vega_asset_id_.Get(); +inline ::vega::BitcoinAddress* Identifier::unsafe_arena_release_bitcoin_address() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.Identifier.bitcoin_address) + if (_internal_has_bitcoin_address()) { + clear_has_identifier(); + ::vega::BitcoinAddress* temp = identifier_.bitcoin_address_; + identifier_.bitcoin_address_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void BTCWithdrawal::_internal_set_vega_asset_id(const std::string& value) { - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline void Identifier::unsafe_arena_set_allocated_bitcoin_address(::vega::BitcoinAddress* bitcoin_address) { + clear_identifier(); + if (bitcoin_address) { + set_has_bitcoin_address(); + identifier_.bitcoin_address_ = bitcoin_address; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Identifier.bitcoin_address) } -inline void BTCWithdrawal::set_vega_asset_id(std::string&& value) { - - vega_asset_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.vega_asset_id) +inline ::vega::BitcoinAddress* Identifier::_internal_mutable_bitcoin_address() { + if (!_internal_has_bitcoin_address()) { + clear_identifier(); + set_has_bitcoin_address(); + identifier_.bitcoin_address_ = CreateMaybeMessage< ::vega::BitcoinAddress >(GetArena()); + } + return identifier_.bitcoin_address_; } -inline void BTCWithdrawal::set_vega_asset_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.vega_asset_id) +inline ::vega::BitcoinAddress* Identifier::mutable_bitcoin_address() { + // @@protoc_insertion_point(field_mutable:vega.Identifier.bitcoin_address) + return _internal_mutable_bitcoin_address(); } -inline void BTCWithdrawal::set_vega_asset_id(const char* value, - size_t size) { - vega_asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.vega_asset_id) +inline bool Identifier::has_identifier() const { + return identifier_case() != IDENTIFIER_NOT_SET; } -inline std::string* BTCWithdrawal::_internal_mutable_vega_asset_id() { - - return vega_asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline void Identifier::clear_has_identifier() { + _oneof_case_[0] = IDENTIFIER_NOT_SET; } -inline std::string* BTCWithdrawal::release_vega_asset_id() { - // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.vega_asset_id) - return vega_asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline Identifier::IdentifierCase Identifier::identifier_case() const { + return Identifier::IdentifierCase(_oneof_case_[0]); } -inline void BTCWithdrawal::set_allocated_vega_asset_id(std::string* vega_asset_id) { - if (vega_asset_id != nullptr) { - - } else { +// ------------------------------------------------------------------- - } - vega_asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_asset_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.vega_asset_id) -} +// AddValidator -// string source_party_id = 2 [json_name = "sourcePartyId"]; -inline void BTCWithdrawal::clear_source_party_id() { - source_party_id_.ClearToEmpty(); +// .vega.Identifier id = 1 [json_name = "id"]; +inline bool AddValidator::_internal_has_id() const { + return this != internal_default_instance() && id_ != nullptr; } -inline const std::string& BTCWithdrawal::source_party_id() const { - // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.source_party_id) - return _internal_source_party_id(); +inline bool AddValidator::has_id() const { + return _internal_has_id(); } -inline void BTCWithdrawal::set_source_party_id(const std::string& value) { - _internal_set_source_party_id(value); - // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.source_party_id) +inline void AddValidator::clear_id() { + if (GetArena() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; } -inline std::string* BTCWithdrawal::mutable_source_party_id() { - // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.source_party_id) - return _internal_mutable_source_party_id(); +inline const ::vega::Identifier& AddValidator::_internal_id() const { + const ::vega::Identifier* p = id_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_Identifier_default_instance_); } -inline const std::string& BTCWithdrawal::_internal_source_party_id() const { - return source_party_id_.Get(); +inline const ::vega::Identifier& AddValidator::id() const { + // @@protoc_insertion_point(field_get:vega.AddValidator.id) + return _internal_id(); } -inline void BTCWithdrawal::_internal_set_source_party_id(const std::string& value) { +inline void AddValidator::unsafe_arena_set_allocated_id( + ::vega::Identifier* id) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(id_); + } + id_ = id; + if (id) { - source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void BTCWithdrawal::set_source_party_id(std::string&& value) { + } else { - source_party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.source_party_id) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.AddValidator.id) } -inline void BTCWithdrawal::set_source_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::Identifier* AddValidator::release_id() { - source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.source_party_id) + ::vega::Identifier* temp = id_; + id_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void BTCWithdrawal::set_source_party_id(const char* value, - size_t size) { +inline ::vega::Identifier* AddValidator::unsafe_arena_release_id() { + // @@protoc_insertion_point(field_release:vega.AddValidator.id) - source_party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.source_party_id) + ::vega::Identifier* temp = id_; + id_ = nullptr; + return temp; } -inline std::string* BTCWithdrawal::_internal_mutable_source_party_id() { +inline ::vega::Identifier* AddValidator::_internal_mutable_id() { - return source_party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::Identifier>(GetArena()); + id_ = p; + } + return id_; } -inline std::string* BTCWithdrawal::release_source_party_id() { - // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.source_party_id) - return source_party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::Identifier* AddValidator::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.AddValidator.id) + return _internal_mutable_id(); } -inline void BTCWithdrawal::set_allocated_source_party_id(std::string* source_party_id) { - if (source_party_id != nullptr) { +inline void AddValidator::set_allocated_id(::vega::Identifier* id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(id); + if (message_arena != submessage_arena) { + id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } } else { } - source_party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.source_party_id) + id_ = id; + // @@protoc_insertion_point(field_set_allocated:vega.AddValidator.id) } -// string target_btc_address = 3 [json_name = "targetBtcAddress"]; -inline void BTCWithdrawal::clear_target_btc_address() { - target_btc_address_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// RemoveValidator + +// .vega.Identifier id = 1 [json_name = "id"]; +inline bool RemoveValidator::_internal_has_id() const { + return this != internal_default_instance() && id_ != nullptr; } -inline const std::string& BTCWithdrawal::target_btc_address() const { - // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.target_btc_address) - return _internal_target_btc_address(); +inline bool RemoveValidator::has_id() const { + return _internal_has_id(); } -inline void BTCWithdrawal::set_target_btc_address(const std::string& value) { - _internal_set_target_btc_address(value); - // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.target_btc_address) +inline void RemoveValidator::clear_id() { + if (GetArena() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; } -inline std::string* BTCWithdrawal::mutable_target_btc_address() { - // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.target_btc_address) - return _internal_mutable_target_btc_address(); +inline const ::vega::Identifier& RemoveValidator::_internal_id() const { + const ::vega::Identifier* p = id_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_Identifier_default_instance_); } -inline const std::string& BTCWithdrawal::_internal_target_btc_address() const { - return target_btc_address_.Get(); +inline const ::vega::Identifier& RemoveValidator::id() const { + // @@protoc_insertion_point(field_get:vega.RemoveValidator.id) + return _internal_id(); } -inline void BTCWithdrawal::_internal_set_target_btc_address(const std::string& value) { +inline void RemoveValidator::unsafe_arena_set_allocated_id( + ::vega::Identifier* id) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(id_); + } + id_ = id; + if (id) { - target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void BTCWithdrawal::set_target_btc_address(std::string&& value) { + } else { - target_btc_address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.target_btc_address) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.RemoveValidator.id) } -inline void BTCWithdrawal::set_target_btc_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::Identifier* RemoveValidator::release_id() { - target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.target_btc_address) + ::vega::Identifier* temp = id_; + id_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void BTCWithdrawal::set_target_btc_address(const char* value, - size_t size) { +inline ::vega::Identifier* RemoveValidator::unsafe_arena_release_id() { + // @@protoc_insertion_point(field_release:vega.RemoveValidator.id) - target_btc_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.target_btc_address) + ::vega::Identifier* temp = id_; + id_ = nullptr; + return temp; } -inline std::string* BTCWithdrawal::_internal_mutable_target_btc_address() { +inline ::vega::Identifier* RemoveValidator::_internal_mutable_id() { - return target_btc_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::Identifier>(GetArena()); + id_ = p; + } + return id_; } -inline std::string* BTCWithdrawal::release_target_btc_address() { - // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.target_btc_address) - return target_btc_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::Identifier* RemoveValidator::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.RemoveValidator.id) + return _internal_mutable_id(); } -inline void BTCWithdrawal::set_allocated_target_btc_address(std::string* target_btc_address) { - if (target_btc_address != nullptr) { +inline void RemoveValidator::set_allocated_id(::vega::Identifier* id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(id); + if (message_arena != submessage_arena) { + id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } } else { } - target_btc_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_btc_address, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.target_btc_address) + id_ = id; + // @@protoc_insertion_point(field_set_allocated:vega.RemoveValidator.id) } -// string reference_nonce = 4 [json_name = "referenceNonce"]; -inline void BTCWithdrawal::clear_reference_nonce() { - reference_nonce_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// ValidatorEvent + +// string source_id = 1 [json_name = "sourceId"]; +inline void ValidatorEvent::clear_source_id() { + source_id_.ClearToEmpty(); } -inline const std::string& BTCWithdrawal::reference_nonce() const { - // @@protoc_insertion_point(field_get:vega.BTCWithdrawal.reference_nonce) - return _internal_reference_nonce(); +inline const std::string& ValidatorEvent::source_id() const { + // @@protoc_insertion_point(field_get:vega.ValidatorEvent.source_id) + return _internal_source_id(); } -inline void BTCWithdrawal::set_reference_nonce(const std::string& value) { - _internal_set_reference_nonce(value); - // @@protoc_insertion_point(field_set:vega.BTCWithdrawal.reference_nonce) +inline void ValidatorEvent::set_source_id(const std::string& value) { + _internal_set_source_id(value); + // @@protoc_insertion_point(field_set:vega.ValidatorEvent.source_id) } -inline std::string* BTCWithdrawal::mutable_reference_nonce() { - // @@protoc_insertion_point(field_mutable:vega.BTCWithdrawal.reference_nonce) - return _internal_mutable_reference_nonce(); +inline std::string* ValidatorEvent::mutable_source_id() { + // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.source_id) + return _internal_mutable_source_id(); } -inline const std::string& BTCWithdrawal::_internal_reference_nonce() const { - return reference_nonce_.Get(); +inline const std::string& ValidatorEvent::_internal_source_id() const { + return source_id_.Get(); } -inline void BTCWithdrawal::_internal_set_reference_nonce(const std::string& value) { +inline void ValidatorEvent::_internal_set_source_id(const std::string& value) { - reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BTCWithdrawal::set_reference_nonce(std::string&& value) { +inline void ValidatorEvent::set_source_id(std::string&& value) { - reference_nonce_.Set( + source_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BTCWithdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_rvalue:vega.ValidatorEvent.source_id) } -inline void BTCWithdrawal::set_reference_nonce(const char* value) { +inline void ValidatorEvent::set_source_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BTCWithdrawal.reference_nonce) + source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ValidatorEvent.source_id) } -inline void BTCWithdrawal::set_reference_nonce(const char* value, +inline void ValidatorEvent::set_source_id(const char* value, size_t size) { - reference_nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BTCWithdrawal.reference_nonce) + // @@protoc_insertion_point(field_set_pointer:vega.ValidatorEvent.source_id) } -inline std::string* BTCWithdrawal::_internal_mutable_reference_nonce() { +inline std::string* ValidatorEvent::_internal_mutable_source_id() { - return reference_nonce_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return source_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BTCWithdrawal::release_reference_nonce() { - // @@protoc_insertion_point(field_release:vega.BTCWithdrawal.reference_nonce) - return reference_nonce_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ValidatorEvent::release_source_id() { + // @@protoc_insertion_point(field_release:vega.ValidatorEvent.source_id) + return source_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void BTCWithdrawal::set_allocated_reference_nonce(std::string* reference_nonce) { - if (reference_nonce != nullptr) { +inline void ValidatorEvent::set_allocated_source_id(std::string* source_id) { + if (source_id != nullptr) { } else { } - reference_nonce_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference_nonce, + source_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BTCWithdrawal.reference_nonce) -} - -// ------------------------------------------------------------------- - -// BTCEvent - -// uint64 index = 1 [json_name = "index"]; -inline void BTCEvent::clear_index() { - index_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::_internal_index() const { - return index_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::index() const { - // @@protoc_insertion_point(field_get:vega.BTCEvent.index) - return _internal_index(); -} -inline void BTCEvent::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - index_ = value; -} -inline void BTCEvent::set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_index(value); - // @@protoc_insertion_point(field_set:vega.BTCEvent.index) -} - -// uint64 block = 2 [json_name = "block"]; -inline void BTCEvent::clear_block() { - block_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::_internal_block() const { - return block_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 BTCEvent::block() const { - // @@protoc_insertion_point(field_get:vega.BTCEvent.block) - return _internal_block(); -} -inline void BTCEvent::_internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - block_ = value; -} -inline void BTCEvent::set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_block(value); - // @@protoc_insertion_point(field_set:vega.BTCEvent.block) + // @@protoc_insertion_point(field_set_allocated:vega.ValidatorEvent.source_id) } -// .vega.BTCDeposit deposit = 1001 [json_name = "deposit"]; -inline bool BTCEvent::_internal_has_deposit() const { - return action_case() == kDeposit; +// .vega.AddValidator add = 1001 [json_name = "add"]; +inline bool ValidatorEvent::_internal_has_add() const { + return action_case() == kAdd; } -inline bool BTCEvent::has_deposit() const { - return _internal_has_deposit(); +inline bool ValidatorEvent::has_add() const { + return _internal_has_add(); } -inline void BTCEvent::set_has_deposit() { - _oneof_case_[0] = kDeposit; +inline void ValidatorEvent::set_has_add() { + _oneof_case_[0] = kAdd; } -inline void BTCEvent::clear_deposit() { - if (_internal_has_deposit()) { +inline void ValidatorEvent::clear_add() { + if (_internal_has_add()) { if (GetArena() == nullptr) { - delete action_.deposit_; + delete action_.add_; } clear_has_action(); } } -inline ::vega::BTCDeposit* BTCEvent::release_deposit() { - // @@protoc_insertion_point(field_release:vega.BTCEvent.deposit) - if (_internal_has_deposit()) { +inline ::vega::AddValidator* ValidatorEvent::release_add() { + // @@protoc_insertion_point(field_release:vega.ValidatorEvent.add) + if (_internal_has_add()) { clear_has_action(); - ::vega::BTCDeposit* temp = action_.deposit_; + ::vega::AddValidator* temp = action_.add_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - action_.deposit_ = nullptr; + action_.add_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::BTCDeposit& BTCEvent::_internal_deposit() const { - return _internal_has_deposit() - ? *action_.deposit_ - : reinterpret_cast< ::vega::BTCDeposit&>(::vega::_BTCDeposit_default_instance_); +inline const ::vega::AddValidator& ValidatorEvent::_internal_add() const { + return _internal_has_add() + ? *action_.add_ + : reinterpret_cast< ::vega::AddValidator&>(::vega::_AddValidator_default_instance_); } -inline const ::vega::BTCDeposit& BTCEvent::deposit() const { - // @@protoc_insertion_point(field_get:vega.BTCEvent.deposit) - return _internal_deposit(); +inline const ::vega::AddValidator& ValidatorEvent::add() const { + // @@protoc_insertion_point(field_get:vega.ValidatorEvent.add) + return _internal_add(); } -inline ::vega::BTCDeposit* BTCEvent::unsafe_arena_release_deposit() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.BTCEvent.deposit) - if (_internal_has_deposit()) { +inline ::vega::AddValidator* ValidatorEvent::unsafe_arena_release_add() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ValidatorEvent.add) + if (_internal_has_add()) { clear_has_action(); - ::vega::BTCDeposit* temp = action_.deposit_; - action_.deposit_ = nullptr; + ::vega::AddValidator* temp = action_.add_; + action_.add_ = nullptr; return temp; } else { return nullptr; } } -inline void BTCEvent::unsafe_arena_set_allocated_deposit(::vega::BTCDeposit* deposit) { +inline void ValidatorEvent::unsafe_arena_set_allocated_add(::vega::AddValidator* add) { clear_action(); - if (deposit) { - set_has_deposit(); - action_.deposit_ = deposit; + if (add) { + set_has_add(); + action_.add_ = add; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BTCEvent.deposit) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ValidatorEvent.add) } -inline ::vega::BTCDeposit* BTCEvent::_internal_mutable_deposit() { - if (!_internal_has_deposit()) { +inline ::vega::AddValidator* ValidatorEvent::_internal_mutable_add() { + if (!_internal_has_add()) { clear_action(); - set_has_deposit(); - action_.deposit_ = CreateMaybeMessage< ::vega::BTCDeposit >(GetArena()); + set_has_add(); + action_.add_ = CreateMaybeMessage< ::vega::AddValidator >(GetArena()); } - return action_.deposit_; + return action_.add_; } -inline ::vega::BTCDeposit* BTCEvent::mutable_deposit() { - // @@protoc_insertion_point(field_mutable:vega.BTCEvent.deposit) - return _internal_mutable_deposit(); +inline ::vega::AddValidator* ValidatorEvent::mutable_add() { + // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.add) + return _internal_mutable_add(); } -// .vega.BTCWithdrawal withdrawal = 1002 [json_name = "withdrawal"]; -inline bool BTCEvent::_internal_has_withdrawal() const { - return action_case() == kWithdrawal; +// .vega.RemoveValidator rm = 1002 [json_name = "rm"]; +inline bool ValidatorEvent::_internal_has_rm() const { + return action_case() == kRm; } -inline bool BTCEvent::has_withdrawal() const { - return _internal_has_withdrawal(); +inline bool ValidatorEvent::has_rm() const { + return _internal_has_rm(); } -inline void BTCEvent::set_has_withdrawal() { - _oneof_case_[0] = kWithdrawal; +inline void ValidatorEvent::set_has_rm() { + _oneof_case_[0] = kRm; } -inline void BTCEvent::clear_withdrawal() { - if (_internal_has_withdrawal()) { +inline void ValidatorEvent::clear_rm() { + if (_internal_has_rm()) { if (GetArena() == nullptr) { - delete action_.withdrawal_; + delete action_.rm_; } clear_has_action(); } } -inline ::vega::BTCWithdrawal* BTCEvent::release_withdrawal() { - // @@protoc_insertion_point(field_release:vega.BTCEvent.withdrawal) - if (_internal_has_withdrawal()) { +inline ::vega::RemoveValidator* ValidatorEvent::release_rm() { + // @@protoc_insertion_point(field_release:vega.ValidatorEvent.rm) + if (_internal_has_rm()) { clear_has_action(); - ::vega::BTCWithdrawal* temp = action_.withdrawal_; + ::vega::RemoveValidator* temp = action_.rm_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - action_.withdrawal_ = nullptr; + action_.rm_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::BTCWithdrawal& BTCEvent::_internal_withdrawal() const { - return _internal_has_withdrawal() - ? *action_.withdrawal_ - : reinterpret_cast< ::vega::BTCWithdrawal&>(::vega::_BTCWithdrawal_default_instance_); +inline const ::vega::RemoveValidator& ValidatorEvent::_internal_rm() const { + return _internal_has_rm() + ? *action_.rm_ + : reinterpret_cast< ::vega::RemoveValidator&>(::vega::_RemoveValidator_default_instance_); } -inline const ::vega::BTCWithdrawal& BTCEvent::withdrawal() const { - // @@protoc_insertion_point(field_get:vega.BTCEvent.withdrawal) - return _internal_withdrawal(); +inline const ::vega::RemoveValidator& ValidatorEvent::rm() const { + // @@protoc_insertion_point(field_get:vega.ValidatorEvent.rm) + return _internal_rm(); } -inline ::vega::BTCWithdrawal* BTCEvent::unsafe_arena_release_withdrawal() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.BTCEvent.withdrawal) - if (_internal_has_withdrawal()) { +inline ::vega::RemoveValidator* ValidatorEvent::unsafe_arena_release_rm() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.ValidatorEvent.rm) + if (_internal_has_rm()) { clear_has_action(); - ::vega::BTCWithdrawal* temp = action_.withdrawal_; - action_.withdrawal_ = nullptr; + ::vega::RemoveValidator* temp = action_.rm_; + action_.rm_ = nullptr; return temp; } else { return nullptr; } } -inline void BTCEvent::unsafe_arena_set_allocated_withdrawal(::vega::BTCWithdrawal* withdrawal) { +inline void ValidatorEvent::unsafe_arena_set_allocated_rm(::vega::RemoveValidator* rm) { clear_action(); - if (withdrawal) { - set_has_withdrawal(); - action_.withdrawal_ = withdrawal; + if (rm) { + set_has_rm(); + action_.rm_ = rm; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.BTCEvent.withdrawal) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ValidatorEvent.rm) } -inline ::vega::BTCWithdrawal* BTCEvent::_internal_mutable_withdrawal() { - if (!_internal_has_withdrawal()) { +inline ::vega::RemoveValidator* ValidatorEvent::_internal_mutable_rm() { + if (!_internal_has_rm()) { clear_action(); - set_has_withdrawal(); - action_.withdrawal_ = CreateMaybeMessage< ::vega::BTCWithdrawal >(GetArena()); + set_has_rm(); + action_.rm_ = CreateMaybeMessage< ::vega::RemoveValidator >(GetArena()); } - return action_.withdrawal_; + return action_.rm_; } -inline ::vega::BTCWithdrawal* BTCEvent::mutable_withdrawal() { - // @@protoc_insertion_point(field_mutable:vega.BTCEvent.withdrawal) - return _internal_mutable_withdrawal(); +inline ::vega::RemoveValidator* ValidatorEvent::mutable_rm() { + // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.rm) + return _internal_mutable_rm(); } -inline bool BTCEvent::has_action() const { +inline bool ValidatorEvent::has_action() const { return action_case() != ACTION_NOT_SET; } -inline void BTCEvent::clear_has_action() { +inline void ValidatorEvent::clear_has_action() { _oneof_case_[0] = ACTION_NOT_SET; } -inline BTCEvent::ActionCase BTCEvent::action_case() const { - return BTCEvent::ActionCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// EthereumAddress - -// string address = 1 [json_name = "address"]; -inline void EthereumAddress::clear_address() { - address_.ClearToEmpty(); -} -inline const std::string& EthereumAddress::address() const { - // @@protoc_insertion_point(field_get:vega.EthereumAddress.address) - return _internal_address(); -} -inline void EthereumAddress::set_address(const std::string& value) { - _internal_set_address(value); - // @@protoc_insertion_point(field_set:vega.EthereumAddress.address) -} -inline std::string* EthereumAddress::mutable_address() { - // @@protoc_insertion_point(field_mutable:vega.EthereumAddress.address) - return _internal_mutable_address(); -} -inline const std::string& EthereumAddress::_internal_address() const { - return address_.Get(); -} -inline void EthereumAddress::_internal_set_address(const std::string& value) { - - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void EthereumAddress::set_address(std::string&& value) { - - address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.EthereumAddress.address) -} -inline void EthereumAddress::set_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.EthereumAddress.address) -} -inline void EthereumAddress::set_address(const char* value, - size_t size) { - - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.EthereumAddress.address) -} -inline std::string* EthereumAddress::_internal_mutable_address() { - - return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* EthereumAddress::release_address() { - // @@protoc_insertion_point(field_release:vega.EthereumAddress.address) - return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void EthereumAddress::set_allocated_address(std::string* address) { - if (address != nullptr) { - - } else { - - } - address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.EthereumAddress.address) +inline ValidatorEvent::ActionCase ValidatorEvent::action_case() const { + return ValidatorEvent::ActionCase(_oneof_case_[0]); } - // ------------------------------------------------------------------- -// BitcoinAddress +// StakingEvent -// string address = 1 [json_name = "address"]; -inline void BitcoinAddress::clear_address() { - address_.ClearToEmpty(); -} -inline const std::string& BitcoinAddress::address() const { - // @@protoc_insertion_point(field_get:vega.BitcoinAddress.address) - return _internal_address(); -} -inline void BitcoinAddress::set_address(const std::string& value) { - _internal_set_address(value); - // @@protoc_insertion_point(field_set:vega.BitcoinAddress.address) -} -inline std::string* BitcoinAddress::mutable_address() { - // @@protoc_insertion_point(field_mutable:vega.BitcoinAddress.address) - return _internal_mutable_address(); -} -inline const std::string& BitcoinAddress::_internal_address() const { - return address_.Get(); +// uint64 index = 1 [json_name = "index"]; +inline void StakingEvent::clear_index() { + index_ = PROTOBUF_ULONGLONG(0); } -inline void BitcoinAddress::_internal_set_address(const std::string& value) { - - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 StakingEvent::_internal_index() const { + return index_; } -inline void BitcoinAddress::set_address(std::string&& value) { - - address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.BitcoinAddress.address) +inline ::PROTOBUF_NAMESPACE_ID::uint64 StakingEvent::index() const { + // @@protoc_insertion_point(field_get:vega.StakingEvent.index) + return _internal_index(); } -inline void BitcoinAddress::set_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline void StakingEvent::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.BitcoinAddress.address) + index_ = value; } -inline void BitcoinAddress::set_address(const char* value, - size_t size) { - - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.BitcoinAddress.address) +inline void StakingEvent::set_index(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_index(value); + // @@protoc_insertion_point(field_set:vega.StakingEvent.index) } -inline std::string* BitcoinAddress::_internal_mutable_address() { - return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +// uint64 block = 2 [json_name = "block"]; +inline void StakingEvent::clear_block() { + block_ = PROTOBUF_ULONGLONG(0); } -inline std::string* BitcoinAddress::release_address() { - // @@protoc_insertion_point(field_release:vega.BitcoinAddress.address) - return address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 StakingEvent::_internal_block() const { + return block_; } -inline void BitcoinAddress::set_allocated_address(std::string* address) { - if (address != nullptr) { - - } else { - - } - address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.BitcoinAddress.address) +inline ::PROTOBUF_NAMESPACE_ID::uint64 StakingEvent::block() const { + // @@protoc_insertion_point(field_get:vega.StakingEvent.block) + return _internal_block(); } +inline void StakingEvent::_internal_set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- - -// Identifier + block_ = value; +} +inline void StakingEvent::set_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_block(value); + // @@protoc_insertion_point(field_set:vega.StakingEvent.block) +} -// .vega.EthereumAddress ethereum_address = 1 [json_name = "ethereumAddress"]; -inline bool Identifier::_internal_has_ethereum_address() const { - return identifier_case() == kEthereumAddress; +// .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; +inline bool StakingEvent::_internal_has_stake_deposited() const { + return action_case() == kStakeDeposited; } -inline bool Identifier::has_ethereum_address() const { - return _internal_has_ethereum_address(); +inline bool StakingEvent::has_stake_deposited() const { + return _internal_has_stake_deposited(); } -inline void Identifier::set_has_ethereum_address() { - _oneof_case_[0] = kEthereumAddress; +inline void StakingEvent::set_has_stake_deposited() { + _oneof_case_[0] = kStakeDeposited; } -inline void Identifier::clear_ethereum_address() { - if (_internal_has_ethereum_address()) { +inline void StakingEvent::clear_stake_deposited() { + if (_internal_has_stake_deposited()) { if (GetArena() == nullptr) { - delete identifier_.ethereum_address_; + delete action_.stake_deposited_; } - clear_has_identifier(); + clear_has_action(); } } -inline ::vega::EthereumAddress* Identifier::release_ethereum_address() { - // @@protoc_insertion_point(field_release:vega.Identifier.ethereum_address) - if (_internal_has_ethereum_address()) { - clear_has_identifier(); - ::vega::EthereumAddress* temp = identifier_.ethereum_address_; +inline ::vega::StakeDeposited* StakingEvent::release_stake_deposited() { + // @@protoc_insertion_point(field_release:vega.StakingEvent.stake_deposited) + if (_internal_has_stake_deposited()) { + clear_has_action(); + ::vega::StakeDeposited* temp = action_.stake_deposited_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - identifier_.ethereum_address_ = nullptr; + action_.stake_deposited_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::EthereumAddress& Identifier::_internal_ethereum_address() const { - return _internal_has_ethereum_address() - ? *identifier_.ethereum_address_ - : reinterpret_cast< ::vega::EthereumAddress&>(::vega::_EthereumAddress_default_instance_); +inline const ::vega::StakeDeposited& StakingEvent::_internal_stake_deposited() const { + return _internal_has_stake_deposited() + ? *action_.stake_deposited_ + : reinterpret_cast< ::vega::StakeDeposited&>(::vega::_StakeDeposited_default_instance_); } -inline const ::vega::EthereumAddress& Identifier::ethereum_address() const { - // @@protoc_insertion_point(field_get:vega.Identifier.ethereum_address) - return _internal_ethereum_address(); +inline const ::vega::StakeDeposited& StakingEvent::stake_deposited() const { + // @@protoc_insertion_point(field_get:vega.StakingEvent.stake_deposited) + return _internal_stake_deposited(); } -inline ::vega::EthereumAddress* Identifier::unsafe_arena_release_ethereum_address() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.Identifier.ethereum_address) - if (_internal_has_ethereum_address()) { - clear_has_identifier(); - ::vega::EthereumAddress* temp = identifier_.ethereum_address_; - identifier_.ethereum_address_ = nullptr; +inline ::vega::StakeDeposited* StakingEvent::unsafe_arena_release_stake_deposited() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.StakingEvent.stake_deposited) + if (_internal_has_stake_deposited()) { + clear_has_action(); + ::vega::StakeDeposited* temp = action_.stake_deposited_; + action_.stake_deposited_ = nullptr; return temp; } else { return nullptr; } } -inline void Identifier::unsafe_arena_set_allocated_ethereum_address(::vega::EthereumAddress* ethereum_address) { - clear_identifier(); - if (ethereum_address) { - set_has_ethereum_address(); - identifier_.ethereum_address_ = ethereum_address; +inline void StakingEvent::unsafe_arena_set_allocated_stake_deposited(::vega::StakeDeposited* stake_deposited) { + clear_action(); + if (stake_deposited) { + set_has_stake_deposited(); + action_.stake_deposited_ = stake_deposited; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Identifier.ethereum_address) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.StakingEvent.stake_deposited) } -inline ::vega::EthereumAddress* Identifier::_internal_mutable_ethereum_address() { - if (!_internal_has_ethereum_address()) { - clear_identifier(); - set_has_ethereum_address(); - identifier_.ethereum_address_ = CreateMaybeMessage< ::vega::EthereumAddress >(GetArena()); +inline ::vega::StakeDeposited* StakingEvent::_internal_mutable_stake_deposited() { + if (!_internal_has_stake_deposited()) { + clear_action(); + set_has_stake_deposited(); + action_.stake_deposited_ = CreateMaybeMessage< ::vega::StakeDeposited >(GetArena()); } - return identifier_.ethereum_address_; + return action_.stake_deposited_; } -inline ::vega::EthereumAddress* Identifier::mutable_ethereum_address() { - // @@protoc_insertion_point(field_mutable:vega.Identifier.ethereum_address) - return _internal_mutable_ethereum_address(); +inline ::vega::StakeDeposited* StakingEvent::mutable_stake_deposited() { + // @@protoc_insertion_point(field_mutable:vega.StakingEvent.stake_deposited) + return _internal_mutable_stake_deposited(); } -// .vega.BitcoinAddress bitcoin_address = 2 [json_name = "bitcoinAddress"]; -inline bool Identifier::_internal_has_bitcoin_address() const { - return identifier_case() == kBitcoinAddress; +// .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; +inline bool StakingEvent::_internal_has_stake_removed() const { + return action_case() == kStakeRemoved; } -inline bool Identifier::has_bitcoin_address() const { - return _internal_has_bitcoin_address(); +inline bool StakingEvent::has_stake_removed() const { + return _internal_has_stake_removed(); } -inline void Identifier::set_has_bitcoin_address() { - _oneof_case_[0] = kBitcoinAddress; +inline void StakingEvent::set_has_stake_removed() { + _oneof_case_[0] = kStakeRemoved; } -inline void Identifier::clear_bitcoin_address() { - if (_internal_has_bitcoin_address()) { +inline void StakingEvent::clear_stake_removed() { + if (_internal_has_stake_removed()) { if (GetArena() == nullptr) { - delete identifier_.bitcoin_address_; + delete action_.stake_removed_; } - clear_has_identifier(); + clear_has_action(); } } -inline ::vega::BitcoinAddress* Identifier::release_bitcoin_address() { - // @@protoc_insertion_point(field_release:vega.Identifier.bitcoin_address) - if (_internal_has_bitcoin_address()) { - clear_has_identifier(); - ::vega::BitcoinAddress* temp = identifier_.bitcoin_address_; +inline ::vega::StakeRemoved* StakingEvent::release_stake_removed() { + // @@protoc_insertion_point(field_release:vega.StakingEvent.stake_removed) + if (_internal_has_stake_removed()) { + clear_has_action(); + ::vega::StakeRemoved* temp = action_.stake_removed_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - identifier_.bitcoin_address_ = nullptr; + action_.stake_removed_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::BitcoinAddress& Identifier::_internal_bitcoin_address() const { - return _internal_has_bitcoin_address() - ? *identifier_.bitcoin_address_ - : reinterpret_cast< ::vega::BitcoinAddress&>(::vega::_BitcoinAddress_default_instance_); +inline const ::vega::StakeRemoved& StakingEvent::_internal_stake_removed() const { + return _internal_has_stake_removed() + ? *action_.stake_removed_ + : reinterpret_cast< ::vega::StakeRemoved&>(::vega::_StakeRemoved_default_instance_); } -inline const ::vega::BitcoinAddress& Identifier::bitcoin_address() const { - // @@protoc_insertion_point(field_get:vega.Identifier.bitcoin_address) - return _internal_bitcoin_address(); +inline const ::vega::StakeRemoved& StakingEvent::stake_removed() const { + // @@protoc_insertion_point(field_get:vega.StakingEvent.stake_removed) + return _internal_stake_removed(); } -inline ::vega::BitcoinAddress* Identifier::unsafe_arena_release_bitcoin_address() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.Identifier.bitcoin_address) - if (_internal_has_bitcoin_address()) { - clear_has_identifier(); - ::vega::BitcoinAddress* temp = identifier_.bitcoin_address_; - identifier_.bitcoin_address_ = nullptr; +inline ::vega::StakeRemoved* StakingEvent::unsafe_arena_release_stake_removed() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.StakingEvent.stake_removed) + if (_internal_has_stake_removed()) { + clear_has_action(); + ::vega::StakeRemoved* temp = action_.stake_removed_; + action_.stake_removed_ = nullptr; return temp; } else { return nullptr; } } -inline void Identifier::unsafe_arena_set_allocated_bitcoin_address(::vega::BitcoinAddress* bitcoin_address) { - clear_identifier(); - if (bitcoin_address) { - set_has_bitcoin_address(); - identifier_.bitcoin_address_ = bitcoin_address; +inline void StakingEvent::unsafe_arena_set_allocated_stake_removed(::vega::StakeRemoved* stake_removed) { + clear_action(); + if (stake_removed) { + set_has_stake_removed(); + action_.stake_removed_ = stake_removed; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Identifier.bitcoin_address) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.StakingEvent.stake_removed) } -inline ::vega::BitcoinAddress* Identifier::_internal_mutable_bitcoin_address() { - if (!_internal_has_bitcoin_address()) { - clear_identifier(); - set_has_bitcoin_address(); - identifier_.bitcoin_address_ = CreateMaybeMessage< ::vega::BitcoinAddress >(GetArena()); +inline ::vega::StakeRemoved* StakingEvent::_internal_mutable_stake_removed() { + if (!_internal_has_stake_removed()) { + clear_action(); + set_has_stake_removed(); + action_.stake_removed_ = CreateMaybeMessage< ::vega::StakeRemoved >(GetArena()); } - return identifier_.bitcoin_address_; + return action_.stake_removed_; } -inline ::vega::BitcoinAddress* Identifier::mutable_bitcoin_address() { - // @@protoc_insertion_point(field_mutable:vega.Identifier.bitcoin_address) - return _internal_mutable_bitcoin_address(); +inline ::vega::StakeRemoved* StakingEvent::mutable_stake_removed() { + // @@protoc_insertion_point(field_mutable:vega.StakingEvent.stake_removed) + return _internal_mutable_stake_removed(); } -inline bool Identifier::has_identifier() const { - return identifier_case() != IDENTIFIER_NOT_SET; +inline bool StakingEvent::has_action() const { + return action_case() != ACTION_NOT_SET; } -inline void Identifier::clear_has_identifier() { - _oneof_case_[0] = IDENTIFIER_NOT_SET; +inline void StakingEvent::clear_has_action() { + _oneof_case_[0] = ACTION_NOT_SET; } -inline Identifier::IdentifierCase Identifier::identifier_case() const { - return Identifier::IdentifierCase(_oneof_case_[0]); +inline StakingEvent::ActionCase StakingEvent::action_case() const { + return StakingEvent::ActionCase(_oneof_case_[0]); } // ------------------------------------------------------------------- -// AddValidator +// StakeDeposited -// .vega.Identifier id = 1 [json_name = "id"]; -inline bool AddValidator::_internal_has_id() const { - return this != internal_default_instance() && id_ != nullptr; +// string ethereum_address = 1 [json_name = "ethereumAddress"]; +inline void StakeDeposited::clear_ethereum_address() { + ethereum_address_.ClearToEmpty(); } -inline bool AddValidator::has_id() const { - return _internal_has_id(); +inline const std::string& StakeDeposited::ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.StakeDeposited.ethereum_address) + return _internal_ethereum_address(); } -inline void AddValidator::clear_id() { - if (GetArena() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; +inline void StakeDeposited::set_ethereum_address(const std::string& value) { + _internal_set_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.StakeDeposited.ethereum_address) } -inline const ::vega::Identifier& AddValidator::_internal_id() const { - const ::vega::Identifier* p = id_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Identifier_default_instance_); +inline std::string* StakeDeposited::mutable_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.StakeDeposited.ethereum_address) + return _internal_mutable_ethereum_address(); } -inline const ::vega::Identifier& AddValidator::id() const { - // @@protoc_insertion_point(field_get:vega.AddValidator.id) - return _internal_id(); +inline const std::string& StakeDeposited::_internal_ethereum_address() const { + return ethereum_address_.Get(); } -inline void AddValidator::unsafe_arena_set_allocated_id( - ::vega::Identifier* id) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(id_); - } - id_ = id; - if (id) { +inline void StakeDeposited::_internal_set_ethereum_address(const std::string& value) { - } else { + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeDeposited::set_ethereum_address(std::string&& value) { - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.AddValidator.id) + ethereum_address_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.StakeDeposited.ethereum_address) } -inline ::vega::Identifier* AddValidator::release_id() { +inline void StakeDeposited::set_ethereum_address(const char* value) { + GOOGLE_DCHECK(value != nullptr); - ::vega::Identifier* temp = id_; - id_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeDeposited.ethereum_address) } -inline ::vega::Identifier* AddValidator::unsafe_arena_release_id() { - // @@protoc_insertion_point(field_release:vega.AddValidator.id) +inline void StakeDeposited::set_ethereum_address(const char* value, + size_t size) { - ::vega::Identifier* temp = id_; - id_ = nullptr; - return temp; + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.StakeDeposited.ethereum_address) } -inline ::vega::Identifier* AddValidator::_internal_mutable_id() { +inline std::string* StakeDeposited::_internal_mutable_ethereum_address() { - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Identifier>(GetArena()); - id_ = p; - } - return id_; + return ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::Identifier* AddValidator::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.AddValidator.id) - return _internal_mutable_id(); +inline std::string* StakeDeposited::release_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.StakeDeposited.ethereum_address) + return ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void AddValidator::set_allocated_id(::vega::Identifier* id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete id_; - } - if (id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(id); - if (message_arena != submessage_arena) { - id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, id, submessage_arena); - } +inline void StakeDeposited::set_allocated_ethereum_address(std::string* ethereum_address) { + if (ethereum_address != nullptr) { } else { } - id_ = id; - // @@protoc_insertion_point(field_set_allocated:vega.AddValidator.id) + ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ethereum_address, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.StakeDeposited.ethereum_address) } -// ------------------------------------------------------------------- +// string vega_public_key = 2 [json_name = "vegaPublicKey"]; +inline void StakeDeposited::clear_vega_public_key() { + vega_public_key_.ClearToEmpty(); +} +inline const std::string& StakeDeposited::vega_public_key() const { + // @@protoc_insertion_point(field_get:vega.StakeDeposited.vega_public_key) + return _internal_vega_public_key(); +} +inline void StakeDeposited::set_vega_public_key(const std::string& value) { + _internal_set_vega_public_key(value); + // @@protoc_insertion_point(field_set:vega.StakeDeposited.vega_public_key) +} +inline std::string* StakeDeposited::mutable_vega_public_key() { + // @@protoc_insertion_point(field_mutable:vega.StakeDeposited.vega_public_key) + return _internal_mutable_vega_public_key(); +} +inline const std::string& StakeDeposited::_internal_vega_public_key() const { + return vega_public_key_.Get(); +} +inline void StakeDeposited::_internal_set_vega_public_key(const std::string& value) { -// RemoveValidator + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeDeposited::set_vega_public_key(std::string&& value) { -// .vega.Identifier id = 1 [json_name = "id"]; -inline bool RemoveValidator::_internal_has_id() const { - return this != internal_default_instance() && id_ != nullptr; + vega_public_key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.StakeDeposited.vega_public_key) } -inline bool RemoveValidator::has_id() const { - return _internal_has_id(); +inline void StakeDeposited::set_vega_public_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeDeposited.vega_public_key) } -inline void RemoveValidator::clear_id() { - if (GetArena() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; +inline void StakeDeposited::set_vega_public_key(const char* value, + size_t size) { + + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.StakeDeposited.vega_public_key) } -inline const ::vega::Identifier& RemoveValidator::_internal_id() const { - const ::vega::Identifier* p = id_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Identifier_default_instance_); +inline std::string* StakeDeposited::_internal_mutable_vega_public_key() { + + return vega_public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline const ::vega::Identifier& RemoveValidator::id() const { - // @@protoc_insertion_point(field_get:vega.RemoveValidator.id) - return _internal_id(); +inline std::string* StakeDeposited::release_vega_public_key() { + // @@protoc_insertion_point(field_release:vega.StakeDeposited.vega_public_key) + return vega_public_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void RemoveValidator::unsafe_arena_set_allocated_id( - ::vega::Identifier* id) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(id_); - } - id_ = id; - if (id) { +inline void StakeDeposited::set_allocated_vega_public_key(std::string* vega_public_key) { + if (vega_public_key != nullptr) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.RemoveValidator.id) + vega_public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_public_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.StakeDeposited.vega_public_key) } -inline ::vega::Identifier* RemoveValidator::release_id() { - ::vega::Identifier* temp = id_; - id_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; +// string amount = 3 [json_name = "amount"]; +inline void StakeDeposited::clear_amount() { + amount_.ClearToEmpty(); } -inline ::vega::Identifier* RemoveValidator::unsafe_arena_release_id() { - // @@protoc_insertion_point(field_release:vega.RemoveValidator.id) +inline const std::string& StakeDeposited::amount() const { + // @@protoc_insertion_point(field_get:vega.StakeDeposited.amount) + return _internal_amount(); +} +inline void StakeDeposited::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.StakeDeposited.amount) +} +inline std::string* StakeDeposited::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.StakeDeposited.amount) + return _internal_mutable_amount(); +} +inline const std::string& StakeDeposited::_internal_amount() const { + return amount_.Get(); +} +inline void StakeDeposited::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeDeposited::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.StakeDeposited.amount) +} +inline void StakeDeposited::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeDeposited.amount) +} +inline void StakeDeposited::set_amount(const char* value, + size_t size) { - ::vega::Identifier* temp = id_; - id_ = nullptr; - return temp; + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.StakeDeposited.amount) } -inline ::vega::Identifier* RemoveValidator::_internal_mutable_id() { +inline std::string* StakeDeposited::_internal_mutable_amount() { - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Identifier>(GetArena()); - id_ = p; - } - return id_; + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::Identifier* RemoveValidator::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.RemoveValidator.id) - return _internal_mutable_id(); +inline std::string* StakeDeposited::release_amount() { + // @@protoc_insertion_point(field_release:vega.StakeDeposited.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void RemoveValidator::set_allocated_id(::vega::Identifier* id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete id_; - } - if (id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(id); - if (message_arena != submessage_arena) { - id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, id, submessage_arena); - } +inline void StakeDeposited::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { } else { } - id_ = id; - // @@protoc_insertion_point(field_set_allocated:vega.RemoveValidator.id) + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.StakeDeposited.amount) +} + +// int64 block_time = 4 [json_name = "blockTime"]; +inline void StakeDeposited::clear_block_time() { + block_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeDeposited::_internal_block_time() const { + return block_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeDeposited::block_time() const { + // @@protoc_insertion_point(field_get:vega.StakeDeposited.block_time) + return _internal_block_time(); +} +inline void StakeDeposited::_internal_set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + block_time_ = value; +} +inline void StakeDeposited::set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_block_time(value); + // @@protoc_insertion_point(field_set:vega.StakeDeposited.block_time) } // ------------------------------------------------------------------- -// ValidatorEvent +// StakeRemoved -// string source_id = 1 [json_name = "sourceId"]; -inline void ValidatorEvent::clear_source_id() { - source_id_.ClearToEmpty(); +// string ethereum_address = 1 [json_name = "ethereumAddress"]; +inline void StakeRemoved::clear_ethereum_address() { + ethereum_address_.ClearToEmpty(); } -inline const std::string& ValidatorEvent::source_id() const { - // @@protoc_insertion_point(field_get:vega.ValidatorEvent.source_id) - return _internal_source_id(); +inline const std::string& StakeRemoved::ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.StakeRemoved.ethereum_address) + return _internal_ethereum_address(); } -inline void ValidatorEvent::set_source_id(const std::string& value) { - _internal_set_source_id(value); - // @@protoc_insertion_point(field_set:vega.ValidatorEvent.source_id) +inline void StakeRemoved::set_ethereum_address(const std::string& value) { + _internal_set_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.StakeRemoved.ethereum_address) } -inline std::string* ValidatorEvent::mutable_source_id() { - // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.source_id) - return _internal_mutable_source_id(); +inline std::string* StakeRemoved::mutable_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.StakeRemoved.ethereum_address) + return _internal_mutable_ethereum_address(); } -inline const std::string& ValidatorEvent::_internal_source_id() const { - return source_id_.Get(); +inline const std::string& StakeRemoved::_internal_ethereum_address() const { + return ethereum_address_.Get(); } -inline void ValidatorEvent::_internal_set_source_id(const std::string& value) { +inline void StakeRemoved::_internal_set_ethereum_address(const std::string& value) { - source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ValidatorEvent::set_source_id(std::string&& value) { +inline void StakeRemoved::set_ethereum_address(std::string&& value) { - source_id_.Set( + ethereum_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ValidatorEvent.source_id) + // @@protoc_insertion_point(field_set_rvalue:vega.StakeRemoved.ethereum_address) } -inline void ValidatorEvent::set_source_id(const char* value) { +inline void StakeRemoved::set_ethereum_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ValidatorEvent.source_id) + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeRemoved.ethereum_address) } -inline void ValidatorEvent::set_source_id(const char* value, +inline void StakeRemoved::set_ethereum_address(const char* value, size_t size) { - source_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ValidatorEvent.source_id) + // @@protoc_insertion_point(field_set_pointer:vega.StakeRemoved.ethereum_address) } -inline std::string* ValidatorEvent::_internal_mutable_source_id() { +inline std::string* StakeRemoved::_internal_mutable_ethereum_address() { - return source_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ValidatorEvent::release_source_id() { - // @@protoc_insertion_point(field_release:vega.ValidatorEvent.source_id) - return source_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* StakeRemoved::release_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.StakeRemoved.ethereum_address) + return ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ValidatorEvent::set_allocated_source_id(std::string* source_id) { - if (source_id != nullptr) { +inline void StakeRemoved::set_allocated_ethereum_address(std::string* ethereum_address) { + if (ethereum_address != nullptr) { } else { } - source_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_id, + ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ethereum_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ValidatorEvent.source_id) + // @@protoc_insertion_point(field_set_allocated:vega.StakeRemoved.ethereum_address) } -// .vega.AddValidator add = 1001 [json_name = "add"]; -inline bool ValidatorEvent::_internal_has_add() const { - return action_case() == kAdd; +// string vega_public_key = 2 [json_name = "vegaPublicKey"]; +inline void StakeRemoved::clear_vega_public_key() { + vega_public_key_.ClearToEmpty(); } -inline bool ValidatorEvent::has_add() const { - return _internal_has_add(); +inline const std::string& StakeRemoved::vega_public_key() const { + // @@protoc_insertion_point(field_get:vega.StakeRemoved.vega_public_key) + return _internal_vega_public_key(); } -inline void ValidatorEvent::set_has_add() { - _oneof_case_[0] = kAdd; +inline void StakeRemoved::set_vega_public_key(const std::string& value) { + _internal_set_vega_public_key(value); + // @@protoc_insertion_point(field_set:vega.StakeRemoved.vega_public_key) } -inline void ValidatorEvent::clear_add() { - if (_internal_has_add()) { - if (GetArena() == nullptr) { - delete action_.add_; - } - clear_has_action(); - } +inline std::string* StakeRemoved::mutable_vega_public_key() { + // @@protoc_insertion_point(field_mutable:vega.StakeRemoved.vega_public_key) + return _internal_mutable_vega_public_key(); } -inline ::vega::AddValidator* ValidatorEvent::release_add() { - // @@protoc_insertion_point(field_release:vega.ValidatorEvent.add) - if (_internal_has_add()) { - clear_has_action(); - ::vega::AddValidator* temp = action_.add_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - action_.add_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const std::string& StakeRemoved::_internal_vega_public_key() const { + return vega_public_key_.Get(); } -inline const ::vega::AddValidator& ValidatorEvent::_internal_add() const { - return _internal_has_add() - ? *action_.add_ - : reinterpret_cast< ::vega::AddValidator&>(::vega::_AddValidator_default_instance_); +inline void StakeRemoved::_internal_set_vega_public_key(const std::string& value) { + + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline const ::vega::AddValidator& ValidatorEvent::add() const { - // @@protoc_insertion_point(field_get:vega.ValidatorEvent.add) - return _internal_add(); +inline void StakeRemoved::set_vega_public_key(std::string&& value) { + + vega_public_key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.StakeRemoved.vega_public_key) } -inline ::vega::AddValidator* ValidatorEvent::unsafe_arena_release_add() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ValidatorEvent.add) - if (_internal_has_add()) { - clear_has_action(); - ::vega::AddValidator* temp = action_.add_; - action_.add_ = nullptr; - return temp; +inline void StakeRemoved::set_vega_public_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeRemoved.vega_public_key) +} +inline void StakeRemoved::set_vega_public_key(const char* value, + size_t size) { + + vega_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.StakeRemoved.vega_public_key) +} +inline std::string* StakeRemoved::_internal_mutable_vega_public_key() { + + return vega_public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StakeRemoved::release_vega_public_key() { + // @@protoc_insertion_point(field_release:vega.StakeRemoved.vega_public_key) + return vega_public_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeRemoved::set_allocated_vega_public_key(std::string* vega_public_key) { + if (vega_public_key != nullptr) { + } else { - return nullptr; + } + vega_public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_public_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.StakeRemoved.vega_public_key) } -inline void ValidatorEvent::unsafe_arena_set_allocated_add(::vega::AddValidator* add) { - clear_action(); - if (add) { - set_has_add(); - action_.add_ = add; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ValidatorEvent.add) + +// string amount = 3 [json_name = "amount"]; +inline void StakeRemoved::clear_amount() { + amount_.ClearToEmpty(); } -inline ::vega::AddValidator* ValidatorEvent::_internal_mutable_add() { - if (!_internal_has_add()) { - clear_action(); - set_has_add(); - action_.add_ = CreateMaybeMessage< ::vega::AddValidator >(GetArena()); - } - return action_.add_; +inline const std::string& StakeRemoved::amount() const { + // @@protoc_insertion_point(field_get:vega.StakeRemoved.amount) + return _internal_amount(); } -inline ::vega::AddValidator* ValidatorEvent::mutable_add() { - // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.add) - return _internal_mutable_add(); +inline void StakeRemoved::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.StakeRemoved.amount) } - -// .vega.RemoveValidator rm = 1002 [json_name = "rm"]; -inline bool ValidatorEvent::_internal_has_rm() const { - return action_case() == kRm; +inline std::string* StakeRemoved::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.StakeRemoved.amount) + return _internal_mutable_amount(); } -inline bool ValidatorEvent::has_rm() const { - return _internal_has_rm(); +inline const std::string& StakeRemoved::_internal_amount() const { + return amount_.Get(); } -inline void ValidatorEvent::set_has_rm() { - _oneof_case_[0] = kRm; +inline void StakeRemoved::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ValidatorEvent::clear_rm() { - if (_internal_has_rm()) { - if (GetArena() == nullptr) { - delete action_.rm_; - } - clear_has_action(); - } +inline void StakeRemoved::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.StakeRemoved.amount) } -inline ::vega::RemoveValidator* ValidatorEvent::release_rm() { - // @@protoc_insertion_point(field_release:vega.ValidatorEvent.rm) - if (_internal_has_rm()) { - clear_has_action(); - ::vega::RemoveValidator* temp = action_.rm_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - action_.rm_ = nullptr; - return temp; - } else { - return nullptr; - } +inline void StakeRemoved::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.StakeRemoved.amount) } -inline const ::vega::RemoveValidator& ValidatorEvent::_internal_rm() const { - return _internal_has_rm() - ? *action_.rm_ - : reinterpret_cast< ::vega::RemoveValidator&>(::vega::_RemoveValidator_default_instance_); +inline void StakeRemoved::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.StakeRemoved.amount) } -inline const ::vega::RemoveValidator& ValidatorEvent::rm() const { - // @@protoc_insertion_point(field_get:vega.ValidatorEvent.rm) - return _internal_rm(); +inline std::string* StakeRemoved::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::RemoveValidator* ValidatorEvent::unsafe_arena_release_rm() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.ValidatorEvent.rm) - if (_internal_has_rm()) { - clear_has_action(); - ::vega::RemoveValidator* temp = action_.rm_; - action_.rm_ = nullptr; - return temp; +inline std::string* StakeRemoved::release_amount() { + // @@protoc_insertion_point(field_release:vega.StakeRemoved.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeRemoved::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + } else { - return nullptr; + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.StakeRemoved.amount) } -inline void ValidatorEvent::unsafe_arena_set_allocated_rm(::vega::RemoveValidator* rm) { - clear_action(); - if (rm) { - set_has_rm(); - action_.rm_ = rm; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.ValidatorEvent.rm) + +// int64 block_time = 4 [json_name = "blockTime"]; +inline void StakeRemoved::clear_block_time() { + block_time_ = PROTOBUF_LONGLONG(0); } -inline ::vega::RemoveValidator* ValidatorEvent::_internal_mutable_rm() { - if (!_internal_has_rm()) { - clear_action(); - set_has_rm(); - action_.rm_ = CreateMaybeMessage< ::vega::RemoveValidator >(GetArena()); - } - return action_.rm_; +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeRemoved::_internal_block_time() const { + return block_time_; } -inline ::vega::RemoveValidator* ValidatorEvent::mutable_rm() { - // @@protoc_insertion_point(field_mutable:vega.ValidatorEvent.rm) - return _internal_mutable_rm(); +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeRemoved::block_time() const { + // @@protoc_insertion_point(field_get:vega.StakeRemoved.block_time) + return _internal_block_time(); } +inline void StakeRemoved::_internal_set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value) { -inline bool ValidatorEvent::has_action() const { - return action_case() != ACTION_NOT_SET; + block_time_ = value; } -inline void ValidatorEvent::clear_has_action() { - _oneof_case_[0] = ACTION_NOT_SET; -} -inline ValidatorEvent::ActionCase ValidatorEvent::action_case() const { - return ValidatorEvent::ActionCase(_oneof_case_[0]); +inline void StakeRemoved::set_block_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_block_time(value); + // @@protoc_insertion_point(field_set:vega.StakeRemoved.block_time) } + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5826,6 +7036,12 @@ inline ValidatorEvent::ActionCase ValidatorEvent::action_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/grpc/clients/cpp/generated/commands/v1/commands.pb.cc b/grpc/clients/cpp/generated/commands/v1/commands.pb.cc index 4ade8527..653502db 100644 --- a/grpc/clients/cpp/generated/commands/v1/commands.pb.cc +++ b/grpc/clients/cpp/generated/commands/v1/commands.pb.cc @@ -60,6 +60,10 @@ class UndelegateSubmissionDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _UndelegateSubmission_default_instance_; +class RestoreSnapshotDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RestoreSnapshot_default_instance_; } // namespace v1 } // namespace commands } // namespace vega @@ -147,6 +151,19 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProposalSubmission_comman {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto}, { &scc_info_ProposalTerms_governance_2eproto.base,}}; +static void InitDefaultsscc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::commands::v1::_RestoreSnapshot_default_instance_; + new (ptr) ::vega::commands::v1::RestoreSnapshot(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto}, {}}; + static void InitDefaultsscc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -187,7 +204,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawSubmission_comman {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto}, { &scc_info_WithdrawExt_vega_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_commands_2fv1_2fcommands_2eproto[9]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_commands_2fv1_2fcommands_2eproto[10]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_commands_2fv1_2fcommands_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_commands_2fv1_2fcommands_2eproto = nullptr; @@ -274,6 +291,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commands_2fv1_2fcommands_2epro PROTOBUF_FIELD_OFFSET(::vega::commands::v1::UndelegateSubmission, node_id_), PROTOBUF_FIELD_OFFSET(::vega::commands::v1::UndelegateSubmission, amount_), PROTOBUF_FIELD_OFFSET(::vega::commands::v1::UndelegateSubmission, method_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::commands::v1::RestoreSnapshot, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::commands::v1::RestoreSnapshot, data_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::commands::v1::OrderSubmission)}, @@ -285,6 +308,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 60, -1, sizeof(::vega::commands::v1::VoteSubmission)}, { 67, -1, sizeof(::vega::commands::v1::DelegateSubmission)}, { 74, -1, sizeof(::vega::commands::v1::UndelegateSubmission)}, + { 82, -1, sizeof(::vega::commands::v1::RestoreSnapshot)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -297,6 +321,7 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::vega::commands::v1::_VoteSubmission_default_instance_), reinterpret_cast(&::vega::commands::v1::_DelegateSubmission_default_instance_), reinterpret_cast(&::vega::commands::v1::_UndelegateSubmission_default_instance_), + reinterpret_cast(&::vega::commands::v1::_RestoreSnapshot_default_instance_), }; const char descriptor_table_protodef_commands_2fv1_2fcommands_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -346,9 +371,10 @@ const char descriptor_table_protodef_commands_2fv1_2fcommands_2eproto[] PROTOBUF "vega.commands.v1.UndelegateSubmission.Me" "thodR\006method\"a\n\006Method\022\026\n\022METHOD_UNSPECI" "FIED\020\000\022\016\n\nMETHOD_NOW\020\001\022\032\n\026METHOD_AT_END_" - "OF_EPOCH\020\002\022\023\n\017METHOD_IN_ANGER\020\003BO\n io.ve" - "gaprotocol.vega.commands.v1Z+code.vegapr" - "otocol.io/vega/proto/commands/v1b\006proto3" + "OF_EPOCH\020\002\022\023\n\017METHOD_IN_ANGER\020\003\"%\n\017Resto" + "reSnapshot\022\022\n\004data\030\001 \001(\014R\004dataBO\n io.veg" + "aprotocol.vega.commands.v1Z+code.vegapro" + "tocol.io/vega/proto/commands/v1b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_commands_2fv1_2fcommands_2eproto_deps[4] = { &::descriptor_table_github_2ecom_2fmwitkow_2fgo_2dproto_2dvalidators_2fvalidator_2eproto, @@ -356,23 +382,24 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_governance_2eproto, &::descriptor_table_vega_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_commands_2fv1_2fcommands_2eproto_sccs[9] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_commands_2fv1_2fcommands_2eproto_sccs[10] = { &scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto.base, + &scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto.base, &scc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_commands_2fv1_2fcommands_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_commands_2fv1_2fcommands_2eproto = { - false, false, descriptor_table_protodef_commands_2fv1_2fcommands_2eproto, "commands/v1/commands.proto", 1960, - &descriptor_table_commands_2fv1_2fcommands_2eproto_once, descriptor_table_commands_2fv1_2fcommands_2eproto_sccs, descriptor_table_commands_2fv1_2fcommands_2eproto_deps, 9, 4, + false, false, descriptor_table_protodef_commands_2fv1_2fcommands_2eproto, "commands/v1/commands.proto", 1999, + &descriptor_table_commands_2fv1_2fcommands_2eproto_once, descriptor_table_commands_2fv1_2fcommands_2eproto_sccs, descriptor_table_commands_2fv1_2fcommands_2eproto_deps, 10, 4, schemas, file_default_instances, TableStruct_commands_2fv1_2fcommands_2eproto::offsets, - file_level_metadata_commands_2fv1_2fcommands_2eproto, 9, file_level_enum_descriptors_commands_2fv1_2fcommands_2eproto, file_level_service_descriptors_commands_2fv1_2fcommands_2eproto, + file_level_metadata_commands_2fv1_2fcommands_2eproto, 10, file_level_enum_descriptors_commands_2fv1_2fcommands_2eproto, file_level_service_descriptors_commands_2fv1_2fcommands_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -3222,6 +3249,207 @@ ::PROTOBUF_NAMESPACE_ID::Metadata UndelegateSubmission::GetMetadata() const { } +// =================================================================== + +class RestoreSnapshot::_Internal { + public: +}; + +RestoreSnapshot::RestoreSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.commands.v1.RestoreSnapshot) +} +RestoreSnapshot::RestoreSnapshot(const RestoreSnapshot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_data().empty()) { + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.commands.v1.RestoreSnapshot) +} + +void RestoreSnapshot::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto.base); + data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +RestoreSnapshot::~RestoreSnapshot() { + // @@protoc_insertion_point(destructor:vega.commands.v1.RestoreSnapshot) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void RestoreSnapshot::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void RestoreSnapshot::ArenaDtor(void* object) { + RestoreSnapshot* _this = reinterpret_cast< RestoreSnapshot* >(object); + (void)_this; +} +void RestoreSnapshot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RestoreSnapshot::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RestoreSnapshot& RestoreSnapshot::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto.base); + return *internal_default_instance(); +} + + +void RestoreSnapshot::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.commands.v1.RestoreSnapshot) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RestoreSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RestoreSnapshot::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.commands.v1.RestoreSnapshot) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (this->data().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.commands.v1.RestoreSnapshot) + return target; +} + +size_t RestoreSnapshot::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.commands.v1.RestoreSnapshot) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (this->data().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RestoreSnapshot::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.commands.v1.RestoreSnapshot) + GOOGLE_DCHECK_NE(&from, this); + const RestoreSnapshot* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.commands.v1.RestoreSnapshot) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.commands.v1.RestoreSnapshot) + MergeFrom(*source); + } +} + +void RestoreSnapshot::MergeFrom(const RestoreSnapshot& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.commands.v1.RestoreSnapshot) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.data().size() > 0) { + _internal_set_data(from._internal_data()); + } +} + +void RestoreSnapshot::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.commands.v1.RestoreSnapshot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RestoreSnapshot::CopyFrom(const RestoreSnapshot& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.commands.v1.RestoreSnapshot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RestoreSnapshot::IsInitialized() const { + return true; +} + +void RestoreSnapshot::InternalSwap(RestoreSnapshot* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + data_.Swap(&other->data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RestoreSnapshot::GetMetadata() const { + return GetMetadataStatic(); +} + + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace commands @@ -3254,6 +3482,9 @@ template<> PROTOBUF_NOINLINE ::vega::commands::v1::DelegateSubmission* Arena::Cr template<> PROTOBUF_NOINLINE ::vega::commands::v1::UndelegateSubmission* Arena::CreateMaybeMessage< ::vega::commands::v1::UndelegateSubmission >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::commands::v1::UndelegateSubmission >(arena); } +template<> PROTOBUF_NOINLINE ::vega::commands::v1::RestoreSnapshot* Arena::CreateMaybeMessage< ::vega::commands::v1::RestoreSnapshot >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::commands::v1::RestoreSnapshot >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/grpc/clients/cpp/generated/commands/v1/commands.pb.h b/grpc/clients/cpp/generated/commands/v1/commands.pb.h index 92718d85..062d1449 100644 --- a/grpc/clients/cpp/generated/commands/v1/commands.pb.h +++ b/grpc/clients/cpp/generated/commands/v1/commands.pb.h @@ -51,7 +51,7 @@ struct TableStruct_commands_2fv1_2fcommands_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -79,6 +79,9 @@ extern OrderSubmissionDefaultTypeInternal _OrderSubmission_default_instance_; class ProposalSubmission; class ProposalSubmissionDefaultTypeInternal; extern ProposalSubmissionDefaultTypeInternal _ProposalSubmission_default_instance_; +class RestoreSnapshot; +class RestoreSnapshotDefaultTypeInternal; +extern RestoreSnapshotDefaultTypeInternal _RestoreSnapshot_default_instance_; class UndelegateSubmission; class UndelegateSubmissionDefaultTypeInternal; extern UndelegateSubmissionDefaultTypeInternal _UndelegateSubmission_default_instance_; @@ -98,6 +101,7 @@ template<> ::vega::commands::v1::OrderAmendment* Arena::CreateMaybeMessage<::veg template<> ::vega::commands::v1::OrderCancellation* Arena::CreateMaybeMessage<::vega::commands::v1::OrderCancellation>(Arena*); template<> ::vega::commands::v1::OrderSubmission* Arena::CreateMaybeMessage<::vega::commands::v1::OrderSubmission>(Arena*); template<> ::vega::commands::v1::ProposalSubmission* Arena::CreateMaybeMessage<::vega::commands::v1::ProposalSubmission>(Arena*); +template<> ::vega::commands::v1::RestoreSnapshot* Arena::CreateMaybeMessage<::vega::commands::v1::RestoreSnapshot>(Arena*); template<> ::vega::commands::v1::UndelegateSubmission* Arena::CreateMaybeMessage<::vega::commands::v1::UndelegateSubmission>(Arena*); template<> ::vega::commands::v1::VoteSubmission* Arena::CreateMaybeMessage<::vega::commands::v1::VoteSubmission>(Arena*); template<> ::vega::commands::v1::WithdrawSubmission* Arena::CreateMaybeMessage<::vega::commands::v1::WithdrawSubmission>(Arena*); @@ -1869,6 +1873,149 @@ class UndelegateSubmission PROTOBUF_FINAL : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; }; +// ------------------------------------------------------------------- + +class RestoreSnapshot PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.commands.v1.RestoreSnapshot) */ { + public: + inline RestoreSnapshot() : RestoreSnapshot(nullptr) {} + virtual ~RestoreSnapshot(); + + RestoreSnapshot(const RestoreSnapshot& from); + RestoreSnapshot(RestoreSnapshot&& from) noexcept + : RestoreSnapshot() { + *this = ::std::move(from); + } + + inline RestoreSnapshot& operator=(const RestoreSnapshot& from) { + CopyFrom(from); + return *this; + } + inline RestoreSnapshot& operator=(RestoreSnapshot&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const RestoreSnapshot& default_instance(); + + static inline const RestoreSnapshot* internal_default_instance() { + return reinterpret_cast( + &_RestoreSnapshot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(RestoreSnapshot& a, RestoreSnapshot& b) { + a.Swap(&b); + } + inline void Swap(RestoreSnapshot* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RestoreSnapshot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RestoreSnapshot* New() const final { + return CreateMaybeMessage(nullptr); + } + + RestoreSnapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const RestoreSnapshot& from); + void MergeFrom(const RestoreSnapshot& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RestoreSnapshot* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.commands.v1.RestoreSnapshot"; + } + protected: + explicit RestoreSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_commands_2fv1_2fcommands_2eproto); + return ::descriptor_table_commands_2fv1_2fcommands_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + void set_data(const std::string& value); + void set_data(std::string&& value); + void set_data(const char* value); + void set_data(const void* value, size_t size); + std::string* mutable_data(); + std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // @@protoc_insertion_point(class_scope:vega.commands.v1.RestoreSnapshot) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; +}; // =================================================================== @@ -3600,6 +3747,71 @@ inline void UndelegateSubmission::set_method(::vega::commands::v1::UndelegateSub // @@protoc_insertion_point(field_set:vega.commands.v1.UndelegateSubmission.method) } +// ------------------------------------------------------------------- + +// RestoreSnapshot + +// bytes data = 1 [json_name = "data"]; +inline void RestoreSnapshot::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& RestoreSnapshot::data() const { + // @@protoc_insertion_point(field_get:vega.commands.v1.RestoreSnapshot.data) + return _internal_data(); +} +inline void RestoreSnapshot::set_data(const std::string& value) { + _internal_set_data(value); + // @@protoc_insertion_point(field_set:vega.commands.v1.RestoreSnapshot.data) +} +inline std::string* RestoreSnapshot::mutable_data() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.RestoreSnapshot.data) + return _internal_mutable_data(); +} +inline const std::string& RestoreSnapshot::_internal_data() const { + return data_.Get(); +} +inline void RestoreSnapshot::_internal_set_data(const std::string& value) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RestoreSnapshot::set_data(std::string&& value) { + + data_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.RestoreSnapshot.data) +} +inline void RestoreSnapshot::set_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.RestoreSnapshot.data) +} +inline void RestoreSnapshot::set_data(const void* value, + size_t size) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.RestoreSnapshot.data) +} +inline std::string* RestoreSnapshot::_internal_mutable_data() { + + return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RestoreSnapshot::release_data() { + // @@protoc_insertion_point(field_release:vega.commands.v1.RestoreSnapshot.data) + return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RestoreSnapshot::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.RestoreSnapshot.data) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -3619,6 +3831,8 @@ inline void UndelegateSubmission::set_method(::vega::commands::v1::UndelegateSub // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/grpc/clients/cpp/generated/commands/v1/transaction.pb.cc b/grpc/clients/cpp/generated/commands/v1/transaction.pb.cc index 98185579..c5bab479 100644 --- a/grpc/clients/cpp/generated/commands/v1/transaction.pb.cc +++ b/grpc/clients/cpp/generated/commands/v1/transaction.pb.cc @@ -14,7 +14,7 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeRegistration_commands_2fv1_2fvalidator_5fcommands_2eproto; @@ -25,6 +25,7 @@ extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAME extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2ftransaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Signature_commands_2fv1_2ftransaction_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto; @@ -57,8 +58,8 @@ static void InitDefaultsscc_info_InputData_commands_2fv1_2ftransaction_2eproto() } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<14> scc_info_InputData_commands_2fv1_2ftransaction_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 14, 0, InitDefaultsscc_info_InputData_commands_2fv1_2ftransaction_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<15> scc_info_InputData_commands_2fv1_2ftransaction_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 15, 0, InitDefaultsscc_info_InputData_commands_2fv1_2ftransaction_2eproto}, { &scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto.base, @@ -72,7 +73,8 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<14> scc_info_InputData_commands_2fv1_ &scc_info_NodeVote_commands_2fv1_2fvalidator_5fcommands_2eproto.base, &scc_info_NodeSignature_commands_2fv1_2fvalidator_5fcommands_2eproto.base, &scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto.base, - &scc_info_OracleDataSubmission_commands_2fv1_2foracles_2eproto.base,}}; + &scc_info_OracleDataSubmission_commands_2fv1_2foracles_2eproto.base, + &scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto.base,}}; static void InitDefaultsscc_info_Signature_commands_2fv1_2ftransaction_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -127,6 +129,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commands_2fv1_2ftransaction_2e ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::vega::commands::v1::InputData, command_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::commands::v1::Transaction, _internal_metadata_), @@ -150,8 +153,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commands_2fv1_2ftransaction_2e }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::commands::v1::InputData)}, - { 22, -1, sizeof(::vega::commands::v1::Transaction)}, - { 33, -1, sizeof(::vega::commands::v1::Signature)}, + { 23, -1, sizeof(::vega::commands::v1::Transaction)}, + { 34, -1, sizeof(::vega::commands::v1::Signature)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -164,7 +167,7 @@ const char descriptor_table_protodef_commands_2fv1_2ftransaction_2eproto[] PROTO "\n\035commands/v1/transaction.proto\022\020vega.co" "mmands.v1\032\032commands/v1/commands.proto\032$c" "ommands/v1/validator_commands.proto\032\031com" - "mands/v1/oracles.proto\"\370\t\n\tInputData\022\024\n\005" + "mands/v1/oracles.proto\"\336\n\n\tInputData\022\024\n\005" "nonce\030\001 \001(\004R\005nonce\022!\n\014block_height\030\002 \001(\004" "R\013blockHeight\022O\n\020order_submission\030\351\007 \001(\013" "2!.vega.commands.v1.OrderSubmissionH\000R\017o" @@ -196,16 +199,19 @@ const char descriptor_table_protodef_commands_2fv1_2ftransaction_2eproto[] PROTO "s.v1.ChainEventH\000R\nchainEvent\022_\n\026oracle_" "data_submission\030\271\027 \001(\0132&.vega.commands.v" "1.OracleDataSubmissionH\000R\024oracleDataSubm" - "issionB\t\n\007command\"\303\001\n\013Transaction\022\035\n\ninp" - "ut_data\030\001 \001(\014R\tinputData\0229\n\tsignature\030\002 " - "\001(\0132\033.vega.commands.v1.SignatureR\tsignat" - "ure\022\033\n\007address\030\351\007 \001(\tH\000R\007address\022\032\n\007pub_" - "key\030\352\007 \001(\tH\000R\006pubKey\022\031\n\007version\030\320\017 \001(\rR\007" - "versionB\006\n\004from\"O\n\tSignature\022\024\n\005value\030\001 " - "\001(\tR\005value\022\022\n\004algo\030\002 \001(\tR\004algo\022\030\n\007versio" - "n\030\003 \001(\rR\007versionBO\n io.vegaprotocol.vega" - ".commands.v1Z+code.vegaprotocol.io/vega/" - "proto/commands/v1b\006proto3" + "ission\022d\n\033restore_snapshot_submission\030\241\037" + " \001(\0132!.vega.commands.v1.RestoreSnapshotH" + "\000R\031restoreSnapshotSubmissionB\t\n\007command\"" + "\303\001\n\013Transaction\022\035\n\ninput_data\030\001 \001(\014R\tinp" + "utData\0229\n\tsignature\030\002 \001(\0132\033.vega.command" + "s.v1.SignatureR\tsignature\022\033\n\007address\030\351\007 " + "\001(\tH\000R\007address\022\032\n\007pub_key\030\352\007 \001(\tH\000R\006pubK" + "ey\022\031\n\007version\030\320\017 \001(\rR\007versionB\006\n\004from\"O\n" + "\tSignature\022\024\n\005value\030\001 \001(\tR\005value\022\022\n\004algo" + "\030\002 \001(\tR\004algo\022\030\n\007version\030\003 \001(\rR\007versionBO" + "\n io.vegaprotocol.vega.commands.v1Z+code" + ".vegaprotocol.io/vega/proto/commands/v1b" + "\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_commands_2fv1_2ftransaction_2eproto_deps[3] = { &::descriptor_table_commands_2fv1_2fcommands_2eproto, @@ -219,7 +225,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_com }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_commands_2fv1_2ftransaction_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_commands_2fv1_2ftransaction_2eproto = { - false, false, descriptor_table_protodef_commands_2fv1_2ftransaction_2eproto, "commands/v1/transaction.proto", 1785, + false, false, descriptor_table_protodef_commands_2fv1_2ftransaction_2eproto, "commands/v1/transaction.proto", 1887, &descriptor_table_commands_2fv1_2ftransaction_2eproto_once, descriptor_table_commands_2fv1_2ftransaction_2eproto_sccs, descriptor_table_commands_2fv1_2ftransaction_2eproto_deps, 3, 3, schemas, file_default_instances, TableStruct_commands_2fv1_2ftransaction_2eproto::offsets, file_level_metadata_commands_2fv1_2ftransaction_2eproto, 3, file_level_enum_descriptors_commands_2fv1_2ftransaction_2eproto, file_level_service_descriptors_commands_2fv1_2ftransaction_2eproto, @@ -249,6 +255,7 @@ class InputData::_Internal { static const ::vega::commands::v1::NodeSignature& node_signature(const InputData* msg); static const ::vega::commands::v1::ChainEvent& chain_event(const InputData* msg); static const ::vega::commands::v1::OracleDataSubmission& oracle_data_submission(const InputData* msg); + static const ::vega::commands::v1::RestoreSnapshot& restore_snapshot_submission(const InputData* msg); }; const ::vega::commands::v1::OrderSubmission& @@ -307,6 +314,10 @@ const ::vega::commands::v1::OracleDataSubmission& InputData::_Internal::oracle_data_submission(const InputData* msg) { return *msg->command_.oracle_data_submission_; } +const ::vega::commands::v1::RestoreSnapshot& +InputData::_Internal::restore_snapshot_submission(const InputData* msg) { + return *msg->command_.restore_snapshot_submission_; +} void InputData::set_allocated_order_submission(::vega::commands::v1::OrderSubmission* order_submission) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_command(); @@ -629,6 +640,29 @@ void InputData::clear_oracle_data_submission() { clear_has_command(); } } +void InputData::set_allocated_restore_snapshot_submission(::vega::commands::v1::RestoreSnapshot* restore_snapshot_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_command(); + if (restore_snapshot_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(restore_snapshot_submission)->GetArena(); + if (message_arena != submessage_arena) { + restore_snapshot_submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, restore_snapshot_submission, submessage_arena); + } + set_has_restore_snapshot_submission(); + command_.restore_snapshot_submission_ = restore_snapshot_submission; + } + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.InputData.restore_snapshot_submission) +} +void InputData::clear_restore_snapshot_submission() { + if (_internal_has_restore_snapshot_submission()) { + if (GetArena() == nullptr) { + delete command_.restore_snapshot_submission_; + } + clear_has_command(); + } +} InputData::InputData(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -699,6 +733,10 @@ InputData::InputData(const InputData& from) _internal_mutable_oracle_data_submission()->::vega::commands::v1::OracleDataSubmission::MergeFrom(from._internal_oracle_data_submission()); break; } + case kRestoreSnapshotSubmission: { + _internal_mutable_restore_snapshot_submission()->::vega::commands::v1::RestoreSnapshot::MergeFrom(from._internal_restore_snapshot_submission()); + break; + } case COMMAND_NOT_SET: { break; } @@ -830,6 +868,12 @@ void InputData::clear_command() { } break; } + case kRestoreSnapshotSubmission: { + if (GetArena() == nullptr) { + delete command_.restore_snapshot_submission_; + } + break; + } case COMMAND_NOT_SET: { break; } @@ -970,6 +1014,13 @@ const char* InputData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: CHK_(ptr); } else goto handle_unusual; continue; + // .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + case 4001: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_restore_snapshot_submission(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1122,6 +1173,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* InputData::_InternalSerialize( 3001, _Internal::oracle_data_submission(this), target, stream); } + // .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + if (_internal_has_restore_snapshot_submission()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4001, _Internal::restore_snapshot_submission(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1251,6 +1310,13 @@ size_t InputData::ByteSizeLong() const { *command_.oracle_data_submission_); break; } + // .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + case kRestoreSnapshotSubmission: { + total_size += 3 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *command_.restore_snapshot_submission_); + break; + } case COMMAND_NOT_SET: { break; } @@ -1349,6 +1415,10 @@ void InputData::MergeFrom(const InputData& from) { _internal_mutable_oracle_data_submission()->::vega::commands::v1::OracleDataSubmission::MergeFrom(from._internal_oracle_data_submission()); break; } + case kRestoreSnapshotSubmission: { + _internal_mutable_restore_snapshot_submission()->::vega::commands::v1::RestoreSnapshot::MergeFrom(from._internal_restore_snapshot_submission()); + break; + } case COMMAND_NOT_SET: { break; } diff --git a/grpc/clients/cpp/generated/commands/v1/transaction.pb.h b/grpc/clients/cpp/generated/commands/v1/transaction.pb.h index c2ffce0d..6bbfac4a 100644 --- a/grpc/clients/cpp/generated/commands/v1/transaction.pb.h +++ b/grpc/clients/cpp/generated/commands/v1/transaction.pb.h @@ -133,6 +133,7 @@ class InputData PROTOBUF_FINAL : kNodeSignature = 2003, kChainEvent = 2004, kOracleDataSubmission = 3001, + kRestoreSnapshotSubmission = 4001, COMMAND_NOT_SET = 0, }; @@ -228,6 +229,7 @@ class InputData PROTOBUF_FINAL : kNodeSignatureFieldNumber = 2003, kChainEventFieldNumber = 2004, kOracleDataSubmissionFieldNumber = 3001, + kRestoreSnapshotSubmissionFieldNumber = 4001, }; // uint64 nonce = 1 [json_name = "nonce"]; void clear_nonce(); @@ -499,6 +501,24 @@ class InputData PROTOBUF_FINAL : ::vega::commands::v1::OracleDataSubmission* oracle_data_submission); ::vega::commands::v1::OracleDataSubmission* unsafe_arena_release_oracle_data_submission(); + // .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + bool has_restore_snapshot_submission() const; + private: + bool _internal_has_restore_snapshot_submission() const; + public: + void clear_restore_snapshot_submission(); + const ::vega::commands::v1::RestoreSnapshot& restore_snapshot_submission() const; + ::vega::commands::v1::RestoreSnapshot* release_restore_snapshot_submission(); + ::vega::commands::v1::RestoreSnapshot* mutable_restore_snapshot_submission(); + void set_allocated_restore_snapshot_submission(::vega::commands::v1::RestoreSnapshot* restore_snapshot_submission); + private: + const ::vega::commands::v1::RestoreSnapshot& _internal_restore_snapshot_submission() const; + ::vega::commands::v1::RestoreSnapshot* _internal_mutable_restore_snapshot_submission(); + public: + void unsafe_arena_set_allocated_restore_snapshot_submission( + ::vega::commands::v1::RestoreSnapshot* restore_snapshot_submission); + ::vega::commands::v1::RestoreSnapshot* unsafe_arena_release_restore_snapshot_submission(); + void clear_command(); CommandCase command_case() const; // @@protoc_insertion_point(class_scope:vega.commands.v1.InputData) @@ -518,6 +538,7 @@ class InputData PROTOBUF_FINAL : void set_has_node_signature(); void set_has_chain_event(); void set_has_oracle_data_submission(); + void set_has_restore_snapshot_submission(); inline bool has_command() const; inline void clear_has_command(); @@ -543,6 +564,7 @@ class InputData PROTOBUF_FINAL : ::vega::commands::v1::NodeSignature* node_signature_; ::vega::commands::v1::ChainEvent* chain_event_; ::vega::commands::v1::OracleDataSubmission* oracle_data_submission_; + ::vega::commands::v1::RestoreSnapshot* restore_snapshot_submission_; } command_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -1916,6 +1938,71 @@ inline ::vega::commands::v1::OracleDataSubmission* InputData::mutable_oracle_dat return _internal_mutable_oracle_data_submission(); } +// .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; +inline bool InputData::_internal_has_restore_snapshot_submission() const { + return command_case() == kRestoreSnapshotSubmission; +} +inline bool InputData::has_restore_snapshot_submission() const { + return _internal_has_restore_snapshot_submission(); +} +inline void InputData::set_has_restore_snapshot_submission() { + _oneof_case_[0] = kRestoreSnapshotSubmission; +} +inline ::vega::commands::v1::RestoreSnapshot* InputData::release_restore_snapshot_submission() { + // @@protoc_insertion_point(field_release:vega.commands.v1.InputData.restore_snapshot_submission) + if (_internal_has_restore_snapshot_submission()) { + clear_has_command(); + ::vega::commands::v1::RestoreSnapshot* temp = command_.restore_snapshot_submission_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + command_.restore_snapshot_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::commands::v1::RestoreSnapshot& InputData::_internal_restore_snapshot_submission() const { + return _internal_has_restore_snapshot_submission() + ? *command_.restore_snapshot_submission_ + : reinterpret_cast< ::vega::commands::v1::RestoreSnapshot&>(::vega::commands::v1::_RestoreSnapshot_default_instance_); +} +inline const ::vega::commands::v1::RestoreSnapshot& InputData::restore_snapshot_submission() const { + // @@protoc_insertion_point(field_get:vega.commands.v1.InputData.restore_snapshot_submission) + return _internal_restore_snapshot_submission(); +} +inline ::vega::commands::v1::RestoreSnapshot* InputData::unsafe_arena_release_restore_snapshot_submission() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.commands.v1.InputData.restore_snapshot_submission) + if (_internal_has_restore_snapshot_submission()) { + clear_has_command(); + ::vega::commands::v1::RestoreSnapshot* temp = command_.restore_snapshot_submission_; + command_.restore_snapshot_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void InputData::unsafe_arena_set_allocated_restore_snapshot_submission(::vega::commands::v1::RestoreSnapshot* restore_snapshot_submission) { + clear_command(); + if (restore_snapshot_submission) { + set_has_restore_snapshot_submission(); + command_.restore_snapshot_submission_ = restore_snapshot_submission; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.commands.v1.InputData.restore_snapshot_submission) +} +inline ::vega::commands::v1::RestoreSnapshot* InputData::_internal_mutable_restore_snapshot_submission() { + if (!_internal_has_restore_snapshot_submission()) { + clear_command(); + set_has_restore_snapshot_submission(); + command_.restore_snapshot_submission_ = CreateMaybeMessage< ::vega::commands::v1::RestoreSnapshot >(GetArena()); + } + return command_.restore_snapshot_submission_; +} +inline ::vega::commands::v1::RestoreSnapshot* InputData::mutable_restore_snapshot_submission() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.InputData.restore_snapshot_submission) + return _internal_mutable_restore_snapshot_submission(); +} + inline bool InputData::has_command() const { return command_case() != COMMAND_NOT_SET; } diff --git a/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.cc b/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.cc index 0e601c75..7b4de0df 100644 --- a/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.cc +++ b/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.cc @@ -17,6 +17,7 @@ extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_BTCEvent_chain_5fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_BuiltinAssetEvent_chain_5fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ERC20Event_chain_5fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_StakingEvent_chain_5fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_chain_5fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ValidatorEvent_chain_5fevents_2eproto; namespace vega { namespace commands { @@ -50,12 +51,13 @@ static void InitDefaultsscc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, 0, InitDefaultsscc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto}, { &scc_info_BuiltinAssetEvent_chain_5fevents_2eproto.base, &scc_info_ERC20Event_chain_5fevents_2eproto.base, &scc_info_BTCEvent_chain_5fevents_2eproto.base, - &scc_info_ValidatorEvent_chain_5fevents_2eproto.base,}}; + &scc_info_ValidatorEvent_chain_5fevents_2eproto.base, + &scc_info_StakingEvent_chain_5fevents_2eproto.base,}}; static void InitDefaultsscc_info_NodeRegistration_commands_2fv1_2fvalidator_5fcommands_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -106,7 +108,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commands_2fv1_2fvalidator_5fco ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, pub_key_), + PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, vega_pub_key_), + PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, ethereum_address_), PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, chain_pub_key_), PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, info_url_), PROTOBUF_FIELD_OFFSET(::vega::commands::v1::NodeRegistration, country_), @@ -136,13 +139,14 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commands_2fv1_2fvalidator_5fco ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::vega::commands::v1::ChainEvent, event_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::commands::v1::NodeRegistration)}, - { 9, -1, sizeof(::vega::commands::v1::NodeVote)}, - { 16, -1, sizeof(::vega::commands::v1::NodeSignature)}, - { 24, -1, sizeof(::vega::commands::v1::ChainEvent)}, + { 10, -1, sizeof(::vega::commands::v1::NodeVote)}, + { 17, -1, sizeof(::vega::commands::v1::NodeSignature)}, + { 25, -1, sizeof(::vega::commands::v1::ChainEvent)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -156,22 +160,25 @@ const char descriptor_table_protodef_commands_2fv1_2fvalidator_5fcommands_2eprot "\n$commands/v1/validator_commands.proto\022\020" "vega.commands.v1\032\022chain_events.proto\0326gi" "thub.com/mwitkow/go-proto-validators/val" - "idator.proto\"\244\001\n\020NodeRegistration\022\037\n\007pub" - "_key\030\001 \001(\014B\006\342\337\037\002X\001R\006pubKey\022*\n\rchain_pub_" - "key\030\002 \001(\014B\006\342\337\037\002X\001R\013chainPubKey\022!\n\010info_u" - "rl\030\003 \001(\tB\006\342\337\037\002X\001R\007infoUrl\022 \n\007country\030\004 \001" - "(\tB\006\342\337\037\002X\001R\007country\"Q\n\010NodeVote\022\037\n\007pub_k" - "ey\030\001 \001(\014B\006\342\337\037\002X\001R\006pubKey\022$\n\treference\030\002 " - "\001(\tB\006\342\337\037\002X\001R\treference\"j\n\rNodeSignature\022" - "\016\n\002id\030\001 \001(\tR\002id\022\020\n\003sig\030\002 \001(\014R\003sig\0227\n\004kin" - "d\030\003 \001(\0162#.vega.commands.v1.NodeSignature" - "KindR\004kind\"\375\001\n\nChainEvent\022\023\n\005tx_id\030\001 \001(\t" - "R\004txId\022\024\n\005nonce\030\002 \001(\004R\005nonce\0224\n\007builtin\030" - "\351\007 \001(\0132\027.vega.BuiltinAssetEventH\000R\007built" - "in\022)\n\005erc20\030\352\007 \001(\0132\020.vega.ERC20EventH\000R\005" - "erc20\022#\n\003btc\030\353\007 \001(\0132\016.vega.BTCEventH\000R\003b" - "tc\0225\n\tvalidator\030\354\007 \001(\0132\024.vega.ValidatorE" - "ventH\000R\tvalidatorB\007\n\005event*\205\001\n\021NodeSigna" + "idator.proto\"\340\001\n\020NodeRegistration\022(\n\014veg" + "a_pub_key\030\001 \001(\tB\006\342\337\037\002X\001R\nvegaPubKey\0221\n\020e" + "thereum_address\030\002 \001(\tB\006\342\337\037\002X\001R\017ethereumA" + "ddress\022*\n\rchain_pub_key\030\003 \001(\tB\006\342\337\037\002X\001R\013c" + "hainPubKey\022!\n\010info_url\030\004 \001(\tB\006\342\337\037\002X\001R\007in" + "foUrl\022 \n\007country\030\005 \001(\tB\006\342\337\037\002X\001R\007country\"" + "Q\n\010NodeVote\022\037\n\007pub_key\030\001 \001(\014B\006\342\337\037\002X\001R\006pu" + "bKey\022$\n\treference\030\002 \001(\tB\006\342\337\037\002X\001R\treferen" + "ce\"j\n\rNodeSignature\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003s" + "ig\030\002 \001(\014R\003sig\0227\n\004kind\030\003 \001(\0162#.vega.comma" + "nds.v1.NodeSignatureKindR\004kind\"\271\002\n\nChain" + "Event\022\023\n\005tx_id\030\001 \001(\tR\004txId\022\024\n\005nonce\030\002 \001(" + "\004R\005nonce\0224\n\007builtin\030\351\007 \001(\0132\027.vega.Builti" + "nAssetEventH\000R\007builtin\022)\n\005erc20\030\352\007 \001(\0132\020" + ".vega.ERC20EventH\000R\005erc20\022#\n\003btc\030\353\007 \001(\0132" + "\016.vega.BTCEventH\000R\003btc\0225\n\tvalidator\030\354\007 \001" + "(\0132\024.vega.ValidatorEventH\000R\tvalidator\022:\n" + "\rstaking_event\030\355\007 \001(\0132\022.vega.StakingEven" + "tH\000R\014stakingEventB\007\n\005event*\205\001\n\021NodeSigna" "tureKind\022#\n\037NODE_SIGNATURE_KIND_UNSPECIF" "IED\020\000\022!\n\035NODE_SIGNATURE_KIND_ASSET_NEW\020\001" "\022(\n$NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL" @@ -191,7 +198,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_com }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto = { - false, false, descriptor_table_protodef_commands_2fv1_2fvalidator_5fcommands_2eproto, "commands/v1/validator_commands.proto", 971, + false, false, descriptor_table_protodef_commands_2fv1_2fvalidator_5fcommands_2eproto, "commands/v1/validator_commands.proto", 1091, &descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto_once, descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto_sccs, descriptor_table_commands_2fv1_2fvalidator_5fcommands_2eproto_deps, 4, 2, schemas, file_default_instances, TableStruct_commands_2fv1_2fvalidator_5fcommands_2eproto::offsets, file_level_metadata_commands_2fv1_2fvalidator_5fcommands_2eproto, 4, file_level_enum_descriptors_commands_2fv1_2fvalidator_5fcommands_2eproto, file_level_service_descriptors_commands_2fv1_2fvalidator_5fcommands_2eproto, @@ -233,9 +240,14 @@ NodeRegistration::NodeRegistration(::PROTOBUF_NAMESPACE_ID::Arena* arena) NodeRegistration::NodeRegistration(const NodeRegistration& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_pub_key().empty()) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pub_key(), + vega_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_vega_pub_key().empty()) { + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_pub_key(), + GetArena()); + } + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ethereum_address().empty()) { + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ethereum_address(), GetArena()); } chain_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -258,7 +270,8 @@ NodeRegistration::NodeRegistration(const NodeRegistration& from) void NodeRegistration::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NodeRegistration_commands_2fv1_2fvalidator_5fcommands_2eproto.base); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); chain_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); info_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); country_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -272,7 +285,8 @@ NodeRegistration::~NodeRegistration() { void NodeRegistration::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ethereum_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); chain_pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); info_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); country_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -299,7 +313,8 @@ void NodeRegistration::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - pub_key_.ClearToEmpty(); + vega_pub_key_.ClearToEmpty(); + ethereum_address_.ClearToEmpty(); chain_pub_key_.ClearToEmpty(); info_url_.ClearToEmpty(); country_.ClearToEmpty(); @@ -313,34 +328,45 @@ const char* NodeRegistration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { + // string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_pub_key(); + auto str = _internal_mutable_vega_pub_key(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.vega_pub_key")); CHK_(ptr); } else goto handle_unusual; continue; - // bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { + // string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_chain_pub_key(); + auto str = _internal_mutable_ethereum_address(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.ethereum_address")); CHK_(ptr); } else goto handle_unusual; continue; - // string info_url = 3 [json_name = "infoUrl", (.validator.field) = { + // string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_info_url(); + auto str = _internal_mutable_chain_pub_key(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.info_url")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.chain_pub_key")); CHK_(ptr); } else goto handle_unusual; continue; - // string country = 4 [json_name = "country", (.validator.field) = { + // string info_url = 4 [json_name = "infoUrl", (.validator.field) = { case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_info_url(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.info_url")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string country = 5 [json_name = "country", (.validator.field) = { + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { auto str = _internal_mutable_country(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.NodeRegistration.country")); @@ -375,36 +401,54 @@ ::PROTOBUF_NAMESPACE_ID::uint8* NodeRegistration::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { - if (this->pub_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_pub_key(), target); + // string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { + if (this->vega_pub_key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vega_pub_key().data(), static_cast(this->_internal_vega_pub_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.NodeRegistration.vega_pub_key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_vega_pub_key(), target); + } + + // string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { + if (this->ethereum_address().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ethereum_address().data(), static_cast(this->_internal_ethereum_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.NodeRegistration.ethereum_address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_ethereum_address(), target); } - // bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { + // string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { if (this->chain_pub_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_chain_pub_key(), target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_chain_pub_key().data(), static_cast(this->_internal_chain_pub_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.NodeRegistration.chain_pub_key"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_chain_pub_key(), target); } - // string info_url = 3 [json_name = "infoUrl", (.validator.field) = { + // string info_url = 4 [json_name = "infoUrl", (.validator.field) = { if (this->info_url().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_info_url().data(), static_cast(this->_internal_info_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "vega.commands.v1.NodeRegistration.info_url"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_info_url(), target); + 4, this->_internal_info_url(), target); } - // string country = 4 [json_name = "country", (.validator.field) = { + // string country = 5 [json_name = "country", (.validator.field) = { if (this->country().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_country().data(), static_cast(this->_internal_country().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "vega.commands.v1.NodeRegistration.country"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_country(), target); + 5, this->_internal_country(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -423,28 +467,35 @@ size_t NodeRegistration::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { - if (this->pub_key().size() > 0) { + // string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { + if (this->vega_pub_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pub_key()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vega_pub_key()); } - // bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { + // string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { + if (this->ethereum_address().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ethereum_address()); + } + + // string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { if (this->chain_pub_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_chain_pub_key()); } - // string info_url = 3 [json_name = "infoUrl", (.validator.field) = { + // string info_url = 4 [json_name = "infoUrl", (.validator.field) = { if (this->info_url().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_info_url()); } - // string country = 4 [json_name = "country", (.validator.field) = { + // string country = 5 [json_name = "country", (.validator.field) = { if (this->country().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -482,8 +533,11 @@ void NodeRegistration::MergeFrom(const NodeRegistration& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.pub_key().size() > 0) { - _internal_set_pub_key(from._internal_pub_key()); + if (from.vega_pub_key().size() > 0) { + _internal_set_vega_pub_key(from._internal_vega_pub_key()); + } + if (from.ethereum_address().size() > 0) { + _internal_set_ethereum_address(from._internal_ethereum_address()); } if (from.chain_pub_key().size() > 0) { _internal_set_chain_pub_key(from._internal_chain_pub_key()); @@ -517,7 +571,8 @@ bool NodeRegistration::IsInitialized() const { void NodeRegistration::InternalSwap(NodeRegistration* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - pub_key_.Swap(&other->pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vega_pub_key_.Swap(&other->vega_pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ethereum_address_.Swap(&other->ethereum_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); chain_pub_key_.Swap(&other->chain_pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); info_url_.Swap(&other->info_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); country_.Swap(&other->country_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -1042,6 +1097,7 @@ class ChainEvent::_Internal { static const ::vega::ERC20Event& erc20(const ChainEvent* msg); static const ::vega::BTCEvent& btc(const ChainEvent* msg); static const ::vega::ValidatorEvent& validator(const ChainEvent* msg); + static const ::vega::StakingEvent& staking_event(const ChainEvent* msg); }; const ::vega::BuiltinAssetEvent& @@ -1060,6 +1116,10 @@ const ::vega::ValidatorEvent& ChainEvent::_Internal::validator(const ChainEvent* msg) { return *msg->event_.validator_; } +const ::vega::StakingEvent& +ChainEvent::_Internal::staking_event(const ChainEvent* msg) { + return *msg->event_.staking_event_; +} void ChainEvent::set_allocated_builtin(::vega::BuiltinAssetEvent* builtin) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_event(); @@ -1152,6 +1212,29 @@ void ChainEvent::clear_validator() { clear_has_event(); } } +void ChainEvent::set_allocated_staking_event(::vega::StakingEvent* staking_event) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_event(); + if (staking_event) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(staking_event)->GetArena(); + if (message_arena != submessage_arena) { + staking_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, staking_event, submessage_arena); + } + set_has_staking_event(); + event_.staking_event_ = staking_event; + } + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.ChainEvent.staking_event) +} +void ChainEvent::clear_staking_event() { + if (_internal_has_staking_event()) { + if (GetArena() == nullptr) { + delete event_.staking_event_; + } + clear_has_event(); + } +} ChainEvent::ChainEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -1185,6 +1268,10 @@ ChainEvent::ChainEvent(const ChainEvent& from) _internal_mutable_validator()->::vega::ValidatorEvent::MergeFrom(from._internal_validator()); break; } + case kStakingEvent: { + _internal_mutable_staking_event()->::vega::StakingEvent::MergeFrom(from._internal_staking_event()); + break; + } case EVENT_NOT_SET: { break; } @@ -1255,6 +1342,12 @@ void ChainEvent::clear_event() { } break; } + case kStakingEvent: { + if (GetArena() == nullptr) { + delete event_.staking_event_; + } + break; + } case EVENT_NOT_SET: { break; } @@ -1326,6 +1419,13 @@ const char* ChainEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; + // .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + case 1005: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_staking_event(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1402,6 +1502,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ChainEvent::_InternalSerialize( 1004, _Internal::validator(this), target, stream); } + // .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + if (_internal_has_staking_event()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1005, _Internal::staking_event(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1461,6 +1569,13 @@ size_t ChainEvent::ByteSizeLong() const { *event_.validator_); break; } + // .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + case kStakingEvent: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *event_.staking_event_); + break; + } case EVENT_NOT_SET: { break; } @@ -1519,6 +1634,10 @@ void ChainEvent::MergeFrom(const ChainEvent& from) { _internal_mutable_validator()->::vega::ValidatorEvent::MergeFrom(from._internal_validator()); break; } + case kStakingEvent: { + _internal_mutable_staking_event()->::vega::StakingEvent::MergeFrom(from._internal_staking_event()); + break; + } case EVENT_NOT_SET: { break; } diff --git a/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.h b/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.h index daa57420..f160cbb3 100644 --- a/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.h +++ b/grpc/clients/cpp/generated/commands/v1/validator_commands.pb.h @@ -224,34 +224,51 @@ class NodeRegistration PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPubKeyFieldNumber = 1, - kChainPubKeyFieldNumber = 2, - kInfoUrlFieldNumber = 3, - kCountryFieldNumber = 4, + kVegaPubKeyFieldNumber = 1, + kEthereumAddressFieldNumber = 2, + kChainPubKeyFieldNumber = 3, + kInfoUrlFieldNumber = 4, + kCountryFieldNumber = 5, }; - // bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { - void clear_pub_key(); - const std::string& pub_key() const; - void set_pub_key(const std::string& value); - void set_pub_key(std::string&& value); - void set_pub_key(const char* value); - void set_pub_key(const void* value, size_t size); - std::string* mutable_pub_key(); - std::string* release_pub_key(); - void set_allocated_pub_key(std::string* pub_key); + // string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { + void clear_vega_pub_key(); + const std::string& vega_pub_key() const; + void set_vega_pub_key(const std::string& value); + void set_vega_pub_key(std::string&& value); + void set_vega_pub_key(const char* value); + void set_vega_pub_key(const char* value, size_t size); + std::string* mutable_vega_pub_key(); + std::string* release_vega_pub_key(); + void set_allocated_vega_pub_key(std::string* vega_pub_key); private: - const std::string& _internal_pub_key() const; - void _internal_set_pub_key(const std::string& value); - std::string* _internal_mutable_pub_key(); + const std::string& _internal_vega_pub_key() const; + void _internal_set_vega_pub_key(const std::string& value); + std::string* _internal_mutable_vega_pub_key(); + public: + + // string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { + void clear_ethereum_address(); + const std::string& ethereum_address() const; + void set_ethereum_address(const std::string& value); + void set_ethereum_address(std::string&& value); + void set_ethereum_address(const char* value); + void set_ethereum_address(const char* value, size_t size); + std::string* mutable_ethereum_address(); + std::string* release_ethereum_address(); + void set_allocated_ethereum_address(std::string* ethereum_address); + private: + const std::string& _internal_ethereum_address() const; + void _internal_set_ethereum_address(const std::string& value); + std::string* _internal_mutable_ethereum_address(); public: - // bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { + // string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { void clear_chain_pub_key(); const std::string& chain_pub_key() const; void set_chain_pub_key(const std::string& value); void set_chain_pub_key(std::string&& value); void set_chain_pub_key(const char* value); - void set_chain_pub_key(const void* value, size_t size); + void set_chain_pub_key(const char* value, size_t size); std::string* mutable_chain_pub_key(); std::string* release_chain_pub_key(); void set_allocated_chain_pub_key(std::string* chain_pub_key); @@ -261,7 +278,7 @@ class NodeRegistration PROTOBUF_FINAL : std::string* _internal_mutable_chain_pub_key(); public: - // string info_url = 3 [json_name = "infoUrl", (.validator.field) = { + // string info_url = 4 [json_name = "infoUrl", (.validator.field) = { void clear_info_url(); const std::string& info_url() const; void set_info_url(const std::string& value); @@ -277,7 +294,7 @@ class NodeRegistration PROTOBUF_FINAL : std::string* _internal_mutable_info_url(); public: - // string country = 4 [json_name = "country", (.validator.field) = { + // string country = 5 [json_name = "country", (.validator.field) = { void clear_country(); const std::string& country() const; void set_country(const std::string& value); @@ -300,7 +317,8 @@ class NodeRegistration PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pub_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_pub_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ethereum_address_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_pub_key_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_url_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_; @@ -683,6 +701,7 @@ class ChainEvent PROTOBUF_FINAL : kErc20 = 1002, kBtc = 1003, kValidator = 1004, + kStakingEvent = 1005, EVENT_NOT_SET = 0, }; @@ -768,6 +787,7 @@ class ChainEvent PROTOBUF_FINAL : kErc20FieldNumber = 1002, kBtcFieldNumber = 1003, kValidatorFieldNumber = 1004, + kStakingEventFieldNumber = 1005, }; // string tx_id = 1 [json_name = "txId"]; void clear_tx_id(); @@ -866,6 +886,24 @@ class ChainEvent PROTOBUF_FINAL : ::vega::ValidatorEvent* validator); ::vega::ValidatorEvent* unsafe_arena_release_validator(); + // .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + bool has_staking_event() const; + private: + bool _internal_has_staking_event() const; + public: + void clear_staking_event(); + const ::vega::StakingEvent& staking_event() const; + ::vega::StakingEvent* release_staking_event(); + ::vega::StakingEvent* mutable_staking_event(); + void set_allocated_staking_event(::vega::StakingEvent* staking_event); + private: + const ::vega::StakingEvent& _internal_staking_event() const; + ::vega::StakingEvent* _internal_mutable_staking_event(); + public: + void unsafe_arena_set_allocated_staking_event( + ::vega::StakingEvent* staking_event); + ::vega::StakingEvent* unsafe_arena_release_staking_event(); + void clear_event(); EventCase event_case() const; // @@protoc_insertion_point(class_scope:vega.commands.v1.ChainEvent) @@ -875,6 +913,7 @@ class ChainEvent PROTOBUF_FINAL : void set_has_erc20(); void set_has_btc(); void set_has_validator(); + void set_has_staking_event(); inline bool has_event() const; inline void clear_has_event(); @@ -890,6 +929,7 @@ class ChainEvent PROTOBUF_FINAL : ::vega::ERC20Event* erc20_; ::vega::BTCEvent* btc_; ::vega::ValidatorEvent* validator_; + ::vega::StakingEvent* staking_event_; } event_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -907,68 +947,129 @@ class ChainEvent PROTOBUF_FINAL : #endif // __GNUC__ // NodeRegistration -// bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { -inline void NodeRegistration::clear_pub_key() { - pub_key_.ClearToEmpty(); +// string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { +inline void NodeRegistration::clear_vega_pub_key() { + vega_pub_key_.ClearToEmpty(); } -inline const std::string& NodeRegistration::pub_key() const { - // @@protoc_insertion_point(field_get:vega.commands.v1.NodeRegistration.pub_key) - return _internal_pub_key(); +inline const std::string& NodeRegistration::vega_pub_key() const { + // @@protoc_insertion_point(field_get:vega.commands.v1.NodeRegistration.vega_pub_key) + return _internal_vega_pub_key(); } -inline void NodeRegistration::set_pub_key(const std::string& value) { - _internal_set_pub_key(value); - // @@protoc_insertion_point(field_set:vega.commands.v1.NodeRegistration.pub_key) +inline void NodeRegistration::set_vega_pub_key(const std::string& value) { + _internal_set_vega_pub_key(value); + // @@protoc_insertion_point(field_set:vega.commands.v1.NodeRegistration.vega_pub_key) } -inline std::string* NodeRegistration::mutable_pub_key() { - // @@protoc_insertion_point(field_mutable:vega.commands.v1.NodeRegistration.pub_key) - return _internal_mutable_pub_key(); +inline std::string* NodeRegistration::mutable_vega_pub_key() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.NodeRegistration.vega_pub_key) + return _internal_mutable_vega_pub_key(); } -inline const std::string& NodeRegistration::_internal_pub_key() const { - return pub_key_.Get(); +inline const std::string& NodeRegistration::_internal_vega_pub_key() const { + return vega_pub_key_.Get(); } -inline void NodeRegistration::_internal_set_pub_key(const std::string& value) { +inline void NodeRegistration::_internal_set_vega_pub_key(const std::string& value) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void NodeRegistration::set_pub_key(std::string&& value) { +inline void NodeRegistration::set_vega_pub_key(std::string&& value) { - pub_key_.Set( + vega_pub_key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.NodeRegistration.pub_key) + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.NodeRegistration.vega_pub_key) } -inline void NodeRegistration::set_pub_key(const char* value) { +inline void NodeRegistration::set_vega_pub_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.commands.v1.NodeRegistration.pub_key) + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.NodeRegistration.vega_pub_key) } -inline void NodeRegistration::set_pub_key(const void* value, +inline void NodeRegistration::set_vega_pub_key(const char* value, size_t size) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.NodeRegistration.pub_key) + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.NodeRegistration.vega_pub_key) } -inline std::string* NodeRegistration::_internal_mutable_pub_key() { +inline std::string* NodeRegistration::_internal_mutable_vega_pub_key() { - return pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return vega_pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* NodeRegistration::release_pub_key() { - // @@protoc_insertion_point(field_release:vega.commands.v1.NodeRegistration.pub_key) - return pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* NodeRegistration::release_vega_pub_key() { + // @@protoc_insertion_point(field_release:vega.commands.v1.NodeRegistration.vega_pub_key) + return vega_pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void NodeRegistration::set_allocated_pub_key(std::string* pub_key) { - if (pub_key != nullptr) { +inline void NodeRegistration::set_allocated_vega_pub_key(std::string* vega_pub_key) { + if (vega_pub_key != nullptr) { } else { } - pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pub_key, + vega_pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_pub_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.NodeRegistration.vega_pub_key) +} + +// string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { +inline void NodeRegistration::clear_ethereum_address() { + ethereum_address_.ClearToEmpty(); +} +inline const std::string& NodeRegistration::ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.commands.v1.NodeRegistration.ethereum_address) + return _internal_ethereum_address(); +} +inline void NodeRegistration::set_ethereum_address(const std::string& value) { + _internal_set_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.commands.v1.NodeRegistration.ethereum_address) +} +inline std::string* NodeRegistration::mutable_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.NodeRegistration.ethereum_address) + return _internal_mutable_ethereum_address(); +} +inline const std::string& NodeRegistration::_internal_ethereum_address() const { + return ethereum_address_.Get(); +} +inline void NodeRegistration::_internal_set_ethereum_address(const std::string& value) { + + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void NodeRegistration::set_ethereum_address(std::string&& value) { + + ethereum_address_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.NodeRegistration.ethereum_address) +} +inline void NodeRegistration::set_ethereum_address(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.NodeRegistration.ethereum_address) +} +inline void NodeRegistration::set_ethereum_address(const char* value, + size_t size) { + + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.NodeRegistration.ethereum_address) +} +inline std::string* NodeRegistration::_internal_mutable_ethereum_address() { + + return ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* NodeRegistration::release_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.commands.v1.NodeRegistration.ethereum_address) + return ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void NodeRegistration::set_allocated_ethereum_address(std::string* ethereum_address) { + if (ethereum_address != nullptr) { + + } else { + + } + ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ethereum_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.NodeRegistration.pub_key) + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.NodeRegistration.ethereum_address) } -// bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { +// string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { inline void NodeRegistration::clear_chain_pub_key() { chain_pub_key_.ClearToEmpty(); } @@ -1003,7 +1104,7 @@ inline void NodeRegistration::set_chain_pub_key(const char* value) { chain_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:vega.commands.v1.NodeRegistration.chain_pub_key) } -inline void NodeRegistration::set_chain_pub_key(const void* value, +inline void NodeRegistration::set_chain_pub_key(const char* value, size_t size) { chain_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( @@ -1029,7 +1130,7 @@ inline void NodeRegistration::set_allocated_chain_pub_key(std::string* chain_pub // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.NodeRegistration.chain_pub_key) } -// string info_url = 3 [json_name = "infoUrl", (.validator.field) = { +// string info_url = 4 [json_name = "infoUrl", (.validator.field) = { inline void NodeRegistration::clear_info_url() { info_url_.ClearToEmpty(); } @@ -1090,7 +1191,7 @@ inline void NodeRegistration::set_allocated_info_url(std::string* info_url) { // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.NodeRegistration.info_url) } -// string country = 4 [json_name = "country", (.validator.field) = { +// string country = 5 [json_name = "country", (.validator.field) = { inline void NodeRegistration::clear_country() { country_.ClearToEmpty(); } @@ -1768,6 +1869,71 @@ inline ::vega::ValidatorEvent* ChainEvent::mutable_validator() { return _internal_mutable_validator(); } +// .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; +inline bool ChainEvent::_internal_has_staking_event() const { + return event_case() == kStakingEvent; +} +inline bool ChainEvent::has_staking_event() const { + return _internal_has_staking_event(); +} +inline void ChainEvent::set_has_staking_event() { + _oneof_case_[0] = kStakingEvent; +} +inline ::vega::StakingEvent* ChainEvent::release_staking_event() { + // @@protoc_insertion_point(field_release:vega.commands.v1.ChainEvent.staking_event) + if (_internal_has_staking_event()) { + clear_has_event(); + ::vega::StakingEvent* temp = event_.staking_event_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + event_.staking_event_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::StakingEvent& ChainEvent::_internal_staking_event() const { + return _internal_has_staking_event() + ? *event_.staking_event_ + : reinterpret_cast< ::vega::StakingEvent&>(::vega::_StakingEvent_default_instance_); +} +inline const ::vega::StakingEvent& ChainEvent::staking_event() const { + // @@protoc_insertion_point(field_get:vega.commands.v1.ChainEvent.staking_event) + return _internal_staking_event(); +} +inline ::vega::StakingEvent* ChainEvent::unsafe_arena_release_staking_event() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.commands.v1.ChainEvent.staking_event) + if (_internal_has_staking_event()) { + clear_has_event(); + ::vega::StakingEvent* temp = event_.staking_event_; + event_.staking_event_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ChainEvent::unsafe_arena_set_allocated_staking_event(::vega::StakingEvent* staking_event) { + clear_event(); + if (staking_event) { + set_has_staking_event(); + event_.staking_event_ = staking_event; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.commands.v1.ChainEvent.staking_event) +} +inline ::vega::StakingEvent* ChainEvent::_internal_mutable_staking_event() { + if (!_internal_has_staking_event()) { + clear_event(); + set_has_staking_event(); + event_.staking_event_ = CreateMaybeMessage< ::vega::StakingEvent >(GetArena()); + } + return event_.staking_event_; +} +inline ::vega::StakingEvent* ChainEvent::mutable_staking_event() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.ChainEvent.staking_event) + return _internal_mutable_staking_event(); +} + inline bool ChainEvent::has_event() const { return event_case() != EVENT_NOT_SET; } diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc new file mode 100644 index 00000000..54ada505 --- /dev/null +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc @@ -0,0 +1,426 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: coreapi/v1/coreapi.proto + +#include "coreapi/v1/coreapi.pb.h" +#include "coreapi/v1/coreapi.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace vega { +namespace coreapi { +namespace v1 { + +static const char* CoreApiService_method_names[] = { + "/vega.coreapi.v1.CoreApiService/ListAccounts", + "/vega.coreapi.v1.CoreApiService/ListAssets", + "/vega.coreapi.v1.CoreApiService/ListNetworkParameters", + "/vega.coreapi.v1.CoreApiService/ListParties", + "/vega.coreapi.v1.CoreApiService/ListValidators", + "/vega.coreapi.v1.CoreApiService/ListMarkets", + "/vega.coreapi.v1.CoreApiService/ListProposals", + "/vega.coreapi.v1.CoreApiService/ListMarketsData", + "/vega.coreapi.v1.CoreApiService/ListVotes", +}; + +std::unique_ptr< CoreApiService::Stub> CoreApiService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< CoreApiService::Stub> stub(new CoreApiService::Stub(channel)); + return stub; +} + +CoreApiService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_ListAccounts_(CoreApiService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListAssets_(CoreApiService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNetworkParameters_(CoreApiService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListParties_(CoreApiService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListValidators_(CoreApiService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListMarkets_(CoreApiService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListProposals_(CoreApiService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListMarketsData_(CoreApiService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListVotes_(CoreApiService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status CoreApiService::Stub::ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::vega::coreapi::v1::ListAccountsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListAccounts_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAccounts_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAccounts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>* CoreApiService::Stub::PrepareAsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListAccountsResponse, ::vega::coreapi::v1::ListAccountsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListAccounts_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>* CoreApiService::Stub::AsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListAccountsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::vega::coreapi::v1::ListAssetsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListAssets_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAssets_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAssets_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>* CoreApiService::Stub::PrepareAsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListAssetsResponse, ::vega::coreapi::v1::ListAssetsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListAssets_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>* CoreApiService::Stub::AsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListAssetsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::vega::coreapi::v1::ListNetworkParametersResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListNetworkParameters_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListNetworkParameters_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListNetworkParameters_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>* CoreApiService::Stub::PrepareAsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListNetworkParametersResponse, ::vega::coreapi::v1::ListNetworkParametersRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListNetworkParameters_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>* CoreApiService::Stub::AsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListNetworkParametersRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::vega::coreapi::v1::ListPartiesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListParties_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListParties_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListParties_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>* CoreApiService::Stub::PrepareAsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListPartiesResponse, ::vega::coreapi::v1::ListPartiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListParties_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>* CoreApiService::Stub::AsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListPartiesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::vega::coreapi::v1::ListValidatorsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListValidators_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListValidators_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListValidators_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>* CoreApiService::Stub::PrepareAsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListValidatorsResponse, ::vega::coreapi::v1::ListValidatorsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListValidators_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>* CoreApiService::Stub::AsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListValidatorsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::vega::coreapi::v1::ListMarketsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListMarkets_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMarkets_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMarkets_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>* CoreApiService::Stub::PrepareAsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListMarketsResponse, ::vega::coreapi::v1::ListMarketsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListMarkets_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>* CoreApiService::Stub::AsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListMarketsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::vega::coreapi::v1::ListProposalsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListProposals_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListProposals_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListProposals_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>* CoreApiService::Stub::PrepareAsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListProposalsResponse, ::vega::coreapi::v1::ListProposalsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListProposals_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>* CoreApiService::Stub::AsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListProposalsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::vega::coreapi::v1::ListMarketsDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListMarketsData_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMarketsData_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMarketsData_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>* CoreApiService::Stub::PrepareAsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListMarketsDataResponse, ::vega::coreapi::v1::ListMarketsDataRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListMarketsData_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>* CoreApiService::Stub::AsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListMarketsDataRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CoreApiService::Stub::ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::vega::coreapi::v1::ListVotesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListVotes_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListVotes_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListVotes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* CoreApiService::Stub::PrepareAsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListVotesResponse, ::vega::coreapi::v1::ListVotesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListVotes_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* CoreApiService::Stub::AsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListVotesRaw(context, request, cq); + result->StartCall(); + return result; +} + +CoreApiService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListAccountsRequest* req, + ::vega::coreapi::v1::ListAccountsResponse* resp) { + return service->ListAccounts(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListAssetsRequest* req, + ::vega::coreapi::v1::ListAssetsResponse* resp) { + return service->ListAssets(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListNetworkParametersRequest* req, + ::vega::coreapi::v1::ListNetworkParametersResponse* resp) { + return service->ListNetworkParameters(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListPartiesRequest* req, + ::vega::coreapi::v1::ListPartiesResponse* resp) { + return service->ListParties(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListValidatorsRequest* req, + ::vega::coreapi::v1::ListValidatorsResponse* resp) { + return service->ListValidators(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListMarketsRequest* req, + ::vega::coreapi::v1::ListMarketsResponse* resp) { + return service->ListMarkets(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListProposalsRequest* req, + ::vega::coreapi::v1::ListProposalsResponse* resp) { + return service->ListProposals(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListMarketsDataRequest* req, + ::vega::coreapi::v1::ListMarketsDataResponse* resp) { + return service->ListMarketsData(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListVotesRequest* req, + ::vega::coreapi::v1::ListVotesResponse* resp) { + return service->ListVotes(ctx, req, resp); + }, this))); +} + +CoreApiService::Service::~Service() { +} + +::grpc::Status CoreApiService::Service::ListAccounts(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListAssets(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListNetworkParameters(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListParties(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListValidators(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListMarkets(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListProposals(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListMarketsData(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CoreApiService::Service::ListVotes(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace vega +} // namespace coreapi +} // namespace v1 + diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h new file mode 100644 index 00000000..0b5ac6b3 --- /dev/null +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h @@ -0,0 +1,1904 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: coreapi/v1/coreapi.proto +#ifndef GRPC_coreapi_2fv1_2fcoreapi_2eproto__INCLUDED +#define GRPC_coreapi_2fv1_2fcoreapi_2eproto__INCLUDED + +#include "coreapi/v1/coreapi.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace vega { +namespace coreapi { +namespace v1 { + +class CoreApiService final { + public: + static constexpr char const* service_full_name() { + return "vega.coreapi.v1.CoreApiService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::vega::coreapi::v1::ListAccountsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>> AsyncListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>>(AsyncListAccountsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>> PrepareAsyncListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>>(PrepareAsyncListAccountsRaw(context, request, cq)); + } + virtual ::grpc::Status ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::vega::coreapi::v1::ListAssetsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>> AsyncListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>>(AsyncListAssetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>> PrepareAsyncListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>>(PrepareAsyncListAssetsRaw(context, request, cq)); + } + virtual ::grpc::Status ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::vega::coreapi::v1::ListNetworkParametersResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>> AsyncListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>>(AsyncListNetworkParametersRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>> PrepareAsyncListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>>(PrepareAsyncListNetworkParametersRaw(context, request, cq)); + } + virtual ::grpc::Status ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::vega::coreapi::v1::ListPartiesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>> AsyncListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>>(AsyncListPartiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>> PrepareAsyncListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>>(PrepareAsyncListPartiesRaw(context, request, cq)); + } + virtual ::grpc::Status ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::vega::coreapi::v1::ListValidatorsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>> AsyncListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>>(AsyncListValidatorsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>> PrepareAsyncListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>>(PrepareAsyncListValidatorsRaw(context, request, cq)); + } + virtual ::grpc::Status ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::vega::coreapi::v1::ListMarketsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>> AsyncListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>>(AsyncListMarketsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>> PrepareAsyncListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>>(PrepareAsyncListMarketsRaw(context, request, cq)); + } + virtual ::grpc::Status ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::vega::coreapi::v1::ListProposalsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>> AsyncListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>>(AsyncListProposalsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>> PrepareAsyncListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>>(PrepareAsyncListProposalsRaw(context, request, cq)); + } + virtual ::grpc::Status ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::vega::coreapi::v1::ListMarketsDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>> AsyncListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>>(AsyncListMarketsDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>> PrepareAsyncListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>>(PrepareAsyncListMarketsDataRaw(context, request, cq)); + } + virtual ::grpc::Status ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::vega::coreapi::v1::ListVotesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>> AsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>>(AsyncListVotesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>> PrepareAsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>>(PrepareAsyncListVotesRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + virtual void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>* AsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAccountsResponse>* PrepareAsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>* AsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListAssetsResponse>* PrepareAsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>* AsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListNetworkParametersResponse>* PrepareAsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>* AsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesResponse>* PrepareAsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>* AsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListValidatorsResponse>* PrepareAsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>* AsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsResponse>* PrepareAsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>* AsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListProposalsResponse>* PrepareAsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>* AsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>* PrepareAsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>* AsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>* PrepareAsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::vega::coreapi::v1::ListAccountsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>> AsyncListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>>(AsyncListAccountsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>> PrepareAsyncListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>>(PrepareAsyncListAccountsRaw(context, request, cq)); + } + ::grpc::Status ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::vega::coreapi::v1::ListAssetsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>> AsyncListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>>(AsyncListAssetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>> PrepareAsyncListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>>(PrepareAsyncListAssetsRaw(context, request, cq)); + } + ::grpc::Status ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::vega::coreapi::v1::ListNetworkParametersResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>> AsyncListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>>(AsyncListNetworkParametersRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>> PrepareAsyncListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>>(PrepareAsyncListNetworkParametersRaw(context, request, cq)); + } + ::grpc::Status ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::vega::coreapi::v1::ListPartiesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>> AsyncListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>>(AsyncListPartiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>> PrepareAsyncListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>>(PrepareAsyncListPartiesRaw(context, request, cq)); + } + ::grpc::Status ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::vega::coreapi::v1::ListValidatorsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>> AsyncListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>>(AsyncListValidatorsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>> PrepareAsyncListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>>(PrepareAsyncListValidatorsRaw(context, request, cq)); + } + ::grpc::Status ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::vega::coreapi::v1::ListMarketsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>> AsyncListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>>(AsyncListMarketsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>> PrepareAsyncListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>>(PrepareAsyncListMarketsRaw(context, request, cq)); + } + ::grpc::Status ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::vega::coreapi::v1::ListProposalsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>> AsyncListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>>(AsyncListProposalsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>> PrepareAsyncListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>>(PrepareAsyncListProposalsRaw(context, request, cq)); + } + ::grpc::Status ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::vega::coreapi::v1::ListMarketsDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>> AsyncListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>>(AsyncListMarketsDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>> PrepareAsyncListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>>(PrepareAsyncListMarketsDataRaw(context, request, cq)); + } + ::grpc::Status ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::vega::coreapi::v1::ListVotesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>> AsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>>(AsyncListVotesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>> PrepareAsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>>(PrepareAsyncListVotesRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListAssets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListNetworkParameters(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListParties(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListValidators(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListMarkets(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListProposals(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListMarketsData(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>* AsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAccountsResponse>* PrepareAsyncListAccountsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>* AsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListAssetsResponse>* PrepareAsyncListAssetsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAssetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>* AsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListNetworkParametersResponse>* PrepareAsyncListNetworkParametersRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>* AsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesResponse>* PrepareAsyncListPartiesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>* AsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>* PrepareAsyncListValidatorsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListValidatorsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>* AsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsResponse>* PrepareAsyncListMarketsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>* AsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListProposalsResponse>* PrepareAsyncListProposalsRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListProposalsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>* AsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>* PrepareAsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* AsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* PrepareAsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_ListAccounts_; + const ::grpc::internal::RpcMethod rpcmethod_ListAssets_; + const ::grpc::internal::RpcMethod rpcmethod_ListNetworkParameters_; + const ::grpc::internal::RpcMethod rpcmethod_ListParties_; + const ::grpc::internal::RpcMethod rpcmethod_ListValidators_; + const ::grpc::internal::RpcMethod rpcmethod_ListMarkets_; + const ::grpc::internal::RpcMethod rpcmethod_ListProposals_; + const ::grpc::internal::RpcMethod rpcmethod_ListMarketsData_; + const ::grpc::internal::RpcMethod rpcmethod_ListVotes_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status ListAccounts(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response); + virtual ::grpc::Status ListAssets(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response); + virtual ::grpc::Status ListNetworkParameters(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response); + virtual ::grpc::Status ListParties(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response); + virtual ::grpc::Status ListValidators(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response); + virtual ::grpc::Status ListMarkets(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response); + virtual ::grpc::Status ListProposals(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response); + virtual ::grpc::Status ListMarketsData(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response); + virtual ::grpc::Status ListVotes(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response); + }; + template + class WithAsyncMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListAccounts() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListAccounts(::grpc::ServerContext* context, ::vega::coreapi::v1::ListAccountsRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListAccountsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListAssets() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListAssets(::grpc::ServerContext* context, ::vega::coreapi::v1::ListAssetsRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListAssetsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListNetworkParameters() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNetworkParameters(::grpc::ServerContext* context, ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListNetworkParametersResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListParties() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListParties(::grpc::ServerContext* context, ::vega::coreapi::v1::ListPartiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListPartiesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListValidators() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListValidators(::grpc::ServerContext* context, ::vega::coreapi::v1::ListValidatorsRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListValidatorsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListMarkets() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMarkets(::grpc::ServerContext* context, ::vega::coreapi::v1::ListMarketsRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListMarketsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListProposals() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProposals(::grpc::ServerContext* context, ::vega::coreapi::v1::ListProposalsRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListProposalsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListMarketsData() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMarketsData(::grpc::ServerContext* context, ::vega::coreapi::v1::ListMarketsDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListMarketsDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListVotes() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListVotes(::grpc::ServerContext* context, ::vega::coreapi::v1::ListVotesRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListVotesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListAccounts > > > > > > > > AsyncService; + template + class ExperimentalWithCallbackMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListAccounts() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListAccountsRequest* request, ::vega::coreapi::v1::ListAccountsResponse* response) { return this->ListAccounts(context, request, response); }));} + void SetMessageAllocatorFor_ListAccounts( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListAccounts( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAccounts( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListAssets() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListAssetsRequest* request, ::vega::coreapi::v1::ListAssetsResponse* response) { return this->ListAssets(context, request, response); }));} + void SetMessageAllocatorFor_ListAssets( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListAssets( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAssets( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListNetworkParameters() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListNetworkParametersRequest* request, ::vega::coreapi::v1::ListNetworkParametersResponse* response) { return this->ListNetworkParameters(context, request, response); }));} + void SetMessageAllocatorFor_ListNetworkParameters( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListNetworkParameters( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListNetworkParameters( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListParties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListPartiesRequest* request, ::vega::coreapi::v1::ListPartiesResponse* response) { return this->ListParties(context, request, response); }));} + void SetMessageAllocatorFor_ListParties( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListParties( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListParties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListValidators() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListValidatorsRequest* request, ::vega::coreapi::v1::ListValidatorsResponse* response) { return this->ListValidators(context, request, response); }));} + void SetMessageAllocatorFor_ListValidators( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListValidators( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListValidators( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListMarkets() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListMarketsRequest* request, ::vega::coreapi::v1::ListMarketsResponse* response) { return this->ListMarkets(context, request, response); }));} + void SetMessageAllocatorFor_ListMarkets( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListMarkets( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMarkets( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListProposals() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response) { return this->ListProposals(context, request, response); }));} + void SetMessageAllocatorFor_ListProposals( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListProposals( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListProposals( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListMarketsData() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response) { return this->ListMarketsData(context, request, response); }));} + void SetMessageAllocatorFor_ListMarketsData( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListMarketsData( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMarketsData( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListVotes() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response) { return this->ListVotes(context, request, response); }));} + void SetMessageAllocatorFor_ListVotes( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListVotes( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListVotes( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > ExperimentalCallbackService; + template + class WithGenericMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListAccounts() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListAssets() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListNetworkParameters() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListParties() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListValidators() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListMarkets() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListProposals() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListMarketsData() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListVotes() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListAccounts() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListAccounts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListAssets() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListAssets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListNetworkParameters() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNetworkParameters(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListParties() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListParties(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListValidators() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListValidators(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListMarkets() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMarkets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListProposals() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProposals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListMarketsData() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMarketsData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListVotes() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListVotes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListAccounts() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListAccounts(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListAccounts( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAccounts( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListAssets() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListAssets(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListAssets( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAssets( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListNetworkParameters() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListNetworkParameters(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListNetworkParameters( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListNetworkParameters( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListParties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListParties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListParties( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListParties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListValidators() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListValidators(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListValidators( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListValidators( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListMarkets() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListMarkets(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListMarkets( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMarkets( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListProposals() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListProposals(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListProposals( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListProposals( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListMarketsData() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListMarketsData(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListMarketsData( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMarketsData( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListVotes() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListVotes(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListVotes( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListVotes( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class WithStreamedUnaryMethod_ListAccounts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListAccounts() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListAccountsRequest, ::vega::coreapi::v1::ListAccountsResponse>* streamer) { + return this->StreamedListAccounts(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListAccounts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListAccounts(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAccountsRequest* /*request*/, ::vega::coreapi::v1::ListAccountsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListAccounts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListAccountsRequest,::vega::coreapi::v1::ListAccountsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListAssets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListAssets() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListAssetsRequest, ::vega::coreapi::v1::ListAssetsResponse>* streamer) { + return this->StreamedListAssets(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListAssets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListAssets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListAssetsRequest* /*request*/, ::vega::coreapi::v1::ListAssetsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListAssets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListAssetsRequest,::vega::coreapi::v1::ListAssetsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNetworkParameters : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListNetworkParameters() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListNetworkParametersRequest, ::vega::coreapi::v1::ListNetworkParametersResponse>* streamer) { + return this->StreamedListNetworkParameters(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListNetworkParameters() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNetworkParameters(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListNetworkParametersRequest* /*request*/, ::vega::coreapi::v1::ListNetworkParametersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNetworkParameters(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListNetworkParametersRequest,::vega::coreapi::v1::ListNetworkParametersResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListParties : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListParties() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListPartiesRequest, ::vega::coreapi::v1::ListPartiesResponse>* streamer) { + return this->StreamedListParties(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListParties() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListParties(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesRequest* /*request*/, ::vega::coreapi::v1::ListPartiesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListParties(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListPartiesRequest,::vega::coreapi::v1::ListPartiesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListValidators : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListValidators() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListValidatorsRequest, ::vega::coreapi::v1::ListValidatorsResponse>* streamer) { + return this->StreamedListValidators(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListValidators() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListValidators(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListValidatorsRequest* /*request*/, ::vega::coreapi::v1::ListValidatorsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListValidators(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListValidatorsRequest,::vega::coreapi::v1::ListValidatorsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListMarkets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListMarkets() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListMarketsRequest, ::vega::coreapi::v1::ListMarketsResponse>* streamer) { + return this->StreamedListMarkets(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListMarkets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListMarkets(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsRequest* /*request*/, ::vega::coreapi::v1::ListMarketsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListMarkets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListMarketsRequest,::vega::coreapi::v1::ListMarketsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListProposals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListProposals() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListProposalsRequest, ::vega::coreapi::v1::ListProposalsResponse>* streamer) { + return this->StreamedListProposals(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListProposals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListProposals(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListProposalsRequest* /*request*/, ::vega::coreapi::v1::ListProposalsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListProposals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListProposalsRequest,::vega::coreapi::v1::ListProposalsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListMarketsData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListMarketsData() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListMarketsDataRequest, ::vega::coreapi::v1::ListMarketsDataResponse>* streamer) { + return this->StreamedListMarketsData(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListMarketsData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListMarketsData(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListMarketsDataRequest* /*request*/, ::vega::coreapi::v1::ListMarketsDataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListMarketsData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListMarketsDataRequest,::vega::coreapi::v1::ListMarketsDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListVotes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListVotes() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListVotesRequest, ::vega::coreapi::v1::ListVotesResponse>* streamer) { + return this->StreamedListVotes(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListVotes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListVotes(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListVotesRequest* /*request*/, ::vega::coreapi::v1::ListVotesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListVotes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListVotesRequest,::vega::coreapi::v1::ListVotesResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > StreamedService; +}; + +} // namespace v1 +} // namespace coreapi +} // namespace vega + + +#endif // GRPC_coreapi_2fv1_2fcoreapi_2eproto__INCLUDED diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc new file mode 100644 index 00000000..065ccfc8 --- /dev/null +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc @@ -0,0 +1,4764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreapi/v1/coreapi.proto + +#include "coreapi/v1/coreapi.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +extern PROTOBUF_INTERNAL_EXPORT_assets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Asset_assets_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_markets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_Market_markets_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MarketData_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParameter_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Party_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Proposal_governance_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Vote_governance_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_coreapi_2fv1_2fcoreapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto; +namespace vega { +namespace coreapi { +namespace v1 { +class AccountDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Account_default_instance_; +class ListAccountsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListAccountsRequest_default_instance_; +class ListAccountsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListAccountsResponse_default_instance_; +class ListAssetsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListAssetsRequest_default_instance_; +class ListAssetsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListAssetsResponse_default_instance_; +class ListNetworkParametersRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListNetworkParametersRequest_default_instance_; +class ListNetworkParametersResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListNetworkParametersResponse_default_instance_; +class ListPartiesRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListPartiesRequest_default_instance_; +class ListPartiesResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListPartiesResponse_default_instance_; +class ListValidatorsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListValidatorsRequest_default_instance_; +class ListValidatorsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListValidatorsResponse_default_instance_; +class ListMarketsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListMarketsRequest_default_instance_; +class ListMarketsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListMarketsResponse_default_instance_; +class ListProposalsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListProposalsRequest_default_instance_; +class ListProposalsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListProposalsResponse_default_instance_; +class ListMarketsDataRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListMarketsDataRequest_default_instance_; +class ListMarketsDataResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListMarketsDataResponse_default_instance_; +class ListVotesRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListVotesRequest_default_instance_; +class ListVotesResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListVotesResponse_default_instance_; +} // namespace v1 +} // namespace coreapi +} // namespace vega +static void InitDefaultsscc_info_Account_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_Account_default_instance_; + new (ptr) ::vega::coreapi::v1::Account(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Account_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListAccountsRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListAccountsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListAccountsResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListAccountsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto.base,}}; + +static void InitDefaultsscc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListAssetsRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListAssetsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListAssetsResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListAssetsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Asset_assets_2eproto.base,}}; + +static void InitDefaultsscc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListMarketsDataRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListMarketsDataRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListMarketsDataResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListMarketsDataResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_MarketData_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListMarketsRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListMarketsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListMarketsResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListMarketsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Market_markets_2eproto.base,}}; + +static void InitDefaultsscc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListNetworkParametersRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListNetworkParametersRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListNetworkParametersResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListNetworkParametersResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_NetworkParameter_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListPartiesRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListPartiesRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListPartiesResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListPartiesResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Party_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListProposalsRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListProposalsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListProposalsResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListProposalsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Proposal_governance_2eproto.base,}}; + +static void InitDefaultsscc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListValidatorsRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListValidatorsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListValidatorsResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListValidatorsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto.base,}}; + +static void InitDefaultsscc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListVotesRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListVotesRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListVotesResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListVotesResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_Vote_governance_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto[19]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_coreapi_2fv1_2fcoreapi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, party_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, market_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, balance_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, asset_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::Account, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAccountsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAccountsRequest, party_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAccountsRequest, market_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAccountsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAccountsResponse, accounts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAssetsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAssetsRequest, asset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAssetsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListAssetsResponse, assets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListNetworkParametersRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListNetworkParametersRequest, network_parameter_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListNetworkParametersResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListNetworkParametersResponse, network_parameters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesResponse, parties_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListValidatorsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListValidatorsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListValidatorsResponse, validators_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsRequest, market_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsResponse, markets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListProposalsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListProposalsRequest, proposal_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListProposalsRequest, proposer_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListProposalsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListProposalsResponse, proposals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsDataRequest, market_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListMarketsDataResponse, markets_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesRequest, proposal_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesRequest, party_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesResponse, votes_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::vega::coreapi::v1::Account)}, + { 10, -1, sizeof(::vega::coreapi::v1::ListAccountsRequest)}, + { 17, -1, sizeof(::vega::coreapi::v1::ListAccountsResponse)}, + { 23, -1, sizeof(::vega::coreapi::v1::ListAssetsRequest)}, + { 29, -1, sizeof(::vega::coreapi::v1::ListAssetsResponse)}, + { 35, -1, sizeof(::vega::coreapi::v1::ListNetworkParametersRequest)}, + { 41, -1, sizeof(::vega::coreapi::v1::ListNetworkParametersResponse)}, + { 47, -1, sizeof(::vega::coreapi::v1::ListPartiesRequest)}, + { 52, -1, sizeof(::vega::coreapi::v1::ListPartiesResponse)}, + { 58, -1, sizeof(::vega::coreapi::v1::ListValidatorsRequest)}, + { 63, -1, sizeof(::vega::coreapi::v1::ListValidatorsResponse)}, + { 69, -1, sizeof(::vega::coreapi::v1::ListMarketsRequest)}, + { 75, -1, sizeof(::vega::coreapi::v1::ListMarketsResponse)}, + { 81, -1, sizeof(::vega::coreapi::v1::ListProposalsRequest)}, + { 88, -1, sizeof(::vega::coreapi::v1::ListProposalsResponse)}, + { 94, -1, sizeof(::vega::coreapi::v1::ListMarketsDataRequest)}, + { 100, -1, sizeof(::vega::coreapi::v1::ListMarketsDataResponse)}, + { 106, -1, sizeof(::vega::coreapi::v1::ListVotesRequest)}, + { 113, -1, sizeof(::vega::coreapi::v1::ListVotesResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::vega::coreapi::v1::_Account_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListAccountsRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListAccountsResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListAssetsRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListAssetsResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListNetworkParametersRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListNetworkParametersResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListPartiesRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListPartiesResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListValidatorsRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListValidatorsResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListMarketsRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListMarketsResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListProposalsRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListProposalsResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListMarketsDataRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListMarketsDataResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListVotesRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListVotesResponse_default_instance_), +}; + +const char descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\030coreapi/v1/coreapi.proto\022\017vega.coreapi" + ".v1\032\014assets.proto\032\020governance.proto\032\rmar" + "kets.proto\032\nvega.proto\032\026events/v1/events" + ".proto\"{\n\007Account\022\024\n\005party\030\001 \001(\tR\005party\022" + "\026\n\006market\030\002 \001(\tR\006market\022\030\n\007balance\030\003 \001(\t" + "R\007balance\022\024\n\005asset\030\005 \001(\tR\005asset\022\022\n\004type\030" + "\006 \001(\tR\004type\"C\n\023ListAccountsRequest\022\024\n\005pa" + "rty\030\001 \001(\tR\005party\022\026\n\006market\030\002 \001(\tR\006market" + "\"L\n\024ListAccountsResponse\0224\n\010accounts\030\001 \003" + "(\0132\030.vega.coreapi.v1.AccountR\010accounts\")" + "\n\021ListAssetsRequest\022\024\n\005asset\030\001 \001(\tR\005asse" + "t\"9\n\022ListAssetsResponse\022#\n\006assets\030\001 \003(\0132" + "\013.vega.AssetR\006assets\"R\n\034ListNetworkParam" + "etersRequest\0222\n\025network_parameter_key\030\001 " + "\001(\tR\023networkParameterKey\"f\n\035ListNetworkP" + "arametersResponse\022E\n\022network_parameters\030" + "\001 \003(\0132\026.vega.NetworkParameterR\021networkPa" + "rameters\"\024\n\022ListPartiesRequest\"<\n\023ListPa" + "rtiesResponse\022%\n\007parties\030\001 \003(\0132\013.vega.Pa" + "rtyR\007parties\"\027\n\025ListValidatorsRequest\"Y\n" + "\026ListValidatorsResponse\022\?\n\nvalidators\030\001 " + "\003(\0132\037.vega.events.v1.ValidatorUpdateR\nva" + "lidators\",\n\022ListMarketsRequest\022\026\n\006market" + "\030\001 \001(\tR\006market\"=\n\023ListMarketsResponse\022&\n" + "\007markets\030\001 \003(\0132\014.vega.MarketR\007markets\"N\n" + "\024ListProposalsRequest\022\032\n\010proposal\030\001 \001(\tR" + "\010proposal\022\032\n\010proposer\030\002 \001(\tR\010proposer\"E\n" + "\025ListProposalsResponse\022,\n\tproposals\030\001 \003(" + "\0132\016.vega.ProposalR\tproposals\"0\n\026ListMark" + "etsDataRequest\022\026\n\006market\030\001 \001(\tR\006market\"N" + "\n\027ListMarketsDataResponse\0223\n\014markets_dat" + "a\030\001 \003(\0132\020.vega.MarketDataR\013marketsData\"D" + "\n\020ListVotesRequest\022\032\n\010proposal\030\001 \001(\tR\010pr" + "oposal\022\024\n\005party\030\002 \001(\tR\005party\"5\n\021ListVote" + "sResponse\022 \n\005votes\030\001 \003(\0132\n.vega.VoteR\005vo" + "tes2\355\006\n\016CoreApiService\022[\n\014ListAccounts\022$" + ".vega.coreapi.v1.ListAccountsRequest\032%.v" + "ega.coreapi.v1.ListAccountsResponse\022U\n\nL" + "istAssets\022\".vega.coreapi.v1.ListAssetsRe" + "quest\032#.vega.coreapi.v1.ListAssetsRespon" + "se\022v\n\025ListNetworkParameters\022-.vega.corea" + "pi.v1.ListNetworkParametersRequest\032..veg" + "a.coreapi.v1.ListNetworkParametersRespon" + "se\022X\n\013ListParties\022#.vega.coreapi.v1.List" + "PartiesRequest\032$.vega.coreapi.v1.ListPar" + "tiesResponse\022a\n\016ListValidators\022&.vega.co" + "reapi.v1.ListValidatorsRequest\032\'.vega.co" + "reapi.v1.ListValidatorsResponse\022X\n\013ListM" + "arkets\022#.vega.coreapi.v1.ListMarketsRequ" + "est\032$.vega.coreapi.v1.ListMarketsRespons" + "e\022^\n\rListProposals\022%.vega.coreapi.v1.Lis" + "tProposalsRequest\032&.vega.coreapi.v1.List" + "ProposalsResponse\022d\n\017ListMarketsData\022\'.v" + "ega.coreapi.v1.ListMarketsDataRequest\032(." + "vega.coreapi.v1.ListMarketsDataResponse\022" + "R\n\tListVotes\022!.vega.coreapi.v1.ListVotes" + "Request\032\".vega.coreapi.v1.ListVotesRespo" + "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" + "code.vegaprotocol.io/vega/proto/coreapi/" + "v1b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps[5] = { + &::descriptor_table_assets_2eproto, + &::descriptor_table_events_2fv1_2fevents_2eproto, + &::descriptor_table_governance_2eproto, + &::descriptor_table_markets_2eproto, + &::descriptor_table_vega_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs[19] = { + &scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_coreapi_2fv1_2fcoreapi_2eproto = { + false, false, descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto, "coreapi/v1/coreapi.proto", 2370, + &descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps, 19, 5, + schemas, file_default_instances, TableStruct_coreapi_2fv1_2fcoreapi_2eproto::offsets, + file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto, 19, file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto, file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_coreapi_2fv1_2fcoreapi_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_coreapi_2fv1_2fcoreapi_2eproto)), true); +namespace vega { +namespace coreapi { +namespace v1 { + +// =================================================================== + +class Account::_Internal { + public: +}; + +Account::Account(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.Account) +} +Account::Account(const Account& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market().empty()) { + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), + GetArena()); + } + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_balance().empty()) { + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_balance(), + GetArena()); + } + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), + GetArena()); + } + type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_type().empty()) { + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.Account) +} + +void Account::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Account::~Account() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.Account) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Account::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Account::ArenaDtor(void* object) { + Account* _this = reinterpret_cast< Account* >(object); + (void)_this; +} +void Account::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Account::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Account& Account::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void Account::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.Account) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + market_.ClearToEmpty(); + balance_.ClearToEmpty(); + asset_.ClearToEmpty(); + type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Account::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.Account.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string market = 2 [json_name = "market"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_market(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.Account.market")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string balance = 3 [json_name = "balance"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_balance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.Account.balance")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string asset = 5 [json_name = "asset"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_asset(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.Account.asset")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string type = 6 [json_name = "type"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_type(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.Account.type")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Account::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.Account) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.Account.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string market = 2 [json_name = "market"]; + if (this->market().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_market().data(), static_cast(this->_internal_market().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.Account.market"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_market(), target); + } + + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_balance().data(), static_cast(this->_internal_balance().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.Account.balance"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_balance(), target); + } + + // string asset = 5 [json_name = "asset"]; + if (this->asset().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.Account.asset"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_asset(), target); + } + + // string type = 6 [json_name = "type"]; + if (this->type().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.Account.type"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.Account) + return target; +} + +size_t Account::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.Account) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string market = 2 [json_name = "market"]; + if (this->market().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market()); + } + + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_balance()); + } + + // string asset = 5 [json_name = "asset"]; + if (this->asset().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); + } + + // string type = 6 [json_name = "type"]; + if (this->type().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Account::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.Account) + GOOGLE_DCHECK_NE(&from, this); + const Account* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.Account) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.Account) + MergeFrom(*source); + } +} + +void Account::MergeFrom(const Account& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.Account) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.market().size() > 0) { + _internal_set_market(from._internal_market()); + } + if (from.balance().size() > 0) { + _internal_set_balance(from._internal_balance()); + } + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); + } + if (from.type().size() > 0) { + _internal_set_type(from._internal_type()); + } +} + +void Account::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.Account) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Account::CopyFrom(const Account& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.Account) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Account::IsInitialized() const { + return true; +} + +void Account::InternalSwap(Account* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + balance_.Swap(&other->balance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Account::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListAccountsRequest::_Internal { + public: +}; + +ListAccountsRequest::ListAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListAccountsRequest) +} +ListAccountsRequest::ListAccountsRequest(const ListAccountsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market().empty()) { + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListAccountsRequest) +} + +void ListAccountsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListAccountsRequest::~ListAccountsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListAccountsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListAccountsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListAccountsRequest::ArenaDtor(void* object) { + ListAccountsRequest* _this = reinterpret_cast< ListAccountsRequest* >(object); + (void)_this; +} +void ListAccountsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListAccountsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListAccountsRequest& ListAccountsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListAccountsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListAccountsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + market_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAccountsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListAccountsRequest.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string market = 2 [json_name = "market"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_market(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListAccountsRequest.market")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListAccountsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListAccountsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListAccountsRequest.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string market = 2 [json_name = "market"]; + if (this->market().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_market().data(), static_cast(this->_internal_market().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListAccountsRequest.market"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_market(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListAccountsRequest) + return target; +} + +size_t ListAccountsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListAccountsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string market = 2 [json_name = "market"]; + if (this->market().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListAccountsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListAccountsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListAccountsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListAccountsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListAccountsRequest) + MergeFrom(*source); + } +} + +void ListAccountsRequest::MergeFrom(const ListAccountsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListAccountsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.market().size() > 0) { + _internal_set_market(from._internal_market()); + } +} + +void ListAccountsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListAccountsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListAccountsRequest::CopyFrom(const ListAccountsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListAccountsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListAccountsRequest::IsInitialized() const { + return true; +} + +void ListAccountsRequest::InternalSwap(ListAccountsRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListAccountsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListAccountsResponse::_Internal { + public: +}; + +ListAccountsResponse::ListAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + accounts_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListAccountsResponse) +} +ListAccountsResponse::ListAccountsResponse(const ListAccountsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + accounts_(from.accounts_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListAccountsResponse) +} + +void ListAccountsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListAccountsResponse::~ListAccountsResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListAccountsResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListAccountsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListAccountsResponse::ArenaDtor(void* object) { + ListAccountsResponse* _this = reinterpret_cast< ListAccountsResponse* >(object); + (void)_this; +} +void ListAccountsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListAccountsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListAccountsResponse& ListAccountsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListAccountsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListAccountsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + accounts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAccountsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_accounts(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListAccountsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListAccountsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_accounts_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_accounts(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListAccountsResponse) + return target; +} + +size_t ListAccountsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListAccountsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + total_size += 1UL * this->_internal_accounts_size(); + for (const auto& msg : this->accounts_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListAccountsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListAccountsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListAccountsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListAccountsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListAccountsResponse) + MergeFrom(*source); + } +} + +void ListAccountsResponse::MergeFrom(const ListAccountsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListAccountsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + accounts_.MergeFrom(from.accounts_); +} + +void ListAccountsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListAccountsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListAccountsResponse::CopyFrom(const ListAccountsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListAccountsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListAccountsResponse::IsInitialized() const { + return true; +} + +void ListAccountsResponse::InternalSwap(ListAccountsResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + accounts_.InternalSwap(&other->accounts_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListAccountsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListAssetsRequest::_Internal { + public: +}; + +ListAssetsRequest::ListAssetsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListAssetsRequest) +} +ListAssetsRequest::ListAssetsRequest(const ListAssetsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListAssetsRequest) +} + +void ListAssetsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListAssetsRequest::~ListAssetsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListAssetsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListAssetsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListAssetsRequest::ArenaDtor(void* object) { + ListAssetsRequest* _this = reinterpret_cast< ListAssetsRequest* >(object); + (void)_this; +} +void ListAssetsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListAssetsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListAssetsRequest& ListAssetsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAssetsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListAssetsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListAssetsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + asset_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAssetsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string asset = 1 [json_name = "asset"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_asset(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListAssetsRequest.asset")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListAssetsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListAssetsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string asset = 1 [json_name = "asset"]; + if (this->asset().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListAssetsRequest.asset"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_asset(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListAssetsRequest) + return target; +} + +size_t ListAssetsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListAssetsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string asset = 1 [json_name = "asset"]; + if (this->asset().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListAssetsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListAssetsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListAssetsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListAssetsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListAssetsRequest) + MergeFrom(*source); + } +} + +void ListAssetsRequest::MergeFrom(const ListAssetsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListAssetsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); + } +} + +void ListAssetsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListAssetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListAssetsRequest::CopyFrom(const ListAssetsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListAssetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListAssetsRequest::IsInitialized() const { + return true; +} + +void ListAssetsRequest::InternalSwap(ListAssetsRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListAssetsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListAssetsResponse::_Internal { + public: +}; + +void ListAssetsResponse::clear_assets() { + assets_.Clear(); +} +ListAssetsResponse::ListAssetsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + assets_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListAssetsResponse) +} +ListAssetsResponse::ListAssetsResponse(const ListAssetsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + assets_(from.assets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListAssetsResponse) +} + +void ListAssetsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListAssetsResponse::~ListAssetsResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListAssetsResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListAssetsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListAssetsResponse::ArenaDtor(void* object) { + ListAssetsResponse* _this = reinterpret_cast< ListAssetsResponse* >(object); + (void)_this; +} +void ListAssetsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListAssetsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListAssetsResponse& ListAssetsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAssetsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListAssetsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListAssetsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + assets_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAssetsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Asset assets = 1 [json_name = "assets"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_assets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListAssetsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListAssetsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Asset assets = 1 [json_name = "assets"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_assets_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_assets(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListAssetsResponse) + return target; +} + +size_t ListAssetsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListAssetsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Asset assets = 1 [json_name = "assets"]; + total_size += 1UL * this->_internal_assets_size(); + for (const auto& msg : this->assets_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListAssetsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListAssetsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListAssetsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListAssetsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListAssetsResponse) + MergeFrom(*source); + } +} + +void ListAssetsResponse::MergeFrom(const ListAssetsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListAssetsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + assets_.MergeFrom(from.assets_); +} + +void ListAssetsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListAssetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListAssetsResponse::CopyFrom(const ListAssetsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListAssetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListAssetsResponse::IsInitialized() const { + return true; +} + +void ListAssetsResponse::InternalSwap(ListAssetsResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + assets_.InternalSwap(&other->assets_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListAssetsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListNetworkParametersRequest::_Internal { + public: +}; + +ListNetworkParametersRequest::ListNetworkParametersRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListNetworkParametersRequest) +} +ListNetworkParametersRequest::ListNetworkParametersRequest(const ListNetworkParametersRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + network_parameter_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_network_parameter_key().empty()) { + network_parameter_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_network_parameter_key(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListNetworkParametersRequest) +} + +void ListNetworkParametersRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + network_parameter_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListNetworkParametersRequest::~ListNetworkParametersRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListNetworkParametersRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListNetworkParametersRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + network_parameter_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListNetworkParametersRequest::ArenaDtor(void* object) { + ListNetworkParametersRequest* _this = reinterpret_cast< ListNetworkParametersRequest* >(object); + (void)_this; +} +void ListNetworkParametersRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListNetworkParametersRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListNetworkParametersRequest& ListNetworkParametersRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListNetworkParametersRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListNetworkParametersRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListNetworkParametersRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + network_parameter_key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListNetworkParametersRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string network_parameter_key = 1 [json_name = "networkParameterKey"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_network_parameter_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListNetworkParametersRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListNetworkParametersRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string network_parameter_key = 1 [json_name = "networkParameterKey"]; + if (this->network_parameter_key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_network_parameter_key().data(), static_cast(this->_internal_network_parameter_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_network_parameter_key(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListNetworkParametersRequest) + return target; +} + +size_t ListNetworkParametersRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListNetworkParametersRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string network_parameter_key = 1 [json_name = "networkParameterKey"]; + if (this->network_parameter_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_network_parameter_key()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListNetworkParametersRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListNetworkParametersRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListNetworkParametersRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListNetworkParametersRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListNetworkParametersRequest) + MergeFrom(*source); + } +} + +void ListNetworkParametersRequest::MergeFrom(const ListNetworkParametersRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListNetworkParametersRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.network_parameter_key().size() > 0) { + _internal_set_network_parameter_key(from._internal_network_parameter_key()); + } +} + +void ListNetworkParametersRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListNetworkParametersRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListNetworkParametersRequest::CopyFrom(const ListNetworkParametersRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListNetworkParametersRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListNetworkParametersRequest::IsInitialized() const { + return true; +} + +void ListNetworkParametersRequest::InternalSwap(ListNetworkParametersRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + network_parameter_key_.Swap(&other->network_parameter_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListNetworkParametersRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListNetworkParametersResponse::_Internal { + public: +}; + +void ListNetworkParametersResponse::clear_network_parameters() { + network_parameters_.Clear(); +} +ListNetworkParametersResponse::ListNetworkParametersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + network_parameters_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListNetworkParametersResponse) +} +ListNetworkParametersResponse::ListNetworkParametersResponse(const ListNetworkParametersResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + network_parameters_(from.network_parameters_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListNetworkParametersResponse) +} + +void ListNetworkParametersResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListNetworkParametersResponse::~ListNetworkParametersResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListNetworkParametersResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListNetworkParametersResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListNetworkParametersResponse::ArenaDtor(void* object) { + ListNetworkParametersResponse* _this = reinterpret_cast< ListNetworkParametersResponse* >(object); + (void)_this; +} +void ListNetworkParametersResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListNetworkParametersResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListNetworkParametersResponse& ListNetworkParametersResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListNetworkParametersResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListNetworkParametersResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + network_parameters_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListNetworkParametersResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_network_parameters(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListNetworkParametersResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListNetworkParametersResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_network_parameters_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_network_parameters(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListNetworkParametersResponse) + return target; +} + +size_t ListNetworkParametersResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListNetworkParametersResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + total_size += 1UL * this->_internal_network_parameters_size(); + for (const auto& msg : this->network_parameters_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListNetworkParametersResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListNetworkParametersResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListNetworkParametersResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListNetworkParametersResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListNetworkParametersResponse) + MergeFrom(*source); + } +} + +void ListNetworkParametersResponse::MergeFrom(const ListNetworkParametersResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListNetworkParametersResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + network_parameters_.MergeFrom(from.network_parameters_); +} + +void ListNetworkParametersResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListNetworkParametersResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListNetworkParametersResponse::CopyFrom(const ListNetworkParametersResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListNetworkParametersResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListNetworkParametersResponse::IsInitialized() const { + return true; +} + +void ListNetworkParametersResponse::InternalSwap(ListNetworkParametersResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + network_parameters_.InternalSwap(&other->network_parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListNetworkParametersResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListPartiesRequest::_Internal { + public: +}; + +ListPartiesRequest::ListPartiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListPartiesRequest) +} +ListPartiesRequest::ListPartiesRequest(const ListPartiesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListPartiesRequest) +} + +void ListPartiesRequest::SharedCtor() { +} + +ListPartiesRequest::~ListPartiesRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListPartiesRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListPartiesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListPartiesRequest::ArenaDtor(void* object) { + ListPartiesRequest* _this = reinterpret_cast< ListPartiesRequest* >(object); + (void)_this; +} +void ListPartiesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListPartiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListPartiesRequest& ListPartiesRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListPartiesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListPartiesRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPartiesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListPartiesRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListPartiesRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListPartiesRequest) + return target; +} + +size_t ListPartiesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListPartiesRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListPartiesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListPartiesRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListPartiesRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListPartiesRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListPartiesRequest) + MergeFrom(*source); + } +} + +void ListPartiesRequest::MergeFrom(const ListPartiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListPartiesRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ListPartiesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListPartiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListPartiesRequest::CopyFrom(const ListPartiesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListPartiesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListPartiesRequest::IsInitialized() const { + return true; +} + +void ListPartiesRequest::InternalSwap(ListPartiesRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListPartiesRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListPartiesResponse::_Internal { + public: +}; + +void ListPartiesResponse::clear_parties() { + parties_.Clear(); +} +ListPartiesResponse::ListPartiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + parties_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListPartiesResponse) +} +ListPartiesResponse::ListPartiesResponse(const ListPartiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + parties_(from.parties_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListPartiesResponse) +} + +void ListPartiesResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListPartiesResponse::~ListPartiesResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListPartiesResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListPartiesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListPartiesResponse::ArenaDtor(void* object) { + ListPartiesResponse* _this = reinterpret_cast< ListPartiesResponse* >(object); + (void)_this; +} +void ListPartiesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListPartiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListPartiesResponse& ListPartiesResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListPartiesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListPartiesResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parties_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPartiesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Party parties = 1 [json_name = "parties"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parties(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListPartiesResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListPartiesResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Party parties = 1 [json_name = "parties"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_parties_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_parties(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListPartiesResponse) + return target; +} + +size_t ListPartiesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListPartiesResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Party parties = 1 [json_name = "parties"]; + total_size += 1UL * this->_internal_parties_size(); + for (const auto& msg : this->parties_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListPartiesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListPartiesResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListPartiesResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListPartiesResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListPartiesResponse) + MergeFrom(*source); + } +} + +void ListPartiesResponse::MergeFrom(const ListPartiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListPartiesResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parties_.MergeFrom(from.parties_); +} + +void ListPartiesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListPartiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListPartiesResponse::CopyFrom(const ListPartiesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListPartiesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListPartiesResponse::IsInitialized() const { + return true; +} + +void ListPartiesResponse::InternalSwap(ListPartiesResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + parties_.InternalSwap(&other->parties_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListPartiesResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListValidatorsRequest::_Internal { + public: +}; + +ListValidatorsRequest::ListValidatorsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListValidatorsRequest) +} +ListValidatorsRequest::ListValidatorsRequest(const ListValidatorsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListValidatorsRequest) +} + +void ListValidatorsRequest::SharedCtor() { +} + +ListValidatorsRequest::~ListValidatorsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListValidatorsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListValidatorsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListValidatorsRequest::ArenaDtor(void* object) { + ListValidatorsRequest* _this = reinterpret_cast< ListValidatorsRequest* >(object); + (void)_this; +} +void ListValidatorsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListValidatorsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListValidatorsRequest& ListValidatorsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListValidatorsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListValidatorsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValidatorsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListValidatorsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListValidatorsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListValidatorsRequest) + return target; +} + +size_t ListValidatorsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListValidatorsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListValidatorsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListValidatorsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListValidatorsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListValidatorsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListValidatorsRequest) + MergeFrom(*source); + } +} + +void ListValidatorsRequest::MergeFrom(const ListValidatorsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListValidatorsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ListValidatorsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListValidatorsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListValidatorsRequest::CopyFrom(const ListValidatorsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListValidatorsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListValidatorsRequest::IsInitialized() const { + return true; +} + +void ListValidatorsRequest::InternalSwap(ListValidatorsRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListValidatorsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListValidatorsResponse::_Internal { + public: +}; + +void ListValidatorsResponse::clear_validators() { + validators_.Clear(); +} +ListValidatorsResponse::ListValidatorsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + validators_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListValidatorsResponse) +} +ListValidatorsResponse::ListValidatorsResponse(const ListValidatorsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + validators_(from.validators_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListValidatorsResponse) +} + +void ListValidatorsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListValidatorsResponse::~ListValidatorsResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListValidatorsResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListValidatorsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListValidatorsResponse::ArenaDtor(void* object) { + ListValidatorsResponse* _this = reinterpret_cast< ListValidatorsResponse* >(object); + (void)_this; +} +void ListValidatorsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListValidatorsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListValidatorsResponse& ListValidatorsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListValidatorsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListValidatorsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + validators_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValidatorsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_validators(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListValidatorsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListValidatorsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_validators_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_validators(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListValidatorsResponse) + return target; +} + +size_t ListValidatorsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListValidatorsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + total_size += 1UL * this->_internal_validators_size(); + for (const auto& msg : this->validators_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListValidatorsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListValidatorsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListValidatorsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListValidatorsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListValidatorsResponse) + MergeFrom(*source); + } +} + +void ListValidatorsResponse::MergeFrom(const ListValidatorsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListValidatorsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + validators_.MergeFrom(from.validators_); +} + +void ListValidatorsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListValidatorsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListValidatorsResponse::CopyFrom(const ListValidatorsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListValidatorsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListValidatorsResponse::IsInitialized() const { + return true; +} + +void ListValidatorsResponse::InternalSwap(ListValidatorsResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + validators_.InternalSwap(&other->validators_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListValidatorsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListMarketsRequest::_Internal { + public: +}; + +ListMarketsRequest::ListMarketsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListMarketsRequest) +} +ListMarketsRequest::ListMarketsRequest(const ListMarketsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market().empty()) { + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListMarketsRequest) +} + +void ListMarketsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListMarketsRequest::~ListMarketsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListMarketsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListMarketsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListMarketsRequest::ArenaDtor(void* object) { + ListMarketsRequest* _this = reinterpret_cast< ListMarketsRequest* >(object); + (void)_this; +} +void ListMarketsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListMarketsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMarketsRequest& ListMarketsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListMarketsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListMarketsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + market_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMarketsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string market = 1 [json_name = "market"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_market(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListMarketsRequest.market")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListMarketsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListMarketsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string market = 1 [json_name = "market"]; + if (this->market().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_market().data(), static_cast(this->_internal_market().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListMarketsRequest.market"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_market(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListMarketsRequest) + return target; +} + +size_t ListMarketsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListMarketsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string market = 1 [json_name = "market"]; + if (this->market().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMarketsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListMarketsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListMarketsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListMarketsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListMarketsRequest) + MergeFrom(*source); + } +} + +void ListMarketsRequest::MergeFrom(const ListMarketsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListMarketsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.market().size() > 0) { + _internal_set_market(from._internal_market()); + } +} + +void ListMarketsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListMarketsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMarketsRequest::CopyFrom(const ListMarketsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListMarketsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMarketsRequest::IsInitialized() const { + return true; +} + +void ListMarketsRequest::InternalSwap(ListMarketsRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListMarketsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListMarketsResponse::_Internal { + public: +}; + +void ListMarketsResponse::clear_markets() { + markets_.Clear(); +} +ListMarketsResponse::ListMarketsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + markets_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListMarketsResponse) +} +ListMarketsResponse::ListMarketsResponse(const ListMarketsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + markets_(from.markets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListMarketsResponse) +} + +void ListMarketsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListMarketsResponse::~ListMarketsResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListMarketsResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListMarketsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListMarketsResponse::ArenaDtor(void* object) { + ListMarketsResponse* _this = reinterpret_cast< ListMarketsResponse* >(object); + (void)_this; +} +void ListMarketsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListMarketsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMarketsResponse& ListMarketsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListMarketsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListMarketsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListMarketsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + markets_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMarketsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Market markets = 1 [json_name = "markets"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_markets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListMarketsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListMarketsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Market markets = 1 [json_name = "markets"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_markets_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_markets(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListMarketsResponse) + return target; +} + +size_t ListMarketsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListMarketsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Market markets = 1 [json_name = "markets"]; + total_size += 1UL * this->_internal_markets_size(); + for (const auto& msg : this->markets_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMarketsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListMarketsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListMarketsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListMarketsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListMarketsResponse) + MergeFrom(*source); + } +} + +void ListMarketsResponse::MergeFrom(const ListMarketsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListMarketsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + markets_.MergeFrom(from.markets_); +} + +void ListMarketsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListMarketsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMarketsResponse::CopyFrom(const ListMarketsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListMarketsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMarketsResponse::IsInitialized() const { + return true; +} + +void ListMarketsResponse::InternalSwap(ListMarketsResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + markets_.InternalSwap(&other->markets_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListMarketsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListProposalsRequest::_Internal { + public: +}; + +ListProposalsRequest::ListProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListProposalsRequest) +} +ListProposalsRequest::ListProposalsRequest(const ListProposalsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + proposal_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_proposal().empty()) { + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposal(), + GetArena()); + } + proposer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_proposer().empty()) { + proposer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposer(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListProposalsRequest) +} + +void ListProposalsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + proposal_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + proposer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListProposalsRequest::~ListProposalsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListProposalsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListProposalsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + proposal_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + proposer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListProposalsRequest::ArenaDtor(void* object) { + ListProposalsRequest* _this = reinterpret_cast< ListProposalsRequest* >(object); + (void)_this; +} +void ListProposalsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListProposalsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListProposalsRequest& ListProposalsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListProposalsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListProposalsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + proposal_.ClearToEmpty(); + proposer_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListProposalsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string proposal = 1 [json_name = "proposal"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_proposal(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListProposalsRequest.proposal")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string proposer = 2 [json_name = "proposer"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_proposer(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListProposalsRequest.proposer")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListProposalsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListProposalsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string proposal = 1 [json_name = "proposal"]; + if (this->proposal().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proposal().data(), static_cast(this->_internal_proposal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListProposalsRequest.proposal"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_proposal(), target); + } + + // string proposer = 2 [json_name = "proposer"]; + if (this->proposer().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proposer().data(), static_cast(this->_internal_proposer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListProposalsRequest.proposer"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_proposer(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListProposalsRequest) + return target; +} + +size_t ListProposalsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListProposalsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string proposal = 1 [json_name = "proposal"]; + if (this->proposal().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proposal()); + } + + // string proposer = 2 [json_name = "proposer"]; + if (this->proposer().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proposer()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListProposalsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListProposalsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListProposalsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListProposalsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListProposalsRequest) + MergeFrom(*source); + } +} + +void ListProposalsRequest::MergeFrom(const ListProposalsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListProposalsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.proposal().size() > 0) { + _internal_set_proposal(from._internal_proposal()); + } + if (from.proposer().size() > 0) { + _internal_set_proposer(from._internal_proposer()); + } +} + +void ListProposalsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListProposalsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListProposalsRequest::CopyFrom(const ListProposalsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListProposalsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListProposalsRequest::IsInitialized() const { + return true; +} + +void ListProposalsRequest::InternalSwap(ListProposalsRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + proposal_.Swap(&other->proposal_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + proposer_.Swap(&other->proposer_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListProposalsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListProposalsResponse::_Internal { + public: +}; + +void ListProposalsResponse::clear_proposals() { + proposals_.Clear(); +} +ListProposalsResponse::ListProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + proposals_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListProposalsResponse) +} +ListProposalsResponse::ListProposalsResponse(const ListProposalsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + proposals_(from.proposals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListProposalsResponse) +} + +void ListProposalsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListProposalsResponse::~ListProposalsResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListProposalsResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListProposalsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListProposalsResponse::ArenaDtor(void* object) { + ListProposalsResponse* _this = reinterpret_cast< ListProposalsResponse* >(object); + (void)_this; +} +void ListProposalsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListProposalsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListProposalsResponse& ListProposalsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListProposalsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListProposalsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + proposals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListProposalsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_proposals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListProposalsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListProposalsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_proposals_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_proposals(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListProposalsResponse) + return target; +} + +size_t ListProposalsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListProposalsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + total_size += 1UL * this->_internal_proposals_size(); + for (const auto& msg : this->proposals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListProposalsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListProposalsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListProposalsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListProposalsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListProposalsResponse) + MergeFrom(*source); + } +} + +void ListProposalsResponse::MergeFrom(const ListProposalsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListProposalsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + proposals_.MergeFrom(from.proposals_); +} + +void ListProposalsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListProposalsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListProposalsResponse::CopyFrom(const ListProposalsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListProposalsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListProposalsResponse::IsInitialized() const { + return true; +} + +void ListProposalsResponse::InternalSwap(ListProposalsResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + proposals_.InternalSwap(&other->proposals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListProposalsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListMarketsDataRequest::_Internal { + public: +}; + +ListMarketsDataRequest::ListMarketsDataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListMarketsDataRequest) +} +ListMarketsDataRequest::ListMarketsDataRequest(const ListMarketsDataRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market().empty()) { + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListMarketsDataRequest) +} + +void ListMarketsDataRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListMarketsDataRequest::~ListMarketsDataRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListMarketsDataRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListMarketsDataRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListMarketsDataRequest::ArenaDtor(void* object) { + ListMarketsDataRequest* _this = reinterpret_cast< ListMarketsDataRequest* >(object); + (void)_this; +} +void ListMarketsDataRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListMarketsDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMarketsDataRequest& ListMarketsDataRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListMarketsDataRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListMarketsDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListMarketsDataRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + market_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMarketsDataRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string market = 1 [json_name = "market"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_market(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListMarketsDataRequest.market")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListMarketsDataRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListMarketsDataRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string market = 1 [json_name = "market"]; + if (this->market().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_market().data(), static_cast(this->_internal_market().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListMarketsDataRequest.market"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_market(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListMarketsDataRequest) + return target; +} + +size_t ListMarketsDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListMarketsDataRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string market = 1 [json_name = "market"]; + if (this->market().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMarketsDataRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListMarketsDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListMarketsDataRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListMarketsDataRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListMarketsDataRequest) + MergeFrom(*source); + } +} + +void ListMarketsDataRequest::MergeFrom(const ListMarketsDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListMarketsDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.market().size() > 0) { + _internal_set_market(from._internal_market()); + } +} + +void ListMarketsDataRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListMarketsDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMarketsDataRequest::CopyFrom(const ListMarketsDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListMarketsDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMarketsDataRequest::IsInitialized() const { + return true; +} + +void ListMarketsDataRequest::InternalSwap(ListMarketsDataRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListMarketsDataRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListMarketsDataResponse::_Internal { + public: +}; + +void ListMarketsDataResponse::clear_markets_data() { + markets_data_.Clear(); +} +ListMarketsDataResponse::ListMarketsDataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + markets_data_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListMarketsDataResponse) +} +ListMarketsDataResponse::ListMarketsDataResponse(const ListMarketsDataResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + markets_data_(from.markets_data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListMarketsDataResponse) +} + +void ListMarketsDataResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListMarketsDataResponse::~ListMarketsDataResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListMarketsDataResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListMarketsDataResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListMarketsDataResponse::ArenaDtor(void* object) { + ListMarketsDataResponse* _this = reinterpret_cast< ListMarketsDataResponse* >(object); + (void)_this; +} +void ListMarketsDataResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListMarketsDataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMarketsDataResponse& ListMarketsDataResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListMarketsDataResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListMarketsDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListMarketsDataResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + markets_data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMarketsDataResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_markets_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListMarketsDataResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListMarketsDataResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_markets_data_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_markets_data(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListMarketsDataResponse) + return target; +} + +size_t ListMarketsDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListMarketsDataResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + total_size += 1UL * this->_internal_markets_data_size(); + for (const auto& msg : this->markets_data_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMarketsDataResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListMarketsDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListMarketsDataResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListMarketsDataResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListMarketsDataResponse) + MergeFrom(*source); + } +} + +void ListMarketsDataResponse::MergeFrom(const ListMarketsDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListMarketsDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + markets_data_.MergeFrom(from.markets_data_); +} + +void ListMarketsDataResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListMarketsDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMarketsDataResponse::CopyFrom(const ListMarketsDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListMarketsDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMarketsDataResponse::IsInitialized() const { + return true; +} + +void ListMarketsDataResponse::InternalSwap(ListMarketsDataResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + markets_data_.InternalSwap(&other->markets_data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListMarketsDataResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListVotesRequest::_Internal { + public: +}; + +ListVotesRequest::ListVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListVotesRequest) +} +ListVotesRequest::ListVotesRequest(const ListVotesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + proposal_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_proposal().empty()) { + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposal(), + GetArena()); + } + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListVotesRequest) +} + +void ListVotesRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + proposal_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListVotesRequest::~ListVotesRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListVotesRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListVotesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + proposal_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListVotesRequest::ArenaDtor(void* object) { + ListVotesRequest* _this = reinterpret_cast< ListVotesRequest* >(object); + (void)_this; +} +void ListVotesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListVotesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListVotesRequest& ListVotesRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListVotesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListVotesRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + proposal_.ClearToEmpty(); + party_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListVotesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string proposal = 1 [json_name = "proposal"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_proposal(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListVotesRequest.proposal")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string party = 2 [json_name = "party"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListVotesRequest.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListVotesRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListVotesRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string proposal = 1 [json_name = "proposal"]; + if (this->proposal().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proposal().data(), static_cast(this->_internal_proposal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListVotesRequest.proposal"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_proposal(), target); + } + + // string party = 2 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListVotesRequest.party"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_party(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListVotesRequest) + return target; +} + +size_t ListVotesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListVotesRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string proposal = 1 [json_name = "proposal"]; + if (this->proposal().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proposal()); + } + + // string party = 2 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListVotesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListVotesRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListVotesRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListVotesRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListVotesRequest) + MergeFrom(*source); + } +} + +void ListVotesRequest::MergeFrom(const ListVotesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListVotesRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.proposal().size() > 0) { + _internal_set_proposal(from._internal_proposal()); + } + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } +} + +void ListVotesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListVotesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListVotesRequest::CopyFrom(const ListVotesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListVotesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListVotesRequest::IsInitialized() const { + return true; +} + +void ListVotesRequest::InternalSwap(ListVotesRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + proposal_.Swap(&other->proposal_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListVotesRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListVotesResponse::_Internal { + public: +}; + +void ListVotesResponse::clear_votes() { + votes_.Clear(); +} +ListVotesResponse::ListVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + votes_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListVotesResponse) +} +ListVotesResponse::ListVotesResponse(const ListVotesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + votes_(from.votes_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListVotesResponse) +} + +void ListVotesResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListVotesResponse::~ListVotesResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListVotesResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListVotesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListVotesResponse::ArenaDtor(void* object) { + ListVotesResponse* _this = reinterpret_cast< ListVotesResponse* >(object); + (void)_this; +} +void ListVotesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListVotesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListVotesResponse& ListVotesResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListVotesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListVotesResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + votes_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListVotesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Vote votes = 1 [json_name = "votes"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_votes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListVotesResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListVotesResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Vote votes = 1 [json_name = "votes"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_votes_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_votes(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListVotesResponse) + return target; +} + +size_t ListVotesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListVotesResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Vote votes = 1 [json_name = "votes"]; + total_size += 1UL * this->_internal_votes_size(); + for (const auto& msg : this->votes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListVotesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListVotesResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListVotesResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListVotesResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListVotesResponse) + MergeFrom(*source); + } +} + +void ListVotesResponse::MergeFrom(const ListVotesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListVotesResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + votes_.MergeFrom(from.votes_); +} + +void ListVotesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListVotesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListVotesResponse::CopyFrom(const ListVotesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListVotesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListVotesResponse::IsInitialized() const { + return true; +} + +void ListVotesResponse::InternalSwap(ListVotesResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + votes_.InternalSwap(&other->votes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListVotesResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace coreapi +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::Account* Arena::CreateMaybeMessage< ::vega::coreapi::v1::Account >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::Account >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h new file mode 100644 index 00000000..b3e0233b --- /dev/null +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h @@ -0,0 +1,4344 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreapi/v1/coreapi.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_coreapi_2fv1_2fcoreapi_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_coreapi_2fv1_2fcoreapi_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3014000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "assets.pb.h" +#include "governance.pb.h" +#include "markets.pb.h" +#include "vega.pb.h" +#include "events/v1/events.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_coreapi_2fv1_2fcoreapi_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_coreapi_2fv1_2fcoreapi_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[19] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_coreapi_2fv1_2fcoreapi_2eproto; +namespace vega { +namespace coreapi { +namespace v1 { +class Account; +class AccountDefaultTypeInternal; +extern AccountDefaultTypeInternal _Account_default_instance_; +class ListAccountsRequest; +class ListAccountsRequestDefaultTypeInternal; +extern ListAccountsRequestDefaultTypeInternal _ListAccountsRequest_default_instance_; +class ListAccountsResponse; +class ListAccountsResponseDefaultTypeInternal; +extern ListAccountsResponseDefaultTypeInternal _ListAccountsResponse_default_instance_; +class ListAssetsRequest; +class ListAssetsRequestDefaultTypeInternal; +extern ListAssetsRequestDefaultTypeInternal _ListAssetsRequest_default_instance_; +class ListAssetsResponse; +class ListAssetsResponseDefaultTypeInternal; +extern ListAssetsResponseDefaultTypeInternal _ListAssetsResponse_default_instance_; +class ListMarketsDataRequest; +class ListMarketsDataRequestDefaultTypeInternal; +extern ListMarketsDataRequestDefaultTypeInternal _ListMarketsDataRequest_default_instance_; +class ListMarketsDataResponse; +class ListMarketsDataResponseDefaultTypeInternal; +extern ListMarketsDataResponseDefaultTypeInternal _ListMarketsDataResponse_default_instance_; +class ListMarketsRequest; +class ListMarketsRequestDefaultTypeInternal; +extern ListMarketsRequestDefaultTypeInternal _ListMarketsRequest_default_instance_; +class ListMarketsResponse; +class ListMarketsResponseDefaultTypeInternal; +extern ListMarketsResponseDefaultTypeInternal _ListMarketsResponse_default_instance_; +class ListNetworkParametersRequest; +class ListNetworkParametersRequestDefaultTypeInternal; +extern ListNetworkParametersRequestDefaultTypeInternal _ListNetworkParametersRequest_default_instance_; +class ListNetworkParametersResponse; +class ListNetworkParametersResponseDefaultTypeInternal; +extern ListNetworkParametersResponseDefaultTypeInternal _ListNetworkParametersResponse_default_instance_; +class ListPartiesRequest; +class ListPartiesRequestDefaultTypeInternal; +extern ListPartiesRequestDefaultTypeInternal _ListPartiesRequest_default_instance_; +class ListPartiesResponse; +class ListPartiesResponseDefaultTypeInternal; +extern ListPartiesResponseDefaultTypeInternal _ListPartiesResponse_default_instance_; +class ListProposalsRequest; +class ListProposalsRequestDefaultTypeInternal; +extern ListProposalsRequestDefaultTypeInternal _ListProposalsRequest_default_instance_; +class ListProposalsResponse; +class ListProposalsResponseDefaultTypeInternal; +extern ListProposalsResponseDefaultTypeInternal _ListProposalsResponse_default_instance_; +class ListValidatorsRequest; +class ListValidatorsRequestDefaultTypeInternal; +extern ListValidatorsRequestDefaultTypeInternal _ListValidatorsRequest_default_instance_; +class ListValidatorsResponse; +class ListValidatorsResponseDefaultTypeInternal; +extern ListValidatorsResponseDefaultTypeInternal _ListValidatorsResponse_default_instance_; +class ListVotesRequest; +class ListVotesRequestDefaultTypeInternal; +extern ListVotesRequestDefaultTypeInternal _ListVotesRequest_default_instance_; +class ListVotesResponse; +class ListVotesResponseDefaultTypeInternal; +extern ListVotesResponseDefaultTypeInternal _ListVotesResponse_default_instance_; +} // namespace v1 +} // namespace coreapi +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> ::vega::coreapi::v1::Account* Arena::CreateMaybeMessage<::vega::coreapi::v1::Account>(Arena*); +template<> ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListAccountsRequest>(Arena*); +template<> ::vega::coreapi::v1::ListAccountsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListAccountsResponse>(Arena*); +template<> ::vega::coreapi::v1::ListAssetsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListAssetsRequest>(Arena*); +template<> ::vega::coreapi::v1::ListAssetsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListAssetsResponse>(Arena*); +template<> ::vega::coreapi::v1::ListMarketsDataRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListMarketsDataRequest>(Arena*); +template<> ::vega::coreapi::v1::ListMarketsDataResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListMarketsDataResponse>(Arena*); +template<> ::vega::coreapi::v1::ListMarketsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListMarketsRequest>(Arena*); +template<> ::vega::coreapi::v1::ListMarketsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListMarketsResponse>(Arena*); +template<> ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListNetworkParametersRequest>(Arena*); +template<> ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListNetworkParametersResponse>(Arena*); +template<> ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesRequest>(Arena*); +template<> ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesResponse>(Arena*); +template<> ::vega::coreapi::v1::ListProposalsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListProposalsRequest>(Arena*); +template<> ::vega::coreapi::v1::ListProposalsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListProposalsResponse>(Arena*); +template<> ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListValidatorsRequest>(Arena*); +template<> ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListValidatorsResponse>(Arena*); +template<> ::vega::coreapi::v1::ListVotesRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListVotesRequest>(Arena*); +template<> ::vega::coreapi::v1::ListVotesResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListVotesResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace vega { +namespace coreapi { +namespace v1 { + +// =================================================================== + +class Account PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.Account) */ { + public: + inline Account() : Account(nullptr) {} + virtual ~Account(); + + Account(const Account& from); + Account(Account&& from) noexcept + : Account() { + *this = ::std::move(from); + } + + inline Account& operator=(const Account& from) { + CopyFrom(from); + return *this; + } + inline Account& operator=(Account&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Account& default_instance(); + + static inline const Account* internal_default_instance() { + return reinterpret_cast( + &_Account_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Account& a, Account& b) { + a.Swap(&b); + } + inline void Swap(Account* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Account* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Account* New() const final { + return CreateMaybeMessage(nullptr); + } + + Account* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Account& from); + void MergeFrom(const Account& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Account* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.Account"; + } + protected: + explicit Account(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartyFieldNumber = 1, + kMarketFieldNumber = 2, + kBalanceFieldNumber = 3, + kAssetFieldNumber = 5, + kTypeFieldNumber = 6, + }; + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // string market = 2 [json_name = "market"]; + void clear_market(); + const std::string& market() const; + void set_market(const std::string& value); + void set_market(std::string&& value); + void set_market(const char* value); + void set_market(const char* value, size_t size); + std::string* mutable_market(); + std::string* release_market(); + void set_allocated_market(std::string* market); + private: + const std::string& _internal_market() const; + void _internal_set_market(const std::string& value); + std::string* _internal_mutable_market(); + public: + + // string balance = 3 [json_name = "balance"]; + void clear_balance(); + const std::string& balance() const; + void set_balance(const std::string& value); + void set_balance(std::string&& value); + void set_balance(const char* value); + void set_balance(const char* value, size_t size); + std::string* mutable_balance(); + std::string* release_balance(); + void set_allocated_balance(std::string* balance); + private: + const std::string& _internal_balance() const; + void _internal_set_balance(const std::string& value); + std::string* _internal_mutable_balance(); + public: + + // string asset = 5 [json_name = "asset"]; + void clear_asset(); + const std::string& asset() const; + void set_asset(const std::string& value); + void set_asset(std::string&& value); + void set_asset(const char* value); + void set_asset(const char* value, size_t size); + std::string* mutable_asset(); + std::string* release_asset(); + void set_allocated_asset(std::string* asset); + private: + const std::string& _internal_asset() const; + void _internal_set_asset(const std::string& value); + std::string* _internal_mutable_asset(); + public: + + // string type = 6 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + void set_type(const std::string& value); + void set_type(std::string&& value); + void set_type(const char* value); + void set_type(const char* value, size_t size); + std::string* mutable_type(); + std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.Account) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr balance_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListAccountsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListAccountsRequest) */ { + public: + inline ListAccountsRequest() : ListAccountsRequest(nullptr) {} + virtual ~ListAccountsRequest(); + + ListAccountsRequest(const ListAccountsRequest& from); + ListAccountsRequest(ListAccountsRequest&& from) noexcept + : ListAccountsRequest() { + *this = ::std::move(from); + } + + inline ListAccountsRequest& operator=(const ListAccountsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListAccountsRequest& operator=(ListAccountsRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListAccountsRequest& default_instance(); + + static inline const ListAccountsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListAccountsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ListAccountsRequest& a, ListAccountsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListAccountsRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListAccountsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListAccountsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListAccountsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListAccountsRequest& from); + void MergeFrom(const ListAccountsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListAccountsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListAccountsRequest"; + } + protected: + explicit ListAccountsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartyFieldNumber = 1, + kMarketFieldNumber = 2, + }; + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // string market = 2 [json_name = "market"]; + void clear_market(); + const std::string& market() const; + void set_market(const std::string& value); + void set_market(std::string&& value); + void set_market(const char* value); + void set_market(const char* value, size_t size); + std::string* mutable_market(); + std::string* release_market(); + void set_allocated_market(std::string* market); + private: + const std::string& _internal_market() const; + void _internal_set_market(const std::string& value); + std::string* _internal_mutable_market(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListAccountsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListAccountsResponse) */ { + public: + inline ListAccountsResponse() : ListAccountsResponse(nullptr) {} + virtual ~ListAccountsResponse(); + + ListAccountsResponse(const ListAccountsResponse& from); + ListAccountsResponse(ListAccountsResponse&& from) noexcept + : ListAccountsResponse() { + *this = ::std::move(from); + } + + inline ListAccountsResponse& operator=(const ListAccountsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListAccountsResponse& operator=(ListAccountsResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListAccountsResponse& default_instance(); + + static inline const ListAccountsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListAccountsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ListAccountsResponse& a, ListAccountsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListAccountsResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListAccountsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListAccountsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListAccountsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListAccountsResponse& from); + void MergeFrom(const ListAccountsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListAccountsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListAccountsResponse"; + } + protected: + explicit ListAccountsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAccountsFieldNumber = 1, + }; + // repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + int accounts_size() const; + private: + int _internal_accounts_size() const; + public: + void clear_accounts(); + ::vega::coreapi::v1::Account* mutable_accounts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::Account >* + mutable_accounts(); + private: + const ::vega::coreapi::v1::Account& _internal_accounts(int index) const; + ::vega::coreapi::v1::Account* _internal_add_accounts(); + public: + const ::vega::coreapi::v1::Account& accounts(int index) const; + ::vega::coreapi::v1::Account* add_accounts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::Account >& + accounts() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::Account > accounts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListAssetsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListAssetsRequest) */ { + public: + inline ListAssetsRequest() : ListAssetsRequest(nullptr) {} + virtual ~ListAssetsRequest(); + + ListAssetsRequest(const ListAssetsRequest& from); + ListAssetsRequest(ListAssetsRequest&& from) noexcept + : ListAssetsRequest() { + *this = ::std::move(from); + } + + inline ListAssetsRequest& operator=(const ListAssetsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListAssetsRequest& operator=(ListAssetsRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListAssetsRequest& default_instance(); + + static inline const ListAssetsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListAssetsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ListAssetsRequest& a, ListAssetsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListAssetsRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListAssetsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListAssetsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListAssetsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListAssetsRequest& from); + void MergeFrom(const ListAssetsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListAssetsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListAssetsRequest"; + } + protected: + explicit ListAssetsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAssetFieldNumber = 1, + }; + // string asset = 1 [json_name = "asset"]; + void clear_asset(); + const std::string& asset() const; + void set_asset(const std::string& value); + void set_asset(std::string&& value); + void set_asset(const char* value); + void set_asset(const char* value, size_t size); + std::string* mutable_asset(); + std::string* release_asset(); + void set_allocated_asset(std::string* asset); + private: + const std::string& _internal_asset() const; + void _internal_set_asset(const std::string& value); + std::string* _internal_mutable_asset(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListAssetsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListAssetsResponse) */ { + public: + inline ListAssetsResponse() : ListAssetsResponse(nullptr) {} + virtual ~ListAssetsResponse(); + + ListAssetsResponse(const ListAssetsResponse& from); + ListAssetsResponse(ListAssetsResponse&& from) noexcept + : ListAssetsResponse() { + *this = ::std::move(from); + } + + inline ListAssetsResponse& operator=(const ListAssetsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListAssetsResponse& operator=(ListAssetsResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListAssetsResponse& default_instance(); + + static inline const ListAssetsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListAssetsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ListAssetsResponse& a, ListAssetsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListAssetsResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListAssetsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListAssetsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListAssetsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListAssetsResponse& from); + void MergeFrom(const ListAssetsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListAssetsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListAssetsResponse"; + } + protected: + explicit ListAssetsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAssetsFieldNumber = 1, + }; + // repeated .vega.Asset assets = 1 [json_name = "assets"]; + int assets_size() const; + private: + int _internal_assets_size() const; + public: + void clear_assets(); + ::vega::Asset* mutable_assets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >* + mutable_assets(); + private: + const ::vega::Asset& _internal_assets(int index) const; + ::vega::Asset* _internal_add_assets(); + public: + const ::vega::Asset& assets(int index) const; + ::vega::Asset* add_assets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >& + assets() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset > assets_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListNetworkParametersRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListNetworkParametersRequest) */ { + public: + inline ListNetworkParametersRequest() : ListNetworkParametersRequest(nullptr) {} + virtual ~ListNetworkParametersRequest(); + + ListNetworkParametersRequest(const ListNetworkParametersRequest& from); + ListNetworkParametersRequest(ListNetworkParametersRequest&& from) noexcept + : ListNetworkParametersRequest() { + *this = ::std::move(from); + } + + inline ListNetworkParametersRequest& operator=(const ListNetworkParametersRequest& from) { + CopyFrom(from); + return *this; + } + inline ListNetworkParametersRequest& operator=(ListNetworkParametersRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListNetworkParametersRequest& default_instance(); + + static inline const ListNetworkParametersRequest* internal_default_instance() { + return reinterpret_cast( + &_ListNetworkParametersRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ListNetworkParametersRequest& a, ListNetworkParametersRequest& b) { + a.Swap(&b); + } + inline void Swap(ListNetworkParametersRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListNetworkParametersRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListNetworkParametersRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListNetworkParametersRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListNetworkParametersRequest& from); + void MergeFrom(const ListNetworkParametersRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListNetworkParametersRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListNetworkParametersRequest"; + } + protected: + explicit ListNetworkParametersRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNetworkParameterKeyFieldNumber = 1, + }; + // string network_parameter_key = 1 [json_name = "networkParameterKey"]; + void clear_network_parameter_key(); + const std::string& network_parameter_key() const; + void set_network_parameter_key(const std::string& value); + void set_network_parameter_key(std::string&& value); + void set_network_parameter_key(const char* value); + void set_network_parameter_key(const char* value, size_t size); + std::string* mutable_network_parameter_key(); + std::string* release_network_parameter_key(); + void set_allocated_network_parameter_key(std::string* network_parameter_key); + private: + const std::string& _internal_network_parameter_key() const; + void _internal_set_network_parameter_key(const std::string& value); + std::string* _internal_mutable_network_parameter_key(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr network_parameter_key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListNetworkParametersResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListNetworkParametersResponse) */ { + public: + inline ListNetworkParametersResponse() : ListNetworkParametersResponse(nullptr) {} + virtual ~ListNetworkParametersResponse(); + + ListNetworkParametersResponse(const ListNetworkParametersResponse& from); + ListNetworkParametersResponse(ListNetworkParametersResponse&& from) noexcept + : ListNetworkParametersResponse() { + *this = ::std::move(from); + } + + inline ListNetworkParametersResponse& operator=(const ListNetworkParametersResponse& from) { + CopyFrom(from); + return *this; + } + inline ListNetworkParametersResponse& operator=(ListNetworkParametersResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListNetworkParametersResponse& default_instance(); + + static inline const ListNetworkParametersResponse* internal_default_instance() { + return reinterpret_cast( + &_ListNetworkParametersResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ListNetworkParametersResponse& a, ListNetworkParametersResponse& b) { + a.Swap(&b); + } + inline void Swap(ListNetworkParametersResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListNetworkParametersResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListNetworkParametersResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListNetworkParametersResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListNetworkParametersResponse& from); + void MergeFrom(const ListNetworkParametersResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListNetworkParametersResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListNetworkParametersResponse"; + } + protected: + explicit ListNetworkParametersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNetworkParametersFieldNumber = 1, + }; + // repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + int network_parameters_size() const; + private: + int _internal_network_parameters_size() const; + public: + void clear_network_parameters(); + ::vega::NetworkParameter* mutable_network_parameters(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* + mutable_network_parameters(); + private: + const ::vega::NetworkParameter& _internal_network_parameters(int index) const; + ::vega::NetworkParameter* _internal_add_network_parameters(); + public: + const ::vega::NetworkParameter& network_parameters(int index) const; + ::vega::NetworkParameter* add_network_parameters(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& + network_parameters() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter > network_parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListPartiesRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListPartiesRequest) */ { + public: + inline ListPartiesRequest() : ListPartiesRequest(nullptr) {} + virtual ~ListPartiesRequest(); + + ListPartiesRequest(const ListPartiesRequest& from); + ListPartiesRequest(ListPartiesRequest&& from) noexcept + : ListPartiesRequest() { + *this = ::std::move(from); + } + + inline ListPartiesRequest& operator=(const ListPartiesRequest& from) { + CopyFrom(from); + return *this; + } + inline ListPartiesRequest& operator=(ListPartiesRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListPartiesRequest& default_instance(); + + static inline const ListPartiesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListPartiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(ListPartiesRequest& a, ListPartiesRequest& b) { + a.Swap(&b); + } + inline void Swap(ListPartiesRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListPartiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListPartiesRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListPartiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListPartiesRequest& from); + void MergeFrom(const ListPartiesRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListPartiesRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListPartiesRequest"; + } + protected: + explicit ListPartiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListPartiesResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListPartiesResponse) */ { + public: + inline ListPartiesResponse() : ListPartiesResponse(nullptr) {} + virtual ~ListPartiesResponse(); + + ListPartiesResponse(const ListPartiesResponse& from); + ListPartiesResponse(ListPartiesResponse&& from) noexcept + : ListPartiesResponse() { + *this = ::std::move(from); + } + + inline ListPartiesResponse& operator=(const ListPartiesResponse& from) { + CopyFrom(from); + return *this; + } + inline ListPartiesResponse& operator=(ListPartiesResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListPartiesResponse& default_instance(); + + static inline const ListPartiesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListPartiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ListPartiesResponse& a, ListPartiesResponse& b) { + a.Swap(&b); + } + inline void Swap(ListPartiesResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListPartiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListPartiesResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListPartiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListPartiesResponse& from); + void MergeFrom(const ListPartiesResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListPartiesResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListPartiesResponse"; + } + protected: + explicit ListPartiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartiesFieldNumber = 1, + }; + // repeated .vega.Party parties = 1 [json_name = "parties"]; + int parties_size() const; + private: + int _internal_parties_size() const; + public: + void clear_parties(); + ::vega::Party* mutable_parties(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >* + mutable_parties(); + private: + const ::vega::Party& _internal_parties(int index) const; + ::vega::Party* _internal_add_parties(); + public: + const ::vega::Party& parties(int index) const; + ::vega::Party* add_parties(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >& + parties() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party > parties_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListValidatorsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListValidatorsRequest) */ { + public: + inline ListValidatorsRequest() : ListValidatorsRequest(nullptr) {} + virtual ~ListValidatorsRequest(); + + ListValidatorsRequest(const ListValidatorsRequest& from); + ListValidatorsRequest(ListValidatorsRequest&& from) noexcept + : ListValidatorsRequest() { + *this = ::std::move(from); + } + + inline ListValidatorsRequest& operator=(const ListValidatorsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListValidatorsRequest& operator=(ListValidatorsRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListValidatorsRequest& default_instance(); + + static inline const ListValidatorsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListValidatorsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ListValidatorsRequest& a, ListValidatorsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListValidatorsRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListValidatorsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListValidatorsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListValidatorsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListValidatorsRequest& from); + void MergeFrom(const ListValidatorsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListValidatorsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListValidatorsRequest"; + } + protected: + explicit ListValidatorsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListValidatorsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListValidatorsResponse) */ { + public: + inline ListValidatorsResponse() : ListValidatorsResponse(nullptr) {} + virtual ~ListValidatorsResponse(); + + ListValidatorsResponse(const ListValidatorsResponse& from); + ListValidatorsResponse(ListValidatorsResponse&& from) noexcept + : ListValidatorsResponse() { + *this = ::std::move(from); + } + + inline ListValidatorsResponse& operator=(const ListValidatorsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListValidatorsResponse& operator=(ListValidatorsResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListValidatorsResponse& default_instance(); + + static inline const ListValidatorsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListValidatorsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(ListValidatorsResponse& a, ListValidatorsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListValidatorsResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListValidatorsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListValidatorsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListValidatorsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListValidatorsResponse& from); + void MergeFrom(const ListValidatorsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListValidatorsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListValidatorsResponse"; + } + protected: + explicit ListValidatorsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValidatorsFieldNumber = 1, + }; + // repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + int validators_size() const; + private: + int _internal_validators_size() const; + public: + void clear_validators(); + ::vega::events::v1::ValidatorUpdate* mutable_validators(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::ValidatorUpdate >* + mutable_validators(); + private: + const ::vega::events::v1::ValidatorUpdate& _internal_validators(int index) const; + ::vega::events::v1::ValidatorUpdate* _internal_add_validators(); + public: + const ::vega::events::v1::ValidatorUpdate& validators(int index) const; + ::vega::events::v1::ValidatorUpdate* add_validators(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::ValidatorUpdate >& + validators() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::ValidatorUpdate > validators_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMarketsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListMarketsRequest) */ { + public: + inline ListMarketsRequest() : ListMarketsRequest(nullptr) {} + virtual ~ListMarketsRequest(); + + ListMarketsRequest(const ListMarketsRequest& from); + ListMarketsRequest(ListMarketsRequest&& from) noexcept + : ListMarketsRequest() { + *this = ::std::move(from); + } + + inline ListMarketsRequest& operator=(const ListMarketsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListMarketsRequest& operator=(ListMarketsRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListMarketsRequest& default_instance(); + + static inline const ListMarketsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListMarketsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ListMarketsRequest& a, ListMarketsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListMarketsRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListMarketsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListMarketsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMarketsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListMarketsRequest& from); + void MergeFrom(const ListMarketsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMarketsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListMarketsRequest"; + } + protected: + explicit ListMarketsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMarketFieldNumber = 1, + }; + // string market = 1 [json_name = "market"]; + void clear_market(); + const std::string& market() const; + void set_market(const std::string& value); + void set_market(std::string&& value); + void set_market(const char* value); + void set_market(const char* value, size_t size); + std::string* mutable_market(); + std::string* release_market(); + void set_allocated_market(std::string* market); + private: + const std::string& _internal_market() const; + void _internal_set_market(const std::string& value); + std::string* _internal_mutable_market(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMarketsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListMarketsResponse) */ { + public: + inline ListMarketsResponse() : ListMarketsResponse(nullptr) {} + virtual ~ListMarketsResponse(); + + ListMarketsResponse(const ListMarketsResponse& from); + ListMarketsResponse(ListMarketsResponse&& from) noexcept + : ListMarketsResponse() { + *this = ::std::move(from); + } + + inline ListMarketsResponse& operator=(const ListMarketsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListMarketsResponse& operator=(ListMarketsResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListMarketsResponse& default_instance(); + + static inline const ListMarketsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListMarketsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ListMarketsResponse& a, ListMarketsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListMarketsResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListMarketsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListMarketsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMarketsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListMarketsResponse& from); + void MergeFrom(const ListMarketsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMarketsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListMarketsResponse"; + } + protected: + explicit ListMarketsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMarketsFieldNumber = 1, + }; + // repeated .vega.Market markets = 1 [json_name = "markets"]; + int markets_size() const; + private: + int _internal_markets_size() const; + public: + void clear_markets(); + ::vega::Market* mutable_markets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >* + mutable_markets(); + private: + const ::vega::Market& _internal_markets(int index) const; + ::vega::Market* _internal_add_markets(); + public: + const ::vega::Market& markets(int index) const; + ::vega::Market* add_markets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >& + markets() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market > markets_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListProposalsRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListProposalsRequest) */ { + public: + inline ListProposalsRequest() : ListProposalsRequest(nullptr) {} + virtual ~ListProposalsRequest(); + + ListProposalsRequest(const ListProposalsRequest& from); + ListProposalsRequest(ListProposalsRequest&& from) noexcept + : ListProposalsRequest() { + *this = ::std::move(from); + } + + inline ListProposalsRequest& operator=(const ListProposalsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListProposalsRequest& operator=(ListProposalsRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListProposalsRequest& default_instance(); + + static inline const ListProposalsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListProposalsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ListProposalsRequest& a, ListProposalsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListProposalsRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListProposalsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListProposalsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListProposalsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListProposalsRequest& from); + void MergeFrom(const ListProposalsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListProposalsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListProposalsRequest"; + } + protected: + explicit ListProposalsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProposalFieldNumber = 1, + kProposerFieldNumber = 2, + }; + // string proposal = 1 [json_name = "proposal"]; + void clear_proposal(); + const std::string& proposal() const; + void set_proposal(const std::string& value); + void set_proposal(std::string&& value); + void set_proposal(const char* value); + void set_proposal(const char* value, size_t size); + std::string* mutable_proposal(); + std::string* release_proposal(); + void set_allocated_proposal(std::string* proposal); + private: + const std::string& _internal_proposal() const; + void _internal_set_proposal(const std::string& value); + std::string* _internal_mutable_proposal(); + public: + + // string proposer = 2 [json_name = "proposer"]; + void clear_proposer(); + const std::string& proposer() const; + void set_proposer(const std::string& value); + void set_proposer(std::string&& value); + void set_proposer(const char* value); + void set_proposer(const char* value, size_t size); + std::string* mutable_proposer(); + std::string* release_proposer(); + void set_allocated_proposer(std::string* proposer); + private: + const std::string& _internal_proposer() const; + void _internal_set_proposer(const std::string& value); + std::string* _internal_mutable_proposer(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposer_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListProposalsResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListProposalsResponse) */ { + public: + inline ListProposalsResponse() : ListProposalsResponse(nullptr) {} + virtual ~ListProposalsResponse(); + + ListProposalsResponse(const ListProposalsResponse& from); + ListProposalsResponse(ListProposalsResponse&& from) noexcept + : ListProposalsResponse() { + *this = ::std::move(from); + } + + inline ListProposalsResponse& operator=(const ListProposalsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListProposalsResponse& operator=(ListProposalsResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListProposalsResponse& default_instance(); + + static inline const ListProposalsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListProposalsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ListProposalsResponse& a, ListProposalsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListProposalsResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListProposalsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListProposalsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListProposalsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListProposalsResponse& from); + void MergeFrom(const ListProposalsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListProposalsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListProposalsResponse"; + } + protected: + explicit ListProposalsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProposalsFieldNumber = 1, + }; + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + int proposals_size() const; + private: + int _internal_proposals_size() const; + public: + void clear_proposals(); + ::vega::Proposal* mutable_proposals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >* + mutable_proposals(); + private: + const ::vega::Proposal& _internal_proposals(int index) const; + ::vega::Proposal* _internal_add_proposals(); + public: + const ::vega::Proposal& proposals(int index) const; + ::vega::Proposal* add_proposals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >& + proposals() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal > proposals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMarketsDataRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListMarketsDataRequest) */ { + public: + inline ListMarketsDataRequest() : ListMarketsDataRequest(nullptr) {} + virtual ~ListMarketsDataRequest(); + + ListMarketsDataRequest(const ListMarketsDataRequest& from); + ListMarketsDataRequest(ListMarketsDataRequest&& from) noexcept + : ListMarketsDataRequest() { + *this = ::std::move(from); + } + + inline ListMarketsDataRequest& operator=(const ListMarketsDataRequest& from) { + CopyFrom(from); + return *this; + } + inline ListMarketsDataRequest& operator=(ListMarketsDataRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListMarketsDataRequest& default_instance(); + + static inline const ListMarketsDataRequest* internal_default_instance() { + return reinterpret_cast( + &_ListMarketsDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(ListMarketsDataRequest& a, ListMarketsDataRequest& b) { + a.Swap(&b); + } + inline void Swap(ListMarketsDataRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListMarketsDataRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListMarketsDataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMarketsDataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListMarketsDataRequest& from); + void MergeFrom(const ListMarketsDataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMarketsDataRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListMarketsDataRequest"; + } + protected: + explicit ListMarketsDataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMarketFieldNumber = 1, + }; + // string market = 1 [json_name = "market"]; + void clear_market(); + const std::string& market() const; + void set_market(const std::string& value); + void set_market(std::string&& value); + void set_market(const char* value); + void set_market(const char* value, size_t size); + std::string* mutable_market(); + std::string* release_market(); + void set_allocated_market(std::string* market); + private: + const std::string& _internal_market() const; + void _internal_set_market(const std::string& value); + std::string* _internal_mutable_market(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMarketsDataResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListMarketsDataResponse) */ { + public: + inline ListMarketsDataResponse() : ListMarketsDataResponse(nullptr) {} + virtual ~ListMarketsDataResponse(); + + ListMarketsDataResponse(const ListMarketsDataResponse& from); + ListMarketsDataResponse(ListMarketsDataResponse&& from) noexcept + : ListMarketsDataResponse() { + *this = ::std::move(from); + } + + inline ListMarketsDataResponse& operator=(const ListMarketsDataResponse& from) { + CopyFrom(from); + return *this; + } + inline ListMarketsDataResponse& operator=(ListMarketsDataResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListMarketsDataResponse& default_instance(); + + static inline const ListMarketsDataResponse* internal_default_instance() { + return reinterpret_cast( + &_ListMarketsDataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(ListMarketsDataResponse& a, ListMarketsDataResponse& b) { + a.Swap(&b); + } + inline void Swap(ListMarketsDataResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListMarketsDataResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListMarketsDataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMarketsDataResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListMarketsDataResponse& from); + void MergeFrom(const ListMarketsDataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMarketsDataResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListMarketsDataResponse"; + } + protected: + explicit ListMarketsDataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMarketsDataFieldNumber = 1, + }; + // repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + int markets_data_size() const; + private: + int _internal_markets_data_size() const; + public: + void clear_markets_data(); + ::vega::MarketData* mutable_markets_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >* + mutable_markets_data(); + private: + const ::vega::MarketData& _internal_markets_data(int index) const; + ::vega::MarketData* _internal_add_markets_data(); + public: + const ::vega::MarketData& markets_data(int index) const; + ::vega::MarketData* add_markets_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >& + markets_data() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData > markets_data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListVotesRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListVotesRequest) */ { + public: + inline ListVotesRequest() : ListVotesRequest(nullptr) {} + virtual ~ListVotesRequest(); + + ListVotesRequest(const ListVotesRequest& from); + ListVotesRequest(ListVotesRequest&& from) noexcept + : ListVotesRequest() { + *this = ::std::move(from); + } + + inline ListVotesRequest& operator=(const ListVotesRequest& from) { + CopyFrom(from); + return *this; + } + inline ListVotesRequest& operator=(ListVotesRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListVotesRequest& default_instance(); + + static inline const ListVotesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListVotesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(ListVotesRequest& a, ListVotesRequest& b) { + a.Swap(&b); + } + inline void Swap(ListVotesRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListVotesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListVotesRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListVotesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListVotesRequest& from); + void MergeFrom(const ListVotesRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListVotesRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListVotesRequest"; + } + protected: + explicit ListVotesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProposalFieldNumber = 1, + kPartyFieldNumber = 2, + }; + // string proposal = 1 [json_name = "proposal"]; + void clear_proposal(); + const std::string& proposal() const; + void set_proposal(const std::string& value); + void set_proposal(std::string&& value); + void set_proposal(const char* value); + void set_proposal(const char* value, size_t size); + std::string* mutable_proposal(); + std::string* release_proposal(); + void set_allocated_proposal(std::string* proposal); + private: + const std::string& _internal_proposal() const; + void _internal_set_proposal(const std::string& value); + std::string* _internal_mutable_proposal(); + public: + + // string party = 2 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListVotesResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListVotesResponse) */ { + public: + inline ListVotesResponse() : ListVotesResponse(nullptr) {} + virtual ~ListVotesResponse(); + + ListVotesResponse(const ListVotesResponse& from); + ListVotesResponse(ListVotesResponse&& from) noexcept + : ListVotesResponse() { + *this = ::std::move(from); + } + + inline ListVotesResponse& operator=(const ListVotesResponse& from) { + CopyFrom(from); + return *this; + } + inline ListVotesResponse& operator=(ListVotesResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListVotesResponse& default_instance(); + + static inline const ListVotesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListVotesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(ListVotesResponse& a, ListVotesResponse& b) { + a.Swap(&b); + } + inline void Swap(ListVotesResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListVotesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListVotesResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListVotesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListVotesResponse& from); + void MergeFrom(const ListVotesResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListVotesResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListVotesResponse"; + } + protected: + explicit ListVotesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVotesFieldNumber = 1, + }; + // repeated .vega.Vote votes = 1 [json_name = "votes"]; + int votes_size() const; + private: + int _internal_votes_size() const; + public: + void clear_votes(); + ::vega::Vote* mutable_votes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >* + mutable_votes(); + private: + const ::vega::Vote& _internal_votes(int index) const; + ::vega::Vote* _internal_add_votes(); + public: + const ::vega::Vote& votes(int index) const; + ::vega::Vote* add_votes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >& + votes() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote > votes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Account + +// string party = 1 [json_name = "party"]; +inline void Account::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& Account::party() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.Account.party) + return _internal_party(); +} +inline void Account::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.Account.party) +} +inline std::string* Account::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.Account.party) + return _internal_mutable_party(); +} +inline const std::string& Account::_internal_party() const { + return party_.Get(); +} +inline void Account::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.Account.party) +} +inline void Account::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.Account.party) +} +inline void Account::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.Account.party) +} +inline std::string* Account::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_party() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.Account.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.Account.party) +} + +// string market = 2 [json_name = "market"]; +inline void Account::clear_market() { + market_.ClearToEmpty(); +} +inline const std::string& Account::market() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.Account.market) + return _internal_market(); +} +inline void Account::set_market(const std::string& value) { + _internal_set_market(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.Account.market) +} +inline std::string* Account::mutable_market() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.Account.market) + return _internal_mutable_market(); +} +inline const std::string& Account::_internal_market() const { + return market_.Get(); +} +inline void Account::_internal_set_market(const std::string& value) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_market(std::string&& value) { + + market_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.Account.market) +} +inline void Account::set_market(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.Account.market) +} +inline void Account::set_market(const char* value, + size_t size) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.Account.market) +} +inline std::string* Account::_internal_mutable_market() { + + return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_market() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.Account.market) + return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_market(std::string* market) { + if (market != nullptr) { + + } else { + + } + market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.Account.market) +} + +// string balance = 3 [json_name = "balance"]; +inline void Account::clear_balance() { + balance_.ClearToEmpty(); +} +inline const std::string& Account::balance() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.Account.balance) + return _internal_balance(); +} +inline void Account::set_balance(const std::string& value) { + _internal_set_balance(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.Account.balance) +} +inline std::string* Account::mutable_balance() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.Account.balance) + return _internal_mutable_balance(); +} +inline const std::string& Account::_internal_balance() const { + return balance_.Get(); +} +inline void Account::_internal_set_balance(const std::string& value) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_balance(std::string&& value) { + + balance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.Account.balance) +} +inline void Account::set_balance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.Account.balance) +} +inline void Account::set_balance(const char* value, + size_t size) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.Account.balance) +} +inline std::string* Account::_internal_mutable_balance() { + + return balance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_balance() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.Account.balance) + return balance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_balance(std::string* balance) { + if (balance != nullptr) { + + } else { + + } + balance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), balance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.Account.balance) +} + +// string asset = 5 [json_name = "asset"]; +inline void Account::clear_asset() { + asset_.ClearToEmpty(); +} +inline const std::string& Account::asset() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.Account.asset) + return _internal_asset(); +} +inline void Account::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.Account.asset) +} +inline std::string* Account::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.Account.asset) + return _internal_mutable_asset(); +} +inline const std::string& Account::_internal_asset() const { + return asset_.Get(); +} +inline void Account::_internal_set_asset(const std::string& value) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_asset(std::string&& value) { + + asset_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.Account.asset) +} +inline void Account::set_asset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.Account.asset) +} +inline void Account::set_asset(const char* value, + size_t size) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.Account.asset) +} +inline std::string* Account::_internal_mutable_asset() { + + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_asset() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.Account.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { + + } else { + + } + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.Account.asset) +} + +// string type = 6 [json_name = "type"]; +inline void Account::clear_type() { + type_.ClearToEmpty(); +} +inline const std::string& Account::type() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.Account.type) + return _internal_type(); +} +inline void Account::set_type(const std::string& value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.Account.type) +} +inline std::string* Account::mutable_type() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.Account.type) + return _internal_mutable_type(); +} +inline const std::string& Account::_internal_type() const { + return type_.Get(); +} +inline void Account::_internal_set_type(const std::string& value) { + + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_type(std::string&& value) { + + type_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.Account.type) +} +inline void Account::set_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.Account.type) +} +inline void Account::set_type(const char* value, + size_t size) { + + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.Account.type) +} +inline std::string* Account::_internal_mutable_type() { + + return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_type() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.Account.type) + return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.Account.type) +} + +// ------------------------------------------------------------------- + +// ListAccountsRequest + +// string party = 1 [json_name = "party"]; +inline void ListAccountsRequest::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& ListAccountsRequest::party() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListAccountsRequest.party) + return _internal_party(); +} +inline void ListAccountsRequest::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListAccountsRequest.party) +} +inline std::string* ListAccountsRequest::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListAccountsRequest.party) + return _internal_mutable_party(); +} +inline const std::string& ListAccountsRequest::_internal_party() const { + return party_.Get(); +} +inline void ListAccountsRequest::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListAccountsRequest::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListAccountsRequest.party) +} +inline void ListAccountsRequest::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListAccountsRequest.party) +} +inline void ListAccountsRequest::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListAccountsRequest.party) +} +inline std::string* ListAccountsRequest::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListAccountsRequest::release_party() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListAccountsRequest.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListAccountsRequest::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListAccountsRequest.party) +} + +// string market = 2 [json_name = "market"]; +inline void ListAccountsRequest::clear_market() { + market_.ClearToEmpty(); +} +inline const std::string& ListAccountsRequest::market() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListAccountsRequest.market) + return _internal_market(); +} +inline void ListAccountsRequest::set_market(const std::string& value) { + _internal_set_market(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListAccountsRequest.market) +} +inline std::string* ListAccountsRequest::mutable_market() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListAccountsRequest.market) + return _internal_mutable_market(); +} +inline const std::string& ListAccountsRequest::_internal_market() const { + return market_.Get(); +} +inline void ListAccountsRequest::_internal_set_market(const std::string& value) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListAccountsRequest::set_market(std::string&& value) { + + market_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListAccountsRequest.market) +} +inline void ListAccountsRequest::set_market(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListAccountsRequest.market) +} +inline void ListAccountsRequest::set_market(const char* value, + size_t size) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListAccountsRequest.market) +} +inline std::string* ListAccountsRequest::_internal_mutable_market() { + + return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListAccountsRequest::release_market() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListAccountsRequest.market) + return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListAccountsRequest::set_allocated_market(std::string* market) { + if (market != nullptr) { + + } else { + + } + market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListAccountsRequest.market) +} + +// ------------------------------------------------------------------- + +// ListAccountsResponse + +// repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; +inline int ListAccountsResponse::_internal_accounts_size() const { + return accounts_.size(); +} +inline int ListAccountsResponse::accounts_size() const { + return _internal_accounts_size(); +} +inline void ListAccountsResponse::clear_accounts() { + accounts_.Clear(); +} +inline ::vega::coreapi::v1::Account* ListAccountsResponse::mutable_accounts(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListAccountsResponse.accounts) + return accounts_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::Account >* +ListAccountsResponse::mutable_accounts() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListAccountsResponse.accounts) + return &accounts_; +} +inline const ::vega::coreapi::v1::Account& ListAccountsResponse::_internal_accounts(int index) const { + return accounts_.Get(index); +} +inline const ::vega::coreapi::v1::Account& ListAccountsResponse::accounts(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListAccountsResponse.accounts) + return _internal_accounts(index); +} +inline ::vega::coreapi::v1::Account* ListAccountsResponse::_internal_add_accounts() { + return accounts_.Add(); +} +inline ::vega::coreapi::v1::Account* ListAccountsResponse::add_accounts() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListAccountsResponse.accounts) + return _internal_add_accounts(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::Account >& +ListAccountsResponse::accounts() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListAccountsResponse.accounts) + return accounts_; +} + +// ------------------------------------------------------------------- + +// ListAssetsRequest + +// string asset = 1 [json_name = "asset"]; +inline void ListAssetsRequest::clear_asset() { + asset_.ClearToEmpty(); +} +inline const std::string& ListAssetsRequest::asset() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListAssetsRequest.asset) + return _internal_asset(); +} +inline void ListAssetsRequest::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListAssetsRequest.asset) +} +inline std::string* ListAssetsRequest::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListAssetsRequest.asset) + return _internal_mutable_asset(); +} +inline const std::string& ListAssetsRequest::_internal_asset() const { + return asset_.Get(); +} +inline void ListAssetsRequest::_internal_set_asset(const std::string& value) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListAssetsRequest::set_asset(std::string&& value) { + + asset_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListAssetsRequest.asset) +} +inline void ListAssetsRequest::set_asset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListAssetsRequest.asset) +} +inline void ListAssetsRequest::set_asset(const char* value, + size_t size) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListAssetsRequest.asset) +} +inline std::string* ListAssetsRequest::_internal_mutable_asset() { + + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListAssetsRequest::release_asset() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListAssetsRequest.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListAssetsRequest::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { + + } else { + + } + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListAssetsRequest.asset) +} + +// ------------------------------------------------------------------- + +// ListAssetsResponse + +// repeated .vega.Asset assets = 1 [json_name = "assets"]; +inline int ListAssetsResponse::_internal_assets_size() const { + return assets_.size(); +} +inline int ListAssetsResponse::assets_size() const { + return _internal_assets_size(); +} +inline ::vega::Asset* ListAssetsResponse::mutable_assets(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListAssetsResponse.assets) + return assets_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >* +ListAssetsResponse::mutable_assets() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListAssetsResponse.assets) + return &assets_; +} +inline const ::vega::Asset& ListAssetsResponse::_internal_assets(int index) const { + return assets_.Get(index); +} +inline const ::vega::Asset& ListAssetsResponse::assets(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListAssetsResponse.assets) + return _internal_assets(index); +} +inline ::vega::Asset* ListAssetsResponse::_internal_add_assets() { + return assets_.Add(); +} +inline ::vega::Asset* ListAssetsResponse::add_assets() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListAssetsResponse.assets) + return _internal_add_assets(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Asset >& +ListAssetsResponse::assets() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListAssetsResponse.assets) + return assets_; +} + +// ------------------------------------------------------------------- + +// ListNetworkParametersRequest + +// string network_parameter_key = 1 [json_name = "networkParameterKey"]; +inline void ListNetworkParametersRequest::clear_network_parameter_key() { + network_parameter_key_.ClearToEmpty(); +} +inline const std::string& ListNetworkParametersRequest::network_parameter_key() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) + return _internal_network_parameter_key(); +} +inline void ListNetworkParametersRequest::set_network_parameter_key(const std::string& value) { + _internal_set_network_parameter_key(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) +} +inline std::string* ListNetworkParametersRequest::mutable_network_parameter_key() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) + return _internal_mutable_network_parameter_key(); +} +inline const std::string& ListNetworkParametersRequest::_internal_network_parameter_key() const { + return network_parameter_key_.Get(); +} +inline void ListNetworkParametersRequest::_internal_set_network_parameter_key(const std::string& value) { + + network_parameter_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListNetworkParametersRequest::set_network_parameter_key(std::string&& value) { + + network_parameter_key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) +} +inline void ListNetworkParametersRequest::set_network_parameter_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + network_parameter_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) +} +inline void ListNetworkParametersRequest::set_network_parameter_key(const char* value, + size_t size) { + + network_parameter_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) +} +inline std::string* ListNetworkParametersRequest::_internal_mutable_network_parameter_key() { + + return network_parameter_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListNetworkParametersRequest::release_network_parameter_key() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) + return network_parameter_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListNetworkParametersRequest::set_allocated_network_parameter_key(std::string* network_parameter_key) { + if (network_parameter_key != nullptr) { + + } else { + + } + network_parameter_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), network_parameter_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key) +} + +// ------------------------------------------------------------------- + +// ListNetworkParametersResponse + +// repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; +inline int ListNetworkParametersResponse::_internal_network_parameters_size() const { + return network_parameters_.size(); +} +inline int ListNetworkParametersResponse::network_parameters_size() const { + return _internal_network_parameters_size(); +} +inline ::vega::NetworkParameter* ListNetworkParametersResponse::mutable_network_parameters(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListNetworkParametersResponse.network_parameters) + return network_parameters_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* +ListNetworkParametersResponse::mutable_network_parameters() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListNetworkParametersResponse.network_parameters) + return &network_parameters_; +} +inline const ::vega::NetworkParameter& ListNetworkParametersResponse::_internal_network_parameters(int index) const { + return network_parameters_.Get(index); +} +inline const ::vega::NetworkParameter& ListNetworkParametersResponse::network_parameters(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListNetworkParametersResponse.network_parameters) + return _internal_network_parameters(index); +} +inline ::vega::NetworkParameter* ListNetworkParametersResponse::_internal_add_network_parameters() { + return network_parameters_.Add(); +} +inline ::vega::NetworkParameter* ListNetworkParametersResponse::add_network_parameters() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListNetworkParametersResponse.network_parameters) + return _internal_add_network_parameters(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& +ListNetworkParametersResponse::network_parameters() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListNetworkParametersResponse.network_parameters) + return network_parameters_; +} + +// ------------------------------------------------------------------- + +// ListPartiesRequest + +// ------------------------------------------------------------------- + +// ListPartiesResponse + +// repeated .vega.Party parties = 1 [json_name = "parties"]; +inline int ListPartiesResponse::_internal_parties_size() const { + return parties_.size(); +} +inline int ListPartiesResponse::parties_size() const { + return _internal_parties_size(); +} +inline ::vega::Party* ListPartiesResponse::mutable_parties(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListPartiesResponse.parties) + return parties_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >* +ListPartiesResponse::mutable_parties() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListPartiesResponse.parties) + return &parties_; +} +inline const ::vega::Party& ListPartiesResponse::_internal_parties(int index) const { + return parties_.Get(index); +} +inline const ::vega::Party& ListPartiesResponse::parties(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListPartiesResponse.parties) + return _internal_parties(index); +} +inline ::vega::Party* ListPartiesResponse::_internal_add_parties() { + return parties_.Add(); +} +inline ::vega::Party* ListPartiesResponse::add_parties() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListPartiesResponse.parties) + return _internal_add_parties(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Party >& +ListPartiesResponse::parties() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListPartiesResponse.parties) + return parties_; +} + +// ------------------------------------------------------------------- + +// ListValidatorsRequest + +// ------------------------------------------------------------------- + +// ListValidatorsResponse + +// repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; +inline int ListValidatorsResponse::_internal_validators_size() const { + return validators_.size(); +} +inline int ListValidatorsResponse::validators_size() const { + return _internal_validators_size(); +} +inline ::vega::events::v1::ValidatorUpdate* ListValidatorsResponse::mutable_validators(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListValidatorsResponse.validators) + return validators_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::ValidatorUpdate >* +ListValidatorsResponse::mutable_validators() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListValidatorsResponse.validators) + return &validators_; +} +inline const ::vega::events::v1::ValidatorUpdate& ListValidatorsResponse::_internal_validators(int index) const { + return validators_.Get(index); +} +inline const ::vega::events::v1::ValidatorUpdate& ListValidatorsResponse::validators(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListValidatorsResponse.validators) + return _internal_validators(index); +} +inline ::vega::events::v1::ValidatorUpdate* ListValidatorsResponse::_internal_add_validators() { + return validators_.Add(); +} +inline ::vega::events::v1::ValidatorUpdate* ListValidatorsResponse::add_validators() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListValidatorsResponse.validators) + return _internal_add_validators(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::ValidatorUpdate >& +ListValidatorsResponse::validators() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListValidatorsResponse.validators) + return validators_; +} + +// ------------------------------------------------------------------- + +// ListMarketsRequest + +// string market = 1 [json_name = "market"]; +inline void ListMarketsRequest::clear_market() { + market_.ClearToEmpty(); +} +inline const std::string& ListMarketsRequest::market() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListMarketsRequest.market) + return _internal_market(); +} +inline void ListMarketsRequest::set_market(const std::string& value) { + _internal_set_market(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListMarketsRequest.market) +} +inline std::string* ListMarketsRequest::mutable_market() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListMarketsRequest.market) + return _internal_mutable_market(); +} +inline const std::string& ListMarketsRequest::_internal_market() const { + return market_.Get(); +} +inline void ListMarketsRequest::_internal_set_market(const std::string& value) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListMarketsRequest::set_market(std::string&& value) { + + market_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListMarketsRequest.market) +} +inline void ListMarketsRequest::set_market(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListMarketsRequest.market) +} +inline void ListMarketsRequest::set_market(const char* value, + size_t size) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListMarketsRequest.market) +} +inline std::string* ListMarketsRequest::_internal_mutable_market() { + + return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListMarketsRequest::release_market() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListMarketsRequest.market) + return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListMarketsRequest::set_allocated_market(std::string* market) { + if (market != nullptr) { + + } else { + + } + market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListMarketsRequest.market) +} + +// ------------------------------------------------------------------- + +// ListMarketsResponse + +// repeated .vega.Market markets = 1 [json_name = "markets"]; +inline int ListMarketsResponse::_internal_markets_size() const { + return markets_.size(); +} +inline int ListMarketsResponse::markets_size() const { + return _internal_markets_size(); +} +inline ::vega::Market* ListMarketsResponse::mutable_markets(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListMarketsResponse.markets) + return markets_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >* +ListMarketsResponse::mutable_markets() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListMarketsResponse.markets) + return &markets_; +} +inline const ::vega::Market& ListMarketsResponse::_internal_markets(int index) const { + return markets_.Get(index); +} +inline const ::vega::Market& ListMarketsResponse::markets(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListMarketsResponse.markets) + return _internal_markets(index); +} +inline ::vega::Market* ListMarketsResponse::_internal_add_markets() { + return markets_.Add(); +} +inline ::vega::Market* ListMarketsResponse::add_markets() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListMarketsResponse.markets) + return _internal_add_markets(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Market >& +ListMarketsResponse::markets() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListMarketsResponse.markets) + return markets_; +} + +// ------------------------------------------------------------------- + +// ListProposalsRequest + +// string proposal = 1 [json_name = "proposal"]; +inline void ListProposalsRequest::clear_proposal() { + proposal_.ClearToEmpty(); +} +inline const std::string& ListProposalsRequest::proposal() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListProposalsRequest.proposal) + return _internal_proposal(); +} +inline void ListProposalsRequest::set_proposal(const std::string& value) { + _internal_set_proposal(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListProposalsRequest.proposal) +} +inline std::string* ListProposalsRequest::mutable_proposal() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListProposalsRequest.proposal) + return _internal_mutable_proposal(); +} +inline const std::string& ListProposalsRequest::_internal_proposal() const { + return proposal_.Get(); +} +inline void ListProposalsRequest::_internal_set_proposal(const std::string& value) { + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListProposalsRequest::set_proposal(std::string&& value) { + + proposal_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListProposalsRequest.proposal) +} +inline void ListProposalsRequest::set_proposal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListProposalsRequest.proposal) +} +inline void ListProposalsRequest::set_proposal(const char* value, + size_t size) { + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListProposalsRequest.proposal) +} +inline std::string* ListProposalsRequest::_internal_mutable_proposal() { + + return proposal_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListProposalsRequest::release_proposal() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListProposalsRequest.proposal) + return proposal_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListProposalsRequest::set_allocated_proposal(std::string* proposal) { + if (proposal != nullptr) { + + } else { + + } + proposal_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proposal, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListProposalsRequest.proposal) +} + +// string proposer = 2 [json_name = "proposer"]; +inline void ListProposalsRequest::clear_proposer() { + proposer_.ClearToEmpty(); +} +inline const std::string& ListProposalsRequest::proposer() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListProposalsRequest.proposer) + return _internal_proposer(); +} +inline void ListProposalsRequest::set_proposer(const std::string& value) { + _internal_set_proposer(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListProposalsRequest.proposer) +} +inline std::string* ListProposalsRequest::mutable_proposer() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListProposalsRequest.proposer) + return _internal_mutable_proposer(); +} +inline const std::string& ListProposalsRequest::_internal_proposer() const { + return proposer_.Get(); +} +inline void ListProposalsRequest::_internal_set_proposer(const std::string& value) { + + proposer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListProposalsRequest::set_proposer(std::string&& value) { + + proposer_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListProposalsRequest.proposer) +} +inline void ListProposalsRequest::set_proposer(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + proposer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListProposalsRequest.proposer) +} +inline void ListProposalsRequest::set_proposer(const char* value, + size_t size) { + + proposer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListProposalsRequest.proposer) +} +inline std::string* ListProposalsRequest::_internal_mutable_proposer() { + + return proposer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListProposalsRequest::release_proposer() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListProposalsRequest.proposer) + return proposer_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListProposalsRequest::set_allocated_proposer(std::string* proposer) { + if (proposer != nullptr) { + + } else { + + } + proposer_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proposer, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListProposalsRequest.proposer) +} + +// ------------------------------------------------------------------- + +// ListProposalsResponse + +// repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; +inline int ListProposalsResponse::_internal_proposals_size() const { + return proposals_.size(); +} +inline int ListProposalsResponse::proposals_size() const { + return _internal_proposals_size(); +} +inline ::vega::Proposal* ListProposalsResponse::mutable_proposals(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListProposalsResponse.proposals) + return proposals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >* +ListProposalsResponse::mutable_proposals() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListProposalsResponse.proposals) + return &proposals_; +} +inline const ::vega::Proposal& ListProposalsResponse::_internal_proposals(int index) const { + return proposals_.Get(index); +} +inline const ::vega::Proposal& ListProposalsResponse::proposals(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListProposalsResponse.proposals) + return _internal_proposals(index); +} +inline ::vega::Proposal* ListProposalsResponse::_internal_add_proposals() { + return proposals_.Add(); +} +inline ::vega::Proposal* ListProposalsResponse::add_proposals() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListProposalsResponse.proposals) + return _internal_add_proposals(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >& +ListProposalsResponse::proposals() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListProposalsResponse.proposals) + return proposals_; +} + +// ------------------------------------------------------------------- + +// ListMarketsDataRequest + +// string market = 1 [json_name = "market"]; +inline void ListMarketsDataRequest::clear_market() { + market_.ClearToEmpty(); +} +inline const std::string& ListMarketsDataRequest::market() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListMarketsDataRequest.market) + return _internal_market(); +} +inline void ListMarketsDataRequest::set_market(const std::string& value) { + _internal_set_market(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListMarketsDataRequest.market) +} +inline std::string* ListMarketsDataRequest::mutable_market() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListMarketsDataRequest.market) + return _internal_mutable_market(); +} +inline const std::string& ListMarketsDataRequest::_internal_market() const { + return market_.Get(); +} +inline void ListMarketsDataRequest::_internal_set_market(const std::string& value) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListMarketsDataRequest::set_market(std::string&& value) { + + market_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListMarketsDataRequest.market) +} +inline void ListMarketsDataRequest::set_market(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListMarketsDataRequest.market) +} +inline void ListMarketsDataRequest::set_market(const char* value, + size_t size) { + + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListMarketsDataRequest.market) +} +inline std::string* ListMarketsDataRequest::_internal_mutable_market() { + + return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListMarketsDataRequest::release_market() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListMarketsDataRequest.market) + return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListMarketsDataRequest::set_allocated_market(std::string* market) { + if (market != nullptr) { + + } else { + + } + market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListMarketsDataRequest.market) +} + +// ------------------------------------------------------------------- + +// ListMarketsDataResponse + +// repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; +inline int ListMarketsDataResponse::_internal_markets_data_size() const { + return markets_data_.size(); +} +inline int ListMarketsDataResponse::markets_data_size() const { + return _internal_markets_data_size(); +} +inline ::vega::MarketData* ListMarketsDataResponse::mutable_markets_data(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListMarketsDataResponse.markets_data) + return markets_data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >* +ListMarketsDataResponse::mutable_markets_data() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListMarketsDataResponse.markets_data) + return &markets_data_; +} +inline const ::vega::MarketData& ListMarketsDataResponse::_internal_markets_data(int index) const { + return markets_data_.Get(index); +} +inline const ::vega::MarketData& ListMarketsDataResponse::markets_data(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListMarketsDataResponse.markets_data) + return _internal_markets_data(index); +} +inline ::vega::MarketData* ListMarketsDataResponse::_internal_add_markets_data() { + return markets_data_.Add(); +} +inline ::vega::MarketData* ListMarketsDataResponse::add_markets_data() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListMarketsDataResponse.markets_data) + return _internal_add_markets_data(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::MarketData >& +ListMarketsDataResponse::markets_data() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListMarketsDataResponse.markets_data) + return markets_data_; +} + +// ------------------------------------------------------------------- + +// ListVotesRequest + +// string proposal = 1 [json_name = "proposal"]; +inline void ListVotesRequest::clear_proposal() { + proposal_.ClearToEmpty(); +} +inline const std::string& ListVotesRequest::proposal() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListVotesRequest.proposal) + return _internal_proposal(); +} +inline void ListVotesRequest::set_proposal(const std::string& value) { + _internal_set_proposal(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListVotesRequest.proposal) +} +inline std::string* ListVotesRequest::mutable_proposal() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListVotesRequest.proposal) + return _internal_mutable_proposal(); +} +inline const std::string& ListVotesRequest::_internal_proposal() const { + return proposal_.Get(); +} +inline void ListVotesRequest::_internal_set_proposal(const std::string& value) { + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListVotesRequest::set_proposal(std::string&& value) { + + proposal_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListVotesRequest.proposal) +} +inline void ListVotesRequest::set_proposal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListVotesRequest.proposal) +} +inline void ListVotesRequest::set_proposal(const char* value, + size_t size) { + + proposal_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListVotesRequest.proposal) +} +inline std::string* ListVotesRequest::_internal_mutable_proposal() { + + return proposal_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListVotesRequest::release_proposal() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListVotesRequest.proposal) + return proposal_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListVotesRequest::set_allocated_proposal(std::string* proposal) { + if (proposal != nullptr) { + + } else { + + } + proposal_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proposal, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListVotesRequest.proposal) +} + +// string party = 2 [json_name = "party"]; +inline void ListVotesRequest::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& ListVotesRequest::party() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListVotesRequest.party) + return _internal_party(); +} +inline void ListVotesRequest::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListVotesRequest.party) +} +inline std::string* ListVotesRequest::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListVotesRequest.party) + return _internal_mutable_party(); +} +inline const std::string& ListVotesRequest::_internal_party() const { + return party_.Get(); +} +inline void ListVotesRequest::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListVotesRequest::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListVotesRequest.party) +} +inline void ListVotesRequest::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListVotesRequest.party) +} +inline void ListVotesRequest::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListVotesRequest.party) +} +inline std::string* ListVotesRequest::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListVotesRequest::release_party() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListVotesRequest.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListVotesRequest::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListVotesRequest.party) +} + +// ------------------------------------------------------------------- + +// ListVotesResponse + +// repeated .vega.Vote votes = 1 [json_name = "votes"]; +inline int ListVotesResponse::_internal_votes_size() const { + return votes_.size(); +} +inline int ListVotesResponse::votes_size() const { + return _internal_votes_size(); +} +inline ::vega::Vote* ListVotesResponse::mutable_votes(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListVotesResponse.votes) + return votes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >* +ListVotesResponse::mutable_votes() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListVotesResponse.votes) + return &votes_; +} +inline const ::vega::Vote& ListVotesResponse::_internal_votes(int index) const { + return votes_.Get(index); +} +inline const ::vega::Vote& ListVotesResponse::votes(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListVotesResponse.votes) + return _internal_votes(index); +} +inline ::vega::Vote* ListVotesResponse::_internal_add_votes() { + return votes_.Add(); +} +inline ::vega::Vote* ListVotesResponse::add_votes() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListVotesResponse.votes) + return _internal_add_votes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Vote >& +ListVotesResponse::votes() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListVotesResponse.votes) + return votes_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace coreapi +} // namespace vega + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_coreapi_2fv1_2fcoreapi_2eproto diff --git a/grpc/clients/cpp/generated/events/v1/events.pb.cc b/grpc/clients/cpp/generated/events/v1/events.pb.cc index 91ef49a2..58d748c1 100644 --- a/grpc/clients/cpp/generated/events/v1/events.pb.cc +++ b/grpc/clients/cpp/generated/events/v1/events.pb.cc @@ -25,7 +25,7 @@ extern PROTOBUF_INTERNAL_EXPORT_markets_2eproto ::PROTOBUF_NAMESPACE_ID::interna extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_MarketData_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParameter_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Order_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Party_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Party_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Proposal_governance_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RiskFactor_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trade_vega_2eproto; @@ -41,28 +41,42 @@ extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAME extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuctionEvent_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegationBalanceEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EpochEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LossSocialization_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MarketTick_events_2fv1_2fevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PendingDelegationBalanceEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PositionResolution_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SettleDistressed_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SettlePosition_events_2fv1_2fevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakingEvent_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeLinking_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeUpdate_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TradeSettlement_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransferResponses_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto; namespace vega { namespace events { namespace v1 { -class StakingEventDefaultTypeInternal { +class StakeLinkingDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _StakingEvent_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StakeLinking_default_instance_; +class CheckpointEventDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CheckpointEvent_default_instance_; +class RewardPayoutEventDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RewardPayoutEvent_default_instance_; +class ValidatorScoreEventDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ValidatorScoreEvent_default_instance_; class DelegationBalanceEventDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -153,8 +167,8 @@ static void InitDefaultsscc_info_BusEvent_events_2fv1_2fevents_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<33> scc_info_BusEvent_events_2fv1_2fevents_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 33, 0, InitDefaultsscc_info_BusEvent_events_2fv1_2fevents_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<35> scc_info_BusEvent_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 35, 0, InitDefaultsscc_info_BusEvent_events_2fv1_2fevents_2eproto}, { &scc_info_TimeUpdate_events_2fv1_2fevents_2eproto.base, &scc_info_TransferResponses_events_2fv1_2fevents_2eproto.base, &scc_info_PositionResolution_events_2fv1_2fevents_2eproto.base, @@ -182,13 +196,28 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<33> scc_info_BusEvent_events_2fv1_2fe &scc_info_OracleSpec_oracles_2fv1_2fspec_2eproto.base, &scc_info_OracleData_oracles_2fv1_2fdata_2eproto.base, &scc_info_DelegationBalanceEvent_events_2fv1_2fevents_2eproto.base, - &scc_info_PendingDelegationBalanceEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto.base, &scc_info_EpochEvent_events_2fv1_2fevents_2eproto.base, &scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto.base, - &scc_info_StakingEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_StakeLinking_events_2fv1_2fevents_2eproto.base, + &scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto.base, &scc_info_MarketEvent_events_2fv1_2fevents_2eproto.base, &scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto.base,}}; +static void InitDefaultsscc_info_CheckpointEvent_events_2fv1_2fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::events::v1::_CheckpointEvent_default_instance_; + new (ptr) ::vega::events::v1::CheckpointEvent(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CheckpointEvent_events_2fv1_2fevents_2eproto}, {}}; + static void InitDefaultsscc_info_DelegationBalanceEvent_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -280,6 +309,19 @@ static void InitDefaultsscc_info_PositionResolution_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PositionResolution_events_2fv1_2fevents_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PositionResolution_events_2fv1_2fevents_2eproto}, {}}; +static void InitDefaultsscc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::events::v1::_RewardPayoutEvent_default_instance_; + new (ptr) ::vega::events::v1::RewardPayoutEvent(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto}, {}}; + static void InitDefaultsscc_info_SettleDistressed_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -307,18 +349,18 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SettlePosition_events_2fv {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SettlePosition_events_2fv1_2fevents_2eproto}, { &scc_info_TradeSettlement_events_2fv1_2fevents_2eproto.base,}}; -static void InitDefaultsscc_info_StakingEvent_events_2fv1_2fevents_2eproto() { +static void InitDefaultsscc_info_StakeLinking_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::vega::events::v1::_StakingEvent_default_instance_; - new (ptr) ::vega::events::v1::StakingEvent(); + void* ptr = &::vega::events::v1::_StakeLinking_default_instance_; + new (ptr) ::vega::events::v1::StakeLinking(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakingEvent_events_2fv1_2fevents_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StakingEvent_events_2fv1_2fevents_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeLinking_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StakeLinking_events_2fv1_2fevents_2eproto}, {}}; static void InitDefaultsscc_info_TimeUpdate_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -380,6 +422,19 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_TxErrorEvent_events_2fv1_ &scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base,}}; +static void InitDefaultsscc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::events::v1::_ValidatorScoreEvent_default_instance_; + new (ptr) ::vega::events::v1::ValidatorScoreEvent(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto}, {}}; + static void InitDefaultsscc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -393,21 +448,52 @@ static void InitDefaultsscc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto() ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto}, {}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_events_2fv1_2fevents_2eproto[17]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_events_2fv1_2fevents_2eproto[2]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_events_2fv1_2fevents_2eproto[20]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_events_2fv1_2fevents_2eproto[3]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_events_2fv1_2fevents_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, id_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, type_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, ts_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, party_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, amount_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, status_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, finalized_at_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakeLinking, tx_hash_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::CheckpointEvent, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::CheckpointEvent, hash_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::CheckpointEvent, block_hash_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::CheckpointEvent, block_height_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, party_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, epoch_seq_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, asset_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, amount_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, percent_of_total_reward_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::RewardPayoutEvent, timestamp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorScoreEvent, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, id_), - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, type_), - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, ts_), - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, party_), - PROTOBUF_FIELD_OFFSET(::vega::events::v1::StakingEvent, amount_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorScoreEvent, node_id_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorScoreEvent, epoch_seq_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorScoreEvent, validator_score_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorScoreEvent, normalised_score_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::events::v1::DelegationBalanceEvent, _internal_metadata_), ~0u, // no _extensions_ @@ -416,6 +502,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto:: PROTOBUF_FIELD_OFFSET(::vega::events::v1::DelegationBalanceEvent, party_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::DelegationBalanceEvent, node_id_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::DelegationBalanceEvent, amount_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::DelegationBalanceEvent, epoch_seq_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::events::v1::PendingDelegationBalanceEvent, _internal_metadata_), ~0u, // no _extensions_ @@ -425,6 +512,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto:: PROTOBUF_FIELD_OFFSET(::vega::events::v1::PendingDelegationBalanceEvent, node_id_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::PendingDelegationBalanceEvent, delegation_amount_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::PendingDelegationBalanceEvent, undelegation_amount_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::PendingDelegationBalanceEvent, epoch_seq_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::events::v1::MarketEvent, _internal_metadata_), ~0u, // no _extensions_ @@ -534,7 +622,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto:: ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, pub_key_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, vega_pub_key_), + PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, ethereum_address_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, tm_pub_key_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, info_url_), PROTOBUF_FIELD_OFFSET(::vega::events::v1::ValidatorUpdate, country_), @@ -580,30 +669,38 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto:: ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::vega::events::v1::BusEvent, event_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::vega::events::v1::StakingEvent)}, - { 10, -1, sizeof(::vega::events::v1::DelegationBalanceEvent)}, - { 18, -1, sizeof(::vega::events::v1::PendingDelegationBalanceEvent)}, - { 27, -1, sizeof(::vega::events::v1::MarketEvent)}, - { 34, -1, sizeof(::vega::events::v1::TxErrorEvent)}, - { 49, -1, sizeof(::vega::events::v1::TimeUpdate)}, - { 55, -1, sizeof(::vega::events::v1::EpochEvent)}, - { 64, -1, sizeof(::vega::events::v1::TransferResponses)}, - { 70, -1, sizeof(::vega::events::v1::PositionResolution)}, - { 79, -1, sizeof(::vega::events::v1::LossSocialization)}, - { 87, -1, sizeof(::vega::events::v1::TradeSettlement)}, - { 94, -1, sizeof(::vega::events::v1::SettlePosition)}, - { 103, -1, sizeof(::vega::events::v1::SettleDistressed)}, - { 112, -1, sizeof(::vega::events::v1::MarketTick)}, - { 119, -1, sizeof(::vega::events::v1::AuctionEvent)}, - { 131, -1, sizeof(::vega::events::v1::ValidatorUpdate)}, - { 140, -1, sizeof(::vega::events::v1::BusEvent)}, + { 0, -1, sizeof(::vega::events::v1::StakeLinking)}, + { 13, -1, sizeof(::vega::events::v1::CheckpointEvent)}, + { 21, -1, sizeof(::vega::events::v1::RewardPayoutEvent)}, + { 32, -1, sizeof(::vega::events::v1::ValidatorScoreEvent)}, + { 41, -1, sizeof(::vega::events::v1::DelegationBalanceEvent)}, + { 50, -1, sizeof(::vega::events::v1::PendingDelegationBalanceEvent)}, + { 60, -1, sizeof(::vega::events::v1::MarketEvent)}, + { 67, -1, sizeof(::vega::events::v1::TxErrorEvent)}, + { 82, -1, sizeof(::vega::events::v1::TimeUpdate)}, + { 88, -1, sizeof(::vega::events::v1::EpochEvent)}, + { 97, -1, sizeof(::vega::events::v1::TransferResponses)}, + { 103, -1, sizeof(::vega::events::v1::PositionResolution)}, + { 112, -1, sizeof(::vega::events::v1::LossSocialization)}, + { 120, -1, sizeof(::vega::events::v1::TradeSettlement)}, + { 127, -1, sizeof(::vega::events::v1::SettlePosition)}, + { 136, -1, sizeof(::vega::events::v1::SettleDistressed)}, + { 145, -1, sizeof(::vega::events::v1::MarketTick)}, + { 152, -1, sizeof(::vega::events::v1::AuctionEvent)}, + { 164, -1, sizeof(::vega::events::v1::ValidatorUpdate)}, + { 174, -1, sizeof(::vega::events::v1::BusEvent)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::vega::events::v1::_StakingEvent_default_instance_), + reinterpret_cast(&::vega::events::v1::_StakeLinking_default_instance_), + reinterpret_cast(&::vega::events::v1::_CheckpointEvent_default_instance_), + reinterpret_cast(&::vega::events::v1::_RewardPayoutEvent_default_instance_), + reinterpret_cast(&::vega::events::v1::_ValidatorScoreEvent_default_instance_), reinterpret_cast(&::vega::events::v1::_DelegationBalanceEvent_default_instance_), reinterpret_cast(&::vega::events::v1::_PendingDelegationBalanceEvent_default_instance_), reinterpret_cast(&::vega::events::v1::_MarketEvent_default_instance_), @@ -628,157 +725,182 @@ const char descriptor_table_protodef_events_2fv1_2fevents_2eproto[] PROTOBUF_SEC "e.proto\032\nvega.proto\032\025oracles/v1/spec.pro" "to\032\025oracles/v1/data.proto\032\032commands/v1/c" "ommands.proto\032$commands/v1/validator_com" - "mands.proto\"\324\001\n\014StakingEvent\022\016\n\002id\030\001 \001(\t" + "mands.proto\"\252\003\n\014StakeLinking\022\016\n\002id\030\001 \001(\t" "R\002id\0225\n\004type\030\002 \001(\0162!.vega.events.v1.Stak" - "ingEvent.TypeR\004type\022\016\n\002ts\030\003 \001(\003R\002ts\022\024\n\005p" + "eLinking.TypeR\004type\022\016\n\002ts\030\003 \001(\003R\002ts\022\024\n\005p" "arty\030\004 \001(\tR\005party\022\026\n\006amount\030\005 \001(\tR\006amoun" - "t\"\?\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_" - "DEPOSIT\020\001\022\017\n\013TYPE_REMOVE\020\002\"_\n\026Delegation" - "BalanceEvent\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007no" - "de_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\004R\006amo" - "unt\"\254\001\n\035PendingDelegationBalanceEvent\022\024\n" - "\005party\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006no" - "deId\022+\n\021delegation_amount\030\003 \001(\004R\020delegat" - "ionAmount\022/\n\023undelegation_amount\030\004 \001(\004R\022" - "undelegationAmount\"D\n\013MarketEvent\022\033\n\tmar" - "ket_id\030\001 \001(\tR\010marketId\022\030\n\007payload\030\002 \001(\tR" - "\007payload\"\246\005\n\014TxErrorEvent\022\031\n\010party_id\030\001 " - "\001(\tR\007partyId\022\027\n\007err_msg\030\002 \001(\tR\006errMsg\022N\n" - "\020order_submission\030e \001(\0132!.vega.commands." - "v1.OrderSubmissionH\000R\017orderSubmission\022K\n" - "\017order_amendment\030f \001(\0132 .vega.commands.v" - "1.OrderAmendmentH\000R\016orderAmendment\022T\n\022or" - "der_cancellation\030g \001(\0132#.vega.commands.v" - "1.OrderCancellationH\000R\021orderCancellation" - "\022B\n\010proposal\030h \001(\0132$.vega.commands.v1.Pr" - "oposalSubmissionH\000R\010proposal\022K\n\017vote_sub" - "mission\030i \001(\0132 .vega.commands.v1.VoteSub" - "missionH\000R\016voteSubmission\022v\n\036liquidity_p" - "rovision_submission\030j \001(\0132..vega.command" - "s.v1.LiquidityProvisionSubmissionH\000R\034liq" - "uidityProvisionSubmission\022W\n\023withdraw_su" - "bmission\030k \001(\0132$.vega.commands.v1.Withdr" - "awSubmissionH\000R\022withdrawSubmissionB\r\n\013tr" - "ansaction\"*\n\nTimeUpdate\022\034\n\ttimestamp\030\001 \001" - "(\003R\ttimestamp\"y\n\nEpochEvent\022\020\n\003seq\030\001 \001(\004" - "R\003seq\022\035\n\nstart_time\030\002 \001(\003R\tstartTime\022\037\n\013" - "expire_time\030\003 \001(\003R\nexpireTime\022\031\n\010end_tim" - "e\030\004 \001(\003R\007endTime\"I\n\021TransferResponses\0224\n" - "\tresponses\030\001 \003(\0132\026.vega.TransferResponse" - "R\tresponses\"\210\001\n\022PositionResolution\022\033\n\tma" - "rket_id\030\001 \001(\tR\010marketId\022\036\n\ndistressed\030\002 " - "\001(\003R\ndistressed\022\026\n\006closed\030\003 \001(\003R\006closed\022" - "\035\n\nmark_price\030\004 \001(\004R\tmarkPrice\"c\n\021LossSo" - "cialization\022\033\n\tmarket_id\030\001 \001(\tR\010marketId" - "\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 " - "\001(\003R\006amount\";\n\017TradeSettlement\022\022\n\004size\030\001" - " \001(\003R\004size\022\024\n\005price\030\002 \001(\004R\005price\"\254\001\n\016Set" - "tlePosition\022\033\n\tmarket_id\030\001 \001(\tR\010marketId" - "\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005price\030\003 \001" - "(\004R\005price\022L\n\021trade_settlements\030\004 \003(\0132\037.v" - "ega.events.v1.TradeSettlementR\020tradeSett" - "lements\"x\n\020SettleDistressed\022\033\n\tmarket_id" - "\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\tR\007part" - "yId\022\026\n\006margin\030\003 \001(\004R\006margin\022\024\n\005price\030\004 \001" - "(\004R\005price\"0\n\nMarketTick\022\016\n\002id\030\001 \001(\tR\002id\022" - "\022\n\004time\030\002 \001(\003R\004time\"\205\002\n\014AuctionEvent\022\033\n\t" - "market_id\030\001 \001(\tR\010marketId\022\'\n\017opening_auc" - "tion\030\002 \001(\010R\016openingAuction\022\024\n\005leave\030\003 \001(" - "\010R\005leave\022\024\n\005start\030\004 \001(\003R\005start\022\020\n\003end\030\005 " - "\001(\003R\003end\022.\n\007trigger\030\006 \001(\0162\024.vega.Auction" - "TriggerR\007trigger\022A\n\021extension_trigger\030\007 " - "\001(\0162\024.vega.AuctionTriggerR\020extensionTrig" - "ger\"}\n\017ValidatorUpdate\022\027\n\007pub_key\030\001 \001(\tR" - "\006pubKey\022\034\n\ntm_pub_key\030\002 \001(\tR\010tmPubKey\022\031\n" - "\010info_url\030\003 \001(\tR\007infoUrl\022\030\n\007country\030\004 \001(" - "\tR\007country\"\255\021\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022" - "\024\n\005block\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.ve" - "ga.events.v1.BusEventTypeR\004type\022=\n\013time_" - "update\030e \001(\0132\032.vega.events.v1.TimeUpdate" - "H\000R\ntimeUpdate\022R\n\022transfer_responses\030f \001" - "(\0132!.vega.events.v1.TransferResponsesH\000R" - "\021transferResponses\022U\n\023position_resolutio" - "n\030g \001(\0132\".vega.events.v1.PositionResolut" - "ionH\000R\022positionResolution\022#\n\005order\030h \001(\013" - "2\013.vega.OrderH\000R\005order\022)\n\007account\030i \001(\0132" - "\r.vega.AccountH\000R\007account\022#\n\005party\030j \001(\013" - "2\013.vega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013." - "vega.TradeH\000R\005trade\0229\n\rmargin_levels\030l \001" - "(\0132\022.vega.MarginLevelsH\000R\014marginLevels\022," - "\n\010proposal\030m \001(\0132\016.vega.ProposalH\000R\010prop" - "osal\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223" - "\n\013market_data\030o \001(\0132\020.vega.MarketDataH\000R" - "\nmarketData\022H\n\016node_signature\030p \001(\0132\037.ve" - "ga.commands.v1.NodeSignatureH\000R\rnodeSign" - "ature\022R\n\022loss_socialization\030q \001(\0132!.vega" - ".events.v1.LossSocializationH\000R\021lossSoci" - "alization\022I\n\017settle_position\030r \001(\0132\036.veg" - "a.events.v1.SettlePositionH\000R\016settlePosi" - "tion\022O\n\021settle_distressed\030s \001(\0132 .vega.e" - "vents.v1.SettleDistressedH\000R\020settleDistr" - "essed\0225\n\016market_created\030t \001(\0132\014.vega.Mar" - "ketH\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.ve" - "ga.AssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032" - ".vega.events.v1.MarketTickH\000R\nmarketTick" - "\0222\n\nwithdrawal\030w \001(\0132\020.vega.WithdrawalH\000" - "R\nwithdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Dep" - "ositH\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega." - "events.v1.AuctionEventH\000R\007auction\0223\n\013ris" - "k_factor\030z \001(\0132\020.vega.RiskFactorH\000R\nrisk" - "Factor\022E\n\021network_parameter\030{ \001(\0132\026.vega" - ".NetworkParameterH\000R\020networkParameter\022K\n" - "\023liquidity_provision\030| \001(\0132\030.vega.Liquid" - "ityProvisionH\000R\022liquidityProvision\0225\n\016ma" - "rket_updated\030} \001(\0132\014.vega.MarketH\000R\rmark" - "etUpdated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles" - ".v1.OracleSpecH\000R\noracleSpec\0229\n\013oracle_d" - "ata\030\177 \001(\0132\026.oracles.v1.OracleDataH\000R\nora" - "cleData\022X\n\022delegation_balance\030\201\001 \001(\0132&.v" - "ega.events.v1.DelegationBalanceEventH\000R\021" - "delegationBalance\022n\n\032pending_delegation_" - "balance\030\202\001 \001(\0132-.vega.events.v1.PendingD" - "elegationBalanceEventH\000R\030pendingDelegati" - "onBalance\022>\n\013epoch_event\030\203\001 \001(\0132\032.vega.e" - "vents.v1.EpochEventH\000R\nepochEvent\022M\n\020val" - "idator_update\030\204\001 \001(\0132\037.vega.events.v1.Va" - "lidatorUpdateH\000R\017validatorUpdate\022D\n\rstak" - "ing_event\030\205\001 \001(\0132\034.vega.events.v1.Stakin" - "gEventH\000R\014stakingEvent\0226\n\006market\030\351\007 \001(\0132" - "\033.vega.events.v1.MarketEventH\000R\006market\022A" - "\n\014tx_err_event\030\321\017 \001(\0132\034.vega.events.v1.T" - "xErrorEventH\000R\ntxErrEventB\007\n\005event*\247\t\n\014B" - "usEventType\022\036\n\032BUS_EVENT_TYPE_UNSPECIFIE" - "D\020\000\022\026\n\022BUS_EVENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT" - "_TYPE_TIME_UPDATE\020\002\022%\n!BUS_EVENT_TYPE_TR" - "ANSFER_RESPONSES\020\003\022&\n\"BUS_EVENT_TYPE_POS" - "ITION_RESOLUTION\020\004\022\030\n\024BUS_EVENT_TYPE_ORD" - "ER\020\005\022\032\n\026BUS_EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_" - "EVENT_TYPE_PARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRA" - "DE\020\010\022 \n\034BUS_EVENT_TYPE_MARGIN_LEVELS\020\t\022\033" - "\n\027BUS_EVENT_TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT" - "_TYPE_VOTE\020\013\022\036\n\032BUS_EVENT_TYPE_MARKET_DA" - "TA\020\014\022!\n\035BUS_EVENT_TYPE_NODE_SIGNATURE\020\r\022" - "%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\020\016\022\"" - "\n\036BUS_EVENT_TYPE_SETTLE_POSITION\020\017\022$\n BU" - "S_EVENT_TYPE_SETTLE_DISTRESSED\020\020\022!\n\035BUS_" - "EVENT_TYPE_MARKET_CREATED\020\021\022\030\n\024BUS_EVENT" - "_TYPE_ASSET\020\022\022\036\n\032BUS_EVENT_TYPE_MARKET_T" - "ICK\020\023\022\035\n\031BUS_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026" - "BUS_EVENT_TYPE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TY" - "PE_AUCTION\020\026\022\036\n\032BUS_EVENT_TYPE_RISK_FACT" - "OR\020\027\022$\n BUS_EVENT_TYPE_NETWORK_PARAMETER" - "\020\030\022&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION" - "\020\031\022!\n\035BUS_EVENT_TYPE_MARKET_UPDATED\020\032\022\036\n" - "\032BUS_EVENT_TYPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVE" - "NT_TYPE_ORACLE_DATA\020\034\022%\n!BUS_EVENT_TYPE_" - "DELEGATION_BALANCE\020\035\022-\n)BUS_EVENT_TYPE_P" - "ENDING_DELEGATION_BALANCE\020\036\022\037\n\033BUS_EVENT" - "_TYPE_EPOCH_UPDATE\020\037\022#\n\037BUS_EVENT_TYPE_V" - "ALIDATOR_UPDATE\020 \022 \n\034BUS_EVENT_TYPE_STAK" - "ING_EVENT\020!\022\031\n\025BUS_EVENT_TYPE_MARKET\020e\022\034" - "\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036io.vegap" - "rotocol.vega.events.v1Z)code.vegaprotoco" - "l.io/vega/proto/events/v1b\006proto3" + "t\022;\n\006status\030\006 \001(\0162#.vega.events.v1.Stake" + "Linking.StatusR\006status\022!\n\014finalized_at\030\007" + " \001(\003R\013finalizedAt\022\027\n\007tx_hash\030\010 \001(\tR\006txHa" + "sh\"<\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tTYPE" + "_LINK\020\001\022\017\n\013TYPE_UNLINK\020\002\"^\n\006Status\022\026\n\022ST" + "ATUS_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023" + "\n\017STATUS_ACCEPTED\020\002\022\023\n\017STATUS_REJECTED\020\003" + "\"g\n\017CheckpointEvent\022\022\n\004hash\030\001 \001(\tR\004hash\022" + "\035\n\nblock_hash\030\002 \001(\tR\tblockHash\022!\n\014block_" + "height\030\003 \001(\004R\013blockHeight\"\311\001\n\021RewardPayo" + "utEvent\022\024\n\005party\030\001 \001(\tR\005party\022\033\n\tepoch_s" + "eq\030\002 \001(\tR\010epochSeq\022\024\n\005asset\030\003 \001(\tR\005asset" + "\022\026\n\006amount\030\004 \001(\tR\006amount\0225\n\027percent_of_t" + "otal_reward\030\005 \001(\tR\024percentOfTotalReward\022" + "\034\n\ttimestamp\030\006 \001(\003R\ttimestamp\"\237\001\n\023Valida" + "torScoreEvent\022\027\n\007node_id\030\001 \001(\tR\006nodeId\022\033" + "\n\tepoch_seq\030\002 \001(\tR\010epochSeq\022\'\n\017validator" + "_score\030\003 \001(\tR\016validatorScore\022)\n\020normalis" + "ed_score\030\004 \001(\tR\017normalisedScore\"|\n\026Deleg" + "ationBalanceEvent\022\024\n\005party\030\001 \001(\tR\005party\022" + "\027\n\007node_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\004" + "R\006amount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\311\001" + "\n\035PendingDelegationBalanceEvent\022\024\n\005party" + "\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006nodeId\022+" + "\n\021delegation_amount\030\003 \001(\004R\020delegationAmo" + "unt\022/\n\023undelegation_amount\030\004 \001(\004R\022undele" + "gationAmount\022\033\n\tepoch_seq\030\005 \001(\tR\010epochSe" + "q\"D\n\013MarketEvent\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\246\005\n\014TxEr" + "rorEvent\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\027\n\007e" + "rr_msg\030\002 \001(\tR\006errMsg\022N\n\020order_submission" + "\030e \001(\0132!.vega.commands.v1.OrderSubmissio" + "nH\000R\017orderSubmission\022K\n\017order_amendment\030" + "f \001(\0132 .vega.commands.v1.OrderAmendmentH" + "\000R\016orderAmendment\022T\n\022order_cancellation\030" + "g \001(\0132#.vega.commands.v1.OrderCancellati" + "onH\000R\021orderCancellation\022B\n\010proposal\030h \001(" + "\0132$.vega.commands.v1.ProposalSubmissionH" + "\000R\010proposal\022K\n\017vote_submission\030i \001(\0132 .v" + "ega.commands.v1.VoteSubmissionH\000R\016voteSu" + "bmission\022v\n\036liquidity_provision_submissi" + "on\030j \001(\0132..vega.commands.v1.LiquidityPro" + "visionSubmissionH\000R\034liquidityProvisionSu" + "bmission\022W\n\023withdraw_submission\030k \001(\0132$." + "vega.commands.v1.WithdrawSubmissionH\000R\022w" + "ithdrawSubmissionB\r\n\013transaction\"*\n\nTime" + "Update\022\034\n\ttimestamp\030\001 \001(\003R\ttimestamp\"y\n\n" + "EpochEvent\022\020\n\003seq\030\001 \001(\004R\003seq\022\035\n\nstart_ti" + "me\030\002 \001(\003R\tstartTime\022\037\n\013expire_time\030\003 \001(\003" + "R\nexpireTime\022\031\n\010end_time\030\004 \001(\003R\007endTime\"" + "I\n\021TransferResponses\0224\n\tresponses\030\001 \003(\0132" + "\026.vega.TransferResponseR\tresponses\"\210\001\n\022P" + "ositionResolution\022\033\n\tmarket_id\030\001 \001(\tR\010ma" + "rketId\022\036\n\ndistressed\030\002 \001(\003R\ndistressed\022\026" + "\n\006closed\030\003 \001(\003R\006closed\022\035\n\nmark_price\030\004 \001" + "(\004R\tmarkPrice\"c\n\021LossSocialization\022\033\n\tma" + "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + "\tR\007partyId\022\026\n\006amount\030\003 \001(\003R\006amount\";\n\017Tr" + "adeSettlement\022\022\n\004size\030\001 \001(\003R\004size\022\024\n\005pri" + "ce\030\002 \001(\004R\005price\"\254\001\n\016SettlePosition\022\033\n\tma" + "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + "\tR\007partyId\022\024\n\005price\030\003 \001(\004R\005price\022L\n\021trad" + "e_settlements\030\004 \003(\0132\037.vega.events.v1.Tra" + "deSettlementR\020tradeSettlements\"x\n\020Settle" + "Distressed\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022" + "\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006margin\030\003 \001" + "(\004R\006margin\022\024\n\005price\030\004 \001(\004R\005price\"0\n\nMark" + "etTick\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004time\030\002 \001(\003R\004ti" + "me\"\205\002\n\014AuctionEvent\022\033\n\tmarket_id\030\001 \001(\tR\010" + "marketId\022\'\n\017opening_auction\030\002 \001(\010R\016openi" + "ngAuction\022\024\n\005leave\030\003 \001(\010R\005leave\022\024\n\005start" + "\030\004 \001(\003R\005start\022\020\n\003end\030\005 \001(\003R\003end\022.\n\007trigg" + "er\030\006 \001(\0162\024.vega.AuctionTriggerR\007trigger\022" + "A\n\021extension_trigger\030\007 \001(\0162\024.vega.Auctio" + "nTriggerR\020extensionTrigger\"\261\001\n\017Validator" + "Update\022 \n\014vega_pub_key\030\001 \001(\tR\nvegaPubKey" + "\022)\n\020ethereum_address\030\002 \001(\tR\017ethereumAddr" + "ess\022\034\n\ntm_pub_key\030\003 \001(\tR\010tmPubKey\022\031\n\010inf" + "o_url\030\004 \001(\tR\007infoUrl\022\030\n\007country\030\005 \001(\tR\007c" + "ountry\"\235\022\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005b" + "lock\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.vega.e" + "vents.v1.BusEventTypeR\004type\022=\n\013time_upda" + "te\030e \001(\0132\032.vega.events.v1.TimeUpdateH\000R\n" + "timeUpdate\022R\n\022transfer_responses\030f \001(\0132!" + ".vega.events.v1.TransferResponsesH\000R\021tra" + "nsferResponses\022U\n\023position_resolution\030g " + "\001(\0132\".vega.events.v1.PositionResolutionH" + "\000R\022positionResolution\022#\n\005order\030h \001(\0132\013.v" + "ega.OrderH\000R\005order\022)\n\007account\030i \001(\0132\r.ve" + "ga.AccountH\000R\007account\022#\n\005party\030j \001(\0132\013.v" + "ega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013.vega" + ".TradeH\000R\005trade\0229\n\rmargin_levels\030l \001(\0132\022" + ".vega.MarginLevelsH\000R\014marginLevels\022,\n\010pr" + "oposal\030m \001(\0132\016.vega.ProposalH\000R\010proposal" + "\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223\n\013ma" + "rket_data\030o \001(\0132\020.vega.MarketDataH\000R\nmar" + "ketData\022H\n\016node_signature\030p \001(\0132\037.vega.c" + "ommands.v1.NodeSignatureH\000R\rnodeSignatur" + "e\022R\n\022loss_socialization\030q \001(\0132!.vega.eve" + "nts.v1.LossSocializationH\000R\021lossSocializ" + "ation\022I\n\017settle_position\030r \001(\0132\036.vega.ev" + "ents.v1.SettlePositionH\000R\016settlePosition" + "\022O\n\021settle_distressed\030s \001(\0132 .vega.event" + "s.v1.SettleDistressedH\000R\020settleDistresse" + "d\0225\n\016market_created\030t \001(\0132\014.vega.MarketH" + "\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.vega.A" + "ssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032.veg" + "a.events.v1.MarketTickH\000R\nmarketTick\0222\n\n" + "withdrawal\030w \001(\0132\020.vega.WithdrawalH\000R\nwi" + "thdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Deposit" + "H\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega.even" + "ts.v1.AuctionEventH\000R\007auction\0223\n\013risk_fa" + "ctor\030z \001(\0132\020.vega.RiskFactorH\000R\nriskFact" + "or\022E\n\021network_parameter\030{ \001(\0132\026.vega.Net" + "workParameterH\000R\020networkParameter\022K\n\023liq" + "uidity_provision\030| \001(\0132\030.vega.LiquidityP" + "rovisionH\000R\022liquidityProvision\0225\n\016market" + "_updated\030} \001(\0132\014.vega.MarketH\000R\rmarketUp" + "dated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles.v1." + "OracleSpecH\000R\noracleSpec\0229\n\013oracle_data\030" + "\177 \001(\0132\026.oracles.v1.OracleDataH\000R\noracleD" + "ata\022X\n\022delegation_balance\030\201\001 \001(\0132&.vega." + "events.v1.DelegationBalanceEventH\000R\021dele" + "gationBalance\022O\n\017validator_score\030\202\001 \001(\0132" + "#.vega.events.v1.ValidatorScoreEventH\000R\016" + "validatorScore\022>\n\013epoch_event\030\203\001 \001(\0132\032.v" + "ega.events.v1.EpochEventH\000R\nepochEvent\022M" + "\n\020validator_update\030\204\001 \001(\0132\037.vega.events." + "v1.ValidatorUpdateH\000R\017validatorUpdate\022D\n" + "\rstake_linking\030\205\001 \001(\0132\034.vega.events.v1.S" + "takeLinkingH\000R\014stakeLinking\022I\n\rreward_pa" + "yout\030\206\001 \001(\0132!.vega.events.v1.RewardPayou" + "tEventH\000R\014rewardPayout\022B\n\ncheckpoint\030\207\001 " + "\001(\0132\037.vega.events.v1.CheckpointEventH\000R\n" + "checkpoint\0226\n\006market\030\351\007 \001(\0132\033.vega.event" + "s.v1.MarketEventH\000R\006market\022A\n\014tx_err_eve" + "nt\030\321\017 \001(\0132\034.vega.events.v1.TxErrorEventH" + "\000R\ntxErrEventB\007\n\005event*\343\t\n\014BusEventType\022" + "\036\n\032BUS_EVENT_TYPE_UNSPECIFIED\020\000\022\026\n\022BUS_E" + "VENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT_TYPE_TIME_U" + "PDATE\020\002\022%\n!BUS_EVENT_TYPE_TRANSFER_RESPO" + "NSES\020\003\022&\n\"BUS_EVENT_TYPE_POSITION_RESOLU" + "TION\020\004\022\030\n\024BUS_EVENT_TYPE_ORDER\020\005\022\032\n\026BUS_" + "EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_EVENT_TYPE_P" + "ARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRADE\020\010\022 \n\034BUS_" + "EVENT_TYPE_MARGIN_LEVELS\020\t\022\033\n\027BUS_EVENT_" + "TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT_TYPE_VOTE\020\013" + "\022\036\n\032BUS_EVENT_TYPE_MARKET_DATA\020\014\022!\n\035BUS_" + "EVENT_TYPE_NODE_SIGNATURE\020\r\022%\n!BUS_EVENT" + "_TYPE_LOSS_SOCIALIZATION\020\016\022\"\n\036BUS_EVENT_" + "TYPE_SETTLE_POSITION\020\017\022$\n BUS_EVENT_TYPE" + "_SETTLE_DISTRESSED\020\020\022!\n\035BUS_EVENT_TYPE_M" + "ARKET_CREATED\020\021\022\030\n\024BUS_EVENT_TYPE_ASSET\020" + "\022\022\036\n\032BUS_EVENT_TYPE_MARKET_TICK\020\023\022\035\n\031BUS" + "_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026BUS_EVENT_TY" + "PE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TYPE_AUCTION\020\026" + "\022\036\n\032BUS_EVENT_TYPE_RISK_FACTOR\020\027\022$\n BUS_" + "EVENT_TYPE_NETWORK_PARAMETER\020\030\022&\n\"BUS_EV" + "ENT_TYPE_LIQUIDITY_PROVISION\020\031\022!\n\035BUS_EV" + "ENT_TYPE_MARKET_UPDATED\020\032\022\036\n\032BUS_EVENT_T" + "YPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVENT_TYPE_ORAC" + "LE_DATA\020\034\022%\n!BUS_EVENT_TYPE_DELEGATION_B" + "ALANCE\020\035\022\"\n\036BUS_EVENT_TYPE_VALIDATOR_SCO" + "RE\020\036\022\037\n\033BUS_EVENT_TYPE_EPOCH_UPDATE\020\037\022#\n" + "\037BUS_EVENT_TYPE_VALIDATOR_UPDATE\020 \022 \n\034BU" + "S_EVENT_TYPE_STAKE_LINKING\020!\022&\n\"BUS_EVEN" + "T_TYPE_REWARD_PAYOUT_EVENT\020\"\022\035\n\031BUS_EVEN" + "T_TYPE_CHECKPOINT\020#\022\031\n\025BUS_EVENT_TYPE_MA" + "RKET\020e\022\034\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036" + "io.vegaprotocol.vega.events.v1Z)code.veg" + "aprotocol.io/vega/proto/events/v1b\006proto" + "3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_events_2fv1_2fevents_2eproto_deps[8] = { &::descriptor_table_assets_2eproto, @@ -790,9 +912,10 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_oracles_2fv1_2fspec_2eproto, &::descriptor_table_vega_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_events_2fv1_2fevents_2eproto_sccs[17] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_events_2fv1_2fevents_2eproto_sccs[20] = { &scc_info_AuctionEvent_events_2fv1_2fevents_2eproto.base, &scc_info_BusEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto.base, &scc_info_DelegationBalanceEvent_events_2fv1_2fevents_2eproto.base, &scc_info_EpochEvent_events_2fv1_2fevents_2eproto.base, &scc_info_LossSocialization_events_2fv1_2fevents_2eproto.base, @@ -800,21 +923,23 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_eve &scc_info_MarketTick_events_2fv1_2fevents_2eproto.base, &scc_info_PendingDelegationBalanceEvent_events_2fv1_2fevents_2eproto.base, &scc_info_PositionResolution_events_2fv1_2fevents_2eproto.base, + &scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto.base, &scc_info_SettleDistressed_events_2fv1_2fevents_2eproto.base, &scc_info_SettlePosition_events_2fv1_2fevents_2eproto.base, - &scc_info_StakingEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_StakeLinking_events_2fv1_2fevents_2eproto.base, &scc_info_TimeUpdate_events_2fv1_2fevents_2eproto.base, &scc_info_TradeSettlement_events_2fv1_2fevents_2eproto.base, &scc_info_TransferResponses_events_2fv1_2fevents_2eproto.base, &scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto.base, + &scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto.base, &scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_events_2fv1_2fevents_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_events_2fv1_2fevents_2eproto = { - false, false, descriptor_table_protodef_events_2fv1_2fevents_2eproto, "events/v1/events.proto", 6233, - &descriptor_table_events_2fv1_2fevents_2eproto_once, descriptor_table_events_2fv1_2fevents_2eproto_sccs, descriptor_table_events_2fv1_2fevents_2eproto_deps, 17, 8, + false, false, descriptor_table_protodef_events_2fv1_2fevents_2eproto, "events/v1/events.proto", 7201, + &descriptor_table_events_2fv1_2fevents_2eproto_once, descriptor_table_events_2fv1_2fevents_2eproto_sccs, descriptor_table_events_2fv1_2fevents_2eproto_deps, 20, 8, schemas, file_default_instances, TableStruct_events_2fv1_2fevents_2eproto::offsets, - file_level_metadata_events_2fv1_2fevents_2eproto, 17, file_level_enum_descriptors_events_2fv1_2fevents_2eproto, file_level_service_descriptors_events_2fv1_2fevents_2eproto, + file_level_metadata_events_2fv1_2fevents_2eproto, 20, file_level_enum_descriptors_events_2fv1_2fevents_2eproto, file_level_service_descriptors_events_2fv1_2fevents_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -822,11 +947,11 @@ static bool dynamic_init_dummy_events_2fv1_2fevents_2eproto = (static_cast namespace vega { namespace events { namespace v1 { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakingEvent_Type_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakeLinking_Type_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_events_2fv1_2fevents_2eproto); return file_level_enum_descriptors_events_2fv1_2fevents_2eproto[0]; } -bool StakingEvent_Type_IsValid(int value) { +bool StakeLinking_Type_IsValid(int value) { switch (value) { case 0: case 1: @@ -838,17 +963,42 @@ bool StakingEvent_Type_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr StakingEvent_Type StakingEvent::TYPE_UNSPECIFIED; -constexpr StakingEvent_Type StakingEvent::TYPE_DEPOSIT; -constexpr StakingEvent_Type StakingEvent::TYPE_REMOVE; -constexpr StakingEvent_Type StakingEvent::Type_MIN; -constexpr StakingEvent_Type StakingEvent::Type_MAX; -constexpr int StakingEvent::Type_ARRAYSIZE; +constexpr StakeLinking_Type StakeLinking::TYPE_UNSPECIFIED; +constexpr StakeLinking_Type StakeLinking::TYPE_LINK; +constexpr StakeLinking_Type StakeLinking::TYPE_UNLINK; +constexpr StakeLinking_Type StakeLinking::Type_MIN; +constexpr StakeLinking_Type StakeLinking::Type_MAX; +constexpr int StakeLinking::Type_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BusEventType_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakeLinking_Status_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_events_2fv1_2fevents_2eproto); return file_level_enum_descriptors_events_2fv1_2fevents_2eproto[1]; } +bool StakeLinking_Status_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr StakeLinking_Status StakeLinking::STATUS_UNSPECIFIED; +constexpr StakeLinking_Status StakeLinking::STATUS_PENDING; +constexpr StakeLinking_Status StakeLinking::STATUS_ACCEPTED; +constexpr StakeLinking_Status StakeLinking::STATUS_REJECTED; +constexpr StakeLinking_Status StakeLinking::Status_MIN; +constexpr StakeLinking_Status StakeLinking::Status_MAX; +constexpr int StakeLinking::Status_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BusEventType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_events_2fv1_2fevents_2eproto); + return file_level_enum_descriptors_events_2fv1_2fevents_2eproto[2]; +} bool BusEventType_IsValid(int value) { switch (value) { case 0: @@ -885,6 +1035,8 @@ bool BusEventType_IsValid(int value) { case 31: case 32: case 33: + case 34: + case 35: case 101: case 201: return true; @@ -896,140 +1048,1218 @@ bool BusEventType_IsValid(int value) { // =================================================================== -class StakingEvent::_Internal { +class StakeLinking::_Internal { + public: +}; + +StakeLinking::StakeLinking(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.events.v1.StakeLinking) +} +StakeLinking::StakeLinking(const StakeLinking& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + GetArena()); + } + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_tx_hash().empty()) { + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx_hash(), + GetArena()); + } + ::memcpy(&ts_, &from.ts_, + static_cast(reinterpret_cast(&finalized_at_) - + reinterpret_cast(&ts_)) + sizeof(finalized_at_)); + // @@protoc_insertion_point(copy_constructor:vega.events.v1.StakeLinking) +} + +void StakeLinking::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StakeLinking_events_2fv1_2fevents_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&ts_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&finalized_at_) - + reinterpret_cast(&ts_)) + sizeof(finalized_at_)); +} + +StakeLinking::~StakeLinking() { + // @@protoc_insertion_point(destructor:vega.events.v1.StakeLinking) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void StakeLinking::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void StakeLinking::ArenaDtor(void* object) { + StakeLinking* _this = reinterpret_cast< StakeLinking* >(object); + (void)_this; +} +void StakeLinking::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StakeLinking::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StakeLinking& StakeLinking::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StakeLinking_events_2fv1_2fevents_2eproto.base); + return *internal_default_instance(); +} + + +void StakeLinking::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.events.v1.StakeLinking) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + party_.ClearToEmpty(); + amount_.ClearToEmpty(); + tx_hash_.ClearToEmpty(); + ::memset(&ts_, 0, static_cast( + reinterpret_cast(&finalized_at_) - + reinterpret_cast(&ts_)) + sizeof(finalized_at_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StakeLinking::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakeLinking.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::vega::events::v1::StakeLinking_Type>(val)); + } else goto handle_unusual; + continue; + // int64 ts = 3 [json_name = "ts"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string party = 4 [json_name = "party"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakeLinking.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 5 [json_name = "amount"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakeLinking.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::vega::events::v1::StakeLinking_Status>(val)); + } else goto handle_unusual; + continue; + // int64 finalized_at = 7 [json_name = "finalizedAt"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + finalized_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string tx_hash = 8 [json_name = "txHash"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_tx_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakeLinking.tx_hash")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StakeLinking::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.events.v1.StakeLinking) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.StakeLinking.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; + if (this->type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_type(), target); + } + + // int64 ts = 3 [json_name = "ts"]; + if (this->ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_ts(), target); + } + + // string party = 4 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.StakeLinking.party"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_party(), target); + } + + // string amount = 5 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.StakeLinking.amount"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_amount(), target); + } + + // .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + if (this->status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_status(), target); + } + + // int64 finalized_at = 7 [json_name = "finalizedAt"]; + if (this->finalized_at() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_finalized_at(), target); + } + + // string tx_hash = 8 [json_name = "txHash"]; + if (this->tx_hash().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tx_hash().data(), static_cast(this->_internal_tx_hash().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.StakeLinking.tx_hash"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_tx_hash(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.events.v1.StakeLinking) + return target; +} + +size_t StakeLinking::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.events.v1.StakeLinking) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string party = 4 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string amount = 5 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // string tx_hash = 8 [json_name = "txHash"]; + if (this->tx_hash().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tx_hash()); + } + + // int64 ts = 3 [json_name = "ts"]; + if (this->ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_ts()); + } + + // .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + // .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + if (this->status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + } + + // int64 finalized_at = 7 [json_name = "finalizedAt"]; + if (this->finalized_at() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_finalized_at()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StakeLinking::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.events.v1.StakeLinking) + GOOGLE_DCHECK_NE(&from, this); + const StakeLinking* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.events.v1.StakeLinking) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.events.v1.StakeLinking) + MergeFrom(*source); + } +} + +void StakeLinking::MergeFrom(const StakeLinking& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.events.v1.StakeLinking) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + _internal_set_id(from._internal_id()); + } + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.tx_hash().size() > 0) { + _internal_set_tx_hash(from._internal_tx_hash()); + } + if (from.ts() != 0) { + _internal_set_ts(from._internal_ts()); + } + if (from.type() != 0) { + _internal_set_type(from._internal_type()); + } + if (from.status() != 0) { + _internal_set_status(from._internal_status()); + } + if (from.finalized_at() != 0) { + _internal_set_finalized_at(from._internal_finalized_at()); + } +} + +void StakeLinking::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.events.v1.StakeLinking) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StakeLinking::CopyFrom(const StakeLinking& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.events.v1.StakeLinking) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StakeLinking::IsInitialized() const { + return true; +} + +void StakeLinking::InternalSwap(StakeLinking* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StakeLinking, finalized_at_) + + sizeof(StakeLinking::finalized_at_) + - PROTOBUF_FIELD_OFFSET(StakeLinking, ts_)>( + reinterpret_cast(&ts_), + reinterpret_cast(&other->ts_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StakeLinking::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class CheckpointEvent::_Internal { + public: +}; + +CheckpointEvent::CheckpointEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.events.v1.CheckpointEvent) +} +CheckpointEvent::CheckpointEvent(const CheckpointEvent& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_hash().empty()) { + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash(), + GetArena()); + } + block_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_block_hash().empty()) { + block_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_block_hash(), + GetArena()); + } + block_height_ = from.block_height_; + // @@protoc_insertion_point(copy_constructor:vega.events.v1.CheckpointEvent) +} + +void CheckpointEvent::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto.base); + hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_height_ = PROTOBUF_ULONGLONG(0); +} + +CheckpointEvent::~CheckpointEvent() { + // @@protoc_insertion_point(destructor:vega.events.v1.CheckpointEvent) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void CheckpointEvent::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void CheckpointEvent::ArenaDtor(void* object) { + CheckpointEvent* _this = reinterpret_cast< CheckpointEvent* >(object); + (void)_this; +} +void CheckpointEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CheckpointEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CheckpointEvent& CheckpointEvent::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CheckpointEvent_events_2fv1_2fevents_2eproto.base); + return *internal_default_instance(); +} + + +void CheckpointEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.events.v1.CheckpointEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hash_.ClearToEmpty(); + block_hash_.ClearToEmpty(); + block_height_ = PROTOBUF_ULONGLONG(0); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CheckpointEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string hash = 1 [json_name = "hash"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.CheckpointEvent.hash")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string block_hash = 2 [json_name = "blockHash"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_block_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.CheckpointEvent.block_hash")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 block_height = 3 [json_name = "blockHeight"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + block_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* CheckpointEvent::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.events.v1.CheckpointEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string hash = 1 [json_name = "hash"]; + if (this->hash().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_hash().data(), static_cast(this->_internal_hash().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.CheckpointEvent.hash"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_hash(), target); + } + + // string block_hash = 2 [json_name = "blockHash"]; + if (this->block_hash().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_block_hash().data(), static_cast(this->_internal_block_hash().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.CheckpointEvent.block_hash"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_block_hash(), target); + } + + // uint64 block_height = 3 [json_name = "blockHeight"]; + if (this->block_height() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_block_height(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.events.v1.CheckpointEvent) + return target; +} + +size_t CheckpointEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.events.v1.CheckpointEvent) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string hash = 1 [json_name = "hash"]; + if (this->hash().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_hash()); + } + + // string block_hash = 2 [json_name = "blockHash"]; + if (this->block_hash().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_block_hash()); + } + + // uint64 block_height = 3 [json_name = "blockHeight"]; + if (this->block_height() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_block_height()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CheckpointEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.events.v1.CheckpointEvent) + GOOGLE_DCHECK_NE(&from, this); + const CheckpointEvent* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.events.v1.CheckpointEvent) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.events.v1.CheckpointEvent) + MergeFrom(*source); + } +} + +void CheckpointEvent::MergeFrom(const CheckpointEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.events.v1.CheckpointEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.hash().size() > 0) { + _internal_set_hash(from._internal_hash()); + } + if (from.block_hash().size() > 0) { + _internal_set_block_hash(from._internal_block_hash()); + } + if (from.block_height() != 0) { + _internal_set_block_height(from._internal_block_height()); + } +} + +void CheckpointEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.events.v1.CheckpointEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CheckpointEvent::CopyFrom(const CheckpointEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.events.v1.CheckpointEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CheckpointEvent::IsInitialized() const { + return true; +} + +void CheckpointEvent::InternalSwap(CheckpointEvent* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + hash_.Swap(&other->hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + block_hash_.Swap(&other->block_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(block_height_, other->block_height_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CheckpointEvent::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class RewardPayoutEvent::_Internal { + public: +}; + +RewardPayoutEvent::RewardPayoutEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.events.v1.RewardPayoutEvent) +} +RewardPayoutEvent::RewardPayoutEvent(const RewardPayoutEvent& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_epoch_seq().empty()) { + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_epoch_seq(), + GetArena()); + } + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), + GetArena()); + } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + percent_of_total_reward_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_percent_of_total_reward().empty()) { + percent_of_total_reward_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_percent_of_total_reward(), + GetArena()); + } + timestamp_ = from.timestamp_; + // @@protoc_insertion_point(copy_constructor:vega.events.v1.RewardPayoutEvent) +} + +void RewardPayoutEvent::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + percent_of_total_reward_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + timestamp_ = PROTOBUF_LONGLONG(0); +} + +RewardPayoutEvent::~RewardPayoutEvent() { + // @@protoc_insertion_point(destructor:vega.events.v1.RewardPayoutEvent) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void RewardPayoutEvent::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + percent_of_total_reward_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void RewardPayoutEvent::ArenaDtor(void* object) { + RewardPayoutEvent* _this = reinterpret_cast< RewardPayoutEvent* >(object); + (void)_this; +} +void RewardPayoutEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RewardPayoutEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RewardPayoutEvent& RewardPayoutEvent::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RewardPayoutEvent_events_2fv1_2fevents_2eproto.base); + return *internal_default_instance(); +} + + +void RewardPayoutEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.events.v1.RewardPayoutEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + epoch_seq_.ClearToEmpty(); + asset_.ClearToEmpty(); + amount_.ClearToEmpty(); + percent_of_total_reward_.ClearToEmpty(); + timestamp_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RewardPayoutEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.RewardPayoutEvent.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string epoch_seq = 2 [json_name = "epochSeq"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_epoch_seq(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.RewardPayoutEvent.epoch_seq")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string asset = 3 [json_name = "asset"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_asset(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.RewardPayoutEvent.asset")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 4 [json_name = "amount"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.RewardPayoutEvent.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_percent_of_total_reward(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.RewardPayoutEvent.percent_of_total_reward")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 timestamp = 6 [json_name = "timestamp"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RewardPayoutEvent::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.events.v1.RewardPayoutEvent) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.RewardPayoutEvent.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string epoch_seq = 2 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_epoch_seq().data(), static_cast(this->_internal_epoch_seq().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.RewardPayoutEvent.epoch_seq"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_epoch_seq(), target); + } + + // string asset = 3 [json_name = "asset"]; + if (this->asset().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.RewardPayoutEvent.asset"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_asset(), target); + } + + // string amount = 4 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.RewardPayoutEvent.amount"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_amount(), target); + } + + // string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + if (this->percent_of_total_reward().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_percent_of_total_reward().data(), static_cast(this->_internal_percent_of_total_reward().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.RewardPayoutEvent.percent_of_total_reward"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_percent_of_total_reward(), target); + } + + // int64 timestamp = 6 [json_name = "timestamp"]; + if (this->timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_timestamp(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.events.v1.RewardPayoutEvent) + return target; +} + +size_t RewardPayoutEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.events.v1.RewardPayoutEvent) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string epoch_seq = 2 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_epoch_seq()); + } + + // string asset = 3 [json_name = "asset"]; + if (this->asset().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); + } + + // string amount = 4 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + if (this->percent_of_total_reward().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_percent_of_total_reward()); + } + + // int64 timestamp = 6 [json_name = "timestamp"]; + if (this->timestamp() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_timestamp()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RewardPayoutEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.events.v1.RewardPayoutEvent) + GOOGLE_DCHECK_NE(&from, this); + const RewardPayoutEvent* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.events.v1.RewardPayoutEvent) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.events.v1.RewardPayoutEvent) + MergeFrom(*source); + } +} + +void RewardPayoutEvent::MergeFrom(const RewardPayoutEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.events.v1.RewardPayoutEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.epoch_seq().size() > 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); + } + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.percent_of_total_reward().size() > 0) { + _internal_set_percent_of_total_reward(from._internal_percent_of_total_reward()); + } + if (from.timestamp() != 0) { + _internal_set_timestamp(from._internal_timestamp()); + } +} + +void RewardPayoutEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.events.v1.RewardPayoutEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RewardPayoutEvent::CopyFrom(const RewardPayoutEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.events.v1.RewardPayoutEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RewardPayoutEvent::IsInitialized() const { + return true; +} + +void RewardPayoutEvent::InternalSwap(RewardPayoutEvent* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + epoch_seq_.Swap(&other->epoch_seq_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + percent_of_total_reward_.Swap(&other->percent_of_total_reward_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(timestamp_, other->timestamp_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RewardPayoutEvent::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ValidatorScoreEvent::_Internal { public: }; -StakingEvent::StakingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) +ValidatorScoreEvent::ValidatorScoreEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(arena_constructor:vega.events.v1.ValidatorScoreEvent) } -StakingEvent::StakingEvent(const StakingEvent& from) +ValidatorScoreEvent::ValidatorScoreEvent(const ValidatorScoreEvent& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_node_id().empty()) { + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), GetArena()); } - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party().empty()) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_epoch_seq().empty()) { + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_epoch_seq(), GetArena()); } - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_amount().empty()) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + validator_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_validator_score().empty()) { + validator_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_validator_score(), GetArena()); } - ::memcpy(&ts_, &from.ts_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&ts_)) + sizeof(type_)); - // @@protoc_insertion_point(copy_constructor:vega.events.v1.StakingEvent) + normalised_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_normalised_score().empty()) { + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_normalised_score(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.events.v1.ValidatorScoreEvent) } -void StakingEvent::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StakingEvent_events_2fv1_2fevents_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ts_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&ts_)) + sizeof(type_)); +void ValidatorScoreEvent::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto.base); + node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + validator_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + normalised_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -StakingEvent::~StakingEvent() { - // @@protoc_insertion_point(destructor:vega.events.v1.StakingEvent) +ValidatorScoreEvent::~ValidatorScoreEvent() { + // @@protoc_insertion_point(destructor:vega.events.v1.ValidatorScoreEvent) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void StakingEvent::SharedDtor() { +void ValidatorScoreEvent::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + validator_score_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + normalised_score_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void StakingEvent::ArenaDtor(void* object) { - StakingEvent* _this = reinterpret_cast< StakingEvent* >(object); +void ValidatorScoreEvent::ArenaDtor(void* object) { + ValidatorScoreEvent* _this = reinterpret_cast< ValidatorScoreEvent* >(object); (void)_this; } -void StakingEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ValidatorScoreEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void StakingEvent::SetCachedSize(int size) const { +void ValidatorScoreEvent::SetCachedSize(int size) const { _cached_size_.Set(size); } -const StakingEvent& StakingEvent::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StakingEvent_events_2fv1_2fevents_2eproto.base); +const ValidatorScoreEvent& ValidatorScoreEvent::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto.base); return *internal_default_instance(); } -void StakingEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.events.v1.StakingEvent) +void ValidatorScoreEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.events.v1.ValidatorScoreEvent) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmpty(); - party_.ClearToEmpty(); - amount_.ClearToEmpty(); - ::memset(&ts_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&ts_)) + sizeof(type_)); + node_id_.ClearToEmpty(); + epoch_seq_.ClearToEmpty(); + validator_score_.ClearToEmpty(); + normalised_score_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* StakingEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ValidatorScoreEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id"]; + // string node_id = 1 [json_name = "nodeId"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); + auto str = _internal_mutable_node_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakingEvent.id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorScoreEvent.node_id")); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + // string epoch_seq = 2 [json_name = "epochSeq"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_epoch_seq(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorScoreEvent.epoch_seq")); CHK_(ptr); - _internal_set_type(static_cast<::vega::events::v1::StakingEvent_Type>(val)); } else goto handle_unusual; continue; - // int64 ts = 3 [json_name = "ts"]; + // string validator_score = 3 [json_name = "validatorScore"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_validator_score(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorScoreEvent.validator_score")); CHK_(ptr); } else goto handle_unusual; continue; - // string party = 4 [json_name = "party"]; + // string normalised_score = 4 [json_name = "normalisedScore"]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_party(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakingEvent.party")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string amount = 5 [json_name = "amount"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_amount(); + auto str = _internal_mutable_normalised_score(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.StakingEvent.amount")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorScoreEvent.normalised_score")); CHK_(ptr); } else goto handle_unusual; continue; @@ -1055,103 +2285,94 @@ const char* StakingEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* StakingEvent::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ValidatorScoreEvent::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(serialize_to_array_start:vega.events.v1.ValidatorScoreEvent) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { + // string node_id = 1 [json_name = "nodeId"]; + if (this->node_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), + this->_internal_node_id().data(), static_cast(this->_internal_node_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.events.v1.StakingEvent.id"); + "vega.events.v1.ValidatorScoreEvent.node_id"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); - } - - // .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + 1, this->_internal_node_id(), target); } - // int64 ts = 3 [json_name = "ts"]; - if (this->ts() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_ts(), target); + // string epoch_seq = 2 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_epoch_seq().data(), static_cast(this->_internal_epoch_seq().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.ValidatorScoreEvent.epoch_seq"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_epoch_seq(), target); } - // string party = 4 [json_name = "party"]; - if (this->party().size() > 0) { + // string validator_score = 3 [json_name = "validatorScore"]; + if (this->validator_score().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party().data(), static_cast(this->_internal_party().length()), + this->_internal_validator_score().data(), static_cast(this->_internal_validator_score().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.events.v1.StakingEvent.party"); + "vega.events.v1.ValidatorScoreEvent.validator_score"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_party(), target); + 3, this->_internal_validator_score(), target); } - // string amount = 5 [json_name = "amount"]; - if (this->amount().size() > 0) { + // string normalised_score = 4 [json_name = "normalisedScore"]; + if (this->normalised_score().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + this->_internal_normalised_score().data(), static_cast(this->_internal_normalised_score().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.events.v1.StakingEvent.amount"); + "vega.events.v1.ValidatorScoreEvent.normalised_score"); target = stream->WriteStringMaybeAliased( - 5, this->_internal_amount(), target); + 4, this->_internal_normalised_score(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(serialize_to_array_end:vega.events.v1.ValidatorScoreEvent) return target; } -size_t StakingEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.events.v1.StakingEvent) +size_t ValidatorScoreEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.events.v1.ValidatorScoreEvent) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { + // string node_id = 1 [json_name = "nodeId"]; + if (this->node_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); + this->_internal_node_id()); } - // string party = 4 [json_name = "party"]; - if (this->party().size() > 0) { + // string epoch_seq = 2 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party()); + this->_internal_epoch_seq()); } - // string amount = 5 [json_name = "amount"]; - if (this->amount().size() > 0) { + // string validator_score = 3 [json_name = "validatorScore"]; + if (this->validator_score().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_amount()); - } - - // int64 ts = 3 [json_name = "ts"]; - if (this->ts() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_ts()); + this->_internal_validator_score()); } - // .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; - if (this->type() != 0) { + // string normalised_score = 4 [json_name = "normalisedScore"]; + if (this->normalised_score().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_normalised_score()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1163,78 +2384,70 @@ size_t StakingEvent::ByteSizeLong() const { return total_size; } -void StakingEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.events.v1.StakingEvent) +void ValidatorScoreEvent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.events.v1.ValidatorScoreEvent) GOOGLE_DCHECK_NE(&from, this); - const StakingEvent* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const ValidatorScoreEvent* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.events.v1.ValidatorScoreEvent) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.events.v1.ValidatorScoreEvent) MergeFrom(*source); } } -void StakingEvent::MergeFrom(const StakingEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.events.v1.StakingEvent) +void ValidatorScoreEvent::MergeFrom(const ValidatorScoreEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.events.v1.ValidatorScoreEvent) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); - } - if (from.party().size() > 0) { - _internal_set_party(from._internal_party()); + if (from.node_id().size() > 0) { + _internal_set_node_id(from._internal_node_id()); } - if (from.amount().size() > 0) { - _internal_set_amount(from._internal_amount()); + if (from.epoch_seq().size() > 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); } - if (from.ts() != 0) { - _internal_set_ts(from._internal_ts()); + if (from.validator_score().size() > 0) { + _internal_set_validator_score(from._internal_validator_score()); } - if (from.type() != 0) { - _internal_set_type(from._internal_type()); + if (from.normalised_score().size() > 0) { + _internal_set_normalised_score(from._internal_normalised_score()); } } -void StakingEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.events.v1.StakingEvent) +void ValidatorScoreEvent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.events.v1.ValidatorScoreEvent) if (&from == this) return; Clear(); MergeFrom(from); } -void StakingEvent::CopyFrom(const StakingEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.events.v1.StakingEvent) +void ValidatorScoreEvent::CopyFrom(const ValidatorScoreEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.events.v1.ValidatorScoreEvent) if (&from == this) return; Clear(); MergeFrom(from); } -bool StakingEvent::IsInitialized() const { +bool ValidatorScoreEvent::IsInitialized() const { return true; } -void StakingEvent::InternalSwap(StakingEvent* other) { +void ValidatorScoreEvent::InternalSwap(ValidatorScoreEvent* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(StakingEvent, type_) - + sizeof(StakingEvent::type_) - - PROTOBUF_FIELD_OFFSET(StakingEvent, ts_)>( - reinterpret_cast(&ts_), - reinterpret_cast(&other->ts_)); + node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + epoch_seq_.Swap(&other->epoch_seq_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + validator_score_.Swap(&other->validator_score_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + normalised_score_.Swap(&other->normalised_score_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata StakingEvent::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ValidatorScoreEvent::GetMetadata() const { return GetMetadataStatic(); } @@ -1264,6 +2477,11 @@ DelegationBalanceEvent::DelegationBalanceEvent(const DelegationBalanceEvent& fro node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), GetArena()); } + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_epoch_seq().empty()) { + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_epoch_seq(), + GetArena()); + } amount_ = from.amount_; // @@protoc_insertion_point(copy_constructor:vega.events.v1.DelegationBalanceEvent) } @@ -1272,6 +2490,7 @@ void DelegationBalanceEvent::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DelegationBalanceEvent_events_2fv1_2fevents_2eproto.base); party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); amount_ = PROTOBUF_ULONGLONG(0); } @@ -1285,6 +2504,7 @@ void DelegationBalanceEvent::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void DelegationBalanceEvent::ArenaDtor(void* object) { @@ -1310,6 +2530,7 @@ void DelegationBalanceEvent::Clear() { party_.ClearToEmpty(); node_id_.ClearToEmpty(); + epoch_seq_.ClearToEmpty(); amount_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1346,6 +2567,15 @@ const char* DelegationBalanceEvent::_InternalParse(const char* ptr, ::PROTOBUF_N CHK_(ptr); } else goto handle_unusual; continue; + // string epoch_seq = 4 [json_name = "epochSeq"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_epoch_seq(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.DelegationBalanceEvent.epoch_seq")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1400,6 +2630,16 @@ ::PROTOBUF_NAMESPACE_ID::uint8* DelegationBalanceEvent::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); } + // string epoch_seq = 4 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_epoch_seq().data(), static_cast(this->_internal_epoch_seq().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.DelegationBalanceEvent.epoch_seq"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_epoch_seq(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1430,6 +2670,13 @@ size_t DelegationBalanceEvent::ByteSizeLong() const { this->_internal_node_id()); } + // string epoch_seq = 4 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_epoch_seq()); + } + // uint64 amount = 3 [json_name = "amount"]; if (this->amount() != 0) { total_size += 1 + @@ -1474,6 +2721,9 @@ void DelegationBalanceEvent::MergeFrom(const DelegationBalanceEvent& from) { if (from.node_id().size() > 0) { _internal_set_node_id(from._internal_node_id()); } + if (from.epoch_seq().size() > 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); + } if (from.amount() != 0) { _internal_set_amount(from._internal_amount()); } @@ -1502,6 +2752,7 @@ void DelegationBalanceEvent::InternalSwap(DelegationBalanceEvent* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + epoch_seq_.Swap(&other->epoch_seq_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(amount_, other->amount_); } @@ -1535,6 +2786,11 @@ PendingDelegationBalanceEvent::PendingDelegationBalanceEvent(const PendingDelega node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), GetArena()); } + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_epoch_seq().empty()) { + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_epoch_seq(), + GetArena()); + } ::memcpy(&delegation_amount_, &from.delegation_amount_, static_cast(reinterpret_cast(&undelegation_amount_) - reinterpret_cast(&delegation_amount_)) + sizeof(undelegation_amount_)); @@ -1545,6 +2801,7 @@ void PendingDelegationBalanceEvent::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PendingDelegationBalanceEvent_events_2fv1_2fevents_2eproto.base); party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&delegation_amount_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&undelegation_amount_) - @@ -1561,6 +2818,7 @@ void PendingDelegationBalanceEvent::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PendingDelegationBalanceEvent::ArenaDtor(void* object) { @@ -1586,6 +2844,7 @@ void PendingDelegationBalanceEvent::Clear() { party_.ClearToEmpty(); node_id_.ClearToEmpty(); + epoch_seq_.ClearToEmpty(); ::memset(&delegation_amount_, 0, static_cast( reinterpret_cast(&undelegation_amount_) - reinterpret_cast(&delegation_amount_)) + sizeof(undelegation_amount_)); @@ -1631,6 +2890,15 @@ const char* PendingDelegationBalanceEvent::_InternalParse(const char* ptr, ::PRO CHK_(ptr); } else goto handle_unusual; continue; + // string epoch_seq = 5 [json_name = "epochSeq"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_epoch_seq(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.PendingDelegationBalanceEvent.epoch_seq")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1691,6 +2959,16 @@ ::PROTOBUF_NAMESPACE_ID::uint8* PendingDelegationBalanceEvent::_InternalSerializ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_undelegation_amount(), target); } + // string epoch_seq = 5 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_epoch_seq().data(), static_cast(this->_internal_epoch_seq().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.PendingDelegationBalanceEvent.epoch_seq"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_epoch_seq(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1721,6 +2999,13 @@ size_t PendingDelegationBalanceEvent::ByteSizeLong() const { this->_internal_node_id()); } + // string epoch_seq = 5 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_epoch_seq()); + } + // uint64 delegation_amount = 3 [json_name = "delegationAmount"]; if (this->delegation_amount() != 0) { total_size += 1 + @@ -1772,6 +3057,9 @@ void PendingDelegationBalanceEvent::MergeFrom(const PendingDelegationBalanceEven if (from.node_id().size() > 0) { _internal_set_node_id(from._internal_node_id()); } + if (from.epoch_seq().size() > 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); + } if (from.delegation_amount() != 0) { _internal_set_delegation_amount(from._internal_delegation_amount()); } @@ -1803,6 +3091,7 @@ void PendingDelegationBalanceEvent::InternalSwap(PendingDelegationBalanceEvent* _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + epoch_seq_.Swap(&other->epoch_seq_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PendingDelegationBalanceEvent, undelegation_amount_) + sizeof(PendingDelegationBalanceEvent::undelegation_amount_) @@ -5464,9 +6753,14 @@ ValidatorUpdate::ValidatorUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena) ValidatorUpdate::ValidatorUpdate(const ValidatorUpdate& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_pub_key().empty()) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pub_key(), + vega_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_vega_pub_key().empty()) { + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_pub_key(), + GetArena()); + } + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ethereum_address().empty()) { + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ethereum_address(), GetArena()); } tm_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -5489,7 +6783,8 @@ ValidatorUpdate::ValidatorUpdate(const ValidatorUpdate& from) void ValidatorUpdate::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto.base); - pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ethereum_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tm_pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); info_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); country_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -5503,7 +6798,8 @@ ValidatorUpdate::~ValidatorUpdate() { void ValidatorUpdate::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vega_pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ethereum_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tm_pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); info_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); country_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -5530,7 +6826,8 @@ void ValidatorUpdate::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - pub_key_.ClearToEmpty(); + vega_pub_key_.ClearToEmpty(); + ethereum_address_.ClearToEmpty(); tm_pub_key_.ClearToEmpty(); info_url_.ClearToEmpty(); country_.ClearToEmpty(); @@ -5544,36 +6841,45 @@ const char* ValidatorUpdate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string pub_key = 1 [json_name = "pubKey"]; + // string vega_pub_key = 1 [json_name = "vegaPubKey"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_pub_key(); + auto str = _internal_mutable_vega_pub_key(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.pub_key")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.vega_pub_key")); CHK_(ptr); } else goto handle_unusual; continue; - // string tm_pub_key = 2 [json_name = "tmPubKey"]; + // string ethereum_address = 2 [json_name = "ethereumAddress"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_tm_pub_key(); + auto str = _internal_mutable_ethereum_address(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.tm_pub_key")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.ethereum_address")); CHK_(ptr); } else goto handle_unusual; continue; - // string info_url = 3 [json_name = "infoUrl"]; + // string tm_pub_key = 3 [json_name = "tmPubKey"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_info_url(); + auto str = _internal_mutable_tm_pub_key(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.info_url")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.tm_pub_key")); CHK_(ptr); } else goto handle_unusual; continue; - // string country = 4 [json_name = "country"]; + // string info_url = 4 [json_name = "infoUrl"]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_info_url(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.info_url")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string country = 5 [json_name = "country"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { auto str = _internal_mutable_country(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.events.v1.ValidatorUpdate.country")); @@ -5608,44 +6914,54 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ValidatorUpdate::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string pub_key = 1 [json_name = "pubKey"]; - if (this->pub_key().size() > 0) { + // string vega_pub_key = 1 [json_name = "vegaPubKey"]; + if (this->vega_pub_key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vega_pub_key().data(), static_cast(this->_internal_vega_pub_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.events.v1.ValidatorUpdate.vega_pub_key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_vega_pub_key(), target); + } + + // string ethereum_address = 2 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_pub_key().data(), static_cast(this->_internal_pub_key().length()), + this->_internal_ethereum_address().data(), static_cast(this->_internal_ethereum_address().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.events.v1.ValidatorUpdate.pub_key"); + "vega.events.v1.ValidatorUpdate.ethereum_address"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_pub_key(), target); + 2, this->_internal_ethereum_address(), target); } - // string tm_pub_key = 2 [json_name = "tmPubKey"]; + // string tm_pub_key = 3 [json_name = "tmPubKey"]; if (this->tm_pub_key().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_tm_pub_key().data(), static_cast(this->_internal_tm_pub_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "vega.events.v1.ValidatorUpdate.tm_pub_key"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_tm_pub_key(), target); + 3, this->_internal_tm_pub_key(), target); } - // string info_url = 3 [json_name = "infoUrl"]; + // string info_url = 4 [json_name = "infoUrl"]; if (this->info_url().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_info_url().data(), static_cast(this->_internal_info_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "vega.events.v1.ValidatorUpdate.info_url"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_info_url(), target); + 4, this->_internal_info_url(), target); } - // string country = 4 [json_name = "country"]; + // string country = 5 [json_name = "country"]; if (this->country().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_country().data(), static_cast(this->_internal_country().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "vega.events.v1.ValidatorUpdate.country"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_country(), target); + 5, this->_internal_country(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -5664,28 +6980,35 @@ size_t ValidatorUpdate::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string pub_key = 1 [json_name = "pubKey"]; - if (this->pub_key().size() > 0) { + // string vega_pub_key = 1 [json_name = "vegaPubKey"]; + if (this->vega_pub_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vega_pub_key()); + } + + // string ethereum_address = 2 [json_name = "ethereumAddress"]; + if (this->ethereum_address().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_pub_key()); + this->_internal_ethereum_address()); } - // string tm_pub_key = 2 [json_name = "tmPubKey"]; + // string tm_pub_key = 3 [json_name = "tmPubKey"]; if (this->tm_pub_key().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_tm_pub_key()); } - // string info_url = 3 [json_name = "infoUrl"]; + // string info_url = 4 [json_name = "infoUrl"]; if (this->info_url().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_info_url()); } - // string country = 4 [json_name = "country"]; + // string country = 5 [json_name = "country"]; if (this->country().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -5723,8 +7046,11 @@ void ValidatorUpdate::MergeFrom(const ValidatorUpdate& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.pub_key().size() > 0) { - _internal_set_pub_key(from._internal_pub_key()); + if (from.vega_pub_key().size() > 0) { + _internal_set_vega_pub_key(from._internal_vega_pub_key()); + } + if (from.ethereum_address().size() > 0) { + _internal_set_ethereum_address(from._internal_ethereum_address()); } if (from.tm_pub_key().size() > 0) { _internal_set_tm_pub_key(from._internal_tm_pub_key()); @@ -5758,7 +7084,8 @@ bool ValidatorUpdate::IsInitialized() const { void ValidatorUpdate::InternalSwap(ValidatorUpdate* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - pub_key_.Swap(&other->pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vega_pub_key_.Swap(&other->vega_pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ethereum_address_.Swap(&other->ethereum_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); tm_pub_key_.Swap(&other->tm_pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); info_url_.Swap(&other->info_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); country_.Swap(&other->country_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -5801,10 +7128,12 @@ class BusEvent::_Internal { static const ::oracles::v1::OracleSpec& oracle_spec(const BusEvent* msg); static const ::oracles::v1::OracleData& oracle_data(const BusEvent* msg); static const ::vega::events::v1::DelegationBalanceEvent& delegation_balance(const BusEvent* msg); - static const ::vega::events::v1::PendingDelegationBalanceEvent& pending_delegation_balance(const BusEvent* msg); + static const ::vega::events::v1::ValidatorScoreEvent& validator_score(const BusEvent* msg); static const ::vega::events::v1::EpochEvent& epoch_event(const BusEvent* msg); static const ::vega::events::v1::ValidatorUpdate& validator_update(const BusEvent* msg); - static const ::vega::events::v1::StakingEvent& staking_event(const BusEvent* msg); + static const ::vega::events::v1::StakeLinking& stake_linking(const BusEvent* msg); + static const ::vega::events::v1::RewardPayoutEvent& reward_payout(const BusEvent* msg); + static const ::vega::events::v1::CheckpointEvent& checkpoint(const BusEvent* msg); static const ::vega::events::v1::MarketEvent& market(const BusEvent* msg); static const ::vega::events::v1::TxErrorEvent& tx_err_event(const BusEvent* msg); }; @@ -5921,9 +7250,9 @@ const ::vega::events::v1::DelegationBalanceEvent& BusEvent::_Internal::delegation_balance(const BusEvent* msg) { return *msg->event_.delegation_balance_; } -const ::vega::events::v1::PendingDelegationBalanceEvent& -BusEvent::_Internal::pending_delegation_balance(const BusEvent* msg) { - return *msg->event_.pending_delegation_balance_; +const ::vega::events::v1::ValidatorScoreEvent& +BusEvent::_Internal::validator_score(const BusEvent* msg) { + return *msg->event_.validator_score_; } const ::vega::events::v1::EpochEvent& BusEvent::_Internal::epoch_event(const BusEvent* msg) { @@ -5933,9 +7262,17 @@ const ::vega::events::v1::ValidatorUpdate& BusEvent::_Internal::validator_update(const BusEvent* msg) { return *msg->event_.validator_update_; } -const ::vega::events::v1::StakingEvent& -BusEvent::_Internal::staking_event(const BusEvent* msg) { - return *msg->event_.staking_event_; +const ::vega::events::v1::StakeLinking& +BusEvent::_Internal::stake_linking(const BusEvent* msg) { + return *msg->event_.stake_linking_; +} +const ::vega::events::v1::RewardPayoutEvent& +BusEvent::_Internal::reward_payout(const BusEvent* msg) { + return *msg->event_.reward_payout_; +} +const ::vega::events::v1::CheckpointEvent& +BusEvent::_Internal::checkpoint(const BusEvent* msg) { + return *msg->event_.checkpoint_; } const ::vega::events::v1::MarketEvent& BusEvent::_Internal::market(const BusEvent* msg) { @@ -6517,20 +7854,20 @@ void BusEvent::set_allocated_delegation_balance(::vega::events::v1::DelegationBa } // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.delegation_balance) } -void BusEvent::set_allocated_pending_delegation_balance(::vega::events::v1::PendingDelegationBalanceEvent* pending_delegation_balance) { +void BusEvent::set_allocated_validator_score(::vega::events::v1::ValidatorScoreEvent* validator_score) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_event(); - if (pending_delegation_balance) { + if (validator_score) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pending_delegation_balance); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(validator_score); if (message_arena != submessage_arena) { - pending_delegation_balance = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pending_delegation_balance, submessage_arena); + validator_score = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, validator_score, submessage_arena); } - set_has_pending_delegation_balance(); - event_.pending_delegation_balance_ = pending_delegation_balance; + set_has_validator_score(); + event_.validator_score_ = validator_score; } - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.pending_delegation_balance) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.validator_score) } void BusEvent::set_allocated_epoch_event(::vega::events::v1::EpochEvent* epoch_event) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); @@ -6562,20 +7899,50 @@ void BusEvent::set_allocated_validator_update(::vega::events::v1::ValidatorUpdat } // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.validator_update) } -void BusEvent::set_allocated_staking_event(::vega::events::v1::StakingEvent* staking_event) { +void BusEvent::set_allocated_stake_linking(::vega::events::v1::StakeLinking* stake_linking) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_event(); + if (stake_linking) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stake_linking); + if (message_arena != submessage_arena) { + stake_linking = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stake_linking, submessage_arena); + } + set_has_stake_linking(); + event_.stake_linking_ = stake_linking; + } + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.stake_linking) +} +void BusEvent::set_allocated_reward_payout(::vega::events::v1::RewardPayoutEvent* reward_payout) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_event(); + if (reward_payout) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(reward_payout); + if (message_arena != submessage_arena) { + reward_payout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reward_payout, submessage_arena); + } + set_has_reward_payout(); + event_.reward_payout_ = reward_payout; + } + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.reward_payout) +} +void BusEvent::set_allocated_checkpoint(::vega::events::v1::CheckpointEvent* checkpoint) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_event(); - if (staking_event) { + if (checkpoint) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(staking_event); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(checkpoint); if (message_arena != submessage_arena) { - staking_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, staking_event, submessage_arena); + checkpoint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, checkpoint, submessage_arena); } - set_has_staking_event(); - event_.staking_event_ = staking_event; + set_has_checkpoint(); + event_.checkpoint_ = checkpoint; } - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.staking_event) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.BusEvent.checkpoint) } void BusEvent::set_allocated_market(::vega::events::v1::MarketEvent* market) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); @@ -6741,8 +8108,8 @@ BusEvent::BusEvent(const BusEvent& from) _internal_mutable_delegation_balance()->::vega::events::v1::DelegationBalanceEvent::MergeFrom(from._internal_delegation_balance()); break; } - case kPendingDelegationBalance: { - _internal_mutable_pending_delegation_balance()->::vega::events::v1::PendingDelegationBalanceEvent::MergeFrom(from._internal_pending_delegation_balance()); + case kValidatorScore: { + _internal_mutable_validator_score()->::vega::events::v1::ValidatorScoreEvent::MergeFrom(from._internal_validator_score()); break; } case kEpochEvent: { @@ -6753,8 +8120,16 @@ BusEvent::BusEvent(const BusEvent& from) _internal_mutable_validator_update()->::vega::events::v1::ValidatorUpdate::MergeFrom(from._internal_validator_update()); break; } - case kStakingEvent: { - _internal_mutable_staking_event()->::vega::events::v1::StakingEvent::MergeFrom(from._internal_staking_event()); + case kStakeLinking: { + _internal_mutable_stake_linking()->::vega::events::v1::StakeLinking::MergeFrom(from._internal_stake_linking()); + break; + } + case kRewardPayout: { + _internal_mutable_reward_payout()->::vega::events::v1::RewardPayoutEvent::MergeFrom(from._internal_reward_payout()); + break; + } + case kCheckpoint: { + _internal_mutable_checkpoint()->::vega::events::v1::CheckpointEvent::MergeFrom(from._internal_checkpoint()); break; } case kMarket: { @@ -6981,9 +8356,9 @@ void BusEvent::clear_event() { } break; } - case kPendingDelegationBalance: { + case kValidatorScore: { if (GetArena() == nullptr) { - delete event_.pending_delegation_balance_; + delete event_.validator_score_; } break; } @@ -6999,9 +8374,21 @@ void BusEvent::clear_event() { } break; } - case kStakingEvent: { + case kStakeLinking: { + if (GetArena() == nullptr) { + delete event_.stake_linking_; + } + break; + } + case kRewardPayout: { + if (GetArena() == nullptr) { + delete event_.reward_payout_; + } + break; + } + case kCheckpoint: { if (GetArena() == nullptr) { - delete event_.staking_event_; + delete event_.checkpoint_; } break; } @@ -7267,10 +8654,10 @@ const char* BusEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); } else goto handle_unusual; continue; - // .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + // .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; case 130: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pending_delegation_balance(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_validator_score(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -7288,10 +8675,24 @@ const char* BusEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); } else goto handle_unusual; continue; - // .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + // .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; case 133: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_staking_event(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_stake_linking(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + case 134: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_reward_payout(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + case 135: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_checkpoint(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -7588,12 +8989,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* BusEvent::_InternalSerialize( 129, _Internal::delegation_balance(this), target, stream); } - // .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - if (_internal_has_pending_delegation_balance()) { + // .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + if (_internal_has_validator_score()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 130, _Internal::pending_delegation_balance(this), target, stream); + 130, _Internal::validator_score(this), target, stream); } // .vega.events.v1.EpochEvent epoch_event = 131 [json_name = "epochEvent"]; @@ -7612,12 +9013,28 @@ ::PROTOBUF_NAMESPACE_ID::uint8* BusEvent::_InternalSerialize( 132, _Internal::validator_update(this), target, stream); } - // .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - if (_internal_has_staking_event()) { + // .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + if (_internal_has_stake_linking()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 133, _Internal::stake_linking(this), target, stream); + } + + // .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + if (_internal_has_reward_payout()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 134, _Internal::reward_payout(this), target, stream); + } + + // .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + if (_internal_has_checkpoint()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 133, _Internal::staking_event(this), target, stream); + 135, _Internal::checkpoint(this), target, stream); } // .vega.events.v1.MarketEvent market = 1001 [json_name = "market"]; @@ -7869,11 +9286,11 @@ size_t BusEvent::ByteSizeLong() const { *event_.delegation_balance_); break; } - // .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - case kPendingDelegationBalance: { + // .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + case kValidatorScore: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *event_.pending_delegation_balance_); + *event_.validator_score_); break; } // .vega.events.v1.EpochEvent epoch_event = 131 [json_name = "epochEvent"]; @@ -7890,11 +9307,25 @@ size_t BusEvent::ByteSizeLong() const { *event_.validator_update_); break; } - // .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - case kStakingEvent: { + // .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + case kStakeLinking: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *event_.stake_linking_); + break; + } + // .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + case kRewardPayout: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *event_.reward_payout_); + break; + } + // .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + case kCheckpoint: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *event_.staking_event_); + *event_.checkpoint_); break; } // .vega.events.v1.MarketEvent market = 1001 [json_name = "market"]; @@ -8068,8 +9499,8 @@ void BusEvent::MergeFrom(const BusEvent& from) { _internal_mutable_delegation_balance()->::vega::events::v1::DelegationBalanceEvent::MergeFrom(from._internal_delegation_balance()); break; } - case kPendingDelegationBalance: { - _internal_mutable_pending_delegation_balance()->::vega::events::v1::PendingDelegationBalanceEvent::MergeFrom(from._internal_pending_delegation_balance()); + case kValidatorScore: { + _internal_mutable_validator_score()->::vega::events::v1::ValidatorScoreEvent::MergeFrom(from._internal_validator_score()); break; } case kEpochEvent: { @@ -8080,8 +9511,16 @@ void BusEvent::MergeFrom(const BusEvent& from) { _internal_mutable_validator_update()->::vega::events::v1::ValidatorUpdate::MergeFrom(from._internal_validator_update()); break; } - case kStakingEvent: { - _internal_mutable_staking_event()->::vega::events::v1::StakingEvent::MergeFrom(from._internal_staking_event()); + case kStakeLinking: { + _internal_mutable_stake_linking()->::vega::events::v1::StakeLinking::MergeFrom(from._internal_stake_linking()); + break; + } + case kRewardPayout: { + _internal_mutable_reward_payout()->::vega::events::v1::RewardPayoutEvent::MergeFrom(from._internal_reward_payout()); + break; + } + case kCheckpoint: { + _internal_mutable_checkpoint()->::vega::events::v1::CheckpointEvent::MergeFrom(from._internal_checkpoint()); break; } case kMarket: { @@ -8136,8 +9575,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata BusEvent::GetMetadata() const { } // namespace events } // namespace vega PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::vega::events::v1::StakingEvent* Arena::CreateMaybeMessage< ::vega::events::v1::StakingEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::events::v1::StakingEvent >(arena); +template<> PROTOBUF_NOINLINE ::vega::events::v1::StakeLinking* Arena::CreateMaybeMessage< ::vega::events::v1::StakeLinking >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::events::v1::StakeLinking >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::events::v1::CheckpointEvent* Arena::CreateMaybeMessage< ::vega::events::v1::CheckpointEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::events::v1::CheckpointEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::events::v1::RewardPayoutEvent* Arena::CreateMaybeMessage< ::vega::events::v1::RewardPayoutEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::events::v1::RewardPayoutEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::events::v1::ValidatorScoreEvent* Arena::CreateMaybeMessage< ::vega::events::v1::ValidatorScoreEvent >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::events::v1::ValidatorScoreEvent >(arena); } template<> PROTOBUF_NOINLINE ::vega::events::v1::DelegationBalanceEvent* Arena::CreateMaybeMessage< ::vega::events::v1::DelegationBalanceEvent >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::events::v1::DelegationBalanceEvent >(arena); diff --git a/grpc/clients/cpp/generated/events/v1/events.pb.h b/grpc/clients/cpp/generated/events/v1/events.pb.h index 7c0999b2..52d5d5a3 100644 --- a/grpc/clients/cpp/generated/events/v1/events.pb.h +++ b/grpc/clients/cpp/generated/events/v1/events.pb.h @@ -55,7 +55,7 @@ struct TableStruct_events_2fv1_2fevents_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[17] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[20] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -71,6 +71,9 @@ extern AuctionEventDefaultTypeInternal _AuctionEvent_default_instance_; class BusEvent; class BusEventDefaultTypeInternal; extern BusEventDefaultTypeInternal _BusEvent_default_instance_; +class CheckpointEvent; +class CheckpointEventDefaultTypeInternal; +extern CheckpointEventDefaultTypeInternal _CheckpointEvent_default_instance_; class DelegationBalanceEvent; class DelegationBalanceEventDefaultTypeInternal; extern DelegationBalanceEventDefaultTypeInternal _DelegationBalanceEvent_default_instance_; @@ -92,15 +95,18 @@ extern PendingDelegationBalanceEventDefaultTypeInternal _PendingDelegationBalanc class PositionResolution; class PositionResolutionDefaultTypeInternal; extern PositionResolutionDefaultTypeInternal _PositionResolution_default_instance_; +class RewardPayoutEvent; +class RewardPayoutEventDefaultTypeInternal; +extern RewardPayoutEventDefaultTypeInternal _RewardPayoutEvent_default_instance_; class SettleDistressed; class SettleDistressedDefaultTypeInternal; extern SettleDistressedDefaultTypeInternal _SettleDistressed_default_instance_; class SettlePosition; class SettlePositionDefaultTypeInternal; extern SettlePositionDefaultTypeInternal _SettlePosition_default_instance_; -class StakingEvent; -class StakingEventDefaultTypeInternal; -extern StakingEventDefaultTypeInternal _StakingEvent_default_instance_; +class StakeLinking; +class StakeLinkingDefaultTypeInternal; +extern StakeLinkingDefaultTypeInternal _StakeLinking_default_instance_; class TimeUpdate; class TimeUpdateDefaultTypeInternal; extern TimeUpdateDefaultTypeInternal _TimeUpdate_default_instance_; @@ -113,6 +119,9 @@ extern TransferResponsesDefaultTypeInternal _TransferResponses_default_instance_ class TxErrorEvent; class TxErrorEventDefaultTypeInternal; extern TxErrorEventDefaultTypeInternal _TxErrorEvent_default_instance_; +class ValidatorScoreEvent; +class ValidatorScoreEventDefaultTypeInternal; +extern ValidatorScoreEventDefaultTypeInternal _ValidatorScoreEvent_default_instance_; class ValidatorUpdate; class ValidatorUpdateDefaultTypeInternal; extern ValidatorUpdateDefaultTypeInternal _ValidatorUpdate_default_instance_; @@ -122,6 +131,7 @@ extern ValidatorUpdateDefaultTypeInternal _ValidatorUpdate_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::vega::events::v1::AuctionEvent* Arena::CreateMaybeMessage<::vega::events::v1::AuctionEvent>(Arena*); template<> ::vega::events::v1::BusEvent* Arena::CreateMaybeMessage<::vega::events::v1::BusEvent>(Arena*); +template<> ::vega::events::v1::CheckpointEvent* Arena::CreateMaybeMessage<::vega::events::v1::CheckpointEvent>(Arena*); template<> ::vega::events::v1::DelegationBalanceEvent* Arena::CreateMaybeMessage<::vega::events::v1::DelegationBalanceEvent>(Arena*); template<> ::vega::events::v1::EpochEvent* Arena::CreateMaybeMessage<::vega::events::v1::EpochEvent>(Arena*); template<> ::vega::events::v1::LossSocialization* Arena::CreateMaybeMessage<::vega::events::v1::LossSocialization>(Arena*); @@ -129,44 +139,73 @@ template<> ::vega::events::v1::MarketEvent* Arena::CreateMaybeMessage<::vega::ev template<> ::vega::events::v1::MarketTick* Arena::CreateMaybeMessage<::vega::events::v1::MarketTick>(Arena*); template<> ::vega::events::v1::PendingDelegationBalanceEvent* Arena::CreateMaybeMessage<::vega::events::v1::PendingDelegationBalanceEvent>(Arena*); template<> ::vega::events::v1::PositionResolution* Arena::CreateMaybeMessage<::vega::events::v1::PositionResolution>(Arena*); +template<> ::vega::events::v1::RewardPayoutEvent* Arena::CreateMaybeMessage<::vega::events::v1::RewardPayoutEvent>(Arena*); template<> ::vega::events::v1::SettleDistressed* Arena::CreateMaybeMessage<::vega::events::v1::SettleDistressed>(Arena*); template<> ::vega::events::v1::SettlePosition* Arena::CreateMaybeMessage<::vega::events::v1::SettlePosition>(Arena*); -template<> ::vega::events::v1::StakingEvent* Arena::CreateMaybeMessage<::vega::events::v1::StakingEvent>(Arena*); +template<> ::vega::events::v1::StakeLinking* Arena::CreateMaybeMessage<::vega::events::v1::StakeLinking>(Arena*); template<> ::vega::events::v1::TimeUpdate* Arena::CreateMaybeMessage<::vega::events::v1::TimeUpdate>(Arena*); template<> ::vega::events::v1::TradeSettlement* Arena::CreateMaybeMessage<::vega::events::v1::TradeSettlement>(Arena*); template<> ::vega::events::v1::TransferResponses* Arena::CreateMaybeMessage<::vega::events::v1::TransferResponses>(Arena*); template<> ::vega::events::v1::TxErrorEvent* Arena::CreateMaybeMessage<::vega::events::v1::TxErrorEvent>(Arena*); +template<> ::vega::events::v1::ValidatorScoreEvent* Arena::CreateMaybeMessage<::vega::events::v1::ValidatorScoreEvent>(Arena*); template<> ::vega::events::v1::ValidatorUpdate* Arena::CreateMaybeMessage<::vega::events::v1::ValidatorUpdate>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace vega { namespace events { namespace v1 { -enum StakingEvent_Type : int { - StakingEvent_Type_TYPE_UNSPECIFIED = 0, - StakingEvent_Type_TYPE_DEPOSIT = 1, - StakingEvent_Type_TYPE_REMOVE = 2, - StakingEvent_Type_StakingEvent_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - StakingEvent_Type_StakingEvent_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +enum StakeLinking_Type : int { + StakeLinking_Type_TYPE_UNSPECIFIED = 0, + StakeLinking_Type_TYPE_LINK = 1, + StakeLinking_Type_TYPE_UNLINK = 2, + StakeLinking_Type_StakeLinking_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + StakeLinking_Type_StakeLinking_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; -bool StakingEvent_Type_IsValid(int value); -constexpr StakingEvent_Type StakingEvent_Type_Type_MIN = StakingEvent_Type_TYPE_UNSPECIFIED; -constexpr StakingEvent_Type StakingEvent_Type_Type_MAX = StakingEvent_Type_TYPE_REMOVE; -constexpr int StakingEvent_Type_Type_ARRAYSIZE = StakingEvent_Type_Type_MAX + 1; +bool StakeLinking_Type_IsValid(int value); +constexpr StakeLinking_Type StakeLinking_Type_Type_MIN = StakeLinking_Type_TYPE_UNSPECIFIED; +constexpr StakeLinking_Type StakeLinking_Type_Type_MAX = StakeLinking_Type_TYPE_UNLINK; +constexpr int StakeLinking_Type_Type_ARRAYSIZE = StakeLinking_Type_Type_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakingEvent_Type_descriptor(); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakeLinking_Type_descriptor(); template -inline const std::string& StakingEvent_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || +inline const std::string& StakeLinking_Type_Name(T enum_t_value) { + static_assert(::std::is_same::value || ::std::is_integral::value, - "Incorrect type passed to function StakingEvent_Type_Name."); + "Incorrect type passed to function StakeLinking_Type_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - StakingEvent_Type_descriptor(), enum_t_value); + StakeLinking_Type_descriptor(), enum_t_value); +} +inline bool StakeLinking_Type_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StakeLinking_Type* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + StakeLinking_Type_descriptor(), name, value); +} +enum StakeLinking_Status : int { + StakeLinking_Status_STATUS_UNSPECIFIED = 0, + StakeLinking_Status_STATUS_PENDING = 1, + StakeLinking_Status_STATUS_ACCEPTED = 2, + StakeLinking_Status_STATUS_REJECTED = 3, + StakeLinking_Status_StakeLinking_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + StakeLinking_Status_StakeLinking_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool StakeLinking_Status_IsValid(int value); +constexpr StakeLinking_Status StakeLinking_Status_Status_MIN = StakeLinking_Status_STATUS_UNSPECIFIED; +constexpr StakeLinking_Status StakeLinking_Status_Status_MAX = StakeLinking_Status_STATUS_REJECTED; +constexpr int StakeLinking_Status_Status_ARRAYSIZE = StakeLinking_Status_Status_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StakeLinking_Status_descriptor(); +template +inline const std::string& StakeLinking_Status_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function StakeLinking_Status_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + StakeLinking_Status_descriptor(), enum_t_value); } -inline bool StakingEvent_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StakingEvent_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - StakingEvent_Type_descriptor(), name, value); +inline bool StakeLinking_Status_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StakeLinking_Status* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + StakeLinking_Status_descriptor(), name, value); } enum BusEventType : int { BUS_EVENT_TYPE_UNSPECIFIED = 0, @@ -199,10 +238,12 @@ enum BusEventType : int { BUS_EVENT_TYPE_ORACLE_SPEC = 27, BUS_EVENT_TYPE_ORACLE_DATA = 28, BUS_EVENT_TYPE_DELEGATION_BALANCE = 29, - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE = 30, + BUS_EVENT_TYPE_VALIDATOR_SCORE = 30, BUS_EVENT_TYPE_EPOCH_UPDATE = 31, BUS_EVENT_TYPE_VALIDATOR_UPDATE = 32, - BUS_EVENT_TYPE_STAKING_EVENT = 33, + BUS_EVENT_TYPE_STAKE_LINKING = 33, + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34, + BUS_EVENT_TYPE_CHECKPOINT = 35, BUS_EVENT_TYPE_MARKET = 101, BUS_EVENT_TYPE_TX_ERROR = 201, BusEventType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), @@ -229,23 +270,23 @@ inline bool BusEventType_Parse( } // =================================================================== -class StakingEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.StakingEvent) */ { +class StakeLinking PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.StakeLinking) */ { public: - inline StakingEvent() : StakingEvent(nullptr) {} - virtual ~StakingEvent(); + inline StakeLinking() : StakeLinking(nullptr) {} + virtual ~StakeLinking(); - StakingEvent(const StakingEvent& from); - StakingEvent(StakingEvent&& from) noexcept - : StakingEvent() { + StakeLinking(const StakeLinking& from); + StakeLinking(StakeLinking&& from) noexcept + : StakeLinking() { *this = ::std::move(from); } - inline StakingEvent& operator=(const StakingEvent& from) { + inline StakeLinking& operator=(const StakeLinking& from) { CopyFrom(from); return *this; } - inline StakingEvent& operator=(StakingEvent&& from) noexcept { + inline StakeLinking& operator=(StakeLinking&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -263,19 +304,19 @@ class StakingEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const StakingEvent& default_instance(); + static const StakeLinking& default_instance(); - static inline const StakingEvent* internal_default_instance() { - return reinterpret_cast( - &_StakingEvent_default_instance_); + static inline const StakeLinking* internal_default_instance() { + return reinterpret_cast( + &_StakeLinking_default_instance_); } static constexpr int kIndexInFileMessages = 0; - friend void swap(StakingEvent& a, StakingEvent& b) { + friend void swap(StakeLinking& a, StakeLinking& b) { a.Swap(&b); } - inline void Swap(StakingEvent* other) { + inline void Swap(StakeLinking* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -283,7 +324,7 @@ class StakingEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StakingEvent* other) { + void UnsafeArenaSwap(StakeLinking* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -291,17 +332,17 @@ class StakingEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline StakingEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline StakeLinking* New() const final { + return CreateMaybeMessage(nullptr); } - StakingEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + StakeLinking* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const StakingEvent& from); - void MergeFrom(const StakingEvent& from); + void CopyFrom(const StakeLinking& from); + void MergeFrom(const StakeLinking& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -315,13 +356,13 @@ class StakingEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(StakingEvent* other); + void InternalSwap(StakeLinking* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.StakingEvent"; + return "vega.events.v1.StakeLinking"; } protected: - explicit StakingEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StakeLinking(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -338,36 +379,70 @@ class StakingEvent PROTOBUF_FINAL : // nested types ---------------------------------------------------- - typedef StakingEvent_Type Type; + typedef StakeLinking_Type Type; static constexpr Type TYPE_UNSPECIFIED = - StakingEvent_Type_TYPE_UNSPECIFIED; - static constexpr Type TYPE_DEPOSIT = - StakingEvent_Type_TYPE_DEPOSIT; - static constexpr Type TYPE_REMOVE = - StakingEvent_Type_TYPE_REMOVE; + StakeLinking_Type_TYPE_UNSPECIFIED; + static constexpr Type TYPE_LINK = + StakeLinking_Type_TYPE_LINK; + static constexpr Type TYPE_UNLINK = + StakeLinking_Type_TYPE_UNLINK; static inline bool Type_IsValid(int value) { - return StakingEvent_Type_IsValid(value); + return StakeLinking_Type_IsValid(value); } static constexpr Type Type_MIN = - StakingEvent_Type_Type_MIN; + StakeLinking_Type_Type_MIN; static constexpr Type Type_MAX = - StakingEvent_Type_Type_MAX; + StakeLinking_Type_Type_MAX; static constexpr int Type_ARRAYSIZE = - StakingEvent_Type_Type_ARRAYSIZE; + StakeLinking_Type_Type_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_descriptor() { - return StakingEvent_Type_descriptor(); + return StakeLinking_Type_descriptor(); } template static inline const std::string& Type_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Type_Name."); - return StakingEvent_Type_Name(enum_t_value); + return StakeLinking_Type_Name(enum_t_value); } static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type* value) { - return StakingEvent_Type_Parse(name, value); + return StakeLinking_Type_Parse(name, value); + } + + typedef StakeLinking_Status Status; + static constexpr Status STATUS_UNSPECIFIED = + StakeLinking_Status_STATUS_UNSPECIFIED; + static constexpr Status STATUS_PENDING = + StakeLinking_Status_STATUS_PENDING; + static constexpr Status STATUS_ACCEPTED = + StakeLinking_Status_STATUS_ACCEPTED; + static constexpr Status STATUS_REJECTED = + StakeLinking_Status_STATUS_REJECTED; + static inline bool Status_IsValid(int value) { + return StakeLinking_Status_IsValid(value); + } + static constexpr Status Status_MIN = + StakeLinking_Status_Status_MIN; + static constexpr Status Status_MAX = + StakeLinking_Status_Status_MAX; + static constexpr int Status_ARRAYSIZE = + StakeLinking_Status_Status_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Status_descriptor() { + return StakeLinking_Status_descriptor(); + } + template + static inline const std::string& Status_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Status_Name."); + return StakeLinking_Status_Name(enum_t_value); + } + static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Status* value) { + return StakeLinking_Status_Parse(name, value); } // accessors ------------------------------------------------------- @@ -376,8 +451,11 @@ class StakingEvent PROTOBUF_FINAL : kIdFieldNumber = 1, kPartyFieldNumber = 4, kAmountFieldNumber = 5, + kTxHashFieldNumber = 8, kTsFieldNumber = 3, kTypeFieldNumber = 2, + kStatusFieldNumber = 6, + kFinalizedAtFieldNumber = 7, }; // string id = 1 [json_name = "id"]; void clear_id(); @@ -427,6 +505,22 @@ class StakingEvent PROTOBUF_FINAL : std::string* _internal_mutable_amount(); public: + // string tx_hash = 8 [json_name = "txHash"]; + void clear_tx_hash(); + const std::string& tx_hash() const; + void set_tx_hash(const std::string& value); + void set_tx_hash(std::string&& value); + void set_tx_hash(const char* value); + void set_tx_hash(const char* value, size_t size); + std::string* mutable_tx_hash(); + std::string* release_tx_hash(); + void set_allocated_tx_hash(std::string* tx_hash); + private: + const std::string& _internal_tx_hash() const; + void _internal_set_tx_hash(const std::string& value); + std::string* _internal_mutable_tx_hash(); + public: + // int64 ts = 3 [json_name = "ts"]; void clear_ts(); ::PROTOBUF_NAMESPACE_ID::int64 ts() const; @@ -436,16 +530,34 @@ class StakingEvent PROTOBUF_FINAL : void _internal_set_ts(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + // .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; void clear_type(); - ::vega::events::v1::StakingEvent_Type type() const; - void set_type(::vega::events::v1::StakingEvent_Type value); + ::vega::events::v1::StakeLinking_Type type() const; + void set_type(::vega::events::v1::StakeLinking_Type value); + private: + ::vega::events::v1::StakeLinking_Type _internal_type() const; + void _internal_set_type(::vega::events::v1::StakeLinking_Type value); + public: + + // .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + void clear_status(); + ::vega::events::v1::StakeLinking_Status status() const; + void set_status(::vega::events::v1::StakeLinking_Status value); private: - ::vega::events::v1::StakingEvent_Type _internal_type() const; - void _internal_set_type(::vega::events::v1::StakingEvent_Type value); + ::vega::events::v1::StakeLinking_Status _internal_status() const; + void _internal_set_status(::vega::events::v1::StakeLinking_Status value); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.StakingEvent) + // int64 finalized_at = 7 [json_name = "finalizedAt"]; + void clear_finalized_at(); + ::PROTOBUF_NAMESPACE_ID::int64 finalized_at() const; + void set_finalized_at(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_finalized_at() const; + void _internal_set_finalized_at(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.StakeLinking) private: class _Internal; @@ -455,30 +567,33 @@ class StakingEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tx_hash_; ::PROTOBUF_NAMESPACE_ID::int64 ts_; int type_; + int status_; + ::PROTOBUF_NAMESPACE_ID::int64 finalized_at_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class DelegationBalanceEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.DelegationBalanceEvent) */ { +class CheckpointEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.CheckpointEvent) */ { public: - inline DelegationBalanceEvent() : DelegationBalanceEvent(nullptr) {} - virtual ~DelegationBalanceEvent(); + inline CheckpointEvent() : CheckpointEvent(nullptr) {} + virtual ~CheckpointEvent(); - DelegationBalanceEvent(const DelegationBalanceEvent& from); - DelegationBalanceEvent(DelegationBalanceEvent&& from) noexcept - : DelegationBalanceEvent() { + CheckpointEvent(const CheckpointEvent& from); + CheckpointEvent(CheckpointEvent&& from) noexcept + : CheckpointEvent() { *this = ::std::move(from); } - inline DelegationBalanceEvent& operator=(const DelegationBalanceEvent& from) { + inline CheckpointEvent& operator=(const CheckpointEvent& from) { CopyFrom(from); return *this; } - inline DelegationBalanceEvent& operator=(DelegationBalanceEvent&& from) noexcept { + inline CheckpointEvent& operator=(CheckpointEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -496,19 +611,19 @@ class DelegationBalanceEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const DelegationBalanceEvent& default_instance(); + static const CheckpointEvent& default_instance(); - static inline const DelegationBalanceEvent* internal_default_instance() { - return reinterpret_cast( - &_DelegationBalanceEvent_default_instance_); + static inline const CheckpointEvent* internal_default_instance() { + return reinterpret_cast( + &_CheckpointEvent_default_instance_); } static constexpr int kIndexInFileMessages = 1; - friend void swap(DelegationBalanceEvent& a, DelegationBalanceEvent& b) { + friend void swap(CheckpointEvent& a, CheckpointEvent& b) { a.Swap(&b); } - inline void Swap(DelegationBalanceEvent* other) { + inline void Swap(CheckpointEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -516,7 +631,7 @@ class DelegationBalanceEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DelegationBalanceEvent* other) { + void UnsafeArenaSwap(CheckpointEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -524,17 +639,17 @@ class DelegationBalanceEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline DelegationBalanceEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline CheckpointEvent* New() const final { + return CreateMaybeMessage(nullptr); } - DelegationBalanceEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + CheckpointEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const DelegationBalanceEvent& from); - void MergeFrom(const DelegationBalanceEvent& from); + void CopyFrom(const CheckpointEvent& from); + void MergeFrom(const CheckpointEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -548,13 +663,13 @@ class DelegationBalanceEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DelegationBalanceEvent* other); + void InternalSwap(CheckpointEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.DelegationBalanceEvent"; + return "vega.events.v1.CheckpointEvent"; } protected: - explicit DelegationBalanceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CheckpointEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -574,83 +689,83 @@ class DelegationBalanceEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPartyFieldNumber = 1, - kNodeIdFieldNumber = 2, - kAmountFieldNumber = 3, + kHashFieldNumber = 1, + kBlockHashFieldNumber = 2, + kBlockHeightFieldNumber = 3, }; - // string party = 1 [json_name = "party"]; - void clear_party(); - const std::string& party() const; - void set_party(const std::string& value); - void set_party(std::string&& value); - void set_party(const char* value); - void set_party(const char* value, size_t size); - std::string* mutable_party(); - std::string* release_party(); - void set_allocated_party(std::string* party); - private: - const std::string& _internal_party() const; - void _internal_set_party(const std::string& value); - std::string* _internal_mutable_party(); - public: - - // string node_id = 2 [json_name = "nodeId"]; - void clear_node_id(); - const std::string& node_id() const; - void set_node_id(const std::string& value); - void set_node_id(std::string&& value); - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - std::string* mutable_node_id(); - std::string* release_node_id(); - void set_allocated_node_id(std::string* node_id); - private: - const std::string& _internal_node_id() const; - void _internal_set_node_id(const std::string& value); - std::string* _internal_mutable_node_id(); - public: - - // uint64 amount = 3 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:vega.events.v1.DelegationBalanceEvent) + // string hash = 1 [json_name = "hash"]; + void clear_hash(); + const std::string& hash() const; + void set_hash(const std::string& value); + void set_hash(std::string&& value); + void set_hash(const char* value); + void set_hash(const char* value, size_t size); + std::string* mutable_hash(); + std::string* release_hash(); + void set_allocated_hash(std::string* hash); + private: + const std::string& _internal_hash() const; + void _internal_set_hash(const std::string& value); + std::string* _internal_mutable_hash(); + public: + + // string block_hash = 2 [json_name = "blockHash"]; + void clear_block_hash(); + const std::string& block_hash() const; + void set_block_hash(const std::string& value); + void set_block_hash(std::string&& value); + void set_block_hash(const char* value); + void set_block_hash(const char* value, size_t size); + std::string* mutable_block_hash(); + std::string* release_block_hash(); + void set_allocated_block_hash(std::string* block_hash); + private: + const std::string& _internal_block_hash() const; + void _internal_set_block_hash(const std::string& value); + std::string* _internal_mutable_block_hash(); + public: + + // uint64 block_height = 3 [json_name = "blockHeight"]; + void clear_block_height(); + ::PROTOBUF_NAMESPACE_ID::uint64 block_height() const; + void set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_height() const; + void _internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.CheckpointEvent) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr block_hash_; + ::PROTOBUF_NAMESPACE_ID::uint64 block_height_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class PendingDelegationBalanceEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.PendingDelegationBalanceEvent) */ { +class RewardPayoutEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.RewardPayoutEvent) */ { public: - inline PendingDelegationBalanceEvent() : PendingDelegationBalanceEvent(nullptr) {} - virtual ~PendingDelegationBalanceEvent(); + inline RewardPayoutEvent() : RewardPayoutEvent(nullptr) {} + virtual ~RewardPayoutEvent(); - PendingDelegationBalanceEvent(const PendingDelegationBalanceEvent& from); - PendingDelegationBalanceEvent(PendingDelegationBalanceEvent&& from) noexcept - : PendingDelegationBalanceEvent() { + RewardPayoutEvent(const RewardPayoutEvent& from); + RewardPayoutEvent(RewardPayoutEvent&& from) noexcept + : RewardPayoutEvent() { *this = ::std::move(from); } - inline PendingDelegationBalanceEvent& operator=(const PendingDelegationBalanceEvent& from) { + inline RewardPayoutEvent& operator=(const RewardPayoutEvent& from) { CopyFrom(from); return *this; } - inline PendingDelegationBalanceEvent& operator=(PendingDelegationBalanceEvent&& from) noexcept { + inline RewardPayoutEvent& operator=(RewardPayoutEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -668,19 +783,19 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PendingDelegationBalanceEvent& default_instance(); + static const RewardPayoutEvent& default_instance(); - static inline const PendingDelegationBalanceEvent* internal_default_instance() { - return reinterpret_cast( - &_PendingDelegationBalanceEvent_default_instance_); + static inline const RewardPayoutEvent* internal_default_instance() { + return reinterpret_cast( + &_RewardPayoutEvent_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(PendingDelegationBalanceEvent& a, PendingDelegationBalanceEvent& b) { + friend void swap(RewardPayoutEvent& a, RewardPayoutEvent& b) { a.Swap(&b); } - inline void Swap(PendingDelegationBalanceEvent* other) { + inline void Swap(RewardPayoutEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -688,7 +803,7 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PendingDelegationBalanceEvent* other) { + void UnsafeArenaSwap(RewardPayoutEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -696,17 +811,17 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline PendingDelegationBalanceEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline RewardPayoutEvent* New() const final { + return CreateMaybeMessage(nullptr); } - PendingDelegationBalanceEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RewardPayoutEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PendingDelegationBalanceEvent& from); - void MergeFrom(const PendingDelegationBalanceEvent& from); + void CopyFrom(const RewardPayoutEvent& from); + void MergeFrom(const RewardPayoutEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -720,13 +835,13 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PendingDelegationBalanceEvent* other); + void InternalSwap(RewardPayoutEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.PendingDelegationBalanceEvent"; + return "vega.events.v1.RewardPayoutEvent"; } protected: - explicit PendingDelegationBalanceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RewardPayoutEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -747,9 +862,11 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : enum : int { kPartyFieldNumber = 1, - kNodeIdFieldNumber = 2, - kDelegationAmountFieldNumber = 3, - kUndelegationAmountFieldNumber = 4, + kEpochSeqFieldNumber = 2, + kAssetFieldNumber = 3, + kAmountFieldNumber = 4, + kPercentOfTotalRewardFieldNumber = 5, + kTimestampFieldNumber = 6, }; // string party = 1 [json_name = "party"]; void clear_party(); @@ -767,41 +884,80 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : std::string* _internal_mutable_party(); public: - // string node_id = 2 [json_name = "nodeId"]; - void clear_node_id(); - const std::string& node_id() const; - void set_node_id(const std::string& value); - void set_node_id(std::string&& value); - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - std::string* mutable_node_id(); - std::string* release_node_id(); - void set_allocated_node_id(std::string* node_id); + // string epoch_seq = 2 [json_name = "epochSeq"]; + void clear_epoch_seq(); + const std::string& epoch_seq() const; + void set_epoch_seq(const std::string& value); + void set_epoch_seq(std::string&& value); + void set_epoch_seq(const char* value); + void set_epoch_seq(const char* value, size_t size); + std::string* mutable_epoch_seq(); + std::string* release_epoch_seq(); + void set_allocated_epoch_seq(std::string* epoch_seq); private: - const std::string& _internal_node_id() const; - void _internal_set_node_id(const std::string& value); - std::string* _internal_mutable_node_id(); + const std::string& _internal_epoch_seq() const; + void _internal_set_epoch_seq(const std::string& value); + std::string* _internal_mutable_epoch_seq(); public: - // uint64 delegation_amount = 3 [json_name = "delegationAmount"]; - void clear_delegation_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 delegation_amount() const; - void set_delegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + // string asset = 3 [json_name = "asset"]; + void clear_asset(); + const std::string& asset() const; + void set_asset(const std::string& value); + void set_asset(std::string&& value); + void set_asset(const char* value); + void set_asset(const char* value, size_t size); + std::string* mutable_asset(); + std::string* release_asset(); + void set_allocated_asset(std::string* asset); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_delegation_amount() const; - void _internal_set_delegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_asset() const; + void _internal_set_asset(const std::string& value); + std::string* _internal_mutable_asset(); public: - // uint64 undelegation_amount = 4 [json_name = "undelegationAmount"]; - void clear_undelegation_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 undelegation_amount() const; - void set_undelegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + // string amount = 4 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_undelegation_amount() const; - void _internal_set_undelegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.PendingDelegationBalanceEvent) + // string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + void clear_percent_of_total_reward(); + const std::string& percent_of_total_reward() const; + void set_percent_of_total_reward(const std::string& value); + void set_percent_of_total_reward(std::string&& value); + void set_percent_of_total_reward(const char* value); + void set_percent_of_total_reward(const char* value, size_t size); + std::string* mutable_percent_of_total_reward(); + std::string* release_percent_of_total_reward(); + void set_allocated_percent_of_total_reward(std::string* percent_of_total_reward); + private: + const std::string& _internal_percent_of_total_reward() const; + void _internal_set_percent_of_total_reward(const std::string& value); + std::string* _internal_mutable_percent_of_total_reward(); + public: + + // int64 timestamp = 6 [json_name = "timestamp"]; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.RewardPayoutEvent) private: class _Internal; @@ -809,31 +965,33 @@ class PendingDelegationBalanceEvent PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 delegation_amount_; - ::PROTOBUF_NAMESPACE_ID::uint64 undelegation_amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoch_seq_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr percent_of_total_reward_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class MarketEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.MarketEvent) */ { +class ValidatorScoreEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.ValidatorScoreEvent) */ { public: - inline MarketEvent() : MarketEvent(nullptr) {} - virtual ~MarketEvent(); + inline ValidatorScoreEvent() : ValidatorScoreEvent(nullptr) {} + virtual ~ValidatorScoreEvent(); - MarketEvent(const MarketEvent& from); - MarketEvent(MarketEvent&& from) noexcept - : MarketEvent() { + ValidatorScoreEvent(const ValidatorScoreEvent& from); + ValidatorScoreEvent(ValidatorScoreEvent&& from) noexcept + : ValidatorScoreEvent() { *this = ::std::move(from); } - inline MarketEvent& operator=(const MarketEvent& from) { + inline ValidatorScoreEvent& operator=(const ValidatorScoreEvent& from) { CopyFrom(from); return *this; } - inline MarketEvent& operator=(MarketEvent&& from) noexcept { + inline ValidatorScoreEvent& operator=(ValidatorScoreEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -851,19 +1009,19 @@ class MarketEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const MarketEvent& default_instance(); + static const ValidatorScoreEvent& default_instance(); - static inline const MarketEvent* internal_default_instance() { - return reinterpret_cast( - &_MarketEvent_default_instance_); + static inline const ValidatorScoreEvent* internal_default_instance() { + return reinterpret_cast( + &_ValidatorScoreEvent_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(MarketEvent& a, MarketEvent& b) { + friend void swap(ValidatorScoreEvent& a, ValidatorScoreEvent& b) { a.Swap(&b); } - inline void Swap(MarketEvent* other) { + inline void Swap(ValidatorScoreEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -871,7 +1029,7 @@ class MarketEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarketEvent* other) { + void UnsafeArenaSwap(ValidatorScoreEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -879,17 +1037,17 @@ class MarketEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline MarketEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline ValidatorScoreEvent* New() const final { + return CreateMaybeMessage(nullptr); } - MarketEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + ValidatorScoreEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketEvent& from); - void MergeFrom(const MarketEvent& from); + void CopyFrom(const ValidatorScoreEvent& from); + void MergeFrom(const ValidatorScoreEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -903,13 +1061,13 @@ class MarketEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MarketEvent* other); + void InternalSwap(ValidatorScoreEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.MarketEvent"; + return "vega.events.v1.ValidatorScoreEvent"; } protected: - explicit MarketEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ValidatorScoreEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -929,72 +1087,108 @@ class MarketEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kMarketIdFieldNumber = 1, - kPayloadFieldNumber = 2, + kNodeIdFieldNumber = 1, + kEpochSeqFieldNumber = 2, + kValidatorScoreFieldNumber = 3, + kNormalisedScoreFieldNumber = 4, }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string payload = 2 [json_name = "payload"]; - void clear_payload(); - const std::string& payload() const; - void set_payload(const std::string& value); - void set_payload(std::string&& value); - void set_payload(const char* value); - void set_payload(const char* value, size_t size); - std::string* mutable_payload(); - std::string* release_payload(); - void set_allocated_payload(std::string* payload); + // string node_id = 1 [json_name = "nodeId"]; + void clear_node_id(); + const std::string& node_id() const; + void set_node_id(const std::string& value); + void set_node_id(std::string&& value); + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + std::string* mutable_node_id(); + std::string* release_node_id(); + void set_allocated_node_id(std::string* node_id); private: - const std::string& _internal_payload() const; - void _internal_set_payload(const std::string& value); - std::string* _internal_mutable_payload(); + const std::string& _internal_node_id() const; + void _internal_set_node_id(const std::string& value); + std::string* _internal_mutable_node_id(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.MarketEvent) + // string epoch_seq = 2 [json_name = "epochSeq"]; + void clear_epoch_seq(); + const std::string& epoch_seq() const; + void set_epoch_seq(const std::string& value); + void set_epoch_seq(std::string&& value); + void set_epoch_seq(const char* value); + void set_epoch_seq(const char* value, size_t size); + std::string* mutable_epoch_seq(); + std::string* release_epoch_seq(); + void set_allocated_epoch_seq(std::string* epoch_seq); + private: + const std::string& _internal_epoch_seq() const; + void _internal_set_epoch_seq(const std::string& value); + std::string* _internal_mutable_epoch_seq(); + public: + + // string validator_score = 3 [json_name = "validatorScore"]; + void clear_validator_score(); + const std::string& validator_score() const; + void set_validator_score(const std::string& value); + void set_validator_score(std::string&& value); + void set_validator_score(const char* value); + void set_validator_score(const char* value, size_t size); + std::string* mutable_validator_score(); + std::string* release_validator_score(); + void set_allocated_validator_score(std::string* validator_score); + private: + const std::string& _internal_validator_score() const; + void _internal_set_validator_score(const std::string& value); + std::string* _internal_mutable_validator_score(); + public: + + // string normalised_score = 4 [json_name = "normalisedScore"]; + void clear_normalised_score(); + const std::string& normalised_score() const; + void set_normalised_score(const std::string& value); + void set_normalised_score(std::string&& value); + void set_normalised_score(const char* value); + void set_normalised_score(const char* value, size_t size); + std::string* mutable_normalised_score(); + std::string* release_normalised_score(); + void set_allocated_normalised_score(std::string* normalised_score); + private: + const std::string& _internal_normalised_score() const; + void _internal_set_normalised_score(const std::string& value); + std::string* _internal_mutable_normalised_score(); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.ValidatorScoreEvent) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoch_seq_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr validator_score_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr normalised_score_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class TxErrorEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TxErrorEvent) */ { +class DelegationBalanceEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.DelegationBalanceEvent) */ { public: - inline TxErrorEvent() : TxErrorEvent(nullptr) {} - virtual ~TxErrorEvent(); + inline DelegationBalanceEvent() : DelegationBalanceEvent(nullptr) {} + virtual ~DelegationBalanceEvent(); - TxErrorEvent(const TxErrorEvent& from); - TxErrorEvent(TxErrorEvent&& from) noexcept - : TxErrorEvent() { + DelegationBalanceEvent(const DelegationBalanceEvent& from); + DelegationBalanceEvent(DelegationBalanceEvent&& from) noexcept + : DelegationBalanceEvent() { *this = ::std::move(from); } - inline TxErrorEvent& operator=(const TxErrorEvent& from) { + inline DelegationBalanceEvent& operator=(const DelegationBalanceEvent& from) { CopyFrom(from); return *this; } - inline TxErrorEvent& operator=(TxErrorEvent&& from) noexcept { + inline DelegationBalanceEvent& operator=(DelegationBalanceEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1012,30 +1206,19 @@ class TxErrorEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const TxErrorEvent& default_instance(); - - enum TransactionCase { - kOrderSubmission = 101, - kOrderAmendment = 102, - kOrderCancellation = 103, - kProposal = 104, - kVoteSubmission = 105, - kLiquidityProvisionSubmission = 106, - kWithdrawSubmission = 107, - TRANSACTION_NOT_SET = 0, - }; + static const DelegationBalanceEvent& default_instance(); - static inline const TxErrorEvent* internal_default_instance() { - return reinterpret_cast( - &_TxErrorEvent_default_instance_); + static inline const DelegationBalanceEvent* internal_default_instance() { + return reinterpret_cast( + &_DelegationBalanceEvent_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(TxErrorEvent& a, TxErrorEvent& b) { + friend void swap(DelegationBalanceEvent& a, DelegationBalanceEvent& b) { a.Swap(&b); } - inline void Swap(TxErrorEvent* other) { + inline void Swap(DelegationBalanceEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1043,7 +1226,7 @@ class TxErrorEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TxErrorEvent* other) { + void UnsafeArenaSwap(DelegationBalanceEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1051,17 +1234,17 @@ class TxErrorEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline TxErrorEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline DelegationBalanceEvent* New() const final { + return CreateMaybeMessage(nullptr); } - TxErrorEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + DelegationBalanceEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TxErrorEvent& from); - void MergeFrom(const TxErrorEvent& from); + void CopyFrom(const DelegationBalanceEvent& from); + void MergeFrom(const DelegationBalanceEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1075,13 +1258,13 @@ class TxErrorEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TxErrorEvent* other); + void InternalSwap(DelegationBalanceEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.TxErrorEvent"; + return "vega.events.v1.DelegationBalanceEvent"; } protected: - explicit TxErrorEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DelegationBalanceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1101,229 +1284,101 @@ class TxErrorEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPartyIdFieldNumber = 1, - kErrMsgFieldNumber = 2, - kOrderSubmissionFieldNumber = 101, - kOrderAmendmentFieldNumber = 102, - kOrderCancellationFieldNumber = 103, - kProposalFieldNumber = 104, - kVoteSubmissionFieldNumber = 105, - kLiquidityProvisionSubmissionFieldNumber = 106, - kWithdrawSubmissionFieldNumber = 107, + kPartyFieldNumber = 1, + kNodeIdFieldNumber = 2, + kEpochSeqFieldNumber = 4, + kAmountFieldNumber = 3, }; - // string party_id = 1 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // string err_msg = 2 [json_name = "errMsg"]; - void clear_err_msg(); - const std::string& err_msg() const; - void set_err_msg(const std::string& value); - void set_err_msg(std::string&& value); - void set_err_msg(const char* value); - void set_err_msg(const char* value, size_t size); - std::string* mutable_err_msg(); - std::string* release_err_msg(); - void set_allocated_err_msg(std::string* err_msg); - private: - const std::string& _internal_err_msg() const; - void _internal_set_err_msg(const std::string& value); - std::string* _internal_mutable_err_msg(); - public: - - // .vega.commands.v1.OrderSubmission order_submission = 101 [json_name = "orderSubmission"]; - bool has_order_submission() const; - private: - bool _internal_has_order_submission() const; - public: - void clear_order_submission(); - const ::vega::commands::v1::OrderSubmission& order_submission() const; - ::vega::commands::v1::OrderSubmission* release_order_submission(); - ::vega::commands::v1::OrderSubmission* mutable_order_submission(); - void set_allocated_order_submission(::vega::commands::v1::OrderSubmission* order_submission); - private: - const ::vega::commands::v1::OrderSubmission& _internal_order_submission() const; - ::vega::commands::v1::OrderSubmission* _internal_mutable_order_submission(); - public: - void unsafe_arena_set_allocated_order_submission( - ::vega::commands::v1::OrderSubmission* order_submission); - ::vega::commands::v1::OrderSubmission* unsafe_arena_release_order_submission(); - - // .vega.commands.v1.OrderAmendment order_amendment = 102 [json_name = "orderAmendment"]; - bool has_order_amendment() const; - private: - bool _internal_has_order_amendment() const; - public: - void clear_order_amendment(); - const ::vega::commands::v1::OrderAmendment& order_amendment() const; - ::vega::commands::v1::OrderAmendment* release_order_amendment(); - ::vega::commands::v1::OrderAmendment* mutable_order_amendment(); - void set_allocated_order_amendment(::vega::commands::v1::OrderAmendment* order_amendment); - private: - const ::vega::commands::v1::OrderAmendment& _internal_order_amendment() const; - ::vega::commands::v1::OrderAmendment* _internal_mutable_order_amendment(); - public: - void unsafe_arena_set_allocated_order_amendment( - ::vega::commands::v1::OrderAmendment* order_amendment); - ::vega::commands::v1::OrderAmendment* unsafe_arena_release_order_amendment(); - - // .vega.commands.v1.OrderCancellation order_cancellation = 103 [json_name = "orderCancellation"]; - bool has_order_cancellation() const; - private: - bool _internal_has_order_cancellation() const; - public: - void clear_order_cancellation(); - const ::vega::commands::v1::OrderCancellation& order_cancellation() const; - ::vega::commands::v1::OrderCancellation* release_order_cancellation(); - ::vega::commands::v1::OrderCancellation* mutable_order_cancellation(); - void set_allocated_order_cancellation(::vega::commands::v1::OrderCancellation* order_cancellation); - private: - const ::vega::commands::v1::OrderCancellation& _internal_order_cancellation() const; - ::vega::commands::v1::OrderCancellation* _internal_mutable_order_cancellation(); - public: - void unsafe_arena_set_allocated_order_cancellation( - ::vega::commands::v1::OrderCancellation* order_cancellation); - ::vega::commands::v1::OrderCancellation* unsafe_arena_release_order_cancellation(); - - // .vega.commands.v1.ProposalSubmission proposal = 104 [json_name = "proposal"]; - bool has_proposal() const; - private: - bool _internal_has_proposal() const; - public: - void clear_proposal(); - const ::vega::commands::v1::ProposalSubmission& proposal() const; - ::vega::commands::v1::ProposalSubmission* release_proposal(); - ::vega::commands::v1::ProposalSubmission* mutable_proposal(); - void set_allocated_proposal(::vega::commands::v1::ProposalSubmission* proposal); + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); private: - const ::vega::commands::v1::ProposalSubmission& _internal_proposal() const; - ::vega::commands::v1::ProposalSubmission* _internal_mutable_proposal(); + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); public: - void unsafe_arena_set_allocated_proposal( - ::vega::commands::v1::ProposalSubmission* proposal); - ::vega::commands::v1::ProposalSubmission* unsafe_arena_release_proposal(); - // .vega.commands.v1.VoteSubmission vote_submission = 105 [json_name = "voteSubmission"]; - bool has_vote_submission() const; - private: - bool _internal_has_vote_submission() const; - public: - void clear_vote_submission(); - const ::vega::commands::v1::VoteSubmission& vote_submission() const; - ::vega::commands::v1::VoteSubmission* release_vote_submission(); - ::vega::commands::v1::VoteSubmission* mutable_vote_submission(); - void set_allocated_vote_submission(::vega::commands::v1::VoteSubmission* vote_submission); + // string node_id = 2 [json_name = "nodeId"]; + void clear_node_id(); + const std::string& node_id() const; + void set_node_id(const std::string& value); + void set_node_id(std::string&& value); + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + std::string* mutable_node_id(); + std::string* release_node_id(); + void set_allocated_node_id(std::string* node_id); private: - const ::vega::commands::v1::VoteSubmission& _internal_vote_submission() const; - ::vega::commands::v1::VoteSubmission* _internal_mutable_vote_submission(); + const std::string& _internal_node_id() const; + void _internal_set_node_id(const std::string& value); + std::string* _internal_mutable_node_id(); public: - void unsafe_arena_set_allocated_vote_submission( - ::vega::commands::v1::VoteSubmission* vote_submission); - ::vega::commands::v1::VoteSubmission* unsafe_arena_release_vote_submission(); - // .vega.commands.v1.LiquidityProvisionSubmission liquidity_provision_submission = 106 [json_name = "liquidityProvisionSubmission"]; - bool has_liquidity_provision_submission() const; + // string epoch_seq = 4 [json_name = "epochSeq"]; + void clear_epoch_seq(); + const std::string& epoch_seq() const; + void set_epoch_seq(const std::string& value); + void set_epoch_seq(std::string&& value); + void set_epoch_seq(const char* value); + void set_epoch_seq(const char* value, size_t size); + std::string* mutable_epoch_seq(); + std::string* release_epoch_seq(); + void set_allocated_epoch_seq(std::string* epoch_seq); private: - bool _internal_has_liquidity_provision_submission() const; - public: - void clear_liquidity_provision_submission(); - const ::vega::commands::v1::LiquidityProvisionSubmission& liquidity_provision_submission() const; - ::vega::commands::v1::LiquidityProvisionSubmission* release_liquidity_provision_submission(); - ::vega::commands::v1::LiquidityProvisionSubmission* mutable_liquidity_provision_submission(); - void set_allocated_liquidity_provision_submission(::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission); - private: - const ::vega::commands::v1::LiquidityProvisionSubmission& _internal_liquidity_provision_submission() const; - ::vega::commands::v1::LiquidityProvisionSubmission* _internal_mutable_liquidity_provision_submission(); + const std::string& _internal_epoch_seq() const; + void _internal_set_epoch_seq(const std::string& value); + std::string* _internal_mutable_epoch_seq(); public: - void unsafe_arena_set_allocated_liquidity_provision_submission( - ::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission); - ::vega::commands::v1::LiquidityProvisionSubmission* unsafe_arena_release_liquidity_provision_submission(); - // .vega.commands.v1.WithdrawSubmission withdraw_submission = 107 [json_name = "withdrawSubmission"]; - bool has_withdraw_submission() const; - private: - bool _internal_has_withdraw_submission() const; - public: - void clear_withdraw_submission(); - const ::vega::commands::v1::WithdrawSubmission& withdraw_submission() const; - ::vega::commands::v1::WithdrawSubmission* release_withdraw_submission(); - ::vega::commands::v1::WithdrawSubmission* mutable_withdraw_submission(); - void set_allocated_withdraw_submission(::vega::commands::v1::WithdrawSubmission* withdraw_submission); + // uint64 amount = 3 [json_name = "amount"]; + void clear_amount(); + ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; + void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::vega::commands::v1::WithdrawSubmission& _internal_withdraw_submission() const; - ::vega::commands::v1::WithdrawSubmission* _internal_mutable_withdraw_submission(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; + void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void unsafe_arena_set_allocated_withdraw_submission( - ::vega::commands::v1::WithdrawSubmission* withdraw_submission); - ::vega::commands::v1::WithdrawSubmission* unsafe_arena_release_withdraw_submission(); - void clear_transaction(); - TransactionCase transaction_case() const; - // @@protoc_insertion_point(class_scope:vega.events.v1.TxErrorEvent) + // @@protoc_insertion_point(class_scope:vega.events.v1.DelegationBalanceEvent) private: class _Internal; - void set_has_order_submission(); - void set_has_order_amendment(); - void set_has_order_cancellation(); - void set_has_proposal(); - void set_has_vote_submission(); - void set_has_liquidity_provision_submission(); - void set_has_withdraw_submission(); - - inline bool has_transaction() const; - inline void clear_has_transaction(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr err_msg_; - union TransactionUnion { - TransactionUnion() {} - ::vega::commands::v1::OrderSubmission* order_submission_; - ::vega::commands::v1::OrderAmendment* order_amendment_; - ::vega::commands::v1::OrderCancellation* order_cancellation_; - ::vega::commands::v1::ProposalSubmission* proposal_; - ::vega::commands::v1::VoteSubmission* vote_submission_; - ::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission_; - ::vega::commands::v1::WithdrawSubmission* withdraw_submission_; - } transaction_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoch_seq_; + ::PROTOBUF_NAMESPACE_ID::uint64 amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class TimeUpdate PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TimeUpdate) */ { +class PendingDelegationBalanceEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.PendingDelegationBalanceEvent) */ { public: - inline TimeUpdate() : TimeUpdate(nullptr) {} - virtual ~TimeUpdate(); + inline PendingDelegationBalanceEvent() : PendingDelegationBalanceEvent(nullptr) {} + virtual ~PendingDelegationBalanceEvent(); - TimeUpdate(const TimeUpdate& from); - TimeUpdate(TimeUpdate&& from) noexcept - : TimeUpdate() { + PendingDelegationBalanceEvent(const PendingDelegationBalanceEvent& from); + PendingDelegationBalanceEvent(PendingDelegationBalanceEvent&& from) noexcept + : PendingDelegationBalanceEvent() { *this = ::std::move(from); } - inline TimeUpdate& operator=(const TimeUpdate& from) { + inline PendingDelegationBalanceEvent& operator=(const PendingDelegationBalanceEvent& from) { CopyFrom(from); return *this; } - inline TimeUpdate& operator=(TimeUpdate&& from) noexcept { + inline PendingDelegationBalanceEvent& operator=(PendingDelegationBalanceEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1341,19 +1396,19 @@ class TimeUpdate PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const TimeUpdate& default_instance(); + static const PendingDelegationBalanceEvent& default_instance(); - static inline const TimeUpdate* internal_default_instance() { - return reinterpret_cast( - &_TimeUpdate_default_instance_); + static inline const PendingDelegationBalanceEvent* internal_default_instance() { + return reinterpret_cast( + &_PendingDelegationBalanceEvent_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(TimeUpdate& a, TimeUpdate& b) { + friend void swap(PendingDelegationBalanceEvent& a, PendingDelegationBalanceEvent& b) { a.Swap(&b); } - inline void Swap(TimeUpdate* other) { + inline void Swap(PendingDelegationBalanceEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1361,7 +1416,7 @@ class TimeUpdate PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TimeUpdate* other) { + void UnsafeArenaSwap(PendingDelegationBalanceEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1369,17 +1424,17 @@ class TimeUpdate PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline TimeUpdate* New() const final { - return CreateMaybeMessage(nullptr); + inline PendingDelegationBalanceEvent* New() const final { + return CreateMaybeMessage(nullptr); } - TimeUpdate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PendingDelegationBalanceEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TimeUpdate& from); - void MergeFrom(const TimeUpdate& from); + void CopyFrom(const PendingDelegationBalanceEvent& from); + void MergeFrom(const PendingDelegationBalanceEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1393,13 +1448,13 @@ class TimeUpdate PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TimeUpdate* other); + void InternalSwap(PendingDelegationBalanceEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.TimeUpdate"; + return "vega.events.v1.PendingDelegationBalanceEvent"; } protected: - explicit TimeUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PendingDelegationBalanceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1419,47 +1474,112 @@ class TimeUpdate PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTimestampFieldNumber = 1, + kPartyFieldNumber = 1, + kNodeIdFieldNumber = 2, + kEpochSeqFieldNumber = 5, + kDelegationAmountFieldNumber = 3, + kUndelegationAmountFieldNumber = 4, }; - // int64 timestamp = 1 [json_name = "timestamp"]; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.TimeUpdate) + // string node_id = 2 [json_name = "nodeId"]; + void clear_node_id(); + const std::string& node_id() const; + void set_node_id(const std::string& value); + void set_node_id(std::string&& value); + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + std::string* mutable_node_id(); + std::string* release_node_id(); + void set_allocated_node_id(std::string* node_id); + private: + const std::string& _internal_node_id() const; + void _internal_set_node_id(const std::string& value); + std::string* _internal_mutable_node_id(); + public: + + // string epoch_seq = 5 [json_name = "epochSeq"]; + void clear_epoch_seq(); + const std::string& epoch_seq() const; + void set_epoch_seq(const std::string& value); + void set_epoch_seq(std::string&& value); + void set_epoch_seq(const char* value); + void set_epoch_seq(const char* value, size_t size); + std::string* mutable_epoch_seq(); + std::string* release_epoch_seq(); + void set_allocated_epoch_seq(std::string* epoch_seq); + private: + const std::string& _internal_epoch_seq() const; + void _internal_set_epoch_seq(const std::string& value); + std::string* _internal_mutable_epoch_seq(); + public: + + // uint64 delegation_amount = 3 [json_name = "delegationAmount"]; + void clear_delegation_amount(); + ::PROTOBUF_NAMESPACE_ID::uint64 delegation_amount() const; + void set_delegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_delegation_amount() const; + void _internal_set_delegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 undelegation_amount = 4 [json_name = "undelegationAmount"]; + void clear_undelegation_amount(); + ::PROTOBUF_NAMESPACE_ID::uint64 undelegation_amount() const; + void set_undelegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_undelegation_amount() const; + void _internal_set_undelegation_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.PendingDelegationBalanceEvent) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoch_seq_; + ::PROTOBUF_NAMESPACE_ID::uint64 delegation_amount_; + ::PROTOBUF_NAMESPACE_ID::uint64 undelegation_amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class EpochEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.EpochEvent) */ { +class MarketEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.MarketEvent) */ { public: - inline EpochEvent() : EpochEvent(nullptr) {} - virtual ~EpochEvent(); + inline MarketEvent() : MarketEvent(nullptr) {} + virtual ~MarketEvent(); - EpochEvent(const EpochEvent& from); - EpochEvent(EpochEvent&& from) noexcept - : EpochEvent() { + MarketEvent(const MarketEvent& from); + MarketEvent(MarketEvent&& from) noexcept + : MarketEvent() { *this = ::std::move(from); } - inline EpochEvent& operator=(const EpochEvent& from) { + inline MarketEvent& operator=(const MarketEvent& from) { CopyFrom(from); return *this; } - inline EpochEvent& operator=(EpochEvent&& from) noexcept { + inline MarketEvent& operator=(MarketEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1477,19 +1597,19 @@ class EpochEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const EpochEvent& default_instance(); + static const MarketEvent& default_instance(); - static inline const EpochEvent* internal_default_instance() { - return reinterpret_cast( - &_EpochEvent_default_instance_); + static inline const MarketEvent* internal_default_instance() { + return reinterpret_cast( + &_MarketEvent_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(EpochEvent& a, EpochEvent& b) { + friend void swap(MarketEvent& a, MarketEvent& b) { a.Swap(&b); } - inline void Swap(EpochEvent* other) { + inline void Swap(MarketEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1497,7 +1617,7 @@ class EpochEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EpochEvent* other) { + void UnsafeArenaSwap(MarketEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1505,17 +1625,17 @@ class EpochEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline EpochEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline MarketEvent* New() const final { + return CreateMaybeMessage(nullptr); } - EpochEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + MarketEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EpochEvent& from); - void MergeFrom(const EpochEvent& from); + void CopyFrom(const MarketEvent& from); + void MergeFrom(const MarketEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1529,13 +1649,13 @@ class EpochEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EpochEvent* other); + void InternalSwap(MarketEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.EpochEvent"; + return "vega.events.v1.MarketEvent"; } protected: - explicit EpochEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MarketEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1555,80 +1675,72 @@ class EpochEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kSeqFieldNumber = 1, - kStartTimeFieldNumber = 2, - kExpireTimeFieldNumber = 3, - kEndTimeFieldNumber = 4, + kMarketIdFieldNumber = 1, + kPayloadFieldNumber = 2, }; - // uint64 seq = 1 [json_name = "seq"]; - void clear_seq(); - ::PROTOBUF_NAMESPACE_ID::uint64 seq() const; - void set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_seq() const; - void _internal_set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // int64 start_time = 2 [json_name = "startTime"]; - void clear_start_time(); - ::PROTOBUF_NAMESPACE_ID::int64 start_time() const; - void set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_start_time() const; - void _internal_set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // int64 expire_time = 3 [json_name = "expireTime"]; - void clear_expire_time(); - ::PROTOBUF_NAMESPACE_ID::int64 expire_time() const; - void set_expire_time(::PROTOBUF_NAMESPACE_ID::int64 value); + // string market_id = 1 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_expire_time() const; - void _internal_set_expire_time(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); public: - // int64 end_time = 4 [json_name = "endTime"]; - void clear_end_time(); - ::PROTOBUF_NAMESPACE_ID::int64 end_time() const; - void set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + // string payload = 2 [json_name = "payload"]; + void clear_payload(); + const std::string& payload() const; + void set_payload(const std::string& value); + void set_payload(std::string&& value); + void set_payload(const char* value); + void set_payload(const char* value, size_t size); + std::string* mutable_payload(); + std::string* release_payload(); + void set_allocated_payload(std::string* payload); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_end_time() const; - void _internal_set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_payload() const; + void _internal_set_payload(const std::string& value); + std::string* _internal_mutable_payload(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.EpochEvent) + // @@protoc_insertion_point(class_scope:vega.events.v1.MarketEvent) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 seq_; - ::PROTOBUF_NAMESPACE_ID::int64 start_time_; - ::PROTOBUF_NAMESPACE_ID::int64 expire_time_; - ::PROTOBUF_NAMESPACE_ID::int64 end_time_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class TransferResponses PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TransferResponses) */ { +class TxErrorEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TxErrorEvent) */ { public: - inline TransferResponses() : TransferResponses(nullptr) {} - virtual ~TransferResponses(); + inline TxErrorEvent() : TxErrorEvent(nullptr) {} + virtual ~TxErrorEvent(); - TransferResponses(const TransferResponses& from); - TransferResponses(TransferResponses&& from) noexcept - : TransferResponses() { + TxErrorEvent(const TxErrorEvent& from); + TxErrorEvent(TxErrorEvent&& from) noexcept + : TxErrorEvent() { *this = ::std::move(from); } - inline TransferResponses& operator=(const TransferResponses& from) { + inline TxErrorEvent& operator=(const TxErrorEvent& from) { CopyFrom(from); return *this; } - inline TransferResponses& operator=(TransferResponses&& from) noexcept { + inline TxErrorEvent& operator=(TxErrorEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1646,19 +1758,30 @@ class TransferResponses PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const TransferResponses& default_instance(); + static const TxErrorEvent& default_instance(); - static inline const TransferResponses* internal_default_instance() { - return reinterpret_cast( - &_TransferResponses_default_instance_); + enum TransactionCase { + kOrderSubmission = 101, + kOrderAmendment = 102, + kOrderCancellation = 103, + kProposal = 104, + kVoteSubmission = 105, + kLiquidityProvisionSubmission = 106, + kWithdrawSubmission = 107, + TRANSACTION_NOT_SET = 0, + }; + + static inline const TxErrorEvent* internal_default_instance() { + return reinterpret_cast( + &_TxErrorEvent_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(TransferResponses& a, TransferResponses& b) { + friend void swap(TxErrorEvent& a, TxErrorEvent& b) { a.Swap(&b); } - inline void Swap(TransferResponses* other) { + inline void Swap(TxErrorEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1666,7 +1789,7 @@ class TransferResponses PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransferResponses* other) { + void UnsafeArenaSwap(TxErrorEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1674,17 +1797,17 @@ class TransferResponses PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline TransferResponses* New() const final { - return CreateMaybeMessage(nullptr); + inline TxErrorEvent* New() const final { + return CreateMaybeMessage(nullptr); } - TransferResponses* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + TxErrorEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TransferResponses& from); - void MergeFrom(const TransferResponses& from); + void CopyFrom(const TxErrorEvent& from); + void MergeFrom(const TxErrorEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1698,13 +1821,13 @@ class TransferResponses PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TransferResponses* other); + void InternalSwap(TxErrorEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.TransferResponses"; + return "vega.events.v1.TxErrorEvent"; } protected: - explicit TransferResponses(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TxErrorEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1724,232 +1847,229 @@ class TransferResponses PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kResponsesFieldNumber = 1, + kPartyIdFieldNumber = 1, + kErrMsgFieldNumber = 2, + kOrderSubmissionFieldNumber = 101, + kOrderAmendmentFieldNumber = 102, + kOrderCancellationFieldNumber = 103, + kProposalFieldNumber = 104, + kVoteSubmissionFieldNumber = 105, + kLiquidityProvisionSubmissionFieldNumber = 106, + kWithdrawSubmissionFieldNumber = 107, }; - // repeated .vega.TransferResponse responses = 1 [json_name = "responses"]; - int responses_size() const; + // string party_id = 1 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); private: - int _internal_responses_size() const; + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); public: - void clear_responses(); - ::vega::TransferResponse* mutable_responses(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse >* - mutable_responses(); + + // string err_msg = 2 [json_name = "errMsg"]; + void clear_err_msg(); + const std::string& err_msg() const; + void set_err_msg(const std::string& value); + void set_err_msg(std::string&& value); + void set_err_msg(const char* value); + void set_err_msg(const char* value, size_t size); + std::string* mutable_err_msg(); + std::string* release_err_msg(); + void set_allocated_err_msg(std::string* err_msg); private: - const ::vega::TransferResponse& _internal_responses(int index) const; - ::vega::TransferResponse* _internal_add_responses(); + const std::string& _internal_err_msg() const; + void _internal_set_err_msg(const std::string& value); + std::string* _internal_mutable_err_msg(); public: - const ::vega::TransferResponse& responses(int index) const; - ::vega::TransferResponse* add_responses(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse >& - responses() const; - - // @@protoc_insertion_point(class_scope:vega.events.v1.TransferResponses) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse > responses_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_events_2fv1_2fevents_2eproto; -}; -// ------------------------------------------------------------------- - -class PositionResolution PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.PositionResolution) */ { - public: - inline PositionResolution() : PositionResolution(nullptr) {} - virtual ~PositionResolution(); - - PositionResolution(const PositionResolution& from); - PositionResolution(PositionResolution&& from) noexcept - : PositionResolution() { - *this = ::std::move(from); - } - - inline PositionResolution& operator=(const PositionResolution& from) { - CopyFrom(from); - return *this; - } - inline PositionResolution& operator=(PositionResolution&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PositionResolution& default_instance(); - - static inline const PositionResolution* internal_default_instance() { - return reinterpret_cast( - &_PositionResolution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(PositionResolution& a, PositionResolution& b) { - a.Swap(&b); - } - inline void Swap(PositionResolution* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PositionResolution* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PositionResolution* New() const final { - return CreateMaybeMessage(nullptr); - } - - PositionResolution* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PositionResolution& from); - void MergeFrom(const PositionResolution& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + // .vega.commands.v1.OrderSubmission order_submission = 101 [json_name = "orderSubmission"]; + bool has_order_submission() const; private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PositionResolution* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.PositionResolution"; - } - protected: - explicit PositionResolution(::PROTOBUF_NAMESPACE_ID::Arena* arena); + bool _internal_has_order_submission() const; + public: + void clear_order_submission(); + const ::vega::commands::v1::OrderSubmission& order_submission() const; + ::vega::commands::v1::OrderSubmission* release_order_submission(); + ::vega::commands::v1::OrderSubmission* mutable_order_submission(); + void set_allocated_order_submission(::vega::commands::v1::OrderSubmission* order_submission); private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + const ::vega::commands::v1::OrderSubmission& _internal_order_submission() const; + ::vega::commands::v1::OrderSubmission* _internal_mutable_order_submission(); public: + void unsafe_arena_set_allocated_order_submission( + ::vega::commands::v1::OrderSubmission* order_submission); + ::vega::commands::v1::OrderSubmission* unsafe_arena_release_order_submission(); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + // .vega.commands.v1.OrderAmendment order_amendment = 102 [json_name = "orderAmendment"]; + bool has_order_amendment() const; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_events_2fv1_2fevents_2eproto); - return ::descriptor_table_events_2fv1_2fevents_2eproto.file_level_metadata[kIndexInFileMessages]; - } - + bool _internal_has_order_amendment() const; public: + void clear_order_amendment(); + const ::vega::commands::v1::OrderAmendment& order_amendment() const; + ::vega::commands::v1::OrderAmendment* release_order_amendment(); + ::vega::commands::v1::OrderAmendment* mutable_order_amendment(); + void set_allocated_order_amendment(::vega::commands::v1::OrderAmendment* order_amendment); + private: + const ::vega::commands::v1::OrderAmendment& _internal_order_amendment() const; + ::vega::commands::v1::OrderAmendment* _internal_mutable_order_amendment(); + public: + void unsafe_arena_set_allocated_order_amendment( + ::vega::commands::v1::OrderAmendment* order_amendment); + ::vega::commands::v1::OrderAmendment* unsafe_arena_release_order_amendment(); - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMarketIdFieldNumber = 1, - kDistressedFieldNumber = 2, - kClosedFieldNumber = 3, - kMarkPriceFieldNumber = 4, - }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); + // .vega.commands.v1.OrderCancellation order_cancellation = 103 [json_name = "orderCancellation"]; + bool has_order_cancellation() const; private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); + bool _internal_has_order_cancellation() const; + public: + void clear_order_cancellation(); + const ::vega::commands::v1::OrderCancellation& order_cancellation() const; + ::vega::commands::v1::OrderCancellation* release_order_cancellation(); + ::vega::commands::v1::OrderCancellation* mutable_order_cancellation(); + void set_allocated_order_cancellation(::vega::commands::v1::OrderCancellation* order_cancellation); + private: + const ::vega::commands::v1::OrderCancellation& _internal_order_cancellation() const; + ::vega::commands::v1::OrderCancellation* _internal_mutable_order_cancellation(); public: + void unsafe_arena_set_allocated_order_cancellation( + ::vega::commands::v1::OrderCancellation* order_cancellation); + ::vega::commands::v1::OrderCancellation* unsafe_arena_release_order_cancellation(); - // int64 distressed = 2 [json_name = "distressed"]; - void clear_distressed(); - ::PROTOBUF_NAMESPACE_ID::int64 distressed() const; - void set_distressed(::PROTOBUF_NAMESPACE_ID::int64 value); + // .vega.commands.v1.ProposalSubmission proposal = 104 [json_name = "proposal"]; + bool has_proposal() const; private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_distressed() const; - void _internal_set_distressed(::PROTOBUF_NAMESPACE_ID::int64 value); + bool _internal_has_proposal() const; + public: + void clear_proposal(); + const ::vega::commands::v1::ProposalSubmission& proposal() const; + ::vega::commands::v1::ProposalSubmission* release_proposal(); + ::vega::commands::v1::ProposalSubmission* mutable_proposal(); + void set_allocated_proposal(::vega::commands::v1::ProposalSubmission* proposal); + private: + const ::vega::commands::v1::ProposalSubmission& _internal_proposal() const; + ::vega::commands::v1::ProposalSubmission* _internal_mutable_proposal(); public: + void unsafe_arena_set_allocated_proposal( + ::vega::commands::v1::ProposalSubmission* proposal); + ::vega::commands::v1::ProposalSubmission* unsafe_arena_release_proposal(); - // int64 closed = 3 [json_name = "closed"]; - void clear_closed(); - ::PROTOBUF_NAMESPACE_ID::int64 closed() const; - void set_closed(::PROTOBUF_NAMESPACE_ID::int64 value); + // .vega.commands.v1.VoteSubmission vote_submission = 105 [json_name = "voteSubmission"]; + bool has_vote_submission() const; private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_closed() const; - void _internal_set_closed(::PROTOBUF_NAMESPACE_ID::int64 value); + bool _internal_has_vote_submission() const; public: + void clear_vote_submission(); + const ::vega::commands::v1::VoteSubmission& vote_submission() const; + ::vega::commands::v1::VoteSubmission* release_vote_submission(); + ::vega::commands::v1::VoteSubmission* mutable_vote_submission(); + void set_allocated_vote_submission(::vega::commands::v1::VoteSubmission* vote_submission); + private: + const ::vega::commands::v1::VoteSubmission& _internal_vote_submission() const; + ::vega::commands::v1::VoteSubmission* _internal_mutable_vote_submission(); + public: + void unsafe_arena_set_allocated_vote_submission( + ::vega::commands::v1::VoteSubmission* vote_submission); + ::vega::commands::v1::VoteSubmission* unsafe_arena_release_vote_submission(); - // uint64 mark_price = 4 [json_name = "markPrice"]; - void clear_mark_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 mark_price() const; - void set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + // .vega.commands.v1.LiquidityProvisionSubmission liquidity_provision_submission = 106 [json_name = "liquidityProvisionSubmission"]; + bool has_liquidity_provision_submission() const; private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_mark_price() const; - void _internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + bool _internal_has_liquidity_provision_submission() const; + public: + void clear_liquidity_provision_submission(); + const ::vega::commands::v1::LiquidityProvisionSubmission& liquidity_provision_submission() const; + ::vega::commands::v1::LiquidityProvisionSubmission* release_liquidity_provision_submission(); + ::vega::commands::v1::LiquidityProvisionSubmission* mutable_liquidity_provision_submission(); + void set_allocated_liquidity_provision_submission(::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission); + private: + const ::vega::commands::v1::LiquidityProvisionSubmission& _internal_liquidity_provision_submission() const; + ::vega::commands::v1::LiquidityProvisionSubmission* _internal_mutable_liquidity_provision_submission(); + public: + void unsafe_arena_set_allocated_liquidity_provision_submission( + ::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission); + ::vega::commands::v1::LiquidityProvisionSubmission* unsafe_arena_release_liquidity_provision_submission(); + + // .vega.commands.v1.WithdrawSubmission withdraw_submission = 107 [json_name = "withdrawSubmission"]; + bool has_withdraw_submission() const; + private: + bool _internal_has_withdraw_submission() const; + public: + void clear_withdraw_submission(); + const ::vega::commands::v1::WithdrawSubmission& withdraw_submission() const; + ::vega::commands::v1::WithdrawSubmission* release_withdraw_submission(); + ::vega::commands::v1::WithdrawSubmission* mutable_withdraw_submission(); + void set_allocated_withdraw_submission(::vega::commands::v1::WithdrawSubmission* withdraw_submission); + private: + const ::vega::commands::v1::WithdrawSubmission& _internal_withdraw_submission() const; + ::vega::commands::v1::WithdrawSubmission* _internal_mutable_withdraw_submission(); public: + void unsafe_arena_set_allocated_withdraw_submission( + ::vega::commands::v1::WithdrawSubmission* withdraw_submission); + ::vega::commands::v1::WithdrawSubmission* unsafe_arena_release_withdraw_submission(); - // @@protoc_insertion_point(class_scope:vega.events.v1.PositionResolution) + void clear_transaction(); + TransactionCase transaction_case() const; + // @@protoc_insertion_point(class_scope:vega.events.v1.TxErrorEvent) private: class _Internal; + void set_has_order_submission(); + void set_has_order_amendment(); + void set_has_order_cancellation(); + void set_has_proposal(); + void set_has_vote_submission(); + void set_has_liquidity_provision_submission(); + void set_has_withdraw_submission(); + + inline bool has_transaction() const; + inline void clear_has_transaction(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::int64 distressed_; - ::PROTOBUF_NAMESPACE_ID::int64 closed_; - ::PROTOBUF_NAMESPACE_ID::uint64 mark_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr err_msg_; + union TransactionUnion { + TransactionUnion() {} + ::vega::commands::v1::OrderSubmission* order_submission_; + ::vega::commands::v1::OrderAmendment* order_amendment_; + ::vega::commands::v1::OrderCancellation* order_cancellation_; + ::vega::commands::v1::ProposalSubmission* proposal_; + ::vega::commands::v1::VoteSubmission* vote_submission_; + ::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission_; + ::vega::commands::v1::WithdrawSubmission* withdraw_submission_; + } transaction_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class LossSocialization PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.LossSocialization) */ { +class TimeUpdate PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TimeUpdate) */ { public: - inline LossSocialization() : LossSocialization(nullptr) {} - virtual ~LossSocialization(); + inline TimeUpdate() : TimeUpdate(nullptr) {} + virtual ~TimeUpdate(); - LossSocialization(const LossSocialization& from); - LossSocialization(LossSocialization&& from) noexcept - : LossSocialization() { + TimeUpdate(const TimeUpdate& from); + TimeUpdate(TimeUpdate&& from) noexcept + : TimeUpdate() { *this = ::std::move(from); } - inline LossSocialization& operator=(const LossSocialization& from) { + inline TimeUpdate& operator=(const TimeUpdate& from) { CopyFrom(from); return *this; } - inline LossSocialization& operator=(LossSocialization&& from) noexcept { + inline TimeUpdate& operator=(TimeUpdate&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1967,19 +2087,19 @@ class LossSocialization PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const LossSocialization& default_instance(); + static const TimeUpdate& default_instance(); - static inline const LossSocialization* internal_default_instance() { - return reinterpret_cast( - &_LossSocialization_default_instance_); + static inline const TimeUpdate* internal_default_instance() { + return reinterpret_cast( + &_TimeUpdate_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; - friend void swap(LossSocialization& a, LossSocialization& b) { + friend void swap(TimeUpdate& a, TimeUpdate& b) { a.Swap(&b); } - inline void Swap(LossSocialization* other) { + inline void Swap(TimeUpdate* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1987,7 +2107,7 @@ class LossSocialization PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LossSocialization* other) { + void UnsafeArenaSwap(TimeUpdate* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1995,17 +2115,17 @@ class LossSocialization PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline LossSocialization* New() const final { - return CreateMaybeMessage(nullptr); + inline TimeUpdate* New() const final { + return CreateMaybeMessage(nullptr); } - LossSocialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + TimeUpdate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LossSocialization& from); - void MergeFrom(const LossSocialization& from); + void CopyFrom(const TimeUpdate& from); + void MergeFrom(const TimeUpdate& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2019,13 +2139,13 @@ class LossSocialization PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(LossSocialization* other); + void InternalSwap(TimeUpdate* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.LossSocialization"; + return "vega.events.v1.TimeUpdate"; } protected: - explicit LossSocialization(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TimeUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2045,83 +2165,47 @@ class LossSocialization PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - kAmountFieldNumber = 3, + kTimestampFieldNumber = 1, }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); - private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); - public: - - // int64 amount = 3 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::int64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::int64 value); + // int64 timestamp = 1 [json_name = "timestamp"]; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.LossSocialization) + // @@protoc_insertion_point(class_scope:vega.events.v1.TimeUpdate) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::int64 amount_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class TradeSettlement PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TradeSettlement) */ { - public: - inline TradeSettlement() : TradeSettlement(nullptr) {} - virtual ~TradeSettlement(); +class EpochEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.EpochEvent) */ { + public: + inline EpochEvent() : EpochEvent(nullptr) {} + virtual ~EpochEvent(); - TradeSettlement(const TradeSettlement& from); - TradeSettlement(TradeSettlement&& from) noexcept - : TradeSettlement() { + EpochEvent(const EpochEvent& from); + EpochEvent(EpochEvent&& from) noexcept + : EpochEvent() { *this = ::std::move(from); } - inline TradeSettlement& operator=(const TradeSettlement& from) { + inline EpochEvent& operator=(const EpochEvent& from) { CopyFrom(from); return *this; } - inline TradeSettlement& operator=(TradeSettlement&& from) noexcept { + inline EpochEvent& operator=(EpochEvent&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2139,19 +2223,19 @@ class TradeSettlement PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const TradeSettlement& default_instance(); + static const EpochEvent& default_instance(); - static inline const TradeSettlement* internal_default_instance() { - return reinterpret_cast( - &_TradeSettlement_default_instance_); + static inline const EpochEvent* internal_default_instance() { + return reinterpret_cast( + &_EpochEvent_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(TradeSettlement& a, TradeSettlement& b) { + friend void swap(EpochEvent& a, EpochEvent& b) { a.Swap(&b); } - inline void Swap(TradeSettlement* other) { + inline void Swap(EpochEvent* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2159,7 +2243,7 @@ class TradeSettlement PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TradeSettlement* other) { + void UnsafeArenaSwap(EpochEvent* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2167,17 +2251,17 @@ class TradeSettlement PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline TradeSettlement* New() const final { - return CreateMaybeMessage(nullptr); + inline EpochEvent* New() const final { + return CreateMaybeMessage(nullptr); } - TradeSettlement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + EpochEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const TradeSettlement& from); - void MergeFrom(const TradeSettlement& from); + void CopyFrom(const EpochEvent& from); + void MergeFrom(const EpochEvent& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2191,13 +2275,13 @@ class TradeSettlement PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TradeSettlement* other); + void InternalSwap(EpochEvent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.TradeSettlement"; + return "vega.events.v1.EpochEvent"; } protected: - explicit TradeSettlement(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit EpochEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2217,58 +2301,80 @@ class TradeSettlement PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kSizeFieldNumber = 1, - kPriceFieldNumber = 2, + kSeqFieldNumber = 1, + kStartTimeFieldNumber = 2, + kExpireTimeFieldNumber = 3, + kEndTimeFieldNumber = 4, }; - // int64 size = 1 [json_name = "size"]; - void clear_size(); - ::PROTOBUF_NAMESPACE_ID::int64 size() const; - void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + // uint64 seq = 1 [json_name = "seq"]; + void clear_seq(); + ::PROTOBUF_NAMESPACE_ID::uint64 seq() const; + void set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_size() const; - void _internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_seq() const; + void _internal_set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 price = 2 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + // int64 start_time = 2 [json_name = "startTime"]; + void clear_start_time(); + ::PROTOBUF_NAMESPACE_ID::int64 start_time() const; + void set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_start_time() const; + void _internal_set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.TradeSettlement) + // int64 expire_time = 3 [json_name = "expireTime"]; + void clear_expire_time(); + ::PROTOBUF_NAMESPACE_ID::int64 expire_time() const; + void set_expire_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_expire_time() const; + void _internal_set_expire_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // int64 end_time = 4 [json_name = "endTime"]; + void clear_end_time(); + ::PROTOBUF_NAMESPACE_ID::int64 end_time() const; + void set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_end_time() const; + void _internal_set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.EpochEvent) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int64 size_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; + ::PROTOBUF_NAMESPACE_ID::uint64 seq_; + ::PROTOBUF_NAMESPACE_ID::int64 start_time_; + ::PROTOBUF_NAMESPACE_ID::int64 expire_time_; + ::PROTOBUF_NAMESPACE_ID::int64 end_time_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class SettlePosition PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.SettlePosition) */ { +class TransferResponses PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TransferResponses) */ { public: - inline SettlePosition() : SettlePosition(nullptr) {} - virtual ~SettlePosition(); + inline TransferResponses() : TransferResponses(nullptr) {} + virtual ~TransferResponses(); - SettlePosition(const SettlePosition& from); - SettlePosition(SettlePosition&& from) noexcept - : SettlePosition() { + TransferResponses(const TransferResponses& from); + TransferResponses(TransferResponses&& from) noexcept + : TransferResponses() { *this = ::std::move(from); } - inline SettlePosition& operator=(const SettlePosition& from) { + inline TransferResponses& operator=(const TransferResponses& from) { CopyFrom(from); return *this; } - inline SettlePosition& operator=(SettlePosition&& from) noexcept { + inline TransferResponses& operator=(TransferResponses&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2286,19 +2392,19 @@ class SettlePosition PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SettlePosition& default_instance(); + static const TransferResponses& default_instance(); - static inline const SettlePosition* internal_default_instance() { - return reinterpret_cast( - &_SettlePosition_default_instance_); + static inline const TransferResponses* internal_default_instance() { + return reinterpret_cast( + &_TransferResponses_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; - friend void swap(SettlePosition& a, SettlePosition& b) { + friend void swap(TransferResponses& a, TransferResponses& b) { a.Swap(&b); } - inline void Swap(SettlePosition* other) { + inline void Swap(TransferResponses* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2306,7 +2412,7 @@ class SettlePosition PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SettlePosition* other) { + void UnsafeArenaSwap(TransferResponses* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2314,17 +2420,17 @@ class SettlePosition PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SettlePosition* New() const final { - return CreateMaybeMessage(nullptr); + inline TransferResponses* New() const final { + return CreateMaybeMessage(nullptr); } - SettlePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + TransferResponses* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SettlePosition& from); - void MergeFrom(const SettlePosition& from); + void CopyFrom(const TransferResponses& from); + void MergeFrom(const TransferResponses& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2338,13 +2444,13 @@ class SettlePosition PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SettlePosition* other); + void InternalSwap(TransferResponses* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.SettlePosition"; + return "vega.events.v1.TransferResponses"; } protected: - explicit SettlePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TransferResponses(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2364,103 +2470,56 @@ class SettlePosition PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTradeSettlementsFieldNumber = 4, - kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - kPriceFieldNumber = 3, + kResponsesFieldNumber = 1, }; - // repeated .vega.events.v1.TradeSettlement trade_settlements = 4 [json_name = "tradeSettlements"]; - int trade_settlements_size() const; - private: - int _internal_trade_settlements_size() const; - public: - void clear_trade_settlements(); - ::vega::events::v1::TradeSettlement* mutable_trade_settlements(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement >* - mutable_trade_settlements(); - private: - const ::vega::events::v1::TradeSettlement& _internal_trade_settlements(int index) const; - ::vega::events::v1::TradeSettlement* _internal_add_trade_settlements(); - public: - const ::vega::events::v1::TradeSettlement& trade_settlements(int index) const; - ::vega::events::v1::TradeSettlement* add_trade_settlements(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement >& - trade_settlements() const; - - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); + // repeated .vega.TransferResponse responses = 1 [json_name = "responses"]; + int responses_size() const; private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); + int _internal_responses_size() const; public: - - // uint64 price = 3 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + void clear_responses(); + ::vega::TransferResponse* mutable_responses(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse >* + mutable_responses(); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const ::vega::TransferResponse& _internal_responses(int index) const; + ::vega::TransferResponse* _internal_add_responses(); public: + const ::vega::TransferResponse& responses(int index) const; + ::vega::TransferResponse* add_responses(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse >& + responses() const; - // @@protoc_insertion_point(class_scope:vega.events.v1.SettlePosition) + // @@protoc_insertion_point(class_scope:vega.events.v1.TransferResponses) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement > trade_settlements_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferResponse > responses_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class SettleDistressed PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.SettleDistressed) */ { +class PositionResolution PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.PositionResolution) */ { public: - inline SettleDistressed() : SettleDistressed(nullptr) {} - virtual ~SettleDistressed(); + inline PositionResolution() : PositionResolution(nullptr) {} + virtual ~PositionResolution(); - SettleDistressed(const SettleDistressed& from); - SettleDistressed(SettleDistressed&& from) noexcept - : SettleDistressed() { + PositionResolution(const PositionResolution& from); + PositionResolution(PositionResolution&& from) noexcept + : PositionResolution() { *this = ::std::move(from); } - inline SettleDistressed& operator=(const SettleDistressed& from) { + inline PositionResolution& operator=(const PositionResolution& from) { CopyFrom(from); return *this; } - inline SettleDistressed& operator=(SettleDistressed&& from) noexcept { + inline PositionResolution& operator=(PositionResolution&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2478,19 +2537,19 @@ class SettleDistressed PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SettleDistressed& default_instance(); + static const PositionResolution& default_instance(); - static inline const SettleDistressed* internal_default_instance() { - return reinterpret_cast( - &_SettleDistressed_default_instance_); + static inline const PositionResolution* internal_default_instance() { + return reinterpret_cast( + &_PositionResolution_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; - friend void swap(SettleDistressed& a, SettleDistressed& b) { + friend void swap(PositionResolution& a, PositionResolution& b) { a.Swap(&b); } - inline void Swap(SettleDistressed* other) { + inline void Swap(PositionResolution* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2498,7 +2557,7 @@ class SettleDistressed PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SettleDistressed* other) { + void UnsafeArenaSwap(PositionResolution* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2506,17 +2565,17 @@ class SettleDistressed PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SettleDistressed* New() const final { - return CreateMaybeMessage(nullptr); + inline PositionResolution* New() const final { + return CreateMaybeMessage(nullptr); } - SettleDistressed* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PositionResolution* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SettleDistressed& from); - void MergeFrom(const SettleDistressed& from); + void CopyFrom(const PositionResolution& from); + void MergeFrom(const PositionResolution& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2530,13 +2589,13 @@ class SettleDistressed PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SettleDistressed* other); + void InternalSwap(PositionResolution* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.SettleDistressed"; + return "vega.events.v1.PositionResolution"; } protected: - explicit SettleDistressed(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PositionResolution(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2557,9 +2616,9 @@ class SettleDistressed PROTOBUF_FINAL : enum : int { kMarketIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - kMarginFieldNumber = 3, - kPriceFieldNumber = 4, + kDistressedFieldNumber = 2, + kClosedFieldNumber = 3, + kMarkPriceFieldNumber = 4, }; // string market_id = 1 [json_name = "marketId"]; void clear_market_id(); @@ -2577,41 +2636,34 @@ class SettleDistressed PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: - // string party_id = 2 [json_name = "partyId"]; - void clear_party_id(); - const std::string& party_id() const; - void set_party_id(const std::string& value); - void set_party_id(std::string&& value); - void set_party_id(const char* value); - void set_party_id(const char* value, size_t size); - std::string* mutable_party_id(); - std::string* release_party_id(); - void set_allocated_party_id(std::string* party_id); + // int64 distressed = 2 [json_name = "distressed"]; + void clear_distressed(); + ::PROTOBUF_NAMESPACE_ID::int64 distressed() const; + void set_distressed(::PROTOBUF_NAMESPACE_ID::int64 value); private: - const std::string& _internal_party_id() const; - void _internal_set_party_id(const std::string& value); - std::string* _internal_mutable_party_id(); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_distressed() const; + void _internal_set_distressed(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 margin = 3 [json_name = "margin"]; - void clear_margin(); - ::PROTOBUF_NAMESPACE_ID::uint64 margin() const; - void set_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); + // int64 closed = 3 [json_name = "closed"]; + void clear_closed(); + ::PROTOBUF_NAMESPACE_ID::int64 closed() const; + void set_closed(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_margin() const; - void _internal_set_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_closed() const; + void _internal_set_closed(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 price = 4 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + // uint64 mark_price = 4 [json_name = "markPrice"]; + void clear_mark_price(); + ::PROTOBUF_NAMESPACE_ID::uint64 mark_price() const; + void set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_mark_price() const; + void _internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.SettleDistressed) + // @@protoc_insertion_point(class_scope:vega.events.v1.PositionResolution) private: class _Internal; @@ -2619,31 +2671,31 @@ class SettleDistressed PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 margin_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; + ::PROTOBUF_NAMESPACE_ID::int64 distressed_; + ::PROTOBUF_NAMESPACE_ID::int64 closed_; + ::PROTOBUF_NAMESPACE_ID::uint64 mark_price_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class MarketTick PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.MarketTick) */ { +class LossSocialization PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.LossSocialization) */ { public: - inline MarketTick() : MarketTick(nullptr) {} - virtual ~MarketTick(); + inline LossSocialization() : LossSocialization(nullptr) {} + virtual ~LossSocialization(); - MarketTick(const MarketTick& from); - MarketTick(MarketTick&& from) noexcept - : MarketTick() { + LossSocialization(const LossSocialization& from); + LossSocialization(LossSocialization&& from) noexcept + : LossSocialization() { *this = ::std::move(from); } - inline MarketTick& operator=(const MarketTick& from) { + inline LossSocialization& operator=(const LossSocialization& from) { CopyFrom(from); return *this; } - inline MarketTick& operator=(MarketTick&& from) noexcept { + inline LossSocialization& operator=(LossSocialization&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2661,19 +2713,19 @@ class MarketTick PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const MarketTick& default_instance(); + static const LossSocialization& default_instance(); - static inline const MarketTick* internal_default_instance() { - return reinterpret_cast( - &_MarketTick_default_instance_); + static inline const LossSocialization* internal_default_instance() { + return reinterpret_cast( + &_LossSocialization_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; - friend void swap(MarketTick& a, MarketTick& b) { + friend void swap(LossSocialization& a, LossSocialization& b) { a.Swap(&b); } - inline void Swap(MarketTick* other) { + inline void Swap(LossSocialization* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2681,7 +2733,7 @@ class MarketTick PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarketTick* other) { + void UnsafeArenaSwap(LossSocialization* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2689,17 +2741,17 @@ class MarketTick PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline MarketTick* New() const final { - return CreateMaybeMessage(nullptr); + inline LossSocialization* New() const final { + return CreateMaybeMessage(nullptr); } - MarketTick* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LossSocialization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const MarketTick& from); - void MergeFrom(const MarketTick& from); + void CopyFrom(const LossSocialization& from); + void MergeFrom(const LossSocialization& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2713,13 +2765,13 @@ class MarketTick PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MarketTick* other); + void InternalSwap(LossSocialization* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.MarketTick"; + return "vega.events.v1.LossSocialization"; } protected: - explicit MarketTick(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LossSocialization(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2739,65 +2791,83 @@ class MarketTick PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kTimeFieldNumber = 2, + kMarketIdFieldNumber = 1, + kPartyIdFieldNumber = 2, + kAmountFieldNumber = 3, }; - // string id = 1 [json_name = "id"]; - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); + // string market_id = 1 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); public: - // int64 time = 2 [json_name = "time"]; - void clear_time(); - ::PROTOBUF_NAMESPACE_ID::int64 time() const; - void set_time(::PROTOBUF_NAMESPACE_ID::int64 value); + // string party_id = 2 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_time() const; - void _internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.MarketTick) + // int64 amount = 3 [json_name = "amount"]; + void clear_amount(); + ::PROTOBUF_NAMESPACE_ID::int64 amount() const; + void set_amount(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_amount() const; + void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.LossSocialization) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - ::PROTOBUF_NAMESPACE_ID::int64 time_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::int64 amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class AuctionEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.AuctionEvent) */ { +class TradeSettlement PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.TradeSettlement) */ { public: - inline AuctionEvent() : AuctionEvent(nullptr) {} - virtual ~AuctionEvent(); + inline TradeSettlement() : TradeSettlement(nullptr) {} + virtual ~TradeSettlement(); - AuctionEvent(const AuctionEvent& from); - AuctionEvent(AuctionEvent&& from) noexcept - : AuctionEvent() { + TradeSettlement(const TradeSettlement& from); + TradeSettlement(TradeSettlement&& from) noexcept + : TradeSettlement() { *this = ::std::move(from); } - inline AuctionEvent& operator=(const AuctionEvent& from) { + inline TradeSettlement& operator=(const TradeSettlement& from) { CopyFrom(from); return *this; } - inline AuctionEvent& operator=(AuctionEvent&& from) noexcept { + inline TradeSettlement& operator=(TradeSettlement&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2815,19 +2885,19 @@ class AuctionEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const AuctionEvent& default_instance(); + static const TradeSettlement& default_instance(); - static inline const AuctionEvent* internal_default_instance() { - return reinterpret_cast( - &_AuctionEvent_default_instance_); + static inline const TradeSettlement* internal_default_instance() { + return reinterpret_cast( + &_TradeSettlement_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; - friend void swap(AuctionEvent& a, AuctionEvent& b) { + friend void swap(TradeSettlement& a, TradeSettlement& b) { a.Swap(&b); } - inline void Swap(AuctionEvent* other) { + inline void Swap(TradeSettlement* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2835,7 +2905,7 @@ class AuctionEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuctionEvent* other) { + void UnsafeArenaSwap(TradeSettlement* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2843,17 +2913,17 @@ class AuctionEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline AuctionEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline TradeSettlement* New() const final { + return CreateMaybeMessage(nullptr); } - AuctionEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + TradeSettlement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const AuctionEvent& from); - void MergeFrom(const AuctionEvent& from); + void CopyFrom(const TradeSettlement& from); + void MergeFrom(const TradeSettlement& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2867,13 +2937,13 @@ class AuctionEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AuctionEvent* other); + void InternalSwap(TradeSettlement* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.AuctionEvent"; + return "vega.events.v1.TradeSettlement"; } protected: - explicit AuctionEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TradeSettlement(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2893,120 +2963,58 @@ class AuctionEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kMarketIdFieldNumber = 1, - kOpeningAuctionFieldNumber = 2, - kLeaveFieldNumber = 3, - kTriggerFieldNumber = 6, - kStartFieldNumber = 4, - kEndFieldNumber = 5, - kExtensionTriggerFieldNumber = 7, + kSizeFieldNumber = 1, + kPriceFieldNumber = 2, }; - // string market_id = 1 [json_name = "marketId"]; - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // bool opening_auction = 2 [json_name = "openingAuction"]; - void clear_opening_auction(); - bool opening_auction() const; - void set_opening_auction(bool value); - private: - bool _internal_opening_auction() const; - void _internal_set_opening_auction(bool value); - public: - - // bool leave = 3 [json_name = "leave"]; - void clear_leave(); - bool leave() const; - void set_leave(bool value); - private: - bool _internal_leave() const; - void _internal_set_leave(bool value); - public: - - // .vega.AuctionTrigger trigger = 6 [json_name = "trigger"]; - void clear_trigger(); - ::vega::AuctionTrigger trigger() const; - void set_trigger(::vega::AuctionTrigger value); - private: - ::vega::AuctionTrigger _internal_trigger() const; - void _internal_set_trigger(::vega::AuctionTrigger value); - public: - - // int64 start = 4 [json_name = "start"]; - void clear_start(); - ::PROTOBUF_NAMESPACE_ID::int64 start() const; - void set_start(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_start() const; - void _internal_set_start(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // int64 end = 5 [json_name = "end"]; - void clear_end(); - ::PROTOBUF_NAMESPACE_ID::int64 end() const; - void set_end(::PROTOBUF_NAMESPACE_ID::int64 value); + // int64 size = 1 [json_name = "size"]; + void clear_size(); + ::PROTOBUF_NAMESPACE_ID::int64 size() const; + void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_end() const; - void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_size() const; + void _internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // .vega.AuctionTrigger extension_trigger = 7 [json_name = "extensionTrigger"]; - void clear_extension_trigger(); - ::vega::AuctionTrigger extension_trigger() const; - void set_extension_trigger(::vega::AuctionTrigger value); + // uint64 price = 2 [json_name = "price"]; + void clear_price(); + ::PROTOBUF_NAMESPACE_ID::uint64 price() const; + void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::vega::AuctionTrigger _internal_extension_trigger() const; - void _internal_set_extension_trigger(::vega::AuctionTrigger value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; + void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.AuctionEvent) + // @@protoc_insertion_point(class_scope:vega.events.v1.TradeSettlement) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - bool opening_auction_; - bool leave_; - int trigger_; - ::PROTOBUF_NAMESPACE_ID::int64 start_; - ::PROTOBUF_NAMESPACE_ID::int64 end_; - int extension_trigger_; + ::PROTOBUF_NAMESPACE_ID::int64 size_; + ::PROTOBUF_NAMESPACE_ID::uint64 price_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class ValidatorUpdate PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.ValidatorUpdate) */ { +class SettlePosition PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.SettlePosition) */ { public: - inline ValidatorUpdate() : ValidatorUpdate(nullptr) {} - virtual ~ValidatorUpdate(); + inline SettlePosition() : SettlePosition(nullptr) {} + virtual ~SettlePosition(); - ValidatorUpdate(const ValidatorUpdate& from); - ValidatorUpdate(ValidatorUpdate&& from) noexcept - : ValidatorUpdate() { + SettlePosition(const SettlePosition& from); + SettlePosition(SettlePosition&& from) noexcept + : SettlePosition() { *this = ::std::move(from); } - inline ValidatorUpdate& operator=(const ValidatorUpdate& from) { + inline SettlePosition& operator=(const SettlePosition& from) { CopyFrom(from); return *this; } - inline ValidatorUpdate& operator=(ValidatorUpdate&& from) noexcept { + inline SettlePosition& operator=(SettlePosition&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -3024,19 +3032,19 @@ class ValidatorUpdate PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const ValidatorUpdate& default_instance(); + static const SettlePosition& default_instance(); - static inline const ValidatorUpdate* internal_default_instance() { - return reinterpret_cast( - &_ValidatorUpdate_default_instance_); + static inline const SettlePosition* internal_default_instance() { + return reinterpret_cast( + &_SettlePosition_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; - friend void swap(ValidatorUpdate& a, ValidatorUpdate& b) { + friend void swap(SettlePosition& a, SettlePosition& b) { a.Swap(&b); } - inline void Swap(ValidatorUpdate* other) { + inline void Swap(SettlePosition* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -3044,7 +3052,7 @@ class ValidatorUpdate PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ValidatorUpdate* other) { + void UnsafeArenaSwap(SettlePosition* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3052,17 +3060,17 @@ class ValidatorUpdate PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline ValidatorUpdate* New() const final { - return CreateMaybeMessage(nullptr); + inline SettlePosition* New() const final { + return CreateMaybeMessage(nullptr); } - ValidatorUpdate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SettlePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ValidatorUpdate& from); - void MergeFrom(const ValidatorUpdate& from); + void CopyFrom(const SettlePosition& from); + void MergeFrom(const SettlePosition& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3076,13 +3084,13 @@ class ValidatorUpdate PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ValidatorUpdate* other); + void InternalSwap(SettlePosition* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.ValidatorUpdate"; + return "vega.events.v1.SettlePosition"; } protected: - explicit ValidatorUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SettlePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -3102,108 +3110,103 @@ class ValidatorUpdate PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPubKeyFieldNumber = 1, - kTmPubKeyFieldNumber = 2, - kInfoUrlFieldNumber = 3, - kCountryFieldNumber = 4, + kTradeSettlementsFieldNumber = 4, + kMarketIdFieldNumber = 1, + kPartyIdFieldNumber = 2, + kPriceFieldNumber = 3, }; - // string pub_key = 1 [json_name = "pubKey"]; - void clear_pub_key(); - const std::string& pub_key() const; - void set_pub_key(const std::string& value); - void set_pub_key(std::string&& value); - void set_pub_key(const char* value); - void set_pub_key(const char* value, size_t size); - std::string* mutable_pub_key(); - std::string* release_pub_key(); - void set_allocated_pub_key(std::string* pub_key); - private: - const std::string& _internal_pub_key() const; - void _internal_set_pub_key(const std::string& value); - std::string* _internal_mutable_pub_key(); - public: - - // string tm_pub_key = 2 [json_name = "tmPubKey"]; - void clear_tm_pub_key(); - const std::string& tm_pub_key() const; - void set_tm_pub_key(const std::string& value); - void set_tm_pub_key(std::string&& value); - void set_tm_pub_key(const char* value); - void set_tm_pub_key(const char* value, size_t size); - std::string* mutable_tm_pub_key(); - std::string* release_tm_pub_key(); - void set_allocated_tm_pub_key(std::string* tm_pub_key); + // repeated .vega.events.v1.TradeSettlement trade_settlements = 4 [json_name = "tradeSettlements"]; + int trade_settlements_size() const; private: - const std::string& _internal_tm_pub_key() const; - void _internal_set_tm_pub_key(const std::string& value); - std::string* _internal_mutable_tm_pub_key(); + int _internal_trade_settlements_size() const; + public: + void clear_trade_settlements(); + ::vega::events::v1::TradeSettlement* mutable_trade_settlements(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement >* + mutable_trade_settlements(); + private: + const ::vega::events::v1::TradeSettlement& _internal_trade_settlements(int index) const; + ::vega::events::v1::TradeSettlement* _internal_add_trade_settlements(); public: + const ::vega::events::v1::TradeSettlement& trade_settlements(int index) const; + ::vega::events::v1::TradeSettlement* add_trade_settlements(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement >& + trade_settlements() const; - // string info_url = 3 [json_name = "infoUrl"]; - void clear_info_url(); - const std::string& info_url() const; - void set_info_url(const std::string& value); - void set_info_url(std::string&& value); - void set_info_url(const char* value); - void set_info_url(const char* value, size_t size); - std::string* mutable_info_url(); - std::string* release_info_url(); - void set_allocated_info_url(std::string* info_url); + // string market_id = 1 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); private: - const std::string& _internal_info_url() const; - void _internal_set_info_url(const std::string& value); - std::string* _internal_mutable_info_url(); + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); public: - // string country = 4 [json_name = "country"]; - void clear_country(); - const std::string& country() const; - void set_country(const std::string& value); - void set_country(std::string&& value); - void set_country(const char* value); - void set_country(const char* value, size_t size); - std::string* mutable_country(); - std::string* release_country(); - void set_allocated_country(std::string* country); + // string party_id = 2 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); private: - const std::string& _internal_country() const; - void _internal_set_country(const std::string& value); - std::string* _internal_mutable_country(); + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); public: - // @@protoc_insertion_point(class_scope:vega.events.v1.ValidatorUpdate) + // uint64 price = 3 [json_name = "price"]; + void clear_price(); + ::PROTOBUF_NAMESPACE_ID::uint64 price() const; + void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; + void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.events.v1.SettlePosition) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pub_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tm_pub_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::TradeSettlement > trade_settlements_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 price_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_events_2fv1_2fevents_2eproto; }; // ------------------------------------------------------------------- -class BusEvent PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.BusEvent) */ { +class SettleDistressed PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.SettleDistressed) */ { public: - inline BusEvent() : BusEvent(nullptr) {} - virtual ~BusEvent(); + inline SettleDistressed() : SettleDistressed(nullptr) {} + virtual ~SettleDistressed(); - BusEvent(const BusEvent& from); - BusEvent(BusEvent&& from) noexcept - : BusEvent() { + SettleDistressed(const SettleDistressed& from); + SettleDistressed(SettleDistressed&& from) noexcept + : SettleDistressed() { *this = ::std::move(from); } - inline BusEvent& operator=(const BusEvent& from) { + inline SettleDistressed& operator=(const SettleDistressed& from) { CopyFrom(from); return *this; } - inline BusEvent& operator=(BusEvent&& from) noexcept { + inline SettleDistressed& operator=(SettleDistressed&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -3221,57 +3224,19 @@ class BusEvent PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const BusEvent& default_instance(); - - enum EventCase { - kTimeUpdate = 101, - kTransferResponses = 102, - kPositionResolution = 103, - kOrder = 104, - kAccount = 105, - kParty = 106, - kTrade = 107, - kMarginLevels = 108, - kProposal = 109, - kVote = 110, - kMarketData = 111, - kNodeSignature = 112, - kLossSocialization = 113, - kSettlePosition = 114, - kSettleDistressed = 115, - kMarketCreated = 116, - kAsset = 117, - kMarketTick = 118, - kWithdrawal = 119, - kDeposit = 120, - kAuction = 121, - kRiskFactor = 122, - kNetworkParameter = 123, - kLiquidityProvision = 124, - kMarketUpdated = 125, - kOracleSpec = 126, - kOracleData = 127, - kDelegationBalance = 129, - kPendingDelegationBalance = 130, - kEpochEvent = 131, - kValidatorUpdate = 132, - kStakingEvent = 133, - kMarket = 1001, - kTxErrEvent = 2001, - EVENT_NOT_SET = 0, - }; + static const SettleDistressed& default_instance(); - static inline const BusEvent* internal_default_instance() { - return reinterpret_cast( - &_BusEvent_default_instance_); + static inline const SettleDistressed* internal_default_instance() { + return reinterpret_cast( + &_SettleDistressed_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 15; - friend void swap(BusEvent& a, BusEvent& b) { + friend void swap(SettleDistressed& a, SettleDistressed& b) { a.Swap(&b); } - inline void Swap(BusEvent* other) { + inline void Swap(SettleDistressed* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -3279,7 +3244,7 @@ class BusEvent PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BusEvent* other) { + void UnsafeArenaSwap(SettleDistressed* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3287,17 +3252,17 @@ class BusEvent PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline BusEvent* New() const final { - return CreateMaybeMessage(nullptr); + inline SettleDistressed* New() const final { + return CreateMaybeMessage(nullptr); } - BusEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SettleDistressed* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const BusEvent& from); - void MergeFrom(const BusEvent& from); + void CopyFrom(const SettleDistressed& from); + void MergeFrom(const SettleDistressed& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3311,13 +3276,13 @@ class BusEvent PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(BusEvent* other); + void InternalSwap(SettleDistressed* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.events.v1.BusEvent"; + return "vega.events.v1.SettleDistressed"; } protected: - explicit BusEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SettleDistressed(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -3337,1020 +3302,2687 @@ class BusEvent PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kBlockFieldNumber = 2, - kTypeFieldNumber = 3, - kTimeUpdateFieldNumber = 101, - kTransferResponsesFieldNumber = 102, - kPositionResolutionFieldNumber = 103, - kOrderFieldNumber = 104, - kAccountFieldNumber = 105, - kPartyFieldNumber = 106, - kTradeFieldNumber = 107, - kMarginLevelsFieldNumber = 108, - kProposalFieldNumber = 109, - kVoteFieldNumber = 110, - kMarketDataFieldNumber = 111, - kNodeSignatureFieldNumber = 112, - kLossSocializationFieldNumber = 113, - kSettlePositionFieldNumber = 114, - kSettleDistressedFieldNumber = 115, - kMarketCreatedFieldNumber = 116, - kAssetFieldNumber = 117, - kMarketTickFieldNumber = 118, - kWithdrawalFieldNumber = 119, - kDepositFieldNumber = 120, - kAuctionFieldNumber = 121, - kRiskFactorFieldNumber = 122, - kNetworkParameterFieldNumber = 123, - kLiquidityProvisionFieldNumber = 124, - kMarketUpdatedFieldNumber = 125, - kOracleSpecFieldNumber = 126, - kOracleDataFieldNumber = 127, - kDelegationBalanceFieldNumber = 129, - kPendingDelegationBalanceFieldNumber = 130, - kEpochEventFieldNumber = 131, - kValidatorUpdateFieldNumber = 132, - kStakingEventFieldNumber = 133, - kMarketFieldNumber = 1001, - kTxErrEventFieldNumber = 2001, + kMarketIdFieldNumber = 1, + kPartyIdFieldNumber = 2, + kMarginFieldNumber = 3, + kPriceFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); + // string market_id = 1 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); public: - // string block = 2 [json_name = "block"]; - void clear_block(); - const std::string& block() const; - void set_block(const std::string& value); - void set_block(std::string&& value); - void set_block(const char* value); - void set_block(const char* value, size_t size); - std::string* mutable_block(); - std::string* release_block(); - void set_allocated_block(std::string* block); + // string party_id = 2 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); private: - const std::string& _internal_block() const; - void _internal_set_block(const std::string& value); - std::string* _internal_mutable_block(); + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); public: - // .vega.events.v1.BusEventType type = 3 [json_name = "type"]; - void clear_type(); - ::vega::events::v1::BusEventType type() const; - void set_type(::vega::events::v1::BusEventType value); + // uint64 margin = 3 [json_name = "margin"]; + void clear_margin(); + ::PROTOBUF_NAMESPACE_ID::uint64 margin() const; + void set_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::vega::events::v1::BusEventType _internal_type() const; - void _internal_set_type(::vega::events::v1::BusEventType value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_margin() const; + void _internal_set_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // .vega.events.v1.TimeUpdate time_update = 101 [json_name = "timeUpdate"]; - bool has_time_update() const; - private: - bool _internal_has_time_update() const; - public: - void clear_time_update(); - const ::vega::events::v1::TimeUpdate& time_update() const; - ::vega::events::v1::TimeUpdate* release_time_update(); - ::vega::events::v1::TimeUpdate* mutable_time_update(); - void set_allocated_time_update(::vega::events::v1::TimeUpdate* time_update); + // uint64 price = 4 [json_name = "price"]; + void clear_price(); + ::PROTOBUF_NAMESPACE_ID::uint64 price() const; + void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::vega::events::v1::TimeUpdate& _internal_time_update() const; - ::vega::events::v1::TimeUpdate* _internal_mutable_time_update(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; + void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void unsafe_arena_set_allocated_time_update( - ::vega::events::v1::TimeUpdate* time_update); - ::vega::events::v1::TimeUpdate* unsafe_arena_release_time_update(); - // .vega.events.v1.TransferResponses transfer_responses = 102 [json_name = "transferResponses"]; - bool has_transfer_responses() const; - private: - bool _internal_has_transfer_responses() const; - public: - void clear_transfer_responses(); - const ::vega::events::v1::TransferResponses& transfer_responses() const; - ::vega::events::v1::TransferResponses* release_transfer_responses(); - ::vega::events::v1::TransferResponses* mutable_transfer_responses(); - void set_allocated_transfer_responses(::vega::events::v1::TransferResponses* transfer_responses); - private: - const ::vega::events::v1::TransferResponses& _internal_transfer_responses() const; - ::vega::events::v1::TransferResponses* _internal_mutable_transfer_responses(); - public: - void unsafe_arena_set_allocated_transfer_responses( - ::vega::events::v1::TransferResponses* transfer_responses); - ::vega::events::v1::TransferResponses* unsafe_arena_release_transfer_responses(); + // @@protoc_insertion_point(class_scope:vega.events.v1.SettleDistressed) + private: + class _Internal; - // .vega.events.v1.PositionResolution position_resolution = 103 [json_name = "positionResolution"]; - bool has_position_resolution() const; - private: - bool _internal_has_position_resolution() const; - public: - void clear_position_resolution(); - const ::vega::events::v1::PositionResolution& position_resolution() const; - ::vega::events::v1::PositionResolution* release_position_resolution(); - ::vega::events::v1::PositionResolution* mutable_position_resolution(); - void set_allocated_position_resolution(::vega::events::v1::PositionResolution* position_resolution); - private: - const ::vega::events::v1::PositionResolution& _internal_position_resolution() const; - ::vega::events::v1::PositionResolution* _internal_mutable_position_resolution(); - public: - void unsafe_arena_set_allocated_position_resolution( - ::vega::events::v1::PositionResolution* position_resolution); - ::vega::events::v1::PositionResolution* unsafe_arena_release_position_resolution(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 margin_; + ::PROTOBUF_NAMESPACE_ID::uint64 price_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; +}; +// ------------------------------------------------------------------- - // .vega.Order order = 104 [json_name = "order"]; - bool has_order() const; - private: - bool _internal_has_order() const; - public: - void clear_order(); - const ::vega::Order& order() const; - ::vega::Order* release_order(); - ::vega::Order* mutable_order(); - void set_allocated_order(::vega::Order* order); - private: - const ::vega::Order& _internal_order() const; - ::vega::Order* _internal_mutable_order(); - public: - void unsafe_arena_set_allocated_order( - ::vega::Order* order); - ::vega::Order* unsafe_arena_release_order(); +class MarketTick PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.MarketTick) */ { + public: + inline MarketTick() : MarketTick(nullptr) {} + virtual ~MarketTick(); - // .vega.Account account = 105 [json_name = "account"]; - bool has_account() const; - private: - bool _internal_has_account() const; - public: - void clear_account(); - const ::vega::Account& account() const; - ::vega::Account* release_account(); - ::vega::Account* mutable_account(); - void set_allocated_account(::vega::Account* account); - private: - const ::vega::Account& _internal_account() const; - ::vega::Account* _internal_mutable_account(); - public: - void unsafe_arena_set_allocated_account( - ::vega::Account* account); - ::vega::Account* unsafe_arena_release_account(); + MarketTick(const MarketTick& from); + MarketTick(MarketTick&& from) noexcept + : MarketTick() { + *this = ::std::move(from); + } - // .vega.Party party = 106 [json_name = "party"]; - bool has_party() const; - private: - bool _internal_has_party() const; - public: - void clear_party(); - const ::vega::Party& party() const; - ::vega::Party* release_party(); - ::vega::Party* mutable_party(); - void set_allocated_party(::vega::Party* party); - private: - const ::vega::Party& _internal_party() const; - ::vega::Party* _internal_mutable_party(); - public: - void unsafe_arena_set_allocated_party( - ::vega::Party* party); - ::vega::Party* unsafe_arena_release_party(); + inline MarketTick& operator=(const MarketTick& from) { + CopyFrom(from); + return *this; + } + inline MarketTick& operator=(MarketTick&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - // .vega.Trade trade = 107 [json_name = "trade"]; - bool has_trade() const; - private: - bool _internal_has_trade() const; - public: - void clear_trade(); - const ::vega::Trade& trade() const; - ::vega::Trade* release_trade(); - ::vega::Trade* mutable_trade(); - void set_allocated_trade(::vega::Trade* trade); - private: - const ::vega::Trade& _internal_trade() const; - ::vega::Trade* _internal_mutable_trade(); - public: - void unsafe_arena_set_allocated_trade( - ::vega::Trade* trade); - ::vega::Trade* unsafe_arena_release_trade(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const MarketTick& default_instance(); - // .vega.MarginLevels margin_levels = 108 [json_name = "marginLevels"]; - bool has_margin_levels() const; - private: - bool _internal_has_margin_levels() const; - public: - void clear_margin_levels(); - const ::vega::MarginLevels& margin_levels() const; - ::vega::MarginLevels* release_margin_levels(); - ::vega::MarginLevels* mutable_margin_levels(); - void set_allocated_margin_levels(::vega::MarginLevels* margin_levels); - private: - const ::vega::MarginLevels& _internal_margin_levels() const; - ::vega::MarginLevels* _internal_mutable_margin_levels(); - public: - void unsafe_arena_set_allocated_margin_levels( - ::vega::MarginLevels* margin_levels); - ::vega::MarginLevels* unsafe_arena_release_margin_levels(); + static inline const MarketTick* internal_default_instance() { + return reinterpret_cast( + &_MarketTick_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; - // .vega.Proposal proposal = 109 [json_name = "proposal"]; - bool has_proposal() const; - private: - bool _internal_has_proposal() const; - public: - void clear_proposal(); - const ::vega::Proposal& proposal() const; - ::vega::Proposal* release_proposal(); - ::vega::Proposal* mutable_proposal(); - void set_allocated_proposal(::vega::Proposal* proposal); - private: - const ::vega::Proposal& _internal_proposal() const; - ::vega::Proposal* _internal_mutable_proposal(); - public: - void unsafe_arena_set_allocated_proposal( - ::vega::Proposal* proposal); - ::vega::Proposal* unsafe_arena_release_proposal(); + friend void swap(MarketTick& a, MarketTick& b) { + a.Swap(&b); + } + inline void Swap(MarketTick* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MarketTick* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MarketTick* New() const final { + return CreateMaybeMessage(nullptr); + } + + MarketTick* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const MarketTick& from); + void MergeFrom(const MarketTick& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } - // .vega.Vote vote = 110 [json_name = "vote"]; - bool has_vote() const; private: - bool _internal_has_vote() const; - public: - void clear_vote(); - const ::vega::Vote& vote() const; - ::vega::Vote* release_vote(); - ::vega::Vote* mutable_vote(); - void set_allocated_vote(::vega::Vote* vote); + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MarketTick* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.events.v1.MarketTick"; + } + protected: + explicit MarketTick(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - const ::vega::Vote& _internal_vote() const; - ::vega::Vote* _internal_mutable_vote(); + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - void unsafe_arena_set_allocated_vote( - ::vega::Vote* vote); - ::vega::Vote* unsafe_arena_release_vote(); - // .vega.MarketData market_data = 111 [json_name = "marketData"]; - bool has_market_data() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - bool _internal_has_market_data() const; + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_events_2fv1_2fevents_2eproto); + return ::descriptor_table_events_2fv1_2fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + public: - void clear_market_data(); - const ::vega::MarketData& market_data() const; - ::vega::MarketData* release_market_data(); - ::vega::MarketData* mutable_market_data(); - void set_allocated_market_data(::vega::MarketData* market_data); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + kTimeFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::vega::MarketData& _internal_market_data() const; - ::vega::MarketData* _internal_mutable_market_data(); + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - void unsafe_arena_set_allocated_market_data( - ::vega::MarketData* market_data); - ::vega::MarketData* unsafe_arena_release_market_data(); - // .vega.commands.v1.NodeSignature node_signature = 112 [json_name = "nodeSignature"]; - bool has_node_signature() const; + // int64 time = 2 [json_name = "time"]; + void clear_time(); + ::PROTOBUF_NAMESPACE_ID::int64 time() const; + void set_time(::PROTOBUF_NAMESPACE_ID::int64 value); private: - bool _internal_has_node_signature() const; + ::PROTOBUF_NAMESPACE_ID::int64 _internal_time() const; + void _internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value); public: - void clear_node_signature(); - const ::vega::commands::v1::NodeSignature& node_signature() const; - ::vega::commands::v1::NodeSignature* release_node_signature(); - ::vega::commands::v1::NodeSignature* mutable_node_signature(); - void set_allocated_node_signature(::vega::commands::v1::NodeSignature* node_signature); - private: - const ::vega::commands::v1::NodeSignature& _internal_node_signature() const; - ::vega::commands::v1::NodeSignature* _internal_mutable_node_signature(); - public: - void unsafe_arena_set_allocated_node_signature( - ::vega::commands::v1::NodeSignature* node_signature); - ::vega::commands::v1::NodeSignature* unsafe_arena_release_node_signature(); - // .vega.events.v1.LossSocialization loss_socialization = 113 [json_name = "lossSocialization"]; - bool has_loss_socialization() const; + // @@protoc_insertion_point(class_scope:vega.events.v1.MarketTick) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::int64 time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; +}; +// ------------------------------------------------------------------- + +class AuctionEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.AuctionEvent) */ { + public: + inline AuctionEvent() : AuctionEvent(nullptr) {} + virtual ~AuctionEvent(); + + AuctionEvent(const AuctionEvent& from); + AuctionEvent(AuctionEvent&& from) noexcept + : AuctionEvent() { + *this = ::std::move(from); + } + + inline AuctionEvent& operator=(const AuctionEvent& from) { + CopyFrom(from); + return *this; + } + inline AuctionEvent& operator=(AuctionEvent&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AuctionEvent& default_instance(); + + static inline const AuctionEvent* internal_default_instance() { + return reinterpret_cast( + &_AuctionEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(AuctionEvent& a, AuctionEvent& b) { + a.Swap(&b); + } + inline void Swap(AuctionEvent* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuctionEvent* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AuctionEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + AuctionEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AuctionEvent& from); + void MergeFrom(const AuctionEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: - bool _internal_has_loss_socialization() const; - public: - void clear_loss_socialization(); - const ::vega::events::v1::LossSocialization& loss_socialization() const; - ::vega::events::v1::LossSocialization* release_loss_socialization(); - ::vega::events::v1::LossSocialization* mutable_loss_socialization(); - void set_allocated_loss_socialization(::vega::events::v1::LossSocialization* loss_socialization); + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AuctionEvent* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.events.v1.AuctionEvent"; + } + protected: + explicit AuctionEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - const ::vega::events::v1::LossSocialization& _internal_loss_socialization() const; - ::vega::events::v1::LossSocialization* _internal_mutable_loss_socialization(); + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - void unsafe_arena_set_allocated_loss_socialization( - ::vega::events::v1::LossSocialization* loss_socialization); - ::vega::events::v1::LossSocialization* unsafe_arena_release_loss_socialization(); - // .vega.events.v1.SettlePosition settle_position = 114 [json_name = "settlePosition"]; - bool has_settle_position() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - bool _internal_has_settle_position() const; + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_events_2fv1_2fevents_2eproto); + return ::descriptor_table_events_2fv1_2fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + public: - void clear_settle_position(); - const ::vega::events::v1::SettlePosition& settle_position() const; - ::vega::events::v1::SettlePosition* release_settle_position(); - ::vega::events::v1::SettlePosition* mutable_settle_position(); - void set_allocated_settle_position(::vega::events::v1::SettlePosition* settle_position); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMarketIdFieldNumber = 1, + kOpeningAuctionFieldNumber = 2, + kLeaveFieldNumber = 3, + kTriggerFieldNumber = 6, + kStartFieldNumber = 4, + kEndFieldNumber = 5, + kExtensionTriggerFieldNumber = 7, + }; + // string market_id = 1 [json_name = "marketId"]; + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); private: - const ::vega::events::v1::SettlePosition& _internal_settle_position() const; - ::vega::events::v1::SettlePosition* _internal_mutable_settle_position(); + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); public: - void unsafe_arena_set_allocated_settle_position( - ::vega::events::v1::SettlePosition* settle_position); - ::vega::events::v1::SettlePosition* unsafe_arena_release_settle_position(); - // .vega.events.v1.SettleDistressed settle_distressed = 115 [json_name = "settleDistressed"]; - bool has_settle_distressed() const; + // bool opening_auction = 2 [json_name = "openingAuction"]; + void clear_opening_auction(); + bool opening_auction() const; + void set_opening_auction(bool value); private: - bool _internal_has_settle_distressed() const; + bool _internal_opening_auction() const; + void _internal_set_opening_auction(bool value); public: - void clear_settle_distressed(); - const ::vega::events::v1::SettleDistressed& settle_distressed() const; - ::vega::events::v1::SettleDistressed* release_settle_distressed(); - ::vega::events::v1::SettleDistressed* mutable_settle_distressed(); - void set_allocated_settle_distressed(::vega::events::v1::SettleDistressed* settle_distressed); + + // bool leave = 3 [json_name = "leave"]; + void clear_leave(); + bool leave() const; + void set_leave(bool value); private: - const ::vega::events::v1::SettleDistressed& _internal_settle_distressed() const; - ::vega::events::v1::SettleDistressed* _internal_mutable_settle_distressed(); + bool _internal_leave() const; + void _internal_set_leave(bool value); public: - void unsafe_arena_set_allocated_settle_distressed( - ::vega::events::v1::SettleDistressed* settle_distressed); - ::vega::events::v1::SettleDistressed* unsafe_arena_release_settle_distressed(); - // .vega.Market market_created = 116 [json_name = "marketCreated"]; - bool has_market_created() const; + // .vega.AuctionTrigger trigger = 6 [json_name = "trigger"]; + void clear_trigger(); + ::vega::AuctionTrigger trigger() const; + void set_trigger(::vega::AuctionTrigger value); private: - bool _internal_has_market_created() const; + ::vega::AuctionTrigger _internal_trigger() const; + void _internal_set_trigger(::vega::AuctionTrigger value); public: - void clear_market_created(); - const ::vega::Market& market_created() const; - ::vega::Market* release_market_created(); - ::vega::Market* mutable_market_created(); - void set_allocated_market_created(::vega::Market* market_created); + + // int64 start = 4 [json_name = "start"]; + void clear_start(); + ::PROTOBUF_NAMESPACE_ID::int64 start() const; + void set_start(::PROTOBUF_NAMESPACE_ID::int64 value); private: - const ::vega::Market& _internal_market_created() const; - ::vega::Market* _internal_mutable_market_created(); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_start() const; + void _internal_set_start(::PROTOBUF_NAMESPACE_ID::int64 value); public: - void unsafe_arena_set_allocated_market_created( - ::vega::Market* market_created); - ::vega::Market* unsafe_arena_release_market_created(); - // .vega.Asset asset = 117 [json_name = "asset"]; - bool has_asset() const; + // int64 end = 5 [json_name = "end"]; + void clear_end(); + ::PROTOBUF_NAMESPACE_ID::int64 end() const; + void set_end(::PROTOBUF_NAMESPACE_ID::int64 value); private: - bool _internal_has_asset() const; + ::PROTOBUF_NAMESPACE_ID::int64 _internal_end() const; + void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int64 value); public: - void clear_asset(); - const ::vega::Asset& asset() const; - ::vega::Asset* release_asset(); - ::vega::Asset* mutable_asset(); - void set_allocated_asset(::vega::Asset* asset); + + // .vega.AuctionTrigger extension_trigger = 7 [json_name = "extensionTrigger"]; + void clear_extension_trigger(); + ::vega::AuctionTrigger extension_trigger() const; + void set_extension_trigger(::vega::AuctionTrigger value); private: - const ::vega::Asset& _internal_asset() const; - ::vega::Asset* _internal_mutable_asset(); + ::vega::AuctionTrigger _internal_extension_trigger() const; + void _internal_set_extension_trigger(::vega::AuctionTrigger value); public: - void unsafe_arena_set_allocated_asset( - ::vega::Asset* asset); - ::vega::Asset* unsafe_arena_release_asset(); - // .vega.events.v1.MarketTick market_tick = 118 [json_name = "marketTick"]; - bool has_market_tick() const; - private: - bool _internal_has_market_tick() const; - public: - void clear_market_tick(); - const ::vega::events::v1::MarketTick& market_tick() const; - ::vega::events::v1::MarketTick* release_market_tick(); - ::vega::events::v1::MarketTick* mutable_market_tick(); - void set_allocated_market_tick(::vega::events::v1::MarketTick* market_tick); - private: - const ::vega::events::v1::MarketTick& _internal_market_tick() const; - ::vega::events::v1::MarketTick* _internal_mutable_market_tick(); - public: - void unsafe_arena_set_allocated_market_tick( - ::vega::events::v1::MarketTick* market_tick); - ::vega::events::v1::MarketTick* unsafe_arena_release_market_tick(); + // @@protoc_insertion_point(class_scope:vega.events.v1.AuctionEvent) + private: + class _Internal; - // .vega.Withdrawal withdrawal = 119 [json_name = "withdrawal"]; - bool has_withdrawal() const; - private: - bool _internal_has_withdrawal() const; - public: - void clear_withdrawal(); - const ::vega::Withdrawal& withdrawal() const; - ::vega::Withdrawal* release_withdrawal(); - ::vega::Withdrawal* mutable_withdrawal(); - void set_allocated_withdrawal(::vega::Withdrawal* withdrawal); - private: - const ::vega::Withdrawal& _internal_withdrawal() const; - ::vega::Withdrawal* _internal_mutable_withdrawal(); - public: - void unsafe_arena_set_allocated_withdrawal( - ::vega::Withdrawal* withdrawal); - ::vega::Withdrawal* unsafe_arena_release_withdrawal(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + bool opening_auction_; + bool leave_; + int trigger_; + ::PROTOBUF_NAMESPACE_ID::int64 start_; + ::PROTOBUF_NAMESPACE_ID::int64 end_; + int extension_trigger_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; +}; +// ------------------------------------------------------------------- - // .vega.Deposit deposit = 120 [json_name = "deposit"]; - bool has_deposit() const; - private: - bool _internal_has_deposit() const; - public: - void clear_deposit(); - const ::vega::Deposit& deposit() const; - ::vega::Deposit* release_deposit(); - ::vega::Deposit* mutable_deposit(); - void set_allocated_deposit(::vega::Deposit* deposit); - private: - const ::vega::Deposit& _internal_deposit() const; - ::vega::Deposit* _internal_mutable_deposit(); - public: - void unsafe_arena_set_allocated_deposit( - ::vega::Deposit* deposit); - ::vega::Deposit* unsafe_arena_release_deposit(); +class ValidatorUpdate PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.ValidatorUpdate) */ { + public: + inline ValidatorUpdate() : ValidatorUpdate(nullptr) {} + virtual ~ValidatorUpdate(); + + ValidatorUpdate(const ValidatorUpdate& from); + ValidatorUpdate(ValidatorUpdate&& from) noexcept + : ValidatorUpdate() { + *this = ::std::move(from); + } + + inline ValidatorUpdate& operator=(const ValidatorUpdate& from) { + CopyFrom(from); + return *this; + } + inline ValidatorUpdate& operator=(ValidatorUpdate&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ValidatorUpdate& default_instance(); + + static inline const ValidatorUpdate* internal_default_instance() { + return reinterpret_cast( + &_ValidatorUpdate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(ValidatorUpdate& a, ValidatorUpdate& b) { + a.Swap(&b); + } + inline void Swap(ValidatorUpdate* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ValidatorUpdate* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ValidatorUpdate* New() const final { + return CreateMaybeMessage(nullptr); + } + + ValidatorUpdate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ValidatorUpdate& from); + void MergeFrom(const ValidatorUpdate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } - // .vega.events.v1.AuctionEvent auction = 121 [json_name = "auction"]; - bool has_auction() const; private: - bool _internal_has_auction() const; - public: - void clear_auction(); - const ::vega::events::v1::AuctionEvent& auction() const; - ::vega::events::v1::AuctionEvent* release_auction(); - ::vega::events::v1::AuctionEvent* mutable_auction(); - void set_allocated_auction(::vega::events::v1::AuctionEvent* auction); + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ValidatorUpdate* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.events.v1.ValidatorUpdate"; + } + protected: + explicit ValidatorUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - const ::vega::events::v1::AuctionEvent& _internal_auction() const; - ::vega::events::v1::AuctionEvent* _internal_mutable_auction(); + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - void unsafe_arena_set_allocated_auction( - ::vega::events::v1::AuctionEvent* auction); - ::vega::events::v1::AuctionEvent* unsafe_arena_release_auction(); - // .vega.RiskFactor risk_factor = 122 [json_name = "riskFactor"]; - bool has_risk_factor() const; - private: - bool _internal_has_risk_factor() const; - public: - void clear_risk_factor(); - const ::vega::RiskFactor& risk_factor() const; - ::vega::RiskFactor* release_risk_factor(); - ::vega::RiskFactor* mutable_risk_factor(); - void set_allocated_risk_factor(::vega::RiskFactor* risk_factor); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - const ::vega::RiskFactor& _internal_risk_factor() const; - ::vega::RiskFactor* _internal_mutable_risk_factor(); + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_events_2fv1_2fevents_2eproto); + return ::descriptor_table_events_2fv1_2fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + public: - void unsafe_arena_set_allocated_risk_factor( - ::vega::RiskFactor* risk_factor); - ::vega::RiskFactor* unsafe_arena_release_risk_factor(); - // .vega.NetworkParameter network_parameter = 123 [json_name = "networkParameter"]; - bool has_network_parameter() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVegaPubKeyFieldNumber = 1, + kEthereumAddressFieldNumber = 2, + kTmPubKeyFieldNumber = 3, + kInfoUrlFieldNumber = 4, + kCountryFieldNumber = 5, + }; + // string vega_pub_key = 1 [json_name = "vegaPubKey"]; + void clear_vega_pub_key(); + const std::string& vega_pub_key() const; + void set_vega_pub_key(const std::string& value); + void set_vega_pub_key(std::string&& value); + void set_vega_pub_key(const char* value); + void set_vega_pub_key(const char* value, size_t size); + std::string* mutable_vega_pub_key(); + std::string* release_vega_pub_key(); + void set_allocated_vega_pub_key(std::string* vega_pub_key); + private: + const std::string& _internal_vega_pub_key() const; + void _internal_set_vega_pub_key(const std::string& value); + std::string* _internal_mutable_vega_pub_key(); + public: + + // string ethereum_address = 2 [json_name = "ethereumAddress"]; + void clear_ethereum_address(); + const std::string& ethereum_address() const; + void set_ethereum_address(const std::string& value); + void set_ethereum_address(std::string&& value); + void set_ethereum_address(const char* value); + void set_ethereum_address(const char* value, size_t size); + std::string* mutable_ethereum_address(); + std::string* release_ethereum_address(); + void set_allocated_ethereum_address(std::string* ethereum_address); + private: + const std::string& _internal_ethereum_address() const; + void _internal_set_ethereum_address(const std::string& value); + std::string* _internal_mutable_ethereum_address(); + public: + + // string tm_pub_key = 3 [json_name = "tmPubKey"]; + void clear_tm_pub_key(); + const std::string& tm_pub_key() const; + void set_tm_pub_key(const std::string& value); + void set_tm_pub_key(std::string&& value); + void set_tm_pub_key(const char* value); + void set_tm_pub_key(const char* value, size_t size); + std::string* mutable_tm_pub_key(); + std::string* release_tm_pub_key(); + void set_allocated_tm_pub_key(std::string* tm_pub_key); private: - bool _internal_has_network_parameter() const; + const std::string& _internal_tm_pub_key() const; + void _internal_set_tm_pub_key(const std::string& value); + std::string* _internal_mutable_tm_pub_key(); public: - void clear_network_parameter(); - const ::vega::NetworkParameter& network_parameter() const; - ::vega::NetworkParameter* release_network_parameter(); - ::vega::NetworkParameter* mutable_network_parameter(); - void set_allocated_network_parameter(::vega::NetworkParameter* network_parameter); + + // string info_url = 4 [json_name = "infoUrl"]; + void clear_info_url(); + const std::string& info_url() const; + void set_info_url(const std::string& value); + void set_info_url(std::string&& value); + void set_info_url(const char* value); + void set_info_url(const char* value, size_t size); + std::string* mutable_info_url(); + std::string* release_info_url(); + void set_allocated_info_url(std::string* info_url); private: - const ::vega::NetworkParameter& _internal_network_parameter() const; - ::vega::NetworkParameter* _internal_mutable_network_parameter(); + const std::string& _internal_info_url() const; + void _internal_set_info_url(const std::string& value); + std::string* _internal_mutable_info_url(); public: - void unsafe_arena_set_allocated_network_parameter( - ::vega::NetworkParameter* network_parameter); - ::vega::NetworkParameter* unsafe_arena_release_network_parameter(); - // .vega.LiquidityProvision liquidity_provision = 124 [json_name = "liquidityProvision"]; - bool has_liquidity_provision() const; + // string country = 5 [json_name = "country"]; + void clear_country(); + const std::string& country() const; + void set_country(const std::string& value); + void set_country(std::string&& value); + void set_country(const char* value); + void set_country(const char* value, size_t size); + std::string* mutable_country(); + std::string* release_country(); + void set_allocated_country(std::string* country); private: - bool _internal_has_liquidity_provision() const; + const std::string& _internal_country() const; + void _internal_set_country(const std::string& value); + std::string* _internal_mutable_country(); public: - void clear_liquidity_provision(); - const ::vega::LiquidityProvision& liquidity_provision() const; - ::vega::LiquidityProvision* release_liquidity_provision(); - ::vega::LiquidityProvision* mutable_liquidity_provision(); - void set_allocated_liquidity_provision(::vega::LiquidityProvision* liquidity_provision); - private: - const ::vega::LiquidityProvision& _internal_liquidity_provision() const; - ::vega::LiquidityProvision* _internal_mutable_liquidity_provision(); - public: - void unsafe_arena_set_allocated_liquidity_provision( - ::vega::LiquidityProvision* liquidity_provision); - ::vega::LiquidityProvision* unsafe_arena_release_liquidity_provision(); - // .vega.Market market_updated = 125 [json_name = "marketUpdated"]; - bool has_market_updated() const; - private: - bool _internal_has_market_updated() const; - public: - void clear_market_updated(); - const ::vega::Market& market_updated() const; - ::vega::Market* release_market_updated(); - ::vega::Market* mutable_market_updated(); - void set_allocated_market_updated(::vega::Market* market_updated); - private: - const ::vega::Market& _internal_market_updated() const; - ::vega::Market* _internal_mutable_market_updated(); - public: - void unsafe_arena_set_allocated_market_updated( - ::vega::Market* market_updated); - ::vega::Market* unsafe_arena_release_market_updated(); + // @@protoc_insertion_point(class_scope:vega.events.v1.ValidatorUpdate) + private: + class _Internal; - // .oracles.v1.OracleSpec oracle_spec = 126 [json_name = "oracleSpec"]; - bool has_oracle_spec() const; - private: - bool _internal_has_oracle_spec() const; - public: - void clear_oracle_spec(); - const ::oracles::v1::OracleSpec& oracle_spec() const; - ::oracles::v1::OracleSpec* release_oracle_spec(); - ::oracles::v1::OracleSpec* mutable_oracle_spec(); - void set_allocated_oracle_spec(::oracles::v1::OracleSpec* oracle_spec); - private: - const ::oracles::v1::OracleSpec& _internal_oracle_spec() const; - ::oracles::v1::OracleSpec* _internal_mutable_oracle_spec(); - public: - void unsafe_arena_set_allocated_oracle_spec( - ::oracles::v1::OracleSpec* oracle_spec); - ::oracles::v1::OracleSpec* unsafe_arena_release_oracle_spec(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_pub_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ethereum_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tm_pub_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; +}; +// ------------------------------------------------------------------- - // .oracles.v1.OracleData oracle_data = 127 [json_name = "oracleData"]; - bool has_oracle_data() const; - private: - bool _internal_has_oracle_data() const; - public: - void clear_oracle_data(); - const ::oracles::v1::OracleData& oracle_data() const; - ::oracles::v1::OracleData* release_oracle_data(); - ::oracles::v1::OracleData* mutable_oracle_data(); - void set_allocated_oracle_data(::oracles::v1::OracleData* oracle_data); - private: - const ::oracles::v1::OracleData& _internal_oracle_data() const; - ::oracles::v1::OracleData* _internal_mutable_oracle_data(); - public: - void unsafe_arena_set_allocated_oracle_data( - ::oracles::v1::OracleData* oracle_data); - ::oracles::v1::OracleData* unsafe_arena_release_oracle_data(); +class BusEvent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.events.v1.BusEvent) */ { + public: + inline BusEvent() : BusEvent(nullptr) {} + virtual ~BusEvent(); - // .vega.events.v1.DelegationBalanceEvent delegation_balance = 129 [json_name = "delegationBalance"]; - bool has_delegation_balance() const; - private: - bool _internal_has_delegation_balance() const; - public: - void clear_delegation_balance(); - const ::vega::events::v1::DelegationBalanceEvent& delegation_balance() const; - ::vega::events::v1::DelegationBalanceEvent* release_delegation_balance(); - ::vega::events::v1::DelegationBalanceEvent* mutable_delegation_balance(); - void set_allocated_delegation_balance(::vega::events::v1::DelegationBalanceEvent* delegation_balance); - private: - const ::vega::events::v1::DelegationBalanceEvent& _internal_delegation_balance() const; - ::vega::events::v1::DelegationBalanceEvent* _internal_mutable_delegation_balance(); - public: - void unsafe_arena_set_allocated_delegation_balance( - ::vega::events::v1::DelegationBalanceEvent* delegation_balance); - ::vega::events::v1::DelegationBalanceEvent* unsafe_arena_release_delegation_balance(); + BusEvent(const BusEvent& from); + BusEvent(BusEvent&& from) noexcept + : BusEvent() { + *this = ::std::move(from); + } - // .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - bool has_pending_delegation_balance() const; - private: - bool _internal_has_pending_delegation_balance() const; - public: - void clear_pending_delegation_balance(); - const ::vega::events::v1::PendingDelegationBalanceEvent& pending_delegation_balance() const; - ::vega::events::v1::PendingDelegationBalanceEvent* release_pending_delegation_balance(); - ::vega::events::v1::PendingDelegationBalanceEvent* mutable_pending_delegation_balance(); - void set_allocated_pending_delegation_balance(::vega::events::v1::PendingDelegationBalanceEvent* pending_delegation_balance); - private: - const ::vega::events::v1::PendingDelegationBalanceEvent& _internal_pending_delegation_balance() const; - ::vega::events::v1::PendingDelegationBalanceEvent* _internal_mutable_pending_delegation_balance(); - public: - void unsafe_arena_set_allocated_pending_delegation_balance( - ::vega::events::v1::PendingDelegationBalanceEvent* pending_delegation_balance); - ::vega::events::v1::PendingDelegationBalanceEvent* unsafe_arena_release_pending_delegation_balance(); + inline BusEvent& operator=(const BusEvent& from) { + CopyFrom(from); + return *this; + } + inline BusEvent& operator=(BusEvent&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - // .vega.events.v1.EpochEvent epoch_event = 131 [json_name = "epochEvent"]; - bool has_epoch_event() const; - private: - bool _internal_has_epoch_event() const; - public: - void clear_epoch_event(); - const ::vega::events::v1::EpochEvent& epoch_event() const; - ::vega::events::v1::EpochEvent* release_epoch_event(); - ::vega::events::v1::EpochEvent* mutable_epoch_event(); - void set_allocated_epoch_event(::vega::events::v1::EpochEvent* epoch_event); - private: - const ::vega::events::v1::EpochEvent& _internal_epoch_event() const; - ::vega::events::v1::EpochEvent* _internal_mutable_epoch_event(); - public: - void unsafe_arena_set_allocated_epoch_event( - ::vega::events::v1::EpochEvent* epoch_event); - ::vega::events::v1::EpochEvent* unsafe_arena_release_epoch_event(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const BusEvent& default_instance(); - // .vega.events.v1.ValidatorUpdate validator_update = 132 [json_name = "validatorUpdate"]; - bool has_validator_update() const; - private: - bool _internal_has_validator_update() const; - public: - void clear_validator_update(); - const ::vega::events::v1::ValidatorUpdate& validator_update() const; - ::vega::events::v1::ValidatorUpdate* release_validator_update(); - ::vega::events::v1::ValidatorUpdate* mutable_validator_update(); - void set_allocated_validator_update(::vega::events::v1::ValidatorUpdate* validator_update); - private: - const ::vega::events::v1::ValidatorUpdate& _internal_validator_update() const; - ::vega::events::v1::ValidatorUpdate* _internal_mutable_validator_update(); - public: - void unsafe_arena_set_allocated_validator_update( - ::vega::events::v1::ValidatorUpdate* validator_update); - ::vega::events::v1::ValidatorUpdate* unsafe_arena_release_validator_update(); + enum EventCase { + kTimeUpdate = 101, + kTransferResponses = 102, + kPositionResolution = 103, + kOrder = 104, + kAccount = 105, + kParty = 106, + kTrade = 107, + kMarginLevels = 108, + kProposal = 109, + kVote = 110, + kMarketData = 111, + kNodeSignature = 112, + kLossSocialization = 113, + kSettlePosition = 114, + kSettleDistressed = 115, + kMarketCreated = 116, + kAsset = 117, + kMarketTick = 118, + kWithdrawal = 119, + kDeposit = 120, + kAuction = 121, + kRiskFactor = 122, + kNetworkParameter = 123, + kLiquidityProvision = 124, + kMarketUpdated = 125, + kOracleSpec = 126, + kOracleData = 127, + kDelegationBalance = 129, + kValidatorScore = 130, + kEpochEvent = 131, + kValidatorUpdate = 132, + kStakeLinking = 133, + kRewardPayout = 134, + kCheckpoint = 135, + kMarket = 1001, + kTxErrEvent = 2001, + EVENT_NOT_SET = 0, + }; + + static inline const BusEvent* internal_default_instance() { + return reinterpret_cast( + &_BusEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(BusEvent& a, BusEvent& b) { + a.Swap(&b); + } + inline void Swap(BusEvent* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BusEvent* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BusEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + BusEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BusEvent& from); + void MergeFrom(const BusEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } - // .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - bool has_staking_event() const; private: - bool _internal_has_staking_event() const; - public: - void clear_staking_event(); - const ::vega::events::v1::StakingEvent& staking_event() const; - ::vega::events::v1::StakingEvent* release_staking_event(); - ::vega::events::v1::StakingEvent* mutable_staking_event(); - void set_allocated_staking_event(::vega::events::v1::StakingEvent* staking_event); + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BusEvent* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.events.v1.BusEvent"; + } + protected: + explicit BusEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - const ::vega::events::v1::StakingEvent& _internal_staking_event() const; - ::vega::events::v1::StakingEvent* _internal_mutable_staking_event(); + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - void unsafe_arena_set_allocated_staking_event( - ::vega::events::v1::StakingEvent* staking_event); - ::vega::events::v1::StakingEvent* unsafe_arena_release_staking_event(); - // .vega.events.v1.MarketEvent market = 1001 [json_name = "market"]; - bool has_market() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - bool _internal_has_market() const; + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_events_2fv1_2fevents_2eproto); + return ::descriptor_table_events_2fv1_2fevents_2eproto.file_level_metadata[kIndexInFileMessages]; + } + public: - void clear_market(); - const ::vega::events::v1::MarketEvent& market() const; - ::vega::events::v1::MarketEvent* release_market(); - ::vega::events::v1::MarketEvent* mutable_market(); - void set_allocated_market(::vega::events::v1::MarketEvent* market); + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + kBlockFieldNumber = 2, + kTypeFieldNumber = 3, + kTimeUpdateFieldNumber = 101, + kTransferResponsesFieldNumber = 102, + kPositionResolutionFieldNumber = 103, + kOrderFieldNumber = 104, + kAccountFieldNumber = 105, + kPartyFieldNumber = 106, + kTradeFieldNumber = 107, + kMarginLevelsFieldNumber = 108, + kProposalFieldNumber = 109, + kVoteFieldNumber = 110, + kMarketDataFieldNumber = 111, + kNodeSignatureFieldNumber = 112, + kLossSocializationFieldNumber = 113, + kSettlePositionFieldNumber = 114, + kSettleDistressedFieldNumber = 115, + kMarketCreatedFieldNumber = 116, + kAssetFieldNumber = 117, + kMarketTickFieldNumber = 118, + kWithdrawalFieldNumber = 119, + kDepositFieldNumber = 120, + kAuctionFieldNumber = 121, + kRiskFactorFieldNumber = 122, + kNetworkParameterFieldNumber = 123, + kLiquidityProvisionFieldNumber = 124, + kMarketUpdatedFieldNumber = 125, + kOracleSpecFieldNumber = 126, + kOracleDataFieldNumber = 127, + kDelegationBalanceFieldNumber = 129, + kValidatorScoreFieldNumber = 130, + kEpochEventFieldNumber = 131, + kValidatorUpdateFieldNumber = 132, + kStakeLinkingFieldNumber = 133, + kRewardPayoutFieldNumber = 134, + kCheckpointFieldNumber = 135, + kMarketFieldNumber = 1001, + kTxErrEventFieldNumber = 2001, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::vega::events::v1::MarketEvent& _internal_market() const; - ::vega::events::v1::MarketEvent* _internal_mutable_market(); + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - void unsafe_arena_set_allocated_market( - ::vega::events::v1::MarketEvent* market); - ::vega::events::v1::MarketEvent* unsafe_arena_release_market(); - // .vega.events.v1.TxErrorEvent tx_err_event = 2001 [json_name = "txErrEvent"]; - bool has_tx_err_event() const; + // string block = 2 [json_name = "block"]; + void clear_block(); + const std::string& block() const; + void set_block(const std::string& value); + void set_block(std::string&& value); + void set_block(const char* value); + void set_block(const char* value, size_t size); + std::string* mutable_block(); + std::string* release_block(); + void set_allocated_block(std::string* block); private: - bool _internal_has_tx_err_event() const; + const std::string& _internal_block() const; + void _internal_set_block(const std::string& value); + std::string* _internal_mutable_block(); public: - void clear_tx_err_event(); - const ::vega::events::v1::TxErrorEvent& tx_err_event() const; - ::vega::events::v1::TxErrorEvent* release_tx_err_event(); - ::vega::events::v1::TxErrorEvent* mutable_tx_err_event(); - void set_allocated_tx_err_event(::vega::events::v1::TxErrorEvent* tx_err_event); + + // .vega.events.v1.BusEventType type = 3 [json_name = "type"]; + void clear_type(); + ::vega::events::v1::BusEventType type() const; + void set_type(::vega::events::v1::BusEventType value); private: - const ::vega::events::v1::TxErrorEvent& _internal_tx_err_event() const; - ::vega::events::v1::TxErrorEvent* _internal_mutable_tx_err_event(); + ::vega::events::v1::BusEventType _internal_type() const; + void _internal_set_type(::vega::events::v1::BusEventType value); public: - void unsafe_arena_set_allocated_tx_err_event( - ::vega::events::v1::TxErrorEvent* tx_err_event); - ::vega::events::v1::TxErrorEvent* unsafe_arena_release_tx_err_event(); - void clear_event(); - EventCase event_case() const; - // @@protoc_insertion_point(class_scope:vega.events.v1.BusEvent) - private: - class _Internal; - void set_has_time_update(); - void set_has_transfer_responses(); - void set_has_position_resolution(); - void set_has_order(); - void set_has_account(); - void set_has_party(); - void set_has_trade(); - void set_has_margin_levels(); - void set_has_proposal(); - void set_has_vote(); - void set_has_market_data(); - void set_has_node_signature(); - void set_has_loss_socialization(); - void set_has_settle_position(); - void set_has_settle_distressed(); - void set_has_market_created(); - void set_has_asset(); - void set_has_market_tick(); - void set_has_withdrawal(); - void set_has_deposit(); - void set_has_auction(); - void set_has_risk_factor(); - void set_has_network_parameter(); - void set_has_liquidity_provision(); - void set_has_market_updated(); - void set_has_oracle_spec(); - void set_has_oracle_data(); - void set_has_delegation_balance(); - void set_has_pending_delegation_balance(); - void set_has_epoch_event(); - void set_has_validator_update(); - void set_has_staking_event(); - void set_has_market(); - void set_has_tx_err_event(); + // .vega.events.v1.TimeUpdate time_update = 101 [json_name = "timeUpdate"]; + bool has_time_update() const; + private: + bool _internal_has_time_update() const; + public: + void clear_time_update(); + const ::vega::events::v1::TimeUpdate& time_update() const; + ::vega::events::v1::TimeUpdate* release_time_update(); + ::vega::events::v1::TimeUpdate* mutable_time_update(); + void set_allocated_time_update(::vega::events::v1::TimeUpdate* time_update); + private: + const ::vega::events::v1::TimeUpdate& _internal_time_update() const; + ::vega::events::v1::TimeUpdate* _internal_mutable_time_update(); + public: + void unsafe_arena_set_allocated_time_update( + ::vega::events::v1::TimeUpdate* time_update); + ::vega::events::v1::TimeUpdate* unsafe_arena_release_time_update(); - inline bool has_event() const; - inline void clear_has_event(); + // .vega.events.v1.TransferResponses transfer_responses = 102 [json_name = "transferResponses"]; + bool has_transfer_responses() const; + private: + bool _internal_has_transfer_responses() const; + public: + void clear_transfer_responses(); + const ::vega::events::v1::TransferResponses& transfer_responses() const; + ::vega::events::v1::TransferResponses* release_transfer_responses(); + ::vega::events::v1::TransferResponses* mutable_transfer_responses(); + void set_allocated_transfer_responses(::vega::events::v1::TransferResponses* transfer_responses); + private: + const ::vega::events::v1::TransferResponses& _internal_transfer_responses() const; + ::vega::events::v1::TransferResponses* _internal_mutable_transfer_responses(); + public: + void unsafe_arena_set_allocated_transfer_responses( + ::vega::events::v1::TransferResponses* transfer_responses); + ::vega::events::v1::TransferResponses* unsafe_arena_release_transfer_responses(); - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr block_; - int type_; - union EventUnion { - EventUnion() {} - ::vega::events::v1::TimeUpdate* time_update_; - ::vega::events::v1::TransferResponses* transfer_responses_; - ::vega::events::v1::PositionResolution* position_resolution_; - ::vega::Order* order_; - ::vega::Account* account_; - ::vega::Party* party_; - ::vega::Trade* trade_; - ::vega::MarginLevels* margin_levels_; - ::vega::Proposal* proposal_; - ::vega::Vote* vote_; - ::vega::MarketData* market_data_; - ::vega::commands::v1::NodeSignature* node_signature_; - ::vega::events::v1::LossSocialization* loss_socialization_; - ::vega::events::v1::SettlePosition* settle_position_; - ::vega::events::v1::SettleDistressed* settle_distressed_; - ::vega::Market* market_created_; - ::vega::Asset* asset_; - ::vega::events::v1::MarketTick* market_tick_; - ::vega::Withdrawal* withdrawal_; - ::vega::Deposit* deposit_; - ::vega::events::v1::AuctionEvent* auction_; - ::vega::RiskFactor* risk_factor_; - ::vega::NetworkParameter* network_parameter_; - ::vega::LiquidityProvision* liquidity_provision_; - ::vega::Market* market_updated_; - ::oracles::v1::OracleSpec* oracle_spec_; - ::oracles::v1::OracleData* oracle_data_; - ::vega::events::v1::DelegationBalanceEvent* delegation_balance_; - ::vega::events::v1::PendingDelegationBalanceEvent* pending_delegation_balance_; - ::vega::events::v1::EpochEvent* epoch_event_; - ::vega::events::v1::ValidatorUpdate* validator_update_; - ::vega::events::v1::StakingEvent* staking_event_; - ::vega::events::v1::MarketEvent* market_; - ::vega::events::v1::TxErrorEvent* tx_err_event_; - } event_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + // .vega.events.v1.PositionResolution position_resolution = 103 [json_name = "positionResolution"]; + bool has_position_resolution() const; + private: + bool _internal_has_position_resolution() const; + public: + void clear_position_resolution(); + const ::vega::events::v1::PositionResolution& position_resolution() const; + ::vega::events::v1::PositionResolution* release_position_resolution(); + ::vega::events::v1::PositionResolution* mutable_position_resolution(); + void set_allocated_position_resolution(::vega::events::v1::PositionResolution* position_resolution); + private: + const ::vega::events::v1::PositionResolution& _internal_position_resolution() const; + ::vega::events::v1::PositionResolution* _internal_mutable_position_resolution(); + public: + void unsafe_arena_set_allocated_position_resolution( + ::vega::events::v1::PositionResolution* position_resolution); + ::vega::events::v1::PositionResolution* unsafe_arena_release_position_resolution(); + + // .vega.Order order = 104 [json_name = "order"]; + bool has_order() const; + private: + bool _internal_has_order() const; + public: + void clear_order(); + const ::vega::Order& order() const; + ::vega::Order* release_order(); + ::vega::Order* mutable_order(); + void set_allocated_order(::vega::Order* order); + private: + const ::vega::Order& _internal_order() const; + ::vega::Order* _internal_mutable_order(); + public: + void unsafe_arena_set_allocated_order( + ::vega::Order* order); + ::vega::Order* unsafe_arena_release_order(); + + // .vega.Account account = 105 [json_name = "account"]; + bool has_account() const; + private: + bool _internal_has_account() const; + public: + void clear_account(); + const ::vega::Account& account() const; + ::vega::Account* release_account(); + ::vega::Account* mutable_account(); + void set_allocated_account(::vega::Account* account); + private: + const ::vega::Account& _internal_account() const; + ::vega::Account* _internal_mutable_account(); + public: + void unsafe_arena_set_allocated_account( + ::vega::Account* account); + ::vega::Account* unsafe_arena_release_account(); + + // .vega.Party party = 106 [json_name = "party"]; + bool has_party() const; + private: + bool _internal_has_party() const; + public: + void clear_party(); + const ::vega::Party& party() const; + ::vega::Party* release_party(); + ::vega::Party* mutable_party(); + void set_allocated_party(::vega::Party* party); + private: + const ::vega::Party& _internal_party() const; + ::vega::Party* _internal_mutable_party(); + public: + void unsafe_arena_set_allocated_party( + ::vega::Party* party); + ::vega::Party* unsafe_arena_release_party(); + + // .vega.Trade trade = 107 [json_name = "trade"]; + bool has_trade() const; + private: + bool _internal_has_trade() const; + public: + void clear_trade(); + const ::vega::Trade& trade() const; + ::vega::Trade* release_trade(); + ::vega::Trade* mutable_trade(); + void set_allocated_trade(::vega::Trade* trade); + private: + const ::vega::Trade& _internal_trade() const; + ::vega::Trade* _internal_mutable_trade(); + public: + void unsafe_arena_set_allocated_trade( + ::vega::Trade* trade); + ::vega::Trade* unsafe_arena_release_trade(); + + // .vega.MarginLevels margin_levels = 108 [json_name = "marginLevels"]; + bool has_margin_levels() const; + private: + bool _internal_has_margin_levels() const; + public: + void clear_margin_levels(); + const ::vega::MarginLevels& margin_levels() const; + ::vega::MarginLevels* release_margin_levels(); + ::vega::MarginLevels* mutable_margin_levels(); + void set_allocated_margin_levels(::vega::MarginLevels* margin_levels); + private: + const ::vega::MarginLevels& _internal_margin_levels() const; + ::vega::MarginLevels* _internal_mutable_margin_levels(); + public: + void unsafe_arena_set_allocated_margin_levels( + ::vega::MarginLevels* margin_levels); + ::vega::MarginLevels* unsafe_arena_release_margin_levels(); + + // .vega.Proposal proposal = 109 [json_name = "proposal"]; + bool has_proposal() const; + private: + bool _internal_has_proposal() const; + public: + void clear_proposal(); + const ::vega::Proposal& proposal() const; + ::vega::Proposal* release_proposal(); + ::vega::Proposal* mutable_proposal(); + void set_allocated_proposal(::vega::Proposal* proposal); + private: + const ::vega::Proposal& _internal_proposal() const; + ::vega::Proposal* _internal_mutable_proposal(); + public: + void unsafe_arena_set_allocated_proposal( + ::vega::Proposal* proposal); + ::vega::Proposal* unsafe_arena_release_proposal(); + + // .vega.Vote vote = 110 [json_name = "vote"]; + bool has_vote() const; + private: + bool _internal_has_vote() const; + public: + void clear_vote(); + const ::vega::Vote& vote() const; + ::vega::Vote* release_vote(); + ::vega::Vote* mutable_vote(); + void set_allocated_vote(::vega::Vote* vote); + private: + const ::vega::Vote& _internal_vote() const; + ::vega::Vote* _internal_mutable_vote(); + public: + void unsafe_arena_set_allocated_vote( + ::vega::Vote* vote); + ::vega::Vote* unsafe_arena_release_vote(); + + // .vega.MarketData market_data = 111 [json_name = "marketData"]; + bool has_market_data() const; + private: + bool _internal_has_market_data() const; + public: + void clear_market_data(); + const ::vega::MarketData& market_data() const; + ::vega::MarketData* release_market_data(); + ::vega::MarketData* mutable_market_data(); + void set_allocated_market_data(::vega::MarketData* market_data); + private: + const ::vega::MarketData& _internal_market_data() const; + ::vega::MarketData* _internal_mutable_market_data(); + public: + void unsafe_arena_set_allocated_market_data( + ::vega::MarketData* market_data); + ::vega::MarketData* unsafe_arena_release_market_data(); + + // .vega.commands.v1.NodeSignature node_signature = 112 [json_name = "nodeSignature"]; + bool has_node_signature() const; + private: + bool _internal_has_node_signature() const; + public: + void clear_node_signature(); + const ::vega::commands::v1::NodeSignature& node_signature() const; + ::vega::commands::v1::NodeSignature* release_node_signature(); + ::vega::commands::v1::NodeSignature* mutable_node_signature(); + void set_allocated_node_signature(::vega::commands::v1::NodeSignature* node_signature); + private: + const ::vega::commands::v1::NodeSignature& _internal_node_signature() const; + ::vega::commands::v1::NodeSignature* _internal_mutable_node_signature(); + public: + void unsafe_arena_set_allocated_node_signature( + ::vega::commands::v1::NodeSignature* node_signature); + ::vega::commands::v1::NodeSignature* unsafe_arena_release_node_signature(); + + // .vega.events.v1.LossSocialization loss_socialization = 113 [json_name = "lossSocialization"]; + bool has_loss_socialization() const; + private: + bool _internal_has_loss_socialization() const; + public: + void clear_loss_socialization(); + const ::vega::events::v1::LossSocialization& loss_socialization() const; + ::vega::events::v1::LossSocialization* release_loss_socialization(); + ::vega::events::v1::LossSocialization* mutable_loss_socialization(); + void set_allocated_loss_socialization(::vega::events::v1::LossSocialization* loss_socialization); + private: + const ::vega::events::v1::LossSocialization& _internal_loss_socialization() const; + ::vega::events::v1::LossSocialization* _internal_mutable_loss_socialization(); + public: + void unsafe_arena_set_allocated_loss_socialization( + ::vega::events::v1::LossSocialization* loss_socialization); + ::vega::events::v1::LossSocialization* unsafe_arena_release_loss_socialization(); + + // .vega.events.v1.SettlePosition settle_position = 114 [json_name = "settlePosition"]; + bool has_settle_position() const; + private: + bool _internal_has_settle_position() const; + public: + void clear_settle_position(); + const ::vega::events::v1::SettlePosition& settle_position() const; + ::vega::events::v1::SettlePosition* release_settle_position(); + ::vega::events::v1::SettlePosition* mutable_settle_position(); + void set_allocated_settle_position(::vega::events::v1::SettlePosition* settle_position); + private: + const ::vega::events::v1::SettlePosition& _internal_settle_position() const; + ::vega::events::v1::SettlePosition* _internal_mutable_settle_position(); + public: + void unsafe_arena_set_allocated_settle_position( + ::vega::events::v1::SettlePosition* settle_position); + ::vega::events::v1::SettlePosition* unsafe_arena_release_settle_position(); + + // .vega.events.v1.SettleDistressed settle_distressed = 115 [json_name = "settleDistressed"]; + bool has_settle_distressed() const; + private: + bool _internal_has_settle_distressed() const; + public: + void clear_settle_distressed(); + const ::vega::events::v1::SettleDistressed& settle_distressed() const; + ::vega::events::v1::SettleDistressed* release_settle_distressed(); + ::vega::events::v1::SettleDistressed* mutable_settle_distressed(); + void set_allocated_settle_distressed(::vega::events::v1::SettleDistressed* settle_distressed); + private: + const ::vega::events::v1::SettleDistressed& _internal_settle_distressed() const; + ::vega::events::v1::SettleDistressed* _internal_mutable_settle_distressed(); + public: + void unsafe_arena_set_allocated_settle_distressed( + ::vega::events::v1::SettleDistressed* settle_distressed); + ::vega::events::v1::SettleDistressed* unsafe_arena_release_settle_distressed(); + + // .vega.Market market_created = 116 [json_name = "marketCreated"]; + bool has_market_created() const; + private: + bool _internal_has_market_created() const; + public: + void clear_market_created(); + const ::vega::Market& market_created() const; + ::vega::Market* release_market_created(); + ::vega::Market* mutable_market_created(); + void set_allocated_market_created(::vega::Market* market_created); + private: + const ::vega::Market& _internal_market_created() const; + ::vega::Market* _internal_mutable_market_created(); + public: + void unsafe_arena_set_allocated_market_created( + ::vega::Market* market_created); + ::vega::Market* unsafe_arena_release_market_created(); + + // .vega.Asset asset = 117 [json_name = "asset"]; + bool has_asset() const; + private: + bool _internal_has_asset() const; + public: + void clear_asset(); + const ::vega::Asset& asset() const; + ::vega::Asset* release_asset(); + ::vega::Asset* mutable_asset(); + void set_allocated_asset(::vega::Asset* asset); + private: + const ::vega::Asset& _internal_asset() const; + ::vega::Asset* _internal_mutable_asset(); + public: + void unsafe_arena_set_allocated_asset( + ::vega::Asset* asset); + ::vega::Asset* unsafe_arena_release_asset(); + + // .vega.events.v1.MarketTick market_tick = 118 [json_name = "marketTick"]; + bool has_market_tick() const; + private: + bool _internal_has_market_tick() const; + public: + void clear_market_tick(); + const ::vega::events::v1::MarketTick& market_tick() const; + ::vega::events::v1::MarketTick* release_market_tick(); + ::vega::events::v1::MarketTick* mutable_market_tick(); + void set_allocated_market_tick(::vega::events::v1::MarketTick* market_tick); + private: + const ::vega::events::v1::MarketTick& _internal_market_tick() const; + ::vega::events::v1::MarketTick* _internal_mutable_market_tick(); + public: + void unsafe_arena_set_allocated_market_tick( + ::vega::events::v1::MarketTick* market_tick); + ::vega::events::v1::MarketTick* unsafe_arena_release_market_tick(); + + // .vega.Withdrawal withdrawal = 119 [json_name = "withdrawal"]; + bool has_withdrawal() const; + private: + bool _internal_has_withdrawal() const; + public: + void clear_withdrawal(); + const ::vega::Withdrawal& withdrawal() const; + ::vega::Withdrawal* release_withdrawal(); + ::vega::Withdrawal* mutable_withdrawal(); + void set_allocated_withdrawal(::vega::Withdrawal* withdrawal); + private: + const ::vega::Withdrawal& _internal_withdrawal() const; + ::vega::Withdrawal* _internal_mutable_withdrawal(); + public: + void unsafe_arena_set_allocated_withdrawal( + ::vega::Withdrawal* withdrawal); + ::vega::Withdrawal* unsafe_arena_release_withdrawal(); + + // .vega.Deposit deposit = 120 [json_name = "deposit"]; + bool has_deposit() const; + private: + bool _internal_has_deposit() const; + public: + void clear_deposit(); + const ::vega::Deposit& deposit() const; + ::vega::Deposit* release_deposit(); + ::vega::Deposit* mutable_deposit(); + void set_allocated_deposit(::vega::Deposit* deposit); + private: + const ::vega::Deposit& _internal_deposit() const; + ::vega::Deposit* _internal_mutable_deposit(); + public: + void unsafe_arena_set_allocated_deposit( + ::vega::Deposit* deposit); + ::vega::Deposit* unsafe_arena_release_deposit(); + + // .vega.events.v1.AuctionEvent auction = 121 [json_name = "auction"]; + bool has_auction() const; + private: + bool _internal_has_auction() const; + public: + void clear_auction(); + const ::vega::events::v1::AuctionEvent& auction() const; + ::vega::events::v1::AuctionEvent* release_auction(); + ::vega::events::v1::AuctionEvent* mutable_auction(); + void set_allocated_auction(::vega::events::v1::AuctionEvent* auction); + private: + const ::vega::events::v1::AuctionEvent& _internal_auction() const; + ::vega::events::v1::AuctionEvent* _internal_mutable_auction(); + public: + void unsafe_arena_set_allocated_auction( + ::vega::events::v1::AuctionEvent* auction); + ::vega::events::v1::AuctionEvent* unsafe_arena_release_auction(); + + // .vega.RiskFactor risk_factor = 122 [json_name = "riskFactor"]; + bool has_risk_factor() const; + private: + bool _internal_has_risk_factor() const; + public: + void clear_risk_factor(); + const ::vega::RiskFactor& risk_factor() const; + ::vega::RiskFactor* release_risk_factor(); + ::vega::RiskFactor* mutable_risk_factor(); + void set_allocated_risk_factor(::vega::RiskFactor* risk_factor); + private: + const ::vega::RiskFactor& _internal_risk_factor() const; + ::vega::RiskFactor* _internal_mutable_risk_factor(); + public: + void unsafe_arena_set_allocated_risk_factor( + ::vega::RiskFactor* risk_factor); + ::vega::RiskFactor* unsafe_arena_release_risk_factor(); + + // .vega.NetworkParameter network_parameter = 123 [json_name = "networkParameter"]; + bool has_network_parameter() const; + private: + bool _internal_has_network_parameter() const; + public: + void clear_network_parameter(); + const ::vega::NetworkParameter& network_parameter() const; + ::vega::NetworkParameter* release_network_parameter(); + ::vega::NetworkParameter* mutable_network_parameter(); + void set_allocated_network_parameter(::vega::NetworkParameter* network_parameter); + private: + const ::vega::NetworkParameter& _internal_network_parameter() const; + ::vega::NetworkParameter* _internal_mutable_network_parameter(); + public: + void unsafe_arena_set_allocated_network_parameter( + ::vega::NetworkParameter* network_parameter); + ::vega::NetworkParameter* unsafe_arena_release_network_parameter(); + + // .vega.LiquidityProvision liquidity_provision = 124 [json_name = "liquidityProvision"]; + bool has_liquidity_provision() const; + private: + bool _internal_has_liquidity_provision() const; + public: + void clear_liquidity_provision(); + const ::vega::LiquidityProvision& liquidity_provision() const; + ::vega::LiquidityProvision* release_liquidity_provision(); + ::vega::LiquidityProvision* mutable_liquidity_provision(); + void set_allocated_liquidity_provision(::vega::LiquidityProvision* liquidity_provision); + private: + const ::vega::LiquidityProvision& _internal_liquidity_provision() const; + ::vega::LiquidityProvision* _internal_mutable_liquidity_provision(); + public: + void unsafe_arena_set_allocated_liquidity_provision( + ::vega::LiquidityProvision* liquidity_provision); + ::vega::LiquidityProvision* unsafe_arena_release_liquidity_provision(); + + // .vega.Market market_updated = 125 [json_name = "marketUpdated"]; + bool has_market_updated() const; + private: + bool _internal_has_market_updated() const; + public: + void clear_market_updated(); + const ::vega::Market& market_updated() const; + ::vega::Market* release_market_updated(); + ::vega::Market* mutable_market_updated(); + void set_allocated_market_updated(::vega::Market* market_updated); + private: + const ::vega::Market& _internal_market_updated() const; + ::vega::Market* _internal_mutable_market_updated(); + public: + void unsafe_arena_set_allocated_market_updated( + ::vega::Market* market_updated); + ::vega::Market* unsafe_arena_release_market_updated(); + + // .oracles.v1.OracleSpec oracle_spec = 126 [json_name = "oracleSpec"]; + bool has_oracle_spec() const; + private: + bool _internal_has_oracle_spec() const; + public: + void clear_oracle_spec(); + const ::oracles::v1::OracleSpec& oracle_spec() const; + ::oracles::v1::OracleSpec* release_oracle_spec(); + ::oracles::v1::OracleSpec* mutable_oracle_spec(); + void set_allocated_oracle_spec(::oracles::v1::OracleSpec* oracle_spec); + private: + const ::oracles::v1::OracleSpec& _internal_oracle_spec() const; + ::oracles::v1::OracleSpec* _internal_mutable_oracle_spec(); + public: + void unsafe_arena_set_allocated_oracle_spec( + ::oracles::v1::OracleSpec* oracle_spec); + ::oracles::v1::OracleSpec* unsafe_arena_release_oracle_spec(); + + // .oracles.v1.OracleData oracle_data = 127 [json_name = "oracleData"]; + bool has_oracle_data() const; + private: + bool _internal_has_oracle_data() const; + public: + void clear_oracle_data(); + const ::oracles::v1::OracleData& oracle_data() const; + ::oracles::v1::OracleData* release_oracle_data(); + ::oracles::v1::OracleData* mutable_oracle_data(); + void set_allocated_oracle_data(::oracles::v1::OracleData* oracle_data); + private: + const ::oracles::v1::OracleData& _internal_oracle_data() const; + ::oracles::v1::OracleData* _internal_mutable_oracle_data(); + public: + void unsafe_arena_set_allocated_oracle_data( + ::oracles::v1::OracleData* oracle_data); + ::oracles::v1::OracleData* unsafe_arena_release_oracle_data(); + + // .vega.events.v1.DelegationBalanceEvent delegation_balance = 129 [json_name = "delegationBalance"]; + bool has_delegation_balance() const; + private: + bool _internal_has_delegation_balance() const; + public: + void clear_delegation_balance(); + const ::vega::events::v1::DelegationBalanceEvent& delegation_balance() const; + ::vega::events::v1::DelegationBalanceEvent* release_delegation_balance(); + ::vega::events::v1::DelegationBalanceEvent* mutable_delegation_balance(); + void set_allocated_delegation_balance(::vega::events::v1::DelegationBalanceEvent* delegation_balance); + private: + const ::vega::events::v1::DelegationBalanceEvent& _internal_delegation_balance() const; + ::vega::events::v1::DelegationBalanceEvent* _internal_mutable_delegation_balance(); + public: + void unsafe_arena_set_allocated_delegation_balance( + ::vega::events::v1::DelegationBalanceEvent* delegation_balance); + ::vega::events::v1::DelegationBalanceEvent* unsafe_arena_release_delegation_balance(); + + // .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + bool has_validator_score() const; + private: + bool _internal_has_validator_score() const; + public: + void clear_validator_score(); + const ::vega::events::v1::ValidatorScoreEvent& validator_score() const; + ::vega::events::v1::ValidatorScoreEvent* release_validator_score(); + ::vega::events::v1::ValidatorScoreEvent* mutable_validator_score(); + void set_allocated_validator_score(::vega::events::v1::ValidatorScoreEvent* validator_score); + private: + const ::vega::events::v1::ValidatorScoreEvent& _internal_validator_score() const; + ::vega::events::v1::ValidatorScoreEvent* _internal_mutable_validator_score(); + public: + void unsafe_arena_set_allocated_validator_score( + ::vega::events::v1::ValidatorScoreEvent* validator_score); + ::vega::events::v1::ValidatorScoreEvent* unsafe_arena_release_validator_score(); + + // .vega.events.v1.EpochEvent epoch_event = 131 [json_name = "epochEvent"]; + bool has_epoch_event() const; + private: + bool _internal_has_epoch_event() const; + public: + void clear_epoch_event(); + const ::vega::events::v1::EpochEvent& epoch_event() const; + ::vega::events::v1::EpochEvent* release_epoch_event(); + ::vega::events::v1::EpochEvent* mutable_epoch_event(); + void set_allocated_epoch_event(::vega::events::v1::EpochEvent* epoch_event); + private: + const ::vega::events::v1::EpochEvent& _internal_epoch_event() const; + ::vega::events::v1::EpochEvent* _internal_mutable_epoch_event(); + public: + void unsafe_arena_set_allocated_epoch_event( + ::vega::events::v1::EpochEvent* epoch_event); + ::vega::events::v1::EpochEvent* unsafe_arena_release_epoch_event(); + + // .vega.events.v1.ValidatorUpdate validator_update = 132 [json_name = "validatorUpdate"]; + bool has_validator_update() const; + private: + bool _internal_has_validator_update() const; + public: + void clear_validator_update(); + const ::vega::events::v1::ValidatorUpdate& validator_update() const; + ::vega::events::v1::ValidatorUpdate* release_validator_update(); + ::vega::events::v1::ValidatorUpdate* mutable_validator_update(); + void set_allocated_validator_update(::vega::events::v1::ValidatorUpdate* validator_update); + private: + const ::vega::events::v1::ValidatorUpdate& _internal_validator_update() const; + ::vega::events::v1::ValidatorUpdate* _internal_mutable_validator_update(); + public: + void unsafe_arena_set_allocated_validator_update( + ::vega::events::v1::ValidatorUpdate* validator_update); + ::vega::events::v1::ValidatorUpdate* unsafe_arena_release_validator_update(); + + // .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + bool has_stake_linking() const; + private: + bool _internal_has_stake_linking() const; + public: + void clear_stake_linking(); + const ::vega::events::v1::StakeLinking& stake_linking() const; + ::vega::events::v1::StakeLinking* release_stake_linking(); + ::vega::events::v1::StakeLinking* mutable_stake_linking(); + void set_allocated_stake_linking(::vega::events::v1::StakeLinking* stake_linking); + private: + const ::vega::events::v1::StakeLinking& _internal_stake_linking() const; + ::vega::events::v1::StakeLinking* _internal_mutable_stake_linking(); + public: + void unsafe_arena_set_allocated_stake_linking( + ::vega::events::v1::StakeLinking* stake_linking); + ::vega::events::v1::StakeLinking* unsafe_arena_release_stake_linking(); + + // .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + bool has_reward_payout() const; + private: + bool _internal_has_reward_payout() const; + public: + void clear_reward_payout(); + const ::vega::events::v1::RewardPayoutEvent& reward_payout() const; + ::vega::events::v1::RewardPayoutEvent* release_reward_payout(); + ::vega::events::v1::RewardPayoutEvent* mutable_reward_payout(); + void set_allocated_reward_payout(::vega::events::v1::RewardPayoutEvent* reward_payout); + private: + const ::vega::events::v1::RewardPayoutEvent& _internal_reward_payout() const; + ::vega::events::v1::RewardPayoutEvent* _internal_mutable_reward_payout(); + public: + void unsafe_arena_set_allocated_reward_payout( + ::vega::events::v1::RewardPayoutEvent* reward_payout); + ::vega::events::v1::RewardPayoutEvent* unsafe_arena_release_reward_payout(); + + // .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + bool has_checkpoint() const; + private: + bool _internal_has_checkpoint() const; + public: + void clear_checkpoint(); + const ::vega::events::v1::CheckpointEvent& checkpoint() const; + ::vega::events::v1::CheckpointEvent* release_checkpoint(); + ::vega::events::v1::CheckpointEvent* mutable_checkpoint(); + void set_allocated_checkpoint(::vega::events::v1::CheckpointEvent* checkpoint); + private: + const ::vega::events::v1::CheckpointEvent& _internal_checkpoint() const; + ::vega::events::v1::CheckpointEvent* _internal_mutable_checkpoint(); + public: + void unsafe_arena_set_allocated_checkpoint( + ::vega::events::v1::CheckpointEvent* checkpoint); + ::vega::events::v1::CheckpointEvent* unsafe_arena_release_checkpoint(); + + // .vega.events.v1.MarketEvent market = 1001 [json_name = "market"]; + bool has_market() const; + private: + bool _internal_has_market() const; + public: + void clear_market(); + const ::vega::events::v1::MarketEvent& market() const; + ::vega::events::v1::MarketEvent* release_market(); + ::vega::events::v1::MarketEvent* mutable_market(); + void set_allocated_market(::vega::events::v1::MarketEvent* market); + private: + const ::vega::events::v1::MarketEvent& _internal_market() const; + ::vega::events::v1::MarketEvent* _internal_mutable_market(); + public: + void unsafe_arena_set_allocated_market( + ::vega::events::v1::MarketEvent* market); + ::vega::events::v1::MarketEvent* unsafe_arena_release_market(); + + // .vega.events.v1.TxErrorEvent tx_err_event = 2001 [json_name = "txErrEvent"]; + bool has_tx_err_event() const; + private: + bool _internal_has_tx_err_event() const; + public: + void clear_tx_err_event(); + const ::vega::events::v1::TxErrorEvent& tx_err_event() const; + ::vega::events::v1::TxErrorEvent* release_tx_err_event(); + ::vega::events::v1::TxErrorEvent* mutable_tx_err_event(); + void set_allocated_tx_err_event(::vega::events::v1::TxErrorEvent* tx_err_event); + private: + const ::vega::events::v1::TxErrorEvent& _internal_tx_err_event() const; + ::vega::events::v1::TxErrorEvent* _internal_mutable_tx_err_event(); + public: + void unsafe_arena_set_allocated_tx_err_event( + ::vega::events::v1::TxErrorEvent* tx_err_event); + ::vega::events::v1::TxErrorEvent* unsafe_arena_release_tx_err_event(); + + void clear_event(); + EventCase event_case() const; + // @@protoc_insertion_point(class_scope:vega.events.v1.BusEvent) + private: + class _Internal; + void set_has_time_update(); + void set_has_transfer_responses(); + void set_has_position_resolution(); + void set_has_order(); + void set_has_account(); + void set_has_party(); + void set_has_trade(); + void set_has_margin_levels(); + void set_has_proposal(); + void set_has_vote(); + void set_has_market_data(); + void set_has_node_signature(); + void set_has_loss_socialization(); + void set_has_settle_position(); + void set_has_settle_distressed(); + void set_has_market_created(); + void set_has_asset(); + void set_has_market_tick(); + void set_has_withdrawal(); + void set_has_deposit(); + void set_has_auction(); + void set_has_risk_factor(); + void set_has_network_parameter(); + void set_has_liquidity_provision(); + void set_has_market_updated(); + void set_has_oracle_spec(); + void set_has_oracle_data(); + void set_has_delegation_balance(); + void set_has_validator_score(); + void set_has_epoch_event(); + void set_has_validator_update(); + void set_has_stake_linking(); + void set_has_reward_payout(); + void set_has_checkpoint(); + void set_has_market(); + void set_has_tx_err_event(); + + inline bool has_event() const; + inline void clear_has_event(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr block_; + int type_; + union EventUnion { + EventUnion() {} + ::vega::events::v1::TimeUpdate* time_update_; + ::vega::events::v1::TransferResponses* transfer_responses_; + ::vega::events::v1::PositionResolution* position_resolution_; + ::vega::Order* order_; + ::vega::Account* account_; + ::vega::Party* party_; + ::vega::Trade* trade_; + ::vega::MarginLevels* margin_levels_; + ::vega::Proposal* proposal_; + ::vega::Vote* vote_; + ::vega::MarketData* market_data_; + ::vega::commands::v1::NodeSignature* node_signature_; + ::vega::events::v1::LossSocialization* loss_socialization_; + ::vega::events::v1::SettlePosition* settle_position_; + ::vega::events::v1::SettleDistressed* settle_distressed_; + ::vega::Market* market_created_; + ::vega::Asset* asset_; + ::vega::events::v1::MarketTick* market_tick_; + ::vega::Withdrawal* withdrawal_; + ::vega::Deposit* deposit_; + ::vega::events::v1::AuctionEvent* auction_; + ::vega::RiskFactor* risk_factor_; + ::vega::NetworkParameter* network_parameter_; + ::vega::LiquidityProvision* liquidity_provision_; + ::vega::Market* market_updated_; + ::oracles::v1::OracleSpec* oracle_spec_; + ::oracles::v1::OracleData* oracle_data_; + ::vega::events::v1::DelegationBalanceEvent* delegation_balance_; + ::vega::events::v1::ValidatorScoreEvent* validator_score_; + ::vega::events::v1::EpochEvent* epoch_event_; + ::vega::events::v1::ValidatorUpdate* validator_update_; + ::vega::events::v1::StakeLinking* stake_linking_; + ::vega::events::v1::RewardPayoutEvent* reward_payout_; + ::vega::events::v1::CheckpointEvent* checkpoint_; + ::vega::events::v1::MarketEvent* market_; + ::vega::events::v1::TxErrorEvent* tx_err_event_; + } event_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_events_2fv1_2fevents_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StakeLinking + +// string id = 1 [json_name = "id"]; +inline void StakeLinking::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& StakeLinking::id() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.id) + return _internal_id(); +} +inline void StakeLinking::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.id) +} +inline std::string* StakeLinking::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.StakeLinking.id) + return _internal_mutable_id(); +} +inline const std::string& StakeLinking::_internal_id() const { + return id_.Get(); +} +inline void StakeLinking::_internal_set_id(const std::string& value) { + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeLinking::set_id(std::string&& value) { + + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakeLinking.id) +} +inline void StakeLinking::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.StakeLinking.id) +} +inline void StakeLinking::set_id(const char* value, + size_t size) { + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakeLinking.id) +} +inline std::string* StakeLinking::_internal_mutable_id() { + + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StakeLinking::release_id() { + // @@protoc_insertion_point(field_release:vega.events.v1.StakeLinking.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeLinking::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakeLinking.id) +} + +// .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; +inline void StakeLinking::clear_type() { + type_ = 0; +} +inline ::vega::events::v1::StakeLinking_Type StakeLinking::_internal_type() const { + return static_cast< ::vega::events::v1::StakeLinking_Type >(type_); +} +inline ::vega::events::v1::StakeLinking_Type StakeLinking::type() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.type) + return _internal_type(); +} +inline void StakeLinking::_internal_set_type(::vega::events::v1::StakeLinking_Type value) { + + type_ = value; +} +inline void StakeLinking::set_type(::vega::events::v1::StakeLinking_Type value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.type) +} + +// int64 ts = 3 [json_name = "ts"]; +inline void StakeLinking::clear_ts() { + ts_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeLinking::_internal_ts() const { + return ts_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeLinking::ts() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.ts) + return _internal_ts(); +} +inline void StakeLinking::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + + ts_ = value; +} +inline void StakeLinking::set_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_ts(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.ts) +} + +// string party = 4 [json_name = "party"]; +inline void StakeLinking::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& StakeLinking::party() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.party) + return _internal_party(); +} +inline void StakeLinking::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.party) +} +inline std::string* StakeLinking::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.StakeLinking.party) + return _internal_mutable_party(); +} +inline const std::string& StakeLinking::_internal_party() const { + return party_.Get(); +} +inline void StakeLinking::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeLinking::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakeLinking.party) +} +inline void StakeLinking::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.StakeLinking.party) +} +inline void StakeLinking::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakeLinking.party) +} +inline std::string* StakeLinking::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StakeLinking::release_party() { + // @@protoc_insertion_point(field_release:vega.events.v1.StakeLinking.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeLinking::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakeLinking.party) +} + +// string amount = 5 [json_name = "amount"]; +inline void StakeLinking::clear_amount() { + amount_.ClearToEmpty(); +} +inline const std::string& StakeLinking::amount() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.amount) + return _internal_amount(); +} +inline void StakeLinking::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.amount) +} +inline std::string* StakeLinking::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.StakeLinking.amount) + return _internal_mutable_amount(); +} +inline const std::string& StakeLinking::_internal_amount() const { + return amount_.Get(); +} +inline void StakeLinking::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeLinking::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakeLinking.amount) +} +inline void StakeLinking::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.StakeLinking.amount) +} +inline void StakeLinking::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakeLinking.amount) +} +inline std::string* StakeLinking::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StakeLinking::release_amount() { + // @@protoc_insertion_point(field_release:vega.events.v1.StakeLinking.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeLinking::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakeLinking.amount) +} + +// .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; +inline void StakeLinking::clear_status() { + status_ = 0; +} +inline ::vega::events::v1::StakeLinking_Status StakeLinking::_internal_status() const { + return static_cast< ::vega::events::v1::StakeLinking_Status >(status_); +} +inline ::vega::events::v1::StakeLinking_Status StakeLinking::status() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.status) + return _internal_status(); +} +inline void StakeLinking::_internal_set_status(::vega::events::v1::StakeLinking_Status value) { + + status_ = value; +} +inline void StakeLinking::set_status(::vega::events::v1::StakeLinking_Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.status) +} + +// int64 finalized_at = 7 [json_name = "finalizedAt"]; +inline void StakeLinking::clear_finalized_at() { + finalized_at_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeLinking::_internal_finalized_at() const { + return finalized_at_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StakeLinking::finalized_at() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.finalized_at) + return _internal_finalized_at(); +} +inline void StakeLinking::_internal_set_finalized_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + + finalized_at_ = value; +} +inline void StakeLinking::set_finalized_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_finalized_at(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.finalized_at) +} + +// string tx_hash = 8 [json_name = "txHash"]; +inline void StakeLinking::clear_tx_hash() { + tx_hash_.ClearToEmpty(); +} +inline const std::string& StakeLinking::tx_hash() const { + // @@protoc_insertion_point(field_get:vega.events.v1.StakeLinking.tx_hash) + return _internal_tx_hash(); +} +inline void StakeLinking::set_tx_hash(const std::string& value) { + _internal_set_tx_hash(value); + // @@protoc_insertion_point(field_set:vega.events.v1.StakeLinking.tx_hash) +} +inline std::string* StakeLinking::mutable_tx_hash() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.StakeLinking.tx_hash) + return _internal_mutable_tx_hash(); +} +inline const std::string& StakeLinking::_internal_tx_hash() const { + return tx_hash_.Get(); +} +inline void StakeLinking::_internal_set_tx_hash(const std::string& value) { + + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StakeLinking::set_tx_hash(std::string&& value) { + + tx_hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakeLinking.tx_hash) +} +inline void StakeLinking::set_tx_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.StakeLinking.tx_hash) +} +inline void StakeLinking::set_tx_hash(const char* value, + size_t size) { + + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakeLinking.tx_hash) +} +inline std::string* StakeLinking::_internal_mutable_tx_hash() { + + return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StakeLinking::release_tx_hash() { + // @@protoc_insertion_point(field_release:vega.events.v1.StakeLinking.tx_hash) + return tx_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StakeLinking::set_allocated_tx_hash(std::string* tx_hash) { + if (tx_hash != nullptr) { + + } else { + + } + tx_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx_hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakeLinking.tx_hash) +} + +// ------------------------------------------------------------------- + +// CheckpointEvent + +// string hash = 1 [json_name = "hash"]; +inline void CheckpointEvent::clear_hash() { + hash_.ClearToEmpty(); +} +inline const std::string& CheckpointEvent::hash() const { + // @@protoc_insertion_point(field_get:vega.events.v1.CheckpointEvent.hash) + return _internal_hash(); +} +inline void CheckpointEvent::set_hash(const std::string& value) { + _internal_set_hash(value); + // @@protoc_insertion_point(field_set:vega.events.v1.CheckpointEvent.hash) +} +inline std::string* CheckpointEvent::mutable_hash() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.CheckpointEvent.hash) + return _internal_mutable_hash(); +} +inline const std::string& CheckpointEvent::_internal_hash() const { + return hash_.Get(); +} +inline void CheckpointEvent::_internal_set_hash(const std::string& value) { + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void CheckpointEvent::set_hash(std::string&& value) { + + hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.CheckpointEvent.hash) +} +inline void CheckpointEvent::set_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.CheckpointEvent.hash) +} +inline void CheckpointEvent::set_hash(const char* value, + size_t size) { + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.CheckpointEvent.hash) +} +inline std::string* CheckpointEvent::_internal_mutable_hash() { + + return hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* CheckpointEvent::release_hash() { + // @@protoc_insertion_point(field_release:vega.events.v1.CheckpointEvent.hash) + return hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CheckpointEvent::set_allocated_hash(std::string* hash) { + if (hash != nullptr) { + + } else { + + } + hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.CheckpointEvent.hash) +} + +// string block_hash = 2 [json_name = "blockHash"]; +inline void CheckpointEvent::clear_block_hash() { + block_hash_.ClearToEmpty(); +} +inline const std::string& CheckpointEvent::block_hash() const { + // @@protoc_insertion_point(field_get:vega.events.v1.CheckpointEvent.block_hash) + return _internal_block_hash(); +} +inline void CheckpointEvent::set_block_hash(const std::string& value) { + _internal_set_block_hash(value); + // @@protoc_insertion_point(field_set:vega.events.v1.CheckpointEvent.block_hash) +} +inline std::string* CheckpointEvent::mutable_block_hash() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.CheckpointEvent.block_hash) + return _internal_mutable_block_hash(); +} +inline const std::string& CheckpointEvent::_internal_block_hash() const { + return block_hash_.Get(); +} +inline void CheckpointEvent::_internal_set_block_hash(const std::string& value) { + + block_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void CheckpointEvent::set_block_hash(std::string&& value) { + + block_hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.CheckpointEvent.block_hash) +} +inline void CheckpointEvent::set_block_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + block_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.CheckpointEvent.block_hash) +} +inline void CheckpointEvent::set_block_hash(const char* value, + size_t size) { + + block_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.CheckpointEvent.block_hash) +} +inline std::string* CheckpointEvent::_internal_mutable_block_hash() { + + return block_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* CheckpointEvent::release_block_hash() { + // @@protoc_insertion_point(field_release:vega.events.v1.CheckpointEvent.block_hash) + return block_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CheckpointEvent::set_allocated_block_hash(std::string* block_hash) { + if (block_hash != nullptr) { + + } else { + + } + block_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), block_hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.CheckpointEvent.block_hash) +} + +// uint64 block_height = 3 [json_name = "blockHeight"]; +inline void CheckpointEvent::clear_block_height() { + block_height_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 CheckpointEvent::_internal_block_height() const { + return block_height_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 CheckpointEvent::block_height() const { + // @@protoc_insertion_point(field_get:vega.events.v1.CheckpointEvent.block_height) + return _internal_block_height(); +} +inline void CheckpointEvent::_internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + block_height_ = value; +} +inline void CheckpointEvent::set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_block_height(value); + // @@protoc_insertion_point(field_set:vega.events.v1.CheckpointEvent.block_height) +} + +// ------------------------------------------------------------------- + +// RewardPayoutEvent + +// string party = 1 [json_name = "party"]; +inline void RewardPayoutEvent::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& RewardPayoutEvent::party() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.party) + return _internal_party(); +} +inline void RewardPayoutEvent::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.party) +} +inline std::string* RewardPayoutEvent::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.RewardPayoutEvent.party) + return _internal_mutable_party(); +} +inline const std::string& RewardPayoutEvent::_internal_party() const { + return party_.Get(); +} +inline void RewardPayoutEvent::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPayoutEvent::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.RewardPayoutEvent.party) +} +inline void RewardPayoutEvent::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.RewardPayoutEvent.party) +} +inline void RewardPayoutEvent::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.RewardPayoutEvent.party) +} +inline std::string* RewardPayoutEvent::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RewardPayoutEvent::release_party() { + // @@protoc_insertion_point(field_release:vega.events.v1.RewardPayoutEvent.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RewardPayoutEvent::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.RewardPayoutEvent.party) +} + +// string epoch_seq = 2 [json_name = "epochSeq"]; +inline void RewardPayoutEvent::clear_epoch_seq() { + epoch_seq_.ClearToEmpty(); +} +inline const std::string& RewardPayoutEvent::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.epoch_seq) + return _internal_epoch_seq(); +} +inline void RewardPayoutEvent::set_epoch_seq(const std::string& value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.epoch_seq) +} +inline std::string* RewardPayoutEvent::mutable_epoch_seq() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.RewardPayoutEvent.epoch_seq) + return _internal_mutable_epoch_seq(); +} +inline const std::string& RewardPayoutEvent::_internal_epoch_seq() const { + return epoch_seq_.Get(); +} +inline void RewardPayoutEvent::_internal_set_epoch_seq(const std::string& value) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPayoutEvent::set_epoch_seq(std::string&& value) { + + epoch_seq_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.RewardPayoutEvent.epoch_seq) +} +inline void RewardPayoutEvent::set_epoch_seq(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.RewardPayoutEvent.epoch_seq) +} +inline void RewardPayoutEvent::set_epoch_seq(const char* value, + size_t size) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.RewardPayoutEvent.epoch_seq) +} +inline std::string* RewardPayoutEvent::_internal_mutable_epoch_seq() { + + return epoch_seq_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RewardPayoutEvent::release_epoch_seq() { + // @@protoc_insertion_point(field_release:vega.events.v1.RewardPayoutEvent.epoch_seq) + return epoch_seq_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RewardPayoutEvent::set_allocated_epoch_seq(std::string* epoch_seq) { + if (epoch_seq != nullptr) { + + } else { + + } + epoch_seq_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), epoch_seq, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.RewardPayoutEvent.epoch_seq) +} + +// string asset = 3 [json_name = "asset"]; +inline void RewardPayoutEvent::clear_asset() { + asset_.ClearToEmpty(); +} +inline const std::string& RewardPayoutEvent::asset() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.asset) + return _internal_asset(); +} +inline void RewardPayoutEvent::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.asset) +} +inline std::string* RewardPayoutEvent::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.RewardPayoutEvent.asset) + return _internal_mutable_asset(); +} +inline const std::string& RewardPayoutEvent::_internal_asset() const { + return asset_.Get(); +} +inline void RewardPayoutEvent::_internal_set_asset(const std::string& value) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPayoutEvent::set_asset(std::string&& value) { + + asset_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.RewardPayoutEvent.asset) +} +inline void RewardPayoutEvent::set_asset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.RewardPayoutEvent.asset) +} +inline void RewardPayoutEvent::set_asset(const char* value, + size_t size) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.RewardPayoutEvent.asset) +} +inline std::string* RewardPayoutEvent::_internal_mutable_asset() { + + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RewardPayoutEvent::release_asset() { + // @@protoc_insertion_point(field_release:vega.events.v1.RewardPayoutEvent.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RewardPayoutEvent::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { + + } else { + + } + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.RewardPayoutEvent.asset) +} + +// string amount = 4 [json_name = "amount"]; +inline void RewardPayoutEvent::clear_amount() { + amount_.ClearToEmpty(); +} +inline const std::string& RewardPayoutEvent::amount() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.amount) + return _internal_amount(); +} +inline void RewardPayoutEvent::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.amount) +} +inline std::string* RewardPayoutEvent::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.RewardPayoutEvent.amount) + return _internal_mutable_amount(); +} +inline const std::string& RewardPayoutEvent::_internal_amount() const { + return amount_.Get(); +} +inline void RewardPayoutEvent::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPayoutEvent::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.RewardPayoutEvent.amount) +} +inline void RewardPayoutEvent::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.RewardPayoutEvent.amount) +} +inline void RewardPayoutEvent::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.RewardPayoutEvent.amount) +} +inline std::string* RewardPayoutEvent::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RewardPayoutEvent::release_amount() { + // @@protoc_insertion_point(field_release:vega.events.v1.RewardPayoutEvent.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RewardPayoutEvent::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.RewardPayoutEvent.amount) +} + +// string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; +inline void RewardPayoutEvent::clear_percent_of_total_reward() { + percent_of_total_reward_.ClearToEmpty(); +} +inline const std::string& RewardPayoutEvent::percent_of_total_reward() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) + return _internal_percent_of_total_reward(); +} +inline void RewardPayoutEvent::set_percent_of_total_reward(const std::string& value) { + _internal_set_percent_of_total_reward(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) +} +inline std::string* RewardPayoutEvent::mutable_percent_of_total_reward() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) + return _internal_mutable_percent_of_total_reward(); +} +inline const std::string& RewardPayoutEvent::_internal_percent_of_total_reward() const { + return percent_of_total_reward_.Get(); +} +inline void RewardPayoutEvent::_internal_set_percent_of_total_reward(const std::string& value) { + + percent_of_total_reward_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPayoutEvent::set_percent_of_total_reward(std::string&& value) { + + percent_of_total_reward_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) +} +inline void RewardPayoutEvent::set_percent_of_total_reward(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + percent_of_total_reward_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) +} +inline void RewardPayoutEvent::set_percent_of_total_reward(const char* value, + size_t size) { + + percent_of_total_reward_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) +} +inline std::string* RewardPayoutEvent::_internal_mutable_percent_of_total_reward() { + + return percent_of_total_reward_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RewardPayoutEvent::release_percent_of_total_reward() { + // @@protoc_insertion_point(field_release:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) + return percent_of_total_reward_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RewardPayoutEvent::set_allocated_percent_of_total_reward(std::string* percent_of_total_reward) { + if (percent_of_total_reward != nullptr) { + + } else { + + } + percent_of_total_reward_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), percent_of_total_reward, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.RewardPayoutEvent.percent_of_total_reward) +} - friend struct ::TableStruct_events_2fv1_2fevents_2eproto; -}; -// =================================================================== +// int64 timestamp = 6 [json_name = "timestamp"]; +inline void RewardPayoutEvent::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RewardPayoutEvent::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RewardPayoutEvent::timestamp() const { + // @@protoc_insertion_point(field_get:vega.events.v1.RewardPayoutEvent.timestamp) + return _internal_timestamp(); +} +inline void RewardPayoutEvent::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + timestamp_ = value; +} +inline void RewardPayoutEvent::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:vega.events.v1.RewardPayoutEvent.timestamp) +} -// =================================================================== +// ------------------------------------------------------------------- -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// StakingEvent +// ValidatorScoreEvent -// string id = 1 [json_name = "id"]; -inline void StakingEvent::clear_id() { - id_.ClearToEmpty(); +// string node_id = 1 [json_name = "nodeId"]; +inline void ValidatorScoreEvent::clear_node_id() { + node_id_.ClearToEmpty(); } -inline const std::string& StakingEvent::id() const { - // @@protoc_insertion_point(field_get:vega.events.v1.StakingEvent.id) - return _internal_id(); +inline const std::string& ValidatorScoreEvent::node_id() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorScoreEvent.node_id) + return _internal_node_id(); } -inline void StakingEvent::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:vega.events.v1.StakingEvent.id) +inline void ValidatorScoreEvent::set_node_id(const std::string& value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorScoreEvent.node_id) } -inline std::string* StakingEvent::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.StakingEvent.id) - return _internal_mutable_id(); +inline std::string* ValidatorScoreEvent::mutable_node_id() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorScoreEvent.node_id) + return _internal_mutable_node_id(); } -inline const std::string& StakingEvent::_internal_id() const { - return id_.Get(); +inline const std::string& ValidatorScoreEvent::_internal_node_id() const { + return node_id_.Get(); } -inline void StakingEvent::_internal_set_id(const std::string& value) { +inline void ValidatorScoreEvent::_internal_set_node_id(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StakingEvent::set_id(std::string&& value) { +inline void ValidatorScoreEvent::set_node_id(std::string&& value) { - id_.Set( + node_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakingEvent.id) + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorScoreEvent.node_id) } -inline void StakingEvent::set_id(const char* value) { +inline void ValidatorScoreEvent::set_node_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.events.v1.StakingEvent.id) + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorScoreEvent.node_id) } -inline void StakingEvent::set_id(const char* value, +inline void ValidatorScoreEvent::set_node_id(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakingEvent.id) + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorScoreEvent.node_id) } -inline std::string* StakingEvent::_internal_mutable_id() { +inline std::string* ValidatorScoreEvent::_internal_mutable_node_id() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return node_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* StakingEvent::release_id() { - // @@protoc_insertion_point(field_release:vega.events.v1.StakingEvent.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ValidatorScoreEvent::release_node_id() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorScoreEvent.node_id) + return node_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StakingEvent::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void ValidatorScoreEvent::set_allocated_node_id(std::string* node_id) { + if (node_id != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + node_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakingEvent.id) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorScoreEvent.node_id) } -// .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; -inline void StakingEvent::clear_type() { - type_ = 0; +// string epoch_seq = 2 [json_name = "epochSeq"]; +inline void ValidatorScoreEvent::clear_epoch_seq() { + epoch_seq_.ClearToEmpty(); } -inline ::vega::events::v1::StakingEvent_Type StakingEvent::_internal_type() const { - return static_cast< ::vega::events::v1::StakingEvent_Type >(type_); +inline const std::string& ValidatorScoreEvent::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorScoreEvent.epoch_seq) + return _internal_epoch_seq(); } -inline ::vega::events::v1::StakingEvent_Type StakingEvent::type() const { - // @@protoc_insertion_point(field_get:vega.events.v1.StakingEvent.type) - return _internal_type(); +inline void ValidatorScoreEvent::set_epoch_seq(const std::string& value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorScoreEvent.epoch_seq) } -inline void StakingEvent::_internal_set_type(::vega::events::v1::StakingEvent_Type value) { - - type_ = value; +inline std::string* ValidatorScoreEvent::mutable_epoch_seq() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorScoreEvent.epoch_seq) + return _internal_mutable_epoch_seq(); } -inline void StakingEvent::set_type(::vega::events::v1::StakingEvent_Type value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:vega.events.v1.StakingEvent.type) +inline const std::string& ValidatorScoreEvent::_internal_epoch_seq() const { + return epoch_seq_.Get(); } +inline void ValidatorScoreEvent::_internal_set_epoch_seq(const std::string& value) { -// int64 ts = 3 [json_name = "ts"]; -inline void StakingEvent::clear_ts() { - ts_ = PROTOBUF_LONGLONG(0); + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::int64 StakingEvent::_internal_ts() const { - return ts_; +inline void ValidatorScoreEvent::set_epoch_seq(std::string&& value) { + + epoch_seq_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorScoreEvent.epoch_seq) } -inline ::PROTOBUF_NAMESPACE_ID::int64 StakingEvent::ts() const { - // @@protoc_insertion_point(field_get:vega.events.v1.StakingEvent.ts) - return _internal_ts(); +inline void ValidatorScoreEvent::set_epoch_seq(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorScoreEvent.epoch_seq) } -inline void StakingEvent::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void ValidatorScoreEvent::set_epoch_seq(const char* value, + size_t size) { - ts_ = value; + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorScoreEvent.epoch_seq) } -inline void StakingEvent::set_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_ts(value); - // @@protoc_insertion_point(field_set:vega.events.v1.StakingEvent.ts) +inline std::string* ValidatorScoreEvent::_internal_mutable_epoch_seq() { + + return epoch_seq_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } +inline std::string* ValidatorScoreEvent::release_epoch_seq() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorScoreEvent.epoch_seq) + return epoch_seq_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ValidatorScoreEvent::set_allocated_epoch_seq(std::string* epoch_seq) { + if (epoch_seq != nullptr) { -// string party = 4 [json_name = "party"]; -inline void StakingEvent::clear_party() { - party_.ClearToEmpty(); + } else { + + } + epoch_seq_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), epoch_seq, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorScoreEvent.epoch_seq) } -inline const std::string& StakingEvent::party() const { - // @@protoc_insertion_point(field_get:vega.events.v1.StakingEvent.party) - return _internal_party(); + +// string validator_score = 3 [json_name = "validatorScore"]; +inline void ValidatorScoreEvent::clear_validator_score() { + validator_score_.ClearToEmpty(); } -inline void StakingEvent::set_party(const std::string& value) { - _internal_set_party(value); - // @@protoc_insertion_point(field_set:vega.events.v1.StakingEvent.party) +inline const std::string& ValidatorScoreEvent::validator_score() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorScoreEvent.validator_score) + return _internal_validator_score(); } -inline std::string* StakingEvent::mutable_party() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.StakingEvent.party) - return _internal_mutable_party(); +inline void ValidatorScoreEvent::set_validator_score(const std::string& value) { + _internal_set_validator_score(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorScoreEvent.validator_score) } -inline const std::string& StakingEvent::_internal_party() const { - return party_.Get(); +inline std::string* ValidatorScoreEvent::mutable_validator_score() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorScoreEvent.validator_score) + return _internal_mutable_validator_score(); } -inline void StakingEvent::_internal_set_party(const std::string& value) { +inline const std::string& ValidatorScoreEvent::_internal_validator_score() const { + return validator_score_.Get(); +} +inline void ValidatorScoreEvent::_internal_set_validator_score(const std::string& value) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + validator_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StakingEvent::set_party(std::string&& value) { +inline void ValidatorScoreEvent::set_validator_score(std::string&& value) { - party_.Set( + validator_score_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakingEvent.party) + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorScoreEvent.validator_score) } -inline void StakingEvent::set_party(const char* value) { +inline void ValidatorScoreEvent::set_validator_score(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.events.v1.StakingEvent.party) + validator_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorScoreEvent.validator_score) } -inline void StakingEvent::set_party(const char* value, +inline void ValidatorScoreEvent::set_validator_score(const char* value, size_t size) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + validator_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakingEvent.party) + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorScoreEvent.validator_score) } -inline std::string* StakingEvent::_internal_mutable_party() { +inline std::string* ValidatorScoreEvent::_internal_mutable_validator_score() { - return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return validator_score_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* StakingEvent::release_party() { - // @@protoc_insertion_point(field_release:vega.events.v1.StakingEvent.party) - return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ValidatorScoreEvent::release_validator_score() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorScoreEvent.validator_score) + return validator_score_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StakingEvent::set_allocated_party(std::string* party) { - if (party != nullptr) { +inline void ValidatorScoreEvent::set_allocated_validator_score(std::string* validator_score) { + if (validator_score != nullptr) { } else { } - party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + validator_score_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), validator_score, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakingEvent.party) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorScoreEvent.validator_score) } -// string amount = 5 [json_name = "amount"]; -inline void StakingEvent::clear_amount() { - amount_.ClearToEmpty(); +// string normalised_score = 4 [json_name = "normalisedScore"]; +inline void ValidatorScoreEvent::clear_normalised_score() { + normalised_score_.ClearToEmpty(); } -inline const std::string& StakingEvent::amount() const { - // @@protoc_insertion_point(field_get:vega.events.v1.StakingEvent.amount) - return _internal_amount(); +inline const std::string& ValidatorScoreEvent::normalised_score() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorScoreEvent.normalised_score) + return _internal_normalised_score(); } -inline void StakingEvent::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.events.v1.StakingEvent.amount) +inline void ValidatorScoreEvent::set_normalised_score(const std::string& value) { + _internal_set_normalised_score(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorScoreEvent.normalised_score) } -inline std::string* StakingEvent::mutable_amount() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.StakingEvent.amount) - return _internal_mutable_amount(); +inline std::string* ValidatorScoreEvent::mutable_normalised_score() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorScoreEvent.normalised_score) + return _internal_mutable_normalised_score(); } -inline const std::string& StakingEvent::_internal_amount() const { - return amount_.Get(); +inline const std::string& ValidatorScoreEvent::_internal_normalised_score() const { + return normalised_score_.Get(); } -inline void StakingEvent::_internal_set_amount(const std::string& value) { +inline void ValidatorScoreEvent::_internal_set_normalised_score(const std::string& value) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StakingEvent::set_amount(std::string&& value) { +inline void ValidatorScoreEvent::set_normalised_score(std::string&& value) { - amount_.Set( + normalised_score_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.StakingEvent.amount) + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorScoreEvent.normalised_score) } -inline void StakingEvent::set_amount(const char* value) { +inline void ValidatorScoreEvent::set_normalised_score(const char* value) { GOOGLE_DCHECK(value != nullptr); - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.events.v1.StakingEvent.amount) + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorScoreEvent.normalised_score) } -inline void StakingEvent::set_amount(const char* value, +inline void ValidatorScoreEvent::set_normalised_score(const char* value, size_t size) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.events.v1.StakingEvent.amount) + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorScoreEvent.normalised_score) } -inline std::string* StakingEvent::_internal_mutable_amount() { +inline std::string* ValidatorScoreEvent::_internal_mutable_normalised_score() { - return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return normalised_score_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* StakingEvent::release_amount() { - // @@protoc_insertion_point(field_release:vega.events.v1.StakingEvent.amount) - return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ValidatorScoreEvent::release_normalised_score() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorScoreEvent.normalised_score) + return normalised_score_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StakingEvent::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { +inline void ValidatorScoreEvent::set_allocated_normalised_score(std::string* normalised_score) { + if (normalised_score != nullptr) { } else { } - amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + normalised_score_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), normalised_score, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.StakingEvent.amount) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorScoreEvent.normalised_score) } // ------------------------------------------------------------------- @@ -4499,6 +6131,67 @@ inline void DelegationBalanceEvent::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 v // @@protoc_insertion_point(field_set:vega.events.v1.DelegationBalanceEvent.amount) } +// string epoch_seq = 4 [json_name = "epochSeq"]; +inline void DelegationBalanceEvent::clear_epoch_seq() { + epoch_seq_.ClearToEmpty(); +} +inline const std::string& DelegationBalanceEvent::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.events.v1.DelegationBalanceEvent.epoch_seq) + return _internal_epoch_seq(); +} +inline void DelegationBalanceEvent::set_epoch_seq(const std::string& value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.events.v1.DelegationBalanceEvent.epoch_seq) +} +inline std::string* DelegationBalanceEvent::mutable_epoch_seq() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.DelegationBalanceEvent.epoch_seq) + return _internal_mutable_epoch_seq(); +} +inline const std::string& DelegationBalanceEvent::_internal_epoch_seq() const { + return epoch_seq_.Get(); +} +inline void DelegationBalanceEvent::_internal_set_epoch_seq(const std::string& value) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DelegationBalanceEvent::set_epoch_seq(std::string&& value) { + + epoch_seq_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.DelegationBalanceEvent.epoch_seq) +} +inline void DelegationBalanceEvent::set_epoch_seq(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.DelegationBalanceEvent.epoch_seq) +} +inline void DelegationBalanceEvent::set_epoch_seq(const char* value, + size_t size) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.DelegationBalanceEvent.epoch_seq) +} +inline std::string* DelegationBalanceEvent::_internal_mutable_epoch_seq() { + + return epoch_seq_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DelegationBalanceEvent::release_epoch_seq() { + // @@protoc_insertion_point(field_release:vega.events.v1.DelegationBalanceEvent.epoch_seq) + return epoch_seq_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DelegationBalanceEvent::set_allocated_epoch_seq(std::string* epoch_seq) { + if (epoch_seq != nullptr) { + + } else { + + } + epoch_seq_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), epoch_seq, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.DelegationBalanceEvent.epoch_seq) +} + // ------------------------------------------------------------------- // PendingDelegationBalanceEvent @@ -4665,6 +6358,67 @@ inline void PendingDelegationBalanceEvent::set_undelegation_amount(::PROTOBUF_NA // @@protoc_insertion_point(field_set:vega.events.v1.PendingDelegationBalanceEvent.undelegation_amount) } +// string epoch_seq = 5 [json_name = "epochSeq"]; +inline void PendingDelegationBalanceEvent::clear_epoch_seq() { + epoch_seq_.ClearToEmpty(); +} +inline const std::string& PendingDelegationBalanceEvent::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) + return _internal_epoch_seq(); +} +inline void PendingDelegationBalanceEvent::set_epoch_seq(const std::string& value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) +} +inline std::string* PendingDelegationBalanceEvent::mutable_epoch_seq() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) + return _internal_mutable_epoch_seq(); +} +inline const std::string& PendingDelegationBalanceEvent::_internal_epoch_seq() const { + return epoch_seq_.Get(); +} +inline void PendingDelegationBalanceEvent::_internal_set_epoch_seq(const std::string& value) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PendingDelegationBalanceEvent::set_epoch_seq(std::string&& value) { + + epoch_seq_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) +} +inline void PendingDelegationBalanceEvent::set_epoch_seq(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) +} +inline void PendingDelegationBalanceEvent::set_epoch_seq(const char* value, + size_t size) { + + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) +} +inline std::string* PendingDelegationBalanceEvent::_internal_mutable_epoch_seq() { + + return epoch_seq_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PendingDelegationBalanceEvent::release_epoch_seq() { + // @@protoc_insertion_point(field_release:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) + return epoch_seq_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PendingDelegationBalanceEvent::set_allocated_epoch_seq(std::string* epoch_seq) { + if (epoch_seq != nullptr) { + + } else { + + } + epoch_seq_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), epoch_seq, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.PendingDelegationBalanceEvent.epoch_seq) +} + // ------------------------------------------------------------------- // MarketEvent @@ -6469,68 +8223,129 @@ inline void AuctionEvent::set_extension_trigger(::vega::AuctionTrigger value) { // ValidatorUpdate -// string pub_key = 1 [json_name = "pubKey"]; -inline void ValidatorUpdate::clear_pub_key() { - pub_key_.ClearToEmpty(); +// string vega_pub_key = 1 [json_name = "vegaPubKey"]; +inline void ValidatorUpdate::clear_vega_pub_key() { + vega_pub_key_.ClearToEmpty(); +} +inline const std::string& ValidatorUpdate::vega_pub_key() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorUpdate.vega_pub_key) + return _internal_vega_pub_key(); +} +inline void ValidatorUpdate::set_vega_pub_key(const std::string& value) { + _internal_set_vega_pub_key(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorUpdate.vega_pub_key) +} +inline std::string* ValidatorUpdate::mutable_vega_pub_key() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorUpdate.vega_pub_key) + return _internal_mutable_vega_pub_key(); +} +inline const std::string& ValidatorUpdate::_internal_vega_pub_key() const { + return vega_pub_key_.Get(); +} +inline void ValidatorUpdate::_internal_set_vega_pub_key(const std::string& value) { + + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ValidatorUpdate::set_vega_pub_key(std::string&& value) { + + vega_pub_key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorUpdate.vega_pub_key) +} +inline void ValidatorUpdate::set_vega_pub_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorUpdate.vega_pub_key) +} +inline void ValidatorUpdate::set_vega_pub_key(const char* value, + size_t size) { + + vega_pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorUpdate.vega_pub_key) +} +inline std::string* ValidatorUpdate::_internal_mutable_vega_pub_key() { + + return vega_pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ValidatorUpdate::release_vega_pub_key() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorUpdate.vega_pub_key) + return vega_pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ValidatorUpdate::set_allocated_vega_pub_key(std::string* vega_pub_key) { + if (vega_pub_key != nullptr) { + + } else { + + } + vega_pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_pub_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorUpdate.vega_pub_key) } -inline const std::string& ValidatorUpdate::pub_key() const { - // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorUpdate.pub_key) - return _internal_pub_key(); + +// string ethereum_address = 2 [json_name = "ethereumAddress"]; +inline void ValidatorUpdate::clear_ethereum_address() { + ethereum_address_.ClearToEmpty(); +} +inline const std::string& ValidatorUpdate::ethereum_address() const { + // @@protoc_insertion_point(field_get:vega.events.v1.ValidatorUpdate.ethereum_address) + return _internal_ethereum_address(); } -inline void ValidatorUpdate::set_pub_key(const std::string& value) { - _internal_set_pub_key(value); - // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorUpdate.pub_key) +inline void ValidatorUpdate::set_ethereum_address(const std::string& value) { + _internal_set_ethereum_address(value); + // @@protoc_insertion_point(field_set:vega.events.v1.ValidatorUpdate.ethereum_address) } -inline std::string* ValidatorUpdate::mutable_pub_key() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorUpdate.pub_key) - return _internal_mutable_pub_key(); +inline std::string* ValidatorUpdate::mutable_ethereum_address() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.ValidatorUpdate.ethereum_address) + return _internal_mutable_ethereum_address(); } -inline const std::string& ValidatorUpdate::_internal_pub_key() const { - return pub_key_.Get(); +inline const std::string& ValidatorUpdate::_internal_ethereum_address() const { + return ethereum_address_.Get(); } -inline void ValidatorUpdate::_internal_set_pub_key(const std::string& value) { +inline void ValidatorUpdate::_internal_set_ethereum_address(const std::string& value) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void ValidatorUpdate::set_pub_key(std::string&& value) { +inline void ValidatorUpdate::set_ethereum_address(std::string&& value) { - pub_key_.Set( + ethereum_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorUpdate.pub_key) + // @@protoc_insertion_point(field_set_rvalue:vega.events.v1.ValidatorUpdate.ethereum_address) } -inline void ValidatorUpdate::set_pub_key(const char* value) { +inline void ValidatorUpdate::set_ethereum_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorUpdate.pub_key) + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.events.v1.ValidatorUpdate.ethereum_address) } -inline void ValidatorUpdate::set_pub_key(const char* value, +inline void ValidatorUpdate::set_ethereum_address(const char* value, size_t size) { - pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + ethereum_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorUpdate.pub_key) + // @@protoc_insertion_point(field_set_pointer:vega.events.v1.ValidatorUpdate.ethereum_address) } -inline std::string* ValidatorUpdate::_internal_mutable_pub_key() { +inline std::string* ValidatorUpdate::_internal_mutable_ethereum_address() { - return pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return ethereum_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* ValidatorUpdate::release_pub_key() { - // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorUpdate.pub_key) - return pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ValidatorUpdate::release_ethereum_address() { + // @@protoc_insertion_point(field_release:vega.events.v1.ValidatorUpdate.ethereum_address) + return ethereum_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void ValidatorUpdate::set_allocated_pub_key(std::string* pub_key) { - if (pub_key != nullptr) { +inline void ValidatorUpdate::set_allocated_ethereum_address(std::string* ethereum_address) { + if (ethereum_address != nullptr) { } else { } - pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pub_key, + ethereum_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ethereum_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorUpdate.pub_key) + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorUpdate.ethereum_address) } -// string tm_pub_key = 2 [json_name = "tmPubKey"]; +// string tm_pub_key = 3 [json_name = "tmPubKey"]; inline void ValidatorUpdate::clear_tm_pub_key() { tm_pub_key_.ClearToEmpty(); } @@ -6591,7 +8406,7 @@ inline void ValidatorUpdate::set_allocated_tm_pub_key(std::string* tm_pub_key) { // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorUpdate.tm_pub_key) } -// string info_url = 3 [json_name = "infoUrl"]; +// string info_url = 4 [json_name = "infoUrl"]; inline void ValidatorUpdate::clear_info_url() { info_url_.ClearToEmpty(); } @@ -6652,7 +8467,7 @@ inline void ValidatorUpdate::set_allocated_info_url(std::string* info_url) { // @@protoc_insertion_point(field_set_allocated:vega.events.v1.ValidatorUpdate.info_url) } -// string country = 4 [json_name = "country"]; +// string country = 5 [json_name = "country"]; inline void ValidatorUpdate::clear_country() { country_.ClearToEmpty(); } @@ -8751,77 +10566,77 @@ inline ::vega::events::v1::DelegationBalanceEvent* BusEvent::mutable_delegation_ return _internal_mutable_delegation_balance(); } -// .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; -inline bool BusEvent::_internal_has_pending_delegation_balance() const { - return event_case() == kPendingDelegationBalance; +// .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; +inline bool BusEvent::_internal_has_validator_score() const { + return event_case() == kValidatorScore; } -inline bool BusEvent::has_pending_delegation_balance() const { - return _internal_has_pending_delegation_balance(); +inline bool BusEvent::has_validator_score() const { + return _internal_has_validator_score(); } -inline void BusEvent::set_has_pending_delegation_balance() { - _oneof_case_[0] = kPendingDelegationBalance; +inline void BusEvent::set_has_validator_score() { + _oneof_case_[0] = kValidatorScore; } -inline void BusEvent::clear_pending_delegation_balance() { - if (_internal_has_pending_delegation_balance()) { +inline void BusEvent::clear_validator_score() { + if (_internal_has_validator_score()) { if (GetArena() == nullptr) { - delete event_.pending_delegation_balance_; + delete event_.validator_score_; } clear_has_event(); } } -inline ::vega::events::v1::PendingDelegationBalanceEvent* BusEvent::release_pending_delegation_balance() { - // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.pending_delegation_balance) - if (_internal_has_pending_delegation_balance()) { +inline ::vega::events::v1::ValidatorScoreEvent* BusEvent::release_validator_score() { + // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.validator_score) + if (_internal_has_validator_score()) { clear_has_event(); - ::vega::events::v1::PendingDelegationBalanceEvent* temp = event_.pending_delegation_balance_; + ::vega::events::v1::ValidatorScoreEvent* temp = event_.validator_score_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - event_.pending_delegation_balance_ = nullptr; + event_.validator_score_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::events::v1::PendingDelegationBalanceEvent& BusEvent::_internal_pending_delegation_balance() const { - return _internal_has_pending_delegation_balance() - ? *event_.pending_delegation_balance_ - : reinterpret_cast< ::vega::events::v1::PendingDelegationBalanceEvent&>(::vega::events::v1::_PendingDelegationBalanceEvent_default_instance_); +inline const ::vega::events::v1::ValidatorScoreEvent& BusEvent::_internal_validator_score() const { + return _internal_has_validator_score() + ? *event_.validator_score_ + : reinterpret_cast< ::vega::events::v1::ValidatorScoreEvent&>(::vega::events::v1::_ValidatorScoreEvent_default_instance_); } -inline const ::vega::events::v1::PendingDelegationBalanceEvent& BusEvent::pending_delegation_balance() const { - // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.pending_delegation_balance) - return _internal_pending_delegation_balance(); +inline const ::vega::events::v1::ValidatorScoreEvent& BusEvent::validator_score() const { + // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.validator_score) + return _internal_validator_score(); } -inline ::vega::events::v1::PendingDelegationBalanceEvent* BusEvent::unsafe_arena_release_pending_delegation_balance() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.pending_delegation_balance) - if (_internal_has_pending_delegation_balance()) { +inline ::vega::events::v1::ValidatorScoreEvent* BusEvent::unsafe_arena_release_validator_score() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.validator_score) + if (_internal_has_validator_score()) { clear_has_event(); - ::vega::events::v1::PendingDelegationBalanceEvent* temp = event_.pending_delegation_balance_; - event_.pending_delegation_balance_ = nullptr; + ::vega::events::v1::ValidatorScoreEvent* temp = event_.validator_score_; + event_.validator_score_ = nullptr; return temp; } else { return nullptr; } } -inline void BusEvent::unsafe_arena_set_allocated_pending_delegation_balance(::vega::events::v1::PendingDelegationBalanceEvent* pending_delegation_balance) { +inline void BusEvent::unsafe_arena_set_allocated_validator_score(::vega::events::v1::ValidatorScoreEvent* validator_score) { clear_event(); - if (pending_delegation_balance) { - set_has_pending_delegation_balance(); - event_.pending_delegation_balance_ = pending_delegation_balance; + if (validator_score) { + set_has_validator_score(); + event_.validator_score_ = validator_score; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.pending_delegation_balance) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.validator_score) } -inline ::vega::events::v1::PendingDelegationBalanceEvent* BusEvent::_internal_mutable_pending_delegation_balance() { - if (!_internal_has_pending_delegation_balance()) { +inline ::vega::events::v1::ValidatorScoreEvent* BusEvent::_internal_mutable_validator_score() { + if (!_internal_has_validator_score()) { clear_event(); - set_has_pending_delegation_balance(); - event_.pending_delegation_balance_ = CreateMaybeMessage< ::vega::events::v1::PendingDelegationBalanceEvent >(GetArena()); + set_has_validator_score(); + event_.validator_score_ = CreateMaybeMessage< ::vega::events::v1::ValidatorScoreEvent >(GetArena()); } - return event_.pending_delegation_balance_; + return event_.validator_score_; } -inline ::vega::events::v1::PendingDelegationBalanceEvent* BusEvent::mutable_pending_delegation_balance() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.pending_delegation_balance) - return _internal_mutable_pending_delegation_balance(); +inline ::vega::events::v1::ValidatorScoreEvent* BusEvent::mutable_validator_score() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.validator_score) + return _internal_mutable_validator_score(); } // .vega.events.v1.EpochEvent epoch_event = 131 [json_name = "epochEvent"]; @@ -8970,77 +10785,223 @@ inline ::vega::events::v1::ValidatorUpdate* BusEvent::mutable_validator_update() return _internal_mutable_validator_update(); } -// .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; -inline bool BusEvent::_internal_has_staking_event() const { - return event_case() == kStakingEvent; +// .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; +inline bool BusEvent::_internal_has_stake_linking() const { + return event_case() == kStakeLinking; +} +inline bool BusEvent::has_stake_linking() const { + return _internal_has_stake_linking(); +} +inline void BusEvent::set_has_stake_linking() { + _oneof_case_[0] = kStakeLinking; +} +inline void BusEvent::clear_stake_linking() { + if (_internal_has_stake_linking()) { + if (GetArena() == nullptr) { + delete event_.stake_linking_; + } + clear_has_event(); + } +} +inline ::vega::events::v1::StakeLinking* BusEvent::release_stake_linking() { + // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.stake_linking) + if (_internal_has_stake_linking()) { + clear_has_event(); + ::vega::events::v1::StakeLinking* temp = event_.stake_linking_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + event_.stake_linking_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::events::v1::StakeLinking& BusEvent::_internal_stake_linking() const { + return _internal_has_stake_linking() + ? *event_.stake_linking_ + : reinterpret_cast< ::vega::events::v1::StakeLinking&>(::vega::events::v1::_StakeLinking_default_instance_); +} +inline const ::vega::events::v1::StakeLinking& BusEvent::stake_linking() const { + // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.stake_linking) + return _internal_stake_linking(); +} +inline ::vega::events::v1::StakeLinking* BusEvent::unsafe_arena_release_stake_linking() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.stake_linking) + if (_internal_has_stake_linking()) { + clear_has_event(); + ::vega::events::v1::StakeLinking* temp = event_.stake_linking_; + event_.stake_linking_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void BusEvent::unsafe_arena_set_allocated_stake_linking(::vega::events::v1::StakeLinking* stake_linking) { + clear_event(); + if (stake_linking) { + set_has_stake_linking(); + event_.stake_linking_ = stake_linking; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.stake_linking) +} +inline ::vega::events::v1::StakeLinking* BusEvent::_internal_mutable_stake_linking() { + if (!_internal_has_stake_linking()) { + clear_event(); + set_has_stake_linking(); + event_.stake_linking_ = CreateMaybeMessage< ::vega::events::v1::StakeLinking >(GetArena()); + } + return event_.stake_linking_; +} +inline ::vega::events::v1::StakeLinking* BusEvent::mutable_stake_linking() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.stake_linking) + return _internal_mutable_stake_linking(); +} + +// .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; +inline bool BusEvent::_internal_has_reward_payout() const { + return event_case() == kRewardPayout; +} +inline bool BusEvent::has_reward_payout() const { + return _internal_has_reward_payout(); +} +inline void BusEvent::set_has_reward_payout() { + _oneof_case_[0] = kRewardPayout; +} +inline void BusEvent::clear_reward_payout() { + if (_internal_has_reward_payout()) { + if (GetArena() == nullptr) { + delete event_.reward_payout_; + } + clear_has_event(); + } +} +inline ::vega::events::v1::RewardPayoutEvent* BusEvent::release_reward_payout() { + // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.reward_payout) + if (_internal_has_reward_payout()) { + clear_has_event(); + ::vega::events::v1::RewardPayoutEvent* temp = event_.reward_payout_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + event_.reward_payout_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::events::v1::RewardPayoutEvent& BusEvent::_internal_reward_payout() const { + return _internal_has_reward_payout() + ? *event_.reward_payout_ + : reinterpret_cast< ::vega::events::v1::RewardPayoutEvent&>(::vega::events::v1::_RewardPayoutEvent_default_instance_); +} +inline const ::vega::events::v1::RewardPayoutEvent& BusEvent::reward_payout() const { + // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.reward_payout) + return _internal_reward_payout(); +} +inline ::vega::events::v1::RewardPayoutEvent* BusEvent::unsafe_arena_release_reward_payout() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.reward_payout) + if (_internal_has_reward_payout()) { + clear_has_event(); + ::vega::events::v1::RewardPayoutEvent* temp = event_.reward_payout_; + event_.reward_payout_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void BusEvent::unsafe_arena_set_allocated_reward_payout(::vega::events::v1::RewardPayoutEvent* reward_payout) { + clear_event(); + if (reward_payout) { + set_has_reward_payout(); + event_.reward_payout_ = reward_payout; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.reward_payout) +} +inline ::vega::events::v1::RewardPayoutEvent* BusEvent::_internal_mutable_reward_payout() { + if (!_internal_has_reward_payout()) { + clear_event(); + set_has_reward_payout(); + event_.reward_payout_ = CreateMaybeMessage< ::vega::events::v1::RewardPayoutEvent >(GetArena()); + } + return event_.reward_payout_; +} +inline ::vega::events::v1::RewardPayoutEvent* BusEvent::mutable_reward_payout() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.reward_payout) + return _internal_mutable_reward_payout(); +} + +// .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; +inline bool BusEvent::_internal_has_checkpoint() const { + return event_case() == kCheckpoint; } -inline bool BusEvent::has_staking_event() const { - return _internal_has_staking_event(); +inline bool BusEvent::has_checkpoint() const { + return _internal_has_checkpoint(); } -inline void BusEvent::set_has_staking_event() { - _oneof_case_[0] = kStakingEvent; +inline void BusEvent::set_has_checkpoint() { + _oneof_case_[0] = kCheckpoint; } -inline void BusEvent::clear_staking_event() { - if (_internal_has_staking_event()) { +inline void BusEvent::clear_checkpoint() { + if (_internal_has_checkpoint()) { if (GetArena() == nullptr) { - delete event_.staking_event_; + delete event_.checkpoint_; } clear_has_event(); } } -inline ::vega::events::v1::StakingEvent* BusEvent::release_staking_event() { - // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.staking_event) - if (_internal_has_staking_event()) { +inline ::vega::events::v1::CheckpointEvent* BusEvent::release_checkpoint() { + // @@protoc_insertion_point(field_release:vega.events.v1.BusEvent.checkpoint) + if (_internal_has_checkpoint()) { clear_has_event(); - ::vega::events::v1::StakingEvent* temp = event_.staking_event_; + ::vega::events::v1::CheckpointEvent* temp = event_.checkpoint_; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - event_.staking_event_ = nullptr; + event_.checkpoint_ = nullptr; return temp; } else { return nullptr; } } -inline const ::vega::events::v1::StakingEvent& BusEvent::_internal_staking_event() const { - return _internal_has_staking_event() - ? *event_.staking_event_ - : reinterpret_cast< ::vega::events::v1::StakingEvent&>(::vega::events::v1::_StakingEvent_default_instance_); +inline const ::vega::events::v1::CheckpointEvent& BusEvent::_internal_checkpoint() const { + return _internal_has_checkpoint() + ? *event_.checkpoint_ + : reinterpret_cast< ::vega::events::v1::CheckpointEvent&>(::vega::events::v1::_CheckpointEvent_default_instance_); } -inline const ::vega::events::v1::StakingEvent& BusEvent::staking_event() const { - // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.staking_event) - return _internal_staking_event(); +inline const ::vega::events::v1::CheckpointEvent& BusEvent::checkpoint() const { + // @@protoc_insertion_point(field_get:vega.events.v1.BusEvent.checkpoint) + return _internal_checkpoint(); } -inline ::vega::events::v1::StakingEvent* BusEvent::unsafe_arena_release_staking_event() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.staking_event) - if (_internal_has_staking_event()) { +inline ::vega::events::v1::CheckpointEvent* BusEvent::unsafe_arena_release_checkpoint() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.BusEvent.checkpoint) + if (_internal_has_checkpoint()) { clear_has_event(); - ::vega::events::v1::StakingEvent* temp = event_.staking_event_; - event_.staking_event_ = nullptr; + ::vega::events::v1::CheckpointEvent* temp = event_.checkpoint_; + event_.checkpoint_ = nullptr; return temp; } else { return nullptr; } } -inline void BusEvent::unsafe_arena_set_allocated_staking_event(::vega::events::v1::StakingEvent* staking_event) { +inline void BusEvent::unsafe_arena_set_allocated_checkpoint(::vega::events::v1::CheckpointEvent* checkpoint) { clear_event(); - if (staking_event) { - set_has_staking_event(); - event_.staking_event_ = staking_event; + if (checkpoint) { + set_has_checkpoint(); + event_.checkpoint_ = checkpoint; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.staking_event) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.BusEvent.checkpoint) } -inline ::vega::events::v1::StakingEvent* BusEvent::_internal_mutable_staking_event() { - if (!_internal_has_staking_event()) { +inline ::vega::events::v1::CheckpointEvent* BusEvent::_internal_mutable_checkpoint() { + if (!_internal_has_checkpoint()) { clear_event(); - set_has_staking_event(); - event_.staking_event_ = CreateMaybeMessage< ::vega::events::v1::StakingEvent >(GetArena()); + set_has_checkpoint(); + event_.checkpoint_ = CreateMaybeMessage< ::vega::events::v1::CheckpointEvent >(GetArena()); } - return event_.staking_event_; + return event_.checkpoint_; } -inline ::vega::events::v1::StakingEvent* BusEvent::mutable_staking_event() { - // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.staking_event) - return _internal_mutable_staking_event(); +inline ::vega::events::v1::CheckpointEvent* BusEvent::mutable_checkpoint() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.BusEvent.checkpoint) + return _internal_mutable_checkpoint(); } // .vega.events.v1.MarketEvent market = 1001 [json_name = "market"]; @@ -9233,6 +11194,12 @@ inline BusEvent::EventCase BusEvent::event_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -9242,10 +11209,15 @@ inline BusEvent::EventCase BusEvent::event_case() const { PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::vega::events::v1::StakingEvent_Type> : ::std::true_type {}; +template <> struct is_proto_enum< ::vega::events::v1::StakeLinking_Type> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::vega::events::v1::StakeLinking_Type>() { + return ::vega::events::v1::StakeLinking_Type_descriptor(); +} +template <> struct is_proto_enum< ::vega::events::v1::StakeLinking_Status> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::vega::events::v1::StakingEvent_Type>() { - return ::vega::events::v1::StakingEvent_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::vega::events::v1::StakeLinking_Status>() { + return ::vega::events::v1::StakeLinking_Status_descriptor(); } template <> struct is_proto_enum< ::vega::events::v1::BusEventType> : ::std::true_type {}; template <> diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.cc b/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.cc new file mode 100644 index 00000000..2c737b1e --- /dev/null +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.cc @@ -0,0 +1,29 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: snapshot/v1/snapshot.proto + +#include "snapshot/v1/snapshot.pb.h" +#include "snapshot/v1/snapshot.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace vega { +namespace snapshot { +namespace v1 { + +} // namespace vega +} // namespace snapshot +} // namespace v1 + diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.h b/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.h new file mode 100644 index 00000000..6fde9291 --- /dev/null +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.grpc.pb.h @@ -0,0 +1,38 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: snapshot/v1/snapshot.proto +#ifndef GRPC_snapshot_2fv1_2fsnapshot_2eproto__INCLUDED +#define GRPC_snapshot_2fv1_2fsnapshot_2eproto__INCLUDED + +#include "snapshot/v1/snapshot.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace vega { +namespace snapshot { +namespace v1 { + +} // namespace v1 +} // namespace snapshot +} // namespace vega + + +#endif // GRPC_snapshot_2fv1_2fsnapshot_2eproto__INCLUDED diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc new file mode 100644 index 00000000..534abbb2 --- /dev/null +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc @@ -0,0 +1,2892 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: snapshot/v1/snapshot.proto + +#include "snapshot/v1/snapshot.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +extern PROTOBUF_INTERNAL_EXPORT_assets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_AssetDetails_assets_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParameter_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Proposal_governance_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_snapshot_2fv1_2fsnapshot_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_snapshot_2fv1_2fsnapshot_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_snapshot_2fv1_2fsnapshot_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto; +namespace vega { +namespace snapshot { +namespace v1 { +class SnapshotDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Snapshot_default_instance_; +class CheckpointDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Checkpoint_default_instance_; +class AssetEntryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AssetEntry_default_instance_; +class AssetsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Assets_default_instance_; +class AssetBalanceDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AssetBalance_default_instance_; +class CollateralDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Collateral_default_instance_; +class NetParamsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _NetParams_default_instance_; +class ProposalsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Proposals_default_instance_; +class DelegateEntryDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DelegateEntry_default_instance_; +class DelegateDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Delegate_default_instance_; +} // namespace v1 +} // namespace snapshot +} // namespace vega +static void InitDefaultsscc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_AssetBalance_default_instance_; + new (ptr) ::vega::snapshot::v1::AssetBalance(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto}, {}}; + +static void InitDefaultsscc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_AssetEntry_default_instance_; + new (ptr) ::vega::snapshot::v1::AssetEntry(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_AssetDetails_assets_2eproto.base,}}; + +static void InitDefaultsscc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Assets_default_instance_; + new (ptr) ::vega::snapshot::v1::Assets(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto.base,}}; + +static void InitDefaultsscc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Checkpoint_default_instance_; + new (ptr) ::vega::snapshot::v1::Checkpoint(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto}, {}}; + +static void InitDefaultsscc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Collateral_default_instance_; + new (ptr) ::vega::snapshot::v1::Collateral(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto.base,}}; + +static void InitDefaultsscc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Delegate_default_instance_; + new (ptr) ::vega::snapshot::v1::Delegate(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto.base,}}; + +static void InitDefaultsscc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_DelegateEntry_default_instance_; + new (ptr) ::vega::snapshot::v1::DelegateEntry(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto}, {}}; + +static void InitDefaultsscc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_NetParams_default_instance_; + new (ptr) ::vega::snapshot::v1::NetParams(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_NetworkParameter_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Proposals_default_instance_; + new (ptr) ::vega::snapshot::v1::Proposals(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto}, { + &scc_info_Proposal_governance_2eproto.base,}}; + +static void InitDefaultsscc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::snapshot::v1::_Snapshot_default_instance_; + new (ptr) ::vega::snapshot::v1::Snapshot(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_snapshot_2fv1_2fsnapshot_2eproto[10]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_snapshot_2fv1_2fsnapshot_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_snapshot_2fv1_2fsnapshot_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_snapshot_2fv1_2fsnapshot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Snapshot, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Snapshot, hash_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Snapshot, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, governance_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, assets_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, collateral_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, network_parameters_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Checkpoint, delegation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetEntry, id_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetEntry, asset_details_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Assets, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Assets, assets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetBalance, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetBalance, party_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetBalance, asset_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::AssetBalance, balance_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Collateral, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Collateral, balances_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::NetParams, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::NetParams, params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Proposals, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Proposals, proposals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, party_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, node_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, amount_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, undelegate_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::DelegateEntry, epoch_seq_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Delegate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Delegate, active_), + PROTOBUF_FIELD_OFFSET(::vega::snapshot::v1::Delegate, pending_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::vega::snapshot::v1::Snapshot)}, + { 7, -1, sizeof(::vega::snapshot::v1::Checkpoint)}, + { 17, -1, sizeof(::vega::snapshot::v1::AssetEntry)}, + { 24, -1, sizeof(::vega::snapshot::v1::Assets)}, + { 30, -1, sizeof(::vega::snapshot::v1::AssetBalance)}, + { 38, -1, sizeof(::vega::snapshot::v1::Collateral)}, + { 44, -1, sizeof(::vega::snapshot::v1::NetParams)}, + { 50, -1, sizeof(::vega::snapshot::v1::Proposals)}, + { 56, -1, sizeof(::vega::snapshot::v1::DelegateEntry)}, + { 66, -1, sizeof(::vega::snapshot::v1::Delegate)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::vega::snapshot::v1::_Snapshot_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_Checkpoint_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_AssetEntry_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_Assets_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_AssetBalance_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_Collateral_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_NetParams_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_Proposals_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_DelegateEntry_default_instance_), + reinterpret_cast(&::vega::snapshot::v1::_Delegate_default_instance_), +}; + +const char descriptor_table_protodef_snapshot_2fv1_2fsnapshot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032snapshot/v1/snapshot.proto\022\020vega.snaps" + "hot.v1\032\nvega.proto\032\014assets.proto\032\020govern" + "ance.proto\"4\n\010Snapshot\022\022\n\004hash\030\001 \001(\014R\004ha" + "sh\022\024\n\005state\030\002 \001(\014R\005state\"\263\001\n\nCheckpoint\022" + "\036\n\ngovernance\030\001 \001(\014R\ngovernance\022\026\n\006asset" + "s\030\002 \001(\014R\006assets\022\036\n\ncollateral\030\003 \001(\014R\ncol" + "lateral\022-\n\022network_parameters\030\004 \001(\014R\021net" + "workParameters\022\036\n\ndelegation\030\005 \001(\014R\ndele" + "gation\"U\n\nAssetEntry\022\016\n\002id\030\001 \001(\tR\002id\0227\n\r" + "asset_details\030\002 \001(\0132\022.vega.AssetDetailsR" + "\014assetDetails\">\n\006Assets\0224\n\006assets\030\001 \003(\0132" + "\034.vega.snapshot.v1.AssetEntryR\006assets\"T\n" + "\014AssetBalance\022\024\n\005party\030\001 \001(\tR\005party\022\024\n\005a" + "sset\030\002 \001(\tR\005asset\022\030\n\007balance\030\003 \001(\tR\007bala" + "nce\"H\n\nCollateral\022:\n\010balances\030\001 \003(\0132\036.ve" + "ga.snapshot.v1.AssetBalanceR\010balances\";\n" + "\tNetParams\022.\n\006params\030\001 \003(\0132\026.vega.Networ" + "kParameterR\006params\"9\n\tProposals\022,\n\tpropo" + "sals\030\001 \003(\0132\016.vega.ProposalR\tproposals\"\216\001" + "\n\rDelegateEntry\022\024\n\005party\030\001 \001(\tR\005party\022\022\n" + "\004node\030\002 \001(\tR\004node\022\026\n\006amount\030\003 \001(\tR\006amoun" + "t\022\036\n\nundelegate\030\004 \001(\010R\nundelegate\022\033\n\tepo" + "ch_seq\030\005 \001(\004R\010epochSeq\"~\n\010Delegate\0227\n\006ac" + "tive\030\001 \003(\0132\037.vega.snapshot.v1.DelegateEn" + "tryR\006active\0229\n\007pending\030\002 \003(\0132\037.vega.snap" + "shot.v1.DelegateEntryR\007pendingBO\n io.veg" + "aprotocol.vega.snapshot.v1Z+code.vegapro" + "tocol.io/vega/proto/snapshot/v1b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_deps[3] = { + &::descriptor_table_assets_2eproto, + &::descriptor_table_governance_2eproto, + &::descriptor_table_vega_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_sccs[10] = { + &scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto.base, + &scc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_snapshot_2fv1_2fsnapshot_2eproto = { + false, false, descriptor_table_protodef_snapshot_2fv1_2fsnapshot_2eproto, "snapshot/v1/snapshot.proto", 1119, + &descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_once, descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_sccs, descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_deps, 10, 3, + schemas, file_default_instances, TableStruct_snapshot_2fv1_2fsnapshot_2eproto::offsets, + file_level_metadata_snapshot_2fv1_2fsnapshot_2eproto, 10, file_level_enum_descriptors_snapshot_2fv1_2fsnapshot_2eproto, file_level_service_descriptors_snapshot_2fv1_2fsnapshot_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_snapshot_2fv1_2fsnapshot_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_snapshot_2fv1_2fsnapshot_2eproto)), true); +namespace vega { +namespace snapshot { +namespace v1 { + +// =================================================================== + +class Snapshot::_Internal { + public: +}; + +Snapshot::Snapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Snapshot) +} +Snapshot::Snapshot(const Snapshot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_hash().empty()) { + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash(), + GetArena()); + } + state_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_state().empty()) { + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_state(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Snapshot) +} + +void Snapshot::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto.base); + hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + state_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Snapshot::~Snapshot() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Snapshot) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Snapshot::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + state_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Snapshot::ArenaDtor(void* object) { + Snapshot* _this = reinterpret_cast< Snapshot* >(object); + (void)_this; +} +void Snapshot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Snapshot::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Snapshot& Snapshot::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Snapshot::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Snapshot) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hash_.ClearToEmpty(); + state_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Snapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes hash = 1 [json_name = "hash"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes state = 2 [json_name = "state"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_state(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Snapshot::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Snapshot) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes hash = 1 [json_name = "hash"]; + if (this->hash().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_hash(), target); + } + + // bytes state = 2 [json_name = "state"]; + if (this->state().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_state(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Snapshot) + return target; +} + +size_t Snapshot::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Snapshot) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes hash = 1 [json_name = "hash"]; + if (this->hash().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_hash()); + } + + // bytes state = 2 [json_name = "state"]; + if (this->state().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_state()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Snapshot::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Snapshot) + GOOGLE_DCHECK_NE(&from, this); + const Snapshot* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Snapshot) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Snapshot) + MergeFrom(*source); + } +} + +void Snapshot::MergeFrom(const Snapshot& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Snapshot) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.hash().size() > 0) { + _internal_set_hash(from._internal_hash()); + } + if (from.state().size() > 0) { + _internal_set_state(from._internal_state()); + } +} + +void Snapshot::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Snapshot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Snapshot::CopyFrom(const Snapshot& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Snapshot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Snapshot::IsInitialized() const { + return true; +} + +void Snapshot::InternalSwap(Snapshot* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + hash_.Swap(&other->hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + state_.Swap(&other->state_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Snapshot::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Checkpoint::_Internal { + public: +}; + +Checkpoint::Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Checkpoint) +} +Checkpoint::Checkpoint(const Checkpoint& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + governance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_governance().empty()) { + governance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_governance(), + GetArena()); + } + assets_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_assets().empty()) { + assets_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_assets(), + GetArena()); + } + collateral_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_collateral().empty()) { + collateral_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_collateral(), + GetArena()); + } + network_parameters_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_network_parameters().empty()) { + network_parameters_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_network_parameters(), + GetArena()); + } + delegation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_delegation().empty()) { + delegation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_delegation(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Checkpoint) +} + +void Checkpoint::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto.base); + governance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + assets_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collateral_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + network_parameters_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delegation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Checkpoint::~Checkpoint() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Checkpoint) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Checkpoint::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + governance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + assets_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collateral_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + network_parameters_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delegation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Checkpoint::ArenaDtor(void* object) { + Checkpoint* _this = reinterpret_cast< Checkpoint* >(object); + (void)_this; +} +void Checkpoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Checkpoint::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Checkpoint& Checkpoint::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Checkpoint_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Checkpoint::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Checkpoint) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + governance_.ClearToEmpty(); + assets_.ClearToEmpty(); + collateral_.ClearToEmpty(); + network_parameters_.ClearToEmpty(); + delegation_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Checkpoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes governance = 1 [json_name = "governance"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_governance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes assets = 2 [json_name = "assets"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_assets(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes collateral = 3 [json_name = "collateral"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_collateral(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes network_parameters = 4 [json_name = "networkParameters"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_network_parameters(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes delegation = 5 [json_name = "delegation"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_delegation(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Checkpoint::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Checkpoint) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes governance = 1 [json_name = "governance"]; + if (this->governance().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_governance(), target); + } + + // bytes assets = 2 [json_name = "assets"]; + if (this->assets().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_assets(), target); + } + + // bytes collateral = 3 [json_name = "collateral"]; + if (this->collateral().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_collateral(), target); + } + + // bytes network_parameters = 4 [json_name = "networkParameters"]; + if (this->network_parameters().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_network_parameters(), target); + } + + // bytes delegation = 5 [json_name = "delegation"]; + if (this->delegation().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 5, this->_internal_delegation(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Checkpoint) + return target; +} + +size_t Checkpoint::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Checkpoint) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes governance = 1 [json_name = "governance"]; + if (this->governance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_governance()); + } + + // bytes assets = 2 [json_name = "assets"]; + if (this->assets().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_assets()); + } + + // bytes collateral = 3 [json_name = "collateral"]; + if (this->collateral().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_collateral()); + } + + // bytes network_parameters = 4 [json_name = "networkParameters"]; + if (this->network_parameters().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_network_parameters()); + } + + // bytes delegation = 5 [json_name = "delegation"]; + if (this->delegation().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_delegation()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Checkpoint::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Checkpoint) + GOOGLE_DCHECK_NE(&from, this); + const Checkpoint* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Checkpoint) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Checkpoint) + MergeFrom(*source); + } +} + +void Checkpoint::MergeFrom(const Checkpoint& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Checkpoint) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.governance().size() > 0) { + _internal_set_governance(from._internal_governance()); + } + if (from.assets().size() > 0) { + _internal_set_assets(from._internal_assets()); + } + if (from.collateral().size() > 0) { + _internal_set_collateral(from._internal_collateral()); + } + if (from.network_parameters().size() > 0) { + _internal_set_network_parameters(from._internal_network_parameters()); + } + if (from.delegation().size() > 0) { + _internal_set_delegation(from._internal_delegation()); + } +} + +void Checkpoint::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Checkpoint) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Checkpoint::CopyFrom(const Checkpoint& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Checkpoint) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Checkpoint::IsInitialized() const { + return true; +} + +void Checkpoint::InternalSwap(Checkpoint* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + governance_.Swap(&other->governance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + assets_.Swap(&other->assets_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + collateral_.Swap(&other->collateral_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + network_parameters_.Swap(&other->network_parameters_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + delegation_.Swap(&other->delegation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Checkpoint::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AssetEntry::_Internal { + public: + static const ::vega::AssetDetails& asset_details(const AssetEntry* msg); +}; + +const ::vega::AssetDetails& +AssetEntry::_Internal::asset_details(const AssetEntry* msg) { + return *msg->asset_details_; +} +void AssetEntry::clear_asset_details() { + if (GetArena() == nullptr && asset_details_ != nullptr) { + delete asset_details_; + } + asset_details_ = nullptr; +} +AssetEntry::AssetEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.AssetEntry) +} +AssetEntry::AssetEntry(const AssetEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + GetArena()); + } + if (from._internal_has_asset_details()) { + asset_details_ = new ::vega::AssetDetails(*from.asset_details_); + } else { + asset_details_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.AssetEntry) +} + +void AssetEntry::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_details_ = nullptr; +} + +AssetEntry::~AssetEntry() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.AssetEntry) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void AssetEntry::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete asset_details_; +} + +void AssetEntry::ArenaDtor(void* object) { + AssetEntry* _this = reinterpret_cast< AssetEntry* >(object); + (void)_this; +} +void AssetEntry::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AssetEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AssetEntry& AssetEntry::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetEntry_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void AssetEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.AssetEntry) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + if (GetArena() == nullptr && asset_details_ != nullptr) { + delete asset_details_; + } + asset_details_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AssetEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.AssetEntry.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_asset_details(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AssetEntry::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.AssetEntry) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.AssetEntry.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + if (this->has_asset_details()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::asset_details(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.AssetEntry) + return target; +} + +size_t AssetEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.AssetEntry) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + if (this->has_asset_details()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *asset_details_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AssetEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.AssetEntry) + GOOGLE_DCHECK_NE(&from, this); + const AssetEntry* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.AssetEntry) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.AssetEntry) + MergeFrom(*source); + } +} + +void AssetEntry::MergeFrom(const AssetEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.AssetEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + _internal_set_id(from._internal_id()); + } + if (from.has_asset_details()) { + _internal_mutable_asset_details()->::vega::AssetDetails::MergeFrom(from._internal_asset_details()); + } +} + +void AssetEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.AssetEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AssetEntry::CopyFrom(const AssetEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.AssetEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AssetEntry::IsInitialized() const { + return true; +} + +void AssetEntry::InternalSwap(AssetEntry* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(asset_details_, other->asset_details_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AssetEntry::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Assets::_Internal { + public: +}; + +Assets::Assets(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + assets_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Assets) +} +Assets::Assets(const Assets& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + assets_(from.assets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Assets) +} + +void Assets::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto.base); +} + +Assets::~Assets() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Assets) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Assets::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void Assets::ArenaDtor(void* object) { + Assets* _this = reinterpret_cast< Assets* >(object); + (void)_this; +} +void Assets::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Assets::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Assets& Assets::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Assets_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Assets::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Assets) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + assets_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Assets::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_assets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Assets::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Assets) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_assets_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_assets(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Assets) + return target; +} + +size_t Assets::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Assets) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + total_size += 1UL * this->_internal_assets_size(); + for (const auto& msg : this->assets_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Assets::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Assets) + GOOGLE_DCHECK_NE(&from, this); + const Assets* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Assets) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Assets) + MergeFrom(*source); + } +} + +void Assets::MergeFrom(const Assets& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Assets) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + assets_.MergeFrom(from.assets_); +} + +void Assets::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Assets) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Assets::CopyFrom(const Assets& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Assets) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Assets::IsInitialized() const { + return true; +} + +void Assets::InternalSwap(Assets* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + assets_.InternalSwap(&other->assets_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Assets::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AssetBalance::_Internal { + public: +}; + +AssetBalance::AssetBalance(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.AssetBalance) +} +AssetBalance::AssetBalance(const AssetBalance& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), + GetArena()); + } + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_balance().empty()) { + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_balance(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.AssetBalance) +} + +void AssetBalance::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +AssetBalance::~AssetBalance() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.AssetBalance) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void AssetBalance::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AssetBalance::ArenaDtor(void* object) { + AssetBalance* _this = reinterpret_cast< AssetBalance* >(object); + (void)_this; +} +void AssetBalance::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AssetBalance::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AssetBalance& AssetBalance::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AssetBalance_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void AssetBalance::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.AssetBalance) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + asset_.ClearToEmpty(); + balance_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AssetBalance::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.AssetBalance.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string asset = 2 [json_name = "asset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_asset(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.AssetBalance.asset")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string balance = 3 [json_name = "balance"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_balance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.AssetBalance.balance")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AssetBalance::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.AssetBalance) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.AssetBalance.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string asset = 2 [json_name = "asset"]; + if (this->asset().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.AssetBalance.asset"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_asset(), target); + } + + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_balance().data(), static_cast(this->_internal_balance().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.AssetBalance.balance"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_balance(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.AssetBalance) + return target; +} + +size_t AssetBalance::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.AssetBalance) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string asset = 2 [json_name = "asset"]; + if (this->asset().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); + } + + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_balance()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AssetBalance::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.AssetBalance) + GOOGLE_DCHECK_NE(&from, this); + const AssetBalance* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.AssetBalance) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.AssetBalance) + MergeFrom(*source); + } +} + +void AssetBalance::MergeFrom(const AssetBalance& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.AssetBalance) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); + } + if (from.balance().size() > 0) { + _internal_set_balance(from._internal_balance()); + } +} + +void AssetBalance::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.AssetBalance) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AssetBalance::CopyFrom(const AssetBalance& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.AssetBalance) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AssetBalance::IsInitialized() const { + return true; +} + +void AssetBalance::InternalSwap(AssetBalance* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + balance_.Swap(&other->balance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AssetBalance::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Collateral::_Internal { + public: +}; + +Collateral::Collateral(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + balances_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Collateral) +} +Collateral::Collateral(const Collateral& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + balances_(from.balances_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Collateral) +} + +void Collateral::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto.base); +} + +Collateral::~Collateral() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Collateral) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Collateral::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void Collateral::ArenaDtor(void* object) { + Collateral* _this = reinterpret_cast< Collateral* >(object); + (void)_this; +} +void Collateral::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Collateral::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Collateral& Collateral::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Collateral_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Collateral::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Collateral) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + balances_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Collateral::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_balances(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Collateral::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Collateral) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_balances_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_balances(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Collateral) + return target; +} + +size_t Collateral::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Collateral) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + total_size += 1UL * this->_internal_balances_size(); + for (const auto& msg : this->balances_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Collateral::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Collateral) + GOOGLE_DCHECK_NE(&from, this); + const Collateral* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Collateral) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Collateral) + MergeFrom(*source); + } +} + +void Collateral::MergeFrom(const Collateral& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Collateral) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + balances_.MergeFrom(from.balances_); +} + +void Collateral::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Collateral) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Collateral::CopyFrom(const Collateral& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Collateral) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Collateral::IsInitialized() const { + return true; +} + +void Collateral::InternalSwap(Collateral* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + balances_.InternalSwap(&other->balances_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Collateral::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class NetParams::_Internal { + public: +}; + +void NetParams::clear_params() { + params_.Clear(); +} +NetParams::NetParams(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + params_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.NetParams) +} +NetParams::NetParams(const NetParams& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + params_(from.params_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.NetParams) +} + +void NetParams::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto.base); +} + +NetParams::~NetParams() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.NetParams) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void NetParams::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void NetParams::ArenaDtor(void* object) { + NetParams* _this = reinterpret_cast< NetParams* >(object); + (void)_this; +} +void NetParams::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void NetParams::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NetParams& NetParams::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetParams_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void NetParams::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.NetParams) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + params_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NetParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* NetParams::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.NetParams) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_params_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_params(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.NetParams) + return target; +} + +size_t NetParams::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.NetParams) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + total_size += 1UL * this->_internal_params_size(); + for (const auto& msg : this->params_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NetParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.NetParams) + GOOGLE_DCHECK_NE(&from, this); + const NetParams* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.NetParams) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.NetParams) + MergeFrom(*source); + } +} + +void NetParams::MergeFrom(const NetParams& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.NetParams) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + params_.MergeFrom(from.params_); +} + +void NetParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.NetParams) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetParams::CopyFrom(const NetParams& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.NetParams) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetParams::IsInitialized() const { + return true; +} + +void NetParams::InternalSwap(NetParams* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + params_.InternalSwap(&other->params_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NetParams::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Proposals::_Internal { + public: +}; + +void Proposals::clear_proposals() { + proposals_.Clear(); +} +Proposals::Proposals(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + proposals_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Proposals) +} +Proposals::Proposals(const Proposals& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + proposals_(from.proposals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Proposals) +} + +void Proposals::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto.base); +} + +Proposals::~Proposals() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Proposals) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Proposals::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void Proposals::ArenaDtor(void* object) { + Proposals* _this = reinterpret_cast< Proposals* >(object); + (void)_this; +} +void Proposals::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Proposals::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Proposals& Proposals::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Proposals_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Proposals::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Proposals) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + proposals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Proposals::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_proposals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Proposals::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Proposals) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_proposals_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_proposals(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Proposals) + return target; +} + +size_t Proposals::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Proposals) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + total_size += 1UL * this->_internal_proposals_size(); + for (const auto& msg : this->proposals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Proposals::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Proposals) + GOOGLE_DCHECK_NE(&from, this); + const Proposals* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Proposals) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Proposals) + MergeFrom(*source); + } +} + +void Proposals::MergeFrom(const Proposals& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Proposals) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + proposals_.MergeFrom(from.proposals_); +} + +void Proposals::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Proposals) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Proposals::CopyFrom(const Proposals& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Proposals) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Proposals::IsInitialized() const { + return true; +} + +void Proposals::InternalSwap(Proposals* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + proposals_.InternalSwap(&other->proposals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Proposals::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DelegateEntry::_Internal { + public: +}; + +DelegateEntry::DelegateEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.DelegateEntry) +} +DelegateEntry::DelegateEntry(const DelegateEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_node().empty()) { + node_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node(), + GetArena()); + } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + ::memcpy(&epoch_seq_, &from.epoch_seq_, + static_cast(reinterpret_cast(&undelegate_) - + reinterpret_cast(&epoch_seq_)) + sizeof(undelegate_)); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.DelegateEntry) +} + +void DelegateEntry::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&epoch_seq_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&undelegate_) - + reinterpret_cast(&epoch_seq_)) + sizeof(undelegate_)); +} + +DelegateEntry::~DelegateEntry() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.DelegateEntry) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void DelegateEntry::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DelegateEntry::ArenaDtor(void* object) { + DelegateEntry* _this = reinterpret_cast< DelegateEntry* >(object); + (void)_this; +} +void DelegateEntry::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DelegateEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DelegateEntry& DelegateEntry::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DelegateEntry_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void DelegateEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.DelegateEntry) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + node_.ClearToEmpty(); + amount_.ClearToEmpty(); + ::memset(&epoch_seq_, 0, static_cast( + reinterpret_cast(&undelegate_) - + reinterpret_cast(&epoch_seq_)) + sizeof(undelegate_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DelegateEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.DelegateEntry.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string node = 2 [json_name = "node"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_node(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.DelegateEntry.node")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 3 [json_name = "amount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.snapshot.v1.DelegateEntry.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool undelegate = 4 [json_name = "undelegate"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + undelegate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 epoch_seq = 5 [json_name = "epochSeq"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + epoch_seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DelegateEntry::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.DelegateEntry) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.DelegateEntry.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string node = 2 [json_name = "node"]; + if (this->node().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_node().data(), static_cast(this->_internal_node().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.DelegateEntry.node"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_node(), target); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.snapshot.v1.DelegateEntry.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); + } + + // bool undelegate = 4 [json_name = "undelegate"]; + if (this->undelegate() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_undelegate(), target); + } + + // uint64 epoch_seq = 5 [json_name = "epochSeq"]; + if (this->epoch_seq() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_epoch_seq(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.DelegateEntry) + return target; +} + +size_t DelegateEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.DelegateEntry) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string node = 2 [json_name = "node"]; + if (this->node().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_node()); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // uint64 epoch_seq = 5 [json_name = "epochSeq"]; + if (this->epoch_seq() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_epoch_seq()); + } + + // bool undelegate = 4 [json_name = "undelegate"]; + if (this->undelegate() != 0) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DelegateEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.DelegateEntry) + GOOGLE_DCHECK_NE(&from, this); + const DelegateEntry* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.DelegateEntry) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.DelegateEntry) + MergeFrom(*source); + } +} + +void DelegateEntry::MergeFrom(const DelegateEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.DelegateEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.node().size() > 0) { + _internal_set_node(from._internal_node()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.epoch_seq() != 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); + } + if (from.undelegate() != 0) { + _internal_set_undelegate(from._internal_undelegate()); + } +} + +void DelegateEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.DelegateEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DelegateEntry::CopyFrom(const DelegateEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.DelegateEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DelegateEntry::IsInitialized() const { + return true; +} + +void DelegateEntry::InternalSwap(DelegateEntry* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + node_.Swap(&other->node_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DelegateEntry, undelegate_) + + sizeof(DelegateEntry::undelegate_) + - PROTOBUF_FIELD_OFFSET(DelegateEntry, epoch_seq_)>( + reinterpret_cast(&epoch_seq_), + reinterpret_cast(&other->epoch_seq_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DelegateEntry::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Delegate::_Internal { + public: +}; + +Delegate::Delegate(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + active_(arena), + pending_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.snapshot.v1.Delegate) +} +Delegate::Delegate(const Delegate& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + active_(from.active_), + pending_(from.pending_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.snapshot.v1.Delegate) +} + +void Delegate::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto.base); +} + +Delegate::~Delegate() { + // @@protoc_insertion_point(destructor:vega.snapshot.v1.Delegate) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Delegate::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void Delegate::ArenaDtor(void* object) { + Delegate* _this = reinterpret_cast< Delegate* >(object); + (void)_this; +} +void Delegate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Delegate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Delegate& Delegate::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Delegate_snapshot_2fv1_2fsnapshot_2eproto.base); + return *internal_default_instance(); +} + + +void Delegate::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.snapshot.v1.Delegate) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + active_.Clear(); + pending_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Delegate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_active(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + // repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_pending(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Delegate::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.snapshot.v1.Delegate) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_active_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_active(i), target, stream); + } + + // repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_pending_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_pending(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.snapshot.v1.Delegate) + return target; +} + +size_t Delegate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.snapshot.v1.Delegate) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + total_size += 1UL * this->_internal_active_size(); + for (const auto& msg : this->active_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + total_size += 1UL * this->_internal_pending_size(); + for (const auto& msg : this->pending_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Delegate::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.snapshot.v1.Delegate) + GOOGLE_DCHECK_NE(&from, this); + const Delegate* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.snapshot.v1.Delegate) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.snapshot.v1.Delegate) + MergeFrom(*source); + } +} + +void Delegate::MergeFrom(const Delegate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.snapshot.v1.Delegate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + active_.MergeFrom(from.active_); + pending_.MergeFrom(from.pending_); +} + +void Delegate::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.snapshot.v1.Delegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Delegate::CopyFrom(const Delegate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.snapshot.v1.Delegate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Delegate::IsInitialized() const { + return true; +} + +void Delegate::InternalSwap(Delegate* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + active_.InternalSwap(&other->active_); + pending_.InternalSwap(&other->pending_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Delegate::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace snapshot +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Snapshot* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Snapshot >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Snapshot >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Checkpoint* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Checkpoint >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Checkpoint >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::AssetEntry* Arena::CreateMaybeMessage< ::vega::snapshot::v1::AssetEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::AssetEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Assets* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Assets >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Assets >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::AssetBalance* Arena::CreateMaybeMessage< ::vega::snapshot::v1::AssetBalance >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::AssetBalance >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Collateral* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Collateral >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Collateral >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::NetParams* Arena::CreateMaybeMessage< ::vega::snapshot::v1::NetParams >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::NetParams >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Proposals* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Proposals >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Proposals >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::DelegateEntry* Arena::CreateMaybeMessage< ::vega::snapshot::v1::DelegateEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::DelegateEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::Delegate* Arena::CreateMaybeMessage< ::vega::snapshot::v1::Delegate >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::snapshot::v1::Delegate >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h new file mode 100644 index 00000000..0a1b7ce7 --- /dev/null +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h @@ -0,0 +1,3052 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: snapshot/v1/snapshot.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_snapshot_2fv1_2fsnapshot_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_snapshot_2fv1_2fsnapshot_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3014000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "vega.pb.h" +#include "assets.pb.h" +#include "governance.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_snapshot_2fv1_2fsnapshot_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_snapshot_2fv1_2fsnapshot_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_snapshot_2fv1_2fsnapshot_2eproto; +namespace vega { +namespace snapshot { +namespace v1 { +class AssetBalance; +class AssetBalanceDefaultTypeInternal; +extern AssetBalanceDefaultTypeInternal _AssetBalance_default_instance_; +class AssetEntry; +class AssetEntryDefaultTypeInternal; +extern AssetEntryDefaultTypeInternal _AssetEntry_default_instance_; +class Assets; +class AssetsDefaultTypeInternal; +extern AssetsDefaultTypeInternal _Assets_default_instance_; +class Checkpoint; +class CheckpointDefaultTypeInternal; +extern CheckpointDefaultTypeInternal _Checkpoint_default_instance_; +class Collateral; +class CollateralDefaultTypeInternal; +extern CollateralDefaultTypeInternal _Collateral_default_instance_; +class Delegate; +class DelegateDefaultTypeInternal; +extern DelegateDefaultTypeInternal _Delegate_default_instance_; +class DelegateEntry; +class DelegateEntryDefaultTypeInternal; +extern DelegateEntryDefaultTypeInternal _DelegateEntry_default_instance_; +class NetParams; +class NetParamsDefaultTypeInternal; +extern NetParamsDefaultTypeInternal _NetParams_default_instance_; +class Proposals; +class ProposalsDefaultTypeInternal; +extern ProposalsDefaultTypeInternal _Proposals_default_instance_; +class Snapshot; +class SnapshotDefaultTypeInternal; +extern SnapshotDefaultTypeInternal _Snapshot_default_instance_; +} // namespace v1 +} // namespace snapshot +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> ::vega::snapshot::v1::AssetBalance* Arena::CreateMaybeMessage<::vega::snapshot::v1::AssetBalance>(Arena*); +template<> ::vega::snapshot::v1::AssetEntry* Arena::CreateMaybeMessage<::vega::snapshot::v1::AssetEntry>(Arena*); +template<> ::vega::snapshot::v1::Assets* Arena::CreateMaybeMessage<::vega::snapshot::v1::Assets>(Arena*); +template<> ::vega::snapshot::v1::Checkpoint* Arena::CreateMaybeMessage<::vega::snapshot::v1::Checkpoint>(Arena*); +template<> ::vega::snapshot::v1::Collateral* Arena::CreateMaybeMessage<::vega::snapshot::v1::Collateral>(Arena*); +template<> ::vega::snapshot::v1::Delegate* Arena::CreateMaybeMessage<::vega::snapshot::v1::Delegate>(Arena*); +template<> ::vega::snapshot::v1::DelegateEntry* Arena::CreateMaybeMessage<::vega::snapshot::v1::DelegateEntry>(Arena*); +template<> ::vega::snapshot::v1::NetParams* Arena::CreateMaybeMessage<::vega::snapshot::v1::NetParams>(Arena*); +template<> ::vega::snapshot::v1::Proposals* Arena::CreateMaybeMessage<::vega::snapshot::v1::Proposals>(Arena*); +template<> ::vega::snapshot::v1::Snapshot* Arena::CreateMaybeMessage<::vega::snapshot::v1::Snapshot>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace vega { +namespace snapshot { +namespace v1 { + +// =================================================================== + +class Snapshot PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Snapshot) */ { + public: + inline Snapshot() : Snapshot(nullptr) {} + virtual ~Snapshot(); + + Snapshot(const Snapshot& from); + Snapshot(Snapshot&& from) noexcept + : Snapshot() { + *this = ::std::move(from); + } + + inline Snapshot& operator=(const Snapshot& from) { + CopyFrom(from); + return *this; + } + inline Snapshot& operator=(Snapshot&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Snapshot& default_instance(); + + static inline const Snapshot* internal_default_instance() { + return reinterpret_cast( + &_Snapshot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Snapshot& a, Snapshot& b) { + a.Swap(&b); + } + inline void Swap(Snapshot* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Snapshot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Snapshot* New() const final { + return CreateMaybeMessage(nullptr); + } + + Snapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Snapshot& from); + void MergeFrom(const Snapshot& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Snapshot* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Snapshot"; + } + protected: + explicit Snapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHashFieldNumber = 1, + kStateFieldNumber = 2, + }; + // bytes hash = 1 [json_name = "hash"]; + void clear_hash(); + const std::string& hash() const; + void set_hash(const std::string& value); + void set_hash(std::string&& value); + void set_hash(const char* value); + void set_hash(const void* value, size_t size); + std::string* mutable_hash(); + std::string* release_hash(); + void set_allocated_hash(std::string* hash); + private: + const std::string& _internal_hash() const; + void _internal_set_hash(const std::string& value); + std::string* _internal_mutable_hash(); + public: + + // bytes state = 2 [json_name = "state"]; + void clear_state(); + const std::string& state() const; + void set_state(const std::string& value); + void set_state(std::string&& value); + void set_state(const char* value); + void set_state(const void* value, size_t size); + std::string* mutable_state(); + std::string* release_state(); + void set_allocated_state(std::string* state); + private: + const std::string& _internal_state() const; + void _internal_set_state(const std::string& value); + std::string* _internal_mutable_state(); + public: + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Snapshot) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class Checkpoint PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Checkpoint) */ { + public: + inline Checkpoint() : Checkpoint(nullptr) {} + virtual ~Checkpoint(); + + Checkpoint(const Checkpoint& from); + Checkpoint(Checkpoint&& from) noexcept + : Checkpoint() { + *this = ::std::move(from); + } + + inline Checkpoint& operator=(const Checkpoint& from) { + CopyFrom(from); + return *this; + } + inline Checkpoint& operator=(Checkpoint&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Checkpoint& default_instance(); + + static inline const Checkpoint* internal_default_instance() { + return reinterpret_cast( + &_Checkpoint_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Checkpoint& a, Checkpoint& b) { + a.Swap(&b); + } + inline void Swap(Checkpoint* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Checkpoint* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Checkpoint* New() const final { + return CreateMaybeMessage(nullptr); + } + + Checkpoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Checkpoint& from); + void MergeFrom(const Checkpoint& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Checkpoint* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Checkpoint"; + } + protected: + explicit Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kGovernanceFieldNumber = 1, + kAssetsFieldNumber = 2, + kCollateralFieldNumber = 3, + kNetworkParametersFieldNumber = 4, + kDelegationFieldNumber = 5, + }; + // bytes governance = 1 [json_name = "governance"]; + void clear_governance(); + const std::string& governance() const; + void set_governance(const std::string& value); + void set_governance(std::string&& value); + void set_governance(const char* value); + void set_governance(const void* value, size_t size); + std::string* mutable_governance(); + std::string* release_governance(); + void set_allocated_governance(std::string* governance); + private: + const std::string& _internal_governance() const; + void _internal_set_governance(const std::string& value); + std::string* _internal_mutable_governance(); + public: + + // bytes assets = 2 [json_name = "assets"]; + void clear_assets(); + const std::string& assets() const; + void set_assets(const std::string& value); + void set_assets(std::string&& value); + void set_assets(const char* value); + void set_assets(const void* value, size_t size); + std::string* mutable_assets(); + std::string* release_assets(); + void set_allocated_assets(std::string* assets); + private: + const std::string& _internal_assets() const; + void _internal_set_assets(const std::string& value); + std::string* _internal_mutable_assets(); + public: + + // bytes collateral = 3 [json_name = "collateral"]; + void clear_collateral(); + const std::string& collateral() const; + void set_collateral(const std::string& value); + void set_collateral(std::string&& value); + void set_collateral(const char* value); + void set_collateral(const void* value, size_t size); + std::string* mutable_collateral(); + std::string* release_collateral(); + void set_allocated_collateral(std::string* collateral); + private: + const std::string& _internal_collateral() const; + void _internal_set_collateral(const std::string& value); + std::string* _internal_mutable_collateral(); + public: + + // bytes network_parameters = 4 [json_name = "networkParameters"]; + void clear_network_parameters(); + const std::string& network_parameters() const; + void set_network_parameters(const std::string& value); + void set_network_parameters(std::string&& value); + void set_network_parameters(const char* value); + void set_network_parameters(const void* value, size_t size); + std::string* mutable_network_parameters(); + std::string* release_network_parameters(); + void set_allocated_network_parameters(std::string* network_parameters); + private: + const std::string& _internal_network_parameters() const; + void _internal_set_network_parameters(const std::string& value); + std::string* _internal_mutable_network_parameters(); + public: + + // bytes delegation = 5 [json_name = "delegation"]; + void clear_delegation(); + const std::string& delegation() const; + void set_delegation(const std::string& value); + void set_delegation(std::string&& value); + void set_delegation(const char* value); + void set_delegation(const void* value, size_t size); + std::string* mutable_delegation(); + std::string* release_delegation(); + void set_allocated_delegation(std::string* delegation); + private: + const std::string& _internal_delegation() const; + void _internal_set_delegation(const std::string& value); + std::string* _internal_mutable_delegation(); + public: + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Checkpoint) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr governance_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr assets_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collateral_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr network_parameters_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delegation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class AssetEntry PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.AssetEntry) */ { + public: + inline AssetEntry() : AssetEntry(nullptr) {} + virtual ~AssetEntry(); + + AssetEntry(const AssetEntry& from); + AssetEntry(AssetEntry&& from) noexcept + : AssetEntry() { + *this = ::std::move(from); + } + + inline AssetEntry& operator=(const AssetEntry& from) { + CopyFrom(from); + return *this; + } + inline AssetEntry& operator=(AssetEntry&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AssetEntry& default_instance(); + + static inline const AssetEntry* internal_default_instance() { + return reinterpret_cast( + &_AssetEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(AssetEntry& a, AssetEntry& b) { + a.Swap(&b); + } + inline void Swap(AssetEntry* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AssetEntry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AssetEntry* New() const final { + return CreateMaybeMessage(nullptr); + } + + AssetEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AssetEntry& from); + void MergeFrom(const AssetEntry& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AssetEntry* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.AssetEntry"; + } + protected: + explicit AssetEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + kAssetDetailsFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + bool has_asset_details() const; + private: + bool _internal_has_asset_details() const; + public: + void clear_asset_details(); + const ::vega::AssetDetails& asset_details() const; + ::vega::AssetDetails* release_asset_details(); + ::vega::AssetDetails* mutable_asset_details(); + void set_allocated_asset_details(::vega::AssetDetails* asset_details); + private: + const ::vega::AssetDetails& _internal_asset_details() const; + ::vega::AssetDetails* _internal_mutable_asset_details(); + public: + void unsafe_arena_set_allocated_asset_details( + ::vega::AssetDetails* asset_details); + ::vega::AssetDetails* unsafe_arena_release_asset_details(); + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetEntry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::vega::AssetDetails* asset_details_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class Assets PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Assets) */ { + public: + inline Assets() : Assets(nullptr) {} + virtual ~Assets(); + + Assets(const Assets& from); + Assets(Assets&& from) noexcept + : Assets() { + *this = ::std::move(from); + } + + inline Assets& operator=(const Assets& from) { + CopyFrom(from); + return *this; + } + inline Assets& operator=(Assets&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Assets& default_instance(); + + static inline const Assets* internal_default_instance() { + return reinterpret_cast( + &_Assets_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Assets& a, Assets& b) { + a.Swap(&b); + } + inline void Swap(Assets* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Assets* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Assets* New() const final { + return CreateMaybeMessage(nullptr); + } + + Assets* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Assets& from); + void MergeFrom(const Assets& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Assets* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Assets"; + } + protected: + explicit Assets(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAssetsFieldNumber = 1, + }; + // repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + int assets_size() const; + private: + int _internal_assets_size() const; + public: + void clear_assets(); + ::vega::snapshot::v1::AssetEntry* mutable_assets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetEntry >* + mutable_assets(); + private: + const ::vega::snapshot::v1::AssetEntry& _internal_assets(int index) const; + ::vega::snapshot::v1::AssetEntry* _internal_add_assets(); + public: + const ::vega::snapshot::v1::AssetEntry& assets(int index) const; + ::vega::snapshot::v1::AssetEntry* add_assets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetEntry >& + assets() const; + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Assets) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetEntry > assets_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class AssetBalance PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.AssetBalance) */ { + public: + inline AssetBalance() : AssetBalance(nullptr) {} + virtual ~AssetBalance(); + + AssetBalance(const AssetBalance& from); + AssetBalance(AssetBalance&& from) noexcept + : AssetBalance() { + *this = ::std::move(from); + } + + inline AssetBalance& operator=(const AssetBalance& from) { + CopyFrom(from); + return *this; + } + inline AssetBalance& operator=(AssetBalance&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AssetBalance& default_instance(); + + static inline const AssetBalance* internal_default_instance() { + return reinterpret_cast( + &_AssetBalance_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(AssetBalance& a, AssetBalance& b) { + a.Swap(&b); + } + inline void Swap(AssetBalance* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AssetBalance* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AssetBalance* New() const final { + return CreateMaybeMessage(nullptr); + } + + AssetBalance* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AssetBalance& from); + void MergeFrom(const AssetBalance& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AssetBalance* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.AssetBalance"; + } + protected: + explicit AssetBalance(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartyFieldNumber = 1, + kAssetFieldNumber = 2, + kBalanceFieldNumber = 3, + }; + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // string asset = 2 [json_name = "asset"]; + void clear_asset(); + const std::string& asset() const; + void set_asset(const std::string& value); + void set_asset(std::string&& value); + void set_asset(const char* value); + void set_asset(const char* value, size_t size); + std::string* mutable_asset(); + std::string* release_asset(); + void set_allocated_asset(std::string* asset); + private: + const std::string& _internal_asset() const; + void _internal_set_asset(const std::string& value); + std::string* _internal_mutable_asset(); + public: + + // string balance = 3 [json_name = "balance"]; + void clear_balance(); + const std::string& balance() const; + void set_balance(const std::string& value); + void set_balance(std::string&& value); + void set_balance(const char* value); + void set_balance(const char* value, size_t size); + std::string* mutable_balance(); + std::string* release_balance(); + void set_allocated_balance(std::string* balance); + private: + const std::string& _internal_balance() const; + void _internal_set_balance(const std::string& value); + std::string* _internal_mutable_balance(); + public: + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetBalance) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr balance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class Collateral PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Collateral) */ { + public: + inline Collateral() : Collateral(nullptr) {} + virtual ~Collateral(); + + Collateral(const Collateral& from); + Collateral(Collateral&& from) noexcept + : Collateral() { + *this = ::std::move(from); + } + + inline Collateral& operator=(const Collateral& from) { + CopyFrom(from); + return *this; + } + inline Collateral& operator=(Collateral&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Collateral& default_instance(); + + static inline const Collateral* internal_default_instance() { + return reinterpret_cast( + &_Collateral_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Collateral& a, Collateral& b) { + a.Swap(&b); + } + inline void Swap(Collateral* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Collateral* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Collateral* New() const final { + return CreateMaybeMessage(nullptr); + } + + Collateral* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Collateral& from); + void MergeFrom(const Collateral& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Collateral* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Collateral"; + } + protected: + explicit Collateral(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBalancesFieldNumber = 1, + }; + // repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + int balances_size() const; + private: + int _internal_balances_size() const; + public: + void clear_balances(); + ::vega::snapshot::v1::AssetBalance* mutable_balances(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetBalance >* + mutable_balances(); + private: + const ::vega::snapshot::v1::AssetBalance& _internal_balances(int index) const; + ::vega::snapshot::v1::AssetBalance* _internal_add_balances(); + public: + const ::vega::snapshot::v1::AssetBalance& balances(int index) const; + ::vega::snapshot::v1::AssetBalance* add_balances(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetBalance >& + balances() const; + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Collateral) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetBalance > balances_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class NetParams PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.NetParams) */ { + public: + inline NetParams() : NetParams(nullptr) {} + virtual ~NetParams(); + + NetParams(const NetParams& from); + NetParams(NetParams&& from) noexcept + : NetParams() { + *this = ::std::move(from); + } + + inline NetParams& operator=(const NetParams& from) { + CopyFrom(from); + return *this; + } + inline NetParams& operator=(NetParams&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const NetParams& default_instance(); + + static inline const NetParams* internal_default_instance() { + return reinterpret_cast( + &_NetParams_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(NetParams& a, NetParams& b) { + a.Swap(&b); + } + inline void Swap(NetParams* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NetParams* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline NetParams* New() const final { + return CreateMaybeMessage(nullptr); + } + + NetParams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const NetParams& from); + void MergeFrom(const NetParams& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NetParams* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.NetParams"; + } + protected: + explicit NetParams(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kParamsFieldNumber = 1, + }; + // repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + int params_size() const; + private: + int _internal_params_size() const; + public: + void clear_params(); + ::vega::NetworkParameter* mutable_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* + mutable_params(); + private: + const ::vega::NetworkParameter& _internal_params(int index) const; + ::vega::NetworkParameter* _internal_add_params(); + public: + const ::vega::NetworkParameter& params(int index) const; + ::vega::NetworkParameter* add_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& + params() const; + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.NetParams) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter > params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class Proposals PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Proposals) */ { + public: + inline Proposals() : Proposals(nullptr) {} + virtual ~Proposals(); + + Proposals(const Proposals& from); + Proposals(Proposals&& from) noexcept + : Proposals() { + *this = ::std::move(from); + } + + inline Proposals& operator=(const Proposals& from) { + CopyFrom(from); + return *this; + } + inline Proposals& operator=(Proposals&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Proposals& default_instance(); + + static inline const Proposals* internal_default_instance() { + return reinterpret_cast( + &_Proposals_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Proposals& a, Proposals& b) { + a.Swap(&b); + } + inline void Swap(Proposals* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Proposals* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Proposals* New() const final { + return CreateMaybeMessage(nullptr); + } + + Proposals* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Proposals& from); + void MergeFrom(const Proposals& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Proposals* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Proposals"; + } + protected: + explicit Proposals(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProposalsFieldNumber = 1, + }; + // repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + int proposals_size() const; + private: + int _internal_proposals_size() const; + public: + void clear_proposals(); + ::vega::Proposal* mutable_proposals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >* + mutable_proposals(); + private: + const ::vega::Proposal& _internal_proposals(int index) const; + ::vega::Proposal* _internal_add_proposals(); + public: + const ::vega::Proposal& proposals(int index) const; + ::vega::Proposal* add_proposals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >& + proposals() const; + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Proposals) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal > proposals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class DelegateEntry PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.DelegateEntry) */ { + public: + inline DelegateEntry() : DelegateEntry(nullptr) {} + virtual ~DelegateEntry(); + + DelegateEntry(const DelegateEntry& from); + DelegateEntry(DelegateEntry&& from) noexcept + : DelegateEntry() { + *this = ::std::move(from); + } + + inline DelegateEntry& operator=(const DelegateEntry& from) { + CopyFrom(from); + return *this; + } + inline DelegateEntry& operator=(DelegateEntry&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DelegateEntry& default_instance(); + + static inline const DelegateEntry* internal_default_instance() { + return reinterpret_cast( + &_DelegateEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(DelegateEntry& a, DelegateEntry& b) { + a.Swap(&b); + } + inline void Swap(DelegateEntry* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DelegateEntry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DelegateEntry* New() const final { + return CreateMaybeMessage(nullptr); + } + + DelegateEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DelegateEntry& from); + void MergeFrom(const DelegateEntry& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DelegateEntry* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.DelegateEntry"; + } + protected: + explicit DelegateEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartyFieldNumber = 1, + kNodeFieldNumber = 2, + kAmountFieldNumber = 3, + kEpochSeqFieldNumber = 5, + kUndelegateFieldNumber = 4, + }; + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // string node = 2 [json_name = "node"]; + void clear_node(); + const std::string& node() const; + void set_node(const std::string& value); + void set_node(std::string&& value); + void set_node(const char* value); + void set_node(const char* value, size_t size); + std::string* mutable_node(); + std::string* release_node(); + void set_allocated_node(std::string* node); + private: + const std::string& _internal_node() const; + void _internal_set_node(const std::string& value); + std::string* _internal_mutable_node(); + public: + + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + + // uint64 epoch_seq = 5 [json_name = "epochSeq"]; + void clear_epoch_seq(); + ::PROTOBUF_NAMESPACE_ID::uint64 epoch_seq() const; + void set_epoch_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_epoch_seq() const; + void _internal_set_epoch_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // bool undelegate = 4 [json_name = "undelegate"]; + void clear_undelegate(); + bool undelegate() const; + void set_undelegate(bool value); + private: + bool _internal_undelegate() const; + void _internal_set_undelegate(bool value); + public: + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.DelegateEntry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::uint64 epoch_seq_; + bool undelegate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// ------------------------------------------------------------------- + +class Delegate PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.snapshot.v1.Delegate) */ { + public: + inline Delegate() : Delegate(nullptr) {} + virtual ~Delegate(); + + Delegate(const Delegate& from); + Delegate(Delegate&& from) noexcept + : Delegate() { + *this = ::std::move(from); + } + + inline Delegate& operator=(const Delegate& from) { + CopyFrom(from); + return *this; + } + inline Delegate& operator=(Delegate&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Delegate& default_instance(); + + static inline const Delegate* internal_default_instance() { + return reinterpret_cast( + &_Delegate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Delegate& a, Delegate& b) { + a.Swap(&b); + } + inline void Swap(Delegate* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Delegate* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Delegate* New() const final { + return CreateMaybeMessage(nullptr); + } + + Delegate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Delegate& from); + void MergeFrom(const Delegate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Delegate* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.snapshot.v1.Delegate"; + } + protected: + explicit Delegate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto); + return ::descriptor_table_snapshot_2fv1_2fsnapshot_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kActiveFieldNumber = 1, + kPendingFieldNumber = 2, + }; + // repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + int active_size() const; + private: + int _internal_active_size() const; + public: + void clear_active(); + ::vega::snapshot::v1::DelegateEntry* mutable_active(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >* + mutable_active(); + private: + const ::vega::snapshot::v1::DelegateEntry& _internal_active(int index) const; + ::vega::snapshot::v1::DelegateEntry* _internal_add_active(); + public: + const ::vega::snapshot::v1::DelegateEntry& active(int index) const; + ::vega::snapshot::v1::DelegateEntry* add_active(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >& + active() const; + + // repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + int pending_size() const; + private: + int _internal_pending_size() const; + public: + void clear_pending(); + ::vega::snapshot::v1::DelegateEntry* mutable_pending(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >* + mutable_pending(); + private: + const ::vega::snapshot::v1::DelegateEntry& _internal_pending(int index) const; + ::vega::snapshot::v1::DelegateEntry* _internal_add_pending(); + public: + const ::vega::snapshot::v1::DelegateEntry& pending(int index) const; + ::vega::snapshot::v1::DelegateEntry* add_pending(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >& + pending() const; + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Delegate) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry > active_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry > pending_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_snapshot_2fv1_2fsnapshot_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Snapshot + +// bytes hash = 1 [json_name = "hash"]; +inline void Snapshot::clear_hash() { + hash_.ClearToEmpty(); +} +inline const std::string& Snapshot::hash() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Snapshot.hash) + return _internal_hash(); +} +inline void Snapshot::set_hash(const std::string& value) { + _internal_set_hash(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Snapshot.hash) +} +inline std::string* Snapshot::mutable_hash() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Snapshot.hash) + return _internal_mutable_hash(); +} +inline const std::string& Snapshot::_internal_hash() const { + return hash_.Get(); +} +inline void Snapshot::_internal_set_hash(const std::string& value) { + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Snapshot::set_hash(std::string&& value) { + + hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Snapshot.hash) +} +inline void Snapshot::set_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Snapshot.hash) +} +inline void Snapshot::set_hash(const void* value, + size_t size) { + + hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Snapshot.hash) +} +inline std::string* Snapshot::_internal_mutable_hash() { + + return hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Snapshot::release_hash() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Snapshot.hash) + return hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Snapshot::set_allocated_hash(std::string* hash) { + if (hash != nullptr) { + + } else { + + } + hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Snapshot.hash) +} + +// bytes state = 2 [json_name = "state"]; +inline void Snapshot::clear_state() { + state_.ClearToEmpty(); +} +inline const std::string& Snapshot::state() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Snapshot.state) + return _internal_state(); +} +inline void Snapshot::set_state(const std::string& value) { + _internal_set_state(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Snapshot.state) +} +inline std::string* Snapshot::mutable_state() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Snapshot.state) + return _internal_mutable_state(); +} +inline const std::string& Snapshot::_internal_state() const { + return state_.Get(); +} +inline void Snapshot::_internal_set_state(const std::string& value) { + + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Snapshot::set_state(std::string&& value) { + + state_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Snapshot.state) +} +inline void Snapshot::set_state(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Snapshot.state) +} +inline void Snapshot::set_state(const void* value, + size_t size) { + + state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Snapshot.state) +} +inline std::string* Snapshot::_internal_mutable_state() { + + return state_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Snapshot::release_state() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Snapshot.state) + return state_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Snapshot::set_allocated_state(std::string* state) { + if (state != nullptr) { + + } else { + + } + state_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), state, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Snapshot.state) +} + +// ------------------------------------------------------------------- + +// Checkpoint + +// bytes governance = 1 [json_name = "governance"]; +inline void Checkpoint::clear_governance() { + governance_.ClearToEmpty(); +} +inline const std::string& Checkpoint::governance() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Checkpoint.governance) + return _internal_governance(); +} +inline void Checkpoint::set_governance(const std::string& value) { + _internal_set_governance(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Checkpoint.governance) +} +inline std::string* Checkpoint::mutable_governance() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Checkpoint.governance) + return _internal_mutable_governance(); +} +inline const std::string& Checkpoint::_internal_governance() const { + return governance_.Get(); +} +inline void Checkpoint::_internal_set_governance(const std::string& value) { + + governance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Checkpoint::set_governance(std::string&& value) { + + governance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Checkpoint.governance) +} +inline void Checkpoint::set_governance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + governance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Checkpoint.governance) +} +inline void Checkpoint::set_governance(const void* value, + size_t size) { + + governance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Checkpoint.governance) +} +inline std::string* Checkpoint::_internal_mutable_governance() { + + return governance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Checkpoint::release_governance() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Checkpoint.governance) + return governance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Checkpoint::set_allocated_governance(std::string* governance) { + if (governance != nullptr) { + + } else { + + } + governance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), governance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Checkpoint.governance) +} + +// bytes assets = 2 [json_name = "assets"]; +inline void Checkpoint::clear_assets() { + assets_.ClearToEmpty(); +} +inline const std::string& Checkpoint::assets() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Checkpoint.assets) + return _internal_assets(); +} +inline void Checkpoint::set_assets(const std::string& value) { + _internal_set_assets(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Checkpoint.assets) +} +inline std::string* Checkpoint::mutable_assets() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Checkpoint.assets) + return _internal_mutable_assets(); +} +inline const std::string& Checkpoint::_internal_assets() const { + return assets_.Get(); +} +inline void Checkpoint::_internal_set_assets(const std::string& value) { + + assets_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Checkpoint::set_assets(std::string&& value) { + + assets_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Checkpoint.assets) +} +inline void Checkpoint::set_assets(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + assets_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Checkpoint.assets) +} +inline void Checkpoint::set_assets(const void* value, + size_t size) { + + assets_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Checkpoint.assets) +} +inline std::string* Checkpoint::_internal_mutable_assets() { + + return assets_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Checkpoint::release_assets() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Checkpoint.assets) + return assets_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Checkpoint::set_allocated_assets(std::string* assets) { + if (assets != nullptr) { + + } else { + + } + assets_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), assets, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Checkpoint.assets) +} + +// bytes collateral = 3 [json_name = "collateral"]; +inline void Checkpoint::clear_collateral() { + collateral_.ClearToEmpty(); +} +inline const std::string& Checkpoint::collateral() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Checkpoint.collateral) + return _internal_collateral(); +} +inline void Checkpoint::set_collateral(const std::string& value) { + _internal_set_collateral(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Checkpoint.collateral) +} +inline std::string* Checkpoint::mutable_collateral() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Checkpoint.collateral) + return _internal_mutable_collateral(); +} +inline const std::string& Checkpoint::_internal_collateral() const { + return collateral_.Get(); +} +inline void Checkpoint::_internal_set_collateral(const std::string& value) { + + collateral_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Checkpoint::set_collateral(std::string&& value) { + + collateral_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Checkpoint.collateral) +} +inline void Checkpoint::set_collateral(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collateral_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Checkpoint.collateral) +} +inline void Checkpoint::set_collateral(const void* value, + size_t size) { + + collateral_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Checkpoint.collateral) +} +inline std::string* Checkpoint::_internal_mutable_collateral() { + + return collateral_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Checkpoint::release_collateral() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Checkpoint.collateral) + return collateral_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Checkpoint::set_allocated_collateral(std::string* collateral) { + if (collateral != nullptr) { + + } else { + + } + collateral_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collateral, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Checkpoint.collateral) +} + +// bytes network_parameters = 4 [json_name = "networkParameters"]; +inline void Checkpoint::clear_network_parameters() { + network_parameters_.ClearToEmpty(); +} +inline const std::string& Checkpoint::network_parameters() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Checkpoint.network_parameters) + return _internal_network_parameters(); +} +inline void Checkpoint::set_network_parameters(const std::string& value) { + _internal_set_network_parameters(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Checkpoint.network_parameters) +} +inline std::string* Checkpoint::mutable_network_parameters() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Checkpoint.network_parameters) + return _internal_mutable_network_parameters(); +} +inline const std::string& Checkpoint::_internal_network_parameters() const { + return network_parameters_.Get(); +} +inline void Checkpoint::_internal_set_network_parameters(const std::string& value) { + + network_parameters_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Checkpoint::set_network_parameters(std::string&& value) { + + network_parameters_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Checkpoint.network_parameters) +} +inline void Checkpoint::set_network_parameters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + network_parameters_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Checkpoint.network_parameters) +} +inline void Checkpoint::set_network_parameters(const void* value, + size_t size) { + + network_parameters_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Checkpoint.network_parameters) +} +inline std::string* Checkpoint::_internal_mutable_network_parameters() { + + return network_parameters_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Checkpoint::release_network_parameters() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Checkpoint.network_parameters) + return network_parameters_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Checkpoint::set_allocated_network_parameters(std::string* network_parameters) { + if (network_parameters != nullptr) { + + } else { + + } + network_parameters_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), network_parameters, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Checkpoint.network_parameters) +} + +// bytes delegation = 5 [json_name = "delegation"]; +inline void Checkpoint::clear_delegation() { + delegation_.ClearToEmpty(); +} +inline const std::string& Checkpoint::delegation() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Checkpoint.delegation) + return _internal_delegation(); +} +inline void Checkpoint::set_delegation(const std::string& value) { + _internal_set_delegation(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.Checkpoint.delegation) +} +inline std::string* Checkpoint::mutable_delegation() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Checkpoint.delegation) + return _internal_mutable_delegation(); +} +inline const std::string& Checkpoint::_internal_delegation() const { + return delegation_.Get(); +} +inline void Checkpoint::_internal_set_delegation(const std::string& value) { + + delegation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Checkpoint::set_delegation(std::string&& value) { + + delegation_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.Checkpoint.delegation) +} +inline void Checkpoint::set_delegation(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + delegation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.Checkpoint.delegation) +} +inline void Checkpoint::set_delegation(const void* value, + size_t size) { + + delegation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.Checkpoint.delegation) +} +inline std::string* Checkpoint::_internal_mutable_delegation() { + + return delegation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Checkpoint::release_delegation() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.Checkpoint.delegation) + return delegation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Checkpoint::set_allocated_delegation(std::string* delegation) { + if (delegation != nullptr) { + + } else { + + } + delegation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delegation, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.Checkpoint.delegation) +} + +// ------------------------------------------------------------------- + +// AssetEntry + +// string id = 1 [json_name = "id"]; +inline void AssetEntry::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& AssetEntry::id() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.AssetEntry.id) + return _internal_id(); +} +inline void AssetEntry::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.AssetEntry.id) +} +inline std::string* AssetEntry::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.AssetEntry.id) + return _internal_mutable_id(); +} +inline const std::string& AssetEntry::_internal_id() const { + return id_.Get(); +} +inline void AssetEntry::_internal_set_id(const std::string& value) { + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AssetEntry::set_id(std::string&& value) { + + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.AssetEntry.id) +} +inline void AssetEntry::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.AssetEntry.id) +} +inline void AssetEntry::set_id(const char* value, + size_t size) { + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.AssetEntry.id) +} +inline std::string* AssetEntry::_internal_mutable_id() { + + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AssetEntry::release_id() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.AssetEntry.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AssetEntry::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.AssetEntry.id) +} + +// .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; +inline bool AssetEntry::_internal_has_asset_details() const { + return this != internal_default_instance() && asset_details_ != nullptr; +} +inline bool AssetEntry::has_asset_details() const { + return _internal_has_asset_details(); +} +inline const ::vega::AssetDetails& AssetEntry::_internal_asset_details() const { + const ::vega::AssetDetails* p = asset_details_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_AssetDetails_default_instance_); +} +inline const ::vega::AssetDetails& AssetEntry::asset_details() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.AssetEntry.asset_details) + return _internal_asset_details(); +} +inline void AssetEntry::unsafe_arena_set_allocated_asset_details( + ::vega::AssetDetails* asset_details) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset_details_); + } + asset_details_ = asset_details; + if (asset_details) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.snapshot.v1.AssetEntry.asset_details) +} +inline ::vega::AssetDetails* AssetEntry::release_asset_details() { + + ::vega::AssetDetails* temp = asset_details_; + asset_details_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::vega::AssetDetails* AssetEntry::unsafe_arena_release_asset_details() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.AssetEntry.asset_details) + + ::vega::AssetDetails* temp = asset_details_; + asset_details_ = nullptr; + return temp; +} +inline ::vega::AssetDetails* AssetEntry::_internal_mutable_asset_details() { + + if (asset_details_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::AssetDetails>(GetArena()); + asset_details_ = p; + } + return asset_details_; +} +inline ::vega::AssetDetails* AssetEntry::mutable_asset_details() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.AssetEntry.asset_details) + return _internal_mutable_asset_details(); +} +inline void AssetEntry::set_allocated_asset_details(::vega::AssetDetails* asset_details) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset_details_); + } + if (asset_details) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(asset_details)->GetArena(); + if (message_arena != submessage_arena) { + asset_details = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, asset_details, submessage_arena); + } + + } else { + + } + asset_details_ = asset_details; + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.AssetEntry.asset_details) +} + +// ------------------------------------------------------------------- + +// Assets + +// repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; +inline int Assets::_internal_assets_size() const { + return assets_.size(); +} +inline int Assets::assets_size() const { + return _internal_assets_size(); +} +inline void Assets::clear_assets() { + assets_.Clear(); +} +inline ::vega::snapshot::v1::AssetEntry* Assets::mutable_assets(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Assets.assets) + return assets_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetEntry >* +Assets::mutable_assets() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.Assets.assets) + return &assets_; +} +inline const ::vega::snapshot::v1::AssetEntry& Assets::_internal_assets(int index) const { + return assets_.Get(index); +} +inline const ::vega::snapshot::v1::AssetEntry& Assets::assets(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Assets.assets) + return _internal_assets(index); +} +inline ::vega::snapshot::v1::AssetEntry* Assets::_internal_add_assets() { + return assets_.Add(); +} +inline ::vega::snapshot::v1::AssetEntry* Assets::add_assets() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.Assets.assets) + return _internal_add_assets(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetEntry >& +Assets::assets() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.Assets.assets) + return assets_; +} + +// ------------------------------------------------------------------- + +// AssetBalance + +// string party = 1 [json_name = "party"]; +inline void AssetBalance::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& AssetBalance::party() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.AssetBalance.party) + return _internal_party(); +} +inline void AssetBalance::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.AssetBalance.party) +} +inline std::string* AssetBalance::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.AssetBalance.party) + return _internal_mutable_party(); +} +inline const std::string& AssetBalance::_internal_party() const { + return party_.Get(); +} +inline void AssetBalance::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AssetBalance::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.AssetBalance.party) +} +inline void AssetBalance::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.AssetBalance.party) +} +inline void AssetBalance::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.AssetBalance.party) +} +inline std::string* AssetBalance::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AssetBalance::release_party() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.AssetBalance.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AssetBalance::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.AssetBalance.party) +} + +// string asset = 2 [json_name = "asset"]; +inline void AssetBalance::clear_asset() { + asset_.ClearToEmpty(); +} +inline const std::string& AssetBalance::asset() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.AssetBalance.asset) + return _internal_asset(); +} +inline void AssetBalance::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.AssetBalance.asset) +} +inline std::string* AssetBalance::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.AssetBalance.asset) + return _internal_mutable_asset(); +} +inline const std::string& AssetBalance::_internal_asset() const { + return asset_.Get(); +} +inline void AssetBalance::_internal_set_asset(const std::string& value) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AssetBalance::set_asset(std::string&& value) { + + asset_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.AssetBalance.asset) +} +inline void AssetBalance::set_asset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.AssetBalance.asset) +} +inline void AssetBalance::set_asset(const char* value, + size_t size) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.AssetBalance.asset) +} +inline std::string* AssetBalance::_internal_mutable_asset() { + + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AssetBalance::release_asset() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.AssetBalance.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AssetBalance::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { + + } else { + + } + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.AssetBalance.asset) +} + +// string balance = 3 [json_name = "balance"]; +inline void AssetBalance::clear_balance() { + balance_.ClearToEmpty(); +} +inline const std::string& AssetBalance::balance() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.AssetBalance.balance) + return _internal_balance(); +} +inline void AssetBalance::set_balance(const std::string& value) { + _internal_set_balance(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.AssetBalance.balance) +} +inline std::string* AssetBalance::mutable_balance() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.AssetBalance.balance) + return _internal_mutable_balance(); +} +inline const std::string& AssetBalance::_internal_balance() const { + return balance_.Get(); +} +inline void AssetBalance::_internal_set_balance(const std::string& value) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AssetBalance::set_balance(std::string&& value) { + + balance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.AssetBalance.balance) +} +inline void AssetBalance::set_balance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.AssetBalance.balance) +} +inline void AssetBalance::set_balance(const char* value, + size_t size) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.AssetBalance.balance) +} +inline std::string* AssetBalance::_internal_mutable_balance() { + + return balance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AssetBalance::release_balance() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.AssetBalance.balance) + return balance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AssetBalance::set_allocated_balance(std::string* balance) { + if (balance != nullptr) { + + } else { + + } + balance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), balance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.AssetBalance.balance) +} + +// ------------------------------------------------------------------- + +// Collateral + +// repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; +inline int Collateral::_internal_balances_size() const { + return balances_.size(); +} +inline int Collateral::balances_size() const { + return _internal_balances_size(); +} +inline void Collateral::clear_balances() { + balances_.Clear(); +} +inline ::vega::snapshot::v1::AssetBalance* Collateral::mutable_balances(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Collateral.balances) + return balances_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetBalance >* +Collateral::mutable_balances() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.Collateral.balances) + return &balances_; +} +inline const ::vega::snapshot::v1::AssetBalance& Collateral::_internal_balances(int index) const { + return balances_.Get(index); +} +inline const ::vega::snapshot::v1::AssetBalance& Collateral::balances(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Collateral.balances) + return _internal_balances(index); +} +inline ::vega::snapshot::v1::AssetBalance* Collateral::_internal_add_balances() { + return balances_.Add(); +} +inline ::vega::snapshot::v1::AssetBalance* Collateral::add_balances() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.Collateral.balances) + return _internal_add_balances(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::AssetBalance >& +Collateral::balances() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.Collateral.balances) + return balances_; +} + +// ------------------------------------------------------------------- + +// NetParams + +// repeated .vega.NetworkParameter params = 1 [json_name = "params"]; +inline int NetParams::_internal_params_size() const { + return params_.size(); +} +inline int NetParams::params_size() const { + return _internal_params_size(); +} +inline ::vega::NetworkParameter* NetParams::mutable_params(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.NetParams.params) + return params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >* +NetParams::mutable_params() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.NetParams.params) + return ¶ms_; +} +inline const ::vega::NetworkParameter& NetParams::_internal_params(int index) const { + return params_.Get(index); +} +inline const ::vega::NetworkParameter& NetParams::params(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.NetParams.params) + return _internal_params(index); +} +inline ::vega::NetworkParameter* NetParams::_internal_add_params() { + return params_.Add(); +} +inline ::vega::NetworkParameter* NetParams::add_params() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.NetParams.params) + return _internal_add_params(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::NetworkParameter >& +NetParams::params() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.NetParams.params) + return params_; +} + +// ------------------------------------------------------------------- + +// Proposals + +// repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; +inline int Proposals::_internal_proposals_size() const { + return proposals_.size(); +} +inline int Proposals::proposals_size() const { + return _internal_proposals_size(); +} +inline ::vega::Proposal* Proposals::mutable_proposals(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Proposals.proposals) + return proposals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >* +Proposals::mutable_proposals() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.Proposals.proposals) + return &proposals_; +} +inline const ::vega::Proposal& Proposals::_internal_proposals(int index) const { + return proposals_.Get(index); +} +inline const ::vega::Proposal& Proposals::proposals(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Proposals.proposals) + return _internal_proposals(index); +} +inline ::vega::Proposal* Proposals::_internal_add_proposals() { + return proposals_.Add(); +} +inline ::vega::Proposal* Proposals::add_proposals() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.Proposals.proposals) + return _internal_add_proposals(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Proposal >& +Proposals::proposals() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.Proposals.proposals) + return proposals_; +} + +// ------------------------------------------------------------------- + +// DelegateEntry + +// string party = 1 [json_name = "party"]; +inline void DelegateEntry::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& DelegateEntry::party() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.DelegateEntry.party) + return _internal_party(); +} +inline void DelegateEntry::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.DelegateEntry.party) +} +inline std::string* DelegateEntry::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.DelegateEntry.party) + return _internal_mutable_party(); +} +inline const std::string& DelegateEntry::_internal_party() const { + return party_.Get(); +} +inline void DelegateEntry::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DelegateEntry::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.DelegateEntry.party) +} +inline void DelegateEntry::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.DelegateEntry.party) +} +inline void DelegateEntry::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.DelegateEntry.party) +} +inline std::string* DelegateEntry::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DelegateEntry::release_party() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.DelegateEntry.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DelegateEntry::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.DelegateEntry.party) +} + +// string node = 2 [json_name = "node"]; +inline void DelegateEntry::clear_node() { + node_.ClearToEmpty(); +} +inline const std::string& DelegateEntry::node() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.DelegateEntry.node) + return _internal_node(); +} +inline void DelegateEntry::set_node(const std::string& value) { + _internal_set_node(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.DelegateEntry.node) +} +inline std::string* DelegateEntry::mutable_node() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.DelegateEntry.node) + return _internal_mutable_node(); +} +inline const std::string& DelegateEntry::_internal_node() const { + return node_.Get(); +} +inline void DelegateEntry::_internal_set_node(const std::string& value) { + + node_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DelegateEntry::set_node(std::string&& value) { + + node_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.DelegateEntry.node) +} +inline void DelegateEntry::set_node(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.DelegateEntry.node) +} +inline void DelegateEntry::set_node(const char* value, + size_t size) { + + node_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.DelegateEntry.node) +} +inline std::string* DelegateEntry::_internal_mutable_node() { + + return node_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DelegateEntry::release_node() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.DelegateEntry.node) + return node_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DelegateEntry::set_allocated_node(std::string* node) { + if (node != nullptr) { + + } else { + + } + node_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.DelegateEntry.node) +} + +// string amount = 3 [json_name = "amount"]; +inline void DelegateEntry::clear_amount() { + amount_.ClearToEmpty(); +} +inline const std::string& DelegateEntry::amount() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.DelegateEntry.amount) + return _internal_amount(); +} +inline void DelegateEntry::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.DelegateEntry.amount) +} +inline std::string* DelegateEntry::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.DelegateEntry.amount) + return _internal_mutable_amount(); +} +inline const std::string& DelegateEntry::_internal_amount() const { + return amount_.Get(); +} +inline void DelegateEntry::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DelegateEntry::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.snapshot.v1.DelegateEntry.amount) +} +inline void DelegateEntry::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.snapshot.v1.DelegateEntry.amount) +} +inline void DelegateEntry::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.snapshot.v1.DelegateEntry.amount) +} +inline std::string* DelegateEntry::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DelegateEntry::release_amount() { + // @@protoc_insertion_point(field_release:vega.snapshot.v1.DelegateEntry.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DelegateEntry::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.snapshot.v1.DelegateEntry.amount) +} + +// bool undelegate = 4 [json_name = "undelegate"]; +inline void DelegateEntry::clear_undelegate() { + undelegate_ = false; +} +inline bool DelegateEntry::_internal_undelegate() const { + return undelegate_; +} +inline bool DelegateEntry::undelegate() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.DelegateEntry.undelegate) + return _internal_undelegate(); +} +inline void DelegateEntry::_internal_set_undelegate(bool value) { + + undelegate_ = value; +} +inline void DelegateEntry::set_undelegate(bool value) { + _internal_set_undelegate(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.DelegateEntry.undelegate) +} + +// uint64 epoch_seq = 5 [json_name = "epochSeq"]; +inline void DelegateEntry::clear_epoch_seq() { + epoch_seq_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DelegateEntry::_internal_epoch_seq() const { + return epoch_seq_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DelegateEntry::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.DelegateEntry.epoch_seq) + return _internal_epoch_seq(); +} +inline void DelegateEntry::_internal_set_epoch_seq(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + epoch_seq_ = value; +} +inline void DelegateEntry::set_epoch_seq(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.snapshot.v1.DelegateEntry.epoch_seq) +} + +// ------------------------------------------------------------------- + +// Delegate + +// repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; +inline int Delegate::_internal_active_size() const { + return active_.size(); +} +inline int Delegate::active_size() const { + return _internal_active_size(); +} +inline void Delegate::clear_active() { + active_.Clear(); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::mutable_active(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Delegate.active) + return active_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >* +Delegate::mutable_active() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.Delegate.active) + return &active_; +} +inline const ::vega::snapshot::v1::DelegateEntry& Delegate::_internal_active(int index) const { + return active_.Get(index); +} +inline const ::vega::snapshot::v1::DelegateEntry& Delegate::active(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Delegate.active) + return _internal_active(index); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::_internal_add_active() { + return active_.Add(); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::add_active() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.Delegate.active) + return _internal_add_active(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >& +Delegate::active() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.Delegate.active) + return active_; +} + +// repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; +inline int Delegate::_internal_pending_size() const { + return pending_.size(); +} +inline int Delegate::pending_size() const { + return _internal_pending_size(); +} +inline void Delegate::clear_pending() { + pending_.Clear(); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::mutable_pending(int index) { + // @@protoc_insertion_point(field_mutable:vega.snapshot.v1.Delegate.pending) + return pending_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >* +Delegate::mutable_pending() { + // @@protoc_insertion_point(field_mutable_list:vega.snapshot.v1.Delegate.pending) + return &pending_; +} +inline const ::vega::snapshot::v1::DelegateEntry& Delegate::_internal_pending(int index) const { + return pending_.Get(index); +} +inline const ::vega::snapshot::v1::DelegateEntry& Delegate::pending(int index) const { + // @@protoc_insertion_point(field_get:vega.snapshot.v1.Delegate.pending) + return _internal_pending(index); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::_internal_add_pending() { + return pending_.Add(); +} +inline ::vega::snapshot::v1::DelegateEntry* Delegate::add_pending() { + // @@protoc_insertion_point(field_add:vega.snapshot.v1.Delegate.pending) + return _internal_add_pending(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::snapshot::v1::DelegateEntry >& +Delegate::pending() const { + // @@protoc_insertion_point(field_list:vega.snapshot.v1.Delegate.pending) + return pending_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace snapshot +} // namespace vega + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_snapshot_2fv1_2fsnapshot_2eproto diff --git a/grpc/clients/cpp/generated/vega.pb.cc b/grpc/clients/cpp/generated/vega.pb.cc index 10119185..c6d93399 100644 --- a/grpc/clients/cpp/generated/vega.pb.cc +++ b/grpc/clients/cpp/generated/vega.pb.cc @@ -15,6 +15,10 @@ // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Account_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Delegation_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Epoch_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EpochData_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EpochTimestamps_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Erc20WithdrawExt_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fee_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FinancialAmount_vega_2eproto; @@ -22,15 +26,16 @@ extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal:: extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LiquidityOrder_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityOrderReference_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LiquidityProviderFeeShare_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Node_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Order_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeggedOrder_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PriceLevel_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PriceMonitoringBounds_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_markets_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PriceMonitoringTrigger_markets_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RewardDetails_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RiskFactor_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RiskResult_PredictedNextRiskFactorsEntry_DoNotUse_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RiskResult_RiskFactorsEntry_DoNotUse_vega_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Signature_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trade_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransferBalance_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawExt_vega_2eproto; @@ -119,10 +124,6 @@ class PositionTradeDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PositionTrade_default_instance_; -class StatisticsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Statistics_default_instance_; class DepositDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -187,18 +188,6 @@ class ErrorDetailDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ErrorDetail_default_instance_; -class TransactionDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Transaction_default_instance_; -class SignatureDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Signature_default_instance_; -class SignedBundleDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SignedBundle_default_instance_; class NetworkParameterDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -219,6 +208,42 @@ class EthereumConfigDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _EthereumConfig_default_instance_; +class EpochTimestampsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EpochTimestamps_default_instance_; +class EpochDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Epoch_default_instance_; +class EpochParticipationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EpochParticipation_default_instance_; +class EpochDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EpochData_default_instance_; +class NodeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Node_default_instance_; +class NodeDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _NodeData_default_instance_; +class DelegationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Delegation_default_instance_; +class RewardDetailsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RewardDetails_default_instance_; +class RewardPerAssetDetailDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RewardPerAssetDetail_default_instance_; } // namespace vega static void InitDefaultsscc_info_Account_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -259,6 +284,19 @@ static void InitDefaultsscc_info_Candle_vega_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Candle_vega_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Candle_vega_2eproto}, {}}; +static void InitDefaultsscc_info_Delegation_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_Delegation_default_instance_; + new (ptr) ::vega::Delegation(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Delegation_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Delegation_vega_2eproto}, {}}; + static void InitDefaultsscc_info_Deposit_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -272,6 +310,62 @@ static void InitDefaultsscc_info_Deposit_vega_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Deposit_vega_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Deposit_vega_2eproto}, {}}; +static void InitDefaultsscc_info_Epoch_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_Epoch_default_instance_; + new (ptr) ::vega::Epoch(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Epoch_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Epoch_vega_2eproto}, { + &scc_info_EpochTimestamps_vega_2eproto.base, + &scc_info_Node_vega_2eproto.base, + &scc_info_Delegation_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_EpochData_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_EpochData_default_instance_; + new (ptr) ::vega::EpochData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EpochData_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EpochData_vega_2eproto}, {}}; + +static void InitDefaultsscc_info_EpochParticipation_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_EpochParticipation_default_instance_; + new (ptr) ::vega::EpochParticipation(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EpochParticipation_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EpochParticipation_vega_2eproto}, { + &scc_info_Epoch_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_EpochTimestamps_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_EpochTimestamps_default_instance_; + new (ptr) ::vega::EpochTimestamps(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EpochTimestamps_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EpochTimestamps_vega_2eproto}, {}}; + static void InitDefaultsscc_info_Erc20WithdrawExt_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -473,6 +567,34 @@ static void InitDefaultsscc_info_NetworkParameter_vega_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetworkParameter_vega_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_NetworkParameter_vega_2eproto}, {}}; +static void InitDefaultsscc_info_Node_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_Node_default_instance_; + new (ptr) ::vega::Node(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Node_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Node_vega_2eproto}, { + &scc_info_EpochData_vega_2eproto.base, + &scc_info_Delegation_vega_2eproto.base,}}; + +static void InitDefaultsscc_info_NodeData_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_NodeData_default_instance_; + new (ptr) ::vega::NodeData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeData_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_NodeData_vega_2eproto}, {}}; + static void InitDefaultsscc_info_Order_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -526,8 +648,9 @@ static void InitDefaultsscc_info_Party_vega_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Party_vega_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Party_vega_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Party_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Party_vega_2eproto}, { + &scc_info_Delegation_vega_2eproto.base,}}; static void InitDefaultsscc_info_PeggedOrder_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -608,6 +731,33 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PriceMonitoringBounds_veg {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PriceMonitoringBounds_vega_2eproto}, { &scc_info_PriceMonitoringTrigger_markets_2eproto.base,}}; +static void InitDefaultsscc_info_RewardDetails_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_RewardDetails_default_instance_; + new (ptr) ::vega::RewardDetails(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RewardDetails_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RewardDetails_vega_2eproto}, {}}; + +static void InitDefaultsscc_info_RewardPerAssetDetail_vega_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::_RewardPerAssetDetail_default_instance_; + new (ptr) ::vega::RewardPerAssetDetail(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RewardPerAssetDetail_vega_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_RewardPerAssetDetail_vega_2eproto}, { + &scc_info_RewardDetails_vega_2eproto.base,}}; + static void InitDefaultsscc_info_RiskFactor_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -662,46 +812,6 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RiskResult_RiskFactorsEnt {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_RiskResult_RiskFactorsEntry_DoNotUse_vega_2eproto}, { &scc_info_RiskFactor_vega_2eproto.base,}}; -static void InitDefaultsscc_info_Signature_vega_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::vega::_Signature_default_instance_; - new (ptr) ::vega::Signature(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Signature_vega_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Signature_vega_2eproto}, {}}; - -static void InitDefaultsscc_info_SignedBundle_vega_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::vega::_SignedBundle_default_instance_; - new (ptr) ::vega::SignedBundle(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignedBundle_vega_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SignedBundle_vega_2eproto}, { - &scc_info_Signature_vega_2eproto.base,}}; - -static void InitDefaultsscc_info_Statistics_vega_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::vega::_Statistics_default_instance_; - new (ptr) ::vega::Statistics(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Statistics_vega_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Statistics_vega_2eproto}, {}}; - static void InitDefaultsscc_info_Timestamp_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -743,19 +853,6 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TradeSet_vega_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TradeSet_vega_2eproto}, { &scc_info_Trade_vega_2eproto.base,}}; -static void InitDefaultsscc_info_Transaction_vega_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::vega::_Transaction_default_instance_; - new (ptr) ::vega::Transaction(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Transaction_vega_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Transaction_vega_2eproto}, {}}; - static void InitDefaultsscc_info_Transfer_vega_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -841,8 +938,8 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_vega_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Withdrawal_vega_2eproto}, { &scc_info_WithdrawExt_vega_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_vega_2eproto[46]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_vega_2eproto[15]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_vega_2eproto[51]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_vega_2eproto[16]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_vega_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -864,6 +961,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::vega::Party, id_), + PROTOBUF_FIELD_OFFSET(::vega::Party, delegations_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::RiskFactor, _internal_metadata_), ~0u, // no _extensions_ @@ -1047,43 +1145,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB PROTOBUF_FIELD_OFFSET(::vega::PositionTrade, volume_), PROTOBUF_FIELD_OFFSET(::vega::PositionTrade, price_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::vega::Statistics, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::Statistics, block_height_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, backlog_length_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_peers_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, genesis_time_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, current_time_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, vega_time_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, status_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, tx_per_block_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, average_tx_bytes_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, average_orders_per_block_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, trades_per_second_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, orders_per_second_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_markets_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_amend_order_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_cancel_order_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_create_order_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_orders_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, total_trades_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, order_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, trade_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, candle_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, market_depth_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, positions_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, account_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, market_data_subscriptions_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, app_version_hash_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, app_version_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, chain_version_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, block_duration_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, uptime_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, chain_id_), - PROTOBUF_FIELD_OFFSET(::vega::Statistics, market_depth_updates_subscriptions_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::Deposit, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1258,32 +1319,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB PROTOBUF_FIELD_OFFSET(::vega::ErrorDetail, message_), PROTOBUF_FIELD_OFFSET(::vega::ErrorDetail, inner_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::vega::Transaction, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::vega::Transaction, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::Transaction, input_data_), - PROTOBUF_FIELD_OFFSET(::vega::Transaction, nonce_), - PROTOBUF_FIELD_OFFSET(::vega::Transaction, block_height_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::vega::Transaction, from_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::vega::Signature, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::Signature, sig_), - PROTOBUF_FIELD_OFFSET(::vega::Signature, algo_), - PROTOBUF_FIELD_OFFSET(::vega::Signature, version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::vega::SignedBundle, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::vega::SignedBundle, tx_), - PROTOBUF_FIELD_OFFSET(::vega::SignedBundle, sig_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::NetworkParameter, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1331,54 +1366,150 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB PROTOBUF_FIELD_OFFSET(::vega::EthereumConfig, chain_id_), PROTOBUF_FIELD_OFFSET(::vega::EthereumConfig, bridge_address_), PROTOBUF_FIELD_OFFSET(::vega::EthereumConfig, confirmations_), + PROTOBUF_FIELD_OFFSET(::vega::EthereumConfig, staking_bridge_addresses_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::EpochTimestamps, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::EpochTimestamps, start_time_), + PROTOBUF_FIELD_OFFSET(::vega::EpochTimestamps, end_time_), + PROTOBUF_FIELD_OFFSET(::vega::EpochTimestamps, first_block_), + PROTOBUF_FIELD_OFFSET(::vega::EpochTimestamps, last_block_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::Epoch, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::Epoch, seq_), + PROTOBUF_FIELD_OFFSET(::vega::Epoch, timestamps_), + PROTOBUF_FIELD_OFFSET(::vega::Epoch, validators_), + PROTOBUF_FIELD_OFFSET(::vega::Epoch, delegations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::EpochParticipation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::EpochParticipation, epoch_), + PROTOBUF_FIELD_OFFSET(::vega::EpochParticipation, offline_), + PROTOBUF_FIELD_OFFSET(::vega::EpochParticipation, online_), + PROTOBUF_FIELD_OFFSET(::vega::EpochParticipation, total_rewards_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::EpochData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::EpochData, total_), + PROTOBUF_FIELD_OFFSET(::vega::EpochData, offline_), + PROTOBUF_FIELD_OFFSET(::vega::EpochData, online_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::Node, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::Node, id_), + PROTOBUF_FIELD_OFFSET(::vega::Node, pub_key_), + PROTOBUF_FIELD_OFFSET(::vega::Node, info_url_), + PROTOBUF_FIELD_OFFSET(::vega::Node, location_), + PROTOBUF_FIELD_OFFSET(::vega::Node, staked_by_operator_), + PROTOBUF_FIELD_OFFSET(::vega::Node, staked_by_delegates_), + PROTOBUF_FIELD_OFFSET(::vega::Node, staked_total_), + PROTOBUF_FIELD_OFFSET(::vega::Node, max_intended_stake_), + PROTOBUF_FIELD_OFFSET(::vega::Node, pending_stake_), + PROTOBUF_FIELD_OFFSET(::vega::Node, epoch_data_), + PROTOBUF_FIELD_OFFSET(::vega::Node, status_), + PROTOBUF_FIELD_OFFSET(::vega::Node, delagations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::NodeData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::NodeData, staked_total_), + PROTOBUF_FIELD_OFFSET(::vega::NodeData, total_nodes_), + PROTOBUF_FIELD_OFFSET(::vega::NodeData, inactive_nodes_), + PROTOBUF_FIELD_OFFSET(::vega::NodeData, validating_nodes_), + PROTOBUF_FIELD_OFFSET(::vega::NodeData, uptime_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::Delegation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::Delegation, party_), + PROTOBUF_FIELD_OFFSET(::vega::Delegation, node_id_), + PROTOBUF_FIELD_OFFSET(::vega::Delegation, amount_), + PROTOBUF_FIELD_OFFSET(::vega::Delegation, epoch_seq_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, asset_id_), + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, party_id_), + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, epoch_), + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, amount_), + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, percentage_of_total_), + PROTOBUF_FIELD_OFFSET(::vega::RewardDetails, received_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::RewardPerAssetDetail, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::RewardPerAssetDetail, asset_), + PROTOBUF_FIELD_OFFSET(::vega::RewardPerAssetDetail, details_), + PROTOBUF_FIELD_OFFSET(::vega::RewardPerAssetDetail, total_for_asset_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::Price)}, { 6, -1, sizeof(::vega::Timestamp)}, { 12, -1, sizeof(::vega::Party)}, - { 18, -1, sizeof(::vega::RiskFactor)}, - { 26, 33, sizeof(::vega::RiskResult_RiskFactorsEntry_DoNotUse)}, - { 35, 42, sizeof(::vega::RiskResult_PredictedNextRiskFactorsEntry_DoNotUse)}, - { 44, -1, sizeof(::vega::RiskResult)}, - { 53, -1, sizeof(::vega::PeggedOrder)}, - { 60, -1, sizeof(::vega::Order)}, - { 84, -1, sizeof(::vega::OrderCancellationConfirmation)}, - { 90, -1, sizeof(::vega::OrderConfirmation)}, - { 98, -1, sizeof(::vega::AuctionIndicativeState)}, - { 108, -1, sizeof(::vega::Trade)}, - { 128, -1, sizeof(::vega::Fee)}, - { 136, -1, sizeof(::vega::TradeSet)}, - { 142, -1, sizeof(::vega::Candle)}, - { 155, -1, sizeof(::vega::PriceLevel)}, - { 163, -1, sizeof(::vega::MarketDepth)}, - { 172, -1, sizeof(::vega::MarketDepthUpdate)}, - { 181, -1, sizeof(::vega::Position)}, - { 193, -1, sizeof(::vega::PositionTrade)}, - { 200, -1, sizeof(::vega::Statistics)}, - { 237, -1, sizeof(::vega::Deposit)}, - { 250, -1, sizeof(::vega::Withdrawal)}, - { 266, -1, sizeof(::vega::WithdrawExt)}, - { 273, -1, sizeof(::vega::Erc20WithdrawExt)}, - { 279, -1, sizeof(::vega::Account)}, - { 290, -1, sizeof(::vega::FinancialAmount)}, - { 297, -1, sizeof(::vega::Transfer)}, - { 306, -1, sizeof(::vega::TransferRequest)}, - { 317, -1, sizeof(::vega::LedgerEntry)}, - { 328, -1, sizeof(::vega::TransferBalance)}, - { 335, -1, sizeof(::vega::TransferResponse)}, - { 342, -1, sizeof(::vega::MarginLevels)}, - { 355, -1, sizeof(::vega::MarketData)}, - { 386, -1, sizeof(::vega::LiquidityProviderFeeShare)}, - { 394, -1, sizeof(::vega::PriceMonitoringBounds)}, - { 403, -1, sizeof(::vega::ErrorDetail)}, - { 411, -1, sizeof(::vega::Transaction)}, - { 422, -1, sizeof(::vega::Signature)}, - { 430, -1, sizeof(::vega::SignedBundle)}, - { 437, -1, sizeof(::vega::NetworkParameter)}, - { 444, -1, sizeof(::vega::LiquidityOrder)}, - { 452, -1, sizeof(::vega::LiquidityOrderReference)}, - { 459, -1, sizeof(::vega::LiquidityProvision)}, - { 476, -1, sizeof(::vega::EthereumConfig)}, + { 19, -1, sizeof(::vega::RiskFactor)}, + { 27, 34, sizeof(::vega::RiskResult_RiskFactorsEntry_DoNotUse)}, + { 36, 43, sizeof(::vega::RiskResult_PredictedNextRiskFactorsEntry_DoNotUse)}, + { 45, -1, sizeof(::vega::RiskResult)}, + { 54, -1, sizeof(::vega::PeggedOrder)}, + { 61, -1, sizeof(::vega::Order)}, + { 85, -1, sizeof(::vega::OrderCancellationConfirmation)}, + { 91, -1, sizeof(::vega::OrderConfirmation)}, + { 99, -1, sizeof(::vega::AuctionIndicativeState)}, + { 109, -1, sizeof(::vega::Trade)}, + { 129, -1, sizeof(::vega::Fee)}, + { 137, -1, sizeof(::vega::TradeSet)}, + { 143, -1, sizeof(::vega::Candle)}, + { 156, -1, sizeof(::vega::PriceLevel)}, + { 164, -1, sizeof(::vega::MarketDepth)}, + { 173, -1, sizeof(::vega::MarketDepthUpdate)}, + { 182, -1, sizeof(::vega::Position)}, + { 194, -1, sizeof(::vega::PositionTrade)}, + { 201, -1, sizeof(::vega::Deposit)}, + { 214, -1, sizeof(::vega::Withdrawal)}, + { 230, -1, sizeof(::vega::WithdrawExt)}, + { 237, -1, sizeof(::vega::Erc20WithdrawExt)}, + { 243, -1, sizeof(::vega::Account)}, + { 254, -1, sizeof(::vega::FinancialAmount)}, + { 261, -1, sizeof(::vega::Transfer)}, + { 270, -1, sizeof(::vega::TransferRequest)}, + { 281, -1, sizeof(::vega::LedgerEntry)}, + { 292, -1, sizeof(::vega::TransferBalance)}, + { 299, -1, sizeof(::vega::TransferResponse)}, + { 306, -1, sizeof(::vega::MarginLevels)}, + { 319, -1, sizeof(::vega::MarketData)}, + { 350, -1, sizeof(::vega::LiquidityProviderFeeShare)}, + { 358, -1, sizeof(::vega::PriceMonitoringBounds)}, + { 367, -1, sizeof(::vega::ErrorDetail)}, + { 375, -1, sizeof(::vega::NetworkParameter)}, + { 382, -1, sizeof(::vega::LiquidityOrder)}, + { 390, -1, sizeof(::vega::LiquidityOrderReference)}, + { 397, -1, sizeof(::vega::LiquidityProvision)}, + { 414, -1, sizeof(::vega::EthereumConfig)}, + { 424, -1, sizeof(::vega::EpochTimestamps)}, + { 433, -1, sizeof(::vega::Epoch)}, + { 442, -1, sizeof(::vega::EpochParticipation)}, + { 451, -1, sizeof(::vega::EpochData)}, + { 459, -1, sizeof(::vega::Node)}, + { 476, -1, sizeof(::vega::NodeData)}, + { 486, -1, sizeof(::vega::Delegation)}, + { 495, -1, sizeof(::vega::RewardDetails)}, + { 506, -1, sizeof(::vega::RewardPerAssetDetail)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -1403,7 +1534,6 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::vega::_MarketDepthUpdate_default_instance_), reinterpret_cast(&::vega::_Position_default_instance_), reinterpret_cast(&::vega::_PositionTrade_default_instance_), - reinterpret_cast(&::vega::_Statistics_default_instance_), reinterpret_cast(&::vega::_Deposit_default_instance_), reinterpret_cast(&::vega::_Withdrawal_default_instance_), reinterpret_cast(&::vega::_WithdrawExt_default_instance_), @@ -1420,395 +1550,412 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::vega::_LiquidityProviderFeeShare_default_instance_), reinterpret_cast(&::vega::_PriceMonitoringBounds_default_instance_), reinterpret_cast(&::vega::_ErrorDetail_default_instance_), - reinterpret_cast(&::vega::_Transaction_default_instance_), - reinterpret_cast(&::vega::_Signature_default_instance_), - reinterpret_cast(&::vega::_SignedBundle_default_instance_), reinterpret_cast(&::vega::_NetworkParameter_default_instance_), reinterpret_cast(&::vega::_LiquidityOrder_default_instance_), reinterpret_cast(&::vega::_LiquidityOrderReference_default_instance_), reinterpret_cast(&::vega::_LiquidityProvision_default_instance_), reinterpret_cast(&::vega::_EthereumConfig_default_instance_), + reinterpret_cast(&::vega::_EpochTimestamps_default_instance_), + reinterpret_cast(&::vega::_Epoch_default_instance_), + reinterpret_cast(&::vega::_EpochParticipation_default_instance_), + reinterpret_cast(&::vega::_EpochData_default_instance_), + reinterpret_cast(&::vega::_Node_default_instance_), + reinterpret_cast(&::vega::_NodeData_default_instance_), + reinterpret_cast(&::vega::_Delegation_default_instance_), + reinterpret_cast(&::vega::_RewardDetails_default_instance_), + reinterpret_cast(&::vega::_RewardPerAssetDetail_default_instance_), }; const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\nvega.proto\022\004vega\0326github.com/mwitkow/g" "o-proto-validators/validator.proto\032\rmark" - "ets.proto\"\035\n\005Price\022\024\n\005value\030\001 \001(\004R\005value" - "\"!\n\tTimestamp\022\024\n\005value\030\001 \001(\003R\005value\"\037\n\005P" - "arty\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002id\"N\n\nRiskFact" - "or\022\026\n\006market\030\001 \001(\tR\006market\022\024\n\005short\030\002 \001(" - "\001R\005short\022\022\n\004long\030\003 \001(\001R\004long\"\323\003\n\nRiskRes" - "ult\022+\n\021updated_timestamp\030\001 \001(\003R\020updatedT" - "imestamp\022D\n\014risk_factors\030\002 \003(\0132!.vega.Ri" - "skResult.RiskFactorsEntryR\013riskFactors\0222" - "\n\025next_update_timestamp\030\003 \001(\003R\023nextUpdat" - "eTimestamp\022m\n\033predicted_next_risk_factor" - "s\030\004 \003(\0132..vega.RiskResult.PredictedNextR" - "iskFactorsEntryR\030predictedNextRiskFactor" - "s\032P\n\020RiskFactorsEntry\022\020\n\003key\030\001 \001(\tR\003key\022" - "&\n\005value\030\002 \001(\0132\020.vega.RiskFactorR\005value:" - "\0028\001\032]\n\035PredictedNextRiskFactorsEntry\022\020\n\003" - "key\030\001 \001(\tR\003key\022&\n\005value\030\002 \001(\0132\020.vega.Ris" - "kFactorR\005value:\0028\001\"Z\n\013PeggedOrder\0223\n\tref" - "erence\030\001 \001(\0162\025.vega.PeggedReferenceR\tref" - "erence\022\026\n\006offset\030\002 \001(\003R\006offset\"\342\010\n\005Order" - "\022\016\n\002id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010mar" - "ketId\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\036\n\004side" - "\030\004 \001(\0162\n.vega.SideR\004side\022\024\n\005price\030\005 \001(\004R" - "\005price\022\022\n\004size\030\006 \001(\004R\004size\022\034\n\tremaining\030" - "\007 \001(\004R\tremaining\022;\n\rtime_in_force\030\010 \001(\0162" - "\027.vega.Order.TimeInForceR\013timeInForce\022$\n" - "\004type\030\t \001(\0162\020.vega.Order.TypeR\004type\022\035\n\nc" - "reated_at\030\n \001(\003R\tcreatedAt\022*\n\006status\030\013 \001" - "(\0162\022.vega.Order.StatusR\006status\022\035\n\nexpire" - "s_at\030\014 \001(\003R\texpiresAt\022\034\n\treference\030\r \001(\t" - "R\treference\022(\n\006reason\030\016 \001(\0162\020.vega.Order" - "ErrorR\006reason\022\035\n\nupdated_at\030\017 \001(\003R\tupdat" - "edAt\022\030\n\007version\030\020 \001(\004R\007version\022\031\n\010batch_" - "id\030\021 \001(\004R\007batchId\0224\n\014pegged_order\030\022 \001(\0132" - "\021.vega.PeggedOrderR\013peggedOrder\0224\n\026liqui" - "dity_provision_id\030\023 \001(\tR\024liquidityProvis" - "ionId\"\266\001\n\013TimeInForce\022\035\n\031TIME_IN_FORCE_U" - "NSPECIFIED\020\000\022\025\n\021TIME_IN_FORCE_GTC\020\001\022\025\n\021T" - "IME_IN_FORCE_GTT\020\002\022\025\n\021TIME_IN_FORCE_IOC\020" - "\003\022\025\n\021TIME_IN_FORCE_FOK\020\004\022\025\n\021TIME_IN_FORC" - "E_GFA\020\005\022\025\n\021TIME_IN_FORCE_GFN\020\006\"O\n\004Type\022\024" - "\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nTYPE_LIMIT\020\001\022\017\n\013" - "TYPE_MARKET\020\002\022\020\n\014TYPE_NETWORK\020\003\"\311\001\n\006Stat" - "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACT" - "IVE\020\001\022\022\n\016STATUS_EXPIRED\020\002\022\024\n\020STATUS_CANC" - "ELLED\020\003\022\022\n\016STATUS_STOPPED\020\004\022\021\n\rSTATUS_FI" - "LLED\020\005\022\023\n\017STATUS_REJECTED\020\006\022\033\n\027STATUS_PA" - "RTIALLY_FILLED\020\007\022\021\n\rSTATUS_PARKED\020\010\"B\n\035O" - "rderCancellationConfirmation\022!\n\005order\030\001 " - "\001(\0132\013.vega.OrderR\005order\"\240\001\n\021OrderConfirm" - "ation\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order" - "\022#\n\006trades\030\002 \003(\0132\013.vega.TradeR\006trades\022C\n" - "\027passive_orders_affected\030\003 \003(\0132\013.vega.Or" - "derR\025passiveOrdersAffected\"\323\001\n\026AuctionIn" - "dicativeState\022\033\n\tmarket_id\030\001 \001(\tR\010market" - "Id\022)\n\020indicative_price\030\002 \001(\004R\017indicative" - "Price\022+\n\021indicative_volume\030\003 \001(\004R\020indica" - "tiveVolume\022#\n\rauction_start\030\004 \001(\003R\014aucti" - "onStart\022\037\n\013auction_end\030\005 \001(\003R\nauctionEnd" - "\"\333\004\n\005Trade\022\016\n\002id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030" - "\002 \001(\tR\010marketId\022\024\n\005price\030\003 \001(\004R\005price\022\022\n" - "\004size\030\004 \001(\004R\004size\022\024\n\005buyer\030\005 \001(\tR\005buyer\022" - "\026\n\006seller\030\006 \001(\tR\006seller\022(\n\taggressor\030\007 \001" - "(\0162\n.vega.SideR\taggressor\022\033\n\tbuy_order\030\010" - " \001(\tR\010buyOrder\022\035\n\nsell_order\030\t \001(\tR\tsell" - "Order\022\034\n\ttimestamp\030\n \001(\003R\ttimestamp\022$\n\004t" - "ype\030\013 \001(\0162\020.vega.Trade.TypeR\004type\022&\n\tbuy" - "er_fee\030\014 \001(\0132\t.vega.FeeR\010buyerFee\022(\n\nsel" - "ler_fee\030\r \001(\0132\t.vega.FeeR\tsellerFee\022.\n\023b" - "uyer_auction_batch\030\016 \001(\004R\021buyerAuctionBa" - "tch\0220\n\024seller_auction_batch\030\017 \001(\004R\022selle" - "rAuctionBatch\"o\n\004Type\022\024\n\020TYPE_UNSPECIFIE" - "D\020\000\022\020\n\014TYPE_DEFAULT\020\001\022\037\n\033TYPE_NETWORK_CL" - "OSE_OUT_GOOD\020\002\022\036\n\032TYPE_NETWORK_CLOSE_OUT" - "_BAD\020\003\"v\n\003Fee\022\033\n\tmaker_fee\030\001 \001(\004R\010makerF" - "ee\022-\n\022infrastructure_fee\030\002 \001(\004R\021infrastr" - "uctureFee\022#\n\rliquidity_fee\030\003 \001(\004R\014liquid" - "ityFee\"/\n\010TradeSet\022#\n\006trades\030\001 \003(\0132\013.veg" - "a.TradeR\006trades\"\326\001\n\006Candle\022\034\n\ttimestamp\030" - "\001 \001(\003R\ttimestamp\022\032\n\010datetime\030\002 \001(\tR\010date" - "time\022\022\n\004high\030\003 \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003l" - "ow\022\022\n\004open\030\005 \001(\004R\004open\022\024\n\005close\030\006 \001(\004R\005c" - "lose\022\026\n\006volume\030\007 \001(\004R\006volume\022*\n\010interval" - "\030\010 \001(\0162\016.vega.IntervalR\010interval\"d\n\nPric" - "eLevel\022\024\n\005price\030\001 \001(\004R\005price\022(\n\020number_o" - "f_orders\030\002 \001(\004R\016numberOfOrders\022\026\n\006volume" - "\030\003 \001(\004R\006volume\"\235\001\n\013MarketDepth\022\033\n\tmarket" - "_id\030\001 \001(\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega." - "PriceLevelR\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.Pri" - "ceLevelR\004sell\022\'\n\017sequence_number\030\004 \001(\004R\016" - "sequenceNumber\"\243\001\n\021MarketDepthUpdate\022\033\n\t" - "market_id\030\001 \001(\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020" - ".vega.PriceLevelR\003buy\022$\n\004sell\030\003 \003(\0132\020.ve" - "ga.PriceLevelR\004sell\022\'\n\017sequence_number\030\004" - " \001(\004R\016sequenceNumber\"\374\001\n\010Position\022\033\n\tmar" - "ket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\t" - "R\007partyId\022\037\n\013open_volume\030\003 \001(\003R\nopenVolu" - "me\022!\n\014realised_pnl\030\004 \001(\003R\013realisedPnl\022%\n" - "\016unrealised_pnl\030\005 \001(\003R\runrealisedPnl\022.\n\023" - "average_entry_price\030\006 \001(\004R\021averageEntryP" - "rice\022\035\n\nupdated_at\030\007 \001(\003R\tupdatedAt\"=\n\rP" - "ositionTrade\022\026\n\006volume\030\001 \001(\003R\006volume\022\024\n\005" - "price\030\002 \001(\004R\005price\"\351\n\n\nStatistics\022!\n\014blo" - "ck_height\030\001 \001(\004R\013blockHeight\022%\n\016backlog_" - "length\030\002 \001(\004R\rbacklogLength\022\037\n\013total_pee" - "rs\030\003 \001(\004R\ntotalPeers\022!\n\014genesis_time\030\004 \001" - "(\tR\013genesisTime\022!\n\014current_time\030\005 \001(\tR\013c" - "urrentTime\022\033\n\tvega_time\030\006 \001(\tR\010vegaTime\022" - ")\n\006status\030\007 \001(\0162\021.vega.ChainStatusR\006stat" - "us\022 \n\014tx_per_block\030\010 \001(\004R\ntxPerBlock\022(\n\020" - "average_tx_bytes\030\t \001(\004R\016averageTxBytes\0227" - "\n\030average_orders_per_block\030\n \001(\004R\025averag" - "eOrdersPerBlock\022*\n\021trades_per_second\030\013 \001" - "(\004R\017tradesPerSecond\022*\n\021orders_per_second" - "\030\014 \001(\004R\017ordersPerSecond\022#\n\rtotal_markets" - "\030\r \001(\004R\014totalMarkets\022*\n\021total_amend_orde" - "r\030\020 \001(\004R\017totalAmendOrder\022,\n\022total_cancel" - "_order\030\021 \001(\004R\020totalCancelOrder\022,\n\022total_" - "create_order\030\022 \001(\004R\020totalCreateOrder\022!\n\014" - "total_orders\030\023 \001(\004R\013totalOrders\022!\n\014total" - "_trades\030\024 \001(\004R\013totalTrades\022/\n\023order_subs" - "criptions\030\025 \001(\rR\022orderSubscriptions\022/\n\023t" - "rade_subscriptions\030\026 \001(\rR\022tradeSubscript" - "ions\0221\n\024candle_subscriptions\030\027 \001(\rR\023cand" - "leSubscriptions\022<\n\032market_depth_subscrip" - "tions\030\030 \001(\rR\030marketDepthSubscriptions\0227\n" - "\027positions_subscriptions\030\031 \001(\rR\026position" - "sSubscriptions\0223\n\025account_subscriptions\030" - "\032 \001(\rR\024accountSubscriptions\022:\n\031market_da" - "ta_subscriptions\030\033 \001(\rR\027marketDataSubscr" - "iptions\022(\n\020app_version_hash\030\034 \001(\tR\016appVe" - "rsionHash\022\037\n\013app_version\030\035 \001(\tR\nappVersi" - "on\022#\n\rchain_version\030\036 \001(\tR\014chainVersion\022" - "%\n\016block_duration\030\037 \001(\004R\rblockDuration\022\026" - "\n\006uptime\030 \001(\tR\006uptime\022\031\n\010chain_id\030! \001(\t" - "R\007chainId\022K\n\"market_depth_updates_subscr" - "iptions\030\" \001(\rR\037marketDepthUpdatesSubscri" - "ptions\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006st" - "atus\030\002 \001(\0162\024.vega.Deposit.StatusR\006status" - "\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001" - "(\tR\005asset\022\026\n\006amount\030\005 \001(\tR\006amount\022\027\n\007tx_" - "hash\030\006 \001(\tR\006txHash\022-\n\022credited_timestamp" - "\030\007 \001(\003R\021creditedTimestamp\022+\n\021created_tim" - "estamp\030\010 \001(\003R\020createdTimestamp\"]\n\006Status" - "\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020" - "\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALI" - "ZED\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010" - "party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R" - "\006amount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030" - "\005 \001(\0162\027.vega.Withdrawal.StatusR\006status\022\020" - "\n\003ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry" - "\022\027\n\007tx_hash\030\010 \001(\tR\006txHash\022+\n\021created_tim" - "estamp\030\t \001(\003R\020createdTimestamp\022/\n\023withdr" - "awn_timestamp\030\n \001(\003R\022withdrawnTimestamp\022" - "#\n\003ext\030\013 \001(\0132\021.vega.WithdrawExtR\003ext\"]\n\006" - "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS" - "_OPEN\020\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_" - "FINALIZED\020\003\"D\n\013WithdrawExt\022.\n\005erc20\030\001 \001(" - "\0132\026.vega.Erc20WithdrawExtH\000R\005erc20B\005\n\003ex" - "t\"=\n\020Erc20WithdrawExt\022)\n\020receiver_addres" - "s\030\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002" - "id\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007ba" - "lance\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005ass" - "et\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030" - "\006 \001(\0162\021.vega.AccountTypeR\004type\"\?\n\017Financ" - "ialAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005ass" - "et\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 " - "\001(\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financ" - "ialAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.T" - "ransferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tm" - "inAmount\"\334\001\n\017TransferRequest\0220\n\014from_acc" - "ount\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022," - "\n\nto_account\030\002 \003(\0132\r.vega.AccountR\ttoAcc" - "ount\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amou" - "nt\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asse" - "t\022\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledg" - "erEntry\022!\n\014from_account\030\001 \001(\tR\013fromAccou" - "nt\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amo" - "unt\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\tre" - "ference\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp" - "\030\006 \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007" - "account\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n" - "\007balance\030\002 \001(\004R\007balance\"v\n\020TransferRespo" - "nse\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntr" - "yR\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tr" - "ansferBalanceR\010balances\"\255\002\n\014MarginLevels" - "\022-\n\022maintenance_margin\030\001 \001(\004R\021maintenanc" - "eMargin\022!\n\014search_level\030\002 \001(\004R\013searchLev" - "el\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargi" - "n\0228\n\030collateral_release_level\030\004 \001(\004R\026col" - "lateralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007p" - "artyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005a" - "sset\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\tti" - "mestamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001" - "(\004R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014b" - "estBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbe" - "stBidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016b" - "estOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004" - "R\017bestOfferVolume\0221\n\025best_static_bid_pri" - "ce\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_sta" - "tic_bid_volume\030\007 \001(\004R\023bestStaticBidVolum" - "e\0225\n\027best_static_offer_price\030\010 \001(\004R\024best" - "StaticOfferPrice\0227\n\030best_static_offer_vo" - "lume\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid" - "_price\030\n \001(\004R\010midPrice\022(\n\020static_mid_pri" - "ce\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\t" - "R\006market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#" - "\n\ropen_interest\030\016 \001(\004R\014openInterest\022\037\n\013a" - "uction_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_" - "start\030\020 \001(\003R\014auctionStart\022)\n\020indicative_" - "price\030\021 \001(\004R\017indicativePrice\022+\n\021indicati" - "ve_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023mar" - "ket_trading_mode\030\023 \001(\0162\030.vega.Market.Tra" - "dingModeR\021marketTradingMode\022.\n\007trigger\030\024" - " \001(\0162\024.vega.AuctionTriggerR\007trigger\022A\n\021e" - "xtension_trigger\030\025 \001(\0162\024.vega.AuctionTri" - "ggerR\020extensionTrigger\022!\n\014target_stake\030\026" - " \001(\tR\013targetStake\022%\n\016supplied_stake\030\027 \001(" - "\tR\rsuppliedStake\022S\n\027price_monitoring_bou" - "nds\030\030 \003(\0132\033.vega.PriceMonitoringBoundsR\025" - "priceMonitoringBounds\022,\n\022market_value_pr" - "oxy\030\031 \001(\tR\020marketValueProxy\022`\n\034liquidity" - "_provider_fee_share\030\032 \003(\0132\037.vega.Liquidi" - "tyProviderFeeShareR\031liquidityProviderFee" - "Share\"\225\001\n\031LiquidityProviderFeeShare\022\024\n\005p" - "arty\030\001 \001(\tR\005party\022*\n\021equity_like_share\030\002" - " \001(\tR\017equityLikeShare\0226\n\027average_entry_v" - "aluation\030\003 \001(\tR\025averageEntryValuation\"\310\001" - "\n\025PriceMonitoringBounds\022&\n\017min_valid_pri" - "ce\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_pri" - "ce\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\013" - "2\034.vega.PriceMonitoringTriggerR\007trigger\022" - "\'\n\017reference_price\030\004 \001(\001R\016referencePrice" - "\"Q\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007m" - "essage\030\002 \001(\tR\007message\022\024\n\005inner\030\003 \001(\tR\005in" - "ner\"\246\001\n\013Transaction\022\035\n\ninput_data\030\001 \001(\014R" - "\tinputData\022\024\n\005nonce\030\002 \001(\004R\005nonce\022!\n\014bloc" - "k_height\030\003 \001(\004R\013blockHeight\022\033\n\007address\030\351" - "\007 \001(\014H\000R\007address\022\032\n\007pub_key\030\352\007 \001(\014H\000R\006pu" - "bKeyB\006\n\004from\"K\n\tSignature\022\020\n\003sig\030\001 \001(\014R\003" - "sig\022\022\n\004algo\030\002 \001(\tR\004algo\022\030\n\007version\030\003 \001(\r" - "R\007version\"A\n\014SignedBundle\022\016\n\002tx\030\001 \001(\014R\002t" - "x\022!\n\003sig\030\002 \001(\0132\017.vega.SignatureR\003sig\":\n\020" - "NetworkParameter\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005va" - "lue\030\002 \001(\tR\005value\"}\n\016LiquidityOrder\0223\n\tre" - "ference\030\001 \001(\0162\025.vega.PeggedReferenceR\tre" - "ference\022\036\n\nproportion\030\002 \001(\rR\nproportion\022" - "\026\n\006offset\030\003 \001(\003R\006offset\"s\n\027LiquidityOrde" - "rReference\022\031\n\010order_id\030\001 \001(\tR\007orderId\022=\n" - "\017liquidity_order\030\002 \001(\0132\024.vega.LiquidityO" - "rderR\016liquidityOrder\"\332\004\n\022LiquidityProvis" - "ion\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010party_id\030\002 \001(\tR\007p" - "artyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreatedAt\022\035\n" - "\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmarket_i" - "d\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commitment_" - "amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003fee\030\007 " - "\001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liquidity" - "OrderReferenceR\005sells\0221\n\004buys\030\t \003(\0132\035.ve" - "ga.LiquidityOrderReferenceR\004buys\022\030\n\007vers" - "ion\030\n \001(\tR\007version\0227\n\006status\030\013 \001(\0162\037.veg" - "a.LiquidityProvision.StatusR\006status\022\034\n\tr" - "eference\030\014 \001(\tR\treference\"\235\001\n\006Status\022\026\n\022" - "STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACTIVE\020\001\022" - "\022\n\016STATUS_STOPPED\020\002\022\024\n\020STATUS_CANCELLED\020" - "\003\022\023\n\017STATUS_REJECTED\020\004\022\025\n\021STATUS_UNDEPLO" - "YED\020\005\022\022\n\016STATUS_PENDING\020\006\"\227\001\n\016EthereumCo" - "nfig\022\035\n\nnetwork_id\030\001 \001(\tR\tnetworkId\022\031\n\010c" - "hain_id\030\002 \001(\tR\007chainId\022%\n\016bridge_address" - "\030\003 \001(\tR\rbridgeAddress\022$\n\rconfirmations\030\004" - " \001(\rR\rconfirmations*9\n\004Side\022\024\n\020SIDE_UNSP" - "ECIFIED\020\000\022\014\n\010SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230" - "\001\n\010Interval\022\030\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n" - "\014INTERVAL_I1M\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rIN" - "TERVAL_I15M\020\204\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INT" - "ERVAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016Au" - "ctionTrigger\022\037\n\033AUCTION_TRIGGER_UNSPECIF" - "IED\020\000\022\031\n\025AUCTION_TRIGGER_BATCH\020\001\022\033\n\027AUCT" - "ION_TRIGGER_OPENING\020\002\022\031\n\025AUCTION_TRIGGER" - "_PRICE\020\003\022\035\n\031AUCTION_TRIGGER_LIQUIDITY\020\004*" - "\213\001\n\017PeggedReference\022 \n\034PEGGED_REFERENCE_" - "UNSPECIFIED\020\000\022\030\n\024PEGGED_REFERENCE_MID\020\001\022" - "\035\n\031PEGGED_REFERENCE_BEST_BID\020\002\022\035\n\031PEGGED" - "_REFERENCE_BEST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027" - "ORDER_ERROR_UNSPECIFIED\020\000\022!\n\035ORDER_ERROR" - "_INVALID_MARKET_ID\020\001\022 \n\034ORDER_ERROR_INVA" - "LID_ORDER_ID\020\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQ" - "UENCE\020\003\022&\n\"ORDER_ERROR_INVALID_REMAINING" - "_SIZE\020\004\022\034\n\030ORDER_ERROR_TIME_FAILURE\020\005\022\037\n" - "\033ORDER_ERROR_REMOVAL_FAILURE\020\006\022+\n\'ORDER_" - "ERROR_INVALID_EXPIRATION_DATETIME\020\007\022\'\n#O" - "RDER_ERROR_INVALID_ORDER_REFERENCE\020\010\022 \n\034" - "ORDER_ERROR_EDIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_" - "ERROR_AMEND_FAILURE\020\n\022\031\n\025ORDER_ERROR_NOT" - "_FOUND\020\013\022 \n\034ORDER_ERROR_INVALID_PARTY_ID" - "\020\014\022\035\n\031ORDER_ERROR_MARKET_CLOSED\020\r\022#\n\037ORD" - "ER_ERROR_MARGIN_CHECK_FAILED\020\016\022\'\n#ORDER_" - "ERROR_MISSING_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER" - "_ERROR_INTERNAL_ERROR\020\020\022\034\n\030ORDER_ERROR_I" - "NVALID_SIZE\020\021\022#\n\037ORDER_ERROR_INVALID_PER" - "SISTENCE\020\022\022\034\n\030ORDER_ERROR_INVALID_TYPE\020\023" - "\022\034\n\030ORDER_ERROR_SELF_TRADING\020\024\022.\n*ORDER_" - "ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\020\025\022%" - "\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\020\026\022%\n" - "!ORDER_ERROR_INVALID_TIME_IN_FORCE\020\027\022+\n\'" - "ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\020" - "\030\0223\n/ORDER_ERROR_GFA_ORDER_DURING_CONTIN" - "UOUS_TRADING\020\031\0224\n0ORDER_ERROR_CANNOT_AME" - "ND_TO_GTT_WITHOUT_EXPIRYAT\020\032\022)\n%ORDER_ER" - "ROR_EXPIRYAT_BEFORE_CREATEDAT\020\033\022,\n(ORDER" - "_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n" - "&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\020" - "\035\022*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_" - "GFN\020\036\022,\n(ORDER_ERROR_CANNOT_AMEND_FROM_G" - "FA_OR_GFN\020\037\0224\n0ORDER_ERROR_CANNOT_SEND_I" - "OC_ORDER_DURING_AUCTION\020 \0224\n0ORDER_ERROR" - "_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\020!\022" - "#\n\037ORDER_ERROR_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036" - "ORDER_ERROR_MUST_BE_GTT_OR_GTC\020#\022\'\n#ORDE" - "R_ERROR_WITHOUT_REFERENCE_PRICE\020$\0223\n/ORD" - "ER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_P" - "RICE\020%\0224\n0ORDER_ERROR_OFFSET_MUST_BE_LES" - "S_OR_EQUAL_TO_ZERO\020&\022-\n)ORDER_ERROR_OFFS" - "ET_MUST_BE_LESS_THAN_ZERO\020\'\0227\n3ORDER_ERR" - "OR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZE" - "RO\020(\0224\n0ORDER_ERROR_SELL_CANNOT_REFERENC" - "E_BEST_BID_PRICE\020)\0220\n,ORDER_ERROR_OFFSET" - "_MUST_BE_GREATER_THAN_ZERO\020*\022*\n&ORDER_ER" - "ROR_INSUFFICIENT_ASSET_BALANCE\020+\022E\nAORDE" - "R_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAIL" - "S_ON_NON_PEGGED_ORDER\020,\022.\n*ORDER_ERROR_U" - "NABLE_TO_REPRICE_PEGGED_ORDER\020-\0225\n1ORDER" - "_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_O" - "RDER\020.\0228\n4ORDER_ERROR_NON_PERSISTENT_ORD" - "ER_OUT_OF_PRICE_BOUNDS\020/*\202\001\n\013ChainStatus" - "\022\034\n\030CHAIN_STATUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_" - "STATUS_DISCONNECTED\020\001\022\032\n\026CHAIN_STATUS_RE" - "PLAYING\020\002\022\032\n\026CHAIN_STATUS_CONNECTED\020\003*\220\003" - "\n\013AccountType\022\034\n\030ACCOUNT_TYPE_UNSPECIFIE" - "D\020\000\022\032\n\026ACCOUNT_TYPE_INSURANCE\020\001\022\033\n\027ACCOU" - "NT_TYPE_SETTLEMENT\020\002\022\027\n\023ACCOUNT_TYPE_MAR" - "GIN\020\003\022\030\n\024ACCOUNT_TYPE_GENERAL\020\004\022$\n ACCOU" - "NT_TYPE_FEES_INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT" - "_TYPE_FEES_LIQUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_F" - "EES_MAKER\020\007\022\036\n\032ACCOUNT_TYPE_LOCK_WITHDRA" - "W\020\010\022\025\n\021ACCOUNT_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TY" - "PE_EXTERNAL\020\n\022!\n\035ACCOUNT_TYPE_GLOBAL_INS" - "URANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLOBAL_REWARD\020\014" - "*\323\005\n\014TransferType\022\035\n\031TRANSFER_TYPE_UNSPE" - "CIFIED\020\000\022\026\n\022TRANSFER_TYPE_LOSS\020\001\022\025\n\021TRAN" - "SFER_TYPE_WIN\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003" - "\022\032\n\026TRANSFER_TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER" - "_TYPE_MTM_WIN\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_" - "LOW\020\006\022\035\n\031TRANSFER_TYPE_MARGIN_HIGH\020\007\022$\n " - "TRANSFER_TYPE_MARGIN_CONFISCATED\020\010\022\037\n\033TR" - "ANSFER_TYPE_MAKER_FEE_PAY\020\t\022#\n\037TRANSFER_" - "TYPE_MAKER_FEE_RECEIVE\020\n\022(\n$TRANSFER_TYP" - "E_INFRASTRUCTURE_FEE_PAY\020\013\022/\n+TRANSFER_T" - "YPE_INFRASTRUCTURE_FEE_DISTRIBUTE\020\014\022#\n\037T" - "RANSFER_TYPE_LIQUIDITY_FEE_PAY\020\r\022*\n&TRAN" - "SFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026" - "TRANSFER_TYPE_BOND_LOW\020\017\022\033\n\027TRANSFER_TYP" - "E_BOND_HIGH\020\020\022\037\n\033TRANSFER_TYPE_WITHDRAW_" - "LOCK\020\021\022\032\n\026TRANSFER_TYPE_WITHDRAW\020\022\022\031\n\025TR" - "ANSFER_TYPE_DEPOSIT\020\023\022\037\n\033TRANSFER_TYPE_B" - "OND_SLASHING\020\024\022\036\n\032TRANSFER_TYPE_STAKE_RE" - "WARD\020\025B7\n\024io.vegaprotocol.vegaZ\037code.veg" - "aprotocol.io/vega/protob\006proto3" + "ets.proto\032\014assets.proto\"\035\n\005Price\022\024\n\005valu" + "e\030\001 \001(\004R\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" + "(\003R\005value\"S\n\005Party\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002" + "id\0222\n\013delegations\030\002 \003(\0132\020.vega.Delegatio" + "nR\013delegations\"N\n\nRiskFactor\022\026\n\006market\030\001" + " \001(\tR\006market\022\024\n\005short\030\002 \001(\001R\005short\022\022\n\004lo" + "ng\030\003 \001(\001R\004long\"\323\003\n\nRiskResult\022+\n\021updated" + "_timestamp\030\001 \001(\003R\020updatedTimestamp\022D\n\014ri" + "sk_factors\030\002 \003(\0132!.vega.RiskResult.RiskF" + "actorsEntryR\013riskFactors\0222\n\025next_update_" + "timestamp\030\003 \001(\003R\023nextUpdateTimestamp\022m\n\033" + "predicted_next_risk_factors\030\004 \003(\0132..vega" + ".RiskResult.PredictedNextRiskFactorsEntr" + "yR\030predictedNextRiskFactors\032P\n\020RiskFacto" + "rsEntry\022\020\n\003key\030\001 \001(\tR\003key\022&\n\005value\030\002 \001(\013" + "2\020.vega.RiskFactorR\005value:\0028\001\032]\n\035Predict" + "edNextRiskFactorsEntry\022\020\n\003key\030\001 \001(\tR\003key" + "\022&\n\005value\030\002 \001(\0132\020.vega.RiskFactorR\005value" + ":\0028\001\"Z\n\013PeggedOrder\0223\n\treference\030\001 \001(\0162\025" + ".vega.PeggedReferenceR\treference\022\026\n\006offs" + "et\030\002 \001(\003R\006offset\"\342\010\n\005Order\022\016\n\002id\030\001 \001(\tR\002" + "id\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\022\031\n\010party" + "_id\030\003 \001(\tR\007partyId\022\036\n\004side\030\004 \001(\0162\n.vega." + "SideR\004side\022\024\n\005price\030\005 \001(\004R\005price\022\022\n\004size" + "\030\006 \001(\004R\004size\022\034\n\tremaining\030\007 \001(\004R\tremaini" + "ng\022;\n\rtime_in_force\030\010 \001(\0162\027.vega.Order.T" + "imeInForceR\013timeInForce\022$\n\004type\030\t \001(\0162\020." + "vega.Order.TypeR\004type\022\035\n\ncreated_at\030\n \001(" + "\003R\tcreatedAt\022*\n\006status\030\013 \001(\0162\022.vega.Orde" + "r.StatusR\006status\022\035\n\nexpires_at\030\014 \001(\003R\tex" + "piresAt\022\034\n\treference\030\r \001(\tR\treference\022(\n" + "\006reason\030\016 \001(\0162\020.vega.OrderErrorR\006reason\022" + "\035\n\nupdated_at\030\017 \001(\003R\tupdatedAt\022\030\n\007versio" + "n\030\020 \001(\004R\007version\022\031\n\010batch_id\030\021 \001(\004R\007batc" + "hId\0224\n\014pegged_order\030\022 \001(\0132\021.vega.PeggedO" + "rderR\013peggedOrder\0224\n\026liquidity_provision" + "_id\030\023 \001(\tR\024liquidityProvisionId\"\266\001\n\013Time" + "InForce\022\035\n\031TIME_IN_FORCE_UNSPECIFIED\020\000\022\025" + "\n\021TIME_IN_FORCE_GTC\020\001\022\025\n\021TIME_IN_FORCE_G" + "TT\020\002\022\025\n\021TIME_IN_FORCE_IOC\020\003\022\025\n\021TIME_IN_F" + "ORCE_FOK\020\004\022\025\n\021TIME_IN_FORCE_GFA\020\005\022\025\n\021TIM" + "E_IN_FORCE_GFN\020\006\"O\n\004Type\022\024\n\020TYPE_UNSPECI" + "FIED\020\000\022\016\n\nTYPE_LIMIT\020\001\022\017\n\013TYPE_MARKET\020\002\022" + "\020\n\014TYPE_NETWORK\020\003\"\311\001\n\006Status\022\026\n\022STATUS_U" + "NSPECIFIED\020\000\022\021\n\rSTATUS_ACTIVE\020\001\022\022\n\016STATU" + "S_EXPIRED\020\002\022\024\n\020STATUS_CANCELLED\020\003\022\022\n\016STA" + "TUS_STOPPED\020\004\022\021\n\rSTATUS_FILLED\020\005\022\023\n\017STAT" + "US_REJECTED\020\006\022\033\n\027STATUS_PARTIALLY_FILLED" + "\020\007\022\021\n\rSTATUS_PARKED\020\010\"B\n\035OrderCancellati" + "onConfirmation\022!\n\005order\030\001 \001(\0132\013.vega.Ord" + "erR\005order\"\240\001\n\021OrderConfirmation\022!\n\005order" + "\030\001 \001(\0132\013.vega.OrderR\005order\022#\n\006trades\030\002 \003" + "(\0132\013.vega.TradeR\006trades\022C\n\027passive_order" + "s_affected\030\003 \003(\0132\013.vega.OrderR\025passiveOr" + "dersAffected\"\323\001\n\026AuctionIndicativeState\022" + "\033\n\tmarket_id\030\001 \001(\tR\010marketId\022)\n\020indicati" + "ve_price\030\002 \001(\004R\017indicativePrice\022+\n\021indic" + "ative_volume\030\003 \001(\004R\020indicativeVolume\022#\n\r" + "auction_start\030\004 \001(\003R\014auctionStart\022\037\n\013auc" + "tion_end\030\005 \001(\003R\nauctionEnd\"\333\004\n\005Trade\022\016\n\002" + "id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010marketI" + "d\022\024\n\005price\030\003 \001(\004R\005price\022\022\n\004size\030\004 \001(\004R\004s" + "ize\022\024\n\005buyer\030\005 \001(\tR\005buyer\022\026\n\006seller\030\006 \001(" + "\tR\006seller\022(\n\taggressor\030\007 \001(\0162\n.vega.Side" + "R\taggressor\022\033\n\tbuy_order\030\010 \001(\tR\010buyOrder" + "\022\035\n\nsell_order\030\t \001(\tR\tsellOrder\022\034\n\ttimes" + "tamp\030\n \001(\003R\ttimestamp\022$\n\004type\030\013 \001(\0162\020.ve" + "ga.Trade.TypeR\004type\022&\n\tbuyer_fee\030\014 \001(\0132\t" + ".vega.FeeR\010buyerFee\022(\n\nseller_fee\030\r \001(\0132" + "\t.vega.FeeR\tsellerFee\022.\n\023buyer_auction_b" + "atch\030\016 \001(\004R\021buyerAuctionBatch\0220\n\024seller_" + "auction_batch\030\017 \001(\004R\022sellerAuctionBatch\"" + "o\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_DE" + "FAULT\020\001\022\037\n\033TYPE_NETWORK_CLOSE_OUT_GOOD\020\002" + "\022\036\n\032TYPE_NETWORK_CLOSE_OUT_BAD\020\003\"v\n\003Fee\022" + "\033\n\tmaker_fee\030\001 \001(\004R\010makerFee\022-\n\022infrastr" + "ucture_fee\030\002 \001(\004R\021infrastructureFee\022#\n\rl" + "iquidity_fee\030\003 \001(\004R\014liquidityFee\"/\n\010Trad" + "eSet\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" + "s\"\326\001\n\006Candle\022\034\n\ttimestamp\030\001 \001(\003R\ttimesta" + "mp\022\032\n\010datetime\030\002 \001(\tR\010datetime\022\022\n\004high\030\003" + " \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003low\022\022\n\004open\030\005 \001" + "(\004R\004open\022\024\n\005close\030\006 \001(\004R\005close\022\026\n\006volume" + "\030\007 \001(\004R\006volume\022*\n\010interval\030\010 \001(\0162\016.vega." + "IntervalR\010interval\"d\n\nPriceLevel\022\024\n\005pric" + "e\030\001 \001(\004R\005price\022(\n\020number_of_orders\030\002 \001(\004" + "R\016numberOfOrders\022\026\n\006volume\030\003 \001(\004R\006volume" + "\"\235\001\n\013MarketDepth\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + "ketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevelR\003bu" + "y\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR\004sell\022" + "\'\n\017sequence_number\030\004 \001(\004R\016sequenceNumber" + "\"\243\001\n\021MarketDepthUpdate\022\033\n\tmarket_id\030\001 \001(" + "\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLev" + "elR\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR" + "\004sell\022\'\n\017sequence_number\030\004 \001(\004R\016sequence" + "Number\"\374\001\n\010Position\022\033\n\tmarket_id\030\001 \001(\tR\010" + "marketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\037\n\013o" + "pen_volume\030\003 \001(\003R\nopenVolume\022!\n\014realised" + "_pnl\030\004 \001(\003R\013realisedPnl\022%\n\016unrealised_pn" + "l\030\005 \001(\003R\runrealisedPnl\022.\n\023average_entry_" + "price\030\006 \001(\004R\021averageEntryPrice\022\035\n\nupdate" + "d_at\030\007 \001(\003R\tupdatedAt\"=\n\rPositionTrade\022\026" + "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\004R\005p" + "rice\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006stat" + "us\030\002 \001(\0162\024.vega.Deposit.StatusR\006status\022\031" + "\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001(\t" + "R\005asset\022\026\n\006amount\030\005 \001(\tR\006amount\022\027\n\007tx_ha" + "sh\030\006 \001(\tR\006txHash\022-\n\022credited_timestamp\030\007" + " \001(\003R\021creditedTimestamp\022+\n\021created_times" + "tamp\030\010 \001(\003R\020createdTimestamp\"]\n\006Status\022\026" + "\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020\001\022" + "\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALIZE" + "D\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010pa" + "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R\006a" + "mount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030\005 " + "\001(\0162\027.vega.Withdrawal.StatusR\006status\022\020\n\003" + "ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry\022\027" + "\n\007tx_hash\030\010 \001(\tR\006txHash\022+\n\021created_times" + "tamp\030\t \001(\003R\020createdTimestamp\022/\n\023withdraw" + "n_timestamp\030\n \001(\003R\022withdrawnTimestamp\022#\n" + "\003ext\030\013 \001(\0132\021.vega.WithdrawExtR\003ext\"]\n\006St" + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_O" + "PEN\020\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FI" + "NALIZED\020\003\"D\n\013WithdrawExt\022.\n\005erc20\030\001 \001(\0132" + "\026.vega.Erc20WithdrawExtH\000R\005erc20B\005\n\003ext\"" + "=\n\020Erc20WithdrawExt\022)\n\020receiver_address\030" + "\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002id" + "\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007bala" + "nce\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" + "\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030\006 " + "\001(\0162\021.vega.AccountTypeR\004type\"\?\n\017Financia" + "lAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005asset" + "\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 \001(" + "\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financia" + "lAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.Tra" + "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tmin" + "Amount\"\334\001\n\017TransferRequest\0220\n\014from_accou" + "nt\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022,\n\n" + "to_account\030\002 \003(\0132\r.vega.AccountR\ttoAccou" + "nt\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amount" + "\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" + "\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledger" + "Entry\022!\n\014from_account\030\001 \001(\tR\013fromAccount" + "\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amoun" + "t\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\trefe" + "rence\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp\030\006" + " \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007ac" + "count\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n\007b" + "alance\030\002 \001(\004R\007balance\"v\n\020TransferRespons" + "e\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntryR" + "\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tran" + "sferBalanceR\010balances\"\255\002\n\014MarginLevels\022-" + "\n\022maintenance_margin\030\001 \001(\004R\021maintenanceM" + "argin\022!\n\014search_level\030\002 \001(\004R\013searchLevel" + "\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargin\022" + "8\n\030collateral_release_level\030\004 \001(\004R\026colla" + "teralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007par" + "tyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005ass" + "et\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\ttime" + "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\004" + "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014bes" + "tBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbest" + "BidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016bes" + "tOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004R\017" + "bestOfferVolume\0221\n\025best_static_bid_price" + "\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_stati" + "c_bid_volume\030\007 \001(\004R\023bestStaticBidVolume\022" + "5\n\027best_static_offer_price\030\010 \001(\004R\024bestSt" + "aticOfferPrice\0227\n\030best_static_offer_volu" + "me\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid_p" + "rice\030\n \001(\004R\010midPrice\022(\n\020static_mid_price" + "\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" + "market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#\n\r" + "open_interest\030\016 \001(\004R\014openInterest\022\037\n\013auc" + "tion_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_st" + "art\030\020 \001(\003R\014auctionStart\022)\n\020indicative_pr" + "ice\030\021 \001(\004R\017indicativePrice\022+\n\021indicative" + "_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023marke" + "t_trading_mode\030\023 \001(\0162\030.vega.Market.Tradi" + "ngModeR\021marketTradingMode\022.\n\007trigger\030\024 \001" + "(\0162\024.vega.AuctionTriggerR\007trigger\022A\n\021ext" + "ension_trigger\030\025 \001(\0162\024.vega.AuctionTrigg" + "erR\020extensionTrigger\022!\n\014target_stake\030\026 \001" + "(\tR\013targetStake\022%\n\016supplied_stake\030\027 \001(\tR" + "\rsuppliedStake\022S\n\027price_monitoring_bound" + "s\030\030 \003(\0132\033.vega.PriceMonitoringBoundsR\025pr" + "iceMonitoringBounds\022,\n\022market_value_prox" + "y\030\031 \001(\tR\020marketValueProxy\022`\n\034liquidity_p" + "rovider_fee_share\030\032 \003(\0132\037.vega.Liquidity" + "ProviderFeeShareR\031liquidityProviderFeeSh" + "are\"\225\001\n\031LiquidityProviderFeeShare\022\024\n\005par" + "ty\030\001 \001(\tR\005party\022*\n\021equity_like_share\030\002 \001" + "(\tR\017equityLikeShare\0226\n\027average_entry_val" + "uation\030\003 \001(\tR\025averageEntryValuation\"\310\001\n\025" + "PriceMonitoringBounds\022&\n\017min_valid_price" + "\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_price" + "\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" + ".vega.PriceMonitoringTriggerR\007trigger\022\'\n" + "\017reference_price\030\004 \001(\001R\016referencePrice\"Q" + "\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007mes" + "sage\030\002 \001(\tR\007message\022\024\n\005inner\030\003 \001(\tR\005inne" + "r\":\n\020NetworkParameter\022\020\n\003key\030\001 \001(\tR\003key\022" + "\024\n\005value\030\002 \001(\tR\005value\"}\n\016LiquidityOrder\022" + "3\n\treference\030\001 \001(\0162\025.vega.PeggedReferenc" + "eR\treference\022\036\n\nproportion\030\002 \001(\rR\npropor" + "tion\022\026\n\006offset\030\003 \001(\003R\006offset\"s\n\027Liquidit" + "yOrderReference\022\031\n\010order_id\030\001 \001(\tR\007order" + "Id\022=\n\017liquidity_order\030\002 \001(\0132\024.vega.Liqui" + "dityOrderR\016liquidityOrder\"\332\004\n\022LiquidityP" + "rovision\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010party_id\030\002 \001" + "(\tR\007partyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreated" + "At\022\035\n\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmar" + "ket_id\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commit" + "ment_amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003f" + "ee\030\007 \001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liqu" + "idityOrderReferenceR\005sells\0221\n\004buys\030\t \003(\013" + "2\035.vega.LiquidityOrderReferenceR\004buys\022\030\n" + "\007version\030\n \001(\tR\007version\0227\n\006status\030\013 \001(\0162" + "\037.vega.LiquidityProvision.StatusR\006status" + "\022\034\n\treference\030\014 \001(\tR\treference\"\235\001\n\006Statu" + "s\022\026\n\022STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACTI" + "VE\020\001\022\022\n\016STATUS_STOPPED\020\002\022\024\n\020STATUS_CANCE" + "LLED\020\003\022\023\n\017STATUS_REJECTED\020\004\022\025\n\021STATUS_UN" + "DEPLOYED\020\005\022\022\n\016STATUS_PENDING\020\006\"\321\001\n\016Ether" + "eumConfig\022\035\n\nnetwork_id\030\001 \001(\tR\tnetworkId" + "\022\031\n\010chain_id\030\002 \001(\tR\007chainId\022%\n\016bridge_ad" + "dress\030\003 \001(\tR\rbridgeAddress\022$\n\rconfirmati" + "ons\030\004 \001(\rR\rconfirmations\0228\n\030staking_brid" + "ge_addresses\030\005 \003(\tR\026stakingBridgeAddress" + "es\"\213\001\n\017EpochTimestamps\022\035\n\nstart_time\030\001 \001" + "(\003R\tstartTime\022\031\n\010end_time\030\002 \001(\003R\007endTime" + "\022\037\n\013first_block\030\003 \001(\004R\nfirstBlock\022\035\n\nlas" + "t_block\030\004 \001(\004R\tlastBlock\"\270\001\n\005Epoch\022\020\n\003se" + "q\030\001 \001(\004R\003seq\022=\n\ntimestamps\030\002 \001(\0132\025.vega." + "EpochTimestampsB\006\342\337\037\002 \001R\ntimestamps\022*\n\nv" + "alidators\030\003 \003(\0132\n.vega.NodeR\nvalidators\022" + "2\n\013delegations\030\004 \003(\0132\020.vega.DelegationR\013" + "delegations\"\226\001\n\022EpochParticipation\022)\n\005ep" + "och\030\001 \001(\0132\013.vega.EpochB\006\342\337\037\002X\001R\005epoch\022\030\n" + "\007offline\030\002 \001(\004R\007offline\022\026\n\006online\030\003 \001(\004R" + "\006online\022#\n\rtotal_rewards\030\004 \001(\001R\014totalRew" + "ards\"S\n\tEpochData\022\024\n\005total\030\001 \001(\005R\005total\022" + "\030\n\007offline\030\002 \001(\005R\007offline\022\026\n\006online\030\003 \001(" + "\005R\006online\"\340\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + "b_key\030\002 \001(\tB\006\342\337\037\002X\001R\006pubKey\022\031\n\010info_url\030" + "\003 \001(\tR\007infoUrl\022\032\n\010location\030\004 \001(\tR\010locati" + "on\022,\n\022staked_by_operator\030\005 \001(\tR\020stakedBy" + "Operator\022.\n\023staked_by_delegates\030\006 \001(\tR\021s" + "takedByDelegates\022!\n\014staked_total\030\007 \001(\tR\013" + "stakedTotal\022,\n\022max_intended_stake\030\010 \001(\tR" + "\020maxIntendedStake\022#\n\rpending_stake\030\t \001(\t" + "R\014pendingStake\0226\n\nepoch_data\030\n \001(\0132\017.veg" + "a.EpochDataB\006\342\337\037\002 \001R\tepochData\0220\n\006status" + "\030\013 \001(\0162\020.vega.NodeStatusB\006\342\337\037\002 \001R\006status" + "\0222\n\013delagations\030\014 \003(\0132\020.vega.DelegationR" + "\013delagations\"\270\001\n\010NodeData\022!\n\014staked_tota" + "l\030\001 \001(\tR\013stakedTotal\022\037\n\013total_nodes\030\002 \001(" + "\rR\ntotalNodes\022%\n\016inactive_nodes\030\003 \001(\rR\ri" + "nactiveNodes\022)\n\020validating_nodes\030\004 \001(\rR\017" + "validatingNodes\022\026\n\006uptime\030\005 \001(\002R\006uptime\"" + "p\n\nDelegation\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007n" + "ode_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\tR\006am" + "ount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRe" + "wardDetails\022\031\n\010asset_id\030\001 \001(\tR\007assetId\022\031" + "\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005epoch\030\003 \001(\004" + "R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amount\022.\n\023perce" + "ntage_of_total\030\005 \001(\tR\021percentageOfTotal\022" + "\037\n\013received_at\030\006 \001(\003R\nreceivedAt\"\203\001\n\024Rew" + "ardPerAssetDetail\022\024\n\005asset\030\001 \001(\tR\005asset\022" + "-\n\007details\030\002 \003(\0132\023.vega.RewardDetailsR\007d" + "etails\022&\n\017total_for_asset\030\003 \001(\tR\rtotalFo" + "rAsset*9\n\004Side\022\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010" + "SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230\001\n\010Interval\022\030" + "\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n\014INTERVAL_I1M" + "\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204" + "\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001" + "\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016AuctionTrigger\022" + "\037\n\033AUCTION_TRIGGER_UNSPECIFIED\020\000\022\031\n\025AUCT" + "ION_TRIGGER_BATCH\020\001\022\033\n\027AUCTION_TRIGGER_O" + "PENING\020\002\022\031\n\025AUCTION_TRIGGER_PRICE\020\003\022\035\n\031A" + "UCTION_TRIGGER_LIQUIDITY\020\004*\213\001\n\017PeggedRef" + "erence\022 \n\034PEGGED_REFERENCE_UNSPECIFIED\020\000" + "\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n\031PEGGED_REF" + "ERENCE_BEST_BID\020\002\022\035\n\031PEGGED_REFERENCE_BE" + "ST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027ORDER_ERROR_U" + "NSPECIFIED\020\000\022!\n\035ORDER_ERROR_INVALID_MARK" + "ET_ID\020\001\022 \n\034ORDER_ERROR_INVALID_ORDER_ID\020" + "\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUENCE\020\003\022&\n\"OR" + "DER_ERROR_INVALID_REMAINING_SIZE\020\004\022\034\n\030OR" + "DER_ERROR_TIME_FAILURE\020\005\022\037\n\033ORDER_ERROR_" + "REMOVAL_FAILURE\020\006\022+\n\'ORDER_ERROR_INVALID" + "_EXPIRATION_DATETIME\020\007\022\'\n#ORDER_ERROR_IN" + "VALID_ORDER_REFERENCE\020\010\022 \n\034ORDER_ERROR_E" + "DIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ERROR_AMEND_F" + "AILURE\020\n\022\031\n\025ORDER_ERROR_NOT_FOUND\020\013\022 \n\034O" + "RDER_ERROR_INVALID_PARTY_ID\020\014\022\035\n\031ORDER_E" + "RROR_MARKET_CLOSED\020\r\022#\n\037ORDER_ERROR_MARG" + "IN_CHECK_FAILED\020\016\022\'\n#ORDER_ERROR_MISSING" + "_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_ERROR_INTERN" + "AL_ERROR\020\020\022\034\n\030ORDER_ERROR_INVALID_SIZE\020\021" + "\022#\n\037ORDER_ERROR_INVALID_PERSISTENCE\020\022\022\034\n" + "\030ORDER_ERROR_INVALID_TYPE\020\023\022\034\n\030ORDER_ERR" + "OR_SELF_TRADING\020\024\022.\n*ORDER_ERROR_INSUFFI" + "CIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!ORDER_ERROR" + "_INCORRECT_MARKET_TYPE\020\026\022%\n!ORDER_ERROR_" + "INVALID_TIME_IN_FORCE\020\027\022+\n\'ORDER_ERROR_G" + "FN_ORDER_DURING_AN_AUCTION\020\030\0223\n/ORDER_ER" + "ROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\020" + "\031\0224\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WIT" + "HOUT_EXPIRYAT\020\032\022)\n%ORDER_ERROR_EXPIRYAT_" + "BEFORE_CREATEDAT\020\033\022,\n(ORDER_ERROR_CANNOT" + "_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&ORDER_ERROR_" + "CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022*\n&ORDER_ER" + "ROR_CANNOT_AMEND_TO_GFA_OR_GFN\020\036\022,\n(ORDE" + "R_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\020\037\0224" + "\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURI" + "NG_AUCTION\020 \0224\n0ORDER_ERROR_CANNOT_SEND_" + "FOK_ORDER_DURING_AUCTION\020!\022#\n\037ORDER_ERRO" + "R_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036ORDER_ERROR_M" + "UST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_ERROR_WITHO" + "UT_REFERENCE_PRICE\020$\0223\n/ORDER_ERROR_BUY_" + "CANNOT_REFERENCE_BEST_ASK_PRICE\020%\0224\n0ORD" + "ER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO" + "_ZERO\020&\022-\n)ORDER_ERROR_OFFSET_MUST_BE_LE" + "SS_THAN_ZERO\020\'\0227\n3ORDER_ERROR_OFFSET_MUS" + "T_BE_GREATER_OR_EQUAL_TO_ZERO\020(\0224\n0ORDER" + "_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PR" + "ICE\020)\0220\n,ORDER_ERROR_OFFSET_MUST_BE_GREA" + "TER_THAN_ZERO\020*\022*\n&ORDER_ERROR_INSUFFICI" + "ENT_ASSET_BALANCE\020+\022E\nAORDER_ERROR_CANNO" + "T_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGG" + "ED_ORDER\020,\022.\n*ORDER_ERROR_UNABLE_TO_REPR" + "ICE_PEGGED_ORDER\020-\0225\n1ORDER_ERROR_UNABLE" + "_TO_AMEND_PRICE_ON_PEGGED_ORDER\020.\0228\n4ORD" + "ER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRI" + "CE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034\n\030CHAIN_STA" + "TUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_STATUS_DISCON" + "NECTED\020\001\022\032\n\026CHAIN_STATUS_REPLAYING\020\002\022\032\n\026" + "CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013AccountType" + "\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020\000\022\032\n\026ACCOUN" + "T_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT_TYPE_SETTL" + "EMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGIN\020\003\022\030\n\024ACCO" + "UNT_TYPE_GENERAL\020\004\022$\n ACCOUNT_TYPE_FEES_" + "INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_TYPE_FEES_LI" + "QUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEES_MAKER\020\007\022\036" + "\n\032ACCOUNT_TYPE_LOCK_WITHDRAW\020\010\022\025\n\021ACCOUN" + "T_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TYPE_EXTERNAL\020\n" + "\022!\n\035ACCOUNT_TYPE_GLOBAL_INSURANCE\020\013\022\036\n\032A" + "CCOUNT_TYPE_GLOBAL_REWARD\020\014*\323\005\n\014Transfer" + "Type\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020\000\022\026\n\022T" + "RANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSFER_TYPE_WIN" + "\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003\022\032\n\026TRANSFER_" + "TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER_TYPE_MTM_WIN" + "\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LOW\020\006\022\035\n\031TRAN" + "SFER_TYPE_MARGIN_HIGH\020\007\022$\n TRANSFER_TYPE" + "_MARGIN_CONFISCATED\020\010\022\037\n\033TRANSFER_TYPE_M" + "AKER_FEE_PAY\020\t\022#\n\037TRANSFER_TYPE_MAKER_FE" + "E_RECEIVE\020\n\022(\n$TRANSFER_TYPE_INFRASTRUCT" + "URE_FEE_PAY\020\013\022/\n+TRANSFER_TYPE_INFRASTRU" + "CTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRANSFER_TYPE_" + "LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSFER_TYPE_LIQ" + "UIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TRANSFER_TYPE" + "_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_BOND_HIGH\020\020" + "\022\037\n\033TRANSFER_TYPE_WITHDRAW_LOCK\020\021\022\032\n\026TRA" + "NSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRANSFER_TYPE_D" + "EPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BOND_SLASHING\020" + "\024\022\036\n\032TRANSFER_TYPE_STAKE_REWARD\020\025*c\n\nNod" + "eStatus\022\033\n\027NODE_STATUS_UNSPECIFIED\020\000\022\031\n\025" + "NODE_STATUS_VALIDATOR\020\001\022\035\n\031NODE_STATUS_N" + "ON_VALIDATOR\020\002B7\n\024io.vegaprotocol.vegaZ\037" + "code.vegaprotocol.io/vega/protob\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_vega_2eproto_deps[2] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_vega_2eproto_deps[3] = { + &::descriptor_table_assets_2eproto, &::descriptor_table_github_2ecom_2fmwitkow_2fgo_2dproto_2dvalidators_2fvalidator_2eproto, &::descriptor_table_markets_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_vega_2eproto_sccs[46] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_vega_2eproto_sccs[51] = { &scc_info_Account_vega_2eproto.base, &scc_info_AuctionIndicativeState_vega_2eproto.base, &scc_info_Candle_vega_2eproto.base, + &scc_info_Delegation_vega_2eproto.base, &scc_info_Deposit_vega_2eproto.base, + &scc_info_Epoch_vega_2eproto.base, + &scc_info_EpochData_vega_2eproto.base, + &scc_info_EpochParticipation_vega_2eproto.base, + &scc_info_EpochTimestamps_vega_2eproto.base, &scc_info_Erc20WithdrawExt_vega_2eproto.base, &scc_info_ErrorDetail_vega_2eproto.base, &scc_info_EthereumConfig_vega_2eproto.base, @@ -1824,6 +1971,8 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_veg &scc_info_MarketDepth_vega_2eproto.base, &scc_info_MarketDepthUpdate_vega_2eproto.base, &scc_info_NetworkParameter_vega_2eproto.base, + &scc_info_Node_vega_2eproto.base, + &scc_info_NodeData_vega_2eproto.base, &scc_info_Order_vega_2eproto.base, &scc_info_OrderCancellationConfirmation_vega_2eproto.base, &scc_info_OrderConfirmation_vega_2eproto.base, @@ -1834,17 +1983,15 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_veg &scc_info_Price_vega_2eproto.base, &scc_info_PriceLevel_vega_2eproto.base, &scc_info_PriceMonitoringBounds_vega_2eproto.base, + &scc_info_RewardDetails_vega_2eproto.base, + &scc_info_RewardPerAssetDetail_vega_2eproto.base, &scc_info_RiskFactor_vega_2eproto.base, &scc_info_RiskResult_vega_2eproto.base, &scc_info_RiskResult_PredictedNextRiskFactorsEntry_DoNotUse_vega_2eproto.base, &scc_info_RiskResult_RiskFactorsEntry_DoNotUse_vega_2eproto.base, - &scc_info_Signature_vega_2eproto.base, - &scc_info_SignedBundle_vega_2eproto.base, - &scc_info_Statistics_vega_2eproto.base, &scc_info_Timestamp_vega_2eproto.base, &scc_info_Trade_vega_2eproto.base, &scc_info_TradeSet_vega_2eproto.base, - &scc_info_Transaction_vega_2eproto.base, &scc_info_Transfer_vega_2eproto.base, &scc_info_TransferBalance_vega_2eproto.base, &scc_info_TransferRequest_vega_2eproto.base, @@ -1854,10 +2001,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_veg }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_vega_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_vega_2eproto = { - false, false, descriptor_table_protodef_vega_2eproto, "vega.proto", 14711, - &descriptor_table_vega_2eproto_once, descriptor_table_vega_2eproto_sccs, descriptor_table_vega_2eproto_deps, 46, 2, + false, false, descriptor_table_protodef_vega_2eproto, "vega.proto", 14919, + &descriptor_table_vega_2eproto_once, descriptor_table_vega_2eproto_sccs, descriptor_table_vega_2eproto_deps, 51, 3, schemas, file_default_instances, TableStruct_vega_2eproto::offsets, - file_level_metadata_vega_2eproto, 46, file_level_enum_descriptors_vega_2eproto, file_level_service_descriptors_vega_2eproto, + file_level_metadata_vega_2eproto, 51, file_level_enum_descriptors_vega_2eproto, file_level_service_descriptors_vega_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -2262,6 +2409,21 @@ bool TransferType_IsValid(int value) { } } +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NodeStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_vega_2eproto); + return file_level_enum_descriptors_vega_2eproto[15]; +} +bool NodeStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + // =================================================================== @@ -2658,13 +2820,15 @@ class Party::_Internal { }; Party::Party(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + delegations_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:vega.Party) } Party::Party(const Party& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + delegations_(from.delegations_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_id().empty()) { @@ -2711,6 +2875,7 @@ void Party::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + delegations_.Clear(); id_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2731,6 +2896,18 @@ const char* Party::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte CHK_(ptr); } else goto handle_unusual; continue; + // repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_delegations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2769,6 +2946,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Party::_InternalSerialize( 1, this->_internal_id(), target); } + // repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_delegations_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_delegations(i), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2785,6 +2970,13 @@ size_t Party::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + total_size += 1UL * this->_internal_delegations_size(); + for (const auto& msg : this->delegations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // string id = 1 [json_name = "id", (.validator.field) = { if (this->id().size() > 0) { total_size += 1 + @@ -2823,6 +3015,7 @@ void Party::MergeFrom(const Party& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + delegations_.MergeFrom(from.delegations_); if (from.id().size() > 0) { _internal_set_id(from._internal_id()); } @@ -2849,6 +3042,7 @@ bool Party::IsInitialized() const { void Party::InternalSwap(Party* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + delegations_.InternalSwap(&other->delegations_); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } @@ -8208,379 +8402,181 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PositionTrade::GetMetadata() const { // =================================================================== -class Statistics::_Internal { +class Deposit::_Internal { public: }; -Statistics::Statistics(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Deposit::Deposit(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Statistics) + // @@protoc_insertion_point(arena_constructor:vega.Deposit) } -Statistics::Statistics(const Statistics& from) +Deposit::Deposit(const Deposit& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - genesis_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_genesis_time().empty()) { - genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_genesis_time(), - GetArena()); - } - current_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_current_time().empty()) { - current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_current_time(), - GetArena()); - } - vega_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_vega_time().empty()) { - vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vega_time(), - GetArena()); - } - app_version_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_app_version_hash().empty()) { - app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version_hash(), + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } - app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_app_version().empty()) { - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_app_version(), + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party_id().empty()) { + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } - chain_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_chain_version().empty()) { - chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_version(), + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), GetArena()); } - uptime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_uptime().empty()) { - uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_uptime(), + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), GetArena()); } - chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_chain_id().empty()) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_id(), + tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_tx_hash().empty()) { + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx_hash(), GetArena()); } - ::memcpy(&block_height_, &from.block_height_, - static_cast(reinterpret_cast(&market_depth_updates_subscriptions_) - - reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); - // @@protoc_insertion_point(copy_constructor:vega.Statistics) -} - -void Statistics::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Statistics_vega_2eproto.base); - genesis_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - current_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vega_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_version_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - uptime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memcpy(&credited_timestamp_, &from.credited_timestamp_, + static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:vega.Deposit) +} + +void Deposit::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Deposit_vega_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&block_height_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&market_depth_updates_subscriptions_) - - reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); + reinterpret_cast(&credited_timestamp_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); } -Statistics::~Statistics() { - // @@protoc_insertion_point(destructor:vega.Statistics) +Deposit::~Deposit() { + // @@protoc_insertion_point(destructor:vega.Deposit) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Statistics::SharedDtor() { +void Deposit::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - genesis_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - current_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vega_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_version_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - app_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - uptime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Statistics::ArenaDtor(void* object) { - Statistics* _this = reinterpret_cast< Statistics* >(object); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Deposit::ArenaDtor(void* object) { + Deposit* _this = reinterpret_cast< Deposit* >(object); (void)_this; } -void Statistics::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Deposit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Statistics::SetCachedSize(int size) const { +void Deposit::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Statistics& Statistics::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Statistics_vega_2eproto.base); +const Deposit& Deposit::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Deposit_vega_2eproto.base); return *internal_default_instance(); } -void Statistics::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Statistics) +void Deposit::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Deposit) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - genesis_time_.ClearToEmpty(); - current_time_.ClearToEmpty(); - vega_time_.ClearToEmpty(); - app_version_hash_.ClearToEmpty(); - app_version_.ClearToEmpty(); - chain_version_.ClearToEmpty(); - uptime_.ClearToEmpty(); - chain_id_.ClearToEmpty(); - ::memset(&block_height_, 0, static_cast( - reinterpret_cast(&market_depth_updates_subscriptions_) - - reinterpret_cast(&block_height_)) + sizeof(market_depth_updates_subscriptions_)); + id_.ClearToEmpty(); + party_id_.ClearToEmpty(); + asset_.ClearToEmpty(); + amount_.ClearToEmpty(); + tx_hash_.ClearToEmpty(); + ::memset(&credited_timestamp_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Statistics::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Deposit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 block_height = 1 [json_name = "blockHeight"]; + // string id = 1 [json_name = "id"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - block_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.id")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 backlog_length = 2 [json_name = "backlogLength"]; + // .vega.Deposit.Status status = 2 [json_name = "status"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - backlog_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); + _internal_set_status(static_cast<::vega::Deposit_Status>(val)); } else goto handle_unusual; continue; - // uint64 total_peers = 3 [json_name = "totalPeers"]; + // string party_id = 3 [json_name = "partyId"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - total_peers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_party_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.party_id")); CHK_(ptr); } else goto handle_unusual; continue; - // string genesis_time = 4 [json_name = "genesisTime"]; + // string asset = 4 [json_name = "asset"]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_genesis_time(); + auto str = _internal_mutable_asset(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.genesis_time")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.asset")); CHK_(ptr); } else goto handle_unusual; continue; - // string current_time = 5 [json_name = "currentTime"]; + // string amount = 5 [json_name = "amount"]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_current_time(); + auto str = _internal_mutable_amount(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.current_time")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.amount")); CHK_(ptr); } else goto handle_unusual; continue; - // string vega_time = 6 [json_name = "vegaTime"]; + // string tx_hash = 6 [json_name = "txHash"]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - auto str = _internal_mutable_vega_time(); + auto str = _internal_mutable_tx_hash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.vega_time")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.tx_hash")); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.ChainStatus status = 7 [json_name = "status"]; + // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + credited_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - _internal_set_status(static_cast<::vega::ChainStatus>(val)); } else goto handle_unusual; continue; - // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - tx_per_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - average_tx_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - average_orders_per_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { - trades_per_second_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { - orders_per_second_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_markets = 13 [json_name = "totalMarkets"]; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { - total_markets_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) { - total_amend_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { - total_cancel_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { - total_create_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_orders = 19 [json_name = "totalOrders"]; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { - total_orders_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 total_trades = 20 [json_name = "totalTrades"]; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { - total_trades_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { - order_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { - trade_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { - candle_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { - market_depth_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { - positions_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { - account_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { - market_data_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string app_version_hash = 28 [json_name = "appVersionHash"]; - case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { - auto str = _internal_mutable_app_version_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.app_version_hash")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string app_version = 29 [json_name = "appVersion"]; - case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { - auto str = _internal_mutable_app_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.app_version")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string chain_version = 30 [json_name = "chainVersion"]; - case 30: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { - auto str = _internal_mutable_chain_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.chain_version")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 block_duration = 31 [json_name = "blockDuration"]; - case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 248)) { - block_duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string uptime = 32 [json_name = "uptime"]; - case 32: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 2)) { - auto str = _internal_mutable_uptime(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.uptime")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string chain_id = 33 [json_name = "chainId"]; - case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_chain_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Statistics.chain_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - market_depth_updates_subscriptions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + created_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -8606,476 +8602,152 @@ const char* Statistics::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Statistics::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Deposit::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Statistics) + // @@protoc_insertion_point(serialize_to_array_start:vega.Deposit) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 block_height = 1 [json_name = "blockHeight"]; - if (this->block_height() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_block_height(), target); + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Deposit.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - // uint64 backlog_length = 2 [json_name = "backlogLength"]; - if (this->backlog_length() != 0) { + // .vega.Deposit.Status status = 2 [json_name = "status"]; + if (this->status() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_backlog_length(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), target); } - // uint64 total_peers = 3 [json_name = "totalPeers"]; - if (this->total_peers() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_total_peers(), target); + // string party_id = 3 [json_name = "partyId"]; + if (this->party_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Deposit.party_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_party_id(), target); } - // string genesis_time = 4 [json_name = "genesisTime"]; - if (this->genesis_time().size() > 0) { + // string asset = 4 [json_name = "asset"]; + if (this->asset().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_genesis_time().data(), static_cast(this->_internal_genesis_time().length()), + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.genesis_time"); + "vega.Deposit.asset"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_genesis_time(), target); + 4, this->_internal_asset(), target); } - // string current_time = 5 [json_name = "currentTime"]; - if (this->current_time().size() > 0) { + // string amount = 5 [json_name = "amount"]; + if (this->amount().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_current_time().data(), static_cast(this->_internal_current_time().length()), + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.current_time"); + "vega.Deposit.amount"); target = stream->WriteStringMaybeAliased( - 5, this->_internal_current_time(), target); + 5, this->_internal_amount(), target); } - // string vega_time = 6 [json_name = "vegaTime"]; - if (this->vega_time().size() > 0) { + // string tx_hash = 6 [json_name = "txHash"]; + if (this->tx_hash().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_vega_time().data(), static_cast(this->_internal_vega_time().length()), + this->_internal_tx_hash().data(), static_cast(this->_internal_tx_hash().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.vega_time"); + "vega.Deposit.tx_hash"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_vega_time(), target); + 6, this->_internal_tx_hash(), target); } - // .vega.ChainStatus status = 7 [json_name = "status"]; - if (this->status() != 0) { + // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + if (this->credited_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 7, this->_internal_status(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_credited_timestamp(), target); } - // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - if (this->tx_per_block() != 0) { + // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + if (this->created_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_tx_per_block(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_created_timestamp(), target); } - // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - if (this->average_tx_bytes() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_average_tx_bytes(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } + // @@protoc_insertion_point(serialize_to_array_end:vega.Deposit) + return target; +} - // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - if (this->average_orders_per_block() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_average_orders_per_block(), target); - } +size_t Deposit::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Deposit) + size_t total_size = 0; - // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - if (this->trades_per_second() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_trades_per_second(), target); - } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - if (this->orders_per_second() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(12, this->_internal_orders_per_second(), target); + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - // uint64 total_markets = 13 [json_name = "totalMarkets"]; - if (this->total_markets() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(13, this->_internal_total_markets(), target); + // string party_id = 3 [json_name = "partyId"]; + if (this->party_id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party_id()); } - // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - if (this->total_amend_order() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(16, this->_internal_total_amend_order(), target); + // string asset = 4 [json_name = "asset"]; + if (this->asset().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); } - // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - if (this->total_cancel_order() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(17, this->_internal_total_cancel_order(), target); + // string amount = 5 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); } - // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - if (this->total_create_order() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(18, this->_internal_total_create_order(), target); + // string tx_hash = 6 [json_name = "txHash"]; + if (this->tx_hash().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tx_hash()); } - // uint64 total_orders = 19 [json_name = "totalOrders"]; - if (this->total_orders() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(19, this->_internal_total_orders(), target); - } - - // uint64 total_trades = 20 [json_name = "totalTrades"]; - if (this->total_trades() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(20, this->_internal_total_trades(), target); - } - - // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - if (this->order_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(21, this->_internal_order_subscriptions(), target); - } - - // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - if (this->trade_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(22, this->_internal_trade_subscriptions(), target); - } - - // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - if (this->candle_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(23, this->_internal_candle_subscriptions(), target); - } - - // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - if (this->market_depth_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(24, this->_internal_market_depth_subscriptions(), target); - } - - // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - if (this->positions_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(25, this->_internal_positions_subscriptions(), target); - } - - // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - if (this->account_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(26, this->_internal_account_subscriptions(), target); - } - - // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - if (this->market_data_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(27, this->_internal_market_data_subscriptions(), target); - } - - // string app_version_hash = 28 [json_name = "appVersionHash"]; - if (this->app_version_hash().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_app_version_hash().data(), static_cast(this->_internal_app_version_hash().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.app_version_hash"); - target = stream->WriteStringMaybeAliased( - 28, this->_internal_app_version_hash(), target); - } - - // string app_version = 29 [json_name = "appVersion"]; - if (this->app_version().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_app_version().data(), static_cast(this->_internal_app_version().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.app_version"); - target = stream->WriteStringMaybeAliased( - 29, this->_internal_app_version(), target); - } - - // string chain_version = 30 [json_name = "chainVersion"]; - if (this->chain_version().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_chain_version().data(), static_cast(this->_internal_chain_version().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.chain_version"); - target = stream->WriteStringMaybeAliased( - 30, this->_internal_chain_version(), target); - } - - // uint64 block_duration = 31 [json_name = "blockDuration"]; - if (this->block_duration() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(31, this->_internal_block_duration(), target); - } - - // string uptime = 32 [json_name = "uptime"]; - if (this->uptime().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_uptime().data(), static_cast(this->_internal_uptime().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.uptime"); - target = stream->WriteStringMaybeAliased( - 32, this->_internal_uptime(), target); - } - - // string chain_id = 33 [json_name = "chainId"]; - if (this->chain_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_chain_id().data(), static_cast(this->_internal_chain_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Statistics.chain_id"); - target = stream->WriteStringMaybeAliased( - 33, this->_internal_chain_id(), target); - } - - // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - if (this->market_depth_updates_subscriptions() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(34, this->_internal_market_depth_updates_subscriptions(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:vega.Statistics) - return target; -} - -size_t Statistics::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Statistics) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string genesis_time = 4 [json_name = "genesisTime"]; - if (this->genesis_time().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_genesis_time()); - } - - // string current_time = 5 [json_name = "currentTime"]; - if (this->current_time().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_current_time()); - } - - // string vega_time = 6 [json_name = "vegaTime"]; - if (this->vega_time().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_vega_time()); - } - - // string app_version_hash = 28 [json_name = "appVersionHash"]; - if (this->app_version_hash().size() > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_app_version_hash()); - } - - // string app_version = 29 [json_name = "appVersion"]; - if (this->app_version().size() > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_app_version()); - } - - // string chain_version = 30 [json_name = "chainVersion"]; - if (this->chain_version().size() > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_chain_version()); - } - - // string uptime = 32 [json_name = "uptime"]; - if (this->uptime().size() > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_uptime()); - } - - // string chain_id = 33 [json_name = "chainId"]; - if (this->chain_id().size() > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_chain_id()); - } - - // uint64 block_height = 1 [json_name = "blockHeight"]; - if (this->block_height() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_block_height()); - } - - // uint64 backlog_length = 2 [json_name = "backlogLength"]; - if (this->backlog_length() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_backlog_length()); - } - - // uint64 total_peers = 3 [json_name = "totalPeers"]; - if (this->total_peers() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_peers()); - } - - // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - if (this->tx_per_block() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_tx_per_block()); - } - - // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - if (this->average_tx_bytes() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_average_tx_bytes()); - } - - // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - if (this->average_orders_per_block() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_average_orders_per_block()); - } - - // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - if (this->trades_per_second() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_trades_per_second()); - } - - // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - if (this->orders_per_second() != 0) { + // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + if (this->credited_timestamp() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_orders_per_second()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_credited_timestamp()); } - // uint64 total_markets = 13 [json_name = "totalMarkets"]; - if (this->total_markets() != 0) { + // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + if (this->created_timestamp() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_markets()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_created_timestamp()); } - // .vega.ChainStatus status = 7 [json_name = "status"]; + // .vega.Deposit.Status status = 2 [json_name = "status"]; if (this->status() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); } - // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - if (this->order_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_order_subscriptions()); - } - - // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - if (this->total_amend_order() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_amend_order()); - } - - // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - if (this->total_cancel_order() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_cancel_order()); - } - - // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - if (this->total_create_order() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_create_order()); - } - - // uint64 total_orders = 19 [json_name = "totalOrders"]; - if (this->total_orders() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_orders()); - } - - // uint64 total_trades = 20 [json_name = "totalTrades"]; - if (this->total_trades() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_trades()); - } - - // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - if (this->trade_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_trade_subscriptions()); - } - - // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - if (this->candle_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_candle_subscriptions()); - } - - // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - if (this->market_depth_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_market_depth_subscriptions()); - } - - // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - if (this->positions_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_positions_subscriptions()); - } - - // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - if (this->account_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_account_subscriptions()); - } - - // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - if (this->market_data_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_market_data_subscriptions()); - } - - // uint64 block_duration = 31 [json_name = "blockDuration"]; - if (this->block_duration() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_block_duration()); - } - - // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - if (this->market_depth_updates_subscriptions() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_market_depth_updates_subscriptions()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -9085,181 +8757,111 @@ size_t Statistics::ByteSizeLong() const { return total_size; } -void Statistics::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Statistics) +void Deposit::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Deposit) GOOGLE_DCHECK_NE(&from, this); - const Statistics* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Deposit* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Statistics) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Deposit) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Statistics) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Deposit) MergeFrom(*source); } } -void Statistics::MergeFrom(const Statistics& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Statistics) +void Deposit::MergeFrom(const Deposit& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Deposit) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.genesis_time().size() > 0) { - _internal_set_genesis_time(from._internal_genesis_time()); - } - if (from.current_time().size() > 0) { - _internal_set_current_time(from._internal_current_time()); - } - if (from.vega_time().size() > 0) { - _internal_set_vega_time(from._internal_vega_time()); - } - if (from.app_version_hash().size() > 0) { - _internal_set_app_version_hash(from._internal_app_version_hash()); - } - if (from.app_version().size() > 0) { - _internal_set_app_version(from._internal_app_version()); - } - if (from.chain_version().size() > 0) { - _internal_set_chain_version(from._internal_chain_version()); - } - if (from.uptime().size() > 0) { - _internal_set_uptime(from._internal_uptime()); - } - if (from.chain_id().size() > 0) { - _internal_set_chain_id(from._internal_chain_id()); - } - if (from.block_height() != 0) { - _internal_set_block_height(from._internal_block_height()); - } - if (from.backlog_length() != 0) { - _internal_set_backlog_length(from._internal_backlog_length()); - } - if (from.total_peers() != 0) { - _internal_set_total_peers(from._internal_total_peers()); + if (from.id().size() > 0) { + _internal_set_id(from._internal_id()); } - if (from.tx_per_block() != 0) { - _internal_set_tx_per_block(from._internal_tx_per_block()); + if (from.party_id().size() > 0) { + _internal_set_party_id(from._internal_party_id()); } - if (from.average_tx_bytes() != 0) { - _internal_set_average_tx_bytes(from._internal_average_tx_bytes()); + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); } - if (from.average_orders_per_block() != 0) { - _internal_set_average_orders_per_block(from._internal_average_orders_per_block()); + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); } - if (from.trades_per_second() != 0) { - _internal_set_trades_per_second(from._internal_trades_per_second()); + if (from.tx_hash().size() > 0) { + _internal_set_tx_hash(from._internal_tx_hash()); } - if (from.orders_per_second() != 0) { - _internal_set_orders_per_second(from._internal_orders_per_second()); + if (from.credited_timestamp() != 0) { + _internal_set_credited_timestamp(from._internal_credited_timestamp()); } - if (from.total_markets() != 0) { - _internal_set_total_markets(from._internal_total_markets()); + if (from.created_timestamp() != 0) { + _internal_set_created_timestamp(from._internal_created_timestamp()); } if (from.status() != 0) { _internal_set_status(from._internal_status()); } - if (from.order_subscriptions() != 0) { - _internal_set_order_subscriptions(from._internal_order_subscriptions()); - } - if (from.total_amend_order() != 0) { - _internal_set_total_amend_order(from._internal_total_amend_order()); - } - if (from.total_cancel_order() != 0) { - _internal_set_total_cancel_order(from._internal_total_cancel_order()); - } - if (from.total_create_order() != 0) { - _internal_set_total_create_order(from._internal_total_create_order()); - } - if (from.total_orders() != 0) { - _internal_set_total_orders(from._internal_total_orders()); - } - if (from.total_trades() != 0) { - _internal_set_total_trades(from._internal_total_trades()); - } - if (from.trade_subscriptions() != 0) { - _internal_set_trade_subscriptions(from._internal_trade_subscriptions()); - } - if (from.candle_subscriptions() != 0) { - _internal_set_candle_subscriptions(from._internal_candle_subscriptions()); - } - if (from.market_depth_subscriptions() != 0) { - _internal_set_market_depth_subscriptions(from._internal_market_depth_subscriptions()); - } - if (from.positions_subscriptions() != 0) { - _internal_set_positions_subscriptions(from._internal_positions_subscriptions()); - } - if (from.account_subscriptions() != 0) { - _internal_set_account_subscriptions(from._internal_account_subscriptions()); - } - if (from.market_data_subscriptions() != 0) { - _internal_set_market_data_subscriptions(from._internal_market_data_subscriptions()); - } - if (from.block_duration() != 0) { - _internal_set_block_duration(from._internal_block_duration()); - } - if (from.market_depth_updates_subscriptions() != 0) { - _internal_set_market_depth_updates_subscriptions(from._internal_market_depth_updates_subscriptions()); - } } -void Statistics::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Statistics) +void Deposit::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Deposit) if (&from == this) return; Clear(); MergeFrom(from); } -void Statistics::CopyFrom(const Statistics& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Statistics) +void Deposit::CopyFrom(const Deposit& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Deposit) if (&from == this) return; Clear(); MergeFrom(from); } -bool Statistics::IsInitialized() const { +bool Deposit::IsInitialized() const { return true; } -void Statistics::InternalSwap(Statistics* other) { +void Deposit::InternalSwap(Deposit* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - genesis_time_.Swap(&other->genesis_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - current_time_.Swap(&other->current_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - vega_time_.Swap(&other->vega_time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - app_version_hash_.Swap(&other->app_version_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - app_version_.Swap(&other->app_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - chain_version_.Swap(&other->chain_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - uptime_.Swap(&other->uptime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - chain_id_.Swap(&other->chain_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Statistics, market_depth_updates_subscriptions_) - + sizeof(Statistics::market_depth_updates_subscriptions_) - - PROTOBUF_FIELD_OFFSET(Statistics, block_height_)>( - reinterpret_cast(&block_height_), - reinterpret_cast(&other->block_height_)); + PROTOBUF_FIELD_OFFSET(Deposit, status_) + + sizeof(Deposit::status_) + - PROTOBUF_FIELD_OFFSET(Deposit, credited_timestamp_)>( + reinterpret_cast(&credited_timestamp_), + reinterpret_cast(&other->credited_timestamp_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Statistics::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Deposit::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class Deposit::_Internal { +class Withdrawal::_Internal { public: + static const ::vega::WithdrawExt& ext(const Withdrawal* msg); }; -Deposit::Deposit(::PROTOBUF_NAMESPACE_ID::Arena* arena) +const ::vega::WithdrawExt& +Withdrawal::_Internal::ext(const Withdrawal* msg) { + return *msg->ext_; +} +Withdrawal::Withdrawal(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Deposit) + // @@protoc_insertion_point(arena_constructor:vega.Withdrawal) } -Deposit::Deposit(const Deposit& from) +Withdrawal::Withdrawal(const Withdrawal& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -9277,9 +8879,9 @@ Deposit::Deposit(const Deposit& from) asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), GetArena()); } - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_amount().empty()) { - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + ref_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ref().empty()) { + ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ref(), GetArena()); } tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -9287,57 +8889,63 @@ Deposit::Deposit(const Deposit& from) tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx_hash(), GetArena()); } - ::memcpy(&credited_timestamp_, &from.credited_timestamp_, + if (from._internal_has_ext()) { + ext_ = new ::vega::WithdrawExt(*from.ext_); + } else { + ext_ = nullptr; + } + ::memcpy(&amount_, &from.amount_, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); - // @@protoc_insertion_point(copy_constructor:vega.Deposit) + reinterpret_cast(&amount_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:vega.Withdrawal) } -void Deposit::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Deposit_vega_2eproto.base); +void Withdrawal::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Withdrawal_vega_2eproto.base); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ref_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&credited_timestamp_) - reinterpret_cast(this)), + reinterpret_cast(&ext_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); + reinterpret_cast(&ext_)) + sizeof(status_)); } -Deposit::~Deposit() { - // @@protoc_insertion_point(destructor:vega.Deposit) +Withdrawal::~Withdrawal() { + // @@protoc_insertion_point(destructor:vega.Withdrawal) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Deposit::SharedDtor() { +void Withdrawal::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ref_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete ext_; } -void Deposit::ArenaDtor(void* object) { - Deposit* _this = reinterpret_cast< Deposit* >(object); +void Withdrawal::ArenaDtor(void* object) { + Withdrawal* _this = reinterpret_cast< Withdrawal* >(object); (void)_this; } -void Deposit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Withdrawal::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Deposit::SetCachedSize(int size) const { +void Withdrawal::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Deposit& Deposit::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Deposit_vega_2eproto.base); +const Withdrawal& Withdrawal::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Withdrawal_vega_2eproto.base); return *internal_default_instance(); } -void Deposit::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Deposit) +void Withdrawal::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Withdrawal) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -9345,15 +8953,19 @@ void Deposit::Clear() { id_.ClearToEmpty(); party_id_.ClearToEmpty(); asset_.ClearToEmpty(); - amount_.ClearToEmpty(); + ref_.ClearToEmpty(); tx_hash_.ClearToEmpty(); - ::memset(&credited_timestamp_, 0, static_cast( + if (GetArena() == nullptr && ext_ != nullptr) { + delete ext_; + } + ext_ = nullptr; + ::memset(&amount_, 0, static_cast( reinterpret_cast(&status_) - - reinterpret_cast(&credited_timestamp_)) + sizeof(status_)); + reinterpret_cast(&amount_)) + sizeof(status_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Deposit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Withdrawal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; @@ -9365,24 +8977,23 @@ const char* Deposit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.id")); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.Deposit.Status status = 2 [json_name = "status"]; + // string party_id = 2 [json_name = "partyId"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_party_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.party_id")); CHK_(ptr); - _internal_set_status(static_cast<::vega::Deposit_Status>(val)); } else goto handle_unusual; continue; - // string party_id = 3 [json_name = "partyId"]; + // uint64 amount = 3 [json_name = "amount"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.party_id")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -9391,42 +9002,64 @@ const char* Deposit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_asset(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.asset")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.asset")); CHK_(ptr); } else goto handle_unusual; continue; - // string amount = 5 [json_name = "amount"]; + // .vega.Withdrawal.Status status = 5 [json_name = "status"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_amount(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.amount")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); + _internal_set_status(static_cast<::vega::Withdrawal_Status>(val)); } else goto handle_unusual; continue; - // string tx_hash = 6 [json_name = "txHash"]; + // string ref = 6 [json_name = "ref"]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - auto str = _internal_mutable_tx_hash(); + auto str = _internal_mutable_ref(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Deposit.tx_hash")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.ref")); CHK_(ptr); } else goto handle_unusual; continue; - // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + // int64 expiry = 7 [json_name = "expiry"]; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - credited_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + expiry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + // string tx_hash = 8 [json_name = "txHash"]; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_tx_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.tx_hash")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { created_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; + // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + withdrawn_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.WithdrawExt ext = 11 [json_name = "ext"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_ext(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -9449,9 +9082,9 @@ const char* Deposit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Deposit::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Withdrawal::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Deposit) + // @@protoc_insertion_point(serialize_to_array_start:vega.Withdrawal) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -9460,26 +9093,25 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Deposit::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Deposit.id"); + "vega.Withdrawal.id"); target = stream->WriteStringMaybeAliased( 1, this->_internal_id(), target); } - // .vega.Deposit.Status status = 2 [json_name = "status"]; - if (this->status() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); - } - - // string party_id = 3 [json_name = "partyId"]; + // string party_id = 2 [json_name = "partyId"]; if (this->party_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Deposit.party_id"); + "vega.Withdrawal.party_id"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_party_id(), target); + 2, this->_internal_party_id(), target); + } + + // uint64 amount = 3 [json_name = "amount"]; + if (this->amount() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); } // string asset = 4 [json_name = "asset"]; @@ -9487,53 +9119,74 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Deposit::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_asset().data(), static_cast(this->_internal_asset().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Deposit.asset"); + "vega.Withdrawal.asset"); target = stream->WriteStringMaybeAliased( 4, this->_internal_asset(), target); } - // string amount = 5 [json_name = "amount"]; - if (this->amount().size() > 0) { + // .vega.Withdrawal.Status status = 5 [json_name = "status"]; + if (this->status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_status(), target); + } + + // string ref = 6 [json_name = "ref"]; + if (this->ref().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + this->_internal_ref().data(), static_cast(this->_internal_ref().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Deposit.amount"); + "vega.Withdrawal.ref"); target = stream->WriteStringMaybeAliased( - 5, this->_internal_amount(), target); + 6, this->_internal_ref(), target); } - // string tx_hash = 6 [json_name = "txHash"]; + // int64 expiry = 7 [json_name = "expiry"]; + if (this->expiry() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_expiry(), target); + } + + // string tx_hash = 8 [json_name = "txHash"]; if (this->tx_hash().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_tx_hash().data(), static_cast(this->_internal_tx_hash().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Deposit.tx_hash"); + "vega.Withdrawal.tx_hash"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_tx_hash(), target); + 8, this->_internal_tx_hash(), target); } - // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - if (this->credited_timestamp() != 0) { + // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + if (this->created_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_credited_timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_created_timestamp(), target); } - // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; - if (this->created_timestamp() != 0) { + // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + if (this->withdrawn_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_created_timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_withdrawn_timestamp(), target); + } + + // .vega.WithdrawExt ext = 11 [json_name = "ext"]; + if (this->has_ext()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 11, _Internal::ext(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.Deposit) + // @@protoc_insertion_point(serialize_to_array_end:vega.Withdrawal) return target; } -size_t Deposit::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Deposit) +size_t Withdrawal::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Withdrawal) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -9547,7 +9200,7 @@ size_t Deposit::ByteSizeLong() const { this->_internal_id()); } - // string party_id = 3 [json_name = "partyId"]; + // string party_id = 2 [json_name = "partyId"]; if (this->party_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -9561,35 +9214,56 @@ size_t Deposit::ByteSizeLong() const { this->_internal_asset()); } - // string amount = 5 [json_name = "amount"]; - if (this->amount().size() > 0) { + // string ref = 6 [json_name = "ref"]; + if (this->ref().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_amount()); + this->_internal_ref()); } - // string tx_hash = 6 [json_name = "txHash"]; + // string tx_hash = 8 [json_name = "txHash"]; if (this->tx_hash().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_tx_hash()); } - // int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - if (this->credited_timestamp() != 0) { + // .vega.WithdrawExt ext = 11 [json_name = "ext"]; + if (this->has_ext()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_credited_timestamp()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ext_); } - // int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + // uint64 amount = 3 [json_name = "amount"]; + if (this->amount() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_amount()); + } + + // int64 expiry = 7 [json_name = "expiry"]; + if (this->expiry() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_expiry()); + } + + // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; if (this->created_timestamp() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_created_timestamp()); } - // .vega.Deposit.Status status = 2 [json_name = "status"]; + // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + if (this->withdrawn_timestamp() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_withdrawn_timestamp()); + } + + // .vega.Withdrawal.Status status = 5 [json_name = "status"]; if (this->status() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); @@ -9604,23 +9278,23 @@ size_t Deposit::ByteSizeLong() const { return total_size; } -void Deposit::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Deposit) +void Withdrawal::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Withdrawal) GOOGLE_DCHECK_NE(&from, this); - const Deposit* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Withdrawal* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Deposit) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Withdrawal) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Deposit) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Withdrawal) MergeFrom(*source); } } -void Deposit::MergeFrom(const Deposit& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Deposit) +void Withdrawal::MergeFrom(const Withdrawal& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Withdrawal) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -9635,275 +9309,190 @@ void Deposit::MergeFrom(const Deposit& from) { if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } - if (from.amount().size() > 0) { - _internal_set_amount(from._internal_amount()); + if (from.ref().size() > 0) { + _internal_set_ref(from._internal_ref()); } if (from.tx_hash().size() > 0) { _internal_set_tx_hash(from._internal_tx_hash()); } - if (from.credited_timestamp() != 0) { - _internal_set_credited_timestamp(from._internal_credited_timestamp()); + if (from.has_ext()) { + _internal_mutable_ext()->::vega::WithdrawExt::MergeFrom(from._internal_ext()); + } + if (from.amount() != 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.expiry() != 0) { + _internal_set_expiry(from._internal_expiry()); } if (from.created_timestamp() != 0) { _internal_set_created_timestamp(from._internal_created_timestamp()); } + if (from.withdrawn_timestamp() != 0) { + _internal_set_withdrawn_timestamp(from._internal_withdrawn_timestamp()); + } if (from.status() != 0) { _internal_set_status(from._internal_status()); } } -void Deposit::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Deposit) +void Withdrawal::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Withdrawal) if (&from == this) return; Clear(); MergeFrom(from); } -void Deposit::CopyFrom(const Deposit& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Deposit) +void Withdrawal::CopyFrom(const Withdrawal& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Withdrawal) if (&from == this) return; Clear(); MergeFrom(from); } -bool Deposit::IsInitialized() const { +bool Withdrawal::IsInitialized() const { return true; } -void Deposit::InternalSwap(Deposit* other) { +void Withdrawal::InternalSwap(Withdrawal* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ref_.Swap(&other->ref_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Deposit, status_) - + sizeof(Deposit::status_) - - PROTOBUF_FIELD_OFFSET(Deposit, credited_timestamp_)>( - reinterpret_cast(&credited_timestamp_), - reinterpret_cast(&other->credited_timestamp_)); + PROTOBUF_FIELD_OFFSET(Withdrawal, status_) + + sizeof(Withdrawal::status_) + - PROTOBUF_FIELD_OFFSET(Withdrawal, ext_)>( + reinterpret_cast(&ext_), + reinterpret_cast(&other->ext_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Deposit::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Withdrawal::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class Withdrawal::_Internal { +class WithdrawExt::_Internal { public: - static const ::vega::WithdrawExt& ext(const Withdrawal* msg); + static const ::vega::Erc20WithdrawExt& erc20(const WithdrawExt* msg); }; -const ::vega::WithdrawExt& -Withdrawal::_Internal::ext(const Withdrawal* msg) { - return *msg->ext_; +const ::vega::Erc20WithdrawExt& +WithdrawExt::_Internal::erc20(const WithdrawExt* msg) { + return *msg->ext_.erc20_; } -Withdrawal::Withdrawal(::PROTOBUF_NAMESPACE_ID::Arena* arena) +void WithdrawExt::set_allocated_erc20(::vega::Erc20WithdrawExt* erc20) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_ext(); + if (erc20) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(erc20); + if (message_arena != submessage_arena) { + erc20 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, erc20, submessage_arena); + } + set_has_erc20(); + ext_.erc20_ = erc20; + } + // @@protoc_insertion_point(field_set_allocated:vega.WithdrawExt.erc20) +} +WithdrawExt::WithdrawExt(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Withdrawal) + // @@protoc_insertion_point(arena_constructor:vega.WithdrawExt) } -Withdrawal::Withdrawal(const Withdrawal& from) +WithdrawExt::WithdrawExt(const WithdrawExt& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); - } - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_asset().empty()) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), - GetArena()); - } - ref_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ref().empty()) { - ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ref(), - GetArena()); - } - tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_tx_hash().empty()) { - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx_hash(), - GetArena()); - } - if (from._internal_has_ext()) { - ext_ = new ::vega::WithdrawExt(*from.ext_); - } else { - ext_ = nullptr; + clear_has_ext(); + switch (from.ext_case()) { + case kErc20: { + _internal_mutable_erc20()->::vega::Erc20WithdrawExt::MergeFrom(from._internal_erc20()); + break; + } + case EXT_NOT_SET: { + break; + } } - ::memcpy(&amount_, &from.amount_, - static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&amount_)) + sizeof(status_)); - // @@protoc_insertion_point(copy_constructor:vega.Withdrawal) + // @@protoc_insertion_point(copy_constructor:vega.WithdrawExt) } -void Withdrawal::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Withdrawal_vega_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ref_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ext_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&ext_)) + sizeof(status_)); +void WithdrawExt::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawExt_vega_2eproto.base); + clear_has_ext(); } -Withdrawal::~Withdrawal() { - // @@protoc_insertion_point(destructor:vega.Withdrawal) +WithdrawExt::~WithdrawExt() { + // @@protoc_insertion_point(destructor:vega.WithdrawExt) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Withdrawal::SharedDtor() { +void WithdrawExt::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ref_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete ext_; + if (has_ext()) { + clear_ext(); + } } -void Withdrawal::ArenaDtor(void* object) { - Withdrawal* _this = reinterpret_cast< Withdrawal* >(object); +void WithdrawExt::ArenaDtor(void* object) { + WithdrawExt* _this = reinterpret_cast< WithdrawExt* >(object); (void)_this; } -void Withdrawal::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void WithdrawExt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Withdrawal::SetCachedSize(int size) const { +void WithdrawExt::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Withdrawal& Withdrawal::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Withdrawal_vega_2eproto.base); +const WithdrawExt& WithdrawExt::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawExt_vega_2eproto.base); return *internal_default_instance(); } -void Withdrawal::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Withdrawal) +void WithdrawExt::clear_ext() { +// @@protoc_insertion_point(one_of_clear_start:vega.WithdrawExt) + switch (ext_case()) { + case kErc20: { + if (GetArena() == nullptr) { + delete ext_.erc20_; + } + break; + } + case EXT_NOT_SET: { + break; + } + } + _oneof_case_[0] = EXT_NOT_SET; +} + + +void WithdrawExt::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.WithdrawExt) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmpty(); - party_id_.ClearToEmpty(); - asset_.ClearToEmpty(); - ref_.ClearToEmpty(); - tx_hash_.ClearToEmpty(); - if (GetArena() == nullptr && ext_ != nullptr) { - delete ext_; - } - ext_ = nullptr; - ::memset(&amount_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&amount_)) + sizeof(status_)); + clear_ext(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Withdrawal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* WithdrawExt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id"]; + // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string party_id = 2 [json_name = "partyId"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_party_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.party_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 amount = 3 [json_name = "amount"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string asset = 4 [json_name = "asset"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_asset(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.asset")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.Withdrawal.Status status = 5 [json_name = "status"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_status(static_cast<::vega::Withdrawal_Status>(val)); - } else goto handle_unusual; - continue; - // string ref = 6 [json_name = "ref"]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - auto str = _internal_mutable_ref(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.ref")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 expiry = 7 [json_name = "expiry"]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - expiry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string tx_hash = 8 [json_name = "txHash"]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - auto str = _internal_mutable_tx_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.tx_hash")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - created_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - withdrawn_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.WithdrawExt ext = 11 [json_name = "ext"]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_ext(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_erc20(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -9929,193 +9518,48 @@ const char* Withdrawal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Withdrawal::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* WithdrawExt::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Withdrawal) + // @@protoc_insertion_point(serialize_to_array_start:vega.WithdrawExt) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Withdrawal.id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Withdrawal.party_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_party_id(), target); - } - - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); - } - - // string asset = 4 [json_name = "asset"]; - if (this->asset().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_asset().data(), static_cast(this->_internal_asset().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Withdrawal.asset"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_asset(), target); - } - - // .vega.Withdrawal.Status status = 5 [json_name = "status"]; - if (this->status() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_status(), target); - } - - // string ref = 6 [json_name = "ref"]; - if (this->ref().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_ref().data(), static_cast(this->_internal_ref().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Withdrawal.ref"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_ref(), target); - } - - // int64 expiry = 7 [json_name = "expiry"]; - if (this->expiry() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_expiry(), target); - } - - // string tx_hash = 8 [json_name = "txHash"]; - if (this->tx_hash().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_tx_hash().data(), static_cast(this->_internal_tx_hash().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Withdrawal.tx_hash"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_tx_hash(), target); - } - - // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - if (this->created_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_created_timestamp(), target); - } - - // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - if (this->withdrawn_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_withdrawn_timestamp(), target); - } - - // .vega.WithdrawExt ext = 11 [json_name = "ext"]; - if (this->has_ext()) { + // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + if (_internal_has_erc20()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 11, _Internal::ext(this), target, stream); + 1, _Internal::erc20(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.Withdrawal) + // @@protoc_insertion_point(serialize_to_array_end:vega.WithdrawExt) return target; } -size_t Withdrawal::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Withdrawal) +size_t WithdrawExt::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.WithdrawExt) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string asset = 4 [json_name = "asset"]; - if (this->asset().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); - } - - // string ref = 6 [json_name = "ref"]; - if (this->ref().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ref()); - } - - // string tx_hash = 8 [json_name = "txHash"]; - if (this->tx_hash().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_tx_hash()); - } - - // .vega.WithdrawExt ext = 11 [json_name = "ext"]; - if (this->has_ext()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ext_); - } - - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); - } - - // int64 expiry = 7 [json_name = "expiry"]; - if (this->expiry() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_expiry()); - } - - // int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - if (this->created_timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_created_timestamp()); - } - - // int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - if (this->withdrawn_timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_withdrawn_timestamp()); - } - - // .vega.Withdrawal.Status status = 5 [json_name = "status"]; - if (this->status() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + switch (ext_case()) { + // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + case kErc20: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ext_.erc20_); + break; + } + case EXT_NOT_SET: { + break; + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -10125,221 +9569,146 @@ size_t Withdrawal::ByteSizeLong() const { return total_size; } -void Withdrawal::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Withdrawal) +void WithdrawExt::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.WithdrawExt) GOOGLE_DCHECK_NE(&from, this); - const Withdrawal* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const WithdrawExt* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Withdrawal) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.WithdrawExt) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Withdrawal) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.WithdrawExt) MergeFrom(*source); } } -void Withdrawal::MergeFrom(const Withdrawal& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Withdrawal) +void WithdrawExt::MergeFrom(const WithdrawExt& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.WithdrawExt) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); - } - if (from.party_id().size() > 0) { - _internal_set_party_id(from._internal_party_id()); - } - if (from.asset().size() > 0) { - _internal_set_asset(from._internal_asset()); - } - if (from.ref().size() > 0) { - _internal_set_ref(from._internal_ref()); - } - if (from.tx_hash().size() > 0) { - _internal_set_tx_hash(from._internal_tx_hash()); - } - if (from.has_ext()) { - _internal_mutable_ext()->::vega::WithdrawExt::MergeFrom(from._internal_ext()); - } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } - if (from.expiry() != 0) { - _internal_set_expiry(from._internal_expiry()); - } - if (from.created_timestamp() != 0) { - _internal_set_created_timestamp(from._internal_created_timestamp()); - } - if (from.withdrawn_timestamp() != 0) { - _internal_set_withdrawn_timestamp(from._internal_withdrawn_timestamp()); - } - if (from.status() != 0) { - _internal_set_status(from._internal_status()); + switch (from.ext_case()) { + case kErc20: { + _internal_mutable_erc20()->::vega::Erc20WithdrawExt::MergeFrom(from._internal_erc20()); + break; + } + case EXT_NOT_SET: { + break; + } } } -void Withdrawal::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Withdrawal) +void WithdrawExt::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.WithdrawExt) if (&from == this) return; Clear(); MergeFrom(from); } -void Withdrawal::CopyFrom(const Withdrawal& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Withdrawal) +void WithdrawExt::CopyFrom(const WithdrawExt& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.WithdrawExt) if (&from == this) return; Clear(); MergeFrom(from); } -bool Withdrawal::IsInitialized() const { +bool WithdrawExt::IsInitialized() const { return true; } -void Withdrawal::InternalSwap(Withdrawal* other) { +void WithdrawExt::InternalSwap(WithdrawExt* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ref_.Swap(&other->ref_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Withdrawal, status_) - + sizeof(Withdrawal::status_) - - PROTOBUF_FIELD_OFFSET(Withdrawal, ext_)>( - reinterpret_cast(&ext_), - reinterpret_cast(&other->ext_)); + swap(ext_, other->ext_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata Withdrawal::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata WithdrawExt::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class WithdrawExt::_Internal { +class Erc20WithdrawExt::_Internal { public: - static const ::vega::Erc20WithdrawExt& erc20(const WithdrawExt* msg); }; -const ::vega::Erc20WithdrawExt& -WithdrawExt::_Internal::erc20(const WithdrawExt* msg) { - return *msg->ext_.erc20_; -} -void WithdrawExt::set_allocated_erc20(::vega::Erc20WithdrawExt* erc20) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_ext(); - if (erc20) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(erc20); - if (message_arena != submessage_arena) { - erc20 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, erc20, submessage_arena); - } - set_has_erc20(); - ext_.erc20_ = erc20; - } - // @@protoc_insertion_point(field_set_allocated:vega.WithdrawExt.erc20) -} -WithdrawExt::WithdrawExt(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Erc20WithdrawExt::Erc20WithdrawExt(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.WithdrawExt) + // @@protoc_insertion_point(arena_constructor:vega.Erc20WithdrawExt) } -WithdrawExt::WithdrawExt(const WithdrawExt& from) +Erc20WithdrawExt::Erc20WithdrawExt(const Erc20WithdrawExt& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_ext(); - switch (from.ext_case()) { - case kErc20: { - _internal_mutable_erc20()->::vega::Erc20WithdrawExt::MergeFrom(from._internal_erc20()); - break; - } - case EXT_NOT_SET: { - break; - } + receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_receiver_address().empty()) { + receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_receiver_address(), + GetArena()); } - // @@protoc_insertion_point(copy_constructor:vega.WithdrawExt) + // @@protoc_insertion_point(copy_constructor:vega.Erc20WithdrawExt) } -void WithdrawExt::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawExt_vega_2eproto.base); - clear_has_ext(); +void Erc20WithdrawExt::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Erc20WithdrawExt_vega_2eproto.base); + receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -WithdrawExt::~WithdrawExt() { - // @@protoc_insertion_point(destructor:vega.WithdrawExt) +Erc20WithdrawExt::~Erc20WithdrawExt() { + // @@protoc_insertion_point(destructor:vega.Erc20WithdrawExt) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void WithdrawExt::SharedDtor() { +void Erc20WithdrawExt::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (has_ext()) { - clear_ext(); - } + receiver_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void WithdrawExt::ArenaDtor(void* object) { - WithdrawExt* _this = reinterpret_cast< WithdrawExt* >(object); +void Erc20WithdrawExt::ArenaDtor(void* object) { + Erc20WithdrawExt* _this = reinterpret_cast< Erc20WithdrawExt* >(object); (void)_this; } -void WithdrawExt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Erc20WithdrawExt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void WithdrawExt::SetCachedSize(int size) const { +void Erc20WithdrawExt::SetCachedSize(int size) const { _cached_size_.Set(size); } -const WithdrawExt& WithdrawExt::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WithdrawExt_vega_2eproto.base); +const Erc20WithdrawExt& Erc20WithdrawExt::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Erc20WithdrawExt_vega_2eproto.base); return *internal_default_instance(); } -void WithdrawExt::clear_ext() { -// @@protoc_insertion_point(one_of_clear_start:vega.WithdrawExt) - switch (ext_case()) { - case kErc20: { - if (GetArena() == nullptr) { - delete ext_.erc20_; - } - break; - } - case EXT_NOT_SET: { - break; - } - } - _oneof_case_[0] = EXT_NOT_SET; -} - - -void WithdrawExt::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.WithdrawExt) +void Erc20WithdrawExt::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Erc20WithdrawExt) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_ext(); + receiver_address_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* WithdrawExt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Erc20WithdrawExt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + // string receiver_address = 1 [json_name = "receiverAddress"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_erc20(), ptr); + auto str = _internal_mutable_receiver_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Erc20WithdrawExt.receiver_address")); CHK_(ptr); } else goto handle_unusual; continue; @@ -10365,48 +9734,45 @@ const char* WithdrawExt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* WithdrawExt::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Erc20WithdrawExt::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.WithdrawExt) + // @@protoc_insertion_point(serialize_to_array_start:vega.Erc20WithdrawExt) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - if (_internal_has_erc20()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::erc20(this), target, stream); + // string receiver_address = 1 [json_name = "receiverAddress"]; + if (this->receiver_address().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_receiver_address().data(), static_cast(this->_internal_receiver_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Erc20WithdrawExt.receiver_address"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_receiver_address(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.WithdrawExt) + // @@protoc_insertion_point(serialize_to_array_end:vega.Erc20WithdrawExt) return target; } -size_t WithdrawExt::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.WithdrawExt) +size_t Erc20WithdrawExt::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Erc20WithdrawExt) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (ext_case()) { - // .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - case kErc20: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ext_.erc20_); - break; - } - case EXT_NOT_SET: { - break; - } + // string receiver_address = 1 [json_name = "receiverAddress"]; + if (this->receiver_address().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_receiver_address()); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -10416,265 +9782,52 @@ size_t WithdrawExt::ByteSizeLong() const { return total_size; } -void WithdrawExt::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.WithdrawExt) +void Erc20WithdrawExt::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Erc20WithdrawExt) GOOGLE_DCHECK_NE(&from, this); - const WithdrawExt* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Erc20WithdrawExt* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.WithdrawExt) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Erc20WithdrawExt) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.WithdrawExt) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Erc20WithdrawExt) MergeFrom(*source); } } -void WithdrawExt::MergeFrom(const WithdrawExt& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.WithdrawExt) +void Erc20WithdrawExt::MergeFrom(const Erc20WithdrawExt& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Erc20WithdrawExt) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - switch (from.ext_case()) { - case kErc20: { - _internal_mutable_erc20()->::vega::Erc20WithdrawExt::MergeFrom(from._internal_erc20()); - break; - } - case EXT_NOT_SET: { - break; - } + if (from.receiver_address().size() > 0) { + _internal_set_receiver_address(from._internal_receiver_address()); } } -void WithdrawExt::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.WithdrawExt) +void Erc20WithdrawExt::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Erc20WithdrawExt) if (&from == this) return; Clear(); MergeFrom(from); } -void WithdrawExt::CopyFrom(const WithdrawExt& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.WithdrawExt) +void Erc20WithdrawExt::CopyFrom(const Erc20WithdrawExt& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Erc20WithdrawExt) if (&from == this) return; Clear(); MergeFrom(from); } -bool WithdrawExt::IsInitialized() const { +bool Erc20WithdrawExt::IsInitialized() const { return true; } -void WithdrawExt::InternalSwap(WithdrawExt* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(ext_, other->ext_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WithdrawExt::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class Erc20WithdrawExt::_Internal { - public: -}; - -Erc20WithdrawExt::Erc20WithdrawExt(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Erc20WithdrawExt) -} -Erc20WithdrawExt::Erc20WithdrawExt(const Erc20WithdrawExt& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_receiver_address().empty()) { - receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_receiver_address(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:vega.Erc20WithdrawExt) -} - -void Erc20WithdrawExt::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Erc20WithdrawExt_vega_2eproto.base); - receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -Erc20WithdrawExt::~Erc20WithdrawExt() { - // @@protoc_insertion_point(destructor:vega.Erc20WithdrawExt) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Erc20WithdrawExt::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - receiver_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Erc20WithdrawExt::ArenaDtor(void* object) { - Erc20WithdrawExt* _this = reinterpret_cast< Erc20WithdrawExt* >(object); - (void)_this; -} -void Erc20WithdrawExt::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Erc20WithdrawExt::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Erc20WithdrawExt& Erc20WithdrawExt::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Erc20WithdrawExt_vega_2eproto.base); - return *internal_default_instance(); -} - - -void Erc20WithdrawExt::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Erc20WithdrawExt) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - receiver_address_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Erc20WithdrawExt::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string receiver_address = 1 [json_name = "receiverAddress"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_receiver_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Erc20WithdrawExt.receiver_address")); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Erc20WithdrawExt::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Erc20WithdrawExt) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string receiver_address = 1 [json_name = "receiverAddress"]; - if (this->receiver_address().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_receiver_address().data(), static_cast(this->_internal_receiver_address().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Erc20WithdrawExt.receiver_address"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_receiver_address(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:vega.Erc20WithdrawExt) - return target; -} - -size_t Erc20WithdrawExt::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Erc20WithdrawExt) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string receiver_address = 1 [json_name = "receiverAddress"]; - if (this->receiver_address().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_receiver_address()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Erc20WithdrawExt::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Erc20WithdrawExt) - GOOGLE_DCHECK_NE(&from, this); - const Erc20WithdrawExt* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Erc20WithdrawExt) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Erc20WithdrawExt) - MergeFrom(*source); - } -} - -void Erc20WithdrawExt::MergeFrom(const Erc20WithdrawExt& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Erc20WithdrawExt) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.receiver_address().size() > 0) { - _internal_set_receiver_address(from._internal_receiver_address()); - } -} - -void Erc20WithdrawExt::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Erc20WithdrawExt) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Erc20WithdrawExt::CopyFrom(const Erc20WithdrawExt& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Erc20WithdrawExt) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Erc20WithdrawExt::IsInitialized() const { - return true; -} - -void Erc20WithdrawExt::InternalSwap(Erc20WithdrawExt* other) { +void Erc20WithdrawExt::InternalSwap(Erc20WithdrawExt* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); receiver_address_.Swap(&other->receiver_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -14050,180 +13203,1895 @@ void MarketData::MergeFrom(const MarketData& from) { if (from.open_interest() != 0) { _internal_set_open_interest(from._internal_open_interest()); } - if (from.auction_end() != 0) { - _internal_set_auction_end(from._internal_auction_end()); + if (from.auction_end() != 0) { + _internal_set_auction_end(from._internal_auction_end()); + } + if (from.auction_start() != 0) { + _internal_set_auction_start(from._internal_auction_start()); + } + if (from.indicative_price() != 0) { + _internal_set_indicative_price(from._internal_indicative_price()); + } + if (from.indicative_volume() != 0) { + _internal_set_indicative_volume(from._internal_indicative_volume()); + } + if (from.market_trading_mode() != 0) { + _internal_set_market_trading_mode(from._internal_market_trading_mode()); + } + if (from.trigger() != 0) { + _internal_set_trigger(from._internal_trigger()); + } + if (from.extension_trigger() != 0) { + _internal_set_extension_trigger(from._internal_extension_trigger()); + } +} + +void MarketData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.MarketData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MarketData::CopyFrom(const MarketData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.MarketData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MarketData::IsInitialized() const { + return true; +} + +void MarketData::InternalSwap(MarketData* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + price_monitoring_bounds_.InternalSwap(&other->price_monitoring_bounds_); + liquidity_provider_fee_share_.InternalSwap(&other->liquidity_provider_fee_share_); + market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + target_stake_.Swap(&other->target_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + supplied_stake_.Swap(&other->supplied_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + market_value_proxy_.Swap(&other->market_value_proxy_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MarketData, extension_trigger_) + + sizeof(MarketData::extension_trigger_) + - PROTOBUF_FIELD_OFFSET(MarketData, mark_price_)>( + reinterpret_cast(&mark_price_), + reinterpret_cast(&other->mark_price_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MarketData::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class LiquidityProviderFeeShare::_Internal { + public: +}; + +LiquidityProviderFeeShare::LiquidityProviderFeeShare(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.LiquidityProviderFeeShare) +} +LiquidityProviderFeeShare::LiquidityProviderFeeShare(const LiquidityProviderFeeShare& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + equity_like_share_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_equity_like_share().empty()) { + equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_equity_like_share(), + GetArena()); + } + average_entry_valuation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_average_entry_valuation().empty()) { + average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_average_entry_valuation(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.LiquidityProviderFeeShare) +} + +void LiquidityProviderFeeShare::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProviderFeeShare_vega_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + equity_like_share_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + average_entry_valuation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +LiquidityProviderFeeShare::~LiquidityProviderFeeShare() { + // @@protoc_insertion_point(destructor:vega.LiquidityProviderFeeShare) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void LiquidityProviderFeeShare::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + equity_like_share_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + average_entry_valuation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void LiquidityProviderFeeShare::ArenaDtor(void* object) { + LiquidityProviderFeeShare* _this = reinterpret_cast< LiquidityProviderFeeShare* >(object); + (void)_this; +} +void LiquidityProviderFeeShare::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void LiquidityProviderFeeShare::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiquidityProviderFeeShare& LiquidityProviderFeeShare::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProviderFeeShare_vega_2eproto.base); + return *internal_default_instance(); +} + + +void LiquidityProviderFeeShare::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.LiquidityProviderFeeShare) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + equity_like_share_.ClearToEmpty(); + average_entry_valuation_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LiquidityProviderFeeShare::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string equity_like_share = 2 [json_name = "equityLikeShare"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_equity_like_share(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.equity_like_share")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_average_entry_valuation(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.average_entry_valuation")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProviderFeeShare::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityProviderFeeShare) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProviderFeeShare.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string equity_like_share = 2 [json_name = "equityLikeShare"]; + if (this->equity_like_share().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_equity_like_share().data(), static_cast(this->_internal_equity_like_share().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProviderFeeShare.equity_like_share"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_equity_like_share(), target); + } + + // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + if (this->average_entry_valuation().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_average_entry_valuation().data(), static_cast(this->_internal_average_entry_valuation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProviderFeeShare.average_entry_valuation"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_average_entry_valuation(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityProviderFeeShare) + return target; +} + +size_t LiquidityProviderFeeShare::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityProviderFeeShare) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string equity_like_share = 2 [json_name = "equityLikeShare"]; + if (this->equity_like_share().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_equity_like_share()); + } + + // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + if (this->average_entry_valuation().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_average_entry_valuation()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiquidityProviderFeeShare::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityProviderFeeShare) + GOOGLE_DCHECK_NE(&from, this); + const LiquidityProviderFeeShare* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityProviderFeeShare) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityProviderFeeShare) + MergeFrom(*source); + } +} + +void LiquidityProviderFeeShare::MergeFrom(const LiquidityProviderFeeShare& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityProviderFeeShare) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.equity_like_share().size() > 0) { + _internal_set_equity_like_share(from._internal_equity_like_share()); + } + if (from.average_entry_valuation().size() > 0) { + _internal_set_average_entry_valuation(from._internal_average_entry_valuation()); + } +} + +void LiquidityProviderFeeShare::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityProviderFeeShare) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiquidityProviderFeeShare::CopyFrom(const LiquidityProviderFeeShare& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityProviderFeeShare) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiquidityProviderFeeShare::IsInitialized() const { + return true; +} + +void LiquidityProviderFeeShare::InternalSwap(LiquidityProviderFeeShare* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + equity_like_share_.Swap(&other->equity_like_share_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + average_entry_valuation_.Swap(&other->average_entry_valuation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProviderFeeShare::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class PriceMonitoringBounds::_Internal { + public: + static const ::vega::PriceMonitoringTrigger& trigger(const PriceMonitoringBounds* msg); +}; + +const ::vega::PriceMonitoringTrigger& +PriceMonitoringBounds::_Internal::trigger(const PriceMonitoringBounds* msg) { + return *msg->trigger_; +} +void PriceMonitoringBounds::clear_trigger() { + if (GetArena() == nullptr && trigger_ != nullptr) { + delete trigger_; + } + trigger_ = nullptr; +} +PriceMonitoringBounds::PriceMonitoringBounds(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.PriceMonitoringBounds) +} +PriceMonitoringBounds::PriceMonitoringBounds(const PriceMonitoringBounds& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_trigger()) { + trigger_ = new ::vega::PriceMonitoringTrigger(*from.trigger_); + } else { + trigger_ = nullptr; + } + ::memcpy(&min_valid_price_, &from.min_valid_price_, + static_cast(reinterpret_cast(&reference_price_) - + reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); + // @@protoc_insertion_point(copy_constructor:vega.PriceMonitoringBounds) +} + +void PriceMonitoringBounds::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PriceMonitoringBounds_vega_2eproto.base); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&trigger_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&reference_price_) - + reinterpret_cast(&trigger_)) + sizeof(reference_price_)); +} + +PriceMonitoringBounds::~PriceMonitoringBounds() { + // @@protoc_insertion_point(destructor:vega.PriceMonitoringBounds) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void PriceMonitoringBounds::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete trigger_; +} + +void PriceMonitoringBounds::ArenaDtor(void* object) { + PriceMonitoringBounds* _this = reinterpret_cast< PriceMonitoringBounds* >(object); + (void)_this; +} +void PriceMonitoringBounds::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PriceMonitoringBounds::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PriceMonitoringBounds& PriceMonitoringBounds::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PriceMonitoringBounds_vega_2eproto.base); + return *internal_default_instance(); +} + + +void PriceMonitoringBounds::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.PriceMonitoringBounds) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArena() == nullptr && trigger_ != nullptr) { + delete trigger_; + } + trigger_ = nullptr; + ::memset(&min_valid_price_, 0, static_cast( + reinterpret_cast(&reference_price_) - + reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PriceMonitoringBounds::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + min_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + max_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_trigger(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // double reference_price = 4 [json_name = "referencePrice"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { + reference_price_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PriceMonitoringBounds::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.PriceMonitoringBounds) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + if (this->min_valid_price() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_min_valid_price(), target); + } + + // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + if (this->max_valid_price() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_max_valid_price(), target); + } + + // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + if (this->has_trigger()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::trigger(this), target, stream); + } + + // double reference_price = 4 [json_name = "referencePrice"]; + if (!(this->reference_price() <= 0 && this->reference_price() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_reference_price(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.PriceMonitoringBounds) + return target; +} + +size_t PriceMonitoringBounds::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.PriceMonitoringBounds) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + if (this->has_trigger()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *trigger_); + } + + // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + if (this->min_valid_price() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_min_valid_price()); + } + + // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + if (this->max_valid_price() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_max_valid_price()); + } + + // double reference_price = 4 [json_name = "referencePrice"]; + if (!(this->reference_price() <= 0 && this->reference_price() >= 0)) { + total_size += 1 + 8; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PriceMonitoringBounds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.PriceMonitoringBounds) + GOOGLE_DCHECK_NE(&from, this); + const PriceMonitoringBounds* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.PriceMonitoringBounds) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.PriceMonitoringBounds) + MergeFrom(*source); + } +} + +void PriceMonitoringBounds::MergeFrom(const PriceMonitoringBounds& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.PriceMonitoringBounds) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_trigger()) { + _internal_mutable_trigger()->::vega::PriceMonitoringTrigger::MergeFrom(from._internal_trigger()); + } + if (from.min_valid_price() != 0) { + _internal_set_min_valid_price(from._internal_min_valid_price()); + } + if (from.max_valid_price() != 0) { + _internal_set_max_valid_price(from._internal_max_valid_price()); + } + if (!(from.reference_price() <= 0 && from.reference_price() >= 0)) { + _internal_set_reference_price(from._internal_reference_price()); + } +} + +void PriceMonitoringBounds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.PriceMonitoringBounds) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PriceMonitoringBounds::CopyFrom(const PriceMonitoringBounds& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.PriceMonitoringBounds) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PriceMonitoringBounds::IsInitialized() const { + return true; +} + +void PriceMonitoringBounds::InternalSwap(PriceMonitoringBounds* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PriceMonitoringBounds, reference_price_) + + sizeof(PriceMonitoringBounds::reference_price_) + - PROTOBUF_FIELD_OFFSET(PriceMonitoringBounds, trigger_)>( + reinterpret_cast(&trigger_), + reinterpret_cast(&other->trigger_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PriceMonitoringBounds::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ErrorDetail::_Internal { + public: +}; + +ErrorDetail::ErrorDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.ErrorDetail) +} +ErrorDetail::ErrorDetail(const ErrorDetail& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_message().empty()) { + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), + GetArena()); + } + inner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_inner().empty()) { + inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_inner(), + GetArena()); + } + code_ = from.code_; + // @@protoc_insertion_point(copy_constructor:vega.ErrorDetail) +} + +void ErrorDetail::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ErrorDetail_vega_2eproto.base); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + inner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + code_ = 0; +} + +ErrorDetail::~ErrorDetail() { + // @@protoc_insertion_point(destructor:vega.ErrorDetail) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ErrorDetail::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + inner_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ErrorDetail::ArenaDtor(void* object) { + ErrorDetail* _this = reinterpret_cast< ErrorDetail* >(object); + (void)_this; +} +void ErrorDetail::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ErrorDetail::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ErrorDetail& ErrorDetail::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ErrorDetail_vega_2eproto.base); + return *internal_default_instance(); +} + + +void ErrorDetail::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.ErrorDetail) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_.ClearToEmpty(); + inner_.ClearToEmpty(); + code_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorDetail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int32 code = 1 [json_name = "code"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.ErrorDetail.message")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string inner = 3 [json_name = "inner"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_inner(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.ErrorDetail.inner")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ErrorDetail::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.ErrorDetail) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 code = 1 [json_name = "code"]; + if (this->code() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_code(), target); + } + + // string message = 2 [json_name = "message"]; + if (this->message().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.ErrorDetail.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); + } + + // string inner = 3 [json_name = "inner"]; + if (this->inner().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_inner().data(), static_cast(this->_internal_inner().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.ErrorDetail.inner"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_inner(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.ErrorDetail) + return target; +} + +size_t ErrorDetail::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.ErrorDetail) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string message = 2 [json_name = "message"]; + if (this->message().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // string inner = 3 [json_name = "inner"]; + if (this->inner().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_inner()); + } + + // int32 code = 1 [json_name = "code"]; + if (this->code() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_code()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ErrorDetail::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.ErrorDetail) + GOOGLE_DCHECK_NE(&from, this); + const ErrorDetail* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.ErrorDetail) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.ErrorDetail) + MergeFrom(*source); + } +} + +void ErrorDetail::MergeFrom(const ErrorDetail& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.ErrorDetail) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.message().size() > 0) { + _internal_set_message(from._internal_message()); + } + if (from.inner().size() > 0) { + _internal_set_inner(from._internal_inner()); + } + if (from.code() != 0) { + _internal_set_code(from._internal_code()); + } +} + +void ErrorDetail::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.ErrorDetail) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ErrorDetail::CopyFrom(const ErrorDetail& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.ErrorDetail) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorDetail::IsInitialized() const { + return true; +} + +void ErrorDetail::InternalSwap(ErrorDetail* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + inner_.Swap(&other->inner_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(code_, other->code_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ErrorDetail::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class NetworkParameter::_Internal { + public: +}; + +NetworkParameter::NetworkParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.NetworkParameter) +} +NetworkParameter::NetworkParameter(const NetworkParameter& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArena()); + } + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_value().empty()) { + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_value(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.NetworkParameter) +} + +void NetworkParameter::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NetworkParameter_vega_2eproto.base); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +NetworkParameter::~NetworkParameter() { + // @@protoc_insertion_point(destructor:vega.NetworkParameter) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void NetworkParameter::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void NetworkParameter::ArenaDtor(void* object) { + NetworkParameter* _this = reinterpret_cast< NetworkParameter* >(object); + (void)_this; +} +void NetworkParameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void NetworkParameter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NetworkParameter& NetworkParameter::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetworkParameter_vega_2eproto.base); + return *internal_default_instance(); +} + + +void NetworkParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.NetworkParameter) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmpty(); + value_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NetworkParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NetworkParameter.key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NetworkParameter.value")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* NetworkParameter::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.NetworkParameter) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1 [json_name = "key"]; + if (this->key().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.NetworkParameter.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // string value = 2 [json_name = "value"]; + if (this->value().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.NetworkParameter.value"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.NetworkParameter) + return target; +} + +size_t NetworkParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.NetworkParameter) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1 [json_name = "key"]; + if (this->key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + // string value = 2 [json_name = "value"]; + if (this->value().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NetworkParameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.NetworkParameter) + GOOGLE_DCHECK_NE(&from, this); + const NetworkParameter* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.NetworkParameter) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.NetworkParameter) + MergeFrom(*source); + } +} + +void NetworkParameter::MergeFrom(const NetworkParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.NetworkParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + _internal_set_key(from._internal_key()); + } + if (from.value().size() > 0) { + _internal_set_value(from._internal_value()); + } +} + +void NetworkParameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.NetworkParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetworkParameter::CopyFrom(const NetworkParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.NetworkParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetworkParameter::IsInitialized() const { + return true; +} + +void NetworkParameter::InternalSwap(NetworkParameter* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NetworkParameter::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class LiquidityOrder::_Internal { + public: +}; + +LiquidityOrder::LiquidityOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.LiquidityOrder) +} +LiquidityOrder::LiquidityOrder(const LiquidityOrder& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&reference_, &from.reference_, + static_cast(reinterpret_cast(&offset_) - + reinterpret_cast(&reference_)) + sizeof(offset_)); + // @@protoc_insertion_point(copy_constructor:vega.LiquidityOrder) +} + +void LiquidityOrder::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&reference_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&offset_) - + reinterpret_cast(&reference_)) + sizeof(offset_)); +} + +LiquidityOrder::~LiquidityOrder() { + // @@protoc_insertion_point(destructor:vega.LiquidityOrder) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void LiquidityOrder::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void LiquidityOrder::ArenaDtor(void* object) { + LiquidityOrder* _this = reinterpret_cast< LiquidityOrder* >(object); + (void)_this; +} +void LiquidityOrder::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void LiquidityOrder::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiquidityOrder& LiquidityOrder::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityOrder_vega_2eproto.base); + return *internal_default_instance(); +} + + +void LiquidityOrder::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.LiquidityOrder) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&reference_, 0, static_cast( + reinterpret_cast(&offset_) - + reinterpret_cast(&reference_)) + sizeof(offset_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LiquidityOrder::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .vega.PeggedReference reference = 1 [json_name = "reference"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_reference(static_cast<::vega::PeggedReference>(val)); + } else goto handle_unusual; + continue; + // uint32 proportion = 2 [json_name = "proportion"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + proportion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 offset = 3 [json_name = "offset"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* LiquidityOrder::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityOrder) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .vega.PeggedReference reference = 1 [json_name = "reference"]; + if (this->reference() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_reference(), target); + } + + // uint32 proportion = 2 [json_name = "proportion"]; + if (this->proportion() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_proportion(), target); + } + + // int64 offset = 3 [json_name = "offset"]; + if (this->offset() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_offset(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityOrder) + return target; +} + +size_t LiquidityOrder::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityOrder) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .vega.PeggedReference reference = 1 [json_name = "reference"]; + if (this->reference() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reference()); + } + + // uint32 proportion = 2 [json_name = "proportion"]; + if (this->proportion() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_proportion()); + } + + // int64 offset = 3 [json_name = "offset"]; + if (this->offset() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_offset()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiquidityOrder::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityOrder) + GOOGLE_DCHECK_NE(&from, this); + const LiquidityOrder* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityOrder) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityOrder) + MergeFrom(*source); + } +} + +void LiquidityOrder::MergeFrom(const LiquidityOrder& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityOrder) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.reference() != 0) { + _internal_set_reference(from._internal_reference()); + } + if (from.proportion() != 0) { + _internal_set_proportion(from._internal_proportion()); + } + if (from.offset() != 0) { + _internal_set_offset(from._internal_offset()); + } +} + +void LiquidityOrder::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityOrder) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiquidityOrder::CopyFrom(const LiquidityOrder& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityOrder) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiquidityOrder::IsInitialized() const { + return true; +} + +void LiquidityOrder::InternalSwap(LiquidityOrder* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LiquidityOrder, offset_) + + sizeof(LiquidityOrder::offset_) + - PROTOBUF_FIELD_OFFSET(LiquidityOrder, reference_)>( + reinterpret_cast(&reference_), + reinterpret_cast(&other->reference_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LiquidityOrder::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class LiquidityOrderReference::_Internal { + public: + static const ::vega::LiquidityOrder& liquidity_order(const LiquidityOrderReference* msg); +}; + +const ::vega::LiquidityOrder& +LiquidityOrderReference::_Internal::liquidity_order(const LiquidityOrderReference* msg) { + return *msg->liquidity_order_; +} +LiquidityOrderReference::LiquidityOrderReference(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.LiquidityOrderReference) +} +LiquidityOrderReference::LiquidityOrderReference(const LiquidityOrderReference& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_order_id().empty()) { + order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), + GetArena()); + } + if (from._internal_has_liquidity_order()) { + liquidity_order_ = new ::vega::LiquidityOrder(*from.liquidity_order_); + } else { + liquidity_order_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:vega.LiquidityOrderReference) +} + +void LiquidityOrderReference::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityOrderReference_vega_2eproto.base); + order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + liquidity_order_ = nullptr; +} + +LiquidityOrderReference::~LiquidityOrderReference() { + // @@protoc_insertion_point(destructor:vega.LiquidityOrderReference) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void LiquidityOrderReference::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete liquidity_order_; +} + +void LiquidityOrderReference::ArenaDtor(void* object) { + LiquidityOrderReference* _this = reinterpret_cast< LiquidityOrderReference* >(object); + (void)_this; +} +void LiquidityOrderReference::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void LiquidityOrderReference::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiquidityOrderReference& LiquidityOrderReference::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityOrderReference_vega_2eproto.base); + return *internal_default_instance(); +} + + +void LiquidityOrderReference::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.LiquidityOrderReference) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + order_id_.ClearToEmpty(); + if (GetArena() == nullptr && liquidity_order_ != nullptr) { + delete liquidity_order_; + } + liquidity_order_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LiquidityOrderReference::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string order_id = 1 [json_name = "orderId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_order_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityOrderReference.order_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_liquidity_order(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* LiquidityOrderReference::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityOrderReference) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string order_id = 1 [json_name = "orderId"]; + if (this->order_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityOrderReference.order_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_order_id(), target); + } + + // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + if (this->has_liquidity_order()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::liquidity_order(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - if (from.auction_start() != 0) { - _internal_set_auction_start(from._internal_auction_start()); + // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityOrderReference) + return target; +} + +size_t LiquidityOrderReference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityOrderReference) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string order_id = 1 [json_name = "orderId"]; + if (this->order_id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_order_id()); } - if (from.indicative_price() != 0) { - _internal_set_indicative_price(from._internal_indicative_price()); + + // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + if (this->has_liquidity_order()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *liquidity_order_); } - if (from.indicative_volume() != 0) { - _internal_set_indicative_volume(from._internal_indicative_volume()); + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } - if (from.market_trading_mode() != 0) { - _internal_set_market_trading_mode(from._internal_market_trading_mode()); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiquidityOrderReference::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityOrderReference) + GOOGLE_DCHECK_NE(&from, this); + const LiquidityOrderReference* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityOrderReference) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityOrderReference) + MergeFrom(*source); } - if (from.trigger() != 0) { - _internal_set_trigger(from._internal_trigger()); +} + +void LiquidityOrderReference::MergeFrom(const LiquidityOrderReference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityOrderReference) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.order_id().size() > 0) { + _internal_set_order_id(from._internal_order_id()); } - if (from.extension_trigger() != 0) { - _internal_set_extension_trigger(from._internal_extension_trigger()); + if (from.has_liquidity_order()) { + _internal_mutable_liquidity_order()->::vega::LiquidityOrder::MergeFrom(from._internal_liquidity_order()); } } -void MarketData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.MarketData) +void LiquidityOrderReference::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityOrderReference) if (&from == this) return; Clear(); MergeFrom(from); } -void MarketData::CopyFrom(const MarketData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.MarketData) +void LiquidityOrderReference::CopyFrom(const LiquidityOrderReference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityOrderReference) if (&from == this) return; Clear(); MergeFrom(from); } -bool MarketData::IsInitialized() const { +bool LiquidityOrderReference::IsInitialized() const { return true; } -void MarketData::InternalSwap(MarketData* other) { +void LiquidityOrderReference::InternalSwap(LiquidityOrderReference* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - price_monitoring_bounds_.InternalSwap(&other->price_monitoring_bounds_); - liquidity_provider_fee_share_.InternalSwap(&other->liquidity_provider_fee_share_); - market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - target_stake_.Swap(&other->target_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - supplied_stake_.Swap(&other->supplied_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_value_proxy_.Swap(&other->market_value_proxy_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MarketData, extension_trigger_) - + sizeof(MarketData::extension_trigger_) - - PROTOBUF_FIELD_OFFSET(MarketData, mark_price_)>( - reinterpret_cast(&mark_price_), - reinterpret_cast(&other->mark_price_)); + order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(liquidity_order_, other->liquidity_order_); } -::PROTOBUF_NAMESPACE_ID::Metadata MarketData::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LiquidityOrderReference::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityProviderFeeShare::_Internal { +class LiquidityProvision::_Internal { public: }; -LiquidityProviderFeeShare::LiquidityProviderFeeShare(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +LiquidityProvision::LiquidityProvision(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + sells_(arena), + buys_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.LiquidityProviderFeeShare) + // @@protoc_insertion_point(arena_constructor:vega.LiquidityProvision) } -LiquidityProviderFeeShare::LiquidityProviderFeeShare(const LiquidityProviderFeeShare& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +LiquidityProvision::LiquidityProvision(const LiquidityProvision& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + sells_(from.sells_), + buys_(from.buys_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_party().empty()) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } - equity_like_share_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_equity_like_share().empty()) { - equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_equity_like_share(), + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party_id().empty()) { + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } - average_entry_valuation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_average_entry_valuation().empty()) { - average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_average_entry_valuation(), + market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_market_id().empty()) { + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } - // @@protoc_insertion_point(copy_constructor:vega.LiquidityProviderFeeShare) + fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_fee().empty()) { + fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fee(), + GetArena()); + } + version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_version().empty()) { + version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(), + GetArena()); + } + reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_reference().empty()) { + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), + GetArena()); + } + ::memcpy(&created_at_, &from.created_at_, + static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&created_at_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:vega.LiquidityProvision) } -void LiquidityProviderFeeShare::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProviderFeeShare_vega_2eproto.base); - party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - equity_like_share_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - average_entry_valuation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void LiquidityProvision::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProvision_vega_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&created_at_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&created_at_)) + sizeof(status_)); } -LiquidityProviderFeeShare::~LiquidityProviderFeeShare() { - // @@protoc_insertion_point(destructor:vega.LiquidityProviderFeeShare) +LiquidityProvision::~LiquidityProvision() { + // @@protoc_insertion_point(destructor:vega.LiquidityProvision) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityProviderFeeShare::SharedDtor() { +void LiquidityProvision::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - equity_like_share_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - average_entry_valuation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void LiquidityProviderFeeShare::ArenaDtor(void* object) { - LiquidityProviderFeeShare* _this = reinterpret_cast< LiquidityProviderFeeShare* >(object); +void LiquidityProvision::ArenaDtor(void* object) { + LiquidityProvision* _this = reinterpret_cast< LiquidityProvision* >(object); (void)_this; } -void LiquidityProviderFeeShare::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void LiquidityProvision::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityProviderFeeShare::SetCachedSize(int size) const { +void LiquidityProvision::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityProviderFeeShare& LiquidityProviderFeeShare::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProviderFeeShare_vega_2eproto.base); +const LiquidityProvision& LiquidityProvision::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProvision_vega_2eproto.base); return *internal_default_instance(); } -void LiquidityProviderFeeShare::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.LiquidityProviderFeeShare) +void LiquidityProvision::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.LiquidityProvision) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - party_.ClearToEmpty(); - equity_like_share_.ClearToEmpty(); - average_entry_valuation_.ClearToEmpty(); + sells_.Clear(); + buys_.Clear(); + id_.ClearToEmpty(); + party_id_.ClearToEmpty(); + market_id_.ClearToEmpty(); + fee_.ClearToEmpty(); + version_.ClearToEmpty(); + reference_.ClearToEmpty(); + ::memset(&created_at_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&created_at_)) + sizeof(status_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityProviderFeeShare::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* LiquidityProvision::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string party = 1 [json_name = "party"]; + // string id = 1 [json_name = "id"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_party(); + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string party_id = 2 [json_name = "partyId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_party_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.party_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 created_at = 3 [json_name = "createdAt"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + created_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 updated_at = 4 [json_name = "updatedAt"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + updated_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string market_id = 5 [json_name = "marketId", (.validator.field) = { + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_market_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.party")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.market_id")); CHK_(ptr); } else goto handle_unusual; continue; - // string equity_like_share = 2 [json_name = "equityLikeShare"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_equity_like_share(); + // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + commitment_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string fee = 7 [json_name = "fee"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_fee(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.equity_like_share")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.fee")); CHK_(ptr); } else goto handle_unusual; continue; - // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_average_entry_valuation(); + // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sells(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } else goto handle_unusual; + continue; + // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_buys(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else goto handle_unusual; + continue; + // string version = 10 [json_name = "version"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + auto str = _internal_mutable_version(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProviderFeeShare.average_entry_valuation")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.version")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::vega::LiquidityProvision_Status>(val)); + } else goto handle_unusual; + continue; + // string reference = 12 [json_name = "reference"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + auto str = _internal_mutable_reference(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.reference")); CHK_(ptr); } else goto handle_unusual; continue; @@ -14249,77 +15117,210 @@ const char* LiquidityProviderFeeShare::_InternalParse(const char* ptr, ::PROTOBU #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProviderFeeShare::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvision::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityProviderFeeShare) + // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityProvision) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string party = 1 [json_name = "party"]; - if (this->party().size() > 0) { + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_party().data(), static_cast(this->_internal_party().length()), + this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProviderFeeShare.party"); + "vega.LiquidityProvision.id"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_party(), target); + 1, this->_internal_id(), target); } - // string equity_like_share = 2 [json_name = "equityLikeShare"]; - if (this->equity_like_share().size() > 0) { + // string party_id = 2 [json_name = "partyId"]; + if (this->party_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_equity_like_share().data(), static_cast(this->_internal_equity_like_share().length()), + this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProviderFeeShare.equity_like_share"); + "vega.LiquidityProvision.party_id"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_equity_like_share(), target); + 2, this->_internal_party_id(), target); } - // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - if (this->average_entry_valuation().size() > 0) { + // int64 created_at = 3 [json_name = "createdAt"]; + if (this->created_at() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_created_at(), target); + } + + // int64 updated_at = 4 [json_name = "updatedAt"]; + if (this->updated_at() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_updated_at(), target); + } + + // string market_id = 5 [json_name = "marketId", (.validator.field) = { + if (this->market_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_average_entry_valuation().data(), static_cast(this->_internal_average_entry_valuation().length()), + this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProviderFeeShare.average_entry_valuation"); + "vega.LiquidityProvision.market_id"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_average_entry_valuation(), target); + 5, this->_internal_market_id(), target); + } + + // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + if (this->commitment_amount() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_commitment_amount(), target); + } + + // string fee = 7 [json_name = "fee"]; + if (this->fee().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fee().data(), static_cast(this->_internal_fee().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProvision.fee"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_fee(), target); + } + + // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_sells_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, this->_internal_sells(i), target, stream); + } + + // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_buys_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, this->_internal_buys(i), target, stream); + } + + // string version = 10 [json_name = "version"]; + if (this->version().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProvision.version"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_version(), target); + } + + // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + if (this->status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 11, this->_internal_status(), target); + } + + // string reference = 12 [json_name = "reference"]; + if (this->reference().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference().data(), static_cast(this->_internal_reference().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProvision.reference"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_reference(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityProviderFeeShare) + // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityProvision) return target; } -size_t LiquidityProviderFeeShare::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityProviderFeeShare) +size_t LiquidityProvision::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityProvision) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string party = 1 [json_name = "party"]; - if (this->party().size() > 0) { + // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + total_size += 1UL * this->_internal_sells_size(); + for (const auto& msg : this->sells_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + total_size += 1UL * this->_internal_buys_size(); + for (const auto& msg : this->buys_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party()); + this->_internal_id()); } - // string equity_like_share = 2 [json_name = "equityLikeShare"]; - if (this->equity_like_share().size() > 0) { + // string party_id = 2 [json_name = "partyId"]; + if (this->party_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_equity_like_share()); + this->_internal_party_id()); + } + + // string market_id = 5 [json_name = "marketId", (.validator.field) = { + if (this->market_id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market_id()); + } + + // string fee = 7 [json_name = "fee"]; + if (this->fee().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fee()); + } + + // string version = 10 [json_name = "version"]; + if (this->version().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + // string reference = 12 [json_name = "reference"]; + if (this->reference().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference()); + } + + // int64 created_at = 3 [json_name = "createdAt"]; + if (this->created_at() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_created_at()); + } + + // int64 updated_at = 4 [json_name = "updatedAt"]; + if (this->updated_at() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_updated_at()); + } + + // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + if (this->commitment_amount() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_commitment_amount()); } - // string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - if (this->average_entry_valuation().size() > 0) { + // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + if (this->status() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_average_entry_valuation()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -14331,190 +15332,243 @@ size_t LiquidityProviderFeeShare::ByteSizeLong() const { return total_size; } -void LiquidityProviderFeeShare::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityProviderFeeShare) +void LiquidityProvision::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityProvision) GOOGLE_DCHECK_NE(&from, this); - const LiquidityProviderFeeShare* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const LiquidityProvision* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityProviderFeeShare) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityProvision) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityProviderFeeShare) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityProvision) MergeFrom(*source); } } -void LiquidityProviderFeeShare::MergeFrom(const LiquidityProviderFeeShare& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityProviderFeeShare) +void LiquidityProvision::MergeFrom(const LiquidityProvision& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityProvision) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.party().size() > 0) { - _internal_set_party(from._internal_party()); + sells_.MergeFrom(from.sells_); + buys_.MergeFrom(from.buys_); + if (from.id().size() > 0) { + _internal_set_id(from._internal_id()); } - if (from.equity_like_share().size() > 0) { - _internal_set_equity_like_share(from._internal_equity_like_share()); + if (from.party_id().size() > 0) { + _internal_set_party_id(from._internal_party_id()); } - if (from.average_entry_valuation().size() > 0) { - _internal_set_average_entry_valuation(from._internal_average_entry_valuation()); + if (from.market_id().size() > 0) { + _internal_set_market_id(from._internal_market_id()); + } + if (from.fee().size() > 0) { + _internal_set_fee(from._internal_fee()); + } + if (from.version().size() > 0) { + _internal_set_version(from._internal_version()); + } + if (from.reference().size() > 0) { + _internal_set_reference(from._internal_reference()); + } + if (from.created_at() != 0) { + _internal_set_created_at(from._internal_created_at()); + } + if (from.updated_at() != 0) { + _internal_set_updated_at(from._internal_updated_at()); + } + if (from.commitment_amount() != 0) { + _internal_set_commitment_amount(from._internal_commitment_amount()); + } + if (from.status() != 0) { + _internal_set_status(from._internal_status()); } } -void LiquidityProviderFeeShare::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityProviderFeeShare) +void LiquidityProvision::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityProvision) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityProviderFeeShare::CopyFrom(const LiquidityProviderFeeShare& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityProviderFeeShare) +void LiquidityProvision::CopyFrom(const LiquidityProvision& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityProvision) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityProviderFeeShare::IsInitialized() const { +bool LiquidityProvision::IsInitialized() const { return true; } -void LiquidityProviderFeeShare::InternalSwap(LiquidityProviderFeeShare* other) { +void LiquidityProvision::InternalSwap(LiquidityProvision* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - equity_like_share_.Swap(&other->equity_like_share_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - average_entry_valuation_.Swap(&other->average_entry_valuation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + sells_.InternalSwap(&other->sells_); + buys_.InternalSwap(&other->buys_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + fee_.Swap(&other->fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LiquidityProvision, status_) + + sizeof(LiquidityProvision::status_) + - PROTOBUF_FIELD_OFFSET(LiquidityProvision, created_at_)>( + reinterpret_cast(&created_at_), + reinterpret_cast(&other->created_at_)); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProviderFeeShare::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProvision::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class PriceMonitoringBounds::_Internal { +class EthereumConfig::_Internal { public: - static const ::vega::PriceMonitoringTrigger& trigger(const PriceMonitoringBounds* msg); }; -const ::vega::PriceMonitoringTrigger& -PriceMonitoringBounds::_Internal::trigger(const PriceMonitoringBounds* msg) { - return *msg->trigger_; -} -void PriceMonitoringBounds::clear_trigger() { - if (GetArena() == nullptr && trigger_ != nullptr) { - delete trigger_; - } - trigger_ = nullptr; -} -PriceMonitoringBounds::PriceMonitoringBounds(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +EthereumConfig::EthereumConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + staking_bridge_addresses_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(arena_constructor:vega.EthereumConfig) } -PriceMonitoringBounds::PriceMonitoringBounds(const PriceMonitoringBounds& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +EthereumConfig::EthereumConfig(const EthereumConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + staking_bridge_addresses_(from.staking_bridge_addresses_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_trigger()) { - trigger_ = new ::vega::PriceMonitoringTrigger(*from.trigger_); - } else { - trigger_ = nullptr; + network_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_network_id().empty()) { + network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_network_id(), + GetArena()); } - ::memcpy(&min_valid_price_, &from.min_valid_price_, - static_cast(reinterpret_cast(&reference_price_) - - reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); - // @@protoc_insertion_point(copy_constructor:vega.PriceMonitoringBounds) + chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_chain_id().empty()) { + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_id(), + GetArena()); + } + bridge_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_bridge_address().empty()) { + bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bridge_address(), + GetArena()); + } + confirmations_ = from.confirmations_; + // @@protoc_insertion_point(copy_constructor:vega.EthereumConfig) } -void PriceMonitoringBounds::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PriceMonitoringBounds_vega_2eproto.base); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&trigger_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&reference_price_) - - reinterpret_cast(&trigger_)) + sizeof(reference_price_)); +void EthereumConfig::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EthereumConfig_vega_2eproto.base); + network_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + bridge_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + confirmations_ = 0u; } -PriceMonitoringBounds::~PriceMonitoringBounds() { - // @@protoc_insertion_point(destructor:vega.PriceMonitoringBounds) +EthereumConfig::~EthereumConfig() { + // @@protoc_insertion_point(destructor:vega.EthereumConfig) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PriceMonitoringBounds::SharedDtor() { +void EthereumConfig::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete trigger_; + network_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chain_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + bridge_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void PriceMonitoringBounds::ArenaDtor(void* object) { - PriceMonitoringBounds* _this = reinterpret_cast< PriceMonitoringBounds* >(object); +void EthereumConfig::ArenaDtor(void* object) { + EthereumConfig* _this = reinterpret_cast< EthereumConfig* >(object); (void)_this; } -void PriceMonitoringBounds::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EthereumConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PriceMonitoringBounds::SetCachedSize(int size) const { +void EthereumConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } -const PriceMonitoringBounds& PriceMonitoringBounds::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PriceMonitoringBounds_vega_2eproto.base); +const EthereumConfig& EthereumConfig::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EthereumConfig_vega_2eproto.base); return *internal_default_instance(); } -void PriceMonitoringBounds::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.PriceMonitoringBounds) +void EthereumConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.EthereumConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && trigger_ != nullptr) { - delete trigger_; - } - trigger_ = nullptr; - ::memset(&min_valid_price_, 0, static_cast( - reinterpret_cast(&reference_price_) - - reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); + staking_bridge_addresses_.Clear(); + network_id_.ClearToEmpty(); + chain_id_.ClearToEmpty(); + bridge_address_.ClearToEmpty(); + confirmations_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PriceMonitoringBounds::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EthereumConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + // string network_id = 1 [json_name = "networkId"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - min_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_network_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.network_id")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + // string chain_id = 2 [json_name = "chainId"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - max_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_chain_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.chain_id")); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + // string bridge_address = 3 [json_name = "bridgeAddress"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_trigger(), ptr); + auto str = _internal_mutable_bridge_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.bridge_address")); CHK_(ptr); } else goto handle_unusual; continue; - // double reference_price = 4 [json_name = "referencePrice"]; + // uint32 confirmations = 4 [json_name = "confirmations"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - reference_price_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + confirmations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_staking_bridge_addresses(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.staking_bridge_addresses")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); } else goto handle_unusual; continue; default: { @@ -14539,78 +15593,108 @@ const char* PriceMonitoringBounds::_InternalParse(const char* ptr, ::PROTOBUF_NA #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PriceMonitoringBounds::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EthereumConfig::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(serialize_to_array_start:vega.EthereumConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - if (this->min_valid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_min_valid_price(), target); + // string network_id = 1 [json_name = "networkId"]; + if (this->network_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_network_id().data(), static_cast(this->_internal_network_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.EthereumConfig.network_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_network_id(), target); } - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - if (this->max_valid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_max_valid_price(), target); + // string chain_id = 2 [json_name = "chainId"]; + if (this->chain_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_chain_id().data(), static_cast(this->_internal_chain_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.EthereumConfig.chain_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_chain_id(), target); } - // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - if (this->has_trigger()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::trigger(this), target, stream); + // string bridge_address = 3 [json_name = "bridgeAddress"]; + if (this->bridge_address().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_bridge_address().data(), static_cast(this->_internal_bridge_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.EthereumConfig.bridge_address"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_bridge_address(), target); } - // double reference_price = 4 [json_name = "referencePrice"]; - if (!(this->reference_price() <= 0 && this->reference_price() >= 0)) { + // uint32 confirmations = 4 [json_name = "confirmations"]; + if (this->confirmations() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_reference_price(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_confirmations(), target); + } + + // repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + for (int i = 0, n = this->_internal_staking_bridge_addresses_size(); i < n; i++) { + const auto& s = this->_internal_staking_bridge_addresses(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.EthereumConfig.staking_bridge_addresses"); + target = stream->WriteString(5, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(serialize_to_array_end:vega.EthereumConfig) return target; } -size_t PriceMonitoringBounds::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.PriceMonitoringBounds) +size_t EthereumConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.EthereumConfig) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - if (this->has_trigger()) { + // repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(staking_bridge_addresses_.size()); + for (int i = 0, n = staking_bridge_addresses_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + staking_bridge_addresses_.Get(i)); + } + + // string network_id = 1 [json_name = "networkId"]; + if (this->network_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *trigger_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_network_id()); } - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - if (this->min_valid_price() != 0) { + // string chain_id = 2 [json_name = "chainId"]; + if (this->chain_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_min_valid_price()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chain_id()); } - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - if (this->max_valid_price() != 0) { + // string bridge_address = 3 [json_name = "bridgeAddress"]; + if (this->bridge_address().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_max_valid_price()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_bridge_address()); } - // double reference_price = 4 [json_name = "referencePrice"]; - if (!(this->reference_price() <= 0 && this->reference_price() >= 0)) { - total_size += 1 + 8; + // uint32 confirmations = 4 [json_name = "confirmations"]; + if (this->confirmations() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_confirmations()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -14622,180 +15706,173 @@ size_t PriceMonitoringBounds::ByteSizeLong() const { return total_size; } -void PriceMonitoringBounds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.PriceMonitoringBounds) +void EthereumConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.EthereumConfig) GOOGLE_DCHECK_NE(&from, this); - const PriceMonitoringBounds* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EthereumConfig* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.EthereumConfig) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.EthereumConfig) MergeFrom(*source); } } -void PriceMonitoringBounds::MergeFrom(const PriceMonitoringBounds& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.PriceMonitoringBounds) +void EthereumConfig::MergeFrom(const EthereumConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.EthereumConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_trigger()) { - _internal_mutable_trigger()->::vega::PriceMonitoringTrigger::MergeFrom(from._internal_trigger()); + staking_bridge_addresses_.MergeFrom(from.staking_bridge_addresses_); + if (from.network_id().size() > 0) { + _internal_set_network_id(from._internal_network_id()); } - if (from.min_valid_price() != 0) { - _internal_set_min_valid_price(from._internal_min_valid_price()); + if (from.chain_id().size() > 0) { + _internal_set_chain_id(from._internal_chain_id()); } - if (from.max_valid_price() != 0) { - _internal_set_max_valid_price(from._internal_max_valid_price()); + if (from.bridge_address().size() > 0) { + _internal_set_bridge_address(from._internal_bridge_address()); } - if (!(from.reference_price() <= 0 && from.reference_price() >= 0)) { - _internal_set_reference_price(from._internal_reference_price()); + if (from.confirmations() != 0) { + _internal_set_confirmations(from._internal_confirmations()); } } -void PriceMonitoringBounds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.PriceMonitoringBounds) +void EthereumConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.EthereumConfig) if (&from == this) return; Clear(); MergeFrom(from); } -void PriceMonitoringBounds::CopyFrom(const PriceMonitoringBounds& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.PriceMonitoringBounds) +void EthereumConfig::CopyFrom(const EthereumConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.EthereumConfig) if (&from == this) return; Clear(); MergeFrom(from); } -bool PriceMonitoringBounds::IsInitialized() const { +bool EthereumConfig::IsInitialized() const { return true; } -void PriceMonitoringBounds::InternalSwap(PriceMonitoringBounds* other) { +void EthereumConfig::InternalSwap(EthereumConfig* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PriceMonitoringBounds, reference_price_) - + sizeof(PriceMonitoringBounds::reference_price_) - - PROTOBUF_FIELD_OFFSET(PriceMonitoringBounds, trigger_)>( - reinterpret_cast(&trigger_), - reinterpret_cast(&other->trigger_)); + staking_bridge_addresses_.InternalSwap(&other->staking_bridge_addresses_); + network_id_.Swap(&other->network_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + chain_id_.Swap(&other->chain_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + bridge_address_.Swap(&other->bridge_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(confirmations_, other->confirmations_); } -::PROTOBUF_NAMESPACE_ID::Metadata PriceMonitoringBounds::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EthereumConfig::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class ErrorDetail::_Internal { +class EpochTimestamps::_Internal { public: }; -ErrorDetail::ErrorDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena) +EpochTimestamps::EpochTimestamps(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.ErrorDetail) + // @@protoc_insertion_point(arena_constructor:vega.EpochTimestamps) } -ErrorDetail::ErrorDetail(const ErrorDetail& from) +EpochTimestamps::EpochTimestamps(const EpochTimestamps& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_message().empty()) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), - GetArena()); - } - inner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_inner().empty()) { - inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_inner(), - GetArena()); - } - code_ = from.code_; - // @@protoc_insertion_point(copy_constructor:vega.ErrorDetail) + ::memcpy(&start_time_, &from.start_time_, + static_cast(reinterpret_cast(&last_block_) - + reinterpret_cast(&start_time_)) + sizeof(last_block_)); + // @@protoc_insertion_point(copy_constructor:vega.EpochTimestamps) } -void ErrorDetail::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ErrorDetail_vega_2eproto.base); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - inner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - code_ = 0; +void EpochTimestamps::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&start_time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&last_block_) - + reinterpret_cast(&start_time_)) + sizeof(last_block_)); } -ErrorDetail::~ErrorDetail() { - // @@protoc_insertion_point(destructor:vega.ErrorDetail) +EpochTimestamps::~EpochTimestamps() { + // @@protoc_insertion_point(destructor:vega.EpochTimestamps) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ErrorDetail::SharedDtor() { +void EpochTimestamps::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - inner_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void ErrorDetail::ArenaDtor(void* object) { - ErrorDetail* _this = reinterpret_cast< ErrorDetail* >(object); +void EpochTimestamps::ArenaDtor(void* object) { + EpochTimestamps* _this = reinterpret_cast< EpochTimestamps* >(object); (void)_this; } -void ErrorDetail::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EpochTimestamps::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void ErrorDetail::SetCachedSize(int size) const { +void EpochTimestamps::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ErrorDetail& ErrorDetail::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ErrorDetail_vega_2eproto.base); +const EpochTimestamps& EpochTimestamps::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EpochTimestamps_vega_2eproto.base); return *internal_default_instance(); } -void ErrorDetail::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.ErrorDetail) +void EpochTimestamps::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.EpochTimestamps) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - message_.ClearToEmpty(); - inner_.ClearToEmpty(); - code_ = 0; + ::memset(&start_time_, 0, static_cast( + reinterpret_cast(&last_block_) - + reinterpret_cast(&start_time_)) + sizeof(last_block_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ErrorDetail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EpochTimestamps::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // int32 code = 1 [json_name = "code"]; + // int64 start_time = 1 [json_name = "startTime"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + start_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string message = 2 [json_name = "message"]; + // int64 end_time = 2 [json_name = "endTime"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.ErrorDetail.message")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + end_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string inner = 3 [json_name = "inner"]; + // uint64 first_block = 3 [json_name = "firstBlock"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_inner(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.ErrorDetail.inner")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + first_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 last_block = 4 [json_name = "lastBlock"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + last_block_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -14821,73 +15898,78 @@ const char* ErrorDetail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ErrorDetail::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EpochTimestamps::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.ErrorDetail) + // @@protoc_insertion_point(serialize_to_array_start:vega.EpochTimestamps) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int32 code = 1 [json_name = "code"]; - if (this->code() != 0) { + // int64 start_time = 1 [json_name = "startTime"]; + if (this->start_time() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_code(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_start_time(), target); } - // string message = 2 [json_name = "message"]; - if (this->message().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_message().data(), static_cast(this->_internal_message().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.ErrorDetail.message"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_message(), target); + // int64 end_time = 2 [json_name = "endTime"]; + if (this->end_time() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_end_time(), target); } - // string inner = 3 [json_name = "inner"]; - if (this->inner().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_inner().data(), static_cast(this->_internal_inner().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.ErrorDetail.inner"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_inner(), target); + // uint64 first_block = 3 [json_name = "firstBlock"]; + if (this->first_block() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_first_block(), target); + } + + // uint64 last_block = 4 [json_name = "lastBlock"]; + if (this->last_block() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_last_block(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.ErrorDetail) + // @@protoc_insertion_point(serialize_to_array_end:vega.EpochTimestamps) return target; } -size_t ErrorDetail::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.ErrorDetail) +size_t EpochTimestamps::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.EpochTimestamps) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string message = 2 [json_name = "message"]; - if (this->message().size() > 0) { + // int64 start_time = 1 [json_name = "startTime"]; + if (this->start_time() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_message()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_start_time()); } - // string inner = 3 [json_name = "inner"]; - if (this->inner().size() > 0) { + // int64 end_time = 2 [json_name = "endTime"]; + if (this->end_time() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_inner()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_end_time()); } - // int32 code = 1 [json_name = "code"]; - if (this->code() != 0) { + // uint64 first_block = 3 [json_name = "firstBlock"]; + if (this->first_block() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_code()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_first_block()); + } + + // uint64 last_block = 4 [json_name = "lastBlock"]; + if (this->last_block() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_last_block()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -14899,225 +15981,202 @@ size_t ErrorDetail::ByteSizeLong() const { return total_size; } -void ErrorDetail::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.ErrorDetail) +void EpochTimestamps::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.EpochTimestamps) GOOGLE_DCHECK_NE(&from, this); - const ErrorDetail* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EpochTimestamps* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.ErrorDetail) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.EpochTimestamps) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.ErrorDetail) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.EpochTimestamps) MergeFrom(*source); } } -void ErrorDetail::MergeFrom(const ErrorDetail& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.ErrorDetail) +void EpochTimestamps::MergeFrom(const EpochTimestamps& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.EpochTimestamps) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.message().size() > 0) { - _internal_set_message(from._internal_message()); + if (from.start_time() != 0) { + _internal_set_start_time(from._internal_start_time()); } - if (from.inner().size() > 0) { - _internal_set_inner(from._internal_inner()); + if (from.end_time() != 0) { + _internal_set_end_time(from._internal_end_time()); } - if (from.code() != 0) { - _internal_set_code(from._internal_code()); + if (from.first_block() != 0) { + _internal_set_first_block(from._internal_first_block()); + } + if (from.last_block() != 0) { + _internal_set_last_block(from._internal_last_block()); } } -void ErrorDetail::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.ErrorDetail) +void EpochTimestamps::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.EpochTimestamps) if (&from == this) return; Clear(); MergeFrom(from); } -void ErrorDetail::CopyFrom(const ErrorDetail& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.ErrorDetail) +void EpochTimestamps::CopyFrom(const EpochTimestamps& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.EpochTimestamps) if (&from == this) return; Clear(); MergeFrom(from); } -bool ErrorDetail::IsInitialized() const { +bool EpochTimestamps::IsInitialized() const { return true; } -void ErrorDetail::InternalSwap(ErrorDetail* other) { +void EpochTimestamps::InternalSwap(EpochTimestamps* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - inner_.Swap(&other->inner_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(code_, other->code_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EpochTimestamps, last_block_) + + sizeof(EpochTimestamps::last_block_) + - PROTOBUF_FIELD_OFFSET(EpochTimestamps, start_time_)>( + reinterpret_cast(&start_time_), + reinterpret_cast(&other->start_time_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ErrorDetail::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EpochTimestamps::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class Transaction::_Internal { +class Epoch::_Internal { public: + static const ::vega::EpochTimestamps& timestamps(const Epoch* msg); }; -Transaction::Transaction(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +const ::vega::EpochTimestamps& +Epoch::_Internal::timestamps(const Epoch* msg) { + return *msg->timestamps_; +} +Epoch::Epoch(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + validators_(arena), + delegations_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Transaction) + // @@protoc_insertion_point(arena_constructor:vega.Epoch) } -Transaction::Transaction(const Transaction& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +Epoch::Epoch(const Epoch& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + validators_(from.validators_), + delegations_(from.delegations_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - input_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_input_data().empty()) { - input_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_input_data(), - GetArena()); - } - ::memcpy(&nonce_, &from.nonce_, - static_cast(reinterpret_cast(&block_height_) - - reinterpret_cast(&nonce_)) + sizeof(block_height_)); - clear_has_from(); - switch (from.from_case()) { - case kAddress: { - _internal_set_address(from._internal_address()); - break; - } - case kPubKey: { - _internal_set_pub_key(from._internal_pub_key()); - break; - } - case FROM_NOT_SET: { - break; - } + if (from._internal_has_timestamps()) { + timestamps_ = new ::vega::EpochTimestamps(*from.timestamps_); + } else { + timestamps_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:vega.Transaction) + seq_ = from.seq_; + // @@protoc_insertion_point(copy_constructor:vega.Epoch) } -void Transaction::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Transaction_vega_2eproto.base); - input_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void Epoch::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Epoch_vega_2eproto.base); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&nonce_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&block_height_) - - reinterpret_cast(&nonce_)) + sizeof(block_height_)); - clear_has_from(); + reinterpret_cast(×tamps_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&seq_) - + reinterpret_cast(×tamps_)) + sizeof(seq_)); } -Transaction::~Transaction() { - // @@protoc_insertion_point(destructor:vega.Transaction) +Epoch::~Epoch() { + // @@protoc_insertion_point(destructor:vega.Epoch) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Transaction::SharedDtor() { +void Epoch::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - input_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (has_from()) { - clear_from(); - } + if (this != internal_default_instance()) delete timestamps_; } -void Transaction::ArenaDtor(void* object) { - Transaction* _this = reinterpret_cast< Transaction* >(object); +void Epoch::ArenaDtor(void* object) { + Epoch* _this = reinterpret_cast< Epoch* >(object); (void)_this; } -void Transaction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Epoch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Transaction::SetCachedSize(int size) const { +void Epoch::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Transaction& Transaction::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Transaction_vega_2eproto.base); +const Epoch& Epoch::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Epoch_vega_2eproto.base); return *internal_default_instance(); } -void Transaction::clear_from() { -// @@protoc_insertion_point(one_of_clear_start:vega.Transaction) - switch (from_case()) { - case kAddress: { - from_.address_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPubKey: { - from_.pub_key_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case FROM_NOT_SET: { - break; - } - } - _oneof_case_[0] = FROM_NOT_SET; -} - - -void Transaction::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Transaction) +void Epoch::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Epoch) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - input_data_.ClearToEmpty(); - ::memset(&nonce_, 0, static_cast( - reinterpret_cast(&block_height_) - - reinterpret_cast(&nonce_)) + sizeof(block_height_)); - clear_from(); + validators_.Clear(); + delegations_.Clear(); + if (GetArena() == nullptr && timestamps_ != nullptr) { + delete timestamps_; + } + timestamps_ = nullptr; + seq_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Transaction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Epoch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // bytes input_data = 1 [json_name = "inputData"]; + // uint64 seq = 1 [json_name = "seq"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_input_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 nonce = 2 [json_name = "nonce"]; + // .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_timestamps(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 block_height = 3 [json_name = "blockHeight"]; + // repeated .vega.Node validators = 3 [json_name = "validators"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - block_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes address = 1001 [json_name = "address"]; - case 1001: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - auto str = _internal_mutable_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_validators(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; - // bytes pub_key = 1002 [json_name = "pubKey"]; - case 1002: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - auto str = _internal_mutable_pub_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); + // repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_delegations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); } else goto handle_unusual; continue; default: { @@ -15142,98 +16201,86 @@ const char* Transaction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Transaction::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Epoch::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Transaction) + // @@protoc_insertion_point(serialize_to_array_start:vega.Epoch) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bytes input_data = 1 [json_name = "inputData"]; - if (this->input_data().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_input_data(), target); - } - - // uint64 nonce = 2 [json_name = "nonce"]; - if (this->nonce() != 0) { + // uint64 seq = 1 [json_name = "seq"]; + if (this->seq() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_nonce(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_seq(), target); } - // uint64 block_height = 3 [json_name = "blockHeight"]; - if (this->block_height() != 0) { + // .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { + if (this->has_timestamps()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_block_height(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::timestamps(this), target, stream); } - // bytes address = 1001 [json_name = "address"]; - if (_internal_has_address()) { - target = stream->WriteBytesMaybeAliased( - 1001, this->_internal_address(), target); + // repeated .vega.Node validators = 3 [json_name = "validators"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_validators_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_validators(i), target, stream); } - // bytes pub_key = 1002 [json_name = "pubKey"]; - if (_internal_has_pub_key()) { - target = stream->WriteBytesMaybeAliased( - 1002, this->_internal_pub_key(), target); + // repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_delegations_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, this->_internal_delegations(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.Transaction) + // @@protoc_insertion_point(serialize_to_array_end:vega.Epoch) return target; } -size_t Transaction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Transaction) +size_t Epoch::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Epoch) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes input_data = 1 [json_name = "inputData"]; - if (this->input_data().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_input_data()); + // repeated .vega.Node validators = 3 [json_name = "validators"]; + total_size += 1UL * this->_internal_validators_size(); + for (const auto& msg : this->validators_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + total_size += 1UL * this->_internal_delegations_size(); + for (const auto& msg : this->delegations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // uint64 nonce = 2 [json_name = "nonce"]; - if (this->nonce() != 0) { + // .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { + if (this->has_timestamps()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_nonce()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *timestamps_); } - // uint64 block_height = 3 [json_name = "blockHeight"]; - if (this->block_height() != 0) { + // uint64 seq = 1 [json_name = "seq"]; + if (this->seq() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_block_height()); + this->_internal_seq()); } - switch (from_case()) { - // bytes address = 1001 [json_name = "address"]; - case kAddress: { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_address()); - break; - } - // bytes pub_key = 1002 [json_name = "pubKey"]; - case kPubKey: { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pub_key()); - break; - } - case FROM_NOT_SET: { - break; - } - } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -15243,195 +16290,190 @@ size_t Transaction::ByteSizeLong() const { return total_size; } -void Transaction::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Transaction) +void Epoch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Epoch) GOOGLE_DCHECK_NE(&from, this); - const Transaction* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Epoch* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Transaction) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Epoch) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Transaction) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Epoch) MergeFrom(*source); } } -void Transaction::MergeFrom(const Transaction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Transaction) +void Epoch::MergeFrom(const Epoch& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Epoch) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.input_data().size() > 0) { - _internal_set_input_data(from._internal_input_data()); - } - if (from.nonce() != 0) { - _internal_set_nonce(from._internal_nonce()); + validators_.MergeFrom(from.validators_); + delegations_.MergeFrom(from.delegations_); + if (from.has_timestamps()) { + _internal_mutable_timestamps()->::vega::EpochTimestamps::MergeFrom(from._internal_timestamps()); } - if (from.block_height() != 0) { - _internal_set_block_height(from._internal_block_height()); - } - switch (from.from_case()) { - case kAddress: { - _internal_set_address(from._internal_address()); - break; - } - case kPubKey: { - _internal_set_pub_key(from._internal_pub_key()); - break; - } - case FROM_NOT_SET: { - break; - } + if (from.seq() != 0) { + _internal_set_seq(from._internal_seq()); } } -void Transaction::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Transaction) +void Epoch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Epoch) if (&from == this) return; Clear(); MergeFrom(from); } -void Transaction::CopyFrom(const Transaction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Transaction) +void Epoch::CopyFrom(const Epoch& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Epoch) if (&from == this) return; Clear(); MergeFrom(from); } -bool Transaction::IsInitialized() const { +bool Epoch::IsInitialized() const { return true; } -void Transaction::InternalSwap(Transaction* other) { +void Epoch::InternalSwap(Epoch* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - input_data_.Swap(&other->input_data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + validators_.InternalSwap(&other->validators_); + delegations_.InternalSwap(&other->delegations_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Transaction, block_height_) - + sizeof(Transaction::block_height_) - - PROTOBUF_FIELD_OFFSET(Transaction, nonce_)>( - reinterpret_cast(&nonce_), - reinterpret_cast(&other->nonce_)); - swap(from_, other->from_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + PROTOBUF_FIELD_OFFSET(Epoch, seq_) + + sizeof(Epoch::seq_) + - PROTOBUF_FIELD_OFFSET(Epoch, timestamps_)>( + reinterpret_cast(×tamps_), + reinterpret_cast(&other->timestamps_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Transaction::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Epoch::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class Signature::_Internal { +class EpochParticipation::_Internal { public: + static const ::vega::Epoch& epoch(const EpochParticipation* msg); }; -Signature::Signature(::PROTOBUF_NAMESPACE_ID::Arena* arena) +const ::vega::Epoch& +EpochParticipation::_Internal::epoch(const EpochParticipation* msg) { + return *msg->epoch_; +} +EpochParticipation::EpochParticipation(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.Signature) + // @@protoc_insertion_point(arena_constructor:vega.EpochParticipation) } -Signature::Signature(const Signature& from) +EpochParticipation::EpochParticipation(const EpochParticipation& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - sig_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_sig().empty()) { - sig_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sig(), - GetArena()); - } - algo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_algo().empty()) { - algo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_algo(), - GetArena()); + if (from._internal_has_epoch()) { + epoch_ = new ::vega::Epoch(*from.epoch_); + } else { + epoch_ = nullptr; } - version_ = from.version_; - // @@protoc_insertion_point(copy_constructor:vega.Signature) + ::memcpy(&offline_, &from.offline_, + static_cast(reinterpret_cast(&total_rewards_) - + reinterpret_cast(&offline_)) + sizeof(total_rewards_)); + // @@protoc_insertion_point(copy_constructor:vega.EpochParticipation) } -void Signature::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Signature_vega_2eproto.base); - sig_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - algo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_ = 0u; +void EpochParticipation::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EpochParticipation_vega_2eproto.base); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&epoch_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&total_rewards_) - + reinterpret_cast(&epoch_)) + sizeof(total_rewards_)); } -Signature::~Signature() { - // @@protoc_insertion_point(destructor:vega.Signature) +EpochParticipation::~EpochParticipation() { + // @@protoc_insertion_point(destructor:vega.EpochParticipation) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Signature::SharedDtor() { +void EpochParticipation::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - sig_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - algo_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete epoch_; } -void Signature::ArenaDtor(void* object) { - Signature* _this = reinterpret_cast< Signature* >(object); +void EpochParticipation::ArenaDtor(void* object) { + EpochParticipation* _this = reinterpret_cast< EpochParticipation* >(object); (void)_this; } -void Signature::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EpochParticipation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Signature::SetCachedSize(int size) const { +void EpochParticipation::SetCachedSize(int size) const { _cached_size_.Set(size); } -const Signature& Signature::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Signature_vega_2eproto.base); +const EpochParticipation& EpochParticipation::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EpochParticipation_vega_2eproto.base); return *internal_default_instance(); } -void Signature::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.Signature) +void EpochParticipation::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.EpochParticipation) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sig_.ClearToEmpty(); - algo_.ClearToEmpty(); - version_ = 0u; + if (GetArena() == nullptr && epoch_ != nullptr) { + delete epoch_; + } + epoch_ = nullptr; + ::memset(&offline_, 0, static_cast( + reinterpret_cast(&total_rewards_) - + reinterpret_cast(&offline_)) + sizeof(total_rewards_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Signature::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EpochParticipation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // bytes sig = 1 [json_name = "sig"]; + // .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_sig(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_epoch(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string algo = 2 [json_name = "algo"]; + // uint64 offline = 2 [json_name = "offline"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_algo(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Signature.algo")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + offline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint32 version = 3 [json_name = "version"]; + // uint64 online = 3 [json_name = "online"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + online_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; + // double total_rewards = 4 [json_name = "totalRewards"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { + total_rewards_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -15454,69 +16496,78 @@ const char* Signature::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Signature::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EpochParticipation::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.Signature) + // @@protoc_insertion_point(serialize_to_array_start:vega.EpochParticipation) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bytes sig = 1 [json_name = "sig"]; - if (this->sig().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_sig(), target); + // .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { + if (this->has_epoch()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::epoch(this), target, stream); } - // string algo = 2 [json_name = "algo"]; - if (this->algo().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_algo().data(), static_cast(this->_internal_algo().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.Signature.algo"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_algo(), target); + // uint64 offline = 2 [json_name = "offline"]; + if (this->offline() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_offline(), target); } - // uint32 version = 3 [json_name = "version"]; - if (this->version() != 0) { + // uint64 online = 3 [json_name = "online"]; + if (this->online() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_online(), target); + } + + // double total_rewards = 4 [json_name = "totalRewards"]; + if (!(this->total_rewards() <= 0 && this->total_rewards() >= 0)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_version(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_total_rewards(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.Signature) + // @@protoc_insertion_point(serialize_to_array_end:vega.EpochParticipation) return target; } -size_t Signature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.Signature) +size_t EpochParticipation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.EpochParticipation) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes sig = 1 [json_name = "sig"]; - if (this->sig().size() > 0) { + // .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { + if (this->has_epoch()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_sig()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *epoch_); } - // string algo = 2 [json_name = "algo"]; - if (this->algo().size() > 0) { + // uint64 offline = 2 [json_name = "offline"]; + if (this->offline() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_algo()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_offline()); } - // uint32 version = 3 [json_name = "version"]; - if (this->version() != 0) { + // uint64 online = 3 [json_name = "online"]; + if (this->online() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_version()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_online()); + } + + // double total_rewards = 4 [json_name = "totalRewards"]; + if (!(this->total_rewards() <= 0 && this->total_rewards() >= 0)) { + total_size += 1 + 8; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -15528,169 +16579,166 @@ size_t Signature::ByteSizeLong() const { return total_size; } -void Signature::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.Signature) +void EpochParticipation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.EpochParticipation) GOOGLE_DCHECK_NE(&from, this); - const Signature* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EpochParticipation* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Signature) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.EpochParticipation) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Signature) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.EpochParticipation) MergeFrom(*source); } } -void Signature::MergeFrom(const Signature& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.Signature) +void EpochParticipation::MergeFrom(const EpochParticipation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.EpochParticipation) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.sig().size() > 0) { - _internal_set_sig(from._internal_sig()); + if (from.has_epoch()) { + _internal_mutable_epoch()->::vega::Epoch::MergeFrom(from._internal_epoch()); } - if (from.algo().size() > 0) { - _internal_set_algo(from._internal_algo()); + if (from.offline() != 0) { + _internal_set_offline(from._internal_offline()); } - if (from.version() != 0) { - _internal_set_version(from._internal_version()); + if (from.online() != 0) { + _internal_set_online(from._internal_online()); + } + if (!(from.total_rewards() <= 0 && from.total_rewards() >= 0)) { + _internal_set_total_rewards(from._internal_total_rewards()); } } -void Signature::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.Signature) +void EpochParticipation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.EpochParticipation) if (&from == this) return; Clear(); MergeFrom(from); } -void Signature::CopyFrom(const Signature& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.Signature) +void EpochParticipation::CopyFrom(const EpochParticipation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.EpochParticipation) if (&from == this) return; Clear(); MergeFrom(from); } -bool Signature::IsInitialized() const { +bool EpochParticipation::IsInitialized() const { return true; } -void Signature::InternalSwap(Signature* other) { +void EpochParticipation::InternalSwap(EpochParticipation* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - sig_.Swap(&other->sig_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - algo_.Swap(&other->algo_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(version_, other->version_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EpochParticipation, total_rewards_) + + sizeof(EpochParticipation::total_rewards_) + - PROTOBUF_FIELD_OFFSET(EpochParticipation, epoch_)>( + reinterpret_cast(&epoch_), + reinterpret_cast(&other->epoch_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Signature::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EpochParticipation::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class SignedBundle::_Internal { +class EpochData::_Internal { public: - static const ::vega::Signature& sig(const SignedBundle* msg); }; -const ::vega::Signature& -SignedBundle::_Internal::sig(const SignedBundle* msg) { - return *msg->sig_; -} -SignedBundle::SignedBundle(::PROTOBUF_NAMESPACE_ID::Arena* arena) +EpochData::EpochData(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.SignedBundle) + // @@protoc_insertion_point(arena_constructor:vega.EpochData) } -SignedBundle::SignedBundle(const SignedBundle& from) +EpochData::EpochData(const EpochData& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - tx_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_tx().empty()) { - tx_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx(), - GetArena()); - } - if (from._internal_has_sig()) { - sig_ = new ::vega::Signature(*from.sig_); - } else { - sig_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:vega.SignedBundle) + ::memcpy(&total_, &from.total_, + static_cast(reinterpret_cast(&online_) - + reinterpret_cast(&total_)) + sizeof(online_)); + // @@protoc_insertion_point(copy_constructor:vega.EpochData) } -void SignedBundle::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignedBundle_vega_2eproto.base); - tx_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sig_ = nullptr; +void EpochData::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&total_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&online_) - + reinterpret_cast(&total_)) + sizeof(online_)); } -SignedBundle::~SignedBundle() { - // @@protoc_insertion_point(destructor:vega.SignedBundle) +EpochData::~EpochData() { + // @@protoc_insertion_point(destructor:vega.EpochData) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SignedBundle::SharedDtor() { +void EpochData::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - tx_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete sig_; } -void SignedBundle::ArenaDtor(void* object) { - SignedBundle* _this = reinterpret_cast< SignedBundle* >(object); +void EpochData::ArenaDtor(void* object) { + EpochData* _this = reinterpret_cast< EpochData* >(object); (void)_this; } -void SignedBundle::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EpochData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void SignedBundle::SetCachedSize(int size) const { +void EpochData::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SignedBundle& SignedBundle::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignedBundle_vega_2eproto.base); +const EpochData& EpochData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EpochData_vega_2eproto.base); return *internal_default_instance(); } -void SignedBundle::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.SignedBundle) +void EpochData::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.EpochData) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - tx_.ClearToEmpty(); - if (GetArena() == nullptr && sig_ != nullptr) { - delete sig_; - } - sig_ = nullptr; + ::memset(&total_, 0, static_cast( + reinterpret_cast(&online_) - + reinterpret_cast(&total_)) + sizeof(online_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SignedBundle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EpochData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // bytes tx = 1 [json_name = "tx"]; + // int32 total = 1 [json_name = "total"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_tx(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.Signature sig = 2 [json_name = "sig"]; + // int32 offline = 2 [json_name = "offline"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_sig(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + offline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 online = 3 [json_name = "online"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + online_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -15716,54 +16764,65 @@ const char* SignedBundle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignedBundle::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EpochData::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.SignedBundle) + // @@protoc_insertion_point(serialize_to_array_start:vega.EpochData) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bytes tx = 1 [json_name = "tx"]; - if (this->tx().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_tx(), target); + // int32 total = 1 [json_name = "total"]; + if (this->total() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_total(), target); } - // .vega.Signature sig = 2 [json_name = "sig"]; - if (this->has_sig()) { + // int32 offline = 2 [json_name = "offline"]; + if (this->offline() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::sig(this), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_offline(), target); + } + + // int32 online = 3 [json_name = "online"]; + if (this->online() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_online(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.SignedBundle) + // @@protoc_insertion_point(serialize_to_array_end:vega.EpochData) return target; } -size_t SignedBundle::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.SignedBundle) +size_t EpochData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.EpochData) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes tx = 1 [json_name = "tx"]; - if (this->tx().size() > 0) { + // int32 total = 1 [json_name = "total"]; + if (this->total() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_tx()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_total()); } - // .vega.Signature sig = 2 [json_name = "sig"]; - if (this->has_sig()) { + // int32 offline = 2 [json_name = "offline"]; + if (this->offline() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *sig_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_offline()); + } + + // int32 online = 3 [json_name = "online"]; + if (this->online() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_online()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -15775,161 +16834,338 @@ size_t SignedBundle::ByteSizeLong() const { return total_size; } -void SignedBundle::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.SignedBundle) +void EpochData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.EpochData) GOOGLE_DCHECK_NE(&from, this); - const SignedBundle* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EpochData* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.SignedBundle) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.EpochData) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.SignedBundle) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.EpochData) MergeFrom(*source); } } -void SignedBundle::MergeFrom(const SignedBundle& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.SignedBundle) +void EpochData::MergeFrom(const EpochData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.EpochData) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.tx().size() > 0) { - _internal_set_tx(from._internal_tx()); + if (from.total() != 0) { + _internal_set_total(from._internal_total()); + } + if (from.offline() != 0) { + _internal_set_offline(from._internal_offline()); } - if (from.has_sig()) { - _internal_mutable_sig()->::vega::Signature::MergeFrom(from._internal_sig()); + if (from.online() != 0) { + _internal_set_online(from._internal_online()); } } -void SignedBundle::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.SignedBundle) +void EpochData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.EpochData) if (&from == this) return; Clear(); MergeFrom(from); } -void SignedBundle::CopyFrom(const SignedBundle& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.SignedBundle) +void EpochData::CopyFrom(const EpochData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.EpochData) if (&from == this) return; Clear(); MergeFrom(from); } -bool SignedBundle::IsInitialized() const { +bool EpochData::IsInitialized() const { return true; } -void SignedBundle::InternalSwap(SignedBundle* other) { +void EpochData::InternalSwap(EpochData* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - tx_.Swap(&other->tx_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(sig_, other->sig_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EpochData, online_) + + sizeof(EpochData::online_) + - PROTOBUF_FIELD_OFFSET(EpochData, total_)>( + reinterpret_cast(&total_), + reinterpret_cast(&other->total_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SignedBundle::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EpochData::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class NetworkParameter::_Internal { +class Node::_Internal { public: + static const ::vega::EpochData& epoch_data(const Node* msg); }; -NetworkParameter::NetworkParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +const ::vega::EpochData& +Node::_Internal::epoch_data(const Node* msg) { + return *msg->epoch_data_; +} +Node::Node(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + delagations_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.NetworkParameter) + // @@protoc_insertion_point(arena_constructor:vega.Node) } -NetworkParameter::NetworkParameter(const NetworkParameter& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +Node::Node(const Node& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + delagations_(from.delagations_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_key().empty()) { - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_value().empty()) { - value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_value(), + pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_pub_key().empty()) { + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pub_key(), GetArena()); } - // @@protoc_insertion_point(copy_constructor:vega.NetworkParameter) + info_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_info_url().empty()) { + info_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_info_url(), + GetArena()); + } + location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_location().empty()) { + location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_location(), + GetArena()); + } + staked_by_operator_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_staked_by_operator().empty()) { + staked_by_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_staked_by_operator(), + GetArena()); + } + staked_by_delegates_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_staked_by_delegates().empty()) { + staked_by_delegates_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_staked_by_delegates(), + GetArena()); + } + staked_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_staked_total().empty()) { + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_staked_total(), + GetArena()); + } + max_intended_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_max_intended_stake().empty()) { + max_intended_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_max_intended_stake(), + GetArena()); + } + pending_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_pending_stake().empty()) { + pending_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pending_stake(), + GetArena()); + } + if (from._internal_has_epoch_data()) { + epoch_data_ = new ::vega::EpochData(*from.epoch_data_); + } else { + epoch_data_ = nullptr; + } + status_ = from.status_; + // @@protoc_insertion_point(copy_constructor:vega.Node) } -void NetworkParameter::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NetworkParameter_vega_2eproto.base); - key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void Node::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Node_vega_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_by_operator_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_by_delegates_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + max_intended_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pending_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&epoch_data_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&epoch_data_)) + sizeof(status_)); } -NetworkParameter::~NetworkParameter() { - // @@protoc_insertion_point(destructor:vega.NetworkParameter) +Node::~Node() { + // @@protoc_insertion_point(destructor:vega.Node) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NetworkParameter::SharedDtor() { +void Node::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void NetworkParameter::ArenaDtor(void* object) { - NetworkParameter* _this = reinterpret_cast< NetworkParameter* >(object); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pub_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + location_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_by_operator_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_by_delegates_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + staked_total_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + max_intended_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pending_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete epoch_data_; +} + +void Node::ArenaDtor(void* object) { + Node* _this = reinterpret_cast< Node* >(object); (void)_this; } -void NetworkParameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void NetworkParameter::SetCachedSize(int size) const { +void Node::SetCachedSize(int size) const { _cached_size_.Set(size); } -const NetworkParameter& NetworkParameter::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetworkParameter_vega_2eproto.base); +const Node& Node::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Node_vega_2eproto.base); return *internal_default_instance(); } -void NetworkParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.NetworkParameter) +void Node::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Node) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - key_.ClearToEmpty(); - value_.ClearToEmpty(); + delagations_.Clear(); + id_.ClearToEmpty(); + pub_key_.ClearToEmpty(); + info_url_.ClearToEmpty(); + location_.ClearToEmpty(); + staked_by_operator_.ClearToEmpty(); + staked_by_delegates_.ClearToEmpty(); + staked_total_.ClearToEmpty(); + max_intended_stake_.ClearToEmpty(); + pending_stake_.ClearToEmpty(); + if (GetArena() == nullptr && epoch_data_ != nullptr) { + delete epoch_data_; + } + epoch_data_ = nullptr; + status_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NetworkParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string key = 1 [json_name = "key"]; + // string id = 1 [json_name = "id"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_key(); + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string pub_key = 2 [json_name = "pubKey", (.validator.field) = { + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_pub_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.pub_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string info_url = 3 [json_name = "infoUrl"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_info_url(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.info_url")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string location = 4 [json_name = "location"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_location(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.location")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string staked_by_operator = 5 [json_name = "stakedByOperator"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_staked_by_operator(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.staked_by_operator")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_staked_by_delegates(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NetworkParameter.key")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.staked_by_delegates")); CHK_(ptr); } else goto handle_unusual; continue; - // string value = 2 [json_name = "value"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_value(); + // string staked_total = 7 [json_name = "stakedTotal"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_staked_total(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NetworkParameter.value")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.staked_total")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_max_intended_stake(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.max_intended_stake")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string pending_stake = 9 [json_name = "pendingStake"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + auto str = _internal_mutable_pending_stake(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.pending_stake")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_epoch_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); + _internal_set_status(static_cast<::vega::NodeStatus>(val)); + } else goto handle_unusual; + continue; + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_delagations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); } else goto handle_unusual; continue; default: { @@ -15954,60 +17190,222 @@ const char* NetworkParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NetworkParameter::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Node::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.NetworkParameter) + // @@protoc_insertion_point(serialize_to_array_start:vega.Node) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string key = 1 [json_name = "key"]; - if (this->key().size() > 0) { + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_key().data(), static_cast(this->_internal_key().length()), + this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.NetworkParameter.key"); + "vega.Node.id"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_key(), target); + 1, this->_internal_id(), target); } - // string value = 2 [json_name = "value"]; - if (this->value().size() > 0) { + // string pub_key = 2 [json_name = "pubKey", (.validator.field) = { + if (this->pub_key().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), + this->_internal_pub_key().data(), static_cast(this->_internal_pub_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.NetworkParameter.value"); + "vega.Node.pub_key"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_value(), target); + 2, this->_internal_pub_key(), target); + } + + // string info_url = 3 [json_name = "infoUrl"]; + if (this->info_url().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_info_url().data(), static_cast(this->_internal_info_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.info_url"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_info_url(), target); + } + + // string location = 4 [json_name = "location"]; + if (this->location().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.location"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_location(), target); + } + + // string staked_by_operator = 5 [json_name = "stakedByOperator"]; + if (this->staked_by_operator().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_staked_by_operator().data(), static_cast(this->_internal_staked_by_operator().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.staked_by_operator"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_staked_by_operator(), target); + } + + // string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + if (this->staked_by_delegates().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_staked_by_delegates().data(), static_cast(this->_internal_staked_by_delegates().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.staked_by_delegates"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_staked_by_delegates(), target); + } + + // string staked_total = 7 [json_name = "stakedTotal"]; + if (this->staked_total().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_staked_total().data(), static_cast(this->_internal_staked_total().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.staked_total"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_staked_total(), target); + } + + // string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + if (this->max_intended_stake().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_max_intended_stake().data(), static_cast(this->_internal_max_intended_stake().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.max_intended_stake"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_max_intended_stake(), target); + } + + // string pending_stake = 9 [json_name = "pendingStake"]; + if (this->pending_stake().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pending_stake().data(), static_cast(this->_internal_pending_stake().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.pending_stake"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_pending_stake(), target); + } + + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { + if (this->has_epoch_data()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::epoch_data(this), target, stream); + } + + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { + if (this->status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 11, this->_internal_status(), target); + } + + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_delagations_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, this->_internal_delagations(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.NetworkParameter) + // @@protoc_insertion_point(serialize_to_array_end:vega.Node) return target; } -size_t NetworkParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.NetworkParameter) +size_t Node::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Node) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string key = 1 [json_name = "key"]; - if (this->key().size() > 0) { + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + total_size += 1UL * this->_internal_delagations_size(); + for (const auto& msg : this->delagations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string id = 1 [json_name = "id"]; + if (this->id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_key()); + this->_internal_id()); } - // string value = 2 [json_name = "value"]; - if (this->value().size() > 0) { + // string pub_key = 2 [json_name = "pubKey", (.validator.field) = { + if (this->pub_key().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); + this->_internal_pub_key()); + } + + // string info_url = 3 [json_name = "infoUrl"]; + if (this->info_url().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_info_url()); + } + + // string location = 4 [json_name = "location"]; + if (this->location().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); + } + + // string staked_by_operator = 5 [json_name = "stakedByOperator"]; + if (this->staked_by_operator().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_staked_by_operator()); + } + + // string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + if (this->staked_by_delegates().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_staked_by_delegates()); + } + + // string staked_total = 7 [json_name = "stakedTotal"]; + if (this->staked_total().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_staked_total()); + } + + // string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + if (this->max_intended_stake().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_max_intended_stake()); + } + + // string pending_stake = 9 [json_name = "pendingStake"]; + if (this->pending_stake().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pending_stake()); + } + + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { + if (this->has_epoch_data()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *epoch_data_); + } + + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { + if (this->status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -16019,160 +17417,226 @@ size_t NetworkParameter::ByteSizeLong() const { return total_size; } -void NetworkParameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.NetworkParameter) +void Node::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Node) GOOGLE_DCHECK_NE(&from, this); - const NetworkParameter* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Node* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.NetworkParameter) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Node) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.NetworkParameter) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Node) MergeFrom(*source); } } -void NetworkParameter::MergeFrom(const NetworkParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.NetworkParameter) +void Node::MergeFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Node) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.key().size() > 0) { - _internal_set_key(from._internal_key()); + delagations_.MergeFrom(from.delagations_); + if (from.id().size() > 0) { + _internal_set_id(from._internal_id()); } - if (from.value().size() > 0) { - _internal_set_value(from._internal_value()); + if (from.pub_key().size() > 0) { + _internal_set_pub_key(from._internal_pub_key()); + } + if (from.info_url().size() > 0) { + _internal_set_info_url(from._internal_info_url()); + } + if (from.location().size() > 0) { + _internal_set_location(from._internal_location()); + } + if (from.staked_by_operator().size() > 0) { + _internal_set_staked_by_operator(from._internal_staked_by_operator()); + } + if (from.staked_by_delegates().size() > 0) { + _internal_set_staked_by_delegates(from._internal_staked_by_delegates()); + } + if (from.staked_total().size() > 0) { + _internal_set_staked_total(from._internal_staked_total()); + } + if (from.max_intended_stake().size() > 0) { + _internal_set_max_intended_stake(from._internal_max_intended_stake()); + } + if (from.pending_stake().size() > 0) { + _internal_set_pending_stake(from._internal_pending_stake()); + } + if (from.has_epoch_data()) { + _internal_mutable_epoch_data()->::vega::EpochData::MergeFrom(from._internal_epoch_data()); + } + if (from.status() != 0) { + _internal_set_status(from._internal_status()); } } -void NetworkParameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.NetworkParameter) +void Node::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Node) if (&from == this) return; Clear(); MergeFrom(from); } -void NetworkParameter::CopyFrom(const NetworkParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.NetworkParameter) +void Node::CopyFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Node) if (&from == this) return; Clear(); MergeFrom(from); } -bool NetworkParameter::IsInitialized() const { +bool Node::IsInitialized() const { return true; } -void NetworkParameter::InternalSwap(NetworkParameter* other) { +void Node::InternalSwap(Node* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + delagations_.InternalSwap(&other->delagations_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + pub_key_.Swap(&other->pub_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + info_url_.Swap(&other->info_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + location_.Swap(&other->location_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + staked_by_operator_.Swap(&other->staked_by_operator_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + staked_by_delegates_.Swap(&other->staked_by_delegates_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + staked_total_.Swap(&other->staked_total_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + max_intended_stake_.Swap(&other->max_intended_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + pending_stake_.Swap(&other->pending_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Node, status_) + + sizeof(Node::status_) + - PROTOBUF_FIELD_OFFSET(Node, epoch_data_)>( + reinterpret_cast(&epoch_data_), + reinterpret_cast(&other->epoch_data_)); } -::PROTOBUF_NAMESPACE_ID::Metadata NetworkParameter::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Node::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityOrder::_Internal { +class NodeData::_Internal { public: }; -LiquidityOrder::LiquidityOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena) +NodeData::NodeData(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.LiquidityOrder) + // @@protoc_insertion_point(arena_constructor:vega.NodeData) } -LiquidityOrder::LiquidityOrder(const LiquidityOrder& from) +NodeData::NodeData(const NodeData& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&reference_, &from.reference_, - static_cast(reinterpret_cast(&offset_) - - reinterpret_cast(&reference_)) + sizeof(offset_)); - // @@protoc_insertion_point(copy_constructor:vega.LiquidityOrder) + staked_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_staked_total().empty()) { + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_staked_total(), + GetArena()); + } + ::memcpy(&total_nodes_, &from.total_nodes_, + static_cast(reinterpret_cast(&uptime_) - + reinterpret_cast(&total_nodes_)) + sizeof(uptime_)); + // @@protoc_insertion_point(copy_constructor:vega.NodeData) } -void LiquidityOrder::SharedCtor() { +void NodeData::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NodeData_vega_2eproto.base); + staked_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&reference_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&offset_) - - reinterpret_cast(&reference_)) + sizeof(offset_)); + reinterpret_cast(&total_nodes_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&uptime_) - + reinterpret_cast(&total_nodes_)) + sizeof(uptime_)); } -LiquidityOrder::~LiquidityOrder() { - // @@protoc_insertion_point(destructor:vega.LiquidityOrder) +NodeData::~NodeData() { + // @@protoc_insertion_point(destructor:vega.NodeData) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityOrder::SharedDtor() { +void NodeData::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + staked_total_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void LiquidityOrder::ArenaDtor(void* object) { - LiquidityOrder* _this = reinterpret_cast< LiquidityOrder* >(object); +void NodeData::ArenaDtor(void* object) { + NodeData* _this = reinterpret_cast< NodeData* >(object); (void)_this; } -void LiquidityOrder::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void NodeData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityOrder::SetCachedSize(int size) const { +void NodeData::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityOrder& LiquidityOrder::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityOrder_vega_2eproto.base); +const NodeData& NodeData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NodeData_vega_2eproto.base); return *internal_default_instance(); } -void LiquidityOrder::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.LiquidityOrder) +void NodeData::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.NodeData) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&reference_, 0, static_cast( - reinterpret_cast(&offset_) - - reinterpret_cast(&reference_)) + sizeof(offset_)); + staked_total_.ClearToEmpty(); + ::memset(&total_nodes_, 0, static_cast( + reinterpret_cast(&uptime_) - + reinterpret_cast(&total_nodes_)) + sizeof(uptime_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityOrder::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NodeData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .vega.PeggedReference reference = 1 [json_name = "reference"]; + // string staked_total = 1 [json_name = "stakedTotal"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_staked_total(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NodeData.staked_total")); CHK_(ptr); - _internal_set_reference(static_cast<::vega::PeggedReference>(val)); } else goto handle_unusual; continue; - // uint32 proportion = 2 [json_name = "proportion"]; + // uint32 total_nodes = 2 [json_name = "totalNodes"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - proportion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + total_nodes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // int64 offset = 3 [json_name = "offset"]; + // uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + inactive_nodes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + validating_nodes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; + // float uptime = 5 [json_name = "uptime"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { + uptime_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -16195,65 +17659,93 @@ const char* LiquidityOrder::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityOrder::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityOrder) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +::PROTOBUF_NAMESPACE_ID::uint8* NodeData::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.NodeData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string staked_total = 1 [json_name = "stakedTotal"]; + if (this->staked_total().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_staked_total().data(), static_cast(this->_internal_staked_total().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.NodeData.staked_total"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_staked_total(), target); + } + + // uint32 total_nodes = 2 [json_name = "totalNodes"]; + if (this->total_nodes() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_total_nodes(), target); + } - // .vega.PeggedReference reference = 1 [json_name = "reference"]; - if (this->reference() != 0) { + // uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + if (this->inactive_nodes() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_reference(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_inactive_nodes(), target); } - // uint32 proportion = 2 [json_name = "proportion"]; - if (this->proportion() != 0) { + // uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + if (this->validating_nodes() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_proportion(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_validating_nodes(), target); } - // int64 offset = 3 [json_name = "offset"]; - if (this->offset() != 0) { + // float uptime = 5 [json_name = "uptime"]; + if (!(this->uptime() <= 0 && this->uptime() >= 0)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_offset(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_uptime(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityOrder) + // @@protoc_insertion_point(serialize_to_array_end:vega.NodeData) return target; } -size_t LiquidityOrder::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityOrder) +size_t NodeData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.NodeData) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .vega.PeggedReference reference = 1 [json_name = "reference"]; - if (this->reference() != 0) { + // string staked_total = 1 [json_name = "stakedTotal"]; + if (this->staked_total().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reference()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_staked_total()); } - // uint32 proportion = 2 [json_name = "proportion"]; - if (this->proportion() != 0) { + // uint32 total_nodes = 2 [json_name = "totalNodes"]; + if (this->total_nodes() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_proportion()); + this->_internal_total_nodes()); } - // int64 offset = 3 [json_name = "offset"]; - if (this->offset() != 0) { + // uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + if (this->inactive_nodes() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_offset()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_inactive_nodes()); + } + + // uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + if (this->validating_nodes() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_validating_nodes()); + } + + // float uptime = 5 [json_name = "uptime"]; + if (!(this->uptime() <= 0 && this->uptime() >= 0)) { + total_size += 1 + 4; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -16265,173 +17757,208 @@ size_t LiquidityOrder::ByteSizeLong() const { return total_size; } -void LiquidityOrder::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityOrder) +void NodeData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.NodeData) GOOGLE_DCHECK_NE(&from, this); - const LiquidityOrder* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const NodeData* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityOrder) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.NodeData) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityOrder) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.NodeData) MergeFrom(*source); } } -void LiquidityOrder::MergeFrom(const LiquidityOrder& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityOrder) +void NodeData::MergeFrom(const NodeData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.NodeData) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.reference() != 0) { - _internal_set_reference(from._internal_reference()); + if (from.staked_total().size() > 0) { + _internal_set_staked_total(from._internal_staked_total()); } - if (from.proportion() != 0) { - _internal_set_proportion(from._internal_proportion()); + if (from.total_nodes() != 0) { + _internal_set_total_nodes(from._internal_total_nodes()); } - if (from.offset() != 0) { - _internal_set_offset(from._internal_offset()); + if (from.inactive_nodes() != 0) { + _internal_set_inactive_nodes(from._internal_inactive_nodes()); + } + if (from.validating_nodes() != 0) { + _internal_set_validating_nodes(from._internal_validating_nodes()); + } + if (!(from.uptime() <= 0 && from.uptime() >= 0)) { + _internal_set_uptime(from._internal_uptime()); } } -void LiquidityOrder::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityOrder) +void NodeData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.NodeData) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityOrder::CopyFrom(const LiquidityOrder& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityOrder) +void NodeData::CopyFrom(const NodeData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.NodeData) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityOrder::IsInitialized() const { +bool NodeData::IsInitialized() const { return true; } -void LiquidityOrder::InternalSwap(LiquidityOrder* other) { +void NodeData::InternalSwap(NodeData* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + staked_total_.Swap(&other->staked_total_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LiquidityOrder, offset_) - + sizeof(LiquidityOrder::offset_) - - PROTOBUF_FIELD_OFFSET(LiquidityOrder, reference_)>( - reinterpret_cast(&reference_), - reinterpret_cast(&other->reference_)); + PROTOBUF_FIELD_OFFSET(NodeData, uptime_) + + sizeof(NodeData::uptime_) + - PROTOBUF_FIELD_OFFSET(NodeData, total_nodes_)>( + reinterpret_cast(&total_nodes_), + reinterpret_cast(&other->total_nodes_)); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityOrder::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NodeData::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityOrderReference::_Internal { +class Delegation::_Internal { public: - static const ::vega::LiquidityOrder& liquidity_order(const LiquidityOrderReference* msg); }; -const ::vega::LiquidityOrder& -LiquidityOrderReference::_Internal::liquidity_order(const LiquidityOrderReference* msg) { - return *msg->liquidity_order_; -} -LiquidityOrderReference::LiquidityOrderReference(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Delegation::Delegation(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.LiquidityOrderReference) + // @@protoc_insertion_point(arena_constructor:vega.Delegation) } -LiquidityOrderReference::LiquidityOrderReference(const LiquidityOrderReference& from) +Delegation::Delegation(const Delegation& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_order_id().empty()) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_order_id(), + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), GetArena()); } - if (from._internal_has_liquidity_order()) { - liquidity_order_ = new ::vega::LiquidityOrder(*from.liquidity_order_); - } else { - liquidity_order_ = nullptr; + node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_node_id().empty()) { + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), + GetArena()); } - // @@protoc_insertion_point(copy_constructor:vega.LiquidityOrderReference) + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_epoch_seq().empty()) { + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_epoch_seq(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.Delegation) } -void LiquidityOrderReference::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityOrderReference_vega_2eproto.base); - order_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - liquidity_order_ = nullptr; +void Delegation::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Delegation_vega_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -LiquidityOrderReference::~LiquidityOrderReference() { - // @@protoc_insertion_point(destructor:vega.LiquidityOrderReference) +Delegation::~Delegation() { + // @@protoc_insertion_point(destructor:vega.Delegation) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityOrderReference::SharedDtor() { +void Delegation::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - order_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete liquidity_order_; + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + epoch_seq_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void LiquidityOrderReference::ArenaDtor(void* object) { - LiquidityOrderReference* _this = reinterpret_cast< LiquidityOrderReference* >(object); +void Delegation::ArenaDtor(void* object) { + Delegation* _this = reinterpret_cast< Delegation* >(object); (void)_this; } -void LiquidityOrderReference::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void Delegation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityOrderReference::SetCachedSize(int size) const { +void Delegation::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityOrderReference& LiquidityOrderReference::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityOrderReference_vega_2eproto.base); +const Delegation& Delegation::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Delegation_vega_2eproto.base); return *internal_default_instance(); } -void LiquidityOrderReference::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.LiquidityOrderReference) +void Delegation::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.Delegation) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - order_id_.ClearToEmpty(); - if (GetArena() == nullptr && liquidity_order_ != nullptr) { - delete liquidity_order_; - } - liquidity_order_ = nullptr; + party_.ClearToEmpty(); + node_id_.ClearToEmpty(); + amount_.ClearToEmpty(); + epoch_seq_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityOrderReference::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Delegation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string order_id = 1 [json_name = "orderId"]; + // string party = 1 [json_name = "party"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_order_id(); + auto str = _internal_mutable_party(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityOrderReference.order_id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Delegation.party")); CHK_(ptr); } else goto handle_unusual; continue; - // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + // string node_id = 2 [json_name = "nodeId"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_liquidity_order(), ptr); + auto str = _internal_mutable_node_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Delegation.node_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string amount = 3 [json_name = "amount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Delegation.amount")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string epoch_seq = 4 [json_name = "epochSeq"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_epoch_seq(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Delegation.epoch_seq")); CHK_(ptr); } else goto handle_unusual; continue; @@ -16457,58 +17984,94 @@ const char* LiquidityOrderReference::_InternalParse(const char* ptr, ::PROTOBUF_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityOrderReference::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* Delegation::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityOrderReference) + // @@protoc_insertion_point(serialize_to_array_start:vega.Delegation) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string order_id = 1 [json_name = "orderId"]; - if (this->order_id().size() > 0) { + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_order_id().data(), static_cast(this->_internal_order_id().length()), + this->_internal_party().data(), static_cast(this->_internal_party().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityOrderReference.order_id"); + "vega.Delegation.party"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_order_id(), target); + 1, this->_internal_party(), target); } - // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - if (this->has_liquidity_order()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::liquidity_order(this), target, stream); + // string node_id = 2 [json_name = "nodeId"]; + if (this->node_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_node_id().data(), static_cast(this->_internal_node_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Delegation.node_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_node_id(), target); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Delegation.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); + } + + // string epoch_seq = 4 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_epoch_seq().data(), static_cast(this->_internal_epoch_seq().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Delegation.epoch_seq"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_epoch_seq(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityOrderReference) + // @@protoc_insertion_point(serialize_to_array_end:vega.Delegation) return target; } -size_t LiquidityOrderReference::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityOrderReference) +size_t Delegation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.Delegation) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string order_id = 1 [json_name = "orderId"]; - if (this->order_id().size() > 0) { + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_order_id()); + this->_internal_party()); } - // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - if (this->has_liquidity_order()) { + // string node_id = 2 [json_name = "nodeId"]; + if (this->node_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *liquidity_order_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_node_id()); + } + + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + + // string epoch_seq = 4 [json_name = "epochSeq"]; + if (this->epoch_seq().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_epoch_seq()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -16520,199 +18083,185 @@ size_t LiquidityOrderReference::ByteSizeLong() const { return total_size; } -void LiquidityOrderReference::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityOrderReference) +void Delegation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.Delegation) GOOGLE_DCHECK_NE(&from, this); - const LiquidityOrderReference* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Delegation* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityOrderReference) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.Delegation) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityOrderReference) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.Delegation) MergeFrom(*source); } } -void LiquidityOrderReference::MergeFrom(const LiquidityOrderReference& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityOrderReference) +void Delegation::MergeFrom(const Delegation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.Delegation) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.order_id().size() > 0) { - _internal_set_order_id(from._internal_order_id()); + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); } - if (from.has_liquidity_order()) { - _internal_mutable_liquidity_order()->::vega::LiquidityOrder::MergeFrom(from._internal_liquidity_order()); + if (from.node_id().size() > 0) { + _internal_set_node_id(from._internal_node_id()); + } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.epoch_seq().size() > 0) { + _internal_set_epoch_seq(from._internal_epoch_seq()); } } -void LiquidityOrderReference::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityOrderReference) +void Delegation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.Delegation) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityOrderReference::CopyFrom(const LiquidityOrderReference& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityOrderReference) +void Delegation::CopyFrom(const Delegation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.Delegation) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityOrderReference::IsInitialized() const { +bool Delegation::IsInitialized() const { return true; } -void LiquidityOrderReference::InternalSwap(LiquidityOrderReference* other) { +void Delegation::InternalSwap(Delegation* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - order_id_.Swap(&other->order_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(liquidity_order_, other->liquidity_order_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + epoch_seq_.Swap(&other->epoch_seq_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityOrderReference::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Delegation::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class LiquidityProvision::_Internal { +class RewardDetails::_Internal { public: }; -LiquidityProvision::LiquidityProvision(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - sells_(arena), - buys_(arena) { +RewardDetails::RewardDetails(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.LiquidityProvision) + // @@protoc_insertion_point(arena_constructor:vega.RewardDetails) } -LiquidityProvision::LiquidityProvision(const LiquidityProvision& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - sells_(from.sells_), - buys_(from.buys_) { +RewardDetails::RewardDetails(const RewardDetails& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_id().empty()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), + asset_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset_id().empty()) { + asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset_id(), GetArena()); } party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_party_id().empty()) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), - GetArena()); - } - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_market_id().empty()) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), - GetArena()); - } - fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_fee().empty()) { - fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fee(), + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_version().empty()) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(), + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), GetArena()); } - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_reference().empty()) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), + percentage_of_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_percentage_of_total().empty()) { + percentage_of_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_percentage_of_total(), GetArena()); } - ::memcpy(&created_at_, &from.created_at_, - static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&created_at_)) + sizeof(status_)); - // @@protoc_insertion_point(copy_constructor:vega.LiquidityProvision) + ::memcpy(&epoch_, &from.epoch_, + static_cast(reinterpret_cast(&received_at_) - + reinterpret_cast(&epoch_)) + sizeof(received_at_)); + // @@protoc_insertion_point(copy_constructor:vega.RewardDetails) } -void LiquidityProvision::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProvision_vega_2eproto.base); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void RewardDetails::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RewardDetails_vega_2eproto.base); + asset_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + percentage_of_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&created_at_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&created_at_)) + sizeof(status_)); + reinterpret_cast(&epoch_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&received_at_) - + reinterpret_cast(&epoch_)) + sizeof(received_at_)); } -LiquidityProvision::~LiquidityProvision() { - // @@protoc_insertion_point(destructor:vega.LiquidityProvision) +RewardDetails::~RewardDetails() { + // @@protoc_insertion_point(destructor:vega.RewardDetails) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiquidityProvision::SharedDtor() { +void RewardDetails::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + percentage_of_total_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void LiquidityProvision::ArenaDtor(void* object) { - LiquidityProvision* _this = reinterpret_cast< LiquidityProvision* >(object); +void RewardDetails::ArenaDtor(void* object) { + RewardDetails* _this = reinterpret_cast< RewardDetails* >(object); (void)_this; } -void LiquidityProvision::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void RewardDetails::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void LiquidityProvision::SetCachedSize(int size) const { +void RewardDetails::SetCachedSize(int size) const { _cached_size_.Set(size); } -const LiquidityProvision& LiquidityProvision::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LiquidityProvision_vega_2eproto.base); +const RewardDetails& RewardDetails::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RewardDetails_vega_2eproto.base); return *internal_default_instance(); } -void LiquidityProvision::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.LiquidityProvision) +void RewardDetails::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.RewardDetails) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sells_.Clear(); - buys_.Clear(); - id_.ClearToEmpty(); + asset_id_.ClearToEmpty(); party_id_.ClearToEmpty(); - market_id_.ClearToEmpty(); - fee_.ClearToEmpty(); - version_.ClearToEmpty(); - reference_.ClearToEmpty(); - ::memset(&created_at_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&created_at_)) + sizeof(status_)); + amount_.ClearToEmpty(); + percentage_of_total_.ClearToEmpty(); + ::memset(&epoch_, 0, static_cast( + reinterpret_cast(&received_at_) - + reinterpret_cast(&epoch_)) + sizeof(received_at_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiquidityProvision::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RewardDetails::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string id = 1 [json_name = "id"]; + // string asset_id = 1 [json_name = "assetId"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_id(); + auto str = _internal_mutable_asset_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardDetails.asset_id")); CHK_(ptr); } else goto handle_unusual; continue; @@ -16721,96 +18270,39 @@ const char* LiquidityProvision::_InternalParse(const char* ptr, ::PROTOBUF_NAMES if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_party_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.party_id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardDetails.party_id")); CHK_(ptr); } else goto handle_unusual; continue; - // int64 created_at = 3 [json_name = "createdAt"]; + // uint64 epoch = 3 [json_name = "epoch"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - created_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + epoch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // int64 updated_at = 4 [json_name = "updatedAt"]; + // string amount = 4 [json_name = "amount"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - updated_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardDetails.amount")); CHK_(ptr); } else goto handle_unusual; continue; - // string market_id = 5 [json_name = "marketId", (.validator.field) = { + // string percentage_of_total = 5 [json_name = "percentageOfTotal"]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_market_id(); + auto str = _internal_mutable_percentage_of_total(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.market_id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardDetails.percentage_of_total")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + // int64 received_at = 6 [json_name = "receivedAt"]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - commitment_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string fee = 7 [json_name = "fee"]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - auto str = _internal_mutable_fee(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.fee")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_sells(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else goto handle_unusual; - continue; - // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_buys(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else goto handle_unusual; - continue; - // string version = 10 [json_name = "version"]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - auto str = _internal_mutable_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.version")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_status(static_cast<::vega::LiquidityProvision_Status>(val)); - } else goto handle_unusual; - continue; - // string reference = 12 [json_name = "reference"]; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { - auto str = _internal_mutable_reference(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.reference")); + received_at_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -16836,20 +18328,20 @@ const char* LiquidityProvision::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvision::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* RewardDetails::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.LiquidityProvision) + // @@protoc_insertion_point(serialize_to_array_start:vega.RewardDetails) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { + // string asset_id = 1 [json_name = "assetId"]; + if (this->asset_id().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_id().data(), static_cast(this->_internal_id().length()), + this->_internal_asset_id().data(), static_cast(this->_internal_asset_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.id"); + "vega.RewardDetails.asset_id"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_id(), target); + 1, this->_internal_asset_id(), target); } // string party_id = 2 [json_name = "partyId"]; @@ -16857,189 +18349,99 @@ ::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvision::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_party_id().data(), static_cast(this->_internal_party_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.party_id"); + "vega.RewardDetails.party_id"); target = stream->WriteStringMaybeAliased( 2, this->_internal_party_id(), target); } - // int64 created_at = 3 [json_name = "createdAt"]; - if (this->created_at() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_created_at(), target); - } - - // int64 updated_at = 4 [json_name = "updatedAt"]; - if (this->updated_at() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_updated_at(), target); - } - - // string market_id = 5 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_market_id().data(), static_cast(this->_internal_market_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.market_id"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_market_id(), target); - } - - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { + // uint64 epoch = 3 [json_name = "epoch"]; + if (this->epoch() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_commitment_amount(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_epoch(), target); } - // string fee = 7 [json_name = "fee"]; - if (this->fee().size() > 0) { + // string amount = 4 [json_name = "amount"]; + if (this->amount().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_fee().data(), static_cast(this->_internal_fee().length()), + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.fee"); + "vega.RewardDetails.amount"); target = stream->WriteStringMaybeAliased( - 7, this->_internal_fee(), target); - } - - // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_sells_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, this->_internal_sells(i), target, stream); - } - - // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - for (unsigned int i = 0, - n = static_cast(this->_internal_buys_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, this->_internal_buys(i), target, stream); + 4, this->_internal_amount(), target); } - // string version = 10 [json_name = "version"]; - if (this->version().size() > 0) { + // string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + if (this->percentage_of_total().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_version().data(), static_cast(this->_internal_version().length()), + this->_internal_percentage_of_total().data(), static_cast(this->_internal_percentage_of_total().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.version"); + "vega.RewardDetails.percentage_of_total"); target = stream->WriteStringMaybeAliased( - 10, this->_internal_version(), target); + 5, this->_internal_percentage_of_total(), target); } - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - if (this->status() != 0) { + // int64 received_at = 6 [json_name = "receivedAt"]; + if (this->received_at() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 11, this->_internal_status(), target); - } - - // string reference = 12 [json_name = "reference"]; - if (this->reference().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_reference().data(), static_cast(this->_internal_reference().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.LiquidityProvision.reference"); - target = stream->WriteStringMaybeAliased( - 12, this->_internal_reference(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_received_at(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.LiquidityProvision) + // @@protoc_insertion_point(serialize_to_array_end:vega.RewardDetails) return target; } -size_t LiquidityProvision::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.LiquidityProvision) +size_t RewardDetails::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.RewardDetails) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - total_size += 1UL * this->_internal_sells_size(); - for (const auto& msg : this->sells_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - total_size += 1UL * this->_internal_buys_size(); - for (const auto& msg : this->buys_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string id = 1 [json_name = "id"]; - if (this->id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string party_id = 2 [json_name = "partyId"]; - if (this->party_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); - } - - // string market_id = 5 [json_name = "marketId", (.validator.field) = { - if (this->market_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); - } - - // string fee = 7 [json_name = "fee"]; - if (this->fee().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_fee()); - } - - // string version = 10 [json_name = "version"]; - if (this->version().size() > 0) { + // string asset_id = 1 [json_name = "assetId"]; + if (this->asset_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_version()); + this->_internal_asset_id()); } - - // string reference = 12 [json_name = "reference"]; - if (this->reference().size() > 0) { + + // string party_id = 2 [json_name = "partyId"]; + if (this->party_id().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_reference()); + this->_internal_party_id()); } - // int64 created_at = 3 [json_name = "createdAt"]; - if (this->created_at() != 0) { + // string amount = 4 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_created_at()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); } - // int64 updated_at = 4 [json_name = "updatedAt"]; - if (this->updated_at() != 0) { + // string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + if (this->percentage_of_total().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_updated_at()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_percentage_of_total()); } - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { + // uint64 epoch = 3 [json_name = "epoch"]; + if (this->epoch() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_commitment_amount()); + this->_internal_epoch()); } - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - if (this->status() != 0) { + // int64 received_at = 6 [json_name = "receivedAt"]; + if (this->received_at() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_received_at()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -17051,225 +18453,195 @@ size_t LiquidityProvision::ByteSizeLong() const { return total_size; } -void LiquidityProvision::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.LiquidityProvision) +void RewardDetails::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.RewardDetails) GOOGLE_DCHECK_NE(&from, this); - const LiquidityProvision* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const RewardDetails* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.LiquidityProvision) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.RewardDetails) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.LiquidityProvision) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.RewardDetails) MergeFrom(*source); } } -void LiquidityProvision::MergeFrom(const LiquidityProvision& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.LiquidityProvision) +void RewardDetails::MergeFrom(const RewardDetails& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.RewardDetails) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - sells_.MergeFrom(from.sells_); - buys_.MergeFrom(from.buys_); - if (from.id().size() > 0) { - _internal_set_id(from._internal_id()); + if (from.asset_id().size() > 0) { + _internal_set_asset_id(from._internal_asset_id()); } if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } - if (from.market_id().size() > 0) { - _internal_set_market_id(from._internal_market_id()); - } - if (from.fee().size() > 0) { - _internal_set_fee(from._internal_fee()); - } - if (from.version().size() > 0) { - _internal_set_version(from._internal_version()); - } - if (from.reference().size() > 0) { - _internal_set_reference(from._internal_reference()); - } - if (from.created_at() != 0) { - _internal_set_created_at(from._internal_created_at()); + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); } - if (from.updated_at() != 0) { - _internal_set_updated_at(from._internal_updated_at()); + if (from.percentage_of_total().size() > 0) { + _internal_set_percentage_of_total(from._internal_percentage_of_total()); } - if (from.commitment_amount() != 0) { - _internal_set_commitment_amount(from._internal_commitment_amount()); + if (from.epoch() != 0) { + _internal_set_epoch(from._internal_epoch()); } - if (from.status() != 0) { - _internal_set_status(from._internal_status()); + if (from.received_at() != 0) { + _internal_set_received_at(from._internal_received_at()); } } -void LiquidityProvision::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.LiquidityProvision) +void RewardDetails::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.RewardDetails) if (&from == this) return; Clear(); MergeFrom(from); } -void LiquidityProvision::CopyFrom(const LiquidityProvision& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.LiquidityProvision) +void RewardDetails::CopyFrom(const RewardDetails& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.RewardDetails) if (&from == this) return; Clear(); MergeFrom(from); } -bool LiquidityProvision::IsInitialized() const { +bool RewardDetails::IsInitialized() const { return true; } -void LiquidityProvision::InternalSwap(LiquidityProvision* other) { +void RewardDetails::InternalSwap(RewardDetails* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - sells_.InternalSwap(&other->sells_); - buys_.InternalSwap(&other->buys_); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + asset_id_.Swap(&other->asset_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - fee_.Swap(&other->fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + percentage_of_total_.Swap(&other->percentage_of_total_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LiquidityProvision, status_) - + sizeof(LiquidityProvision::status_) - - PROTOBUF_FIELD_OFFSET(LiquidityProvision, created_at_)>( - reinterpret_cast(&created_at_), - reinterpret_cast(&other->created_at_)); + PROTOBUF_FIELD_OFFSET(RewardDetails, received_at_) + + sizeof(RewardDetails::received_at_) + - PROTOBUF_FIELD_OFFSET(RewardDetails, epoch_)>( + reinterpret_cast(&epoch_), + reinterpret_cast(&other->epoch_)); } -::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProvision::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RewardDetails::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class EthereumConfig::_Internal { +class RewardPerAssetDetail::_Internal { public: }; -EthereumConfig::EthereumConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +RewardPerAssetDetail::RewardPerAssetDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + details_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:vega.EthereumConfig) + // @@protoc_insertion_point(arena_constructor:vega.RewardPerAssetDetail) } -EthereumConfig::EthereumConfig(const EthereumConfig& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +RewardPerAssetDetail::RewardPerAssetDetail(const RewardPerAssetDetail& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + details_(from.details_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - network_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_network_id().empty()) { - network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_network_id(), - GetArena()); - } - chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_chain_id().empty()) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chain_id(), + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_asset().empty()) { + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), GetArena()); } - bridge_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_bridge_address().empty()) { - bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bridge_address(), + total_for_asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_total_for_asset().empty()) { + total_for_asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_total_for_asset(), GetArena()); } - confirmations_ = from.confirmations_; - // @@protoc_insertion_point(copy_constructor:vega.EthereumConfig) + // @@protoc_insertion_point(copy_constructor:vega.RewardPerAssetDetail) } -void EthereumConfig::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EthereumConfig_vega_2eproto.base); - network_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - bridge_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - confirmations_ = 0u; +void RewardPerAssetDetail::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RewardPerAssetDetail_vega_2eproto.base); + asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + total_for_asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -EthereumConfig::~EthereumConfig() { - // @@protoc_insertion_point(destructor:vega.EthereumConfig) +RewardPerAssetDetail::~RewardPerAssetDetail() { + // @@protoc_insertion_point(destructor:vega.RewardPerAssetDetail) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void EthereumConfig::SharedDtor() { +void RewardPerAssetDetail::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - network_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chain_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - bridge_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + total_for_asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void EthereumConfig::ArenaDtor(void* object) { - EthereumConfig* _this = reinterpret_cast< EthereumConfig* >(object); +void RewardPerAssetDetail::ArenaDtor(void* object) { + RewardPerAssetDetail* _this = reinterpret_cast< RewardPerAssetDetail* >(object); (void)_this; } -void EthereumConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void RewardPerAssetDetail::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void EthereumConfig::SetCachedSize(int size) const { +void RewardPerAssetDetail::SetCachedSize(int size) const { _cached_size_.Set(size); } -const EthereumConfig& EthereumConfig::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EthereumConfig_vega_2eproto.base); +const RewardPerAssetDetail& RewardPerAssetDetail::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RewardPerAssetDetail_vega_2eproto.base); return *internal_default_instance(); } -void EthereumConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:vega.EthereumConfig) +void RewardPerAssetDetail::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.RewardPerAssetDetail) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - network_id_.ClearToEmpty(); - chain_id_.ClearToEmpty(); - bridge_address_.ClearToEmpty(); - confirmations_ = 0u; + details_.Clear(); + asset_.ClearToEmpty(); + total_for_asset_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EthereumConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RewardPerAssetDetail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string network_id = 1 [json_name = "networkId"]; + // string asset = 1 [json_name = "asset"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_network_id(); + auto str = _internal_mutable_asset(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.network_id")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardPerAssetDetail.asset")); CHK_(ptr); } else goto handle_unusual; continue; - // string chain_id = 2 [json_name = "chainId"]; + // repeated .vega.RewardDetails details = 2 [json_name = "details"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_chain_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.chain_id")); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_details(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; - // string bridge_address = 3 [json_name = "bridgeAddress"]; + // string total_for_asset = 3 [json_name = "totalForAsset"]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_bridge_address(); + auto str = _internal_mutable_total_for_asset(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.EthereumConfig.bridge_address")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint32 confirmations = 4 [json_name = "confirmations"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - confirmations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.RewardPerAssetDetail.total_for_asset")); CHK_(ptr); } else goto handle_unusual; continue; @@ -17295,90 +18667,75 @@ const char* EthereumConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* EthereumConfig::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* RewardPerAssetDetail::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:vega.EthereumConfig) + // @@protoc_insertion_point(serialize_to_array_start:vega.RewardPerAssetDetail) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string network_id = 1 [json_name = "networkId"]; - if (this->network_id().size() > 0) { + // string asset = 1 [json_name = "asset"]; + if (this->asset().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_network_id().data(), static_cast(this->_internal_network_id().length()), + this->_internal_asset().data(), static_cast(this->_internal_asset().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.EthereumConfig.network_id"); + "vega.RewardPerAssetDetail.asset"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_network_id(), target); + 1, this->_internal_asset(), target); } - // string chain_id = 2 [json_name = "chainId"]; - if (this->chain_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_chain_id().data(), static_cast(this->_internal_chain_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.EthereumConfig.chain_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_chain_id(), target); + // repeated .vega.RewardDetails details = 2 [json_name = "details"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_details_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_details(i), target, stream); } - // string bridge_address = 3 [json_name = "bridgeAddress"]; - if (this->bridge_address().size() > 0) { + // string total_for_asset = 3 [json_name = "totalForAsset"]; + if (this->total_for_asset().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_bridge_address().data(), static_cast(this->_internal_bridge_address().length()), + this->_internal_total_for_asset().data(), static_cast(this->_internal_total_for_asset().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "vega.EthereumConfig.bridge_address"); + "vega.RewardPerAssetDetail.total_for_asset"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_bridge_address(), target); - } - - // uint32 confirmations = 4 [json_name = "confirmations"]; - if (this->confirmations() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_confirmations(), target); + 3, this->_internal_total_for_asset(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:vega.EthereumConfig) + // @@protoc_insertion_point(serialize_to_array_end:vega.RewardPerAssetDetail) return target; } -size_t EthereumConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:vega.EthereumConfig) +size_t RewardPerAssetDetail::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.RewardPerAssetDetail) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string network_id = 1 [json_name = "networkId"]; - if (this->network_id().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_network_id()); + // repeated .vega.RewardDetails details = 2 [json_name = "details"]; + total_size += 1UL * this->_internal_details_size(); + for (const auto& msg : this->details_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string chain_id = 2 [json_name = "chainId"]; - if (this->chain_id().size() > 0) { + // string asset = 1 [json_name = "asset"]; + if (this->asset().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_chain_id()); + this->_internal_asset()); } - // string bridge_address = 3 [json_name = "bridgeAddress"]; - if (this->bridge_address().size() > 0) { + // string total_for_asset = 3 [json_name = "totalForAsset"]; + if (this->total_for_asset().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_bridge_address()); - } - - // uint32 confirmations = 4 [json_name = "confirmations"]; - if (this->confirmations() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_confirmations()); + this->_internal_total_for_asset()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -17390,70 +18747,64 @@ size_t EthereumConfig::ByteSizeLong() const { return total_size; } -void EthereumConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:vega.EthereumConfig) +void RewardPerAssetDetail::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.RewardPerAssetDetail) GOOGLE_DCHECK_NE(&from, this); - const EthereumConfig* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const RewardPerAssetDetail* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.EthereumConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.RewardPerAssetDetail) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.EthereumConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.RewardPerAssetDetail) MergeFrom(*source); } } -void EthereumConfig::MergeFrom(const EthereumConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:vega.EthereumConfig) +void RewardPerAssetDetail::MergeFrom(const RewardPerAssetDetail& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.RewardPerAssetDetail) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.network_id().size() > 0) { - _internal_set_network_id(from._internal_network_id()); - } - if (from.chain_id().size() > 0) { - _internal_set_chain_id(from._internal_chain_id()); - } - if (from.bridge_address().size() > 0) { - _internal_set_bridge_address(from._internal_bridge_address()); + details_.MergeFrom(from.details_); + if (from.asset().size() > 0) { + _internal_set_asset(from._internal_asset()); } - if (from.confirmations() != 0) { - _internal_set_confirmations(from._internal_confirmations()); + if (from.total_for_asset().size() > 0) { + _internal_set_total_for_asset(from._internal_total_for_asset()); } } -void EthereumConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:vega.EthereumConfig) +void RewardPerAssetDetail::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.RewardPerAssetDetail) if (&from == this) return; Clear(); MergeFrom(from); } -void EthereumConfig::CopyFrom(const EthereumConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:vega.EthereumConfig) +void RewardPerAssetDetail::CopyFrom(const RewardPerAssetDetail& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.RewardPerAssetDetail) if (&from == this) return; Clear(); MergeFrom(from); } -bool EthereumConfig::IsInitialized() const { +bool RewardPerAssetDetail::IsInitialized() const { return true; } -void EthereumConfig::InternalSwap(EthereumConfig* other) { +void RewardPerAssetDetail::InternalSwap(RewardPerAssetDetail* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - network_id_.Swap(&other->network_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - chain_id_.Swap(&other->chain_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - bridge_address_.Swap(&other->bridge_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(confirmations_, other->confirmations_); + details_.InternalSwap(&other->details_); + asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + total_for_asset_.Swap(&other->total_for_asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata EthereumConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RewardPerAssetDetail::GetMetadata() const { return GetMetadataStatic(); } @@ -17524,9 +18875,6 @@ template<> PROTOBUF_NOINLINE ::vega::Position* Arena::CreateMaybeMessage< ::vega template<> PROTOBUF_NOINLINE ::vega::PositionTrade* Arena::CreateMaybeMessage< ::vega::PositionTrade >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::PositionTrade >(arena); } -template<> PROTOBUF_NOINLINE ::vega::Statistics* Arena::CreateMaybeMessage< ::vega::Statistics >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::Statistics >(arena); -} template<> PROTOBUF_NOINLINE ::vega::Deposit* Arena::CreateMaybeMessage< ::vega::Deposit >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::Deposit >(arena); } @@ -17575,15 +18923,6 @@ template<> PROTOBUF_NOINLINE ::vega::PriceMonitoringBounds* Arena::CreateMaybeMe template<> PROTOBUF_NOINLINE ::vega::ErrorDetail* Arena::CreateMaybeMessage< ::vega::ErrorDetail >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::ErrorDetail >(arena); } -template<> PROTOBUF_NOINLINE ::vega::Transaction* Arena::CreateMaybeMessage< ::vega::Transaction >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::Transaction >(arena); -} -template<> PROTOBUF_NOINLINE ::vega::Signature* Arena::CreateMaybeMessage< ::vega::Signature >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::Signature >(arena); -} -template<> PROTOBUF_NOINLINE ::vega::SignedBundle* Arena::CreateMaybeMessage< ::vega::SignedBundle >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::SignedBundle >(arena); -} template<> PROTOBUF_NOINLINE ::vega::NetworkParameter* Arena::CreateMaybeMessage< ::vega::NetworkParameter >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::NetworkParameter >(arena); } @@ -17599,6 +18938,33 @@ template<> PROTOBUF_NOINLINE ::vega::LiquidityProvision* Arena::CreateMaybeMessa template<> PROTOBUF_NOINLINE ::vega::EthereumConfig* Arena::CreateMaybeMessage< ::vega::EthereumConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::vega::EthereumConfig >(arena); } +template<> PROTOBUF_NOINLINE ::vega::EpochTimestamps* Arena::CreateMaybeMessage< ::vega::EpochTimestamps >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::EpochTimestamps >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::Epoch* Arena::CreateMaybeMessage< ::vega::Epoch >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::Epoch >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::EpochParticipation* Arena::CreateMaybeMessage< ::vega::EpochParticipation >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::EpochParticipation >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::EpochData* Arena::CreateMaybeMessage< ::vega::EpochData >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::EpochData >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::Node* Arena::CreateMaybeMessage< ::vega::Node >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::Node >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::NodeData* Arena::CreateMaybeMessage< ::vega::NodeData >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::NodeData >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::Delegation* Arena::CreateMaybeMessage< ::vega::Delegation >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::Delegation >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::RewardDetails* Arena::CreateMaybeMessage< ::vega::RewardDetails >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::RewardDetails >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::RewardPerAssetDetail* Arena::CreateMaybeMessage< ::vega::RewardPerAssetDetail >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::RewardPerAssetDetail >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/grpc/clients/cpp/generated/vega.pb.h b/grpc/clients/cpp/generated/vega.pb.h index 1598aa86..581b7080 100644 --- a/grpc/clients/cpp/generated/vega.pb.h +++ b/grpc/clients/cpp/generated/vega.pb.h @@ -37,6 +37,7 @@ #include #include "github.com/mwitkow/go-proto-validators/validator.pb.h" #include "markets.pb.h" +#include "assets.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_vega_2eproto @@ -52,7 +53,7 @@ struct TableStruct_vega_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[46] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[51] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -69,9 +70,24 @@ extern AuctionIndicativeStateDefaultTypeInternal _AuctionIndicativeState_default class Candle; class CandleDefaultTypeInternal; extern CandleDefaultTypeInternal _Candle_default_instance_; +class Delegation; +class DelegationDefaultTypeInternal; +extern DelegationDefaultTypeInternal _Delegation_default_instance_; class Deposit; class DepositDefaultTypeInternal; extern DepositDefaultTypeInternal _Deposit_default_instance_; +class Epoch; +class EpochDefaultTypeInternal; +extern EpochDefaultTypeInternal _Epoch_default_instance_; +class EpochData; +class EpochDataDefaultTypeInternal; +extern EpochDataDefaultTypeInternal _EpochData_default_instance_; +class EpochParticipation; +class EpochParticipationDefaultTypeInternal; +extern EpochParticipationDefaultTypeInternal _EpochParticipation_default_instance_; +class EpochTimestamps; +class EpochTimestampsDefaultTypeInternal; +extern EpochTimestampsDefaultTypeInternal _EpochTimestamps_default_instance_; class Erc20WithdrawExt; class Erc20WithdrawExtDefaultTypeInternal; extern Erc20WithdrawExtDefaultTypeInternal _Erc20WithdrawExt_default_instance_; @@ -117,6 +133,12 @@ extern MarketDepthUpdateDefaultTypeInternal _MarketDepthUpdate_default_instance_ class NetworkParameter; class NetworkParameterDefaultTypeInternal; extern NetworkParameterDefaultTypeInternal _NetworkParameter_default_instance_; +class Node; +class NodeDefaultTypeInternal; +extern NodeDefaultTypeInternal _Node_default_instance_; +class NodeData; +class NodeDataDefaultTypeInternal; +extern NodeDataDefaultTypeInternal _NodeData_default_instance_; class Order; class OrderDefaultTypeInternal; extern OrderDefaultTypeInternal _Order_default_instance_; @@ -147,6 +169,12 @@ extern PriceLevelDefaultTypeInternal _PriceLevel_default_instance_; class PriceMonitoringBounds; class PriceMonitoringBoundsDefaultTypeInternal; extern PriceMonitoringBoundsDefaultTypeInternal _PriceMonitoringBounds_default_instance_; +class RewardDetails; +class RewardDetailsDefaultTypeInternal; +extern RewardDetailsDefaultTypeInternal _RewardDetails_default_instance_; +class RewardPerAssetDetail; +class RewardPerAssetDetailDefaultTypeInternal; +extern RewardPerAssetDetailDefaultTypeInternal _RewardPerAssetDetail_default_instance_; class RiskFactor; class RiskFactorDefaultTypeInternal; extern RiskFactorDefaultTypeInternal _RiskFactor_default_instance_; @@ -159,15 +187,6 @@ extern RiskResult_PredictedNextRiskFactorsEntry_DoNotUseDefaultTypeInternal _Ris class RiskResult_RiskFactorsEntry_DoNotUse; class RiskResult_RiskFactorsEntry_DoNotUseDefaultTypeInternal; extern RiskResult_RiskFactorsEntry_DoNotUseDefaultTypeInternal _RiskResult_RiskFactorsEntry_DoNotUse_default_instance_; -class Signature; -class SignatureDefaultTypeInternal; -extern SignatureDefaultTypeInternal _Signature_default_instance_; -class SignedBundle; -class SignedBundleDefaultTypeInternal; -extern SignedBundleDefaultTypeInternal _SignedBundle_default_instance_; -class Statistics; -class StatisticsDefaultTypeInternal; -extern StatisticsDefaultTypeInternal _Statistics_default_instance_; class Timestamp; class TimestampDefaultTypeInternal; extern TimestampDefaultTypeInternal _Timestamp_default_instance_; @@ -177,9 +196,6 @@ extern TradeDefaultTypeInternal _Trade_default_instance_; class TradeSet; class TradeSetDefaultTypeInternal; extern TradeSetDefaultTypeInternal _TradeSet_default_instance_; -class Transaction; -class TransactionDefaultTypeInternal; -extern TransactionDefaultTypeInternal _Transaction_default_instance_; class Transfer; class TransferDefaultTypeInternal; extern TransferDefaultTypeInternal _Transfer_default_instance_; @@ -203,7 +219,12 @@ PROTOBUF_NAMESPACE_OPEN template<> ::vega::Account* Arena::CreateMaybeMessage<::vega::Account>(Arena*); template<> ::vega::AuctionIndicativeState* Arena::CreateMaybeMessage<::vega::AuctionIndicativeState>(Arena*); template<> ::vega::Candle* Arena::CreateMaybeMessage<::vega::Candle>(Arena*); +template<> ::vega::Delegation* Arena::CreateMaybeMessage<::vega::Delegation>(Arena*); template<> ::vega::Deposit* Arena::CreateMaybeMessage<::vega::Deposit>(Arena*); +template<> ::vega::Epoch* Arena::CreateMaybeMessage<::vega::Epoch>(Arena*); +template<> ::vega::EpochData* Arena::CreateMaybeMessage<::vega::EpochData>(Arena*); +template<> ::vega::EpochParticipation* Arena::CreateMaybeMessage<::vega::EpochParticipation>(Arena*); +template<> ::vega::EpochTimestamps* Arena::CreateMaybeMessage<::vega::EpochTimestamps>(Arena*); template<> ::vega::Erc20WithdrawExt* Arena::CreateMaybeMessage<::vega::Erc20WithdrawExt>(Arena*); template<> ::vega::ErrorDetail* Arena::CreateMaybeMessage<::vega::ErrorDetail>(Arena*); template<> ::vega::EthereumConfig* Arena::CreateMaybeMessage<::vega::EthereumConfig>(Arena*); @@ -219,6 +240,8 @@ template<> ::vega::MarketData* Arena::CreateMaybeMessage<::vega::MarketData>(Are template<> ::vega::MarketDepth* Arena::CreateMaybeMessage<::vega::MarketDepth>(Arena*); template<> ::vega::MarketDepthUpdate* Arena::CreateMaybeMessage<::vega::MarketDepthUpdate>(Arena*); template<> ::vega::NetworkParameter* Arena::CreateMaybeMessage<::vega::NetworkParameter>(Arena*); +template<> ::vega::Node* Arena::CreateMaybeMessage<::vega::Node>(Arena*); +template<> ::vega::NodeData* Arena::CreateMaybeMessage<::vega::NodeData>(Arena*); template<> ::vega::Order* Arena::CreateMaybeMessage<::vega::Order>(Arena*); template<> ::vega::OrderCancellationConfirmation* Arena::CreateMaybeMessage<::vega::OrderCancellationConfirmation>(Arena*); template<> ::vega::OrderConfirmation* Arena::CreateMaybeMessage<::vega::OrderConfirmation>(Arena*); @@ -229,17 +252,15 @@ template<> ::vega::PositionTrade* Arena::CreateMaybeMessage<::vega::PositionTrad template<> ::vega::Price* Arena::CreateMaybeMessage<::vega::Price>(Arena*); template<> ::vega::PriceLevel* Arena::CreateMaybeMessage<::vega::PriceLevel>(Arena*); template<> ::vega::PriceMonitoringBounds* Arena::CreateMaybeMessage<::vega::PriceMonitoringBounds>(Arena*); +template<> ::vega::RewardDetails* Arena::CreateMaybeMessage<::vega::RewardDetails>(Arena*); +template<> ::vega::RewardPerAssetDetail* Arena::CreateMaybeMessage<::vega::RewardPerAssetDetail>(Arena*); template<> ::vega::RiskFactor* Arena::CreateMaybeMessage<::vega::RiskFactor>(Arena*); template<> ::vega::RiskResult* Arena::CreateMaybeMessage<::vega::RiskResult>(Arena*); template<> ::vega::RiskResult_PredictedNextRiskFactorsEntry_DoNotUse* Arena::CreateMaybeMessage<::vega::RiskResult_PredictedNextRiskFactorsEntry_DoNotUse>(Arena*); template<> ::vega::RiskResult_RiskFactorsEntry_DoNotUse* Arena::CreateMaybeMessage<::vega::RiskResult_RiskFactorsEntry_DoNotUse>(Arena*); -template<> ::vega::Signature* Arena::CreateMaybeMessage<::vega::Signature>(Arena*); -template<> ::vega::SignedBundle* Arena::CreateMaybeMessage<::vega::SignedBundle>(Arena*); -template<> ::vega::Statistics* Arena::CreateMaybeMessage<::vega::Statistics>(Arena*); template<> ::vega::Timestamp* Arena::CreateMaybeMessage<::vega::Timestamp>(Arena*); template<> ::vega::Trade* Arena::CreateMaybeMessage<::vega::Trade>(Arena*); template<> ::vega::TradeSet* Arena::CreateMaybeMessage<::vega::TradeSet>(Arena*); -template<> ::vega::Transaction* Arena::CreateMaybeMessage<::vega::Transaction>(Arena*); template<> ::vega::Transfer* Arena::CreateMaybeMessage<::vega::Transfer>(Arena*); template<> ::vega::TransferBalance* Arena::CreateMaybeMessage<::vega::TransferBalance>(Arena*); template<> ::vega::TransferRequest* Arena::CreateMaybeMessage<::vega::TransferRequest>(Arena*); @@ -739,6 +760,32 @@ inline bool TransferType_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( TransferType_descriptor(), name, value); } +enum NodeStatus : int { + NODE_STATUS_UNSPECIFIED = 0, + NODE_STATUS_VALIDATOR = 1, + NODE_STATUS_NON_VALIDATOR = 2, + NodeStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + NodeStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool NodeStatus_IsValid(int value); +constexpr NodeStatus NodeStatus_MIN = NODE_STATUS_UNSPECIFIED; +constexpr NodeStatus NodeStatus_MAX = NODE_STATUS_NON_VALIDATOR; +constexpr int NodeStatus_ARRAYSIZE = NodeStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NodeStatus_descriptor(); +template +inline const std::string& NodeStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NodeStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + NodeStatus_descriptor(), enum_t_value); +} +inline bool NodeStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NodeStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + NodeStatus_descriptor(), name, value); +} // =================================================================== class Price PROTOBUF_FINAL : @@ -1125,8 +1172,27 @@ class Party PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { + kDelegationsFieldNumber = 2, kIdFieldNumber = 1, }; + // repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + int delegations_size() const; + private: + int _internal_delegations_size() const; + public: + void clear_delegations(); + ::vega::Delegation* mutable_delegations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* + mutable_delegations(); + private: + const ::vega::Delegation& _internal_delegations(int index) const; + ::vega::Delegation* _internal_add_delegations(); + public: + const ::vega::Delegation& delegations(int index) const; + ::vega::Delegation* add_delegations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& + delegations() const; + // string id = 1 [json_name = "id", (.validator.field) = { void clear_id(); const std::string& id() const; @@ -1150,6 +1216,7 @@ class Party PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation > delegations_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -4551,539 +4618,6 @@ class PositionTrade PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Statistics PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Statistics) */ { - public: - inline Statistics() : Statistics(nullptr) {} - virtual ~Statistics(); - - Statistics(const Statistics& from); - Statistics(Statistics&& from) noexcept - : Statistics() { - *this = ::std::move(from); - } - - inline Statistics& operator=(const Statistics& from) { - CopyFrom(from); - return *this; - } - inline Statistics& operator=(Statistics&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Statistics& default_instance(); - - static inline const Statistics* internal_default_instance() { - return reinterpret_cast( - &_Statistics_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(Statistics& a, Statistics& b) { - a.Swap(&b); - } - inline void Swap(Statistics* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Statistics* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Statistics* New() const final { - return CreateMaybeMessage(nullptr); - } - - Statistics* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Statistics& from); - void MergeFrom(const Statistics& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Statistics* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.Statistics"; - } - protected: - explicit Statistics(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); - return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kGenesisTimeFieldNumber = 4, - kCurrentTimeFieldNumber = 5, - kVegaTimeFieldNumber = 6, - kAppVersionHashFieldNumber = 28, - kAppVersionFieldNumber = 29, - kChainVersionFieldNumber = 30, - kUptimeFieldNumber = 32, - kChainIdFieldNumber = 33, - kBlockHeightFieldNumber = 1, - kBacklogLengthFieldNumber = 2, - kTotalPeersFieldNumber = 3, - kTxPerBlockFieldNumber = 8, - kAverageTxBytesFieldNumber = 9, - kAverageOrdersPerBlockFieldNumber = 10, - kTradesPerSecondFieldNumber = 11, - kOrdersPerSecondFieldNumber = 12, - kTotalMarketsFieldNumber = 13, - kStatusFieldNumber = 7, - kOrderSubscriptionsFieldNumber = 21, - kTotalAmendOrderFieldNumber = 16, - kTotalCancelOrderFieldNumber = 17, - kTotalCreateOrderFieldNumber = 18, - kTotalOrdersFieldNumber = 19, - kTotalTradesFieldNumber = 20, - kTradeSubscriptionsFieldNumber = 22, - kCandleSubscriptionsFieldNumber = 23, - kMarketDepthSubscriptionsFieldNumber = 24, - kPositionsSubscriptionsFieldNumber = 25, - kAccountSubscriptionsFieldNumber = 26, - kMarketDataSubscriptionsFieldNumber = 27, - kBlockDurationFieldNumber = 31, - kMarketDepthUpdatesSubscriptionsFieldNumber = 34, - }; - // string genesis_time = 4 [json_name = "genesisTime"]; - void clear_genesis_time(); - const std::string& genesis_time() const; - void set_genesis_time(const std::string& value); - void set_genesis_time(std::string&& value); - void set_genesis_time(const char* value); - void set_genesis_time(const char* value, size_t size); - std::string* mutable_genesis_time(); - std::string* release_genesis_time(); - void set_allocated_genesis_time(std::string* genesis_time); - private: - const std::string& _internal_genesis_time() const; - void _internal_set_genesis_time(const std::string& value); - std::string* _internal_mutable_genesis_time(); - public: - - // string current_time = 5 [json_name = "currentTime"]; - void clear_current_time(); - const std::string& current_time() const; - void set_current_time(const std::string& value); - void set_current_time(std::string&& value); - void set_current_time(const char* value); - void set_current_time(const char* value, size_t size); - std::string* mutable_current_time(); - std::string* release_current_time(); - void set_allocated_current_time(std::string* current_time); - private: - const std::string& _internal_current_time() const; - void _internal_set_current_time(const std::string& value); - std::string* _internal_mutable_current_time(); - public: - - // string vega_time = 6 [json_name = "vegaTime"]; - void clear_vega_time(); - const std::string& vega_time() const; - void set_vega_time(const std::string& value); - void set_vega_time(std::string&& value); - void set_vega_time(const char* value); - void set_vega_time(const char* value, size_t size); - std::string* mutable_vega_time(); - std::string* release_vega_time(); - void set_allocated_vega_time(std::string* vega_time); - private: - const std::string& _internal_vega_time() const; - void _internal_set_vega_time(const std::string& value); - std::string* _internal_mutable_vega_time(); - public: - - // string app_version_hash = 28 [json_name = "appVersionHash"]; - void clear_app_version_hash(); - const std::string& app_version_hash() const; - void set_app_version_hash(const std::string& value); - void set_app_version_hash(std::string&& value); - void set_app_version_hash(const char* value); - void set_app_version_hash(const char* value, size_t size); - std::string* mutable_app_version_hash(); - std::string* release_app_version_hash(); - void set_allocated_app_version_hash(std::string* app_version_hash); - private: - const std::string& _internal_app_version_hash() const; - void _internal_set_app_version_hash(const std::string& value); - std::string* _internal_mutable_app_version_hash(); - public: - - // string app_version = 29 [json_name = "appVersion"]; - void clear_app_version(); - const std::string& app_version() const; - void set_app_version(const std::string& value); - void set_app_version(std::string&& value); - void set_app_version(const char* value); - void set_app_version(const char* value, size_t size); - std::string* mutable_app_version(); - std::string* release_app_version(); - void set_allocated_app_version(std::string* app_version); - private: - const std::string& _internal_app_version() const; - void _internal_set_app_version(const std::string& value); - std::string* _internal_mutable_app_version(); - public: - - // string chain_version = 30 [json_name = "chainVersion"]; - void clear_chain_version(); - const std::string& chain_version() const; - void set_chain_version(const std::string& value); - void set_chain_version(std::string&& value); - void set_chain_version(const char* value); - void set_chain_version(const char* value, size_t size); - std::string* mutable_chain_version(); - std::string* release_chain_version(); - void set_allocated_chain_version(std::string* chain_version); - private: - const std::string& _internal_chain_version() const; - void _internal_set_chain_version(const std::string& value); - std::string* _internal_mutable_chain_version(); - public: - - // string uptime = 32 [json_name = "uptime"]; - void clear_uptime(); - const std::string& uptime() const; - void set_uptime(const std::string& value); - void set_uptime(std::string&& value); - void set_uptime(const char* value); - void set_uptime(const char* value, size_t size); - std::string* mutable_uptime(); - std::string* release_uptime(); - void set_allocated_uptime(std::string* uptime); - private: - const std::string& _internal_uptime() const; - void _internal_set_uptime(const std::string& value); - std::string* _internal_mutable_uptime(); - public: - - // string chain_id = 33 [json_name = "chainId"]; - void clear_chain_id(); - const std::string& chain_id() const; - void set_chain_id(const std::string& value); - void set_chain_id(std::string&& value); - void set_chain_id(const char* value); - void set_chain_id(const char* value, size_t size); - std::string* mutable_chain_id(); - std::string* release_chain_id(); - void set_allocated_chain_id(std::string* chain_id); - private: - const std::string& _internal_chain_id() const; - void _internal_set_chain_id(const std::string& value); - std::string* _internal_mutable_chain_id(); - public: - - // uint64 block_height = 1 [json_name = "blockHeight"]; - void clear_block_height(); - ::PROTOBUF_NAMESPACE_ID::uint64 block_height() const; - void set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_height() const; - void _internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 backlog_length = 2 [json_name = "backlogLength"]; - void clear_backlog_length(); - ::PROTOBUF_NAMESPACE_ID::uint64 backlog_length() const; - void set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_backlog_length() const; - void _internal_set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_peers = 3 [json_name = "totalPeers"]; - void clear_total_peers(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_peers() const; - void set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_peers() const; - void _internal_set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - void clear_tx_per_block(); - ::PROTOBUF_NAMESPACE_ID::uint64 tx_per_block() const; - void set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_per_block() const; - void _internal_set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - void clear_average_tx_bytes(); - ::PROTOBUF_NAMESPACE_ID::uint64 average_tx_bytes() const; - void set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_average_tx_bytes() const; - void _internal_set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - void clear_average_orders_per_block(); - ::PROTOBUF_NAMESPACE_ID::uint64 average_orders_per_block() const; - void set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_average_orders_per_block() const; - void _internal_set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - void clear_trades_per_second(); - ::PROTOBUF_NAMESPACE_ID::uint64 trades_per_second() const; - void set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_trades_per_second() const; - void _internal_set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - void clear_orders_per_second(); - ::PROTOBUF_NAMESPACE_ID::uint64 orders_per_second() const; - void set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_orders_per_second() const; - void _internal_set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_markets = 13 [json_name = "totalMarkets"]; - void clear_total_markets(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_markets() const; - void set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_markets() const; - void _internal_set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // .vega.ChainStatus status = 7 [json_name = "status"]; - void clear_status(); - ::vega::ChainStatus status() const; - void set_status(::vega::ChainStatus value); - private: - ::vega::ChainStatus _internal_status() const; - void _internal_set_status(::vega::ChainStatus value); - public: - - // uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - void clear_order_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 order_subscriptions() const; - void set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_order_subscriptions() const; - void _internal_set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - void clear_total_amend_order(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_amend_order() const; - void set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_amend_order() const; - void _internal_set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - void clear_total_cancel_order(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_cancel_order() const; - void set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_cancel_order() const; - void _internal_set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - void clear_total_create_order(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_create_order() const; - void set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_create_order() const; - void _internal_set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_orders = 19 [json_name = "totalOrders"]; - void clear_total_orders(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_orders() const; - void set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_orders() const; - void _internal_set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 total_trades = 20 [json_name = "totalTrades"]; - void clear_total_trades(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_trades() const; - void set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_trades() const; - void _internal_set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - void clear_trade_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 trade_subscriptions() const; - void set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_trade_subscriptions() const; - void _internal_set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - void clear_candle_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 candle_subscriptions() const; - void set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_candle_subscriptions() const; - void _internal_set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - void clear_market_depth_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_subscriptions() const; - void set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_depth_subscriptions() const; - void _internal_set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - void clear_positions_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 positions_subscriptions() const; - void set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_positions_subscriptions() const; - void _internal_set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - void clear_account_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 account_subscriptions() const; - void set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_account_subscriptions() const; - void _internal_set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - void clear_market_data_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 market_data_subscriptions() const; - void set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_data_subscriptions() const; - void _internal_set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // uint64 block_duration = 31 [json_name = "blockDuration"]; - void clear_block_duration(); - ::PROTOBUF_NAMESPACE_ID::uint64 block_duration() const; - void set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_duration() const; - void _internal_set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - void clear_market_depth_updates_subscriptions(); - ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_updates_subscriptions() const; - void set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_market_depth_updates_subscriptions() const; - void _internal_set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: - - // @@protoc_insertion_point(class_scope:vega.Statistics) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr genesis_time_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_time_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_time_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr app_version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uptime_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 block_height_; - ::PROTOBUF_NAMESPACE_ID::uint64 backlog_length_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_peers_; - ::PROTOBUF_NAMESPACE_ID::uint64 tx_per_block_; - ::PROTOBUF_NAMESPACE_ID::uint64 average_tx_bytes_; - ::PROTOBUF_NAMESPACE_ID::uint64 average_orders_per_block_; - ::PROTOBUF_NAMESPACE_ID::uint64 trades_per_second_; - ::PROTOBUF_NAMESPACE_ID::uint64 orders_per_second_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_markets_; - int status_; - ::PROTOBUF_NAMESPACE_ID::uint32 order_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_amend_order_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_cancel_order_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_create_order_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_orders_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_trades_; - ::PROTOBUF_NAMESPACE_ID::uint32 trade_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint32 candle_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint32 positions_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint32 account_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint32 market_data_subscriptions_; - ::PROTOBUF_NAMESPACE_ID::uint64 block_duration_; - ::PROTOBUF_NAMESPACE_ID::uint32 market_depth_updates_subscriptions_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_vega_2eproto; -}; -// ------------------------------------------------------------------- - class Deposit PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Deposit) */ { public: @@ -5125,7 +4659,7 @@ class Deposit PROTOBUF_FINAL : &_Deposit_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 21; friend void swap(Deposit& a, Deposit& b) { a.Swap(&b); @@ -5407,7 +4941,7 @@ class Withdrawal PROTOBUF_FINAL : &_Withdrawal_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 22; friend void swap(Withdrawal& a, Withdrawal& b) { a.Swap(&b); @@ -5736,7 +5270,7 @@ class WithdrawExt PROTOBUF_FINAL : &_WithdrawExt_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; friend void swap(WithdrawExt& a, WithdrawExt& b) { a.Swap(&b); @@ -5892,7 +5426,7 @@ class Erc20WithdrawExt PROTOBUF_FINAL : &_Erc20WithdrawExt_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 24; friend void swap(Erc20WithdrawExt& a, Erc20WithdrawExt& b) { a.Swap(&b); @@ -6035,7 +5569,7 @@ class Account PROTOBUF_FINAL : &_Account_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 25; friend void swap(Account& a, Account& b) { a.Swap(&b); @@ -6254,7 +5788,7 @@ class FinancialAmount PROTOBUF_FINAL : &_FinancialAmount_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 26; friend void swap(FinancialAmount& a, FinancialAmount& b) { a.Swap(&b); @@ -6408,7 +5942,7 @@ class Transfer PROTOBUF_FINAL : &_Transfer_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 27; friend void swap(Transfer& a, Transfer& b) { a.Swap(&b); @@ -6593,7 +6127,7 @@ class TransferRequest PROTOBUF_FINAL : &_TransferRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 28; friend void swap(TransferRequest& a, TransferRequest& b) { a.Swap(&b); @@ -6816,7 +6350,7 @@ class LedgerEntry PROTOBUF_FINAL : &_LedgerEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 29; friend void swap(LedgerEntry& a, LedgerEntry& b) { a.Swap(&b); @@ -7035,7 +6569,7 @@ class TransferBalance PROTOBUF_FINAL : &_TransferBalance_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 30; friend void swap(TransferBalance& a, TransferBalance& b) { a.Swap(&b); @@ -7191,7 +6725,7 @@ class TransferResponse PROTOBUF_FINAL : &_TransferResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 31; friend void swap(TransferResponse& a, TransferResponse& b) { a.Swap(&b); @@ -7356,7 +6890,7 @@ class MarginLevels PROTOBUF_FINAL : &_MarginLevels_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 32; friend void swap(MarginLevels& a, MarginLevels& b) { a.Swap(&b); @@ -7590,7 +7124,7 @@ class MarketData PROTOBUF_FINAL : &_MarketData_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 33; friend void swap(MarketData& a, MarketData& b) { a.Swap(&b); @@ -8047,7 +7581,7 @@ class LiquidityProviderFeeShare PROTOBUF_FINAL : &_LiquidityProviderFeeShare_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 34; friend void swap(LiquidityProviderFeeShare& a, LiquidityProviderFeeShare& b) { a.Swap(&b); @@ -8226,7 +7760,7 @@ class PriceMonitoringBounds PROTOBUF_FINAL : &_PriceMonitoringBounds_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 35; friend void swap(PriceMonitoringBounds& a, PriceMonitoringBounds& b) { a.Swap(&b); @@ -8404,7 +7938,7 @@ class ErrorDetail PROTOBUF_FINAL : &_ErrorDetail_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 36; friend void swap(ErrorDetail& a, ErrorDetail& b) { a.Swap(&b); @@ -8535,23 +8069,23 @@ class ErrorDetail PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Transaction PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Transaction) */ { +class NetworkParameter PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.NetworkParameter) */ { public: - inline Transaction() : Transaction(nullptr) {} - virtual ~Transaction(); + inline NetworkParameter() : NetworkParameter(nullptr) {} + virtual ~NetworkParameter(); - Transaction(const Transaction& from); - Transaction(Transaction&& from) noexcept - : Transaction() { + NetworkParameter(const NetworkParameter& from); + NetworkParameter(NetworkParameter&& from) noexcept + : NetworkParameter() { *this = ::std::move(from); } - inline Transaction& operator=(const Transaction& from) { + inline NetworkParameter& operator=(const NetworkParameter& from) { CopyFrom(from); return *this; } - inline Transaction& operator=(Transaction&& from) noexcept { + inline NetworkParameter& operator=(NetworkParameter&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -8569,25 +8103,19 @@ class Transaction PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const Transaction& default_instance(); - - enum FromCase { - kAddress = 1001, - kPubKey = 1002, - FROM_NOT_SET = 0, - }; + static const NetworkParameter& default_instance(); - static inline const Transaction* internal_default_instance() { - return reinterpret_cast( - &_Transaction_default_instance_); + static inline const NetworkParameter* internal_default_instance() { + return reinterpret_cast( + &_NetworkParameter_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 37; - friend void swap(Transaction& a, Transaction& b) { + friend void swap(NetworkParameter& a, NetworkParameter& b) { a.Swap(&b); } - inline void Swap(Transaction* other) { + inline void Swap(NetworkParameter* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -8595,7 +8123,7 @@ class Transaction PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Transaction* other) { + void UnsafeArenaSwap(NetworkParameter* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8603,17 +8131,17 @@ class Transaction PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline Transaction* New() const final { - return CreateMaybeMessage(nullptr); + inline NetworkParameter* New() const final { + return CreateMaybeMessage(nullptr); } - Transaction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + NetworkParameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Transaction& from); - void MergeFrom(const Transaction& from); + void CopyFrom(const NetworkParameter& from); + void MergeFrom(const NetworkParameter& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -8627,13 +8155,13 @@ class Transaction PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Transaction* other); + void InternalSwap(NetworkParameter* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.Transaction"; + return "vega.NetworkParameter"; } protected: - explicit Transaction(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NetworkParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -8653,130 +8181,72 @@ class Transaction PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kInputDataFieldNumber = 1, - kNonceFieldNumber = 2, - kBlockHeightFieldNumber = 3, - kAddressFieldNumber = 1001, - kPubKeyFieldNumber = 1002, + kKeyFieldNumber = 1, + kValueFieldNumber = 2, }; - // bytes input_data = 1 [json_name = "inputData"]; - void clear_input_data(); - const std::string& input_data() const; - void set_input_data(const std::string& value); - void set_input_data(std::string&& value); - void set_input_data(const char* value); - void set_input_data(const void* value, size_t size); - std::string* mutable_input_data(); - std::string* release_input_data(); - void set_allocated_input_data(std::string* input_data); - private: - const std::string& _internal_input_data() const; - void _internal_set_input_data(const std::string& value); - std::string* _internal_mutable_input_data(); - public: - - // uint64 nonce = 2 [json_name = "nonce"]; - void clear_nonce(); - ::PROTOBUF_NAMESPACE_ID::uint64 nonce() const; - void set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_nonce() const; - void _internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 block_height = 3 [json_name = "blockHeight"]; - void clear_block_height(); - ::PROTOBUF_NAMESPACE_ID::uint64 block_height() const; - void set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_block_height() const; - void _internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // bytes address = 1001 [json_name = "address"]; - private: - bool _internal_has_address() const; - public: - void clear_address(); - const std::string& address() const; - void set_address(const std::string& value); - void set_address(std::string&& value); - void set_address(const char* value); - void set_address(const void* value, size_t size); - std::string* mutable_address(); - std::string* release_address(); - void set_allocated_address(std::string* address); + // string key = 1 [json_name = "key"]; + void clear_key(); + const std::string& key() const; + void set_key(const std::string& value); + void set_key(std::string&& value); + void set_key(const char* value); + void set_key(const char* value, size_t size); + std::string* mutable_key(); + std::string* release_key(); + void set_allocated_key(std::string* key); private: - const std::string& _internal_address() const; - void _internal_set_address(const std::string& value); - std::string* _internal_mutable_address(); + const std::string& _internal_key() const; + void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); public: - // bytes pub_key = 1002 [json_name = "pubKey"]; - private: - bool _internal_has_pub_key() const; - public: - void clear_pub_key(); - const std::string& pub_key() const; - void set_pub_key(const std::string& value); - void set_pub_key(std::string&& value); - void set_pub_key(const char* value); - void set_pub_key(const void* value, size_t size); - std::string* mutable_pub_key(); - std::string* release_pub_key(); - void set_allocated_pub_key(std::string* pub_key); + // string value = 2 [json_name = "value"]; + void clear_value(); + const std::string& value() const; + void set_value(const std::string& value); + void set_value(std::string&& value); + void set_value(const char* value); + void set_value(const char* value, size_t size); + std::string* mutable_value(); + std::string* release_value(); + void set_allocated_value(std::string* value); private: - const std::string& _internal_pub_key() const; - void _internal_set_pub_key(const std::string& value); - std::string* _internal_mutable_pub_key(); + const std::string& _internal_value() const; + void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); public: - void clear_from(); - FromCase from_case() const; - // @@protoc_insertion_point(class_scope:vega.Transaction) + // @@protoc_insertion_point(class_scope:vega.NetworkParameter) private: class _Internal; - void set_has_address(); - void set_has_pub_key(); - - inline bool has_from() const; - inline void clear_has_from(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_data_; - ::PROTOBUF_NAMESPACE_ID::uint64 nonce_; - ::PROTOBUF_NAMESPACE_ID::uint64 block_height_; - union FromUnion { - FromUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pub_key_; - } from_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class Signature PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Signature) */ { +class LiquidityOrder PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityOrder) */ { public: - inline Signature() : Signature(nullptr) {} - virtual ~Signature(); + inline LiquidityOrder() : LiquidityOrder(nullptr) {} + virtual ~LiquidityOrder(); - Signature(const Signature& from); - Signature(Signature&& from) noexcept - : Signature() { + LiquidityOrder(const LiquidityOrder& from); + LiquidityOrder(LiquidityOrder&& from) noexcept + : LiquidityOrder() { *this = ::std::move(from); } - inline Signature& operator=(const Signature& from) { + inline LiquidityOrder& operator=(const LiquidityOrder& from) { CopyFrom(from); return *this; } - inline Signature& operator=(Signature&& from) noexcept { + inline LiquidityOrder& operator=(LiquidityOrder&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -8794,19 +8264,19 @@ class Signature PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const Signature& default_instance(); + static const LiquidityOrder& default_instance(); - static inline const Signature* internal_default_instance() { - return reinterpret_cast( - &_Signature_default_instance_); + static inline const LiquidityOrder* internal_default_instance() { + return reinterpret_cast( + &_LiquidityOrder_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 38; - friend void swap(Signature& a, Signature& b) { + friend void swap(LiquidityOrder& a, LiquidityOrder& b) { a.Swap(&b); } - inline void Swap(Signature* other) { + inline void Swap(LiquidityOrder* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -8814,7 +8284,7 @@ class Signature PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Signature* other) { + void UnsafeArenaSwap(LiquidityOrder* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8822,17 +8292,17 @@ class Signature PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline Signature* New() const final { - return CreateMaybeMessage(nullptr); + inline LiquidityOrder* New() const final { + return CreateMaybeMessage(nullptr); } - Signature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LiquidityOrder* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Signature& from); - void MergeFrom(const Signature& from); + void CopyFrom(const LiquidityOrder& from); + void MergeFrom(const LiquidityOrder& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -8846,13 +8316,13 @@ class Signature PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Signature* other); + void InternalSwap(LiquidityOrder* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.Signature"; + return "vega.LiquidityOrder"; } protected: - explicit Signature(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LiquidityOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -8872,83 +8342,69 @@ class Signature PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kSigFieldNumber = 1, - kAlgoFieldNumber = 2, - kVersionFieldNumber = 3, + kReferenceFieldNumber = 1, + kProportionFieldNumber = 2, + kOffsetFieldNumber = 3, }; - // bytes sig = 1 [json_name = "sig"]; - void clear_sig(); - const std::string& sig() const; - void set_sig(const std::string& value); - void set_sig(std::string&& value); - void set_sig(const char* value); - void set_sig(const void* value, size_t size); - std::string* mutable_sig(); - std::string* release_sig(); - void set_allocated_sig(std::string* sig); - private: - const std::string& _internal_sig() const; - void _internal_set_sig(const std::string& value); - std::string* _internal_mutable_sig(); - public: - - // string algo = 2 [json_name = "algo"]; - void clear_algo(); - const std::string& algo() const; - void set_algo(const std::string& value); - void set_algo(std::string&& value); - void set_algo(const char* value); - void set_algo(const char* value, size_t size); - std::string* mutable_algo(); - std::string* release_algo(); - void set_allocated_algo(std::string* algo); - private: - const std::string& _internal_algo() const; - void _internal_set_algo(const std::string& value); - std::string* _internal_mutable_algo(); - public: - - // uint32 version = 3 [json_name = "version"]; - void clear_version(); - ::PROTOBUF_NAMESPACE_ID::uint32 version() const; - void set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + // .vega.PeggedReference reference = 1 [json_name = "reference"]; + void clear_reference(); + ::vega::PeggedReference reference() const; + void set_reference(::vega::PeggedReference value); + private: + ::vega::PeggedReference _internal_reference() const; + void _internal_set_reference(::vega::PeggedReference value); + public: + + // uint32 proportion = 2 [json_name = "proportion"]; + void clear_proportion(); + ::PROTOBUF_NAMESPACE_ID::uint32 proportion() const; + void set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_version() const; - void _internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_proportion() const; + void _internal_set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // int64 offset = 3 [json_name = "offset"]; + void clear_offset(); + ::PROTOBUF_NAMESPACE_ID::int64 offset() const; + void set_offset(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_offset() const; + void _internal_set_offset(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // @@protoc_insertion_point(class_scope:vega.Signature) + // @@protoc_insertion_point(class_scope:vega.LiquidityOrder) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sig_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr algo_; - ::PROTOBUF_NAMESPACE_ID::uint32 version_; + int reference_; + ::PROTOBUF_NAMESPACE_ID::uint32 proportion_; + ::PROTOBUF_NAMESPACE_ID::int64 offset_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class SignedBundle PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.SignedBundle) */ { +class LiquidityOrderReference PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityOrderReference) */ { public: - inline SignedBundle() : SignedBundle(nullptr) {} - virtual ~SignedBundle(); + inline LiquidityOrderReference() : LiquidityOrderReference(nullptr) {} + virtual ~LiquidityOrderReference(); - SignedBundle(const SignedBundle& from); - SignedBundle(SignedBundle&& from) noexcept - : SignedBundle() { + LiquidityOrderReference(const LiquidityOrderReference& from); + LiquidityOrderReference(LiquidityOrderReference&& from) noexcept + : LiquidityOrderReference() { *this = ::std::move(from); } - inline SignedBundle& operator=(const SignedBundle& from) { + inline LiquidityOrderReference& operator=(const LiquidityOrderReference& from) { CopyFrom(from); return *this; } - inline SignedBundle& operator=(SignedBundle&& from) noexcept { + inline LiquidityOrderReference& operator=(LiquidityOrderReference&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -8966,19 +8422,19 @@ class SignedBundle PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SignedBundle& default_instance(); + static const LiquidityOrderReference& default_instance(); - static inline const SignedBundle* internal_default_instance() { - return reinterpret_cast( - &_SignedBundle_default_instance_); + static inline const LiquidityOrderReference* internal_default_instance() { + return reinterpret_cast( + &_LiquidityOrderReference_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 39; - friend void swap(SignedBundle& a, SignedBundle& b) { + friend void swap(LiquidityOrderReference& a, LiquidityOrderReference& b) { a.Swap(&b); } - inline void Swap(SignedBundle* other) { + inline void Swap(LiquidityOrderReference* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -8986,7 +8442,7 @@ class SignedBundle PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SignedBundle* other) { + void UnsafeArenaSwap(LiquidityOrderReference* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8994,17 +8450,17 @@ class SignedBundle PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline SignedBundle* New() const final { - return CreateMaybeMessage(nullptr); + inline LiquidityOrderReference* New() const final { + return CreateMaybeMessage(nullptr); } - SignedBundle* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LiquidityOrderReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SignedBundle& from); - void MergeFrom(const SignedBundle& from); + void CopyFrom(const LiquidityOrderReference& from); + void MergeFrom(const LiquidityOrderReference& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9018,13 +8474,13 @@ class SignedBundle PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SignedBundle* other); + void InternalSwap(LiquidityOrderReference* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.SignedBundle"; + return "vega.LiquidityOrderReference"; } protected: - explicit SignedBundle(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LiquidityOrderReference(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -9044,74 +8500,74 @@ class SignedBundle PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTxFieldNumber = 1, - kSigFieldNumber = 2, + kOrderIdFieldNumber = 1, + kLiquidityOrderFieldNumber = 2, }; - // bytes tx = 1 [json_name = "tx"]; - void clear_tx(); - const std::string& tx() const; - void set_tx(const std::string& value); - void set_tx(std::string&& value); - void set_tx(const char* value); - void set_tx(const void* value, size_t size); - std::string* mutable_tx(); - std::string* release_tx(); - void set_allocated_tx(std::string* tx); + // string order_id = 1 [json_name = "orderId"]; + void clear_order_id(); + const std::string& order_id() const; + void set_order_id(const std::string& value); + void set_order_id(std::string&& value); + void set_order_id(const char* value); + void set_order_id(const char* value, size_t size); + std::string* mutable_order_id(); + std::string* release_order_id(); + void set_allocated_order_id(std::string* order_id); private: - const std::string& _internal_tx() const; - void _internal_set_tx(const std::string& value); - std::string* _internal_mutable_tx(); + const std::string& _internal_order_id() const; + void _internal_set_order_id(const std::string& value); + std::string* _internal_mutable_order_id(); public: - // .vega.Signature sig = 2 [json_name = "sig"]; - bool has_sig() const; + // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + bool has_liquidity_order() const; private: - bool _internal_has_sig() const; + bool _internal_has_liquidity_order() const; public: - void clear_sig(); - const ::vega::Signature& sig() const; - ::vega::Signature* release_sig(); - ::vega::Signature* mutable_sig(); - void set_allocated_sig(::vega::Signature* sig); + void clear_liquidity_order(); + const ::vega::LiquidityOrder& liquidity_order() const; + ::vega::LiquidityOrder* release_liquidity_order(); + ::vega::LiquidityOrder* mutable_liquidity_order(); + void set_allocated_liquidity_order(::vega::LiquidityOrder* liquidity_order); private: - const ::vega::Signature& _internal_sig() const; - ::vega::Signature* _internal_mutable_sig(); + const ::vega::LiquidityOrder& _internal_liquidity_order() const; + ::vega::LiquidityOrder* _internal_mutable_liquidity_order(); public: - void unsafe_arena_set_allocated_sig( - ::vega::Signature* sig); - ::vega::Signature* unsafe_arena_release_sig(); + void unsafe_arena_set_allocated_liquidity_order( + ::vega::LiquidityOrder* liquidity_order); + ::vega::LiquidityOrder* unsafe_arena_release_liquidity_order(); - // @@protoc_insertion_point(class_scope:vega.SignedBundle) + // @@protoc_insertion_point(class_scope:vega.LiquidityOrderReference) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tx_; - ::vega::Signature* sig_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; + ::vega::LiquidityOrder* liquidity_order_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class NetworkParameter PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.NetworkParameter) */ { +class LiquidityProvision PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityProvision) */ { public: - inline NetworkParameter() : NetworkParameter(nullptr) {} - virtual ~NetworkParameter(); + inline LiquidityProvision() : LiquidityProvision(nullptr) {} + virtual ~LiquidityProvision(); - NetworkParameter(const NetworkParameter& from); - NetworkParameter(NetworkParameter&& from) noexcept - : NetworkParameter() { + LiquidityProvision(const LiquidityProvision& from); + LiquidityProvision(LiquidityProvision&& from) noexcept + : LiquidityProvision() { *this = ::std::move(from); } - inline NetworkParameter& operator=(const NetworkParameter& from) { + inline LiquidityProvision& operator=(const LiquidityProvision& from) { CopyFrom(from); return *this; } - inline NetworkParameter& operator=(NetworkParameter&& from) noexcept { + inline LiquidityProvision& operator=(LiquidityProvision&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -9129,19 +8585,19 @@ class NetworkParameter PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const NetworkParameter& default_instance(); + static const LiquidityProvision& default_instance(); - static inline const NetworkParameter* internal_default_instance() { - return reinterpret_cast( - &_NetworkParameter_default_instance_); + static inline const LiquidityProvision* internal_default_instance() { + return reinterpret_cast( + &_LiquidityProvision_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 40; - friend void swap(NetworkParameter& a, NetworkParameter& b) { + friend void swap(LiquidityProvision& a, LiquidityProvision& b) { a.Swap(&b); } - inline void Swap(NetworkParameter* other) { + inline void Swap(LiquidityProvision* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -9149,7 +8605,7 @@ class NetworkParameter PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NetworkParameter* other) { + void UnsafeArenaSwap(LiquidityProvision* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9157,17 +8613,17 @@ class NetworkParameter PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline NetworkParameter* New() const final { - return CreateMaybeMessage(nullptr); + inline LiquidityProvision* New() const final { + return CreateMaybeMessage(nullptr); } - NetworkParameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + LiquidityProvision* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const NetworkParameter& from); - void MergeFrom(const NetworkParameter& from); + void CopyFrom(const LiquidityProvision& from); + void MergeFrom(const LiquidityProvision& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9181,13 +8637,13 @@ class NetworkParameter PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(NetworkParameter* other); + void InternalSwap(LiquidityProvision* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.NetworkParameter"; + return "vega.LiquidityProvision"; } protected: - explicit NetworkParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LiquidityProvision(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -9204,75 +8660,1188 @@ class NetworkParameter PROTOBUF_FINAL : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1 [json_name = "key"]; - void clear_key(); - const std::string& key() const; - void set_key(const std::string& value); - void set_key(std::string&& value); - void set_key(const char* value); - void set_key(const char* value, size_t size); - std::string* mutable_key(); - std::string* release_key(); - void set_allocated_key(std::string* key); - private: - const std::string& _internal_key() const; - void _internal_set_key(const std::string& value); - std::string* _internal_mutable_key(); + typedef LiquidityProvision_Status Status; + static constexpr Status STATUS_UNSPECIFIED = + LiquidityProvision_Status_STATUS_UNSPECIFIED; + static constexpr Status STATUS_ACTIVE = + LiquidityProvision_Status_STATUS_ACTIVE; + static constexpr Status STATUS_STOPPED = + LiquidityProvision_Status_STATUS_STOPPED; + static constexpr Status STATUS_CANCELLED = + LiquidityProvision_Status_STATUS_CANCELLED; + static constexpr Status STATUS_REJECTED = + LiquidityProvision_Status_STATUS_REJECTED; + static constexpr Status STATUS_UNDEPLOYED = + LiquidityProvision_Status_STATUS_UNDEPLOYED; + static constexpr Status STATUS_PENDING = + LiquidityProvision_Status_STATUS_PENDING; + static inline bool Status_IsValid(int value) { + return LiquidityProvision_Status_IsValid(value); + } + static constexpr Status Status_MIN = + LiquidityProvision_Status_Status_MIN; + static constexpr Status Status_MAX = + LiquidityProvision_Status_Status_MAX; + static constexpr int Status_ARRAYSIZE = + LiquidityProvision_Status_Status_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Status_descriptor() { + return LiquidityProvision_Status_descriptor(); + } + template + static inline const std::string& Status_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Status_Name."); + return LiquidityProvision_Status_Name(enum_t_value); + } + static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Status* value) { + return LiquidityProvision_Status_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kSellsFieldNumber = 8, + kBuysFieldNumber = 9, + kIdFieldNumber = 1, + kPartyIdFieldNumber = 2, + kMarketIdFieldNumber = 5, + kFeeFieldNumber = 7, + kVersionFieldNumber = 10, + kReferenceFieldNumber = 12, + kCreatedAtFieldNumber = 3, + kUpdatedAtFieldNumber = 4, + kCommitmentAmountFieldNumber = 6, + kStatusFieldNumber = 11, + }; + // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + int sells_size() const; + private: + int _internal_sells_size() const; + public: + void clear_sells(); + ::vega::LiquidityOrderReference* mutable_sells(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* + mutable_sells(); + private: + const ::vega::LiquidityOrderReference& _internal_sells(int index) const; + ::vega::LiquidityOrderReference* _internal_add_sells(); + public: + const ::vega::LiquidityOrderReference& sells(int index) const; + ::vega::LiquidityOrderReference* add_sells(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& + sells() const; + + // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + int buys_size() const; + private: + int _internal_buys_size() const; + public: + void clear_buys(); + ::vega::LiquidityOrderReference* mutable_buys(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* + mutable_buys(); + private: + const ::vega::LiquidityOrderReference& _internal_buys(int index) const; + ::vega::LiquidityOrderReference* _internal_add_buys(); + public: + const ::vega::LiquidityOrderReference& buys(int index) const; + ::vega::LiquidityOrderReference* add_buys(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& + buys() const; + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string party_id = 2 [json_name = "partyId"]; + void clear_party_id(); + const std::string& party_id() const; + void set_party_id(const std::string& value); + void set_party_id(std::string&& value); + void set_party_id(const char* value); + void set_party_id(const char* value, size_t size); + std::string* mutable_party_id(); + std::string* release_party_id(); + void set_allocated_party_id(std::string* party_id); + private: + const std::string& _internal_party_id() const; + void _internal_set_party_id(const std::string& value); + std::string* _internal_mutable_party_id(); + public: + + // string market_id = 5 [json_name = "marketId", (.validator.field) = { + void clear_market_id(); + const std::string& market_id() const; + void set_market_id(const std::string& value); + void set_market_id(std::string&& value); + void set_market_id(const char* value); + void set_market_id(const char* value, size_t size); + std::string* mutable_market_id(); + std::string* release_market_id(); + void set_allocated_market_id(std::string* market_id); + private: + const std::string& _internal_market_id() const; + void _internal_set_market_id(const std::string& value); + std::string* _internal_mutable_market_id(); + public: + + // string fee = 7 [json_name = "fee"]; + void clear_fee(); + const std::string& fee() const; + void set_fee(const std::string& value); + void set_fee(std::string&& value); + void set_fee(const char* value); + void set_fee(const char* value, size_t size); + std::string* mutable_fee(); + std::string* release_fee(); + void set_allocated_fee(std::string* fee); + private: + const std::string& _internal_fee() const; + void _internal_set_fee(const std::string& value); + std::string* _internal_mutable_fee(); + public: + + // string version = 10 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + void set_version(const std::string& value); + void set_version(std::string&& value); + void set_version(const char* value); + void set_version(const char* value, size_t size); + std::string* mutable_version(); + std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // string reference = 12 [json_name = "reference"]; + void clear_reference(); + const std::string& reference() const; + void set_reference(const std::string& value); + void set_reference(std::string&& value); + void set_reference(const char* value); + void set_reference(const char* value, size_t size); + std::string* mutable_reference(); + std::string* release_reference(); + void set_allocated_reference(std::string* reference); + private: + const std::string& _internal_reference() const; + void _internal_set_reference(const std::string& value); + std::string* _internal_mutable_reference(); + public: + + // int64 created_at = 3 [json_name = "createdAt"]; + void clear_created_at(); + ::PROTOBUF_NAMESPACE_ID::int64 created_at() const; + void set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_created_at() const; + void _internal_set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // int64 updated_at = 4 [json_name = "updatedAt"]; + void clear_updated_at(); + ::PROTOBUF_NAMESPACE_ID::int64 updated_at() const; + void set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_updated_at() const; + void _internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + void clear_commitment_amount(); + ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount() const; + void set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_commitment_amount() const; + void _internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + void clear_status(); + ::vega::LiquidityProvision_Status status() const; + void set_status(::vega::LiquidityProvision_Status value); + private: + ::vega::LiquidityProvision_Status _internal_status() const; + void _internal_set_status(::vega::LiquidityProvision_Status value); + public: + + // @@protoc_insertion_point(class_scope:vega.LiquidityProvision) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference > sells_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference > buys_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fee_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; + ::PROTOBUF_NAMESPACE_ID::int64 created_at_; + ::PROTOBUF_NAMESPACE_ID::int64 updated_at_; + ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class EthereumConfig PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.EthereumConfig) */ { + public: + inline EthereumConfig() : EthereumConfig(nullptr) {} + virtual ~EthereumConfig(); + + EthereumConfig(const EthereumConfig& from); + EthereumConfig(EthereumConfig&& from) noexcept + : EthereumConfig() { + *this = ::std::move(from); + } + + inline EthereumConfig& operator=(const EthereumConfig& from) { + CopyFrom(from); + return *this; + } + inline EthereumConfig& operator=(EthereumConfig&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EthereumConfig& default_instance(); + + static inline const EthereumConfig* internal_default_instance() { + return reinterpret_cast( + &_EthereumConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(EthereumConfig& a, EthereumConfig& b) { + a.Swap(&b); + } + inline void Swap(EthereumConfig* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EthereumConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EthereumConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + EthereumConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EthereumConfig& from); + void MergeFrom(const EthereumConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EthereumConfig* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.EthereumConfig"; + } + protected: + explicit EthereumConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStakingBridgeAddressesFieldNumber = 5, + kNetworkIdFieldNumber = 1, + kChainIdFieldNumber = 2, + kBridgeAddressFieldNumber = 3, + kConfirmationsFieldNumber = 4, + }; + // repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + int staking_bridge_addresses_size() const; + private: + int _internal_staking_bridge_addresses_size() const; + public: + void clear_staking_bridge_addresses(); + const std::string& staking_bridge_addresses(int index) const; + std::string* mutable_staking_bridge_addresses(int index); + void set_staking_bridge_addresses(int index, const std::string& value); + void set_staking_bridge_addresses(int index, std::string&& value); + void set_staking_bridge_addresses(int index, const char* value); + void set_staking_bridge_addresses(int index, const char* value, size_t size); + std::string* add_staking_bridge_addresses(); + void add_staking_bridge_addresses(const std::string& value); + void add_staking_bridge_addresses(std::string&& value); + void add_staking_bridge_addresses(const char* value); + void add_staking_bridge_addresses(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& staking_bridge_addresses() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_staking_bridge_addresses(); + private: + const std::string& _internal_staking_bridge_addresses(int index) const; + std::string* _internal_add_staking_bridge_addresses(); + public: + + // string network_id = 1 [json_name = "networkId"]; + void clear_network_id(); + const std::string& network_id() const; + void set_network_id(const std::string& value); + void set_network_id(std::string&& value); + void set_network_id(const char* value); + void set_network_id(const char* value, size_t size); + std::string* mutable_network_id(); + std::string* release_network_id(); + void set_allocated_network_id(std::string* network_id); + private: + const std::string& _internal_network_id() const; + void _internal_set_network_id(const std::string& value); + std::string* _internal_mutable_network_id(); + public: + + // string chain_id = 2 [json_name = "chainId"]; + void clear_chain_id(); + const std::string& chain_id() const; + void set_chain_id(const std::string& value); + void set_chain_id(std::string&& value); + void set_chain_id(const char* value); + void set_chain_id(const char* value, size_t size); + std::string* mutable_chain_id(); + std::string* release_chain_id(); + void set_allocated_chain_id(std::string* chain_id); + private: + const std::string& _internal_chain_id() const; + void _internal_set_chain_id(const std::string& value); + std::string* _internal_mutable_chain_id(); + public: + + // string bridge_address = 3 [json_name = "bridgeAddress"]; + void clear_bridge_address(); + const std::string& bridge_address() const; + void set_bridge_address(const std::string& value); + void set_bridge_address(std::string&& value); + void set_bridge_address(const char* value); + void set_bridge_address(const char* value, size_t size); + std::string* mutable_bridge_address(); + std::string* release_bridge_address(); + void set_allocated_bridge_address(std::string* bridge_address); + private: + const std::string& _internal_bridge_address() const; + void _internal_set_bridge_address(const std::string& value); + std::string* _internal_mutable_bridge_address(); + public: + + // uint32 confirmations = 4 [json_name = "confirmations"]; + void clear_confirmations(); + ::PROTOBUF_NAMESPACE_ID::uint32 confirmations() const; + void set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_confirmations() const; + void _internal_set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:vega.EthereumConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField staking_bridge_addresses_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr network_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bridge_address_; + ::PROTOBUF_NAMESPACE_ID::uint32 confirmations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class EpochTimestamps PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.EpochTimestamps) */ { + public: + inline EpochTimestamps() : EpochTimestamps(nullptr) {} + virtual ~EpochTimestamps(); + + EpochTimestamps(const EpochTimestamps& from); + EpochTimestamps(EpochTimestamps&& from) noexcept + : EpochTimestamps() { + *this = ::std::move(from); + } + + inline EpochTimestamps& operator=(const EpochTimestamps& from) { + CopyFrom(from); + return *this; + } + inline EpochTimestamps& operator=(EpochTimestamps&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EpochTimestamps& default_instance(); + + static inline const EpochTimestamps* internal_default_instance() { + return reinterpret_cast( + &_EpochTimestamps_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + friend void swap(EpochTimestamps& a, EpochTimestamps& b) { + a.Swap(&b); + } + inline void Swap(EpochTimestamps* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EpochTimestamps* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EpochTimestamps* New() const final { + return CreateMaybeMessage(nullptr); + } + + EpochTimestamps* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EpochTimestamps& from); + void MergeFrom(const EpochTimestamps& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EpochTimestamps* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.EpochTimestamps"; + } + protected: + explicit EpochTimestamps(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStartTimeFieldNumber = 1, + kEndTimeFieldNumber = 2, + kFirstBlockFieldNumber = 3, + kLastBlockFieldNumber = 4, + }; + // int64 start_time = 1 [json_name = "startTime"]; + void clear_start_time(); + ::PROTOBUF_NAMESPACE_ID::int64 start_time() const; + void set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_start_time() const; + void _internal_set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // int64 end_time = 2 [json_name = "endTime"]; + void clear_end_time(); + ::PROTOBUF_NAMESPACE_ID::int64 end_time() const; + void set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_end_time() const; + void _internal_set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // uint64 first_block = 3 [json_name = "firstBlock"]; + void clear_first_block(); + ::PROTOBUF_NAMESPACE_ID::uint64 first_block() const; + void set_first_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_first_block() const; + void _internal_set_first_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 last_block = 4 [json_name = "lastBlock"]; + void clear_last_block(); + ::PROTOBUF_NAMESPACE_ID::uint64 last_block() const; + void set_last_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_last_block() const; + void _internal_set_last_block(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.EpochTimestamps) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::int64 start_time_; + ::PROTOBUF_NAMESPACE_ID::int64 end_time_; + ::PROTOBUF_NAMESPACE_ID::uint64 first_block_; + ::PROTOBUF_NAMESPACE_ID::uint64 last_block_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class Epoch PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Epoch) */ { + public: + inline Epoch() : Epoch(nullptr) {} + virtual ~Epoch(); + + Epoch(const Epoch& from); + Epoch(Epoch&& from) noexcept + : Epoch() { + *this = ::std::move(from); + } + + inline Epoch& operator=(const Epoch& from) { + CopyFrom(from); + return *this; + } + inline Epoch& operator=(Epoch&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Epoch& default_instance(); + + static inline const Epoch* internal_default_instance() { + return reinterpret_cast( + &_Epoch_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + friend void swap(Epoch& a, Epoch& b) { + a.Swap(&b); + } + inline void Swap(Epoch* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Epoch* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Epoch* New() const final { + return CreateMaybeMessage(nullptr); + } + + Epoch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Epoch& from); + void MergeFrom(const Epoch& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Epoch* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.Epoch"; + } + protected: + explicit Epoch(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValidatorsFieldNumber = 3, + kDelegationsFieldNumber = 4, + kTimestampsFieldNumber = 2, + kSeqFieldNumber = 1, + }; + // repeated .vega.Node validators = 3 [json_name = "validators"]; + int validators_size() const; + private: + int _internal_validators_size() const; + public: + void clear_validators(); + ::vega::Node* mutable_validators(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Node >* + mutable_validators(); + private: + const ::vega::Node& _internal_validators(int index) const; + ::vega::Node* _internal_add_validators(); + public: + const ::vega::Node& validators(int index) const; + ::vega::Node* add_validators(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Node >& + validators() const; + + // repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + int delegations_size() const; + private: + int _internal_delegations_size() const; + public: + void clear_delegations(); + ::vega::Delegation* mutable_delegations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* + mutable_delegations(); + private: + const ::vega::Delegation& _internal_delegations(int index) const; + ::vega::Delegation* _internal_add_delegations(); + public: + const ::vega::Delegation& delegations(int index) const; + ::vega::Delegation* add_delegations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& + delegations() const; + + // .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { + bool has_timestamps() const; + private: + bool _internal_has_timestamps() const; + public: + void clear_timestamps(); + const ::vega::EpochTimestamps& timestamps() const; + ::vega::EpochTimestamps* release_timestamps(); + ::vega::EpochTimestamps* mutable_timestamps(); + void set_allocated_timestamps(::vega::EpochTimestamps* timestamps); + private: + const ::vega::EpochTimestamps& _internal_timestamps() const; + ::vega::EpochTimestamps* _internal_mutable_timestamps(); + public: + void unsafe_arena_set_allocated_timestamps( + ::vega::EpochTimestamps* timestamps); + ::vega::EpochTimestamps* unsafe_arena_release_timestamps(); + + // uint64 seq = 1 [json_name = "seq"]; + void clear_seq(); + ::PROTOBUF_NAMESPACE_ID::uint64 seq() const; + void set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_seq() const; + void _internal_set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:vega.Epoch) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Node > validators_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation > delegations_; + ::vega::EpochTimestamps* timestamps_; + ::PROTOBUF_NAMESPACE_ID::uint64 seq_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class EpochParticipation PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.EpochParticipation) */ { + public: + inline EpochParticipation() : EpochParticipation(nullptr) {} + virtual ~EpochParticipation(); + + EpochParticipation(const EpochParticipation& from); + EpochParticipation(EpochParticipation&& from) noexcept + : EpochParticipation() { + *this = ::std::move(from); + } + + inline EpochParticipation& operator=(const EpochParticipation& from) { + CopyFrom(from); + return *this; + } + inline EpochParticipation& operator=(EpochParticipation&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EpochParticipation& default_instance(); + + static inline const EpochParticipation* internal_default_instance() { + return reinterpret_cast( + &_EpochParticipation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + friend void swap(EpochParticipation& a, EpochParticipation& b) { + a.Swap(&b); + } + inline void Swap(EpochParticipation* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EpochParticipation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EpochParticipation* New() const final { + return CreateMaybeMessage(nullptr); + } + + EpochParticipation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EpochParticipation& from); + void MergeFrom(const EpochParticipation& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EpochParticipation* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.EpochParticipation"; + } + protected: + explicit EpochParticipation(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kEpochFieldNumber = 1, + kOfflineFieldNumber = 2, + kOnlineFieldNumber = 3, + kTotalRewardsFieldNumber = 4, + }; + // .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { + bool has_epoch() const; + private: + bool _internal_has_epoch() const; + public: + void clear_epoch(); + const ::vega::Epoch& epoch() const; + ::vega::Epoch* release_epoch(); + ::vega::Epoch* mutable_epoch(); + void set_allocated_epoch(::vega::Epoch* epoch); + private: + const ::vega::Epoch& _internal_epoch() const; + ::vega::Epoch* _internal_mutable_epoch(); + public: + void unsafe_arena_set_allocated_epoch( + ::vega::Epoch* epoch); + ::vega::Epoch* unsafe_arena_release_epoch(); + + // uint64 offline = 2 [json_name = "offline"]; + void clear_offline(); + ::PROTOBUF_NAMESPACE_ID::uint64 offline() const; + void set_offline(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_offline() const; + void _internal_set_offline(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 online = 3 [json_name = "online"]; + void clear_online(); + ::PROTOBUF_NAMESPACE_ID::uint64 online() const; + void set_online(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_online() const; + void _internal_set_online(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // double total_rewards = 4 [json_name = "totalRewards"]; + void clear_total_rewards(); + double total_rewards() const; + void set_total_rewards(double value); + private: + double _internal_total_rewards() const; + void _internal_set_total_rewards(double value); + public: + + // @@protoc_insertion_point(class_scope:vega.EpochParticipation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::vega::Epoch* epoch_; + ::PROTOBUF_NAMESPACE_ID::uint64 offline_; + ::PROTOBUF_NAMESPACE_ID::uint64 online_; + double total_rewards_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class EpochData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.EpochData) */ { + public: + inline EpochData() : EpochData(nullptr) {} + virtual ~EpochData(); + + EpochData(const EpochData& from); + EpochData(EpochData&& from) noexcept + : EpochData() { + *this = ::std::move(from); + } + + inline EpochData& operator=(const EpochData& from) { + CopyFrom(from); + return *this; + } + inline EpochData& operator=(EpochData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EpochData& default_instance(); + + static inline const EpochData* internal_default_instance() { + return reinterpret_cast( + &_EpochData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 45; + + friend void swap(EpochData& a, EpochData& b) { + a.Swap(&b); + } + inline void Swap(EpochData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EpochData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EpochData* New() const final { + return CreateMaybeMessage(nullptr); + } + + EpochData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EpochData& from); + void MergeFrom(const EpochData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EpochData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.EpochData"; + } + protected: + explicit EpochData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - // string value = 2 [json_name = "value"]; - void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); - void set_value(const char* value); - void set_value(const char* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - const std::string& _internal_value() const; - void _internal_set_value(const std::string& value); - std::string* _internal_mutable_value(); + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + public: - // @@protoc_insertion_point(class_scope:vega.NetworkParameter) + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTotalFieldNumber = 1, + kOfflineFieldNumber = 2, + kOnlineFieldNumber = 3, + }; + // int32 total = 1 [json_name = "total"]; + void clear_total(); + ::PROTOBUF_NAMESPACE_ID::int32 total() const; + void set_total(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_total() const; + void _internal_set_total(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // int32 offline = 2 [json_name = "offline"]; + void clear_offline(); + ::PROTOBUF_NAMESPACE_ID::int32 offline() const; + void set_offline(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_offline() const; + void _internal_set_offline(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // int32 online = 3 [json_name = "online"]; + void clear_online(); + ::PROTOBUF_NAMESPACE_ID::int32 online() const; + void set_online(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_online() const; + void _internal_set_online(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:vega.EpochData) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + ::PROTOBUF_NAMESPACE_ID::int32 total_; + ::PROTOBUF_NAMESPACE_ID::int32 offline_; + ::PROTOBUF_NAMESPACE_ID::int32 online_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class LiquidityOrder PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityOrder) */ { +class Node PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Node) */ { public: - inline LiquidityOrder() : LiquidityOrder(nullptr) {} - virtual ~LiquidityOrder(); + inline Node() : Node(nullptr) {} + virtual ~Node(); - LiquidityOrder(const LiquidityOrder& from); - LiquidityOrder(LiquidityOrder&& from) noexcept - : LiquidityOrder() { + Node(const Node& from); + Node(Node&& from) noexcept + : Node() { *this = ::std::move(from); } - inline LiquidityOrder& operator=(const LiquidityOrder& from) { + inline Node& operator=(const Node& from) { CopyFrom(from); return *this; } - inline LiquidityOrder& operator=(LiquidityOrder&& from) noexcept { + inline Node& operator=(Node&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -9290,19 +9859,19 @@ class LiquidityOrder PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const LiquidityOrder& default_instance(); + static const Node& default_instance(); - static inline const LiquidityOrder* internal_default_instance() { - return reinterpret_cast( - &_LiquidityOrder_default_instance_); + static inline const Node* internal_default_instance() { + return reinterpret_cast( + &_Node_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 46; - friend void swap(LiquidityOrder& a, LiquidityOrder& b) { + friend void swap(Node& a, Node& b) { a.Swap(&b); } - inline void Swap(LiquidityOrder* other) { + inline void Swap(Node* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -9310,7 +9879,7 @@ class LiquidityOrder PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LiquidityOrder* other) { + void UnsafeArenaSwap(Node* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9318,17 +9887,355 @@ class LiquidityOrder PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline LiquidityOrder* New() const final { - return CreateMaybeMessage(nullptr); + inline Node* New() const final { + return CreateMaybeMessage(nullptr); } - LiquidityOrder* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LiquidityOrder& from); - void MergeFrom(const LiquidityOrder& from); + void CopyFrom(const Node& from); + void MergeFrom(const Node& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Node* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.Node"; + } + protected: + explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDelagationsFieldNumber = 12, + kIdFieldNumber = 1, + kPubKeyFieldNumber = 2, + kInfoUrlFieldNumber = 3, + kLocationFieldNumber = 4, + kStakedByOperatorFieldNumber = 5, + kStakedByDelegatesFieldNumber = 6, + kStakedTotalFieldNumber = 7, + kMaxIntendedStakeFieldNumber = 8, + kPendingStakeFieldNumber = 9, + kEpochDataFieldNumber = 10, + kStatusFieldNumber = 11, + }; + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + int delagations_size() const; + private: + int _internal_delagations_size() const; + public: + void clear_delagations(); + ::vega::Delegation* mutable_delagations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* + mutable_delagations(); + private: + const ::vega::Delegation& _internal_delagations(int index) const; + ::vega::Delegation* _internal_add_delagations(); + public: + const ::vega::Delegation& delagations(int index) const; + ::vega::Delegation* add_delagations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& + delagations() const; + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string pub_key = 2 [json_name = "pubKey", (.validator.field) = { + void clear_pub_key(); + const std::string& pub_key() const; + void set_pub_key(const std::string& value); + void set_pub_key(std::string&& value); + void set_pub_key(const char* value); + void set_pub_key(const char* value, size_t size); + std::string* mutable_pub_key(); + std::string* release_pub_key(); + void set_allocated_pub_key(std::string* pub_key); + private: + const std::string& _internal_pub_key() const; + void _internal_set_pub_key(const std::string& value); + std::string* _internal_mutable_pub_key(); + public: + + // string info_url = 3 [json_name = "infoUrl"]; + void clear_info_url(); + const std::string& info_url() const; + void set_info_url(const std::string& value); + void set_info_url(std::string&& value); + void set_info_url(const char* value); + void set_info_url(const char* value, size_t size); + std::string* mutable_info_url(); + std::string* release_info_url(); + void set_allocated_info_url(std::string* info_url); + private: + const std::string& _internal_info_url() const; + void _internal_set_info_url(const std::string& value); + std::string* _internal_mutable_info_url(); + public: + + // string location = 4 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + void set_location(const std::string& value); + void set_location(std::string&& value); + void set_location(const char* value); + void set_location(const char* value, size_t size); + std::string* mutable_location(); + std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + + // string staked_by_operator = 5 [json_name = "stakedByOperator"]; + void clear_staked_by_operator(); + const std::string& staked_by_operator() const; + void set_staked_by_operator(const std::string& value); + void set_staked_by_operator(std::string&& value); + void set_staked_by_operator(const char* value); + void set_staked_by_operator(const char* value, size_t size); + std::string* mutable_staked_by_operator(); + std::string* release_staked_by_operator(); + void set_allocated_staked_by_operator(std::string* staked_by_operator); + private: + const std::string& _internal_staked_by_operator() const; + void _internal_set_staked_by_operator(const std::string& value); + std::string* _internal_mutable_staked_by_operator(); + public: + + // string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + void clear_staked_by_delegates(); + const std::string& staked_by_delegates() const; + void set_staked_by_delegates(const std::string& value); + void set_staked_by_delegates(std::string&& value); + void set_staked_by_delegates(const char* value); + void set_staked_by_delegates(const char* value, size_t size); + std::string* mutable_staked_by_delegates(); + std::string* release_staked_by_delegates(); + void set_allocated_staked_by_delegates(std::string* staked_by_delegates); + private: + const std::string& _internal_staked_by_delegates() const; + void _internal_set_staked_by_delegates(const std::string& value); + std::string* _internal_mutable_staked_by_delegates(); + public: + + // string staked_total = 7 [json_name = "stakedTotal"]; + void clear_staked_total(); + const std::string& staked_total() const; + void set_staked_total(const std::string& value); + void set_staked_total(std::string&& value); + void set_staked_total(const char* value); + void set_staked_total(const char* value, size_t size); + std::string* mutable_staked_total(); + std::string* release_staked_total(); + void set_allocated_staked_total(std::string* staked_total); + private: + const std::string& _internal_staked_total() const; + void _internal_set_staked_total(const std::string& value); + std::string* _internal_mutable_staked_total(); + public: + + // string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + void clear_max_intended_stake(); + const std::string& max_intended_stake() const; + void set_max_intended_stake(const std::string& value); + void set_max_intended_stake(std::string&& value); + void set_max_intended_stake(const char* value); + void set_max_intended_stake(const char* value, size_t size); + std::string* mutable_max_intended_stake(); + std::string* release_max_intended_stake(); + void set_allocated_max_intended_stake(std::string* max_intended_stake); + private: + const std::string& _internal_max_intended_stake() const; + void _internal_set_max_intended_stake(const std::string& value); + std::string* _internal_mutable_max_intended_stake(); + public: + + // string pending_stake = 9 [json_name = "pendingStake"]; + void clear_pending_stake(); + const std::string& pending_stake() const; + void set_pending_stake(const std::string& value); + void set_pending_stake(std::string&& value); + void set_pending_stake(const char* value); + void set_pending_stake(const char* value, size_t size); + std::string* mutable_pending_stake(); + std::string* release_pending_stake(); + void set_allocated_pending_stake(std::string* pending_stake); + private: + const std::string& _internal_pending_stake() const; + void _internal_set_pending_stake(const std::string& value); + std::string* _internal_mutable_pending_stake(); + public: + + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { + bool has_epoch_data() const; + private: + bool _internal_has_epoch_data() const; + public: + void clear_epoch_data(); + const ::vega::EpochData& epoch_data() const; + ::vega::EpochData* release_epoch_data(); + ::vega::EpochData* mutable_epoch_data(); + void set_allocated_epoch_data(::vega::EpochData* epoch_data); + private: + const ::vega::EpochData& _internal_epoch_data() const; + ::vega::EpochData* _internal_mutable_epoch_data(); + public: + void unsafe_arena_set_allocated_epoch_data( + ::vega::EpochData* epoch_data); + ::vega::EpochData* unsafe_arena_release_epoch_data(); + + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { + void clear_status(); + ::vega::NodeStatus status() const; + void set_status(::vega::NodeStatus value); + private: + ::vega::NodeStatus _internal_status() const; + void _internal_set_status(::vega::NodeStatus value); + public: + + // @@protoc_insertion_point(class_scope:vega.Node) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation > delagations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pub_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr staked_by_operator_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr staked_by_delegates_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr staked_total_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr max_intended_stake_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pending_stake_; + ::vega::EpochData* epoch_data_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_vega_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.NodeData) */ { + public: + inline NodeData() : NodeData(nullptr) {} + virtual ~NodeData(); + + NodeData(const NodeData& from); + NodeData(NodeData&& from) noexcept + : NodeData() { + *this = ::std::move(from); + } + + inline NodeData& operator=(const NodeData& from) { + CopyFrom(from); + return *this; + } + inline NodeData& operator=(NodeData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const NodeData& default_instance(); + + static inline const NodeData* internal_default_instance() { + return reinterpret_cast( + &_NodeData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 47; + + friend void swap(NodeData& a, NodeData& b) { + a.Swap(&b); + } + inline void Swap(NodeData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NodeData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline NodeData* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const NodeData& from); + void MergeFrom(const NodeData& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9342,13 +10249,13 @@ class LiquidityOrder PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(LiquidityOrder* other); + void InternalSwap(NodeData* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.LiquidityOrder"; + return "vega.NodeData"; } protected: - explicit LiquidityOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NodeData(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -9368,69 +10275,98 @@ class LiquidityOrder PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kReferenceFieldNumber = 1, - kProportionFieldNumber = 2, - kOffsetFieldNumber = 3, + kStakedTotalFieldNumber = 1, + kTotalNodesFieldNumber = 2, + kInactiveNodesFieldNumber = 3, + kValidatingNodesFieldNumber = 4, + kUptimeFieldNumber = 5, }; - // .vega.PeggedReference reference = 1 [json_name = "reference"]; - void clear_reference(); - ::vega::PeggedReference reference() const; - void set_reference(::vega::PeggedReference value); + // string staked_total = 1 [json_name = "stakedTotal"]; + void clear_staked_total(); + const std::string& staked_total() const; + void set_staked_total(const std::string& value); + void set_staked_total(std::string&& value); + void set_staked_total(const char* value); + void set_staked_total(const char* value, size_t size); + std::string* mutable_staked_total(); + std::string* release_staked_total(); + void set_allocated_staked_total(std::string* staked_total); private: - ::vega::PeggedReference _internal_reference() const; - void _internal_set_reference(::vega::PeggedReference value); + const std::string& _internal_staked_total() const; + void _internal_set_staked_total(const std::string& value); + std::string* _internal_mutable_staked_total(); public: - // uint32 proportion = 2 [json_name = "proportion"]; - void clear_proportion(); - ::PROTOBUF_NAMESPACE_ID::uint32 proportion() const; - void set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value); + // uint32 total_nodes = 2 [json_name = "totalNodes"]; + void clear_total_nodes(); + ::PROTOBUF_NAMESPACE_ID::uint32 total_nodes() const; + void set_total_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_proportion() const; - void _internal_set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_total_nodes() const; + void _internal_set_total_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - // int64 offset = 3 [json_name = "offset"]; - void clear_offset(); - ::PROTOBUF_NAMESPACE_ID::int64 offset() const; - void set_offset(::PROTOBUF_NAMESPACE_ID::int64 value); + // uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + void clear_inactive_nodes(); + ::PROTOBUF_NAMESPACE_ID::uint32 inactive_nodes() const; + void set_inactive_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_offset() const; - void _internal_set_offset(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_inactive_nodes() const; + void _internal_set_inactive_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - // @@protoc_insertion_point(class_scope:vega.LiquidityOrder) + // uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + void clear_validating_nodes(); + ::PROTOBUF_NAMESPACE_ID::uint32 validating_nodes() const; + void set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_validating_nodes() const; + void _internal_set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // float uptime = 5 [json_name = "uptime"]; + void clear_uptime(); + float uptime() const; + void set_uptime(float value); + private: + float _internal_uptime() const; + void _internal_set_uptime(float value); + public: + + // @@protoc_insertion_point(class_scope:vega.NodeData) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int reference_; - ::PROTOBUF_NAMESPACE_ID::uint32 proportion_; - ::PROTOBUF_NAMESPACE_ID::int64 offset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr staked_total_; + ::PROTOBUF_NAMESPACE_ID::uint32 total_nodes_; + ::PROTOBUF_NAMESPACE_ID::uint32 inactive_nodes_; + ::PROTOBUF_NAMESPACE_ID::uint32 validating_nodes_; + float uptime_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class LiquidityOrderReference PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityOrderReference) */ { +class Delegation PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.Delegation) */ { public: - inline LiquidityOrderReference() : LiquidityOrderReference(nullptr) {} - virtual ~LiquidityOrderReference(); + inline Delegation() : Delegation(nullptr) {} + virtual ~Delegation(); - LiquidityOrderReference(const LiquidityOrderReference& from); - LiquidityOrderReference(LiquidityOrderReference&& from) noexcept - : LiquidityOrderReference() { + Delegation(const Delegation& from); + Delegation(Delegation&& from) noexcept + : Delegation() { *this = ::std::move(from); } - inline LiquidityOrderReference& operator=(const LiquidityOrderReference& from) { + inline Delegation& operator=(const Delegation& from) { CopyFrom(from); return *this; } - inline LiquidityOrderReference& operator=(LiquidityOrderReference&& from) noexcept { + inline Delegation& operator=(Delegation&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -9448,19 +10384,19 @@ class LiquidityOrderReference PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const LiquidityOrderReference& default_instance(); + static const Delegation& default_instance(); - static inline const LiquidityOrderReference* internal_default_instance() { - return reinterpret_cast( - &_LiquidityOrderReference_default_instance_); + static inline const Delegation* internal_default_instance() { + return reinterpret_cast( + &_Delegation_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 48; - friend void swap(LiquidityOrderReference& a, LiquidityOrderReference& b) { + friend void swap(Delegation& a, Delegation& b) { a.Swap(&b); } - inline void Swap(LiquidityOrderReference* other) { + inline void Swap(Delegation* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -9468,7 +10404,7 @@ class LiquidityOrderReference PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LiquidityOrderReference* other) { + void UnsafeArenaSwap(Delegation* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9476,17 +10412,17 @@ class LiquidityOrderReference PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline LiquidityOrderReference* New() const final { - return CreateMaybeMessage(nullptr); + inline Delegation* New() const final { + return CreateMaybeMessage(nullptr); } - LiquidityOrderReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Delegation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LiquidityOrderReference& from); - void MergeFrom(const LiquidityOrderReference& from); + void CopyFrom(const Delegation& from); + void MergeFrom(const Delegation& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9500,13 +10436,13 @@ class LiquidityOrderReference PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(LiquidityOrderReference* other); + void InternalSwap(Delegation* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.LiquidityOrderReference"; + return "vega.Delegation"; } protected: - explicit LiquidityOrderReference(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Delegation(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -9526,74 +10462,108 @@ class LiquidityOrderReference PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kOrderIdFieldNumber = 1, - kLiquidityOrderFieldNumber = 2, + kPartyFieldNumber = 1, + kNodeIdFieldNumber = 2, + kAmountFieldNumber = 3, + kEpochSeqFieldNumber = 4, }; - // string order_id = 1 [json_name = "orderId"]; - void clear_order_id(); - const std::string& order_id() const; - void set_order_id(const std::string& value); - void set_order_id(std::string&& value); - void set_order_id(const char* value); - void set_order_id(const char* value, size_t size); - std::string* mutable_order_id(); - std::string* release_order_id(); - void set_allocated_order_id(std::string* order_id); + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); private: - const std::string& _internal_order_id() const; - void _internal_set_order_id(const std::string& value); - std::string* _internal_mutable_order_id(); + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); public: - // .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - bool has_liquidity_order() const; + // string node_id = 2 [json_name = "nodeId"]; + void clear_node_id(); + const std::string& node_id() const; + void set_node_id(const std::string& value); + void set_node_id(std::string&& value); + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + std::string* mutable_node_id(); + std::string* release_node_id(); + void set_allocated_node_id(std::string* node_id); private: - bool _internal_has_liquidity_order() const; + const std::string& _internal_node_id() const; + void _internal_set_node_id(const std::string& value); + std::string* _internal_mutable_node_id(); public: - void clear_liquidity_order(); - const ::vega::LiquidityOrder& liquidity_order() const; - ::vega::LiquidityOrder* release_liquidity_order(); - ::vega::LiquidityOrder* mutable_liquidity_order(); - void set_allocated_liquidity_order(::vega::LiquidityOrder* liquidity_order); + + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - const ::vega::LiquidityOrder& _internal_liquidity_order() const; - ::vega::LiquidityOrder* _internal_mutable_liquidity_order(); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: - void unsafe_arena_set_allocated_liquidity_order( - ::vega::LiquidityOrder* liquidity_order); - ::vega::LiquidityOrder* unsafe_arena_release_liquidity_order(); - // @@protoc_insertion_point(class_scope:vega.LiquidityOrderReference) + // string epoch_seq = 4 [json_name = "epochSeq"]; + void clear_epoch_seq(); + const std::string& epoch_seq() const; + void set_epoch_seq(const std::string& value); + void set_epoch_seq(std::string&& value); + void set_epoch_seq(const char* value); + void set_epoch_seq(const char* value, size_t size); + std::string* mutable_epoch_seq(); + std::string* release_epoch_seq(); + void set_allocated_epoch_seq(std::string* epoch_seq); + private: + const std::string& _internal_epoch_seq() const; + void _internal_set_epoch_seq(const std::string& value); + std::string* _internal_mutable_epoch_seq(); + public: + + // @@protoc_insertion_point(class_scope:vega.Delegation) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr order_id_; - ::vega::LiquidityOrder* liquidity_order_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoch_seq_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class LiquidityProvision PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.LiquidityProvision) */ { +class RewardDetails PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.RewardDetails) */ { public: - inline LiquidityProvision() : LiquidityProvision(nullptr) {} - virtual ~LiquidityProvision(); + inline RewardDetails() : RewardDetails(nullptr) {} + virtual ~RewardDetails(); - LiquidityProvision(const LiquidityProvision& from); - LiquidityProvision(LiquidityProvision&& from) noexcept - : LiquidityProvision() { + RewardDetails(const RewardDetails& from); + RewardDetails(RewardDetails&& from) noexcept + : RewardDetails() { *this = ::std::move(from); } - inline LiquidityProvision& operator=(const LiquidityProvision& from) { + inline RewardDetails& operator=(const RewardDetails& from) { CopyFrom(from); return *this; } - inline LiquidityProvision& operator=(LiquidityProvision&& from) noexcept { + inline RewardDetails& operator=(RewardDetails&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -9611,19 +10581,19 @@ class LiquidityProvision PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const LiquidityProvision& default_instance(); + static const RewardDetails& default_instance(); - static inline const LiquidityProvision* internal_default_instance() { - return reinterpret_cast( - &_LiquidityProvision_default_instance_); + static inline const RewardDetails* internal_default_instance() { + return reinterpret_cast( + &_RewardDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 49; - friend void swap(LiquidityProvision& a, LiquidityProvision& b) { + friend void swap(RewardDetails& a, RewardDetails& b) { a.Swap(&b); } - inline void Swap(LiquidityProvision* other) { + inline void Swap(RewardDetails* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -9631,7 +10601,7 @@ class LiquidityProvision PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LiquidityProvision* other) { + void UnsafeArenaSwap(RewardDetails* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9639,17 +10609,17 @@ class LiquidityProvision PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline LiquidityProvision* New() const final { - return CreateMaybeMessage(nullptr); + inline RewardDetails* New() const final { + return CreateMaybeMessage(nullptr); } - LiquidityProvision* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RewardDetails* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const LiquidityProvision& from); - void MergeFrom(const LiquidityProvision& from); + void CopyFrom(const RewardDetails& from); + void MergeFrom(const RewardDetails& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9663,135 +10633,53 @@ class LiquidityProvision PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(LiquidityProvision* other); + void InternalSwap(RewardDetails* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.LiquidityProvision"; + return "vega.RewardDetails"; } protected: - explicit LiquidityProvision(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RewardDetails(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); - return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef LiquidityProvision_Status Status; - static constexpr Status STATUS_UNSPECIFIED = - LiquidityProvision_Status_STATUS_UNSPECIFIED; - static constexpr Status STATUS_ACTIVE = - LiquidityProvision_Status_STATUS_ACTIVE; - static constexpr Status STATUS_STOPPED = - LiquidityProvision_Status_STATUS_STOPPED; - static constexpr Status STATUS_CANCELLED = - LiquidityProvision_Status_STATUS_CANCELLED; - static constexpr Status STATUS_REJECTED = - LiquidityProvision_Status_STATUS_REJECTED; - static constexpr Status STATUS_UNDEPLOYED = - LiquidityProvision_Status_STATUS_UNDEPLOYED; - static constexpr Status STATUS_PENDING = - LiquidityProvision_Status_STATUS_PENDING; - static inline bool Status_IsValid(int value) { - return LiquidityProvision_Status_IsValid(value); - } - static constexpr Status Status_MIN = - LiquidityProvision_Status_Status_MIN; - static constexpr Status Status_MAX = - LiquidityProvision_Status_Status_MAX; - static constexpr int Status_ARRAYSIZE = - LiquidityProvision_Status_Status_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Status_descriptor() { - return LiquidityProvision_Status_descriptor(); - } - template - static inline const std::string& Status_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Status_Name."); - return LiquidityProvision_Status_Name(enum_t_value); - } - static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Status* value) { - return LiquidityProvision_Status_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kSellsFieldNumber = 8, - kBuysFieldNumber = 9, - kIdFieldNumber = 1, - kPartyIdFieldNumber = 2, - kMarketIdFieldNumber = 5, - kFeeFieldNumber = 7, - kVersionFieldNumber = 10, - kReferenceFieldNumber = 12, - kCreatedAtFieldNumber = 3, - kUpdatedAtFieldNumber = 4, - kCommitmentAmountFieldNumber = 6, - kStatusFieldNumber = 11, - }; - // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - int sells_size() const; - private: - int _internal_sells_size() const; - public: - void clear_sells(); - ::vega::LiquidityOrderReference* mutable_sells(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* - mutable_sells(); - private: - const ::vega::LiquidityOrderReference& _internal_sells(int index) const; - ::vega::LiquidityOrderReference* _internal_add_sells(); - public: - const ::vega::LiquidityOrderReference& sells(int index) const; - ::vega::LiquidityOrderReference* add_sells(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& - sells() const; - - // repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - int buys_size() const; - private: - int _internal_buys_size() const; - public: - void clear_buys(); - ::vega::LiquidityOrderReference* mutable_buys(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* - mutable_buys(); - private: - const ::vega::LiquidityOrderReference& _internal_buys(int index) const; - ::vega::LiquidityOrderReference* _internal_add_buys(); - public: - const ::vega::LiquidityOrderReference& buys(int index) const; - ::vega::LiquidityOrderReference* add_buys(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& - buys() const; + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: - // string id = 1 [json_name = "id"]; - void clear_id(); - const std::string& id() const; - void set_id(const std::string& value); - void set_id(std::string&& value); - void set_id(const char* value); - void set_id(const char* value, size_t size); - std::string* mutable_id(); - std::string* release_id(); - void set_allocated_id(std::string* id); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - const std::string& _internal_id() const; - void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_vega_2eproto); + return ::descriptor_table_vega_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAssetIdFieldNumber = 1, + kPartyIdFieldNumber = 2, + kAmountFieldNumber = 4, + kPercentageOfTotalFieldNumber = 5, + kEpochFieldNumber = 3, + kReceivedAtFieldNumber = 6, + }; + // string asset_id = 1 [json_name = "assetId"]; + void clear_asset_id(); + const std::string& asset_id() const; + void set_asset_id(const std::string& value); + void set_asset_id(std::string&& value); + void set_asset_id(const char* value); + void set_asset_id(const char* value, size_t size); + std::string* mutable_asset_id(); + std::string* release_asset_id(); + void set_allocated_asset_id(std::string* asset_id); + private: + const std::string& _internal_asset_id() const; + void _internal_set_asset_id(const std::string& value); + std::string* _internal_mutable_asset_id(); public: // string party_id = 2 [json_name = "partyId"]; @@ -9810,147 +10698,91 @@ class LiquidityProvision PROTOBUF_FINAL : std::string* _internal_mutable_party_id(); public: - // string market_id = 5 [json_name = "marketId", (.validator.field) = { - void clear_market_id(); - const std::string& market_id() const; - void set_market_id(const std::string& value); - void set_market_id(std::string&& value); - void set_market_id(const char* value); - void set_market_id(const char* value, size_t size); - std::string* mutable_market_id(); - std::string* release_market_id(); - void set_allocated_market_id(std::string* market_id); - private: - const std::string& _internal_market_id() const; - void _internal_set_market_id(const std::string& value); - std::string* _internal_mutable_market_id(); - public: - - // string fee = 7 [json_name = "fee"]; - void clear_fee(); - const std::string& fee() const; - void set_fee(const std::string& value); - void set_fee(std::string&& value); - void set_fee(const char* value); - void set_fee(const char* value, size_t size); - std::string* mutable_fee(); - std::string* release_fee(); - void set_allocated_fee(std::string* fee); - private: - const std::string& _internal_fee() const; - void _internal_set_fee(const std::string& value); - std::string* _internal_mutable_fee(); - public: - - // string version = 10 [json_name = "version"]; - void clear_version(); - const std::string& version() const; - void set_version(const std::string& value); - void set_version(std::string&& value); - void set_version(const char* value); - void set_version(const char* value, size_t size); - std::string* mutable_version(); - std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: - - // string reference = 12 [json_name = "reference"]; - void clear_reference(); - const std::string& reference() const; - void set_reference(const std::string& value); - void set_reference(std::string&& value); - void set_reference(const char* value); - void set_reference(const char* value, size_t size); - std::string* mutable_reference(); - std::string* release_reference(); - void set_allocated_reference(std::string* reference); - private: - const std::string& _internal_reference() const; - void _internal_set_reference(const std::string& value); - std::string* _internal_mutable_reference(); - public: - - // int64 created_at = 3 [json_name = "createdAt"]; - void clear_created_at(); - ::PROTOBUF_NAMESPACE_ID::int64 created_at() const; - void set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value); + // string amount = 4 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_created_at() const; - void _internal_set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: - // int64 updated_at = 4 [json_name = "updatedAt"]; - void clear_updated_at(); - ::PROTOBUF_NAMESPACE_ID::int64 updated_at() const; - void set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value); + // string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + void clear_percentage_of_total(); + const std::string& percentage_of_total() const; + void set_percentage_of_total(const std::string& value); + void set_percentage_of_total(std::string&& value); + void set_percentage_of_total(const char* value); + void set_percentage_of_total(const char* value, size_t size); + std::string* mutable_percentage_of_total(); + std::string* release_percentage_of_total(); + void set_allocated_percentage_of_total(std::string* percentage_of_total); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_updated_at() const; - void _internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_percentage_of_total() const; + void _internal_set_percentage_of_total(const std::string& value); + std::string* _internal_mutable_percentage_of_total(); public: - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - void clear_commitment_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount() const; - void set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + // uint64 epoch = 3 [json_name = "epoch"]; + void clear_epoch(); + ::PROTOBUF_NAMESPACE_ID::uint64 epoch() const; + void set_epoch(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_commitment_amount() const; - void _internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_epoch() const; + void _internal_set_epoch(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - void clear_status(); - ::vega::LiquidityProvision_Status status() const; - void set_status(::vega::LiquidityProvision_Status value); + // int64 received_at = 6 [json_name = "receivedAt"]; + void clear_received_at(); + ::PROTOBUF_NAMESPACE_ID::int64 received_at() const; + void set_received_at(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::vega::LiquidityProvision_Status _internal_status() const; - void _internal_set_status(::vega::LiquidityProvision_Status value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_received_at() const; + void _internal_set_received_at(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // @@protoc_insertion_point(class_scope:vega.LiquidityProvision) + // @@protoc_insertion_point(class_scope:vega.RewardDetails) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference > sells_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference > buys_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fee_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - ::PROTOBUF_NAMESPACE_ID::int64 created_at_; - ::PROTOBUF_NAMESPACE_ID::int64 updated_at_; - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount_; - int status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr percentage_of_total_; + ::PROTOBUF_NAMESPACE_ID::uint64 epoch_; + ::PROTOBUF_NAMESPACE_ID::int64 received_at_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; // ------------------------------------------------------------------- -class EthereumConfig PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.EthereumConfig) */ { +class RewardPerAssetDetail PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.RewardPerAssetDetail) */ { public: - inline EthereumConfig() : EthereumConfig(nullptr) {} - virtual ~EthereumConfig(); + inline RewardPerAssetDetail() : RewardPerAssetDetail(nullptr) {} + virtual ~RewardPerAssetDetail(); - EthereumConfig(const EthereumConfig& from); - EthereumConfig(EthereumConfig&& from) noexcept - : EthereumConfig() { + RewardPerAssetDetail(const RewardPerAssetDetail& from); + RewardPerAssetDetail(RewardPerAssetDetail&& from) noexcept + : RewardPerAssetDetail() { *this = ::std::move(from); } - inline EthereumConfig& operator=(const EthereumConfig& from) { + inline RewardPerAssetDetail& operator=(const RewardPerAssetDetail& from) { CopyFrom(from); return *this; } - inline EthereumConfig& operator=(EthereumConfig&& from) noexcept { + inline RewardPerAssetDetail& operator=(RewardPerAssetDetail&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -9968,19 +10800,19 @@ class EthereumConfig PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const EthereumConfig& default_instance(); + static const RewardPerAssetDetail& default_instance(); - static inline const EthereumConfig* internal_default_instance() { - return reinterpret_cast( - &_EthereumConfig_default_instance_); + static inline const RewardPerAssetDetail* internal_default_instance() { + return reinterpret_cast( + &_RewardPerAssetDetail_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 50; - friend void swap(EthereumConfig& a, EthereumConfig& b) { + friend void swap(RewardPerAssetDetail& a, RewardPerAssetDetail& b) { a.Swap(&b); } - inline void Swap(EthereumConfig* other) { + inline void Swap(RewardPerAssetDetail* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -9988,7 +10820,7 @@ class EthereumConfig PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EthereumConfig* other) { + void UnsafeArenaSwap(RewardPerAssetDetail* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9996,17 +10828,17 @@ class EthereumConfig PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline EthereumConfig* New() const final { - return CreateMaybeMessage(nullptr); + inline RewardPerAssetDetail* New() const final { + return CreateMaybeMessage(nullptr); } - EthereumConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RewardPerAssetDetail* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EthereumConfig& from); - void MergeFrom(const EthereumConfig& from); + void CopyFrom(const RewardPerAssetDetail& from); + void MergeFrom(const RewardPerAssetDetail& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10020,13 +10852,13 @@ class EthereumConfig PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EthereumConfig* other); + void InternalSwap(RewardPerAssetDetail* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "vega.EthereumConfig"; + return "vega.RewardPerAssetDetail"; } protected: - explicit EthereumConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RewardPerAssetDetail(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -10046,79 +10878,70 @@ class EthereumConfig PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kNetworkIdFieldNumber = 1, - kChainIdFieldNumber = 2, - kBridgeAddressFieldNumber = 3, - kConfirmationsFieldNumber = 4, + kDetailsFieldNumber = 2, + kAssetFieldNumber = 1, + kTotalForAssetFieldNumber = 3, }; - // string network_id = 1 [json_name = "networkId"]; - void clear_network_id(); - const std::string& network_id() const; - void set_network_id(const std::string& value); - void set_network_id(std::string&& value); - void set_network_id(const char* value); - void set_network_id(const char* value, size_t size); - std::string* mutable_network_id(); - std::string* release_network_id(); - void set_allocated_network_id(std::string* network_id); + // repeated .vega.RewardDetails details = 2 [json_name = "details"]; + int details_size() const; private: - const std::string& _internal_network_id() const; - void _internal_set_network_id(const std::string& value); - std::string* _internal_mutable_network_id(); + int _internal_details_size() const; public: - - // string chain_id = 2 [json_name = "chainId"]; - void clear_chain_id(); - const std::string& chain_id() const; - void set_chain_id(const std::string& value); - void set_chain_id(std::string&& value); - void set_chain_id(const char* value); - void set_chain_id(const char* value, size_t size); - std::string* mutable_chain_id(); - std::string* release_chain_id(); - void set_allocated_chain_id(std::string* chain_id); + void clear_details(); + ::vega::RewardDetails* mutable_details(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::RewardDetails >* + mutable_details(); private: - const std::string& _internal_chain_id() const; - void _internal_set_chain_id(const std::string& value); - std::string* _internal_mutable_chain_id(); + const ::vega::RewardDetails& _internal_details(int index) const; + ::vega::RewardDetails* _internal_add_details(); public: + const ::vega::RewardDetails& details(int index) const; + ::vega::RewardDetails* add_details(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::RewardDetails >& + details() const; - // string bridge_address = 3 [json_name = "bridgeAddress"]; - void clear_bridge_address(); - const std::string& bridge_address() const; - void set_bridge_address(const std::string& value); - void set_bridge_address(std::string&& value); - void set_bridge_address(const char* value); - void set_bridge_address(const char* value, size_t size); - std::string* mutable_bridge_address(); - std::string* release_bridge_address(); - void set_allocated_bridge_address(std::string* bridge_address); + // string asset = 1 [json_name = "asset"]; + void clear_asset(); + const std::string& asset() const; + void set_asset(const std::string& value); + void set_asset(std::string&& value); + void set_asset(const char* value); + void set_asset(const char* value, size_t size); + std::string* mutable_asset(); + std::string* release_asset(); + void set_allocated_asset(std::string* asset); private: - const std::string& _internal_bridge_address() const; - void _internal_set_bridge_address(const std::string& value); - std::string* _internal_mutable_bridge_address(); + const std::string& _internal_asset() const; + void _internal_set_asset(const std::string& value); + std::string* _internal_mutable_asset(); public: - // uint32 confirmations = 4 [json_name = "confirmations"]; - void clear_confirmations(); - ::PROTOBUF_NAMESPACE_ID::uint32 confirmations() const; - void set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value); + // string total_for_asset = 3 [json_name = "totalForAsset"]; + void clear_total_for_asset(); + const std::string& total_for_asset() const; + void set_total_for_asset(const std::string& value); + void set_total_for_asset(std::string&& value); + void set_total_for_asset(const char* value); + void set_total_for_asset(const char* value, size_t size); + std::string* mutable_total_for_asset(); + std::string* release_total_for_asset(); + void set_allocated_total_for_asset(std::string* total_for_asset); private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_confirmations() const; - void _internal_set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value); + const std::string& _internal_total_for_asset() const; + void _internal_set_total_for_asset(const std::string& value); + std::string* _internal_mutable_total_for_asset(); public: - // @@protoc_insertion_point(class_scope:vega.EthereumConfig) + // @@protoc_insertion_point(class_scope:vega.RewardPerAssetDetail) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr network_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chain_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bridge_address_; - ::PROTOBUF_NAMESPACE_ID::uint32 confirmations_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::RewardDetails > details_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr total_for_asset_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -10231,15 +11054,54 @@ inline std::string* Party::release_id() { // @@protoc_insertion_point(field_release:vega.Party.id) return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Party::set_allocated_id(std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Party.id) +inline void Party::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Party.id) +} + +// repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; +inline int Party::_internal_delegations_size() const { + return delegations_.size(); +} +inline int Party::delegations_size() const { + return _internal_delegations_size(); +} +inline void Party::clear_delegations() { + delegations_.Clear(); +} +inline ::vega::Delegation* Party::mutable_delegations(int index) { + // @@protoc_insertion_point(field_mutable:vega.Party.delegations) + return delegations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* +Party::mutable_delegations() { + // @@protoc_insertion_point(field_mutable_list:vega.Party.delegations) + return &delegations_; +} +inline const ::vega::Delegation& Party::_internal_delegations(int index) const { + return delegations_.Get(index); +} +inline const ::vega::Delegation& Party::delegations(int index) const { + // @@protoc_insertion_point(field_get:vega.Party.delegations) + return _internal_delegations(index); +} +inline ::vega::Delegation* Party::_internal_add_delegations() { + return delegations_.Add(); +} +inline ::vega::Delegation* Party::add_delegations() { + // @@protoc_insertion_point(field_add:vega.Party.delegations) + return _internal_add_delegations(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& +Party::delegations() const { + // @@protoc_insertion_point(field_list:vega.Party.delegations) + return delegations_; } // ------------------------------------------------------------------- @@ -12273,386 +13135,712 @@ inline void Fee::clear_liquidity_fee() { inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::_internal_liquidity_fee() const { return liquidity_fee_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::liquidity_fee() const { - // @@protoc_insertion_point(field_get:vega.Fee.liquidity_fee) - return _internal_liquidity_fee(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::liquidity_fee() const { + // @@protoc_insertion_point(field_get:vega.Fee.liquidity_fee) + return _internal_liquidity_fee(); +} +inline void Fee::_internal_set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + liquidity_fee_ = value; +} +inline void Fee::set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_liquidity_fee(value); + // @@protoc_insertion_point(field_set:vega.Fee.liquidity_fee) +} + +// ------------------------------------------------------------------- + +// TradeSet + +// repeated .vega.Trade trades = 1 [json_name = "trades"]; +inline int TradeSet::_internal_trades_size() const { + return trades_.size(); +} +inline int TradeSet::trades_size() const { + return _internal_trades_size(); +} +inline void TradeSet::clear_trades() { + trades_.Clear(); +} +inline ::vega::Trade* TradeSet::mutable_trades(int index) { + // @@protoc_insertion_point(field_mutable:vega.TradeSet.trades) + return trades_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* +TradeSet::mutable_trades() { + // @@protoc_insertion_point(field_mutable_list:vega.TradeSet.trades) + return &trades_; +} +inline const ::vega::Trade& TradeSet::_internal_trades(int index) const { + return trades_.Get(index); +} +inline const ::vega::Trade& TradeSet::trades(int index) const { + // @@protoc_insertion_point(field_get:vega.TradeSet.trades) + return _internal_trades(index); +} +inline ::vega::Trade* TradeSet::_internal_add_trades() { + return trades_.Add(); +} +inline ::vega::Trade* TradeSet::add_trades() { + // @@protoc_insertion_point(field_add:vega.TradeSet.trades) + return _internal_add_trades(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& +TradeSet::trades() const { + // @@protoc_insertion_point(field_list:vega.TradeSet.trades) + return trades_; +} + +// ------------------------------------------------------------------- + +// Candle + +// int64 timestamp = 1 [json_name = "timestamp"]; +inline void Candle::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Candle::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Candle::timestamp() const { + // @@protoc_insertion_point(field_get:vega.Candle.timestamp) + return _internal_timestamp(); +} +inline void Candle::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + + timestamp_ = value; +} +inline void Candle::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:vega.Candle.timestamp) +} + +// string datetime = 2 [json_name = "datetime"]; +inline void Candle::clear_datetime() { + datetime_.ClearToEmpty(); +} +inline const std::string& Candle::datetime() const { + // @@protoc_insertion_point(field_get:vega.Candle.datetime) + return _internal_datetime(); +} +inline void Candle::set_datetime(const std::string& value) { + _internal_set_datetime(value); + // @@protoc_insertion_point(field_set:vega.Candle.datetime) +} +inline std::string* Candle::mutable_datetime() { + // @@protoc_insertion_point(field_mutable:vega.Candle.datetime) + return _internal_mutable_datetime(); +} +inline const std::string& Candle::_internal_datetime() const { + return datetime_.Get(); +} +inline void Candle::_internal_set_datetime(const std::string& value) { + + datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Candle::set_datetime(std::string&& value) { + + datetime_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Candle.datetime) +} +inline void Candle::set_datetime(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Candle.datetime) +} +inline void Candle::set_datetime(const char* value, + size_t size) { + + datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Candle.datetime) +} +inline std::string* Candle::_internal_mutable_datetime() { + + return datetime_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Candle::release_datetime() { + // @@protoc_insertion_point(field_release:vega.Candle.datetime) + return datetime_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Candle::set_allocated_datetime(std::string* datetime) { + if (datetime != nullptr) { + + } else { + + } + datetime_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), datetime, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Candle.datetime) +} + +// uint64 high = 3 [json_name = "high"]; +inline void Candle::clear_high() { + high_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_high() const { + return high_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::high() const { + // @@protoc_insertion_point(field_get:vega.Candle.high) + return _internal_high(); +} +inline void Candle::_internal_set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + high_ = value; +} +inline void Candle::set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_high(value); + // @@protoc_insertion_point(field_set:vega.Candle.high) +} + +// uint64 low = 4 [json_name = "low"]; +inline void Candle::clear_low() { + low_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_low() const { + return low_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::low() const { + // @@protoc_insertion_point(field_get:vega.Candle.low) + return _internal_low(); +} +inline void Candle::_internal_set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + low_ = value; +} +inline void Candle::set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_low(value); + // @@protoc_insertion_point(field_set:vega.Candle.low) +} + +// uint64 open = 5 [json_name = "open"]; +inline void Candle::clear_open() { + open_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_open() const { + return open_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::open() const { + // @@protoc_insertion_point(field_get:vega.Candle.open) + return _internal_open(); +} +inline void Candle::_internal_set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + open_ = value; +} +inline void Candle::set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_open(value); + // @@protoc_insertion_point(field_set:vega.Candle.open) +} + +// uint64 close = 6 [json_name = "close"]; +inline void Candle::clear_close() { + close_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_close() const { + return close_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::close() const { + // @@protoc_insertion_point(field_get:vega.Candle.close) + return _internal_close(); +} +inline void Candle::_internal_set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + close_ = value; +} +inline void Candle::set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_close(value); + // @@protoc_insertion_point(field_set:vega.Candle.close) +} + +// uint64 volume = 7 [json_name = "volume"]; +inline void Candle::clear_volume() { + volume_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_volume() const { + return volume_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::volume() const { + // @@protoc_insertion_point(field_get:vega.Candle.volume) + return _internal_volume(); +} +inline void Candle::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + volume_ = value; +} +inline void Candle::set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_volume(value); + // @@protoc_insertion_point(field_set:vega.Candle.volume) +} + +// .vega.Interval interval = 8 [json_name = "interval"]; +inline void Candle::clear_interval() { + interval_ = 0; +} +inline ::vega::Interval Candle::_internal_interval() const { + return static_cast< ::vega::Interval >(interval_); +} +inline ::vega::Interval Candle::interval() const { + // @@protoc_insertion_point(field_get:vega.Candle.interval) + return _internal_interval(); } -inline void Fee::_internal_set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Candle::_internal_set_interval(::vega::Interval value) { - liquidity_fee_ = value; + interval_ = value; } -inline void Fee::set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_liquidity_fee(value); - // @@protoc_insertion_point(field_set:vega.Fee.liquidity_fee) +inline void Candle::set_interval(::vega::Interval value) { + _internal_set_interval(value); + // @@protoc_insertion_point(field_set:vega.Candle.interval) } // ------------------------------------------------------------------- -// TradeSet +// PriceLevel -// repeated .vega.Trade trades = 1 [json_name = "trades"]; -inline int TradeSet::_internal_trades_size() const { - return trades_.size(); +// uint64 price = 1 [json_name = "price"]; +inline void PriceLevel::clear_price() { + price_ = PROTOBUF_ULONGLONG(0); } -inline int TradeSet::trades_size() const { - return _internal_trades_size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_price() const { + return price_; } -inline void TradeSet::clear_trades() { - trades_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::price() const { + // @@protoc_insertion_point(field_get:vega.PriceLevel.price) + return _internal_price(); } -inline ::vega::Trade* TradeSet::mutable_trades(int index) { - // @@protoc_insertion_point(field_mutable:vega.TradeSet.trades) - return trades_.Mutable(index); +inline void PriceLevel::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + price_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >* -TradeSet::mutable_trades() { - // @@protoc_insertion_point(field_mutable_list:vega.TradeSet.trades) - return &trades_; +inline void PriceLevel::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_price(value); + // @@protoc_insertion_point(field_set:vega.PriceLevel.price) } -inline const ::vega::Trade& TradeSet::_internal_trades(int index) const { - return trades_.Get(index); + +// uint64 number_of_orders = 2 [json_name = "numberOfOrders"]; +inline void PriceLevel::clear_number_of_orders() { + number_of_orders_ = PROTOBUF_ULONGLONG(0); } -inline const ::vega::Trade& TradeSet::trades(int index) const { - // @@protoc_insertion_point(field_get:vega.TradeSet.trades) - return _internal_trades(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_number_of_orders() const { + return number_of_orders_; } -inline ::vega::Trade* TradeSet::_internal_add_trades() { - return trades_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::number_of_orders() const { + // @@protoc_insertion_point(field_get:vega.PriceLevel.number_of_orders) + return _internal_number_of_orders(); } -inline ::vega::Trade* TradeSet::add_trades() { - // @@protoc_insertion_point(field_add:vega.TradeSet.trades) - return _internal_add_trades(); +inline void PriceLevel::_internal_set_number_of_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + number_of_orders_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Trade >& -TradeSet::trades() const { - // @@protoc_insertion_point(field_list:vega.TradeSet.trades) - return trades_; +inline void PriceLevel::set_number_of_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_number_of_orders(value); + // @@protoc_insertion_point(field_set:vega.PriceLevel.number_of_orders) } -// ------------------------------------------------------------------- - -// Candle - -// int64 timestamp = 1 [json_name = "timestamp"]; -inline void Candle::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); +// uint64 volume = 3 [json_name = "volume"]; +inline void PriceLevel::clear_volume() { + volume_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Candle::_internal_timestamp() const { - return timestamp_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_volume() const { + return volume_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Candle::timestamp() const { - // @@protoc_insertion_point(field_get:vega.Candle.timestamp) - return _internal_timestamp(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::volume() const { + // @@protoc_insertion_point(field_get:vega.PriceLevel.volume) + return _internal_volume(); } -inline void Candle::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PriceLevel::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - timestamp_ = value; + volume_ = value; } -inline void Candle::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:vega.Candle.timestamp) +inline void PriceLevel::set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_volume(value); + // @@protoc_insertion_point(field_set:vega.PriceLevel.volume) } -// string datetime = 2 [json_name = "datetime"]; -inline void Candle::clear_datetime() { - datetime_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// MarketDepth + +// string market_id = 1 [json_name = "marketId"]; +inline void MarketDepth::clear_market_id() { + market_id_.ClearToEmpty(); } -inline const std::string& Candle::datetime() const { - // @@protoc_insertion_point(field_get:vega.Candle.datetime) - return _internal_datetime(); +inline const std::string& MarketDepth::market_id() const { + // @@protoc_insertion_point(field_get:vega.MarketDepth.market_id) + return _internal_market_id(); } -inline void Candle::set_datetime(const std::string& value) { - _internal_set_datetime(value); - // @@protoc_insertion_point(field_set:vega.Candle.datetime) +inline void MarketDepth::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:vega.MarketDepth.market_id) } -inline std::string* Candle::mutable_datetime() { - // @@protoc_insertion_point(field_mutable:vega.Candle.datetime) - return _internal_mutable_datetime(); +inline std::string* MarketDepth::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.MarketDepth.market_id) + return _internal_mutable_market_id(); } -inline const std::string& Candle::_internal_datetime() const { - return datetime_.Get(); +inline const std::string& MarketDepth::_internal_market_id() const { + return market_id_.Get(); } -inline void Candle::_internal_set_datetime(const std::string& value) { +inline void MarketDepth::_internal_set_market_id(const std::string& value) { - datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Candle::set_datetime(std::string&& value) { +inline void MarketDepth::set_market_id(std::string&& value) { - datetime_.Set( + market_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Candle.datetime) + // @@protoc_insertion_point(field_set_rvalue:vega.MarketDepth.market_id) } -inline void Candle::set_datetime(const char* value) { +inline void MarketDepth::set_market_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Candle.datetime) + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketDepth.market_id) } -inline void Candle::set_datetime(const char* value, +inline void MarketDepth::set_market_id(const char* value, size_t size) { - datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Candle.datetime) + // @@protoc_insertion_point(field_set_pointer:vega.MarketDepth.market_id) } -inline std::string* Candle::_internal_mutable_datetime() { +inline std::string* MarketDepth::_internal_mutable_market_id() { - return datetime_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Candle::release_datetime() { - // @@protoc_insertion_point(field_release:vega.Candle.datetime) - return datetime_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* MarketDepth::release_market_id() { + // @@protoc_insertion_point(field_release:vega.MarketDepth.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Candle::set_allocated_datetime(std::string* datetime) { - if (datetime != nullptr) { +inline void MarketDepth::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { } else { } - datetime_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), datetime, + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Candle.datetime) + // @@protoc_insertion_point(field_set_allocated:vega.MarketDepth.market_id) +} + +// repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; +inline int MarketDepth::_internal_buy_size() const { + return buy_.size(); +} +inline int MarketDepth::buy_size() const { + return _internal_buy_size(); +} +inline void MarketDepth::clear_buy() { + buy_.Clear(); +} +inline ::vega::PriceLevel* MarketDepth::mutable_buy(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketDepth.buy) + return buy_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* +MarketDepth::mutable_buy() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketDepth.buy) + return &buy_; +} +inline const ::vega::PriceLevel& MarketDepth::_internal_buy(int index) const { + return buy_.Get(index); +} +inline const ::vega::PriceLevel& MarketDepth::buy(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketDepth.buy) + return _internal_buy(index); +} +inline ::vega::PriceLevel* MarketDepth::_internal_add_buy() { + return buy_.Add(); +} +inline ::vega::PriceLevel* MarketDepth::add_buy() { + // @@protoc_insertion_point(field_add:vega.MarketDepth.buy) + return _internal_add_buy(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& +MarketDepth::buy() const { + // @@protoc_insertion_point(field_list:vega.MarketDepth.buy) + return buy_; +} + +// repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; +inline int MarketDepth::_internal_sell_size() const { + return sell_.size(); +} +inline int MarketDepth::sell_size() const { + return _internal_sell_size(); +} +inline void MarketDepth::clear_sell() { + sell_.Clear(); +} +inline ::vega::PriceLevel* MarketDepth::mutable_sell(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketDepth.sell) + return sell_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* +MarketDepth::mutable_sell() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketDepth.sell) + return &sell_; +} +inline const ::vega::PriceLevel& MarketDepth::_internal_sell(int index) const { + return sell_.Get(index); +} +inline const ::vega::PriceLevel& MarketDepth::sell(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketDepth.sell) + return _internal_sell(index); +} +inline ::vega::PriceLevel* MarketDepth::_internal_add_sell() { + return sell_.Add(); +} +inline ::vega::PriceLevel* MarketDepth::add_sell() { + // @@protoc_insertion_point(field_add:vega.MarketDepth.sell) + return _internal_add_sell(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& +MarketDepth::sell() const { + // @@protoc_insertion_point(field_list:vega.MarketDepth.sell) + return sell_; } -// uint64 high = 3 [json_name = "high"]; -inline void Candle::clear_high() { - high_ = PROTOBUF_ULONGLONG(0); +// uint64 sequence_number = 4 [json_name = "sequenceNumber"]; +inline void MarketDepth::clear_sequence_number() { + sequence_number_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_high() const { - return high_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepth::_internal_sequence_number() const { + return sequence_number_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::high() const { - // @@protoc_insertion_point(field_get:vega.Candle.high) - return _internal_high(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepth::sequence_number() const { + // @@protoc_insertion_point(field_get:vega.MarketDepth.sequence_number) + return _internal_sequence_number(); } -inline void Candle::_internal_set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketDepth::_internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - high_ = value; + sequence_number_ = value; } -inline void Candle::set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_high(value); - // @@protoc_insertion_point(field_set:vega.Candle.high) +inline void MarketDepth::set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_sequence_number(value); + // @@protoc_insertion_point(field_set:vega.MarketDepth.sequence_number) } -// uint64 low = 4 [json_name = "low"]; -inline void Candle::clear_low() { - low_ = PROTOBUF_ULONGLONG(0); +// ------------------------------------------------------------------- + +// MarketDepthUpdate + +// string market_id = 1 [json_name = "marketId"]; +inline void MarketDepthUpdate::clear_market_id() { + market_id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_low() const { - return low_; +inline const std::string& MarketDepthUpdate::market_id() const { + // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.market_id) + return _internal_market_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::low() const { - // @@protoc_insertion_point(field_get:vega.Candle.low) - return _internal_low(); +inline void MarketDepthUpdate::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:vega.MarketDepthUpdate.market_id) } -inline void Candle::_internal_set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - low_ = value; +inline std::string* MarketDepthUpdate::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.market_id) + return _internal_mutable_market_id(); } -inline void Candle::set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_low(value); - // @@protoc_insertion_point(field_set:vega.Candle.low) +inline const std::string& MarketDepthUpdate::_internal_market_id() const { + return market_id_.Get(); } +inline void MarketDepthUpdate::_internal_set_market_id(const std::string& value) { -// uint64 open = 5 [json_name = "open"]; -inline void Candle::clear_open() { - open_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_open() const { - return open_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::open() const { - // @@protoc_insertion_point(field_get:vega.Candle.open) - return _internal_open(); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Candle::_internal_set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketDepthUpdate::set_market_id(std::string&& value) { - open_ = value; + market_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketDepthUpdate.market_id) } -inline void Candle::set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_open(value); - // @@protoc_insertion_point(field_set:vega.Candle.open) +inline void MarketDepthUpdate::set_market_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketDepthUpdate.market_id) } +inline void MarketDepthUpdate::set_market_id(const char* value, + size_t size) { -// uint64 close = 6 [json_name = "close"]; -inline void Candle::clear_close() { - close_ = PROTOBUF_ULONGLONG(0); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketDepthUpdate.market_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_close() const { - return close_; +inline std::string* MarketDepthUpdate::_internal_mutable_market_id() { + + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::close() const { - // @@protoc_insertion_point(field_get:vega.Candle.close) - return _internal_close(); +inline std::string* MarketDepthUpdate::release_market_id() { + // @@protoc_insertion_point(field_release:vega.MarketDepthUpdate.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Candle::_internal_set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketDepthUpdate::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { - close_ = value; -} -inline void Candle::set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_close(value); - // @@protoc_insertion_point(field_set:vega.Candle.close) + } else { + + } + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketDepthUpdate.market_id) } -// uint64 volume = 7 [json_name = "volume"]; -inline void Candle::clear_volume() { - volume_ = PROTOBUF_ULONGLONG(0); +// repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; +inline int MarketDepthUpdate::_internal_buy_size() const { + return buy_.size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_volume() const { - return volume_; +inline int MarketDepthUpdate::buy_size() const { + return _internal_buy_size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::volume() const { - // @@protoc_insertion_point(field_get:vega.Candle.volume) - return _internal_volume(); +inline void MarketDepthUpdate::clear_buy() { + buy_.Clear(); } -inline void Candle::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - volume_ = value; +inline ::vega::PriceLevel* MarketDepthUpdate::mutable_buy(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.buy) + return buy_.Mutable(index); } -inline void Candle::set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_volume(value); - // @@protoc_insertion_point(field_set:vega.Candle.volume) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* +MarketDepthUpdate::mutable_buy() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketDepthUpdate.buy) + return &buy_; } - -// .vega.Interval interval = 8 [json_name = "interval"]; -inline void Candle::clear_interval() { - interval_ = 0; +inline const ::vega::PriceLevel& MarketDepthUpdate::_internal_buy(int index) const { + return buy_.Get(index); } -inline ::vega::Interval Candle::_internal_interval() const { - return static_cast< ::vega::Interval >(interval_); +inline const ::vega::PriceLevel& MarketDepthUpdate::buy(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.buy) + return _internal_buy(index); } -inline ::vega::Interval Candle::interval() const { - // @@protoc_insertion_point(field_get:vega.Candle.interval) - return _internal_interval(); +inline ::vega::PriceLevel* MarketDepthUpdate::_internal_add_buy() { + return buy_.Add(); } -inline void Candle::_internal_set_interval(::vega::Interval value) { - - interval_ = value; +inline ::vega::PriceLevel* MarketDepthUpdate::add_buy() { + // @@protoc_insertion_point(field_add:vega.MarketDepthUpdate.buy) + return _internal_add_buy(); } -inline void Candle::set_interval(::vega::Interval value) { - _internal_set_interval(value); - // @@protoc_insertion_point(field_set:vega.Candle.interval) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& +MarketDepthUpdate::buy() const { + // @@protoc_insertion_point(field_list:vega.MarketDepthUpdate.buy) + return buy_; } -// ------------------------------------------------------------------- - -// PriceLevel - -// uint64 price = 1 [json_name = "price"]; -inline void PriceLevel::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); +// repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; +inline int MarketDepthUpdate::_internal_sell_size() const { + return sell_.size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_price() const { - return price_; +inline int MarketDepthUpdate::sell_size() const { + return _internal_sell_size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::price() const { - // @@protoc_insertion_point(field_get:vega.PriceLevel.price) - return _internal_price(); +inline void MarketDepthUpdate::clear_sell() { + sell_.Clear(); } -inline void PriceLevel::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; +inline ::vega::PriceLevel* MarketDepthUpdate::mutable_sell(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.sell) + return sell_.Mutable(index); } -inline void PriceLevel::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_price(value); - // @@protoc_insertion_point(field_set:vega.PriceLevel.price) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* +MarketDepthUpdate::mutable_sell() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketDepthUpdate.sell) + return &sell_; } - -// uint64 number_of_orders = 2 [json_name = "numberOfOrders"]; -inline void PriceLevel::clear_number_of_orders() { - number_of_orders_ = PROTOBUF_ULONGLONG(0); +inline const ::vega::PriceLevel& MarketDepthUpdate::_internal_sell(int index) const { + return sell_.Get(index); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_number_of_orders() const { - return number_of_orders_; +inline const ::vega::PriceLevel& MarketDepthUpdate::sell(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.sell) + return _internal_sell(index); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::number_of_orders() const { - // @@protoc_insertion_point(field_get:vega.PriceLevel.number_of_orders) - return _internal_number_of_orders(); +inline ::vega::PriceLevel* MarketDepthUpdate::_internal_add_sell() { + return sell_.Add(); } -inline void PriceLevel::_internal_set_number_of_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - number_of_orders_ = value; +inline ::vega::PriceLevel* MarketDepthUpdate::add_sell() { + // @@protoc_insertion_point(field_add:vega.MarketDepthUpdate.sell) + return _internal_add_sell(); } -inline void PriceLevel::set_number_of_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_number_of_orders(value); - // @@protoc_insertion_point(field_set:vega.PriceLevel.number_of_orders) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& +MarketDepthUpdate::sell() const { + // @@protoc_insertion_point(field_list:vega.MarketDepthUpdate.sell) + return sell_; } -// uint64 volume = 3 [json_name = "volume"]; -inline void PriceLevel::clear_volume() { - volume_ = PROTOBUF_ULONGLONG(0); +// uint64 sequence_number = 4 [json_name = "sequenceNumber"]; +inline void MarketDepthUpdate::clear_sequence_number() { + sequence_number_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_volume() const { - return volume_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthUpdate::_internal_sequence_number() const { + return sequence_number_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::volume() const { - // @@protoc_insertion_point(field_get:vega.PriceLevel.volume) - return _internal_volume(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthUpdate::sequence_number() const { + // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.sequence_number) + return _internal_sequence_number(); } -inline void PriceLevel::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketDepthUpdate::_internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - volume_ = value; + sequence_number_ = value; } -inline void PriceLevel::set_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_volume(value); - // @@protoc_insertion_point(field_set:vega.PriceLevel.volume) +inline void MarketDepthUpdate::set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_sequence_number(value); + // @@protoc_insertion_point(field_set:vega.MarketDepthUpdate.sequence_number) } // ------------------------------------------------------------------- -// MarketDepth +// Position // string market_id = 1 [json_name = "marketId"]; -inline void MarketDepth::clear_market_id() { +inline void Position::clear_market_id() { market_id_.ClearToEmpty(); } -inline const std::string& MarketDepth::market_id() const { - // @@protoc_insertion_point(field_get:vega.MarketDepth.market_id) +inline const std::string& Position::market_id() const { + // @@protoc_insertion_point(field_get:vega.Position.market_id) return _internal_market_id(); } -inline void MarketDepth::set_market_id(const std::string& value) { +inline void Position::set_market_id(const std::string& value) { _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.MarketDepth.market_id) + // @@protoc_insertion_point(field_set:vega.Position.market_id) } -inline std::string* MarketDepth::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.MarketDepth.market_id) +inline std::string* Position::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.Position.market_id) return _internal_mutable_market_id(); } -inline const std::string& MarketDepth::_internal_market_id() const { +inline const std::string& Position::_internal_market_id() const { return market_id_.Get(); } -inline void MarketDepth::_internal_set_market_id(const std::string& value) { +inline void Position::_internal_set_market_id(const std::string& value) { market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketDepth::set_market_id(std::string&& value) { +inline void Position::set_market_id(std::string&& value) { market_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketDepth.market_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Position.market_id) } -inline void MarketDepth::set_market_id(const char* value) { +inline void Position::set_market_id(const char* value) { GOOGLE_DCHECK(value != nullptr); market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketDepth.market_id) + // @@protoc_insertion_point(field_set_char:vega.Position.market_id) } -inline void MarketDepth::set_market_id(const char* value, +inline void Position::set_market_id(const char* value, size_t size) { market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketDepth.market_id) + // @@protoc_insertion_point(field_set_pointer:vega.Position.market_id) } -inline std::string* MarketDepth::_internal_mutable_market_id() { +inline std::string* Position::_internal_mutable_market_id() { return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketDepth::release_market_id() { - // @@protoc_insertion_point(field_release:vega.MarketDepth.market_id) +inline std::string* Position::release_market_id() { + // @@protoc_insertion_point(field_release:vega.Position.market_id) return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketDepth::set_allocated_market_id(std::string* market_id) { +inline void Position::set_allocated_market_id(std::string* market_id) { if (market_id != nullptr) { } else { @@ -12660,2721 +13848,2765 @@ inline void MarketDepth::set_allocated_market_id(std::string* market_id) { } market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketDepth.market_id) + // @@protoc_insertion_point(field_set_allocated:vega.Position.market_id) } -// repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; -inline int MarketDepth::_internal_buy_size() const { - return buy_.size(); +// string party_id = 2 [json_name = "partyId"]; +inline void Position::clear_party_id() { + party_id_.ClearToEmpty(); } -inline int MarketDepth::buy_size() const { - return _internal_buy_size(); +inline const std::string& Position::party_id() const { + // @@protoc_insertion_point(field_get:vega.Position.party_id) + return _internal_party_id(); } -inline void MarketDepth::clear_buy() { - buy_.Clear(); +inline void Position::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.Position.party_id) } -inline ::vega::PriceLevel* MarketDepth::mutable_buy(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketDepth.buy) - return buy_.Mutable(index); +inline std::string* Position::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.Position.party_id) + return _internal_mutable_party_id(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepth::mutable_buy() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketDepth.buy) - return &buy_; +inline const std::string& Position::_internal_party_id() const { + return party_id_.Get(); } -inline const ::vega::PriceLevel& MarketDepth::_internal_buy(int index) const { - return buy_.Get(index); +inline void Position::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline const ::vega::PriceLevel& MarketDepth::buy(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketDepth.buy) - return _internal_buy(index); +inline void Position::set_party_id(std::string&& value) { + + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Position.party_id) } -inline ::vega::PriceLevel* MarketDepth::_internal_add_buy() { - return buy_.Add(); +inline void Position::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Position.party_id) } -inline ::vega::PriceLevel* MarketDepth::add_buy() { - // @@protoc_insertion_point(field_add:vega.MarketDepth.buy) - return _internal_add_buy(); +inline void Position::set_party_id(const char* value, + size_t size) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Position.party_id) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepth::buy() const { - // @@protoc_insertion_point(field_list:vega.MarketDepth.buy) - return buy_; +inline std::string* Position::_internal_mutable_party_id() { + + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } +inline std::string* Position::release_party_id() { + // @@protoc_insertion_point(field_release:vega.Position.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Position::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { -// repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; -inline int MarketDepth::_internal_sell_size() const { - return sell_.size(); + } else { + + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Position.party_id) } -inline int MarketDepth::sell_size() const { - return _internal_sell_size(); + +// int64 open_volume = 3 [json_name = "openVolume"]; +inline void Position::clear_open_volume() { + open_volume_ = PROTOBUF_LONGLONG(0); } -inline void MarketDepth::clear_sell() { - sell_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_open_volume() const { + return open_volume_; } -inline ::vega::PriceLevel* MarketDepth::mutable_sell(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketDepth.sell) - return sell_.Mutable(index); +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::open_volume() const { + // @@protoc_insertion_point(field_get:vega.Position.open_volume) + return _internal_open_volume(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepth::mutable_sell() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketDepth.sell) - return &sell_; +inline void Position::_internal_set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { + + open_volume_ = value; } -inline const ::vega::PriceLevel& MarketDepth::_internal_sell(int index) const { - return sell_.Get(index); +inline void Position::set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_open_volume(value); + // @@protoc_insertion_point(field_set:vega.Position.open_volume) } -inline const ::vega::PriceLevel& MarketDepth::sell(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketDepth.sell) - return _internal_sell(index); + +// int64 realised_pnl = 4 [json_name = "realisedPnl"]; +inline void Position::clear_realised_pnl() { + realised_pnl_ = PROTOBUF_LONGLONG(0); } -inline ::vega::PriceLevel* MarketDepth::_internal_add_sell() { - return sell_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_realised_pnl() const { + return realised_pnl_; } -inline ::vega::PriceLevel* MarketDepth::add_sell() { - // @@protoc_insertion_point(field_add:vega.MarketDepth.sell) - return _internal_add_sell(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::realised_pnl() const { + // @@protoc_insertion_point(field_get:vega.Position.realised_pnl) + return _internal_realised_pnl(); +} +inline void Position::_internal_set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { + + realised_pnl_ = value; +} +inline void Position::set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_realised_pnl(value); + // @@protoc_insertion_point(field_set:vega.Position.realised_pnl) +} + +// int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; +inline void Position::clear_unrealised_pnl() { + unrealised_pnl_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_unrealised_pnl() const { + return unrealised_pnl_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::unrealised_pnl() const { + // @@protoc_insertion_point(field_get:vega.Position.unrealised_pnl) + return _internal_unrealised_pnl(); +} +inline void Position::_internal_set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { + + unrealised_pnl_ = value; +} +inline void Position::set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_unrealised_pnl(value); + // @@protoc_insertion_point(field_set:vega.Position.unrealised_pnl) +} + +// uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; +inline void Position::clear_average_entry_price() { + average_entry_price_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::_internal_average_entry_price() const { + return average_entry_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::average_entry_price() const { + // @@protoc_insertion_point(field_get:vega.Position.average_entry_price) + return _internal_average_entry_price(); +} +inline void Position::_internal_set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + average_entry_price_ = value; +} +inline void Position::set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_average_entry_price(value); + // @@protoc_insertion_point(field_set:vega.Position.average_entry_price) +} + +// int64 updated_at = 7 [json_name = "updatedAt"]; +inline void Position::clear_updated_at() { + updated_at_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_updated_at() const { + return updated_at_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::updated_at() const { + // @@protoc_insertion_point(field_get:vega.Position.updated_at) + return _internal_updated_at(); +} +inline void Position::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + + updated_at_ = value; +} +inline void Position::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_updated_at(value); + // @@protoc_insertion_point(field_set:vega.Position.updated_at) +} + +// ------------------------------------------------------------------- + +// PositionTrade + +// int64 volume = 1 [json_name = "volume"]; +inline void PositionTrade::clear_volume() { + volume_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 PositionTrade::_internal_volume() const { + return volume_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 PositionTrade::volume() const { + // @@protoc_insertion_point(field_get:vega.PositionTrade.volume) + return _internal_volume(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepth::sell() const { - // @@protoc_insertion_point(field_list:vega.MarketDepth.sell) - return sell_; +inline void PositionTrade::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { + + volume_ = value; +} +inline void PositionTrade::set_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_volume(value); + // @@protoc_insertion_point(field_set:vega.PositionTrade.volume) } -// uint64 sequence_number = 4 [json_name = "sequenceNumber"]; -inline void MarketDepth::clear_sequence_number() { - sequence_number_ = PROTOBUF_ULONGLONG(0); +// uint64 price = 2 [json_name = "price"]; +inline void PositionTrade::clear_price() { + price_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepth::_internal_sequence_number() const { - return sequence_number_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::_internal_price() const { + return price_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepth::sequence_number() const { - // @@protoc_insertion_point(field_get:vega.MarketDepth.sequence_number) - return _internal_sequence_number(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::price() const { + // @@protoc_insertion_point(field_get:vega.PositionTrade.price) + return _internal_price(); } -inline void MarketDepth::_internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PositionTrade::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - sequence_number_ = value; + price_ = value; } -inline void MarketDepth::set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_sequence_number(value); - // @@protoc_insertion_point(field_set:vega.MarketDepth.sequence_number) +inline void PositionTrade::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_price(value); + // @@protoc_insertion_point(field_set:vega.PositionTrade.price) } // ------------------------------------------------------------------- -// MarketDepthUpdate +// Deposit -// string market_id = 1 [json_name = "marketId"]; -inline void MarketDepthUpdate::clear_market_id() { - market_id_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void Deposit::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& MarketDepthUpdate::market_id() const { - // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.market_id) - return _internal_market_id(); +inline const std::string& Deposit::id() const { + // @@protoc_insertion_point(field_get:vega.Deposit.id) + return _internal_id(); } -inline void MarketDepthUpdate::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.MarketDepthUpdate.market_id) +inline void Deposit::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.Deposit.id) } -inline std::string* MarketDepthUpdate::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.market_id) - return _internal_mutable_market_id(); +inline std::string* Deposit::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.Deposit.id) + return _internal_mutable_id(); } -inline const std::string& MarketDepthUpdate::_internal_market_id() const { - return market_id_.Get(); +inline const std::string& Deposit::_internal_id() const { + return id_.Get(); } -inline void MarketDepthUpdate::_internal_set_market_id(const std::string& value) { +inline void Deposit::_internal_set_id(const std::string& value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketDepthUpdate::set_market_id(std::string&& value) { +inline void Deposit::set_id(std::string&& value) { - market_id_.Set( + id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketDepthUpdate.market_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.id) } -inline void MarketDepthUpdate::set_market_id(const char* value) { +inline void Deposit::set_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketDepthUpdate.market_id) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Deposit.id) } -inline void MarketDepthUpdate::set_market_id(const char* value, +inline void Deposit::set_id(const char* value, size_t size) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketDepthUpdate.market_id) + // @@protoc_insertion_point(field_set_pointer:vega.Deposit.id) } -inline std::string* MarketDepthUpdate::_internal_mutable_market_id() { +inline std::string* Deposit::_internal_mutable_id() { - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketDepthUpdate::release_market_id() { - // @@protoc_insertion_point(field_release:vega.MarketDepthUpdate.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Deposit::release_id() { + // @@protoc_insertion_point(field_release:vega.Deposit.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketDepthUpdate::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { +inline void Deposit::set_allocated_id(std::string* id) { + if (id != nullptr) { } else { } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketDepthUpdate.market_id) + // @@protoc_insertion_point(field_set_allocated:vega.Deposit.id) } -// repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; -inline int MarketDepthUpdate::_internal_buy_size() const { - return buy_.size(); -} -inline int MarketDepthUpdate::buy_size() const { - return _internal_buy_size(); -} -inline void MarketDepthUpdate::clear_buy() { - buy_.Clear(); -} -inline ::vega::PriceLevel* MarketDepthUpdate::mutable_buy(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.buy) - return buy_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepthUpdate::mutable_buy() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketDepthUpdate.buy) - return &buy_; -} -inline const ::vega::PriceLevel& MarketDepthUpdate::_internal_buy(int index) const { - return buy_.Get(index); -} -inline const ::vega::PriceLevel& MarketDepthUpdate::buy(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.buy) - return _internal_buy(index); -} -inline ::vega::PriceLevel* MarketDepthUpdate::_internal_add_buy() { - return buy_.Add(); +// .vega.Deposit.Status status = 2 [json_name = "status"]; +inline void Deposit::clear_status() { + status_ = 0; } -inline ::vega::PriceLevel* MarketDepthUpdate::add_buy() { - // @@protoc_insertion_point(field_add:vega.MarketDepthUpdate.buy) - return _internal_add_buy(); +inline ::vega::Deposit_Status Deposit::_internal_status() const { + return static_cast< ::vega::Deposit_Status >(status_); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepthUpdate::buy() const { - // @@protoc_insertion_point(field_list:vega.MarketDepthUpdate.buy) - return buy_; +inline ::vega::Deposit_Status Deposit::status() const { + // @@protoc_insertion_point(field_get:vega.Deposit.status) + return _internal_status(); } +inline void Deposit::_internal_set_status(::vega::Deposit_Status value) { -// repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; -inline int MarketDepthUpdate::_internal_sell_size() const { - return sell_.size(); -} -inline int MarketDepthUpdate::sell_size() const { - return _internal_sell_size(); -} -inline void MarketDepthUpdate::clear_sell() { - sell_.Clear(); + status_ = value; } -inline ::vega::PriceLevel* MarketDepthUpdate::mutable_sell(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketDepthUpdate.sell) - return sell_.Mutable(index); +inline void Deposit::set_status(::vega::Deposit_Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:vega.Deposit.status) } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >* -MarketDepthUpdate::mutable_sell() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketDepthUpdate.sell) - return &sell_; + +// string party_id = 3 [json_name = "partyId"]; +inline void Deposit::clear_party_id() { + party_id_.ClearToEmpty(); } -inline const ::vega::PriceLevel& MarketDepthUpdate::_internal_sell(int index) const { - return sell_.Get(index); +inline const std::string& Deposit::party_id() const { + // @@protoc_insertion_point(field_get:vega.Deposit.party_id) + return _internal_party_id(); } -inline const ::vega::PriceLevel& MarketDepthUpdate::sell(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.sell) - return _internal_sell(index); +inline void Deposit::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.Deposit.party_id) } -inline ::vega::PriceLevel* MarketDepthUpdate::_internal_add_sell() { - return sell_.Add(); +inline std::string* Deposit::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.Deposit.party_id) + return _internal_mutable_party_id(); } -inline ::vega::PriceLevel* MarketDepthUpdate::add_sell() { - // @@protoc_insertion_point(field_add:vega.MarketDepthUpdate.sell) - return _internal_add_sell(); +inline const std::string& Deposit::_internal_party_id() const { + return party_id_.Get(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceLevel >& -MarketDepthUpdate::sell() const { - // @@protoc_insertion_point(field_list:vega.MarketDepthUpdate.sell) - return sell_; +inline void Deposit::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void Deposit::set_party_id(std::string&& value) { -// uint64 sequence_number = 4 [json_name = "sequenceNumber"]; -inline void MarketDepthUpdate::clear_sequence_number() { - sequence_number_ = PROTOBUF_ULONGLONG(0); + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.party_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthUpdate::_internal_sequence_number() const { - return sequence_number_; +inline void Deposit::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Deposit.party_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketDepthUpdate::sequence_number() const { - // @@protoc_insertion_point(field_get:vega.MarketDepthUpdate.sequence_number) - return _internal_sequence_number(); +inline void Deposit::set_party_id(const char* value, + size_t size) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Deposit.party_id) } -inline void MarketDepthUpdate::_internal_set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* Deposit::_internal_mutable_party_id() { - sequence_number_ = value; + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void MarketDepthUpdate::set_sequence_number(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_sequence_number(value); - // @@protoc_insertion_point(field_set:vega.MarketDepthUpdate.sequence_number) +inline std::string* Deposit::release_party_id() { + // @@protoc_insertion_point(field_release:vega.Deposit.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } +inline void Deposit::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { -// ------------------------------------------------------------------- + } else { -// Position + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Deposit.party_id) +} -// string market_id = 1 [json_name = "marketId"]; -inline void Position::clear_market_id() { - market_id_.ClearToEmpty(); +// string asset = 4 [json_name = "asset"]; +inline void Deposit::clear_asset() { + asset_.ClearToEmpty(); } -inline const std::string& Position::market_id() const { - // @@protoc_insertion_point(field_get:vega.Position.market_id) - return _internal_market_id(); +inline const std::string& Deposit::asset() const { + // @@protoc_insertion_point(field_get:vega.Deposit.asset) + return _internal_asset(); } -inline void Position::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.Position.market_id) +inline void Deposit::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.Deposit.asset) } -inline std::string* Position::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.Position.market_id) - return _internal_mutable_market_id(); +inline std::string* Deposit::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.Deposit.asset) + return _internal_mutable_asset(); } -inline const std::string& Position::_internal_market_id() const { - return market_id_.Get(); +inline const std::string& Deposit::_internal_asset() const { + return asset_.Get(); } -inline void Position::_internal_set_market_id(const std::string& value) { +inline void Deposit::_internal_set_asset(const std::string& value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Position::set_market_id(std::string&& value) { +inline void Deposit::set_asset(std::string&& value) { - market_id_.Set( + asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Position.market_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.asset) } -inline void Position::set_market_id(const char* value) { +inline void Deposit::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Position.market_id) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Deposit.asset) } -inline void Position::set_market_id(const char* value, +inline void Deposit::set_asset(const char* value, size_t size) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Position.market_id) + // @@protoc_insertion_point(field_set_pointer:vega.Deposit.asset) } -inline std::string* Position::_internal_mutable_market_id() { +inline std::string* Deposit::_internal_mutable_asset() { - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Position::release_market_id() { - // @@protoc_insertion_point(field_release:vega.Position.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Deposit::release_asset() { + // @@protoc_insertion_point(field_release:vega.Deposit.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Position::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { +inline void Deposit::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { } else { } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Position.market_id) + // @@protoc_insertion_point(field_set_allocated:vega.Deposit.asset) } -// string party_id = 2 [json_name = "partyId"]; -inline void Position::clear_party_id() { - party_id_.ClearToEmpty(); +// string amount = 5 [json_name = "amount"]; +inline void Deposit::clear_amount() { + amount_.ClearToEmpty(); } -inline const std::string& Position::party_id() const { - // @@protoc_insertion_point(field_get:vega.Position.party_id) - return _internal_party_id(); +inline const std::string& Deposit::amount() const { + // @@protoc_insertion_point(field_get:vega.Deposit.amount) + return _internal_amount(); } -inline void Position::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.Position.party_id) +inline void Deposit::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.Deposit.amount) } -inline std::string* Position::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.Position.party_id) - return _internal_mutable_party_id(); +inline std::string* Deposit::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.Deposit.amount) + return _internal_mutable_amount(); } -inline const std::string& Position::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& Deposit::_internal_amount() const { + return amount_.Get(); } -inline void Position::_internal_set_party_id(const std::string& value) { +inline void Deposit::_internal_set_amount(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Position::set_party_id(std::string&& value) { +inline void Deposit::set_amount(std::string&& value) { - party_id_.Set( + amount_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Position.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.amount) } -inline void Position::set_party_id(const char* value) { +inline void Deposit::set_amount(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Position.party_id) + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Deposit.amount) } -inline void Position::set_party_id(const char* value, +inline void Deposit::set_amount(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Position.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.Deposit.amount) } -inline std::string* Position::_internal_mutable_party_id() { +inline std::string* Deposit::_internal_mutable_amount() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Position::release_party_id() { - // @@protoc_insertion_point(field_release:vega.Position.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Deposit::release_amount() { + // @@protoc_insertion_point(field_release:vega.Deposit.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Position::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void Deposit::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Position.party_id) + // @@protoc_insertion_point(field_set_allocated:vega.Deposit.amount) } -// int64 open_volume = 3 [json_name = "openVolume"]; -inline void Position::clear_open_volume() { - open_volume_ = PROTOBUF_LONGLONG(0); +// string tx_hash = 6 [json_name = "txHash"]; +inline void Deposit::clear_tx_hash() { + tx_hash_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_open_volume() const { - return open_volume_; +inline const std::string& Deposit::tx_hash() const { + // @@protoc_insertion_point(field_get:vega.Deposit.tx_hash) + return _internal_tx_hash(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::open_volume() const { - // @@protoc_insertion_point(field_get:vega.Position.open_volume) - return _internal_open_volume(); +inline void Deposit::set_tx_hash(const std::string& value) { + _internal_set_tx_hash(value); + // @@protoc_insertion_point(field_set:vega.Deposit.tx_hash) } -inline void Position::_internal_set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { - - open_volume_ = value; +inline std::string* Deposit::mutable_tx_hash() { + // @@protoc_insertion_point(field_mutable:vega.Deposit.tx_hash) + return _internal_mutable_tx_hash(); } -inline void Position::set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_open_volume(value); - // @@protoc_insertion_point(field_set:vega.Position.open_volume) +inline const std::string& Deposit::_internal_tx_hash() const { + return tx_hash_.Get(); } +inline void Deposit::_internal_set_tx_hash(const std::string& value) { -// int64 realised_pnl = 4 [json_name = "realisedPnl"]; -inline void Position::clear_realised_pnl() { - realised_pnl_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_realised_pnl() const { - return realised_pnl_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::realised_pnl() const { - // @@protoc_insertion_point(field_get:vega.Position.realised_pnl) - return _internal_realised_pnl(); + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Position::_internal_set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Deposit::set_tx_hash(std::string&& value) { - realised_pnl_ = value; + tx_hash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.tx_hash) } -inline void Position::set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_realised_pnl(value); - // @@protoc_insertion_point(field_set:vega.Position.realised_pnl) +inline void Deposit::set_tx_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Deposit.tx_hash) } +inline void Deposit::set_tx_hash(const char* value, + size_t size) { -// int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; -inline void Position::clear_unrealised_pnl() { - unrealised_pnl_ = PROTOBUF_LONGLONG(0); + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Deposit.tx_hash) } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_unrealised_pnl() const { - return unrealised_pnl_; +inline std::string* Deposit::_internal_mutable_tx_hash() { + + return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::unrealised_pnl() const { - // @@protoc_insertion_point(field_get:vega.Position.unrealised_pnl) - return _internal_unrealised_pnl(); +inline std::string* Deposit::release_tx_hash() { + // @@protoc_insertion_point(field_release:vega.Deposit.tx_hash) + return tx_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Position::_internal_set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Deposit::set_allocated_tx_hash(std::string* tx_hash) { + if (tx_hash != nullptr) { - unrealised_pnl_ = value; -} -inline void Position::set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_unrealised_pnl(value); - // @@protoc_insertion_point(field_set:vega.Position.unrealised_pnl) + } else { + + } + tx_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx_hash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Deposit.tx_hash) } -// uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; -inline void Position::clear_average_entry_price() { - average_entry_price_ = PROTOBUF_ULONGLONG(0); +// int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; +inline void Deposit::clear_credited_timestamp() { + credited_timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::_internal_average_entry_price() const { - return average_entry_price_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::_internal_credited_timestamp() const { + return credited_timestamp_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::average_entry_price() const { - // @@protoc_insertion_point(field_get:vega.Position.average_entry_price) - return _internal_average_entry_price(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::credited_timestamp() const { + // @@protoc_insertion_point(field_get:vega.Deposit.credited_timestamp) + return _internal_credited_timestamp(); } -inline void Position::_internal_set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Deposit::_internal_set_credited_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - average_entry_price_ = value; + credited_timestamp_ = value; } -inline void Position::set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_average_entry_price(value); - // @@protoc_insertion_point(field_set:vega.Position.average_entry_price) +inline void Deposit::set_credited_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_credited_timestamp(value); + // @@protoc_insertion_point(field_set:vega.Deposit.credited_timestamp) } -// int64 updated_at = 7 [json_name = "updatedAt"]; -inline void Position::clear_updated_at() { - updated_at_ = PROTOBUF_LONGLONG(0); +// int64 created_timestamp = 8 [json_name = "createdTimestamp"]; +inline void Deposit::clear_created_timestamp() { + created_timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_updated_at() const { - return updated_at_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::_internal_created_timestamp() const { + return created_timestamp_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::updated_at() const { - // @@protoc_insertion_point(field_get:vega.Position.updated_at) - return _internal_updated_at(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::created_timestamp() const { + // @@protoc_insertion_point(field_get:vega.Deposit.created_timestamp) + return _internal_created_timestamp(); } -inline void Position::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Deposit::_internal_set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - updated_at_ = value; + created_timestamp_ = value; } -inline void Position::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_updated_at(value); - // @@protoc_insertion_point(field_set:vega.Position.updated_at) +inline void Deposit::set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_created_timestamp(value); + // @@protoc_insertion_point(field_set:vega.Deposit.created_timestamp) } // ------------------------------------------------------------------- -// PositionTrade +// Withdrawal -// int64 volume = 1 [json_name = "volume"]; -inline void PositionTrade::clear_volume() { - volume_ = PROTOBUF_LONGLONG(0); +// string id = 1 [json_name = "id"]; +inline void Withdrawal::clear_id() { + id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PositionTrade::_internal_volume() const { - return volume_; +inline const std::string& Withdrawal::id() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.id) + return _internal_id(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 PositionTrade::volume() const { - // @@protoc_insertion_point(field_get:vega.PositionTrade.volume) - return _internal_volume(); +inline void Withdrawal::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.id) } -inline void PositionTrade::_internal_set_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { - - volume_ = value; +inline std::string* Withdrawal::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.id) + return _internal_mutable_id(); } -inline void PositionTrade::set_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_volume(value); - // @@protoc_insertion_point(field_set:vega.PositionTrade.volume) +inline const std::string& Withdrawal::_internal_id() const { + return id_.Get(); } +inline void Withdrawal::_internal_set_id(const std::string& value) { -// uint64 price = 2 [json_name = "price"]; -inline void PositionTrade::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::_internal_price() const { - return price_; +inline void Withdrawal::set_id(std::string&& value) { + + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::price() const { - // @@protoc_insertion_point(field_get:vega.PositionTrade.price) - return _internal_price(); +inline void Withdrawal::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.id) } -inline void PositionTrade::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Withdrawal::set_id(const char* value, + size_t size) { - price_ = value; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.id) } -inline void PositionTrade::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_price(value); - // @@protoc_insertion_point(field_set:vega.PositionTrade.price) +inline std::string* Withdrawal::_internal_mutable_id() { + + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } +inline std::string* Withdrawal::release_id() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Withdrawal::set_allocated_id(std::string* id) { + if (id != nullptr) { -// ------------------------------------------------------------------- + } else { -// Statistics + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.id) +} -// uint64 block_height = 1 [json_name = "blockHeight"]; -inline void Statistics::clear_block_height() { - block_height_ = PROTOBUF_ULONGLONG(0); +// string party_id = 2 [json_name = "partyId"]; +inline void Withdrawal::clear_party_id() { + party_id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_block_height() const { - return block_height_; +inline const std::string& Withdrawal::party_id() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.party_id) + return _internal_party_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::block_height() const { - // @@protoc_insertion_point(field_get:vega.Statistics.block_height) - return _internal_block_height(); +inline void Withdrawal::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.party_id) } -inline void Statistics::_internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - block_height_ = value; +inline std::string* Withdrawal::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.party_id) + return _internal_mutable_party_id(); +} +inline const std::string& Withdrawal::_internal_party_id() const { + return party_id_.Get(); } -inline void Statistics::set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_block_height(value); - // @@protoc_insertion_point(field_set:vega.Statistics.block_height) +inline void Withdrawal::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void Withdrawal::set_party_id(std::string&& value) { -// uint64 backlog_length = 2 [json_name = "backlogLength"]; -inline void Statistics::clear_backlog_length() { - backlog_length_ = PROTOBUF_ULONGLONG(0); + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.party_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_backlog_length() const { - return backlog_length_; +inline void Withdrawal::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.party_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::backlog_length() const { - // @@protoc_insertion_point(field_get:vega.Statistics.backlog_length) - return _internal_backlog_length(); +inline void Withdrawal::set_party_id(const char* value, + size_t size) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.party_id) } -inline void Statistics::_internal_set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* Withdrawal::_internal_mutable_party_id() { - backlog_length_ = value; + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Withdrawal::release_party_id() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_backlog_length(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_backlog_length(value); - // @@protoc_insertion_point(field_set:vega.Statistics.backlog_length) +inline void Withdrawal::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { + + } else { + + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.party_id) } -// uint64 total_peers = 3 [json_name = "totalPeers"]; -inline void Statistics::clear_total_peers() { - total_peers_ = PROTOBUF_ULONGLONG(0); +// uint64 amount = 3 [json_name = "amount"]; +inline void Withdrawal::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_peers() const { - return total_peers_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::_internal_amount() const { + return amount_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_peers() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_peers) - return _internal_total_peers(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::amount() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.amount) + return _internal_amount(); } -inline void Statistics::_internal_set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Withdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - total_peers_ = value; + amount_ = value; } -inline void Statistics::set_total_peers(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_peers(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_peers) +inline void Withdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.amount) } -// string genesis_time = 4 [json_name = "genesisTime"]; -inline void Statistics::clear_genesis_time() { - genesis_time_.ClearToEmpty(); +// string asset = 4 [json_name = "asset"]; +inline void Withdrawal::clear_asset() { + asset_.ClearToEmpty(); } -inline const std::string& Statistics::genesis_time() const { - // @@protoc_insertion_point(field_get:vega.Statistics.genesis_time) - return _internal_genesis_time(); +inline const std::string& Withdrawal::asset() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.asset) + return _internal_asset(); } -inline void Statistics::set_genesis_time(const std::string& value) { - _internal_set_genesis_time(value); - // @@protoc_insertion_point(field_set:vega.Statistics.genesis_time) +inline void Withdrawal::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.asset) } -inline std::string* Statistics::mutable_genesis_time() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.genesis_time) - return _internal_mutable_genesis_time(); +inline std::string* Withdrawal::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.asset) + return _internal_mutable_asset(); } -inline const std::string& Statistics::_internal_genesis_time() const { - return genesis_time_.Get(); +inline const std::string& Withdrawal::_internal_asset() const { + return asset_.Get(); } -inline void Statistics::_internal_set_genesis_time(const std::string& value) { +inline void Withdrawal::_internal_set_asset(const std::string& value) { - genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_genesis_time(std::string&& value) { +inline void Withdrawal::set_asset(std::string&& value) { - genesis_time_.Set( + asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.genesis_time) + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.asset) } -inline void Statistics::set_genesis_time(const char* value) { +inline void Withdrawal::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.genesis_time) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.asset) } -inline void Statistics::set_genesis_time(const char* value, +inline void Withdrawal::set_asset(const char* value, size_t size) { - genesis_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.genesis_time) + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.asset) } -inline std::string* Statistics::_internal_mutable_genesis_time() { +inline std::string* Withdrawal::_internal_mutable_asset() { - return genesis_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_genesis_time() { - // @@protoc_insertion_point(field_release:vega.Statistics.genesis_time) - return genesis_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Withdrawal::release_asset() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_genesis_time(std::string* genesis_time) { - if (genesis_time != nullptr) { +inline void Withdrawal::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { } else { } - genesis_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), genesis_time, + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.genesis_time) + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.asset) +} + +// .vega.Withdrawal.Status status = 5 [json_name = "status"]; +inline void Withdrawal::clear_status() { + status_ = 0; +} +inline ::vega::Withdrawal_Status Withdrawal::_internal_status() const { + return static_cast< ::vega::Withdrawal_Status >(status_); +} +inline ::vega::Withdrawal_Status Withdrawal::status() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.status) + return _internal_status(); +} +inline void Withdrawal::_internal_set_status(::vega::Withdrawal_Status value) { + + status_ = value; +} +inline void Withdrawal::set_status(::vega::Withdrawal_Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.status) } -// string current_time = 5 [json_name = "currentTime"]; -inline void Statistics::clear_current_time() { - current_time_.ClearToEmpty(); +// string ref = 6 [json_name = "ref"]; +inline void Withdrawal::clear_ref() { + ref_.ClearToEmpty(); } -inline const std::string& Statistics::current_time() const { - // @@protoc_insertion_point(field_get:vega.Statistics.current_time) - return _internal_current_time(); +inline const std::string& Withdrawal::ref() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.ref) + return _internal_ref(); } -inline void Statistics::set_current_time(const std::string& value) { - _internal_set_current_time(value); - // @@protoc_insertion_point(field_set:vega.Statistics.current_time) +inline void Withdrawal::set_ref(const std::string& value) { + _internal_set_ref(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.ref) } -inline std::string* Statistics::mutable_current_time() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.current_time) - return _internal_mutable_current_time(); +inline std::string* Withdrawal::mutable_ref() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.ref) + return _internal_mutable_ref(); } -inline const std::string& Statistics::_internal_current_time() const { - return current_time_.Get(); +inline const std::string& Withdrawal::_internal_ref() const { + return ref_.Get(); } -inline void Statistics::_internal_set_current_time(const std::string& value) { +inline void Withdrawal::_internal_set_ref(const std::string& value) { - current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_current_time(std::string&& value) { +inline void Withdrawal::set_ref(std::string&& value) { - current_time_.Set( + ref_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.current_time) + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.ref) } -inline void Statistics::set_current_time(const char* value) { +inline void Withdrawal::set_ref(const char* value) { GOOGLE_DCHECK(value != nullptr); - current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.current_time) + ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.ref) } -inline void Statistics::set_current_time(const char* value, +inline void Withdrawal::set_ref(const char* value, size_t size) { - current_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.current_time) + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.ref) } -inline std::string* Statistics::_internal_mutable_current_time() { +inline std::string* Withdrawal::_internal_mutable_ref() { - return current_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return ref_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_current_time() { - // @@protoc_insertion_point(field_release:vega.Statistics.current_time) - return current_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Withdrawal::release_ref() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.ref) + return ref_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_current_time(std::string* current_time) { - if (current_time != nullptr) { +inline void Withdrawal::set_allocated_ref(std::string* ref) { + if (ref != nullptr) { } else { } - current_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), current_time, + ref_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ref, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.current_time) + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.ref) +} + +// int64 expiry = 7 [json_name = "expiry"]; +inline void Withdrawal::clear_expiry() { + expiry_ = PROTOBUF_LONGLONG(0); } +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_expiry() const { + return expiry_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::expiry() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.expiry) + return _internal_expiry(); +} +inline void Withdrawal::_internal_set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { -// string vega_time = 6 [json_name = "vegaTime"]; -inline void Statistics::clear_vega_time() { - vega_time_.ClearToEmpty(); + expiry_ = value; +} +inline void Withdrawal::set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_expiry(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.expiry) +} + +// string tx_hash = 8 [json_name = "txHash"]; +inline void Withdrawal::clear_tx_hash() { + tx_hash_.ClearToEmpty(); } -inline const std::string& Statistics::vega_time() const { - // @@protoc_insertion_point(field_get:vega.Statistics.vega_time) - return _internal_vega_time(); +inline const std::string& Withdrawal::tx_hash() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.tx_hash) + return _internal_tx_hash(); } -inline void Statistics::set_vega_time(const std::string& value) { - _internal_set_vega_time(value); - // @@protoc_insertion_point(field_set:vega.Statistics.vega_time) +inline void Withdrawal::set_tx_hash(const std::string& value) { + _internal_set_tx_hash(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.tx_hash) } -inline std::string* Statistics::mutable_vega_time() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.vega_time) - return _internal_mutable_vega_time(); +inline std::string* Withdrawal::mutable_tx_hash() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.tx_hash) + return _internal_mutable_tx_hash(); } -inline const std::string& Statistics::_internal_vega_time() const { - return vega_time_.Get(); +inline const std::string& Withdrawal::_internal_tx_hash() const { + return tx_hash_.Get(); } -inline void Statistics::_internal_set_vega_time(const std::string& value) { +inline void Withdrawal::_internal_set_tx_hash(const std::string& value) { - vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_vega_time(std::string&& value) { +inline void Withdrawal::set_tx_hash(std::string&& value) { - vega_time_.Set( + tx_hash_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.vega_time) + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.tx_hash) } -inline void Statistics::set_vega_time(const char* value) { +inline void Withdrawal::set_tx_hash(const char* value) { GOOGLE_DCHECK(value != nullptr); - vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.vega_time) + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.tx_hash) } -inline void Statistics::set_vega_time(const char* value, +inline void Withdrawal::set_tx_hash(const char* value, size_t size) { - vega_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.vega_time) + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.tx_hash) } -inline std::string* Statistics::_internal_mutable_vega_time() { +inline std::string* Withdrawal::_internal_mutable_tx_hash() { - return vega_time_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_vega_time() { - // @@protoc_insertion_point(field_release:vega.Statistics.vega_time) - return vega_time_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Withdrawal::release_tx_hash() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.tx_hash) + return tx_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_vega_time(std::string* vega_time) { - if (vega_time != nullptr) { +inline void Withdrawal::set_allocated_tx_hash(std::string* tx_hash) { + if (tx_hash != nullptr) { } else { } - vega_time_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vega_time, + tx_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx_hash, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.vega_time) + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.tx_hash) } -// .vega.ChainStatus status = 7 [json_name = "status"]; -inline void Statistics::clear_status() { - status_ = 0; +// int64 created_timestamp = 9 [json_name = "createdTimestamp"]; +inline void Withdrawal::clear_created_timestamp() { + created_timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::vega::ChainStatus Statistics::_internal_status() const { - return static_cast< ::vega::ChainStatus >(status_); +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_created_timestamp() const { + return created_timestamp_; } -inline ::vega::ChainStatus Statistics::status() const { - // @@protoc_insertion_point(field_get:vega.Statistics.status) - return _internal_status(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::created_timestamp() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.created_timestamp) + return _internal_created_timestamp(); } -inline void Statistics::_internal_set_status(::vega::ChainStatus value) { +inline void Withdrawal::_internal_set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - status_ = value; + created_timestamp_ = value; } -inline void Statistics::set_status(::vega::ChainStatus value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:vega.Statistics.status) +inline void Withdrawal::set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_created_timestamp(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.created_timestamp) } -// uint64 tx_per_block = 8 [json_name = "txPerBlock"]; -inline void Statistics::clear_tx_per_block() { - tx_per_block_ = PROTOBUF_ULONGLONG(0); +// int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; +inline void Withdrawal::clear_withdrawn_timestamp() { + withdrawn_timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_tx_per_block() const { - return tx_per_block_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_withdrawn_timestamp() const { + return withdrawn_timestamp_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::tx_per_block() const { - // @@protoc_insertion_point(field_get:vega.Statistics.tx_per_block) - return _internal_tx_per_block(); +inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::withdrawn_timestamp() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.withdrawn_timestamp) + return _internal_withdrawn_timestamp(); } -inline void Statistics::_internal_set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Withdrawal::_internal_set_withdrawn_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - tx_per_block_ = value; + withdrawn_timestamp_ = value; } -inline void Statistics::set_tx_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_tx_per_block(value); - // @@protoc_insertion_point(field_set:vega.Statistics.tx_per_block) +inline void Withdrawal::set_withdrawn_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_withdrawn_timestamp(value); + // @@protoc_insertion_point(field_set:vega.Withdrawal.withdrawn_timestamp) } -// uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; -inline void Statistics::clear_average_tx_bytes() { - average_tx_bytes_ = PROTOBUF_ULONGLONG(0); +// .vega.WithdrawExt ext = 11 [json_name = "ext"]; +inline bool Withdrawal::_internal_has_ext() const { + return this != internal_default_instance() && ext_ != nullptr; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_average_tx_bytes() const { - return average_tx_bytes_; +inline bool Withdrawal::has_ext() const { + return _internal_has_ext(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::average_tx_bytes() const { - // @@protoc_insertion_point(field_get:vega.Statistics.average_tx_bytes) - return _internal_average_tx_bytes(); +inline void Withdrawal::clear_ext() { + if (GetArena() == nullptr && ext_ != nullptr) { + delete ext_; + } + ext_ = nullptr; } -inline void Statistics::_internal_set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - average_tx_bytes_ = value; +inline const ::vega::WithdrawExt& Withdrawal::_internal_ext() const { + const ::vega::WithdrawExt* p = ext_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_WithdrawExt_default_instance_); } -inline void Statistics::set_average_tx_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_average_tx_bytes(value); - // @@protoc_insertion_point(field_set:vega.Statistics.average_tx_bytes) +inline const ::vega::WithdrawExt& Withdrawal::ext() const { + // @@protoc_insertion_point(field_get:vega.Withdrawal.ext) + return _internal_ext(); } +inline void Withdrawal::unsafe_arena_set_allocated_ext( + ::vega::WithdrawExt* ext) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ext_); + } + ext_ = ext; + if (ext) { -// uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; -inline void Statistics::clear_average_orders_per_block() { - average_orders_per_block_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_average_orders_per_block() const { - return average_orders_per_block_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::average_orders_per_block() const { - // @@protoc_insertion_point(field_get:vega.Statistics.average_orders_per_block) - return _internal_average_orders_per_block(); -} -inline void Statistics::_internal_set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + } else { - average_orders_per_block_ = value; -} -inline void Statistics::set_average_orders_per_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_average_orders_per_block(value); - // @@protoc_insertion_point(field_set:vega.Statistics.average_orders_per_block) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Withdrawal.ext) } +inline ::vega::WithdrawExt* Withdrawal::release_ext() { -// uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; -inline void Statistics::clear_trades_per_second() { - trades_per_second_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_trades_per_second() const { - return trades_per_second_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::trades_per_second() const { - // @@protoc_insertion_point(field_get:vega.Statistics.trades_per_second) - return _internal_trades_per_second(); + ::vega::WithdrawExt* temp = ext_; + ext_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void Statistics::_internal_set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline ::vega::WithdrawExt* Withdrawal::unsafe_arena_release_ext() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.ext) - trades_per_second_ = value; -} -inline void Statistics::set_trades_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_trades_per_second(value); - // @@protoc_insertion_point(field_set:vega.Statistics.trades_per_second) + ::vega::WithdrawExt* temp = ext_; + ext_ = nullptr; + return temp; } +inline ::vega::WithdrawExt* Withdrawal::_internal_mutable_ext() { -// uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; -inline void Statistics::clear_orders_per_second() { - orders_per_second_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_orders_per_second() const { - return orders_per_second_; + if (ext_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::WithdrawExt>(GetArena()); + ext_ = p; + } + return ext_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::orders_per_second() const { - // @@protoc_insertion_point(field_get:vega.Statistics.orders_per_second) - return _internal_orders_per_second(); +inline ::vega::WithdrawExt* Withdrawal::mutable_ext() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.ext) + return _internal_mutable_ext(); } -inline void Statistics::_internal_set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Withdrawal::set_allocated_ext(::vega::WithdrawExt* ext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete ext_; + } + if (ext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ext); + if (message_arena != submessage_arena) { + ext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ext, submessage_arena); + } - orders_per_second_ = value; -} -inline void Statistics::set_orders_per_second(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_orders_per_second(value); - // @@protoc_insertion_point(field_set:vega.Statistics.orders_per_second) -} + } else { -// uint64 total_markets = 13 [json_name = "totalMarkets"]; -inline void Statistics::clear_total_markets() { - total_markets_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_markets() const { - return total_markets_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_markets() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_markets) - return _internal_total_markets(); + } + ext_ = ext; + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.ext) } -inline void Statistics::_internal_set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value) { - total_markets_ = value; -} -inline void Statistics::set_total_markets(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_markets(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_markets) -} +// ------------------------------------------------------------------- -// uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; -inline void Statistics::clear_total_amend_order() { - total_amend_order_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_amend_order() const { - return total_amend_order_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_amend_order() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_amend_order) - return _internal_total_amend_order(); -} -inline void Statistics::_internal_set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { +// WithdrawExt - total_amend_order_ = value; -} -inline void Statistics::set_total_amend_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_amend_order(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_amend_order) +// .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; +inline bool WithdrawExt::_internal_has_erc20() const { + return ext_case() == kErc20; } - -// uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; -inline void Statistics::clear_total_cancel_order() { - total_cancel_order_ = PROTOBUF_ULONGLONG(0); +inline bool WithdrawExt::has_erc20() const { + return _internal_has_erc20(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_cancel_order() const { - return total_cancel_order_; +inline void WithdrawExt::set_has_erc20() { + _oneof_case_[0] = kErc20; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_cancel_order() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_cancel_order) - return _internal_total_cancel_order(); +inline void WithdrawExt::clear_erc20() { + if (_internal_has_erc20()) { + if (GetArena() == nullptr) { + delete ext_.erc20_; + } + clear_has_ext(); + } } -inline void Statistics::_internal_set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - total_cancel_order_ = value; +inline ::vega::Erc20WithdrawExt* WithdrawExt::release_erc20() { + // @@protoc_insertion_point(field_release:vega.WithdrawExt.erc20) + if (_internal_has_erc20()) { + clear_has_ext(); + ::vega::Erc20WithdrawExt* temp = ext_.erc20_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + ext_.erc20_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void Statistics::set_total_cancel_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_cancel_order(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_cancel_order) +inline const ::vega::Erc20WithdrawExt& WithdrawExt::_internal_erc20() const { + return _internal_has_erc20() + ? *ext_.erc20_ + : reinterpret_cast< ::vega::Erc20WithdrawExt&>(::vega::_Erc20WithdrawExt_default_instance_); } - -// uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; -inline void Statistics::clear_total_create_order() { - total_create_order_ = PROTOBUF_ULONGLONG(0); +inline const ::vega::Erc20WithdrawExt& WithdrawExt::erc20() const { + // @@protoc_insertion_point(field_get:vega.WithdrawExt.erc20) + return _internal_erc20(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_create_order() const { - return total_create_order_; +inline ::vega::Erc20WithdrawExt* WithdrawExt::unsafe_arena_release_erc20() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.WithdrawExt.erc20) + if (_internal_has_erc20()) { + clear_has_ext(); + ::vega::Erc20WithdrawExt* temp = ext_.erc20_; + ext_.erc20_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_create_order() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_create_order) - return _internal_total_create_order(); +inline void WithdrawExt::unsafe_arena_set_allocated_erc20(::vega::Erc20WithdrawExt* erc20) { + clear_ext(); + if (erc20) { + set_has_erc20(); + ext_.erc20_ = erc20; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.WithdrawExt.erc20) } -inline void Statistics::_internal_set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - total_create_order_ = value; +inline ::vega::Erc20WithdrawExt* WithdrawExt::_internal_mutable_erc20() { + if (!_internal_has_erc20()) { + clear_ext(); + set_has_erc20(); + ext_.erc20_ = CreateMaybeMessage< ::vega::Erc20WithdrawExt >(GetArena()); + } + return ext_.erc20_; } -inline void Statistics::set_total_create_order(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_create_order(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_create_order) +inline ::vega::Erc20WithdrawExt* WithdrawExt::mutable_erc20() { + // @@protoc_insertion_point(field_mutable:vega.WithdrawExt.erc20) + return _internal_mutable_erc20(); } -// uint64 total_orders = 19 [json_name = "totalOrders"]; -inline void Statistics::clear_total_orders() { - total_orders_ = PROTOBUF_ULONGLONG(0); +inline bool WithdrawExt::has_ext() const { + return ext_case() != EXT_NOT_SET; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_orders() const { - return total_orders_; +inline void WithdrawExt::clear_has_ext() { + _oneof_case_[0] = EXT_NOT_SET; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_orders() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_orders) - return _internal_total_orders(); +inline WithdrawExt::ExtCase WithdrawExt::ext_case() const { + return WithdrawExt::ExtCase(_oneof_case_[0]); } -inline void Statistics::_internal_set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { +// ------------------------------------------------------------------- - total_orders_ = value; -} -inline void Statistics::set_total_orders(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_orders(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_orders) -} +// Erc20WithdrawExt -// uint64 total_trades = 20 [json_name = "totalTrades"]; -inline void Statistics::clear_total_trades() { - total_trades_ = PROTOBUF_ULONGLONG(0); +// string receiver_address = 1 [json_name = "receiverAddress"]; +inline void Erc20WithdrawExt::clear_receiver_address() { + receiver_address_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_total_trades() const { - return total_trades_; +inline const std::string& Erc20WithdrawExt::receiver_address() const { + // @@protoc_insertion_point(field_get:vega.Erc20WithdrawExt.receiver_address) + return _internal_receiver_address(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::total_trades() const { - // @@protoc_insertion_point(field_get:vega.Statistics.total_trades) - return _internal_total_trades(); +inline void Erc20WithdrawExt::set_receiver_address(const std::string& value) { + _internal_set_receiver_address(value); + // @@protoc_insertion_point(field_set:vega.Erc20WithdrawExt.receiver_address) } -inline void Statistics::_internal_set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - total_trades_ = value; +inline std::string* Erc20WithdrawExt::mutable_receiver_address() { + // @@protoc_insertion_point(field_mutable:vega.Erc20WithdrawExt.receiver_address) + return _internal_mutable_receiver_address(); } -inline void Statistics::set_total_trades(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_total_trades(value); - // @@protoc_insertion_point(field_set:vega.Statistics.total_trades) +inline const std::string& Erc20WithdrawExt::_internal_receiver_address() const { + return receiver_address_.Get(); } +inline void Erc20WithdrawExt::_internal_set_receiver_address(const std::string& value) { -// uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; -inline void Statistics::clear_order_subscriptions() { - order_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_order_subscriptions() const { - return order_subscriptions_; + receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::order_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.order_subscriptions) - return _internal_order_subscriptions(); +inline void Erc20WithdrawExt::set_receiver_address(std::string&& value) { + + receiver_address_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Erc20WithdrawExt.receiver_address) } -inline void Statistics::_internal_set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Erc20WithdrawExt::set_receiver_address(const char* value) { + GOOGLE_DCHECK(value != nullptr); - order_subscriptions_ = value; + receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Erc20WithdrawExt.receiver_address) } -inline void Statistics::set_order_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_order_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.order_subscriptions) +inline void Erc20WithdrawExt::set_receiver_address(const char* value, + size_t size) { + + receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Erc20WithdrawExt.receiver_address) } +inline std::string* Erc20WithdrawExt::_internal_mutable_receiver_address() { -// uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; -inline void Statistics::clear_trade_subscriptions() { - trade_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_trade_subscriptions() const { - return trade_subscriptions_; + return receiver_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::trade_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.trade_subscriptions) - return _internal_trade_subscriptions(); +inline std::string* Erc20WithdrawExt::release_receiver_address() { + // @@protoc_insertion_point(field_release:vega.Erc20WithdrawExt.receiver_address) + return receiver_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::_internal_set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Erc20WithdrawExt::set_allocated_receiver_address(std::string* receiver_address) { + if (receiver_address != nullptr) { - trade_subscriptions_ = value; -} -inline void Statistics::set_trade_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_trade_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.trade_subscriptions) -} + } else { -// uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; -inline void Statistics::clear_candle_subscriptions() { - candle_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_candle_subscriptions() const { - return candle_subscriptions_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::candle_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.candle_subscriptions) - return _internal_candle_subscriptions(); + } + receiver_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver_address, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Erc20WithdrawExt.receiver_address) } -inline void Statistics::_internal_set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - candle_subscriptions_ = value; -} -inline void Statistics::set_candle_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_candle_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.candle_subscriptions) -} +// ------------------------------------------------------------------- -// uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; -inline void Statistics::clear_market_depth_subscriptions() { - market_depth_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_depth_subscriptions() const { - return market_depth_subscriptions_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_depth_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.market_depth_subscriptions) - return _internal_market_depth_subscriptions(); -} -inline void Statistics::_internal_set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +// Account - market_depth_subscriptions_ = value; +// string id = 1 [json_name = "id"]; +inline void Account::clear_id() { + id_.ClearToEmpty(); } -inline void Statistics::set_market_depth_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_market_depth_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.market_depth_subscriptions) +inline const std::string& Account::id() const { + // @@protoc_insertion_point(field_get:vega.Account.id) + return _internal_id(); } - -// uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; -inline void Statistics::clear_positions_subscriptions() { - positions_subscriptions_ = 0u; +inline void Account::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.Account.id) } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_positions_subscriptions() const { - return positions_subscriptions_; +inline std::string* Account::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.Account.id) + return _internal_mutable_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::positions_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.positions_subscriptions) - return _internal_positions_subscriptions(); +inline const std::string& Account::_internal_id() const { + return id_.Get(); } -inline void Statistics::_internal_set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Account::_internal_set_id(const std::string& value) { - positions_subscriptions_ = value; -} -inline void Statistics::set_positions_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_positions_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.positions_subscriptions) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void Account::set_id(std::string&& value) { -// uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; -inline void Statistics::clear_account_subscriptions() { - account_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_account_subscriptions() const { - return account_subscriptions_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::account_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.account_subscriptions) - return _internal_account_subscriptions(); + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Account.id) } -inline void Statistics::_internal_set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Account::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); - account_subscriptions_ = value; -} -inline void Statistics::set_account_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_account_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.account_subscriptions) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Account.id) } +inline void Account::set_id(const char* value, + size_t size) { -// uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; -inline void Statistics::clear_market_data_subscriptions() { - market_data_subscriptions_ = 0u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Account.id) } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_data_subscriptions() const { - return market_data_subscriptions_; +inline std::string* Account::_internal_mutable_id() { + + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_data_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.market_data_subscriptions) - return _internal_market_data_subscriptions(); +inline std::string* Account::release_id() { + // @@protoc_insertion_point(field_release:vega.Account.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::_internal_set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Account::set_allocated_id(std::string* id) { + if (id != nullptr) { - market_data_subscriptions_ = value; -} -inline void Statistics::set_market_data_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_market_data_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.market_data_subscriptions) + } else { + + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Account.id) } -// string app_version_hash = 28 [json_name = "appVersionHash"]; -inline void Statistics::clear_app_version_hash() { - app_version_hash_.ClearToEmpty(); +// string owner = 2 [json_name = "owner"]; +inline void Account::clear_owner() { + owner_.ClearToEmpty(); } -inline const std::string& Statistics::app_version_hash() const { - // @@protoc_insertion_point(field_get:vega.Statistics.app_version_hash) - return _internal_app_version_hash(); +inline const std::string& Account::owner() const { + // @@protoc_insertion_point(field_get:vega.Account.owner) + return _internal_owner(); } -inline void Statistics::set_app_version_hash(const std::string& value) { - _internal_set_app_version_hash(value); - // @@protoc_insertion_point(field_set:vega.Statistics.app_version_hash) +inline void Account::set_owner(const std::string& value) { + _internal_set_owner(value); + // @@protoc_insertion_point(field_set:vega.Account.owner) } -inline std::string* Statistics::mutable_app_version_hash() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.app_version_hash) - return _internal_mutable_app_version_hash(); +inline std::string* Account::mutable_owner() { + // @@protoc_insertion_point(field_mutable:vega.Account.owner) + return _internal_mutable_owner(); } -inline const std::string& Statistics::_internal_app_version_hash() const { - return app_version_hash_.Get(); +inline const std::string& Account::_internal_owner() const { + return owner_.Get(); } -inline void Statistics::_internal_set_app_version_hash(const std::string& value) { +inline void Account::_internal_set_owner(const std::string& value) { - app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_app_version_hash(std::string&& value) { +inline void Account::set_owner(std::string&& value) { - app_version_hash_.Set( + owner_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.app_version_hash) + // @@protoc_insertion_point(field_set_rvalue:vega.Account.owner) } -inline void Statistics::set_app_version_hash(const char* value) { +inline void Account::set_owner(const char* value) { GOOGLE_DCHECK(value != nullptr); - app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.app_version_hash) + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Account.owner) } -inline void Statistics::set_app_version_hash(const char* value, +inline void Account::set_owner(const char* value, size_t size) { - app_version_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.app_version_hash) + // @@protoc_insertion_point(field_set_pointer:vega.Account.owner) } -inline std::string* Statistics::_internal_mutable_app_version_hash() { +inline std::string* Account::_internal_mutable_owner() { - return app_version_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_app_version_hash() { - // @@protoc_insertion_point(field_release:vega.Statistics.app_version_hash) - return app_version_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Account::release_owner() { + // @@protoc_insertion_point(field_release:vega.Account.owner) + return owner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_app_version_hash(std::string* app_version_hash) { - if (app_version_hash != nullptr) { +inline void Account::set_allocated_owner(std::string* owner) { + if (owner != nullptr) { } else { } - app_version_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version_hash, + owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.app_version_hash) + // @@protoc_insertion_point(field_set_allocated:vega.Account.owner) +} + +// uint64 balance = 3 [json_name = "balance"]; +inline void Account::clear_balance() { + balance_ = PROTOBUF_ULONGLONG(0); } +inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::_internal_balance() const { + return balance_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::balance() const { + // @@protoc_insertion_point(field_get:vega.Account.balance) + return _internal_balance(); +} +inline void Account::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// string app_version = 29 [json_name = "appVersion"]; -inline void Statistics::clear_app_version() { - app_version_.ClearToEmpty(); + balance_ = value; +} +inline void Account::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_balance(value); + // @@protoc_insertion_point(field_set:vega.Account.balance) +} + +// string asset = 4 [json_name = "asset"]; +inline void Account::clear_asset() { + asset_.ClearToEmpty(); } -inline const std::string& Statistics::app_version() const { - // @@protoc_insertion_point(field_get:vega.Statistics.app_version) - return _internal_app_version(); +inline const std::string& Account::asset() const { + // @@protoc_insertion_point(field_get:vega.Account.asset) + return _internal_asset(); } -inline void Statistics::set_app_version(const std::string& value) { - _internal_set_app_version(value); - // @@protoc_insertion_point(field_set:vega.Statistics.app_version) +inline void Account::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.Account.asset) } -inline std::string* Statistics::mutable_app_version() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.app_version) - return _internal_mutable_app_version(); +inline std::string* Account::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.Account.asset) + return _internal_mutable_asset(); } -inline const std::string& Statistics::_internal_app_version() const { - return app_version_.Get(); +inline const std::string& Account::_internal_asset() const { + return asset_.Get(); } -inline void Statistics::_internal_set_app_version(const std::string& value) { +inline void Account::_internal_set_asset(const std::string& value) { - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_app_version(std::string&& value) { +inline void Account::set_asset(std::string&& value) { - app_version_.Set( + asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.app_version) + // @@protoc_insertion_point(field_set_rvalue:vega.Account.asset) } -inline void Statistics::set_app_version(const char* value) { +inline void Account::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.app_version) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Account.asset) } -inline void Statistics::set_app_version(const char* value, +inline void Account::set_asset(const char* value, size_t size) { - app_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.app_version) + // @@protoc_insertion_point(field_set_pointer:vega.Account.asset) } -inline std::string* Statistics::_internal_mutable_app_version() { +inline std::string* Account::_internal_mutable_asset() { - return app_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_app_version() { - // @@protoc_insertion_point(field_release:vega.Statistics.app_version) - return app_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Account::release_asset() { + // @@protoc_insertion_point(field_release:vega.Account.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_app_version(std::string* app_version) { - if (app_version != nullptr) { +inline void Account::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { } else { } - app_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), app_version, + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.app_version) + // @@protoc_insertion_point(field_set_allocated:vega.Account.asset) } -// string chain_version = 30 [json_name = "chainVersion"]; -inline void Statistics::clear_chain_version() { - chain_version_.ClearToEmpty(); +// string market_id = 5 [json_name = "marketId"]; +inline void Account::clear_market_id() { + market_id_.ClearToEmpty(); } -inline const std::string& Statistics::chain_version() const { - // @@protoc_insertion_point(field_get:vega.Statistics.chain_version) - return _internal_chain_version(); +inline const std::string& Account::market_id() const { + // @@protoc_insertion_point(field_get:vega.Account.market_id) + return _internal_market_id(); } -inline void Statistics::set_chain_version(const std::string& value) { - _internal_set_chain_version(value); - // @@protoc_insertion_point(field_set:vega.Statistics.chain_version) +inline void Account::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:vega.Account.market_id) } -inline std::string* Statistics::mutable_chain_version() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.chain_version) - return _internal_mutable_chain_version(); +inline std::string* Account::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.Account.market_id) + return _internal_mutable_market_id(); } -inline const std::string& Statistics::_internal_chain_version() const { - return chain_version_.Get(); +inline const std::string& Account::_internal_market_id() const { + return market_id_.Get(); } -inline void Statistics::_internal_set_chain_version(const std::string& value) { +inline void Account::_internal_set_market_id(const std::string& value) { - chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_chain_version(std::string&& value) { +inline void Account::set_market_id(std::string&& value) { - chain_version_.Set( + market_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.chain_version) + // @@protoc_insertion_point(field_set_rvalue:vega.Account.market_id) } -inline void Statistics::set_chain_version(const char* value) { +inline void Account::set_market_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.chain_version) + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Account.market_id) } -inline void Statistics::set_chain_version(const char* value, +inline void Account::set_market_id(const char* value, size_t size) { - chain_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.chain_version) + // @@protoc_insertion_point(field_set_pointer:vega.Account.market_id) } -inline std::string* Statistics::_internal_mutable_chain_version() { +inline std::string* Account::_internal_mutable_market_id() { - return chain_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_chain_version() { - // @@protoc_insertion_point(field_release:vega.Statistics.chain_version) - return chain_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Account::release_market_id() { + // @@protoc_insertion_point(field_release:vega.Account.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_chain_version(std::string* chain_version) { - if (chain_version != nullptr) { +inline void Account::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { } else { } - chain_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_version, + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.chain_version) + // @@protoc_insertion_point(field_set_allocated:vega.Account.market_id) } -// uint64 block_duration = 31 [json_name = "blockDuration"]; -inline void Statistics::clear_block_duration() { - block_duration_ = PROTOBUF_ULONGLONG(0); +// .vega.AccountType type = 6 [json_name = "type"]; +inline void Account::clear_type() { + type_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::_internal_block_duration() const { - return block_duration_; +inline ::vega::AccountType Account::_internal_type() const { + return static_cast< ::vega::AccountType >(type_); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Statistics::block_duration() const { - // @@protoc_insertion_point(field_get:vega.Statistics.block_duration) - return _internal_block_duration(); +inline ::vega::AccountType Account::type() const { + // @@protoc_insertion_point(field_get:vega.Account.type) + return _internal_type(); } -inline void Statistics::_internal_set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Account::_internal_set_type(::vega::AccountType value) { - block_duration_ = value; + type_ = value; } -inline void Statistics::set_block_duration(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_block_duration(value); - // @@protoc_insertion_point(field_set:vega.Statistics.block_duration) +inline void Account::set_type(::vega::AccountType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:vega.Account.type) } -// string uptime = 32 [json_name = "uptime"]; -inline void Statistics::clear_uptime() { - uptime_.ClearToEmpty(); -} -inline const std::string& Statistics::uptime() const { - // @@protoc_insertion_point(field_get:vega.Statistics.uptime) - return _internal_uptime(); -} -inline void Statistics::set_uptime(const std::string& value) { - _internal_set_uptime(value); - // @@protoc_insertion_point(field_set:vega.Statistics.uptime) -} -inline std::string* Statistics::mutable_uptime() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.uptime) - return _internal_mutable_uptime(); -} -inline const std::string& Statistics::_internal_uptime() const { - return uptime_.Get(); -} -inline void Statistics::_internal_set_uptime(const std::string& value) { +// ------------------------------------------------------------------- - uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void Statistics::set_uptime(std::string&& value) { +// FinancialAmount - uptime_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.uptime) +// uint64 amount = 1 [json_name = "amount"]; +inline void FinancialAmount::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); } -inline void Statistics::set_uptime(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.uptime) +inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::_internal_amount() const { + return amount_; } -inline void Statistics::set_uptime(const char* value, - size_t size) { - - uptime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.uptime) +inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::amount() const { + // @@protoc_insertion_point(field_get:vega.FinancialAmount.amount) + return _internal_amount(); } -inline std::string* Statistics::_internal_mutable_uptime() { +inline void FinancialAmount::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - return uptime_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* Statistics::release_uptime() { - // @@protoc_insertion_point(field_release:vega.Statistics.uptime) - return uptime_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_ = value; } -inline void Statistics::set_allocated_uptime(std::string* uptime) { - if (uptime != nullptr) { - - } else { - - } - uptime_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uptime, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.uptime) +inline void FinancialAmount::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.FinancialAmount.amount) } -// string chain_id = 33 [json_name = "chainId"]; -inline void Statistics::clear_chain_id() { - chain_id_.ClearToEmpty(); +// string asset = 2 [json_name = "asset"]; +inline void FinancialAmount::clear_asset() { + asset_.ClearToEmpty(); } -inline const std::string& Statistics::chain_id() const { - // @@protoc_insertion_point(field_get:vega.Statistics.chain_id) - return _internal_chain_id(); +inline const std::string& FinancialAmount::asset() const { + // @@protoc_insertion_point(field_get:vega.FinancialAmount.asset) + return _internal_asset(); } -inline void Statistics::set_chain_id(const std::string& value) { - _internal_set_chain_id(value); - // @@protoc_insertion_point(field_set:vega.Statistics.chain_id) +inline void FinancialAmount::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.FinancialAmount.asset) } -inline std::string* Statistics::mutable_chain_id() { - // @@protoc_insertion_point(field_mutable:vega.Statistics.chain_id) - return _internal_mutable_chain_id(); +inline std::string* FinancialAmount::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.FinancialAmount.asset) + return _internal_mutable_asset(); } -inline const std::string& Statistics::_internal_chain_id() const { - return chain_id_.Get(); +inline const std::string& FinancialAmount::_internal_asset() const { + return asset_.Get(); } -inline void Statistics::_internal_set_chain_id(const std::string& value) { +inline void FinancialAmount::_internal_set_asset(const std::string& value) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Statistics::set_chain_id(std::string&& value) { +inline void FinancialAmount::set_asset(std::string&& value) { - chain_id_.Set( + asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Statistics.chain_id) + // @@protoc_insertion_point(field_set_rvalue:vega.FinancialAmount.asset) } -inline void Statistics::set_chain_id(const char* value) { +inline void FinancialAmount::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Statistics.chain_id) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.FinancialAmount.asset) } -inline void Statistics::set_chain_id(const char* value, +inline void FinancialAmount::set_asset(const char* value, size_t size) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Statistics.chain_id) + // @@protoc_insertion_point(field_set_pointer:vega.FinancialAmount.asset) } -inline std::string* Statistics::_internal_mutable_chain_id() { +inline std::string* FinancialAmount::_internal_mutable_asset() { - return chain_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Statistics::release_chain_id() { - // @@protoc_insertion_point(field_release:vega.Statistics.chain_id) - return chain_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* FinancialAmount::release_asset() { + // @@protoc_insertion_point(field_release:vega.FinancialAmount.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Statistics::set_allocated_chain_id(std::string* chain_id) { - if (chain_id != nullptr) { +inline void FinancialAmount::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { } else { } - chain_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_id, + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Statistics.chain_id) -} - -// uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; -inline void Statistics::clear_market_depth_updates_subscriptions() { - market_depth_updates_subscriptions_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::_internal_market_depth_updates_subscriptions() const { - return market_depth_updates_subscriptions_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Statistics::market_depth_updates_subscriptions() const { - // @@protoc_insertion_point(field_get:vega.Statistics.market_depth_updates_subscriptions) - return _internal_market_depth_updates_subscriptions(); -} -inline void Statistics::_internal_set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - - market_depth_updates_subscriptions_ = value; -} -inline void Statistics::set_market_depth_updates_subscriptions(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_market_depth_updates_subscriptions(value); - // @@protoc_insertion_point(field_set:vega.Statistics.market_depth_updates_subscriptions) + // @@protoc_insertion_point(field_set_allocated:vega.FinancialAmount.asset) } // ------------------------------------------------------------------- -// Deposit +// Transfer -// string id = 1 [json_name = "id"]; -inline void Deposit::clear_id() { - id_.ClearToEmpty(); +// string owner = 1 [json_name = "owner"]; +inline void Transfer::clear_owner() { + owner_.ClearToEmpty(); } -inline const std::string& Deposit::id() const { - // @@protoc_insertion_point(field_get:vega.Deposit.id) - return _internal_id(); +inline const std::string& Transfer::owner() const { + // @@protoc_insertion_point(field_get:vega.Transfer.owner) + return _internal_owner(); } -inline void Deposit::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:vega.Deposit.id) +inline void Transfer::set_owner(const std::string& value) { + _internal_set_owner(value); + // @@protoc_insertion_point(field_set:vega.Transfer.owner) } -inline std::string* Deposit::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.Deposit.id) - return _internal_mutable_id(); +inline std::string* Transfer::mutable_owner() { + // @@protoc_insertion_point(field_mutable:vega.Transfer.owner) + return _internal_mutable_owner(); } -inline const std::string& Deposit::_internal_id() const { - return id_.Get(); +inline const std::string& Transfer::_internal_owner() const { + return owner_.Get(); } -inline void Deposit::_internal_set_id(const std::string& value) { +inline void Transfer::_internal_set_owner(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Deposit::set_id(std::string&& value) { +inline void Transfer::set_owner(std::string&& value) { - id_.Set( + owner_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.id) + // @@protoc_insertion_point(field_set_rvalue:vega.Transfer.owner) } -inline void Deposit::set_id(const char* value) { +inline void Transfer::set_owner(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Deposit.id) + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Transfer.owner) } -inline void Deposit::set_id(const char* value, +inline void Transfer::set_owner(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Deposit.id) + // @@protoc_insertion_point(field_set_pointer:vega.Transfer.owner) } -inline std::string* Deposit::_internal_mutable_id() { +inline std::string* Transfer::_internal_mutable_owner() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Deposit::release_id() { - // @@protoc_insertion_point(field_release:vega.Deposit.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Transfer::release_owner() { + // @@protoc_insertion_point(field_release:vega.Transfer.owner) + return owner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Deposit::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void Transfer::set_allocated_owner(std::string* owner) { + if (owner != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Deposit.id) -} - -// .vega.Deposit.Status status = 2 [json_name = "status"]; -inline void Deposit::clear_status() { - status_ = 0; -} -inline ::vega::Deposit_Status Deposit::_internal_status() const { - return static_cast< ::vega::Deposit_Status >(status_); -} -inline ::vega::Deposit_Status Deposit::status() const { - // @@protoc_insertion_point(field_get:vega.Deposit.status) - return _internal_status(); -} -inline void Deposit::_internal_set_status(::vega::Deposit_Status value) { - - status_ = value; -} -inline void Deposit::set_status(::vega::Deposit_Status value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:vega.Deposit.status) + // @@protoc_insertion_point(field_set_allocated:vega.Transfer.owner) } -// string party_id = 3 [json_name = "partyId"]; -inline void Deposit::clear_party_id() { - party_id_.ClearToEmpty(); +// .vega.FinancialAmount amount = 2 [json_name = "amount"]; +inline bool Transfer::_internal_has_amount() const { + return this != internal_default_instance() && amount_ != nullptr; } -inline const std::string& Deposit::party_id() const { - // @@protoc_insertion_point(field_get:vega.Deposit.party_id) - return _internal_party_id(); +inline bool Transfer::has_amount() const { + return _internal_has_amount(); } -inline void Deposit::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.Deposit.party_id) +inline void Transfer::clear_amount() { + if (GetArena() == nullptr && amount_ != nullptr) { + delete amount_; + } + amount_ = nullptr; } -inline std::string* Deposit::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.Deposit.party_id) - return _internal_mutable_party_id(); +inline const ::vega::FinancialAmount& Transfer::_internal_amount() const { + const ::vega::FinancialAmount* p = amount_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_FinancialAmount_default_instance_); } -inline const std::string& Deposit::_internal_party_id() const { - return party_id_.Get(); +inline const ::vega::FinancialAmount& Transfer::amount() const { + // @@protoc_insertion_point(field_get:vega.Transfer.amount) + return _internal_amount(); } -inline void Deposit::_internal_set_party_id(const std::string& value) { +inline void Transfer::unsafe_arena_set_allocated_amount( + ::vega::FinancialAmount* amount) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amount_); + } + amount_ = amount; + if (amount) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void Deposit::set_party_id(std::string&& value) { + } else { - party_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.party_id) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Transfer.amount) } -inline void Deposit::set_party_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::FinancialAmount* Transfer::release_amount() { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Deposit.party_id) + ::vega::FinancialAmount* temp = amount_; + amount_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void Deposit::set_party_id(const char* value, - size_t size) { +inline ::vega::FinancialAmount* Transfer::unsafe_arena_release_amount() { + // @@protoc_insertion_point(field_release:vega.Transfer.amount) - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Deposit.party_id) + ::vega::FinancialAmount* temp = amount_; + amount_ = nullptr; + return temp; } -inline std::string* Deposit::_internal_mutable_party_id() { +inline ::vega::FinancialAmount* Transfer::_internal_mutable_amount() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (amount_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::FinancialAmount>(GetArena()); + amount_ = p; + } + return amount_; } -inline std::string* Deposit::release_party_id() { - // @@protoc_insertion_point(field_release:vega.Deposit.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::FinancialAmount* Transfer::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.Transfer.amount) + return _internal_mutable_amount(); } -inline void Deposit::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void Transfer::set_allocated_amount(::vega::FinancialAmount* amount) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete amount_; + } + if (amount) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(amount); + if (message_arena != submessage_arena) { + amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, amount, submessage_arena); + } } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Deposit.party_id) + amount_ = amount; + // @@protoc_insertion_point(field_set_allocated:vega.Transfer.amount) } -// string asset = 4 [json_name = "asset"]; -inline void Deposit::clear_asset() { - asset_.ClearToEmpty(); -} -inline const std::string& Deposit::asset() const { - // @@protoc_insertion_point(field_get:vega.Deposit.asset) - return _internal_asset(); -} -inline void Deposit::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.Deposit.asset) +// .vega.TransferType type = 3 [json_name = "type"]; +inline void Transfer::clear_type() { + type_ = 0; } -inline std::string* Deposit::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.Deposit.asset) - return _internal_mutable_asset(); +inline ::vega::TransferType Transfer::_internal_type() const { + return static_cast< ::vega::TransferType >(type_); } -inline const std::string& Deposit::_internal_asset() const { - return asset_.Get(); +inline ::vega::TransferType Transfer::type() const { + // @@protoc_insertion_point(field_get:vega.Transfer.type) + return _internal_type(); } -inline void Deposit::_internal_set_asset(const std::string& value) { +inline void Transfer::_internal_set_type(::vega::TransferType value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + type_ = value; } -inline void Deposit::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.asset) +inline void Transfer::set_type(::vega::TransferType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:vega.Transfer.type) } -inline void Deposit::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Deposit.asset) +// uint64 min_amount = 4 [json_name = "minAmount"]; +inline void Transfer::clear_min_amount() { + min_amount_ = PROTOBUF_ULONGLONG(0); } -inline void Deposit::set_asset(const char* value, - size_t size) { - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Deposit.asset) +inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::_internal_min_amount() const { + return min_amount_; } -inline std::string* Deposit::_internal_mutable_asset() { +inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::min_amount() const { + // @@protoc_insertion_point(field_get:vega.Transfer.min_amount) + return _internal_min_amount(); +} +inline void Transfer::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + min_amount_ = value; } -inline std::string* Deposit::release_asset() { - // @@protoc_insertion_point(field_release:vega.Deposit.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Transfer::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_min_amount(value); + // @@protoc_insertion_point(field_set:vega.Transfer.min_amount) } -inline void Deposit::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - } else { +// ------------------------------------------------------------------- - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Deposit.asset) -} +// TransferRequest -// string amount = 5 [json_name = "amount"]; -inline void Deposit::clear_amount() { - amount_.ClearToEmpty(); +// repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; +inline int TransferRequest::_internal_from_account_size() const { + return from_account_.size(); } -inline const std::string& Deposit::amount() const { - // @@protoc_insertion_point(field_get:vega.Deposit.amount) - return _internal_amount(); +inline int TransferRequest::from_account_size() const { + return _internal_from_account_size(); } -inline void Deposit::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.Deposit.amount) +inline void TransferRequest::clear_from_account() { + from_account_.Clear(); } -inline std::string* Deposit::mutable_amount() { - // @@protoc_insertion_point(field_mutable:vega.Deposit.amount) - return _internal_mutable_amount(); +inline ::vega::Account* TransferRequest::mutable_from_account(int index) { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.from_account) + return from_account_.Mutable(index); } -inline const std::string& Deposit::_internal_amount() const { - return amount_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* +TransferRequest::mutable_from_account() { + // @@protoc_insertion_point(field_mutable_list:vega.TransferRequest.from_account) + return &from_account_; } -inline void Deposit::_internal_set_amount(const std::string& value) { - - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline const ::vega::Account& TransferRequest::_internal_from_account(int index) const { + return from_account_.Get(index); } -inline void Deposit::set_amount(std::string&& value) { - - amount_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.amount) +inline const ::vega::Account& TransferRequest::from_account(int index) const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.from_account) + return _internal_from_account(index); } -inline void Deposit::set_amount(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Deposit.amount) +inline ::vega::Account* TransferRequest::_internal_add_from_account() { + return from_account_.Add(); } -inline void Deposit::set_amount(const char* value, - size_t size) { - - amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Deposit.amount) +inline ::vega::Account* TransferRequest::add_from_account() { + // @@protoc_insertion_point(field_add:vega.TransferRequest.from_account) + return _internal_add_from_account(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& +TransferRequest::from_account() const { + // @@protoc_insertion_point(field_list:vega.TransferRequest.from_account) + return from_account_; } -inline std::string* Deposit::_internal_mutable_amount() { - return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +// repeated .vega.Account to_account = 2 [json_name = "toAccount"]; +inline int TransferRequest::_internal_to_account_size() const { + return to_account_.size(); } -inline std::string* Deposit::release_amount() { - // @@protoc_insertion_point(field_release:vega.Deposit.amount) - return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline int TransferRequest::to_account_size() const { + return _internal_to_account_size(); } -inline void Deposit::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { - - } else { - - } - amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Deposit.amount) +inline void TransferRequest::clear_to_account() { + to_account_.Clear(); } - -// string tx_hash = 6 [json_name = "txHash"]; -inline void Deposit::clear_tx_hash() { - tx_hash_.ClearToEmpty(); +inline ::vega::Account* TransferRequest::mutable_to_account(int index) { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.to_account) + return to_account_.Mutable(index); } -inline const std::string& Deposit::tx_hash() const { - // @@protoc_insertion_point(field_get:vega.Deposit.tx_hash) - return _internal_tx_hash(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* +TransferRequest::mutable_to_account() { + // @@protoc_insertion_point(field_mutable_list:vega.TransferRequest.to_account) + return &to_account_; } -inline void Deposit::set_tx_hash(const std::string& value) { - _internal_set_tx_hash(value); - // @@protoc_insertion_point(field_set:vega.Deposit.tx_hash) +inline const ::vega::Account& TransferRequest::_internal_to_account(int index) const { + return to_account_.Get(index); } -inline std::string* Deposit::mutable_tx_hash() { - // @@protoc_insertion_point(field_mutable:vega.Deposit.tx_hash) - return _internal_mutable_tx_hash(); +inline const ::vega::Account& TransferRequest::to_account(int index) const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.to_account) + return _internal_to_account(index); } -inline const std::string& Deposit::_internal_tx_hash() const { - return tx_hash_.Get(); +inline ::vega::Account* TransferRequest::_internal_add_to_account() { + return to_account_.Add(); } -inline void Deposit::_internal_set_tx_hash(const std::string& value) { - - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline ::vega::Account* TransferRequest::add_to_account() { + // @@protoc_insertion_point(field_add:vega.TransferRequest.to_account) + return _internal_add_to_account(); } -inline void Deposit::set_tx_hash(std::string&& value) { - - tx_hash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Deposit.tx_hash) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& +TransferRequest::to_account() const { + // @@protoc_insertion_point(field_list:vega.TransferRequest.to_account) + return to_account_; } -inline void Deposit::set_tx_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Deposit.tx_hash) +// uint64 amount = 3 [json_name = "amount"]; +inline void TransferRequest::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); } -inline void Deposit::set_tx_hash(const char* value, - size_t size) { - - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Deposit.tx_hash) +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_amount() const { + return amount_; } -inline std::string* Deposit::_internal_mutable_tx_hash() { +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::amount() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.amount) + return _internal_amount(); +} +inline void TransferRequest::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + amount_ = value; } -inline std::string* Deposit::release_tx_hash() { - // @@protoc_insertion_point(field_release:vega.Deposit.tx_hash) - return tx_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void TransferRequest::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.TransferRequest.amount) } -inline void Deposit::set_allocated_tx_hash(std::string* tx_hash) { - if (tx_hash != nullptr) { - } else { +// uint64 min_amount = 4 [json_name = "minAmount"]; +inline void TransferRequest::clear_min_amount() { + min_amount_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_min_amount() const { + return min_amount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::min_amount() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.min_amount) + return _internal_min_amount(); +} +inline void TransferRequest::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - } - tx_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx_hash, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Deposit.tx_hash) + min_amount_ = value; +} +inline void TransferRequest::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_min_amount(value); + // @@protoc_insertion_point(field_set:vega.TransferRequest.min_amount) } -// int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; -inline void Deposit::clear_credited_timestamp() { - credited_timestamp_ = PROTOBUF_LONGLONG(0); +// string asset = 5 [json_name = "asset"]; +inline void TransferRequest::clear_asset() { + asset_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::_internal_credited_timestamp() const { - return credited_timestamp_; +inline const std::string& TransferRequest::asset() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.asset) + return _internal_asset(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::credited_timestamp() const { - // @@protoc_insertion_point(field_get:vega.Deposit.credited_timestamp) - return _internal_credited_timestamp(); +inline void TransferRequest::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.TransferRequest.asset) +} +inline std::string* TransferRequest::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.asset) + return _internal_mutable_asset(); +} +inline const std::string& TransferRequest::_internal_asset() const { + return asset_.Get(); } -inline void Deposit::_internal_set_credited_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void TransferRequest::_internal_set_asset(const std::string& value) { - credited_timestamp_ = value; -} -inline void Deposit::set_credited_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_credited_timestamp(value); - // @@protoc_insertion_point(field_set:vega.Deposit.credited_timestamp) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void TransferRequest::set_asset(std::string&& value) { -// int64 created_timestamp = 8 [json_name = "createdTimestamp"]; -inline void Deposit::clear_created_timestamp() { - created_timestamp_ = PROTOBUF_LONGLONG(0); + asset_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.asset) } -inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::_internal_created_timestamp() const { - return created_timestamp_; +inline void TransferRequest::set_asset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.TransferRequest.asset) } -inline ::PROTOBUF_NAMESPACE_ID::int64 Deposit::created_timestamp() const { - // @@protoc_insertion_point(field_get:vega.Deposit.created_timestamp) - return _internal_created_timestamp(); +inline void TransferRequest::set_asset(const char* value, + size_t size) { + + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.asset) } -inline void Deposit::_internal_set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline std::string* TransferRequest::_internal_mutable_asset() { - created_timestamp_ = value; + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void Deposit::set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_created_timestamp(value); - // @@protoc_insertion_point(field_set:vega.Deposit.created_timestamp) +inline std::string* TransferRequest::release_asset() { + // @@protoc_insertion_point(field_release:vega.TransferRequest.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } +inline void TransferRequest::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { -// ------------------------------------------------------------------- + } else { -// Withdrawal + } + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.asset) +} -// string id = 1 [json_name = "id"]; -inline void Withdrawal::clear_id() { - id_.ClearToEmpty(); +// string reference = 6 [json_name = "reference"]; +inline void TransferRequest::clear_reference() { + reference_.ClearToEmpty(); } -inline const std::string& Withdrawal::id() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.id) - return _internal_id(); +inline const std::string& TransferRequest::reference() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.reference) + return _internal_reference(); } -inline void Withdrawal::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.id) +inline void TransferRequest::set_reference(const std::string& value) { + _internal_set_reference(value); + // @@protoc_insertion_point(field_set:vega.TransferRequest.reference) } -inline std::string* Withdrawal::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.id) - return _internal_mutable_id(); +inline std::string* TransferRequest::mutable_reference() { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.reference) + return _internal_mutable_reference(); } -inline const std::string& Withdrawal::_internal_id() const { - return id_.Get(); +inline const std::string& TransferRequest::_internal_reference() const { + return reference_.Get(); } -inline void Withdrawal::_internal_set_id(const std::string& value) { +inline void TransferRequest::_internal_set_reference(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Withdrawal::set_id(std::string&& value) { +inline void TransferRequest::set_reference(std::string&& value) { - id_.Set( + reference_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.id) + // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.reference) } -inline void Withdrawal::set_id(const char* value) { +inline void TransferRequest::set_reference(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Withdrawal.id) + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.TransferRequest.reference) } -inline void Withdrawal::set_id(const char* value, +inline void TransferRequest::set_reference(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.id) + // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.reference) } -inline std::string* Withdrawal::_internal_mutable_id() { +inline std::string* TransferRequest::_internal_mutable_reference() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Withdrawal::release_id() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* TransferRequest::release_reference() { + // @@protoc_insertion_point(field_release:vega.TransferRequest.reference) + return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Withdrawal::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void TransferRequest::set_allocated_reference(std::string* reference) { + if (reference != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.id) + // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.reference) } -// string party_id = 2 [json_name = "partyId"]; -inline void Withdrawal::clear_party_id() { - party_id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// LedgerEntry + +// string from_account = 1 [json_name = "fromAccount"]; +inline void LedgerEntry::clear_from_account() { + from_account_.ClearToEmpty(); } -inline const std::string& Withdrawal::party_id() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.party_id) - return _internal_party_id(); +inline const std::string& LedgerEntry::from_account() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.from_account) + return _internal_from_account(); } -inline void Withdrawal::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.party_id) +inline void LedgerEntry::set_from_account(const std::string& value) { + _internal_set_from_account(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.from_account) } -inline std::string* Withdrawal::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.party_id) - return _internal_mutable_party_id(); +inline std::string* LedgerEntry::mutable_from_account() { + // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.from_account) + return _internal_mutable_from_account(); } -inline const std::string& Withdrawal::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& LedgerEntry::_internal_from_account() const { + return from_account_.Get(); } -inline void Withdrawal::_internal_set_party_id(const std::string& value) { +inline void LedgerEntry::_internal_set_from_account(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Withdrawal::set_party_id(std::string&& value) { +inline void LedgerEntry::set_from_account(std::string&& value) { - party_id_.Set( + from_account_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.from_account) } -inline void Withdrawal::set_party_id(const char* value) { +inline void LedgerEntry::set_from_account(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Withdrawal.party_id) + from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.from_account) } -inline void Withdrawal::set_party_id(const char* value, +inline void LedgerEntry::set_from_account(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.from_account) } -inline std::string* Withdrawal::_internal_mutable_party_id() { +inline std::string* LedgerEntry::_internal_mutable_from_account() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return from_account_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Withdrawal::release_party_id() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LedgerEntry::release_from_account() { + // @@protoc_insertion_point(field_release:vega.LedgerEntry.from_account) + return from_account_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Withdrawal::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void LedgerEntry::set_allocated_from_account(std::string* from_account) { + if (from_account != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + from_account_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from_account, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.party_id) -} - -// uint64 amount = 3 [json_name = "amount"]; -inline void Withdrawal::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::_internal_amount() const { - return amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::amount() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.amount) - return _internal_amount(); -} -inline void Withdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void Withdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.amount) + // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.from_account) } -// string asset = 4 [json_name = "asset"]; -inline void Withdrawal::clear_asset() { - asset_.ClearToEmpty(); +// string to_account = 2 [json_name = "toAccount"]; +inline void LedgerEntry::clear_to_account() { + to_account_.ClearToEmpty(); } -inline const std::string& Withdrawal::asset() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.asset) - return _internal_asset(); +inline const std::string& LedgerEntry::to_account() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.to_account) + return _internal_to_account(); } -inline void Withdrawal::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.asset) +inline void LedgerEntry::set_to_account(const std::string& value) { + _internal_set_to_account(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.to_account) } -inline std::string* Withdrawal::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.asset) - return _internal_mutable_asset(); +inline std::string* LedgerEntry::mutable_to_account() { + // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.to_account) + return _internal_mutable_to_account(); } -inline const std::string& Withdrawal::_internal_asset() const { - return asset_.Get(); +inline const std::string& LedgerEntry::_internal_to_account() const { + return to_account_.Get(); } -inline void Withdrawal::_internal_set_asset(const std::string& value) { +inline void LedgerEntry::_internal_set_to_account(const std::string& value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Withdrawal::set_asset(std::string&& value) { +inline void LedgerEntry::set_to_account(std::string&& value) { - asset_.Set( + to_account_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.asset) + // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.to_account) } -inline void Withdrawal::set_asset(const char* value) { +inline void LedgerEntry::set_to_account(const char* value) { GOOGLE_DCHECK(value != nullptr); - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Withdrawal.asset) + to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.to_account) } -inline void Withdrawal::set_asset(const char* value, +inline void LedgerEntry::set_to_account(const char* value, size_t size) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.asset) + // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.to_account) } -inline std::string* Withdrawal::_internal_mutable_asset() { +inline std::string* LedgerEntry::_internal_mutable_to_account() { - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return to_account_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Withdrawal::release_asset() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LedgerEntry::release_to_account() { + // @@protoc_insertion_point(field_release:vega.LedgerEntry.to_account) + return to_account_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Withdrawal::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { +inline void LedgerEntry::set_allocated_to_account(std::string* to_account) { + if (to_account != nullptr) { } else { } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + to_account_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), to_account, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.asset) + // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.to_account) } -// .vega.Withdrawal.Status status = 5 [json_name = "status"]; -inline void Withdrawal::clear_status() { - status_ = 0; +// uint64 amount = 3 [json_name = "amount"]; +inline void LedgerEntry::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); } -inline ::vega::Withdrawal_Status Withdrawal::_internal_status() const { - return static_cast< ::vega::Withdrawal_Status >(status_); +inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::_internal_amount() const { + return amount_; } -inline ::vega::Withdrawal_Status Withdrawal::status() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.status) - return _internal_status(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::amount() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.amount) + return _internal_amount(); } -inline void Withdrawal::_internal_set_status(::vega::Withdrawal_Status value) { +inline void LedgerEntry::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - status_ = value; + amount_ = value; } -inline void Withdrawal::set_status(::vega::Withdrawal_Status value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.status) +inline void LedgerEntry::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.amount) } -// string ref = 6 [json_name = "ref"]; -inline void Withdrawal::clear_ref() { - ref_.ClearToEmpty(); +// string reference = 4 [json_name = "reference"]; +inline void LedgerEntry::clear_reference() { + reference_.ClearToEmpty(); } -inline const std::string& Withdrawal::ref() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.ref) - return _internal_ref(); +inline const std::string& LedgerEntry::reference() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.reference) + return _internal_reference(); } -inline void Withdrawal::set_ref(const std::string& value) { - _internal_set_ref(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.ref) +inline void LedgerEntry::set_reference(const std::string& value) { + _internal_set_reference(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.reference) } -inline std::string* Withdrawal::mutable_ref() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.ref) - return _internal_mutable_ref(); +inline std::string* LedgerEntry::mutable_reference() { + // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.reference) + return _internal_mutable_reference(); } -inline const std::string& Withdrawal::_internal_ref() const { - return ref_.Get(); +inline const std::string& LedgerEntry::_internal_reference() const { + return reference_.Get(); } -inline void Withdrawal::_internal_set_ref(const std::string& value) { +inline void LedgerEntry::_internal_set_reference(const std::string& value) { - ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Withdrawal::set_ref(std::string&& value) { +inline void LedgerEntry::set_reference(std::string&& value) { - ref_.Set( + reference_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.ref) + // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.reference) } -inline void Withdrawal::set_ref(const char* value) { +inline void LedgerEntry::set_reference(const char* value) { GOOGLE_DCHECK(value != nullptr); - ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Withdrawal.ref) + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.reference) } -inline void Withdrawal::set_ref(const char* value, +inline void LedgerEntry::set_reference(const char* value, size_t size) { - ref_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.ref) + // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.reference) } -inline std::string* Withdrawal::_internal_mutable_ref() { +inline std::string* LedgerEntry::_internal_mutable_reference() { - return ref_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Withdrawal::release_ref() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.ref) - return ref_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LedgerEntry::release_reference() { + // @@protoc_insertion_point(field_release:vega.LedgerEntry.reference) + return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Withdrawal::set_allocated_ref(std::string* ref) { - if (ref != nullptr) { +inline void LedgerEntry::set_allocated_reference(std::string* reference) { + if (reference != nullptr) { } else { } - ref_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ref, + reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.ref) -} - -// int64 expiry = 7 [json_name = "expiry"]; -inline void Withdrawal::clear_expiry() { - expiry_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_expiry() const { - return expiry_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::expiry() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.expiry) - return _internal_expiry(); -} -inline void Withdrawal::_internal_set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { - - expiry_ = value; -} -inline void Withdrawal::set_expiry(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_expiry(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.expiry) + // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.reference) } -// string tx_hash = 8 [json_name = "txHash"]; -inline void Withdrawal::clear_tx_hash() { - tx_hash_.ClearToEmpty(); +// string type = 5 [json_name = "type"]; +inline void LedgerEntry::clear_type() { + type_.ClearToEmpty(); } -inline const std::string& Withdrawal::tx_hash() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.tx_hash) - return _internal_tx_hash(); +inline const std::string& LedgerEntry::type() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.type) + return _internal_type(); } -inline void Withdrawal::set_tx_hash(const std::string& value) { - _internal_set_tx_hash(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.tx_hash) +inline void LedgerEntry::set_type(const std::string& value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.type) } -inline std::string* Withdrawal::mutable_tx_hash() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.tx_hash) - return _internal_mutable_tx_hash(); +inline std::string* LedgerEntry::mutable_type() { + // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.type) + return _internal_mutable_type(); } -inline const std::string& Withdrawal::_internal_tx_hash() const { - return tx_hash_.Get(); +inline const std::string& LedgerEntry::_internal_type() const { + return type_.Get(); } -inline void Withdrawal::_internal_set_tx_hash(const std::string& value) { +inline void LedgerEntry::_internal_set_type(const std::string& value) { - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Withdrawal::set_tx_hash(std::string&& value) { +inline void LedgerEntry::set_type(std::string&& value) { - tx_hash_.Set( + type_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.tx_hash) + // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.type) } -inline void Withdrawal::set_tx_hash(const char* value) { +inline void LedgerEntry::set_type(const char* value) { GOOGLE_DCHECK(value != nullptr); - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Withdrawal.tx_hash) + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.type) } -inline void Withdrawal::set_tx_hash(const char* value, +inline void LedgerEntry::set_type(const char* value, size_t size) { - tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.tx_hash) + // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.type) } -inline std::string* Withdrawal::_internal_mutable_tx_hash() { +inline std::string* LedgerEntry::_internal_mutable_type() { - return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Withdrawal::release_tx_hash() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.tx_hash) - return tx_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LedgerEntry::release_type() { + // @@protoc_insertion_point(field_release:vega.LedgerEntry.type) + return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Withdrawal::set_allocated_tx_hash(std::string* tx_hash) { - if (tx_hash != nullptr) { +inline void LedgerEntry::set_allocated_type(std::string* type) { + if (type != nullptr) { } else { } - tx_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx_hash, + type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.tx_hash) + // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.type) } -// int64 created_timestamp = 9 [json_name = "createdTimestamp"]; -inline void Withdrawal::clear_created_timestamp() { - created_timestamp_ = PROTOBUF_LONGLONG(0); +// int64 timestamp = 6 [json_name = "timestamp"]; +inline void LedgerEntry::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_created_timestamp() const { - return created_timestamp_; +inline ::PROTOBUF_NAMESPACE_ID::int64 LedgerEntry::_internal_timestamp() const { + return timestamp_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::created_timestamp() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.created_timestamp) - return _internal_created_timestamp(); +inline ::PROTOBUF_NAMESPACE_ID::int64 LedgerEntry::timestamp() const { + // @@protoc_insertion_point(field_get:vega.LedgerEntry.timestamp) + return _internal_timestamp(); } -inline void Withdrawal::_internal_set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void LedgerEntry::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - created_timestamp_ = value; + timestamp_ = value; } -inline void Withdrawal::set_created_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_created_timestamp(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.created_timestamp) +inline void LedgerEntry::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:vega.LedgerEntry.timestamp) } -// int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; -inline void Withdrawal::clear_withdrawn_timestamp() { - withdrawn_timestamp_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::_internal_withdrawn_timestamp() const { - return withdrawn_timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Withdrawal::withdrawn_timestamp() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.withdrawn_timestamp) - return _internal_withdrawn_timestamp(); -} -inline void Withdrawal::_internal_set_withdrawn_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +// ------------------------------------------------------------------- - withdrawn_timestamp_ = value; -} -inline void Withdrawal::set_withdrawn_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_withdrawn_timestamp(value); - // @@protoc_insertion_point(field_set:vega.Withdrawal.withdrawn_timestamp) -} +// TransferBalance -// .vega.WithdrawExt ext = 11 [json_name = "ext"]; -inline bool Withdrawal::_internal_has_ext() const { - return this != internal_default_instance() && ext_ != nullptr; +// .vega.Account account = 1 [json_name = "account"]; +inline bool TransferBalance::_internal_has_account() const { + return this != internal_default_instance() && account_ != nullptr; } -inline bool Withdrawal::has_ext() const { - return _internal_has_ext(); +inline bool TransferBalance::has_account() const { + return _internal_has_account(); } -inline void Withdrawal::clear_ext() { - if (GetArena() == nullptr && ext_ != nullptr) { - delete ext_; +inline void TransferBalance::clear_account() { + if (GetArena() == nullptr && account_ != nullptr) { + delete account_; } - ext_ = nullptr; + account_ = nullptr; } -inline const ::vega::WithdrawExt& Withdrawal::_internal_ext() const { - const ::vega::WithdrawExt* p = ext_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_WithdrawExt_default_instance_); +inline const ::vega::Account& TransferBalance::_internal_account() const { + const ::vega::Account* p = account_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_Account_default_instance_); } -inline const ::vega::WithdrawExt& Withdrawal::ext() const { - // @@protoc_insertion_point(field_get:vega.Withdrawal.ext) - return _internal_ext(); +inline const ::vega::Account& TransferBalance::account() const { + // @@protoc_insertion_point(field_get:vega.TransferBalance.account) + return _internal_account(); } -inline void Withdrawal::unsafe_arena_set_allocated_ext( - ::vega::WithdrawExt* ext) { +inline void TransferBalance::unsafe_arena_set_allocated_account( + ::vega::Account* account) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ext_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(account_); } - ext_ = ext; - if (ext) { + account_ = account; + if (account) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Withdrawal.ext) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.TransferBalance.account) } -inline ::vega::WithdrawExt* Withdrawal::release_ext() { +inline ::vega::Account* TransferBalance::release_account() { - ::vega::WithdrawExt* temp = ext_; - ext_ = nullptr; + ::vega::Account* temp = account_; + account_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::vega::WithdrawExt* Withdrawal::unsafe_arena_release_ext() { - // @@protoc_insertion_point(field_release:vega.Withdrawal.ext) +inline ::vega::Account* TransferBalance::unsafe_arena_release_account() { + // @@protoc_insertion_point(field_release:vega.TransferBalance.account) - ::vega::WithdrawExt* temp = ext_; - ext_ = nullptr; + ::vega::Account* temp = account_; + account_ = nullptr; return temp; } -inline ::vega::WithdrawExt* Withdrawal::_internal_mutable_ext() { +inline ::vega::Account* TransferBalance::_internal_mutable_account() { - if (ext_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::WithdrawExt>(GetArena()); - ext_ = p; + if (account_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::Account>(GetArena()); + account_ = p; } - return ext_; + return account_; } -inline ::vega::WithdrawExt* Withdrawal::mutable_ext() { - // @@protoc_insertion_point(field_mutable:vega.Withdrawal.ext) - return _internal_mutable_ext(); +inline ::vega::Account* TransferBalance::mutable_account() { + // @@protoc_insertion_point(field_mutable:vega.TransferBalance.account) + return _internal_mutable_account(); } -inline void Withdrawal::set_allocated_ext(::vega::WithdrawExt* ext) { +inline void TransferBalance::set_allocated_account(::vega::Account* account) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete ext_; + delete account_; } - if (ext) { + if (account) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ext); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(account); if (message_arena != submessage_arena) { - ext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ext, submessage_arena); + account = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, account, submessage_arena); } } else { } - ext_ = ext; - // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.ext) + account_ = account; + // @@protoc_insertion_point(field_set_allocated:vega.TransferBalance.account) +} + +// uint64 balance = 2 [json_name = "balance"]; +inline void TransferBalance::clear_balance() { + balance_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::_internal_balance() const { + return balance_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::balance() const { + // @@protoc_insertion_point(field_get:vega.TransferBalance.balance) + return _internal_balance(); +} +inline void TransferBalance::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + balance_ = value; +} +inline void TransferBalance::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_balance(value); + // @@protoc_insertion_point(field_set:vega.TransferBalance.balance) } // ------------------------------------------------------------------- -// WithdrawExt +// TransferResponse -// .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; -inline bool WithdrawExt::_internal_has_erc20() const { - return ext_case() == kErc20; +// repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; +inline int TransferResponse::_internal_transfers_size() const { + return transfers_.size(); } -inline bool WithdrawExt::has_erc20() const { - return _internal_has_erc20(); +inline int TransferResponse::transfers_size() const { + return _internal_transfers_size(); } -inline void WithdrawExt::set_has_erc20() { - _oneof_case_[0] = kErc20; +inline void TransferResponse::clear_transfers() { + transfers_.Clear(); } -inline void WithdrawExt::clear_erc20() { - if (_internal_has_erc20()) { - if (GetArena() == nullptr) { - delete ext_.erc20_; - } - clear_has_ext(); - } +inline ::vega::LedgerEntry* TransferResponse::mutable_transfers(int index) { + // @@protoc_insertion_point(field_mutable:vega.TransferResponse.transfers) + return transfers_.Mutable(index); } -inline ::vega::Erc20WithdrawExt* WithdrawExt::release_erc20() { - // @@protoc_insertion_point(field_release:vega.WithdrawExt.erc20) - if (_internal_has_erc20()) { - clear_has_ext(); - ::vega::Erc20WithdrawExt* temp = ext_.erc20_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - ext_.erc20_ = nullptr; - return temp; - } else { - return nullptr; - } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LedgerEntry >* +TransferResponse::mutable_transfers() { + // @@protoc_insertion_point(field_mutable_list:vega.TransferResponse.transfers) + return &transfers_; } -inline const ::vega::Erc20WithdrawExt& WithdrawExt::_internal_erc20() const { - return _internal_has_erc20() - ? *ext_.erc20_ - : reinterpret_cast< ::vega::Erc20WithdrawExt&>(::vega::_Erc20WithdrawExt_default_instance_); +inline const ::vega::LedgerEntry& TransferResponse::_internal_transfers(int index) const { + return transfers_.Get(index); } -inline const ::vega::Erc20WithdrawExt& WithdrawExt::erc20() const { - // @@protoc_insertion_point(field_get:vega.WithdrawExt.erc20) - return _internal_erc20(); +inline const ::vega::LedgerEntry& TransferResponse::transfers(int index) const { + // @@protoc_insertion_point(field_get:vega.TransferResponse.transfers) + return _internal_transfers(index); } -inline ::vega::Erc20WithdrawExt* WithdrawExt::unsafe_arena_release_erc20() { - // @@protoc_insertion_point(field_unsafe_arena_release:vega.WithdrawExt.erc20) - if (_internal_has_erc20()) { - clear_has_ext(); - ::vega::Erc20WithdrawExt* temp = ext_.erc20_; - ext_.erc20_ = nullptr; - return temp; - } else { - return nullptr; - } +inline ::vega::LedgerEntry* TransferResponse::_internal_add_transfers() { + return transfers_.Add(); } -inline void WithdrawExt::unsafe_arena_set_allocated_erc20(::vega::Erc20WithdrawExt* erc20) { - clear_ext(); - if (erc20) { - set_has_erc20(); - ext_.erc20_ = erc20; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.WithdrawExt.erc20) +inline ::vega::LedgerEntry* TransferResponse::add_transfers() { + // @@protoc_insertion_point(field_add:vega.TransferResponse.transfers) + return _internal_add_transfers(); } -inline ::vega::Erc20WithdrawExt* WithdrawExt::_internal_mutable_erc20() { - if (!_internal_has_erc20()) { - clear_ext(); - set_has_erc20(); - ext_.erc20_ = CreateMaybeMessage< ::vega::Erc20WithdrawExt >(GetArena()); - } - return ext_.erc20_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LedgerEntry >& +TransferResponse::transfers() const { + // @@protoc_insertion_point(field_list:vega.TransferResponse.transfers) + return transfers_; } -inline ::vega::Erc20WithdrawExt* WithdrawExt::mutable_erc20() { - // @@protoc_insertion_point(field_mutable:vega.WithdrawExt.erc20) - return _internal_mutable_erc20(); + +// repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; +inline int TransferResponse::_internal_balances_size() const { + return balances_.size(); +} +inline int TransferResponse::balances_size() const { + return _internal_balances_size(); +} +inline void TransferResponse::clear_balances() { + balances_.Clear(); +} +inline ::vega::TransferBalance* TransferResponse::mutable_balances(int index) { + // @@protoc_insertion_point(field_mutable:vega.TransferResponse.balances) + return balances_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferBalance >* +TransferResponse::mutable_balances() { + // @@protoc_insertion_point(field_mutable_list:vega.TransferResponse.balances) + return &balances_; +} +inline const ::vega::TransferBalance& TransferResponse::_internal_balances(int index) const { + return balances_.Get(index); +} +inline const ::vega::TransferBalance& TransferResponse::balances(int index) const { + // @@protoc_insertion_point(field_get:vega.TransferResponse.balances) + return _internal_balances(index); +} +inline ::vega::TransferBalance* TransferResponse::_internal_add_balances() { + return balances_.Add(); +} +inline ::vega::TransferBalance* TransferResponse::add_balances() { + // @@protoc_insertion_point(field_add:vega.TransferResponse.balances) + return _internal_add_balances(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferBalance >& +TransferResponse::balances() const { + // @@protoc_insertion_point(field_list:vega.TransferResponse.balances) + return balances_; +} + +// ------------------------------------------------------------------- + +// MarginLevels + +// uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; +inline void MarginLevels::clear_maintenance_margin() { + maintenance_margin_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_maintenance_margin() const { + return maintenance_margin_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::maintenance_margin() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.maintenance_margin) + return _internal_maintenance_margin(); +} +inline void MarginLevels::_internal_set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + maintenance_margin_ = value; +} +inline void MarginLevels::set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_maintenance_margin(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.maintenance_margin) } -inline bool WithdrawExt::has_ext() const { - return ext_case() != EXT_NOT_SET; +// uint64 search_level = 2 [json_name = "searchLevel"]; +inline void MarginLevels::clear_search_level() { + search_level_ = PROTOBUF_ULONGLONG(0); } -inline void WithdrawExt::clear_has_ext() { - _oneof_case_[0] = EXT_NOT_SET; +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_search_level() const { + return search_level_; } -inline WithdrawExt::ExtCase WithdrawExt::ext_case() const { - return WithdrawExt::ExtCase(_oneof_case_[0]); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::search_level() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.search_level) + return _internal_search_level(); } -// ------------------------------------------------------------------- - -// Erc20WithdrawExt +inline void MarginLevels::_internal_set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// string receiver_address = 1 [json_name = "receiverAddress"]; -inline void Erc20WithdrawExt::clear_receiver_address() { - receiver_address_.ClearToEmpty(); -} -inline const std::string& Erc20WithdrawExt::receiver_address() const { - // @@protoc_insertion_point(field_get:vega.Erc20WithdrawExt.receiver_address) - return _internal_receiver_address(); + search_level_ = value; } -inline void Erc20WithdrawExt::set_receiver_address(const std::string& value) { - _internal_set_receiver_address(value); - // @@protoc_insertion_point(field_set:vega.Erc20WithdrawExt.receiver_address) +inline void MarginLevels::set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_search_level(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.search_level) } -inline std::string* Erc20WithdrawExt::mutable_receiver_address() { - // @@protoc_insertion_point(field_mutable:vega.Erc20WithdrawExt.receiver_address) - return _internal_mutable_receiver_address(); + +// uint64 initial_margin = 3 [json_name = "initialMargin"]; +inline void MarginLevels::clear_initial_margin() { + initial_margin_ = PROTOBUF_ULONGLONG(0); } -inline const std::string& Erc20WithdrawExt::_internal_receiver_address() const { - return receiver_address_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_initial_margin() const { + return initial_margin_; } -inline void Erc20WithdrawExt::_internal_set_receiver_address(const std::string& value) { - - receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::initial_margin() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.initial_margin) + return _internal_initial_margin(); } -inline void Erc20WithdrawExt::set_receiver_address(std::string&& value) { +inline void MarginLevels::_internal_set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { - receiver_address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Erc20WithdrawExt.receiver_address) + initial_margin_ = value; } -inline void Erc20WithdrawExt::set_receiver_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Erc20WithdrawExt.receiver_address) +inline void MarginLevels::set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_initial_margin(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.initial_margin) } -inline void Erc20WithdrawExt::set_receiver_address(const char* value, - size_t size) { - receiver_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Erc20WithdrawExt.receiver_address) +// uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; +inline void MarginLevels::clear_collateral_release_level() { + collateral_release_level_ = PROTOBUF_ULONGLONG(0); } -inline std::string* Erc20WithdrawExt::_internal_mutable_receiver_address() { - - return receiver_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_collateral_release_level() const { + return collateral_release_level_; } -inline std::string* Erc20WithdrawExt::release_receiver_address() { - // @@protoc_insertion_point(field_release:vega.Erc20WithdrawExt.receiver_address) - return receiver_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::collateral_release_level() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.collateral_release_level) + return _internal_collateral_release_level(); } -inline void Erc20WithdrawExt::set_allocated_receiver_address(std::string* receiver_address) { - if (receiver_address != nullptr) { - - } else { +inline void MarginLevels::_internal_set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { - } - receiver_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver_address, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Erc20WithdrawExt.receiver_address) + collateral_release_level_ = value; +} +inline void MarginLevels::set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_collateral_release_level(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.collateral_release_level) } -// ------------------------------------------------------------------- - -// Account - -// string id = 1 [json_name = "id"]; -inline void Account::clear_id() { - id_.ClearToEmpty(); +// string party_id = 5 [json_name = "partyId"]; +inline void MarginLevels::clear_party_id() { + party_id_.ClearToEmpty(); } -inline const std::string& Account::id() const { - // @@protoc_insertion_point(field_get:vega.Account.id) - return _internal_id(); +inline const std::string& MarginLevels::party_id() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.party_id) + return _internal_party_id(); } -inline void Account::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:vega.Account.id) +inline void MarginLevels::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.party_id) } -inline std::string* Account::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.Account.id) - return _internal_mutable_id(); +inline std::string* MarginLevels::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.party_id) + return _internal_mutable_party_id(); } -inline const std::string& Account::_internal_id() const { - return id_.Get(); +inline const std::string& MarginLevels::_internal_party_id() const { + return party_id_.Get(); } -inline void Account::_internal_set_id(const std::string& value) { +inline void MarginLevels::_internal_set_party_id(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Account::set_id(std::string&& value) { +inline void MarginLevels::set_party_id(std::string&& value) { - id_.Set( + party_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Account.id) + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.party_id) } -inline void Account::set_id(const char* value) { +inline void MarginLevels::set_party_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Account.id) + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.party_id) } -inline void Account::set_id(const char* value, +inline void MarginLevels::set_party_id(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Account.id) + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.party_id) } -inline std::string* Account::_internal_mutable_id() { +inline std::string* MarginLevels::_internal_mutable_party_id() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Account::release_id() { - // @@protoc_insertion_point(field_release:vega.Account.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* MarginLevels::release_party_id() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Account::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void MarginLevels::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Account.id) + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.party_id) } -// string owner = 2 [json_name = "owner"]; -inline void Account::clear_owner() { - owner_.ClearToEmpty(); +// string market_id = 6 [json_name = "marketId"]; +inline void MarginLevels::clear_market_id() { + market_id_.ClearToEmpty(); } -inline const std::string& Account::owner() const { - // @@protoc_insertion_point(field_get:vega.Account.owner) - return _internal_owner(); +inline const std::string& MarginLevels::market_id() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.market_id) + return _internal_market_id(); } -inline void Account::set_owner(const std::string& value) { - _internal_set_owner(value); - // @@protoc_insertion_point(field_set:vega.Account.owner) +inline void MarginLevels::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.market_id) } -inline std::string* Account::mutable_owner() { - // @@protoc_insertion_point(field_mutable:vega.Account.owner) - return _internal_mutable_owner(); +inline std::string* MarginLevels::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.market_id) + return _internal_mutable_market_id(); } -inline const std::string& Account::_internal_owner() const { - return owner_.Get(); +inline const std::string& MarginLevels::_internal_market_id() const { + return market_id_.Get(); } -inline void Account::_internal_set_owner(const std::string& value) { +inline void MarginLevels::_internal_set_market_id(const std::string& value) { - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Account::set_owner(std::string&& value) { +inline void MarginLevels::set_market_id(std::string&& value) { - owner_.Set( + market_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Account.owner) + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.market_id) } -inline void Account::set_owner(const char* value) { +inline void MarginLevels::set_market_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Account.owner) + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.market_id) } -inline void Account::set_owner(const char* value, +inline void MarginLevels::set_market_id(const char* value, size_t size) { - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Account.owner) -} -inline std::string* Account::_internal_mutable_owner() { - - return owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* Account::release_owner() { - // @@protoc_insertion_point(field_release:vega.Account.owner) - return owner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void Account::set_allocated_owner(std::string* owner) { - if (owner != nullptr) { - - } else { - - } - owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Account.owner) + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.market_id) } +inline std::string* MarginLevels::_internal_mutable_market_id() { -// uint64 balance = 3 [json_name = "balance"]; -inline void Account::clear_balance() { - balance_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::_internal_balance() const { - return balance_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::balance() const { - // @@protoc_insertion_point(field_get:vega.Account.balance) - return _internal_balance(); + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void Account::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - balance_ = value; +inline std::string* MarginLevels::release_market_id() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Account::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_balance(value); - // @@protoc_insertion_point(field_set:vega.Account.balance) +inline void MarginLevels::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { + + } else { + + } + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.market_id) } -// string asset = 4 [json_name = "asset"]; -inline void Account::clear_asset() { +// string asset = 7 [json_name = "asset"]; +inline void MarginLevels::clear_asset() { asset_.ClearToEmpty(); } -inline const std::string& Account::asset() const { - // @@protoc_insertion_point(field_get:vega.Account.asset) +inline const std::string& MarginLevels::asset() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.asset) return _internal_asset(); } -inline void Account::set_asset(const std::string& value) { +inline void MarginLevels::set_asset(const std::string& value) { _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.Account.asset) + // @@protoc_insertion_point(field_set:vega.MarginLevels.asset) } -inline std::string* Account::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.Account.asset) +inline std::string* MarginLevels::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.asset) return _internal_mutable_asset(); } -inline const std::string& Account::_internal_asset() const { +inline const std::string& MarginLevels::_internal_asset() const { return asset_.Get(); } -inline void Account::_internal_set_asset(const std::string& value) { +inline void MarginLevels::_internal_set_asset(const std::string& value) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Account::set_asset(std::string&& value) { +inline void MarginLevels::set_asset(std::string&& value) { asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Account.asset) + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.asset) } -inline void Account::set_asset(const char* value) { +inline void MarginLevels::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Account.asset) + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.asset) } -inline void Account::set_asset(const char* value, +inline void MarginLevels::set_asset(const char* value, size_t size) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Account.asset) + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.asset) } -inline std::string* Account::_internal_mutable_asset() { +inline std::string* MarginLevels::_internal_mutable_asset() { return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Account::release_asset() { - // @@protoc_insertion_point(field_release:vega.Account.asset) +inline std::string* MarginLevels::release_asset() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.asset) return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Account::set_allocated_asset(std::string* asset) { +inline void MarginLevels::set_allocated_asset(std::string* asset) { if (asset != nullptr) { } else { @@ -15382,4264 +16614,4395 @@ inline void Account::set_allocated_asset(std::string* asset) { } asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Account.asset) + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.asset) } -// string market_id = 5 [json_name = "marketId"]; -inline void Account::clear_market_id() { - market_id_.ClearToEmpty(); +// int64 timestamp = 8 [json_name = "timestamp"]; +inline void MarginLevels::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); } -inline const std::string& Account::market_id() const { - // @@protoc_insertion_point(field_get:vega.Account.market_id) - return _internal_market_id(); +inline ::PROTOBUF_NAMESPACE_ID::int64 MarginLevels::_internal_timestamp() const { + return timestamp_; } -inline void Account::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.Account.market_id) +inline ::PROTOBUF_NAMESPACE_ID::int64 MarginLevels::timestamp() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.timestamp) + return _internal_timestamp(); } -inline std::string* Account::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.Account.market_id) - return _internal_mutable_market_id(); +inline void MarginLevels::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + + timestamp_ = value; } -inline const std::string& Account::_internal_market_id() const { - return market_id_.Get(); +inline void MarginLevels::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:vega.MarginLevels.timestamp) } -inline void Account::_internal_set_market_id(const std::string& value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// ------------------------------------------------------------------- + +// MarketData + +// uint64 mark_price = 1 [json_name = "markPrice"]; +inline void MarketData::clear_mark_price() { + mark_price_ = PROTOBUF_ULONGLONG(0); } -inline void Account::set_market_id(std::string&& value) { +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mark_price() const { + return mark_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mark_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.mark_price) + return _internal_mark_price(); +} +inline void MarketData::_internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - market_id_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Account.market_id) + mark_price_ = value; +} +inline void MarketData::set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_mark_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.mark_price) } -inline void Account::set_market_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Account.market_id) +// uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; +inline void MarketData::clear_best_bid_price() { + best_bid_price_ = PROTOBUF_ULONGLONG(0); } -inline void Account::set_market_id(const char* value, - size_t size) { +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_bid_price() const { + return best_bid_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_bid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_price) + return _internal_best_bid_price(); +} +inline void MarketData::_internal_set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Account.market_id) + best_bid_price_ = value; +} +inline void MarketData::set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_bid_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_price) } -inline std::string* Account::_internal_mutable_market_id() { - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +// uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; +inline void MarketData::clear_best_bid_volume() { + best_bid_volume_ = PROTOBUF_ULONGLONG(0); } -inline std::string* Account::release_market_id() { - // @@protoc_insertion_point(field_release:vega.Account.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_bid_volume() const { + return best_bid_volume_; } -inline void Account::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_bid_volume() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_volume) + return _internal_best_bid_volume(); +} +inline void MarketData::_internal_set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - } else { + best_bid_volume_ = value; +} +inline void MarketData::set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_bid_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_volume) +} - } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Account.market_id) +// uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; +inline void MarketData::clear_best_offer_price() { + best_offer_price_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_offer_price() const { + return best_offer_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_offer_price) + return _internal_best_offer_price(); } +inline void MarketData::_internal_set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// .vega.AccountType type = 6 [json_name = "type"]; -inline void Account::clear_type() { - type_ = 0; + best_offer_price_ = value; } -inline ::vega::AccountType Account::_internal_type() const { - return static_cast< ::vega::AccountType >(type_); +inline void MarketData::set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_offer_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_price) } -inline ::vega::AccountType Account::type() const { - // @@protoc_insertion_point(field_get:vega.Account.type) - return _internal_type(); + +// uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; +inline void MarketData::clear_best_offer_volume() { + best_offer_volume_ = PROTOBUF_ULONGLONG(0); } -inline void Account::_internal_set_type(::vega::AccountType value) { +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_offer_volume() const { + return best_offer_volume_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_volume() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_offer_volume) + return _internal_best_offer_volume(); +} +inline void MarketData::_internal_set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - type_ = value; + best_offer_volume_ = value; } -inline void Account::set_type(::vega::AccountType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:vega.Account.type) +inline void MarketData::set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_offer_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_volume) } -// ------------------------------------------------------------------- +// uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; +inline void MarketData::clear_best_static_bid_price() { + best_static_bid_price_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_bid_price() const { + return best_static_bid_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_bid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_price) + return _internal_best_static_bid_price(); +} +inline void MarketData::_internal_set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// FinancialAmount + best_static_bid_price_ = value; +} +inline void MarketData::set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_static_bid_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_price) +} -// uint64 amount = 1 [json_name = "amount"]; -inline void FinancialAmount::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); +// uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; +inline void MarketData::clear_best_static_bid_volume() { + best_static_bid_volume_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::_internal_amount() const { - return amount_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_bid_volume() const { + return best_static_bid_volume_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::amount() const { - // @@protoc_insertion_point(field_get:vega.FinancialAmount.amount) - return _internal_amount(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_bid_volume() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_volume) + return _internal_best_static_bid_volume(); +} +inline void MarketData::_internal_set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + best_static_bid_volume_ = value; +} +inline void MarketData::set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_static_bid_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_volume) +} + +// uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; +inline void MarketData::clear_best_static_offer_price() { + best_static_offer_price_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_offer_price() const { + return best_static_offer_price_; } -inline void FinancialAmount::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_offer_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_static_offer_price) + return _internal_best_static_offer_price(); +} +inline void MarketData::_internal_set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - amount_ = value; + best_static_offer_price_ = value; } -inline void FinancialAmount::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.FinancialAmount.amount) +inline void MarketData::set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_static_offer_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_price) } -// string asset = 2 [json_name = "asset"]; -inline void FinancialAmount::clear_asset() { - asset_.ClearToEmpty(); +// uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; +inline void MarketData::clear_best_static_offer_volume() { + best_static_offer_volume_ = PROTOBUF_ULONGLONG(0); } -inline const std::string& FinancialAmount::asset() const { - // @@protoc_insertion_point(field_get:vega.FinancialAmount.asset) - return _internal_asset(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_offer_volume() const { + return best_static_offer_volume_; } -inline void FinancialAmount::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.FinancialAmount.asset) +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_offer_volume() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_static_offer_volume) + return _internal_best_static_offer_volume(); } -inline std::string* FinancialAmount::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.FinancialAmount.asset) - return _internal_mutable_asset(); +inline void MarketData::_internal_set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + best_static_offer_volume_ = value; } -inline const std::string& FinancialAmount::_internal_asset() const { - return asset_.Get(); +inline void MarketData::set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_static_offer_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_volume) } -inline void FinancialAmount::_internal_set_asset(const std::string& value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// uint64 mid_price = 10 [json_name = "midPrice"]; +inline void MarketData::clear_mid_price() { + mid_price_ = PROTOBUF_ULONGLONG(0); } -inline void FinancialAmount::set_asset(std::string&& value) { - - asset_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.FinancialAmount.asset) +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mid_price() const { + return mid_price_; } -inline void FinancialAmount::set_asset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.FinancialAmount.asset) +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.mid_price) + return _internal_mid_price(); } -inline void FinancialAmount::set_asset(const char* value, - size_t size) { +inline void MarketData::_internal_set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.FinancialAmount.asset) + mid_price_ = value; +} +inline void MarketData::set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_mid_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.mid_price) } -inline std::string* FinancialAmount::_internal_mutable_asset() { - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +// uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; +inline void MarketData::clear_static_mid_price() { + static_mid_price_ = PROTOBUF_ULONGLONG(0); } -inline std::string* FinancialAmount::release_asset() { - // @@protoc_insertion_point(field_release:vega.FinancialAmount.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_static_mid_price() const { + return static_mid_price_; } -inline void FinancialAmount::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { - - } else { - - } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.FinancialAmount.asset) +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::static_mid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.static_mid_price) + return _internal_static_mid_price(); } +inline void MarketData::_internal_set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { -// ------------------------------------------------------------------- - -// Transfer + static_mid_price_ = value; +} +inline void MarketData::set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_static_mid_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.static_mid_price) +} -// string owner = 1 [json_name = "owner"]; -inline void Transfer::clear_owner() { - owner_.ClearToEmpty(); +// string market = 12 [json_name = "market"]; +inline void MarketData::clear_market() { + market_.ClearToEmpty(); } -inline const std::string& Transfer::owner() const { - // @@protoc_insertion_point(field_get:vega.Transfer.owner) - return _internal_owner(); +inline const std::string& MarketData::market() const { + // @@protoc_insertion_point(field_get:vega.MarketData.market) + return _internal_market(); } -inline void Transfer::set_owner(const std::string& value) { - _internal_set_owner(value); - // @@protoc_insertion_point(field_set:vega.Transfer.owner) +inline void MarketData::set_market(const std::string& value) { + _internal_set_market(value); + // @@protoc_insertion_point(field_set:vega.MarketData.market) } -inline std::string* Transfer::mutable_owner() { - // @@protoc_insertion_point(field_mutable:vega.Transfer.owner) - return _internal_mutable_owner(); +inline std::string* MarketData::mutable_market() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.market) + return _internal_mutable_market(); } -inline const std::string& Transfer::_internal_owner() const { - return owner_.Get(); +inline const std::string& MarketData::_internal_market() const { + return market_.Get(); } -inline void Transfer::_internal_set_owner(const std::string& value) { +inline void MarketData::_internal_set_market(const std::string& value) { - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Transfer::set_owner(std::string&& value) { +inline void MarketData::set_market(std::string&& value) { - owner_.Set( + market_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Transfer.owner) + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.market) } -inline void Transfer::set_owner(const char* value) { +inline void MarketData::set_market(const char* value) { GOOGLE_DCHECK(value != nullptr); - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Transfer.owner) + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.market) } -inline void Transfer::set_owner(const char* value, +inline void MarketData::set_market(const char* value, size_t size) { - owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Transfer.owner) + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.market) } -inline std::string* Transfer::_internal_mutable_owner() { +inline std::string* MarketData::_internal_mutable_market() { - return owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Transfer::release_owner() { - // @@protoc_insertion_point(field_release:vega.Transfer.owner) - return owner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* MarketData::release_market() { + // @@protoc_insertion_point(field_release:vega.MarketData.market) + return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Transfer::set_allocated_owner(std::string* owner) { - if (owner != nullptr) { +inline void MarketData::set_allocated_market(std::string* market) { + if (market != nullptr) { } else { } - owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner, + market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Transfer.owner) -} - -// .vega.FinancialAmount amount = 2 [json_name = "amount"]; -inline bool Transfer::_internal_has_amount() const { - return this != internal_default_instance() && amount_ != nullptr; -} -inline bool Transfer::has_amount() const { - return _internal_has_amount(); -} -inline void Transfer::clear_amount() { - if (GetArena() == nullptr && amount_ != nullptr) { - delete amount_; - } - amount_ = nullptr; -} -inline const ::vega::FinancialAmount& Transfer::_internal_amount() const { - const ::vega::FinancialAmount* p = amount_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_FinancialAmount_default_instance_); -} -inline const ::vega::FinancialAmount& Transfer::amount() const { - // @@protoc_insertion_point(field_get:vega.Transfer.amount) - return _internal_amount(); -} -inline void Transfer::unsafe_arena_set_allocated_amount( - ::vega::FinancialAmount* amount) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amount_); - } - amount_ = amount; - if (amount) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Transfer.amount) -} -inline ::vega::FinancialAmount* Transfer::release_amount() { - - ::vega::FinancialAmount* temp = amount_; - amount_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::vega::FinancialAmount* Transfer::unsafe_arena_release_amount() { - // @@protoc_insertion_point(field_release:vega.Transfer.amount) - - ::vega::FinancialAmount* temp = amount_; - amount_ = nullptr; - return temp; + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.market) } -inline ::vega::FinancialAmount* Transfer::_internal_mutable_amount() { - if (amount_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::FinancialAmount>(GetArena()); - amount_ = p; - } - return amount_; +// int64 timestamp = 13 [json_name = "timestamp"]; +inline void MarketData::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::vega::FinancialAmount* Transfer::mutable_amount() { - // @@protoc_insertion_point(field_mutable:vega.Transfer.amount) - return _internal_mutable_amount(); +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_timestamp() const { + return timestamp_; } -inline void Transfer::set_allocated_amount(::vega::FinancialAmount* amount) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete amount_; - } - if (amount) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(amount); - if (message_arena != submessage_arena) { - amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, amount, submessage_arena); - } - - } else { +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::timestamp() const { + // @@protoc_insertion_point(field_get:vega.MarketData.timestamp) + return _internal_timestamp(); +} +inline void MarketData::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - } - amount_ = amount; - // @@protoc_insertion_point(field_set_allocated:vega.Transfer.amount) + timestamp_ = value; +} +inline void MarketData::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:vega.MarketData.timestamp) } -// .vega.TransferType type = 3 [json_name = "type"]; -inline void Transfer::clear_type() { - type_ = 0; +// uint64 open_interest = 14 [json_name = "openInterest"]; +inline void MarketData::clear_open_interest() { + open_interest_ = PROTOBUF_ULONGLONG(0); } -inline ::vega::TransferType Transfer::_internal_type() const { - return static_cast< ::vega::TransferType >(type_); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_open_interest() const { + return open_interest_; } -inline ::vega::TransferType Transfer::type() const { - // @@protoc_insertion_point(field_get:vega.Transfer.type) - return _internal_type(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::open_interest() const { + // @@protoc_insertion_point(field_get:vega.MarketData.open_interest) + return _internal_open_interest(); } -inline void Transfer::_internal_set_type(::vega::TransferType value) { +inline void MarketData::_internal_set_open_interest(::PROTOBUF_NAMESPACE_ID::uint64 value) { - type_ = value; + open_interest_ = value; } -inline void Transfer::set_type(::vega::TransferType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:vega.Transfer.type) +inline void MarketData::set_open_interest(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_open_interest(value); + // @@protoc_insertion_point(field_set:vega.MarketData.open_interest) } -// uint64 min_amount = 4 [json_name = "minAmount"]; -inline void Transfer::clear_min_amount() { - min_amount_ = PROTOBUF_ULONGLONG(0); +// int64 auction_end = 15 [json_name = "auctionEnd"]; +inline void MarketData::clear_auction_end() { + auction_end_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::_internal_min_amount() const { - return min_amount_; +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_auction_end() const { + return auction_end_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::min_amount() const { - // @@protoc_insertion_point(field_get:vega.Transfer.min_amount) - return _internal_min_amount(); +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::auction_end() const { + // @@protoc_insertion_point(field_get:vega.MarketData.auction_end) + return _internal_auction_end(); } -inline void Transfer::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::_internal_set_auction_end(::PROTOBUF_NAMESPACE_ID::int64 value) { - min_amount_ = value; + auction_end_ = value; } -inline void Transfer::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_min_amount(value); - // @@protoc_insertion_point(field_set:vega.Transfer.min_amount) +inline void MarketData::set_auction_end(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_auction_end(value); + // @@protoc_insertion_point(field_set:vega.MarketData.auction_end) } -// ------------------------------------------------------------------- - -// TransferRequest - -// repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; -inline int TransferRequest::_internal_from_account_size() const { - return from_account_.size(); +// int64 auction_start = 16 [json_name = "auctionStart"]; +inline void MarketData::clear_auction_start() { + auction_start_ = PROTOBUF_LONGLONG(0); } -inline int TransferRequest::from_account_size() const { - return _internal_from_account_size(); +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_auction_start() const { + return auction_start_; } -inline void TransferRequest::clear_from_account() { - from_account_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::auction_start() const { + // @@protoc_insertion_point(field_get:vega.MarketData.auction_start) + return _internal_auction_start(); } -inline ::vega::Account* TransferRequest::mutable_from_account(int index) { - // @@protoc_insertion_point(field_mutable:vega.TransferRequest.from_account) - return from_account_.Mutable(index); +inline void MarketData::_internal_set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value) { + + auction_start_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* -TransferRequest::mutable_from_account() { - // @@protoc_insertion_point(field_mutable_list:vega.TransferRequest.from_account) - return &from_account_; +inline void MarketData::set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_auction_start(value); + // @@protoc_insertion_point(field_set:vega.MarketData.auction_start) } -inline const ::vega::Account& TransferRequest::_internal_from_account(int index) const { - return from_account_.Get(index); + +// uint64 indicative_price = 17 [json_name = "indicativePrice"]; +inline void MarketData::clear_indicative_price() { + indicative_price_ = PROTOBUF_ULONGLONG(0); } -inline const ::vega::Account& TransferRequest::from_account(int index) const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.from_account) - return _internal_from_account(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_indicative_price() const { + return indicative_price_; } -inline ::vega::Account* TransferRequest::_internal_add_from_account() { - return from_account_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::indicative_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.indicative_price) + return _internal_indicative_price(); } -inline ::vega::Account* TransferRequest::add_from_account() { - // @@protoc_insertion_point(field_add:vega.TransferRequest.from_account) - return _internal_add_from_account(); +inline void MarketData::_internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + indicative_price_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& -TransferRequest::from_account() const { - // @@protoc_insertion_point(field_list:vega.TransferRequest.from_account) - return from_account_; +inline void MarketData::set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_indicative_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.indicative_price) } -// repeated .vega.Account to_account = 2 [json_name = "toAccount"]; -inline int TransferRequest::_internal_to_account_size() const { - return to_account_.size(); +// uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; +inline void MarketData::clear_indicative_volume() { + indicative_volume_ = PROTOBUF_ULONGLONG(0); } -inline int TransferRequest::to_account_size() const { - return _internal_to_account_size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_indicative_volume() const { + return indicative_volume_; } -inline void TransferRequest::clear_to_account() { - to_account_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::indicative_volume() const { + // @@protoc_insertion_point(field_get:vega.MarketData.indicative_volume) + return _internal_indicative_volume(); } -inline ::vega::Account* TransferRequest::mutable_to_account(int index) { - // @@protoc_insertion_point(field_mutable:vega.TransferRequest.to_account) - return to_account_.Mutable(index); +inline void MarketData::_internal_set_indicative_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + indicative_volume_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >* -TransferRequest::mutable_to_account() { - // @@protoc_insertion_point(field_mutable_list:vega.TransferRequest.to_account) - return &to_account_; +inline void MarketData::set_indicative_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_indicative_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.indicative_volume) } -inline const ::vega::Account& TransferRequest::_internal_to_account(int index) const { - return to_account_.Get(index); + +// .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; +inline void MarketData::clear_market_trading_mode() { + market_trading_mode_ = 0; } -inline const ::vega::Account& TransferRequest::to_account(int index) const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.to_account) - return _internal_to_account(index); +inline ::vega::Market_TradingMode MarketData::_internal_market_trading_mode() const { + return static_cast< ::vega::Market_TradingMode >(market_trading_mode_); } -inline ::vega::Account* TransferRequest::_internal_add_to_account() { - return to_account_.Add(); +inline ::vega::Market_TradingMode MarketData::market_trading_mode() const { + // @@protoc_insertion_point(field_get:vega.MarketData.market_trading_mode) + return _internal_market_trading_mode(); } -inline ::vega::Account* TransferRequest::add_to_account() { - // @@protoc_insertion_point(field_add:vega.TransferRequest.to_account) - return _internal_add_to_account(); +inline void MarketData::_internal_set_market_trading_mode(::vega::Market_TradingMode value) { + + market_trading_mode_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& -TransferRequest::to_account() const { - // @@protoc_insertion_point(field_list:vega.TransferRequest.to_account) - return to_account_; +inline void MarketData::set_market_trading_mode(::vega::Market_TradingMode value) { + _internal_set_market_trading_mode(value); + // @@protoc_insertion_point(field_set:vega.MarketData.market_trading_mode) } -// uint64 amount = 3 [json_name = "amount"]; -inline void TransferRequest::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); +// .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; +inline void MarketData::clear_trigger() { + trigger_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_amount() const { - return amount_; +inline ::vega::AuctionTrigger MarketData::_internal_trigger() const { + return static_cast< ::vega::AuctionTrigger >(trigger_); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::amount() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.amount) - return _internal_amount(); +inline ::vega::AuctionTrigger MarketData::trigger() const { + // @@protoc_insertion_point(field_get:vega.MarketData.trigger) + return _internal_trigger(); } -inline void TransferRequest::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::_internal_set_trigger(::vega::AuctionTrigger value) { - amount_ = value; + trigger_ = value; } -inline void TransferRequest::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.TransferRequest.amount) +inline void MarketData::set_trigger(::vega::AuctionTrigger value) { + _internal_set_trigger(value); + // @@protoc_insertion_point(field_set:vega.MarketData.trigger) } -// uint64 min_amount = 4 [json_name = "minAmount"]; -inline void TransferRequest::clear_min_amount() { - min_amount_ = PROTOBUF_ULONGLONG(0); +// .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; +inline void MarketData::clear_extension_trigger() { + extension_trigger_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_min_amount() const { - return min_amount_; +inline ::vega::AuctionTrigger MarketData::_internal_extension_trigger() const { + return static_cast< ::vega::AuctionTrigger >(extension_trigger_); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::min_amount() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.min_amount) - return _internal_min_amount(); +inline ::vega::AuctionTrigger MarketData::extension_trigger() const { + // @@protoc_insertion_point(field_get:vega.MarketData.extension_trigger) + return _internal_extension_trigger(); } -inline void TransferRequest::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::_internal_set_extension_trigger(::vega::AuctionTrigger value) { - min_amount_ = value; + extension_trigger_ = value; } -inline void TransferRequest::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_min_amount(value); - // @@protoc_insertion_point(field_set:vega.TransferRequest.min_amount) +inline void MarketData::set_extension_trigger(::vega::AuctionTrigger value) { + _internal_set_extension_trigger(value); + // @@protoc_insertion_point(field_set:vega.MarketData.extension_trigger) } -// string asset = 5 [json_name = "asset"]; -inline void TransferRequest::clear_asset() { - asset_.ClearToEmpty(); +// string target_stake = 22 [json_name = "targetStake"]; +inline void MarketData::clear_target_stake() { + target_stake_.ClearToEmpty(); } -inline const std::string& TransferRequest::asset() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.asset) - return _internal_asset(); +inline const std::string& MarketData::target_stake() const { + // @@protoc_insertion_point(field_get:vega.MarketData.target_stake) + return _internal_target_stake(); } -inline void TransferRequest::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.TransferRequest.asset) +inline void MarketData::set_target_stake(const std::string& value) { + _internal_set_target_stake(value); + // @@protoc_insertion_point(field_set:vega.MarketData.target_stake) } -inline std::string* TransferRequest::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.TransferRequest.asset) - return _internal_mutable_asset(); +inline std::string* MarketData::mutable_target_stake() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.target_stake) + return _internal_mutable_target_stake(); } -inline const std::string& TransferRequest::_internal_asset() const { - return asset_.Get(); +inline const std::string& MarketData::_internal_target_stake() const { + return target_stake_.Get(); } -inline void TransferRequest::_internal_set_asset(const std::string& value) { +inline void MarketData::_internal_set_target_stake(const std::string& value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void TransferRequest::set_asset(std::string&& value) { +inline void MarketData::set_target_stake(std::string&& value) { - asset_.Set( + target_stake_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.asset) + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.target_stake) } -inline void TransferRequest::set_asset(const char* value) { +inline void MarketData::set_target_stake(const char* value) { GOOGLE_DCHECK(value != nullptr); - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.TransferRequest.asset) + target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.target_stake) } -inline void TransferRequest::set_asset(const char* value, +inline void MarketData::set_target_stake(const char* value, size_t size) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.asset) + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.target_stake) } -inline std::string* TransferRequest::_internal_mutable_asset() { +inline std::string* MarketData::_internal_mutable_target_stake() { - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return target_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* TransferRequest::release_asset() { - // @@protoc_insertion_point(field_release:vega.TransferRequest.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* MarketData::release_target_stake() { + // @@protoc_insertion_point(field_release:vega.MarketData.target_stake) + return target_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void TransferRequest::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { +inline void MarketData::set_allocated_target_stake(std::string* target_stake) { + if (target_stake != nullptr) { } else { } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + target_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_stake, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.asset) + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.target_stake) } -// string reference = 6 [json_name = "reference"]; -inline void TransferRequest::clear_reference() { - reference_.ClearToEmpty(); +// string supplied_stake = 23 [json_name = "suppliedStake"]; +inline void MarketData::clear_supplied_stake() { + supplied_stake_.ClearToEmpty(); } -inline const std::string& TransferRequest::reference() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.reference) - return _internal_reference(); +inline const std::string& MarketData::supplied_stake() const { + // @@protoc_insertion_point(field_get:vega.MarketData.supplied_stake) + return _internal_supplied_stake(); } -inline void TransferRequest::set_reference(const std::string& value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:vega.TransferRequest.reference) +inline void MarketData::set_supplied_stake(const std::string& value) { + _internal_set_supplied_stake(value); + // @@protoc_insertion_point(field_set:vega.MarketData.supplied_stake) } -inline std::string* TransferRequest::mutable_reference() { - // @@protoc_insertion_point(field_mutable:vega.TransferRequest.reference) - return _internal_mutable_reference(); +inline std::string* MarketData::mutable_supplied_stake() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.supplied_stake) + return _internal_mutable_supplied_stake(); } -inline const std::string& TransferRequest::_internal_reference() const { - return reference_.Get(); +inline const std::string& MarketData::_internal_supplied_stake() const { + return supplied_stake_.Get(); } -inline void TransferRequest::_internal_set_reference(const std::string& value) { +inline void MarketData::_internal_set_supplied_stake(const std::string& value) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void TransferRequest::set_reference(std::string&& value) { +inline void MarketData::set_supplied_stake(std::string&& value) { - reference_.Set( + supplied_stake_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.reference) + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.supplied_stake) } -inline void TransferRequest::set_reference(const char* value) { +inline void MarketData::set_supplied_stake(const char* value) { GOOGLE_DCHECK(value != nullptr); - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.TransferRequest.reference) + supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.supplied_stake) } -inline void TransferRequest::set_reference(const char* value, +inline void MarketData::set_supplied_stake(const char* value, size_t size) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.reference) + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.supplied_stake) } -inline std::string* TransferRequest::_internal_mutable_reference() { +inline std::string* MarketData::_internal_mutable_supplied_stake() { - return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return supplied_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* TransferRequest::release_reference() { - // @@protoc_insertion_point(field_release:vega.TransferRequest.reference) - return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* MarketData::release_supplied_stake() { + // @@protoc_insertion_point(field_release:vega.MarketData.supplied_stake) + return supplied_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void TransferRequest::set_allocated_reference(std::string* reference) { - if (reference != nullptr) { +inline void MarketData::set_allocated_supplied_stake(std::string* supplied_stake) { + if (supplied_stake != nullptr) { } else { } - reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, + supplied_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), supplied_stake, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.reference) + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.supplied_stake) } -// ------------------------------------------------------------------- - -// LedgerEntry +// repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; +inline int MarketData::_internal_price_monitoring_bounds_size() const { + return price_monitoring_bounds_.size(); +} +inline int MarketData::price_monitoring_bounds_size() const { + return _internal_price_monitoring_bounds_size(); +} +inline void MarketData::clear_price_monitoring_bounds() { + price_monitoring_bounds_.Clear(); +} +inline ::vega::PriceMonitoringBounds* MarketData::mutable_price_monitoring_bounds(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketData.price_monitoring_bounds) + return price_monitoring_bounds_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceMonitoringBounds >* +MarketData::mutable_price_monitoring_bounds() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketData.price_monitoring_bounds) + return &price_monitoring_bounds_; +} +inline const ::vega::PriceMonitoringBounds& MarketData::_internal_price_monitoring_bounds(int index) const { + return price_monitoring_bounds_.Get(index); +} +inline const ::vega::PriceMonitoringBounds& MarketData::price_monitoring_bounds(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketData.price_monitoring_bounds) + return _internal_price_monitoring_bounds(index); +} +inline ::vega::PriceMonitoringBounds* MarketData::_internal_add_price_monitoring_bounds() { + return price_monitoring_bounds_.Add(); +} +inline ::vega::PriceMonitoringBounds* MarketData::add_price_monitoring_bounds() { + // @@protoc_insertion_point(field_add:vega.MarketData.price_monitoring_bounds) + return _internal_add_price_monitoring_bounds(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceMonitoringBounds >& +MarketData::price_monitoring_bounds() const { + // @@protoc_insertion_point(field_list:vega.MarketData.price_monitoring_bounds) + return price_monitoring_bounds_; +} -// string from_account = 1 [json_name = "fromAccount"]; -inline void LedgerEntry::clear_from_account() { - from_account_.ClearToEmpty(); +// string market_value_proxy = 25 [json_name = "marketValueProxy"]; +inline void MarketData::clear_market_value_proxy() { + market_value_proxy_.ClearToEmpty(); } -inline const std::string& LedgerEntry::from_account() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.from_account) - return _internal_from_account(); +inline const std::string& MarketData::market_value_proxy() const { + // @@protoc_insertion_point(field_get:vega.MarketData.market_value_proxy) + return _internal_market_value_proxy(); } -inline void LedgerEntry::set_from_account(const std::string& value) { - _internal_set_from_account(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.from_account) +inline void MarketData::set_market_value_proxy(const std::string& value) { + _internal_set_market_value_proxy(value); + // @@protoc_insertion_point(field_set:vega.MarketData.market_value_proxy) } -inline std::string* LedgerEntry::mutable_from_account() { - // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.from_account) - return _internal_mutable_from_account(); +inline std::string* MarketData::mutable_market_value_proxy() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.market_value_proxy) + return _internal_mutable_market_value_proxy(); } -inline const std::string& LedgerEntry::_internal_from_account() const { - return from_account_.Get(); +inline const std::string& MarketData::_internal_market_value_proxy() const { + return market_value_proxy_.Get(); } -inline void LedgerEntry::_internal_set_from_account(const std::string& value) { +inline void MarketData::_internal_set_market_value_proxy(const std::string& value) { - from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LedgerEntry::set_from_account(std::string&& value) { +inline void MarketData::set_market_value_proxy(std::string&& value) { - from_account_.Set( + market_value_proxy_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.from_account) + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.market_value_proxy) } -inline void LedgerEntry::set_from_account(const char* value) { +inline void MarketData::set_market_value_proxy(const char* value) { GOOGLE_DCHECK(value != nullptr); - from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.from_account) + market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.market_value_proxy) } -inline void LedgerEntry::set_from_account(const char* value, +inline void MarketData::set_market_value_proxy(const char* value, size_t size) { - from_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.from_account) + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.market_value_proxy) } -inline std::string* LedgerEntry::_internal_mutable_from_account() { +inline std::string* MarketData::_internal_mutable_market_value_proxy() { - return from_account_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return market_value_proxy_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_market_value_proxy() { + // @@protoc_insertion_point(field_release:vega.MarketData.market_value_proxy) + return market_value_proxy_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_market_value_proxy(std::string* market_value_proxy) { + if (market_value_proxy != nullptr) { + + } else { + + } + market_value_proxy_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_value_proxy, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.market_value_proxy) +} + +// repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; +inline int MarketData::_internal_liquidity_provider_fee_share_size() const { + return liquidity_provider_fee_share_.size(); +} +inline int MarketData::liquidity_provider_fee_share_size() const { + return _internal_liquidity_provider_fee_share_size(); +} +inline void MarketData::clear_liquidity_provider_fee_share() { + liquidity_provider_fee_share_.Clear(); +} +inline ::vega::LiquidityProviderFeeShare* MarketData::mutable_liquidity_provider_fee_share(int index) { + // @@protoc_insertion_point(field_mutable:vega.MarketData.liquidity_provider_fee_share) + return liquidity_provider_fee_share_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare >* +MarketData::mutable_liquidity_provider_fee_share() { + // @@protoc_insertion_point(field_mutable_list:vega.MarketData.liquidity_provider_fee_share) + return &liquidity_provider_fee_share_; +} +inline const ::vega::LiquidityProviderFeeShare& MarketData::_internal_liquidity_provider_fee_share(int index) const { + return liquidity_provider_fee_share_.Get(index); +} +inline const ::vega::LiquidityProviderFeeShare& MarketData::liquidity_provider_fee_share(int index) const { + // @@protoc_insertion_point(field_get:vega.MarketData.liquidity_provider_fee_share) + return _internal_liquidity_provider_fee_share(index); +} +inline ::vega::LiquidityProviderFeeShare* MarketData::_internal_add_liquidity_provider_fee_share() { + return liquidity_provider_fee_share_.Add(); +} +inline ::vega::LiquidityProviderFeeShare* MarketData::add_liquidity_provider_fee_share() { + // @@protoc_insertion_point(field_add:vega.MarketData.liquidity_provider_fee_share) + return _internal_add_liquidity_provider_fee_share(); } -inline std::string* LedgerEntry::release_from_account() { - // @@protoc_insertion_point(field_release:vega.LedgerEntry.from_account) - return from_account_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare >& +MarketData::liquidity_provider_fee_share() const { + // @@protoc_insertion_point(field_list:vega.MarketData.liquidity_provider_fee_share) + return liquidity_provider_fee_share_; } -inline void LedgerEntry::set_allocated_from_account(std::string* from_account) { - if (from_account != nullptr) { - } else { +// ------------------------------------------------------------------- - } - from_account_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from_account, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.from_account) -} +// LiquidityProviderFeeShare -// string to_account = 2 [json_name = "toAccount"]; -inline void LedgerEntry::clear_to_account() { - to_account_.ClearToEmpty(); +// string party = 1 [json_name = "party"]; +inline void LiquidityProviderFeeShare::clear_party() { + party_.ClearToEmpty(); } -inline const std::string& LedgerEntry::to_account() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.to_account) - return _internal_to_account(); +inline const std::string& LiquidityProviderFeeShare::party() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.party) + return _internal_party(); } -inline void LedgerEntry::set_to_account(const std::string& value) { - _internal_set_to_account(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.to_account) +inline void LiquidityProviderFeeShare::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.party) } -inline std::string* LedgerEntry::mutable_to_account() { - // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.to_account) - return _internal_mutable_to_account(); +inline std::string* LiquidityProviderFeeShare::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.party) + return _internal_mutable_party(); } -inline const std::string& LedgerEntry::_internal_to_account() const { - return to_account_.Get(); +inline const std::string& LiquidityProviderFeeShare::_internal_party() const { + return party_.Get(); } -inline void LedgerEntry::_internal_set_to_account(const std::string& value) { +inline void LiquidityProviderFeeShare::_internal_set_party(const std::string& value) { - to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LedgerEntry::set_to_account(std::string&& value) { +inline void LiquidityProviderFeeShare::set_party(std::string&& value) { - to_account_.Set( + party_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.to_account) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.party) } -inline void LedgerEntry::set_to_account(const char* value) { +inline void LiquidityProviderFeeShare::set_party(const char* value) { GOOGLE_DCHECK(value != nullptr); - to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.to_account) + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.party) } -inline void LedgerEntry::set_to_account(const char* value, +inline void LiquidityProviderFeeShare::set_party(const char* value, size_t size) { - to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.to_account) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.party) } -inline std::string* LedgerEntry::_internal_mutable_to_account() { +inline std::string* LiquidityProviderFeeShare::_internal_mutable_party() { - return to_account_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LedgerEntry::release_to_account() { - // @@protoc_insertion_point(field_release:vega.LedgerEntry.to_account) - return to_account_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProviderFeeShare::release_party() { + // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LedgerEntry::set_allocated_to_account(std::string* to_account) { - if (to_account != nullptr) { +inline void LiquidityProviderFeeShare::set_allocated_party(std::string* party) { + if (party != nullptr) { } else { } - to_account_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), to_account, + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.to_account) -} - -// uint64 amount = 3 [json_name = "amount"]; -inline void LedgerEntry::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::_internal_amount() const { - return amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::amount() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.amount) - return _internal_amount(); -} -inline void LedgerEntry::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void LedgerEntry::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.amount) + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.party) } -// string reference = 4 [json_name = "reference"]; -inline void LedgerEntry::clear_reference() { - reference_.ClearToEmpty(); +// string equity_like_share = 2 [json_name = "equityLikeShare"]; +inline void LiquidityProviderFeeShare::clear_equity_like_share() { + equity_like_share_.ClearToEmpty(); } -inline const std::string& LedgerEntry::reference() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.reference) - return _internal_reference(); +inline const std::string& LiquidityProviderFeeShare::equity_like_share() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.equity_like_share) + return _internal_equity_like_share(); } -inline void LedgerEntry::set_reference(const std::string& value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.reference) +inline void LiquidityProviderFeeShare::set_equity_like_share(const std::string& value) { + _internal_set_equity_like_share(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.equity_like_share) } -inline std::string* LedgerEntry::mutable_reference() { - // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.reference) - return _internal_mutable_reference(); +inline std::string* LiquidityProviderFeeShare::mutable_equity_like_share() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.equity_like_share) + return _internal_mutable_equity_like_share(); } -inline const std::string& LedgerEntry::_internal_reference() const { - return reference_.Get(); +inline const std::string& LiquidityProviderFeeShare::_internal_equity_like_share() const { + return equity_like_share_.Get(); } -inline void LedgerEntry::_internal_set_reference(const std::string& value) { +inline void LiquidityProviderFeeShare::_internal_set_equity_like_share(const std::string& value) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LedgerEntry::set_reference(std::string&& value) { +inline void LiquidityProviderFeeShare::set_equity_like_share(std::string&& value) { - reference_.Set( + equity_like_share_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.reference) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.equity_like_share) } -inline void LedgerEntry::set_reference(const char* value) { +inline void LiquidityProviderFeeShare::set_equity_like_share(const char* value) { GOOGLE_DCHECK(value != nullptr); - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.reference) + equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.equity_like_share) } -inline void LedgerEntry::set_reference(const char* value, +inline void LiquidityProviderFeeShare::set_equity_like_share(const char* value, size_t size) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.reference) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.equity_like_share) } -inline std::string* LedgerEntry::_internal_mutable_reference() { +inline std::string* LiquidityProviderFeeShare::_internal_mutable_equity_like_share() { - return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return equity_like_share_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LedgerEntry::release_reference() { - // @@protoc_insertion_point(field_release:vega.LedgerEntry.reference) - return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProviderFeeShare::release_equity_like_share() { + // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.equity_like_share) + return equity_like_share_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LedgerEntry::set_allocated_reference(std::string* reference) { - if (reference != nullptr) { +inline void LiquidityProviderFeeShare::set_allocated_equity_like_share(std::string* equity_like_share) { + if (equity_like_share != nullptr) { } else { } - reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, + equity_like_share_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), equity_like_share, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.reference) + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.equity_like_share) } -// string type = 5 [json_name = "type"]; -inline void LedgerEntry::clear_type() { - type_.ClearToEmpty(); +// string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; +inline void LiquidityProviderFeeShare::clear_average_entry_valuation() { + average_entry_valuation_.ClearToEmpty(); } -inline const std::string& LedgerEntry::type() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.type) - return _internal_type(); +inline const std::string& LiquidityProviderFeeShare::average_entry_valuation() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.average_entry_valuation) + return _internal_average_entry_valuation(); } -inline void LedgerEntry::set_type(const std::string& value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.type) +inline void LiquidityProviderFeeShare::set_average_entry_valuation(const std::string& value) { + _internal_set_average_entry_valuation(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.average_entry_valuation) } -inline std::string* LedgerEntry::mutable_type() { - // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.type) - return _internal_mutable_type(); +inline std::string* LiquidityProviderFeeShare::mutable_average_entry_valuation() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.average_entry_valuation) + return _internal_mutable_average_entry_valuation(); } -inline const std::string& LedgerEntry::_internal_type() const { - return type_.Get(); +inline const std::string& LiquidityProviderFeeShare::_internal_average_entry_valuation() const { + return average_entry_valuation_.Get(); } -inline void LedgerEntry::_internal_set_type(const std::string& value) { +inline void LiquidityProviderFeeShare::_internal_set_average_entry_valuation(const std::string& value) { - type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LedgerEntry::set_type(std::string&& value) { +inline void LiquidityProviderFeeShare::set_average_entry_valuation(std::string&& value) { - type_.Set( + average_entry_valuation_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.type) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.average_entry_valuation) } -inline void LedgerEntry::set_type(const char* value) { +inline void LiquidityProviderFeeShare::set_average_entry_valuation(const char* value) { GOOGLE_DCHECK(value != nullptr); - type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.type) + average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.average_entry_valuation) } -inline void LedgerEntry::set_type(const char* value, +inline void LiquidityProviderFeeShare::set_average_entry_valuation(const char* value, size_t size) { - type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.type) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.average_entry_valuation) } -inline std::string* LedgerEntry::_internal_mutable_type() { +inline std::string* LiquidityProviderFeeShare::_internal_mutable_average_entry_valuation() { - return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return average_entry_valuation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LedgerEntry::release_type() { - // @@protoc_insertion_point(field_release:vega.LedgerEntry.type) - return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProviderFeeShare::release_average_entry_valuation() { + // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.average_entry_valuation) + return average_entry_valuation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LedgerEntry::set_allocated_type(std::string* type) { - if (type != nullptr) { +inline void LiquidityProviderFeeShare::set_allocated_average_entry_valuation(std::string* average_entry_valuation) { + if (average_entry_valuation != nullptr) { } else { - } - type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.type) + } + average_entry_valuation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), average_entry_valuation, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.average_entry_valuation) +} + +// ------------------------------------------------------------------- + +// PriceMonitoringBounds + +// uint64 min_valid_price = 1 [json_name = "minValidPrice"]; +inline void PriceMonitoringBounds::clear_min_valid_price() { + min_valid_price_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_min_valid_price() const { + return min_valid_price_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::min_valid_price() const { + // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.min_valid_price) + return _internal_min_valid_price(); +} +inline void PriceMonitoringBounds::_internal_set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + min_valid_price_ = value; +} +inline void PriceMonitoringBounds::set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_min_valid_price(value); + // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.min_valid_price) } -// int64 timestamp = 6 [json_name = "timestamp"]; -inline void LedgerEntry::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); +// uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; +inline void PriceMonitoringBounds::clear_max_valid_price() { + max_valid_price_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 LedgerEntry::_internal_timestamp() const { - return timestamp_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_max_valid_price() const { + return max_valid_price_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 LedgerEntry::timestamp() const { - // @@protoc_insertion_point(field_get:vega.LedgerEntry.timestamp) - return _internal_timestamp(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::max_valid_price() const { + // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.max_valid_price) + return _internal_max_valid_price(); } -inline void LedgerEntry::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void PriceMonitoringBounds::_internal_set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - timestamp_ = value; + max_valid_price_ = value; } -inline void LedgerEntry::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:vega.LedgerEntry.timestamp) +inline void PriceMonitoringBounds::set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_max_valid_price(value); + // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.max_valid_price) } -// ------------------------------------------------------------------- - -// TransferBalance - -// .vega.Account account = 1 [json_name = "account"]; -inline bool TransferBalance::_internal_has_account() const { - return this != internal_default_instance() && account_ != nullptr; -} -inline bool TransferBalance::has_account() const { - return _internal_has_account(); +// .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; +inline bool PriceMonitoringBounds::_internal_has_trigger() const { + return this != internal_default_instance() && trigger_ != nullptr; } -inline void TransferBalance::clear_account() { - if (GetArena() == nullptr && account_ != nullptr) { - delete account_; - } - account_ = nullptr; +inline bool PriceMonitoringBounds::has_trigger() const { + return _internal_has_trigger(); } -inline const ::vega::Account& TransferBalance::_internal_account() const { - const ::vega::Account* p = account_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Account_default_instance_); +inline const ::vega::PriceMonitoringTrigger& PriceMonitoringBounds::_internal_trigger() const { + const ::vega::PriceMonitoringTrigger* p = trigger_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_PriceMonitoringTrigger_default_instance_); } -inline const ::vega::Account& TransferBalance::account() const { - // @@protoc_insertion_point(field_get:vega.TransferBalance.account) - return _internal_account(); +inline const ::vega::PriceMonitoringTrigger& PriceMonitoringBounds::trigger() const { + // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.trigger) + return _internal_trigger(); } -inline void TransferBalance::unsafe_arena_set_allocated_account( - ::vega::Account* account) { +inline void PriceMonitoringBounds::unsafe_arena_set_allocated_trigger( + ::vega::PriceMonitoringTrigger* trigger) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(account_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger_); } - account_ = account; - if (account) { + trigger_ = trigger; + if (trigger) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.TransferBalance.account) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.PriceMonitoringBounds.trigger) } -inline ::vega::Account* TransferBalance::release_account() { +inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::release_trigger() { - ::vega::Account* temp = account_; - account_ = nullptr; + ::vega::PriceMonitoringTrigger* temp = trigger_; + trigger_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::vega::Account* TransferBalance::unsafe_arena_release_account() { - // @@protoc_insertion_point(field_release:vega.TransferBalance.account) +inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::unsafe_arena_release_trigger() { + // @@protoc_insertion_point(field_release:vega.PriceMonitoringBounds.trigger) - ::vega::Account* temp = account_; - account_ = nullptr; + ::vega::PriceMonitoringTrigger* temp = trigger_; + trigger_ = nullptr; return temp; } -inline ::vega::Account* TransferBalance::_internal_mutable_account() { +inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::_internal_mutable_trigger() { - if (account_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Account>(GetArena()); - account_ = p; + if (trigger_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::PriceMonitoringTrigger>(GetArena()); + trigger_ = p; } - return account_; + return trigger_; } -inline ::vega::Account* TransferBalance::mutable_account() { - // @@protoc_insertion_point(field_mutable:vega.TransferBalance.account) - return _internal_mutable_account(); +inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::mutable_trigger() { + // @@protoc_insertion_point(field_mutable:vega.PriceMonitoringBounds.trigger) + return _internal_mutable_trigger(); } -inline void TransferBalance::set_allocated_account(::vega::Account* account) { +inline void PriceMonitoringBounds::set_allocated_trigger(::vega::PriceMonitoringTrigger* trigger) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete account_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger_); } - if (account) { + if (trigger) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(account); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger)->GetArena(); if (message_arena != submessage_arena) { - account = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, account, submessage_arena); + trigger = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, trigger, submessage_arena); } } else { } - account_ = account; - // @@protoc_insertion_point(field_set_allocated:vega.TransferBalance.account) -} - -// uint64 balance = 2 [json_name = "balance"]; -inline void TransferBalance::clear_balance() { - balance_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::_internal_balance() const { - return balance_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::balance() const { - // @@protoc_insertion_point(field_get:vega.TransferBalance.balance) - return _internal_balance(); -} -inline void TransferBalance::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - balance_ = value; -} -inline void TransferBalance::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_balance(value); - // @@protoc_insertion_point(field_set:vega.TransferBalance.balance) -} - -// ------------------------------------------------------------------- - -// TransferResponse - -// repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; -inline int TransferResponse::_internal_transfers_size() const { - return transfers_.size(); -} -inline int TransferResponse::transfers_size() const { - return _internal_transfers_size(); -} -inline void TransferResponse::clear_transfers() { - transfers_.Clear(); -} -inline ::vega::LedgerEntry* TransferResponse::mutable_transfers(int index) { - // @@protoc_insertion_point(field_mutable:vega.TransferResponse.transfers) - return transfers_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LedgerEntry >* -TransferResponse::mutable_transfers() { - // @@protoc_insertion_point(field_mutable_list:vega.TransferResponse.transfers) - return &transfers_; -} -inline const ::vega::LedgerEntry& TransferResponse::_internal_transfers(int index) const { - return transfers_.Get(index); -} -inline const ::vega::LedgerEntry& TransferResponse::transfers(int index) const { - // @@protoc_insertion_point(field_get:vega.TransferResponse.transfers) - return _internal_transfers(index); -} -inline ::vega::LedgerEntry* TransferResponse::_internal_add_transfers() { - return transfers_.Add(); -} -inline ::vega::LedgerEntry* TransferResponse::add_transfers() { - // @@protoc_insertion_point(field_add:vega.TransferResponse.transfers) - return _internal_add_transfers(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LedgerEntry >& -TransferResponse::transfers() const { - // @@protoc_insertion_point(field_list:vega.TransferResponse.transfers) - return transfers_; -} - -// repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; -inline int TransferResponse::_internal_balances_size() const { - return balances_.size(); -} -inline int TransferResponse::balances_size() const { - return _internal_balances_size(); -} -inline void TransferResponse::clear_balances() { - balances_.Clear(); -} -inline ::vega::TransferBalance* TransferResponse::mutable_balances(int index) { - // @@protoc_insertion_point(field_mutable:vega.TransferResponse.balances) - return balances_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferBalance >* -TransferResponse::mutable_balances() { - // @@protoc_insertion_point(field_mutable_list:vega.TransferResponse.balances) - return &balances_; -} -inline const ::vega::TransferBalance& TransferResponse::_internal_balances(int index) const { - return balances_.Get(index); -} -inline const ::vega::TransferBalance& TransferResponse::balances(int index) const { - // @@protoc_insertion_point(field_get:vega.TransferResponse.balances) - return _internal_balances(index); -} -inline ::vega::TransferBalance* TransferResponse::_internal_add_balances() { - return balances_.Add(); -} -inline ::vega::TransferBalance* TransferResponse::add_balances() { - // @@protoc_insertion_point(field_add:vega.TransferResponse.balances) - return _internal_add_balances(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::TransferBalance >& -TransferResponse::balances() const { - // @@protoc_insertion_point(field_list:vega.TransferResponse.balances) - return balances_; -} - -// ------------------------------------------------------------------- - -// MarginLevels - -// uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; -inline void MarginLevels::clear_maintenance_margin() { - maintenance_margin_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_maintenance_margin() const { - return maintenance_margin_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::maintenance_margin() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.maintenance_margin) - return _internal_maintenance_margin(); -} -inline void MarginLevels::_internal_set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - maintenance_margin_ = value; -} -inline void MarginLevels::set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_maintenance_margin(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.maintenance_margin) + trigger_ = trigger; + // @@protoc_insertion_point(field_set_allocated:vega.PriceMonitoringBounds.trigger) } -// uint64 search_level = 2 [json_name = "searchLevel"]; -inline void MarginLevels::clear_search_level() { - search_level_ = PROTOBUF_ULONGLONG(0); +// double reference_price = 4 [json_name = "referencePrice"]; +inline void PriceMonitoringBounds::clear_reference_price() { + reference_price_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_search_level() const { - return search_level_; +inline double PriceMonitoringBounds::_internal_reference_price() const { + return reference_price_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::search_level() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.search_level) - return _internal_search_level(); +inline double PriceMonitoringBounds::reference_price() const { + // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.reference_price) + return _internal_reference_price(); } -inline void MarginLevels::_internal_set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PriceMonitoringBounds::_internal_set_reference_price(double value) { - search_level_ = value; + reference_price_ = value; } -inline void MarginLevels::set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_search_level(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.search_level) +inline void PriceMonitoringBounds::set_reference_price(double value) { + _internal_set_reference_price(value); + // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.reference_price) } -// uint64 initial_margin = 3 [json_name = "initialMargin"]; -inline void MarginLevels::clear_initial_margin() { - initial_margin_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_initial_margin() const { - return initial_margin_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::initial_margin() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.initial_margin) - return _internal_initial_margin(); -} -inline void MarginLevels::_internal_set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { +// ------------------------------------------------------------------- - initial_margin_ = value; -} -inline void MarginLevels::set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_initial_margin(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.initial_margin) -} +// ErrorDetail -// uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; -inline void MarginLevels::clear_collateral_release_level() { - collateral_release_level_ = PROTOBUF_ULONGLONG(0); +// int32 code = 1 [json_name = "code"]; +inline void ErrorDetail::clear_code() { + code_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_collateral_release_level() const { - return collateral_release_level_; +inline ::PROTOBUF_NAMESPACE_ID::int32 ErrorDetail::_internal_code() const { + return code_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::collateral_release_level() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.collateral_release_level) - return _internal_collateral_release_level(); +inline ::PROTOBUF_NAMESPACE_ID::int32 ErrorDetail::code() const { + // @@protoc_insertion_point(field_get:vega.ErrorDetail.code) + return _internal_code(); } -inline void MarginLevels::_internal_set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void ErrorDetail::_internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { - collateral_release_level_ = value; + code_ = value; } -inline void MarginLevels::set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_collateral_release_level(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.collateral_release_level) +inline void ErrorDetail::set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_code(value); + // @@protoc_insertion_point(field_set:vega.ErrorDetail.code) } -// string party_id = 5 [json_name = "partyId"]; -inline void MarginLevels::clear_party_id() { - party_id_.ClearToEmpty(); +// string message = 2 [json_name = "message"]; +inline void ErrorDetail::clear_message() { + message_.ClearToEmpty(); } -inline const std::string& MarginLevels::party_id() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.party_id) - return _internal_party_id(); +inline const std::string& ErrorDetail::message() const { + // @@protoc_insertion_point(field_get:vega.ErrorDetail.message) + return _internal_message(); } -inline void MarginLevels::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.party_id) +inline void ErrorDetail::set_message(const std::string& value) { + _internal_set_message(value); + // @@protoc_insertion_point(field_set:vega.ErrorDetail.message) } -inline std::string* MarginLevels::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.MarginLevels.party_id) - return _internal_mutable_party_id(); +inline std::string* ErrorDetail::mutable_message() { + // @@protoc_insertion_point(field_mutable:vega.ErrorDetail.message) + return _internal_mutable_message(); } -inline const std::string& MarginLevels::_internal_party_id() const { - return party_id_.Get(); +inline const std::string& ErrorDetail::_internal_message() const { + return message_.Get(); } -inline void MarginLevels::_internal_set_party_id(const std::string& value) { +inline void ErrorDetail::_internal_set_message(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarginLevels::set_party_id(std::string&& value) { +inline void ErrorDetail::set_message(std::string&& value) { - party_id_.Set( + message_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ErrorDetail.message) } -inline void MarginLevels::set_party_id(const char* value) { +inline void ErrorDetail::set_message(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarginLevels.party_id) + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ErrorDetail.message) } -inline void MarginLevels::set_party_id(const char* value, +inline void ErrorDetail::set_message(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.ErrorDetail.message) } -inline std::string* MarginLevels::_internal_mutable_party_id() { +inline std::string* ErrorDetail::_internal_mutable_message() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarginLevels::release_party_id() { - // @@protoc_insertion_point(field_release:vega.MarginLevels.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ErrorDetail::release_message() { + // @@protoc_insertion_point(field_release:vega.ErrorDetail.message) + return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarginLevels::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void ErrorDetail::set_allocated_message(std::string* message) { + if (message != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.party_id) + // @@protoc_insertion_point(field_set_allocated:vega.ErrorDetail.message) } -// string market_id = 6 [json_name = "marketId"]; -inline void MarginLevels::clear_market_id() { - market_id_.ClearToEmpty(); +// string inner = 3 [json_name = "inner"]; +inline void ErrorDetail::clear_inner() { + inner_.ClearToEmpty(); } -inline const std::string& MarginLevels::market_id() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.market_id) - return _internal_market_id(); +inline const std::string& ErrorDetail::inner() const { + // @@protoc_insertion_point(field_get:vega.ErrorDetail.inner) + return _internal_inner(); } -inline void MarginLevels::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.market_id) +inline void ErrorDetail::set_inner(const std::string& value) { + _internal_set_inner(value); + // @@protoc_insertion_point(field_set:vega.ErrorDetail.inner) } -inline std::string* MarginLevels::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.MarginLevels.market_id) - return _internal_mutable_market_id(); +inline std::string* ErrorDetail::mutable_inner() { + // @@protoc_insertion_point(field_mutable:vega.ErrorDetail.inner) + return _internal_mutable_inner(); } -inline const std::string& MarginLevels::_internal_market_id() const { - return market_id_.Get(); +inline const std::string& ErrorDetail::_internal_inner() const { + return inner_.Get(); } -inline void MarginLevels::_internal_set_market_id(const std::string& value) { +inline void ErrorDetail::_internal_set_inner(const std::string& value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarginLevels::set_market_id(std::string&& value) { +inline void ErrorDetail::set_inner(std::string&& value) { - market_id_.Set( + inner_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.market_id) + // @@protoc_insertion_point(field_set_rvalue:vega.ErrorDetail.inner) } -inline void MarginLevels::set_market_id(const char* value) { +inline void ErrorDetail::set_inner(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarginLevels.market_id) + inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.ErrorDetail.inner) } -inline void MarginLevels::set_market_id(const char* value, +inline void ErrorDetail::set_inner(const char* value, size_t size) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.market_id) + // @@protoc_insertion_point(field_set_pointer:vega.ErrorDetail.inner) } -inline std::string* MarginLevels::_internal_mutable_market_id() { +inline std::string* ErrorDetail::_internal_mutable_inner() { - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return inner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarginLevels::release_market_id() { - // @@protoc_insertion_point(field_release:vega.MarginLevels.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ErrorDetail::release_inner() { + // @@protoc_insertion_point(field_release:vega.ErrorDetail.inner) + return inner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarginLevels::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { +inline void ErrorDetail::set_allocated_inner(std::string* inner) { + if (inner != nullptr) { } else { } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + inner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), inner, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.market_id) + // @@protoc_insertion_point(field_set_allocated:vega.ErrorDetail.inner) } -// string asset = 7 [json_name = "asset"]; -inline void MarginLevels::clear_asset() { - asset_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// NetworkParameter + +// string key = 1 [json_name = "key"]; +inline void NetworkParameter::clear_key() { + key_.ClearToEmpty(); } -inline const std::string& MarginLevels::asset() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.asset) - return _internal_asset(); +inline const std::string& NetworkParameter::key() const { + // @@protoc_insertion_point(field_get:vega.NetworkParameter.key) + return _internal_key(); } -inline void MarginLevels::set_asset(const std::string& value) { - _internal_set_asset(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.asset) +inline void NetworkParameter::set_key(const std::string& value) { + _internal_set_key(value); + // @@protoc_insertion_point(field_set:vega.NetworkParameter.key) } -inline std::string* MarginLevels::mutable_asset() { - // @@protoc_insertion_point(field_mutable:vega.MarginLevels.asset) - return _internal_mutable_asset(); +inline std::string* NetworkParameter::mutable_key() { + // @@protoc_insertion_point(field_mutable:vega.NetworkParameter.key) + return _internal_mutable_key(); } -inline const std::string& MarginLevels::_internal_asset() const { - return asset_.Get(); +inline const std::string& NetworkParameter::_internal_key() const { + return key_.Get(); } -inline void MarginLevels::_internal_set_asset(const std::string& value) { +inline void NetworkParameter::_internal_set_key(const std::string& value) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarginLevels::set_asset(std::string&& value) { +inline void NetworkParameter::set_key(std::string&& value) { - asset_.Set( + key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.asset) + // @@protoc_insertion_point(field_set_rvalue:vega.NetworkParameter.key) } -inline void MarginLevels::set_asset(const char* value) { +inline void NetworkParameter::set_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarginLevels.asset) + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.NetworkParameter.key) } -inline void MarginLevels::set_asset(const char* value, +inline void NetworkParameter::set_key(const char* value, size_t size) { - asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.asset) + // @@protoc_insertion_point(field_set_pointer:vega.NetworkParameter.key) } -inline std::string* MarginLevels::_internal_mutable_asset() { +inline std::string* NetworkParameter::_internal_mutable_key() { - return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarginLevels::release_asset() { - // @@protoc_insertion_point(field_release:vega.MarginLevels.asset) - return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* NetworkParameter::release_key() { + // @@protoc_insertion_point(field_release:vega.NetworkParameter.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarginLevels::set_allocated_asset(std::string* asset) { - if (asset != nullptr) { +inline void NetworkParameter::set_allocated_key(std::string* key) { + if (key != nullptr) { } else { } - asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.asset) + // @@protoc_insertion_point(field_set_allocated:vega.NetworkParameter.key) } -// int64 timestamp = 8 [json_name = "timestamp"]; -inline void MarginLevels::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); +// string value = 2 [json_name = "value"]; +inline void NetworkParameter::clear_value() { + value_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarginLevels::_internal_timestamp() const { - return timestamp_; +inline const std::string& NetworkParameter::value() const { + // @@protoc_insertion_point(field_get:vega.NetworkParameter.value) + return _internal_value(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarginLevels::timestamp() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.timestamp) - return _internal_timestamp(); +inline void NetworkParameter::set_value(const std::string& value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:vega.NetworkParameter.value) } -inline void MarginLevels::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - - timestamp_ = value; +inline std::string* NetworkParameter::mutable_value() { + // @@protoc_insertion_point(field_mutable:vega.NetworkParameter.value) + return _internal_mutable_value(); } -inline void MarginLevels::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:vega.MarginLevels.timestamp) +inline const std::string& NetworkParameter::_internal_value() const { + return value_.Get(); } +inline void NetworkParameter::_internal_set_value(const std::string& value) { -// ------------------------------------------------------------------- - -// MarketData - -// uint64 mark_price = 1 [json_name = "markPrice"]; -inline void MarketData::clear_mark_price() { - mark_price_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mark_price() const { - return mark_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mark_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.mark_price) - return _internal_mark_price(); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::_internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void NetworkParameter::set_value(std::string&& value) { - mark_price_ = value; -} -inline void MarketData::set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_mark_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.mark_price) + value_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.NetworkParameter.value) } +inline void NetworkParameter::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; -inline void MarketData::clear_best_bid_price() { - best_bid_price_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_bid_price() const { - return best_bid_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_bid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_price) - return _internal_best_bid_price(); + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.NetworkParameter.value) } -inline void MarketData::_internal_set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void NetworkParameter::set_value(const char* value, + size_t size) { - best_bid_price_ = value; -} -inline void MarketData::set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_bid_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_price) + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.NetworkParameter.value) } +inline std::string* NetworkParameter::_internal_mutable_value() { -// uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; -inline void MarketData::clear_best_bid_volume() { - best_bid_volume_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_bid_volume() const { - return best_bid_volume_; + return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_bid_volume() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_volume) - return _internal_best_bid_volume(); +inline std::string* NetworkParameter::release_value() { + // @@protoc_insertion_point(field_release:vega.NetworkParameter.value) + return value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::_internal_set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void NetworkParameter::set_allocated_value(std::string* value) { + if (value != nullptr) { - best_bid_volume_ = value; -} -inline void MarketData::set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_bid_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_volume) + } else { + + } + value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.NetworkParameter.value) } -// uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; -inline void MarketData::clear_best_offer_price() { - best_offer_price_ = PROTOBUF_ULONGLONG(0); +// ------------------------------------------------------------------- + +// LiquidityOrder + +// .vega.PeggedReference reference = 1 [json_name = "reference"]; +inline void LiquidityOrder::clear_reference() { + reference_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_offer_price() const { - return best_offer_price_; +inline ::vega::PeggedReference LiquidityOrder::_internal_reference() const { + return static_cast< ::vega::PeggedReference >(reference_); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_offer_price) - return _internal_best_offer_price(); +inline ::vega::PeggedReference LiquidityOrder::reference() const { + // @@protoc_insertion_point(field_get:vega.LiquidityOrder.reference) + return _internal_reference(); } -inline void MarketData::_internal_set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityOrder::_internal_set_reference(::vega::PeggedReference value) { - best_offer_price_ = value; + reference_ = value; } -inline void MarketData::set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_offer_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_price) +inline void LiquidityOrder::set_reference(::vega::PeggedReference value) { + _internal_set_reference(value); + // @@protoc_insertion_point(field_set:vega.LiquidityOrder.reference) } -// uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; -inline void MarketData::clear_best_offer_volume() { - best_offer_volume_ = PROTOBUF_ULONGLONG(0); +// uint32 proportion = 2 [json_name = "proportion"]; +inline void LiquidityOrder::clear_proportion() { + proportion_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_offer_volume() const { - return best_offer_volume_; +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiquidityOrder::_internal_proportion() const { + return proportion_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_volume() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_offer_volume) - return _internal_best_offer_volume(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiquidityOrder::proportion() const { + // @@protoc_insertion_point(field_get:vega.LiquidityOrder.proportion) + return _internal_proportion(); } -inline void MarketData::_internal_set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityOrder::_internal_set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value) { - best_offer_volume_ = value; + proportion_ = value; } -inline void MarketData::set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_offer_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_volume) +inline void LiquidityOrder::set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_proportion(value); + // @@protoc_insertion_point(field_set:vega.LiquidityOrder.proportion) } -// uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; -inline void MarketData::clear_best_static_bid_price() { - best_static_bid_price_ = PROTOBUF_ULONGLONG(0); +// int64 offset = 3 [json_name = "offset"]; +inline void LiquidityOrder::clear_offset() { + offset_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_bid_price() const { - return best_static_bid_price_; +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityOrder::_internal_offset() const { + return offset_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_bid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_price) - return _internal_best_static_bid_price(); +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityOrder::offset() const { + // @@protoc_insertion_point(field_get:vega.LiquidityOrder.offset) + return _internal_offset(); } -inline void MarketData::_internal_set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityOrder::_internal_set_offset(::PROTOBUF_NAMESPACE_ID::int64 value) { - best_static_bid_price_ = value; + offset_ = value; } -inline void MarketData::set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_static_bid_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_price) +inline void LiquidityOrder::set_offset(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_offset(value); + // @@protoc_insertion_point(field_set:vega.LiquidityOrder.offset) } -// uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; -inline void MarketData::clear_best_static_bid_volume() { - best_static_bid_volume_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_bid_volume() const { - return best_static_bid_volume_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_bid_volume() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_volume) - return _internal_best_static_bid_volume(); -} -inline void MarketData::_internal_set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { +// ------------------------------------------------------------------- - best_static_bid_volume_ = value; +// LiquidityOrderReference + +// string order_id = 1 [json_name = "orderId"]; +inline void LiquidityOrderReference::clear_order_id() { + order_id_.ClearToEmpty(); } -inline void MarketData::set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_static_bid_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_volume) +inline const std::string& LiquidityOrderReference::order_id() const { + // @@protoc_insertion_point(field_get:vega.LiquidityOrderReference.order_id) + return _internal_order_id(); } - -// uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; -inline void MarketData::clear_best_static_offer_price() { - best_static_offer_price_ = PROTOBUF_ULONGLONG(0); +inline void LiquidityOrderReference::set_order_id(const std::string& value) { + _internal_set_order_id(value); + // @@protoc_insertion_point(field_set:vega.LiquidityOrderReference.order_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_offer_price() const { - return best_static_offer_price_; +inline std::string* LiquidityOrderReference::mutable_order_id() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityOrderReference.order_id) + return _internal_mutable_order_id(); +} +inline const std::string& LiquidityOrderReference::_internal_order_id() const { + return order_id_.Get(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_offer_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_static_offer_price) - return _internal_best_static_offer_price(); +inline void LiquidityOrderReference::_internal_set_order_id(const std::string& value) { + + order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::_internal_set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityOrderReference::set_order_id(std::string&& value) { - best_static_offer_price_ = value; + order_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityOrderReference.order_id) } -inline void MarketData::set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_static_offer_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_price) +inline void LiquidityOrderReference::set_order_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityOrderReference.order_id) } +inline void LiquidityOrderReference::set_order_id(const char* value, + size_t size) { -// uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; -inline void MarketData::clear_best_static_offer_volume() { - best_static_offer_volume_ = PROTOBUF_ULONGLONG(0); + order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityOrderReference.order_id) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_offer_volume() const { - return best_static_offer_volume_; +inline std::string* LiquidityOrderReference::_internal_mutable_order_id() { + + return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_offer_volume() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_static_offer_volume) - return _internal_best_static_offer_volume(); +inline std::string* LiquidityOrderReference::release_order_id() { + // @@protoc_insertion_point(field_release:vega.LiquidityOrderReference.order_id) + return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::_internal_set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityOrderReference::set_allocated_order_id(std::string* order_id) { + if (order_id != nullptr) { - best_static_offer_volume_ = value; -} -inline void MarketData::set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_static_offer_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_volume) + } else { + + } + order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityOrderReference.order_id) } -// uint64 mid_price = 10 [json_name = "midPrice"]; -inline void MarketData::clear_mid_price() { - mid_price_ = PROTOBUF_ULONGLONG(0); +// .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; +inline bool LiquidityOrderReference::_internal_has_liquidity_order() const { + return this != internal_default_instance() && liquidity_order_ != nullptr; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mid_price() const { - return mid_price_; +inline bool LiquidityOrderReference::has_liquidity_order() const { + return _internal_has_liquidity_order(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.mid_price) - return _internal_mid_price(); +inline void LiquidityOrderReference::clear_liquidity_order() { + if (GetArena() == nullptr && liquidity_order_ != nullptr) { + delete liquidity_order_; + } + liquidity_order_ = nullptr; } -inline void MarketData::_internal_set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - mid_price_ = value; +inline const ::vega::LiquidityOrder& LiquidityOrderReference::_internal_liquidity_order() const { + const ::vega::LiquidityOrder* p = liquidity_order_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_LiquidityOrder_default_instance_); } -inline void MarketData::set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_mid_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.mid_price) +inline const ::vega::LiquidityOrder& LiquidityOrderReference::liquidity_order() const { + // @@protoc_insertion_point(field_get:vega.LiquidityOrderReference.liquidity_order) + return _internal_liquidity_order(); } +inline void LiquidityOrderReference::unsafe_arena_set_allocated_liquidity_order( + ::vega::LiquidityOrder* liquidity_order) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(liquidity_order_); + } + liquidity_order_ = liquidity_order; + if (liquidity_order) { -// uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; -inline void MarketData::clear_static_mid_price() { - static_mid_price_ = PROTOBUF_ULONGLONG(0); + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.LiquidityOrderReference.liquidity_order) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_static_mid_price() const { - return static_mid_price_; +inline ::vega::LiquidityOrder* LiquidityOrderReference::release_liquidity_order() { + + ::vega::LiquidityOrder* temp = liquidity_order_; + liquidity_order_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::static_mid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.static_mid_price) - return _internal_static_mid_price(); +inline ::vega::LiquidityOrder* LiquidityOrderReference::unsafe_arena_release_liquidity_order() { + // @@protoc_insertion_point(field_release:vega.LiquidityOrderReference.liquidity_order) + + ::vega::LiquidityOrder* temp = liquidity_order_; + liquidity_order_ = nullptr; + return temp; } -inline void MarketData::_internal_set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline ::vega::LiquidityOrder* LiquidityOrderReference::_internal_mutable_liquidity_order() { - static_mid_price_ = value; + if (liquidity_order_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::LiquidityOrder>(GetArena()); + liquidity_order_ = p; + } + return liquidity_order_; } -inline void MarketData::set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_static_mid_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.static_mid_price) +inline ::vega::LiquidityOrder* LiquidityOrderReference::mutable_liquidity_order() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityOrderReference.liquidity_order) + return _internal_mutable_liquidity_order(); } +inline void LiquidityOrderReference::set_allocated_liquidity_order(::vega::LiquidityOrder* liquidity_order) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete liquidity_order_; + } + if (liquidity_order) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(liquidity_order); + if (message_arena != submessage_arena) { + liquidity_order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, liquidity_order, submessage_arena); + } -// string market = 12 [json_name = "market"]; -inline void MarketData::clear_market() { - market_.ClearToEmpty(); + } else { + + } + liquidity_order_ = liquidity_order; + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityOrderReference.liquidity_order) } -inline const std::string& MarketData::market() const { - // @@protoc_insertion_point(field_get:vega.MarketData.market) - return _internal_market(); + +// ------------------------------------------------------------------- + +// LiquidityProvision + +// string id = 1 [json_name = "id"]; +inline void LiquidityProvision::clear_id() { + id_.ClearToEmpty(); } -inline void MarketData::set_market(const std::string& value) { - _internal_set_market(value); - // @@protoc_insertion_point(field_set:vega.MarketData.market) +inline const std::string& LiquidityProvision::id() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.id) + return _internal_id(); } -inline std::string* MarketData::mutable_market() { - // @@protoc_insertion_point(field_mutable:vega.MarketData.market) - return _internal_mutable_market(); +inline void LiquidityProvision::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.id) } -inline const std::string& MarketData::_internal_market() const { - return market_.Get(); +inline std::string* LiquidityProvision::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.id) + return _internal_mutable_id(); } -inline void MarketData::_internal_set_market(const std::string& value) { +inline const std::string& LiquidityProvision::_internal_id() const { + return id_.Get(); +} +inline void LiquidityProvision::_internal_set_id(const std::string& value) { - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::set_market(std::string&& value) { +inline void LiquidityProvision::set_id(std::string&& value) { - market_.Set( + id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.market) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.id) } -inline void MarketData::set_market(const char* value) { +inline void LiquidityProvision::set_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketData.market) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.id) } -inline void MarketData::set_market(const char* value, +inline void LiquidityProvision::set_id(const char* value, size_t size) { - market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketData.market) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.id) } -inline std::string* MarketData::_internal_mutable_market() { +inline std::string* LiquidityProvision::_internal_mutable_id() { - return market_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketData::release_market() { - // @@protoc_insertion_point(field_release:vega.MarketData.market) - return market_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProvision::release_id() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::set_allocated_market(std::string* market) { - if (market != nullptr) { +inline void LiquidityProvision::set_allocated_id(std::string* id) { + if (id != nullptr) { } else { } - market_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market, + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketData.market) + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.id) } -// int64 timestamp = 13 [json_name = "timestamp"]; -inline void MarketData::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_timestamp() const { - return timestamp_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::timestamp() const { - // @@protoc_insertion_point(field_get:vega.MarketData.timestamp) - return _internal_timestamp(); +// string party_id = 2 [json_name = "partyId"]; +inline void LiquidityProvision::clear_party_id() { + party_id_.ClearToEmpty(); } -inline void MarketData::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - - timestamp_ = value; +inline const std::string& LiquidityProvision::party_id() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.party_id) + return _internal_party_id(); } -inline void MarketData::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:vega.MarketData.timestamp) +inline void LiquidityProvision::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.party_id) } - -// uint64 open_interest = 14 [json_name = "openInterest"]; -inline void MarketData::clear_open_interest() { - open_interest_ = PROTOBUF_ULONGLONG(0); +inline std::string* LiquidityProvision::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.party_id) + return _internal_mutable_party_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_open_interest() const { - return open_interest_; +inline const std::string& LiquidityProvision::_internal_party_id() const { + return party_id_.Get(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::open_interest() const { - // @@protoc_insertion_point(field_get:vega.MarketData.open_interest) - return _internal_open_interest(); +inline void LiquidityProvision::_internal_set_party_id(const std::string& value) { + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::_internal_set_open_interest(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityProvision::set_party_id(std::string&& value) { - open_interest_ = value; + party_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.party_id) } -inline void MarketData::set_open_interest(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_open_interest(value); - // @@protoc_insertion_point(field_set:vega.MarketData.open_interest) +inline void LiquidityProvision::set_party_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.party_id) } +inline void LiquidityProvision::set_party_id(const char* value, + size_t size) { -// int64 auction_end = 15 [json_name = "auctionEnd"]; -inline void MarketData::clear_auction_end() { - auction_end_ = PROTOBUF_LONGLONG(0); + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.party_id) } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_auction_end() const { - return auction_end_; +inline std::string* LiquidityProvision::_internal_mutable_party_id() { + + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::auction_end() const { - // @@protoc_insertion_point(field_get:vega.MarketData.auction_end) - return _internal_auction_end(); +inline std::string* LiquidityProvision::release_party_id() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::_internal_set_auction_end(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void LiquidityProvision::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { - auction_end_ = value; -} -inline void MarketData::set_auction_end(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_auction_end(value); - // @@protoc_insertion_point(field_set:vega.MarketData.auction_end) + } else { + + } + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.party_id) } -// int64 auction_start = 16 [json_name = "auctionStart"]; -inline void MarketData::clear_auction_start() { - auction_start_ = PROTOBUF_LONGLONG(0); +// int64 created_at = 3 [json_name = "createdAt"]; +inline void LiquidityProvision::clear_created_at() { + created_at_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::_internal_auction_start() const { - return auction_start_; +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::_internal_created_at() const { + return created_at_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 MarketData::auction_start() const { - // @@protoc_insertion_point(field_get:vega.MarketData.auction_start) - return _internal_auction_start(); +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::created_at() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.created_at) + return _internal_created_at(); } -inline void MarketData::_internal_set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void LiquidityProvision::_internal_set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - auction_start_ = value; + created_at_ = value; } -inline void MarketData::set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_auction_start(value); - // @@protoc_insertion_point(field_set:vega.MarketData.auction_start) +inline void LiquidityProvision::set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_created_at(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.created_at) } -// uint64 indicative_price = 17 [json_name = "indicativePrice"]; -inline void MarketData::clear_indicative_price() { - indicative_price_ = PROTOBUF_ULONGLONG(0); +// int64 updated_at = 4 [json_name = "updatedAt"]; +inline void LiquidityProvision::clear_updated_at() { + updated_at_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_indicative_price() const { - return indicative_price_; +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::_internal_updated_at() const { + return updated_at_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::indicative_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.indicative_price) - return _internal_indicative_price(); +inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::updated_at() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.updated_at) + return _internal_updated_at(); } -inline void MarketData::_internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityProvision::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - indicative_price_ = value; + updated_at_ = value; } -inline void MarketData::set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_indicative_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.indicative_price) +inline void LiquidityProvision::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_updated_at(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.updated_at) } -// uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; -inline void MarketData::clear_indicative_volume() { - indicative_volume_ = PROTOBUF_ULONGLONG(0); +// string market_id = 5 [json_name = "marketId", (.validator.field) = { +inline void LiquidityProvision::clear_market_id() { + market_id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_indicative_volume() const { - return indicative_volume_; +inline const std::string& LiquidityProvision::market_id() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.market_id) + return _internal_market_id(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::indicative_volume() const { - // @@protoc_insertion_point(field_get:vega.MarketData.indicative_volume) - return _internal_indicative_volume(); +inline void LiquidityProvision::set_market_id(const std::string& value) { + _internal_set_market_id(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.market_id) } -inline void MarketData::_internal_set_indicative_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - indicative_volume_ = value; +inline std::string* LiquidityProvision::mutable_market_id() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.market_id) + return _internal_mutable_market_id(); } -inline void MarketData::set_indicative_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_indicative_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.indicative_volume) +inline const std::string& LiquidityProvision::_internal_market_id() const { + return market_id_.Get(); } +inline void LiquidityProvision::_internal_set_market_id(const std::string& value) { -// .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; -inline void MarketData::clear_market_trading_mode() { - market_trading_mode_ = 0; -} -inline ::vega::Market_TradingMode MarketData::_internal_market_trading_mode() const { - return static_cast< ::vega::Market_TradingMode >(market_trading_mode_); -} -inline ::vega::Market_TradingMode MarketData::market_trading_mode() const { - // @@protoc_insertion_point(field_get:vega.MarketData.market_trading_mode) - return _internal_market_trading_mode(); + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::_internal_set_market_trading_mode(::vega::Market_TradingMode value) { +inline void LiquidityProvision::set_market_id(std::string&& value) { - market_trading_mode_ = value; + market_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.market_id) } -inline void MarketData::set_market_trading_mode(::vega::Market_TradingMode value) { - _internal_set_market_trading_mode(value); - // @@protoc_insertion_point(field_set:vega.MarketData.market_trading_mode) +inline void LiquidityProvision::set_market_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.market_id) } +inline void LiquidityProvision::set_market_id(const char* value, + size_t size) { -// .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; -inline void MarketData::clear_trigger() { - trigger_ = 0; + market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.market_id) } -inline ::vega::AuctionTrigger MarketData::_internal_trigger() const { - return static_cast< ::vega::AuctionTrigger >(trigger_); +inline std::string* LiquidityProvision::_internal_mutable_market_id() { + + return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::AuctionTrigger MarketData::trigger() const { - // @@protoc_insertion_point(field_get:vega.MarketData.trigger) - return _internal_trigger(); +inline std::string* LiquidityProvision::release_market_id() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.market_id) + return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::_internal_set_trigger(::vega::AuctionTrigger value) { +inline void LiquidityProvision::set_allocated_market_id(std::string* market_id) { + if (market_id != nullptr) { - trigger_ = value; -} -inline void MarketData::set_trigger(::vega::AuctionTrigger value) { - _internal_set_trigger(value); - // @@protoc_insertion_point(field_set:vega.MarketData.trigger) + } else { + + } + market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.market_id) } -// .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; -inline void MarketData::clear_extension_trigger() { - extension_trigger_ = 0; +// uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; +inline void LiquidityProvision::clear_commitment_amount() { + commitment_amount_ = PROTOBUF_ULONGLONG(0); } -inline ::vega::AuctionTrigger MarketData::_internal_extension_trigger() const { - return static_cast< ::vega::AuctionTrigger >(extension_trigger_); +inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::_internal_commitment_amount() const { + return commitment_amount_; } -inline ::vega::AuctionTrigger MarketData::extension_trigger() const { - // @@protoc_insertion_point(field_get:vega.MarketData.extension_trigger) - return _internal_extension_trigger(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::commitment_amount() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.commitment_amount) + return _internal_commitment_amount(); } -inline void MarketData::_internal_set_extension_trigger(::vega::AuctionTrigger value) { +inline void LiquidityProvision::_internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - extension_trigger_ = value; + commitment_amount_ = value; } -inline void MarketData::set_extension_trigger(::vega::AuctionTrigger value) { - _internal_set_extension_trigger(value); - // @@protoc_insertion_point(field_set:vega.MarketData.extension_trigger) +inline void LiquidityProvision::set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_commitment_amount(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.commitment_amount) } -// string target_stake = 22 [json_name = "targetStake"]; -inline void MarketData::clear_target_stake() { - target_stake_.ClearToEmpty(); +// string fee = 7 [json_name = "fee"]; +inline void LiquidityProvision::clear_fee() { + fee_.ClearToEmpty(); } -inline const std::string& MarketData::target_stake() const { - // @@protoc_insertion_point(field_get:vega.MarketData.target_stake) - return _internal_target_stake(); +inline const std::string& LiquidityProvision::fee() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.fee) + return _internal_fee(); } -inline void MarketData::set_target_stake(const std::string& value) { - _internal_set_target_stake(value); - // @@protoc_insertion_point(field_set:vega.MarketData.target_stake) +inline void LiquidityProvision::set_fee(const std::string& value) { + _internal_set_fee(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.fee) } -inline std::string* MarketData::mutable_target_stake() { - // @@protoc_insertion_point(field_mutable:vega.MarketData.target_stake) - return _internal_mutable_target_stake(); +inline std::string* LiquidityProvision::mutable_fee() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.fee) + return _internal_mutable_fee(); } -inline const std::string& MarketData::_internal_target_stake() const { - return target_stake_.Get(); +inline const std::string& LiquidityProvision::_internal_fee() const { + return fee_.Get(); } -inline void MarketData::_internal_set_target_stake(const std::string& value) { +inline void LiquidityProvision::_internal_set_fee(const std::string& value) { - target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::set_target_stake(std::string&& value) { +inline void LiquidityProvision::set_fee(std::string&& value) { - target_stake_.Set( + fee_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.target_stake) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.fee) } -inline void MarketData::set_target_stake(const char* value) { +inline void LiquidityProvision::set_fee(const char* value) { GOOGLE_DCHECK(value != nullptr); - target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketData.target_stake) + fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.fee) } -inline void MarketData::set_target_stake(const char* value, +inline void LiquidityProvision::set_fee(const char* value, size_t size) { - target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketData.target_stake) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.fee) } -inline std::string* MarketData::_internal_mutable_target_stake() { +inline std::string* LiquidityProvision::_internal_mutable_fee() { - return target_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketData::release_target_stake() { - // @@protoc_insertion_point(field_release:vega.MarketData.target_stake) - return target_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProvision::release_fee() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.fee) + return fee_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::set_allocated_target_stake(std::string* target_stake) { - if (target_stake != nullptr) { +inline void LiquidityProvision::set_allocated_fee(std::string* fee) { + if (fee != nullptr) { } else { } - target_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), target_stake, + fee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fee, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketData.target_stake) + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.fee) } -// string supplied_stake = 23 [json_name = "suppliedStake"]; -inline void MarketData::clear_supplied_stake() { - supplied_stake_.ClearToEmpty(); +// repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; +inline int LiquidityProvision::_internal_sells_size() const { + return sells_.size(); } -inline const std::string& MarketData::supplied_stake() const { - // @@protoc_insertion_point(field_get:vega.MarketData.supplied_stake) - return _internal_supplied_stake(); +inline int LiquidityProvision::sells_size() const { + return _internal_sells_size(); } -inline void MarketData::set_supplied_stake(const std::string& value) { - _internal_set_supplied_stake(value); - // @@protoc_insertion_point(field_set:vega.MarketData.supplied_stake) +inline void LiquidityProvision::clear_sells() { + sells_.Clear(); } -inline std::string* MarketData::mutable_supplied_stake() { - // @@protoc_insertion_point(field_mutable:vega.MarketData.supplied_stake) - return _internal_mutable_supplied_stake(); +inline ::vega::LiquidityOrderReference* LiquidityProvision::mutable_sells(int index) { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.sells) + return sells_.Mutable(index); } -inline const std::string& MarketData::_internal_supplied_stake() const { - return supplied_stake_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* +LiquidityProvision::mutable_sells() { + // @@protoc_insertion_point(field_mutable_list:vega.LiquidityProvision.sells) + return &sells_; +} +inline const ::vega::LiquidityOrderReference& LiquidityProvision::_internal_sells(int index) const { + return sells_.Get(index); +} +inline const ::vega::LiquidityOrderReference& LiquidityProvision::sells(int index) const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.sells) + return _internal_sells(index); +} +inline ::vega::LiquidityOrderReference* LiquidityProvision::_internal_add_sells() { + return sells_.Add(); +} +inline ::vega::LiquidityOrderReference* LiquidityProvision::add_sells() { + // @@protoc_insertion_point(field_add:vega.LiquidityProvision.sells) + return _internal_add_sells(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& +LiquidityProvision::sells() const { + // @@protoc_insertion_point(field_list:vega.LiquidityProvision.sells) + return sells_; } -inline void MarketData::_internal_set_supplied_stake(const std::string& value) { - supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; +inline int LiquidityProvision::_internal_buys_size() const { + return buys_.size(); +} +inline int LiquidityProvision::buys_size() const { + return _internal_buys_size(); +} +inline void LiquidityProvision::clear_buys() { + buys_.Clear(); +} +inline ::vega::LiquidityOrderReference* LiquidityProvision::mutable_buys(int index) { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.buys) + return buys_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* +LiquidityProvision::mutable_buys() { + // @@protoc_insertion_point(field_mutable_list:vega.LiquidityProvision.buys) + return &buys_; +} +inline const ::vega::LiquidityOrderReference& LiquidityProvision::_internal_buys(int index) const { + return buys_.Get(index); +} +inline const ::vega::LiquidityOrderReference& LiquidityProvision::buys(int index) const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.buys) + return _internal_buys(index); +} +inline ::vega::LiquidityOrderReference* LiquidityProvision::_internal_add_buys() { + return buys_.Add(); +} +inline ::vega::LiquidityOrderReference* LiquidityProvision::add_buys() { + // @@protoc_insertion_point(field_add:vega.LiquidityProvision.buys) + return _internal_add_buys(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& +LiquidityProvision::buys() const { + // @@protoc_insertion_point(field_list:vega.LiquidityProvision.buys) + return buys_; } -inline void MarketData::set_supplied_stake(std::string&& value) { - supplied_stake_.Set( +// string version = 10 [json_name = "version"]; +inline void LiquidityProvision::clear_version() { + version_.ClearToEmpty(); +} +inline const std::string& LiquidityProvision::version() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.version) + return _internal_version(); +} +inline void LiquidityProvision::set_version(const std::string& value) { + _internal_set_version(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.version) +} +inline std::string* LiquidityProvision::mutable_version() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.version) + return _internal_mutable_version(); +} +inline const std::string& LiquidityProvision::_internal_version() const { + return version_.Get(); +} +inline void LiquidityProvision::_internal_set_version(const std::string& value) { + + version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LiquidityProvision::set_version(std::string&& value) { + + version_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.supplied_stake) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.version) } -inline void MarketData::set_supplied_stake(const char* value) { +inline void LiquidityProvision::set_version(const char* value) { GOOGLE_DCHECK(value != nullptr); - supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketData.supplied_stake) + version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.version) } -inline void MarketData::set_supplied_stake(const char* value, +inline void LiquidityProvision::set_version(const char* value, size_t size) { - supplied_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketData.supplied_stake) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.version) } -inline std::string* MarketData::_internal_mutable_supplied_stake() { +inline std::string* LiquidityProvision::_internal_mutable_version() { - return supplied_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketData::release_supplied_stake() { - // @@protoc_insertion_point(field_release:vega.MarketData.supplied_stake) - return supplied_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProvision::release_version() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.version) + return version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::set_allocated_supplied_stake(std::string* supplied_stake) { - if (supplied_stake != nullptr) { +inline void LiquidityProvision::set_allocated_version(std::string* version) { + if (version != nullptr) { } else { } - supplied_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), supplied_stake, + version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketData.supplied_stake) + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.version) } -// repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; -inline int MarketData::_internal_price_monitoring_bounds_size() const { - return price_monitoring_bounds_.size(); -} -inline int MarketData::price_monitoring_bounds_size() const { - return _internal_price_monitoring_bounds_size(); -} -inline void MarketData::clear_price_monitoring_bounds() { - price_monitoring_bounds_.Clear(); -} -inline ::vega::PriceMonitoringBounds* MarketData::mutable_price_monitoring_bounds(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketData.price_monitoring_bounds) - return price_monitoring_bounds_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceMonitoringBounds >* -MarketData::mutable_price_monitoring_bounds() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketData.price_monitoring_bounds) - return &price_monitoring_bounds_; -} -inline const ::vega::PriceMonitoringBounds& MarketData::_internal_price_monitoring_bounds(int index) const { - return price_monitoring_bounds_.Get(index); +// .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; +inline void LiquidityProvision::clear_status() { + status_ = 0; } -inline const ::vega::PriceMonitoringBounds& MarketData::price_monitoring_bounds(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketData.price_monitoring_bounds) - return _internal_price_monitoring_bounds(index); +inline ::vega::LiquidityProvision_Status LiquidityProvision::_internal_status() const { + return static_cast< ::vega::LiquidityProvision_Status >(status_); } -inline ::vega::PriceMonitoringBounds* MarketData::_internal_add_price_monitoring_bounds() { - return price_monitoring_bounds_.Add(); +inline ::vega::LiquidityProvision_Status LiquidityProvision::status() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.status) + return _internal_status(); } -inline ::vega::PriceMonitoringBounds* MarketData::add_price_monitoring_bounds() { - // @@protoc_insertion_point(field_add:vega.MarketData.price_monitoring_bounds) - return _internal_add_price_monitoring_bounds(); +inline void LiquidityProvision::_internal_set_status(::vega::LiquidityProvision_Status value) { + + status_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceMonitoringBounds >& -MarketData::price_monitoring_bounds() const { - // @@protoc_insertion_point(field_list:vega.MarketData.price_monitoring_bounds) - return price_monitoring_bounds_; +inline void LiquidityProvision::set_status(::vega::LiquidityProvision_Status value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.status) } -// string market_value_proxy = 25 [json_name = "marketValueProxy"]; -inline void MarketData::clear_market_value_proxy() { - market_value_proxy_.ClearToEmpty(); +// string reference = 12 [json_name = "reference"]; +inline void LiquidityProvision::clear_reference() { + reference_.ClearToEmpty(); } -inline const std::string& MarketData::market_value_proxy() const { - // @@protoc_insertion_point(field_get:vega.MarketData.market_value_proxy) - return _internal_market_value_proxy(); +inline const std::string& LiquidityProvision::reference() const { + // @@protoc_insertion_point(field_get:vega.LiquidityProvision.reference) + return _internal_reference(); } -inline void MarketData::set_market_value_proxy(const std::string& value) { - _internal_set_market_value_proxy(value); - // @@protoc_insertion_point(field_set:vega.MarketData.market_value_proxy) +inline void LiquidityProvision::set_reference(const std::string& value) { + _internal_set_reference(value); + // @@protoc_insertion_point(field_set:vega.LiquidityProvision.reference) } -inline std::string* MarketData::mutable_market_value_proxy() { - // @@protoc_insertion_point(field_mutable:vega.MarketData.market_value_proxy) - return _internal_mutable_market_value_proxy(); +inline std::string* LiquidityProvision::mutable_reference() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.reference) + return _internal_mutable_reference(); } -inline const std::string& MarketData::_internal_market_value_proxy() const { - return market_value_proxy_.Get(); +inline const std::string& LiquidityProvision::_internal_reference() const { + return reference_.Get(); } -inline void MarketData::_internal_set_market_value_proxy(const std::string& value) { +inline void LiquidityProvision::_internal_set_reference(const std::string& value) { - market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void MarketData::set_market_value_proxy(std::string&& value) { +inline void LiquidityProvision::set_reference(std::string&& value) { - market_value_proxy_.Set( + reference_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.market_value_proxy) + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.reference) } -inline void MarketData::set_market_value_proxy(const char* value) { +inline void LiquidityProvision::set_reference(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.MarketData.market_value_proxy) + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.reference) } -inline void MarketData::set_market_value_proxy(const char* value, +inline void LiquidityProvision::set_reference(const char* value, size_t size) { - market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.MarketData.market_value_proxy) + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.reference) } -inline std::string* MarketData::_internal_mutable_market_value_proxy() { +inline std::string* LiquidityProvision::_internal_mutable_reference() { - return market_value_proxy_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* MarketData::release_market_value_proxy() { - // @@protoc_insertion_point(field_release:vega.MarketData.market_value_proxy) - return market_value_proxy_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* LiquidityProvision::release_reference() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.reference) + return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::set_allocated_market_value_proxy(std::string* market_value_proxy) { - if (market_value_proxy != nullptr) { +inline void LiquidityProvision::set_allocated_reference(std::string* reference) { + if (reference != nullptr) { } else { } - market_value_proxy_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_value_proxy, + reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.MarketData.market_value_proxy) -} - -// repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; -inline int MarketData::_internal_liquidity_provider_fee_share_size() const { - return liquidity_provider_fee_share_.size(); -} -inline int MarketData::liquidity_provider_fee_share_size() const { - return _internal_liquidity_provider_fee_share_size(); -} -inline void MarketData::clear_liquidity_provider_fee_share() { - liquidity_provider_fee_share_.Clear(); -} -inline ::vega::LiquidityProviderFeeShare* MarketData::mutable_liquidity_provider_fee_share(int index) { - // @@protoc_insertion_point(field_mutable:vega.MarketData.liquidity_provider_fee_share) - return liquidity_provider_fee_share_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare >* -MarketData::mutable_liquidity_provider_fee_share() { - // @@protoc_insertion_point(field_mutable_list:vega.MarketData.liquidity_provider_fee_share) - return &liquidity_provider_fee_share_; -} -inline const ::vega::LiquidityProviderFeeShare& MarketData::_internal_liquidity_provider_fee_share(int index) const { - return liquidity_provider_fee_share_.Get(index); -} -inline const ::vega::LiquidityProviderFeeShare& MarketData::liquidity_provider_fee_share(int index) const { - // @@protoc_insertion_point(field_get:vega.MarketData.liquidity_provider_fee_share) - return _internal_liquidity_provider_fee_share(index); -} -inline ::vega::LiquidityProviderFeeShare* MarketData::_internal_add_liquidity_provider_fee_share() { - return liquidity_provider_fee_share_.Add(); -} -inline ::vega::LiquidityProviderFeeShare* MarketData::add_liquidity_provider_fee_share() { - // @@protoc_insertion_point(field_add:vega.MarketData.liquidity_provider_fee_share) - return _internal_add_liquidity_provider_fee_share(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare >& -MarketData::liquidity_provider_fee_share() const { - // @@protoc_insertion_point(field_list:vega.MarketData.liquidity_provider_fee_share) - return liquidity_provider_fee_share_; + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.reference) } // ------------------------------------------------------------------- -// LiquidityProviderFeeShare +// EthereumConfig -// string party = 1 [json_name = "party"]; -inline void LiquidityProviderFeeShare::clear_party() { - party_.ClearToEmpty(); +// string network_id = 1 [json_name = "networkId"]; +inline void EthereumConfig::clear_network_id() { + network_id_.ClearToEmpty(); } -inline const std::string& LiquidityProviderFeeShare::party() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.party) - return _internal_party(); +inline const std::string& EthereumConfig::network_id() const { + // @@protoc_insertion_point(field_get:vega.EthereumConfig.network_id) + return _internal_network_id(); } -inline void LiquidityProviderFeeShare::set_party(const std::string& value) { - _internal_set_party(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.party) +inline void EthereumConfig::set_network_id(const std::string& value) { + _internal_set_network_id(value); + // @@protoc_insertion_point(field_set:vega.EthereumConfig.network_id) } -inline std::string* LiquidityProviderFeeShare::mutable_party() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.party) - return _internal_mutable_party(); +inline std::string* EthereumConfig::mutable_network_id() { + // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.network_id) + return _internal_mutable_network_id(); } -inline const std::string& LiquidityProviderFeeShare::_internal_party() const { - return party_.Get(); +inline const std::string& EthereumConfig::_internal_network_id() const { + return network_id_.Get(); } -inline void LiquidityProviderFeeShare::_internal_set_party(const std::string& value) { +inline void EthereumConfig::_internal_set_network_id(const std::string& value) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProviderFeeShare::set_party(std::string&& value) { +inline void EthereumConfig::set_network_id(std::string&& value) { - party_.Set( + network_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.party) + // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.network_id) } -inline void LiquidityProviderFeeShare::set_party(const char* value) { +inline void EthereumConfig::set_network_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.party) + network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.network_id) } -inline void LiquidityProviderFeeShare::set_party(const char* value, +inline void EthereumConfig::set_network_id(const char* value, size_t size) { - party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.party) + // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.network_id) } -inline std::string* LiquidityProviderFeeShare::_internal_mutable_party() { +inline std::string* EthereumConfig::_internal_mutable_network_id() { - return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return network_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProviderFeeShare::release_party() { - // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.party) - return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* EthereumConfig::release_network_id() { + // @@protoc_insertion_point(field_release:vega.EthereumConfig.network_id) + return network_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProviderFeeShare::set_allocated_party(std::string* party) { - if (party != nullptr) { +inline void EthereumConfig::set_allocated_network_id(std::string* network_id) { + if (network_id != nullptr) { } else { } - party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + network_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), network_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.party) + // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.network_id) } -// string equity_like_share = 2 [json_name = "equityLikeShare"]; -inline void LiquidityProviderFeeShare::clear_equity_like_share() { - equity_like_share_.ClearToEmpty(); +// string chain_id = 2 [json_name = "chainId"]; +inline void EthereumConfig::clear_chain_id() { + chain_id_.ClearToEmpty(); } -inline const std::string& LiquidityProviderFeeShare::equity_like_share() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.equity_like_share) - return _internal_equity_like_share(); +inline const std::string& EthereumConfig::chain_id() const { + // @@protoc_insertion_point(field_get:vega.EthereumConfig.chain_id) + return _internal_chain_id(); } -inline void LiquidityProviderFeeShare::set_equity_like_share(const std::string& value) { - _internal_set_equity_like_share(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.equity_like_share) +inline void EthereumConfig::set_chain_id(const std::string& value) { + _internal_set_chain_id(value); + // @@protoc_insertion_point(field_set:vega.EthereumConfig.chain_id) } -inline std::string* LiquidityProviderFeeShare::mutable_equity_like_share() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.equity_like_share) - return _internal_mutable_equity_like_share(); +inline std::string* EthereumConfig::mutable_chain_id() { + // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.chain_id) + return _internal_mutable_chain_id(); } -inline const std::string& LiquidityProviderFeeShare::_internal_equity_like_share() const { - return equity_like_share_.Get(); +inline const std::string& EthereumConfig::_internal_chain_id() const { + return chain_id_.Get(); } -inline void LiquidityProviderFeeShare::_internal_set_equity_like_share(const std::string& value) { +inline void EthereumConfig::_internal_set_chain_id(const std::string& value) { - equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProviderFeeShare::set_equity_like_share(std::string&& value) { +inline void EthereumConfig::set_chain_id(std::string&& value) { - equity_like_share_.Set( + chain_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.equity_like_share) + // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.chain_id) } -inline void LiquidityProviderFeeShare::set_equity_like_share(const char* value) { +inline void EthereumConfig::set_chain_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.equity_like_share) + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.chain_id) } -inline void LiquidityProviderFeeShare::set_equity_like_share(const char* value, +inline void EthereumConfig::set_chain_id(const char* value, size_t size) { - equity_like_share_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.equity_like_share) + // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.chain_id) } -inline std::string* LiquidityProviderFeeShare::_internal_mutable_equity_like_share() { +inline std::string* EthereumConfig::_internal_mutable_chain_id() { - return equity_like_share_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return chain_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProviderFeeShare::release_equity_like_share() { - // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.equity_like_share) - return equity_like_share_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* EthereumConfig::release_chain_id() { + // @@protoc_insertion_point(field_release:vega.EthereumConfig.chain_id) + return chain_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProviderFeeShare::set_allocated_equity_like_share(std::string* equity_like_share) { - if (equity_like_share != nullptr) { +inline void EthereumConfig::set_allocated_chain_id(std::string* chain_id) { + if (chain_id != nullptr) { } else { } - equity_like_share_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), equity_like_share, + chain_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.equity_like_share) + // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.chain_id) } -// string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; -inline void LiquidityProviderFeeShare::clear_average_entry_valuation() { - average_entry_valuation_.ClearToEmpty(); +// string bridge_address = 3 [json_name = "bridgeAddress"]; +inline void EthereumConfig::clear_bridge_address() { + bridge_address_.ClearToEmpty(); } -inline const std::string& LiquidityProviderFeeShare::average_entry_valuation() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProviderFeeShare.average_entry_valuation) - return _internal_average_entry_valuation(); +inline const std::string& EthereumConfig::bridge_address() const { + // @@protoc_insertion_point(field_get:vega.EthereumConfig.bridge_address) + return _internal_bridge_address(); } -inline void LiquidityProviderFeeShare::set_average_entry_valuation(const std::string& value) { - _internal_set_average_entry_valuation(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProviderFeeShare.average_entry_valuation) +inline void EthereumConfig::set_bridge_address(const std::string& value) { + _internal_set_bridge_address(value); + // @@protoc_insertion_point(field_set:vega.EthereumConfig.bridge_address) } -inline std::string* LiquidityProviderFeeShare::mutable_average_entry_valuation() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProviderFeeShare.average_entry_valuation) - return _internal_mutable_average_entry_valuation(); +inline std::string* EthereumConfig::mutable_bridge_address() { + // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.bridge_address) + return _internal_mutable_bridge_address(); } -inline const std::string& LiquidityProviderFeeShare::_internal_average_entry_valuation() const { - return average_entry_valuation_.Get(); +inline const std::string& EthereumConfig::_internal_bridge_address() const { + return bridge_address_.Get(); } -inline void LiquidityProviderFeeShare::_internal_set_average_entry_valuation(const std::string& value) { +inline void EthereumConfig::_internal_set_bridge_address(const std::string& value) { - average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProviderFeeShare::set_average_entry_valuation(std::string&& value) { +inline void EthereumConfig::set_bridge_address(std::string&& value) { - average_entry_valuation_.Set( + bridge_address_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProviderFeeShare.average_entry_valuation) + // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.bridge_address) } -inline void LiquidityProviderFeeShare::set_average_entry_valuation(const char* value) { +inline void EthereumConfig::set_bridge_address(const char* value) { GOOGLE_DCHECK(value != nullptr); - average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProviderFeeShare.average_entry_valuation) + bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.bridge_address) } -inline void LiquidityProviderFeeShare::set_average_entry_valuation(const char* value, +inline void EthereumConfig::set_bridge_address(const char* value, size_t size) { - average_entry_valuation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProviderFeeShare.average_entry_valuation) + // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.bridge_address) } -inline std::string* LiquidityProviderFeeShare::_internal_mutable_average_entry_valuation() { +inline std::string* EthereumConfig::_internal_mutable_bridge_address() { - return average_entry_valuation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return bridge_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProviderFeeShare::release_average_entry_valuation() { - // @@protoc_insertion_point(field_release:vega.LiquidityProviderFeeShare.average_entry_valuation) - return average_entry_valuation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* EthereumConfig::release_bridge_address() { + // @@protoc_insertion_point(field_release:vega.EthereumConfig.bridge_address) + return bridge_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProviderFeeShare::set_allocated_average_entry_valuation(std::string* average_entry_valuation) { - if (average_entry_valuation != nullptr) { +inline void EthereumConfig::set_allocated_bridge_address(std::string* bridge_address) { + if (bridge_address != nullptr) { } else { } - average_entry_valuation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), average_entry_valuation, + bridge_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bridge_address, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProviderFeeShare.average_entry_valuation) + // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.bridge_address) } -// ------------------------------------------------------------------- - -// PriceMonitoringBounds - -// uint64 min_valid_price = 1 [json_name = "minValidPrice"]; -inline void PriceMonitoringBounds::clear_min_valid_price() { - min_valid_price_ = PROTOBUF_ULONGLONG(0); +// uint32 confirmations = 4 [json_name = "confirmations"]; +inline void EthereumConfig::clear_confirmations() { + confirmations_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_min_valid_price() const { - return min_valid_price_; +inline ::PROTOBUF_NAMESPACE_ID::uint32 EthereumConfig::_internal_confirmations() const { + return confirmations_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::min_valid_price() const { - // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.min_valid_price) - return _internal_min_valid_price(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EthereumConfig::confirmations() const { + // @@protoc_insertion_point(field_get:vega.EthereumConfig.confirmations) + return _internal_confirmations(); } -inline void PriceMonitoringBounds::_internal_set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void EthereumConfig::_internal_set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value) { - min_valid_price_ = value; + confirmations_ = value; } -inline void PriceMonitoringBounds::set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_min_valid_price(value); - // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.min_valid_price) +inline void EthereumConfig::set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_confirmations(value); + // @@protoc_insertion_point(field_set:vega.EthereumConfig.confirmations) } -// uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; -inline void PriceMonitoringBounds::clear_max_valid_price() { - max_valid_price_ = PROTOBUF_ULONGLONG(0); +// repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; +inline int EthereumConfig::_internal_staking_bridge_addresses_size() const { + return staking_bridge_addresses_.size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_max_valid_price() const { - return max_valid_price_; +inline int EthereumConfig::staking_bridge_addresses_size() const { + return _internal_staking_bridge_addresses_size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::max_valid_price() const { - // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.max_valid_price) - return _internal_max_valid_price(); +inline void EthereumConfig::clear_staking_bridge_addresses() { + staking_bridge_addresses_.Clear(); } -inline void PriceMonitoringBounds::_internal_set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - max_valid_price_ = value; +inline std::string* EthereumConfig::add_staking_bridge_addresses() { + // @@protoc_insertion_point(field_add_mutable:vega.EthereumConfig.staking_bridge_addresses) + return _internal_add_staking_bridge_addresses(); } -inline void PriceMonitoringBounds::set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_max_valid_price(value); - // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.max_valid_price) +inline const std::string& EthereumConfig::_internal_staking_bridge_addresses(int index) const { + return staking_bridge_addresses_.Get(index); } - -// .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; -inline bool PriceMonitoringBounds::_internal_has_trigger() const { - return this != internal_default_instance() && trigger_ != nullptr; +inline const std::string& EthereumConfig::staking_bridge_addresses(int index) const { + // @@protoc_insertion_point(field_get:vega.EthereumConfig.staking_bridge_addresses) + return _internal_staking_bridge_addresses(index); } -inline bool PriceMonitoringBounds::has_trigger() const { - return _internal_has_trigger(); +inline std::string* EthereumConfig::mutable_staking_bridge_addresses(int index) { + // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.staking_bridge_addresses) + return staking_bridge_addresses_.Mutable(index); } -inline const ::vega::PriceMonitoringTrigger& PriceMonitoringBounds::_internal_trigger() const { - const ::vega::PriceMonitoringTrigger* p = trigger_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_PriceMonitoringTrigger_default_instance_); +inline void EthereumConfig::set_staking_bridge_addresses(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:vega.EthereumConfig.staking_bridge_addresses) + staking_bridge_addresses_.Mutable(index)->assign(value); } -inline const ::vega::PriceMonitoringTrigger& PriceMonitoringBounds::trigger() const { - // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.trigger) - return _internal_trigger(); +inline void EthereumConfig::set_staking_bridge_addresses(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:vega.EthereumConfig.staking_bridge_addresses) + staking_bridge_addresses_.Mutable(index)->assign(std::move(value)); +} +inline void EthereumConfig::set_staking_bridge_addresses(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + staking_bridge_addresses_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.staking_bridge_addresses) +} +inline void EthereumConfig::set_staking_bridge_addresses(int index, const char* value, size_t size) { + staking_bridge_addresses_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.staking_bridge_addresses) +} +inline std::string* EthereumConfig::_internal_add_staking_bridge_addresses() { + return staking_bridge_addresses_.Add(); +} +inline void EthereumConfig::add_staking_bridge_addresses(const std::string& value) { + staking_bridge_addresses_.Add()->assign(value); + // @@protoc_insertion_point(field_add:vega.EthereumConfig.staking_bridge_addresses) +} +inline void EthereumConfig::add_staking_bridge_addresses(std::string&& value) { + staking_bridge_addresses_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:vega.EthereumConfig.staking_bridge_addresses) +} +inline void EthereumConfig::add_staking_bridge_addresses(const char* value) { + GOOGLE_DCHECK(value != nullptr); + staking_bridge_addresses_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:vega.EthereumConfig.staking_bridge_addresses) +} +inline void EthereumConfig::add_staking_bridge_addresses(const char* value, size_t size) { + staking_bridge_addresses_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:vega.EthereumConfig.staking_bridge_addresses) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +EthereumConfig::staking_bridge_addresses() const { + // @@protoc_insertion_point(field_list:vega.EthereumConfig.staking_bridge_addresses) + return staking_bridge_addresses_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +EthereumConfig::mutable_staking_bridge_addresses() { + // @@protoc_insertion_point(field_mutable_list:vega.EthereumConfig.staking_bridge_addresses) + return &staking_bridge_addresses_; } -inline void PriceMonitoringBounds::unsafe_arena_set_allocated_trigger( - ::vega::PriceMonitoringTrigger* trigger) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger_); - } - trigger_ = trigger; - if (trigger) { - } else { +// ------------------------------------------------------------------- - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.PriceMonitoringBounds.trigger) +// EpochTimestamps + +// int64 start_time = 1 [json_name = "startTime"]; +inline void EpochTimestamps::clear_start_time() { + start_time_ = PROTOBUF_LONGLONG(0); } -inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::release_trigger() { +inline ::PROTOBUF_NAMESPACE_ID::int64 EpochTimestamps::_internal_start_time() const { + return start_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 EpochTimestamps::start_time() const { + // @@protoc_insertion_point(field_get:vega.EpochTimestamps.start_time) + return _internal_start_time(); +} +inline void EpochTimestamps::_internal_set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value) { - ::vega::PriceMonitoringTrigger* temp = trigger_; - trigger_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + start_time_ = value; +} +inline void EpochTimestamps::set_start_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_start_time(value); + // @@protoc_insertion_point(field_set:vega.EpochTimestamps.start_time) } -inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::unsafe_arena_release_trigger() { - // @@protoc_insertion_point(field_release:vega.PriceMonitoringBounds.trigger) - ::vega::PriceMonitoringTrigger* temp = trigger_; - trigger_ = nullptr; - return temp; +// int64 end_time = 2 [json_name = "endTime"]; +inline void EpochTimestamps::clear_end_time() { + end_time_ = PROTOBUF_LONGLONG(0); } -inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::_internal_mutable_trigger() { +inline ::PROTOBUF_NAMESPACE_ID::int64 EpochTimestamps::_internal_end_time() const { + return end_time_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 EpochTimestamps::end_time() const { + // @@protoc_insertion_point(field_get:vega.EpochTimestamps.end_time) + return _internal_end_time(); +} +inline void EpochTimestamps::_internal_set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value) { - if (trigger_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::PriceMonitoringTrigger>(GetArena()); - trigger_ = p; - } - return trigger_; + end_time_ = value; } -inline ::vega::PriceMonitoringTrigger* PriceMonitoringBounds::mutable_trigger() { - // @@protoc_insertion_point(field_mutable:vega.PriceMonitoringBounds.trigger) - return _internal_mutable_trigger(); +inline void EpochTimestamps::set_end_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_end_time(value); + // @@protoc_insertion_point(field_set:vega.EpochTimestamps.end_time) } -inline void PriceMonitoringBounds::set_allocated_trigger(::vega::PriceMonitoringTrigger* trigger) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger_); - } - if (trigger) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(trigger)->GetArena(); - if (message_arena != submessage_arena) { - trigger = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, trigger, submessage_arena); - } - } else { +// uint64 first_block = 3 [json_name = "firstBlock"]; +inline void EpochTimestamps::clear_first_block() { + first_block_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochTimestamps::_internal_first_block() const { + return first_block_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochTimestamps::first_block() const { + // @@protoc_insertion_point(field_get:vega.EpochTimestamps.first_block) + return _internal_first_block(); +} +inline void EpochTimestamps::_internal_set_first_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - } - trigger_ = trigger; - // @@protoc_insertion_point(field_set_allocated:vega.PriceMonitoringBounds.trigger) + first_block_ = value; +} +inline void EpochTimestamps::set_first_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_first_block(value); + // @@protoc_insertion_point(field_set:vega.EpochTimestamps.first_block) } -// double reference_price = 4 [json_name = "referencePrice"]; -inline void PriceMonitoringBounds::clear_reference_price() { - reference_price_ = 0; +// uint64 last_block = 4 [json_name = "lastBlock"]; +inline void EpochTimestamps::clear_last_block() { + last_block_ = PROTOBUF_ULONGLONG(0); } -inline double PriceMonitoringBounds::_internal_reference_price() const { - return reference_price_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochTimestamps::_internal_last_block() const { + return last_block_; } -inline double PriceMonitoringBounds::reference_price() const { - // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.reference_price) - return _internal_reference_price(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochTimestamps::last_block() const { + // @@protoc_insertion_point(field_get:vega.EpochTimestamps.last_block) + return _internal_last_block(); } -inline void PriceMonitoringBounds::_internal_set_reference_price(double value) { +inline void EpochTimestamps::_internal_set_last_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { - reference_price_ = value; + last_block_ = value; } -inline void PriceMonitoringBounds::set_reference_price(double value) { - _internal_set_reference_price(value); - // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.reference_price) +inline void EpochTimestamps::set_last_block(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_last_block(value); + // @@protoc_insertion_point(field_set:vega.EpochTimestamps.last_block) } // ------------------------------------------------------------------- -// ErrorDetail +// Epoch -// int32 code = 1 [json_name = "code"]; -inline void ErrorDetail::clear_code() { - code_ = 0; +// uint64 seq = 1 [json_name = "seq"]; +inline void Epoch::clear_seq() { + seq_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int32 ErrorDetail::_internal_code() const { - return code_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 Epoch::_internal_seq() const { + return seq_; } -inline ::PROTOBUF_NAMESPACE_ID::int32 ErrorDetail::code() const { - // @@protoc_insertion_point(field_get:vega.ErrorDetail.code) - return _internal_code(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Epoch::seq() const { + // @@protoc_insertion_point(field_get:vega.Epoch.seq) + return _internal_seq(); } -inline void ErrorDetail::_internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void Epoch::_internal_set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value) { - code_ = value; + seq_ = value; } -inline void ErrorDetail::set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_code(value); - // @@protoc_insertion_point(field_set:vega.ErrorDetail.code) +inline void Epoch::set_seq(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_seq(value); + // @@protoc_insertion_point(field_set:vega.Epoch.seq) } -// string message = 2 [json_name = "message"]; -inline void ErrorDetail::clear_message() { - message_.ClearToEmpty(); +// .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { +inline bool Epoch::_internal_has_timestamps() const { + return this != internal_default_instance() && timestamps_ != nullptr; } -inline const std::string& ErrorDetail::message() const { - // @@protoc_insertion_point(field_get:vega.ErrorDetail.message) - return _internal_message(); +inline bool Epoch::has_timestamps() const { + return _internal_has_timestamps(); } -inline void ErrorDetail::set_message(const std::string& value) { - _internal_set_message(value); - // @@protoc_insertion_point(field_set:vega.ErrorDetail.message) +inline void Epoch::clear_timestamps() { + if (GetArena() == nullptr && timestamps_ != nullptr) { + delete timestamps_; + } + timestamps_ = nullptr; } -inline std::string* ErrorDetail::mutable_message() { - // @@protoc_insertion_point(field_mutable:vega.ErrorDetail.message) - return _internal_mutable_message(); +inline const ::vega::EpochTimestamps& Epoch::_internal_timestamps() const { + const ::vega::EpochTimestamps* p = timestamps_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_EpochTimestamps_default_instance_); } -inline const std::string& ErrorDetail::_internal_message() const { - return message_.Get(); +inline const ::vega::EpochTimestamps& Epoch::timestamps() const { + // @@protoc_insertion_point(field_get:vega.Epoch.timestamps) + return _internal_timestamps(); } -inline void ErrorDetail::_internal_set_message(const std::string& value) { +inline void Epoch::unsafe_arena_set_allocated_timestamps( + ::vega::EpochTimestamps* timestamps) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamps_); + } + timestamps_ = timestamps; + if (timestamps) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void ErrorDetail::set_message(std::string&& value) { + } else { - message_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ErrorDetail.message) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Epoch.timestamps) } -inline void ErrorDetail::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::EpochTimestamps* Epoch::release_timestamps() { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ErrorDetail.message) + ::vega::EpochTimestamps* temp = timestamps_; + timestamps_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void ErrorDetail::set_message(const char* value, - size_t size) { +inline ::vega::EpochTimestamps* Epoch::unsafe_arena_release_timestamps() { + // @@protoc_insertion_point(field_release:vega.Epoch.timestamps) - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ErrorDetail.message) + ::vega::EpochTimestamps* temp = timestamps_; + timestamps_ = nullptr; + return temp; } -inline std::string* ErrorDetail::_internal_mutable_message() { +inline ::vega::EpochTimestamps* Epoch::_internal_mutable_timestamps() { - return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (timestamps_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::EpochTimestamps>(GetArena()); + timestamps_ = p; + } + return timestamps_; } -inline std::string* ErrorDetail::release_message() { - // @@protoc_insertion_point(field_release:vega.ErrorDetail.message) - return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::EpochTimestamps* Epoch::mutable_timestamps() { + // @@protoc_insertion_point(field_mutable:vega.Epoch.timestamps) + return _internal_mutable_timestamps(); } -inline void ErrorDetail::set_allocated_message(std::string* message) { - if (message != nullptr) { +inline void Epoch::set_allocated_timestamps(::vega::EpochTimestamps* timestamps) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete timestamps_; + } + if (timestamps) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(timestamps); + if (message_arena != submessage_arena) { + timestamps = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timestamps, submessage_arena); + } } else { } - message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ErrorDetail.message) + timestamps_ = timestamps; + // @@protoc_insertion_point(field_set_allocated:vega.Epoch.timestamps) } -// string inner = 3 [json_name = "inner"]; -inline void ErrorDetail::clear_inner() { - inner_.ClearToEmpty(); +// repeated .vega.Node validators = 3 [json_name = "validators"]; +inline int Epoch::_internal_validators_size() const { + return validators_.size(); } -inline const std::string& ErrorDetail::inner() const { - // @@protoc_insertion_point(field_get:vega.ErrorDetail.inner) - return _internal_inner(); +inline int Epoch::validators_size() const { + return _internal_validators_size(); } -inline void ErrorDetail::set_inner(const std::string& value) { - _internal_set_inner(value); - // @@protoc_insertion_point(field_set:vega.ErrorDetail.inner) +inline void Epoch::clear_validators() { + validators_.Clear(); } -inline std::string* ErrorDetail::mutable_inner() { - // @@protoc_insertion_point(field_mutable:vega.ErrorDetail.inner) - return _internal_mutable_inner(); +inline ::vega::Node* Epoch::mutable_validators(int index) { + // @@protoc_insertion_point(field_mutable:vega.Epoch.validators) + return validators_.Mutable(index); } -inline const std::string& ErrorDetail::_internal_inner() const { - return inner_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Node >* +Epoch::mutable_validators() { + // @@protoc_insertion_point(field_mutable_list:vega.Epoch.validators) + return &validators_; } -inline void ErrorDetail::_internal_set_inner(const std::string& value) { - - inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline const ::vega::Node& Epoch::_internal_validators(int index) const { + return validators_.Get(index); +} +inline const ::vega::Node& Epoch::validators(int index) const { + // @@protoc_insertion_point(field_get:vega.Epoch.validators) + return _internal_validators(index); +} +inline ::vega::Node* Epoch::_internal_add_validators() { + return validators_.Add(); +} +inline ::vega::Node* Epoch::add_validators() { + // @@protoc_insertion_point(field_add:vega.Epoch.validators) + return _internal_add_validators(); } -inline void ErrorDetail::set_inner(std::string&& value) { - - inner_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.ErrorDetail.inner) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Node >& +Epoch::validators() const { + // @@protoc_insertion_point(field_list:vega.Epoch.validators) + return validators_; } -inline void ErrorDetail::set_inner(const char* value) { - GOOGLE_DCHECK(value != nullptr); - inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.ErrorDetail.inner) +// repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; +inline int Epoch::_internal_delegations_size() const { + return delegations_.size(); } -inline void ErrorDetail::set_inner(const char* value, - size_t size) { - - inner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.ErrorDetail.inner) +inline int Epoch::delegations_size() const { + return _internal_delegations_size(); } -inline std::string* ErrorDetail::_internal_mutable_inner() { - - return inner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline void Epoch::clear_delegations() { + delegations_.Clear(); } -inline std::string* ErrorDetail::release_inner() { - // @@protoc_insertion_point(field_release:vega.ErrorDetail.inner) - return inner_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::Delegation* Epoch::mutable_delegations(int index) { + // @@protoc_insertion_point(field_mutable:vega.Epoch.delegations) + return delegations_.Mutable(index); } -inline void ErrorDetail::set_allocated_inner(std::string* inner) { - if (inner != nullptr) { - - } else { - - } - inner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), inner, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.ErrorDetail.inner) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* +Epoch::mutable_delegations() { + // @@protoc_insertion_point(field_mutable_list:vega.Epoch.delegations) + return &delegations_; +} +inline const ::vega::Delegation& Epoch::_internal_delegations(int index) const { + return delegations_.Get(index); +} +inline const ::vega::Delegation& Epoch::delegations(int index) const { + // @@protoc_insertion_point(field_get:vega.Epoch.delegations) + return _internal_delegations(index); +} +inline ::vega::Delegation* Epoch::_internal_add_delegations() { + return delegations_.Add(); +} +inline ::vega::Delegation* Epoch::add_delegations() { + // @@protoc_insertion_point(field_add:vega.Epoch.delegations) + return _internal_add_delegations(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& +Epoch::delegations() const { + // @@protoc_insertion_point(field_list:vega.Epoch.delegations) + return delegations_; } // ------------------------------------------------------------------- -// Transaction +// EpochParticipation -// bytes input_data = 1 [json_name = "inputData"]; -inline void Transaction::clear_input_data() { - input_data_.ClearToEmpty(); +// .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { +inline bool EpochParticipation::_internal_has_epoch() const { + return this != internal_default_instance() && epoch_ != nullptr; } -inline const std::string& Transaction::input_data() const { - // @@protoc_insertion_point(field_get:vega.Transaction.input_data) - return _internal_input_data(); +inline bool EpochParticipation::has_epoch() const { + return _internal_has_epoch(); } -inline void Transaction::set_input_data(const std::string& value) { - _internal_set_input_data(value); - // @@protoc_insertion_point(field_set:vega.Transaction.input_data) +inline void EpochParticipation::clear_epoch() { + if (GetArena() == nullptr && epoch_ != nullptr) { + delete epoch_; + } + epoch_ = nullptr; } -inline std::string* Transaction::mutable_input_data() { - // @@protoc_insertion_point(field_mutable:vega.Transaction.input_data) - return _internal_mutable_input_data(); +inline const ::vega::Epoch& EpochParticipation::_internal_epoch() const { + const ::vega::Epoch* p = epoch_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_Epoch_default_instance_); } -inline const std::string& Transaction::_internal_input_data() const { - return input_data_.Get(); +inline const ::vega::Epoch& EpochParticipation::epoch() const { + // @@protoc_insertion_point(field_get:vega.EpochParticipation.epoch) + return _internal_epoch(); } -inline void Transaction::_internal_set_input_data(const std::string& value) { +inline void EpochParticipation::unsafe_arena_set_allocated_epoch( + ::vega::Epoch* epoch) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(epoch_); + } + epoch_ = epoch; + if (epoch) { - input_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void Transaction::set_input_data(std::string&& value) { + } else { - input_data_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Transaction.input_data) + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.EpochParticipation.epoch) } -inline void Transaction::set_input_data(const char* value) { - GOOGLE_DCHECK(value != nullptr); +inline ::vega::Epoch* EpochParticipation::release_epoch() { - input_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Transaction.input_data) + ::vega::Epoch* temp = epoch_; + epoch_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; } -inline void Transaction::set_input_data(const void* value, - size_t size) { +inline ::vega::Epoch* EpochParticipation::unsafe_arena_release_epoch() { + // @@protoc_insertion_point(field_release:vega.EpochParticipation.epoch) - input_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Transaction.input_data) + ::vega::Epoch* temp = epoch_; + epoch_ = nullptr; + return temp; } -inline std::string* Transaction::_internal_mutable_input_data() { +inline ::vega::Epoch* EpochParticipation::_internal_mutable_epoch() { - return input_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (epoch_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::Epoch>(GetArena()); + epoch_ = p; + } + return epoch_; } -inline std::string* Transaction::release_input_data() { - // @@protoc_insertion_point(field_release:vega.Transaction.input_data) - return input_data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::vega::Epoch* EpochParticipation::mutable_epoch() { + // @@protoc_insertion_point(field_mutable:vega.EpochParticipation.epoch) + return _internal_mutable_epoch(); } -inline void Transaction::set_allocated_input_data(std::string* input_data) { - if (input_data != nullptr) { +inline void EpochParticipation::set_allocated_epoch(::vega::Epoch* epoch) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete epoch_; + } + if (epoch) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(epoch); + if (message_arena != submessage_arena) { + epoch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, epoch, submessage_arena); + } } else { } - input_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), input_data, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Transaction.input_data) + epoch_ = epoch; + // @@protoc_insertion_point(field_set_allocated:vega.EpochParticipation.epoch) } -// uint64 nonce = 2 [json_name = "nonce"]; -inline void Transaction::clear_nonce() { - nonce_ = PROTOBUF_ULONGLONG(0); +// uint64 offline = 2 [json_name = "offline"]; +inline void EpochParticipation::clear_offline() { + offline_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transaction::_internal_nonce() const { - return nonce_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochParticipation::_internal_offline() const { + return offline_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transaction::nonce() const { - // @@protoc_insertion_point(field_get:vega.Transaction.nonce) - return _internal_nonce(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochParticipation::offline() const { + // @@protoc_insertion_point(field_get:vega.EpochParticipation.offline) + return _internal_offline(); } -inline void Transaction::_internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void EpochParticipation::_internal_set_offline(::PROTOBUF_NAMESPACE_ID::uint64 value) { - nonce_ = value; + offline_ = value; } -inline void Transaction::set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_nonce(value); - // @@protoc_insertion_point(field_set:vega.Transaction.nonce) +inline void EpochParticipation::set_offline(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_offline(value); + // @@protoc_insertion_point(field_set:vega.EpochParticipation.offline) } -// uint64 block_height = 3 [json_name = "blockHeight"]; -inline void Transaction::clear_block_height() { - block_height_ = PROTOBUF_ULONGLONG(0); +// uint64 online = 3 [json_name = "online"]; +inline void EpochParticipation::clear_online() { + online_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transaction::_internal_block_height() const { - return block_height_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochParticipation::_internal_online() const { + return online_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transaction::block_height() const { - // @@protoc_insertion_point(field_get:vega.Transaction.block_height) - return _internal_block_height(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 EpochParticipation::online() const { + // @@protoc_insertion_point(field_get:vega.EpochParticipation.online) + return _internal_online(); } -inline void Transaction::_internal_set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void EpochParticipation::_internal_set_online(::PROTOBUF_NAMESPACE_ID::uint64 value) { - block_height_ = value; + online_ = value; } -inline void Transaction::set_block_height(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_block_height(value); - // @@protoc_insertion_point(field_set:vega.Transaction.block_height) +inline void EpochParticipation::set_online(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_online(value); + // @@protoc_insertion_point(field_set:vega.EpochParticipation.online) } -// bytes address = 1001 [json_name = "address"]; -inline bool Transaction::_internal_has_address() const { - return from_case() == kAddress; -} -inline void Transaction::set_has_address() { - _oneof_case_[0] = kAddress; -} -inline void Transaction::clear_address() { - if (_internal_has_address()) { - from_.address_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_from(); - } -} -inline const std::string& Transaction::address() const { - // @@protoc_insertion_point(field_get:vega.Transaction.address) - return _internal_address(); +// double total_rewards = 4 [json_name = "totalRewards"]; +inline void EpochParticipation::clear_total_rewards() { + total_rewards_ = 0; } -inline void Transaction::set_address(const std::string& value) { - _internal_set_address(value); - // @@protoc_insertion_point(field_set:vega.Transaction.address) +inline double EpochParticipation::_internal_total_rewards() const { + return total_rewards_; } -inline std::string* Transaction::mutable_address() { - // @@protoc_insertion_point(field_mutable:vega.Transaction.address) - return _internal_mutable_address(); +inline double EpochParticipation::total_rewards() const { + // @@protoc_insertion_point(field_get:vega.EpochParticipation.total_rewards) + return _internal_total_rewards(); } -inline const std::string& Transaction::_internal_address() const { - if (_internal_has_address()) { - return from_.address_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +inline void EpochParticipation::_internal_set_total_rewards(double value) { + + total_rewards_ = value; } -inline void Transaction::_internal_set_address(const std::string& value) { - if (!_internal_has_address()) { - clear_from(); - set_has_address(); - from_.address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline void EpochParticipation::set_total_rewards(double value) { + _internal_set_total_rewards(value); + // @@protoc_insertion_point(field_set:vega.EpochParticipation.total_rewards) } -inline void Transaction::set_address(std::string&& value) { - // @@protoc_insertion_point(field_set:vega.Transaction.address) - if (!_internal_has_address()) { - clear_from(); - set_has_address(); - from_.address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Transaction.address) + +// ------------------------------------------------------------------- + +// EpochData + +// int32 total = 1 [json_name = "total"]; +inline void EpochData::clear_total() { + total_ = 0; } -inline void Transaction::set_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_address()) { - clear_from(); - set_has_address(); - from_.address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Transaction.address) -} -inline void Transaction::set_address(const void* value, - size_t size) { - if (!_internal_has_address()) { - clear_from(); - set_has_address(); - from_.address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.address_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Transaction.address) -} -inline std::string* Transaction::_internal_mutable_address() { - if (!_internal_has_address()) { - clear_from(); - set_has_address(); - from_.address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return from_.address_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* Transaction::release_address() { - // @@protoc_insertion_point(field_release:vega.Transaction.address) - if (_internal_has_address()) { - clear_has_from(); - return from_.address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::_internal_total() const { + return total_; } -inline void Transaction::set_allocated_address(std::string* address) { - if (has_from()) { - clear_from(); - } - if (address != nullptr) { - set_has_address(); - from_.address_.UnsafeSetDefault(address); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(address); - } - } - // @@protoc_insertion_point(field_set_allocated:vega.Transaction.address) +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::total() const { + // @@protoc_insertion_point(field_get:vega.EpochData.total) + return _internal_total(); } +inline void EpochData::_internal_set_total(::PROTOBUF_NAMESPACE_ID::int32 value) { -// bytes pub_key = 1002 [json_name = "pubKey"]; -inline bool Transaction::_internal_has_pub_key() const { - return from_case() == kPubKey; -} -inline void Transaction::set_has_pub_key() { - _oneof_case_[0] = kPubKey; + total_ = value; } -inline void Transaction::clear_pub_key() { - if (_internal_has_pub_key()) { - from_.pub_key_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_from(); - } +inline void EpochData::set_total(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_total(value); + // @@protoc_insertion_point(field_set:vega.EpochData.total) } -inline const std::string& Transaction::pub_key() const { - // @@protoc_insertion_point(field_get:vega.Transaction.pub_key) - return _internal_pub_key(); + +// int32 offline = 2 [json_name = "offline"]; +inline void EpochData::clear_offline() { + offline_ = 0; } -inline void Transaction::set_pub_key(const std::string& value) { - _internal_set_pub_key(value); - // @@protoc_insertion_point(field_set:vega.Transaction.pub_key) +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::_internal_offline() const { + return offline_; } -inline std::string* Transaction::mutable_pub_key() { - // @@protoc_insertion_point(field_mutable:vega.Transaction.pub_key) - return _internal_mutable_pub_key(); +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::offline() const { + // @@protoc_insertion_point(field_get:vega.EpochData.offline) + return _internal_offline(); } -inline const std::string& Transaction::_internal_pub_key() const { - if (_internal_has_pub_key()) { - return from_.pub_key_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +inline void EpochData::_internal_set_offline(::PROTOBUF_NAMESPACE_ID::int32 value) { + + offline_ = value; } -inline void Transaction::_internal_set_pub_key(const std::string& value) { - if (!_internal_has_pub_key()) { - clear_from(); - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +inline void EpochData::set_offline(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_offline(value); + // @@protoc_insertion_point(field_set:vega.EpochData.offline) } -inline void Transaction::set_pub_key(std::string&& value) { - // @@protoc_insertion_point(field_set:vega.Transaction.pub_key) - if (!_internal_has_pub_key()) { - clear_from(); - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.pub_key_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Transaction.pub_key) + +// int32 online = 3 [json_name = "online"]; +inline void EpochData::clear_online() { + online_ = 0; } -inline void Transaction::set_pub_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pub_key()) { - clear_from(); - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Transaction.pub_key) -} -inline void Transaction::set_pub_key(const void* value, - size_t size) { - if (!_internal_has_pub_key()) { - clear_from(); - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - from_.pub_key_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Transaction.pub_key) -} -inline std::string* Transaction::_internal_mutable_pub_key() { - if (!_internal_has_pub_key()) { - clear_from(); - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return from_.pub_key_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* Transaction::release_pub_key() { - // @@protoc_insertion_point(field_release:vega.Transaction.pub_key) - if (_internal_has_pub_key()) { - clear_has_from(); - return from_.pub_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::_internal_online() const { + return online_; } -inline void Transaction::set_allocated_pub_key(std::string* pub_key) { - if (has_from()) { - clear_from(); - } - if (pub_key != nullptr) { - set_has_pub_key(); - from_.pub_key_.UnsafeSetDefault(pub_key); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pub_key); - } - } - // @@protoc_insertion_point(field_set_allocated:vega.Transaction.pub_key) +inline ::PROTOBUF_NAMESPACE_ID::int32 EpochData::online() const { + // @@protoc_insertion_point(field_get:vega.EpochData.online) + return _internal_online(); } +inline void EpochData::_internal_set_online(::PROTOBUF_NAMESPACE_ID::int32 value) { -inline bool Transaction::has_from() const { - return from_case() != FROM_NOT_SET; + online_ = value; } -inline void Transaction::clear_has_from() { - _oneof_case_[0] = FROM_NOT_SET; -} -inline Transaction::FromCase Transaction::from_case() const { - return Transaction::FromCase(_oneof_case_[0]); +inline void EpochData::set_online(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_online(value); + // @@protoc_insertion_point(field_set:vega.EpochData.online) } + // ------------------------------------------------------------------- -// Signature +// Node -// bytes sig = 1 [json_name = "sig"]; -inline void Signature::clear_sig() { - sig_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void Node::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& Signature::sig() const { - // @@protoc_insertion_point(field_get:vega.Signature.sig) - return _internal_sig(); +inline const std::string& Node::id() const { + // @@protoc_insertion_point(field_get:vega.Node.id) + return _internal_id(); } -inline void Signature::set_sig(const std::string& value) { - _internal_set_sig(value); - // @@protoc_insertion_point(field_set:vega.Signature.sig) +inline void Node::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:vega.Node.id) } -inline std::string* Signature::mutable_sig() { - // @@protoc_insertion_point(field_mutable:vega.Signature.sig) - return _internal_mutable_sig(); +inline std::string* Node::mutable_id() { + // @@protoc_insertion_point(field_mutable:vega.Node.id) + return _internal_mutable_id(); } -inline const std::string& Signature::_internal_sig() const { - return sig_.Get(); +inline const std::string& Node::_internal_id() const { + return id_.Get(); } -inline void Signature::_internal_set_sig(const std::string& value) { +inline void Node::_internal_set_id(const std::string& value) { - sig_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Signature::set_sig(std::string&& value) { +inline void Node::set_id(std::string&& value) { - sig_.Set( + id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Signature.sig) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.id) } -inline void Signature::set_sig(const char* value) { +inline void Node::set_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - sig_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Signature.sig) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.id) } -inline void Signature::set_sig(const void* value, +inline void Node::set_id(const char* value, size_t size) { - sig_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Signature.sig) + // @@protoc_insertion_point(field_set_pointer:vega.Node.id) } -inline std::string* Signature::_internal_mutable_sig() { +inline std::string* Node::_internal_mutable_id() { - return sig_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Signature::release_sig() { - // @@protoc_insertion_point(field_release:vega.Signature.sig) - return sig_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_id() { + // @@protoc_insertion_point(field_release:vega.Node.id) + return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Signature::set_allocated_sig(std::string* sig) { - if (sig != nullptr) { +inline void Node::set_allocated_id(std::string* id) { + if (id != nullptr) { } else { } - sig_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sig, + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Signature.sig) + // @@protoc_insertion_point(field_set_allocated:vega.Node.id) } -// string algo = 2 [json_name = "algo"]; -inline void Signature::clear_algo() { - algo_.ClearToEmpty(); +// string pub_key = 2 [json_name = "pubKey", (.validator.field) = { +inline void Node::clear_pub_key() { + pub_key_.ClearToEmpty(); } -inline const std::string& Signature::algo() const { - // @@protoc_insertion_point(field_get:vega.Signature.algo) - return _internal_algo(); +inline const std::string& Node::pub_key() const { + // @@protoc_insertion_point(field_get:vega.Node.pub_key) + return _internal_pub_key(); } -inline void Signature::set_algo(const std::string& value) { - _internal_set_algo(value); - // @@protoc_insertion_point(field_set:vega.Signature.algo) +inline void Node::set_pub_key(const std::string& value) { + _internal_set_pub_key(value); + // @@protoc_insertion_point(field_set:vega.Node.pub_key) } -inline std::string* Signature::mutable_algo() { - // @@protoc_insertion_point(field_mutable:vega.Signature.algo) - return _internal_mutable_algo(); +inline std::string* Node::mutable_pub_key() { + // @@protoc_insertion_point(field_mutable:vega.Node.pub_key) + return _internal_mutable_pub_key(); } -inline const std::string& Signature::_internal_algo() const { - return algo_.Get(); +inline const std::string& Node::_internal_pub_key() const { + return pub_key_.Get(); } -inline void Signature::_internal_set_algo(const std::string& value) { +inline void Node::_internal_set_pub_key(const std::string& value) { - algo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Signature::set_algo(std::string&& value) { +inline void Node::set_pub_key(std::string&& value) { - algo_.Set( + pub_key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.Signature.algo) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.pub_key) } -inline void Signature::set_algo(const char* value) { +inline void Node::set_pub_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - algo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.Signature.algo) + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.pub_key) } -inline void Signature::set_algo(const char* value, +inline void Node::set_pub_key(const char* value, size_t size) { - algo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + pub_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.Signature.algo) + // @@protoc_insertion_point(field_set_pointer:vega.Node.pub_key) } -inline std::string* Signature::_internal_mutable_algo() { +inline std::string* Node::_internal_mutable_pub_key() { - return algo_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return pub_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Signature::release_algo() { - // @@protoc_insertion_point(field_release:vega.Signature.algo) - return algo_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_pub_key() { + // @@protoc_insertion_point(field_release:vega.Node.pub_key) + return pub_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Signature::set_allocated_algo(std::string* algo) { - if (algo != nullptr) { +inline void Node::set_allocated_pub_key(std::string* pub_key) { + if (pub_key != nullptr) { } else { } - algo_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), algo, + pub_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pub_key, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.Signature.algo) -} - -// uint32 version = 3 [json_name = "version"]; -inline void Signature::clear_version() { - version_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Signature::_internal_version() const { - return version_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Signature::version() const { - // @@protoc_insertion_point(field_get:vega.Signature.version) - return _internal_version(); -} -inline void Signature::_internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { - - version_ = value; -} -inline void Signature::set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:vega.Signature.version) + // @@protoc_insertion_point(field_set_allocated:vega.Node.pub_key) } -// ------------------------------------------------------------------- - -// SignedBundle - -// bytes tx = 1 [json_name = "tx"]; -inline void SignedBundle::clear_tx() { - tx_.ClearToEmpty(); +// string info_url = 3 [json_name = "infoUrl"]; +inline void Node::clear_info_url() { + info_url_.ClearToEmpty(); } -inline const std::string& SignedBundle::tx() const { - // @@protoc_insertion_point(field_get:vega.SignedBundle.tx) - return _internal_tx(); +inline const std::string& Node::info_url() const { + // @@protoc_insertion_point(field_get:vega.Node.info_url) + return _internal_info_url(); } -inline void SignedBundle::set_tx(const std::string& value) { - _internal_set_tx(value); - // @@protoc_insertion_point(field_set:vega.SignedBundle.tx) +inline void Node::set_info_url(const std::string& value) { + _internal_set_info_url(value); + // @@protoc_insertion_point(field_set:vega.Node.info_url) } -inline std::string* SignedBundle::mutable_tx() { - // @@protoc_insertion_point(field_mutable:vega.SignedBundle.tx) - return _internal_mutable_tx(); +inline std::string* Node::mutable_info_url() { + // @@protoc_insertion_point(field_mutable:vega.Node.info_url) + return _internal_mutable_info_url(); } -inline const std::string& SignedBundle::_internal_tx() const { - return tx_.Get(); +inline const std::string& Node::_internal_info_url() const { + return info_url_.Get(); } -inline void SignedBundle::_internal_set_tx(const std::string& value) { +inline void Node::_internal_set_info_url(const std::string& value) { - tx_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + info_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void SignedBundle::set_tx(std::string&& value) { +inline void Node::set_info_url(std::string&& value) { - tx_.Set( + info_url_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.SignedBundle.tx) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.info_url) } -inline void SignedBundle::set_tx(const char* value) { +inline void Node::set_info_url(const char* value) { GOOGLE_DCHECK(value != nullptr); - tx_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.SignedBundle.tx) + info_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.info_url) } -inline void SignedBundle::set_tx(const void* value, +inline void Node::set_info_url(const char* value, size_t size) { - tx_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + info_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.SignedBundle.tx) + // @@protoc_insertion_point(field_set_pointer:vega.Node.info_url) } -inline std::string* SignedBundle::_internal_mutable_tx() { +inline std::string* Node::_internal_mutable_info_url() { - return tx_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return info_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* SignedBundle::release_tx() { - // @@protoc_insertion_point(field_release:vega.SignedBundle.tx) - return tx_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_info_url() { + // @@protoc_insertion_point(field_release:vega.Node.info_url) + return info_url_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void SignedBundle::set_allocated_tx(std::string* tx) { - if (tx != nullptr) { +inline void Node::set_allocated_info_url(std::string* info_url) { + if (info_url != nullptr) { } else { } - tx_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tx, + info_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), info_url, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.SignedBundle.tx) + // @@protoc_insertion_point(field_set_allocated:vega.Node.info_url) } -// .vega.Signature sig = 2 [json_name = "sig"]; -inline bool SignedBundle::_internal_has_sig() const { - return this != internal_default_instance() && sig_ != nullptr; +// string location = 4 [json_name = "location"]; +inline void Node::clear_location() { + location_.ClearToEmpty(); } -inline bool SignedBundle::has_sig() const { - return _internal_has_sig(); +inline const std::string& Node::location() const { + // @@protoc_insertion_point(field_get:vega.Node.location) + return _internal_location(); } -inline void SignedBundle::clear_sig() { - if (GetArena() == nullptr && sig_ != nullptr) { - delete sig_; - } - sig_ = nullptr; +inline void Node::set_location(const std::string& value) { + _internal_set_location(value); + // @@protoc_insertion_point(field_set:vega.Node.location) } -inline const ::vega::Signature& SignedBundle::_internal_sig() const { - const ::vega::Signature* p = sig_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_Signature_default_instance_); +inline std::string* Node::mutable_location() { + // @@protoc_insertion_point(field_mutable:vega.Node.location) + return _internal_mutable_location(); } -inline const ::vega::Signature& SignedBundle::sig() const { - // @@protoc_insertion_point(field_get:vega.SignedBundle.sig) - return _internal_sig(); +inline const std::string& Node::_internal_location() const { + return location_.Get(); } -inline void SignedBundle::unsafe_arena_set_allocated_sig( - ::vega::Signature* sig) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sig_); - } - sig_ = sig; - if (sig) { +inline void Node::_internal_set_location(const std::string& value) { - } else { + location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Node::set_location(std::string&& value) { - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.SignedBundle.sig) + location_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Node.location) } -inline ::vega::Signature* SignedBundle::release_sig() { +inline void Node::set_location(const char* value) { + GOOGLE_DCHECK(value != nullptr); - ::vega::Signature* temp = sig_; - sig_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.location) } -inline ::vega::Signature* SignedBundle::unsafe_arena_release_sig() { - // @@protoc_insertion_point(field_release:vega.SignedBundle.sig) +inline void Node::set_location(const char* value, + size_t size) { - ::vega::Signature* temp = sig_; - sig_ = nullptr; - return temp; + location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Node.location) } -inline ::vega::Signature* SignedBundle::_internal_mutable_sig() { +inline std::string* Node::_internal_mutable_location() { - if (sig_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::Signature>(GetArena()); - sig_ = p; - } - return sig_; + return location_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::Signature* SignedBundle::mutable_sig() { - // @@protoc_insertion_point(field_mutable:vega.SignedBundle.sig) - return _internal_mutable_sig(); +inline std::string* Node::release_location() { + // @@protoc_insertion_point(field_release:vega.Node.location) + return location_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void SignedBundle::set_allocated_sig(::vega::Signature* sig) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete sig_; - } - if (sig) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(sig); - if (message_arena != submessage_arena) { - sig = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sig, submessage_arena); - } +inline void Node::set_allocated_location(std::string* location) { + if (location != nullptr) { } else { } - sig_ = sig; - // @@protoc_insertion_point(field_set_allocated:vega.SignedBundle.sig) + location_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), location, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Node.location) } -// ------------------------------------------------------------------- - -// NetworkParameter - -// string key = 1 [json_name = "key"]; -inline void NetworkParameter::clear_key() { - key_.ClearToEmpty(); +// string staked_by_operator = 5 [json_name = "stakedByOperator"]; +inline void Node::clear_staked_by_operator() { + staked_by_operator_.ClearToEmpty(); } -inline const std::string& NetworkParameter::key() const { - // @@protoc_insertion_point(field_get:vega.NetworkParameter.key) - return _internal_key(); +inline const std::string& Node::staked_by_operator() const { + // @@protoc_insertion_point(field_get:vega.Node.staked_by_operator) + return _internal_staked_by_operator(); } -inline void NetworkParameter::set_key(const std::string& value) { - _internal_set_key(value); - // @@protoc_insertion_point(field_set:vega.NetworkParameter.key) +inline void Node::set_staked_by_operator(const std::string& value) { + _internal_set_staked_by_operator(value); + // @@protoc_insertion_point(field_set:vega.Node.staked_by_operator) } -inline std::string* NetworkParameter::mutable_key() { - // @@protoc_insertion_point(field_mutable:vega.NetworkParameter.key) - return _internal_mutable_key(); +inline std::string* Node::mutable_staked_by_operator() { + // @@protoc_insertion_point(field_mutable:vega.Node.staked_by_operator) + return _internal_mutable_staked_by_operator(); } -inline const std::string& NetworkParameter::_internal_key() const { - return key_.Get(); +inline const std::string& Node::_internal_staked_by_operator() const { + return staked_by_operator_.Get(); } -inline void NetworkParameter::_internal_set_key(const std::string& value) { +inline void Node::_internal_set_staked_by_operator(const std::string& value) { - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + staked_by_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void NetworkParameter::set_key(std::string&& value) { +inline void Node::set_staked_by_operator(std::string&& value) { - key_.Set( + staked_by_operator_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.NetworkParameter.key) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.staked_by_operator) } -inline void NetworkParameter::set_key(const char* value) { +inline void Node::set_staked_by_operator(const char* value) { GOOGLE_DCHECK(value != nullptr); - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.NetworkParameter.key) + staked_by_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.staked_by_operator) } -inline void NetworkParameter::set_key(const char* value, +inline void Node::set_staked_by_operator(const char* value, size_t size) { - key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + staked_by_operator_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.NetworkParameter.key) + // @@protoc_insertion_point(field_set_pointer:vega.Node.staked_by_operator) } -inline std::string* NetworkParameter::_internal_mutable_key() { +inline std::string* Node::_internal_mutable_staked_by_operator() { - return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return staked_by_operator_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* NetworkParameter::release_key() { - // @@protoc_insertion_point(field_release:vega.NetworkParameter.key) - return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_staked_by_operator() { + // @@protoc_insertion_point(field_release:vega.Node.staked_by_operator) + return staked_by_operator_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void NetworkParameter::set_allocated_key(std::string* key) { - if (key != nullptr) { +inline void Node::set_allocated_staked_by_operator(std::string* staked_by_operator) { + if (staked_by_operator != nullptr) { } else { } - key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + staked_by_operator_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), staked_by_operator, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.NetworkParameter.key) + // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_by_operator) } -// string value = 2 [json_name = "value"]; -inline void NetworkParameter::clear_value() { - value_.ClearToEmpty(); +// string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; +inline void Node::clear_staked_by_delegates() { + staked_by_delegates_.ClearToEmpty(); } -inline const std::string& NetworkParameter::value() const { - // @@protoc_insertion_point(field_get:vega.NetworkParameter.value) - return _internal_value(); +inline const std::string& Node::staked_by_delegates() const { + // @@protoc_insertion_point(field_get:vega.Node.staked_by_delegates) + return _internal_staked_by_delegates(); } -inline void NetworkParameter::set_value(const std::string& value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:vega.NetworkParameter.value) +inline void Node::set_staked_by_delegates(const std::string& value) { + _internal_set_staked_by_delegates(value); + // @@protoc_insertion_point(field_set:vega.Node.staked_by_delegates) } -inline std::string* NetworkParameter::mutable_value() { - // @@protoc_insertion_point(field_mutable:vega.NetworkParameter.value) - return _internal_mutable_value(); +inline std::string* Node::mutable_staked_by_delegates() { + // @@protoc_insertion_point(field_mutable:vega.Node.staked_by_delegates) + return _internal_mutable_staked_by_delegates(); } -inline const std::string& NetworkParameter::_internal_value() const { - return value_.Get(); +inline const std::string& Node::_internal_staked_by_delegates() const { + return staked_by_delegates_.Get(); } -inline void NetworkParameter::_internal_set_value(const std::string& value) { +inline void Node::_internal_set_staked_by_delegates(const std::string& value) { - value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + staked_by_delegates_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void NetworkParameter::set_value(std::string&& value) { +inline void Node::set_staked_by_delegates(std::string&& value) { - value_.Set( + staked_by_delegates_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.NetworkParameter.value) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.staked_by_delegates) } -inline void NetworkParameter::set_value(const char* value) { +inline void Node::set_staked_by_delegates(const char* value) { GOOGLE_DCHECK(value != nullptr); - value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.NetworkParameter.value) + staked_by_delegates_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.staked_by_delegates) } -inline void NetworkParameter::set_value(const char* value, +inline void Node::set_staked_by_delegates(const char* value, size_t size) { - value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + staked_by_delegates_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.NetworkParameter.value) + // @@protoc_insertion_point(field_set_pointer:vega.Node.staked_by_delegates) } -inline std::string* NetworkParameter::_internal_mutable_value() { +inline std::string* Node::_internal_mutable_staked_by_delegates() { - return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return staked_by_delegates_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* NetworkParameter::release_value() { - // @@protoc_insertion_point(field_release:vega.NetworkParameter.value) - return value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_staked_by_delegates() { + // @@protoc_insertion_point(field_release:vega.Node.staked_by_delegates) + return staked_by_delegates_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void NetworkParameter::set_allocated_value(std::string* value) { - if (value != nullptr) { +inline void Node::set_allocated_staked_by_delegates(std::string* staked_by_delegates) { + if (staked_by_delegates != nullptr) { } else { } - value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, + staked_by_delegates_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), staked_by_delegates, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.NetworkParameter.value) + // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_by_delegates) } -// ------------------------------------------------------------------- +// string staked_total = 7 [json_name = "stakedTotal"]; +inline void Node::clear_staked_total() { + staked_total_.ClearToEmpty(); +} +inline const std::string& Node::staked_total() const { + // @@protoc_insertion_point(field_get:vega.Node.staked_total) + return _internal_staked_total(); +} +inline void Node::set_staked_total(const std::string& value) { + _internal_set_staked_total(value); + // @@protoc_insertion_point(field_set:vega.Node.staked_total) +} +inline std::string* Node::mutable_staked_total() { + // @@protoc_insertion_point(field_mutable:vega.Node.staked_total) + return _internal_mutable_staked_total(); +} +inline const std::string& Node::_internal_staked_total() const { + return staked_total_.Get(); +} +inline void Node::_internal_set_staked_total(const std::string& value) { -// LiquidityOrder + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Node::set_staked_total(std::string&& value) { -// .vega.PeggedReference reference = 1 [json_name = "reference"]; -inline void LiquidityOrder::clear_reference() { - reference_ = 0; + staked_total_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Node.staked_total) } -inline ::vega::PeggedReference LiquidityOrder::_internal_reference() const { - return static_cast< ::vega::PeggedReference >(reference_); +inline void Node::set_staked_total(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.staked_total) } -inline ::vega::PeggedReference LiquidityOrder::reference() const { - // @@protoc_insertion_point(field_get:vega.LiquidityOrder.reference) - return _internal_reference(); +inline void Node::set_staked_total(const char* value, + size_t size) { + + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Node.staked_total) +} +inline std::string* Node::_internal_mutable_staked_total() { + + return staked_total_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Node::release_staked_total() { + // @@protoc_insertion_point(field_release:vega.Node.staked_total) + return staked_total_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Node::set_allocated_staked_total(std::string* staked_total) { + if (staked_total != nullptr) { + + } else { + + } + staked_total_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), staked_total, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_total) } -inline void LiquidityOrder::_internal_set_reference(::vega::PeggedReference value) { - reference_ = value; +// string max_intended_stake = 8 [json_name = "maxIntendedStake"]; +inline void Node::clear_max_intended_stake() { + max_intended_stake_.ClearToEmpty(); } -inline void LiquidityOrder::set_reference(::vega::PeggedReference value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:vega.LiquidityOrder.reference) +inline const std::string& Node::max_intended_stake() const { + // @@protoc_insertion_point(field_get:vega.Node.max_intended_stake) + return _internal_max_intended_stake(); } - -// uint32 proportion = 2 [json_name = "proportion"]; -inline void LiquidityOrder::clear_proportion() { - proportion_ = 0u; +inline void Node::set_max_intended_stake(const std::string& value) { + _internal_set_max_intended_stake(value); + // @@protoc_insertion_point(field_set:vega.Node.max_intended_stake) } -inline ::PROTOBUF_NAMESPACE_ID::uint32 LiquidityOrder::_internal_proportion() const { - return proportion_; +inline std::string* Node::mutable_max_intended_stake() { + // @@protoc_insertion_point(field_mutable:vega.Node.max_intended_stake) + return _internal_mutable_max_intended_stake(); } -inline ::PROTOBUF_NAMESPACE_ID::uint32 LiquidityOrder::proportion() const { - // @@protoc_insertion_point(field_get:vega.LiquidityOrder.proportion) - return _internal_proportion(); +inline const std::string& Node::_internal_max_intended_stake() const { + return max_intended_stake_.Get(); } -inline void LiquidityOrder::_internal_set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void Node::_internal_set_max_intended_stake(const std::string& value) { - proportion_ = value; -} -inline void LiquidityOrder::set_proportion(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_proportion(value); - // @@protoc_insertion_point(field_set:vega.LiquidityOrder.proportion) + max_intended_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void Node::set_max_intended_stake(std::string&& value) { -// int64 offset = 3 [json_name = "offset"]; -inline void LiquidityOrder::clear_offset() { - offset_ = PROTOBUF_LONGLONG(0); + max_intended_stake_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Node.max_intended_stake) } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityOrder::_internal_offset() const { - return offset_; +inline void Node::set_max_intended_stake(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + max_intended_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.max_intended_stake) } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityOrder::offset() const { - // @@protoc_insertion_point(field_get:vega.LiquidityOrder.offset) - return _internal_offset(); +inline void Node::set_max_intended_stake(const char* value, + size_t size) { + + max_intended_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Node.max_intended_stake) } -inline void LiquidityOrder::_internal_set_offset(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline std::string* Node::_internal_mutable_max_intended_stake() { - offset_ = value; + return max_intended_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void LiquidityOrder::set_offset(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_offset(value); - // @@protoc_insertion_point(field_set:vega.LiquidityOrder.offset) +inline std::string* Node::release_max_intended_stake() { + // @@protoc_insertion_point(field_release:vega.Node.max_intended_stake) + return max_intended_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } +inline void Node::set_allocated_max_intended_stake(std::string* max_intended_stake) { + if (max_intended_stake != nullptr) { -// ------------------------------------------------------------------- + } else { -// LiquidityOrderReference + } + max_intended_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), max_intended_stake, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Node.max_intended_stake) +} -// string order_id = 1 [json_name = "orderId"]; -inline void LiquidityOrderReference::clear_order_id() { - order_id_.ClearToEmpty(); +// string pending_stake = 9 [json_name = "pendingStake"]; +inline void Node::clear_pending_stake() { + pending_stake_.ClearToEmpty(); } -inline const std::string& LiquidityOrderReference::order_id() const { - // @@protoc_insertion_point(field_get:vega.LiquidityOrderReference.order_id) - return _internal_order_id(); +inline const std::string& Node::pending_stake() const { + // @@protoc_insertion_point(field_get:vega.Node.pending_stake) + return _internal_pending_stake(); } -inline void LiquidityOrderReference::set_order_id(const std::string& value) { - _internal_set_order_id(value); - // @@protoc_insertion_point(field_set:vega.LiquidityOrderReference.order_id) +inline void Node::set_pending_stake(const std::string& value) { + _internal_set_pending_stake(value); + // @@protoc_insertion_point(field_set:vega.Node.pending_stake) } -inline std::string* LiquidityOrderReference::mutable_order_id() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityOrderReference.order_id) - return _internal_mutable_order_id(); +inline std::string* Node::mutable_pending_stake() { + // @@protoc_insertion_point(field_mutable:vega.Node.pending_stake) + return _internal_mutable_pending_stake(); } -inline const std::string& LiquidityOrderReference::_internal_order_id() const { - return order_id_.Get(); +inline const std::string& Node::_internal_pending_stake() const { + return pending_stake_.Get(); } -inline void LiquidityOrderReference::_internal_set_order_id(const std::string& value) { +inline void Node::_internal_set_pending_stake(const std::string& value) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + pending_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityOrderReference::set_order_id(std::string&& value) { +inline void Node::set_pending_stake(std::string&& value) { - order_id_.Set( + pending_stake_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityOrderReference.order_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Node.pending_stake) } -inline void LiquidityOrderReference::set_order_id(const char* value) { +inline void Node::set_pending_stake(const char* value) { GOOGLE_DCHECK(value != nullptr); - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityOrderReference.order_id) + pending_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.pending_stake) } -inline void LiquidityOrderReference::set_order_id(const char* value, +inline void Node::set_pending_stake(const char* value, size_t size) { - order_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + pending_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityOrderReference.order_id) + // @@protoc_insertion_point(field_set_pointer:vega.Node.pending_stake) } -inline std::string* LiquidityOrderReference::_internal_mutable_order_id() { +inline std::string* Node::_internal_mutable_pending_stake() { - return order_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return pending_stake_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityOrderReference::release_order_id() { - // @@protoc_insertion_point(field_release:vega.LiquidityOrderReference.order_id) - return order_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Node::release_pending_stake() { + // @@protoc_insertion_point(field_release:vega.Node.pending_stake) + return pending_stake_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityOrderReference::set_allocated_order_id(std::string* order_id) { - if (order_id != nullptr) { +inline void Node::set_allocated_pending_stake(std::string* pending_stake) { + if (pending_stake != nullptr) { } else { } - order_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), order_id, + pending_stake_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pending_stake, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityOrderReference.order_id) + // @@protoc_insertion_point(field_set_allocated:vega.Node.pending_stake) } -// .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; -inline bool LiquidityOrderReference::_internal_has_liquidity_order() const { - return this != internal_default_instance() && liquidity_order_ != nullptr; +// .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { +inline bool Node::_internal_has_epoch_data() const { + return this != internal_default_instance() && epoch_data_ != nullptr; } -inline bool LiquidityOrderReference::has_liquidity_order() const { - return _internal_has_liquidity_order(); +inline bool Node::has_epoch_data() const { + return _internal_has_epoch_data(); } -inline void LiquidityOrderReference::clear_liquidity_order() { - if (GetArena() == nullptr && liquidity_order_ != nullptr) { - delete liquidity_order_; +inline void Node::clear_epoch_data() { + if (GetArena() == nullptr && epoch_data_ != nullptr) { + delete epoch_data_; } - liquidity_order_ = nullptr; + epoch_data_ = nullptr; } -inline const ::vega::LiquidityOrder& LiquidityOrderReference::_internal_liquidity_order() const { - const ::vega::LiquidityOrder* p = liquidity_order_; - return p != nullptr ? *p : reinterpret_cast( - ::vega::_LiquidityOrder_default_instance_); +inline const ::vega::EpochData& Node::_internal_epoch_data() const { + const ::vega::EpochData* p = epoch_data_; + return p != nullptr ? *p : reinterpret_cast( + ::vega::_EpochData_default_instance_); } -inline const ::vega::LiquidityOrder& LiquidityOrderReference::liquidity_order() const { - // @@protoc_insertion_point(field_get:vega.LiquidityOrderReference.liquidity_order) - return _internal_liquidity_order(); +inline const ::vega::EpochData& Node::epoch_data() const { + // @@protoc_insertion_point(field_get:vega.Node.epoch_data) + return _internal_epoch_data(); } -inline void LiquidityOrderReference::unsafe_arena_set_allocated_liquidity_order( - ::vega::LiquidityOrder* liquidity_order) { +inline void Node::unsafe_arena_set_allocated_epoch_data( + ::vega::EpochData* epoch_data) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(liquidity_order_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(epoch_data_); } - liquidity_order_ = liquidity_order; - if (liquidity_order) { + epoch_data_ = epoch_data; + if (epoch_data) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.LiquidityOrderReference.liquidity_order) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.Node.epoch_data) } -inline ::vega::LiquidityOrder* LiquidityOrderReference::release_liquidity_order() { +inline ::vega::EpochData* Node::release_epoch_data() { - ::vega::LiquidityOrder* temp = liquidity_order_; - liquidity_order_ = nullptr; + ::vega::EpochData* temp = epoch_data_; + epoch_data_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::vega::LiquidityOrder* LiquidityOrderReference::unsafe_arena_release_liquidity_order() { - // @@protoc_insertion_point(field_release:vega.LiquidityOrderReference.liquidity_order) +inline ::vega::EpochData* Node::unsafe_arena_release_epoch_data() { + // @@protoc_insertion_point(field_release:vega.Node.epoch_data) - ::vega::LiquidityOrder* temp = liquidity_order_; - liquidity_order_ = nullptr; + ::vega::EpochData* temp = epoch_data_; + epoch_data_ = nullptr; return temp; } -inline ::vega::LiquidityOrder* LiquidityOrderReference::_internal_mutable_liquidity_order() { +inline ::vega::EpochData* Node::_internal_mutable_epoch_data() { - if (liquidity_order_ == nullptr) { - auto* p = CreateMaybeMessage<::vega::LiquidityOrder>(GetArena()); - liquidity_order_ = p; + if (epoch_data_ == nullptr) { + auto* p = CreateMaybeMessage<::vega::EpochData>(GetArena()); + epoch_data_ = p; } - return liquidity_order_; + return epoch_data_; } -inline ::vega::LiquidityOrder* LiquidityOrderReference::mutable_liquidity_order() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityOrderReference.liquidity_order) - return _internal_mutable_liquidity_order(); +inline ::vega::EpochData* Node::mutable_epoch_data() { + // @@protoc_insertion_point(field_mutable:vega.Node.epoch_data) + return _internal_mutable_epoch_data(); } -inline void LiquidityOrderReference::set_allocated_liquidity_order(::vega::LiquidityOrder* liquidity_order) { +inline void Node::set_allocated_epoch_data(::vega::EpochData* epoch_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete liquidity_order_; + delete epoch_data_; } - if (liquidity_order) { + if (epoch_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(liquidity_order); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(epoch_data); if (message_arena != submessage_arena) { - liquidity_order = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, liquidity_order, submessage_arena); + epoch_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, epoch_data, submessage_arena); } } else { } - liquidity_order_ = liquidity_order; - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityOrderReference.liquidity_order) + epoch_data_ = epoch_data; + // @@protoc_insertion_point(field_set_allocated:vega.Node.epoch_data) +} + +// .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { +inline void Node::clear_status() { + status_ = 0; +} +inline ::vega::NodeStatus Node::_internal_status() const { + return static_cast< ::vega::NodeStatus >(status_); +} +inline ::vega::NodeStatus Node::status() const { + // @@protoc_insertion_point(field_get:vega.Node.status) + return _internal_status(); +} +inline void Node::_internal_set_status(::vega::NodeStatus value) { + + status_ = value; +} +inline void Node::set_status(::vega::NodeStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:vega.Node.status) +} + +// repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; +inline int Node::_internal_delagations_size() const { + return delagations_.size(); +} +inline int Node::delagations_size() const { + return _internal_delagations_size(); +} +inline void Node::clear_delagations() { + delagations_.Clear(); +} +inline ::vega::Delegation* Node::mutable_delagations(int index) { + // @@protoc_insertion_point(field_mutable:vega.Node.delagations) + return delagations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >* +Node::mutable_delagations() { + // @@protoc_insertion_point(field_mutable_list:vega.Node.delagations) + return &delagations_; +} +inline const ::vega::Delegation& Node::_internal_delagations(int index) const { + return delagations_.Get(index); +} +inline const ::vega::Delegation& Node::delagations(int index) const { + // @@protoc_insertion_point(field_get:vega.Node.delagations) + return _internal_delagations(index); +} +inline ::vega::Delegation* Node::_internal_add_delagations() { + return delagations_.Add(); +} +inline ::vega::Delegation* Node::add_delagations() { + // @@protoc_insertion_point(field_add:vega.Node.delagations) + return _internal_add_delagations(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Delegation >& +Node::delagations() const { + // @@protoc_insertion_point(field_list:vega.Node.delagations) + return delagations_; } // ------------------------------------------------------------------- -// LiquidityProvision +// NodeData -// string id = 1 [json_name = "id"]; -inline void LiquidityProvision::clear_id() { - id_.ClearToEmpty(); +// string staked_total = 1 [json_name = "stakedTotal"]; +inline void NodeData::clear_staked_total() { + staked_total_.ClearToEmpty(); } -inline const std::string& LiquidityProvision::id() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.id) - return _internal_id(); +inline const std::string& NodeData::staked_total() const { + // @@protoc_insertion_point(field_get:vega.NodeData.staked_total) + return _internal_staked_total(); } -inline void LiquidityProvision::set_id(const std::string& value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.id) +inline void NodeData::set_staked_total(const std::string& value) { + _internal_set_staked_total(value); + // @@protoc_insertion_point(field_set:vega.NodeData.staked_total) } -inline std::string* LiquidityProvision::mutable_id() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.id) - return _internal_mutable_id(); +inline std::string* NodeData::mutable_staked_total() { + // @@protoc_insertion_point(field_mutable:vega.NodeData.staked_total) + return _internal_mutable_staked_total(); } -inline const std::string& LiquidityProvision::_internal_id() const { - return id_.Get(); +inline const std::string& NodeData::_internal_staked_total() const { + return staked_total_.Get(); } -inline void LiquidityProvision::_internal_set_id(const std::string& value) { +inline void NodeData::_internal_set_staked_total(const std::string& value) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvision::set_id(std::string&& value) { +inline void NodeData::set_staked_total(std::string&& value) { - id_.Set( + staked_total_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.id) + // @@protoc_insertion_point(field_set_rvalue:vega.NodeData.staked_total) } -inline void LiquidityProvision::set_id(const char* value) { +inline void NodeData::set_staked_total(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.id) + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.NodeData.staked_total) } -inline void LiquidityProvision::set_id(const char* value, +inline void NodeData::set_staked_total(const char* value, size_t size) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + staked_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.id) + // @@protoc_insertion_point(field_set_pointer:vega.NodeData.staked_total) } -inline std::string* LiquidityProvision::_internal_mutable_id() { +inline std::string* NodeData::_internal_mutable_staked_total() { - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return staked_total_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_id() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.id) - return id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* NodeData::release_staked_total() { + // @@protoc_insertion_point(field_release:vega.NodeData.staked_total) + return staked_total_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_id(std::string* id) { - if (id != nullptr) { +inline void NodeData::set_allocated_staked_total(std::string* staked_total) { + if (staked_total != nullptr) { } else { } - id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + staked_total_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), staked_total, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.id) + // @@protoc_insertion_point(field_set_allocated:vega.NodeData.staked_total) } -// string party_id = 2 [json_name = "partyId"]; -inline void LiquidityProvision::clear_party_id() { - party_id_.ClearToEmpty(); +// uint32 total_nodes = 2 [json_name = "totalNodes"]; +inline void NodeData::clear_total_nodes() { + total_nodes_ = 0u; } -inline const std::string& LiquidityProvision::party_id() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.party_id) - return _internal_party_id(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::_internal_total_nodes() const { + return total_nodes_; } -inline void LiquidityProvision::set_party_id(const std::string& value) { - _internal_set_party_id(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.party_id) +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::total_nodes() const { + // @@protoc_insertion_point(field_get:vega.NodeData.total_nodes) + return _internal_total_nodes(); } -inline std::string* LiquidityProvision::mutable_party_id() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.party_id) - return _internal_mutable_party_id(); +inline void NodeData::_internal_set_total_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + total_nodes_ = value; } -inline const std::string& LiquidityProvision::_internal_party_id() const { - return party_id_.Get(); +inline void NodeData::set_total_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_total_nodes(value); + // @@protoc_insertion_point(field_set:vega.NodeData.total_nodes) } -inline void LiquidityProvision::_internal_set_party_id(const std::string& value) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; +inline void NodeData::clear_inactive_nodes() { + inactive_nodes_ = 0u; } -inline void LiquidityProvision::set_party_id(std::string&& value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::_internal_inactive_nodes() const { + return inactive_nodes_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::inactive_nodes() const { + // @@protoc_insertion_point(field_get:vega.NodeData.inactive_nodes) + return _internal_inactive_nodes(); +} +inline void NodeData::_internal_set_inactive_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { - party_id_.Set( + inactive_nodes_ = value; +} +inline void NodeData::set_inactive_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_inactive_nodes(value); + // @@protoc_insertion_point(field_set:vega.NodeData.inactive_nodes) +} + +// uint32 validating_nodes = 4 [json_name = "validatingNodes"]; +inline void NodeData::clear_validating_nodes() { + validating_nodes_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::_internal_validating_nodes() const { + return validating_nodes_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 NodeData::validating_nodes() const { + // @@protoc_insertion_point(field_get:vega.NodeData.validating_nodes) + return _internal_validating_nodes(); +} +inline void NodeData::_internal_set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + validating_nodes_ = value; +} +inline void NodeData::set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_validating_nodes(value); + // @@protoc_insertion_point(field_set:vega.NodeData.validating_nodes) +} + +// float uptime = 5 [json_name = "uptime"]; +inline void NodeData::clear_uptime() { + uptime_ = 0; +} +inline float NodeData::_internal_uptime() const { + return uptime_; +} +inline float NodeData::uptime() const { + // @@protoc_insertion_point(field_get:vega.NodeData.uptime) + return _internal_uptime(); +} +inline void NodeData::_internal_set_uptime(float value) { + + uptime_ = value; +} +inline void NodeData::set_uptime(float value) { + _internal_set_uptime(value); + // @@protoc_insertion_point(field_set:vega.NodeData.uptime) +} + +// ------------------------------------------------------------------- + +// Delegation + +// string party = 1 [json_name = "party"]; +inline void Delegation::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& Delegation::party() const { + // @@protoc_insertion_point(field_get:vega.Delegation.party) + return _internal_party(); +} +inline void Delegation::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.Delegation.party) +} +inline std::string* Delegation::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.Delegation.party) + return _internal_mutable_party(); +} +inline const std::string& Delegation::_internal_party() const { + return party_.Get(); +} +inline void Delegation::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Delegation::set_party(std::string&& value) { + + party_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.party_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Delegation.party) } -inline void LiquidityProvision::set_party_id(const char* value) { +inline void Delegation::set_party(const char* value) { GOOGLE_DCHECK(value != nullptr); - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.party_id) + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Delegation.party) } -inline void LiquidityProvision::set_party_id(const char* value, +inline void Delegation::set_party(const char* value, size_t size) { - party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.party_id) + // @@protoc_insertion_point(field_set_pointer:vega.Delegation.party) } -inline std::string* LiquidityProvision::_internal_mutable_party_id() { +inline std::string* Delegation::_internal_mutable_party() { - return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_party_id() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.party_id) - return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Delegation::release_party() { + // @@protoc_insertion_point(field_release:vega.Delegation.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_party_id(std::string* party_id) { - if (party_id != nullptr) { +inline void Delegation::set_allocated_party(std::string* party) { + if (party != nullptr) { } else { } - party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.party_id) + // @@protoc_insertion_point(field_set_allocated:vega.Delegation.party) } -// int64 created_at = 3 [json_name = "createdAt"]; -inline void LiquidityProvision::clear_created_at() { - created_at_ = PROTOBUF_LONGLONG(0); +// string node_id = 2 [json_name = "nodeId"]; +inline void Delegation::clear_node_id() { + node_id_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::_internal_created_at() const { - return created_at_; +inline const std::string& Delegation::node_id() const { + // @@protoc_insertion_point(field_get:vega.Delegation.node_id) + return _internal_node_id(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::created_at() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.created_at) - return _internal_created_at(); +inline void Delegation::set_node_id(const std::string& value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:vega.Delegation.node_id) } -inline void LiquidityProvision::_internal_set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - - created_at_ = value; +inline std::string* Delegation::mutable_node_id() { + // @@protoc_insertion_point(field_mutable:vega.Delegation.node_id) + return _internal_mutable_node_id(); } -inline void LiquidityProvision::set_created_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_created_at(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.created_at) +inline const std::string& Delegation::_internal_node_id() const { + return node_id_.Get(); } +inline void Delegation::_internal_set_node_id(const std::string& value) { -// int64 updated_at = 4 [json_name = "updatedAt"]; -inline void LiquidityProvision::clear_updated_at() { - updated_at_ = PROTOBUF_LONGLONG(0); + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::_internal_updated_at() const { - return updated_at_; +inline void Delegation::set_node_id(std::string&& value) { + + node_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Delegation.node_id) } -inline ::PROTOBUF_NAMESPACE_ID::int64 LiquidityProvision::updated_at() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.updated_at) - return _internal_updated_at(); +inline void Delegation::set_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Delegation.node_id) } -inline void LiquidityProvision::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Delegation::set_node_id(const char* value, + size_t size) { - updated_at_ = value; + node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Delegation.node_id) } -inline void LiquidityProvision::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_updated_at(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.updated_at) +inline std::string* Delegation::_internal_mutable_node_id() { + + return node_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } +inline std::string* Delegation::release_node_id() { + // @@protoc_insertion_point(field_release:vega.Delegation.node_id) + return node_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Delegation::set_allocated_node_id(std::string* node_id) { + if (node_id != nullptr) { -// string market_id = 5 [json_name = "marketId", (.validator.field) = { -inline void LiquidityProvision::clear_market_id() { - market_id_.ClearToEmpty(); + } else { + + } + node_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Delegation.node_id) } -inline const std::string& LiquidityProvision::market_id() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.market_id) - return _internal_market_id(); + +// string amount = 3 [json_name = "amount"]; +inline void Delegation::clear_amount() { + amount_.ClearToEmpty(); } -inline void LiquidityProvision::set_market_id(const std::string& value) { - _internal_set_market_id(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.market_id) +inline const std::string& Delegation::amount() const { + // @@protoc_insertion_point(field_get:vega.Delegation.amount) + return _internal_amount(); } -inline std::string* LiquidityProvision::mutable_market_id() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.market_id) - return _internal_mutable_market_id(); +inline void Delegation::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.Delegation.amount) } -inline const std::string& LiquidityProvision::_internal_market_id() const { - return market_id_.Get(); +inline std::string* Delegation::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.Delegation.amount) + return _internal_mutable_amount(); } -inline void LiquidityProvision::_internal_set_market_id(const std::string& value) { +inline const std::string& Delegation::_internal_amount() const { + return amount_.Get(); +} +inline void Delegation::_internal_set_amount(const std::string& value) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvision::set_market_id(std::string&& value) { +inline void Delegation::set_amount(std::string&& value) { - market_id_.Set( + amount_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.market_id) + // @@protoc_insertion_point(field_set_rvalue:vega.Delegation.amount) } -inline void LiquidityProvision::set_market_id(const char* value) { +inline void Delegation::set_amount(const char* value) { GOOGLE_DCHECK(value != nullptr); - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.market_id) + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Delegation.amount) } -inline void LiquidityProvision::set_market_id(const char* value, +inline void Delegation::set_amount(const char* value, size_t size) { - market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.market_id) + // @@protoc_insertion_point(field_set_pointer:vega.Delegation.amount) } -inline std::string* LiquidityProvision::_internal_mutable_market_id() { +inline std::string* Delegation::_internal_mutable_amount() { - return market_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_market_id() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.market_id) - return market_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Delegation::release_amount() { + // @@protoc_insertion_point(field_release:vega.Delegation.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_market_id(std::string* market_id) { - if (market_id != nullptr) { +inline void Delegation::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { } else { } - market_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), market_id, + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.market_id) -} - -// uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; -inline void LiquidityProvision::clear_commitment_amount() { - commitment_amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::_internal_commitment_amount() const { - return commitment_amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::commitment_amount() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.commitment_amount) - return _internal_commitment_amount(); -} -inline void LiquidityProvision::_internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - commitment_amount_ = value; -} -inline void LiquidityProvision::set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_commitment_amount(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.commitment_amount) + // @@protoc_insertion_point(field_set_allocated:vega.Delegation.amount) } -// string fee = 7 [json_name = "fee"]; -inline void LiquidityProvision::clear_fee() { - fee_.ClearToEmpty(); +// string epoch_seq = 4 [json_name = "epochSeq"]; +inline void Delegation::clear_epoch_seq() { + epoch_seq_.ClearToEmpty(); } -inline const std::string& LiquidityProvision::fee() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.fee) - return _internal_fee(); +inline const std::string& Delegation::epoch_seq() const { + // @@protoc_insertion_point(field_get:vega.Delegation.epoch_seq) + return _internal_epoch_seq(); } -inline void LiquidityProvision::set_fee(const std::string& value) { - _internal_set_fee(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.fee) +inline void Delegation::set_epoch_seq(const std::string& value) { + _internal_set_epoch_seq(value); + // @@protoc_insertion_point(field_set:vega.Delegation.epoch_seq) } -inline std::string* LiquidityProvision::mutable_fee() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.fee) - return _internal_mutable_fee(); +inline std::string* Delegation::mutable_epoch_seq() { + // @@protoc_insertion_point(field_mutable:vega.Delegation.epoch_seq) + return _internal_mutable_epoch_seq(); } -inline const std::string& LiquidityProvision::_internal_fee() const { - return fee_.Get(); +inline const std::string& Delegation::_internal_epoch_seq() const { + return epoch_seq_.Get(); } -inline void LiquidityProvision::_internal_set_fee(const std::string& value) { +inline void Delegation::_internal_set_epoch_seq(const std::string& value) { - fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvision::set_fee(std::string&& value) { +inline void Delegation::set_epoch_seq(std::string&& value) { - fee_.Set( + epoch_seq_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.fee) + // @@protoc_insertion_point(field_set_rvalue:vega.Delegation.epoch_seq) } -inline void LiquidityProvision::set_fee(const char* value) { +inline void Delegation::set_epoch_seq(const char* value) { GOOGLE_DCHECK(value != nullptr); - fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.fee) + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Delegation.epoch_seq) } -inline void LiquidityProvision::set_fee(const char* value, +inline void Delegation::set_epoch_seq(const char* value, size_t size) { - fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + epoch_seq_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.fee) + // @@protoc_insertion_point(field_set_pointer:vega.Delegation.epoch_seq) } -inline std::string* LiquidityProvision::_internal_mutable_fee() { +inline std::string* Delegation::_internal_mutable_epoch_seq() { - return fee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return epoch_seq_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_fee() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.fee) - return fee_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Delegation::release_epoch_seq() { + // @@protoc_insertion_point(field_release:vega.Delegation.epoch_seq) + return epoch_seq_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_fee(std::string* fee) { - if (fee != nullptr) { +inline void Delegation::set_allocated_epoch_seq(std::string* epoch_seq) { + if (epoch_seq != nullptr) { } else { } - fee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fee, + epoch_seq_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), epoch_seq, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.fee) + // @@protoc_insertion_point(field_set_allocated:vega.Delegation.epoch_seq) } -// repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; -inline int LiquidityProvision::_internal_sells_size() const { - return sells_.size(); -} -inline int LiquidityProvision::sells_size() const { - return _internal_sells_size(); -} -inline void LiquidityProvision::clear_sells() { - sells_.Clear(); -} -inline ::vega::LiquidityOrderReference* LiquidityProvision::mutable_sells(int index) { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.sells) - return sells_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* -LiquidityProvision::mutable_sells() { - // @@protoc_insertion_point(field_mutable_list:vega.LiquidityProvision.sells) - return &sells_; -} -inline const ::vega::LiquidityOrderReference& LiquidityProvision::_internal_sells(int index) const { - return sells_.Get(index); +// ------------------------------------------------------------------- + +// RewardDetails + +// string asset_id = 1 [json_name = "assetId"]; +inline void RewardDetails::clear_asset_id() { + asset_id_.ClearToEmpty(); } -inline const ::vega::LiquidityOrderReference& LiquidityProvision::sells(int index) const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.sells) - return _internal_sells(index); +inline const std::string& RewardDetails::asset_id() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.asset_id) + return _internal_asset_id(); } -inline ::vega::LiquidityOrderReference* LiquidityProvision::_internal_add_sells() { - return sells_.Add(); +inline void RewardDetails::set_asset_id(const std::string& value) { + _internal_set_asset_id(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.asset_id) } -inline ::vega::LiquidityOrderReference* LiquidityProvision::add_sells() { - // @@protoc_insertion_point(field_add:vega.LiquidityProvision.sells) - return _internal_add_sells(); +inline std::string* RewardDetails::mutable_asset_id() { + // @@protoc_insertion_point(field_mutable:vega.RewardDetails.asset_id) + return _internal_mutable_asset_id(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& -LiquidityProvision::sells() const { - // @@protoc_insertion_point(field_list:vega.LiquidityProvision.sells) - return sells_; +inline const std::string& RewardDetails::_internal_asset_id() const { + return asset_id_.Get(); } +inline void RewardDetails::_internal_set_asset_id(const std::string& value) { -// repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; -inline int LiquidityProvision::_internal_buys_size() const { - return buys_.size(); -} -inline int LiquidityProvision::buys_size() const { - return _internal_buys_size(); -} -inline void LiquidityProvision::clear_buys() { - buys_.Clear(); -} -inline ::vega::LiquidityOrderReference* LiquidityProvision::mutable_buys(int index) { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.buys) - return buys_.Mutable(index); + asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >* -LiquidityProvision::mutable_buys() { - // @@protoc_insertion_point(field_mutable_list:vega.LiquidityProvision.buys) - return &buys_; +inline void RewardDetails::set_asset_id(std::string&& value) { + + asset_id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.RewardDetails.asset_id) } -inline const ::vega::LiquidityOrderReference& LiquidityProvision::_internal_buys(int index) const { - return buys_.Get(index); +inline void RewardDetails::set_asset_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardDetails.asset_id) } -inline const ::vega::LiquidityOrderReference& LiquidityProvision::buys(int index) const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.buys) - return _internal_buys(index); +inline void RewardDetails::set_asset_id(const char* value, + size_t size) { + + asset_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.RewardDetails.asset_id) } -inline ::vega::LiquidityOrderReference* LiquidityProvision::_internal_add_buys() { - return buys_.Add(); +inline std::string* RewardDetails::_internal_mutable_asset_id() { + + return asset_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::vega::LiquidityOrderReference* LiquidityProvision::add_buys() { - // @@protoc_insertion_point(field_add:vega.LiquidityProvision.buys) - return _internal_add_buys(); +inline std::string* RewardDetails::release_asset_id() { + // @@protoc_insertion_point(field_release:vega.RewardDetails.asset_id) + return asset_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrderReference >& -LiquidityProvision::buys() const { - // @@protoc_insertion_point(field_list:vega.LiquidityProvision.buys) - return buys_; +inline void RewardDetails::set_allocated_asset_id(std::string* asset_id) { + if (asset_id != nullptr) { + + } else { + + } + asset_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset_id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.RewardDetails.asset_id) } -// string version = 10 [json_name = "version"]; -inline void LiquidityProvision::clear_version() { - version_.ClearToEmpty(); +// string party_id = 2 [json_name = "partyId"]; +inline void RewardDetails::clear_party_id() { + party_id_.ClearToEmpty(); } -inline const std::string& LiquidityProvision::version() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.version) - return _internal_version(); +inline const std::string& RewardDetails::party_id() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.party_id) + return _internal_party_id(); } -inline void LiquidityProvision::set_version(const std::string& value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.version) +inline void RewardDetails::set_party_id(const std::string& value) { + _internal_set_party_id(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.party_id) } -inline std::string* LiquidityProvision::mutable_version() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.version) - return _internal_mutable_version(); +inline std::string* RewardDetails::mutable_party_id() { + // @@protoc_insertion_point(field_mutable:vega.RewardDetails.party_id) + return _internal_mutable_party_id(); } -inline const std::string& LiquidityProvision::_internal_version() const { - return version_.Get(); +inline const std::string& RewardDetails::_internal_party_id() const { + return party_id_.Get(); } -inline void LiquidityProvision::_internal_set_version(const std::string& value) { +inline void RewardDetails::_internal_set_party_id(const std::string& value) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvision::set_version(std::string&& value) { +inline void RewardDetails::set_party_id(std::string&& value) { - version_.Set( + party_id_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.version) + // @@protoc_insertion_point(field_set_rvalue:vega.RewardDetails.party_id) } -inline void LiquidityProvision::set_version(const char* value) { +inline void RewardDetails::set_party_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.version) + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardDetails.party_id) } -inline void LiquidityProvision::set_version(const char* value, +inline void RewardDetails::set_party_id(const char* value, size_t size) { - version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.version) + // @@protoc_insertion_point(field_set_pointer:vega.RewardDetails.party_id) } -inline std::string* LiquidityProvision::_internal_mutable_version() { +inline std::string* RewardDetails::_internal_mutable_party_id() { - return version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return party_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_version() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.version) - return version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RewardDetails::release_party_id() { + // @@protoc_insertion_point(field_release:vega.RewardDetails.party_id) + return party_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_version(std::string* version) { - if (version != nullptr) { +inline void RewardDetails::set_allocated_party_id(std::string* party_id) { + if (party_id != nullptr) { } else { } - version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version, + party_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party_id, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.version) + // @@protoc_insertion_point(field_set_allocated:vega.RewardDetails.party_id) } -// .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; -inline void LiquidityProvision::clear_status() { - status_ = 0; +// uint64 epoch = 3 [json_name = "epoch"]; +inline void RewardDetails::clear_epoch() { + epoch_ = PROTOBUF_ULONGLONG(0); } -inline ::vega::LiquidityProvision_Status LiquidityProvision::_internal_status() const { - return static_cast< ::vega::LiquidityProvision_Status >(status_); +inline ::PROTOBUF_NAMESPACE_ID::uint64 RewardDetails::_internal_epoch() const { + return epoch_; } -inline ::vega::LiquidityProvision_Status LiquidityProvision::status() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.status) - return _internal_status(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 RewardDetails::epoch() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.epoch) + return _internal_epoch(); } -inline void LiquidityProvision::_internal_set_status(::vega::LiquidityProvision_Status value) { +inline void RewardDetails::_internal_set_epoch(::PROTOBUF_NAMESPACE_ID::uint64 value) { - status_ = value; + epoch_ = value; } -inline void LiquidityProvision::set_status(::vega::LiquidityProvision_Status value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.status) +inline void RewardDetails::set_epoch(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_epoch(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.epoch) } -// string reference = 12 [json_name = "reference"]; -inline void LiquidityProvision::clear_reference() { - reference_.ClearToEmpty(); +// string amount = 4 [json_name = "amount"]; +inline void RewardDetails::clear_amount() { + amount_.ClearToEmpty(); } -inline const std::string& LiquidityProvision::reference() const { - // @@protoc_insertion_point(field_get:vega.LiquidityProvision.reference) - return _internal_reference(); +inline const std::string& RewardDetails::amount() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.amount) + return _internal_amount(); } -inline void LiquidityProvision::set_reference(const std::string& value) { - _internal_set_reference(value); - // @@protoc_insertion_point(field_set:vega.LiquidityProvision.reference) +inline void RewardDetails::set_amount(const std::string& value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.amount) } -inline std::string* LiquidityProvision::mutable_reference() { - // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.reference) - return _internal_mutable_reference(); +inline std::string* RewardDetails::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.RewardDetails.amount) + return _internal_mutable_amount(); } -inline const std::string& LiquidityProvision::_internal_reference() const { - return reference_.Get(); +inline const std::string& RewardDetails::_internal_amount() const { + return amount_.Get(); } -inline void LiquidityProvision::_internal_set_reference(const std::string& value) { +inline void RewardDetails::_internal_set_amount(const std::string& value) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void LiquidityProvision::set_reference(std::string&& value) { +inline void RewardDetails::set_amount(std::string&& value) { - reference_.Set( + amount_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.reference) + // @@protoc_insertion_point(field_set_rvalue:vega.RewardDetails.amount) } -inline void LiquidityProvision::set_reference(const char* value) { +inline void RewardDetails::set_amount(const char* value) { GOOGLE_DCHECK(value != nullptr); - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.reference) + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardDetails.amount) } -inline void LiquidityProvision::set_reference(const char* value, +inline void RewardDetails::set_amount(const char* value, size_t size) { - reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.reference) + // @@protoc_insertion_point(field_set_pointer:vega.RewardDetails.amount) } -inline std::string* LiquidityProvision::_internal_mutable_reference() { +inline std::string* RewardDetails::_internal_mutable_amount() { - return reference_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* LiquidityProvision::release_reference() { - // @@protoc_insertion_point(field_release:vega.LiquidityProvision.reference) - return reference_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RewardDetails::release_amount() { + // @@protoc_insertion_point(field_release:vega.RewardDetails.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void LiquidityProvision::set_allocated_reference(std::string* reference) { - if (reference != nullptr) { +inline void RewardDetails::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { } else { } - reference_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reference, + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.reference) + // @@protoc_insertion_point(field_set_allocated:vega.RewardDetails.amount) } -// ------------------------------------------------------------------- - -// EthereumConfig - -// string network_id = 1 [json_name = "networkId"]; -inline void EthereumConfig::clear_network_id() { - network_id_.ClearToEmpty(); +// string percentage_of_total = 5 [json_name = "percentageOfTotal"]; +inline void RewardDetails::clear_percentage_of_total() { + percentage_of_total_.ClearToEmpty(); } -inline const std::string& EthereumConfig::network_id() const { - // @@protoc_insertion_point(field_get:vega.EthereumConfig.network_id) - return _internal_network_id(); +inline const std::string& RewardDetails::percentage_of_total() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.percentage_of_total) + return _internal_percentage_of_total(); } -inline void EthereumConfig::set_network_id(const std::string& value) { - _internal_set_network_id(value); - // @@protoc_insertion_point(field_set:vega.EthereumConfig.network_id) +inline void RewardDetails::set_percentage_of_total(const std::string& value) { + _internal_set_percentage_of_total(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.percentage_of_total) } -inline std::string* EthereumConfig::mutable_network_id() { - // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.network_id) - return _internal_mutable_network_id(); +inline std::string* RewardDetails::mutable_percentage_of_total() { + // @@protoc_insertion_point(field_mutable:vega.RewardDetails.percentage_of_total) + return _internal_mutable_percentage_of_total(); } -inline const std::string& EthereumConfig::_internal_network_id() const { - return network_id_.Get(); +inline const std::string& RewardDetails::_internal_percentage_of_total() const { + return percentage_of_total_.Get(); } -inline void EthereumConfig::_internal_set_network_id(const std::string& value) { +inline void RewardDetails::_internal_set_percentage_of_total(const std::string& value) { - network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + percentage_of_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void EthereumConfig::set_network_id(std::string&& value) { +inline void RewardDetails::set_percentage_of_total(std::string&& value) { - network_id_.Set( + percentage_of_total_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.network_id) + // @@protoc_insertion_point(field_set_rvalue:vega.RewardDetails.percentage_of_total) } -inline void EthereumConfig::set_network_id(const char* value) { +inline void RewardDetails::set_percentage_of_total(const char* value) { GOOGLE_DCHECK(value != nullptr); - network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.network_id) + percentage_of_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardDetails.percentage_of_total) } -inline void EthereumConfig::set_network_id(const char* value, +inline void RewardDetails::set_percentage_of_total(const char* value, size_t size) { - network_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + percentage_of_total_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.network_id) + // @@protoc_insertion_point(field_set_pointer:vega.RewardDetails.percentage_of_total) } -inline std::string* EthereumConfig::_internal_mutable_network_id() { +inline std::string* RewardDetails::_internal_mutable_percentage_of_total() { - return network_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return percentage_of_total_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* EthereumConfig::release_network_id() { - // @@protoc_insertion_point(field_release:vega.EthereumConfig.network_id) - return network_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RewardDetails::release_percentage_of_total() { + // @@protoc_insertion_point(field_release:vega.RewardDetails.percentage_of_total) + return percentage_of_total_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void EthereumConfig::set_allocated_network_id(std::string* network_id) { - if (network_id != nullptr) { +inline void RewardDetails::set_allocated_percentage_of_total(std::string* percentage_of_total) { + if (percentage_of_total != nullptr) { } else { } - network_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), network_id, + percentage_of_total_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), percentage_of_total, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.network_id) + // @@protoc_insertion_point(field_set_allocated:vega.RewardDetails.percentage_of_total) } -// string chain_id = 2 [json_name = "chainId"]; -inline void EthereumConfig::clear_chain_id() { - chain_id_.ClearToEmpty(); +// int64 received_at = 6 [json_name = "receivedAt"]; +inline void RewardDetails::clear_received_at() { + received_at_ = PROTOBUF_LONGLONG(0); } -inline const std::string& EthereumConfig::chain_id() const { - // @@protoc_insertion_point(field_get:vega.EthereumConfig.chain_id) - return _internal_chain_id(); +inline ::PROTOBUF_NAMESPACE_ID::int64 RewardDetails::_internal_received_at() const { + return received_at_; } -inline void EthereumConfig::set_chain_id(const std::string& value) { - _internal_set_chain_id(value); - // @@protoc_insertion_point(field_set:vega.EthereumConfig.chain_id) +inline ::PROTOBUF_NAMESPACE_ID::int64 RewardDetails::received_at() const { + // @@protoc_insertion_point(field_get:vega.RewardDetails.received_at) + return _internal_received_at(); } -inline std::string* EthereumConfig::mutable_chain_id() { - // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.chain_id) - return _internal_mutable_chain_id(); +inline void RewardDetails::_internal_set_received_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + + received_at_ = value; } -inline const std::string& EthereumConfig::_internal_chain_id() const { - return chain_id_.Get(); +inline void RewardDetails::set_received_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_received_at(value); + // @@protoc_insertion_point(field_set:vega.RewardDetails.received_at) } -inline void EthereumConfig::_internal_set_chain_id(const std::string& value) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// ------------------------------------------------------------------- + +// RewardPerAssetDetail + +// string asset = 1 [json_name = "asset"]; +inline void RewardPerAssetDetail::clear_asset() { + asset_.ClearToEmpty(); } -inline void EthereumConfig::set_chain_id(std::string&& value) { +inline const std::string& RewardPerAssetDetail::asset() const { + // @@protoc_insertion_point(field_get:vega.RewardPerAssetDetail.asset) + return _internal_asset(); +} +inline void RewardPerAssetDetail::set_asset(const std::string& value) { + _internal_set_asset(value); + // @@protoc_insertion_point(field_set:vega.RewardPerAssetDetail.asset) +} +inline std::string* RewardPerAssetDetail::mutable_asset() { + // @@protoc_insertion_point(field_mutable:vega.RewardPerAssetDetail.asset) + return _internal_mutable_asset(); +} +inline const std::string& RewardPerAssetDetail::_internal_asset() const { + return asset_.Get(); +} +inline void RewardPerAssetDetail::_internal_set_asset(const std::string& value) { - chain_id_.Set( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPerAssetDetail::set_asset(std::string&& value) { + + asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.chain_id) + // @@protoc_insertion_point(field_set_rvalue:vega.RewardPerAssetDetail.asset) } -inline void EthereumConfig::set_chain_id(const char* value) { +inline void RewardPerAssetDetail::set_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.chain_id) + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardPerAssetDetail.asset) } -inline void EthereumConfig::set_chain_id(const char* value, +inline void RewardPerAssetDetail::set_asset(const char* value, size_t size) { - chain_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.chain_id) + // @@protoc_insertion_point(field_set_pointer:vega.RewardPerAssetDetail.asset) } -inline std::string* EthereumConfig::_internal_mutable_chain_id() { +inline std::string* RewardPerAssetDetail::_internal_mutable_asset() { - return chain_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* EthereumConfig::release_chain_id() { - // @@protoc_insertion_point(field_release:vega.EthereumConfig.chain_id) - return chain_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RewardPerAssetDetail::release_asset() { + // @@protoc_insertion_point(field_release:vega.RewardPerAssetDetail.asset) + return asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void EthereumConfig::set_allocated_chain_id(std::string* chain_id) { - if (chain_id != nullptr) { +inline void RewardPerAssetDetail::set_allocated_asset(std::string* asset) { + if (asset != nullptr) { } else { } - chain_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chain_id, + asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.chain_id) + // @@protoc_insertion_point(field_set_allocated:vega.RewardPerAssetDetail.asset) } -// string bridge_address = 3 [json_name = "bridgeAddress"]; -inline void EthereumConfig::clear_bridge_address() { - bridge_address_.ClearToEmpty(); +// repeated .vega.RewardDetails details = 2 [json_name = "details"]; +inline int RewardPerAssetDetail::_internal_details_size() const { + return details_.size(); } -inline const std::string& EthereumConfig::bridge_address() const { - // @@protoc_insertion_point(field_get:vega.EthereumConfig.bridge_address) - return _internal_bridge_address(); +inline int RewardPerAssetDetail::details_size() const { + return _internal_details_size(); } -inline void EthereumConfig::set_bridge_address(const std::string& value) { - _internal_set_bridge_address(value); - // @@protoc_insertion_point(field_set:vega.EthereumConfig.bridge_address) +inline void RewardPerAssetDetail::clear_details() { + details_.Clear(); } -inline std::string* EthereumConfig::mutable_bridge_address() { - // @@protoc_insertion_point(field_mutable:vega.EthereumConfig.bridge_address) - return _internal_mutable_bridge_address(); +inline ::vega::RewardDetails* RewardPerAssetDetail::mutable_details(int index) { + // @@protoc_insertion_point(field_mutable:vega.RewardPerAssetDetail.details) + return details_.Mutable(index); } -inline const std::string& EthereumConfig::_internal_bridge_address() const { - return bridge_address_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::RewardDetails >* +RewardPerAssetDetail::mutable_details() { + // @@protoc_insertion_point(field_mutable_list:vega.RewardPerAssetDetail.details) + return &details_; +} +inline const ::vega::RewardDetails& RewardPerAssetDetail::_internal_details(int index) const { + return details_.Get(index); +} +inline const ::vega::RewardDetails& RewardPerAssetDetail::details(int index) const { + // @@protoc_insertion_point(field_get:vega.RewardPerAssetDetail.details) + return _internal_details(index); +} +inline ::vega::RewardDetails* RewardPerAssetDetail::_internal_add_details() { + return details_.Add(); +} +inline ::vega::RewardDetails* RewardPerAssetDetail::add_details() { + // @@protoc_insertion_point(field_add:vega.RewardPerAssetDetail.details) + return _internal_add_details(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::RewardDetails >& +RewardPerAssetDetail::details() const { + // @@protoc_insertion_point(field_list:vega.RewardPerAssetDetail.details) + return details_; } -inline void EthereumConfig::_internal_set_bridge_address(const std::string& value) { - bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +// string total_for_asset = 3 [json_name = "totalForAsset"]; +inline void RewardPerAssetDetail::clear_total_for_asset() { + total_for_asset_.ClearToEmpty(); } -inline void EthereumConfig::set_bridge_address(std::string&& value) { +inline const std::string& RewardPerAssetDetail::total_for_asset() const { + // @@protoc_insertion_point(field_get:vega.RewardPerAssetDetail.total_for_asset) + return _internal_total_for_asset(); +} +inline void RewardPerAssetDetail::set_total_for_asset(const std::string& value) { + _internal_set_total_for_asset(value); + // @@protoc_insertion_point(field_set:vega.RewardPerAssetDetail.total_for_asset) +} +inline std::string* RewardPerAssetDetail::mutable_total_for_asset() { + // @@protoc_insertion_point(field_mutable:vega.RewardPerAssetDetail.total_for_asset) + return _internal_mutable_total_for_asset(); +} +inline const std::string& RewardPerAssetDetail::_internal_total_for_asset() const { + return total_for_asset_.Get(); +} +inline void RewardPerAssetDetail::_internal_set_total_for_asset(const std::string& value) { - bridge_address_.Set( + total_for_asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RewardPerAssetDetail::set_total_for_asset(std::string&& value) { + + total_for_asset_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:vega.EthereumConfig.bridge_address) + // @@protoc_insertion_point(field_set_rvalue:vega.RewardPerAssetDetail.total_for_asset) } -inline void EthereumConfig::set_bridge_address(const char* value) { +inline void RewardPerAssetDetail::set_total_for_asset(const char* value) { GOOGLE_DCHECK(value != nullptr); - bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:vega.EthereumConfig.bridge_address) + total_for_asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.RewardPerAssetDetail.total_for_asset) } -inline void EthereumConfig::set_bridge_address(const char* value, +inline void RewardPerAssetDetail::set_total_for_asset(const char* value, size_t size) { - bridge_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + total_for_asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:vega.EthereumConfig.bridge_address) + // @@protoc_insertion_point(field_set_pointer:vega.RewardPerAssetDetail.total_for_asset) } -inline std::string* EthereumConfig::_internal_mutable_bridge_address() { +inline std::string* RewardPerAssetDetail::_internal_mutable_total_for_asset() { - return bridge_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return total_for_asset_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* EthereumConfig::release_bridge_address() { - // @@protoc_insertion_point(field_release:vega.EthereumConfig.bridge_address) - return bridge_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RewardPerAssetDetail::release_total_for_asset() { + // @@protoc_insertion_point(field_release:vega.RewardPerAssetDetail.total_for_asset) + return total_for_asset_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void EthereumConfig::set_allocated_bridge_address(std::string* bridge_address) { - if (bridge_address != nullptr) { +inline void RewardPerAssetDetail::set_allocated_total_for_asset(std::string* total_for_asset) { + if (total_for_asset != nullptr) { } else { } - bridge_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bridge_address, + total_for_asset_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), total_for_asset, GetArena()); - // @@protoc_insertion_point(field_set_allocated:vega.EthereumConfig.bridge_address) -} - -// uint32 confirmations = 4 [json_name = "confirmations"]; -inline void EthereumConfig::clear_confirmations() { - confirmations_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 EthereumConfig::_internal_confirmations() const { - return confirmations_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 EthereumConfig::confirmations() const { - // @@protoc_insertion_point(field_get:vega.EthereumConfig.confirmations) - return _internal_confirmations(); -} -inline void EthereumConfig::_internal_set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value) { - - confirmations_ = value; -} -inline void EthereumConfig::set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_confirmations(value); - // @@protoc_insertion_point(field_set:vega.EthereumConfig.confirmations) + // @@protoc_insertion_point(field_set_allocated:vega.RewardPerAssetDetail.total_for_asset) } #ifdef __GNUC__ @@ -19735,6 +21098,16 @@ inline void EthereumConfig::set_confirmations(::PROTOBUF_NAMESPACE_ID::uint32 va // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -19817,6 +21190,11 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::vega::TransferType>() { return ::vega::TransferType_descriptor(); } +template <> struct is_proto_enum< ::vega::NodeStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::vega::NodeStatus>() { + return ::vega::NodeStatus_descriptor(); +} PROTOBUF_NAMESPACE_CLOSE diff --git a/grpc/clients/cpp/generated/wallet/v1/wallet.pb.cc b/grpc/clients/cpp/generated/wallet/v1/wallet.pb.cc index d0fe8342..3dab5334 100644 --- a/grpc/clients/cpp/generated/wallet/v1/wallet.pb.cc +++ b/grpc/clients/cpp/generated/wallet/v1/wallet.pb.cc @@ -14,7 +14,7 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_ChainEvent_commands_2fv1_2fvalidator_5fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeRegistration_commands_2fv1_2fvalidator_5fcommands_2eproto; diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.pb.go index 18e61209..401382c0 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.pb.go @@ -15,7 +15,7 @@ import ( proto1 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto" v1 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1" v11 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1" - v12 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/oracles/v1" + _ "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/oracles/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -31,64 +31,6 @@ const ( // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 -// Blockchain transaction type -type SubmitTransactionRequest_Type int32 - -const ( - SubmitTransactionRequest_TYPE_UNSPECIFIED SubmitTransactionRequest_Type = 0 - // The transaction will be submitted without waiting for response - SubmitTransactionRequest_TYPE_ASYNC SubmitTransactionRequest_Type = 1 - // The transaction will be submitted, and blocking until the - // tendermint mempool return a response - SubmitTransactionRequest_TYPE_SYNC SubmitTransactionRequest_Type = 2 - // The transaction will submitted, and blocking until the tendermint - // network will have committed it into a block - SubmitTransactionRequest_TYPE_COMMIT SubmitTransactionRequest_Type = 3 -) - -// Enum value maps for SubmitTransactionRequest_Type. -var ( - SubmitTransactionRequest_Type_name = map[int32]string{ - 0: "TYPE_UNSPECIFIED", - 1: "TYPE_ASYNC", - 2: "TYPE_SYNC", - 3: "TYPE_COMMIT", - } - SubmitTransactionRequest_Type_value = map[string]int32{ - "TYPE_UNSPECIFIED": 0, - "TYPE_ASYNC": 1, - "TYPE_SYNC": 2, - "TYPE_COMMIT": 3, - } -) - -func (x SubmitTransactionRequest_Type) Enum() *SubmitTransactionRequest_Type { - p := new(SubmitTransactionRequest_Type) - *p = x - return p -} - -func (x SubmitTransactionRequest_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SubmitTransactionRequest_Type) Descriptor() protoreflect.EnumDescriptor { - return file_api_trading_proto_enumTypes[0].Descriptor() -} - -func (SubmitTransactionRequest_Type) Type() protoreflect.EnumType { - return &file_api_trading_proto_enumTypes[0] -} - -func (x SubmitTransactionRequest_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SubmitTransactionRequest_Type.Descriptor instead. -func (SubmitTransactionRequest_Type) EnumDescriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{2, 0} -} - // Blockchain transaction type type SubmitTransactionV2Request_Type int32 @@ -131,11 +73,11 @@ func (x SubmitTransactionV2Request_Type) String() string { } func (SubmitTransactionV2Request_Type) Descriptor() protoreflect.EnumDescriptor { - return file_api_trading_proto_enumTypes[1].Descriptor() + return file_api_trading_proto_enumTypes[0].Descriptor() } func (SubmitTransactionV2Request_Type) Type() protoreflect.EnumType { - return &file_api_trading_proto_enumTypes[1] + return &file_api_trading_proto_enumTypes[0] } func (x SubmitTransactionV2Request_Type) Number() protoreflect.EnumNumber { @@ -144,7 +86,7 @@ func (x SubmitTransactionV2Request_Type) Number() protoreflect.EnumNumber { // Deprecated: Use SubmitTransactionV2Request_Type.Descriptor instead. func (SubmitTransactionV2Request_Type) EnumDescriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{4, 0} + return file_api_trading_proto_rawDescGZIP(), []int{2, 0} } // Request for a new event sent by the blockchain queue to be propagated on Vega @@ -154,7 +96,7 @@ type PropagateChainEventRequest struct { unknownFields protoimpl.UnknownFields // Chain event - Evt *v1.ChainEvent `protobuf:"bytes,1,opt,name=evt,proto3" json:"evt,omitempty"` + Event []byte `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // Public key PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` // Signature @@ -193,9 +135,9 @@ func (*PropagateChainEventRequest) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{0} } -func (x *PropagateChainEventRequest) GetEvt() *v1.ChainEvent { +func (x *PropagateChainEventRequest) GetEvent() []byte { if x != nil { - return x.Evt + return x.Event } return nil } @@ -264,20 +206,20 @@ func (x *PropagateChainEventResponse) GetSuccess() bool { return false } -// Request for submitting a transaction on Vega -type SubmitTransactionRequest struct { +// Request for submitting a transaction v2 on Vega +type SubmitTransactionV2Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain - Tx *proto1.SignedBundle `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` + Tx *v1.Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response - Type SubmitTransactionRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=api.v1.SubmitTransactionRequest_Type" json:"type,omitempty"` + Type SubmitTransactionV2Request_Type `protobuf:"varint,2,opt,name=type,proto3,enum=api.v1.SubmitTransactionV2Request_Type" json:"type,omitempty"` } -func (x *SubmitTransactionRequest) Reset() { - *x = SubmitTransactionRequest{} +func (x *SubmitTransactionV2Request) Reset() { + *x = SubmitTransactionV2Request{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -285,13 +227,13 @@ func (x *SubmitTransactionRequest) Reset() { } } -func (x *SubmitTransactionRequest) String() string { +func (x *SubmitTransactionV2Request) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitTransactionRequest) ProtoMessage() {} +func (*SubmitTransactionV2Request) ProtoMessage() {} -func (x *SubmitTransactionRequest) ProtoReflect() protoreflect.Message { +func (x *SubmitTransactionV2Request) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -303,27 +245,27 @@ func (x *SubmitTransactionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitTransactionRequest.ProtoReflect.Descriptor instead. -func (*SubmitTransactionRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use SubmitTransactionV2Request.ProtoReflect.Descriptor instead. +func (*SubmitTransactionV2Request) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{2} } -func (x *SubmitTransactionRequest) GetTx() *proto1.SignedBundle { +func (x *SubmitTransactionV2Request) GetTx() *v1.Transaction { if x != nil { return x.Tx } return nil } -func (x *SubmitTransactionRequest) GetType() SubmitTransactionRequest_Type { +func (x *SubmitTransactionV2Request) GetType() SubmitTransactionV2Request_Type { if x != nil { return x.Type } - return SubmitTransactionRequest_TYPE_UNSPECIFIED + return SubmitTransactionV2Request_TYPE_UNSPECIFIED } -// Response for submitting a transaction on Vega -type SubmitTransactionResponse struct { +// Response for submitting a transaction v2 on Vega +type SubmitTransactionV2Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -333,8 +275,8 @@ type SubmitTransactionResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` } -func (x *SubmitTransactionResponse) Reset() { - *x = SubmitTransactionResponse{} +func (x *SubmitTransactionV2Response) Reset() { + *x = SubmitTransactionV2Response{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -342,13 +284,13 @@ func (x *SubmitTransactionResponse) Reset() { } } -func (x *SubmitTransactionResponse) String() string { +func (x *SubmitTransactionV2Response) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitTransactionResponse) ProtoMessage() {} +func (*SubmitTransactionV2Response) ProtoMessage() {} -func (x *SubmitTransactionResponse) ProtoReflect() protoreflect.Message { +func (x *SubmitTransactionV2Response) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -360,32 +302,27 @@ func (x *SubmitTransactionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitTransactionResponse.ProtoReflect.Descriptor instead. -func (*SubmitTransactionResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use SubmitTransactionV2Response.ProtoReflect.Descriptor instead. +func (*SubmitTransactionV2Response) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{3} } -func (x *SubmitTransactionResponse) GetSuccess() bool { +func (x *SubmitTransactionV2Response) GetSuccess() bool { if x != nil { return x.Success } return false } -// Request for submitting a transaction v2 on Vega -type SubmitTransactionV2Request struct { +// Request for the current time of the vega network +type GetVegaTimeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain - Tx *v1.Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` - // Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response - Type SubmitTransactionV2Request_Type `protobuf:"varint,2,opt,name=type,proto3,enum=api.v1.SubmitTransactionV2Request_Type" json:"type,omitempty"` } -func (x *SubmitTransactionV2Request) Reset() { - *x = SubmitTransactionV2Request{} +func (x *GetVegaTimeRequest) Reset() { + *x = GetVegaTimeRequest{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -393,13 +330,13 @@ func (x *SubmitTransactionV2Request) Reset() { } } -func (x *SubmitTransactionV2Request) String() string { +func (x *GetVegaTimeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitTransactionV2Request) ProtoMessage() {} +func (*GetVegaTimeRequest) ProtoMessage() {} -func (x *SubmitTransactionV2Request) ProtoReflect() protoreflect.Message { +func (x *GetVegaTimeRequest) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -411,38 +348,24 @@ func (x *SubmitTransactionV2Request) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitTransactionV2Request.ProtoReflect.Descriptor instead. -func (*SubmitTransactionV2Request) Descriptor() ([]byte, []int) { +// Deprecated: Use GetVegaTimeRequest.ProtoReflect.Descriptor instead. +func (*GetVegaTimeRequest) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{4} } -func (x *SubmitTransactionV2Request) GetTx() *v1.Transaction { - if x != nil { - return x.Tx - } - return nil -} - -func (x *SubmitTransactionV2Request) GetType() SubmitTransactionV2Request_Type { - if x != nil { - return x.Type - } - return SubmitTransactionV2Request_TYPE_UNSPECIFIED -} - -// Response for submitting a transaction v2 on Vega -type SubmitTransactionV2Response struct { +// Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime" +type GetVegaTimeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Success will be true if the transaction was accepted by the node, - // **Important** - success does not mean that the event is confirmed by consensus - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + // Timestamp representation of current VegaTime as represented in + // Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (x *SubmitTransactionV2Response) Reset() { - *x = SubmitTransactionV2Response{} +func (x *GetVegaTimeResponse) Reset() { + *x = GetVegaTimeResponse{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -450,13 +373,13 @@ func (x *SubmitTransactionV2Response) Reset() { } } -func (x *SubmitTransactionV2Response) String() string { +func (x *GetVegaTimeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitTransactionV2Response) ProtoMessage() {} +func (*GetVegaTimeResponse) ProtoMessage() {} -func (x *SubmitTransactionV2Response) ProtoReflect() protoreflect.Message { +func (x *GetVegaTimeResponse) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -468,30 +391,42 @@ func (x *SubmitTransactionV2Response) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitTransactionV2Response.ProtoReflect.Descriptor instead. -func (*SubmitTransactionV2Response) Descriptor() ([]byte, []int) { +// Deprecated: Use GetVegaTimeResponse.ProtoReflect.Descriptor instead. +func (*GetVegaTimeResponse) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{5} } -func (x *SubmitTransactionV2Response) GetSuccess() bool { +func (x *GetVegaTimeResponse) GetTimestamp() int64 { if x != nil { - return x.Success + return x.Timestamp } - return false + return 0 } -// Request for preparing a withdrawal -type PrepareWithdrawRequest struct { +// Request to subscribe to a stream of one or more event types from the Vega event bus +type ObserveEventBusRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // An asset withdrawal - Withdraw *v1.WithdrawSubmission `protobuf:"bytes,1,opt,name=withdraw,proto3" json:"withdraw,omitempty"` + // One or more types of event, required field + Type []v11.BusEventType `protobuf:"varint,1,rep,packed,name=type,proto3,enum=vega.events.v1.BusEventType" json:"type,omitempty"` + // Market identifier, optional field + MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` + // Party identifier, optional field + PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + // Batch size, optional field - + // If not specified, any events received will be sent immediately. If the client is not ready + // for the next data-set, data may be dropped a number of times, and eventually the stream is closed. + // if specified, the first batch will be sent when ready. To receive the next set of events, the client + // must write an `ObserveEventBatch` message on the stream to flush the buffer. + // If no message is received in 5 seconds, the stream is closed. + // Default: 0, send any and all events when they are available. + BatchSize int64 `protobuf:"varint,4,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` } -func (x *PrepareWithdrawRequest) Reset() { - *x = PrepareWithdrawRequest{} +func (x *ObserveEventBusRequest) Reset() { + *x = ObserveEventBusRequest{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -499,13 +434,13 @@ func (x *PrepareWithdrawRequest) Reset() { } } -func (x *PrepareWithdrawRequest) String() string { +func (x *ObserveEventBusRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareWithdrawRequest) ProtoMessage() {} +func (*ObserveEventBusRequest) ProtoMessage() {} -func (x *PrepareWithdrawRequest) ProtoReflect() protoreflect.Message { +func (x *ObserveEventBusRequest) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -517,30 +452,51 @@ func (x *PrepareWithdrawRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PrepareWithdrawRequest.ProtoReflect.Descriptor instead. -func (*PrepareWithdrawRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ObserveEventBusRequest.ProtoReflect.Descriptor instead. +func (*ObserveEventBusRequest) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{6} } -func (x *PrepareWithdrawRequest) GetWithdraw() *v1.WithdrawSubmission { +func (x *ObserveEventBusRequest) GetType() []v11.BusEventType { if x != nil { - return x.Withdraw + return x.Type } return nil } -// Response for preparing a withdrawal -type PrepareWithdrawResponse struct { +func (x *ObserveEventBusRequest) GetMarketId() string { + if x != nil { + return x.MarketId + } + return "" +} + +func (x *ObserveEventBusRequest) GetPartyId() string { + if x != nil { + return x.PartyId + } + return "" +} + +func (x *ObserveEventBusRequest) GetBatchSize() int64 { + if x != nil { + return x.BatchSize + } + return 0 +} + +// Response to a subscribed stream of events from the Vega event bus +type ObserveEventBusResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` + // One or more events + Events []*v11.BusEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } -func (x *PrepareWithdrawResponse) Reset() { - *x = PrepareWithdrawResponse{} +func (x *ObserveEventBusResponse) Reset() { + *x = ObserveEventBusResponse{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -548,13 +504,13 @@ func (x *PrepareWithdrawResponse) Reset() { } } -func (x *PrepareWithdrawResponse) String() string { +func (x *ObserveEventBusResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareWithdrawResponse) ProtoMessage() {} +func (*ObserveEventBusResponse) ProtoMessage() {} -func (x *PrepareWithdrawResponse) ProtoReflect() protoreflect.Message { +func (x *ObserveEventBusResponse) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -566,32 +522,27 @@ func (x *PrepareWithdrawResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PrepareWithdrawResponse.ProtoReflect.Descriptor instead. -func (*PrepareWithdrawResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ObserveEventBusResponse.ProtoReflect.Descriptor instead. +func (*ObserveEventBusResponse) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{7} } -func (x *PrepareWithdrawResponse) GetBlob() []byte { +func (x *ObserveEventBusResponse) GetEvents() []*v11.BusEvent { if x != nil { - return x.Blob + return x.Events } return nil } -// Response for preparing an order submission -type PrepareSubmitOrderResponse struct { +// A a request for statistics about the Vega network +type StatisticsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` - // Submission identifier (order reference) - SubmitId string `protobuf:"bytes,2,opt,name=submit_id,json=submitId,proto3" json:"submit_id,omitempty"` } -func (x *PrepareSubmitOrderResponse) Reset() { - *x = PrepareSubmitOrderResponse{} +func (x *StatisticsRequest) Reset() { + *x = StatisticsRequest{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -599,13 +550,13 @@ func (x *PrepareSubmitOrderResponse) Reset() { } } -func (x *PrepareSubmitOrderResponse) String() string { +func (x *StatisticsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareSubmitOrderResponse) ProtoMessage() {} +func (*StatisticsRequest) ProtoMessage() {} -func (x *PrepareSubmitOrderResponse) ProtoReflect() protoreflect.Message { +func (x *StatisticsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -617,37 +568,21 @@ func (x *PrepareSubmitOrderResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PrepareSubmitOrderResponse.ProtoReflect.Descriptor instead. -func (*PrepareSubmitOrderResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead. +func (*StatisticsRequest) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{8} } -func (x *PrepareSubmitOrderResponse) GetBlob() []byte { - if x != nil { - return x.Blob - } - return nil -} - -func (x *PrepareSubmitOrderResponse) GetSubmitId() string { - if x != nil { - return x.SubmitId - } - return "" -} - -// Response for preparing an order cancellation -type PrepareCancelOrderResponse struct { +type StatisticsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` + Statistics *Statistics `protobuf:"bytes,1,opt,name=statistics,proto3" json:"statistics,omitempty"` } -func (x *PrepareCancelOrderResponse) Reset() { - *x = PrepareCancelOrderResponse{} +func (x *StatisticsResponse) Reset() { + *x = StatisticsResponse{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -655,13 +590,13 @@ func (x *PrepareCancelOrderResponse) Reset() { } } -func (x *PrepareCancelOrderResponse) String() string { +func (x *StatisticsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareCancelOrderResponse) ProtoMessage() {} +func (*StatisticsResponse) ProtoMessage() {} -func (x *PrepareCancelOrderResponse) ProtoReflect() protoreflect.Message { +func (x *StatisticsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -673,30 +608,93 @@ func (x *PrepareCancelOrderResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PrepareCancelOrderResponse.ProtoReflect.Descriptor instead. -func (*PrepareCancelOrderResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use StatisticsResponse.ProtoReflect.Descriptor instead. +func (*StatisticsResponse) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{9} } -func (x *PrepareCancelOrderResponse) GetBlob() []byte { +func (x *StatisticsResponse) GetStatistics() *Statistics { if x != nil { - return x.Blob + return x.Statistics } return nil } -// Response for preparing an order amendment -type PrepareAmendOrderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction. - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` -} - -func (x *PrepareAmendOrderResponse) Reset() { - *x = PrepareAmendOrderResponse{} +// Vega domain specific statistics as reported by the node the caller is connected to +type Statistics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current block height as reported by the Vega blockchain + BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Current backlog length (number of transactions) that are waiting to be included in a block + BacklogLength uint64 `protobuf:"varint,2,opt,name=backlog_length,json=backlogLength,proto3" json:"backlog_length,omitempty"` + // Total number of connected peers to this node + TotalPeers uint64 `protobuf:"varint,3,opt,name=total_peers,json=totalPeers,proto3" json:"total_peers,omitempty"` + // Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision + GenesisTime string `protobuf:"bytes,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` + // Current system date and time formatted in ISO-8601 datetime format with nanosecond precision + CurrentTime string `protobuf:"bytes,5,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"` + // Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision + VegaTime string `protobuf:"bytes,6,opt,name=vega_time,json=vegaTime,proto3" json:"vega_time,omitempty"` + // Status of the connection to the Vega blockchain + // - See [`ChainStatus`](#vega.ChainStatus) + Status proto1.ChainStatus `protobuf:"varint,7,opt,name=status,proto3,enum=vega.ChainStatus" json:"status,omitempty"` + // Transactions per block + TxPerBlock uint64 `protobuf:"varint,8,opt,name=tx_per_block,json=txPerBlock,proto3" json:"tx_per_block,omitempty"` + // Average transaction size in bytes + AverageTxBytes uint64 `protobuf:"varint,9,opt,name=average_tx_bytes,json=averageTxBytes,proto3" json:"average_tx_bytes,omitempty"` + // Average orders per block + AverageOrdersPerBlock uint64 `protobuf:"varint,10,opt,name=average_orders_per_block,json=averageOrdersPerBlock,proto3" json:"average_orders_per_block,omitempty"` + // Trades emitted per second + TradesPerSecond uint64 `protobuf:"varint,11,opt,name=trades_per_second,json=tradesPerSecond,proto3" json:"trades_per_second,omitempty"` + // Orders processed per second + OrdersPerSecond uint64 `protobuf:"varint,12,opt,name=orders_per_second,json=ordersPerSecond,proto3" json:"orders_per_second,omitempty"` + // Total markets on this Vega network + TotalMarkets uint64 `protobuf:"varint,13,opt,name=total_markets,json=totalMarkets,proto3" json:"total_markets,omitempty"` + // Total number of order amendments since genesis (on all markets) + TotalAmendOrder uint64 `protobuf:"varint,16,opt,name=total_amend_order,json=totalAmendOrder,proto3" json:"total_amend_order,omitempty"` + // Total number of order cancellations since genesis (on all markets) + TotalCancelOrder uint64 `protobuf:"varint,17,opt,name=total_cancel_order,json=totalCancelOrder,proto3" json:"total_cancel_order,omitempty"` + // Total number of order submissions since genesis (on all markets) + TotalCreateOrder uint64 `protobuf:"varint,18,opt,name=total_create_order,json=totalCreateOrder,proto3" json:"total_create_order,omitempty"` + // Total number of orders processed since genesis (on all markets) + TotalOrders uint64 `protobuf:"varint,19,opt,name=total_orders,json=totalOrders,proto3" json:"total_orders,omitempty"` + // Total number of trades emitted since genesis (on all markets) + TotalTrades uint64 `protobuf:"varint,20,opt,name=total_trades,json=totalTrades,proto3" json:"total_trades,omitempty"` + // Current number of stream subscribers to order data + OrderSubscriptions uint32 `protobuf:"varint,21,opt,name=order_subscriptions,json=orderSubscriptions,proto3" json:"order_subscriptions,omitempty"` + // Current number of stream subscribers to trade data + TradeSubscriptions uint32 `protobuf:"varint,22,opt,name=trade_subscriptions,json=tradeSubscriptions,proto3" json:"trade_subscriptions,omitempty"` + // Current number of stream subscribers to candle-stick data + CandleSubscriptions uint32 `protobuf:"varint,23,opt,name=candle_subscriptions,json=candleSubscriptions,proto3" json:"candle_subscriptions,omitempty"` + // Current number of stream subscribers to market depth data + MarketDepthSubscriptions uint32 `protobuf:"varint,24,opt,name=market_depth_subscriptions,json=marketDepthSubscriptions,proto3" json:"market_depth_subscriptions,omitempty"` + // Current number of stream subscribers to positions data + PositionsSubscriptions uint32 `protobuf:"varint,25,opt,name=positions_subscriptions,json=positionsSubscriptions,proto3" json:"positions_subscriptions,omitempty"` + // Current number of stream subscribers to account data + AccountSubscriptions uint32 `protobuf:"varint,26,opt,name=account_subscriptions,json=accountSubscriptions,proto3" json:"account_subscriptions,omitempty"` + // Current number of stream subscribers to market data + MarketDataSubscriptions uint32 `protobuf:"varint,27,opt,name=market_data_subscriptions,json=marketDataSubscriptions,proto3" json:"market_data_subscriptions,omitempty"` + // The version hash of the Vega node software + AppVersionHash string `protobuf:"bytes,28,opt,name=app_version_hash,json=appVersionHash,proto3" json:"app_version_hash,omitempty"` + // The version of the Vega node software + AppVersion string `protobuf:"bytes,29,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` + // The version of the underlying Vega blockchain + ChainVersion string `protobuf:"bytes,30,opt,name=chain_version,json=chainVersion,proto3" json:"chain_version,omitempty"` + // Current block duration, in nanoseconds + BlockDuration uint64 `protobuf:"varint,31,opt,name=block_duration,json=blockDuration,proto3" json:"block_duration,omitempty"` + // Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision + Uptime string `protobuf:"bytes,32,opt,name=uptime,proto3" json:"uptime,omitempty"` + // Unique identifier for the underlying Vega blockchain + ChainId string `protobuf:"bytes,33,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Current number of stream subscribers to market depth update data + MarketDepthUpdatesSubscriptions uint32 `protobuf:"varint,34,opt,name=market_depth_updates_subscriptions,json=marketDepthUpdatesSubscriptions,proto3" json:"market_depth_updates_subscriptions,omitempty"` +} + +func (x *Statistics) Reset() { + *x = Statistics{} if protoimpl.UnsafeEnabled { mi := &file_api_trading_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -704,13 +702,13 @@ func (x *PrepareAmendOrderResponse) Reset() { } } -func (x *PrepareAmendOrderResponse) String() string { +func (x *Statistics) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrepareAmendOrderResponse) ProtoMessage() {} +func (*Statistics) ProtoMessage() {} -func (x *PrepareAmendOrderResponse) ProtoReflect() protoreflect.Message { +func (x *Statistics) ProtoReflect() protoreflect.Message { mi := &file_api_trading_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -722,427 +720,260 @@ func (x *PrepareAmendOrderResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PrepareAmendOrderResponse.ProtoReflect.Descriptor instead. -func (*PrepareAmendOrderResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use Statistics.ProtoReflect.Descriptor instead. +func (*Statistics) Descriptor() ([]byte, []int) { return file_api_trading_proto_rawDescGZIP(), []int{10} } -func (x *PrepareAmendOrderResponse) GetBlob() []byte { +func (x *Statistics) GetBlockHeight() uint64 { if x != nil { - return x.Blob + return x.BlockHeight } - return nil + return 0 } -// Request to submit a new order -type PrepareSubmitOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *Statistics) GetBacklogLength() uint64 { + if x != nil { + return x.BacklogLength + } + return 0 +} - // An order submission - Submission *v1.OrderSubmission `protobuf:"bytes,1,opt,name=submission,proto3" json:"submission,omitempty"` +func (x *Statistics) GetTotalPeers() uint64 { + if x != nil { + return x.TotalPeers + } + return 0 } -func (x *PrepareSubmitOrderRequest) Reset() { - *x = PrepareSubmitOrderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetGenesisTime() string { + if x != nil { + return x.GenesisTime } + return "" } -func (x *PrepareSubmitOrderRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Statistics) GetCurrentTime() string { + if x != nil { + return x.CurrentTime + } + return "" } -func (*PrepareSubmitOrderRequest) ProtoMessage() {} +func (x *Statistics) GetVegaTime() string { + if x != nil { + return x.VegaTime + } + return "" +} -func (x *PrepareSubmitOrderRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetStatus() proto1.ChainStatus { + if x != nil { + return x.Status } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareSubmitOrderRequest.ProtoReflect.Descriptor instead. -func (*PrepareSubmitOrderRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{11} + return proto1.ChainStatus_CHAIN_STATUS_UNSPECIFIED } -func (x *PrepareSubmitOrderRequest) GetSubmission() *v1.OrderSubmission { +func (x *Statistics) GetTxPerBlock() uint64 { if x != nil { - return x.Submission + return x.TxPerBlock } - return nil -} - -// Request to cancel an existing order -type PrepareCancelOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An order cancellation - Cancellation *v1.OrderCancellation `protobuf:"bytes,1,opt,name=cancellation,proto3" json:"cancellation,omitempty"` + return 0 } -func (x *PrepareCancelOrderRequest) Reset() { - *x = PrepareCancelOrderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetAverageTxBytes() uint64 { + if x != nil { + return x.AverageTxBytes } + return 0 } -func (x *PrepareCancelOrderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareCancelOrderRequest) ProtoMessage() {} - -func (x *PrepareCancelOrderRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetAverageOrdersPerBlock() uint64 { + if x != nil { + return x.AverageOrdersPerBlock } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareCancelOrderRequest.ProtoReflect.Descriptor instead. -func (*PrepareCancelOrderRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{12} + return 0 } -func (x *PrepareCancelOrderRequest) GetCancellation() *v1.OrderCancellation { +func (x *Statistics) GetTradesPerSecond() uint64 { if x != nil { - return x.Cancellation + return x.TradesPerSecond } - return nil -} - -// Request to amend an existing order -type PrepareAmendOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An order amendment - Amendment *v1.OrderAmendment `protobuf:"bytes,1,opt,name=amendment,proto3" json:"amendment,omitempty"` + return 0 } -func (x *PrepareAmendOrderRequest) Reset() { - *x = PrepareAmendOrderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetOrdersPerSecond() uint64 { + if x != nil { + return x.OrdersPerSecond } + return 0 } -func (x *PrepareAmendOrderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareAmendOrderRequest) ProtoMessage() {} - -func (x *PrepareAmendOrderRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetTotalMarkets() uint64 { + if x != nil { + return x.TotalMarkets } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareAmendOrderRequest.ProtoReflect.Descriptor instead. -func (*PrepareAmendOrderRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{13} + return 0 } -func (x *PrepareAmendOrderRequest) GetAmendment() *v1.OrderAmendment { +func (x *Statistics) GetTotalAmendOrder() uint64 { if x != nil { - return x.Amendment + return x.TotalAmendOrder } - return nil -} - -// Request for a list of all assets enabled on Vega -type AssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + return 0 } -func (x *AssetsRequest) Reset() { - *x = AssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetTotalCancelOrder() uint64 { + if x != nil { + return x.TotalCancelOrder } + return 0 } -func (x *AssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AssetsRequest) ProtoMessage() {} - -func (x *AssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetTotalCreateOrder() uint64 { + if x != nil { + return x.TotalCreateOrder } - return mi.MessageOf(x) -} - -// Deprecated: Use AssetsRequest.ProtoReflect.Descriptor instead. -func (*AssetsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{14} -} - -// Response for a list of all assets enabled on Vega -type AssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more assets - Assets []*proto1.Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` + return 0 } -func (x *AssetsResponse) Reset() { - *x = AssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetTotalOrders() uint64 { + if x != nil { + return x.TotalOrders } + return 0 } -func (x *AssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AssetsResponse) ProtoMessage() {} - -func (x *AssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetTotalTrades() uint64 { + if x != nil { + return x.TotalTrades } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use AssetsResponse.ProtoReflect.Descriptor instead. -func (*AssetsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{15} +func (x *Statistics) GetOrderSubscriptions() uint32 { + if x != nil { + return x.OrderSubscriptions + } + return 0 } -func (x *AssetsResponse) GetAssets() []*proto1.Asset { +func (x *Statistics) GetTradeSubscriptions() uint32 { if x != nil { - return x.Assets + return x.TradeSubscriptions } - return nil + return 0 } -// Request for an asset given an asset identifier -type AssetByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Asset identifier, required field - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +func (x *Statistics) GetCandleSubscriptions() uint32 { + if x != nil { + return x.CandleSubscriptions + } + return 0 } -func (x *AssetByIDRequest) Reset() { - *x = AssetByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetMarketDepthSubscriptions() uint32 { + if x != nil { + return x.MarketDepthSubscriptions } + return 0 } -func (x *AssetByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Statistics) GetPositionsSubscriptions() uint32 { + if x != nil { + return x.PositionsSubscriptions + } + return 0 } -func (*AssetByIDRequest) ProtoMessage() {} - -func (x *AssetByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetAccountSubscriptions() uint32 { + if x != nil { + return x.AccountSubscriptions } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use AssetByIDRequest.ProtoReflect.Descriptor instead. -func (*AssetByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{16} +func (x *Statistics) GetMarketDataSubscriptions() uint32 { + if x != nil { + return x.MarketDataSubscriptions + } + return 0 } -func (x *AssetByIDRequest) GetId() string { +func (x *Statistics) GetAppVersionHash() string { if x != nil { - return x.Id + return x.AppVersionHash } return "" } -// Response for an asset given an asset identifier -type AssetByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An asset record, if found - Asset *proto1.Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` -} - -func (x *AssetByIDResponse) Reset() { - *x = AssetByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetAppVersion() string { + if x != nil { + return x.AppVersion } + return "" } -func (x *AssetByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AssetByIDResponse) ProtoMessage() {} - -func (x *AssetByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetChainVersion() string { + if x != nil { + return x.ChainVersion } - return mi.MessageOf(x) -} - -// Deprecated: Use AssetByIDResponse.ProtoReflect.Descriptor instead. -func (*AssetByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{17} + return "" } -func (x *AssetByIDResponse) GetAsset() *proto1.Asset { +func (x *Statistics) GetBlockDuration() uint64 { if x != nil { - return x.Asset + return x.BlockDuration } - return nil -} - -// Request to specify the identifier of the resource we want to retrieve aggregated signatures for -type GetNodeSignaturesAggregateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource identifier, required field - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + return 0 } -func (x *GetNodeSignaturesAggregateRequest) Reset() { - *x = GetNodeSignaturesAggregateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Statistics) GetUptime() string { + if x != nil { + return x.Uptime } + return "" } -func (x *GetNodeSignaturesAggregateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNodeSignaturesAggregateRequest) ProtoMessage() {} - -func (x *GetNodeSignaturesAggregateRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Statistics) GetChainId() string { + if x != nil { + return x.ChainId } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNodeSignaturesAggregateRequest.ProtoReflect.Descriptor instead. -func (*GetNodeSignaturesAggregateRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{18} + return "" } -func (x *GetNodeSignaturesAggregateRequest) GetId() string { +func (x *Statistics) GetMarketDepthUpdatesSubscriptions() uint32 { if x != nil { - return x.Id + return x.MarketDepthUpdatesSubscriptions } - return "" + return 0 } -// Response to specify the identifier of the resource we want to retrieve aggregated signatures for -type GetNodeSignaturesAggregateResponse struct { +// A request to get the height of the very last block processed +// by tendermint +type LastBlockHeightRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // A list of 0 or more signatures - Signatures []*v1.NodeSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` } -func (x *GetNodeSignaturesAggregateResponse) Reset() { - *x = GetNodeSignaturesAggregateResponse{} +func (x *LastBlockHeightRequest) Reset() { + *x = LastBlockHeightRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[19] + mi := &file_api_trading_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetNodeSignaturesAggregateResponse) String() string { +func (x *LastBlockHeightRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetNodeSignaturesAggregateResponse) ProtoMessage() {} +func (*LastBlockHeightRequest) ProtoMessage() {} -func (x *GetNodeSignaturesAggregateResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[19] +func (x *LastBlockHeightRequest) ProtoReflect() protoreflect.Message { + mi := &file_api_trading_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1153,45 +984,38 @@ func (x *GetNodeSignaturesAggregateResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetNodeSignaturesAggregateResponse.ProtoReflect.Descriptor instead. -func (*GetNodeSignaturesAggregateResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{19} -} - -func (x *GetNodeSignaturesAggregateResponse) GetSignatures() []*v1.NodeSignature { - if x != nil { - return x.Signatures - } - return nil +// Deprecated: Use LastBlockHeightRequest.ProtoReflect.Descriptor instead. +func (*LastBlockHeightRequest) Descriptor() ([]byte, []int) { + return file_api_trading_proto_rawDescGZIP(), []int{11} } -// Optional proposal state -type OptionalProposalState struct { +// A response with the height of the last block processed by +// tendermint +type LastBlockHeightResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Proposal state value - Value proto1.Proposal_State `protobuf:"varint,1,opt,name=value,proto3,enum=vega.Proposal_State" json:"value,omitempty"` + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func (x *OptionalProposalState) Reset() { - *x = OptionalProposalState{} +func (x *LastBlockHeightResponse) Reset() { + *x = LastBlockHeightResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[20] + mi := &file_api_trading_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *OptionalProposalState) String() string { +func (x *LastBlockHeightResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OptionalProposalState) ProtoMessage() {} +func (*LastBlockHeightResponse) ProtoMessage() {} -func (x *OptionalProposalState) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[20] +func (x *LastBlockHeightResponse) ProtoReflect() protoreflect.Message { + mi := &file_api_trading_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1202,9808 +1026,293 @@ func (x *OptionalProposalState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OptionalProposalState.ProtoReflect.Descriptor instead. -func (*OptionalProposalState) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{20} +// Deprecated: Use LastBlockHeightResponse.ProtoReflect.Descriptor instead. +func (*LastBlockHeightResponse) Descriptor() ([]byte, []int) { + return file_api_trading_proto_rawDescGZIP(), []int{12} } -func (x *OptionalProposalState) GetValue() proto1.Proposal_State { +func (x *LastBlockHeightResponse) GetHeight() uint64 { if x != nil { - return x.Value + return x.Height } - return proto1.Proposal_STATE_UNSPECIFIED + return 0 } -// Request for a list of proposals -type GetProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,1,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} +var File_api_trading_proto protoreflect.FileDescriptor -func (x *GetProposalsRequest) Reset() { - *x = GetProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalsRequest) ProtoMessage() {} - -func (x *GetProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalsRequest.ProtoReflect.Descriptor instead. -func (*GetProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{21} -} - -func (x *GetProposalsRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of proposals -type GetProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetProposalsResponse) Reset() { - *x = GetProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalsResponse) ProtoMessage() {} - -func (x *GetProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalsResponse.ProtoReflect.Descriptor instead. -func (*GetProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{22} -} - -func (x *GetProposalsResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a list of proposals for a party -type GetProposalsByPartyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Optional proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,2,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} - -func (x *GetProposalsByPartyRequest) Reset() { - *x = GetProposalsByPartyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalsByPartyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalsByPartyRequest) ProtoMessage() {} - -func (x *GetProposalsByPartyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalsByPartyRequest.ProtoReflect.Descriptor instead. -func (*GetProposalsByPartyRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{23} -} - -func (x *GetProposalsByPartyRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *GetProposalsByPartyRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of proposals for a party -type GetProposalsByPartyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetProposalsByPartyResponse) Reset() { - *x = GetProposalsByPartyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalsByPartyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalsByPartyResponse) ProtoMessage() {} - -func (x *GetProposalsByPartyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalsByPartyResponse.ProtoReflect.Descriptor instead. -func (*GetProposalsByPartyResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{24} -} - -func (x *GetProposalsByPartyResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a list of votes for a party -type GetVotesByPartyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *GetVotesByPartyRequest) Reset() { - *x = GetVotesByPartyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVotesByPartyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVotesByPartyRequest) ProtoMessage() {} - -func (x *GetVotesByPartyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVotesByPartyRequest.ProtoReflect.Descriptor instead. -func (*GetVotesByPartyRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{25} -} - -func (x *GetVotesByPartyRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// Response for a list of votes for a party -type GetVotesByPartyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more votes - Votes []*proto1.Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` -} - -func (x *GetVotesByPartyResponse) Reset() { - *x = GetVotesByPartyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVotesByPartyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVotesByPartyResponse) ProtoMessage() {} - -func (x *GetVotesByPartyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVotesByPartyResponse.ProtoReflect.Descriptor instead. -func (*GetVotesByPartyResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{26} -} - -func (x *GetVotesByPartyResponse) GetVotes() []*proto1.Vote { - if x != nil { - return x.Votes - } - return nil -} - -// Request for a list of new market proposals -type GetNewMarketProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,1,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} - -func (x *GetNewMarketProposalsRequest) Reset() { - *x = GetNewMarketProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNewMarketProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNewMarketProposalsRequest) ProtoMessage() {} - -func (x *GetNewMarketProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNewMarketProposalsRequest.ProtoReflect.Descriptor instead. -func (*GetNewMarketProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{27} -} - -func (x *GetNewMarketProposalsRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of new market proposals -type GetNewMarketProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetNewMarketProposalsResponse) Reset() { - *x = GetNewMarketProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNewMarketProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNewMarketProposalsResponse) ProtoMessage() {} - -func (x *GetNewMarketProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNewMarketProposalsResponse.ProtoReflect.Descriptor instead. -func (*GetNewMarketProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{28} -} - -func (x *GetNewMarketProposalsResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a list of update market proposals -type GetUpdateMarketProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,2,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} - -func (x *GetUpdateMarketProposalsRequest) Reset() { - *x = GetUpdateMarketProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUpdateMarketProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUpdateMarketProposalsRequest) ProtoMessage() {} - -func (x *GetUpdateMarketProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUpdateMarketProposalsRequest.ProtoReflect.Descriptor instead. -func (*GetUpdateMarketProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{29} -} - -func (x *GetUpdateMarketProposalsRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *GetUpdateMarketProposalsRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of update market proposals -type GetUpdateMarketProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetUpdateMarketProposalsResponse) Reset() { - *x = GetUpdateMarketProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUpdateMarketProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUpdateMarketProposalsResponse) ProtoMessage() {} - -func (x *GetUpdateMarketProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUpdateMarketProposalsResponse.ProtoReflect.Descriptor instead. -func (*GetUpdateMarketProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{30} -} - -func (x *GetUpdateMarketProposalsResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a list of network parameter proposals -type GetNetworkParametersProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,1,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} - -func (x *GetNetworkParametersProposalsRequest) Reset() { - *x = GetNetworkParametersProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNetworkParametersProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNetworkParametersProposalsRequest) ProtoMessage() {} - -func (x *GetNetworkParametersProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNetworkParametersProposalsRequest.ProtoReflect.Descriptor instead. -func (*GetNetworkParametersProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{31} -} - -func (x *GetNetworkParametersProposalsRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of network parameter proposals -type GetNetworkParametersProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetNetworkParametersProposalsResponse) Reset() { - *x = GetNetworkParametersProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNetworkParametersProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNetworkParametersProposalsResponse) ProtoMessage() {} - -func (x *GetNetworkParametersProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNetworkParametersProposalsResponse.ProtoReflect.Descriptor instead. -func (*GetNetworkParametersProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{32} -} - -func (x *GetNetworkParametersProposalsResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a list of new asset proposals -type GetNewAssetProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional proposal state - SelectInState *OptionalProposalState `protobuf:"bytes,1,opt,name=select_in_state,json=selectInState,proto3" json:"select_in_state,omitempty"` -} - -func (x *GetNewAssetProposalsRequest) Reset() { - *x = GetNewAssetProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNewAssetProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNewAssetProposalsRequest) ProtoMessage() {} - -func (x *GetNewAssetProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNewAssetProposalsRequest.ProtoReflect.Descriptor instead. -func (*GetNewAssetProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{33} -} - -func (x *GetNewAssetProposalsRequest) GetSelectInState() *OptionalProposalState { - if x != nil { - return x.SelectInState - } - return nil -} - -// Response for a list of new asset proposals -type GetNewAssetProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more governance data - Data []*proto1.GovernanceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetNewAssetProposalsResponse) Reset() { - *x = GetNewAssetProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNewAssetProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNewAssetProposalsResponse) ProtoMessage() {} - -func (x *GetNewAssetProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNewAssetProposalsResponse.ProtoReflect.Descriptor instead. -func (*GetNewAssetProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{34} -} - -func (x *GetNewAssetProposalsResponse) GetData() []*proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a governance proposal given a proposal identifier -type GetProposalByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Proposal identifier, required field - ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *GetProposalByIDRequest) Reset() { - *x = GetProposalByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalByIDRequest) ProtoMessage() {} - -func (x *GetProposalByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalByIDRequest.ProtoReflect.Descriptor instead. -func (*GetProposalByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{35} -} - -func (x *GetProposalByIDRequest) GetProposalId() string { - if x != nil { - return x.ProposalId - } - return "" -} - -// Response for a governance proposal given a proposal identifier -type GetProposalByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Governance data, if found - Data *proto1.GovernanceData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetProposalByIDResponse) Reset() { - *x = GetProposalByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalByIDResponse) ProtoMessage() {} - -func (x *GetProposalByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalByIDResponse.ProtoReflect.Descriptor instead. -func (*GetProposalByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{36} -} - -func (x *GetProposalByIDResponse) GetData() *proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request for a governance proposal given a proposal reference -type GetProposalByReferenceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Proposal reference. Required field - Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` -} - -func (x *GetProposalByReferenceRequest) Reset() { - *x = GetProposalByReferenceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalByReferenceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalByReferenceRequest) ProtoMessage() {} - -func (x *GetProposalByReferenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalByReferenceRequest.ProtoReflect.Descriptor instead. -func (*GetProposalByReferenceRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{37} -} - -func (x *GetProposalByReferenceRequest) GetReference() string { - if x != nil { - return x.Reference - } - return "" -} - -// Response for a governance proposal given a proposal reference -type GetProposalByReferenceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Governance data, if found - Data *proto1.GovernanceData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetProposalByReferenceResponse) Reset() { - *x = GetProposalByReferenceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProposalByReferenceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalByReferenceResponse) ProtoMessage() {} - -func (x *GetProposalByReferenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalByReferenceResponse.ProtoReflect.Descriptor instead. -func (*GetProposalByReferenceResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{38} -} - -func (x *GetProposalByReferenceResponse) GetData() *proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request to obsever all event related to governance -type ObserveGovernanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ObserveGovernanceRequest) Reset() { - *x = ObserveGovernanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveGovernanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveGovernanceRequest) ProtoMessage() {} - -func (x *ObserveGovernanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveGovernanceRequest.ProtoReflect.Descriptor instead. -func (*ObserveGovernanceRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{39} -} - -// All events related to governance -type ObserveGovernanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *proto1.GovernanceData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *ObserveGovernanceResponse) Reset() { - *x = ObserveGovernanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveGovernanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveGovernanceResponse) ProtoMessage() {} - -func (x *ObserveGovernanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveGovernanceResponse.ProtoReflect.Descriptor instead. -func (*ObserveGovernanceResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{40} -} - -func (x *ObserveGovernanceResponse) GetData() *proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request to subscribe to a stream of governance proposals for a party -type ObservePartyProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *ObservePartyProposalsRequest) Reset() { - *x = ObservePartyProposalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObservePartyProposalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObservePartyProposalsRequest) ProtoMessage() {} - -func (x *ObservePartyProposalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObservePartyProposalsRequest.ProtoReflect.Descriptor instead. -func (*ObservePartyProposalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{41} -} - -func (x *ObservePartyProposalsRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -type ObservePartyProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *proto1.GovernanceData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *ObservePartyProposalsResponse) Reset() { - *x = ObservePartyProposalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObservePartyProposalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObservePartyProposalsResponse) ProtoMessage() {} - -func (x *ObservePartyProposalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObservePartyProposalsResponse.ProtoReflect.Descriptor instead. -func (*ObservePartyProposalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{42} -} - -func (x *ObservePartyProposalsResponse) GetData() *proto1.GovernanceData { - if x != nil { - return x.Data - } - return nil -} - -// Request to subscribe to a stream of governance votes for a proposal -type ObserveProposalVotesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Proposal identifier, required field - ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` -} - -func (x *ObserveProposalVotesRequest) Reset() { - *x = ObserveProposalVotesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveProposalVotesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveProposalVotesRequest) ProtoMessage() {} - -func (x *ObserveProposalVotesRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveProposalVotesRequest.ProtoReflect.Descriptor instead. -func (*ObserveProposalVotesRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{43} -} - -func (x *ObserveProposalVotesRequest) GetProposalId() string { - if x != nil { - return x.ProposalId - } - return "" -} - -type ObserveProposalVotesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vote *proto1.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` -} - -func (x *ObserveProposalVotesResponse) Reset() { - *x = ObserveProposalVotesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveProposalVotesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveProposalVotesResponse) ProtoMessage() {} - -func (x *ObserveProposalVotesResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveProposalVotesResponse.ProtoReflect.Descriptor instead. -func (*ObserveProposalVotesResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{44} -} - -func (x *ObserveProposalVotesResponse) GetVote() *proto1.Vote { - if x != nil { - return x.Vote - } - return nil -} - -// Request to subscribe to a stream of governance votes for a party -type ObservePartyVotesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *ObservePartyVotesRequest) Reset() { - *x = ObservePartyVotesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObservePartyVotesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObservePartyVotesRequest) ProtoMessage() {} - -func (x *ObservePartyVotesRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObservePartyVotesRequest.ProtoReflect.Descriptor instead. -func (*ObservePartyVotesRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{45} -} - -func (x *ObservePartyVotesRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -type ObservePartyVotesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vote *proto1.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` -} - -func (x *ObservePartyVotesResponse) Reset() { - *x = ObservePartyVotesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObservePartyVotesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObservePartyVotesResponse) ProtoMessage() {} - -func (x *ObservePartyVotesResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObservePartyVotesResponse.ProtoReflect.Descriptor instead. -func (*ObservePartyVotesResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{46} -} - -func (x *ObservePartyVotesResponse) GetVote() *proto1.Vote { - if x != nil { - return x.Vote - } - return nil -} - -// Request to subscribe to a stream of MarginLevels data matching the given party identifier -// Optionally, the list can be additionally filtered by market -type MarginLevelsSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarginLevelsSubscribeRequest) Reset() { - *x = MarginLevelsSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarginLevelsSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarginLevelsSubscribeRequest) ProtoMessage() {} - -func (x *MarginLevelsSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarginLevelsSubscribeRequest.ProtoReflect.Descriptor instead. -func (*MarginLevelsSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{47} -} - -func (x *MarginLevelsSubscribeRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *MarginLevelsSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -type MarginLevelsSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MarginLevels *proto1.MarginLevels `protobuf:"bytes,1,opt,name=margin_levels,json=marginLevels,proto3" json:"margin_levels,omitempty"` -} - -func (x *MarginLevelsSubscribeResponse) Reset() { - *x = MarginLevelsSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarginLevelsSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarginLevelsSubscribeResponse) ProtoMessage() {} - -func (x *MarginLevelsSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarginLevelsSubscribeResponse.ProtoReflect.Descriptor instead. -func (*MarginLevelsSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{48} -} - -func (x *MarginLevelsSubscribeResponse) GetMarginLevels() *proto1.MarginLevels { - if x != nil { - return x.MarginLevels - } - return nil -} - -// Request for margin levels for a party -type MarginLevelsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarginLevelsRequest) Reset() { - *x = MarginLevelsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarginLevelsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarginLevelsRequest) ProtoMessage() {} - -func (x *MarginLevelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarginLevelsRequest.ProtoReflect.Descriptor instead. -func (*MarginLevelsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{49} -} - -func (x *MarginLevelsRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *MarginLevelsRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -// Response for margin levels for a party -type MarginLevelsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more margin levels - MarginLevels []*proto1.MarginLevels `protobuf:"bytes,1,rep,name=margin_levels,json=marginLevels,proto3" json:"margin_levels,omitempty"` -} - -func (x *MarginLevelsResponse) Reset() { - *x = MarginLevelsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarginLevelsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarginLevelsResponse) ProtoMessage() {} - -func (x *MarginLevelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarginLevelsResponse.ProtoReflect.Descriptor instead. -func (*MarginLevelsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{50} -} - -func (x *MarginLevelsResponse) GetMarginLevels() []*proto1.MarginLevels { - if x != nil { - return x.MarginLevels - } - return nil -} - -// Request to subscribe to a stream of MarketsData -// Optionally, the list can be additionally filtered by market -type MarketsDataSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarketsDataSubscribeRequest) Reset() { - *x = MarketsDataSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsDataSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsDataSubscribeRequest) ProtoMessage() {} - -func (x *MarketsDataSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsDataSubscribeRequest.ProtoReflect.Descriptor instead. -func (*MarketsDataSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{51} -} - -func (x *MarketsDataSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -type MarketsDataSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MarketData *proto1.MarketData `protobuf:"bytes,1,opt,name=market_data,json=marketData,proto3" json:"market_data,omitempty"` -} - -func (x *MarketsDataSubscribeResponse) Reset() { - *x = MarketsDataSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsDataSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsDataSubscribeResponse) ProtoMessage() {} - -func (x *MarketsDataSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsDataSubscribeResponse.ProtoReflect.Descriptor instead. -func (*MarketsDataSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{52} -} - -func (x *MarketsDataSubscribeResponse) GetMarketData() *proto1.MarketData { - if x != nil { - return x.MarketData - } - return nil -} - -// Request for market data for a market -type MarketDataByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarketDataByIDRequest) Reset() { - *x = MarketDataByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDataByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDataByIDRequest) ProtoMessage() {} - -func (x *MarketDataByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDataByIDRequest.ProtoReflect.Descriptor instead. -func (*MarketDataByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{53} -} - -func (x *MarketDataByIDRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -// Response for market data for a market -type MarketDataByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market data, if found - MarketData *proto1.MarketData `protobuf:"bytes,1,opt,name=market_data,json=marketData,proto3" json:"market_data,omitempty"` -} - -func (x *MarketDataByIDResponse) Reset() { - *x = MarketDataByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDataByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDataByIDResponse) ProtoMessage() {} - -func (x *MarketDataByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDataByIDResponse.ProtoReflect.Descriptor instead. -func (*MarketDataByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{54} -} - -func (x *MarketDataByIDResponse) GetMarketData() *proto1.MarketData { - if x != nil { - return x.MarketData - } - return nil -} - -// Request for market data -type MarketsDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MarketsDataRequest) Reset() { - *x = MarketsDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsDataRequest) ProtoMessage() {} - -func (x *MarketsDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsDataRequest.ProtoReflect.Descriptor instead. -func (*MarketsDataRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{55} -} - -// Response for market data -type MarketsDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more market data - MarketsData []*proto1.MarketData `protobuf:"bytes,1,rep,name=markets_data,json=marketsData,proto3" json:"markets_data,omitempty"` -} - -func (x *MarketsDataResponse) Reset() { - *x = MarketsDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsDataResponse) ProtoMessage() {} - -func (x *MarketsDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsDataResponse.ProtoReflect.Descriptor instead. -func (*MarketsDataResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{56} -} - -func (x *MarketsDataResponse) GetMarketsData() []*proto1.MarketData { - if x != nil { - return x.MarketsData - } - return nil -} - -// Request for the latest trade that occurred on Vega for a given market -type LastTradeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *LastTradeRequest) Reset() { - *x = LastTradeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LastTradeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LastTradeRequest) ProtoMessage() {} - -func (x *LastTradeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LastTradeRequest.ProtoReflect.Descriptor instead. -func (*LastTradeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{57} -} - -func (x *LastTradeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -// Response for the latest trade that occurred on Vega for a given market -type LastTradeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A trade, if found - Trade *proto1.Trade `protobuf:"bytes,1,opt,name=trade,proto3" json:"trade,omitempty"` -} - -func (x *LastTradeResponse) Reset() { - *x = LastTradeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LastTradeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LastTradeResponse) ProtoMessage() {} - -func (x *LastTradeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LastTradeResponse.ProtoReflect.Descriptor instead. -func (*LastTradeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{58} -} - -func (x *LastTradeResponse) GetTrade() *proto1.Trade { - if x != nil { - return x.Trade - } - return nil -} - -// Request for a market given a market identifier -type MarketByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarketByIDRequest) Reset() { - *x = MarketByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketByIDRequest) ProtoMessage() {} - -func (x *MarketByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketByIDRequest.ProtoReflect.Descriptor instead. -func (*MarketByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{59} -} - -func (x *MarketByIDRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -// Response for a market given a market identifier -type MarketByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A market, if found - Market *proto1.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` -} - -func (x *MarketByIDResponse) Reset() { - *x = MarketByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketByIDResponse) ProtoMessage() {} - -func (x *MarketByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketByIDResponse.ProtoReflect.Descriptor instead. -func (*MarketByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{60} -} - -func (x *MarketByIDResponse) GetMarket() *proto1.Market { - if x != nil { - return x.Market - } - return nil -} - -// Request for a party given a party identifier -type PartyByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *PartyByIDRequest) Reset() { - *x = PartyByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartyByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartyByIDRequest) ProtoMessage() {} - -func (x *PartyByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartyByIDRequest.ProtoReflect.Descriptor instead. -func (*PartyByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{61} -} - -func (x *PartyByIDRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// Response for a party given a party identifier -type PartyByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A party, if found - Party *proto1.Party `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` -} - -func (x *PartyByIDResponse) Reset() { - *x = PartyByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartyByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartyByIDResponse) ProtoMessage() {} - -func (x *PartyByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartyByIDResponse.ProtoReflect.Descriptor instead. -func (*PartyByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{62} -} - -func (x *PartyByIDResponse) GetParty() *proto1.Party { - if x != nil { - return x.Party - } - return nil -} - -// Request for a list of all parties -type PartiesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PartiesRequest) Reset() { - *x = PartiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartiesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartiesRequest) ProtoMessage() {} - -func (x *PartiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartiesRequest.ProtoReflect.Descriptor instead. -func (*PartiesRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{63} -} - -// Response to a request for a list of parties -type PartiesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more parties - Parties []*proto1.Party `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` -} - -func (x *PartiesResponse) Reset() { - *x = PartiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartiesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartiesResponse) ProtoMessage() {} - -func (x *PartiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartiesResponse.ProtoReflect.Descriptor instead. -func (*PartiesResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{64} -} - -func (x *PartiesResponse) GetParties() []*proto1.Party { - if x != nil { - return x.Parties - } - return nil -} - -// Request for a list of trades relating to the given party -// Optionally, the list can be additionally filtered for trades by market -type TradesByPartyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier. Required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Pagination controls - Pagination *Pagination `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *TradesByPartyRequest) Reset() { - *x = TradesByPartyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByPartyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByPartyRequest) ProtoMessage() {} - -func (x *TradesByPartyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByPartyRequest.ProtoReflect.Descriptor instead. -func (*TradesByPartyRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{65} -} - -func (x *TradesByPartyRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *TradesByPartyRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *TradesByPartyRequest) GetPagination() *Pagination { - if x != nil { - return x.Pagination - } - return nil -} - -// Response for a list of trades relating to a party -type TradesByPartyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more trades - Trades []*proto1.Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"` -} - -func (x *TradesByPartyResponse) Reset() { - *x = TradesByPartyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByPartyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByPartyResponse) ProtoMessage() {} - -func (x *TradesByPartyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByPartyResponse.ProtoReflect.Descriptor instead. -func (*TradesByPartyResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{66} -} - -func (x *TradesByPartyResponse) GetTrades() []*proto1.Trade { - if x != nil { - return x.Trades - } - return nil -} - -// Request for a list of trades related to an order -type TradesByOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Order identifier, required field - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` -} - -func (x *TradesByOrderRequest) Reset() { - *x = TradesByOrderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByOrderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByOrderRequest) ProtoMessage() {} - -func (x *TradesByOrderRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByOrderRequest.ProtoReflect.Descriptor instead. -func (*TradesByOrderRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{67} -} - -func (x *TradesByOrderRequest) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -// Response for a list of trades related to an order -type TradesByOrderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more trades - Trades []*proto1.Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"` -} - -func (x *TradesByOrderResponse) Reset() { - *x = TradesByOrderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByOrderResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByOrderResponse) ProtoMessage() {} - -func (x *TradesByOrderResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByOrderResponse.ProtoReflect.Descriptor instead. -func (*TradesByOrderResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{68} -} - -func (x *TradesByOrderResponse) GetTrades() []*proto1.Trade { - if x != nil { - return x.Trades - } - return nil -} - -// Request to subscribe to a stream of (Accounts)[#vega.Account] -type AccountsSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Party identifier - PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Asset identifier - Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` - // Account type to subscribe to, required field - Type proto1.AccountType `protobuf:"varint,4,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"` -} - -func (x *AccountsSubscribeRequest) Reset() { - *x = AccountsSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccountsSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountsSubscribeRequest) ProtoMessage() {} - -func (x *AccountsSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountsSubscribeRequest.ProtoReflect.Descriptor instead. -func (*AccountsSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{69} -} - -func (x *AccountsSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *AccountsSubscribeRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *AccountsSubscribeRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -func (x *AccountsSubscribeRequest) GetType() proto1.AccountType { - if x != nil { - return x.Type - } - return proto1.AccountType_ACCOUNT_TYPE_UNSPECIFIED -} - -type AccountsSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Account *proto1.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (x *AccountsSubscribeResponse) Reset() { - *x = AccountsSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccountsSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountsSubscribeResponse) ProtoMessage() {} - -func (x *AccountsSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountsSubscribeResponse.ProtoReflect.Descriptor instead. -func (*AccountsSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{70} -} - -func (x *AccountsSubscribeResponse) GetAccount() *proto1.Account { - if x != nil { - return x.Account - } - return nil -} - -// Request to subscribe to a stream of (Orders)[#vega.Order] -type OrdersSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Party identifier - PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *OrdersSubscribeRequest) Reset() { - *x = OrdersSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersSubscribeRequest) ProtoMessage() {} - -func (x *OrdersSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersSubscribeRequest.ProtoReflect.Descriptor instead. -func (*OrdersSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{71} -} - -func (x *OrdersSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *OrdersSubscribeRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// Request to subscribe to a stream of (Trades)[#vega.Trade] -type TradesSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Party identifier - PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *TradesSubscribeRequest) Reset() { - *x = TradesSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesSubscribeRequest) ProtoMessage() {} - -func (x *TradesSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesSubscribeRequest.ProtoReflect.Descriptor instead. -func (*TradesSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{72} -} - -func (x *TradesSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *TradesSubscribeRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// Request to subscribe to a stream of (Candles)[#vega.Candle] -type CandlesSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Time interval for the candles, required field. - Interval proto1.Interval `protobuf:"varint,2,opt,name=interval,proto3,enum=vega.Interval" json:"interval,omitempty"` -} - -func (x *CandlesSubscribeRequest) Reset() { - *x = CandlesSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CandlesSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CandlesSubscribeRequest) ProtoMessage() {} - -func (x *CandlesSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CandlesSubscribeRequest.ProtoReflect.Descriptor instead. -func (*CandlesSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{73} -} - -func (x *CandlesSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *CandlesSubscribeRequest) GetInterval() proto1.Interval { - if x != nil { - return x.Interval - } - return proto1.Interval_INTERVAL_UNSPECIFIED -} - -type CandlesSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Candle *proto1.Candle `protobuf:"bytes,1,opt,name=candle,proto3" json:"candle,omitempty"` -} - -func (x *CandlesSubscribeResponse) Reset() { - *x = CandlesSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CandlesSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CandlesSubscribeResponse) ProtoMessage() {} - -func (x *CandlesSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CandlesSubscribeResponse.ProtoReflect.Descriptor instead. -func (*CandlesSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{74} -} - -func (x *CandlesSubscribeResponse) GetCandle() *proto1.Candle { - if x != nil { - return x.Candle - } - return nil -} - -// Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data -type MarketDepthSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field. - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarketDepthSubscribeRequest) Reset() { - *x = MarketDepthSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthSubscribeRequest) ProtoMessage() {} - -func (x *MarketDepthSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthSubscribeRequest.ProtoReflect.Descriptor instead. -func (*MarketDepthSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{75} -} - -func (x *MarketDepthSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -type MarketDepthSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MarketDepth *proto1.MarketDepth `protobuf:"bytes,1,opt,name=market_depth,json=marketDepth,proto3" json:"market_depth,omitempty"` -} - -func (x *MarketDepthSubscribeResponse) Reset() { - *x = MarketDepthSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthSubscribeResponse) ProtoMessage() {} - -func (x *MarketDepthSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthSubscribeResponse.ProtoReflect.Descriptor instead. -func (*MarketDepthSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{76} -} - -func (x *MarketDepthSubscribeResponse) GetMarketDepth() *proto1.MarketDepth { - if x != nil { - return x.MarketDepth - } - return nil -} - -// Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data -type MarketDepthUpdatesSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *MarketDepthUpdatesSubscribeRequest) Reset() { - *x = MarketDepthUpdatesSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthUpdatesSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthUpdatesSubscribeRequest) ProtoMessage() {} - -func (x *MarketDepthUpdatesSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthUpdatesSubscribeRequest.ProtoReflect.Descriptor instead. -func (*MarketDepthUpdatesSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{77} -} - -func (x *MarketDepthUpdatesSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -type MarketDepthUpdatesSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Update *proto1.MarketDepthUpdate `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` -} - -func (x *MarketDepthUpdatesSubscribeResponse) Reset() { - *x = MarketDepthUpdatesSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthUpdatesSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthUpdatesSubscribeResponse) ProtoMessage() {} - -func (x *MarketDepthUpdatesSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthUpdatesSubscribeResponse.ProtoReflect.Descriptor instead. -func (*MarketDepthUpdatesSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{78} -} - -func (x *MarketDepthUpdatesSubscribeResponse) GetUpdate() *proto1.MarketDepthUpdate { - if x != nil { - return x.Update - } - return nil -} - -// Request to subscribe to a stream of (Positions)[#vega.Position] -type PositionsSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, optional field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier, optional field - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *PositionsSubscribeRequest) Reset() { - *x = PositionsSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PositionsSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PositionsSubscribeRequest) ProtoMessage() {} - -func (x *PositionsSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PositionsSubscribeRequest.ProtoReflect.Descriptor instead. -func (*PositionsSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{79} -} - -func (x *PositionsSubscribeRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *PositionsSubscribeRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -type PositionsSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Position *proto1.Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` -} - -func (x *PositionsSubscribeResponse) Reset() { - *x = PositionsSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PositionsSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PositionsSubscribeResponse) ProtoMessage() {} - -func (x *PositionsSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PositionsSubscribeResponse.ProtoReflect.Descriptor instead. -func (*PositionsSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{80} -} - -func (x *PositionsSubscribeResponse) GetPosition() *proto1.Position { - if x != nil { - return x.Position - } - return nil -} - -// Request for a list of orders for a market -type OrdersByMarketRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Optional pagination controls - Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *OrdersByMarketRequest) Reset() { - *x = OrdersByMarketRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersByMarketRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersByMarketRequest) ProtoMessage() {} - -func (x *OrdersByMarketRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersByMarketRequest.ProtoReflect.Descriptor instead. -func (*OrdersByMarketRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{81} -} - -func (x *OrdersByMarketRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *OrdersByMarketRequest) GetPagination() *Pagination { - if x != nil { - return x.Pagination - } - return nil -} - -// Response for a list of orders for a market -type OrdersByMarketResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more orders - Orders []*proto1.Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` -} - -func (x *OrdersByMarketResponse) Reset() { - *x = OrdersByMarketResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersByMarketResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersByMarketResponse) ProtoMessage() {} - -func (x *OrdersByMarketResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersByMarketResponse.ProtoReflect.Descriptor instead. -func (*OrdersByMarketResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{82} -} - -func (x *OrdersByMarketResponse) GetOrders() []*proto1.Order { - if x != nil { - return x.Orders - } - return nil -} - -// Request for a list of orders for a party -type OrdersByPartyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Pagination controls - Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *OrdersByPartyRequest) Reset() { - *x = OrdersByPartyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersByPartyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersByPartyRequest) ProtoMessage() {} - -func (x *OrdersByPartyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersByPartyRequest.ProtoReflect.Descriptor instead. -func (*OrdersByPartyRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{83} -} - -func (x *OrdersByPartyRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *OrdersByPartyRequest) GetPagination() *Pagination { - if x != nil { - return x.Pagination - } - return nil -} - -// Response for a list of orders for a party -type OrdersByPartyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more orders - Orders []*proto1.Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` -} - -func (x *OrdersByPartyResponse) Reset() { - *x = OrdersByPartyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersByPartyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersByPartyResponse) ProtoMessage() {} - -func (x *OrdersByPartyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersByPartyResponse.ProtoReflect.Descriptor instead. -func (*OrdersByPartyResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{84} -} - -func (x *OrdersByPartyResponse) GetOrders() []*proto1.Order { - if x != nil { - return x.Orders - } - return nil -} - -// Request for an order on a market given an order identifier -type OrderByMarketAndIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Order identifier, required field - OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` -} - -func (x *OrderByMarketAndIDRequest) Reset() { - *x = OrderByMarketAndIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByMarketAndIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByMarketAndIDRequest) ProtoMessage() {} - -func (x *OrderByMarketAndIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[85] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByMarketAndIDRequest.ProtoReflect.Descriptor instead. -func (*OrderByMarketAndIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{85} -} - -func (x *OrderByMarketAndIDRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *OrderByMarketAndIDRequest) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -// Response for an order on a market given an order identifier -type OrderByMarketAndIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An order, if found - Order *proto1.Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *OrderByMarketAndIDResponse) Reset() { - *x = OrderByMarketAndIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByMarketAndIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByMarketAndIDResponse) ProtoMessage() {} - -func (x *OrderByMarketAndIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByMarketAndIDResponse.ProtoReflect.Descriptor instead. -func (*OrderByMarketAndIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{86} -} - -func (x *OrderByMarketAndIDResponse) GetOrder() *proto1.Order { - if x != nil { - return x.Order - } - return nil -} - -// Request for an order given an order reference -type OrderByReferenceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique reference, required field - Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` -} - -func (x *OrderByReferenceRequest) Reset() { - *x = OrderByReferenceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByReferenceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByReferenceRequest) ProtoMessage() {} - -func (x *OrderByReferenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[87] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByReferenceRequest.ProtoReflect.Descriptor instead. -func (*OrderByReferenceRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{87} -} - -func (x *OrderByReferenceRequest) GetReference() string { - if x != nil { - return x.Reference - } - return "" -} - -// Response for an order given an order reference -type OrderByReferenceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An order, if found - Order *proto1.Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *OrderByReferenceResponse) Reset() { - *x = OrderByReferenceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByReferenceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByReferenceResponse) ProtoMessage() {} - -func (x *OrderByReferenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[88] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByReferenceResponse.ProtoReflect.Descriptor instead. -func (*OrderByReferenceResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{88} -} - -func (x *OrderByReferenceResponse) GetOrder() *proto1.Order { - if x != nil { - return x.Order - } - return nil -} - -// Request for a list of markets on Vega -type MarketsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MarketsRequest) Reset() { - *x = MarketsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsRequest) ProtoMessage() {} - -func (x *MarketsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[89] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsRequest.ProtoReflect.Descriptor instead. -func (*MarketsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{89} -} - -// Response for a list of markets on Vega -type MarketsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more markets - Markets []*proto1.Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` -} - -func (x *MarketsResponse) Reset() { - *x = MarketsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketsResponse) ProtoMessage() {} - -func (x *MarketsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[90] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketsResponse.ProtoReflect.Descriptor instead. -func (*MarketsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{90} -} - -func (x *MarketsResponse) GetMarkets() []*proto1.Market { - if x != nil { - return x.Markets - } - return nil -} - -// Request for a list of candles for a market at an interval -type CandlesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field. - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Timestamp to retrieve candles since, in nanoseconds since the epoch, - // required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - SinceTimestamp int64 `protobuf:"varint,2,opt,name=since_timestamp,json=sinceTimestamp,proto3" json:"since_timestamp,omitempty"` - // Time interval for the candles, required field - Interval proto1.Interval `protobuf:"varint,3,opt,name=interval,proto3,enum=vega.Interval" json:"interval,omitempty"` -} - -func (x *CandlesRequest) Reset() { - *x = CandlesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CandlesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CandlesRequest) ProtoMessage() {} - -func (x *CandlesRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[91] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CandlesRequest.ProtoReflect.Descriptor instead. -func (*CandlesRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{91} -} - -func (x *CandlesRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *CandlesRequest) GetSinceTimestamp() int64 { - if x != nil { - return x.SinceTimestamp - } - return 0 -} - -func (x *CandlesRequest) GetInterval() proto1.Interval { - if x != nil { - return x.Interval - } - return proto1.Interval_INTERVAL_UNSPECIFIED -} - -// Response for a list of candles for a market at an interval -type CandlesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more candles - Candles []*proto1.Candle `protobuf:"bytes,1,rep,name=candles,proto3" json:"candles,omitempty"` -} - -func (x *CandlesResponse) Reset() { - *x = CandlesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CandlesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CandlesResponse) ProtoMessage() {} - -func (x *CandlesResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[92] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CandlesResponse.ProtoReflect.Descriptor instead. -func (*CandlesResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{92} -} - -func (x *CandlesResponse) GetCandles() []*proto1.Candle { - if x != nil { - return x.Candles - } - return nil -} - -// Request for the market depth/order book price levels on a market -// Optionally, a maximum depth can be set to limit the number of levels returned -type MarketDepthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Max depth limits the number of levels returned. Default is 0, which returns all levels - MaxDepth uint64 `protobuf:"varint,2,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` -} - -func (x *MarketDepthRequest) Reset() { - *x = MarketDepthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthRequest) ProtoMessage() {} - -func (x *MarketDepthRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[93] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthRequest.ProtoReflect.Descriptor instead. -func (*MarketDepthRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{93} -} - -func (x *MarketDepthRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *MarketDepthRequest) GetMaxDepth() uint64 { - if x != nil { - return x.MaxDepth - } - return 0 -} - -// Response for the market depth/order book price levels on a market -type MarketDepthResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Zero or more price levels for the buy side of the market depth data - Buy []*proto1.PriceLevel `protobuf:"bytes,2,rep,name=buy,proto3" json:"buy,omitempty"` - // Zero or more price levels for the sell side of the market depth data - Sell []*proto1.PriceLevel `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell,omitempty"` - // Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse` - LastTrade *proto1.Trade `protobuf:"bytes,4,opt,name=last_trade,json=lastTrade,proto3" json:"last_trade,omitempty"` - // Sequence number incremented after each update - SequenceNumber uint64 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` -} - -func (x *MarketDepthResponse) Reset() { - *x = MarketDepthResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketDepthResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketDepthResponse) ProtoMessage() {} - -func (x *MarketDepthResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[94] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketDepthResponse.ProtoReflect.Descriptor instead. -func (*MarketDepthResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{94} -} - -func (x *MarketDepthResponse) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *MarketDepthResponse) GetBuy() []*proto1.PriceLevel { - if x != nil { - return x.Buy - } - return nil -} - -func (x *MarketDepthResponse) GetSell() []*proto1.PriceLevel { - if x != nil { - return x.Sell - } - return nil -} - -func (x *MarketDepthResponse) GetLastTrade() *proto1.Trade { - if x != nil { - return x.LastTrade - } - return nil -} - -func (x *MarketDepthResponse) GetSequenceNumber() uint64 { - if x != nil { - return x.SequenceNumber - } - return 0 -} - -// Request for a list of trades on a market -type TradesByMarketRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier, required field - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Pagination controls - Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *TradesByMarketRequest) Reset() { - *x = TradesByMarketRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByMarketRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByMarketRequest) ProtoMessage() {} - -func (x *TradesByMarketRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[95] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByMarketRequest.ProtoReflect.Descriptor instead. -func (*TradesByMarketRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{95} -} - -func (x *TradesByMarketRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *TradesByMarketRequest) GetPagination() *Pagination { - if x != nil { - return x.Pagination - } - return nil -} - -// Response for a list of trades on a market -type TradesByMarketResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more trades - Trades []*proto1.Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"` -} - -func (x *TradesByMarketResponse) Reset() { - *x = TradesByMarketResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesByMarketResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesByMarketResponse) ProtoMessage() {} - -func (x *TradesByMarketResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[96] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesByMarketResponse.ProtoReflect.Descriptor instead. -func (*TradesByMarketResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{96} -} - -func (x *TradesByMarketResponse) GetTrades() []*proto1.Trade { - if x != nil { - return x.Trades - } - return nil -} - -// Request for a list of positions for a party -// Optionally, if a market identifier is set, the results will be filtered for that market only -type PositionsByPartyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier, required field - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` -} - -func (x *PositionsByPartyRequest) Reset() { - *x = PositionsByPartyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PositionsByPartyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PositionsByPartyRequest) ProtoMessage() {} - -func (x *PositionsByPartyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PositionsByPartyRequest.ProtoReflect.Descriptor instead. -func (*PositionsByPartyRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{97} -} - -func (x *PositionsByPartyRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *PositionsByPartyRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -// Response for a list of positions for a party -type PositionsByPartyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more positions - Positions []*proto1.Position `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` -} - -func (x *PositionsByPartyResponse) Reset() { - *x = PositionsByPartyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PositionsByPartyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PositionsByPartyResponse) ProtoMessage() {} - -func (x *PositionsByPartyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[98] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PositionsByPartyResponse.ProtoReflect.Descriptor instead. -func (*PositionsByPartyResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{98} -} - -func (x *PositionsByPartyResponse) GetPositions() []*proto1.Position { - if x != nil { - return x.Positions - } - return nil -} - -// Request for the current time of the vega network -type GetVegaTimeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetVegaTimeRequest) Reset() { - *x = GetVegaTimeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVegaTimeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVegaTimeRequest) ProtoMessage() {} - -func (x *GetVegaTimeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[99] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVegaTimeRequest.ProtoReflect.Descriptor instead. -func (*GetVegaTimeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{99} -} - -// Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime" -type GetVegaTimeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Timestamp representation of current VegaTime as represented in - // Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z` - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *GetVegaTimeResponse) Reset() { - *x = GetVegaTimeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVegaTimeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVegaTimeResponse) ProtoMessage() {} - -func (x *GetVegaTimeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[100] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVegaTimeResponse.ProtoReflect.Descriptor instead. -func (*GetVegaTimeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{100} -} - -func (x *GetVegaTimeResponse) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -// Pagination controls -type Pagination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Skip the number of records specified, default is 0 - Skip uint64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"` - // Limit the number of returned records to the value specified, default is 50 - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // Descending reverses the order of the records returned, - // default is true, if false the results will be returned in ascending order - Descending bool `protobuf:"varint,3,opt,name=descending,proto3" json:"descending,omitempty"` -} - -func (x *Pagination) Reset() { - *x = Pagination{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Pagination) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Pagination) ProtoMessage() {} - -func (x *Pagination) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[101] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Pagination.ProtoReflect.Descriptor instead. -func (*Pagination) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{101} -} - -func (x *Pagination) GetSkip() uint64 { - if x != nil { - return x.Skip - } - return 0 -} - -func (x *Pagination) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *Pagination) GetDescending() bool { - if x != nil { - return x.Descending - } - return false -} - -// A stream of orders -type OrdersSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more orders - Orders []*proto1.Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` -} - -func (x *OrdersSubscribeResponse) Reset() { - *x = OrdersSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrdersSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrdersSubscribeResponse) ProtoMessage() {} - -func (x *OrdersSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrdersSubscribeResponse.ProtoReflect.Descriptor instead. -func (*OrdersSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{102} -} - -func (x *OrdersSubscribeResponse) GetOrders() []*proto1.Order { - if x != nil { - return x.Orders - } - return nil -} - -// A stream of trades -type TradesSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more trades - Trades []*proto1.Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"` -} - -func (x *TradesSubscribeResponse) Reset() { - *x = TradesSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TradesSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TradesSubscribeResponse) ProtoMessage() {} - -func (x *TradesSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[103] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TradesSubscribeResponse.ProtoReflect.Descriptor instead. -func (*TradesSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{103} -} - -func (x *TradesSubscribeResponse) GetTrades() []*proto1.Trade { - if x != nil { - return x.Trades - } - return nil -} - -type TransferResponsesSubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TransferResponsesSubscribeRequest) Reset() { - *x = TransferResponsesSubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[104] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferResponsesSubscribeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferResponsesSubscribeRequest) ProtoMessage() {} - -func (x *TransferResponsesSubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[104] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferResponsesSubscribeRequest.ProtoReflect.Descriptor instead. -func (*TransferResponsesSubscribeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{104} -} - -type TransferResponsesSubscribeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Response *proto1.TransferResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` -} - -func (x *TransferResponsesSubscribeResponse) Reset() { - *x = TransferResponsesSubscribeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[105] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferResponsesSubscribeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferResponsesSubscribeResponse) ProtoMessage() {} - -func (x *TransferResponsesSubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[105] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferResponsesSubscribeResponse.ProtoReflect.Descriptor instead. -func (*TransferResponsesSubscribeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{105} -} - -func (x *TransferResponsesSubscribeResponse) GetResponse() *proto1.TransferResponse { - if x != nil { - return x.Response - } - return nil -} - -// Request for a list of accounts for a party -type PartyAccountsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Party identifier - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Account type, required field - Type proto1.AccountType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"` - // Asset identifier - Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` -} - -func (x *PartyAccountsRequest) Reset() { - *x = PartyAccountsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartyAccountsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartyAccountsRequest) ProtoMessage() {} - -func (x *PartyAccountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[106] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartyAccountsRequest.ProtoReflect.Descriptor instead. -func (*PartyAccountsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{106} -} - -func (x *PartyAccountsRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *PartyAccountsRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *PartyAccountsRequest) GetType() proto1.AccountType { - if x != nil { - return x.Type - } - return proto1.AccountType_ACCOUNT_TYPE_UNSPECIFIED -} - -func (x *PartyAccountsRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -// Response for a list of accounts for a party -type PartyAccountsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more accounts - Accounts []*proto1.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` -} - -func (x *PartyAccountsResponse) Reset() { - *x = PartyAccountsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartyAccountsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartyAccountsResponse) ProtoMessage() {} - -func (x *PartyAccountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[107] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartyAccountsResponse.ProtoReflect.Descriptor instead. -func (*PartyAccountsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{107} -} - -func (x *PartyAccountsResponse) GetAccounts() []*proto1.Account { - if x != nil { - return x.Accounts - } - return nil -} - -// Request for a list of accounts for a market -type MarketAccountsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Market identifier - MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Asset identifier - Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` -} - -func (x *MarketAccountsRequest) Reset() { - *x = MarketAccountsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[108] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketAccountsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketAccountsRequest) ProtoMessage() {} - -func (x *MarketAccountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[108] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketAccountsRequest.ProtoReflect.Descriptor instead. -func (*MarketAccountsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{108} -} - -func (x *MarketAccountsRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *MarketAccountsRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -// Response for a list of accounts for a market -type MarketAccountsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more accounts - Accounts []*proto1.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` -} - -func (x *MarketAccountsResponse) Reset() { - *x = MarketAccountsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarketAccountsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarketAccountsResponse) ProtoMessage() {} - -func (x *MarketAccountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[109] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarketAccountsResponse.ProtoReflect.Descriptor instead. -func (*MarketAccountsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{109} -} - -func (x *MarketAccountsResponse) GetAccounts() []*proto1.Account { - if x != nil { - return x.Accounts - } - return nil -} - -// Request for a list of infrastructure fee accounts -type FeeInfrastructureAccountsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Asset identifier, required field - // - Set to an empty string to return all accounts - // - Set to an asset ID to return a single infrastructure fee account for a given asset - Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` -} - -func (x *FeeInfrastructureAccountsRequest) Reset() { - *x = FeeInfrastructureAccountsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[110] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FeeInfrastructureAccountsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeeInfrastructureAccountsRequest) ProtoMessage() {} - -func (x *FeeInfrastructureAccountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[110] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeeInfrastructureAccountsRequest.ProtoReflect.Descriptor instead. -func (*FeeInfrastructureAccountsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{110} -} - -func (x *FeeInfrastructureAccountsRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -// Response for a list of infrastructure fee accounts -type FeeInfrastructureAccountsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more infrastructure fee accounts - Accounts []*proto1.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` -} - -func (x *FeeInfrastructureAccountsResponse) Reset() { - *x = FeeInfrastructureAccountsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FeeInfrastructureAccountsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FeeInfrastructureAccountsResponse) ProtoMessage() {} - -func (x *FeeInfrastructureAccountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[111] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FeeInfrastructureAccountsResponse.ProtoReflect.Descriptor instead. -func (*FeeInfrastructureAccountsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{111} -} - -func (x *FeeInfrastructureAccountsResponse) GetAccounts() []*proto1.Account { - if x != nil { - return x.Accounts - } - return nil -} - -// Request to prepare a governance proposal -type PrepareProposalSubmissionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Submission *v1.ProposalSubmission `protobuf:"bytes,1,opt,name=submission,proto3" json:"submission,omitempty"` -} - -func (x *PrepareProposalSubmissionRequest) Reset() { - *x = PrepareProposalSubmissionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[112] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareProposalSubmissionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareProposalSubmissionRequest) ProtoMessage() {} - -func (x *PrepareProposalSubmissionRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[112] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareProposalSubmissionRequest.ProtoReflect.Descriptor instead. -func (*PrepareProposalSubmissionRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{112} -} - -func (x *PrepareProposalSubmissionRequest) GetSubmission() *v1.ProposalSubmission { - if x != nil { - return x.Submission - } - return nil -} - -// Response to prepare a governance proposal -type PrepareProposalSubmissionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` - // A copy of the prepared proposal - Submission *v1.ProposalSubmission `protobuf:"bytes,2,opt,name=submission,proto3" json:"submission,omitempty"` -} - -func (x *PrepareProposalSubmissionResponse) Reset() { - *x = PrepareProposalSubmissionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareProposalSubmissionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareProposalSubmissionResponse) ProtoMessage() {} - -func (x *PrepareProposalSubmissionResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[113] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareProposalSubmissionResponse.ProtoReflect.Descriptor instead. -func (*PrepareProposalSubmissionResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{113} -} - -func (x *PrepareProposalSubmissionResponse) GetBlob() []byte { - if x != nil { - return x.Blob - } - return nil -} - -func (x *PrepareProposalSubmissionResponse) GetSubmission() *v1.ProposalSubmission { - if x != nil { - return x.Submission - } - return nil -} - -// Request to prepare a governance vote -type PrepareVoteSubmissionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Vote, required field - Submission *v1.VoteSubmission `protobuf:"bytes,1,opt,name=submission,proto3" json:"submission,omitempty"` -} - -func (x *PrepareVoteSubmissionRequest) Reset() { - *x = PrepareVoteSubmissionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[114] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareVoteSubmissionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareVoteSubmissionRequest) ProtoMessage() {} - -func (x *PrepareVoteSubmissionRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[114] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareVoteSubmissionRequest.ProtoReflect.Descriptor instead. -func (*PrepareVoteSubmissionRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{114} -} - -func (x *PrepareVoteSubmissionRequest) GetSubmission() *v1.VoteSubmission { - if x != nil { - return x.Submission - } - return nil -} - -// Response to prepare a governance vote -type PrepareVoteSubmissionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` - // A copy of the prepared vote - Submission *v1.VoteSubmission `protobuf:"bytes,2,opt,name=submission,proto3" json:"submission,omitempty"` -} - -func (x *PrepareVoteSubmissionResponse) Reset() { - *x = PrepareVoteSubmissionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[115] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareVoteSubmissionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareVoteSubmissionResponse) ProtoMessage() {} - -func (x *PrepareVoteSubmissionResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[115] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareVoteSubmissionResponse.ProtoReflect.Descriptor instead. -func (*PrepareVoteSubmissionResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{115} -} - -func (x *PrepareVoteSubmissionResponse) GetBlob() []byte { - if x != nil { - return x.Blob - } - return nil -} - -func (x *PrepareVoteSubmissionResponse) GetSubmission() *v1.VoteSubmission { - if x != nil { - return x.Submission - } - return nil -} - -// Request to prepare liquiditity provision -type PrepareLiquidityProvisionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Submission, required field - Submission *v1.LiquidityProvisionSubmission `protobuf:"bytes,1,opt,name=submission,proto3" json:"submission,omitempty"` -} - -func (x *PrepareLiquidityProvisionRequest) Reset() { - *x = PrepareLiquidityProvisionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[116] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareLiquidityProvisionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareLiquidityProvisionRequest) ProtoMessage() {} - -func (x *PrepareLiquidityProvisionRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[116] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareLiquidityProvisionRequest.ProtoReflect.Descriptor instead. -func (*PrepareLiquidityProvisionRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{116} -} - -func (x *PrepareLiquidityProvisionRequest) GetSubmission() *v1.LiquidityProvisionSubmission { - if x != nil { - return x.Submission - } - return nil -} - -// Response to a liquidity provision request -type PrepareLiquidityProvisionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction - Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` -} - -func (x *PrepareLiquidityProvisionResponse) Reset() { - *x = PrepareLiquidityProvisionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[117] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareLiquidityProvisionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareLiquidityProvisionResponse) ProtoMessage() {} - -func (x *PrepareLiquidityProvisionResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[117] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrepareLiquidityProvisionResponse.ProtoReflect.Descriptor instead. -func (*PrepareLiquidityProvisionResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{117} -} - -func (x *PrepareLiquidityProvisionResponse) GetBlob() []byte { - if x != nil { - return x.Blob - } - return nil -} - -// Request for an order with the specified order identifier -// Optionally, return a specific version of the order with the `version` field -type OrderByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Order identifier, required field - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - // Version of the order: - // - Set `version` to 0 for most recent version of the order - // - Set `1` for original version of the order - // - Set `2` for first amendment, `3` for second amendment, etc - Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *OrderByIDRequest) Reset() { - *x = OrderByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[118] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByIDRequest) ProtoMessage() {} - -func (x *OrderByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[118] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByIDRequest.ProtoReflect.Descriptor instead. -func (*OrderByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{118} -} - -func (x *OrderByIDRequest) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -func (x *OrderByIDRequest) GetVersion() uint64 { - if x != nil { - return x.Version - } - return 0 -} - -type OrderByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Order *proto1.Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *OrderByIDResponse) Reset() { - *x = OrderByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[119] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderByIDResponse) ProtoMessage() {} - -func (x *OrderByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[119] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderByIDResponse.ProtoReflect.Descriptor instead. -func (*OrderByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{119} -} - -func (x *OrderByIDResponse) GetOrder() *proto1.Order { - if x != nil { - return x.Order - } - return nil -} - -// Request for a list of all versions of an order given the specified order identifier -type OrderVersionsByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Order identifier, required field - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - // Pagination controls - Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *OrderVersionsByIDRequest) Reset() { - *x = OrderVersionsByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[120] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderVersionsByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderVersionsByIDRequest) ProtoMessage() {} - -func (x *OrderVersionsByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[120] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderVersionsByIDRequest.ProtoReflect.Descriptor instead. -func (*OrderVersionsByIDRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{120} -} - -func (x *OrderVersionsByIDRequest) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -func (x *OrderVersionsByIDRequest) GetPagination() *Pagination { - if x != nil { - return x.Pagination - } - return nil -} - -// Response to a request for a list of all versions of an order -type OrderVersionsByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended) - Orders []*proto1.Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` -} - -func (x *OrderVersionsByIDResponse) Reset() { - *x = OrderVersionsByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[121] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderVersionsByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderVersionsByIDResponse) ProtoMessage() {} - -func (x *OrderVersionsByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[121] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderVersionsByIDResponse.ProtoReflect.Descriptor instead. -func (*OrderVersionsByIDResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{121} -} - -func (x *OrderVersionsByIDResponse) GetOrders() []*proto1.Order { - if x != nil { - return x.Orders - } - return nil -} - -// Request to fetch the estimated fee if an order were to trade immediately -type EstimateFeeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Order to estimate fees for - // the following fields in the order are required: - // MarketID (used to specify the fee factors) - // Price (the price at which the order could trade) - // Size (the size at which the order could eventually trade) - Order *proto1.Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *EstimateFeeRequest) Reset() { - *x = EstimateFeeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[122] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EstimateFeeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EstimateFeeRequest) ProtoMessage() {} - -func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[122] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EstimateFeeRequest.ProtoReflect.Descriptor instead. -func (*EstimateFeeRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{122} -} - -func (x *EstimateFeeRequest) GetOrder() *proto1.Order { - if x != nil { - return x.Order - } - return nil -} - -// Response to a EstimateFeeRequest, containing the estimated fees for a given order -type EstimateFeeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Summary of the estimated fees for this order if it were to trade now - Fee *proto1.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` -} - -func (x *EstimateFeeResponse) Reset() { - *x = EstimateFeeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[123] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EstimateFeeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EstimateFeeResponse) ProtoMessage() {} - -func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[123] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EstimateFeeResponse.ProtoReflect.Descriptor instead. -func (*EstimateFeeResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{123} -} - -func (x *EstimateFeeResponse) GetFee() *proto1.Fee { - if x != nil { - return x.Fee - } - return nil -} - -// Request to fetch the estimated MarginLevels if an order were to trade immediately -type EstimateMarginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Order to estimate fees for - Order *proto1.Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *EstimateMarginRequest) Reset() { - *x = EstimateMarginRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[124] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EstimateMarginRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EstimateMarginRequest) ProtoMessage() {} - -func (x *EstimateMarginRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[124] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EstimateMarginRequest.ProtoReflect.Descriptor instead. -func (*EstimateMarginRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{124} -} - -func (x *EstimateMarginRequest) GetOrder() *proto1.Order { - if x != nil { - return x.Order - } - return nil -} - -// Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order -type EstimateMarginResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Summary of the estimated margins for this order if it were to trade now - MarginLevels *proto1.MarginLevels `protobuf:"bytes,2,opt,name=margin_levels,json=marginLevels,proto3" json:"margin_levels,omitempty"` -} - -func (x *EstimateMarginResponse) Reset() { - *x = EstimateMarginResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[125] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EstimateMarginResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EstimateMarginResponse) ProtoMessage() {} - -func (x *EstimateMarginResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[125] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EstimateMarginResponse.ProtoReflect.Descriptor instead. -func (*EstimateMarginResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{125} -} - -func (x *EstimateMarginResponse) GetMarginLevels() *proto1.MarginLevels { - if x != nil { - return x.MarginLevels - } - return nil -} - -// Request to subscribe to a stream of one or more event types from the Vega event bus -type ObserveEventBusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One or more types of event, required field - Type []v11.BusEventType `protobuf:"varint,1,rep,packed,name=type,proto3,enum=vega.events.v1.BusEventType" json:"type,omitempty"` - // Market identifier, optional field - MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Party identifier, optional field - PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Batch size, optional field - - // If not specified, any events received will be sent immediately. If the client is not ready - // for the next data-set, data may be dropped a number of times, and eventually the stream is closed. - // if specified, the first batch will be sent when ready. To receive the next set of events, the client - // must write an `ObserveEventBatch` message on the stream to flush the buffer. - // If no message is received in 5 seconds, the stream is closed. - // Default: 0, send any and all events when they are available. - BatchSize int64 `protobuf:"varint,4,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` -} - -func (x *ObserveEventBusRequest) Reset() { - *x = ObserveEventBusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[126] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveEventBusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveEventBusRequest) ProtoMessage() {} - -func (x *ObserveEventBusRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[126] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveEventBusRequest.ProtoReflect.Descriptor instead. -func (*ObserveEventBusRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{126} -} - -func (x *ObserveEventBusRequest) GetType() []v11.BusEventType { - if x != nil { - return x.Type - } - return nil -} - -func (x *ObserveEventBusRequest) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *ObserveEventBusRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *ObserveEventBusRequest) GetBatchSize() int64 { - if x != nil { - return x.BatchSize - } - return 0 -} - -// Response to a subscribed stream of events from the Vega event bus -type ObserveEventBusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One or more events - Events []*v11.BusEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` -} - -func (x *ObserveEventBusResponse) Reset() { - *x = ObserveEventBusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[127] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObserveEventBusResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObserveEventBusResponse) ProtoMessage() {} - -func (x *ObserveEventBusResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[127] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObserveEventBusResponse.ProtoReflect.Descriptor instead. -func (*ObserveEventBusResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{127} -} - -func (x *ObserveEventBusResponse) GetEvents() []*v11.BusEvent { - if x != nil { - return x.Events - } - return nil -} - -// A a request for statistics about the Vega network -type StatisticsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *StatisticsRequest) Reset() { - *x = StatisticsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[128] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatisticsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatisticsRequest) ProtoMessage() {} - -func (x *StatisticsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[128] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead. -func (*StatisticsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{128} -} - -type StatisticsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Statistics *proto1.Statistics `protobuf:"bytes,1,opt,name=statistics,proto3" json:"statistics,omitempty"` -} - -func (x *StatisticsResponse) Reset() { - *x = StatisticsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[129] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatisticsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatisticsResponse) ProtoMessage() {} - -func (x *StatisticsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[129] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatisticsResponse.ProtoReflect.Descriptor instead. -func (*StatisticsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{129} -} - -func (x *StatisticsResponse) GetStatistics() *proto1.Statistics { - if x != nil { - return x.Statistics - } - return nil -} - -// A request to get a list of withdrawal from a given party -type WithdrawalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The party to get the withdrawals for - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *WithdrawalsRequest) Reset() { - *x = WithdrawalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[130] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WithdrawalsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WithdrawalsRequest) ProtoMessage() {} - -func (x *WithdrawalsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[130] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WithdrawalsRequest.ProtoReflect.Descriptor instead. -func (*WithdrawalsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{130} -} - -func (x *WithdrawalsRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// The response for a list of withdrawals -type WithdrawalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of withdrawals for the specified party - Withdrawals []*proto1.Withdrawal `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals,omitempty"` -} - -func (x *WithdrawalsResponse) Reset() { - *x = WithdrawalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[131] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WithdrawalsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WithdrawalsResponse) ProtoMessage() {} - -func (x *WithdrawalsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[131] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WithdrawalsResponse.ProtoReflect.Descriptor instead. -func (*WithdrawalsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{131} -} - -func (x *WithdrawalsResponse) GetWithdrawals() []*proto1.Withdrawal { - if x != nil { - return x.Withdrawals - } - return nil -} - -// A request to get a specific withdrawal by identifier -type WithdrawalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the withdrawal - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *WithdrawalRequest) Reset() { - *x = WithdrawalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[132] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WithdrawalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WithdrawalRequest) ProtoMessage() {} - -func (x *WithdrawalRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[132] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WithdrawalRequest.ProtoReflect.Descriptor instead. -func (*WithdrawalRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{132} -} - -func (x *WithdrawalRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// A response for a withdrawal -type WithdrawalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The withdrawal matching the identifier from the request - Withdrawal *proto1.Withdrawal `protobuf:"bytes,1,opt,name=withdrawal,proto3" json:"withdrawal,omitempty"` -} - -func (x *WithdrawalResponse) Reset() { - *x = WithdrawalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[133] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WithdrawalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WithdrawalResponse) ProtoMessage() {} - -func (x *WithdrawalResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[133] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WithdrawalResponse.ProtoReflect.Descriptor instead. -func (*WithdrawalResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{133} -} - -func (x *WithdrawalResponse) GetWithdrawal() *proto1.Withdrawal { - if x != nil { - return x.Withdrawal - } - return nil -} - -// The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge -type ERC20WithdrawalApprovalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the withdrawal - WithdrawalId string `protobuf:"bytes,1,opt,name=withdrawal_id,json=withdrawalId,proto3" json:"withdrawal_id,omitempty"` -} - -func (x *ERC20WithdrawalApprovalRequest) Reset() { - *x = ERC20WithdrawalApprovalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[134] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ERC20WithdrawalApprovalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ERC20WithdrawalApprovalRequest) ProtoMessage() {} - -func (x *ERC20WithdrawalApprovalRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[134] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ERC20WithdrawalApprovalRequest.ProtoReflect.Descriptor instead. -func (*ERC20WithdrawalApprovalRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{134} -} - -func (x *ERC20WithdrawalApprovalRequest) GetWithdrawalId() string { - if x != nil { - return x.WithdrawalId - } - return "" -} - -// The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge -// function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures) -type ERC20WithdrawalApprovalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The address of asset on ethereum - AssetSource string `protobuf:"bytes,1,opt,name=asset_source,json=assetSource,proto3" json:"asset_source,omitempty"` - // The amount to be withdrawn - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` - // The expiry / until what time the request is valid - Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` - // The nonce, which is actually the internal reference for the withdrawal - Nonce string `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` - // The signatures bundle as hex encoded data, forward by 0x - // e.g: 0x + sig1 + sig2 + ... + sixN - Signatures string `protobuf:"bytes,5,opt,name=signatures,proto3" json:"signatures,omitempty"` -} - -func (x *ERC20WithdrawalApprovalResponse) Reset() { - *x = ERC20WithdrawalApprovalResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[135] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ERC20WithdrawalApprovalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ERC20WithdrawalApprovalResponse) ProtoMessage() {} - -func (x *ERC20WithdrawalApprovalResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[135] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ERC20WithdrawalApprovalResponse.ProtoReflect.Descriptor instead. -func (*ERC20WithdrawalApprovalResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{135} -} - -func (x *ERC20WithdrawalApprovalResponse) GetAssetSource() string { - if x != nil { - return x.AssetSource - } - return "" -} - -func (x *ERC20WithdrawalApprovalResponse) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - -func (x *ERC20WithdrawalApprovalResponse) GetExpiry() int64 { - if x != nil { - return x.Expiry - } - return 0 -} - -func (x *ERC20WithdrawalApprovalResponse) GetNonce() string { - if x != nil { - return x.Nonce - } - return "" -} - -func (x *ERC20WithdrawalApprovalResponse) GetSignatures() string { - if x != nil { - return x.Signatures - } - return "" -} - -// A request to get a list of deposit from a given party -type DepositsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The party to get the deposits for - PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` -} - -func (x *DepositsRequest) Reset() { - *x = DepositsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[136] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DepositsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DepositsRequest) ProtoMessage() {} - -func (x *DepositsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[136] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DepositsRequest.ProtoReflect.Descriptor instead. -func (*DepositsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{136} -} - -func (x *DepositsRequest) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -// The response for a list of deposits -type DepositsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of deposits for the specified party - Deposits []*proto1.Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"` -} - -func (x *DepositsResponse) Reset() { - *x = DepositsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[137] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DepositsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DepositsResponse) ProtoMessage() {} - -func (x *DepositsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[137] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DepositsResponse.ProtoReflect.Descriptor instead. -func (*DepositsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{137} -} - -func (x *DepositsResponse) GetDeposits() []*proto1.Deposit { - if x != nil { - return x.Deposits - } - return nil -} - -// A request to get a specific deposit by identifier -type DepositRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the deposit - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *DepositRequest) Reset() { - *x = DepositRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[138] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DepositRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DepositRequest) ProtoMessage() {} - -func (x *DepositRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[138] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead. -func (*DepositRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{138} -} - -func (x *DepositRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// A response for a deposit -type DepositResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The deposit matching the identifier from the request - Deposit *proto1.Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"` -} - -func (x *DepositResponse) Reset() { - *x = DepositResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[139] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DepositResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DepositResponse) ProtoMessage() {} - -func (x *DepositResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[139] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead. -func (*DepositResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{139} -} - -func (x *DepositResponse) GetDeposit() *proto1.Deposit { - if x != nil { - return x.Deposit - } - return nil -} - -// A message requesting for the list of all network parameters -type NetworkParametersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NetworkParametersRequest) Reset() { - *x = NetworkParametersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[140] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NetworkParametersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NetworkParametersRequest) ProtoMessage() {} - -func (x *NetworkParametersRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[140] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NetworkParametersRequest.ProtoReflect.Descriptor instead. -func (*NetworkParametersRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{140} -} - -// A response containing all of the vega network parameters -type NetworkParametersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NetworkParameters []*proto1.NetworkParameter `protobuf:"bytes,1,rep,name=network_parameters,json=networkParameters,proto3" json:"network_parameters,omitempty"` -} - -func (x *NetworkParametersResponse) Reset() { - *x = NetworkParametersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[141] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NetworkParametersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NetworkParametersResponse) ProtoMessage() {} - -func (x *NetworkParametersResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[141] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NetworkParametersResponse.ProtoReflect.Descriptor instead. -func (*NetworkParametersResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{141} -} - -func (x *NetworkParametersResponse) GetNetworkParameters() []*proto1.NetworkParameter { - if x != nil { - return x.NetworkParameters - } - return nil -} - -// A message requesting for the list of liquidity provision orders for markets -// One of the two filters is required (or both) -type LiquidityProvisionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The target market for the liquidity provision orders - Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` - // The party which submitted the liquidity provision orders - Party string `protobuf:"bytes,2,opt,name=party,proto3" json:"party,omitempty"` -} - -func (x *LiquidityProvisionsRequest) Reset() { - *x = LiquidityProvisionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[142] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiquidityProvisionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiquidityProvisionsRequest) ProtoMessage() {} - -func (x *LiquidityProvisionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[142] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiquidityProvisionsRequest.ProtoReflect.Descriptor instead. -func (*LiquidityProvisionsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{142} -} - -func (x *LiquidityProvisionsRequest) GetMarket() string { - if x != nil { - return x.Market - } - return "" -} - -func (x *LiquidityProvisionsRequest) GetParty() string { - if x != nil { - return x.Party - } - return "" -} - -// A response containing all of the Vega liquidity provision orders -type LiquidityProvisionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LiquidityProvisions []*proto1.LiquidityProvision `protobuf:"bytes,1,rep,name=liquidity_provisions,json=liquidityProvisions,proto3" json:"liquidity_provisions,omitempty"` -} - -func (x *LiquidityProvisionsResponse) Reset() { - *x = LiquidityProvisionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[143] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiquidityProvisionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiquidityProvisionsResponse) ProtoMessage() {} - -func (x *LiquidityProvisionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[143] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiquidityProvisionsResponse.ProtoReflect.Descriptor instead. -func (*LiquidityProvisionsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{143} -} - -func (x *LiquidityProvisionsResponse) GetLiquidityProvisions() []*proto1.LiquidityProvision { - if x != nil { - return x.LiquidityProvisions - } - return nil -} - -// A request to get a specific oracle spec by identifier -type OracleSpecRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The id to get the oracle spec for - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *OracleSpecRequest) Reset() { - *x = OracleSpecRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[144] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleSpecRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleSpecRequest) ProtoMessage() {} - -func (x *OracleSpecRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[144] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleSpecRequest.ProtoReflect.Descriptor instead. -func (*OracleSpecRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{144} -} - -func (x *OracleSpecRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// A response for a oracle spec -type OracleSpecResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The withdrawal matching the identifier from the request - OracleSpec *v12.OracleSpec `protobuf:"bytes,1,opt,name=oracle_spec,json=oracleSpec,proto3" json:"oracle_spec,omitempty"` -} - -func (x *OracleSpecResponse) Reset() { - *x = OracleSpecResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[145] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleSpecResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleSpecResponse) ProtoMessage() {} - -func (x *OracleSpecResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[145] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleSpecResponse.ProtoReflect.Descriptor instead. -func (*OracleSpecResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{145} -} - -func (x *OracleSpecResponse) GetOracleSpec() *v12.OracleSpec { - if x != nil { - return x.OracleSpec - } - return nil -} - -// A request to get a specific oracle spec by identifier -type OracleSpecsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OracleSpecsRequest) Reset() { - *x = OracleSpecsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[146] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleSpecsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleSpecsRequest) ProtoMessage() {} - -func (x *OracleSpecsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[146] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleSpecsRequest.ProtoReflect.Descriptor instead. -func (*OracleSpecsRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{146} -} - -// The response for a list of withdrawals -type OracleSpecsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of oracle specs - OracleSpecs []*v12.OracleSpec `protobuf:"bytes,1,rep,name=oracle_specs,json=oracleSpecs,proto3" json:"oracle_specs,omitempty"` -} - -func (x *OracleSpecsResponse) Reset() { - *x = OracleSpecsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[147] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleSpecsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleSpecsResponse) ProtoMessage() {} - -func (x *OracleSpecsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[147] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleSpecsResponse.ProtoReflect.Descriptor instead. -func (*OracleSpecsResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{147} -} - -func (x *OracleSpecsResponse) GetOracleSpecs() []*v12.OracleSpec { - if x != nil { - return x.OracleSpecs - } - return nil -} - -// A request to all oracle data broadcast to a given spec -type OracleDataBySpecRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The id to get the oracle spec for - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *OracleDataBySpecRequest) Reset() { - *x = OracleDataBySpecRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[148] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleDataBySpecRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleDataBySpecRequest) ProtoMessage() {} - -func (x *OracleDataBySpecRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[148] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleDataBySpecRequest.ProtoReflect.Descriptor instead. -func (*OracleDataBySpecRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{148} -} - -func (x *OracleDataBySpecRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// The response for a list of all oracle data broadcast to a given spec -type OracleDataBySpecResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of oracle data broadcast to a given spec - OracleData []*v12.OracleData `protobuf:"bytes,1,rep,name=oracle_data,json=oracleData,proto3" json:"oracle_data,omitempty"` -} - -func (x *OracleDataBySpecResponse) Reset() { - *x = OracleDataBySpecResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[149] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OracleDataBySpecResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OracleDataBySpecResponse) ProtoMessage() {} - -func (x *OracleDataBySpecResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[149] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OracleDataBySpecResponse.ProtoReflect.Descriptor instead. -func (*OracleDataBySpecResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{149} -} - -func (x *OracleDataBySpecResponse) GetOracleData() []*v12.OracleData { - if x != nil { - return x.OracleData - } - return nil -} - -// A request to get the height of the very last block processed -// by tendermint -type LastBlockHeightRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LastBlockHeightRequest) Reset() { - *x = LastBlockHeightRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[150] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LastBlockHeightRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LastBlockHeightRequest) ProtoMessage() {} - -func (x *LastBlockHeightRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[150] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LastBlockHeightRequest.ProtoReflect.Descriptor instead. -func (*LastBlockHeightRequest) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{150} -} - -// A response with the height of the last block processed by -// tendermint -type LastBlockHeightResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` -} - -func (x *LastBlockHeightResponse) Reset() { - *x = LastBlockHeightResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_trading_proto_msgTypes[151] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LastBlockHeightResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LastBlockHeightResponse) ProtoMessage() {} - -func (x *LastBlockHeightResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_trading_proto_msgTypes[151] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LastBlockHeightResponse.ProtoReflect.Descriptor instead. -func (*LastBlockHeightResponse) Descriptor() ([]byte, []int) { - return file_api_trading_proto_rawDescGZIP(), []int{151} -} - -func (x *LastBlockHeightResponse) GetHeight() uint64 { - if x != nil { - return x.Height - } - return 0 -} - -var File_api_trading_proto protoreflect.FileDescriptor - -var file_api_trading_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x0a, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, - 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, - 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x1a, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, - 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x03, 0x65, 0x76, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x03, 0x65, 0x76, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, - 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x37, 0x0a, 0x1b, 0x50, - 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x22, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x52, 0x02, 0x74, 0x78, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x4c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, - 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x01, 0x12, 0x0d, - 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02, 0x12, 0x0f, 0x0a, - 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x03, 0x22, 0x35, - 0x0a, 0x19, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x1a, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x02, 0x74, 0x78, 0x12, 0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x4c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, - 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x01, 0x12, 0x0d, - 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02, 0x12, 0x0f, 0x0a, - 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x03, 0x22, 0x37, - 0x0a, 0x1b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x5a, 0x0a, 0x16, 0x50, 0x72, 0x65, 0x70, 0x61, - 0x72, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x40, 0x0a, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, - 0x72, 0x61, 0x77, 0x22, 0x2d, 0x0a, 0x17, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6c, - 0x6f, 0x62, 0x22, 0x4d, 0x0a, 0x1a, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x49, - 0x64, 0x22, 0x30, 0x0a, 0x1a, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, - 0x6c, 0x6f, 0x62, 0x22, 0x2f, 0x0a, 0x19, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6d, - 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x62, 0x6c, 0x6f, 0x62, 0x22, 0x5e, 0x0a, 0x19, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x41, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x64, 0x0a, 0x19, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x63, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5a, 0x0a, 0x18, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x09, 0x61, 0x6d, 0x65, 0x6e, 0x64, 0x6d, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x61, 0x6d, 0x65, - 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x0f, 0x0a, 0x0d, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0x2a, - 0x0a, 0x10, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x36, 0x0a, 0x11, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x21, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x05, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x22, 0x3b, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x65, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x15, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5c, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x40, 0x0a, 0x14, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x86, 0x01, 0x0a, 0x1a, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, - 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x45, 0x0a, - 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, - 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, - 0x16, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, - 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x17, 0x47, 0x65, - 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, 0x6f, 0x74, 0x65, - 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x65, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x4e, 0x65, - 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x49, - 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8d, 0x01, 0x0a, 0x1f, 0x47, 0x65, - 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, - 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x49, 0x64, 0x12, 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4c, 0x0a, 0x20, 0x47, 0x65, 0x74, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6d, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x4e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x49, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x51, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x64, 0x0a, 0x1b, 0x47, 0x65, 0x74, - 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0f, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, - 0x48, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x16, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x49, 0x44, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, - 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x45, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x24, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x09, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x4a, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x1a, 0x0a, 0x18, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x47, - 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x45, 0x0a, 0x19, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, - 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x1c, 0x4f, 0x62, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, - 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x1d, 0x4f, 0x62, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x46, 0x0a, 0x1b, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, - 0x01, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x3e, 0x0a, - 0x1c, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, - 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x22, 0x3d, 0x0a, - 0x18, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x56, 0x6f, 0x74, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, - 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, - 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x19, - 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x56, 0x6f, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x76, 0x6f, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, - 0x6f, 0x74, 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x22, 0x5e, 0x0a, 0x1c, 0x4d, 0x61, 0x72, - 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, - 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, - 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x1d, 0x4d, 0x61, 0x72, - 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x73, 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x73, 0x22, 0x55, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, - 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x14, 0x4d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x52, 0x0c, 0x6d, - 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x22, 0x3a, 0x0a, 0x1b, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x51, 0x0a, 0x1c, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x22, 0x3c, 0x0a, 0x15, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x4b, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x13, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x37, 0x0a, 0x10, 0x4c, 0x61, 0x73, 0x74, 0x54, - 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, - 0x22, 0x36, 0x0a, 0x11, 0x4c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, - 0x65, 0x52, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x22, 0x38, 0x0a, 0x11, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, - 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x12, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x22, 0x35, - 0x0a, 0x10, 0x50, 0x61, 0x72, 0x74, 0x79, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x79, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x22, 0x10, 0x0a, - 0x0e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x38, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x70, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, - 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x14, 0x54, 0x72, - 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3c, - 0x0a, 0x15, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, - 0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x14, - 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, - 0x3c, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0x8f, 0x01, - 0x0a, 0x18, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, - 0x44, 0x0a, 0x19, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x07, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x16, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x64, 0x65, - 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x6a, 0x0a, 0x17, 0x43, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, - 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x08, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x40, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x24, 0x0a, 0x06, 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, - 0x06, 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x42, 0x0a, 0x1b, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, - 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x1c, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x0c, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, - 0x65, 0x70, 0x74, 0x68, 0x52, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, - 0x68, 0x22, 0x49, 0x0a, 0x22, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, - 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x23, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x06, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x22, 0x53, 0x0a, 0x19, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x1a, 0x50, 0x6f, 0x73, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x15, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3d, 0x0a, 0x16, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, - 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x23, 0x0a, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x73, 0x22, 0x6d, 0x0a, 0x14, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, - 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, - 0x32, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x15, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x50, - 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x73, 0x22, 0x63, 0x0a, 0x19, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x41, 0x6e, 0x64, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, - 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x1a, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, - 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x3f, 0x0a, 0x17, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x24, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x09, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x3d, 0x0a, 0x18, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x10, 0x0a, 0x0e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x39, 0x0a, 0x0f, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x73, 0x22, 0x92, 0x01, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, - 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x0f, - 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x0e, 0x73, - 0x69, 0x6e, 0x63, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2a, 0x0a, - 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, - 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x39, 0x0a, 0x0f, 0x43, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, - 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, 0x63, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x12, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, - 0x70, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, - 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x44, 0x65, 0x70, 0x74, 0x68, 0x22, 0xd1, 0x01, 0x0a, - 0x13, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, 0x24, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12, 0x2a, 0x0a, 0x0a, 0x6c, - 0x61, 0x73, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x09, 0x6c, 0x61, - 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x22, 0x70, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, - 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x32, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x3d, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, - 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, - 0x73, 0x22, 0x59, 0x0a, 0x17, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, - 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x18, - 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, - 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x33, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x22, 0x56, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, - 0x6b, 0x69, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x73, - 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, - 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x3e, 0x0a, 0x17, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x22, 0x3e, 0x0a, 0x17, 0x54, 0x72, 0x61, - 0x64, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, - 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0x23, 0x0a, 0x21, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, - 0x0a, 0x22, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x14, 0x50, 0x61, 0x72, - 0x74, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x42, 0x0a, 0x15, 0x50, 0x61, 0x72, 0x74, 0x79, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x29, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x4a, 0x0a, 0x15, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x43, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x29, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x38, 0x0a, 0x20, 0x46, - 0x65, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x4e, 0x0a, 0x21, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x72, - 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x68, 0x0a, 0x20, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x0a, 0x73, 0x75, 0x62, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x7d, 0x0a, 0x21, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x44, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x68, - 0x0a, 0x1c, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, - 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, 0x0a, 0x73, 0x75, - 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x75, 0x0a, 0x1d, 0x50, 0x72, 0x65, 0x70, - 0x61, 0x72, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, - 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x40, 0x0a, - 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x7a, 0x0a, 0x20, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, - 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, - 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x21, 0x50, - 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x62, 0x6c, 0x6f, 0x62, 0x22, 0x4f, 0x0a, 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x49, - 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, - 0x20, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x36, 0x0a, 0x11, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x71, 0x0a, - 0x18, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, - 0x02, 0x20, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x40, 0x0a, 0x19, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, - 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x73, 0x22, 0x37, 0x0a, 0x12, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x46, 0x65, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x32, 0x0a, 0x13, 0x45, - 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x09, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x46, 0x65, 0x65, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, - 0x3a, 0x0a, 0x15, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x45, - 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, - 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x22, 0xa1, - 0x01, 0x0a, 0x16, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, - 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x17, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x42, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, - 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, - 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, - 0x13, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x73, 0x74, - 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x37, 0x0a, 0x12, - 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x13, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, - 0x77, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0b, - 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, - 0x77, 0x61, 0x6c, 0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, - 0x22, 0x2b, 0x0a, 0x11, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x46, 0x0a, - 0x12, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, - 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, - 0x72, 0x61, 0x77, 0x61, 0x6c, 0x22, 0x4d, 0x0a, 0x1e, 0x45, 0x52, 0x43, 0x32, 0x30, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0d, 0x77, 0x69, 0x74, 0x68, 0x64, - 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0c, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x61, 0x6c, 0x49, 0x64, 0x22, 0xaa, 0x01, 0x0a, 0x1f, 0x45, 0x52, 0x43, 0x32, 0x30, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, - 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x22, 0x34, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x10, 0x44, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x64, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x08, 0x64, 0x65, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x3a, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x22, 0x1a, 0x0a, 0x18, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x62, 0x0a, 0x19, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x4a, 0x0a, 0x1a, - 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x22, 0x6a, 0x0a, 0x1b, 0x4c, 0x69, 0x71, 0x75, - 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x14, 0x6c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, - 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x13, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x11, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, - 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x4d, 0x0a, 0x12, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, - 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x53, 0x70, 0x65, 0x63, 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, - 0x22, 0x14, 0x0a, 0x12, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x13, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x53, 0x70, 0x65, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x0c, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0b, 0x6f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x73, 0x22, 0x31, 0x0a, 0x17, 0x4f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x18, 0x4f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, - 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, - 0x22, 0x18, 0x0a, 0x16, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x17, 0x4c, 0x61, - 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x32, 0xdc, 0x07, - 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x5b, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, - 0x12, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, - 0x70, 0x61, 0x72, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, - 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, - 0x72, 0x65, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x57, - 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x70, 0x0a, 0x19, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x56, - 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x56, 0x6f, - 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, - 0x70, 0x61, 0x72, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x50, 0x72, - 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, - 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x19, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, - 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, - 0x72, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xaf, 0x2b, 0x0a, - 0x12, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x74, 0x79, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x61, 0x72, 0x74, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, - 0x74, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x70, 0x0a, 0x19, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, - 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x72, - 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, - 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4f, 0x0a, 0x0e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, - 0x49, 0x44, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, - 0x0a, 0x0b, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x12, 0x1a, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, - 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x73, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x49, 0x44, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, - 0x6e, 0x64, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x41, 0x6e, 0x64, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x55, 0x0a, 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, - 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, - 0x49, 0x44, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x44, 0x12, 0x20, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, - 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, - 0x79, 0x42, 0x79, 0x49, 0x44, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x61, 0x72, 0x74, 0x79, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x50, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1f, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x40, 0x0a, 0x09, 0x4c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x18, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, - 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, - 0x64, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, - 0x64, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, - 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x49, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, - 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, - 0x74, 0x79, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x47, - 0x65, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x42, 0x79, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x64, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x77, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x49, 0x44, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x49, - 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x49, - 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x16, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x42, - 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x11, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x47, 0x6f, 0x76, - 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x66, - 0x0a, 0x15, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x11, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x50, 0x61, 0x72, 0x74, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, 0x72, 0x74, - 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x30, 0x01, 0x12, 0x63, 0x0a, 0x14, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x0f, 0x4f, 0x62, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x42, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x42, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, - 0x43, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x19, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x56, - 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5a, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x57, 0x0a, 0x10, - 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, - 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x66, 0x0a, 0x15, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x24, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x63, 0x0a, - 0x14, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x30, 0x01, 0x12, 0x78, 0x0a, 0x1b, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, - 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, - 0x65, 0x12, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, - 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x63, 0x0a, 0x14, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x62, 0x65, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, - 0x01, 0x12, 0x54, 0x0a, 0x0f, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x62, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x21, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x75, 0x0a, 0x1a, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x30, 0x01, 0x12, 0x73, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, - 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x41, 0x67, 0x67, 0x72, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x46, - 0x65, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, - 0x6d, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, - 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x45, - 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x1d, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x4d, - 0x61, 0x72, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x17, - 0x45, 0x52, 0x43, 0x32, 0x30, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, - 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x52, 0x43, 0x32, 0x30, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, - 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x52, 0x43, 0x32, 0x30, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, - 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, - 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, - 0x0b, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x17, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x58, 0x0a, 0x11, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x4c, 0x69, - 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x4f, 0x72, - 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x46, 0x0a, 0x0b, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x1a, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, - 0x65, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x4f, 0x72, 0x61, 0x63, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1f, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, - 0x42, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3f, - 0x0a, 0x18, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x23, 0x63, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, - 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_api_trading_proto_rawDescOnce sync.Once - file_api_trading_proto_rawDescData = file_api_trading_proto_rawDesc -) - -func file_api_trading_proto_rawDescGZIP() []byte { - file_api_trading_proto_rawDescOnce.Do(func() { - file_api_trading_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_trading_proto_rawDescData) - }) - return file_api_trading_proto_rawDescData -} - -var file_api_trading_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_api_trading_proto_msgTypes = make([]protoimpl.MessageInfo, 152) -var file_api_trading_proto_goTypes = []interface{}{ - (SubmitTransactionRequest_Type)(0), // 0: api.v1.SubmitTransactionRequest.Type - (SubmitTransactionV2Request_Type)(0), // 1: api.v1.SubmitTransactionV2Request.Type - (*PropagateChainEventRequest)(nil), // 2: api.v1.PropagateChainEventRequest - (*PropagateChainEventResponse)(nil), // 3: api.v1.PropagateChainEventResponse - (*SubmitTransactionRequest)(nil), // 4: api.v1.SubmitTransactionRequest - (*SubmitTransactionResponse)(nil), // 5: api.v1.SubmitTransactionResponse - (*SubmitTransactionV2Request)(nil), // 6: api.v1.SubmitTransactionV2Request - (*SubmitTransactionV2Response)(nil), // 7: api.v1.SubmitTransactionV2Response - (*PrepareWithdrawRequest)(nil), // 8: api.v1.PrepareWithdrawRequest - (*PrepareWithdrawResponse)(nil), // 9: api.v1.PrepareWithdrawResponse - (*PrepareSubmitOrderResponse)(nil), // 10: api.v1.PrepareSubmitOrderResponse - (*PrepareCancelOrderResponse)(nil), // 11: api.v1.PrepareCancelOrderResponse - (*PrepareAmendOrderResponse)(nil), // 12: api.v1.PrepareAmendOrderResponse - (*PrepareSubmitOrderRequest)(nil), // 13: api.v1.PrepareSubmitOrderRequest - (*PrepareCancelOrderRequest)(nil), // 14: api.v1.PrepareCancelOrderRequest - (*PrepareAmendOrderRequest)(nil), // 15: api.v1.PrepareAmendOrderRequest - (*AssetsRequest)(nil), // 16: api.v1.AssetsRequest - (*AssetsResponse)(nil), // 17: api.v1.AssetsResponse - (*AssetByIDRequest)(nil), // 18: api.v1.AssetByIDRequest - (*AssetByIDResponse)(nil), // 19: api.v1.AssetByIDResponse - (*GetNodeSignaturesAggregateRequest)(nil), // 20: api.v1.GetNodeSignaturesAggregateRequest - (*GetNodeSignaturesAggregateResponse)(nil), // 21: api.v1.GetNodeSignaturesAggregateResponse - (*OptionalProposalState)(nil), // 22: api.v1.OptionalProposalState - (*GetProposalsRequest)(nil), // 23: api.v1.GetProposalsRequest - (*GetProposalsResponse)(nil), // 24: api.v1.GetProposalsResponse - (*GetProposalsByPartyRequest)(nil), // 25: api.v1.GetProposalsByPartyRequest - (*GetProposalsByPartyResponse)(nil), // 26: api.v1.GetProposalsByPartyResponse - (*GetVotesByPartyRequest)(nil), // 27: api.v1.GetVotesByPartyRequest - (*GetVotesByPartyResponse)(nil), // 28: api.v1.GetVotesByPartyResponse - (*GetNewMarketProposalsRequest)(nil), // 29: api.v1.GetNewMarketProposalsRequest - (*GetNewMarketProposalsResponse)(nil), // 30: api.v1.GetNewMarketProposalsResponse - (*GetUpdateMarketProposalsRequest)(nil), // 31: api.v1.GetUpdateMarketProposalsRequest - (*GetUpdateMarketProposalsResponse)(nil), // 32: api.v1.GetUpdateMarketProposalsResponse - (*GetNetworkParametersProposalsRequest)(nil), // 33: api.v1.GetNetworkParametersProposalsRequest - (*GetNetworkParametersProposalsResponse)(nil), // 34: api.v1.GetNetworkParametersProposalsResponse - (*GetNewAssetProposalsRequest)(nil), // 35: api.v1.GetNewAssetProposalsRequest - (*GetNewAssetProposalsResponse)(nil), // 36: api.v1.GetNewAssetProposalsResponse - (*GetProposalByIDRequest)(nil), // 37: api.v1.GetProposalByIDRequest - (*GetProposalByIDResponse)(nil), // 38: api.v1.GetProposalByIDResponse - (*GetProposalByReferenceRequest)(nil), // 39: api.v1.GetProposalByReferenceRequest - (*GetProposalByReferenceResponse)(nil), // 40: api.v1.GetProposalByReferenceResponse - (*ObserveGovernanceRequest)(nil), // 41: api.v1.ObserveGovernanceRequest - (*ObserveGovernanceResponse)(nil), // 42: api.v1.ObserveGovernanceResponse - (*ObservePartyProposalsRequest)(nil), // 43: api.v1.ObservePartyProposalsRequest - (*ObservePartyProposalsResponse)(nil), // 44: api.v1.ObservePartyProposalsResponse - (*ObserveProposalVotesRequest)(nil), // 45: api.v1.ObserveProposalVotesRequest - (*ObserveProposalVotesResponse)(nil), // 46: api.v1.ObserveProposalVotesResponse - (*ObservePartyVotesRequest)(nil), // 47: api.v1.ObservePartyVotesRequest - (*ObservePartyVotesResponse)(nil), // 48: api.v1.ObservePartyVotesResponse - (*MarginLevelsSubscribeRequest)(nil), // 49: api.v1.MarginLevelsSubscribeRequest - (*MarginLevelsSubscribeResponse)(nil), // 50: api.v1.MarginLevelsSubscribeResponse - (*MarginLevelsRequest)(nil), // 51: api.v1.MarginLevelsRequest - (*MarginLevelsResponse)(nil), // 52: api.v1.MarginLevelsResponse - (*MarketsDataSubscribeRequest)(nil), // 53: api.v1.MarketsDataSubscribeRequest - (*MarketsDataSubscribeResponse)(nil), // 54: api.v1.MarketsDataSubscribeResponse - (*MarketDataByIDRequest)(nil), // 55: api.v1.MarketDataByIDRequest - (*MarketDataByIDResponse)(nil), // 56: api.v1.MarketDataByIDResponse - (*MarketsDataRequest)(nil), // 57: api.v1.MarketsDataRequest - (*MarketsDataResponse)(nil), // 58: api.v1.MarketsDataResponse - (*LastTradeRequest)(nil), // 59: api.v1.LastTradeRequest - (*LastTradeResponse)(nil), // 60: api.v1.LastTradeResponse - (*MarketByIDRequest)(nil), // 61: api.v1.MarketByIDRequest - (*MarketByIDResponse)(nil), // 62: api.v1.MarketByIDResponse - (*PartyByIDRequest)(nil), // 63: api.v1.PartyByIDRequest - (*PartyByIDResponse)(nil), // 64: api.v1.PartyByIDResponse - (*PartiesRequest)(nil), // 65: api.v1.PartiesRequest - (*PartiesResponse)(nil), // 66: api.v1.PartiesResponse - (*TradesByPartyRequest)(nil), // 67: api.v1.TradesByPartyRequest - (*TradesByPartyResponse)(nil), // 68: api.v1.TradesByPartyResponse - (*TradesByOrderRequest)(nil), // 69: api.v1.TradesByOrderRequest - (*TradesByOrderResponse)(nil), // 70: api.v1.TradesByOrderResponse - (*AccountsSubscribeRequest)(nil), // 71: api.v1.AccountsSubscribeRequest - (*AccountsSubscribeResponse)(nil), // 72: api.v1.AccountsSubscribeResponse - (*OrdersSubscribeRequest)(nil), // 73: api.v1.OrdersSubscribeRequest - (*TradesSubscribeRequest)(nil), // 74: api.v1.TradesSubscribeRequest - (*CandlesSubscribeRequest)(nil), // 75: api.v1.CandlesSubscribeRequest - (*CandlesSubscribeResponse)(nil), // 76: api.v1.CandlesSubscribeResponse - (*MarketDepthSubscribeRequest)(nil), // 77: api.v1.MarketDepthSubscribeRequest - (*MarketDepthSubscribeResponse)(nil), // 78: api.v1.MarketDepthSubscribeResponse - (*MarketDepthUpdatesSubscribeRequest)(nil), // 79: api.v1.MarketDepthUpdatesSubscribeRequest - (*MarketDepthUpdatesSubscribeResponse)(nil), // 80: api.v1.MarketDepthUpdatesSubscribeResponse - (*PositionsSubscribeRequest)(nil), // 81: api.v1.PositionsSubscribeRequest - (*PositionsSubscribeResponse)(nil), // 82: api.v1.PositionsSubscribeResponse - (*OrdersByMarketRequest)(nil), // 83: api.v1.OrdersByMarketRequest - (*OrdersByMarketResponse)(nil), // 84: api.v1.OrdersByMarketResponse - (*OrdersByPartyRequest)(nil), // 85: api.v1.OrdersByPartyRequest - (*OrdersByPartyResponse)(nil), // 86: api.v1.OrdersByPartyResponse - (*OrderByMarketAndIDRequest)(nil), // 87: api.v1.OrderByMarketAndIDRequest - (*OrderByMarketAndIDResponse)(nil), // 88: api.v1.OrderByMarketAndIDResponse - (*OrderByReferenceRequest)(nil), // 89: api.v1.OrderByReferenceRequest - (*OrderByReferenceResponse)(nil), // 90: api.v1.OrderByReferenceResponse - (*MarketsRequest)(nil), // 91: api.v1.MarketsRequest - (*MarketsResponse)(nil), // 92: api.v1.MarketsResponse - (*CandlesRequest)(nil), // 93: api.v1.CandlesRequest - (*CandlesResponse)(nil), // 94: api.v1.CandlesResponse - (*MarketDepthRequest)(nil), // 95: api.v1.MarketDepthRequest - (*MarketDepthResponse)(nil), // 96: api.v1.MarketDepthResponse - (*TradesByMarketRequest)(nil), // 97: api.v1.TradesByMarketRequest - (*TradesByMarketResponse)(nil), // 98: api.v1.TradesByMarketResponse - (*PositionsByPartyRequest)(nil), // 99: api.v1.PositionsByPartyRequest - (*PositionsByPartyResponse)(nil), // 100: api.v1.PositionsByPartyResponse - (*GetVegaTimeRequest)(nil), // 101: api.v1.GetVegaTimeRequest - (*GetVegaTimeResponse)(nil), // 102: api.v1.GetVegaTimeResponse - (*Pagination)(nil), // 103: api.v1.Pagination - (*OrdersSubscribeResponse)(nil), // 104: api.v1.OrdersSubscribeResponse - (*TradesSubscribeResponse)(nil), // 105: api.v1.TradesSubscribeResponse - (*TransferResponsesSubscribeRequest)(nil), // 106: api.v1.TransferResponsesSubscribeRequest - (*TransferResponsesSubscribeResponse)(nil), // 107: api.v1.TransferResponsesSubscribeResponse - (*PartyAccountsRequest)(nil), // 108: api.v1.PartyAccountsRequest - (*PartyAccountsResponse)(nil), // 109: api.v1.PartyAccountsResponse - (*MarketAccountsRequest)(nil), // 110: api.v1.MarketAccountsRequest - (*MarketAccountsResponse)(nil), // 111: api.v1.MarketAccountsResponse - (*FeeInfrastructureAccountsRequest)(nil), // 112: api.v1.FeeInfrastructureAccountsRequest - (*FeeInfrastructureAccountsResponse)(nil), // 113: api.v1.FeeInfrastructureAccountsResponse - (*PrepareProposalSubmissionRequest)(nil), // 114: api.v1.PrepareProposalSubmissionRequest - (*PrepareProposalSubmissionResponse)(nil), // 115: api.v1.PrepareProposalSubmissionResponse - (*PrepareVoteSubmissionRequest)(nil), // 116: api.v1.PrepareVoteSubmissionRequest - (*PrepareVoteSubmissionResponse)(nil), // 117: api.v1.PrepareVoteSubmissionResponse - (*PrepareLiquidityProvisionRequest)(nil), // 118: api.v1.PrepareLiquidityProvisionRequest - (*PrepareLiquidityProvisionResponse)(nil), // 119: api.v1.PrepareLiquidityProvisionResponse - (*OrderByIDRequest)(nil), // 120: api.v1.OrderByIDRequest - (*OrderByIDResponse)(nil), // 121: api.v1.OrderByIDResponse - (*OrderVersionsByIDRequest)(nil), // 122: api.v1.OrderVersionsByIDRequest - (*OrderVersionsByIDResponse)(nil), // 123: api.v1.OrderVersionsByIDResponse - (*EstimateFeeRequest)(nil), // 124: api.v1.EstimateFeeRequest - (*EstimateFeeResponse)(nil), // 125: api.v1.EstimateFeeResponse - (*EstimateMarginRequest)(nil), // 126: api.v1.EstimateMarginRequest - (*EstimateMarginResponse)(nil), // 127: api.v1.EstimateMarginResponse - (*ObserveEventBusRequest)(nil), // 128: api.v1.ObserveEventBusRequest - (*ObserveEventBusResponse)(nil), // 129: api.v1.ObserveEventBusResponse - (*StatisticsRequest)(nil), // 130: api.v1.StatisticsRequest - (*StatisticsResponse)(nil), // 131: api.v1.StatisticsResponse - (*WithdrawalsRequest)(nil), // 132: api.v1.WithdrawalsRequest - (*WithdrawalsResponse)(nil), // 133: api.v1.WithdrawalsResponse - (*WithdrawalRequest)(nil), // 134: api.v1.WithdrawalRequest - (*WithdrawalResponse)(nil), // 135: api.v1.WithdrawalResponse - (*ERC20WithdrawalApprovalRequest)(nil), // 136: api.v1.ERC20WithdrawalApprovalRequest - (*ERC20WithdrawalApprovalResponse)(nil), // 137: api.v1.ERC20WithdrawalApprovalResponse - (*DepositsRequest)(nil), // 138: api.v1.DepositsRequest - (*DepositsResponse)(nil), // 139: api.v1.DepositsResponse - (*DepositRequest)(nil), // 140: api.v1.DepositRequest - (*DepositResponse)(nil), // 141: api.v1.DepositResponse - (*NetworkParametersRequest)(nil), // 142: api.v1.NetworkParametersRequest - (*NetworkParametersResponse)(nil), // 143: api.v1.NetworkParametersResponse - (*LiquidityProvisionsRequest)(nil), // 144: api.v1.LiquidityProvisionsRequest - (*LiquidityProvisionsResponse)(nil), // 145: api.v1.LiquidityProvisionsResponse - (*OracleSpecRequest)(nil), // 146: api.v1.OracleSpecRequest - (*OracleSpecResponse)(nil), // 147: api.v1.OracleSpecResponse - (*OracleSpecsRequest)(nil), // 148: api.v1.OracleSpecsRequest - (*OracleSpecsResponse)(nil), // 149: api.v1.OracleSpecsResponse - (*OracleDataBySpecRequest)(nil), // 150: api.v1.OracleDataBySpecRequest - (*OracleDataBySpecResponse)(nil), // 151: api.v1.OracleDataBySpecResponse - (*LastBlockHeightRequest)(nil), // 152: api.v1.LastBlockHeightRequest - (*LastBlockHeightResponse)(nil), // 153: api.v1.LastBlockHeightResponse - (*v1.ChainEvent)(nil), // 154: vega.commands.v1.ChainEvent - (*proto1.SignedBundle)(nil), // 155: vega.SignedBundle - (*v1.Transaction)(nil), // 156: vega.commands.v1.Transaction - (*v1.WithdrawSubmission)(nil), // 157: vega.commands.v1.WithdrawSubmission - (*v1.OrderSubmission)(nil), // 158: vega.commands.v1.OrderSubmission - (*v1.OrderCancellation)(nil), // 159: vega.commands.v1.OrderCancellation - (*v1.OrderAmendment)(nil), // 160: vega.commands.v1.OrderAmendment - (*proto1.Asset)(nil), // 161: vega.Asset - (*v1.NodeSignature)(nil), // 162: vega.commands.v1.NodeSignature - (proto1.Proposal_State)(0), // 163: vega.Proposal.State - (*proto1.GovernanceData)(nil), // 164: vega.GovernanceData - (*proto1.Vote)(nil), // 165: vega.Vote - (*proto1.MarginLevels)(nil), // 166: vega.MarginLevels - (*proto1.MarketData)(nil), // 167: vega.MarketData - (*proto1.Trade)(nil), // 168: vega.Trade - (*proto1.Market)(nil), // 169: vega.Market - (*proto1.Party)(nil), // 170: vega.Party - (proto1.AccountType)(0), // 171: vega.AccountType - (*proto1.Account)(nil), // 172: vega.Account - (proto1.Interval)(0), // 173: vega.Interval - (*proto1.Candle)(nil), // 174: vega.Candle - (*proto1.MarketDepth)(nil), // 175: vega.MarketDepth - (*proto1.MarketDepthUpdate)(nil), // 176: vega.MarketDepthUpdate - (*proto1.Position)(nil), // 177: vega.Position - (*proto1.Order)(nil), // 178: vega.Order - (*proto1.PriceLevel)(nil), // 179: vega.PriceLevel - (*proto1.TransferResponse)(nil), // 180: vega.TransferResponse - (*v1.ProposalSubmission)(nil), // 181: vega.commands.v1.ProposalSubmission - (*v1.VoteSubmission)(nil), // 182: vega.commands.v1.VoteSubmission - (*v1.LiquidityProvisionSubmission)(nil), // 183: vega.commands.v1.LiquidityProvisionSubmission - (*proto1.Fee)(nil), // 184: vega.Fee - (v11.BusEventType)(0), // 185: vega.events.v1.BusEventType - (*v11.BusEvent)(nil), // 186: vega.events.v1.BusEvent - (*proto1.Statistics)(nil), // 187: vega.Statistics - (*proto1.Withdrawal)(nil), // 188: vega.Withdrawal - (*proto1.Deposit)(nil), // 189: vega.Deposit - (*proto1.NetworkParameter)(nil), // 190: vega.NetworkParameter - (*proto1.LiquidityProvision)(nil), // 191: vega.LiquidityProvision - (*v12.OracleSpec)(nil), // 192: oracles.v1.OracleSpec - (*v12.OracleData)(nil), // 193: oracles.v1.OracleData -} -var file_api_trading_proto_depIdxs = []int32{ - 154, // 0: api.v1.PropagateChainEventRequest.evt:type_name -> vega.commands.v1.ChainEvent - 155, // 1: api.v1.SubmitTransactionRequest.tx:type_name -> vega.SignedBundle - 0, // 2: api.v1.SubmitTransactionRequest.type:type_name -> api.v1.SubmitTransactionRequest.Type - 156, // 3: api.v1.SubmitTransactionV2Request.tx:type_name -> vega.commands.v1.Transaction - 1, // 4: api.v1.SubmitTransactionV2Request.type:type_name -> api.v1.SubmitTransactionV2Request.Type - 157, // 5: api.v1.PrepareWithdrawRequest.withdraw:type_name -> vega.commands.v1.WithdrawSubmission - 158, // 6: api.v1.PrepareSubmitOrderRequest.submission:type_name -> vega.commands.v1.OrderSubmission - 159, // 7: api.v1.PrepareCancelOrderRequest.cancellation:type_name -> vega.commands.v1.OrderCancellation - 160, // 8: api.v1.PrepareAmendOrderRequest.amendment:type_name -> vega.commands.v1.OrderAmendment - 161, // 9: api.v1.AssetsResponse.assets:type_name -> vega.Asset - 161, // 10: api.v1.AssetByIDResponse.asset:type_name -> vega.Asset - 162, // 11: api.v1.GetNodeSignaturesAggregateResponse.signatures:type_name -> vega.commands.v1.NodeSignature - 163, // 12: api.v1.OptionalProposalState.value:type_name -> vega.Proposal.State - 22, // 13: api.v1.GetProposalsRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 14: api.v1.GetProposalsResponse.data:type_name -> vega.GovernanceData - 22, // 15: api.v1.GetProposalsByPartyRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 16: api.v1.GetProposalsByPartyResponse.data:type_name -> vega.GovernanceData - 165, // 17: api.v1.GetVotesByPartyResponse.votes:type_name -> vega.Vote - 22, // 18: api.v1.GetNewMarketProposalsRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 19: api.v1.GetNewMarketProposalsResponse.data:type_name -> vega.GovernanceData - 22, // 20: api.v1.GetUpdateMarketProposalsRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 21: api.v1.GetUpdateMarketProposalsResponse.data:type_name -> vega.GovernanceData - 22, // 22: api.v1.GetNetworkParametersProposalsRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 23: api.v1.GetNetworkParametersProposalsResponse.data:type_name -> vega.GovernanceData - 22, // 24: api.v1.GetNewAssetProposalsRequest.select_in_state:type_name -> api.v1.OptionalProposalState - 164, // 25: api.v1.GetNewAssetProposalsResponse.data:type_name -> vega.GovernanceData - 164, // 26: api.v1.GetProposalByIDResponse.data:type_name -> vega.GovernanceData - 164, // 27: api.v1.GetProposalByReferenceResponse.data:type_name -> vega.GovernanceData - 164, // 28: api.v1.ObserveGovernanceResponse.data:type_name -> vega.GovernanceData - 164, // 29: api.v1.ObservePartyProposalsResponse.data:type_name -> vega.GovernanceData - 165, // 30: api.v1.ObserveProposalVotesResponse.vote:type_name -> vega.Vote - 165, // 31: api.v1.ObservePartyVotesResponse.vote:type_name -> vega.Vote - 166, // 32: api.v1.MarginLevelsSubscribeResponse.margin_levels:type_name -> vega.MarginLevels - 166, // 33: api.v1.MarginLevelsResponse.margin_levels:type_name -> vega.MarginLevels - 167, // 34: api.v1.MarketsDataSubscribeResponse.market_data:type_name -> vega.MarketData - 167, // 35: api.v1.MarketDataByIDResponse.market_data:type_name -> vega.MarketData - 167, // 36: api.v1.MarketsDataResponse.markets_data:type_name -> vega.MarketData - 168, // 37: api.v1.LastTradeResponse.trade:type_name -> vega.Trade - 169, // 38: api.v1.MarketByIDResponse.market:type_name -> vega.Market - 170, // 39: api.v1.PartyByIDResponse.party:type_name -> vega.Party - 170, // 40: api.v1.PartiesResponse.parties:type_name -> vega.Party - 103, // 41: api.v1.TradesByPartyRequest.pagination:type_name -> api.v1.Pagination - 168, // 42: api.v1.TradesByPartyResponse.trades:type_name -> vega.Trade - 168, // 43: api.v1.TradesByOrderResponse.trades:type_name -> vega.Trade - 171, // 44: api.v1.AccountsSubscribeRequest.type:type_name -> vega.AccountType - 172, // 45: api.v1.AccountsSubscribeResponse.account:type_name -> vega.Account - 173, // 46: api.v1.CandlesSubscribeRequest.interval:type_name -> vega.Interval - 174, // 47: api.v1.CandlesSubscribeResponse.candle:type_name -> vega.Candle - 175, // 48: api.v1.MarketDepthSubscribeResponse.market_depth:type_name -> vega.MarketDepth - 176, // 49: api.v1.MarketDepthUpdatesSubscribeResponse.update:type_name -> vega.MarketDepthUpdate - 177, // 50: api.v1.PositionsSubscribeResponse.position:type_name -> vega.Position - 103, // 51: api.v1.OrdersByMarketRequest.pagination:type_name -> api.v1.Pagination - 178, // 52: api.v1.OrdersByMarketResponse.orders:type_name -> vega.Order - 103, // 53: api.v1.OrdersByPartyRequest.pagination:type_name -> api.v1.Pagination - 178, // 54: api.v1.OrdersByPartyResponse.orders:type_name -> vega.Order - 178, // 55: api.v1.OrderByMarketAndIDResponse.order:type_name -> vega.Order - 178, // 56: api.v1.OrderByReferenceResponse.order:type_name -> vega.Order - 169, // 57: api.v1.MarketsResponse.markets:type_name -> vega.Market - 173, // 58: api.v1.CandlesRequest.interval:type_name -> vega.Interval - 174, // 59: api.v1.CandlesResponse.candles:type_name -> vega.Candle - 179, // 60: api.v1.MarketDepthResponse.buy:type_name -> vega.PriceLevel - 179, // 61: api.v1.MarketDepthResponse.sell:type_name -> vega.PriceLevel - 168, // 62: api.v1.MarketDepthResponse.last_trade:type_name -> vega.Trade - 103, // 63: api.v1.TradesByMarketRequest.pagination:type_name -> api.v1.Pagination - 168, // 64: api.v1.TradesByMarketResponse.trades:type_name -> vega.Trade - 177, // 65: api.v1.PositionsByPartyResponse.positions:type_name -> vega.Position - 178, // 66: api.v1.OrdersSubscribeResponse.orders:type_name -> vega.Order - 168, // 67: api.v1.TradesSubscribeResponse.trades:type_name -> vega.Trade - 180, // 68: api.v1.TransferResponsesSubscribeResponse.response:type_name -> vega.TransferResponse - 171, // 69: api.v1.PartyAccountsRequest.type:type_name -> vega.AccountType - 172, // 70: api.v1.PartyAccountsResponse.accounts:type_name -> vega.Account - 172, // 71: api.v1.MarketAccountsResponse.accounts:type_name -> vega.Account - 172, // 72: api.v1.FeeInfrastructureAccountsResponse.accounts:type_name -> vega.Account - 181, // 73: api.v1.PrepareProposalSubmissionRequest.submission:type_name -> vega.commands.v1.ProposalSubmission - 181, // 74: api.v1.PrepareProposalSubmissionResponse.submission:type_name -> vega.commands.v1.ProposalSubmission - 182, // 75: api.v1.PrepareVoteSubmissionRequest.submission:type_name -> vega.commands.v1.VoteSubmission - 182, // 76: api.v1.PrepareVoteSubmissionResponse.submission:type_name -> vega.commands.v1.VoteSubmission - 183, // 77: api.v1.PrepareLiquidityProvisionRequest.submission:type_name -> vega.commands.v1.LiquidityProvisionSubmission - 178, // 78: api.v1.OrderByIDResponse.order:type_name -> vega.Order - 103, // 79: api.v1.OrderVersionsByIDRequest.pagination:type_name -> api.v1.Pagination - 178, // 80: api.v1.OrderVersionsByIDResponse.orders:type_name -> vega.Order - 178, // 81: api.v1.EstimateFeeRequest.order:type_name -> vega.Order - 184, // 82: api.v1.EstimateFeeResponse.fee:type_name -> vega.Fee - 178, // 83: api.v1.EstimateMarginRequest.order:type_name -> vega.Order - 166, // 84: api.v1.EstimateMarginResponse.margin_levels:type_name -> vega.MarginLevels - 185, // 85: api.v1.ObserveEventBusRequest.type:type_name -> vega.events.v1.BusEventType - 186, // 86: api.v1.ObserveEventBusResponse.events:type_name -> vega.events.v1.BusEvent - 187, // 87: api.v1.StatisticsResponse.statistics:type_name -> vega.Statistics - 188, // 88: api.v1.WithdrawalsResponse.withdrawals:type_name -> vega.Withdrawal - 188, // 89: api.v1.WithdrawalResponse.withdrawal:type_name -> vega.Withdrawal - 189, // 90: api.v1.DepositsResponse.deposits:type_name -> vega.Deposit - 189, // 91: api.v1.DepositResponse.deposit:type_name -> vega.Deposit - 190, // 92: api.v1.NetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter - 191, // 93: api.v1.LiquidityProvisionsResponse.liquidity_provisions:type_name -> vega.LiquidityProvision - 192, // 94: api.v1.OracleSpecResponse.oracle_spec:type_name -> oracles.v1.OracleSpec - 192, // 95: api.v1.OracleSpecsResponse.oracle_specs:type_name -> oracles.v1.OracleSpec - 193, // 96: api.v1.OracleDataBySpecResponse.oracle_data:type_name -> oracles.v1.OracleData - 13, // 97: api.v1.TradingService.PrepareSubmitOrder:input_type -> api.v1.PrepareSubmitOrderRequest - 14, // 98: api.v1.TradingService.PrepareCancelOrder:input_type -> api.v1.PrepareCancelOrderRequest - 15, // 99: api.v1.TradingService.PrepareAmendOrder:input_type -> api.v1.PrepareAmendOrderRequest - 8, // 100: api.v1.TradingService.PrepareWithdraw:input_type -> api.v1.PrepareWithdrawRequest - 4, // 101: api.v1.TradingService.SubmitTransaction:input_type -> api.v1.SubmitTransactionRequest - 6, // 102: api.v1.TradingService.SubmitTransactionV2:input_type -> api.v1.SubmitTransactionV2Request - 114, // 103: api.v1.TradingService.PrepareProposalSubmission:input_type -> api.v1.PrepareProposalSubmissionRequest - 116, // 104: api.v1.TradingService.PrepareVoteSubmission:input_type -> api.v1.PrepareVoteSubmissionRequest - 2, // 105: api.v1.TradingService.PropagateChainEvent:input_type -> api.v1.PropagateChainEventRequest - 118, // 106: api.v1.TradingService.PrepareLiquidityProvision:input_type -> api.v1.PrepareLiquidityProvisionRequest - 110, // 107: api.v1.TradingDataService.MarketAccounts:input_type -> api.v1.MarketAccountsRequest - 108, // 108: api.v1.TradingDataService.PartyAccounts:input_type -> api.v1.PartyAccountsRequest - 112, // 109: api.v1.TradingDataService.FeeInfrastructureAccounts:input_type -> api.v1.FeeInfrastructureAccountsRequest - 93, // 110: api.v1.TradingDataService.Candles:input_type -> api.v1.CandlesRequest - 55, // 111: api.v1.TradingDataService.MarketDataByID:input_type -> api.v1.MarketDataByIDRequest - 57, // 112: api.v1.TradingDataService.MarketsData:input_type -> api.v1.MarketsDataRequest - 61, // 113: api.v1.TradingDataService.MarketByID:input_type -> api.v1.MarketByIDRequest - 95, // 114: api.v1.TradingDataService.MarketDepth:input_type -> api.v1.MarketDepthRequest - 91, // 115: api.v1.TradingDataService.Markets:input_type -> api.v1.MarketsRequest - 87, // 116: api.v1.TradingDataService.OrderByMarketAndID:input_type -> api.v1.OrderByMarketAndIDRequest - 89, // 117: api.v1.TradingDataService.OrderByReference:input_type -> api.v1.OrderByReferenceRequest - 83, // 118: api.v1.TradingDataService.OrdersByMarket:input_type -> api.v1.OrdersByMarketRequest - 85, // 119: api.v1.TradingDataService.OrdersByParty:input_type -> api.v1.OrdersByPartyRequest - 120, // 120: api.v1.TradingDataService.OrderByID:input_type -> api.v1.OrderByIDRequest - 122, // 121: api.v1.TradingDataService.OrderVersionsByID:input_type -> api.v1.OrderVersionsByIDRequest - 51, // 122: api.v1.TradingDataService.MarginLevels:input_type -> api.v1.MarginLevelsRequest - 65, // 123: api.v1.TradingDataService.Parties:input_type -> api.v1.PartiesRequest - 63, // 124: api.v1.TradingDataService.PartyByID:input_type -> api.v1.PartyByIDRequest - 99, // 125: api.v1.TradingDataService.PositionsByParty:input_type -> api.v1.PositionsByPartyRequest - 59, // 126: api.v1.TradingDataService.LastTrade:input_type -> api.v1.LastTradeRequest - 97, // 127: api.v1.TradingDataService.TradesByMarket:input_type -> api.v1.TradesByMarketRequest - 69, // 128: api.v1.TradingDataService.TradesByOrder:input_type -> api.v1.TradesByOrderRequest - 67, // 129: api.v1.TradingDataService.TradesByParty:input_type -> api.v1.TradesByPartyRequest - 23, // 130: api.v1.TradingDataService.GetProposals:input_type -> api.v1.GetProposalsRequest - 25, // 131: api.v1.TradingDataService.GetProposalsByParty:input_type -> api.v1.GetProposalsByPartyRequest - 27, // 132: api.v1.TradingDataService.GetVotesByParty:input_type -> api.v1.GetVotesByPartyRequest - 29, // 133: api.v1.TradingDataService.GetNewMarketProposals:input_type -> api.v1.GetNewMarketProposalsRequest - 31, // 134: api.v1.TradingDataService.GetUpdateMarketProposals:input_type -> api.v1.GetUpdateMarketProposalsRequest - 33, // 135: api.v1.TradingDataService.GetNetworkParametersProposals:input_type -> api.v1.GetNetworkParametersProposalsRequest - 35, // 136: api.v1.TradingDataService.GetNewAssetProposals:input_type -> api.v1.GetNewAssetProposalsRequest - 37, // 137: api.v1.TradingDataService.GetProposalByID:input_type -> api.v1.GetProposalByIDRequest - 39, // 138: api.v1.TradingDataService.GetProposalByReference:input_type -> api.v1.GetProposalByReferenceRequest - 41, // 139: api.v1.TradingDataService.ObserveGovernance:input_type -> api.v1.ObserveGovernanceRequest - 43, // 140: api.v1.TradingDataService.ObservePartyProposals:input_type -> api.v1.ObservePartyProposalsRequest - 47, // 141: api.v1.TradingDataService.ObservePartyVotes:input_type -> api.v1.ObservePartyVotesRequest - 45, // 142: api.v1.TradingDataService.ObserveProposalVotes:input_type -> api.v1.ObserveProposalVotesRequest - 128, // 143: api.v1.TradingDataService.ObserveEventBus:input_type -> api.v1.ObserveEventBusRequest - 130, // 144: api.v1.TradingDataService.Statistics:input_type -> api.v1.StatisticsRequest - 152, // 145: api.v1.TradingDataService.LastBlockHeight:input_type -> api.v1.LastBlockHeightRequest - 101, // 146: api.v1.TradingDataService.GetVegaTime:input_type -> api.v1.GetVegaTimeRequest - 71, // 147: api.v1.TradingDataService.AccountsSubscribe:input_type -> api.v1.AccountsSubscribeRequest - 75, // 148: api.v1.TradingDataService.CandlesSubscribe:input_type -> api.v1.CandlesSubscribeRequest - 49, // 149: api.v1.TradingDataService.MarginLevelsSubscribe:input_type -> api.v1.MarginLevelsSubscribeRequest - 77, // 150: api.v1.TradingDataService.MarketDepthSubscribe:input_type -> api.v1.MarketDepthSubscribeRequest - 79, // 151: api.v1.TradingDataService.MarketDepthUpdatesSubscribe:input_type -> api.v1.MarketDepthUpdatesSubscribeRequest - 53, // 152: api.v1.TradingDataService.MarketsDataSubscribe:input_type -> api.v1.MarketsDataSubscribeRequest - 73, // 153: api.v1.TradingDataService.OrdersSubscribe:input_type -> api.v1.OrdersSubscribeRequest - 81, // 154: api.v1.TradingDataService.PositionsSubscribe:input_type -> api.v1.PositionsSubscribeRequest - 74, // 155: api.v1.TradingDataService.TradesSubscribe:input_type -> api.v1.TradesSubscribeRequest - 106, // 156: api.v1.TradingDataService.TransferResponsesSubscribe:input_type -> api.v1.TransferResponsesSubscribeRequest - 20, // 157: api.v1.TradingDataService.GetNodeSignaturesAggregate:input_type -> api.v1.GetNodeSignaturesAggregateRequest - 18, // 158: api.v1.TradingDataService.AssetByID:input_type -> api.v1.AssetByIDRequest - 16, // 159: api.v1.TradingDataService.Assets:input_type -> api.v1.AssetsRequest - 124, // 160: api.v1.TradingDataService.EstimateFee:input_type -> api.v1.EstimateFeeRequest - 126, // 161: api.v1.TradingDataService.EstimateMargin:input_type -> api.v1.EstimateMarginRequest - 136, // 162: api.v1.TradingDataService.ERC20WithdrawalApproval:input_type -> api.v1.ERC20WithdrawalApprovalRequest - 134, // 163: api.v1.TradingDataService.Withdrawal:input_type -> api.v1.WithdrawalRequest - 132, // 164: api.v1.TradingDataService.Withdrawals:input_type -> api.v1.WithdrawalsRequest - 140, // 165: api.v1.TradingDataService.Deposit:input_type -> api.v1.DepositRequest - 138, // 166: api.v1.TradingDataService.Deposits:input_type -> api.v1.DepositsRequest - 142, // 167: api.v1.TradingDataService.NetworkParameters:input_type -> api.v1.NetworkParametersRequest - 144, // 168: api.v1.TradingDataService.LiquidityProvisions:input_type -> api.v1.LiquidityProvisionsRequest - 146, // 169: api.v1.TradingDataService.OracleSpec:input_type -> api.v1.OracleSpecRequest - 148, // 170: api.v1.TradingDataService.OracleSpecs:input_type -> api.v1.OracleSpecsRequest - 150, // 171: api.v1.TradingDataService.OracleDataBySpec:input_type -> api.v1.OracleDataBySpecRequest - 10, // 172: api.v1.TradingService.PrepareSubmitOrder:output_type -> api.v1.PrepareSubmitOrderResponse - 11, // 173: api.v1.TradingService.PrepareCancelOrder:output_type -> api.v1.PrepareCancelOrderResponse - 12, // 174: api.v1.TradingService.PrepareAmendOrder:output_type -> api.v1.PrepareAmendOrderResponse - 9, // 175: api.v1.TradingService.PrepareWithdraw:output_type -> api.v1.PrepareWithdrawResponse - 5, // 176: api.v1.TradingService.SubmitTransaction:output_type -> api.v1.SubmitTransactionResponse - 7, // 177: api.v1.TradingService.SubmitTransactionV2:output_type -> api.v1.SubmitTransactionV2Response - 115, // 178: api.v1.TradingService.PrepareProposalSubmission:output_type -> api.v1.PrepareProposalSubmissionResponse - 117, // 179: api.v1.TradingService.PrepareVoteSubmission:output_type -> api.v1.PrepareVoteSubmissionResponse - 3, // 180: api.v1.TradingService.PropagateChainEvent:output_type -> api.v1.PropagateChainEventResponse - 119, // 181: api.v1.TradingService.PrepareLiquidityProvision:output_type -> api.v1.PrepareLiquidityProvisionResponse - 111, // 182: api.v1.TradingDataService.MarketAccounts:output_type -> api.v1.MarketAccountsResponse - 109, // 183: api.v1.TradingDataService.PartyAccounts:output_type -> api.v1.PartyAccountsResponse - 113, // 184: api.v1.TradingDataService.FeeInfrastructureAccounts:output_type -> api.v1.FeeInfrastructureAccountsResponse - 94, // 185: api.v1.TradingDataService.Candles:output_type -> api.v1.CandlesResponse - 56, // 186: api.v1.TradingDataService.MarketDataByID:output_type -> api.v1.MarketDataByIDResponse - 58, // 187: api.v1.TradingDataService.MarketsData:output_type -> api.v1.MarketsDataResponse - 62, // 188: api.v1.TradingDataService.MarketByID:output_type -> api.v1.MarketByIDResponse - 96, // 189: api.v1.TradingDataService.MarketDepth:output_type -> api.v1.MarketDepthResponse - 92, // 190: api.v1.TradingDataService.Markets:output_type -> api.v1.MarketsResponse - 88, // 191: api.v1.TradingDataService.OrderByMarketAndID:output_type -> api.v1.OrderByMarketAndIDResponse - 90, // 192: api.v1.TradingDataService.OrderByReference:output_type -> api.v1.OrderByReferenceResponse - 84, // 193: api.v1.TradingDataService.OrdersByMarket:output_type -> api.v1.OrdersByMarketResponse - 86, // 194: api.v1.TradingDataService.OrdersByParty:output_type -> api.v1.OrdersByPartyResponse - 121, // 195: api.v1.TradingDataService.OrderByID:output_type -> api.v1.OrderByIDResponse - 123, // 196: api.v1.TradingDataService.OrderVersionsByID:output_type -> api.v1.OrderVersionsByIDResponse - 52, // 197: api.v1.TradingDataService.MarginLevels:output_type -> api.v1.MarginLevelsResponse - 66, // 198: api.v1.TradingDataService.Parties:output_type -> api.v1.PartiesResponse - 64, // 199: api.v1.TradingDataService.PartyByID:output_type -> api.v1.PartyByIDResponse - 100, // 200: api.v1.TradingDataService.PositionsByParty:output_type -> api.v1.PositionsByPartyResponse - 60, // 201: api.v1.TradingDataService.LastTrade:output_type -> api.v1.LastTradeResponse - 98, // 202: api.v1.TradingDataService.TradesByMarket:output_type -> api.v1.TradesByMarketResponse - 70, // 203: api.v1.TradingDataService.TradesByOrder:output_type -> api.v1.TradesByOrderResponse - 68, // 204: api.v1.TradingDataService.TradesByParty:output_type -> api.v1.TradesByPartyResponse - 24, // 205: api.v1.TradingDataService.GetProposals:output_type -> api.v1.GetProposalsResponse - 26, // 206: api.v1.TradingDataService.GetProposalsByParty:output_type -> api.v1.GetProposalsByPartyResponse - 28, // 207: api.v1.TradingDataService.GetVotesByParty:output_type -> api.v1.GetVotesByPartyResponse - 30, // 208: api.v1.TradingDataService.GetNewMarketProposals:output_type -> api.v1.GetNewMarketProposalsResponse - 32, // 209: api.v1.TradingDataService.GetUpdateMarketProposals:output_type -> api.v1.GetUpdateMarketProposalsResponse - 34, // 210: api.v1.TradingDataService.GetNetworkParametersProposals:output_type -> api.v1.GetNetworkParametersProposalsResponse - 36, // 211: api.v1.TradingDataService.GetNewAssetProposals:output_type -> api.v1.GetNewAssetProposalsResponse - 38, // 212: api.v1.TradingDataService.GetProposalByID:output_type -> api.v1.GetProposalByIDResponse - 40, // 213: api.v1.TradingDataService.GetProposalByReference:output_type -> api.v1.GetProposalByReferenceResponse - 42, // 214: api.v1.TradingDataService.ObserveGovernance:output_type -> api.v1.ObserveGovernanceResponse - 44, // 215: api.v1.TradingDataService.ObservePartyProposals:output_type -> api.v1.ObservePartyProposalsResponse - 48, // 216: api.v1.TradingDataService.ObservePartyVotes:output_type -> api.v1.ObservePartyVotesResponse - 46, // 217: api.v1.TradingDataService.ObserveProposalVotes:output_type -> api.v1.ObserveProposalVotesResponse - 129, // 218: api.v1.TradingDataService.ObserveEventBus:output_type -> api.v1.ObserveEventBusResponse - 131, // 219: api.v1.TradingDataService.Statistics:output_type -> api.v1.StatisticsResponse - 153, // 220: api.v1.TradingDataService.LastBlockHeight:output_type -> api.v1.LastBlockHeightResponse - 102, // 221: api.v1.TradingDataService.GetVegaTime:output_type -> api.v1.GetVegaTimeResponse - 72, // 222: api.v1.TradingDataService.AccountsSubscribe:output_type -> api.v1.AccountsSubscribeResponse - 76, // 223: api.v1.TradingDataService.CandlesSubscribe:output_type -> api.v1.CandlesSubscribeResponse - 50, // 224: api.v1.TradingDataService.MarginLevelsSubscribe:output_type -> api.v1.MarginLevelsSubscribeResponse - 78, // 225: api.v1.TradingDataService.MarketDepthSubscribe:output_type -> api.v1.MarketDepthSubscribeResponse - 80, // 226: api.v1.TradingDataService.MarketDepthUpdatesSubscribe:output_type -> api.v1.MarketDepthUpdatesSubscribeResponse - 54, // 227: api.v1.TradingDataService.MarketsDataSubscribe:output_type -> api.v1.MarketsDataSubscribeResponse - 104, // 228: api.v1.TradingDataService.OrdersSubscribe:output_type -> api.v1.OrdersSubscribeResponse - 82, // 229: api.v1.TradingDataService.PositionsSubscribe:output_type -> api.v1.PositionsSubscribeResponse - 105, // 230: api.v1.TradingDataService.TradesSubscribe:output_type -> api.v1.TradesSubscribeResponse - 107, // 231: api.v1.TradingDataService.TransferResponsesSubscribe:output_type -> api.v1.TransferResponsesSubscribeResponse - 21, // 232: api.v1.TradingDataService.GetNodeSignaturesAggregate:output_type -> api.v1.GetNodeSignaturesAggregateResponse - 19, // 233: api.v1.TradingDataService.AssetByID:output_type -> api.v1.AssetByIDResponse - 17, // 234: api.v1.TradingDataService.Assets:output_type -> api.v1.AssetsResponse - 125, // 235: api.v1.TradingDataService.EstimateFee:output_type -> api.v1.EstimateFeeResponse - 127, // 236: api.v1.TradingDataService.EstimateMargin:output_type -> api.v1.EstimateMarginResponse - 137, // 237: api.v1.TradingDataService.ERC20WithdrawalApproval:output_type -> api.v1.ERC20WithdrawalApprovalResponse - 135, // 238: api.v1.TradingDataService.Withdrawal:output_type -> api.v1.WithdrawalResponse - 133, // 239: api.v1.TradingDataService.Withdrawals:output_type -> api.v1.WithdrawalsResponse - 141, // 240: api.v1.TradingDataService.Deposit:output_type -> api.v1.DepositResponse - 139, // 241: api.v1.TradingDataService.Deposits:output_type -> api.v1.DepositsResponse - 143, // 242: api.v1.TradingDataService.NetworkParameters:output_type -> api.v1.NetworkParametersResponse - 145, // 243: api.v1.TradingDataService.LiquidityProvisions:output_type -> api.v1.LiquidityProvisionsResponse - 147, // 244: api.v1.TradingDataService.OracleSpec:output_type -> api.v1.OracleSpecResponse - 149, // 245: api.v1.TradingDataService.OracleSpecs:output_type -> api.v1.OracleSpecsResponse - 151, // 246: api.v1.TradingDataService.OracleDataBySpec:output_type -> api.v1.OracleDataBySpecResponse - 172, // [172:247] is the sub-list for method output_type - 97, // [97:172] is the sub-list for method input_type - 97, // [97:97] is the sub-list for extension type_name - 97, // [97:97] is the sub-list for extension extendee - 0, // [0:97] is the sub-list for field type_name -} - -func init() { file_api_trading_proto_init() } -func file_api_trading_proto_init() { - if File_api_trading_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_api_trading_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PropagateChainEventRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PropagateChainEventResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTransactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTransactionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTransactionV2Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTransactionV2Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareWithdrawRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareWithdrawResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareSubmitOrderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareCancelOrderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareAmendOrderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareSubmitOrderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareCancelOrderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareAmendOrderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNodeSignaturesAggregateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNodeSignaturesAggregateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OptionalProposalState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalsByPartyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalsByPartyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVotesByPartyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVotesByPartyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNewMarketProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNewMarketProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUpdateMarketProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUpdateMarketProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNetworkParametersProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNetworkParametersProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNewAssetProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNewAssetProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalByReferenceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProposalByReferenceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveGovernanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveGovernanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservePartyProposalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservePartyProposalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveProposalVotesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveProposalVotesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservePartyVotesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservePartyVotesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarginLevelsSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarginLevelsSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarginLevelsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarginLevelsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsDataSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsDataSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDataByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDataByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LastTradeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LastTradeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartyByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartyByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByPartyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByPartyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByOrderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByOrderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountsSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountsSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CandlesSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CandlesSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthUpdatesSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthUpdatesSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PositionsSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PositionsSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersByMarketRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersByMarketResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersByPartyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersByPartyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByMarketAndIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByMarketAndIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByReferenceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByReferenceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CandlesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CandlesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketDepthResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByMarketRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesByMarketResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PositionsByPartyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PositionsByPartyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVegaTimeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVegaTimeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pagination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrdersSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradesSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferResponsesSubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferResponsesSubscribeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartyAccountsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartyAccountsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketAccountsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketAccountsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeeInfrastructureAccountsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeeInfrastructureAccountsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProposalSubmissionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProposalSubmissionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareVoteSubmissionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareVoteSubmissionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareLiquidityProvisionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareLiquidityProvisionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderVersionsByIDRequest); i { +var file_api_trading_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x0a, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, + 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x1a, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, + 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0x37, 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x1a, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, + 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x12, 0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x4c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x59, 0x4e, 0x43, + 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, + 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, + 0x10, 0x03, 0x22, 0x37, 0x0a, 0x1b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x47, + 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x33, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa1, 0x01, 0x0a, 0x16, 0x4f, 0x62, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, + 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x17, 0x4f, 0x62, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x48, 0x0a, 0x12, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, + 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe9, 0x0a, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x63, 0x6b, + 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, + 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x65, 0x65, 0x72, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x67, 0x61, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, + 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x78, 0x50, 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x28, 0x0a, 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x78, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x61, 0x76, 0x65, 0x72, + 0x61, 0x67, 0x65, 0x54, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x76, + 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x70, 0x65, 0x72, + 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x61, 0x76, + 0x65, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x50, 0x65, 0x72, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x5f, 0x70, 0x65, + 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, + 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, + 0x2a, 0x0a, 0x11, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, + 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x65, 0x6e, 0x64, 0x5f, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x2f, + 0x0a, 0x13, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x2f, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x74, 0x72, + 0x61, 0x64, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x31, 0x0a, 0x14, 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, + 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, + 0x70, 0x74, 0x68, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x18, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, + 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x37, 0x0a, 0x17, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x16, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3a, 0x0a, 0x19, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1b, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x17, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x61, + 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1f, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x20, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x22, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, + 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x1f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x17, + 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x32, + 0x89, 0x04, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x47, + 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x56, 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0f, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x3f, 0x0a, 0x18, 0x69, + 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x23, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, + 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_api_trading_proto_rawDescOnce sync.Once + file_api_trading_proto_rawDescData = file_api_trading_proto_rawDesc +) + +func file_api_trading_proto_rawDescGZIP() []byte { + file_api_trading_proto_rawDescOnce.Do(func() { + file_api_trading_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_trading_proto_rawDescData) + }) + return file_api_trading_proto_rawDescData +} + +var file_api_trading_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_api_trading_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_api_trading_proto_goTypes = []interface{}{ + (SubmitTransactionV2Request_Type)(0), // 0: api.v1.SubmitTransactionV2Request.Type + (*PropagateChainEventRequest)(nil), // 1: api.v1.PropagateChainEventRequest + (*PropagateChainEventResponse)(nil), // 2: api.v1.PropagateChainEventResponse + (*SubmitTransactionV2Request)(nil), // 3: api.v1.SubmitTransactionV2Request + (*SubmitTransactionV2Response)(nil), // 4: api.v1.SubmitTransactionV2Response + (*GetVegaTimeRequest)(nil), // 5: api.v1.GetVegaTimeRequest + (*GetVegaTimeResponse)(nil), // 6: api.v1.GetVegaTimeResponse + (*ObserveEventBusRequest)(nil), // 7: api.v1.ObserveEventBusRequest + (*ObserveEventBusResponse)(nil), // 8: api.v1.ObserveEventBusResponse + (*StatisticsRequest)(nil), // 9: api.v1.StatisticsRequest + (*StatisticsResponse)(nil), // 10: api.v1.StatisticsResponse + (*Statistics)(nil), // 11: api.v1.Statistics + (*LastBlockHeightRequest)(nil), // 12: api.v1.LastBlockHeightRequest + (*LastBlockHeightResponse)(nil), // 13: api.v1.LastBlockHeightResponse + (*v1.Transaction)(nil), // 14: vega.commands.v1.Transaction + (v11.BusEventType)(0), // 15: vega.events.v1.BusEventType + (*v11.BusEvent)(nil), // 16: vega.events.v1.BusEvent + (proto1.ChainStatus)(0), // 17: vega.ChainStatus +} +var file_api_trading_proto_depIdxs = []int32{ + 14, // 0: api.v1.SubmitTransactionV2Request.tx:type_name -> vega.commands.v1.Transaction + 0, // 1: api.v1.SubmitTransactionV2Request.type:type_name -> api.v1.SubmitTransactionV2Request.Type + 15, // 2: api.v1.ObserveEventBusRequest.type:type_name -> vega.events.v1.BusEventType + 16, // 3: api.v1.ObserveEventBusResponse.events:type_name -> vega.events.v1.BusEvent + 11, // 4: api.v1.StatisticsResponse.statistics:type_name -> api.v1.Statistics + 17, // 5: api.v1.Statistics.status:type_name -> vega.ChainStatus + 3, // 6: api.v1.TradingService.SubmitTransactionV2:input_type -> api.v1.SubmitTransactionV2Request + 1, // 7: api.v1.TradingService.PropagateChainEvent:input_type -> api.v1.PropagateChainEventRequest + 9, // 8: api.v1.TradingService.Statistics:input_type -> api.v1.StatisticsRequest + 12, // 9: api.v1.TradingService.LastBlockHeight:input_type -> api.v1.LastBlockHeightRequest + 5, // 10: api.v1.TradingService.GetVegaTime:input_type -> api.v1.GetVegaTimeRequest + 7, // 11: api.v1.TradingService.ObserveEventBus:input_type -> api.v1.ObserveEventBusRequest + 4, // 12: api.v1.TradingService.SubmitTransactionV2:output_type -> api.v1.SubmitTransactionV2Response + 2, // 13: api.v1.TradingService.PropagateChainEvent:output_type -> api.v1.PropagateChainEventResponse + 10, // 14: api.v1.TradingService.Statistics:output_type -> api.v1.StatisticsResponse + 13, // 15: api.v1.TradingService.LastBlockHeight:output_type -> api.v1.LastBlockHeightResponse + 6, // 16: api.v1.TradingService.GetVegaTime:output_type -> api.v1.GetVegaTimeResponse + 8, // 17: api.v1.TradingService.ObserveEventBus:output_type -> api.v1.ObserveEventBusResponse + 12, // [12:18] is the sub-list for method output_type + 6, // [6:12] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_api_trading_proto_init() } +func file_api_trading_proto_init() { + if File_api_trading_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_api_trading_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PropagateChainEventRequest); i { case 0: return &v.state case 1: @@ -11014,8 +1323,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderVersionsByIDResponse); i { + file_api_trading_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PropagateChainEventResponse); i { case 0: return &v.state case 1: @@ -11026,8 +1335,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateFeeRequest); i { + file_api_trading_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionV2Request); i { case 0: return &v.state case 1: @@ -11038,8 +1347,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateFeeResponse); i { + file_api_trading_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionV2Response); i { case 0: return &v.state case 1: @@ -11050,8 +1359,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateMarginRequest); i { + file_api_trading_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVegaTimeRequest); i { case 0: return &v.state case 1: @@ -11062,8 +1371,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateMarginResponse); i { + file_api_trading_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVegaTimeResponse); i { case 0: return &v.state case 1: @@ -11074,7 +1383,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ObserveEventBusRequest); i { case 0: return &v.state @@ -11086,7 +1395,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ObserveEventBusResponse); i { case 0: return &v.state @@ -11098,7 +1407,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatisticsRequest); i { case 0: return &v.state @@ -11110,7 +1419,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatisticsResponse); i { case 0: return &v.state @@ -11122,236 +1431,8 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ERC20WithdrawalApprovalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ERC20WithdrawalApprovalResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DepositsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DepositsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DepositRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DepositResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NetworkParametersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NetworkParametersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityProvisionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityProvisionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleSpecRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleSpecResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleSpecsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleSpecsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleDataBySpecRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_trading_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OracleDataBySpecResponse); i { + file_api_trading_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Statistics); i { case 0: return &v.state case 1: @@ -11362,7 +1443,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LastBlockHeightRequest); i { case 0: return &v.state @@ -11374,7 +1455,7 @@ func file_api_trading_proto_init() { return nil } } - file_api_trading_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { + file_api_trading_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LastBlockHeightResponse); i { case 0: return &v.state @@ -11392,10 +1473,10 @@ func file_api_trading_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_api_trading_proto_rawDesc, - NumEnums: 2, - NumMessages: 152, + NumEnums: 1, + NumMessages: 13, NumExtensions: 0, - NumServices: 2, + NumServices: 1, }, GoTypes: file_api_trading_proto_goTypes, DependencyIndexes: file_api_trading_proto_depIdxs, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.validator.pb.go index caf19e24..d75d87a8 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading.validator.pb.go @@ -22,731 +22,20 @@ var _ = fmt.Errorf var _ = math.Inf func (this *PropagateChainEventRequest) Validate() error { - if this.Evt != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Evt); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Evt", err) - } - } - return nil -} -func (this *PropagateChainEventResponse) Validate() error { - return nil -} -func (this *SubmitTransactionRequest) Validate() error { - if this.Tx != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Tx); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Tx", err) - } - } - return nil -} -func (this *SubmitTransactionResponse) Validate() error { - return nil -} -func (this *SubmitTransactionV2Request) Validate() error { - if this.Tx != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Tx); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Tx", err) - } - } - return nil -} -func (this *SubmitTransactionV2Response) Validate() error { - return nil -} -func (this *PrepareWithdrawRequest) Validate() error { - if this.Withdraw != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Withdraw); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Withdraw", err) - } - } - return nil -} -func (this *PrepareWithdrawResponse) Validate() error { - return nil -} -func (this *PrepareSubmitOrderResponse) Validate() error { - return nil -} -func (this *PrepareCancelOrderResponse) Validate() error { - return nil -} -func (this *PrepareAmendOrderResponse) Validate() error { - return nil -} -func (this *PrepareSubmitOrderRequest) Validate() error { - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareCancelOrderRequest) Validate() error { - if this.Cancellation != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Cancellation); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Cancellation", err) - } - } - return nil -} -func (this *PrepareAmendOrderRequest) Validate() error { - if this.Amendment != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Amendment); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Amendment", err) - } - } - return nil -} -func (this *AssetsRequest) Validate() error { - return nil -} -func (this *AssetsResponse) Validate() error { - for _, item := range this.Assets { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Assets", err) - } - } - } - return nil -} -func (this *AssetByIDRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *AssetByIDResponse) Validate() error { - if this.Asset != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Asset); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Asset", err) - } - } - return nil -} -func (this *GetNodeSignaturesAggregateRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *GetNodeSignaturesAggregateResponse) Validate() error { - for _, item := range this.Signatures { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Signatures", err) - } - } - } - return nil -} -func (this *OptionalProposalState) Validate() error { - return nil -} -func (this *GetProposalsRequest) Validate() error { - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetProposalsResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetProposalsByPartyRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetProposalsByPartyResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetVotesByPartyRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *GetVotesByPartyResponse) Validate() error { - for _, item := range this.Votes { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Votes", err) - } - } - } - return nil -} -func (this *GetNewMarketProposalsRequest) Validate() error { - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetNewMarketProposalsResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetUpdateMarketProposalsRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetUpdateMarketProposalsResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetNetworkParametersProposalsRequest) Validate() error { - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetNetworkParametersProposalsResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetNewAssetProposalsRequest) Validate() error { - if this.SelectInState != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SelectInState); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("SelectInState", err) - } - } - return nil -} -func (this *GetNewAssetProposalsResponse) Validate() error { - for _, item := range this.Data { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - } - return nil -} -func (this *GetProposalByIDRequest) Validate() error { - if this.ProposalId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("ProposalId", fmt.Errorf(`value '%v' must not be an empty string`, this.ProposalId)) - } - return nil -} -func (this *GetProposalByIDResponse) Validate() error { - if this.Data != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - return nil -} -func (this *GetProposalByReferenceRequest) Validate() error { - if this.Reference == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Reference", fmt.Errorf(`value '%v' must not be an empty string`, this.Reference)) - } - return nil -} -func (this *GetProposalByReferenceResponse) Validate() error { - if this.Data != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - return nil -} -func (this *ObserveGovernanceRequest) Validate() error { - return nil -} -func (this *ObserveGovernanceResponse) Validate() error { - if this.Data != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - return nil -} -func (this *ObservePartyProposalsRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *ObservePartyProposalsResponse) Validate() error { - if this.Data != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Data", err) - } - } - return nil -} -func (this *ObserveProposalVotesRequest) Validate() error { - if this.ProposalId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("ProposalId", fmt.Errorf(`value '%v' must not be an empty string`, this.ProposalId)) - } - return nil -} -func (this *ObserveProposalVotesResponse) Validate() error { - if this.Vote != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Vote); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Vote", err) - } - } - return nil -} -func (this *ObservePartyVotesRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *ObservePartyVotesResponse) Validate() error { - if this.Vote != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Vote); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Vote", err) - } - } - return nil -} -func (this *MarginLevelsSubscribeRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *MarginLevelsSubscribeResponse) Validate() error { - if this.MarginLevels != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MarginLevels); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarginLevels", err) - } - } - return nil -} -func (this *MarginLevelsRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *MarginLevelsResponse) Validate() error { - for _, item := range this.MarginLevels { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarginLevels", err) - } - } - } - return nil -} -func (this *MarketsDataSubscribeRequest) Validate() error { - return nil -} -func (this *MarketsDataSubscribeResponse) Validate() error { - if this.MarketData != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MarketData); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarketData", err) - } - } - return nil -} -func (this *MarketDataByIDRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *MarketDataByIDResponse) Validate() error { - if this.MarketData != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MarketData); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarketData", err) - } - } - return nil -} -func (this *MarketsDataRequest) Validate() error { - return nil -} -func (this *MarketsDataResponse) Validate() error { - for _, item := range this.MarketsData { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarketsData", err) - } - } - } - return nil -} -func (this *LastTradeRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *LastTradeResponse) Validate() error { - if this.Trade != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Trade); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Trade", err) - } - } - return nil -} -func (this *MarketByIDRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *MarketByIDResponse) Validate() error { - if this.Market != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Market); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Market", err) - } - } - return nil -} -func (this *PartyByIDRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *PartyByIDResponse) Validate() error { - if this.Party != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Party); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Party", err) - } - } - return nil -} -func (this *PartiesRequest) Validate() error { - return nil -} -func (this *PartiesResponse) Validate() error { - for _, item := range this.Parties { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Parties", err) - } - } - } - return nil -} -func (this *TradesByPartyRequest) Validate() error { - if this.Pagination != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pagination); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Pagination", err) - } - } - return nil -} -func (this *TradesByPartyResponse) Validate() error { - for _, item := range this.Trades { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Trades", err) - } - } - } - return nil -} -func (this *TradesByOrderRequest) Validate() error { - return nil -} -func (this *TradesByOrderResponse) Validate() error { - for _, item := range this.Trades { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Trades", err) - } - } - } - return nil -} -func (this *AccountsSubscribeRequest) Validate() error { - return nil -} -func (this *AccountsSubscribeResponse) Validate() error { - if this.Account != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Account); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Account", err) - } - } - return nil -} -func (this *OrdersSubscribeRequest) Validate() error { - return nil -} -func (this *TradesSubscribeRequest) Validate() error { - return nil -} -func (this *CandlesSubscribeRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *CandlesSubscribeResponse) Validate() error { - if this.Candle != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Candle); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Candle", err) - } - } - return nil -} -func (this *MarketDepthSubscribeRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *MarketDepthSubscribeResponse) Validate() error { - if this.MarketDepth != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MarketDepth); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarketDepth", err) - } - } - return nil -} -func (this *MarketDepthUpdatesSubscribeRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *MarketDepthUpdatesSubscribeResponse) Validate() error { - if this.Update != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Update); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Update", err) - } - } - return nil -} -func (this *PositionsSubscribeRequest) Validate() error { - return nil -} -func (this *PositionsSubscribeResponse) Validate() error { - if this.Position != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Position); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Position", err) - } - } - return nil -} -func (this *OrdersByMarketRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - if this.Pagination != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pagination); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Pagination", err) - } - } - return nil -} -func (this *OrdersByMarketResponse) Validate() error { - for _, item := range this.Orders { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Orders", err) - } - } - } - return nil -} -func (this *OrdersByPartyRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - if this.Pagination != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pagination); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Pagination", err) - } - } - return nil -} -func (this *OrdersByPartyResponse) Validate() error { - for _, item := range this.Orders { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Orders", err) - } - } - } - return nil -} -func (this *OrderByMarketAndIDRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - if this.OrderId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("OrderId", fmt.Errorf(`value '%v' must not be an empty string`, this.OrderId)) - } - return nil -} -func (this *OrderByMarketAndIDResponse) Validate() error { - if this.Order != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Order); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Order", err) - } - } - return nil -} -func (this *OrderByReferenceRequest) Validate() error { - if this.Reference == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Reference", fmt.Errorf(`value '%v' must not be an empty string`, this.Reference)) - } - return nil -} -func (this *OrderByReferenceResponse) Validate() error { - if this.Order != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Order); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Order", err) - } - } - return nil -} -func (this *MarketsRequest) Validate() error { - return nil -} -func (this *MarketsResponse) Validate() error { - for _, item := range this.Markets { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Markets", err) - } - } - } - return nil -} -func (this *CandlesRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - if !(this.SinceTimestamp > 0) { - return github_com_mwitkow_go_proto_validators.FieldError("SinceTimestamp", fmt.Errorf(`value '%v' must be greater than '0'`, this.SinceTimestamp)) - } - return nil -} -func (this *CandlesResponse) Validate() error { - for _, item := range this.Candles { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Candles", err) - } - } - } return nil } -func (this *MarketDepthRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - return nil -} -func (this *MarketDepthResponse) Validate() error { - for _, item := range this.Buy { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Buy", err) - } - } - } - for _, item := range this.Sell { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Sell", err) - } - } - } - if this.LastTrade != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.LastTrade); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("LastTrade", err) - } - } - return nil -} -func (this *TradesByMarketRequest) Validate() error { - if this.MarketId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("MarketId", fmt.Errorf(`value '%v' must not be an empty string`, this.MarketId)) - } - if this.Pagination != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pagination); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Pagination", err) - } - } +func (this *PropagateChainEventResponse) Validate() error { return nil } -func (this *TradesByMarketResponse) Validate() error { - for _, item := range this.Trades { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Trades", err) - } +func (this *SubmitTransactionV2Request) Validate() error { + if this.Tx != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Tx); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Tx", err) } } return nil } -func (this *PositionsByPartyRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *PositionsByPartyResponse) Validate() error { - for _, item := range this.Positions { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Positions", err) - } - } - } +func (this *SubmitTransactionV2Response) Validate() error { return nil } func (this *GetVegaTimeRequest) Validate() error { @@ -755,189 +44,6 @@ func (this *GetVegaTimeRequest) Validate() error { func (this *GetVegaTimeResponse) Validate() error { return nil } -func (this *Pagination) Validate() error { - return nil -} -func (this *OrdersSubscribeResponse) Validate() error { - for _, item := range this.Orders { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Orders", err) - } - } - } - return nil -} -func (this *TradesSubscribeResponse) Validate() error { - for _, item := range this.Trades { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Trades", err) - } - } - } - return nil -} -func (this *TransferResponsesSubscribeRequest) Validate() error { - return nil -} -func (this *TransferResponsesSubscribeResponse) Validate() error { - if this.Response != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Response); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Response", err) - } - } - return nil -} -func (this *PartyAccountsRequest) Validate() error { - return nil -} -func (this *PartyAccountsResponse) Validate() error { - for _, item := range this.Accounts { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Accounts", err) - } - } - } - return nil -} -func (this *MarketAccountsRequest) Validate() error { - return nil -} -func (this *MarketAccountsResponse) Validate() error { - for _, item := range this.Accounts { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Accounts", err) - } - } - } - return nil -} -func (this *FeeInfrastructureAccountsRequest) Validate() error { - return nil -} -func (this *FeeInfrastructureAccountsResponse) Validate() error { - for _, item := range this.Accounts { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Accounts", err) - } - } - } - return nil -} -func (this *PrepareProposalSubmissionRequest) Validate() error { - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareProposalSubmissionResponse) Validate() error { - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareVoteSubmissionRequest) Validate() error { - if nil == this.Submission { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", fmt.Errorf("message must exist")) - } - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareVoteSubmissionResponse) Validate() error { - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareLiquidityProvisionRequest) Validate() error { - if nil == this.Submission { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", fmt.Errorf("message must exist")) - } - if this.Submission != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Submission); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Submission", err) - } - } - return nil -} -func (this *PrepareLiquidityProvisionResponse) Validate() error { - return nil -} -func (this *OrderByIDRequest) Validate() error { - return nil -} -func (this *OrderByIDResponse) Validate() error { - if this.Order != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Order); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Order", err) - } - } - return nil -} -func (this *OrderVersionsByIDRequest) Validate() error { - if this.Pagination != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pagination); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Pagination", err) - } - } - return nil -} -func (this *OrderVersionsByIDResponse) Validate() error { - for _, item := range this.Orders { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Orders", err) - } - } - } - return nil -} -func (this *EstimateFeeRequest) Validate() error { - if this.Order != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Order); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Order", err) - } - } - return nil -} -func (this *EstimateFeeResponse) Validate() error { - if this.Fee != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Fee); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Fee", err) - } - } - return nil -} -func (this *EstimateMarginRequest) Validate() error { - if this.Order != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Order); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Order", err) - } - } - return nil -} -func (this *EstimateMarginResponse) Validate() error { - if this.MarginLevels != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MarginLevels); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("MarginLevels", err) - } - } - return nil -} func (this *ObserveEventBusRequest) Validate() error { return nil } @@ -962,142 +68,7 @@ func (this *StatisticsResponse) Validate() error { } return nil } -func (this *WithdrawalsRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *WithdrawalsResponse) Validate() error { - for _, item := range this.Withdrawals { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Withdrawals", err) - } - } - } - return nil -} -func (this *WithdrawalRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *WithdrawalResponse) Validate() error { - if this.Withdrawal != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Withdrawal); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Withdrawal", err) - } - } - return nil -} -func (this *ERC20WithdrawalApprovalRequest) Validate() error { - if this.WithdrawalId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("WithdrawalId", fmt.Errorf(`value '%v' must not be an empty string`, this.WithdrawalId)) - } - return nil -} -func (this *ERC20WithdrawalApprovalResponse) Validate() error { - return nil -} -func (this *DepositsRequest) Validate() error { - if this.PartyId == "" { - return github_com_mwitkow_go_proto_validators.FieldError("PartyId", fmt.Errorf(`value '%v' must not be an empty string`, this.PartyId)) - } - return nil -} -func (this *DepositsResponse) Validate() error { - for _, item := range this.Deposits { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Deposits", err) - } - } - } - return nil -} -func (this *DepositRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *DepositResponse) Validate() error { - if this.Deposit != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Deposit); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Deposit", err) - } - } - return nil -} -func (this *NetworkParametersRequest) Validate() error { - return nil -} -func (this *NetworkParametersResponse) Validate() error { - for _, item := range this.NetworkParameters { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("NetworkParameters", err) - } - } - } - return nil -} -func (this *LiquidityProvisionsRequest) Validate() error { - return nil -} -func (this *LiquidityProvisionsResponse) Validate() error { - for _, item := range this.LiquidityProvisions { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("LiquidityProvisions", err) - } - } - } - return nil -} -func (this *OracleSpecRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *OracleSpecResponse) Validate() error { - if this.OracleSpec != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.OracleSpec); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("OracleSpec", err) - } - } - return nil -} -func (this *OracleSpecsRequest) Validate() error { - return nil -} -func (this *OracleSpecsResponse) Validate() error { - for _, item := range this.OracleSpecs { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("OracleSpecs", err) - } - } - } - return nil -} -func (this *OracleDataBySpecRequest) Validate() error { - if this.Id == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Id", fmt.Errorf(`value '%v' must not be an empty string`, this.Id)) - } - return nil -} -func (this *OracleDataBySpecResponse) Validate() error { - for _, item := range this.OracleData { - if item != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("OracleData", err) - } - } - } +func (this *Statistics) Validate() error { return nil } func (this *LastBlockHeightRequest) Validate() error { diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading_grpc.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading_grpc.pb.go index 3e35b0be..912032f4 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading_grpc.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/api/trading_grpc.pb.go @@ -19,26 +19,18 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type TradingServiceClient interface { - // Prepare a submit order request - PrepareSubmitOrder(ctx context.Context, in *PrepareSubmitOrderRequest, opts ...grpc.CallOption) (*PrepareSubmitOrderResponse, error) - // Prepare a cancel order request - PrepareCancelOrder(ctx context.Context, in *PrepareCancelOrderRequest, opts ...grpc.CallOption) (*PrepareCancelOrderResponse, error) - // Prepare an amend order request - PrepareAmendOrder(ctx context.Context, in *PrepareAmendOrderRequest, opts ...grpc.CallOption) (*PrepareAmendOrderResponse, error) - // Request a withdrawal - PrepareWithdraw(ctx context.Context, in *PrepareWithdrawRequest, opts ...grpc.CallOption) (*PrepareWithdrawResponse, error) - // Submit a signed transaction - SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error) // Submit a signed transaction (v2) SubmitTransactionV2(ctx context.Context, in *SubmitTransactionV2Request, opts ...grpc.CallOption) (*SubmitTransactionV2Response, error) - // Prepare a governance proposal - PrepareProposalSubmission(ctx context.Context, in *PrepareProposalSubmissionRequest, opts ...grpc.CallOption) (*PrepareProposalSubmissionResponse, error) - // Prepare a governance vote - PrepareVoteSubmission(ctx context.Context, in *PrepareVoteSubmissionRequest, opts ...grpc.CallOption) (*PrepareVoteSubmissionResponse, error) // Propagate a chain event PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error) - // Prepare a liquidity provision request - PrepareLiquidityProvision(ctx context.Context, in *PrepareLiquidityProvisionRequest, opts ...grpc.CallOption) (*PrepareLiquidityProvisionResponse, error) + // Get Statistics on Vega + Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) + // Get the height of the last tendermint block + LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error) + // Get Time + GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error) + // Subscribe to a stream of events from the core + ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (TradingService_ObserveEventBusClient, error) } type tradingServiceClient struct { @@ -49,120 +41,98 @@ func NewTradingServiceClient(cc grpc.ClientConnInterface) TradingServiceClient { return &tradingServiceClient{cc} } -func (c *tradingServiceClient) PrepareSubmitOrder(ctx context.Context, in *PrepareSubmitOrderRequest, opts ...grpc.CallOption) (*PrepareSubmitOrderResponse, error) { - out := new(PrepareSubmitOrderResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareSubmitOrder", in, out, opts...) +func (c *tradingServiceClient) SubmitTransactionV2(ctx context.Context, in *SubmitTransactionV2Request, opts ...grpc.CallOption) (*SubmitTransactionV2Response, error) { + out := new(SubmitTransactionV2Response) + err := c.cc.Invoke(ctx, "/api.v1.TradingService/SubmitTransactionV2", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *tradingServiceClient) PrepareCancelOrder(ctx context.Context, in *PrepareCancelOrderRequest, opts ...grpc.CallOption) (*PrepareCancelOrderResponse, error) { - out := new(PrepareCancelOrderResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareCancelOrder", in, out, opts...) +func (c *tradingServiceClient) PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error) { + out := new(PropagateChainEventResponse) + err := c.cc.Invoke(ctx, "/api.v1.TradingService/PropagateChainEvent", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *tradingServiceClient) PrepareAmendOrder(ctx context.Context, in *PrepareAmendOrderRequest, opts ...grpc.CallOption) (*PrepareAmendOrderResponse, error) { - out := new(PrepareAmendOrderResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareAmendOrder", in, out, opts...) +func (c *tradingServiceClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) { + out := new(StatisticsResponse) + err := c.cc.Invoke(ctx, "/api.v1.TradingService/Statistics", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *tradingServiceClient) PrepareWithdraw(ctx context.Context, in *PrepareWithdrawRequest, opts ...grpc.CallOption) (*PrepareWithdrawResponse, error) { - out := new(PrepareWithdrawResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareWithdraw", in, out, opts...) +func (c *tradingServiceClient) LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error) { + out := new(LastBlockHeightResponse) + err := c.cc.Invoke(ctx, "/api.v1.TradingService/LastBlockHeight", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *tradingServiceClient) SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error) { - out := new(SubmitTransactionResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/SubmitTransaction", in, out, opts...) +func (c *tradingServiceClient) GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error) { + out := new(GetVegaTimeResponse) + err := c.cc.Invoke(ctx, "/api.v1.TradingService/GetVegaTime", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *tradingServiceClient) SubmitTransactionV2(ctx context.Context, in *SubmitTransactionV2Request, opts ...grpc.CallOption) (*SubmitTransactionV2Response, error) { - out := new(SubmitTransactionV2Response) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/SubmitTransactionV2", in, out, opts...) +func (c *tradingServiceClient) ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (TradingService_ObserveEventBusClient, error) { + stream, err := c.cc.NewStream(ctx, &TradingService_ServiceDesc.Streams[0], "/api.v1.TradingService/ObserveEventBus", opts...) if err != nil { return nil, err } - return out, nil + x := &tradingServiceObserveEventBusClient{stream} + return x, nil } -func (c *tradingServiceClient) PrepareProposalSubmission(ctx context.Context, in *PrepareProposalSubmissionRequest, opts ...grpc.CallOption) (*PrepareProposalSubmissionResponse, error) { - out := new(PrepareProposalSubmissionResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareProposalSubmission", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type TradingService_ObserveEventBusClient interface { + Send(*ObserveEventBusRequest) error + Recv() (*ObserveEventBusResponse, error) + grpc.ClientStream } -func (c *tradingServiceClient) PrepareVoteSubmission(ctx context.Context, in *PrepareVoteSubmissionRequest, opts ...grpc.CallOption) (*PrepareVoteSubmissionResponse, error) { - out := new(PrepareVoteSubmissionResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareVoteSubmission", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type tradingServiceObserveEventBusClient struct { + grpc.ClientStream } -func (c *tradingServiceClient) PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error) { - out := new(PropagateChainEventResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PropagateChainEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *tradingServiceObserveEventBusClient) Send(m *ObserveEventBusRequest) error { + return x.ClientStream.SendMsg(m) } -func (c *tradingServiceClient) PrepareLiquidityProvision(ctx context.Context, in *PrepareLiquidityProvisionRequest, opts ...grpc.CallOption) (*PrepareLiquidityProvisionResponse, error) { - out := new(PrepareLiquidityProvisionResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingService/PrepareLiquidityProvision", in, out, opts...) - if err != nil { +func (x *tradingServiceObserveEventBusClient) Recv() (*ObserveEventBusResponse, error) { + m := new(ObserveEventBusResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } - return out, nil + return m, nil } // TradingServiceServer is the server API for TradingService service. // All implementations must embed UnimplementedTradingServiceServer // for forward compatibility type TradingServiceServer interface { - // Prepare a submit order request - PrepareSubmitOrder(context.Context, *PrepareSubmitOrderRequest) (*PrepareSubmitOrderResponse, error) - // Prepare a cancel order request - PrepareCancelOrder(context.Context, *PrepareCancelOrderRequest) (*PrepareCancelOrderResponse, error) - // Prepare an amend order request - PrepareAmendOrder(context.Context, *PrepareAmendOrderRequest) (*PrepareAmendOrderResponse, error) - // Request a withdrawal - PrepareWithdraw(context.Context, *PrepareWithdrawRequest) (*PrepareWithdrawResponse, error) - // Submit a signed transaction - SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error) // Submit a signed transaction (v2) SubmitTransactionV2(context.Context, *SubmitTransactionV2Request) (*SubmitTransactionV2Response, error) - // Prepare a governance proposal - PrepareProposalSubmission(context.Context, *PrepareProposalSubmissionRequest) (*PrepareProposalSubmissionResponse, error) - // Prepare a governance vote - PrepareVoteSubmission(context.Context, *PrepareVoteSubmissionRequest) (*PrepareVoteSubmissionResponse, error) // Propagate a chain event PropagateChainEvent(context.Context, *PropagateChainEventRequest) (*PropagateChainEventResponse, error) - // Prepare a liquidity provision request - PrepareLiquidityProvision(context.Context, *PrepareLiquidityProvisionRequest) (*PrepareLiquidityProvisionResponse, error) + // Get Statistics on Vega + Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) + // Get the height of the last tendermint block + LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error) + // Get Time + GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error) + // Subscribe to a stream of events from the core + ObserveEventBus(TradingService_ObserveEventBusServer) error mustEmbedUnimplementedTradingServiceServer() } @@ -170,35 +140,23 @@ type TradingServiceServer interface { type UnimplementedTradingServiceServer struct { } -func (UnimplementedTradingServiceServer) PrepareSubmitOrder(context.Context, *PrepareSubmitOrderRequest) (*PrepareSubmitOrderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareSubmitOrder not implemented") -} -func (UnimplementedTradingServiceServer) PrepareCancelOrder(context.Context, *PrepareCancelOrderRequest) (*PrepareCancelOrderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareCancelOrder not implemented") -} -func (UnimplementedTradingServiceServer) PrepareAmendOrder(context.Context, *PrepareAmendOrderRequest) (*PrepareAmendOrderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareAmendOrder not implemented") -} -func (UnimplementedTradingServiceServer) PrepareWithdraw(context.Context, *PrepareWithdrawRequest) (*PrepareWithdrawResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareWithdraw not implemented") -} -func (UnimplementedTradingServiceServer) SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitTransaction not implemented") -} func (UnimplementedTradingServiceServer) SubmitTransactionV2(context.Context, *SubmitTransactionV2Request) (*SubmitTransactionV2Response, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitTransactionV2 not implemented") } -func (UnimplementedTradingServiceServer) PrepareProposalSubmission(context.Context, *PrepareProposalSubmissionRequest) (*PrepareProposalSubmissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareProposalSubmission not implemented") -} -func (UnimplementedTradingServiceServer) PrepareVoteSubmission(context.Context, *PrepareVoteSubmissionRequest) (*PrepareVoteSubmissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareVoteSubmission not implemented") -} func (UnimplementedTradingServiceServer) PropagateChainEvent(context.Context, *PropagateChainEventRequest) (*PropagateChainEventResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PropagateChainEvent not implemented") } -func (UnimplementedTradingServiceServer) PrepareLiquidityProvision(context.Context, *PrepareLiquidityProvisionRequest) (*PrepareLiquidityProvisionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrepareLiquidityProvision not implemented") +func (UnimplementedTradingServiceServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented") +} +func (UnimplementedTradingServiceServer) LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LastBlockHeight not implemented") +} +func (UnimplementedTradingServiceServer) GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVegaTime not implemented") +} +func (UnimplementedTradingServiceServer) ObserveEventBus(TradingService_ObserveEventBusServer) error { + return status.Errorf(codes.Unimplemented, "method ObserveEventBus not implemented") } func (UnimplementedTradingServiceServer) mustEmbedUnimplementedTradingServiceServer() {} @@ -213,184 +171,120 @@ func RegisterTradingServiceServer(s grpc.ServiceRegistrar, srv TradingServiceSer s.RegisterService(&TradingService_ServiceDesc, srv) } -func _TradingService_PrepareSubmitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareSubmitOrderRequest) +func _TradingService_SubmitTransactionV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SubmitTransactionV2Request) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TradingServiceServer).PrepareSubmitOrder(ctx, in) + return srv.(TradingServiceServer).SubmitTransactionV2(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.TradingService/PrepareSubmitOrder", + FullMethod: "/api.v1.TradingService/SubmitTransactionV2", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareSubmitOrder(ctx, req.(*PrepareSubmitOrderRequest)) + return srv.(TradingServiceServer).SubmitTransactionV2(ctx, req.(*SubmitTransactionV2Request)) } return interceptor(ctx, in, info, handler) } -func _TradingService_PrepareCancelOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareCancelOrderRequest) +func _TradingService_PropagateChainEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PropagateChainEventRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TradingServiceServer).PrepareCancelOrder(ctx, in) + return srv.(TradingServiceServer).PropagateChainEvent(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.TradingService/PrepareCancelOrder", + FullMethod: "/api.v1.TradingService/PropagateChainEvent", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareCancelOrder(ctx, req.(*PrepareCancelOrderRequest)) + return srv.(TradingServiceServer).PropagateChainEvent(ctx, req.(*PropagateChainEventRequest)) } return interceptor(ctx, in, info, handler) } -func _TradingService_PrepareAmendOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareAmendOrderRequest) +func _TradingService_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatisticsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TradingServiceServer).PrepareAmendOrder(ctx, in) + return srv.(TradingServiceServer).Statistics(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.TradingService/PrepareAmendOrder", + FullMethod: "/api.v1.TradingService/Statistics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareAmendOrder(ctx, req.(*PrepareAmendOrderRequest)) + return srv.(TradingServiceServer).Statistics(ctx, req.(*StatisticsRequest)) } return interceptor(ctx, in, info, handler) } -func _TradingService_PrepareWithdraw_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareWithdrawRequest) +func _TradingService_LastBlockHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastBlockHeightRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TradingServiceServer).PrepareWithdraw(ctx, in) + return srv.(TradingServiceServer).LastBlockHeight(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.TradingService/PrepareWithdraw", + FullMethod: "/api.v1.TradingService/LastBlockHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareWithdraw(ctx, req.(*PrepareWithdrawRequest)) + return srv.(TradingServiceServer).LastBlockHeight(ctx, req.(*LastBlockHeightRequest)) } return interceptor(ctx, in, info, handler) } -func _TradingService_SubmitTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SubmitTransactionRequest) +func _TradingService_GetVegaTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVegaTimeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TradingServiceServer).SubmitTransaction(ctx, in) + return srv.(TradingServiceServer).GetVegaTime(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.TradingService/SubmitTransaction", + FullMethod: "/api.v1.TradingService/GetVegaTime", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).SubmitTransaction(ctx, req.(*SubmitTransactionRequest)) + return srv.(TradingServiceServer).GetVegaTime(ctx, req.(*GetVegaTimeRequest)) } return interceptor(ctx, in, info, handler) } -func _TradingService_SubmitTransactionV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SubmitTransactionV2Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingServiceServer).SubmitTransactionV2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingService/SubmitTransactionV2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).SubmitTransactionV2(ctx, req.(*SubmitTransactionV2Request)) - } - return interceptor(ctx, in, info, handler) +func _TradingService_ObserveEventBus_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TradingServiceServer).ObserveEventBus(&tradingServiceObserveEventBusServer{stream}) } -func _TradingService_PrepareProposalSubmission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareProposalSubmissionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingServiceServer).PrepareProposalSubmission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingService/PrepareProposalSubmission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareProposalSubmission(ctx, req.(*PrepareProposalSubmissionRequest)) - } - return interceptor(ctx, in, info, handler) +type TradingService_ObserveEventBusServer interface { + Send(*ObserveEventBusResponse) error + Recv() (*ObserveEventBusRequest, error) + grpc.ServerStream } -func _TradingService_PrepareVoteSubmission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareVoteSubmissionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingServiceServer).PrepareVoteSubmission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingService/PrepareVoteSubmission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareVoteSubmission(ctx, req.(*PrepareVoteSubmissionRequest)) - } - return interceptor(ctx, in, info, handler) +type tradingServiceObserveEventBusServer struct { + grpc.ServerStream } -func _TradingService_PropagateChainEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PropagateChainEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingServiceServer).PropagateChainEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingService/PropagateChainEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PropagateChainEvent(ctx, req.(*PropagateChainEventRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *tradingServiceObserveEventBusServer) Send(m *ObserveEventBusResponse) error { + return x.ServerStream.SendMsg(m) } -func _TradingService_PrepareLiquidityProvision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrepareLiquidityProvisionRequest) - if err := dec(in); err != nil { +func (x *tradingServiceObserveEventBusServer) Recv() (*ObserveEventBusRequest, error) { + m := new(ObserveEventBusRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } - if interceptor == nil { - return srv.(TradingServiceServer).PrepareLiquidityProvision(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingService/PrepareLiquidityProvision", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingServiceServer).PrepareLiquidityProvision(ctx, req.(*PrepareLiquidityProvisionRequest)) - } - return interceptor(ctx, in, info, handler) + return m, nil } // TradingService_ServiceDesc is the grpc.ServiceDesc for TradingService service. @@ -400,2982 +294,34 @@ var TradingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.TradingService", HandlerType: (*TradingServiceServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "PrepareSubmitOrder", - Handler: _TradingService_PrepareSubmitOrder_Handler, - }, - { - MethodName: "PrepareCancelOrder", - Handler: _TradingService_PrepareCancelOrder_Handler, - }, - { - MethodName: "PrepareAmendOrder", - Handler: _TradingService_PrepareAmendOrder_Handler, - }, - { - MethodName: "PrepareWithdraw", - Handler: _TradingService_PrepareWithdraw_Handler, - }, - { - MethodName: "SubmitTransaction", - Handler: _TradingService_SubmitTransaction_Handler, - }, { MethodName: "SubmitTransactionV2", Handler: _TradingService_SubmitTransactionV2_Handler, }, { - MethodName: "PrepareProposalSubmission", - Handler: _TradingService_PrepareProposalSubmission_Handler, + MethodName: "PropagateChainEvent", + Handler: _TradingService_PropagateChainEvent_Handler, }, { - MethodName: "PrepareVoteSubmission", - Handler: _TradingService_PrepareVoteSubmission_Handler, + MethodName: "Statistics", + Handler: _TradingService_Statistics_Handler, }, { - MethodName: "PropagateChainEvent", - Handler: _TradingService_PropagateChainEvent_Handler, + MethodName: "LastBlockHeight", + Handler: _TradingService_LastBlockHeight_Handler, }, { - MethodName: "PrepareLiquidityProvision", - Handler: _TradingService_PrepareLiquidityProvision_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "api/trading.proto", -} - -// TradingDataServiceClient is the client API for TradingDataService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type TradingDataServiceClient interface { - // Get a list of Accounts by Market - MarketAccounts(ctx context.Context, in *MarketAccountsRequest, opts ...grpc.CallOption) (*MarketAccountsResponse, error) - // Get a list of Accounts by Party - PartyAccounts(ctx context.Context, in *PartyAccountsRequest, opts ...grpc.CallOption) (*PartyAccountsResponse, error) - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - FeeInfrastructureAccounts(ctx context.Context, in *FeeInfrastructureAccountsRequest, opts ...grpc.CallOption) (*FeeInfrastructureAccountsResponse, error) - // Get a list of Candles by Market - Candles(ctx context.Context, in *CandlesRequest, opts ...grpc.CallOption) (*CandlesResponse, error) - // Get Market Data by Market ID - MarketDataByID(ctx context.Context, in *MarketDataByIDRequest, opts ...grpc.CallOption) (*MarketDataByIDResponse, error) - // Get a list of Market Data - MarketsData(ctx context.Context, in *MarketsDataRequest, opts ...grpc.CallOption) (*MarketsDataResponse, error) - // Get a Market by ID - MarketByID(ctx context.Context, in *MarketByIDRequest, opts ...grpc.CallOption) (*MarketByIDResponse, error) - // Get Market Depth - MarketDepth(ctx context.Context, in *MarketDepthRequest, opts ...grpc.CallOption) (*MarketDepthResponse, error) - // Get a list of Markets - Markets(ctx context.Context, in *MarketsRequest, opts ...grpc.CallOption) (*MarketsResponse, error) - // Get an Order by Market and Order ID - OrderByMarketAndID(ctx context.Context, in *OrderByMarketAndIDRequest, opts ...grpc.CallOption) (*OrderByMarketAndIDResponse, error) - // Get an Order by Pending Order reference (UUID) - OrderByReference(ctx context.Context, in *OrderByReferenceRequest, opts ...grpc.CallOption) (*OrderByReferenceResponse, error) - // Get a list of Orders by Market - OrdersByMarket(ctx context.Context, in *OrdersByMarketRequest, opts ...grpc.CallOption) (*OrdersByMarketResponse, error) - // Get a list of Orders by Party - OrdersByParty(ctx context.Context, in *OrdersByPartyRequest, opts ...grpc.CallOption) (*OrdersByPartyResponse, error) - // Get a specific order by order ID - OrderByID(ctx context.Context, in *OrderByIDRequest, opts ...grpc.CallOption) (*OrderByIDResponse, error) - // Get all versions of the order by its orderID - OrderVersionsByID(ctx context.Context, in *OrderVersionsByIDRequest, opts ...grpc.CallOption) (*OrderVersionsByIDResponse, error) - // Get Margin Levels by Party ID - MarginLevels(ctx context.Context, in *MarginLevelsRequest, opts ...grpc.CallOption) (*MarginLevelsResponse, error) - // Get a list of Parties - Parties(ctx context.Context, in *PartiesRequest, opts ...grpc.CallOption) (*PartiesResponse, error) - // Get a Party by ID - PartyByID(ctx context.Context, in *PartyByIDRequest, opts ...grpc.CallOption) (*PartyByIDResponse, error) - // Get a list of Positions by Party - PositionsByParty(ctx context.Context, in *PositionsByPartyRequest, opts ...grpc.CallOption) (*PositionsByPartyResponse, error) - // Get latest Trade - LastTrade(ctx context.Context, in *LastTradeRequest, opts ...grpc.CallOption) (*LastTradeResponse, error) - // Get a list of Trades by Market - TradesByMarket(ctx context.Context, in *TradesByMarketRequest, opts ...grpc.CallOption) (*TradesByMarketResponse, error) - // Get a list of Trades by Order - TradesByOrder(ctx context.Context, in *TradesByOrderRequest, opts ...grpc.CallOption) (*TradesByOrderResponse, error) - // Get a list of Trades by Party - TradesByParty(ctx context.Context, in *TradesByPartyRequest, opts ...grpc.CallOption) (*TradesByPartyResponse, error) - // Get governance data (proposals and votes) for all proposals - GetProposals(ctx context.Context, in *GetProposalsRequest, opts ...grpc.CallOption) (*GetProposalsResponse, error) - // Get governance data (proposals and votes) for proposals by party authoring them - GetProposalsByParty(ctx context.Context, in *GetProposalsByPartyRequest, opts ...grpc.CallOption) (*GetProposalsByPartyResponse, error) - // Get votes by party casting them - GetVotesByParty(ctx context.Context, in *GetVotesByPartyRequest, opts ...grpc.CallOption) (*GetVotesByPartyResponse, error) - // Get governance data (proposals and votes) for proposals that aim creating new markets - GetNewMarketProposals(ctx context.Context, in *GetNewMarketProposalsRequest, opts ...grpc.CallOption) (*GetNewMarketProposalsResponse, error) - // Get governance data (proposals and votes) for proposals that aim updating markets - GetUpdateMarketProposals(ctx context.Context, in *GetUpdateMarketProposalsRequest, opts ...grpc.CallOption) (*GetUpdateMarketProposalsResponse, error) - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - GetNetworkParametersProposals(ctx context.Context, in *GetNetworkParametersProposalsRequest, opts ...grpc.CallOption) (*GetNetworkParametersProposalsResponse, error) - // Get governance data (proposals and votes) for proposals aiming to create new assets - GetNewAssetProposals(ctx context.Context, in *GetNewAssetProposalsRequest, opts ...grpc.CallOption) (*GetNewAssetProposalsResponse, error) - // Get governance data (proposals and votes) for a proposal located by ID - GetProposalByID(ctx context.Context, in *GetProposalByIDRequest, opts ...grpc.CallOption) (*GetProposalByIDResponse, error) - // Get governance data (proposals and votes) for a proposal located by reference - GetProposalByReference(ctx context.Context, in *GetProposalByReferenceRequest, opts ...grpc.CallOption) (*GetProposalByReferenceResponse, error) - // Subscribe to a stream of all governance updates - ObserveGovernance(ctx context.Context, in *ObserveGovernanceRequest, opts ...grpc.CallOption) (TradingDataService_ObserveGovernanceClient, error) - // Subscribe to a stream of proposal updates - ObservePartyProposals(ctx context.Context, in *ObservePartyProposalsRequest, opts ...grpc.CallOption) (TradingDataService_ObservePartyProposalsClient, error) - // Subscribe to a stream of votes cast by a specific party - ObservePartyVotes(ctx context.Context, in *ObservePartyVotesRequest, opts ...grpc.CallOption) (TradingDataService_ObservePartyVotesClient, error) - // Subscribe to a stream of proposal votes - ObserveProposalVotes(ctx context.Context, in *ObserveProposalVotesRequest, opts ...grpc.CallOption) (TradingDataService_ObserveProposalVotesClient, error) - // Subscribe to a stream of events from the core - ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (TradingDataService_ObserveEventBusClient, error) - // Get Statistics on Vega - Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) - LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error) - // Get Time - GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error) - // Subscribe to a stream of Accounts - AccountsSubscribe(ctx context.Context, in *AccountsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_AccountsSubscribeClient, error) - // Subscribe to a stream of Candles - CandlesSubscribe(ctx context.Context, in *CandlesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_CandlesSubscribeClient, error) - // Subscribe to a stream of Margin Levels - MarginLevelsSubscribe(ctx context.Context, in *MarginLevelsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarginLevelsSubscribeClient, error) - // Subscribe to a stream of Market Depth - MarketDepthSubscribe(ctx context.Context, in *MarketDepthSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketDepthSubscribeClient, error) - // Subscribe to a stream of Market Depth Price Level Updates - MarketDepthUpdatesSubscribe(ctx context.Context, in *MarketDepthUpdatesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketDepthUpdatesSubscribeClient, error) - // Subscribe to a stream of Markets Data - MarketsDataSubscribe(ctx context.Context, in *MarketsDataSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketsDataSubscribeClient, error) - // Subscribe to a stream of Orders - OrdersSubscribe(ctx context.Context, in *OrdersSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_OrdersSubscribeClient, error) - // Subscribe to a stream of Positions - PositionsSubscribe(ctx context.Context, in *PositionsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_PositionsSubscribeClient, error) - // Subscribe to a stream of Trades - TradesSubscribe(ctx context.Context, in *TradesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_TradesSubscribeClient, error) - // Subscribe to a stream of Transfer Responses - TransferResponsesSubscribe(ctx context.Context, in *TransferResponsesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_TransferResponsesSubscribeClient, error) - // Get an aggregate of signatures from all the nodes of the network - GetNodeSignaturesAggregate(ctx context.Context, in *GetNodeSignaturesAggregateRequest, opts ...grpc.CallOption) (*GetNodeSignaturesAggregateResponse, error) - // Get an asset by its identifier - AssetByID(ctx context.Context, in *AssetByIDRequest, opts ...grpc.CallOption) (*AssetByIDResponse, error) - // Get a list of all assets on Vega - Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (*AssetsResponse, error) - // Get an estimate for the fee to be paid for a given order - EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error) - // Get an estimate for the margin required for a new order - EstimateMargin(ctx context.Context, in *EstimateMarginRequest, opts ...grpc.CallOption) (*EstimateMarginResponse, error) - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - ERC20WithdrawalApproval(ctx context.Context, in *ERC20WithdrawalApprovalRequest, opts ...grpc.CallOption) (*ERC20WithdrawalApprovalResponse, error) - // Get a withdrawal by its identifier - Withdrawal(ctx context.Context, in *WithdrawalRequest, opts ...grpc.CallOption) (*WithdrawalResponse, error) - // Get withdrawals for a party - Withdrawals(ctx context.Context, in *WithdrawalsRequest, opts ...grpc.CallOption) (*WithdrawalsResponse, error) - // Get a deposit by its identifier - Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error) - // Get deposits for a party - Deposits(ctx context.Context, in *DepositsRequest, opts ...grpc.CallOption) (*DepositsResponse, error) - // Get the network parameters - NetworkParameters(ctx context.Context, in *NetworkParametersRequest, opts ...grpc.CallOption) (*NetworkParametersResponse, error) - // Get the liquidity provision orders - LiquidityProvisions(ctx context.Context, in *LiquidityProvisionsRequest, opts ...grpc.CallOption) (*LiquidityProvisionsResponse, error) - // Get an oracle spec by ID - OracleSpec(ctx context.Context, in *OracleSpecRequest, opts ...grpc.CallOption) (*OracleSpecResponse, error) - // Get the oracle specs - OracleSpecs(ctx context.Context, in *OracleSpecsRequest, opts ...grpc.CallOption) (*OracleSpecsResponse, error) - // Get all oracle data - OracleDataBySpec(ctx context.Context, in *OracleDataBySpecRequest, opts ...grpc.CallOption) (*OracleDataBySpecResponse, error) -} - -type tradingDataServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewTradingDataServiceClient(cc grpc.ClientConnInterface) TradingDataServiceClient { - return &tradingDataServiceClient{cc} -} - -func (c *tradingDataServiceClient) MarketAccounts(ctx context.Context, in *MarketAccountsRequest, opts ...grpc.CallOption) (*MarketAccountsResponse, error) { - out := new(MarketAccountsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarketAccounts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) PartyAccounts(ctx context.Context, in *PartyAccountsRequest, opts ...grpc.CallOption) (*PartyAccountsResponse, error) { - out := new(PartyAccountsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/PartyAccounts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) FeeInfrastructureAccounts(ctx context.Context, in *FeeInfrastructureAccountsRequest, opts ...grpc.CallOption) (*FeeInfrastructureAccountsResponse, error) { - out := new(FeeInfrastructureAccountsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/FeeInfrastructureAccounts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Candles(ctx context.Context, in *CandlesRequest, opts ...grpc.CallOption) (*CandlesResponse, error) { - out := new(CandlesResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Candles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) MarketDataByID(ctx context.Context, in *MarketDataByIDRequest, opts ...grpc.CallOption) (*MarketDataByIDResponse, error) { - out := new(MarketDataByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarketDataByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) MarketsData(ctx context.Context, in *MarketsDataRequest, opts ...grpc.CallOption) (*MarketsDataResponse, error) { - out := new(MarketsDataResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarketsData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) MarketByID(ctx context.Context, in *MarketByIDRequest, opts ...grpc.CallOption) (*MarketByIDResponse, error) { - out := new(MarketByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarketByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) MarketDepth(ctx context.Context, in *MarketDepthRequest, opts ...grpc.CallOption) (*MarketDepthResponse, error) { - out := new(MarketDepthResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarketDepth", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Markets(ctx context.Context, in *MarketsRequest, opts ...grpc.CallOption) (*MarketsResponse, error) { - out := new(MarketsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Markets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrderByMarketAndID(ctx context.Context, in *OrderByMarketAndIDRequest, opts ...grpc.CallOption) (*OrderByMarketAndIDResponse, error) { - out := new(OrderByMarketAndIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrderByMarketAndID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrderByReference(ctx context.Context, in *OrderByReferenceRequest, opts ...grpc.CallOption) (*OrderByReferenceResponse, error) { - out := new(OrderByReferenceResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrderByReference", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrdersByMarket(ctx context.Context, in *OrdersByMarketRequest, opts ...grpc.CallOption) (*OrdersByMarketResponse, error) { - out := new(OrdersByMarketResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrdersByMarket", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrdersByParty(ctx context.Context, in *OrdersByPartyRequest, opts ...grpc.CallOption) (*OrdersByPartyResponse, error) { - out := new(OrdersByPartyResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrdersByParty", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrderByID(ctx context.Context, in *OrderByIDRequest, opts ...grpc.CallOption) (*OrderByIDResponse, error) { - out := new(OrderByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrderByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OrderVersionsByID(ctx context.Context, in *OrderVersionsByIDRequest, opts ...grpc.CallOption) (*OrderVersionsByIDResponse, error) { - out := new(OrderVersionsByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OrderVersionsByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) MarginLevels(ctx context.Context, in *MarginLevelsRequest, opts ...grpc.CallOption) (*MarginLevelsResponse, error) { - out := new(MarginLevelsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/MarginLevels", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Parties(ctx context.Context, in *PartiesRequest, opts ...grpc.CallOption) (*PartiesResponse, error) { - out := new(PartiesResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Parties", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) PartyByID(ctx context.Context, in *PartyByIDRequest, opts ...grpc.CallOption) (*PartyByIDResponse, error) { - out := new(PartyByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/PartyByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) PositionsByParty(ctx context.Context, in *PositionsByPartyRequest, opts ...grpc.CallOption) (*PositionsByPartyResponse, error) { - out := new(PositionsByPartyResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/PositionsByParty", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) LastTrade(ctx context.Context, in *LastTradeRequest, opts ...grpc.CallOption) (*LastTradeResponse, error) { - out := new(LastTradeResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/LastTrade", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) TradesByMarket(ctx context.Context, in *TradesByMarketRequest, opts ...grpc.CallOption) (*TradesByMarketResponse, error) { - out := new(TradesByMarketResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/TradesByMarket", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) TradesByOrder(ctx context.Context, in *TradesByOrderRequest, opts ...grpc.CallOption) (*TradesByOrderResponse, error) { - out := new(TradesByOrderResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/TradesByOrder", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) TradesByParty(ctx context.Context, in *TradesByPartyRequest, opts ...grpc.CallOption) (*TradesByPartyResponse, error) { - out := new(TradesByPartyResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/TradesByParty", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetProposals(ctx context.Context, in *GetProposalsRequest, opts ...grpc.CallOption) (*GetProposalsResponse, error) { - out := new(GetProposalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetProposals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetProposalsByParty(ctx context.Context, in *GetProposalsByPartyRequest, opts ...grpc.CallOption) (*GetProposalsByPartyResponse, error) { - out := new(GetProposalsByPartyResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetProposalsByParty", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetVotesByParty(ctx context.Context, in *GetVotesByPartyRequest, opts ...grpc.CallOption) (*GetVotesByPartyResponse, error) { - out := new(GetVotesByPartyResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetVotesByParty", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetNewMarketProposals(ctx context.Context, in *GetNewMarketProposalsRequest, opts ...grpc.CallOption) (*GetNewMarketProposalsResponse, error) { - out := new(GetNewMarketProposalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetNewMarketProposals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetUpdateMarketProposals(ctx context.Context, in *GetUpdateMarketProposalsRequest, opts ...grpc.CallOption) (*GetUpdateMarketProposalsResponse, error) { - out := new(GetUpdateMarketProposalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetUpdateMarketProposals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetNetworkParametersProposals(ctx context.Context, in *GetNetworkParametersProposalsRequest, opts ...grpc.CallOption) (*GetNetworkParametersProposalsResponse, error) { - out := new(GetNetworkParametersProposalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetNetworkParametersProposals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetNewAssetProposals(ctx context.Context, in *GetNewAssetProposalsRequest, opts ...grpc.CallOption) (*GetNewAssetProposalsResponse, error) { - out := new(GetNewAssetProposalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetNewAssetProposals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetProposalByID(ctx context.Context, in *GetProposalByIDRequest, opts ...grpc.CallOption) (*GetProposalByIDResponse, error) { - out := new(GetProposalByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetProposalByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetProposalByReference(ctx context.Context, in *GetProposalByReferenceRequest, opts ...grpc.CallOption) (*GetProposalByReferenceResponse, error) { - out := new(GetProposalByReferenceResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetProposalByReference", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) ObserveGovernance(ctx context.Context, in *ObserveGovernanceRequest, opts ...grpc.CallOption) (TradingDataService_ObserveGovernanceClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[0], "/api.v1.TradingDataService/ObserveGovernance", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceObserveGovernanceClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_ObserveGovernanceClient interface { - Recv() (*ObserveGovernanceResponse, error) - grpc.ClientStream -} - -type tradingDataServiceObserveGovernanceClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceObserveGovernanceClient) Recv() (*ObserveGovernanceResponse, error) { - m := new(ObserveGovernanceResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) ObservePartyProposals(ctx context.Context, in *ObservePartyProposalsRequest, opts ...grpc.CallOption) (TradingDataService_ObservePartyProposalsClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[1], "/api.v1.TradingDataService/ObservePartyProposals", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceObservePartyProposalsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_ObservePartyProposalsClient interface { - Recv() (*ObservePartyProposalsResponse, error) - grpc.ClientStream -} - -type tradingDataServiceObservePartyProposalsClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceObservePartyProposalsClient) Recv() (*ObservePartyProposalsResponse, error) { - m := new(ObservePartyProposalsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) ObservePartyVotes(ctx context.Context, in *ObservePartyVotesRequest, opts ...grpc.CallOption) (TradingDataService_ObservePartyVotesClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[2], "/api.v1.TradingDataService/ObservePartyVotes", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceObservePartyVotesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_ObservePartyVotesClient interface { - Recv() (*ObservePartyVotesResponse, error) - grpc.ClientStream -} - -type tradingDataServiceObservePartyVotesClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceObservePartyVotesClient) Recv() (*ObservePartyVotesResponse, error) { - m := new(ObservePartyVotesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) ObserveProposalVotes(ctx context.Context, in *ObserveProposalVotesRequest, opts ...grpc.CallOption) (TradingDataService_ObserveProposalVotesClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[3], "/api.v1.TradingDataService/ObserveProposalVotes", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceObserveProposalVotesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_ObserveProposalVotesClient interface { - Recv() (*ObserveProposalVotesResponse, error) - grpc.ClientStream -} - -type tradingDataServiceObserveProposalVotesClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceObserveProposalVotesClient) Recv() (*ObserveProposalVotesResponse, error) { - m := new(ObserveProposalVotesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (TradingDataService_ObserveEventBusClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[4], "/api.v1.TradingDataService/ObserveEventBus", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceObserveEventBusClient{stream} - return x, nil -} - -type TradingDataService_ObserveEventBusClient interface { - Send(*ObserveEventBusRequest) error - Recv() (*ObserveEventBusResponse, error) - grpc.ClientStream -} - -type tradingDataServiceObserveEventBusClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceObserveEventBusClient) Send(m *ObserveEventBusRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *tradingDataServiceObserveEventBusClient) Recv() (*ObserveEventBusResponse, error) { - m := new(ObserveEventBusResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) { - out := new(StatisticsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Statistics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error) { - out := new(LastBlockHeightResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/LastBlockHeight", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error) { - out := new(GetVegaTimeResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetVegaTime", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) AccountsSubscribe(ctx context.Context, in *AccountsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_AccountsSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[5], "/api.v1.TradingDataService/AccountsSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceAccountsSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_AccountsSubscribeClient interface { - Recv() (*AccountsSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceAccountsSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceAccountsSubscribeClient) Recv() (*AccountsSubscribeResponse, error) { - m := new(AccountsSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) CandlesSubscribe(ctx context.Context, in *CandlesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_CandlesSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[6], "/api.v1.TradingDataService/CandlesSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceCandlesSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_CandlesSubscribeClient interface { - Recv() (*CandlesSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceCandlesSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceCandlesSubscribeClient) Recv() (*CandlesSubscribeResponse, error) { - m := new(CandlesSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) MarginLevelsSubscribe(ctx context.Context, in *MarginLevelsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarginLevelsSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[7], "/api.v1.TradingDataService/MarginLevelsSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceMarginLevelsSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_MarginLevelsSubscribeClient interface { - Recv() (*MarginLevelsSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceMarginLevelsSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceMarginLevelsSubscribeClient) Recv() (*MarginLevelsSubscribeResponse, error) { - m := new(MarginLevelsSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) MarketDepthSubscribe(ctx context.Context, in *MarketDepthSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketDepthSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[8], "/api.v1.TradingDataService/MarketDepthSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceMarketDepthSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_MarketDepthSubscribeClient interface { - Recv() (*MarketDepthSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceMarketDepthSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceMarketDepthSubscribeClient) Recv() (*MarketDepthSubscribeResponse, error) { - m := new(MarketDepthSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) MarketDepthUpdatesSubscribe(ctx context.Context, in *MarketDepthUpdatesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketDepthUpdatesSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[9], "/api.v1.TradingDataService/MarketDepthUpdatesSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceMarketDepthUpdatesSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_MarketDepthUpdatesSubscribeClient interface { - Recv() (*MarketDepthUpdatesSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceMarketDepthUpdatesSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceMarketDepthUpdatesSubscribeClient) Recv() (*MarketDepthUpdatesSubscribeResponse, error) { - m := new(MarketDepthUpdatesSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) MarketsDataSubscribe(ctx context.Context, in *MarketsDataSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_MarketsDataSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[10], "/api.v1.TradingDataService/MarketsDataSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceMarketsDataSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_MarketsDataSubscribeClient interface { - Recv() (*MarketsDataSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceMarketsDataSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceMarketsDataSubscribeClient) Recv() (*MarketsDataSubscribeResponse, error) { - m := new(MarketsDataSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) OrdersSubscribe(ctx context.Context, in *OrdersSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_OrdersSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[11], "/api.v1.TradingDataService/OrdersSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceOrdersSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_OrdersSubscribeClient interface { - Recv() (*OrdersSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceOrdersSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceOrdersSubscribeClient) Recv() (*OrdersSubscribeResponse, error) { - m := new(OrdersSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) PositionsSubscribe(ctx context.Context, in *PositionsSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_PositionsSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[12], "/api.v1.TradingDataService/PositionsSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServicePositionsSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_PositionsSubscribeClient interface { - Recv() (*PositionsSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServicePositionsSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServicePositionsSubscribeClient) Recv() (*PositionsSubscribeResponse, error) { - m := new(PositionsSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) TradesSubscribe(ctx context.Context, in *TradesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_TradesSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[13], "/api.v1.TradingDataService/TradesSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceTradesSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_TradesSubscribeClient interface { - Recv() (*TradesSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceTradesSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceTradesSubscribeClient) Recv() (*TradesSubscribeResponse, error) { - m := new(TradesSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) TransferResponsesSubscribe(ctx context.Context, in *TransferResponsesSubscribeRequest, opts ...grpc.CallOption) (TradingDataService_TransferResponsesSubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &TradingDataService_ServiceDesc.Streams[14], "/api.v1.TradingDataService/TransferResponsesSubscribe", opts...) - if err != nil { - return nil, err - } - x := &tradingDataServiceTransferResponsesSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TradingDataService_TransferResponsesSubscribeClient interface { - Recv() (*TransferResponsesSubscribeResponse, error) - grpc.ClientStream -} - -type tradingDataServiceTransferResponsesSubscribeClient struct { - grpc.ClientStream -} - -func (x *tradingDataServiceTransferResponsesSubscribeClient) Recv() (*TransferResponsesSubscribeResponse, error) { - m := new(TransferResponsesSubscribeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *tradingDataServiceClient) GetNodeSignaturesAggregate(ctx context.Context, in *GetNodeSignaturesAggregateRequest, opts ...grpc.CallOption) (*GetNodeSignaturesAggregateResponse, error) { - out := new(GetNodeSignaturesAggregateResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/GetNodeSignaturesAggregate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) AssetByID(ctx context.Context, in *AssetByIDRequest, opts ...grpc.CallOption) (*AssetByIDResponse, error) { - out := new(AssetByIDResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/AssetByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (*AssetsResponse, error) { - out := new(AssetsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Assets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error) { - out := new(EstimateFeeResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/EstimateFee", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) EstimateMargin(ctx context.Context, in *EstimateMarginRequest, opts ...grpc.CallOption) (*EstimateMarginResponse, error) { - out := new(EstimateMarginResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/EstimateMargin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) ERC20WithdrawalApproval(ctx context.Context, in *ERC20WithdrawalApprovalRequest, opts ...grpc.CallOption) (*ERC20WithdrawalApprovalResponse, error) { - out := new(ERC20WithdrawalApprovalResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/ERC20WithdrawalApproval", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Withdrawal(ctx context.Context, in *WithdrawalRequest, opts ...grpc.CallOption) (*WithdrawalResponse, error) { - out := new(WithdrawalResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Withdrawal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Withdrawals(ctx context.Context, in *WithdrawalsRequest, opts ...grpc.CallOption) (*WithdrawalsResponse, error) { - out := new(WithdrawalsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Withdrawals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error) { - out := new(DepositResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Deposit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) Deposits(ctx context.Context, in *DepositsRequest, opts ...grpc.CallOption) (*DepositsResponse, error) { - out := new(DepositsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/Deposits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) NetworkParameters(ctx context.Context, in *NetworkParametersRequest, opts ...grpc.CallOption) (*NetworkParametersResponse, error) { - out := new(NetworkParametersResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/NetworkParameters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) LiquidityProvisions(ctx context.Context, in *LiquidityProvisionsRequest, opts ...grpc.CallOption) (*LiquidityProvisionsResponse, error) { - out := new(LiquidityProvisionsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/LiquidityProvisions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OracleSpec(ctx context.Context, in *OracleSpecRequest, opts ...grpc.CallOption) (*OracleSpecResponse, error) { - out := new(OracleSpecResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OracleSpec", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OracleSpecs(ctx context.Context, in *OracleSpecsRequest, opts ...grpc.CallOption) (*OracleSpecsResponse, error) { - out := new(OracleSpecsResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OracleSpecs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *tradingDataServiceClient) OracleDataBySpec(ctx context.Context, in *OracleDataBySpecRequest, opts ...grpc.CallOption) (*OracleDataBySpecResponse, error) { - out := new(OracleDataBySpecResponse) - err := c.cc.Invoke(ctx, "/api.v1.TradingDataService/OracleDataBySpec", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// TradingDataServiceServer is the server API for TradingDataService service. -// All implementations must embed UnimplementedTradingDataServiceServer -// for forward compatibility -type TradingDataServiceServer interface { - // Get a list of Accounts by Market - MarketAccounts(context.Context, *MarketAccountsRequest) (*MarketAccountsResponse, error) - // Get a list of Accounts by Party - PartyAccounts(context.Context, *PartyAccountsRequest) (*PartyAccountsResponse, error) - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - FeeInfrastructureAccounts(context.Context, *FeeInfrastructureAccountsRequest) (*FeeInfrastructureAccountsResponse, error) - // Get a list of Candles by Market - Candles(context.Context, *CandlesRequest) (*CandlesResponse, error) - // Get Market Data by Market ID - MarketDataByID(context.Context, *MarketDataByIDRequest) (*MarketDataByIDResponse, error) - // Get a list of Market Data - MarketsData(context.Context, *MarketsDataRequest) (*MarketsDataResponse, error) - // Get a Market by ID - MarketByID(context.Context, *MarketByIDRequest) (*MarketByIDResponse, error) - // Get Market Depth - MarketDepth(context.Context, *MarketDepthRequest) (*MarketDepthResponse, error) - // Get a list of Markets - Markets(context.Context, *MarketsRequest) (*MarketsResponse, error) - // Get an Order by Market and Order ID - OrderByMarketAndID(context.Context, *OrderByMarketAndIDRequest) (*OrderByMarketAndIDResponse, error) - // Get an Order by Pending Order reference (UUID) - OrderByReference(context.Context, *OrderByReferenceRequest) (*OrderByReferenceResponse, error) - // Get a list of Orders by Market - OrdersByMarket(context.Context, *OrdersByMarketRequest) (*OrdersByMarketResponse, error) - // Get a list of Orders by Party - OrdersByParty(context.Context, *OrdersByPartyRequest) (*OrdersByPartyResponse, error) - // Get a specific order by order ID - OrderByID(context.Context, *OrderByIDRequest) (*OrderByIDResponse, error) - // Get all versions of the order by its orderID - OrderVersionsByID(context.Context, *OrderVersionsByIDRequest) (*OrderVersionsByIDResponse, error) - // Get Margin Levels by Party ID - MarginLevels(context.Context, *MarginLevelsRequest) (*MarginLevelsResponse, error) - // Get a list of Parties - Parties(context.Context, *PartiesRequest) (*PartiesResponse, error) - // Get a Party by ID - PartyByID(context.Context, *PartyByIDRequest) (*PartyByIDResponse, error) - // Get a list of Positions by Party - PositionsByParty(context.Context, *PositionsByPartyRequest) (*PositionsByPartyResponse, error) - // Get latest Trade - LastTrade(context.Context, *LastTradeRequest) (*LastTradeResponse, error) - // Get a list of Trades by Market - TradesByMarket(context.Context, *TradesByMarketRequest) (*TradesByMarketResponse, error) - // Get a list of Trades by Order - TradesByOrder(context.Context, *TradesByOrderRequest) (*TradesByOrderResponse, error) - // Get a list of Trades by Party - TradesByParty(context.Context, *TradesByPartyRequest) (*TradesByPartyResponse, error) - // Get governance data (proposals and votes) for all proposals - GetProposals(context.Context, *GetProposalsRequest) (*GetProposalsResponse, error) - // Get governance data (proposals and votes) for proposals by party authoring them - GetProposalsByParty(context.Context, *GetProposalsByPartyRequest) (*GetProposalsByPartyResponse, error) - // Get votes by party casting them - GetVotesByParty(context.Context, *GetVotesByPartyRequest) (*GetVotesByPartyResponse, error) - // Get governance data (proposals and votes) for proposals that aim creating new markets - GetNewMarketProposals(context.Context, *GetNewMarketProposalsRequest) (*GetNewMarketProposalsResponse, error) - // Get governance data (proposals and votes) for proposals that aim updating markets - GetUpdateMarketProposals(context.Context, *GetUpdateMarketProposalsRequest) (*GetUpdateMarketProposalsResponse, error) - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - GetNetworkParametersProposals(context.Context, *GetNetworkParametersProposalsRequest) (*GetNetworkParametersProposalsResponse, error) - // Get governance data (proposals and votes) for proposals aiming to create new assets - GetNewAssetProposals(context.Context, *GetNewAssetProposalsRequest) (*GetNewAssetProposalsResponse, error) - // Get governance data (proposals and votes) for a proposal located by ID - GetProposalByID(context.Context, *GetProposalByIDRequest) (*GetProposalByIDResponse, error) - // Get governance data (proposals and votes) for a proposal located by reference - GetProposalByReference(context.Context, *GetProposalByReferenceRequest) (*GetProposalByReferenceResponse, error) - // Subscribe to a stream of all governance updates - ObserveGovernance(*ObserveGovernanceRequest, TradingDataService_ObserveGovernanceServer) error - // Subscribe to a stream of proposal updates - ObservePartyProposals(*ObservePartyProposalsRequest, TradingDataService_ObservePartyProposalsServer) error - // Subscribe to a stream of votes cast by a specific party - ObservePartyVotes(*ObservePartyVotesRequest, TradingDataService_ObservePartyVotesServer) error - // Subscribe to a stream of proposal votes - ObserveProposalVotes(*ObserveProposalVotesRequest, TradingDataService_ObserveProposalVotesServer) error - // Subscribe to a stream of events from the core - ObserveEventBus(TradingDataService_ObserveEventBusServer) error - // Get Statistics on Vega - Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) - LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error) - // Get Time - GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error) - // Subscribe to a stream of Accounts - AccountsSubscribe(*AccountsSubscribeRequest, TradingDataService_AccountsSubscribeServer) error - // Subscribe to a stream of Candles - CandlesSubscribe(*CandlesSubscribeRequest, TradingDataService_CandlesSubscribeServer) error - // Subscribe to a stream of Margin Levels - MarginLevelsSubscribe(*MarginLevelsSubscribeRequest, TradingDataService_MarginLevelsSubscribeServer) error - // Subscribe to a stream of Market Depth - MarketDepthSubscribe(*MarketDepthSubscribeRequest, TradingDataService_MarketDepthSubscribeServer) error - // Subscribe to a stream of Market Depth Price Level Updates - MarketDepthUpdatesSubscribe(*MarketDepthUpdatesSubscribeRequest, TradingDataService_MarketDepthUpdatesSubscribeServer) error - // Subscribe to a stream of Markets Data - MarketsDataSubscribe(*MarketsDataSubscribeRequest, TradingDataService_MarketsDataSubscribeServer) error - // Subscribe to a stream of Orders - OrdersSubscribe(*OrdersSubscribeRequest, TradingDataService_OrdersSubscribeServer) error - // Subscribe to a stream of Positions - PositionsSubscribe(*PositionsSubscribeRequest, TradingDataService_PositionsSubscribeServer) error - // Subscribe to a stream of Trades - TradesSubscribe(*TradesSubscribeRequest, TradingDataService_TradesSubscribeServer) error - // Subscribe to a stream of Transfer Responses - TransferResponsesSubscribe(*TransferResponsesSubscribeRequest, TradingDataService_TransferResponsesSubscribeServer) error - // Get an aggregate of signatures from all the nodes of the network - GetNodeSignaturesAggregate(context.Context, *GetNodeSignaturesAggregateRequest) (*GetNodeSignaturesAggregateResponse, error) - // Get an asset by its identifier - AssetByID(context.Context, *AssetByIDRequest) (*AssetByIDResponse, error) - // Get a list of all assets on Vega - Assets(context.Context, *AssetsRequest) (*AssetsResponse, error) - // Get an estimate for the fee to be paid for a given order - EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error) - // Get an estimate for the margin required for a new order - EstimateMargin(context.Context, *EstimateMarginRequest) (*EstimateMarginResponse, error) - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - ERC20WithdrawalApproval(context.Context, *ERC20WithdrawalApprovalRequest) (*ERC20WithdrawalApprovalResponse, error) - // Get a withdrawal by its identifier - Withdrawal(context.Context, *WithdrawalRequest) (*WithdrawalResponse, error) - // Get withdrawals for a party - Withdrawals(context.Context, *WithdrawalsRequest) (*WithdrawalsResponse, error) - // Get a deposit by its identifier - Deposit(context.Context, *DepositRequest) (*DepositResponse, error) - // Get deposits for a party - Deposits(context.Context, *DepositsRequest) (*DepositsResponse, error) - // Get the network parameters - NetworkParameters(context.Context, *NetworkParametersRequest) (*NetworkParametersResponse, error) - // Get the liquidity provision orders - LiquidityProvisions(context.Context, *LiquidityProvisionsRequest) (*LiquidityProvisionsResponse, error) - // Get an oracle spec by ID - OracleSpec(context.Context, *OracleSpecRequest) (*OracleSpecResponse, error) - // Get the oracle specs - OracleSpecs(context.Context, *OracleSpecsRequest) (*OracleSpecsResponse, error) - // Get all oracle data - OracleDataBySpec(context.Context, *OracleDataBySpecRequest) (*OracleDataBySpecResponse, error) - mustEmbedUnimplementedTradingDataServiceServer() -} - -// UnimplementedTradingDataServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTradingDataServiceServer struct { -} - -func (UnimplementedTradingDataServiceServer) MarketAccounts(context.Context, *MarketAccountsRequest) (*MarketAccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarketAccounts not implemented") -} -func (UnimplementedTradingDataServiceServer) PartyAccounts(context.Context, *PartyAccountsRequest) (*PartyAccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PartyAccounts not implemented") -} -func (UnimplementedTradingDataServiceServer) FeeInfrastructureAccounts(context.Context, *FeeInfrastructureAccountsRequest) (*FeeInfrastructureAccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FeeInfrastructureAccounts not implemented") -} -func (UnimplementedTradingDataServiceServer) Candles(context.Context, *CandlesRequest) (*CandlesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Candles not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketDataByID(context.Context, *MarketDataByIDRequest) (*MarketDataByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarketDataByID not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketsData(context.Context, *MarketsDataRequest) (*MarketsDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarketsData not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketByID(context.Context, *MarketByIDRequest) (*MarketByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarketByID not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketDepth(context.Context, *MarketDepthRequest) (*MarketDepthResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarketDepth not implemented") -} -func (UnimplementedTradingDataServiceServer) Markets(context.Context, *MarketsRequest) (*MarketsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Markets not implemented") -} -func (UnimplementedTradingDataServiceServer) OrderByMarketAndID(context.Context, *OrderByMarketAndIDRequest) (*OrderByMarketAndIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrderByMarketAndID not implemented") -} -func (UnimplementedTradingDataServiceServer) OrderByReference(context.Context, *OrderByReferenceRequest) (*OrderByReferenceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrderByReference not implemented") -} -func (UnimplementedTradingDataServiceServer) OrdersByMarket(context.Context, *OrdersByMarketRequest) (*OrdersByMarketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrdersByMarket not implemented") -} -func (UnimplementedTradingDataServiceServer) OrdersByParty(context.Context, *OrdersByPartyRequest) (*OrdersByPartyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrdersByParty not implemented") -} -func (UnimplementedTradingDataServiceServer) OrderByID(context.Context, *OrderByIDRequest) (*OrderByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrderByID not implemented") -} -func (UnimplementedTradingDataServiceServer) OrderVersionsByID(context.Context, *OrderVersionsByIDRequest) (*OrderVersionsByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrderVersionsByID not implemented") -} -func (UnimplementedTradingDataServiceServer) MarginLevels(context.Context, *MarginLevelsRequest) (*MarginLevelsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MarginLevels not implemented") -} -func (UnimplementedTradingDataServiceServer) Parties(context.Context, *PartiesRequest) (*PartiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Parties not implemented") -} -func (UnimplementedTradingDataServiceServer) PartyByID(context.Context, *PartyByIDRequest) (*PartyByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PartyByID not implemented") -} -func (UnimplementedTradingDataServiceServer) PositionsByParty(context.Context, *PositionsByPartyRequest) (*PositionsByPartyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PositionsByParty not implemented") -} -func (UnimplementedTradingDataServiceServer) LastTrade(context.Context, *LastTradeRequest) (*LastTradeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LastTrade not implemented") -} -func (UnimplementedTradingDataServiceServer) TradesByMarket(context.Context, *TradesByMarketRequest) (*TradesByMarketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TradesByMarket not implemented") -} -func (UnimplementedTradingDataServiceServer) TradesByOrder(context.Context, *TradesByOrderRequest) (*TradesByOrderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TradesByOrder not implemented") -} -func (UnimplementedTradingDataServiceServer) TradesByParty(context.Context, *TradesByPartyRequest) (*TradesByPartyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TradesByParty not implemented") -} -func (UnimplementedTradingDataServiceServer) GetProposals(context.Context, *GetProposalsRequest) (*GetProposalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) GetProposalsByParty(context.Context, *GetProposalsByPartyRequest) (*GetProposalsByPartyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProposalsByParty not implemented") -} -func (UnimplementedTradingDataServiceServer) GetVotesByParty(context.Context, *GetVotesByPartyRequest) (*GetVotesByPartyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVotesByParty not implemented") -} -func (UnimplementedTradingDataServiceServer) GetNewMarketProposals(context.Context, *GetNewMarketProposalsRequest) (*GetNewMarketProposalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNewMarketProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) GetUpdateMarketProposals(context.Context, *GetUpdateMarketProposalsRequest) (*GetUpdateMarketProposalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUpdateMarketProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) GetNetworkParametersProposals(context.Context, *GetNetworkParametersProposalsRequest) (*GetNetworkParametersProposalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNetworkParametersProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) GetNewAssetProposals(context.Context, *GetNewAssetProposalsRequest) (*GetNewAssetProposalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNewAssetProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) GetProposalByID(context.Context, *GetProposalByIDRequest) (*GetProposalByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProposalByID not implemented") -} -func (UnimplementedTradingDataServiceServer) GetProposalByReference(context.Context, *GetProposalByReferenceRequest) (*GetProposalByReferenceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProposalByReference not implemented") -} -func (UnimplementedTradingDataServiceServer) ObserveGovernance(*ObserveGovernanceRequest, TradingDataService_ObserveGovernanceServer) error { - return status.Errorf(codes.Unimplemented, "method ObserveGovernance not implemented") -} -func (UnimplementedTradingDataServiceServer) ObservePartyProposals(*ObservePartyProposalsRequest, TradingDataService_ObservePartyProposalsServer) error { - return status.Errorf(codes.Unimplemented, "method ObservePartyProposals not implemented") -} -func (UnimplementedTradingDataServiceServer) ObservePartyVotes(*ObservePartyVotesRequest, TradingDataService_ObservePartyVotesServer) error { - return status.Errorf(codes.Unimplemented, "method ObservePartyVotes not implemented") -} -func (UnimplementedTradingDataServiceServer) ObserveProposalVotes(*ObserveProposalVotesRequest, TradingDataService_ObserveProposalVotesServer) error { - return status.Errorf(codes.Unimplemented, "method ObserveProposalVotes not implemented") -} -func (UnimplementedTradingDataServiceServer) ObserveEventBus(TradingDataService_ObserveEventBusServer) error { - return status.Errorf(codes.Unimplemented, "method ObserveEventBus not implemented") -} -func (UnimplementedTradingDataServiceServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented") -} -func (UnimplementedTradingDataServiceServer) LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LastBlockHeight not implemented") -} -func (UnimplementedTradingDataServiceServer) GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVegaTime not implemented") -} -func (UnimplementedTradingDataServiceServer) AccountsSubscribe(*AccountsSubscribeRequest, TradingDataService_AccountsSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method AccountsSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) CandlesSubscribe(*CandlesSubscribeRequest, TradingDataService_CandlesSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method CandlesSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) MarginLevelsSubscribe(*MarginLevelsSubscribeRequest, TradingDataService_MarginLevelsSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method MarginLevelsSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketDepthSubscribe(*MarketDepthSubscribeRequest, TradingDataService_MarketDepthSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method MarketDepthSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketDepthUpdatesSubscribe(*MarketDepthUpdatesSubscribeRequest, TradingDataService_MarketDepthUpdatesSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method MarketDepthUpdatesSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) MarketsDataSubscribe(*MarketsDataSubscribeRequest, TradingDataService_MarketsDataSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method MarketsDataSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) OrdersSubscribe(*OrdersSubscribeRequest, TradingDataService_OrdersSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method OrdersSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) PositionsSubscribe(*PositionsSubscribeRequest, TradingDataService_PositionsSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method PositionsSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) TradesSubscribe(*TradesSubscribeRequest, TradingDataService_TradesSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method TradesSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) TransferResponsesSubscribe(*TransferResponsesSubscribeRequest, TradingDataService_TransferResponsesSubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method TransferResponsesSubscribe not implemented") -} -func (UnimplementedTradingDataServiceServer) GetNodeSignaturesAggregate(context.Context, *GetNodeSignaturesAggregateRequest) (*GetNodeSignaturesAggregateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodeSignaturesAggregate not implemented") -} -func (UnimplementedTradingDataServiceServer) AssetByID(context.Context, *AssetByIDRequest) (*AssetByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AssetByID not implemented") -} -func (UnimplementedTradingDataServiceServer) Assets(context.Context, *AssetsRequest) (*AssetsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Assets not implemented") -} -func (UnimplementedTradingDataServiceServer) EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EstimateFee not implemented") -} -func (UnimplementedTradingDataServiceServer) EstimateMargin(context.Context, *EstimateMarginRequest) (*EstimateMarginResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EstimateMargin not implemented") -} -func (UnimplementedTradingDataServiceServer) ERC20WithdrawalApproval(context.Context, *ERC20WithdrawalApprovalRequest) (*ERC20WithdrawalApprovalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ERC20WithdrawalApproval not implemented") -} -func (UnimplementedTradingDataServiceServer) Withdrawal(context.Context, *WithdrawalRequest) (*WithdrawalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Withdrawal not implemented") -} -func (UnimplementedTradingDataServiceServer) Withdrawals(context.Context, *WithdrawalsRequest) (*WithdrawalsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Withdrawals not implemented") -} -func (UnimplementedTradingDataServiceServer) Deposit(context.Context, *DepositRequest) (*DepositResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") -} -func (UnimplementedTradingDataServiceServer) Deposits(context.Context, *DepositsRequest) (*DepositsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Deposits not implemented") -} -func (UnimplementedTradingDataServiceServer) NetworkParameters(context.Context, *NetworkParametersRequest) (*NetworkParametersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NetworkParameters not implemented") -} -func (UnimplementedTradingDataServiceServer) LiquidityProvisions(context.Context, *LiquidityProvisionsRequest) (*LiquidityProvisionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LiquidityProvisions not implemented") -} -func (UnimplementedTradingDataServiceServer) OracleSpec(context.Context, *OracleSpecRequest) (*OracleSpecResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OracleSpec not implemented") -} -func (UnimplementedTradingDataServiceServer) OracleSpecs(context.Context, *OracleSpecsRequest) (*OracleSpecsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OracleSpecs not implemented") -} -func (UnimplementedTradingDataServiceServer) OracleDataBySpec(context.Context, *OracleDataBySpecRequest) (*OracleDataBySpecResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OracleDataBySpec not implemented") -} -func (UnimplementedTradingDataServiceServer) mustEmbedUnimplementedTradingDataServiceServer() {} - -// UnsafeTradingDataServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to TradingDataServiceServer will -// result in compilation errors. -type UnsafeTradingDataServiceServer interface { - mustEmbedUnimplementedTradingDataServiceServer() -} - -func RegisterTradingDataServiceServer(s grpc.ServiceRegistrar, srv TradingDataServiceServer) { - s.RegisterService(&TradingDataService_ServiceDesc, srv) -} - -func _TradingDataService_MarketAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarketAccounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarketAccounts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarketAccounts(ctx, req.(*MarketAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_PartyAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartyAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).PartyAccounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/PartyAccounts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).PartyAccounts(ctx, req.(*PartyAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_FeeInfrastructureAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FeeInfrastructureAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).FeeInfrastructureAccounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/FeeInfrastructureAccounts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).FeeInfrastructureAccounts(ctx, req.(*FeeInfrastructureAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Candles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CandlesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Candles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Candles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Candles(ctx, req.(*CandlesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_MarketDataByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketDataByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarketDataByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarketDataByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarketDataByID(ctx, req.(*MarketDataByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_MarketsData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketsDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarketsData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarketsData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarketsData(ctx, req.(*MarketsDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_MarketByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarketByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarketByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarketByID(ctx, req.(*MarketByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_MarketDepth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketDepthRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarketDepth(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarketDepth", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarketDepth(ctx, req.(*MarketDepthRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Markets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarketsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Markets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Markets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Markets(ctx, req.(*MarketsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrderByMarketAndID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrderByMarketAndIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrderByMarketAndID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrderByMarketAndID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrderByMarketAndID(ctx, req.(*OrderByMarketAndIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrderByReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrderByReferenceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrderByReference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrderByReference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrderByReference(ctx, req.(*OrderByReferenceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrdersByMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrdersByMarketRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrdersByMarket(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrdersByMarket", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrdersByMarket(ctx, req.(*OrdersByMarketRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrdersByParty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrdersByPartyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrdersByParty(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrdersByParty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrdersByParty(ctx, req.(*OrdersByPartyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrderByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrderByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrderByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrderByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrderByID(ctx, req.(*OrderByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OrderVersionsByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrderVersionsByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OrderVersionsByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OrderVersionsByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OrderVersionsByID(ctx, req.(*OrderVersionsByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_MarginLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MarginLevelsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).MarginLevels(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/MarginLevels", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).MarginLevels(ctx, req.(*MarginLevelsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Parties_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartiesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Parties(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Parties", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Parties(ctx, req.(*PartiesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_PartyByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PartyByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).PartyByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/PartyByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).PartyByID(ctx, req.(*PartyByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_PositionsByParty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PositionsByPartyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).PositionsByParty(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/PositionsByParty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).PositionsByParty(ctx, req.(*PositionsByPartyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_LastTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LastTradeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).LastTrade(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/LastTrade", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).LastTrade(ctx, req.(*LastTradeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_TradesByMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TradesByMarketRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).TradesByMarket(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/TradesByMarket", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).TradesByMarket(ctx, req.(*TradesByMarketRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_TradesByOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TradesByOrderRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).TradesByOrder(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/TradesByOrder", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).TradesByOrder(ctx, req.(*TradesByOrderRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_TradesByParty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TradesByPartyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).TradesByParty(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/TradesByParty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).TradesByParty(ctx, req.(*TradesByPartyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProposalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetProposals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetProposals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetProposals(ctx, req.(*GetProposalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetProposalsByParty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProposalsByPartyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetProposalsByParty(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetProposalsByParty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetProposalsByParty(ctx, req.(*GetProposalsByPartyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetVotesByParty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetVotesByPartyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetVotesByParty(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetVotesByParty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetVotesByParty(ctx, req.(*GetVotesByPartyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetNewMarketProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNewMarketProposalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetNewMarketProposals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetNewMarketProposals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetNewMarketProposals(ctx, req.(*GetNewMarketProposalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetUpdateMarketProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUpdateMarketProposalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetUpdateMarketProposals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetUpdateMarketProposals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetUpdateMarketProposals(ctx, req.(*GetUpdateMarketProposalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetNetworkParametersProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNetworkParametersProposalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetNetworkParametersProposals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetNetworkParametersProposals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetNetworkParametersProposals(ctx, req.(*GetNetworkParametersProposalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetNewAssetProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNewAssetProposalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetNewAssetProposals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetNewAssetProposals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetNewAssetProposals(ctx, req.(*GetNewAssetProposalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetProposalByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProposalByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetProposalByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetProposalByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetProposalByID(ctx, req.(*GetProposalByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetProposalByReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProposalByReferenceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetProposalByReference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetProposalByReference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetProposalByReference(ctx, req.(*GetProposalByReferenceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_ObserveGovernance_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ObserveGovernanceRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).ObserveGovernance(m, &tradingDataServiceObserveGovernanceServer{stream}) -} - -type TradingDataService_ObserveGovernanceServer interface { - Send(*ObserveGovernanceResponse) error - grpc.ServerStream -} - -type tradingDataServiceObserveGovernanceServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceObserveGovernanceServer) Send(m *ObserveGovernanceResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_ObservePartyProposals_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ObservePartyProposalsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).ObservePartyProposals(m, &tradingDataServiceObservePartyProposalsServer{stream}) -} - -type TradingDataService_ObservePartyProposalsServer interface { - Send(*ObservePartyProposalsResponse) error - grpc.ServerStream -} - -type tradingDataServiceObservePartyProposalsServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceObservePartyProposalsServer) Send(m *ObservePartyProposalsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_ObservePartyVotes_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ObservePartyVotesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).ObservePartyVotes(m, &tradingDataServiceObservePartyVotesServer{stream}) -} - -type TradingDataService_ObservePartyVotesServer interface { - Send(*ObservePartyVotesResponse) error - grpc.ServerStream -} - -type tradingDataServiceObservePartyVotesServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceObservePartyVotesServer) Send(m *ObservePartyVotesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_ObserveProposalVotes_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ObserveProposalVotesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).ObserveProposalVotes(m, &tradingDataServiceObserveProposalVotesServer{stream}) -} - -type TradingDataService_ObserveProposalVotesServer interface { - Send(*ObserveProposalVotesResponse) error - grpc.ServerStream -} - -type tradingDataServiceObserveProposalVotesServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceObserveProposalVotesServer) Send(m *ObserveProposalVotesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_ObserveEventBus_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(TradingDataServiceServer).ObserveEventBus(&tradingDataServiceObserveEventBusServer{stream}) -} - -type TradingDataService_ObserveEventBusServer interface { - Send(*ObserveEventBusResponse) error - Recv() (*ObserveEventBusRequest, error) - grpc.ServerStream -} - -type tradingDataServiceObserveEventBusServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceObserveEventBusServer) Send(m *ObserveEventBusResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *tradingDataServiceObserveEventBusServer) Recv() (*ObserveEventBusRequest, error) { - m := new(ObserveEventBusRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _TradingDataService_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatisticsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Statistics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Statistics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Statistics(ctx, req.(*StatisticsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_LastBlockHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LastBlockHeightRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).LastBlockHeight(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/LastBlockHeight", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).LastBlockHeight(ctx, req.(*LastBlockHeightRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_GetVegaTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetVegaTimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetVegaTime(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetVegaTime", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetVegaTime(ctx, req.(*GetVegaTimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_AccountsSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AccountsSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).AccountsSubscribe(m, &tradingDataServiceAccountsSubscribeServer{stream}) -} - -type TradingDataService_AccountsSubscribeServer interface { - Send(*AccountsSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceAccountsSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceAccountsSubscribeServer) Send(m *AccountsSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_CandlesSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CandlesSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).CandlesSubscribe(m, &tradingDataServiceCandlesSubscribeServer{stream}) -} - -type TradingDataService_CandlesSubscribeServer interface { - Send(*CandlesSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceCandlesSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceCandlesSubscribeServer) Send(m *CandlesSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_MarginLevelsSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MarginLevelsSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).MarginLevelsSubscribe(m, &tradingDataServiceMarginLevelsSubscribeServer{stream}) -} - -type TradingDataService_MarginLevelsSubscribeServer interface { - Send(*MarginLevelsSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceMarginLevelsSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceMarginLevelsSubscribeServer) Send(m *MarginLevelsSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_MarketDepthSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MarketDepthSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).MarketDepthSubscribe(m, &tradingDataServiceMarketDepthSubscribeServer{stream}) -} - -type TradingDataService_MarketDepthSubscribeServer interface { - Send(*MarketDepthSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceMarketDepthSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceMarketDepthSubscribeServer) Send(m *MarketDepthSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_MarketDepthUpdatesSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MarketDepthUpdatesSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).MarketDepthUpdatesSubscribe(m, &tradingDataServiceMarketDepthUpdatesSubscribeServer{stream}) -} - -type TradingDataService_MarketDepthUpdatesSubscribeServer interface { - Send(*MarketDepthUpdatesSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceMarketDepthUpdatesSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceMarketDepthUpdatesSubscribeServer) Send(m *MarketDepthUpdatesSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_MarketsDataSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MarketsDataSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).MarketsDataSubscribe(m, &tradingDataServiceMarketsDataSubscribeServer{stream}) -} - -type TradingDataService_MarketsDataSubscribeServer interface { - Send(*MarketsDataSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceMarketsDataSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceMarketsDataSubscribeServer) Send(m *MarketsDataSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_OrdersSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(OrdersSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).OrdersSubscribe(m, &tradingDataServiceOrdersSubscribeServer{stream}) -} - -type TradingDataService_OrdersSubscribeServer interface { - Send(*OrdersSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceOrdersSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceOrdersSubscribeServer) Send(m *OrdersSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_PositionsSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PositionsSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).PositionsSubscribe(m, &tradingDataServicePositionsSubscribeServer{stream}) -} - -type TradingDataService_PositionsSubscribeServer interface { - Send(*PositionsSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServicePositionsSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServicePositionsSubscribeServer) Send(m *PositionsSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_TradesSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TradesSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).TradesSubscribe(m, &tradingDataServiceTradesSubscribeServer{stream}) -} - -type TradingDataService_TradesSubscribeServer interface { - Send(*TradesSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceTradesSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceTradesSubscribeServer) Send(m *TradesSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_TransferResponsesSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TransferResponsesSubscribeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TradingDataServiceServer).TransferResponsesSubscribe(m, &tradingDataServiceTransferResponsesSubscribeServer{stream}) -} - -type TradingDataService_TransferResponsesSubscribeServer interface { - Send(*TransferResponsesSubscribeResponse) error - grpc.ServerStream -} - -type tradingDataServiceTransferResponsesSubscribeServer struct { - grpc.ServerStream -} - -func (x *tradingDataServiceTransferResponsesSubscribeServer) Send(m *TransferResponsesSubscribeResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TradingDataService_GetNodeSignaturesAggregate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNodeSignaturesAggregateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).GetNodeSignaturesAggregate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/GetNodeSignaturesAggregate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).GetNodeSignaturesAggregate(ctx, req.(*GetNodeSignaturesAggregateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_AssetByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AssetByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).AssetByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/AssetByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).AssetByID(ctx, req.(*AssetByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Assets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AssetsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Assets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Assets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Assets(ctx, req.(*AssetsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_EstimateFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EstimateFeeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).EstimateFee(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/EstimateFee", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).EstimateFee(ctx, req.(*EstimateFeeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_EstimateMargin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EstimateMarginRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).EstimateMargin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/EstimateMargin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).EstimateMargin(ctx, req.(*EstimateMarginRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_ERC20WithdrawalApproval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ERC20WithdrawalApprovalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).ERC20WithdrawalApproval(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/ERC20WithdrawalApproval", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).ERC20WithdrawalApproval(ctx, req.(*ERC20WithdrawalApprovalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Withdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WithdrawalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Withdrawal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Withdrawal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Withdrawal(ctx, req.(*WithdrawalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Withdrawals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WithdrawalsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Withdrawals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Withdrawals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Withdrawals(ctx, req.(*WithdrawalsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DepositRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Deposit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Deposit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Deposit(ctx, req.(*DepositRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_Deposits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DepositsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).Deposits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/Deposits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).Deposits(ctx, req.(*DepositsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_NetworkParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NetworkParametersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).NetworkParameters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/NetworkParameters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).NetworkParameters(ctx, req.(*NetworkParametersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_LiquidityProvisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LiquidityProvisionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).LiquidityProvisions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/LiquidityProvisions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).LiquidityProvisions(ctx, req.(*LiquidityProvisionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OracleSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OracleSpecRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OracleSpec(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OracleSpec", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OracleSpec(ctx, req.(*OracleSpecRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OracleSpecs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OracleSpecsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OracleSpecs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OracleSpecs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OracleSpecs(ctx, req.(*OracleSpecsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TradingDataService_OracleDataBySpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OracleDataBySpecRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TradingDataServiceServer).OracleDataBySpec(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.v1.TradingDataService/OracleDataBySpec", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TradingDataServiceServer).OracleDataBySpec(ctx, req.(*OracleDataBySpecRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// TradingDataService_ServiceDesc is the grpc.ServiceDesc for TradingDataService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var TradingDataService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "api.v1.TradingDataService", - HandlerType: (*TradingDataServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "MarketAccounts", - Handler: _TradingDataService_MarketAccounts_Handler, - }, - { - MethodName: "PartyAccounts", - Handler: _TradingDataService_PartyAccounts_Handler, - }, - { - MethodName: "FeeInfrastructureAccounts", - Handler: _TradingDataService_FeeInfrastructureAccounts_Handler, - }, - { - MethodName: "Candles", - Handler: _TradingDataService_Candles_Handler, - }, - { - MethodName: "MarketDataByID", - Handler: _TradingDataService_MarketDataByID_Handler, - }, - { - MethodName: "MarketsData", - Handler: _TradingDataService_MarketsData_Handler, - }, - { - MethodName: "MarketByID", - Handler: _TradingDataService_MarketByID_Handler, - }, - { - MethodName: "MarketDepth", - Handler: _TradingDataService_MarketDepth_Handler, - }, - { - MethodName: "Markets", - Handler: _TradingDataService_Markets_Handler, - }, - { - MethodName: "OrderByMarketAndID", - Handler: _TradingDataService_OrderByMarketAndID_Handler, - }, - { - MethodName: "OrderByReference", - Handler: _TradingDataService_OrderByReference_Handler, - }, - { - MethodName: "OrdersByMarket", - Handler: _TradingDataService_OrdersByMarket_Handler, - }, - { - MethodName: "OrdersByParty", - Handler: _TradingDataService_OrdersByParty_Handler, - }, - { - MethodName: "OrderByID", - Handler: _TradingDataService_OrderByID_Handler, - }, - { - MethodName: "OrderVersionsByID", - Handler: _TradingDataService_OrderVersionsByID_Handler, - }, - { - MethodName: "MarginLevels", - Handler: _TradingDataService_MarginLevels_Handler, - }, - { - MethodName: "Parties", - Handler: _TradingDataService_Parties_Handler, - }, - { - MethodName: "PartyByID", - Handler: _TradingDataService_PartyByID_Handler, - }, - { - MethodName: "PositionsByParty", - Handler: _TradingDataService_PositionsByParty_Handler, - }, - { - MethodName: "LastTrade", - Handler: _TradingDataService_LastTrade_Handler, - }, - { - MethodName: "TradesByMarket", - Handler: _TradingDataService_TradesByMarket_Handler, - }, - { - MethodName: "TradesByOrder", - Handler: _TradingDataService_TradesByOrder_Handler, - }, - { - MethodName: "TradesByParty", - Handler: _TradingDataService_TradesByParty_Handler, - }, - { - MethodName: "GetProposals", - Handler: _TradingDataService_GetProposals_Handler, - }, - { - MethodName: "GetProposalsByParty", - Handler: _TradingDataService_GetProposalsByParty_Handler, - }, - { - MethodName: "GetVotesByParty", - Handler: _TradingDataService_GetVotesByParty_Handler, - }, - { - MethodName: "GetNewMarketProposals", - Handler: _TradingDataService_GetNewMarketProposals_Handler, - }, - { - MethodName: "GetUpdateMarketProposals", - Handler: _TradingDataService_GetUpdateMarketProposals_Handler, - }, - { - MethodName: "GetNetworkParametersProposals", - Handler: _TradingDataService_GetNetworkParametersProposals_Handler, - }, - { - MethodName: "GetNewAssetProposals", - Handler: _TradingDataService_GetNewAssetProposals_Handler, - }, - { - MethodName: "GetProposalByID", - Handler: _TradingDataService_GetProposalByID_Handler, - }, - { - MethodName: "GetProposalByReference", - Handler: _TradingDataService_GetProposalByReference_Handler, - }, - { - MethodName: "Statistics", - Handler: _TradingDataService_Statistics_Handler, - }, - { - MethodName: "LastBlockHeight", - Handler: _TradingDataService_LastBlockHeight_Handler, - }, - { - MethodName: "GetVegaTime", - Handler: _TradingDataService_GetVegaTime_Handler, - }, - { - MethodName: "GetNodeSignaturesAggregate", - Handler: _TradingDataService_GetNodeSignaturesAggregate_Handler, - }, - { - MethodName: "AssetByID", - Handler: _TradingDataService_AssetByID_Handler, - }, - { - MethodName: "Assets", - Handler: _TradingDataService_Assets_Handler, - }, - { - MethodName: "EstimateFee", - Handler: _TradingDataService_EstimateFee_Handler, - }, - { - MethodName: "EstimateMargin", - Handler: _TradingDataService_EstimateMargin_Handler, - }, - { - MethodName: "ERC20WithdrawalApproval", - Handler: _TradingDataService_ERC20WithdrawalApproval_Handler, - }, - { - MethodName: "Withdrawal", - Handler: _TradingDataService_Withdrawal_Handler, - }, - { - MethodName: "Withdrawals", - Handler: _TradingDataService_Withdrawals_Handler, - }, - { - MethodName: "Deposit", - Handler: _TradingDataService_Deposit_Handler, - }, - { - MethodName: "Deposits", - Handler: _TradingDataService_Deposits_Handler, - }, - { - MethodName: "NetworkParameters", - Handler: _TradingDataService_NetworkParameters_Handler, - }, - { - MethodName: "LiquidityProvisions", - Handler: _TradingDataService_LiquidityProvisions_Handler, - }, - { - MethodName: "OracleSpec", - Handler: _TradingDataService_OracleSpec_Handler, - }, - { - MethodName: "OracleSpecs", - Handler: _TradingDataService_OracleSpecs_Handler, - }, - { - MethodName: "OracleDataBySpec", - Handler: _TradingDataService_OracleDataBySpec_Handler, + MethodName: "GetVegaTime", + Handler: _TradingService_GetVegaTime_Handler, }, }, Streams: []grpc.StreamDesc{ - { - StreamName: "ObserveGovernance", - Handler: _TradingDataService_ObserveGovernance_Handler, - ServerStreams: true, - }, - { - StreamName: "ObservePartyProposals", - Handler: _TradingDataService_ObservePartyProposals_Handler, - ServerStreams: true, - }, - { - StreamName: "ObservePartyVotes", - Handler: _TradingDataService_ObservePartyVotes_Handler, - ServerStreams: true, - }, - { - StreamName: "ObserveProposalVotes", - Handler: _TradingDataService_ObserveProposalVotes_Handler, - ServerStreams: true, - }, { StreamName: "ObserveEventBus", - Handler: _TradingDataService_ObserveEventBus_Handler, + Handler: _TradingService_ObserveEventBus_Handler, ServerStreams: true, ClientStreams: true, }, - { - StreamName: "AccountsSubscribe", - Handler: _TradingDataService_AccountsSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "CandlesSubscribe", - Handler: _TradingDataService_CandlesSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "MarginLevelsSubscribe", - Handler: _TradingDataService_MarginLevelsSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "MarketDepthSubscribe", - Handler: _TradingDataService_MarketDepthSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "MarketDepthUpdatesSubscribe", - Handler: _TradingDataService_MarketDepthUpdatesSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "MarketsDataSubscribe", - Handler: _TradingDataService_MarketsDataSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "OrdersSubscribe", - Handler: _TradingDataService_OrdersSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "PositionsSubscribe", - Handler: _TradingDataService_PositionsSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "TradesSubscribe", - Handler: _TradingDataService_TradesSubscribe_Handler, - ServerStreams: true, - }, - { - StreamName: "TransferResponsesSubscribe", - Handler: _TradingDataService_TransferResponsesSubscribe_Handler, - ServerStreams: true, - }, }, Metadata: "api/trading.proto", } diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go index bbbaa209..3fda8210 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go @@ -1238,6 +1238,258 @@ func (*ValidatorEvent_Add) isValidatorEvent_Action() {} func (*ValidatorEvent_Rm) isValidatorEvent_Action() {} +type StakingEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Index of the transaction + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + // The block in which the transaction was added + Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` + // Types that are assignable to Action: + // *StakingEvent_StakeDeposited + // *StakingEvent_StakeRemoved + Action isStakingEvent_Action `protobuf_oneof:"action"` +} + +func (x *StakingEvent) Reset() { + *x = StakingEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_chain_events_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StakingEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StakingEvent) ProtoMessage() {} + +func (x *StakingEvent) ProtoReflect() protoreflect.Message { + mi := &file_chain_events_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StakingEvent.ProtoReflect.Descriptor instead. +func (*StakingEvent) Descriptor() ([]byte, []int) { + return file_chain_events_proto_rawDescGZIP(), []int{17} +} + +func (x *StakingEvent) GetIndex() uint64 { + if x != nil { + return x.Index + } + return 0 +} + +func (x *StakingEvent) GetBlock() uint64 { + if x != nil { + return x.Block + } + return 0 +} + +func (m *StakingEvent) GetAction() isStakingEvent_Action { + if m != nil { + return m.Action + } + return nil +} + +func (x *StakingEvent) GetStakeDeposited() *StakeDeposited { + if x, ok := x.GetAction().(*StakingEvent_StakeDeposited); ok { + return x.StakeDeposited + } + return nil +} + +func (x *StakingEvent) GetStakeRemoved() *StakeRemoved { + if x, ok := x.GetAction().(*StakingEvent_StakeRemoved); ok { + return x.StakeRemoved + } + return nil +} + +type isStakingEvent_Action interface { + isStakingEvent_Action() +} + +type StakingEvent_StakeDeposited struct { + StakeDeposited *StakeDeposited `protobuf:"bytes,1001,opt,name=stake_deposited,json=stakeDeposited,proto3,oneof"` +} + +type StakingEvent_StakeRemoved struct { + StakeRemoved *StakeRemoved `protobuf:"bytes,1002,opt,name=stake_removed,json=stakeRemoved,proto3,oneof"` +} + +func (*StakingEvent_StakeDeposited) isStakingEvent_Action() {} + +func (*StakingEvent_StakeRemoved) isStakingEvent_Action() {} + +type StakeDeposited struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Ethereum Address of the user depositing stake (hex encode with 0x prefix) + EthereumAddress string `protobuf:"bytes,1,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"` + // The public of the party receiving the stake deposit (hex encode) + VegaPublicKey string `protobuf:"bytes,2,opt,name=vega_public_key,json=vegaPublicKey,proto3" json:"vega_public_key,omitempty"` + // The amount deposited (base 10) + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // The time at which the block was produced + // will be used to inform the core at what time + // the stake started to be available. + BlockTime int64 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` +} + +func (x *StakeDeposited) Reset() { + *x = StakeDeposited{} + if protoimpl.UnsafeEnabled { + mi := &file_chain_events_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StakeDeposited) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StakeDeposited) ProtoMessage() {} + +func (x *StakeDeposited) ProtoReflect() protoreflect.Message { + mi := &file_chain_events_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StakeDeposited.ProtoReflect.Descriptor instead. +func (*StakeDeposited) Descriptor() ([]byte, []int) { + return file_chain_events_proto_rawDescGZIP(), []int{18} +} + +func (x *StakeDeposited) GetEthereumAddress() string { + if x != nil { + return x.EthereumAddress + } + return "" +} + +func (x *StakeDeposited) GetVegaPublicKey() string { + if x != nil { + return x.VegaPublicKey + } + return "" +} + +func (x *StakeDeposited) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *StakeDeposited) GetBlockTime() int64 { + if x != nil { + return x.BlockTime + } + return 0 +} + +type StakeRemoved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Ethereum address of the user removing stake (hex encode with 0x prefix) + EthereumAddress string `protobuf:"bytes,1,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"` + // The public key of the party from which to remove stake (hex encode) + VegaPublicKey string `protobuf:"bytes,2,opt,name=vega_public_key,json=vegaPublicKey,proto3" json:"vega_public_key,omitempty"` + // The amount removed (base 10) + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // The time at which the block was produced + // will be used to inform the core at what time + // the stake was made unavailable. + BlockTime int64 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` +} + +func (x *StakeRemoved) Reset() { + *x = StakeRemoved{} + if protoimpl.UnsafeEnabled { + mi := &file_chain_events_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StakeRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StakeRemoved) ProtoMessage() {} + +func (x *StakeRemoved) ProtoReflect() protoreflect.Message { + mi := &file_chain_events_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StakeRemoved.ProtoReflect.Descriptor instead. +func (*StakeRemoved) Descriptor() ([]byte, []int) { + return file_chain_events_proto_rawDescGZIP(), []int{19} +} + +func (x *StakeRemoved) GetEthereumAddress() string { + if x != nil { + return x.EthereumAddress + } + return "" +} + +func (x *StakeRemoved) GetVegaPublicKey() string { + if x != nil { + return x.VegaPublicKey + } + return "" +} + +func (x *StakeRemoved) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *StakeRemoved) GetBlockTime() int64 { + if x != nil { + return x.BlockTime + } + return 0 +} + var File_chain_events_proto protoreflect.FileDescriptor var file_chain_events_proto_rawDesc = []byte{ @@ -1373,11 +1625,43 @@ var file_chain_events_proto_rawDesc = []byte{ 0x28, 0x0a, 0x02, 0x72, 0x6d, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x02, 0x72, 0x6d, 0x42, 0x08, 0x0a, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x5a, 0x1f, 0x63, 0x6f, 0x64, - 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, - 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x65, 0x64, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, + 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x64, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, + 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x42, 0x08, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x65, + 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x76, 0x65, 0x67, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x16, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, + 0x75, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x76, 0x65, 0x67, 0x61, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, + 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x5a, 0x1f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, + 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1392,7 +1676,7 @@ func file_chain_events_proto_rawDescGZIP() []byte { return file_chain_events_proto_rawDescData } -var file_chain_events_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_chain_events_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_chain_events_proto_goTypes = []interface{}{ (*BuiltinAssetDeposit)(nil), // 0: vega.BuiltinAssetDeposit (*BuiltinAssetWithdrawal)(nil), // 1: vega.BuiltinAssetWithdrawal @@ -1411,6 +1695,9 @@ var file_chain_events_proto_goTypes = []interface{}{ (*AddValidator)(nil), // 14: vega.AddValidator (*RemoveValidator)(nil), // 15: vega.RemoveValidator (*ValidatorEvent)(nil), // 16: vega.ValidatorEvent + (*StakingEvent)(nil), // 17: vega.StakingEvent + (*StakeDeposited)(nil), // 18: vega.StakeDeposited + (*StakeRemoved)(nil), // 19: vega.StakeRemoved } var file_chain_events_proto_depIdxs = []int32{ 0, // 0: vega.BuiltinAssetEvent.deposit:type_name -> vega.BuiltinAssetDeposit @@ -1427,11 +1714,13 @@ var file_chain_events_proto_depIdxs = []int32{ 13, // 11: vega.RemoveValidator.id:type_name -> vega.Identifier 14, // 12: vega.ValidatorEvent.add:type_name -> vega.AddValidator 15, // 13: vega.ValidatorEvent.rm:type_name -> vega.RemoveValidator - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 18, // 14: vega.StakingEvent.stake_deposited:type_name -> vega.StakeDeposited + 19, // 15: vega.StakingEvent.stake_removed:type_name -> vega.StakeRemoved + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_chain_events_proto_init() } @@ -1644,6 +1933,42 @@ func file_chain_events_proto_init() { return nil } } + file_chain_events_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakingEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_chain_events_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakeDeposited); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_chain_events_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakeRemoved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_chain_events_proto_msgTypes[2].OneofWrappers = []interface{}{ (*BuiltinAssetEvent_Deposit)(nil), @@ -1667,13 +1992,17 @@ func file_chain_events_proto_init() { (*ValidatorEvent_Add)(nil), (*ValidatorEvent_Rm)(nil), } + file_chain_events_proto_msgTypes[17].OneofWrappers = []interface{}{ + (*StakingEvent_StakeDeposited)(nil), + (*StakingEvent_StakeRemoved)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_chain_events_proto_rawDesc, NumEnums: 0, - NumMessages: 17, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.validator.pb.go index 84efe787..46d31d79 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.validator.pb.go @@ -161,3 +161,26 @@ func (this *ValidatorEvent) Validate() error { } return nil } +func (this *StakingEvent) Validate() error { + if oneOfNester, ok := this.GetAction().(*StakingEvent_StakeDeposited); ok { + if oneOfNester.StakeDeposited != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StakeDeposited); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StakeDeposited", err) + } + } + } + if oneOfNester, ok := this.GetAction().(*StakingEvent_StakeRemoved); ok { + if oneOfNester.StakeRemoved != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StakeRemoved); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StakeRemoved", err) + } + } + } + return nil +} +func (this *StakeDeposited) Validate() error { + return nil +} +func (this *StakeRemoved) Validate() error { + return nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go index df9fb040..a936160f 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go @@ -786,6 +786,54 @@ func (x *UndelegateSubmission) GetMethod() UndelegateSubmission_Method { return UndelegateSubmission_METHOD_UNSPECIFIED } +// A command that loads the state from a given checkpoint +type RestoreSnapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *RestoreSnapshot) Reset() { + *x = RestoreSnapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_commands_v1_commands_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreSnapshot) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreSnapshot) ProtoMessage() {} + +func (x *RestoreSnapshot) ProtoReflect() protoreflect.Message { + mi := &file_commands_v1_commands_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RestoreSnapshot.ProtoReflect.Descriptor instead. +func (*RestoreSnapshot) Descriptor() ([]byte, []int) { + return file_commands_v1_commands_proto_rawDescGZIP(), []int{9} +} + +func (x *RestoreSnapshot) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + var File_commands_v1_commands_proto protoreflect.FileDescriptor var file_commands_v1_commands_proto_rawDesc = []byte{ @@ -905,13 +953,15 @@ var file_commands_v1_commands_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4e, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x41, 0x54, 0x5f, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x46, 0x5f, 0x45, 0x50, 0x4f, 0x43, 0x48, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x41, 0x4e, 0x47, 0x45, 0x52, 0x10, 0x03, 0x42, - 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x41, 0x4e, 0x47, 0x45, 0x52, 0x10, 0x03, 0x22, + 0x25, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -927,7 +977,7 @@ func file_commands_v1_commands_proto_rawDescGZIP() []byte { } var file_commands_v1_commands_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_commands_v1_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_commands_v1_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_commands_v1_commands_proto_goTypes = []interface{}{ (UndelegateSubmission_Method)(0), // 0: vega.commands.v1.UndelegateSubmission.Method (*OrderSubmission)(nil), // 1: vega.commands.v1.OrderSubmission @@ -939,34 +989,35 @@ var file_commands_v1_commands_proto_goTypes = []interface{}{ (*VoteSubmission)(nil), // 7: vega.commands.v1.VoteSubmission (*DelegateSubmission)(nil), // 8: vega.commands.v1.DelegateSubmission (*UndelegateSubmission)(nil), // 9: vega.commands.v1.UndelegateSubmission - (proto1.Side)(0), // 10: vega.Side - (proto1.Order_TimeInForce)(0), // 11: vega.Order.TimeInForce - (proto1.Order_Type)(0), // 12: vega.Order.Type - (*proto1.PeggedOrder)(nil), // 13: vega.PeggedOrder - (*proto1.Price)(nil), // 14: vega.Price - (*proto1.Timestamp)(nil), // 15: vega.Timestamp - (*wrappers.Int64Value)(nil), // 16: google.protobuf.Int64Value - (proto1.PeggedReference)(0), // 17: vega.PeggedReference - (*proto1.LiquidityOrder)(nil), // 18: vega.LiquidityOrder - (*proto1.WithdrawExt)(nil), // 19: vega.WithdrawExt - (*proto1.ProposalTerms)(nil), // 20: vega.ProposalTerms - (proto1.Vote_Value)(0), // 21: vega.Vote.Value + (*RestoreSnapshot)(nil), // 10: vega.commands.v1.RestoreSnapshot + (proto1.Side)(0), // 11: vega.Side + (proto1.Order_TimeInForce)(0), // 12: vega.Order.TimeInForce + (proto1.Order_Type)(0), // 13: vega.Order.Type + (*proto1.PeggedOrder)(nil), // 14: vega.PeggedOrder + (*proto1.Price)(nil), // 15: vega.Price + (*proto1.Timestamp)(nil), // 16: vega.Timestamp + (*wrappers.Int64Value)(nil), // 17: google.protobuf.Int64Value + (proto1.PeggedReference)(0), // 18: vega.PeggedReference + (*proto1.LiquidityOrder)(nil), // 19: vega.LiquidityOrder + (*proto1.WithdrawExt)(nil), // 20: vega.WithdrawExt + (*proto1.ProposalTerms)(nil), // 21: vega.ProposalTerms + (proto1.Vote_Value)(0), // 22: vega.Vote.Value } var file_commands_v1_commands_proto_depIdxs = []int32{ - 10, // 0: vega.commands.v1.OrderSubmission.side:type_name -> vega.Side - 11, // 1: vega.commands.v1.OrderSubmission.time_in_force:type_name -> vega.Order.TimeInForce - 12, // 2: vega.commands.v1.OrderSubmission.type:type_name -> vega.Order.Type - 13, // 3: vega.commands.v1.OrderSubmission.pegged_order:type_name -> vega.PeggedOrder - 14, // 4: vega.commands.v1.OrderAmendment.price:type_name -> vega.Price - 15, // 5: vega.commands.v1.OrderAmendment.expires_at:type_name -> vega.Timestamp - 11, // 6: vega.commands.v1.OrderAmendment.time_in_force:type_name -> vega.Order.TimeInForce - 16, // 7: vega.commands.v1.OrderAmendment.pegged_offset:type_name -> google.protobuf.Int64Value - 17, // 8: vega.commands.v1.OrderAmendment.pegged_reference:type_name -> vega.PeggedReference - 18, // 9: vega.commands.v1.LiquidityProvisionSubmission.sells:type_name -> vega.LiquidityOrder - 18, // 10: vega.commands.v1.LiquidityProvisionSubmission.buys:type_name -> vega.LiquidityOrder - 19, // 11: vega.commands.v1.WithdrawSubmission.ext:type_name -> vega.WithdrawExt - 20, // 12: vega.commands.v1.ProposalSubmission.terms:type_name -> vega.ProposalTerms - 21, // 13: vega.commands.v1.VoteSubmission.value:type_name -> vega.Vote.Value + 11, // 0: vega.commands.v1.OrderSubmission.side:type_name -> vega.Side + 12, // 1: vega.commands.v1.OrderSubmission.time_in_force:type_name -> vega.Order.TimeInForce + 13, // 2: vega.commands.v1.OrderSubmission.type:type_name -> vega.Order.Type + 14, // 3: vega.commands.v1.OrderSubmission.pegged_order:type_name -> vega.PeggedOrder + 15, // 4: vega.commands.v1.OrderAmendment.price:type_name -> vega.Price + 16, // 5: vega.commands.v1.OrderAmendment.expires_at:type_name -> vega.Timestamp + 12, // 6: vega.commands.v1.OrderAmendment.time_in_force:type_name -> vega.Order.TimeInForce + 17, // 7: vega.commands.v1.OrderAmendment.pegged_offset:type_name -> google.protobuf.Int64Value + 18, // 8: vega.commands.v1.OrderAmendment.pegged_reference:type_name -> vega.PeggedReference + 19, // 9: vega.commands.v1.LiquidityProvisionSubmission.sells:type_name -> vega.LiquidityOrder + 19, // 10: vega.commands.v1.LiquidityProvisionSubmission.buys:type_name -> vega.LiquidityOrder + 20, // 11: vega.commands.v1.WithdrawSubmission.ext:type_name -> vega.WithdrawExt + 21, // 12: vega.commands.v1.ProposalSubmission.terms:type_name -> vega.ProposalTerms + 22, // 13: vega.commands.v1.VoteSubmission.value:type_name -> vega.Vote.Value 0, // 14: vega.commands.v1.UndelegateSubmission.method:type_name -> vega.commands.v1.UndelegateSubmission.Method 15, // [15:15] is the sub-list for method output_type 15, // [15:15] is the sub-list for method input_type @@ -1089,6 +1140,18 @@ func file_commands_v1_commands_proto_init() { return nil } } + file_commands_v1_commands_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreSnapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1096,7 +1159,7 @@ func file_commands_v1_commands_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_commands_v1_commands_proto_rawDesc, NumEnums: 1, - NumMessages: 9, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.validator.pb.go index d58dbe07..8d0a0db4 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.validator.pb.go @@ -114,3 +114,6 @@ func (this *UndelegateSubmission) Validate() error { } return nil } +func (this *RestoreSnapshot) Validate() error { + return nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.pb.go index c38bba6b..c6bab9c5 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.pb.go @@ -53,6 +53,7 @@ type InputData struct { // *InputData_NodeSignature // *InputData_ChainEvent // *InputData_OracleDataSubmission + // *InputData_RestoreSnapshotSubmission Command isInputData_Command `protobuf_oneof:"command"` } @@ -207,6 +208,13 @@ func (x *InputData) GetOracleDataSubmission() *OracleDataSubmission { return nil } +func (x *InputData) GetRestoreSnapshotSubmission() *RestoreSnapshot { + if x, ok := x.GetCommand().(*InputData_RestoreSnapshotSubmission); ok { + return x.RestoreSnapshotSubmission + } + return nil +} + type isInputData_Command interface { isInputData_Command() } @@ -270,6 +278,11 @@ type InputData_OracleDataSubmission struct { OracleDataSubmission *OracleDataSubmission `protobuf:"bytes,3001,opt,name=oracle_data_submission,json=oracleDataSubmission,proto3,oneof"` } +type InputData_RestoreSnapshotSubmission struct { + // Checkpoints + RestoreSnapshotSubmission *RestoreSnapshot `protobuf:"bytes,4001,opt,name=restore_snapshot_submission,json=restoreSnapshotSubmission,proto3,oneof"` +} + func (*InputData_OrderSubmission) isInputData_Command() {} func (*InputData_OrderCancellation) isInputData_Command() {} @@ -298,6 +311,8 @@ func (*InputData_ChainEvent) isInputData_Command() {} func (*InputData_OracleDataSubmission) isInputData_Command() {} +func (*InputData_RestoreSnapshotSubmission) isInputData_Command() {} + // Represents a transaction to be sent to Vega. type Transaction struct { state protoimpl.MessageState @@ -491,8 +506,8 @@ var file_commands_v1_transaction_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, - 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf8, - 0x09, 0x0a, 0x09, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, + 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, + 0x0a, 0x0a, 0x09, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, @@ -570,31 +585,37 @@ var file_commands_v1_transaction_proto_rawDesc = []byte{ 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x14, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, - 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0xc3, 0x01, 0x0a, 0x0b, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0xe9, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0xea, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xd0, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, - 0x4f, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x64, + 0x0a, 0x1b, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xa1, 0x1f, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, + 0xc3, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, + 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x12, 0x19, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xd0, 0x0f, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x4f, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -628,6 +649,7 @@ var file_commands_v1_transaction_proto_goTypes = []interface{}{ (*NodeSignature)(nil), // 14: vega.commands.v1.NodeSignature (*ChainEvent)(nil), // 15: vega.commands.v1.ChainEvent (*OracleDataSubmission)(nil), // 16: vega.commands.v1.OracleDataSubmission + (*RestoreSnapshot)(nil), // 17: vega.commands.v1.RestoreSnapshot } var file_commands_v1_transaction_proto_depIdxs = []int32{ 3, // 0: vega.commands.v1.InputData.order_submission:type_name -> vega.commands.v1.OrderSubmission @@ -644,12 +666,13 @@ var file_commands_v1_transaction_proto_depIdxs = []int32{ 14, // 11: vega.commands.v1.InputData.node_signature:type_name -> vega.commands.v1.NodeSignature 15, // 12: vega.commands.v1.InputData.chain_event:type_name -> vega.commands.v1.ChainEvent 16, // 13: vega.commands.v1.InputData.oracle_data_submission:type_name -> vega.commands.v1.OracleDataSubmission - 2, // 14: vega.commands.v1.Transaction.signature:type_name -> vega.commands.v1.Signature - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 17, // 14: vega.commands.v1.InputData.restore_snapshot_submission:type_name -> vega.commands.v1.RestoreSnapshot + 2, // 15: vega.commands.v1.Transaction.signature:type_name -> vega.commands.v1.Signature + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_commands_v1_transaction_proto_init() } @@ -713,6 +736,7 @@ func file_commands_v1_transaction_proto_init() { (*InputData_NodeSignature)(nil), (*InputData_ChainEvent)(nil), (*InputData_OracleDataSubmission)(nil), + (*InputData_RestoreSnapshotSubmission)(nil), } file_commands_v1_transaction_proto_msgTypes[1].OneofWrappers = []interface{}{ (*Transaction_Address)(nil), diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.validator.pb.go index af0e9197..274daac9 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/transaction.validator.pb.go @@ -115,6 +115,13 @@ func (this *InputData) Validate() error { } } } + if oneOfNester, ok := this.GetCommand().(*InputData_RestoreSnapshotSubmission); ok { + if oneOfNester.RestoreSnapshotSubmission != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.RestoreSnapshotSubmission); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("RestoreSnapshotSubmission", err) + } + } + } return nil } func (this *Transaction) Validate() error { diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.pb.go index eb156a58..94abf7ae 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.pb.go @@ -87,14 +87,16 @@ type NodeRegistration struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Public key, required field - PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + // Vega public key, required field + VegaPubKey string `protobuf:"bytes,1,opt,name=vega_pub_key,json=vegaPubKey,proto3" json:"vega_pub_key,omitempty"` + // Ethereum public key, required field + EthereumAddress string `protobuf:"bytes,2,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"` // Public key for the blockchain, required field - ChainPubKey []byte `protobuf:"bytes,2,opt,name=chain_pub_key,json=chainPubKey,proto3" json:"chain_pub_key,omitempty"` + ChainPubKey string `protobuf:"bytes,3,opt,name=chain_pub_key,json=chainPubKey,proto3" json:"chain_pub_key,omitempty"` // URL with more info on the node - InfoUrl string `protobuf:"bytes,3,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"` + InfoUrl string `protobuf:"bytes,4,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"` // Country code (ISO 3166-1 alpha-2) for the location of the node - Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` } func (x *NodeRegistration) Reset() { @@ -129,18 +131,25 @@ func (*NodeRegistration) Descriptor() ([]byte, []int) { return file_commands_v1_validator_commands_proto_rawDescGZIP(), []int{0} } -func (x *NodeRegistration) GetPubKey() []byte { +func (x *NodeRegistration) GetVegaPubKey() string { if x != nil { - return x.PubKey + return x.VegaPubKey } - return nil + return "" +} + +func (x *NodeRegistration) GetEthereumAddress() string { + if x != nil { + return x.EthereumAddress + } + return "" } -func (x *NodeRegistration) GetChainPubKey() []byte { +func (x *NodeRegistration) GetChainPubKey() string { if x != nil { return x.ChainPubKey } - return nil + return "" } func (x *NodeRegistration) GetInfoUrl() string { @@ -300,6 +309,7 @@ type ChainEvent struct { // *ChainEvent_Erc20 // *ChainEvent_Btc // *ChainEvent_Validator + // *ChainEvent_StakingEvent Event isChainEvent_Event `protobuf_oneof:"event"` } @@ -384,6 +394,13 @@ func (x *ChainEvent) GetValidator() *proto1.ValidatorEvent { return nil } +func (x *ChainEvent) GetStakingEvent() *proto1.StakingEvent { + if x, ok := x.GetEvent().(*ChainEvent_StakingEvent); ok { + return x.StakingEvent + } + return nil +} + type isChainEvent_Event interface { isChainEvent_Event() } @@ -408,6 +425,11 @@ type ChainEvent_Validator struct { Validator *proto1.ValidatorEvent `protobuf:"bytes,1004,opt,name=validator,proto3,oneof"` } +type ChainEvent_StakingEvent struct { + // Ethereum Staking event + StakingEvent *proto1.StakingEvent `protobuf:"bytes,1005,opt,name=staking_event,json=stakingEvent,proto3,oneof"` +} + func (*ChainEvent_Builtin) isChainEvent_Event() {} func (*ChainEvent_Erc20) isChainEvent_Event() {} @@ -416,6 +438,8 @@ func (*ChainEvent_Btc) isChainEvent_Event() {} func (*ChainEvent_Validator) isChainEvent_Event() {} +func (*ChainEvent_StakingEvent) isChainEvent_Event() {} + var File_commands_v1_validator_commands_proto protoreflect.FileDescriptor var file_commands_v1_validator_commands_proto_rawDesc = []byte{ @@ -427,59 +451,67 @@ var file_commands_v1_validator_commands_proto_rawDesc = []byte{ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x07, 0x70, 0x75, 0x62, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, - 0x58, 0x01, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x0d, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, - 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, - 0x52, 0x07, 0x69, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x07, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, - 0x58, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x51, 0x0a, 0x08, 0x4e, - 0x6f, 0x64, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, - 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, - 0x02, 0x58, 0x01, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x6a, - 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, - 0x67, 0x12, 0x37, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xfd, 0x01, 0x0a, 0x0a, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x18, - 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x75, - 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, - 0x00, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x72, - 0x63, 0x32, 0x30, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x45, 0x52, 0x43, 0x32, 0x30, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x05, - 0x65, 0x72, 0x63, 0x32, 0x30, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x74, 0x63, 0x18, 0xeb, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x54, 0x43, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x03, 0x62, 0x74, 0x63, 0x12, 0x35, 0x0a, 0x09, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0xec, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0x85, 0x01, 0x0a, 0x11, 0x4e, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0c, 0x76, 0x65, 0x67, + 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x76, 0x65, 0x67, 0x61, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x10, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, + 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2a, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, + 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, + 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x12, 0x21, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x69, 0x6e, + 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x51, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x56, + 0x6f, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x6a, 0x0a, 0x0d, 0x4e, 0x6f, + 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, + 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x37, 0x0a, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, - 0x12, 0x23, 0x0a, 0x1f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, - 0x52, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, - 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x41, 0x53, 0x53, - 0x45, 0x54, 0x5f, 0x4e, 0x45, 0x57, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24, 0x4e, 0x4f, 0x44, 0x45, + 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xb9, 0x02, 0x0a, 0x0a, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x12, 0x34, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x18, 0xe9, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x69, + 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x62, + 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 0x18, + 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x45, 0x52, + 0x43, 0x32, 0x30, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x63, 0x32, + 0x30, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x74, 0x63, 0x18, 0xeb, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x54, 0x43, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, + 0x00, 0x52, 0x03, 0x62, 0x74, 0x63, 0x12, 0x35, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0xec, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x0a, + 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0xed, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2a, 0x85, 0x01, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x1f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, - 0x10, 0x02, 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, - 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, + 0x1d, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, + 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x45, 0x57, 0x10, 0x01, + 0x12, 0x28, 0x0a, 0x24, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, + 0x52, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x57, 0x49, + 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x10, 0x02, 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x2b, + 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -506,6 +538,7 @@ var file_commands_v1_validator_commands_proto_goTypes = []interface{}{ (*proto1.ERC20Event)(nil), // 6: vega.ERC20Event (*proto1.BTCEvent)(nil), // 7: vega.BTCEvent (*proto1.ValidatorEvent)(nil), // 8: vega.ValidatorEvent + (*proto1.StakingEvent)(nil), // 9: vega.StakingEvent } var file_commands_v1_validator_commands_proto_depIdxs = []int32{ 0, // 0: vega.commands.v1.NodeSignature.kind:type_name -> vega.commands.v1.NodeSignatureKind @@ -513,11 +546,12 @@ var file_commands_v1_validator_commands_proto_depIdxs = []int32{ 6, // 2: vega.commands.v1.ChainEvent.erc20:type_name -> vega.ERC20Event 7, // 3: vega.commands.v1.ChainEvent.btc:type_name -> vega.BTCEvent 8, // 4: vega.commands.v1.ChainEvent.validator:type_name -> vega.ValidatorEvent - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 9, // 5: vega.commands.v1.ChainEvent.staking_event:type_name -> vega.StakingEvent + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_commands_v1_validator_commands_proto_init() } @@ -580,6 +614,7 @@ func file_commands_v1_validator_commands_proto_init() { (*ChainEvent_Erc20)(nil), (*ChainEvent_Btc)(nil), (*ChainEvent_Validator)(nil), + (*ChainEvent_StakingEvent)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.validator.pb.go index cb530199..102b3661 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/validator_commands.validator.pb.go @@ -19,6 +19,15 @@ var _ = fmt.Errorf var _ = math.Inf func (this *NodeRegistration) Validate() error { + if this.VegaPubKey == "" { + return github_com_mwitkow_go_proto_validators.FieldError("VegaPubKey", fmt.Errorf(`value '%v' must not be an empty string`, this.VegaPubKey)) + } + if this.EthereumAddress == "" { + return github_com_mwitkow_go_proto_validators.FieldError("EthereumAddress", fmt.Errorf(`value '%v' must not be an empty string`, this.EthereumAddress)) + } + if this.ChainPubKey == "" { + return github_com_mwitkow_go_proto_validators.FieldError("ChainPubKey", fmt.Errorf(`value '%v' must not be an empty string`, this.ChainPubKey)) + } if this.InfoUrl == "" { return github_com_mwitkow_go_proto_validators.FieldError("InfoUrl", fmt.Errorf(`value '%v' must not be an empty string`, this.InfoUrl)) } @@ -65,5 +74,12 @@ func (this *ChainEvent) Validate() error { } } } + if oneOfNester, ok := this.GetEvent().(*ChainEvent_StakingEvent); ok { + if oneOfNester.StakingEvent != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StakingEvent); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StakingEvent", err) + } + } + } return nil } diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go new file mode 100644 index 00000000..f75fab41 --- /dev/null +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go @@ -0,0 +1,1446 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.13.0 +// source: coreapi/v1/coreapi.proto + +package v1 + +import ( + reflect "reflect" + sync "sync" + + proto "github.com/golang/protobuf/proto" + proto1 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto" + v1 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type Account struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + Market string `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` + Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` + Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` + Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *Account) Reset() { + *x = Account{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Account) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Account) ProtoMessage() {} + +func (x *Account) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Account.ProtoReflect.Descriptor instead. +func (*Account) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{0} +} + +func (x *Account) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *Account) GetMarket() string { + if x != nil { + return x.Market + } + return "" +} + +func (x *Account) GetBalance() string { + if x != nil { + return x.Balance + } + return "" +} + +func (x *Account) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +func (x *Account) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +type ListAccountsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + Market string `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` +} + +func (x *ListAccountsRequest) Reset() { + *x = ListAccountsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAccountsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAccountsRequest) ProtoMessage() {} + +func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead. +func (*ListAccountsRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{1} +} + +func (x *ListAccountsRequest) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *ListAccountsRequest) GetMarket() string { + if x != nil { + return x.Market + } + return "" +} + +type ListAccountsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` +} + +func (x *ListAccountsResponse) Reset() { + *x = ListAccountsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAccountsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAccountsResponse) ProtoMessage() {} + +func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead. +func (*ListAccountsResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{2} +} + +func (x *ListAccountsResponse) GetAccounts() []*Account { + if x != nil { + return x.Accounts + } + return nil +} + +type ListAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // optional ID +} + +func (x *ListAssetsRequest) Reset() { + *x = ListAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAssetsRequest) ProtoMessage() {} + +func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead. +func (*ListAssetsRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{3} +} + +func (x *ListAssetsRequest) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +type ListAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assets []*proto1.Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` +} + +func (x *ListAssetsResponse) Reset() { + *x = ListAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAssetsResponse) ProtoMessage() {} + +func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead. +func (*ListAssetsResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{4} +} + +func (x *ListAssetsResponse) GetAssets() []*proto1.Asset { + if x != nil { + return x.Assets + } + return nil +} + +type ListNetworkParametersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkParameterKey string `protobuf:"bytes,1,opt,name=network_parameter_key,json=networkParameterKey,proto3" json:"network_parameter_key,omitempty"` // optional parameter key +} + +func (x *ListNetworkParametersRequest) Reset() { + *x = ListNetworkParametersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNetworkParametersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNetworkParametersRequest) ProtoMessage() {} + +func (x *ListNetworkParametersRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNetworkParametersRequest.ProtoReflect.Descriptor instead. +func (*ListNetworkParametersRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{5} +} + +func (x *ListNetworkParametersRequest) GetNetworkParameterKey() string { + if x != nil { + return x.NetworkParameterKey + } + return "" +} + +type ListNetworkParametersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkParameters []*proto1.NetworkParameter `protobuf:"bytes,1,rep,name=network_parameters,json=networkParameters,proto3" json:"network_parameters,omitempty"` +} + +func (x *ListNetworkParametersResponse) Reset() { + *x = ListNetworkParametersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNetworkParametersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNetworkParametersResponse) ProtoMessage() {} + +func (x *ListNetworkParametersResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNetworkParametersResponse.ProtoReflect.Descriptor instead. +func (*ListNetworkParametersResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{6} +} + +func (x *ListNetworkParametersResponse) GetNetworkParameters() []*proto1.NetworkParameter { + if x != nil { + return x.NetworkParameters + } + return nil +} + +type ListPartiesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ListPartiesRequest) Reset() { + *x = ListPartiesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPartiesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPartiesRequest) ProtoMessage() {} + +func (x *ListPartiesRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPartiesRequest.ProtoReflect.Descriptor instead. +func (*ListPartiesRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{7} +} + +type ListPartiesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parties []*proto1.Party `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` +} + +func (x *ListPartiesResponse) Reset() { + *x = ListPartiesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPartiesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPartiesResponse) ProtoMessage() {} + +func (x *ListPartiesResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPartiesResponse.ProtoReflect.Descriptor instead. +func (*ListPartiesResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{8} +} + +func (x *ListPartiesResponse) GetParties() []*proto1.Party { + if x != nil { + return x.Parties + } + return nil +} + +type ListValidatorsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ListValidatorsRequest) Reset() { + *x = ListValidatorsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValidatorsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValidatorsRequest) ProtoMessage() {} + +func (x *ListValidatorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListValidatorsRequest.ProtoReflect.Descriptor instead. +func (*ListValidatorsRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{9} +} + +type ListValidatorsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Validators []*v1.ValidatorUpdate `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` +} + +func (x *ListValidatorsResponse) Reset() { + *x = ListValidatorsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValidatorsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValidatorsResponse) ProtoMessage() {} + +func (x *ListValidatorsResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListValidatorsResponse.ProtoReflect.Descriptor instead. +func (*ListValidatorsResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{10} +} + +func (x *ListValidatorsResponse) GetValidators() []*v1.ValidatorUpdate { + if x != nil { + return x.Validators + } + return nil +} + +type ListMarketsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` +} + +func (x *ListMarketsRequest) Reset() { + *x = ListMarketsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMarketsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMarketsRequest) ProtoMessage() {} + +func (x *ListMarketsRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMarketsRequest.ProtoReflect.Descriptor instead. +func (*ListMarketsRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{11} +} + +func (x *ListMarketsRequest) GetMarket() string { + if x != nil { + return x.Market + } + return "" +} + +type ListMarketsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Markets []*proto1.Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` +} + +func (x *ListMarketsResponse) Reset() { + *x = ListMarketsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMarketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMarketsResponse) ProtoMessage() {} + +func (x *ListMarketsResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMarketsResponse.ProtoReflect.Descriptor instead. +func (*ListMarketsResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{12} +} + +func (x *ListMarketsResponse) GetMarkets() []*proto1.Market { + if x != nil { + return x.Markets + } + return nil +} + +type ListProposalsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proposal string `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // optional ID + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // optional party +} + +func (x *ListProposalsRequest) Reset() { + *x = ListProposalsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProposalsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProposalsRequest) ProtoMessage() {} + +func (x *ListProposalsRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProposalsRequest.ProtoReflect.Descriptor instead. +func (*ListProposalsRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{13} +} + +func (x *ListProposalsRequest) GetProposal() string { + if x != nil { + return x.Proposal + } + return "" +} + +func (x *ListProposalsRequest) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +type ListProposalsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proposals []*proto1.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` +} + +func (x *ListProposalsResponse) Reset() { + *x = ListProposalsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProposalsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProposalsResponse) ProtoMessage() {} + +func (x *ListProposalsResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProposalsResponse.ProtoReflect.Descriptor instead. +func (*ListProposalsResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{14} +} + +func (x *ListProposalsResponse) GetProposals() []*proto1.Proposal { + if x != nil { + return x.Proposals + } + return nil +} + +type ListMarketsDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` +} + +func (x *ListMarketsDataRequest) Reset() { + *x = ListMarketsDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMarketsDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMarketsDataRequest) ProtoMessage() {} + +func (x *ListMarketsDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMarketsDataRequest.ProtoReflect.Descriptor instead. +func (*ListMarketsDataRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{15} +} + +func (x *ListMarketsDataRequest) GetMarket() string { + if x != nil { + return x.Market + } + return "" +} + +type ListMarketsDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MarketsData []*proto1.MarketData `protobuf:"bytes,1,rep,name=markets_data,json=marketsData,proto3" json:"markets_data,omitempty"` +} + +func (x *ListMarketsDataResponse) Reset() { + *x = ListMarketsDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMarketsDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMarketsDataResponse) ProtoMessage() {} + +func (x *ListMarketsDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMarketsDataResponse.ProtoReflect.Descriptor instead. +func (*ListMarketsDataResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{16} +} + +func (x *ListMarketsDataResponse) GetMarketsData() []*proto1.MarketData { + if x != nil { + return x.MarketsData + } + return nil +} + +type ListVotesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proposal string `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + Party string `protobuf:"bytes,2,opt,name=party,proto3" json:"party,omitempty"` +} + +func (x *ListVotesRequest) Reset() { + *x = ListVotesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListVotesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListVotesRequest) ProtoMessage() {} + +func (x *ListVotesRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListVotesRequest.ProtoReflect.Descriptor instead. +func (*ListVotesRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{17} +} + +func (x *ListVotesRequest) GetProposal() string { + if x != nil { + return x.Proposal + } + return "" +} + +func (x *ListVotesRequest) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +type ListVotesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Votes []*proto1.Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` +} + +func (x *ListVotesResponse) Reset() { + *x = ListVotesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListVotesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListVotesResponse) ProtoMessage() {} + +func (x *ListVotesResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListVotesResponse.ProtoReflect.Descriptor instead. +func (*ListVotesResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{18} +} + +func (x *ListVotesResponse) GetVotes() []*proto1.Vote { + if x != nil { + return x.Votes + } + return nil +} + +var File_coreapi_v1_coreapi_proto protoreflect.FileDescriptor + +var file_coreapi_v1_coreapi_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x0c, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x67, 0x6f, 0x76, 0x65, 0x72, + 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, + 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, + 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x43, 0x0a, 0x13, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x22, 0x4c, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x29, + 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x39, 0x0a, 0x12, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x23, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x22, 0x52, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x22, 0x66, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x11, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, + 0x07, 0x70, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, 0x52, 0x07, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x59, 0x0a, + 0x16, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x22, 0x3d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, + 0x07, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x45, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, + 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x22, 0x30, 0x0a, 0x16, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x22, 0x4e, + 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x44, + 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, + 0x61, 0x72, 0x74, 0x79, 0x22, 0x35, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x6f, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x32, 0xed, 0x06, 0x0a, 0x0e, + 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5b, + 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x24, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0a, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x76, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x5e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x73, 0x12, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x64, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, + 0x6f, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x4d, 0x0a, 0x1f, 0x69, + 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x2a, + 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_coreapi_v1_coreapi_proto_rawDescOnce sync.Once + file_coreapi_v1_coreapi_proto_rawDescData = file_coreapi_v1_coreapi_proto_rawDesc +) + +func file_coreapi_v1_coreapi_proto_rawDescGZIP() []byte { + file_coreapi_v1_coreapi_proto_rawDescOnce.Do(func() { + file_coreapi_v1_coreapi_proto_rawDescData = protoimpl.X.CompressGZIP(file_coreapi_v1_coreapi_proto_rawDescData) + }) + return file_coreapi_v1_coreapi_proto_rawDescData +} + +var file_coreapi_v1_coreapi_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_coreapi_v1_coreapi_proto_goTypes = []interface{}{ + (*Account)(nil), // 0: vega.coreapi.v1.Account + (*ListAccountsRequest)(nil), // 1: vega.coreapi.v1.ListAccountsRequest + (*ListAccountsResponse)(nil), // 2: vega.coreapi.v1.ListAccountsResponse + (*ListAssetsRequest)(nil), // 3: vega.coreapi.v1.ListAssetsRequest + (*ListAssetsResponse)(nil), // 4: vega.coreapi.v1.ListAssetsResponse + (*ListNetworkParametersRequest)(nil), // 5: vega.coreapi.v1.ListNetworkParametersRequest + (*ListNetworkParametersResponse)(nil), // 6: vega.coreapi.v1.ListNetworkParametersResponse + (*ListPartiesRequest)(nil), // 7: vega.coreapi.v1.ListPartiesRequest + (*ListPartiesResponse)(nil), // 8: vega.coreapi.v1.ListPartiesResponse + (*ListValidatorsRequest)(nil), // 9: vega.coreapi.v1.ListValidatorsRequest + (*ListValidatorsResponse)(nil), // 10: vega.coreapi.v1.ListValidatorsResponse + (*ListMarketsRequest)(nil), // 11: vega.coreapi.v1.ListMarketsRequest + (*ListMarketsResponse)(nil), // 12: vega.coreapi.v1.ListMarketsResponse + (*ListProposalsRequest)(nil), // 13: vega.coreapi.v1.ListProposalsRequest + (*ListProposalsResponse)(nil), // 14: vega.coreapi.v1.ListProposalsResponse + (*ListMarketsDataRequest)(nil), // 15: vega.coreapi.v1.ListMarketsDataRequest + (*ListMarketsDataResponse)(nil), // 16: vega.coreapi.v1.ListMarketsDataResponse + (*ListVotesRequest)(nil), // 17: vega.coreapi.v1.ListVotesRequest + (*ListVotesResponse)(nil), // 18: vega.coreapi.v1.ListVotesResponse + (*proto1.Asset)(nil), // 19: vega.Asset + (*proto1.NetworkParameter)(nil), // 20: vega.NetworkParameter + (*proto1.Party)(nil), // 21: vega.Party + (*v1.ValidatorUpdate)(nil), // 22: vega.events.v1.ValidatorUpdate + (*proto1.Market)(nil), // 23: vega.Market + (*proto1.Proposal)(nil), // 24: vega.Proposal + (*proto1.MarketData)(nil), // 25: vega.MarketData + (*proto1.Vote)(nil), // 26: vega.Vote +} +var file_coreapi_v1_coreapi_proto_depIdxs = []int32{ + 0, // 0: vega.coreapi.v1.ListAccountsResponse.accounts:type_name -> vega.coreapi.v1.Account + 19, // 1: vega.coreapi.v1.ListAssetsResponse.assets:type_name -> vega.Asset + 20, // 2: vega.coreapi.v1.ListNetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter + 21, // 3: vega.coreapi.v1.ListPartiesResponse.parties:type_name -> vega.Party + 22, // 4: vega.coreapi.v1.ListValidatorsResponse.validators:type_name -> vega.events.v1.ValidatorUpdate + 23, // 5: vega.coreapi.v1.ListMarketsResponse.markets:type_name -> vega.Market + 24, // 6: vega.coreapi.v1.ListProposalsResponse.proposals:type_name -> vega.Proposal + 25, // 7: vega.coreapi.v1.ListMarketsDataResponse.markets_data:type_name -> vega.MarketData + 26, // 8: vega.coreapi.v1.ListVotesResponse.votes:type_name -> vega.Vote + 1, // 9: vega.coreapi.v1.CoreApiService.ListAccounts:input_type -> vega.coreapi.v1.ListAccountsRequest + 3, // 10: vega.coreapi.v1.CoreApiService.ListAssets:input_type -> vega.coreapi.v1.ListAssetsRequest + 5, // 11: vega.coreapi.v1.CoreApiService.ListNetworkParameters:input_type -> vega.coreapi.v1.ListNetworkParametersRequest + 7, // 12: vega.coreapi.v1.CoreApiService.ListParties:input_type -> vega.coreapi.v1.ListPartiesRequest + 9, // 13: vega.coreapi.v1.CoreApiService.ListValidators:input_type -> vega.coreapi.v1.ListValidatorsRequest + 11, // 14: vega.coreapi.v1.CoreApiService.ListMarkets:input_type -> vega.coreapi.v1.ListMarketsRequest + 13, // 15: vega.coreapi.v1.CoreApiService.ListProposals:input_type -> vega.coreapi.v1.ListProposalsRequest + 15, // 16: vega.coreapi.v1.CoreApiService.ListMarketsData:input_type -> vega.coreapi.v1.ListMarketsDataRequest + 17, // 17: vega.coreapi.v1.CoreApiService.ListVotes:input_type -> vega.coreapi.v1.ListVotesRequest + 2, // 18: vega.coreapi.v1.CoreApiService.ListAccounts:output_type -> vega.coreapi.v1.ListAccountsResponse + 4, // 19: vega.coreapi.v1.CoreApiService.ListAssets:output_type -> vega.coreapi.v1.ListAssetsResponse + 6, // 20: vega.coreapi.v1.CoreApiService.ListNetworkParameters:output_type -> vega.coreapi.v1.ListNetworkParametersResponse + 8, // 21: vega.coreapi.v1.CoreApiService.ListParties:output_type -> vega.coreapi.v1.ListPartiesResponse + 10, // 22: vega.coreapi.v1.CoreApiService.ListValidators:output_type -> vega.coreapi.v1.ListValidatorsResponse + 12, // 23: vega.coreapi.v1.CoreApiService.ListMarkets:output_type -> vega.coreapi.v1.ListMarketsResponse + 14, // 24: vega.coreapi.v1.CoreApiService.ListProposals:output_type -> vega.coreapi.v1.ListProposalsResponse + 16, // 25: vega.coreapi.v1.CoreApiService.ListMarketsData:output_type -> vega.coreapi.v1.ListMarketsDataResponse + 18, // 26: vega.coreapi.v1.CoreApiService.ListVotes:output_type -> vega.coreapi.v1.ListVotesResponse + 18, // [18:27] is the sub-list for method output_type + 9, // [9:18] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_coreapi_v1_coreapi_proto_init() } +func file_coreapi_v1_coreapi_proto_init() { + if File_coreapi_v1_coreapi_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_coreapi_v1_coreapi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Account); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAccountsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAccountsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNetworkParametersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNetworkParametersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPartiesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPartiesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValidatorsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValidatorsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMarketsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMarketsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProposalsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProposalsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMarketsDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMarketsDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListVotesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListVotesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_coreapi_v1_coreapi_proto_rawDesc, + NumEnums: 0, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_coreapi_v1_coreapi_proto_goTypes, + DependencyIndexes: file_coreapi_v1_coreapi_proto_depIdxs, + MessageInfos: file_coreapi_v1_coreapi_proto_msgTypes, + }.Build() + File_coreapi_v1_coreapi_proto = out.File + file_coreapi_v1_coreapi_proto_rawDesc = nil + file_coreapi_v1_coreapi_proto_goTypes = nil + file_coreapi_v1_coreapi_proto_depIdxs = nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go new file mode 100644 index 00000000..2cfdb2a3 --- /dev/null +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: coreapi/v1/coreapi.proto + +package v1 + +import ( + fmt "fmt" + math "math" + + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto" + _ "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *Account) Validate() error { + return nil +} +func (this *ListAccountsRequest) Validate() error { + return nil +} +func (this *ListAccountsResponse) Validate() error { + for _, item := range this.Accounts { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Accounts", err) + } + } + } + return nil +} +func (this *ListAssetsRequest) Validate() error { + return nil +} +func (this *ListAssetsResponse) Validate() error { + for _, item := range this.Assets { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Assets", err) + } + } + } + return nil +} +func (this *ListNetworkParametersRequest) Validate() error { + return nil +} +func (this *ListNetworkParametersResponse) Validate() error { + for _, item := range this.NetworkParameters { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("NetworkParameters", err) + } + } + } + return nil +} +func (this *ListPartiesRequest) Validate() error { + return nil +} +func (this *ListPartiesResponse) Validate() error { + for _, item := range this.Parties { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Parties", err) + } + } + } + return nil +} +func (this *ListValidatorsRequest) Validate() error { + return nil +} +func (this *ListValidatorsResponse) Validate() error { + for _, item := range this.Validators { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Validators", err) + } + } + } + return nil +} +func (this *ListMarketsRequest) Validate() error { + return nil +} +func (this *ListMarketsResponse) Validate() error { + for _, item := range this.Markets { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Markets", err) + } + } + } + return nil +} +func (this *ListProposalsRequest) Validate() error { + return nil +} +func (this *ListProposalsResponse) Validate() error { + for _, item := range this.Proposals { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Proposals", err) + } + } + } + return nil +} +func (this *ListMarketsDataRequest) Validate() error { + return nil +} +func (this *ListMarketsDataResponse) Validate() error { + for _, item := range this.MarketsData { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("MarketsData", err) + } + } + } + return nil +} +func (this *ListVotesRequest) Validate() error { + return nil +} +func (this *ListVotesResponse) Validate() error { + for _, item := range this.Votes { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Votes", err) + } + } + } + return nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go new file mode 100644 index 00000000..e6d0efad --- /dev/null +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go @@ -0,0 +1,390 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package v1 + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// CoreApiServiceClient is the client API for CoreApiService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CoreApiServiceClient interface { + ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) + ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) + ListNetworkParameters(ctx context.Context, in *ListNetworkParametersRequest, opts ...grpc.CallOption) (*ListNetworkParametersResponse, error) + ListParties(ctx context.Context, in *ListPartiesRequest, opts ...grpc.CallOption) (*ListPartiesResponse, error) + ListValidators(ctx context.Context, in *ListValidatorsRequest, opts ...grpc.CallOption) (*ListValidatorsResponse, error) + ListMarkets(ctx context.Context, in *ListMarketsRequest, opts ...grpc.CallOption) (*ListMarketsResponse, error) + ListProposals(ctx context.Context, in *ListProposalsRequest, opts ...grpc.CallOption) (*ListProposalsResponse, error) + ListMarketsData(ctx context.Context, in *ListMarketsDataRequest, opts ...grpc.CallOption) (*ListMarketsDataResponse, error) + ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesResponse, error) +} + +type coreApiServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCoreApiServiceClient(cc grpc.ClientConnInterface) CoreApiServiceClient { + return &coreApiServiceClient{cc} +} + +func (c *coreApiServiceClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) { + out := new(ListAccountsResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListAccounts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) { + out := new(ListAssetsResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListAssets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListNetworkParameters(ctx context.Context, in *ListNetworkParametersRequest, opts ...grpc.CallOption) (*ListNetworkParametersResponse, error) { + out := new(ListNetworkParametersResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListNetworkParameters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListParties(ctx context.Context, in *ListPartiesRequest, opts ...grpc.CallOption) (*ListPartiesResponse, error) { + out := new(ListPartiesResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListParties", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListValidators(ctx context.Context, in *ListValidatorsRequest, opts ...grpc.CallOption) (*ListValidatorsResponse, error) { + out := new(ListValidatorsResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListValidators", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListMarkets(ctx context.Context, in *ListMarketsRequest, opts ...grpc.CallOption) (*ListMarketsResponse, error) { + out := new(ListMarketsResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListMarkets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListProposals(ctx context.Context, in *ListProposalsRequest, opts ...grpc.CallOption) (*ListProposalsResponse, error) { + out := new(ListProposalsResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListProposals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListMarketsData(ctx context.Context, in *ListMarketsDataRequest, opts ...grpc.CallOption) (*ListMarketsDataResponse, error) { + out := new(ListMarketsDataResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListMarketsData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *coreApiServiceClient) ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesResponse, error) { + out := new(ListVotesResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListVotes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CoreApiServiceServer is the server API for CoreApiService service. +// All implementations must embed UnimplementedCoreApiServiceServer +// for forward compatibility +type CoreApiServiceServer interface { + ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) + ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) + ListNetworkParameters(context.Context, *ListNetworkParametersRequest) (*ListNetworkParametersResponse, error) + ListParties(context.Context, *ListPartiesRequest) (*ListPartiesResponse, error) + ListValidators(context.Context, *ListValidatorsRequest) (*ListValidatorsResponse, error) + ListMarkets(context.Context, *ListMarketsRequest) (*ListMarketsResponse, error) + ListProposals(context.Context, *ListProposalsRequest) (*ListProposalsResponse, error) + ListMarketsData(context.Context, *ListMarketsDataRequest) (*ListMarketsDataResponse, error) + ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error) + mustEmbedUnimplementedCoreApiServiceServer() +} + +// UnimplementedCoreApiServiceServer must be embedded to have forward compatible implementations. +type UnimplementedCoreApiServiceServer struct { +} + +func (UnimplementedCoreApiServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented") +} +func (UnimplementedCoreApiServiceServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAssets not implemented") +} +func (UnimplementedCoreApiServiceServer) ListNetworkParameters(context.Context, *ListNetworkParametersRequest) (*ListNetworkParametersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNetworkParameters not implemented") +} +func (UnimplementedCoreApiServiceServer) ListParties(context.Context, *ListPartiesRequest) (*ListPartiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListParties not implemented") +} +func (UnimplementedCoreApiServiceServer) ListValidators(context.Context, *ListValidatorsRequest) (*ListValidatorsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListValidators not implemented") +} +func (UnimplementedCoreApiServiceServer) ListMarkets(context.Context, *ListMarketsRequest) (*ListMarketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMarkets not implemented") +} +func (UnimplementedCoreApiServiceServer) ListProposals(context.Context, *ListProposalsRequest) (*ListProposalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProposals not implemented") +} +func (UnimplementedCoreApiServiceServer) ListMarketsData(context.Context, *ListMarketsDataRequest) (*ListMarketsDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMarketsData not implemented") +} +func (UnimplementedCoreApiServiceServer) ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListVotes not implemented") +} +func (UnimplementedCoreApiServiceServer) mustEmbedUnimplementedCoreApiServiceServer() {} + +// UnsafeCoreApiServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CoreApiServiceServer will +// result in compilation errors. +type UnsafeCoreApiServiceServer interface { + mustEmbedUnimplementedCoreApiServiceServer() +} + +func RegisterCoreApiServiceServer(s grpc.ServiceRegistrar, srv CoreApiServiceServer) { + s.RegisterService(&CoreApiService_ServiceDesc, srv) +} + +func _CoreApiService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListAccounts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListAccounts(ctx, req.(*ListAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListAssets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListAssets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListAssets(ctx, req.(*ListAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListNetworkParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNetworkParametersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListNetworkParameters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListNetworkParameters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListNetworkParameters(ctx, req.(*ListNetworkParametersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListParties_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPartiesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListParties(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListParties", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListParties(ctx, req.(*ListPartiesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListValidatorsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListValidators(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListValidators", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListValidators(ctx, req.(*ListValidatorsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListMarketsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListMarkets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListMarkets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListMarkets(ctx, req.(*ListMarketsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListProposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProposalsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListProposals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListProposals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListProposals(ctx, req.(*ListProposalsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListMarketsData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListMarketsDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListMarketsData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListMarketsData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListMarketsData(ctx, req.(*ListMarketsDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CoreApiService_ListVotes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListVotesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListVotes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListVotes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListVotes(ctx, req.(*ListVotesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CoreApiService_ServiceDesc is the grpc.ServiceDesc for CoreApiService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CoreApiService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "vega.coreapi.v1.CoreApiService", + HandlerType: (*CoreApiServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListAccounts", + Handler: _CoreApiService_ListAccounts_Handler, + }, + { + MethodName: "ListAssets", + Handler: _CoreApiService_ListAssets_Handler, + }, + { + MethodName: "ListNetworkParameters", + Handler: _CoreApiService_ListNetworkParameters_Handler, + }, + { + MethodName: "ListParties", + Handler: _CoreApiService_ListParties_Handler, + }, + { + MethodName: "ListValidators", + Handler: _CoreApiService_ListValidators_Handler, + }, + { + MethodName: "ListMarkets", + Handler: _CoreApiService_ListMarkets_Handler, + }, + { + MethodName: "ListProposals", + Handler: _CoreApiService_ListProposals_Handler, + }, + { + MethodName: "ListMarketsData", + Handler: _CoreApiService_ListMarketsData_Handler, + }, + { + MethodName: "ListVotes", + Handler: _CoreApiService_ListVotes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "coreapi/v1/coreapi.proto", +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go index 018289be..9d4a6fd9 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go @@ -96,14 +96,18 @@ const ( BusEventType_BUS_EVENT_TYPE_ORACLE_DATA BusEventType = 28 // Event indicating that an delegation balance of a party to a node for current epoch has changed BusEventType_BUS_EVENT_TYPE_DELEGATION_BALANCE BusEventType = 29 - // Event indicating that an delegation balance of a party to a node for next epoch has changed - BusEventType_BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE BusEventType = 30 + // Event indicating the validator score for the given epoch + BusEventType_BUS_EVENT_TYPE_VALIDATOR_SCORE BusEventType = 30 // Event indicating the start or end of an epoch BusEventType_BUS_EVENT_TYPE_EPOCH_UPDATE BusEventType = 31 // Event indicating that validator node has been updated BusEventType_BUS_EVENT_TYPE_VALIDATOR_UPDATE BusEventType = 32 // Event indicating a new staking event have been processed by the network - BusEventType_BUS_EVENT_TYPE_STAKING_EVENT BusEventType = 33 + BusEventType_BUS_EVENT_TYPE_STAKE_LINKING BusEventType = 33 + // Event indicating the payout of a reward has been initiated + BusEventType_BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT BusEventType = 34 + // Event indicating a new checkpoint was created + BusEventType_BUS_EVENT_TYPE_CHECKPOINT BusEventType = 35 // Event indicating a market related event, for example when a market opens BusEventType_BUS_EVENT_TYPE_MARKET BusEventType = 101 // Event used to report failed transactions back to a user, this is excluded from the ALL type @@ -143,50 +147,54 @@ var ( 27: "BUS_EVENT_TYPE_ORACLE_SPEC", 28: "BUS_EVENT_TYPE_ORACLE_DATA", 29: "BUS_EVENT_TYPE_DELEGATION_BALANCE", - 30: "BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE", + 30: "BUS_EVENT_TYPE_VALIDATOR_SCORE", 31: "BUS_EVENT_TYPE_EPOCH_UPDATE", 32: "BUS_EVENT_TYPE_VALIDATOR_UPDATE", - 33: "BUS_EVENT_TYPE_STAKING_EVENT", + 33: "BUS_EVENT_TYPE_STAKE_LINKING", + 34: "BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT", + 35: "BUS_EVENT_TYPE_CHECKPOINT", 101: "BUS_EVENT_TYPE_MARKET", 201: "BUS_EVENT_TYPE_TX_ERROR", } BusEventType_value = map[string]int32{ - "BUS_EVENT_TYPE_UNSPECIFIED": 0, - "BUS_EVENT_TYPE_ALL": 1, - "BUS_EVENT_TYPE_TIME_UPDATE": 2, - "BUS_EVENT_TYPE_TRANSFER_RESPONSES": 3, - "BUS_EVENT_TYPE_POSITION_RESOLUTION": 4, - "BUS_EVENT_TYPE_ORDER": 5, - "BUS_EVENT_TYPE_ACCOUNT": 6, - "BUS_EVENT_TYPE_PARTY": 7, - "BUS_EVENT_TYPE_TRADE": 8, - "BUS_EVENT_TYPE_MARGIN_LEVELS": 9, - "BUS_EVENT_TYPE_PROPOSAL": 10, - "BUS_EVENT_TYPE_VOTE": 11, - "BUS_EVENT_TYPE_MARKET_DATA": 12, - "BUS_EVENT_TYPE_NODE_SIGNATURE": 13, - "BUS_EVENT_TYPE_LOSS_SOCIALIZATION": 14, - "BUS_EVENT_TYPE_SETTLE_POSITION": 15, - "BUS_EVENT_TYPE_SETTLE_DISTRESSED": 16, - "BUS_EVENT_TYPE_MARKET_CREATED": 17, - "BUS_EVENT_TYPE_ASSET": 18, - "BUS_EVENT_TYPE_MARKET_TICK": 19, - "BUS_EVENT_TYPE_WITHDRAWAL": 20, - "BUS_EVENT_TYPE_DEPOSIT": 21, - "BUS_EVENT_TYPE_AUCTION": 22, - "BUS_EVENT_TYPE_RISK_FACTOR": 23, - "BUS_EVENT_TYPE_NETWORK_PARAMETER": 24, - "BUS_EVENT_TYPE_LIQUIDITY_PROVISION": 25, - "BUS_EVENT_TYPE_MARKET_UPDATED": 26, - "BUS_EVENT_TYPE_ORACLE_SPEC": 27, - "BUS_EVENT_TYPE_ORACLE_DATA": 28, - "BUS_EVENT_TYPE_DELEGATION_BALANCE": 29, - "BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE": 30, - "BUS_EVENT_TYPE_EPOCH_UPDATE": 31, - "BUS_EVENT_TYPE_VALIDATOR_UPDATE": 32, - "BUS_EVENT_TYPE_STAKING_EVENT": 33, - "BUS_EVENT_TYPE_MARKET": 101, - "BUS_EVENT_TYPE_TX_ERROR": 201, + "BUS_EVENT_TYPE_UNSPECIFIED": 0, + "BUS_EVENT_TYPE_ALL": 1, + "BUS_EVENT_TYPE_TIME_UPDATE": 2, + "BUS_EVENT_TYPE_TRANSFER_RESPONSES": 3, + "BUS_EVENT_TYPE_POSITION_RESOLUTION": 4, + "BUS_EVENT_TYPE_ORDER": 5, + "BUS_EVENT_TYPE_ACCOUNT": 6, + "BUS_EVENT_TYPE_PARTY": 7, + "BUS_EVENT_TYPE_TRADE": 8, + "BUS_EVENT_TYPE_MARGIN_LEVELS": 9, + "BUS_EVENT_TYPE_PROPOSAL": 10, + "BUS_EVENT_TYPE_VOTE": 11, + "BUS_EVENT_TYPE_MARKET_DATA": 12, + "BUS_EVENT_TYPE_NODE_SIGNATURE": 13, + "BUS_EVENT_TYPE_LOSS_SOCIALIZATION": 14, + "BUS_EVENT_TYPE_SETTLE_POSITION": 15, + "BUS_EVENT_TYPE_SETTLE_DISTRESSED": 16, + "BUS_EVENT_TYPE_MARKET_CREATED": 17, + "BUS_EVENT_TYPE_ASSET": 18, + "BUS_EVENT_TYPE_MARKET_TICK": 19, + "BUS_EVENT_TYPE_WITHDRAWAL": 20, + "BUS_EVENT_TYPE_DEPOSIT": 21, + "BUS_EVENT_TYPE_AUCTION": 22, + "BUS_EVENT_TYPE_RISK_FACTOR": 23, + "BUS_EVENT_TYPE_NETWORK_PARAMETER": 24, + "BUS_EVENT_TYPE_LIQUIDITY_PROVISION": 25, + "BUS_EVENT_TYPE_MARKET_UPDATED": 26, + "BUS_EVENT_TYPE_ORACLE_SPEC": 27, + "BUS_EVENT_TYPE_ORACLE_DATA": 28, + "BUS_EVENT_TYPE_DELEGATION_BALANCE": 29, + "BUS_EVENT_TYPE_VALIDATOR_SCORE": 30, + "BUS_EVENT_TYPE_EPOCH_UPDATE": 31, + "BUS_EVENT_TYPE_VALIDATOR_UPDATE": 32, + "BUS_EVENT_TYPE_STAKE_LINKING": 33, + "BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT": 34, + "BUS_EVENT_TYPE_CHECKPOINT": 35, + "BUS_EVENT_TYPE_MARKET": 101, + "BUS_EVENT_TYPE_TX_ERROR": 201, } ) @@ -217,61 +225,117 @@ func (BusEventType) EnumDescriptor() ([]byte, []int) { return file_events_v1_events_proto_rawDescGZIP(), []int{0} } -type StakingEvent_Type int32 +type StakeLinking_Type int32 const ( // Default value - StakingEvent_TYPE_UNSPECIFIED StakingEvent_Type = 0 + StakeLinking_TYPE_UNSPECIFIED StakeLinking_Type = 0 // Indicate of a stake deposit instruction - StakingEvent_TYPE_DEPOSIT StakingEvent_Type = 1 + StakeLinking_TYPE_LINK StakeLinking_Type = 1 // Indicate of a stake remove instruction - StakingEvent_TYPE_REMOVE StakingEvent_Type = 2 + StakeLinking_TYPE_UNLINK StakeLinking_Type = 2 ) -// Enum value maps for StakingEvent_Type. +// Enum value maps for StakeLinking_Type. var ( - StakingEvent_Type_name = map[int32]string{ + StakeLinking_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", - 1: "TYPE_DEPOSIT", - 2: "TYPE_REMOVE", + 1: "TYPE_LINK", + 2: "TYPE_UNLINK", } - StakingEvent_Type_value = map[string]int32{ + StakeLinking_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, - "TYPE_DEPOSIT": 1, - "TYPE_REMOVE": 2, + "TYPE_LINK": 1, + "TYPE_UNLINK": 2, } ) -func (x StakingEvent_Type) Enum() *StakingEvent_Type { - p := new(StakingEvent_Type) +func (x StakeLinking_Type) Enum() *StakeLinking_Type { + p := new(StakeLinking_Type) *p = x return p } -func (x StakingEvent_Type) String() string { +func (x StakeLinking_Type) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (StakingEvent_Type) Descriptor() protoreflect.EnumDescriptor { +func (StakeLinking_Type) Descriptor() protoreflect.EnumDescriptor { return file_events_v1_events_proto_enumTypes[1].Descriptor() } -func (StakingEvent_Type) Type() protoreflect.EnumType { +func (StakeLinking_Type) Type() protoreflect.EnumType { return &file_events_v1_events_proto_enumTypes[1] } -func (x StakingEvent_Type) Number() protoreflect.EnumNumber { +func (x StakeLinking_Type) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use StakingEvent_Type.Descriptor instead. -func (StakingEvent_Type) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use StakeLinking_Type.Descriptor instead. +func (StakeLinking_Type) EnumDescriptor() ([]byte, []int) { return file_events_v1_events_proto_rawDescGZIP(), []int{0, 0} } -// StakingEvent - an event notifying of stake being deposited or removed for a given party +type StakeLinking_Status int32 + +const ( + // Default value + StakeLinking_STATUS_UNSPECIFIED StakeLinking_Status = 0 + // Indicate an event waiting for confirmation from the vega network + StakeLinking_STATUS_PENDING StakeLinking_Status = 1 + // Indicate of an event accepted by the vega network + StakeLinking_STATUS_ACCEPTED StakeLinking_Status = 2 + // Indaicate of an event rejected by the vega network + StakeLinking_STATUS_REJECTED StakeLinking_Status = 3 +) + +// Enum value maps for StakeLinking_Status. +var ( + StakeLinking_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STATUS_PENDING", + 2: "STATUS_ACCEPTED", + 3: "STATUS_REJECTED", + } + StakeLinking_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STATUS_PENDING": 1, + "STATUS_ACCEPTED": 2, + "STATUS_REJECTED": 3, + } +) + +func (x StakeLinking_Status) Enum() *StakeLinking_Status { + p := new(StakeLinking_Status) + *p = x + return p +} + +func (x StakeLinking_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StakeLinking_Status) Descriptor() protoreflect.EnumDescriptor { + return file_events_v1_events_proto_enumTypes[2].Descriptor() +} + +func (StakeLinking_Status) Type() protoreflect.EnumType { + return &file_events_v1_events_proto_enumTypes[2] +} + +func (x StakeLinking_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StakeLinking_Status.Descriptor instead. +func (StakeLinking_Status) EnumDescriptor() ([]byte, []int) { + return file_events_v1_events_proto_rawDescGZIP(), []int{0, 1} +} + +// StakeLinking - an event notifying of stake being deposited or removed for a given party // These events are emitted for every Staking deposit or removed accepted by the network -type StakingEvent struct { +type StakeLinking struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -279,17 +343,23 @@ type StakingEvent struct { // The internal ID for this staking event Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The type of event - Type StakingEvent_Type `protobuf:"varint,2,opt,name=type,proto3,enum=vega.events.v1.StakingEvent_Type" json:"type,omitempty"` + Type StakeLinking_Type `protobuf:"varint,2,opt,name=type,proto3,enum=vega.events.v1.StakeLinking_Type" json:"type,omitempty"` // The timestamps at which the event was emitted by ethereum Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` // The party to whom the event is directed at. Party string `protobuf:"bytes,4,opt,name=party,proto3" json:"party,omitempty"` // The amount of stake deposited or removed Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` + // The status of the event + Status StakeLinking_Status `protobuf:"varint,6,opt,name=status,proto3,enum=vega.events.v1.StakeLinking_Status" json:"status,omitempty"` + // The time at which the vega network finalized the state of the event + FinalizedAt int64 `protobuf:"varint,7,opt,name=finalized_at,json=finalizedAt,proto3" json:"finalized_at,omitempty"` + // The hash of the transaction from which the events happen + TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` } -func (x *StakingEvent) Reset() { - *x = StakingEvent{} +func (x *StakeLinking) Reset() { + *x = StakeLinking{} if protoimpl.UnsafeEnabled { mi := &file_events_v1_events_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -297,13 +367,13 @@ func (x *StakingEvent) Reset() { } } -func (x *StakingEvent) String() string { +func (x *StakeLinking) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StakingEvent) ProtoMessage() {} +func (*StakeLinking) ProtoMessage() {} -func (x *StakingEvent) ProtoReflect() protoreflect.Message { +func (x *StakeLinking) ProtoReflect() protoreflect.Message { mi := &file_events_v1_events_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -315,61 +385,305 @@ func (x *StakingEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StakingEvent.ProtoReflect.Descriptor instead. -func (*StakingEvent) Descriptor() ([]byte, []int) { +// Deprecated: Use StakeLinking.ProtoReflect.Descriptor instead. +func (*StakeLinking) Descriptor() ([]byte, []int) { return file_events_v1_events_proto_rawDescGZIP(), []int{0} } -func (x *StakingEvent) GetId() string { +func (x *StakeLinking) GetId() string { if x != nil { return x.Id } return "" } -func (x *StakingEvent) GetType() StakingEvent_Type { +func (x *StakeLinking) GetType() StakeLinking_Type { if x != nil { return x.Type } - return StakingEvent_TYPE_UNSPECIFIED + return StakeLinking_TYPE_UNSPECIFIED } -func (x *StakingEvent) GetTs() int64 { +func (x *StakeLinking) GetTs() int64 { if x != nil { return x.Ts } return 0 } -func (x *StakingEvent) GetParty() string { +func (x *StakeLinking) GetParty() string { if x != nil { return x.Party } return "" } -func (x *StakingEvent) GetAmount() string { +func (x *StakeLinking) GetAmount() string { if x != nil { return x.Amount } return "" } +func (x *StakeLinking) GetStatus() StakeLinking_Status { + if x != nil { + return x.Status + } + return StakeLinking_STATUS_UNSPECIFIED +} + +func (x *StakeLinking) GetFinalizedAt() int64 { + if x != nil { + return x.FinalizedAt + } + return 0 +} + +func (x *StakeLinking) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +type CheckpointEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` + BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (x *CheckpointEvent) Reset() { + *x = CheckpointEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_events_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckpointEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckpointEvent) ProtoMessage() {} + +func (x *CheckpointEvent) ProtoReflect() protoreflect.Message { + mi := &file_events_v1_events_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CheckpointEvent.ProtoReflect.Descriptor instead. +func (*CheckpointEvent) Descriptor() ([]byte, []int) { + return file_events_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *CheckpointEvent) GetHash() string { + if x != nil { + return x.Hash + } + return "" +} + +func (x *CheckpointEvent) GetBlockHash() string { + if x != nil { + return x.BlockHash + } + return "" +} + +func (x *CheckpointEvent) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +type RewardPayoutEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + EpochSeq string `protobuf:"bytes,2,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` + Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + PercentOfTotalReward string `protobuf:"bytes,5,opt,name=percent_of_total_reward,json=percentOfTotalReward,proto3" json:"percent_of_total_reward,omitempty"` + Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *RewardPayoutEvent) Reset() { + *x = RewardPayoutEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_events_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RewardPayoutEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewardPayoutEvent) ProtoMessage() {} + +func (x *RewardPayoutEvent) ProtoReflect() protoreflect.Message { + mi := &file_events_v1_events_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RewardPayoutEvent.ProtoReflect.Descriptor instead. +func (*RewardPayoutEvent) Descriptor() ([]byte, []int) { + return file_events_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *RewardPayoutEvent) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *RewardPayoutEvent) GetEpochSeq() string { + if x != nil { + return x.EpochSeq + } + return "" +} + +func (x *RewardPayoutEvent) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +func (x *RewardPayoutEvent) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *RewardPayoutEvent) GetPercentOfTotalReward() string { + if x != nil { + return x.PercentOfTotalReward + } + return "" +} + +func (x *RewardPayoutEvent) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +//ValidatorScoreEvent is the score a validator gets for a given epoch +type ValidatorScoreEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + EpochSeq string `protobuf:"bytes,2,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` + ValidatorScore string `protobuf:"bytes,3,opt,name=validator_score,json=validatorScore,proto3" json:"validator_score,omitempty"` + NormalisedScore string `protobuf:"bytes,4,opt,name=normalised_score,json=normalisedScore,proto3" json:"normalised_score,omitempty"` +} + +func (x *ValidatorScoreEvent) Reset() { + *x = ValidatorScoreEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_events_v1_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidatorScoreEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidatorScoreEvent) ProtoMessage() {} + +func (x *ValidatorScoreEvent) ProtoReflect() protoreflect.Message { + mi := &file_events_v1_events_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidatorScoreEvent.ProtoReflect.Descriptor instead. +func (*ValidatorScoreEvent) Descriptor() ([]byte, []int) { + return file_events_v1_events_proto_rawDescGZIP(), []int{3} +} + +func (x *ValidatorScoreEvent) GetNodeId() string { + if x != nil { + return x.NodeId + } + return "" +} + +func (x *ValidatorScoreEvent) GetEpochSeq() string { + if x != nil { + return x.EpochSeq + } + return "" +} + +func (x *ValidatorScoreEvent) GetValidatorScore() string { + if x != nil { + return x.ValidatorScore + } + return "" +} + +func (x *ValidatorScoreEvent) GetNormalisedScore() string { + if x != nil { + return x.NormalisedScore + } + return "" +} + //DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect type DelegationBalanceEvent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` - NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + EpochSeq string `protobuf:"bytes,4,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` } func (x *DelegationBalanceEvent) Reset() { *x = DelegationBalanceEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[1] + mi := &file_events_v1_events_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -382,7 +696,7 @@ func (x *DelegationBalanceEvent) String() string { func (*DelegationBalanceEvent) ProtoMessage() {} func (x *DelegationBalanceEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[1] + mi := &file_events_v1_events_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -395,7 +709,7 @@ func (x *DelegationBalanceEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use DelegationBalanceEvent.ProtoReflect.Descriptor instead. func (*DelegationBalanceEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{1} + return file_events_v1_events_proto_rawDescGZIP(), []int{4} } func (x *DelegationBalanceEvent) GetParty() string { @@ -419,6 +733,13 @@ func (x *DelegationBalanceEvent) GetAmount() uint64 { return 0 } +func (x *DelegationBalanceEvent) GetEpochSeq() string { + if x != nil { + return x.EpochSeq + } + return "" +} + //PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch type PendingDelegationBalanceEvent struct { state protoimpl.MessageState @@ -429,12 +750,13 @@ type PendingDelegationBalanceEvent struct { NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` DelegationAmount uint64 `protobuf:"varint,3,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"` UndelegationAmount uint64 `protobuf:"varint,4,opt,name=undelegation_amount,json=undelegationAmount,proto3" json:"undelegation_amount,omitempty"` + EpochSeq string `protobuf:"bytes,5,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` } func (x *PendingDelegationBalanceEvent) Reset() { *x = PendingDelegationBalanceEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[2] + mi := &file_events_v1_events_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -447,7 +769,7 @@ func (x *PendingDelegationBalanceEvent) String() string { func (*PendingDelegationBalanceEvent) ProtoMessage() {} func (x *PendingDelegationBalanceEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[2] + mi := &file_events_v1_events_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -460,7 +782,7 @@ func (x *PendingDelegationBalanceEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use PendingDelegationBalanceEvent.ProtoReflect.Descriptor instead. func (*PendingDelegationBalanceEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{2} + return file_events_v1_events_proto_rawDescGZIP(), []int{5} } func (x *PendingDelegationBalanceEvent) GetParty() string { @@ -491,6 +813,13 @@ func (x *PendingDelegationBalanceEvent) GetUndelegationAmount() uint64 { return 0 } +func (x *PendingDelegationBalanceEvent) GetEpochSeq() string { + if x != nil { + return x.EpochSeq + } + return "" +} + // MarketEvent - the common denominator for all market events // interface has a method to return a string for logging type MarketEvent struct { @@ -507,7 +836,7 @@ type MarketEvent struct { func (x *MarketEvent) Reset() { *x = MarketEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[3] + mi := &file_events_v1_events_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -520,7 +849,7 @@ func (x *MarketEvent) String() string { func (*MarketEvent) ProtoMessage() {} func (x *MarketEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[3] + mi := &file_events_v1_events_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -533,7 +862,7 @@ func (x *MarketEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use MarketEvent.ProtoReflect.Descriptor instead. func (*MarketEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{3} + return file_events_v1_events_proto_rawDescGZIP(), []int{6} } func (x *MarketEvent) GetMarketId() string { @@ -575,7 +904,7 @@ type TxErrorEvent struct { func (x *TxErrorEvent) Reset() { *x = TxErrorEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[4] + mi := &file_events_v1_events_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -588,7 +917,7 @@ func (x *TxErrorEvent) String() string { func (*TxErrorEvent) ProtoMessage() {} func (x *TxErrorEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[4] + mi := &file_events_v1_events_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -601,7 +930,7 @@ func (x *TxErrorEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use TxErrorEvent.ProtoReflect.Descriptor instead. func (*TxErrorEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{4} + return file_events_v1_events_proto_rawDescGZIP(), []int{7} } func (x *TxErrorEvent) GetPartyId() string { @@ -733,7 +1062,7 @@ type TimeUpdate struct { func (x *TimeUpdate) Reset() { *x = TimeUpdate{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[5] + mi := &file_events_v1_events_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -746,7 +1075,7 @@ func (x *TimeUpdate) String() string { func (*TimeUpdate) ProtoMessage() {} func (x *TimeUpdate) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[5] + mi := &file_events_v1_events_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -759,7 +1088,7 @@ func (x *TimeUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeUpdate.ProtoReflect.Descriptor instead. func (*TimeUpdate) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{5} + return file_events_v1_events_proto_rawDescGZIP(), []int{8} } func (x *TimeUpdate) GetTimestamp() int64 { @@ -788,7 +1117,7 @@ type EpochEvent struct { func (x *EpochEvent) Reset() { *x = EpochEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[6] + mi := &file_events_v1_events_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -801,7 +1130,7 @@ func (x *EpochEvent) String() string { func (*EpochEvent) ProtoMessage() {} func (x *EpochEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[6] + mi := &file_events_v1_events_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -814,7 +1143,7 @@ func (x *EpochEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use EpochEvent.ProtoReflect.Descriptor instead. func (*EpochEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{6} + return file_events_v1_events_proto_rawDescGZIP(), []int{9} } func (x *EpochEvent) GetSeq() uint64 { @@ -858,7 +1187,7 @@ type TransferResponses struct { func (x *TransferResponses) Reset() { *x = TransferResponses{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[7] + mi := &file_events_v1_events_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +1200,7 @@ func (x *TransferResponses) String() string { func (*TransferResponses) ProtoMessage() {} func (x *TransferResponses) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[7] + mi := &file_events_v1_events_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +1213,7 @@ func (x *TransferResponses) ProtoReflect() protoreflect.Message { // Deprecated: Use TransferResponses.ProtoReflect.Descriptor instead. func (*TransferResponses) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{7} + return file_events_v1_events_proto_rawDescGZIP(), []int{10} } func (x *TransferResponses) GetResponses() []*proto1.TransferResponse { @@ -914,7 +1243,7 @@ type PositionResolution struct { func (x *PositionResolution) Reset() { *x = PositionResolution{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[8] + mi := &file_events_v1_events_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -927,7 +1256,7 @@ func (x *PositionResolution) String() string { func (*PositionResolution) ProtoMessage() {} func (x *PositionResolution) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[8] + mi := &file_events_v1_events_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -940,7 +1269,7 @@ func (x *PositionResolution) ProtoReflect() protoreflect.Message { // Deprecated: Use PositionResolution.ProtoReflect.Descriptor instead. func (*PositionResolution) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{8} + return file_events_v1_events_proto_rawDescGZIP(), []int{11} } func (x *PositionResolution) GetMarketId() string { @@ -988,7 +1317,7 @@ type LossSocialization struct { func (x *LossSocialization) Reset() { *x = LossSocialization{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[9] + mi := &file_events_v1_events_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1001,7 +1330,7 @@ func (x *LossSocialization) String() string { func (*LossSocialization) ProtoMessage() {} func (x *LossSocialization) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[9] + mi := &file_events_v1_events_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1014,7 +1343,7 @@ func (x *LossSocialization) ProtoReflect() protoreflect.Message { // Deprecated: Use LossSocialization.ProtoReflect.Descriptor instead. func (*LossSocialization) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{9} + return file_events_v1_events_proto_rawDescGZIP(), []int{12} } func (x *LossSocialization) GetMarketId() string { @@ -1054,7 +1383,7 @@ type TradeSettlement struct { func (x *TradeSettlement) Reset() { *x = TradeSettlement{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[10] + mi := &file_events_v1_events_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1067,7 +1396,7 @@ func (x *TradeSettlement) String() string { func (*TradeSettlement) ProtoMessage() {} func (x *TradeSettlement) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[10] + mi := &file_events_v1_events_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1080,7 +1409,7 @@ func (x *TradeSettlement) ProtoReflect() protoreflect.Message { // Deprecated: Use TradeSettlement.ProtoReflect.Descriptor instead. func (*TradeSettlement) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{10} + return file_events_v1_events_proto_rawDescGZIP(), []int{13} } func (x *TradeSettlement) GetSize() int64 { @@ -1117,7 +1446,7 @@ type SettlePosition struct { func (x *SettlePosition) Reset() { *x = SettlePosition{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[11] + mi := &file_events_v1_events_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1130,7 +1459,7 @@ func (x *SettlePosition) String() string { func (*SettlePosition) ProtoMessage() {} func (x *SettlePosition) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[11] + mi := &file_events_v1_events_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1143,7 +1472,7 @@ func (x *SettlePosition) ProtoReflect() protoreflect.Message { // Deprecated: Use SettlePosition.ProtoReflect.Descriptor instead. func (*SettlePosition) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{11} + return file_events_v1_events_proto_rawDescGZIP(), []int{14} } func (x *SettlePosition) GetMarketId() string { @@ -1195,7 +1524,7 @@ type SettleDistressed struct { func (x *SettleDistressed) Reset() { *x = SettleDistressed{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[12] + mi := &file_events_v1_events_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1208,7 +1537,7 @@ func (x *SettleDistressed) String() string { func (*SettleDistressed) ProtoMessage() {} func (x *SettleDistressed) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[12] + mi := &file_events_v1_events_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1221,7 +1550,7 @@ func (x *SettleDistressed) ProtoReflect() protoreflect.Message { // Deprecated: Use SettleDistressed.ProtoReflect.Descriptor instead. func (*SettleDistressed) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{12} + return file_events_v1_events_proto_rawDescGZIP(), []int{15} } func (x *SettleDistressed) GetMarketId() string { @@ -1267,7 +1596,7 @@ type MarketTick struct { func (x *MarketTick) Reset() { *x = MarketTick{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[13] + mi := &file_events_v1_events_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1280,7 +1609,7 @@ func (x *MarketTick) String() string { func (*MarketTick) ProtoMessage() {} func (x *MarketTick) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[13] + mi := &file_events_v1_events_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1293,7 +1622,7 @@ func (x *MarketTick) ProtoReflect() protoreflect.Message { // Deprecated: Use MarketTick.ProtoReflect.Descriptor instead. func (*MarketTick) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{13} + return file_events_v1_events_proto_rawDescGZIP(), []int{16} } func (x *MarketTick) GetId() string { @@ -1336,7 +1665,7 @@ type AuctionEvent struct { func (x *AuctionEvent) Reset() { *x = AuctionEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[14] + mi := &file_events_v1_events_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1349,7 +1678,7 @@ func (x *AuctionEvent) String() string { func (*AuctionEvent) ProtoMessage() {} func (x *AuctionEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[14] + mi := &file_events_v1_events_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1362,7 +1691,7 @@ func (x *AuctionEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use AuctionEvent.ProtoReflect.Descriptor instead. func (*AuctionEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{14} + return file_events_v1_events_proto_rawDescGZIP(), []int{17} } func (x *AuctionEvent) GetMarketId() string { @@ -1420,20 +1749,22 @@ type ValidatorUpdate struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Public key of validator node - PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + // Vega public key of validator node + VegaPubKey string `protobuf:"bytes,1,opt,name=vega_pub_key,json=vegaPubKey,proto3" json:"vega_pub_key,omitempty"` + // Ethereum public key of validator node + EthereumAddress string `protobuf:"bytes,2,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"` // Public key of Tendermint - TmPubKey string `protobuf:"bytes,2,opt,name=tm_pub_key,json=tmPubKey,proto3" json:"tm_pub_key,omitempty"` + TmPubKey string `protobuf:"bytes,3,opt,name=tm_pub_key,json=tmPubKey,proto3" json:"tm_pub_key,omitempty"` // URL with more info on the node - InfoUrl string `protobuf:"bytes,3,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"` + InfoUrl string `protobuf:"bytes,4,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"` // Country code (ISO 3166-1 alpha-2) for the location of the node - Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` } func (x *ValidatorUpdate) Reset() { *x = ValidatorUpdate{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[15] + mi := &file_events_v1_events_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1446,7 +1777,7 @@ func (x *ValidatorUpdate) String() string { func (*ValidatorUpdate) ProtoMessage() {} func (x *ValidatorUpdate) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[15] + mi := &file_events_v1_events_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1459,12 +1790,19 @@ func (x *ValidatorUpdate) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidatorUpdate.ProtoReflect.Descriptor instead. func (*ValidatorUpdate) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{15} + return file_events_v1_events_proto_rawDescGZIP(), []int{18} } -func (x *ValidatorUpdate) GetPubKey() string { +func (x *ValidatorUpdate) GetVegaPubKey() string { if x != nil { - return x.PubKey + return x.VegaPubKey + } + return "" +} + +func (x *ValidatorUpdate) GetEthereumAddress() string { + if x != nil { + return x.EthereumAddress } return "" } @@ -1531,10 +1869,12 @@ type BusEvent struct { // *BusEvent_OracleSpec // *BusEvent_OracleData // *BusEvent_DelegationBalance - // *BusEvent_PendingDelegationBalance + // *BusEvent_ValidatorScore // *BusEvent_EpochEvent // *BusEvent_ValidatorUpdate - // *BusEvent_StakingEvent + // *BusEvent_StakeLinking + // *BusEvent_RewardPayout + // *BusEvent_Checkpoint // *BusEvent_Market // *BusEvent_TxErrEvent Event isBusEvent_Event `protobuf_oneof:"event"` @@ -1543,7 +1883,7 @@ type BusEvent struct { func (x *BusEvent) Reset() { *x = BusEvent{} if protoimpl.UnsafeEnabled { - mi := &file_events_v1_events_proto_msgTypes[16] + mi := &file_events_v1_events_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1556,7 +1896,7 @@ func (x *BusEvent) String() string { func (*BusEvent) ProtoMessage() {} func (x *BusEvent) ProtoReflect() protoreflect.Message { - mi := &file_events_v1_events_proto_msgTypes[16] + mi := &file_events_v1_events_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1569,7 +1909,7 @@ func (x *BusEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use BusEvent.ProtoReflect.Descriptor instead. func (*BusEvent) Descriptor() ([]byte, []int) { - return file_events_v1_events_proto_rawDescGZIP(), []int{16} + return file_events_v1_events_proto_rawDescGZIP(), []int{19} } func (x *BusEvent) GetId() string { @@ -1796,9 +2136,9 @@ func (x *BusEvent) GetDelegationBalance() *DelegationBalanceEvent { return nil } -func (x *BusEvent) GetPendingDelegationBalance() *PendingDelegationBalanceEvent { - if x, ok := x.GetEvent().(*BusEvent_PendingDelegationBalance); ok { - return x.PendingDelegationBalance +func (x *BusEvent) GetValidatorScore() *ValidatorScoreEvent { + if x, ok := x.GetEvent().(*BusEvent_ValidatorScore); ok { + return x.ValidatorScore } return nil } @@ -1817,9 +2157,23 @@ func (x *BusEvent) GetValidatorUpdate() *ValidatorUpdate { return nil } -func (x *BusEvent) GetStakingEvent() *StakingEvent { - if x, ok := x.GetEvent().(*BusEvent_StakingEvent); ok { - return x.StakingEvent +func (x *BusEvent) GetStakeLinking() *StakeLinking { + if x, ok := x.GetEvent().(*BusEvent_StakeLinking); ok { + return x.StakeLinking + } + return nil +} + +func (x *BusEvent) GetRewardPayout() *RewardPayoutEvent { + if x, ok := x.GetEvent().(*BusEvent_RewardPayout); ok { + return x.RewardPayout + } + return nil +} + +func (x *BusEvent) GetCheckpoint() *CheckpointEvent { + if x, ok := x.GetEvent().(*BusEvent_Checkpoint); ok { + return x.Checkpoint } return nil } @@ -1982,9 +2336,9 @@ type BusEvent_DelegationBalance struct { DelegationBalance *DelegationBalanceEvent `protobuf:"bytes,129,opt,name=delegation_balance,json=delegationBalance,proto3,oneof"` } -type BusEvent_PendingDelegationBalance struct { - // Pending delegation balance events - PendingDelegationBalance *PendingDelegationBalanceEvent `protobuf:"bytes,130,opt,name=pending_delegation_balance,json=pendingDelegationBalance,proto3,oneof"` +type BusEvent_ValidatorScore struct { + // Validator score calcualted + ValidatorScore *ValidatorScoreEvent `protobuf:"bytes,130,opt,name=validator_score,json=validatorScore,proto3,oneof"` } type BusEvent_EpochEvent struct { @@ -1997,9 +2351,19 @@ type BusEvent_ValidatorUpdate struct { ValidatorUpdate *ValidatorUpdate `protobuf:"bytes,132,opt,name=validator_update,json=validatorUpdate,proto3,oneof"` } -type BusEvent_StakingEvent struct { +type BusEvent_StakeLinking struct { // Staking event - StakingEvent *StakingEvent `protobuf:"bytes,133,opt,name=staking_event,json=stakingEvent,proto3,oneof"` + StakeLinking *StakeLinking `protobuf:"bytes,133,opt,name=stake_linking,json=stakeLinking,proto3,oneof"` +} + +type BusEvent_RewardPayout struct { + // Reward payout event + RewardPayout *RewardPayoutEvent `protobuf:"bytes,134,opt,name=reward_payout,json=rewardPayout,proto3,oneof"` +} + +type BusEvent_Checkpoint struct { + // Checkpoint was created + Checkpoint *CheckpointEvent `protobuf:"bytes,135,opt,name=checkpoint,proto3,oneof"` } type BusEvent_Market struct { @@ -2068,13 +2432,17 @@ func (*BusEvent_OracleData) isBusEvent_Event() {} func (*BusEvent_DelegationBalance) isBusEvent_Event() {} -func (*BusEvent_PendingDelegationBalance) isBusEvent_Event() {} +func (*BusEvent_ValidatorScore) isBusEvent_Event() {} func (*BusEvent_EpochEvent) isBusEvent_Event() {} func (*BusEvent_ValidatorUpdate) isBusEvent_Event() {} -func (*BusEvent_StakingEvent) isBusEvent_Event() {} +func (*BusEvent_StakeLinking) isBusEvent_Event() {} + +func (*BusEvent_RewardPayout) isBusEvent_Event() {} + +func (*BusEvent_Checkpoint) isBusEvent_Event() {} func (*BusEvent_Market) isBusEvent_Event() {} @@ -2096,383 +2464,444 @@ var file_events_v1_events_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, + 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x04, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x02, 0x22, 0x5f, 0x0a, 0x16, 0x44, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xac, 0x01, 0x0a, 0x1d, - 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x13, 0x75, 0x6e, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x44, 0x0a, 0x0b, 0x4d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, + 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x66, 0x69, + 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, + 0x73, 0x68, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x10, 0x01, 0x12, + 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4c, 0x49, 0x4e, 0x4b, 0x10, 0x02, + 0x22, 0x5e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, + 0x22, 0x67, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xc9, 0x01, 0x0a, 0x11, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, + 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x53, + 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x35, 0x0a, 0x17, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x6f, 0x66, 0x5f, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x14, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x4f, 0x66, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x9f, 0x01, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, + 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, + 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x53, 0x65, 0x71, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x10, + 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x73, + 0x65, 0x64, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x7c, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x53, 0x65, 0x71, 0x22, 0xc9, 0x01, 0x0a, 0x1d, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, + 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x13, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x12, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x65, + 0x71, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x65, + 0x71, 0x22, 0x44, 0x0a, 0x0b, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xa6, 0x05, 0x0a, 0x0c, 0x54, 0x78, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x4e, 0x0a, 0x10, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0f, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x0f, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x18, + 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x41, 0x6d, + 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x12, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x68, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x12, 0x4b, 0x0a, 0x0f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0e, 0x76, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x76, 0x0a, 0x1e, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x71, 0x75, + 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1c, 0x6c, 0x69, 0x71, 0x75, + 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x13, 0x77, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x77, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x2a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x79, 0x0a, 0x0a, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, + 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x09, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x22, 0xa6, 0x05, 0x0a, 0x0c, 0x54, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, - 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x4e, 0x0a, 0x10, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, - 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x0f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x61, - 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x0e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x12, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x4b, 0x0a, 0x0f, - 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x6f, 0x74, 0x65, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x76, 0x0a, 0x1e, 0x6c, 0x69, 0x71, - 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x6a, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x1c, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x57, 0x0a, 0x13, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x75, - 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x79, 0x0a, 0x0a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x22, 0x49, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x12, - 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, + 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x63, 0x0a, + 0x11, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x5f, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x72, - 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x63, 0x0a, 0x11, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, - 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x0f, 0x54, - 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x74, - 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x11, 0x74, 0x72, 0x61, - 0x64, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x78, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x74, 0x6c, - 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, + 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, + 0xac, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x12, 0x4c, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, + 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x72, + 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x78, + 0x0a, 0x10, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, + 0x72, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x67, + 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x30, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x85, 0x02, 0x0a, 0x0c, 0x41, + 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, - 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, - 0x65, 0x22, 0x30, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, - 0x69, 0x6d, 0x65, 0x22, 0x85, 0x02, 0x0a, 0x0c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x75, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x70, 0x65, 0x6e, - 0x69, 0x6e, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, - 0x61, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, - 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x0f, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, - 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x0a, 0x74, 0x6d, 0x5f, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6d, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0xad, 0x11, 0x0a, 0x08, 0x42, - 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x3d, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x70, 0x65, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0e, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, + 0x2e, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, + 0x41, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x70, + 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, + 0x67, 0x61, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x65, 0x75, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x74, 0x6d, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6d, 0x50, 0x75, 0x62, 0x4b, 0x65, + 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x9d, 0x12, 0x0a, 0x08, 0x42, 0x75, 0x73, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0a, + 0x74, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, + 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x55, + 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, + 0x00, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x68, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x6a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, + 0x79, 0x48, 0x00, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x72, + 0x61, 0x64, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x48, 0x00, 0x52, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x12, + 0x39, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, + 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, + 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, + 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, + 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, 0x6f, + 0x74, 0x65, 0x48, 0x00, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x48, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x6c, 0x6f, 0x73, + 0x73, 0x5f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x73, 0x73, + 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, + 0x0f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x11, 0x73, 0x65, 0x74, 0x74, + 0x6c, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x73, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x74, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x48, + 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x23, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x05, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, + 0x74, 0x69, 0x63, 0x6b, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x54, 0x69, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x61, 0x6c, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0a, 0x77, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x18, 0x78, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x79, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, + 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x7a, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x13, 0x6c, 0x69, 0x71, + 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x7c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, + 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x48, 0x00, 0x52, 0x12, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x7d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0d, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, + 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x7e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x7f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x81, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x4f, 0x0a, + 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x18, 0x82, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x3e, + 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x83, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x48, 0x00, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, - 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x73, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x48, 0x00, 0x52, - 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, - 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x05, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, - 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x05, 0x70, 0x61, 0x72, - 0x74, 0x79, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x79, 0x48, 0x00, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x23, - 0x0a, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x48, 0x00, 0x52, 0x05, 0x74, 0x72, - 0x61, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x73, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x48, 0x00, - 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2c, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x04, - 0x76, 0x6f, 0x74, 0x65, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x48, 0x00, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x12, 0x33, - 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x6f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x0d, - 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, - 0x12, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x73, 0x73, 0x53, - 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, - 0x6c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, - 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, - 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x11, - 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, - 0x64, 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, - 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x35, 0x0a, - 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, - 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x75, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, - 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x48, 0x00, - 0x52, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x07, - 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x78, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x48, 0x00, 0x52, 0x07, - 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x79, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x33, 0x0a, 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x18, 0x7a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, - 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x69, 0x73, 0x6b, - 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x7b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x4b, 0x0a, - 0x13, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x7c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, - 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x7d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, - 0x18, 0x7e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x48, 0x00, - 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a, 0x0b, - 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x7f, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, 0x61, - 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x81, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x6e, 0x0a, 0x1a, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x82, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x83, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x4d, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x84, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, - 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x18, 0x85, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x41, - 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0xd1, - 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x78, 0x45, 0x72, 0x72, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0xa7, 0x09, 0x0a, 0x0c, 0x42, - 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x42, - 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x42, - 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4c, - 0x4c, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, - 0x45, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x52, - 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x53, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, - 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x53, - 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, - 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x59, - 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, - 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, - 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x53, 0x10, 0x09, 0x12, 0x1b, - 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x42, - 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, - 0x54, 0x45, 0x10, 0x0b, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x41, - 0x54, 0x41, 0x10, 0x0c, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, - 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x0d, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x5f, 0x53, - 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0e, 0x12, 0x22, - 0x0a, 0x1e, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x0f, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, - 0x52, 0x45, 0x53, 0x53, 0x45, 0x44, 0x10, 0x10, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, - 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x42, - 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, - 0x53, 0x45, 0x54, 0x10, 0x12, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x54, - 0x49, 0x43, 0x4b, 0x10, 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, - 0x41, 0x4c, 0x10, 0x14, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x15, + 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, + 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x84, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, + 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x85, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, + 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, + 0x69, 0x6e, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x61, + 0x79, 0x6f, 0x75, 0x74, 0x18, 0x86, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, + 0x52, 0x0c, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x42, + 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x87, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x74, 0x78, + 0x5f, 0x65, 0x72, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0xd1, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, + 0x00, 0x52, 0x0a, 0x74, 0x78, 0x45, 0x72, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x07, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0xe3, 0x09, 0x0a, 0x0c, 0x42, 0x75, 0x73, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, + 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, + 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, + 0x4e, 0x53, 0x45, 0x53, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x18, + 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, + 0x4e, 0x54, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x59, 0x10, 0x07, 0x12, 0x18, + 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x54, 0x52, 0x41, 0x44, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, + 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x53, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x55, + 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, + 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x0b, + 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x0c, + 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, + 0x45, 0x10, 0x0d, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, + 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, + 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, + 0x54, 0x4c, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0f, 0x12, 0x24, + 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x45, 0x53, 0x53, + 0x45, 0x44, 0x10, 0x10, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x10, + 0x12, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x54, 0x49, 0x43, 0x4b, 0x10, + 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x10, 0x14, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, + 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x15, 0x12, 0x1a, 0x0a, 0x16, + 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, + 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x49, 0x53, 0x4b, 0x5f, + 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x17, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, + 0x52, 0x4b, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x18, 0x12, 0x26, + 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, + 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x19, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, + 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x1a, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, + 0x4c, 0x45, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x10, 0x1b, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, + 0x4c, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x1c, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, + 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x1d, + 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x53, 0x43, 0x4f, + 0x52, 0x45, 0x10, 0x1e, 0x12, 0x1f, 0x0a, 0x1b, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x50, 0x4f, 0x43, 0x48, 0x5f, 0x55, 0x50, 0x44, + 0x41, 0x54, 0x45, 0x10, 0x1f, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, + 0x52, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x20, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, + 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, + 0x4b, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x21, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, - 0x49, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x17, 0x12, 0x24, 0x0a, 0x20, - 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, - 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, - 0x10, 0x18, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x50, - 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x19, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, - 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, - 0x4b, 0x45, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x1a, 0x12, 0x1e, 0x0a, - 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x10, 0x1b, 0x12, 0x1e, 0x0a, - 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x1c, 0x12, 0x25, 0x0a, - 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, - 0x43, 0x45, 0x10, 0x1d, 0x12, 0x2d, 0x0a, 0x29, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, - 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, - 0x45, 0x10, 0x1e, 0x12, 0x1f, 0x0a, 0x1b, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x50, 0x4f, 0x43, 0x48, 0x5f, 0x55, 0x50, 0x44, 0x41, - 0x54, 0x45, 0x10, 0x1f, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, - 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x20, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, 0x53, - 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, - 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 0x21, 0x12, 0x19, 0x0a, 0x15, 0x42, - 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, - 0x52, 0x4b, 0x45, 0x54, 0x10, 0x65, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x58, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x10, 0xc9, 0x01, 0x42, 0x4b, 0x0a, 0x1e, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x29, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, - 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x45, 0x57, 0x41, 0x52, 0x44, 0x5f, 0x50, 0x41, 0x59, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x56, 0x45, + 0x4e, 0x54, 0x10, 0x22, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x50, 0x4f, 0x49, 0x4e, + 0x54, 0x10, 0x23, 0x12, 0x19, 0x0a, 0x15, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x10, 0x65, 0x12, 0x1c, + 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x54, 0x58, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xc9, 0x01, 0x42, 0x4b, 0x0a, 0x1e, + 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x29, + 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -2487,109 +2916,116 @@ func file_events_v1_events_proto_rawDescGZIP() []byte { return file_events_v1_events_proto_rawDescData } -var file_events_v1_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_events_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_events_v1_events_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_events_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_events_v1_events_proto_goTypes = []interface{}{ (BusEventType)(0), // 0: vega.events.v1.BusEventType - (StakingEvent_Type)(0), // 1: vega.events.v1.StakingEvent.Type - (*StakingEvent)(nil), // 2: vega.events.v1.StakingEvent - (*DelegationBalanceEvent)(nil), // 3: vega.events.v1.DelegationBalanceEvent - (*PendingDelegationBalanceEvent)(nil), // 4: vega.events.v1.PendingDelegationBalanceEvent - (*MarketEvent)(nil), // 5: vega.events.v1.MarketEvent - (*TxErrorEvent)(nil), // 6: vega.events.v1.TxErrorEvent - (*TimeUpdate)(nil), // 7: vega.events.v1.TimeUpdate - (*EpochEvent)(nil), // 8: vega.events.v1.EpochEvent - (*TransferResponses)(nil), // 9: vega.events.v1.TransferResponses - (*PositionResolution)(nil), // 10: vega.events.v1.PositionResolution - (*LossSocialization)(nil), // 11: vega.events.v1.LossSocialization - (*TradeSettlement)(nil), // 12: vega.events.v1.TradeSettlement - (*SettlePosition)(nil), // 13: vega.events.v1.SettlePosition - (*SettleDistressed)(nil), // 14: vega.events.v1.SettleDistressed - (*MarketTick)(nil), // 15: vega.events.v1.MarketTick - (*AuctionEvent)(nil), // 16: vega.events.v1.AuctionEvent - (*ValidatorUpdate)(nil), // 17: vega.events.v1.ValidatorUpdate - (*BusEvent)(nil), // 18: vega.events.v1.BusEvent - (*v1.OrderSubmission)(nil), // 19: vega.commands.v1.OrderSubmission - (*v1.OrderAmendment)(nil), // 20: vega.commands.v1.OrderAmendment - (*v1.OrderCancellation)(nil), // 21: vega.commands.v1.OrderCancellation - (*v1.ProposalSubmission)(nil), // 22: vega.commands.v1.ProposalSubmission - (*v1.VoteSubmission)(nil), // 23: vega.commands.v1.VoteSubmission - (*v1.LiquidityProvisionSubmission)(nil), // 24: vega.commands.v1.LiquidityProvisionSubmission - (*v1.WithdrawSubmission)(nil), // 25: vega.commands.v1.WithdrawSubmission - (*proto1.TransferResponse)(nil), // 26: vega.TransferResponse - (proto1.AuctionTrigger)(0), // 27: vega.AuctionTrigger - (*proto1.Order)(nil), // 28: vega.Order - (*proto1.Account)(nil), // 29: vega.Account - (*proto1.Party)(nil), // 30: vega.Party - (*proto1.Trade)(nil), // 31: vega.Trade - (*proto1.MarginLevels)(nil), // 32: vega.MarginLevels - (*proto1.Proposal)(nil), // 33: vega.Proposal - (*proto1.Vote)(nil), // 34: vega.Vote - (*proto1.MarketData)(nil), // 35: vega.MarketData - (*v1.NodeSignature)(nil), // 36: vega.commands.v1.NodeSignature - (*proto1.Market)(nil), // 37: vega.Market - (*proto1.Asset)(nil), // 38: vega.Asset - (*proto1.Withdrawal)(nil), // 39: vega.Withdrawal - (*proto1.Deposit)(nil), // 40: vega.Deposit - (*proto1.RiskFactor)(nil), // 41: vega.RiskFactor - (*proto1.NetworkParameter)(nil), // 42: vega.NetworkParameter - (*proto1.LiquidityProvision)(nil), // 43: vega.LiquidityProvision - (*v11.OracleSpec)(nil), // 44: oracles.v1.OracleSpec - (*v11.OracleData)(nil), // 45: oracles.v1.OracleData + (StakeLinking_Type)(0), // 1: vega.events.v1.StakeLinking.Type + (StakeLinking_Status)(0), // 2: vega.events.v1.StakeLinking.Status + (*StakeLinking)(nil), // 3: vega.events.v1.StakeLinking + (*CheckpointEvent)(nil), // 4: vega.events.v1.CheckpointEvent + (*RewardPayoutEvent)(nil), // 5: vega.events.v1.RewardPayoutEvent + (*ValidatorScoreEvent)(nil), // 6: vega.events.v1.ValidatorScoreEvent + (*DelegationBalanceEvent)(nil), // 7: vega.events.v1.DelegationBalanceEvent + (*PendingDelegationBalanceEvent)(nil), // 8: vega.events.v1.PendingDelegationBalanceEvent + (*MarketEvent)(nil), // 9: vega.events.v1.MarketEvent + (*TxErrorEvent)(nil), // 10: vega.events.v1.TxErrorEvent + (*TimeUpdate)(nil), // 11: vega.events.v1.TimeUpdate + (*EpochEvent)(nil), // 12: vega.events.v1.EpochEvent + (*TransferResponses)(nil), // 13: vega.events.v1.TransferResponses + (*PositionResolution)(nil), // 14: vega.events.v1.PositionResolution + (*LossSocialization)(nil), // 15: vega.events.v1.LossSocialization + (*TradeSettlement)(nil), // 16: vega.events.v1.TradeSettlement + (*SettlePosition)(nil), // 17: vega.events.v1.SettlePosition + (*SettleDistressed)(nil), // 18: vega.events.v1.SettleDistressed + (*MarketTick)(nil), // 19: vega.events.v1.MarketTick + (*AuctionEvent)(nil), // 20: vega.events.v1.AuctionEvent + (*ValidatorUpdate)(nil), // 21: vega.events.v1.ValidatorUpdate + (*BusEvent)(nil), // 22: vega.events.v1.BusEvent + (*v1.OrderSubmission)(nil), // 23: vega.commands.v1.OrderSubmission + (*v1.OrderAmendment)(nil), // 24: vega.commands.v1.OrderAmendment + (*v1.OrderCancellation)(nil), // 25: vega.commands.v1.OrderCancellation + (*v1.ProposalSubmission)(nil), // 26: vega.commands.v1.ProposalSubmission + (*v1.VoteSubmission)(nil), // 27: vega.commands.v1.VoteSubmission + (*v1.LiquidityProvisionSubmission)(nil), // 28: vega.commands.v1.LiquidityProvisionSubmission + (*v1.WithdrawSubmission)(nil), // 29: vega.commands.v1.WithdrawSubmission + (*proto1.TransferResponse)(nil), // 30: vega.TransferResponse + (proto1.AuctionTrigger)(0), // 31: vega.AuctionTrigger + (*proto1.Order)(nil), // 32: vega.Order + (*proto1.Account)(nil), // 33: vega.Account + (*proto1.Party)(nil), // 34: vega.Party + (*proto1.Trade)(nil), // 35: vega.Trade + (*proto1.MarginLevels)(nil), // 36: vega.MarginLevels + (*proto1.Proposal)(nil), // 37: vega.Proposal + (*proto1.Vote)(nil), // 38: vega.Vote + (*proto1.MarketData)(nil), // 39: vega.MarketData + (*v1.NodeSignature)(nil), // 40: vega.commands.v1.NodeSignature + (*proto1.Market)(nil), // 41: vega.Market + (*proto1.Asset)(nil), // 42: vega.Asset + (*proto1.Withdrawal)(nil), // 43: vega.Withdrawal + (*proto1.Deposit)(nil), // 44: vega.Deposit + (*proto1.RiskFactor)(nil), // 45: vega.RiskFactor + (*proto1.NetworkParameter)(nil), // 46: vega.NetworkParameter + (*proto1.LiquidityProvision)(nil), // 47: vega.LiquidityProvision + (*v11.OracleSpec)(nil), // 48: oracles.v1.OracleSpec + (*v11.OracleData)(nil), // 49: oracles.v1.OracleData } var file_events_v1_events_proto_depIdxs = []int32{ - 1, // 0: vega.events.v1.StakingEvent.type:type_name -> vega.events.v1.StakingEvent.Type - 19, // 1: vega.events.v1.TxErrorEvent.order_submission:type_name -> vega.commands.v1.OrderSubmission - 20, // 2: vega.events.v1.TxErrorEvent.order_amendment:type_name -> vega.commands.v1.OrderAmendment - 21, // 3: vega.events.v1.TxErrorEvent.order_cancellation:type_name -> vega.commands.v1.OrderCancellation - 22, // 4: vega.events.v1.TxErrorEvent.proposal:type_name -> vega.commands.v1.ProposalSubmission - 23, // 5: vega.events.v1.TxErrorEvent.vote_submission:type_name -> vega.commands.v1.VoteSubmission - 24, // 6: vega.events.v1.TxErrorEvent.liquidity_provision_submission:type_name -> vega.commands.v1.LiquidityProvisionSubmission - 25, // 7: vega.events.v1.TxErrorEvent.withdraw_submission:type_name -> vega.commands.v1.WithdrawSubmission - 26, // 8: vega.events.v1.TransferResponses.responses:type_name -> vega.TransferResponse - 12, // 9: vega.events.v1.SettlePosition.trade_settlements:type_name -> vega.events.v1.TradeSettlement - 27, // 10: vega.events.v1.AuctionEvent.trigger:type_name -> vega.AuctionTrigger - 27, // 11: vega.events.v1.AuctionEvent.extension_trigger:type_name -> vega.AuctionTrigger - 0, // 12: vega.events.v1.BusEvent.type:type_name -> vega.events.v1.BusEventType - 7, // 13: vega.events.v1.BusEvent.time_update:type_name -> vega.events.v1.TimeUpdate - 9, // 14: vega.events.v1.BusEvent.transfer_responses:type_name -> vega.events.v1.TransferResponses - 10, // 15: vega.events.v1.BusEvent.position_resolution:type_name -> vega.events.v1.PositionResolution - 28, // 16: vega.events.v1.BusEvent.order:type_name -> vega.Order - 29, // 17: vega.events.v1.BusEvent.account:type_name -> vega.Account - 30, // 18: vega.events.v1.BusEvent.party:type_name -> vega.Party - 31, // 19: vega.events.v1.BusEvent.trade:type_name -> vega.Trade - 32, // 20: vega.events.v1.BusEvent.margin_levels:type_name -> vega.MarginLevels - 33, // 21: vega.events.v1.BusEvent.proposal:type_name -> vega.Proposal - 34, // 22: vega.events.v1.BusEvent.vote:type_name -> vega.Vote - 35, // 23: vega.events.v1.BusEvent.market_data:type_name -> vega.MarketData - 36, // 24: vega.events.v1.BusEvent.node_signature:type_name -> vega.commands.v1.NodeSignature - 11, // 25: vega.events.v1.BusEvent.loss_socialization:type_name -> vega.events.v1.LossSocialization - 13, // 26: vega.events.v1.BusEvent.settle_position:type_name -> vega.events.v1.SettlePosition - 14, // 27: vega.events.v1.BusEvent.settle_distressed:type_name -> vega.events.v1.SettleDistressed - 37, // 28: vega.events.v1.BusEvent.market_created:type_name -> vega.Market - 38, // 29: vega.events.v1.BusEvent.asset:type_name -> vega.Asset - 15, // 30: vega.events.v1.BusEvent.market_tick:type_name -> vega.events.v1.MarketTick - 39, // 31: vega.events.v1.BusEvent.withdrawal:type_name -> vega.Withdrawal - 40, // 32: vega.events.v1.BusEvent.deposit:type_name -> vega.Deposit - 16, // 33: vega.events.v1.BusEvent.auction:type_name -> vega.events.v1.AuctionEvent - 41, // 34: vega.events.v1.BusEvent.risk_factor:type_name -> vega.RiskFactor - 42, // 35: vega.events.v1.BusEvent.network_parameter:type_name -> vega.NetworkParameter - 43, // 36: vega.events.v1.BusEvent.liquidity_provision:type_name -> vega.LiquidityProvision - 37, // 37: vega.events.v1.BusEvent.market_updated:type_name -> vega.Market - 44, // 38: vega.events.v1.BusEvent.oracle_spec:type_name -> oracles.v1.OracleSpec - 45, // 39: vega.events.v1.BusEvent.oracle_data:type_name -> oracles.v1.OracleData - 3, // 40: vega.events.v1.BusEvent.delegation_balance:type_name -> vega.events.v1.DelegationBalanceEvent - 4, // 41: vega.events.v1.BusEvent.pending_delegation_balance:type_name -> vega.events.v1.PendingDelegationBalanceEvent - 8, // 42: vega.events.v1.BusEvent.epoch_event:type_name -> vega.events.v1.EpochEvent - 17, // 43: vega.events.v1.BusEvent.validator_update:type_name -> vega.events.v1.ValidatorUpdate - 2, // 44: vega.events.v1.BusEvent.staking_event:type_name -> vega.events.v1.StakingEvent - 5, // 45: vega.events.v1.BusEvent.market:type_name -> vega.events.v1.MarketEvent - 6, // 46: vega.events.v1.BusEvent.tx_err_event:type_name -> vega.events.v1.TxErrorEvent - 47, // [47:47] is the sub-list for method output_type - 47, // [47:47] is the sub-list for method input_type - 47, // [47:47] is the sub-list for extension type_name - 47, // [47:47] is the sub-list for extension extendee - 0, // [0:47] is the sub-list for field type_name + 1, // 0: vega.events.v1.StakeLinking.type:type_name -> vega.events.v1.StakeLinking.Type + 2, // 1: vega.events.v1.StakeLinking.status:type_name -> vega.events.v1.StakeLinking.Status + 23, // 2: vega.events.v1.TxErrorEvent.order_submission:type_name -> vega.commands.v1.OrderSubmission + 24, // 3: vega.events.v1.TxErrorEvent.order_amendment:type_name -> vega.commands.v1.OrderAmendment + 25, // 4: vega.events.v1.TxErrorEvent.order_cancellation:type_name -> vega.commands.v1.OrderCancellation + 26, // 5: vega.events.v1.TxErrorEvent.proposal:type_name -> vega.commands.v1.ProposalSubmission + 27, // 6: vega.events.v1.TxErrorEvent.vote_submission:type_name -> vega.commands.v1.VoteSubmission + 28, // 7: vega.events.v1.TxErrorEvent.liquidity_provision_submission:type_name -> vega.commands.v1.LiquidityProvisionSubmission + 29, // 8: vega.events.v1.TxErrorEvent.withdraw_submission:type_name -> vega.commands.v1.WithdrawSubmission + 30, // 9: vega.events.v1.TransferResponses.responses:type_name -> vega.TransferResponse + 16, // 10: vega.events.v1.SettlePosition.trade_settlements:type_name -> vega.events.v1.TradeSettlement + 31, // 11: vega.events.v1.AuctionEvent.trigger:type_name -> vega.AuctionTrigger + 31, // 12: vega.events.v1.AuctionEvent.extension_trigger:type_name -> vega.AuctionTrigger + 0, // 13: vega.events.v1.BusEvent.type:type_name -> vega.events.v1.BusEventType + 11, // 14: vega.events.v1.BusEvent.time_update:type_name -> vega.events.v1.TimeUpdate + 13, // 15: vega.events.v1.BusEvent.transfer_responses:type_name -> vega.events.v1.TransferResponses + 14, // 16: vega.events.v1.BusEvent.position_resolution:type_name -> vega.events.v1.PositionResolution + 32, // 17: vega.events.v1.BusEvent.order:type_name -> vega.Order + 33, // 18: vega.events.v1.BusEvent.account:type_name -> vega.Account + 34, // 19: vega.events.v1.BusEvent.party:type_name -> vega.Party + 35, // 20: vega.events.v1.BusEvent.trade:type_name -> vega.Trade + 36, // 21: vega.events.v1.BusEvent.margin_levels:type_name -> vega.MarginLevels + 37, // 22: vega.events.v1.BusEvent.proposal:type_name -> vega.Proposal + 38, // 23: vega.events.v1.BusEvent.vote:type_name -> vega.Vote + 39, // 24: vega.events.v1.BusEvent.market_data:type_name -> vega.MarketData + 40, // 25: vega.events.v1.BusEvent.node_signature:type_name -> vega.commands.v1.NodeSignature + 15, // 26: vega.events.v1.BusEvent.loss_socialization:type_name -> vega.events.v1.LossSocialization + 17, // 27: vega.events.v1.BusEvent.settle_position:type_name -> vega.events.v1.SettlePosition + 18, // 28: vega.events.v1.BusEvent.settle_distressed:type_name -> vega.events.v1.SettleDistressed + 41, // 29: vega.events.v1.BusEvent.market_created:type_name -> vega.Market + 42, // 30: vega.events.v1.BusEvent.asset:type_name -> vega.Asset + 19, // 31: vega.events.v1.BusEvent.market_tick:type_name -> vega.events.v1.MarketTick + 43, // 32: vega.events.v1.BusEvent.withdrawal:type_name -> vega.Withdrawal + 44, // 33: vega.events.v1.BusEvent.deposit:type_name -> vega.Deposit + 20, // 34: vega.events.v1.BusEvent.auction:type_name -> vega.events.v1.AuctionEvent + 45, // 35: vega.events.v1.BusEvent.risk_factor:type_name -> vega.RiskFactor + 46, // 36: vega.events.v1.BusEvent.network_parameter:type_name -> vega.NetworkParameter + 47, // 37: vega.events.v1.BusEvent.liquidity_provision:type_name -> vega.LiquidityProvision + 41, // 38: vega.events.v1.BusEvent.market_updated:type_name -> vega.Market + 48, // 39: vega.events.v1.BusEvent.oracle_spec:type_name -> oracles.v1.OracleSpec + 49, // 40: vega.events.v1.BusEvent.oracle_data:type_name -> oracles.v1.OracleData + 7, // 41: vega.events.v1.BusEvent.delegation_balance:type_name -> vega.events.v1.DelegationBalanceEvent + 6, // 42: vega.events.v1.BusEvent.validator_score:type_name -> vega.events.v1.ValidatorScoreEvent + 12, // 43: vega.events.v1.BusEvent.epoch_event:type_name -> vega.events.v1.EpochEvent + 21, // 44: vega.events.v1.BusEvent.validator_update:type_name -> vega.events.v1.ValidatorUpdate + 3, // 45: vega.events.v1.BusEvent.stake_linking:type_name -> vega.events.v1.StakeLinking + 5, // 46: vega.events.v1.BusEvent.reward_payout:type_name -> vega.events.v1.RewardPayoutEvent + 4, // 47: vega.events.v1.BusEvent.checkpoint:type_name -> vega.events.v1.CheckpointEvent + 9, // 48: vega.events.v1.BusEvent.market:type_name -> vega.events.v1.MarketEvent + 10, // 49: vega.events.v1.BusEvent.tx_err_event:type_name -> vega.events.v1.TxErrorEvent + 50, // [50:50] is the sub-list for method output_type + 50, // [50:50] is the sub-list for method input_type + 50, // [50:50] is the sub-list for extension type_name + 50, // [50:50] is the sub-list for extension extendee + 0, // [0:50] is the sub-list for field type_name } func init() { file_events_v1_events_proto_init() } @@ -2599,7 +3035,7 @@ func file_events_v1_events_proto_init() { } if !protoimpl.UnsafeEnabled { file_events_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StakingEvent); i { + switch v := v.(*StakeLinking); i { case 0: return &v.state case 1: @@ -2611,7 +3047,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelegationBalanceEvent); i { + switch v := v.(*CheckpointEvent); i { case 0: return &v.state case 1: @@ -2623,7 +3059,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PendingDelegationBalanceEvent); i { + switch v := v.(*RewardPayoutEvent); i { case 0: return &v.state case 1: @@ -2635,7 +3071,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketEvent); i { + switch v := v.(*ValidatorScoreEvent); i { case 0: return &v.state case 1: @@ -2647,7 +3083,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxErrorEvent); i { + switch v := v.(*DelegationBalanceEvent); i { case 0: return &v.state case 1: @@ -2659,7 +3095,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeUpdate); i { + switch v := v.(*PendingDelegationBalanceEvent); i { case 0: return &v.state case 1: @@ -2671,7 +3107,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EpochEvent); i { + switch v := v.(*MarketEvent); i { case 0: return &v.state case 1: @@ -2683,7 +3119,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferResponses); i { + switch v := v.(*TxErrorEvent); i { case 0: return &v.state case 1: @@ -2695,7 +3131,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PositionResolution); i { + switch v := v.(*TimeUpdate); i { case 0: return &v.state case 1: @@ -2707,7 +3143,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LossSocialization); i { + switch v := v.(*EpochEvent); i { case 0: return &v.state case 1: @@ -2719,7 +3155,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TradeSettlement); i { + switch v := v.(*TransferResponses); i { case 0: return &v.state case 1: @@ -2731,7 +3167,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SettlePosition); i { + switch v := v.(*PositionResolution); i { case 0: return &v.state case 1: @@ -2743,7 +3179,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SettleDistressed); i { + switch v := v.(*LossSocialization); i { case 0: return &v.state case 1: @@ -2755,7 +3191,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketTick); i { + switch v := v.(*TradeSettlement); i { case 0: return &v.state case 1: @@ -2767,7 +3203,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuctionEvent); i { + switch v := v.(*SettlePosition); i { case 0: return &v.state case 1: @@ -2779,7 +3215,7 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidatorUpdate); i { + switch v := v.(*SettleDistressed); i { case 0: return &v.state case 1: @@ -2791,6 +3227,42 @@ func file_events_v1_events_proto_init() { } } file_events_v1_events_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketTick); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_events_v1_events_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuctionEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_events_v1_events_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_events_v1_events_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BusEvent); i { case 0: return &v.state @@ -2803,7 +3275,7 @@ func file_events_v1_events_proto_init() { } } } - file_events_v1_events_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_events_v1_events_proto_msgTypes[7].OneofWrappers = []interface{}{ (*TxErrorEvent_OrderSubmission)(nil), (*TxErrorEvent_OrderAmendment)(nil), (*TxErrorEvent_OrderCancellation)(nil), @@ -2812,7 +3284,7 @@ func file_events_v1_events_proto_init() { (*TxErrorEvent_LiquidityProvisionSubmission)(nil), (*TxErrorEvent_WithdrawSubmission)(nil), } - file_events_v1_events_proto_msgTypes[16].OneofWrappers = []interface{}{ + file_events_v1_events_proto_msgTypes[19].OneofWrappers = []interface{}{ (*BusEvent_TimeUpdate)(nil), (*BusEvent_TransferResponses)(nil), (*BusEvent_PositionResolution)(nil), @@ -2841,10 +3313,12 @@ func file_events_v1_events_proto_init() { (*BusEvent_OracleSpec)(nil), (*BusEvent_OracleData)(nil), (*BusEvent_DelegationBalance)(nil), - (*BusEvent_PendingDelegationBalance)(nil), + (*BusEvent_ValidatorScore)(nil), (*BusEvent_EpochEvent)(nil), (*BusEvent_ValidatorUpdate)(nil), - (*BusEvent_StakingEvent)(nil), + (*BusEvent_StakeLinking)(nil), + (*BusEvent_RewardPayout)(nil), + (*BusEvent_Checkpoint)(nil), (*BusEvent_Market)(nil), (*BusEvent_TxErrEvent)(nil), } @@ -2853,8 +3327,8 @@ func file_events_v1_events_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_events_v1_events_proto_rawDesc, - NumEnums: 2, - NumMessages: 17, + NumEnums: 3, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go index e923ccf0..768ac809 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go @@ -19,7 +19,16 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -func (this *StakingEvent) Validate() error { +func (this *StakeLinking) Validate() error { + return nil +} +func (this *CheckpointEvent) Validate() error { + return nil +} +func (this *RewardPayoutEvent) Validate() error { + return nil +} +func (this *ValidatorScoreEvent) Validate() error { return nil } func (this *DelegationBalanceEvent) Validate() error { @@ -327,10 +336,10 @@ func (this *BusEvent) Validate() error { } } } - if oneOfNester, ok := this.GetEvent().(*BusEvent_PendingDelegationBalance); ok { - if oneOfNester.PendingDelegationBalance != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.PendingDelegationBalance); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("PendingDelegationBalance", err) + if oneOfNester, ok := this.GetEvent().(*BusEvent_ValidatorScore); ok { + if oneOfNester.ValidatorScore != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ValidatorScore); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("ValidatorScore", err) } } } @@ -348,10 +357,24 @@ func (this *BusEvent) Validate() error { } } } - if oneOfNester, ok := this.GetEvent().(*BusEvent_StakingEvent); ok { - if oneOfNester.StakingEvent != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StakingEvent); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("StakingEvent", err) + if oneOfNester, ok := this.GetEvent().(*BusEvent_StakeLinking); ok { + if oneOfNester.StakeLinking != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StakeLinking); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StakeLinking", err) + } + } + } + if oneOfNester, ok := this.GetEvent().(*BusEvent_RewardPayout); ok { + if oneOfNester.RewardPayout != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.RewardPayout); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("RewardPayout", err) + } + } + } + if oneOfNester, ok := this.GetEvent().(*BusEvent_Checkpoint); ok { + if oneOfNester.Checkpoint != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Checkpoint); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Checkpoint", err) } } } diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.pb.go new file mode 100644 index 00000000..79914e4c --- /dev/null +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.pb.go @@ -0,0 +1,878 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.13.0 +// source: snapshot/v1/snapshot.proto + +package v1 + +import ( + reflect "reflect" + sync "sync" + + proto "github.com/golang/protobuf/proto" + proto1 "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash) +type Snapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` +} + +func (x *Snapshot) Reset() { + *x = Snapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Snapshot) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Snapshot) ProtoMessage() {} + +func (x *Snapshot) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Snapshot.ProtoReflect.Descriptor instead. +func (*Snapshot) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{0} +} + +func (x *Snapshot) GetHash() []byte { + if x != nil { + return x.Hash + } + return nil +} + +func (x *Snapshot) GetState() []byte { + if x != nil { + return x.State + } + return nil +} + +// Checkpoint aggregates the various engine snapshots +type Checkpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Governance []byte `protobuf:"bytes,1,opt,name=governance,proto3" json:"governance,omitempty"` + Assets []byte `protobuf:"bytes,2,opt,name=assets,proto3" json:"assets,omitempty"` + Collateral []byte `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral,omitempty"` + NetworkParameters []byte `protobuf:"bytes,4,opt,name=network_parameters,json=networkParameters,proto3" json:"network_parameters,omitempty"` + Delegation []byte `protobuf:"bytes,5,opt,name=delegation,proto3" json:"delegation,omitempty"` +} + +func (x *Checkpoint) Reset() { + *x = Checkpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Checkpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Checkpoint) ProtoMessage() {} + +func (x *Checkpoint) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead. +func (*Checkpoint) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{1} +} + +func (x *Checkpoint) GetGovernance() []byte { + if x != nil { + return x.Governance + } + return nil +} + +func (x *Checkpoint) GetAssets() []byte { + if x != nil { + return x.Assets + } + return nil +} + +func (x *Checkpoint) GetCollateral() []byte { + if x != nil { + return x.Collateral + } + return nil +} + +func (x *Checkpoint) GetNetworkParameters() []byte { + if x != nil { + return x.NetworkParameters + } + return nil +} + +func (x *Checkpoint) GetDelegation() []byte { + if x != nil { + return x.Delegation + } + return nil +} + +// AssetEntrty is a single (enabled) asset +type AssetEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AssetDetails *proto1.AssetDetails `protobuf:"bytes,2,opt,name=asset_details,json=assetDetails,proto3" json:"asset_details,omitempty"` +} + +func (x *AssetEntry) Reset() { + *x = AssetEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssetEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetEntry) ProtoMessage() {} + +func (x *AssetEntry) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AssetEntry.ProtoReflect.Descriptor instead. +func (*AssetEntry) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{2} +} + +func (x *AssetEntry) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AssetEntry) GetAssetDetails() *proto1.AssetDetails { + if x != nil { + return x.AssetDetails + } + return nil +} + +// Assets contains all the enabled assets as AssetEntries +type Assets struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assets []*AssetEntry `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` +} + +func (x *Assets) Reset() { + *x = Assets{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Assets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Assets) ProtoMessage() {} + +func (x *Assets) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Assets.ProtoReflect.Descriptor instead. +func (*Assets) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{3} +} + +func (x *Assets) GetAssets() []*AssetEntry { + if x != nil { + return x.Assets + } + return nil +} + +// AssetBalance represents the total balance of a given asset for a party +type AssetBalance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` + Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` +} + +func (x *AssetBalance) Reset() { + *x = AssetBalance{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssetBalance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetBalance) ProtoMessage() {} + +func (x *AssetBalance) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AssetBalance.ProtoReflect.Descriptor instead. +func (*AssetBalance) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{4} +} + +func (x *AssetBalance) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *AssetBalance) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +func (x *AssetBalance) GetBalance() string { + if x != nil { + return x.Balance + } + return "" +} + +// Collateral contains the balances per party +type Collateral struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balances []*AssetBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` +} + +func (x *Collateral) Reset() { + *x = Collateral{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Collateral) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Collateral) ProtoMessage() {} + +func (x *Collateral) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Collateral.ProtoReflect.Descriptor instead. +func (*Collateral) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{5} +} + +func (x *Collateral) GetBalances() []*AssetBalance { + if x != nil { + return x.Balances + } + return nil +} + +// NetParams contains all network parameters +type NetParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params []*proto1.NetworkParameter `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"` +} + +func (x *NetParams) Reset() { + *x = NetParams{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NetParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NetParams) ProtoMessage() {} + +func (x *NetParams) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NetParams.ProtoReflect.Descriptor instead. +func (*NetParams) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{6} +} + +func (x *NetParams) GetParams() []*proto1.NetworkParameter { + if x != nil { + return x.Params + } + return nil +} + +// Proposals will contain all accepted proposals +type Proposals struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proposals []*proto1.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` +} + +func (x *Proposals) Reset() { + *x = Proposals{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Proposals) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Proposals) ProtoMessage() {} + +func (x *Proposals) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Proposals.ProtoReflect.Descriptor instead. +func (*Proposals) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{7} +} + +func (x *Proposals) GetProposals() []*proto1.Proposal { + if x != nil { + return x.Proposals + } + return nil +} + +// Delegated amounts for party/node +// undelegate and epoch seq are only relevant for pending entries +type DelegateEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Undelegate bool `protobuf:"varint,4,opt,name=undelegate,proto3" json:"undelegate,omitempty"` + EpochSeq uint64 `protobuf:"varint,5,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` +} + +func (x *DelegateEntry) Reset() { + *x = DelegateEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DelegateEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DelegateEntry) ProtoMessage() {} + +func (x *DelegateEntry) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DelegateEntry.ProtoReflect.Descriptor instead. +func (*DelegateEntry) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{8} +} + +func (x *DelegateEntry) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *DelegateEntry) GetNode() string { + if x != nil { + return x.Node + } + return "" +} + +func (x *DelegateEntry) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *DelegateEntry) GetUndelegate() bool { + if x != nil { + return x.Undelegate + } + return false +} + +func (x *DelegateEntry) GetEpochSeq() uint64 { + if x != nil { + return x.EpochSeq + } + return 0 +} + +// Delegate contains all entries for a checkpoint +type Delegate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Active []*DelegateEntry `protobuf:"bytes,1,rep,name=active,proto3" json:"active,omitempty"` + Pending []*DelegateEntry `protobuf:"bytes,2,rep,name=pending,proto3" json:"pending,omitempty"` +} + +func (x *Delegate) Reset() { + *x = Delegate{} + if protoimpl.UnsafeEnabled { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Delegate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Delegate) ProtoMessage() {} + +func (x *Delegate) ProtoReflect() protoreflect.Message { + mi := &file_snapshot_v1_snapshot_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Delegate.ProtoReflect.Descriptor instead. +func (*Delegate) Descriptor() ([]byte, []int) { + return file_snapshot_v1_snapshot_proto_rawDescGZIP(), []int{9} +} + +func (x *Delegate) GetActive() []*DelegateEntry { + if x != nil { + return x.Active + } + return nil +} + +func (x *Delegate) GetPending() []*DelegateEntry { + if x != nil { + return x.Pending + } + return nil +} + +var File_snapshot_v1_snapshot_proto protoreflect.FileDescriptor + +var file_snapshot_v1_snapshot_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x0a, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, + 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34, 0x0a, 0x08, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x22, 0xb3, 0x01, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x61, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x55, 0x0a, 0x0a, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x0d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3e, 0x0a, + 0x06, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0x54, 0x0a, + 0x0c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, + 0x72, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x22, 0x48, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x12, 0x3a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x3b, 0x0a, + 0x09, 0x4e, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x39, 0x0a, 0x09, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x64, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, + 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x53, 0x65, 0x71, 0x22, 0x7e, 0x0a, 0x08, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x70, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x4f, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x5a, 0x2b, 0x63, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, + 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_snapshot_v1_snapshot_proto_rawDescOnce sync.Once + file_snapshot_v1_snapshot_proto_rawDescData = file_snapshot_v1_snapshot_proto_rawDesc +) + +func file_snapshot_v1_snapshot_proto_rawDescGZIP() []byte { + file_snapshot_v1_snapshot_proto_rawDescOnce.Do(func() { + file_snapshot_v1_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(file_snapshot_v1_snapshot_proto_rawDescData) + }) + return file_snapshot_v1_snapshot_proto_rawDescData +} + +var file_snapshot_v1_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_snapshot_v1_snapshot_proto_goTypes = []interface{}{ + (*Snapshot)(nil), // 0: vega.snapshot.v1.Snapshot + (*Checkpoint)(nil), // 1: vega.snapshot.v1.Checkpoint + (*AssetEntry)(nil), // 2: vega.snapshot.v1.AssetEntry + (*Assets)(nil), // 3: vega.snapshot.v1.Assets + (*AssetBalance)(nil), // 4: vega.snapshot.v1.AssetBalance + (*Collateral)(nil), // 5: vega.snapshot.v1.Collateral + (*NetParams)(nil), // 6: vega.snapshot.v1.NetParams + (*Proposals)(nil), // 7: vega.snapshot.v1.Proposals + (*DelegateEntry)(nil), // 8: vega.snapshot.v1.DelegateEntry + (*Delegate)(nil), // 9: vega.snapshot.v1.Delegate + (*proto1.AssetDetails)(nil), // 10: vega.AssetDetails + (*proto1.NetworkParameter)(nil), // 11: vega.NetworkParameter + (*proto1.Proposal)(nil), // 12: vega.Proposal +} +var file_snapshot_v1_snapshot_proto_depIdxs = []int32{ + 10, // 0: vega.snapshot.v1.AssetEntry.asset_details:type_name -> vega.AssetDetails + 2, // 1: vega.snapshot.v1.Assets.assets:type_name -> vega.snapshot.v1.AssetEntry + 4, // 2: vega.snapshot.v1.Collateral.balances:type_name -> vega.snapshot.v1.AssetBalance + 11, // 3: vega.snapshot.v1.NetParams.params:type_name -> vega.NetworkParameter + 12, // 4: vega.snapshot.v1.Proposals.proposals:type_name -> vega.Proposal + 8, // 5: vega.snapshot.v1.Delegate.active:type_name -> vega.snapshot.v1.DelegateEntry + 8, // 6: vega.snapshot.v1.Delegate.pending:type_name -> vega.snapshot.v1.DelegateEntry + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_snapshot_v1_snapshot_proto_init() } +func file_snapshot_v1_snapshot_proto_init() { + if File_snapshot_v1_snapshot_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_snapshot_v1_snapshot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Snapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Checkpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssetEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Assets); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssetBalance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Collateral); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NetParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proposals); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelegateEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_snapshot_v1_snapshot_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Delegate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_snapshot_v1_snapshot_proto_rawDesc, + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_snapshot_v1_snapshot_proto_goTypes, + DependencyIndexes: file_snapshot_v1_snapshot_proto_depIdxs, + MessageInfos: file_snapshot_v1_snapshot_proto_msgTypes, + }.Build() + File_snapshot_v1_snapshot_proto = out.File + file_snapshot_v1_snapshot_proto_rawDesc = nil + file_snapshot_v1_snapshot_proto_goTypes = nil + file_snapshot_v1_snapshot_proto_depIdxs = nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.validator.pb.go new file mode 100644 index 00000000..72bb4953 --- /dev/null +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/snapshot/v1/snapshot.validator.pb.go @@ -0,0 +1,96 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: snapshot/v1/snapshot.proto + +package v1 + +import ( + fmt "fmt" + math "math" + + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "github.com/vegaprotocol/api/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *Snapshot) Validate() error { + return nil +} +func (this *Checkpoint) Validate() error { + return nil +} +func (this *AssetEntry) Validate() error { + if this.AssetDetails != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AssetDetails); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("AssetDetails", err) + } + } + return nil +} +func (this *Assets) Validate() error { + for _, item := range this.Assets { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Assets", err) + } + } + } + return nil +} +func (this *AssetBalance) Validate() error { + return nil +} +func (this *Collateral) Validate() error { + for _, item := range this.Balances { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Balances", err) + } + } + } + return nil +} +func (this *NetParams) Validate() error { + for _, item := range this.Params { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Params", err) + } + } + } + return nil +} +func (this *Proposals) Validate() error { + for _, item := range this.Proposals { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Proposals", err) + } + } + } + return nil +} +func (this *DelegateEntry) Validate() error { + return nil +} +func (this *Delegate) Validate() error { + for _, item := range this.Active { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Active", err) + } + } + } + for _, item := range this.Pending { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Pending", err) + } + } + } + return nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go index ddf0be67..e889f690 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go @@ -794,6 +794,58 @@ func (TransferType) EnumDescriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{7} } +// Node status type +type NodeStatus int32 + +const ( + NodeStatus_NODE_STATUS_UNSPECIFIED NodeStatus = 0 + // The node is validating + NodeStatus_NODE_STATUS_VALIDATOR NodeStatus = 1 + // The node is non-validating + NodeStatus_NODE_STATUS_NON_VALIDATOR NodeStatus = 2 +) + +// Enum value maps for NodeStatus. +var ( + NodeStatus_name = map[int32]string{ + 0: "NODE_STATUS_UNSPECIFIED", + 1: "NODE_STATUS_VALIDATOR", + 2: "NODE_STATUS_NON_VALIDATOR", + } + NodeStatus_value = map[string]int32{ + "NODE_STATUS_UNSPECIFIED": 0, + "NODE_STATUS_VALIDATOR": 1, + "NODE_STATUS_NON_VALIDATOR": 2, + } +) + +func (x NodeStatus) Enum() *NodeStatus { + p := new(NodeStatus) + *p = x + return p +} + +func (x NodeStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NodeStatus) Descriptor() protoreflect.EnumDescriptor { + return file_vega_proto_enumTypes[8].Descriptor() +} + +func (NodeStatus) Type() protoreflect.EnumType { + return &file_vega_proto_enumTypes[8] +} + +func (x NodeStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NodeStatus.Descriptor instead. +func (NodeStatus) EnumDescriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{8} +} + // Time In Force for an order // See [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail type Order_TimeInForce int32 @@ -848,11 +900,11 @@ func (x Order_TimeInForce) String() string { } func (Order_TimeInForce) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[8].Descriptor() + return file_vega_proto_enumTypes[9].Descriptor() } func (Order_TimeInForce) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[8] + return &file_vega_proto_enumTypes[9] } func (x Order_TimeInForce) Number() protoreflect.EnumNumber { @@ -905,11 +957,11 @@ func (x Order_Type) String() string { } func (Order_Type) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[9].Descriptor() + return file_vega_proto_enumTypes[10].Descriptor() } func (Order_Type) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[9] + return &file_vega_proto_enumTypes[10] } func (x Order_Type) Number() protoreflect.EnumNumber { @@ -983,11 +1035,11 @@ func (x Order_Status) String() string { } func (Order_Status) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[10].Descriptor() + return file_vega_proto_enumTypes[11].Descriptor() } func (Order_Status) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[10] + return &file_vega_proto_enumTypes[11] } func (x Order_Status) Number() protoreflect.EnumNumber { @@ -1042,11 +1094,11 @@ func (x Trade_Type) String() string { } func (Trade_Type) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[11].Descriptor() + return file_vega_proto_enumTypes[12].Descriptor() } func (Trade_Type) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[11] + return &file_vega_proto_enumTypes[12] } func (x Trade_Type) Number() protoreflect.EnumNumber { @@ -1099,11 +1151,11 @@ func (x Deposit_Status) String() string { } func (Deposit_Status) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[12].Descriptor() + return file_vega_proto_enumTypes[13].Descriptor() } func (Deposit_Status) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[12] + return &file_vega_proto_enumTypes[13] } func (x Deposit_Status) Number() protoreflect.EnumNumber { @@ -1112,7 +1164,7 @@ func (x Deposit_Status) Number() protoreflect.EnumNumber { // Deprecated: Use Deposit_Status.Descriptor instead. func (Deposit_Status) EnumDescriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{20, 0} + return file_vega_proto_rawDescGZIP(), []int{19, 0} } // The status of the withdrawal @@ -1157,11 +1209,11 @@ func (x Withdrawal_Status) String() string { } func (Withdrawal_Status) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[13].Descriptor() + return file_vega_proto_enumTypes[14].Descriptor() } func (Withdrawal_Status) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[13] + return &file_vega_proto_enumTypes[14] } func (x Withdrawal_Status) Number() protoreflect.EnumNumber { @@ -1170,7 +1222,7 @@ func (x Withdrawal_Status) Number() protoreflect.EnumNumber { // Deprecated: Use Withdrawal_Status.Descriptor instead. func (Withdrawal_Status) EnumDescriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{21, 0} + return file_vega_proto_rawDescGZIP(), []int{20, 0} } // Status of a liquidity provision order @@ -1228,11 +1280,11 @@ func (x LiquidityProvision_Status) String() string { } func (LiquidityProvision_Status) Descriptor() protoreflect.EnumDescriptor { - return file_vega_proto_enumTypes[14].Descriptor() + return file_vega_proto_enumTypes[15].Descriptor() } func (LiquidityProvision_Status) Type() protoreflect.EnumType { - return &file_vega_proto_enumTypes[14] + return &file_vega_proto_enumTypes[15] } func (x LiquidityProvision_Status) Number() protoreflect.EnumNumber { @@ -1241,7 +1293,7 @@ func (x LiquidityProvision_Status) Number() protoreflect.EnumNumber { // Deprecated: Use LiquidityProvision_Status.Descriptor instead. func (LiquidityProvision_Status) EnumDescriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{42, 0} + return file_vega_proto_rawDescGZIP(), []int{38, 0} } type Price struct { @@ -1350,7 +1402,8 @@ type Party struct { unknownFields protoimpl.UnknownFields // A unique identifier for the party, typically represented by a public key - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Delegations []*Delegation `protobuf:"bytes,2,rep,name=delegations,proto3" json:"delegations,omitempty"` } func (x *Party) Reset() { @@ -1392,6 +1445,13 @@ func (x *Party) GetId() string { return "" } +func (x *Party) GetDelegations() []*Delegation { + if x != nil { + return x.Delegations + } + return nil +} + // Risk factors are used to calculate the current risk associated with orders trading on a given market type RiskFactor struct { state protoimpl.MessageState @@ -2803,81 +2863,32 @@ func (x *PositionTrade) GetPrice() uint64 { return 0 } -// Vega domain specific statistics as reported by the node the caller is connected to -type Statistics struct { +// A deposit on to the Vega network +type Deposit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Current block height as reported by the Vega blockchain - BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - // Current backlog length (number of transactions) that are waiting to be included in a block - BacklogLength uint64 `protobuf:"varint,2,opt,name=backlog_length,json=backlogLength,proto3" json:"backlog_length,omitempty"` - // Total number of connected peers to this node - TotalPeers uint64 `protobuf:"varint,3,opt,name=total_peers,json=totalPeers,proto3" json:"total_peers,omitempty"` - // Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision - GenesisTime string `protobuf:"bytes,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` - // Current system date and time formatted in ISO-8601 datetime format with nanosecond precision - CurrentTime string `protobuf:"bytes,5,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"` - // Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision - VegaTime string `protobuf:"bytes,6,opt,name=vega_time,json=vegaTime,proto3" json:"vega_time,omitempty"` - // Status of the connection to the Vega blockchain - // - See [`ChainStatus`](#vega.ChainStatus) - Status ChainStatus `protobuf:"varint,7,opt,name=status,proto3,enum=vega.ChainStatus" json:"status,omitempty"` - // Transactions per block - TxPerBlock uint64 `protobuf:"varint,8,opt,name=tx_per_block,json=txPerBlock,proto3" json:"tx_per_block,omitempty"` - // Average transaction size in bytes - AverageTxBytes uint64 `protobuf:"varint,9,opt,name=average_tx_bytes,json=averageTxBytes,proto3" json:"average_tx_bytes,omitempty"` - // Average orders per block - AverageOrdersPerBlock uint64 `protobuf:"varint,10,opt,name=average_orders_per_block,json=averageOrdersPerBlock,proto3" json:"average_orders_per_block,omitempty"` - // Trades emitted per second - TradesPerSecond uint64 `protobuf:"varint,11,opt,name=trades_per_second,json=tradesPerSecond,proto3" json:"trades_per_second,omitempty"` - // Orders processed per second - OrdersPerSecond uint64 `protobuf:"varint,12,opt,name=orders_per_second,json=ordersPerSecond,proto3" json:"orders_per_second,omitempty"` - // Total markets on this Vega network - TotalMarkets uint64 `protobuf:"varint,13,opt,name=total_markets,json=totalMarkets,proto3" json:"total_markets,omitempty"` - // Total number of order amendments since genesis (on all markets) - TotalAmendOrder uint64 `protobuf:"varint,16,opt,name=total_amend_order,json=totalAmendOrder,proto3" json:"total_amend_order,omitempty"` - // Total number of order cancellations since genesis (on all markets) - TotalCancelOrder uint64 `protobuf:"varint,17,opt,name=total_cancel_order,json=totalCancelOrder,proto3" json:"total_cancel_order,omitempty"` - // Total number of order submissions since genesis (on all markets) - TotalCreateOrder uint64 `protobuf:"varint,18,opt,name=total_create_order,json=totalCreateOrder,proto3" json:"total_create_order,omitempty"` - // Total number of orders processed since genesis (on all markets) - TotalOrders uint64 `protobuf:"varint,19,opt,name=total_orders,json=totalOrders,proto3" json:"total_orders,omitempty"` - // Total number of trades emitted since genesis (on all markets) - TotalTrades uint64 `protobuf:"varint,20,opt,name=total_trades,json=totalTrades,proto3" json:"total_trades,omitempty"` - // Current number of stream subscribers to order data - OrderSubscriptions uint32 `protobuf:"varint,21,opt,name=order_subscriptions,json=orderSubscriptions,proto3" json:"order_subscriptions,omitempty"` - // Current number of stream subscribers to trade data - TradeSubscriptions uint32 `protobuf:"varint,22,opt,name=trade_subscriptions,json=tradeSubscriptions,proto3" json:"trade_subscriptions,omitempty"` - // Current number of stream subscribers to candle-stick data - CandleSubscriptions uint32 `protobuf:"varint,23,opt,name=candle_subscriptions,json=candleSubscriptions,proto3" json:"candle_subscriptions,omitempty"` - // Current number of stream subscribers to market depth data - MarketDepthSubscriptions uint32 `protobuf:"varint,24,opt,name=market_depth_subscriptions,json=marketDepthSubscriptions,proto3" json:"market_depth_subscriptions,omitempty"` - // Current number of stream subscribers to positions data - PositionsSubscriptions uint32 `protobuf:"varint,25,opt,name=positions_subscriptions,json=positionsSubscriptions,proto3" json:"positions_subscriptions,omitempty"` - // Current number of stream subscribers to account data - AccountSubscriptions uint32 `protobuf:"varint,26,opt,name=account_subscriptions,json=accountSubscriptions,proto3" json:"account_subscriptions,omitempty"` - // Current number of stream subscribers to market data - MarketDataSubscriptions uint32 `protobuf:"varint,27,opt,name=market_data_subscriptions,json=marketDataSubscriptions,proto3" json:"market_data_subscriptions,omitempty"` - // The version hash of the Vega node software - AppVersionHash string `protobuf:"bytes,28,opt,name=app_version_hash,json=appVersionHash,proto3" json:"app_version_hash,omitempty"` - // The version of the Vega node software - AppVersion string `protobuf:"bytes,29,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` - // The version of the underlying Vega blockchain - ChainVersion string `protobuf:"bytes,30,opt,name=chain_version,json=chainVersion,proto3" json:"chain_version,omitempty"` - // Current block duration, in nanoseconds - BlockDuration uint64 `protobuf:"varint,31,opt,name=block_duration,json=blockDuration,proto3" json:"block_duration,omitempty"` - // Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision - Uptime string `protobuf:"bytes,32,opt,name=uptime,proto3" json:"uptime,omitempty"` - // Unique identifier for the underlying Vega blockchain - ChainId string `protobuf:"bytes,33,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // Current number of stream subscribers to market depth update data - MarketDepthUpdatesSubscriptions uint32 `protobuf:"varint,34,opt,name=market_depth_updates_subscriptions,json=marketDepthUpdatesSubscriptions,proto3" json:"market_depth_updates_subscriptions,omitempty"` -} - -func (x *Statistics) Reset() { - *x = Statistics{} + // Unique identifier for the deposit + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Status of the deposit + Status Deposit_Status `protobuf:"varint,2,opt,name=status,proto3,enum=vega.Deposit_Status" json:"status,omitempty"` + // Party identifier of the user initiating the deposit + PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + // The Vega asset targeted by this deposit + Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` + // The amount to be deposited + Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` + // The hash of the transaction from the foreign chain + TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // Timestamp for when the Vega account was updated with the deposit + CreditedTimestamp int64 `protobuf:"varint,7,opt,name=credited_timestamp,json=creditedTimestamp,proto3" json:"credited_timestamp,omitempty"` + // Timestamp for when the deposit was created on the Vega network + CreatedTimestamp int64 `protobuf:"varint,8,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` +} + +func (x *Deposit) Reset() { + *x = Deposit{} if protoimpl.UnsafeEnabled { mi := &file_vega_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2885,13 +2896,13 @@ func (x *Statistics) Reset() { } } -func (x *Statistics) String() string { +func (x *Deposit) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Statistics) ProtoMessage() {} +func (*Deposit) ProtoMessage() {} -func (x *Statistics) ProtoReflect() protoreflect.Message { +func (x *Deposit) ProtoReflect() protoreflect.Message { mi := &file_vega_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2903,276 +2914,304 @@ func (x *Statistics) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Statistics.ProtoReflect.Descriptor instead. -func (*Statistics) Descriptor() ([]byte, []int) { +// Deprecated: Use Deposit.ProtoReflect.Descriptor instead. +func (*Deposit) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{19} } -func (x *Statistics) GetBlockHeight() uint64 { - if x != nil { - return x.BlockHeight - } - return 0 -} - -func (x *Statistics) GetBacklogLength() uint64 { +func (x *Deposit) GetId() string { if x != nil { - return x.BacklogLength + return x.Id } - return 0 + return "" } -func (x *Statistics) GetTotalPeers() uint64 { +func (x *Deposit) GetStatus() Deposit_Status { if x != nil { - return x.TotalPeers + return x.Status } - return 0 + return Deposit_STATUS_UNSPECIFIED } -func (x *Statistics) GetGenesisTime() string { +func (x *Deposit) GetPartyId() string { if x != nil { - return x.GenesisTime + return x.PartyId } return "" } -func (x *Statistics) GetCurrentTime() string { +func (x *Deposit) GetAsset() string { if x != nil { - return x.CurrentTime + return x.Asset } return "" } -func (x *Statistics) GetVegaTime() string { +func (x *Deposit) GetAmount() string { if x != nil { - return x.VegaTime + return x.Amount } return "" } -func (x *Statistics) GetStatus() ChainStatus { +func (x *Deposit) GetTxHash() string { if x != nil { - return x.Status + return x.TxHash } - return ChainStatus_CHAIN_STATUS_UNSPECIFIED + return "" } -func (x *Statistics) GetTxPerBlock() uint64 { +func (x *Deposit) GetCreditedTimestamp() int64 { if x != nil { - return x.TxPerBlock + return x.CreditedTimestamp } return 0 } -func (x *Statistics) GetAverageTxBytes() uint64 { +func (x *Deposit) GetCreatedTimestamp() int64 { if x != nil { - return x.AverageTxBytes + return x.CreatedTimestamp } return 0 } -func (x *Statistics) GetAverageOrdersPerBlock() uint64 { - if x != nil { - return x.AverageOrdersPerBlock - } - return 0 -} +// A withdrawal from the Vega network +type Withdrawal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Statistics) GetTradesPerSecond() uint64 { - if x != nil { - return x.TradesPerSecond - } - return 0 + // Unique identifier for the withdrawal + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Unique party identifier of the user initiating the withdrawal + PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + // The amount to be withdrawn + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + // The asset we want to withdraw funds from + Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` + // The status of the withdrawal + Status Withdrawal_Status `protobuf:"varint,5,opt,name=status,proto3,enum=vega.Withdrawal_Status" json:"status,omitempty"` + // The reference which is used by the foreign chain + // to refer to this withdrawal + Ref string `protobuf:"bytes,6,opt,name=ref,proto3" json:"ref,omitempty"` + // The time until when the withdrawal is valid + Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` + // The hash of the foreign chain for this transaction + TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + // Timestamp for when the network started to process this withdrawal + CreatedTimestamp int64 `protobuf:"varint,9,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` + // Timestamp for when the withdrawal was finalised by the network + WithdrawnTimestamp int64 `protobuf:"varint,10,opt,name=withdrawn_timestamp,json=withdrawnTimestamp,proto3" json:"withdrawn_timestamp,omitempty"` + // Foreign chain specifics + Ext *WithdrawExt `protobuf:"bytes,11,opt,name=ext,proto3" json:"ext,omitempty"` } -func (x *Statistics) GetOrdersPerSecond() uint64 { - if x != nil { - return x.OrdersPerSecond +func (x *Withdrawal) Reset() { + *x = Withdrawal{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *Statistics) GetTotalMarkets() uint64 { - if x != nil { - return x.TotalMarkets - } - return 0 +func (x *Withdrawal) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *Statistics) GetTotalAmendOrder() uint64 { - if x != nil { - return x.TotalAmendOrder +func (*Withdrawal) ProtoMessage() {} + +func (x *Withdrawal) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *Statistics) GetTotalCancelOrder() uint64 { - if x != nil { - return x.TotalCancelOrder - } - return 0 +// Deprecated: Use Withdrawal.ProtoReflect.Descriptor instead. +func (*Withdrawal) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{20} } -func (x *Statistics) GetTotalCreateOrder() uint64 { +func (x *Withdrawal) GetId() string { if x != nil { - return x.TotalCreateOrder + return x.Id } - return 0 + return "" } -func (x *Statistics) GetTotalOrders() uint64 { +func (x *Withdrawal) GetPartyId() string { if x != nil { - return x.TotalOrders + return x.PartyId } - return 0 + return "" } -func (x *Statistics) GetTotalTrades() uint64 { +func (x *Withdrawal) GetAmount() uint64 { if x != nil { - return x.TotalTrades + return x.Amount } return 0 } -func (x *Statistics) GetOrderSubscriptions() uint32 { +func (x *Withdrawal) GetAsset() string { if x != nil { - return x.OrderSubscriptions + return x.Asset } - return 0 + return "" } -func (x *Statistics) GetTradeSubscriptions() uint32 { +func (x *Withdrawal) GetStatus() Withdrawal_Status { if x != nil { - return x.TradeSubscriptions + return x.Status } - return 0 + return Withdrawal_STATUS_UNSPECIFIED } -func (x *Statistics) GetCandleSubscriptions() uint32 { +func (x *Withdrawal) GetRef() string { if x != nil { - return x.CandleSubscriptions + return x.Ref } - return 0 + return "" } -func (x *Statistics) GetMarketDepthSubscriptions() uint32 { +func (x *Withdrawal) GetExpiry() int64 { if x != nil { - return x.MarketDepthSubscriptions + return x.Expiry } return 0 } -func (x *Statistics) GetPositionsSubscriptions() uint32 { +func (x *Withdrawal) GetTxHash() string { if x != nil { - return x.PositionsSubscriptions + return x.TxHash } - return 0 + return "" } -func (x *Statistics) GetAccountSubscriptions() uint32 { +func (x *Withdrawal) GetCreatedTimestamp() int64 { if x != nil { - return x.AccountSubscriptions + return x.CreatedTimestamp } return 0 } -func (x *Statistics) GetMarketDataSubscriptions() uint32 { +func (x *Withdrawal) GetWithdrawnTimestamp() int64 { if x != nil { - return x.MarketDataSubscriptions + return x.WithdrawnTimestamp } return 0 } -func (x *Statistics) GetAppVersionHash() string { +func (x *Withdrawal) GetExt() *WithdrawExt { if x != nil { - return x.AppVersionHash + return x.Ext } - return "" + return nil } -func (x *Statistics) GetAppVersion() string { - if x != nil { - return x.AppVersion - } - return "" -} +// Withdrawal external details +type WithdrawExt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Statistics) GetChainVersion() string { - if x != nil { - return x.ChainVersion - } - return "" + // Foreign chain specifics + // + // Types that are assignable to Ext: + // *WithdrawExt_Erc20 + Ext isWithdrawExt_Ext `protobuf_oneof:"ext"` } -func (x *Statistics) GetBlockDuration() uint64 { - if x != nil { - return x.BlockDuration +func (x *WithdrawExt) Reset() { + *x = WithdrawExt{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *Statistics) GetUptime() string { - if x != nil { - return x.Uptime - } - return "" +func (x *WithdrawExt) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *Statistics) GetChainId() string { - if x != nil { - return x.ChainId - } - return "" -} +func (*WithdrawExt) ProtoMessage() {} -func (x *Statistics) GetMarketDepthUpdatesSubscriptions() uint32 { - if x != nil { - return x.MarketDepthUpdatesSubscriptions +func (x *WithdrawExt) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -// A deposit on to the Vega network -type Deposit struct { +// Deprecated: Use WithdrawExt.ProtoReflect.Descriptor instead. +func (*WithdrawExt) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{21} +} + +func (m *WithdrawExt) GetExt() isWithdrawExt_Ext { + if m != nil { + return m.Ext + } + return nil +} + +func (x *WithdrawExt) GetErc20() *Erc20WithdrawExt { + if x, ok := x.GetExt().(*WithdrawExt_Erc20); ok { + return x.Erc20 + } + return nil +} + +type isWithdrawExt_Ext interface { + isWithdrawExt_Ext() +} + +type WithdrawExt_Erc20 struct { + // ERC20 withdrawal details + Erc20 *Erc20WithdrawExt `protobuf:"bytes,1,opt,name=erc20,proto3,oneof"` +} + +func (*WithdrawExt_Erc20) isWithdrawExt_Ext() {} + +// An extension of data required for the withdraw submissions +type Erc20WithdrawExt struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Unique identifier for the deposit - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Status of the deposit - Status Deposit_Status `protobuf:"varint,2,opt,name=status,proto3,enum=vega.Deposit_Status" json:"status,omitempty"` - // Party identifier of the user initiating the deposit - PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // The Vega asset targeted by this deposit - Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` - // The amount to be deposited - Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` - // The hash of the transaction from the foreign chain - TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - // Timestamp for when the Vega account was updated with the deposit - CreditedTimestamp int64 `protobuf:"varint,7,opt,name=credited_timestamp,json=creditedTimestamp,proto3" json:"credited_timestamp,omitempty"` - // Timestamp for when the deposit was created on the Vega network - CreatedTimestamp int64 `protobuf:"varint,8,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` + // The address into which the bridge will release the funds + ReceiverAddress string `protobuf:"bytes,1,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` } -func (x *Deposit) Reset() { - *x = Deposit{} +func (x *Erc20WithdrawExt) Reset() { + *x = Erc20WithdrawExt{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[20] + mi := &file_vega_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Deposit) String() string { +func (x *Erc20WithdrawExt) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Deposit) ProtoMessage() {} +func (*Erc20WithdrawExt) ProtoMessage() {} -func (x *Deposit) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[20] +func (x *Erc20WithdrawExt) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3183,115 +3222,144 @@ func (x *Deposit) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Deposit.ProtoReflect.Descriptor instead. -func (*Deposit) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{20} +// Deprecated: Use Erc20WithdrawExt.ProtoReflect.Descriptor instead. +func (*Erc20WithdrawExt) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{22} } -func (x *Deposit) GetId() string { +func (x *Erc20WithdrawExt) GetReceiverAddress() string { if x != nil { - return x.Id + return x.ReceiverAddress } return "" } -func (x *Deposit) GetStatus() Deposit_Status { - if x != nil { - return x.Status +// Represents an account for an asset on Vega for a particular owner or party +type Account struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique account identifier (used internally by Vega) + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The party that the account belongs to, special values include `network`, which represents the Vega network and is + // most commonly seen during liquidation of distressed trading positions + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // Balance of the asset, the balance is an integer, for example `123456` is a correctly + // formatted price of `1.23456` assuming market configured to 5 decimal places + // and importantly balances cannot be negative + Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` + // Asset identifier for the account + Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` + // Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty + MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` + // The account type related to this account + Type AccountType `protobuf:"varint,6,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"` +} + +func (x *Account) Reset() { + *x = Account{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return Deposit_STATUS_UNSPECIFIED } -func (x *Deposit) GetPartyId() string { +func (x *Account) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Account) ProtoMessage() {} + +func (x *Account) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Account.ProtoReflect.Descriptor instead. +func (*Account) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{23} +} + +func (x *Account) GetId() string { if x != nil { - return x.PartyId + return x.Id } return "" } -func (x *Deposit) GetAsset() string { +func (x *Account) GetOwner() string { if x != nil { - return x.Asset + return x.Owner } return "" } -func (x *Deposit) GetAmount() string { +func (x *Account) GetBalance() uint64 { if x != nil { - return x.Amount + return x.Balance } - return "" + return 0 } -func (x *Deposit) GetTxHash() string { +func (x *Account) GetAsset() string { if x != nil { - return x.TxHash + return x.Asset } return "" } -func (x *Deposit) GetCreditedTimestamp() int64 { +func (x *Account) GetMarketId() string { if x != nil { - return x.CreditedTimestamp + return x.MarketId } - return 0 + return "" } -func (x *Deposit) GetCreatedTimestamp() int64 { +func (x *Account) GetType() AccountType { if x != nil { - return x.CreatedTimestamp + return x.Type } - return 0 + return AccountType_ACCOUNT_TYPE_UNSPECIFIED } -// A withdrawal from the Vega network -type Withdrawal struct { +// Asset value information used within a transfer +type FinancialAmount struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Unique identifier for the withdrawal - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Unique party identifier of the user initiating the withdrawal - PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // The amount to be withdrawn - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - // The asset we want to withdraw funds from - Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` - // The status of the withdrawal - Status Withdrawal_Status `protobuf:"varint,5,opt,name=status,proto3,enum=vega.Withdrawal_Status" json:"status,omitempty"` - // The reference which is used by the foreign chain - // to refer to this withdrawal - Ref string `protobuf:"bytes,6,opt,name=ref,proto3" json:"ref,omitempty"` - // The time until when the withdrawal is valid - Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` - // The hash of the foreign chain for this transaction - TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - // Timestamp for when the network started to process this withdrawal - CreatedTimestamp int64 `protobuf:"varint,9,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` - // Timestamp for when the withdrawal was finalised by the network - WithdrawnTimestamp int64 `protobuf:"varint,10,opt,name=withdrawn_timestamp,json=withdrawnTimestamp,proto3" json:"withdrawn_timestamp,omitempty"` - // Foreign chain specifics - Ext *WithdrawExt `protobuf:"bytes,11,opt,name=ext,proto3" json:"ext,omitempty"` + // A signed integer amount of asset + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + // Asset identifier + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` } -func (x *Withdrawal) Reset() { - *x = Withdrawal{} +func (x *FinancialAmount) Reset() { + *x = FinancialAmount{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[21] + mi := &file_vega_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Withdrawal) String() string { +func (x *FinancialAmount) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Withdrawal) ProtoMessage() {} +func (*FinancialAmount) ProtoMessage() {} -func (x *Withdrawal) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[21] +func (x *FinancialAmount) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3302,118 +3370,138 @@ func (x *Withdrawal) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Withdrawal.ProtoReflect.Descriptor instead. -func (*Withdrawal) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{21} -} - -func (x *Withdrawal) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Withdrawal) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" +// Deprecated: Use FinancialAmount.ProtoReflect.Descriptor instead. +func (*FinancialAmount) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{24} } -func (x *Withdrawal) GetAmount() uint64 { +func (x *FinancialAmount) GetAmount() uint64 { if x != nil { return x.Amount } return 0 } -func (x *Withdrawal) GetAsset() string { +func (x *FinancialAmount) GetAsset() string { if x != nil { return x.Asset } return "" } -func (x *Withdrawal) GetStatus() Withdrawal_Status { - if x != nil { - return x.Status - } - return Withdrawal_STATUS_UNSPECIFIED -} +// Represents a financial transfer within Vega +type Transfer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Withdrawal) GetRef() string { - if x != nil { - return x.Ref + // Party identifier for the owner of the transfer + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + // A financial amount (of an asset) to transfer + Amount *FinancialAmount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // The type of transfer, gives the reason for the transfer + Type TransferType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"` + // A minimum amount + MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` +} + +func (x *Transfer) Reset() { + *x = Transfer{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *Withdrawal) GetExpiry() int64 { - if x != nil { - return x.Expiry +func (x *Transfer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Transfer) ProtoMessage() {} + +func (x *Transfer) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *Withdrawal) GetTxHash() string { +// Deprecated: Use Transfer.ProtoReflect.Descriptor instead. +func (*Transfer) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{25} +} + +func (x *Transfer) GetOwner() string { if x != nil { - return x.TxHash + return x.Owner } return "" } -func (x *Withdrawal) GetCreatedTimestamp() int64 { +func (x *Transfer) GetAmount() *FinancialAmount { if x != nil { - return x.CreatedTimestamp + return x.Amount } - return 0 + return nil } -func (x *Withdrawal) GetWithdrawnTimestamp() int64 { +func (x *Transfer) GetType() TransferType { if x != nil { - return x.WithdrawnTimestamp + return x.Type } - return 0 + return TransferType_TRANSFER_TYPE_UNSPECIFIED } -func (x *Withdrawal) GetExt() *WithdrawExt { +func (x *Transfer) GetMinAmount() uint64 { if x != nil { - return x.Ext + return x.MinAmount } - return nil + return 0 } -// Withdrawal external details -type WithdrawExt struct { +// Represents a request to transfer from one set of accounts to another +type TransferRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Foreign chain specifics - // - // Types that are assignable to Ext: - // *WithdrawExt_Erc20 - Ext isWithdrawExt_Ext `protobuf_oneof:"ext"` + // One or more accounts to transfer from + FromAccount []*Account `protobuf:"bytes,1,rep,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` + // One or more accounts to transfer to + ToAccount []*Account `protobuf:"bytes,2,rep,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` + // An amount to transfer for the asset + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + // A minimum amount + MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + // Asset identifier + Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` + // A reference for auditing purposes + Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"` } -func (x *WithdrawExt) Reset() { - *x = WithdrawExt{} +func (x *TransferRequest) Reset() { + *x = TransferRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[22] + mi := &file_vega_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *WithdrawExt) String() string { +func (x *TransferRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WithdrawExt) ProtoMessage() {} +func (*TransferRequest) ProtoMessage() {} -func (x *WithdrawExt) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[22] +func (x *TransferRequest) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3424,125 +3512,91 @@ func (x *WithdrawExt) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WithdrawExt.ProtoReflect.Descriptor instead. -func (*WithdrawExt) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{22} +// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. +func (*TransferRequest) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{26} } -func (m *WithdrawExt) GetExt() isWithdrawExt_Ext { - if m != nil { - return m.Ext +func (x *TransferRequest) GetFromAccount() []*Account { + if x != nil { + return x.FromAccount } return nil } -func (x *WithdrawExt) GetErc20() *Erc20WithdrawExt { - if x, ok := x.GetExt().(*WithdrawExt_Erc20); ok { - return x.Erc20 +func (x *TransferRequest) GetToAccount() []*Account { + if x != nil { + return x.ToAccount } return nil } -type isWithdrawExt_Ext interface { - isWithdrawExt_Ext() -} - -type WithdrawExt_Erc20 struct { - // ERC20 withdrawal details - Erc20 *Erc20WithdrawExt `protobuf:"bytes,1,opt,name=erc20,proto3,oneof"` -} - -func (*WithdrawExt_Erc20) isWithdrawExt_Ext() {} - -// An extension of data required for the withdraw submissions -type Erc20WithdrawExt struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The address into which the bridge will release the funds - ReceiverAddress string `protobuf:"bytes,1,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"` -} - -func (x *Erc20WithdrawExt) Reset() { - *x = Erc20WithdrawExt{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *TransferRequest) GetAmount() uint64 { + if x != nil { + return x.Amount } + return 0 } -func (x *Erc20WithdrawExt) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Erc20WithdrawExt) ProtoMessage() {} - -func (x *Erc20WithdrawExt) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *TransferRequest) GetMinAmount() uint64 { + if x != nil { + return x.MinAmount } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use Erc20WithdrawExt.ProtoReflect.Descriptor instead. -func (*Erc20WithdrawExt) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{23} +func (x *TransferRequest) GetAsset() string { + if x != nil { + return x.Asset + } + return "" } -func (x *Erc20WithdrawExt) GetReceiverAddress() string { +func (x *TransferRequest) GetReference() string { if x != nil { - return x.ReceiverAddress + return x.Reference } return "" } -// Represents an account for an asset on Vega for a particular owner or party -type Account struct { +// Represents a ledger entry on Vega +type LedgerEntry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Unique account identifier (used internally by Vega) - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The party that the account belongs to, special values include `network`, which represents the Vega network and is - // most commonly seen during liquidation of distressed trading positions - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // Balance of the asset, the balance is an integer, for example `123456` is a correctly - // formatted price of `1.23456` assuming market configured to 5 decimal places - // and importantly balances cannot be negative - Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` - // Asset identifier for the account - Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` - // Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty - MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // The account type related to this account - Type AccountType `protobuf:"varint,6,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"` + // One or more accounts to transfer from + FromAccount string `protobuf:"bytes,1,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` + // One or more accounts to transfer to + ToAccount string `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` + // An amount to transfer + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + // A reference for auditing purposes + Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` + // Type of ledger entry + Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` + // Timestamp for the time the ledger entry was created, in nanoseconds since the epoch + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (x *Account) Reset() { - *x = Account{} +func (x *LedgerEntry) Reset() { + *x = LedgerEntry{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[24] + mi := &file_vega_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Account) String() string { +func (x *LedgerEntry) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Account) ProtoMessage() {} +func (*LedgerEntry) ProtoMessage() {} -func (x *Account) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[24] +func (x *LedgerEntry) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3553,82 +3607,82 @@ func (x *Account) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Account.ProtoReflect.Descriptor instead. -func (*Account) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{24} +// Deprecated: Use LedgerEntry.ProtoReflect.Descriptor instead. +func (*LedgerEntry) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{27} } -func (x *Account) GetId() string { +func (x *LedgerEntry) GetFromAccount() string { if x != nil { - return x.Id + return x.FromAccount } return "" } -func (x *Account) GetOwner() string { +func (x *LedgerEntry) GetToAccount() string { if x != nil { - return x.Owner + return x.ToAccount } return "" } -func (x *Account) GetBalance() uint64 { +func (x *LedgerEntry) GetAmount() uint64 { if x != nil { - return x.Balance + return x.Amount } return 0 } -func (x *Account) GetAsset() string { +func (x *LedgerEntry) GetReference() string { if x != nil { - return x.Asset + return x.Reference } return "" } -func (x *Account) GetMarketId() string { +func (x *LedgerEntry) GetType() string { if x != nil { - return x.MarketId + return x.Type } return "" } -func (x *Account) GetType() AccountType { +func (x *LedgerEntry) GetTimestamp() int64 { if x != nil { - return x.Type + return x.Timestamp } - return AccountType_ACCOUNT_TYPE_UNSPECIFIED + return 0 } -// Asset value information used within a transfer -type FinancialAmount struct { +// Represents the balance for an account during a transfer +type TransferBalance struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A signed integer amount of asset - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` - // Asset identifier - Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` + // The account relating to the transfer + Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // The balance relating to the transfer + Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` } -func (x *FinancialAmount) Reset() { - *x = FinancialAmount{} +func (x *TransferBalance) Reset() { + *x = TransferBalance{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[25] + mi := &file_vega_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FinancialAmount) String() string { +func (x *TransferBalance) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FinancialAmount) ProtoMessage() {} +func (*TransferBalance) ProtoMessage() {} -func (x *FinancialAmount) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[25] +func (x *TransferBalance) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3639,58 +3693,54 @@ func (x *FinancialAmount) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FinancialAmount.ProtoReflect.Descriptor instead. -func (*FinancialAmount) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{25} +// Deprecated: Use TransferBalance.ProtoReflect.Descriptor instead. +func (*TransferBalance) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{28} } -func (x *FinancialAmount) GetAmount() uint64 { +func (x *TransferBalance) GetAccount() *Account { if x != nil { - return x.Amount + return x.Account } - return 0 + return nil } -func (x *FinancialAmount) GetAsset() string { +func (x *TransferBalance) GetBalance() uint64 { if x != nil { - return x.Asset + return x.Balance } - return "" + return 0 } -// Represents a financial transfer within Vega -type Transfer struct { +// Represents the response from a transfer +type TransferResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Party identifier for the owner of the transfer - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // A financial amount (of an asset) to transfer - Amount *FinancialAmount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` - // The type of transfer, gives the reason for the transfer - Type TransferType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"` - // A minimum amount - MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + // One or more ledger entries representing the transfers + Transfers []*LedgerEntry `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"` + // One or more account balances + Balances []*TransferBalance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"` } -func (x *Transfer) Reset() { - *x = Transfer{} +func (x *TransferResponse) Reset() { + *x = TransferResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[26] + mi := &file_vega_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Transfer) String() string { +func (x *TransferResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Transfer) ProtoMessage() {} +func (*TransferResponse) ProtoMessage() {} -func (x *Transfer) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[26] +func (x *TransferResponse) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3701,76 +3751,67 @@ func (x *Transfer) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Transfer.ProtoReflect.Descriptor instead. -func (*Transfer) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{26} -} - -func (x *Transfer) GetOwner() string { - if x != nil { - return x.Owner - } - return "" +// Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead. +func (*TransferResponse) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{29} } -func (x *Transfer) GetAmount() *FinancialAmount { +func (x *TransferResponse) GetTransfers() []*LedgerEntry { if x != nil { - return x.Amount + return x.Transfers } return nil } -func (x *Transfer) GetType() TransferType { - if x != nil { - return x.Type - } - return TransferType_TRANSFER_TYPE_UNSPECIFIED -} - -func (x *Transfer) GetMinAmount() uint64 { +func (x *TransferResponse) GetBalances() []*TransferBalance { if x != nil { - return x.MinAmount + return x.Balances } - return 0 + return nil } -// Represents a request to transfer from one set of accounts to another -type TransferRequest struct { +// Represents the margin levels for a party on a market at a given time +type MarginLevels struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // One or more accounts to transfer from - FromAccount []*Account `protobuf:"bytes,1,rep,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` - // One or more accounts to transfer to - ToAccount []*Account `protobuf:"bytes,2,rep,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` - // An amount to transfer for the asset - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - // A minimum amount - MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + // Maintenance margin value + MaintenanceMargin uint64 `protobuf:"varint,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"` + // Search level value + SearchLevel uint64 `protobuf:"varint,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"` + // Initial margin value + InitialMargin uint64 `protobuf:"varint,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"` + // Collateral release level value + CollateralReleaseLevel uint64 `protobuf:"varint,4,opt,name=collateral_release_level,json=collateralReleaseLevel,proto3" json:"collateral_release_level,omitempty"` + // Party identifier + PartyId string `protobuf:"bytes,5,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + // Market identifier + MarketId string `protobuf:"bytes,6,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Asset identifier - Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` - // A reference for auditing purposes - Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"` + Asset string `protobuf:"bytes,7,opt,name=asset,proto3" json:"asset,omitempty"` + // Timestamp for the time the ledger entry was created, in nanoseconds since the epoch + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (x *TransferRequest) Reset() { - *x = TransferRequest{} +func (x *MarginLevels) Reset() { + *x = MarginLevels{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[27] + mi := &file_vega_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *TransferRequest) String() string { +func (x *MarginLevels) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TransferRequest) ProtoMessage() {} +func (*MarginLevels) ProtoMessage() {} -func (x *TransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[27] +func (x *MarginLevels) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3781,373 +3822,63 @@ func (x *TransferRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. -func (*TransferRequest) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{27} -} - -func (x *TransferRequest) GetFromAccount() []*Account { - if x != nil { - return x.FromAccount - } - return nil +// Deprecated: Use MarginLevels.ProtoReflect.Descriptor instead. +func (*MarginLevels) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{30} } -func (x *TransferRequest) GetToAccount() []*Account { +func (x *MarginLevels) GetMaintenanceMargin() uint64 { if x != nil { - return x.ToAccount + return x.MaintenanceMargin } - return nil + return 0 } -func (x *TransferRequest) GetAmount() uint64 { +func (x *MarginLevels) GetSearchLevel() uint64 { if x != nil { - return x.Amount + return x.SearchLevel } return 0 } -func (x *TransferRequest) GetMinAmount() uint64 { +func (x *MarginLevels) GetInitialMargin() uint64 { if x != nil { - return x.MinAmount + return x.InitialMargin } return 0 } -func (x *TransferRequest) GetAsset() string { +func (x *MarginLevels) GetCollateralReleaseLevel() uint64 { if x != nil { - return x.Asset + return x.CollateralReleaseLevel } - return "" + return 0 } -func (x *TransferRequest) GetReference() string { +func (x *MarginLevels) GetPartyId() string { if x != nil { - return x.Reference + return x.PartyId } return "" } -// Represents a ledger entry on Vega -type LedgerEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One or more accounts to transfer from - FromAccount string `protobuf:"bytes,1,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` - // One or more accounts to transfer to - ToAccount string `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` - // An amount to transfer - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - // A reference for auditing purposes - Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` - // Type of ledger entry - Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` - // Timestamp for the time the ledger entry was created, in nanoseconds since the epoch - // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *LedgerEntry) Reset() { - *x = LedgerEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LedgerEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LedgerEntry) ProtoMessage() {} - -func (x *LedgerEntry) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LedgerEntry.ProtoReflect.Descriptor instead. -func (*LedgerEntry) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{28} -} - -func (x *LedgerEntry) GetFromAccount() string { +func (x *MarginLevels) GetMarketId() string { if x != nil { - return x.FromAccount + return x.MarketId } return "" } -func (x *LedgerEntry) GetToAccount() string { +func (x *MarginLevels) GetAsset() string { if x != nil { - return x.ToAccount + return x.Asset } return "" } -func (x *LedgerEntry) GetAmount() uint64 { +func (x *MarginLevels) GetTimestamp() int64 { if x != nil { - return x.Amount - } - return 0 -} - -func (x *LedgerEntry) GetReference() string { - if x != nil { - return x.Reference - } - return "" -} - -func (x *LedgerEntry) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *LedgerEntry) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -// Represents the balance for an account during a transfer -type TransferBalance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The account relating to the transfer - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - // The balance relating to the transfer - Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (x *TransferBalance) Reset() { - *x = TransferBalance{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferBalance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferBalance) ProtoMessage() {} - -func (x *TransferBalance) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferBalance.ProtoReflect.Descriptor instead. -func (*TransferBalance) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{29} -} - -func (x *TransferBalance) GetAccount() *Account { - if x != nil { - return x.Account - } - return nil -} - -func (x *TransferBalance) GetBalance() uint64 { - if x != nil { - return x.Balance - } - return 0 -} - -// Represents the response from a transfer -type TransferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One or more ledger entries representing the transfers - Transfers []*LedgerEntry `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"` - // One or more account balances - Balances []*TransferBalance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"` -} - -func (x *TransferResponse) Reset() { - *x = TransferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferResponse) ProtoMessage() {} - -func (x *TransferResponse) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead. -func (*TransferResponse) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{30} -} - -func (x *TransferResponse) GetTransfers() []*LedgerEntry { - if x != nil { - return x.Transfers - } - return nil -} - -func (x *TransferResponse) GetBalances() []*TransferBalance { - if x != nil { - return x.Balances - } - return nil -} - -// Represents the margin levels for a party on a market at a given time -type MarginLevels struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Maintenance margin value - MaintenanceMargin uint64 `protobuf:"varint,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"` - // Search level value - SearchLevel uint64 `protobuf:"varint,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"` - // Initial margin value - InitialMargin uint64 `protobuf:"varint,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"` - // Collateral release level value - CollateralReleaseLevel uint64 `protobuf:"varint,4,opt,name=collateral_release_level,json=collateralReleaseLevel,proto3" json:"collateral_release_level,omitempty"` - // Party identifier - PartyId string `protobuf:"bytes,5,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Market identifier - MarketId string `protobuf:"bytes,6,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Asset identifier - Asset string `protobuf:"bytes,7,opt,name=asset,proto3" json:"asset,omitempty"` - // Timestamp for the time the ledger entry was created, in nanoseconds since the epoch - // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *MarginLevels) Reset() { - *x = MarginLevels{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MarginLevels) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MarginLevels) ProtoMessage() {} - -func (x *MarginLevels) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MarginLevels.ProtoReflect.Descriptor instead. -func (*MarginLevels) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{31} -} - -func (x *MarginLevels) GetMaintenanceMargin() uint64 { - if x != nil { - return x.MaintenanceMargin - } - return 0 -} - -func (x *MarginLevels) GetSearchLevel() uint64 { - if x != nil { - return x.SearchLevel - } - return 0 -} - -func (x *MarginLevels) GetInitialMargin() uint64 { - if x != nil { - return x.InitialMargin - } - return 0 -} - -func (x *MarginLevels) GetCollateralReleaseLevel() uint64 { - if x != nil { - return x.CollateralReleaseLevel - } - return 0 -} - -func (x *MarginLevels) GetPartyId() string { - if x != nil { - return x.PartyId - } - return "" -} - -func (x *MarginLevels) GetMarketId() string { - if x != nil { - return x.MarketId - } - return "" -} - -func (x *MarginLevels) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -func (x *MarginLevels) GetTimestamp() int64 { - if x != nil { - return x.Timestamp + return x.Timestamp } return 0 } @@ -4220,7 +3951,7 @@ type MarketData struct { func (x *MarketData) Reset() { *x = MarketData{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[32] + mi := &file_vega_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4233,7 +3964,7 @@ func (x *MarketData) String() string { func (*MarketData) ProtoMessage() {} func (x *MarketData) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[32] + mi := &file_vega_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4246,7 +3977,7 @@ func (x *MarketData) ProtoReflect() protoreflect.Message { // Deprecated: Use MarketData.ProtoReflect.Descriptor instead. func (*MarketData) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{32} + return file_vega_proto_rawDescGZIP(), []int{31} } func (x *MarketData) GetMarkPrice() uint64 { @@ -4448,7 +4179,7 @@ type LiquidityProviderFeeShare struct { func (x *LiquidityProviderFeeShare) Reset() { *x = LiquidityProviderFeeShare{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[33] + mi := &file_vega_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4461,7 +4192,7 @@ func (x *LiquidityProviderFeeShare) String() string { func (*LiquidityProviderFeeShare) ProtoMessage() {} func (x *LiquidityProviderFeeShare) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[33] + mi := &file_vega_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4474,7 +4205,7 @@ func (x *LiquidityProviderFeeShare) ProtoReflect() protoreflect.Message { // Deprecated: Use LiquidityProviderFeeShare.ProtoReflect.Descriptor instead. func (*LiquidityProviderFeeShare) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{33} + return file_vega_proto_rawDescGZIP(), []int{32} } func (x *LiquidityProviderFeeShare) GetParty() string { @@ -4517,20 +4248,498 @@ type PriceMonitoringBounds struct { func (x *PriceMonitoringBounds) Reset() { *x = PriceMonitoringBounds{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[34] + mi := &file_vega_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PriceMonitoringBounds) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PriceMonitoringBounds) ProtoMessage() {} + +func (x *PriceMonitoringBounds) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PriceMonitoringBounds.ProtoReflect.Descriptor instead. +func (*PriceMonitoringBounds) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{33} +} + +func (x *PriceMonitoringBounds) GetMinValidPrice() uint64 { + if x != nil { + return x.MinValidPrice + } + return 0 +} + +func (x *PriceMonitoringBounds) GetMaxValidPrice() uint64 { + if x != nil { + return x.MaxValidPrice + } + return 0 +} + +func (x *PriceMonitoringBounds) GetTrigger() *PriceMonitoringTrigger { + if x != nil { + return x.Trigger + } + return nil +} + +func (x *PriceMonitoringBounds) GetReferencePrice() float64 { + if x != nil { + return x.ReferencePrice + } + return 0 +} + +// Represents Vega domain specific error information over gRPC/Protobuf +type ErrorDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004 + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + // A message that describes the error in more detail, should describe the problem encountered + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Any inner error information that could add more context, or be helpful for error reporting + Inner string `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (x *ErrorDetail) Reset() { + *x = ErrorDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ErrorDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorDetail) ProtoMessage() {} + +func (x *ErrorDetail) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead. +func (*ErrorDetail) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{34} +} + +func (x *ErrorDetail) GetCode() int32 { + if x != nil { + return x.Code + } + return 0 +} + +func (x *ErrorDetail) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *ErrorDetail) GetInner() string { + if x != nil { + return x.Inner + } + return "" +} + +// Represents a network parameter on Vega +type NetworkParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique key + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The value for the network parameter + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *NetworkParameter) Reset() { + *x = NetworkParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NetworkParameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NetworkParameter) ProtoMessage() {} + +func (x *NetworkParameter) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NetworkParameter.ProtoReflect.Descriptor instead. +func (*NetworkParameter) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{35} +} + +func (x *NetworkParameter) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *NetworkParameter) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// Represents a liquidity order +type LiquidityOrder struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The pegged reference point for the order + Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"` + // The relative proportion of the commitment to be allocated at a price level + Proportion uint32 `protobuf:"varint,2,opt,name=proportion,proto3" json:"proportion,omitempty"` + // The offset/amount of units away for the order + Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` +} + +func (x *LiquidityOrder) Reset() { + *x = LiquidityOrder{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiquidityOrder) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityOrder) ProtoMessage() {} + +func (x *LiquidityOrder) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiquidityOrder.ProtoReflect.Descriptor instead. +func (*LiquidityOrder) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{36} +} + +func (x *LiquidityOrder) GetReference() PeggedReference { + if x != nil { + return x.Reference + } + return PeggedReference_PEGGED_REFERENCE_UNSPECIFIED +} + +func (x *LiquidityOrder) GetProportion() uint32 { + if x != nil { + return x.Proportion + } + return 0 +} + +func (x *LiquidityOrder) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +// A pair of a liquidity order and the id of the generated order by the core +type LiquidityOrderReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier of the pegged order generated by the core to fulfil this liquidity order + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + // The liquidity order from the original submission + LiquidityOrder *LiquidityOrder `protobuf:"bytes,2,opt,name=liquidity_order,json=liquidityOrder,proto3" json:"liquidity_order,omitempty"` +} + +func (x *LiquidityOrderReference) Reset() { + *x = LiquidityOrderReference{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiquidityOrderReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityOrderReference) ProtoMessage() {} + +func (x *LiquidityOrderReference) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiquidityOrderReference.ProtoReflect.Descriptor instead. +func (*LiquidityOrderReference) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{37} +} + +func (x *LiquidityOrderReference) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *LiquidityOrderReference) GetLiquidityOrder() *LiquidityOrder { + if x != nil { + return x.LiquidityOrder + } + return nil +} + +// An Liquidity provider commitment +type LiquidityProvision struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Unique party identifier for the creator of the provision + PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + // Timestamp for when the order was created at, in nanoseconds since the epoch + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Timestamp for when the order was updated at, in nanoseconds since the epoch + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Market identifier for the order, required field + MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` + // Specified as a unitless number that represents the amount of settlement asset of the market + CommitmentAmount uint64 `protobuf:"varint,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` + // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers + Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"` + // A set of liquidity sell orders to meet the liquidity provision obligation + Sells []*LiquidityOrderReference `protobuf:"bytes,8,rep,name=sells,proto3" json:"sells,omitempty"` + // A set of liquidity buy orders to meet the liquidity provision obligation + Buys []*LiquidityOrderReference `protobuf:"bytes,9,rep,name=buys,proto3" json:"buys,omitempty"` + // Version of this liquidity provision order + Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` + // Status of this liquidity provision order + Status LiquidityProvision_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.LiquidityProvision_Status" json:"status,omitempty"` + // A reference shared between this liquidity provision and all it's orders + Reference string `protobuf:"bytes,12,opt,name=reference,proto3" json:"reference,omitempty"` +} + +func (x *LiquidityProvision) Reset() { + *x = LiquidityProvision{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiquidityProvision) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiquidityProvision) ProtoMessage() {} + +func (x *LiquidityProvision) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiquidityProvision.ProtoReflect.Descriptor instead. +func (*LiquidityProvision) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{38} +} + +func (x *LiquidityProvision) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *LiquidityProvision) GetPartyId() string { + if x != nil { + return x.PartyId + } + return "" +} + +func (x *LiquidityProvision) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *LiquidityProvision) GetUpdatedAt() int64 { + if x != nil { + return x.UpdatedAt + } + return 0 +} + +func (x *LiquidityProvision) GetMarketId() string { + if x != nil { + return x.MarketId + } + return "" +} + +func (x *LiquidityProvision) GetCommitmentAmount() uint64 { + if x != nil { + return x.CommitmentAmount + } + return 0 +} + +func (x *LiquidityProvision) GetFee() string { + if x != nil { + return x.Fee + } + return "" +} + +func (x *LiquidityProvision) GetSells() []*LiquidityOrderReference { + if x != nil { + return x.Sells + } + return nil +} + +func (x *LiquidityProvision) GetBuys() []*LiquidityOrderReference { + if x != nil { + return x.Buys + } + return nil +} + +func (x *LiquidityProvision) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *LiquidityProvision) GetStatus() LiquidityProvision_Status { + if x != nil { + return x.Status + } + return LiquidityProvision_STATUS_UNSPECIFIED +} + +func (x *LiquidityProvision) GetReference() string { + if x != nil { + return x.Reference + } + return "" +} + +// Ethereum configuration details +type EthereumConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Network identifier of this Ethereum network + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + // Chain identifier of this Ethereum network + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Bridge address for this Ethereum network + BridgeAddress string `protobuf:"bytes,3,opt,name=bridge_address,json=bridgeAddress,proto3" json:"bridge_address,omitempty"` + // Number of confirmations + Confirmations uint32 `protobuf:"varint,4,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + // Staking Bridge addresses for the ethereum network + StakingBridgeAddresses []string `protobuf:"bytes,5,rep,name=staking_bridge_addresses,json=stakingBridgeAddresses,proto3" json:"staking_bridge_addresses,omitempty"` +} + +func (x *EthereumConfig) Reset() { + *x = EthereumConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PriceMonitoringBounds) String() string { +func (x *EthereumConfig) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PriceMonitoringBounds) ProtoMessage() {} +func (*EthereumConfig) ProtoMessage() {} -func (x *PriceMonitoringBounds) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[34] +func (x *EthereumConfig) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4541,70 +4750,81 @@ func (x *PriceMonitoringBounds) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PriceMonitoringBounds.ProtoReflect.Descriptor instead. -func (*PriceMonitoringBounds) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{34} +// Deprecated: Use EthereumConfig.ProtoReflect.Descriptor instead. +func (*EthereumConfig) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{39} } -func (x *PriceMonitoringBounds) GetMinValidPrice() uint64 { +func (x *EthereumConfig) GetNetworkId() string { if x != nil { - return x.MinValidPrice + return x.NetworkId } - return 0 + return "" } -func (x *PriceMonitoringBounds) GetMaxValidPrice() uint64 { +func (x *EthereumConfig) GetChainId() string { if x != nil { - return x.MaxValidPrice + return x.ChainId } - return 0 + return "" } -func (x *PriceMonitoringBounds) GetTrigger() *PriceMonitoringTrigger { +func (x *EthereumConfig) GetBridgeAddress() string { if x != nil { - return x.Trigger + return x.BridgeAddress } - return nil + return "" } -func (x *PriceMonitoringBounds) GetReferencePrice() float64 { +func (x *EthereumConfig) GetConfirmations() uint32 { if x != nil { - return x.ReferencePrice + return x.Confirmations } return 0 } -// Represents Vega domain specific error information over gRPC/Protobuf -type ErrorDetail struct { +func (x *EthereumConfig) GetStakingBridgeAddresses() []string { + if x != nil { + return x.StakingBridgeAddresses + } + return nil +} + +// Describes in both human readable and block time when an epoch spans +type EpochTimestamps struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004 - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - // A message that describes the error in more detail, should describe the problem encountered - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // Any inner error information that could add more context, or be helpful for error reporting - Inner string `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"` + // Timestamp of epoch start in nanoseconds, empty if not started + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // Timestamp of epoch end in nanoseconds, empty if not started + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Height of first block in the epoch + FirstBlock uint64 `protobuf:"varint,3,opt,name=first_block,json=firstBlock,proto3" json:"first_block,omitempty"` + // Height of last block in the epoch, empty if not ended + LastBlock uint64 `protobuf:"varint,4,opt,name=last_block,json=lastBlock,proto3" json:"last_block,omitempty"` } -func (x *ErrorDetail) Reset() { - *x = ErrorDetail{} +func (x *EpochTimestamps) Reset() { + *x = EpochTimestamps{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[35] + mi := &file_vega_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ErrorDetail) String() string { +func (x *EpochTimestamps) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ErrorDetail) ProtoMessage() {} +func (*EpochTimestamps) ProtoMessage() {} -func (x *ErrorDetail) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[35] +func (x *EpochTimestamps) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4615,72 +4835,71 @@ func (x *ErrorDetail) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead. -func (*ErrorDetail) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{35} +// Deprecated: Use EpochTimestamps.ProtoReflect.Descriptor instead. +func (*EpochTimestamps) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{40} } -func (x *ErrorDetail) GetCode() int32 { +func (x *EpochTimestamps) GetStartTime() int64 { if x != nil { - return x.Code + return x.StartTime } return 0 } -func (x *ErrorDetail) GetMessage() string { +func (x *EpochTimestamps) GetEndTime() int64 { if x != nil { - return x.Message + return x.EndTime } - return "" + return 0 } -func (x *ErrorDetail) GetInner() string { +func (x *EpochTimestamps) GetFirstBlock() uint64 { if x != nil { - return x.Inner + return x.FirstBlock } - return "" + return 0 +} + +func (x *EpochTimestamps) GetLastBlock() uint64 { + if x != nil { + return x.LastBlock + } + return 0 } -// Represents a transaction to be sent to Vega -type Transaction struct { +type Epoch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // One of the set of Vega commands (proto marshalled) - InputData []byte `protobuf:"bytes,1,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"` - // A random number used to provide uniqueness and prevent against replay attack - Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - // The block height associated to the transaction, this should always be current block height - // of the node at the time of sending the Tx and block height is used as a mechanism - // for replay protection - BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - // The sender of the transaction, - // any of the following would be valid: - // - // Types that are assignable to From: - // *Transaction_Address - // *Transaction_PubKey - From isTransaction_From `protobuf_oneof:"from"` + // Sequence is used as epoch indentifier + Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` + // Timestamps for start/end etc + Timestamps *EpochTimestamps `protobuf:"bytes,2,opt,name=timestamps,proto3" json:"timestamps,omitempty"` + // Validators that participated in this epoch + Validators []*Node `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` + // List of all delegations in epoch + Delegations []*Delegation `protobuf:"bytes,4,rep,name=delegations,proto3" json:"delegations,omitempty"` } -func (x *Transaction) Reset() { - *x = Transaction{} +func (x *Epoch) Reset() { + *x = Epoch{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[36] + mi := &file_vega_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Transaction) String() string { +func (x *Epoch) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Transaction) ProtoMessage() {} +func (*Epoch) ProtoMessage() {} -func (x *Transaction) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[36] +func (x *Epoch) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4691,103 +4910,67 @@ func (x *Transaction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Transaction.ProtoReflect.Descriptor instead. -func (*Transaction) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{36} -} - -func (x *Transaction) GetInputData() []byte { - if x != nil { - return x.InputData - } - return nil +// Deprecated: Use Epoch.ProtoReflect.Descriptor instead. +func (*Epoch) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{41} } -func (x *Transaction) GetNonce() uint64 { +func (x *Epoch) GetSeq() uint64 { if x != nil { - return x.Nonce + return x.Seq } return 0 } -func (x *Transaction) GetBlockHeight() uint64 { +func (x *Epoch) GetTimestamps() *EpochTimestamps { if x != nil { - return x.BlockHeight - } - return 0 -} - -func (m *Transaction) GetFrom() isTransaction_From { - if m != nil { - return m.From + return x.Timestamps } return nil } -func (x *Transaction) GetAddress() []byte { - if x, ok := x.GetFrom().(*Transaction_Address); ok { - return x.Address +func (x *Epoch) GetValidators() []*Node { + if x != nil { + return x.Validators } return nil } -func (x *Transaction) GetPubKey() []byte { - if x, ok := x.GetFrom().(*Transaction_PubKey); ok { - return x.PubKey +func (x *Epoch) GetDelegations() []*Delegation { + if x != nil { + return x.Delegations } return nil } -type isTransaction_From interface { - isTransaction_From() -} - -type Transaction_Address struct { - // The address of the sender - Address []byte `protobuf:"bytes,1001,opt,name=address,proto3,oneof"` -} - -type Transaction_PubKey struct { - // The public key of the sender - PubKey []byte `protobuf:"bytes,1002,opt,name=pub_key,json=pubKey,proto3,oneof"` -} - -func (*Transaction_Address) isTransaction_From() {} - -func (*Transaction_PubKey) isTransaction_From() {} - -// A signature to be authenticate a transaction -// and to be verified by the vega network -type Signature struct { +type EpochParticipation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The bytes of the signature - Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` - // The algorithm used to create the signature - Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"` - // The version of the signature used to create the signature - Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + Epoch *Epoch `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Offline uint64 `protobuf:"varint,2,opt,name=offline,proto3" json:"offline,omitempty"` + Online uint64 `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"` + TotalRewards float64 `protobuf:"fixed64,4,opt,name=total_rewards,json=totalRewards,proto3" json:"total_rewards,omitempty"` } -func (x *Signature) Reset() { - *x = Signature{} +func (x *EpochParticipation) Reset() { + *x = EpochParticipation{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[37] + mi := &file_vega_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Signature) String() string { +func (x *EpochParticipation) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Signature) ProtoMessage() {} +func (*EpochParticipation) ProtoMessage() {} -func (x *Signature) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[37] +func (x *EpochParticipation) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4798,61 +4981,69 @@ func (x *Signature) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Signature.ProtoReflect.Descriptor instead. -func (*Signature) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{37} +// Deprecated: Use EpochParticipation.ProtoReflect.Descriptor instead. +func (*EpochParticipation) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{42} } -func (x *Signature) GetSig() []byte { +func (x *EpochParticipation) GetEpoch() *Epoch { if x != nil { - return x.Sig + return x.Epoch } return nil } -func (x *Signature) GetAlgo() string { +func (x *EpochParticipation) GetOffline() uint64 { if x != nil { - return x.Algo + return x.Offline } - return "" + return 0 } -func (x *Signature) GetVersion() uint32 { +func (x *EpochParticipation) GetOnline() uint64 { if x != nil { - return x.Version + return x.Online + } + return 0 +} + +func (x *EpochParticipation) GetTotalRewards() float64 { + if x != nil { + return x.TotalRewards } return 0 } -// A bundle of a transaction and it's signature -type SignedBundle struct { +type EpochData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Transaction payload (proto marshalled) - Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` - // The signature authenticating the transaction - Sig *Signature `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + // Total number of epochs since node was created + Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + // Total number of offline epochs since node was created + Offline int32 `protobuf:"varint,2,opt,name=offline,proto3" json:"offline,omitempty"` + // Total number of online epochs since node was created + Online int32 `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"` } -func (x *SignedBundle) Reset() { - *x = SignedBundle{} +func (x *EpochData) Reset() { + *x = EpochData{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[38] + mi := &file_vega_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SignedBundle) String() string { +func (x *EpochData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignedBundle) ProtoMessage() {} +func (*EpochData) ProtoMessage() {} -func (x *SignedBundle) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[38] +func (x *EpochData) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4863,54 +5054,80 @@ func (x *SignedBundle) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignedBundle.ProtoReflect.Descriptor instead. -func (*SignedBundle) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{38} +// Deprecated: Use EpochData.ProtoReflect.Descriptor instead. +func (*EpochData) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{43} } -func (x *SignedBundle) GetTx() []byte { +func (x *EpochData) GetTotal() int32 { if x != nil { - return x.Tx + return x.Total } - return nil + return 0 } -func (x *SignedBundle) GetSig() *Signature { +func (x *EpochData) GetOffline() int32 { if x != nil { - return x.Sig + return x.Offline } - return nil + return 0 } -// Represents a network parameter on Vega -type NetworkParameter struct { +func (x *EpochData) GetOnline() int32 { + if x != nil { + return x.Online + } + return 0 +} + +type Node struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The unique key - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // The value for the network parameter - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *NetworkParameter) Reset() { - *x = NetworkParameter{} + // The node url eg n01.vega.xyz + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Pub key of the node operator + PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + // URL where I can find out more info on the node + InfoUrl string `protobuf:"bytes,3,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"` + // Country code for the location of the node + Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` + // The amount the node has put up themselves + StakedByOperator string `protobuf:"bytes,5,opt,name=staked_by_operator,json=stakedByOperator,proto3" json:"staked_by_operator,omitempty"` + // The amount of stake that has been delegated by token holders + StakedByDelegates string `protobuf:"bytes,6,opt,name=staked_by_delegates,json=stakedByDelegates,proto3" json:"staked_by_delegates,omitempty"` + // Total amount staked on node + StakedTotal string `protobuf:"bytes,7,opt,name=staked_total,json=stakedTotal,proto3" json:"staked_total,omitempty"` + // Max amount of (wanted) stake, is this a network param or a node param + MaxIntendedStake string `protobuf:"bytes,8,opt,name=max_intended_stake,json=maxIntendedStake,proto3" json:"max_intended_stake,omitempty"` + // Amount of stake on the next epoch + PendingStake string `protobuf:"bytes,9,opt,name=pending_stake,json=pendingStake,proto3" json:"pending_stake,omitempty"` + // Informantion about epoch + EpochData *EpochData `protobuf:"bytes,10,opt,name=epoch_data,json=epochData,proto3" json:"epoch_data,omitempty"` + // Node status + Status NodeStatus `protobuf:"varint,11,opt,name=status,proto3,enum=vega.NodeStatus" json:"status,omitempty"` + // Node's delegations + Delagations []*Delegation `protobuf:"bytes,12,rep,name=delagations,proto3" json:"delagations,omitempty"` +} + +func (x *Node) Reset() { + *x = Node{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[39] + mi := &file_vega_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NetworkParameter) String() string { +func (x *Node) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NetworkParameter) ProtoMessage() {} +func (*Node) ProtoMessage() {} -func (x *NetworkParameter) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[39] +func (x *Node) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4921,121 +5138,129 @@ func (x *NetworkParameter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NetworkParameter.ProtoReflect.Descriptor instead. -func (*NetworkParameter) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{39} +// Deprecated: Use Node.ProtoReflect.Descriptor instead. +func (*Node) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{44} } -func (x *NetworkParameter) GetKey() string { +func (x *Node) GetId() string { if x != nil { - return x.Key + return x.Id } return "" } -func (x *NetworkParameter) GetValue() string { +func (x *Node) GetPubKey() string { if x != nil { - return x.Value + return x.PubKey } return "" } -// Represents a liquidity order -type LiquidityOrder struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *Node) GetInfoUrl() string { + if x != nil { + return x.InfoUrl + } + return "" +} - // The pegged reference point for the order - Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"` - // The relative proportion of the commitment to be allocated at a price level - Proportion uint32 `protobuf:"varint,2,opt,name=proportion,proto3" json:"proportion,omitempty"` - // The offset/amount of units away for the order - Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` +func (x *Node) GetLocation() string { + if x != nil { + return x.Location + } + return "" } -func (x *LiquidityOrder) Reset() { - *x = LiquidityOrder{} - if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Node) GetStakedByOperator() string { + if x != nil { + return x.StakedByOperator } + return "" } -func (x *LiquidityOrder) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Node) GetStakedByDelegates() string { + if x != nil { + return x.StakedByDelegates + } + return "" } -func (*LiquidityOrder) ProtoMessage() {} +func (x *Node) GetStakedTotal() string { + if x != nil { + return x.StakedTotal + } + return "" +} -func (x *LiquidityOrder) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Node) GetMaxIntendedStake() string { + if x != nil { + return x.MaxIntendedStake } - return mi.MessageOf(x) + return "" } -// Deprecated: Use LiquidityOrder.ProtoReflect.Descriptor instead. -func (*LiquidityOrder) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{40} +func (x *Node) GetPendingStake() string { + if x != nil { + return x.PendingStake + } + return "" } -func (x *LiquidityOrder) GetReference() PeggedReference { +func (x *Node) GetEpochData() *EpochData { if x != nil { - return x.Reference + return x.EpochData } - return PeggedReference_PEGGED_REFERENCE_UNSPECIFIED + return nil } -func (x *LiquidityOrder) GetProportion() uint32 { +func (x *Node) GetStatus() NodeStatus { if x != nil { - return x.Proportion + return x.Status } - return 0 + return NodeStatus_NODE_STATUS_UNSPECIFIED } -func (x *LiquidityOrder) GetOffset() int64 { +func (x *Node) GetDelagations() []*Delegation { if x != nil { - return x.Offset + return x.Delagations } - return 0 + return nil } -// A pair of a liquidity order and the id of the generated order by the core -type LiquidityOrderReference struct { +type NodeData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Unique identifier of the pegged order generated by the core to fulfil this liquidity order - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - // The liquidity order from the original submission - LiquidityOrder *LiquidityOrder `protobuf:"bytes,2,opt,name=liquidity_order,json=liquidityOrder,proto3" json:"liquidity_order,omitempty"` + // Total staked amount across all nodes + StakedTotal string `protobuf:"bytes,1,opt,name=staked_total,json=stakedTotal,proto3" json:"staked_total,omitempty"` + // Total number of nodes + TotalNodes uint32 `protobuf:"varint,2,opt,name=total_nodes,json=totalNodes,proto3" json:"total_nodes,omitempty"` + // Number of inactive nodes + InactiveNodes uint32 `protobuf:"varint,3,opt,name=inactive_nodes,json=inactiveNodes,proto3" json:"inactive_nodes,omitempty"` + // Number of nodes validating + ValidatingNodes uint32 `protobuf:"varint,4,opt,name=validating_nodes,json=validatingNodes,proto3" json:"validating_nodes,omitempty"` + // Total uptime for all epochs across all nodes + Uptime float32 `protobuf:"fixed32,5,opt,name=uptime,proto3" json:"uptime,omitempty"` } -func (x *LiquidityOrderReference) Reset() { - *x = LiquidityOrderReference{} +func (x *NodeData) Reset() { + *x = NodeData{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[41] + mi := &file_vega_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LiquidityOrderReference) String() string { +func (x *NodeData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LiquidityOrderReference) ProtoMessage() {} +func (*NodeData) ProtoMessage() {} -func (x *LiquidityOrderReference) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[41] +func (x *NodeData) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5046,76 +5271,78 @@ func (x *LiquidityOrderReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LiquidityOrderReference.ProtoReflect.Descriptor instead. -func (*LiquidityOrderReference) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{41} +// Deprecated: Use NodeData.ProtoReflect.Descriptor instead. +func (*NodeData) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{45} +} + +func (x *NodeData) GetStakedTotal() string { + if x != nil { + return x.StakedTotal + } + return "" +} + +func (x *NodeData) GetTotalNodes() uint32 { + if x != nil { + return x.TotalNodes + } + return 0 +} + +func (x *NodeData) GetInactiveNodes() uint32 { + if x != nil { + return x.InactiveNodes + } + return 0 } -func (x *LiquidityOrderReference) GetOrderId() string { +func (x *NodeData) GetValidatingNodes() uint32 { if x != nil { - return x.OrderId + return x.ValidatingNodes } - return "" + return 0 } -func (x *LiquidityOrderReference) GetLiquidityOrder() *LiquidityOrder { +func (x *NodeData) GetUptime() float32 { if x != nil { - return x.LiquidityOrder + return x.Uptime } - return nil + return 0 } -// An Liquidity provider commitment -type LiquidityProvision struct { +type Delegation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Unique identifier - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Unique party identifier for the creator of the provision - PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` - // Timestamp for when the order was created at, in nanoseconds since the epoch - // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Timestamp for when the order was updated at, in nanoseconds since the epoch - // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // Market identifier for the order, required field - MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` - // Specified as a unitless number that represents the amount of settlement asset of the market - CommitmentAmount uint64 `protobuf:"varint,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` - // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers - Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"` - // A set of liquidity sell orders to meet the liquidity provision obligation - Sells []*LiquidityOrderReference `protobuf:"bytes,8,rep,name=sells,proto3" json:"sells,omitempty"` - // A set of liquidity buy orders to meet the liquidity provision obligation - Buys []*LiquidityOrderReference `protobuf:"bytes,9,rep,name=buys,proto3" json:"buys,omitempty"` - // Version of this liquidity provision order - Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` - // Status of this liquidity provision order - Status LiquidityProvision_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.LiquidityProvision_Status" json:"status,omitempty"` - // A reference shared between this liquidity provision and all it's orders - Reference string `protobuf:"bytes,12,opt,name=reference,proto3" json:"reference,omitempty"` + // Party which is delegating + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + // Node ID + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Amount delegated + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // Epoch of delegation + EpochSeq string `protobuf:"bytes,4,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` } -func (x *LiquidityProvision) Reset() { - *x = LiquidityProvision{} +func (x *Delegation) Reset() { + *x = Delegation{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[42] + mi := &file_vega_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LiquidityProvision) String() string { +func (x *Delegation) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LiquidityProvision) ProtoMessage() {} +func (*Delegation) ProtoMessage() {} -func (x *LiquidityProvision) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[42] +func (x *Delegation) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5126,128 +5353,158 @@ func (x *LiquidityProvision) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LiquidityProvision.ProtoReflect.Descriptor instead. -func (*LiquidityProvision) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{42} +// Deprecated: Use Delegation.ProtoReflect.Descriptor instead. +func (*Delegation) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{46} } -func (x *LiquidityProvision) GetId() string { +func (x *Delegation) GetParty() string { if x != nil { - return x.Id + return x.Party } return "" } -func (x *LiquidityProvision) GetPartyId() string { +func (x *Delegation) GetNodeId() string { if x != nil { - return x.PartyId + return x.NodeId } return "" } -func (x *LiquidityProvision) GetCreatedAt() int64 { +func (x *Delegation) GetAmount() string { if x != nil { - return x.CreatedAt + return x.Amount } - return 0 + return "" } -func (x *LiquidityProvision) GetUpdatedAt() int64 { +func (x *Delegation) GetEpochSeq() string { if x != nil { - return x.UpdatedAt + return x.EpochSeq } - return 0 + return "" } -func (x *LiquidityProvision) GetMarketId() string { - if x != nil { - return x.MarketId +// Details for a single reward payment +type RewardDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` + Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + PercentageOfTotal string `protobuf:"bytes,5,opt,name=percentage_of_total,json=percentageOfTotal,proto3" json:"percentage_of_total,omitempty"` + ReceivedAt int64 `protobuf:"varint,6,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"` +} + +func (x *RewardDetails) Reset() { + *x = RewardDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_vega_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *LiquidityProvision) GetCommitmentAmount() uint64 { - if x != nil { - return x.CommitmentAmount +func (x *RewardDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewardDetails) ProtoMessage() {} + +func (x *RewardDetails) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *LiquidityProvision) GetFee() string { +// Deprecated: Use RewardDetails.ProtoReflect.Descriptor instead. +func (*RewardDetails) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{47} +} + +func (x *RewardDetails) GetAssetId() string { if x != nil { - return x.Fee + return x.AssetId } return "" } -func (x *LiquidityProvision) GetSells() []*LiquidityOrderReference { +func (x *RewardDetails) GetPartyId() string { if x != nil { - return x.Sells + return x.PartyId } - return nil + return "" } -func (x *LiquidityProvision) GetBuys() []*LiquidityOrderReference { +func (x *RewardDetails) GetEpoch() uint64 { if x != nil { - return x.Buys + return x.Epoch } - return nil + return 0 } -func (x *LiquidityProvision) GetVersion() string { +func (x *RewardDetails) GetAmount() string { if x != nil { - return x.Version + return x.Amount } return "" } -func (x *LiquidityProvision) GetStatus() LiquidityProvision_Status { +func (x *RewardDetails) GetPercentageOfTotal() string { if x != nil { - return x.Status + return x.PercentageOfTotal } - return LiquidityProvision_STATUS_UNSPECIFIED + return "" } -func (x *LiquidityProvision) GetReference() string { +func (x *RewardDetails) GetReceivedAt() int64 { if x != nil { - return x.Reference + return x.ReceivedAt } - return "" + return 0 } -// Ethereum configuration details -type EthereumConfig struct { +// Details for rewards for a single asset +type RewardPerAssetDetail struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Network identifier of this Ethereum network - NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` - // Chain identifier of this Ethereum network - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // Bridge address for this Ethereum network - BridgeAddress string `protobuf:"bytes,3,opt,name=bridge_address,json=bridgeAddress,proto3" json:"bridge_address,omitempty"` - // Number of confirmations - Confirmations uint32 `protobuf:"varint,4,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + // asset details + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + // rewards ordered by received_at + Details []*RewardDetails `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"` + // Total amount of rewards for the asset + TotalForAsset string `protobuf:"bytes,3,opt,name=total_for_asset,json=totalForAsset,proto3" json:"total_for_asset,omitempty"` } -func (x *EthereumConfig) Reset() { - *x = EthereumConfig{} +func (x *RewardPerAssetDetail) Reset() { + *x = RewardPerAssetDetail{} if protoimpl.UnsafeEnabled { - mi := &file_vega_proto_msgTypes[43] + mi := &file_vega_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EthereumConfig) String() string { +func (x *RewardPerAssetDetail) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EthereumConfig) ProtoMessage() {} +func (*RewardPerAssetDetail) ProtoMessage() {} -func (x *EthereumConfig) ProtoReflect() protoreflect.Message { - mi := &file_vega_proto_msgTypes[43] +func (x *RewardPerAssetDetail) ProtoReflect() protoreflect.Message { + mi := &file_vega_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5258,39 +5515,32 @@ func (x *EthereumConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EthereumConfig.ProtoReflect.Descriptor instead. -func (*EthereumConfig) Descriptor() ([]byte, []int) { - return file_vega_proto_rawDescGZIP(), []int{43} +// Deprecated: Use RewardPerAssetDetail.ProtoReflect.Descriptor instead. +func (*RewardPerAssetDetail) Descriptor() ([]byte, []int) { + return file_vega_proto_rawDescGZIP(), []int{48} } -func (x *EthereumConfig) GetNetworkId() string { +func (x *RewardPerAssetDetail) GetAsset() string { if x != nil { - return x.NetworkId + return x.Asset } return "" } -func (x *EthereumConfig) GetChainId() string { +func (x *RewardPerAssetDetail) GetDetails() []*RewardDetails { if x != nil { - return x.ChainId + return x.Details } - return "" + return nil } -func (x *EthereumConfig) GetBridgeAddress() string { +func (x *RewardPerAssetDetail) GetTotalForAsset() string { if x != nil { - return x.BridgeAddress + return x.TotalForAsset } return "" } -func (x *EthereumConfig) GetConfirmations() uint32 { - if x != nil { - return x.Confirmations - } - return 0 -} - var File_vega_proto protoreflect.FileDescriptor var file_vega_proto_rawDesc = []byte{ @@ -5299,917 +5549,930 @@ var file_vega_proto_rawDesc = []byte{ 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1d, 0x0a, 0x05, 0x50, 0x72, 0x69, - 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1f, 0x0a, 0x05, 0x50, - 0x61, 0x72, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4e, 0x0a, 0x0a, - 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x01, 0x52, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x6e, 0x67, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x6c, 0x6f, 0x6e, 0x67, 0x22, 0xd3, 0x03, 0x0a, - 0x0a, 0x52, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x44, 0x0a, 0x0c, 0x72, 0x69, 0x73, 0x6b, - 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x32, - 0x0a, 0x15, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6e, - 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x6d, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x65, 0x64, 0x5f, - 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, - 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, - 0x74, 0x65, 0x64, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, + 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1d, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x53, 0x0a, 0x05, 0x50, 0x61, 0x72, + 0x74, 0x79, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, + 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4e, + 0x0a, 0x0a, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, + 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x6c, 0x6f, 0x6e, 0x67, 0x22, 0xd3, + 0x03, 0x0a, 0x0a, 0x52, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, + 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x44, 0x0a, 0x0c, 0x72, 0x69, + 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, + 0x12, 0x32, 0x0a, 0x15, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x13, 0x6e, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x6d, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x65, + 0x64, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, + 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x70, 0x72, 0x65, 0x64, 0x69, + 0x63, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x1a, 0x50, 0x0a, 0x10, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, + 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5d, 0x0a, 0x1d, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x1a, 0x50, 0x0a, 0x10, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, - 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x5d, 0x0a, 0x1d, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x65, 0x64, - 0x4e, 0x65, 0x78, 0x74, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, 0x73, - 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x5a, 0x0a, 0x0b, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x12, 0x33, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x65, 0x67, 0x67, - 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xe2, - 0x08, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, - 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, - 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, - 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0e, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x64, 0x12, 0x34, 0x0a, 0x0c, 0x70, 0x65, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, - 0x65, 0x67, 0x67, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0b, 0x70, 0x65, 0x67, 0x67, - 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x6c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, - 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb6, 0x01, - 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, - 0x19, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x54, - 0x43, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, - 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x54, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, - 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4f, 0x43, 0x10, - 0x03, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, - 0x43, 0x45, 0x5f, 0x46, 0x4f, 0x4b, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, - 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x46, 0x41, 0x10, 0x05, 0x12, - 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, - 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x06, 0x22, 0x4f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x4d, - 0x49, 0x54, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, - 0x4b, 0x45, 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, - 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x03, 0x22, 0xc9, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, - 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, - 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x13, - 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, - 0x44, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x41, - 0x52, 0x54, 0x49, 0x41, 0x4c, 0x4c, 0x59, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x07, - 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x41, 0x52, 0x4b, 0x45, - 0x44, 0x10, 0x08, 0x22, 0x42, 0x0a, 0x1d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xa0, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, - 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, - 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x17, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, - 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x52, 0x15, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x73, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xd3, 0x01, 0x0a, 0x16, 0x41, - 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x69, 0x6e, - 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, - 0x11, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0c, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, - 0x22, 0xdb, 0x04, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, + 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5a, 0x0a, 0x0b, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x65, + 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x22, 0xe2, 0x08, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, - 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x12, - 0x28, 0x0a, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x64, 0x65, 0x52, 0x09, - 0x61, 0x67, 0x67, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x79, - 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, - 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x6c, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x09, 0x62, 0x75, 0x79, - 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x46, 0x65, 0x65, 0x52, 0x08, 0x62, 0x75, 0x79, 0x65, 0x72, 0x46, 0x65, - 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x46, 0x65, 0x65, - 0x52, 0x09, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x46, 0x65, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x62, - 0x75, 0x79, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x62, 0x75, 0x79, 0x65, 0x72, 0x41, - 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x73, - 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x73, 0x65, 0x6c, 0x6c, 0x65, - 0x72, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x22, 0x6f, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x1f, 0x0a, - 0x1b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x43, 0x4c, - 0x4f, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x47, 0x4f, 0x4f, 0x44, 0x10, 0x02, 0x12, 0x1e, - 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x43, - 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x42, 0x41, 0x44, 0x10, 0x03, 0x22, 0x76, - 0x0a, 0x03, 0x46, 0x65, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x6b, 0x65, 0x72, 0x5f, 0x66, - 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x6b, 0x65, 0x72, 0x46, - 0x65, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, - 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x46, 0x65, - 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x66, - 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, - 0x69, 0x74, 0x79, 0x46, 0x65, 0x65, 0x22, 0x2f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, - 0x65, 0x74, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, - 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x68, 0x69, 0x67, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, - 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6c, - 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x22, 0x64, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, - 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, - 0x66, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x16, - 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, 0x24, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, - 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12, 0x27, 0x0a, - 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa3, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x75, 0x79, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, 0x24, 0x0a, - 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x04, 0x73, - 0x65, 0x6c, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xfc, 0x01, 0x0a, - 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, - 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x6e, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x70, - 0x6e, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, - 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, - 0x73, 0x65, 0x64, 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x75, - 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x2e, 0x0a, 0x13, - 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, - 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x3d, 0x0a, 0x0d, 0x50, - 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xe9, 0x0a, 0x0a, 0x0a, 0x53, - 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x25, 0x0a, 0x0e, - 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x65, 0x65, - 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, - 0x65, 0x65, 0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, - 0x73, 0x69, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x65, - 0x67, 0x61, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, - 0x65, 0x67, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x78, 0x50, 0x65, 0x72, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x54, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x37, - 0x0a, 0x18, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, - 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x50, - 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x64, 0x65, - 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x70, 0x65, - 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, - 0x23, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, - 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x65, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, - 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x2c, - 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x13, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, - 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x64, - 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x12, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x12, 0x74, 0x72, 0x61, 0x64, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x73, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x17, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x13, 0x63, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x18, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x17, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x19, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, - 0x0a, 0x15, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x17, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x28, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x25, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, - 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x22, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x73, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x22, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, - 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x5d, - 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, - 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x03, 0x22, 0xbb, 0x03, - 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, - 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, - 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2f, 0x0a, 0x13, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, - 0x61, 0x77, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, - 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, 0x52, 0x03, 0x65, 0x78, 0x74, 0x22, 0x5d, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, - 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, - 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, - 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x03, 0x22, 0x44, 0x0a, 0x0b, 0x57, - 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, - 0x63, 0x32, 0x30, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x45, 0x72, 0x63, 0x32, 0x30, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, - 0x74, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 0x42, 0x05, 0x0a, 0x03, 0x65, 0x78, - 0x74, 0x22, 0x3d, 0x0a, 0x10, 0x45, 0x72, 0x63, 0x32, 0x30, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, - 0x61, 0x77, 0x45, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0xa3, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3f, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, - 0x69, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x09, 0x74, 0x6f, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, - 0xb7, 0x01, 0x0a, 0x0b, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x54, 0x0a, 0x0f, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x07, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, - 0x76, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x65, - 0x64, 0x67, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xad, 0x02, 0x0a, 0x0c, 0x4d, 0x61, 0x72, 0x67, - 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6e, - 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, - 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, - 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x16, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, - 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, - 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xd3, 0x09, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, - 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, - 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x62, - 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, - 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, - 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x62, - 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x0a, - 0x11, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x76, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x62, 0x65, 0x73, - 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x16, - 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x62, 0x69, 0x64, 0x5f, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x62, 0x65, - 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x12, 0x35, 0x0a, 0x17, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, - 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x14, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x62, 0x65, 0x73, 0x74, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x62, 0x65, 0x73, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, - 0x0a, 0x10, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6d, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, - 0x4d, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, - 0x0a, 0x0d, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, - 0x6e, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x75, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, - 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x12, 0x48, 0x0a, 0x13, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x64, - 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, - 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x11, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x74, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x11, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x21, - 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x16, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x73, 0x74, - 0x61, 0x6b, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x75, 0x70, 0x70, 0x6c, - 0x69, 0x65, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x53, 0x0a, 0x17, 0x70, 0x72, 0x69, 0x63, - 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x75, - 0x6e, 0x64, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, - 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x15, 0x70, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x2c, 0x0a, - 0x12, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x60, 0x0a, 0x1c, 0x6c, - 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x1a, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, - 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x19, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x22, 0x95, 0x01, - 0x0a, 0x19, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, - 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x71, 0x75, 0x69, 0x74, 0x79, 0x5f, 0x6c, 0x69, 0x6b, 0x65, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x71, - 0x75, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x6b, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x36, 0x0a, - 0x17, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, - 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, - 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, - 0x36, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, - 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, - 0x52, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x22, 0x51, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, - 0x6e, 0x65, 0x72, 0x22, 0xa6, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x4b, 0x0a, 0x09, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x61, - 0x6c, 0x67, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x41, 0x0a, 0x0c, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x78, 0x12, 0x21, 0x0a, 0x03, 0x73, 0x69, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x03, 0x73, 0x69, 0x67, 0x22, 0x3a, 0x0a, 0x10, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7d, 0x0a, 0x0e, 0x4c, 0x69, 0x71, 0x75, - 0x69, 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x09, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x73, 0x0a, 0x17, 0x4c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3d, 0x0a, - 0x0f, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, - 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x6c, 0x69, - 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xda, 0x04, 0x0a, - 0x12, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x09, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x65, 0x65, - 0x12, 0x33, 0x0a, 0x05, 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, - 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x62, 0x75, 0x79, 0x73, 0x18, 0x09, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, - 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x04, 0x62, 0x75, 0x79, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, - 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x06, 0x53, 0x74, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73, 0x69, + 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x0d, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x17, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, + 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0c, 0x70, 0x65, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0b, 0x70, 0x65, + 0x67, 0x67, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x6c, 0x69, 0x71, + 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6c, 0x69, 0x71, 0x75, 0x69, + 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, + 0xb6, 0x01, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, + 0x1d, 0x0a, 0x19, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, + 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, + 0x47, 0x54, 0x43, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, + 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x54, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, + 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4f, + 0x43, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, + 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x46, 0x4f, 0x4b, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, + 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x46, 0x41, 0x10, + 0x05, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, + 0x43, 0x45, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x06, 0x22, 0x4f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, + 0x41, 0x52, 0x4b, 0x45, 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x03, 0x22, 0xc9, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, + 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, - 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x15, - 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x50, 0x4c, 0x4f, - 0x59, 0x45, 0x44, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x22, 0x97, 0x01, 0x0a, 0x0e, 0x45, 0x74, - 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x24, 0x0a, - 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2a, 0x39, 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, - 0x49, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x42, 0x55, 0x59, 0x10, 0x01, 0x12, - 0x0d, 0x0a, 0x09, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x98, - 0x01, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x14, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, - 0x4c, 0x5f, 0x49, 0x31, 0x4d, 0x10, 0x3c, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, - 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x35, 0x4d, 0x10, 0xac, 0x02, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x4e, - 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x35, 0x4d, 0x10, 0x84, 0x07, 0x12, 0x11, - 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x48, 0x10, 0x90, - 0x1c, 0x12, 0x12, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x36, - 0x48, 0x10, 0xe0, 0xa8, 0x01, 0x12, 0x12, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, - 0x4c, 0x5f, 0x49, 0x31, 0x44, 0x10, 0x80, 0xa3, 0x05, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x41, 0x75, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x1b, - 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, - 0x15, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, - 0x5f, 0x42, 0x41, 0x54, 0x43, 0x48, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4f, 0x50, 0x45, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x03, - 0x12, 0x1d, 0x0a, 0x19, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, - 0x47, 0x45, 0x52, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x04, 0x2a, - 0x8b, 0x01, 0x0a, 0x0f, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, - 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, - 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x49, 0x44, 0x10, 0x01, 0x12, - 0x1d, 0x0a, 0x19, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, - 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, - 0x0a, 0x19, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, - 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x53, 0x4b, 0x10, 0x03, 0x2a, 0xf8, 0x0f, - 0x0a, 0x0a, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, - 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1f, - 0x0a, 0x1b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x55, - 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, - 0x26, 0x0a, 0x22, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, - 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x52, 0x45, 0x4d, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, - 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, - 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, - 0x4c, 0x55, 0x52, 0x45, 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x45, 0x58, - 0x50, 0x49, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, - 0x45, 0x10, 0x07, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x44, 0x49, 0x54, - 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1d, - 0x0a, 0x19, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, - 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, - 0x15, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x54, - 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x0b, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, - 0x50, 0x41, 0x52, 0x54, 0x59, 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, - 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, - 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x0d, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, - 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x27, - 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, - 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x41, 0x43, - 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, - 0x49, 0x5a, 0x45, 0x10, 0x11, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x45, 0x52, - 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x12, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, + 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x04, 0x12, 0x11, 0x0a, + 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, + 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, + 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x4c, 0x59, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, + 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x41, 0x52, + 0x4b, 0x45, 0x44, 0x10, 0x08, 0x22, 0x42, 0x0a, 0x1d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xa0, 0x01, 0x0a, 0x11, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x21, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, + 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x17, 0x70, 0x61, 0x73, 0x73, 0x69, + 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x15, 0x70, 0x61, 0x73, 0x73, 0x69, 0x76, 0x65, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x73, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xd3, 0x01, 0x0a, + 0x16, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, + 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, + 0x6e, 0x64, 0x22, 0xdb, 0x04, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6c, + 0x6c, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, + 0x72, 0x12, 0x28, 0x0a, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x64, 0x65, + 0x52, 0x09, 0x61, 0x67, 0x67, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x62, + 0x75, 0x79, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x62, 0x75, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, + 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, + 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x09, 0x62, + 0x75, 0x79, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x46, 0x65, 0x65, 0x52, 0x08, 0x62, 0x75, 0x79, 0x65, 0x72, + 0x46, 0x65, 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x66, 0x65, + 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x46, + 0x65, 0x65, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x46, 0x65, 0x65, 0x12, 0x2e, 0x0a, + 0x13, 0x62, 0x75, 0x79, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x62, 0x75, 0x79, 0x65, + 0x72, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x30, 0x0a, + 0x14, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x73, 0x65, 0x6c, + 0x6c, 0x65, 0x72, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x22, + 0x6f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, + 0x1f, 0x0a, 0x1b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, + 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x47, 0x4f, 0x4f, 0x44, 0x10, 0x02, + 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x42, 0x41, 0x44, 0x10, 0x03, + 0x22, 0x76, 0x0a, 0x03, 0x46, 0x65, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x6b, 0x65, 0x72, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x6b, 0x65, + 0x72, 0x46, 0x65, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x11, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, + 0x46, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x69, 0x71, 0x75, + 0x69, 0x64, 0x69, 0x74, 0x79, 0x46, 0x65, 0x65, 0x22, 0x2f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x64, + 0x65, 0x53, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, + 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x06, 0x43, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x68, 0x69, + 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x22, 0x64, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x5f, 0x6f, 0x66, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, 0x24, 0x0a, 0x04, 0x73, 0x65, 0x6c, + 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12, + 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa3, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x44, 0x65, 0x70, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x62, + 0x75, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, + 0x24, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, + 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, + 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xfc, + 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x6e, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, + 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x6c, + 0x69, 0x73, 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x6e, 0x72, 0x65, 0x61, + 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x2e, + 0x0a, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x76, 0x65, + 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x3d, 0x0a, + 0x0d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xe4, 0x02, 0x0a, + 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x65, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x22, 0x5d, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, + 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, + 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, + 0x44, 0x10, 0x03, 0x22, 0xbb, 0x03, 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, + 0x72, 0x65, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x16, + 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, + 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x2b, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2f, 0x0a, 0x13, + 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, + 0x72, 0x61, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x0a, + 0x03, 0x65, 0x78, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, 0x52, 0x03, 0x65, + 0x78, 0x74, 0x22, 0x5d, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, + 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, + 0x03, 0x22, 0x44, 0x0a, 0x0b, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, + 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x45, 0x72, 0x63, 0x32, 0x30, 0x57, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, + 0x42, 0x05, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x22, 0x3d, 0x0a, 0x10, 0x45, 0x72, 0x63, 0x32, 0x30, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x45, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3f, 0x0a, 0x0f, + 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x96, 0x01, + 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, + 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, + 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x0a, + 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x09, 0x74, 0x6f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x0b, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, + 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x54, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x08, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xad, 0x02, + 0x0a, 0x0c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2d, + 0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x61, + 0x72, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x69, 0x6e, + 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x21, 0x0a, + 0x0c, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x72, 0x67, + 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x63, 0x6f, 0x6c, 0x6c, 0x61, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x63, 0x6f, 0x6c, 0x6c, 0x61, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xd3, 0x09, + 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, + 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, + 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0c, 0x62, 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x65, 0x73, 0x74, + 0x42, 0x69, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x65, 0x73, + 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0e, 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, + 0x72, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, + 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, + 0x31, 0x0a, 0x15, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x62, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, + 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, + 0x63, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x13, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, + 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x17, 0x62, 0x65, 0x73, 0x74, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x37, + 0x0a, 0x18, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6f, 0x66, + 0x66, 0x65, 0x72, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x15, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, 0x66, 0x65, + 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x64, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x69, 0x64, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6d, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4d, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x65, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6f, 0x70, 0x65, + 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, + 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x69, 0x6e, 0x64, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x6e, + 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x13, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x5f, 0x74, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x13, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x11, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x14, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x12, 0x41, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x75, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x53, + 0x0a, 0x17, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x15, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x75, + 0x6e, 0x64, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x12, 0x60, 0x0a, 0x1c, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, + 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x19, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, + 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x46, 0x65, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x71, 0x75, 0x69, 0x74, + 0x79, 0x5f, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x65, 0x71, 0x75, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x6b, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x65, + 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x15, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, + 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, + 0x6d, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, + 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x22, 0x3a, 0x0a, 0x10, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7d, 0x0a, 0x0e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, + 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x22, 0x73, 0x0a, 0x17, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0f, 0x6c, 0x69, + 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, + 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x6c, 0x69, 0x71, 0x75, 0x69, + 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xda, 0x04, 0x0a, 0x12, 0x4c, 0x69, + 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, + 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2b, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, + 0x65, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x33, 0x0a, + 0x05, 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x73, 0x65, 0x6c, + 0x6c, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x62, 0x75, 0x79, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x04, 0x62, 0x75, 0x79, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x02, + 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, + 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x45, 0x44, + 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x22, 0xd1, 0x01, 0x0a, 0x0e, 0x45, 0x74, 0x68, 0x65, 0x72, + 0x65, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x38, 0x0a, 0x18, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x16, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, + 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0xb8, 0x01, 0x0a, 0x05, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x03, 0x73, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x42, + 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, + 0x32, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x50, 0x61, 0x72, + 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x05, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x22, 0x53, 0x0a, 0x09, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, + 0x18, 0x0a, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, + 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, + 0x65, 0x22, 0xe0, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x07, 0x70, 0x75, + 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, + 0x02, 0x58, 0x01, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, + 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, + 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x54, 0x6f, + 0x74, 0x61, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x61, + 0x6b, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x42, 0x06, 0xe2, 0xdf, 0x1f, + 0x02, 0x20, 0x01, 0x52, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x12, 0x30, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x20, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x61, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x54, + 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x69, + 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x22, + 0x70, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, + 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, + 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x65, + 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x65, + 0x71, 0x22, 0xc4, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, + 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x65, 0x72, 0x63, 0x65, + 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, + 0x4f, 0x66, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x66, 0x6f, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2a, 0x39, + 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, + 0x53, 0x49, 0x44, 0x45, 0x5f, 0x42, 0x55, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x49, + 0x44, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x98, 0x01, 0x0a, 0x08, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, + 0x41, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x4d, + 0x10, 0x3c, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, + 0x35, 0x4d, 0x10, 0xac, 0x02, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, + 0x4c, 0x5f, 0x49, 0x31, 0x35, 0x4d, 0x10, 0x84, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, + 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x48, 0x10, 0x90, 0x1c, 0x12, 0x12, 0x0a, 0x0c, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x36, 0x48, 0x10, 0xe0, 0xa8, 0x01, + 0x12, 0x12, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x44, + 0x10, 0x80, 0xa3, 0x05, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x42, 0x41, 0x54, 0x43, + 0x48, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, + 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, + 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, + 0x47, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x41, + 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4c, + 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x04, 0x2a, 0x8b, 0x01, 0x0a, 0x0f, 0x50, + 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x20, + 0x0a, 0x1c, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, + 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, + 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x49, 0x44, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x45, + 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, + 0x45, 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x45, 0x47, + 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, + 0x53, 0x54, 0x5f, 0x41, 0x53, 0x4b, 0x10, 0x03, 0x2a, 0xf8, 0x0f, 0x0a, 0x0a, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x52, 0x4b, + 0x45, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, + 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x54, 0x52, 0x41, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x14, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, - 0x4e, 0x54, 0x5f, 0x46, 0x55, 0x4e, 0x44, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, 0x59, 0x5f, - 0x46, 0x45, 0x45, 0x53, 0x10, 0x15, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, - 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x16, 0x12, 0x25, 0x0a, - 0x21, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, - 0x43, 0x45, 0x10, 0x17, 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, - 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x4e, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x18, 0x12, 0x33, 0x0a, 0x2f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x47, 0x46, 0x41, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, - 0x47, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x19, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, - 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x47, 0x54, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, - 0x54, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1a, 0x12, 0x29, 0x0a, 0x25, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, - 0x52, 0x59, 0x41, 0x54, 0x5f, 0x42, 0x45, 0x46, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, - 0x54, 0x45, 0x44, 0x41, 0x54, 0x10, 0x1b, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x48, 0x41, - 0x56, 0x45, 0x5f, 0x47, 0x54, 0x43, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, - 0x59, 0x41, 0x54, 0x10, 0x1c, 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, - 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x5f, 0x49, 0x4f, 0x43, 0x10, - 0x1d, 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x44, 0x5f, 0x52, 0x45, 0x4d, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x49, 0x5a, 0x45, + 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, + 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, + 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x07, 0x12, 0x27, + 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x45, + 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, + 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, + 0x44, 0x10, 0x0b, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x59, + 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x4c, 0x4f, 0x53, + 0x45, 0x44, 0x10, 0x0d, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, + 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, + 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x11, + 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x49, 0x53, 0x54, 0x45, + 0x4e, 0x43, 0x45, 0x10, 0x12, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x14, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x55, + 0x4e, 0x44, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x10, + 0x15, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x16, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, + 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x10, 0x17, 0x12, + 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x47, + 0x46, 0x4e, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, + 0x41, 0x4e, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x18, 0x12, 0x33, 0x0a, 0x2f, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x41, 0x5f, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x4f, 0x4e, + 0x54, 0x49, 0x4e, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x19, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, - 0x5f, 0x47, 0x46, 0x41, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1e, 0x12, 0x2c, 0x0a, - 0x28, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, - 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x47, - 0x46, 0x41, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1f, 0x12, 0x34, 0x0a, 0x30, 0x4f, + 0x5f, 0x47, 0x54, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x58, 0x50, + 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1a, 0x12, 0x29, 0x0a, 0x25, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x5f, + 0x42, 0x45, 0x46, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x41, 0x54, + 0x10, 0x1b, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x48, 0x41, 0x56, 0x45, 0x5f, 0x47, 0x54, + 0x43, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1c, + 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, + 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x5f, 0x49, 0x4f, 0x43, 0x10, 0x1d, 0x12, 0x2a, 0x0a, 0x26, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, + 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x47, 0x46, 0x41, 0x5f, + 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1e, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, + 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x47, 0x46, 0x41, 0x5f, 0x4f, 0x52, + 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1f, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, + 0x44, 0x5f, 0x49, 0x4f, 0x43, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, + 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x20, 0x12, 0x34, 0x0a, 0x30, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, + 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x21, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x5f, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x22, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, + 0x54, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x54, 0x43, 0x10, 0x23, 0x12, 0x27, 0x0a, 0x23, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, + 0x55, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x49, + 0x43, 0x45, 0x10, 0x24, 0x12, 0x33, 0x0a, 0x2f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x42, 0x55, 0x59, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x52, + 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x53, + 0x4b, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x25, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, + 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x4f, 0x52, 0x5f, + 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x26, 0x12, + 0x2d, 0x0a, 0x29, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, + 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, + 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x27, 0x12, 0x37, + 0x0a, 0x33, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, + 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, 0x45, + 0x41, 0x54, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, + 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x28, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x5f, 0x43, 0x41, 0x4e, 0x4e, + 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, + 0x54, 0x5f, 0x42, 0x49, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x29, 0x12, 0x30, 0x0a, + 0x2c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, + 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, 0x45, 0x41, + 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x2a, 0x12, + 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, + 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x2b, 0x12, 0x45, 0x0a, 0x41, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, - 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x49, 0x4f, 0x43, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x20, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x4b, - 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x21, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, - 0x49, 0x4d, 0x49, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x22, 0x12, 0x22, 0x0a, 0x1e, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, - 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x54, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x54, 0x43, 0x10, 0x23, - 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, - 0x45, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x24, 0x12, 0x33, 0x0a, 0x2f, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x42, 0x55, 0x59, 0x5f, 0x43, 0x41, 0x4e, - 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, - 0x53, 0x54, 0x5f, 0x41, 0x53, 0x4b, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x25, 0x12, 0x34, - 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, - 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, 0x53, - 0x53, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x5f, 0x5a, 0x45, - 0x52, 0x4f, 0x10, 0x26, 0x12, 0x2d, 0x0a, 0x29, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, - 0x42, 0x45, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, - 0x4f, 0x10, 0x27, 0x12, 0x37, 0x0a, 0x33, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, - 0x45, 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, - 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x28, 0x12, 0x34, 0x0a, 0x30, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x4c, - 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, - 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, - 0x10, 0x29, 0x12, 0x30, 0x0a, 0x2c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, - 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, - 0x52, 0x4f, 0x10, 0x2a, 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, - 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x2b, - 0x12, 0x45, 0x0a, 0x41, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x45, 0x47, - 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, - 0x53, 0x5f, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2c, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, - 0x5f, 0x52, 0x45, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2d, 0x12, 0x35, 0x0a, 0x31, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, - 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x4f, 0x4e, 0x5f, - 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x38, - 0x0a, 0x34, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, - 0x4e, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, - 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x53, 0x10, 0x2f, 0x2a, 0x82, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x49, - 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, - 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x59, 0x49, 0x4e, 0x47, 0x10, - 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x90, 0x03, - 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, - 0x18, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x55, - 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x4d, 0x45, - 0x4e, 0x54, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, - 0x14, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, - 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x24, 0x0a, 0x20, 0x41, 0x43, 0x43, 0x4f, 0x55, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x46, - 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x1f, 0x0a, - 0x1b, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, - 0x45, 0x53, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x06, 0x12, 0x1b, - 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, - 0x45, 0x45, 0x53, 0x5f, 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, - 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, - 0x10, 0x09, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x21, 0x0a, - 0x1d, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, - 0x4f, 0x42, 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x0b, - 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 0x0c, - 0x2a, 0xd3, 0x05, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x16, 0x0a, 0x12, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x02, 0x12, - 0x17, 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x4c, 0x4f, - 0x53, 0x53, 0x10, 0x04, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x05, 0x12, - 0x1c, 0x0a, 0x18, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x06, 0x12, 0x1d, 0x0a, - 0x19, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, - 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x07, 0x12, 0x24, 0x0a, 0x20, - 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, - 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x53, 0x43, 0x41, 0x54, 0x45, 0x44, - 0x10, 0x08, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, - 0x59, 0x10, 0x09, 0x12, 0x23, 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x52, - 0x45, 0x43, 0x45, 0x49, 0x56, 0x45, 0x10, 0x0a, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, - 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, - 0x10, 0x0b, 0x12, 0x2f, 0x0a, 0x2b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, - 0x52, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, - 0x45, 0x10, 0x0c, 0x12, 0x23, 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, + 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x53, 0x5f, 0x4f, 0x4e, 0x5f, + 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x10, 0x2c, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x50, 0x52, + 0x49, 0x43, 0x45, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x10, 0x2d, 0x12, 0x35, 0x0a, 0x31, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x41, 0x4d, 0x45, 0x4e, + 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, + 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x38, 0x0a, 0x34, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x52, + 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x4f, 0x55, + 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x42, 0x4f, 0x55, 0x4e, 0x44, + 0x53, 0x10, 0x2f, 0x2a, 0x82, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, + 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4e, + 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x90, 0x03, 0x0a, 0x0b, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, + 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, + 0x17, 0x0a, 0x13, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, + 0x10, 0x04, 0x12, 0x24, 0x0a, 0x20, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, + 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x4c, 0x49, + 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x4d, + 0x41, 0x4b, 0x45, 0x52, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x44, 0x52, 0x41, 0x57, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x19, 0x0a, + 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, + 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x43, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x5f, + 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x1e, 0x0a, 0x1a, 0x41, + 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, 0x42, + 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 0x0c, 0x2a, 0xd3, 0x05, 0x0a, 0x0c, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, + 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x53, + 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, + 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, + 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x04, 0x12, + 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x52, + 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, + 0x49, 0x4e, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, 0x4e, + 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, + 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x07, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x52, 0x41, 0x4e, 0x53, + 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x53, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x1f, 0x0a, + 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, + 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x09, 0x12, 0x23, + 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x49, 0x56, + 0x45, 0x10, 0x0a, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, + 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x0b, 0x12, 0x2f, 0x0a, + 0x2b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, + 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, + 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x23, + 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, + 0x59, 0x10, 0x0d, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x46, - 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x0d, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, - 0x49, 0x54, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, - 0x54, 0x45, 0x10, 0x0e, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x0f, - 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x10, 0x12, 0x1f, 0x0a, - 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, - 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x11, 0x12, 0x1a, - 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x10, 0x12, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, - 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, - 0x53, 0x49, 0x54, 0x10, 0x13, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, - 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x41, 0x53, - 0x48, 0x49, 0x4e, 0x47, 0x10, 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, - 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x5f, 0x52, 0x45, - 0x57, 0x41, 0x52, 0x44, 0x10, 0x15, 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, + 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0e, 0x12, + 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x0f, 0x12, 0x1b, 0x0a, 0x17, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, + 0x44, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x10, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, + 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, + 0x41, 0x57, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x11, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, + 0x52, 0x41, 0x57, 0x10, 0x12, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, + 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x13, + 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x41, 0x53, 0x48, 0x49, 0x4e, 0x47, 0x10, + 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, + 0x15, 0x2a, 0x63, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1b, 0x0a, 0x17, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, + 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4e, 0x4f, 0x44, 0x45, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x41, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x5a, 0x1f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, @@ -6228,8 +6491,8 @@ func file_vega_proto_rawDescGZIP() []byte { return file_vega_proto_rawDescData } -var file_vega_proto_enumTypes = make([]protoimpl.EnumInfo, 15) -var file_vega_proto_msgTypes = make([]protoimpl.MessageInfo, 46) +var file_vega_proto_enumTypes = make([]protoimpl.EnumInfo, 16) +var file_vega_proto_msgTypes = make([]protoimpl.MessageInfo, 51) var file_vega_proto_goTypes = []interface{}{ (Side)(0), // 0: vega.Side (Interval)(0), // 1: vega.Interval @@ -6239,33 +6502,33 @@ var file_vega_proto_goTypes = []interface{}{ (ChainStatus)(0), // 5: vega.ChainStatus (AccountType)(0), // 6: vega.AccountType (TransferType)(0), // 7: vega.TransferType - (Order_TimeInForce)(0), // 8: vega.Order.TimeInForce - (Order_Type)(0), // 9: vega.Order.Type - (Order_Status)(0), // 10: vega.Order.Status - (Trade_Type)(0), // 11: vega.Trade.Type - (Deposit_Status)(0), // 12: vega.Deposit.Status - (Withdrawal_Status)(0), // 13: vega.Withdrawal.Status - (LiquidityProvision_Status)(0), // 14: vega.LiquidityProvision.Status - (*Price)(nil), // 15: vega.Price - (*Timestamp)(nil), // 16: vega.Timestamp - (*Party)(nil), // 17: vega.Party - (*RiskFactor)(nil), // 18: vega.RiskFactor - (*RiskResult)(nil), // 19: vega.RiskResult - (*PeggedOrder)(nil), // 20: vega.PeggedOrder - (*Order)(nil), // 21: vega.Order - (*OrderCancellationConfirmation)(nil), // 22: vega.OrderCancellationConfirmation - (*OrderConfirmation)(nil), // 23: vega.OrderConfirmation - (*AuctionIndicativeState)(nil), // 24: vega.AuctionIndicativeState - (*Trade)(nil), // 25: vega.Trade - (*Fee)(nil), // 26: vega.Fee - (*TradeSet)(nil), // 27: vega.TradeSet - (*Candle)(nil), // 28: vega.Candle - (*PriceLevel)(nil), // 29: vega.PriceLevel - (*MarketDepth)(nil), // 30: vega.MarketDepth - (*MarketDepthUpdate)(nil), // 31: vega.MarketDepthUpdate - (*Position)(nil), // 32: vega.Position - (*PositionTrade)(nil), // 33: vega.PositionTrade - (*Statistics)(nil), // 34: vega.Statistics + (NodeStatus)(0), // 8: vega.NodeStatus + (Order_TimeInForce)(0), // 9: vega.Order.TimeInForce + (Order_Type)(0), // 10: vega.Order.Type + (Order_Status)(0), // 11: vega.Order.Status + (Trade_Type)(0), // 12: vega.Trade.Type + (Deposit_Status)(0), // 13: vega.Deposit.Status + (Withdrawal_Status)(0), // 14: vega.Withdrawal.Status + (LiquidityProvision_Status)(0), // 15: vega.LiquidityProvision.Status + (*Price)(nil), // 16: vega.Price + (*Timestamp)(nil), // 17: vega.Timestamp + (*Party)(nil), // 18: vega.Party + (*RiskFactor)(nil), // 19: vega.RiskFactor + (*RiskResult)(nil), // 20: vega.RiskResult + (*PeggedOrder)(nil), // 21: vega.PeggedOrder + (*Order)(nil), // 22: vega.Order + (*OrderCancellationConfirmation)(nil), // 23: vega.OrderCancellationConfirmation + (*OrderConfirmation)(nil), // 24: vega.OrderConfirmation + (*AuctionIndicativeState)(nil), // 25: vega.AuctionIndicativeState + (*Trade)(nil), // 26: vega.Trade + (*Fee)(nil), // 27: vega.Fee + (*TradeSet)(nil), // 28: vega.TradeSet + (*Candle)(nil), // 29: vega.Candle + (*PriceLevel)(nil), // 30: vega.PriceLevel + (*MarketDepth)(nil), // 31: vega.MarketDepth + (*MarketDepthUpdate)(nil), // 32: vega.MarketDepthUpdate + (*Position)(nil), // 33: vega.Position + (*PositionTrade)(nil), // 34: vega.PositionTrade (*Deposit)(nil), // 35: vega.Deposit (*Withdrawal)(nil), // 36: vega.Withdrawal (*WithdrawExt)(nil), // 37: vega.WithdrawExt @@ -6282,46 +6545,52 @@ var file_vega_proto_goTypes = []interface{}{ (*LiquidityProviderFeeShare)(nil), // 48: vega.LiquidityProviderFeeShare (*PriceMonitoringBounds)(nil), // 49: vega.PriceMonitoringBounds (*ErrorDetail)(nil), // 50: vega.ErrorDetail - (*Transaction)(nil), // 51: vega.Transaction - (*Signature)(nil), // 52: vega.Signature - (*SignedBundle)(nil), // 53: vega.SignedBundle - (*NetworkParameter)(nil), // 54: vega.NetworkParameter - (*LiquidityOrder)(nil), // 55: vega.LiquidityOrder - (*LiquidityOrderReference)(nil), // 56: vega.LiquidityOrderReference - (*LiquidityProvision)(nil), // 57: vega.LiquidityProvision - (*EthereumConfig)(nil), // 58: vega.EthereumConfig - nil, // 59: vega.RiskResult.RiskFactorsEntry - nil, // 60: vega.RiskResult.PredictedNextRiskFactorsEntry - (Market_TradingMode)(0), // 61: vega.Market.TradingMode - (*PriceMonitoringTrigger)(nil), // 62: vega.PriceMonitoringTrigger + (*NetworkParameter)(nil), // 51: vega.NetworkParameter + (*LiquidityOrder)(nil), // 52: vega.LiquidityOrder + (*LiquidityOrderReference)(nil), // 53: vega.LiquidityOrderReference + (*LiquidityProvision)(nil), // 54: vega.LiquidityProvision + (*EthereumConfig)(nil), // 55: vega.EthereumConfig + (*EpochTimestamps)(nil), // 56: vega.EpochTimestamps + (*Epoch)(nil), // 57: vega.Epoch + (*EpochParticipation)(nil), // 58: vega.EpochParticipation + (*EpochData)(nil), // 59: vega.EpochData + (*Node)(nil), // 60: vega.Node + (*NodeData)(nil), // 61: vega.NodeData + (*Delegation)(nil), // 62: vega.Delegation + (*RewardDetails)(nil), // 63: vega.RewardDetails + (*RewardPerAssetDetail)(nil), // 64: vega.RewardPerAssetDetail + nil, // 65: vega.RiskResult.RiskFactorsEntry + nil, // 66: vega.RiskResult.PredictedNextRiskFactorsEntry + (Market_TradingMode)(0), // 67: vega.Market.TradingMode + (*PriceMonitoringTrigger)(nil), // 68: vega.PriceMonitoringTrigger } var file_vega_proto_depIdxs = []int32{ - 59, // 0: vega.RiskResult.risk_factors:type_name -> vega.RiskResult.RiskFactorsEntry - 60, // 1: vega.RiskResult.predicted_next_risk_factors:type_name -> vega.RiskResult.PredictedNextRiskFactorsEntry - 3, // 2: vega.PeggedOrder.reference:type_name -> vega.PeggedReference - 0, // 3: vega.Order.side:type_name -> vega.Side - 8, // 4: vega.Order.time_in_force:type_name -> vega.Order.TimeInForce - 9, // 5: vega.Order.type:type_name -> vega.Order.Type - 10, // 6: vega.Order.status:type_name -> vega.Order.Status - 4, // 7: vega.Order.reason:type_name -> vega.OrderError - 20, // 8: vega.Order.pegged_order:type_name -> vega.PeggedOrder - 21, // 9: vega.OrderCancellationConfirmation.order:type_name -> vega.Order - 21, // 10: vega.OrderConfirmation.order:type_name -> vega.Order - 25, // 11: vega.OrderConfirmation.trades:type_name -> vega.Trade - 21, // 12: vega.OrderConfirmation.passive_orders_affected:type_name -> vega.Order - 0, // 13: vega.Trade.aggressor:type_name -> vega.Side - 11, // 14: vega.Trade.type:type_name -> vega.Trade.Type - 26, // 15: vega.Trade.buyer_fee:type_name -> vega.Fee - 26, // 16: vega.Trade.seller_fee:type_name -> vega.Fee - 25, // 17: vega.TradeSet.trades:type_name -> vega.Trade - 1, // 18: vega.Candle.interval:type_name -> vega.Interval - 29, // 19: vega.MarketDepth.buy:type_name -> vega.PriceLevel - 29, // 20: vega.MarketDepth.sell:type_name -> vega.PriceLevel - 29, // 21: vega.MarketDepthUpdate.buy:type_name -> vega.PriceLevel - 29, // 22: vega.MarketDepthUpdate.sell:type_name -> vega.PriceLevel - 5, // 23: vega.Statistics.status:type_name -> vega.ChainStatus - 12, // 24: vega.Deposit.status:type_name -> vega.Deposit.Status - 13, // 25: vega.Withdrawal.status:type_name -> vega.Withdrawal.Status + 62, // 0: vega.Party.delegations:type_name -> vega.Delegation + 65, // 1: vega.RiskResult.risk_factors:type_name -> vega.RiskResult.RiskFactorsEntry + 66, // 2: vega.RiskResult.predicted_next_risk_factors:type_name -> vega.RiskResult.PredictedNextRiskFactorsEntry + 3, // 3: vega.PeggedOrder.reference:type_name -> vega.PeggedReference + 0, // 4: vega.Order.side:type_name -> vega.Side + 9, // 5: vega.Order.time_in_force:type_name -> vega.Order.TimeInForce + 10, // 6: vega.Order.type:type_name -> vega.Order.Type + 11, // 7: vega.Order.status:type_name -> vega.Order.Status + 4, // 8: vega.Order.reason:type_name -> vega.OrderError + 21, // 9: vega.Order.pegged_order:type_name -> vega.PeggedOrder + 22, // 10: vega.OrderCancellationConfirmation.order:type_name -> vega.Order + 22, // 11: vega.OrderConfirmation.order:type_name -> vega.Order + 26, // 12: vega.OrderConfirmation.trades:type_name -> vega.Trade + 22, // 13: vega.OrderConfirmation.passive_orders_affected:type_name -> vega.Order + 0, // 14: vega.Trade.aggressor:type_name -> vega.Side + 12, // 15: vega.Trade.type:type_name -> vega.Trade.Type + 27, // 16: vega.Trade.buyer_fee:type_name -> vega.Fee + 27, // 17: vega.Trade.seller_fee:type_name -> vega.Fee + 26, // 18: vega.TradeSet.trades:type_name -> vega.Trade + 1, // 19: vega.Candle.interval:type_name -> vega.Interval + 30, // 20: vega.MarketDepth.buy:type_name -> vega.PriceLevel + 30, // 21: vega.MarketDepth.sell:type_name -> vega.PriceLevel + 30, // 22: vega.MarketDepthUpdate.buy:type_name -> vega.PriceLevel + 30, // 23: vega.MarketDepthUpdate.sell:type_name -> vega.PriceLevel + 13, // 24: vega.Deposit.status:type_name -> vega.Deposit.Status + 14, // 25: vega.Withdrawal.status:type_name -> vega.Withdrawal.Status 37, // 26: vega.Withdrawal.ext:type_name -> vega.WithdrawExt 38, // 27: vega.WithdrawExt.erc20:type_name -> vega.Erc20WithdrawExt 6, // 28: vega.Account.type:type_name -> vega.AccountType @@ -6332,25 +6601,32 @@ var file_vega_proto_depIdxs = []int32{ 39, // 33: vega.TransferBalance.account:type_name -> vega.Account 43, // 34: vega.TransferResponse.transfers:type_name -> vega.LedgerEntry 44, // 35: vega.TransferResponse.balances:type_name -> vega.TransferBalance - 61, // 36: vega.MarketData.market_trading_mode:type_name -> vega.Market.TradingMode + 67, // 36: vega.MarketData.market_trading_mode:type_name -> vega.Market.TradingMode 2, // 37: vega.MarketData.trigger:type_name -> vega.AuctionTrigger 2, // 38: vega.MarketData.extension_trigger:type_name -> vega.AuctionTrigger 49, // 39: vega.MarketData.price_monitoring_bounds:type_name -> vega.PriceMonitoringBounds 48, // 40: vega.MarketData.liquidity_provider_fee_share:type_name -> vega.LiquidityProviderFeeShare - 62, // 41: vega.PriceMonitoringBounds.trigger:type_name -> vega.PriceMonitoringTrigger - 52, // 42: vega.SignedBundle.sig:type_name -> vega.Signature - 3, // 43: vega.LiquidityOrder.reference:type_name -> vega.PeggedReference - 55, // 44: vega.LiquidityOrderReference.liquidity_order:type_name -> vega.LiquidityOrder - 56, // 45: vega.LiquidityProvision.sells:type_name -> vega.LiquidityOrderReference - 56, // 46: vega.LiquidityProvision.buys:type_name -> vega.LiquidityOrderReference - 14, // 47: vega.LiquidityProvision.status:type_name -> vega.LiquidityProvision.Status - 18, // 48: vega.RiskResult.RiskFactorsEntry.value:type_name -> vega.RiskFactor - 18, // 49: vega.RiskResult.PredictedNextRiskFactorsEntry.value:type_name -> vega.RiskFactor - 50, // [50:50] is the sub-list for method output_type - 50, // [50:50] is the sub-list for method input_type - 50, // [50:50] is the sub-list for extension type_name - 50, // [50:50] is the sub-list for extension extendee - 0, // [0:50] is the sub-list for field type_name + 68, // 41: vega.PriceMonitoringBounds.trigger:type_name -> vega.PriceMonitoringTrigger + 3, // 42: vega.LiquidityOrder.reference:type_name -> vega.PeggedReference + 52, // 43: vega.LiquidityOrderReference.liquidity_order:type_name -> vega.LiquidityOrder + 53, // 44: vega.LiquidityProvision.sells:type_name -> vega.LiquidityOrderReference + 53, // 45: vega.LiquidityProvision.buys:type_name -> vega.LiquidityOrderReference + 15, // 46: vega.LiquidityProvision.status:type_name -> vega.LiquidityProvision.Status + 56, // 47: vega.Epoch.timestamps:type_name -> vega.EpochTimestamps + 60, // 48: vega.Epoch.validators:type_name -> vega.Node + 62, // 49: vega.Epoch.delegations:type_name -> vega.Delegation + 57, // 50: vega.EpochParticipation.epoch:type_name -> vega.Epoch + 59, // 51: vega.Node.epoch_data:type_name -> vega.EpochData + 8, // 52: vega.Node.status:type_name -> vega.NodeStatus + 62, // 53: vega.Node.delagations:type_name -> vega.Delegation + 63, // 54: vega.RewardPerAssetDetail.details:type_name -> vega.RewardDetails + 19, // 55: vega.RiskResult.RiskFactorsEntry.value:type_name -> vega.RiskFactor + 19, // 56: vega.RiskResult.PredictedNextRiskFactorsEntry.value:type_name -> vega.RiskFactor + 57, // [57:57] is the sub-list for method output_type + 57, // [57:57] is the sub-list for method input_type + 57, // [57:57] is the sub-list for extension type_name + 57, // [57:57] is the sub-list for extension extendee + 0, // [0:57] is the sub-list for field type_name } func init() { file_vega_proto_init() } @@ -6359,6 +6635,7 @@ func file_vega_proto_init() { return } file_markets_proto_init() + file_assets_proto_init() if !protoimpl.UnsafeEnabled { file_vega_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Price); i { @@ -6589,7 +6866,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Statistics); i { + switch v := v.(*Deposit); i { case 0: return &v.state case 1: @@ -6601,7 +6878,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deposit); i { + switch v := v.(*Withdrawal); i { case 0: return &v.state case 1: @@ -6613,7 +6890,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Withdrawal); i { + switch v := v.(*WithdrawExt); i { case 0: return &v.state case 1: @@ -6625,7 +6902,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WithdrawExt); i { + switch v := v.(*Erc20WithdrawExt); i { case 0: return &v.state case 1: @@ -6637,7 +6914,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Erc20WithdrawExt); i { + switch v := v.(*Account); i { case 0: return &v.state case 1: @@ -6649,7 +6926,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Account); i { + switch v := v.(*FinancialAmount); i { case 0: return &v.state case 1: @@ -6661,7 +6938,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinancialAmount); i { + switch v := v.(*Transfer); i { case 0: return &v.state case 1: @@ -6673,7 +6950,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transfer); i { + switch v := v.(*TransferRequest); i { case 0: return &v.state case 1: @@ -6685,7 +6962,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferRequest); i { + switch v := v.(*LedgerEntry); i { case 0: return &v.state case 1: @@ -6697,7 +6974,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LedgerEntry); i { + switch v := v.(*TransferBalance); i { case 0: return &v.state case 1: @@ -6709,7 +6986,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferBalance); i { + switch v := v.(*TransferResponse); i { case 0: return &v.state case 1: @@ -6721,7 +6998,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferResponse); i { + switch v := v.(*MarginLevels); i { case 0: return &v.state case 1: @@ -6733,7 +7010,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarginLevels); i { + switch v := v.(*MarketData); i { case 0: return &v.state case 1: @@ -6745,7 +7022,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarketData); i { + switch v := v.(*LiquidityProviderFeeShare); i { case 0: return &v.state case 1: @@ -6757,7 +7034,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityProviderFeeShare); i { + switch v := v.(*PriceMonitoringBounds); i { case 0: return &v.state case 1: @@ -6769,7 +7046,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PriceMonitoringBounds); i { + switch v := v.(*ErrorDetail); i { case 0: return &v.state case 1: @@ -6781,7 +7058,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorDetail); i { + switch v := v.(*NetworkParameter); i { case 0: return &v.state case 1: @@ -6793,7 +7070,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transaction); i { + switch v := v.(*LiquidityOrder); i { case 0: return &v.state case 1: @@ -6805,7 +7082,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Signature); i { + switch v := v.(*LiquidityOrderReference); i { case 0: return &v.state case 1: @@ -6817,7 +7094,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedBundle); i { + switch v := v.(*LiquidityProvision); i { case 0: return &v.state case 1: @@ -6829,7 +7106,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NetworkParameter); i { + switch v := v.(*EthereumConfig); i { case 0: return &v.state case 1: @@ -6841,7 +7118,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityOrder); i { + switch v := v.(*EpochTimestamps); i { case 0: return &v.state case 1: @@ -6853,7 +7130,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityOrderReference); i { + switch v := v.(*Epoch); i { case 0: return &v.state case 1: @@ -6865,7 +7142,7 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiquidityProvision); i { + switch v := v.(*EpochParticipation); i { case 0: return &v.state case 1: @@ -6877,7 +7154,67 @@ func file_vega_proto_init() { } } file_vega_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EthereumConfig); i { + switch v := v.(*EpochData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vega_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Node); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vega_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vega_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Delegation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vega_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RewardDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vega_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RewardPerAssetDetail); i { case 0: return &v.state case 1: @@ -6889,20 +7226,16 @@ func file_vega_proto_init() { } } } - file_vega_proto_msgTypes[22].OneofWrappers = []interface{}{ + file_vega_proto_msgTypes[21].OneofWrappers = []interface{}{ (*WithdrawExt_Erc20)(nil), } - file_vega_proto_msgTypes[36].OneofWrappers = []interface{}{ - (*Transaction_Address)(nil), - (*Transaction_PubKey)(nil), - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_vega_proto_rawDesc, - NumEnums: 15, - NumMessages: 46, + NumEnums: 16, + NumMessages: 51, NumExtensions: 0, NumServices: 0, }, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.validator.pb.go index 504b8656..b6e24b68 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.validator.pb.go @@ -24,6 +24,13 @@ func (this *Timestamp) Validate() error { return nil } func (this *Party) Validate() error { + for _, item := range this.Delegations { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Delegations", err) + } + } + } return nil } func (this *RiskFactor) Validate() error { @@ -150,9 +157,6 @@ func (this *Position) Validate() error { func (this *PositionTrade) Validate() error { return nil } -func (this *Statistics) Validate() error { - return nil -} func (this *Deposit) Validate() error { return nil } @@ -270,20 +274,6 @@ func (this *PriceMonitoringBounds) Validate() error { func (this *ErrorDetail) Validate() error { return nil } -func (this *Transaction) Validate() error { - return nil -} -func (this *Signature) Validate() error { - return nil -} -func (this *SignedBundle) Validate() error { - if this.Sig != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Sig); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("Sig", err) - } - } - return nil -} func (this *NetworkParameter) Validate() error { return nil } @@ -321,3 +311,82 @@ func (this *LiquidityProvision) Validate() error { func (this *EthereumConfig) Validate() error { return nil } +func (this *EpochTimestamps) Validate() error { + return nil +} +func (this *Epoch) Validate() error { + if nil == this.Timestamps { + return github_com_mwitkow_go_proto_validators.FieldError("Timestamps", fmt.Errorf("message must exist")) + } + if this.Timestamps != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamps); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Timestamps", err) + } + } + for _, item := range this.Validators { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Validators", err) + } + } + } + for _, item := range this.Delegations { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Delegations", err) + } + } + } + return nil +} +func (this *EpochParticipation) Validate() error { + if this.Epoch != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Epoch); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Epoch", err) + } + } + return nil +} +func (this *EpochData) Validate() error { + return nil +} +func (this *Node) Validate() error { + if this.PubKey == "" { + return github_com_mwitkow_go_proto_validators.FieldError("PubKey", fmt.Errorf(`value '%v' must not be an empty string`, this.PubKey)) + } + if nil == this.EpochData { + return github_com_mwitkow_go_proto_validators.FieldError("EpochData", fmt.Errorf("message must exist")) + } + if this.EpochData != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.EpochData); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("EpochData", err) + } + } + for _, item := range this.Delagations { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Delagations", err) + } + } + } + return nil +} +func (this *NodeData) Validate() error { + return nil +} +func (this *Delegation) Validate() error { + return nil +} +func (this *RewardDetails) Validate() error { + return nil +} +func (this *RewardPerAssetDetail) Validate() error { + for _, item := range this.Details { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Details", err) + } + } + } + return nil +} diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java index c0d59958..cc5379b9 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java @@ -16429,6 +16429,3289 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEvent getDefaultInstanceForType } + public interface StakingEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.StakingEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Index of the transaction
+     * 
+ * + * uint64 index = 1 [json_name = "index"]; + * @return The index. + */ + long getIndex(); + + /** + *
+     * The block in which the transaction was added
+     * 
+ * + * uint64 block = 2 [json_name = "block"]; + * @return The block. + */ + long getBlock(); + + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return Whether the stakeDeposited field is set. + */ + boolean hasStakeDeposited(); + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return The stakeDeposited. + */ + io.vegaprotocol.vega.ChainEvents.StakeDeposited getStakeDeposited(); + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder getStakeDepositedOrBuilder(); + + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return Whether the stakeRemoved field is set. + */ + boolean hasStakeRemoved(); + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return The stakeRemoved. + */ + io.vegaprotocol.vega.ChainEvents.StakeRemoved getStakeRemoved(); + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder getStakeRemovedOrBuilder(); + + public io.vegaprotocol.vega.ChainEvents.StakingEvent.ActionCase getActionCase(); + } + /** + * Protobuf type {@code vega.StakingEvent} + */ + public static final class StakingEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.StakingEvent) + StakingEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use StakingEvent.newBuilder() to construct. + private StakingEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StakingEvent() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StakingEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StakingEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + index_ = input.readUInt64(); + break; + } + case 16: { + + block_ = input.readUInt64(); + break; + } + case 8010: { + io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder subBuilder = null; + if (actionCase_ == 1001) { + subBuilder = ((io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_).toBuilder(); + } + action_ = + input.readMessage(io.vegaprotocol.vega.ChainEvents.StakeDeposited.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 1001; + break; + } + case 8018: { + io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder subBuilder = null; + if (actionCase_ == 1002) { + subBuilder = ((io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_).toBuilder(); + } + action_ = + input.readMessage(io.vegaprotocol.vega.ChainEvents.StakeRemoved.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 1002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakingEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakingEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakingEvent.class, io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder.class); + } + + private int actionCase_ = 0; + private java.lang.Object action_; + public enum ActionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STAKE_DEPOSITED(1001), + STAKE_REMOVED(1002), + ACTION_NOT_SET(0); + private final int value; + private ActionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 1001: return STAKE_DEPOSITED; + case 1002: return STAKE_REMOVED; + case 0: return ACTION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); + } + + public static final int INDEX_FIELD_NUMBER = 1; + private long index_; + /** + *
+     * Index of the transaction
+     * 
+ * + * uint64 index = 1 [json_name = "index"]; + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + public static final int BLOCK_FIELD_NUMBER = 2; + private long block_; + /** + *
+     * The block in which the transaction was added
+     * 
+ * + * uint64 block = 2 [json_name = "block"]; + * @return The block. + */ + @java.lang.Override + public long getBlock() { + return block_; + } + + public static final int STAKE_DEPOSITED_FIELD_NUMBER = 1001; + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return Whether the stakeDeposited field is set. + */ + @java.lang.Override + public boolean hasStakeDeposited() { + return actionCase_ == 1001; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return The stakeDeposited. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited getStakeDeposited() { + if (actionCase_ == 1001) { + return (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder getStakeDepositedOrBuilder() { + if (actionCase_ == 1001) { + return (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + + public static final int STAKE_REMOVED_FIELD_NUMBER = 1002; + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return Whether the stakeRemoved field is set. + */ + @java.lang.Override + public boolean hasStakeRemoved() { + return actionCase_ == 1002; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return The stakeRemoved. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved getStakeRemoved() { + if (actionCase_ == 1002) { + return (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder getStakeRemovedOrBuilder() { + if (actionCase_ == 1002) { + return (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (index_ != 0L) { + output.writeUInt64(1, index_); + } + if (block_ != 0L) { + output.writeUInt64(2, block_); + } + if (actionCase_ == 1001) { + output.writeMessage(1001, (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_); + } + if (actionCase_ == 1002) { + output.writeMessage(1002, (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, index_); + } + if (block_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, block_); + } + if (actionCase_ == 1001) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1001, (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_); + } + if (actionCase_ == 1002) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1002, (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.ChainEvents.StakingEvent)) { + return super.equals(obj); + } + io.vegaprotocol.vega.ChainEvents.StakingEvent other = (io.vegaprotocol.vega.ChainEvents.StakingEvent) obj; + + if (getIndex() + != other.getIndex()) return false; + if (getBlock() + != other.getBlock()) return false; + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 1001: + if (!getStakeDeposited() + .equals(other.getStakeDeposited())) return false; + break; + case 1002: + if (!getStakeRemoved() + .equals(other.getStakeRemoved())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIndex()); + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlock()); + switch (actionCase_) { + case 1001: + hash = (37 * hash) + STAKE_DEPOSITED_FIELD_NUMBER; + hash = (53 * hash) + getStakeDeposited().hashCode(); + break; + case 1002: + hash = (37 * hash) + STAKE_REMOVED_FIELD_NUMBER; + hash = (53 * hash) + getStakeRemoved().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakingEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.ChainEvents.StakingEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.StakingEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.StakingEvent) + io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakingEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakingEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakingEvent.class, io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder.class); + } + + // Construct using io.vegaprotocol.vega.ChainEvents.StakingEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + index_ = 0L; + + block_ = 0L; + + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakingEvent_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent getDefaultInstanceForType() { + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent build() { + io.vegaprotocol.vega.ChainEvents.StakingEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent buildPartial() { + io.vegaprotocol.vega.ChainEvents.StakingEvent result = new io.vegaprotocol.vega.ChainEvents.StakingEvent(this); + result.index_ = index_; + result.block_ = block_; + if (actionCase_ == 1001) { + if (stakeDepositedBuilder_ == null) { + result.action_ = action_; + } else { + result.action_ = stakeDepositedBuilder_.build(); + } + } + if (actionCase_ == 1002) { + if (stakeRemovedBuilder_ == null) { + result.action_ = action_; + } else { + result.action_ = stakeRemovedBuilder_.build(); + } + } + result.actionCase_ = actionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.ChainEvents.StakingEvent) { + return mergeFrom((io.vegaprotocol.vega.ChainEvents.StakingEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.ChainEvents.StakingEvent other) { + if (other == io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance()) return this; + if (other.getIndex() != 0L) { + setIndex(other.getIndex()); + } + if (other.getBlock() != 0L) { + setBlock(other.getBlock()); + } + switch (other.getActionCase()) { + case STAKE_DEPOSITED: { + mergeStakeDeposited(other.getStakeDeposited()); + break; + } + case STAKE_REMOVED: { + mergeStakeRemoved(other.getStakeRemoved()); + break; + } + case ACTION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.ChainEvents.StakingEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.ChainEvents.StakingEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int actionCase_ = 0; + private java.lang.Object action_; + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + + private long index_ ; + /** + *
+       * Index of the transaction
+       * 
+ * + * uint64 index = 1 [json_name = "index"]; + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + /** + *
+       * Index of the transaction
+       * 
+ * + * uint64 index = 1 [json_name = "index"]; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(long value) { + + index_ = value; + onChanged(); + return this; + } + /** + *
+       * Index of the transaction
+       * 
+ * + * uint64 index = 1 [json_name = "index"]; + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0L; + onChanged(); + return this; + } + + private long block_ ; + /** + *
+       * The block in which the transaction was added
+       * 
+ * + * uint64 block = 2 [json_name = "block"]; + * @return The block. + */ + @java.lang.Override + public long getBlock() { + return block_; + } + /** + *
+       * The block in which the transaction was added
+       * 
+ * + * uint64 block = 2 [json_name = "block"]; + * @param value The block to set. + * @return This builder for chaining. + */ + public Builder setBlock(long value) { + + block_ = value; + onChanged(); + return this; + } + /** + *
+       * The block in which the transaction was added
+       * 
+ * + * uint64 block = 2 [json_name = "block"]; + * @return This builder for chaining. + */ + public Builder clearBlock() { + + block_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeDeposited, io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder, io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder> stakeDepositedBuilder_; + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return Whether the stakeDeposited field is set. + */ + @java.lang.Override + public boolean hasStakeDeposited() { + return actionCase_ == 1001; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + * @return The stakeDeposited. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited getStakeDeposited() { + if (stakeDepositedBuilder_ == null) { + if (actionCase_ == 1001) { + return (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } else { + if (actionCase_ == 1001) { + return stakeDepositedBuilder_.getMessage(); + } + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + public Builder setStakeDeposited(io.vegaprotocol.vega.ChainEvents.StakeDeposited value) { + if (stakeDepositedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + stakeDepositedBuilder_.setMessage(value); + } + actionCase_ = 1001; + return this; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + public Builder setStakeDeposited( + io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder builderForValue) { + if (stakeDepositedBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + stakeDepositedBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 1001; + return this; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + public Builder mergeStakeDeposited(io.vegaprotocol.vega.ChainEvents.StakeDeposited value) { + if (stakeDepositedBuilder_ == null) { + if (actionCase_ == 1001 && + action_ != io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance()) { + action_ = io.vegaprotocol.vega.ChainEvents.StakeDeposited.newBuilder((io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_) + .mergeFrom(value).buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 1001) { + stakeDepositedBuilder_.mergeFrom(value); + } + stakeDepositedBuilder_.setMessage(value); + } + actionCase_ = 1001; + return this; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + public Builder clearStakeDeposited() { + if (stakeDepositedBuilder_ == null) { + if (actionCase_ == 1001) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 1001) { + actionCase_ = 0; + action_ = null; + } + stakeDepositedBuilder_.clear(); + } + return this; + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + public io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder getStakeDepositedBuilder() { + return getStakeDepositedFieldBuilder().getBuilder(); + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder getStakeDepositedOrBuilder() { + if ((actionCase_ == 1001) && (stakeDepositedBuilder_ != null)) { + return stakeDepositedBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 1001) { + return (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + } + /** + * .vega.StakeDeposited stake_deposited = 1001 [json_name = "stakeDeposited"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeDeposited, io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder, io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder> + getStakeDepositedFieldBuilder() { + if (stakeDepositedBuilder_ == null) { + if (!(actionCase_ == 1001)) { + action_ = io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + stakeDepositedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeDeposited, io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder, io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder>( + (io.vegaprotocol.vega.ChainEvents.StakeDeposited) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 1001; + onChanged();; + return stakeDepositedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeRemoved, io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder, io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder> stakeRemovedBuilder_; + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return Whether the stakeRemoved field is set. + */ + @java.lang.Override + public boolean hasStakeRemoved() { + return actionCase_ == 1002; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + * @return The stakeRemoved. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved getStakeRemoved() { + if (stakeRemovedBuilder_ == null) { + if (actionCase_ == 1002) { + return (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } else { + if (actionCase_ == 1002) { + return stakeRemovedBuilder_.getMessage(); + } + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + public Builder setStakeRemoved(io.vegaprotocol.vega.ChainEvents.StakeRemoved value) { + if (stakeRemovedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + stakeRemovedBuilder_.setMessage(value); + } + actionCase_ = 1002; + return this; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + public Builder setStakeRemoved( + io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder builderForValue) { + if (stakeRemovedBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + stakeRemovedBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 1002; + return this; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + public Builder mergeStakeRemoved(io.vegaprotocol.vega.ChainEvents.StakeRemoved value) { + if (stakeRemovedBuilder_ == null) { + if (actionCase_ == 1002 && + action_ != io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance()) { + action_ = io.vegaprotocol.vega.ChainEvents.StakeRemoved.newBuilder((io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_) + .mergeFrom(value).buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 1002) { + stakeRemovedBuilder_.mergeFrom(value); + } + stakeRemovedBuilder_.setMessage(value); + } + actionCase_ = 1002; + return this; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + public Builder clearStakeRemoved() { + if (stakeRemovedBuilder_ == null) { + if (actionCase_ == 1002) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 1002) { + actionCase_ = 0; + action_ = null; + } + stakeRemovedBuilder_.clear(); + } + return this; + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + public io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder getStakeRemovedBuilder() { + return getStakeRemovedFieldBuilder().getBuilder(); + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder getStakeRemovedOrBuilder() { + if ((actionCase_ == 1002) && (stakeRemovedBuilder_ != null)) { + return stakeRemovedBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 1002) { + return (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_; + } + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + } + /** + * .vega.StakeRemoved stake_removed = 1002 [json_name = "stakeRemoved"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeRemoved, io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder, io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder> + getStakeRemovedFieldBuilder() { + if (stakeRemovedBuilder_ == null) { + if (!(actionCase_ == 1002)) { + action_ = io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + stakeRemovedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakeRemoved, io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder, io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder>( + (io.vegaprotocol.vega.ChainEvents.StakeRemoved) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 1002; + onChanged();; + return stakeRemovedBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.StakingEvent) + } + + // @@protoc_insertion_point(class_scope:vega.StakingEvent) + private static final io.vegaprotocol.vega.ChainEvents.StakingEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.ChainEvents.StakingEvent(); + } + + public static io.vegaprotocol.vega.ChainEvents.StakingEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StakingEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StakingEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StakeDepositedOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.StakeDeposited) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + java.lang.String getEthereumAddress(); + /** + *
+     * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + com.google.protobuf.ByteString + getEthereumAddressBytes(); + + /** + *
+     * The public of the party receiving the stake deposit (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + java.lang.String getVegaPublicKey(); + /** + *
+     * The public of the party receiving the stake deposit (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + com.google.protobuf.ByteString + getVegaPublicKeyBytes(); + + /** + *
+     * The amount deposited (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + *
+     * The amount deposited (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + *
+     * The time at which the block was produced
+     * will be used to inform the core at what time
+     * the stake started to be available.
+     * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + long getBlockTime(); + } + /** + * Protobuf type {@code vega.StakeDeposited} + */ + public static final class StakeDeposited extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.StakeDeposited) + StakeDepositedOrBuilder { + private static final long serialVersionUID = 0L; + // Use StakeDeposited.newBuilder() to construct. + private StakeDeposited(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StakeDeposited() { + ethereumAddress_ = ""; + vegaPublicKey_ = ""; + amount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StakeDeposited(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StakeDeposited( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ethereumAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + vegaPublicKey_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 32: { + + blockTime_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeDeposited_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeDeposited_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakeDeposited.class, io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder.class); + } + + public static final int ETHEREUM_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object ethereumAddress_; + /** + *
+     * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + @java.lang.Override + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } + } + /** + *
+     * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VEGA_PUBLIC_KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object vegaPublicKey_; + /** + *
+     * The public of the party receiving the stake deposit (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + @java.lang.Override + public java.lang.String getVegaPublicKey() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPublicKey_ = s; + return s; + } + } + /** + *
+     * The public of the party receiving the stake deposit (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVegaPublicKeyBytes() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private volatile java.lang.Object amount_; + /** + *
+     * The amount deposited (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
+     * The amount deposited (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_TIME_FIELD_NUMBER = 4; + private long blockTime_; + /** + *
+     * The time at which the block was produced
+     * will be used to inform the core at what time
+     * the stake started to be available.
+     * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getEthereumAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ethereumAddress_); + } + if (!getVegaPublicKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vegaPublicKey_); + } + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); + } + if (blockTime_ != 0L) { + output.writeInt64(4, blockTime_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEthereumAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ethereumAddress_); + } + if (!getVegaPublicKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vegaPublicKey_); + } + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, blockTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.ChainEvents.StakeDeposited)) { + return super.equals(obj); + } + io.vegaprotocol.vega.ChainEvents.StakeDeposited other = (io.vegaprotocol.vega.ChainEvents.StakeDeposited) obj; + + if (!getEthereumAddress() + .equals(other.getEthereumAddress())) return false; + if (!getVegaPublicKey() + .equals(other.getVegaPublicKey())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (getBlockTime() + != other.getBlockTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ETHEREUM_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEthereumAddress().hashCode(); + hash = (37 * hash) + VEGA_PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVegaPublicKey().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + BLOCK_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.ChainEvents.StakeDeposited prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.StakeDeposited} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.StakeDeposited) + io.vegaprotocol.vega.ChainEvents.StakeDepositedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeDeposited_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeDeposited_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakeDeposited.class, io.vegaprotocol.vega.ChainEvents.StakeDeposited.Builder.class); + } + + // Construct using io.vegaprotocol.vega.ChainEvents.StakeDeposited.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ethereumAddress_ = ""; + + vegaPublicKey_ = ""; + + amount_ = ""; + + blockTime_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeDeposited_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited getDefaultInstanceForType() { + return io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited build() { + io.vegaprotocol.vega.ChainEvents.StakeDeposited result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited buildPartial() { + io.vegaprotocol.vega.ChainEvents.StakeDeposited result = new io.vegaprotocol.vega.ChainEvents.StakeDeposited(this); + result.ethereumAddress_ = ethereumAddress_; + result.vegaPublicKey_ = vegaPublicKey_; + result.amount_ = amount_; + result.blockTime_ = blockTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.ChainEvents.StakeDeposited) { + return mergeFrom((io.vegaprotocol.vega.ChainEvents.StakeDeposited)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.ChainEvents.StakeDeposited other) { + if (other == io.vegaprotocol.vega.ChainEvents.StakeDeposited.getDefaultInstance()) return this; + if (!other.getEthereumAddress().isEmpty()) { + ethereumAddress_ = other.ethereumAddress_; + onChanged(); + } + if (!other.getVegaPublicKey().isEmpty()) { + vegaPublicKey_ = other.vegaPublicKey_; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.ChainEvents.StakeDeposited parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.ChainEvents.StakeDeposited) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ethereumAddress_ = ""; + /** + *
+       * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @param value The ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ethereumAddress_ = value; + onChanged(); + return this; + } + /** + *
+       * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return This builder for chaining. + */ + public Builder clearEthereumAddress() { + + ethereumAddress_ = getDefaultInstance().getEthereumAddress(); + onChanged(); + return this; + } + /** + *
+       * Ethereum Address of the user depositing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @param value The bytes for ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ethereumAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object vegaPublicKey_ = ""; + /** + *
+       * The public of the party receiving the stake deposit (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + public java.lang.String getVegaPublicKey() { + java.lang.Object ref = vegaPublicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPublicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The public of the party receiving the stake deposit (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + public com.google.protobuf.ByteString + getVegaPublicKeyBytes() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The public of the party receiving the stake deposit (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @param value The vegaPublicKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vegaPublicKey_ = value; + onChanged(); + return this; + } + /** + *
+       * The public of the party receiving the stake deposit (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return This builder for chaining. + */ + public Builder clearVegaPublicKey() { + + vegaPublicKey_ = getDefaultInstance().getVegaPublicKey(); + onChanged(); + return this; + } + /** + *
+       * The public of the party receiving the stake deposit (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @param value The bytes for vegaPublicKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vegaPublicKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + *
+       * The amount deposited (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The amount deposited (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The amount deposited (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * The amount deposited (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
+       * The amount deposited (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; + onChanged(); + return this; + } + + private long blockTime_ ; + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake started to be available.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake started to be available.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @param value The blockTime to set. + * @return This builder for chaining. + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake started to be available.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return This builder for chaining. + */ + public Builder clearBlockTime() { + + blockTime_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.StakeDeposited) + } + + // @@protoc_insertion_point(class_scope:vega.StakeDeposited) + private static final io.vegaprotocol.vega.ChainEvents.StakeDeposited DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.ChainEvents.StakeDeposited(); + } + + public static io.vegaprotocol.vega.ChainEvents.StakeDeposited getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StakeDeposited parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StakeDeposited(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeDeposited getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StakeRemovedOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.StakeRemoved) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Ethereum address of the user removing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + java.lang.String getEthereumAddress(); + /** + *
+     * Ethereum address of the user removing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + com.google.protobuf.ByteString + getEthereumAddressBytes(); + + /** + *
+     * The public key of the party from which to remove stake (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + java.lang.String getVegaPublicKey(); + /** + *
+     * The public key of the party from which to remove stake (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + com.google.protobuf.ByteString + getVegaPublicKeyBytes(); + + /** + *
+     * The amount removed (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + *
+     * The amount removed (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + *
+     * The time at which the block was produced
+     * will be used to inform the core at what time
+     * the stake was made unavailable.
+     * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + long getBlockTime(); + } + /** + * Protobuf type {@code vega.StakeRemoved} + */ + public static final class StakeRemoved extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.StakeRemoved) + StakeRemovedOrBuilder { + private static final long serialVersionUID = 0L; + // Use StakeRemoved.newBuilder() to construct. + private StakeRemoved(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StakeRemoved() { + ethereumAddress_ = ""; + vegaPublicKey_ = ""; + amount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StakeRemoved(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StakeRemoved( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ethereumAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + vegaPublicKey_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 32: { + + blockTime_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeRemoved_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeRemoved_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakeRemoved.class, io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder.class); + } + + public static final int ETHEREUM_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object ethereumAddress_; + /** + *
+     * Ethereum address of the user removing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + @java.lang.Override + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } + } + /** + *
+     * Ethereum address of the user removing stake (hex encode with 0x prefix)
+     * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VEGA_PUBLIC_KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object vegaPublicKey_; + /** + *
+     * The public key of the party from which to remove stake (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + @java.lang.Override + public java.lang.String getVegaPublicKey() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPublicKey_ = s; + return s; + } + } + /** + *
+     * The public key of the party from which to remove stake (hex encode)
+     * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVegaPublicKeyBytes() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private volatile java.lang.Object amount_; + /** + *
+     * The amount removed (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
+     * The amount removed (base 10)
+     * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_TIME_FIELD_NUMBER = 4; + private long blockTime_; + /** + *
+     * The time at which the block was produced
+     * will be used to inform the core at what time
+     * the stake was made unavailable.
+     * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getEthereumAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ethereumAddress_); + } + if (!getVegaPublicKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vegaPublicKey_); + } + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); + } + if (blockTime_ != 0L) { + output.writeInt64(4, blockTime_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEthereumAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ethereumAddress_); + } + if (!getVegaPublicKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vegaPublicKey_); + } + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, blockTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.ChainEvents.StakeRemoved)) { + return super.equals(obj); + } + io.vegaprotocol.vega.ChainEvents.StakeRemoved other = (io.vegaprotocol.vega.ChainEvents.StakeRemoved) obj; + + if (!getEthereumAddress() + .equals(other.getEthereumAddress())) return false; + if (!getVegaPublicKey() + .equals(other.getVegaPublicKey())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (getBlockTime() + != other.getBlockTime()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ETHEREUM_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEthereumAddress().hashCode(); + hash = (37 * hash) + VEGA_PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVegaPublicKey().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + BLOCK_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.ChainEvents.StakeRemoved prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.StakeRemoved} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.StakeRemoved) + io.vegaprotocol.vega.ChainEvents.StakeRemovedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeRemoved_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeRemoved_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.ChainEvents.StakeRemoved.class, io.vegaprotocol.vega.ChainEvents.StakeRemoved.Builder.class); + } + + // Construct using io.vegaprotocol.vega.ChainEvents.StakeRemoved.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ethereumAddress_ = ""; + + vegaPublicKey_ = ""; + + amount_ = ""; + + blockTime_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.ChainEvents.internal_static_vega_StakeRemoved_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved getDefaultInstanceForType() { + return io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved build() { + io.vegaprotocol.vega.ChainEvents.StakeRemoved result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved buildPartial() { + io.vegaprotocol.vega.ChainEvents.StakeRemoved result = new io.vegaprotocol.vega.ChainEvents.StakeRemoved(this); + result.ethereumAddress_ = ethereumAddress_; + result.vegaPublicKey_ = vegaPublicKey_; + result.amount_ = amount_; + result.blockTime_ = blockTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.ChainEvents.StakeRemoved) { + return mergeFrom((io.vegaprotocol.vega.ChainEvents.StakeRemoved)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.ChainEvents.StakeRemoved other) { + if (other == io.vegaprotocol.vega.ChainEvents.StakeRemoved.getDefaultInstance()) return this; + if (!other.getEthereumAddress().isEmpty()) { + ethereumAddress_ = other.ethereumAddress_; + onChanged(); + } + if (!other.getVegaPublicKey().isEmpty()) { + vegaPublicKey_ = other.vegaPublicKey_; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.ChainEvents.StakeRemoved parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.ChainEvents.StakeRemoved) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ethereumAddress_ = ""; + /** + *
+       * Ethereum address of the user removing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. + */ + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Ethereum address of the user removing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. + */ + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Ethereum address of the user removing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @param value The ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ethereumAddress_ = value; + onChanged(); + return this; + } + /** + *
+       * Ethereum address of the user removing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @return This builder for chaining. + */ + public Builder clearEthereumAddress() { + + ethereumAddress_ = getDefaultInstance().getEthereumAddress(); + onChanged(); + return this; + } + /** + *
+       * Ethereum address of the user removing stake (hex encode with 0x prefix)
+       * 
+ * + * string ethereum_address = 1 [json_name = "ethereumAddress"]; + * @param value The bytes for ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ethereumAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object vegaPublicKey_ = ""; + /** + *
+       * The public key of the party from which to remove stake (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The vegaPublicKey. + */ + public java.lang.String getVegaPublicKey() { + java.lang.Object ref = vegaPublicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPublicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The public key of the party from which to remove stake (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return The bytes for vegaPublicKey. + */ + public com.google.protobuf.ByteString + getVegaPublicKeyBytes() { + java.lang.Object ref = vegaPublicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The public key of the party from which to remove stake (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @param value The vegaPublicKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vegaPublicKey_ = value; + onChanged(); + return this; + } + /** + *
+       * The public key of the party from which to remove stake (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @return This builder for chaining. + */ + public Builder clearVegaPublicKey() { + + vegaPublicKey_ = getDefaultInstance().getVegaPublicKey(); + onChanged(); + return this; + } + /** + *
+       * The public key of the party from which to remove stake (hex encode)
+       * 
+ * + * string vega_public_key = 2 [json_name = "vegaPublicKey"]; + * @param value The bytes for vegaPublicKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vegaPublicKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + *
+       * The amount removed (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The amount removed (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The amount removed (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * The amount removed (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
+       * The amount removed (base 10)
+       * 
+ * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; + onChanged(); + return this; + } + + private long blockTime_ ; + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake was made unavailable.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake was made unavailable.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @param value The blockTime to set. + * @return This builder for chaining. + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } + /** + *
+       * The time at which the block was produced
+       * will be used to inform the core at what time
+       * the stake was made unavailable.
+       * 
+ * + * int64 block_time = 4 [json_name = "blockTime"]; + * @return This builder for chaining. + */ + public Builder clearBlockTime() { + + blockTime_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.StakeRemoved) + } + + // @@protoc_insertion_point(class_scope:vega.StakeRemoved) + private static final io.vegaprotocol.vega.ChainEvents.StakeRemoved DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.ChainEvents.StakeRemoved(); + } + + public static io.vegaprotocol.vega.ChainEvents.StakeRemoved getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StakeRemoved parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StakeRemoved(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakeRemoved getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_BuiltinAssetDeposit_descriptor; private static final @@ -16514,6 +19797,21 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEvent getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_ValidatorEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_StakingEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_StakingEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_StakeDeposited_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_StakeDeposited_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_StakeRemoved_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_StakeRemoved_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -16575,9 +19873,22 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEvent getDefaultInstanceForType "IdentifierR\002id\"\212\001\n\016ValidatorEvent\022\033\n\tsou" + "rce_id\030\001 \001(\tR\010sourceId\022\'\n\003add\030\351\007 \001(\0132\022.v" + "ega.AddValidatorH\000R\003add\022(\n\002rm\030\352\007 \001(\0132\025.v" + - "ega.RemoveValidatorH\000R\002rmB\010\n\006actionB7\n\024i" + - "o.vegaprotocol.vegaZ\037code.vegaprotocol.i" + - "o/vega/protob\006proto3" + "ega.RemoveValidatorH\000R\002rmB\010\n\006action\"\302\001\n\014" + + "StakingEvent\022\024\n\005index\030\001 \001(\004R\005index\022\024\n\005bl" + + "ock\030\002 \001(\004R\005block\022@\n\017stake_deposited\030\351\007 \001" + + "(\0132\024.vega.StakeDepositedH\000R\016stakeDeposit" + + "ed\022:\n\rstake_removed\030\352\007 \001(\0132\022.vega.StakeR" + + "emovedH\000R\014stakeRemovedB\010\n\006action\"\232\001\n\016Sta" + + "keDeposited\022)\n\020ethereum_address\030\001 \001(\tR\017e" + + "thereumAddress\022&\n\017vega_public_key\030\002 \001(\tR" + + "\rvegaPublicKey\022\026\n\006amount\030\003 \001(\tR\006amount\022\035" + + "\n\nblock_time\030\004 \001(\003R\tblockTime\"\230\001\n\014StakeR" + + "emoved\022)\n\020ethereum_address\030\001 \001(\tR\017ethere" + + "umAddress\022&\n\017vega_public_key\030\002 \001(\tR\rvega" + + "PublicKey\022\026\n\006amount\030\003 \001(\tR\006amount\022\035\n\nblo" + + "ck_time\030\004 \001(\003R\tblockTimeB7\n\024io.vegaproto" + + "col.vegaZ\037code.vegaprotocol.io/vega/prot" + + "ob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -16685,6 +19996,24 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEvent getDefaultInstanceForType com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_ValidatorEvent_descriptor, new java.lang.String[] { "SourceId", "Add", "Rm", "Action", }); + internal_static_vega_StakingEvent_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_vega_StakingEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_StakingEvent_descriptor, + new java.lang.String[] { "Index", "Block", "StakeDeposited", "StakeRemoved", "Action", }); + internal_static_vega_StakeDeposited_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_vega_StakeDeposited_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_StakeDeposited_descriptor, + new java.lang.String[] { "EthereumAddress", "VegaPublicKey", "Amount", "BlockTime", }); + internal_static_vega_StakeRemoved_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_vega_StakeRemoved_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_StakeRemoved_descriptor, + new java.lang.String[] { "EthereumAddress", "VegaPublicKey", "Amount", "BlockTime", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java index f8cd0146..8100c43c 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java @@ -2592,6 +2592,143 @@ private TransferType(int value) { // @@protoc_insertion_point(enum_scope:vega.TransferType) } + /** + *
+   * Node status type
+   * 
+ * + * Protobuf enum {@code vega.NodeStatus} + */ + public enum NodeStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NODE_STATUS_UNSPECIFIED = 0; + */ + NODE_STATUS_UNSPECIFIED(0), + /** + *
+     * The node is validating
+     * 
+ * + * NODE_STATUS_VALIDATOR = 1; + */ + NODE_STATUS_VALIDATOR(1), + /** + *
+     * The node is non-validating
+     * 
+ * + * NODE_STATUS_NON_VALIDATOR = 2; + */ + NODE_STATUS_NON_VALIDATOR(2), + UNRECOGNIZED(-1), + ; + + /** + * NODE_STATUS_UNSPECIFIED = 0; + */ + public static final int NODE_STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The node is validating
+     * 
+ * + * NODE_STATUS_VALIDATOR = 1; + */ + public static final int NODE_STATUS_VALIDATOR_VALUE = 1; + /** + *
+     * The node is non-validating
+     * 
+ * + * NODE_STATUS_NON_VALIDATOR = 2; + */ + public static final int NODE_STATUS_NON_VALIDATOR_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NodeStatus forNumber(int value) { + switch (value) { + case 0: return NODE_STATUS_UNSPECIFIED; + case 1: return NODE_STATUS_VALIDATOR; + case 2: return NODE_STATUS_NON_VALIDATOR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodeStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeStatus findValueByNumber(int number) { + return NodeStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.getDescriptor().getEnumTypes().get(8); + } + + private static final NodeStatus[] VALUES = values(); + + public static NodeStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:vega.NodeStatus) + } + public interface PriceOrBuilder extends // @@protoc_insertion_point(interface_extends:vega.Price) com.google.protobuf.MessageOrBuilder { @@ -3648,6 +3785,30 @@ public interface PartyOrBuilder extends */ com.google.protobuf.ByteString getIdBytes(); + + /** + * repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + */ + java.util.List + getDelegationsList(); + /** + * repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + */ + io.vegaprotocol.vega.Vega.Delegation getDelegations(int index); + /** + * repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + */ + int getDelegationsCount(); + /** + * repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + */ + java.util.List + getDelegationsOrBuilderList(); + /** + * repeated .vega.Delegation delegations = 2 [json_name = "delegations"]; + */ + io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder( + int index); } /** *
@@ -3667,6 +3828,7 @@ private Party(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     }
     private Party() {
       id_ = "";
+      delegations_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
@@ -3689,6 +3851,7 @@ private Party(
       if (extensionRegistry == null) {
         throw new java.lang.NullPointerException();
       }
+      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -3705,6 +3868,15 @@ private Party(
               id_ = s;
               break;
             }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                delegations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              delegations_.add(
+                  input.readMessage(io.vegaprotocol.vega.Vega.Delegation.parser(), extensionRegistry));
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -3720,6 +3892,9 @@ private Party(
         throw new com.google.protobuf.InvalidProtocolBufferException(
             e).setUnfinishedMessage(this);
       } finally {
+        if (((mutable_bitField0_ & 0x00000001) != 0)) {
+          delegations_ = java.util.Collections.unmodifiableList(delegations_);
+        }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
@@ -3783,6 +3958,46 @@ public java.lang.String getId() {
       }
     }
 
+    public static final int DELEGATIONS_FIELD_NUMBER = 2;
+    private java.util.List delegations_;
+    /**
+     * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+     */
+    @java.lang.Override
+    public java.util.List getDelegationsList() {
+      return delegations_;
+    }
+    /**
+     * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+     */
+    @java.lang.Override
+    public java.util.List
+        getDelegationsOrBuilderList() {
+      return delegations_;
+    }
+    /**
+     * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+     */
+    @java.lang.Override
+    public int getDelegationsCount() {
+      return delegations_.size();
+    }
+    /**
+     * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+     */
+    @java.lang.Override
+    public io.vegaprotocol.vega.Vega.Delegation getDelegations(int index) {
+      return delegations_.get(index);
+    }
+    /**
+     * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+     */
+    @java.lang.Override
+    public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder(
+        int index) {
+      return delegations_.get(index);
+    }
+
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -3800,6 +4015,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!getIdBytes().isEmpty()) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
       }
+      for (int i = 0; i < delegations_.size(); i++) {
+        output.writeMessage(2, delegations_.get(i));
+      }
       unknownFields.writeTo(output);
     }
 
@@ -3812,6 +4030,10 @@ public int getSerializedSize() {
       if (!getIdBytes().isEmpty()) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
       }
+      for (int i = 0; i < delegations_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, delegations_.get(i));
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -3829,6 +4051,8 @@ public boolean equals(final java.lang.Object obj) {
 
       if (!getId()
           .equals(other.getId())) return false;
+      if (!getDelegationsList()
+          .equals(other.getDelegationsList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -3842,6 +4066,10 @@ public int hashCode() {
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + ID_FIELD_NUMBER;
       hash = (53 * hash) + getId().hashCode();
+      if (getDelegationsCount() > 0) {
+        hash = (37 * hash) + DELEGATIONS_FIELD_NUMBER;
+        hash = (53 * hash) + getDelegationsList().hashCode();
+      }
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -3974,6 +4202,7 @@ private Builder(
       private void maybeForceBuilderInitialization() {
         if (com.google.protobuf.GeneratedMessageV3
                 .alwaysUseFieldBuilders) {
+          getDelegationsFieldBuilder();
         }
       }
       @java.lang.Override
@@ -3981,6 +4210,12 @@ public Builder clear() {
         super.clear();
         id_ = "";
 
+        if (delegationsBuilder_ == null) {
+          delegations_ = java.util.Collections.emptyList();
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          delegationsBuilder_.clear();
+        }
         return this;
       }
 
@@ -4007,7 +4242,17 @@ public io.vegaprotocol.vega.Vega.Party build() {
       @java.lang.Override
       public io.vegaprotocol.vega.Vega.Party buildPartial() {
         io.vegaprotocol.vega.Vega.Party result = new io.vegaprotocol.vega.Vega.Party(this);
+        int from_bitField0_ = bitField0_;
         result.id_ = id_;
+        if (delegationsBuilder_ == null) {
+          if (((bitField0_ & 0x00000001) != 0)) {
+            delegations_ = java.util.Collections.unmodifiableList(delegations_);
+            bitField0_ = (bitField0_ & ~0x00000001);
+          }
+          result.delegations_ = delegations_;
+        } else {
+          result.delegations_ = delegationsBuilder_.build();
+        }
         onBuilt();
         return result;
       }
@@ -4060,6 +4305,32 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Party other) {
           id_ = other.id_;
           onChanged();
         }
+        if (delegationsBuilder_ == null) {
+          if (!other.delegations_.isEmpty()) {
+            if (delegations_.isEmpty()) {
+              delegations_ = other.delegations_;
+              bitField0_ = (bitField0_ & ~0x00000001);
+            } else {
+              ensureDelegationsIsMutable();
+              delegations_.addAll(other.delegations_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.delegations_.isEmpty()) {
+            if (delegationsBuilder_.isEmpty()) {
+              delegationsBuilder_.dispose();
+              delegationsBuilder_ = null;
+              delegations_ = other.delegations_;
+              bitField0_ = (bitField0_ & ~0x00000001);
+              delegationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getDelegationsFieldBuilder() : null;
+            } else {
+              delegationsBuilder_.addAllMessages(other.delegations_);
+            }
+          }
+        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -4088,6 +4359,7 @@ public Builder mergeFrom(
         }
         return this;
       }
+      private int bitField0_;
 
       private java.lang.Object id_ = "";
       /**
@@ -4184,6 +4456,246 @@ public Builder setIdBytes(
         onChanged();
         return this;
       }
+
+      private java.util.List delegations_ =
+        java.util.Collections.emptyList();
+      private void ensureDelegationsIsMutable() {
+        if (!((bitField0_ & 0x00000001) != 0)) {
+          delegations_ = new java.util.ArrayList(delegations_);
+          bitField0_ |= 0x00000001;
+         }
+      }
+
+      private com.google.protobuf.RepeatedFieldBuilderV3<
+          io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder> delegationsBuilder_;
+
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public java.util.List getDelegationsList() {
+        if (delegationsBuilder_ == null) {
+          return java.util.Collections.unmodifiableList(delegations_);
+        } else {
+          return delegationsBuilder_.getMessageList();
+        }
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public int getDelegationsCount() {
+        if (delegationsBuilder_ == null) {
+          return delegations_.size();
+        } else {
+          return delegationsBuilder_.getCount();
+        }
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public io.vegaprotocol.vega.Vega.Delegation getDelegations(int index) {
+        if (delegationsBuilder_ == null) {
+          return delegations_.get(index);
+        } else {
+          return delegationsBuilder_.getMessage(index);
+        }
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder setDelegations(
+          int index, io.vegaprotocol.vega.Vega.Delegation value) {
+        if (delegationsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          ensureDelegationsIsMutable();
+          delegations_.set(index, value);
+          onChanged();
+        } else {
+          delegationsBuilder_.setMessage(index, value);
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder setDelegations(
+          int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) {
+        if (delegationsBuilder_ == null) {
+          ensureDelegationsIsMutable();
+          delegations_.set(index, builderForValue.build());
+          onChanged();
+        } else {
+          delegationsBuilder_.setMessage(index, builderForValue.build());
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder addDelegations(io.vegaprotocol.vega.Vega.Delegation value) {
+        if (delegationsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          ensureDelegationsIsMutable();
+          delegations_.add(value);
+          onChanged();
+        } else {
+          delegationsBuilder_.addMessage(value);
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder addDelegations(
+          int index, io.vegaprotocol.vega.Vega.Delegation value) {
+        if (delegationsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          ensureDelegationsIsMutable();
+          delegations_.add(index, value);
+          onChanged();
+        } else {
+          delegationsBuilder_.addMessage(index, value);
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder addDelegations(
+          io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) {
+        if (delegationsBuilder_ == null) {
+          ensureDelegationsIsMutable();
+          delegations_.add(builderForValue.build());
+          onChanged();
+        } else {
+          delegationsBuilder_.addMessage(builderForValue.build());
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder addDelegations(
+          int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) {
+        if (delegationsBuilder_ == null) {
+          ensureDelegationsIsMutable();
+          delegations_.add(index, builderForValue.build());
+          onChanged();
+        } else {
+          delegationsBuilder_.addMessage(index, builderForValue.build());
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder addAllDelegations(
+          java.lang.Iterable values) {
+        if (delegationsBuilder_ == null) {
+          ensureDelegationsIsMutable();
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, delegations_);
+          onChanged();
+        } else {
+          delegationsBuilder_.addAllMessages(values);
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder clearDelegations() {
+        if (delegationsBuilder_ == null) {
+          delegations_ = java.util.Collections.emptyList();
+          bitField0_ = (bitField0_ & ~0x00000001);
+          onChanged();
+        } else {
+          delegationsBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public Builder removeDelegations(int index) {
+        if (delegationsBuilder_ == null) {
+          ensureDelegationsIsMutable();
+          delegations_.remove(index);
+          onChanged();
+        } else {
+          delegationsBuilder_.remove(index);
+        }
+        return this;
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public io.vegaprotocol.vega.Vega.Delegation.Builder getDelegationsBuilder(
+          int index) {
+        return getDelegationsFieldBuilder().getBuilder(index);
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder(
+          int index) {
+        if (delegationsBuilder_ == null) {
+          return delegations_.get(index);  } else {
+          return delegationsBuilder_.getMessageOrBuilder(index);
+        }
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public java.util.List
+           getDelegationsOrBuilderList() {
+        if (delegationsBuilder_ != null) {
+          return delegationsBuilder_.getMessageOrBuilderList();
+        } else {
+          return java.util.Collections.unmodifiableList(delegations_);
+        }
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public io.vegaprotocol.vega.Vega.Delegation.Builder addDelegationsBuilder() {
+        return getDelegationsFieldBuilder().addBuilder(
+            io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance());
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public io.vegaprotocol.vega.Vega.Delegation.Builder addDelegationsBuilder(
+          int index) {
+        return getDelegationsFieldBuilder().addBuilder(
+            index, io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance());
+      }
+      /**
+       * repeated .vega.Delegation delegations = 2 [json_name = "delegations"];
+       */
+      public java.util.List
+           getDelegationsBuilderList() {
+        return getDelegationsFieldBuilder().getBuilderList();
+      }
+      private com.google.protobuf.RepeatedFieldBuilderV3<
+          io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder>
+          getDelegationsFieldBuilder() {
+        if (delegationsBuilder_ == null) {
+          delegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder>(
+                  delegations_,
+                  ((bitField0_ & 0x00000001) != 0),
+                  getParentForChildren(),
+                  isClean());
+          delegations_ = null;
+        }
+        return delegationsBuilder_;
+      }
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -25924,454 +26436,179 @@ public io.vegaprotocol.vega.Vega.PositionTrade getDefaultInstanceForType() {
 
   }
 
-  public interface StatisticsOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:vega.Statistics)
+  public interface DepositOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:vega.Deposit)
       com.google.protobuf.MessageOrBuilder {
 
     /**
      * 
-     * Current block height as reported by the Vega blockchain
-     * 
- * - * uint64 block_height = 1 [json_name = "blockHeight"]; - * @return The blockHeight. - */ - long getBlockHeight(); - - /** - *
-     * Current backlog length (number of transactions) that are waiting to be included in a block
-     * 
- * - * uint64 backlog_length = 2 [json_name = "backlogLength"]; - * @return The backlogLength. - */ - long getBacklogLength(); - - /** - *
-     * Total number of connected peers to this node
-     * 
- * - * uint64 total_peers = 3 [json_name = "totalPeers"]; - * @return The totalPeers. - */ - long getTotalPeers(); - - /** - *
-     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The genesisTime. - */ - java.lang.String getGenesisTime(); - /** - *
-     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The bytes for genesisTime. - */ - com.google.protobuf.ByteString - getGenesisTimeBytes(); - - /** - *
-     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string current_time = 5 [json_name = "currentTime"]; - * @return The currentTime. - */ - java.lang.String getCurrentTime(); - /** - *
-     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string current_time = 5 [json_name = "currentTime"]; - * @return The bytes for currentTime. - */ - com.google.protobuf.ByteString - getCurrentTimeBytes(); - - /** - *
-     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * Unique identifier for the deposit
      * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The vegaTime. + * string id = 1 [json_name = "id"]; + * @return The id. */ - java.lang.String getVegaTime(); + java.lang.String getId(); /** *
-     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * Unique identifier for the deposit
      * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The bytes for vegaTime. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ com.google.protobuf.ByteString - getVegaTimeBytes(); + getIdBytes(); /** *
-     * Status of the connection to the Vega blockchain
-     * - See [`ChainStatus`](#vega.ChainStatus)
+     * Status of the deposit
      * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
-     * Status of the connection to the Vega blockchain
-     * - See [`ChainStatus`](#vega.ChainStatus)
+     * Status of the deposit
      * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; * @return The status. */ - io.vegaprotocol.vega.Vega.ChainStatus getStatus(); - - /** - *
-     * Transactions per block
-     * 
- * - * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - * @return The txPerBlock. - */ - long getTxPerBlock(); - - /** - *
-     * Average transaction size in bytes
-     * 
- * - * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - * @return The averageTxBytes. - */ - long getAverageTxBytes(); - - /** - *
-     * Average orders per block
-     * 
- * - * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - * @return The averageOrdersPerBlock. - */ - long getAverageOrdersPerBlock(); - - /** - *
-     * Trades emitted per second
-     * 
- * - * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - * @return The tradesPerSecond. - */ - long getTradesPerSecond(); - - /** - *
-     * Orders processed per second
-     * 
- * - * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - * @return The ordersPerSecond. - */ - long getOrdersPerSecond(); - - /** - *
-     * Total markets on this Vega network
-     * 
- * - * uint64 total_markets = 13 [json_name = "totalMarkets"]; - * @return The totalMarkets. - */ - long getTotalMarkets(); - - /** - *
-     * Total number of order amendments since genesis (on all markets)
-     * 
- * - * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - * @return The totalAmendOrder. - */ - long getTotalAmendOrder(); - - /** - *
-     * Total number of order cancellations since genesis (on all markets)
-     * 
- * - * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - * @return The totalCancelOrder. - */ - long getTotalCancelOrder(); - - /** - *
-     * Total number of order submissions since genesis (on all markets)
-     * 
- * - * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - * @return The totalCreateOrder. - */ - long getTotalCreateOrder(); - - /** - *
-     * Total number of orders processed since genesis (on all markets)
-     * 
- * - * uint64 total_orders = 19 [json_name = "totalOrders"]; - * @return The totalOrders. - */ - long getTotalOrders(); - - /** - *
-     * Total number of trades emitted since genesis (on all markets)
-     * 
- * - * uint64 total_trades = 20 [json_name = "totalTrades"]; - * @return The totalTrades. - */ - long getTotalTrades(); - - /** - *
-     * Current number of stream subscribers to order data
-     * 
- * - * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - * @return The orderSubscriptions. - */ - int getOrderSubscriptions(); - - /** - *
-     * Current number of stream subscribers to trade data
-     * 
- * - * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - * @return The tradeSubscriptions. - */ - int getTradeSubscriptions(); - - /** - *
-     * Current number of stream subscribers to candle-stick data
-     * 
- * - * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - * @return The candleSubscriptions. - */ - int getCandleSubscriptions(); - - /** - *
-     * Current number of stream subscribers to market depth data
-     * 
- * - * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - * @return The marketDepthSubscriptions. - */ - int getMarketDepthSubscriptions(); - - /** - *
-     * Current number of stream subscribers to positions data
-     * 
- * - * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - * @return The positionsSubscriptions. - */ - int getPositionsSubscriptions(); - - /** - *
-     * Current number of stream subscribers to account data
-     * 
- * - * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - * @return The accountSubscriptions. - */ - int getAccountSubscriptions(); - - /** - *
-     * Current number of stream subscribers to market data
-     * 
- * - * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - * @return The marketDataSubscriptions. - */ - int getMarketDataSubscriptions(); + io.vegaprotocol.vega.Vega.Deposit.Status getStatus(); /** *
-     * The version hash of the Vega node software
+     * Party identifier of the user initiating the deposit
      * 
* - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The appVersionHash. + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. */ - java.lang.String getAppVersionHash(); + java.lang.String getPartyId(); /** *
-     * The version hash of the Vega node software
+     * Party identifier of the user initiating the deposit
      * 
* - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The bytes for appVersionHash. + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. */ com.google.protobuf.ByteString - getAppVersionHashBytes(); + getPartyIdBytes(); /** *
-     * The version of the Vega node software
+     * The Vega asset targeted by this deposit
      * 
* - * string app_version = 29 [json_name = "appVersion"]; - * @return The appVersion. + * string asset = 4 [json_name = "asset"]; + * @return The asset. */ - java.lang.String getAppVersion(); + java.lang.String getAsset(); /** *
-     * The version of the Vega node software
+     * The Vega asset targeted by this deposit
      * 
* - * string app_version = 29 [json_name = "appVersion"]; - * @return The bytes for appVersion. + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. */ com.google.protobuf.ByteString - getAppVersionBytes(); + getAssetBytes(); /** *
-     * The version of the underlying Vega blockchain
+     * The amount to be deposited
      * 
* - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The chainVersion. + * string amount = 5 [json_name = "amount"]; + * @return The amount. */ - java.lang.String getChainVersion(); + java.lang.String getAmount(); /** *
-     * The version of the underlying Vega blockchain
+     * The amount to be deposited
      * 
* - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The bytes for chainVersion. + * string amount = 5 [json_name = "amount"]; + * @return The bytes for amount. */ com.google.protobuf.ByteString - getChainVersionBytes(); - - /** - *
-     * Current block duration, in nanoseconds
-     * 
- * - * uint64 block_duration = 31 [json_name = "blockDuration"]; - * @return The blockDuration. - */ - long getBlockDuration(); + getAmountBytes(); /** *
-     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * The hash of the transaction from the foreign chain
      * 
* - * string uptime = 32 [json_name = "uptime"]; - * @return The uptime. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The txHash. */ - java.lang.String getUptime(); + java.lang.String getTxHash(); /** *
-     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * The hash of the transaction from the foreign chain
      * 
* - * string uptime = 32 [json_name = "uptime"]; - * @return The bytes for uptime. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The bytes for txHash. */ com.google.protobuf.ByteString - getUptimeBytes(); + getTxHashBytes(); /** *
-     * Unique identifier for the underlying Vega blockchain
-     * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @return The chainId. - */ - java.lang.String getChainId(); - /** - *
-     * Unique identifier for the underlying Vega blockchain
+     * Timestamp for when the Vega account was updated with the deposit
      * 
* - * string chain_id = 33 [json_name = "chainId"]; - * @return The bytes for chainId. + * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + * @return The creditedTimestamp. */ - com.google.protobuf.ByteString - getChainIdBytes(); + long getCreditedTimestamp(); /** *
-     * Current number of stream subscribers to market depth update data
+     * Timestamp for when the deposit was created on the Vega network
      * 
* - * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - * @return The marketDepthUpdatesSubscriptions. + * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. */ - int getMarketDepthUpdatesSubscriptions(); + long getCreatedTimestamp(); } /** *
-   * Vega domain specific statistics as reported by the node the caller is connected to
+   * A deposit on to the Vega network
    * 
* - * Protobuf type {@code vega.Statistics} + * Protobuf type {@code vega.Deposit} */ - public static final class Statistics extends + public static final class Deposit extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Statistics) - StatisticsOrBuilder { + // @@protoc_insertion_point(message_implements:vega.Deposit) + DepositOrBuilder { private static final long serialVersionUID = 0L; - // Use Statistics.newBuilder() to construct. - private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Deposit.newBuilder() to construct. + private Deposit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Statistics() { - genesisTime_ = ""; - currentTime_ = ""; - vegaTime_ = ""; + private Deposit() { + id_ = ""; status_ = 0; - appVersionHash_ = ""; - appVersion_ = ""; - chainVersion_ = ""; - uptime_ = ""; - chainId_ = ""; + partyId_ = ""; + asset_ = ""; + amount_ = ""; + txHash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Statistics(); + return new Deposit(); } @java.lang.Override @@ -26379,7 +26616,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Statistics( + private Deposit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -26397,173 +26634,50 @@ private Statistics( case 0: done = true; break; - case 8: { + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - blockHeight_ = input.readUInt64(); + id_ = s; break; } case 16: { + int rawValue = input.readEnum(); - backlogLength_ = input.readUInt64(); + status_ = rawValue; break; } - case 24: { + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - totalPeers_ = input.readUInt64(); + partyId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); - genesisTime_ = s; + asset_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); - currentTime_ = s; + amount_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); - vegaTime_ = s; + txHash_ = s; break; } case 56: { - int rawValue = input.readEnum(); - status_ = rawValue; + creditedTimestamp_ = input.readInt64(); break; } case 64: { - txPerBlock_ = input.readUInt64(); - break; - } - case 72: { - - averageTxBytes_ = input.readUInt64(); - break; - } - case 80: { - - averageOrdersPerBlock_ = input.readUInt64(); - break; - } - case 88: { - - tradesPerSecond_ = input.readUInt64(); - break; - } - case 96: { - - ordersPerSecond_ = input.readUInt64(); - break; - } - case 104: { - - totalMarkets_ = input.readUInt64(); - break; - } - case 128: { - - totalAmendOrder_ = input.readUInt64(); - break; - } - case 136: { - - totalCancelOrder_ = input.readUInt64(); - break; - } - case 144: { - - totalCreateOrder_ = input.readUInt64(); - break; - } - case 152: { - - totalOrders_ = input.readUInt64(); - break; - } - case 160: { - - totalTrades_ = input.readUInt64(); - break; - } - case 168: { - - orderSubscriptions_ = input.readUInt32(); - break; - } - case 176: { - - tradeSubscriptions_ = input.readUInt32(); - break; - } - case 184: { - - candleSubscriptions_ = input.readUInt32(); - break; - } - case 192: { - - marketDepthSubscriptions_ = input.readUInt32(); - break; - } - case 200: { - - positionsSubscriptions_ = input.readUInt32(); - break; - } - case 208: { - - accountSubscriptions_ = input.readUInt32(); - break; - } - case 216: { - - marketDataSubscriptions_ = input.readUInt32(); - break; - } - case 226: { - java.lang.String s = input.readStringRequireUtf8(); - - appVersionHash_ = s; - break; - } - case 234: { - java.lang.String s = input.readStringRequireUtf8(); - - appVersion_ = s; - break; - } - case 242: { - java.lang.String s = input.readStringRequireUtf8(); - - chainVersion_ = s; - break; - } - case 248: { - - blockDuration_ = input.readUInt64(); - break; - } - case 258: { - java.lang.String s = input.readStringRequireUtf8(); - - uptime_ = s; - break; - } - case 266: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; - break; - } - case 272: { - - marketDepthUpdatesSubscriptions_ = input.readUInt32(); + createdTimestamp_ = input.readInt64(); break; } default: { @@ -26587,209 +26701,233 @@ private Statistics( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Statistics_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Statistics_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Statistics.class, io.vegaprotocol.vega.Vega.Statistics.Builder.class); + io.vegaprotocol.vega.Vega.Deposit.class, io.vegaprotocol.vega.Vega.Deposit.Builder.class); } - public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1; - private long blockHeight_; /** *
-     * Current block height as reported by the Vega blockchain
+     * The status of the deposit
      * 
* - * uint64 block_height = 1 [json_name = "blockHeight"]; - * @return The blockHeight. + * Protobuf enum {@code vega.Deposit.Status} */ - @java.lang.Override - public long getBlockHeight() { - return blockHeight_; + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value, always invalid
+       * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+       * The deposit is being processed by the network
+       * 
+ * + * STATUS_OPEN = 1; + */ + STATUS_OPEN(1), + /** + *
+       * The deposit has been cancelled by the network
+       * 
+ * + * STATUS_CANCELLED = 2; + */ + STATUS_CANCELLED(2), + /** + *
+       * The deposit has been finalised and accounts have been updated
+       * 
+ * + * STATUS_FINALIZED = 3; + */ + STATUS_FINALIZED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value, always invalid
+       * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+       * The deposit is being processed by the network
+       * 
+ * + * STATUS_OPEN = 1; + */ + public static final int STATUS_OPEN_VALUE = 1; + /** + *
+       * The deposit has been cancelled by the network
+       * 
+ * + * STATUS_CANCELLED = 2; + */ + public static final int STATUS_CANCELLED_VALUE = 2; + /** + *
+       * The deposit has been finalised and accounts have been updated
+       * 
+ * + * STATUS_FINALIZED = 3; + */ + public static final int STATUS_FINALIZED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return STATUS_OPEN; + case 2: return STATUS_CANCELLED; + case 3: return STATUS_FINALIZED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.Deposit.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:vega.Deposit.Status) } - public static final int BACKLOG_LENGTH_FIELD_NUMBER = 2; - private long backlogLength_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; /** *
-     * Current backlog length (number of transactions) that are waiting to be included in a block
+     * Unique identifier for the deposit
      * 
* - * uint64 backlog_length = 2 [json_name = "backlogLength"]; - * @return The backlogLength. + * string id = 1 [json_name = "id"]; + * @return The id. */ @java.lang.Override - public long getBacklogLength() { - return backlogLength_; - } - - public static final int TOTAL_PEERS_FIELD_NUMBER = 3; - private long totalPeers_; - /** - *
-     * Total number of connected peers to this node
-     * 
- * - * uint64 total_peers = 3 [json_name = "totalPeers"]; - * @return The totalPeers. - */ - @java.lang.Override - public long getTotalPeers() { - return totalPeers_; - } - - public static final int GENESIS_TIME_FIELD_NUMBER = 4; - private volatile java.lang.Object genesisTime_; - /** - *
-     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The genesisTime. - */ - @java.lang.Override - public java.lang.String getGenesisTime() { - java.lang.Object ref = genesisTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - genesisTime_ = s; - return s; - } - } - /** - *
-     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The bytes for genesisTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGenesisTimeBytes() { - java.lang.Object ref = genesisTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - genesisTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_TIME_FIELD_NUMBER = 5; - private volatile java.lang.Object currentTime_; - /** - *
-     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string current_time = 5 [json_name = "currentTime"]; - * @return The currentTime. - */ - @java.lang.Override - public java.lang.String getCurrentTime() { - java.lang.Object ref = currentTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentTime_ = s; - return s; - } - } - /** - *
-     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string current_time = 5 [json_name = "currentTime"]; - * @return The bytes for currentTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentTimeBytes() { - java.lang.Object ref = currentTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VEGA_TIME_FIELD_NUMBER = 6; - private volatile java.lang.Object vegaTime_; - /** - *
-     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
-     * 
- * - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The vegaTime. - */ - @java.lang.Override - public java.lang.String getVegaTime() { - java.lang.Object ref = vegaTime_; + public java.lang.String getId() { + java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - vegaTime_ = s; + id_ = s; return s; } } /** *
-     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * Unique identifier for the deposit
      * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The bytes for vegaTime. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString - getVegaTimeBytes() { - java.lang.Object ref = vegaTime_; + getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - vegaTime_ = b; + id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int STATUS_FIELD_NUMBER = 7; + public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** *
-     * Status of the connection to the Vega blockchain
-     * - See [`ChainStatus`](#vega.ChainStatus)
+     * Status of the deposit
      * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { @@ -26797,547 +26935,230 @@ public java.lang.String getVegaTime() { } /** *
-     * Status of the connection to the Vega blockchain
-     * - See [`ChainStatus`](#vega.ChainStatus)
+     * Status of the deposit
      * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; * @return The status. */ - @java.lang.Override public io.vegaprotocol.vega.Vega.ChainStatus getStatus() { + @java.lang.Override public io.vegaprotocol.vega.Vega.Deposit.Status getStatus() { @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.ChainStatus result = io.vegaprotocol.vega.Vega.ChainStatus.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.ChainStatus.UNRECOGNIZED : result; - } - - public static final int TX_PER_BLOCK_FIELD_NUMBER = 8; - private long txPerBlock_; - /** - *
-     * Transactions per block
-     * 
- * - * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - * @return The txPerBlock. - */ - @java.lang.Override - public long getTxPerBlock() { - return txPerBlock_; - } - - public static final int AVERAGE_TX_BYTES_FIELD_NUMBER = 9; - private long averageTxBytes_; - /** - *
-     * Average transaction size in bytes
-     * 
- * - * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - * @return The averageTxBytes. - */ - @java.lang.Override - public long getAverageTxBytes() { - return averageTxBytes_; - } - - public static final int AVERAGE_ORDERS_PER_BLOCK_FIELD_NUMBER = 10; - private long averageOrdersPerBlock_; - /** - *
-     * Average orders per block
-     * 
- * - * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - * @return The averageOrdersPerBlock. - */ - @java.lang.Override - public long getAverageOrdersPerBlock() { - return averageOrdersPerBlock_; - } - - public static final int TRADES_PER_SECOND_FIELD_NUMBER = 11; - private long tradesPerSecond_; - /** - *
-     * Trades emitted per second
-     * 
- * - * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - * @return The tradesPerSecond. - */ - @java.lang.Override - public long getTradesPerSecond() { - return tradesPerSecond_; - } - - public static final int ORDERS_PER_SECOND_FIELD_NUMBER = 12; - private long ordersPerSecond_; - /** - *
-     * Orders processed per second
-     * 
- * - * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - * @return The ordersPerSecond. - */ - @java.lang.Override - public long getOrdersPerSecond() { - return ordersPerSecond_; - } - - public static final int TOTAL_MARKETS_FIELD_NUMBER = 13; - private long totalMarkets_; - /** - *
-     * Total markets on this Vega network
-     * 
- * - * uint64 total_markets = 13 [json_name = "totalMarkets"]; - * @return The totalMarkets. - */ - @java.lang.Override - public long getTotalMarkets() { - return totalMarkets_; - } - - public static final int TOTAL_AMEND_ORDER_FIELD_NUMBER = 16; - private long totalAmendOrder_; - /** - *
-     * Total number of order amendments since genesis (on all markets)
-     * 
- * - * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - * @return The totalAmendOrder. - */ - @java.lang.Override - public long getTotalAmendOrder() { - return totalAmendOrder_; - } - - public static final int TOTAL_CANCEL_ORDER_FIELD_NUMBER = 17; - private long totalCancelOrder_; - /** - *
-     * Total number of order cancellations since genesis (on all markets)
-     * 
- * - * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - * @return The totalCancelOrder. - */ - @java.lang.Override - public long getTotalCancelOrder() { - return totalCancelOrder_; - } - - public static final int TOTAL_CREATE_ORDER_FIELD_NUMBER = 18; - private long totalCreateOrder_; - /** - *
-     * Total number of order submissions since genesis (on all markets)
-     * 
- * - * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - * @return The totalCreateOrder. - */ - @java.lang.Override - public long getTotalCreateOrder() { - return totalCreateOrder_; - } - - public static final int TOTAL_ORDERS_FIELD_NUMBER = 19; - private long totalOrders_; - /** - *
-     * Total number of orders processed since genesis (on all markets)
-     * 
- * - * uint64 total_orders = 19 [json_name = "totalOrders"]; - * @return The totalOrders. - */ - @java.lang.Override - public long getTotalOrders() { - return totalOrders_; - } - - public static final int TOTAL_TRADES_FIELD_NUMBER = 20; - private long totalTrades_; - /** - *
-     * Total number of trades emitted since genesis (on all markets)
-     * 
- * - * uint64 total_trades = 20 [json_name = "totalTrades"]; - * @return The totalTrades. - */ - @java.lang.Override - public long getTotalTrades() { - return totalTrades_; - } - - public static final int ORDER_SUBSCRIPTIONS_FIELD_NUMBER = 21; - private int orderSubscriptions_; - /** - *
-     * Current number of stream subscribers to order data
-     * 
- * - * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - * @return The orderSubscriptions. - */ - @java.lang.Override - public int getOrderSubscriptions() { - return orderSubscriptions_; - } - - public static final int TRADE_SUBSCRIPTIONS_FIELD_NUMBER = 22; - private int tradeSubscriptions_; - /** - *
-     * Current number of stream subscribers to trade data
-     * 
- * - * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - * @return The tradeSubscriptions. - */ - @java.lang.Override - public int getTradeSubscriptions() { - return tradeSubscriptions_; - } - - public static final int CANDLE_SUBSCRIPTIONS_FIELD_NUMBER = 23; - private int candleSubscriptions_; - /** - *
-     * Current number of stream subscribers to candle-stick data
-     * 
- * - * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - * @return The candleSubscriptions. - */ - @java.lang.Override - public int getCandleSubscriptions() { - return candleSubscriptions_; - } - - public static final int MARKET_DEPTH_SUBSCRIPTIONS_FIELD_NUMBER = 24; - private int marketDepthSubscriptions_; - /** - *
-     * Current number of stream subscribers to market depth data
-     * 
- * - * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - * @return The marketDepthSubscriptions. - */ - @java.lang.Override - public int getMarketDepthSubscriptions() { - return marketDepthSubscriptions_; - } - - public static final int POSITIONS_SUBSCRIPTIONS_FIELD_NUMBER = 25; - private int positionsSubscriptions_; - /** - *
-     * Current number of stream subscribers to positions data
-     * 
- * - * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - * @return The positionsSubscriptions. - */ - @java.lang.Override - public int getPositionsSubscriptions() { - return positionsSubscriptions_; - } - - public static final int ACCOUNT_SUBSCRIPTIONS_FIELD_NUMBER = 26; - private int accountSubscriptions_; - /** - *
-     * Current number of stream subscribers to account data
-     * 
- * - * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - * @return The accountSubscriptions. - */ - @java.lang.Override - public int getAccountSubscriptions() { - return accountSubscriptions_; - } - - public static final int MARKET_DATA_SUBSCRIPTIONS_FIELD_NUMBER = 27; - private int marketDataSubscriptions_; - /** - *
-     * Current number of stream subscribers to market data
-     * 
- * - * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - * @return The marketDataSubscriptions. - */ - @java.lang.Override - public int getMarketDataSubscriptions() { - return marketDataSubscriptions_; + io.vegaprotocol.vega.Vega.Deposit.Status result = io.vegaprotocol.vega.Vega.Deposit.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.Deposit.Status.UNRECOGNIZED : result; } - public static final int APP_VERSION_HASH_FIELD_NUMBER = 28; - private volatile java.lang.Object appVersionHash_; + public static final int PARTY_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object partyId_; /** *
-     * The version hash of the Vega node software
+     * Party identifier of the user initiating the deposit
      * 
* - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The appVersionHash. + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. */ @java.lang.Override - public java.lang.String getAppVersionHash() { - java.lang.Object ref = appVersionHash_; + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - appVersionHash_ = s; + partyId_ = s; return s; } } /** *
-     * The version hash of the Vega node software
+     * Party identifier of the user initiating the deposit
      * 
* - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The bytes for appVersionHash. + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. */ @java.lang.Override public com.google.protobuf.ByteString - getAppVersionHashBytes() { - java.lang.Object ref = appVersionHash_; + getPartyIdBytes() { + java.lang.Object ref = partyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - appVersionHash_ = b; + partyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int APP_VERSION_FIELD_NUMBER = 29; - private volatile java.lang.Object appVersion_; + public static final int ASSET_FIELD_NUMBER = 4; + private volatile java.lang.Object asset_; /** *
-     * The version of the Vega node software
+     * The Vega asset targeted by this deposit
      * 
* - * string app_version = 29 [json_name = "appVersion"]; - * @return The appVersion. + * string asset = 4 [json_name = "asset"]; + * @return The asset. */ @java.lang.Override - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - appVersion_ = s; + asset_ = s; return s; } } /** *
-     * The version of the Vega node software
+     * The Vega asset targeted by this deposit
      * 
* - * string app_version = 29 [json_name = "appVersion"]; - * @return The bytes for appVersion. + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. */ @java.lang.Override public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - appVersion_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CHAIN_VERSION_FIELD_NUMBER = 30; - private volatile java.lang.Object chainVersion_; + public static final int AMOUNT_FIELD_NUMBER = 5; + private volatile java.lang.Object amount_; /** *
-     * The version of the underlying Vega blockchain
+     * The amount to be deposited
      * 
* - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The chainVersion. + * string amount = 5 [json_name = "amount"]; + * @return The amount. */ @java.lang.Override - public java.lang.String getChainVersion() { - java.lang.Object ref = chainVersion_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - chainVersion_ = s; + amount_ = s; return s; } } /** *
-     * The version of the underlying Vega blockchain
+     * The amount to be deposited
      * 
* - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The bytes for chainVersion. + * string amount = 5 [json_name = "amount"]; + * @return The bytes for amount. */ @java.lang.Override public com.google.protobuf.ByteString - getChainVersionBytes() { - java.lang.Object ref = chainVersion_; + getAmountBytes() { + java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - chainVersion_ = b; + amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int BLOCK_DURATION_FIELD_NUMBER = 31; - private long blockDuration_; - /** - *
-     * Current block duration, in nanoseconds
-     * 
- * - * uint64 block_duration = 31 [json_name = "blockDuration"]; - * @return The blockDuration. - */ - @java.lang.Override - public long getBlockDuration() { - return blockDuration_; - } - - public static final int UPTIME_FIELD_NUMBER = 32; - private volatile java.lang.Object uptime_; + public static final int TX_HASH_FIELD_NUMBER = 6; + private volatile java.lang.Object txHash_; /** *
-     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * The hash of the transaction from the foreign chain
      * 
* - * string uptime = 32 [json_name = "uptime"]; - * @return The uptime. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The txHash. */ @java.lang.Override - public java.lang.String getUptime() { - java.lang.Object ref = uptime_; + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - uptime_ = s; + txHash_ = s; return s; } } /** *
-     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * The hash of the transaction from the foreign chain
      * 
* - * string uptime = 32 [json_name = "uptime"]; - * @return The bytes for uptime. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The bytes for txHash. */ @java.lang.Override public com.google.protobuf.ByteString - getUptimeBytes() { - java.lang.Object ref = uptime_; + getTxHashBytes() { + java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - uptime_ = b; + txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CHAIN_ID_FIELD_NUMBER = 33; - private volatile java.lang.Object chainId_; - /** - *
-     * Unique identifier for the underlying Vega blockchain
-     * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @return The chainId. - */ - @java.lang.Override - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } - } + public static final int CREDITED_TIMESTAMP_FIELD_NUMBER = 7; + private long creditedTimestamp_; /** *
-     * Unique identifier for the underlying Vega blockchain
+     * Timestamp for when the Vega account was updated with the deposit
      * 
* - * string chain_id = 33 [json_name = "chainId"]; - * @return The bytes for chainId. + * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + * @return The creditedTimestamp. */ @java.lang.Override - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getCreditedTimestamp() { + return creditedTimestamp_; } - public static final int MARKET_DEPTH_UPDATES_SUBSCRIPTIONS_FIELD_NUMBER = 34; - private int marketDepthUpdatesSubscriptions_; + public static final int CREATED_TIMESTAMP_FIELD_NUMBER = 8; + private long createdTimestamp_; /** *
-     * Current number of stream subscribers to market depth update data
+     * Timestamp for when the deposit was created on the Vega network
      * 
* - * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - * @return The marketDepthUpdatesSubscriptions. + * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. */ @java.lang.Override - public int getMarketDepthUpdatesSubscriptions() { - return marketDepthUpdatesSubscriptions_; + public long getCreatedTimestamp() { + return createdTimestamp_; } private byte memoizedIsInitialized = -1; @@ -27354,101 +27175,29 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (blockHeight_ != 0L) { - output.writeUInt64(1, blockHeight_); - } - if (backlogLength_ != 0L) { - output.writeUInt64(2, backlogLength_); - } - if (totalPeers_ != 0L) { - output.writeUInt64(3, totalPeers_); - } - if (!getGenesisTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, genesisTime_); - } - if (!getCurrentTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, currentTime_); - } - if (!getVegaTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vegaTime_); - } - if (status_ != io.vegaprotocol.vega.Vega.ChainStatus.CHAIN_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(7, status_); - } - if (txPerBlock_ != 0L) { - output.writeUInt64(8, txPerBlock_); - } - if (averageTxBytes_ != 0L) { - output.writeUInt64(9, averageTxBytes_); - } - if (averageOrdersPerBlock_ != 0L) { - output.writeUInt64(10, averageOrdersPerBlock_); - } - if (tradesPerSecond_ != 0L) { - output.writeUInt64(11, tradesPerSecond_); - } - if (ordersPerSecond_ != 0L) { - output.writeUInt64(12, ordersPerSecond_); - } - if (totalMarkets_ != 0L) { - output.writeUInt64(13, totalMarkets_); - } - if (totalAmendOrder_ != 0L) { - output.writeUInt64(16, totalAmendOrder_); - } - if (totalCancelOrder_ != 0L) { - output.writeUInt64(17, totalCancelOrder_); - } - if (totalCreateOrder_ != 0L) { - output.writeUInt64(18, totalCreateOrder_); - } - if (totalOrders_ != 0L) { - output.writeUInt64(19, totalOrders_); - } - if (totalTrades_ != 0L) { - output.writeUInt64(20, totalTrades_); - } - if (orderSubscriptions_ != 0) { - output.writeUInt32(21, orderSubscriptions_); - } - if (tradeSubscriptions_ != 0) { - output.writeUInt32(22, tradeSubscriptions_); - } - if (candleSubscriptions_ != 0) { - output.writeUInt32(23, candleSubscriptions_); - } - if (marketDepthSubscriptions_ != 0) { - output.writeUInt32(24, marketDepthSubscriptions_); - } - if (positionsSubscriptions_ != 0) { - output.writeUInt32(25, positionsSubscriptions_); - } - if (accountSubscriptions_ != 0) { - output.writeUInt32(26, accountSubscriptions_); - } - if (marketDataSubscriptions_ != 0) { - output.writeUInt32(27, marketDataSubscriptions_); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (!getAppVersionHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 28, appVersionHash_); + if (status_ != io.vegaprotocol.vega.Vega.Deposit.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); } - if (!getAppVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, appVersion_); + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partyId_); } - if (!getChainVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, chainVersion_); + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); } - if (blockDuration_ != 0L) { - output.writeUInt64(31, blockDuration_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, amount_); } - if (!getUptimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 32, uptime_); + if (!getTxHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, txHash_); } - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 33, chainId_); + if (creditedTimestamp_ != 0L) { + output.writeInt64(7, creditedTimestamp_); } - if (marketDepthUpdatesSubscriptions_ != 0) { - output.writeUInt32(34, marketDepthUpdatesSubscriptions_); + if (createdTimestamp_ != 0L) { + output.writeInt64(8, createdTimestamp_); } unknownFields.writeTo(output); } @@ -27459,125 +27208,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (blockHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockHeight_); - } - if (backlogLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, backlogLength_); - } - if (totalPeers_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, totalPeers_); - } - if (!getGenesisTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, genesisTime_); - } - if (!getCurrentTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, currentTime_); - } - if (!getVegaTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vegaTime_); - } - if (status_ != io.vegaprotocol.vega.Vega.ChainStatus.CHAIN_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, status_); - } - if (txPerBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, txPerBlock_); - } - if (averageTxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, averageTxBytes_); - } - if (averageOrdersPerBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, averageOrdersPerBlock_); - } - if (tradesPerSecond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, tradesPerSecond_); - } - if (ordersPerSecond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(12, ordersPerSecond_); - } - if (totalMarkets_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, totalMarkets_); - } - if (totalAmendOrder_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(16, totalAmendOrder_); - } - if (totalCancelOrder_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, totalCancelOrder_); - } - if (totalCreateOrder_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(18, totalCreateOrder_); - } - if (totalOrders_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(19, totalOrders_); - } - if (totalTrades_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(20, totalTrades_); - } - if (orderSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, orderSubscriptions_); - } - if (tradeSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(22, tradeSubscriptions_); - } - if (candleSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(23, candleSubscriptions_); - } - if (marketDepthSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(24, marketDepthSubscriptions_); - } - if (positionsSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, positionsSubscriptions_); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (accountSubscriptions_ != 0) { + if (status_ != io.vegaprotocol.vega.Vega.Deposit.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(26, accountSubscriptions_); + .computeEnumSize(2, status_); } - if (marketDataSubscriptions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(27, marketDataSubscriptions_); + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partyId_); } - if (!getAppVersionHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, appVersionHash_); + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); } - if (!getAppVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, appVersion_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, amount_); } - if (!getChainVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, chainVersion_); + if (!getTxHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, txHash_); } - if (blockDuration_ != 0L) { + if (creditedTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(31, blockDuration_); - } - if (!getUptimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, uptime_); - } - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, chainId_); + .computeInt64Size(7, creditedTimestamp_); } - if (marketDepthUpdatesSubscriptions_ != 0) { + if (createdTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(34, marketDepthUpdatesSubscriptions_); + .computeInt64Size(8, createdTimestamp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -27589,74 +27245,26 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Statistics)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Deposit)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Statistics other = (io.vegaprotocol.vega.Vega.Statistics) obj; - - if (getBlockHeight() - != other.getBlockHeight()) return false; - if (getBacklogLength() - != other.getBacklogLength()) return false; - if (getTotalPeers() - != other.getTotalPeers()) return false; - if (!getGenesisTime() - .equals(other.getGenesisTime())) return false; - if (!getCurrentTime() - .equals(other.getCurrentTime())) return false; - if (!getVegaTime() - .equals(other.getVegaTime())) return false; + io.vegaprotocol.vega.Vega.Deposit other = (io.vegaprotocol.vega.Vega.Deposit) obj; + + if (!getId() + .equals(other.getId())) return false; if (status_ != other.status_) return false; - if (getTxPerBlock() - != other.getTxPerBlock()) return false; - if (getAverageTxBytes() - != other.getAverageTxBytes()) return false; - if (getAverageOrdersPerBlock() - != other.getAverageOrdersPerBlock()) return false; - if (getTradesPerSecond() - != other.getTradesPerSecond()) return false; - if (getOrdersPerSecond() - != other.getOrdersPerSecond()) return false; - if (getTotalMarkets() - != other.getTotalMarkets()) return false; - if (getTotalAmendOrder() - != other.getTotalAmendOrder()) return false; - if (getTotalCancelOrder() - != other.getTotalCancelOrder()) return false; - if (getTotalCreateOrder() - != other.getTotalCreateOrder()) return false; - if (getTotalOrders() - != other.getTotalOrders()) return false; - if (getTotalTrades() - != other.getTotalTrades()) return false; - if (getOrderSubscriptions() - != other.getOrderSubscriptions()) return false; - if (getTradeSubscriptions() - != other.getTradeSubscriptions()) return false; - if (getCandleSubscriptions() - != other.getCandleSubscriptions()) return false; - if (getMarketDepthSubscriptions() - != other.getMarketDepthSubscriptions()) return false; - if (getPositionsSubscriptions() - != other.getPositionsSubscriptions()) return false; - if (getAccountSubscriptions() - != other.getAccountSubscriptions()) return false; - if (getMarketDataSubscriptions() - != other.getMarketDataSubscriptions()) return false; - if (!getAppVersionHash() - .equals(other.getAppVersionHash())) return false; - if (!getAppVersion() - .equals(other.getAppVersion())) return false; - if (!getChainVersion() - .equals(other.getChainVersion())) return false; - if (getBlockDuration() - != other.getBlockDuration()) return false; - if (!getUptime() - .equals(other.getUptime())) return false; - if (!getChainId() - .equals(other.getChainId())) return false; - if (getMarketDepthUpdatesSubscriptions() - != other.getMarketDepthUpdatesSubscriptions()) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getTxHash() + .equals(other.getTxHash())) return false; + if (getCreditedTimestamp() + != other.getCreditedTimestamp()) return false; + if (getCreatedTimestamp() + != other.getCreatedTimestamp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -27668,153 +27276,92 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockHeight()); - hash = (37 * hash) + BACKLOG_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBacklogLength()); - hash = (37 * hash) + TOTAL_PEERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalPeers()); - hash = (37 * hash) + GENESIS_TIME_FIELD_NUMBER; - hash = (53 * hash) + getGenesisTime().hashCode(); - hash = (37 * hash) + CURRENT_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCurrentTime().hashCode(); - hash = (37 * hash) + VEGA_TIME_FIELD_NUMBER; - hash = (53 * hash) + getVegaTime().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; - hash = (37 * hash) + TX_PER_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxPerBlock()); - hash = (37 * hash) + AVERAGE_TX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAverageTxBytes()); - hash = (37 * hash) + AVERAGE_ORDERS_PER_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAverageOrdersPerBlock()); - hash = (37 * hash) + TRADES_PER_SECOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTradesPerSecond()); - hash = (37 * hash) + ORDERS_PER_SECOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOrdersPerSecond()); - hash = (37 * hash) + TOTAL_MARKETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalMarkets()); - hash = (37 * hash) + TOTAL_AMEND_ORDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalAmendOrder()); - hash = (37 * hash) + TOTAL_CANCEL_ORDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCancelOrder()); - hash = (37 * hash) + TOTAL_CREATE_ORDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCreateOrder()); - hash = (37 * hash) + TOTAL_ORDERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalOrders()); - hash = (37 * hash) + TOTAL_TRADES_FIELD_NUMBER; + hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + TX_HASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + CREDITED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalTrades()); - hash = (37 * hash) + ORDER_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOrderSubscriptions(); - hash = (37 * hash) + TRADE_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTradeSubscriptions(); - hash = (37 * hash) + CANDLE_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getCandleSubscriptions(); - hash = (37 * hash) + MARKET_DEPTH_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getMarketDepthSubscriptions(); - hash = (37 * hash) + POSITIONS_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getPositionsSubscriptions(); - hash = (37 * hash) + ACCOUNT_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getAccountSubscriptions(); - hash = (37 * hash) + MARKET_DATA_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getMarketDataSubscriptions(); - hash = (37 * hash) + APP_VERSION_HASH_FIELD_NUMBER; - hash = (53 * hash) + getAppVersionHash().hashCode(); - hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getAppVersion().hashCode(); - hash = (37 * hash) + CHAIN_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getChainVersion().hashCode(); - hash = (37 * hash) + BLOCK_DURATION_FIELD_NUMBER; + getCreditedTimestamp()); + hash = (37 * hash) + CREATED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockDuration()); - hash = (37 * hash) + UPTIME_FIELD_NUMBER; - hash = (53 * hash) + getUptime().hashCode(); - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - hash = (37 * hash) + MARKET_DEPTH_UPDATES_SUBSCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getMarketDepthUpdatesSubscriptions(); + getCreatedTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Deposit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Deposit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Statistics parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Deposit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Statistics parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Statistics parseFrom( + public static io.vegaprotocol.vega.Vega.Deposit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -27827,7 +27374,7 @@ public static io.vegaprotocol.vega.Vega.Statistics parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Statistics prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Deposit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -27844,29 +27391,29 @@ protected Builder newBuilderForType( } /** *
-     * Vega domain specific statistics as reported by the node the caller is connected to
+     * A deposit on to the Vega network
      * 
* - * Protobuf type {@code vega.Statistics} + * Protobuf type {@code vega.Deposit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Statistics) - io.vegaprotocol.vega.Vega.StatisticsOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Deposit) + io.vegaprotocol.vega.Vega.DepositOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Statistics_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Statistics_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Statistics.class, io.vegaprotocol.vega.Vega.Statistics.Builder.class); + io.vegaprotocol.vega.Vega.Deposit.class, io.vegaprotocol.vega.Vega.Deposit.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Statistics.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Deposit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -27884,69 +27431,21 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - blockHeight_ = 0L; - - backlogLength_ = 0L; - - totalPeers_ = 0L; - - genesisTime_ = ""; - - currentTime_ = ""; - - vegaTime_ = ""; + id_ = ""; status_ = 0; - txPerBlock_ = 0L; - - averageTxBytes_ = 0L; - - averageOrdersPerBlock_ = 0L; - - tradesPerSecond_ = 0L; - - ordersPerSecond_ = 0L; - - totalMarkets_ = 0L; - - totalAmendOrder_ = 0L; - - totalCancelOrder_ = 0L; - - totalCreateOrder_ = 0L; - - totalOrders_ = 0L; - - totalTrades_ = 0L; - - orderSubscriptions_ = 0; - - tradeSubscriptions_ = 0; - - candleSubscriptions_ = 0; - - marketDepthSubscriptions_ = 0; - - positionsSubscriptions_ = 0; - - accountSubscriptions_ = 0; - - marketDataSubscriptions_ = 0; - - appVersionHash_ = ""; - - appVersion_ = ""; + partyId_ = ""; - chainVersion_ = ""; + asset_ = ""; - blockDuration_ = 0L; + amount_ = ""; - uptime_ = ""; + txHash_ = ""; - chainId_ = ""; + creditedTimestamp_ = 0L; - marketDepthUpdatesSubscriptions_ = 0; + createdTimestamp_ = 0L; return this; } @@ -27954,17 +27453,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Statistics_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Statistics getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Statistics.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Deposit getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Statistics build() { - io.vegaprotocol.vega.Vega.Statistics result = buildPartial(); + public io.vegaprotocol.vega.Vega.Deposit build() { + io.vegaprotocol.vega.Vega.Deposit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -27972,40 +27471,16 @@ public io.vegaprotocol.vega.Vega.Statistics build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Statistics buildPartial() { - io.vegaprotocol.vega.Vega.Statistics result = new io.vegaprotocol.vega.Vega.Statistics(this); - result.blockHeight_ = blockHeight_; - result.backlogLength_ = backlogLength_; - result.totalPeers_ = totalPeers_; - result.genesisTime_ = genesisTime_; - result.currentTime_ = currentTime_; - result.vegaTime_ = vegaTime_; + public io.vegaprotocol.vega.Vega.Deposit buildPartial() { + io.vegaprotocol.vega.Vega.Deposit result = new io.vegaprotocol.vega.Vega.Deposit(this); + result.id_ = id_; result.status_ = status_; - result.txPerBlock_ = txPerBlock_; - result.averageTxBytes_ = averageTxBytes_; - result.averageOrdersPerBlock_ = averageOrdersPerBlock_; - result.tradesPerSecond_ = tradesPerSecond_; - result.ordersPerSecond_ = ordersPerSecond_; - result.totalMarkets_ = totalMarkets_; - result.totalAmendOrder_ = totalAmendOrder_; - result.totalCancelOrder_ = totalCancelOrder_; - result.totalCreateOrder_ = totalCreateOrder_; - result.totalOrders_ = totalOrders_; - result.totalTrades_ = totalTrades_; - result.orderSubscriptions_ = orderSubscriptions_; - result.tradeSubscriptions_ = tradeSubscriptions_; - result.candleSubscriptions_ = candleSubscriptions_; - result.marketDepthSubscriptions_ = marketDepthSubscriptions_; - result.positionsSubscriptions_ = positionsSubscriptions_; - result.accountSubscriptions_ = accountSubscriptions_; - result.marketDataSubscriptions_ = marketDataSubscriptions_; - result.appVersionHash_ = appVersionHash_; - result.appVersion_ = appVersion_; - result.chainVersion_ = chainVersion_; - result.blockDuration_ = blockDuration_; - result.uptime_ = uptime_; - result.chainId_ = chainId_; - result.marketDepthUpdatesSubscriptions_ = marketDepthUpdatesSubscriptions_; + result.partyId_ = partyId_; + result.asset_ = asset_; + result.amount_ = amount_; + result.txHash_ = txHash_; + result.creditedTimestamp_ = creditedTimestamp_; + result.createdTimestamp_ = createdTimestamp_; onBuilt(); return result; } @@ -28044,119 +27519,44 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Statistics) { - return mergeFrom((io.vegaprotocol.vega.Vega.Statistics)other); + if (other instanceof io.vegaprotocol.vega.Vega.Deposit) { + return mergeFrom((io.vegaprotocol.vega.Vega.Deposit)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Statistics other) { - if (other == io.vegaprotocol.vega.Vega.Statistics.getDefaultInstance()) return this; - if (other.getBlockHeight() != 0L) { - setBlockHeight(other.getBlockHeight()); - } - if (other.getBacklogLength() != 0L) { - setBacklogLength(other.getBacklogLength()); - } - if (other.getTotalPeers() != 0L) { - setTotalPeers(other.getTotalPeers()); - } - if (!other.getGenesisTime().isEmpty()) { - genesisTime_ = other.genesisTime_; - onChanged(); - } - if (!other.getCurrentTime().isEmpty()) { - currentTime_ = other.currentTime_; - onChanged(); - } - if (!other.getVegaTime().isEmpty()) { - vegaTime_ = other.vegaTime_; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Deposit other) { + if (other == io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } - if (other.getTxPerBlock() != 0L) { - setTxPerBlock(other.getTxPerBlock()); - } - if (other.getAverageTxBytes() != 0L) { - setAverageTxBytes(other.getAverageTxBytes()); - } - if (other.getAverageOrdersPerBlock() != 0L) { - setAverageOrdersPerBlock(other.getAverageOrdersPerBlock()); - } - if (other.getTradesPerSecond() != 0L) { - setTradesPerSecond(other.getTradesPerSecond()); - } - if (other.getOrdersPerSecond() != 0L) { - setOrdersPerSecond(other.getOrdersPerSecond()); - } - if (other.getTotalMarkets() != 0L) { - setTotalMarkets(other.getTotalMarkets()); - } - if (other.getTotalAmendOrder() != 0L) { - setTotalAmendOrder(other.getTotalAmendOrder()); - } - if (other.getTotalCancelOrder() != 0L) { - setTotalCancelOrder(other.getTotalCancelOrder()); - } - if (other.getTotalCreateOrder() != 0L) { - setTotalCreateOrder(other.getTotalCreateOrder()); - } - if (other.getTotalOrders() != 0L) { - setTotalOrders(other.getTotalOrders()); - } - if (other.getTotalTrades() != 0L) { - setTotalTrades(other.getTotalTrades()); - } - if (other.getOrderSubscriptions() != 0) { - setOrderSubscriptions(other.getOrderSubscriptions()); - } - if (other.getTradeSubscriptions() != 0) { - setTradeSubscriptions(other.getTradeSubscriptions()); - } - if (other.getCandleSubscriptions() != 0) { - setCandleSubscriptions(other.getCandleSubscriptions()); - } - if (other.getMarketDepthSubscriptions() != 0) { - setMarketDepthSubscriptions(other.getMarketDepthSubscriptions()); - } - if (other.getPositionsSubscriptions() != 0) { - setPositionsSubscriptions(other.getPositionsSubscriptions()); - } - if (other.getAccountSubscriptions() != 0) { - setAccountSubscriptions(other.getAccountSubscriptions()); - } - if (other.getMarketDataSubscriptions() != 0) { - setMarketDataSubscriptions(other.getMarketDataSubscriptions()); - } - if (!other.getAppVersionHash().isEmpty()) { - appVersionHash_ = other.appVersionHash_; + if (!other.getPartyId().isEmpty()) { + partyId_ = other.partyId_; onChanged(); } - if (!other.getAppVersion().isEmpty()) { - appVersion_ = other.appVersion_; + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; onChanged(); } - if (!other.getChainVersion().isEmpty()) { - chainVersion_ = other.chainVersion_; + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; onChanged(); } - if (other.getBlockDuration() != 0L) { - setBlockDuration(other.getBlockDuration()); - } - if (!other.getUptime().isEmpty()) { - uptime_ = other.uptime_; + if (!other.getTxHash().isEmpty()) { + txHash_ = other.txHash_; onChanged(); } - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); + if (other.getCreditedTimestamp() != 0L) { + setCreditedTimestamp(other.getCreditedTimestamp()); } - if (other.getMarketDepthUpdatesSubscriptions() != 0) { - setMarketDepthUpdatesSubscriptions(other.getMarketDepthUpdatesSubscriptions()); + if (other.getCreatedTimestamp() != 0L) { + setCreatedTimestamp(other.getCreatedTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -28173,11 +27573,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Statistics parsedMessage = null; + io.vegaprotocol.vega.Vega.Deposit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Statistics) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Deposit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -28187,151 +27587,192 @@ public Builder mergeFrom( return this; } - private long blockHeight_ ; + private java.lang.Object id_ = ""; /** *
-       * Current block height as reported by the Vega blockchain
+       * Unique identifier for the deposit
        * 
* - * uint64 block_height = 1 [json_name = "blockHeight"]; - * @return The blockHeight. + * string id = 1 [json_name = "id"]; + * @return The id. */ - @java.lang.Override - public long getBlockHeight() { - return blockHeight_; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Current block height as reported by the Vega blockchain
+       * Unique identifier for the deposit
        * 
* - * uint64 block_height = 1 [json_name = "blockHeight"]; - * @param value The blockHeight to set. - * @return This builder for chaining. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ - public Builder setBlockHeight(long value) { - - blockHeight_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Current block height as reported by the Vega blockchain
+       * Unique identifier for the deposit
        * 
* - * uint64 block_height = 1 [json_name = "blockHeight"]; + * string id = 1 [json_name = "id"]; + * @param value The id to set. * @return This builder for chaining. */ - public Builder clearBlockHeight() { + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - blockHeight_ = 0L; + id_ = value; onChanged(); return this; } - - private long backlogLength_ ; /** *
-       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * Unique identifier for the deposit
        * 
* - * uint64 backlog_length = 2 [json_name = "backlogLength"]; - * @return The backlogLength. + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. */ - @java.lang.Override - public long getBacklogLength() { - return backlogLength_; + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; } /** *
-       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * Unique identifier for the deposit
        * 
* - * uint64 backlog_length = 2 [json_name = "backlogLength"]; - * @param value The backlogLength to set. + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setBacklogLength(long value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - backlogLength_ = value; + id_ = value; onChanged(); return this; } + + private int status_ = 0; + /** + *
+       * Status of the deposit
+       * 
+ * + * .vega.Deposit.Status status = 2 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } /** *
-       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * Status of the deposit
        * 
* - * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; + * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ - public Builder clearBacklogLength() { + public Builder setStatusValue(int value) { - backlogLength_ = 0L; + status_ = value; onChanged(); return this; } - - private long totalPeers_ ; /** *
-       * Total number of connected peers to this node
+       * Status of the deposit
        * 
* - * uint64 total_peers = 3 [json_name = "totalPeers"]; - * @return The totalPeers. + * .vega.Deposit.Status status = 2 [json_name = "status"]; + * @return The status. */ @java.lang.Override - public long getTotalPeers() { - return totalPeers_; + public io.vegaprotocol.vega.Vega.Deposit.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.Deposit.Status result = io.vegaprotocol.vega.Vega.Deposit.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.Deposit.Status.UNRECOGNIZED : result; } /** *
-       * Total number of connected peers to this node
+       * Status of the deposit
        * 
* - * uint64 total_peers = 3 [json_name = "totalPeers"]; - * @param value The totalPeers to set. + * .vega.Deposit.Status status = 2 [json_name = "status"]; + * @param value The status to set. * @return This builder for chaining. */ - public Builder setTotalPeers(long value) { + public Builder setStatus(io.vegaprotocol.vega.Vega.Deposit.Status value) { + if (value == null) { + throw new NullPointerException(); + } - totalPeers_ = value; + status_ = value.getNumber(); onChanged(); return this; } /** *
-       * Total number of connected peers to this node
+       * Status of the deposit
        * 
* - * uint64 total_peers = 3 [json_name = "totalPeers"]; + * .vega.Deposit.Status status = 2 [json_name = "status"]; * @return This builder for chaining. */ - public Builder clearTotalPeers() { + public Builder clearStatus() { - totalPeers_ = 0L; + status_ = 0; onChanged(); return this; } - private java.lang.Object genesisTime_ = ""; + private java.lang.Object partyId_ = ""; /** *
-       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * Party identifier of the user initiating the deposit
        * 
* - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The genesisTime. + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. */ - public java.lang.String getGenesisTime() { - java.lang.Object ref = genesisTime_; + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - genesisTime_ = s; + partyId_ = s; return s; } else { return (java.lang.String) ref; @@ -28339,20 +27780,20 @@ public java.lang.String getGenesisTime() { } /** *
-       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * Party identifier of the user initiating the deposit
        * 
* - * string genesis_time = 4 [json_name = "genesisTime"]; - * @return The bytes for genesisTime. + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. */ public com.google.protobuf.ByteString - getGenesisTimeBytes() { - java.lang.Object ref = genesisTime_; + getPartyIdBytes() { + java.lang.Object ref = partyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - genesisTime_ = b; + partyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -28360,74 +27801,74 @@ public java.lang.String getGenesisTime() { } /** *
-       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * Party identifier of the user initiating the deposit
        * 
* - * string genesis_time = 4 [json_name = "genesisTime"]; - * @param value The genesisTime to set. + * string party_id = 3 [json_name = "partyId"]; + * @param value The partyId to set. * @return This builder for chaining. */ - public Builder setGenesisTime( + public Builder setPartyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - genesisTime_ = value; + partyId_ = value; onChanged(); return this; } /** *
-       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * Party identifier of the user initiating the deposit
        * 
* - * string genesis_time = 4 [json_name = "genesisTime"]; + * string party_id = 3 [json_name = "partyId"]; * @return This builder for chaining. */ - public Builder clearGenesisTime() { + public Builder clearPartyId() { - genesisTime_ = getDefaultInstance().getGenesisTime(); + partyId_ = getDefaultInstance().getPartyId(); onChanged(); return this; } /** *
-       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * Party identifier of the user initiating the deposit
        * 
* - * string genesis_time = 4 [json_name = "genesisTime"]; - * @param value The bytes for genesisTime to set. + * string party_id = 3 [json_name = "partyId"]; + * @param value The bytes for partyId to set. * @return This builder for chaining. */ - public Builder setGenesisTimeBytes( + public Builder setPartyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - genesisTime_ = value; + partyId_ = value; onChanged(); return this; } - private java.lang.Object currentTime_ = ""; + private java.lang.Object asset_ = ""; /** *
-       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The Vega asset targeted by this deposit
        * 
* - * string current_time = 5 [json_name = "currentTime"]; - * @return The currentTime. + * string asset = 4 [json_name = "asset"]; + * @return The asset. */ - public java.lang.String getCurrentTime() { - java.lang.Object ref = currentTime_; + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - currentTime_ = s; + asset_ = s; return s; } else { return (java.lang.String) ref; @@ -28435,20 +27876,20 @@ public java.lang.String getCurrentTime() { } /** *
-       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The Vega asset targeted by this deposit
        * 
* - * string current_time = 5 [json_name = "currentTime"]; - * @return The bytes for currentTime. + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. */ public com.google.protobuf.ByteString - getCurrentTimeBytes() { - java.lang.Object ref = currentTime_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - currentTime_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -28456,74 +27897,74 @@ public java.lang.String getCurrentTime() { } /** *
-       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The Vega asset targeted by this deposit
        * 
* - * string current_time = 5 [json_name = "currentTime"]; - * @param value The currentTime to set. + * string asset = 4 [json_name = "asset"]; + * @param value The asset to set. * @return This builder for chaining. */ - public Builder setCurrentTime( + public Builder setAsset( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentTime_ = value; + asset_ = value; onChanged(); return this; } /** *
-       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The Vega asset targeted by this deposit
        * 
* - * string current_time = 5 [json_name = "currentTime"]; + * string asset = 4 [json_name = "asset"]; * @return This builder for chaining. */ - public Builder clearCurrentTime() { + public Builder clearAsset() { - currentTime_ = getDefaultInstance().getCurrentTime(); + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** *
-       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The Vega asset targeted by this deposit
        * 
* - * string current_time = 5 [json_name = "currentTime"]; - * @param value The bytes for currentTime to set. + * string asset = 4 [json_name = "asset"]; + * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setCurrentTimeBytes( + public Builder setAssetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentTime_ = value; + asset_ = value; onChanged(); return this; } - private java.lang.Object vegaTime_ = ""; + private java.lang.Object amount_ = ""; /** *
-       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The amount to be deposited
        * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The vegaTime. + * string amount = 5 [json_name = "amount"]; + * @return The amount. */ - public java.lang.String getVegaTime() { - java.lang.Object ref = vegaTime_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - vegaTime_ = s; + amount_ = s; return s; } else { return (java.lang.String) ref; @@ -28531,20 +27972,20 @@ public java.lang.String getVegaTime() { } /** *
-       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The amount to be deposited
        * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @return The bytes for vegaTime. + * string amount = 5 [json_name = "amount"]; + * @return The bytes for amount. */ public com.google.protobuf.ByteString - getVegaTimeBytes() { - java.lang.Object ref = vegaTime_; + getAmountBytes() { + java.lang.Object ref = amount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - vegaTime_ = b; + amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -28552,2360 +27993,1297 @@ public java.lang.String getVegaTime() { } /** *
-       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The amount to be deposited
        * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @param value The vegaTime to set. + * string amount = 5 [json_name = "amount"]; + * @param value The amount to set. * @return This builder for chaining. */ - public Builder setVegaTime( + public Builder setAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - vegaTime_ = value; + amount_ = value; onChanged(); return this; } /** *
-       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The amount to be deposited
        * 
* - * string vega_time = 6 [json_name = "vegaTime"]; + * string amount = 5 [json_name = "amount"]; * @return This builder for chaining. */ - public Builder clearVegaTime() { + public Builder clearAmount() { - vegaTime_ = getDefaultInstance().getVegaTime(); + amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } /** *
-       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * The amount to be deposited
        * 
* - * string vega_time = 6 [json_name = "vegaTime"]; - * @param value The bytes for vegaTime to set. + * string amount = 5 [json_name = "amount"]; + * @param value The bytes for amount to set. * @return This builder for chaining. */ - public Builder setVegaTimeBytes( + public Builder setAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - vegaTime_ = value; + amount_ = value; onChanged(); return this; } - private int status_ = 0; - /** - *
-       * Status of the connection to the Vega blockchain
-       * - See [`ChainStatus`](#vega.ChainStatus)
-       * 
- * - * .vega.ChainStatus status = 7 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-       * Status of the connection to the Vega blockchain
-       * - See [`ChainStatus`](#vega.ChainStatus)
-       * 
- * - * .vega.ChainStatus status = 7 [json_name = "status"]; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } + private java.lang.Object txHash_ = ""; /** *
-       * Status of the connection to the Vega blockchain
-       * - See [`ChainStatus`](#vega.ChainStatus)
+       * The hash of the transaction from the foreign chain
        * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; - * @return The status. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The txHash. */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.ChainStatus getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.ChainStatus result = io.vegaprotocol.vega.Vega.ChainStatus.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.ChainStatus.UNRECOGNIZED : result; + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Status of the connection to the Vega blockchain
-       * - See [`ChainStatus`](#vega.ChainStatus)
+       * The hash of the transaction from the foreign chain
        * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; - * @param value The status to set. - * @return This builder for chaining. + * string tx_hash = 6 [json_name = "txHash"]; + * @return The bytes for txHash. */ - public Builder setStatus(io.vegaprotocol.vega.Vega.ChainStatus value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.ByteString + getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - - status_ = value.getNumber(); - onChanged(); - return this; } /** *
-       * Status of the connection to the Vega blockchain
-       * - See [`ChainStatus`](#vega.ChainStatus)
+       * The hash of the transaction from the foreign chain
        * 
* - * .vega.ChainStatus status = 7 [json_name = "status"]; + * string tx_hash = 6 [json_name = "txHash"]; + * @param value The txHash to set. * @return This builder for chaining. */ - public Builder clearStatus() { + public Builder setTxHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - status_ = 0; + txHash_ = value; onChanged(); return this; } - - private long txPerBlock_ ; - /** - *
-       * Transactions per block
-       * 
- * - * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - * @return The txPerBlock. - */ - @java.lang.Override - public long getTxPerBlock() { - return txPerBlock_; - } /** *
-       * Transactions per block
+       * The hash of the transaction from the foreign chain
        * 
* - * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; - * @param value The txPerBlock to set. + * string tx_hash = 6 [json_name = "txHash"]; * @return This builder for chaining. */ - public Builder setTxPerBlock(long value) { + public Builder clearTxHash() { - txPerBlock_ = value; + txHash_ = getDefaultInstance().getTxHash(); onChanged(); return this; } /** *
-       * Transactions per block
+       * The hash of the transaction from the foreign chain
        * 
* - * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * string tx_hash = 6 [json_name = "txHash"]; + * @param value The bytes for txHash to set. * @return This builder for chaining. */ - public Builder clearTxPerBlock() { + public Builder setTxHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - txPerBlock_ = 0L; + txHash_ = value; onChanged(); return this; } - private long averageTxBytes_ ; + private long creditedTimestamp_ ; /** *
-       * Average transaction size in bytes
+       * Timestamp for when the Vega account was updated with the deposit
        * 
* - * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - * @return The averageTxBytes. + * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + * @return The creditedTimestamp. */ @java.lang.Override - public long getAverageTxBytes() { - return averageTxBytes_; + public long getCreditedTimestamp() { + return creditedTimestamp_; } /** *
-       * Average transaction size in bytes
+       * Timestamp for when the Vega account was updated with the deposit
        * 
* - * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; - * @param value The averageTxBytes to set. + * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + * @param value The creditedTimestamp to set. * @return This builder for chaining. */ - public Builder setAverageTxBytes(long value) { + public Builder setCreditedTimestamp(long value) { - averageTxBytes_ = value; + creditedTimestamp_ = value; onChanged(); return this; } /** *
-       * Average transaction size in bytes
+       * Timestamp for when the Vega account was updated with the deposit
        * 
* - * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; * @return This builder for chaining. */ - public Builder clearAverageTxBytes() { + public Builder clearCreditedTimestamp() { - averageTxBytes_ = 0L; + creditedTimestamp_ = 0L; onChanged(); return this; } - private long averageOrdersPerBlock_ ; + private long createdTimestamp_ ; /** *
-       * Average orders per block
+       * Timestamp for when the deposit was created on the Vega network
        * 
* - * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - * @return The averageOrdersPerBlock. + * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. */ @java.lang.Override - public long getAverageOrdersPerBlock() { - return averageOrdersPerBlock_; + public long getCreatedTimestamp() { + return createdTimestamp_; } /** *
-       * Average orders per block
+       * Timestamp for when the deposit was created on the Vega network
        * 
* - * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; - * @param value The averageOrdersPerBlock to set. + * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + * @param value The createdTimestamp to set. * @return This builder for chaining. */ - public Builder setAverageOrdersPerBlock(long value) { + public Builder setCreatedTimestamp(long value) { - averageOrdersPerBlock_ = value; + createdTimestamp_ = value; onChanged(); return this; } /** *
-       * Average orders per block
+       * Timestamp for when the deposit was created on the Vega network
        * 
* - * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; * @return This builder for chaining. */ - public Builder clearAverageOrdersPerBlock() { + public Builder clearCreatedTimestamp() { - averageOrdersPerBlock_ = 0L; + createdTimestamp_ = 0L; onChanged(); return this; } - - private long tradesPerSecond_ ; - /** - *
-       * Trades emitted per second
-       * 
- * - * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - * @return The tradesPerSecond. - */ @java.lang.Override - public long getTradesPerSecond() { - return tradesPerSecond_; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - *
-       * Trades emitted per second
-       * 
- * - * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - * @param value The tradesPerSecond to set. - * @return This builder for chaining. - */ - public Builder setTradesPerSecond(long value) { - tradesPerSecond_ = value; - onChanged(); - return this; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * Trades emitted per second
-       * 
- * - * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; - * @return This builder for chaining. - */ - public Builder clearTradesPerSecond() { - tradesPerSecond_ = 0L; - onChanged(); - return this; - } - private long ordersPerSecond_ ; - /** - *
-       * Orders processed per second
-       * 
- * - * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - * @return The ordersPerSecond. - */ - @java.lang.Override - public long getOrdersPerSecond() { - return ordersPerSecond_; - } - /** - *
-       * Orders processed per second
-       * 
- * - * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - * @param value The ordersPerSecond to set. - * @return This builder for chaining. - */ - public Builder setOrdersPerSecond(long value) { + // @@protoc_insertion_point(builder_scope:vega.Deposit) + } - ordersPerSecond_ = value; - onChanged(); - return this; - } - /** - *
-       * Orders processed per second
-       * 
- * - * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; - * @return This builder for chaining. - */ - public Builder clearOrdersPerSecond() { + // @@protoc_insertion_point(class_scope:vega.Deposit) + private static final io.vegaprotocol.vega.Vega.Deposit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Deposit(); + } - ordersPerSecond_ = 0L; - onChanged(); - return this; - } + public static io.vegaprotocol.vega.Vega.Deposit getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private long totalMarkets_ ; - /** - *
-       * Total markets on this Vega network
-       * 
- * - * uint64 total_markets = 13 [json_name = "totalMarkets"]; - * @return The totalMarkets. - */ + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public long getTotalMarkets() { - return totalMarkets_; + public Deposit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Deposit(input, extensionRegistry); } - /** - *
-       * Total markets on this Vega network
-       * 
- * - * uint64 total_markets = 13 [json_name = "totalMarkets"]; - * @param value The totalMarkets to set. - * @return This builder for chaining. - */ - public Builder setTotalMarkets(long value) { + }; - totalMarkets_ = value; - onChanged(); - return this; - } - /** - *
-       * Total markets on this Vega network
-       * 
- * - * uint64 total_markets = 13 [json_name = "totalMarkets"]; - * @return This builder for chaining. - */ - public Builder clearTotalMarkets() { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - totalMarkets_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private long totalAmendOrder_ ; - /** - *
-       * Total number of order amendments since genesis (on all markets)
-       * 
- * - * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - * @return The totalAmendOrder. - */ - @java.lang.Override - public long getTotalAmendOrder() { - return totalAmendOrder_; - } - /** - *
-       * Total number of order amendments since genesis (on all markets)
-       * 
- * - * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - * @param value The totalAmendOrder to set. - * @return This builder for chaining. - */ - public Builder setTotalAmendOrder(long value) { + @java.lang.Override + public io.vegaprotocol.vega.Vega.Deposit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - totalAmendOrder_ = value; - onChanged(); - return this; - } - /** - *
-       * Total number of order amendments since genesis (on all markets)
-       * 
- * - * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; - * @return This builder for chaining. - */ - public Builder clearTotalAmendOrder() { + } - totalAmendOrder_ = 0L; - onChanged(); - return this; - } + public interface WithdrawalOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Withdrawal) + com.google.protobuf.MessageOrBuilder { - private long totalCancelOrder_ ; - /** - *
-       * Total number of order cancellations since genesis (on all markets)
-       * 
- * - * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - * @return The totalCancelOrder. - */ - @java.lang.Override - public long getTotalCancelOrder() { - return totalCancelOrder_; - } - /** - *
-       * Total number of order cancellations since genesis (on all markets)
-       * 
- * - * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - * @param value The totalCancelOrder to set. - * @return This builder for chaining. - */ - public Builder setTotalCancelOrder(long value) { + /** + *
+     * Unique identifier for the withdrawal
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * Unique identifier for the withdrawal
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); - totalCancelOrder_ = value; - onChanged(); - return this; - } - /** - *
-       * Total number of order cancellations since genesis (on all markets)
-       * 
- * - * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; - * @return This builder for chaining. - */ - public Builder clearTotalCancelOrder() { + /** + *
+     * Unique party identifier of the user initiating the withdrawal
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + java.lang.String getPartyId(); + /** + *
+     * Unique party identifier of the user initiating the withdrawal
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + com.google.protobuf.ByteString + getPartyIdBytes(); - totalCancelOrder_ = 0L; - onChanged(); - return this; + /** + *
+     * The amount to be withdrawn
+     * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + long getAmount(); + + /** + *
+     * The asset we want to withdraw funds from
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + *
+     * The asset we want to withdraw funds from
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + *
+     * The status of the withdrawal
+     * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * The status of the withdrawal
+     * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The status. + */ + io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus(); + + /** + *
+     * The reference which is used by the foreign chain
+     * to refer to this withdrawal
+     * 
+ * + * string ref = 6 [json_name = "ref"]; + * @return The ref. + */ + java.lang.String getRef(); + /** + *
+     * The reference which is used by the foreign chain
+     * to refer to this withdrawal
+     * 
+ * + * string ref = 6 [json_name = "ref"]; + * @return The bytes for ref. + */ + com.google.protobuf.ByteString + getRefBytes(); + + /** + *
+     * The time until when the withdrawal is valid
+     * 
+ * + * int64 expiry = 7 [json_name = "expiry"]; + * @return The expiry. + */ + long getExpiry(); + + /** + *
+     * The hash of the foreign chain for this transaction
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The txHash. + */ + java.lang.String getTxHash(); + /** + *
+     * The hash of the foreign chain for this transaction
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The bytes for txHash. + */ + com.google.protobuf.ByteString + getTxHashBytes(); + + /** + *
+     * Timestamp for when the network started to process this withdrawal
+     * 
+ * + * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. + */ + long getCreatedTimestamp(); + + /** + *
+     * Timestamp for when the withdrawal was finalised by the network
+     * 
+ * + * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + * @return The withdrawnTimestamp. + */ + long getWithdrawnTimestamp(); + + /** + *
+     * Foreign chain specifics
+     * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return Whether the ext field is set. + */ + boolean hasExt(); + /** + *
+     * Foreign chain specifics
+     * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return The ext. + */ + io.vegaprotocol.vega.Vega.WithdrawExt getExt(); + /** + *
+     * Foreign chain specifics
+     * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder(); + } + /** + *
+   * A withdrawal from the Vega network
+   * 
+ * + * Protobuf type {@code vega.Withdrawal} + */ + public static final class Withdrawal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.Withdrawal) + WithdrawalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Withdrawal.newBuilder() to construct. + private Withdrawal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Withdrawal() { + id_ = ""; + partyId_ = ""; + asset_ = ""; + status_ = 0; + ref_ = ""; + txHash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Withdrawal(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Withdrawal( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - private long totalCreateOrder_ ; - /** - *
-       * Total number of order submissions since genesis (on all markets)
-       * 
- * - * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - * @return The totalCreateOrder. - */ - @java.lang.Override - public long getTotalCreateOrder() { - return totalCreateOrder_; + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + partyId_ = s; + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + ref_ = s; + break; + } + case 56: { + + expiry_ = input.readInt64(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + txHash_ = s; + break; + } + case 72: { + + createdTimestamp_ = input.readInt64(); + break; + } + case 80: { + + withdrawnTimestamp_ = input.readInt64(); + break; + } + case 90: { + io.vegaprotocol.vega.Vega.WithdrawExt.Builder subBuilder = null; + if (ext_ != null) { + subBuilder = ext_.toBuilder(); + } + ext_ = input.readMessage(io.vegaprotocol.vega.Vega.WithdrawExt.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ext_); + ext_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.Withdrawal.class, io.vegaprotocol.vega.Vega.Withdrawal.Builder.class); + } + + /** + *
+     * The status of the withdrawal
+     * 
+ * + * Protobuf enum {@code vega.Withdrawal.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { /** *
-       * Total number of order submissions since genesis (on all markets)
+       * Default value, always invalid
        * 
* - * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - * @param value The totalCreateOrder to set. - * @return This builder for chaining. + * STATUS_UNSPECIFIED = 0; */ - public Builder setTotalCreateOrder(long value) { - - totalCreateOrder_ = value; - onChanged(); - return this; - } + STATUS_UNSPECIFIED(0), /** *
-       * Total number of order submissions since genesis (on all markets)
+       * The withdrawal is open and being processed by the network
        * 
* - * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; - * @return This builder for chaining. + * STATUS_OPEN = 1; */ - public Builder clearTotalCreateOrder() { - - totalCreateOrder_ = 0L; - onChanged(); - return this; - } - - private long totalOrders_ ; + STATUS_OPEN(1), /** *
-       * Total number of orders processed since genesis (on all markets)
+       * The withdrawal have been cancelled
        * 
* - * uint64 total_orders = 19 [json_name = "totalOrders"]; - * @return The totalOrders. + * STATUS_CANCELLED = 2; */ - @java.lang.Override - public long getTotalOrders() { - return totalOrders_; - } + STATUS_CANCELLED(2), /** *
-       * Total number of orders processed since genesis (on all markets)
+       * The withdrawal went through and is fully finalised, the funds are removed from the
+       * Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
        * 
* - * uint64 total_orders = 19 [json_name = "totalOrders"]; - * @param value The totalOrders to set. - * @return This builder for chaining. + * STATUS_FINALIZED = 3; */ - public Builder setTotalOrders(long value) { + STATUS_FINALIZED(3), + UNRECOGNIZED(-1), + ; - totalOrders_ = value; - onChanged(); - return this; - } /** *
-       * Total number of orders processed since genesis (on all markets)
+       * Default value, always invalid
        * 
* - * uint64 total_orders = 19 [json_name = "totalOrders"]; - * @return This builder for chaining. + * STATUS_UNSPECIFIED = 0; */ - public Builder clearTotalOrders() { - - totalOrders_ = 0L; - onChanged(); - return this; - } - - private long totalTrades_ ; + public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
-       * Total number of trades emitted since genesis (on all markets)
+       * The withdrawal is open and being processed by the network
        * 
* - * uint64 total_trades = 20 [json_name = "totalTrades"]; - * @return The totalTrades. + * STATUS_OPEN = 1; */ - @java.lang.Override - public long getTotalTrades() { - return totalTrades_; - } + public static final int STATUS_OPEN_VALUE = 1; /** *
-       * Total number of trades emitted since genesis (on all markets)
+       * The withdrawal have been cancelled
        * 
* - * uint64 total_trades = 20 [json_name = "totalTrades"]; - * @param value The totalTrades to set. - * @return This builder for chaining. + * STATUS_CANCELLED = 2; */ - public Builder setTotalTrades(long value) { - - totalTrades_ = value; - onChanged(); - return this; - } + public static final int STATUS_CANCELLED_VALUE = 2; /** *
-       * Total number of trades emitted since genesis (on all markets)
+       * The withdrawal went through and is fully finalised, the funds are removed from the
+       * Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
        * 
* - * uint64 total_trades = 20 [json_name = "totalTrades"]; - * @return This builder for chaining. + * STATUS_FINALIZED = 3; */ - public Builder clearTotalTrades() { + public static final int STATUS_FINALIZED_VALUE = 3; - totalTrades_ = 0L; - onChanged(); - return this; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; } - private int orderSubscriptions_ ; /** - *
-       * Current number of stream subscribers to order data
-       * 
- * - * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - * @return The orderSubscriptions. + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Override - public int getOrderSubscriptions() { - return orderSubscriptions_; + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); } - /** - *
-       * Current number of stream subscribers to order data
-       * 
- * - * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - * @param value The orderSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setOrderSubscriptions(int value) { - orderSubscriptions_ = value; - onChanged(); - return this; - } /** - *
-       * Current number of stream subscribers to order data
-       * 
- * - * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; - * @return This builder for chaining. + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. */ - public Builder clearOrderSubscriptions() { - - orderSubscriptions_ = 0; - onChanged(); - return this; - } - - private int tradeSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to trade data
-       * 
- * - * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - * @return The tradeSubscriptions. - */ - @java.lang.Override - public int getTradeSubscriptions() { - return tradeSubscriptions_; + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return STATUS_OPEN; + case 2: return STATUS_CANCELLED; + case 3: return STATUS_FINALIZED; + default: return null; + } } - /** - *
-       * Current number of stream subscribers to trade data
-       * 
- * - * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - * @param value The tradeSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setTradeSubscriptions(int value) { - tradeSubscriptions_ = value; - onChanged(); - return this; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - /** - *
-       * Current number of stream subscribers to trade data
-       * 
- * - * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearTradeSubscriptions() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; - tradeSubscriptions_ = 0; - onChanged(); - return this; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); } - - private int candleSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to candle-stick data
-       * 
- * - * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - * @return The candleSubscriptions. - */ - @java.lang.Override - public int getCandleSubscriptions() { - return candleSubscriptions_; + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); } - /** - *
-       * Current number of stream subscribers to candle-stick data
-       * 
- * - * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - * @param value The candleSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setCandleSubscriptions(int value) { - - candleSubscriptions_ = value; - onChanged(); - return this; + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.Withdrawal.getDescriptor().getEnumTypes().get(0); } - /** - *
-       * Current number of stream subscribers to candle-stick data
-       * 
- * - * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearCandleSubscriptions() { - candleSubscriptions_ = 0; - onChanged(); - return this; - } + private static final Status[] VALUES = values(); - private int marketDepthSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to market depth data
-       * 
- * - * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - * @return The marketDepthSubscriptions. - */ - @java.lang.Override - public int getMarketDepthSubscriptions() { - return marketDepthSubscriptions_; + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } - /** - *
-       * Current number of stream subscribers to market depth data
-       * 
- * - * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - * @param value The marketDepthSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setMarketDepthSubscriptions(int value) { - marketDepthSubscriptions_ = value; - onChanged(); - return this; - } - /** - *
-       * Current number of stream subscribers to market depth data
-       * 
- * - * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearMarketDepthSubscriptions() { + private final int value; - marketDepthSubscriptions_ = 0; - onChanged(); - return this; + private Status(int value) { + this.value = value; } - private int positionsSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to positions data
-       * 
- * - * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - * @return The positionsSubscriptions. - */ - @java.lang.Override - public int getPositionsSubscriptions() { - return positionsSubscriptions_; - } - /** - *
-       * Current number of stream subscribers to positions data
-       * 
- * - * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - * @param value The positionsSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setPositionsSubscriptions(int value) { + // @@protoc_insertion_point(enum_scope:vega.Withdrawal.Status) + } - positionsSubscriptions_ = value; - onChanged(); - return this; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Unique identifier for the withdrawal
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; } - /** - *
-       * Current number of stream subscribers to positions data
-       * 
- * - * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearPositionsSubscriptions() { - - positionsSubscriptions_ = 0; - onChanged(); - return this; + } + /** + *
+     * Unique identifier for the withdrawal
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private int accountSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to account data
-       * 
- * - * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - * @return The accountSubscriptions. - */ - @java.lang.Override - public int getAccountSubscriptions() { - return accountSubscriptions_; + public static final int PARTY_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object partyId_; + /** + *
+     * Unique party identifier of the user initiating the withdrawal
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + @java.lang.Override + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; } - /** - *
-       * Current number of stream subscribers to account data
-       * 
- * - * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - * @param value The accountSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setAccountSubscriptions(int value) { - - accountSubscriptions_ = value; - onChanged(); - return this; + } + /** + *
+     * Unique party identifier of the user initiating the withdrawal
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * Current number of stream subscribers to account data
-       * 
- * - * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearAccountSubscriptions() { + } - accountSubscriptions_ = 0; - onChanged(); - return this; - } + public static final int AMOUNT_FIELD_NUMBER = 3; + private long amount_; + /** + *
+     * The amount to be withdrawn
+     * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - private int marketDataSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to market data
-       * 
- * - * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - * @return The marketDataSubscriptions. - */ - @java.lang.Override - public int getMarketDataSubscriptions() { - return marketDataSubscriptions_; + public static final int ASSET_FIELD_NUMBER = 4; + private volatile java.lang.Object asset_; + /** + *
+     * The asset we want to withdraw funds from
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; } - /** - *
-       * Current number of stream subscribers to market data
-       * 
- * - * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - * @param value The marketDataSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setMarketDataSubscriptions(int value) { - - marketDataSubscriptions_ = value; - onChanged(); - return this; + } + /** + *
+     * The asset we want to withdraw funds from
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * Current number of stream subscribers to market data
-       * 
- * - * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearMarketDataSubscriptions() { + } - marketDataSubscriptions_ = 0; - onChanged(); - return this; - } + public static final int STATUS_FIELD_NUMBER = 5; + private int status_; + /** + *
+     * The status of the withdrawal
+     * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * The status of the withdrawal
+     * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.Withdrawal.Status result = io.vegaprotocol.vega.Vega.Withdrawal.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.Withdrawal.Status.UNRECOGNIZED : result; + } - private java.lang.Object appVersionHash_ = ""; - /** - *
-       * The version hash of the Vega node software
-       * 
- * - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The appVersionHash. - */ - public java.lang.String getAppVersionHash() { - java.lang.Object ref = appVersionHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appVersionHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The version hash of the Vega node software
-       * 
- * - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return The bytes for appVersionHash. - */ - public com.google.protobuf.ByteString - getAppVersionHashBytes() { - java.lang.Object ref = appVersionHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersionHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static final int REF_FIELD_NUMBER = 6; + private volatile java.lang.Object ref_; + /** + *
+     * The reference which is used by the foreign chain
+     * to refer to this withdrawal
+     * 
+ * + * string ref = 6 [json_name = "ref"]; + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; } - /** - *
-       * The version hash of the Vega node software
-       * 
- * - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @param value The appVersionHash to set. - * @return This builder for chaining. - */ - public Builder setAppVersionHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersionHash_ = value; - onChanged(); - return this; + } + /** + *
+     * The reference which is used by the foreign chain
+     * to refer to this withdrawal
+     * 
+ * + * string ref = 6 [json_name = "ref"]; + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * The version hash of the Vega node software
-       * 
- * - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @return This builder for chaining. - */ - public Builder clearAppVersionHash() { + } - appVersionHash_ = getDefaultInstance().getAppVersionHash(); - onChanged(); - return this; - } - /** - *
-       * The version hash of the Vega node software
-       * 
- * - * string app_version_hash = 28 [json_name = "appVersionHash"]; - * @param value The bytes for appVersionHash to set. - * @return This builder for chaining. - */ - public Builder setAppVersionHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public static final int EXPIRY_FIELD_NUMBER = 7; + private long expiry_; + /** + *
+     * The time until when the withdrawal is valid
+     * 
+ * + * int64 expiry = 7 [json_name = "expiry"]; + * @return The expiry. + */ + @java.lang.Override + public long getExpiry() { + return expiry_; + } - appVersionHash_ = value; - onChanged(); - return this; + public static final int TX_HASH_FIELD_NUMBER = 8; + private volatile java.lang.Object txHash_; + /** + *
+     * The hash of the foreign chain for this transaction
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The txHash. + */ + @java.lang.Override + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; } - - private java.lang.Object appVersion_ = ""; - /** - *
-       * The version of the Vega node software
-       * 
- * - * string app_version = 29 [json_name = "appVersion"]; - * @return The appVersion. - */ - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The version of the Vega node software
-       * 
- * - * string app_version = 29 [json_name = "appVersion"]; - * @return The bytes for appVersion. - */ - public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The version of the Vega node software
-       * 
- * - * string app_version = 29 [json_name = "appVersion"]; - * @param value The appVersion to set. - * @return This builder for chaining. - */ - public Builder setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The version of the Vega node software
-       * 
- * - * string app_version = 29 [json_name = "appVersion"]; - * @return This builder for chaining. - */ - public Builder clearAppVersion() { - - appVersion_ = getDefaultInstance().getAppVersion(); - onChanged(); - return this; - } - /** - *
-       * The version of the Vega node software
-       * 
- * - * string app_version = 29 [json_name = "appVersion"]; - * @param value The bytes for appVersion to set. - * @return This builder for chaining. - */ - public Builder setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object chainVersion_ = ""; - /** - *
-       * The version of the underlying Vega blockchain
-       * 
- * - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The chainVersion. - */ - public java.lang.String getChainVersion() { - java.lang.Object ref = chainVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The version of the underlying Vega blockchain
-       * 
- * - * string chain_version = 30 [json_name = "chainVersion"]; - * @return The bytes for chainVersion. - */ - public com.google.protobuf.ByteString - getChainVersionBytes() { - java.lang.Object ref = chainVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The version of the underlying Vega blockchain
-       * 
- * - * string chain_version = 30 [json_name = "chainVersion"]; - * @param value The chainVersion to set. - * @return This builder for chaining. - */ - public Builder setChainVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The version of the underlying Vega blockchain
-       * 
- * - * string chain_version = 30 [json_name = "chainVersion"]; - * @return This builder for chaining. - */ - public Builder clearChainVersion() { - - chainVersion_ = getDefaultInstance().getChainVersion(); - onChanged(); - return this; - } - /** - *
-       * The version of the underlying Vega blockchain
-       * 
- * - * string chain_version = 30 [json_name = "chainVersion"]; - * @param value The bytes for chainVersion to set. - * @return This builder for chaining. - */ - public Builder setChainVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainVersion_ = value; - onChanged(); - return this; - } - - private long blockDuration_ ; - /** - *
-       * Current block duration, in nanoseconds
-       * 
- * - * uint64 block_duration = 31 [json_name = "blockDuration"]; - * @return The blockDuration. - */ - @java.lang.Override - public long getBlockDuration() { - return blockDuration_; - } - /** - *
-       * Current block duration, in nanoseconds
-       * 
- * - * uint64 block_duration = 31 [json_name = "blockDuration"]; - * @param value The blockDuration to set. - * @return This builder for chaining. - */ - public Builder setBlockDuration(long value) { - - blockDuration_ = value; - onChanged(); - return this; - } - /** - *
-       * Current block duration, in nanoseconds
-       * 
- * - * uint64 block_duration = 31 [json_name = "blockDuration"]; - * @return This builder for chaining. - */ - public Builder clearBlockDuration() { - - blockDuration_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object uptime_ = ""; - /** - *
-       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
-       * 
- * - * string uptime = 32 [json_name = "uptime"]; - * @return The uptime. - */ - public java.lang.String getUptime() { - java.lang.Object ref = uptime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uptime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
-       * 
- * - * string uptime = 32 [json_name = "uptime"]; - * @return The bytes for uptime. - */ - public com.google.protobuf.ByteString - getUptimeBytes() { - java.lang.Object ref = uptime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uptime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
-       * 
- * - * string uptime = 32 [json_name = "uptime"]; - * @param value The uptime to set. - * @return This builder for chaining. - */ - public Builder setUptime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uptime_ = value; - onChanged(); - return this; - } - /** - *
-       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
-       * 
- * - * string uptime = 32 [json_name = "uptime"]; - * @return This builder for chaining. - */ - public Builder clearUptime() { - - uptime_ = getDefaultInstance().getUptime(); - onChanged(); - return this; - } - /** - *
-       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
-       * 
- * - * string uptime = 32 [json_name = "uptime"]; - * @param value The bytes for uptime to set. - * @return This builder for chaining. - */ - public Builder setUptimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uptime_ = value; - onChanged(); - return this; - } - - private java.lang.Object chainId_ = ""; - /** - *
-       * Unique identifier for the underlying Vega blockchain
-       * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @return The chainId. - */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique identifier for the underlying Vega blockchain
-       * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @return The bytes for chainId. - */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique identifier for the underlying Vega blockchain
-       * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @param value The chainId to set. - * @return This builder for chaining. - */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique identifier for the underlying Vega blockchain
-       * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @return This builder for chaining. - */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); - return this; - } - /** - *
-       * Unique identifier for the underlying Vega blockchain
-       * 
- * - * string chain_id = 33 [json_name = "chainId"]; - * @param value The bytes for chainId to set. - * @return This builder for chaining. - */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); - return this; - } - - private int marketDepthUpdatesSubscriptions_ ; - /** - *
-       * Current number of stream subscribers to market depth update data
-       * 
- * - * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - * @return The marketDepthUpdatesSubscriptions. - */ - @java.lang.Override - public int getMarketDepthUpdatesSubscriptions() { - return marketDepthUpdatesSubscriptions_; - } - /** - *
-       * Current number of stream subscribers to market depth update data
-       * 
- * - * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - * @param value The marketDepthUpdatesSubscriptions to set. - * @return This builder for chaining. - */ - public Builder setMarketDepthUpdatesSubscriptions(int value) { - - marketDepthUpdatesSubscriptions_ = value; - onChanged(); - return this; - } - /** - *
-       * Current number of stream subscribers to market depth update data
-       * 
- * - * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; - * @return This builder for chaining. - */ - public Builder clearMarketDepthUpdatesSubscriptions() { - - marketDepthUpdatesSubscriptions_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:vega.Statistics) - } - - // @@protoc_insertion_point(class_scope:vega.Statistics) - private static final io.vegaprotocol.vega.Vega.Statistics DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Statistics(); - } - - public static io.vegaprotocol.vega.Vega.Statistics getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Statistics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Statistics(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.Statistics getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - - } - - public interface DepositOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Deposit) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the deposit
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); /** *
-     * Unique identifier for the deposit
+     * The hash of the foreign chain for this transaction
      * 
* - * string id = 1 [json_name = "id"]; - * @return The bytes for id. + * string tx_hash = 8 [json_name = "txHash"]; + * @return The bytes for txHash. */ - com.google.protobuf.ByteString - getIdBytes(); + @java.lang.Override + public com.google.protobuf.ByteString + getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATED_TIMESTAMP_FIELD_NUMBER = 9; + private long createdTimestamp_; /** *
-     * Status of the deposit
-     * 
- * - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - *
-     * Status of the deposit
+     * Timestamp for when the network started to process this withdrawal
      * 
* - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The status. + * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. */ - io.vegaprotocol.vega.Vega.Deposit.Status getStatus(); + @java.lang.Override + public long getCreatedTimestamp() { + return createdTimestamp_; + } + public static final int WITHDRAWN_TIMESTAMP_FIELD_NUMBER = 10; + private long withdrawnTimestamp_; /** *
-     * Party identifier of the user initiating the deposit
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier of the user initiating the deposit
+     * Timestamp for when the withdrawal was finalised by the network
      * 
* - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. + * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + * @return The withdrawnTimestamp. */ - com.google.protobuf.ByteString - getPartyIdBytes(); + @java.lang.Override + public long getWithdrawnTimestamp() { + return withdrawnTimestamp_; + } + public static final int EXT_FIELD_NUMBER = 11; + private io.vegaprotocol.vega.Vega.WithdrawExt ext_; /** *
-     * The Vega asset targeted by this deposit
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * The Vega asset targeted by this deposit
+     * Foreign chain specifics
      * 
* - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return Whether the ext field is set. */ - com.google.protobuf.ByteString - getAssetBytes(); - + @java.lang.Override + public boolean hasExt() { + return ext_ != null; + } /** *
-     * The amount to be deposited
+     * Foreign chain specifics
      * 
* - * string amount = 5 [json_name = "amount"]; - * @return The amount. + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return The ext. */ - java.lang.String getAmount(); + @java.lang.Override + public io.vegaprotocol.vega.Vega.WithdrawExt getExt() { + return ext_ == null ? io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; + } /** *
-     * The amount to be deposited
+     * Foreign chain specifics
      * 
* - * string amount = 5 [json_name = "amount"]; - * @return The bytes for amount. + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; */ - com.google.protobuf.ByteString - getAmountBytes(); - - /** - *
-     * The hash of the transaction from the foreign chain
-     * 
- * - * string tx_hash = 6 [json_name = "txHash"]; - * @return The txHash. - */ - java.lang.String getTxHash(); - /** - *
-     * The hash of the transaction from the foreign chain
-     * 
- * - * string tx_hash = 6 [json_name = "txHash"]; - * @return The bytes for txHash. - */ - com.google.protobuf.ByteString - getTxHashBytes(); - - /** - *
-     * Timestamp for when the Vega account was updated with the deposit
-     * 
- * - * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - * @return The creditedTimestamp. - */ - long getCreditedTimestamp(); - - /** - *
-     * Timestamp for when the deposit was created on the Vega network
-     * 
- * - * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. - */ - long getCreatedTimestamp(); - } - /** - *
-   * A deposit on to the Vega network
-   * 
- * - * Protobuf type {@code vega.Deposit} - */ - public static final class Deposit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Deposit) - DepositOrBuilder { - private static final long serialVersionUID = 0L; - // Use Deposit.newBuilder() to construct. - private Deposit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Deposit() { - id_ = ""; - status_ = 0; - partyId_ = ""; - asset_ = ""; - amount_ = ""; - txHash_ = ""; + @java.lang.Override + public io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder() { + return getExt(); } + private byte memoizedIsInitialized = -1; @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Deposit(); + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Deposit( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - amount_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - txHash_ = s; - break; - } - case 56: { - - creditedTimestamp_ = input.readInt64(); - break; - } - case 64: { - - createdTimestamp_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; + if (amount_ != 0L) { + output.writeUInt64(3, amount_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); + } + if (status_ != io.vegaprotocol.vega.Vega.Withdrawal.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(5, status_); + } + if (!getRefBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ref_); + } + if (expiry_ != 0L) { + output.writeInt64(7, expiry_); + } + if (!getTxHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, txHash_); + } + if (createdTimestamp_ != 0L) { + output.writeInt64(9, createdTimestamp_); + } + if (withdrawnTimestamp_ != 0L) { + output.writeInt64(10, withdrawnTimestamp_); + } + if (ext_ != null) { + output.writeMessage(11, getExt()); + } + unknownFields.writeTo(output); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Deposit.class, io.vegaprotocol.vega.Vega.Deposit.Builder.class); - } - - /** - *
-     * The status of the deposit
-     * 
- * - * Protobuf enum {@code vega.Deposit.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default value, always invalid
-       * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - *
-       * The deposit is being processed by the network
-       * 
- * - * STATUS_OPEN = 1; - */ - STATUS_OPEN(1), - /** - *
-       * The deposit has been cancelled by the network
-       * 
- * - * STATUS_CANCELLED = 2; - */ - STATUS_CANCELLED(2), - /** - *
-       * The deposit has been finalised and accounts have been updated
-       * 
- * - * STATUS_FINALIZED = 3; - */ - STATUS_FINALIZED(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default value, always invalid
-       * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - *
-       * The deposit is being processed by the network
-       * 
- * - * STATUS_OPEN = 1; - */ - public static final int STATUS_OPEN_VALUE = 1; - /** - *
-       * The deposit has been cancelled by the network
-       * 
- * - * STATUS_CANCELLED = 2; - */ - public static final int STATUS_CANCELLED_VALUE = 2; - /** - *
-       * The deposit has been finalised and accounts have been updated
-       * 
- * - * STATUS_FINALIZED = 3; - */ - public static final int STATUS_FINALIZED_VALUE = 3; - + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { - switch (value) { - case 0: return STATUS_UNSPECIFIED; - case 1: return STATUS_OPEN; - case 2: return STATUS_CANCELLED; - case 3: return STATUS_FINALIZED; - default: return null; - } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, amount_); } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); + if (status_ != io.vegaprotocol.vega.Vega.Withdrawal.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, status_); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); + if (!getRefBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ref_); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.Deposit.getDescriptor().getEnumTypes().get(0); + if (expiry_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, expiry_); } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; + if (!getTxHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, txHash_); } - - private final int value; - - private Status(int value) { - this.value = value; + if (createdTimestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, createdTimestamp_); } - - // @@protoc_insertion_point(enum_scope:vega.Deposit.Status) + if (withdrawnTimestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, withdrawnTimestamp_); + } + if (ext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getExt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Unique identifier for the deposit
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - } - /** - *
-     * Unique identifier for the deposit
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + if (!(obj instanceof io.vegaprotocol.vega.Vega.Withdrawal)) { + return super.equals(obj); } - } + io.vegaprotocol.vega.Vega.Withdrawal other = (io.vegaprotocol.vega.Vega.Withdrawal) obj; - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - *
-     * Status of the deposit
-     * 
- * - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * Status of the deposit
-     * 
- * - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.Deposit.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Deposit.Status result = io.vegaprotocol.vega.Vega.Deposit.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.Deposit.Status.UNRECOGNIZED : result; - } - - public static final int PARTY_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier of the user initiating the deposit
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier of the user initiating the deposit
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSET_FIELD_NUMBER = 4; - private volatile java.lang.Object asset_; - /** - *
-     * The Vega asset targeted by this deposit
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * The Vega asset targeted by this deposit
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 5; - private volatile java.lang.Object amount_; - /** - *
-     * The amount to be deposited
-     * 
- * - * string amount = 5 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } - } - /** - *
-     * The amount to be deposited
-     * 
- * - * string amount = 5 [json_name = "amount"]; - * @return The bytes for amount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TX_HASH_FIELD_NUMBER = 6; - private volatile java.lang.Object txHash_; - /** - *
-     * The hash of the transaction from the foreign chain
-     * 
- * - * string tx_hash = 6 [json_name = "txHash"]; - * @return The txHash. - */ - @java.lang.Override - public java.lang.String getTxHash() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHash_ = s; - return s; - } - } - /** - *
-     * The hash of the transaction from the foreign chain
-     * 
- * - * string tx_hash = 6 [json_name = "txHash"]; - * @return The bytes for txHash. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTxHashBytes() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREDITED_TIMESTAMP_FIELD_NUMBER = 7; - private long creditedTimestamp_; - /** - *
-     * Timestamp for when the Vega account was updated with the deposit
-     * 
- * - * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - * @return The creditedTimestamp. - */ - @java.lang.Override - public long getCreditedTimestamp() { - return creditedTimestamp_; - } - - public static final int CREATED_TIMESTAMP_FIELD_NUMBER = 8; - private long createdTimestamp_; - /** - *
-     * Timestamp for when the deposit was created on the Vega network
-     * 
- * - * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. - */ - @java.lang.Override - public long getCreatedTimestamp() { - return createdTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (status_ != io.vegaprotocol.vega.Vega.Deposit.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(2, status_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partyId_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); - } - if (!getAmountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, amount_); - } - if (!getTxHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, txHash_); - } - if (creditedTimestamp_ != 0L) { - output.writeInt64(7, creditedTimestamp_); - } - if (createdTimestamp_ != 0L) { - output.writeInt64(8, createdTimestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (status_ != io.vegaprotocol.vega.Vega.Deposit.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partyId_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); - } - if (!getAmountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, amount_); - } - if (!getTxHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, txHash_); - } - if (creditedTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, creditedTimestamp_); - } - if (createdTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, createdTimestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Deposit)) { - return super.equals(obj); - } - io.vegaprotocol.vega.Vega.Deposit other = (io.vegaprotocol.vega.Vega.Deposit) obj; - - if (!getId() - .equals(other.getId())) return false; - if (status_ != other.status_) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (getCreditedTimestamp() - != other.getCreditedTimestamp()) return false; - if (getCreatedTimestamp() - != other.getCreatedTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + if (!getId() + .equals(other.getId())) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (status_ != other.status_) return false; + if (!getRef() + .equals(other.getRef())) return false; + if (getExpiry() + != other.getExpiry()) return false; + if (!getTxHash() + .equals(other.getTxHash())) return false; + if (getCreatedTimestamp() + != other.getCreatedTimestamp()) return false; + if (getWithdrawnTimestamp() + != other.getWithdrawnTimestamp()) return false; + if (hasExt() != other.hasExt()) return false; + if (hasExt()) { + if (!getExt() + .equals(other.getExt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -30917,90 +29295,100 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + hash = (37 * hash) + EXPIRY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpiry()); hash = (37 * hash) + TX_HASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + CREDITED_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreditedTimestamp()); hash = (37 * hash) + CREATED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreatedTimestamp()); + hash = (37 * hash) + WITHDRAWN_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWithdrawnTimestamp()); + if (hasExt()) { + hash = (37 * hash) + EXT_FIELD_NUMBER; + hash = (53 * hash) + getExt().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Deposit parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Withdrawal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Deposit parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Deposit parseFrom( + public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -31013,7 +29401,7 @@ public static io.vegaprotocol.vega.Vega.Deposit parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Deposit prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Withdrawal prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -31030,29 +29418,29 @@ protected Builder newBuilderForType( } /** *
-     * A deposit on to the Vega network
+     * A withdrawal from the Vega network
      * 
* - * Protobuf type {@code vega.Deposit} + * Protobuf type {@code vega.Withdrawal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Deposit) - io.vegaprotocol.vega.Vega.DepositOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Withdrawal) + io.vegaprotocol.vega.Vega.WithdrawalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Deposit.class, io.vegaprotocol.vega.Vega.Deposit.Builder.class); + io.vegaprotocol.vega.Vega.Withdrawal.class, io.vegaprotocol.vega.Vega.Withdrawal.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Deposit.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Withdrawal.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -31072,37 +29460,47 @@ public Builder clear() { super.clear(); id_ = ""; - status_ = 0; - partyId_ = ""; + amount_ = 0L; + asset_ = ""; - amount_ = ""; + status_ = 0; - txHash_ = ""; + ref_ = ""; - creditedTimestamp_ = 0L; + expiry_ = 0L; + + txHash_ = ""; createdTimestamp_ = 0L; + withdrawnTimestamp_ = 0L; + + if (extBuilder_ == null) { + ext_ = null; + } else { + ext_ = null; + extBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Deposit_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit build() { - io.vegaprotocol.vega.Vega.Deposit result = buildPartial(); + public io.vegaprotocol.vega.Vega.Withdrawal build() { + io.vegaprotocol.vega.Vega.Withdrawal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -31110,16 +29508,23 @@ public io.vegaprotocol.vega.Vega.Deposit build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit buildPartial() { - io.vegaprotocol.vega.Vega.Deposit result = new io.vegaprotocol.vega.Vega.Deposit(this); + public io.vegaprotocol.vega.Vega.Withdrawal buildPartial() { + io.vegaprotocol.vega.Vega.Withdrawal result = new io.vegaprotocol.vega.Vega.Withdrawal(this); result.id_ = id_; - result.status_ = status_; result.partyId_ = partyId_; - result.asset_ = asset_; result.amount_ = amount_; + result.asset_ = asset_; + result.status_ = status_; + result.ref_ = ref_; + result.expiry_ = expiry_; result.txHash_ = txHash_; - result.creditedTimestamp_ = creditedTimestamp_; result.createdTimestamp_ = createdTimestamp_; + result.withdrawnTimestamp_ = withdrawnTimestamp_; + if (extBuilder_ == null) { + result.ext_ = ext_; + } else { + result.ext_ = extBuilder_.build(); + } onBuilt(); return result; } @@ -31158,45 +29563,54 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Deposit) { - return mergeFrom((io.vegaprotocol.vega.Vega.Deposit)other); + if (other instanceof io.vegaprotocol.vega.Vega.Withdrawal) { + return mergeFrom((io.vegaprotocol.vega.Vega.Withdrawal)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Deposit other) { - if (other == io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance()) return this; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Withdrawal other) { + if (other == io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } if (!other.getPartyId().isEmpty()) { partyId_ = other.partyId_; onChanged(); } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; onChanged(); } - if (!other.getAmount().isEmpty()) { - amount_ = other.amount_; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; onChanged(); } + if (other.getExpiry() != 0L) { + setExpiry(other.getExpiry()); + } if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; onChanged(); } - if (other.getCreditedTimestamp() != 0L) { - setCreditedTimestamp(other.getCreditedTimestamp()); - } if (other.getCreatedTimestamp() != 0L) { setCreatedTimestamp(other.getCreatedTimestamp()); } + if (other.getWithdrawnTimestamp() != 0L) { + setWithdrawnTimestamp(other.getWithdrawnTimestamp()); + } + if (other.hasExt()) { + mergeExt(other.getExt()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -31212,11 +29626,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Deposit parsedMessage = null; + io.vegaprotocol.vega.Vega.Withdrawal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Deposit) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Withdrawal) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -31229,7 +29643,7 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** *
-       * Unique identifier for the deposit
+       * Unique identifier for the withdrawal
        * 
* * string id = 1 [json_name = "id"]; @@ -31249,7 +29663,7 @@ public java.lang.String getId() { } /** *
-       * Unique identifier for the deposit
+       * Unique identifier for the withdrawal
        * 
* * string id = 1 [json_name = "id"]; @@ -31270,7 +29684,7 @@ public java.lang.String getId() { } /** *
-       * Unique identifier for the deposit
+       * Unique identifier for the withdrawal
        * 
* * string id = 1 [json_name = "id"]; @@ -31289,7 +29703,7 @@ public Builder setId( } /** *
-       * Unique identifier for the deposit
+       * Unique identifier for the withdrawal
        * 
* * string id = 1 [json_name = "id"]; @@ -31303,7 +29717,7 @@ public Builder clearId() { } /** *
-       * Unique identifier for the deposit
+       * Unique identifier for the withdrawal
        * 
* * string id = 1 [json_name = "id"]; @@ -31322,172 +29736,141 @@ public Builder setIdBytes( return this; } - private int status_ = 0; + private java.lang.Object partyId_ = ""; /** *
-       * Status of the deposit
+       * Unique party identifier of the user initiating the withdrawal
        * 
* - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The enum numeric value on the wire for status. + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. */ - @java.lang.Override public int getStatusValue() { - return status_; + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Status of the deposit
+       * Unique party identifier of the user initiating the withdrawal
        * 
* - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Status of the deposit
+       * Unique party identifier of the user initiating the withdrawal
        * 
* - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Deposit.Status result = io.vegaprotocol.vega.Vega.Deposit.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.Deposit.Status.UNRECOGNIZED : result; - } - /** - *
-       * Status of the deposit
-       * 
- * - * .vega.Deposit.Status status = 2 [json_name = "status"]; - * @param value The status to set. + * string party_id = 2 [json_name = "partyId"]; + * @param value The partyId to set. * @return This builder for chaining. */ - public Builder setStatus(io.vegaprotocol.vega.Vega.Deposit.Status value) { + public Builder setPartyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } + throw new NullPointerException(); + } - status_ = value.getNumber(); + partyId_ = value; onChanged(); return this; } /** *
-       * Status of the deposit
+       * Unique party identifier of the user initiating the withdrawal
        * 
* - * .vega.Deposit.Status status = 2 [json_name = "status"]; + * string party_id = 2 [json_name = "partyId"]; * @return This builder for chaining. */ - public Builder clearStatus() { + public Builder clearPartyId() { - status_ = 0; + partyId_ = getDefaultInstance().getPartyId(); onChanged(); return this; } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier of the user initiating the deposit
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier of the user initiating the deposit
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } /** *
-       * Party identifier of the user initiating the deposit
+       * Unique party identifier of the user initiating the withdrawal
        * 
* - * string party_id = 3 [json_name = "partyId"]; - * @param value The partyId to set. + * string party_id = 2 [json_name = "partyId"]; + * @param value The bytes for partyId to set. * @return This builder for chaining. */ - public Builder setPartyId( - java.lang.String value) { + public Builder setPartyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); partyId_ = value; onChanged(); return this; } + + private long amount_ ; /** *
-       * Party identifier of the user initiating the deposit
+       * The amount to be withdrawn
        * 
* - * string party_id = 3 [json_name = "partyId"]; + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + *
+       * The amount to be withdrawn
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @param value The amount to set. * @return This builder for chaining. */ - public Builder clearPartyId() { + public Builder setAmount(long value) { - partyId_ = getDefaultInstance().getPartyId(); + amount_ = value; onChanged(); return this; } /** *
-       * Party identifier of the user initiating the deposit
+       * The amount to be withdrawn
        * 
* - * string party_id = 3 [json_name = "partyId"]; - * @param value The bytes for partyId to set. + * uint64 amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearAmount() { - partyId_ = value; + amount_ = 0L; onChanged(); return this; } @@ -31495,7 +29878,7 @@ public Builder setPartyIdBytes( private java.lang.Object asset_ = ""; /** *
-       * The Vega asset targeted by this deposit
+       * The asset we want to withdraw funds from
        * 
* * string asset = 4 [json_name = "asset"]; @@ -31515,7 +29898,7 @@ public java.lang.String getAsset() { } /** *
-       * The Vega asset targeted by this deposit
+       * The asset we want to withdraw funds from
        * 
* * string asset = 4 [json_name = "asset"]; @@ -31536,7 +29919,7 @@ public java.lang.String getAsset() { } /** *
-       * The Vega asset targeted by this deposit
+       * The asset we want to withdraw funds from
        * 
* * string asset = 4 [json_name = "asset"]; @@ -31555,7 +29938,7 @@ public Builder setAsset( } /** *
-       * The Vega asset targeted by this deposit
+       * The asset we want to withdraw funds from
        * 
* * string asset = 4 [json_name = "asset"]; @@ -31569,7 +29952,7 @@ public Builder clearAsset() { } /** *
-       * The Vega asset targeted by this deposit
+       * The asset we want to withdraw funds from
        * 
* * string asset = 4 [json_name = "asset"]; @@ -31588,22 +29971,97 @@ public Builder setAssetBytes( return this; } - private java.lang.Object amount_ = ""; + private int status_ = 0; /** *
-       * The amount to be deposited
+       * The status of the withdrawal
        * 
* - * string amount = 5 [json_name = "amount"]; - * @return The amount. + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The enum numeric value on the wire for status. */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+       * The status of the withdrawal
+       * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * The status of the withdrawal
+       * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.Withdrawal.Status result = io.vegaprotocol.vega.Vega.Withdrawal.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.Withdrawal.Status.UNRECOGNIZED : result; + } + /** + *
+       * The status of the withdrawal
+       * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(io.vegaprotocol.vega.Vega.Withdrawal.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The status of the withdrawal
+       * 
+ * + * .vega.Withdrawal.Status status = 5 [json_name = "status"]; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ref_ = ""; + /** + *
+       * The reference which is used by the foreign chain
+       * to refer to this withdrawal
+       * 
+ * + * string ref = 6 [json_name = "ref"]; + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - amount_ = s; + ref_ = s; return s; } else { return (java.lang.String) ref; @@ -31611,20 +30069,21 @@ public java.lang.String getAmount() { } /** *
-       * The amount to be deposited
+       * The reference which is used by the foreign chain
+       * to refer to this withdrawal
        * 
* - * string amount = 5 [json_name = "amount"]; - * @return The bytes for amount. + * string ref = 6 [json_name = "ref"]; + * @return The bytes for ref. */ public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; + getRefBytes() { + java.lang.Object ref = ref_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - amount_ = b; + ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -31632,54 +30091,100 @@ public java.lang.String getAmount() { } /** *
-       * The amount to be deposited
+       * The reference which is used by the foreign chain
+       * to refer to this withdrawal
        * 
* - * string amount = 5 [json_name = "amount"]; - * @param value The amount to set. + * string ref = 6 [json_name = "ref"]; + * @param value The ref to set. * @return This builder for chaining. */ - public Builder setAmount( + public Builder setRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - amount_ = value; + ref_ = value; onChanged(); return this; } /** *
-       * The amount to be deposited
+       * The reference which is used by the foreign chain
+       * to refer to this withdrawal
        * 
* - * string amount = 5 [json_name = "amount"]; + * string ref = 6 [json_name = "ref"]; * @return This builder for chaining. */ - public Builder clearAmount() { + public Builder clearRef() { - amount_ = getDefaultInstance().getAmount(); + ref_ = getDefaultInstance().getRef(); onChanged(); return this; } /** *
-       * The amount to be deposited
+       * The reference which is used by the foreign chain
+       * to refer to this withdrawal
        * 
* - * string amount = 5 [json_name = "amount"]; - * @param value The bytes for amount to set. + * string ref = 6 [json_name = "ref"]; + * @param value The bytes for ref to set. * @return This builder for chaining. */ - public Builder setAmountBytes( + public Builder setRefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - amount_ = value; + ref_ = value; + onChanged(); + return this; + } + + private long expiry_ ; + /** + *
+       * The time until when the withdrawal is valid
+       * 
+ * + * int64 expiry = 7 [json_name = "expiry"]; + * @return The expiry. + */ + @java.lang.Override + public long getExpiry() { + return expiry_; + } + /** + *
+       * The time until when the withdrawal is valid
+       * 
+ * + * int64 expiry = 7 [json_name = "expiry"]; + * @param value The expiry to set. + * @return This builder for chaining. + */ + public Builder setExpiry(long value) { + + expiry_ = value; + onChanged(); + return this; + } + /** + *
+       * The time until when the withdrawal is valid
+       * 
+ * + * int64 expiry = 7 [json_name = "expiry"]; + * @return This builder for chaining. + */ + public Builder clearExpiry() { + + expiry_ = 0L; onChanged(); return this; } @@ -31687,10 +30192,10 @@ public Builder setAmountBytes( private java.lang.Object txHash_ = ""; /** *
-       * The hash of the transaction from the foreign chain
+       * The hash of the foreign chain for this transaction
        * 
* - * string tx_hash = 6 [json_name = "txHash"]; + * string tx_hash = 8 [json_name = "txHash"]; * @return The txHash. */ public java.lang.String getTxHash() { @@ -31707,10 +30212,10 @@ public java.lang.String getTxHash() { } /** *
-       * The hash of the transaction from the foreign chain
+       * The hash of the foreign chain for this transaction
        * 
* - * string tx_hash = 6 [json_name = "txHash"]; + * string tx_hash = 8 [json_name = "txHash"]; * @return The bytes for txHash. */ public com.google.protobuf.ByteString @@ -31728,10 +30233,10 @@ public java.lang.String getTxHash() { } /** *
-       * The hash of the transaction from the foreign chain
+       * The hash of the foreign chain for this transaction
        * 
* - * string tx_hash = 6 [json_name = "txHash"]; + * string tx_hash = 8 [json_name = "txHash"]; * @param value The txHash to set. * @return This builder for chaining. */ @@ -31747,10 +30252,10 @@ public Builder setTxHash( } /** *
-       * The hash of the transaction from the foreign chain
+       * The hash of the foreign chain for this transaction
        * 
* - * string tx_hash = 6 [json_name = "txHash"]; + * string tx_hash = 8 [json_name = "txHash"]; * @return This builder for chaining. */ public Builder clearTxHash() { @@ -31761,10 +30266,10 @@ public Builder clearTxHash() { } /** *
-       * The hash of the transaction from the foreign chain
+       * The hash of the foreign chain for this transaction
        * 
* - * string tx_hash = 6 [json_name = "txHash"]; + * string tx_hash = 8 [json_name = "txHash"]; * @param value The bytes for txHash to set. * @return This builder for chaining. */ @@ -31780,366 +30285,356 @@ public Builder setTxHashBytes( return this; } - private long creditedTimestamp_ ; + private long createdTimestamp_ ; /** *
-       * Timestamp for when the Vega account was updated with the deposit
+       * Timestamp for when the network started to process this withdrawal
        * 
* - * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - * @return The creditedTimestamp. + * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + * @return The createdTimestamp. */ @java.lang.Override - public long getCreditedTimestamp() { - return creditedTimestamp_; + public long getCreatedTimestamp() { + return createdTimestamp_; } /** *
-       * Timestamp for when the Vega account was updated with the deposit
+       * Timestamp for when the network started to process this withdrawal
        * 
* - * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; - * @param value The creditedTimestamp to set. + * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; + * @param value The createdTimestamp to set. * @return This builder for chaining. */ - public Builder setCreditedTimestamp(long value) { + public Builder setCreatedTimestamp(long value) { - creditedTimestamp_ = value; + createdTimestamp_ = value; onChanged(); return this; } /** *
-       * Timestamp for when the Vega account was updated with the deposit
+       * Timestamp for when the network started to process this withdrawal
        * 
* - * int64 credited_timestamp = 7 [json_name = "creditedTimestamp"]; + * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; * @return This builder for chaining. */ - public Builder clearCreditedTimestamp() { + public Builder clearCreatedTimestamp() { - creditedTimestamp_ = 0L; + createdTimestamp_ = 0L; onChanged(); return this; } - private long createdTimestamp_ ; + private long withdrawnTimestamp_ ; /** *
-       * Timestamp for when the deposit was created on the Vega network
+       * Timestamp for when the withdrawal was finalised by the network
        * 
* - * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. + * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + * @return The withdrawnTimestamp. */ @java.lang.Override - public long getCreatedTimestamp() { - return createdTimestamp_; + public long getWithdrawnTimestamp() { + return withdrawnTimestamp_; } /** *
-       * Timestamp for when the deposit was created on the Vega network
+       * Timestamp for when the withdrawal was finalised by the network
        * 
* - * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; - * @param value The createdTimestamp to set. + * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; + * @param value The withdrawnTimestamp to set. * @return This builder for chaining. */ - public Builder setCreatedTimestamp(long value) { + public Builder setWithdrawnTimestamp(long value) { - createdTimestamp_ = value; + withdrawnTimestamp_ = value; onChanged(); return this; } /** *
-       * Timestamp for when the deposit was created on the Vega network
+       * Timestamp for when the withdrawal was finalised by the network
        * 
* - * int64 created_timestamp = 8 [json_name = "createdTimestamp"]; + * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; * @return This builder for chaining. */ - public Builder clearCreatedTimestamp() { + public Builder clearWithdrawnTimestamp() { - createdTimestamp_ = 0L; + withdrawnTimestamp_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private io.vegaprotocol.vega.Vega.WithdrawExt ext_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder> extBuilder_; + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return Whether the ext field is set. + */ + public boolean hasExt() { + return extBuilder_ != null || ext_ != null; } - - - // @@protoc_insertion_point(builder_scope:vega.Deposit) - } - - // @@protoc_insertion_point(class_scope:vega.Deposit) - private static final io.vegaprotocol.vega.Vega.Deposit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Deposit(); - } - - public static io.vegaprotocol.vega.Vega.Deposit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Deposit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Deposit(input, extensionRegistry); + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * @return The ext. + */ + public io.vegaprotocol.vega.Vega.WithdrawExt getExt() { + if (extBuilder_ == null) { + return ext_ == null ? io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; + } else { + return extBuilder_.getMessage(); + } } - }; + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public Builder setExt(io.vegaprotocol.vega.Vega.WithdrawExt value) { + if (extBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ext_ = value; + onChanged(); + } else { + extBuilder_.setMessage(value); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public Builder setExt( + io.vegaprotocol.vega.Vega.WithdrawExt.Builder builderForValue) { + if (extBuilder_ == null) { + ext_ = builderForValue.build(); + onChanged(); + } else { + extBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + return this; + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public Builder mergeExt(io.vegaprotocol.vega.Vega.WithdrawExt value) { + if (extBuilder_ == null) { + if (ext_ != null) { + ext_ = + io.vegaprotocol.vega.Vega.WithdrawExt.newBuilder(ext_).mergeFrom(value).buildPartial(); + } else { + ext_ = value; + } + onChanged(); + } else { + extBuilder_.mergeFrom(value); + } - @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public Builder clearExt() { + if (extBuilder_ == null) { + ext_ = null; + onChanged(); + } else { + ext_ = null; + extBuilder_ = null; + } - } + return this; + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public io.vegaprotocol.vega.Vega.WithdrawExt.Builder getExtBuilder() { - public interface WithdrawalOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Withdrawal) - com.google.protobuf.MessageOrBuilder { + onChanged(); + return getExtFieldBuilder().getBuilder(); + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + public io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder() { + if (extBuilder_ != null) { + return extBuilder_.getMessageOrBuilder(); + } else { + return ext_ == null ? + io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; + } + } + /** + *
+       * Foreign chain specifics
+       * 
+ * + * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder> + getExtFieldBuilder() { + if (extBuilder_ == null) { + extBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder>( + getExt(), + getParentForChildren(), + isClean()); + ext_ = null; + } + return extBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     * Unique identifier for the withdrawal
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Unique identifier for the withdrawal
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - *
-     * Unique party identifier of the user initiating the withdrawal
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Unique party identifier of the user initiating the withdrawal
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - /** - *
-     * The amount to be withdrawn
-     * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - long getAmount(); + // @@protoc_insertion_point(builder_scope:vega.Withdrawal) + } - /** - *
-     * The asset we want to withdraw funds from
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * The asset we want to withdraw funds from
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - com.google.protobuf.ByteString - getAssetBytes(); + // @@protoc_insertion_point(class_scope:vega.Withdrawal) + private static final io.vegaprotocol.vega.Vega.Withdrawal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Withdrawal(); + } - /** - *
-     * The status of the withdrawal
-     * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - *
-     * The status of the withdrawal
-     * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The status. - */ - io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus(); + public static io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - *
-     * The reference which is used by the foreign chain
-     * to refer to this withdrawal
-     * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The ref. - */ - java.lang.String getRef(); - /** - *
-     * The reference which is used by the foreign chain
-     * to refer to this withdrawal
-     * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The bytes for ref. - */ - com.google.protobuf.ByteString - getRefBytes(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Withdrawal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Withdrawal(input, extensionRegistry); + } + }; - /** - *
-     * The time until when the withdrawal is valid
-     * 
- * - * int64 expiry = 7 [json_name = "expiry"]; - * @return The expiry. - */ - long getExpiry(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - *
-     * The hash of the foreign chain for this transaction
-     * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @return The txHash. - */ - java.lang.String getTxHash(); - /** - *
-     * The hash of the foreign chain for this transaction
-     * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @return The bytes for txHash. - */ - com.google.protobuf.ByteString - getTxHashBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - *
-     * Timestamp for when the network started to process this withdrawal
-     * 
- * - * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. - */ - long getCreatedTimestamp(); + @java.lang.Override + public io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - *
-     * Timestamp for when the withdrawal was finalised by the network
-     * 
- * - * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - * @return The withdrawnTimestamp. - */ - long getWithdrawnTimestamp(); + } + + public interface WithdrawExtOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.WithdrawExt) + com.google.protobuf.MessageOrBuilder { /** *
-     * Foreign chain specifics
+     * ERC20 withdrawal details
      * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return Whether the ext field is set. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return Whether the erc20 field is set. */ - boolean hasExt(); + boolean hasErc20(); /** *
-     * Foreign chain specifics
+     * ERC20 withdrawal details
      * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return The ext. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return The erc20. */ - io.vegaprotocol.vega.Vega.WithdrawExt getExt(); + io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20(); /** *
-     * Foreign chain specifics
+     * ERC20 withdrawal details
      * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder(); + io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder(); + + public io.vegaprotocol.vega.Vega.WithdrawExt.ExtCase getExtCase(); } /** *
-   * A withdrawal from the Vega network
+   * Withdrawal external details
    * 
* - * Protobuf type {@code vega.Withdrawal} + * Protobuf type {@code vega.WithdrawExt} */ - public static final class Withdrawal extends + public static final class WithdrawExt extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Withdrawal) - WithdrawalOrBuilder { + // @@protoc_insertion_point(message_implements:vega.WithdrawExt) + WithdrawExtOrBuilder { private static final long serialVersionUID = 0L; - // Use Withdrawal.newBuilder() to construct. - private Withdrawal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use WithdrawExt.newBuilder() to construct. + private WithdrawExt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Withdrawal() { - id_ = ""; - partyId_ = ""; - asset_ = ""; - status_ = 0; - ref_ = ""; - txHash_ = ""; + private WithdrawExt() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Withdrawal(); + return new WithdrawExt(); } @java.lang.Override @@ -32147,7 +30642,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Withdrawal( + private WithdrawExt( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -32166,72 +30661,17 @@ private Withdrawal( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 24: { - - amount_ = input.readUInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - ref_ = s; - break; - } - case 56: { - - expiry_ = input.readInt64(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - txHash_ = s; - break; - } - case 72: { - - createdTimestamp_ = input.readInt64(); - break; - } - case 80: { - - withdrawnTimestamp_ = input.readInt64(); - break; - } - case 90: { - io.vegaprotocol.vega.Vega.WithdrawExt.Builder subBuilder = null; - if (ext_ != null) { - subBuilder = ext_.toBuilder(); + io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder subBuilder = null; + if (extCase_ == 1) { + subBuilder = ((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_).toBuilder(); } - ext_ = input.readMessage(io.vegaprotocol.vega.Vega.WithdrawExt.parser(), extensionRegistry); + ext_ = + input.readMessage(io.vegaprotocol.vega.Vega.Erc20WithdrawExt.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(ext_); + subBuilder.mergeFrom((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); ext_ = subBuilder.buildPartial(); } - + extCase_ = 1; break; } default: { @@ -32255,536 +30695,97 @@ private Withdrawal( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Withdrawal.class, io.vegaprotocol.vega.Vega.Withdrawal.Builder.class); + io.vegaprotocol.vega.Vega.WithdrawExt.class, io.vegaprotocol.vega.Vega.WithdrawExt.Builder.class); } - /** - *
-     * The status of the withdrawal
-     * 
- * - * Protobuf enum {@code vega.Withdrawal.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default value, always invalid
-       * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - *
-       * The withdrawal is open and being processed by the network
-       * 
- * - * STATUS_OPEN = 1; - */ - STATUS_OPEN(1), - /** - *
-       * The withdrawal have been cancelled
-       * 
- * - * STATUS_CANCELLED = 2; - */ - STATUS_CANCELLED(2), - /** - *
-       * The withdrawal went through and is fully finalised, the funds are removed from the
-       * Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
-       * 
- * - * STATUS_FINALIZED = 3; - */ - STATUS_FINALIZED(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default value, always invalid
-       * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - *
-       * The withdrawal is open and being processed by the network
-       * 
- * - * STATUS_OPEN = 1; - */ - public static final int STATUS_OPEN_VALUE = 1; - /** - *
-       * The withdrawal have been cancelled
-       * 
- * - * STATUS_CANCELLED = 2; - */ - public static final int STATUS_CANCELLED_VALUE = 2; - /** - *
-       * The withdrawal went through and is fully finalised, the funds are removed from the
-       * Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
-       * 
- * - * STATUS_FINALIZED = 3; - */ - public static final int STATUS_FINALIZED_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; + private int extCase_ = 0; + private java.lang.Object ext_; + public enum ExtCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ERC20(1), + EXT_NOT_SET(0); + private final int value; + private ExtCase(int value) { + this.value = value; } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static Status valueOf(int value) { + public static ExtCase valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { + public static ExtCase forNumber(int value) { switch (value) { - case 0: return STATUS_UNSPECIFIED; - case 1: return STATUS_OPEN; - case 2: return STATUS_CANCELLED; - case 3: return STATUS_FINALIZED; + case 1: return ERC20; + case 0: return EXT_NOT_SET; default: return null; } } + public int getNumber() { + return this.value; + } + }; - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.Withdrawal.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:vega.Withdrawal.Status) - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Unique identifier for the withdrawal
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Unique identifier for the withdrawal
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object partyId_; - /** - *
-     * Unique party identifier of the user initiating the withdrawal
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Unique party identifier of the user initiating the withdrawal
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; - /** - *
-     * The amount to be withdrawn
-     * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public long getAmount() { - return amount_; - } - - public static final int ASSET_FIELD_NUMBER = 4; - private volatile java.lang.Object asset_; - /** - *
-     * The asset we want to withdraw funds from
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * The asset we want to withdraw funds from
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 5; - private int status_; - /** - *
-     * The status of the withdrawal
-     * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * The status of the withdrawal
-     * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Withdrawal.Status result = io.vegaprotocol.vega.Vega.Withdrawal.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.Withdrawal.Status.UNRECOGNIZED : result; - } - - public static final int REF_FIELD_NUMBER = 6; - private volatile java.lang.Object ref_; - /** - *
-     * The reference which is used by the foreign chain
-     * to refer to this withdrawal
-     * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The ref. - */ - @java.lang.Override - public java.lang.String getRef() { - java.lang.Object ref = ref_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ref_ = s; - return s; - } - } - /** - *
-     * The reference which is used by the foreign chain
-     * to refer to this withdrawal
-     * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The bytes for ref. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRefBytes() { - java.lang.Object ref = ref_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ref_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public ExtCase + getExtCase() { + return ExtCase.forNumber( + extCase_); } - public static final int EXPIRY_FIELD_NUMBER = 7; - private long expiry_; + public static final int ERC20_FIELD_NUMBER = 1; /** *
-     * The time until when the withdrawal is valid
+     * ERC20 withdrawal details
      * 
* - * int64 expiry = 7 [json_name = "expiry"]; - * @return The expiry. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return Whether the erc20 field is set. */ @java.lang.Override - public long getExpiry() { - return expiry_; + public boolean hasErc20() { + return extCase_ == 1; } - - public static final int TX_HASH_FIELD_NUMBER = 8; - private volatile java.lang.Object txHash_; /** *
-     * The hash of the foreign chain for this transaction
+     * ERC20 withdrawal details
      * 
* - * string tx_hash = 8 [json_name = "txHash"]; - * @return The txHash. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return The erc20. */ @java.lang.Override - public java.lang.String getTxHash() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHash_ = s; - return s; + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20() { + if (extCase_ == 1) { + return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; } + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } /** *
-     * The hash of the foreign chain for this transaction
+     * ERC20 withdrawal details
      * 
* - * string tx_hash = 8 [json_name = "txHash"]; - * @return The bytes for txHash. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ @java.lang.Override - public com.google.protobuf.ByteString - getTxHashBytes() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder() { + if (extCase_ == 1) { + return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; } - } - - public static final int CREATED_TIMESTAMP_FIELD_NUMBER = 9; - private long createdTimestamp_; - /** - *
-     * Timestamp for when the network started to process this withdrawal
-     * 
- * - * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. - */ - @java.lang.Override - public long getCreatedTimestamp() { - return createdTimestamp_; - } - - public static final int WITHDRAWN_TIMESTAMP_FIELD_NUMBER = 10; - private long withdrawnTimestamp_; - /** - *
-     * Timestamp for when the withdrawal was finalised by the network
-     * 
- * - * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - * @return The withdrawnTimestamp. - */ - @java.lang.Override - public long getWithdrawnTimestamp() { - return withdrawnTimestamp_; - } - - public static final int EXT_FIELD_NUMBER = 11; - private io.vegaprotocol.vega.Vega.WithdrawExt ext_; - /** - *
-     * Foreign chain specifics
-     * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return Whether the ext field is set. - */ - @java.lang.Override - public boolean hasExt() { - return ext_ != null; - } - /** - *
-     * Foreign chain specifics
-     * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return The ext. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExt getExt() { - return ext_ == null ? io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; - } - /** - *
-     * Foreign chain specifics
-     * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder() { - return getExt(); + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -32801,38 +30802,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); - } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); - } - if (status_ != io.vegaprotocol.vega.Vega.Withdrawal.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(5, status_); - } - if (!getRefBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ref_); - } - if (expiry_ != 0L) { - output.writeInt64(7, expiry_); - } - if (!getTxHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, txHash_); - } - if (createdTimestamp_ != 0L) { - output.writeInt64(9, createdTimestamp_); - } - if (withdrawnTimestamp_ != 0L) { - output.writeInt64(10, withdrawnTimestamp_); - } - if (ext_ != null) { - output.writeMessage(11, getExt()); + if (extCase_ == 1) { + output.writeMessage(1, (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); } unknownFields.writeTo(output); } @@ -32843,44 +30814,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); - } - if (status_ != io.vegaprotocol.vega.Vega.Withdrawal.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, status_); - } - if (!getRefBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ref_); - } - if (expiry_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, expiry_); - } - if (!getTxHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, txHash_); - } - if (createdTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, createdTimestamp_); - } - if (withdrawnTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, withdrawnTimestamp_); - } - if (ext_ != null) { + if (extCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getExt()); + .computeMessageSize(1, (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -32892,142 +30828,107 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Withdrawal)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.WithdrawExt)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Withdrawal other = (io.vegaprotocol.vega.Vega.Withdrawal) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (status_ != other.status_) return false; - if (!getRef() - .equals(other.getRef())) return false; - if (getExpiry() - != other.getExpiry()) return false; - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (getCreatedTimestamp() - != other.getCreatedTimestamp()) return false; - if (getWithdrawnTimestamp() - != other.getWithdrawnTimestamp()) return false; - if (hasExt() != other.hasExt()) return false; - if (hasExt()) { - if (!getExt() - .equals(other.getExt())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + io.vegaprotocol.vega.Vega.WithdrawExt other = (io.vegaprotocol.vega.Vega.WithdrawExt) obj; - @java.lang.Override + if (!getExtCase().equals(other.getExtCase())) return false; + switch (extCase_) { + case 1: + if (!getErc20() + .equals(other.getErc20())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + REF_FIELD_NUMBER; - hash = (53 * hash) + getRef().hashCode(); - hash = (37 * hash) + EXPIRY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpiry()); - hash = (37 * hash) + TX_HASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + CREATED_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreatedTimestamp()); - hash = (37 * hash) + WITHDRAWN_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWithdrawnTimestamp()); - if (hasExt()) { - hash = (37 * hash) + EXT_FIELD_NUMBER; - hash = (53 * hash) + getExt().hashCode(); + switch (extCase_) { + case 1: + hash = (37 * hash) + ERC20_FIELD_NUMBER; + hash = (53 * hash) + getErc20().hashCode(); + break; + case 0: + default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.WithdrawExt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( + public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -33040,7 +30941,7 @@ public static io.vegaprotocol.vega.Vega.Withdrawal parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Withdrawal prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.WithdrawExt prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -33057,29 +30958,29 @@ protected Builder newBuilderForType( } /** *
-     * A withdrawal from the Vega network
+     * Withdrawal external details
      * 
* - * Protobuf type {@code vega.Withdrawal} + * Protobuf type {@code vega.WithdrawExt} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Withdrawal) - io.vegaprotocol.vega.Vega.WithdrawalOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.WithdrawExt) + io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Withdrawal.class, io.vegaprotocol.vega.Vega.Withdrawal.Builder.class); + io.vegaprotocol.vega.Vega.WithdrawExt.class, io.vegaprotocol.vega.Vega.WithdrawExt.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Withdrawal.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.WithdrawExt.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -33097,49 +30998,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - id_ = ""; - - partyId_ = ""; - - amount_ = 0L; - - asset_ = ""; - - status_ = 0; - - ref_ = ""; - - expiry_ = 0L; - - txHash_ = ""; - - createdTimestamp_ = 0L; - - withdrawnTimestamp_ = 0L; - - if (extBuilder_ == null) { - ext_ = null; - } else { - ext_ = null; - extBuilder_ = null; - } + extCase_ = 0; + ext_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Withdrawal_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal build() { - io.vegaprotocol.vega.Vega.Withdrawal result = buildPartial(); + public io.vegaprotocol.vega.Vega.WithdrawExt build() { + io.vegaprotocol.vega.Vega.WithdrawExt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -33147,23 +31024,16 @@ public io.vegaprotocol.vega.Vega.Withdrawal build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal buildPartial() { - io.vegaprotocol.vega.Vega.Withdrawal result = new io.vegaprotocol.vega.Vega.Withdrawal(this); - result.id_ = id_; - result.partyId_ = partyId_; - result.amount_ = amount_; - result.asset_ = asset_; - result.status_ = status_; - result.ref_ = ref_; - result.expiry_ = expiry_; - result.txHash_ = txHash_; - result.createdTimestamp_ = createdTimestamp_; - result.withdrawnTimestamp_ = withdrawnTimestamp_; - if (extBuilder_ == null) { - result.ext_ = ext_; - } else { - result.ext_ = extBuilder_.build(); + public io.vegaprotocol.vega.Vega.WithdrawExt buildPartial() { + io.vegaprotocol.vega.Vega.WithdrawExt result = new io.vegaprotocol.vega.Vega.WithdrawExt(this); + if (extCase_ == 1) { + if (erc20Builder_ == null) { + result.ext_ = ext_; + } else { + result.ext_ = erc20Builder_.build(); + } } + result.extCase_ = extCase_; onBuilt(); return result; } @@ -33202,53 +31072,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Withdrawal) { - return mergeFrom((io.vegaprotocol.vega.Vega.Withdrawal)other); + if (other instanceof io.vegaprotocol.vega.Vega.WithdrawExt) { + return mergeFrom((io.vegaprotocol.vega.Vega.WithdrawExt)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Withdrawal other) { - if (other == io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getRef().isEmpty()) { - ref_ = other.ref_; - onChanged(); - } - if (other.getExpiry() != 0L) { - setExpiry(other.getExpiry()); - } - if (!other.getTxHash().isEmpty()) { - txHash_ = other.txHash_; - onChanged(); - } - if (other.getCreatedTimestamp() != 0L) { - setCreatedTimestamp(other.getCreatedTimestamp()); - } - if (other.getWithdrawnTimestamp() != 0L) { - setWithdrawnTimestamp(other.getWithdrawnTimestamp()); - } - if (other.hasExt()) { - mergeExt(other.getExt()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.WithdrawExt other) { + if (other == io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance()) return this; + switch (other.getExtCase()) { + case ERC20: { + mergeErc20(other.getErc20()); + break; + } + case EXT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -33265,11 +31106,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Withdrawal parsedMessage = null; + io.vegaprotocol.vega.Vega.WithdrawExt parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Withdrawal) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.WithdrawExt) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -33278,891 +31119,809 @@ public Builder mergeFrom( } return this; } - - private java.lang.Object id_ = ""; - /** - *
-       * Unique identifier for the withdrawal
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique identifier for the withdrawal
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + private int extCase_ = 0; + private java.lang.Object ext_; + public ExtCase + getExtCase() { + return ExtCase.forNumber( + extCase_); } - /** - *
-       * Unique identifier for the withdrawal
-       * 
- * - * string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; + public Builder clearExt() { + extCase_ = 0; + ext_ = null; onChanged(); return this; } - /** - *
-       * Unique identifier for the withdrawal
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder> erc20Builder_; /** *
-       * Unique identifier for the withdrawal
+       * ERC20 withdrawal details
        * 
* - * string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. - * @return This builder for chaining. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return Whether the erc20 field is set. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; + @java.lang.Override + public boolean hasErc20() { + return extCase_ == 1; } - - private java.lang.Object partyId_ = ""; /** *
-       * Unique party identifier of the user initiating the withdrawal
+       * ERC20 withdrawal details
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * @return The erc20. */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; + @java.lang.Override + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20() { + if (erc20Builder_ == null) { + if (extCase_ == 1) { + return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; + } + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (extCase_ == 1) { + return erc20Builder_.getMessage(); + } + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } } /** *
-       * Unique party identifier of the user initiating the withdrawal
+       * ERC20 withdrawal details
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; + public Builder setErc20(io.vegaprotocol.vega.Vega.Erc20WithdrawExt value) { + if (erc20Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ext_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + erc20Builder_.setMessage(value); } - } - /** - *
-       * Unique party identifier of the user initiating the withdrawal
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); + extCase_ = 1; return this; } /** *
-       * Unique party identifier of the user initiating the withdrawal
+       * ERC20 withdrawal details
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return This builder for chaining. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); + public Builder setErc20( + io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder builderForValue) { + if (erc20Builder_ == null) { + ext_ = builderForValue.build(); + onChanged(); + } else { + erc20Builder_.setMessage(builderForValue.build()); + } + extCase_ = 1; return this; } /** *
-       * Unique party identifier of the user initiating the withdrawal
+       * ERC20 withdrawal details
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); + public Builder mergeErc20(io.vegaprotocol.vega.Vega.Erc20WithdrawExt value) { + if (erc20Builder_ == null) { + if (extCase_ == 1 && + ext_ != io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance()) { + ext_ = io.vegaprotocol.vega.Vega.Erc20WithdrawExt.newBuilder((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_) + .mergeFrom(value).buildPartial(); + } else { + ext_ = value; + } + onChanged(); + } else { + if (extCase_ == 1) { + erc20Builder_.mergeFrom(value); + } + erc20Builder_.setMessage(value); + } + extCase_ = 1; return this; } - - private long amount_ ; - /** - *
-       * The amount to be withdrawn
-       * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public long getAmount() { - return amount_; - } /** *
-       * The amount to be withdrawn
+       * ERC20 withdrawal details
        * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @param value The amount to set. - * @return This builder for chaining. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); + public Builder clearErc20() { + if (erc20Builder_ == null) { + if (extCase_ == 1) { + extCase_ = 0; + ext_ = null; + onChanged(); + } + } else { + if (extCase_ == 1) { + extCase_ = 0; + ext_ = null; + } + erc20Builder_.clear(); + } return this; } /** *
-       * The amount to be withdrawn
+       * ERC20 withdrawal details
        * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @return This builder for chaining. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder getErc20Builder() { + return getErc20FieldBuilder().getBuilder(); } - - private java.lang.Object asset_ = ""; /** *
-       * The asset we want to withdraw funds from
+       * ERC20 withdrawal details
        * 
* - * string asset = 4 [json_name = "asset"]; - * @return The asset. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; + @java.lang.Override + public io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder() { + if ((extCase_ == 1) && (erc20Builder_ != null)) { + return erc20Builder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + if (extCase_ == 1) { + return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; + } + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } } /** *
-       * The asset we want to withdraw funds from
+       * ERC20 withdrawal details
        * 
* - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder> + getErc20FieldBuilder() { + if (erc20Builder_ == null) { + if (!(extCase_ == 1)) { + ext_ = io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); + } + erc20Builder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder>( + (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_, + getParentForChildren(), + isClean()); + ext_ = null; } + extCase_ = 1; + onChanged();; + return erc20Builder_; } - /** - *
-       * The asset we want to withdraw funds from
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); - return this; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - *
-       * The asset we want to withdraw funds from
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * The asset we want to withdraw funds from
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - asset_ = value; - onChanged(); - return this; - } - private int status_ = 0; - /** - *
-       * The status of the withdrawal
-       * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-       * The status of the withdrawal
-       * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { + // @@protoc_insertion_point(builder_scope:vega.WithdrawExt) + } - status_ = value; - onChanged(); - return this; - } - /** - *
-       * The status of the withdrawal
-       * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return The status. - */ + // @@protoc_insertion_point(class_scope:vega.WithdrawExt) + private static final io.vegaprotocol.vega.Vega.WithdrawExt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.WithdrawExt(); + } + + public static io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Withdrawal.Status result = io.vegaprotocol.vega.Vega.Withdrawal.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.Withdrawal.Status.UNRECOGNIZED : result; + public WithdrawExt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WithdrawExt(input, extensionRegistry); } - /** - *
-       * The status of the withdrawal
-       * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(io.vegaprotocol.vega.Vega.Withdrawal.Status value) { - if (value == null) { - throw new NullPointerException(); - } + }; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The status of the withdrawal
-       * 
- * - * .vega.Withdrawal.Status status = 5 [json_name = "status"]; - * @return This builder for chaining. - */ - public Builder clearStatus() { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - status_ = 0; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private java.lang.Object ref_ = ""; - /** - *
-       * The reference which is used by the foreign chain
-       * to refer to this withdrawal
-       * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The ref. - */ - public java.lang.String getRef() { - java.lang.Object ref = ref_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ref_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The reference which is used by the foreign chain
-       * to refer to this withdrawal
-       * 
- * - * string ref = 6 [json_name = "ref"]; - * @return The bytes for ref. - */ - public com.google.protobuf.ByteString - getRefBytes() { - java.lang.Object ref = ref_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ref_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The reference which is used by the foreign chain
-       * to refer to this withdrawal
-       * 
- * - * string ref = 6 [json_name = "ref"]; - * @param value The ref to set. - * @return This builder for chaining. - */ - public Builder setRef( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); } - ref_ = value; - onChanged(); - return this; - } - /** - *
-       * The reference which is used by the foreign chain
-       * to refer to this withdrawal
-       * 
- * - * string ref = 6 [json_name = "ref"]; - * @return This builder for chaining. - */ - public Builder clearRef() { + public interface Erc20WithdrawExtOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Erc20WithdrawExt) + com.google.protobuf.MessageOrBuilder { - ref_ = getDefaultInstance().getRef(); - onChanged(); - return this; - } - /** - *
-       * The reference which is used by the foreign chain
-       * to refer to this withdrawal
-       * 
- * - * string ref = 6 [json_name = "ref"]; - * @param value The bytes for ref to set. - * @return This builder for chaining. - */ - public Builder setRefBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + /** + *
+     * The address into which the bridge will release the funds
+     * 
+ * + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The receiverAddress. + */ + java.lang.String getReceiverAddress(); + /** + *
+     * The address into which the bridge will release the funds
+     * 
+ * + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The bytes for receiverAddress. + */ + com.google.protobuf.ByteString + getReceiverAddressBytes(); } - checkByteStringIsUtf8(value); + /** + *
+   * An extension of data required for the withdraw submissions
+   * 
+ * + * Protobuf type {@code vega.Erc20WithdrawExt} + */ + public static final class Erc20WithdrawExt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.Erc20WithdrawExt) + Erc20WithdrawExtOrBuilder { + private static final long serialVersionUID = 0L; + // Use Erc20WithdrawExt.newBuilder() to construct. + private Erc20WithdrawExt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Erc20WithdrawExt() { + receiverAddress_ = ""; + } - ref_ = value; - onChanged(); - return this; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Erc20WithdrawExt(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Erc20WithdrawExt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - private long expiry_ ; - /** - *
-       * The time until when the withdrawal is valid
-       * 
- * - * int64 expiry = 7 [json_name = "expiry"]; - * @return The expiry. - */ - @java.lang.Override - public long getExpiry() { - return expiry_; + receiverAddress_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - *
-       * The time until when the withdrawal is valid
-       * 
- * - * int64 expiry = 7 [json_name = "expiry"]; - * @param value The expiry to set. - * @return This builder for chaining. - */ - public Builder setExpiry(long value) { + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; + } - expiry_ = value; - onChanged(); - return this; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.Erc20WithdrawExt.class, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder.class); + } + + public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object receiverAddress_; + /** + *
+     * The address into which the bridge will release the funds
+     * 
+ * + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The receiverAddress. + */ + @java.lang.Override + public java.lang.String getReceiverAddress() { + java.lang.Object ref = receiverAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + receiverAddress_ = s; + return s; } - /** - *
-       * The time until when the withdrawal is valid
-       * 
- * - * int64 expiry = 7 [json_name = "expiry"]; - * @return This builder for chaining. - */ - public Builder clearExpiry() { + } + /** + *
+     * The address into which the bridge will release the funds
+     * 
+ * + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The bytes for receiverAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReceiverAddressBytes() { + java.lang.Object ref = receiverAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiverAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - expiry_ = 0L; - onChanged(); - return this; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getReceiverAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, receiverAddress_); } + unknownFields.writeTo(output); + } - private java.lang.Object txHash_ = ""; - /** - *
-       * The hash of the foreign chain for this transaction
-       * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @return The txHash. - */ - public java.lang.String getTxHash() { - java.lang.Object ref = txHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getReceiverAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, receiverAddress_); } - /** - *
-       * The hash of the foreign chain for this transaction
-       * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @return The bytes for txHash. - */ - public com.google.protobuf.ByteString - getTxHashBytes() { - java.lang.Object ref = txHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The hash of the foreign chain for this transaction
-       * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @param value The txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - txHash_ = value; - onChanged(); - return this; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * The hash of the foreign chain for this transaction
-       * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @return This builder for chaining. - */ - public Builder clearTxHash() { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Erc20WithdrawExt)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.Erc20WithdrawExt other = (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) obj; - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; + if (!getReceiverAddress() + .equals(other.getReceiverAddress())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - *
-       * The hash of the foreign chain for this transaction
-       * 
- * - * string tx_hash = 8 [json_name = "txHash"]; - * @param value The bytes for txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getReceiverAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - txHash_ = value; - onChanged(); - return this; + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Erc20WithdrawExt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An extension of data required for the withdraw submissions
+     * 
+ * + * Protobuf type {@code vega.Erc20WithdrawExt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.Erc20WithdrawExt) + io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; } - private long createdTimestamp_ ; - /** - *
-       * Timestamp for when the network started to process this withdrawal
-       * 
- * - * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - * @return The createdTimestamp. - */ @java.lang.Override - public long getCreatedTimestamp() { - return createdTimestamp_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.Erc20WithdrawExt.class, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder.class); } - /** - *
-       * Timestamp for when the network started to process this withdrawal
-       * 
- * - * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - * @param value The createdTimestamp to set. - * @return This builder for chaining. - */ - public Builder setCreatedTimestamp(long value) { - createdTimestamp_ = value; - onChanged(); - return this; + // Construct using io.vegaprotocol.vega.Vega.Erc20WithdrawExt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * Timestamp for when the network started to process this withdrawal
-       * 
- * - * int64 created_timestamp = 9 [json_name = "createdTimestamp"]; - * @return This builder for chaining. - */ - public Builder clearCreatedTimestamp() { - createdTimestamp_ = 0L; - onChanged(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + receiverAddress_ = ""; + return this; } - private long withdrawnTimestamp_ ; - /** - *
-       * Timestamp for when the withdrawal was finalised by the network
-       * 
- * - * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - * @return The withdrawnTimestamp. - */ @java.lang.Override - public long getWithdrawnTimestamp() { - return withdrawnTimestamp_; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; } - /** - *
-       * Timestamp for when the withdrawal was finalised by the network
-       * 
- * - * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - * @param value The withdrawnTimestamp to set. - * @return This builder for chaining. - */ - public Builder setWithdrawnTimestamp(long value) { - withdrawnTimestamp_ = value; - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } - /** - *
-       * Timestamp for when the withdrawal was finalised by the network
-       * 
- * - * int64 withdrawn_timestamp = 10 [json_name = "withdrawnTimestamp"]; - * @return This builder for chaining. - */ - public Builder clearWithdrawnTimestamp() { - withdrawnTimestamp_ = 0L; - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt build() { + io.vegaprotocol.vega.Vega.Erc20WithdrawExt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - private io.vegaprotocol.vega.Vega.WithdrawExt ext_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder> extBuilder_; - /** - *
-       * Foreign chain specifics
-       * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return Whether the ext field is set. - */ - public boolean hasExt() { - return extBuilder_ != null || ext_ != null; + @java.lang.Override + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt buildPartial() { + io.vegaprotocol.vega.Vega.Erc20WithdrawExt result = new io.vegaprotocol.vega.Vega.Erc20WithdrawExt(this); + result.receiverAddress_ = receiverAddress_; + onBuilt(); + return result; } - /** - *
-       * Foreign chain specifics
-       * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - * @return The ext. - */ - public io.vegaprotocol.vega.Vega.WithdrawExt getExt() { - if (extBuilder_ == null) { - return ext_ == null ? io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.Erc20WithdrawExt) { + return mergeFrom((io.vegaprotocol.vega.Vega.Erc20WithdrawExt)other); } else { - return extBuilder_.getMessage(); + super.mergeFrom(other); + return this; } } - /** - *
-       * Foreign chain specifics
-       * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - */ - public Builder setExt(io.vegaprotocol.vega.Vega.WithdrawExt value) { - if (extBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ext_ = value; + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Erc20WithdrawExt other) { + if (other == io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance()) return this; + if (!other.getReceiverAddress().isEmpty()) { + receiverAddress_ = other.receiverAddress_; onChanged(); - } else { - extBuilder_.setMessage(value); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.Erc20WithdrawExt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + + private java.lang.Object receiverAddress_ = ""; /** *
-       * Foreign chain specifics
+       * The address into which the bridge will release the funds
        * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The receiverAddress. */ - public Builder setExt( - io.vegaprotocol.vega.Vega.WithdrawExt.Builder builderForValue) { - if (extBuilder_ == null) { - ext_ = builderForValue.build(); - onChanged(); + public java.lang.String getReceiverAddress() { + java.lang.Object ref = receiverAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + receiverAddress_ = s; + return s; } else { - extBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - - return this; } /** *
-       * Foreign chain specifics
+       * The address into which the bridge will release the funds
        * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return The bytes for receiverAddress. */ - public Builder mergeExt(io.vegaprotocol.vega.Vega.WithdrawExt value) { - if (extBuilder_ == null) { - if (ext_ != null) { - ext_ = - io.vegaprotocol.vega.Vega.WithdrawExt.newBuilder(ext_).mergeFrom(value).buildPartial(); - } else { - ext_ = value; - } - onChanged(); + public com.google.protobuf.ByteString + getReceiverAddressBytes() { + java.lang.Object ref = receiverAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiverAddress_ = b; + return b; } else { - extBuilder_.mergeFrom(value); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** *
-       * Foreign chain specifics
+       * The address into which the bridge will release the funds
        * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @param value The receiverAddress to set. + * @return This builder for chaining. */ - public Builder clearExt() { - if (extBuilder_ == null) { - ext_ = null; - onChanged(); - } else { - ext_ = null; - extBuilder_ = null; - } + public Builder setReceiverAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + receiverAddress_ = value; + onChanged(); return this; } /** *
-       * Foreign chain specifics
+       * The address into which the bridge will release the funds
        * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.WithdrawExt.Builder getExtBuilder() { + public Builder clearReceiverAddress() { + receiverAddress_ = getDefaultInstance().getReceiverAddress(); onChanged(); - return getExtFieldBuilder().getBuilder(); + return this; } /** *
-       * Foreign chain specifics
+       * The address into which the bridge will release the funds
        * 
* - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; + * string receiver_address = 1 [json_name = "receiverAddress"]; + * @param value The bytes for receiverAddress to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder getExtOrBuilder() { - if (extBuilder_ != null) { - return extBuilder_.getMessageOrBuilder(); - } else { - return ext_ == null ? - io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance() : ext_; - } - } - /** - *
-       * Foreign chain specifics
-       * 
- * - * .vega.WithdrawExt ext = 11 [json_name = "ext"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder> - getExtFieldBuilder() { - if (extBuilder_ == null) { - extBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.WithdrawExt, io.vegaprotocol.vega.Vega.WithdrawExt.Builder, io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder>( - getExt(), - getParentForChildren(), - isClean()); - ext_ = null; - } - return extBuilder_; + public Builder setReceiverAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + receiverAddress_ = value; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -34177,103 +31936,192 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Withdrawal) + // @@protoc_insertion_point(builder_scope:vega.Erc20WithdrawExt) } - // @@protoc_insertion_point(class_scope:vega.Withdrawal) - private static final io.vegaprotocol.vega.Vega.Withdrawal DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.Erc20WithdrawExt) + private static final io.vegaprotocol.vega.Vega.Erc20WithdrawExt DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Withdrawal(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Erc20WithdrawExt(); } - public static io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Withdrawal parsePartialFrom( + public Erc20WithdrawExt parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Withdrawal(input, extensionRegistry); + return new Erc20WithdrawExt(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface WithdrawExtOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.WithdrawExt) + public interface AccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Account) com.google.protobuf.MessageOrBuilder { /** *
-     * ERC20 withdrawal details
+     * Unique account identifier (used internally by Vega)
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return Whether the erc20 field is set. + * string id = 1 [json_name = "id"]; + * @return The id. */ - boolean hasErc20(); + java.lang.String getId(); /** *
-     * ERC20 withdrawal details
+     * Unique account identifier (used internally by Vega)
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return The erc20. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ - io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20(); + com.google.protobuf.ByteString + getIdBytes(); + /** *
-     * ERC20 withdrawal details
+     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+     * most commonly seen during liquidation of distressed trading positions
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string owner = 2 [json_name = "owner"]; + * @return The owner. */ - io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder(); + java.lang.String getOwner(); + /** + *
+     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+     * most commonly seen during liquidation of distressed trading positions
+     * 
+ * + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + com.google.protobuf.ByteString + getOwnerBytes(); - public io.vegaprotocol.vega.Vega.WithdrawExt.ExtCase getExtCase(); + /** + *
+     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * and importantly balances cannot be negative
+     * 
+ * + * uint64 balance = 3 [json_name = "balance"]; + * @return The balance. + */ + long getBalance(); + + /** + *
+     * Asset identifier for the account
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + *
+     * Asset identifier for the account
+     * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + *
+     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return The marketId. + */ + java.lang.String getMarketId(); + /** + *
+     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + com.google.protobuf.ByteString + getMarketIdBytes(); + + /** + *
+     * The account type related to this account
+     * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * The account type related to this account
+     * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The type. + */ + io.vegaprotocol.vega.Vega.AccountType getType(); } /** *
-   * Withdrawal external details
+   * Represents an account for an asset on Vega for a particular owner or party
    * 
* - * Protobuf type {@code vega.WithdrawExt} + * Protobuf type {@code vega.Account} */ - public static final class WithdrawExt extends + public static final class Account extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.WithdrawExt) - WithdrawExtOrBuilder { + // @@protoc_insertion_point(message_implements:vega.Account) + AccountOrBuilder { private static final long serialVersionUID = 0L; - // Use WithdrawExt.newBuilder() to construct. - private WithdrawExt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Account.newBuilder() to construct. + private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WithdrawExt() { + private Account() { + id_ = ""; + owner_ = ""; + asset_ = ""; + marketId_ = ""; + type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new WithdrawExt(); + return new Account(); } @java.lang.Override @@ -34281,7 +32129,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private WithdrawExt( + private Account( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -34300,17 +32148,38 @@ private WithdrawExt( done = true; break; case 10: { - io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder subBuilder = null; - if (extCase_ == 1) { - subBuilder = ((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_).toBuilder(); - } - ext_ = - input.readMessage(io.vegaprotocol.vega.Vega.Erc20WithdrawExt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); - ext_ = subBuilder.buildPartial(); - } - extCase_ = 1; + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + owner_ = s; + break; + } + case 24: { + + balance_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + marketId_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + type_ = rawValue; break; } default: { @@ -34334,97 +32203,245 @@ private WithdrawExt( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.WithdrawExt.class, io.vegaprotocol.vega.Vega.WithdrawExt.Builder.class); + io.vegaprotocol.vega.Vega.Account.class, io.vegaprotocol.vega.Vega.Account.Builder.class); } - private int extCase_ = 0; - private java.lang.Object ext_; - public enum ExtCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ERC20(1), - EXT_NOT_SET(0); - private final int value; - private ExtCase(int value) { - this.value = value; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Unique account identifier (used internally by Vega)
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExtCase valueOf(int value) { - return forNumber(value); + } + /** + *
+     * Unique account identifier (used internally by Vega)
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - public static ExtCase forNumber(int value) { - switch (value) { - case 1: return ERC20; - case 0: return EXT_NOT_SET; - default: return null; - } + public static final int OWNER_FIELD_NUMBER = 2; + private volatile java.lang.Object owner_; + /** + *
+     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+     * most commonly seen during liquidation of distressed trading positions
+     * 
+ * + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + @java.lang.Override + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; } - public int getNumber() { - return this.value; + } + /** + *
+     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+     * most commonly seen during liquidation of distressed trading positions
+     * 
+ * + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - }; + } - public ExtCase - getExtCase() { - return ExtCase.forNumber( - extCase_); + public static final int BALANCE_FIELD_NUMBER = 3; + private long balance_; + /** + *
+     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * and importantly balances cannot be negative
+     * 
+ * + * uint64 balance = 3 [json_name = "balance"]; + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; } - public static final int ERC20_FIELD_NUMBER = 1; + public static final int ASSET_FIELD_NUMBER = 4; + private volatile java.lang.Object asset_; /** *
-     * ERC20 withdrawal details
+     * Asset identifier for the account
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return Whether the erc20 field is set. + * string asset = 4 [json_name = "asset"]; + * @return The asset. */ @java.lang.Override - public boolean hasErc20() { - return extCase_ == 1; + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } } /** *
-     * ERC20 withdrawal details
+     * Asset identifier for the account
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return The erc20. + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20() { - if (extCase_ == 1) { - return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); } + + public static final int MARKET_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object marketId_; /** *
-     * ERC20 withdrawal details
+     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
      * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string market_id = 5 [json_name = "marketId"]; + * @return The marketId. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder() { - if (extCase_ == 1) { - return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; } - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); + } + /** + *
+     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_; + /** + *
+     * The account type related to this account
+     * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The account type related to this account
+     * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.AccountType getType() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); + return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -34441,8 +32458,23 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (extCase_ == 1) { - output.writeMessage(1, (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getOwnerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); + } + if (balance_ != 0L) { + output.writeUInt64(3, balance_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); + } + if (!getMarketIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_); + } + if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, type_); } unknownFields.writeTo(output); } @@ -34453,9 +32485,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (extCase_ == 1) { + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getOwnerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); + } + if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_); + .computeUInt64Size(3, balance_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); + } + if (!getMarketIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_); + } + if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -34467,20 +32515,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.WithdrawExt)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Account)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.WithdrawExt other = (io.vegaprotocol.vega.Vega.WithdrawExt) obj; + io.vegaprotocol.vega.Vega.Account other = (io.vegaprotocol.vega.Vega.Account) obj; - if (!getExtCase().equals(other.getExtCase())) return false; - switch (extCase_) { - case 1: - if (!getErc20() - .equals(other.getErc20())) return false; - break; - case 0: - default: - } + if (!getId() + .equals(other.getId())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; + if (getBalance() + != other.getBalance()) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getMarketId() + .equals(other.getMarketId())) return false; + if (type_ != other.type_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -34492,82 +32542,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (extCase_) { - case 1: - hash = (37 * hash) + ERC20_FIELD_NUMBER; - hash = (53 * hash) + getErc20().hashCode(); - break; - case 0: - default: - } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBalance()); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getMarketId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Account parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Account parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Account parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.Account parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -34580,7 +32635,7 @@ public static io.vegaprotocol.vega.Vega.WithdrawExt parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.WithdrawExt prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Account prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -34597,29 +32652,29 @@ protected Builder newBuilderForType( } /** *
-     * Withdrawal external details
+     * Represents an account for an asset on Vega for a particular owner or party
      * 
* - * Protobuf type {@code vega.WithdrawExt} + * Protobuf type {@code vega.Account} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.WithdrawExt) - io.vegaprotocol.vega.Vega.WithdrawExtOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Account) + io.vegaprotocol.vega.Vega.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.WithdrawExt.class, io.vegaprotocol.vega.Vega.WithdrawExt.Builder.class); + io.vegaprotocol.vega.Vega.Account.class, io.vegaprotocol.vega.Vega.Account.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.WithdrawExt.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Account.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -34637,25 +32692,35 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - extCase_ = 0; - ext_ = null; + id_ = ""; + + owner_ = ""; + + balance_ = 0L; + + asset_ = ""; + + marketId_ = ""; + + type_ = 0; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Account getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Account.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExt build() { - io.vegaprotocol.vega.Vega.WithdrawExt result = buildPartial(); + public io.vegaprotocol.vega.Vega.Account build() { + io.vegaprotocol.vega.Vega.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -34663,16 +32728,14 @@ public io.vegaprotocol.vega.Vega.WithdrawExt build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExt buildPartial() { - io.vegaprotocol.vega.Vega.WithdrawExt result = new io.vegaprotocol.vega.Vega.WithdrawExt(this); - if (extCase_ == 1) { - if (erc20Builder_ == null) { - result.ext_ = ext_; - } else { - result.ext_ = erc20Builder_.build(); - } - } - result.extCase_ = extCase_; + public io.vegaprotocol.vega.Vega.Account buildPartial() { + io.vegaprotocol.vega.Vega.Account result = new io.vegaprotocol.vega.Vega.Account(this); + result.id_ = id_; + result.owner_ = owner_; + result.balance_ = balance_; + result.asset_ = asset_; + result.marketId_ = marketId_; + result.type_ = type_; onBuilt(); return result; } @@ -34711,24 +32774,37 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.WithdrawExt) { - return mergeFrom((io.vegaprotocol.vega.Vega.WithdrawExt)other); + if (other instanceof io.vegaprotocol.vega.Vega.Account) { + return mergeFrom((io.vegaprotocol.vega.Vega.Account)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.WithdrawExt other) { - if (other == io.vegaprotocol.vega.Vega.WithdrawExt.getDefaultInstance()) return this; - switch (other.getExtCase()) { - case ERC20: { - mergeErc20(other.getErc20()); - break; - } - case EXT_NOT_SET: { - break; - } + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Account other) { + if (other == io.vegaprotocol.vega.Vega.Account.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + onChanged(); + } + if (other.getBalance() != 0L) { + setBalance(other.getBalance()); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); + } + if (!other.getMarketId().isEmpty()) { + marketId_ = other.marketId_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -34745,11 +32821,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.WithdrawExt parsedMessage = null; + io.vegaprotocol.vega.Vega.Account parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.WithdrawExt) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Account) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -34758,300 +32834,630 @@ public Builder mergeFrom( } return this; } - private int extCase_ = 0; - private java.lang.Object ext_; - public ExtCase - getExtCase() { - return ExtCase.forNumber( - extCase_); - } - - public Builder clearExt() { - extCase_ = 0; - ext_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder> erc20Builder_; + private java.lang.Object id_ = ""; /** *
-       * ERC20 withdrawal details
+       * Unique account identifier (used internally by Vega)
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return Whether the erc20 field is set. + * string id = 1 [json_name = "id"]; + * @return The id. */ - @java.lang.Override - public boolean hasErc20() { - return extCase_ == 1; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * ERC20 withdrawal details
+       * Unique account identifier (used internally by Vega)
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; - * @return The erc20. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getErc20() { - if (erc20Builder_ == null) { - if (extCase_ == 1) { - return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; - } - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; } else { - if (extCase_ == 1) { - return erc20Builder_.getMessage(); - } - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * ERC20 withdrawal details
+       * Unique account identifier (used internally by Vega)
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. */ - public Builder setErc20(io.vegaprotocol.vega.Vega.Erc20WithdrawExt value) { - if (erc20Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ext_ = value; - onChanged(); - } else { - erc20Builder_.setMessage(value); - } - extCase_ = 1; + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); return this; } /** *
-       * ERC20 withdrawal details
+       * Unique account identifier (used internally by Vega)
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. */ - public Builder setErc20( - io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder builderForValue) { - if (erc20Builder_ == null) { - ext_ = builderForValue.build(); - onChanged(); - } else { - erc20Builder_.setMessage(builderForValue.build()); - } - extCase_ = 1; + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** *
-       * ERC20 withdrawal details
+       * Unique account identifier (used internally by Vega)
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. */ - public Builder mergeErc20(io.vegaprotocol.vega.Vega.Erc20WithdrawExt value) { - if (erc20Builder_ == null) { - if (extCase_ == 1 && - ext_ != io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance()) { - ext_ = io.vegaprotocol.vega.Vega.Erc20WithdrawExt.newBuilder((io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_) - .mergeFrom(value).buildPartial(); - } else { - ext_ = value; - } - onChanged(); - } else { - if (extCase_ == 1) { - erc20Builder_.mergeFrom(value); - } - erc20Builder_.setMessage(value); - } - extCase_ = 1; + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); return this; } + + private java.lang.Object owner_ = ""; /** *
-       * ERC20 withdrawal details
+       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+       * most commonly seen during liquidation of distressed trading positions
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string owner = 2 [json_name = "owner"]; + * @return The owner. */ - public Builder clearErc20() { - if (erc20Builder_ == null) { - if (extCase_ == 1) { - extCase_ = 0; - ext_ = null; - onChanged(); - } + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; } else { - if (extCase_ == 1) { - extCase_ = 0; - ext_ = null; - } - erc20Builder_.clear(); + return (java.lang.String) ref; } - return this; } /** *
-       * ERC20 withdrawal details
+       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+       * most commonly seen during liquidation of distressed trading positions
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. */ - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder getErc20Builder() { - return getErc20FieldBuilder().getBuilder(); + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * ERC20 withdrawal details
+       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+       * most commonly seen during liquidation of distressed trading positions
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string owner = 2 [json_name = "owner"]; + * @param value The owner to set. + * @return This builder for chaining. */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder getErc20OrBuilder() { - if ((extCase_ == 1) && (erc20Builder_ != null)) { - return erc20Builder_.getMessageOrBuilder(); - } else { - if (extCase_ == 1) { - return (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_; - } - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); - } + public Builder setOwner( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + owner_ = value; + onChanged(); + return this; } /** *
-       * ERC20 withdrawal details
+       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+       * most commonly seen during liquidation of distressed trading positions
        * 
* - * .vega.Erc20WithdrawExt erc20 = 1 [json_name = "erc20"]; + * string owner = 2 [json_name = "owner"]; + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder> - getErc20FieldBuilder() { - if (erc20Builder_ == null) { - if (!(extCase_ == 1)) { - ext_ = io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); - } - erc20Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Erc20WithdrawExt, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder, io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder>( - (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) ext_, - getParentForChildren(), - isClean()); - ext_ = null; - } - extCase_ = 1; - onChanged();; - return erc20Builder_; + public Builder clearOwner() { + + owner_ = getDefaultInstance().getOwner(); + onChanged(); + return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + *
+       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
+       * most commonly seen during liquidation of distressed trading positions
+       * 
+ * + * string owner = 2 [json_name = "owner"]; + * @param value The bytes for owner to set. + * @return This builder for chaining. + */ + public Builder setOwnerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + owner_ = value; + onChanged(); + return this; } + private long balance_ ; + /** + *
+       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * and importantly balances cannot be negative
+       * 
+ * + * uint64 balance = 3 [json_name = "balance"]; + * @return The balance. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public long getBalance() { + return balance_; } + /** + *
+       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * and importantly balances cannot be negative
+       * 
+ * + * uint64 balance = 3 [json_name = "balance"]; + * @param value The balance to set. + * @return This builder for chaining. + */ + public Builder setBalance(long value) { + balance_ = value; + onChanged(); + return this; + } + /** + *
+       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * and importantly balances cannot be negative
+       * 
+ * + * uint64 balance = 3 [json_name = "balance"]; + * @return This builder for chaining. + */ + public Builder clearBalance() { - // @@protoc_insertion_point(builder_scope:vega.WithdrawExt) - } - - // @@protoc_insertion_point(class_scope:vega.WithdrawExt) - private static final io.vegaprotocol.vega.Vega.WithdrawExt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.WithdrawExt(); - } + balance_ = 0L; + onChanged(); + return this; + } - public static io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstance() { + private java.lang.Object asset_ = ""; + /** + *
+       * Asset identifier for the account
+       * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Asset identifier for the account
+       * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Asset identifier for the account
+       * 
+ * + * string asset = 4 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + *
+       * Asset identifier for the account
+       * 
+ * + * string asset = 4 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + *
+       * Asset identifier for the account
+       * 
+ * + * string asset = 4 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + + private java.lang.Object marketId_ = ""; + /** + *
+       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return The marketId. + */ + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @param value The marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + marketId_ = value; + onChanged(); + return this; + } + /** + *
+       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @return This builder for chaining. + */ + public Builder clearMarketId() { + + marketId_ = getDefaultInstance().getMarketId(); + onChanged(); + return this; + } + /** + *
+       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * 
+ * + * string market_id = 5 [json_name = "marketId"]; + * @param value The bytes for marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + marketId_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+       * The account type related to this account
+       * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * The account type related to this account
+       * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * The account type related to this account
+       * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.AccountType getType() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); + return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; + } + /** + *
+       * The account type related to this account
+       * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.vegaprotocol.vega.Vega.AccountType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The account type related to this account
+       * 
+ * + * .vega.AccountType type = 6 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.Account) + } + + // @@protoc_insertion_point(class_scope:vega.Account) + private static final io.vegaprotocol.vega.Vega.Account DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Account(); + } + + public static io.vegaprotocol.vega.Vega.Account getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public WithdrawExt parsePartialFrom( + public Account parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WithdrawExt(input, extensionRegistry); + return new Account(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawExt getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.Account getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Erc20WithdrawExtOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Erc20WithdrawExt) + public interface FinancialAmountOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.FinancialAmount) com.google.protobuf.MessageOrBuilder { /** *
-     * The address into which the bridge will release the funds
+     * A signed integer amount of asset
      * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The receiverAddress. + * uint64 amount = 1 [json_name = "amount"]; + * @return The amount. */ - java.lang.String getReceiverAddress(); + long getAmount(); + /** *
-     * The address into which the bridge will release the funds
+     * Asset identifier
      * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The bytes for receiverAddress. + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + *
+     * Asset identifier
+     * 
+ * + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. */ com.google.protobuf.ByteString - getReceiverAddressBytes(); + getAssetBytes(); } /** *
-   * An extension of data required for the withdraw submissions
+   * Asset value information used within a transfer
    * 
* - * Protobuf type {@code vega.Erc20WithdrawExt} + * Protobuf type {@code vega.FinancialAmount} */ - public static final class Erc20WithdrawExt extends + public static final class FinancialAmount extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Erc20WithdrawExt) - Erc20WithdrawExtOrBuilder { + // @@protoc_insertion_point(message_implements:vega.FinancialAmount) + FinancialAmountOrBuilder { private static final long serialVersionUID = 0L; - // Use Erc20WithdrawExt.newBuilder() to construct. - private Erc20WithdrawExt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FinancialAmount.newBuilder() to construct. + private FinancialAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Erc20WithdrawExt() { - receiverAddress_ = ""; + private FinancialAmount() { + asset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Erc20WithdrawExt(); + return new FinancialAmount(); } @java.lang.Override @@ -35059,7 +33465,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Erc20WithdrawExt( + private FinancialAmount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -35077,10 +33483,15 @@ private Erc20WithdrawExt( case 0: done = true; break; - case 10: { + case 8: { + + amount_ = input.readUInt64(); + break; + } + case 18: { java.lang.String s = input.readStringRequireUtf8(); - receiverAddress_ = s; + asset_ = s; break; } default: { @@ -35104,57 +33515,72 @@ private Erc20WithdrawExt( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Erc20WithdrawExt.class, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder.class); + io.vegaprotocol.vega.Vega.FinancialAmount.class, io.vegaprotocol.vega.Vega.FinancialAmount.Builder.class); } - public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object receiverAddress_; + public static final int AMOUNT_FIELD_NUMBER = 1; + private long amount_; /** *
-     * The address into which the bridge will release the funds
+     * A signed integer amount of asset
      * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The receiverAddress. + * uint64 amount = 1 [json_name = "amount"]; + * @return The amount. */ @java.lang.Override - public java.lang.String getReceiverAddress() { - java.lang.Object ref = receiverAddress_; + public long getAmount() { + return amount_; + } + + public static final int ASSET_FIELD_NUMBER = 2; + private volatile java.lang.Object asset_; + /** + *
+     * Asset identifier
+     * 
+ * + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - receiverAddress_ = s; + asset_ = s; return s; } } /** *
-     * The address into which the bridge will release the funds
+     * Asset identifier
      * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The bytes for receiverAddress. + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. */ @java.lang.Override public com.google.protobuf.ByteString - getReceiverAddressBytes() { - java.lang.Object ref = receiverAddress_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - receiverAddress_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -35175,8 +33601,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getReceiverAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, receiverAddress_); + if (amount_ != 0L) { + output.writeUInt64(1, amount_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); } unknownFields.writeTo(output); } @@ -35187,8 +33616,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getReceiverAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, receiverAddress_); + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, amount_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -35200,13 +33633,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Erc20WithdrawExt)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.FinancialAmount)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Erc20WithdrawExt other = (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) obj; + io.vegaprotocol.vega.Vega.FinancialAmount other = (io.vegaprotocol.vega.Vega.FinancialAmount) obj; - if (!getReceiverAddress() - .equals(other.getReceiverAddress())) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getAsset() + .equals(other.getAsset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -35218,76 +33653,79 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getReceiverAddress().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.FinancialAmount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( + public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -35300,7 +33738,7 @@ public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Erc20WithdrawExt prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.FinancialAmount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -35317,29 +33755,29 @@ protected Builder newBuilderForType( } /** *
-     * An extension of data required for the withdraw submissions
+     * Asset value information used within a transfer
      * 
* - * Protobuf type {@code vega.Erc20WithdrawExt} + * Protobuf type {@code vega.FinancialAmount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Erc20WithdrawExt) - io.vegaprotocol.vega.Vega.Erc20WithdrawExtOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.FinancialAmount) + io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Erc20WithdrawExt.class, io.vegaprotocol.vega.Vega.Erc20WithdrawExt.Builder.class); + io.vegaprotocol.vega.Vega.FinancialAmount.class, io.vegaprotocol.vega.Vega.FinancialAmount.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Erc20WithdrawExt.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.FinancialAmount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -35357,7 +33795,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - receiverAddress_ = ""; + amount_ = 0L; + + asset_ = ""; return this; } @@ -35365,17 +33805,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Erc20WithdrawExt_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt build() { - io.vegaprotocol.vega.Vega.Erc20WithdrawExt result = buildPartial(); + public io.vegaprotocol.vega.Vega.FinancialAmount build() { + io.vegaprotocol.vega.Vega.FinancialAmount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -35383,9 +33823,10 @@ public io.vegaprotocol.vega.Vega.Erc20WithdrawExt build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt buildPartial() { - io.vegaprotocol.vega.Vega.Erc20WithdrawExt result = new io.vegaprotocol.vega.Vega.Erc20WithdrawExt(this); - result.receiverAddress_ = receiverAddress_; + public io.vegaprotocol.vega.Vega.FinancialAmount buildPartial() { + io.vegaprotocol.vega.Vega.FinancialAmount result = new io.vegaprotocol.vega.Vega.FinancialAmount(this); + result.amount_ = amount_; + result.asset_ = asset_; onBuilt(); return result; } @@ -35424,18 +33865,21 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Erc20WithdrawExt) { - return mergeFrom((io.vegaprotocol.vega.Vega.Erc20WithdrawExt)other); + if (other instanceof io.vegaprotocol.vega.Vega.FinancialAmount) { + return mergeFrom((io.vegaprotocol.vega.Vega.FinancialAmount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Erc20WithdrawExt other) { - if (other == io.vegaprotocol.vega.Vega.Erc20WithdrawExt.getDefaultInstance()) return this; - if (!other.getReceiverAddress().isEmpty()) { - receiverAddress_ = other.receiverAddress_; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.FinancialAmount other) { + if (other == io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance()) return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -35453,11 +33897,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Erc20WithdrawExt parsedMessage = null; + io.vegaprotocol.vega.Vega.FinancialAmount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Erc20WithdrawExt) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.FinancialAmount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -35467,22 +33911,65 @@ public Builder mergeFrom( return this; } - private java.lang.Object receiverAddress_ = ""; + private long amount_ ; /** *
-       * The address into which the bridge will release the funds
+       * A signed integer amount of asset
        * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The receiverAddress. + * uint64 amount = 1 [json_name = "amount"]; + * @return The amount. */ - public java.lang.String getReceiverAddress() { - java.lang.Object ref = receiverAddress_; + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + *
+       * A signed integer amount of asset
+       * 
+ * + * uint64 amount = 1 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * A signed integer amount of asset
+       * 
+ * + * uint64 amount = 1 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - receiverAddress_ = s; + asset_ = s; return s; } else { return (java.lang.String) ref; @@ -35490,20 +33977,20 @@ public java.lang.String getReceiverAddress() { } /** *
-       * The address into which the bridge will release the funds
+       * Asset identifier
        * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @return The bytes for receiverAddress. + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. */ public com.google.protobuf.ByteString - getReceiverAddressBytes() { - java.lang.Object ref = receiverAddress_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - receiverAddress_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -35511,54 +33998,54 @@ public java.lang.String getReceiverAddress() { } /** *
-       * The address into which the bridge will release the funds
+       * Asset identifier
        * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @param value The receiverAddress to set. + * string asset = 2 [json_name = "asset"]; + * @param value The asset to set. * @return This builder for chaining. */ - public Builder setReceiverAddress( + public Builder setAsset( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - receiverAddress_ = value; + asset_ = value; onChanged(); return this; } /** *
-       * The address into which the bridge will release the funds
+       * Asset identifier
        * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; + * string asset = 2 [json_name = "asset"]; * @return This builder for chaining. */ - public Builder clearReceiverAddress() { + public Builder clearAsset() { - receiverAddress_ = getDefaultInstance().getReceiverAddress(); + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** *
-       * The address into which the bridge will release the funds
+       * Asset identifier
        * 
* - * string receiver_address = 1 [json_name = "receiverAddress"]; - * @param value The bytes for receiverAddress to set. + * string asset = 2 [json_name = "asset"]; + * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setReceiverAddressBytes( + public Builder setAssetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - receiverAddress_ = value; + asset_ = value; onChanged(); return this; } @@ -35575,87 +34062,65 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Erc20WithdrawExt) + // @@protoc_insertion_point(builder_scope:vega.FinancialAmount) } - // @@protoc_insertion_point(class_scope:vega.Erc20WithdrawExt) - private static final io.vegaprotocol.vega.Vega.Erc20WithdrawExt DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.FinancialAmount) + private static final io.vegaprotocol.vega.Vega.FinancialAmount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Erc20WithdrawExt(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.FinancialAmount(); } - public static io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Erc20WithdrawExt parsePartialFrom( + public FinancialAmount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Erc20WithdrawExt(input, extensionRegistry); + return new FinancialAmount(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Erc20WithdrawExt getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Account) + public interface TransferOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Transfer) com.google.protobuf.MessageOrBuilder { /** *
-     * Unique account identifier (used internally by Vega)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Unique account identifier (used internally by Vega)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-     * most commonly seen during liquidation of distressed trading positions
+     * Party identifier for the owner of the transfer
      * 
* - * string owner = 2 [json_name = "owner"]; + * string owner = 1 [json_name = "owner"]; * @return The owner. */ java.lang.String getOwner(); /** *
-     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-     * most commonly seen during liquidation of distressed trading positions
+     * Party identifier for the owner of the transfer
      * 
* - * string owner = 2 [json_name = "owner"]; + * string owner = 1 [json_name = "owner"]; * @return The bytes for owner. */ com.google.protobuf.ByteString @@ -35663,96 +34128,78 @@ public interface AccountOrBuilder extends /** *
-     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * and importantly balances cannot be negative
+     * A financial amount (of an asset) to transfer
      * 
* - * uint64 balance = 3 [json_name = "balance"]; - * @return The balance. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return Whether the amount field is set. */ - long getBalance(); - + boolean hasAmount(); /** *
-     * Asset identifier for the account
+     * A financial amount (of an asset) to transfer
      * 
* - * string asset = 4 [json_name = "asset"]; - * @return The asset. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return The amount. */ - java.lang.String getAsset(); + io.vegaprotocol.vega.Vega.FinancialAmount getAmount(); /** *
-     * Asset identifier for the account
+     * A financial amount (of an asset) to transfer
      * 
* - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - com.google.protobuf.ByteString - getAssetBytes(); + io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder(); /** *
-     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * The type of transfer, gives the reason for the transfer
      * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The marketId. + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. */ - java.lang.String getMarketId(); + int getTypeValue(); /** *
-     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * The type of transfer, gives the reason for the transfer
      * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The bytes for marketId. + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The type. */ - com.google.protobuf.ByteString - getMarketIdBytes(); + io.vegaprotocol.vega.Vega.TransferType getType(); /** *
-     * The account type related to this account
-     * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-     * The account type related to this account
+     * A minimum amount
      * 
* - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The type. + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. */ - io.vegaprotocol.vega.Vega.AccountType getType(); + long getMinAmount(); } /** *
-   * Represents an account for an asset on Vega for a particular owner or party
+   * Represents a financial transfer within Vega
    * 
* - * Protobuf type {@code vega.Account} + * Protobuf type {@code vega.Transfer} */ - public static final class Account extends + public static final class Transfer extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Account) - AccountOrBuilder { + // @@protoc_insertion_point(message_implements:vega.Transfer) + TransferOrBuilder { private static final long serialVersionUID = 0L; - // Use Account.newBuilder() to construct. - private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Transfer.newBuilder() to construct. + private Transfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Account() { - id_ = ""; + private Transfer() { owner_ = ""; - asset_ = ""; - marketId_ = ""; type_ = 0; } @@ -35760,7 +34207,7 @@ private Account() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Account(); + return new Transfer(); } @java.lang.Override @@ -35768,7 +34215,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Account( + private Transfer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -35789,36 +34236,31 @@ private Account( case 10: { java.lang.String s = input.readStringRequireUtf8(); - id_ = s; + owner_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); + io.vegaprotocol.vega.Vega.FinancialAmount.Builder subBuilder = null; + if (amount_ != null) { + subBuilder = amount_.toBuilder(); + } + amount_ = input.readMessage(io.vegaprotocol.vega.Vega.FinancialAmount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(amount_); + amount_ = subBuilder.buildPartial(); + } - owner_ = s; break; } case 24: { + int rawValue = input.readEnum(); - balance_ = input.readUInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; + type_ = rawValue; break; } - case 48: { - int rawValue = input.readEnum(); + case 32: { - type_ = rawValue; + minAmount_ = input.readUInt64(); break; } default: { @@ -35842,72 +34284,25 @@ private Account( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Account_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Account.class, io.vegaprotocol.vega.Vega.Account.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Unique account identifier (used internally by Vega)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Unique account identifier (used internally by Vega)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + io.vegaprotocol.vega.Vega.Transfer.class, io.vegaprotocol.vega.Vega.Transfer.Builder.class); } - public static final int OWNER_FIELD_NUMBER = 2; + public static final int OWNER_FIELD_NUMBER = 1; private volatile java.lang.Object owner_; /** *
-     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-     * most commonly seen during liquidation of distressed trading positions
+     * Party identifier for the owner of the transfer
      * 
* - * string owner = 2 [json_name = "owner"]; + * string owner = 1 [json_name = "owner"]; * @return The owner. */ @java.lang.Override @@ -35925,11 +34320,10 @@ public java.lang.String getOwner() { } /** *
-     * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-     * most commonly seen during liquidation of distressed trading positions
+     * Party identifier for the owner of the transfer
      * 
* - * string owner = 2 [json_name = "owner"]; + * string owner = 1 [json_name = "owner"]; * @return The bytes for owner. */ @java.lang.Override @@ -35947,140 +34341,84 @@ public java.lang.String getOwner() { } } - public static final int BALANCE_FIELD_NUMBER = 3; - private long balance_; + public static final int AMOUNT_FIELD_NUMBER = 2; + private io.vegaprotocol.vega.Vega.FinancialAmount amount_; /** *
-     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * and importantly balances cannot be negative
+     * A financial amount (of an asset) to transfer
      * 
* - * uint64 balance = 3 [json_name = "balance"]; - * @return The balance. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return Whether the amount field is set. */ @java.lang.Override - public long getBalance() { - return balance_; + public boolean hasAmount() { + return amount_ != null; } - - public static final int ASSET_FIELD_NUMBER = 4; - private volatile java.lang.Object asset_; /** *
-     * Asset identifier for the account
+     * A financial amount (of an asset) to transfer
      * 
* - * string asset = 4 [json_name = "asset"]; - * @return The asset. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return The amount. */ @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } + public io.vegaprotocol.vega.Vega.FinancialAmount getAmount() { + return amount_ == null ? io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; } /** *
-     * Asset identifier for the account
+     * A financial amount (of an asset) to transfer
      * 
* - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder() { + return getAmount(); } - public static final int MARKET_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object marketId_; + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; /** *
-     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * The type of transfer, gives the reason for the transfer
      * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The marketId. + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } + @java.lang.Override public int getTypeValue() { + return type_; } /** *
-     * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+     * The type of transfer, gives the reason for the transfer
      * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The bytes for marketId. + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The type. */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override public io.vegaprotocol.vega.Vega.TransferType getType() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.TransferType result = io.vegaprotocol.vega.Vega.TransferType.valueOf(type_); + return result == null ? io.vegaprotocol.vega.Vega.TransferType.UNRECOGNIZED : result; } - public static final int TYPE_FIELD_NUMBER = 6; - private int type_; - /** - *
-     * The account type related to this account
-     * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } + public static final int MIN_AMOUNT_FIELD_NUMBER = 4; + private long minAmount_; /** *
-     * The account type related to this account
+     * A minimum amount
      * 
* - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The type. + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. */ - @java.lang.Override public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; + @java.lang.Override + public long getMinAmount() { + return minAmount_; } private byte memoizedIsInitialized = -1; @@ -36097,23 +34435,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } if (!getOwnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); - } - if (balance_ != 0L) { - output.writeUInt64(3, balance_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, owner_); } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); + if (amount_ != null) { + output.writeMessage(2, getAmount()); } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_); + if (type_ != io.vegaprotocol.vega.Vega.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, type_); + if (minAmount_ != 0L) { + output.writeUInt64(4, minAmount_); } unknownFields.writeTo(output); } @@ -36124,25 +34456,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } if (!getOwnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, owner_); } - if (balance_ != 0L) { + if (amount_ != null) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, balance_); + .computeMessageSize(2, getAmount()); } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_); + if (type_ != io.vegaprotocol.vega.Vega.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { + if (minAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, type_); + .computeUInt64Size(4, minAmount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -36154,22 +34481,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Account)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Transfer)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Account other = (io.vegaprotocol.vega.Vega.Account) obj; + io.vegaprotocol.vega.Vega.Transfer other = (io.vegaprotocol.vega.Vega.Transfer) obj; - if (!getId() - .equals(other.getId())) return false; if (!getOwner() .equals(other.getOwner())) return false; - if (getBalance() - != other.getBalance()) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; + if (hasAmount() != other.hasAmount()) return false; + if (hasAmount()) { + if (!getAmount() + .equals(other.getAmount())) return false; + } if (type_ != other.type_) return false; + if (getMinAmount() + != other.getMinAmount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -36181,87 +34507,85 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); + if (hasAmount()) { + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; + hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinAmount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Account parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Transfer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Account parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Transfer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Account parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Transfer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Account parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Account parseFrom( + public static io.vegaprotocol.vega.Vega.Transfer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -36274,7 +34598,7 @@ public static io.vegaprotocol.vega.Vega.Account parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Account prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Transfer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -36291,29 +34615,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents an account for an asset on Vega for a particular owner or party
+     * Represents a financial transfer within Vega
      * 
* - * Protobuf type {@code vega.Account} + * Protobuf type {@code vega.Transfer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Account) - io.vegaprotocol.vega.Vega.AccountOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Transfer) + io.vegaprotocol.vega.Vega.TransferOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Account_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Account.class, io.vegaprotocol.vega.Vega.Account.Builder.class); + io.vegaprotocol.vega.Vega.Transfer.class, io.vegaprotocol.vega.Vega.Transfer.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Account.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Transfer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -36331,35 +34655,35 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - id_ = ""; - owner_ = ""; - balance_ = 0L; - - asset_ = ""; - - marketId_ = ""; - + if (amountBuilder_ == null) { + amount_ = null; + } else { + amount_ = null; + amountBuilder_ = null; + } type_ = 0; + minAmount_ = 0L; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Account_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Account.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Transfer getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Transfer.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Account build() { - io.vegaprotocol.vega.Vega.Account result = buildPartial(); + public io.vegaprotocol.vega.Vega.Transfer build() { + io.vegaprotocol.vega.Vega.Transfer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -36367,14 +34691,16 @@ public io.vegaprotocol.vega.Vega.Account build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Account buildPartial() { - io.vegaprotocol.vega.Vega.Account result = new io.vegaprotocol.vega.Vega.Account(this); - result.id_ = id_; + public io.vegaprotocol.vega.Vega.Transfer buildPartial() { + io.vegaprotocol.vega.Vega.Transfer result = new io.vegaprotocol.vega.Vega.Transfer(this); result.owner_ = owner_; - result.balance_ = balance_; - result.asset_ = asset_; - result.marketId_ = marketId_; + if (amountBuilder_ == null) { + result.amount_ = amount_; + } else { + result.amount_ = amountBuilder_.build(); + } result.type_ = type_; + result.minAmount_ = minAmount_; onBuilt(); return result; } @@ -36413,38 +34739,29 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Account) { - return mergeFrom((io.vegaprotocol.vega.Vega.Account)other); + if (other instanceof io.vegaprotocol.vega.Vega.Transfer) { + return mergeFrom((io.vegaprotocol.vega.Vega.Transfer)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Account other) { - if (other == io.vegaprotocol.vega.Vega.Account.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Transfer other) { + if (other == io.vegaprotocol.vega.Vega.Transfer.getDefaultInstance()) return this; if (!other.getOwner().isEmpty()) { owner_ = other.owner_; onChanged(); } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); + if (other.hasAmount()) { + mergeAmount(other.getAmount()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } + if (other.getMinAmount() != 0L) { + setMinAmount(other.getMinAmount()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -36460,11 +34777,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Account parsedMessage = null; + io.vegaprotocol.vega.Vega.Transfer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Account) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Transfer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -36474,22 +34791,22 @@ public Builder mergeFrom( return this; } - private java.lang.Object id_ = ""; + private java.lang.Object owner_ = ""; /** *
-       * Unique account identifier (used internally by Vega)
+       * Party identifier for the owner of the transfer
        * 
* - * string id = 1 [json_name = "id"]; - * @return The id. + * string owner = 1 [json_name = "owner"]; + * @return The owner. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getOwner() { + java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + owner_ = s; return s; } else { return (java.lang.String) ref; @@ -36497,20 +34814,20 @@ public java.lang.String getId() { } /** *
-       * Unique account identifier (used internally by Vega)
+       * Party identifier for the owner of the transfer
        * 
* - * string id = 1 [json_name = "id"]; - * @return The bytes for id. + * string owner = 1 [json_name = "owner"]; + * @return The bytes for owner. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getOwnerBytes() { + java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -36518,470 +34835,326 @@ public java.lang.String getId() { } /** *
-       * Unique account identifier (used internally by Vega)
+       * Party identifier for the owner of the transfer
        * 
* - * string id = 1 [json_name = "id"]; - * @param value The id to set. + * string owner = 1 [json_name = "owner"]; + * @param value The owner to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + owner_ = value; onChanged(); return this; } /** *
-       * Unique account identifier (used internally by Vega)
+       * Party identifier for the owner of the transfer
        * 
* - * string id = 1 [json_name = "id"]; + * string owner = 1 [json_name = "owner"]; * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearOwner() { - id_ = getDefaultInstance().getId(); + owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** *
-       * Unique account identifier (used internally by Vega)
+       * Party identifier for the owner of the transfer
        * 
* - * string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. + * string owner = 1 [json_name = "owner"]; + * @param value The bytes for owner to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + owner_ = value; onChanged(); return this; } - private java.lang.Object owner_ = ""; + private io.vegaprotocol.vega.Vega.FinancialAmount amount_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder> amountBuilder_; /** *
-       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-       * most commonly seen during liquidation of distressed trading positions
+       * A financial amount (of an asset) to transfer
        * 
* - * string owner = 2 [json_name = "owner"]; - * @return The owner. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return Whether the amount field is set. */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasAmount() { + return amountBuilder_ != null || amount_ != null; } /** *
-       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-       * most commonly seen during liquidation of distressed trading positions
+       * A financial amount (of an asset) to transfer
        * 
* - * string owner = 2 [json_name = "owner"]; - * @return The bytes for owner. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * @return The amount. */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; + public io.vegaprotocol.vega.Vega.FinancialAmount getAmount() { + if (amountBuilder_ == null) { + return amount_ == null ? io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; } else { - return (com.google.protobuf.ByteString) ref; + return amountBuilder_.getMessage(); } } /** *
-       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-       * most commonly seen during liquidation of distressed trading positions
+       * A financial amount (of an asset) to transfer
        * 
* - * string owner = 2 [json_name = "owner"]; - * @param value The owner to set. - * @return This builder for chaining. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAmount(io.vegaprotocol.vega.Vega.FinancialAmount value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + amount_ = value; + onChanged(); + } else { + amountBuilder_.setMessage(value); + } - owner_ = value; - onChanged(); return this; } /** *
-       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-       * most commonly seen during liquidation of distressed trading positions
+       * A financial amount (of an asset) to transfer
        * 
* - * string owner = 2 [json_name = "owner"]; - * @return This builder for chaining. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public Builder clearOwner() { + public Builder setAmount( + io.vegaprotocol.vega.Vega.FinancialAmount.Builder builderForValue) { + if (amountBuilder_ == null) { + amount_ = builderForValue.build(); + onChanged(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } - owner_ = getDefaultInstance().getOwner(); - onChanged(); return this; } /** *
-       * The party that the account belongs to, special values include `network`, which represents the Vega network and is
-       * most commonly seen during liquidation of distressed trading positions
+       * A financial amount (of an asset) to transfer
        * 
* - * string owner = 2 [json_name = "owner"]; - * @param value The bytes for owner to set. - * @return This builder for chaining. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder mergeAmount(io.vegaprotocol.vega.Vega.FinancialAmount value) { + if (amountBuilder_ == null) { + if (amount_ != null) { + amount_ = + io.vegaprotocol.vega.Vega.FinancialAmount.newBuilder(amount_).mergeFrom(value).buildPartial(); + } else { + amount_ = value; + } + onChanged(); + } else { + amountBuilder_.mergeFrom(value); + } - owner_ = value; - onChanged(); return this; } - - private long balance_ ; /** *
-       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * and importantly balances cannot be negative
+       * A financial amount (of an asset) to transfer
        * 
* - * uint64 balance = 3 [json_name = "balance"]; - * @return The balance. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - @java.lang.Override - public long getBalance() { - return balance_; + public Builder clearAmount() { + if (amountBuilder_ == null) { + amount_ = null; + onChanged(); + } else { + amount_ = null; + amountBuilder_ = null; + } + + return this; } /** *
-       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * and importantly balances cannot be negative
+       * A financial amount (of an asset) to transfer
        * 
* - * uint64 balance = 3 [json_name = "balance"]; - * @param value The balance to set. - * @return This builder for chaining. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public Builder setBalance(long value) { + public io.vegaprotocol.vega.Vega.FinancialAmount.Builder getAmountBuilder() { - balance_ = value; onChanged(); - return this; + return getAmountFieldBuilder().getBuilder(); } /** *
-       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * and importantly balances cannot be negative
+       * A financial amount (of an asset) to transfer
        * 
* - * uint64 balance = 3 [json_name = "balance"]; - * @return This builder for chaining. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public Builder clearBalance() { - - balance_ = 0L; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder() { + if (amountBuilder_ != null) { + return amountBuilder_.getMessageOrBuilder(); + } else { + return amount_ == null ? + io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; + } } - - private java.lang.Object asset_ = ""; /** *
-       * Asset identifier for the account
+       * A financial amount (of an asset) to transfer
        * 
* - * string asset = 4 [json_name = "asset"]; - * @return The asset. + * .vega.FinancialAmount amount = 2 [json_name = "amount"]; */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder>( + getAmount(), + getParentForChildren(), + isClean()); + amount_ = null; } + return amountBuilder_; } + + private int type_ = 0; /** *
-       * Asset identifier for the account
+       * The type of transfer, gives the reason for the transfer
        * 
* - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override public int getTypeValue() { + return type_; } /** *
-       * Asset identifier for the account
+       * The type of transfer, gives the reason for the transfer
        * 
* - * string asset = 4 [json_name = "asset"]; - * @param value The asset to set. + * .vega.TransferType type = 3 [json_name = "type"]; + * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeValue(int value) { - asset_ = value; + type_ = value; onChanged(); return this; } /** *
-       * Asset identifier for the account
+       * The type of transfer, gives the reason for the transfer
        * 
* - * string asset = 4 [json_name = "asset"]; + * .vega.TransferType type = 3 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferType getType() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.TransferType result = io.vegaprotocol.vega.Vega.TransferType.valueOf(type_); + return result == null ? io.vegaprotocol.vega.Vega.TransferType.UNRECOGNIZED : result; + } + /** + *
+       * The type of transfer, gives the reason for the transfer
+       * 
+ * + * .vega.TransferType type = 3 [json_name = "type"]; + * @param value The type to set. * @return This builder for chaining. */ - public Builder clearAsset() { + public Builder setType(io.vegaprotocol.vega.Vega.TransferType value) { + if (value == null) { + throw new NullPointerException(); + } - asset_ = getDefaultInstance().getAsset(); + type_ = value.getNumber(); onChanged(); return this; } /** *
-       * Asset identifier for the account
+       * The type of transfer, gives the reason for the transfer
        * 
* - * string asset = 4 [json_name = "asset"]; - * @param value The bytes for asset to set. + * .vega.TransferType type = 3 [json_name = "type"]; * @return This builder for chaining. */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearType() { - asset_ = value; + type_ = 0; onChanged(); return this; } - private java.lang.Object marketId_ = ""; + private long minAmount_ ; /** *
-       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * A minimum amount
        * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The marketId. + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public long getMinAmount() { + return minAmount_; } /** *
-       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
+       * A minimum amount
        * 
* - * string market_id = 5 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
-       * 
- * - * string market_id = 5 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
-       * 
- * - * string market_id = 5 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
-       * 
- * - * string market_id = 5 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * The account type related to this account
-       * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-       * The account type related to this account
-       * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * The account type related to this account
-       * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; - } - /** - *
-       * The account type related to this account
-       * 
- * - * .vega.AccountType type = 6 [json_name = "type"]; - * @param value The type to set. + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @param value The minAmount to set. * @return This builder for chaining. */ - public Builder setType(io.vegaprotocol.vega.Vega.AccountType value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMinAmount(long value) { - type_ = value.getNumber(); + minAmount_ = value; onChanged(); return this; } /** *
-       * The account type related to this account
+       * A minimum amount
        * 
* - * .vega.AccountType type = 6 [json_name = "type"]; + * uint64 min_amount = 4 [json_name = "minAmount"]; * @return This builder for chaining. */ - public Builder clearType() { + public Builder clearMinAmount() { - type_ = 0; + minAmount_ = 0L; onChanged(); return this; } @@ -36998,66 +35171,164 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Account) + // @@protoc_insertion_point(builder_scope:vega.Transfer) } - // @@protoc_insertion_point(class_scope:vega.Account) - private static final io.vegaprotocol.vega.Vega.Account DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.Transfer) + private static final io.vegaprotocol.vega.Vega.Transfer DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Account(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Transfer(); } - public static io.vegaprotocol.vega.Vega.Account getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.Transfer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Account parsePartialFrom( + public Transfer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Account(input, extensionRegistry); + return new Transfer(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.Transfer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface FinancialAmountOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.FinancialAmount) + public interface TransferRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.TransferRequest) com.google.protobuf.MessageOrBuilder { /** *
-     * A signed integer amount of asset
+     * One or more accounts to transfer from
      * 
* - * uint64 amount = 1 [json_name = "amount"]; + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + java.util.List + getFromAccountList(); + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + io.vegaprotocol.vega.Vega.Account getFromAccount(int index); + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + int getFromAccountCount(); + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + java.util.List + getFromAccountOrBuilderList(); + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( + int index); + + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + java.util.List + getToAccountList(); + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + io.vegaprotocol.vega.Vega.Account getToAccount(int index); + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + int getToAccountCount(); + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + java.util.List + getToAccountOrBuilderList(); + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( + int index); + + /** + *
+     * An amount to transfer for the asset
+     * 
+ * + * uint64 amount = 3 [json_name = "amount"]; * @return The amount. */ long getAmount(); + /** + *
+     * A minimum amount
+     * 
+ * + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. + */ + long getMinAmount(); + /** *
      * Asset identifier
      * 
* - * string asset = 2 [json_name = "asset"]; + * string asset = 5 [json_name = "asset"]; * @return The asset. */ java.lang.String getAsset(); @@ -37066,37 +35337,60 @@ public interface FinancialAmountOrBuilder extends * Asset identifier *
* - * string asset = 2 [json_name = "asset"]; + * string asset = 5 [json_name = "asset"]; * @return The bytes for asset. */ com.google.protobuf.ByteString getAssetBytes(); + + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The reference. + */ + java.lang.String getReference(); + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The bytes for reference. + */ + com.google.protobuf.ByteString + getReferenceBytes(); } /** *
-   * Asset value information used within a transfer
+   * Represents a request to transfer from one set of accounts to another
    * 
* - * Protobuf type {@code vega.FinancialAmount} + * Protobuf type {@code vega.TransferRequest} */ - public static final class FinancialAmount extends + public static final class TransferRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.FinancialAmount) - FinancialAmountOrBuilder { + // @@protoc_insertion_point(message_implements:vega.TransferRequest) + TransferRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use FinancialAmount.newBuilder() to construct. - private FinancialAmount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use TransferRequest.newBuilder() to construct. + private TransferRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinancialAmount() { + private TransferRequest() { + fromAccount_ = java.util.Collections.emptyList(); + toAccount_ = java.util.Collections.emptyList(); asset_ = ""; + reference_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new FinancialAmount(); + return new TransferRequest(); } @java.lang.Override @@ -37104,7 +35398,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private FinancialAmount( + private TransferRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -37112,6 +35406,7 @@ private FinancialAmount( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -37122,17 +35417,46 @@ private FinancialAmount( case 0: done = true; break; - case 8: { + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fromAccount_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fromAccount_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + toAccount_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + toAccount_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); + break; + } + case 24: { amount_ = input.readUInt64(); break; } - case 18: { + case 32: { + + minAmount_ = input.readUInt64(); + break; + } + case 42: { java.lang.String s = input.readStringRequireUtf8(); asset_ = s; break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + reference_ = s; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -37148,31 +35472,157 @@ private FinancialAmount( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fromAccount_ = java.util.Collections.unmodifiableList(fromAccount_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + toAccount_ = java.util.Collections.unmodifiableList(toAccount_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.FinancialAmount.class, io.vegaprotocol.vega.Vega.FinancialAmount.Builder.class); + io.vegaprotocol.vega.Vega.TransferRequest.class, io.vegaprotocol.vega.Vega.TransferRequest.Builder.class); } - public static final int AMOUNT_FIELD_NUMBER = 1; + public static final int FROM_ACCOUNT_FIELD_NUMBER = 1; + private java.util.List fromAccount_; + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + @java.lang.Override + public java.util.List getFromAccountList() { + return fromAccount_; + } + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + @java.lang.Override + public java.util.List + getFromAccountOrBuilderList() { + return fromAccount_; + } + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + @java.lang.Override + public int getFromAccountCount() { + return fromAccount_.size(); + } + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Account getFromAccount(int index) { + return fromAccount_.get(index); + } + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( + int index) { + return fromAccount_.get(index); + } + + public static final int TO_ACCOUNT_FIELD_NUMBER = 2; + private java.util.List toAccount_; + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + @java.lang.Override + public java.util.List getToAccountList() { + return toAccount_; + } + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + @java.lang.Override + public java.util.List + getToAccountOrBuilderList() { + return toAccount_; + } + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + @java.lang.Override + public int getToAccountCount() { + return toAccount_.size(); + } + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Account getToAccount(int index) { + return toAccount_.get(index); + } + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( + int index) { + return toAccount_.get(index); + } + + public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** *
-     * A signed integer amount of asset
+     * An amount to transfer for the asset
      * 
* - * uint64 amount = 1 [json_name = "amount"]; + * uint64 amount = 3 [json_name = "amount"]; * @return The amount. */ @java.lang.Override @@ -37180,14 +35630,29 @@ public long getAmount() { return amount_; } - public static final int ASSET_FIELD_NUMBER = 2; + public static final int MIN_AMOUNT_FIELD_NUMBER = 4; + private long minAmount_; + /** + *
+     * A minimum amount
+     * 
+ * + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. + */ + @java.lang.Override + public long getMinAmount() { + return minAmount_; + } + + public static final int ASSET_FIELD_NUMBER = 5; private volatile java.lang.Object asset_; /** *
      * Asset identifier
      * 
* - * string asset = 2 [json_name = "asset"]; + * string asset = 5 [json_name = "asset"]; * @return The asset. */ @java.lang.Override @@ -37208,7 +35673,7 @@ public java.lang.String getAsset() { * Asset identifier * * - * string asset = 2 [json_name = "asset"]; + * string asset = 5 [json_name = "asset"]; * @return The bytes for asset. */ @java.lang.Override @@ -37226,25 +35691,83 @@ public java.lang.String getAsset() { } } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final int REFERENCE_FIELD_NUMBER = 6; + private volatile java.lang.Object reference_; + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The reference. + */ + @java.lang.Override + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } + } + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The bytes for reference. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fromAccount_.size(); i++) { + output.writeMessage(1, fromAccount_.get(i)); + } + for (int i = 0; i < toAccount_.size(); i++) { + output.writeMessage(2, toAccount_.get(i)); + } if (amount_ != 0L) { - output.writeUInt64(1, amount_); + output.writeUInt64(3, amount_); + } + if (minAmount_ != 0L) { + output.writeUInt64(4, minAmount_); } if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, asset_); + } + if (!getReferenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, reference_); } unknownFields.writeTo(output); } @@ -37255,12 +35778,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + for (int i = 0; i < fromAccount_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fromAccount_.get(i)); + } + for (int i = 0; i < toAccount_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, toAccount_.get(i)); + } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, amount_); + .computeUInt64Size(3, amount_); + } + if (minAmount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, minAmount_); } if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, asset_); + } + if (!getReferenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, reference_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -37272,15 +35810,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.FinancialAmount)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferRequest)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.FinancialAmount other = (io.vegaprotocol.vega.Vega.FinancialAmount) obj; + io.vegaprotocol.vega.Vega.TransferRequest other = (io.vegaprotocol.vega.Vega.TransferRequest) obj; + if (!getFromAccountList() + .equals(other.getFromAccountList())) return false; + if (!getToAccountList() + .equals(other.getToAccountList())) return false; if (getAmount() != other.getAmount()) return false; + if (getMinAmount() + != other.getMinAmount()) return false; if (!getAsset() .equals(other.getAsset())) return false; + if (!getReference() + .equals(other.getReference())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -37292,79 +35838,92 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (getFromAccountCount() > 0) { + hash = (37 * hash) + FROM_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getFromAccountList().hashCode(); + } + if (getToAccountCount() > 0) { + hash = (37 * hash) + TO_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getToAccountList().hashCode(); + } hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); + hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinAmount()); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.TransferRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( + public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -37377,7 +35936,7 @@ public static io.vegaprotocol.vega.Vega.FinancialAmount parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.FinancialAmount prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -37394,29 +35953,29 @@ protected Builder newBuilderForType( } /** *
-     * Asset value information used within a transfer
+     * Represents a request to transfer from one set of accounts to another
      * 
* - * Protobuf type {@code vega.FinancialAmount} + * Protobuf type {@code vega.TransferRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.FinancialAmount) - io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.TransferRequest) + io.vegaprotocol.vega.Vega.TransferRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.FinancialAmount.class, io.vegaprotocol.vega.Vega.FinancialAmount.Builder.class); + io.vegaprotocol.vega.Vega.TransferRequest.class, io.vegaprotocol.vega.Vega.TransferRequest.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.FinancialAmount.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.TransferRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -37429,32 +35988,50 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getFromAccountFieldBuilder(); + getToAccountFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); + if (fromAccountBuilder_ == null) { + fromAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fromAccountBuilder_.clear(); + } + if (toAccountBuilder_ == null) { + toAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + toAccountBuilder_.clear(); + } amount_ = 0L; + minAmount_ = 0L; + asset_ = ""; + reference_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_FinancialAmount_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.TransferRequest.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmount build() { - io.vegaprotocol.vega.Vega.FinancialAmount result = buildPartial(); + public io.vegaprotocol.vega.Vega.TransferRequest build() { + io.vegaprotocol.vega.Vega.TransferRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -37462,10 +36039,31 @@ public io.vegaprotocol.vega.Vega.FinancialAmount build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmount buildPartial() { - io.vegaprotocol.vega.Vega.FinancialAmount result = new io.vegaprotocol.vega.Vega.FinancialAmount(this); + public io.vegaprotocol.vega.Vega.TransferRequest buildPartial() { + io.vegaprotocol.vega.Vega.TransferRequest result = new io.vegaprotocol.vega.Vega.TransferRequest(this); + int from_bitField0_ = bitField0_; + if (fromAccountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fromAccount_ = java.util.Collections.unmodifiableList(fromAccount_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fromAccount_ = fromAccount_; + } else { + result.fromAccount_ = fromAccountBuilder_.build(); + } + if (toAccountBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + toAccount_ = java.util.Collections.unmodifiableList(toAccount_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.toAccount_ = toAccount_; + } else { + result.toAccount_ = toAccountBuilder_.build(); + } result.amount_ = amount_; + result.minAmount_ = minAmount_; result.asset_ = asset_; + result.reference_ = reference_; onBuilt(); return result; } @@ -37504,23 +36102,82 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.FinancialAmount) { - return mergeFrom((io.vegaprotocol.vega.Vega.FinancialAmount)other); + if (other instanceof io.vegaprotocol.vega.Vega.TransferRequest) { + return mergeFrom((io.vegaprotocol.vega.Vega.TransferRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.FinancialAmount other) { - if (other == io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance()) return this; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferRequest other) { + if (other == io.vegaprotocol.vega.Vega.TransferRequest.getDefaultInstance()) return this; + if (fromAccountBuilder_ == null) { + if (!other.fromAccount_.isEmpty()) { + if (fromAccount_.isEmpty()) { + fromAccount_ = other.fromAccount_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFromAccountIsMutable(); + fromAccount_.addAll(other.fromAccount_); + } + onChanged(); + } + } else { + if (!other.fromAccount_.isEmpty()) { + if (fromAccountBuilder_.isEmpty()) { + fromAccountBuilder_.dispose(); + fromAccountBuilder_ = null; + fromAccount_ = other.fromAccount_; + bitField0_ = (bitField0_ & ~0x00000001); + fromAccountBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFromAccountFieldBuilder() : null; + } else { + fromAccountBuilder_.addAllMessages(other.fromAccount_); + } + } + } + if (toAccountBuilder_ == null) { + if (!other.toAccount_.isEmpty()) { + if (toAccount_.isEmpty()) { + toAccount_ = other.toAccount_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureToAccountIsMutable(); + toAccount_.addAll(other.toAccount_); + } + onChanged(); + } + } else { + if (!other.toAccount_.isEmpty()) { + if (toAccountBuilder_.isEmpty()) { + toAccountBuilder_.dispose(); + toAccountBuilder_ = null; + toAccount_ = other.toAccount_; + bitField0_ = (bitField0_ & ~0x00000002); + toAccountBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getToAccountFieldBuilder() : null; + } else { + toAccountBuilder_.addAllMessages(other.toAccount_); + } + } + } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } + if (other.getMinAmount() != 0L) { + setMinAmount(other.getMinAmount()); + } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; onChanged(); } + if (!other.getReference().isEmpty()) { + reference_ = other.reference_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -37536,11 +36193,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.FinancialAmount parsedMessage = null; + io.vegaprotocol.vega.Vega.TransferRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.FinancialAmount) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.TransferRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -37549,304 +36206,4638 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + + private java.util.List fromAccount_ = + java.util.Collections.emptyList(); + private void ensureFromAccountIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fromAccount_ = new java.util.ArrayList(fromAccount_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> fromAccountBuilder_; - private long amount_ ; /** *
-       * A signed integer amount of asset
+       * One or more accounts to transfer from
        * 
* - * uint64 amount = 1 [json_name = "amount"]; - * @return The amount. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.util.List getFromAccountList() { + if (fromAccountBuilder_ == null) { + return java.util.Collections.unmodifiableList(fromAccount_); + } else { + return fromAccountBuilder_.getMessageList(); + } } /** *
-       * A signed integer amount of asset
+       * One or more accounts to transfer from
        * 
* - * uint64 amount = 1 [json_name = "amount"]; - * @param value The amount to set. - * @return This builder for chaining. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; + public int getFromAccountCount() { + if (fromAccountBuilder_ == null) { + return fromAccount_.size(); + } else { + return fromAccountBuilder_.getCount(); + } } /** *
-       * A signed integer amount of asset
+       * One or more accounts to transfer from
        * 
* - * uint64 amount = 1 [json_name = "amount"]; - * @return This builder for chaining. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.Account getFromAccount(int index) { + if (fromAccountBuilder_ == null) { + return fromAccount_.get(index); + } else { + return fromAccountBuilder_.getMessage(index); + } } - - private java.lang.Object asset_ = ""; /** *
-       * Asset identifier
+       * One or more accounts to transfer from
        * 
* - * string asset = 2 [json_name = "asset"]; - * @return The asset. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; + public Builder setFromAccount( + int index, io.vegaprotocol.vega.Vega.Account value) { + if (fromAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFromAccountIsMutable(); + fromAccount_.set(index, value); + onChanged(); } else { - return (java.lang.String) ref; + fromAccountBuilder_.setMessage(index, value); } + return this; } /** *
-       * Asset identifier
+       * One or more accounts to transfer from
        * 
* - * string asset = 2 [json_name = "asset"]; - * @return The bytes for asset. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; + public Builder setFromAccount( + int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (fromAccountBuilder_ == null) { + ensureFromAccountIsMutable(); + fromAccount_.set(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + fromAccountBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** *
-       * Asset identifier
+       * One or more accounts to transfer from
        * 
* - * string asset = 2 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); + public Builder addFromAccount(io.vegaprotocol.vega.Vega.Account value) { + if (fromAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFromAccountIsMutable(); + fromAccount_.add(value); + onChanged(); + } else { + fromAccountBuilder_.addMessage(value); + } return this; } /** *
-       * Asset identifier
+       * One or more accounts to transfer from
        * 
* - * string asset = 2 [json_name = "asset"]; - * @return This builder for chaining. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public Builder clearAsset() { - - asset_ = getDefaultInstance().getAsset(); - onChanged(); + public Builder addFromAccount( + int index, io.vegaprotocol.vega.Vega.Account value) { + if (fromAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFromAccountIsMutable(); + fromAccount_.add(index, value); + onChanged(); + } else { + fromAccountBuilder_.addMessage(index, value); + } return this; } /** *
-       * Asset identifier
+       * One or more accounts to transfer from
        * 
* - * string asset = 2 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); + public Builder addFromAccount( + io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (fromAccountBuilder_ == null) { + ensureFromAccountIsMutable(); + fromAccount_.add(builderForValue.build()); + onChanged(); + } else { + fromAccountBuilder_.addMessage(builderForValue.build()); + } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public Builder addFromAccount( + int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (fromAccountBuilder_ == null) { + ensureFromAccountIsMutable(); + fromAccount_.add(index, builderForValue.build()); + onChanged(); + } else { + fromAccountBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public Builder addAllFromAccount( + java.lang.Iterable values) { + if (fromAccountBuilder_ == null) { + ensureFromAccountIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fromAccount_); + onChanged(); + } else { + fromAccountBuilder_.addAllMessages(values); + } + return this; } - - - // @@protoc_insertion_point(builder_scope:vega.FinancialAmount) - } - - // @@protoc_insertion_point(class_scope:vega.FinancialAmount) - private static final io.vegaprotocol.vega.Vega.FinancialAmount DEFAULT_INSTANCE; + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public Builder clearFromAccount() { + if (fromAccountBuilder_ == null) { + fromAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fromAccountBuilder_.clear(); + } + return this; + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public Builder removeFromAccount(int index) { + if (fromAccountBuilder_ == null) { + ensureFromAccountIsMutable(); + fromAccount_.remove(index); + onChanged(); + } else { + fromAccountBuilder_.remove(index); + } + return this; + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder getFromAccountBuilder( + int index) { + return getFromAccountFieldBuilder().getBuilder(index); + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( + int index) { + if (fromAccountBuilder_ == null) { + return fromAccount_.get(index); } else { + return fromAccountBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public java.util.List + getFromAccountOrBuilderList() { + if (fromAccountBuilder_ != null) { + return fromAccountBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fromAccount_); + } + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder addFromAccountBuilder() { + return getFromAccountFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder addFromAccountBuilder( + int index) { + return getFromAccountFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + */ + public java.util.List + getFromAccountBuilderList() { + return getFromAccountFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> + getFromAccountFieldBuilder() { + if (fromAccountBuilder_ == null) { + fromAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( + fromAccount_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fromAccount_ = null; + } + return fromAccountBuilder_; + } + + private java.util.List toAccount_ = + java.util.Collections.emptyList(); + private void ensureToAccountIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + toAccount_ = new java.util.ArrayList(toAccount_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> toAccountBuilder_; + + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public java.util.List getToAccountList() { + if (toAccountBuilder_ == null) { + return java.util.Collections.unmodifiableList(toAccount_); + } else { + return toAccountBuilder_.getMessageList(); + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public int getToAccountCount() { + if (toAccountBuilder_ == null) { + return toAccount_.size(); + } else { + return toAccountBuilder_.getCount(); + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account getToAccount(int index) { + if (toAccountBuilder_ == null) { + return toAccount_.get(index); + } else { + return toAccountBuilder_.getMessage(index); + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder setToAccount( + int index, io.vegaprotocol.vega.Vega.Account value) { + if (toAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToAccountIsMutable(); + toAccount_.set(index, value); + onChanged(); + } else { + toAccountBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder setToAccount( + int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (toAccountBuilder_ == null) { + ensureToAccountIsMutable(); + toAccount_.set(index, builderForValue.build()); + onChanged(); + } else { + toAccountBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder addToAccount(io.vegaprotocol.vega.Vega.Account value) { + if (toAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToAccountIsMutable(); + toAccount_.add(value); + onChanged(); + } else { + toAccountBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder addToAccount( + int index, io.vegaprotocol.vega.Vega.Account value) { + if (toAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToAccountIsMutable(); + toAccount_.add(index, value); + onChanged(); + } else { + toAccountBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder addToAccount( + io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (toAccountBuilder_ == null) { + ensureToAccountIsMutable(); + toAccount_.add(builderForValue.build()); + onChanged(); + } else { + toAccountBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder addToAccount( + int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (toAccountBuilder_ == null) { + ensureToAccountIsMutable(); + toAccount_.add(index, builderForValue.build()); + onChanged(); + } else { + toAccountBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder addAllToAccount( + java.lang.Iterable values) { + if (toAccountBuilder_ == null) { + ensureToAccountIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, toAccount_); + onChanged(); + } else { + toAccountBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder clearToAccount() { + if (toAccountBuilder_ == null) { + toAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + toAccountBuilder_.clear(); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public Builder removeToAccount(int index) { + if (toAccountBuilder_ == null) { + ensureToAccountIsMutable(); + toAccount_.remove(index); + onChanged(); + } else { + toAccountBuilder_.remove(index); + } + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder getToAccountBuilder( + int index) { + return getToAccountFieldBuilder().getBuilder(index); + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( + int index) { + if (toAccountBuilder_ == null) { + return toAccount_.get(index); } else { + return toAccountBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public java.util.List + getToAccountOrBuilderList() { + if (toAccountBuilder_ != null) { + return toAccountBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toAccount_); + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder addToAccountBuilder() { + return getToAccountFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder addToAccountBuilder( + int index) { + return getToAccountFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + */ + public java.util.List + getToAccountBuilderList() { + return getToAccountFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> + getToAccountFieldBuilder() { + if (toAccountBuilder_ == null) { + toAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( + toAccount_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + toAccount_ = null; + } + return toAccountBuilder_; + } + + private long amount_ ; + /** + *
+       * An amount to transfer for the asset
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + *
+       * An amount to transfer for the asset
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * An amount to transfer for the asset
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private long minAmount_ ; + /** + *
+       * A minimum amount
+       * 
+ * + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return The minAmount. + */ + @java.lang.Override + public long getMinAmount() { + return minAmount_; + } + /** + *
+       * A minimum amount
+       * 
+ * + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @param value The minAmount to set. + * @return This builder for chaining. + */ + public Builder setMinAmount(long value) { + + minAmount_ = value; + onChanged(); + return this; + } + /** + *
+       * A minimum amount
+       * 
+ * + * uint64 min_amount = 4 [json_name = "minAmount"]; + * @return This builder for chaining. + */ + public Builder clearMinAmount() { + + minAmount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 5 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 5 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 5 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 5 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + *
+       * Asset identifier
+       * 
+ * + * string asset = 5 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + + private java.lang.Object reference_ = ""; + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The reference. + */ + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return The bytes for reference. + */ + public com.google.protobuf.ByteString + getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 6 [json_name = "reference"]; + * @param value The reference to set. + * @return This builder for chaining. + */ + public Builder setReference( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reference_ = value; + onChanged(); + return this; + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 6 [json_name = "reference"]; + * @return This builder for chaining. + */ + public Builder clearReference() { + + reference_ = getDefaultInstance().getReference(); + onChanged(); + return this; + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 6 [json_name = "reference"]; + * @param value The bytes for reference to set. + * @return This builder for chaining. + */ + public Builder setReferenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reference_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.TransferRequest) + } + + // @@protoc_insertion_point(class_scope:vega.TransferRequest) + private static final io.vegaprotocol.vega.Vega.TransferRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferRequest(); + } + + public static io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransferRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransferRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LedgerEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.LedgerEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The fromAccount. + */ + java.lang.String getFromAccount(); + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The bytes for fromAccount. + */ + com.google.protobuf.ByteString + getFromAccountBytes(); + + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The toAccount. + */ + java.lang.String getToAccount(); + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The bytes for toAccount. + */ + com.google.protobuf.ByteString + getToAccountBytes(); + + /** + *
+     * An amount to transfer
+     * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + long getAmount(); + + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The reference. + */ + java.lang.String getReference(); + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The bytes for reference. + */ + com.google.protobuf.ByteString + getReferenceBytes(); + + /** + *
+     * Type of ledger entry
+     * 
+ * + * string type = 5 [json_name = "type"]; + * @return The type. + */ + java.lang.String getType(); + /** + *
+     * Type of ledger entry
+     * 
+ * + * string type = 5 [json_name = "type"]; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + long getTimestamp(); + } + /** + *
+   * Represents a ledger entry on Vega
+   * 
+ * + * Protobuf type {@code vega.LedgerEntry} + */ + public static final class LedgerEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.LedgerEntry) + LedgerEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use LedgerEntry.newBuilder() to construct. + private LedgerEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LedgerEntry() { + fromAccount_ = ""; + toAccount_ = ""; + reference_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LedgerEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LedgerEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + fromAccount_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + toAccount_ = s; + break; + } + case 24: { + + amount_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + reference_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 48: { + + timestamp_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LedgerEntry.class, io.vegaprotocol.vega.Vega.LedgerEntry.Builder.class); + } + + public static final int FROM_ACCOUNT_FIELD_NUMBER = 1; + private volatile java.lang.Object fromAccount_; + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The fromAccount. + */ + @java.lang.Override + public java.lang.String getFromAccount() { + java.lang.Object ref = fromAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromAccount_ = s; + return s; + } + } + /** + *
+     * One or more accounts to transfer from
+     * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The bytes for fromAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFromAccountBytes() { + java.lang.Object ref = fromAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fromAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TO_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object toAccount_; + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The toAccount. + */ + @java.lang.Override + public java.lang.String getToAccount() { + java.lang.Object ref = toAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toAccount_ = s; + return s; + } + } + /** + *
+     * One or more accounts to transfer to
+     * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The bytes for toAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getToAccountBytes() { + java.lang.Object ref = toAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + toAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private long amount_; + /** + *
+     * An amount to transfer
+     * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int REFERENCE_FIELD_NUMBER = 4; + private volatile java.lang.Object reference_; + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The reference. + */ + @java.lang.Override + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } + } + /** + *
+     * A reference for auditing purposes
+     * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The bytes for reference. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object type_; + /** + *
+     * Type of ledger entry
+     * 
+ * + * string type = 5 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + *
+     * Type of ledger entry
+     * 
+ * + * string type = 5 [json_name = "type"]; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_FIELD_NUMBER = 6; + private long timestamp_; + /** + *
+     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFromAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromAccount_); + } + if (!getToAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toAccount_); + } + if (amount_ != 0L) { + output.writeUInt64(3, amount_); + } + if (!getReferenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reference_); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, type_); + } + if (timestamp_ != 0L) { + output.writeInt64(6, timestamp_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFromAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromAccount_); + } + if (!getToAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toAccount_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, amount_); + } + if (!getReferenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reference_); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, timestamp_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.Vega.LedgerEntry)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.LedgerEntry other = (io.vegaprotocol.vega.Vega.LedgerEntry) obj; + + if (!getFromAccount() + .equals(other.getFromAccount())) return false; + if (!getToAccount() + .equals(other.getToAccount())) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getReference() + .equals(other.getReference())) return false; + if (!getType() + .equals(other.getType())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getFromAccount().hashCode(); + hash = (37 * hash) + TO_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getToAccount().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.LedgerEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a ledger entry on Vega
+     * 
+ * + * Protobuf type {@code vega.LedgerEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.LedgerEntry) + io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LedgerEntry.class, io.vegaprotocol.vega.Vega.LedgerEntry.Builder.class); + } + + // Construct using io.vegaprotocol.vega.Vega.LedgerEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fromAccount_ = ""; + + toAccount_ = ""; + + amount_ = 0L; + + reference_ = ""; + + type_ = ""; + + timestamp_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntry build() { + io.vegaprotocol.vega.Vega.LedgerEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntry buildPartial() { + io.vegaprotocol.vega.Vega.LedgerEntry result = new io.vegaprotocol.vega.Vega.LedgerEntry(this); + result.fromAccount_ = fromAccount_; + result.toAccount_ = toAccount_; + result.amount_ = amount_; + result.reference_ = reference_; + result.type_ = type_; + result.timestamp_ = timestamp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.LedgerEntry) { + return mergeFrom((io.vegaprotocol.vega.Vega.LedgerEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.LedgerEntry other) { + if (other == io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()) return this; + if (!other.getFromAccount().isEmpty()) { + fromAccount_ = other.fromAccount_; + onChanged(); + } + if (!other.getToAccount().isEmpty()) { + toAccount_ = other.toAccount_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getReference().isEmpty()) { + reference_ = other.reference_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.LedgerEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.LedgerEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object fromAccount_ = ""; + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The fromAccount. + */ + public java.lang.String getFromAccount() { + java.lang.Object ref = fromAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return The bytes for fromAccount. + */ + public com.google.protobuf.ByteString + getFromAccountBytes() { + java.lang.Object ref = fromAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fromAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @param value The fromAccount to set. + * @return This builder for chaining. + */ + public Builder setFromAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fromAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @return This builder for chaining. + */ + public Builder clearFromAccount() { + + fromAccount_ = getDefaultInstance().getFromAccount(); + onChanged(); + return this; + } + /** + *
+       * One or more accounts to transfer from
+       * 
+ * + * string from_account = 1 [json_name = "fromAccount"]; + * @param value The bytes for fromAccount to set. + * @return This builder for chaining. + */ + public Builder setFromAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fromAccount_ = value; + onChanged(); + return this; + } + + private java.lang.Object toAccount_ = ""; + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The toAccount. + */ + public java.lang.String getToAccount() { + java.lang.Object ref = toAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return The bytes for toAccount. + */ + public com.google.protobuf.ByteString + getToAccountBytes() { + java.lang.Object ref = toAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + toAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @param value The toAccount to set. + * @return This builder for chaining. + */ + public Builder setToAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + toAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @return This builder for chaining. + */ + public Builder clearToAccount() { + + toAccount_ = getDefaultInstance().getToAccount(); + onChanged(); + return this; + } + /** + *
+       * One or more accounts to transfer to
+       * 
+ * + * string to_account = 2 [json_name = "toAccount"]; + * @param value The bytes for toAccount to set. + * @return This builder for chaining. + */ + public Builder setToAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + toAccount_ = value; + onChanged(); + return this; + } + + private long amount_ ; + /** + *
+       * An amount to transfer
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + *
+       * An amount to transfer
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * An amount to transfer
+       * 
+ * + * uint64 amount = 3 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object reference_ = ""; + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The reference. + */ + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return The bytes for reference. + */ + public com.google.protobuf.ByteString + getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 4 [json_name = "reference"]; + * @param value The reference to set. + * @return This builder for chaining. + */ + public Builder setReference( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reference_ = value; + onChanged(); + return this; + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 4 [json_name = "reference"]; + * @return This builder for chaining. + */ + public Builder clearReference() { + + reference_ = getDefaultInstance().getReference(); + onChanged(); + return this; + } + /** + *
+       * A reference for auditing purposes
+       * 
+ * + * string reference = 4 [json_name = "reference"]; + * @param value The bytes for reference to set. + * @return This builder for chaining. + */ + public Builder setReferenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reference_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + *
+       * Type of ledger entry
+       * 
+ * + * string type = 5 [json_name = "type"]; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Type of ledger entry
+       * 
+ * + * string type = 5 [json_name = "type"]; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Type of ledger entry
+       * 
+ * + * string type = 5 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of ledger entry
+       * 
+ * + * string type = 5 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * Type of ledger entry
+       * 
+ * + * string type = 5 [json_name = "type"]; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + *
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 6 [json_name = "timestamp"]; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + *
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.LedgerEntry) + } + + // @@protoc_insertion_point(class_scope:vega.LedgerEntry) + private static final io.vegaprotocol.vega.Vega.LedgerEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LedgerEntry(); + } + + public static io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LedgerEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LedgerEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransferBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.TransferBalance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return The account. + */ + io.vegaprotocol.vega.Vega.Account getAccount(); + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder(); + + /** + *
+     * The balance relating to the transfer
+     * 
+ * + * uint64 balance = 2 [json_name = "balance"]; + * @return The balance. + */ + long getBalance(); + } + /** + *
+   * Represents the balance for an account during a transfer
+   * 
+ * + * Protobuf type {@code vega.TransferBalance} + */ + public static final class TransferBalance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.TransferBalance) + TransferBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TransferBalance.newBuilder() to construct. + private TransferBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransferBalance() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransferBalance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TransferBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.vegaprotocol.vega.Vega.Account.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); + } + account_ = input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + balance_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.TransferBalance.class, io.vegaprotocol.vega.Vega.TransferBalance.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private io.vegaprotocol.vega.Vega.Account account_; + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return The account. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Account getAccount() { + return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; + } + /** + *
+     * The account relating to the transfer
+     * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { + return getAccount(); + } + + public static final int BALANCE_FIELD_NUMBER = 2; + private long balance_; + /** + *
+     * The balance relating to the transfer
+     * 
+ * + * uint64 balance = 2 [json_name = "balance"]; + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (balance_ != 0L) { + output.writeUInt64(2, balance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAccount()); + } + if (balance_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferBalance)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.TransferBalance other = (io.vegaprotocol.vega.Vega.TransferBalance) obj; + + if (hasAccount() != other.hasAccount()) return false; + if (hasAccount()) { + if (!getAccount() + .equals(other.getAccount())) return false; + } + if (getBalance() + != other.getBalance()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBalance()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents the balance for an account during a transfer
+     * 
+ * + * Protobuf type {@code vega.TransferBalance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.TransferBalance) + io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.TransferBalance.class, io.vegaprotocol.vega.Vega.TransferBalance.Builder.class); + } + + // Construct using io.vegaprotocol.vega.Vega.TransferBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (accountBuilder_ == null) { + account_ = null; + } else { + account_ = null; + accountBuilder_ = null; + } + balance_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalance build() { + io.vegaprotocol.vega.Vega.TransferBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalance buildPartial() { + io.vegaprotocol.vega.Vega.TransferBalance result = new io.vegaprotocol.vega.Vega.TransferBalance(this); + if (accountBuilder_ == null) { + result.account_ = account_; + } else { + result.account_ = accountBuilder_.build(); + } + result.balance_ = balance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.TransferBalance) { + return mergeFrom((io.vegaprotocol.vega.Vega.TransferBalance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferBalance other) { + if (other == io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()) return this; + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + if (other.getBalance() != 0L) { + setBalance(other.getBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.TransferBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.TransferBalance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.vegaprotocol.vega.Vega.Account account_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountBuilder_; + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return accountBuilder_ != null || account_ != null; + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + * @return The account. + */ + public io.vegaprotocol.vega.Vega.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; + } else { + return accountBuilder_.getMessage(); + } + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public Builder setAccount(io.vegaprotocol.vega.Vega.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public Builder setAccount( + io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public Builder mergeAccount(io.vegaprotocol.vega.Vega.Account value) { + if (accountBuilder_ == null) { + if (account_ != null) { + account_ = + io.vegaprotocol.vega.Vega.Account.newBuilder(account_).mergeFrom(value).buildPartial(); + } else { + account_ = value; + } + onChanged(); + } else { + accountBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + account_ = null; + onChanged(); + } else { + account_ = null; + accountBuilder_ = null; + } + + return this; + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public io.vegaprotocol.vega.Vega.Account.Builder getAccountBuilder() { + + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null ? + io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; + } + } + /** + *
+       * The account relating to the transfer
+       * 
+ * + * .vega.Account account = 1 [json_name = "account"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( + getAccount(), + getParentForChildren(), + isClean()); + account_ = null; + } + return accountBuilder_; + } + + private long balance_ ; + /** + *
+       * The balance relating to the transfer
+       * 
+ * + * uint64 balance = 2 [json_name = "balance"]; + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + /** + *
+       * The balance relating to the transfer
+       * 
+ * + * uint64 balance = 2 [json_name = "balance"]; + * @param value The balance to set. + * @return This builder for chaining. + */ + public Builder setBalance(long value) { + + balance_ = value; + onChanged(); + return this; + } + /** + *
+       * The balance relating to the transfer
+       * 
+ * + * uint64 balance = 2 [json_name = "balance"]; + * @return This builder for chaining. + */ + public Builder clearBalance() { + + balance_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.TransferBalance) + } + + // @@protoc_insertion_point(class_scope:vega.TransferBalance) + private static final io.vegaprotocol.vega.Vega.TransferBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferBalance(); + } + + public static io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransferBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransferBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransferResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.TransferResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + java.util.List + getTransfersList(); + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index); + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + int getTransfersCount(); + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + java.util.List + getTransfersOrBuilderList(); + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( + int index); + + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + java.util.List + getBalancesList(); + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index); + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + int getBalancesCount(); + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + java.util.List + getBalancesOrBuilderList(); + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( + int index); + } + /** + *
+   * Represents the response from a transfer
+   * 
+ * + * Protobuf type {@code vega.TransferResponse} + */ + public static final class TransferResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.TransferResponse) + TransferResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TransferResponse.newBuilder() to construct. + private TransferResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransferResponse() { + transfers_ = java.util.Collections.emptyList(); + balances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransferResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TransferResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + transfers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + transfers_.add( + input.readMessage(io.vegaprotocol.vega.Vega.LedgerEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + balances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + balances_.add( + input.readMessage(io.vegaprotocol.vega.Vega.TransferBalance.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + transfers_ = java.util.Collections.unmodifiableList(transfers_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + balances_ = java.util.Collections.unmodifiableList(balances_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.TransferResponse.class, io.vegaprotocol.vega.Vega.TransferResponse.Builder.class); + } + + public static final int TRANSFERS_FIELD_NUMBER = 1; + private java.util.List transfers_; + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + @java.lang.Override + public java.util.List getTransfersList() { + return transfers_; + } + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + @java.lang.Override + public java.util.List + getTransfersOrBuilderList() { + return transfers_; + } + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + @java.lang.Override + public int getTransfersCount() { + return transfers_.size(); + } + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index) { + return transfers_.get(index); + } + /** + *
+     * One or more ledger entries representing the transfers
+     * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( + int index) { + return transfers_.get(index); + } + + public static final int BALANCES_FIELD_NUMBER = 2; + private java.util.List balances_; + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + @java.lang.Override + public java.util.List getBalancesList() { + return balances_; + } + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + @java.lang.Override + public java.util.List + getBalancesOrBuilderList() { + return balances_; + } + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + @java.lang.Override + public int getBalancesCount() { + return balances_.size(); + } + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index) { + return balances_.get(index); + } + /** + *
+     * One or more account balances
+     * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( + int index) { + return balances_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < transfers_.size(); i++) { + output.writeMessage(1, transfers_.get(i)); + } + for (int i = 0; i < balances_.size(); i++) { + output.writeMessage(2, balances_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < transfers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transfers_.get(i)); + } + for (int i = 0; i < balances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, balances_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.TransferResponse other = (io.vegaprotocol.vega.Vega.TransferResponse) obj; + + if (!getTransfersList() + .equals(other.getTransfersList())) return false; + if (!getBalancesList() + .equals(other.getBalancesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTransfersCount() > 0) { + hash = (37 * hash) + TRANSFERS_FIELD_NUMBER; + hash = (53 * hash) + getTransfersList().hashCode(); + } + if (getBalancesCount() > 0) { + hash = (37 * hash) + BALANCES_FIELD_NUMBER; + hash = (53 * hash) + getBalancesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents the response from a transfer
+     * 
+ * + * Protobuf type {@code vega.TransferResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.TransferResponse) + io.vegaprotocol.vega.Vega.TransferResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.TransferResponse.class, io.vegaprotocol.vega.Vega.TransferResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.Vega.TransferResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTransfersFieldBuilder(); + getBalancesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (transfersBuilder_ == null) { + transfers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + transfersBuilder_.clear(); + } + if (balancesBuilder_ == null) { + balances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + balancesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferResponse build() { + io.vegaprotocol.vega.Vega.TransferResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.TransferResponse buildPartial() { + io.vegaprotocol.vega.Vega.TransferResponse result = new io.vegaprotocol.vega.Vega.TransferResponse(this); + int from_bitField0_ = bitField0_; + if (transfersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transfers_ = java.util.Collections.unmodifiableList(transfers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transfers_ = transfers_; + } else { + result.transfers_ = transfersBuilder_.build(); + } + if (balancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + balances_ = java.util.Collections.unmodifiableList(balances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.balances_ = balances_; + } else { + result.balances_ = balancesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.TransferResponse) { + return mergeFrom((io.vegaprotocol.vega.Vega.TransferResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferResponse other) { + if (other == io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance()) return this; + if (transfersBuilder_ == null) { + if (!other.transfers_.isEmpty()) { + if (transfers_.isEmpty()) { + transfers_ = other.transfers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTransfersIsMutable(); + transfers_.addAll(other.transfers_); + } + onChanged(); + } + } else { + if (!other.transfers_.isEmpty()) { + if (transfersBuilder_.isEmpty()) { + transfersBuilder_.dispose(); + transfersBuilder_ = null; + transfers_ = other.transfers_; + bitField0_ = (bitField0_ & ~0x00000001); + transfersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTransfersFieldBuilder() : null; + } else { + transfersBuilder_.addAllMessages(other.transfers_); + } + } + } + if (balancesBuilder_ == null) { + if (!other.balances_.isEmpty()) { + if (balances_.isEmpty()) { + balances_ = other.balances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBalancesIsMutable(); + balances_.addAll(other.balances_); + } + onChanged(); + } + } else { + if (!other.balances_.isEmpty()) { + if (balancesBuilder_.isEmpty()) { + balancesBuilder_.dispose(); + balancesBuilder_ = null; + balances_ = other.balances_; + bitField0_ = (bitField0_ & ~0x00000002); + balancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBalancesFieldBuilder() : null; + } else { + balancesBuilder_.addAllMessages(other.balances_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.TransferResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.TransferResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List transfers_ = + java.util.Collections.emptyList(); + private void ensureTransfersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transfers_ = new java.util.ArrayList(transfers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder> transfersBuilder_; + + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public java.util.List getTransfersList() { + if (transfersBuilder_ == null) { + return java.util.Collections.unmodifiableList(transfers_); + } else { + return transfersBuilder_.getMessageList(); + } + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public int getTransfersCount() { + if (transfersBuilder_ == null) { + return transfers_.size(); + } else { + return transfersBuilder_.getCount(); + } + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index) { + if (transfersBuilder_ == null) { + return transfers_.get(index); + } else { + return transfersBuilder_.getMessage(index); + } + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder setTransfers( + int index, io.vegaprotocol.vega.Vega.LedgerEntry value) { + if (transfersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransfersIsMutable(); + transfers_.set(index, value); + onChanged(); + } else { + transfersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder setTransfers( + int index, io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { + if (transfersBuilder_ == null) { + ensureTransfersIsMutable(); + transfers_.set(index, builderForValue.build()); + onChanged(); + } else { + transfersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder addTransfers(io.vegaprotocol.vega.Vega.LedgerEntry value) { + if (transfersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransfersIsMutable(); + transfers_.add(value); + onChanged(); + } else { + transfersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder addTransfers( + int index, io.vegaprotocol.vega.Vega.LedgerEntry value) { + if (transfersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransfersIsMutable(); + transfers_.add(index, value); + onChanged(); + } else { + transfersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder addTransfers( + io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { + if (transfersBuilder_ == null) { + ensureTransfersIsMutable(); + transfers_.add(builderForValue.build()); + onChanged(); + } else { + transfersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder addTransfers( + int index, io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { + if (transfersBuilder_ == null) { + ensureTransfersIsMutable(); + transfers_.add(index, builderForValue.build()); + onChanged(); + } else { + transfersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder addAllTransfers( + java.lang.Iterable values) { + if (transfersBuilder_ == null) { + ensureTransfersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transfers_); + onChanged(); + } else { + transfersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder clearTransfers() { + if (transfersBuilder_ == null) { + transfers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + transfersBuilder_.clear(); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public Builder removeTransfers(int index) { + if (transfersBuilder_ == null) { + ensureTransfersIsMutable(); + transfers_.remove(index); + onChanged(); + } else { + transfersBuilder_.remove(index); + } + return this; + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public io.vegaprotocol.vega.Vega.LedgerEntry.Builder getTransfersBuilder( + int index) { + return getTransfersFieldBuilder().getBuilder(index); + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( + int index) { + if (transfersBuilder_ == null) { + return transfers_.get(index); } else { + return transfersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public java.util.List + getTransfersOrBuilderList() { + if (transfersBuilder_ != null) { + return transfersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transfers_); + } + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public io.vegaprotocol.vega.Vega.LedgerEntry.Builder addTransfersBuilder() { + return getTransfersFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()); + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public io.vegaprotocol.vega.Vega.LedgerEntry.Builder addTransfersBuilder( + int index) { + return getTransfersFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()); + } + /** + *
+       * One or more ledger entries representing the transfers
+       * 
+ * + * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + */ + public java.util.List + getTransfersBuilderList() { + return getTransfersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder> + getTransfersFieldBuilder() { + if (transfersBuilder_ == null) { + transfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder>( + transfers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + transfers_ = null; + } + return transfersBuilder_; + } + + private java.util.List balances_ = + java.util.Collections.emptyList(); + private void ensureBalancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + balances_ = new java.util.ArrayList(balances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder> balancesBuilder_; + + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public java.util.List getBalancesList() { + if (balancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(balances_); + } else { + return balancesBuilder_.getMessageList(); + } + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public int getBalancesCount() { + if (balancesBuilder_ == null) { + return balances_.size(); + } else { + return balancesBuilder_.getCount(); + } + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index) { + if (balancesBuilder_ == null) { + return balances_.get(index); + } else { + return balancesBuilder_.getMessage(index); + } + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder setBalances( + int index, io.vegaprotocol.vega.Vega.TransferBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.set(index, value); + onChanged(); + } else { + balancesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder setBalances( + int index, io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.set(index, builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder addBalances(io.vegaprotocol.vega.Vega.TransferBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.add(value); + onChanged(); + } else { + balancesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder addBalances( + int index, io.vegaprotocol.vega.Vega.TransferBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.add(index, value); + onChanged(); + } else { + balancesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder addBalances( + io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.add(builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder addBalances( + int index, io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.add(index, builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder addAllBalances( + java.lang.Iterable values) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, balances_); + onChanged(); + } else { + balancesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder clearBalances() { + if (balancesBuilder_ == null) { + balances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + balancesBuilder_.clear(); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public Builder removeBalances(int index) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.remove(index); + onChanged(); + } else { + balancesBuilder_.remove(index); + } + return this; + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.Vega.TransferBalance.Builder getBalancesBuilder( + int index) { + return getBalancesFieldBuilder().getBuilder(index); + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( + int index) { + if (balancesBuilder_ == null) { + return balances_.get(index); } else { + return balancesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public java.util.List + getBalancesOrBuilderList() { + if (balancesBuilder_ != null) { + return balancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(balances_); + } + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.Vega.TransferBalance.Builder addBalancesBuilder() { + return getBalancesFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()); + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.Vega.TransferBalance.Builder addBalancesBuilder( + int index) { + return getBalancesFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()); + } + /** + *
+       * One or more account balances
+       * 
+ * + * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + */ + public java.util.List + getBalancesBuilderList() { + return getBalancesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder> + getBalancesFieldBuilder() { + if (balancesBuilder_ == null) { + balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder>( + balances_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + balances_ = null; + } + return balancesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.TransferResponse) + } + + // @@protoc_insertion_point(class_scope:vega.TransferResponse) + private static final io.vegaprotocol.vega.Vega.TransferResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.FinancialAmount(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferResponse(); } - public static io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public FinancialAmount parsePartialFrom( + public TransferResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FinancialAmount(input, extensionRegistry); + return new TransferResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmount getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Transfer) + public interface MarginLevelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.MarginLevels) com.google.protobuf.MessageOrBuilder { /** *
-     * Party identifier for the owner of the transfer
+     * Maintenance margin value
      * 
* - * string owner = 1 [json_name = "owner"]; - * @return The owner. + * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The maintenanceMargin. */ - java.lang.String getOwner(); + long getMaintenanceMargin(); + /** *
-     * Party identifier for the owner of the transfer
+     * Search level value
      * 
* - * string owner = 1 [json_name = "owner"]; - * @return The bytes for owner. + * uint64 search_level = 2 [json_name = "searchLevel"]; + * @return The searchLevel. */ - com.google.protobuf.ByteString - getOwnerBytes(); + long getSearchLevel(); /** *
-     * A financial amount (of an asset) to transfer
+     * Initial margin value
      * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return Whether the amount field is set. + * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * @return The initialMargin. */ - boolean hasAmount(); + long getInitialMargin(); + /** *
-     * A financial amount (of an asset) to transfer
+     * Collateral release level value
      * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return The amount. + * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The collateralReleaseLevel. */ - io.vegaprotocol.vega.Vega.FinancialAmount getAmount(); + long getCollateralReleaseLevel(); + /** *
-     * A financial amount (of an asset) to transfer
+     * Party identifier
      * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string party_id = 5 [json_name = "partyId"]; + * @return The partyId. */ - io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder(); + java.lang.String getPartyId(); + /** + *
+     * Party identifier
+     * 
+ * + * string party_id = 5 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + com.google.protobuf.ByteString + getPartyIdBytes(); /** *
-     * The type of transfer, gives the reason for the transfer
+     * Market identifier
      * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. + * string market_id = 6 [json_name = "marketId"]; + * @return The marketId. */ - int getTypeValue(); + java.lang.String getMarketId(); /** *
-     * The type of transfer, gives the reason for the transfer
+     * Market identifier
      * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The type. + * string market_id = 6 [json_name = "marketId"]; + * @return The bytes for marketId. */ - io.vegaprotocol.vega.Vega.TransferType getType(); + com.google.protobuf.ByteString + getMarketIdBytes(); /** *
-     * A minimum amount
+     * Asset identifier
      * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. + * string asset = 7 [json_name = "asset"]; + * @return The asset. */ - long getMinAmount(); + java.lang.String getAsset(); + /** + *
+     * Asset identifier
+     * 
+ * + * string asset = 7 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + *
+     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 timestamp = 8 [json_name = "timestamp"]; + * @return The timestamp. + */ + long getTimestamp(); } /** *
-   * Represents a financial transfer within Vega
+   * Represents the margin levels for a party on a market at a given time
    * 
* - * Protobuf type {@code vega.Transfer} + * Protobuf type {@code vega.MarginLevels} */ - public static final class Transfer extends + public static final class MarginLevels extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Transfer) - TransferOrBuilder { + // @@protoc_insertion_point(message_implements:vega.MarginLevels) + MarginLevelsOrBuilder { private static final long serialVersionUID = 0L; - // Use Transfer.newBuilder() to construct. - private Transfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MarginLevels.newBuilder() to construct. + private MarginLevels(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Transfer() { - owner_ = ""; - type_ = 0; + private MarginLevels() { + partyId_ = ""; + marketId_ = ""; + asset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Transfer(); + return new MarginLevels(); } @java.lang.Override @@ -37854,7 +40845,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Transfer( + private MarginLevels( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -37872,34 +40863,47 @@ private Transfer( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - owner_ = s; + maintenanceMargin_ = input.readUInt64(); break; } - case 18: { - io.vegaprotocol.vega.Vega.FinancialAmount.Builder subBuilder = null; - if (amount_ != null) { - subBuilder = amount_.toBuilder(); - } - amount_ = input.readMessage(io.vegaprotocol.vega.Vega.FinancialAmount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amount_); - amount_ = subBuilder.buildPartial(); - } + case 16: { + searchLevel_ = input.readUInt64(); break; } case 24: { - int rawValue = input.readEnum(); - type_ = rawValue; + initialMargin_ = input.readUInt64(); break; } case 32: { - minAmount_ = input.readUInt64(); + collateralReleaseLevel_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + partyId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + marketId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 64: { + + timestamp_ = input.readInt64(); break; } default: { @@ -37923,141 +40927,229 @@ private Transfer( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Transfer.class, io.vegaprotocol.vega.Vega.Transfer.Builder.class); + io.vegaprotocol.vega.Vega.MarginLevels.class, io.vegaprotocol.vega.Vega.MarginLevels.Builder.class); } - public static final int OWNER_FIELD_NUMBER = 1; - private volatile java.lang.Object owner_; + public static final int MAINTENANCE_MARGIN_FIELD_NUMBER = 1; + private long maintenanceMargin_; /** *
-     * Party identifier for the owner of the transfer
+     * Maintenance margin value
      * 
* - * string owner = 1 [json_name = "owner"]; - * @return The owner. + * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The maintenanceMargin. */ @java.lang.Override - public java.lang.String getOwner() { - java.lang.Object ref = owner_; + public long getMaintenanceMargin() { + return maintenanceMargin_; + } + + public static final int SEARCH_LEVEL_FIELD_NUMBER = 2; + private long searchLevel_; + /** + *
+     * Search level value
+     * 
+ * + * uint64 search_level = 2 [json_name = "searchLevel"]; + * @return The searchLevel. + */ + @java.lang.Override + public long getSearchLevel() { + return searchLevel_; + } + + public static final int INITIAL_MARGIN_FIELD_NUMBER = 3; + private long initialMargin_; + /** + *
+     * Initial margin value
+     * 
+ * + * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * @return The initialMargin. + */ + @java.lang.Override + public long getInitialMargin() { + return initialMargin_; + } + + public static final int COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER = 4; + private long collateralReleaseLevel_; + /** + *
+     * Collateral release level value
+     * 
+ * + * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The collateralReleaseLevel. + */ + @java.lang.Override + public long getCollateralReleaseLevel() { + return collateralReleaseLevel_; + } + + public static final int PARTY_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object partyId_; + /** + *
+     * Party identifier
+     * 
+ * + * string party_id = 5 [json_name = "partyId"]; + * @return The partyId. + */ + @java.lang.Override + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - owner_ = s; + partyId_ = s; return s; } } /** *
-     * Party identifier for the owner of the transfer
+     * Party identifier
      * 
* - * string owner = 1 [json_name = "owner"]; - * @return The bytes for owner. + * string party_id = 5 [json_name = "partyId"]; + * @return The bytes for partyId. */ @java.lang.Override public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; + getPartyIdBytes() { + java.lang.Object ref = partyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - owner_ = b; + partyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int AMOUNT_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.Vega.FinancialAmount amount_; - /** - *
-     * A financial amount (of an asset) to transfer
-     * 
- * - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return Whether the amount field is set. - */ - @java.lang.Override - public boolean hasAmount() { - return amount_ != null; - } + public static final int MARKET_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object marketId_; /** *
-     * A financial amount (of an asset) to transfer
+     * Market identifier
      * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return The amount. + * string market_id = 6 [json_name = "marketId"]; + * @return The marketId. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmount getAmount() { - return amount_ == null ? io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } } /** *
-     * A financial amount (of an asset) to transfer
+     * Market identifier
      * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string market_id = 6 [json_name = "marketId"]; + * @return The bytes for marketId. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder() { - return getAmount(); + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; + public static final int ASSET_FIELD_NUMBER = 7; + private volatile java.lang.Object asset_; /** *
-     * The type of transfer, gives the reason for the transfer
+     * Asset identifier
      * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. + * string asset = 7 [json_name = "asset"]; + * @return The asset. */ - @java.lang.Override public int getTypeValue() { - return type_; + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } } /** *
-     * The type of transfer, gives the reason for the transfer
+     * Asset identifier
      * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The type. + * string asset = 7 [json_name = "asset"]; + * @return The bytes for asset. */ - @java.lang.Override public io.vegaprotocol.vega.Vega.TransferType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.TransferType result = io.vegaprotocol.vega.Vega.TransferType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.TransferType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int MIN_AMOUNT_FIELD_NUMBER = 4; - private long minAmount_; + public static final int TIMESTAMP_FIELD_NUMBER = 8; + private long timestamp_; /** *
-     * A minimum amount
+     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. + * int64 timestamp = 8 [json_name = "timestamp"]; + * @return The timestamp. */ @java.lang.Override - public long getMinAmount() { - return minAmount_; + public long getTimestamp() { + return timestamp_; } private byte memoizedIsInitialized = -1; @@ -38074,17 +41166,29 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOwnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, owner_); + if (maintenanceMargin_ != 0L) { + output.writeUInt64(1, maintenanceMargin_); } - if (amount_ != null) { - output.writeMessage(2, getAmount()); + if (searchLevel_ != 0L) { + output.writeUInt64(2, searchLevel_); } - if (type_ != io.vegaprotocol.vega.Vega.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, type_); + if (initialMargin_ != 0L) { + output.writeUInt64(3, initialMargin_); } - if (minAmount_ != 0L) { - output.writeUInt64(4, minAmount_); + if (collateralReleaseLevel_ != 0L) { + output.writeUInt64(4, collateralReleaseLevel_); + } + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partyId_); + } + if (!getMarketIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, marketId_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, asset_); + } + if (timestamp_ != 0L) { + output.writeInt64(8, timestamp_); } unknownFields.writeTo(output); } @@ -38095,20 +41199,34 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOwnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, owner_); + if (maintenanceMargin_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, maintenanceMargin_); } - if (amount_ != null) { + if (searchLevel_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAmount()); + .computeUInt64Size(2, searchLevel_); } - if (type_ != io.vegaprotocol.vega.Vega.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { + if (initialMargin_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + .computeUInt64Size(3, initialMargin_); } - if (minAmount_ != 0L) { + if (collateralReleaseLevel_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, minAmount_); + .computeUInt64Size(4, collateralReleaseLevel_); + } + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partyId_); + } + if (!getMarketIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, marketId_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, asset_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, timestamp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -38120,21 +41238,27 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Transfer)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.MarginLevels)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Transfer other = (io.vegaprotocol.vega.Vega.Transfer) obj; + io.vegaprotocol.vega.Vega.MarginLevels other = (io.vegaprotocol.vega.Vega.MarginLevels) obj; - if (!getOwner() - .equals(other.getOwner())) return false; - if (hasAmount() != other.hasAmount()) return false; - if (hasAmount()) { - if (!getAmount() - .equals(other.getAmount())) return false; - } - if (type_ != other.type_) return false; - if (getMinAmount() - != other.getMinAmount()) return false; + if (getMaintenanceMargin() + != other.getMaintenanceMargin()) return false; + if (getSearchLevel() + != other.getSearchLevel()) return false; + if (getInitialMargin() + != other.getInitialMargin()) return false; + if (getCollateralReleaseLevel() + != other.getCollateralReleaseLevel()) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (!getMarketId() + .equals(other.getMarketId())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -38146,85 +41270,95 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); - if (hasAmount()) { - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; + hash = (37 * hash) + MAINTENANCE_MARGIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinAmount()); + getMaintenanceMargin()); + hash = (37 * hash) + SEARCH_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSearchLevel()); + hash = (37 * hash) + INITIAL_MARGIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInitialMargin()); + hash = (37 * hash) + COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCollateralReleaseLevel()); + hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getMarketId().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transfer parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.MarginLevels parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transfer parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transfer parseFrom( + public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -38237,7 +41371,7 @@ public static io.vegaprotocol.vega.Vega.Transfer parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Transfer prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.MarginLevels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -38254,29 +41388,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents a financial transfer within Vega
+     * Represents the margin levels for a party on a market at a given time
      * 
* - * Protobuf type {@code vega.Transfer} + * Protobuf type {@code vega.MarginLevels} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Transfer) - io.vegaprotocol.vega.Vega.TransferOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.MarginLevels) + io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Transfer.class, io.vegaprotocol.vega.Vega.Transfer.Builder.class); + io.vegaprotocol.vega.Vega.MarginLevels.class, io.vegaprotocol.vega.Vega.MarginLevels.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Transfer.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.MarginLevels.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -38294,17 +41428,21 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - owner_ = ""; + maintenanceMargin_ = 0L; - if (amountBuilder_ == null) { - amount_ = null; - } else { - amount_ = null; - amountBuilder_ = null; - } - type_ = 0; + searchLevel_ = 0L; - minAmount_ = 0L; + initialMargin_ = 0L; + + collateralReleaseLevel_ = 0L; + + partyId_ = ""; + + marketId_ = ""; + + asset_ = ""; + + timestamp_ = 0L; return this; } @@ -38312,17 +41450,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transfer_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transfer getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Transfer.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transfer build() { - io.vegaprotocol.vega.Vega.Transfer result = buildPartial(); + public io.vegaprotocol.vega.Vega.MarginLevels build() { + io.vegaprotocol.vega.Vega.MarginLevels result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -38330,16 +41468,16 @@ public io.vegaprotocol.vega.Vega.Transfer build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transfer buildPartial() { - io.vegaprotocol.vega.Vega.Transfer result = new io.vegaprotocol.vega.Vega.Transfer(this); - result.owner_ = owner_; - if (amountBuilder_ == null) { - result.amount_ = amount_; - } else { - result.amount_ = amountBuilder_.build(); - } - result.type_ = type_; - result.minAmount_ = minAmount_; + public io.vegaprotocol.vega.Vega.MarginLevels buildPartial() { + io.vegaprotocol.vega.Vega.MarginLevels result = new io.vegaprotocol.vega.Vega.MarginLevels(this); + result.maintenanceMargin_ = maintenanceMargin_; + result.searchLevel_ = searchLevel_; + result.initialMargin_ = initialMargin_; + result.collateralReleaseLevel_ = collateralReleaseLevel_; + result.partyId_ = partyId_; + result.marketId_ = marketId_; + result.asset_ = asset_; + result.timestamp_ = timestamp_; onBuilt(); return result; } @@ -38378,28 +41516,42 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Transfer) { - return mergeFrom((io.vegaprotocol.vega.Vega.Transfer)other); + if (other instanceof io.vegaprotocol.vega.Vega.MarginLevels) { + return mergeFrom((io.vegaprotocol.vega.Vega.MarginLevels)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Transfer other) { - if (other == io.vegaprotocol.vega.Vega.Transfer.getDefaultInstance()) return this; - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarginLevels other) { + if (other == io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance()) return this; + if (other.getMaintenanceMargin() != 0L) { + setMaintenanceMargin(other.getMaintenanceMargin()); + } + if (other.getSearchLevel() != 0L) { + setSearchLevel(other.getSearchLevel()); + } + if (other.getInitialMargin() != 0L) { + setInitialMargin(other.getInitialMargin()); + } + if (other.getCollateralReleaseLevel() != 0L) { + setCollateralReleaseLevel(other.getCollateralReleaseLevel()); + } + if (!other.getPartyId().isEmpty()) { + partyId_ = other.partyId_; onChanged(); } - if (other.hasAmount()) { - mergeAmount(other.getAmount()); + if (!other.getMarketId().isEmpty()) { + marketId_ = other.marketId_; + onChanged(); } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); } - if (other.getMinAmount() != 0L) { - setMinAmount(other.getMinAmount()); + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -38416,11 +41568,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Transfer parsedMessage = null; + io.vegaprotocol.vega.Vega.MarginLevels parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Transfer) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.MarginLevels) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -38430,22 +41582,194 @@ public Builder mergeFrom( return this; } - private java.lang.Object owner_ = ""; + private long maintenanceMargin_ ; /** *
-       * Party identifier for the owner of the transfer
+       * Maintenance margin value
        * 
* - * string owner = 1 [json_name = "owner"]; - * @return The owner. + * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The maintenanceMargin. */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; + @java.lang.Override + public long getMaintenanceMargin() { + return maintenanceMargin_; + } + /** + *
+       * Maintenance margin value
+       * 
+ * + * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @param value The maintenanceMargin to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceMargin(long value) { + + maintenanceMargin_ = value; + onChanged(); + return this; + } + /** + *
+       * Maintenance margin value
+       * 
+ * + * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return This builder for chaining. + */ + public Builder clearMaintenanceMargin() { + + maintenanceMargin_ = 0L; + onChanged(); + return this; + } + + private long searchLevel_ ; + /** + *
+       * Search level value
+       * 
+ * + * uint64 search_level = 2 [json_name = "searchLevel"]; + * @return The searchLevel. + */ + @java.lang.Override + public long getSearchLevel() { + return searchLevel_; + } + /** + *
+       * Search level value
+       * 
+ * + * uint64 search_level = 2 [json_name = "searchLevel"]; + * @param value The searchLevel to set. + * @return This builder for chaining. + */ + public Builder setSearchLevel(long value) { + + searchLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * Search level value
+       * 
+ * + * uint64 search_level = 2 [json_name = "searchLevel"]; + * @return This builder for chaining. + */ + public Builder clearSearchLevel() { + + searchLevel_ = 0L; + onChanged(); + return this; + } + + private long initialMargin_ ; + /** + *
+       * Initial margin value
+       * 
+ * + * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * @return The initialMargin. + */ + @java.lang.Override + public long getInitialMargin() { + return initialMargin_; + } + /** + *
+       * Initial margin value
+       * 
+ * + * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * @param value The initialMargin to set. + * @return This builder for chaining. + */ + public Builder setInitialMargin(long value) { + + initialMargin_ = value; + onChanged(); + return this; + } + /** + *
+       * Initial margin value
+       * 
+ * + * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * @return This builder for chaining. + */ + public Builder clearInitialMargin() { + + initialMargin_ = 0L; + onChanged(); + return this; + } + + private long collateralReleaseLevel_ ; + /** + *
+       * Collateral release level value
+       * 
+ * + * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The collateralReleaseLevel. + */ + @java.lang.Override + public long getCollateralReleaseLevel() { + return collateralReleaseLevel_; + } + /** + *
+       * Collateral release level value
+       * 
+ * + * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @param value The collateralReleaseLevel to set. + * @return This builder for chaining. + */ + public Builder setCollateralReleaseLevel(long value) { + + collateralReleaseLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * Collateral release level value
+       * 
+ * + * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return This builder for chaining. + */ + public Builder clearCollateralReleaseLevel() { + + collateralReleaseLevel_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object partyId_ = ""; + /** + *
+       * Party identifier
+       * 
+ * + * string party_id = 5 [json_name = "partyId"]; + * @return The partyId. + */ + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - owner_ = s; + partyId_ = s; return s; } else { return (java.lang.String) ref; @@ -38453,20 +41777,20 @@ public java.lang.String getOwner() { } /** *
-       * Party identifier for the owner of the transfer
+       * Party identifier
        * 
* - * string owner = 1 [json_name = "owner"]; - * @return The bytes for owner. + * string party_id = 5 [json_name = "partyId"]; + * @return The bytes for partyId. */ public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; + getPartyIdBytes() { + java.lang.Object ref = partyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - owner_ = b; + partyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -38474,326 +41798,292 @@ public java.lang.String getOwner() { } /** *
-       * Party identifier for the owner of the transfer
+       * Party identifier
        * 
* - * string owner = 1 [json_name = "owner"]; - * @param value The owner to set. + * string party_id = 5 [json_name = "partyId"]; + * @param value The partyId to set. * @return This builder for chaining. */ - public Builder setOwner( + public Builder setPartyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - owner_ = value; + partyId_ = value; onChanged(); return this; } /** *
-       * Party identifier for the owner of the transfer
+       * Party identifier
        * 
* - * string owner = 1 [json_name = "owner"]; + * string party_id = 5 [json_name = "partyId"]; * @return This builder for chaining. */ - public Builder clearOwner() { + public Builder clearPartyId() { - owner_ = getDefaultInstance().getOwner(); + partyId_ = getDefaultInstance().getPartyId(); onChanged(); return this; } /** *
-       * Party identifier for the owner of the transfer
+       * Party identifier
        * 
* - * string owner = 1 [json_name = "owner"]; - * @param value The bytes for owner to set. + * string party_id = 5 [json_name = "partyId"]; + * @param value The bytes for partyId to set. * @return This builder for chaining. */ - public Builder setOwnerBytes( + public Builder setPartyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - owner_ = value; + partyId_ = value; onChanged(); return this; } - private io.vegaprotocol.vega.Vega.FinancialAmount amount_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder> amountBuilder_; - /** - *
-       * A financial amount (of an asset) to transfer
-       * 
- * - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return Whether the amount field is set. - */ - public boolean hasAmount() { - return amountBuilder_ != null || amount_ != null; - } + private java.lang.Object marketId_ = ""; /** *
-       * A financial amount (of an asset) to transfer
+       * Market identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - * @return The amount. + * string market_id = 6 [json_name = "marketId"]; + * @return The marketId. */ - public io.vegaprotocol.vega.Vega.FinancialAmount getAmount() { - if (amountBuilder_ == null) { - return amount_ == null ? io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; } else { - return amountBuilder_.getMessage(); + return (java.lang.String) ref; } } /** *
-       * A financial amount (of an asset) to transfer
+       * Market identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string market_id = 6 [json_name = "marketId"]; + * @return The bytes for marketId. */ - public Builder setAmount(io.vegaprotocol.vega.Vega.FinancialAmount value) { - if (amountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amount_ = value; - onChanged(); + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; } else { - amountBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** *
-       * A financial amount (of an asset) to transfer
+       * Market identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string market_id = 6 [json_name = "marketId"]; + * @param value The marketId to set. + * @return This builder for chaining. */ - public Builder setAmount( - io.vegaprotocol.vega.Vega.FinancialAmount.Builder builderForValue) { - if (amountBuilder_ == null) { - amount_ = builderForValue.build(); - onChanged(); - } else { - amountBuilder_.setMessage(builderForValue.build()); - } + public Builder setMarketId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + marketId_ = value; + onChanged(); return this; } /** *
-       * A financial amount (of an asset) to transfer
+       * Market identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string market_id = 6 [json_name = "marketId"]; + * @return This builder for chaining. */ - public Builder mergeAmount(io.vegaprotocol.vega.Vega.FinancialAmount value) { - if (amountBuilder_ == null) { - if (amount_ != null) { - amount_ = - io.vegaprotocol.vega.Vega.FinancialAmount.newBuilder(amount_).mergeFrom(value).buildPartial(); - } else { - amount_ = value; - } - onChanged(); - } else { - amountBuilder_.mergeFrom(value); - } + public Builder clearMarketId() { + marketId_ = getDefaultInstance().getMarketId(); + onChanged(); return this; } /** *
-       * A financial amount (of an asset) to transfer
+       * Market identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string market_id = 6 [json_name = "marketId"]; + * @param value The bytes for marketId to set. + * @return This builder for chaining. */ - public Builder clearAmount() { - if (amountBuilder_ == null) { - amount_ = null; - onChanged(); - } else { - amount_ = null; - amountBuilder_ = null; - } + public Builder setMarketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + marketId_ = value; + onChanged(); return this; } - /** - *
-       * A financial amount (of an asset) to transfer
-       * 
- * - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; - */ - public io.vegaprotocol.vega.Vega.FinancialAmount.Builder getAmountBuilder() { - onChanged(); - return getAmountFieldBuilder().getBuilder(); - } + private java.lang.Object asset_ = ""; /** *
-       * A financial amount (of an asset) to transfer
+       * Asset identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string asset = 7 [json_name = "asset"]; + * @return The asset. */ - public io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder() { - if (amountBuilder_ != null) { - return amountBuilder_.getMessageOrBuilder(); + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; } else { - return amount_ == null ? - io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance() : amount_; + return (java.lang.String) ref; } } /** *
-       * A financial amount (of an asset) to transfer
+       * Asset identifier
        * 
* - * .vega.FinancialAmount amount = 2 [json_name = "amount"]; + * string asset = 7 [json_name = "asset"]; + * @return The bytes for asset. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder> - getAmountFieldBuilder() { - if (amountBuilder_ == null) { - amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.FinancialAmount, io.vegaprotocol.vega.Vega.FinancialAmount.Builder, io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder>( - getAmount(), - getParentForChildren(), - isClean()); - amount_ = null; + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return amountBuilder_; - } - - private int type_ = 0; - /** - *
-       * The type of transfer, gives the reason for the transfer
-       * 
- * - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; } /** *
-       * The type of transfer, gives the reason for the transfer
+       * Asset identifier
        * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. + * string asset = 7 [json_name = "asset"]; + * @param value The asset to set. * @return This builder for chaining. */ - public Builder setTypeValue(int value) { + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - type_ = value; + asset_ = value; onChanged(); return this; } /** *
-       * The type of transfer, gives the reason for the transfer
-       * 
- * - * .vega.TransferType type = 3 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.TransferType result = io.vegaprotocol.vega.Vega.TransferType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.TransferType.UNRECOGNIZED : result; - } - /** - *
-       * The type of transfer, gives the reason for the transfer
+       * Asset identifier
        * 
* - * .vega.TransferType type = 3 [json_name = "type"]; - * @param value The type to set. + * string asset = 7 [json_name = "asset"]; * @return This builder for chaining. */ - public Builder setType(io.vegaprotocol.vega.Vega.TransferType value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearAsset() { - type_ = value.getNumber(); + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** *
-       * The type of transfer, gives the reason for the transfer
+       * Asset identifier
        * 
* - * .vega.TransferType type = 3 [json_name = "type"]; + * string asset = 7 [json_name = "asset"]; + * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder clearType() { + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - type_ = 0; + asset_ = value; onChanged(); return this; } - private long minAmount_ ; + private long timestamp_ ; /** *
-       * A minimum amount
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. + * int64 timestamp = 8 [json_name = "timestamp"]; + * @return The timestamp. */ @java.lang.Override - public long getMinAmount() { - return minAmount_; + public long getTimestamp() { + return timestamp_; } /** *
-       * A minimum amount
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @param value The minAmount to set. + * int64 timestamp = 8 [json_name = "timestamp"]; + * @param value The timestamp to set. * @return This builder for chaining. */ - public Builder setMinAmount(long value) { + public Builder setTimestamp(long value) { - minAmount_ = value; + timestamp_ = value; onChanged(); return this; } /** *
-       * A minimum amount
+       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; + * int64 timestamp = 8 [json_name = "timestamp"]; * @return This builder for chaining. */ - public Builder clearMinAmount() { + public Builder clearTimestamp() { - minAmount_ = 0L; + timestamp_ = 0L; onChanged(); return this; } @@ -38810,226 +42100,483 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Transfer) + // @@protoc_insertion_point(builder_scope:vega.MarginLevels) } - // @@protoc_insertion_point(class_scope:vega.Transfer) - private static final io.vegaprotocol.vega.Vega.Transfer DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.MarginLevels) + private static final io.vegaprotocol.vega.Vega.MarginLevels DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Transfer(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.MarginLevels(); } - public static io.vegaprotocol.vega.Vega.Transfer getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Transfer parsePartialFrom( + public MarginLevels parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Transfer(input, extensionRegistry); + return new MarginLevels(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MarketDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.MarketData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Mark price, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 mark_price = 1 [json_name = "markPrice"]; + * @return The markPrice. + */ + long getMarkPrice(); + + /** + *
+     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bestBidPrice. + */ + long getBestBidPrice(); + + /** + *
+     * Aggregated volume being bid at the best bid price
+     * 
+ * + * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * @return The bestBidVolume. + */ + long getBestBidVolume(); + + /** + *
+     * Lowest price level on an order book for offer orders
+     * 
+ * + * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bestOfferPrice. + */ + long getBestOfferPrice(); + + /** + *
+     * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
+     *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; + * @return The bestOfferVolume. + */ + long getBestOfferVolume(); + + /** + *
+     * Highest price on the order book for buy orders not including pegged orders
+     * 
+ * + * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bestStaticBidPrice. + */ + long getBestStaticBidPrice(); + + /** + *
+     * Total volume at the best static bid price excluding pegged orders
+     * 
+ * + * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; + * @return The bestStaticBidVolume. + */ + long getBestStaticBidVolume(); + + /** + *
+     * Lowest price on the order book for sell orders not including pegged orders
+     * 
+ * + * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bestStaticOfferPrice. + */ + long getBestStaticOfferPrice(); + + /** + *
+     * Total volume at the best static offer price excluding pegged orders
+     * 
+ * + * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; + * @return The bestStaticOfferVolume. + */ + long getBestStaticOfferVolume(); + + /** + *
+     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 mid_price = 10 [json_name = "midPrice"]; + * @return The midPrice. + */ + long getMidPrice(); + + /** + *
+     * Arithmetic average of the best static bid price and best static offer price
+     * 
+ * + * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The staticMidPrice. + */ + long getStaticMidPrice(); + + /** + *
+     * Market identifier for the data
+     * 
+ * + * string market = 12 [json_name = "market"]; + * @return The market. + */ + java.lang.String getMarket(); + /** + *
+     * Market identifier for the data
+     * 
+ * + * string market = 12 [json_name = "market"]; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + + /** + *
+     * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 timestamp = 13 [json_name = "timestamp"]; + * @return The timestamp. + */ + long getTimestamp(); + + /** + *
+     * The sum of the size of all positions greater than 0 on the market
+     * 
+ * + * uint64 open_interest = 14 [json_name = "openInterest"]; + * @return The openInterest. + */ + long getOpenInterest(); + + /** + *
+     * Time in seconds until the end of the auction (0 if currently not in auction period)
+     * 
+ * + * int64 auction_end = 15 [json_name = "auctionEnd"]; + * @return The auctionEnd. + */ + long getAuctionEnd(); + + /** + *
+     * Time until next auction (used in FBA's) - currently always 0
+     * 
+ * + * int64 auction_start = 16 [json_name = "auctionStart"]; + * @return The auctionStart. + */ + long getAuctionStart(); - @java.lang.Override - public io.vegaprotocol.vega.Vega.Transfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+     * Indicative price (zero if not in auction)
+     * 
+ * + * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * @return The indicativePrice. + */ + long getIndicativePrice(); - } + /** + *
+     * Indicative volume (zero if not in auction)
+     * 
+ * + * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; + * @return The indicativeVolume. + */ + long getIndicativeVolume(); - public interface TransferRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.TransferRequest) - com.google.protobuf.MessageOrBuilder { + /** + *
+     * The current trading mode for the market
+     * 
+ * + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The enum numeric value on the wire for marketTradingMode. + */ + int getMarketTradingModeValue(); + /** + *
+     * The current trading mode for the market
+     * 
+ * + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The marketTradingMode. + */ + io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode(); /** *
-     * One or more accounts to transfer from
+     * When a market is in an auction trading mode, this field indicates what triggered the auction
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The enum numeric value on the wire for trigger. */ - java.util.List - getFromAccountList(); + int getTriggerValue(); /** *
-     * One or more accounts to transfer from
+     * When a market is in an auction trading mode, this field indicates what triggered the auction
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The trigger. */ - io.vegaprotocol.vega.Vega.Account getFromAccount(int index); + io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger(); + /** *
-     * One or more accounts to transfer from
+     * When a market auction is extended, this field indicates what caused the extension
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The enum numeric value on the wire for extensionTrigger. */ - int getFromAccountCount(); + int getExtensionTriggerValue(); /** *
-     * One or more accounts to transfer from
+     * When a market auction is extended, this field indicates what caused the extension
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The extensionTrigger. */ - java.util.List - getFromAccountOrBuilderList(); + io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger(); + /** *
-     * One or more accounts to transfer from
+     * Targeted stake for the given market
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * string target_stake = 22 [json_name = "targetStake"]; + * @return The targetStake. */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( - int index); + java.lang.String getTargetStake(); + /** + *
+     * Targeted stake for the given market
+     * 
+ * + * string target_stake = 22 [json_name = "targetStake"]; + * @return The bytes for targetStake. + */ + com.google.protobuf.ByteString + getTargetStakeBytes(); /** *
-     * One or more accounts to transfer to
+     * Available stake for the given market
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The suppliedStake. */ - java.util.List - getToAccountList(); + java.lang.String getSuppliedStake(); /** *
-     * One or more accounts to transfer to
+     * Available stake for the given market
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The bytes for suppliedStake. */ - io.vegaprotocol.vega.Vega.Account getToAccount(int index); + com.google.protobuf.ByteString + getSuppliedStakeBytes(); + /** *
-     * One or more accounts to transfer to
+     * One or more price monitoring bounds for the current timestamp
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - int getToAccountCount(); + java.util.List + getPriceMonitoringBoundsList(); /** *
-     * One or more accounts to transfer to
+     * One or more price monitoring bounds for the current timestamp
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - java.util.List - getToAccountOrBuilderList(); + io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index); /** *
-     * One or more accounts to transfer to
+     * One or more price monitoring bounds for the current timestamp
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( - int index); - + int getPriceMonitoringBoundsCount(); /** *
-     * An amount to transfer for the asset
+     * One or more price monitoring bounds for the current timestamp
      * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - long getAmount(); - + java.util.List + getPriceMonitoringBoundsOrBuilderList(); /** *
-     * A minimum amount
+     * One or more price monitoring bounds for the current timestamp
      * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - long getMinAmount(); + io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( + int index); /** *
-     * Asset identifier
+     * the market value proxy
      * 
* - * string asset = 5 [json_name = "asset"]; - * @return The asset. + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The marketValueProxy. */ - java.lang.String getAsset(); + java.lang.String getMarketValueProxy(); /** *
-     * Asset identifier
+     * the market value proxy
      * 
* - * string asset = 5 [json_name = "asset"]; - * @return The bytes for asset. + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The bytes for marketValueProxy. */ com.google.protobuf.ByteString - getAssetBytes(); + getMarketValueProxyBytes(); /** *
-     * A reference for auditing purposes
+     * the equity like share of liquidity fee for each liquidity provider
      * 
* - * string reference = 6 [json_name = "reference"]; - * @return The reference. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - java.lang.String getReference(); + java.util.List + getLiquidityProviderFeeShareList(); /** *
-     * A reference for auditing purposes
+     * the equity like share of liquidity fee for each liquidity provider
      * 
* - * string reference = 6 [json_name = "reference"]; - * @return The bytes for reference. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - com.google.protobuf.ByteString - getReferenceBytes(); + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index); + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + int getLiquidityProviderFeeShareCount(); + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + java.util.List + getLiquidityProviderFeeShareOrBuilderList(); + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( + int index); } /** *
-   * Represents a request to transfer from one set of accounts to another
+   * Represents data generated by a market when open
    * 
* - * Protobuf type {@code vega.TransferRequest} + * Protobuf type {@code vega.MarketData} */ - public static final class TransferRequest extends + public static final class MarketData extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.TransferRequest) - TransferRequestOrBuilder { + // @@protoc_insertion_point(message_implements:vega.MarketData) + MarketDataOrBuilder { private static final long serialVersionUID = 0L; - // Use TransferRequest.newBuilder() to construct. - private TransferRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MarketData.newBuilder() to construct. + private MarketData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransferRequest() { - fromAccount_ = java.util.Collections.emptyList(); - toAccount_ = java.util.Collections.emptyList(); - asset_ = ""; - reference_ = ""; + private MarketData() { + market_ = ""; + marketTradingMode_ = 0; + trigger_ = 0; + extensionTrigger_ = 0; + targetStake_ = ""; + suppliedStake_ = ""; + priceMonitoringBounds_ = java.util.Collections.emptyList(); + marketValueProxy_ = ""; + liquidityProviderFeeShare_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new TransferRequest(); + return new MarketData(); } @java.lang.Override @@ -39037,7 +42584,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private TransferRequest( + private MarketData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -39056,44 +42603,149 @@ private TransferRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fromAccount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fromAccount_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); + case 8: { + + markPrice_ = input.readUInt64(); break; } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - toAccount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - toAccount_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); + case 16: { + + bestBidPrice_ = input.readUInt64(); break; } case 24: { - amount_ = input.readUInt64(); + bestBidVolume_ = input.readUInt64(); break; } case 32: { - minAmount_ = input.readUInt64(); + bestOfferPrice_ = input.readUInt64(); break; } - case 42: { + case 40: { + + bestOfferVolume_ = input.readUInt64(); + break; + } + case 48: { + + bestStaticBidPrice_ = input.readUInt64(); + break; + } + case 56: { + + bestStaticBidVolume_ = input.readUInt64(); + break; + } + case 64: { + + bestStaticOfferPrice_ = input.readUInt64(); + break; + } + case 72: { + + bestStaticOfferVolume_ = input.readUInt64(); + break; + } + case 80: { + + midPrice_ = input.readUInt64(); + break; + } + case 88: { + + staticMidPrice_ = input.readUInt64(); + break; + } + case 98: { java.lang.String s = input.readStringRequireUtf8(); - asset_ = s; + market_ = s; break; } - case 50: { + case 104: { + + timestamp_ = input.readInt64(); + break; + } + case 112: { + + openInterest_ = input.readUInt64(); + break; + } + case 120: { + + auctionEnd_ = input.readInt64(); + break; + } + case 128: { + + auctionStart_ = input.readInt64(); + break; + } + case 136: { + + indicativePrice_ = input.readUInt64(); + break; + } + case 144: { + + indicativeVolume_ = input.readUInt64(); + break; + } + case 152: { + int rawValue = input.readEnum(); + + marketTradingMode_ = rawValue; + break; + } + case 160: { + int rawValue = input.readEnum(); + + trigger_ = rawValue; + break; + } + case 168: { + int rawValue = input.readEnum(); + + extensionTrigger_ = rawValue; + break; + } + case 178: { java.lang.String s = input.readStringRequireUtf8(); - reference_ = s; + targetStake_ = s; + break; + } + case 186: { + java.lang.String s = input.readStringRequireUtf8(); + + suppliedStake_ = s; + break; + } + case 194: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + priceMonitoringBounds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + priceMonitoringBounds_.add( + input.readMessage(io.vegaprotocol.vega.Vega.PriceMonitoringBounds.parser(), extensionRegistry)); + break; + } + case 202: { + java.lang.String s = input.readStringRequireUtf8(); + + marketValueProxy_ = s; + break; + } + case 210: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + liquidityProviderFeeShare_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + liquidityProviderFeeShare_.add( + input.readMessage(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.parser(), extensionRegistry)); break; } default: { @@ -39112,10 +42764,10 @@ private TransferRequest( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - fromAccount_ = java.util.Collections.unmodifiableList(fromAccount_); + priceMonitoringBounds_ = java.util.Collections.unmodifiableList(priceMonitoringBounds_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { - toAccount_ = java.util.Collections.unmodifiableList(toAccount_); + liquidityProviderFeeShare_ = java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -39123,2767 +42775,2565 @@ private TransferRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.MarketData.class, io.vegaprotocol.vega.Vega.MarketData.Builder.class); + } + + public static final int MARK_PRICE_FIELD_NUMBER = 1; + private long markPrice_; + /** + *
+     * Mark price, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 mark_price = 1 [json_name = "markPrice"]; + * @return The markPrice. + */ + @java.lang.Override + public long getMarkPrice() { + return markPrice_; + } + + public static final int BEST_BID_PRICE_FIELD_NUMBER = 2; + private long bestBidPrice_; + /** + *
+     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bestBidPrice. + */ + @java.lang.Override + public long getBestBidPrice() { + return bestBidPrice_; + } + + public static final int BEST_BID_VOLUME_FIELD_NUMBER = 3; + private long bestBidVolume_; + /** + *
+     * Aggregated volume being bid at the best bid price
+     * 
+ * + * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * @return The bestBidVolume. + */ + @java.lang.Override + public long getBestBidVolume() { + return bestBidVolume_; + } + + public static final int BEST_OFFER_PRICE_FIELD_NUMBER = 4; + private long bestOfferPrice_; + /** + *
+     * Lowest price level on an order book for offer orders
+     * 
+ * + * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bestOfferPrice. + */ + @java.lang.Override + public long getBestOfferPrice() { + return bestOfferPrice_; + } + + public static final int BEST_OFFER_VOLUME_FIELD_NUMBER = 5; + private long bestOfferVolume_; + /** + *
+     * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
+     *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+     * 
+ * + * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; + * @return The bestOfferVolume. + */ + @java.lang.Override + public long getBestOfferVolume() { + return bestOfferVolume_; + } + + public static final int BEST_STATIC_BID_PRICE_FIELD_NUMBER = 6; + private long bestStaticBidPrice_; + /** + *
+     * Highest price on the order book for buy orders not including pegged orders
+     * 
+ * + * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bestStaticBidPrice. + */ + @java.lang.Override + public long getBestStaticBidPrice() { + return bestStaticBidPrice_; + } + + public static final int BEST_STATIC_BID_VOLUME_FIELD_NUMBER = 7; + private long bestStaticBidVolume_; + /** + *
+     * Total volume at the best static bid price excluding pegged orders
+     * 
+ * + * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; + * @return The bestStaticBidVolume. + */ + @java.lang.Override + public long getBestStaticBidVolume() { + return bestStaticBidVolume_; } + public static final int BEST_STATIC_OFFER_PRICE_FIELD_NUMBER = 8; + private long bestStaticOfferPrice_; + /** + *
+     * Lowest price on the order book for sell orders not including pegged orders
+     * 
+ * + * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bestStaticOfferPrice. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferRequest.class, io.vegaprotocol.vega.Vega.TransferRequest.Builder.class); + public long getBestStaticOfferPrice() { + return bestStaticOfferPrice_; } - public static final int FROM_ACCOUNT_FIELD_NUMBER = 1; - private java.util.List fromAccount_; + public static final int BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER = 9; + private long bestStaticOfferVolume_; /** *
-     * One or more accounts to transfer from
+     * Total volume at the best static offer price excluding pegged orders
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; + * @return The bestStaticOfferVolume. */ @java.lang.Override - public java.util.List getFromAccountList() { - return fromAccount_; + public long getBestStaticOfferVolume() { + return bestStaticOfferVolume_; } + + public static final int MID_PRICE_FIELD_NUMBER = 10; + private long midPrice_; /** *
-     * One or more accounts to transfer from
+     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
+     * formatted price of `1.23456` assuming market configured to 5 decimal places
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * uint64 mid_price = 10 [json_name = "midPrice"]; + * @return The midPrice. */ @java.lang.Override - public java.util.List - getFromAccountOrBuilderList() { - return fromAccount_; + public long getMidPrice() { + return midPrice_; } + + public static final int STATIC_MID_PRICE_FIELD_NUMBER = 11; + private long staticMidPrice_; /** *
-     * One or more accounts to transfer from
+     * Arithmetic average of the best static bid price and best static offer price
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The staticMidPrice. */ @java.lang.Override - public int getFromAccountCount() { - return fromAccount_.size(); + public long getStaticMidPrice() { + return staticMidPrice_; } + + public static final int MARKET_FIELD_NUMBER = 12; + private volatile java.lang.Object market_; /** *
-     * One or more accounts to transfer from
+     * Market identifier for the data
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * string market = 12 [json_name = "market"]; + * @return The market. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getFromAccount(int index) { - return fromAccount_.get(index); + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } } /** *
-     * One or more accounts to transfer from
+     * Market identifier for the data
      * 
* - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; + * string market = 12 [json_name = "market"]; + * @return The bytes for market. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( - int index) { - return fromAccount_.get(index); + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int TO_ACCOUNT_FIELD_NUMBER = 2; - private java.util.List toAccount_; + public static final int TIMESTAMP_FIELD_NUMBER = 13; + private long timestamp_; /** *
-     * One or more accounts to transfer to
+     * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * int64 timestamp = 13 [json_name = "timestamp"]; + * @return The timestamp. */ @java.lang.Override - public java.util.List getToAccountList() { - return toAccount_; + public long getTimestamp() { + return timestamp_; } + + public static final int OPEN_INTEREST_FIELD_NUMBER = 14; + private long openInterest_; /** *
-     * One or more accounts to transfer to
+     * The sum of the size of all positions greater than 0 on the market
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * uint64 open_interest = 14 [json_name = "openInterest"]; + * @return The openInterest. */ @java.lang.Override - public java.util.List - getToAccountOrBuilderList() { - return toAccount_; + public long getOpenInterest() { + return openInterest_; } + + public static final int AUCTION_END_FIELD_NUMBER = 15; + private long auctionEnd_; /** *
-     * One or more accounts to transfer to
+     * Time in seconds until the end of the auction (0 if currently not in auction period)
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * int64 auction_end = 15 [json_name = "auctionEnd"]; + * @return The auctionEnd. */ @java.lang.Override - public int getToAccountCount() { - return toAccount_.size(); + public long getAuctionEnd() { + return auctionEnd_; } + + public static final int AUCTION_START_FIELD_NUMBER = 16; + private long auctionStart_; /** *
-     * One or more accounts to transfer to
+     * Time until next auction (used in FBA's) - currently always 0
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * int64 auction_start = 16 [json_name = "auctionStart"]; + * @return The auctionStart. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getToAccount(int index) { - return toAccount_.get(index); + public long getAuctionStart() { + return auctionStart_; } + + public static final int INDICATIVE_PRICE_FIELD_NUMBER = 17; + private long indicativePrice_; /** *
-     * One or more accounts to transfer to
+     * Indicative price (zero if not in auction)
      * 
* - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; + * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * @return The indicativePrice. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( - int index) { - return toAccount_.get(index); + public long getIndicativePrice() { + return indicativePrice_; } - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; + public static final int INDICATIVE_VOLUME_FIELD_NUMBER = 18; + private long indicativeVolume_; /** *
-     * An amount to transfer for the asset
+     * Indicative volume (zero if not in auction)
      * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. + * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; + * @return The indicativeVolume. */ @java.lang.Override - public long getAmount() { - return amount_; + public long getIndicativeVolume() { + return indicativeVolume_; } - public static final int MIN_AMOUNT_FIELD_NUMBER = 4; - private long minAmount_; + public static final int MARKET_TRADING_MODE_FIELD_NUMBER = 19; + private int marketTradingMode_; /** *
-     * A minimum amount
+     * The current trading mode for the market
      * 
* - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The enum numeric value on the wire for marketTradingMode. */ - @java.lang.Override - public long getMinAmount() { - return minAmount_; + @java.lang.Override public int getMarketTradingModeValue() { + return marketTradingMode_; + } + /** + *
+     * The current trading mode for the market
+     * 
+ * + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The marketTradingMode. + */ + @java.lang.Override public io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Markets.Market.TradingMode result = io.vegaprotocol.vega.Markets.Market.TradingMode.valueOf(marketTradingMode_); + return result == null ? io.vegaprotocol.vega.Markets.Market.TradingMode.UNRECOGNIZED : result; } - public static final int ASSET_FIELD_NUMBER = 5; - private volatile java.lang.Object asset_; + public static final int TRIGGER_FIELD_NUMBER = 20; + private int trigger_; /** *
-     * Asset identifier
+     * When a market is in an auction trading mode, this field indicates what triggered the auction
      * 
* - * string asset = 5 [json_name = "asset"]; - * @return The asset. + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The enum numeric value on the wire for trigger. + */ + @java.lang.Override public int getTriggerValue() { + return trigger_; + } + /** + *
+     * When a market is in an auction trading mode, this field indicates what triggered the auction
+     * 
+ * + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The trigger. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(trigger_); + return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + } + + public static final int EXTENSION_TRIGGER_FIELD_NUMBER = 21; + private int extensionTrigger_; + /** + *
+     * When a market auction is extended, this field indicates what caused the extension
+     * 
+ * + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The enum numeric value on the wire for extensionTrigger. + */ + @java.lang.Override public int getExtensionTriggerValue() { + return extensionTrigger_; + } + /** + *
+     * When a market auction is extended, this field indicates what caused the extension
+     * 
+ * + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The extensionTrigger. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(extensionTrigger_); + return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + } + + public static final int TARGET_STAKE_FIELD_NUMBER = 22; + private volatile java.lang.Object targetStake_; + /** + *
+     * Targeted stake for the given market
+     * 
+ * + * string target_stake = 22 [json_name = "targetStake"]; + * @return The targetStake. */ @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; + public java.lang.String getTargetStake() { + java.lang.Object ref = targetStake_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - asset_ = s; + targetStake_ = s; return s; } } /** *
-     * Asset identifier
+     * Targeted stake for the given market
      * 
* - * string asset = 5 [json_name = "asset"]; - * @return The bytes for asset. + * string target_stake = 22 [json_name = "targetStake"]; + * @return The bytes for targetStake. */ @java.lang.Override public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; + getTargetStakeBytes() { + java.lang.Object ref = targetStake_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - asset_ = b; + targetStake_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int REFERENCE_FIELD_NUMBER = 6; - private volatile java.lang.Object reference_; + public static final int SUPPLIED_STAKE_FIELD_NUMBER = 23; + private volatile java.lang.Object suppliedStake_; /** *
-     * A reference for auditing purposes
+     * Available stake for the given market
      * 
* - * string reference = 6 [json_name = "reference"]; - * @return The reference. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The suppliedStake. */ @java.lang.Override - public java.lang.String getReference() { - java.lang.Object ref = reference_; + public java.lang.String getSuppliedStake() { + java.lang.Object ref = suppliedStake_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - reference_ = s; + suppliedStake_ = s; return s; } } /** *
-     * A reference for auditing purposes
+     * Available stake for the given market
      * 
* - * string reference = 6 [json_name = "reference"]; - * @return The bytes for reference. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The bytes for suppliedStake. */ @java.lang.Override public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; + getSuppliedStakeBytes() { + java.lang.Object ref = suppliedStake_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - reference_ = b; + suppliedStake_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < fromAccount_.size(); i++) { - output.writeMessage(1, fromAccount_.get(i)); - } - for (int i = 0; i < toAccount_.size(); i++) { - output.writeMessage(2, toAccount_.get(i)); - } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); - } - if (minAmount_ != 0L) { - output.writeUInt64(4, minAmount_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, asset_); - } - if (!getReferenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < fromAccount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fromAccount_.get(i)); - } - for (int i = 0; i < toAccount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, toAccount_.get(i)); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); - } - if (minAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, minAmount_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, asset_); - } - if (!getReferenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, reference_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - + public static final int PRICE_MONITORING_BOUNDS_FIELD_NUMBER = 24; + private java.util.List priceMonitoringBounds_; + /** + *
+     * One or more price monitoring bounds for the current timestamp
+     * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.Vega.TransferRequest other = (io.vegaprotocol.vega.Vega.TransferRequest) obj; - - if (!getFromAccountList() - .equals(other.getFromAccountList())) return false; - if (!getToAccountList() - .equals(other.getToAccountList())) return false; - if (getAmount() - != other.getAmount()) return false; - if (getMinAmount() - != other.getMinAmount()) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!getReference() - .equals(other.getReference())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + public java.util.List getPriceMonitoringBoundsList() { + return priceMonitoringBounds_; } - + /** + *
+     * One or more price monitoring bounds for the current timestamp
+     * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFromAccountCount() > 0) { - hash = (37 * hash) + FROM_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getFromAccountList().hashCode(); - } - if (getToAccountCount() > 0) { - hash = (37 * hash) + TO_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getToAccountList().hashCode(); - } - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinAmount()); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + public java.util.List + getPriceMonitoringBoundsOrBuilderList() { + return priceMonitoringBounds_; } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + /** + *
+     * One or more price monitoring bounds for the current timestamp
+     * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + @java.lang.Override + public int getPriceMonitoringBoundsCount() { + return priceMonitoringBounds_.size(); } - public static io.vegaprotocol.vega.Vega.TransferRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + /** + *
+     * One or more price monitoring bounds for the current timestamp
+     * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index) { + return priceMonitoringBounds_.get(index); } - public static io.vegaprotocol.vega.Vega.TransferRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + /** + *
+     * One or more price monitoring bounds for the current timestamp
+     * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( + int index) { + return priceMonitoringBounds_.get(index); } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static final int MARKET_VALUE_PROXY_FIELD_NUMBER = 25; + private volatile java.lang.Object marketValueProxy_; + /** + *
+     * the market value proxy
+     * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The marketValueProxy. + */ + @java.lang.Override + public java.lang.String getMarketValueProxy() { + java.lang.Object ref = marketValueProxy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketValueProxy_ = s; + return s; + } } - public static io.vegaprotocol.vega.Vega.TransferRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + /** + *
+     * the market value proxy
+     * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The bytes for marketValueProxy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketValueProxyBytes() { + java.lang.Object ref = marketValueProxy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketValueProxy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int LIQUIDITY_PROVIDER_FEE_SHARE_FIELD_NUMBER = 26; + private java.util.List liquidityProviderFeeShare_; + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public java.util.List getLiquidityProviderFeeShareList() { + return liquidityProviderFeeShare_; } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + @java.lang.Override + public java.util.List + getLiquidityProviderFeeShareOrBuilderList() { + return liquidityProviderFeeShare_; } + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public int getLiquidityProviderFeeShareCount() { + return liquidityProviderFeeShare_.size(); } - + /** + *
+     * the equity like share of liquidity fee for each liquidity provider
+     * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index) { + return liquidityProviderFeeShare_.get(index); } /** *
-     * Represents a request to transfer from one set of accounts to another
+     * the equity like share of liquidity fee for each liquidity provider
      * 
* - * Protobuf type {@code vega.TransferRequest} + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.TransferRequest) - io.vegaprotocol.vega.Vega.TransferRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferRequest.class, io.vegaprotocol.vega.Vega.TransferRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.Vega.TransferRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFromAccountFieldBuilder(); - getToAccountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (fromAccountBuilder_ == null) { - fromAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fromAccountBuilder_.clear(); - } - if (toAccountBuilder_ == null) { - toAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - toAccountBuilder_.clear(); - } - amount_ = 0L; - - minAmount_ = 0L; - - asset_ = ""; - - reference_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.TransferRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferRequest build() { - io.vegaprotocol.vega.Vega.TransferRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( + int index) { + return liquidityProviderFeeShare_.get(index); + } - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferRequest buildPartial() { - io.vegaprotocol.vega.Vega.TransferRequest result = new io.vegaprotocol.vega.Vega.TransferRequest(this); - int from_bitField0_ = bitField0_; - if (fromAccountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - fromAccount_ = java.util.Collections.unmodifiableList(fromAccount_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fromAccount_ = fromAccount_; - } else { - result.fromAccount_ = fromAccountBuilder_.build(); - } - if (toAccountBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - toAccount_ = java.util.Collections.unmodifiableList(toAccount_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.toAccount_ = toAccount_; - } else { - result.toAccount_ = toAccountBuilder_.build(); - } - result.amount_ = amount_; - result.minAmount_ = minAmount_; - result.asset_ = asset_; - result.reference_ = reference_; - onBuilt(); - return result; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.TransferRequest) { - return mergeFrom((io.vegaprotocol.vega.Vega.TransferRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } + memoizedIsInitialized = 1; + return true; + } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferRequest other) { - if (other == io.vegaprotocol.vega.Vega.TransferRequest.getDefaultInstance()) return this; - if (fromAccountBuilder_ == null) { - if (!other.fromAccount_.isEmpty()) { - if (fromAccount_.isEmpty()) { - fromAccount_ = other.fromAccount_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFromAccountIsMutable(); - fromAccount_.addAll(other.fromAccount_); - } - onChanged(); - } - } else { - if (!other.fromAccount_.isEmpty()) { - if (fromAccountBuilder_.isEmpty()) { - fromAccountBuilder_.dispose(); - fromAccountBuilder_ = null; - fromAccount_ = other.fromAccount_; - bitField0_ = (bitField0_ & ~0x00000001); - fromAccountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFromAccountFieldBuilder() : null; - } else { - fromAccountBuilder_.addAllMessages(other.fromAccount_); - } - } - } - if (toAccountBuilder_ == null) { - if (!other.toAccount_.isEmpty()) { - if (toAccount_.isEmpty()) { - toAccount_ = other.toAccount_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureToAccountIsMutable(); - toAccount_.addAll(other.toAccount_); - } - onChanged(); - } - } else { - if (!other.toAccount_.isEmpty()) { - if (toAccountBuilder_.isEmpty()) { - toAccountBuilder_.dispose(); - toAccountBuilder_ = null; - toAccount_ = other.toAccount_; - bitField0_ = (bitField0_ & ~0x00000002); - toAccountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getToAccountFieldBuilder() : null; - } else { - toAccountBuilder_.addAllMessages(other.toAccount_); - } - } - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getMinAmount() != 0L) { - setMinAmount(other.getMinAmount()); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - if (!other.getReference().isEmpty()) { - reference_ = other.reference_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (markPrice_ != 0L) { + output.writeUInt64(1, markPrice_); } - - @java.lang.Override - public final boolean isInitialized() { - return true; + if (bestBidPrice_ != 0L) { + output.writeUInt64(2, bestBidPrice_); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.TransferRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.TransferRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + if (bestBidVolume_ != 0L) { + output.writeUInt64(3, bestBidVolume_); } - private int bitField0_; - - private java.util.List fromAccount_ = - java.util.Collections.emptyList(); - private void ensureFromAccountIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fromAccount_ = new java.util.ArrayList(fromAccount_); - bitField0_ |= 0x00000001; - } + if (bestOfferPrice_ != 0L) { + output.writeUInt64(4, bestOfferPrice_); } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> fromAccountBuilder_; - - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public java.util.List getFromAccountList() { - if (fromAccountBuilder_ == null) { - return java.util.Collections.unmodifiableList(fromAccount_); - } else { - return fromAccountBuilder_.getMessageList(); - } + if (bestOfferVolume_ != 0L) { + output.writeUInt64(5, bestOfferVolume_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public int getFromAccountCount() { - if (fromAccountBuilder_ == null) { - return fromAccount_.size(); - } else { - return fromAccountBuilder_.getCount(); - } + if (bestStaticBidPrice_ != 0L) { + output.writeUInt64(6, bestStaticBidPrice_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account getFromAccount(int index) { - if (fromAccountBuilder_ == null) { - return fromAccount_.get(index); - } else { - return fromAccountBuilder_.getMessage(index); - } + if (bestStaticBidVolume_ != 0L) { + output.writeUInt64(7, bestStaticBidVolume_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder setFromAccount( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (fromAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFromAccountIsMutable(); - fromAccount_.set(index, value); - onChanged(); - } else { - fromAccountBuilder_.setMessage(index, value); - } - return this; + if (bestStaticOfferPrice_ != 0L) { + output.writeUInt64(8, bestStaticOfferPrice_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder setFromAccount( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (fromAccountBuilder_ == null) { - ensureFromAccountIsMutable(); - fromAccount_.set(index, builderForValue.build()); - onChanged(); - } else { - fromAccountBuilder_.setMessage(index, builderForValue.build()); - } - return this; + if (bestStaticOfferVolume_ != 0L) { + output.writeUInt64(9, bestStaticOfferVolume_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder addFromAccount(io.vegaprotocol.vega.Vega.Account value) { - if (fromAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFromAccountIsMutable(); - fromAccount_.add(value); - onChanged(); - } else { - fromAccountBuilder_.addMessage(value); - } - return this; + if (midPrice_ != 0L) { + output.writeUInt64(10, midPrice_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder addFromAccount( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (fromAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFromAccountIsMutable(); - fromAccount_.add(index, value); - onChanged(); - } else { - fromAccountBuilder_.addMessage(index, value); - } - return this; + if (staticMidPrice_ != 0L) { + output.writeUInt64(11, staticMidPrice_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder addFromAccount( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (fromAccountBuilder_ == null) { - ensureFromAccountIsMutable(); - fromAccount_.add(builderForValue.build()); - onChanged(); - } else { - fromAccountBuilder_.addMessage(builderForValue.build()); - } - return this; + if (!getMarketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, market_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder addFromAccount( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (fromAccountBuilder_ == null) { - ensureFromAccountIsMutable(); - fromAccount_.add(index, builderForValue.build()); - onChanged(); - } else { - fromAccountBuilder_.addMessage(index, builderForValue.build()); - } - return this; + if (timestamp_ != 0L) { + output.writeInt64(13, timestamp_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder addAllFromAccount( - java.lang.Iterable values) { - if (fromAccountBuilder_ == null) { - ensureFromAccountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fromAccount_); - onChanged(); - } else { - fromAccountBuilder_.addAllMessages(values); - } - return this; + if (openInterest_ != 0L) { + output.writeUInt64(14, openInterest_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder clearFromAccount() { - if (fromAccountBuilder_ == null) { - fromAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fromAccountBuilder_.clear(); - } - return this; + if (auctionEnd_ != 0L) { + output.writeInt64(15, auctionEnd_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public Builder removeFromAccount(int index) { - if (fromAccountBuilder_ == null) { - ensureFromAccountIsMutable(); - fromAccount_.remove(index); - onChanged(); - } else { - fromAccountBuilder_.remove(index); - } - return this; + if (auctionStart_ != 0L) { + output.writeInt64(16, auctionStart_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getFromAccountBuilder( - int index) { - return getFromAccountFieldBuilder().getBuilder(index); + if (indicativePrice_ != 0L) { + output.writeUInt64(17, indicativePrice_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getFromAccountOrBuilder( - int index) { - if (fromAccountBuilder_ == null) { - return fromAccount_.get(index); } else { - return fromAccountBuilder_.getMessageOrBuilder(index); - } + if (indicativeVolume_ != 0L) { + output.writeUInt64(18, indicativeVolume_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public java.util.List - getFromAccountOrBuilderList() { - if (fromAccountBuilder_ != null) { - return fromAccountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fromAccount_); - } + if (marketTradingMode_ != io.vegaprotocol.vega.Markets.Market.TradingMode.TRADING_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, marketTradingMode_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addFromAccountBuilder() { - return getFromAccountFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + if (trigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { + output.writeEnum(20, trigger_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addFromAccountBuilder( - int index) { - return getFromAccountFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + if (extensionTrigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { + output.writeEnum(21, extensionTrigger_); } - /** - *
-       * One or more accounts to transfer from
-       * 
- * - * repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; - */ - public java.util.List - getFromAccountBuilderList() { - return getFromAccountFieldBuilder().getBuilderList(); + if (!getTargetStakeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, targetStake_); } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getFromAccountFieldBuilder() { - if (fromAccountBuilder_ == null) { - fromAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - fromAccount_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - fromAccount_ = null; - } - return fromAccountBuilder_; + if (!getSuppliedStakeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, suppliedStake_); } - - private java.util.List toAccount_ = - java.util.Collections.emptyList(); - private void ensureToAccountIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - toAccount_ = new java.util.ArrayList(toAccount_); - bitField0_ |= 0x00000002; - } + for (int i = 0; i < priceMonitoringBounds_.size(); i++) { + output.writeMessage(24, priceMonitoringBounds_.get(i)); + } + if (!getMarketValueProxyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, marketValueProxy_); + } + for (int i = 0; i < liquidityProviderFeeShare_.size(); i++) { + output.writeMessage(26, liquidityProviderFeeShare_.get(i)); } + unknownFields.writeTo(output); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> toAccountBuilder_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public java.util.List getToAccountList() { - if (toAccountBuilder_ == null) { - return java.util.Collections.unmodifiableList(toAccount_); - } else { - return toAccountBuilder_.getMessageList(); - } + size = 0; + if (markPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, markPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public int getToAccountCount() { - if (toAccountBuilder_ == null) { - return toAccount_.size(); - } else { - return toAccountBuilder_.getCount(); - } + if (bestBidPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, bestBidPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account getToAccount(int index) { - if (toAccountBuilder_ == null) { - return toAccount_.get(index); - } else { - return toAccountBuilder_.getMessage(index); - } + if (bestBidVolume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, bestBidVolume_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder setToAccount( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (toAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToAccountIsMutable(); - toAccount_.set(index, value); - onChanged(); - } else { - toAccountBuilder_.setMessage(index, value); - } - return this; + if (bestOfferPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, bestOfferPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder setToAccount( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (toAccountBuilder_ == null) { - ensureToAccountIsMutable(); - toAccount_.set(index, builderForValue.build()); - onChanged(); - } else { - toAccountBuilder_.setMessage(index, builderForValue.build()); - } - return this; + if (bestOfferVolume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, bestOfferVolume_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder addToAccount(io.vegaprotocol.vega.Vega.Account value) { - if (toAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToAccountIsMutable(); - toAccount_.add(value); - onChanged(); - } else { - toAccountBuilder_.addMessage(value); - } - return this; + if (bestStaticBidPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, bestStaticBidPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder addToAccount( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (toAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToAccountIsMutable(); - toAccount_.add(index, value); - onChanged(); - } else { - toAccountBuilder_.addMessage(index, value); - } - return this; + if (bestStaticBidVolume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, bestStaticBidVolume_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder addToAccount( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (toAccountBuilder_ == null) { - ensureToAccountIsMutable(); - toAccount_.add(builderForValue.build()); - onChanged(); - } else { - toAccountBuilder_.addMessage(builderForValue.build()); - } - return this; + if (bestStaticOfferPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, bestStaticOfferPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder addToAccount( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (toAccountBuilder_ == null) { - ensureToAccountIsMutable(); - toAccount_.add(index, builderForValue.build()); - onChanged(); - } else { - toAccountBuilder_.addMessage(index, builderForValue.build()); - } - return this; + if (bestStaticOfferVolume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, bestStaticOfferVolume_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder addAllToAccount( - java.lang.Iterable values) { - if (toAccountBuilder_ == null) { - ensureToAccountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, toAccount_); - onChanged(); - } else { - toAccountBuilder_.addAllMessages(values); - } - return this; + if (midPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, midPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder clearToAccount() { - if (toAccountBuilder_ == null) { - toAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - toAccountBuilder_.clear(); - } - return this; + if (staticMidPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(11, staticMidPrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public Builder removeToAccount(int index) { - if (toAccountBuilder_ == null) { - ensureToAccountIsMutable(); - toAccount_.remove(index); - onChanged(); - } else { - toAccountBuilder_.remove(index); - } - return this; + if (!getMarketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, market_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, timestamp_); + } + if (openInterest_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(14, openInterest_); + } + if (auctionEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(15, auctionEnd_); + } + if (auctionStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, auctionStart_); + } + if (indicativePrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(17, indicativePrice_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getToAccountBuilder( - int index) { - return getToAccountFieldBuilder().getBuilder(index); + if (indicativeVolume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(18, indicativeVolume_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( - int index) { - if (toAccountBuilder_ == null) { - return toAccount_.get(index); } else { - return toAccountBuilder_.getMessageOrBuilder(index); - } + if (marketTradingMode_ != io.vegaprotocol.vega.Markets.Market.TradingMode.TRADING_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(19, marketTradingMode_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public java.util.List - getToAccountOrBuilderList() { - if (toAccountBuilder_ != null) { - return toAccountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(toAccount_); - } + if (trigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, trigger_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addToAccountBuilder() { - return getToAccountFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + if (extensionTrigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(21, extensionTrigger_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addToAccountBuilder( - int index) { - return getToAccountFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); + if (!getTargetStakeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, targetStake_); } - /** - *
-       * One or more accounts to transfer to
-       * 
- * - * repeated .vega.Account to_account = 2 [json_name = "toAccount"]; - */ - public java.util.List - getToAccountBuilderList() { - return getToAccountFieldBuilder().getBuilderList(); + if (!getSuppliedStakeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, suppliedStake_); } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getToAccountFieldBuilder() { - if (toAccountBuilder_ == null) { - toAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - toAccount_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - toAccount_ = null; - } - return toAccountBuilder_; + for (int i = 0; i < priceMonitoringBounds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, priceMonitoringBounds_.get(i)); } - - private long amount_ ; - /** - *
-       * An amount to transfer for the asset
-       * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public long getAmount() { - return amount_; + if (!getMarketValueProxyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, marketValueProxy_); } - /** - *
-       * An amount to transfer for the asset
-       * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; + for (int i = 0; i < liquidityProviderFeeShare_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, liquidityProviderFeeShare_.get(i)); } - /** - *
-       * An amount to transfer for the asset
-       * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return This builder for chaining. - */ - public Builder clearAmount() { + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - amount_ = 0L; - onChanged(); - return this; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - private long minAmount_ ; - /** - *
-       * A minimum amount
-       * 
- * - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return The minAmount. - */ - @java.lang.Override - public long getMinAmount() { - return minAmount_; + if (!(obj instanceof io.vegaprotocol.vega.Vega.MarketData)) { + return super.equals(obj); } - /** - *
-       * A minimum amount
-       * 
- * - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @param value The minAmount to set. - * @return This builder for chaining. - */ - public Builder setMinAmount(long value) { + io.vegaprotocol.vega.Vega.MarketData other = (io.vegaprotocol.vega.Vega.MarketData) obj; - minAmount_ = value; - onChanged(); - return this; - } - /** - *
-       * A minimum amount
-       * 
- * - * uint64 min_amount = 4 [json_name = "minAmount"]; - * @return This builder for chaining. - */ - public Builder clearMinAmount() { + if (getMarkPrice() + != other.getMarkPrice()) return false; + if (getBestBidPrice() + != other.getBestBidPrice()) return false; + if (getBestBidVolume() + != other.getBestBidVolume()) return false; + if (getBestOfferPrice() + != other.getBestOfferPrice()) return false; + if (getBestOfferVolume() + != other.getBestOfferVolume()) return false; + if (getBestStaticBidPrice() + != other.getBestStaticBidPrice()) return false; + if (getBestStaticBidVolume() + != other.getBestStaticBidVolume()) return false; + if (getBestStaticOfferPrice() + != other.getBestStaticOfferPrice()) return false; + if (getBestStaticOfferVolume() + != other.getBestStaticOfferVolume()) return false; + if (getMidPrice() + != other.getMidPrice()) return false; + if (getStaticMidPrice() + != other.getStaticMidPrice()) return false; + if (!getMarket() + .equals(other.getMarket())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (getOpenInterest() + != other.getOpenInterest()) return false; + if (getAuctionEnd() + != other.getAuctionEnd()) return false; + if (getAuctionStart() + != other.getAuctionStart()) return false; + if (getIndicativePrice() + != other.getIndicativePrice()) return false; + if (getIndicativeVolume() + != other.getIndicativeVolume()) return false; + if (marketTradingMode_ != other.marketTradingMode_) return false; + if (trigger_ != other.trigger_) return false; + if (extensionTrigger_ != other.extensionTrigger_) return false; + if (!getTargetStake() + .equals(other.getTargetStake())) return false; + if (!getSuppliedStake() + .equals(other.getSuppliedStake())) return false; + if (!getPriceMonitoringBoundsList() + .equals(other.getPriceMonitoringBoundsList())) return false; + if (!getMarketValueProxy() + .equals(other.getMarketValueProxy())) return false; + if (!getLiquidityProviderFeeShareList() + .equals(other.getLiquidityProviderFeeShareList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } - minAmount_ = 0L; - onChanged(); - return this; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - private java.lang.Object asset_ = ""; - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 5 [json_name = "asset"]; - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MARK_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMarkPrice()); + hash = (37 * hash) + BEST_BID_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestBidPrice()); + hash = (37 * hash) + BEST_BID_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestBidVolume()); + hash = (37 * hash) + BEST_OFFER_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestOfferPrice()); + hash = (37 * hash) + BEST_OFFER_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestOfferVolume()); + hash = (37 * hash) + BEST_STATIC_BID_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestStaticBidPrice()); + hash = (37 * hash) + BEST_STATIC_BID_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestStaticBidVolume()); + hash = (37 * hash) + BEST_STATIC_OFFER_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestStaticOfferPrice()); + hash = (37 * hash) + BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBestStaticOfferVolume()); + hash = (37 * hash) + MID_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMidPrice()); + hash = (37 * hash) + STATIC_MID_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStaticMidPrice()); + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + OPEN_INTEREST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOpenInterest()); + hash = (37 * hash) + AUCTION_END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAuctionEnd()); + hash = (37 * hash) + AUCTION_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAuctionStart()); + hash = (37 * hash) + INDICATIVE_PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIndicativePrice()); + hash = (37 * hash) + INDICATIVE_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIndicativeVolume()); + hash = (37 * hash) + MARKET_TRADING_MODE_FIELD_NUMBER; + hash = (53 * hash) + marketTradingMode_; + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + trigger_; + hash = (37 * hash) + EXTENSION_TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + extensionTrigger_; + hash = (37 * hash) + TARGET_STAKE_FIELD_NUMBER; + hash = (53 * hash) + getTargetStake().hashCode(); + hash = (37 * hash) + SUPPLIED_STAKE_FIELD_NUMBER; + hash = (53 * hash) + getSuppliedStake().hashCode(); + if (getPriceMonitoringBoundsCount() > 0) { + hash = (37 * hash) + PRICE_MONITORING_BOUNDS_FIELD_NUMBER; + hash = (53 * hash) + getPriceMonitoringBoundsList().hashCode(); } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 5 [json_name = "asset"]; - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + hash = (37 * hash) + MARKET_VALUE_PROXY_FIELD_NUMBER; + hash = (53 * hash) + getMarketValueProxy().hashCode(); + if (getLiquidityProviderFeeShareCount() > 0) { + hash = (37 * hash) + LIQUIDITY_PROVIDER_FEE_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getLiquidityProviderFeeShareList().hashCode(); } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 5 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - asset_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 5 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.MarketData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.MarketData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 5 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.MarketData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - asset_ = value; - onChanged(); - return this; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents data generated by a market when open
+     * 
+ * + * Protobuf type {@code vega.MarketData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.MarketData) + io.vegaprotocol.vega.Vega.MarketDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; } - private java.lang.Object reference_ = ""; - /** - *
-       * A reference for auditing purposes
-       * 
- * - * string reference = 6 [json_name = "reference"]; - * @return The reference. - */ - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A reference for auditing purposes
-       * 
- * - * string reference = 6 [json_name = "reference"]; - * @return The bytes for reference. - */ - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.MarketData.class, io.vegaprotocol.vega.Vega.MarketData.Builder.class); } - /** - *
-       * A reference for auditing purposes
-       * 
- * - * string reference = 6 [json_name = "reference"]; - * @param value The reference to set. - * @return This builder for chaining. - */ - public Builder setReference( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - return this; + // Construct using io.vegaprotocol.vega.Vega.MarketData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * A reference for auditing purposes
-       * 
- * - * string reference = 6 [json_name = "reference"]; - * @return This builder for chaining. - */ - public Builder clearReference() { - reference_ = getDefaultInstance().getReference(); - onChanged(); - return this; + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - *
-       * A reference for auditing purposes
-       * 
- * - * string reference = 6 [json_name = "reference"]; - * @param value The bytes for reference to set. - * @return This builder for chaining. - */ - public Builder setReferenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reference_ = value; - onChanged(); - return this; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPriceMonitoringBoundsFieldBuilder(); + getLiquidityProviderFeeShareFieldBuilder(); + } } @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + public Builder clear() { + super.clear(); + markPrice_ = 0L; - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + bestBidPrice_ = 0L; + bestBidVolume_ = 0L; - // @@protoc_insertion_point(builder_scope:vega.TransferRequest) - } + bestOfferPrice_ = 0L; - // @@protoc_insertion_point(class_scope:vega.TransferRequest) - private static final io.vegaprotocol.vega.Vega.TransferRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferRequest(); - } + bestOfferVolume_ = 0L; - public static io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + bestStaticBidPrice_ = 0L; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferRequest(input, extensionRegistry); - } - }; + bestStaticBidVolume_ = 0L; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + bestStaticOfferPrice_ = 0L; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + bestStaticOfferVolume_ = 0L; - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + midPrice_ = 0L; - } + staticMidPrice_ = 0L; - public interface LedgerEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.LedgerEntry) - com.google.protobuf.MessageOrBuilder { + market_ = ""; - /** - *
-     * One or more accounts to transfer from
-     * 
- * - * string from_account = 1 [json_name = "fromAccount"]; - * @return The fromAccount. - */ - java.lang.String getFromAccount(); - /** - *
-     * One or more accounts to transfer from
-     * 
- * - * string from_account = 1 [json_name = "fromAccount"]; - * @return The bytes for fromAccount. - */ - com.google.protobuf.ByteString - getFromAccountBytes(); + timestamp_ = 0L; - /** - *
-     * One or more accounts to transfer to
-     * 
- * - * string to_account = 2 [json_name = "toAccount"]; - * @return The toAccount. - */ - java.lang.String getToAccount(); - /** - *
-     * One or more accounts to transfer to
-     * 
- * - * string to_account = 2 [json_name = "toAccount"]; - * @return The bytes for toAccount. - */ - com.google.protobuf.ByteString - getToAccountBytes(); + openInterest_ = 0L; - /** - *
-     * An amount to transfer
-     * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - long getAmount(); + auctionEnd_ = 0L; - /** - *
-     * A reference for auditing purposes
-     * 
- * - * string reference = 4 [json_name = "reference"]; - * @return The reference. - */ - java.lang.String getReference(); - /** - *
-     * A reference for auditing purposes
-     * 
- * - * string reference = 4 [json_name = "reference"]; - * @return The bytes for reference. - */ - com.google.protobuf.ByteString - getReferenceBytes(); + auctionStart_ = 0L; - /** - *
-     * Type of ledger entry
-     * 
- * - * string type = 5 [json_name = "type"]; - * @return The type. - */ - java.lang.String getType(); - /** - *
-     * Type of ledger entry
-     * 
- * - * string type = 5 [json_name = "type"]; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); + indicativePrice_ = 0L; - /** - *
-     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 timestamp = 6 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Represents a ledger entry on Vega
-   * 
- * - * Protobuf type {@code vega.LedgerEntry} - */ - public static final class LedgerEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.LedgerEntry) - LedgerEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use LedgerEntry.newBuilder() to construct. - private LedgerEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LedgerEntry() { - fromAccount_ = ""; - toAccount_ = ""; - reference_ = ""; - type_ = ""; - } + indicativeVolume_ = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LedgerEntry(); - } + marketTradingMode_ = 0; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LedgerEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + trigger_ = 0; + + extensionTrigger_ = 0; + + targetStake_ = ""; + + suppliedStake_ = ""; + + if (priceMonitoringBoundsBuilder_ == null) { + priceMonitoringBounds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + priceMonitoringBoundsBuilder_.clear(); + } + marketValueProxy_ = ""; + + if (liquidityProviderFeeShareBuilder_ == null) { + liquidityProviderFeeShare_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + liquidityProviderFeeShareBuilder_.clear(); + } + return this; } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - fromAccount_ = s; - break; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketData getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketData build() { + io.vegaprotocol.vega.Vega.MarketData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketData buildPartial() { + io.vegaprotocol.vega.Vega.MarketData result = new io.vegaprotocol.vega.Vega.MarketData(this); + int from_bitField0_ = bitField0_; + result.markPrice_ = markPrice_; + result.bestBidPrice_ = bestBidPrice_; + result.bestBidVolume_ = bestBidVolume_; + result.bestOfferPrice_ = bestOfferPrice_; + result.bestOfferVolume_ = bestOfferVolume_; + result.bestStaticBidPrice_ = bestStaticBidPrice_; + result.bestStaticBidVolume_ = bestStaticBidVolume_; + result.bestStaticOfferPrice_ = bestStaticOfferPrice_; + result.bestStaticOfferVolume_ = bestStaticOfferVolume_; + result.midPrice_ = midPrice_; + result.staticMidPrice_ = staticMidPrice_; + result.market_ = market_; + result.timestamp_ = timestamp_; + result.openInterest_ = openInterest_; + result.auctionEnd_ = auctionEnd_; + result.auctionStart_ = auctionStart_; + result.indicativePrice_ = indicativePrice_; + result.indicativeVolume_ = indicativeVolume_; + result.marketTradingMode_ = marketTradingMode_; + result.trigger_ = trigger_; + result.extensionTrigger_ = extensionTrigger_; + result.targetStake_ = targetStake_; + result.suppliedStake_ = suppliedStake_; + if (priceMonitoringBoundsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + priceMonitoringBounds_ = java.util.Collections.unmodifiableList(priceMonitoringBounds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.priceMonitoringBounds_ = priceMonitoringBounds_; + } else { + result.priceMonitoringBounds_ = priceMonitoringBoundsBuilder_.build(); + } + result.marketValueProxy_ = marketValueProxy_; + if (liquidityProviderFeeShareBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + liquidityProviderFeeShare_ = java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.liquidityProviderFeeShare_ = liquidityProviderFeeShare_; + } else { + result.liquidityProviderFeeShare_ = liquidityProviderFeeShareBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.MarketData) { + return mergeFrom((io.vegaprotocol.vega.Vega.MarketData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarketData other) { + if (other == io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()) return this; + if (other.getMarkPrice() != 0L) { + setMarkPrice(other.getMarkPrice()); + } + if (other.getBestBidPrice() != 0L) { + setBestBidPrice(other.getBestBidPrice()); + } + if (other.getBestBidVolume() != 0L) { + setBestBidVolume(other.getBestBidVolume()); + } + if (other.getBestOfferPrice() != 0L) { + setBestOfferPrice(other.getBestOfferPrice()); + } + if (other.getBestOfferVolume() != 0L) { + setBestOfferVolume(other.getBestOfferVolume()); + } + if (other.getBestStaticBidPrice() != 0L) { + setBestStaticBidPrice(other.getBestStaticBidPrice()); + } + if (other.getBestStaticBidVolume() != 0L) { + setBestStaticBidVolume(other.getBestStaticBidVolume()); + } + if (other.getBestStaticOfferPrice() != 0L) { + setBestStaticOfferPrice(other.getBestStaticOfferPrice()); + } + if (other.getBestStaticOfferVolume() != 0L) { + setBestStaticOfferVolume(other.getBestStaticOfferVolume()); + } + if (other.getMidPrice() != 0L) { + setMidPrice(other.getMidPrice()); + } + if (other.getStaticMidPrice() != 0L) { + setStaticMidPrice(other.getStaticMidPrice()); + } + if (!other.getMarket().isEmpty()) { + market_ = other.market_; + onChanged(); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getOpenInterest() != 0L) { + setOpenInterest(other.getOpenInterest()); + } + if (other.getAuctionEnd() != 0L) { + setAuctionEnd(other.getAuctionEnd()); + } + if (other.getAuctionStart() != 0L) { + setAuctionStart(other.getAuctionStart()); + } + if (other.getIndicativePrice() != 0L) { + setIndicativePrice(other.getIndicativePrice()); + } + if (other.getIndicativeVolume() != 0L) { + setIndicativeVolume(other.getIndicativeVolume()); + } + if (other.marketTradingMode_ != 0) { + setMarketTradingModeValue(other.getMarketTradingModeValue()); + } + if (other.trigger_ != 0) { + setTriggerValue(other.getTriggerValue()); + } + if (other.extensionTrigger_ != 0) { + setExtensionTriggerValue(other.getExtensionTriggerValue()); + } + if (!other.getTargetStake().isEmpty()) { + targetStake_ = other.targetStake_; + onChanged(); + } + if (!other.getSuppliedStake().isEmpty()) { + suppliedStake_ = other.suppliedStake_; + onChanged(); + } + if (priceMonitoringBoundsBuilder_ == null) { + if (!other.priceMonitoringBounds_.isEmpty()) { + if (priceMonitoringBounds_.isEmpty()) { + priceMonitoringBounds_ = other.priceMonitoringBounds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.addAll(other.priceMonitoringBounds_); } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - toAccount_ = s; - break; + onChanged(); + } + } else { + if (!other.priceMonitoringBounds_.isEmpty()) { + if (priceMonitoringBoundsBuilder_.isEmpty()) { + priceMonitoringBoundsBuilder_.dispose(); + priceMonitoringBoundsBuilder_ = null; + priceMonitoringBounds_ = other.priceMonitoringBounds_; + bitField0_ = (bitField0_ & ~0x00000001); + priceMonitoringBoundsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPriceMonitoringBoundsFieldBuilder() : null; + } else { + priceMonitoringBoundsBuilder_.addAllMessages(other.priceMonitoringBounds_); } - case 24: { - - amount_ = input.readUInt64(); - break; + } + } + if (!other.getMarketValueProxy().isEmpty()) { + marketValueProxy_ = other.marketValueProxy_; + onChanged(); + } + if (liquidityProviderFeeShareBuilder_ == null) { + if (!other.liquidityProviderFeeShare_.isEmpty()) { + if (liquidityProviderFeeShare_.isEmpty()) { + liquidityProviderFeeShare_ = other.liquidityProviderFeeShare_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.addAll(other.liquidityProviderFeeShare_); } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - reference_ = s; - break; + onChanged(); + } + } else { + if (!other.liquidityProviderFeeShare_.isEmpty()) { + if (liquidityProviderFeeShareBuilder_.isEmpty()) { + liquidityProviderFeeShareBuilder_.dispose(); + liquidityProviderFeeShareBuilder_ = null; + liquidityProviderFeeShare_ = other.liquidityProviderFeeShare_; + bitField0_ = (bitField0_ & ~0x00000002); + liquidityProviderFeeShareBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLiquidityProviderFeeShareFieldBuilder() : null; + } else { + liquidityProviderFeeShareBuilder_.addAllMessages(other.liquidityProviderFeeShare_); } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - type_ = s; - break; - } - case 48: { + @java.lang.Override + public final boolean isInitialized() { + return true; + } - timestamp_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.MarketData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.MarketData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this; } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; - } + private int bitField0_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LedgerEntry.class, io.vegaprotocol.vega.Vega.LedgerEntry.Builder.class); - } + private long markPrice_ ; + /** + *
+       * Mark price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mark_price = 1 [json_name = "markPrice"]; + * @return The markPrice. + */ + @java.lang.Override + public long getMarkPrice() { + return markPrice_; + } + /** + *
+       * Mark price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mark_price = 1 [json_name = "markPrice"]; + * @param value The markPrice to set. + * @return This builder for chaining. + */ + public Builder setMarkPrice(long value) { - public static final int FROM_ACCOUNT_FIELD_NUMBER = 1; - private volatile java.lang.Object fromAccount_; - /** - *
-     * One or more accounts to transfer from
-     * 
- * - * string from_account = 1 [json_name = "fromAccount"]; - * @return The fromAccount. - */ - @java.lang.Override - public java.lang.String getFromAccount() { - java.lang.Object ref = fromAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAccount_ = s; - return s; + markPrice_ = value; + onChanged(); + return this; } - } - /** - *
-     * One or more accounts to transfer from
-     * 
- * - * string from_account = 1 [json_name = "fromAccount"]; - * @return The bytes for fromAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFromAccountBytes() { - java.lang.Object ref = fromAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+       * Mark price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mark_price = 1 [json_name = "markPrice"]; + * @return This builder for chaining. + */ + public Builder clearMarkPrice() { + + markPrice_ = 0L; + onChanged(); + return this; } - } - public static final int TO_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object toAccount_; - /** - *
-     * One or more accounts to transfer to
-     * 
- * - * string to_account = 2 [json_name = "toAccount"]; - * @return The toAccount. - */ - @java.lang.Override - public java.lang.String getToAccount() { - java.lang.Object ref = toAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAccount_ = s; - return s; + private long bestBidPrice_ ; + /** + *
+       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bestBidPrice. + */ + @java.lang.Override + public long getBestBidPrice() { + return bestBidPrice_; } - } - /** - *
-     * One or more accounts to transfer to
-     * 
- * - * string to_account = 2 [json_name = "toAccount"]; - * @return The bytes for toAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getToAccountBytes() { - java.lang.Object ref = toAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * @param value The bestBidPrice to set. + * @return This builder for chaining. + */ + public Builder setBestBidPrice(long value) { + + bestBidPrice_ = value; + onChanged(); + return this; } - } + /** + *
+       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return This builder for chaining. + */ + public Builder clearBestBidPrice() { - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; - /** - *
-     * An amount to transfer
-     * 
- * - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public long getAmount() { - return amount_; - } + bestBidPrice_ = 0L; + onChanged(); + return this; + } - public static final int REFERENCE_FIELD_NUMBER = 4; - private volatile java.lang.Object reference_; - /** - *
-     * A reference for auditing purposes
-     * 
- * - * string reference = 4 [json_name = "reference"]; - * @return The reference. - */ - @java.lang.Override - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; + private long bestBidVolume_ ; + /** + *
+       * Aggregated volume being bid at the best bid price
+       * 
+ * + * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * @return The bestBidVolume. + */ + @java.lang.Override + public long getBestBidVolume() { + return bestBidVolume_; } - } - /** - *
-     * A reference for auditing purposes
-     * 
- * - * string reference = 4 [json_name = "reference"]; - * @return The bytes for reference. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+       * Aggregated volume being bid at the best bid price
+       * 
+ * + * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * @param value The bestBidVolume to set. + * @return This builder for chaining. + */ + public Builder setBestBidVolume(long value) { + + bestBidVolume_ = value; + onChanged(); + return this; } - } + /** + *
+       * Aggregated volume being bid at the best bid price
+       * 
+ * + * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * @return This builder for chaining. + */ + public Builder clearBestBidVolume() { - public static final int TYPE_FIELD_NUMBER = 5; - private volatile java.lang.Object type_; - /** - *
-     * Type of ledger entry
-     * 
- * - * string type = 5 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; + bestBidVolume_ = 0L; + onChanged(); + return this; } - } - /** - *
-     * Type of ledger entry
-     * 
- * - * string type = 5 [json_name = "type"]; - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private long bestOfferPrice_ ; + /** + *
+       * Lowest price level on an order book for offer orders
+       * 
+ * + * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bestOfferPrice. + */ + @java.lang.Override + public long getBestOfferPrice() { + return bestOfferPrice_; } - } + /** + *
+       * Lowest price level on an order book for offer orders
+       * 
+ * + * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @param value The bestOfferPrice to set. + * @return This builder for chaining. + */ + public Builder setBestOfferPrice(long value) { - public static final int TIMESTAMP_FIELD_NUMBER = 6; - private long timestamp_; - /** - *
-     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 timestamp = 6 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } + bestOfferPrice_ = value; + onChanged(); + return this; + } + /** + *
+       * Lowest price level on an order book for offer orders
+       * 
+ * + * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return This builder for chaining. + */ + public Builder clearBestOfferPrice() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + bestOfferPrice_ = 0L; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private long bestOfferVolume_ ; + /** + *
+       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
+       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; + * @return The bestOfferVolume. + */ + @java.lang.Override + public long getBestOfferVolume() { + return bestOfferVolume_; + } + /** + *
+       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
+       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; + * @param value The bestOfferVolume to set. + * @return This builder for chaining. + */ + public Builder setBestOfferVolume(long value) { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromAccount_); + bestOfferVolume_ = value; + onChanged(); + return this; } - if (!getToAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toAccount_); + /** + *
+       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
+       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; + * @return This builder for chaining. + */ + public Builder clearBestOfferVolume() { + + bestOfferVolume_ = 0L; + onChanged(); + return this; } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); + + private long bestStaticBidPrice_ ; + /** + *
+       * Highest price on the order book for buy orders not including pegged orders
+       * 
+ * + * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bestStaticBidPrice. + */ + @java.lang.Override + public long getBestStaticBidPrice() { + return bestStaticBidPrice_; } - if (!getReferenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reference_); + /** + *
+       * Highest price on the order book for buy orders not including pegged orders
+       * 
+ * + * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @param value The bestStaticBidPrice to set. + * @return This builder for chaining. + */ + public Builder setBestStaticBidPrice(long value) { + + bestStaticBidPrice_ = value; + onChanged(); + return this; } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, type_); + /** + *
+       * Highest price on the order book for buy orders not including pegged orders
+       * 
+ * + * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return This builder for chaining. + */ + public Builder clearBestStaticBidPrice() { + + bestStaticBidPrice_ = 0L; + onChanged(); + return this; } - if (timestamp_ != 0L) { - output.writeInt64(6, timestamp_); + + private long bestStaticBidVolume_ ; + /** + *
+       * Total volume at the best static bid price excluding pegged orders
+       * 
+ * + * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; + * @return The bestStaticBidVolume. + */ + @java.lang.Override + public long getBestStaticBidVolume() { + return bestStaticBidVolume_; } - unknownFields.writeTo(output); - } + /** + *
+       * Total volume at the best static bid price excluding pegged orders
+       * 
+ * + * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; + * @param value The bestStaticBidVolume to set. + * @return This builder for chaining. + */ + public Builder setBestStaticBidVolume(long value) { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + bestStaticBidVolume_ = value; + onChanged(); + return this; + } + /** + *
+       * Total volume at the best static bid price excluding pegged orders
+       * 
+ * + * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; + * @return This builder for chaining. + */ + public Builder clearBestStaticBidVolume() { - size = 0; - if (!getFromAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromAccount_); + bestStaticBidVolume_ = 0L; + onChanged(); + return this; } - if (!getToAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toAccount_); + + private long bestStaticOfferPrice_ ; + /** + *
+       * Lowest price on the order book for sell orders not including pegged orders
+       * 
+ * + * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bestStaticOfferPrice. + */ + @java.lang.Override + public long getBestStaticOfferPrice() { + return bestStaticOfferPrice_; } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); + /** + *
+       * Lowest price on the order book for sell orders not including pegged orders
+       * 
+ * + * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @param value The bestStaticOfferPrice to set. + * @return This builder for chaining. + */ + public Builder setBestStaticOfferPrice(long value) { + + bestStaticOfferPrice_ = value; + onChanged(); + return this; } - if (!getReferenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reference_); + /** + *
+       * Lowest price on the order book for sell orders not including pegged orders
+       * 
+ * + * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return This builder for chaining. + */ + public Builder clearBestStaticOfferPrice() { + + bestStaticOfferPrice_ = 0L; + onChanged(); + return this; } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_); + + private long bestStaticOfferVolume_ ; + /** + *
+       * Total volume at the best static offer price excluding pegged orders
+       * 
+ * + * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; + * @return The bestStaticOfferVolume. + */ + @java.lang.Override + public long getBestStaticOfferVolume() { + return bestStaticOfferVolume_; } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, timestamp_); + /** + *
+       * Total volume at the best static offer price excluding pegged orders
+       * 
+ * + * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; + * @param value The bestStaticOfferVolume to set. + * @return This builder for chaining. + */ + public Builder setBestStaticOfferVolume(long value) { + + bestStaticOfferVolume_ = value; + onChanged(); + return this; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+       * Total volume at the best static offer price excluding pegged orders
+       * 
+ * + * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; + * @return This builder for chaining. + */ + public Builder clearBestStaticOfferVolume() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + bestStaticOfferVolume_ = 0L; + onChanged(); + return this; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.LedgerEntry)) { - return super.equals(obj); + + private long midPrice_ ; + /** + *
+       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mid_price = 10 [json_name = "midPrice"]; + * @return The midPrice. + */ + @java.lang.Override + public long getMidPrice() { + return midPrice_; } - io.vegaprotocol.vega.Vega.LedgerEntry other = (io.vegaprotocol.vega.Vega.LedgerEntry) obj; + /** + *
+       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mid_price = 10 [json_name = "midPrice"]; + * @param value The midPrice to set. + * @return This builder for chaining. + */ + public Builder setMidPrice(long value) { - if (!getFromAccount() - .equals(other.getFromAccount())) return false; - if (!getToAccount() - .equals(other.getToAccount())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getReference() - .equals(other.getReference())) return false; - if (!getType() - .equals(other.getType())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + midPrice_ = value; + onChanged(); + return this; + } + /** + *
+       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
+       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * 
+ * + * uint64 mid_price = 10 [json_name = "midPrice"]; + * @return This builder for chaining. + */ + public Builder clearMidPrice() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + midPrice_ = 0L; + onChanged(); + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getFromAccount().hashCode(); - hash = (37 * hash) + TO_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getToAccount().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LedgerEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private long staticMidPrice_ ; + /** + *
+       * Arithmetic average of the best static bid price and best static offer price
+       * 
+ * + * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The staticMidPrice. + */ + @java.lang.Override + public long getStaticMidPrice() { + return staticMidPrice_; + } + /** + *
+       * Arithmetic average of the best static bid price and best static offer price
+       * 
+ * + * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * @param value The staticMidPrice to set. + * @return This builder for chaining. + */ + public Builder setStaticMidPrice(long value) { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.LedgerEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + staticMidPrice_ = value; + onChanged(); + return this; + } + /** + *
+       * Arithmetic average of the best static bid price and best static offer price
+       * 
+ * + * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return This builder for chaining. + */ + public Builder clearStaticMidPrice() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represents a ledger entry on Vega
-     * 
- * - * Protobuf type {@code vega.LedgerEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.LedgerEntry) - io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; + staticMidPrice_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object market_ = ""; + /** + *
+       * Market identifier for the data
+       * 
+ * + * string market = 12 [json_name = "market"]; + * @return The market. + */ + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Market identifier for the data
+       * 
+ * + * string market = 12 [json_name = "market"]; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + /** + *
+       * Market identifier for the data
+       * 
+ * + * string market = 12 [json_name = "market"]; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LedgerEntry.class, io.vegaprotocol.vega.Vega.LedgerEntry.Builder.class); + market_ = value; + onChanged(); + return this; } + /** + *
+       * Market identifier for the data
+       * 
+ * + * string market = 12 [json_name = "market"]; + * @return This builder for chaining. + */ + public Builder clearMarket() { - // Construct using io.vegaprotocol.vega.Vega.LedgerEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + market_ = getDefaultInstance().getMarket(); + onChanged(); + return this; } + /** + *
+       * Market identifier for the data
+       * 
+ * + * string market = 12 [json_name = "market"]; + * @param value The bytes for market to set. + * @return This builder for chaining. + */ + public Builder setMarketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + market_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - fromAccount_ = ""; - - toAccount_ = ""; - - amount_ = 0L; - reference_ = ""; + private long timestamp_ ; + /** + *
+       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 13 [json_name = "timestamp"]; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 13 [json_name = "timestamp"]; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { - type_ = ""; + timestamp_ = value; + onChanged(); + return this; + } + /** + *
+       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 timestamp = 13 [json_name = "timestamp"]; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { timestamp_ = 0L; - + onChanged(); return this; } + private long openInterest_ ; + /** + *
+       * The sum of the size of all positions greater than 0 on the market
+       * 
+ * + * uint64 open_interest = 14 [json_name = "openInterest"]; + * @return The openInterest. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LedgerEntry_descriptor; + public long getOpenInterest() { + return openInterest_; } + /** + *
+       * The sum of the size of all positions greater than 0 on the market
+       * 
+ * + * uint64 open_interest = 14 [json_name = "openInterest"]; + * @param value The openInterest to set. + * @return This builder for chaining. + */ + public Builder setOpenInterest(long value) { - @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance(); + openInterest_ = value; + onChanged(); + return this; } + /** + *
+       * The sum of the size of all positions greater than 0 on the market
+       * 
+ * + * uint64 open_interest = 14 [json_name = "openInterest"]; + * @return This builder for chaining. + */ + public Builder clearOpenInterest() { - @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntry build() { - io.vegaprotocol.vega.Vega.LedgerEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + openInterest_ = 0L; + onChanged(); + return this; } + private long auctionEnd_ ; + /** + *
+       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * 
+ * + * int64 auction_end = 15 [json_name = "auctionEnd"]; + * @return The auctionEnd. + */ @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntry buildPartial() { - io.vegaprotocol.vega.Vega.LedgerEntry result = new io.vegaprotocol.vega.Vega.LedgerEntry(this); - result.fromAccount_ = fromAccount_; - result.toAccount_ = toAccount_; - result.amount_ = amount_; - result.reference_ = reference_; - result.type_ = type_; - result.timestamp_ = timestamp_; - onBuilt(); - return result; + public long getAuctionEnd() { + return auctionEnd_; } + /** + *
+       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * 
+ * + * int64 auction_end = 15 [json_name = "auctionEnd"]; + * @param value The auctionEnd to set. + * @return This builder for chaining. + */ + public Builder setAuctionEnd(long value) { - @java.lang.Override - public Builder clone() { - return super.clone(); + auctionEnd_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + /** + *
+       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * 
+ * + * int64 auction_end = 15 [json_name = "auctionEnd"]; + * @return This builder for chaining. + */ + public Builder clearAuctionEnd() { + + auctionEnd_ = 0L; + onChanged(); + return this; } + + private long auctionStart_ ; + /** + *
+       * Time until next auction (used in FBA's) - currently always 0
+       * 
+ * + * int64 auction_start = 16 [json_name = "auctionStart"]; + * @return The auctionStart. + */ @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public long getAuctionStart() { + return auctionStart_; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + *
+       * Time until next auction (used in FBA's) - currently always 0
+       * 
+ * + * int64 auction_start = 16 [json_name = "auctionStart"]; + * @param value The auctionStart to set. + * @return This builder for chaining. + */ + public Builder setAuctionStart(long value) { + + auctionStart_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+       * Time until next auction (used in FBA's) - currently always 0
+       * 
+ * + * int64 auction_start = 16 [json_name = "auctionStart"]; + * @return This builder for chaining. + */ + public Builder clearAuctionStart() { + + auctionStart_ = 0L; + onChanged(); + return this; } + + private long indicativePrice_ ; + /** + *
+       * Indicative price (zero if not in auction)
+       * 
+ * + * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * @return The indicativePrice. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public long getIndicativePrice() { + return indicativePrice_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.LedgerEntry) { - return mergeFrom((io.vegaprotocol.vega.Vega.LedgerEntry)other); - } else { - super.mergeFrom(other); - return this; - } + /** + *
+       * Indicative price (zero if not in auction)
+       * 
+ * + * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * @param value The indicativePrice to set. + * @return This builder for chaining. + */ + public Builder setIndicativePrice(long value) { + + indicativePrice_ = value; + onChanged(); + return this; } + /** + *
+       * Indicative price (zero if not in auction)
+       * 
+ * + * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * @return This builder for chaining. + */ + public Builder clearIndicativePrice() { - public Builder mergeFrom(io.vegaprotocol.vega.Vega.LedgerEntry other) { - if (other == io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()) return this; - if (!other.getFromAccount().isEmpty()) { - fromAccount_ = other.fromAccount_; - onChanged(); - } - if (!other.getToAccount().isEmpty()) { - toAccount_ = other.toAccount_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getReference().isEmpty()) { - reference_ = other.reference_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); + indicativePrice_ = 0L; onChanged(); return this; } + private long indicativeVolume_ ; + /** + *
+       * Indicative volume (zero if not in auction)
+       * 
+ * + * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; + * @return The indicativeVolume. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public long getIndicativeVolume() { + return indicativeVolume_; } + /** + *
+       * Indicative volume (zero if not in auction)
+       * 
+ * + * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; + * @param value The indicativeVolume to set. + * @return This builder for chaining. + */ + public Builder setIndicativeVolume(long value) { - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.LedgerEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.LedgerEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + indicativeVolume_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicative volume (zero if not in auction)
+       * 
+ * + * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; + * @return This builder for chaining. + */ + public Builder clearIndicativeVolume() { + + indicativeVolume_ = 0L; + onChanged(); return this; } - private java.lang.Object fromAccount_ = ""; + private int marketTradingMode_ = 0; /** *
-       * One or more accounts to transfer from
+       * The current trading mode for the market
        * 
* - * string from_account = 1 [json_name = "fromAccount"]; - * @return The fromAccount. + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The enum numeric value on the wire for marketTradingMode. */ - public java.lang.String getFromAccount() { - java.lang.Object ref = fromAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override public int getMarketTradingModeValue() { + return marketTradingMode_; } /** *
-       * One or more accounts to transfer from
+       * The current trading mode for the market
        * 
* - * string from_account = 1 [json_name = "fromAccount"]; - * @return The bytes for fromAccount. + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @param value The enum numeric value on the wire for marketTradingMode to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString - getFromAccountBytes() { - java.lang.Object ref = fromAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setMarketTradingModeValue(int value) { + + marketTradingMode_ = value; + onChanged(); + return this; } /** *
-       * One or more accounts to transfer from
+       * The current trading mode for the market
        * 
* - * string from_account = 1 [json_name = "fromAccount"]; - * @param value The fromAccount to set. + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @return The marketTradingMode. + */ + @java.lang.Override + public io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Markets.Market.TradingMode result = io.vegaprotocol.vega.Markets.Market.TradingMode.valueOf(marketTradingMode_); + return result == null ? io.vegaprotocol.vega.Markets.Market.TradingMode.UNRECOGNIZED : result; + } + /** + *
+       * The current trading mode for the market
+       * 
+ * + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; + * @param value The marketTradingMode to set. * @return This builder for chaining. */ - public Builder setFromAccount( - java.lang.String value) { + public Builder setMarketTradingMode(io.vegaprotocol.vega.Markets.Market.TradingMode value) { if (value == null) { - throw new NullPointerException(); - } + throw new NullPointerException(); + } - fromAccount_ = value; + marketTradingMode_ = value.getNumber(); onChanged(); return this; } /** *
-       * One or more accounts to transfer from
+       * The current trading mode for the market
        * 
* - * string from_account = 1 [json_name = "fromAccount"]; + * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; * @return This builder for chaining. */ - public Builder clearFromAccount() { + public Builder clearMarketTradingMode() { - fromAccount_ = getDefaultInstance().getFromAccount(); + marketTradingMode_ = 0; onChanged(); return this; } + + private int trigger_ = 0; + /** + *
+       * When a market is in an auction trading mode, this field indicates what triggered the auction
+       * 
+ * + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The enum numeric value on the wire for trigger. + */ + @java.lang.Override public int getTriggerValue() { + return trigger_; + } /** *
-       * One or more accounts to transfer from
+       * When a market is in an auction trading mode, this field indicates what triggered the auction
        * 
* - * string from_account = 1 [json_name = "fromAccount"]; - * @param value The bytes for fromAccount to set. + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @param value The enum numeric value on the wire for trigger to set. * @return This builder for chaining. */ - public Builder setFromAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setTriggerValue(int value) { - fromAccount_ = value; + trigger_ = value; onChanged(); return this; } - - private java.lang.Object toAccount_ = ""; /** *
-       * One or more accounts to transfer to
+       * When a market is in an auction trading mode, this field indicates what triggered the auction
        * 
* - * string to_account = 2 [json_name = "toAccount"]; - * @return The toAccount. + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @return The trigger. */ - public java.lang.String getToAccount() { - java.lang.Object ref = toAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(trigger_); + return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; } /** *
-       * One or more accounts to transfer to
+       * When a market is in an auction trading mode, this field indicates what triggered the auction
        * 
* - * string to_account = 2 [json_name = "toAccount"]; - * @return The bytes for toAccount. + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; + * @param value The trigger to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString - getToAccountBytes() { - java.lang.Object ref = toAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - toAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setTrigger(io.vegaprotocol.vega.Vega.AuctionTrigger value) { + if (value == null) { + throw new NullPointerException(); } + + trigger_ = value.getNumber(); + onChanged(); + return this; } /** *
-       * One or more accounts to transfer to
+       * When a market is in an auction trading mode, this field indicates what triggered the auction
        * 
* - * string to_account = 2 [json_name = "toAccount"]; - * @param value The toAccount to set. + * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; * @return This builder for chaining. */ - public Builder setToAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearTrigger() { - toAccount_ = value; + trigger_ = 0; onChanged(); return this; } + + private int extensionTrigger_ = 0; /** *
-       * One or more accounts to transfer to
+       * When a market auction is extended, this field indicates what caused the extension
        * 
* - * string to_account = 2 [json_name = "toAccount"]; - * @return This builder for chaining. + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The enum numeric value on the wire for extensionTrigger. */ - public Builder clearToAccount() { - - toAccount_ = getDefaultInstance().getToAccount(); - onChanged(); - return this; + @java.lang.Override public int getExtensionTriggerValue() { + return extensionTrigger_; } /** *
-       * One or more accounts to transfer to
+       * When a market auction is extended, this field indicates what caused the extension
        * 
* - * string to_account = 2 [json_name = "toAccount"]; - * @param value The bytes for toAccount to set. + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @param value The enum numeric value on the wire for extensionTrigger to set. * @return This builder for chaining. */ - public Builder setToAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setExtensionTriggerValue(int value) { - toAccount_ = value; + extensionTrigger_ = value; onChanged(); return this; } - - private long amount_ ; /** *
-       * An amount to transfer
+       * When a market auction is extended, this field indicates what caused the extension
        * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @return The amount. + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @return The extensionTrigger. */ @java.lang.Override - public long getAmount() { - return amount_; + public io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(extensionTrigger_); + return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; } /** *
-       * An amount to transfer
+       * When a market auction is extended, this field indicates what caused the extension
        * 
* - * uint64 amount = 3 [json_name = "amount"]; - * @param value The amount to set. + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; + * @param value The extensionTrigger to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setExtensionTrigger(io.vegaprotocol.vega.Vega.AuctionTrigger value) { + if (value == null) { + throw new NullPointerException(); + } - amount_ = value; + extensionTrigger_ = value.getNumber(); onChanged(); return this; } /** *
-       * An amount to transfer
+       * When a market auction is extended, this field indicates what caused the extension
        * 
* - * uint64 amount = 3 [json_name = "amount"]; + * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; * @return This builder for chaining. */ - public Builder clearAmount() { + public Builder clearExtensionTrigger() { - amount_ = 0L; + extensionTrigger_ = 0; onChanged(); return this; } - private java.lang.Object reference_ = ""; + private java.lang.Object targetStake_ = ""; /** *
-       * A reference for auditing purposes
+       * Targeted stake for the given market
        * 
* - * string reference = 4 [json_name = "reference"]; - * @return The reference. + * string target_stake = 22 [json_name = "targetStake"]; + * @return The targetStake. */ - public java.lang.String getReference() { - java.lang.Object ref = reference_; + public java.lang.String getTargetStake() { + java.lang.Object ref = targetStake_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - reference_ = s; + targetStake_ = s; return s; } else { return (java.lang.String) ref; @@ -41891,20 +45341,20 @@ public java.lang.String getReference() { } /** *
-       * A reference for auditing purposes
+       * Targeted stake for the given market
        * 
* - * string reference = 4 [json_name = "reference"]; - * @return The bytes for reference. + * string target_stake = 22 [json_name = "targetStake"]; + * @return The bytes for targetStake. */ public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; + getTargetStakeBytes() { + java.lang.Object ref = targetStake_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - reference_ = b; + targetStake_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -41912,74 +45362,74 @@ public java.lang.String getReference() { } /** *
-       * A reference for auditing purposes
+       * Targeted stake for the given market
        * 
* - * string reference = 4 [json_name = "reference"]; - * @param value The reference to set. + * string target_stake = 22 [json_name = "targetStake"]; + * @param value The targetStake to set. * @return This builder for chaining. */ - public Builder setReference( + public Builder setTargetStake( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - reference_ = value; + targetStake_ = value; onChanged(); return this; } /** *
-       * A reference for auditing purposes
+       * Targeted stake for the given market
        * 
* - * string reference = 4 [json_name = "reference"]; + * string target_stake = 22 [json_name = "targetStake"]; * @return This builder for chaining. */ - public Builder clearReference() { + public Builder clearTargetStake() { - reference_ = getDefaultInstance().getReference(); + targetStake_ = getDefaultInstance().getTargetStake(); onChanged(); return this; } /** *
-       * A reference for auditing purposes
+       * Targeted stake for the given market
        * 
* - * string reference = 4 [json_name = "reference"]; - * @param value The bytes for reference to set. + * string target_stake = 22 [json_name = "targetStake"]; + * @param value The bytes for targetStake to set. * @return This builder for chaining. */ - public Builder setReferenceBytes( + public Builder setTargetStakeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - reference_ = value; + targetStake_ = value; onChanged(); return this; } - private java.lang.Object type_ = ""; + private java.lang.Object suppliedStake_ = ""; /** *
-       * Type of ledger entry
+       * Available stake for the given market
        * 
* - * string type = 5 [json_name = "type"]; - * @return The type. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The suppliedStake. */ - public java.lang.String getType() { - java.lang.Object ref = type_; + public java.lang.String getSuppliedStake() { + java.lang.Object ref = suppliedStake_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - type_ = s; + suppliedStake_ = s; return s; } else { return (java.lang.String) ref; @@ -41987,20 +45437,20 @@ public java.lang.String getType() { } /** *
-       * Type of ledger entry
+       * Available stake for the given market
        * 
* - * string type = 5 [json_name = "type"]; - * @return The bytes for type. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @return The bytes for suppliedStake. */ public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; + getSuppliedStakeBytes() { + java.lang.Object ref = suppliedStake_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - type_ = b; + suppliedStake_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -42008,882 +45458,776 @@ public java.lang.String getType() { } /** *
-       * Type of ledger entry
+       * Available stake for the given market
        * 
* - * string type = 5 [json_name = "type"]; - * @param value The type to set. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @param value The suppliedStake to set. * @return This builder for chaining. */ - public Builder setType( + public Builder setSuppliedStake( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + suppliedStake_ = value; onChanged(); return this; } /** *
-       * Type of ledger entry
+       * Available stake for the given market
        * 
* - * string type = 5 [json_name = "type"]; + * string supplied_stake = 23 [json_name = "suppliedStake"]; * @return This builder for chaining. */ - public Builder clearType() { + public Builder clearSuppliedStake() { - type_ = getDefaultInstance().getType(); + suppliedStake_ = getDefaultInstance().getSuppliedStake(); onChanged(); return this; } /** *
-       * Type of ledger entry
+       * Available stake for the given market
        * 
* - * string type = 5 [json_name = "type"]; - * @param value The bytes for type to set. + * string supplied_stake = 23 [json_name = "suppliedStake"]; + * @param value The bytes for suppliedStake to set. * @return This builder for chaining. */ - public Builder setTypeBytes( + public Builder setSuppliedStakeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + suppliedStake_ = value; onChanged(); return this; } - private long timestamp_ ; + private java.util.List priceMonitoringBounds_ = + java.util.Collections.emptyList(); + private void ensurePriceMonitoringBoundsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + priceMonitoringBounds_ = new java.util.ArrayList(priceMonitoringBounds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder> priceMonitoringBoundsBuilder_; + /** *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * One or more price monitoring bounds for the current timestamp
        * 
* - * int64 timestamp = 6 [json_name = "timestamp"]; - * @return The timestamp. + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; + public java.util.List getPriceMonitoringBoundsList() { + if (priceMonitoringBoundsBuilder_ == null) { + return java.util.Collections.unmodifiableList(priceMonitoringBounds_); + } else { + return priceMonitoringBoundsBuilder_.getMessageList(); + } } /** *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * One or more price monitoring bounds for the current timestamp
        * 
* - * int64 timestamp = 6 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; + public int getPriceMonitoringBoundsCount() { + if (priceMonitoringBoundsBuilder_ == null) { + return priceMonitoringBounds_.size(); + } else { + return priceMonitoringBoundsBuilder_.getCount(); + } } /** *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * One or more price monitoring bounds for the current timestamp
        * 
* - * int64 timestamp = 6 [json_name = "timestamp"]; - * @return This builder for chaining. + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:vega.LedgerEntry) - } - - // @@protoc_insertion_point(class_scope:vega.LedgerEntry) - private static final io.vegaprotocol.vega.Vega.LedgerEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LedgerEntry(); - } - - public static io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LedgerEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LedgerEntry(input, extensionRegistry); + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index) { + if (priceMonitoringBoundsBuilder_ == null) { + return priceMonitoringBounds_.get(index); + } else { + return priceMonitoringBoundsBuilder_.getMessage(index); + } } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TransferBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.TransferBalance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. - */ - io.vegaprotocol.vega.Vega.Account getAccount(); - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-     * The balance relating to the transfer
-     * 
- * - * uint64 balance = 2 [json_name = "balance"]; - * @return The balance. - */ - long getBalance(); - } - /** - *
-   * Represents the balance for an account during a transfer
-   * 
- * - * Protobuf type {@code vega.TransferBalance} - */ - public static final class TransferBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.TransferBalance) - TransferBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferBalance.newBuilder() to construct. - private TransferBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransferBalance() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferBalance(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransferBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder setPriceMonitoringBounds( + int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { + if (priceMonitoringBoundsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.set(index, value); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.setMessage(index, value); + } + return this; } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Account.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - balance_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder setPriceMonitoringBounds( + int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { + if (priceMonitoringBoundsBuilder_ == null) { + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.set(index, builderForValue.build()); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder addPriceMonitoringBounds(io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { + if (priceMonitoringBoundsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.add(value); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.addMessage(value); } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this; } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferBalance.class, io.vegaprotocol.vega.Vega.TransferBalance.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Account account_; - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getAccount() { - return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; - } - /** - *
-     * The account relating to the transfer
-     * 
- * - * .vega.Account account = 1 [json_name = "account"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { - return getAccount(); - } - - public static final int BALANCE_FIELD_NUMBER = 2; - private long balance_; - /** - *
-     * The balance relating to the transfer
-     * 
- * - * uint64 balance = 2 [json_name = "balance"]; - * @return The balance. - */ - @java.lang.Override - public long getBalance() { - return balance_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (account_ != null) { - output.writeMessage(1, getAccount()); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder addPriceMonitoringBounds( + int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { + if (priceMonitoringBoundsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.add(index, value); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.addMessage(index, value); + } + return this; } - if (balance_ != 0L) { - output.writeUInt64(2, balance_); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder addPriceMonitoringBounds( + io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { + if (priceMonitoringBoundsBuilder_ == null) { + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.add(builderForValue.build()); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.addMessage(builderForValue.build()); + } + return this; } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder addPriceMonitoringBounds( + int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { + if (priceMonitoringBoundsBuilder_ == null) { + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.add(index, builderForValue.build()); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, balance_); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder addAllPriceMonitoringBounds( + java.lang.Iterable values) { + if (priceMonitoringBoundsBuilder_ == null) { + ensurePriceMonitoringBoundsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, priceMonitoringBounds_); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.addAllMessages(values); + } + return this; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder clearPriceMonitoringBounds() { + if (priceMonitoringBoundsBuilder_ == null) { + priceMonitoringBounds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.clear(); + } + return this; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferBalance)) { - return super.equals(obj); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public Builder removePriceMonitoringBounds(int index) { + if (priceMonitoringBoundsBuilder_ == null) { + ensurePriceMonitoringBoundsIsMutable(); + priceMonitoringBounds_.remove(index); + onChanged(); + } else { + priceMonitoringBoundsBuilder_.remove(index); + } + return this; } - io.vegaprotocol.vega.Vega.TransferBalance other = (io.vegaprotocol.vega.Vega.TransferBalance) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder getPriceMonitoringBoundsBuilder( + int index) { + return getPriceMonitoringBoundsFieldBuilder().getBuilder(index); } - if (getBalance() - != other.getBalance()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( + int index) { + if (priceMonitoringBoundsBuilder_ == null) { + return priceMonitoringBounds_.get(index); } else { + return priceMonitoringBoundsBuilder_.getMessageOrBuilder(index); + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public java.util.List + getPriceMonitoringBoundsOrBuilderList() { + if (priceMonitoringBoundsBuilder_ != null) { + return priceMonitoringBoundsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(priceMonitoringBounds_); + } } - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.TransferBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represents the balance for an account during a transfer
-     * 
- * - * Protobuf type {@code vega.TransferBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.TransferBalance) - io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder addPriceMonitoringBoundsBuilder() { + return getPriceMonitoringBoundsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferBalance.class, io.vegaprotocol.vega.Vega.TransferBalance.Builder.class); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder addPriceMonitoringBoundsBuilder( + int index) { + return getPriceMonitoringBoundsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()); } - - // Construct using io.vegaprotocol.vega.Vega.TransferBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + *
+       * One or more price monitoring bounds for the current timestamp
+       * 
+ * + * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + */ + public java.util.List + getPriceMonitoringBoundsBuilderList() { + return getPriceMonitoringBoundsFieldBuilder().getBuilderList(); } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder> + getPriceMonitoringBoundsFieldBuilder() { + if (priceMonitoringBoundsBuilder_ == null) { + priceMonitoringBoundsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder>( + priceMonitoringBounds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + priceMonitoringBounds_ = null; + } + return priceMonitoringBoundsBuilder_; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + + private java.lang.Object marketValueProxy_ = ""; + /** + *
+       * the market value proxy
+       * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The marketValueProxy. + */ + public java.lang.String getMarketValueProxy() { + java.lang.Object ref = marketValueProxy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketValueProxy_ = s; + return s; + } else { + return (java.lang.String) ref; } } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountBuilder_ == null) { - account_ = null; + /** + *
+       * the market value proxy
+       * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return The bytes for marketValueProxy. + */ + public com.google.protobuf.ByteString + getMarketValueProxyBytes() { + java.lang.Object ref = marketValueProxy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketValueProxy_ = b; + return b; } else { - account_ = null; - accountBuilder_ = null; + return (com.google.protobuf.ByteString) ref; } - balance_ = 0L; + } + /** + *
+       * the market value proxy
+       * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @param value The marketValueProxy to set. + * @return This builder for chaining. + */ + public Builder setMarketValueProxy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + marketValueProxy_ = value; + onChanged(); return this; } + /** + *
+       * the market value proxy
+       * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @return This builder for chaining. + */ + public Builder clearMarketValueProxy() { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferBalance_descriptor; + marketValueProxy_ = getDefaultInstance().getMarketValueProxy(); + onChanged(); + return this; } + /** + *
+       * the market value proxy
+       * 
+ * + * string market_value_proxy = 25 [json_name = "marketValueProxy"]; + * @param value The bytes for marketValueProxy to set. + * @return This builder for chaining. + */ + public Builder setMarketValueProxyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance(); + marketValueProxy_ = value; + onChanged(); + return this; } - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalance build() { - io.vegaprotocol.vega.Vega.TransferBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private java.util.List liquidityProviderFeeShare_ = + java.util.Collections.emptyList(); + private void ensureLiquidityProviderFeeShareIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + liquidityProviderFeeShare_ = new java.util.ArrayList(liquidityProviderFeeShare_); + bitField0_ |= 0x00000002; + } } - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalance buildPartial() { - io.vegaprotocol.vega.Vega.TransferBalance result = new io.vegaprotocol.vega.Vega.TransferBalance(this); - if (accountBuilder_ == null) { - result.account_ = account_; + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder> liquidityProviderFeeShareBuilder_; + + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public java.util.List getLiquidityProviderFeeShareList() { + if (liquidityProviderFeeShareBuilder_ == null) { + return java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); } else { - result.account_ = accountBuilder_.build(); + return liquidityProviderFeeShareBuilder_.getMessageList(); } - result.balance_ = balance_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.TransferBalance) { - return mergeFrom((io.vegaprotocol.vega.Vega.TransferBalance)other); + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public int getLiquidityProviderFeeShareCount() { + if (liquidityProviderFeeShareBuilder_ == null) { + return liquidityProviderFeeShare_.size(); } else { - super.mergeFrom(other); - return this; + return liquidityProviderFeeShareBuilder_.getCount(); } } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferBalance other) { - if (other == io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index) { + if (liquidityProviderFeeShareBuilder_ == null) { + return liquidityProviderFeeShare_.get(index); + } else { + return liquidityProviderFeeShareBuilder_.getMessage(index); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.TransferBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.TransferBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public Builder setLiquidityProviderFeeShare( + int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { + if (liquidityProviderFeeShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.set(index, value); + onChanged(); + } else { + liquidityProviderFeeShareBuilder_.setMessage(index, value); } return this; } - - private io.vegaprotocol.vega.Vega.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountBuilder_; /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public boolean hasAccount() { - return accountBuilder_ != null || account_ != null; + public Builder setLiquidityProviderFeeShare( + int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { + if (liquidityProviderFeeShareBuilder_ == null) { + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.set(index, builderForValue.build()); + onChanged(); + } else { + liquidityProviderFeeShareBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public io.vegaprotocol.vega.Vega.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; + public Builder addLiquidityProviderFeeShare(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { + if (liquidityProviderFeeShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.add(value); + onChanged(); } else { - return accountBuilder_.getMessage(); + liquidityProviderFeeShareBuilder_.addMessage(value); } + return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder setAccount(io.vegaprotocol.vega.Vega.Account value) { - if (accountBuilder_ == null) { + public Builder addLiquidityProviderFeeShare( + int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { + if (liquidityProviderFeeShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - account_ = value; + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.add(index, value); onChanged(); } else { - accountBuilder_.setMessage(value); + liquidityProviderFeeShareBuilder_.addMessage(index, value); } - return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder setAccount( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); + public Builder addLiquidityProviderFeeShare( + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { + if (liquidityProviderFeeShareBuilder_ == null) { + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.add(builderForValue.build()); onChanged(); } else { - accountBuilder_.setMessage(builderForValue.build()); + liquidityProviderFeeShareBuilder_.addMessage(builderForValue.build()); } - return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder mergeAccount(io.vegaprotocol.vega.Vega.Account value) { - if (accountBuilder_ == null) { - if (account_ != null) { - account_ = - io.vegaprotocol.vega.Vega.Account.newBuilder(account_).mergeFrom(value).buildPartial(); - } else { - account_ = value; - } + public Builder addLiquidityProviderFeeShare( + int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { + if (liquidityProviderFeeShareBuilder_ == null) { + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.add(index, builderForValue.build()); onChanged(); } else { - accountBuilder_.mergeFrom(value); + liquidityProviderFeeShareBuilder_.addMessage(index, builderForValue.build()); } - return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; + public Builder addAllLiquidityProviderFeeShare( + java.lang.Iterable values) { + if (liquidityProviderFeeShareBuilder_ == null) { + ensureLiquidityProviderFeeShareIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, liquidityProviderFeeShare_); onChanged(); } else { - account_ = null; - accountBuilder_ = null; + liquidityProviderFeeShareBuilder_.addAllMessages(values); } - return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public io.vegaprotocol.vega.Vega.Account.Builder getAccountBuilder() { - - onChanged(); - return getAccountFieldBuilder().getBuilder(); + public Builder clearLiquidityProviderFeeShare() { + if (liquidityProviderFeeShareBuilder_ == null) { + liquidityProviderFeeShare_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + liquidityProviderFeeShareBuilder_.clear(); + } + return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); + public Builder removeLiquidityProviderFeeShare(int index) { + if (liquidityProviderFeeShareBuilder_ == null) { + ensureLiquidityProviderFeeShareIsMutable(); + liquidityProviderFeeShare_.remove(index); + onChanged(); } else { - return account_ == null ? - io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; + liquidityProviderFeeShareBuilder_.remove(index); } + return this; } /** *
-       * The account relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * .vega.Account account = 1 [json_name = "account"]; + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder getLiquidityProviderFeeShareBuilder( + int index) { + return getLiquidityProviderFeeShareFieldBuilder().getBuilder(index); + } + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( + int index) { + if (liquidityProviderFeeShareBuilder_ == null) { + return liquidityProviderFeeShare_.get(index); } else { + return liquidityProviderFeeShareBuilder_.getMessageOrBuilder(index); } - return accountBuilder_; } - - private long balance_ ; /** *
-       * The balance relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * uint64 balance = 2 [json_name = "balance"]; - * @return The balance. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - @java.lang.Override - public long getBalance() { - return balance_; + public java.util.List + getLiquidityProviderFeeShareOrBuilderList() { + if (liquidityProviderFeeShareBuilder_ != null) { + return liquidityProviderFeeShareBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); + } } /** *
-       * The balance relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * uint64 balance = 2 [json_name = "balance"]; - * @param value The balance to set. - * @return This builder for chaining. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder setBalance(long value) { - - balance_ = value; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder addLiquidityProviderFeeShareBuilder() { + return getLiquidityProviderFeeShareFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()); } /** *
-       * The balance relating to the transfer
+       * the equity like share of liquidity fee for each liquidity provider
        * 
* - * uint64 balance = 2 [json_name = "balance"]; - * @return This builder for chaining. + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; */ - public Builder clearBalance() { - - balance_ = 0L; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder addLiquidityProviderFeeShareBuilder( + int index) { + return getLiquidityProviderFeeShareFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()); + } + /** + *
+       * the equity like share of liquidity fee for each liquidity provider
+       * 
+ * + * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + */ + public java.util.List + getLiquidityProviderFeeShareBuilderList() { + return getLiquidityProviderFeeShareFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder> + getLiquidityProviderFeeShareFieldBuilder() { + if (liquidityProviderFeeShareBuilder_ == null) { + liquidityProviderFeeShareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder>( + liquidityProviderFeeShare_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + liquidityProviderFeeShare_ = null; + } + return liquidityProviderFeeShareBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -42898,164 +46242,137 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.TransferBalance) + // @@protoc_insertion_point(builder_scope:vega.MarketData) } - // @@protoc_insertion_point(class_scope:vega.TransferBalance) - private static final io.vegaprotocol.vega.Vega.TransferBalance DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.MarketData) + private static final io.vegaprotocol.vega.Vega.MarketData DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferBalance(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.MarketData(); } - public static io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.MarketData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public TransferBalance parsePartialFrom( + public MarketData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferBalance(input, extensionRegistry); + return new MarketData(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TransferResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.TransferResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - java.util.List - getTransfersList(); - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index); - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - int getTransfersCount(); + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiquidityProviderFeeShareOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.LiquidityProviderFeeShare) + com.google.protobuf.MessageOrBuilder { + /** *
-     * One or more ledger entries representing the transfers
+     * The liquidity provider party id
      * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The party. */ - java.util.List - getTransfersOrBuilderList(); + java.lang.String getParty(); /** *
-     * One or more ledger entries representing the transfers
+     * The liquidity provider party id
      * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ - io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( - int index); + com.google.protobuf.ByteString + getPartyBytes(); /** *
-     * One or more account balances
-     * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - java.util.List - getBalancesList(); - /** - *
-     * One or more account balances
+     * The share own by this liquidity provider (float)
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The equityLikeShare. */ - io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index); + java.lang.String getEquityLikeShare(); /** *
-     * One or more account balances
+     * The share own by this liquidity provider (float)
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The bytes for equityLikeShare. */ - int getBalancesCount(); + com.google.protobuf.ByteString + getEquityLikeShareBytes(); + /** *
-     * One or more account balances
+     * The average entry valuation of the liquidity provider for the market
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The averageEntryValuation. */ - java.util.List - getBalancesOrBuilderList(); + java.lang.String getAverageEntryValuation(); /** *
-     * One or more account balances
+     * The average entry valuation of the liquidity provider for the market
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The bytes for averageEntryValuation. */ - io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( - int index); + com.google.protobuf.ByteString + getAverageEntryValuationBytes(); } /** *
-   * Represents the response from a transfer
+   * The equity like share of liquidity fee for each liquidity provider
    * 
* - * Protobuf type {@code vega.TransferResponse} + * Protobuf type {@code vega.LiquidityProviderFeeShare} */ - public static final class TransferResponse extends + public static final class LiquidityProviderFeeShare extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.TransferResponse) - TransferResponseOrBuilder { + // @@protoc_insertion_point(message_implements:vega.LiquidityProviderFeeShare) + LiquidityProviderFeeShareOrBuilder { private static final long serialVersionUID = 0L; - // Use TransferResponse.newBuilder() to construct. - private TransferResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use LiquidityProviderFeeShare.newBuilder() to construct. + private LiquidityProviderFeeShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransferResponse() { - transfers_ = java.util.Collections.emptyList(); - balances_ = java.util.Collections.emptyList(); + private LiquidityProviderFeeShare() { + party_ = ""; + equityLikeShare_ = ""; + averageEntryValuation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new TransferResponse(); + return new LiquidityProviderFeeShare(); } @java.lang.Override @@ -43063,7 +46380,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private TransferResponse( + private LiquidityProviderFeeShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -43071,7 +46388,6 @@ private TransferResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -43083,21 +46399,21 @@ private TransferResponse( done = true; break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transfers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transfers_.add( - input.readMessage(io.vegaprotocol.vega.Vega.LedgerEntry.parser(), extensionRegistry)); + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; break; } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - balances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - balances_.add( - input.readMessage(io.vegaprotocol.vega.Vega.TransferBalance.parser(), extensionRegistry)); + java.lang.String s = input.readStringRequireUtf8(); + + equityLikeShare_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + averageEntryValuation_ = s; break; } default: { @@ -43115,147 +46431,159 @@ private TransferResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - transfers_ = java.util.Collections.unmodifiableList(transfers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferResponse.class, io.vegaprotocol.vega.Vega.TransferResponse.Builder.class); + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.class, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder.class); } - public static final int TRANSFERS_FIELD_NUMBER = 1; - private java.util.List transfers_; - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - @java.lang.Override - public java.util.List getTransfersList() { - return transfers_; - } - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - @java.lang.Override - public java.util.List - getTransfersOrBuilderList() { - return transfers_; - } - /** - *
-     * One or more ledger entries representing the transfers
-     * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - @java.lang.Override - public int getTransfersCount() { - return transfers_.size(); - } + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; /** *
-     * One or more ledger entries representing the transfers
+     * The liquidity provider party id
      * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The party. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index) { - return transfers_.get(index); + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } } /** *
-     * One or more ledger entries representing the transfers
+     * The liquidity provider party id
      * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( - int index) { - return transfers_.get(index); + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int BALANCES_FIELD_NUMBER = 2; - private java.util.List balances_; - /** - *
-     * One or more account balances
-     * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - @java.lang.Override - public java.util.List getBalancesList() { - return balances_; - } + public static final int EQUITY_LIKE_SHARE_FIELD_NUMBER = 2; + private volatile java.lang.Object equityLikeShare_; /** *
-     * One or more account balances
+     * The share own by this liquidity provider (float)
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The equityLikeShare. */ @java.lang.Override - public java.util.List - getBalancesOrBuilderList() { - return balances_; + public java.lang.String getEquityLikeShare() { + java.lang.Object ref = equityLikeShare_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + equityLikeShare_ = s; + return s; + } } /** *
-     * One or more account balances
+     * The share own by this liquidity provider (float)
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The bytes for equityLikeShare. */ @java.lang.Override - public int getBalancesCount() { - return balances_.size(); + public com.google.protobuf.ByteString + getEquityLikeShareBytes() { + java.lang.Object ref = equityLikeShare_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + equityLikeShare_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int AVERAGE_ENTRY_VALUATION_FIELD_NUMBER = 3; + private volatile java.lang.Object averageEntryValuation_; /** *
-     * One or more account balances
+     * The average entry valuation of the liquidity provider for the market
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The averageEntryValuation. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index) { - return balances_.get(index); + public java.lang.String getAverageEntryValuation() { + java.lang.Object ref = averageEntryValuation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + averageEntryValuation_ = s; + return s; + } } /** *
-     * One or more account balances
+     * The average entry valuation of the liquidity provider for the market
      * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The bytes for averageEntryValuation. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( - int index) { - return balances_.get(index); + public com.google.protobuf.ByteString + getAverageEntryValuationBytes() { + java.lang.Object ref = averageEntryValuation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + averageEntryValuation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -43272,11 +46600,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < transfers_.size(); i++) { - output.writeMessage(1, transfers_.get(i)); + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); } - for (int i = 0; i < balances_.size(); i++) { - output.writeMessage(2, balances_.get(i)); + if (!getEquityLikeShareBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, equityLikeShare_); + } + if (!getAverageEntryValuationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, averageEntryValuation_); } unknownFields.writeTo(output); } @@ -43287,13 +46618,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < transfers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transfers_.get(i)); + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); } - for (int i = 0; i < balances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, balances_.get(i)); + if (!getEquityLikeShareBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, equityLikeShare_); + } + if (!getAverageEntryValuationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, averageEntryValuation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -43305,15 +46637,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.TransferResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.TransferResponse other = (io.vegaprotocol.vega.Vega.TransferResponse) obj; + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare other = (io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) obj; - if (!getTransfersList() - .equals(other.getTransfersList())) return false; - if (!getBalancesList() - .equals(other.getBalancesList())) return false; + if (!getParty() + .equals(other.getParty())) return false; + if (!getEquityLikeShare() + .equals(other.getEquityLikeShare())) return false; + if (!getAverageEntryValuation() + .equals(other.getAverageEntryValuation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -43325,82 +46659,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransfersCount() > 0) { - hash = (37 * hash) + TRANSFERS_FIELD_NUMBER; - hash = (53 * hash) + getTransfersList().hashCode(); - } - if (getBalancesCount() > 0) { - hash = (37 * hash) + BALANCES_FIELD_NUMBER; - hash = (53 * hash) + getBalancesList().hashCode(); - } + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + EQUITY_LIKE_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getEquityLikeShare().hashCode(); + hash = (37 * hash) + AVERAGE_ENTRY_VALUATION_FIELD_NUMBER; + hash = (53 * hash) + getAverageEntryValuation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -43413,7 +46745,7 @@ public static io.vegaprotocol.vega.Vega.TransferResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.TransferResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -43430,29 +46762,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents the response from a transfer
+     * The equity like share of liquidity fee for each liquidity provider
      * 
* - * Protobuf type {@code vega.TransferResponse} + * Protobuf type {@code vega.LiquidityProviderFeeShare} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.TransferResponse) - io.vegaprotocol.vega.Vega.TransferResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.LiquidityProviderFeeShare) + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.TransferResponse.class, io.vegaprotocol.vega.Vega.TransferResponse.Builder.class); + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.class, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.TransferResponse.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -43465,42 +46797,34 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getTransfersFieldBuilder(); - getBalancesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (transfersBuilder_ == null) { - transfers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transfersBuilder_.clear(); - } - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - balancesBuilder_.clear(); - } + party_ = ""; + + equityLikeShare_ = ""; + + averageEntryValuation_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_TransferResponse_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponse build() { - io.vegaprotocol.vega.Vega.TransferResponse result = buildPartial(); + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare build() { + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -43508,27 +46832,11 @@ public io.vegaprotocol.vega.Vega.TransferResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponse buildPartial() { - io.vegaprotocol.vega.Vega.TransferResponse result = new io.vegaprotocol.vega.Vega.TransferResponse(this); - int from_bitField0_ = bitField0_; - if (transfersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transfers_ = java.util.Collections.unmodifiableList(transfers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transfers_ = transfers_; - } else { - result.transfers_ = transfersBuilder_.build(); - } - if (balancesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - balances_ = java.util.Collections.unmodifiableList(balances_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.balances_ = balances_; - } else { - result.balances_ = balancesBuilder_.build(); - } + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare buildPartial() { + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare result = new io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare(this); + result.party_ = party_; + result.equityLikeShare_ = equityLikeShare_; + result.averageEntryValuation_ = averageEntryValuation_; onBuilt(); return result; } @@ -43558,76 +46866,36 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.TransferResponse) { - return mergeFrom((io.vegaprotocol.vega.Vega.TransferResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferResponse other) { - if (other == io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance()) return this; - if (transfersBuilder_ == null) { - if (!other.transfers_.isEmpty()) { - if (transfers_.isEmpty()) { - transfers_ = other.transfers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransfersIsMutable(); - transfers_.addAll(other.transfers_); - } - onChanged(); - } - } else { - if (!other.transfers_.isEmpty()) { - if (transfersBuilder_.isEmpty()) { - transfersBuilder_.dispose(); - transfersBuilder_ = null; - transfers_ = other.transfers_; - bitField0_ = (bitField0_ & ~0x00000001); - transfersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransfersFieldBuilder() : null; - } else { - transfersBuilder_.addAllMessages(other.transfers_); - } - } - } - if (balancesBuilder_ == null) { - if (!other.balances_.isEmpty()) { - if (balances_.isEmpty()) { - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBalancesIsMutable(); - balances_.addAll(other.balances_); - } - onChanged(); - } + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) { + return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare)other); } else { - if (!other.balances_.isEmpty()) { - if (balancesBuilder_.isEmpty()) { - balancesBuilder_.dispose(); - balancesBuilder_ = null; - balances_ = other.balances_; - bitField0_ = (bitField0_ & ~0x00000002); - balancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBalancesFieldBuilder() : null; - } else { - balancesBuilder_.addAllMessages(other.balances_); - } - } + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare other) { + if (other == io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getEquityLikeShare().isEmpty()) { + equityLikeShare_ = other.equityLikeShare_; + onChanged(); + } + if (!other.getAverageEntryValuation().isEmpty()) { + averageEntryValuation_ = other.averageEntryValuation_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -43644,11 +46912,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.TransferResponse parsedMessage = null; + io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.TransferResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -43657,630 +46925,293 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - - private java.util.List transfers_ = - java.util.Collections.emptyList(); - private void ensureTransfersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transfers_ = new java.util.ArrayList(transfers_); - bitField0_ |= 0x00000001; - } - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder> transfersBuilder_; - - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public java.util.List getTransfersList() { - if (transfersBuilder_ == null) { - return java.util.Collections.unmodifiableList(transfers_); - } else { - return transfersBuilder_.getMessageList(); - } - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public int getTransfersCount() { - if (transfersBuilder_ == null) { - return transfers_.size(); - } else { - return transfersBuilder_.getCount(); - } - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public io.vegaprotocol.vega.Vega.LedgerEntry getTransfers(int index) { - if (transfersBuilder_ == null) { - return transfers_.get(index); - } else { - return transfersBuilder_.getMessage(index); - } - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder setTransfers( - int index, io.vegaprotocol.vega.Vega.LedgerEntry value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.set(index, value); - onChanged(); - } else { - transfersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder setTransfers( - int index, io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.set(index, builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder addTransfers(io.vegaprotocol.vega.Vega.LedgerEntry value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.add(value); - onChanged(); - } else { - transfersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder addTransfers( - int index, io.vegaprotocol.vega.Vega.LedgerEntry value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.add(index, value); - onChanged(); - } else { - transfersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder addTransfers( - io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.add(builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder addTransfers( - int index, io.vegaprotocol.vega.Vega.LedgerEntry.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.add(index, builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder addAllTransfers( - java.lang.Iterable values) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transfers_); - onChanged(); - } else { - transfersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public Builder clearTransfers() { - if (transfersBuilder_ == null) { - transfers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transfersBuilder_.clear(); - } - return this; - } + private java.lang.Object party_ = ""; /** *
-       * One or more ledger entries representing the transfers
+       * The liquidity provider party id
        * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The party. */ - public Builder removeTransfers(int index) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.remove(index); - onChanged(); + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; } else { - transfersBuilder_.remove(index); - } - return this; - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public io.vegaprotocol.vega.Vega.LedgerEntry.Builder getTransfersBuilder( - int index) { - return getTransfersFieldBuilder().getBuilder(index); - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder getTransfersOrBuilder( - int index) { - if (transfersBuilder_ == null) { - return transfers_.get(index); } else { - return transfersBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } /** *
-       * One or more ledger entries representing the transfers
+       * The liquidity provider party id
        * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ - public java.util.List - getTransfersOrBuilderList() { - if (transfersBuilder_ != null) { - return transfersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(transfers_); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public io.vegaprotocol.vega.Vega.LedgerEntry.Builder addTransfersBuilder() { - return getTransfersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()); - } - /** - *
-       * One or more ledger entries representing the transfers
-       * 
- * - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; - */ - public io.vegaprotocol.vega.Vega.LedgerEntry.Builder addTransfersBuilder( - int index) { - return getTransfersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.LedgerEntry.getDefaultInstance()); - } - /** - *
-       * One or more ledger entries representing the transfers
+       * The liquidity provider party id
        * 
* - * repeated .vega.LedgerEntry transfers = 1 [json_name = "transfers"]; + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. */ - public java.util.List - getTransfersBuilderList() { - return getTransfersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder> - getTransfersFieldBuilder() { - if (transfersBuilder_ == null) { - transfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LedgerEntry, io.vegaprotocol.vega.Vega.LedgerEntry.Builder, io.vegaprotocol.vega.Vega.LedgerEntryOrBuilder>( - transfers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transfers_ = null; - } - return transfersBuilder_; - } - - private java.util.List balances_ = - java.util.Collections.emptyList(); - private void ensureBalancesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - balances_ = new java.util.ArrayList(balances_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder> balancesBuilder_; + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - /** - *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public java.util.List getBalancesList() { - if (balancesBuilder_ == null) { - return java.util.Collections.unmodifiableList(balances_); - } else { - return balancesBuilder_.getMessageList(); - } - } - /** - *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public int getBalancesCount() { - if (balancesBuilder_ == null) { - return balances_.size(); - } else { - return balancesBuilder_.getCount(); - } - } - /** - *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public io.vegaprotocol.vega.Vega.TransferBalance getBalances(int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); - } else { - return balancesBuilder_.getMessage(index); - } - } - /** - *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public Builder setBalances( - int index, io.vegaprotocol.vega.Vega.TransferBalance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.set(index, value); - onChanged(); - } else { - balancesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public Builder setBalances( - int index, io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.set(index, builderForValue.build()); - onChanged(); - } else { - balancesBuilder_.setMessage(index, builderForValue.build()); - } + party_ = value; + onChanged(); return this; } /** *
-       * One or more account balances
+       * The liquidity provider party id
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. */ - public Builder addBalances(io.vegaprotocol.vega.Vega.TransferBalance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(value); - onChanged(); - } else { - balancesBuilder_.addMessage(value); - } + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); return this; } /** *
-       * One or more account balances
+       * The liquidity provider party id
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. */ - public Builder addBalances( - int index, io.vegaprotocol.vega.Vega.TransferBalance value) { - if (balancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBalancesIsMutable(); - balances_.add(index, value); - onChanged(); - } else { - balancesBuilder_.addMessage(index, value); - } + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); return this; } + + private java.lang.Object equityLikeShare_ = ""; /** *
-       * One or more account balances
+       * The share own by this liquidity provider (float)
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The equityLikeShare. */ - public Builder addBalances( - io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(builderForValue.build()); - onChanged(); + public java.lang.String getEquityLikeShare() { + java.lang.Object ref = equityLikeShare_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + equityLikeShare_ = s; + return s; } else { - balancesBuilder_.addMessage(builderForValue.build()); + return (java.lang.String) ref; } - return this; } /** *
-       * One or more account balances
+       * The share own by this liquidity provider (float)
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return The bytes for equityLikeShare. */ - public Builder addBalances( - int index, io.vegaprotocol.vega.Vega.TransferBalance.Builder builderForValue) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.add(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.ByteString + getEquityLikeShareBytes() { + java.lang.Object ref = equityLikeShare_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + equityLikeShare_ = b; + return b; } else { - balancesBuilder_.addMessage(index, builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - return this; } /** *
-       * One or more account balances
+       * The share own by this liquidity provider (float)
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @param value The equityLikeShare to set. + * @return This builder for chaining. */ - public Builder addAllBalances( - java.lang.Iterable values) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, balances_); - onChanged(); - } else { - balancesBuilder_.addAllMessages(values); - } + public Builder setEquityLikeShare( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + equityLikeShare_ = value; + onChanged(); return this; } /** *
-       * One or more account balances
+       * The share own by this liquidity provider (float)
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @return This builder for chaining. */ - public Builder clearBalances() { - if (balancesBuilder_ == null) { - balances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - balancesBuilder_.clear(); - } + public Builder clearEquityLikeShare() { + + equityLikeShare_ = getDefaultInstance().getEquityLikeShare(); + onChanged(); return this; } /** *
-       * One or more account balances
+       * The share own by this liquidity provider (float)
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * @param value The bytes for equityLikeShare to set. + * @return This builder for chaining. */ - public Builder removeBalances(int index) { - if (balancesBuilder_ == null) { - ensureBalancesIsMutable(); - balances_.remove(index); - onChanged(); - } else { - balancesBuilder_.remove(index); - } + public Builder setEquityLikeShareBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + equityLikeShare_ = value; + onChanged(); return this; } + + private java.lang.Object averageEntryValuation_ = ""; /** *
-       * One or more account balances
-       * 
- * - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; - */ - public io.vegaprotocol.vega.Vega.TransferBalance.Builder getBalancesBuilder( - int index) { - return getBalancesFieldBuilder().getBuilder(index); - } - /** - *
-       * One or more account balances
+       * The average entry valuation of the liquidity provider for the market
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The averageEntryValuation. */ - public io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder getBalancesOrBuilder( - int index) { - if (balancesBuilder_ == null) { - return balances_.get(index); } else { - return balancesBuilder_.getMessageOrBuilder(index); + public java.lang.String getAverageEntryValuation() { + java.lang.Object ref = averageEntryValuation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + averageEntryValuation_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** *
-       * One or more account balances
+       * The average entry valuation of the liquidity provider for the market
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return The bytes for averageEntryValuation. */ - public java.util.List - getBalancesOrBuilderList() { - if (balancesBuilder_ != null) { - return balancesBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getAverageEntryValuationBytes() { + java.lang.Object ref = averageEntryValuation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + averageEntryValuation_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(balances_); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * One or more account balances
+       * The average entry valuation of the liquidity provider for the market
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @param value The averageEntryValuation to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.TransferBalance.Builder addBalancesBuilder() { - return getBalancesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()); + public Builder setAverageEntryValuation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + averageEntryValuation_ = value; + onChanged(); + return this; } /** *
-       * One or more account balances
+       * The average entry valuation of the liquidity provider for the market
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.TransferBalance.Builder addBalancesBuilder( - int index) { - return getBalancesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.TransferBalance.getDefaultInstance()); + public Builder clearAverageEntryValuation() { + + averageEntryValuation_ = getDefaultInstance().getAverageEntryValuation(); + onChanged(); + return this; } /** *
-       * One or more account balances
+       * The average entry valuation of the liquidity provider for the market
        * 
* - * repeated .vega.TransferBalance balances = 2 [json_name = "balances"]; + * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; + * @param value The bytes for averageEntryValuation to set. + * @return This builder for chaining. */ - public java.util.List - getBalancesBuilderList() { - return getBalancesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder> - getBalancesFieldBuilder() { - if (balancesBuilder_ == null) { - balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferBalance, io.vegaprotocol.vega.Vega.TransferBalance.Builder, io.vegaprotocol.vega.Vega.TransferBalanceOrBuilder>( - balances_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - balances_ = null; - } - return balancesBuilder_; + public Builder setAverageEntryValuationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + averageEntryValuation_ = value; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -44295,188 +47226,131 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.TransferResponse) + // @@protoc_insertion_point(builder_scope:vega.LiquidityProviderFeeShare) } - // @@protoc_insertion_point(class_scope:vega.TransferResponse) - private static final io.vegaprotocol.vega.Vega.TransferResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.LiquidityProviderFeeShare) + private static final io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.TransferResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare(); } - public static io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public TransferResponse parsePartialFrom( + public LiquidityProviderFeeShare parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferResponse(input, extensionRegistry); + return new LiquidityProviderFeeShare(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MarginLevelsOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.MarginLevels) + public interface PriceMonitoringBoundsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.PriceMonitoringBounds) com.google.protobuf.MessageOrBuilder { /** *
-     * Maintenance margin value
-     * 
- * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - * @return The maintenanceMargin. - */ - long getMaintenanceMargin(); - - /** - *
-     * Search level value
-     * 
- * - * uint64 search_level = 2 [json_name = "searchLevel"]; - * @return The searchLevel. - */ - long getSearchLevel(); - - /** - *
-     * Initial margin value
-     * 
- * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; - * @return The initialMargin. - */ - long getInitialMargin(); - - /** - *
-     * Collateral release level value
+     * Minimum price that isn't currently breaching the specified price monitoring trigger
      * 
* - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - * @return The collateralReleaseLevel. + * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The minValidPrice. */ - long getCollateralReleaseLevel(); + long getMinValidPrice(); /** *
-     * Party identifier
-     * 
- * - * string party_id = 5 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier
+     * Maximum price that isn't currently breaching the specified price monitoring trigger
      * 
* - * string party_id = 5 [json_name = "partyId"]; - * @return The bytes for partyId. + * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The maxValidPrice. */ - com.google.protobuf.ByteString - getPartyIdBytes(); + long getMaxValidPrice(); /** *
-     * Market identifier
-     * 
- * - * string market_id = 6 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string market_id = 6 [json_name = "marketId"]; - * @return The bytes for marketId. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return Whether the trigger field is set. */ - com.google.protobuf.ByteString - getMarketIdBytes(); - + boolean hasTrigger(); /** *
-     * Asset identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string asset = 7 [json_name = "asset"]; - * @return The asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return The trigger. */ - java.lang.String getAsset(); + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger(); /** *
-     * Asset identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string asset = 7 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - com.google.protobuf.ByteString - getAssetBytes(); + io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder(); /** *
-     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * Reference price used to calculate the valid price range
      * 
* - * int64 timestamp = 8 [json_name = "timestamp"]; - * @return The timestamp. + * double reference_price = 4 [json_name = "referencePrice"]; + * @return The referencePrice. */ - long getTimestamp(); + double getReferencePrice(); } /** *
-   * Represents the margin levels for a party on a market at a given time
+   * Represents a list of valid (at the current timestamp) price ranges per associated trigger
    * 
* - * Protobuf type {@code vega.MarginLevels} + * Protobuf type {@code vega.PriceMonitoringBounds} */ - public static final class MarginLevels extends + public static final class PriceMonitoringBounds extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.MarginLevels) - MarginLevelsOrBuilder { + // @@protoc_insertion_point(message_implements:vega.PriceMonitoringBounds) + PriceMonitoringBoundsOrBuilder { private static final long serialVersionUID = 0L; - // Use MarginLevels.newBuilder() to construct. - private MarginLevels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PriceMonitoringBounds.newBuilder() to construct. + private PriceMonitoringBounds(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MarginLevels() { - partyId_ = ""; - marketId_ = ""; - asset_ = ""; + private PriceMonitoringBounds() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new MarginLevels(); + return new PriceMonitoringBounds(); } @java.lang.Override @@ -44484,7 +47358,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MarginLevels( + private PriceMonitoringBounds( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -44504,45 +47378,30 @@ private MarginLevels( break; case 8: { - maintenanceMargin_ = input.readUInt64(); + minValidPrice_ = input.readUInt64(); break; } case 16: { - searchLevel_ = input.readUInt64(); - break; - } - case 24: { - - initialMargin_ = input.readUInt64(); - break; - } - case 32: { - - collateralReleaseLevel_ = input.readUInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; + maxValidPrice_ = input.readUInt64(); break; } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: { + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder subBuilder = null; + if (trigger_ != null) { + subBuilder = trigger_.toBuilder(); + } + trigger_ = input.readMessage(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trigger_); + trigger_ = subBuilder.buildPartial(); + } - asset_ = s; break; } - case 64: { + case 33: { - timestamp_ = input.readInt64(); + referencePrice_ = input.readDouble(); break; } default: { @@ -44566,229 +47425,98 @@ private MarginLevels( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.MarginLevels.class, io.vegaprotocol.vega.Vega.MarginLevels.Builder.class); - } - - public static final int MAINTENANCE_MARGIN_FIELD_NUMBER = 1; - private long maintenanceMargin_; - /** - *
-     * Maintenance margin value
-     * 
- * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - * @return The maintenanceMargin. - */ - @java.lang.Override - public long getMaintenanceMargin() { - return maintenanceMargin_; - } - - public static final int SEARCH_LEVEL_FIELD_NUMBER = 2; - private long searchLevel_; - /** - *
-     * Search level value
-     * 
- * - * uint64 search_level = 2 [json_name = "searchLevel"]; - * @return The searchLevel. - */ - @java.lang.Override - public long getSearchLevel() { - return searchLevel_; - } - - public static final int INITIAL_MARGIN_FIELD_NUMBER = 3; - private long initialMargin_; - /** - *
-     * Initial margin value
-     * 
- * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; - * @return The initialMargin. - */ - @java.lang.Override - public long getInitialMargin() { - return initialMargin_; - } - - public static final int COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER = 4; - private long collateralReleaseLevel_; - /** - *
-     * Collateral release level value
-     * 
- * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - * @return The collateralReleaseLevel. - */ - @java.lang.Override - public long getCollateralReleaseLevel() { - return collateralReleaseLevel_; + io.vegaprotocol.vega.Vega.PriceMonitoringBounds.class, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder.class); } - public static final int PARTY_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 5 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } + public static final int MIN_VALID_PRICE_FIELD_NUMBER = 1; + private long minValidPrice_; /** *
-     * Party identifier
+     * Minimum price that isn't currently breaching the specified price monitoring trigger
      * 
* - * string party_id = 5 [json_name = "partyId"]; - * @return The bytes for partyId. + * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The minValidPrice. */ @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getMinValidPrice() { + return minValidPrice_; } - public static final int MARKET_ID_FIELD_NUMBER = 6; - private volatile java.lang.Object marketId_; + public static final int MAX_VALID_PRICE_FIELD_NUMBER = 2; + private long maxValidPrice_; /** *
-     * Market identifier
+     * Maximum price that isn't currently breaching the specified price monitoring trigger
      * 
* - * string market_id = 6 [json_name = "marketId"]; - * @return The marketId. + * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The maxValidPrice. */ @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } + public long getMaxValidPrice() { + return maxValidPrice_; } + + public static final int TRIGGER_FIELD_NUMBER = 3; + private io.vegaprotocol.vega.Markets.PriceMonitoringTrigger trigger_; /** *
-     * Market identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string market_id = 6 [json_name = "marketId"]; - * @return The bytes for marketId. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return Whether the trigger field is set. */ @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasTrigger() { + return trigger_ != null; } - - public static final int ASSET_FIELD_NUMBER = 7; - private volatile java.lang.Object asset_; /** *
-     * Asset identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string asset = 7 [json_name = "asset"]; - * @return The asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return The trigger. */ @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } + public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger() { + return trigger_ == null ? io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; } /** *
-     * Asset identifier
+     * Price monitoring trigger associated with the bounds
      * 
* - * string asset = 7 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder() { + return getTrigger(); } - public static final int TIMESTAMP_FIELD_NUMBER = 8; - private long timestamp_; + public static final int REFERENCE_PRICE_FIELD_NUMBER = 4; + private double referencePrice_; /** *
-     * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * Reference price used to calculate the valid price range
      * 
* - * int64 timestamp = 8 [json_name = "timestamp"]; - * @return The timestamp. + * double reference_price = 4 [json_name = "referencePrice"]; + * @return The referencePrice. */ @java.lang.Override - public long getTimestamp() { - return timestamp_; + public double getReferencePrice() { + return referencePrice_; } private byte memoizedIsInitialized = -1; @@ -44805,29 +47533,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maintenanceMargin_ != 0L) { - output.writeUInt64(1, maintenanceMargin_); - } - if (searchLevel_ != 0L) { - output.writeUInt64(2, searchLevel_); - } - if (initialMargin_ != 0L) { - output.writeUInt64(3, initialMargin_); - } - if (collateralReleaseLevel_ != 0L) { - output.writeUInt64(4, collateralReleaseLevel_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partyId_); + if (minValidPrice_ != 0L) { + output.writeUInt64(1, minValidPrice_); } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, marketId_); + if (maxValidPrice_ != 0L) { + output.writeUInt64(2, maxValidPrice_); } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, asset_); + if (trigger_ != null) { + output.writeMessage(3, getTrigger()); } - if (timestamp_ != 0L) { - output.writeInt64(8, timestamp_); + if (referencePrice_ != 0D) { + output.writeDouble(4, referencePrice_); } unknownFields.writeTo(output); } @@ -44838,34 +47554,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maintenanceMargin_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, maintenanceMargin_); - } - if (searchLevel_ != 0L) { + if (minValidPrice_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, searchLevel_); + .computeUInt64Size(1, minValidPrice_); } - if (initialMargin_ != 0L) { + if (maxValidPrice_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, initialMargin_); + .computeUInt64Size(2, maxValidPrice_); } - if (collateralReleaseLevel_ != 0L) { + if (trigger_ != null) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, collateralReleaseLevel_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, marketId_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, asset_); + .computeMessageSize(3, getTrigger()); } - if (timestamp_ != 0L) { + if (referencePrice_ != 0D) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, timestamp_); + .computeDoubleSize(4, referencePrice_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -44877,27 +47580,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.MarginLevels)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.PriceMonitoringBounds)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.MarginLevels other = (io.vegaprotocol.vega.Vega.MarginLevels) obj; + io.vegaprotocol.vega.Vega.PriceMonitoringBounds other = (io.vegaprotocol.vega.Vega.PriceMonitoringBounds) obj; - if (getMaintenanceMargin() - != other.getMaintenanceMargin()) return false; - if (getSearchLevel() - != other.getSearchLevel()) return false; - if (getInitialMargin() - != other.getInitialMargin()) return false; - if (getCollateralReleaseLevel() - != other.getCollateralReleaseLevel()) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; + if (getMinValidPrice() + != other.getMinValidPrice()) return false; + if (getMaxValidPrice() + != other.getMaxValidPrice()) return false; + if (hasTrigger() != other.hasTrigger()) return false; + if (hasTrigger()) { + if (!getTrigger() + .equals(other.getTrigger())) return false; + } + if (java.lang.Double.doubleToLongBits(getReferencePrice()) + != java.lang.Double.doubleToLongBits( + other.getReferencePrice())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -44909,95 +47608,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAINTENANCE_MARGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaintenanceMargin()); - hash = (37 * hash) + SEARCH_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSearchLevel()); - hash = (37 * hash) + INITIAL_MARGIN_FIELD_NUMBER; + hash = (37 * hash) + MIN_VALID_PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInitialMargin()); - hash = (37 * hash) + COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER; + getMinValidPrice()); + hash = (37 * hash) + MAX_VALID_PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCollateralReleaseLevel()); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + getMaxValidPrice()); + if (hasTrigger()) { + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + } + hash = (37 * hash) + REFERENCE_PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); + java.lang.Double.doubleToLongBits(getReferencePrice())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -45010,7 +47701,7 @@ public static io.vegaprotocol.vega.Vega.MarginLevels parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.MarginLevels prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.PriceMonitoringBounds prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -45027,29 +47718,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents the margin levels for a party on a market at a given time
+     * Represents a list of valid (at the current timestamp) price ranges per associated trigger
      * 
* - * Protobuf type {@code vega.MarginLevels} + * Protobuf type {@code vega.PriceMonitoringBounds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.MarginLevels) - io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.PriceMonitoringBounds) + io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.MarginLevels.class, io.vegaprotocol.vega.Vega.MarginLevels.Builder.class); + io.vegaprotocol.vega.Vega.PriceMonitoringBounds.class, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.MarginLevels.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.PriceMonitoringBounds.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -45067,21 +47758,17 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maintenanceMargin_ = 0L; - - searchLevel_ = 0L; - - initialMargin_ = 0L; - - collateralReleaseLevel_ = 0L; - - partyId_ = ""; - - marketId_ = ""; + minValidPrice_ = 0L; - asset_ = ""; + maxValidPrice_ = 0L; - timestamp_ = 0L; + if (triggerBuilder_ == null) { + trigger_ = null; + } else { + trigger_ = null; + triggerBuilder_ = null; + } + referencePrice_ = 0D; return this; } @@ -45089,17 +47776,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarginLevels_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels build() { - io.vegaprotocol.vega.Vega.MarginLevels result = buildPartial(); + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds build() { + io.vegaprotocol.vega.Vega.PriceMonitoringBounds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -45107,16 +47794,16 @@ public io.vegaprotocol.vega.Vega.MarginLevels build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels buildPartial() { - io.vegaprotocol.vega.Vega.MarginLevels result = new io.vegaprotocol.vega.Vega.MarginLevels(this); - result.maintenanceMargin_ = maintenanceMargin_; - result.searchLevel_ = searchLevel_; - result.initialMargin_ = initialMargin_; - result.collateralReleaseLevel_ = collateralReleaseLevel_; - result.partyId_ = partyId_; - result.marketId_ = marketId_; - result.asset_ = asset_; - result.timestamp_ = timestamp_; + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds buildPartial() { + io.vegaprotocol.vega.Vega.PriceMonitoringBounds result = new io.vegaprotocol.vega.Vega.PriceMonitoringBounds(this); + result.minValidPrice_ = minValidPrice_; + result.maxValidPrice_ = maxValidPrice_; + if (triggerBuilder_ == null) { + result.trigger_ = trigger_; + } else { + result.trigger_ = triggerBuilder_.build(); + } + result.referencePrice_ = referencePrice_; onBuilt(); return result; } @@ -45155,42 +47842,27 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.MarginLevels) { - return mergeFrom((io.vegaprotocol.vega.Vega.MarginLevels)other); + if (other instanceof io.vegaprotocol.vega.Vega.PriceMonitoringBounds) { + return mergeFrom((io.vegaprotocol.vega.Vega.PriceMonitoringBounds)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarginLevels other) { - if (other == io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance()) return this; - if (other.getMaintenanceMargin() != 0L) { - setMaintenanceMargin(other.getMaintenanceMargin()); - } - if (other.getSearchLevel() != 0L) { - setSearchLevel(other.getSearchLevel()); - } - if (other.getInitialMargin() != 0L) { - setInitialMargin(other.getInitialMargin()); - } - if (other.getCollateralReleaseLevel() != 0L) { - setCollateralReleaseLevel(other.getCollateralReleaseLevel()); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.PriceMonitoringBounds other) { + if (other == io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()) return this; + if (other.getMinValidPrice() != 0L) { + setMinValidPrice(other.getMinValidPrice()); } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); + if (other.getMaxValidPrice() != 0L) { + setMaxValidPrice(other.getMaxValidPrice()); } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); + if (other.hasTrigger()) { + mergeTrigger(other.getTrigger()); } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); + if (other.getReferencePrice() != 0D) { + setReferencePrice(other.getReferencePrice()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -45207,1015 +47879,436 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.MarginLevels parsedMessage = null; + io.vegaprotocol.vega.Vega.PriceMonitoringBounds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.MarginLevels) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maintenanceMargin_ ; - /** - *
-       * Maintenance margin value
-       * 
- * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - * @return The maintenanceMargin. - */ - @java.lang.Override - public long getMaintenanceMargin() { - return maintenanceMargin_; - } - /** - *
-       * Maintenance margin value
-       * 
- * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - * @param value The maintenanceMargin to set. - * @return This builder for chaining. - */ - public Builder setMaintenanceMargin(long value) { - - maintenanceMargin_ = value; - onChanged(); - return this; - } - /** - *
-       * Maintenance margin value
-       * 
- * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - * @return This builder for chaining. - */ - public Builder clearMaintenanceMargin() { - - maintenanceMargin_ = 0L; - onChanged(); - return this; - } - - private long searchLevel_ ; - /** - *
-       * Search level value
-       * 
- * - * uint64 search_level = 2 [json_name = "searchLevel"]; - * @return The searchLevel. - */ - @java.lang.Override - public long getSearchLevel() { - return searchLevel_; - } - /** - *
-       * Search level value
-       * 
- * - * uint64 search_level = 2 [json_name = "searchLevel"]; - * @param value The searchLevel to set. - * @return This builder for chaining. - */ - public Builder setSearchLevel(long value) { - - searchLevel_ = value; - onChanged(); - return this; - } - /** - *
-       * Search level value
-       * 
- * - * uint64 search_level = 2 [json_name = "searchLevel"]; - * @return This builder for chaining. - */ - public Builder clearSearchLevel() { - - searchLevel_ = 0L; - onChanged(); - return this; - } - - private long initialMargin_ ; - /** - *
-       * Initial margin value
-       * 
- * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; - * @return The initialMargin. - */ - @java.lang.Override - public long getInitialMargin() { - return initialMargin_; - } - /** - *
-       * Initial margin value
-       * 
- * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; - * @param value The initialMargin to set. - * @return This builder for chaining. - */ - public Builder setInitialMargin(long value) { - - initialMargin_ = value; - onChanged(); - return this; - } - /** - *
-       * Initial margin value
-       * 
- * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; - * @return This builder for chaining. - */ - public Builder clearInitialMargin() { - - initialMargin_ = 0L; - onChanged(); + parsedMessage = (io.vegaprotocol.vega.Vega.PriceMonitoringBounds) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } - private long collateralReleaseLevel_ ; + private long minValidPrice_ ; /** *
-       * Collateral release level value
+       * Minimum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - * @return The collateralReleaseLevel. + * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The minValidPrice. */ @java.lang.Override - public long getCollateralReleaseLevel() { - return collateralReleaseLevel_; + public long getMinValidPrice() { + return minValidPrice_; } /** *
-       * Collateral release level value
+       * Minimum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - * @param value The collateralReleaseLevel to set. + * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * @param value The minValidPrice to set. * @return This builder for chaining. */ - public Builder setCollateralReleaseLevel(long value) { + public Builder setMinValidPrice(long value) { - collateralReleaseLevel_ = value; + minValidPrice_ = value; onChanged(); return this; } /** *
-       * Collateral release level value
+       * Minimum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; * @return This builder for chaining. */ - public Builder clearCollateralReleaseLevel() { + public Builder clearMinValidPrice() { - collateralReleaseLevel_ = 0L; + minValidPrice_ = 0L; onChanged(); return this; } - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 5 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + private long maxValidPrice_ ; /** *
-       * Party identifier
+       * Maximum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * string party_id = 5 [json_name = "partyId"]; - * @return The bytes for partyId. + * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The maxValidPrice. */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public long getMaxValidPrice() { + return maxValidPrice_; } /** *
-       * Party identifier
+       * Maximum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * string party_id = 5 [json_name = "partyId"]; - * @param value The partyId to set. + * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * @param value The maxValidPrice to set. * @return This builder for chaining. */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMaxValidPrice(long value) { - partyId_ = value; + maxValidPrice_ = value; onChanged(); return this; } /** *
-       * Party identifier
+       * Maximum price that isn't currently breaching the specified price monitoring trigger
        * 
* - * string party_id = 5 [json_name = "partyId"]; + * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; * @return This builder for chaining. */ - public Builder clearPartyId() { + public Builder clearMaxValidPrice() { - partyId_ = getDefaultInstance().getPartyId(); + maxValidPrice_ = 0L; onChanged(); return this; } + + private io.vegaprotocol.vega.Markets.PriceMonitoringTrigger trigger_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder> triggerBuilder_; /** *
-       * Party identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string party_id = 5 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return Whether the trigger field is set. */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; + public boolean hasTrigger() { + return triggerBuilder_ != null || trigger_ != null; } - - private java.lang.Object marketId_ = ""; /** *
-       * Market identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string market_id = 6 [json_name = "marketId"]; - * @return The marketId. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * @return The trigger. */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; + public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger() { + if (triggerBuilder_ == null) { + return trigger_ == null ? io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; } else { - return (java.lang.String) ref; + return triggerBuilder_.getMessage(); } } /** *
-       * Market identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string market_id = 6 [json_name = "marketId"]; - * @return The bytes for marketId. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; + public Builder setTrigger(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger value) { + if (triggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trigger_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + triggerBuilder_.setMessage(value); } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 6 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 6 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); return this; } /** *
-       * Market identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string market_id = 6 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setTrigger( + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder builderForValue) { + if (triggerBuilder_ == null) { + trigger_ = builderForValue.build(); + onChanged(); + } else { + triggerBuilder_.setMessage(builderForValue.build()); + } - marketId_ = value; - onChanged(); return this; } - - private java.lang.Object asset_ = ""; /** *
-       * Asset identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string asset = 7 [json_name = "asset"]; - * @return The asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; + public Builder mergeTrigger(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger value) { + if (triggerBuilder_ == null) { + if (trigger_ != null) { + trigger_ = + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.newBuilder(trigger_).mergeFrom(value).buildPartial(); + } else { + trigger_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + triggerBuilder_.mergeFrom(value); } + + return this; } /** *
-       * Asset identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string asset = 7 [json_name = "asset"]; - * @return The bytes for asset. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; + public Builder clearTrigger() { + if (triggerBuilder_ == null) { + trigger_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + trigger_ = null; + triggerBuilder_ = null; } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 7 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - asset_ = value; - onChanged(); return this; } /** *
-       * Asset identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string asset = 7 [json_name = "asset"]; - * @return This builder for chaining. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public Builder clearAsset() { + public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder getTriggerBuilder() { - asset_ = getDefaultInstance().getAsset(); onChanged(); - return this; + return getTriggerFieldBuilder().getBuilder(); } /** *
-       * Asset identifier
+       * Price monitoring trigger associated with the bounds
        * 
* - * string asset = 7 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); - return this; + public io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder() { + if (triggerBuilder_ != null) { + return triggerBuilder_.getMessageOrBuilder(); + } else { + return trigger_ == null ? + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; + } } - - private long timestamp_ ; /** *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Price monitoring trigger associated with the bounds
        * 
* - * int64 timestamp = 8 [json_name = "timestamp"]; - * @return The timestamp. + * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder> + getTriggerFieldBuilder() { + if (triggerBuilder_ == null) { + triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder>( + getTrigger(), + getParentForChildren(), + isClean()); + trigger_ = null; + } + return triggerBuilder_; } - /** - *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-       * 
- * - * int64 timestamp = 8 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - timestamp_ = value; - onChanged(); - return this; - } + private double referencePrice_ ; /** *
-       * Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Reference price used to calculate the valid price range
        * 
* - * int64 timestamp = 8 [json_name = "timestamp"]; - * @return This builder for chaining. + * double reference_price = 4 [json_name = "referencePrice"]; + * @return The referencePrice. */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:vega.MarginLevels) - } - - // @@protoc_insertion_point(class_scope:vega.MarginLevels) - private static final io.vegaprotocol.vega.Vega.MarginLevels DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.MarginLevels(); - } - - public static io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MarginLevels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarginLevels(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.MarketData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Mark price, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * 
- * - * uint64 mark_price = 1 [json_name = "markPrice"]; - * @return The markPrice. - */ - long getMarkPrice(); - - /** - *
-     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * 
- * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - * @return The bestBidPrice. - */ - long getBestBidPrice(); - - /** - *
-     * Aggregated volume being bid at the best bid price
-     * 
- * - * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; - * @return The bestBidVolume. - */ - long getBestBidVolume(); - - /** - *
-     * Lowest price level on an order book for offer orders
-     * 
- * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - * @return The bestOfferPrice. - */ - long getBestOfferPrice(); - - /** - *
-     * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
-     *  // formatted price of `1.23456` assuming market configured to 5 decimal places
-     * 
- * - * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; - * @return The bestOfferVolume. - */ - long getBestOfferVolume(); - - /** - *
-     * Highest price on the order book for buy orders not including pegged orders
-     * 
- * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - * @return The bestStaticBidPrice. - */ - long getBestStaticBidPrice(); - - /** - *
-     * Total volume at the best static bid price excluding pegged orders
-     * 
- * - * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; - * @return The bestStaticBidVolume. - */ - long getBestStaticBidVolume(); - - /** - *
-     * Lowest price on the order book for sell orders not including pegged orders
-     * 
- * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - * @return The bestStaticOfferPrice. - */ - long getBestStaticOfferPrice(); + public double getReferencePrice() { + return referencePrice_; + } + /** + *
+       * Reference price used to calculate the valid price range
+       * 
+ * + * double reference_price = 4 [json_name = "referencePrice"]; + * @param value The referencePrice to set. + * @return This builder for chaining. + */ + public Builder setReferencePrice(double value) { - /** - *
-     * Total volume at the best static offer price excluding pegged orders
-     * 
- * - * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; - * @return The bestStaticOfferVolume. - */ - long getBestStaticOfferVolume(); + referencePrice_ = value; + onChanged(); + return this; + } + /** + *
+       * Reference price used to calculate the valid price range
+       * 
+ * + * double reference_price = 4 [json_name = "referencePrice"]; + * @return This builder for chaining. + */ + public Builder clearReferencePrice() { - /** - *
-     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * 
- * - * uint64 mid_price = 10 [json_name = "midPrice"]; - * @return The midPrice. - */ - long getMidPrice(); + referencePrice_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     * Arithmetic average of the best static bid price and best static offer price
-     * 
- * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - * @return The staticMidPrice. - */ - long getStaticMidPrice(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - *
-     * Market identifier for the data
-     * 
- * - * string market = 12 [json_name = "market"]; - * @return The market. - */ - java.lang.String getMarket(); - /** - *
-     * Market identifier for the data
-     * 
- * - * string market = 12 [json_name = "market"]; - * @return The bytes for market. - */ - com.google.protobuf.ByteString - getMarketBytes(); - /** - *
-     * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 timestamp = 13 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); + // @@protoc_insertion_point(builder_scope:vega.PriceMonitoringBounds) + } - /** - *
-     * The sum of the size of all positions greater than 0 on the market
-     * 
- * - * uint64 open_interest = 14 [json_name = "openInterest"]; - * @return The openInterest. - */ - long getOpenInterest(); + // @@protoc_insertion_point(class_scope:vega.PriceMonitoringBounds) + private static final io.vegaprotocol.vega.Vega.PriceMonitoringBounds DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.PriceMonitoringBounds(); + } - /** - *
-     * Time in seconds until the end of the auction (0 if currently not in auction period)
-     * 
- * - * int64 auction_end = 15 [json_name = "auctionEnd"]; - * @return The auctionEnd. - */ - long getAuctionEnd(); + public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - *
-     * Time until next auction (used in FBA's) - currently always 0
-     * 
- * - * int64 auction_start = 16 [json_name = "auctionStart"]; - * @return The auctionStart. - */ - long getAuctionStart(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceMonitoringBounds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriceMonitoringBounds(input, extensionRegistry); + } + }; - /** - *
-     * Indicative price (zero if not in auction)
-     * 
- * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; - * @return The indicativePrice. - */ - long getIndicativePrice(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - *
-     * Indicative volume (zero if not in auction)
-     * 
- * - * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; - * @return The indicativeVolume. - */ - long getIndicativeVolume(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - *
-     * The current trading mode for the market
-     * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The enum numeric value on the wire for marketTradingMode. - */ - int getMarketTradingModeValue(); - /** - *
-     * The current trading mode for the market
-     * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The marketTradingMode. - */ - io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode(); + @java.lang.Override + public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - *
-     * When a market is in an auction trading mode, this field indicates what triggered the auction
-     * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The enum numeric value on the wire for trigger. - */ - int getTriggerValue(); - /** - *
-     * When a market is in an auction trading mode, this field indicates what triggered the auction
-     * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The trigger. - */ - io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger(); + } - /** - *
-     * When a market auction is extended, this field indicates what caused the extension
-     * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The enum numeric value on the wire for extensionTrigger. - */ - int getExtensionTriggerValue(); - /** - *
-     * When a market auction is extended, this field indicates what caused the extension
-     * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The extensionTrigger. - */ - io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger(); + public interface ErrorDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.ErrorDetail) + com.google.protobuf.MessageOrBuilder { /** *
-     * Targeted stake for the given market
-     * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return The targetStake. - */ - java.lang.String getTargetStake(); - /** - *
-     * Targeted stake for the given market
+     * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
      * 
* - * string target_stake = 22 [json_name = "targetStake"]; - * @return The bytes for targetStake. + * int32 code = 1 [json_name = "code"]; + * @return The code. */ - com.google.protobuf.ByteString - getTargetStakeBytes(); + int getCode(); /** *
-     * Available stake for the given market
+     * A message that describes the error in more detail, should describe the problem encountered
      * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The suppliedStake. + * string message = 2 [json_name = "message"]; + * @return The message. */ - java.lang.String getSuppliedStake(); + java.lang.String getMessage(); /** *
-     * Available stake for the given market
+     * A message that describes the error in more detail, should describe the problem encountered
      * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The bytes for suppliedStake. + * string message = 2 [json_name = "message"]; + * @return The bytes for message. */ com.google.protobuf.ByteString - getSuppliedStakeBytes(); - - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - java.util.List - getPriceMonitoringBoundsList(); - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index); - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - int getPriceMonitoringBoundsCount(); - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - java.util.List - getPriceMonitoringBoundsOrBuilderList(); - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( - int index); + getMessageBytes(); /** *
-     * the market value proxy
+     * Any inner error information that could add more context, or be helpful for error reporting
      * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The marketValueProxy. + * string inner = 3 [json_name = "inner"]; + * @return The inner. */ - java.lang.String getMarketValueProxy(); + java.lang.String getInner(); /** *
-     * the market value proxy
+     * Any inner error information that could add more context, or be helpful for error reporting
      * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The bytes for marketValueProxy. + * string inner = 3 [json_name = "inner"]; + * @return The bytes for inner. */ com.google.protobuf.ByteString - getMarketValueProxyBytes(); - - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - java.util.List - getLiquidityProviderFeeShareList(); - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index); - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - int getLiquidityProviderFeeShareCount(); - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - java.util.List - getLiquidityProviderFeeShareOrBuilderList(); - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( - int index); + getInnerBytes(); } /** *
-   * Represents data generated by a market when open
+   * Represents Vega domain specific error information over gRPC/Protobuf
    * 
* - * Protobuf type {@code vega.MarketData} + * Protobuf type {@code vega.ErrorDetail} */ - public static final class MarketData extends + public static final class ErrorDetail extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.MarketData) - MarketDataOrBuilder { + // @@protoc_insertion_point(message_implements:vega.ErrorDetail) + ErrorDetailOrBuilder { private static final long serialVersionUID = 0L; - // Use MarketData.newBuilder() to construct. - private MarketData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ErrorDetail.newBuilder() to construct. + private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MarketData() { - market_ = ""; - marketTradingMode_ = 0; - trigger_ = 0; - extensionTrigger_ = 0; - targetStake_ = ""; - suppliedStake_ = ""; - priceMonitoringBounds_ = java.util.Collections.emptyList(); - marketValueProxy_ = ""; - liquidityProviderFeeShare_ = java.util.Collections.emptyList(); + private ErrorDetail() { + message_ = ""; + inner_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new MarketData(); + return new ErrorDetail(); } @java.lang.Override @@ -46223,7 +48316,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MarketData( + private ErrorDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -46231,7 +48324,6 @@ private MarketData( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -46241,150 +48333,22 @@ private MarketData( switch (tag) { case 0: done = true; - break; - case 8: { - - markPrice_ = input.readUInt64(); - break; - } - case 16: { - - bestBidPrice_ = input.readUInt64(); - break; - } - case 24: { - - bestBidVolume_ = input.readUInt64(); - break; - } - case 32: { - - bestOfferPrice_ = input.readUInt64(); - break; - } - case 40: { - - bestOfferVolume_ = input.readUInt64(); - break; - } - case 48: { - - bestStaticBidPrice_ = input.readUInt64(); - break; - } - case 56: { - - bestStaticBidVolume_ = input.readUInt64(); - break; - } - case 64: { - - bestStaticOfferPrice_ = input.readUInt64(); - break; - } - case 72: { - - bestStaticOfferVolume_ = input.readUInt64(); - break; - } - case 80: { - - midPrice_ = input.readUInt64(); - break; - } - case 88: { - - staticMidPrice_ = input.readUInt64(); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - market_ = s; - break; - } - case 104: { - - timestamp_ = input.readInt64(); - break; - } - case 112: { - - openInterest_ = input.readUInt64(); - break; - } - case 120: { - - auctionEnd_ = input.readInt64(); - break; - } - case 128: { - - auctionStart_ = input.readInt64(); - break; - } - case 136: { - - indicativePrice_ = input.readUInt64(); - break; - } - case 144: { - - indicativeVolume_ = input.readUInt64(); - break; - } - case 152: { - int rawValue = input.readEnum(); - - marketTradingMode_ = rawValue; - break; - } - case 160: { - int rawValue = input.readEnum(); - - trigger_ = rawValue; - break; - } - case 168: { - int rawValue = input.readEnum(); - - extensionTrigger_ = rawValue; - break; - } - case 178: { - java.lang.String s = input.readStringRequireUtf8(); + break; + case 8: { - targetStake_ = s; + code_ = input.readInt32(); break; } - case 186: { + case 18: { java.lang.String s = input.readStringRequireUtf8(); - suppliedStake_ = s; - break; - } - case 194: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - priceMonitoringBounds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - priceMonitoringBounds_.add( - input.readMessage(io.vegaprotocol.vega.Vega.PriceMonitoringBounds.parser(), extensionRegistry)); + message_ = s; break; } - case 202: { + case 26: { java.lang.String s = input.readStringRequireUtf8(); - marketValueProxy_ = s; - break; - } - case 210: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - liquidityProviderFeeShare_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - liquidityProviderFeeShare_.add( - input.readMessage(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.parser(), extensionRegistry)); + inner_ = s; break; } default: { @@ -46402,874 +48366,1022 @@ private MarketData( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - priceMonitoringBounds_ = java.util.Collections.unmodifiableList(priceMonitoringBounds_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - liquidityProviderFeeShare_ = java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.MarketData.class, io.vegaprotocol.vega.Vega.MarketData.Builder.class); + io.vegaprotocol.vega.Vega.ErrorDetail.class, io.vegaprotocol.vega.Vega.ErrorDetail.Builder.class); } - public static final int MARK_PRICE_FIELD_NUMBER = 1; - private long markPrice_; + public static final int CODE_FIELD_NUMBER = 1; + private int code_; /** *
-     * Mark price, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
      * 
* - * uint64 mark_price = 1 [json_name = "markPrice"]; - * @return The markPrice. + * int32 code = 1 [json_name = "code"]; + * @return The code. */ @java.lang.Override - public long getMarkPrice() { - return markPrice_; + public int getCode() { + return code_; } - public static final int BEST_BID_PRICE_FIELD_NUMBER = 2; - private long bestBidPrice_; + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; /** *
-     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
+     * A message that describes the error in more detail, should describe the problem encountered
      * 
* - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - * @return The bestBidPrice. + * string message = 2 [json_name = "message"]; + * @return The message. */ @java.lang.Override - public long getBestBidPrice() { - return bestBidPrice_; + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } } - - public static final int BEST_BID_VOLUME_FIELD_NUMBER = 3; - private long bestBidVolume_; /** *
-     * Aggregated volume being bid at the best bid price
+     * A message that describes the error in more detail, should describe the problem encountered
      * 
* - * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; - * @return The bestBidVolume. + * string message = 2 [json_name = "message"]; + * @return The bytes for message. */ @java.lang.Override - public long getBestBidVolume() { - return bestBidVolume_; + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int BEST_OFFER_PRICE_FIELD_NUMBER = 4; - private long bestOfferPrice_; + public static final int INNER_FIELD_NUMBER = 3; + private volatile java.lang.Object inner_; /** *
-     * Lowest price level on an order book for offer orders
+     * Any inner error information that could add more context, or be helpful for error reporting
      * 
* - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - * @return The bestOfferPrice. + * string inner = 3 [json_name = "inner"]; + * @return The inner. */ @java.lang.Override - public long getBestOfferPrice() { - return bestOfferPrice_; + public java.lang.String getInner() { + java.lang.Object ref = inner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inner_ = s; + return s; + } } - - public static final int BEST_OFFER_VOLUME_FIELD_NUMBER = 5; - private long bestOfferVolume_; /** *
-     * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
-     *  // formatted price of `1.23456` assuming market configured to 5 decimal places
+     * Any inner error information that could add more context, or be helpful for error reporting
      * 
* - * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; - * @return The bestOfferVolume. + * string inner = 3 [json_name = "inner"]; + * @return The bytes for inner. */ @java.lang.Override - public long getBestOfferVolume() { - return bestOfferVolume_; + public com.google.protobuf.ByteString + getInnerBytes() { + java.lang.Object ref = inner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getInnerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inner_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getInnerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inner_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.Vega.ErrorDetail)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.ErrorDetail other = (io.vegaprotocol.vega.Vega.ErrorDetail) obj; + + if (getCode() + != other.getCode()) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getInner() + .equals(other.getInner())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + INNER_FIELD_NUMBER; + hash = (53 * hash) + getInner().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.ErrorDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public static final int BEST_STATIC_BID_PRICE_FIELD_NUMBER = 6; - private long bestStaticBidPrice_; - /** - *
-     * Highest price on the order book for buy orders not including pegged orders
-     * 
- * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - * @return The bestStaticBidPrice. - */ - @java.lang.Override - public long getBestStaticBidPrice() { - return bestStaticBidPrice_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents Vega domain specific error information over gRPC/Protobuf
+     * 
+ * + * Protobuf type {@code vega.ErrorDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.ErrorDetail) + io.vegaprotocol.vega.Vega.ErrorDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.ErrorDetail.class, io.vegaprotocol.vega.Vega.ErrorDetail.Builder.class); + } + + // Construct using io.vegaprotocol.vega.Vega.ErrorDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + inner_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.ErrorDetail.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.ErrorDetail build() { + io.vegaprotocol.vega.Vega.ErrorDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.ErrorDetail buildPartial() { + io.vegaprotocol.vega.Vega.ErrorDetail result = new io.vegaprotocol.vega.Vega.ErrorDetail(this); + result.code_ = code_; + result.message_ = message_; + result.inner_ = inner_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.ErrorDetail) { + return mergeFrom((io.vegaprotocol.vega.Vega.ErrorDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.ErrorDetail other) { + if (other == io.vegaprotocol.vega.Vega.ErrorDetail.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getInner().isEmpty()) { + inner_ = other.inner_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.ErrorDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.ErrorDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + *
+       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * 
+ * + * int32 code = 1 [json_name = "code"]; + * @return The code. + */ + @java.lang.Override + public int getCode() { + return code_; + } + /** + *
+       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * 
+ * + * int32 code = 1 [json_name = "code"]; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * 
+ * + * int32 code = 1 [json_name = "code"]; + * @return This builder for chaining. + */ + public Builder clearCode() { - public static final int BEST_STATIC_BID_VOLUME_FIELD_NUMBER = 7; - private long bestStaticBidVolume_; - /** - *
-     * Total volume at the best static bid price excluding pegged orders
-     * 
- * - * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; - * @return The bestStaticBidVolume. - */ - @java.lang.Override - public long getBestStaticBidVolume() { - return bestStaticBidVolume_; - } + code_ = 0; + onChanged(); + return this; + } - public static final int BEST_STATIC_OFFER_PRICE_FIELD_NUMBER = 8; - private long bestStaticOfferPrice_; - /** - *
-     * Lowest price on the order book for sell orders not including pegged orders
-     * 
- * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - * @return The bestStaticOfferPrice. - */ - @java.lang.Override - public long getBestStaticOfferPrice() { - return bestStaticOfferPrice_; - } + private java.lang.Object message_ = ""; + /** + *
+       * A message that describes the error in more detail, should describe the problem encountered
+       * 
+ * + * string message = 2 [json_name = "message"]; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A message that describes the error in more detail, should describe the problem encountered
+       * 
+ * + * string message = 2 [json_name = "message"]; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A message that describes the error in more detail, should describe the problem encountered
+       * 
+ * + * string message = 2 [json_name = "message"]; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public static final int BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER = 9; - private long bestStaticOfferVolume_; - /** - *
-     * Total volume at the best static offer price excluding pegged orders
-     * 
- * - * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; - * @return The bestStaticOfferVolume. - */ - @java.lang.Override - public long getBestStaticOfferVolume() { - return bestStaticOfferVolume_; - } + message_ = value; + onChanged(); + return this; + } + /** + *
+       * A message that describes the error in more detail, should describe the problem encountered
+       * 
+ * + * string message = 2 [json_name = "message"]; + * @return This builder for chaining. + */ + public Builder clearMessage() { - public static final int MID_PRICE_FIELD_NUMBER = 10; - private long midPrice_; - /** - *
-     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
-     * formatted price of `1.23456` assuming market configured to 5 decimal places
-     * 
- * - * uint64 mid_price = 10 [json_name = "midPrice"]; - * @return The midPrice. - */ - @java.lang.Override - public long getMidPrice() { - return midPrice_; - } + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * A message that describes the error in more detail, should describe the problem encountered
+       * 
+ * + * string message = 2 [json_name = "message"]; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - public static final int STATIC_MID_PRICE_FIELD_NUMBER = 11; - private long staticMidPrice_; - /** - *
-     * Arithmetic average of the best static bid price and best static offer price
-     * 
- * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - * @return The staticMidPrice. - */ - @java.lang.Override - public long getStaticMidPrice() { - return staticMidPrice_; - } + message_ = value; + onChanged(); + return this; + } - public static final int MARKET_FIELD_NUMBER = 12; - private volatile java.lang.Object market_; - /** - *
-     * Market identifier for the data
-     * 
- * - * string market = 12 [json_name = "market"]; - * @return The market. - */ - @java.lang.Override - public java.lang.String getMarket() { - java.lang.Object ref = market_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - market_ = s; - return s; + private java.lang.Object inner_ = ""; + /** + *
+       * Any inner error information that could add more context, or be helpful for error reporting
+       * 
+ * + * string inner = 3 [json_name = "inner"]; + * @return The inner. + */ + public java.lang.String getInner() { + java.lang.Object ref = inner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inner_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - } - /** - *
-     * Market identifier for the data
-     * 
- * - * string market = 12 [json_name = "market"]; - * @return The bytes for market. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketBytes() { - java.lang.Object ref = market_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - market_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+       * Any inner error information that could add more context, or be helpful for error reporting
+       * 
+ * + * string inner = 3 [json_name = "inner"]; + * @return The bytes for inner. + */ + public com.google.protobuf.ByteString + getInnerBytes() { + java.lang.Object ref = inner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } + /** + *
+       * Any inner error information that could add more context, or be helpful for error reporting
+       * 
+ * + * string inner = 3 [json_name = "inner"]; + * @param value The inner to set. + * @return This builder for chaining. + */ + public Builder setInner( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public static final int TIMESTAMP_FIELD_NUMBER = 13; - private long timestamp_; - /** - *
-     * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 timestamp = 13 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } + inner_ = value; + onChanged(); + return this; + } + /** + *
+       * Any inner error information that could add more context, or be helpful for error reporting
+       * 
+ * + * string inner = 3 [json_name = "inner"]; + * @return This builder for chaining. + */ + public Builder clearInner() { - public static final int OPEN_INTEREST_FIELD_NUMBER = 14; - private long openInterest_; - /** - *
-     * The sum of the size of all positions greater than 0 on the market
-     * 
- * - * uint64 open_interest = 14 [json_name = "openInterest"]; - * @return The openInterest. - */ - @java.lang.Override - public long getOpenInterest() { - return openInterest_; - } + inner_ = getDefaultInstance().getInner(); + onChanged(); + return this; + } + /** + *
+       * Any inner error information that could add more context, or be helpful for error reporting
+       * 
+ * + * string inner = 3 [json_name = "inner"]; + * @param value The bytes for inner to set. + * @return This builder for chaining. + */ + public Builder setInnerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - public static final int AUCTION_END_FIELD_NUMBER = 15; - private long auctionEnd_; - /** - *
-     * Time in seconds until the end of the auction (0 if currently not in auction period)
-     * 
- * - * int64 auction_end = 15 [json_name = "auctionEnd"]; - * @return The auctionEnd. - */ - @java.lang.Override - public long getAuctionEnd() { - return auctionEnd_; - } + inner_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int AUCTION_START_FIELD_NUMBER = 16; - private long auctionStart_; - /** - *
-     * Time until next auction (used in FBA's) - currently always 0
-     * 
- * - * int64 auction_start = 16 [json_name = "auctionStart"]; - * @return The auctionStart. - */ - @java.lang.Override - public long getAuctionStart() { - return auctionStart_; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int INDICATIVE_PRICE_FIELD_NUMBER = 17; - private long indicativePrice_; - /** - *
-     * Indicative price (zero if not in auction)
-     * 
- * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; - * @return The indicativePrice. - */ - @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; - } - public static final int INDICATIVE_VOLUME_FIELD_NUMBER = 18; - private long indicativeVolume_; - /** - *
-     * Indicative volume (zero if not in auction)
-     * 
- * - * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; - * @return The indicativeVolume. - */ - @java.lang.Override - public long getIndicativeVolume() { - return indicativeVolume_; + // @@protoc_insertion_point(builder_scope:vega.ErrorDetail) } - public static final int MARKET_TRADING_MODE_FIELD_NUMBER = 19; - private int marketTradingMode_; - /** - *
-     * The current trading mode for the market
-     * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The enum numeric value on the wire for marketTradingMode. - */ - @java.lang.Override public int getMarketTradingModeValue() { - return marketTradingMode_; - } - /** - *
-     * The current trading mode for the market
-     * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The marketTradingMode. - */ - @java.lang.Override public io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Markets.Market.TradingMode result = io.vegaprotocol.vega.Markets.Market.TradingMode.valueOf(marketTradingMode_); - return result == null ? io.vegaprotocol.vega.Markets.Market.TradingMode.UNRECOGNIZED : result; + // @@protoc_insertion_point(class_scope:vega.ErrorDetail) + private static final io.vegaprotocol.vega.Vega.ErrorDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.ErrorDetail(); } - public static final int TRIGGER_FIELD_NUMBER = 20; - private int trigger_; - /** - *
-     * When a market is in an auction trading mode, this field indicates what triggered the auction
-     * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The enum numeric value on the wire for trigger. - */ - @java.lang.Override public int getTriggerValue() { - return trigger_; - } - /** - *
-     * When a market is in an auction trading mode, this field indicates what triggered the auction
-     * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The trigger. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(trigger_); - return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + public static io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int EXTENSION_TRIGGER_FIELD_NUMBER = 21; - private int extensionTrigger_; - /** - *
-     * When a market auction is extended, this field indicates what caused the extension
-     * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The enum numeric value on the wire for extensionTrigger. - */ - @java.lang.Override public int getExtensionTriggerValue() { - return extensionTrigger_; - } - /** - *
-     * When a market auction is extended, this field indicates what caused the extension
-     * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The extensionTrigger. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(extensionTrigger_); - return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static final int TARGET_STAKE_FIELD_NUMBER = 22; - private volatile java.lang.Object targetStake_; - /** - *
-     * Targeted stake for the given market
-     * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return The targetStake. - */ @java.lang.Override - public java.lang.String getTargetStake() { - java.lang.Object ref = targetStake_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetStake_ = s; - return s; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - *
-     * Targeted stake for the given market
-     * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return The bytes for targetStake. - */ + @java.lang.Override - public com.google.protobuf.ByteString - getTargetStakeBytes() { - java.lang.Object ref = targetStake_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetStake_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public static final int SUPPLIED_STAKE_FIELD_NUMBER = 23; - private volatile java.lang.Object suppliedStake_; + } + + public interface NetworkParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.NetworkParameter) + com.google.protobuf.MessageOrBuilder { + /** *
-     * Available stake for the given market
+     * The unique key
      * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The suppliedStake. + * string key = 1 [json_name = "key"]; + * @return The key. */ - @java.lang.Override - public java.lang.String getSuppliedStake() { - java.lang.Object ref = suppliedStake_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suppliedStake_ = s; - return s; - } - } + java.lang.String getKey(); /** *
-     * Available stake for the given market
+     * The unique key
      * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The bytes for suppliedStake. + * string key = 1 [json_name = "key"]; + * @return The bytes for key. */ - @java.lang.Override - public com.google.protobuf.ByteString - getSuppliedStakeBytes() { - java.lang.Object ref = suppliedStake_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suppliedStake_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + com.google.protobuf.ByteString + getKeyBytes(); - public static final int PRICE_MONITORING_BOUNDS_FIELD_NUMBER = 24; - private java.util.List priceMonitoringBounds_; /** *
-     * One or more price monitoring bounds for the current timestamp
+     * The value for the network parameter
      * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * string value = 2 [json_name = "value"]; + * @return The value. */ - @java.lang.Override - public java.util.List getPriceMonitoringBoundsList() { - return priceMonitoringBounds_; - } + java.lang.String getValue(); /** *
-     * One or more price monitoring bounds for the current timestamp
+     * The value for the network parameter
      * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * string value = 2 [json_name = "value"]; + * @return The bytes for value. */ - @java.lang.Override - public java.util.List - getPriceMonitoringBoundsOrBuilderList() { - return priceMonitoringBounds_; + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * Represents a network parameter on Vega
+   * 
+ * + * Protobuf type {@code vega.NetworkParameter} + */ + public static final class NetworkParameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.NetworkParameter) + NetworkParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkParameter.newBuilder() to construct. + private NetworkParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ + private NetworkParameter() { + key_ = ""; + value_ = ""; + } + @java.lang.Override - public int getPriceMonitoringBoundsCount() { - return priceMonitoringBounds_.size(); + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkParameter(); } - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ + @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index) { - return priceMonitoringBounds_.get(index); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - *
-     * One or more price monitoring bounds for the current timestamp
-     * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ + private NetworkParameter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; + } + @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( - int index) { - return priceMonitoringBounds_.get(index); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.NetworkParameter.class, io.vegaprotocol.vega.Vega.NetworkParameter.Builder.class); } - public static final int MARKET_VALUE_PROXY_FIELD_NUMBER = 25; - private volatile java.lang.Object marketValueProxy_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; /** *
-     * the market value proxy
+     * The unique key
      * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The marketValueProxy. + * string key = 1 [json_name = "key"]; + * @return The key. */ @java.lang.Override - public java.lang.String getMarketValueProxy() { - java.lang.Object ref = marketValueProxy_; + public java.lang.String getKey() { + java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - marketValueProxy_ = s; + key_ = s; return s; } } /** *
-     * the market value proxy
+     * The unique key
      * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The bytes for marketValueProxy. + * string key = 1 [json_name = "key"]; + * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString - getMarketValueProxyBytes() { - java.lang.Object ref = marketValueProxy_; + getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - marketValueProxy_ = b; + key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LIQUIDITY_PROVIDER_FEE_SHARE_FIELD_NUMBER = 26; - private java.util.List liquidityProviderFeeShare_; - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - @java.lang.Override - public java.util.List getLiquidityProviderFeeShareList() { - return liquidityProviderFeeShare_; - } - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - @java.lang.Override - public java.util.List - getLiquidityProviderFeeShareOrBuilderList() { - return liquidityProviderFeeShare_; - } - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - @java.lang.Override - public int getLiquidityProviderFeeShareCount() { - return liquidityProviderFeeShare_.size(); - } - /** - *
-     * the equity like share of liquidity fee for each liquidity provider
-     * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index) { - return liquidityProviderFeeShare_.get(index); - } + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; /** *
-     * the equity like share of liquidity fee for each liquidity provider
+     * The value for the network parameter
      * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( - int index) { - return liquidityProviderFeeShare_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (markPrice_ != 0L) { - output.writeUInt64(1, markPrice_); - } - if (bestBidPrice_ != 0L) { - output.writeUInt64(2, bestBidPrice_); - } - if (bestBidVolume_ != 0L) { - output.writeUInt64(3, bestBidVolume_); - } - if (bestOfferPrice_ != 0L) { - output.writeUInt64(4, bestOfferPrice_); - } - if (bestOfferVolume_ != 0L) { - output.writeUInt64(5, bestOfferVolume_); - } - if (bestStaticBidPrice_ != 0L) { - output.writeUInt64(6, bestStaticBidPrice_); - } - if (bestStaticBidVolume_ != 0L) { - output.writeUInt64(7, bestStaticBidVolume_); - } - if (bestStaticOfferPrice_ != 0L) { - output.writeUInt64(8, bestStaticOfferPrice_); - } - if (bestStaticOfferVolume_ != 0L) { - output.writeUInt64(9, bestStaticOfferVolume_); - } - if (midPrice_ != 0L) { - output.writeUInt64(10, midPrice_); - } - if (staticMidPrice_ != 0L) { - output.writeUInt64(11, staticMidPrice_); - } - if (!getMarketBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, market_); - } - if (timestamp_ != 0L) { - output.writeInt64(13, timestamp_); - } - if (openInterest_ != 0L) { - output.writeUInt64(14, openInterest_); - } - if (auctionEnd_ != 0L) { - output.writeInt64(15, auctionEnd_); - } - if (auctionStart_ != 0L) { - output.writeInt64(16, auctionStart_); - } - if (indicativePrice_ != 0L) { - output.writeUInt64(17, indicativePrice_); - } - if (indicativeVolume_ != 0L) { - output.writeUInt64(18, indicativeVolume_); - } - if (marketTradingMode_ != io.vegaprotocol.vega.Markets.Market.TradingMode.TRADING_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(19, marketTradingMode_); - } - if (trigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { - output.writeEnum(20, trigger_); - } - if (extensionTrigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { - output.writeEnum(21, extensionTrigger_); - } - if (!getTargetStakeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, targetStake_); - } - if (!getSuppliedStakeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, suppliedStake_); - } - for (int i = 0; i < priceMonitoringBounds_.size(); i++) { - output.writeMessage(24, priceMonitoringBounds_.get(i)); - } - if (!getMarketValueProxyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, marketValueProxy_); - } - for (int i = 0; i < liquidityProviderFeeShare_.size(); i++) { - output.writeMessage(26, liquidityProviderFeeShare_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (markPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, markPrice_); - } - if (bestBidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, bestBidPrice_); - } - if (bestBidVolume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, bestBidVolume_); - } - if (bestOfferPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, bestOfferPrice_); - } - if (bestOfferVolume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, bestOfferVolume_); - } - if (bestStaticBidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, bestStaticBidPrice_); - } - if (bestStaticBidVolume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, bestStaticBidVolume_); - } - if (bestStaticOfferPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, bestStaticOfferPrice_); - } - if (bestStaticOfferVolume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, bestStaticOfferVolume_); - } - if (midPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, midPrice_); - } - if (staticMidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, staticMidPrice_); - } - if (!getMarketBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, market_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, timestamp_); - } - if (openInterest_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(14, openInterest_); - } - if (auctionEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(15, auctionEnd_); - } - if (auctionStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(16, auctionStart_); - } - if (indicativePrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, indicativePrice_); - } - if (indicativeVolume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(18, indicativeVolume_); - } - if (marketTradingMode_ != io.vegaprotocol.vega.Markets.Market.TradingMode.TRADING_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(19, marketTradingMode_); - } - if (trigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, trigger_); - } - if (extensionTrigger_ != io.vegaprotocol.vega.Vega.AuctionTrigger.AUCTION_TRIGGER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(21, extensionTrigger_); + * string value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; } - if (!getTargetStakeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, targetStake_); + } + /** + *
+     * The value for the network parameter
+     * 
+ * + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (!getSuppliedStakeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, suppliedStake_); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - for (int i = 0; i < priceMonitoringBounds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, priceMonitoringBounds_.get(i)); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } - if (!getMarketValueProxyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, marketValueProxy_); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - for (int i = 0; i < liquidityProviderFeeShare_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, liquidityProviderFeeShare_.get(i)); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -47281,60 +49393,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.MarketData)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.NetworkParameter)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.MarketData other = (io.vegaprotocol.vega.Vega.MarketData) obj; + io.vegaprotocol.vega.Vega.NetworkParameter other = (io.vegaprotocol.vega.Vega.NetworkParameter) obj; - if (getMarkPrice() - != other.getMarkPrice()) return false; - if (getBestBidPrice() - != other.getBestBidPrice()) return false; - if (getBestBidVolume() - != other.getBestBidVolume()) return false; - if (getBestOfferPrice() - != other.getBestOfferPrice()) return false; - if (getBestOfferVolume() - != other.getBestOfferVolume()) return false; - if (getBestStaticBidPrice() - != other.getBestStaticBidPrice()) return false; - if (getBestStaticBidVolume() - != other.getBestStaticBidVolume()) return false; - if (getBestStaticOfferPrice() - != other.getBestStaticOfferPrice()) return false; - if (getBestStaticOfferVolume() - != other.getBestStaticOfferVolume()) return false; - if (getMidPrice() - != other.getMidPrice()) return false; - if (getStaticMidPrice() - != other.getStaticMidPrice()) return false; - if (!getMarket() - .equals(other.getMarket())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (getOpenInterest() - != other.getOpenInterest()) return false; - if (getAuctionEnd() - != other.getAuctionEnd()) return false; - if (getAuctionStart() - != other.getAuctionStart()) return false; - if (getIndicativePrice() - != other.getIndicativePrice()) return false; - if (getIndicativeVolume() - != other.getIndicativeVolume()) return false; - if (marketTradingMode_ != other.marketTradingMode_) return false; - if (trigger_ != other.trigger_) return false; - if (extensionTrigger_ != other.extensionTrigger_) return false; - if (!getTargetStake() - .equals(other.getTargetStake())) return false; - if (!getSuppliedStake() - .equals(other.getSuppliedStake())) return false; - if (!getPriceMonitoringBoundsList() - .equals(other.getPriceMonitoringBoundsList())) return false; - if (!getMarketValueProxy() - .equals(other.getMarketValueProxy())) return false; - if (!getLiquidityProviderFeeShareList() - .equals(other.getLiquidityProviderFeeShareList())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -47346,147 +49413,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARK_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMarkPrice()); - hash = (37 * hash) + BEST_BID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestBidPrice()); - hash = (37 * hash) + BEST_BID_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestBidVolume()); - hash = (37 * hash) + BEST_OFFER_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestOfferPrice()); - hash = (37 * hash) + BEST_OFFER_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestOfferVolume()); - hash = (37 * hash) + BEST_STATIC_BID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticBidPrice()); - hash = (37 * hash) + BEST_STATIC_BID_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticBidVolume()); - hash = (37 * hash) + BEST_STATIC_OFFER_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticOfferPrice()); - hash = (37 * hash) + BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticOfferVolume()); - hash = (37 * hash) + MID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMidPrice()); - hash = (37 * hash) + STATIC_MID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStaticMidPrice()); - hash = (37 * hash) + MARKET_FIELD_NUMBER; - hash = (53 * hash) + getMarket().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + OPEN_INTEREST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOpenInterest()); - hash = (37 * hash) + AUCTION_END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAuctionEnd()); - hash = (37 * hash) + AUCTION_START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAuctionStart()); - hash = (37 * hash) + INDICATIVE_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndicativePrice()); - hash = (37 * hash) + INDICATIVE_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndicativeVolume()); - hash = (37 * hash) + MARKET_TRADING_MODE_FIELD_NUMBER; - hash = (53 * hash) + marketTradingMode_; - hash = (37 * hash) + TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + trigger_; - hash = (37 * hash) + EXTENSION_TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + extensionTrigger_; - hash = (37 * hash) + TARGET_STAKE_FIELD_NUMBER; - hash = (53 * hash) + getTargetStake().hashCode(); - hash = (37 * hash) + SUPPLIED_STAKE_FIELD_NUMBER; - hash = (53 * hash) + getSuppliedStake().hashCode(); - if (getPriceMonitoringBoundsCount() > 0) { - hash = (37 * hash) + PRICE_MONITORING_BOUNDS_FIELD_NUMBER; - hash = (53 * hash) + getPriceMonitoringBoundsList().hashCode(); - } - hash = (37 * hash) + MARKET_VALUE_PROXY_FIELD_NUMBER; - hash = (53 * hash) + getMarketValueProxy().hashCode(); - if (getLiquidityProviderFeeShareCount() > 0) { - hash = (37 * hash) + LIQUIDITY_PROVIDER_FEE_SHARE_FIELD_NUMBER; - hash = (53 * hash) + getLiquidityProviderFeeShareList().hashCode(); - } + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarketData parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.NetworkParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarketData parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.MarketData parseFrom( + public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -47499,7 +49497,7 @@ public static io.vegaprotocol.vega.Vega.MarketData parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.MarketData prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.NetworkParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -47516,29 +49514,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents data generated by a market when open
+     * Represents a network parameter on Vega
      * 
* - * Protobuf type {@code vega.MarketData} + * Protobuf type {@code vega.NetworkParameter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.MarketData) - io.vegaprotocol.vega.Vega.MarketDataOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.NetworkParameter) + io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.MarketData.class, io.vegaprotocol.vega.Vega.MarketData.Builder.class); + io.vegaprotocol.vega.Vega.NetworkParameter.class, io.vegaprotocol.vega.Vega.NetworkParameter.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.MarketData.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.NetworkParameter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -47551,90 +49549,32 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getPriceMonitoringBoundsFieldBuilder(); - getLiquidityProviderFeeShareFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - markPrice_ = 0L; - - bestBidPrice_ = 0L; - - bestBidVolume_ = 0L; - - bestOfferPrice_ = 0L; - - bestOfferVolume_ = 0L; - - bestStaticBidPrice_ = 0L; - - bestStaticBidVolume_ = 0L; - - bestStaticOfferPrice_ = 0L; - - bestStaticOfferVolume_ = 0L; - - midPrice_ = 0L; - - staticMidPrice_ = 0L; - - market_ = ""; - - timestamp_ = 0L; - - openInterest_ = 0L; - - auctionEnd_ = 0L; - - auctionStart_ = 0L; - - indicativePrice_ = 0L; - - indicativeVolume_ = 0L; - - marketTradingMode_ = 0; - - trigger_ = 0; - - extensionTrigger_ = 0; - - targetStake_ = ""; - - suppliedStake_ = ""; + key_ = ""; - if (priceMonitoringBoundsBuilder_ == null) { - priceMonitoringBounds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - priceMonitoringBoundsBuilder_.clear(); - } - marketValueProxy_ = ""; + value_ = ""; - if (liquidityProviderFeeShareBuilder_ == null) { - liquidityProviderFeeShare_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - liquidityProviderFeeShareBuilder_.clear(); - } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_MarketData_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData build() { - io.vegaprotocol.vega.Vega.MarketData result = buildPartial(); + public io.vegaprotocol.vega.Vega.NetworkParameter build() { + io.vegaprotocol.vega.Vega.NetworkParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -47642,51 +49582,10 @@ public io.vegaprotocol.vega.Vega.MarketData build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData buildPartial() { - io.vegaprotocol.vega.Vega.MarketData result = new io.vegaprotocol.vega.Vega.MarketData(this); - int from_bitField0_ = bitField0_; - result.markPrice_ = markPrice_; - result.bestBidPrice_ = bestBidPrice_; - result.bestBidVolume_ = bestBidVolume_; - result.bestOfferPrice_ = bestOfferPrice_; - result.bestOfferVolume_ = bestOfferVolume_; - result.bestStaticBidPrice_ = bestStaticBidPrice_; - result.bestStaticBidVolume_ = bestStaticBidVolume_; - result.bestStaticOfferPrice_ = bestStaticOfferPrice_; - result.bestStaticOfferVolume_ = bestStaticOfferVolume_; - result.midPrice_ = midPrice_; - result.staticMidPrice_ = staticMidPrice_; - result.market_ = market_; - result.timestamp_ = timestamp_; - result.openInterest_ = openInterest_; - result.auctionEnd_ = auctionEnd_; - result.auctionStart_ = auctionStart_; - result.indicativePrice_ = indicativePrice_; - result.indicativeVolume_ = indicativeVolume_; - result.marketTradingMode_ = marketTradingMode_; - result.trigger_ = trigger_; - result.extensionTrigger_ = extensionTrigger_; - result.targetStake_ = targetStake_; - result.suppliedStake_ = suppliedStake_; - if (priceMonitoringBoundsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - priceMonitoringBounds_ = java.util.Collections.unmodifiableList(priceMonitoringBounds_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.priceMonitoringBounds_ = priceMonitoringBounds_; - } else { - result.priceMonitoringBounds_ = priceMonitoringBoundsBuilder_.build(); - } - result.marketValueProxy_ = marketValueProxy_; - if (liquidityProviderFeeShareBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - liquidityProviderFeeShare_ = java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.liquidityProviderFeeShare_ = liquidityProviderFeeShare_; - } else { - result.liquidityProviderFeeShare_ = liquidityProviderFeeShareBuilder_.build(); - } + public io.vegaprotocol.vega.Vega.NetworkParameter buildPartial() { + io.vegaprotocol.vega.Vega.NetworkParameter result = new io.vegaprotocol.vega.Vega.NetworkParameter(this); + result.key_ = key_; + result.value_ = value_; onBuilt(); return result; } @@ -47725,143 +49624,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.MarketData) { - return mergeFrom((io.vegaprotocol.vega.Vega.MarketData)other); + if (other instanceof io.vegaprotocol.vega.Vega.NetworkParameter) { + return mergeFrom((io.vegaprotocol.vega.Vega.NetworkParameter)other); } else { super.mergeFrom(other); return this; } - } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarketData other) { - if (other == io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()) return this; - if (other.getMarkPrice() != 0L) { - setMarkPrice(other.getMarkPrice()); - } - if (other.getBestBidPrice() != 0L) { - setBestBidPrice(other.getBestBidPrice()); - } - if (other.getBestBidVolume() != 0L) { - setBestBidVolume(other.getBestBidVolume()); - } - if (other.getBestOfferPrice() != 0L) { - setBestOfferPrice(other.getBestOfferPrice()); - } - if (other.getBestOfferVolume() != 0L) { - setBestOfferVolume(other.getBestOfferVolume()); - } - if (other.getBestStaticBidPrice() != 0L) { - setBestStaticBidPrice(other.getBestStaticBidPrice()); - } - if (other.getBestStaticBidVolume() != 0L) { - setBestStaticBidVolume(other.getBestStaticBidVolume()); - } - if (other.getBestStaticOfferPrice() != 0L) { - setBestStaticOfferPrice(other.getBestStaticOfferPrice()); - } - if (other.getBestStaticOfferVolume() != 0L) { - setBestStaticOfferVolume(other.getBestStaticOfferVolume()); - } - if (other.getMidPrice() != 0L) { - setMidPrice(other.getMidPrice()); - } - if (other.getStaticMidPrice() != 0L) { - setStaticMidPrice(other.getStaticMidPrice()); - } - if (!other.getMarket().isEmpty()) { - market_ = other.market_; - onChanged(); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getOpenInterest() != 0L) { - setOpenInterest(other.getOpenInterest()); - } - if (other.getAuctionEnd() != 0L) { - setAuctionEnd(other.getAuctionEnd()); - } - if (other.getAuctionStart() != 0L) { - setAuctionStart(other.getAuctionStart()); - } - if (other.getIndicativePrice() != 0L) { - setIndicativePrice(other.getIndicativePrice()); - } - if (other.getIndicativeVolume() != 0L) { - setIndicativeVolume(other.getIndicativeVolume()); - } - if (other.marketTradingMode_ != 0) { - setMarketTradingModeValue(other.getMarketTradingModeValue()); - } - if (other.trigger_ != 0) { - setTriggerValue(other.getTriggerValue()); - } - if (other.extensionTrigger_ != 0) { - setExtensionTriggerValue(other.getExtensionTriggerValue()); - } - if (!other.getTargetStake().isEmpty()) { - targetStake_ = other.targetStake_; - onChanged(); - } - if (!other.getSuppliedStake().isEmpty()) { - suppliedStake_ = other.suppliedStake_; - onChanged(); - } - if (priceMonitoringBoundsBuilder_ == null) { - if (!other.priceMonitoringBounds_.isEmpty()) { - if (priceMonitoringBounds_.isEmpty()) { - priceMonitoringBounds_ = other.priceMonitoringBounds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.addAll(other.priceMonitoringBounds_); - } - onChanged(); - } - } else { - if (!other.priceMonitoringBounds_.isEmpty()) { - if (priceMonitoringBoundsBuilder_.isEmpty()) { - priceMonitoringBoundsBuilder_.dispose(); - priceMonitoringBoundsBuilder_ = null; - priceMonitoringBounds_ = other.priceMonitoringBounds_; - bitField0_ = (bitField0_ & ~0x00000001); - priceMonitoringBoundsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPriceMonitoringBoundsFieldBuilder() : null; - } else { - priceMonitoringBoundsBuilder_.addAllMessages(other.priceMonitoringBounds_); - } - } - } - if (!other.getMarketValueProxy().isEmpty()) { - marketValueProxy_ = other.marketValueProxy_; - onChanged(); - } - if (liquidityProviderFeeShareBuilder_ == null) { - if (!other.liquidityProviderFeeShare_.isEmpty()) { - if (liquidityProviderFeeShare_.isEmpty()) { - liquidityProviderFeeShare_ = other.liquidityProviderFeeShare_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.addAll(other.liquidityProviderFeeShare_); - } - onChanged(); - } - } else { - if (!other.liquidityProviderFeeShare_.isEmpty()) { - if (liquidityProviderFeeShareBuilder_.isEmpty()) { - liquidityProviderFeeShareBuilder_.dispose(); - liquidityProviderFeeShareBuilder_ = null; - liquidityProviderFeeShare_ = other.liquidityProviderFeeShare_; - bitField0_ = (bitField0_ & ~0x00000002); - liquidityProviderFeeShareBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLiquidityProviderFeeShareFieldBuilder() : null; - } else { - liquidityProviderFeeShareBuilder_.addAllMessages(other.liquidityProviderFeeShare_); - } - } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.NetworkParameter other) { + if (other == io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -47878,11 +49657,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.MarketData parsedMessage = null; + io.vegaprotocol.vega.Vega.NetworkParameter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.MarketData) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.NetworkParameter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -47891,1184 +49670,1589 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private long markPrice_ ; + private java.lang.Object key_ = ""; /** *
-       * Mark price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * The unique key
        * 
* - * uint64 mark_price = 1 [json_name = "markPrice"]; - * @return The markPrice. + * string key = 1 [json_name = "key"]; + * @return The key. */ - @java.lang.Override - public long getMarkPrice() { - return markPrice_; + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Mark price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * The unique key
        * 
* - * uint64 mark_price = 1 [json_name = "markPrice"]; - * @param value The markPrice to set. - * @return This builder for chaining. + * string key = 1 [json_name = "key"]; + * @return The bytes for key. */ - public Builder setMarkPrice(long value) { - - markPrice_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Mark price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * The unique key
        * 
* - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string key = 1 [json_name = "key"]; + * @param value The key to set. * @return This builder for chaining. */ - public Builder clearMarkPrice() { + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - markPrice_ = 0L; + key_ = value; onChanged(); return this; } - - private long bestBidPrice_ ; - /** - *
-       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - * @return The bestBidPrice. - */ - @java.lang.Override - public long getBestBidPrice() { - return bestBidPrice_; - } /** *
-       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * The unique key
        * 
* - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - * @param value The bestBidPrice to set. + * string key = 1 [json_name = "key"]; * @return This builder for chaining. */ - public Builder setBestBidPrice(long value) { + public Builder clearKey() { - bestBidPrice_ = value; + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
-       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
+       * The unique key
        * 
* - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string key = 1 [json_name = "key"]; + * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder clearBestBidPrice() { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - bestBidPrice_ = 0L; + key_ = value; onChanged(); return this; } - private long bestBidVolume_ ; + private java.lang.Object value_ = ""; /** *
-       * Aggregated volume being bid at the best bid price
+       * The value for the network parameter
        * 
* - * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; - * @return The bestBidVolume. + * string value = 2 [json_name = "value"]; + * @return The value. */ - @java.lang.Override - public long getBestBidVolume() { - return bestBidVolume_; + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Aggregated volume being bid at the best bid price
+       * The value for the network parameter
        * 
* - * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; - * @param value The bestBidVolume to set. - * @return This builder for chaining. + * string value = 2 [json_name = "value"]; + * @return The bytes for value. */ - public Builder setBestBidVolume(long value) { - - bestBidVolume_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Aggregated volume being bid at the best bid price
+       * The value for the network parameter
        * 
* - * uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; + * string value = 2 [json_name = "value"]; + * @param value The value to set. * @return This builder for chaining. */ - public Builder clearBestBidVolume() { + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - bestBidVolume_ = 0L; + value_ = value; onChanged(); return this; } - - private long bestOfferPrice_ ; - /** - *
-       * Lowest price level on an order book for offer orders
-       * 
- * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - * @return The bestOfferPrice. - */ - @java.lang.Override - public long getBestOfferPrice() { - return bestOfferPrice_; - } /** *
-       * Lowest price level on an order book for offer orders
+       * The value for the network parameter
        * 
* - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - * @param value The bestOfferPrice to set. + * string value = 2 [json_name = "value"]; * @return This builder for chaining. */ - public Builder setBestOfferPrice(long value) { + public Builder clearValue() { - bestOfferPrice_ = value; + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** *
-       * Lowest price level on an order book for offer orders
+       * The value for the network parameter
        * 
* - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string value = 2 [json_name = "value"]; + * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder clearBestOfferPrice() { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - bestOfferPrice_ = 0L; + value_ = value; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private long bestOfferVolume_ ; - /** - *
-       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
-       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; - * @return The bestOfferVolume. - */ @java.lang.Override - public long getBestOfferVolume() { - return bestOfferVolume_; + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
-       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; - * @param value The bestOfferVolume to set. - * @return This builder for chaining. - */ - public Builder setBestOfferVolume(long value) { - bestOfferVolume_ = value; - onChanged(); - return this; + + // @@protoc_insertion_point(builder_scope:vega.NetworkParameter) + } + + // @@protoc_insertion_point(class_scope:vega.NetworkParameter) + private static final io.vegaprotocol.vega.Vega.NetworkParameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.NetworkParameter(); + } + + public static io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkParameter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiquidityOrderOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.LiquidityOrder) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The pegged reference point for the order
+     * 
+ * + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The enum numeric value on the wire for reference. + */ + int getReferenceValue(); + /** + *
+     * The pegged reference point for the order
+     * 
+ * + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The reference. + */ + io.vegaprotocol.vega.Vega.PeggedReference getReference(); + + /** + *
+     * The relative proportion of the commitment to be allocated at a price level
+     * 
+ * + * uint32 proportion = 2 [json_name = "proportion"]; + * @return The proportion. + */ + int getProportion(); + + /** + *
+     * The offset/amount of units away for the order
+     * 
+ * + * int64 offset = 3 [json_name = "offset"]; + * @return The offset. + */ + long getOffset(); + } + /** + *
+   * Represents a liquidity order
+   * 
+ * + * Protobuf type {@code vega.LiquidityOrder} + */ + public static final class LiquidityOrder extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.LiquidityOrder) + LiquidityOrderOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiquidityOrder.newBuilder() to construct. + private LiquidityOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiquidityOrder() { + reference_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LiquidityOrder(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiquidityOrder( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + reference_ = rawValue; + break; + } + case 16: { + + proportion_ = input.readUInt32(); + break; + } + case 24: { + + offset_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LiquidityOrder.class, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder.class); + } + + public static final int REFERENCE_FIELD_NUMBER = 1; + private int reference_; + /** + *
+     * The pegged reference point for the order
+     * 
+ * + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The enum numeric value on the wire for reference. + */ + @java.lang.Override public int getReferenceValue() { + return reference_; + } + /** + *
+     * The pegged reference point for the order
+     * 
+ * + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The reference. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.PeggedReference getReference() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.PeggedReference result = io.vegaprotocol.vega.Vega.PeggedReference.valueOf(reference_); + return result == null ? io.vegaprotocol.vega.Vega.PeggedReference.UNRECOGNIZED : result; + } + + public static final int PROPORTION_FIELD_NUMBER = 2; + private int proportion_; + /** + *
+     * The relative proportion of the commitment to be allocated at a price level
+     * 
+ * + * uint32 proportion = 2 [json_name = "proportion"]; + * @return The proportion. + */ + @java.lang.Override + public int getProportion() { + return proportion_; + } + + public static final int OFFSET_FIELD_NUMBER = 3; + private long offset_; + /** + *
+     * The offset/amount of units away for the order
+     * 
+ * + * int64 offset = 3 [json_name = "offset"]; + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reference_ != io.vegaprotocol.vega.Vega.PeggedReference.PEGGED_REFERENCE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, reference_); + } + if (proportion_ != 0) { + output.writeUInt32(2, proportion_); + } + if (offset_ != 0L) { + output.writeInt64(3, offset_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reference_ != io.vegaprotocol.vega.Vega.PeggedReference.PEGGED_REFERENCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, reference_); } - /** - *
-       * Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
-       *  // formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; - * @return This builder for chaining. - */ - public Builder clearBestOfferVolume() { - - bestOfferVolume_ = 0L; - onChanged(); - return this; + if (proportion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, proportion_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, offset_); } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private long bestStaticBidPrice_ ; - /** - *
-       * Highest price on the order book for buy orders not including pegged orders
-       * 
- * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - * @return The bestStaticBidPrice. - */ - @java.lang.Override - public long getBestStaticBidPrice() { - return bestStaticBidPrice_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * Highest price on the order book for buy orders not including pegged orders
-       * 
- * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - * @param value The bestStaticBidPrice to set. - * @return This builder for chaining. - */ - public Builder setBestStaticBidPrice(long value) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityOrder)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.LiquidityOrder other = (io.vegaprotocol.vega.Vega.LiquidityOrder) obj; - bestStaticBidPrice_ = value; - onChanged(); - return this; + if (reference_ != other.reference_) return false; + if (getProportion() + != other.getProportion()) return false; + if (getOffset() + != other.getOffset()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - *
-       * Highest price on the order book for buy orders not including pegged orders
-       * 
- * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - * @return This builder for chaining. - */ - public Builder clearBestStaticBidPrice() { + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + reference_; + hash = (37 * hash) + PROPORTION_FIELD_NUMBER; + hash = (53 * hash) + getProportion(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - bestStaticBidPrice_ = 0L; - onChanged(); - return this; + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityOrder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a liquidity order
+     * 
+ * + * Protobuf type {@code vega.LiquidityOrder} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.LiquidityOrder) + io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; } - private long bestStaticBidVolume_ ; - /** - *
-       * Total volume at the best static bid price excluding pegged orders
-       * 
- * - * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; - * @return The bestStaticBidVolume. - */ @java.lang.Override - public long getBestStaticBidVolume() { - return bestStaticBidVolume_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LiquidityOrder.class, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder.class); } - /** - *
-       * Total volume at the best static bid price excluding pegged orders
-       * 
- * - * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; - * @param value The bestStaticBidVolume to set. - * @return This builder for chaining. - */ - public Builder setBestStaticBidVolume(long value) { - bestStaticBidVolume_ = value; - onChanged(); - return this; + // Construct using io.vegaprotocol.vega.Vega.LiquidityOrder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * Total volume at the best static bid price excluding pegged orders
-       * 
- * - * uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; - * @return This builder for chaining. - */ - public Builder clearBestStaticBidVolume() { - bestStaticBidVolume_ = 0L; - onChanged(); - return this; + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - - private long bestStaticOfferPrice_ ; - /** - *
-       * Lowest price on the order book for sell orders not including pegged orders
-       * 
- * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - * @return The bestStaticOfferPrice. - */ - @java.lang.Override - public long getBestStaticOfferPrice() { - return bestStaticOfferPrice_; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - *
-       * Lowest price on the order book for sell orders not including pegged orders
-       * 
- * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - * @param value The bestStaticOfferPrice to set. - * @return This builder for chaining. - */ - public Builder setBestStaticOfferPrice(long value) { + @java.lang.Override + public Builder clear() { + super.clear(); + reference_ = 0; - bestStaticOfferPrice_ = value; - onChanged(); - return this; - } - /** - *
-       * Lowest price on the order book for sell orders not including pegged orders
-       * 
- * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - * @return This builder for chaining. - */ - public Builder clearBestStaticOfferPrice() { + proportion_ = 0; + + offset_ = 0L; - bestStaticOfferPrice_ = 0L; - onChanged(); return this; } - private long bestStaticOfferVolume_ ; - /** - *
-       * Total volume at the best static offer price excluding pegged orders
-       * 
- * - * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; - * @return The bestStaticOfferVolume. - */ @java.lang.Override - public long getBestStaticOfferVolume() { - return bestStaticOfferVolume_; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; } - /** - *
-       * Total volume at the best static offer price excluding pegged orders
-       * 
- * - * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; - * @param value The bestStaticOfferVolume to set. - * @return This builder for chaining. - */ - public Builder setBestStaticOfferVolume(long value) { - bestStaticOfferVolume_ = value; - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance(); } - /** - *
-       * Total volume at the best static offer price excluding pegged orders
-       * 
- * - * uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; - * @return This builder for chaining. - */ - public Builder clearBestStaticOfferVolume() { - bestStaticOfferVolume_ = 0L; - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrder build() { + io.vegaprotocol.vega.Vega.LiquidityOrder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - private long midPrice_ ; - /** - *
-       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 mid_price = 10 [json_name = "midPrice"]; - * @return The midPrice. - */ @java.lang.Override - public long getMidPrice() { - return midPrice_; + public io.vegaprotocol.vega.Vega.LiquidityOrder buildPartial() { + io.vegaprotocol.vega.Vega.LiquidityOrder result = new io.vegaprotocol.vega.Vega.LiquidityOrder(this); + result.reference_ = reference_; + result.proportion_ = proportion_; + result.offset_ = offset_; + onBuilt(); + return result; } - /** - *
-       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 mid_price = 10 [json_name = "midPrice"]; - * @param value The midPrice to set. - * @return This builder for chaining. - */ - public Builder setMidPrice(long value) { - midPrice_ = value; - onChanged(); - return this; + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - *
-       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
-       * formatted price of `1.23456` assuming market configured to 5 decimal places
-       * 
- * - * uint64 mid_price = 10 [json_name = "midPrice"]; - * @return This builder for chaining. - */ - public Builder clearMidPrice() { - - midPrice_ = 0L; - onChanged(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - - private long staticMidPrice_ ; - /** - *
-       * Arithmetic average of the best static bid price and best static offer price
-       * 
- * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - * @return The staticMidPrice. - */ @java.lang.Override - public long getStaticMidPrice() { - return staticMidPrice_; + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-       * Arithmetic average of the best static bid price and best static offer price
-       * 
- * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - * @param value The staticMidPrice to set. - * @return This builder for chaining. - */ - public Builder setStaticMidPrice(long value) { - - staticMidPrice_ = value; - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-       * Arithmetic average of the best static bid price and best static offer price
-       * 
- * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - * @return This builder for chaining. - */ - public Builder clearStaticMidPrice() { - - staticMidPrice_ = 0L; - onChanged(); - return this; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - - private java.lang.Object market_ = ""; - /** - *
-       * Market identifier for the data
-       * 
- * - * string market = 12 [json_name = "market"]; - * @return The market. - */ - public java.lang.String getMarket() { - java.lang.Object ref = market_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - market_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - /** - *
-       * Market identifier for the data
-       * 
- * - * string market = 12 [json_name = "market"]; - * @return The bytes for market. - */ - public com.google.protobuf.ByteString - getMarketBytes() { - java.lang.Object ref = market_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - market_ = b; - return b; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.LiquidityOrder) { + return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityOrder)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - *
-       * Market identifier for the data
-       * 
- * - * string market = 12 [json_name = "market"]; - * @param value The market to set. - * @return This builder for chaining. - */ - public Builder setMarket( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - market_ = value; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityOrder other) { + if (other == io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance()) return this; + if (other.reference_ != 0) { + setReferenceValue(other.getReferenceValue()); + } + if (other.getProportion() != 0) { + setProportion(other.getProportion()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.LiquidityOrder parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityOrder) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int reference_ = 0; /** *
-       * Market identifier for the data
+       * The pegged reference point for the order
        * 
* - * string market = 12 [json_name = "market"]; - * @return This builder for chaining. + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The enum numeric value on the wire for reference. */ - public Builder clearMarket() { - - market_ = getDefaultInstance().getMarket(); - onChanged(); - return this; + @java.lang.Override public int getReferenceValue() { + return reference_; } /** *
-       * Market identifier for the data
+       * The pegged reference point for the order
        * 
* - * string market = 12 [json_name = "market"]; - * @param value The bytes for market to set. + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @param value The enum numeric value on the wire for reference to set. * @return This builder for chaining. */ - public Builder setMarketBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setReferenceValue(int value) { - market_ = value; + reference_ = value; onChanged(); return this; } - - private long timestamp_ ; /** *
-       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * The pegged reference point for the order
        * 
* - * int64 timestamp = 13 [json_name = "timestamp"]; - * @return The timestamp. + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @return The reference. */ @java.lang.Override - public long getTimestamp() { - return timestamp_; + public io.vegaprotocol.vega.Vega.PeggedReference getReference() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.PeggedReference result = io.vegaprotocol.vega.Vega.PeggedReference.valueOf(reference_); + return result == null ? io.vegaprotocol.vega.Vega.PeggedReference.UNRECOGNIZED : result; } /** *
-       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * The pegged reference point for the order
        * 
* - * int64 timestamp = 13 [json_name = "timestamp"]; - * @param value The timestamp to set. + * .vega.PeggedReference reference = 1 [json_name = "reference"]; + * @param value The reference to set. * @return This builder for chaining. */ - public Builder setTimestamp(long value) { + public Builder setReference(io.vegaprotocol.vega.Vega.PeggedReference value) { + if (value == null) { + throw new NullPointerException(); + } - timestamp_ = value; + reference_ = value.getNumber(); onChanged(); return this; } /** *
-       * Timestamp at which this mark price was relevant, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * The pegged reference point for the order
        * 
* - * int64 timestamp = 13 [json_name = "timestamp"]; + * .vega.PeggedReference reference = 1 [json_name = "reference"]; * @return This builder for chaining. */ - public Builder clearTimestamp() { + public Builder clearReference() { - timestamp_ = 0L; + reference_ = 0; onChanged(); return this; } - private long openInterest_ ; + private int proportion_ ; /** *
-       * The sum of the size of all positions greater than 0 on the market
+       * The relative proportion of the commitment to be allocated at a price level
        * 
* - * uint64 open_interest = 14 [json_name = "openInterest"]; - * @return The openInterest. + * uint32 proportion = 2 [json_name = "proportion"]; + * @return The proportion. */ @java.lang.Override - public long getOpenInterest() { - return openInterest_; + public int getProportion() { + return proportion_; } /** *
-       * The sum of the size of all positions greater than 0 on the market
+       * The relative proportion of the commitment to be allocated at a price level
        * 
* - * uint64 open_interest = 14 [json_name = "openInterest"]; - * @param value The openInterest to set. + * uint32 proportion = 2 [json_name = "proportion"]; + * @param value The proportion to set. * @return This builder for chaining. */ - public Builder setOpenInterest(long value) { + public Builder setProportion(int value) { - openInterest_ = value; + proportion_ = value; onChanged(); return this; } /** *
-       * The sum of the size of all positions greater than 0 on the market
+       * The relative proportion of the commitment to be allocated at a price level
        * 
* - * uint64 open_interest = 14 [json_name = "openInterest"]; + * uint32 proportion = 2 [json_name = "proportion"]; * @return This builder for chaining. */ - public Builder clearOpenInterest() { + public Builder clearProportion() { - openInterest_ = 0L; + proportion_ = 0; onChanged(); return this; } - private long auctionEnd_ ; + private long offset_ ; /** *
-       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * The offset/amount of units away for the order
        * 
* - * int64 auction_end = 15 [json_name = "auctionEnd"]; - * @return The auctionEnd. + * int64 offset = 3 [json_name = "offset"]; + * @return The offset. */ @java.lang.Override - public long getAuctionEnd() { - return auctionEnd_; + public long getOffset() { + return offset_; } /** *
-       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * The offset/amount of units away for the order
        * 
* - * int64 auction_end = 15 [json_name = "auctionEnd"]; - * @param value The auctionEnd to set. + * int64 offset = 3 [json_name = "offset"]; + * @param value The offset to set. * @return This builder for chaining. */ - public Builder setAuctionEnd(long value) { + public Builder setOffset(long value) { - auctionEnd_ = value; + offset_ = value; onChanged(); return this; } /** *
-       * Time in seconds until the end of the auction (0 if currently not in auction period)
+       * The offset/amount of units away for the order
        * 
* - * int64 auction_end = 15 [json_name = "auctionEnd"]; + * int64 offset = 3 [json_name = "offset"]; * @return This builder for chaining. */ - public Builder clearAuctionEnd() { + public Builder clearOffset() { - auctionEnd_ = 0L; + offset_ = 0L; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private long auctionStart_ ; - /** - *
-       * Time until next auction (used in FBA's) - currently always 0
-       * 
- * - * int64 auction_start = 16 [json_name = "auctionStart"]; - * @return The auctionStart. - */ @java.lang.Override - public long getAuctionStart() { - return auctionStart_; + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * Time until next auction (used in FBA's) - currently always 0
-       * 
- * - * int64 auction_start = 16 [json_name = "auctionStart"]; - * @param value The auctionStart to set. - * @return This builder for chaining. - */ - public Builder setAuctionStart(long value) { - auctionStart_ = value; - onChanged(); - return this; + + // @@protoc_insertion_point(builder_scope:vega.LiquidityOrder) + } + + // @@protoc_insertion_point(class_scope:vega.LiquidityOrder) + private static final io.vegaprotocol.vega.Vega.LiquidityOrder DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityOrder(); + } + + public static io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiquidityOrder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiquidityOrder(input, extensionRegistry); } - /** - *
-       * Time until next auction (used in FBA's) - currently always 0
-       * 
- * - * int64 auction_start = 16 [json_name = "auctionStart"]; - * @return This builder for chaining. - */ - public Builder clearAuctionStart() { + }; - auctionStart_ = 0L; - onChanged(); - return this; + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiquidityOrderReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.LiquidityOrderReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+     * 
+ * + * string order_id = 1 [json_name = "orderId"]; + * @return The orderId. + */ + java.lang.String getOrderId(); + /** + *
+     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+     * 
+ * + * string order_id = 1 [json_name = "orderId"]; + * @return The bytes for orderId. + */ + com.google.protobuf.ByteString + getOrderIdBytes(); + + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return Whether the liquidityOrder field is set. + */ + boolean hasLiquidityOrder(); + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return The liquidityOrder. + */ + io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder(); + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + */ + io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder(); + } + /** + *
+   * A pair of a liquidity order and the id of the generated order by the core
+   * 
+ * + * Protobuf type {@code vega.LiquidityOrderReference} + */ + public static final class LiquidityOrderReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.LiquidityOrderReference) + LiquidityOrderReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiquidityOrderReference.newBuilder() to construct. + private LiquidityOrderReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiquidityOrderReference() { + orderId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LiquidityOrderReference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiquidityOrderReference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + orderId_ = s; + break; + } + case 18: { + io.vegaprotocol.vega.Vega.LiquidityOrder.Builder subBuilder = null; + if (liquidityOrder_ != null) { + subBuilder = liquidityOrder_.toBuilder(); + } + liquidityOrder_ = input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrder.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(liquidityOrder_); + liquidityOrder_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.class, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder.class); + } + + public static final int ORDER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object orderId_; + /** + *
+     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+     * 
+ * + * string order_id = 1 [json_name = "orderId"]; + * @return The orderId. + */ + @java.lang.Override + public java.lang.String getOrderId() { + java.lang.Object ref = orderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderId_ = s; + return s; + } + } + /** + *
+     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+     * 
+ * + * string order_id = 1 [json_name = "orderId"]; + * @return The bytes for orderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderIdBytes() { + java.lang.Object ref = orderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIQUIDITY_ORDER_FIELD_NUMBER = 2; + private io.vegaprotocol.vega.Vega.LiquidityOrder liquidityOrder_; + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return Whether the liquidityOrder field is set. + */ + @java.lang.Override + public boolean hasLiquidityOrder() { + return liquidityOrder_ != null; + } + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return The liquidityOrder. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder() { + return liquidityOrder_ == null ? io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; + } + /** + *
+     * The liquidity order from the original submission
+     * 
+ * + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder() { + return getLiquidityOrder(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getOrderIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); } - - private long indicativePrice_ ; - /** - *
-       * Indicative price (zero if not in auction)
-       * 
- * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; - * @return The indicativePrice. - */ - @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; + if (liquidityOrder_ != null) { + output.writeMessage(2, getLiquidityOrder()); } - /** - *
-       * Indicative price (zero if not in auction)
-       * 
- * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; - * @param value The indicativePrice to set. - * @return This builder for chaining. - */ - public Builder setIndicativePrice(long value) { + unknownFields.writeTo(output); + } - indicativePrice_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicative price (zero if not in auction)
-       * 
- * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; - * @return This builder for chaining. - */ - public Builder clearIndicativePrice() { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - indicativePrice_ = 0L; - onChanged(); - return this; + size = 0; + if (!getOrderIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); } - - private long indicativeVolume_ ; - /** - *
-       * Indicative volume (zero if not in auction)
-       * 
- * - * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; - * @return The indicativeVolume. - */ - @java.lang.Override - public long getIndicativeVolume() { - return indicativeVolume_; + if (liquidityOrder_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLiquidityOrder()); } - /** - *
-       * Indicative volume (zero if not in auction)
-       * 
- * - * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; - * @param value The indicativeVolume to set. - * @return This builder for chaining. - */ - public Builder setIndicativeVolume(long value) { + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - indicativeVolume_ = value; - onChanged(); - return this; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * Indicative volume (zero if not in auction)
-       * 
- * - * uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; - * @return This builder for chaining. - */ - public Builder clearIndicativeVolume() { - - indicativeVolume_ = 0L; - onChanged(); - return this; + if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityOrderReference)) { + return super.equals(obj); } + io.vegaprotocol.vega.Vega.LiquidityOrderReference other = (io.vegaprotocol.vega.Vega.LiquidityOrderReference) obj; - private int marketTradingMode_ = 0; - /** - *
-       * The current trading mode for the market
-       * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The enum numeric value on the wire for marketTradingMode. - */ - @java.lang.Override public int getMarketTradingModeValue() { - return marketTradingMode_; + if (!getOrderId() + .equals(other.getOrderId())) return false; + if (hasLiquidityOrder() != other.hasLiquidityOrder()) return false; + if (hasLiquidityOrder()) { + if (!getLiquidityOrder() + .equals(other.getLiquidityOrder())) return false; } - /** - *
-       * The current trading mode for the market
-       * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @param value The enum numeric value on the wire for marketTradingMode to set. - * @return This builder for chaining. - */ - public Builder setMarketTradingModeValue(int value) { + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } - marketTradingMode_ = value; - onChanged(); - return this; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - *
-       * The current trading mode for the market
-       * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return The marketTradingMode. - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.Market.TradingMode getMarketTradingMode() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Markets.Market.TradingMode result = io.vegaprotocol.vega.Markets.Market.TradingMode.valueOf(marketTradingMode_); - return result == null ? io.vegaprotocol.vega.Markets.Market.TradingMode.UNRECOGNIZED : result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrderId().hashCode(); + if (hasLiquidityOrder()) { + hash = (37 * hash) + LIQUIDITY_ORDER_FIELD_NUMBER; + hash = (53 * hash) + getLiquidityOrder().hashCode(); } - /** - *
-       * The current trading mode for the market
-       * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @param value The marketTradingMode to set. - * @return This builder for chaining. - */ - public Builder setMarketTradingMode(io.vegaprotocol.vega.Markets.Market.TradingMode value) { - if (value == null) { - throw new NullPointerException(); - } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - marketTradingMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The current trading mode for the market
-       * 
- * - * .vega.Market.TradingMode market_trading_mode = 19 [json_name = "marketTradingMode"]; - * @return This builder for chaining. - */ - public Builder clearMarketTradingMode() { + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - marketTradingMode_ = 0; - onChanged(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityOrderReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private int trigger_ = 0; - /** - *
-       * When a market is in an auction trading mode, this field indicates what triggered the auction
-       * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The enum numeric value on the wire for trigger. - */ - @java.lang.Override public int getTriggerValue() { - return trigger_; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A pair of a liquidity order and the id of the generated order by the core
+     * 
+ * + * Protobuf type {@code vega.LiquidityOrderReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.LiquidityOrderReference) + io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; } - /** - *
-       * When a market is in an auction trading mode, this field indicates what triggered the auction
-       * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @param value The enum numeric value on the wire for trigger to set. - * @return This builder for chaining. - */ - public Builder setTriggerValue(int value) { - trigger_ = value; - onChanged(); - return this; - } - /** - *
-       * When a market is in an auction trading mode, this field indicates what triggered the auction
-       * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return The trigger. - */ @java.lang.Override - public io.vegaprotocol.vega.Vega.AuctionTrigger getTrigger() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(trigger_); - return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.class, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder.class); } - /** - *
-       * When a market is in an auction trading mode, this field indicates what triggered the auction
-       * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @param value The trigger to set. - * @return This builder for chaining. - */ - public Builder setTrigger(io.vegaprotocol.vega.Vega.AuctionTrigger value) { - if (value == null) { - throw new NullPointerException(); - } - trigger_ = value.getNumber(); - onChanged(); - return this; + // Construct using io.vegaprotocol.vega.Vega.LiquidityOrderReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * When a market is in an auction trading mode, this field indicates what triggered the auction
-       * 
- * - * .vega.AuctionTrigger trigger = 20 [json_name = "trigger"]; - * @return This builder for chaining. - */ - public Builder clearTrigger() { - trigger_ = 0; - onChanged(); - return this; + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - - private int extensionTrigger_ = 0; - /** - *
-       * When a market auction is extended, this field indicates what caused the extension
-       * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The enum numeric value on the wire for extensionTrigger. - */ - @java.lang.Override public int getExtensionTriggerValue() { - return extensionTrigger_; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - /** - *
-       * When a market auction is extended, this field indicates what caused the extension
-       * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @param value The enum numeric value on the wire for extensionTrigger to set. - * @return This builder for chaining. - */ - public Builder setExtensionTriggerValue(int value) { + @java.lang.Override + public Builder clear() { + super.clear(); + orderId_ = ""; - extensionTrigger_ = value; - onChanged(); + if (liquidityOrderBuilder_ == null) { + liquidityOrder_ = null; + } else { + liquidityOrder_ = null; + liquidityOrderBuilder_ = null; + } return this; } - /** - *
-       * When a market auction is extended, this field indicates what caused the extension
-       * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return The extensionTrigger. - */ + @java.lang.Override - public io.vegaprotocol.vega.Vega.AuctionTrigger getExtensionTrigger() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AuctionTrigger result = io.vegaprotocol.vega.Vega.AuctionTrigger.valueOf(extensionTrigger_); - return result == null ? io.vegaprotocol.vega.Vega.AuctionTrigger.UNRECOGNIZED : result; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; } - /** - *
-       * When a market auction is extended, this field indicates what caused the extension
-       * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @param value The extensionTrigger to set. - * @return This builder for chaining. - */ - public Builder setExtensionTrigger(io.vegaprotocol.vega.Vega.AuctionTrigger value) { - if (value == null) { - throw new NullPointerException(); - } - extensionTrigger_ = value.getNumber(); - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance(); } - /** - *
-       * When a market auction is extended, this field indicates what caused the extension
-       * 
- * - * .vega.AuctionTrigger extension_trigger = 21 [json_name = "extensionTrigger"]; - * @return This builder for chaining. - */ - public Builder clearExtensionTrigger() { - extensionTrigger_ = 0; - onChanged(); - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference build() { + io.vegaprotocol.vega.Vega.LiquidityOrderReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - private java.lang.Object targetStake_ = ""; - /** - *
-       * Targeted stake for the given market
-       * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return The targetStake. - */ - public java.lang.String getTargetStake() { - java.lang.Object ref = targetStake_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetStake_ = s; - return s; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference buildPartial() { + io.vegaprotocol.vega.Vega.LiquidityOrderReference result = new io.vegaprotocol.vega.Vega.LiquidityOrderReference(this); + result.orderId_ = orderId_; + if (liquidityOrderBuilder_ == null) { + result.liquidityOrder_ = liquidityOrder_; } else { - return (java.lang.String) ref; + result.liquidityOrder_ = liquidityOrderBuilder_.build(); } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-       * Targeted stake for the given market
-       * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return The bytes for targetStake. - */ - public com.google.protobuf.ByteString - getTargetStakeBytes() { - java.lang.Object ref = targetStake_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetStake_ = b; - return b; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.LiquidityOrderReference) { + return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityOrderReference)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - *
-       * Targeted stake for the given market
-       * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @param value The targetStake to set. - * @return This builder for chaining. - */ - public Builder setTargetStake( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetStake_ = value; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityOrderReference other) { + if (other == io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()) return this; + if (!other.getOrderId().isEmpty()) { + orderId_ = other.orderId_; + onChanged(); + } + if (other.hasLiquidityOrder()) { + mergeLiquidityOrder(other.getLiquidityOrder()); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - *
-       * Targeted stake for the given market
-       * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @return This builder for chaining. - */ - public Builder clearTargetStake() { - targetStake_ = getDefaultInstance().getTargetStake(); - onChanged(); - return this; + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - *
-       * Targeted stake for the given market
-       * 
- * - * string target_stake = 22 [json_name = "targetStake"]; - * @param value The bytes for targetStake to set. - * @return This builder for chaining. - */ - public Builder setTargetStakeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetStake_ = value; - onChanged(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.LiquidityOrderReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityOrderReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } - private java.lang.Object suppliedStake_ = ""; + private java.lang.Object orderId_ = ""; /** *
-       * Available stake for the given market
+       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
        * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The suppliedStake. + * string order_id = 1 [json_name = "orderId"]; + * @return The orderId. */ - public java.lang.String getSuppliedStake() { - java.lang.Object ref = suppliedStake_; + public java.lang.String getOrderId() { + java.lang.Object ref = orderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - suppliedStake_ = s; + orderId_ = s; return s; } else { return (java.lang.String) ref; @@ -49076,20 +51260,20 @@ public java.lang.String getSuppliedStake() { } /** *
-       * Available stake for the given market
+       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
        * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @return The bytes for suppliedStake. + * string order_id = 1 [json_name = "orderId"]; + * @return The bytes for orderId. */ public com.google.protobuf.ByteString - getSuppliedStakeBytes() { - java.lang.Object ref = suppliedStake_; + getOrderIdBytes() { + java.lang.Object ref = orderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - suppliedStake_ = b; + orderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -49097,1128 +51281,1381 @@ public java.lang.String getSuppliedStake() { } /** *
-       * Available stake for the given market
+       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
        * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @param value The suppliedStake to set. + * string order_id = 1 [json_name = "orderId"]; + * @param value The orderId to set. * @return This builder for chaining. */ - public Builder setSuppliedStake( + public Builder setOrderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - suppliedStake_ = value; + orderId_ = value; onChanged(); return this; } /** *
-       * Available stake for the given market
+       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
        * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; + * string order_id = 1 [json_name = "orderId"]; * @return This builder for chaining. */ - public Builder clearSuppliedStake() { + public Builder clearOrderId() { - suppliedStake_ = getDefaultInstance().getSuppliedStake(); + orderId_ = getDefaultInstance().getOrderId(); onChanged(); return this; } /** *
-       * Available stake for the given market
+       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
        * 
* - * string supplied_stake = 23 [json_name = "suppliedStake"]; - * @param value The bytes for suppliedStake to set. + * string order_id = 1 [json_name = "orderId"]; + * @param value The bytes for orderId to set. * @return This builder for chaining. */ - public Builder setSuppliedStakeBytes( + public Builder setOrderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - suppliedStake_ = value; + orderId_ = value; onChanged(); return this; } - private java.util.List priceMonitoringBounds_ = - java.util.Collections.emptyList(); - private void ensurePriceMonitoringBoundsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - priceMonitoringBounds_ = new java.util.ArrayList(priceMonitoringBounds_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder> priceMonitoringBoundsBuilder_; - - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public java.util.List getPriceMonitoringBoundsList() { - if (priceMonitoringBoundsBuilder_ == null) { - return java.util.Collections.unmodifiableList(priceMonitoringBounds_); - } else { - return priceMonitoringBoundsBuilder_.getMessageList(); - } - } + private io.vegaprotocol.vega.Vega.LiquidityOrder liquidityOrder_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder> liquidityOrderBuilder_; /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return Whether the liquidityOrder field is set. */ - public int getPriceMonitoringBoundsCount() { - if (priceMonitoringBoundsBuilder_ == null) { - return priceMonitoringBounds_.size(); - } else { - return priceMonitoringBoundsBuilder_.getCount(); - } + public boolean hasLiquidityOrder() { + return liquidityOrderBuilder_ != null || liquidityOrder_ != null; } /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * @return The liquidityOrder. */ - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getPriceMonitoringBounds(int index) { - if (priceMonitoringBoundsBuilder_ == null) { - return priceMonitoringBounds_.get(index); + public io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder() { + if (liquidityOrderBuilder_ == null) { + return liquidityOrder_ == null ? io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; } else { - return priceMonitoringBoundsBuilder_.getMessage(index); + return liquidityOrderBuilder_.getMessage(); } } /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder setPriceMonitoringBounds( - int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { - if (priceMonitoringBoundsBuilder_ == null) { + public Builder setLiquidityOrder(io.vegaprotocol.vega.Vega.LiquidityOrder value) { + if (liquidityOrderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.set(index, value); - onChanged(); - } else { - priceMonitoringBoundsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public Builder setPriceMonitoringBounds( - int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { - if (priceMonitoringBoundsBuilder_ == null) { - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.set(index, builderForValue.build()); + liquidityOrder_ = value; onChanged(); } else { - priceMonitoringBoundsBuilder_.setMessage(index, builderForValue.build()); + liquidityOrderBuilder_.setMessage(value); } + return this; } /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder addPriceMonitoringBounds(io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { - if (priceMonitoringBoundsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.add(value); + public Builder setLiquidityOrder( + io.vegaprotocol.vega.Vega.LiquidityOrder.Builder builderForValue) { + if (liquidityOrderBuilder_ == null) { + liquidityOrder_ = builderForValue.build(); onChanged(); } else { - priceMonitoringBoundsBuilder_.addMessage(value); + liquidityOrderBuilder_.setMessage(builderForValue.build()); } + return this; } /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder addPriceMonitoringBounds( - int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds value) { - if (priceMonitoringBoundsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeLiquidityOrder(io.vegaprotocol.vega.Vega.LiquidityOrder value) { + if (liquidityOrderBuilder_ == null) { + if (liquidityOrder_ != null) { + liquidityOrder_ = + io.vegaprotocol.vega.Vega.LiquidityOrder.newBuilder(liquidityOrder_).mergeFrom(value).buildPartial(); + } else { + liquidityOrder_ = value; } - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.add(index, value); - onChanged(); - } else { - priceMonitoringBoundsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public Builder addPriceMonitoringBounds( - io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { - if (priceMonitoringBoundsBuilder_ == null) { - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.add(builderForValue.build()); - onChanged(); - } else { - priceMonitoringBoundsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public Builder addPriceMonitoringBounds( - int index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder builderForValue) { - if (priceMonitoringBoundsBuilder_ == null) { - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.add(index, builderForValue.build()); - onChanged(); - } else { - priceMonitoringBoundsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public Builder addAllPriceMonitoringBounds( - java.lang.Iterable values) { - if (priceMonitoringBoundsBuilder_ == null) { - ensurePriceMonitoringBoundsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, priceMonitoringBounds_); - onChanged(); - } else { - priceMonitoringBoundsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public Builder clearPriceMonitoringBounds() { - if (priceMonitoringBoundsBuilder_ == null) { - priceMonitoringBounds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - priceMonitoringBoundsBuilder_.clear(); + liquidityOrderBuilder_.mergeFrom(value); } + return this; } /** *
-       * One or more price monitoring bounds for the current timestamp
+       * The liquidity order from the original submission
        * 
* - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder removePriceMonitoringBounds(int index) { - if (priceMonitoringBoundsBuilder_ == null) { - ensurePriceMonitoringBoundsIsMutable(); - priceMonitoringBounds_.remove(index); + public Builder clearLiquidityOrder() { + if (liquidityOrderBuilder_ == null) { + liquidityOrder_ = null; onChanged(); } else { - priceMonitoringBoundsBuilder_.remove(index); - } - return this; - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder getPriceMonitoringBoundsBuilder( - int index) { - return getPriceMonitoringBoundsFieldBuilder().getBuilder(index); - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder getPriceMonitoringBoundsOrBuilder( - int index) { - if (priceMonitoringBoundsBuilder_ == null) { - return priceMonitoringBounds_.get(index); } else { - return priceMonitoringBoundsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public java.util.List - getPriceMonitoringBoundsOrBuilderList() { - if (priceMonitoringBoundsBuilder_ != null) { - return priceMonitoringBoundsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(priceMonitoringBounds_); - } - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder addPriceMonitoringBoundsBuilder() { - return getPriceMonitoringBoundsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()); - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder addPriceMonitoringBoundsBuilder( - int index) { - return getPriceMonitoringBoundsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()); - } - /** - *
-       * One or more price monitoring bounds for the current timestamp
-       * 
- * - * repeated .vega.PriceMonitoringBounds price_monitoring_bounds = 24 [json_name = "priceMonitoringBounds"]; - */ - public java.util.List - getPriceMonitoringBoundsBuilderList() { - return getPriceMonitoringBoundsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder> - getPriceMonitoringBoundsFieldBuilder() { - if (priceMonitoringBoundsBuilder_ == null) { - priceMonitoringBoundsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceMonitoringBounds, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder, io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder>( - priceMonitoringBounds_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - priceMonitoringBounds_ = null; + liquidityOrder_ = null; + liquidityOrderBuilder_ = null; } - return priceMonitoringBoundsBuilder_; - } - private java.lang.Object marketValueProxy_ = ""; - /** - *
-       * the market value proxy
-       * 
- * - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The marketValueProxy. - */ - public java.lang.String getMarketValueProxy() { - java.lang.Object ref = marketValueProxy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketValueProxy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the market value proxy
-       * 
- * - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return The bytes for marketValueProxy. - */ - public com.google.protobuf.ByteString - getMarketValueProxyBytes() { - java.lang.Object ref = marketValueProxy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketValueProxy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return this; } /** *
-       * the market value proxy
+       * The liquidity order from the original submission
        * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @param value The marketValueProxy to set. - * @return This builder for chaining. + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder setMarketValueProxy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public io.vegaprotocol.vega.Vega.LiquidityOrder.Builder getLiquidityOrderBuilder() { - marketValueProxy_ = value; onChanged(); - return this; + return getLiquidityOrderFieldBuilder().getBuilder(); } /** *
-       * the market value proxy
+       * The liquidity order from the original submission
        * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @return This builder for chaining. + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder clearMarketValueProxy() { - - marketValueProxy_ = getDefaultInstance().getMarketValueProxy(); - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder() { + if (liquidityOrderBuilder_ != null) { + return liquidityOrderBuilder_.getMessageOrBuilder(); + } else { + return liquidityOrder_ == null ? + io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; + } } /** *
-       * the market value proxy
+       * The liquidity order from the original submission
        * 
* - * string market_value_proxy = 25 [json_name = "marketValueProxy"]; - * @param value The bytes for marketValueProxy to set. - * @return This builder for chaining. + * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; */ - public Builder setMarketValueProxyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder> + getLiquidityOrderFieldBuilder() { + if (liquidityOrderBuilder_ == null) { + liquidityOrderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder>( + getLiquidityOrder(), + getParentForChildren(), + isClean()); + liquidityOrder_ = null; + } + return liquidityOrderBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.LiquidityOrderReference) + } + + // @@protoc_insertion_point(class_scope:vega.LiquidityOrderReference) + private static final io.vegaprotocol.vega.Vega.LiquidityOrderReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityOrderReference(); + } + + public static io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiquidityOrderReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiquidityOrderReference(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - checkByteStringIsUtf8(value); - marketValueProxy_ = value; - onChanged(); - return this; + public interface LiquidityProvisionOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.LiquidityProvision) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * Unique identifier
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Unique party identifier for the creator of the provision
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + java.lang.String getPartyId(); + /** + *
+     * Unique party identifier for the creator of the provision
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + com.google.protobuf.ByteString + getPartyIdBytes(); + + /** + *
+     * Timestamp for when the order was created at, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + long getCreatedAt(); + + /** + *
+     * Timestamp for when the order was updated at, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 updated_at = 4 [json_name = "updatedAt"]; + * @return The updatedAt. + */ + long getUpdatedAt(); + + /** + *
+     * Market identifier for the order, required field
+     * 
+ * + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The marketId. + */ + java.lang.String getMarketId(); + /** + *
+     * Market identifier for the order, required field
+     * 
+ * + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The bytes for marketId. + */ + com.google.protobuf.ByteString + getMarketIdBytes(); + + /** + *
+     * Specified as a unitless number that represents the amount of settlement asset of the market
+     * 
+ * + * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The commitmentAmount. + */ + long getCommitmentAmount(); + + /** + *
+     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+     * 
+ * + * string fee = 7 [json_name = "fee"]; + * @return The fee. + */ + java.lang.String getFee(); + /** + *
+     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+     * 
+ * + * string fee = 7 [json_name = "fee"]; + * @return The bytes for fee. + */ + com.google.protobuf.ByteString + getFeeBytes(); + + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + java.util.List + getSellsList(); + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index); + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + int getSellsCount(); + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + java.util.List + getSellsOrBuilderList(); + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( + int index); + + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + java.util.List + getBuysList(); + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index); + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + int getBuysCount(); + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + java.util.List + getBuysOrBuilderList(); + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( + int index); + + /** + *
+     * Version of this liquidity provision order
+     * 
+ * + * string version = 10 [json_name = "version"]; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+     * Version of this liquidity provision order
+     * 
+ * + * string version = 10 [json_name = "version"]; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * Status of this liquidity provision order
+     * 
+ * + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * Status of this liquidity provision order
+     * 
+ * + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The status. + */ + io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus(); + + /** + *
+     * A reference shared between this liquidity provision and all it's orders
+     * 
+ * + * string reference = 12 [json_name = "reference"]; + * @return The reference. + */ + java.lang.String getReference(); + /** + *
+     * A reference shared between this liquidity provision and all it's orders
+     * 
+ * + * string reference = 12 [json_name = "reference"]; + * @return The bytes for reference. + */ + com.google.protobuf.ByteString + getReferenceBytes(); + } + /** + *
+   * An Liquidity provider commitment
+   * 
+ * + * Protobuf type {@code vega.LiquidityProvision} + */ + public static final class LiquidityProvision extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.LiquidityProvision) + LiquidityProvisionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiquidityProvision.newBuilder() to construct. + private LiquidityProvision(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiquidityProvision() { + id_ = ""; + partyId_ = ""; + marketId_ = ""; + fee_ = ""; + sells_ = java.util.Collections.emptyList(); + buys_ = java.util.Collections.emptyList(); + version_ = ""; + status_ = 0; + reference_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LiquidityProvision(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiquidityProvision( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - private java.util.List liquidityProviderFeeShare_ = - java.util.Collections.emptyList(); - private void ensureLiquidityProviderFeeShareIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - liquidityProviderFeeShare_ = new java.util.ArrayList(liquidityProviderFeeShare_); - bitField0_ |= 0x00000002; - } + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + partyId_ = s; + break; + } + case 24: { + + createdAt_ = input.readInt64(); + break; + } + case 32: { + + updatedAt_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + marketId_ = s; + break; + } + case 48: { + + commitmentAmount_ = input.readUInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + fee_ = s; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sells_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sells_.add( + input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrderReference.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + buys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + buys_.add( + input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrderReference.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 88: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + reference_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sells_ = java.util.Collections.unmodifiableList(sells_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + buys_ = java.util.Collections.unmodifiableList(buys_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder> liquidityProviderFeeShareBuilder_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.LiquidityProvision.class, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder.class); + } + /** + *
+     * Status of a liquidity provision order
+     * 
+ * + * Protobuf enum {@code vega.LiquidityProvision.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { /** *
-       * the equity like share of liquidity fee for each liquidity provider
-       * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - public java.util.List getLiquidityProviderFeeShareList() { - if (liquidityProviderFeeShareBuilder_ == null) { - return java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); - } else { - return liquidityProviderFeeShareBuilder_.getMessageList(); - } - } - /** - *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The default value
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_UNSPECIFIED = 0; */ - public int getLiquidityProviderFeeShareCount() { - if (liquidityProviderFeeShareBuilder_ == null) { - return liquidityProviderFeeShare_.size(); - } else { - return liquidityProviderFeeShareBuilder_.getCount(); - } - } + STATUS_UNSPECIFIED(0), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is active
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_ACTIVE = 1; */ - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getLiquidityProviderFeeShare(int index) { - if (liquidityProviderFeeShareBuilder_ == null) { - return liquidityProviderFeeShare_.get(index); - } else { - return liquidityProviderFeeShareBuilder_.getMessage(index); - } - } + STATUS_ACTIVE(1), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was stopped by the network
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_STOPPED = 2; */ - public Builder setLiquidityProviderFeeShare( - int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { - if (liquidityProviderFeeShareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.set(index, value); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.setMessage(index, value); - } - return this; - } + STATUS_STOPPED(2), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was cancelled by the liquidity provider
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_CANCELLED = 3; */ - public Builder setLiquidityProviderFeeShare( - int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { - if (liquidityProviderFeeShareBuilder_ == null) { - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.set(index, builderForValue.build()); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + STATUS_CANCELLED(3), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was invalid and got rejected
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_REJECTED = 4; */ - public Builder addLiquidityProviderFeeShare(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { - if (liquidityProviderFeeShareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.add(value); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.addMessage(value); - } - return this; - } + STATUS_REJECTED(4), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is valid and accepted by network, but orders aren't deployed
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_UNDEPLOYED = 5; */ - public Builder addLiquidityProviderFeeShare( - int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare value) { - if (liquidityProviderFeeShareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.add(index, value); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.addMessage(index, value); - } - return this; - } + STATUS_UNDEPLOYED(5), /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is valid and accepted by network
+       * but have never been deployed. I when it's possible to deploy them for the first time
+       * margin check fails, then they will be cancelled without any penalties.
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_PENDING = 6; */ - public Builder addLiquidityProviderFeeShare( - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { - if (liquidityProviderFeeShareBuilder_ == null) { - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.add(builderForValue.build()); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.addMessage(builderForValue.build()); - } - return this; - } + STATUS_PENDING(6), + UNRECOGNIZED(-1), + ; + /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The default value
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_UNSPECIFIED = 0; */ - public Builder addLiquidityProviderFeeShare( - int index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder builderForValue) { - if (liquidityProviderFeeShareBuilder_ == null) { - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.add(index, builderForValue.build()); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is active
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_ACTIVE = 1; */ - public Builder addAllLiquidityProviderFeeShare( - java.lang.Iterable values) { - if (liquidityProviderFeeShareBuilder_ == null) { - ensureLiquidityProviderFeeShareIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, liquidityProviderFeeShare_); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.addAllMessages(values); - } - return this; - } + public static final int STATUS_ACTIVE_VALUE = 1; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was stopped by the network
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_STOPPED = 2; */ - public Builder clearLiquidityProviderFeeShare() { - if (liquidityProviderFeeShareBuilder_ == null) { - liquidityProviderFeeShare_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.clear(); - } - return this; - } + public static final int STATUS_STOPPED_VALUE = 2; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was cancelled by the liquidity provider
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_CANCELLED = 3; */ - public Builder removeLiquidityProviderFeeShare(int index) { - if (liquidityProviderFeeShareBuilder_ == null) { - ensureLiquidityProviderFeeShareIsMutable(); - liquidityProviderFeeShare_.remove(index); - onChanged(); - } else { - liquidityProviderFeeShareBuilder_.remove(index); - } - return this; - } + public static final int STATUS_CANCELLED_VALUE = 3; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision was invalid and got rejected
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_REJECTED = 4; */ - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder getLiquidityProviderFeeShareBuilder( - int index) { - return getLiquidityProviderFeeShareFieldBuilder().getBuilder(index); - } + public static final int STATUS_REJECTED_VALUE = 4; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is valid and accepted by network, but orders aren't deployed
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_UNDEPLOYED = 5; */ - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder getLiquidityProviderFeeShareOrBuilder( - int index) { - if (liquidityProviderFeeShareBuilder_ == null) { - return liquidityProviderFeeShare_.get(index); } else { - return liquidityProviderFeeShareBuilder_.getMessageOrBuilder(index); - } - } + public static final int STATUS_UNDEPLOYED_VALUE = 5; /** *
-       * the equity like share of liquidity fee for each liquidity provider
+       * The liquidity provision is valid and accepted by network
+       * but have never been deployed. I when it's possible to deploy them for the first time
+       * margin check fails, then they will be cancelled without any penalties.
        * 
* - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * STATUS_PENDING = 6; */ - public java.util.List - getLiquidityProviderFeeShareOrBuilderList() { - if (liquidityProviderFeeShareBuilder_ != null) { - return liquidityProviderFeeShareBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(liquidityProviderFeeShare_); + public static final int STATUS_PENDING_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; } + /** - *
-       * the equity like share of liquidity fee for each liquidity provider
-       * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. */ - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder addLiquidityProviderFeeShareBuilder() { - return getLiquidityProviderFeeShareFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()); + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); } + /** - *
-       * the equity like share of liquidity fee for each liquidity provider
-       * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. */ - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder addLiquidityProviderFeeShareBuilder( - int index) { - return getLiquidityProviderFeeShareFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()); + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return STATUS_ACTIVE; + case 2: return STATUS_STOPPED; + case 3: return STATUS_CANCELLED; + case 4: return STATUS_REJECTED; + case 5: return STATUS_UNDEPLOYED; + case 6: return STATUS_PENDING; + default: return null; + } } - /** - *
-       * the equity like share of liquidity fee for each liquidity provider
-       * 
- * - * repeated .vega.LiquidityProviderFeeShare liquidity_provider_fee_share = 26 [json_name = "liquidityProviderFeeShare"]; - */ - public java.util.List - getLiquidityProviderFeeShareBuilderList() { - return getLiquidityProviderFeeShareFieldBuilder().getBuilderList(); + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder> - getLiquidityProviderFeeShareFieldBuilder() { - if (liquidityProviderFeeShareBuilder_ == null) { - liquidityProviderFeeShareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder>( - liquidityProviderFeeShare_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - liquidityProviderFeeShare_ = null; + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); } - return liquidityProviderFeeShareBuilder_; + return getDescriptor().getValues().get(ordinal()); } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.LiquidityProvision.getDescriptor().getEnumTypes().get(0); } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } + private final int value; - // @@protoc_insertion_point(builder_scope:vega.MarketData) + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:vega.LiquidityProvision.Status) } - // @@protoc_insertion_point(class_scope:vega.MarketData) - private static final io.vegaprotocol.vega.Vega.MarketData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.MarketData(); + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Unique identifier
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * Unique identifier
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static io.vegaprotocol.vega.Vega.MarketData getDefaultInstance() { - return DEFAULT_INSTANCE; + public static final int PARTY_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object partyId_; + /** + *
+     * Unique party identifier for the creator of the provision
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + @java.lang.Override + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; + } + } + /** + *
+     * Unique party identifier for the creator of the provision
+     * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 3; + private long createdAt_; + /** + *
+     * Timestamp for when the order was created at, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public long getCreatedAt() { + return createdAt_; + } + + public static final int UPDATED_AT_FIELD_NUMBER = 4; + private long updatedAt_; + /** + *
+     * Timestamp for when the order was updated at, in nanoseconds since the epoch
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * 
+ * + * int64 updated_at = 4 [json_name = "updatedAt"]; + * @return The updatedAt. + */ + @java.lang.Override + public long getUpdatedAt() { + return updatedAt_; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketData(input, extensionRegistry); + public static final int MARKET_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object marketId_; + /** + *
+     * Market identifier for the order, required field
+     * 
+ * + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The marketId. + */ + @java.lang.Override + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - + /** + *
+     * Market identifier for the order, required field
+     * 
+ * + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The bytes for marketId. + */ @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int COMMITMENT_AMOUNT_FIELD_NUMBER = 6; + private long commitmentAmount_; + /** + *
+     * Specified as a unitless number that represents the amount of settlement asset of the market
+     * 
+ * + * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The commitmentAmount. + */ @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public long getCommitmentAmount() { + return commitmentAmount_; } - } - - public interface LiquidityProviderFeeShareOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.LiquidityProviderFeeShare) - com.google.protobuf.MessageOrBuilder { - + public static final int FEE_FIELD_NUMBER = 7; + private volatile java.lang.Object fee_; /** *
-     * The liquidity provider party id
+     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
      * 
* - * string party = 1 [json_name = "party"]; - * @return The party. + * string fee = 7 [json_name = "fee"]; + * @return The fee. */ - java.lang.String getParty(); + @java.lang.Override + public java.lang.String getFee() { + java.lang.Object ref = fee_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fee_ = s; + return s; + } + } /** *
-     * The liquidity provider party id
+     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
      * 
* - * string party = 1 [json_name = "party"]; - * @return The bytes for party. + * string fee = 7 [json_name = "fee"]; + * @return The bytes for fee. */ - com.google.protobuf.ByteString - getPartyBytes(); + @java.lang.Override + public com.google.protobuf.ByteString + getFeeBytes() { + java.lang.Object ref = fee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SELLS_FIELD_NUMBER = 8; + private java.util.List sells_; /** *
-     * The share own by this liquidity provider (float)
+     * A set of liquidity sell orders to meet the liquidity provision obligation
      * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The equityLikeShare. + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; */ - java.lang.String getEquityLikeShare(); + @java.lang.Override + public java.util.List getSellsList() { + return sells_; + } /** *
-     * The share own by this liquidity provider (float)
+     * A set of liquidity sell orders to meet the liquidity provision obligation
      * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The bytes for equityLikeShare. + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; */ - com.google.protobuf.ByteString - getEquityLikeShareBytes(); - + @java.lang.Override + public java.util.List + getSellsOrBuilderList() { + return sells_; + } /** *
-     * The average entry valuation of the liquidity provider for the market
+     * A set of liquidity sell orders to meet the liquidity provision obligation
      * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The averageEntryValuation. + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; */ - java.lang.String getAverageEntryValuation(); + @java.lang.Override + public int getSellsCount() { + return sells_.size(); + } /** *
-     * The average entry valuation of the liquidity provider for the market
+     * A set of liquidity sell orders to meet the liquidity provision obligation
      * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The bytes for averageEntryValuation. + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; */ - com.google.protobuf.ByteString - getAverageEntryValuationBytes(); - } - /** - *
-   * The equity like share of liquidity fee for each liquidity provider
-   * 
- * - * Protobuf type {@code vega.LiquidityProviderFeeShare} - */ - public static final class LiquidityProviderFeeShare extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.LiquidityProviderFeeShare) - LiquidityProviderFeeShareOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiquidityProviderFeeShare.newBuilder() to construct. - private LiquidityProviderFeeShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index) { + return sells_.get(index); } - private LiquidityProviderFeeShare() { - party_ = ""; - equityLikeShare_ = ""; - averageEntryValuation_ = ""; + /** + *
+     * A set of liquidity sell orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( + int index) { + return sells_.get(index); } + public static final int BUYS_FIELD_NUMBER = 9; + private java.util.List buys_; + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiquidityProviderFeeShare(); + public java.util.List getBuysList() { + return buys_; } - + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public java.util.List + getBuysOrBuilderList() { + return buys_; } - private LiquidityProviderFeeShare( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - party_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - equityLikeShare_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - averageEntryValuation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + @java.lang.Override + public int getBuysCount() { + return buys_.size(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index) { + return buys_.get(index); } - + /** + *
+     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.class, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder.class); + public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( + int index) { + return buys_.get(index); } - public static final int PARTY_FIELD_NUMBER = 1; - private volatile java.lang.Object party_; + public static final int VERSION_FIELD_NUMBER = 10; + private volatile java.lang.Object version_; /** *
-     * The liquidity provider party id
+     * Version of this liquidity provision order
      * 
* - * string party = 1 [json_name = "party"]; - * @return The party. + * string version = 10 [json_name = "version"]; + * @return The version. */ @java.lang.Override - public java.lang.String getParty() { - java.lang.Object ref = party_; + public java.lang.String getVersion() { + java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - party_ = s; + version_ = s; return s; } } /** *
-     * The liquidity provider party id
+     * Version of this liquidity provision order
      * 
* - * string party = 1 [json_name = "party"]; - * @return The bytes for party. + * string version = 10 [json_name = "version"]; + * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString - getPartyBytes() { - java.lang.Object ref = party_; + getVersionBytes() { + java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - party_ = b; + version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EQUITY_LIKE_SHARE_FIELD_NUMBER = 2; - private volatile java.lang.Object equityLikeShare_; + public static final int STATUS_FIELD_NUMBER = 11; + private int status_; /** *
-     * The share own by this liquidity provider (float)
+     * Status of this liquidity provision order
      * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The equityLikeShare. + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public java.lang.String getEquityLikeShare() { - java.lang.Object ref = equityLikeShare_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - equityLikeShare_ = s; - return s; - } + @java.lang.Override public int getStatusValue() { + return status_; } /** *
-     * The share own by this liquidity provider (float)
+     * Status of this liquidity provision order
      * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The bytes for equityLikeShare. + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The status. */ - @java.lang.Override - public com.google.protobuf.ByteString - getEquityLikeShareBytes() { - java.lang.Object ref = equityLikeShare_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - equityLikeShare_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override public io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.LiquidityProvision.Status result = io.vegaprotocol.vega.Vega.LiquidityProvision.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.LiquidityProvision.Status.UNRECOGNIZED : result; } - public static final int AVERAGE_ENTRY_VALUATION_FIELD_NUMBER = 3; - private volatile java.lang.Object averageEntryValuation_; + public static final int REFERENCE_FIELD_NUMBER = 12; + private volatile java.lang.Object reference_; /** *
-     * The average entry valuation of the liquidity provider for the market
+     * A reference shared between this liquidity provision and all it's orders
      * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The averageEntryValuation. + * string reference = 12 [json_name = "reference"]; + * @return The reference. */ @java.lang.Override - public java.lang.String getAverageEntryValuation() { - java.lang.Object ref = averageEntryValuation_; + public java.lang.String getReference() { + java.lang.Object ref = reference_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - averageEntryValuation_ = s; + reference_ = s; return s; } } /** *
-     * The average entry valuation of the liquidity provider for the market
+     * A reference shared between this liquidity provision and all it's orders
      * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The bytes for averageEntryValuation. + * string reference = 12 [json_name = "reference"]; + * @return The bytes for reference. */ @java.lang.Override public com.google.protobuf.ByteString - getAverageEntryValuationBytes() { - java.lang.Object ref = averageEntryValuation_; + getReferenceBytes() { + java.lang.Object ref = reference_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - averageEntryValuation_ = b; + reference_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -50239,14 +52676,41 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPartyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (!getEquityLikeShareBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, equityLikeShare_); + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); } - if (!getAverageEntryValuationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, averageEntryValuation_); + if (createdAt_ != 0L) { + output.writeInt64(3, createdAt_); + } + if (updatedAt_ != 0L) { + output.writeInt64(4, updatedAt_); + } + if (!getMarketIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_); + } + if (commitmentAmount_ != 0L) { + output.writeUInt64(6, commitmentAmount_); + } + if (!getFeeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fee_); + } + for (int i = 0; i < sells_.size(); i++) { + output.writeMessage(8, sells_.get(i)); + } + for (int i = 0; i < buys_.size(); i++) { + output.writeMessage(9, buys_.get(i)); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, version_); + } + if (status_ != io.vegaprotocol.vega.Vega.LiquidityProvision.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(11, status_); + } + if (!getReferenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, reference_); } unknownFields.writeTo(output); } @@ -50257,14 +52721,47 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPartyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (!getEquityLikeShareBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, equityLikeShare_); + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); } - if (!getAverageEntryValuationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, averageEntryValuation_); + if (createdAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, createdAt_); + } + if (updatedAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, updatedAt_); + } + if (!getMarketIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_); + } + if (commitmentAmount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, commitmentAmount_); + } + if (!getFeeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fee_); + } + for (int i = 0; i < sells_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, sells_.get(i)); + } + for (int i = 0; i < buys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, buys_.get(i)); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); + } + if (status_ != io.vegaprotocol.vega.Vega.LiquidityProvision.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, status_); + } + if (!getReferenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, reference_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -50276,17 +52773,34 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityProvision)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare other = (io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) obj; + io.vegaprotocol.vega.Vega.LiquidityProvision other = (io.vegaprotocol.vega.Vega.LiquidityProvision) obj; - if (!getParty() - .equals(other.getParty())) return false; - if (!getEquityLikeShare() - .equals(other.getEquityLikeShare())) return false; - if (!getAverageEntryValuation() - .equals(other.getAverageEntryValuation())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (getCreatedAt() + != other.getCreatedAt()) return false; + if (getUpdatedAt() + != other.getUpdatedAt()) return false; + if (!getMarketId() + .equals(other.getMarketId())) return false; + if (getCommitmentAmount() + != other.getCommitmentAmount()) return false; + if (!getFee() + .equals(other.getFee())) return false; + if (!getSellsList() + .equals(other.getSellsList())) return false; + if (!getBuysList() + .equals(other.getBuysList())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (status_ != other.status_) return false; + if (!getReference() + .equals(other.getReference())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -50298,80 +52812,105 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_FIELD_NUMBER; - hash = (53 * hash) + getParty().hashCode(); - hash = (37 * hash) + EQUITY_LIKE_SHARE_FIELD_NUMBER; - hash = (53 * hash) + getEquityLikeShare().hashCode(); - hash = (37 * hash) + AVERAGE_ENTRY_VALUATION_FIELD_NUMBER; - hash = (53 * hash) + getAverageEntryValuation().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUpdatedAt()); + hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getMarketId().hashCode(); + hash = (37 * hash) + COMMITMENT_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCommitmentAmount()); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + getFee().hashCode(); + if (getSellsCount() > 0) { + hash = (37 * hash) + SELLS_FIELD_NUMBER; + hash = (53 * hash) + getSellsList().hashCode(); + } + if (getBuysCount() > 0) { + hash = (37 * hash) + BUYS_FIELD_NUMBER; + hash = (53 * hash) + getBuysList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( + public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -50384,7 +52923,7 @@ public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityProvision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -50401,29 +52940,29 @@ protected Builder newBuilderForType( } /** *
-     * The equity like share of liquidity fee for each liquidity provider
+     * An Liquidity provider commitment
      * 
* - * Protobuf type {@code vega.LiquidityProviderFeeShare} + * Protobuf type {@code vega.LiquidityProvision} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.LiquidityProviderFeeShare) - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShareOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.LiquidityProvision) + io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.class, io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.Builder.class); + io.vegaprotocol.vega.Vega.LiquidityProvision.class, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.LiquidityProvision.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -50436,16 +52975,44 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getSellsFieldBuilder(); + getBuysFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - party_ = ""; + id_ = ""; - equityLikeShare_ = ""; + partyId_ = ""; - averageEntryValuation_ = ""; + createdAt_ = 0L; + + updatedAt_ = 0L; + + marketId_ = ""; + + commitmentAmount_ = 0L; + + fee_ = ""; + + if (sellsBuilder_ == null) { + sells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sellsBuilder_.clear(); + } + if (buysBuilder_ == null) { + buys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + buysBuilder_.clear(); + } + version_ = ""; + + status_ = 0; + + reference_ = ""; return this; } @@ -50453,17 +53020,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProviderFeeShare_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare build() { - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare result = buildPartial(); + public io.vegaprotocol.vega.Vega.LiquidityProvision build() { + io.vegaprotocol.vega.Vega.LiquidityProvision result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -50471,11 +53038,37 @@ public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare buildPartial() { - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare result = new io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare(this); - result.party_ = party_; - result.equityLikeShare_ = equityLikeShare_; - result.averageEntryValuation_ = averageEntryValuation_; + public io.vegaprotocol.vega.Vega.LiquidityProvision buildPartial() { + io.vegaprotocol.vega.Vega.LiquidityProvision result = new io.vegaprotocol.vega.Vega.LiquidityProvision(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.partyId_ = partyId_; + result.createdAt_ = createdAt_; + result.updatedAt_ = updatedAt_; + result.marketId_ = marketId_; + result.commitmentAmount_ = commitmentAmount_; + result.fee_ = fee_; + if (sellsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sells_ = java.util.Collections.unmodifiableList(sells_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sells_ = sells_; + } else { + result.sells_ = sellsBuilder_.build(); + } + if (buysBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + buys_ = java.util.Collections.unmodifiableList(buys_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.buys_ = buys_; + } else { + result.buys_ = buysBuilder_.build(); + } + result.version_ = version_; + result.status_ = status_; + result.reference_ = reference_; onBuilt(); return result; } @@ -50514,26 +53107,102 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) { - return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare)other); + if (other instanceof io.vegaprotocol.vega.Vega.LiquidityProvision) { + return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityProvision)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare other) { - if (other == io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare.getDefaultInstance()) return this; - if (!other.getParty().isEmpty()) { - party_ = other.party_; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityProvision other) { + if (other == io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; onChanged(); } - if (!other.getEquityLikeShare().isEmpty()) { - equityLikeShare_ = other.equityLikeShare_; + if (!other.getPartyId().isEmpty()) { + partyId_ = other.partyId_; onChanged(); } - if (!other.getAverageEntryValuation().isEmpty()) { - averageEntryValuation_ = other.averageEntryValuation_; + if (other.getCreatedAt() != 0L) { + setCreatedAt(other.getCreatedAt()); + } + if (other.getUpdatedAt() != 0L) { + setUpdatedAt(other.getUpdatedAt()); + } + if (!other.getMarketId().isEmpty()) { + marketId_ = other.marketId_; + onChanged(); + } + if (other.getCommitmentAmount() != 0L) { + setCommitmentAmount(other.getCommitmentAmount()); + } + if (!other.getFee().isEmpty()) { + fee_ = other.fee_; + onChanged(); + } + if (sellsBuilder_ == null) { + if (!other.sells_.isEmpty()) { + if (sells_.isEmpty()) { + sells_ = other.sells_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSellsIsMutable(); + sells_.addAll(other.sells_); + } + onChanged(); + } + } else { + if (!other.sells_.isEmpty()) { + if (sellsBuilder_.isEmpty()) { + sellsBuilder_.dispose(); + sellsBuilder_ = null; + sells_ = other.sells_; + bitField0_ = (bitField0_ & ~0x00000001); + sellsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSellsFieldBuilder() : null; + } else { + sellsBuilder_.addAllMessages(other.sells_); + } + } + } + if (buysBuilder_ == null) { + if (!other.buys_.isEmpty()) { + if (buys_.isEmpty()) { + buys_ = other.buys_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBuysIsMutable(); + buys_.addAll(other.buys_); + } + onChanged(); + } + } else { + if (!other.buys_.isEmpty()) { + if (buysBuilder_.isEmpty()) { + buysBuilder_.dispose(); + buysBuilder_ = null; + buys_ = other.buys_; + bitField0_ = (bitField0_ & ~0x00000002); + buysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBuysFieldBuilder() : null; + } else { + buysBuilder_.addAllMessages(other.buys_); + } + } + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getReference().isEmpty()) { + reference_ = other.reference_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -50551,11 +53220,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare parsedMessage = null; + io.vegaprotocol.vega.Vega.LiquidityProvision parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityProvision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -50564,23 +53233,24 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.lang.Object party_ = ""; + private java.lang.Object id_ = ""; /** *
-       * The liquidity provider party id
+       * Unique identifier
        * 
* - * string party = 1 [json_name = "party"]; - * @return The party. + * string id = 1 [json_name = "id"]; + * @return The id. */ - public java.lang.String getParty() { - java.lang.Object ref = party_; + public java.lang.String getId() { + java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - party_ = s; + id_ = s; return s; } else { return (java.lang.String) ref; @@ -50588,20 +53258,20 @@ public java.lang.String getParty() { } /** *
-       * The liquidity provider party id
+       * Unique identifier
        * 
* - * string party = 1 [json_name = "party"]; - * @return The bytes for party. + * string id = 1 [json_name = "id"]; + * @return The bytes for id. */ public com.google.protobuf.ByteString - getPartyBytes() { - java.lang.Object ref = party_; + getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - party_ = b; + id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -50609,74 +53279,262 @@ public java.lang.String getParty() { } /** *
-       * The liquidity provider party id
+       * Unique identifier
        * 
* - * string party = 1 [json_name = "party"]; - * @param value The party to set. + * string id = 1 [json_name = "id"]; + * @param value The id to set. * @return This builder for chaining. */ - public Builder setParty( + public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - party_ = value; + id_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique identifier
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object partyId_ = ""; + /** + *
+       * Unique party identifier for the creator of the provision
+       * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique party identifier for the creator of the provision
+       * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique party identifier for the creator of the provision
+       * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @param value The partyId to set. + * @return This builder for chaining. + */ + public Builder setPartyId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + partyId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique party identifier for the creator of the provision
+       * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @return This builder for chaining. + */ + public Builder clearPartyId() { + + partyId_ = getDefaultInstance().getPartyId(); + onChanged(); + return this; + } + /** + *
+       * Unique party identifier for the creator of the provision
+       * 
+ * + * string party_id = 2 [json_name = "partyId"]; + * @param value The bytes for partyId to set. + * @return This builder for chaining. + */ + public Builder setPartyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + partyId_ = value; + onChanged(); + return this; + } + + private long createdAt_ ; + /** + *
+       * Timestamp for when the order was created at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public long getCreatedAt() { + return createdAt_; + } + /** + *
+       * Timestamp for when the order was created at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 created_at = 3 [json_name = "createdAt"]; + * @param value The createdAt to set. + * @return This builder for chaining. + */ + public Builder setCreatedAt(long value) { + + createdAt_ = value; + onChanged(); + return this; + } + /** + *
+       * Timestamp for when the order was created at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 created_at = 3 [json_name = "createdAt"]; + * @return This builder for chaining. + */ + public Builder clearCreatedAt() { + + createdAt_ = 0L; onChanged(); return this; } + + private long updatedAt_ ; + /** + *
+       * Timestamp for when the order was updated at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * 
+ * + * int64 updated_at = 4 [json_name = "updatedAt"]; + * @return The updatedAt. + */ + @java.lang.Override + public long getUpdatedAt() { + return updatedAt_; + } /** *
-       * The liquidity provider party id
+       * Timestamp for when the order was updated at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * string party = 1 [json_name = "party"]; + * int64 updated_at = 4 [json_name = "updatedAt"]; + * @param value The updatedAt to set. * @return This builder for chaining. */ - public Builder clearParty() { + public Builder setUpdatedAt(long value) { - party_ = getDefaultInstance().getParty(); + updatedAt_ = value; onChanged(); return this; } /** *
-       * The liquidity provider party id
+       * Timestamp for when the order was updated at, in nanoseconds since the epoch
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * string party = 1 [json_name = "party"]; - * @param value The bytes for party to set. + * int64 updated_at = 4 [json_name = "updatedAt"]; * @return This builder for chaining. */ - public Builder setPartyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearUpdatedAt() { - party_ = value; + updatedAt_ = 0L; onChanged(); return this; } - private java.lang.Object equityLikeShare_ = ""; + private java.lang.Object marketId_ = ""; /** *
-       * The share own by this liquidity provider (float)
+       * Market identifier for the order, required field
        * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The equityLikeShare. + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The marketId. */ - public java.lang.String getEquityLikeShare() { - java.lang.Object ref = equityLikeShare_; + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - equityLikeShare_ = s; + marketId_ = s; return s; } else { return (java.lang.String) ref; @@ -50684,20 +53542,20 @@ public java.lang.String getEquityLikeShare() { } /** *
-       * The share own by this liquidity provider (float)
+       * Market identifier for the order, required field
        * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @return The bytes for equityLikeShare. + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @return The bytes for marketId. */ public com.google.protobuf.ByteString - getEquityLikeShareBytes() { - java.lang.Object ref = equityLikeShare_; + getMarketIdBytes() { + java.lang.Object ref = marketId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - equityLikeShare_ = b; + marketId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -50705,74 +53563,117 @@ public java.lang.String getEquityLikeShare() { } /** *
-       * The share own by this liquidity provider (float)
+       * Market identifier for the order, required field
        * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @param value The equityLikeShare to set. + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @param value The marketId to set. * @return This builder for chaining. */ - public Builder setEquityLikeShare( + public Builder setMarketId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - equityLikeShare_ = value; + marketId_ = value; onChanged(); return this; } /** *
-       * The share own by this liquidity provider (float)
+       * Market identifier for the order, required field
        * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } * @return This builder for chaining. */ - public Builder clearEquityLikeShare() { + public Builder clearMarketId() { - equityLikeShare_ = getDefaultInstance().getEquityLikeShare(); + marketId_ = getDefaultInstance().getMarketId(); onChanged(); return this; } /** *
-       * The share own by this liquidity provider (float)
+       * Market identifier for the order, required field
        * 
* - * string equity_like_share = 2 [json_name = "equityLikeShare"]; - * @param value The bytes for equityLikeShare to set. + * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * @param value The bytes for marketId to set. * @return This builder for chaining. */ - public Builder setEquityLikeShareBytes( + public Builder setMarketIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - equityLikeShare_ = value; + marketId_ = value; onChanged(); return this; } - private java.lang.Object averageEntryValuation_ = ""; + private long commitmentAmount_ ; /** *
-       * The average entry valuation of the liquidity provider for the market
+       * Specified as a unitless number that represents the amount of settlement asset of the market
        * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The averageEntryValuation. + * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The commitmentAmount. */ - public java.lang.String getAverageEntryValuation() { - java.lang.Object ref = averageEntryValuation_; + @java.lang.Override + public long getCommitmentAmount() { + return commitmentAmount_; + } + /** + *
+       * Specified as a unitless number that represents the amount of settlement asset of the market
+       * 
+ * + * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * @param value The commitmentAmount to set. + * @return This builder for chaining. + */ + public Builder setCommitmentAmount(long value) { + + commitmentAmount_ = value; + onChanged(); + return this; + } + /** + *
+       * Specified as a unitless number that represents the amount of settlement asset of the market
+       * 
+ * + * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return This builder for chaining. + */ + public Builder clearCommitmentAmount() { + + commitmentAmount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object fee_ = ""; + /** + *
+       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+       * 
+ * + * string fee = 7 [json_name = "fee"]; + * @return The fee. + */ + public java.lang.String getFee() { + java.lang.Object ref = fee_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - averageEntryValuation_ = s; + fee_ = s; return s; } else { return (java.lang.String) ref; @@ -50780,20 +53681,20 @@ public java.lang.String getAverageEntryValuation() { } /** *
-       * The average entry valuation of the liquidity provider for the market
+       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
        * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return The bytes for averageEntryValuation. + * string fee = 7 [json_name = "fee"]; + * @return The bytes for fee. */ public com.google.protobuf.ByteString - getAverageEntryValuationBytes() { - java.lang.Object ref = averageEntryValuation_; + getFeeBytes() { + java.lang.Object ref = fee_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - averageEntryValuation_ = b; + fee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -50801,1017 +53702,944 @@ public java.lang.String getAverageEntryValuation() { } /** *
-       * The average entry valuation of the liquidity provider for the market
+       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
        * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @param value The averageEntryValuation to set. + * string fee = 7 [json_name = "fee"]; + * @param value The fee to set. * @return This builder for chaining. */ - public Builder setAverageEntryValuation( + public Builder setFee( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - averageEntryValuation_ = value; - onChanged(); - return this; - } - /** - *
-       * The average entry valuation of the liquidity provider for the market
-       * 
- * - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @return This builder for chaining. - */ - public Builder clearAverageEntryValuation() { - - averageEntryValuation_ = getDefaultInstance().getAverageEntryValuation(); + fee_ = value; onChanged(); return this; } /** *
-       * The average entry valuation of the liquidity provider for the market
+       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
        * 
* - * string average_entry_valuation = 3 [json_name = "averageEntryValuation"]; - * @param value The bytes for averageEntryValuation to set. + * string fee = 7 [json_name = "fee"]; * @return This builder for chaining. - */ - public Builder setAverageEntryValuationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - averageEntryValuation_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:vega.LiquidityProviderFeeShare) - } - - // @@protoc_insertion_point(class_scope:vega.LiquidityProviderFeeShare) - private static final io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare(); - } - - public static io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiquidityProviderFeeShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityProviderFeeShare(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProviderFeeShare getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PriceMonitoringBoundsOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.PriceMonitoringBounds) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Minimum price that isn't currently breaching the specified price monitoring trigger
-     * 
- * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - * @return The minValidPrice. - */ - long getMinValidPrice(); - - /** - *
-     * Maximum price that isn't currently breaching the specified price monitoring trigger
-     * 
- * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - * @return The maxValidPrice. - */ - long getMaxValidPrice(); - - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return Whether the trigger field is set. - */ - boolean hasTrigger(); - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return The trigger. - */ - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger(); - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - */ - io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder(); - - /** - *
-     * Reference price used to calculate the valid price range
-     * 
- * - * double reference_price = 4 [json_name = "referencePrice"]; - * @return The referencePrice. - */ - double getReferencePrice(); - } - /** - *
-   * Represents a list of valid (at the current timestamp) price ranges per associated trigger
-   * 
- * - * Protobuf type {@code vega.PriceMonitoringBounds} - */ - public static final class PriceMonitoringBounds extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.PriceMonitoringBounds) - PriceMonitoringBoundsOrBuilder { - private static final long serialVersionUID = 0L; - // Use PriceMonitoringBounds.newBuilder() to construct. - private PriceMonitoringBounds(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PriceMonitoringBounds() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PriceMonitoringBounds(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PriceMonitoringBounds( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - minValidPrice_ = input.readUInt64(); - break; - } - case 16: { - - maxValidPrice_ = input.readUInt64(); - break; - } - case 26: { - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder subBuilder = null; - if (trigger_ != null) { - subBuilder = trigger_.toBuilder(); - } - trigger_ = input.readMessage(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trigger_); - trigger_ = subBuilder.buildPartial(); - } - - break; - } - case 33: { - - referencePrice_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.PriceMonitoringBounds.class, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder.class); - } - - public static final int MIN_VALID_PRICE_FIELD_NUMBER = 1; - private long minValidPrice_; - /** - *
-     * Minimum price that isn't currently breaching the specified price monitoring trigger
-     * 
- * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - * @return The minValidPrice. - */ - @java.lang.Override - public long getMinValidPrice() { - return minValidPrice_; - } - - public static final int MAX_VALID_PRICE_FIELD_NUMBER = 2; - private long maxValidPrice_; - /** - *
-     * Maximum price that isn't currently breaching the specified price monitoring trigger
-     * 
- * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - * @return The maxValidPrice. - */ - @java.lang.Override - public long getMaxValidPrice() { - return maxValidPrice_; - } - - public static final int TRIGGER_FIELD_NUMBER = 3; - private io.vegaprotocol.vega.Markets.PriceMonitoringTrigger trigger_; - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return Whether the trigger field is set. - */ - @java.lang.Override - public boolean hasTrigger() { - return trigger_ != null; - } - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return The trigger. - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger() { - return trigger_ == null ? io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; - } - /** - *
-     * Price monitoring trigger associated with the bounds
-     * 
- * - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder() { - return getTrigger(); - } - - public static final int REFERENCE_PRICE_FIELD_NUMBER = 4; - private double referencePrice_; - /** - *
-     * Reference price used to calculate the valid price range
-     * 
- * - * double reference_price = 4 [json_name = "referencePrice"]; - * @return The referencePrice. - */ - @java.lang.Override - public double getReferencePrice() { - return referencePrice_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + */ + public Builder clearFee() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (minValidPrice_ != 0L) { - output.writeUInt64(1, minValidPrice_); - } - if (maxValidPrice_ != 0L) { - output.writeUInt64(2, maxValidPrice_); + fee_ = getDefaultInstance().getFee(); + onChanged(); + return this; } - if (trigger_ != null) { - output.writeMessage(3, getTrigger()); + /** + *
+       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+       * 
+ * + * string fee = 7 [json_name = "fee"]; + * @param value The bytes for fee to set. + * @return This builder for chaining. + */ + public Builder setFeeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fee_ = value; + onChanged(); + return this; } - if (referencePrice_ != 0D) { - output.writeDouble(4, referencePrice_); + + private java.util.List sells_ = + java.util.Collections.emptyList(); + private void ensureSellsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sells_ = new java.util.ArrayList(sells_); + bitField0_ |= 0x00000001; + } } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> sellsBuilder_; - size = 0; - if (minValidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, minValidPrice_); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public java.util.List getSellsList() { + if (sellsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sells_); + } else { + return sellsBuilder_.getMessageList(); + } } - if (maxValidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxValidPrice_); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public int getSellsCount() { + if (sellsBuilder_ == null) { + return sells_.size(); + } else { + return sellsBuilder_.getCount(); + } } - if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTrigger()); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index) { + if (sellsBuilder_ == null) { + return sells_.get(index); + } else { + return sellsBuilder_.getMessage(index); + } } - if (referencePrice_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, referencePrice_); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder setSells( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (sellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSellsIsMutable(); + sells_.set(index, value); + onChanged(); + } else { + sellsBuilder_.setMessage(index, value); + } + return this; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder setSells( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (sellsBuilder_ == null) { + ensureSellsIsMutable(); + sells_.set(index, builderForValue.build()); + onChanged(); + } else { + sellsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.PriceMonitoringBounds)) { - return super.equals(obj); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder addSells(io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (sellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSellsIsMutable(); + sells_.add(value); + onChanged(); + } else { + sellsBuilder_.addMessage(value); + } + return this; } - io.vegaprotocol.vega.Vega.PriceMonitoringBounds other = (io.vegaprotocol.vega.Vega.PriceMonitoringBounds) obj; - - if (getMinValidPrice() - != other.getMinValidPrice()) return false; - if (getMaxValidPrice() - != other.getMaxValidPrice()) return false; - if (hasTrigger() != other.hasTrigger()) return false; - if (hasTrigger()) { - if (!getTrigger() - .equals(other.getTrigger())) return false; + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder addSells( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (sellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSellsIsMutable(); + sells_.add(index, value); + onChanged(); + } else { + sellsBuilder_.addMessage(index, value); + } + return this; } - if (java.lang.Double.doubleToLongBits(getReferencePrice()) - != java.lang.Double.doubleToLongBits( - other.getReferencePrice())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder addSells( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (sellsBuilder_ == null) { + ensureSellsIsMutable(); + sells_.add(builderForValue.build()); + onChanged(); + } else { + sellsBuilder_.addMessage(builderForValue.build()); + } + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MIN_VALID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinValidPrice()); - hash = (37 * hash) + MAX_VALID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxValidPrice()); - if (hasTrigger()) { - hash = (37 * hash) + TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + getTrigger().hashCode(); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder addSells( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (sellsBuilder_ == null) { + ensureSellsIsMutable(); + sells_.add(index, builderForValue.build()); + onChanged(); + } else { + sellsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - hash = (37 * hash) + REFERENCE_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getReferencePrice())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.PriceMonitoringBounds prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represents a list of valid (at the current timestamp) price ranges per associated trigger
-     * 
- * - * Protobuf type {@code vega.PriceMonitoringBounds} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.PriceMonitoringBounds) - io.vegaprotocol.vega.Vega.PriceMonitoringBoundsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder addAllSells( + java.lang.Iterable values) { + if (sellsBuilder_ == null) { + ensureSellsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sells_); + onChanged(); + } else { + sellsBuilder_.addAllMessages(values); + } + return this; } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.PriceMonitoringBounds.class, io.vegaprotocol.vega.Vega.PriceMonitoringBounds.Builder.class); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder clearSells() { + if (sellsBuilder_ == null) { + sells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sellsBuilder_.clear(); + } + return this; } - - // Construct using io.vegaprotocol.vega.Vega.PriceMonitoringBounds.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public Builder removeSells(int index) { + if (sellsBuilder_ == null) { + ensureSellsIsMutable(); + sells_.remove(index); + onChanged(); + } else { + sellsBuilder_.remove(index); + } + return this; } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder getSellsBuilder( + int index) { + return getSellsFieldBuilder().getBuilder(index); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( + int index) { + if (sellsBuilder_ == null) { + return sells_.get(index); } else { + return sellsBuilder_.getMessageOrBuilder(index); } } - @java.lang.Override - public Builder clear() { - super.clear(); - minValidPrice_ = 0L; - - maxValidPrice_ = 0L; - - if (triggerBuilder_ == null) { - trigger_ = null; + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public java.util.List + getSellsOrBuilderList() { + if (sellsBuilder_ != null) { + return sellsBuilder_.getMessageOrBuilderList(); } else { - trigger_ = null; - triggerBuilder_ = null; + return java.util.Collections.unmodifiableList(sells_); + } + } + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addSellsBuilder() { + return getSellsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + } + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addSellsBuilder( + int index) { + return getSellsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + } + /** + *
+       * A set of liquidity sell orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; + */ + public java.util.List + getSellsBuilderList() { + return getSellsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> + getSellsFieldBuilder() { + if (sellsBuilder_ == null) { + sellsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder>( + sells_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sells_ = null; } - referencePrice_ = 0D; - - return this; + return sellsBuilder_; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_PriceMonitoringBounds_descriptor; + private java.util.List buys_ = + java.util.Collections.emptyList(); + private void ensureBuysIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + buys_ = new java.util.ArrayList(buys_); + bitField0_ |= 0x00000002; + } } - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance(); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> buysBuilder_; - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds build() { - io.vegaprotocol.vega.Vega.PriceMonitoringBounds result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public java.util.List getBuysList() { + if (buysBuilder_ == null) { + return java.util.Collections.unmodifiableList(buys_); + } else { + return buysBuilder_.getMessageList(); } - return result; } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds buildPartial() { - io.vegaprotocol.vega.Vega.PriceMonitoringBounds result = new io.vegaprotocol.vega.Vega.PriceMonitoringBounds(this); - result.minValidPrice_ = minValidPrice_; - result.maxValidPrice_ = maxValidPrice_; - if (triggerBuilder_ == null) { - result.trigger_ = trigger_; + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public int getBuysCount() { + if (buysBuilder_ == null) { + return buys_.size(); } else { - result.trigger_ = triggerBuilder_.build(); + return buysBuilder_.getCount(); } - result.referencePrice_ = referencePrice_; - onBuilt(); - return result; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index) { + if (buysBuilder_ == null) { + return buys_.get(index); + } else { + return buysBuilder_.getMessage(index); + } } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder setBuys( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (buysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuysIsMutable(); + buys_.set(index, value); + onChanged(); + } else { + buysBuilder_.setMessage(index, value); + } + return this; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder setBuys( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (buysBuilder_ == null) { + ensureBuysIsMutable(); + buys_.set(index, builderForValue.build()); + onChanged(); + } else { + buysBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder addBuys(io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (buysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuysIsMutable(); + buys_.add(value); + onChanged(); + } else { + buysBuilder_.addMessage(value); + } + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder addBuys( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { + if (buysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuysIsMutable(); + buys_.add(index, value); + onChanged(); + } else { + buysBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.PriceMonitoringBounds) { - return mergeFrom((io.vegaprotocol.vega.Vega.PriceMonitoringBounds)other); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder addBuys( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (buysBuilder_ == null) { + ensureBuysIsMutable(); + buys_.add(builderForValue.build()); + onChanged(); } else { - super.mergeFrom(other); - return this; + buysBuilder_.addMessage(builderForValue.build()); } + return this; } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.PriceMonitoringBounds other) { - if (other == io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()) return this; - if (other.getMinValidPrice() != 0L) { - setMinValidPrice(other.getMinValidPrice()); + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder addBuys( + int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { + if (buysBuilder_ == null) { + ensureBuysIsMutable(); + buys_.add(index, builderForValue.build()); + onChanged(); + } else { + buysBuilder_.addMessage(index, builderForValue.build()); } - if (other.getMaxValidPrice() != 0L) { - setMaxValidPrice(other.getMaxValidPrice()); + return this; + } + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder addAllBuys( + java.lang.Iterable values) { + if (buysBuilder_ == null) { + ensureBuysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buys_); + onChanged(); + } else { + buysBuilder_.addAllMessages(values); } - if (other.hasTrigger()) { - mergeTrigger(other.getTrigger()); + return this; + } + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder clearBuys() { + if (buysBuilder_ == null) { + buys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + buysBuilder_.clear(); } - if (other.getReferencePrice() != 0D) { - setReferencePrice(other.getReferencePrice()); + return this; + } + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public Builder removeBuys(int index) { + if (buysBuilder_ == null) { + ensureBuysIsMutable(); + buys_.remove(index); + onChanged(); + } else { + buysBuilder_.remove(index); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder getBuysBuilder( + int index) { + return getBuysFieldBuilder().getBuilder(index); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.PriceMonitoringBounds parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.PriceMonitoringBounds) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( + int index) { + if (buysBuilder_ == null) { + return buys_.get(index); } else { + return buysBuilder_.getMessageOrBuilder(index); } - return this; } - - private long minValidPrice_ ; /** *
-       * Minimum price that isn't currently breaching the specified price monitoring trigger
+       * A set of liquidity buy orders to meet the liquidity provision obligation
        * 
* - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - * @return The minValidPrice. + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; */ - @java.lang.Override - public long getMinValidPrice() { - return minValidPrice_; + public java.util.List + getBuysOrBuilderList() { + if (buysBuilder_ != null) { + return buysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(buys_); + } } /** *
-       * Minimum price that isn't currently breaching the specified price monitoring trigger
+       * A set of liquidity buy orders to meet the liquidity provision obligation
        * 
* - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - * @param value The minValidPrice to set. - * @return This builder for chaining. + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; */ - public Builder setMinValidPrice(long value) { - - minValidPrice_ = value; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addBuysBuilder() { + return getBuysFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); } /** *
-       * Minimum price that isn't currently breaching the specified price monitoring trigger
+       * A set of liquidity buy orders to meet the liquidity provision obligation
        * 
* - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - * @return This builder for chaining. + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; */ - public Builder clearMinValidPrice() { - - minValidPrice_ = 0L; - onChanged(); - return this; + public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addBuysBuilder( + int index) { + return getBuysFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + } + /** + *
+       * A set of liquidity buy orders to meet the liquidity provision obligation
+       * 
+ * + * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + */ + public java.util.List + getBuysBuilderList() { + return getBuysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> + getBuysFieldBuilder() { + if (buysBuilder_ == null) { + buysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder>( + buys_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + buys_ = null; + } + return buysBuilder_; } - private long maxValidPrice_ ; + private java.lang.Object version_ = ""; /** *
-       * Maximum price that isn't currently breaching the specified price monitoring trigger
+       * Version of this liquidity provision order
        * 
* - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - * @return The maxValidPrice. + * string version = 10 [json_name = "version"]; + * @return The version. */ - @java.lang.Override - public long getMaxValidPrice() { - return maxValidPrice_; + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Maximum price that isn't currently breaching the specified price monitoring trigger
+       * Version of this liquidity provision order
        * 
* - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - * @param value The maxValidPrice to set. - * @return This builder for chaining. + * string version = 10 [json_name = "version"]; + * @return The bytes for version. */ - public Builder setMaxValidPrice(long value) { - - maxValidPrice_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Maximum price that isn't currently breaching the specified price monitoring trigger
+       * Version of this liquidity provision order
        * 
* - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string version = 10 [json_name = "version"]; + * @param value The version to set. * @return This builder for chaining. */ - public Builder clearMaxValidPrice() { + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - maxValidPrice_ = 0L; + version_ = value; onChanged(); return this; } - - private io.vegaprotocol.vega.Markets.PriceMonitoringTrigger trigger_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder> triggerBuilder_; /** *
-       * Price monitoring trigger associated with the bounds
+       * Version of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return Whether the trigger field is set. + * string version = 10 [json_name = "version"]; + * @return This builder for chaining. */ - public boolean hasTrigger() { - return triggerBuilder_ != null || trigger_ != null; + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; } /** *
-       * Price monitoring trigger associated with the bounds
+       * Version of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - * @return The trigger. + * string version = 10 [json_name = "version"]; + * @param value The bytes for version to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger getTrigger() { - if (triggerBuilder_ == null) { - return trigger_ == null ? io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; - } else { - return triggerBuilder_.getMessage(); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; } + + private int status_ = 0; /** *
-       * Price monitoring trigger associated with the bounds
+       * Status of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The enum numeric value on the wire for status. */ - public Builder setTrigger(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger value) { - if (triggerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trigger_ = value; - onChanged(); - } else { - triggerBuilder_.setMessage(value); - } - - return this; + @java.lang.Override public int getStatusValue() { + return status_; } /** *
-       * Price monitoring trigger associated with the bounds
+       * Status of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ - public Builder setTrigger( - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder builderForValue) { - if (triggerBuilder_ == null) { - trigger_ = builderForValue.build(); - onChanged(); - } else { - triggerBuilder_.setMessage(builderForValue.build()); - } + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); return this; } /** *
-       * Price monitoring trigger associated with the bounds
+       * Status of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return The status. */ - public Builder mergeTrigger(io.vegaprotocol.vega.Markets.PriceMonitoringTrigger value) { - if (triggerBuilder_ == null) { - if (trigger_ != null) { - trigger_ = - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.newBuilder(trigger_).mergeFrom(value).buildPartial(); - } else { - trigger_ = value; - } - onChanged(); - } else { - triggerBuilder_.mergeFrom(value); - } - - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.LiquidityProvision.Status result = io.vegaprotocol.vega.Vega.LiquidityProvision.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.LiquidityProvision.Status.UNRECOGNIZED : result; } /** *
-       * Price monitoring trigger associated with the bounds
+       * Status of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. */ - public Builder clearTrigger() { - if (triggerBuilder_ == null) { - trigger_ = null; - onChanged(); - } else { - trigger_ = null; - triggerBuilder_ = null; + public Builder setStatus(io.vegaprotocol.vega.Vega.LiquidityProvision.Status value) { + if (value == null) { + throw new NullPointerException(); } + status_ = value.getNumber(); + onChanged(); return this; } /** *
-       * Price monitoring trigger associated with the bounds
+       * Status of this liquidity provision order
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder getTriggerBuilder() { + public Builder clearStatus() { + status_ = 0; onChanged(); - return getTriggerFieldBuilder().getBuilder(); + return this; } + + private java.lang.Object reference_ = ""; /** *
-       * Price monitoring trigger associated with the bounds
+       * A reference shared between this liquidity provision and all it's orders
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * string reference = 12 [json_name = "reference"]; + * @return The reference. */ - public io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder getTriggerOrBuilder() { - if (triggerBuilder_ != null) { - return triggerBuilder_.getMessageOrBuilder(); + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; } else { - return trigger_ == null ? - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.getDefaultInstance() : trigger_; + return (java.lang.String) ref; } } /** *
-       * Price monitoring trigger associated with the bounds
+       * A reference shared between this liquidity provision and all it's orders
        * 
* - * .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + * string reference = 12 [json_name = "reference"]; + * @return The bytes for reference. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder> - getTriggerFieldBuilder() { - if (triggerBuilder_ == null) { - triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.PriceMonitoringTrigger, io.vegaprotocol.vega.Markets.PriceMonitoringTrigger.Builder, io.vegaprotocol.vega.Markets.PriceMonitoringTriggerOrBuilder>( - getTrigger(), - getParentForChildren(), - isClean()); - trigger_ = null; + public com.google.protobuf.ByteString + getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return triggerBuilder_; } - - private double referencePrice_ ; /** *
-       * Reference price used to calculate the valid price range
+       * A reference shared between this liquidity provision and all it's orders
        * 
* - * double reference_price = 4 [json_name = "referencePrice"]; - * @return The referencePrice. + * string reference = 12 [json_name = "reference"]; + * @param value The reference to set. + * @return This builder for chaining. */ - @java.lang.Override - public double getReferencePrice() { - return referencePrice_; + public Builder setReference( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reference_ = value; + onChanged(); + return this; } /** *
-       * Reference price used to calculate the valid price range
+       * A reference shared between this liquidity provision and all it's orders
        * 
* - * double reference_price = 4 [json_name = "referencePrice"]; - * @param value The referencePrice to set. + * string reference = 12 [json_name = "reference"]; * @return This builder for chaining. */ - public Builder setReferencePrice(double value) { + public Builder clearReference() { - referencePrice_ = value; + reference_ = getDefaultInstance().getReference(); onChanged(); return this; } /** *
-       * Reference price used to calculate the valid price range
+       * A reference shared between this liquidity provision and all it's orders
        * 
* - * double reference_price = 4 [json_name = "referencePrice"]; + * string reference = 12 [json_name = "reference"]; + * @param value The bytes for reference to set. * @return This builder for chaining. */ - public Builder clearReferencePrice() { + public Builder setReferenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - referencePrice_ = 0D; + reference_ = value; onChanged(); return this; } @@ -51828,126 +54656,189 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.PriceMonitoringBounds) + // @@protoc_insertion_point(builder_scope:vega.LiquidityProvision) } - // @@protoc_insertion_point(class_scope:vega.PriceMonitoringBounds) - private static final io.vegaprotocol.vega.Vega.PriceMonitoringBounds DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.LiquidityProvision) + private static final io.vegaprotocol.vega.Vega.LiquidityProvision DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.PriceMonitoringBounds(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityProvision(); } - public static io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PriceMonitoringBounds parsePartialFrom( + public LiquidityProvision parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PriceMonitoringBounds(input, extensionRegistry); + return new LiquidityProvision(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceMonitoringBounds getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ErrorDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.ErrorDetail) + public interface EthereumConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.EthereumConfig) com.google.protobuf.MessageOrBuilder { /** *
-     * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+     * Network identifier of this Ethereum network
      * 
* - * int32 code = 1 [json_name = "code"]; - * @return The code. + * string network_id = 1 [json_name = "networkId"]; + * @return The networkId. */ - int getCode(); + java.lang.String getNetworkId(); + /** + *
+     * Network identifier of this Ethereum network
+     * 
+ * + * string network_id = 1 [json_name = "networkId"]; + * @return The bytes for networkId. + */ + com.google.protobuf.ByteString + getNetworkIdBytes(); /** *
-     * A message that describes the error in more detail, should describe the problem encountered
+     * Chain identifier of this Ethereum network
      * 
* - * string message = 2 [json_name = "message"]; - * @return The message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The chainId. */ - java.lang.String getMessage(); + java.lang.String getChainId(); /** *
-     * A message that describes the error in more detail, should describe the problem encountered
+     * Chain identifier of this Ethereum network
      * 
* - * string message = 2 [json_name = "message"]; - * @return The bytes for message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The bytes for chainId. */ com.google.protobuf.ByteString - getMessageBytes(); + getChainIdBytes(); /** *
-     * Any inner error information that could add more context, or be helpful for error reporting
+     * Bridge address for this Ethereum network
      * 
* - * string inner = 3 [json_name = "inner"]; - * @return The inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bridgeAddress. */ - java.lang.String getInner(); + java.lang.String getBridgeAddress(); /** *
-     * Any inner error information that could add more context, or be helpful for error reporting
+     * Bridge address for this Ethereum network
      * 
* - * string inner = 3 [json_name = "inner"]; - * @return The bytes for inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bytes for bridgeAddress. */ com.google.protobuf.ByteString - getInnerBytes(); + getBridgeAddressBytes(); + + /** + *
+     * Number of confirmations
+     * 
+ * + * uint32 confirmations = 4 [json_name = "confirmations"]; + * @return The confirmations. + */ + int getConfirmations(); + + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return A list containing the stakingBridgeAddresses. + */ + java.util.List + getStakingBridgeAddressesList(); + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return The count of stakingBridgeAddresses. + */ + int getStakingBridgeAddressesCount(); + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the element to return. + * @return The stakingBridgeAddresses at the given index. + */ + java.lang.String getStakingBridgeAddresses(int index); + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the value to return. + * @return The bytes of the stakingBridgeAddresses at the given index. + */ + com.google.protobuf.ByteString + getStakingBridgeAddressesBytes(int index); } /** *
-   * Represents Vega domain specific error information over gRPC/Protobuf
+   * Ethereum configuration details
    * 
* - * Protobuf type {@code vega.ErrorDetail} + * Protobuf type {@code vega.EthereumConfig} */ - public static final class ErrorDetail extends + public static final class EthereumConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.ErrorDetail) - ErrorDetailOrBuilder { + // @@protoc_insertion_point(message_implements:vega.EthereumConfig) + EthereumConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use ErrorDetail.newBuilder() to construct. - private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use EthereumConfig.newBuilder() to construct. + private EthereumConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorDetail() { - message_ = ""; - inner_ = ""; + private EthereumConfig() { + networkId_ = ""; + chainId_ = ""; + bridgeAddress_ = ""; + stakingBridgeAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ErrorDetail(); + return new EthereumConfig(); } @java.lang.Override @@ -51955,7 +54846,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ErrorDetail( + private EthereumConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -51963,6 +54854,7 @@ private ErrorDetail( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -51973,21 +54865,36 @@ private ErrorDetail( case 0: done = true; break; - case 8: { + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - code_ = input.readInt32(); + networkId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); - message_ = s; + chainId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); - inner_ = s; + bridgeAddress_ = s; + break; + } + case 32: { + + confirmations_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stakingBridgeAddresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stakingBridgeAddresses_.add(s); break; } default: { @@ -52005,130 +54912,230 @@ private ErrorDetail( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stakingBridgeAddresses_ = stakingBridgeAddresses_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.ErrorDetail.class, io.vegaprotocol.vega.Vega.ErrorDetail.Builder.class); + io.vegaprotocol.vega.Vega.EthereumConfig.class, io.vegaprotocol.vega.Vega.EthereumConfig.Builder.class); } - public static final int CODE_FIELD_NUMBER = 1; - private int code_; + public static final int NETWORK_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object networkId_; /** *
-     * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+     * Network identifier of this Ethereum network
      * 
* - * int32 code = 1 [json_name = "code"]; - * @return The code. + * string network_id = 1 [json_name = "networkId"]; + * @return The networkId. */ @java.lang.Override - public int getCode() { - return code_; + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkId_ = s; + return s; + } + } + /** + *
+     * Network identifier of this Ethereum network
+     * 
+ * + * string network_id = 1 [json_name = "networkId"]; + * @return The bytes for networkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; + public static final int CHAIN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object chainId_; /** *
-     * A message that describes the error in more detail, should describe the problem encountered
+     * Chain identifier of this Ethereum network
      * 
* - * string message = 2 [json_name = "message"]; - * @return The message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The chainId. */ @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; + public java.lang.String getChainId() { + java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - message_ = s; + chainId_ = s; return s; } } /** *
-     * A message that describes the error in more detail, should describe the problem encountered
+     * Chain identifier of this Ethereum network
      * 
* - * string message = 2 [json_name = "message"]; - * @return The bytes for message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The bytes for chainId. */ @java.lang.Override public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; + getChainIdBytes() { + java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - message_ = b; + chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int INNER_FIELD_NUMBER = 3; - private volatile java.lang.Object inner_; + public static final int BRIDGE_ADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object bridgeAddress_; /** *
-     * Any inner error information that could add more context, or be helpful for error reporting
+     * Bridge address for this Ethereum network
      * 
* - * string inner = 3 [json_name = "inner"]; - * @return The inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bridgeAddress. */ @java.lang.Override - public java.lang.String getInner() { - java.lang.Object ref = inner_; + public java.lang.String getBridgeAddress() { + java.lang.Object ref = bridgeAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - inner_ = s; + bridgeAddress_ = s; return s; } } /** *
-     * Any inner error information that could add more context, or be helpful for error reporting
+     * Bridge address for this Ethereum network
      * 
* - * string inner = 3 [json_name = "inner"]; - * @return The bytes for inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bytes for bridgeAddress. */ @java.lang.Override public com.google.protobuf.ByteString - getInnerBytes() { - java.lang.Object ref = inner_; + getBridgeAddressBytes() { + java.lang.Object ref = bridgeAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - inner_ = b; + bridgeAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int CONFIRMATIONS_FIELD_NUMBER = 4; + private int confirmations_; + /** + *
+     * Number of confirmations
+     * 
+ * + * uint32 confirmations = 4 [json_name = "confirmations"]; + * @return The confirmations. + */ + @java.lang.Override + public int getConfirmations() { + return confirmations_; + } + + public static final int STAKING_BRIDGE_ADDRESSES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList stakingBridgeAddresses_; + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return A list containing the stakingBridgeAddresses. + */ + public com.google.protobuf.ProtocolStringList + getStakingBridgeAddressesList() { + return stakingBridgeAddresses_; + } + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return The count of stakingBridgeAddresses. + */ + public int getStakingBridgeAddressesCount() { + return stakingBridgeAddresses_.size(); + } + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the element to return. + * @return The stakingBridgeAddresses at the given index. + */ + public java.lang.String getStakingBridgeAddresses(int index) { + return stakingBridgeAddresses_.get(index); + } + /** + *
+     * Staking Bridge addresses for the ethereum network
+     * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the value to return. + * @return The bytes of the stakingBridgeAddresses at the given index. + */ + public com.google.protobuf.ByteString + getStakingBridgeAddressesBytes(int index) { + return stakingBridgeAddresses_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -52143,14 +55150,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ != 0) { - output.writeInt32(1, code_); + if (!getNetworkIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_); } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + if (!getChainIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_); } - if (!getInnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inner_); + if (!getBridgeAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bridgeAddress_); + } + if (confirmations_ != 0) { + output.writeUInt32(4, confirmations_); + } + for (int i = 0; i < stakingBridgeAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stakingBridgeAddresses_.getRaw(i)); } unknownFields.writeTo(output); } @@ -52161,15 +55174,26 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, code_); + if (!getNetworkIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_); + } + if (!getChainIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_); + } + if (!getBridgeAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bridgeAddress_); } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + if (confirmations_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, confirmations_); } - if (!getInnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inner_); + { + int dataSize = 0; + for (int i = 0; i < stakingBridgeAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(stakingBridgeAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getStakingBridgeAddressesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -52181,17 +55205,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.ErrorDetail)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.EthereumConfig)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.ErrorDetail other = (io.vegaprotocol.vega.Vega.ErrorDetail) obj; + io.vegaprotocol.vega.Vega.EthereumConfig other = (io.vegaprotocol.vega.Vega.EthereumConfig) obj; - if (getCode() - != other.getCode()) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getInner() - .equals(other.getInner())) return false; + if (!getNetworkId() + .equals(other.getNetworkId())) return false; + if (!getChainId() + .equals(other.getChainId())) return false; + if (!getBridgeAddress() + .equals(other.getBridgeAddress())) return false; + if (getConfirmations() + != other.getConfirmations()) return false; + if (!getStakingBridgeAddressesList() + .equals(other.getStakingBridgeAddressesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -52203,80 +55231,86 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + INNER_FIELD_NUMBER; - hash = (53 * hash) + getInner().hashCode(); + hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + getNetworkId().hashCode(); + hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getChainId().hashCode(); + hash = (37 * hash) + BRIDGE_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getBridgeAddress().hashCode(); + hash = (37 * hash) + CONFIRMATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfirmations(); + if (getStakingBridgeAddressesCount() > 0) { + hash = (37 * hash) + STAKING_BRIDGE_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getStakingBridgeAddressesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EthereumConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( + public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -52289,7 +55323,7 @@ public static io.vegaprotocol.vega.Vega.ErrorDetail parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.ErrorDetail prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.EthereumConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -52306,29 +55340,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents Vega domain specific error information over gRPC/Protobuf
+     * Ethereum configuration details
      * 
* - * Protobuf type {@code vega.ErrorDetail} + * Protobuf type {@code vega.EthereumConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.ErrorDetail) - io.vegaprotocol.vega.Vega.ErrorDetailOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.EthereumConfig) + io.vegaprotocol.vega.Vega.EthereumConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.ErrorDetail.class, io.vegaprotocol.vega.Vega.ErrorDetail.Builder.class); + io.vegaprotocol.vega.Vega.EthereumConfig.class, io.vegaprotocol.vega.Vega.EthereumConfig.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.ErrorDetail.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.EthereumConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -52346,29 +55380,33 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - code_ = 0; + networkId_ = ""; - message_ = ""; + chainId_ = ""; - inner_ = ""; + bridgeAddress_ = ""; + + confirmations_ = 0; + stakingBridgeAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_ErrorDetail_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.ErrorDetail.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.EthereumConfig.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.ErrorDetail build() { - io.vegaprotocol.vega.Vega.ErrorDetail result = buildPartial(); + public io.vegaprotocol.vega.Vega.EthereumConfig build() { + io.vegaprotocol.vega.Vega.EthereumConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -52376,11 +55414,18 @@ public io.vegaprotocol.vega.Vega.ErrorDetail build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.ErrorDetail buildPartial() { - io.vegaprotocol.vega.Vega.ErrorDetail result = new io.vegaprotocol.vega.Vega.ErrorDetail(this); - result.code_ = code_; - result.message_ = message_; - result.inner_ = inner_; + public io.vegaprotocol.vega.Vega.EthereumConfig buildPartial() { + io.vegaprotocol.vega.Vega.EthereumConfig result = new io.vegaprotocol.vega.Vega.EthereumConfig(this); + int from_bitField0_ = bitField0_; + result.networkId_ = networkId_; + result.chainId_ = chainId_; + result.bridgeAddress_ = bridgeAddress_; + result.confirmations_ = confirmations_; + if (((bitField0_ & 0x00000001) != 0)) { + stakingBridgeAddresses_ = stakingBridgeAddresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stakingBridgeAddresses_ = stakingBridgeAddresses_; onBuilt(); return result; } @@ -52419,25 +55464,39 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.ErrorDetail) { - return mergeFrom((io.vegaprotocol.vega.Vega.ErrorDetail)other); + if (other instanceof io.vegaprotocol.vega.Vega.EthereumConfig) { + return mergeFrom((io.vegaprotocol.vega.Vega.EthereumConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.ErrorDetail other) { - if (other == io.vegaprotocol.vega.Vega.ErrorDetail.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.EthereumConfig other) { + if (other == io.vegaprotocol.vega.Vega.EthereumConfig.getDefaultInstance()) return this; + if (!other.getNetworkId().isEmpty()) { + networkId_ = other.networkId_; + onChanged(); } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; + if (!other.getChainId().isEmpty()) { + chainId_ = other.chainId_; onChanged(); } - if (!other.getInner().isEmpty()) { - inner_ = other.inner_; + if (!other.getBridgeAddress().isEmpty()) { + bridgeAddress_ = other.bridgeAddress_; + onChanged(); + } + if (other.getConfirmations() != 0) { + setConfirmations(other.getConfirmations()); + } + if (!other.stakingBridgeAddresses_.isEmpty()) { + if (stakingBridgeAddresses_.isEmpty()) { + stakingBridgeAddresses_ = other.stakingBridgeAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStakingBridgeAddressesIsMutable(); + stakingBridgeAddresses_.addAll(other.stakingBridgeAddresses_); + } onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -52455,11 +55514,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.ErrorDetail parsedMessage = null; + io.vegaprotocol.vega.Vega.EthereumConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.ErrorDetail) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.EthereumConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -52468,66 +55527,120 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private int code_ ; + private java.lang.Object networkId_ = ""; /** *
-       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * Network identifier of this Ethereum network
        * 
* - * int32 code = 1 [json_name = "code"]; - * @return The code. + * string network_id = 1 [json_name = "networkId"]; + * @return The networkId. */ - @java.lang.Override - public int getCode() { - return code_; + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * Network identifier of this Ethereum network
        * 
* - * int32 code = 1 [json_name = "code"]; - * @param value The code to set. + * string network_id = 1 [json_name = "networkId"]; + * @return The bytes for networkId. + */ + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Network identifier of this Ethereum network
+       * 
+ * + * string network_id = 1 [json_name = "networkId"]; + * @param value The networkId to set. * @return This builder for chaining. */ - public Builder setCode(int value) { + public Builder setNetworkId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - code_ = value; + networkId_ = value; onChanged(); return this; } /** *
-       * A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
+       * Network identifier of this Ethereum network
        * 
* - * int32 code = 1 [json_name = "code"]; + * string network_id = 1 [json_name = "networkId"]; * @return This builder for chaining. */ - public Builder clearCode() { + public Builder clearNetworkId() { - code_ = 0; + networkId_ = getDefaultInstance().getNetworkId(); + onChanged(); + return this; + } + /** + *
+       * Network identifier of this Ethereum network
+       * 
+ * + * string network_id = 1 [json_name = "networkId"]; + * @param value The bytes for networkId to set. + * @return This builder for chaining. + */ + public Builder setNetworkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + networkId_ = value; onChanged(); return this; } - private java.lang.Object message_ = ""; + private java.lang.Object chainId_ = ""; /** *
-       * A message that describes the error in more detail, should describe the problem encountered
+       * Chain identifier of this Ethereum network
        * 
* - * string message = 2 [json_name = "message"]; - * @return The message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The chainId. */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; + public java.lang.String getChainId() { + java.lang.Object ref = chainId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - message_ = s; + chainId_ = s; return s; } else { return (java.lang.String) ref; @@ -52535,20 +55648,20 @@ public java.lang.String getMessage() { } /** *
-       * A message that describes the error in more detail, should describe the problem encountered
+       * Chain identifier of this Ethereum network
        * 
* - * string message = 2 [json_name = "message"]; - * @return The bytes for message. + * string chain_id = 2 [json_name = "chainId"]; + * @return The bytes for chainId. */ public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; + getChainIdBytes() { + java.lang.Object ref = chainId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - message_ = b; + chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -52556,74 +55669,74 @@ public java.lang.String getMessage() { } /** *
-       * A message that describes the error in more detail, should describe the problem encountered
+       * Chain identifier of this Ethereum network
        * 
* - * string message = 2 [json_name = "message"]; - * @param value The message to set. + * string chain_id = 2 [json_name = "chainId"]; + * @param value The chainId to set. * @return This builder for chaining. */ - public Builder setMessage( + public Builder setChainId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - message_ = value; + chainId_ = value; onChanged(); return this; } /** *
-       * A message that describes the error in more detail, should describe the problem encountered
+       * Chain identifier of this Ethereum network
        * 
* - * string message = 2 [json_name = "message"]; + * string chain_id = 2 [json_name = "chainId"]; * @return This builder for chaining. */ - public Builder clearMessage() { + public Builder clearChainId() { - message_ = getDefaultInstance().getMessage(); + chainId_ = getDefaultInstance().getChainId(); onChanged(); return this; } /** *
-       * A message that describes the error in more detail, should describe the problem encountered
+       * Chain identifier of this Ethereum network
        * 
* - * string message = 2 [json_name = "message"]; - * @param value The bytes for message to set. + * string chain_id = 2 [json_name = "chainId"]; + * @param value The bytes for chainId to set. * @return This builder for chaining. */ - public Builder setMessageBytes( + public Builder setChainIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - message_ = value; + chainId_ = value; onChanged(); return this; } - private java.lang.Object inner_ = ""; + private java.lang.Object bridgeAddress_ = ""; /** *
-       * Any inner error information that could add more context, or be helpful for error reporting
+       * Bridge address for this Ethereum network
        * 
* - * string inner = 3 [json_name = "inner"]; - * @return The inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bridgeAddress. */ - public java.lang.String getInner() { - java.lang.Object ref = inner_; + public java.lang.String getBridgeAddress() { + java.lang.Object ref = bridgeAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - inner_ = s; + bridgeAddress_ = s; return s; } else { return (java.lang.String) ref; @@ -52631,20 +55744,20 @@ public java.lang.String getInner() { } /** *
-       * Any inner error information that could add more context, or be helpful for error reporting
+       * Bridge address for this Ethereum network
        * 
* - * string inner = 3 [json_name = "inner"]; - * @return The bytes for inner. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @return The bytes for bridgeAddress. */ public com.google.protobuf.ByteString - getInnerBytes() { - java.lang.Object ref = inner_; + getBridgeAddressBytes() { + java.lang.Object ref = bridgeAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - inner_ = b; + bridgeAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -52652,54 +55765,243 @@ public java.lang.String getInner() { } /** *
-       * Any inner error information that could add more context, or be helpful for error reporting
+       * Bridge address for this Ethereum network
        * 
* - * string inner = 3 [json_name = "inner"]; - * @param value The inner to set. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @param value The bridgeAddress to set. * @return This builder for chaining. */ - public Builder setInner( + public Builder setBridgeAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inner_ = value; + bridgeAddress_ = value; onChanged(); return this; } /** *
-       * Any inner error information that could add more context, or be helpful for error reporting
+       * Bridge address for this Ethereum network
        * 
* - * string inner = 3 [json_name = "inner"]; + * string bridge_address = 3 [json_name = "bridgeAddress"]; * @return This builder for chaining. */ - public Builder clearInner() { + public Builder clearBridgeAddress() { - inner_ = getDefaultInstance().getInner(); + bridgeAddress_ = getDefaultInstance().getBridgeAddress(); onChanged(); return this; } /** *
-       * Any inner error information that could add more context, or be helpful for error reporting
+       * Bridge address for this Ethereum network
        * 
* - * string inner = 3 [json_name = "inner"]; - * @param value The bytes for inner to set. + * string bridge_address = 3 [json_name = "bridgeAddress"]; + * @param value The bytes for bridgeAddress to set. * @return This builder for chaining. */ - public Builder setInnerBytes( + public Builder setBridgeAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inner_ = value; + bridgeAddress_ = value; + onChanged(); + return this; + } + + private int confirmations_ ; + /** + *
+       * Number of confirmations
+       * 
+ * + * uint32 confirmations = 4 [json_name = "confirmations"]; + * @return The confirmations. + */ + @java.lang.Override + public int getConfirmations() { + return confirmations_; + } + /** + *
+       * Number of confirmations
+       * 
+ * + * uint32 confirmations = 4 [json_name = "confirmations"]; + * @param value The confirmations to set. + * @return This builder for chaining. + */ + public Builder setConfirmations(int value) { + + confirmations_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of confirmations
+       * 
+ * + * uint32 confirmations = 4 [json_name = "confirmations"]; + * @return This builder for chaining. + */ + public Builder clearConfirmations() { + + confirmations_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList stakingBridgeAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStakingBridgeAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stakingBridgeAddresses_ = new com.google.protobuf.LazyStringArrayList(stakingBridgeAddresses_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return A list containing the stakingBridgeAddresses. + */ + public com.google.protobuf.ProtocolStringList + getStakingBridgeAddressesList() { + return stakingBridgeAddresses_.getUnmodifiableView(); + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return The count of stakingBridgeAddresses. + */ + public int getStakingBridgeAddressesCount() { + return stakingBridgeAddresses_.size(); + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the element to return. + * @return The stakingBridgeAddresses at the given index. + */ + public java.lang.String getStakingBridgeAddresses(int index) { + return stakingBridgeAddresses_.get(index); + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index of the value to return. + * @return The bytes of the stakingBridgeAddresses at the given index. + */ + public com.google.protobuf.ByteString + getStakingBridgeAddressesBytes(int index) { + return stakingBridgeAddresses_.getByteString(index); + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param index The index to set the value at. + * @param value The stakingBridgeAddresses to set. + * @return This builder for chaining. + */ + public Builder setStakingBridgeAddresses( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStakingBridgeAddressesIsMutable(); + stakingBridgeAddresses_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param value The stakingBridgeAddresses to add. + * @return This builder for chaining. + */ + public Builder addStakingBridgeAddresses( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStakingBridgeAddressesIsMutable(); + stakingBridgeAddresses_.add(value); + onChanged(); + return this; + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param values The stakingBridgeAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllStakingBridgeAddresses( + java.lang.Iterable values) { + ensureStakingBridgeAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stakingBridgeAddresses_); + onChanged(); + return this; + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @return This builder for chaining. + */ + public Builder clearStakingBridgeAddresses() { + stakingBridgeAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Staking Bridge addresses for the ethereum network
+       * 
+ * + * repeated string staking_bridge_addresses = 5 [json_name = "stakingBridgeAddresses"]; + * @param value The bytes of the stakingBridgeAddresses to add. + * @return This builder for chaining. + */ + public Builder addStakingBridgeAddressesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStakingBridgeAddressesIsMutable(); + stakingBridgeAddresses_.add(value); onChanged(); return this; } @@ -52716,129 +56018,116 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.ErrorDetail) + // @@protoc_insertion_point(builder_scope:vega.EthereumConfig) } - // @@protoc_insertion_point(class_scope:vega.ErrorDetail) - private static final io.vegaprotocol.vega.Vega.ErrorDetail DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.EthereumConfig) + private static final io.vegaprotocol.vega.Vega.EthereumConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.ErrorDetail(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.EthereumConfig(); } - public static io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ErrorDetail parsePartialFrom( + public EthereumConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorDetail(input, extensionRegistry); + return new EthereumConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.ErrorDetail getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Transaction) + public interface EpochTimestampsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.EpochTimestamps) com.google.protobuf.MessageOrBuilder { /** *
-     * One of the set of Vega commands (proto marshalled)
-     * 
- * - * bytes input_data = 1 [json_name = "inputData"]; - * @return The inputData. - */ - com.google.protobuf.ByteString getInputData(); - - /** - *
-     * A random number used to provide uniqueness and prevent against replay attack
+     * Timestamp of epoch start in nanoseconds, empty if not started
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * uint64 nonce = 2 [json_name = "nonce"]; - * @return The nonce. + * int64 start_time = 1 [json_name = "startTime"]; + * @return The startTime. */ - long getNonce(); + long getStartTime(); /** *
-     * The block height associated to the transaction, this should always be current block height
-     * of the node at the time of sending the Tx and block height is used as a mechanism
-     * for replay protection
+     * Timestamp of epoch end in nanoseconds, empty if not started
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * uint64 block_height = 3 [json_name = "blockHeight"]; - * @return The blockHeight. + * int64 end_time = 2 [json_name = "endTime"]; + * @return The endTime. */ - long getBlockHeight(); + long getEndTime(); /** *
-     * The address of the sender
+     * Height of first block in the epoch
      * 
* - * bytes address = 1001 [json_name = "address"]; - * @return The address. + * uint64 first_block = 3 [json_name = "firstBlock"]; + * @return The firstBlock. */ - com.google.protobuf.ByteString getAddress(); + long getFirstBlock(); /** *
-     * The public key of the sender
+     * Height of last block in the epoch, empty if not ended
      * 
* - * bytes pub_key = 1002 [json_name = "pubKey"]; - * @return The pubKey. + * uint64 last_block = 4 [json_name = "lastBlock"]; + * @return The lastBlock. */ - com.google.protobuf.ByteString getPubKey(); - - public io.vegaprotocol.vega.Vega.Transaction.FromCase getFromCase(); + long getLastBlock(); } /** *
-   * Represents a transaction to be sent to Vega
+   * Describes in both human readable and block time when an epoch spans
    * 
* - * Protobuf type {@code vega.Transaction} + * Protobuf type {@code vega.EpochTimestamps} */ - public static final class Transaction extends + public static final class EpochTimestamps extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Transaction) - TransactionOrBuilder { + // @@protoc_insertion_point(message_implements:vega.EpochTimestamps) + EpochTimestampsOrBuilder { private static final long serialVersionUID = 0L; - // Use Transaction.newBuilder() to construct. - private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use EpochTimestamps.newBuilder() to construct. + private EpochTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Transaction() { - inputData_ = com.google.protobuf.ByteString.EMPTY; + private EpochTimestamps() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Transaction(); + return new EpochTimestamps(); } @java.lang.Override @@ -52846,7 +56135,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Transaction( + private EpochTimestamps( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -52864,29 +56153,24 @@ private Transaction( case 0: done = true; break; - case 10: { + case 8: { - inputData_ = input.readBytes(); + startTime_ = input.readInt64(); break; } case 16: { - nonce_ = input.readUInt64(); + endTime_ = input.readInt64(); break; } case 24: { - blockHeight_ = input.readUInt64(); + firstBlock_ = input.readUInt64(); break; } - case 8010: { - fromCase_ = 1001; - from_ = input.readBytes(); - break; - } - case 8018: { - fromCase_ = 1002; - from_ = input.readBytes(); + case 32: { + + lastBlock_ = input.readUInt64(); break; } default: { @@ -52910,137 +56194,77 @@ private Transaction( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transaction_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochTimestamps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transaction_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochTimestamps_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Transaction.class, io.vegaprotocol.vega.Vega.Transaction.Builder.class); + io.vegaprotocol.vega.Vega.EpochTimestamps.class, io.vegaprotocol.vega.Vega.EpochTimestamps.Builder.class); } - private int fromCase_ = 0; - private java.lang.Object from_; - public enum FromCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ADDRESS(1001), - PUB_KEY(1002), - FROM_NOT_SET(0); - private final int value; - private FromCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FromCase valueOf(int value) { - return forNumber(value); - } - - public static FromCase forNumber(int value) { - switch (value) { - case 1001: return ADDRESS; - case 1002: return PUB_KEY; - case 0: return FROM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public FromCase - getFromCase() { - return FromCase.forNumber( - fromCase_); - } - - public static final int INPUT_DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString inputData_; - /** - *
-     * One of the set of Vega commands (proto marshalled)
-     * 
- * - * bytes input_data = 1 [json_name = "inputData"]; - * @return The inputData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInputData() { - return inputData_; - } - - public static final int NONCE_FIELD_NUMBER = 2; - private long nonce_; + public static final int START_TIME_FIELD_NUMBER = 1; + private long startTime_; /** *
-     * A random number used to provide uniqueness and prevent against replay attack
+     * Timestamp of epoch start in nanoseconds, empty if not started
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * uint64 nonce = 2 [json_name = "nonce"]; - * @return The nonce. + * int64 start_time = 1 [json_name = "startTime"]; + * @return The startTime. */ @java.lang.Override - public long getNonce() { - return nonce_; + public long getStartTime() { + return startTime_; } - public static final int BLOCK_HEIGHT_FIELD_NUMBER = 3; - private long blockHeight_; + public static final int END_TIME_FIELD_NUMBER = 2; + private long endTime_; /** *
-     * The block height associated to the transaction, this should always be current block height
-     * of the node at the time of sending the Tx and block height is used as a mechanism
-     * for replay protection
+     * Timestamp of epoch end in nanoseconds, empty if not started
+     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
      * 
* - * uint64 block_height = 3 [json_name = "blockHeight"]; - * @return The blockHeight. + * int64 end_time = 2 [json_name = "endTime"]; + * @return The endTime. */ @java.lang.Override - public long getBlockHeight() { - return blockHeight_; + public long getEndTime() { + return endTime_; } - public static final int ADDRESS_FIELD_NUMBER = 1001; + public static final int FIRST_BLOCK_FIELD_NUMBER = 3; + private long firstBlock_; /** *
-     * The address of the sender
+     * Height of first block in the epoch
      * 
* - * bytes address = 1001 [json_name = "address"]; - * @return The address. + * uint64 first_block = 3 [json_name = "firstBlock"]; + * @return The firstBlock. */ @java.lang.Override - public com.google.protobuf.ByteString getAddress() { - if (fromCase_ == 1001) { - return (com.google.protobuf.ByteString) from_; - } - return com.google.protobuf.ByteString.EMPTY; + public long getFirstBlock() { + return firstBlock_; } - public static final int PUB_KEY_FIELD_NUMBER = 1002; + public static final int LAST_BLOCK_FIELD_NUMBER = 4; + private long lastBlock_; /** *
-     * The public key of the sender
+     * Height of last block in the epoch, empty if not ended
      * 
* - * bytes pub_key = 1002 [json_name = "pubKey"]; - * @return The pubKey. + * uint64 last_block = 4 [json_name = "lastBlock"]; + * @return The lastBlock. */ @java.lang.Override - public com.google.protobuf.ByteString getPubKey() { - if (fromCase_ == 1002) { - return (com.google.protobuf.ByteString) from_; - } - return com.google.protobuf.ByteString.EMPTY; + public long getLastBlock() { + return lastBlock_; } private byte memoizedIsInitialized = -1; @@ -53057,22 +56281,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!inputData_.isEmpty()) { - output.writeBytes(1, inputData_); - } - if (nonce_ != 0L) { - output.writeUInt64(2, nonce_); + if (startTime_ != 0L) { + output.writeInt64(1, startTime_); } - if (blockHeight_ != 0L) { - output.writeUInt64(3, blockHeight_); + if (endTime_ != 0L) { + output.writeInt64(2, endTime_); } - if (fromCase_ == 1001) { - output.writeBytes( - 1001, (com.google.protobuf.ByteString) from_); + if (firstBlock_ != 0L) { + output.writeUInt64(3, firstBlock_); } - if (fromCase_ == 1002) { - output.writeBytes( - 1002, (com.google.protobuf.ByteString) from_); + if (lastBlock_ != 0L) { + output.writeUInt64(4, lastBlock_); } unknownFields.writeTo(output); } @@ -53083,27 +56302,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!inputData_.isEmpty()) { + if (startTime_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, inputData_); + .computeInt64Size(1, startTime_); } - if (nonce_ != 0L) { + if (endTime_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, nonce_); + .computeInt64Size(2, endTime_); } - if (blockHeight_ != 0L) { + if (firstBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, blockHeight_); + .computeUInt64Size(3, firstBlock_); } - if (fromCase_ == 1001) { + if (lastBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1001, (com.google.protobuf.ByteString) from_); - } - if (fromCase_ == 1002) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1002, (com.google.protobuf.ByteString) from_); + .computeUInt64Size(4, lastBlock_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -53115,30 +56328,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Transaction)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.EpochTimestamps)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Transaction other = (io.vegaprotocol.vega.Vega.Transaction) obj; - - if (!getInputData() - .equals(other.getInputData())) return false; - if (getNonce() - != other.getNonce()) return false; - if (getBlockHeight() - != other.getBlockHeight()) return false; - if (!getFromCase().equals(other.getFromCase())) return false; - switch (fromCase_) { - case 1001: - if (!getAddress() - .equals(other.getAddress())) return false; - break; - case 1002: - if (!getPubKey() - .equals(other.getPubKey())) return false; - break; - case 0: - default: - } + io.vegaprotocol.vega.Vega.EpochTimestamps other = (io.vegaprotocol.vega.Vega.EpochTimestamps) obj; + + if (getStartTime() + != other.getStartTime()) return false; + if (getEndTime() + != other.getEndTime()) return false; + if (getFirstBlock() + != other.getFirstBlock()) return false; + if (getLastBlock() + != other.getLastBlock()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -53150,94 +56352,86 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getInputData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; + getStartTime()); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockHeight()); - switch (fromCase_) { - case 1001: - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - break; - case 1002: - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - break; - case 0: - default: - } + getEndTime()); + hash = (37 * hash) + FIRST_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstBlock()); + hash = (37 * hash) + LAST_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastBlock()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transaction parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transaction parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Transaction parseFrom( + public static io.vegaprotocol.vega.Vega.EpochTimestamps parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -53250,7 +56444,7 @@ public static io.vegaprotocol.vega.Vega.Transaction parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Transaction prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.EpochTimestamps prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -53267,29 +56461,29 @@ protected Builder newBuilderForType( } /** *
-     * Represents a transaction to be sent to Vega
+     * Describes in both human readable and block time when an epoch spans
      * 
* - * Protobuf type {@code vega.Transaction} + * Protobuf type {@code vega.EpochTimestamps} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Transaction) - io.vegaprotocol.vega.Vega.TransactionOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.EpochTimestamps) + io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transaction_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochTimestamps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transaction_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochTimestamps_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Transaction.class, io.vegaprotocol.vega.Vega.Transaction.Builder.class); + io.vegaprotocol.vega.Vega.EpochTimestamps.class, io.vegaprotocol.vega.Vega.EpochTimestamps.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Transaction.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.EpochTimestamps.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -53307,31 +56501,31 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - inputData_ = com.google.protobuf.ByteString.EMPTY; + startTime_ = 0L; - nonce_ = 0L; + endTime_ = 0L; - blockHeight_ = 0L; + firstBlock_ = 0L; + + lastBlock_ = 0L; - fromCase_ = 0; - from_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Transaction_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochTimestamps_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transaction getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Transaction.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.EpochTimestamps getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.EpochTimestamps.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transaction build() { - io.vegaprotocol.vega.Vega.Transaction result = buildPartial(); + public io.vegaprotocol.vega.Vega.EpochTimestamps build() { + io.vegaprotocol.vega.Vega.EpochTimestamps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -53339,18 +56533,12 @@ public io.vegaprotocol.vega.Vega.Transaction build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transaction buildPartial() { - io.vegaprotocol.vega.Vega.Transaction result = new io.vegaprotocol.vega.Vega.Transaction(this); - result.inputData_ = inputData_; - result.nonce_ = nonce_; - result.blockHeight_ = blockHeight_; - if (fromCase_ == 1001) { - result.from_ = from_; - } - if (fromCase_ == 1002) { - result.from_ = from_; - } - result.fromCase_ = fromCase_; + public io.vegaprotocol.vega.Vega.EpochTimestamps buildPartial() { + io.vegaprotocol.vega.Vega.EpochTimestamps result = new io.vegaprotocol.vega.Vega.EpochTimestamps(this); + result.startTime_ = startTime_; + result.endTime_ = endTime_; + result.firstBlock_ = firstBlock_; + result.lastBlock_ = lastBlock_; onBuilt(); return result; } @@ -53389,37 +56577,27 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Transaction) { - return mergeFrom((io.vegaprotocol.vega.Vega.Transaction)other); + if (other instanceof io.vegaprotocol.vega.Vega.EpochTimestamps) { + return mergeFrom((io.vegaprotocol.vega.Vega.EpochTimestamps)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Transaction other) { - if (other == io.vegaprotocol.vega.Vega.Transaction.getDefaultInstance()) return this; - if (other.getInputData() != com.google.protobuf.ByteString.EMPTY) { - setInputData(other.getInputData()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.EpochTimestamps other) { + if (other == io.vegaprotocol.vega.Vega.EpochTimestamps.getDefaultInstance()) return this; + if (other.getStartTime() != 0L) { + setStartTime(other.getStartTime()); } - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); + if (other.getEndTime() != 0L) { + setEndTime(other.getEndTime()); } - if (other.getBlockHeight() != 0L) { - setBlockHeight(other.getBlockHeight()); + if (other.getFirstBlock() != 0L) { + setFirstBlock(other.getFirstBlock()); } - switch (other.getFromCase()) { - case ADDRESS: { - setAddress(other.getAddress()); - break; - } - case PUB_KEY: { - setPubKey(other.getPubKey()); - break; - } - case FROM_NOT_SET: { - break; - } + if (other.getLastBlock() != 0L) { + setLastBlock(other.getLastBlock()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -53436,11 +56614,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Transaction parsedMessage = null; + io.vegaprotocol.vega.Vega.EpochTimestamps parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Transaction) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.EpochTimestamps) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -53449,257 +56627,184 @@ public Builder mergeFrom( } return this; } - private int fromCase_ = 0; - private java.lang.Object from_; - public FromCase - getFromCase() { - return FromCase.forNumber( - fromCase_); - } - - public Builder clearFrom() { - fromCase_ = 0; - from_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString inputData_ = com.google.protobuf.ByteString.EMPTY; + private long startTime_ ; /** *
-       * One of the set of Vega commands (proto marshalled)
+       * Timestamp of epoch start in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * bytes input_data = 1 [json_name = "inputData"]; - * @return The inputData. + * int64 start_time = 1 [json_name = "startTime"]; + * @return The startTime. */ @java.lang.Override - public com.google.protobuf.ByteString getInputData() { - return inputData_; + public long getStartTime() { + return startTime_; } /** *
-       * One of the set of Vega commands (proto marshalled)
+       * Timestamp of epoch start in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * bytes input_data = 1 [json_name = "inputData"]; - * @param value The inputData to set. + * int64 start_time = 1 [json_name = "startTime"]; + * @param value The startTime to set. * @return This builder for chaining. */ - public Builder setInputData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStartTime(long value) { - inputData_ = value; + startTime_ = value; onChanged(); return this; } /** *
-       * One of the set of Vega commands (proto marshalled)
+       * Timestamp of epoch start in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * bytes input_data = 1 [json_name = "inputData"]; + * int64 start_time = 1 [json_name = "startTime"]; * @return This builder for chaining. */ - public Builder clearInputData() { + public Builder clearStartTime() { - inputData_ = getDefaultInstance().getInputData(); + startTime_ = 0L; onChanged(); return this; } - private long nonce_ ; + private long endTime_ ; /** *
-       * A random number used to provide uniqueness and prevent against replay attack
+       * Timestamp of epoch end in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 nonce = 2 [json_name = "nonce"]; - * @return The nonce. + * int64 end_time = 2 [json_name = "endTime"]; + * @return The endTime. */ @java.lang.Override - public long getNonce() { - return nonce_; + public long getEndTime() { + return endTime_; } /** *
-       * A random number used to provide uniqueness and prevent against replay attack
+       * Timestamp of epoch end in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 nonce = 2 [json_name = "nonce"]; - * @param value The nonce to set. + * int64 end_time = 2 [json_name = "endTime"]; + * @param value The endTime to set. * @return This builder for chaining. */ - public Builder setNonce(long value) { + public Builder setEndTime(long value) { - nonce_ = value; + endTime_ = value; onChanged(); return this; } /** *
-       * A random number used to provide uniqueness and prevent against replay attack
+       * Timestamp of epoch end in nanoseconds, empty if not started
+       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
        * 
* - * uint64 nonce = 2 [json_name = "nonce"]; + * int64 end_time = 2 [json_name = "endTime"]; * @return This builder for chaining. */ - public Builder clearNonce() { + public Builder clearEndTime() { - nonce_ = 0L; + endTime_ = 0L; onChanged(); return this; } - private long blockHeight_ ; + private long firstBlock_ ; /** *
-       * The block height associated to the transaction, this should always be current block height
-       * of the node at the time of sending the Tx and block height is used as a mechanism
-       * for replay protection
+       * Height of first block in the epoch
        * 
* - * uint64 block_height = 3 [json_name = "blockHeight"]; - * @return The blockHeight. + * uint64 first_block = 3 [json_name = "firstBlock"]; + * @return The firstBlock. */ @java.lang.Override - public long getBlockHeight() { - return blockHeight_; + public long getFirstBlock() { + return firstBlock_; } /** *
-       * The block height associated to the transaction, this should always be current block height
-       * of the node at the time of sending the Tx and block height is used as a mechanism
-       * for replay protection
+       * Height of first block in the epoch
        * 
* - * uint64 block_height = 3 [json_name = "blockHeight"]; - * @param value The blockHeight to set. + * uint64 first_block = 3 [json_name = "firstBlock"]; + * @param value The firstBlock to set. * @return This builder for chaining. */ - public Builder setBlockHeight(long value) { + public Builder setFirstBlock(long value) { - blockHeight_ = value; + firstBlock_ = value; onChanged(); return this; } /** *
-       * The block height associated to the transaction, this should always be current block height
-       * of the node at the time of sending the Tx and block height is used as a mechanism
-       * for replay protection
+       * Height of first block in the epoch
        * 
* - * uint64 block_height = 3 [json_name = "blockHeight"]; + * uint64 first_block = 3 [json_name = "firstBlock"]; * @return This builder for chaining. */ - public Builder clearBlockHeight() { + public Builder clearFirstBlock() { - blockHeight_ = 0L; + firstBlock_ = 0L; onChanged(); return this; } + private long lastBlock_ ; /** *
-       * The address of the sender
+       * Height of last block in the epoch, empty if not ended
        * 
* - * bytes address = 1001 [json_name = "address"]; - * @return The address. + * uint64 last_block = 4 [json_name = "lastBlock"]; + * @return The lastBlock. */ - public com.google.protobuf.ByteString getAddress() { - if (fromCase_ == 1001) { - return (com.google.protobuf.ByteString) from_; - } - return com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public long getLastBlock() { + return lastBlock_; } /** *
-       * The address of the sender
+       * Height of last block in the epoch, empty if not ended
        * 
* - * bytes address = 1001 [json_name = "address"]; - * @param value The address to set. + * uint64 last_block = 4 [json_name = "lastBlock"]; + * @param value The lastBlock to set. * @return This builder for chaining. */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - fromCase_ = 1001; - from_ = value; + public Builder setLastBlock(long value) { + + lastBlock_ = value; onChanged(); return this; } /** *
-       * The address of the sender
+       * Height of last block in the epoch, empty if not ended
        * 
* - * bytes address = 1001 [json_name = "address"]; + * uint64 last_block = 4 [json_name = "lastBlock"]; * @return This builder for chaining. */ - public Builder clearAddress() { - if (fromCase_ == 1001) { - fromCase_ = 0; - from_ = null; - onChanged(); - } - return this; - } + public Builder clearLastBlock() { - /** - *
-       * The public key of the sender
-       * 
- * - * bytes pub_key = 1002 [json_name = "pubKey"]; - * @return The pubKey. - */ - public com.google.protobuf.ByteString getPubKey() { - if (fromCase_ == 1002) { - return (com.google.protobuf.ByteString) from_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-       * The public key of the sender
-       * 
- * - * bytes pub_key = 1002 [json_name = "pubKey"]; - * @param value The pubKey to set. - * @return This builder for chaining. - */ - public Builder setPubKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - fromCase_ = 1002; - from_ = value; + lastBlock_ = 0L; onChanged(); return this; } - /** - *
-       * The public key of the sender
-       * 
- * - * bytes pub_key = 1002 [json_name = "pubKey"]; - * @return This builder for chaining. - */ - public Builder clearPubKey() { - if (fromCase_ == 1002) { - fromCase_ = 0; - from_ = null; - onChanged(); - } - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -53713,117 +56818,197 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Transaction) + // @@protoc_insertion_point(builder_scope:vega.EpochTimestamps) } - // @@protoc_insertion_point(class_scope:vega.Transaction) - private static final io.vegaprotocol.vega.Vega.Transaction DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.EpochTimestamps) + private static final io.vegaprotocol.vega.Vega.EpochTimestamps DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Transaction(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.EpochTimestamps(); } - public static io.vegaprotocol.vega.Vega.Transaction getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.EpochTimestamps getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Transaction parsePartialFrom( + public EpochTimestamps parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Transaction(input, extensionRegistry); + return new EpochTimestamps(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Transaction getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.EpochTimestamps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.Signature) + public interface EpochOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Epoch) com.google.protobuf.MessageOrBuilder { /** *
-     * The bytes of the signature
+     * Sequence is used as epoch indentifier
      * 
* - * bytes sig = 1 [json_name = "sig"]; - * @return The sig. + * uint64 seq = 1 [json_name = "seq"]; + * @return The seq. */ - com.google.protobuf.ByteString getSig(); + long getSeq(); /** *
-     * The algorithm used to create the signature
+     * Timestamps for start/end etc
      * 
* - * string algo = 2 [json_name = "algo"]; - * @return The algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return Whether the timestamps field is set. */ - java.lang.String getAlgo(); + boolean hasTimestamps(); /** *
-     * The algorithm used to create the signature
+     * Timestamps for start/end etc
      * 
* - * string algo = 2 [json_name = "algo"]; - * @return The bytes for algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return The timestamps. */ - com.google.protobuf.ByteString - getAlgoBytes(); + io.vegaprotocol.vega.Vega.EpochTimestamps getTimestamps(); + /** + *
+     * Timestamps for start/end etc
+     * 
+ * + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + */ + io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder getTimestampsOrBuilder(); /** *
-     * The version of the signature used to create the signature
+     * Validators that participated in this epoch
      * 
* - * uint32 version = 3 [json_name = "version"]; - * @return The version. + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + java.util.List + getValidatorsList(); + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + io.vegaprotocol.vega.Vega.Node getValidators(int index); + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + int getValidatorsCount(); + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + java.util.List + getValidatorsOrBuilderList(); + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + io.vegaprotocol.vega.Vega.NodeOrBuilder getValidatorsOrBuilder( + int index); + + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + java.util.List + getDelegationsList(); + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; */ - int getVersion(); + io.vegaprotocol.vega.Vega.Delegation getDelegations(int index); + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + int getDelegationsCount(); + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + java.util.List + getDelegationsOrBuilderList(); + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder( + int index); } /** - *
-   * A signature to be authenticate a transaction
-   * and to be verified by the vega network
-   * 
- * - * Protobuf type {@code vega.Signature} + * Protobuf type {@code vega.Epoch} */ - public static final class Signature extends + public static final class Epoch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.Signature) - SignatureOrBuilder { + // @@protoc_insertion_point(message_implements:vega.Epoch) + EpochOrBuilder { private static final long serialVersionUID = 0L; - // Use Signature.newBuilder() to construct. - private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Epoch.newBuilder() to construct. + private Epoch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Signature() { - sig_ = com.google.protobuf.ByteString.EMPTY; - algo_ = ""; + private Epoch() { + validators_ = java.util.Collections.emptyList(); + delegations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Signature(); + return new Epoch(); } @java.lang.Override @@ -53831,7 +57016,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Signature( + private Epoch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -53839,6 +57024,7 @@ private Signature( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -53849,20 +57035,40 @@ private Signature( case 0: done = true; break; - case 10: { + case 8: { - sig_ = input.readBytes(); + seq_ = input.readUInt64(); break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); + io.vegaprotocol.vega.Vega.EpochTimestamps.Builder subBuilder = null; + if (timestamps_ != null) { + subBuilder = timestamps_.toBuilder(); + } + timestamps_ = input.readMessage(io.vegaprotocol.vega.Vega.EpochTimestamps.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamps_); + timestamps_ = subBuilder.buildPartial(); + } - algo_ = s; break; } - case 24: { - - version_ = input.readUInt32(); + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validators_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validators_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Node.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + delegations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + delegations_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Delegation.parser(), extensionRegistry)); break; } default: { @@ -53880,97 +57086,200 @@ private Signature( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + validators_ = java.util.Collections.unmodifiableList(validators_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + delegations_ = java.util.Collections.unmodifiableList(delegations_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Signature_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Epoch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Signature_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Epoch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Signature.class, io.vegaprotocol.vega.Vega.Signature.Builder.class); + io.vegaprotocol.vega.Vega.Epoch.class, io.vegaprotocol.vega.Vega.Epoch.Builder.class); } - public static final int SIG_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString sig_; + public static final int SEQ_FIELD_NUMBER = 1; + private long seq_; /** *
-     * The bytes of the signature
+     * Sequence is used as epoch indentifier
      * 
* - * bytes sig = 1 [json_name = "sig"]; - * @return The sig. + * uint64 seq = 1 [json_name = "seq"]; + * @return The seq. */ @java.lang.Override - public com.google.protobuf.ByteString getSig() { - return sig_; + public long getSeq() { + return seq_; } - public static final int ALGO_FIELD_NUMBER = 2; - private volatile java.lang.Object algo_; + public static final int TIMESTAMPS_FIELD_NUMBER = 2; + private io.vegaprotocol.vega.Vega.EpochTimestamps timestamps_; /** *
-     * The algorithm used to create the signature
+     * Timestamps for start/end etc
      * 
* - * string algo = 2 [json_name = "algo"]; - * @return The algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return Whether the timestamps field is set. */ @java.lang.Override - public java.lang.String getAlgo() { - java.lang.Object ref = algo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - algo_ = s; - return s; - } + public boolean hasTimestamps() { + return timestamps_ != null; } /** *
-     * The algorithm used to create the signature
+     * Timestamps for start/end etc
      * 
* - * string algo = 2 [json_name = "algo"]; - * @return The bytes for algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return The timestamps. */ @java.lang.Override - public com.google.protobuf.ByteString - getAlgoBytes() { - java.lang.Object ref = algo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.vegaprotocol.vega.Vega.EpochTimestamps getTimestamps() { + return timestamps_ == null ? io.vegaprotocol.vega.Vega.EpochTimestamps.getDefaultInstance() : timestamps_; + } + /** + *
+     * Timestamps for start/end etc
+     * 
+ * + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder getTimestampsOrBuilder() { + return getTimestamps(); } - public static final int VERSION_FIELD_NUMBER = 3; - private int version_; + public static final int VALIDATORS_FIELD_NUMBER = 3; + private java.util.List validators_; /** *
-     * The version of the signature used to create the signature
+     * Validators that participated in this epoch
      * 
* - * uint32 version = 3 [json_name = "version"]; - * @return The version. + * repeated .vega.Node validators = 3 [json_name = "validators"]; */ @java.lang.Override - public int getVersion() { - return version_; + public java.util.List getValidatorsList() { + return validators_; + } + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + @java.lang.Override + public java.util.List + getValidatorsOrBuilderList() { + return validators_; + } + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + @java.lang.Override + public int getValidatorsCount() { + return validators_.size(); + } + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Node getValidators(int index) { + return validators_.get(index); + } + /** + *
+     * Validators that participated in this epoch
+     * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeOrBuilder getValidatorsOrBuilder( + int index) { + return validators_.get(index); + } + + public static final int DELEGATIONS_FIELD_NUMBER = 4; + private java.util.List delegations_; + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + @java.lang.Override + public java.util.List getDelegationsList() { + return delegations_; + } + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + @java.lang.Override + public java.util.List + getDelegationsOrBuilderList() { + return delegations_; + } + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + @java.lang.Override + public int getDelegationsCount() { + return delegations_.size(); + } + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Delegation getDelegations(int index) { + return delegations_.get(index); + } + /** + *
+     * List of all delegations in epoch
+     * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder( + int index) { + return delegations_.get(index); } private byte memoizedIsInitialized = -1; @@ -53987,14 +57296,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!sig_.isEmpty()) { - output.writeBytes(1, sig_); + if (seq_ != 0L) { + output.writeUInt64(1, seq_); } - if (!getAlgoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, algo_); + if (timestamps_ != null) { + output.writeMessage(2, getTimestamps()); } - if (version_ != 0) { - output.writeUInt32(3, version_); + for (int i = 0; i < validators_.size(); i++) { + output.writeMessage(3, validators_.get(i)); + } + for (int i = 0; i < delegations_.size(); i++) { + output.writeMessage(4, delegations_.get(i)); } unknownFields.writeTo(output); } @@ -54005,16 +57317,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!sig_.isEmpty()) { + if (seq_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, sig_); + .computeUInt64Size(1, seq_); } - if (!getAlgoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, algo_); + if (timestamps_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimestamps()); } - if (version_ != 0) { + for (int i = 0; i < validators_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, version_); + .computeMessageSize(3, validators_.get(i)); + } + for (int i = 0; i < delegations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, delegations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -54026,17 +57343,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.Signature)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Epoch)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.Signature other = (io.vegaprotocol.vega.Vega.Signature) obj; + io.vegaprotocol.vega.Vega.Epoch other = (io.vegaprotocol.vega.Vega.Epoch) obj; - if (!getSig() - .equals(other.getSig())) return false; - if (!getAlgo() - .equals(other.getAlgo())) return false; - if (getVersion() - != other.getVersion()) return false; + if (getSeq() + != other.getSeq()) return false; + if (hasTimestamps() != other.hasTimestamps()) return false; + if (hasTimestamps()) { + if (!getTimestamps() + .equals(other.getTimestamps())) return false; + } + if (!getValidatorsList() + .equals(other.getValidatorsList())) return false; + if (!getDelegationsList() + .equals(other.getDelegationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -54048,80 +57370,89 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIG_FIELD_NUMBER; - hash = (53 * hash) + getSig().hashCode(); - hash = (37 * hash) + ALGO_FIELD_NUMBER; - hash = (53 * hash) + getAlgo().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSeq()); + if (hasTimestamps()) { + hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; + hash = (53 * hash) + getTimestamps().hashCode(); + } + if (getValidatorsCount() > 0) { + hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; + hash = (53 * hash) + getValidatorsList().hashCode(); + } + if (getDelegationsCount() > 0) { + hash = (37 * hash) + DELEGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDelegationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Epoch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Epoch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Signature parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Epoch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Signature parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.Signature parseFrom( + public static io.vegaprotocol.vega.Vega.Epoch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -54134,7 +57465,7 @@ public static io.vegaprotocol.vega.Vega.Signature parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.Signature prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Epoch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -54150,31 +57481,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * A signature to be authenticate a transaction
-     * and to be verified by the vega network
-     * 
- * - * Protobuf type {@code vega.Signature} + * Protobuf type {@code vega.Epoch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.Signature) - io.vegaprotocol.vega.Vega.SignatureOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Epoch) + io.vegaprotocol.vega.Vega.EpochOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Signature_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Epoch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Signature_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Epoch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.Signature.class, io.vegaprotocol.vega.Vega.Signature.Builder.class); + io.vegaprotocol.vega.Vega.Epoch.class, io.vegaprotocol.vega.Vega.Epoch.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.Signature.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Epoch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -54187,34 +57513,50 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getValidatorsFieldBuilder(); + getDelegationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - sig_ = com.google.protobuf.ByteString.EMPTY; - - algo_ = ""; - - version_ = 0; + seq_ = 0L; + if (timestampsBuilder_ == null) { + timestamps_ = null; + } else { + timestamps_ = null; + timestampsBuilder_ = null; + } + if (validatorsBuilder_ == null) { + validators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + validatorsBuilder_.clear(); + } + if (delegationsBuilder_ == null) { + delegations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + delegationsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_Signature_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Epoch_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Signature getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.Signature.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Epoch getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Epoch.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.Signature build() { - io.vegaprotocol.vega.Vega.Signature result = buildPartial(); + public io.vegaprotocol.vega.Vega.Epoch build() { + io.vegaprotocol.vega.Vega.Epoch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -54222,11 +57564,33 @@ public io.vegaprotocol.vega.Vega.Signature build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.Signature buildPartial() { - io.vegaprotocol.vega.Vega.Signature result = new io.vegaprotocol.vega.Vega.Signature(this); - result.sig_ = sig_; - result.algo_ = algo_; - result.version_ = version_; + public io.vegaprotocol.vega.Vega.Epoch buildPartial() { + io.vegaprotocol.vega.Vega.Epoch result = new io.vegaprotocol.vega.Vega.Epoch(this); + int from_bitField0_ = bitField0_; + result.seq_ = seq_; + if (timestampsBuilder_ == null) { + result.timestamps_ = timestamps_; + } else { + result.timestamps_ = timestampsBuilder_.build(); + } + if (validatorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + validators_ = java.util.Collections.unmodifiableList(validators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validators_ = validators_; + } else { + result.validators_ = validatorsBuilder_.build(); + } + if (delegationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + delegations_ = java.util.Collections.unmodifiableList(delegations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.delegations_ = delegations_; + } else { + result.delegations_ = delegationsBuilder_.build(); + } onBuilt(); return result; } @@ -54265,25 +57629,73 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.Signature) { - return mergeFrom((io.vegaprotocol.vega.Vega.Signature)other); + if (other instanceof io.vegaprotocol.vega.Vega.Epoch) { + return mergeFrom((io.vegaprotocol.vega.Vega.Epoch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.Signature other) { - if (other == io.vegaprotocol.vega.Vega.Signature.getDefaultInstance()) return this; - if (other.getSig() != com.google.protobuf.ByteString.EMPTY) { - setSig(other.getSig()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Epoch other) { + if (other == io.vegaprotocol.vega.Vega.Epoch.getDefaultInstance()) return this; + if (other.getSeq() != 0L) { + setSeq(other.getSeq()); } - if (!other.getAlgo().isEmpty()) { - algo_ = other.algo_; - onChanged(); + if (other.hasTimestamps()) { + mergeTimestamps(other.getTimestamps()); } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); + if (validatorsBuilder_ == null) { + if (!other.validators_.isEmpty()) { + if (validators_.isEmpty()) { + validators_ = other.validators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidatorsIsMutable(); + validators_.addAll(other.validators_); + } + onChanged(); + } + } else { + if (!other.validators_.isEmpty()) { + if (validatorsBuilder_.isEmpty()) { + validatorsBuilder_.dispose(); + validatorsBuilder_ = null; + validators_ = other.validators_; + bitField0_ = (bitField0_ & ~0x00000001); + validatorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidatorsFieldBuilder() : null; + } else { + validatorsBuilder_.addAllMessages(other.validators_); + } + } + } + if (delegationsBuilder_ == null) { + if (!other.delegations_.isEmpty()) { + if (delegations_.isEmpty()) { + delegations_ = other.delegations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDelegationsIsMutable(); + delegations_.addAll(other.delegations_); + } + onChanged(); + } + } else { + if (!other.delegations_.isEmpty()) { + if (delegationsBuilder_.isEmpty()) { + delegationsBuilder_.dispose(); + delegationsBuilder_ = null; + delegations_ = other.delegations_; + bitField0_ = (bitField0_ & ~0x00000002); + delegationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDelegationsFieldBuilder() : null; + } else { + delegationsBuilder_.addAllMessages(other.delegations_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -54300,11 +57712,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.Signature parsedMessage = null; + io.vegaprotocol.vega.Vega.Epoch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.Signature) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Epoch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -54313,191 +57725,829 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.ByteString sig_ = com.google.protobuf.ByteString.EMPTY; + private long seq_ ; /** *
-       * The bytes of the signature
+       * Sequence is used as epoch indentifier
        * 
* - * bytes sig = 1 [json_name = "sig"]; - * @return The sig. + * uint64 seq = 1 [json_name = "seq"]; + * @return The seq. */ @java.lang.Override - public com.google.protobuf.ByteString getSig() { - return sig_; + public long getSeq() { + return seq_; } /** *
-       * The bytes of the signature
+       * Sequence is used as epoch indentifier
        * 
* - * bytes sig = 1 [json_name = "sig"]; - * @param value The sig to set. + * uint64 seq = 1 [json_name = "seq"]; + * @param value The seq to set. * @return This builder for chaining. */ - public Builder setSig(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSeq(long value) { - sig_ = value; + seq_ = value; onChanged(); return this; } /** *
-       * The bytes of the signature
+       * Sequence is used as epoch indentifier
        * 
* - * bytes sig = 1 [json_name = "sig"]; + * uint64 seq = 1 [json_name = "seq"]; * @return This builder for chaining. */ - public Builder clearSig() { + public Builder clearSeq() { - sig_ = getDefaultInstance().getSig(); + seq_ = 0L; onChanged(); return this; } - private java.lang.Object algo_ = ""; + private io.vegaprotocol.vega.Vega.EpochTimestamps timestamps_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochTimestamps, io.vegaprotocol.vega.Vega.EpochTimestamps.Builder, io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder> timestampsBuilder_; /** *
-       * The algorithm used to create the signature
+       * Timestamps for start/end etc
        * 
* - * string algo = 2 [json_name = "algo"]; - * @return The algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return Whether the timestamps field is set. */ - public java.lang.String getAlgo() { - java.lang.Object ref = algo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - algo_ = s; - return s; + public boolean hasTimestamps() { + return timestampsBuilder_ != null || timestamps_ != null; + } + /** + *
+       * Timestamps for start/end etc
+       * 
+ * + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + * @return The timestamps. + */ + public io.vegaprotocol.vega.Vega.EpochTimestamps getTimestamps() { + if (timestampsBuilder_ == null) { + return timestamps_ == null ? io.vegaprotocol.vega.Vega.EpochTimestamps.getDefaultInstance() : timestamps_; } else { - return (java.lang.String) ref; + return timestampsBuilder_.getMessage(); } } /** *
-       * The algorithm used to create the signature
+       * Timestamps for start/end etc
        * 
* - * string algo = 2 [json_name = "algo"]; - * @return The bytes for algo. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - public com.google.protobuf.ByteString - getAlgoBytes() { - java.lang.Object ref = algo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algo_ = b; - return b; + public Builder setTimestamps(io.vegaprotocol.vega.Vega.EpochTimestamps value) { + if (timestampsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timestamps_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + timestampsBuilder_.setMessage(value); } + + return this; } /** *
-       * The algorithm used to create the signature
+       * Timestamps for start/end etc
        * 
* - * string algo = 2 [json_name = "algo"]; - * @param value The algo to set. - * @return This builder for chaining. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - public Builder setAlgo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimestamps( + io.vegaprotocol.vega.Vega.EpochTimestamps.Builder builderForValue) { + if (timestampsBuilder_ == null) { + timestamps_ = builderForValue.build(); + onChanged(); + } else { + timestampsBuilder_.setMessage(builderForValue.build()); + } - algo_ = value; - onChanged(); return this; } /** *
-       * The algorithm used to create the signature
+       * Timestamps for start/end etc
        * 
* - * string algo = 2 [json_name = "algo"]; - * @return This builder for chaining. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - public Builder clearAlgo() { + public Builder mergeTimestamps(io.vegaprotocol.vega.Vega.EpochTimestamps value) { + if (timestampsBuilder_ == null) { + if (timestamps_ != null) { + timestamps_ = + io.vegaprotocol.vega.Vega.EpochTimestamps.newBuilder(timestamps_).mergeFrom(value).buildPartial(); + } else { + timestamps_ = value; + } + onChanged(); + } else { + timestampsBuilder_.mergeFrom(value); + } - algo_ = getDefaultInstance().getAlgo(); - onChanged(); return this; } /** *
-       * The algorithm used to create the signature
+       * Timestamps for start/end etc
        * 
* - * string algo = 2 [json_name = "algo"]; - * @param value The bytes for algo to set. - * @return This builder for chaining. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - public Builder setAlgoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearTimestamps() { + if (timestampsBuilder_ == null) { + timestamps_ = null; + onChanged(); + } else { + timestamps_ = null; + timestampsBuilder_ = null; + } - algo_ = value; - onChanged(); return this; } + /** + *
+       * Timestamps for start/end etc
+       * 
+ * + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } + */ + public io.vegaprotocol.vega.Vega.EpochTimestamps.Builder getTimestampsBuilder() { - private int version_ ; + onChanged(); + return getTimestampsFieldBuilder().getBuilder(); + } /** *
-       * The version of the signature used to create the signature
+       * Timestamps for start/end etc
        * 
* - * uint32 version = 3 [json_name = "version"]; - * @return The version. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - @java.lang.Override - public int getVersion() { - return version_; + public io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder getTimestampsOrBuilder() { + if (timestampsBuilder_ != null) { + return timestampsBuilder_.getMessageOrBuilder(); + } else { + return timestamps_ == null ? + io.vegaprotocol.vega.Vega.EpochTimestamps.getDefaultInstance() : timestamps_; + } } /** *
-       * The version of the signature used to create the signature
+       * Timestamps for start/end etc
        * 
* - * uint32 version = 3 [json_name = "version"]; - * @param value The version to set. - * @return This builder for chaining. + * .vega.EpochTimestamps timestamps = 2 [json_name = "timestamps", (.validator.field) = { ... } */ - public Builder setVersion(int value) { + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochTimestamps, io.vegaprotocol.vega.Vega.EpochTimestamps.Builder, io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder> + getTimestampsFieldBuilder() { + if (timestampsBuilder_ == null) { + timestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochTimestamps, io.vegaprotocol.vega.Vega.EpochTimestamps.Builder, io.vegaprotocol.vega.Vega.EpochTimestampsOrBuilder>( + getTimestamps(), + getParentForChildren(), + isClean()); + timestamps_ = null; + } + return timestampsBuilder_; + } - version_ = value; - onChanged(); + private java.util.List validators_ = + java.util.Collections.emptyList(); + private void ensureValidatorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validators_ = new java.util.ArrayList(validators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Node, io.vegaprotocol.vega.Vega.Node.Builder, io.vegaprotocol.vega.Vega.NodeOrBuilder> validatorsBuilder_; + + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public java.util.List getValidatorsList() { + if (validatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validators_); + } else { + return validatorsBuilder_.getMessageList(); + } + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public int getValidatorsCount() { + if (validatorsBuilder_ == null) { + return validators_.size(); + } else { + return validatorsBuilder_.getCount(); + } + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.Vega.Node getValidators(int index) { + if (validatorsBuilder_ == null) { + return validators_.get(index); + } else { + return validatorsBuilder_.getMessage(index); + } + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder setValidators( + int index, io.vegaprotocol.vega.Vega.Node value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.set(index, value); + onChanged(); + } else { + validatorsBuilder_.setMessage(index, value); + } return this; } /** *
-       * The version of the signature used to create the signature
+       * Validators that participated in this epoch
        * 
* - * uint32 version = 3 [json_name = "version"]; - * @return This builder for chaining. + * repeated .vega.Node validators = 3 [json_name = "validators"]; */ - public Builder clearVersion() { + public Builder setValidators( + int index, io.vegaprotocol.vega.Vega.Node.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.set(index, builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder addValidators(io.vegaprotocol.vega.Vega.Node value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.add(value); + onChanged(); + } else { + validatorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder addValidators( + int index, io.vegaprotocol.vega.Vega.Node value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.add(index, value); + onChanged(); + } else { + validatorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder addValidators( + io.vegaprotocol.vega.Vega.Node.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.add(builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder addValidators( + int index, io.vegaprotocol.vega.Vega.Node.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.add(index, builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder addAllValidators( + java.lang.Iterable values) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validators_); + onChanged(); + } else { + validatorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder clearValidators() { + if (validatorsBuilder_ == null) { + validators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + validatorsBuilder_.clear(); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public Builder removeValidators(int index) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.remove(index); + onChanged(); + } else { + validatorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.Vega.Node.Builder getValidatorsBuilder( + int index) { + return getValidatorsFieldBuilder().getBuilder(index); + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.Vega.NodeOrBuilder getValidatorsOrBuilder( + int index) { + if (validatorsBuilder_ == null) { + return validators_.get(index); } else { + return validatorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public java.util.List + getValidatorsOrBuilderList() { + if (validatorsBuilder_ != null) { + return validatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validators_); + } + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.Vega.Node.Builder addValidatorsBuilder() { + return getValidatorsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Node.getDefaultInstance()); + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.Vega.Node.Builder addValidatorsBuilder( + int index) { + return getValidatorsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Node.getDefaultInstance()); + } + /** + *
+       * Validators that participated in this epoch
+       * 
+ * + * repeated .vega.Node validators = 3 [json_name = "validators"]; + */ + public java.util.List + getValidatorsBuilderList() { + return getValidatorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Node, io.vegaprotocol.vega.Vega.Node.Builder, io.vegaprotocol.vega.Vega.NodeOrBuilder> + getValidatorsFieldBuilder() { + if (validatorsBuilder_ == null) { + validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Node, io.vegaprotocol.vega.Vega.Node.Builder, io.vegaprotocol.vega.Vega.NodeOrBuilder>( + validators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + validators_ = null; + } + return validatorsBuilder_; + } - version_ = 0; - onChanged(); + private java.util.List delegations_ = + java.util.Collections.emptyList(); + private void ensureDelegationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + delegations_ = new java.util.ArrayList(delegations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder> delegationsBuilder_; + + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public java.util.List getDelegationsList() { + if (delegationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(delegations_); + } else { + return delegationsBuilder_.getMessageList(); + } + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public int getDelegationsCount() { + if (delegationsBuilder_ == null) { + return delegations_.size(); + } else { + return delegationsBuilder_.getCount(); + } + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation getDelegations(int index) { + if (delegationsBuilder_ == null) { + return delegations_.get(index); + } else { + return delegationsBuilder_.getMessage(index); + } + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder setDelegations( + int index, io.vegaprotocol.vega.Vega.Delegation value) { + if (delegationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDelegationsIsMutable(); + delegations_.set(index, value); + onChanged(); + } else { + delegationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder setDelegations( + int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delegationsBuilder_ == null) { + ensureDelegationsIsMutable(); + delegations_.set(index, builderForValue.build()); + onChanged(); + } else { + delegationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder addDelegations(io.vegaprotocol.vega.Vega.Delegation value) { + if (delegationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDelegationsIsMutable(); + delegations_.add(value); + onChanged(); + } else { + delegationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder addDelegations( + int index, io.vegaprotocol.vega.Vega.Delegation value) { + if (delegationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDelegationsIsMutable(); + delegations_.add(index, value); + onChanged(); + } else { + delegationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder addDelegations( + io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delegationsBuilder_ == null) { + ensureDelegationsIsMutable(); + delegations_.add(builderForValue.build()); + onChanged(); + } else { + delegationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder addDelegations( + int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delegationsBuilder_ == null) { + ensureDelegationsIsMutable(); + delegations_.add(index, builderForValue.build()); + onChanged(); + } else { + delegationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder addAllDelegations( + java.lang.Iterable values) { + if (delegationsBuilder_ == null) { + ensureDelegationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, delegations_); + onChanged(); + } else { + delegationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder clearDelegations() { + if (delegationsBuilder_ == null) { + delegations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + delegationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public Builder removeDelegations(int index) { + if (delegationsBuilder_ == null) { + ensureDelegationsIsMutable(); + delegations_.remove(index); + onChanged(); + } else { + delegationsBuilder_.remove(index); + } return this; } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder getDelegationsBuilder( + int index) { + return getDelegationsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelegationsOrBuilder( + int index) { + if (delegationsBuilder_ == null) { + return delegations_.get(index); } else { + return delegationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public java.util.List + getDelegationsOrBuilderList() { + if (delegationsBuilder_ != null) { + return delegationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(delegations_); + } + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder addDelegationsBuilder() { + return getDelegationsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance()); + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder addDelegationsBuilder( + int index) { + return getDelegationsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance()); + } + /** + *
+       * List of all delegations in epoch
+       * 
+ * + * repeated .vega.Delegation delegations = 4 [json_name = "delegations"]; + */ + public java.util.List + getDelegationsBuilderList() { + return getDelegationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder> + getDelegationsFieldBuilder() { + if (delegationsBuilder_ == null) { + delegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder>( + delegations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + delegations_ = null; + } + return delegationsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -54511,112 +58561,103 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.Signature) + // @@protoc_insertion_point(builder_scope:vega.Epoch) } - // @@protoc_insertion_point(class_scope:vega.Signature) - private static final io.vegaprotocol.vega.Vega.Signature DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.Epoch) + private static final io.vegaprotocol.vega.Vega.Epoch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Signature(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Epoch(); } - public static io.vegaprotocol.vega.Vega.Signature getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.Epoch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Signature parsePartialFrom( + public Epoch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); + return new Epoch(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.Signature getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.Epoch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SignedBundleOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.SignedBundle) + public interface EpochParticipationOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.EpochParticipation) com.google.protobuf.MessageOrBuilder { /** - *
-     * Transaction payload (proto marshalled)
-     * 
- * - * bytes tx = 1 [json_name = "tx"]; - * @return The tx. + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return Whether the epoch field is set. + */ + boolean hasEpoch(); + /** + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return The epoch. */ - com.google.protobuf.ByteString getTx(); + io.vegaprotocol.vega.Vega.Epoch getEpoch(); + /** + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + */ + io.vegaprotocol.vega.Vega.EpochOrBuilder getEpochOrBuilder(); /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return Whether the sig field is set. + * uint64 offline = 2 [json_name = "offline"]; + * @return The offline. */ - boolean hasSig(); + long getOffline(); + /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return The sig. + * uint64 online = 3 [json_name = "online"]; + * @return The online. */ - io.vegaprotocol.vega.Vega.Signature getSig(); + long getOnline(); + /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * double total_rewards = 4 [json_name = "totalRewards"]; + * @return The totalRewards. */ - io.vegaprotocol.vega.Vega.SignatureOrBuilder getSigOrBuilder(); + double getTotalRewards(); } /** - *
-   * A bundle of a transaction and it's signature
-   * 
- * - * Protobuf type {@code vega.SignedBundle} + * Protobuf type {@code vega.EpochParticipation} */ - public static final class SignedBundle extends + public static final class EpochParticipation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.SignedBundle) - SignedBundleOrBuilder { + // @@protoc_insertion_point(message_implements:vega.EpochParticipation) + EpochParticipationOrBuilder { private static final long serialVersionUID = 0L; - // Use SignedBundle.newBuilder() to construct. - private SignedBundle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use EpochParticipation.newBuilder() to construct. + private EpochParticipation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SignedBundle() { - tx_ = com.google.protobuf.ByteString.EMPTY; + private EpochParticipation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SignedBundle(); + return new EpochParticipation(); } @java.lang.Override @@ -54624,7 +58665,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SignedBundle( + private EpochParticipation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54643,23 +58684,33 @@ private SignedBundle( done = true; break; case 10: { - - tx_ = input.readBytes(); - break; - } - case 18: { - io.vegaprotocol.vega.Vega.Signature.Builder subBuilder = null; - if (sig_ != null) { - subBuilder = sig_.toBuilder(); + io.vegaprotocol.vega.Vega.Epoch.Builder subBuilder = null; + if (epoch_ != null) { + subBuilder = epoch_.toBuilder(); } - sig_ = input.readMessage(io.vegaprotocol.vega.Vega.Signature.parser(), extensionRegistry); + epoch_ = input.readMessage(io.vegaprotocol.vega.Vega.Epoch.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(sig_); - sig_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(epoch_); + epoch_ = subBuilder.buildPartial(); } break; } + case 16: { + + offline_ = input.readUInt64(); + break; + } + case 24: { + + online_ = input.readUInt64(); + break; + } + case 33: { + + totalRewards_ = input.readDouble(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -54681,68 +58732,74 @@ private SignedBundle( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_SignedBundle_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochParticipation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_SignedBundle_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochParticipation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.SignedBundle.class, io.vegaprotocol.vega.Vega.SignedBundle.Builder.class); + io.vegaprotocol.vega.Vega.EpochParticipation.class, io.vegaprotocol.vega.Vega.EpochParticipation.Builder.class); } - public static final int TX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString tx_; + public static final int EPOCH_FIELD_NUMBER = 1; + private io.vegaprotocol.vega.Vega.Epoch epoch_; /** - *
-     * Transaction payload (proto marshalled)
-     * 
- * - * bytes tx = 1 [json_name = "tx"]; - * @return The tx. + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return Whether the epoch field is set. */ @java.lang.Override - public com.google.protobuf.ByteString getTx() { - return tx_; + public boolean hasEpoch() { + return epoch_ != null; + } + /** + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return The epoch. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Epoch getEpoch() { + return epoch_ == null ? io.vegaprotocol.vega.Vega.Epoch.getDefaultInstance() : epoch_; + } + /** + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.EpochOrBuilder getEpochOrBuilder() { + return getEpoch(); } - public static final int SIG_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.Vega.Signature sig_; + public static final int OFFLINE_FIELD_NUMBER = 2; + private long offline_; /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return Whether the sig field is set. + * uint64 offline = 2 [json_name = "offline"]; + * @return The offline. */ @java.lang.Override - public boolean hasSig() { - return sig_ != null; + public long getOffline() { + return offline_; } + + public static final int ONLINE_FIELD_NUMBER = 3; + private long online_; /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return The sig. + * uint64 online = 3 [json_name = "online"]; + * @return The online. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.Signature getSig() { - return sig_ == null ? io.vegaprotocol.vega.Vega.Signature.getDefaultInstance() : sig_; + public long getOnline() { + return online_; } + + public static final int TOTAL_REWARDS_FIELD_NUMBER = 4; + private double totalRewards_; /** - *
-     * The signature authenticating the transaction
-     * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * double total_rewards = 4 [json_name = "totalRewards"]; + * @return The totalRewards. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.SignatureOrBuilder getSigOrBuilder() { - return getSig(); + public double getTotalRewards() { + return totalRewards_; } private byte memoizedIsInitialized = -1; @@ -54759,11 +58816,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!tx_.isEmpty()) { - output.writeBytes(1, tx_); + if (epoch_ != null) { + output.writeMessage(1, getEpoch()); + } + if (offline_ != 0L) { + output.writeUInt64(2, offline_); } - if (sig_ != null) { - output.writeMessage(2, getSig()); + if (online_ != 0L) { + output.writeUInt64(3, online_); + } + if (totalRewards_ != 0D) { + output.writeDouble(4, totalRewards_); } unknownFields.writeTo(output); } @@ -54774,13 +58837,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!tx_.isEmpty()) { + if (epoch_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEpoch()); + } + if (offline_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, tx_); + .computeUInt64Size(2, offline_); } - if (sig_ != null) { + if (online_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSig()); + .computeUInt64Size(3, online_); + } + if (totalRewards_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, totalRewards_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -54792,18 +58863,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.SignedBundle)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.EpochParticipation)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.SignedBundle other = (io.vegaprotocol.vega.Vega.SignedBundle) obj; + io.vegaprotocol.vega.Vega.EpochParticipation other = (io.vegaprotocol.vega.Vega.EpochParticipation) obj; - if (!getTx() - .equals(other.getTx())) return false; - if (hasSig() != other.hasSig()) return false; - if (hasSig()) { - if (!getSig() - .equals(other.getSig())) return false; + if (hasEpoch() != other.hasEpoch()) return false; + if (hasEpoch()) { + if (!getEpoch() + .equals(other.getEpoch())) return false; } + if (getOffline() + != other.getOffline()) return false; + if (getOnline() + != other.getOnline()) return false; + if (java.lang.Double.doubleToLongBits(getTotalRewards()) + != java.lang.Double.doubleToLongBits( + other.getTotalRewards())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -54815,80 +58891,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - if (hasSig()) { - hash = (37 * hash) + SIG_FIELD_NUMBER; - hash = (53 * hash) + getSig().hashCode(); + if (hasEpoch()) { + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + getEpoch().hashCode(); } + hash = (37 * hash) + OFFLINE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffline()); + hash = (37 * hash) + ONLINE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOnline()); + hash = (37 * hash) + TOTAL_REWARDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalRewards())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochParticipation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( + public static io.vegaprotocol.vega.Vega.EpochParticipation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -54901,7 +58984,7 @@ public static io.vegaprotocol.vega.Vega.SignedBundle parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.SignedBundle prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.EpochParticipation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -54917,30 +59000,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * A bundle of a transaction and it's signature
-     * 
- * - * Protobuf type {@code vega.SignedBundle} + * Protobuf type {@code vega.EpochParticipation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.SignedBundle) - io.vegaprotocol.vega.Vega.SignedBundleOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.EpochParticipation) + io.vegaprotocol.vega.Vega.EpochParticipationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_SignedBundle_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochParticipation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_SignedBundle_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochParticipation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.SignedBundle.class, io.vegaprotocol.vega.Vega.SignedBundle.Builder.class); + io.vegaprotocol.vega.Vega.EpochParticipation.class, io.vegaprotocol.vega.Vega.EpochParticipation.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.SignedBundle.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.EpochParticipation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -54958,31 +59037,35 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - tx_ = com.google.protobuf.ByteString.EMPTY; - - if (sigBuilder_ == null) { - sig_ = null; + if (epochBuilder_ == null) { + epoch_ = null; } else { - sig_ = null; - sigBuilder_ = null; + epoch_ = null; + epochBuilder_ = null; } + offline_ = 0L; + + online_ = 0L; + + totalRewards_ = 0D; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_SignedBundle_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochParticipation_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundle getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.SignedBundle.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.EpochParticipation getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.EpochParticipation.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundle build() { - io.vegaprotocol.vega.Vega.SignedBundle result = buildPartial(); + public io.vegaprotocol.vega.Vega.EpochParticipation build() { + io.vegaprotocol.vega.Vega.EpochParticipation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -54990,14 +59073,16 @@ public io.vegaprotocol.vega.Vega.SignedBundle build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundle buildPartial() { - io.vegaprotocol.vega.Vega.SignedBundle result = new io.vegaprotocol.vega.Vega.SignedBundle(this); - result.tx_ = tx_; - if (sigBuilder_ == null) { - result.sig_ = sig_; + public io.vegaprotocol.vega.Vega.EpochParticipation buildPartial() { + io.vegaprotocol.vega.Vega.EpochParticipation result = new io.vegaprotocol.vega.Vega.EpochParticipation(this); + if (epochBuilder_ == null) { + result.epoch_ = epoch_; } else { - result.sig_ = sigBuilder_.build(); + result.epoch_ = epochBuilder_.build(); } + result.offline_ = offline_; + result.online_ = online_; + result.totalRewards_ = totalRewards_; onBuilt(); return result; } @@ -55036,21 +59121,27 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.SignedBundle) { - return mergeFrom((io.vegaprotocol.vega.Vega.SignedBundle)other); + if (other instanceof io.vegaprotocol.vega.Vega.EpochParticipation) { + return mergeFrom((io.vegaprotocol.vega.Vega.EpochParticipation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.SignedBundle other) { - if (other == io.vegaprotocol.vega.Vega.SignedBundle.getDefaultInstance()) return this; - if (other.getTx() != com.google.protobuf.ByteString.EMPTY) { - setTx(other.getTx()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.EpochParticipation other) { + if (other == io.vegaprotocol.vega.Vega.EpochParticipation.getDefaultInstance()) return this; + if (other.hasEpoch()) { + mergeEpoch(other.getEpoch()); } - if (other.hasSig()) { - mergeSig(other.getSig()); + if (other.getOffline() != 0L) { + setOffline(other.getOffline()); + } + if (other.getOnline() != 0L) { + setOnline(other.getOnline()); + } + if (other.getTotalRewards() != 0D) { + setTotalRewards(other.getTotalRewards()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -55067,11 +59158,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.SignedBundle parsedMessage = null; + io.vegaprotocol.vega.Vega.EpochParticipation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.SignedBundle) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.EpochParticipation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -55081,205 +59172,216 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Transaction payload (proto marshalled)
-       * 
- * - * bytes tx = 1 [json_name = "tx"]; - * @return The tx. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTx() { - return tx_; - } - /** - *
-       * Transaction payload (proto marshalled)
-       * 
- * - * bytes tx = 1 [json_name = "tx"]; - * @param value The tx to set. - * @return This builder for chaining. - */ - public Builder setTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - *
-       * Transaction payload (proto marshalled)
-       * 
- * - * bytes tx = 1 [json_name = "tx"]; - * @return This builder for chaining. - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - - private io.vegaprotocol.vega.Vega.Signature sig_; + private io.vegaprotocol.vega.Vega.Epoch epoch_; private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Signature, io.vegaprotocol.vega.Vega.Signature.Builder, io.vegaprotocol.vega.Vega.SignatureOrBuilder> sigBuilder_; + io.vegaprotocol.vega.Vega.Epoch, io.vegaprotocol.vega.Vega.Epoch.Builder, io.vegaprotocol.vega.Vega.EpochOrBuilder> epochBuilder_; /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return Whether the sig field is set. + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return Whether the epoch field is set. */ - public boolean hasSig() { - return sigBuilder_ != null || sig_ != null; + public boolean hasEpoch() { + return epochBuilder_ != null || epoch_ != null; } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; - * @return The sig. + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } + * @return The epoch. */ - public io.vegaprotocol.vega.Vega.Signature getSig() { - if (sigBuilder_ == null) { - return sig_ == null ? io.vegaprotocol.vega.Vega.Signature.getDefaultInstance() : sig_; + public io.vegaprotocol.vega.Vega.Epoch getEpoch() { + if (epochBuilder_ == null) { + return epoch_ == null ? io.vegaprotocol.vega.Vega.Epoch.getDefaultInstance() : epoch_; } else { - return sigBuilder_.getMessage(); + return epochBuilder_.getMessage(); } } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public Builder setSig(io.vegaprotocol.vega.Vega.Signature value) { - if (sigBuilder_ == null) { + public Builder setEpoch(io.vegaprotocol.vega.Vega.Epoch value) { + if (epochBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sig_ = value; + epoch_ = value; onChanged(); } else { - sigBuilder_.setMessage(value); + epochBuilder_.setMessage(value); } return this; } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public Builder setSig( - io.vegaprotocol.vega.Vega.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - sig_ = builderForValue.build(); + public Builder setEpoch( + io.vegaprotocol.vega.Vega.Epoch.Builder builderForValue) { + if (epochBuilder_ == null) { + epoch_ = builderForValue.build(); onChanged(); } else { - sigBuilder_.setMessage(builderForValue.build()); + epochBuilder_.setMessage(builderForValue.build()); } return this; } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public Builder mergeSig(io.vegaprotocol.vega.Vega.Signature value) { - if (sigBuilder_ == null) { - if (sig_ != null) { - sig_ = - io.vegaprotocol.vega.Vega.Signature.newBuilder(sig_).mergeFrom(value).buildPartial(); + public Builder mergeEpoch(io.vegaprotocol.vega.Vega.Epoch value) { + if (epochBuilder_ == null) { + if (epoch_ != null) { + epoch_ = + io.vegaprotocol.vega.Vega.Epoch.newBuilder(epoch_).mergeFrom(value).buildPartial(); } else { - sig_ = value; + epoch_ = value; } onChanged(); } else { - sigBuilder_.mergeFrom(value); + epochBuilder_.mergeFrom(value); } return this; } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public Builder clearSig() { - if (sigBuilder_ == null) { - sig_ = null; + public Builder clearEpoch() { + if (epochBuilder_ == null) { + epoch_ = null; onChanged(); } else { - sig_ = null; - sigBuilder_ = null; + epoch_ = null; + epochBuilder_ = null; } return this; } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public io.vegaprotocol.vega.Vega.Signature.Builder getSigBuilder() { + public io.vegaprotocol.vega.Vega.Epoch.Builder getEpochBuilder() { onChanged(); - return getSigFieldBuilder().getBuilder(); + return getEpochFieldBuilder().getBuilder(); } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ - public io.vegaprotocol.vega.Vega.SignatureOrBuilder getSigOrBuilder() { - if (sigBuilder_ != null) { - return sigBuilder_.getMessageOrBuilder(); + public io.vegaprotocol.vega.Vega.EpochOrBuilder getEpochOrBuilder() { + if (epochBuilder_ != null) { + return epochBuilder_.getMessageOrBuilder(); } else { - return sig_ == null ? - io.vegaprotocol.vega.Vega.Signature.getDefaultInstance() : sig_; + return epoch_ == null ? + io.vegaprotocol.vega.Vega.Epoch.getDefaultInstance() : epoch_; } } /** - *
-       * The signature authenticating the transaction
-       * 
- * - * .vega.Signature sig = 2 [json_name = "sig"]; + * .vega.Epoch epoch = 1 [json_name = "epoch", (.validator.field) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Signature, io.vegaprotocol.vega.Vega.Signature.Builder, io.vegaprotocol.vega.Vega.SignatureOrBuilder> - getSigFieldBuilder() { - if (sigBuilder_ == null) { - sigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Signature, io.vegaprotocol.vega.Vega.Signature.Builder, io.vegaprotocol.vega.Vega.SignatureOrBuilder>( - getSig(), + io.vegaprotocol.vega.Vega.Epoch, io.vegaprotocol.vega.Vega.Epoch.Builder, io.vegaprotocol.vega.Vega.EpochOrBuilder> + getEpochFieldBuilder() { + if (epochBuilder_ == null) { + epochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.Epoch, io.vegaprotocol.vega.Vega.Epoch.Builder, io.vegaprotocol.vega.Vega.EpochOrBuilder>( + getEpoch(), getParentForChildren(), isClean()); - sig_ = null; + epoch_ = null; } - return sigBuilder_; + return epochBuilder_; + } + + private long offline_ ; + /** + * uint64 offline = 2 [json_name = "offline"]; + * @return The offline. + */ + @java.lang.Override + public long getOffline() { + return offline_; + } + /** + * uint64 offline = 2 [json_name = "offline"]; + * @param value The offline to set. + * @return This builder for chaining. + */ + public Builder setOffline(long value) { + + offline_ = value; + onChanged(); + return this; + } + /** + * uint64 offline = 2 [json_name = "offline"]; + * @return This builder for chaining. + */ + public Builder clearOffline() { + + offline_ = 0L; + onChanged(); + return this; + } + + private long online_ ; + /** + * uint64 online = 3 [json_name = "online"]; + * @return The online. + */ + @java.lang.Override + public long getOnline() { + return online_; + } + /** + * uint64 online = 3 [json_name = "online"]; + * @param value The online to set. + * @return This builder for chaining. + */ + public Builder setOnline(long value) { + + online_ = value; + onChanged(); + return this; + } + /** + * uint64 online = 3 [json_name = "online"]; + * @return This builder for chaining. + */ + public Builder clearOnline() { + + online_ = 0L; + onChanged(); + return this; + } + + private double totalRewards_ ; + /** + * double total_rewards = 4 [json_name = "totalRewards"]; + * @return The totalRewards. + */ + @java.lang.Override + public double getTotalRewards() { + return totalRewards_; + } + /** + * double total_rewards = 4 [json_name = "totalRewards"]; + * @param value The totalRewards to set. + * @return This builder for chaining. + */ + public Builder setTotalRewards(double value) { + + totalRewards_ = value; + onChanged(); + return this; + } + /** + * double total_rewards = 4 [json_name = "totalRewards"]; + * @return This builder for chaining. + */ + public Builder clearTotalRewards() { + + totalRewards_ = 0D; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -55294,116 +59396,100 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.SignedBundle) + // @@protoc_insertion_point(builder_scope:vega.EpochParticipation) } - // @@protoc_insertion_point(class_scope:vega.SignedBundle) - private static final io.vegaprotocol.vega.Vega.SignedBundle DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.EpochParticipation) + private static final io.vegaprotocol.vega.Vega.EpochParticipation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.SignedBundle(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.EpochParticipation(); } - public static io.vegaprotocol.vega.Vega.SignedBundle getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.EpochParticipation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SignedBundle parsePartialFrom( + public EpochParticipation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignedBundle(input, extensionRegistry); + return new EpochParticipation(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundle getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.EpochParticipation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NetworkParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.NetworkParameter) + public interface EpochDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.EpochData) com.google.protobuf.MessageOrBuilder { /** *
-     * The unique key
+     * Total number of epochs since node was created
      * 
* - * string key = 1 [json_name = "key"]; - * @return The key. + * int32 total = 1 [json_name = "total"]; + * @return The total. */ - java.lang.String getKey(); - /** - *
-     * The unique key
-     * 
- * - * string key = 1 [json_name = "key"]; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + int getTotal(); /** *
-     * The value for the network parameter
+     * Total number of offline epochs since node was created
      * 
* - * string value = 2 [json_name = "value"]; - * @return The value. + * int32 offline = 2 [json_name = "offline"]; + * @return The offline. */ - java.lang.String getValue(); + int getOffline(); + /** *
-     * The value for the network parameter
+     * Total number of online epochs since node was created
      * 
* - * string value = 2 [json_name = "value"]; - * @return The bytes for value. + * int32 online = 3 [json_name = "online"]; + * @return The online. */ - com.google.protobuf.ByteString - getValueBytes(); + int getOnline(); } /** - *
-   * Represents a network parameter on Vega
-   * 
- * - * Protobuf type {@code vega.NetworkParameter} + * Protobuf type {@code vega.EpochData} */ - public static final class NetworkParameter extends + public static final class EpochData extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.NetworkParameter) - NetworkParameterOrBuilder { + // @@protoc_insertion_point(message_implements:vega.EpochData) + EpochDataOrBuilder { private static final long serialVersionUID = 0L; - // Use NetworkParameter.newBuilder() to construct. - private NetworkParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use EpochData.newBuilder() to construct. + private EpochData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkParameter() { - key_ = ""; - value_ = ""; + private EpochData() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NetworkParameter(); + return new EpochData(); } @java.lang.Override @@ -55411,7 +59497,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private NetworkParameter( + private EpochData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -55429,16 +59515,19 @@ private NetworkParameter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - key_ = s; + total_ = input.readInt32(); break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: { - value_ = s; + offline_ = input.readInt32(); + break; + } + case 24: { + + online_ = input.readInt32(); break; } default: { @@ -55453,116 +59542,69 @@ private NetworkParameter( } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.NetworkParameter.class, io.vegaprotocol.vega.Vega.NetworkParameter.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     * The unique key
-     * 
- * - * string key = 1 [json_name = "key"]; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.EpochData.class, io.vegaprotocol.vega.Vega.EpochData.Builder.class); + } + + public static final int TOTAL_FIELD_NUMBER = 1; + private int total_; /** *
-     * The unique key
+     * Total number of epochs since node was created
      * 
* - * string key = 1 [json_name = "key"]; - * @return The bytes for key. + * int32 total = 1 [json_name = "total"]; + * @return The total. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getTotal() { + return total_; } - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; + public static final int OFFLINE_FIELD_NUMBER = 2; + private int offline_; /** *
-     * The value for the network parameter
+     * Total number of offline epochs since node was created
      * 
* - * string value = 2 [json_name = "value"]; - * @return The value. + * int32 offline = 2 [json_name = "offline"]; + * @return The offline. */ @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } + public int getOffline() { + return offline_; } + + public static final int ONLINE_FIELD_NUMBER = 3; + private int online_; /** *
-     * The value for the network parameter
+     * Total number of online epochs since node was created
      * 
* - * string value = 2 [json_name = "value"]; - * @return The bytes for value. + * int32 online = 3 [json_name = "online"]; + * @return The online. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getOnline() { + return online_; } private byte memoizedIsInitialized = -1; @@ -55579,11 +59621,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + if (total_ != 0) { + output.writeInt32(1, total_); } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + if (offline_ != 0) { + output.writeInt32(2, offline_); + } + if (online_ != 0) { + output.writeInt32(3, online_); } unknownFields.writeTo(output); } @@ -55594,11 +59639,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + if (total_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, total_); } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + if (offline_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, offline_); + } + if (online_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, online_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -55610,15 +59661,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.NetworkParameter)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.EpochData)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.NetworkParameter other = (io.vegaprotocol.vega.Vega.NetworkParameter) obj; + io.vegaprotocol.vega.Vega.EpochData other = (io.vegaprotocol.vega.Vega.EpochData) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (getTotal() + != other.getTotal()) return false; + if (getOffline() + != other.getOffline()) return false; + if (getOnline() + != other.getOnline()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -55630,78 +59683,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal(); + hash = (37 * hash) + OFFLINE_FIELD_NUMBER; + hash = (53 * hash) + getOffline(); + hash = (37 * hash) + ONLINE_FIELD_NUMBER; + hash = (53 * hash) + getOnline(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.EpochData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.EpochData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( + public static io.vegaprotocol.vega.Vega.EpochData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -55714,7 +59769,7 @@ public static io.vegaprotocol.vega.Vega.NetworkParameter parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.NetworkParameter prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.EpochData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -55730,30 +59785,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * Represents a network parameter on Vega
-     * 
- * - * Protobuf type {@code vega.NetworkParameter} + * Protobuf type {@code vega.EpochData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.NetworkParameter) - io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.EpochData) + io.vegaprotocol.vega.Vega.EpochDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochData_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.NetworkParameter.class, io.vegaprotocol.vega.Vega.NetworkParameter.Builder.class); + io.vegaprotocol.vega.Vega.EpochData.class, io.vegaprotocol.vega.Vega.EpochData.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.NetworkParameter.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.EpochData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -55771,9 +59822,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - key_ = ""; + total_ = 0; - value_ = ""; + offline_ = 0; + + online_ = 0; return this; } @@ -55781,17 +59834,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_NetworkParameter_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_EpochData_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.EpochData getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.EpochData.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameter build() { - io.vegaprotocol.vega.Vega.NetworkParameter result = buildPartial(); + public io.vegaprotocol.vega.Vega.EpochData build() { + io.vegaprotocol.vega.Vega.EpochData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -55799,10 +59852,11 @@ public io.vegaprotocol.vega.Vega.NetworkParameter build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameter buildPartial() { - io.vegaprotocol.vega.Vega.NetworkParameter result = new io.vegaprotocol.vega.Vega.NetworkParameter(this); - result.key_ = key_; - result.value_ = value_; + public io.vegaprotocol.vega.Vega.EpochData buildPartial() { + io.vegaprotocol.vega.Vega.EpochData result = new io.vegaprotocol.vega.Vega.EpochData(this); + result.total_ = total_; + result.offline_ = offline_; + result.online_ = online_; onBuilt(); return result; } @@ -55841,493 +59895,1220 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.NetworkParameter) { - return mergeFrom((io.vegaprotocol.vega.Vega.NetworkParameter)other); + if (other instanceof io.vegaprotocol.vega.Vega.EpochData) { + return mergeFrom((io.vegaprotocol.vega.Vega.EpochData)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.NetworkParameter other) { - if (other == io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public Builder mergeFrom(io.vegaprotocol.vega.Vega.EpochData other) { + if (other == io.vegaprotocol.vega.Vega.EpochData.getDefaultInstance()) return this; + if (other.getTotal() != 0) { + setTotal(other.getTotal()); + } + if (other.getOffline() != 0) { + setOffline(other.getOffline()); + } + if (other.getOnline() != 0) { + setOnline(other.getOnline()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.EpochData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.EpochData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int total_ ; + /** + *
+       * Total number of epochs since node was created
+       * 
+ * + * int32 total = 1 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public int getTotal() { + return total_; + } + /** + *
+       * Total number of epochs since node was created
+       * 
+ * + * int32 total = 1 [json_name = "total"]; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(int value) { + + total_ = value; + onChanged(); + return this; + } + /** + *
+       * Total number of epochs since node was created
+       * 
+ * + * int32 total = 1 [json_name = "total"]; + * @return This builder for chaining. + */ + public Builder clearTotal() { + + total_ = 0; + onChanged(); + return this; + } + + private int offline_ ; + /** + *
+       * Total number of offline epochs since node was created
+       * 
+ * + * int32 offline = 2 [json_name = "offline"]; + * @return The offline. + */ + @java.lang.Override + public int getOffline() { + return offline_; + } + /** + *
+       * Total number of offline epochs since node was created
+       * 
+ * + * int32 offline = 2 [json_name = "offline"]; + * @param value The offline to set. + * @return This builder for chaining. + */ + public Builder setOffline(int value) { + + offline_ = value; + onChanged(); + return this; + } + /** + *
+       * Total number of offline epochs since node was created
+       * 
+ * + * int32 offline = 2 [json_name = "offline"]; + * @return This builder for chaining. + */ + public Builder clearOffline() { + + offline_ = 0; + onChanged(); + return this; + } + + private int online_ ; + /** + *
+       * Total number of online epochs since node was created
+       * 
+ * + * int32 online = 3 [json_name = "online"]; + * @return The online. + */ + @java.lang.Override + public int getOnline() { + return online_; + } + /** + *
+       * Total number of online epochs since node was created
+       * 
+ * + * int32 online = 3 [json_name = "online"]; + * @param value The online to set. + * @return This builder for chaining. + */ + public Builder setOnline(int value) { + + online_ = value; + onChanged(); + return this; + } + /** + *
+       * Total number of online epochs since node was created
+       * 
+ * + * int32 online = 3 [json_name = "online"]; + * @return This builder for chaining. + */ + public Builder clearOnline() { + + online_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.EpochData) + } + + // @@protoc_insertion_point(class_scope:vega.EpochData) + private static final io.vegaprotocol.vega.Vega.EpochData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.EpochData(); + } + + public static io.vegaprotocol.vega.Vega.EpochData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EpochData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EpochData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.EpochData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node url eg n01.vega.xyz
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * The node url eg n01.vega.xyz
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Pub key of the node operator
+     * 
+ * + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The pubKey. + */ + java.lang.String getPubKey(); + /** + *
+     * Pub key of the node operator
+     * 
+ * + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The bytes for pubKey. + */ + com.google.protobuf.ByteString + getPubKeyBytes(); + + /** + *
+     * URL where I can find out more info on the node
+     * 
+ * + * string info_url = 3 [json_name = "infoUrl"]; + * @return The infoUrl. + */ + java.lang.String getInfoUrl(); + /** + *
+     * URL where I can find out more info on the node
+     * 
+ * + * string info_url = 3 [json_name = "infoUrl"]; + * @return The bytes for infoUrl. + */ + com.google.protobuf.ByteString + getInfoUrlBytes(); + + /** + *
+     * Country code for the location of the node
+     * 
+ * + * string location = 4 [json_name = "location"]; + * @return The location. + */ + java.lang.String getLocation(); + /** + *
+     * Country code for the location of the node
+     * 
+ * + * string location = 4 [json_name = "location"]; + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+     * The amount the node has put up themselves
+     * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The stakedByOperator. + */ + java.lang.String getStakedByOperator(); + /** + *
+     * The amount the node has put up themselves
+     * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The bytes for stakedByOperator. + */ + com.google.protobuf.ByteString + getStakedByOperatorBytes(); + + /** + *
+     * The amount of stake that has been delegated by token holders
+     * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The stakedByDelegates. + */ + java.lang.String getStakedByDelegates(); + /** + *
+     * The amount of stake that has been delegated by token holders
+     * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The bytes for stakedByDelegates. + */ + com.google.protobuf.ByteString + getStakedByDelegatesBytes(); + + /** + *
+     * Total amount staked on node
+     * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The stakedTotal. + */ + java.lang.String getStakedTotal(); + /** + *
+     * Total amount staked on node
+     * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. + */ + com.google.protobuf.ByteString + getStakedTotalBytes(); + + /** + *
+     * Max amount of (wanted) stake, is this a network param or a node param
+     * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The maxIntendedStake. + */ + java.lang.String getMaxIntendedStake(); + /** + *
+     * Max amount of (wanted) stake, is this a network param or a node param
+     * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The bytes for maxIntendedStake. + */ + com.google.protobuf.ByteString + getMaxIntendedStakeBytes(); + + /** + *
+     * Amount of stake on the next epoch
+     * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The pendingStake. + */ + java.lang.String getPendingStake(); + /** + *
+     * Amount of stake on the next epoch
+     * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The bytes for pendingStake. + */ + com.google.protobuf.ByteString + getPendingStakeBytes(); + + /** + *
+     * Informantion about epoch
+     * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return Whether the epochData field is set. + */ + boolean hasEpochData(); + /** + *
+     * Informantion about epoch
+     * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return The epochData. + */ + io.vegaprotocol.vega.Vega.EpochData getEpochData(); + /** + *
+     * Informantion about epoch
+     * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder(); + + /** + *
+     * Node status
+     * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * Node status
+     * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The status. + */ + io.vegaprotocol.vega.Vega.NodeStatus getStatus(); + + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + java.util.List + getDelagationsList(); + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + io.vegaprotocol.vega.Vega.Delegation getDelagations(int index); + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + int getDelagationsCount(); + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + java.util.List + getDelagationsOrBuilderList(); + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + id_ = ""; + pubKey_ = ""; + infoUrl_ = ""; + location_ = ""; + stakedByOperator_ = ""; + stakedByDelegates_ = ""; + stakedTotal_ = ""; + maxIntendedStake_ = ""; + pendingStake_ = ""; + status_ = 0; + delagations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Node(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pubKey_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + infoUrl_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + stakedByOperator_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - @java.lang.Override - public final boolean isInitialized() { - return true; - } + stakedByDelegates_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.NetworkParameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.NetworkParameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + stakedTotal_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - private java.lang.Object key_ = ""; - /** - *
-       * The unique key
-       * 
- * - * string key = 1 [json_name = "key"]; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; + maxIntendedStake_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + pendingStake_ = s; + break; + } + case 82: { + io.vegaprotocol.vega.Vega.EpochData.Builder subBuilder = null; + if (epochData_ != null) { + subBuilder = epochData_.toBuilder(); + } + epochData_ = input.readMessage(io.vegaprotocol.vega.Vega.EpochData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(epochData_); + epochData_ = subBuilder.buildPartial(); + } + + break; + } + case 88: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + delagations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + delagations_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Delegation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } } - } - /** - *
-       * The unique key
-       * 
- * - * string key = 1 [json_name = "key"]; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + delagations_ = java.util.Collections.unmodifiableList(delagations_); } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - *
-       * The unique key
-       * 
- * - * string key = 1 [json_name = "key"]; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Node_descriptor; + } - key_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique key
-       * 
- * - * string key = 1 [json_name = "key"]; - * @return This builder for chaining. - */ - public Builder clearKey() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.Node.class, io.vegaprotocol.vega.Vega.Node.Builder.class); + } - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * The node url eg n01.vega.xyz
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; } - /** - *
-       * The unique key
-       * 
- * - * string key = 1 [json_name = "key"]; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; + } + /** + *
+     * The node url eg n01.vega.xyz
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private java.lang.Object value_ = ""; - /** - *
-       * The value for the network parameter
-       * 
- * - * string value = 2 [json_name = "value"]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static final int PUB_KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object pubKey_; + /** + *
+     * Pub key of the node operator
+     * 
+ * + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The pubKey. + */ + @java.lang.Override + public java.lang.String getPubKey() { + java.lang.Object ref = pubKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pubKey_ = s; + return s; } - /** - *
-       * The value for the network parameter
-       * 
- * - * string value = 2 [json_name = "value"]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + *
+     * Pub key of the node operator
+     * 
+ * + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The bytes for pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPubKeyBytes() { + java.lang.Object ref = pubKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * The value for the network parameter
-       * 
- * - * string value = 2 [json_name = "value"]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + } - value_ = value; - onChanged(); - return this; + public static final int INFO_URL_FIELD_NUMBER = 3; + private volatile java.lang.Object infoUrl_; + /** + *
+     * URL where I can find out more info on the node
+     * 
+ * + * string info_url = 3 [json_name = "infoUrl"]; + * @return The infoUrl. + */ + @java.lang.Override + public java.lang.String getInfoUrl() { + java.lang.Object ref = infoUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + infoUrl_ = s; + return s; } - /** - *
-       * The value for the network parameter
-       * 
- * - * string value = 2 [json_name = "value"]; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; + } + /** + *
+     * URL where I can find out more info on the node
+     * 
+ * + * string info_url = 3 [json_name = "infoUrl"]; + * @return The bytes for infoUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInfoUrlBytes() { + java.lang.Object ref = infoUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + infoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * The value for the network parameter
-       * 
- * - * string value = 2 [json_name = "value"]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + } - value_ = value; - onChanged(); - return this; + public static final int LOCATION_FIELD_NUMBER = 4; + private volatile java.lang.Object location_; + /** + *
+     * Country code for the location of the node
+     * 
+ * + * string location = 4 [json_name = "location"]; + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + } + /** + *
+     * Country code for the location of the node
+     * 
+ * + * string location = 4 [json_name = "location"]; + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public static final int STAKED_BY_OPERATOR_FIELD_NUMBER = 5; + private volatile java.lang.Object stakedByOperator_; + /** + *
+     * The amount the node has put up themselves
+     * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The stakedByOperator. + */ + @java.lang.Override + public java.lang.String getStakedByOperator() { + java.lang.Object ref = stakedByOperator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedByOperator_ = s; + return s; } - - - // @@protoc_insertion_point(builder_scope:vega.NetworkParameter) } - - // @@protoc_insertion_point(class_scope:vega.NetworkParameter) - private static final io.vegaprotocol.vega.Vega.NetworkParameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.NetworkParameter(); + /** + *
+     * The amount the node has put up themselves
+     * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The bytes for stakedByOperator. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStakedByOperatorBytes() { + java.lang.Object ref = stakedByOperator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedByOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstance() { - return DEFAULT_INSTANCE; + public static final int STAKED_BY_DELEGATES_FIELD_NUMBER = 6; + private volatile java.lang.Object stakedByDelegates_; + /** + *
+     * The amount of stake that has been delegated by token holders
+     * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The stakedByDelegates. + */ + @java.lang.Override + public java.lang.String getStakedByDelegates() { + java.lang.Object ref = stakedByDelegates_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedByDelegates_ = s; + return s; + } + } + /** + *
+     * The amount of stake that has been delegated by token holders
+     * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The bytes for stakedByDelegates. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStakedByDelegatesBytes() { + java.lang.Object ref = stakedByDelegates_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedByDelegates_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkParameter(input, extensionRegistry); + public static final int STAKED_TOTAL_FIELD_NUMBER = 7; + private volatile java.lang.Object stakedTotal_; + /** + *
+     * Total amount staked on node
+     * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The stakedTotal. + */ + @java.lang.Override + public java.lang.String getStakedTotal() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedTotal_ = s; + return s; + } + } + /** + *
+     * Total amount staked on node
+     * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStakedTotalBytes() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedTotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } + public static final int MAX_INTENDED_STAKE_FIELD_NUMBER = 8; + private volatile java.lang.Object maxIntendedStake_; + /** + *
+     * Max amount of (wanted) stake, is this a network param or a node param
+     * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The maxIntendedStake. + */ @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public java.lang.String getMaxIntendedStake() { + java.lang.Object ref = maxIntendedStake_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxIntendedStake_ = s; + return s; + } } - + /** + *
+     * Max amount of (wanted) stake, is this a network param or a node param
+     * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The bytes for maxIntendedStake. + */ @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public com.google.protobuf.ByteString + getMaxIntendedStakeBytes() { + java.lang.Object ref = maxIntendedStake_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maxIntendedStake_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - public interface LiquidityOrderOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.LiquidityOrder) - com.google.protobuf.MessageOrBuilder { - + public static final int PENDING_STAKE_FIELD_NUMBER = 9; + private volatile java.lang.Object pendingStake_; /** *
-     * The pegged reference point for the order
+     * Amount of stake on the next epoch
      * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The enum numeric value on the wire for reference. + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The pendingStake. */ - int getReferenceValue(); + @java.lang.Override + public java.lang.String getPendingStake() { + java.lang.Object ref = pendingStake_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingStake_ = s; + return s; + } + } /** *
-     * The pegged reference point for the order
+     * Amount of stake on the next epoch
      * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The reference. + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The bytes for pendingStake. */ - io.vegaprotocol.vega.Vega.PeggedReference getReference(); + @java.lang.Override + public com.google.protobuf.ByteString + getPendingStakeBytes() { + java.lang.Object ref = pendingStake_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pendingStake_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int EPOCH_DATA_FIELD_NUMBER = 10; + private io.vegaprotocol.vega.Vega.EpochData epochData_; /** *
-     * The relative proportion of the commitment to be allocated at a price level
+     * Informantion about epoch
      * 
* - * uint32 proportion = 2 [json_name = "proportion"]; - * @return The proportion. + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return Whether the epochData field is set. */ - int getProportion(); - + @java.lang.Override + public boolean hasEpochData() { + return epochData_ != null; + } /** *
-     * The offset/amount of units away for the order
+     * Informantion about epoch
      * 
* - * int64 offset = 3 [json_name = "offset"]; - * @return The offset. + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return The epochData. */ - long getOffset(); - } - /** - *
-   * Represents a liquidity order
-   * 
- * - * Protobuf type {@code vega.LiquidityOrder} - */ - public static final class LiquidityOrder extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.LiquidityOrder) - LiquidityOrderOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiquidityOrder.newBuilder() to construct. - private LiquidityOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiquidityOrder() { - reference_ = 0; - } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiquidityOrder(); + public io.vegaprotocol.vega.Vega.EpochData getEpochData() { + return epochData_ == null ? io.vegaprotocol.vega.Vega.EpochData.getDefaultInstance() : epochData_; } - + /** + *
+     * Informantion about epoch
+     * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { + return getEpochData(); } - private LiquidityOrder( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - reference_ = rawValue; - break; - } - case 16: { - - proportion_ = input.readUInt32(); - break; - } - case 24: { - - offset_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + public static final int STATUS_FIELD_NUMBER = 11; + private int status_; + /** + *
+     * Node status
+     * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; + /** + *
+     * Node status
+     * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The status. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.NodeStatus getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.NodeStatus result = io.vegaprotocol.vega.Vega.NodeStatus.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.NodeStatus.UNRECOGNIZED : result; } + public static final int DELAGATIONS_FIELD_NUMBER = 12; + private java.util.List delagations_; + /** + *
+     * Node's delegations
+     * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityOrder.class, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder.class); + public java.util.List getDelagationsList() { + return delagations_; } - - public static final int REFERENCE_FIELD_NUMBER = 1; - private int reference_; /** *
-     * The pegged reference point for the order
+     * Node's delegations
      * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The enum numeric value on the wire for reference. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - @java.lang.Override public int getReferenceValue() { - return reference_; + @java.lang.Override + public java.util.List + getDelagationsOrBuilderList() { + return delagations_; } /** *
-     * The pegged reference point for the order
+     * Node's delegations
      * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The reference. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - @java.lang.Override public io.vegaprotocol.vega.Vega.PeggedReference getReference() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.PeggedReference result = io.vegaprotocol.vega.Vega.PeggedReference.valueOf(reference_); - return result == null ? io.vegaprotocol.vega.Vega.PeggedReference.UNRECOGNIZED : result; + @java.lang.Override + public int getDelagationsCount() { + return delagations_.size(); } - - public static final int PROPORTION_FIELD_NUMBER = 2; - private int proportion_; /** *
-     * The relative proportion of the commitment to be allocated at a price level
+     * Node's delegations
      * 
* - * uint32 proportion = 2 [json_name = "proportion"]; - * @return The proportion. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override - public int getProportion() { - return proportion_; + public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { + return delagations_.get(index); } - - public static final int OFFSET_FIELD_NUMBER = 3; - private long offset_; /** *
-     * The offset/amount of units away for the order
+     * Node's delegations
      * 
* - * int64 offset = 3 [json_name = "offset"]; - * @return The offset. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override - public long getOffset() { - return offset_; + public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( + int index) { + return delagations_.get(index); } private byte memoizedIsInitialized = -1; @@ -56344,14 +61125,41 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reference_ != io.vegaprotocol.vega.Vega.PeggedReference.PEGGED_REFERENCE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, reference_); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (proportion_ != 0) { - output.writeUInt32(2, proportion_); + if (!getPubKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pubKey_); } - if (offset_ != 0L) { - output.writeInt64(3, offset_); + if (!getInfoUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, infoUrl_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); + } + if (!getStakedByOperatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stakedByOperator_); + } + if (!getStakedByDelegatesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stakedByDelegates_); + } + if (!getStakedTotalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stakedTotal_); + } + if (!getMaxIntendedStakeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, maxIntendedStake_); + } + if (!getPendingStakeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pendingStake_); + } + if (epochData_ != null) { + output.writeMessage(10, getEpochData()); + } + if (status_ != io.vegaprotocol.vega.Vega.NodeStatus.NODE_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(11, status_); + } + for (int i = 0; i < delagations_.size(); i++) { + output.writeMessage(12, delagations_.get(i)); } unknownFields.writeTo(output); } @@ -56362,17 +61170,44 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (reference_ != io.vegaprotocol.vega.Vega.PeggedReference.PEGGED_REFERENCE_UNSPECIFIED.getNumber()) { + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getPubKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pubKey_); + } + if (!getInfoUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, infoUrl_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); + } + if (!getStakedByOperatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stakedByOperator_); + } + if (!getStakedByDelegatesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stakedByDelegates_); + } + if (!getStakedTotalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stakedTotal_); + } + if (!getMaxIntendedStakeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, maxIntendedStake_); + } + if (!getPendingStakeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pendingStake_); + } + if (epochData_ != null) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, reference_); + .computeMessageSize(10, getEpochData()); } - if (proportion_ != 0) { + if (status_ != io.vegaprotocol.vega.Vega.NodeStatus.NODE_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, proportion_); + .computeEnumSize(11, status_); } - if (offset_ != 0L) { + for (int i = 0; i < delagations_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, offset_); + .computeMessageSize(12, delagations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -56384,16 +61219,37 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityOrder)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Node)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.LiquidityOrder other = (io.vegaprotocol.vega.Vega.LiquidityOrder) obj; + io.vegaprotocol.vega.Vega.Node other = (io.vegaprotocol.vega.Vega.Node) obj; - if (reference_ != other.reference_) return false; - if (getProportion() - != other.getProportion()) return false; - if (getOffset() - != other.getOffset()) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getPubKey() + .equals(other.getPubKey())) return false; + if (!getInfoUrl() + .equals(other.getInfoUrl())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getStakedByOperator() + .equals(other.getStakedByOperator())) return false; + if (!getStakedByDelegates() + .equals(other.getStakedByDelegates())) return false; + if (!getStakedTotal() + .equals(other.getStakedTotal())) return false; + if (!getMaxIntendedStake() + .equals(other.getMaxIntendedStake())) return false; + if (!getPendingStake() + .equals(other.getPendingStake())) return false; + if (hasEpochData() != other.hasEpochData()) return false; + if (hasEpochData()) { + if (!getEpochData() + .equals(other.getEpochData())) return false; + } + if (status_ != other.status_) return false; + if (!getDelagationsList() + .equals(other.getDelagationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -56405,81 +61261,102 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + reference_; - hash = (37 * hash) + PROPORTION_FIELD_NUMBER; - hash = (53 * hash) + getProportion(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + INFO_URL_FIELD_NUMBER; + hash = (53 * hash) + getInfoUrl().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + STAKED_BY_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getStakedByOperator().hashCode(); + hash = (37 * hash) + STAKED_BY_DELEGATES_FIELD_NUMBER; + hash = (53 * hash) + getStakedByDelegates().hashCode(); + hash = (37 * hash) + STAKED_TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getStakedTotal().hashCode(); + hash = (37 * hash) + MAX_INTENDED_STAKE_FIELD_NUMBER; + hash = (53 * hash) + getMaxIntendedStake().hashCode(); + hash = (37 * hash) + PENDING_STAKE_FIELD_NUMBER; + hash = (53 * hash) + getPendingStake().hashCode(); + if (hasEpochData()) { + hash = (37 * hash) + EPOCH_DATA_FIELD_NUMBER; + hash = (53 * hash) + getEpochData().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getDelagationsCount() > 0) { + hash = (37 * hash) + DELAGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDelagationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Node parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( + public static io.vegaprotocol.vega.Vega.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -56492,7 +61369,7 @@ public static io.vegaprotocol.vega.Vega.LiquidityOrder parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityOrder prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -56508,30 +61385,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * Represents a liquidity order
-     * 
- * - * Protobuf type {@code vega.LiquidityOrder} + * Protobuf type {@code vega.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.LiquidityOrder) - io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Node) + io.vegaprotocol.vega.Vega.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityOrder.class, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder.class); + io.vegaprotocol.vega.Vega.Node.class, io.vegaprotocol.vega.Vega.Node.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.LiquidityOrder.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Node.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -56544,34 +61417,61 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getDelagationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - reference_ = 0; + id_ = ""; - proportion_ = 0; + pubKey_ = ""; - offset_ = 0L; + infoUrl_ = ""; + + location_ = ""; + + stakedByOperator_ = ""; + + stakedByDelegates_ = ""; + + stakedTotal_ = ""; + + maxIntendedStake_ = ""; + + pendingStake_ = ""; + + if (epochDataBuilder_ == null) { + epochData_ = null; + } else { + epochData_ = null; + epochDataBuilder_ = null; + } + status_ = 0; + if (delagationsBuilder_ == null) { + delagations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + delagationsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrder_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Node_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Node getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Node.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrder build() { - io.vegaprotocol.vega.Vega.LiquidityOrder result = buildPartial(); + public io.vegaprotocol.vega.Vega.Node build() { + io.vegaprotocol.vega.Vega.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -56579,11 +61479,33 @@ public io.vegaprotocol.vega.Vega.LiquidityOrder build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrder buildPartial() { - io.vegaprotocol.vega.Vega.LiquidityOrder result = new io.vegaprotocol.vega.Vega.LiquidityOrder(this); - result.reference_ = reference_; - result.proportion_ = proportion_; - result.offset_ = offset_; + public io.vegaprotocol.vega.Vega.Node buildPartial() { + io.vegaprotocol.vega.Vega.Node result = new io.vegaprotocol.vega.Vega.Node(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.pubKey_ = pubKey_; + result.infoUrl_ = infoUrl_; + result.location_ = location_; + result.stakedByOperator_ = stakedByOperator_; + result.stakedByDelegates_ = stakedByDelegates_; + result.stakedTotal_ = stakedTotal_; + result.maxIntendedStake_ = maxIntendedStake_; + result.pendingStake_ = pendingStake_; + if (epochDataBuilder_ == null) { + result.epochData_ = epochData_; + } else { + result.epochData_ = epochDataBuilder_.build(); + } + result.status_ = status_; + if (delagationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + delagations_ = java.util.Collections.unmodifiableList(delagations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.delagations_ = delagations_; + } else { + result.delagations_ = delagationsBuilder_.build(); + } onBuilt(); return result; } @@ -56622,24 +61544,83 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.LiquidityOrder) { - return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityOrder)other); + if (other instanceof io.vegaprotocol.vega.Vega.Node) { + return mergeFrom((io.vegaprotocol.vega.Vega.Node)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityOrder other) { - if (other == io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance()) return this; - if (other.reference_ != 0) { - setReferenceValue(other.getReferenceValue()); + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Node other) { + if (other == io.vegaprotocol.vega.Vega.Node.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); } - if (other.getProportion() != 0) { - setProportion(other.getProportion()); + if (!other.getPubKey().isEmpty()) { + pubKey_ = other.pubKey_; + onChanged(); } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); + if (!other.getInfoUrl().isEmpty()) { + infoUrl_ = other.infoUrl_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStakedByOperator().isEmpty()) { + stakedByOperator_ = other.stakedByOperator_; + onChanged(); + } + if (!other.getStakedByDelegates().isEmpty()) { + stakedByDelegates_ = other.stakedByDelegates_; + onChanged(); + } + if (!other.getStakedTotal().isEmpty()) { + stakedTotal_ = other.stakedTotal_; + onChanged(); + } + if (!other.getMaxIntendedStake().isEmpty()) { + maxIntendedStake_ = other.maxIntendedStake_; + onChanged(); + } + if (!other.getPendingStake().isEmpty()) { + pendingStake_ = other.pendingStake_; + onChanged(); + } + if (other.hasEpochData()) { + mergeEpochData(other.getEpochData()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (delagationsBuilder_ == null) { + if (!other.delagations_.isEmpty()) { + if (delagations_.isEmpty()) { + delagations_ = other.delagations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDelagationsIsMutable(); + delagations_.addAll(other.delagations_); + } + onChanged(); + } + } else { + if (!other.delagations_.isEmpty()) { + if (delagationsBuilder_.isEmpty()) { + delagationsBuilder_.dispose(); + delagationsBuilder_ = null; + delagations_ = other.delagations_; + bitField0_ = (bitField0_ & ~0x00000001); + delagationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDelagationsFieldBuilder() : null; + } else { + delagationsBuilder_.addAllMessages(other.delagations_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -56656,1053 +61637,1424 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.LiquidityOrder parsedMessage = null; + io.vegaprotocol.vega.Vega.Node parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityOrder) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Node) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } - return this; + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * The node url eg n01.vega.xyz
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node url eg n01.vega.xyz
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node url eg n01.vega.xyz
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * The node url eg n01.vega.xyz
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * The node url eg n01.vega.xyz
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object pubKey_ = ""; + /** + *
+       * Pub key of the node operator
+       * 
+ * + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The pubKey. + */ + public java.lang.String getPubKey() { + java.lang.Object ref = pubKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pubKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private int reference_ = 0; /** *
-       * The pegged reference point for the order
+       * Pub key of the node operator
        * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The enum numeric value on the wire for reference. + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return The bytes for pubKey. */ - @java.lang.Override public int getReferenceValue() { - return reference_; + public com.google.protobuf.ByteString + getPubKeyBytes() { + java.lang.Object ref = pubKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * The pegged reference point for the order
+       * Pub key of the node operator
        * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @param value The enum numeric value on the wire for reference to set. + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @param value The pubKey to set. * @return This builder for chaining. */ - public Builder setReferenceValue(int value) { + public Builder setPubKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - reference_ = value; + pubKey_ = value; onChanged(); return this; } /** *
-       * The pegged reference point for the order
+       * Pub key of the node operator
        * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return The reference. + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @return This builder for chaining. */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PeggedReference getReference() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.PeggedReference result = io.vegaprotocol.vega.Vega.PeggedReference.valueOf(reference_); - return result == null ? io.vegaprotocol.vega.Vega.PeggedReference.UNRECOGNIZED : result; + public Builder clearPubKey() { + + pubKey_ = getDefaultInstance().getPubKey(); + onChanged(); + return this; } /** *
-       * The pegged reference point for the order
+       * Pub key of the node operator
        * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @param value The reference to set. + * string pub_key = 2 [json_name = "pubKey", (.validator.field) = { ... } + * @param value The bytes for pubKey to set. * @return This builder for chaining. */ - public Builder setReference(io.vegaprotocol.vega.Vega.PeggedReference value) { + public Builder setPubKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - reference_ = value.getNumber(); + pubKey_ = value; onChanged(); return this; } + + private java.lang.Object infoUrl_ = ""; /** *
-       * The pegged reference point for the order
+       * URL where I can find out more info on the node
        * 
* - * .vega.PeggedReference reference = 1 [json_name = "reference"]; - * @return This builder for chaining. + * string info_url = 3 [json_name = "infoUrl"]; + * @return The infoUrl. */ - public Builder clearReference() { - - reference_ = 0; - onChanged(); - return this; + public java.lang.String getInfoUrl() { + java.lang.Object ref = infoUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + infoUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private int proportion_ ; /** *
-       * The relative proportion of the commitment to be allocated at a price level
+       * URL where I can find out more info on the node
        * 
* - * uint32 proportion = 2 [json_name = "proportion"]; - * @return The proportion. + * string info_url = 3 [json_name = "infoUrl"]; + * @return The bytes for infoUrl. */ - @java.lang.Override - public int getProportion() { - return proportion_; + public com.google.protobuf.ByteString + getInfoUrlBytes() { + java.lang.Object ref = infoUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + infoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * The relative proportion of the commitment to be allocated at a price level
+       * URL where I can find out more info on the node
        * 
* - * uint32 proportion = 2 [json_name = "proportion"]; - * @param value The proportion to set. + * string info_url = 3 [json_name = "infoUrl"]; + * @param value The infoUrl to set. * @return This builder for chaining. */ - public Builder setProportion(int value) { + public Builder setInfoUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - proportion_ = value; + infoUrl_ = value; onChanged(); return this; } /** *
-       * The relative proportion of the commitment to be allocated at a price level
+       * URL where I can find out more info on the node
        * 
* - * uint32 proportion = 2 [json_name = "proportion"]; + * string info_url = 3 [json_name = "infoUrl"]; * @return This builder for chaining. */ - public Builder clearProportion() { + public Builder clearInfoUrl() { - proportion_ = 0; + infoUrl_ = getDefaultInstance().getInfoUrl(); onChanged(); return this; } + /** + *
+       * URL where I can find out more info on the node
+       * 
+ * + * string info_url = 3 [json_name = "infoUrl"]; + * @param value The bytes for infoUrl to set. + * @return This builder for chaining. + */ + public Builder setInfoUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private long offset_ ; + infoUrl_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; /** *
-       * The offset/amount of units away for the order
+       * Country code for the location of the node
        * 
* - * int64 offset = 3 [json_name = "offset"]; - * @return The offset. + * string location = 4 [json_name = "location"]; + * @return The location. */ - @java.lang.Override - public long getOffset() { - return offset_; + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * The offset/amount of units away for the order
+       * Country code for the location of the node
        * 
* - * int64 offset = 3 [json_name = "offset"]; - * @param value The offset to set. + * string location = 4 [json_name = "location"]; + * @return The bytes for location. + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Country code for the location of the node
+       * 
+ * + * string location = 4 [json_name = "location"]; + * @param value The location to set. * @return This builder for chaining. */ - public Builder setOffset(long value) { + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - offset_ = value; + location_ = value; onChanged(); return this; } /** *
-       * The offset/amount of units away for the order
+       * Country code for the location of the node
        * 
* - * int64 offset = 3 [json_name = "offset"]; + * string location = 4 [json_name = "location"]; * @return This builder for chaining. */ - public Builder clearOffset() { + public Builder clearLocation() { - offset_ = 0L; + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:vega.LiquidityOrder) - } - - // @@protoc_insertion_point(class_scope:vega.LiquidityOrder) - private static final io.vegaprotocol.vega.Vega.LiquidityOrder DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityOrder(); - } - - public static io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiquidityOrder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityOrder(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrder getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiquidityOrderReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.LiquidityOrderReference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. - */ - java.lang.String getOrderId(); - /** - *
-     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. - */ - com.google.protobuf.ByteString - getOrderIdBytes(); - - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return Whether the liquidityOrder field is set. - */ - boolean hasLiquidityOrder(); - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return The liquidityOrder. - */ - io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder(); - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - */ - io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder(); + /** + *
+       * Country code for the location of the node
+       * 
+ * + * string location = 4 [json_name = "location"]; + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - /** - *
-   * A pair of a liquidity order and the id of the generated order by the core
-   * 
- * - * Protobuf type {@code vega.LiquidityOrderReference} - */ - public static final class LiquidityOrderReference extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.LiquidityOrderReference) - LiquidityOrderReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiquidityOrderReference.newBuilder() to construct. - private LiquidityOrderReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiquidityOrderReference() { - orderId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiquidityOrderReference(); - } + checkByteStringIsUtf8(value); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiquidityOrderReference( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + location_ = value; + onChanged(); + return this; } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - orderId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.Vega.LiquidityOrder.Builder subBuilder = null; - if (liquidityOrder_ != null) { - subBuilder = liquidityOrder_.toBuilder(); - } - liquidityOrder_ = input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrder.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(liquidityOrder_); - liquidityOrder_ = subBuilder.buildPartial(); - } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + private java.lang.Object stakedByOperator_ = ""; + /** + *
+       * The amount the node has put up themselves
+       * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The stakedByOperator. + */ + public java.lang.String getStakedByOperator() { + java.lang.Object ref = stakedByOperator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedByOperator_ = s; + return s; + } else { + return (java.lang.String) ref; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.class, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder.class); - } - - public static final int ORDER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object orderId_; - /** - *
-     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. - */ - @java.lang.Override - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; } - } - /** - *
-     * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+       * The amount the node has put up themselves
+       * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return The bytes for stakedByOperator. + */ + public com.google.protobuf.ByteString + getStakedByOperatorBytes() { + java.lang.Object ref = stakedByOperator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedByOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - public static final int LIQUIDITY_ORDER_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.Vega.LiquidityOrder liquidityOrder_; - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return Whether the liquidityOrder field is set. - */ - @java.lang.Override - public boolean hasLiquidityOrder() { - return liquidityOrder_ != null; - } - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return The liquidityOrder. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder() { - return liquidityOrder_ == null ? io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; - } - /** - *
-     * The liquidity order from the original submission
-     * 
- * - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder() { - return getLiquidityOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + /** + *
+       * The amount the node has put up themselves
+       * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @param value The stakedByOperator to set. + * @return This builder for chaining. + */ + public Builder setStakedByOperator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOrderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); + stakedByOperator_ = value; + onChanged(); + return this; } - if (liquidityOrder_ != null) { - output.writeMessage(2, getLiquidityOrder()); + /** + *
+       * The amount the node has put up themselves
+       * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @return This builder for chaining. + */ + public Builder clearStakedByOperator() { + + stakedByOperator_ = getDefaultInstance().getStakedByOperator(); + onChanged(); + return this; } - unknownFields.writeTo(output); - } + /** + *
+       * The amount the node has put up themselves
+       * 
+ * + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; + * @param value The bytes for stakedByOperator to set. + * @return This builder for chaining. + */ + public Builder setStakedByOperatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + stakedByOperator_ = value; + onChanged(); + return this; + } - size = 0; - if (!getOrderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); + private java.lang.Object stakedByDelegates_ = ""; + /** + *
+       * The amount of stake that has been delegated by token holders
+       * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The stakedByDelegates. + */ + public java.lang.String getStakedByDelegates() { + java.lang.Object ref = stakedByDelegates_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedByDelegates_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (liquidityOrder_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLiquidityOrder()); + /** + *
+       * The amount of stake that has been delegated by token holders
+       * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return The bytes for stakedByDelegates. + */ + public com.google.protobuf.ByteString + getStakedByDelegatesBytes() { + java.lang.Object ref = stakedByDelegates_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedByDelegates_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+       * The amount of stake that has been delegated by token holders
+       * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @param value The stakedByDelegates to set. + * @return This builder for chaining. + */ + public Builder setStakedByDelegates( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + stakedByDelegates_ = value; + onChanged(); + return this; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityOrderReference)) { - return super.equals(obj); + /** + *
+       * The amount of stake that has been delegated by token holders
+       * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @return This builder for chaining. + */ + public Builder clearStakedByDelegates() { + + stakedByDelegates_ = getDefaultInstance().getStakedByDelegates(); + onChanged(); + return this; } - io.vegaprotocol.vega.Vega.LiquidityOrderReference other = (io.vegaprotocol.vega.Vega.LiquidityOrderReference) obj; + /** + *
+       * The amount of stake that has been delegated by token holders
+       * 
+ * + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; + * @param value The bytes for stakedByDelegates to set. + * @return This builder for chaining. + */ + public Builder setStakedByDelegatesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - if (!getOrderId() - .equals(other.getOrderId())) return false; - if (hasLiquidityOrder() != other.hasLiquidityOrder()) return false; - if (hasLiquidityOrder()) { - if (!getLiquidityOrder() - .equals(other.getLiquidityOrder())) return false; + stakedByDelegates_ = value; + onChanged(); + return this; } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + private java.lang.Object stakedTotal_ = ""; + /** + *
+       * Total amount staked on node
+       * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The stakedTotal. + */ + public java.lang.String getStakedTotal() { + java.lang.Object ref = stakedTotal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedTotal_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrderId().hashCode(); - if (hasLiquidityOrder()) { - hash = (37 * hash) + LIQUIDITY_ORDER_FIELD_NUMBER; - hash = (53 * hash) + getLiquidityOrder().hashCode(); + /** + *
+       * Total amount staked on node
+       * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. + */ + public com.google.protobuf.ByteString + getStakedTotalBytes() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedTotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityOrderReference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+       * Total amount staked on node
+       * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @param value The stakedTotal to set. + * @return This builder for chaining. + */ + public Builder setStakedTotal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A pair of a liquidity order and the id of the generated order by the core
-     * 
- * - * Protobuf type {@code vega.LiquidityOrderReference} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.LiquidityOrderReference) - io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; + stakedTotal_ = value; + onChanged(); + return this; } + /** + *
+       * Total amount staked on node
+       * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @return This builder for chaining. + */ + public Builder clearStakedTotal() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.class, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder.class); + stakedTotal_ = getDefaultInstance().getStakedTotal(); + onChanged(); + return this; } + /** + *
+       * Total amount staked on node
+       * 
+ * + * string staked_total = 7 [json_name = "stakedTotal"]; + * @param value The bytes for stakedTotal to set. + * @return This builder for chaining. + */ + public Builder setStakedTotalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - // Construct using io.vegaprotocol.vega.Vega.LiquidityOrderReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + stakedTotal_ = value; + onChanged(); + return this; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + private java.lang.Object maxIntendedStake_ = ""; + /** + *
+       * Max amount of (wanted) stake, is this a network param or a node param
+       * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The maxIntendedStake. + */ + public java.lang.String getMaxIntendedStake() { + java.lang.Object ref = maxIntendedStake_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxIntendedStake_ = s; + return s; + } else { + return (java.lang.String) ref; } } - @java.lang.Override - public Builder clear() { - super.clear(); - orderId_ = ""; - - if (liquidityOrderBuilder_ == null) { - liquidityOrder_ = null; + /** + *
+       * Max amount of (wanted) stake, is this a network param or a node param
+       * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return The bytes for maxIntendedStake. + */ + public com.google.protobuf.ByteString + getMaxIntendedStakeBytes() { + java.lang.Object ref = maxIntendedStake_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maxIntendedStake_ = b; + return b; } else { - liquidityOrder_ = null; - liquidityOrderBuilder_ = null; + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+       * Max amount of (wanted) stake, is this a network param or a node param
+       * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @param value The maxIntendedStake to set. + * @return This builder for chaining. + */ + public Builder setMaxIntendedStake( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + maxIntendedStake_ = value; + onChanged(); return this; } + /** + *
+       * Max amount of (wanted) stake, is this a network param or a node param
+       * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @return This builder for chaining. + */ + public Builder clearMaxIntendedStake() { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityOrderReference_descriptor; + maxIntendedStake_ = getDefaultInstance().getMaxIntendedStake(); + onChanged(); + return this; } + /** + *
+       * Max amount of (wanted) stake, is this a network param or a node param
+       * 
+ * + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; + * @param value The bytes for maxIntendedStake to set. + * @return This builder for chaining. + */ + public Builder setMaxIntendedStakeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance(); + maxIntendedStake_ = value; + onChanged(); + return this; } - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference build() { - io.vegaprotocol.vega.Vega.LiquidityOrderReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.lang.Object pendingStake_ = ""; + /** + *
+       * Amount of stake on the next epoch
+       * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The pendingStake. + */ + public java.lang.String getPendingStake() { + java.lang.Object ref = pendingStake_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingStake_ = s; + return s; + } else { + return (java.lang.String) ref; } - return result; } - - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference buildPartial() { - io.vegaprotocol.vega.Vega.LiquidityOrderReference result = new io.vegaprotocol.vega.Vega.LiquidityOrderReference(this); - result.orderId_ = orderId_; - if (liquidityOrderBuilder_ == null) { - result.liquidityOrder_ = liquidityOrder_; + /** + *
+       * Amount of stake on the next epoch
+       * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return The bytes for pendingStake. + */ + public com.google.protobuf.ByteString + getPendingStakeBytes() { + java.lang.Object ref = pendingStake_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pendingStake_ = b; + return b; } else { - result.liquidityOrder_ = liquidityOrderBuilder_.build(); + return (com.google.protobuf.ByteString) ref; } - onBuilt(); - return result; } + /** + *
+       * Amount of stake on the next epoch
+       * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @param value The pendingStake to set. + * @return This builder for chaining. + */ + public Builder setPendingStake( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + pendingStake_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + *
+       * Amount of stake on the next epoch
+       * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @return This builder for chaining. + */ + public Builder clearPendingStake() { + + pendingStake_ = getDefaultInstance().getPendingStake(); + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+       * Amount of stake on the next epoch
+       * 
+ * + * string pending_stake = 9 [json_name = "pendingStake"]; + * @param value The bytes for pendingStake to set. + * @return This builder for chaining. + */ + public Builder setPendingStakeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pendingStake_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + + private io.vegaprotocol.vega.Vega.EpochData epochData_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochData, io.vegaprotocol.vega.Vega.EpochData.Builder, io.vegaprotocol.vega.Vega.EpochDataOrBuilder> epochDataBuilder_; + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return Whether the epochData field is set. + */ + public boolean hasEpochData() { + return epochDataBuilder_ != null || epochData_ != null; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.LiquidityOrderReference) { - return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityOrderReference)other); + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + * @return The epochData. + */ + public io.vegaprotocol.vega.Vega.EpochData getEpochData() { + if (epochDataBuilder_ == null) { + return epochData_ == null ? io.vegaprotocol.vega.Vega.EpochData.getDefaultInstance() : epochData_; } else { - super.mergeFrom(other); - return this; + return epochDataBuilder_.getMessage(); } } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityOrderReference other) { - if (other == io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()) return this; - if (!other.getOrderId().isEmpty()) { - orderId_ = other.orderId_; + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + public Builder setEpochData(io.vegaprotocol.vega.Vega.EpochData value) { + if (epochDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + epochData_ = value; onChanged(); + } else { + epochDataBuilder_.setMessage(value); } - if (other.hasLiquidityOrder()) { - mergeLiquidityOrder(other.getLiquidityOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); + return this; } + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + public Builder setEpochData( + io.vegaprotocol.vega.Vega.EpochData.Builder builderForValue) { + if (epochDataBuilder_ == null) { + epochData_ = builderForValue.build(); + onChanged(); + } else { + epochDataBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public final boolean isInitialized() { - return true; + return this; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.Vega.LiquidityOrderReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityOrderReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + public Builder mergeEpochData(io.vegaprotocol.vega.Vega.EpochData value) { + if (epochDataBuilder_ == null) { + if (epochData_ != null) { + epochData_ = + io.vegaprotocol.vega.Vega.EpochData.newBuilder(epochData_).mergeFrom(value).buildPartial(); + } else { + epochData_ = value; } + onChanged(); + } else { + epochDataBuilder_.mergeFrom(value); } + return this; } - - private java.lang.Object orderId_ = ""; /** *
-       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+       * Informantion about epoch
        * 
* - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; + public Builder clearEpochData() { + if (epochDataBuilder_ == null) { + epochData_ = null; + onChanged(); } else { - return (java.lang.String) ref; + epochData_ = null; + epochDataBuilder_ = null; } + + return this; } /** *
-       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+       * Informantion about epoch
        * 
* - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; + public io.vegaprotocol.vega.Vega.EpochData.Builder getEpochDataBuilder() { + + onChanged(); + return getEpochDataFieldBuilder().getBuilder(); + } + /** + *
+       * Informantion about epoch
+       * 
+ * + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { + if (epochDataBuilder_ != null) { + return epochDataBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return epochData_ == null ? + io.vegaprotocol.vega.Vega.EpochData.getDefaultInstance() : epochData_; } } /** *
-       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+       * Informantion about epoch
        * 
* - * string order_id = 1 [json_name = "orderId"]; - * @param value The orderId to set. + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochData, io.vegaprotocol.vega.Vega.EpochData.Builder, io.vegaprotocol.vega.Vega.EpochDataOrBuilder> + getEpochDataFieldBuilder() { + if (epochDataBuilder_ == null) { + epochDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Vega.EpochData, io.vegaprotocol.vega.Vega.EpochData.Builder, io.vegaprotocol.vega.Vega.EpochDataOrBuilder>( + getEpochData(), + getParentForChildren(), + isClean()); + epochData_ = null; + } + return epochDataBuilder_; + } + + private int status_ = 0; + /** + *
+       * Node status
+       * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+       * Node status
+       * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ - public Builder setOrderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusValue(int value) { - orderId_ = value; + status_ = value; onChanged(); return this; } /** *
-       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+       * Node status
        * 
* - * string order_id = 1 [json_name = "orderId"]; + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @return The status. + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeStatus getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.NodeStatus result = io.vegaprotocol.vega.Vega.NodeStatus.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.NodeStatus.UNRECOGNIZED : result; + } + /** + *
+       * Node status
+       * 
+ * + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } + * @param value The status to set. * @return This builder for chaining. */ - public Builder clearOrderId() { + public Builder setStatus(io.vegaprotocol.vega.Vega.NodeStatus value) { + if (value == null) { + throw new NullPointerException(); + } - orderId_ = getDefaultInstance().getOrderId(); + status_ = value.getNumber(); onChanged(); return this; } /** *
-       * Unique identifier of the pegged order generated by the core to fulfil this liquidity order
+       * Node status
        * 
* - * string order_id = 1 [json_name = "orderId"]; - * @param value The bytes for orderId to set. + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return This builder for chaining. */ - public Builder setOrderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearStatus() { - orderId_ = value; + status_ = 0; onChanged(); return this; } - private io.vegaprotocol.vega.Vega.LiquidityOrder liquidityOrder_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder> liquidityOrderBuilder_; + private java.util.List delagations_ = + java.util.Collections.emptyList(); + private void ensureDelagationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + delagations_ = new java.util.ArrayList(delagations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder> delagationsBuilder_; + /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return Whether the liquidityOrder field is set. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public boolean hasLiquidityOrder() { - return liquidityOrderBuilder_ != null || liquidityOrder_ != null; + public java.util.List getDelagationsList() { + if (delagationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(delagations_); + } else { + return delagationsBuilder_.getMessageList(); + } } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; - * @return The liquidityOrder. + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public io.vegaprotocol.vega.Vega.LiquidityOrder getLiquidityOrder() { - if (liquidityOrderBuilder_ == null) { - return liquidityOrder_ == null ? io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; + public int getDelagationsCount() { + if (delagationsBuilder_ == null) { + return delagations_.size(); } else { - return liquidityOrderBuilder_.getMessage(); + return delagationsBuilder_.getCount(); } } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public Builder setLiquidityOrder(io.vegaprotocol.vega.Vega.LiquidityOrder value) { - if (liquidityOrderBuilder_ == null) { + public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { + if (delagationsBuilder_ == null) { + return delagations_.get(index); + } else { + return delagationsBuilder_.getMessage(index); + } + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public Builder setDelagations( + int index, io.vegaprotocol.vega.Vega.Delegation value) { + if (delagationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - liquidityOrder_ = value; + ensureDelagationsIsMutable(); + delagations_.set(index, value); onChanged(); } else { - liquidityOrderBuilder_.setMessage(value); + delagationsBuilder_.setMessage(index, value); } - return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public Builder setLiquidityOrder( - io.vegaprotocol.vega.Vega.LiquidityOrder.Builder builderForValue) { - if (liquidityOrderBuilder_ == null) { - liquidityOrder_ = builderForValue.build(); + public Builder setDelagations( + int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delagationsBuilder_ == null) { + ensureDelagationsIsMutable(); + delagations_.set(index, builderForValue.build()); onChanged(); } else { - liquidityOrderBuilder_.setMessage(builderForValue.build()); + delagationsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public Builder mergeLiquidityOrder(io.vegaprotocol.vega.Vega.LiquidityOrder value) { - if (liquidityOrderBuilder_ == null) { - if (liquidityOrder_ != null) { - liquidityOrder_ = - io.vegaprotocol.vega.Vega.LiquidityOrder.newBuilder(liquidityOrder_).mergeFrom(value).buildPartial(); - } else { - liquidityOrder_ = value; + public Builder addDelagations(io.vegaprotocol.vega.Vega.Delegation value) { + if (delagationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureDelagationsIsMutable(); + delagations_.add(value); onChanged(); } else { - liquidityOrderBuilder_.mergeFrom(value); + delagationsBuilder_.addMessage(value); } - return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public Builder clearLiquidityOrder() { - if (liquidityOrderBuilder_ == null) { - liquidityOrder_ = null; + public Builder addDelagations( + int index, io.vegaprotocol.vega.Vega.Delegation value) { + if (delagationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDelagationsIsMutable(); + delagations_.add(index, value); onChanged(); } else { - liquidityOrder_ = null; - liquidityOrderBuilder_ = null; + delagationsBuilder_.addMessage(index, value); } - return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public io.vegaprotocol.vega.Vega.LiquidityOrder.Builder getLiquidityOrderBuilder() { - - onChanged(); - return getLiquidityOrderFieldBuilder().getBuilder(); + public Builder addDelagations( + io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delagationsBuilder_ == null) { + ensureDelagationsIsMutable(); + delagations_.add(builderForValue.build()); + onChanged(); + } else { + delagationsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - public io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder getLiquidityOrderOrBuilder() { - if (liquidityOrderBuilder_ != null) { - return liquidityOrderBuilder_.getMessageOrBuilder(); + public Builder addDelagations( + int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { + if (delagationsBuilder_ == null) { + ensureDelagationsIsMutable(); + delagations_.add(index, builderForValue.build()); + onChanged(); } else { - return liquidityOrder_ == null ? - io.vegaprotocol.vega.Vega.LiquidityOrder.getDefaultInstance() : liquidityOrder_; + delagationsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** *
-       * The liquidity order from the original submission
+       * Node's delegations
        * 
* - * .vega.LiquidityOrder liquidity_order = 2 [json_name = "liquidityOrder"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder> - getLiquidityOrderFieldBuilder() { - if (liquidityOrderBuilder_ == null) { - liquidityOrderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrder, io.vegaprotocol.vega.Vega.LiquidityOrder.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderOrBuilder>( - getLiquidityOrder(), + public Builder addAllDelagations( + java.lang.Iterable values) { + if (delagationsBuilder_ == null) { + ensureDelagationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, delagations_); + onChanged(); + } else { + delagationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public Builder clearDelagations() { + if (delagationsBuilder_ == null) { + delagations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + delagationsBuilder_.clear(); + } + return this; + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public Builder removeDelagations(int index) { + if (delagationsBuilder_ == null) { + ensureDelagationsIsMutable(); + delagations_.remove(index); + onChanged(); + } else { + delagationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder getDelagationsBuilder( + int index) { + return getDelagationsFieldBuilder().getBuilder(index); + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( + int index) { + if (delagationsBuilder_ == null) { + return delagations_.get(index); } else { + return delagationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public java.util.List + getDelagationsOrBuilderList() { + if (delagationsBuilder_ != null) { + return delagationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(delagations_); + } + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder() { + return getDelagationsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance()); + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder( + int index) { + return getDelagationsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance()); + } + /** + *
+       * Node's delegations
+       * 
+ * + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; + */ + public java.util.List + getDelagationsBuilderList() { + return getDelagationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder> + getDelagationsFieldBuilder() { + if (delagationsBuilder_ == null) { + delagationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Delegation, io.vegaprotocol.vega.Vega.Delegation.Builder, io.vegaprotocol.vega.Vega.DelegationOrBuilder>( + delagations_, + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - liquidityOrder_ = null; + delagations_ = null; } - return liquidityOrderBuilder_; + return delagationsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -57717,342 +63069,131 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.LiquidityOrderReference) + // @@protoc_insertion_point(builder_scope:vega.Node) } - // @@protoc_insertion_point(class_scope:vega.LiquidityOrderReference) - private static final io.vegaprotocol.vega.Vega.LiquidityOrderReference DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.Node) + private static final io.vegaprotocol.vega.Vega.Node DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityOrderReference(); - } - - public static io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiquidityOrderReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityOrderReference(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Node(); } - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getDefaultInstanceForType() { + public static io.vegaprotocol.vega.Vega.Node getDefaultInstance() { return DEFAULT_INSTANCE; - } - - } - - public interface LiquidityProvisionOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.LiquidityProvision) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Unique identifier
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Unique party identifier for the creator of the provision
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Unique party identifier for the creator of the provision
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Timestamp for when the order was created at, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. - */ - long getCreatedAt(); - - /** - *
-     * Timestamp for when the order was updated at, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 updated_at = 4 [json_name = "updatedAt"]; - * @return The updatedAt. - */ - long getUpdatedAt(); - - /** - *
-     * Market identifier for the order, required field
-     * 
- * - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier for the order, required field
-     * 
- * - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Specified as a unitless number that represents the amount of settlement asset of the market
-     * 
- * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - * @return The commitmentAmount. - */ - long getCommitmentAmount(); - - /** - *
-     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-     * 
- * - * string fee = 7 [json_name = "fee"]; - * @return The fee. - */ - java.lang.String getFee(); - /** - *
-     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-     * 
- * - * string fee = 7 [json_name = "fee"]; - * @return The bytes for fee. - */ - com.google.protobuf.ByteString - getFeeBytes(); - - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - java.util.List - getSellsList(); - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index); - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - int getSellsCount(); - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - java.util.List - getSellsOrBuilderList(); - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( - int index); + } - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - java.util.List - getBuysList(); - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index); - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - int getBuysCount(); - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - java.util.List - getBuysOrBuilderList(); - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( - int index); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.NodeData) + com.google.protobuf.MessageOrBuilder { /** *
-     * Version of this liquidity provision order
+     * Total staked amount across all nodes
      * 
* - * string version = 10 [json_name = "version"]; - * @return The version. + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The stakedTotal. */ - java.lang.String getVersion(); + java.lang.String getStakedTotal(); /** *
-     * Version of this liquidity provision order
+     * Total staked amount across all nodes
      * 
* - * string version = 10 [json_name = "version"]; - * @return The bytes for version. + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. */ com.google.protobuf.ByteString - getVersionBytes(); + getStakedTotalBytes(); /** *
-     * Status of this liquidity provision order
+     * Total number of nodes
      * 
* - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The enum numeric value on the wire for status. + * uint32 total_nodes = 2 [json_name = "totalNodes"]; + * @return The totalNodes. */ - int getStatusValue(); + int getTotalNodes(); + /** *
-     * Status of this liquidity provision order
+     * Number of inactive nodes
      * 
* - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The status. + * uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + * @return The inactiveNodes. */ - io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus(); + int getInactiveNodes(); /** *
-     * A reference shared between this liquidity provision and all it's orders
+     * Number of nodes validating
      * 
* - * string reference = 12 [json_name = "reference"]; - * @return The reference. + * uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + * @return The validatingNodes. */ - java.lang.String getReference(); + int getValidatingNodes(); + /** *
-     * A reference shared between this liquidity provision and all it's orders
+     * Total uptime for all epochs across all nodes
      * 
* - * string reference = 12 [json_name = "reference"]; - * @return The bytes for reference. + * float uptime = 5 [json_name = "uptime"]; + * @return The uptime. */ - com.google.protobuf.ByteString - getReferenceBytes(); + float getUptime(); } /** - *
-   * An Liquidity provider commitment
-   * 
- * - * Protobuf type {@code vega.LiquidityProvision} + * Protobuf type {@code vega.NodeData} */ - public static final class LiquidityProvision extends + public static final class NodeData extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.LiquidityProvision) - LiquidityProvisionOrBuilder { + // @@protoc_insertion_point(message_implements:vega.NodeData) + NodeDataOrBuilder { private static final long serialVersionUID = 0L; - // Use LiquidityProvision.newBuilder() to construct. - private LiquidityProvision(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NodeData.newBuilder() to construct. + private NodeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LiquidityProvision() { - id_ = ""; - partyId_ = ""; - marketId_ = ""; - fee_ = ""; - sells_ = java.util.Collections.emptyList(); - buys_ = java.util.Collections.emptyList(); - version_ = ""; - status_ = 0; - reference_ = ""; + private NodeData() { + stakedTotal_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new LiquidityProvision(); + return new NodeData(); } @java.lang.Override @@ -58060,7 +63201,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private LiquidityProvision( + private NodeData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -58068,7 +63209,6 @@ private LiquidityProvision( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -58082,76 +63222,27 @@ private LiquidityProvision( case 10: { java.lang.String s = input.readStringRequireUtf8(); - id_ = s; + stakedTotal_ = s; break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: { - partyId_ = s; + totalNodes_ = input.readUInt32(); break; } case 24: { - createdAt_ = input.readInt64(); + inactiveNodes_ = input.readUInt32(); break; } case 32: { - updatedAt_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 48: { - - commitmentAmount_ = input.readUInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - fee_ = s; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sells_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sells_.add( - input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrderReference.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - buys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - buys_.add( - input.readMessage(io.vegaprotocol.vega.Vega.LiquidityOrderReference.parser(), extensionRegistry)); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 88: { - int rawValue = input.readEnum(); - - status_ = rawValue; + validatingNodes_ = input.readUInt32(); break; } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + case 45: { - reference_ = s; + uptime_ = input.readFloat(); break; } default: { @@ -58169,710 +63260,1188 @@ private LiquidityProvision( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sells_ = java.util.Collections.unmodifiableList(sells_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - buys_ = java.util.Collections.unmodifiableList(buys_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_NodeData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_NodeData_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityProvision.class, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder.class); + io.vegaprotocol.vega.Vega.NodeData.class, io.vegaprotocol.vega.Vega.NodeData.Builder.class); + } + + public static final int STAKED_TOTAL_FIELD_NUMBER = 1; + private volatile java.lang.Object stakedTotal_; + /** + *
+     * Total staked amount across all nodes
+     * 
+ * + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The stakedTotal. + */ + @java.lang.Override + public java.lang.String getStakedTotal() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedTotal_ = s; + return s; + } + } + /** + *
+     * Total staked amount across all nodes
+     * 
+ * + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStakedTotalBytes() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedTotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_NODES_FIELD_NUMBER = 2; + private int totalNodes_; + /** + *
+     * Total number of nodes
+     * 
+ * + * uint32 total_nodes = 2 [json_name = "totalNodes"]; + * @return The totalNodes. + */ + @java.lang.Override + public int getTotalNodes() { + return totalNodes_; + } + + public static final int INACTIVE_NODES_FIELD_NUMBER = 3; + private int inactiveNodes_; + /** + *
+     * Number of inactive nodes
+     * 
+ * + * uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + * @return The inactiveNodes. + */ + @java.lang.Override + public int getInactiveNodes() { + return inactiveNodes_; + } + + public static final int VALIDATING_NODES_FIELD_NUMBER = 4; + private int validatingNodes_; + /** + *
+     * Number of nodes validating
+     * 
+ * + * uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + * @return The validatingNodes. + */ + @java.lang.Override + public int getValidatingNodes() { + return validatingNodes_; + } + + public static final int UPTIME_FIELD_NUMBER = 5; + private float uptime_; + /** + *
+     * Total uptime for all epochs across all nodes
+     * 
+ * + * float uptime = 5 [json_name = "uptime"]; + * @return The uptime. + */ + @java.lang.Override + public float getUptime() { + return uptime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getStakedTotalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stakedTotal_); + } + if (totalNodes_ != 0) { + output.writeUInt32(2, totalNodes_); + } + if (inactiveNodes_ != 0) { + output.writeUInt32(3, inactiveNodes_); + } + if (validatingNodes_ != 0) { + output.writeUInt32(4, validatingNodes_); + } + if (uptime_ != 0F) { + output.writeFloat(5, uptime_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStakedTotalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stakedTotal_); + } + if (totalNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, totalNodes_); + } + if (inactiveNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, inactiveNodes_); + } + if (validatingNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, validatingNodes_); + } + if (uptime_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, uptime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.Vega.NodeData)) { + return super.equals(obj); + } + io.vegaprotocol.vega.Vega.NodeData other = (io.vegaprotocol.vega.Vega.NodeData) obj; + + if (!getStakedTotal() + .equals(other.getStakedTotal())) return false; + if (getTotalNodes() + != other.getTotalNodes()) return false; + if (getInactiveNodes() + != other.getInactiveNodes()) return false; + if (getValidatingNodes() + != other.getValidatingNodes()) return false; + if (java.lang.Float.floatToIntBits(getUptime()) + != java.lang.Float.floatToIntBits( + other.getUptime())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STAKED_TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getStakedTotal().hashCode(); + hash = (37 * hash) + TOTAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getTotalNodes(); + hash = (37 * hash) + INACTIVE_NODES_FIELD_NUMBER; + hash = (53 * hash) + getInactiveNodes(); + hash = (37 * hash) + VALIDATING_NODES_FIELD_NUMBER; + hash = (53 * hash) + getValidatingNodes(); + hash = (37 * hash) + UPTIME_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getUptime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.NodeData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.NodeData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.NodeData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.NodeData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - /** - *
-     * Status of a liquidity provision order
-     * 
- * - * Protobuf enum {@code vega.LiquidityProvision.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.NodeData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.NodeData) + io.vegaprotocol.vega.Vega.NodeDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_NodeData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_NodeData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.NodeData.class, io.vegaprotocol.vega.Vega.NodeData.Builder.class); + } + + // Construct using io.vegaprotocol.vega.Vega.NodeData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + stakedTotal_ = ""; + + totalNodes_ = 0; + + inactiveNodes_ = 0; + + validatingNodes_ = 0; + + uptime_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_NodeData_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeData getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.NodeData.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeData build() { + io.vegaprotocol.vega.Vega.NodeData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeData buildPartial() { + io.vegaprotocol.vega.Vega.NodeData result = new io.vegaprotocol.vega.Vega.NodeData(this); + result.stakedTotal_ = stakedTotal_; + result.totalNodes_ = totalNodes_; + result.inactiveNodes_ = inactiveNodes_; + result.validatingNodes_ = validatingNodes_; + result.uptime_ = uptime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.NodeData) { + return mergeFrom((io.vegaprotocol.vega.Vega.NodeData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.NodeData other) { + if (other == io.vegaprotocol.vega.Vega.NodeData.getDefaultInstance()) return this; + if (!other.getStakedTotal().isEmpty()) { + stakedTotal_ = other.stakedTotal_; + onChanged(); + } + if (other.getTotalNodes() != 0) { + setTotalNodes(other.getTotalNodes()); + } + if (other.getInactiveNodes() != 0) { + setInactiveNodes(other.getInactiveNodes()); + } + if (other.getValidatingNodes() != 0) { + setValidatingNodes(other.getValidatingNodes()); + } + if (other.getUptime() != 0F) { + setUptime(other.getUptime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.NodeData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.NodeData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object stakedTotal_ = ""; /** *
-       * The default value
+       * Total staked amount across all nodes
        * 
* - * STATUS_UNSPECIFIED = 0; + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The stakedTotal. */ - STATUS_UNSPECIFIED(0), + public java.lang.String getStakedTotal() { + java.lang.Object ref = stakedTotal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stakedTotal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } /** *
-       * The liquidity provision is active
+       * Total staked amount across all nodes
        * 
* - * STATUS_ACTIVE = 1; + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return The bytes for stakedTotal. */ - STATUS_ACTIVE(1), + public com.google.protobuf.ByteString + getStakedTotalBytes() { + java.lang.Object ref = stakedTotal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stakedTotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } /** *
-       * The liquidity provision was stopped by the network
+       * Total staked amount across all nodes
        * 
* - * STATUS_STOPPED = 2; + * string staked_total = 1 [json_name = "stakedTotal"]; + * @param value The stakedTotal to set. + * @return This builder for chaining. */ - STATUS_STOPPED(2), + public Builder setStakedTotal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stakedTotal_ = value; + onChanged(); + return this; + } /** *
-       * The liquidity provision was cancelled by the liquidity provider
+       * Total staked amount across all nodes
        * 
* - * STATUS_CANCELLED = 3; + * string staked_total = 1 [json_name = "stakedTotal"]; + * @return This builder for chaining. */ - STATUS_CANCELLED(3), + public Builder clearStakedTotal() { + + stakedTotal_ = getDefaultInstance().getStakedTotal(); + onChanged(); + return this; + } /** *
-       * The liquidity provision was invalid and got rejected
+       * Total staked amount across all nodes
        * 
* - * STATUS_REJECTED = 4; + * string staked_total = 1 [json_name = "stakedTotal"]; + * @param value The bytes for stakedTotal to set. + * @return This builder for chaining. */ - STATUS_REJECTED(4), + public Builder setStakedTotalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stakedTotal_ = value; + onChanged(); + return this; + } + + private int totalNodes_ ; /** *
-       * The liquidity provision is valid and accepted by network, but orders aren't deployed
+       * Total number of nodes
        * 
* - * STATUS_UNDEPLOYED = 5; + * uint32 total_nodes = 2 [json_name = "totalNodes"]; + * @return The totalNodes. */ - STATUS_UNDEPLOYED(5), + @java.lang.Override + public int getTotalNodes() { + return totalNodes_; + } /** *
-       * The liquidity provision is valid and accepted by network
-       * but have never been deployed. I when it's possible to deploy them for the first time
-       * margin check fails, then they will be cancelled without any penalties.
+       * Total number of nodes
        * 
* - * STATUS_PENDING = 6; + * uint32 total_nodes = 2 [json_name = "totalNodes"]; + * @param value The totalNodes to set. + * @return This builder for chaining. */ - STATUS_PENDING(6), - UNRECOGNIZED(-1), - ; + public Builder setTotalNodes(int value) { + totalNodes_ = value; + onChanged(); + return this; + } /** *
-       * The default value
+       * Total number of nodes
        * 
* - * STATUS_UNSPECIFIED = 0; + * uint32 total_nodes = 2 [json_name = "totalNodes"]; + * @return This builder for chaining. */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; + public Builder clearTotalNodes() { + + totalNodes_ = 0; + onChanged(); + return this; + } + + private int inactiveNodes_ ; /** *
-       * The liquidity provision is active
+       * Number of inactive nodes
        * 
* - * STATUS_ACTIVE = 1; + * uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + * @return The inactiveNodes. */ - public static final int STATUS_ACTIVE_VALUE = 1; + @java.lang.Override + public int getInactiveNodes() { + return inactiveNodes_; + } /** *
-       * The liquidity provision was stopped by the network
+       * Number of inactive nodes
        * 
* - * STATUS_STOPPED = 2; + * uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + * @param value The inactiveNodes to set. + * @return This builder for chaining. */ - public static final int STATUS_STOPPED_VALUE = 2; + public Builder setInactiveNodes(int value) { + + inactiveNodes_ = value; + onChanged(); + return this; + } /** *
-       * The liquidity provision was cancelled by the liquidity provider
+       * Number of inactive nodes
        * 
* - * STATUS_CANCELLED = 3; + * uint32 inactive_nodes = 3 [json_name = "inactiveNodes"]; + * @return This builder for chaining. */ - public static final int STATUS_CANCELLED_VALUE = 3; + public Builder clearInactiveNodes() { + + inactiveNodes_ = 0; + onChanged(); + return this; + } + + private int validatingNodes_ ; /** *
-       * The liquidity provision was invalid and got rejected
+       * Number of nodes validating
        * 
* - * STATUS_REJECTED = 4; + * uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + * @return The validatingNodes. */ - public static final int STATUS_REJECTED_VALUE = 4; + @java.lang.Override + public int getValidatingNodes() { + return validatingNodes_; + } /** *
-       * The liquidity provision is valid and accepted by network, but orders aren't deployed
+       * Number of nodes validating
        * 
* - * STATUS_UNDEPLOYED = 5; + * uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + * @param value The validatingNodes to set. + * @return This builder for chaining. */ - public static final int STATUS_UNDEPLOYED_VALUE = 5; + public Builder setValidatingNodes(int value) { + + validatingNodes_ = value; + onChanged(); + return this; + } /** *
-       * The liquidity provision is valid and accepted by network
-       * but have never been deployed. I when it's possible to deploy them for the first time
-       * margin check fails, then they will be cancelled without any penalties.
+       * Number of nodes validating
        * 
* - * STATUS_PENDING = 6; + * uint32 validating_nodes = 4 [json_name = "validatingNodes"]; + * @return This builder for chaining. */ - public static final int STATUS_PENDING_VALUE = 6; - + public Builder clearValidatingNodes() { - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; + validatingNodes_ = 0; + onChanged(); + return this; } + private float uptime_ ; /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. + *
+       * Total uptime for all epochs across all nodes
+       * 
+ * + * float uptime = 5 [json_name = "uptime"]; + * @return The uptime. */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); + @java.lang.Override + public float getUptime() { + return uptime_; } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + *
+       * Total uptime for all epochs across all nodes
+       * 
+ * + * float uptime = 5 [json_name = "uptime"]; + * @param value The uptime to set. + * @return This builder for chaining. */ - public static Status forNumber(int value) { - switch (value) { - case 0: return STATUS_UNSPECIFIED; - case 1: return STATUS_ACTIVE; - case 2: return STATUS_STOPPED; - case 3: return STATUS_CANCELLED; - case 4: return STATUS_REJECTED; - case 5: return STATUS_UNDEPLOYED; - case 6: return STATUS_PENDING; - default: return null; - } - } + public Builder setUptime(float value) { - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + uptime_ = value; + onChanged(); + return this; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; + /** + *
+       * Total uptime for all epochs across all nodes
+       * 
+ * + * float uptime = 5 [json_name = "uptime"]; + * @return This builder for chaining. + */ + public Builder clearUptime() { - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); + uptime_ = 0F; + onChanged(); + return this; } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.vegaprotocol.vega.Vega.LiquidityProvision.getDescriptor().getEnumTypes().get(0); + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - private static final Status[] VALUES = values(); - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } + // @@protoc_insertion_point(builder_scope:vega.NodeData) + } - private final int value; + // @@protoc_insertion_point(class_scope:vega.NodeData) + private static final io.vegaprotocol.vega.Vega.NodeData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.NodeData(); + } - private Status(int value) { - this.value = value; + public static io.vegaprotocol.vega.Vega.NodeData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeData(input, extensionRegistry); } + }; - // @@protoc_insertion_point(enum_scope:vega.LiquidityProvision.Status) + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.NodeData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DelegationOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.Delegation) + com.google.protobuf.MessageOrBuilder { + /** *
-     * Unique identifier
+     * Party which is delegating
      * 
* - * string id = 1 [json_name = "id"]; - * @return The id. + * string party = 1 [json_name = "party"]; + * @return The party. */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } + java.lang.String getParty(); /** *
-     * Unique identifier
+     * Party which is delegating
      * 
* - * string id = 1 [json_name = "id"]; - * @return The bytes for id. + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + com.google.protobuf.ByteString + getPartyBytes(); - public static final int PARTY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object partyId_; /** *
-     * Unique party identifier for the creator of the provision
+     * Node ID
      * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. + * string node_id = 2 [json_name = "nodeId"]; + * @return The nodeId. */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } + java.lang.String getNodeId(); /** *
-     * Unique party identifier for the creator of the provision
+     * Node ID
      * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. + * string node_id = 2 [json_name = "nodeId"]; + * @return The bytes for nodeId. */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + com.google.protobuf.ByteString + getNodeIdBytes(); - public static final int CREATED_AT_FIELD_NUMBER = 3; - private long createdAt_; /** *
-     * Timestamp for when the order was created at, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * Amount delegated
      * 
* - * int64 created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. + * string amount = 3 [json_name = "amount"]; + * @return The amount. */ - @java.lang.Override - public long getCreatedAt() { - return createdAt_; - } - - public static final int UPDATED_AT_FIELD_NUMBER = 4; - private long updatedAt_; + java.lang.String getAmount(); /** *
-     * Timestamp for when the order was updated at, in nanoseconds since the epoch
-     * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+     * Amount delegated
      * 
* - * int64 updated_at = 4 [json_name = "updatedAt"]; - * @return The updatedAt. + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. */ - @java.lang.Override - public long getUpdatedAt() { - return updatedAt_; - } + com.google.protobuf.ByteString + getAmountBytes(); - public static final int MARKET_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object marketId_; /** *
-     * Market identifier for the order, required field
+     * Epoch of delegation
      * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The epochSeq. */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } + java.lang.String getEpochSeq(); /** *
-     * Market identifier for the order, required field
+     * Epoch of delegation
      * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. */ + com.google.protobuf.ByteString + getEpochSeqBytes(); + } + /** + * Protobuf type {@code vega.Delegation} + */ + public static final class Delegation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.Delegation) + DelegationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Delegation.newBuilder() to construct. + private Delegation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Delegation() { + party_ = ""; + nodeId_ = ""; + amount_ = ""; + epochSeq_ = ""; + } + @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Delegation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Delegation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + epochSeq_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Delegation_descriptor; + } - public static final int COMMITMENT_AMOUNT_FIELD_NUMBER = 6; - private long commitmentAmount_; - /** - *
-     * Specified as a unitless number that represents the amount of settlement asset of the market
-     * 
- * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - * @return The commitmentAmount. - */ @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_Delegation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.Delegation.class, io.vegaprotocol.vega.Vega.Delegation.Builder.class); } - public static final int FEE_FIELD_NUMBER = 7; - private volatile java.lang.Object fee_; + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; /** *
-     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+     * Party which is delegating
      * 
* - * string fee = 7 [json_name = "fee"]; - * @return The fee. + * string party = 1 [json_name = "party"]; + * @return The party. */ @java.lang.Override - public java.lang.String getFee() { - java.lang.Object ref = fee_; + public java.lang.String getParty() { + java.lang.Object ref = party_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - fee_ = s; + party_ = s; return s; } } /** *
-     * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
+     * Party which is delegating
      * 
* - * string fee = 7 [json_name = "fee"]; - * @return The bytes for fee. + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ @java.lang.Override public com.google.protobuf.ByteString - getFeeBytes() { - java.lang.Object ref = fee_; + getPartyBytes() { + java.lang.Object ref = party_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - fee_ = b; + party_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int SELLS_FIELD_NUMBER = 8; - private java.util.List sells_; - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - @java.lang.Override - public java.util.List getSellsList() { - return sells_; - } - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - @java.lang.Override - public java.util.List - getSellsOrBuilderList() { - return sells_; - } - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - @java.lang.Override - public int getSellsCount() { - return sells_.size(); - } - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index) { - return sells_.get(index); - } - /** - *
-     * A set of liquidity sell orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( - int index) { - return sells_.get(index); - } - - public static final int BUYS_FIELD_NUMBER = 9; - private java.util.List buys_; - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - @java.lang.Override - public java.util.List getBuysList() { - return buys_; - } - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - @java.lang.Override - public java.util.List - getBuysOrBuilderList() { - return buys_; - } - /** - *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
-     * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - @java.lang.Override - public int getBuysCount() { - return buys_.size(); - } + public static final int NODE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeId_; /** *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * Node ID
      * 
* - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string node_id = 2 [json_name = "nodeId"]; + * @return The nodeId. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index) { - return buys_.get(index); + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } } /** *
-     * A set of liquidity buy orders to meet the liquidity provision obligation
+     * Node ID
      * 
* - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string node_id = 2 [json_name = "nodeId"]; + * @return The bytes for nodeId. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( - int index) { - return buys_.get(index); + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int VERSION_FIELD_NUMBER = 10; - private volatile java.lang.Object version_; + public static final int AMOUNT_FIELD_NUMBER = 3; + private volatile java.lang.Object amount_; /** *
-     * Version of this liquidity provision order
+     * Amount delegated
      * 
* - * string version = 10 [json_name = "version"]; - * @return The version. + * string amount = 3 [json_name = "amount"]; + * @return The amount. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - version_ = s; + amount_ = s; return s; } } /** *
-     * Version of this liquidity provision order
+     * Amount delegated
      * 
* - * string version = 10 [json_name = "version"]; - * @return The bytes for version. + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. */ @java.lang.Override public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; + getAmountBytes() { + java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - version_ = b; + amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int STATUS_FIELD_NUMBER = 11; - private int status_; - /** - *
-     * Status of this liquidity provision order
-     * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * Status of this liquidity provision order
-     * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.LiquidityProvision.Status result = io.vegaprotocol.vega.Vega.LiquidityProvision.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.LiquidityProvision.Status.UNRECOGNIZED : result; - } - - public static final int REFERENCE_FIELD_NUMBER = 12; - private volatile java.lang.Object reference_; + public static final int EPOCH_SEQ_FIELD_NUMBER = 4; + private volatile java.lang.Object epochSeq_; /** *
-     * A reference shared between this liquidity provision and all it's orders
+     * Epoch of delegation
      * 
* - * string reference = 12 [json_name = "reference"]; - * @return The reference. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The epochSeq. */ @java.lang.Override - public java.lang.String getReference() { - java.lang.Object ref = reference_; + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - reference_ = s; + epochSeq_ = s; return s; } } /** *
-     * A reference shared between this liquidity provision and all it's orders
+     * Epoch of delegation
      * 
* - * string reference = 12 [json_name = "reference"]; - * @return The bytes for reference. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. */ @java.lang.Override public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - reference_ = b; + epochSeq_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -58893,41 +64462,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); - } - if (createdAt_ != 0L) { - output.writeInt64(3, createdAt_); - } - if (updatedAt_ != 0L) { - output.writeInt64(4, updatedAt_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_); - } - if (commitmentAmount_ != 0L) { - output.writeUInt64(6, commitmentAmount_); - } - if (!getFeeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fee_); - } - for (int i = 0; i < sells_.size(); i++) { - output.writeMessage(8, sells_.get(i)); - } - for (int i = 0; i < buys_.size(); i++) { - output.writeMessage(9, buys_.get(i)); + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, version_); + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); } - if (status_ != io.vegaprotocol.vega.Vega.LiquidityProvision.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(11, status_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } - if (!getReferenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, reference_); + if (!getEpochSeqBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, epochSeq_); } unknownFields.writeTo(output); } @@ -58938,47 +64483,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); - } - if (createdAt_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, createdAt_); - } - if (updatedAt_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, updatedAt_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_); - } - if (commitmentAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, commitmentAmount_); - } - if (!getFeeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fee_); - } - for (int i = 0; i < sells_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, sells_.get(i)); - } - for (int i = 0; i < buys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, buys_.get(i)); + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); } - if (status_ != io.vegaprotocol.vega.Vega.LiquidityProvision.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, status_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } - if (!getReferenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, reference_); + if (!getEpochSeqBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, epochSeq_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -58990,34 +64505,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.LiquidityProvision)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.Delegation)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.LiquidityProvision other = (io.vegaprotocol.vega.Vega.LiquidityProvision) obj; + io.vegaprotocol.vega.Vega.Delegation other = (io.vegaprotocol.vega.Vega.Delegation) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (getCreatedAt() - != other.getCreatedAt()) return false; - if (getUpdatedAt() - != other.getUpdatedAt()) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (getCommitmentAmount() - != other.getCommitmentAmount()) return false; - if (!getFee() - .equals(other.getFee())) return false; - if (!getSellsList() - .equals(other.getSellsList())) return false; - if (!getBuysList() - .equals(other.getBuysList())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (status_ != other.status_) return false; - if (!getReference() - .equals(other.getReference())) return false; + if (!getParty() + .equals(other.getParty())) return false; + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getEpochSeq() + .equals(other.getEpochSeq())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -59029,105 +64529,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreatedAt()); - hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUpdatedAt()); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + COMMITMENT_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommitmentAmount()); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + getFee().hashCode(); - if (getSellsCount() > 0) { - hash = (37 * hash) + SELLS_FIELD_NUMBER; - hash = (53 * hash) + getSellsList().hashCode(); - } - if (getBuysCount() > 0) { - hash = (37 * hash) + BUYS_FIELD_NUMBER; - hash = (53 * hash) + getBuysList().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER; + hash = (53 * hash) + getEpochSeq().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.Delegation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Delegation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.Delegation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( + public static io.vegaprotocol.vega.Vega.Delegation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -59140,7 +64617,7 @@ public static io.vegaprotocol.vega.Vega.LiquidityProvision parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.LiquidityProvision prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.Delegation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -59156,30 +64633,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * An Liquidity provider commitment
-     * 
- * - * Protobuf type {@code vega.LiquidityProvision} + * Protobuf type {@code vega.Delegation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.LiquidityProvision) - io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.Delegation) + io.vegaprotocol.vega.Vega.DelegationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Delegation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_Delegation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.LiquidityProvision.class, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder.class); + io.vegaprotocol.vega.Vega.Delegation.class, io.vegaprotocol.vega.Vega.Delegation.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.LiquidityProvision.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.Delegation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -59192,44 +64665,18 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getSellsFieldBuilder(); - getBuysFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - id_ = ""; - - partyId_ = ""; - - createdAt_ = 0L; - - updatedAt_ = 0L; - - marketId_ = ""; - - commitmentAmount_ = 0L; - - fee_ = ""; + party_ = ""; - if (sellsBuilder_ == null) { - sells_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sellsBuilder_.clear(); - } - if (buysBuilder_ == null) { - buys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - buysBuilder_.clear(); - } - version_ = ""; + nodeId_ = ""; - status_ = 0; + amount_ = ""; - reference_ = ""; + epochSeq_ = ""; return this; } @@ -59237,17 +64684,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_LiquidityProvision_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_Delegation_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.Delegation getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision build() { - io.vegaprotocol.vega.Vega.LiquidityProvision result = buildPartial(); + public io.vegaprotocol.vega.Vega.Delegation build() { + io.vegaprotocol.vega.Vega.Delegation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -59255,37 +64702,12 @@ public io.vegaprotocol.vega.Vega.LiquidityProvision build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision buildPartial() { - io.vegaprotocol.vega.Vega.LiquidityProvision result = new io.vegaprotocol.vega.Vega.LiquidityProvision(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.partyId_ = partyId_; - result.createdAt_ = createdAt_; - result.updatedAt_ = updatedAt_; - result.marketId_ = marketId_; - result.commitmentAmount_ = commitmentAmount_; - result.fee_ = fee_; - if (sellsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - sells_ = java.util.Collections.unmodifiableList(sells_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sells_ = sells_; - } else { - result.sells_ = sellsBuilder_.build(); - } - if (buysBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - buys_ = java.util.Collections.unmodifiableList(buys_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.buys_ = buys_; - } else { - result.buys_ = buysBuilder_.build(); - } - result.version_ = version_; - result.status_ = status_; - result.reference_ = reference_; + public io.vegaprotocol.vega.Vega.Delegation buildPartial() { + io.vegaprotocol.vega.Vega.Delegation result = new io.vegaprotocol.vega.Vega.Delegation(this); + result.party_ = party_; + result.nodeId_ = nodeId_; + result.amount_ = amount_; + result.epochSeq_ = epochSeq_; onBuilt(); return result; } @@ -59320,106 +64742,34 @@ public Builder setRepeatedField( public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.LiquidityProvision) { - return mergeFrom((io.vegaprotocol.vega.Vega.LiquidityProvision)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityProvision other) { - if (other == io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (other.getCreatedAt() != 0L) { - setCreatedAt(other.getCreatedAt()); - } - if (other.getUpdatedAt() != 0L) { - setUpdatedAt(other.getUpdatedAt()); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.getCommitmentAmount() != 0L) { - setCommitmentAmount(other.getCommitmentAmount()); - } - if (!other.getFee().isEmpty()) { - fee_ = other.fee_; - onChanged(); - } - if (sellsBuilder_ == null) { - if (!other.sells_.isEmpty()) { - if (sells_.isEmpty()) { - sells_ = other.sells_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSellsIsMutable(); - sells_.addAll(other.sells_); - } - onChanged(); - } - } else { - if (!other.sells_.isEmpty()) { - if (sellsBuilder_.isEmpty()) { - sellsBuilder_.dispose(); - sellsBuilder_ = null; - sells_ = other.sells_; - bitField0_ = (bitField0_ & ~0x00000001); - sellsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSellsFieldBuilder() : null; - } else { - sellsBuilder_.addAllMessages(other.sells_); - } - } - } - if (buysBuilder_ == null) { - if (!other.buys_.isEmpty()) { - if (buys_.isEmpty()) { - buys_ = other.buys_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBuysIsMutable(); - buys_.addAll(other.buys_); - } - onChanged(); - } + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.Delegation) { + return mergeFrom((io.vegaprotocol.vega.Vega.Delegation)other); } else { - if (!other.buys_.isEmpty()) { - if (buysBuilder_.isEmpty()) { - buysBuilder_.dispose(); - buysBuilder_ = null; - buys_ = other.buys_; - bitField0_ = (bitField0_ & ~0x00000002); - buysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBuysFieldBuilder() : null; - } else { - buysBuilder_.addAllMessages(other.buys_); - } - } + super.mergeFrom(other); + return this; } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; + } + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.Delegation other) { + if (other == io.vegaprotocol.vega.Vega.Delegation.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); } - if (!other.getReference().isEmpty()) { - reference_ = other.reference_; + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); + } + if (!other.getEpochSeq().isEmpty()) { + epochSeq_ = other.epochSeq_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -59437,11 +64787,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.LiquidityProvision parsedMessage = null; + io.vegaprotocol.vega.Vega.Delegation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.LiquidityProvision) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.Delegation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -59450,24 +64800,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.lang.Object id_ = ""; + private java.lang.Object party_ = ""; /** *
-       * Unique identifier
+       * Party which is delegating
        * 
* - * string id = 1 [json_name = "id"]; - * @return The id. + * string party = 1 [json_name = "party"]; + * @return The party. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getParty() { + java.lang.Object ref = party_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + party_ = s; return s; } else { return (java.lang.String) ref; @@ -59475,20 +64824,20 @@ public java.lang.String getId() { } /** *
-       * Unique identifier
+       * Party which is delegating
        * 
* - * string id = 1 [json_name = "id"]; - * @return The bytes for id. + * string party = 1 [json_name = "party"]; + * @return The bytes for party. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getPartyBytes() { + java.lang.Object ref = party_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + party_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -59496,74 +64845,74 @@ public java.lang.String getId() { } /** *
-       * Unique identifier
+       * Party which is delegating
        * 
* - * string id = 1 [json_name = "id"]; - * @param value The id to set. + * string party = 1 [json_name = "party"]; + * @param value The party to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setParty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + party_ = value; onChanged(); return this; } /** *
-       * Unique identifier
+       * Party which is delegating
        * 
* - * string id = 1 [json_name = "id"]; + * string party = 1 [json_name = "party"]; * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearParty() { - id_ = getDefaultInstance().getId(); + party_ = getDefaultInstance().getParty(); onChanged(); return this; } /** *
-       * Unique identifier
+       * Party which is delegating
        * 
* - * string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setPartyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + party_ = value; onChanged(); return this; } - private java.lang.Object partyId_ = ""; + private java.lang.Object nodeId_ = ""; /** *
-       * Unique party identifier for the creator of the provision
+       * Node ID
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. + * string node_id = 2 [json_name = "nodeId"]; + * @return The nodeId. */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - partyId_ = s; + nodeId_ = s; return s; } else { return (java.lang.String) ref; @@ -59571,20 +64920,20 @@ public java.lang.String getPartyId() { } /** *
-       * Unique party identifier for the creator of the provision
+       * Node ID
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. + * string node_id = 2 [json_name = "nodeId"]; + * @return The bytes for nodeId. */ public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; + getNodeIdBytes() { + java.lang.Object ref = nodeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - partyId_ = b; + nodeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -59592,166 +64941,170 @@ public java.lang.String getPartyId() { } /** *
-       * Unique party identifier for the creator of the provision
+       * Node ID
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @param value The partyId to set. + * string node_id = 2 [json_name = "nodeId"]; + * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setPartyId( + public Builder setNodeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - partyId_ = value; + nodeId_ = value; onChanged(); return this; } /** *
-       * Unique party identifier for the creator of the provision
+       * Node ID
        * 
* - * string party_id = 2 [json_name = "partyId"]; + * string node_id = 2 [json_name = "nodeId"]; * @return This builder for chaining. */ - public Builder clearPartyId() { + public Builder clearNodeId() { - partyId_ = getDefaultInstance().getPartyId(); + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** *
-       * Unique party identifier for the creator of the provision
+       * Node ID
        * 
* - * string party_id = 2 [json_name = "partyId"]; - * @param value The bytes for partyId to set. + * string node_id = 2 [json_name = "nodeId"]; + * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setPartyIdBytes( + public Builder setNodeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - partyId_ = value; + nodeId_ = value; onChanged(); return this; } - private long createdAt_ ; + private java.lang.Object amount_ = ""; /** *
-       * Timestamp for when the order was created at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Amount delegated
        * 
* - * int64 created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. + * string amount = 3 [json_name = "amount"]; + * @return The amount. */ - @java.lang.Override - public long getCreatedAt() { - return createdAt_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Timestamp for when the order was created at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Amount delegated
        * 
* - * int64 created_at = 3 [json_name = "createdAt"]; - * @param value The createdAt to set. - * @return This builder for chaining. + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. */ - public Builder setCreatedAt(long value) { - - createdAt_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
-       * Timestamp for when the order was created at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Amount delegated
        * 
* - * int64 created_at = 3 [json_name = "createdAt"]; + * string amount = 3 [json_name = "amount"]; + * @param value The amount to set. * @return This builder for chaining. */ - public Builder clearCreatedAt() { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - createdAt_ = 0L; + amount_ = value; onChanged(); return this; } - - private long updatedAt_ ; - /** - *
-       * Timestamp for when the order was updated at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-       * 
- * - * int64 updated_at = 4 [json_name = "updatedAt"]; - * @return The updatedAt. - */ - @java.lang.Override - public long getUpdatedAt() { - return updatedAt_; - } /** *
-       * Timestamp for when the order was updated at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Amount delegated
        * 
* - * int64 updated_at = 4 [json_name = "updatedAt"]; - * @param value The updatedAt to set. + * string amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ - public Builder setUpdatedAt(long value) { + public Builder clearAmount() { - updatedAt_ = value; + amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } /** *
-       * Timestamp for when the order was updated at, in nanoseconds since the epoch
-       * - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
+       * Amount delegated
        * 
* - * int64 updated_at = 4 [json_name = "updatedAt"]; + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. * @return This builder for chaining. */ - public Builder clearUpdatedAt() { + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - updatedAt_ = 0L; + amount_ = value; onChanged(); return this; } - private java.lang.Object marketId_ = ""; + private java.lang.Object epochSeq_ = ""; /** *
-       * Market identifier for the order, required field
+       * Epoch of delegation
        * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The epochSeq. */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - marketId_ = s; + epochSeq_ = s; return s; } else { return (java.lang.String) ref; @@ -59759,20 +65112,20 @@ public java.lang.String getMarketId() { } /** *
-       * Market identifier for the order, required field
+       * Epoch of delegation
        * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. */ public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - marketId_ = b; + epochSeq_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -59780,1083 +65133,1222 @@ public java.lang.String getMarketId() { } /** *
-       * Market identifier for the order, required field
+       * Epoch of delegation
        * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @param value The epochSeq to set. * @return This builder for chaining. */ - public Builder setMarketId( + public Builder setEpochSeq( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - marketId_ = value; + epochSeq_ = value; onChanged(); return this; } /** *
-       * Market identifier for the order, required field
+       * Epoch of delegation
        * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } + * string epoch_seq = 4 [json_name = "epochSeq"]; * @return This builder for chaining. */ - public Builder clearMarketId() { + public Builder clearEpochSeq() { - marketId_ = getDefaultInstance().getMarketId(); + epochSeq_ = getDefaultInstance().getEpochSeq(); onChanged(); return this; } /** *
-       * Market identifier for the order, required field
+       * Epoch of delegation
        * 
* - * string market_id = 5 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @param value The bytes for epochSeq to set. * @return This builder for chaining. */ - public Builder setMarketIdBytes( + public Builder setEpochSeqBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - marketId_ = value; + epochSeq_ = value; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.Delegation) + } + + // @@protoc_insertion_point(class_scope:vega.Delegation) + private static final io.vegaprotocol.vega.Vega.Delegation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.Delegation(); + } + + public static io.vegaprotocol.vega.Vega.Delegation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Delegation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Delegation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.Vega.Delegation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RewardDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.RewardDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * string asset_id = 1 [json_name = "assetId"]; + * @return The assetId. + */ + java.lang.String getAssetId(); + /** + * string asset_id = 1 [json_name = "assetId"]; + * @return The bytes for assetId. + */ + com.google.protobuf.ByteString + getAssetIdBytes(); + + /** + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + java.lang.String getPartyId(); + /** + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + com.google.protobuf.ByteString + getPartyIdBytes(); + + /** + * uint64 epoch = 3 [json_name = "epoch"]; + * @return The epoch. + */ + long getEpoch(); + + /** + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The percentageOfTotal. + */ + java.lang.String getPercentageOfTotal(); + /** + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The bytes for percentageOfTotal. + */ + com.google.protobuf.ByteString + getPercentageOfTotalBytes(); + + /** + * int64 received_at = 6 [json_name = "receivedAt"]; + * @return The receivedAt. + */ + long getReceivedAt(); + } + /** + *
+   * Details for a single reward payment
+   * 
+ * + * Protobuf type {@code vega.RewardDetails} + */ + public static final class RewardDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.RewardDetails) + RewardDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RewardDetails.newBuilder() to construct. + private RewardDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RewardDetails() { + assetId_ = ""; + partyId_ = ""; + amount_ = ""; + percentageOfTotal_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RewardDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RewardDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + assetId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + partyId_ = s; + break; + } + case 24: { + + epoch_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + percentageOfTotal_ = s; + break; + } + case 48: { + + receivedAt_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.RewardDetails.class, io.vegaprotocol.vega.Vega.RewardDetails.Builder.class); + } + + public static final int ASSET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object assetId_; + /** + * string asset_id = 1 [json_name = "assetId"]; + * @return The assetId. + */ + @java.lang.Override + public java.lang.String getAssetId() { + java.lang.Object ref = assetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetId_ = s; + return s; + } + } + /** + * string asset_id = 1 [json_name = "assetId"]; + * @return The bytes for assetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetIdBytes() { + java.lang.Object ref = assetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTY_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object partyId_; + /** + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. + */ + @java.lang.Override + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; + } + } + /** + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_FIELD_NUMBER = 3; + private long epoch_; + /** + * uint64 epoch = 3 [json_name = "epoch"]; + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + public static final int AMOUNT_FIELD_NUMBER = 4; + private volatile java.lang.Object amount_; + /** + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private long commitmentAmount_ ; - /** - *
-       * Specified as a unitless number that represents the amount of settlement asset of the market
-       * 
- * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - * @return The commitmentAmount. - */ - @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public static final int PERCENTAGE_OF_TOTAL_FIELD_NUMBER = 5; + private volatile java.lang.Object percentageOfTotal_; + /** + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The percentageOfTotal. + */ + @java.lang.Override + public java.lang.String getPercentageOfTotal() { + java.lang.Object ref = percentageOfTotal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + percentageOfTotal_ = s; + return s; } - /** - *
-       * Specified as a unitless number that represents the amount of settlement asset of the market
-       * 
- * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - * @param value The commitmentAmount to set. - * @return This builder for chaining. - */ - public Builder setCommitmentAmount(long value) { - - commitmentAmount_ = value; - onChanged(); - return this; + } + /** + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The bytes for percentageOfTotal. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPercentageOfTotalBytes() { + java.lang.Object ref = percentageOfTotal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + percentageOfTotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - *
-       * Specified as a unitless number that represents the amount of settlement asset of the market
-       * 
- * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - * @return This builder for chaining. - */ - public Builder clearCommitmentAmount() { + } - commitmentAmount_ = 0L; - onChanged(); - return this; - } + public static final int RECEIVED_AT_FIELD_NUMBER = 6; + private long receivedAt_; + /** + * int64 received_at = 6 [json_name = "receivedAt"]; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } - private java.lang.Object fee_ = ""; - /** - *
-       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-       * 
- * - * string fee = 7 [json_name = "fee"]; - * @return The fee. - */ - public java.lang.String getFee() { - java.lang.Object ref = fee_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fee_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAssetIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetId_); } - /** - *
-       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-       * 
- * - * string fee = 7 [json_name = "fee"]; - * @return The bytes for fee. - */ - public com.google.protobuf.ByteString - getFeeBytes() { - java.lang.Object ref = fee_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fee_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); } - /** - *
-       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-       * 
- * - * string fee = 7 [json_name = "fee"]; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fee_ = value; - onChanged(); - return this; + if (epoch_ != 0L) { + output.writeUInt64(3, epoch_); } - /** - *
-       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-       * 
- * - * string fee = 7 [json_name = "fee"]; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = getDefaultInstance().getFee(); - onChanged(); - return this; + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, amount_); } - /** - *
-       * Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
-       * 
- * - * string fee = 7 [json_name = "fee"]; - * @param value The bytes for fee to set. - * @return This builder for chaining. - */ - public Builder setFeeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fee_ = value; - onChanged(); - return this; + if (!getPercentageOfTotalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, percentageOfTotal_); } - - private java.util.List sells_ = - java.util.Collections.emptyList(); - private void ensureSellsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sells_ = new java.util.ArrayList(sells_); - bitField0_ |= 0x00000001; - } + if (receivedAt_ != 0L) { + output.writeInt64(6, receivedAt_); } + unknownFields.writeTo(output); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> sellsBuilder_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public java.util.List getSellsList() { - if (sellsBuilder_ == null) { - return java.util.Collections.unmodifiableList(sells_); - } else { - return sellsBuilder_.getMessageList(); - } - } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public int getSellsCount() { - if (sellsBuilder_ == null) { - return sells_.size(); - } else { - return sellsBuilder_.getCount(); - } - } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getSells(int index) { - if (sellsBuilder_ == null) { - return sells_.get(index); - } else { - return sellsBuilder_.getMessage(index); - } + size = 0; + if (!getAssetIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assetId_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder setSells( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (sellsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellsIsMutable(); - sells_.set(index, value); - onChanged(); - } else { - sellsBuilder_.setMessage(index, value); - } - return this; + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder setSells( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (sellsBuilder_ == null) { - ensureSellsIsMutable(); - sells_.set(index, builderForValue.build()); - onChanged(); - } else { - sellsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + if (epoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, epoch_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder addSells(io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (sellsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellsIsMutable(); - sells_.add(value); - onChanged(); - } else { - sellsBuilder_.addMessage(value); - } - return this; + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, amount_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder addSells( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (sellsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellsIsMutable(); - sells_.add(index, value); - onChanged(); - } else { - sellsBuilder_.addMessage(index, value); - } - return this; + if (!getPercentageOfTotalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, percentageOfTotal_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder addSells( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (sellsBuilder_ == null) { - ensureSellsIsMutable(); - sells_.add(builderForValue.build()); - onChanged(); - } else { - sellsBuilder_.addMessage(builderForValue.build()); - } - return this; + if (receivedAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, receivedAt_); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder addSells( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (sellsBuilder_ == null) { - ensureSellsIsMutable(); - sells_.add(index, builderForValue.build()); - onChanged(); - } else { - sellsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder addAllSells( - java.lang.Iterable values) { - if (sellsBuilder_ == null) { - ensureSellsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sells_); - onChanged(); - } else { - sellsBuilder_.addAllMessages(values); - } - return this; + if (!(obj instanceof io.vegaprotocol.vega.Vega.RewardDetails)) { + return super.equals(obj); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder clearSells() { - if (sellsBuilder_ == null) { - sells_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sellsBuilder_.clear(); - } - return this; + io.vegaprotocol.vega.Vega.RewardDetails other = (io.vegaprotocol.vega.Vega.RewardDetails) obj; + + if (!getAssetId() + .equals(other.getAssetId())) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (getEpoch() + != other.getEpoch()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getPercentageOfTotal() + .equals(other.getPercentageOfTotal())) return false; + if (getReceivedAt() + != other.getReceivedAt()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public Builder removeSells(int index) { - if (sellsBuilder_ == null) { - ensureSellsIsMutable(); - sells_.remove(index); - onChanged(); - } else { - sellsBuilder_.remove(index); - } - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSET_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssetId().hashCode(); + hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEpoch()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + PERCENTAGE_OF_TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getPercentageOfTotal().hashCode(); + hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReceivedAt()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.Vega.RewardDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.Vega.RewardDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Details for a single reward payment
+     * 
+ * + * Protobuf type {@code vega.RewardDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.RewardDetails) + io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardDetails_descriptor; } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder getSellsBuilder( - int index) { - return getSellsFieldBuilder().getBuilder(index); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.Vega.RewardDetails.class, io.vegaprotocol.vega.Vega.RewardDetails.Builder.class); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getSellsOrBuilder( - int index) { - if (sellsBuilder_ == null) { - return sells_.get(index); } else { - return sellsBuilder_.getMessageOrBuilder(index); - } + + // Construct using io.vegaprotocol.vega.Vega.RewardDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public java.util.List - getSellsOrBuilderList() { - if (sellsBuilder_ != null) { - return sellsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sells_); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addSellsBuilder() { - return getSellsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + @java.lang.Override + public Builder clear() { + super.clear(); + assetId_ = ""; + + partyId_ = ""; + + epoch_ = 0L; + + amount_ = ""; + + percentageOfTotal_ = ""; + + receivedAt_ = 0L; + + return this; } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addSellsBuilder( - int index) { - return getSellsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardDetails_descriptor; } - /** - *
-       * A set of liquidity sell orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; - */ - public java.util.List - getSellsBuilderList() { - return getSellsFieldBuilder().getBuilderList(); + + @java.lang.Override + public io.vegaprotocol.vega.Vega.RewardDetails getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.RewardDetails.getDefaultInstance(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> - getSellsFieldBuilder() { - if (sellsBuilder_ == null) { - sellsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder>( - sells_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - sells_ = null; + + @java.lang.Override + public io.vegaprotocol.vega.Vega.RewardDetails build() { + io.vegaprotocol.vega.Vega.RewardDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return sellsBuilder_; + return result; } - private java.util.List buys_ = - java.util.Collections.emptyList(); - private void ensureBuysIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - buys_ = new java.util.ArrayList(buys_); - bitField0_ |= 0x00000002; - } + @java.lang.Override + public io.vegaprotocol.vega.Vega.RewardDetails buildPartial() { + io.vegaprotocol.vega.Vega.RewardDetails result = new io.vegaprotocol.vega.Vega.RewardDetails(this); + result.assetId_ = assetId_; + result.partyId_ = partyId_; + result.epoch_ = epoch_; + result.amount_ = amount_; + result.percentageOfTotal_ = percentageOfTotal_; + result.receivedAt_ = receivedAt_; + onBuilt(); + return result; } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> buysBuilder_; - - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public java.util.List getBuysList() { - if (buysBuilder_ == null) { - return java.util.Collections.unmodifiableList(buys_); - } else { - return buysBuilder_.getMessageList(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public int getBuysCount() { - if (buysBuilder_ == null) { - return buys_.size(); - } else { - return buysBuilder_.getCount(); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference getBuys(int index) { - if (buysBuilder_ == null) { - return buys_.get(index); - } else { - return buysBuilder_.getMessage(index); - } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder setBuys( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (buysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuysIsMutable(); - buys_.set(index, value); - onChanged(); - } else { - buysBuilder_.setMessage(index, value); - } - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder setBuys( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (buysBuilder_ == null) { - ensureBuysIsMutable(); - buys_.set(index, builderForValue.build()); - onChanged(); - } else { - buysBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder addBuys(io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (buysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuysIsMutable(); - buys_.add(value); - onChanged(); - } else { - buysBuilder_.addMessage(value); - } - return this; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder addBuys( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference value) { - if (buysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuysIsMutable(); - buys_.add(index, value); - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.Vega.RewardDetails) { + return mergeFrom((io.vegaprotocol.vega.Vega.RewardDetails)other); } else { - buysBuilder_.addMessage(index, value); + super.mergeFrom(other); + return this; } - return this; } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder addBuys( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (buysBuilder_ == null) { - ensureBuysIsMutable(); - buys_.add(builderForValue.build()); + + public Builder mergeFrom(io.vegaprotocol.vega.Vega.RewardDetails other) { + if (other == io.vegaprotocol.vega.Vega.RewardDetails.getDefaultInstance()) return this; + if (!other.getAssetId().isEmpty()) { + assetId_ = other.assetId_; onChanged(); - } else { - buysBuilder_.addMessage(builderForValue.build()); } - return this; - } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder addBuys( - int index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder builderForValue) { - if (buysBuilder_ == null) { - ensureBuysIsMutable(); - buys_.add(index, builderForValue.build()); + if (!other.getPartyId().isEmpty()) { + partyId_ = other.partyId_; onChanged(); - } else { - buysBuilder_.addMessage(index, builderForValue.build()); } - return this; - } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder addAllBuys( - java.lang.Iterable values) { - if (buysBuilder_ == null) { - ensureBuysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buys_); + if (other.getEpoch() != 0L) { + setEpoch(other.getEpoch()); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; onChanged(); - } else { - buysBuilder_.addAllMessages(values); } - return this; - } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder clearBuys() { - if (buysBuilder_ == null) { - buys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (!other.getPercentageOfTotal().isEmpty()) { + percentageOfTotal_ = other.percentageOfTotal_; onChanged(); - } else { - buysBuilder_.clear(); } + if (other.getReceivedAt() != 0L) { + setReceivedAt(other.getReceivedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public Builder removeBuys(int index) { - if (buysBuilder_ == null) { - ensureBuysIsMutable(); - buys_.remove(index); - onChanged(); - } else { - buysBuilder_.remove(index); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.Vega.RewardDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.Vega.RewardDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } return this; } + + private java.lang.Object assetId_ = ""; /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder getBuysBuilder( - int index) { - return getBuysFieldBuilder().getBuilder(index); - } - /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string asset_id = 1 [json_name = "assetId"]; + * @return The assetId. */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder getBuysOrBuilder( - int index) { - if (buysBuilder_ == null) { - return buys_.get(index); } else { - return buysBuilder_.getMessageOrBuilder(index); + public java.lang.String getAssetId() { + java.lang.Object ref = assetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetId_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string asset_id = 1 [json_name = "assetId"]; + * @return The bytes for assetId. */ - public java.util.List - getBuysOrBuilderList() { - if (buysBuilder_ != null) { - return buysBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getAssetIdBytes() { + java.lang.Object ref = assetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assetId_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(buys_); + return (com.google.protobuf.ByteString) ref; } } /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string asset_id = 1 [json_name = "assetId"]; + * @param value The assetId to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addBuysBuilder() { - return getBuysFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + public Builder setAssetId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assetId_ = value; + onChanged(); + return this; } /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string asset_id = 1 [json_name = "assetId"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder addBuysBuilder( - int index) { - return getBuysFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.LiquidityOrderReference.getDefaultInstance()); + public Builder clearAssetId() { + + assetId_ = getDefaultInstance().getAssetId(); + onChanged(); + return this; } /** - *
-       * A set of liquidity buy orders to meet the liquidity provision obligation
-       * 
- * - * repeated .vega.LiquidityOrderReference buys = 9 [json_name = "buys"]; + * string asset_id = 1 [json_name = "assetId"]; + * @param value The bytes for assetId to set. + * @return This builder for chaining. */ - public java.util.List - getBuysBuilderList() { - return getBuysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder> - getBuysFieldBuilder() { - if (buysBuilder_ == null) { - buysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityOrderReference, io.vegaprotocol.vega.Vega.LiquidityOrderReference.Builder, io.vegaprotocol.vega.Vega.LiquidityOrderReferenceOrBuilder>( - buys_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - buys_ = null; - } - return buysBuilder_; + public Builder setAssetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assetId_ = value; + onChanged(); + return this; } - private java.lang.Object version_ = ""; + private java.lang.Object partyId_ = ""; /** - *
-       * Version of this liquidity provision order
-       * 
- * - * string version = 10 [json_name = "version"]; - * @return The version. + * string party_id = 2 [json_name = "partyId"]; + * @return The partyId. */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - version_ = s; + partyId_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-       * Version of this liquidity provision order
-       * 
- * - * string version = 10 [json_name = "version"]; - * @return The bytes for version. + * string party_id = 2 [json_name = "partyId"]; + * @return The bytes for partyId. */ public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; + getPartyIdBytes() { + java.lang.Object ref = partyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - version_ = b; + partyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * Version of this liquidity provision order
-       * 
- * - * string version = 10 [json_name = "version"]; - * @param value The version to set. + * string party_id = 2 [json_name = "partyId"]; + * @param value The partyId to set. * @return This builder for chaining. */ - public Builder setVersion( + public Builder setPartyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + partyId_ = value; onChanged(); return this; } /** - *
-       * Version of this liquidity provision order
-       * 
- * - * string version = 10 [json_name = "version"]; + * string party_id = 2 [json_name = "partyId"]; * @return This builder for chaining. */ - public Builder clearVersion() { + public Builder clearPartyId() { - version_ = getDefaultInstance().getVersion(); + partyId_ = getDefaultInstance().getPartyId(); onChanged(); return this; } /** - *
-       * Version of this liquidity provision order
-       * 
- * - * string version = 10 [json_name = "version"]; - * @param value The bytes for version to set. + * string party_id = 2 [json_name = "partyId"]; + * @param value The bytes for partyId to set. * @return This builder for chaining. */ - public Builder setVersionBytes( + public Builder setPartyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + partyId_ = value; onChanged(); return this; } - private int status_ = 0; + private long epoch_ ; /** - *
-       * Status of this liquidity provision order
-       * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The enum numeric value on the wire for status. + * uint64 epoch = 3 [json_name = "epoch"]; + * @return The epoch. */ - @java.lang.Override public int getStatusValue() { - return status_; + @java.lang.Override + public long getEpoch() { + return epoch_; } /** - *
-       * Status of this liquidity provision order
-       * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @param value The enum numeric value on the wire for status to set. + * uint64 epoch = 3 [json_name = "epoch"]; + * @param value The epoch to set. * @return This builder for chaining. */ - public Builder setStatusValue(int value) { + public Builder setEpoch(long value) { - status_ = value; + epoch_ = value; onChanged(); return this; } /** - *
-       * Status of this liquidity provision order
-       * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @return The status. + * uint64 epoch = 3 [json_name = "epoch"]; + * @return This builder for chaining. */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision.Status getStatus() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.LiquidityProvision.Status result = io.vegaprotocol.vega.Vega.LiquidityProvision.Status.valueOf(status_); - return result == null ? io.vegaprotocol.vega.Vega.LiquidityProvision.Status.UNRECOGNIZED : result; + public Builder clearEpoch() { + + epoch_ = 0L; + onChanged(); + return this; } + + private java.lang.Object amount_ = ""; /** - *
-       * Status of this liquidity provision order
-       * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; - * @param value The status to set. + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @param value The amount to set. * @return This builder for chaining. */ - public Builder setStatus(io.vegaprotocol.vega.Vega.LiquidityProvision.Status value) { + public Builder setAmount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } + throw new NullPointerException(); + } - status_ = value.getNumber(); + amount_ = value; onChanged(); return this; } /** - *
-       * Status of this liquidity provision order
-       * 
- * - * .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; + * string amount = 4 [json_name = "amount"]; * @return This builder for chaining. */ - public Builder clearStatus() { + public Builder clearAmount() { - status_ = 0; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + * string amount = 4 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } - private java.lang.Object reference_ = ""; + private java.lang.Object percentageOfTotal_ = ""; /** - *
-       * A reference shared between this liquidity provision and all it's orders
-       * 
- * - * string reference = 12 [json_name = "reference"]; - * @return The reference. + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The percentageOfTotal. */ - public java.lang.String getReference() { - java.lang.Object ref = reference_; + public java.lang.String getPercentageOfTotal() { + java.lang.Object ref = percentageOfTotal_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - reference_ = s; + percentageOfTotal_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-       * A reference shared between this liquidity provision and all it's orders
-       * 
- * - * string reference = 12 [json_name = "reference"]; - * @return The bytes for reference. + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @return The bytes for percentageOfTotal. */ public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; + getPercentageOfTotalBytes() { + java.lang.Object ref = percentageOfTotal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - reference_ = b; + percentageOfTotal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * A reference shared between this liquidity provision and all it's orders
-       * 
- * - * string reference = 12 [json_name = "reference"]; - * @param value The reference to set. + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @param value The percentageOfTotal to set. * @return This builder for chaining. */ - public Builder setReference( + public Builder setPercentageOfTotal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - reference_ = value; + percentageOfTotal_ = value; onChanged(); return this; } /** - *
-       * A reference shared between this liquidity provision and all it's orders
-       * 
- * - * string reference = 12 [json_name = "reference"]; + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; * @return This builder for chaining. */ - public Builder clearReference() { + public Builder clearPercentageOfTotal() { - reference_ = getDefaultInstance().getReference(); + percentageOfTotal_ = getDefaultInstance().getPercentageOfTotal(); onChanged(); return this; } /** - *
-       * A reference shared between this liquidity provision and all it's orders
-       * 
- * - * string reference = 12 [json_name = "reference"]; - * @param value The bytes for reference to set. + * string percentage_of_total = 5 [json_name = "percentageOfTotal"]; + * @param value The bytes for percentageOfTotal to set. * @return This builder for chaining. */ - public Builder setReferenceBytes( + public Builder setPercentageOfTotalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - reference_ = value; + percentageOfTotal_ = value; + onChanged(); + return this; + } + + private long receivedAt_ ; + /** + * int64 received_at = 6 [json_name = "receivedAt"]; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + /** + * int64 received_at = 6 [json_name = "receivedAt"]; + * @param value The receivedAt to set. + * @return This builder for chaining. + */ + public Builder setReceivedAt(long value) { + + receivedAt_ = value; + onChanged(); + return this; + } + /** + * int64 received_at = 6 [json_name = "receivedAt"]; + * @return This builder for chaining. + */ + public Builder clearReceivedAt() { + + receivedAt_ = 0L; onChanged(); return this; } @@ -60873,147 +66365,161 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.LiquidityProvision) + // @@protoc_insertion_point(builder_scope:vega.RewardDetails) } - // @@protoc_insertion_point(class_scope:vega.LiquidityProvision) - private static final io.vegaprotocol.vega.Vega.LiquidityProvision DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.RewardDetails) + private static final io.vegaprotocol.vega.Vega.RewardDetails DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.LiquidityProvision(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.RewardDetails(); } - public static io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.RewardDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public LiquidityProvision parsePartialFrom( + public RewardDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityProvision(input, extensionRegistry); + return new RewardDetails(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.RewardDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface EthereumConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:vega.EthereumConfig) + public interface RewardPerAssetDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.RewardPerAssetDetail) com.google.protobuf.MessageOrBuilder { /** *
-     * Network identifier of this Ethereum network
+     * asset details
      * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The networkId. + * string asset = 1 [json_name = "asset"]; + * @return The asset. */ - java.lang.String getNetworkId(); + java.lang.String getAsset(); /** *
-     * Network identifier of this Ethereum network
+     * asset details
      * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The bytes for networkId. + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. */ com.google.protobuf.ByteString - getNetworkIdBytes(); + getAssetBytes(); /** *
-     * Chain identifier of this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - java.lang.String getChainId(); + java.util.List + getDetailsList(); /** *
-     * Chain identifier of this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The bytes for chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - com.google.protobuf.ByteString - getChainIdBytes(); - + io.vegaprotocol.vega.Vega.RewardDetails getDetails(int index); /** *
-     * Bridge address for this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bridgeAddress. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - java.lang.String getBridgeAddress(); + int getDetailsCount(); /** *
-     * Bridge address for this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bytes for bridgeAddress. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - com.google.protobuf.ByteString - getBridgeAddressBytes(); + java.util.List + getDetailsOrBuilderList(); + /** + *
+     * rewards ordered by received_at
+     * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder getDetailsOrBuilder( + int index); /** *
-     * Number of confirmations
+     * Total amount of rewards for the asset
      * 
* - * uint32 confirmations = 4 [json_name = "confirmations"]; - * @return The confirmations. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The totalForAsset. */ - int getConfirmations(); + java.lang.String getTotalForAsset(); + /** + *
+     * Total amount of rewards for the asset
+     * 
+ * + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The bytes for totalForAsset. + */ + com.google.protobuf.ByteString + getTotalForAssetBytes(); } /** *
-   * Ethereum configuration details
+   * Details for rewards for a single asset
    * 
* - * Protobuf type {@code vega.EthereumConfig} + * Protobuf type {@code vega.RewardPerAssetDetail} */ - public static final class EthereumConfig extends + public static final class RewardPerAssetDetail extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.EthereumConfig) - EthereumConfigOrBuilder { + // @@protoc_insertion_point(message_implements:vega.RewardPerAssetDetail) + RewardPerAssetDetailOrBuilder { private static final long serialVersionUID = 0L; - // Use EthereumConfig.newBuilder() to construct. - private EthereumConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use RewardPerAssetDetail.newBuilder() to construct. + private RewardPerAssetDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EthereumConfig() { - networkId_ = ""; - chainId_ = ""; - bridgeAddress_ = ""; + private RewardPerAssetDetail() { + asset_ = ""; + details_ = java.util.Collections.emptyList(); + totalForAsset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new EthereumConfig(); + return new RewardPerAssetDetail(); } @java.lang.Override @@ -61021,7 +66527,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private EthereumConfig( + private RewardPerAssetDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -61029,6 +66535,7 @@ private EthereumConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -61042,24 +66549,22 @@ private EthereumConfig( case 10: { java.lang.String s = input.readStringRequireUtf8(); - networkId_ = s; + asset_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - chainId_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + details_.add( + input.readMessage(io.vegaprotocol.vega.Vega.RewardDetails.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); - bridgeAddress_ = s; - break; - } - case 32: { - - confirmations_ = input.readUInt32(); + totalForAsset_ = s; break; } default: { @@ -61077,176 +66582,178 @@ private EthereumConfig( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardPerAssetDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardPerAssetDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.EthereumConfig.class, io.vegaprotocol.vega.Vega.EthereumConfig.Builder.class); + io.vegaprotocol.vega.Vega.RewardPerAssetDetail.class, io.vegaprotocol.vega.Vega.RewardPerAssetDetail.Builder.class); } - public static final int NETWORK_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object networkId_; + public static final int ASSET_FIELD_NUMBER = 1; + private volatile java.lang.Object asset_; /** *
-     * Network identifier of this Ethereum network
+     * asset details
      * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The networkId. + * string asset = 1 [json_name = "asset"]; + * @return The asset. */ @java.lang.Override - public java.lang.String getNetworkId() { - java.lang.Object ref = networkId_; + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - networkId_ = s; + asset_ = s; return s; } } /** *
-     * Network identifier of this Ethereum network
+     * asset details
      * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The bytes for networkId. + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. */ @java.lang.Override public com.google.protobuf.ByteString - getNetworkIdBytes() { - java.lang.Object ref = networkId_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - networkId_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CHAIN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object chainId_; + public static final int DETAILS_FIELD_NUMBER = 2; + private java.util.List details_; /** *
-     * Chain identifier of this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ @java.lang.Override - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; - } + public java.util.List getDetailsList() { + return details_; } /** *
-     * Chain identifier of this Ethereum network
+     * rewards ordered by received_at
      * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The bytes for chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ @java.lang.Override - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getDetailsOrBuilderList() { + return details_; + } + /** + *
+     * rewards ordered by received_at
+     * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + @java.lang.Override + public int getDetailsCount() { + return details_.size(); + } + /** + *
+     * rewards ordered by received_at
+     * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.RewardDetails getDetails(int index) { + return details_.get(index); + } + /** + *
+     * rewards ordered by received_at
+     * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder getDetailsOrBuilder( + int index) { + return details_.get(index); } - public static final int BRIDGE_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object bridgeAddress_; + public static final int TOTAL_FOR_ASSET_FIELD_NUMBER = 3; + private volatile java.lang.Object totalForAsset_; /** *
-     * Bridge address for this Ethereum network
+     * Total amount of rewards for the asset
      * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bridgeAddress. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The totalForAsset. */ @java.lang.Override - public java.lang.String getBridgeAddress() { - java.lang.Object ref = bridgeAddress_; + public java.lang.String getTotalForAsset() { + java.lang.Object ref = totalForAsset_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bridgeAddress_ = s; + totalForAsset_ = s; return s; } } /** *
-     * Bridge address for this Ethereum network
+     * Total amount of rewards for the asset
      * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bytes for bridgeAddress. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The bytes for totalForAsset. */ @java.lang.Override public com.google.protobuf.ByteString - getBridgeAddressBytes() { - java.lang.Object ref = bridgeAddress_; + getTotalForAssetBytes() { + java.lang.Object ref = totalForAsset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - bridgeAddress_ = b; + totalForAsset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CONFIRMATIONS_FIELD_NUMBER = 4; - private int confirmations_; - /** - *
-     * Number of confirmations
-     * 
- * - * uint32 confirmations = 4 [json_name = "confirmations"]; - * @return The confirmations. - */ - @java.lang.Override - public int getConfirmations() { - return confirmations_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -61261,17 +66768,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNetworkIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_); - } - if (!getChainIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_); + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); } - if (!getBridgeAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bridgeAddress_); + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(2, details_.get(i)); } - if (confirmations_ != 0) { - output.writeUInt32(4, confirmations_); + if (!getTotalForAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, totalForAsset_); } unknownFields.writeTo(output); } @@ -61282,18 +66786,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNetworkIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_); - } - if (!getChainIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_); - } - if (!getBridgeAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bridgeAddress_); + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); } - if (confirmations_ != 0) { + for (int i = 0; i < details_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, confirmations_); + .computeMessageSize(2, details_.get(i)); + } + if (!getTotalForAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, totalForAsset_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -61305,19 +66806,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.Vega.EthereumConfig)) { + if (!(obj instanceof io.vegaprotocol.vega.Vega.RewardPerAssetDetail)) { return super.equals(obj); } - io.vegaprotocol.vega.Vega.EthereumConfig other = (io.vegaprotocol.vega.Vega.EthereumConfig) obj; + io.vegaprotocol.vega.Vega.RewardPerAssetDetail other = (io.vegaprotocol.vega.Vega.RewardPerAssetDetail) obj; - if (!getNetworkId() - .equals(other.getNetworkId())) return false; - if (!getChainId() - .equals(other.getChainId())) return false; - if (!getBridgeAddress() - .equals(other.getBridgeAddress())) return false; - if (getConfirmations() - != other.getConfirmations()) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getDetailsList() + .equals(other.getDetailsList())) return false; + if (!getTotalForAsset() + .equals(other.getTotalForAsset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -61329,82 +66828,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; - hash = (53 * hash) + getNetworkId().hashCode(); - hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getChainId().hashCode(); - hash = (37 * hash) + BRIDGE_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getBridgeAddress().hashCode(); - hash = (37 * hash) + CONFIRMATIONS_FIELD_NUMBER; - hash = (53 * hash) + getConfirmations(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + if (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (37 * hash) + TOTAL_FOR_ASSET_FIELD_NUMBER; + hash = (53 * hash) + getTotalForAsset().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom(byte[] data) + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseDelimitedFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -61417,7 +66916,7 @@ public static io.vegaprotocol.vega.Vega.EthereumConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.Vega.EthereumConfig prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.Vega.RewardPerAssetDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -61434,29 +66933,29 @@ protected Builder newBuilderForType( } /** *
-     * Ethereum configuration details
+     * Details for rewards for a single asset
      * 
* - * Protobuf type {@code vega.EthereumConfig} + * Protobuf type {@code vega.RewardPerAssetDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.EthereumConfig) - io.vegaprotocol.vega.Vega.EthereumConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.RewardPerAssetDetail) + io.vegaprotocol.vega.Vega.RewardPerAssetDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardPerAssetDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_fieldAccessorTable + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardPerAssetDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.Vega.EthereumConfig.class, io.vegaprotocol.vega.Vega.EthereumConfig.Builder.class); + io.vegaprotocol.vega.Vega.RewardPerAssetDetail.class, io.vegaprotocol.vega.Vega.RewardPerAssetDetail.Builder.class); } - // Construct using io.vegaprotocol.vega.Vega.EthereumConfig.newBuilder() + // Construct using io.vegaprotocol.vega.Vega.RewardPerAssetDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -61469,18 +66968,21 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - networkId_ = ""; - - chainId_ = ""; - - bridgeAddress_ = ""; + asset_ = ""; - confirmations_ = 0; + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + detailsBuilder_.clear(); + } + totalForAsset_ = ""; return this; } @@ -61488,17 +66990,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.Vega.internal_static_vega_EthereumConfig_descriptor; + return io.vegaprotocol.vega.Vega.internal_static_vega_RewardPerAssetDetail_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { - return io.vegaprotocol.vega.Vega.EthereumConfig.getDefaultInstance(); + public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType() { + return io.vegaprotocol.vega.Vega.RewardPerAssetDetail.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.Vega.EthereumConfig build() { - io.vegaprotocol.vega.Vega.EthereumConfig result = buildPartial(); + public io.vegaprotocol.vega.Vega.RewardPerAssetDetail build() { + io.vegaprotocol.vega.Vega.RewardPerAssetDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -61506,12 +67008,20 @@ public io.vegaprotocol.vega.Vega.EthereumConfig build() { } @java.lang.Override - public io.vegaprotocol.vega.Vega.EthereumConfig buildPartial() { - io.vegaprotocol.vega.Vega.EthereumConfig result = new io.vegaprotocol.vega.Vega.EthereumConfig(this); - result.networkId_ = networkId_; - result.chainId_ = chainId_; - result.bridgeAddress_ = bridgeAddress_; - result.confirmations_ = confirmations_; + public io.vegaprotocol.vega.Vega.RewardPerAssetDetail buildPartial() { + io.vegaprotocol.vega.Vega.RewardPerAssetDetail result = new io.vegaprotocol.vega.Vega.RewardPerAssetDetail(this); + int from_bitField0_ = bitField0_; + result.asset_ = asset_; + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + result.totalForAsset_ = totalForAsset_; onBuilt(); return result; } @@ -61550,31 +67060,50 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.Vega.EthereumConfig) { - return mergeFrom((io.vegaprotocol.vega.Vega.EthereumConfig)other); + if (other instanceof io.vegaprotocol.vega.Vega.RewardPerAssetDetail) { + return mergeFrom((io.vegaprotocol.vega.Vega.RewardPerAssetDetail)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.Vega.EthereumConfig other) { - if (other == io.vegaprotocol.vega.Vega.EthereumConfig.getDefaultInstance()) return this; - if (!other.getNetworkId().isEmpty()) { - networkId_ = other.networkId_; + public Builder mergeFrom(io.vegaprotocol.vega.Vega.RewardPerAssetDetail other) { + if (other == io.vegaprotocol.vega.Vega.RewardPerAssetDetail.getDefaultInstance()) return this; + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; onChanged(); } - if (!other.getChainId().isEmpty()) { - chainId_ = other.chainId_; - onChanged(); + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetailsFieldBuilder() : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } } - if (!other.getBridgeAddress().isEmpty()) { - bridgeAddress_ = other.bridgeAddress_; + if (!other.getTotalForAsset().isEmpty()) { + totalForAsset_ = other.totalForAsset_; onChanged(); } - if (other.getConfirmations() != 0) { - setConfirmations(other.getConfirmations()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -61590,11 +67119,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.Vega.EthereumConfig parsedMessage = null; + io.vegaprotocol.vega.Vega.RewardPerAssetDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.Vega.EthereumConfig) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.Vega.RewardPerAssetDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -61603,23 +67132,24 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.lang.Object networkId_ = ""; + private java.lang.Object asset_ = ""; /** *
-       * Network identifier of this Ethereum network
+       * asset details
        * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The networkId. + * string asset = 1 [json_name = "asset"]; + * @return The asset. */ - public java.lang.String getNetworkId() { - java.lang.Object ref = networkId_; + public java.lang.String getAsset() { + java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - networkId_ = s; + asset_ = s; return s; } else { return (java.lang.String) ref; @@ -61627,20 +67157,20 @@ public java.lang.String getNetworkId() { } /** *
-       * Network identifier of this Ethereum network
+       * asset details
        * 
* - * string network_id = 1 [json_name = "networkId"]; - * @return The bytes for networkId. + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. */ public com.google.protobuf.ByteString - getNetworkIdBytes() { - java.lang.Object ref = networkId_; + getAssetBytes() { + java.lang.Object ref = asset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - networkId_ = b; + asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -61648,170 +67178,386 @@ public java.lang.String getNetworkId() { } /** *
-       * Network identifier of this Ethereum network
+       * asset details
        * 
* - * string network_id = 1 [json_name = "networkId"]; - * @param value The networkId to set. + * string asset = 1 [json_name = "asset"]; + * @param value The asset to set. * @return This builder for chaining. */ - public Builder setNetworkId( + public Builder setAsset( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - networkId_ = value; + asset_ = value; onChanged(); return this; } /** *
-       * Network identifier of this Ethereum network
+       * asset details
        * 
* - * string network_id = 1 [json_name = "networkId"]; + * string asset = 1 [json_name = "asset"]; * @return This builder for chaining. */ - public Builder clearNetworkId() { + public Builder clearAsset() { - networkId_ = getDefaultInstance().getNetworkId(); + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** *
-       * Network identifier of this Ethereum network
+       * asset details
        * 
* - * string network_id = 1 [json_name = "networkId"]; - * @param value The bytes for networkId to set. + * string asset = 1 [json_name = "asset"]; + * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setNetworkIdBytes( + public Builder setAssetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - networkId_ = value; + asset_ = value; onChanged(); return this; } - private java.lang.Object chainId_ = ""; + private java.util.List details_ = + java.util.Collections.emptyList(); + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.RewardDetails, io.vegaprotocol.vega.Vega.RewardDetails.Builder, io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder> detailsBuilder_; + /** *
-       * Chain identifier of this Ethereum network
+       * rewards ordered by received_at
        * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - public java.lang.String getChainId() { - java.lang.Object ref = chainId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chainId_ = s; - return s; + public java.util.List getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); } else { - return (java.lang.String) ref; + return detailsBuilder_.getMessageList(); } } /** *
-       * Chain identifier of this Ethereum network
+       * rewards ordered by received_at
        * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return The bytes for chainId. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - public com.google.protobuf.ByteString - getChainIdBytes() { - java.lang.Object ref = chainId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chainId_ = b; - return b; + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return detailsBuilder_.getCount(); } } /** *
-       * Chain identifier of this Ethereum network
+       * rewards ordered by received_at
        * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @param value The chainId to set. - * @return This builder for chaining. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - public Builder setChainId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chainId_ = value; - onChanged(); + public io.vegaprotocol.vega.Vega.RewardDetails getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder setDetails( + int index, io.vegaprotocol.vega.Vega.RewardDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } return this; } /** *
-       * Chain identifier of this Ethereum network
+       * rewards ordered by received_at
        * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @return This builder for chaining. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - public Builder clearChainId() { - - chainId_ = getDefaultInstance().getChainId(); - onChanged(); + public Builder setDetails( + int index, io.vegaprotocol.vega.Vega.RewardDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** *
-       * Chain identifier of this Ethereum network
+       * rewards ordered by received_at
        * 
* - * string chain_id = 2 [json_name = "chainId"]; - * @param value The bytes for chainId to set. - * @return This builder for chaining. + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; */ - public Builder setChainIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chainId_ = value; - onChanged(); + public Builder addDetails(io.vegaprotocol.vega.Vega.RewardDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } return this; } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder addDetails( + int index, io.vegaprotocol.vega.Vega.RewardDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder addDetails( + io.vegaprotocol.vega.Vega.RewardDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder addDetails( + int index, io.vegaprotocol.vega.Vega.RewardDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder addAllDetails( + java.lang.Iterable values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public io.vegaprotocol.vega.Vega.RewardDetails.Builder getDetailsBuilder( + int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder getDetailsOrBuilder( + int index) { + if (detailsBuilder_ == null) { + return details_.get(index); } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public java.util.List + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public io.vegaprotocol.vega.Vega.RewardDetails.Builder addDetailsBuilder() { + return getDetailsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.RewardDetails.getDefaultInstance()); + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public io.vegaprotocol.vega.Vega.RewardDetails.Builder addDetailsBuilder( + int index) { + return getDetailsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.RewardDetails.getDefaultInstance()); + } + /** + *
+       * rewards ordered by received_at
+       * 
+ * + * repeated .vega.RewardDetails details = 2 [json_name = "details"]; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.RewardDetails, io.vegaprotocol.vega.Vega.RewardDetails.Builder, io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.RewardDetails, io.vegaprotocol.vega.Vega.RewardDetails.Builder, io.vegaprotocol.vega.Vega.RewardDetailsOrBuilder>( + details_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + details_ = null; + } + return detailsBuilder_; + } - private java.lang.Object bridgeAddress_ = ""; + private java.lang.Object totalForAsset_ = ""; /** *
-       * Bridge address for this Ethereum network
+       * Total amount of rewards for the asset
        * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bridgeAddress. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The totalForAsset. */ - public java.lang.String getBridgeAddress() { - java.lang.Object ref = bridgeAddress_; + public java.lang.String getTotalForAsset() { + java.lang.Object ref = totalForAsset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bridgeAddress_ = s; + totalForAsset_ = s; return s; } else { return (java.lang.String) ref; @@ -61819,20 +67565,20 @@ public java.lang.String getBridgeAddress() { } /** *
-       * Bridge address for this Ethereum network
+       * Total amount of rewards for the asset
        * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @return The bytes for bridgeAddress. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @return The bytes for totalForAsset. */ public com.google.protobuf.ByteString - getBridgeAddressBytes() { - java.lang.Object ref = bridgeAddress_; + getTotalForAssetBytes() { + java.lang.Object ref = totalForAsset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - bridgeAddress_ = b; + totalForAsset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -61840,97 +67586,54 @@ public java.lang.String getBridgeAddress() { } /** *
-       * Bridge address for this Ethereum network
+       * Total amount of rewards for the asset
        * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @param value The bridgeAddress to set. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @param value The totalForAsset to set. * @return This builder for chaining. */ - public Builder setBridgeAddress( + public Builder setTotalForAsset( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bridgeAddress_ = value; + totalForAsset_ = value; onChanged(); return this; } /** *
-       * Bridge address for this Ethereum network
+       * Total amount of rewards for the asset
        * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; + * string total_for_asset = 3 [json_name = "totalForAsset"]; * @return This builder for chaining. */ - public Builder clearBridgeAddress() { + public Builder clearTotalForAsset() { - bridgeAddress_ = getDefaultInstance().getBridgeAddress(); + totalForAsset_ = getDefaultInstance().getTotalForAsset(); onChanged(); return this; } /** *
-       * Bridge address for this Ethereum network
+       * Total amount of rewards for the asset
        * 
* - * string bridge_address = 3 [json_name = "bridgeAddress"]; - * @param value The bytes for bridgeAddress to set. + * string total_for_asset = 3 [json_name = "totalForAsset"]; + * @param value The bytes for totalForAsset to set. * @return This builder for chaining. */ - public Builder setBridgeAddressBytes( + public Builder setTotalForAssetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bridgeAddress_ = value; - onChanged(); - return this; - } - - private int confirmations_ ; - /** - *
-       * Number of confirmations
-       * 
- * - * uint32 confirmations = 4 [json_name = "confirmations"]; - * @return The confirmations. - */ - @java.lang.Override - public int getConfirmations() { - return confirmations_; - } - /** - *
-       * Number of confirmations
-       * 
- * - * uint32 confirmations = 4 [json_name = "confirmations"]; - * @param value The confirmations to set. - * @return This builder for chaining. - */ - public Builder setConfirmations(int value) { - - confirmations_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of confirmations
-       * 
- * - * uint32 confirmations = 4 [json_name = "confirmations"]; - * @return This builder for chaining. - */ - public Builder clearConfirmations() { - - confirmations_ = 0; + totalForAsset_ = value; onChanged(); return this; } @@ -61947,41 +67650,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.EthereumConfig) + // @@protoc_insertion_point(builder_scope:vega.RewardPerAssetDetail) } - // @@protoc_insertion_point(class_scope:vega.EthereumConfig) - private static final io.vegaprotocol.vega.Vega.EthereumConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.RewardPerAssetDetail) + private static final io.vegaprotocol.vega.Vega.RewardPerAssetDetail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.EthereumConfig(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.Vega.RewardPerAssetDetail(); } - public static io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstance() { + public static io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public EthereumConfig parsePartialFrom( + public RewardPerAssetDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EthereumConfig(input, extensionRegistry); + return new RewardPerAssetDetail(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { + public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -62092,11 +67795,6 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_PositionTrade_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_vega_Statistics_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_vega_Statistics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_Deposit_descriptor; private static final @@ -62177,21 +67875,6 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_ErrorDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_vega_Transaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_vega_Transaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_vega_Signature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_vega_Signature_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_vega_SignedBundle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_vega_SignedBundle_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_NetworkParameter_descriptor; private static final @@ -62217,6 +67900,51 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_EthereumConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_EpochTimestamps_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_EpochTimestamps_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_Epoch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_Epoch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_EpochParticipation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_EpochParticipation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_EpochData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_EpochData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_NodeData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_NodeData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_Delegation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_Delegation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_RewardDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_RewardDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_RewardPerAssetDetail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_RewardPerAssetDetail_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -62228,378 +67956,384 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { java.lang.String[] descriptorData = { "\n\nvega.proto\022\004vega\0326github.com/mwitkow/g" + "o-proto-validators/validator.proto\032\rmark" + - "ets.proto\"\035\n\005Price\022\024\n\005value\030\001 \001(\004R\005value" + - "\"!\n\tTimestamp\022\024\n\005value\030\001 \001(\003R\005value\"\037\n\005P" + - "arty\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002id\"N\n\nRiskFact" + - "or\022\026\n\006market\030\001 \001(\tR\006market\022\024\n\005short\030\002 \001(" + - "\001R\005short\022\022\n\004long\030\003 \001(\001R\004long\"\323\003\n\nRiskRes" + - "ult\022+\n\021updated_timestamp\030\001 \001(\003R\020updatedT" + - "imestamp\022D\n\014risk_factors\030\002 \003(\0132!.vega.Ri" + - "skResult.RiskFactorsEntryR\013riskFactors\0222" + - "\n\025next_update_timestamp\030\003 \001(\003R\023nextUpdat" + - "eTimestamp\022m\n\033predicted_next_risk_factor" + - "s\030\004 \003(\0132..vega.RiskResult.PredictedNextR" + - "iskFactorsEntryR\030predictedNextRiskFactor" + - "s\032P\n\020RiskFactorsEntry\022\020\n\003key\030\001 \001(\tR\003key\022" + - "&\n\005value\030\002 \001(\0132\020.vega.RiskFactorR\005value:" + - "\0028\001\032]\n\035PredictedNextRiskFactorsEntry\022\020\n\003" + - "key\030\001 \001(\tR\003key\022&\n\005value\030\002 \001(\0132\020.vega.Ris" + - "kFactorR\005value:\0028\001\"Z\n\013PeggedOrder\0223\n\tref" + - "erence\030\001 \001(\0162\025.vega.PeggedReferenceR\tref" + - "erence\022\026\n\006offset\030\002 \001(\003R\006offset\"\342\010\n\005Order" + - "\022\016\n\002id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010mar" + - "ketId\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\036\n\004side" + - "\030\004 \001(\0162\n.vega.SideR\004side\022\024\n\005price\030\005 \001(\004R" + - "\005price\022\022\n\004size\030\006 \001(\004R\004size\022\034\n\tremaining\030" + - "\007 \001(\004R\tremaining\022;\n\rtime_in_force\030\010 \001(\0162" + - "\027.vega.Order.TimeInForceR\013timeInForce\022$\n" + - "\004type\030\t \001(\0162\020.vega.Order.TypeR\004type\022\035\n\nc" + - "reated_at\030\n \001(\003R\tcreatedAt\022*\n\006status\030\013 \001" + - "(\0162\022.vega.Order.StatusR\006status\022\035\n\nexpire" + - "s_at\030\014 \001(\003R\texpiresAt\022\034\n\treference\030\r \001(\t" + - "R\treference\022(\n\006reason\030\016 \001(\0162\020.vega.Order" + - "ErrorR\006reason\022\035\n\nupdated_at\030\017 \001(\003R\tupdat" + - "edAt\022\030\n\007version\030\020 \001(\004R\007version\022\031\n\010batch_" + - "id\030\021 \001(\004R\007batchId\0224\n\014pegged_order\030\022 \001(\0132" + - "\021.vega.PeggedOrderR\013peggedOrder\0224\n\026liqui" + - "dity_provision_id\030\023 \001(\tR\024liquidityProvis" + - "ionId\"\266\001\n\013TimeInForce\022\035\n\031TIME_IN_FORCE_U" + - "NSPECIFIED\020\000\022\025\n\021TIME_IN_FORCE_GTC\020\001\022\025\n\021T" + - "IME_IN_FORCE_GTT\020\002\022\025\n\021TIME_IN_FORCE_IOC\020" + - "\003\022\025\n\021TIME_IN_FORCE_FOK\020\004\022\025\n\021TIME_IN_FORC" + - "E_GFA\020\005\022\025\n\021TIME_IN_FORCE_GFN\020\006\"O\n\004Type\022\024" + - "\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nTYPE_LIMIT\020\001\022\017\n\013" + - "TYPE_MARKET\020\002\022\020\n\014TYPE_NETWORK\020\003\"\311\001\n\006Stat" + - "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACT" + - "IVE\020\001\022\022\n\016STATUS_EXPIRED\020\002\022\024\n\020STATUS_CANC" + - "ELLED\020\003\022\022\n\016STATUS_STOPPED\020\004\022\021\n\rSTATUS_FI" + - "LLED\020\005\022\023\n\017STATUS_REJECTED\020\006\022\033\n\027STATUS_PA" + - "RTIALLY_FILLED\020\007\022\021\n\rSTATUS_PARKED\020\010\"B\n\035O" + - "rderCancellationConfirmation\022!\n\005order\030\001 " + - "\001(\0132\013.vega.OrderR\005order\"\240\001\n\021OrderConfirm" + - "ation\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order" + - "\022#\n\006trades\030\002 \003(\0132\013.vega.TradeR\006trades\022C\n" + - "\027passive_orders_affected\030\003 \003(\0132\013.vega.Or" + - "derR\025passiveOrdersAffected\"\323\001\n\026AuctionIn" + - "dicativeState\022\033\n\tmarket_id\030\001 \001(\tR\010market" + - "Id\022)\n\020indicative_price\030\002 \001(\004R\017indicative" + - "Price\022+\n\021indicative_volume\030\003 \001(\004R\020indica" + - "tiveVolume\022#\n\rauction_start\030\004 \001(\003R\014aucti" + - "onStart\022\037\n\013auction_end\030\005 \001(\003R\nauctionEnd" + - "\"\333\004\n\005Trade\022\016\n\002id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030" + - "\002 \001(\tR\010marketId\022\024\n\005price\030\003 \001(\004R\005price\022\022\n" + - "\004size\030\004 \001(\004R\004size\022\024\n\005buyer\030\005 \001(\tR\005buyer\022" + - "\026\n\006seller\030\006 \001(\tR\006seller\022(\n\taggressor\030\007 \001" + - "(\0162\n.vega.SideR\taggressor\022\033\n\tbuy_order\030\010" + - " \001(\tR\010buyOrder\022\035\n\nsell_order\030\t \001(\tR\tsell" + - "Order\022\034\n\ttimestamp\030\n \001(\003R\ttimestamp\022$\n\004t" + - "ype\030\013 \001(\0162\020.vega.Trade.TypeR\004type\022&\n\tbuy" + - "er_fee\030\014 \001(\0132\t.vega.FeeR\010buyerFee\022(\n\nsel" + - "ler_fee\030\r \001(\0132\t.vega.FeeR\tsellerFee\022.\n\023b" + - "uyer_auction_batch\030\016 \001(\004R\021buyerAuctionBa" + - "tch\0220\n\024seller_auction_batch\030\017 \001(\004R\022selle" + - "rAuctionBatch\"o\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + - "D\020\000\022\020\n\014TYPE_DEFAULT\020\001\022\037\n\033TYPE_NETWORK_CL" + - "OSE_OUT_GOOD\020\002\022\036\n\032TYPE_NETWORK_CLOSE_OUT" + - "_BAD\020\003\"v\n\003Fee\022\033\n\tmaker_fee\030\001 \001(\004R\010makerF" + - "ee\022-\n\022infrastructure_fee\030\002 \001(\004R\021infrastr" + - "uctureFee\022#\n\rliquidity_fee\030\003 \001(\004R\014liquid" + - "ityFee\"/\n\010TradeSet\022#\n\006trades\030\001 \003(\0132\013.veg" + - "a.TradeR\006trades\"\326\001\n\006Candle\022\034\n\ttimestamp\030" + - "\001 \001(\003R\ttimestamp\022\032\n\010datetime\030\002 \001(\tR\010date" + - "time\022\022\n\004high\030\003 \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003l" + - "ow\022\022\n\004open\030\005 \001(\004R\004open\022\024\n\005close\030\006 \001(\004R\005c" + - "lose\022\026\n\006volume\030\007 \001(\004R\006volume\022*\n\010interval" + - "\030\010 \001(\0162\016.vega.IntervalR\010interval\"d\n\nPric" + - "eLevel\022\024\n\005price\030\001 \001(\004R\005price\022(\n\020number_o" + - "f_orders\030\002 \001(\004R\016numberOfOrders\022\026\n\006volume" + - "\030\003 \001(\004R\006volume\"\235\001\n\013MarketDepth\022\033\n\tmarket" + - "_id\030\001 \001(\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega." + - "PriceLevelR\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.Pri" + - "ceLevelR\004sell\022\'\n\017sequence_number\030\004 \001(\004R\016" + - "sequenceNumber\"\243\001\n\021MarketDepthUpdate\022\033\n\t" + - "market_id\030\001 \001(\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020" + - ".vega.PriceLevelR\003buy\022$\n\004sell\030\003 \003(\0132\020.ve" + - "ga.PriceLevelR\004sell\022\'\n\017sequence_number\030\004" + - " \001(\004R\016sequenceNumber\"\374\001\n\010Position\022\033\n\tmar" + - "ket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\t" + - "R\007partyId\022\037\n\013open_volume\030\003 \001(\003R\nopenVolu" + - "me\022!\n\014realised_pnl\030\004 \001(\003R\013realisedPnl\022%\n" + - "\016unrealised_pnl\030\005 \001(\003R\runrealisedPnl\022.\n\023" + - "average_entry_price\030\006 \001(\004R\021averageEntryP" + - "rice\022\035\n\nupdated_at\030\007 \001(\003R\tupdatedAt\"=\n\rP" + - "ositionTrade\022\026\n\006volume\030\001 \001(\003R\006volume\022\024\n\005" + - "price\030\002 \001(\004R\005price\"\351\n\n\nStatistics\022!\n\014blo" + - "ck_height\030\001 \001(\004R\013blockHeight\022%\n\016backlog_" + - "length\030\002 \001(\004R\rbacklogLength\022\037\n\013total_pee" + - "rs\030\003 \001(\004R\ntotalPeers\022!\n\014genesis_time\030\004 \001" + - "(\tR\013genesisTime\022!\n\014current_time\030\005 \001(\tR\013c" + - "urrentTime\022\033\n\tvega_time\030\006 \001(\tR\010vegaTime\022" + - ")\n\006status\030\007 \001(\0162\021.vega.ChainStatusR\006stat" + - "us\022 \n\014tx_per_block\030\010 \001(\004R\ntxPerBlock\022(\n\020" + - "average_tx_bytes\030\t \001(\004R\016averageTxBytes\0227" + - "\n\030average_orders_per_block\030\n \001(\004R\025averag" + - "eOrdersPerBlock\022*\n\021trades_per_second\030\013 \001" + - "(\004R\017tradesPerSecond\022*\n\021orders_per_second" + - "\030\014 \001(\004R\017ordersPerSecond\022#\n\rtotal_markets" + - "\030\r \001(\004R\014totalMarkets\022*\n\021total_amend_orde" + - "r\030\020 \001(\004R\017totalAmendOrder\022,\n\022total_cancel" + - "_order\030\021 \001(\004R\020totalCancelOrder\022,\n\022total_" + - "create_order\030\022 \001(\004R\020totalCreateOrder\022!\n\014" + - "total_orders\030\023 \001(\004R\013totalOrders\022!\n\014total" + - "_trades\030\024 \001(\004R\013totalTrades\022/\n\023order_subs" + - "criptions\030\025 \001(\rR\022orderSubscriptions\022/\n\023t" + - "rade_subscriptions\030\026 \001(\rR\022tradeSubscript" + - "ions\0221\n\024candle_subscriptions\030\027 \001(\rR\023cand" + - "leSubscriptions\022<\n\032market_depth_subscrip" + - "tions\030\030 \001(\rR\030marketDepthSubscriptions\0227\n" + - "\027positions_subscriptions\030\031 \001(\rR\026position" + - "sSubscriptions\0223\n\025account_subscriptions\030" + - "\032 \001(\rR\024accountSubscriptions\022:\n\031market_da" + - "ta_subscriptions\030\033 \001(\rR\027marketDataSubscr" + - "iptions\022(\n\020app_version_hash\030\034 \001(\tR\016appVe" + - "rsionHash\022\037\n\013app_version\030\035 \001(\tR\nappVersi" + - "on\022#\n\rchain_version\030\036 \001(\tR\014chainVersion\022" + - "%\n\016block_duration\030\037 \001(\004R\rblockDuration\022\026" + - "\n\006uptime\030 \001(\tR\006uptime\022\031\n\010chain_id\030! \001(\t" + - "R\007chainId\022K\n\"market_depth_updates_subscr" + - "iptions\030\" \001(\rR\037marketDepthUpdatesSubscri" + - "ptions\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006st" + - "atus\030\002 \001(\0162\024.vega.Deposit.StatusR\006status" + - "\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001" + - "(\tR\005asset\022\026\n\006amount\030\005 \001(\tR\006amount\022\027\n\007tx_" + - "hash\030\006 \001(\tR\006txHash\022-\n\022credited_timestamp" + - "\030\007 \001(\003R\021creditedTimestamp\022+\n\021created_tim" + - "estamp\030\010 \001(\003R\020createdTimestamp\"]\n\006Status" + - "\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020" + - "\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALI" + - "ZED\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010" + - "party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R" + - "\006amount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030" + - "\005 \001(\0162\027.vega.Withdrawal.StatusR\006status\022\020" + - "\n\003ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry" + - "\022\027\n\007tx_hash\030\010 \001(\tR\006txHash\022+\n\021created_tim" + - "estamp\030\t \001(\003R\020createdTimestamp\022/\n\023withdr" + - "awn_timestamp\030\n \001(\003R\022withdrawnTimestamp\022" + - "#\n\003ext\030\013 \001(\0132\021.vega.WithdrawExtR\003ext\"]\n\006" + - "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS" + - "_OPEN\020\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_" + - "FINALIZED\020\003\"D\n\013WithdrawExt\022.\n\005erc20\030\001 \001(" + - "\0132\026.vega.Erc20WithdrawExtH\000R\005erc20B\005\n\003ex" + - "t\"=\n\020Erc20WithdrawExt\022)\n\020receiver_addres" + - "s\030\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002" + - "id\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007ba" + - "lance\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005ass" + - "et\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030" + - "\006 \001(\0162\021.vega.AccountTypeR\004type\"?\n\017Financ" + - "ialAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005ass" + - "et\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 " + - "\001(\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financ" + - "ialAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.T" + - "ransferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tm" + - "inAmount\"\334\001\n\017TransferRequest\0220\n\014from_acc" + - "ount\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022," + - "\n\nto_account\030\002 \003(\0132\r.vega.AccountR\ttoAcc" + - "ount\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amou" + - "nt\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asse" + - "t\022\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledg" + - "erEntry\022!\n\014from_account\030\001 \001(\tR\013fromAccou" + - "nt\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amo" + - "unt\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\tre" + - "ference\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp" + - "\030\006 \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007" + - "account\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n" + - "\007balance\030\002 \001(\004R\007balance\"v\n\020TransferRespo" + - "nse\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntr" + - "yR\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tr" + - "ansferBalanceR\010balances\"\255\002\n\014MarginLevels" + - "\022-\n\022maintenance_margin\030\001 \001(\004R\021maintenanc" + - "eMargin\022!\n\014search_level\030\002 \001(\004R\013searchLev" + - "el\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargi" + - "n\0228\n\030collateral_release_level\030\004 \001(\004R\026col" + - "lateralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007p" + - "artyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005a" + - "sset\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\tti" + - "mestamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001" + - "(\004R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014b" + - "estBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbe" + - "stBidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016b" + - "estOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004" + - "R\017bestOfferVolume\0221\n\025best_static_bid_pri" + - "ce\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_sta" + - "tic_bid_volume\030\007 \001(\004R\023bestStaticBidVolum" + - "e\0225\n\027best_static_offer_price\030\010 \001(\004R\024best" + - "StaticOfferPrice\0227\n\030best_static_offer_vo" + - "lume\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid" + - "_price\030\n \001(\004R\010midPrice\022(\n\020static_mid_pri" + - "ce\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\t" + - "R\006market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#" + - "\n\ropen_interest\030\016 \001(\004R\014openInterest\022\037\n\013a" + - "uction_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_" + - "start\030\020 \001(\003R\014auctionStart\022)\n\020indicative_" + - "price\030\021 \001(\004R\017indicativePrice\022+\n\021indicati" + - "ve_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023mar" + - "ket_trading_mode\030\023 \001(\0162\030.vega.Market.Tra" + - "dingModeR\021marketTradingMode\022.\n\007trigger\030\024" + - " \001(\0162\024.vega.AuctionTriggerR\007trigger\022A\n\021e" + - "xtension_trigger\030\025 \001(\0162\024.vega.AuctionTri" + - "ggerR\020extensionTrigger\022!\n\014target_stake\030\026" + - " \001(\tR\013targetStake\022%\n\016supplied_stake\030\027 \001(" + - "\tR\rsuppliedStake\022S\n\027price_monitoring_bou" + - "nds\030\030 \003(\0132\033.vega.PriceMonitoringBoundsR\025" + - "priceMonitoringBounds\022,\n\022market_value_pr" + - "oxy\030\031 \001(\tR\020marketValueProxy\022`\n\034liquidity" + - "_provider_fee_share\030\032 \003(\0132\037.vega.Liquidi" + - "tyProviderFeeShareR\031liquidityProviderFee" + - "Share\"\225\001\n\031LiquidityProviderFeeShare\022\024\n\005p" + - "arty\030\001 \001(\tR\005party\022*\n\021equity_like_share\030\002" + - " \001(\tR\017equityLikeShare\0226\n\027average_entry_v" + - "aluation\030\003 \001(\tR\025averageEntryValuation\"\310\001" + - "\n\025PriceMonitoringBounds\022&\n\017min_valid_pri" + - "ce\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_pri" + - "ce\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\013" + - "2\034.vega.PriceMonitoringTriggerR\007trigger\022" + - "\'\n\017reference_price\030\004 \001(\001R\016referencePrice" + - "\"Q\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007m" + - "essage\030\002 \001(\tR\007message\022\024\n\005inner\030\003 \001(\tR\005in" + - "ner\"\246\001\n\013Transaction\022\035\n\ninput_data\030\001 \001(\014R" + - "\tinputData\022\024\n\005nonce\030\002 \001(\004R\005nonce\022!\n\014bloc" + - "k_height\030\003 \001(\004R\013blockHeight\022\033\n\007address\030\351" + - "\007 \001(\014H\000R\007address\022\032\n\007pub_key\030\352\007 \001(\014H\000R\006pu" + - "bKeyB\006\n\004from\"K\n\tSignature\022\020\n\003sig\030\001 \001(\014R\003" + - "sig\022\022\n\004algo\030\002 \001(\tR\004algo\022\030\n\007version\030\003 \001(\r" + - "R\007version\"A\n\014SignedBundle\022\016\n\002tx\030\001 \001(\014R\002t" + - "x\022!\n\003sig\030\002 \001(\0132\017.vega.SignatureR\003sig\":\n\020" + - "NetworkParameter\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005va" + - "lue\030\002 \001(\tR\005value\"}\n\016LiquidityOrder\0223\n\tre" + - "ference\030\001 \001(\0162\025.vega.PeggedReferenceR\tre" + - "ference\022\036\n\nproportion\030\002 \001(\rR\nproportion\022" + - "\026\n\006offset\030\003 \001(\003R\006offset\"s\n\027LiquidityOrde" + - "rReference\022\031\n\010order_id\030\001 \001(\tR\007orderId\022=\n" + - "\017liquidity_order\030\002 \001(\0132\024.vega.LiquidityO" + - "rderR\016liquidityOrder\"\332\004\n\022LiquidityProvis" + - "ion\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010party_id\030\002 \001(\tR\007p" + - "artyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreatedAt\022\035\n" + - "\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmarket_i" + - "d\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commitment_" + - "amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003fee\030\007 " + - "\001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liquidity" + - "OrderReferenceR\005sells\0221\n\004buys\030\t \003(\0132\035.ve" + - "ga.LiquidityOrderReferenceR\004buys\022\030\n\007vers" + - "ion\030\n \001(\tR\007version\0227\n\006status\030\013 \001(\0162\037.veg" + - "a.LiquidityProvision.StatusR\006status\022\034\n\tr" + - "eference\030\014 \001(\tR\treference\"\235\001\n\006Status\022\026\n\022" + - "STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACTIVE\020\001\022" + - "\022\n\016STATUS_STOPPED\020\002\022\024\n\020STATUS_CANCELLED\020" + - "\003\022\023\n\017STATUS_REJECTED\020\004\022\025\n\021STATUS_UNDEPLO" + - "YED\020\005\022\022\n\016STATUS_PENDING\020\006\"\227\001\n\016EthereumCo" + - "nfig\022\035\n\nnetwork_id\030\001 \001(\tR\tnetworkId\022\031\n\010c" + - "hain_id\030\002 \001(\tR\007chainId\022%\n\016bridge_address" + - "\030\003 \001(\tR\rbridgeAddress\022$\n\rconfirmations\030\004" + - " \001(\rR\rconfirmations*9\n\004Side\022\024\n\020SIDE_UNSP" + - "ECIFIED\020\000\022\014\n\010SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230" + - "\001\n\010Interval\022\030\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n" + - "\014INTERVAL_I1M\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rIN" + - "TERVAL_I15M\020\204\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INT" + - "ERVAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016Au" + - "ctionTrigger\022\037\n\033AUCTION_TRIGGER_UNSPECIF" + - "IED\020\000\022\031\n\025AUCTION_TRIGGER_BATCH\020\001\022\033\n\027AUCT" + - "ION_TRIGGER_OPENING\020\002\022\031\n\025AUCTION_TRIGGER" + - "_PRICE\020\003\022\035\n\031AUCTION_TRIGGER_LIQUIDITY\020\004*" + - "\213\001\n\017PeggedReference\022 \n\034PEGGED_REFERENCE_" + - "UNSPECIFIED\020\000\022\030\n\024PEGGED_REFERENCE_MID\020\001\022" + - "\035\n\031PEGGED_REFERENCE_BEST_BID\020\002\022\035\n\031PEGGED" + - "_REFERENCE_BEST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027" + - "ORDER_ERROR_UNSPECIFIED\020\000\022!\n\035ORDER_ERROR" + - "_INVALID_MARKET_ID\020\001\022 \n\034ORDER_ERROR_INVA" + - "LID_ORDER_ID\020\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQ" + - "UENCE\020\003\022&\n\"ORDER_ERROR_INVALID_REMAINING" + - "_SIZE\020\004\022\034\n\030ORDER_ERROR_TIME_FAILURE\020\005\022\037\n" + - "\033ORDER_ERROR_REMOVAL_FAILURE\020\006\022+\n\'ORDER_" + - "ERROR_INVALID_EXPIRATION_DATETIME\020\007\022\'\n#O" + - "RDER_ERROR_INVALID_ORDER_REFERENCE\020\010\022 \n\034" + - "ORDER_ERROR_EDIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_" + - "ERROR_AMEND_FAILURE\020\n\022\031\n\025ORDER_ERROR_NOT" + - "_FOUND\020\013\022 \n\034ORDER_ERROR_INVALID_PARTY_ID" + - "\020\014\022\035\n\031ORDER_ERROR_MARKET_CLOSED\020\r\022#\n\037ORD" + - "ER_ERROR_MARGIN_CHECK_FAILED\020\016\022\'\n#ORDER_" + - "ERROR_MISSING_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER" + - "_ERROR_INTERNAL_ERROR\020\020\022\034\n\030ORDER_ERROR_I" + - "NVALID_SIZE\020\021\022#\n\037ORDER_ERROR_INVALID_PER" + - "SISTENCE\020\022\022\034\n\030ORDER_ERROR_INVALID_TYPE\020\023" + - "\022\034\n\030ORDER_ERROR_SELF_TRADING\020\024\022.\n*ORDER_" + - "ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\020\025\022%" + - "\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\020\026\022%\n" + - "!ORDER_ERROR_INVALID_TIME_IN_FORCE\020\027\022+\n\'" + - "ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\020" + - "\030\0223\n/ORDER_ERROR_GFA_ORDER_DURING_CONTIN" + - "UOUS_TRADING\020\031\0224\n0ORDER_ERROR_CANNOT_AME" + - "ND_TO_GTT_WITHOUT_EXPIRYAT\020\032\022)\n%ORDER_ER" + - "ROR_EXPIRYAT_BEFORE_CREATEDAT\020\033\022,\n(ORDER" + - "_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n" + - "&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\020" + - "\035\022*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_" + - "GFN\020\036\022,\n(ORDER_ERROR_CANNOT_AMEND_FROM_G" + - "FA_OR_GFN\020\037\0224\n0ORDER_ERROR_CANNOT_SEND_I" + - "OC_ORDER_DURING_AUCTION\020 \0224\n0ORDER_ERROR" + - "_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\020!\022" + - "#\n\037ORDER_ERROR_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036" + - "ORDER_ERROR_MUST_BE_GTT_OR_GTC\020#\022\'\n#ORDE" + - "R_ERROR_WITHOUT_REFERENCE_PRICE\020$\0223\n/ORD" + - "ER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_P" + - "RICE\020%\0224\n0ORDER_ERROR_OFFSET_MUST_BE_LES" + - "S_OR_EQUAL_TO_ZERO\020&\022-\n)ORDER_ERROR_OFFS" + - "ET_MUST_BE_LESS_THAN_ZERO\020\'\0227\n3ORDER_ERR" + - "OR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZE" + - "RO\020(\0224\n0ORDER_ERROR_SELL_CANNOT_REFERENC" + - "E_BEST_BID_PRICE\020)\0220\n,ORDER_ERROR_OFFSET" + - "_MUST_BE_GREATER_THAN_ZERO\020*\022*\n&ORDER_ER" + - "ROR_INSUFFICIENT_ASSET_BALANCE\020+\022E\nAORDE" + - "R_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAIL" + - "S_ON_NON_PEGGED_ORDER\020,\022.\n*ORDER_ERROR_U" + - "NABLE_TO_REPRICE_PEGGED_ORDER\020-\0225\n1ORDER" + - "_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_O" + - "RDER\020.\0228\n4ORDER_ERROR_NON_PERSISTENT_ORD" + - "ER_OUT_OF_PRICE_BOUNDS\020/*\202\001\n\013ChainStatus" + - "\022\034\n\030CHAIN_STATUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_" + - "STATUS_DISCONNECTED\020\001\022\032\n\026CHAIN_STATUS_RE" + - "PLAYING\020\002\022\032\n\026CHAIN_STATUS_CONNECTED\020\003*\220\003" + - "\n\013AccountType\022\034\n\030ACCOUNT_TYPE_UNSPECIFIE" + - "D\020\000\022\032\n\026ACCOUNT_TYPE_INSURANCE\020\001\022\033\n\027ACCOU" + - "NT_TYPE_SETTLEMENT\020\002\022\027\n\023ACCOUNT_TYPE_MAR" + - "GIN\020\003\022\030\n\024ACCOUNT_TYPE_GENERAL\020\004\022$\n ACCOU" + - "NT_TYPE_FEES_INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT" + - "_TYPE_FEES_LIQUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_F" + - "EES_MAKER\020\007\022\036\n\032ACCOUNT_TYPE_LOCK_WITHDRA" + - "W\020\010\022\025\n\021ACCOUNT_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TY" + - "PE_EXTERNAL\020\n\022!\n\035ACCOUNT_TYPE_GLOBAL_INS" + - "URANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLOBAL_REWARD\020\014" + - "*\323\005\n\014TransferType\022\035\n\031TRANSFER_TYPE_UNSPE" + - "CIFIED\020\000\022\026\n\022TRANSFER_TYPE_LOSS\020\001\022\025\n\021TRAN" + - "SFER_TYPE_WIN\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003" + - "\022\032\n\026TRANSFER_TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER" + - "_TYPE_MTM_WIN\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_" + - "LOW\020\006\022\035\n\031TRANSFER_TYPE_MARGIN_HIGH\020\007\022$\n " + - "TRANSFER_TYPE_MARGIN_CONFISCATED\020\010\022\037\n\033TR" + - "ANSFER_TYPE_MAKER_FEE_PAY\020\t\022#\n\037TRANSFER_" + - "TYPE_MAKER_FEE_RECEIVE\020\n\022(\n$TRANSFER_TYP" + - "E_INFRASTRUCTURE_FEE_PAY\020\013\022/\n+TRANSFER_T" + - "YPE_INFRASTRUCTURE_FEE_DISTRIBUTE\020\014\022#\n\037T" + - "RANSFER_TYPE_LIQUIDITY_FEE_PAY\020\r\022*\n&TRAN" + - "SFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026" + - "TRANSFER_TYPE_BOND_LOW\020\017\022\033\n\027TRANSFER_TYP" + - "E_BOND_HIGH\020\020\022\037\n\033TRANSFER_TYPE_WITHDRAW_" + - "LOCK\020\021\022\032\n\026TRANSFER_TYPE_WITHDRAW\020\022\022\031\n\025TR" + - "ANSFER_TYPE_DEPOSIT\020\023\022\037\n\033TRANSFER_TYPE_B" + - "OND_SLASHING\020\024\022\036\n\032TRANSFER_TYPE_STAKE_RE" + - "WARD\020\025B7\n\024io.vegaprotocol.vegaZ\037code.veg" + - "aprotocol.io/vega/protob\006proto3" + "ets.proto\032\014assets.proto\"\035\n\005Price\022\024\n\005valu" + + "e\030\001 \001(\004R\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" + + "(\003R\005value\"S\n\005Party\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002" + + "id\0222\n\013delegations\030\002 \003(\0132\020.vega.Delegatio" + + "nR\013delegations\"N\n\nRiskFactor\022\026\n\006market\030\001" + + " \001(\tR\006market\022\024\n\005short\030\002 \001(\001R\005short\022\022\n\004lo" + + "ng\030\003 \001(\001R\004long\"\323\003\n\nRiskResult\022+\n\021updated" + + "_timestamp\030\001 \001(\003R\020updatedTimestamp\022D\n\014ri" + + "sk_factors\030\002 \003(\0132!.vega.RiskResult.RiskF" + + "actorsEntryR\013riskFactors\0222\n\025next_update_" + + "timestamp\030\003 \001(\003R\023nextUpdateTimestamp\022m\n\033" + + "predicted_next_risk_factors\030\004 \003(\0132..vega" + + ".RiskResult.PredictedNextRiskFactorsEntr" + + "yR\030predictedNextRiskFactors\032P\n\020RiskFacto" + + "rsEntry\022\020\n\003key\030\001 \001(\tR\003key\022&\n\005value\030\002 \001(\013" + + "2\020.vega.RiskFactorR\005value:\0028\001\032]\n\035Predict" + + "edNextRiskFactorsEntry\022\020\n\003key\030\001 \001(\tR\003key" + + "\022&\n\005value\030\002 \001(\0132\020.vega.RiskFactorR\005value" + + ":\0028\001\"Z\n\013PeggedOrder\0223\n\treference\030\001 \001(\0162\025" + + ".vega.PeggedReferenceR\treference\022\026\n\006offs" + + "et\030\002 \001(\003R\006offset\"\342\010\n\005Order\022\016\n\002id\030\001 \001(\tR\002" + + "id\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\022\031\n\010party" + + "_id\030\003 \001(\tR\007partyId\022\036\n\004side\030\004 \001(\0162\n.vega." + + "SideR\004side\022\024\n\005price\030\005 \001(\004R\005price\022\022\n\004size" + + "\030\006 \001(\004R\004size\022\034\n\tremaining\030\007 \001(\004R\tremaini" + + "ng\022;\n\rtime_in_force\030\010 \001(\0162\027.vega.Order.T" + + "imeInForceR\013timeInForce\022$\n\004type\030\t \001(\0162\020." + + "vega.Order.TypeR\004type\022\035\n\ncreated_at\030\n \001(" + + "\003R\tcreatedAt\022*\n\006status\030\013 \001(\0162\022.vega.Orde" + + "r.StatusR\006status\022\035\n\nexpires_at\030\014 \001(\003R\tex" + + "piresAt\022\034\n\treference\030\r \001(\tR\treference\022(\n" + + "\006reason\030\016 \001(\0162\020.vega.OrderErrorR\006reason\022" + + "\035\n\nupdated_at\030\017 \001(\003R\tupdatedAt\022\030\n\007versio" + + "n\030\020 \001(\004R\007version\022\031\n\010batch_id\030\021 \001(\004R\007batc" + + "hId\0224\n\014pegged_order\030\022 \001(\0132\021.vega.PeggedO" + + "rderR\013peggedOrder\0224\n\026liquidity_provision" + + "_id\030\023 \001(\tR\024liquidityProvisionId\"\266\001\n\013Time" + + "InForce\022\035\n\031TIME_IN_FORCE_UNSPECIFIED\020\000\022\025" + + "\n\021TIME_IN_FORCE_GTC\020\001\022\025\n\021TIME_IN_FORCE_G" + + "TT\020\002\022\025\n\021TIME_IN_FORCE_IOC\020\003\022\025\n\021TIME_IN_F" + + "ORCE_FOK\020\004\022\025\n\021TIME_IN_FORCE_GFA\020\005\022\025\n\021TIM" + + "E_IN_FORCE_GFN\020\006\"O\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\016\n\nTYPE_LIMIT\020\001\022\017\n\013TYPE_MARKET\020\002\022" + + "\020\n\014TYPE_NETWORK\020\003\"\311\001\n\006Status\022\026\n\022STATUS_U" + + "NSPECIFIED\020\000\022\021\n\rSTATUS_ACTIVE\020\001\022\022\n\016STATU" + + "S_EXPIRED\020\002\022\024\n\020STATUS_CANCELLED\020\003\022\022\n\016STA" + + "TUS_STOPPED\020\004\022\021\n\rSTATUS_FILLED\020\005\022\023\n\017STAT" + + "US_REJECTED\020\006\022\033\n\027STATUS_PARTIALLY_FILLED" + + "\020\007\022\021\n\rSTATUS_PARKED\020\010\"B\n\035OrderCancellati" + + "onConfirmation\022!\n\005order\030\001 \001(\0132\013.vega.Ord" + + "erR\005order\"\240\001\n\021OrderConfirmation\022!\n\005order" + + "\030\001 \001(\0132\013.vega.OrderR\005order\022#\n\006trades\030\002 \003" + + "(\0132\013.vega.TradeR\006trades\022C\n\027passive_order" + + "s_affected\030\003 \003(\0132\013.vega.OrderR\025passiveOr" + + "dersAffected\"\323\001\n\026AuctionIndicativeState\022" + + "\033\n\tmarket_id\030\001 \001(\tR\010marketId\022)\n\020indicati" + + "ve_price\030\002 \001(\004R\017indicativePrice\022+\n\021indic" + + "ative_volume\030\003 \001(\004R\020indicativeVolume\022#\n\r" + + "auction_start\030\004 \001(\003R\014auctionStart\022\037\n\013auc" + + "tion_end\030\005 \001(\003R\nauctionEnd\"\333\004\n\005Trade\022\016\n\002" + + "id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010marketI" + + "d\022\024\n\005price\030\003 \001(\004R\005price\022\022\n\004size\030\004 \001(\004R\004s" + + "ize\022\024\n\005buyer\030\005 \001(\tR\005buyer\022\026\n\006seller\030\006 \001(" + + "\tR\006seller\022(\n\taggressor\030\007 \001(\0162\n.vega.Side" + + "R\taggressor\022\033\n\tbuy_order\030\010 \001(\tR\010buyOrder" + + "\022\035\n\nsell_order\030\t \001(\tR\tsellOrder\022\034\n\ttimes" + + "tamp\030\n \001(\003R\ttimestamp\022$\n\004type\030\013 \001(\0162\020.ve" + + "ga.Trade.TypeR\004type\022&\n\tbuyer_fee\030\014 \001(\0132\t" + + ".vega.FeeR\010buyerFee\022(\n\nseller_fee\030\r \001(\0132" + + "\t.vega.FeeR\tsellerFee\022.\n\023buyer_auction_b" + + "atch\030\016 \001(\004R\021buyerAuctionBatch\0220\n\024seller_" + + "auction_batch\030\017 \001(\004R\022sellerAuctionBatch\"" + + "o\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_DE" + + "FAULT\020\001\022\037\n\033TYPE_NETWORK_CLOSE_OUT_GOOD\020\002" + + "\022\036\n\032TYPE_NETWORK_CLOSE_OUT_BAD\020\003\"v\n\003Fee\022" + + "\033\n\tmaker_fee\030\001 \001(\004R\010makerFee\022-\n\022infrastr" + + "ucture_fee\030\002 \001(\004R\021infrastructureFee\022#\n\rl" + + "iquidity_fee\030\003 \001(\004R\014liquidityFee\"/\n\010Trad" + + "eSet\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" + + "s\"\326\001\n\006Candle\022\034\n\ttimestamp\030\001 \001(\003R\ttimesta" + + "mp\022\032\n\010datetime\030\002 \001(\tR\010datetime\022\022\n\004high\030\003" + + " \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003low\022\022\n\004open\030\005 \001" + + "(\004R\004open\022\024\n\005close\030\006 \001(\004R\005close\022\026\n\006volume" + + "\030\007 \001(\004R\006volume\022*\n\010interval\030\010 \001(\0162\016.vega." + + "IntervalR\010interval\"d\n\nPriceLevel\022\024\n\005pric" + + "e\030\001 \001(\004R\005price\022(\n\020number_of_orders\030\002 \001(\004" + + "R\016numberOfOrders\022\026\n\006volume\030\003 \001(\004R\006volume" + + "\"\235\001\n\013MarketDepth\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + + "ketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevelR\003bu" + + "y\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR\004sell\022" + + "\'\n\017sequence_number\030\004 \001(\004R\016sequenceNumber" + + "\"\243\001\n\021MarketDepthUpdate\022\033\n\tmarket_id\030\001 \001(" + + "\tR\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLev" + + "elR\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR" + + "\004sell\022\'\n\017sequence_number\030\004 \001(\004R\016sequence" + + "Number\"\374\001\n\010Position\022\033\n\tmarket_id\030\001 \001(\tR\010" + + "marketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\037\n\013o" + + "pen_volume\030\003 \001(\003R\nopenVolume\022!\n\014realised" + + "_pnl\030\004 \001(\003R\013realisedPnl\022%\n\016unrealised_pn" + + "l\030\005 \001(\003R\runrealisedPnl\022.\n\023average_entry_" + + "price\030\006 \001(\004R\021averageEntryPrice\022\035\n\nupdate" + + "d_at\030\007 \001(\003R\tupdatedAt\"=\n\rPositionTrade\022\026" + + "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\004R\005p" + + "rice\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006stat" + + "us\030\002 \001(\0162\024.vega.Deposit.StatusR\006status\022\031" + + "\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001(\t" + + "R\005asset\022\026\n\006amount\030\005 \001(\tR\006amount\022\027\n\007tx_ha" + + "sh\030\006 \001(\tR\006txHash\022-\n\022credited_timestamp\030\007" + + " \001(\003R\021creditedTimestamp\022+\n\021created_times" + + "tamp\030\010 \001(\003R\020createdTimestamp\"]\n\006Status\022\026" + + "\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020\001\022" + + "\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALIZE" + + "D\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010pa" + + "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R\006a" + + "mount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030\005 " + + "\001(\0162\027.vega.Withdrawal.StatusR\006status\022\020\n\003" + + "ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry\022\027" + + "\n\007tx_hash\030\010 \001(\tR\006txHash\022+\n\021created_times" + + "tamp\030\t \001(\003R\020createdTimestamp\022/\n\023withdraw" + + "n_timestamp\030\n \001(\003R\022withdrawnTimestamp\022#\n" + + "\003ext\030\013 \001(\0132\021.vega.WithdrawExtR\003ext\"]\n\006St" + + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_O" + + "PEN\020\001\022\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FI" + + "NALIZED\020\003\"D\n\013WithdrawExt\022.\n\005erc20\030\001 \001(\0132" + + "\026.vega.Erc20WithdrawExtH\000R\005erc20B\005\n\003ext\"" + + "=\n\020Erc20WithdrawExt\022)\n\020receiver_address\030" + + "\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002id" + + "\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007bala" + + "nce\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" + + "\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030\006 " + + "\001(\0162\021.vega.AccountTypeR\004type\"?\n\017Financia" + + "lAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005asset" + + "\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 \001(" + + "\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financia" + + "lAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.Tra" + + "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tmin" + + "Amount\"\334\001\n\017TransferRequest\0220\n\014from_accou" + + "nt\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022,\n\n" + + "to_account\030\002 \003(\0132\r.vega.AccountR\ttoAccou" + + "nt\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amount" + + "\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" + + "\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledger" + + "Entry\022!\n\014from_account\030\001 \001(\tR\013fromAccount" + + "\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amoun" + + "t\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\trefe" + + "rence\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp\030\006" + + " \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007ac" + + "count\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n\007b" + + "alance\030\002 \001(\004R\007balance\"v\n\020TransferRespons" + + "e\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntryR" + + "\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tran" + + "sferBalanceR\010balances\"\255\002\n\014MarginLevels\022-" + + "\n\022maintenance_margin\030\001 \001(\004R\021maintenanceM" + + "argin\022!\n\014search_level\030\002 \001(\004R\013searchLevel" + + "\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargin\022" + + "8\n\030collateral_release_level\030\004 \001(\004R\026colla" + + "teralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007par" + + "tyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005ass" + + "et\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\ttime" + + "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\004" + + "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014bes" + + "tBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbest" + + "BidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016bes" + + "tOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004R\017" + + "bestOfferVolume\0221\n\025best_static_bid_price" + + "\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_stati" + + "c_bid_volume\030\007 \001(\004R\023bestStaticBidVolume\022" + + "5\n\027best_static_offer_price\030\010 \001(\004R\024bestSt" + + "aticOfferPrice\0227\n\030best_static_offer_volu" + + "me\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid_p" + + "rice\030\n \001(\004R\010midPrice\022(\n\020static_mid_price" + + "\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" + + "market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#\n\r" + + "open_interest\030\016 \001(\004R\014openInterest\022\037\n\013auc" + + "tion_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_st" + + "art\030\020 \001(\003R\014auctionStart\022)\n\020indicative_pr" + + "ice\030\021 \001(\004R\017indicativePrice\022+\n\021indicative" + + "_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023marke" + + "t_trading_mode\030\023 \001(\0162\030.vega.Market.Tradi" + + "ngModeR\021marketTradingMode\022.\n\007trigger\030\024 \001" + + "(\0162\024.vega.AuctionTriggerR\007trigger\022A\n\021ext" + + "ension_trigger\030\025 \001(\0162\024.vega.AuctionTrigg" + + "erR\020extensionTrigger\022!\n\014target_stake\030\026 \001" + + "(\tR\013targetStake\022%\n\016supplied_stake\030\027 \001(\tR" + + "\rsuppliedStake\022S\n\027price_monitoring_bound" + + "s\030\030 \003(\0132\033.vega.PriceMonitoringBoundsR\025pr" + + "iceMonitoringBounds\022,\n\022market_value_prox" + + "y\030\031 \001(\tR\020marketValueProxy\022`\n\034liquidity_p" + + "rovider_fee_share\030\032 \003(\0132\037.vega.Liquidity" + + "ProviderFeeShareR\031liquidityProviderFeeSh" + + "are\"\225\001\n\031LiquidityProviderFeeShare\022\024\n\005par" + + "ty\030\001 \001(\tR\005party\022*\n\021equity_like_share\030\002 \001" + + "(\tR\017equityLikeShare\0226\n\027average_entry_val" + + "uation\030\003 \001(\tR\025averageEntryValuation\"\310\001\n\025" + + "PriceMonitoringBounds\022&\n\017min_valid_price" + + "\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_price" + + "\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" + + ".vega.PriceMonitoringTriggerR\007trigger\022\'\n" + + "\017reference_price\030\004 \001(\001R\016referencePrice\"Q" + + "\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007mes" + + "sage\030\002 \001(\tR\007message\022\024\n\005inner\030\003 \001(\tR\005inne" + + "r\":\n\020NetworkParameter\022\020\n\003key\030\001 \001(\tR\003key\022" + + "\024\n\005value\030\002 \001(\tR\005value\"}\n\016LiquidityOrder\022" + + "3\n\treference\030\001 \001(\0162\025.vega.PeggedReferenc" + + "eR\treference\022\036\n\nproportion\030\002 \001(\rR\npropor" + + "tion\022\026\n\006offset\030\003 \001(\003R\006offset\"s\n\027Liquidit" + + "yOrderReference\022\031\n\010order_id\030\001 \001(\tR\007order" + + "Id\022=\n\017liquidity_order\030\002 \001(\0132\024.vega.Liqui" + + "dityOrderR\016liquidityOrder\"\332\004\n\022LiquidityP" + + "rovision\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010party_id\030\002 \001" + + "(\tR\007partyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreated" + + "At\022\035\n\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmar" + + "ket_id\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commit" + + "ment_amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003f" + + "ee\030\007 \001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liqu" + + "idityOrderReferenceR\005sells\0221\n\004buys\030\t \003(\013" + + "2\035.vega.LiquidityOrderReferenceR\004buys\022\030\n" + + "\007version\030\n \001(\tR\007version\0227\n\006status\030\013 \001(\0162" + + "\037.vega.LiquidityProvision.StatusR\006status" + + "\022\034\n\treference\030\014 \001(\tR\treference\"\235\001\n\006Statu" + + "s\022\026\n\022STATUS_UNSPECIFIED\020\000\022\021\n\rSTATUS_ACTI" + + "VE\020\001\022\022\n\016STATUS_STOPPED\020\002\022\024\n\020STATUS_CANCE" + + "LLED\020\003\022\023\n\017STATUS_REJECTED\020\004\022\025\n\021STATUS_UN" + + "DEPLOYED\020\005\022\022\n\016STATUS_PENDING\020\006\"\321\001\n\016Ether" + + "eumConfig\022\035\n\nnetwork_id\030\001 \001(\tR\tnetworkId" + + "\022\031\n\010chain_id\030\002 \001(\tR\007chainId\022%\n\016bridge_ad" + + "dress\030\003 \001(\tR\rbridgeAddress\022$\n\rconfirmati" + + "ons\030\004 \001(\rR\rconfirmations\0228\n\030staking_brid" + + "ge_addresses\030\005 \003(\tR\026stakingBridgeAddress" + + "es\"\213\001\n\017EpochTimestamps\022\035\n\nstart_time\030\001 \001" + + "(\003R\tstartTime\022\031\n\010end_time\030\002 \001(\003R\007endTime" + + "\022\037\n\013first_block\030\003 \001(\004R\nfirstBlock\022\035\n\nlas" + + "t_block\030\004 \001(\004R\tlastBlock\"\270\001\n\005Epoch\022\020\n\003se" + + "q\030\001 \001(\004R\003seq\022=\n\ntimestamps\030\002 \001(\0132\025.vega." + + "EpochTimestampsB\006\342\337\037\002 \001R\ntimestamps\022*\n\nv" + + "alidators\030\003 \003(\0132\n.vega.NodeR\nvalidators\022" + + "2\n\013delegations\030\004 \003(\0132\020.vega.DelegationR\013" + + "delegations\"\226\001\n\022EpochParticipation\022)\n\005ep" + + "och\030\001 \001(\0132\013.vega.EpochB\006\342\337\037\002X\001R\005epoch\022\030\n" + + "\007offline\030\002 \001(\004R\007offline\022\026\n\006online\030\003 \001(\004R" + + "\006online\022#\n\rtotal_rewards\030\004 \001(\001R\014totalRew" + + "ards\"S\n\tEpochData\022\024\n\005total\030\001 \001(\005R\005total\022" + + "\030\n\007offline\030\002 \001(\005R\007offline\022\026\n\006online\030\003 \001(" + + "\005R\006online\"\340\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + + "b_key\030\002 \001(\tB\006\342\337\037\002X\001R\006pubKey\022\031\n\010info_url\030" + + "\003 \001(\tR\007infoUrl\022\032\n\010location\030\004 \001(\tR\010locati" + + "on\022,\n\022staked_by_operator\030\005 \001(\tR\020stakedBy" + + "Operator\022.\n\023staked_by_delegates\030\006 \001(\tR\021s" + + "takedByDelegates\022!\n\014staked_total\030\007 \001(\tR\013" + + "stakedTotal\022,\n\022max_intended_stake\030\010 \001(\tR" + + "\020maxIntendedStake\022#\n\rpending_stake\030\t \001(\t" + + "R\014pendingStake\0226\n\nepoch_data\030\n \001(\0132\017.veg" + + "a.EpochDataB\006\342\337\037\002 \001R\tepochData\0220\n\006status" + + "\030\013 \001(\0162\020.vega.NodeStatusB\006\342\337\037\002 \001R\006status" + + "\0222\n\013delagations\030\014 \003(\0132\020.vega.DelegationR" + + "\013delagations\"\270\001\n\010NodeData\022!\n\014staked_tota" + + "l\030\001 \001(\tR\013stakedTotal\022\037\n\013total_nodes\030\002 \001(" + + "\rR\ntotalNodes\022%\n\016inactive_nodes\030\003 \001(\rR\ri" + + "nactiveNodes\022)\n\020validating_nodes\030\004 \001(\rR\017" + + "validatingNodes\022\026\n\006uptime\030\005 \001(\002R\006uptime\"" + + "p\n\nDelegation\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007n" + + "ode_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\tR\006am" + + "ount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRe" + + "wardDetails\022\031\n\010asset_id\030\001 \001(\tR\007assetId\022\031" + + "\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005epoch\030\003 \001(\004" + + "R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amount\022.\n\023perce" + + "ntage_of_total\030\005 \001(\tR\021percentageOfTotal\022" + + "\037\n\013received_at\030\006 \001(\003R\nreceivedAt\"\203\001\n\024Rew" + + "ardPerAssetDetail\022\024\n\005asset\030\001 \001(\tR\005asset\022" + + "-\n\007details\030\002 \003(\0132\023.vega.RewardDetailsR\007d" + + "etails\022&\n\017total_for_asset\030\003 \001(\tR\rtotalFo" + + "rAsset*9\n\004Side\022\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010" + + "SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230\001\n\010Interval\022\030" + + "\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n\014INTERVAL_I1M" + + "\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204" + + "\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001" + + "\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016AuctionTrigger\022" + + "\037\n\033AUCTION_TRIGGER_UNSPECIFIED\020\000\022\031\n\025AUCT" + + "ION_TRIGGER_BATCH\020\001\022\033\n\027AUCTION_TRIGGER_O" + + "PENING\020\002\022\031\n\025AUCTION_TRIGGER_PRICE\020\003\022\035\n\031A" + + "UCTION_TRIGGER_LIQUIDITY\020\004*\213\001\n\017PeggedRef" + + "erence\022 \n\034PEGGED_REFERENCE_UNSPECIFIED\020\000" + + "\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n\031PEGGED_REF" + + "ERENCE_BEST_BID\020\002\022\035\n\031PEGGED_REFERENCE_BE" + + "ST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027ORDER_ERROR_U" + + "NSPECIFIED\020\000\022!\n\035ORDER_ERROR_INVALID_MARK" + + "ET_ID\020\001\022 \n\034ORDER_ERROR_INVALID_ORDER_ID\020" + + "\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUENCE\020\003\022&\n\"OR" + + "DER_ERROR_INVALID_REMAINING_SIZE\020\004\022\034\n\030OR" + + "DER_ERROR_TIME_FAILURE\020\005\022\037\n\033ORDER_ERROR_" + + "REMOVAL_FAILURE\020\006\022+\n\'ORDER_ERROR_INVALID" + + "_EXPIRATION_DATETIME\020\007\022\'\n#ORDER_ERROR_IN" + + "VALID_ORDER_REFERENCE\020\010\022 \n\034ORDER_ERROR_E" + + "DIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ERROR_AMEND_F" + + "AILURE\020\n\022\031\n\025ORDER_ERROR_NOT_FOUND\020\013\022 \n\034O" + + "RDER_ERROR_INVALID_PARTY_ID\020\014\022\035\n\031ORDER_E" + + "RROR_MARKET_CLOSED\020\r\022#\n\037ORDER_ERROR_MARG" + + "IN_CHECK_FAILED\020\016\022\'\n#ORDER_ERROR_MISSING" + + "_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_ERROR_INTERN" + + "AL_ERROR\020\020\022\034\n\030ORDER_ERROR_INVALID_SIZE\020\021" + + "\022#\n\037ORDER_ERROR_INVALID_PERSISTENCE\020\022\022\034\n" + + "\030ORDER_ERROR_INVALID_TYPE\020\023\022\034\n\030ORDER_ERR" + + "OR_SELF_TRADING\020\024\022.\n*ORDER_ERROR_INSUFFI" + + "CIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!ORDER_ERROR" + + "_INCORRECT_MARKET_TYPE\020\026\022%\n!ORDER_ERROR_" + + "INVALID_TIME_IN_FORCE\020\027\022+\n\'ORDER_ERROR_G" + + "FN_ORDER_DURING_AN_AUCTION\020\030\0223\n/ORDER_ER" + + "ROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\020" + + "\031\0224\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WIT" + + "HOUT_EXPIRYAT\020\032\022)\n%ORDER_ERROR_EXPIRYAT_" + + "BEFORE_CREATEDAT\020\033\022,\n(ORDER_ERROR_CANNOT" + + "_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&ORDER_ERROR_" + + "CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022*\n&ORDER_ER" + + "ROR_CANNOT_AMEND_TO_GFA_OR_GFN\020\036\022,\n(ORDE" + + "R_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\020\037\0224" + + "\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURI" + + "NG_AUCTION\020 \0224\n0ORDER_ERROR_CANNOT_SEND_" + + "FOK_ORDER_DURING_AUCTION\020!\022#\n\037ORDER_ERRO" + + "R_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036ORDER_ERROR_M" + + "UST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_ERROR_WITHO" + + "UT_REFERENCE_PRICE\020$\0223\n/ORDER_ERROR_BUY_" + + "CANNOT_REFERENCE_BEST_ASK_PRICE\020%\0224\n0ORD" + + "ER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO" + + "_ZERO\020&\022-\n)ORDER_ERROR_OFFSET_MUST_BE_LE" + + "SS_THAN_ZERO\020\'\0227\n3ORDER_ERROR_OFFSET_MUS" + + "T_BE_GREATER_OR_EQUAL_TO_ZERO\020(\0224\n0ORDER" + + "_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PR" + + "ICE\020)\0220\n,ORDER_ERROR_OFFSET_MUST_BE_GREA" + + "TER_THAN_ZERO\020*\022*\n&ORDER_ERROR_INSUFFICI" + + "ENT_ASSET_BALANCE\020+\022E\nAORDER_ERROR_CANNO" + + "T_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGG" + + "ED_ORDER\020,\022.\n*ORDER_ERROR_UNABLE_TO_REPR" + + "ICE_PEGGED_ORDER\020-\0225\n1ORDER_ERROR_UNABLE" + + "_TO_AMEND_PRICE_ON_PEGGED_ORDER\020.\0228\n4ORD" + + "ER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRI" + + "CE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034\n\030CHAIN_STA" + + "TUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_STATUS_DISCON" + + "NECTED\020\001\022\032\n\026CHAIN_STATUS_REPLAYING\020\002\022\032\n\026" + + "CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013AccountType" + + "\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020\000\022\032\n\026ACCOUN" + + "T_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT_TYPE_SETTL" + + "EMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGIN\020\003\022\030\n\024ACCO" + + "UNT_TYPE_GENERAL\020\004\022$\n ACCOUNT_TYPE_FEES_" + + "INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_TYPE_FEES_LI" + + "QUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEES_MAKER\020\007\022\036" + + "\n\032ACCOUNT_TYPE_LOCK_WITHDRAW\020\010\022\025\n\021ACCOUN" + + "T_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TYPE_EXTERNAL\020\n" + + "\022!\n\035ACCOUNT_TYPE_GLOBAL_INSURANCE\020\013\022\036\n\032A" + + "CCOUNT_TYPE_GLOBAL_REWARD\020\014*\323\005\n\014Transfer" + + "Type\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020\000\022\026\n\022T" + + "RANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSFER_TYPE_WIN" + + "\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003\022\032\n\026TRANSFER_" + + "TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER_TYPE_MTM_WIN" + + "\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LOW\020\006\022\035\n\031TRAN" + + "SFER_TYPE_MARGIN_HIGH\020\007\022$\n TRANSFER_TYPE" + + "_MARGIN_CONFISCATED\020\010\022\037\n\033TRANSFER_TYPE_M" + + "AKER_FEE_PAY\020\t\022#\n\037TRANSFER_TYPE_MAKER_FE" + + "E_RECEIVE\020\n\022(\n$TRANSFER_TYPE_INFRASTRUCT" + + "URE_FEE_PAY\020\013\022/\n+TRANSFER_TYPE_INFRASTRU" + + "CTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRANSFER_TYPE_" + + "LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSFER_TYPE_LIQ" + + "UIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TRANSFER_TYPE" + + "_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_BOND_HIGH\020\020" + + "\022\037\n\033TRANSFER_TYPE_WITHDRAW_LOCK\020\021\022\032\n\026TRA" + + "NSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRANSFER_TYPE_D" + + "EPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BOND_SLASHING\020" + + "\024\022\036\n\032TRANSFER_TYPE_STAKE_REWARD\020\025*c\n\nNod" + + "eStatus\022\033\n\027NODE_STATUS_UNSPECIFIED\020\000\022\031\n\025" + + "NODE_STATUS_VALIDATOR\020\001\022\035\n\031NODE_STATUS_N" + + "ON_VALIDATOR\020\002B7\n\024io.vegaprotocol.vegaZ\037" + + "code.vegaprotocol.io/vega/protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.github.mwitkow.go_proto_validators.Validator.getDescriptor(), io.vegaprotocol.vega.Markets.getDescriptor(), + io.vegaprotocol.vega.Assets.getDescriptor(), }); internal_static_vega_Price_descriptor = getDescriptor().getMessageTypes().get(0); @@ -62618,7 +68352,7 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { internal_static_vega_Party_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Party_descriptor, - new java.lang.String[] { "Id", }); + new java.lang.String[] { "Id", "Delegations", }); internal_static_vega_RiskFactor_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_vega_RiskFactor_fieldAccessorTable = new @@ -62727,156 +68461,186 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_PositionTrade_descriptor, new java.lang.String[] { "Volume", "Price", }); - internal_static_vega_Statistics_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_vega_Statistics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_vega_Statistics_descriptor, - new java.lang.String[] { "BlockHeight", "BacklogLength", "TotalPeers", "GenesisTime", "CurrentTime", "VegaTime", "Status", "TxPerBlock", "AverageTxBytes", "AverageOrdersPerBlock", "TradesPerSecond", "OrdersPerSecond", "TotalMarkets", "TotalAmendOrder", "TotalCancelOrder", "TotalCreateOrder", "TotalOrders", "TotalTrades", "OrderSubscriptions", "TradeSubscriptions", "CandleSubscriptions", "MarketDepthSubscriptions", "PositionsSubscriptions", "AccountSubscriptions", "MarketDataSubscriptions", "AppVersionHash", "AppVersion", "ChainVersion", "BlockDuration", "Uptime", "ChainId", "MarketDepthUpdatesSubscriptions", }); internal_static_vega_Deposit_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(19); internal_static_vega_Deposit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Deposit_descriptor, new java.lang.String[] { "Id", "Status", "PartyId", "Asset", "Amount", "TxHash", "CreditedTimestamp", "CreatedTimestamp", }); internal_static_vega_Withdrawal_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(20); internal_static_vega_Withdrawal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Withdrawal_descriptor, new java.lang.String[] { "Id", "PartyId", "Amount", "Asset", "Status", "Ref", "Expiry", "TxHash", "CreatedTimestamp", "WithdrawnTimestamp", "Ext", }); internal_static_vega_WithdrawExt_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(21); internal_static_vega_WithdrawExt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_WithdrawExt_descriptor, new java.lang.String[] { "Erc20", "Ext", }); internal_static_vega_Erc20WithdrawExt_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(22); internal_static_vega_Erc20WithdrawExt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Erc20WithdrawExt_descriptor, new java.lang.String[] { "ReceiverAddress", }); internal_static_vega_Account_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(23); internal_static_vega_Account_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Account_descriptor, new java.lang.String[] { "Id", "Owner", "Balance", "Asset", "MarketId", "Type", }); internal_static_vega_FinancialAmount_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(24); internal_static_vega_FinancialAmount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_FinancialAmount_descriptor, new java.lang.String[] { "Amount", "Asset", }); internal_static_vega_Transfer_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(25); internal_static_vega_Transfer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Transfer_descriptor, new java.lang.String[] { "Owner", "Amount", "Type", "MinAmount", }); internal_static_vega_TransferRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(26); internal_static_vega_TransferRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_TransferRequest_descriptor, new java.lang.String[] { "FromAccount", "ToAccount", "Amount", "MinAmount", "Asset", "Reference", }); internal_static_vega_LedgerEntry_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(27); internal_static_vega_LedgerEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_LedgerEntry_descriptor, new java.lang.String[] { "FromAccount", "ToAccount", "Amount", "Reference", "Type", "Timestamp", }); internal_static_vega_TransferBalance_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(28); internal_static_vega_TransferBalance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_TransferBalance_descriptor, new java.lang.String[] { "Account", "Balance", }); internal_static_vega_TransferResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(29); internal_static_vega_TransferResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_TransferResponse_descriptor, new java.lang.String[] { "Transfers", "Balances", }); internal_static_vega_MarginLevels_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(30); internal_static_vega_MarginLevels_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_MarginLevels_descriptor, new java.lang.String[] { "MaintenanceMargin", "SearchLevel", "InitialMargin", "CollateralReleaseLevel", "PartyId", "MarketId", "Asset", "Timestamp", }); internal_static_vega_MarketData_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(31); internal_static_vega_MarketData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_MarketData_descriptor, new java.lang.String[] { "MarkPrice", "BestBidPrice", "BestBidVolume", "BestOfferPrice", "BestOfferVolume", "BestStaticBidPrice", "BestStaticBidVolume", "BestStaticOfferPrice", "BestStaticOfferVolume", "MidPrice", "StaticMidPrice", "Market", "Timestamp", "OpenInterest", "AuctionEnd", "AuctionStart", "IndicativePrice", "IndicativeVolume", "MarketTradingMode", "Trigger", "ExtensionTrigger", "TargetStake", "SuppliedStake", "PriceMonitoringBounds", "MarketValueProxy", "LiquidityProviderFeeShare", }); internal_static_vega_LiquidityProviderFeeShare_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(32); internal_static_vega_LiquidityProviderFeeShare_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_LiquidityProviderFeeShare_descriptor, new java.lang.String[] { "Party", "EquityLikeShare", "AverageEntryValuation", }); internal_static_vega_PriceMonitoringBounds_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(33); internal_static_vega_PriceMonitoringBounds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_PriceMonitoringBounds_descriptor, new java.lang.String[] { "MinValidPrice", "MaxValidPrice", "Trigger", "ReferencePrice", }); internal_static_vega_ErrorDetail_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(34); internal_static_vega_ErrorDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_ErrorDetail_descriptor, new java.lang.String[] { "Code", "Message", "Inner", }); - internal_static_vega_Transaction_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_vega_Transaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_vega_Transaction_descriptor, - new java.lang.String[] { "InputData", "Nonce", "BlockHeight", "Address", "PubKey", "From", }); - internal_static_vega_Signature_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_vega_Signature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_vega_Signature_descriptor, - new java.lang.String[] { "Sig", "Algo", "Version", }); - internal_static_vega_SignedBundle_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_vega_SignedBundle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_vega_SignedBundle_descriptor, - new java.lang.String[] { "Tx", "Sig", }); internal_static_vega_NetworkParameter_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(35); internal_static_vega_NetworkParameter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_NetworkParameter_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_vega_LiquidityOrder_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(36); internal_static_vega_LiquidityOrder_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_LiquidityOrder_descriptor, new java.lang.String[] { "Reference", "Proportion", "Offset", }); internal_static_vega_LiquidityOrderReference_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(37); internal_static_vega_LiquidityOrderReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_LiquidityOrderReference_descriptor, new java.lang.String[] { "OrderId", "LiquidityOrder", }); internal_static_vega_LiquidityProvision_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(38); internal_static_vega_LiquidityProvision_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_LiquidityProvision_descriptor, new java.lang.String[] { "Id", "PartyId", "CreatedAt", "UpdatedAt", "MarketId", "CommitmentAmount", "Fee", "Sells", "Buys", "Version", "Status", "Reference", }); internal_static_vega_EthereumConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(39); internal_static_vega_EthereumConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_EthereumConfig_descriptor, - new java.lang.String[] { "NetworkId", "ChainId", "BridgeAddress", "Confirmations", }); + new java.lang.String[] { "NetworkId", "ChainId", "BridgeAddress", "Confirmations", "StakingBridgeAddresses", }); + internal_static_vega_EpochTimestamps_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_vega_EpochTimestamps_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_EpochTimestamps_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "FirstBlock", "LastBlock", }); + internal_static_vega_Epoch_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_vega_Epoch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_Epoch_descriptor, + new java.lang.String[] { "Seq", "Timestamps", "Validators", "Delegations", }); + internal_static_vega_EpochParticipation_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_vega_EpochParticipation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_EpochParticipation_descriptor, + new java.lang.String[] { "Epoch", "Offline", "Online", "TotalRewards", }); + internal_static_vega_EpochData_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_vega_EpochData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_EpochData_descriptor, + new java.lang.String[] { "Total", "Offline", "Online", }); + internal_static_vega_Node_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_vega_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_Node_descriptor, + new java.lang.String[] { "Id", "PubKey", "InfoUrl", "Location", "StakedByOperator", "StakedByDelegates", "StakedTotal", "MaxIntendedStake", "PendingStake", "EpochData", "Status", "Delagations", }); + internal_static_vega_NodeData_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_vega_NodeData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_NodeData_descriptor, + new java.lang.String[] { "StakedTotal", "TotalNodes", "InactiveNodes", "ValidatingNodes", "Uptime", }); + internal_static_vega_Delegation_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_vega_Delegation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_Delegation_descriptor, + new java.lang.String[] { "Party", "NodeId", "Amount", "EpochSeq", }); + internal_static_vega_RewardDetails_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_vega_RewardDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_RewardDetails_descriptor, + new java.lang.String[] { "AssetId", "PartyId", "Epoch", "Amount", "PercentageOfTotal", "ReceivedAt", }); + internal_static_vega_RewardPerAssetDetail_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_vega_RewardPerAssetDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_RewardPerAssetDetail_descriptor, + new java.lang.String[] { "Asset", "Details", "TotalForAsset", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.github.mwitkow.go_proto_validators.Validator.field); @@ -62884,6 +68648,7 @@ public io.vegaprotocol.vega.Vega.EthereumConfig getDefaultInstanceForType() { .internalUpdateFileDescriptor(descriptor, registry); com.github.mwitkow.go_proto_validators.Validator.getDescriptor(); io.vegaprotocol.vega.Markets.getDescriptor(); + io.vegaprotocol.vega.Assets.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/Trading.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/Trading.java index ddd4d6c7..4bb124fd 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/Trading.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/Trading.java @@ -23,27 +23,10 @@ public interface PropagateChainEventRequestOrBuilder extends * Chain event * * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return Whether the evt field is set. + * bytes event = 1 [json_name = "event"]; + * @return The event. */ - boolean hasEvt(); - /** - *
-     * Chain event
-     * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return The evt. - */ - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getEvt(); - /** - *
-     * Chain event
-     * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder getEvtOrBuilder(); + com.google.protobuf.ByteString getEvent(); /** *
@@ -92,6 +75,7 @@ private PropagateChainEventRequest(com.google.protobuf.GeneratedMessageV3.Builde
       super(builder);
     }
     private PropagateChainEventRequest() {
+      event_ = com.google.protobuf.ByteString.EMPTY;
       pubKey_ = "";
       signature_ = com.google.protobuf.ByteString.EMPTY;
     }
@@ -127,16 +111,8 @@ private PropagateChainEventRequest(
               done = true;
               break;
             case 10: {
-              io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder subBuilder = null;
-              if (evt_ != null) {
-                subBuilder = evt_.toBuilder();
-              }
-              evt_ = input.readMessage(io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evt_);
-                evt_ = subBuilder.buildPartial();
-              }
 
+              event_ = input.readBytes();
               break;
             }
             case 18: {
@@ -182,42 +158,19 @@ private PropagateChainEventRequest(
               io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.class, io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.Builder.class);
     }
 
-    public static final int EVT_FIELD_NUMBER = 1;
-    private io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent evt_;
+    public static final int EVENT_FIELD_NUMBER = 1;
+    private com.google.protobuf.ByteString event_;
     /**
      * 
      * Chain event
      * 
* - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return Whether the evt field is set. + * bytes event = 1 [json_name = "event"]; + * @return The event. */ @java.lang.Override - public boolean hasEvt() { - return evt_ != null; - } - /** - *
-     * Chain event
-     * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return The evt. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getEvt() { - return evt_ == null ? io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.getDefaultInstance() : evt_; - } - /** - *
-     * Chain event
-     * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder getEvtOrBuilder() { - return getEvt(); + public com.google.protobuf.ByteString getEvent() { + return event_; } public static final int PUB_KEY_FIELD_NUMBER = 2; @@ -295,8 +248,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (evt_ != null) { - output.writeMessage(1, getEvt()); + if (!event_.isEmpty()) { + output.writeBytes(1, event_); } if (!getPubKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pubKey_); @@ -313,9 +266,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evt_ != null) { + if (!event_.isEmpty()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEvt()); + .computeBytesSize(1, event_); } if (!getPubKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pubKey_); @@ -339,11 +292,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest other = (io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest) obj; - if (hasEvt() != other.hasEvt()) return false; - if (hasEvt()) { - if (!getEvt() - .equals(other.getEvt())) return false; - } + if (!getEvent() + .equals(other.getEvent())) return false; if (!getPubKey() .equals(other.getPubKey())) return false; if (!getSignature() @@ -359,10 +309,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEvt()) { - hash = (37 * hash) + EVT_FIELD_NUMBER; - hash = (53 * hash) + getEvt().hashCode(); - } + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; hash = (53 * hash) + getPubKey().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; @@ -504,12 +452,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (evtBuilder_ == null) { - evt_ = null; - } else { - evt_ = null; - evtBuilder_ = null; - } + event_ = com.google.protobuf.ByteString.EMPTY; + pubKey_ = ""; signature_ = com.google.protobuf.ByteString.EMPTY; @@ -540,11 +484,7 @@ public io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest build() { @java.lang.Override public io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest buildPartial() { io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest result = new io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest(this); - if (evtBuilder_ == null) { - result.evt_ = evt_; - } else { - result.evt_ = evtBuilder_.build(); - } + result.event_ = event_; result.pubKey_ = pubKey_; result.signature_ = signature_; onBuilt(); @@ -595,8 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest other) { if (other == io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.getDefaultInstance()) return this; - if (other.hasEvt()) { - mergeEvt(other.getEvt()); + if (other.getEvent() != com.google.protobuf.ByteString.EMPTY) { + setEvent(other.getEvent()); } if (!other.getPubKey().isEmpty()) { pubKey_ = other.pubKey_; @@ -634,111 +574,35 @@ public Builder mergeFrom( return this; } - private io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent evt_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder> evtBuilder_; - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return Whether the evt field is set. - */ - public boolean hasEvt() { - return evtBuilder_ != null || evt_ != null; - } - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - * @return The evt. - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getEvt() { - if (evtBuilder_ == null) { - return evt_ == null ? io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.getDefaultInstance() : evt_; - } else { - return evtBuilder_.getMessage(); - } - } + private com.google.protobuf.ByteString event_ = com.google.protobuf.ByteString.EMPTY; /** *
        * Chain event
        * 
* - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; + * bytes event = 1 [json_name = "event"]; + * @return The event. */ - public Builder setEvt(io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent value) { - if (evtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evt_ = value; - onChanged(); - } else { - evtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - public Builder setEvt( - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder builderForValue) { - if (evtBuilder_ == null) { - evt_ = builderForValue.build(); - onChanged(); - } else { - evtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - public Builder mergeEvt(io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent value) { - if (evtBuilder_ == null) { - if (evt_ != null) { - evt_ = - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.newBuilder(evt_).mergeFrom(value).buildPartial(); - } else { - evt_ = value; - } - onChanged(); - } else { - evtBuilder_.mergeFrom(value); - } - - return this; + @java.lang.Override + public com.google.protobuf.ByteString getEvent() { + return event_; } /** *
        * Chain event
        * 
* - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; + * bytes event = 1 [json_name = "event"]; + * @param value The event to set. + * @return This builder for chaining. */ - public Builder clearEvt() { - if (evtBuilder_ == null) { - evt_ = null; - onChanged(); - } else { - evt_ = null; - evtBuilder_ = null; - } + public Builder setEvent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); return this; } /** @@ -746,47 +610,14 @@ public Builder clearEvt() { * Chain event *
* - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; + * bytes event = 1 [json_name = "event"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder getEvtBuilder() { + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); onChanged(); - return getEvtFieldBuilder().getBuilder(); - } - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder getEvtOrBuilder() { - if (evtBuilder_ != null) { - return evtBuilder_.getMessageOrBuilder(); - } else { - return evt_ == null ? - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.getDefaultInstance() : evt_; - } - } - /** - *
-       * Chain event
-       * 
- * - * .vega.commands.v1.ChainEvent evt = 1 [json_name = "evt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder> - getEvtFieldBuilder() { - if (evtBuilder_ == null) { - evtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEventOrBuilder>( - getEvt(), - getParentForChildren(), - isClean()); - evt_ = null; - } - return evtBuilder_; + return this; } private java.lang.Object pubKey_ = ""; @@ -1505,8 +1336,8 @@ public io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse getDefaultIn } - public interface SubmitTransactionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionRequest) + public interface SubmitTransactionV2RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionV2Request) com.google.protobuf.MessageOrBuilder { /** @@ -1514,7 +1345,7 @@ public interface SubmitTransactionRequestOrBuilder extends * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return Whether the tx field is set. */ boolean hasTx(); @@ -1523,25 +1354,25 @@ public interface SubmitTransactionRequestOrBuilder extends * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return The tx. */ - io.vegaprotocol.vega.Vega.SignedBundle getTx(); + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx(); /** *
      * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
      * 
* - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ - io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder(); + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder(); /** *
      * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
      * 
* - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); @@ -1550,28 +1381,28 @@ public interface SubmitTransactionRequestOrBuilder extends * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The type. */ - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type getType(); + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType(); } /** *
-   * Request for submitting a transaction on Vega
+   * Request for submitting a transaction v2 on Vega
    * 
* - * Protobuf type {@code api.v1.SubmitTransactionRequest} + * Protobuf type {@code api.v1.SubmitTransactionV2Request} */ - public static final class SubmitTransactionRequest extends + public static final class SubmitTransactionV2Request extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionRequest) - SubmitTransactionRequestOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionV2Request) + SubmitTransactionV2RequestOrBuilder { private static final long serialVersionUID = 0L; - // Use SubmitTransactionRequest.newBuilder() to construct. - private SubmitTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SubmitTransactionV2Request.newBuilder() to construct. + private SubmitTransactionV2Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitTransactionRequest() { + private SubmitTransactionV2Request() { type_ = 0; } @@ -1579,7 +1410,7 @@ private SubmitTransactionRequest() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SubmitTransactionRequest(); + return new SubmitTransactionV2Request(); } @java.lang.Override @@ -1587,7 +1418,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SubmitTransactionRequest( + private SubmitTransactionV2Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1606,11 +1437,11 @@ private SubmitTransactionRequest( done = true; break; case 10: { - io.vegaprotocol.vega.Vega.SignedBundle.Builder subBuilder = null; + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder subBuilder = null; if (tx_ != null) { subBuilder = tx_.toBuilder(); } - tx_ = input.readMessage(io.vegaprotocol.vega.Vega.SignedBundle.parser(), extensionRegistry); + tx_ = input.readMessage(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tx_); tx_ = subBuilder.buildPartial(); @@ -1645,15 +1476,15 @@ private SubmitTransactionRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionRequest_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Builder.class); + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Builder.class); } /** @@ -1661,7 +1492,7 @@ private SubmitTransactionRequest( * Blockchain transaction type * * - * Protobuf enum {@code api.v1.SubmitTransactionRequest.Type} + * Protobuf enum {@code api.v1.SubmitTransactionV2Request.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { @@ -1788,7 +1619,7 @@ public Type findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.getDescriptor().getEnumTypes().get(0); + return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); @@ -1811,17 +1642,17 @@ private Type(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:api.v1.SubmitTransactionRequest.Type) + // @@protoc_insertion_point(enum_scope:api.v1.SubmitTransactionV2Request.Type) } public static final int TX_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.SignedBundle tx_; + private io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction tx_; /** *
      * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
      * 
* - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return Whether the tx field is set. */ @java.lang.Override @@ -1833,22 +1664,22 @@ public boolean hasTx() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return The tx. */ @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundle getTx() { - return tx_ == null ? io.vegaprotocol.vega.Vega.SignedBundle.getDefaultInstance() : tx_; + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx() { + return tx_ == null ? io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; } /** *
      * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
      * 
* - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ @java.lang.Override - public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder() { return getTx(); } @@ -1859,7 +1690,7 @@ public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -1870,13 +1701,13 @@ public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The type. */ - @java.lang.Override public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type getType() { + @java.lang.Override public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType() { @SuppressWarnings("deprecation") - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.UNRECOGNIZED : result; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.valueOf(type_); + return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -1896,7 +1727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tx_ != null) { output.writeMessage(1, getTx()); } - if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } unknownFields.writeTo(output); @@ -1912,7 +1743,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTx()); } - if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } @@ -1926,10 +1757,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest) obj; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) obj; if (hasTx() != other.hasTx()) return false; if (hasTx()) { @@ -1959,69 +1790,69 @@ public int hashCode() { return hash; } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2034,7 +1865,7 @@ public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2051,29 +1882,29 @@ protected Builder newBuilderForType( } /** *
-     * Request for submitting a transaction on Vega
+     * Request for submitting a transaction v2 on Vega
      * 
* - * Protobuf type {@code api.v1.SubmitTransactionRequest} + * Protobuf type {@code api.v1.SubmitTransactionV2Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionRequest) - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionV2Request) + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionRequest_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Builder.class); + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2105,17 +1936,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest build() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request build() { + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2123,8 +1954,8 @@ public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest(this); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request buildPartial() { + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request(this); if (txBuilder_ == null) { result.tx_ = tx_; } else { @@ -2169,16 +2000,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.getDefaultInstance()) return this; + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request other) { + if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDefaultInstance()) return this; if (other.hasTx()) { mergeTx(other.getTx()); } @@ -2200,11 +2031,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest parsedMessage = null; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2214,15 +2045,15 @@ public Builder mergeFrom( return this; } - private io.vegaprotocol.vega.Vega.SignedBundle tx_; + private io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction tx_; private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.SignedBundle, io.vegaprotocol.vega.Vega.SignedBundle.Builder, io.vegaprotocol.vega.Vega.SignedBundleOrBuilder> txBuilder_; + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder> txBuilder_; /** *
        * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
        * 
* - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return Whether the tx field is set. */ public boolean hasTx() { @@ -2233,12 +2064,12 @@ public boolean hasTx() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; * @return The tx. */ - public io.vegaprotocol.vega.Vega.SignedBundle getTx() { + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx() { if (txBuilder_ == null) { - return tx_ == null ? io.vegaprotocol.vega.Vega.SignedBundle.getDefaultInstance() : tx_; + return tx_ == null ? io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; } else { return txBuilder_.getMessage(); } @@ -2248,9 +2079,9 @@ public io.vegaprotocol.vega.Vega.SignedBundle getTx() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ - public Builder setTx(io.vegaprotocol.vega.Vega.SignedBundle value) { + public Builder setTx(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction value) { if (txBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2268,10 +2099,10 @@ public Builder setTx(io.vegaprotocol.vega.Vega.SignedBundle value) { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ public Builder setTx( - io.vegaprotocol.vega.Vega.SignedBundle.Builder builderForValue) { + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder builderForValue) { if (txBuilder_ == null) { tx_ = builderForValue.build(); onChanged(); @@ -2286,13 +2117,13 @@ public Builder setTx( * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ - public Builder mergeTx(io.vegaprotocol.vega.Vega.SignedBundle value) { + public Builder mergeTx(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction value) { if (txBuilder_ == null) { if (tx_ != null) { tx_ = - io.vegaprotocol.vega.Vega.SignedBundle.newBuilder(tx_).mergeFrom(value).buildPartial(); + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); } else { tx_ = value; } @@ -2308,7 +2139,7 @@ public Builder mergeTx(io.vegaprotocol.vega.Vega.SignedBundle value) { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ public Builder clearTx() { if (txBuilder_ == null) { @@ -2326,9 +2157,9 @@ public Builder clearTx() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ - public io.vegaprotocol.vega.Vega.SignedBundle.Builder getTxBuilder() { + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder getTxBuilder() { onChanged(); return getTxFieldBuilder().getBuilder(); @@ -2338,14 +2169,14 @@ public io.vegaprotocol.vega.Vega.SignedBundle.Builder getTxBuilder() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ - public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder() { if (txBuilder_ != null) { return txBuilder_.getMessageOrBuilder(); } else { return tx_ == null ? - io.vegaprotocol.vega.Vega.SignedBundle.getDefaultInstance() : tx_; + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; } } /** @@ -2353,14 +2184,14 @@ public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain * * - * .vega.SignedBundle tx = 1 [json_name = "tx"]; + * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; */ private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.SignedBundle, io.vegaprotocol.vega.Vega.SignedBundle.Builder, io.vegaprotocol.vega.Vega.SignedBundleOrBuilder> + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder> getTxFieldBuilder() { if (txBuilder_ == null) { txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.SignedBundle, io.vegaprotocol.vega.Vega.SignedBundle.Builder, io.vegaprotocol.vega.Vega.SignedBundleOrBuilder>( + io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder>( getTx(), getParentForChildren(), isClean()); @@ -2375,7 +2206,7 @@ public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -2386,7 +2217,7 @@ public io.vegaprotocol.vega.Vega.SignedBundleOrBuilder getTxOrBuilder() { * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -2401,25 +2232,25 @@ public Builder setTypeValue(int value) { * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return The type. */ @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type getType() { + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType() { @SuppressWarnings("deprecation") - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type.UNRECOGNIZED : result; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.valueOf(type_); + return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.UNRECOGNIZED : result; } /** *
        * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
        * 
* - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.Type value) { + public Builder setType(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type value) { if (value == null) { throw new NullPointerException(); } @@ -2433,7 +2264,7 @@ public Builder setType(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response * * - * .api.v1.SubmitTransactionRequest.Type type = 2 [json_name = "type"]; + * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; * @return This builder for chaining. */ public Builder clearType() { @@ -2455,48 +2286,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionRequest) + // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionV2Request) } - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionRequest) - private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) + private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request(); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitTransactionRequest parsePartialFrom( + public SubmitTransactionV2Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitTransactionRequest(input, extensionRegistry); + return new SubmitTransactionV2Request(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SubmitTransactionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionResponse) + public interface SubmitTransactionV2ResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionV2Response) com.google.protobuf.MessageOrBuilder { /** @@ -2512,28 +2343,28 @@ public interface SubmitTransactionResponseOrBuilder extends } /** *
-   * Response for submitting a transaction on Vega
+   * Response for submitting a transaction v2 on Vega
    * 
* - * Protobuf type {@code api.v1.SubmitTransactionResponse} + * Protobuf type {@code api.v1.SubmitTransactionV2Response} */ - public static final class SubmitTransactionResponse extends + public static final class SubmitTransactionV2Response extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionResponse) - SubmitTransactionResponseOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionV2Response) + SubmitTransactionV2ResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use SubmitTransactionResponse.newBuilder() to construct. - private SubmitTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SubmitTransactionV2Response.newBuilder() to construct. + private SubmitTransactionV2Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitTransactionResponse() { + private SubmitTransactionV2Response() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SubmitTransactionResponse(); + return new SubmitTransactionV2Response(); } @java.lang.Override @@ -2541,7 +2372,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SubmitTransactionResponse( + private SubmitTransactionV2Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2585,15 +2416,15 @@ private SubmitTransactionResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.Builder.class); } public static final int SUCCESS_FIELD_NUMBER = 1; @@ -2652,10 +2483,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse) obj; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) obj; if (getSuccess() != other.getSuccess()) return false; @@ -2678,69 +2509,69 @@ public int hashCode() { return hash; } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2753,7 +2584,7 @@ public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2770,29 +2601,29 @@ protected Builder newBuilderForType( } /** *
-     * Response for submitting a transaction on Vega
+     * Response for submitting a transaction v2 on Vega
      * 
* - * Protobuf type {@code api.v1.SubmitTransactionResponse} + * Protobuf type {@code api.v1.SubmitTransactionV2Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionResponse) - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionV2Response) + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2818,17 +2649,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse build() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response build() { + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2836,8 +2667,8 @@ public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse(this); + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response buildPartial() { + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response(this); result.success_ = success_; onBuilt(); return result; @@ -2877,16 +2708,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.getDefaultInstance()) return this; + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response other) { + if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.getDefaultInstance()) return this; if (other.getSuccess() != false) { setSuccess(other.getSuccess()); } @@ -2905,11 +2736,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse parsedMessage = null; + io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2977,121 +2808,74 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionResponse) + // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionV2Response) } - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionResponse) - private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) + private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response(); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitTransactionResponse parsePartialFrom( + public SubmitTransactionV2Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitTransactionResponse(input, extensionRegistry); + return new SubmitTransactionV2Response(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SubmitTransactionV2RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionV2Request) + public interface GetVegaTimeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.GetVegaTimeRequest) com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return The tx. - */ - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx(); - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder(); - - /** - *
-     * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-     * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-     * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-     * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The type. - */ - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType(); } /** *
-   * Request for submitting a transaction v2 on Vega
+   * Request for the current time of the vega network
    * 
* - * Protobuf type {@code api.v1.SubmitTransactionV2Request} + * Protobuf type {@code api.v1.GetVegaTimeRequest} */ - public static final class SubmitTransactionV2Request extends + public static final class GetVegaTimeRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionV2Request) - SubmitTransactionV2RequestOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.GetVegaTimeRequest) + GetVegaTimeRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use SubmitTransactionV2Request.newBuilder() to construct. - private SubmitTransactionV2Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetVegaTimeRequest.newBuilder() to construct. + private GetVegaTimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitTransactionV2Request() { - type_ = 0; + private GetVegaTimeRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SubmitTransactionV2Request(); + return new GetVegaTimeRequest(); } @java.lang.Override @@ -3099,7 +2883,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SubmitTransactionV2Request( + private GetVegaTimeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3117,25 +2901,6 @@ private SubmitTransactionV2Request( case 0: done = true; break; - case 10: { - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -3157,238 +2922,15 @@ private SubmitTransactionV2Request( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Builder.class); - } - - /** - *
-     * Blockchain transaction type
-     * 
- * - * Protobuf enum {@code api.v1.SubmitTransactionV2Request.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - *
-       * The transaction will be submitted without waiting for response
-       * 
- * - * TYPE_ASYNC = 1; - */ - TYPE_ASYNC(1), - /** - *
-       * The transaction will be submitted, and blocking until the
-       * tendermint mempool return a response
-       * 
- * - * TYPE_SYNC = 2; - */ - TYPE_SYNC(2), - /** - *
-       * The transaction will submitted, and blocking until the tendermint
-       * network will have committed it into a block
-       * 
- * - * TYPE_COMMIT = 3; - */ - TYPE_COMMIT(3), - UNRECOGNIZED(-1), - ; - - /** - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * The transaction will be submitted without waiting for response
-       * 
- * - * TYPE_ASYNC = 1; - */ - public static final int TYPE_ASYNC_VALUE = 1; - /** - *
-       * The transaction will be submitted, and blocking until the
-       * tendermint mempool return a response
-       * 
- * - * TYPE_SYNC = 2; - */ - public static final int TYPE_SYNC_VALUE = 2; - /** - *
-       * The transaction will submitted, and blocking until the tendermint
-       * network will have committed it into a block
-       * 
- * - * TYPE_COMMIT = 3; - */ - public static final int TYPE_COMMIT_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return TYPE_ASYNC; - case 2: return TYPE_SYNC; - case 3: return TYPE_COMMIT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:api.v1.SubmitTransactionV2Request.Type) - } - - public static final int TX_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction tx_; - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return Whether the tx field is set. - */ - @java.lang.Override - public boolean hasTx() { - return tx_ != null; - } - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return The tx. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx() { - return tx_ == null ? io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; - } - /** - *
-     * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-     * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder() { - return getTx(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-     * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-     * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-     * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.UNRECOGNIZED : result; + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.Builder.class); } private byte memoizedIsInitialized = -1; @@ -3405,12 +2947,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } unknownFields.writeTo(output); } @@ -3420,14 +2956,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - if (type_ != io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3438,17 +2966,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) obj; + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest other = (io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) obj; - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (type_ != other.type_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3460,80 +2982,74 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3546,7 +3062,7 @@ public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3563,29 +3079,29 @@ protected Builder newBuilderForType( } /** *
-     * Request for submitting a transaction v2 on Vega
+     * Request for the current time of the vega network
      * 
* - * Protobuf type {@code api.v1.SubmitTransactionV2Request} + * Protobuf type {@code api.v1.GetVegaTimeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionV2Request) - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2RequestOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.GetVegaTimeRequest) + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Builder.class); + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3603,31 +3119,23 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - type_ = 0; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Request_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request build() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest build() { + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3635,14 +3143,8 @@ public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request buildPartial() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request(this); - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - result.type_ = type_; + public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest buildPartial() { + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest result = new io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest(this); onBuilt(); return result; } @@ -3681,22 +3183,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request other) { - if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest other) { + if (other == io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3712,11 +3208,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request parsedMessage = null; + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3725,327 +3221,98 @@ public Builder mergeFrom( } return this; } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder> txBuilder_; - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - * @return The tx. - */ - public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public Builder setTx(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public Builder setTx( - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public Builder mergeTx(io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.getDefaultInstance() : tx_; - } - } - /** - *
-       * A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain
-       * 
- * - * .vega.commands.v1.Transaction tx = 1 [json_name = "tx"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Transaction.Builder, io.vegaprotocol.vega.commands.v1.TransactionOuterClass.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private int type_ = 0; - /** - *
-       * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-       * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-       * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-       * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-       * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type result = io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type.UNRECOGNIZED : result; - } - /** - *
-       * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-       * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
-       * 
- * - * .api.v1.SubmitTransactionV2Request.Type type = 2 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionV2Request) + // @@protoc_insertion_point(builder_scope:api.v1.GetVegaTimeRequest) } - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) - private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) + private static final io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest(); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitTransactionV2Request parsePartialFrom( + public GetVegaTimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitTransactionV2Request(input, extensionRegistry); + return new GetVegaTimeRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SubmitTransactionV2ResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.SubmitTransactionV2Response) + public interface GetVegaTimeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.GetVegaTimeResponse) com.google.protobuf.MessageOrBuilder { /** *
-     * Success will be true if the transaction was accepted by the node,
-     * **Important** - success does not mean that the event is confirmed by consensus
+     * Timestamp representation of current VegaTime as represented in
+     * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
      * 
* - * bool success = 1 [json_name = "success"]; - * @return The success. + * int64 timestamp = 1 [json_name = "timestamp"]; + * @return The timestamp. */ - boolean getSuccess(); + long getTimestamp(); } /** *
-   * Response for submitting a transaction v2 on Vega
+   * Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"
    * 
* - * Protobuf type {@code api.v1.SubmitTransactionV2Response} + * Protobuf type {@code api.v1.GetVegaTimeResponse} */ - public static final class SubmitTransactionV2Response extends + public static final class GetVegaTimeResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.SubmitTransactionV2Response) - SubmitTransactionV2ResponseOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.GetVegaTimeResponse) + GetVegaTimeResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use SubmitTransactionV2Response.newBuilder() to construct. - private SubmitTransactionV2Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetVegaTimeResponse.newBuilder() to construct. + private GetVegaTimeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitTransactionV2Response() { + private GetVegaTimeResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SubmitTransactionV2Response(); + return new GetVegaTimeResponse(); } @java.lang.Override @@ -4053,7 +3320,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SubmitTransactionV2Response( + private GetVegaTimeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4073,7 +3340,7 @@ private SubmitTransactionV2Response( break; case 8: { - success_ = input.readBool(); + timestamp_ = input.readInt64(); break; } default: { @@ -4097,31 +3364,31 @@ private SubmitTransactionV2Response( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.Builder.class); + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.Builder.class); } - public static final int SUCCESS_FIELD_NUMBER = 1; - private boolean success_; + public static final int TIMESTAMP_FIELD_NUMBER = 1; + private long timestamp_; /** *
-     * Success will be true if the transaction was accepted by the node,
-     * **Important** - success does not mean that the event is confirmed by consensus
+     * Timestamp representation of current VegaTime as represented in
+     * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
      * 
* - * bool success = 1 [json_name = "success"]; - * @return The success. + * int64 timestamp = 1 [json_name = "timestamp"]; + * @return The timestamp. */ @java.lang.Override - public boolean getSuccess() { - return success_; + public long getTimestamp() { + return timestamp_; } private byte memoizedIsInitialized = -1; @@ -4138,8 +3405,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (success_ != false) { - output.writeBool(1, success_); + if (timestamp_ != 0L) { + output.writeInt64(1, timestamp_); } unknownFields.writeTo(output); } @@ -4150,9 +3417,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (success_ != false) { + if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, success_); + .computeInt64Size(1, timestamp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4164,13 +3431,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response other = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) obj; + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse other = (io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) obj; - if (getSuccess() - != other.getSuccess()) return false; + if (getTimestamp() + != other.getTimestamp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4182,77 +3449,77 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuccess()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parseFrom( + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4265,7 +3532,7 @@ public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4282,29 +3549,29 @@ protected Builder newBuilderForType( } /** *
-     * Response for submitting a transaction v2 on Vega
+     * Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"
      * 
* - * Protobuf type {@code api.v1.SubmitTransactionV2Response} + * Protobuf type {@code api.v1.GetVegaTimeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.SubmitTransactionV2Response) - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2ResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.GetVegaTimeResponse) + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.class, io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.Builder.class); + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4322,7 +3589,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - success_ = false; + timestamp_ = 0L; return this; } @@ -4330,17 +3597,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_SubmitTransactionV2Response_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response build() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse build() { + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4348,9 +3615,9 @@ public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response buildPartial() { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response result = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response(this); - result.success_ = success_; + public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse buildPartial() { + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse result = new io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse(this); + result.timestamp_ = timestamp_; onBuilt(); return result; } @@ -4389,18 +3656,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response other) { - if (other == io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response.getDefaultInstance()) return this; - if (other.getSuccess() != false) { - setSuccess(other.getSuccess()); + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse other) { + if (other == io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance()) return this; + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4417,11 +3684,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response parsedMessage = null; + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4431,48 +3698,48 @@ public Builder mergeFrom( return this; } - private boolean success_ ; + private long timestamp_ ; /** *
-       * Success will be true if the transaction was accepted by the node,
-       * **Important** - success does not mean that the event is confirmed by consensus
+       * Timestamp representation of current VegaTime as represented in
+       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
        * 
* - * bool success = 1 [json_name = "success"]; - * @return The success. + * int64 timestamp = 1 [json_name = "timestamp"]; + * @return The timestamp. */ @java.lang.Override - public boolean getSuccess() { - return success_; + public long getTimestamp() { + return timestamp_; } /** *
-       * Success will be true if the transaction was accepted by the node,
-       * **Important** - success does not mean that the event is confirmed by consensus
+       * Timestamp representation of current VegaTime as represented in
+       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
        * 
* - * bool success = 1 [json_name = "success"]; - * @param value The success to set. + * int64 timestamp = 1 [json_name = "timestamp"]; + * @param value The timestamp to set. * @return This builder for chaining. */ - public Builder setSuccess(boolean value) { + public Builder setTimestamp(long value) { - success_ = value; + timestamp_ = value; onChanged(); return this; } /** *
-       * Success will be true if the transaction was accepted by the node,
-       * **Important** - success does not mean that the event is confirmed by consensus
+       * Timestamp representation of current VegaTime as represented in
+       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
        * 
* - * bool success = 1 [json_name = "success"]; + * int64 timestamp = 1 [json_name = "timestamp"]; * @return This builder for chaining. */ - public Builder clearSuccess() { + public Builder clearTimestamp() { - success_ = false; + timestamp_ = 0L; onChanged(); return this; } @@ -4489,109 +3756,190 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.SubmitTransactionV2Response) + // @@protoc_insertion_point(builder_scope:api.v1.GetVegaTimeResponse) } - // @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) - private static final io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) + private static final io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse(); } - public static io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitTransactionV2Response parsePartialFrom( + public GetVegaTimeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitTransactionV2Response(input, extensionRegistry); + return new GetVegaTimeResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrepareWithdrawRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareWithdrawRequest) + public interface ObserveEventBusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.ObserveEventBusRequest) com.google.protobuf.MessageOrBuilder { /** *
-     * An asset withdrawal
+     * One or more types of event, required field
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return Whether the withdraw field is set. + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the type. */ - boolean hasWithdraw(); + java.util.List getTypeList(); /** *
-     * An asset withdrawal
+     * One or more types of event, required field
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return The withdraw. + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return The count of type. */ - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission getWithdraw(); + int getTypeCount(); /** *
-     * An asset withdrawal
+     * One or more types of event, required field
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the element to return. + * @return The type at the given index. */ - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder getWithdrawOrBuilder(); - } - /** - *
-   * Request for preparing a withdrawal
-   * 
- * - * Protobuf type {@code api.v1.PrepareWithdrawRequest} - */ - public static final class PrepareWithdrawRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareWithdrawRequest) - PrepareWithdrawRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareWithdrawRequest.newBuilder() to construct. - private PrepareWithdrawRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareWithdrawRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareWithdrawRequest(); - } + io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index); + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the enum numeric values on the wire for type. + */ + java.util.List + getTypeValueList(); + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + int getTypeValue(int index); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet + /** + *
+     * Market identifier, optional field
+     * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The marketId. + */ + java.lang.String getMarketId(); + /** + *
+     * Market identifier, optional field
+     * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + com.google.protobuf.ByteString + getMarketIdBytes(); + + /** + *
+     * Party identifier, optional field
+     * 
+ * + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. + */ + java.lang.String getPartyId(); + /** + *
+     * Party identifier, optional field
+     * 
+ * + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. + */ + com.google.protobuf.ByteString + getPartyIdBytes(); + + /** + *
+     * Batch size, optional field -
+     * If not specified, any events received will be sent immediately. If the client is not ready
+     * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
+     * if specified, the first batch will be sent when ready. To receive the next set of events, the client
+     * must write an `ObserveEventBatch` message on the stream to flush the buffer.
+     * If no message is received in 5 seconds, the stream is closed.
+     * Default: 0, send any and all events when they are available.
+     * 
+ * + * int64 batch_size = 4 [json_name = "batchSize"]; + * @return The batchSize. + */ + long getBatchSize(); + } + /** + *
+   * Request to subscribe to a stream of one or more event types from the Vega event bus
+   * 
+ * + * Protobuf type {@code api.v1.ObserveEventBusRequest} + */ + public static final class ObserveEventBusRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:api.v1.ObserveEventBusRequest) + ObserveEventBusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObserveEventBusRequest.newBuilder() to construct. + private ObserveEventBusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObserveEventBusRequest() { + type_ = java.util.Collections.emptyList(); + marketId_ = ""; + partyId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ObserveEventBusRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PrepareWithdrawRequest( + private ObserveEventBusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4599,6 +3947,7 @@ private PrepareWithdrawRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -4609,17 +3958,44 @@ private PrepareWithdrawRequest( case 0: done = true; break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder subBuilder = null; - if (withdraw_ != null) { - subBuilder = withdraw_.toBuilder(); + case 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + type_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - withdraw_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(withdraw_); - withdraw_ = subBuilder.buildPartial(); + type_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + type_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + type_.add(rawValue); } + input.popLimit(oldLimit); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + marketId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + partyId_ = s; + break; + } + case 32: { + + batchSize_ = input.readInt64(); break; } default: { @@ -4637,59 +4013,215 @@ private PrepareWithdrawRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + type_ = java.util.Collections.unmodifiableList(type_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawRequest_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.class, io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.Builder.class); + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private java.util.List type_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType> type_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>() { + public io.vegaprotocol.vega.events.v1.Events.BusEventType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.events.v1.Events.BusEventType result = io.vegaprotocol.vega.events.v1.Events.BusEventType.valueOf(from); + return result == null ? io.vegaprotocol.vega.events.v1.Events.BusEventType.UNRECOGNIZED : result; + } + }; + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the type. + */ + @java.lang.Override + public java.util.List getTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>(type_, type_converter_); + } + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return The count of type. + */ + @java.lang.Override + public int getTypeCount() { + return type_.size(); + } + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the element to return. + * @return The type at the given index. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index) { + return type_converter_.convert(type_.get(index)); + } + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the enum numeric values on the wire for type. + */ + @java.lang.Override + public java.util.List + getTypeValueList() { + return type_; + } + /** + *
+     * One or more types of event, required field
+     * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + @java.lang.Override + public int getTypeValue(int index) { + return type_.get(index); + } + private int typeMemoizedSerializedSize; + + public static final int MARKET_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object marketId_; + /** + *
+     * Market identifier, optional field
+     * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The marketId. + */ + @java.lang.Override + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } + } + /** + *
+     * Market identifier, optional field
+     * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int WITHDRAW_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission withdraw_; + public static final int PARTY_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object partyId_; /** *
-     * An asset withdrawal
+     * Party identifier, optional field
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return Whether the withdraw field is set. + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. */ @java.lang.Override - public boolean hasWithdraw() { - return withdraw_ != null; + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; + } } /** *
-     * An asset withdrawal
+     * Party identifier, optional field
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return The withdraw. + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. */ @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission getWithdraw() { - return withdraw_ == null ? io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.getDefaultInstance() : withdraw_; + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int BATCH_SIZE_FIELD_NUMBER = 4; + private long batchSize_; /** *
-     * An asset withdrawal
+     * Batch size, optional field -
+     * If not specified, any events received will be sent immediately. If the client is not ready
+     * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
+     * if specified, the first batch will be sent when ready. To receive the next set of events, the client
+     * must write an `ObserveEventBatch` message on the stream to flush the buffer.
+     * If no message is received in 5 seconds, the stream is closed.
+     * Default: 0, send any and all events when they are available.
      * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * int64 batch_size = 4 [json_name = "batchSize"]; + * @return The batchSize. */ @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder getWithdrawOrBuilder() { - return getWithdraw(); + public long getBatchSize() { + return batchSize_; } private byte memoizedIsInitialized = -1; @@ -4706,8 +4238,22 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (withdraw_ != null) { - output.writeMessage(1, getWithdraw()); + getSerializedSize(); + if (getTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(typeMemoizedSerializedSize); + } + for (int i = 0; i < type_.size(); i++) { + output.writeEnumNoTag(type_.get(i)); + } + if (!getMarketIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); + } + if (!getPartyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partyId_); + } + if (batchSize_ != 0L) { + output.writeInt64(4, batchSize_); } unknownFields.writeTo(output); } @@ -4718,9 +4264,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (withdraw_ != null) { + { + int dataSize = 0; + for (int i = 0; i < type_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(type_.get(i)); + } + size += dataSize; + if (!getTypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }typeMemoizedSerializedSize = dataSize; + } + if (!getMarketIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); + } + if (!getPartyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partyId_); + } + if (batchSize_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWithdraw()); + .computeInt64Size(4, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4732,16 +4296,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest other = (io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest) obj; + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest other = (io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) obj; - if (hasWithdraw() != other.hasWithdraw()) return false; - if (hasWithdraw()) { - if (!getWithdraw() - .equals(other.getWithdraw())) return false; - } + if (!type_.equals(other.type_)) return false; + if (!getMarketId() + .equals(other.getMarketId())) return false; + if (!getPartyId() + .equals(other.getPartyId())) return false; + if (getBatchSize() + != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4753,78 +4319,85 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWithdraw()) { - hash = (37 * hash) + WITHDRAW_FIELD_NUMBER; - hash = (53 * hash) + getWithdraw().hashCode(); + if (getTypeCount() > 0) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_.hashCode(); } + hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getMarketId().hashCode(); + hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartyId().hashCode(); + hash = (37 * hash) + BATCH_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBatchSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4837,7 +4410,7 @@ public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4854,29 +4427,29 @@ protected Builder newBuilderForType( } /** *
-     * Request for preparing a withdrawal
+     * Request to subscribe to a stream of one or more event types from the Vega event bus
      * 
* - * Protobuf type {@code api.v1.PrepareWithdrawRequest} + * Protobuf type {@code api.v1.ObserveEventBusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareWithdrawRequest) - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.ObserveEventBusRequest) + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawRequest_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.class, io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.Builder.class); + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4894,29 +4467,31 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (withdrawBuilder_ == null) { - withdraw_ = null; - } else { - withdraw_ = null; - withdrawBuilder_ = null; - } + type_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + marketId_ = ""; + + partyId_ = ""; + + batchSize_ = 0L; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest build() { + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4924,13 +4499,17 @@ public io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest result = new io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest(this); - if (withdrawBuilder_ == null) { - result.withdraw_ = withdraw_; - } else { - result.withdraw_ = withdrawBuilder_.build(); + public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest buildPartial() { + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest result = new io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + type_ = java.util.Collections.unmodifiableList(type_); + bitField0_ = (bitField0_ & ~0x00000001); } + result.type_ = type_; + result.marketId_ = marketId_; + result.partyId_ = partyId_; + result.batchSize_ = batchSize_; onBuilt(); return result; } @@ -4969,18 +4548,36 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.getDefaultInstance()) return this; - if (other.hasWithdraw()) { - mergeWithdraw(other.getWithdraw()); + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest other) { + if (other == io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance()) return this; + if (!other.type_.isEmpty()) { + if (type_.isEmpty()) { + type_ = other.type_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTypeIsMutable(); + type_.addAll(other.type_); + } + onChanged(); + } + if (!other.getMarketId().isEmpty()) { + marketId_ = other.marketId_; + onChanged(); + } + if (!other.getPartyId().isEmpty()) { + partyId_ = other.partyId_; + onChanged(); + } + if (other.getBatchSize() != 0L) { + setBatchSize(other.getBatchSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4997,11 +4594,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest parsedMessage = null; + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5010,160 +4607,447 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission withdraw_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder> withdrawBuilder_; + private java.util.List type_ = + java.util.Collections.emptyList(); + private void ensureTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + type_ = new java.util.ArrayList(type_); + bitField0_ |= 0x00000001; + } + } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return Whether the withdraw field is set. + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the type. */ - public boolean hasWithdraw() { - return withdrawBuilder_ != null || withdraw_ != null; + public java.util.List getTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>(type_, type_converter_); } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - * @return The withdraw. + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return The count of type. */ - public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission getWithdraw() { - if (withdrawBuilder_ == null) { - return withdraw_ == null ? io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.getDefaultInstance() : withdraw_; - } else { - return withdrawBuilder_.getMessage(); - } + public int getTypeCount() { + return type_.size(); } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the element to return. + * @return The type at the given index. */ - public Builder setWithdraw(io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission value) { - if (withdrawBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - withdraw_ = value; - onChanged(); - } else { - withdrawBuilder_.setMessage(value); - } - - return this; + public io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index) { + return type_converter_.convert(type_.get(index)); } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index to set the value at. + * @param value The type to set. + * @return This builder for chaining. */ - public Builder setWithdraw( - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder builderForValue) { - if (withdrawBuilder_ == null) { - withdraw_ = builderForValue.build(); - onChanged(); - } else { - withdrawBuilder_.setMessage(builderForValue.build()); + public Builder setType( + int index, io.vegaprotocol.vega.events.v1.Events.BusEventType value) { + if (value == null) { + throw new NullPointerException(); } - + ensureTypeIsMutable(); + type_.set(index, value.getNumber()); + onChanged(); return this; } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param value The type to add. + * @return This builder for chaining. */ - public Builder mergeWithdraw(io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission value) { - if (withdrawBuilder_ == null) { - if (withdraw_ != null) { - withdraw_ = - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.newBuilder(withdraw_).mergeFrom(value).buildPartial(); - } else { - withdraw_ = value; - } - onChanged(); - } else { - withdrawBuilder_.mergeFrom(value); + public Builder addType(io.vegaprotocol.vega.events.v1.Events.BusEventType value) { + if (value == null) { + throw new NullPointerException(); } - + ensureTypeIsMutable(); + type_.add(value.getNumber()); + onChanged(); return this; } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param values The type to add. + * @return This builder for chaining. */ - public Builder clearWithdraw() { - if (withdrawBuilder_ == null) { - withdraw_ = null; - onChanged(); - } else { - withdraw_ = null; - withdrawBuilder_ = null; + public Builder addAllType( + java.lang.Iterable values) { + ensureTypeIsMutable(); + for (io.vegaprotocol.vega.events.v1.Events.BusEventType value : values) { + type_.add(value.getNumber()); } - + onChanged(); return this; } /** *
-       * An asset withdrawal
+       * One or more types of event, required field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder getWithdrawBuilder() { + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * One or more types of event, required field
+       * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @return A list containing the enum numeric values on the wire for type. + */ + public java.util.List + getTypeValueList() { + return java.util.Collections.unmodifiableList(type_); + } + /** + *
+       * One or more types of event, required field
+       * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + public int getTypeValue(int index) { + return type_.get(index); + } + /** + *
+       * One or more types of event, required field
+       * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + * @return This builder for chaining. + */ + public Builder setTypeValue( + int index, int value) { + ensureTypeIsMutable(); + type_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * One or more types of event, required field
+       * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param value The enum numeric value on the wire for type to add. + * @return This builder for chaining. + */ + public Builder addTypeValue(int value) { + ensureTypeIsMutable(); + type_.add(value); + onChanged(); + return this; + } + /** + *
+       * One or more types of event, required field
+       * 
+ * + * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; + * @param values The enum numeric values on the wire for type to add. + * @return This builder for chaining. + */ + public Builder addAllTypeValue( + java.lang.Iterable values) { + ensureTypeIsMutable(); + for (int value : values) { + type_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object marketId_ = ""; + /** + *
+       * Market identifier, optional field
+       * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The marketId. + */ + public java.lang.String getMarketId() { + java.lang.Object ref = marketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Market identifier, optional field
+       * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return The bytes for marketId. + */ + public com.google.protobuf.ByteString + getMarketIdBytes() { + java.lang.Object ref = marketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Market identifier, optional field
+       * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @param value The marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + marketId_ = value; + onChanged(); + return this; + } + /** + *
+       * Market identifier, optional field
+       * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @return This builder for chaining. + */ + public Builder clearMarketId() { + + marketId_ = getDefaultInstance().getMarketId(); + onChanged(); + return this; + } + /** + *
+       * Market identifier, optional field
+       * 
+ * + * string market_id = 2 [json_name = "marketId"]; + * @param value The bytes for marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + marketId_ = value; onChanged(); - return getWithdrawFieldBuilder().getBuilder(); + return this; } + + private java.lang.Object partyId_ = ""; /** *
-       * An asset withdrawal
+       * Party identifier, optional field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * string party_id = 3 [json_name = "partyId"]; + * @return The partyId. */ - public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder getWithdrawOrBuilder() { - if (withdrawBuilder_ != null) { - return withdrawBuilder_.getMessageOrBuilder(); + public java.lang.String getPartyId() { + java.lang.Object ref = partyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partyId_ = s; + return s; } else { - return withdraw_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.getDefaultInstance() : withdraw_; + return (java.lang.String) ref; } } /** *
-       * An asset withdrawal
+       * Party identifier, optional field
        * 
* - * .vega.commands.v1.WithdrawSubmission withdraw = 1 [json_name = "withdraw"]; + * string party_id = 3 [json_name = "partyId"]; + * @return The bytes for partyId. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder> - getWithdrawFieldBuilder() { - if (withdrawBuilder_ == null) { - withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder>( - getWithdraw(), - getParentForChildren(), - isClean()); - withdraw_ = null; + public com.google.protobuf.ByteString + getPartyIdBytes() { + java.lang.Object ref = partyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + partyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return withdrawBuilder_; + } + /** + *
+       * Party identifier, optional field
+       * 
+ * + * string party_id = 3 [json_name = "partyId"]; + * @param value The partyId to set. + * @return This builder for chaining. + */ + public Builder setPartyId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + partyId_ = value; + onChanged(); + return this; + } + /** + *
+       * Party identifier, optional field
+       * 
+ * + * string party_id = 3 [json_name = "partyId"]; + * @return This builder for chaining. + */ + public Builder clearPartyId() { + + partyId_ = getDefaultInstance().getPartyId(); + onChanged(); + return this; + } + /** + *
+       * Party identifier, optional field
+       * 
+ * + * string party_id = 3 [json_name = "partyId"]; + * @param value The bytes for partyId to set. + * @return This builder for chaining. + */ + public Builder setPartyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + partyId_ = value; + onChanged(); + return this; + } + + private long batchSize_ ; + /** + *
+       * Batch size, optional field -
+       * If not specified, any events received will be sent immediately. If the client is not ready
+       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
+       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
+       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
+       * If no message is received in 5 seconds, the stream is closed.
+       * Default: 0, send any and all events when they are available.
+       * 
+ * + * int64 batch_size = 4 [json_name = "batchSize"]; + * @return The batchSize. + */ + @java.lang.Override + public long getBatchSize() { + return batchSize_; + } + /** + *
+       * Batch size, optional field -
+       * If not specified, any events received will be sent immediately. If the client is not ready
+       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
+       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
+       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
+       * If no message is received in 5 seconds, the stream is closed.
+       * Default: 0, send any and all events when they are available.
+       * 
+ * + * int64 batch_size = 4 [json_name = "batchSize"]; + * @param value The batchSize to set. + * @return This builder for chaining. + */ + public Builder setBatchSize(long value) { + + batchSize_ = value; + onChanged(); + return this; + } + /** + *
+       * Batch size, optional field -
+       * If not specified, any events received will be sent immediately. If the client is not ready
+       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
+       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
+       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
+       * If no message is received in 5 seconds, the stream is closed.
+       * Default: 0, send any and all events when they are available.
+       * 
+ * + * int64 batch_size = 4 [json_name = "batchSize"]; + * @return This builder for chaining. + */ + public Builder clearBatchSize() { + + batchSize_ = 0L; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -5178,85 +5062,119 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.PrepareWithdrawRequest) + // @@protoc_insertion_point(builder_scope:api.v1.ObserveEventBusRequest) } - // @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) + private static final io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest(); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PrepareWithdrawRequest parsePartialFrom( + public ObserveEventBusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareWithdrawRequest(input, extensionRegistry); + return new ObserveEventBusRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrepareWithdrawResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareWithdrawResponse) + public interface ObserveEventBusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.ObserveEventBusResponse) com.google.protobuf.MessageOrBuilder { /** *
-     * Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + java.util.List + getEventsList(); + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index); + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + int getEventsCount(); + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + java.util.List + getEventsOrBuilderList(); + /** + *
+     * One or more events
      * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; */ - com.google.protobuf.ByteString getBlob(); + io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( + int index); } /** *
-   * Response for preparing a withdrawal
+   * Response to a subscribed stream of events from the Vega event bus
    * 
* - * Protobuf type {@code api.v1.PrepareWithdrawResponse} + * Protobuf type {@code api.v1.ObserveEventBusResponse} */ - public static final class PrepareWithdrawResponse extends + public static final class ObserveEventBusResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareWithdrawResponse) - PrepareWithdrawResponseOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.ObserveEventBusResponse) + ObserveEventBusResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use PrepareWithdrawResponse.newBuilder() to construct. - private PrepareWithdrawResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ObserveEventBusResponse.newBuilder() to construct. + private ObserveEventBusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrepareWithdrawResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; + private ObserveEventBusResponse() { + events_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new PrepareWithdrawResponse(); + return new ObserveEventBusResponse(); } @java.lang.Override @@ -5264,7 +5182,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private PrepareWithdrawResponse( + private ObserveEventBusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5272,6 +5190,7 @@ private PrepareWithdrawResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -5283,8 +5202,12 @@ private PrepareWithdrawResponse( done = true; break; case 10: { - - blob_ = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add( + input.readMessage(io.vegaprotocol.vega.events.v1.Events.BusEvent.parser(), extensionRegistry)); break; } default: { @@ -5302,36 +5225,84 @@ private PrepareWithdrawResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.class, io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.Builder.class); } - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; + public static final int EVENTS_FIELD_NUMBER = 1; + private java.util.List events_; + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + /** + *
+     * One or more events
+     * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index) { + return events_.get(index); + } /** *
-     * Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction
+     * One or more events
      * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; */ @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; + public io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( + int index) { + return events_.get(index); } private byte memoizedIsInitialized = -1; @@ -5348,8 +5319,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(1, events_.get(i)); } unknownFields.writeTo(output); } @@ -5360,9 +5331,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!blob_.isEmpty()) { + for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); + .computeMessageSize(1, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5374,13 +5345,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse other = (io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse) obj; + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse other = (io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) obj; - if (!getBlob() - .equals(other.getBlob())) return false; + if (!getEventsList() + .equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5392,76 +5363,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5474,7 +5447,7 @@ public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parseFrom public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5491,29 +5464,29 @@ protected Builder newBuilderForType( } /** *
-     * Response for preparing a withdrawal
+     * Response to a subscribed stream of events from the Vega event bus
      * 
* - * Protobuf type {@code api.v1.PrepareWithdrawResponse} + * Protobuf type {@code api.v1.ObserveEventBusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareWithdrawResponse) - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.ObserveEventBusResponse) + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.class, io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5526,30 +5499,35 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getEventsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + eventsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareWithdrawResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse build() { + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5557,9 +5535,18 @@ public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse result = new io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse(this); - result.blob_ = blob_; + public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse buildPartial() { + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse result = new io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse(this); + int from_bitField0_ = bitField0_; + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } onBuilt(); return result; } @@ -5598,20 +5585,43 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - this.mergeUnknownFields(other.unknownFields); + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse other) { + if (other == io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance()) return this; + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -5626,11 +5636,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse parsedMessage = null; + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5639,52 +5649,319 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + + private java.util.List events_ = + java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder> eventsBuilder_; - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; /** *
-       * Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction
+       * One or more events
        * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } } /** *
-       * Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction
+       * One or more events
        * 
* - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blob_ = value; - onChanged(); + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder setEvents( + int index, io.vegaprotocol.vega.events.v1.Events.BusEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } return this; } /** *
-       * Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction
+       * One or more events
        * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; */ - public Builder clearBlob() { - - blob_ = getDefaultInstance().getBlob(); - onChanged(); + public Builder setEvents( + int index, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder addEvents(io.vegaprotocol.vega.events.v1.Events.BusEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder addEvents( + int index, io.vegaprotocol.vega.events.v1.Events.BusEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder addEvents( + io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder addEvents( + int index, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } return this; } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder getEventsBuilder( + int index) { + return getEventsFieldBuilder().getBuilder(index); + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( + int index) { + if (eventsBuilder_ == null) { + return events_.get(index); } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder addEventsBuilder() { + return getEventsFieldBuilder().addBuilder( + io.vegaprotocol.vega.events.v1.Events.BusEvent.getDefaultInstance()); + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.events.v1.Events.BusEvent.getDefaultInstance()); + } + /** + *
+       * One or more events
+       * 
+ * + * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; + */ + public java.util.List + getEventsBuilderList() { + return getEventsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder> + getEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + events_ = null; + } + return eventsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5698,106 +5975,74 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.PrepareWithdrawResponse) + // @@protoc_insertion_point(builder_scope:api.v1.ObserveEventBusResponse) } - // @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) + private static final io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse(); } - public static io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PrepareWithdrawResponse parsePartialFrom( + public ObserveEventBusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareWithdrawResponse(input, extensionRegistry); + return new ObserveEventBusResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrepareSubmitOrderResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareSubmitOrderResponse) + public interface StatisticsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.StatisticsRequest) com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - com.google.protobuf.ByteString getBlob(); - - /** - *
-     * Submission identifier (order reference)
-     * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The submitId. - */ - java.lang.String getSubmitId(); - /** - *
-     * Submission identifier (order reference)
-     * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The bytes for submitId. - */ - com.google.protobuf.ByteString - getSubmitIdBytes(); } /** *
-   * Response for preparing an order submission
+   * A a request for statistics about the Vega network
    * 
* - * Protobuf type {@code api.v1.PrepareSubmitOrderResponse} + * Protobuf type {@code api.v1.StatisticsRequest} */ - public static final class PrepareSubmitOrderResponse extends + public static final class StatisticsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareSubmitOrderResponse) - PrepareSubmitOrderResponseOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.StatisticsRequest) + StatisticsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use PrepareSubmitOrderResponse.newBuilder() to construct. - private PrepareSubmitOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use StatisticsRequest.newBuilder() to construct. + private StatisticsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrepareSubmitOrderResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; - submitId_ = ""; + private StatisticsRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new PrepareSubmitOrderResponse(); + return new StatisticsRequest(); } @java.lang.Override @@ -5805,7 +6050,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private PrepareSubmitOrderResponse( + private StatisticsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5823,17 +6068,6 @@ private PrepareSubmitOrderResponse( case 0: done = true; break; - case 10: { - - blob_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - submitId_ = s; - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -5855,76 +6089,15 @@ private PrepareSubmitOrderResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.Builder.class); - } - - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; - /** - *
-     * Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - - public static final int SUBMIT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object submitId_; - /** - *
-     * Submission identifier (order reference)
-     * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The submitId. - */ - @java.lang.Override - public java.lang.String getSubmitId() { - java.lang.Object ref = submitId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submitId_ = s; - return s; - } - } - /** - *
-     * Submission identifier (order reference)
-     * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The bytes for submitId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubmitIdBytes() { - java.lang.Object ref = submitId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, io.vegaprotocol.vega.api.Trading.StatisticsRequest.Builder.class); } private byte memoizedIsInitialized = -1; @@ -5941,12 +6114,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); - } - if (!getSubmitIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, submitId_); - } unknownFields.writeTo(output); } @@ -5956,13 +6123,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!blob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); - } - if (!getSubmitIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, submitId_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -5973,15 +6133,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.StatisticsRequest)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse other = (io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse) obj; + io.vegaprotocol.vega.api.Trading.StatisticsRequest other = (io.vegaprotocol.vega.api.Trading.StatisticsRequest) obj; - if (!getBlob() - .equals(other.getBlob())) return false; - if (!getSubmitId() - .equals(other.getSubmitId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5993,78 +6149,74 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - hash = (37 * hash) + SUBMIT_ID_FIELD_NUMBER; - hash = (53 * hash) + getSubmitId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6077,7 +6229,7 @@ public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.StatisticsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6094,29 +6246,29 @@ protected Builder newBuilderForType( } /** *
-     * Response for preparing an order submission
+     * A a request for statistics about the Vega network
      * 
* - * Protobuf type {@code api.v1.PrepareSubmitOrderResponse} + * Protobuf type {@code api.v1.StatisticsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareSubmitOrderResponse) - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.StatisticsRequest) + io.vegaprotocol.vega.api.Trading.StatisticsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, io.vegaprotocol.vega.api.Trading.StatisticsRequest.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.StatisticsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6134,27 +6286,23 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - - submitId_ = ""; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.StatisticsRequest build() { + io.vegaprotocol.vega.api.Trading.StatisticsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6162,10 +6310,8 @@ public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse result = new io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse(this); - result.blob_ = blob_; - result.submitId_ = submitId_; + public io.vegaprotocol.vega.api.Trading.StatisticsRequest buildPartial() { + io.vegaprotocol.vega.api.Trading.StatisticsRequest result = new io.vegaprotocol.vega.api.Trading.StatisticsRequest(this); onBuilt(); return result; } @@ -6204,23 +6350,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.StatisticsRequest) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.StatisticsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - if (!other.getSubmitId().isEmpty()) { - submitId_ = other.submitId_; - onChanged(); - } + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.StatisticsRequest other) { + if (other == io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6236,11 +6375,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse parsedMessage = null; + io.vegaprotocol.vega.api.Trading.StatisticsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.StatisticsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6249,240 +6388,98 @@ public Builder mergeFrom( } return this; } - - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - *
-       * Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - blob_ = value; - onChanged(); - return this; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. - */ - public Builder clearBlob() { - blob_ = getDefaultInstance().getBlob(); - onChanged(); - return this; - } - private java.lang.Object submitId_ = ""; - /** - *
-       * Submission identifier (order reference)
-       * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The submitId. - */ - public java.lang.String getSubmitId() { - java.lang.Object ref = submitId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submitId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Submission identifier (order reference)
-       * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return The bytes for submitId. - */ - public com.google.protobuf.ByteString - getSubmitIdBytes() { - java.lang.Object ref = submitId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Submission identifier (order reference)
-       * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @param value The submitId to set. - * @return This builder for chaining. - */ - public Builder setSubmitId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - submitId_ = value; - onChanged(); - return this; - } - /** - *
-       * Submission identifier (order reference)
-       * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @return This builder for chaining. - */ - public Builder clearSubmitId() { - - submitId_ = getDefaultInstance().getSubmitId(); - onChanged(); - return this; - } - /** - *
-       * Submission identifier (order reference)
-       * 
- * - * string submit_id = 2 [json_name = "submitId"]; - * @param value The bytes for submitId to set. - * @return This builder for chaining. - */ - public Builder setSubmitIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - submitId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareSubmitOrderResponse) + // @@protoc_insertion_point(builder_scope:api.v1.StatisticsRequest) } - // @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) + private static final io.vegaprotocol.vega.api.Trading.StatisticsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.StatisticsRequest(); } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PrepareSubmitOrderResponse parsePartialFrom( + public StatisticsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareSubmitOrderResponse(input, extensionRegistry); + return new StatisticsRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrepareCancelOrderResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareCancelOrderResponse) + public interface StatisticsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.StatisticsResponse) com.google.protobuf.MessageOrBuilder { /** - *
-     * Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return Whether the statistics field is set. + */ + boolean hasStatistics(); + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return The statistics. + */ + io.vegaprotocol.vega.api.Trading.Statistics getStatistics(); + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; */ - com.google.protobuf.ByteString getBlob(); + io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder getStatisticsOrBuilder(); } /** - *
-   * Response for preparing an order cancellation
-   * 
- * - * Protobuf type {@code api.v1.PrepareCancelOrderResponse} + * Protobuf type {@code api.v1.StatisticsResponse} */ - public static final class PrepareCancelOrderResponse extends + public static final class StatisticsResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareCancelOrderResponse) - PrepareCancelOrderResponseOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.StatisticsResponse) + StatisticsResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use PrepareCancelOrderResponse.newBuilder() to construct. - private PrepareCancelOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use StatisticsResponse.newBuilder() to construct. + private StatisticsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrepareCancelOrderResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; + private StatisticsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new PrepareCancelOrderResponse(); + return new StatisticsResponse(); } @java.lang.Override @@ -6490,7 +6487,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private PrepareCancelOrderResponse( + private StatisticsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6509,8 +6506,16 @@ private PrepareCancelOrderResponse( done = true; break; case 10: { + io.vegaprotocol.vega.api.Trading.Statistics.Builder subBuilder = null; + if (statistics_ != null) { + subBuilder = statistics_.toBuilder(); + } + statistics_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Statistics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(statistics_); + statistics_ = subBuilder.buildPartial(); + } - blob_ = input.readBytes(); break; } default: { @@ -6534,30 +6539,41 @@ private PrepareCancelOrderResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, io.vegaprotocol.vega.api.Trading.StatisticsResponse.Builder.class); } - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; + public static final int STATISTICS_FIELD_NUMBER = 1; + private io.vegaprotocol.vega.api.Trading.Statistics statistics_; /** - *
-     * Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return Whether the statistics field is set. + */ + @java.lang.Override + public boolean hasStatistics() { + return statistics_ != null; + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return The statistics. + */ + @java.lang.Override + public io.vegaprotocol.vega.api.Trading.Statistics getStatistics() { + return statistics_ == null ? io.vegaprotocol.vega.api.Trading.Statistics.getDefaultInstance() : statistics_; + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; */ @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; + public io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder getStatisticsOrBuilder() { + return getStatistics(); } private byte memoizedIsInitialized = -1; @@ -6574,8 +6590,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); + if (statistics_ != null) { + output.writeMessage(1, getStatistics()); } unknownFields.writeTo(output); } @@ -6586,9 +6602,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!blob_.isEmpty()) { + if (statistics_ != null) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); + .computeMessageSize(1, getStatistics()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6600,13 +6616,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.StatisticsResponse)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse other = (io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse) obj; + io.vegaprotocol.vega.api.Trading.StatisticsResponse other = (io.vegaprotocol.vega.api.Trading.StatisticsResponse) obj; - if (!getBlob() - .equals(other.getBlob())) return false; + if (hasStatistics() != other.hasStatistics()) return false; + if (hasStatistics()) { + if (!getStatistics() + .equals(other.getStatistics())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6618,76 +6637,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); + if (hasStatistics()) { + hash = (37 * hash) + STATISTICS_FIELD_NUMBER; + hash = (53 * hash) + getStatistics().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6700,7 +6721,7 @@ public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.StatisticsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6716,30 +6737,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * Response for preparing an order cancellation
-     * 
- * - * Protobuf type {@code api.v1.PrepareCancelOrderResponse} + * Protobuf type {@code api.v1.StatisticsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareCancelOrderResponse) - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.StatisticsResponse) + io.vegaprotocol.vega.api.Trading.StatisticsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, io.vegaprotocol.vega.api.Trading.StatisticsResponse.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.StatisticsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6757,25 +6774,29 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - + if (statisticsBuilder_ == null) { + statistics_ = null; + } else { + statistics_ = null; + statisticsBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.StatisticsResponse build() { + io.vegaprotocol.vega.api.Trading.StatisticsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6783,9 +6804,13 @@ public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse result = new io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse(this); - result.blob_ = blob_; + public io.vegaprotocol.vega.api.Trading.StatisticsResponse buildPartial() { + io.vegaprotocol.vega.api.Trading.StatisticsResponse result = new io.vegaprotocol.vega.api.Trading.StatisticsResponse(this); + if (statisticsBuilder_ == null) { + result.statistics_ = statistics_; + } else { + result.statistics_ = statisticsBuilder_.build(); + } onBuilt(); return result; } @@ -6824,18 +6849,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.StatisticsResponse) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.StatisticsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.StatisticsResponse other) { + if (other == io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance()) return this; + if (other.hasStatistics()) { + mergeStatistics(other.getStatistics()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -6852,11 +6877,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse parsedMessage = null; + io.vegaprotocol.vega.api.Trading.StatisticsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.StatisticsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6866,51 +6891,124 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; + private io.vegaprotocol.vega.api.Trading.Statistics statistics_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.api.Trading.Statistics, io.vegaprotocol.vega.api.Trading.Statistics.Builder, io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder> statisticsBuilder_; /** - *
-       * Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return Whether the statistics field is set. */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; + public boolean hasStatistics() { + return statisticsBuilder_ != null || statistics_ != null; } /** - *
-       * Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + * @return The statistics. */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public io.vegaprotocol.vega.api.Trading.Statistics getStatistics() { + if (statisticsBuilder_ == null) { + return statistics_ == null ? io.vegaprotocol.vega.api.Trading.Statistics.getDefaultInstance() : statistics_; + } else { + return statisticsBuilder_.getMessage(); + } + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + public Builder setStatistics(io.vegaprotocol.vega.api.Trading.Statistics value) { + if (statisticsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statistics_ = value; + onChanged(); + } else { + statisticsBuilder_.setMessage(value); + } - blob_ = value; - onChanged(); return this; } /** - *
-       * Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; */ - public Builder clearBlob() { + public Builder setStatistics( + io.vegaprotocol.vega.api.Trading.Statistics.Builder builderForValue) { + if (statisticsBuilder_ == null) { + statistics_ = builderForValue.build(); + onChanged(); + } else { + statisticsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + public Builder mergeStatistics(io.vegaprotocol.vega.api.Trading.Statistics value) { + if (statisticsBuilder_ == null) { + if (statistics_ != null) { + statistics_ = + io.vegaprotocol.vega.api.Trading.Statistics.newBuilder(statistics_).mergeFrom(value).buildPartial(); + } else { + statistics_ = value; + } + onChanged(); + } else { + statisticsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + public Builder clearStatistics() { + if (statisticsBuilder_ == null) { + statistics_ = null; + onChanged(); + } else { + statistics_ = null; + statisticsBuilder_ = null; + } - blob_ = getDefaultInstance().getBlob(); - onChanged(); return this; } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + public io.vegaprotocol.vega.api.Trading.Statistics.Builder getStatisticsBuilder() { + + onChanged(); + return getStatisticsFieldBuilder().getBuilder(); + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + public io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder getStatisticsOrBuilder() { + if (statisticsBuilder_ != null) { + return statisticsBuilder_.getMessageOrBuilder(); + } else { + return statistics_ == null ? + io.vegaprotocol.vega.api.Trading.Statistics.getDefaultInstance() : statistics_; + } + } + /** + * .api.v1.Statistics statistics = 1 [json_name = "statistics"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.api.Trading.Statistics, io.vegaprotocol.vega.api.Trading.Statistics.Builder, io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder> + getStatisticsFieldBuilder() { + if (statisticsBuilder_ == null) { + statisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.api.Trading.Statistics, io.vegaprotocol.vega.api.Trading.Statistics.Builder, io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder>( + getStatistics(), + getParentForChildren(), + isClean()); + statistics_ = null; + } + return statisticsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6924,621 +7022,494 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.PrepareCancelOrderResponse) + // @@protoc_insertion_point(builder_scope:api.v1.StatisticsResponse) } - // @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) + private static final io.vegaprotocol.vega.api.Trading.StatisticsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.StatisticsResponse(); } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PrepareCancelOrderResponse parsePartialFrom( + public StatisticsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareCancelOrderResponse(input, extensionRegistry); + return new StatisticsResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrepareAmendOrderResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareAmendOrderResponse) + public interface StatisticsOrBuilder extends + // @@protoc_insertion_point(interface_extends:api.v1.Statistics) com.google.protobuf.MessageOrBuilder { /** *
-     * Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.
+     * Current block height as reported by the Vega blockchain
      * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * uint64 block_height = 1 [json_name = "blockHeight"]; + * @return The blockHeight. */ - com.google.protobuf.ByteString getBlob(); - } - /** - *
-   * Response for preparing an order amendment
-   * 
- * - * Protobuf type {@code api.v1.PrepareAmendOrderResponse} - */ - public static final class PrepareAmendOrderResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareAmendOrderResponse) - PrepareAmendOrderResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareAmendOrderResponse.newBuilder() to construct. - private PrepareAmendOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareAmendOrderResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareAmendOrderResponse(); - } + long getBlockHeight(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareAmendOrderResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + /** + *
+     * Current backlog length (number of transactions) that are waiting to be included in a block
+     * 
+ * + * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * @return The backlogLength. + */ + long getBacklogLength(); - blob_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderResponse_descriptor; - } + /** + *
+     * Total number of connected peers to this node
+     * 
+ * + * uint64 total_peers = 3 [json_name = "totalPeers"]; + * @return The totalPeers. + */ + long getTotalPeers(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.Builder.class); - } + /** + *
+     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The genesisTime. + */ + java.lang.String getGenesisTime(); + /** + *
+     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The bytes for genesisTime. + */ + com.google.protobuf.ByteString + getGenesisTimeBytes(); - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; /** *
-     * Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.
+     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
      * 
* - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. + * string current_time = 5 [json_name = "currentTime"]; + * @return The currentTime. */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } + java.lang.String getCurrentTime(); + /** + *
+     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @return The bytes for currentTime. + */ + com.google.protobuf.ByteString + getCurrentTimeBytes(); - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + *
+     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The vegaTime. + */ + java.lang.String getVegaTime(); + /** + *
+     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The bytes for vegaTime. + */ + com.google.protobuf.ByteString + getVegaTimeBytes(); - memoizedIsInitialized = 1; - return true; - } + /** + *
+     * Status of the connection to the Vega blockchain
+     * - See [`ChainStatus`](#vega.ChainStatus)
+     * 
+ * + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * Status of the connection to the Vega blockchain
+     * - See [`ChainStatus`](#vega.ChainStatus)
+     * 
+ * + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The status. + */ + io.vegaprotocol.vega.Vega.ChainStatus getStatus(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); - } - unknownFields.writeTo(output); - } + /** + *
+     * Transactions per block
+     * 
+ * + * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * @return The txPerBlock. + */ + long getTxPerBlock(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + *
+     * Average transaction size in bytes
+     * 
+ * + * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * @return The averageTxBytes. + */ + long getAverageTxBytes(); - size = 0; - if (!blob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+     * Average orders per block
+     * 
+ * + * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * @return The averageOrdersPerBlock. + */ + long getAverageOrdersPerBlock(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse other = (io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse) obj; + /** + *
+     * Trades emitted per second
+     * 
+ * + * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + * @return The tradesPerSecond. + */ + long getTradesPerSecond(); - if (!getBlob() - .equals(other.getBlob())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + *
+     * Orders processed per second
+     * 
+ * + * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + * @return The ordersPerSecond. + */ + long getOrdersPerSecond(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + *
+     * Total markets on this Vega network
+     * 
+ * + * uint64 total_markets = 13 [json_name = "totalMarkets"]; + * @return The totalMarkets. + */ + long getTotalMarkets(); - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** *
-     * Response for preparing an order amendment
+     * Total number of order amendments since genesis (on all markets)
      * 
* - * Protobuf type {@code api.v1.PrepareAmendOrderResponse} + * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + * @return The totalAmendOrder. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareAmendOrderResponse) - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.class, io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse result = new io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse(this); - result.blob_ = blob_; - onBuilt(); - return result; - } + long getTotalAmendOrder(); - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + *
+     * Total number of order cancellations since genesis (on all markets)
+     * 
+ * + * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + * @return The totalCancelOrder. + */ + long getTotalCancelOrder(); - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + /** + *
+     * Total number of order submissions since genesis (on all markets)
+     * 
+ * + * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + * @return The totalCreateOrder. + */ + long getTotalCreateOrder(); - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - /** - *
-       * Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + /** + *
+     * Total number of orders processed since genesis (on all markets)
+     * 
+ * + * uint64 total_orders = 19 [json_name = "totalOrders"]; + * @return The totalOrders. + */ + long getTotalOrders(); - blob_ = value; - onChanged(); - return this; - } - /** - *
-       * Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. - */ - public Builder clearBlob() { + /** + *
+     * Total number of trades emitted since genesis (on all markets)
+     * 
+ * + * uint64 total_trades = 20 [json_name = "totalTrades"]; + * @return The totalTrades. + */ + long getTotalTrades(); - blob_ = getDefaultInstance().getBlob(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + /** + *
+     * Current number of stream subscribers to order data
+     * 
+ * + * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + * @return The orderSubscriptions. + */ + int getOrderSubscriptions(); - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + /** + *
+     * Current number of stream subscribers to trade data
+     * 
+ * + * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + * @return The tradeSubscriptions. + */ + int getTradeSubscriptions(); + /** + *
+     * Current number of stream subscribers to candle-stick data
+     * 
+ * + * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + * @return The candleSubscriptions. + */ + int getCandleSubscriptions(); - // @@protoc_insertion_point(builder_scope:api.v1.PrepareAmendOrderResponse) - } + /** + *
+     * Current number of stream subscribers to market depth data
+     * 
+ * + * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + * @return The marketDepthSubscriptions. + */ + int getMarketDepthSubscriptions(); - // @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse(); - } + /** + *
+     * Current number of stream subscribers to positions data
+     * 
+ * + * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + * @return The positionsSubscriptions. + */ + int getPositionsSubscriptions(); - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+     * Current number of stream subscribers to account data
+     * 
+ * + * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + * @return The accountSubscriptions. + */ + int getAccountSubscriptions(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareAmendOrderResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareAmendOrderResponse(input, extensionRegistry); - } - }; + /** + *
+     * Current number of stream subscribers to market data
+     * 
+ * + * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + * @return The marketDataSubscriptions. + */ + int getMarketDataSubscriptions(); - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+     * The version hash of the Vega node software
+     * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The appVersionHash. + */ + java.lang.String getAppVersionHash(); + /** + *
+     * The version hash of the Vega node software
+     * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The bytes for appVersionHash. + */ + com.google.protobuf.ByteString + getAppVersionHashBytes(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+     * The version of the Vega node software
+     * 
+ * + * string app_version = 29 [json_name = "appVersion"]; + * @return The appVersion. + */ + java.lang.String getAppVersion(); + /** + *
+     * The version of the Vega node software
+     * 
+ * + * string app_version = 29 [json_name = "appVersion"]; + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString + getAppVersionBytes(); - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+     * The version of the underlying Vega blockchain
+     * 
+ * + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The chainVersion. + */ + java.lang.String getChainVersion(); + /** + *
+     * The version of the underlying Vega blockchain
+     * 
+ * + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The bytes for chainVersion. + */ + com.google.protobuf.ByteString + getChainVersionBytes(); - } + /** + *
+     * Current block duration, in nanoseconds
+     * 
+ * + * uint64 block_duration = 31 [json_name = "blockDuration"]; + * @return The blockDuration. + */ + long getBlockDuration(); - public interface PrepareSubmitOrderRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareSubmitOrderRequest) - com.google.protobuf.MessageOrBuilder { + /** + *
+     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string uptime = 32 [json_name = "uptime"]; + * @return The uptime. + */ + java.lang.String getUptime(); + /** + *
+     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string uptime = 32 [json_name = "uptime"]; + * @return The bytes for uptime. + */ + com.google.protobuf.ByteString + getUptimeBytes(); /** *
-     * An order submission
+     * Unique identifier for the underlying Vega blockchain
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. + * string chain_id = 33 [json_name = "chainId"]; + * @return The chainId. */ - boolean hasSubmission(); + java.lang.String getChainId(); /** *
-     * An order submission
+     * Unique identifier for the underlying Vega blockchain
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return The submission. + * string chain_id = 33 [json_name = "chainId"]; + * @return The bytes for chainId. */ - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission getSubmission(); + com.google.protobuf.ByteString + getChainIdBytes(); + /** *
-     * An order submission
+     * Current number of stream subscribers to market depth update data
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; + * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + * @return The marketDepthUpdatesSubscriptions. */ - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder getSubmissionOrBuilder(); + int getMarketDepthUpdatesSubscriptions(); } /** *
-   * Request to submit a new order
+   * Vega domain specific statistics as reported by the node the caller is connected to
    * 
* - * Protobuf type {@code api.v1.PrepareSubmitOrderRequest} + * Protobuf type {@code api.v1.Statistics} */ - public static final class PrepareSubmitOrderRequest extends + public static final class Statistics extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareSubmitOrderRequest) - PrepareSubmitOrderRequestOrBuilder { + // @@protoc_insertion_point(message_implements:api.v1.Statistics) + StatisticsOrBuilder { private static final long serialVersionUID = 0L; - // Use PrepareSubmitOrderRequest.newBuilder() to construct. - private PrepareSubmitOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Statistics.newBuilder() to construct. + private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrepareSubmitOrderRequest() { + private Statistics() { + genesisTime_ = ""; + currentTime_ = ""; + vegaTime_ = ""; + status_ = 0; + appVersionHash_ = ""; + appVersion_ = ""; + chainVersion_ = ""; + uptime_ = ""; + chainId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new PrepareSubmitOrderRequest(); + return new Statistics(); } @java.lang.Override @@ -7546,7 +7517,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private PrepareSubmitOrderRequest( + private Statistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7564,17 +7535,173 @@ private PrepareSubmitOrderRequest( case 0: done = true; break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } + case 8: { + + blockHeight_ = input.readUInt64(); + break; + } + case 16: { + + backlogLength_ = input.readUInt64(); + break; + } + case 24: { + + totalPeers_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + genesisTime_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + currentTime_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + vegaTime_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 64: { + + txPerBlock_ = input.readUInt64(); + break; + } + case 72: { + + averageTxBytes_ = input.readUInt64(); + break; + } + case 80: { + + averageOrdersPerBlock_ = input.readUInt64(); + break; + } + case 88: { + + tradesPerSecond_ = input.readUInt64(); + break; + } + case 96: { + + ordersPerSecond_ = input.readUInt64(); + break; + } + case 104: { + + totalMarkets_ = input.readUInt64(); + break; + } + case 128: { + + totalAmendOrder_ = input.readUInt64(); + break; + } + case 136: { + + totalCancelOrder_ = input.readUInt64(); + break; + } + case 144: { + + totalCreateOrder_ = input.readUInt64(); + break; + } + case 152: { + + totalOrders_ = input.readUInt64(); + break; + } + case 160: { + + totalTrades_ = input.readUInt64(); + break; + } + case 168: { + + orderSubscriptions_ = input.readUInt32(); + break; + } + case 176: { + + tradeSubscriptions_ = input.readUInt32(); + break; + } + case 184: { + + candleSubscriptions_ = input.readUInt32(); + break; + } + case 192: { + + marketDepthSubscriptions_ = input.readUInt32(); + break; + } + case 200: { + + positionsSubscriptions_ = input.readUInt32(); + break; + } + case 208: { + + accountSubscriptions_ = input.readUInt32(); + break; + } + case 216: { + + marketDataSubscriptions_ = input.readUInt32(); + break; + } + case 226: { + java.lang.String s = input.readStringRequireUtf8(); + appVersionHash_ = s; + break; + } + case 234: { + java.lang.String s = input.readStringRequireUtf8(); + + appVersion_ = s; + break; + } + case 242: { + java.lang.String s = input.readStringRequireUtf8(); + + chainVersion_ = s; + break; + } + case 248: { + + blockDuration_ = input.readUInt64(); + break; + } + case 258: { + java.lang.String s = input.readStringRequireUtf8(); + + uptime_ = s; + break; + } + case 266: { + java.lang.String s = input.readStringRequireUtf8(); + + chainId_ = s; + break; + } + case 272: { + + marketDepthUpdatesSubscriptions_ = input.readUInt32(); break; } default: { @@ -7598,100930 +7725,757 @@ private PrepareSubmitOrderRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderRequest_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Statistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderRequest_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.Builder.class); + io.vegaprotocol.vega.api.Trading.Statistics.class, io.vegaprotocol.vega.api.Trading.Statistics.Builder.class); } - public static final int SUBMISSION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission submission_; + public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1; + private long blockHeight_; /** *
-     * An order submission
+     * Current block height as reported by the Vega blockchain
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. + * uint64 block_height = 1 [json_name = "blockHeight"]; + * @return The blockHeight. */ @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; + public long getBlockHeight() { + return blockHeight_; } + + public static final int BACKLOG_LENGTH_FIELD_NUMBER = 2; + private long backlogLength_; /** *
-     * An order submission
+     * Current backlog length (number of transactions) that are waiting to be included in a block
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return The submission. + * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * @return The backlogLength. */ @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.getDefaultInstance() : submission_; + public long getBacklogLength() { + return backlogLength_; } + + public static final int TOTAL_PEERS_FIELD_NUMBER = 3; + private long totalPeers_; /** *
-     * An order submission
+     * Total number of connected peers to this node
      * 
* - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; + * uint64 total_peers = 3 [json_name = "totalPeers"]; + * @return The totalPeers. */ @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); + public long getTotalPeers() { + return totalPeers_; } - private byte memoizedIsInitialized = -1; + public static final int GENESIS_TIME_FIELD_NUMBER = 4; + private volatile java.lang.Object genesisTime_; + /** + *
+     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The genesisTime. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public java.lang.String getGenesisTime() { + java.lang.Object ref = genesisTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + genesisTime_ = s; + return s; + } } - + /** + *
+     * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The bytes for genesisTime. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (submission_ != null) { - output.writeMessage(1, getSubmission()); + public com.google.protobuf.ByteString + getGenesisTimeBytes() { + java.lang.Object ref = genesisTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + genesisTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - unknownFields.writeTo(output); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest other = (io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest) obj; - - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to submit a new order
-     * 
- * - * Protobuf type {@code api.v1.PrepareSubmitOrderRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareSubmitOrderRequest) - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareSubmitOrderRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest result = new io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest(this); - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.getDefaultInstance()) return this; - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder> submissionBuilder_; - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.getDefaultInstance() : submission_; - } - } - /** - *
-       * An order submission
-       * 
- * - * .vega.commands.v1.OrderSubmission submission = 1 [json_name = "submission"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareSubmitOrderRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareSubmitOrderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareSubmitOrderRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareCancelOrderRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareCancelOrderRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return Whether the cancellation field is set. - */ - boolean hasCancellation(); - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return The cancellation. - */ - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation getCancellation(); - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder getCancellationOrBuilder(); - } - /** - *
-   * Request to cancel an existing order
-   * 
- * - * Protobuf type {@code api.v1.PrepareCancelOrderRequest} - */ - public static final class PrepareCancelOrderRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareCancelOrderRequest) - PrepareCancelOrderRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareCancelOrderRequest.newBuilder() to construct. - private PrepareCancelOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareCancelOrderRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareCancelOrderRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareCancelOrderRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder subBuilder = null; - if (cancellation_ != null) { - subBuilder = cancellation_.toBuilder(); - } - cancellation_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cancellation_); - cancellation_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.Builder.class); - } - - public static final int CANCELLATION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation cancellation_; - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return Whether the cancellation field is set. - */ - @java.lang.Override - public boolean hasCancellation() { - return cancellation_ != null; - } - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return The cancellation. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation getCancellation() { - return cancellation_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.getDefaultInstance() : cancellation_; - } - /** - *
-     * An order cancellation
-     * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder getCancellationOrBuilder() { - return getCancellation(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (cancellation_ != null) { - output.writeMessage(1, getCancellation()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cancellation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCancellation()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest other = (io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest) obj; - - if (hasCancellation() != other.hasCancellation()) return false; - if (hasCancellation()) { - if (!getCancellation() - .equals(other.getCancellation())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCancellation()) { - hash = (37 * hash) + CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + getCancellation().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to cancel an existing order
-     * 
- * - * Protobuf type {@code api.v1.PrepareCancelOrderRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareCancelOrderRequest) - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (cancellationBuilder_ == null) { - cancellation_ = null; - } else { - cancellation_ = null; - cancellationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareCancelOrderRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest result = new io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest(this); - if (cancellationBuilder_ == null) { - result.cancellation_ = cancellation_; - } else { - result.cancellation_ = cancellationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.getDefaultInstance()) return this; - if (other.hasCancellation()) { - mergeCancellation(other.getCancellation()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation cancellation_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder> cancellationBuilder_; - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return Whether the cancellation field is set. - */ - public boolean hasCancellation() { - return cancellationBuilder_ != null || cancellation_ != null; - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - * @return The cancellation. - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation getCancellation() { - if (cancellationBuilder_ == null) { - return cancellation_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.getDefaultInstance() : cancellation_; - } else { - return cancellationBuilder_.getMessage(); - } - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public Builder setCancellation(io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation value) { - if (cancellationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cancellation_ = value; - onChanged(); - } else { - cancellationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public Builder setCancellation( - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder builderForValue) { - if (cancellationBuilder_ == null) { - cancellation_ = builderForValue.build(); - onChanged(); - } else { - cancellationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public Builder mergeCancellation(io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation value) { - if (cancellationBuilder_ == null) { - if (cancellation_ != null) { - cancellation_ = - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.newBuilder(cancellation_).mergeFrom(value).buildPartial(); - } else { - cancellation_ = value; - } - onChanged(); - } else { - cancellationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public Builder clearCancellation() { - if (cancellationBuilder_ == null) { - cancellation_ = null; - onChanged(); - } else { - cancellation_ = null; - cancellationBuilder_ = null; - } - - return this; - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder getCancellationBuilder() { - - onChanged(); - return getCancellationFieldBuilder().getBuilder(); - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder getCancellationOrBuilder() { - if (cancellationBuilder_ != null) { - return cancellationBuilder_.getMessageOrBuilder(); - } else { - return cancellation_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.getDefaultInstance() : cancellation_; - } - } - /** - *
-       * An order cancellation
-       * 
- * - * .vega.commands.v1.OrderCancellation cancellation = 1 [json_name = "cancellation"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder> - getCancellationFieldBuilder() { - if (cancellationBuilder_ == null) { - cancellationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellation.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderCancellationOrBuilder>( - getCancellation(), - getParentForChildren(), - isClean()); - cancellation_ = null; - } - return cancellationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareCancelOrderRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareCancelOrderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareCancelOrderRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareAmendOrderRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareAmendOrderRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return Whether the amendment field is set. - */ - boolean hasAmendment(); - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return The amendment. - */ - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment getAmendment(); - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder getAmendmentOrBuilder(); - } - /** - *
-   * Request to amend an existing order
-   * 
- * - * Protobuf type {@code api.v1.PrepareAmendOrderRequest} - */ - public static final class PrepareAmendOrderRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareAmendOrderRequest) - PrepareAmendOrderRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareAmendOrderRequest.newBuilder() to construct. - private PrepareAmendOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareAmendOrderRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareAmendOrderRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareAmendOrderRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder subBuilder = null; - if (amendment_ != null) { - subBuilder = amendment_.toBuilder(); - } - amendment_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(amendment_); - amendment_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.Builder.class); - } - - public static final int AMENDMENT_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment amendment_; - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return Whether the amendment field is set. - */ - @java.lang.Override - public boolean hasAmendment() { - return amendment_ != null; - } - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return The amendment. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment getAmendment() { - return amendment_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.getDefaultInstance() : amendment_; - } - /** - *
-     * An order amendment
-     * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder getAmendmentOrBuilder() { - return getAmendment(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amendment_ != null) { - output.writeMessage(1, getAmendment()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amendment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAmendment()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest other = (io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest) obj; - - if (hasAmendment() != other.hasAmendment()) return false; - if (hasAmendment()) { - if (!getAmendment() - .equals(other.getAmendment())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAmendment()) { - hash = (37 * hash) + AMENDMENT_FIELD_NUMBER; - hash = (53 * hash) + getAmendment().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to amend an existing order
-     * 
- * - * Protobuf type {@code api.v1.PrepareAmendOrderRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareAmendOrderRequest) - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.class, io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (amendmentBuilder_ == null) { - amendment_ = null; - } else { - amendment_ = null; - amendmentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareAmendOrderRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest result = new io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest(this); - if (amendmentBuilder_ == null) { - result.amendment_ = amendment_; - } else { - result.amendment_ = amendmentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.getDefaultInstance()) return this; - if (other.hasAmendment()) { - mergeAmendment(other.getAmendment()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment amendment_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder> amendmentBuilder_; - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return Whether the amendment field is set. - */ - public boolean hasAmendment() { - return amendmentBuilder_ != null || amendment_ != null; - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - * @return The amendment. - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment getAmendment() { - if (amendmentBuilder_ == null) { - return amendment_ == null ? io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.getDefaultInstance() : amendment_; - } else { - return amendmentBuilder_.getMessage(); - } - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public Builder setAmendment(io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment value) { - if (amendmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - amendment_ = value; - onChanged(); - } else { - amendmentBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public Builder setAmendment( - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder builderForValue) { - if (amendmentBuilder_ == null) { - amendment_ = builderForValue.build(); - onChanged(); - } else { - amendmentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public Builder mergeAmendment(io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment value) { - if (amendmentBuilder_ == null) { - if (amendment_ != null) { - amendment_ = - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.newBuilder(amendment_).mergeFrom(value).buildPartial(); - } else { - amendment_ = value; - } - onChanged(); - } else { - amendmentBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public Builder clearAmendment() { - if (amendmentBuilder_ == null) { - amendment_ = null; - onChanged(); - } else { - amendment_ = null; - amendmentBuilder_ = null; - } - - return this; - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder getAmendmentBuilder() { - - onChanged(); - return getAmendmentFieldBuilder().getBuilder(); - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder getAmendmentOrBuilder() { - if (amendmentBuilder_ != null) { - return amendmentBuilder_.getMessageOrBuilder(); - } else { - return amendment_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.getDefaultInstance() : amendment_; - } - } - /** - *
-       * An order amendment
-       * 
- * - * .vega.commands.v1.OrderAmendment amendment = 1 [json_name = "amendment"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder> - getAmendmentFieldBuilder() { - if (amendmentBuilder_ == null) { - amendmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendment.Builder, io.vegaprotocol.vega.commands.v1.Commands.OrderAmendmentOrBuilder>( - getAmendment(), - getParentForChildren(), - isClean()); - amendment_ = null; - } - return amendmentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareAmendOrderRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareAmendOrderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareAmendOrderRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AssetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AssetsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for a list of all assets enabled on Vega
-   * 
- * - * Protobuf type {@code api.v1.AssetsRequest} - */ - public static final class AssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AssetsRequest) - AssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsRequest.newBuilder() to construct. - private AssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetsRequest.class, io.vegaprotocol.vega.api.Trading.AssetsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AssetsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AssetsRequest other = (io.vegaprotocol.vega.api.Trading.AssetsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AssetsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of all assets enabled on Vega
-     * 
- * - * Protobuf type {@code api.v1.AssetsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AssetsRequest) - io.vegaprotocol.vega.api.Trading.AssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetsRequest.class, io.vegaprotocol.vega.api.Trading.AssetsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AssetsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AssetsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsRequest build() { - io.vegaprotocol.vega.api.Trading.AssetsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.AssetsRequest result = new io.vegaprotocol.vega.api.Trading.AssetsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AssetsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AssetsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AssetsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.AssetsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AssetsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AssetsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AssetsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.AssetsRequest) - private static final io.vegaprotocol.vega.api.Trading.AssetsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AssetsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.AssetsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AssetsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AssetsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - java.util.List - getAssetsList(); - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - io.vegaprotocol.vega.Assets.Asset getAssets(int index); - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - int getAssetsCount(); - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - java.util.List - getAssetsOrBuilderList(); - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( - int index); - } - /** - *
-   * Response for a list of all assets enabled on Vega
-   * 
- * - * Protobuf type {@code api.v1.AssetsResponse} - */ - public static final class AssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AssetsResponse) - AssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsResponse.newBuilder() to construct. - private AssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsResponse() { - assets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage(io.vegaprotocol.vega.Assets.Asset.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetsResponse.class, io.vegaprotocol.vega.api.Trading.AssetsResponse.Builder.class); - } - - public static final int ASSETS_FIELD_NUMBER = 1; - private java.util.List assets_; - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - @java.lang.Override - public java.util.List getAssetsList() { - return assets_; - } - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - @java.lang.Override - public java.util.List - getAssetsOrBuilderList() { - return assets_; - } - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - @java.lang.Override - public int getAssetsCount() { - return assets_.size(); - } - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Assets.Asset getAssets(int index) { - return assets_.get(index); - } - /** - *
-     * A list of 0 or more assets
-     * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( - int index) { - return assets_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < assets_.size(); i++) { - output.writeMessage(1, assets_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, assets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AssetsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AssetsResponse other = (io.vegaprotocol.vega.api.Trading.AssetsResponse) obj; - - if (!getAssetsList() - .equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAssetsCount() > 0) { - hash = (37 * hash) + ASSETS_FIELD_NUMBER; - hash = (53 * hash) + getAssetsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AssetsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of all assets enabled on Vega
-     * 
- * - * Protobuf type {@code api.v1.AssetsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AssetsResponse) - io.vegaprotocol.vega.api.Trading.AssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetsResponse.class, io.vegaprotocol.vega.api.Trading.AssetsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AssetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - assetsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AssetsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsResponse build() { - io.vegaprotocol.vega.api.Trading.AssetsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.AssetsResponse result = new io.vegaprotocol.vega.api.Trading.AssetsResponse(this); - int from_bitField0_ = bitField0_; - if (assetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.assets_ = assets_; - } else { - result.assets_ = assetsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AssetsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AssetsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AssetsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.AssetsResponse.getDefaultInstance()) return this; - if (assetsBuilder_ == null) { - if (!other.assets_.isEmpty()) { - if (assets_.isEmpty()) { - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAssetsIsMutable(); - assets_.addAll(other.assets_); - } - onChanged(); - } - } else { - if (!other.assets_.isEmpty()) { - if (assetsBuilder_.isEmpty()) { - assetsBuilder_.dispose(); - assetsBuilder_ = null; - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; - } else { - assetsBuilder_.addAllMessages(other.assets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AssetsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AssetsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List assets_ = - java.util.Collections.emptyList(); - private void ensureAssetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(assets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> assetsBuilder_; - - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public java.util.List getAssetsList() { - if (assetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(assets_); - } else { - return assetsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public int getAssetsCount() { - if (assetsBuilder_ == null) { - return assets_.size(); - } else { - return assetsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public io.vegaprotocol.vega.Assets.Asset getAssets(int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); - } else { - return assetsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder setAssets( - int index, io.vegaprotocol.vega.Assets.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.set(index, value); - onChanged(); - } else { - assetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder setAssets( - int index, io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.set(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder addAssets(io.vegaprotocol.vega.Assets.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(value); - onChanged(); - } else { - assetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder addAssets( - int index, io.vegaprotocol.vega.Assets.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(index, value); - onChanged(); - } else { - assetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder addAssets( - io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder addAssets( - int index, io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder addAllAssets( - java.lang.Iterable values) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); - onChanged(); - } else { - assetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder clearAssets() { - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - assetsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public Builder removeAssets(int index) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.remove(index); - onChanged(); - } else { - assetsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public io.vegaprotocol.vega.Assets.Asset.Builder getAssetsBuilder( - int index) { - return getAssetsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( - int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); } else { - return assetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public java.util.List - getAssetsOrBuilderList() { - if (assetsBuilder_ != null) { - return assetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(assets_); - } - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public io.vegaprotocol.vega.Assets.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Assets.Asset.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public io.vegaprotocol.vega.Assets.Asset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Assets.Asset.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more assets
-       * 
- * - * repeated .vega.Asset assets = 1 [json_name = "assets"]; - */ - public java.util.List - getAssetsBuilderList() { - return getAssetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> - getAssetsFieldBuilder() { - if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - assets_ = null; - } - return assetsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AssetsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.AssetsResponse) - private static final io.vegaprotocol.vega.api.Trading.AssetsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AssetsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.AssetsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AssetByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AssetByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Asset identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Asset identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * Request for an asset given an asset identifier
-   * 
- * - * Protobuf type {@code api.v1.AssetByIDRequest} - */ - public static final class AssetByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AssetByIDRequest) - AssetByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetByIDRequest.newBuilder() to construct. - private AssetByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetByIDRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetByIDRequest.class, io.vegaprotocol.vega.api.Trading.AssetByIDRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Asset identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Asset identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AssetByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AssetByIDRequest other = (io.vegaprotocol.vega.api.Trading.AssetByIDRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AssetByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for an asset given an asset identifier
-     * 
- * - * Protobuf type {@code api.v1.AssetByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AssetByIDRequest) - io.vegaprotocol.vega.api.Trading.AssetByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetByIDRequest.class, io.vegaprotocol.vega.api.Trading.AssetByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AssetByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AssetByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDRequest build() { - io.vegaprotocol.vega.api.Trading.AssetByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.AssetByIDRequest result = new io.vegaprotocol.vega.api.Trading.AssetByIDRequest(this); - result.id_ = id_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AssetByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AssetByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AssetByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.AssetByIDRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AssetByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AssetByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * Asset identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Asset identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Asset identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AssetByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.AssetByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.AssetByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AssetByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.AssetByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AssetByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AssetByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return Whether the asset field is set. - */ - boolean hasAsset(); - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return The asset. - */ - io.vegaprotocol.vega.Assets.Asset getAsset(); - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetOrBuilder(); - } - /** - *
-   * Response for an asset given an asset identifier
-   * 
- * - * Protobuf type {@code api.v1.AssetByIDResponse} - */ - public static final class AssetByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AssetByIDResponse) - AssetByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetByIDResponse.newBuilder() to construct. - private AssetByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Assets.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = input.readMessage(io.vegaprotocol.vega.Assets.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetByIDResponse.class, io.vegaprotocol.vega.api.Trading.AssetByIDResponse.Builder.class); - } - - public static final int ASSET_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Assets.Asset asset_; - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return Whether the asset field is set. - */ - @java.lang.Override - public boolean hasAsset() { - return asset_ != null; - } - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public io.vegaprotocol.vega.Assets.Asset getAsset() { - return asset_ == null ? io.vegaprotocol.vega.Assets.Asset.getDefaultInstance() : asset_; - } - /** - *
-     * An asset record, if found
-     * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetOrBuilder() { - return getAsset(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (asset_ != null) { - output.writeMessage(1, getAsset()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAsset()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AssetByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AssetByIDResponse other = (io.vegaprotocol.vega.api.Trading.AssetByIDResponse) obj; - - if (hasAsset() != other.hasAsset()) return false; - if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAsset()) { - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AssetByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for an asset given an asset identifier
-     * 
- * - * Protobuf type {@code api.v1.AssetByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AssetByIDResponse) - io.vegaprotocol.vega.api.Trading.AssetByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AssetByIDResponse.class, io.vegaprotocol.vega.api.Trading.AssetByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AssetByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (assetBuilder_ == null) { - asset_ = null; - } else { - asset_ = null; - assetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AssetByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AssetByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDResponse build() { - io.vegaprotocol.vega.api.Trading.AssetByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.AssetByIDResponse result = new io.vegaprotocol.vega.api.Trading.AssetByIDResponse(this); - if (assetBuilder_ == null) { - result.asset_ = asset_; - } else { - result.asset_ = assetBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AssetByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AssetByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AssetByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.AssetByIDResponse.getDefaultInstance()) return this; - if (other.hasAsset()) { - mergeAsset(other.getAsset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AssetByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AssetByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Assets.Asset asset_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> assetBuilder_; - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return Whether the asset field is set. - */ - public boolean hasAsset() { - return assetBuilder_ != null || asset_ != null; - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - * @return The asset. - */ - public io.vegaprotocol.vega.Assets.Asset getAsset() { - if (assetBuilder_ == null) { - return asset_ == null ? io.vegaprotocol.vega.Assets.Asset.getDefaultInstance() : asset_; - } else { - return assetBuilder_.getMessage(); - } - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public Builder setAsset(io.vegaprotocol.vega.Assets.Asset value) { - if (assetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - asset_ = value; - onChanged(); - } else { - assetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public Builder setAsset( - io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { - if (assetBuilder_ == null) { - asset_ = builderForValue.build(); - onChanged(); - } else { - assetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public Builder mergeAsset(io.vegaprotocol.vega.Assets.Asset value) { - if (assetBuilder_ == null) { - if (asset_ != null) { - asset_ = - io.vegaprotocol.vega.Assets.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); - } else { - asset_ = value; - } - onChanged(); - } else { - assetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public Builder clearAsset() { - if (assetBuilder_ == null) { - asset_ = null; - onChanged(); - } else { - asset_ = null; - assetBuilder_ = null; - } - - return this; - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public io.vegaprotocol.vega.Assets.Asset.Builder getAssetBuilder() { - - onChanged(); - return getAssetFieldBuilder().getBuilder(); - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetOrBuilder() { - if (assetBuilder_ != null) { - return assetBuilder_.getMessageOrBuilder(); - } else { - return asset_ == null ? - io.vegaprotocol.vega.Assets.Asset.getDefaultInstance() : asset_; - } - } - /** - *
-       * An asset record, if found
-       * 
- * - * .vega.Asset asset = 1 [json_name = "asset"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> - getAssetFieldBuilder() { - if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); - asset_ = null; - } - return assetBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AssetByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.AssetByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.AssetByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AssetByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.AssetByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AssetByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNodeSignaturesAggregateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNodeSignaturesAggregateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Resource identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * Request to specify the identifier of the resource we want to retrieve aggregated signatures for
-   * 
- * - * Protobuf type {@code api.v1.GetNodeSignaturesAggregateRequest} - */ - public static final class GetNodeSignaturesAggregateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNodeSignaturesAggregateRequest) - GetNodeSignaturesAggregateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNodeSignaturesAggregateRequest.newBuilder() to construct. - private GetNodeSignaturesAggregateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNodeSignaturesAggregateRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNodeSignaturesAggregateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeSignaturesAggregateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.class, io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Resource identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Resource identifier, required field
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest other = (io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to specify the identifier of the resource we want to retrieve aggregated signatures for
-     * 
- * - * Protobuf type {@code api.v1.GetNodeSignaturesAggregateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNodeSignaturesAggregateRequest) - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.class, io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest build() { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest result = new io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest(this); - result.id_ = id_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * Resource identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Resource identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Resource identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * Resource identifier, required field
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNodeSignaturesAggregateRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateRequest) - private static final io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeSignaturesAggregateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeSignaturesAggregateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNodeSignaturesAggregateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNodeSignaturesAggregateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - java.util.List - getSignaturesList(); - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature getSignatures(int index); - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - int getSignaturesCount(); - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - java.util.List - getSignaturesOrBuilderList(); - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder getSignaturesOrBuilder( - int index); - } - /** - *
-   * Response to specify the identifier of the resource we want to retrieve aggregated signatures for
-   * 
- * - * Protobuf type {@code api.v1.GetNodeSignaturesAggregateResponse} - */ - public static final class GetNodeSignaturesAggregateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNodeSignaturesAggregateResponse) - GetNodeSignaturesAggregateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNodeSignaturesAggregateResponse.newBuilder() to construct. - private GetNodeSignaturesAggregateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNodeSignaturesAggregateResponse() { - signatures_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNodeSignaturesAggregateResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeSignaturesAggregateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signatures_.add( - input.readMessage(io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.class, io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.Builder.class); - } - - public static final int SIGNATURES_FIELD_NUMBER = 1; - private java.util.List signatures_; - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - @java.lang.Override - public java.util.List getSignaturesList() { - return signatures_; - } - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - @java.lang.Override - public java.util.List - getSignaturesOrBuilderList() { - return signatures_; - } - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - @java.lang.Override - public int getSignaturesCount() { - return signatures_.size(); - } - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature getSignatures(int index) { - return signatures_.get(index); - } - /** - *
-     * A list of 0 or more signatures
-     * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder getSignaturesOrBuilder( - int index) { - return signatures_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < signatures_.size(); i++) { - output.writeMessage(1, signatures_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < signatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signatures_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse other = (io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse) obj; - - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to specify the identifier of the resource we want to retrieve aggregated signatures for
-     * 
- * - * Protobuf type {@code api.v1.GetNodeSignaturesAggregateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNodeSignaturesAggregateResponse) - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.class, io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignaturesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - signaturesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse build() { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse result = new io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse(this); - int from_bitField0_ = bitField0_; - if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signatures_ = signatures_; - } else { - result.signatures_ = signaturesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.getDefaultInstance()) return this; - if (signaturesBuilder_ == null) { - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - } else { - if (!other.signatures_.isEmpty()) { - if (signaturesBuilder_.isEmpty()) { - signaturesBuilder_.dispose(); - signaturesBuilder_ = null; - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00000001); - signaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignaturesFieldBuilder() : null; - } else { - signaturesBuilder_.addAllMessages(other.signatures_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List signatures_ = - java.util.Collections.emptyList(); - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signatures_ = new java.util.ArrayList(signatures_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder> signaturesBuilder_; - - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public java.util.List getSignaturesList() { - if (signaturesBuilder_ == null) { - return java.util.Collections.unmodifiableList(signatures_); - } else { - return signaturesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public int getSignaturesCount() { - if (signaturesBuilder_ == null) { - return signatures_.size(); - } else { - return signaturesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature getSignatures(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder setSignatures( - int index, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder setSignatures( - int index, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.set(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder addSignatures(io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - } else { - signaturesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder addSignatures( - int index, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(index, value); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder addSignatures( - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder addSignatures( - int index, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder addAllSignatures( - java.lang.Iterable values) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signatures_); - onChanged(); - } else { - signaturesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder clearSignatures() { - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - signaturesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public Builder removeSignatures(int index) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.remove(index); - onChanged(); - } else { - signaturesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder getSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder getSignaturesOrBuilder( - int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); } else { - return signaturesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public java.util.List - getSignaturesOrBuilderList() { - if (signaturesBuilder_ != null) { - return signaturesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signatures_); - } - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder addSignaturesBuilder() { - return getSignaturesFieldBuilder().addBuilder( - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder addSignaturesBuilder( - int index) { - return getSignaturesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more signatures
-       * 
- * - * repeated .vega.commands.v1.NodeSignature signatures = 1 [json_name = "signatures"]; - */ - public java.util.List - getSignaturesBuilderList() { - return getSignaturesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder> - getSignaturesFieldBuilder() { - if (signaturesBuilder_ == null) { - signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignature.Builder, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeSignatureOrBuilder>( - signatures_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - signatures_ = null; - } - return signaturesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNodeSignaturesAggregateResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateResponse) - private static final io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeSignaturesAggregateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeSignaturesAggregateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OptionalProposalStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OptionalProposalState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Proposal state value
-     * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The enum numeric value on the wire for value. - */ - int getValueValue(); - /** - *
-     * Proposal state value
-     * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The value. - */ - io.vegaprotocol.vega.Governance.Proposal.State getValue(); - } - /** - *
-   * Optional proposal state
-   * 
- * - * Protobuf type {@code api.v1.OptionalProposalState} - */ - public static final class OptionalProposalState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OptionalProposalState) - OptionalProposalStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use OptionalProposalState.newBuilder() to construct. - private OptionalProposalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OptionalProposalState() { - value_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OptionalProposalState(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OptionalProposalState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - value_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OptionalProposalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OptionalProposalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.class, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - *
-     * Proposal state value
-     * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The enum numeric value on the wire for value. - */ - @java.lang.Override public int getValueValue() { - return value_; - } - /** - *
-     * Proposal state value
-     * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The value. - */ - @java.lang.Override public io.vegaprotocol.vega.Governance.Proposal.State getValue() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Governance.Proposal.State result = io.vegaprotocol.vega.Governance.Proposal.State.valueOf(value_); - return result == null ? io.vegaprotocol.vega.Governance.Proposal.State.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != io.vegaprotocol.vega.Governance.Proposal.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != io.vegaprotocol.vega.Governance.Proposal.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OptionalProposalState)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OptionalProposalState other = (io.vegaprotocol.vega.api.Trading.OptionalProposalState) obj; - - if (value_ != other.value_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + value_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OptionalProposalState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Optional proposal state
-     * 
- * - * Protobuf type {@code api.v1.OptionalProposalState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OptionalProposalState) - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OptionalProposalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OptionalProposalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.class, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OptionalProposalState_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState build() { - io.vegaprotocol.vega.api.Trading.OptionalProposalState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState buildPartial() { - io.vegaprotocol.vega.api.Trading.OptionalProposalState result = new io.vegaprotocol.vega.api.Trading.OptionalProposalState(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OptionalProposalState) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OptionalProposalState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OptionalProposalState other) { - if (other == io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance()) return this; - if (other.value_ != 0) { - setValueValue(other.getValueValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OptionalProposalState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OptionalProposalState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ = 0; - /** - *
-       * Proposal state value
-       * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The enum numeric value on the wire for value. - */ - @java.lang.Override public int getValueValue() { - return value_; - } - /** - *
-       * Proposal state value
-       * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @param value The enum numeric value on the wire for value to set. - * @return This builder for chaining. - */ - public Builder setValueValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - *
-       * Proposal state value
-       * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return The value. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.Proposal.State getValue() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Governance.Proposal.State result = io.vegaprotocol.vega.Governance.Proposal.State.valueOf(value_); - return result == null ? io.vegaprotocol.vega.Governance.Proposal.State.UNRECOGNIZED : result; - } - /** - *
-       * Proposal state value
-       * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(io.vegaprotocol.vega.Governance.Proposal.State value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Proposal state value
-       * 
- * - * .vega.Proposal.State value = 1 [json_name = "value"]; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OptionalProposalState) - } - - // @@protoc_insertion_point(class_scope:api.v1.OptionalProposalState) - private static final io.vegaprotocol.vega.api.Trading.OptionalProposalState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OptionalProposalState(); - } - - public static io.vegaprotocol.vega.api.Trading.OptionalProposalState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptionalProposalState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OptionalProposalState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of proposals
-   * 
- * - * Protobuf type {@code api.v1.GetProposalsRequest} - */ - public static final class GetProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalsRequest) - GetProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalsRequest.newBuilder() to construct. - private GetProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalsRequest.Builder.class); - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (selectInState_ != null) { - output.writeMessage(1, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalsRequest other = (io.vegaprotocol.vega.api.Trading.GetProposalsRequest) obj; - - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of proposals
-     * 
- * - * Protobuf type {@code api.v1.GetProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalsRequest) - io.vegaprotocol.vega.api.Trading.GetProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.GetProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalsRequest result = new io.vegaprotocol.vega.api.Trading.GetProposalsRequest(this); - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalsRequest.getDefaultInstance()) return this; - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.GetProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of proposals
-   * 
- * - * Protobuf type {@code api.v1.GetProposalsResponse} - */ - public static final class GetProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalsResponse) - GetProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalsResponse.newBuilder() to construct. - private GetProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalsResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalsResponse other = (io.vegaprotocol.vega.api.Trading.GetProposalsResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of proposals
-     * 
- * - * Protobuf type {@code api.v1.GetProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalsResponse) - io.vegaprotocol.vega.api.Trading.GetProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.GetProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalsResponse result = new io.vegaprotocol.vega.api.Trading.GetProposalsResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalsResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.GetProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalsByPartyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalsByPartyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of proposals for a party
-   * 
- * - * Protobuf type {@code api.v1.GetProposalsByPartyRequest} - */ - public static final class GetProposalsByPartyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalsByPartyRequest) - GetProposalsByPartyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalsByPartyRequest.newBuilder() to construct. - private GetProposalsByPartyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalsByPartyRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalsByPartyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalsByPartyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (selectInState_ != null) { - output.writeMessage(2, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest other = (io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of proposals for a party
-     * 
- * - * Protobuf type {@code api.v1.GetProposalsByPartyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalsByPartyRequest) - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest build() { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest result = new io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest(this); - result.partyId_ = partyId_; - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalsByPartyRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyRequest) - private static final io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalsByPartyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalsByPartyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalsByPartyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalsByPartyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of proposals for a party
-   * 
- * - * Protobuf type {@code api.v1.GetProposalsByPartyResponse} - */ - public static final class GetProposalsByPartyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalsByPartyResponse) - GetProposalsByPartyResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalsByPartyResponse.newBuilder() to construct. - private GetProposalsByPartyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalsByPartyResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalsByPartyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalsByPartyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse other = (io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of proposals for a party
-     * 
- * - * Protobuf type {@code api.v1.GetProposalsByPartyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalsByPartyResponse) - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalsByPartyResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse build() { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse result = new io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalsByPartyResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyResponse) - private static final io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalsByPartyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalsByPartyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetVotesByPartyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetVotesByPartyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request for a list of votes for a party
-   * 
- * - * Protobuf type {@code api.v1.GetVotesByPartyRequest} - */ - public static final class GetVotesByPartyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetVotesByPartyRequest) - GetVotesByPartyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVotesByPartyRequest.newBuilder() to construct. - private GetVotesByPartyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVotesByPartyRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetVotesByPartyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVotesByPartyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.class, io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest other = (io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of votes for a party
-     * 
- * - * Protobuf type {@code api.v1.GetVotesByPartyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetVotesByPartyRequest) - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.class, io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest build() { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest result = new io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetVotesByPartyRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyRequest) - private static final io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVotesByPartyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVotesByPartyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetVotesByPartyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetVotesByPartyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - java.util.List - getVotesList(); - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - io.vegaprotocol.vega.Governance.Vote getVotes(int index); - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - int getVotesCount(); - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - java.util.List - getVotesOrBuilderList(); - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( - int index); - } - /** - *
-   * Response for a list of votes for a party
-   * 
- * - * Protobuf type {@code api.v1.GetVotesByPartyResponse} - */ - public static final class GetVotesByPartyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetVotesByPartyResponse) - GetVotesByPartyResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVotesByPartyResponse.newBuilder() to construct. - private GetVotesByPartyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVotesByPartyResponse() { - votes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetVotesByPartyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVotesByPartyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - votes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - votes_.add( - input.readMessage(io.vegaprotocol.vega.Governance.Vote.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.class, io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.Builder.class); - } - - public static final int VOTES_FIELD_NUMBER = 1; - private java.util.List votes_; - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - @java.lang.Override - public java.util.List getVotesList() { - return votes_; - } - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - @java.lang.Override - public java.util.List - getVotesOrBuilderList() { - return votes_; - } - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - @java.lang.Override - public int getVotesCount() { - return votes_.size(); - } - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.Vote getVotes(int index) { - return votes_.get(index); - } - /** - *
-     * A list of 0 or more votes
-     * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( - int index) { - return votes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < votes_.size(); i++) { - output.writeMessage(1, votes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < votes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, votes_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse other = (io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse) obj; - - if (!getVotesList() - .equals(other.getVotesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVotesCount() > 0) { - hash = (37 * hash) + VOTES_FIELD_NUMBER; - hash = (53 * hash) + getVotesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of votes for a party
-     * 
- * - * Protobuf type {@code api.v1.GetVotesByPartyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetVotesByPartyResponse) - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.class, io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVotesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - votesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVotesByPartyResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse build() { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse result = new io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse(this); - int from_bitField0_ = bitField0_; - if (votesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - votes_ = java.util.Collections.unmodifiableList(votes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.votes_ = votes_; - } else { - result.votes_ = votesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.getDefaultInstance()) return this; - if (votesBuilder_ == null) { - if (!other.votes_.isEmpty()) { - if (votes_.isEmpty()) { - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVotesIsMutable(); - votes_.addAll(other.votes_); - } - onChanged(); - } - } else { - if (!other.votes_.isEmpty()) { - if (votesBuilder_.isEmpty()) { - votesBuilder_.dispose(); - votesBuilder_ = null; - votes_ = other.votes_; - bitField0_ = (bitField0_ & ~0x00000001); - votesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVotesFieldBuilder() : null; - } else { - votesBuilder_.addAllMessages(other.votes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List votes_ = - java.util.Collections.emptyList(); - private void ensureVotesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - votes_ = new java.util.ArrayList(votes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> votesBuilder_; - - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public java.util.List getVotesList() { - if (votesBuilder_ == null) { - return java.util.Collections.unmodifiableList(votes_); - } else { - return votesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public int getVotesCount() { - if (votesBuilder_ == null) { - return votes_.size(); - } else { - return votesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public io.vegaprotocol.vega.Governance.Vote getVotes(int index) { - if (votesBuilder_ == null) { - return votes_.get(index); - } else { - return votesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder setVotes( - int index, io.vegaprotocol.vega.Governance.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.set(index, value); - onChanged(); - } else { - votesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder setVotes( - int index, io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.set(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder addVotes(io.vegaprotocol.vega.Governance.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(value); - onChanged(); - } else { - votesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder addVotes( - int index, io.vegaprotocol.vega.Governance.Vote value) { - if (votesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVotesIsMutable(); - votes_.add(index, value); - onChanged(); - } else { - votesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder addVotes( - io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder addVotes( - int index, io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.add(index, builderForValue.build()); - onChanged(); - } else { - votesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder addAllVotes( - java.lang.Iterable values) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, votes_); - onChanged(); - } else { - votesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder clearVotes() { - if (votesBuilder_ == null) { - votes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - votesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public Builder removeVotes(int index) { - if (votesBuilder_ == null) { - ensureVotesIsMutable(); - votes_.remove(index); - onChanged(); - } else { - votesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public io.vegaprotocol.vega.Governance.Vote.Builder getVotesBuilder( - int index) { - return getVotesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( - int index) { - if (votesBuilder_ == null) { - return votes_.get(index); } else { - return votesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public java.util.List - getVotesOrBuilderList() { - if (votesBuilder_ != null) { - return votesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(votes_); - } - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public io.vegaprotocol.vega.Governance.Vote.Builder addVotesBuilder() { - return getVotesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.Vote.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public io.vegaprotocol.vega.Governance.Vote.Builder addVotesBuilder( - int index) { - return getVotesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.Vote.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more votes
-       * 
- * - * repeated .vega.Vote votes = 1 [json_name = "votes"]; - */ - public java.util.List - getVotesBuilderList() { - return getVotesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> - getVotesFieldBuilder() { - if (votesBuilder_ == null) { - votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder>( - votes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - votes_ = null; - } - return votesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetVotesByPartyResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyResponse) - private static final io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVotesByPartyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVotesByPartyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNewMarketProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNewMarketProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of new market proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNewMarketProposalsRequest} - */ - public static final class GetNewMarketProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNewMarketProposalsRequest) - GetNewMarketProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNewMarketProposalsRequest.newBuilder() to construct. - private GetNewMarketProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNewMarketProposalsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNewMarketProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNewMarketProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.Builder.class); - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (selectInState_ != null) { - output.writeMessage(1, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest other = (io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest) obj; - - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of new market proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNewMarketProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNewMarketProposalsRequest) - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest result = new io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest(this); - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.getDefaultInstance()) return this; - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNewMarketProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNewMarketProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNewMarketProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNewMarketProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNewMarketProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of new market proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNewMarketProposalsResponse} - */ - public static final class GetNewMarketProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNewMarketProposalsResponse) - GetNewMarketProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNewMarketProposalsResponse.newBuilder() to construct. - private GetNewMarketProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNewMarketProposalsResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNewMarketProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNewMarketProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse other = (io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of new market proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNewMarketProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNewMarketProposalsResponse) - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewMarketProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse result = new io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNewMarketProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNewMarketProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNewMarketProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetUpdateMarketProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetUpdateMarketProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of update market proposals
-   * 
- * - * Protobuf type {@code api.v1.GetUpdateMarketProposalsRequest} - */ - public static final class GetUpdateMarketProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetUpdateMarketProposalsRequest) - GetUpdateMarketProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetUpdateMarketProposalsRequest.newBuilder() to construct. - private GetUpdateMarketProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetUpdateMarketProposalsRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetUpdateMarketProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetUpdateMarketProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (selectInState_ != null) { - output.writeMessage(2, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest other = (io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of update market proposals
-     * 
- * - * Protobuf type {@code api.v1.GetUpdateMarketProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetUpdateMarketProposalsRequest) - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest result = new io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest(this); - result.marketId_ = marketId_; - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 2 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetUpdateMarketProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUpdateMarketProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetUpdateMarketProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetUpdateMarketProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetUpdateMarketProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of update market proposals
-   * 
- * - * Protobuf type {@code api.v1.GetUpdateMarketProposalsResponse} - */ - public static final class GetUpdateMarketProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetUpdateMarketProposalsResponse) - GetUpdateMarketProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetUpdateMarketProposalsResponse.newBuilder() to construct. - private GetUpdateMarketProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetUpdateMarketProposalsResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetUpdateMarketProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetUpdateMarketProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse other = (io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of update market proposals
-     * 
- * - * Protobuf type {@code api.v1.GetUpdateMarketProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetUpdateMarketProposalsResponse) - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse result = new io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetUpdateMarketProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUpdateMarketProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetUpdateMarketProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNetworkParametersProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNetworkParametersProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of network parameter proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNetworkParametersProposalsRequest} - */ - public static final class GetNetworkParametersProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNetworkParametersProposalsRequest) - GetNetworkParametersProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNetworkParametersProposalsRequest.newBuilder() to construct. - private GetNetworkParametersProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNetworkParametersProposalsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNetworkParametersProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNetworkParametersProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.Builder.class); - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (selectInState_ != null) { - output.writeMessage(1, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest other = (io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest) obj; - - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of network parameter proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNetworkParametersProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNetworkParametersProposalsRequest) - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest result = new io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest(this); - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.getDefaultInstance()) return this; - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNetworkParametersProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkParametersProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkParametersProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNetworkParametersProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNetworkParametersProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of network parameter proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNetworkParametersProposalsResponse} - */ - public static final class GetNetworkParametersProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNetworkParametersProposalsResponse) - GetNetworkParametersProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNetworkParametersProposalsResponse.newBuilder() to construct. - private GetNetworkParametersProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNetworkParametersProposalsResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNetworkParametersProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNetworkParametersProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse other = (io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of network parameter proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNetworkParametersProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNetworkParametersProposalsResponse) - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse result = new io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNetworkParametersProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkParametersProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkParametersProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNewAssetProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNewAssetProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - boolean hasSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState(); - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder(); - } - /** - *
-   * Request for a list of new asset proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNewAssetProposalsRequest} - */ - public static final class GetNewAssetProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNewAssetProposalsRequest) - GetNewAssetProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNewAssetProposalsRequest.newBuilder() to construct. - private GetNewAssetProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNewAssetProposalsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNewAssetProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNewAssetProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder subBuilder = null; - if (selectInState_ != null) { - subBuilder = selectInState_.toBuilder(); - } - selectInState_ = input.readMessage(io.vegaprotocol.vega.api.Trading.OptionalProposalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectInState_); - selectInState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.Builder.class); - } - - public static final int SELECT_IN_STATE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - @java.lang.Override - public boolean hasSelectInState() { - return selectInState_ != null; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - /** - *
-     * Optional proposal state
-     * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - return getSelectInState(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (selectInState_ != null) { - output.writeMessage(1, getSelectInState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (selectInState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSelectInState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest other = (io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest) obj; - - if (hasSelectInState() != other.hasSelectInState()) return false; - if (hasSelectInState()) { - if (!getSelectInState() - .equals(other.getSelectInState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSelectInState()) { - hash = (37 * hash) + SELECT_IN_STATE_FIELD_NUMBER; - hash = (53 * hash) + getSelectInState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of new asset proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNewAssetProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNewAssetProposalsRequest) - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.class, io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (selectInStateBuilder_ == null) { - selectInState_ = null; - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest result = new io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest(this); - if (selectInStateBuilder_ == null) { - result.selectInState_ = selectInState_; - } else { - result.selectInState_ = selectInStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.getDefaultInstance()) return this; - if (other.hasSelectInState()) { - mergeSelectInState(other.getSelectInState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.api.Trading.OptionalProposalState selectInState_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> selectInStateBuilder_; - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return Whether the selectInState field is set. - */ - public boolean hasSelectInState() { - return selectInStateBuilder_ != null || selectInState_ != null; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - * @return The selectInState. - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState getSelectInState() { - if (selectInStateBuilder_ == null) { - return selectInState_ == null ? io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } else { - return selectInStateBuilder_.getMessage(); - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectInState_ = value; - onChanged(); - } else { - selectInStateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder setSelectInState( - io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder builderForValue) { - if (selectInStateBuilder_ == null) { - selectInState_ = builderForValue.build(); - onChanged(); - } else { - selectInStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder mergeSelectInState(io.vegaprotocol.vega.api.Trading.OptionalProposalState value) { - if (selectInStateBuilder_ == null) { - if (selectInState_ != null) { - selectInState_ = - io.vegaprotocol.vega.api.Trading.OptionalProposalState.newBuilder(selectInState_).mergeFrom(value).buildPartial(); - } else { - selectInState_ = value; - } - onChanged(); - } else { - selectInStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public Builder clearSelectInState() { - if (selectInStateBuilder_ == null) { - selectInState_ = null; - onChanged(); - } else { - selectInState_ = null; - selectInStateBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder getSelectInStateBuilder() { - - onChanged(); - return getSelectInStateFieldBuilder().getBuilder(); - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - public io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder getSelectInStateOrBuilder() { - if (selectInStateBuilder_ != null) { - return selectInStateBuilder_.getMessageOrBuilder(); - } else { - return selectInState_ == null ? - io.vegaprotocol.vega.api.Trading.OptionalProposalState.getDefaultInstance() : selectInState_; - } - } - /** - *
-       * Optional proposal state
-       * 
- * - * .api.v1.OptionalProposalState select_in_state = 1 [json_name = "selectInState"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder> - getSelectInStateFieldBuilder() { - if (selectInStateBuilder_ == null) { - selectInStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.OptionalProposalState, io.vegaprotocol.vega.api.Trading.OptionalProposalState.Builder, io.vegaprotocol.vega.api.Trading.OptionalProposalStateOrBuilder>( - getSelectInState(), - getParentForChildren(), - isClean()); - selectInState_ = null; - } - return selectInStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNewAssetProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNewAssetProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNewAssetProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetNewAssetProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetNewAssetProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(int index); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - int getDataCount(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * Response for a list of new asset proposals
-   * 
- * - * Protobuf type {@code api.v1.GetNewAssetProposalsResponse} - */ - public static final class GetNewAssetProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetNewAssetProposalsResponse) - GetNewAssetProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNewAssetProposalsResponse.newBuilder() to construct. - private GetNewAssetProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNewAssetProposalsResponse() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNewAssetProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNewAssetProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of 0 or more governance data
-     * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse other = (io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse) obj; - - if (!getDataList() - .equals(other.getDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of new asset proposals
-     * 
- * - * Protobuf type {@code api.v1.GetNewAssetProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetNewAssetProposalsResponse) - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.class, io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetNewAssetProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse result = new io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addData( - int index, io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more governance data
-       * 
- * - * repeated .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - data_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetNewAssetProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNewAssetProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNewAssetProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - java.lang.String getProposalId(); - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - com.google.protobuf.ByteString - getProposalIdBytes(); - } - /** - *
-   * Request for a governance proposal given a proposal identifier
-   * 
- * - * Protobuf type {@code api.v1.GetProposalByIDRequest} - */ - public static final class GetProposalByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalByIDRequest) - GetProposalByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalByIDRequest.newBuilder() to construct. - private GetProposalByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalByIDRequest() { - proposalId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - proposalId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object proposalId_; - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - @java.lang.Override - public java.lang.String getProposalId() { - java.lang.Object ref = proposalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposalId_ = s; - return s; - } - } - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProposalIdBytes() { - java.lang.Object ref = proposalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProposalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, proposalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProposalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, proposalId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest other = (io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest) obj; - - if (!getProposalId() - .equals(other.getProposalId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getProposalId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a governance proposal given a proposal identifier
-     * 
- * - * Protobuf type {@code api.v1.GetProposalByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalByIDRequest) - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest build() { - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest result = new io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest(this); - result.proposalId_ = proposalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.getDefaultInstance()) return this; - if (!other.getProposalId().isEmpty()) { - proposalId_ = other.proposalId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object proposalId_ = ""; - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - public java.lang.String getProposalId() { - java.lang.Object ref = proposalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - public com.google.protobuf.ByteString - getProposalIdBytes() { - java.lang.Object ref = proposalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @param value The proposalId to set. - * @return This builder for chaining. - */ - public Builder setProposalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearProposalId() { - - proposalId_ = getDefaultInstance().getProposalId(); - onChanged(); - return this; - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @param value The bytes for proposalId to set. - * @return This builder for chaining. - */ - public Builder setProposalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - proposalId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(); - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder(); - } - /** - *
-   * Response for a governance proposal given a proposal identifier
-   * 
- * - * Protobuf type {@code api.v1.GetProposalByIDResponse} - */ - public static final class GetProposalByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalByIDResponse) - GetProposalByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalByIDResponse.newBuilder() to construct. - private GetProposalByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.GovernanceData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.GovernanceData data_; - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse other = (io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a governance proposal given a proposal identifier
-     * 
- * - * Protobuf type {@code api.v1.GetProposalByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalByIDResponse) - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse build() { - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse result = new io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse(this); - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.GovernanceData data_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - if (dataBuilder_ == null) { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder mergeData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - io.vegaprotocol.vega.Governance.GovernanceData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalByReferenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalByReferenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Proposal reference. Required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - java.lang.String getReference(); - /** - *
-     * Proposal reference. Required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - com.google.protobuf.ByteString - getReferenceBytes(); - } - /** - *
-   * Request for a governance proposal given a proposal reference
-   * 
- * - * Protobuf type {@code api.v1.GetProposalByReferenceRequest} - */ - public static final class GetProposalByReferenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalByReferenceRequest) - GetProposalByReferenceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalByReferenceRequest.newBuilder() to construct. - private GetProposalByReferenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalByReferenceRequest() { - reference_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalByReferenceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalByReferenceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - reference_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.Builder.class); - } - - public static final int REFERENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object reference_; - /** - *
-     * Proposal reference. Required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - @java.lang.Override - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; - } - } - /** - *
-     * Proposal reference. Required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getReferenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getReferenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reference_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest other = (io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest) obj; - - if (!getReference() - .equals(other.getReference())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a governance proposal given a proposal reference
-     * 
- * - * Protobuf type {@code api.v1.GetProposalByReferenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalByReferenceRequest) - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.class, io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - reference_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest build() { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest result = new io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest(this); - result.reference_ = reference_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.getDefaultInstance()) return this; - if (!other.getReference().isEmpty()) { - reference_ = other.reference_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object reference_ = ""; - /** - *
-       * Proposal reference. Required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Proposal reference. Required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Proposal reference. Required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @param value The reference to set. - * @return This builder for chaining. - */ - public Builder setReference( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reference_ = value; - onChanged(); - return this; - } - /** - *
-       * Proposal reference. Required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearReference() { - - reference_ = getDefaultInstance().getReference(); - onChanged(); - return this; - } - /** - *
-       * Proposal reference. Required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @param value The bytes for reference to set. - * @return This builder for chaining. - */ - public Builder setReferenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reference_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalByReferenceRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceRequest) - private static final io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalByReferenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalByReferenceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetProposalByReferenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetProposalByReferenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(); - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder(); - } - /** - *
-   * Response for a governance proposal given a proposal reference
-   * 
- * - * Protobuf type {@code api.v1.GetProposalByReferenceResponse} - */ - public static final class GetProposalByReferenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetProposalByReferenceResponse) - GetProposalByReferenceResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProposalByReferenceResponse.newBuilder() to construct. - private GetProposalByReferenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetProposalByReferenceResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetProposalByReferenceResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetProposalByReferenceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.GovernanceData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.GovernanceData data_; - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - /** - *
-     * Governance data, if found
-     * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse other = (io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a governance proposal given a proposal reference
-     * 
- * - * Protobuf type {@code api.v1.GetProposalByReferenceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetProposalByReferenceResponse) - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.class, io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetProposalByReferenceResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse build() { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse result = new io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse(this); - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.GovernanceData data_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - if (dataBuilder_ == null) { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder mergeData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - io.vegaprotocol.vega.Governance.GovernanceData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - } - /** - *
-       * Governance data, if found
-       * 
- * - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetProposalByReferenceResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceResponse) - private static final io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProposalByReferenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProposalByReferenceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveGovernanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveGovernanceRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request to obsever all event related to governance
-   * 
- * - * Protobuf type {@code api.v1.ObserveGovernanceRequest} - */ - public static final class ObserveGovernanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveGovernanceRequest) - ObserveGovernanceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveGovernanceRequest.newBuilder() to construct. - private ObserveGovernanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveGovernanceRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveGovernanceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveGovernanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.class, io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest other = (io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to obsever all event related to governance
-     * 
- * - * Protobuf type {@code api.v1.ObserveGovernanceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveGovernanceRequest) - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.class, io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest build() { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest result = new io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveGovernanceRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceRequest) - private static final io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveGovernanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveGovernanceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveGovernanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveGovernanceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(); - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder(); - } - /** - *
-   * All events related to governance
-   * 
- * - * Protobuf type {@code api.v1.ObserveGovernanceResponse} - */ - public static final class ObserveGovernanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveGovernanceResponse) - ObserveGovernanceResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveGovernanceResponse.newBuilder() to construct. - private ObserveGovernanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveGovernanceResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveGovernanceResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveGovernanceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.GovernanceData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.class, io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.GovernanceData data_; - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse other = (io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * All events related to governance
-     * 
- * - * Protobuf type {@code api.v1.ObserveGovernanceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveGovernanceResponse) - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.class, io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveGovernanceResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse build() { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse result = new io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse(this); - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.GovernanceData data_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - if (dataBuilder_ == null) { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder mergeData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - io.vegaprotocol.vega.Governance.GovernanceData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveGovernanceResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceResponse) - private static final io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveGovernanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveGovernanceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObservePartyProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObservePartyProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of governance proposals for a party
-   * 
- * - * Protobuf type {@code api.v1.ObservePartyProposalsRequest} - */ - public static final class ObservePartyProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObservePartyProposalsRequest) - ObservePartyProposalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObservePartyProposalsRequest.newBuilder() to construct. - private ObservePartyProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObservePartyProposalsRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObservePartyProposalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObservePartyProposalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.class, io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest other = (io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of governance proposals for a party
-     * 
- * - * Protobuf type {@code api.v1.ObservePartyProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObservePartyProposalsRequest) - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.class, io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest build() { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest result = new io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObservePartyProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsRequest) - private static final io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObservePartyProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObservePartyProposalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObservePartyProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObservePartyProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - io.vegaprotocol.vega.Governance.GovernanceData getData(); - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder(); - } - /** - * Protobuf type {@code api.v1.ObservePartyProposalsResponse} - */ - public static final class ObservePartyProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObservePartyProposalsResponse) - ObservePartyProposalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObservePartyProposalsResponse.newBuilder() to construct. - private ObservePartyProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObservePartyProposalsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObservePartyProposalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObservePartyProposalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.GovernanceData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(io.vegaprotocol.vega.Governance.GovernanceData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.class, io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.GovernanceData data_; - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse other = (io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.ObservePartyProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObservePartyProposalsResponse) - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.class, io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyProposalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse build() { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse result = new io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse(this); - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.GovernanceData data_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> dataBuilder_; - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return Whether the data field is set. - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - * @return The data. - */ - public io.vegaprotocol.vega.Governance.GovernanceData getData() { - if (dataBuilder_ == null) { - return data_ == null ? io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder setData( - io.vegaprotocol.vega.Governance.GovernanceData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder mergeData(io.vegaprotocol.vega.Governance.GovernanceData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - io.vegaprotocol.vega.Governance.GovernanceData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - public io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - io.vegaprotocol.vega.Governance.GovernanceData.getDefaultInstance() : data_; - } - } - /** - * .vega.GovernanceData data = 1 [json_name = "data"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.GovernanceData, io.vegaprotocol.vega.Governance.GovernanceData.Builder, io.vegaprotocol.vega.Governance.GovernanceDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObservePartyProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsResponse) - private static final io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObservePartyProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObservePartyProposalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveProposalVotesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveProposalVotesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - java.lang.String getProposalId(); - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - com.google.protobuf.ByteString - getProposalIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of governance votes for a proposal
-   * 
- * - * Protobuf type {@code api.v1.ObserveProposalVotesRequest} - */ - public static final class ObserveProposalVotesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveProposalVotesRequest) - ObserveProposalVotesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveProposalVotesRequest.newBuilder() to construct. - private ObserveProposalVotesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveProposalVotesRequest() { - proposalId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveProposalVotesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveProposalVotesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - proposalId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.class, io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.Builder.class); - } - - public static final int PROPOSAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object proposalId_; - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - @java.lang.Override - public java.lang.String getProposalId() { - java.lang.Object ref = proposalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposalId_ = s; - return s; - } - } - /** - *
-     * Proposal identifier, required field
-     * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProposalIdBytes() { - java.lang.Object ref = proposalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProposalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, proposalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProposalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, proposalId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest other = (io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest) obj; - - if (!getProposalId() - .equals(other.getProposalId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getProposalId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of governance votes for a proposal
-     * 
- * - * Protobuf type {@code api.v1.ObserveProposalVotesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveProposalVotesRequest) - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.class, io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proposalId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest build() { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest result = new io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest(this); - result.proposalId_ = proposalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.getDefaultInstance()) return this; - if (!other.getProposalId().isEmpty()) { - proposalId_ = other.proposalId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object proposalId_ = ""; - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The proposalId. - */ - public java.lang.String getProposalId() { - java.lang.Object ref = proposalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - proposalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return The bytes for proposalId. - */ - public com.google.protobuf.ByteString - getProposalIdBytes() { - java.lang.Object ref = proposalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - proposalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @param value The proposalId to set. - * @return This builder for chaining. - */ - public Builder setProposalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - proposalId_ = value; - onChanged(); - return this; - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearProposalId() { - - proposalId_ = getDefaultInstance().getProposalId(); - onChanged(); - return this; - } - /** - *
-       * Proposal identifier, required field
-       * 
- * - * string proposal_id = 1 [json_name = "proposalId", (.validator.field) = { ... } - * @param value The bytes for proposalId to set. - * @return This builder for chaining. - */ - public Builder setProposalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - proposalId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveProposalVotesRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesRequest) - private static final io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveProposalVotesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveProposalVotesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveProposalVotesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveProposalVotesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - boolean hasVote(); - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - io.vegaprotocol.vega.Governance.Vote getVote(); - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder(); - } - /** - * Protobuf type {@code api.v1.ObserveProposalVotesResponse} - */ - public static final class ObserveProposalVotesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveProposalVotesResponse) - ObserveProposalVotesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveProposalVotesResponse.newBuilder() to construct. - private ObserveProposalVotesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveProposalVotesResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveProposalVotesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveProposalVotesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.Vote.Builder subBuilder = null; - if (vote_ != null) { - subBuilder = vote_.toBuilder(); - } - vote_ = input.readMessage(io.vegaprotocol.vega.Governance.Vote.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vote_); - vote_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.class, io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.Builder.class); - } - - public static final int VOTE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.Vote vote_; - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - @java.lang.Override - public boolean hasVote() { - return vote_ != null; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.Vote getVote() { - return vote_ == null ? io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder() { - return getVote(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (vote_ != null) { - output.writeMessage(1, getVote()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (vote_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVote()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse other = (io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse) obj; - - if (hasVote() != other.hasVote()) return false; - if (hasVote()) { - if (!getVote() - .equals(other.getVote())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVote()) { - hash = (37 * hash) + VOTE_FIELD_NUMBER; - hash = (53 * hash) + getVote().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.ObserveProposalVotesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveProposalVotesResponse) - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.class, io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (voteBuilder_ == null) { - vote_ = null; - } else { - vote_ = null; - voteBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveProposalVotesResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse build() { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse result = new io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse(this); - if (voteBuilder_ == null) { - result.vote_ = vote_; - } else { - result.vote_ = voteBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.getDefaultInstance()) return this; - if (other.hasVote()) { - mergeVote(other.getVote()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.Vote vote_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> voteBuilder_; - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - public boolean hasVote() { - return voteBuilder_ != null || vote_ != null; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - public io.vegaprotocol.vega.Governance.Vote getVote() { - if (voteBuilder_ == null) { - return vote_ == null ? io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } else { - return voteBuilder_.getMessage(); - } - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder setVote(io.vegaprotocol.vega.Governance.Vote value) { - if (voteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vote_ = value; - onChanged(); - } else { - voteBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder setVote( - io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { - if (voteBuilder_ == null) { - vote_ = builderForValue.build(); - onChanged(); - } else { - voteBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder mergeVote(io.vegaprotocol.vega.Governance.Vote value) { - if (voteBuilder_ == null) { - if (vote_ != null) { - vote_ = - io.vegaprotocol.vega.Governance.Vote.newBuilder(vote_).mergeFrom(value).buildPartial(); - } else { - vote_ = value; - } - onChanged(); - } else { - voteBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder clearVote() { - if (voteBuilder_ == null) { - vote_ = null; - onChanged(); - } else { - vote_ = null; - voteBuilder_ = null; - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public io.vegaprotocol.vega.Governance.Vote.Builder getVoteBuilder() { - - onChanged(); - return getVoteFieldBuilder().getBuilder(); - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder() { - if (voteBuilder_ != null) { - return voteBuilder_.getMessageOrBuilder(); - } else { - return vote_ == null ? - io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> - getVoteFieldBuilder() { - if (voteBuilder_ == null) { - voteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder>( - getVote(), - getParentForChildren(), - isClean()); - vote_ = null; - } - return voteBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveProposalVotesResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesResponse) - private static final io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveProposalVotesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveProposalVotesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObservePartyVotesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObservePartyVotesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of governance votes for a party
-   * 
- * - * Protobuf type {@code api.v1.ObservePartyVotesRequest} - */ - public static final class ObservePartyVotesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObservePartyVotesRequest) - ObservePartyVotesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObservePartyVotesRequest.newBuilder() to construct. - private ObservePartyVotesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObservePartyVotesRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObservePartyVotesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObservePartyVotesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.class, io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest other = (io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of governance votes for a party
-     * 
- * - * Protobuf type {@code api.v1.ObservePartyVotesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObservePartyVotesRequest) - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.class, io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest build() { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest result = new io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObservePartyVotesRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesRequest) - private static final io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObservePartyVotesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObservePartyVotesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObservePartyVotesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObservePartyVotesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - boolean hasVote(); - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - io.vegaprotocol.vega.Governance.Vote getVote(); - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder(); - } - /** - * Protobuf type {@code api.v1.ObservePartyVotesResponse} - */ - public static final class ObservePartyVotesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObservePartyVotesResponse) - ObservePartyVotesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObservePartyVotesResponse.newBuilder() to construct. - private ObservePartyVotesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObservePartyVotesResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObservePartyVotesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObservePartyVotesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Governance.Vote.Builder subBuilder = null; - if (vote_ != null) { - subBuilder = vote_.toBuilder(); - } - vote_ = input.readMessage(io.vegaprotocol.vega.Governance.Vote.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vote_); - vote_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.class, io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.Builder.class); - } - - public static final int VOTE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Governance.Vote vote_; - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - @java.lang.Override - public boolean hasVote() { - return vote_ != null; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.Vote getVote() { - return vote_ == null ? io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder() { - return getVote(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (vote_ != null) { - output.writeMessage(1, getVote()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (vote_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVote()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse other = (io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse) obj; - - if (hasVote() != other.hasVote()) return false; - if (hasVote()) { - if (!getVote() - .equals(other.getVote())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVote()) { - hash = (37 * hash) + VOTE_FIELD_NUMBER; - hash = (53 * hash) + getVote().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.ObservePartyVotesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObservePartyVotesResponse) - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.class, io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (voteBuilder_ == null) { - vote_ = null; - } else { - vote_ = null; - voteBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObservePartyVotesResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse build() { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse result = new io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse(this); - if (voteBuilder_ == null) { - result.vote_ = vote_; - } else { - result.vote_ = voteBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.getDefaultInstance()) return this; - if (other.hasVote()) { - mergeVote(other.getVote()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Governance.Vote vote_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> voteBuilder_; - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return Whether the vote field is set. - */ - public boolean hasVote() { - return voteBuilder_ != null || vote_ != null; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - * @return The vote. - */ - public io.vegaprotocol.vega.Governance.Vote getVote() { - if (voteBuilder_ == null) { - return vote_ == null ? io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } else { - return voteBuilder_.getMessage(); - } - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder setVote(io.vegaprotocol.vega.Governance.Vote value) { - if (voteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vote_ = value; - onChanged(); - } else { - voteBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder setVote( - io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { - if (voteBuilder_ == null) { - vote_ = builderForValue.build(); - onChanged(); - } else { - voteBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder mergeVote(io.vegaprotocol.vega.Governance.Vote value) { - if (voteBuilder_ == null) { - if (vote_ != null) { - vote_ = - io.vegaprotocol.vega.Governance.Vote.newBuilder(vote_).mergeFrom(value).buildPartial(); - } else { - vote_ = value; - } - onChanged(); - } else { - voteBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public Builder clearVote() { - if (voteBuilder_ == null) { - vote_ = null; - onChanged(); - } else { - vote_ = null; - voteBuilder_ = null; - } - - return this; - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public io.vegaprotocol.vega.Governance.Vote.Builder getVoteBuilder() { - - onChanged(); - return getVoteFieldBuilder().getBuilder(); - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - public io.vegaprotocol.vega.Governance.VoteOrBuilder getVoteOrBuilder() { - if (voteBuilder_ != null) { - return voteBuilder_.getMessageOrBuilder(); - } else { - return vote_ == null ? - io.vegaprotocol.vega.Governance.Vote.getDefaultInstance() : vote_; - } - } - /** - * .vega.Vote vote = 1 [json_name = "vote"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> - getVoteFieldBuilder() { - if (voteBuilder_ == null) { - voteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder>( - getVote(), - getParentForChildren(), - isClean()); - vote_ = null; - } - return voteBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObservePartyVotesResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesResponse) - private static final io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObservePartyVotesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObservePartyVotesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarginLevelsSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarginLevelsSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of MarginLevels data matching the given party identifier
-   * Optionally, the list can be additionally filtered by market
-   * 
- * - * Protobuf type {@code api.v1.MarginLevelsSubscribeRequest} - */ - public static final class MarginLevelsSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarginLevelsSubscribeRequest) - MarginLevelsSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarginLevelsSubscribeRequest.newBuilder() to construct. - private MarginLevelsSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarginLevelsSubscribeRequest() { - partyId_ = ""; - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarginLevelsSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarginLevelsSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of MarginLevels data matching the given party identifier
-     * Optionally, the list can be additionally filtered by market
-     * 
- * - * Protobuf type {@code api.v1.MarginLevelsSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarginLevelsSubscribeRequest) - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarginLevelsSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarginLevelsSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarginLevelsSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarginLevelsSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarginLevelsSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - boolean hasMarginLevels(); - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels(); - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder(); - } - /** - * Protobuf type {@code api.v1.MarginLevelsSubscribeResponse} - */ - public static final class MarginLevelsSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarginLevelsSubscribeResponse) - MarginLevelsSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarginLevelsSubscribeResponse.newBuilder() to construct. - private MarginLevelsSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarginLevelsSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarginLevelsSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarginLevelsSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.MarginLevels.Builder subBuilder = null; - if (marginLevels_ != null) { - subBuilder = marginLevels_.toBuilder(); - } - marginLevels_ = input.readMessage(io.vegaprotocol.vega.Vega.MarginLevels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(marginLevels_); - marginLevels_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.Builder.class); - } - - public static final int MARGIN_LEVELS_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.MarginLevels marginLevels_; - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - @java.lang.Override - public boolean hasMarginLevels() { - return marginLevels_ != null; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels() { - return marginLevels_ == null ? io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder() { - return getMarginLevels(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (marginLevels_ != null) { - output.writeMessage(1, getMarginLevels()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (marginLevels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMarginLevels()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse) obj; - - if (hasMarginLevels() != other.hasMarginLevels()) return false; - if (hasMarginLevels()) { - if (!getMarginLevels() - .equals(other.getMarginLevels())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarginLevels()) { - hash = (37 * hash) + MARGIN_LEVELS_FIELD_NUMBER; - hash = (53 * hash) + getMarginLevels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.MarginLevelsSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarginLevelsSubscribeResponse) - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marginLevelsBuilder_ == null) { - marginLevels_ = null; - } else { - marginLevels_ = null; - marginLevelsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse(this); - if (marginLevelsBuilder_ == null) { - result.marginLevels_ = marginLevels_; - } else { - result.marginLevels_ = marginLevelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.getDefaultInstance()) return this; - if (other.hasMarginLevels()) { - mergeMarginLevels(other.getMarginLevels()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarginLevels marginLevels_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> marginLevelsBuilder_; - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - public boolean hasMarginLevels() { - return marginLevelsBuilder_ != null || marginLevels_ != null; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels() { - if (marginLevelsBuilder_ == null) { - return marginLevels_ == null ? io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } else { - return marginLevelsBuilder_.getMessage(); - } - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels(io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - marginLevels_ = value; - onChanged(); - } else { - marginLevelsBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels( - io.vegaprotocol.vega.Vega.MarginLevels.Builder builderForValue) { - if (marginLevelsBuilder_ == null) { - marginLevels_ = builderForValue.build(); - onChanged(); - } else { - marginLevelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder mergeMarginLevels(io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (marginLevels_ != null) { - marginLevels_ = - io.vegaprotocol.vega.Vega.MarginLevels.newBuilder(marginLevels_).mergeFrom(value).buildPartial(); - } else { - marginLevels_ = value; - } - onChanged(); - } else { - marginLevelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder clearMarginLevels() { - if (marginLevelsBuilder_ == null) { - marginLevels_ = null; - onChanged(); - } else { - marginLevels_ = null; - marginLevelsBuilder_ = null; - } - - return this; - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels.Builder getMarginLevelsBuilder() { - - onChanged(); - return getMarginLevelsFieldBuilder().getBuilder(); - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder() { - if (marginLevelsBuilder_ != null) { - return marginLevelsBuilder_.getMessageOrBuilder(); - } else { - return marginLevels_ == null ? - io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } - } - /** - * .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> - getMarginLevelsFieldBuilder() { - if (marginLevelsBuilder_ == null) { - marginLevelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder>( - getMarginLevels(), - getParentForChildren(), - isClean()); - marginLevels_ = null; - } - return marginLevelsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarginLevelsSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarginLevelsSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarginLevelsSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarginLevelsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarginLevelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request for margin levels for a party
-   * 
- * - * Protobuf type {@code api.v1.MarginLevelsRequest} - */ - public static final class MarginLevelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarginLevelsRequest) - MarginLevelsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarginLevelsRequest.newBuilder() to construct. - private MarginLevelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarginLevelsRequest() { - partyId_ = ""; - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarginLevelsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarginLevelsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.class, io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest other = (io.vegaprotocol.vega.api.Trading.MarginLevelsRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarginLevelsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for margin levels for a party
-     * 
- * - * Protobuf type {@code api.v1.MarginLevelsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarginLevelsRequest) - io.vegaprotocol.vega.api.Trading.MarginLevelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.class, io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsRequest build() { - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest result = new io.vegaprotocol.vega.api.Trading.MarginLevelsRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarginLevelsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarginLevelsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarginLevelsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarginLevelsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsRequest) - private static final io.vegaprotocol.vega.api.Trading.MarginLevelsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarginLevelsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarginLevelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarginLevelsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarginLevelsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarginLevelsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - java.util.List - getMarginLevelsList(); - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels(int index); - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - int getMarginLevelsCount(); - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - java.util.List - getMarginLevelsOrBuilderList(); - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder( - int index); - } - /** - *
-   * Response for margin levels for a party
-   * 
- * - * Protobuf type {@code api.v1.MarginLevelsResponse} - */ - public static final class MarginLevelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarginLevelsResponse) - MarginLevelsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarginLevelsResponse.newBuilder() to construct. - private MarginLevelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarginLevelsResponse() { - marginLevels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarginLevelsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarginLevelsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - marginLevels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - marginLevels_.add( - input.readMessage(io.vegaprotocol.vega.Vega.MarginLevels.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - marginLevels_ = java.util.Collections.unmodifiableList(marginLevels_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.class, io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.Builder.class); - } - - public static final int MARGIN_LEVELS_FIELD_NUMBER = 1; - private java.util.List marginLevels_; - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public java.util.List getMarginLevelsList() { - return marginLevels_; - } - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public java.util.List - getMarginLevelsOrBuilderList() { - return marginLevels_; - } - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public int getMarginLevelsCount() { - return marginLevels_.size(); - } - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels(int index) { - return marginLevels_.get(index); - } - /** - *
-     * A list of 0 or more margin levels
-     * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder( - int index) { - return marginLevels_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < marginLevels_.size(); i++) { - output.writeMessage(1, marginLevels_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < marginLevels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, marginLevels_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse other = (io.vegaprotocol.vega.api.Trading.MarginLevelsResponse) obj; - - if (!getMarginLevelsList() - .equals(other.getMarginLevelsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMarginLevelsCount() > 0) { - hash = (37 * hash) + MARGIN_LEVELS_FIELD_NUMBER; - hash = (53 * hash) + getMarginLevelsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarginLevelsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for margin levels for a party
-     * 
- * - * Protobuf type {@code api.v1.MarginLevelsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarginLevelsResponse) - io.vegaprotocol.vega.api.Trading.MarginLevelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.class, io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMarginLevelsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marginLevelsBuilder_ == null) { - marginLevels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - marginLevelsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarginLevelsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsResponse build() { - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse result = new io.vegaprotocol.vega.api.Trading.MarginLevelsResponse(this); - int from_bitField0_ = bitField0_; - if (marginLevelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - marginLevels_ = java.util.Collections.unmodifiableList(marginLevels_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.marginLevels_ = marginLevels_; - } else { - result.marginLevels_ = marginLevelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarginLevelsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarginLevelsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarginLevelsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.getDefaultInstance()) return this; - if (marginLevelsBuilder_ == null) { - if (!other.marginLevels_.isEmpty()) { - if (marginLevels_.isEmpty()) { - marginLevels_ = other.marginLevels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMarginLevelsIsMutable(); - marginLevels_.addAll(other.marginLevels_); - } - onChanged(); - } - } else { - if (!other.marginLevels_.isEmpty()) { - if (marginLevelsBuilder_.isEmpty()) { - marginLevelsBuilder_.dispose(); - marginLevelsBuilder_ = null; - marginLevels_ = other.marginLevels_; - bitField0_ = (bitField0_ & ~0x00000001); - marginLevelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMarginLevelsFieldBuilder() : null; - } else { - marginLevelsBuilder_.addAllMessages(other.marginLevels_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarginLevelsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List marginLevels_ = - java.util.Collections.emptyList(); - private void ensureMarginLevelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - marginLevels_ = new java.util.ArrayList(marginLevels_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> marginLevelsBuilder_; - - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public java.util.List getMarginLevelsList() { - if (marginLevelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(marginLevels_); - } else { - return marginLevelsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public int getMarginLevelsCount() { - if (marginLevelsBuilder_ == null) { - return marginLevels_.size(); - } else { - return marginLevelsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels(int index) { - if (marginLevelsBuilder_ == null) { - return marginLevels_.get(index); - } else { - return marginLevelsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels( - int index, io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarginLevelsIsMutable(); - marginLevels_.set(index, value); - onChanged(); - } else { - marginLevelsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels( - int index, io.vegaprotocol.vega.Vega.MarginLevels.Builder builderForValue) { - if (marginLevelsBuilder_ == null) { - ensureMarginLevelsIsMutable(); - marginLevels_.set(index, builderForValue.build()); - onChanged(); - } else { - marginLevelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder addMarginLevels(io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarginLevelsIsMutable(); - marginLevels_.add(value); - onChanged(); - } else { - marginLevelsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder addMarginLevels( - int index, io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarginLevelsIsMutable(); - marginLevels_.add(index, value); - onChanged(); - } else { - marginLevelsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder addMarginLevels( - io.vegaprotocol.vega.Vega.MarginLevels.Builder builderForValue) { - if (marginLevelsBuilder_ == null) { - ensureMarginLevelsIsMutable(); - marginLevels_.add(builderForValue.build()); - onChanged(); - } else { - marginLevelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder addMarginLevels( - int index, io.vegaprotocol.vega.Vega.MarginLevels.Builder builderForValue) { - if (marginLevelsBuilder_ == null) { - ensureMarginLevelsIsMutable(); - marginLevels_.add(index, builderForValue.build()); - onChanged(); - } else { - marginLevelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder addAllMarginLevels( - java.lang.Iterable values) { - if (marginLevelsBuilder_ == null) { - ensureMarginLevelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, marginLevels_); - onChanged(); - } else { - marginLevelsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder clearMarginLevels() { - if (marginLevelsBuilder_ == null) { - marginLevels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - marginLevelsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public Builder removeMarginLevels(int index) { - if (marginLevelsBuilder_ == null) { - ensureMarginLevelsIsMutable(); - marginLevels_.remove(index); - onChanged(); - } else { - marginLevelsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels.Builder getMarginLevelsBuilder( - int index) { - return getMarginLevelsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder( - int index) { - if (marginLevelsBuilder_ == null) { - return marginLevels_.get(index); } else { - return marginLevelsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public java.util.List - getMarginLevelsOrBuilderList() { - if (marginLevelsBuilder_ != null) { - return marginLevelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(marginLevels_); - } - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels.Builder addMarginLevelsBuilder() { - return getMarginLevelsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels.Builder addMarginLevelsBuilder( - int index) { - return getMarginLevelsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more margin levels
-       * 
- * - * repeated .vega.MarginLevels margin_levels = 1 [json_name = "marginLevels"]; - */ - public java.util.List - getMarginLevelsBuilderList() { - return getMarginLevelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> - getMarginLevelsFieldBuilder() { - if (marginLevelsBuilder_ == null) { - marginLevelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder>( - marginLevels_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - marginLevels_ = null; - } - return marginLevelsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarginLevelsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarginLevelsResponse) - private static final io.vegaprotocol.vega.api.Trading.MarginLevelsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarginLevelsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarginLevelsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarginLevelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarginLevelsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarginLevelsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsDataSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsDataSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of MarketsData
-   * Optionally, the list can be additionally filtered by market
-   * 
- * - * Protobuf type {@code api.v1.MarketsDataSubscribeRequest} - */ - public static final class MarketsDataSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsDataSubscribeRequest) - MarketsDataSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsDataSubscribeRequest.newBuilder() to construct. - private MarketsDataSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsDataSubscribeRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsDataSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsDataSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of MarketsData
-     * Optionally, the list can be additionally filtered by market
-     * 
- * - * Protobuf type {@code api.v1.MarketsDataSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsDataSubscribeRequest) - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsDataSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsDataSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsDataSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsDataSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsDataSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - boolean hasMarketData(); - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - io.vegaprotocol.vega.Vega.MarketData getMarketData(); - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder(); - } - /** - * Protobuf type {@code api.v1.MarketsDataSubscribeResponse} - */ - public static final class MarketsDataSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsDataSubscribeResponse) - MarketsDataSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsDataSubscribeResponse.newBuilder() to construct. - private MarketsDataSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsDataSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsDataSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsDataSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.MarketData.Builder subBuilder = null; - if (marketData_ != null) { - subBuilder = marketData_.toBuilder(); - } - marketData_ = input.readMessage(io.vegaprotocol.vega.Vega.MarketData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(marketData_); - marketData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.Builder.class); - } - - public static final int MARKET_DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.MarketData marketData_; - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - @java.lang.Override - public boolean hasMarketData() { - return marketData_ != null; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData getMarketData() { - return marketData_ == null ? io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder() { - return getMarketData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (marketData_ != null) { - output.writeMessage(1, getMarketData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (marketData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMarketData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse) obj; - - if (hasMarketData() != other.hasMarketData()) return false; - if (hasMarketData()) { - if (!getMarketData() - .equals(other.getMarketData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarketData()) { - hash = (37 * hash) + MARKET_DATA_FIELD_NUMBER; - hash = (53 * hash) + getMarketData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.MarketsDataSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsDataSubscribeResponse) - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketDataBuilder_ == null) { - marketData_ = null; - } else { - marketData_ = null; - marketDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse(this); - if (marketDataBuilder_ == null) { - result.marketData_ = marketData_; - } else { - result.marketData_ = marketDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.getDefaultInstance()) return this; - if (other.hasMarketData()) { - mergeMarketData(other.getMarketData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarketData marketData_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> marketDataBuilder_; - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - public boolean hasMarketData() { - return marketDataBuilder_ != null || marketData_ != null; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - public io.vegaprotocol.vega.Vega.MarketData getMarketData() { - if (marketDataBuilder_ == null) { - return marketData_ == null ? io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } else { - return marketDataBuilder_.getMessage(); - } - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder setMarketData(io.vegaprotocol.vega.Vega.MarketData value) { - if (marketDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - marketData_ = value; - onChanged(); - } else { - marketDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder setMarketData( - io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { - if (marketDataBuilder_ == null) { - marketData_ = builderForValue.build(); - onChanged(); - } else { - marketDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder mergeMarketData(io.vegaprotocol.vega.Vega.MarketData value) { - if (marketDataBuilder_ == null) { - if (marketData_ != null) { - marketData_ = - io.vegaprotocol.vega.Vega.MarketData.newBuilder(marketData_).mergeFrom(value).buildPartial(); - } else { - marketData_ = value; - } - onChanged(); - } else { - marketDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder clearMarketData() { - if (marketDataBuilder_ == null) { - marketData_ = null; - onChanged(); - } else { - marketData_ = null; - marketDataBuilder_ = null; - } - - return this; - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData.Builder getMarketDataBuilder() { - - onChanged(); - return getMarketDataFieldBuilder().getBuilder(); - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder() { - if (marketDataBuilder_ != null) { - return marketDataBuilder_.getMessageOrBuilder(); - } else { - return marketData_ == null ? - io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } - } - /** - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> - getMarketDataFieldBuilder() { - if (marketDataBuilder_ == null) { - marketDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder>( - getMarketData(), - getParentForChildren(), - isClean()); - marketData_ = null; - } - return marketDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsDataSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsDataSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsDataSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDataByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDataByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request for market data for a market
-   * 
- * - * Protobuf type {@code api.v1.MarketDataByIDRequest} - */ - public static final class MarketDataByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDataByIDRequest) - MarketDataByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDataByIDRequest.newBuilder() to construct. - private MarketDataByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDataByIDRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDataByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDataByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.class, io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest other = (io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for market data for a market
-     * 
- * - * Protobuf type {@code api.v1.MarketDataByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDataByIDRequest) - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.class, io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest build() { - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest result = new io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDataByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDataByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDataByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDataByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDataByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - boolean hasMarketData(); - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - io.vegaprotocol.vega.Vega.MarketData getMarketData(); - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder(); - } - /** - *
-   * Response for market data for a market
-   * 
- * - * Protobuf type {@code api.v1.MarketDataByIDResponse} - */ - public static final class MarketDataByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDataByIDResponse) - MarketDataByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDataByIDResponse.newBuilder() to construct. - private MarketDataByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDataByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDataByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDataByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.MarketData.Builder subBuilder = null; - if (marketData_ != null) { - subBuilder = marketData_.toBuilder(); - } - marketData_ = input.readMessage(io.vegaprotocol.vega.Vega.MarketData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(marketData_); - marketData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.class, io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.Builder.class); - } - - public static final int MARKET_DATA_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.MarketData marketData_; - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - @java.lang.Override - public boolean hasMarketData() { - return marketData_ != null; - } - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData getMarketData() { - return marketData_ == null ? io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } - /** - *
-     * Market data, if found
-     * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder() { - return getMarketData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (marketData_ != null) { - output.writeMessage(1, getMarketData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (marketData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMarketData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse other = (io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse) obj; - - if (hasMarketData() != other.hasMarketData()) return false; - if (hasMarketData()) { - if (!getMarketData() - .equals(other.getMarketData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarketData()) { - hash = (37 * hash) + MARKET_DATA_FIELD_NUMBER; - hash = (53 * hash) + getMarketData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for market data for a market
-     * 
- * - * Protobuf type {@code api.v1.MarketDataByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDataByIDResponse) - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.class, io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketDataBuilder_ == null) { - marketData_ = null; - } else { - marketData_ = null; - marketDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDataByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse build() { - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse result = new io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse(this); - if (marketDataBuilder_ == null) { - result.marketData_ = marketData_; - } else { - result.marketData_ = marketDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.getDefaultInstance()) return this; - if (other.hasMarketData()) { - mergeMarketData(other.getMarketData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarketData marketData_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> marketDataBuilder_; - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return Whether the marketData field is set. - */ - public boolean hasMarketData() { - return marketDataBuilder_ != null || marketData_ != null; - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - * @return The marketData. - */ - public io.vegaprotocol.vega.Vega.MarketData getMarketData() { - if (marketDataBuilder_ == null) { - return marketData_ == null ? io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } else { - return marketDataBuilder_.getMessage(); - } - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder setMarketData(io.vegaprotocol.vega.Vega.MarketData value) { - if (marketDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - marketData_ = value; - onChanged(); - } else { - marketDataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder setMarketData( - io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { - if (marketDataBuilder_ == null) { - marketData_ = builderForValue.build(); - onChanged(); - } else { - marketDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder mergeMarketData(io.vegaprotocol.vega.Vega.MarketData value) { - if (marketDataBuilder_ == null) { - if (marketData_ != null) { - marketData_ = - io.vegaprotocol.vega.Vega.MarketData.newBuilder(marketData_).mergeFrom(value).buildPartial(); - } else { - marketData_ = value; - } - onChanged(); - } else { - marketDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public Builder clearMarketData() { - if (marketDataBuilder_ == null) { - marketData_ = null; - onChanged(); - } else { - marketData_ = null; - marketDataBuilder_ = null; - } - - return this; - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData.Builder getMarketDataBuilder() { - - onChanged(); - return getMarketDataFieldBuilder().getBuilder(); - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketDataOrBuilder() { - if (marketDataBuilder_ != null) { - return marketDataBuilder_.getMessageOrBuilder(); - } else { - return marketData_ == null ? - io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance() : marketData_; - } - } - /** - *
-       * Market data, if found
-       * 
- * - * .vega.MarketData market_data = 1 [json_name = "marketData"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> - getMarketDataFieldBuilder() { - if (marketDataBuilder_ == null) { - marketDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder>( - getMarketData(), - getParentForChildren(), - isClean()); - marketData_ = null; - } - return marketDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDataByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDataByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDataByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsDataRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for market data
-   * 
- * - * Protobuf type {@code api.v1.MarketsDataRequest} - */ - public static final class MarketsDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsDataRequest) - MarketsDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsDataRequest.newBuilder() to construct. - private MarketsDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsDataRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsDataRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsDataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataRequest.class, io.vegaprotocol.vega.api.Trading.MarketsDataRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsDataRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsDataRequest other = (io.vegaprotocol.vega.api.Trading.MarketsDataRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsDataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for market data
-     * 
- * - * Protobuf type {@code api.v1.MarketsDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsDataRequest) - io.vegaprotocol.vega.api.Trading.MarketsDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataRequest.class, io.vegaprotocol.vega.api.Trading.MarketsDataRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsDataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataRequest build() { - io.vegaprotocol.vega.api.Trading.MarketsDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsDataRequest result = new io.vegaprotocol.vega.api.Trading.MarketsDataRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsDataRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsDataRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsDataRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsDataRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketsDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsDataRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsDataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - java.util.List - getMarketsDataList(); - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index); - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - int getMarketsDataCount(); - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - java.util.List - getMarketsDataOrBuilderList(); - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( - int index); - } - /** - *
-   * Response for market data
-   * 
- * - * Protobuf type {@code api.v1.MarketsDataResponse} - */ - public static final class MarketsDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsDataResponse) - MarketsDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsDataResponse.newBuilder() to construct. - private MarketsDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsDataResponse() { - marketsData_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsDataResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsDataResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - marketsData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - marketsData_.add( - input.readMessage(io.vegaprotocol.vega.Vega.MarketData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - marketsData_ = java.util.Collections.unmodifiableList(marketsData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataResponse.class, io.vegaprotocol.vega.api.Trading.MarketsDataResponse.Builder.class); - } - - public static final int MARKETS_DATA_FIELD_NUMBER = 1; - private java.util.List marketsData_; - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - @java.lang.Override - public java.util.List getMarketsDataList() { - return marketsData_; - } - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - @java.lang.Override - public java.util.List - getMarketsDataOrBuilderList() { - return marketsData_; - } - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - @java.lang.Override - public int getMarketsDataCount() { - return marketsData_.size(); - } - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index) { - return marketsData_.get(index); - } - /** - *
-     * A list of 0 or more market data
-     * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( - int index) { - return marketsData_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < marketsData_.size(); i++) { - output.writeMessage(1, marketsData_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < marketsData_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, marketsData_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsDataResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsDataResponse other = (io.vegaprotocol.vega.api.Trading.MarketsDataResponse) obj; - - if (!getMarketsDataList() - .equals(other.getMarketsDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMarketsDataCount() > 0) { - hash = (37 * hash) + MARKETS_DATA_FIELD_NUMBER; - hash = (53 * hash) + getMarketsDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsDataResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for market data
-     * 
- * - * Protobuf type {@code api.v1.MarketsDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsDataResponse) - io.vegaprotocol.vega.api.Trading.MarketsDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsDataResponse.class, io.vegaprotocol.vega.api.Trading.MarketsDataResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsDataResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMarketsDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketsDataBuilder_ == null) { - marketsData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - marketsDataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsDataResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataResponse build() { - io.vegaprotocol.vega.api.Trading.MarketsDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsDataResponse result = new io.vegaprotocol.vega.api.Trading.MarketsDataResponse(this); - int from_bitField0_ = bitField0_; - if (marketsDataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - marketsData_ = java.util.Collections.unmodifiableList(marketsData_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.marketsData_ = marketsData_; - } else { - result.marketsData_ = marketsDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsDataResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsDataResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsDataResponse.getDefaultInstance()) return this; - if (marketsDataBuilder_ == null) { - if (!other.marketsData_.isEmpty()) { - if (marketsData_.isEmpty()) { - marketsData_ = other.marketsData_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMarketsDataIsMutable(); - marketsData_.addAll(other.marketsData_); - } - onChanged(); - } - } else { - if (!other.marketsData_.isEmpty()) { - if (marketsDataBuilder_.isEmpty()) { - marketsDataBuilder_.dispose(); - marketsDataBuilder_ = null; - marketsData_ = other.marketsData_; - bitField0_ = (bitField0_ & ~0x00000001); - marketsDataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMarketsDataFieldBuilder() : null; - } else { - marketsDataBuilder_.addAllMessages(other.marketsData_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List marketsData_ = - java.util.Collections.emptyList(); - private void ensureMarketsDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - marketsData_ = new java.util.ArrayList(marketsData_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> marketsDataBuilder_; - - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public java.util.List getMarketsDataList() { - if (marketsDataBuilder_ == null) { - return java.util.Collections.unmodifiableList(marketsData_); - } else { - return marketsDataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public int getMarketsDataCount() { - if (marketsDataBuilder_ == null) { - return marketsData_.size(); - } else { - return marketsDataBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index) { - if (marketsDataBuilder_ == null) { - return marketsData_.get(index); - } else { - return marketsDataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder setMarketsData( - int index, io.vegaprotocol.vega.Vega.MarketData value) { - if (marketsDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsDataIsMutable(); - marketsData_.set(index, value); - onChanged(); - } else { - marketsDataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder setMarketsData( - int index, io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { - if (marketsDataBuilder_ == null) { - ensureMarketsDataIsMutable(); - marketsData_.set(index, builderForValue.build()); - onChanged(); - } else { - marketsDataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder addMarketsData(io.vegaprotocol.vega.Vega.MarketData value) { - if (marketsDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsDataIsMutable(); - marketsData_.add(value); - onChanged(); - } else { - marketsDataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder addMarketsData( - int index, io.vegaprotocol.vega.Vega.MarketData value) { - if (marketsDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsDataIsMutable(); - marketsData_.add(index, value); - onChanged(); - } else { - marketsDataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder addMarketsData( - io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { - if (marketsDataBuilder_ == null) { - ensureMarketsDataIsMutable(); - marketsData_.add(builderForValue.build()); - onChanged(); - } else { - marketsDataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder addMarketsData( - int index, io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { - if (marketsDataBuilder_ == null) { - ensureMarketsDataIsMutable(); - marketsData_.add(index, builderForValue.build()); - onChanged(); - } else { - marketsDataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder addAllMarketsData( - java.lang.Iterable values) { - if (marketsDataBuilder_ == null) { - ensureMarketsDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, marketsData_); - onChanged(); - } else { - marketsDataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder clearMarketsData() { - if (marketsDataBuilder_ == null) { - marketsData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - marketsDataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public Builder removeMarketsData(int index) { - if (marketsDataBuilder_ == null) { - ensureMarketsDataIsMutable(); - marketsData_.remove(index); - onChanged(); - } else { - marketsDataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData.Builder getMarketsDataBuilder( - int index) { - return getMarketsDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( - int index) { - if (marketsDataBuilder_ == null) { - return marketsData_.get(index); } else { - return marketsDataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public java.util.List - getMarketsDataOrBuilderList() { - if (marketsDataBuilder_ != null) { - return marketsDataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(marketsData_); - } - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData.Builder addMarketsDataBuilder() { - return getMarketsDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public io.vegaprotocol.vega.Vega.MarketData.Builder addMarketsDataBuilder( - int index) { - return getMarketsDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more market data
-       * 
- * - * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; - */ - public java.util.List - getMarketsDataBuilderList() { - return getMarketsDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> - getMarketsDataFieldBuilder() { - if (marketsDataBuilder_ == null) { - marketsDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder>( - marketsData_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - marketsData_ = null; - } - return marketsDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsDataResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsDataResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketsDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsDataResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsDataResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LastTradeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.LastTradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request for the latest trade that occurred on Vega for a given market
-   * 
- * - * Protobuf type {@code api.v1.LastTradeRequest} - */ - public static final class LastTradeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.LastTradeRequest) - LastTradeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LastTradeRequest.newBuilder() to construct. - private LastTradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LastTradeRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LastTradeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastTradeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LastTradeRequest.class, io.vegaprotocol.vega.api.Trading.LastTradeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.LastTradeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.LastTradeRequest other = (io.vegaprotocol.vega.api.Trading.LastTradeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.LastTradeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for the latest trade that occurred on Vega for a given market
-     * 
- * - * Protobuf type {@code api.v1.LastTradeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.LastTradeRequest) - io.vegaprotocol.vega.api.Trading.LastTradeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LastTradeRequest.class, io.vegaprotocol.vega.api.Trading.LastTradeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.LastTradeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.LastTradeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeRequest build() { - io.vegaprotocol.vega.api.Trading.LastTradeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.LastTradeRequest result = new io.vegaprotocol.vega.api.Trading.LastTradeRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.LastTradeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.LastTradeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LastTradeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.LastTradeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.LastTradeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.LastTradeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.LastTradeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.LastTradeRequest) - private static final io.vegaprotocol.vega.api.Trading.LastTradeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LastTradeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.LastTradeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LastTradeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastTradeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LastTradeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.LastTradeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return Whether the trade field is set. - */ - boolean hasTrade(); - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return The trade. - */ - io.vegaprotocol.vega.Vega.Trade getTrade(); - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getTradeOrBuilder(); - } - /** - *
-   * Response for the latest trade that occurred on Vega for a given market
-   * 
- * - * Protobuf type {@code api.v1.LastTradeResponse} - */ - public static final class LastTradeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.LastTradeResponse) - LastTradeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LastTradeResponse.newBuilder() to construct. - private LastTradeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LastTradeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LastTradeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastTradeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Trade.Builder subBuilder = null; - if (trade_ != null) { - subBuilder = trade_.toBuilder(); - } - trade_ = input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trade_); - trade_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LastTradeResponse.class, io.vegaprotocol.vega.api.Trading.LastTradeResponse.Builder.class); - } - - public static final int TRADE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Trade trade_; - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return Whether the trade field is set. - */ - @java.lang.Override - public boolean hasTrade() { - return trade_ != null; - } - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return The trade. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getTrade() { - return trade_ == null ? io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : trade_; - } - /** - *
-     * A trade, if found
-     * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradeOrBuilder() { - return getTrade(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (trade_ != null) { - output.writeMessage(1, getTrade()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (trade_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTrade()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.LastTradeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.LastTradeResponse other = (io.vegaprotocol.vega.api.Trading.LastTradeResponse) obj; - - if (hasTrade() != other.hasTrade()) return false; - if (hasTrade()) { - if (!getTrade() - .equals(other.getTrade())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTrade()) { - hash = (37 * hash) + TRADE_FIELD_NUMBER; - hash = (53 * hash) + getTrade().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.LastTradeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for the latest trade that occurred on Vega for a given market
-     * 
- * - * Protobuf type {@code api.v1.LastTradeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.LastTradeResponse) - io.vegaprotocol.vega.api.Trading.LastTradeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LastTradeResponse.class, io.vegaprotocol.vega.api.Trading.LastTradeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.LastTradeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tradeBuilder_ == null) { - trade_ = null; - } else { - trade_ = null; - tradeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastTradeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.LastTradeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeResponse build() { - io.vegaprotocol.vega.api.Trading.LastTradeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.LastTradeResponse result = new io.vegaprotocol.vega.api.Trading.LastTradeResponse(this); - if (tradeBuilder_ == null) { - result.trade_ = trade_; - } else { - result.trade_ = tradeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.LastTradeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.LastTradeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LastTradeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.LastTradeResponse.getDefaultInstance()) return this; - if (other.hasTrade()) { - mergeTrade(other.getTrade()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.LastTradeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.LastTradeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Trade trade_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> tradeBuilder_; - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return Whether the trade field is set. - */ - public boolean hasTrade() { - return tradeBuilder_ != null || trade_ != null; - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - * @return The trade. - */ - public io.vegaprotocol.vega.Vega.Trade getTrade() { - if (tradeBuilder_ == null) { - return trade_ == null ? io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : trade_; - } else { - return tradeBuilder_.getMessage(); - } - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public Builder setTrade(io.vegaprotocol.vega.Vega.Trade value) { - if (tradeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trade_ = value; - onChanged(); - } else { - tradeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public Builder setTrade( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradeBuilder_ == null) { - trade_ = builderForValue.build(); - onChanged(); - } else { - tradeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public Builder mergeTrade(io.vegaprotocol.vega.Vega.Trade value) { - if (tradeBuilder_ == null) { - if (trade_ != null) { - trade_ = - io.vegaprotocol.vega.Vega.Trade.newBuilder(trade_).mergeFrom(value).buildPartial(); - } else { - trade_ = value; - } - onChanged(); - } else { - tradeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public Builder clearTrade() { - if (tradeBuilder_ == null) { - trade_ = null; - onChanged(); - } else { - trade_ = null; - tradeBuilder_ = null; - } - - return this; - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getTradeBuilder() { - - onChanged(); - return getTradeFieldBuilder().getBuilder(); - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradeOrBuilder() { - if (tradeBuilder_ != null) { - return tradeBuilder_.getMessageOrBuilder(); - } else { - return trade_ == null ? - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : trade_; - } - } - /** - *
-       * A trade, if found
-       * 
- * - * .vega.Trade trade = 1 [json_name = "trade"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getTradeFieldBuilder() { - if (tradeBuilder_ == null) { - tradeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - getTrade(), - getParentForChildren(), - isClean()); - trade_ = null; - } - return tradeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.LastTradeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.LastTradeResponse) - private static final io.vegaprotocol.vega.api.Trading.LastTradeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LastTradeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.LastTradeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LastTradeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastTradeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastTradeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request for a market given a market identifier
-   * 
- * - * Protobuf type {@code api.v1.MarketByIDRequest} - */ - public static final class MarketByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketByIDRequest) - MarketByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketByIDRequest.newBuilder() to construct. - private MarketByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketByIDRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketByIDRequest.class, io.vegaprotocol.vega.api.Trading.MarketByIDRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketByIDRequest other = (io.vegaprotocol.vega.api.Trading.MarketByIDRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a market given a market identifier
-     * 
- * - * Protobuf type {@code api.v1.MarketByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketByIDRequest) - io.vegaprotocol.vega.api.Trading.MarketByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketByIDRequest.class, io.vegaprotocol.vega.api.Trading.MarketByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDRequest build() { - io.vegaprotocol.vega.api.Trading.MarketByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketByIDRequest result = new io.vegaprotocol.vega.api.Trading.MarketByIDRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketByIDRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return Whether the market field is set. - */ - boolean hasMarket(); - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return The market. - */ - io.vegaprotocol.vega.Markets.Market getMarket(); - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketOrBuilder(); - } - /** - *
-   * Response for a market given a market identifier
-   * 
- * - * Protobuf type {@code api.v1.MarketByIDResponse} - */ - public static final class MarketByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketByIDResponse) - MarketByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketByIDResponse.newBuilder() to construct. - private MarketByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Markets.Market.Builder subBuilder = null; - if (market_ != null) { - subBuilder = market_.toBuilder(); - } - market_ = input.readMessage(io.vegaprotocol.vega.Markets.Market.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(market_); - market_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketByIDResponse.class, io.vegaprotocol.vega.api.Trading.MarketByIDResponse.Builder.class); - } - - public static final int MARKET_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Markets.Market market_; - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return Whether the market field is set. - */ - @java.lang.Override - public boolean hasMarket() { - return market_ != null; - } - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return The market. - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.Market getMarket() { - return market_ == null ? io.vegaprotocol.vega.Markets.Market.getDefaultInstance() : market_; - } - /** - *
-     * A market, if found
-     * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketOrBuilder() { - return getMarket(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (market_ != null) { - output.writeMessage(1, getMarket()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (market_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMarket()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketByIDResponse other = (io.vegaprotocol.vega.api.Trading.MarketByIDResponse) obj; - - if (hasMarket() != other.hasMarket()) return false; - if (hasMarket()) { - if (!getMarket() - .equals(other.getMarket())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarket()) { - hash = (37 * hash) + MARKET_FIELD_NUMBER; - hash = (53 * hash) + getMarket().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a market given a market identifier
-     * 
- * - * Protobuf type {@code api.v1.MarketByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketByIDResponse) - io.vegaprotocol.vega.api.Trading.MarketByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketByIDResponse.class, io.vegaprotocol.vega.api.Trading.MarketByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketBuilder_ == null) { - market_ = null; - } else { - market_ = null; - marketBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDResponse build() { - io.vegaprotocol.vega.api.Trading.MarketByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketByIDResponse result = new io.vegaprotocol.vega.api.Trading.MarketByIDResponse(this); - if (marketBuilder_ == null) { - result.market_ = market_; - } else { - result.market_ = marketBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketByIDResponse.getDefaultInstance()) return this; - if (other.hasMarket()) { - mergeMarket(other.getMarket()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Markets.Market market_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> marketBuilder_; - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return Whether the market field is set. - */ - public boolean hasMarket() { - return marketBuilder_ != null || market_ != null; - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - * @return The market. - */ - public io.vegaprotocol.vega.Markets.Market getMarket() { - if (marketBuilder_ == null) { - return market_ == null ? io.vegaprotocol.vega.Markets.Market.getDefaultInstance() : market_; - } else { - return marketBuilder_.getMessage(); - } - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public Builder setMarket(io.vegaprotocol.vega.Markets.Market value) { - if (marketBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - market_ = value; - onChanged(); - } else { - marketBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public Builder setMarket( - io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { - if (marketBuilder_ == null) { - market_ = builderForValue.build(); - onChanged(); - } else { - marketBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public Builder mergeMarket(io.vegaprotocol.vega.Markets.Market value) { - if (marketBuilder_ == null) { - if (market_ != null) { - market_ = - io.vegaprotocol.vega.Markets.Market.newBuilder(market_).mergeFrom(value).buildPartial(); - } else { - market_ = value; - } - onChanged(); - } else { - marketBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public Builder clearMarket() { - if (marketBuilder_ == null) { - market_ = null; - onChanged(); - } else { - market_ = null; - marketBuilder_ = null; - } - - return this; - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public io.vegaprotocol.vega.Markets.Market.Builder getMarketBuilder() { - - onChanged(); - return getMarketFieldBuilder().getBuilder(); - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketOrBuilder() { - if (marketBuilder_ != null) { - return marketBuilder_.getMessageOrBuilder(); - } else { - return market_ == null ? - io.vegaprotocol.vega.Markets.Market.getDefaultInstance() : market_; - } - } - /** - *
-       * A market, if found
-       * 
- * - * .vega.Market market = 1 [json_name = "market"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> - getMarketFieldBuilder() { - if (marketBuilder_ == null) { - marketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder>( - getMarket(), - getParentForChildren(), - isClean()); - market_ = null; - } - return marketBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartyByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartyByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request for a party given a party identifier
-   * 
- * - * Protobuf type {@code api.v1.PartyByIDRequest} - */ - public static final class PartyByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartyByIDRequest) - PartyByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartyByIDRequest.newBuilder() to construct. - private PartyByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartyByIDRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartyByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartyByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyByIDRequest.class, io.vegaprotocol.vega.api.Trading.PartyByIDRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartyByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartyByIDRequest other = (io.vegaprotocol.vega.api.Trading.PartyByIDRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartyByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a party given a party identifier
-     * 
- * - * Protobuf type {@code api.v1.PartyByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartyByIDRequest) - io.vegaprotocol.vega.api.Trading.PartyByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyByIDRequest.class, io.vegaprotocol.vega.api.Trading.PartyByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartyByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartyByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDRequest build() { - io.vegaprotocol.vega.api.Trading.PartyByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PartyByIDRequest result = new io.vegaprotocol.vega.api.Trading.PartyByIDRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartyByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartyByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartyByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PartyByIDRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartyByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartyByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartyByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartyByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.PartyByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartyByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PartyByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartyByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartyByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartyByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartyByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return Whether the party field is set. - */ - boolean hasParty(); - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return The party. - */ - io.vegaprotocol.vega.Vega.Party getParty(); - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - io.vegaprotocol.vega.Vega.PartyOrBuilder getPartyOrBuilder(); - } - /** - *
-   * Response for a party given a party identifier
-   * 
- * - * Protobuf type {@code api.v1.PartyByIDResponse} - */ - public static final class PartyByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartyByIDResponse) - PartyByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartyByIDResponse.newBuilder() to construct. - private PartyByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartyByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartyByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartyByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Party.Builder subBuilder = null; - if (party_ != null) { - subBuilder = party_.toBuilder(); - } - party_ = input.readMessage(io.vegaprotocol.vega.Vega.Party.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(party_); - party_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyByIDResponse.class, io.vegaprotocol.vega.api.Trading.PartyByIDResponse.Builder.class); - } - - public static final int PARTY_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Party party_; - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return Whether the party field is set. - */ - @java.lang.Override - public boolean hasParty() { - return party_ != null; - } - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return The party. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Party getParty() { - return party_ == null ? io.vegaprotocol.vega.Vega.Party.getDefaultInstance() : party_; - } - /** - *
-     * A party, if found
-     * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartyOrBuilder() { - return getParty(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (party_ != null) { - output.writeMessage(1, getParty()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (party_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getParty()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartyByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartyByIDResponse other = (io.vegaprotocol.vega.api.Trading.PartyByIDResponse) obj; - - if (hasParty() != other.hasParty()) return false; - if (hasParty()) { - if (!getParty() - .equals(other.getParty())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasParty()) { - hash = (37 * hash) + PARTY_FIELD_NUMBER; - hash = (53 * hash) + getParty().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartyByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a party given a party identifier
-     * 
- * - * Protobuf type {@code api.v1.PartyByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartyByIDResponse) - io.vegaprotocol.vega.api.Trading.PartyByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyByIDResponse.class, io.vegaprotocol.vega.api.Trading.PartyByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartyByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (partyBuilder_ == null) { - party_ = null; - } else { - party_ = null; - partyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartyByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDResponse build() { - io.vegaprotocol.vega.api.Trading.PartyByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PartyByIDResponse result = new io.vegaprotocol.vega.api.Trading.PartyByIDResponse(this); - if (partyBuilder_ == null) { - result.party_ = party_; - } else { - result.party_ = partyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartyByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartyByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartyByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PartyByIDResponse.getDefaultInstance()) return this; - if (other.hasParty()) { - mergeParty(other.getParty()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartyByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartyByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Party party_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> partyBuilder_; - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return Whether the party field is set. - */ - public boolean hasParty() { - return partyBuilder_ != null || party_ != null; - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - * @return The party. - */ - public io.vegaprotocol.vega.Vega.Party getParty() { - if (partyBuilder_ == null) { - return party_ == null ? io.vegaprotocol.vega.Vega.Party.getDefaultInstance() : party_; - } else { - return partyBuilder_.getMessage(); - } - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public Builder setParty(io.vegaprotocol.vega.Vega.Party value) { - if (partyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - party_ = value; - onChanged(); - } else { - partyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public Builder setParty( - io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { - if (partyBuilder_ == null) { - party_ = builderForValue.build(); - onChanged(); - } else { - partyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public Builder mergeParty(io.vegaprotocol.vega.Vega.Party value) { - if (partyBuilder_ == null) { - if (party_ != null) { - party_ = - io.vegaprotocol.vega.Vega.Party.newBuilder(party_).mergeFrom(value).buildPartial(); - } else { - party_ = value; - } - onChanged(); - } else { - partyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public Builder clearParty() { - if (partyBuilder_ == null) { - party_ = null; - onChanged(); - } else { - party_ = null; - partyBuilder_ = null; - } - - return this; - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public io.vegaprotocol.vega.Vega.Party.Builder getPartyBuilder() { - - onChanged(); - return getPartyFieldBuilder().getBuilder(); - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartyOrBuilder() { - if (partyBuilder_ != null) { - return partyBuilder_.getMessageOrBuilder(); - } else { - return party_ == null ? - io.vegaprotocol.vega.Vega.Party.getDefaultInstance() : party_; - } - } - /** - *
-       * A party, if found
-       * 
- * - * .vega.Party party = 1 [json_name = "party"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> - getPartyFieldBuilder() { - if (partyBuilder_ == null) { - partyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder>( - getParty(), - getParentForChildren(), - isClean()); - party_ = null; - } - return partyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartyByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartyByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.PartyByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartyByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PartyByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartyByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartyByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartiesRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for a list of all parties
-   * 
- * - * Protobuf type {@code api.v1.PartiesRequest} - */ - public static final class PartiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartiesRequest) - PartiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartiesRequest.newBuilder() to construct. - private PartiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartiesRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartiesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartiesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartiesRequest.class, io.vegaprotocol.vega.api.Trading.PartiesRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartiesRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartiesRequest other = (io.vegaprotocol.vega.api.Trading.PartiesRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of all parties
-     * 
- * - * Protobuf type {@code api.v1.PartiesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartiesRequest) - io.vegaprotocol.vega.api.Trading.PartiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartiesRequest.class, io.vegaprotocol.vega.api.Trading.PartiesRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartiesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesRequest build() { - io.vegaprotocol.vega.api.Trading.PartiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PartiesRequest result = new io.vegaprotocol.vega.api.Trading.PartiesRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartiesRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartiesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartiesRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PartiesRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartiesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartiesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartiesRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartiesRequest) - private static final io.vegaprotocol.vega.api.Trading.PartiesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartiesRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PartiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartiesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartiesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - java.util.List - getPartiesList(); - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - io.vegaprotocol.vega.Vega.Party getParties(int index); - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - int getPartiesCount(); - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - java.util.List - getPartiesOrBuilderList(); - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( - int index); - } - /** - *
-   * Response to a request for a list of parties
-   * 
- * - * Protobuf type {@code api.v1.PartiesResponse} - */ - public static final class PartiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartiesResponse) - PartiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartiesResponse.newBuilder() to construct. - private PartiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartiesResponse() { - parties_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartiesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartiesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parties_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Party.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - parties_ = java.util.Collections.unmodifiableList(parties_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartiesResponse.class, io.vegaprotocol.vega.api.Trading.PartiesResponse.Builder.class); - } - - public static final int PARTIES_FIELD_NUMBER = 1; - private java.util.List parties_; - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - @java.lang.Override - public java.util.List getPartiesList() { - return parties_; - } - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - @java.lang.Override - public java.util.List - getPartiesOrBuilderList() { - return parties_; - } - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - @java.lang.Override - public int getPartiesCount() { - return parties_.size(); - } - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Party getParties(int index) { - return parties_.get(index); - } - /** - *
-     * A list of 0 or more parties
-     * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( - int index) { - return parties_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < parties_.size(); i++) { - output.writeMessage(1, parties_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < parties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parties_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartiesResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartiesResponse other = (io.vegaprotocol.vega.api.Trading.PartiesResponse) obj; - - if (!getPartiesList() - .equals(other.getPartiesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPartiesCount() > 0) { - hash = (37 * hash) + PARTIES_FIELD_NUMBER; - hash = (53 * hash) + getPartiesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a request for a list of parties
-     * 
- * - * Protobuf type {@code api.v1.PartiesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartiesResponse) - io.vegaprotocol.vega.api.Trading.PartiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartiesResponse.class, io.vegaprotocol.vega.api.Trading.PartiesResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartiesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPartiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (partiesBuilder_ == null) { - parties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - partiesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartiesResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesResponse build() { - io.vegaprotocol.vega.api.Trading.PartiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PartiesResponse result = new io.vegaprotocol.vega.api.Trading.PartiesResponse(this); - int from_bitField0_ = bitField0_; - if (partiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - parties_ = java.util.Collections.unmodifiableList(parties_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.parties_ = parties_; - } else { - result.parties_ = partiesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartiesResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartiesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartiesResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PartiesResponse.getDefaultInstance()) return this; - if (partiesBuilder_ == null) { - if (!other.parties_.isEmpty()) { - if (parties_.isEmpty()) { - parties_ = other.parties_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePartiesIsMutable(); - parties_.addAll(other.parties_); - } - onChanged(); - } - } else { - if (!other.parties_.isEmpty()) { - if (partiesBuilder_.isEmpty()) { - partiesBuilder_.dispose(); - partiesBuilder_ = null; - parties_ = other.parties_; - bitField0_ = (bitField0_ & ~0x00000001); - partiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartiesFieldBuilder() : null; - } else { - partiesBuilder_.addAllMessages(other.parties_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartiesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartiesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List parties_ = - java.util.Collections.emptyList(); - private void ensurePartiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - parties_ = new java.util.ArrayList(parties_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> partiesBuilder_; - - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public java.util.List getPartiesList() { - if (partiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(parties_); - } else { - return partiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public int getPartiesCount() { - if (partiesBuilder_ == null) { - return parties_.size(); - } else { - return partiesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public io.vegaprotocol.vega.Vega.Party getParties(int index) { - if (partiesBuilder_ == null) { - return parties_.get(index); - } else { - return partiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder setParties( - int index, io.vegaprotocol.vega.Vega.Party value) { - if (partiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartiesIsMutable(); - parties_.set(index, value); - onChanged(); - } else { - partiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder setParties( - int index, io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { - if (partiesBuilder_ == null) { - ensurePartiesIsMutable(); - parties_.set(index, builderForValue.build()); - onChanged(); - } else { - partiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder addParties(io.vegaprotocol.vega.Vega.Party value) { - if (partiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartiesIsMutable(); - parties_.add(value); - onChanged(); - } else { - partiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder addParties( - int index, io.vegaprotocol.vega.Vega.Party value) { - if (partiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartiesIsMutable(); - parties_.add(index, value); - onChanged(); - } else { - partiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder addParties( - io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { - if (partiesBuilder_ == null) { - ensurePartiesIsMutable(); - parties_.add(builderForValue.build()); - onChanged(); - } else { - partiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder addParties( - int index, io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { - if (partiesBuilder_ == null) { - ensurePartiesIsMutable(); - parties_.add(index, builderForValue.build()); - onChanged(); - } else { - partiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder addAllParties( - java.lang.Iterable values) { - if (partiesBuilder_ == null) { - ensurePartiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parties_); - onChanged(); - } else { - partiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder clearParties() { - if (partiesBuilder_ == null) { - parties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - partiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public Builder removeParties(int index) { - if (partiesBuilder_ == null) { - ensurePartiesIsMutable(); - parties_.remove(index); - onChanged(); - } else { - partiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public io.vegaprotocol.vega.Vega.Party.Builder getPartiesBuilder( - int index) { - return getPartiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( - int index) { - if (partiesBuilder_ == null) { - return parties_.get(index); } else { - return partiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public java.util.List - getPartiesOrBuilderList() { - if (partiesBuilder_ != null) { - return partiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parties_); - } - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public io.vegaprotocol.vega.Vega.Party.Builder addPartiesBuilder() { - return getPartiesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Party.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public io.vegaprotocol.vega.Vega.Party.Builder addPartiesBuilder( - int index) { - return getPartiesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Party.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more parties
-       * 
- * - * repeated .vega.Party parties = 1 [json_name = "parties"]; - */ - public java.util.List - getPartiesBuilderList() { - return getPartiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> - getPartiesFieldBuilder() { - if (partiesBuilder_ == null) { - partiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder>( - parties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - parties_ = null; - } - return partiesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartiesResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartiesResponse) - private static final io.vegaprotocol.vega.api.Trading.PartiesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartiesResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PartiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartiesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByPartyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByPartyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier. Required field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier. Required field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - boolean hasPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return The pagination. - */ - io.vegaprotocol.vega.api.Trading.Pagination getPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * Request for a list of trades relating to the given party
-   * Optionally, the list can be additionally filtered for trades by market
-   * 
- * - * Protobuf type {@code api.v1.TradesByPartyRequest} - */ - public static final class TradesByPartyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByPartyRequest) - TradesByPartyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByPartyRequest.newBuilder() to construct. - private TradesByPartyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByPartyRequest() { - partyId_ = ""; - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByPartyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByPartyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 26: { - io.vegaprotocol.vega.api.Trading.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.class, io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier. Required field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier. Required field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - @java.lang.Override - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return The pagination. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByPartyRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest other = (io.vegaprotocol.vega.api.Trading.TradesByPartyRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByPartyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of trades relating to the given party
-     * Optionally, the list can be additionally filtered for trades by market
-     * 
- * - * Protobuf type {@code api.v1.TradesByPartyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByPartyRequest) - io.vegaprotocol.vega.api.Trading.TradesByPartyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.class, io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyRequest build() { - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest result = new io.vegaprotocol.vega.api.Trading.TradesByPartyRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByPartyRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByPartyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByPartyRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByPartyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier. Required field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier. Required field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier. Required field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier. Required field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier. Required field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> paginationBuilder_; - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - * @return The pagination. - */ - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public Builder setPagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public Builder setPagination( - io.vegaprotocol.vega.api.Trading.Pagination.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public Builder mergePagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - io.vegaprotocol.vega.api.Trading.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.Pagination.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 3 [json_name = "pagination"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByPartyRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByPartyRequest) - private static final io.vegaprotocol.vega.api.Trading.TradesByPartyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByPartyRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByPartyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByPartyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByPartyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByPartyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByPartyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.Trade getTrades(int index); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - int getTradesCount(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesOrBuilderList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index); - } - /** - *
-   * Response for a list of trades relating to a party
-   * 
- * - * Protobuf type {@code api.v1.TradesByPartyResponse} - */ - public static final class TradesByPartyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByPartyResponse) - TradesByPartyResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByPartyResponse.newBuilder() to construct. - private TradesByPartyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByPartyResponse() { - trades_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByPartyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByPartyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - trades_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.class, io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.Builder.class); - } - - public static final int TRADES_FIELD_NUMBER = 1; - private java.util.List trades_; - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List getTradesList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List - getTradesOrBuilderList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public int getTradesCount() { - return trades_.size(); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - return trades_.get(index); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - return trades_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < trades_.size(); i++) { - output.writeMessage(1, trades_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < trades_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, trades_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByPartyResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse other = (io.vegaprotocol.vega.api.Trading.TradesByPartyResponse) obj; - - if (!getTradesList() - .equals(other.getTradesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTradesCount() > 0) { - hash = (37 * hash) + TRADES_FIELD_NUMBER; - hash = (53 * hash) + getTradesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByPartyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of trades relating to a party
-     * 
- * - * Protobuf type {@code api.v1.TradesByPartyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByPartyResponse) - io.vegaprotocol.vega.api.Trading.TradesByPartyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.class, io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTradesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tradesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByPartyResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyResponse build() { - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse result = new io.vegaprotocol.vega.api.Trading.TradesByPartyResponse(this); - int from_bitField0_ = bitField0_; - if (tradesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trades_ = trades_; - } else { - result.trades_ = tradesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByPartyResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByPartyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByPartyResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.getDefaultInstance()) return this; - if (tradesBuilder_ == null) { - if (!other.trades_.isEmpty()) { - if (trades_.isEmpty()) { - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTradesIsMutable(); - trades_.addAll(other.trades_); - } - onChanged(); - } - } else { - if (!other.trades_.isEmpty()) { - if (tradesBuilder_.isEmpty()) { - tradesBuilder_.dispose(); - tradesBuilder_ = null; - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - tradesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTradesFieldBuilder() : null; - } else { - tradesBuilder_.addAllMessages(other.trades_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByPartyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List trades_ = - java.util.Collections.emptyList(); - private void ensureTradesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(trades_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> tradesBuilder_; - - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List getTradesList() { - if (tradesBuilder_ == null) { - return java.util.Collections.unmodifiableList(trades_); - } else { - return tradesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public int getTradesCount() { - if (tradesBuilder_ == null) { - return trades_.size(); - } else { - return tradesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); - } else { - return tradesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.set(index, value); - onChanged(); - } else { - tradesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.set(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades(io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(value); - onChanged(); - } else { - tradesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(index, value); - onChanged(); - } else { - tradesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addAllTrades( - java.lang.Iterable values) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trades_); - onChanged(); - } else { - tradesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder clearTrades() { - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tradesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder removeTrades(int index) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.remove(index); - onChanged(); - } else { - tradesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getTradesBuilder( - int index) { - return getTradesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); } else { - return tradesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesOrBuilderList() { - if (tradesBuilder_ != null) { - return tradesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trades_); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder() { - return getTradesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder( - int index) { - return getTradesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesBuilderList() { - return getTradesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getTradesFieldBuilder() { - if (tradesBuilder_ == null) { - tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - trades_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - trades_ = null; - } - return tradesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByPartyResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByPartyResponse) - private static final io.vegaprotocol.vega.api.Trading.TradesByPartyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByPartyResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByPartyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByPartyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByPartyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByPartyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByOrderRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByOrderRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. - */ - java.lang.String getOrderId(); - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. - */ - com.google.protobuf.ByteString - getOrderIdBytes(); - } - /** - *
-   * Request for a list of trades related to an order
-   * 
- * - * Protobuf type {@code api.v1.TradesByOrderRequest} - */ - public static final class TradesByOrderRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByOrderRequest) - TradesByOrderRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByOrderRequest.newBuilder() to construct. - private TradesByOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByOrderRequest() { - orderId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByOrderRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByOrderRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - orderId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.class, io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.Builder.class); - } - - public static final int ORDER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object orderId_; - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. - */ - @java.lang.Override - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } - } - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOrderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOrderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByOrderRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest other = (io.vegaprotocol.vega.api.Trading.TradesByOrderRequest) obj; - - if (!getOrderId() - .equals(other.getOrderId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrderId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByOrderRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of trades related to an order
-     * 
- * - * Protobuf type {@code api.v1.TradesByOrderRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByOrderRequest) - io.vegaprotocol.vega.api.Trading.TradesByOrderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.class, io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - orderId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderRequest build() { - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest result = new io.vegaprotocol.vega.api.Trading.TradesByOrderRequest(this); - result.orderId_ = orderId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByOrderRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByOrderRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByOrderRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.getDefaultInstance()) return this; - if (!other.getOrderId().isEmpty()) { - orderId_ = other.orderId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByOrderRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object orderId_ = ""; - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The orderId. - */ - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return The bytes for orderId. - */ - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @param value The orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderId_ = value; - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @return This builder for chaining. - */ - public Builder clearOrderId() { - - orderId_ = getDefaultInstance().getOrderId(); - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId"]; - * @param value The bytes for orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByOrderRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByOrderRequest) - private static final io.vegaprotocol.vega.api.Trading.TradesByOrderRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByOrderRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByOrderRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByOrderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByOrderRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByOrderResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByOrderResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.Trade getTrades(int index); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - int getTradesCount(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesOrBuilderList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index); - } - /** - *
-   * Response for a list of trades related to an order
-   * 
- * - * Protobuf type {@code api.v1.TradesByOrderResponse} - */ - public static final class TradesByOrderResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByOrderResponse) - TradesByOrderResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByOrderResponse.newBuilder() to construct. - private TradesByOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByOrderResponse() { - trades_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByOrderResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByOrderResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - trades_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.class, io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.Builder.class); - } - - public static final int TRADES_FIELD_NUMBER = 1; - private java.util.List trades_; - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List getTradesList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List - getTradesOrBuilderList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public int getTradesCount() { - return trades_.size(); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - return trades_.get(index); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - return trades_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < trades_.size(); i++) { - output.writeMessage(1, trades_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < trades_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, trades_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByOrderResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse other = (io.vegaprotocol.vega.api.Trading.TradesByOrderResponse) obj; - - if (!getTradesList() - .equals(other.getTradesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTradesCount() > 0) { - hash = (37 * hash) + TRADES_FIELD_NUMBER; - hash = (53 * hash) + getTradesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByOrderResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of trades related to an order
-     * 
- * - * Protobuf type {@code api.v1.TradesByOrderResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByOrderResponse) - io.vegaprotocol.vega.api.Trading.TradesByOrderResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.class, io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTradesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tradesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByOrderResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderResponse build() { - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse result = new io.vegaprotocol.vega.api.Trading.TradesByOrderResponse(this); - int from_bitField0_ = bitField0_; - if (tradesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trades_ = trades_; - } else { - result.trades_ = tradesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByOrderResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByOrderResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByOrderResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.getDefaultInstance()) return this; - if (tradesBuilder_ == null) { - if (!other.trades_.isEmpty()) { - if (trades_.isEmpty()) { - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTradesIsMutable(); - trades_.addAll(other.trades_); - } - onChanged(); - } - } else { - if (!other.trades_.isEmpty()) { - if (tradesBuilder_.isEmpty()) { - tradesBuilder_.dispose(); - tradesBuilder_ = null; - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - tradesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTradesFieldBuilder() : null; - } else { - tradesBuilder_.addAllMessages(other.trades_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByOrderResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List trades_ = - java.util.Collections.emptyList(); - private void ensureTradesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(trades_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> tradesBuilder_; - - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List getTradesList() { - if (tradesBuilder_ == null) { - return java.util.Collections.unmodifiableList(trades_); - } else { - return tradesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public int getTradesCount() { - if (tradesBuilder_ == null) { - return trades_.size(); - } else { - return tradesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); - } else { - return tradesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.set(index, value); - onChanged(); - } else { - tradesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.set(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades(io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(value); - onChanged(); - } else { - tradesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(index, value); - onChanged(); - } else { - tradesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addAllTrades( - java.lang.Iterable values) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trades_); - onChanged(); - } else { - tradesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder clearTrades() { - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tradesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder removeTrades(int index) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.remove(index); - onChanged(); - } else { - tradesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getTradesBuilder( - int index) { - return getTradesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); } else { - return tradesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesOrBuilderList() { - if (tradesBuilder_ != null) { - return tradesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trades_); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder() { - return getTradesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder( - int index) { - return getTradesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesBuilderList() { - return getTradesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getTradesFieldBuilder() { - if (tradesBuilder_ == null) { - tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - trades_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - trades_ = null; - } - return tradesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByOrderResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByOrderResponse) - private static final io.vegaprotocol.vega.api.Trading.TradesByOrderResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByOrderResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByOrderResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByOrderResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByOrderResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByOrderResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AccountsSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AccountsSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The bytes for asset. - */ - com.google.protobuf.ByteString - getAssetBytes(); - - /** - *
-     * Account type to subscribe to, required field
-     * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-     * Account type to subscribe to, required field
-     * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The type. - */ - io.vegaprotocol.vega.Vega.AccountType getType(); - } - /** - *
-   * Request to subscribe to a stream of (Accounts)[#vega.Account]
-   * 
- * - * Protobuf type {@code api.v1.AccountsSubscribeRequest} - */ - public static final class AccountsSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AccountsSubscribeRequest) - AccountsSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccountsSubscribeRequest.newBuilder() to construct. - private AccountsSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccountsSubscribeRequest() { - marketId_ = ""; - partyId_ = ""; - asset_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccountsSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AccountsSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSET_FIELD_NUMBER = 3; - private volatile java.lang.Object asset_; - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 4; - private int type_; - /** - *
-     * Account type to subscribe to, required field
-     * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Account type to subscribe to, required field
-     * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, asset_); - } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(4, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, asset_); - } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (Accounts)[#vega.Account]
-     * 
- * - * Protobuf type {@code api.v1.AccountsSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AccountsSubscribeRequest) - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - partyId_ = ""; - - asset_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest(this); - result.marketId_ = marketId_; - result.partyId_ = partyId_; - result.asset_ = asset_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object asset_ = ""; - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 3 [json_name = "asset"]; - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 3 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 3 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { - - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 3 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * Account type to subscribe to, required field
-       * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-       * Account type to subscribe to, required field
-       * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Account type to subscribe to, required field
-       * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; - } - /** - *
-       * Account type to subscribe to, required field
-       * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(io.vegaprotocol.vega.Vega.AccountType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Account type to subscribe to, required field
-       * 
- * - * .vega.AccountType type = 4 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AccountsSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountsSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccountsSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AccountsSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.AccountsSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. - */ - io.vegaprotocol.vega.Vega.Account getAccount(); - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder(); - } - /** - * Protobuf type {@code api.v1.AccountsSubscribeResponse} - */ - public static final class AccountsSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.AccountsSubscribeResponse) - AccountsSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccountsSubscribeResponse.newBuilder() to construct. - private AccountsSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccountsSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccountsSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AccountsSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Account.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Account account_; - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getAccount() { - return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { - return getAccount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (account_ != null) { - output.writeMessage(1, getAccount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.AccountsSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.AccountsSubscribeResponse) - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - accountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_AccountsSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse(this); - if (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountBuilder_; - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return accountBuilder_ != null || account_ != null; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - * @return The account. - */ - public io.vegaprotocol.vega.Vega.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public Builder setAccount(io.vegaprotocol.vega.Vega.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public Builder setAccount( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public Builder mergeAccount(io.vegaprotocol.vega.Vega.Account value) { - if (accountBuilder_ == null) { - if (account_ != null) { - account_ = - io.vegaprotocol.vega.Vega.Account.newBuilder(account_).mergeFrom(value).buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - return this; - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getAccountBuilder() { - - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - io.vegaprotocol.vega.Vega.Account.getDefaultInstance() : account_; - } - } - /** - * .vega.Account account = 1 [json_name = "account"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.AccountsSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountsSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccountsSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of (Orders)[#vega.Order]
-   * 
- * - * Protobuf type {@code api.v1.OrdersSubscribeRequest} - */ - public static final class OrdersSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersSubscribeRequest) - OrdersSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersSubscribeRequest.newBuilder() to construct. - private OrdersSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersSubscribeRequest() { - marketId_ = ""; - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (Orders)[#vega.Order]
-     * 
- * - * Protobuf type {@code api.v1.OrdersSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersSubscribeRequest) - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest(this); - result.marketId_ = marketId_; - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of (Trades)[#vega.Trade]
-   * 
- * - * Protobuf type {@code api.v1.TradesSubscribeRequest} - */ - public static final class TradesSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesSubscribeRequest) - TradesSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesSubscribeRequest.newBuilder() to construct. - private TradesSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesSubscribeRequest() { - marketId_ = ""; - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (Trades)[#vega.Trade]
-     * 
- * - * Protobuf type {@code api.v1.TradesSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesSubscribeRequest) - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest(this); - result.marketId_ = marketId_; - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 2 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CandlesSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.CandlesSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Time interval for the candles, required field.
-     * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - int getIntervalValue(); - /** - *
-     * Time interval for the candles, required field.
-     * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The interval. - */ - io.vegaprotocol.vega.Vega.Interval getInterval(); - } - /** - *
-   * Request to subscribe to a stream of (Candles)[#vega.Candle]
-   * 
- * - * Protobuf type {@code api.v1.CandlesSubscribeRequest} - */ - public static final class CandlesSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.CandlesSubscribeRequest) - CandlesSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CandlesSubscribeRequest.newBuilder() to construct. - private CandlesSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CandlesSubscribeRequest() { - marketId_ = ""; - interval_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CandlesSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CandlesSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - interval_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERVAL_FIELD_NUMBER = 2; - private int interval_; - /** - *
-     * Time interval for the candles, required field.
-     * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - @java.lang.Override public int getIntervalValue() { - return interval_; - } - /** - *
-     * Time interval for the candles, required field.
-     * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The interval. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.Interval getInterval() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Interval result = io.vegaprotocol.vega.Vega.Interval.valueOf(interval_); - return result == null ? io.vegaprotocol.vega.Vega.Interval.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (interval_ != io.vegaprotocol.vega.Vega.Interval.INTERVAL_UNSPECIFIED.getNumber()) { - output.writeEnum(2, interval_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (interval_ != io.vegaprotocol.vega.Vega.Interval.INTERVAL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, interval_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (interval_ != other.interval_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + interval_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (Candles)[#vega.Candle]
-     * 
- * - * Protobuf type {@code api.v1.CandlesSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.CandlesSubscribeRequest) - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - interval_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest(this); - result.marketId_ = marketId_; - result.interval_ = interval_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.interval_ != 0) { - setIntervalValue(other.getIntervalValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private int interval_ = 0; - /** - *
-       * Time interval for the candles, required field.
-       * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - @java.lang.Override public int getIntervalValue() { - return interval_; - } - /** - *
-       * Time interval for the candles, required field.
-       * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @param value The enum numeric value on the wire for interval to set. - * @return This builder for chaining. - */ - public Builder setIntervalValue(int value) { - - interval_ = value; - onChanged(); - return this; - } - /** - *
-       * Time interval for the candles, required field.
-       * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return The interval. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Interval getInterval() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Interval result = io.vegaprotocol.vega.Vega.Interval.valueOf(interval_); - return result == null ? io.vegaprotocol.vega.Vega.Interval.UNRECOGNIZED : result; - } - /** - *
-       * Time interval for the candles, required field.
-       * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @param value The interval to set. - * @return This builder for chaining. - */ - public Builder setInterval(io.vegaprotocol.vega.Vega.Interval value) { - if (value == null) { - throw new NullPointerException(); - } - - interval_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Time interval for the candles, required field.
-       * 
- * - * .vega.Interval interval = 2 [json_name = "interval"]; - * @return This builder for chaining. - */ - public Builder clearInterval() { - - interval_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.CandlesSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CandlesSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CandlesSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CandlesSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.CandlesSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return Whether the candle field is set. - */ - boolean hasCandle(); - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return The candle. - */ - io.vegaprotocol.vega.Vega.Candle getCandle(); - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - io.vegaprotocol.vega.Vega.CandleOrBuilder getCandleOrBuilder(); - } - /** - * Protobuf type {@code api.v1.CandlesSubscribeResponse} - */ - public static final class CandlesSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.CandlesSubscribeResponse) - CandlesSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CandlesSubscribeResponse.newBuilder() to construct. - private CandlesSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CandlesSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CandlesSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CandlesSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Candle.Builder subBuilder = null; - if (candle_ != null) { - subBuilder = candle_.toBuilder(); - } - candle_ = input.readMessage(io.vegaprotocol.vega.Vega.Candle.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(candle_); - candle_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.Builder.class); - } - - public static final int CANDLE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Candle candle_; - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return Whether the candle field is set. - */ - @java.lang.Override - public boolean hasCandle() { - return candle_ != null; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return The candle. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Candle getCandle() { - return candle_ == null ? io.vegaprotocol.vega.Vega.Candle.getDefaultInstance() : candle_; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.CandleOrBuilder getCandleOrBuilder() { - return getCandle(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (candle_ != null) { - output.writeMessage(1, getCandle()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (candle_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCandle()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse) obj; - - if (hasCandle() != other.hasCandle()) return false; - if (hasCandle()) { - if (!getCandle() - .equals(other.getCandle())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCandle()) { - hash = (37 * hash) + CANDLE_FIELD_NUMBER; - hash = (53 * hash) + getCandle().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.CandlesSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.CandlesSubscribeResponse) - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (candleBuilder_ == null) { - candle_ = null; - } else { - candle_ = null; - candleBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse(this); - if (candleBuilder_ == null) { - result.candle_ = candle_; - } else { - result.candle_ = candleBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.getDefaultInstance()) return this; - if (other.hasCandle()) { - mergeCandle(other.getCandle()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Candle candle_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder> candleBuilder_; - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return Whether the candle field is set. - */ - public boolean hasCandle() { - return candleBuilder_ != null || candle_ != null; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - * @return The candle. - */ - public io.vegaprotocol.vega.Vega.Candle getCandle() { - if (candleBuilder_ == null) { - return candle_ == null ? io.vegaprotocol.vega.Vega.Candle.getDefaultInstance() : candle_; - } else { - return candleBuilder_.getMessage(); - } - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public Builder setCandle(io.vegaprotocol.vega.Vega.Candle value) { - if (candleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - candle_ = value; - onChanged(); - } else { - candleBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public Builder setCandle( - io.vegaprotocol.vega.Vega.Candle.Builder builderForValue) { - if (candleBuilder_ == null) { - candle_ = builderForValue.build(); - onChanged(); - } else { - candleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public Builder mergeCandle(io.vegaprotocol.vega.Vega.Candle value) { - if (candleBuilder_ == null) { - if (candle_ != null) { - candle_ = - io.vegaprotocol.vega.Vega.Candle.newBuilder(candle_).mergeFrom(value).buildPartial(); - } else { - candle_ = value; - } - onChanged(); - } else { - candleBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public Builder clearCandle() { - if (candleBuilder_ == null) { - candle_ = null; - onChanged(); - } else { - candle_ = null; - candleBuilder_ = null; - } - - return this; - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public io.vegaprotocol.vega.Vega.Candle.Builder getCandleBuilder() { - - onChanged(); - return getCandleFieldBuilder().getBuilder(); - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - public io.vegaprotocol.vega.Vega.CandleOrBuilder getCandleOrBuilder() { - if (candleBuilder_ != null) { - return candleBuilder_.getMessageOrBuilder(); - } else { - return candle_ == null ? - io.vegaprotocol.vega.Vega.Candle.getDefaultInstance() : candle_; - } - } - /** - * .vega.Candle candle = 1 [json_name = "candle"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder> - getCandleFieldBuilder() { - if (candleBuilder_ == null) { - candleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder>( - getCandle(), - getParentForChildren(), - isClean()); - candle_ = null; - } - return candleBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.CandlesSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CandlesSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CandlesSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data
-   * 
- * - * Protobuf type {@code api.v1.MarketDepthSubscribeRequest} - */ - public static final class MarketDepthSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthSubscribeRequest) - MarketDepthSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthSubscribeRequest.newBuilder() to construct. - private MarketDepthSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthSubscribeRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data
-     * 
- * - * Protobuf type {@code api.v1.MarketDepthSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthSubscribeRequest) - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return Whether the marketDepth field is set. - */ - boolean hasMarketDepth(); - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return The marketDepth. - */ - io.vegaprotocol.vega.Vega.MarketDepth getMarketDepth(); - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - io.vegaprotocol.vega.Vega.MarketDepthOrBuilder getMarketDepthOrBuilder(); - } - /** - * Protobuf type {@code api.v1.MarketDepthSubscribeResponse} - */ - public static final class MarketDepthSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthSubscribeResponse) - MarketDepthSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthSubscribeResponse.newBuilder() to construct. - private MarketDepthSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.MarketDepth.Builder subBuilder = null; - if (marketDepth_ != null) { - subBuilder = marketDepth_.toBuilder(); - } - marketDepth_ = input.readMessage(io.vegaprotocol.vega.Vega.MarketDepth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(marketDepth_); - marketDepth_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.Builder.class); - } - - public static final int MARKET_DEPTH_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.MarketDepth marketDepth_; - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return Whether the marketDepth field is set. - */ - @java.lang.Override - public boolean hasMarketDepth() { - return marketDepth_ != null; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return The marketDepth. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDepth getMarketDepth() { - return marketDepth_ == null ? io.vegaprotocol.vega.Vega.MarketDepth.getDefaultInstance() : marketDepth_; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDepthOrBuilder getMarketDepthOrBuilder() { - return getMarketDepth(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (marketDepth_ != null) { - output.writeMessage(1, getMarketDepth()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (marketDepth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMarketDepth()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse) obj; - - if (hasMarketDepth() != other.hasMarketDepth()) return false; - if (hasMarketDepth()) { - if (!getMarketDepth() - .equals(other.getMarketDepth())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarketDepth()) { - hash = (37 * hash) + MARKET_DEPTH_FIELD_NUMBER; - hash = (53 * hash) + getMarketDepth().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.MarketDepthSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthSubscribeResponse) - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketDepthBuilder_ == null) { - marketDepth_ = null; - } else { - marketDepth_ = null; - marketDepthBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse(this); - if (marketDepthBuilder_ == null) { - result.marketDepth_ = marketDepth_; - } else { - result.marketDepth_ = marketDepthBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.getDefaultInstance()) return this; - if (other.hasMarketDepth()) { - mergeMarketDepth(other.getMarketDepth()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarketDepth marketDepth_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepth, io.vegaprotocol.vega.Vega.MarketDepth.Builder, io.vegaprotocol.vega.Vega.MarketDepthOrBuilder> marketDepthBuilder_; - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return Whether the marketDepth field is set. - */ - public boolean hasMarketDepth() { - return marketDepthBuilder_ != null || marketDepth_ != null; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - * @return The marketDepth. - */ - public io.vegaprotocol.vega.Vega.MarketDepth getMarketDepth() { - if (marketDepthBuilder_ == null) { - return marketDepth_ == null ? io.vegaprotocol.vega.Vega.MarketDepth.getDefaultInstance() : marketDepth_; - } else { - return marketDepthBuilder_.getMessage(); - } - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public Builder setMarketDepth(io.vegaprotocol.vega.Vega.MarketDepth value) { - if (marketDepthBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - marketDepth_ = value; - onChanged(); - } else { - marketDepthBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public Builder setMarketDepth( - io.vegaprotocol.vega.Vega.MarketDepth.Builder builderForValue) { - if (marketDepthBuilder_ == null) { - marketDepth_ = builderForValue.build(); - onChanged(); - } else { - marketDepthBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public Builder mergeMarketDepth(io.vegaprotocol.vega.Vega.MarketDepth value) { - if (marketDepthBuilder_ == null) { - if (marketDepth_ != null) { - marketDepth_ = - io.vegaprotocol.vega.Vega.MarketDepth.newBuilder(marketDepth_).mergeFrom(value).buildPartial(); - } else { - marketDepth_ = value; - } - onChanged(); - } else { - marketDepthBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public Builder clearMarketDepth() { - if (marketDepthBuilder_ == null) { - marketDepth_ = null; - onChanged(); - } else { - marketDepth_ = null; - marketDepthBuilder_ = null; - } - - return this; - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public io.vegaprotocol.vega.Vega.MarketDepth.Builder getMarketDepthBuilder() { - - onChanged(); - return getMarketDepthFieldBuilder().getBuilder(); - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - public io.vegaprotocol.vega.Vega.MarketDepthOrBuilder getMarketDepthOrBuilder() { - if (marketDepthBuilder_ != null) { - return marketDepthBuilder_.getMessageOrBuilder(); - } else { - return marketDepth_ == null ? - io.vegaprotocol.vega.Vega.MarketDepth.getDefaultInstance() : marketDepth_; - } - } - /** - * .vega.MarketDepth market_depth = 1 [json_name = "marketDepth"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepth, io.vegaprotocol.vega.Vega.MarketDepth.Builder, io.vegaprotocol.vega.Vega.MarketDepthOrBuilder> - getMarketDepthFieldBuilder() { - if (marketDepthBuilder_ == null) { - marketDepthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepth, io.vegaprotocol.vega.Vega.MarketDepth.Builder, io.vegaprotocol.vega.Vega.MarketDepthOrBuilder>( - getMarketDepth(), - getParentForChildren(), - isClean()); - marketDepth_ = null; - } - return marketDepthBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthUpdatesSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthUpdatesSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data
-   * 
- * - * Protobuf type {@code api.v1.MarketDepthUpdatesSubscribeRequest} - */ - public static final class MarketDepthUpdatesSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthUpdatesSubscribeRequest) - MarketDepthUpdatesSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthUpdatesSubscribeRequest.newBuilder() to construct. - private MarketDepthUpdatesSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthUpdatesSubscribeRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthUpdatesSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthUpdatesSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data
-     * 
- * - * Protobuf type {@code api.v1.MarketDepthUpdatesSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthUpdatesSubscribeRequest) - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest(this); - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthUpdatesSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthUpdatesSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthUpdatesSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthUpdatesSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthUpdatesSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return Whether the update field is set. - */ - boolean hasUpdate(); - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return The update. - */ - io.vegaprotocol.vega.Vega.MarketDepthUpdate getUpdate(); - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder getUpdateOrBuilder(); - } - /** - * Protobuf type {@code api.v1.MarketDepthUpdatesSubscribeResponse} - */ - public static final class MarketDepthUpdatesSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthUpdatesSubscribeResponse) - MarketDepthUpdatesSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthUpdatesSubscribeResponse.newBuilder() to construct. - private MarketDepthUpdatesSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthUpdatesSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthUpdatesSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthUpdatesSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder subBuilder = null; - if (update_ != null) { - subBuilder = update_.toBuilder(); - } - update_ = input.readMessage(io.vegaprotocol.vega.Vega.MarketDepthUpdate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(update_); - update_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.Builder.class); - } - - public static final int UPDATE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.MarketDepthUpdate update_; - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return update_ != null; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return The update. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDepthUpdate getUpdate() { - return update_ == null ? io.vegaprotocol.vega.Vega.MarketDepthUpdate.getDefaultInstance() : update_; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder getUpdateOrBuilder() { - return getUpdate(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (update_ != null) { - output.writeMessage(1, getUpdate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (update_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdate()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse) obj; - - if (hasUpdate() != other.hasUpdate()) return false; - if (hasUpdate()) { - if (!getUpdate() - .equals(other.getUpdate())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUpdate()) { - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.MarketDepthUpdatesSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthUpdatesSubscribeResponse) - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse(this); - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.getDefaultInstance()) return this; - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarketDepthUpdate update_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepthUpdate, io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder, io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder> updateBuilder_; - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return updateBuilder_ != null || update_ != null; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - * @return The update. - */ - public io.vegaprotocol.vega.Vega.MarketDepthUpdate getUpdate() { - if (updateBuilder_ == null) { - return update_ == null ? io.vegaprotocol.vega.Vega.MarketDepthUpdate.getDefaultInstance() : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public Builder setUpdate(io.vegaprotocol.vega.Vega.MarketDepthUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public Builder setUpdate( - io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public Builder mergeUpdate(io.vegaprotocol.vega.Vega.MarketDepthUpdate value) { - if (updateBuilder_ == null) { - if (update_ != null) { - update_ = - io.vegaprotocol.vega.Vega.MarketDepthUpdate.newBuilder(update_).mergeFrom(value).buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder getUpdateBuilder() { - - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - public io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null ? - io.vegaprotocol.vega.Vega.MarketDepthUpdate.getDefaultInstance() : update_; - } - } - /** - * .vega.MarketDepthUpdate update = 1 [json_name = "update"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepthUpdate, io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder, io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarketDepthUpdate, io.vegaprotocol.vega.Vega.MarketDepthUpdate.Builder, io.vegaprotocol.vega.Vega.MarketDepthUpdateOrBuilder>( - getUpdate(), - getParentForChildren(), - isClean()); - update_ = null; - } - return updateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthUpdatesSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthUpdatesSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthUpdatesSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PositionsSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PositionsSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request to subscribe to a stream of (Positions)[#vega.Position]
-   * 
- * - * Protobuf type {@code api.v1.PositionsSubscribeRequest} - */ - public static final class PositionsSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PositionsSubscribeRequest) - PositionsSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PositionsSubscribeRequest.newBuilder() to construct. - private PositionsSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PositionsSubscribeRequest() { - partyId_ = ""; - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PositionsSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PositionsSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of (Positions)[#vega.Position]
-     * 
- * - * Protobuf type {@code api.v1.PositionsSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PositionsSubscribeRequest) - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PositionsSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PositionsSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PositionsSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PositionsSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PositionsSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return The position. - */ - io.vegaprotocol.vega.Vega.Position getPosition(); - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionOrBuilder(); - } - /** - * Protobuf type {@code api.v1.PositionsSubscribeResponse} - */ - public static final class PositionsSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PositionsSubscribeResponse) - PositionsSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PositionsSubscribeResponse.newBuilder() to construct. - private PositionsSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PositionsSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PositionsSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PositionsSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(io.vegaprotocol.vega.Vega.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.Builder.class); - } - - public static final int POSITION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Position position_; - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return The position. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Position getPosition() { - return position_ == null ? io.vegaprotocol.vega.Vega.Position.getDefaultInstance() : position_; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (position_ != null) { - output.writeMessage(1, getPosition()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPosition()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse) obj; - - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.PositionsSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PositionsSubscribeResponse) - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse(this); - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.getDefaultInstance()) return this; - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Position position_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder> positionBuilder_; - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - * @return The position. - */ - public io.vegaprotocol.vega.Vega.Position getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? io.vegaprotocol.vega.Vega.Position.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public Builder setPosition(io.vegaprotocol.vega.Vega.Position value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public Builder setPosition( - io.vegaprotocol.vega.Vega.Position.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public Builder mergePosition(io.vegaprotocol.vega.Vega.Position value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - io.vegaprotocol.vega.Vega.Position.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public io.vegaprotocol.vega.Vega.Position.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - public io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - io.vegaprotocol.vega.Vega.Position.getDefaultInstance() : position_; - } - } - /** - * .vega.Position position = 1 [json_name = "position"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PositionsSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PositionsSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PositionsSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersByMarketRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersByMarketRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - boolean hasPagination(); - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - io.vegaprotocol.vega.api.Trading.Pagination getPagination(); - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * Request for a list of orders for a market
-   * 
- * - * Protobuf type {@code api.v1.OrdersByMarketRequest} - */ - public static final class OrdersByMarketRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersByMarketRequest) - OrdersByMarketRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersByMarketRequest.newBuilder() to construct. - private OrdersByMarketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersByMarketRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersByMarketRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersByMarketRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.class, io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - @java.lang.Override - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - /** - *
-     * Optional pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest other = (io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of orders for a market
-     * 
- * - * Protobuf type {@code api.v1.OrdersByMarketRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersByMarketRequest) - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.class, io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest build() { - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest result = new io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest(this); - result.marketId_ = marketId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> paginationBuilder_; - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination( - io.vegaprotocol.vega.api.Trading.Pagination.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder mergePagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - io.vegaprotocol.vega.api.Trading.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.Pagination.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Optional pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersByMarketRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketRequest) - private static final io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersByMarketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersByMarketRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersByMarketResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersByMarketResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.Order getOrders(int index); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - int getOrdersCount(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersOrBuilderList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index); - } - /** - *
-   * Response for a list of orders for a market
-   * 
- * - * Protobuf type {@code api.v1.OrdersByMarketResponse} - */ - public static final class OrdersByMarketResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersByMarketResponse) - OrdersByMarketResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersByMarketResponse.newBuilder() to construct. - private OrdersByMarketResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersByMarketResponse() { - orders_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersByMarketResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersByMarketResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - orders_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.class, io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.Builder.class); - } - - public static final int ORDERS_FIELD_NUMBER = 1; - private java.util.List orders_; - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List getOrdersList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List - getOrdersOrBuilderList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public int getOrdersCount() { - return orders_.size(); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - return orders_.get(index); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - return orders_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < orders_.size(); i++) { - output.writeMessage(1, orders_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < orders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, orders_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse other = (io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse) obj; - - if (!getOrdersList() - .equals(other.getOrdersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOrdersCount() > 0) { - hash = (37 * hash) + ORDERS_FIELD_NUMBER; - hash = (53 * hash) + getOrdersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of orders for a market
-     * 
- * - * Protobuf type {@code api.v1.OrdersByMarketResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersByMarketResponse) - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.class, io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOrdersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ordersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByMarketResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse build() { - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse result = new io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse(this); - int from_bitField0_ = bitField0_; - if (ordersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.orders_ = orders_; - } else { - result.orders_ = ordersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.getDefaultInstance()) return this; - if (ordersBuilder_ == null) { - if (!other.orders_.isEmpty()) { - if (orders_.isEmpty()) { - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOrdersIsMutable(); - orders_.addAll(other.orders_); - } - onChanged(); - } - } else { - if (!other.orders_.isEmpty()) { - if (ordersBuilder_.isEmpty()) { - ordersBuilder_.dispose(); - ordersBuilder_ = null; - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - ordersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrdersFieldBuilder() : null; - } else { - ordersBuilder_.addAllMessages(other.orders_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List orders_ = - java.util.Collections.emptyList(); - private void ensureOrdersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(orders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> ordersBuilder_; - - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List getOrdersList() { - if (ordersBuilder_ == null) { - return java.util.Collections.unmodifiableList(orders_); - } else { - return ordersBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public int getOrdersCount() { - if (ordersBuilder_ == null) { - return orders_.size(); - } else { - return ordersBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); - } else { - return ordersBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.set(index, value); - onChanged(); - } else { - ordersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.set(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders(io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(value); - onChanged(); - } else { - ordersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(index, value); - onChanged(); - } else { - ordersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addAllOrders( - java.lang.Iterable values) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orders_); - onChanged(); - } else { - ordersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder clearOrders() { - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ordersBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder removeOrders(int index) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.remove(index); - onChanged(); - } else { - ordersBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrdersBuilder( - int index) { - return getOrdersFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); } else { - return ordersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersOrBuilderList() { - if (ordersBuilder_ != null) { - return ordersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orders_); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder( - int index) { - return getOrdersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersBuilderList() { - return getOrdersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrdersFieldBuilder() { - if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - orders_ = null; - } - return ordersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersByMarketResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketResponse) - private static final io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersByMarketResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersByMarketResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersByPartyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersByPartyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - boolean hasPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - io.vegaprotocol.vega.api.Trading.Pagination getPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * Request for a list of orders for a party
-   * 
- * - * Protobuf type {@code api.v1.OrdersByPartyRequest} - */ - public static final class OrdersByPartyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersByPartyRequest) - OrdersByPartyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersByPartyRequest.newBuilder() to construct. - private OrdersByPartyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersByPartyRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersByPartyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersByPartyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.class, io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - @java.lang.Override - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest other = (io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of orders for a party
-     * 
- * - * Protobuf type {@code api.v1.OrdersByPartyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersByPartyRequest) - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.class, io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest build() { - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest result = new io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest(this); - result.partyId_ = partyId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> paginationBuilder_; - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination( - io.vegaprotocol.vega.api.Trading.Pagination.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder mergePagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - io.vegaprotocol.vega.api.Trading.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.Pagination.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersByPartyRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyRequest) - private static final io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersByPartyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersByPartyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersByPartyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersByPartyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.Order getOrders(int index); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - int getOrdersCount(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersOrBuilderList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index); - } - /** - *
-   * Response for a list of orders for a party
-   * 
- * - * Protobuf type {@code api.v1.OrdersByPartyResponse} - */ - public static final class OrdersByPartyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersByPartyResponse) - OrdersByPartyResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersByPartyResponse.newBuilder() to construct. - private OrdersByPartyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersByPartyResponse() { - orders_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersByPartyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersByPartyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - orders_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.class, io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.Builder.class); - } - - public static final int ORDERS_FIELD_NUMBER = 1; - private java.util.List orders_; - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List getOrdersList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List - getOrdersOrBuilderList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public int getOrdersCount() { - return orders_.size(); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - return orders_.get(index); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - return orders_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < orders_.size(); i++) { - output.writeMessage(1, orders_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < orders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, orders_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse other = (io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse) obj; - - if (!getOrdersList() - .equals(other.getOrdersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOrdersCount() > 0) { - hash = (37 * hash) + ORDERS_FIELD_NUMBER; - hash = (53 * hash) + getOrdersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of orders for a party
-     * 
- * - * Protobuf type {@code api.v1.OrdersByPartyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersByPartyResponse) - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.class, io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOrdersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ordersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersByPartyResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse build() { - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse result = new io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse(this); - int from_bitField0_ = bitField0_; - if (ordersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.orders_ = orders_; - } else { - result.orders_ = ordersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.getDefaultInstance()) return this; - if (ordersBuilder_ == null) { - if (!other.orders_.isEmpty()) { - if (orders_.isEmpty()) { - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOrdersIsMutable(); - orders_.addAll(other.orders_); - } - onChanged(); - } - } else { - if (!other.orders_.isEmpty()) { - if (ordersBuilder_.isEmpty()) { - ordersBuilder_.dispose(); - ordersBuilder_ = null; - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - ordersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrdersFieldBuilder() : null; - } else { - ordersBuilder_.addAllMessages(other.orders_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List orders_ = - java.util.Collections.emptyList(); - private void ensureOrdersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(orders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> ordersBuilder_; - - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List getOrdersList() { - if (ordersBuilder_ == null) { - return java.util.Collections.unmodifiableList(orders_); - } else { - return ordersBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public int getOrdersCount() { - if (ordersBuilder_ == null) { - return orders_.size(); - } else { - return ordersBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); - } else { - return ordersBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.set(index, value); - onChanged(); - } else { - ordersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.set(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders(io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(value); - onChanged(); - } else { - ordersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(index, value); - onChanged(); - } else { - ordersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addAllOrders( - java.lang.Iterable values) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orders_); - onChanged(); - } else { - ordersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder clearOrders() { - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ordersBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder removeOrders(int index) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.remove(index); - onChanged(); - } else { - ordersBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrdersBuilder( - int index) { - return getOrdersFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); } else { - return ordersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersOrBuilderList() { - if (ordersBuilder_ != null) { - return ordersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orders_); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder( - int index) { - return getOrdersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersBuilderList() { - return getOrdersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrdersFieldBuilder() { - if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - orders_ = null; - } - return ordersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersByPartyResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyResponse) - private static final io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersByPartyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersByPartyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByMarketAndIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByMarketAndIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - java.lang.String getOrderId(); - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - com.google.protobuf.ByteString - getOrderIdBytes(); - } - /** - *
-   * Request for an order on a market given an order identifier
-   * 
- * - * Protobuf type {@code api.v1.OrderByMarketAndIDRequest} - */ - public static final class OrderByMarketAndIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByMarketAndIDRequest) - OrderByMarketAndIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByMarketAndIDRequest.newBuilder() to construct. - private OrderByMarketAndIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByMarketAndIDRequest() { - marketId_ = ""; - orderId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByMarketAndIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByMarketAndIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - orderId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object orderId_; - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - @java.lang.Override - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } - } - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (!getOrderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (!getOrderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest other = (io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getOrderId() - .equals(other.getOrderId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrderId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for an order on a market given an order identifier
-     * 
- * - * Protobuf type {@code api.v1.OrderByMarketAndIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByMarketAndIDRequest) - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - orderId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest build() { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest result = new io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest(this); - result.marketId_ = marketId_; - result.orderId_ = orderId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getOrderId().isEmpty()) { - orderId_ = other.orderId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderId_ = ""; - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @param value The orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderId_ = value; - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearOrderId() { - - orderId_ = getDefaultInstance().getOrderId(); - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 2 [json_name = "orderId", (.validator.field) = { ... } - * @param value The bytes for orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByMarketAndIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDRequest) - private static final io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByMarketAndIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByMarketAndIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByMarketAndIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByMarketAndIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - boolean hasOrder(); - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - io.vegaprotocol.vega.Vega.Order getOrder(); - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder(); - } - /** - *
-   * Response for an order on a market given an order identifier
-   * 
- * - * Protobuf type {@code api.v1.OrderByMarketAndIDResponse} - */ - public static final class OrderByMarketAndIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByMarketAndIDResponse) - OrderByMarketAndIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByMarketAndIDResponse.newBuilder() to construct. - private OrderByMarketAndIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByMarketAndIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByMarketAndIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByMarketAndIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Order.Builder subBuilder = null; - if (order_ != null) { - subBuilder = order_.toBuilder(); - } - order_ = input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(order_); - order_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.Builder.class); - } - - public static final int ORDER_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Order order_; - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - @java.lang.Override - public boolean hasOrder() { - return order_ != null; - } - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrder() { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - return getOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (order_ != null) { - output.writeMessage(1, getOrder()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (order_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrder()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse other = (io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse) obj; - - if (hasOrder() != other.hasOrder()) return false; - if (hasOrder()) { - if (!getOrder() - .equals(other.getOrder())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOrder()) { - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for an order on a market given an order identifier
-     * 
- * - * Protobuf type {@code api.v1.OrderByMarketAndIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByMarketAndIDResponse) - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (orderBuilder_ == null) { - order_ = null; - } else { - order_ = null; - orderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByMarketAndIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse build() { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse result = new io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse(this); - if (orderBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.getDefaultInstance()) return this; - if (other.hasOrder()) { - mergeOrder(other.getOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Order order_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> orderBuilder_; - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - public boolean hasOrder() { - return orderBuilder_ != null || order_ != null; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - public io.vegaprotocol.vega.Vega.Order getOrder() { - if (orderBuilder_ == null) { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } else { - return orderBuilder_.getMessage(); - } - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - order_ = value; - onChanged(); - } else { - orderBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (orderBuilder_ == null) { - order_ = builderForValue.build(); - onChanged(); - } else { - orderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder mergeOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (order_ != null) { - order_ = - io.vegaprotocol.vega.Vega.Order.newBuilder(order_).mergeFrom(value).buildPartial(); - } else { - order_ = value; - } - onChanged(); - } else { - orderBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder clearOrder() { - if (orderBuilder_ == null) { - order_ = null; - onChanged(); - } else { - order_ = null; - orderBuilder_ = null; - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrderBuilder() { - - onChanged(); - return getOrderFieldBuilder().getBuilder(); - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - if (orderBuilder_ != null) { - return orderBuilder_.getMessageOrBuilder(); - } else { - return order_ == null ? - io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrderFieldBuilder() { - if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - getOrder(), - getParentForChildren(), - isClean()); - order_ = null; - } - return orderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByMarketAndIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDResponse) - private static final io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByMarketAndIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByMarketAndIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByReferenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByReferenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique reference, required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - java.lang.String getReference(); - /** - *
-     * Unique reference, required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - com.google.protobuf.ByteString - getReferenceBytes(); - } - /** - *
-   * Request for an order given an order reference
-   * 
- * - * Protobuf type {@code api.v1.OrderByReferenceRequest} - */ - public static final class OrderByReferenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByReferenceRequest) - OrderByReferenceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByReferenceRequest.newBuilder() to construct. - private OrderByReferenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByReferenceRequest() { - reference_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByReferenceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByReferenceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - reference_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.class, io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.Builder.class); - } - - public static final int REFERENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object reference_; - /** - *
-     * Unique reference, required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - @java.lang.Override - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; - } - } - /** - *
-     * Unique reference, required field
-     * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getReferenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getReferenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reference_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest other = (io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest) obj; - - if (!getReference() - .equals(other.getReference())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for an order given an order reference
-     * 
- * - * Protobuf type {@code api.v1.OrderByReferenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByReferenceRequest) - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.class, io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - reference_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest build() { - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest result = new io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest(this); - result.reference_ = reference_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.getDefaultInstance()) return this; - if (!other.getReference().isEmpty()) { - reference_ = other.reference_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object reference_ = ""; - /** - *
-       * Unique reference, required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The reference. - */ - public java.lang.String getReference() { - java.lang.Object ref = reference_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reference_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique reference, required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return The bytes for reference. - */ - public com.google.protobuf.ByteString - getReferenceBytes() { - java.lang.Object ref = reference_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reference_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique reference, required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @param value The reference to set. - * @return This builder for chaining. - */ - public Builder setReference( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reference_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique reference, required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearReference() { - - reference_ = getDefaultInstance().getReference(); - onChanged(); - return this; - } - /** - *
-       * Unique reference, required field
-       * 
- * - * string reference = 1 [json_name = "reference", (.validator.field) = { ... } - * @param value The bytes for reference to set. - * @return This builder for chaining. - */ - public Builder setReferenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reference_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByReferenceRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceRequest) - private static final io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByReferenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByReferenceRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByReferenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByReferenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - boolean hasOrder(); - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - io.vegaprotocol.vega.Vega.Order getOrder(); - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder(); - } - /** - *
-   * Response for an order given an order reference
-   * 
- * - * Protobuf type {@code api.v1.OrderByReferenceResponse} - */ - public static final class OrderByReferenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByReferenceResponse) - OrderByReferenceResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByReferenceResponse.newBuilder() to construct. - private OrderByReferenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByReferenceResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByReferenceResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByReferenceResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Order.Builder subBuilder = null; - if (order_ != null) { - subBuilder = order_.toBuilder(); - } - order_ = input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(order_); - order_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.class, io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.Builder.class); - } - - public static final int ORDER_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Order order_; - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - @java.lang.Override - public boolean hasOrder() { - return order_ != null; - } - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrder() { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - /** - *
-     * An order, if found
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - return getOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (order_ != null) { - output.writeMessage(1, getOrder()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (order_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrder()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse other = (io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse) obj; - - if (hasOrder() != other.hasOrder()) return false; - if (hasOrder()) { - if (!getOrder() - .equals(other.getOrder())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOrder()) { - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for an order given an order reference
-     * 
- * - * Protobuf type {@code api.v1.OrderByReferenceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByReferenceResponse) - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.class, io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (orderBuilder_ == null) { - order_ = null; - } else { - order_ = null; - orderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByReferenceResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse build() { - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse result = new io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse(this); - if (orderBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.getDefaultInstance()) return this; - if (other.hasOrder()) { - mergeOrder(other.getOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Order order_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> orderBuilder_; - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - public boolean hasOrder() { - return orderBuilder_ != null || order_ != null; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - public io.vegaprotocol.vega.Vega.Order getOrder() { - if (orderBuilder_ == null) { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } else { - return orderBuilder_.getMessage(); - } - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - order_ = value; - onChanged(); - } else { - orderBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (orderBuilder_ == null) { - order_ = builderForValue.build(); - onChanged(); - } else { - orderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder mergeOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (order_ != null) { - order_ = - io.vegaprotocol.vega.Vega.Order.newBuilder(order_).mergeFrom(value).buildPartial(); - } else { - order_ = value; - } - onChanged(); - } else { - orderBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder clearOrder() { - if (orderBuilder_ == null) { - order_ = null; - onChanged(); - } else { - order_ = null; - orderBuilder_ = null; - } - - return this; - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrderBuilder() { - - onChanged(); - return getOrderFieldBuilder().getBuilder(); - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - if (orderBuilder_ != null) { - return orderBuilder_.getMessageOrBuilder(); - } else { - return order_ == null ? - io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - } - /** - *
-       * An order, if found
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrderFieldBuilder() { - if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - getOrder(), - getParentForChildren(), - isClean()); - order_ = null; - } - return orderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByReferenceResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceResponse) - private static final io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByReferenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByReferenceResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for a list of markets on Vega
-   * 
- * - * Protobuf type {@code api.v1.MarketsRequest} - */ - public static final class MarketsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsRequest) - MarketsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsRequest.newBuilder() to construct. - private MarketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsRequest.class, io.vegaprotocol.vega.api.Trading.MarketsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsRequest other = (io.vegaprotocol.vega.api.Trading.MarketsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of markets on Vega
-     * 
- * - * Protobuf type {@code api.v1.MarketsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsRequest) - io.vegaprotocol.vega.api.Trading.MarketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsRequest.class, io.vegaprotocol.vega.api.Trading.MarketsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsRequest build() { - io.vegaprotocol.vega.api.Trading.MarketsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsRequest result = new io.vegaprotocol.vega.api.Trading.MarketsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - java.util.List - getMarketsList(); - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - io.vegaprotocol.vega.Markets.Market getMarkets(int index); - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - int getMarketsCount(); - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - java.util.List - getMarketsOrBuilderList(); - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( - int index); - } - /** - *
-   * Response for a list of markets on Vega
-   * 
- * - * Protobuf type {@code api.v1.MarketsResponse} - */ - public static final class MarketsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketsResponse) - MarketsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketsResponse.newBuilder() to construct. - private MarketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketsResponse() { - markets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - markets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - markets_.add( - input.readMessage(io.vegaprotocol.vega.Markets.Market.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - markets_ = java.util.Collections.unmodifiableList(markets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsResponse.class, io.vegaprotocol.vega.api.Trading.MarketsResponse.Builder.class); - } - - public static final int MARKETS_FIELD_NUMBER = 1; - private java.util.List markets_; - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - @java.lang.Override - public java.util.List getMarketsList() { - return markets_; - } - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - @java.lang.Override - public java.util.List - getMarketsOrBuilderList() { - return markets_; - } - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - @java.lang.Override - public int getMarketsCount() { - return markets_.size(); - } - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.Market getMarkets(int index) { - return markets_.get(index); - } - /** - *
-     * A list of 0 or more markets
-     * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( - int index) { - return markets_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < markets_.size(); i++) { - output.writeMessage(1, markets_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < markets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, markets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketsResponse other = (io.vegaprotocol.vega.api.Trading.MarketsResponse) obj; - - if (!getMarketsList() - .equals(other.getMarketsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMarketsCount() > 0) { - hash = (37 * hash) + MARKETS_FIELD_NUMBER; - hash = (53 * hash) + getMarketsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of markets on Vega
-     * 
- * - * Protobuf type {@code api.v1.MarketsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketsResponse) - io.vegaprotocol.vega.api.Trading.MarketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketsResponse.class, io.vegaprotocol.vega.api.Trading.MarketsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMarketsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marketsBuilder_ == null) { - markets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - marketsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsResponse build() { - io.vegaprotocol.vega.api.Trading.MarketsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketsResponse result = new io.vegaprotocol.vega.api.Trading.MarketsResponse(this); - int from_bitField0_ = bitField0_; - if (marketsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - markets_ = java.util.Collections.unmodifiableList(markets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.markets_ = markets_; - } else { - result.markets_ = marketsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketsResponse.getDefaultInstance()) return this; - if (marketsBuilder_ == null) { - if (!other.markets_.isEmpty()) { - if (markets_.isEmpty()) { - markets_ = other.markets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMarketsIsMutable(); - markets_.addAll(other.markets_); - } - onChanged(); - } - } else { - if (!other.markets_.isEmpty()) { - if (marketsBuilder_.isEmpty()) { - marketsBuilder_.dispose(); - marketsBuilder_ = null; - markets_ = other.markets_; - bitField0_ = (bitField0_ & ~0x00000001); - marketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMarketsFieldBuilder() : null; - } else { - marketsBuilder_.addAllMessages(other.markets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List markets_ = - java.util.Collections.emptyList(); - private void ensureMarketsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - markets_ = new java.util.ArrayList(markets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> marketsBuilder_; - - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public java.util.List getMarketsList() { - if (marketsBuilder_ == null) { - return java.util.Collections.unmodifiableList(markets_); - } else { - return marketsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public int getMarketsCount() { - if (marketsBuilder_ == null) { - return markets_.size(); - } else { - return marketsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public io.vegaprotocol.vega.Markets.Market getMarkets(int index) { - if (marketsBuilder_ == null) { - return markets_.get(index); - } else { - return marketsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder setMarkets( - int index, io.vegaprotocol.vega.Markets.Market value) { - if (marketsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsIsMutable(); - markets_.set(index, value); - onChanged(); - } else { - marketsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder setMarkets( - int index, io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { - if (marketsBuilder_ == null) { - ensureMarketsIsMutable(); - markets_.set(index, builderForValue.build()); - onChanged(); - } else { - marketsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder addMarkets(io.vegaprotocol.vega.Markets.Market value) { - if (marketsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsIsMutable(); - markets_.add(value); - onChanged(); - } else { - marketsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder addMarkets( - int index, io.vegaprotocol.vega.Markets.Market value) { - if (marketsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMarketsIsMutable(); - markets_.add(index, value); - onChanged(); - } else { - marketsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder addMarkets( - io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { - if (marketsBuilder_ == null) { - ensureMarketsIsMutable(); - markets_.add(builderForValue.build()); - onChanged(); - } else { - marketsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder addMarkets( - int index, io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { - if (marketsBuilder_ == null) { - ensureMarketsIsMutable(); - markets_.add(index, builderForValue.build()); - onChanged(); - } else { - marketsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder addAllMarkets( - java.lang.Iterable values) { - if (marketsBuilder_ == null) { - ensureMarketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, markets_); - onChanged(); - } else { - marketsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder clearMarkets() { - if (marketsBuilder_ == null) { - markets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - marketsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public Builder removeMarkets(int index) { - if (marketsBuilder_ == null) { - ensureMarketsIsMutable(); - markets_.remove(index); - onChanged(); - } else { - marketsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public io.vegaprotocol.vega.Markets.Market.Builder getMarketsBuilder( - int index) { - return getMarketsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( - int index) { - if (marketsBuilder_ == null) { - return markets_.get(index); } else { - return marketsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public java.util.List - getMarketsOrBuilderList() { - if (marketsBuilder_ != null) { - return marketsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(markets_); - } - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public io.vegaprotocol.vega.Markets.Market.Builder addMarketsBuilder() { - return getMarketsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Markets.Market.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public io.vegaprotocol.vega.Markets.Market.Builder addMarketsBuilder( - int index) { - return getMarketsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Markets.Market.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more markets
-       * 
- * - * repeated .vega.Market markets = 1 [json_name = "markets"]; - */ - public java.util.List - getMarketsBuilderList() { - return getMarketsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> - getMarketsFieldBuilder() { - if (marketsBuilder_ == null) { - marketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder>( - markets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - markets_ = null; - } - return marketsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketsResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CandlesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.CandlesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Timestamp to retrieve candles since, in nanoseconds since the epoch,
-     * required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { ... } - * @return The sinceTimestamp. - */ - long getSinceTimestamp(); - - /** - *
-     * Time interval for the candles, required field
-     * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - int getIntervalValue(); - /** - *
-     * Time interval for the candles, required field
-     * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The interval. - */ - io.vegaprotocol.vega.Vega.Interval getInterval(); - } - /** - *
-   * Request for a list of candles for a market at an interval
-   * 
- * - * Protobuf type {@code api.v1.CandlesRequest} - */ - public static final class CandlesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.CandlesRequest) - CandlesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CandlesRequest.newBuilder() to construct. - private CandlesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CandlesRequest() { - marketId_ = ""; - interval_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CandlesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CandlesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 16: { - - sinceTimestamp_ = input.readInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - interval_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesRequest.class, io.vegaprotocol.vega.api.Trading.CandlesRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field.
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINCE_TIMESTAMP_FIELD_NUMBER = 2; - private long sinceTimestamp_; - /** - *
-     * Timestamp to retrieve candles since, in nanoseconds since the epoch,
-     * required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-     * 
- * - * int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { ... } - * @return The sinceTimestamp. - */ - @java.lang.Override - public long getSinceTimestamp() { - return sinceTimestamp_; - } - - public static final int INTERVAL_FIELD_NUMBER = 3; - private int interval_; - /** - *
-     * Time interval for the candles, required field
-     * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - @java.lang.Override public int getIntervalValue() { - return interval_; - } - /** - *
-     * Time interval for the candles, required field
-     * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The interval. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.Interval getInterval() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Interval result = io.vegaprotocol.vega.Vega.Interval.valueOf(interval_); - return result == null ? io.vegaprotocol.vega.Vega.Interval.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (sinceTimestamp_ != 0L) { - output.writeInt64(2, sinceTimestamp_); - } - if (interval_ != io.vegaprotocol.vega.Vega.Interval.INTERVAL_UNSPECIFIED.getNumber()) { - output.writeEnum(3, interval_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (sinceTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sinceTimestamp_); - } - if (interval_ != io.vegaprotocol.vega.Vega.Interval.INTERVAL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, interval_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.CandlesRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.CandlesRequest other = (io.vegaprotocol.vega.api.Trading.CandlesRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (getSinceTimestamp() - != other.getSinceTimestamp()) return false; - if (interval_ != other.interval_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + SINCE_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSinceTimestamp()); - hash = (37 * hash) + INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + interval_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.CandlesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of candles for a market at an interval
-     * 
- * - * Protobuf type {@code api.v1.CandlesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.CandlesRequest) - io.vegaprotocol.vega.api.Trading.CandlesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesRequest.class, io.vegaprotocol.vega.api.Trading.CandlesRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.CandlesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - sinceTimestamp_ = 0L; - - interval_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.CandlesRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesRequest build() { - io.vegaprotocol.vega.api.Trading.CandlesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.CandlesRequest result = new io.vegaprotocol.vega.api.Trading.CandlesRequest(this); - result.marketId_ = marketId_; - result.sinceTimestamp_ = sinceTimestamp_; - result.interval_ = interval_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.CandlesRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.CandlesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.CandlesRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.CandlesRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.getSinceTimestamp() != 0L) { - setSinceTimestamp(other.getSinceTimestamp()); - } - if (other.interval_ != 0) { - setIntervalValue(other.getIntervalValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.CandlesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.CandlesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field.
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private long sinceTimestamp_ ; - /** - *
-       * Timestamp to retrieve candles since, in nanoseconds since the epoch,
-       * required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-       * 
- * - * int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { ... } - * @return The sinceTimestamp. - */ - @java.lang.Override - public long getSinceTimestamp() { - return sinceTimestamp_; - } - /** - *
-       * Timestamp to retrieve candles since, in nanoseconds since the epoch,
-       * required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-       * 
- * - * int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { ... } - * @param value The sinceTimestamp to set. - * @return This builder for chaining. - */ - public Builder setSinceTimestamp(long value) { - - sinceTimestamp_ = value; - onChanged(); - return this; - } - /** - *
-       * Timestamp to retrieve candles since, in nanoseconds since the epoch,
-       * required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
-       * 
- * - * int64 since_timestamp = 2 [json_name = "sinceTimestamp", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearSinceTimestamp() { - - sinceTimestamp_ = 0L; - onChanged(); - return this; - } - - private int interval_ = 0; - /** - *
-       * Time interval for the candles, required field
-       * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The enum numeric value on the wire for interval. - */ - @java.lang.Override public int getIntervalValue() { - return interval_; - } - /** - *
-       * Time interval for the candles, required field
-       * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @param value The enum numeric value on the wire for interval to set. - * @return This builder for chaining. - */ - public Builder setIntervalValue(int value) { - - interval_ = value; - onChanged(); - return this; - } - /** - *
-       * Time interval for the candles, required field
-       * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return The interval. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Interval getInterval() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.Interval result = io.vegaprotocol.vega.Vega.Interval.valueOf(interval_); - return result == null ? io.vegaprotocol.vega.Vega.Interval.UNRECOGNIZED : result; - } - /** - *
-       * Time interval for the candles, required field
-       * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @param value The interval to set. - * @return This builder for chaining. - */ - public Builder setInterval(io.vegaprotocol.vega.Vega.Interval value) { - if (value == null) { - throw new NullPointerException(); - } - - interval_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Time interval for the candles, required field
-       * 
- * - * .vega.Interval interval = 3 [json_name = "interval"]; - * @return This builder for chaining. - */ - public Builder clearInterval() { - - interval_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.CandlesRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.CandlesRequest) - private static final io.vegaprotocol.vega.api.Trading.CandlesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.CandlesRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.CandlesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CandlesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CandlesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CandlesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.CandlesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - java.util.List - getCandlesList(); - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - io.vegaprotocol.vega.Vega.Candle getCandles(int index); - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - int getCandlesCount(); - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - java.util.List - getCandlesOrBuilderList(); - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - io.vegaprotocol.vega.Vega.CandleOrBuilder getCandlesOrBuilder( - int index); - } - /** - *
-   * Response for a list of candles for a market at an interval
-   * 
- * - * Protobuf type {@code api.v1.CandlesResponse} - */ - public static final class CandlesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.CandlesResponse) - CandlesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CandlesResponse.newBuilder() to construct. - private CandlesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CandlesResponse() { - candles_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CandlesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CandlesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - candles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - candles_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Candle.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - candles_ = java.util.Collections.unmodifiableList(candles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesResponse.class, io.vegaprotocol.vega.api.Trading.CandlesResponse.Builder.class); - } - - public static final int CANDLES_FIELD_NUMBER = 1; - private java.util.List candles_; - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - @java.lang.Override - public java.util.List getCandlesList() { - return candles_; - } - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - @java.lang.Override - public java.util.List - getCandlesOrBuilderList() { - return candles_; - } - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - @java.lang.Override - public int getCandlesCount() { - return candles_.size(); - } - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Candle getCandles(int index) { - return candles_.get(index); - } - /** - *
-     * A list of 0 or more candles
-     * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.CandleOrBuilder getCandlesOrBuilder( - int index) { - return candles_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < candles_.size(); i++) { - output.writeMessage(1, candles_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < candles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, candles_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.CandlesResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.CandlesResponse other = (io.vegaprotocol.vega.api.Trading.CandlesResponse) obj; - - if (!getCandlesList() - .equals(other.getCandlesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCandlesCount() > 0) { - hash = (37 * hash) + CANDLES_FIELD_NUMBER; - hash = (53 * hash) + getCandlesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.CandlesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.CandlesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of candles for a market at an interval
-     * 
- * - * Protobuf type {@code api.v1.CandlesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.CandlesResponse) - io.vegaprotocol.vega.api.Trading.CandlesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.CandlesResponse.class, io.vegaprotocol.vega.api.Trading.CandlesResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.CandlesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCandlesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (candlesBuilder_ == null) { - candles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - candlesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_CandlesResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.CandlesResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesResponse build() { - io.vegaprotocol.vega.api.Trading.CandlesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.CandlesResponse result = new io.vegaprotocol.vega.api.Trading.CandlesResponse(this); - int from_bitField0_ = bitField0_; - if (candlesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - candles_ = java.util.Collections.unmodifiableList(candles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.candles_ = candles_; - } else { - result.candles_ = candlesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.CandlesResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.CandlesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.CandlesResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.CandlesResponse.getDefaultInstance()) return this; - if (candlesBuilder_ == null) { - if (!other.candles_.isEmpty()) { - if (candles_.isEmpty()) { - candles_ = other.candles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCandlesIsMutable(); - candles_.addAll(other.candles_); - } - onChanged(); - } - } else { - if (!other.candles_.isEmpty()) { - if (candlesBuilder_.isEmpty()) { - candlesBuilder_.dispose(); - candlesBuilder_ = null; - candles_ = other.candles_; - bitField0_ = (bitField0_ & ~0x00000001); - candlesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCandlesFieldBuilder() : null; - } else { - candlesBuilder_.addAllMessages(other.candles_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.CandlesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.CandlesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List candles_ = - java.util.Collections.emptyList(); - private void ensureCandlesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - candles_ = new java.util.ArrayList(candles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder> candlesBuilder_; - - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public java.util.List getCandlesList() { - if (candlesBuilder_ == null) { - return java.util.Collections.unmodifiableList(candles_); - } else { - return candlesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public int getCandlesCount() { - if (candlesBuilder_ == null) { - return candles_.size(); - } else { - return candlesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public io.vegaprotocol.vega.Vega.Candle getCandles(int index) { - if (candlesBuilder_ == null) { - return candles_.get(index); - } else { - return candlesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder setCandles( - int index, io.vegaprotocol.vega.Vega.Candle value) { - if (candlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCandlesIsMutable(); - candles_.set(index, value); - onChanged(); - } else { - candlesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder setCandles( - int index, io.vegaprotocol.vega.Vega.Candle.Builder builderForValue) { - if (candlesBuilder_ == null) { - ensureCandlesIsMutable(); - candles_.set(index, builderForValue.build()); - onChanged(); - } else { - candlesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder addCandles(io.vegaprotocol.vega.Vega.Candle value) { - if (candlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCandlesIsMutable(); - candles_.add(value); - onChanged(); - } else { - candlesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder addCandles( - int index, io.vegaprotocol.vega.Vega.Candle value) { - if (candlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCandlesIsMutable(); - candles_.add(index, value); - onChanged(); - } else { - candlesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder addCandles( - io.vegaprotocol.vega.Vega.Candle.Builder builderForValue) { - if (candlesBuilder_ == null) { - ensureCandlesIsMutable(); - candles_.add(builderForValue.build()); - onChanged(); - } else { - candlesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder addCandles( - int index, io.vegaprotocol.vega.Vega.Candle.Builder builderForValue) { - if (candlesBuilder_ == null) { - ensureCandlesIsMutable(); - candles_.add(index, builderForValue.build()); - onChanged(); - } else { - candlesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder addAllCandles( - java.lang.Iterable values) { - if (candlesBuilder_ == null) { - ensureCandlesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, candles_); - onChanged(); - } else { - candlesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder clearCandles() { - if (candlesBuilder_ == null) { - candles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - candlesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public Builder removeCandles(int index) { - if (candlesBuilder_ == null) { - ensureCandlesIsMutable(); - candles_.remove(index); - onChanged(); - } else { - candlesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public io.vegaprotocol.vega.Vega.Candle.Builder getCandlesBuilder( - int index) { - return getCandlesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public io.vegaprotocol.vega.Vega.CandleOrBuilder getCandlesOrBuilder( - int index) { - if (candlesBuilder_ == null) { - return candles_.get(index); } else { - return candlesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public java.util.List - getCandlesOrBuilderList() { - if (candlesBuilder_ != null) { - return candlesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(candles_); - } - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public io.vegaprotocol.vega.Vega.Candle.Builder addCandlesBuilder() { - return getCandlesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Candle.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public io.vegaprotocol.vega.Vega.Candle.Builder addCandlesBuilder( - int index) { - return getCandlesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Candle.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more candles
-       * 
- * - * repeated .vega.Candle candles = 1 [json_name = "candles"]; - */ - public java.util.List - getCandlesBuilderList() { - return getCandlesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder> - getCandlesFieldBuilder() { - if (candlesBuilder_ == null) { - candlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Candle, io.vegaprotocol.vega.Vega.Candle.Builder, io.vegaprotocol.vega.Vega.CandleOrBuilder>( - candles_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - candles_ = null; - } - return candlesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.CandlesResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.CandlesResponse) - private static final io.vegaprotocol.vega.api.Trading.CandlesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.CandlesResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.CandlesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CandlesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CandlesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.CandlesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Max depth limits the number of levels returned. Default is 0, which returns all levels
-     * 
- * - * uint64 max_depth = 2 [json_name = "maxDepth"]; - * @return The maxDepth. - */ - long getMaxDepth(); - } - /** - *
-   * Request for the market depth/order book price levels on a market
-   * Optionally, a maximum depth can be set to limit the number of levels returned
-   * 
- * - * Protobuf type {@code api.v1.MarketDepthRequest} - */ - public static final class MarketDepthRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthRequest) - MarketDepthRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthRequest.newBuilder() to construct. - private MarketDepthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 16: { - - maxDepth_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_DEPTH_FIELD_NUMBER = 2; - private long maxDepth_; - /** - *
-     * Max depth limits the number of levels returned. Default is 0, which returns all levels
-     * 
- * - * uint64 max_depth = 2 [json_name = "maxDepth"]; - * @return The maxDepth. - */ - @java.lang.Override - public long getMaxDepth() { - return maxDepth_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (maxDepth_ != 0L) { - output.writeUInt64(2, maxDepth_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (maxDepth_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxDepth_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthRequest other = (io.vegaprotocol.vega.api.Trading.MarketDepthRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (getMaxDepth() - != other.getMaxDepth()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + MAX_DEPTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxDepth()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for the market depth/order book price levels on a market
-     * Optionally, a maximum depth can be set to limit the number of levels returned
-     * 
- * - * Protobuf type {@code api.v1.MarketDepthRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthRequest) - io.vegaprotocol.vega.api.Trading.MarketDepthRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthRequest.class, io.vegaprotocol.vega.api.Trading.MarketDepthRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - maxDepth_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthRequest build() { - io.vegaprotocol.vega.api.Trading.MarketDepthRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthRequest result = new io.vegaprotocol.vega.api.Trading.MarketDepthRequest(this); - result.marketId_ = marketId_; - result.maxDepth_ = maxDepth_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.getMaxDepth() != 0L) { - setMaxDepth(other.getMaxDepth()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private long maxDepth_ ; - /** - *
-       * Max depth limits the number of levels returned. Default is 0, which returns all levels
-       * 
- * - * uint64 max_depth = 2 [json_name = "maxDepth"]; - * @return The maxDepth. - */ - @java.lang.Override - public long getMaxDepth() { - return maxDepth_; - } - /** - *
-       * Max depth limits the number of levels returned. Default is 0, which returns all levels
-       * 
- * - * uint64 max_depth = 2 [json_name = "maxDepth"]; - * @param value The maxDepth to set. - * @return This builder for chaining. - */ - public Builder setMaxDepth(long value) { - - maxDepth_ = value; - onChanged(); - return this; - } - /** - *
-       * Max depth limits the number of levels returned. Default is 0, which returns all levels
-       * 
- * - * uint64 max_depth = 2 [json_name = "maxDepth"]; - * @return This builder for chaining. - */ - public Builder clearMaxDepth() { - - maxDepth_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketDepthResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketDepthResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - java.util.List - getBuyList(); - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - io.vegaprotocol.vega.Vega.PriceLevel getBuy(int index); - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - int getBuyCount(); - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - java.util.List - getBuyOrBuilderList(); - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getBuyOrBuilder( - int index); - - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - java.util.List - getSellList(); - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - io.vegaprotocol.vega.Vega.PriceLevel getSell(int index); - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - int getSellCount(); - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - java.util.List - getSellOrBuilderList(); - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getSellOrBuilder( - int index); - - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return Whether the lastTrade field is set. - */ - boolean hasLastTrade(); - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return The lastTrade. - */ - io.vegaprotocol.vega.Vega.Trade getLastTrade(); - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getLastTradeOrBuilder(); - - /** - *
-     * Sequence number incremented after each update
-     * 
- * - * uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - * @return The sequenceNumber. - */ - long getSequenceNumber(); - } - /** - *
-   * Response for the market depth/order book price levels on a market
-   * 
- * - * Protobuf type {@code api.v1.MarketDepthResponse} - */ - public static final class MarketDepthResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketDepthResponse) - MarketDepthResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketDepthResponse.newBuilder() to construct. - private MarketDepthResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketDepthResponse() { - marketId_ = ""; - buy_ = java.util.Collections.emptyList(); - sell_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketDepthResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketDepthResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buy_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - buy_.add( - input.readMessage(io.vegaprotocol.vega.Vega.PriceLevel.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - sell_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - sell_.add( - input.readMessage(io.vegaprotocol.vega.Vega.PriceLevel.parser(), extensionRegistry)); - break; - } - case 34: { - io.vegaprotocol.vega.Vega.Trade.Builder subBuilder = null; - if (lastTrade_ != null) { - subBuilder = lastTrade_.toBuilder(); - } - lastTrade_ = input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTrade_); - lastTrade_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - sequenceNumber_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - buy_ = java.util.Collections.unmodifiableList(buy_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - sell_ = java.util.Collections.unmodifiableList(sell_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthResponse.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUY_FIELD_NUMBER = 2; - private java.util.List buy_; - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - @java.lang.Override - public java.util.List getBuyList() { - return buy_; - } - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - @java.lang.Override - public java.util.List - getBuyOrBuilderList() { - return buy_; - } - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - @java.lang.Override - public int getBuyCount() { - return buy_.size(); - } - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceLevel getBuy(int index) { - return buy_.get(index); - } - /** - *
-     * Zero or more price levels for the buy side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getBuyOrBuilder( - int index) { - return buy_.get(index); - } - - public static final int SELL_FIELD_NUMBER = 3; - private java.util.List sell_; - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - @java.lang.Override - public java.util.List getSellList() { - return sell_; - } - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - @java.lang.Override - public java.util.List - getSellOrBuilderList() { - return sell_; - } - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - @java.lang.Override - public int getSellCount() { - return sell_.size(); - } - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceLevel getSell(int index) { - return sell_.get(index); - } - /** - *
-     * Zero or more price levels for the sell side of the market depth data
-     * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getSellOrBuilder( - int index) { - return sell_.get(index); - } - - public static final int LAST_TRADE_FIELD_NUMBER = 4; - private io.vegaprotocol.vega.Vega.Trade lastTrade_; - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return Whether the lastTrade field is set. - */ - @java.lang.Override - public boolean hasLastTrade() { - return lastTrade_ != null; - } - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return The lastTrade. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getLastTrade() { - return lastTrade_ == null ? io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : lastTrade_; - } - /** - *
-     * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-     * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getLastTradeOrBuilder() { - return getLastTrade(); - } - - public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 5; - private long sequenceNumber_; - /** - *
-     * Sequence number incremented after each update
-     * 
- * - * uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - * @return The sequenceNumber. - */ - @java.lang.Override - public long getSequenceNumber() { - return sequenceNumber_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - for (int i = 0; i < buy_.size(); i++) { - output.writeMessage(2, buy_.get(i)); - } - for (int i = 0; i < sell_.size(); i++) { - output.writeMessage(3, sell_.get(i)); - } - if (lastTrade_ != null) { - output.writeMessage(4, getLastTrade()); - } - if (sequenceNumber_ != 0L) { - output.writeUInt64(5, sequenceNumber_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - for (int i = 0; i < buy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, buy_.get(i)); - } - for (int i = 0; i < sell_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sell_.get(i)); - } - if (lastTrade_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastTrade()); - } - if (sequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, sequenceNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketDepthResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketDepthResponse other = (io.vegaprotocol.vega.api.Trading.MarketDepthResponse) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getBuyList() - .equals(other.getBuyList())) return false; - if (!getSellList() - .equals(other.getSellList())) return false; - if (hasLastTrade() != other.hasLastTrade()) return false; - if (hasLastTrade()) { - if (!getLastTrade() - .equals(other.getLastTrade())) return false; - } - if (getSequenceNumber() - != other.getSequenceNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - if (getBuyCount() > 0) { - hash = (37 * hash) + BUY_FIELD_NUMBER; - hash = (53 * hash) + getBuyList().hashCode(); - } - if (getSellCount() > 0) { - hash = (37 * hash) + SELL_FIELD_NUMBER; - hash = (53 * hash) + getSellList().hashCode(); - } - if (hasLastTrade()) { - hash = (37 * hash) + LAST_TRADE_FIELD_NUMBER; - hash = (53 * hash) + getLastTrade().hashCode(); - } - hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequenceNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketDepthResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for the market depth/order book price levels on a market
-     * 
- * - * Protobuf type {@code api.v1.MarketDepthResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketDepthResponse) - io.vegaprotocol.vega.api.Trading.MarketDepthResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketDepthResponse.class, io.vegaprotocol.vega.api.Trading.MarketDepthResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketDepthResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBuyFieldBuilder(); - getSellFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - if (buyBuilder_ == null) { - buy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - buyBuilder_.clear(); - } - if (sellBuilder_ == null) { - sell_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - sellBuilder_.clear(); - } - if (lastTradeBuilder_ == null) { - lastTrade_ = null; - } else { - lastTrade_ = null; - lastTradeBuilder_ = null; - } - sequenceNumber_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketDepthResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketDepthResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthResponse build() { - io.vegaprotocol.vega.api.Trading.MarketDepthResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketDepthResponse result = new io.vegaprotocol.vega.api.Trading.MarketDepthResponse(this); - int from_bitField0_ = bitField0_; - result.marketId_ = marketId_; - if (buyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - buy_ = java.util.Collections.unmodifiableList(buy_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.buy_ = buy_; - } else { - result.buy_ = buyBuilder_.build(); - } - if (sellBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - sell_ = java.util.Collections.unmodifiableList(sell_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.sell_ = sell_; - } else { - result.sell_ = sellBuilder_.build(); - } - if (lastTradeBuilder_ == null) { - result.lastTrade_ = lastTrade_; - } else { - result.lastTrade_ = lastTradeBuilder_.build(); - } - result.sequenceNumber_ = sequenceNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketDepthResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketDepthResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketDepthResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketDepthResponse.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (buyBuilder_ == null) { - if (!other.buy_.isEmpty()) { - if (buy_.isEmpty()) { - buy_ = other.buy_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBuyIsMutable(); - buy_.addAll(other.buy_); - } - onChanged(); - } - } else { - if (!other.buy_.isEmpty()) { - if (buyBuilder_.isEmpty()) { - buyBuilder_.dispose(); - buyBuilder_ = null; - buy_ = other.buy_; - bitField0_ = (bitField0_ & ~0x00000001); - buyBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBuyFieldBuilder() : null; - } else { - buyBuilder_.addAllMessages(other.buy_); - } - } - } - if (sellBuilder_ == null) { - if (!other.sell_.isEmpty()) { - if (sell_.isEmpty()) { - sell_ = other.sell_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSellIsMutable(); - sell_.addAll(other.sell_); - } - onChanged(); - } - } else { - if (!other.sell_.isEmpty()) { - if (sellBuilder_.isEmpty()) { - sellBuilder_.dispose(); - sellBuilder_ = null; - sell_ = other.sell_; - bitField0_ = (bitField0_ & ~0x00000002); - sellBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSellFieldBuilder() : null; - } else { - sellBuilder_.addAllMessages(other.sell_); - } - } - } - if (other.hasLastTrade()) { - mergeLastTrade(other.getLastTrade()); - } - if (other.getSequenceNumber() != 0L) { - setSequenceNumber(other.getSequenceNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketDepthResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketDepthResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.util.List buy_ = - java.util.Collections.emptyList(); - private void ensureBuyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - buy_ = new java.util.ArrayList(buy_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder> buyBuilder_; - - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public java.util.List getBuyList() { - if (buyBuilder_ == null) { - return java.util.Collections.unmodifiableList(buy_); - } else { - return buyBuilder_.getMessageList(); - } - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public int getBuyCount() { - if (buyBuilder_ == null) { - return buy_.size(); - } else { - return buyBuilder_.getCount(); - } - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel getBuy(int index) { - if (buyBuilder_ == null) { - return buy_.get(index); - } else { - return buyBuilder_.getMessage(index); - } - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder setBuy( - int index, io.vegaprotocol.vega.Vega.PriceLevel value) { - if (buyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuyIsMutable(); - buy_.set(index, value); - onChanged(); - } else { - buyBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder setBuy( - int index, io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (buyBuilder_ == null) { - ensureBuyIsMutable(); - buy_.set(index, builderForValue.build()); - onChanged(); - } else { - buyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder addBuy(io.vegaprotocol.vega.Vega.PriceLevel value) { - if (buyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuyIsMutable(); - buy_.add(value); - onChanged(); - } else { - buyBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder addBuy( - int index, io.vegaprotocol.vega.Vega.PriceLevel value) { - if (buyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuyIsMutable(); - buy_.add(index, value); - onChanged(); - } else { - buyBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder addBuy( - io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (buyBuilder_ == null) { - ensureBuyIsMutable(); - buy_.add(builderForValue.build()); - onChanged(); - } else { - buyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder addBuy( - int index, io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (buyBuilder_ == null) { - ensureBuyIsMutable(); - buy_.add(index, builderForValue.build()); - onChanged(); - } else { - buyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder addAllBuy( - java.lang.Iterable values) { - if (buyBuilder_ == null) { - ensureBuyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buy_); - onChanged(); - } else { - buyBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder clearBuy() { - if (buyBuilder_ == null) { - buy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - buyBuilder_.clear(); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public Builder removeBuy(int index) { - if (buyBuilder_ == null) { - ensureBuyIsMutable(); - buy_.remove(index); - onChanged(); - } else { - buyBuilder_.remove(index); - } - return this; - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder getBuyBuilder( - int index) { - return getBuyFieldBuilder().getBuilder(index); - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getBuyOrBuilder( - int index) { - if (buyBuilder_ == null) { - return buy_.get(index); } else { - return buyBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public java.util.List - getBuyOrBuilderList() { - if (buyBuilder_ != null) { - return buyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(buy_); - } - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder addBuyBuilder() { - return getBuyFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.PriceLevel.getDefaultInstance()); - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder addBuyBuilder( - int index) { - return getBuyFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.PriceLevel.getDefaultInstance()); - } - /** - *
-       * Zero or more price levels for the buy side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel buy = 2 [json_name = "buy"]; - */ - public java.util.List - getBuyBuilderList() { - return getBuyFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder> - getBuyFieldBuilder() { - if (buyBuilder_ == null) { - buyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder>( - buy_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - buy_ = null; - } - return buyBuilder_; - } - - private java.util.List sell_ = - java.util.Collections.emptyList(); - private void ensureSellIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - sell_ = new java.util.ArrayList(sell_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder> sellBuilder_; - - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public java.util.List getSellList() { - if (sellBuilder_ == null) { - return java.util.Collections.unmodifiableList(sell_); - } else { - return sellBuilder_.getMessageList(); - } - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public int getSellCount() { - if (sellBuilder_ == null) { - return sell_.size(); - } else { - return sellBuilder_.getCount(); - } - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel getSell(int index) { - if (sellBuilder_ == null) { - return sell_.get(index); - } else { - return sellBuilder_.getMessage(index); - } - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder setSell( - int index, io.vegaprotocol.vega.Vega.PriceLevel value) { - if (sellBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellIsMutable(); - sell_.set(index, value); - onChanged(); - } else { - sellBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder setSell( - int index, io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (sellBuilder_ == null) { - ensureSellIsMutable(); - sell_.set(index, builderForValue.build()); - onChanged(); - } else { - sellBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder addSell(io.vegaprotocol.vega.Vega.PriceLevel value) { - if (sellBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellIsMutable(); - sell_.add(value); - onChanged(); - } else { - sellBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder addSell( - int index, io.vegaprotocol.vega.Vega.PriceLevel value) { - if (sellBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSellIsMutable(); - sell_.add(index, value); - onChanged(); - } else { - sellBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder addSell( - io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (sellBuilder_ == null) { - ensureSellIsMutable(); - sell_.add(builderForValue.build()); - onChanged(); - } else { - sellBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder addSell( - int index, io.vegaprotocol.vega.Vega.PriceLevel.Builder builderForValue) { - if (sellBuilder_ == null) { - ensureSellIsMutable(); - sell_.add(index, builderForValue.build()); - onChanged(); - } else { - sellBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder addAllSell( - java.lang.Iterable values) { - if (sellBuilder_ == null) { - ensureSellIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sell_); - onChanged(); - } else { - sellBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder clearSell() { - if (sellBuilder_ == null) { - sell_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - sellBuilder_.clear(); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public Builder removeSell(int index) { - if (sellBuilder_ == null) { - ensureSellIsMutable(); - sell_.remove(index); - onChanged(); - } else { - sellBuilder_.remove(index); - } - return this; - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder getSellBuilder( - int index) { - return getSellFieldBuilder().getBuilder(index); - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevelOrBuilder getSellOrBuilder( - int index) { - if (sellBuilder_ == null) { - return sell_.get(index); } else { - return sellBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public java.util.List - getSellOrBuilderList() { - if (sellBuilder_ != null) { - return sellBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sell_); - } - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder addSellBuilder() { - return getSellFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.PriceLevel.getDefaultInstance()); - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public io.vegaprotocol.vega.Vega.PriceLevel.Builder addSellBuilder( - int index) { - return getSellFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.PriceLevel.getDefaultInstance()); - } - /** - *
-       * Zero or more price levels for the sell side of the market depth data
-       * 
- * - * repeated .vega.PriceLevel sell = 3 [json_name = "sell"]; - */ - public java.util.List - getSellBuilderList() { - return getSellFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder> - getSellFieldBuilder() { - if (sellBuilder_ == null) { - sellBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.PriceLevel, io.vegaprotocol.vega.Vega.PriceLevel.Builder, io.vegaprotocol.vega.Vega.PriceLevelOrBuilder>( - sell_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - sell_ = null; - } - return sellBuilder_; - } - - private io.vegaprotocol.vega.Vega.Trade lastTrade_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> lastTradeBuilder_; - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return Whether the lastTrade field is set. - */ - public boolean hasLastTrade() { - return lastTradeBuilder_ != null || lastTrade_ != null; - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - * @return The lastTrade. - */ - public io.vegaprotocol.vega.Vega.Trade getLastTrade() { - if (lastTradeBuilder_ == null) { - return lastTrade_ == null ? io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : lastTrade_; - } else { - return lastTradeBuilder_.getMessage(); - } - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public Builder setLastTrade(io.vegaprotocol.vega.Vega.Trade value) { - if (lastTradeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastTrade_ = value; - onChanged(); - } else { - lastTradeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public Builder setLastTrade( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (lastTradeBuilder_ == null) { - lastTrade_ = builderForValue.build(); - onChanged(); - } else { - lastTradeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public Builder mergeLastTrade(io.vegaprotocol.vega.Vega.Trade value) { - if (lastTradeBuilder_ == null) { - if (lastTrade_ != null) { - lastTrade_ = - io.vegaprotocol.vega.Vega.Trade.newBuilder(lastTrade_).mergeFrom(value).buildPartial(); - } else { - lastTrade_ = value; - } - onChanged(); - } else { - lastTradeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public Builder clearLastTrade() { - if (lastTradeBuilder_ == null) { - lastTrade_ = null; - onChanged(); - } else { - lastTrade_ = null; - lastTradeBuilder_ = null; - } - - return this; - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getLastTradeBuilder() { - - onChanged(); - return getLastTradeFieldBuilder().getBuilder(); - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getLastTradeOrBuilder() { - if (lastTradeBuilder_ != null) { - return lastTradeBuilder_.getMessageOrBuilder(); - } else { - return lastTrade_ == null ? - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance() : lastTrade_; - } - } - /** - *
-       * Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`
-       * 
- * - * .vega.Trade last_trade = 4 [json_name = "lastTrade"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getLastTradeFieldBuilder() { - if (lastTradeBuilder_ == null) { - lastTradeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - getLastTrade(), - getParentForChildren(), - isClean()); - lastTrade_ = null; - } - return lastTradeBuilder_; - } - - private long sequenceNumber_ ; - /** - *
-       * Sequence number incremented after each update
-       * 
- * - * uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - * @return The sequenceNumber. - */ - @java.lang.Override - public long getSequenceNumber() { - return sequenceNumber_; - } - /** - *
-       * Sequence number incremented after each update
-       * 
- * - * uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - * @param value The sequenceNumber to set. - * @return This builder for chaining. - */ - public Builder setSequenceNumber(long value) { - - sequenceNumber_ = value; - onChanged(); - return this; - } - /** - *
-       * Sequence number incremented after each update
-       * 
- * - * uint64 sequence_number = 5 [json_name = "sequenceNumber"]; - * @return This builder for chaining. - */ - public Builder clearSequenceNumber() { - - sequenceNumber_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketDepthResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketDepthResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketDepthResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketDepthResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketDepthResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketDepthResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketDepthResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketDepthResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByMarketRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByMarketRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - boolean hasPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - io.vegaprotocol.vega.api.Trading.Pagination getPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * Request for a list of trades on a market
-   * 
- * - * Protobuf type {@code api.v1.TradesByMarketRequest} - */ - public static final class TradesByMarketRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByMarketRequest) - TradesByMarketRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByMarketRequest.newBuilder() to construct. - private TradesByMarketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByMarketRequest() { - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByMarketRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByMarketRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.class, io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, required field
-     * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - @java.lang.Override - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByMarketRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest other = (io.vegaprotocol.vega.api.Trading.TradesByMarketRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByMarketRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of trades on a market
-     * 
- * - * Protobuf type {@code api.v1.TradesByMarketRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByMarketRequest) - io.vegaprotocol.vega.api.Trading.TradesByMarketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.class, io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketRequest build() { - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest result = new io.vegaprotocol.vega.api.Trading.TradesByMarketRequest(this); - result.marketId_ = marketId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByMarketRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByMarketRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByMarketRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByMarketRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, required field
-       * 
- * - * string market_id = 1 [json_name = "marketId", (.validator.field) = { ... } - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> paginationBuilder_; - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination( - io.vegaprotocol.vega.api.Trading.Pagination.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder mergePagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - io.vegaprotocol.vega.api.Trading.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.Pagination.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByMarketRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByMarketRequest) - private static final io.vegaprotocol.vega.api.Trading.TradesByMarketRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByMarketRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByMarketRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByMarketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByMarketRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesByMarketResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesByMarketResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.Trade getTrades(int index); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - int getTradesCount(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesOrBuilderList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index); - } - /** - *
-   * Response for a list of trades on a market
-   * 
- * - * Protobuf type {@code api.v1.TradesByMarketResponse} - */ - public static final class TradesByMarketResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesByMarketResponse) - TradesByMarketResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesByMarketResponse.newBuilder() to construct. - private TradesByMarketResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesByMarketResponse() { - trades_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesByMarketResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesByMarketResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - trades_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.class, io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.Builder.class); - } - - public static final int TRADES_FIELD_NUMBER = 1; - private java.util.List trades_; - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List getTradesList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List - getTradesOrBuilderList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public int getTradesCount() { - return trades_.size(); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - return trades_.get(index); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - return trades_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < trades_.size(); i++) { - output.writeMessage(1, trades_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < trades_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, trades_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesByMarketResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse other = (io.vegaprotocol.vega.api.Trading.TradesByMarketResponse) obj; - - if (!getTradesList() - .equals(other.getTradesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTradesCount() > 0) { - hash = (37 * hash) + TRADES_FIELD_NUMBER; - hash = (53 * hash) + getTradesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesByMarketResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of trades on a market
-     * 
- * - * Protobuf type {@code api.v1.TradesByMarketResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesByMarketResponse) - io.vegaprotocol.vega.api.Trading.TradesByMarketResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.class, io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTradesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tradesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesByMarketResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketResponse build() { - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse result = new io.vegaprotocol.vega.api.Trading.TradesByMarketResponse(this); - int from_bitField0_ = bitField0_; - if (tradesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trades_ = trades_; - } else { - result.trades_ = tradesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesByMarketResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesByMarketResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesByMarketResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.getDefaultInstance()) return this; - if (tradesBuilder_ == null) { - if (!other.trades_.isEmpty()) { - if (trades_.isEmpty()) { - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTradesIsMutable(); - trades_.addAll(other.trades_); - } - onChanged(); - } - } else { - if (!other.trades_.isEmpty()) { - if (tradesBuilder_.isEmpty()) { - tradesBuilder_.dispose(); - tradesBuilder_ = null; - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - tradesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTradesFieldBuilder() : null; - } else { - tradesBuilder_.addAllMessages(other.trades_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesByMarketResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List trades_ = - java.util.Collections.emptyList(); - private void ensureTradesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(trades_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> tradesBuilder_; - - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List getTradesList() { - if (tradesBuilder_ == null) { - return java.util.Collections.unmodifiableList(trades_); - } else { - return tradesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public int getTradesCount() { - if (tradesBuilder_ == null) { - return trades_.size(); - } else { - return tradesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); - } else { - return tradesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.set(index, value); - onChanged(); - } else { - tradesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.set(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades(io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(value); - onChanged(); - } else { - tradesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(index, value); - onChanged(); - } else { - tradesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addAllTrades( - java.lang.Iterable values) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trades_); - onChanged(); - } else { - tradesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder clearTrades() { - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tradesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder removeTrades(int index) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.remove(index); - onChanged(); - } else { - tradesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getTradesBuilder( - int index) { - return getTradesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); } else { - return tradesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesOrBuilderList() { - if (tradesBuilder_ != null) { - return tradesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trades_); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder() { - return getTradesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder( - int index) { - return getTradesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesBuilderList() { - return getTradesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getTradesFieldBuilder() { - if (tradesBuilder_ == null) { - tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - trades_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - trades_ = null; - } - return tradesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesByMarketResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesByMarketResponse) - private static final io.vegaprotocol.vega.api.Trading.TradesByMarketResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesByMarketResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesByMarketResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesByMarketResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesByMarketResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesByMarketResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PositionsByPartyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PositionsByPartyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - } - /** - *
-   * Request for a list of positions for a party
-   * Optionally, if a market identifier is set, the results will be filtered for that market only
-   * 
- * - * Protobuf type {@code api.v1.PositionsByPartyRequest} - */ - public static final class PositionsByPartyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PositionsByPartyRequest) - PositionsByPartyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PositionsByPartyRequest.newBuilder() to construct. - private PositionsByPartyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PositionsByPartyRequest() { - partyId_ = ""; - marketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PositionsByPartyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PositionsByPartyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.class, io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, required field
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest other = (io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of positions for a party
-     * Optionally, if a market identifier is set, the results will be filtered for that market only
-     * 
- * - * Protobuf type {@code api.v1.PositionsByPartyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PositionsByPartyRequest) - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.class, io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest build() { - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest result = new io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, required field
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PositionsByPartyRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyRequest) - private static final io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PositionsByPartyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PositionsByPartyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PositionsByPartyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PositionsByPartyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - java.util.List - getPositionsList(); - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - io.vegaprotocol.vega.Vega.Position getPositions(int index); - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - int getPositionsCount(); - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - java.util.List - getPositionsOrBuilderList(); - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionsOrBuilder( - int index); - } - /** - *
-   * Response for a list of positions for a party
-   * 
- * - * Protobuf type {@code api.v1.PositionsByPartyResponse} - */ - public static final class PositionsByPartyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PositionsByPartyResponse) - PositionsByPartyResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PositionsByPartyResponse.newBuilder() to construct. - private PositionsByPartyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PositionsByPartyResponse() { - positions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PositionsByPartyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PositionsByPartyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - positions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - positions_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Position.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - positions_ = java.util.Collections.unmodifiableList(positions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.class, io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.Builder.class); - } - - public static final int POSITIONS_FIELD_NUMBER = 1; - private java.util.List positions_; - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - @java.lang.Override - public java.util.List getPositionsList() { - return positions_; - } - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - @java.lang.Override - public java.util.List - getPositionsOrBuilderList() { - return positions_; - } - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - @java.lang.Override - public int getPositionsCount() { - return positions_.size(); - } - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Position getPositions(int index) { - return positions_.get(index); - } - /** - *
-     * A list of 0 or more positions
-     * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionsOrBuilder( - int index) { - return positions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < positions_.size(); i++) { - output.writeMessage(1, positions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < positions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, positions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse other = (io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse) obj; - - if (!getPositionsList() - .equals(other.getPositionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPositionsCount() > 0) { - hash = (37 * hash) + POSITIONS_FIELD_NUMBER; - hash = (53 * hash) + getPositionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of positions for a party
-     * 
- * - * Protobuf type {@code api.v1.PositionsByPartyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PositionsByPartyResponse) - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.class, io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPositionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (positionsBuilder_ == null) { - positions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - positionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PositionsByPartyResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse build() { - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse result = new io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse(this); - int from_bitField0_ = bitField0_; - if (positionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - positions_ = java.util.Collections.unmodifiableList(positions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.positions_ = positions_; - } else { - result.positions_ = positionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.getDefaultInstance()) return this; - if (positionsBuilder_ == null) { - if (!other.positions_.isEmpty()) { - if (positions_.isEmpty()) { - positions_ = other.positions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePositionsIsMutable(); - positions_.addAll(other.positions_); - } - onChanged(); - } - } else { - if (!other.positions_.isEmpty()) { - if (positionsBuilder_.isEmpty()) { - positionsBuilder_.dispose(); - positionsBuilder_ = null; - positions_ = other.positions_; - bitField0_ = (bitField0_ & ~0x00000001); - positionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPositionsFieldBuilder() : null; - } else { - positionsBuilder_.addAllMessages(other.positions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List positions_ = - java.util.Collections.emptyList(); - private void ensurePositionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - positions_ = new java.util.ArrayList(positions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder> positionsBuilder_; - - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public java.util.List getPositionsList() { - if (positionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(positions_); - } else { - return positionsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public int getPositionsCount() { - if (positionsBuilder_ == null) { - return positions_.size(); - } else { - return positionsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public io.vegaprotocol.vega.Vega.Position getPositions(int index) { - if (positionsBuilder_ == null) { - return positions_.get(index); - } else { - return positionsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder setPositions( - int index, io.vegaprotocol.vega.Vega.Position value) { - if (positionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePositionsIsMutable(); - positions_.set(index, value); - onChanged(); - } else { - positionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder setPositions( - int index, io.vegaprotocol.vega.Vega.Position.Builder builderForValue) { - if (positionsBuilder_ == null) { - ensurePositionsIsMutable(); - positions_.set(index, builderForValue.build()); - onChanged(); - } else { - positionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder addPositions(io.vegaprotocol.vega.Vega.Position value) { - if (positionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePositionsIsMutable(); - positions_.add(value); - onChanged(); - } else { - positionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder addPositions( - int index, io.vegaprotocol.vega.Vega.Position value) { - if (positionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePositionsIsMutable(); - positions_.add(index, value); - onChanged(); - } else { - positionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder addPositions( - io.vegaprotocol.vega.Vega.Position.Builder builderForValue) { - if (positionsBuilder_ == null) { - ensurePositionsIsMutable(); - positions_.add(builderForValue.build()); - onChanged(); - } else { - positionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder addPositions( - int index, io.vegaprotocol.vega.Vega.Position.Builder builderForValue) { - if (positionsBuilder_ == null) { - ensurePositionsIsMutable(); - positions_.add(index, builderForValue.build()); - onChanged(); - } else { - positionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder addAllPositions( - java.lang.Iterable values) { - if (positionsBuilder_ == null) { - ensurePositionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, positions_); - onChanged(); - } else { - positionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder clearPositions() { - if (positionsBuilder_ == null) { - positions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - positionsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public Builder removePositions(int index) { - if (positionsBuilder_ == null) { - ensurePositionsIsMutable(); - positions_.remove(index); - onChanged(); - } else { - positionsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public io.vegaprotocol.vega.Vega.Position.Builder getPositionsBuilder( - int index) { - return getPositionsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public io.vegaprotocol.vega.Vega.PositionOrBuilder getPositionsOrBuilder( - int index) { - if (positionsBuilder_ == null) { - return positions_.get(index); } else { - return positionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public java.util.List - getPositionsOrBuilderList() { - if (positionsBuilder_ != null) { - return positionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(positions_); - } - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public io.vegaprotocol.vega.Vega.Position.Builder addPositionsBuilder() { - return getPositionsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Position.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public io.vegaprotocol.vega.Vega.Position.Builder addPositionsBuilder( - int index) { - return getPositionsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Position.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more positions
-       * 
- * - * repeated .vega.Position positions = 1 [json_name = "positions"]; - */ - public java.util.List - getPositionsBuilderList() { - return getPositionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder> - getPositionsFieldBuilder() { - if (positionsBuilder_ == null) { - positionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Position, io.vegaprotocol.vega.Vega.Position.Builder, io.vegaprotocol.vega.Vega.PositionOrBuilder>( - positions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - positions_ = null; - } - return positionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PositionsByPartyResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyResponse) - private static final io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PositionsByPartyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PositionsByPartyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetVegaTimeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetVegaTimeRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for the current time of the vega network
-   * 
- * - * Protobuf type {@code api.v1.GetVegaTimeRequest} - */ - public static final class GetVegaTimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetVegaTimeRequest) - GetVegaTimeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVegaTimeRequest.newBuilder() to construct. - private GetVegaTimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVegaTimeRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetVegaTimeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVegaTimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest other = (io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for the current time of the vega network
-     * 
- * - * Protobuf type {@code api.v1.GetVegaTimeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetVegaTimeRequest) - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest build() { - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest result = new io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetVegaTimeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) - private static final io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVegaTimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVegaTimeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetVegaTimeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.GetVegaTimeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Timestamp representation of current VegaTime as represented in
-     * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
-     * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"
-   * 
- * - * Protobuf type {@code api.v1.GetVegaTimeResponse} - */ - public static final class GetVegaTimeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.GetVegaTimeResponse) - GetVegaTimeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVegaTimeResponse.newBuilder() to construct. - private GetVegaTimeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVegaTimeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetVegaTimeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVegaTimeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - timestamp_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_; - /** - *
-     * Timestamp representation of current VegaTime as represented in
-     * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
-     * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeInt64(1, timestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, timestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse other = (io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"
-     * 
- * - * Protobuf type {@code api.v1.GetVegaTimeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.GetVegaTimeResponse) - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - timestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_GetVegaTimeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse build() { - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse result = new io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse(this); - result.timestamp_ = timestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long timestamp_ ; - /** - *
-       * Timestamp representation of current VegaTime as represented in
-       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Timestamp representation of current VegaTime as represented in
-       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - *
-       * Timestamp representation of current VegaTime as represented in
-       * Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.GetVegaTimeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) - private static final io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVegaTimeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVegaTimeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PaginationOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.Pagination) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Skip the number of records specified, default is 0
-     * 
- * - * uint64 skip = 1 [json_name = "skip"]; - * @return The skip. - */ - long getSkip(); - - /** - *
-     * Limit the number of returned records to the value specified, default is 50
-     * 
- * - * uint64 limit = 2 [json_name = "limit"]; - * @return The limit. - */ - long getLimit(); - - /** - *
-     * Descending reverses the order of the records returned,
-     * default is true, if false the results will be returned in ascending order
-     * 
- * - * bool descending = 3 [json_name = "descending"]; - * @return The descending. - */ - boolean getDescending(); - } - /** - *
-   * Pagination controls
-   * 
- * - * Protobuf type {@code api.v1.Pagination} - */ - public static final class Pagination extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.Pagination) - PaginationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Pagination.newBuilder() to construct. - private Pagination(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pagination() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Pagination(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Pagination( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - skip_ = input.readUInt64(); - break; - } - case 16: { - - limit_ = input.readUInt64(); - break; - } - case 24: { - - descending_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Pagination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Pagination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.Pagination.class, io.vegaprotocol.vega.api.Trading.Pagination.Builder.class); - } - - public static final int SKIP_FIELD_NUMBER = 1; - private long skip_; - /** - *
-     * Skip the number of records specified, default is 0
-     * 
- * - * uint64 skip = 1 [json_name = "skip"]; - * @return The skip. - */ - @java.lang.Override - public long getSkip() { - return skip_; - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private long limit_; - /** - *
-     * Limit the number of returned records to the value specified, default is 50
-     * 
- * - * uint64 limit = 2 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int DESCENDING_FIELD_NUMBER = 3; - private boolean descending_; - /** - *
-     * Descending reverses the order of the records returned,
-     * default is true, if false the results will be returned in ascending order
-     * 
- * - * bool descending = 3 [json_name = "descending"]; - * @return The descending. - */ - @java.lang.Override - public boolean getDescending() { - return descending_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (skip_ != 0L) { - output.writeUInt64(1, skip_); - } - if (limit_ != 0L) { - output.writeUInt64(2, limit_); - } - if (descending_ != false) { - output.writeBool(3, descending_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skip_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, skip_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, limit_); - } - if (descending_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, descending_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.Pagination)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.Pagination other = (io.vegaprotocol.vega.api.Trading.Pagination) obj; - - if (getSkip() - != other.getSkip()) return false; - if (getLimit() - != other.getLimit()) return false; - if (getDescending() - != other.getDescending()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKIP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSkip()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLimit()); - hash = (37 * hash) + DESCENDING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDescending()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.Pagination parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.Pagination prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Pagination controls
-     * 
- * - * Protobuf type {@code api.v1.Pagination} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.Pagination) - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Pagination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Pagination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.Pagination.class, io.vegaprotocol.vega.api.Trading.Pagination.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.Pagination.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - skip_ = 0L; - - limit_ = 0L; - - descending_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Pagination_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination build() { - io.vegaprotocol.vega.api.Trading.Pagination result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination buildPartial() { - io.vegaprotocol.vega.api.Trading.Pagination result = new io.vegaprotocol.vega.api.Trading.Pagination(this); - result.skip_ = skip_; - result.limit_ = limit_; - result.descending_ = descending_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.Pagination) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.Pagination)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.Pagination other) { - if (other == io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance()) return this; - if (other.getSkip() != 0L) { - setSkip(other.getSkip()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (other.getDescending() != false) { - setDescending(other.getDescending()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.Pagination parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.Pagination) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long skip_ ; - /** - *
-       * Skip the number of records specified, default is 0
-       * 
- * - * uint64 skip = 1 [json_name = "skip"]; - * @return The skip. - */ - @java.lang.Override - public long getSkip() { - return skip_; - } - /** - *
-       * Skip the number of records specified, default is 0
-       * 
- * - * uint64 skip = 1 [json_name = "skip"]; - * @param value The skip to set. - * @return This builder for chaining. - */ - public Builder setSkip(long value) { - - skip_ = value; - onChanged(); - return this; - } - /** - *
-       * Skip the number of records specified, default is 0
-       * 
- * - * uint64 skip = 1 [json_name = "skip"]; - * @return This builder for chaining. - */ - public Builder clearSkip() { - - skip_ = 0L; - onChanged(); - return this; - } - - private long limit_ ; - /** - *
-       * Limit the number of returned records to the value specified, default is 50
-       * 
- * - * uint64 limit = 2 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - *
-       * Limit the number of returned records to the value specified, default is 50
-       * 
- * - * uint64 limit = 2 [json_name = "limit"]; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Limit the number of returned records to the value specified, default is 50
-       * 
- * - * uint64 limit = 2 [json_name = "limit"]; - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private boolean descending_ ; - /** - *
-       * Descending reverses the order of the records returned,
-       * default is true, if false the results will be returned in ascending order
-       * 
- * - * bool descending = 3 [json_name = "descending"]; - * @return The descending. - */ - @java.lang.Override - public boolean getDescending() { - return descending_; - } - /** - *
-       * Descending reverses the order of the records returned,
-       * default is true, if false the results will be returned in ascending order
-       * 
- * - * bool descending = 3 [json_name = "descending"]; - * @param value The descending to set. - * @return This builder for chaining. - */ - public Builder setDescending(boolean value) { - - descending_ = value; - onChanged(); - return this; - } - /** - *
-       * Descending reverses the order of the records returned,
-       * default is true, if false the results will be returned in ascending order
-       * 
- * - * bool descending = 3 [json_name = "descending"]; - * @return This builder for chaining. - */ - public Builder clearDescending() { - - descending_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.Pagination) - } - - // @@protoc_insertion_point(class_scope:api.v1.Pagination) - private static final io.vegaprotocol.vega.api.Trading.Pagination DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.Pagination(); - } - - public static io.vegaprotocol.vega.api.Trading.Pagination getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pagination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Pagination(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrdersSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrdersSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.Order getOrders(int index); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - int getOrdersCount(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersOrBuilderList(); - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index); - } - /** - *
-   * A stream of orders
-   * 
- * - * Protobuf type {@code api.v1.OrdersSubscribeResponse} - */ - public static final class OrdersSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrdersSubscribeResponse) - OrdersSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrdersSubscribeResponse.newBuilder() to construct. - private OrdersSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrdersSubscribeResponse() { - orders_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrdersSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrdersSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - orders_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.Builder.class); - } - - public static final int ORDERS_FIELD_NUMBER = 1; - private java.util.List orders_; - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List getOrdersList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List - getOrdersOrBuilderList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public int getOrdersCount() { - return orders_.size(); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - return orders_.get(index); - } - /** - *
-     * A list of 0 or more orders
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - return orders_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < orders_.size(); i++) { - output.writeMessage(1, orders_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < orders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, orders_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse) obj; - - if (!getOrdersList() - .equals(other.getOrdersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOrdersCount() > 0) { - hash = (37 * hash) + ORDERS_FIELD_NUMBER; - hash = (53 * hash) + getOrdersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A stream of orders
-     * 
- * - * Protobuf type {@code api.v1.OrdersSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrdersSubscribeResponse) - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOrdersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ordersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrdersSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse(this); - int from_bitField0_ = bitField0_; - if (ordersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.orders_ = orders_; - } else { - result.orders_ = ordersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.getDefaultInstance()) return this; - if (ordersBuilder_ == null) { - if (!other.orders_.isEmpty()) { - if (orders_.isEmpty()) { - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOrdersIsMutable(); - orders_.addAll(other.orders_); - } - onChanged(); - } - } else { - if (!other.orders_.isEmpty()) { - if (ordersBuilder_.isEmpty()) { - ordersBuilder_.dispose(); - ordersBuilder_ = null; - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - ordersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrdersFieldBuilder() : null; - } else { - ordersBuilder_.addAllMessages(other.orders_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List orders_ = - java.util.Collections.emptyList(); - private void ensureOrdersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(orders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> ordersBuilder_; - - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List getOrdersList() { - if (ordersBuilder_ == null) { - return java.util.Collections.unmodifiableList(orders_); - } else { - return ordersBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public int getOrdersCount() { - if (ordersBuilder_ == null) { - return orders_.size(); - } else { - return ordersBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); - } else { - return ordersBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.set(index, value); - onChanged(); - } else { - ordersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.set(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders(io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(value); - onChanged(); - } else { - ordersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(index, value); - onChanged(); - } else { - ordersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addAllOrders( - java.lang.Iterable values) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orders_); - onChanged(); - } else { - ordersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder clearOrders() { - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ordersBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder removeOrders(int index) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.remove(index); - onChanged(); - } else { - ordersBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrdersBuilder( - int index) { - return getOrdersFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); } else { - return ordersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersOrBuilderList() { - if (ordersBuilder_ != null) { - return ordersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orders_); - } - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder( - int index) { - return getOrdersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersBuilderList() { - return getOrdersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrdersFieldBuilder() { - if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - orders_ = null; - } - return ordersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrdersSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrdersSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrdersSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TradesSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TradesSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.Trade getTrades(int index); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - int getTradesCount(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - java.util.List - getTradesOrBuilderList(); - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index); - } - /** - *
-   * A stream of trades
-   * 
- * - * Protobuf type {@code api.v1.TradesSubscribeResponse} - */ - public static final class TradesSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TradesSubscribeResponse) - TradesSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TradesSubscribeResponse.newBuilder() to construct. - private TradesSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TradesSubscribeResponse() { - trades_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TradesSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TradesSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - trades_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Trade.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.Builder.class); - } - - public static final int TRADES_FIELD_NUMBER = 1; - private java.util.List trades_; - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List getTradesList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public java.util.List - getTradesOrBuilderList() { - return trades_; - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public int getTradesCount() { - return trades_.size(); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - return trades_.get(index); - } - /** - *
-     * A list of 0 or more trades
-     * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - return trades_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < trades_.size(); i++) { - output.writeMessage(1, trades_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < trades_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, trades_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse) obj; - - if (!getTradesList() - .equals(other.getTradesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTradesCount() > 0) { - hash = (37 * hash) + TRADES_FIELD_NUMBER; - hash = (53 * hash) + getTradesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A stream of trades
-     * 
- * - * Protobuf type {@code api.v1.TradesSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TradesSubscribeResponse) - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTradesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tradesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TradesSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse(this); - int from_bitField0_ = bitField0_; - if (tradesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - trades_ = java.util.Collections.unmodifiableList(trades_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trades_ = trades_; - } else { - result.trades_ = tradesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.getDefaultInstance()) return this; - if (tradesBuilder_ == null) { - if (!other.trades_.isEmpty()) { - if (trades_.isEmpty()) { - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTradesIsMutable(); - trades_.addAll(other.trades_); - } - onChanged(); - } - } else { - if (!other.trades_.isEmpty()) { - if (tradesBuilder_.isEmpty()) { - tradesBuilder_.dispose(); - tradesBuilder_ = null; - trades_ = other.trades_; - bitField0_ = (bitField0_ & ~0x00000001); - tradesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTradesFieldBuilder() : null; - } else { - tradesBuilder_.addAllMessages(other.trades_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List trades_ = - java.util.Collections.emptyList(); - private void ensureTradesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - trades_ = new java.util.ArrayList(trades_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> tradesBuilder_; - - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List getTradesList() { - if (tradesBuilder_ == null) { - return java.util.Collections.unmodifiableList(trades_); - } else { - return tradesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public int getTradesCount() { - if (tradesBuilder_ == null) { - return trades_.size(); - } else { - return tradesBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade getTrades(int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); - } else { - return tradesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.set(index, value); - onChanged(); - } else { - tradesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder setTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.set(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades(io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(value); - onChanged(); - } else { - tradesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade value) { - if (tradesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTradesIsMutable(); - trades_.add(index, value); - onChanged(); - } else { - tradesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addTrades( - int index, io.vegaprotocol.vega.Vega.Trade.Builder builderForValue) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.add(index, builderForValue.build()); - onChanged(); - } else { - tradesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder addAllTrades( - java.lang.Iterable values) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trades_); - onChanged(); - } else { - tradesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder clearTrades() { - if (tradesBuilder_ == null) { - trades_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tradesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public Builder removeTrades(int index) { - if (tradesBuilder_ == null) { - ensureTradesIsMutable(); - trades_.remove(index); - onChanged(); - } else { - tradesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder getTradesBuilder( - int index) { - return getTradesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.TradeOrBuilder getTradesOrBuilder( - int index) { - if (tradesBuilder_ == null) { - return trades_.get(index); } else { - return tradesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesOrBuilderList() { - if (tradesBuilder_ != null) { - return tradesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trades_); - } - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder() { - return getTradesFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public io.vegaprotocol.vega.Vega.Trade.Builder addTradesBuilder( - int index) { - return getTradesFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Trade.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more trades
-       * 
- * - * repeated .vega.Trade trades = 1 [json_name = "trades"]; - */ - public java.util.List - getTradesBuilderList() { - return getTradesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder> - getTradesFieldBuilder() { - if (tradesBuilder_ == null) { - tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Trade, io.vegaprotocol.vega.Vega.Trade.Builder, io.vegaprotocol.vega.Vega.TradeOrBuilder>( - trades_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - trades_ = null; - } - return tradesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TradesSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TradesSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TradesSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TransferResponsesSubscribeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TransferResponsesSubscribeRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code api.v1.TransferResponsesSubscribeRequest} - */ - public static final class TransferResponsesSubscribeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TransferResponsesSubscribeRequest) - TransferResponsesSubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferResponsesSubscribeRequest.newBuilder() to construct. - private TransferResponsesSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransferResponsesSubscribeRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferResponsesSubscribeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransferResponsesSubscribeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest other = (io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.TransferResponsesSubscribeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TransferResponsesSubscribeRequest) - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.class, io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest build() { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest result = new io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TransferResponsesSubscribeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeRequest) - private static final io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferResponsesSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferResponsesSubscribeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TransferResponsesSubscribeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.TransferResponsesSubscribeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - boolean hasResponse(); - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return The response. - */ - io.vegaprotocol.vega.Vega.TransferResponse getResponse(); - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - io.vegaprotocol.vega.Vega.TransferResponseOrBuilder getResponseOrBuilder(); - } - /** - * Protobuf type {@code api.v1.TransferResponsesSubscribeResponse} - */ - public static final class TransferResponsesSubscribeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.TransferResponsesSubscribeResponse) - TransferResponsesSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferResponsesSubscribeResponse.newBuilder() to construct. - private TransferResponsesSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransferResponsesSubscribeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferResponsesSubscribeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransferResponsesSubscribeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.TransferResponse.Builder subBuilder = null; - if (response_ != null) { - subBuilder = response_.toBuilder(); - } - response_ = input.readMessage(io.vegaprotocol.vega.Vega.TransferResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(response_); - response_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.Builder.class); - } - - public static final int RESPONSE_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.TransferResponse response_; - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - @java.lang.Override - public boolean hasResponse() { - return response_ != null; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return The response. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponse getResponse() { - return response_ == null ? io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance() : response_; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.TransferResponseOrBuilder getResponseOrBuilder() { - return getResponse(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (response_ != null) { - output.writeMessage(1, getResponse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (response_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResponse()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse other = (io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse) obj; - - if (hasResponse() != other.hasResponse()) return false; - if (hasResponse()) { - if (!getResponse() - .equals(other.getResponse())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasResponse()) { - hash = (37 * hash) + RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getResponse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.TransferResponsesSubscribeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.TransferResponsesSubscribeResponse) - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.class, io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (responseBuilder_ == null) { - response_ = null; - } else { - response_ = null; - responseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse build() { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse result = new io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse(this); - if (responseBuilder_ == null) { - result.response_ = response_; - } else { - result.response_ = responseBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.getDefaultInstance()) return this; - if (other.hasResponse()) { - mergeResponse(other.getResponse()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.TransferResponse response_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferResponse, io.vegaprotocol.vega.Vega.TransferResponse.Builder, io.vegaprotocol.vega.Vega.TransferResponseOrBuilder> responseBuilder_; - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - public boolean hasResponse() { - return responseBuilder_ != null || response_ != null; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - * @return The response. - */ - public io.vegaprotocol.vega.Vega.TransferResponse getResponse() { - if (responseBuilder_ == null) { - return response_ == null ? io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance() : response_; - } else { - return responseBuilder_.getMessage(); - } - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public Builder setResponse(io.vegaprotocol.vega.Vega.TransferResponse value) { - if (responseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - onChanged(); - } else { - responseBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public Builder setResponse( - io.vegaprotocol.vega.Vega.TransferResponse.Builder builderForValue) { - if (responseBuilder_ == null) { - response_ = builderForValue.build(); - onChanged(); - } else { - responseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public Builder mergeResponse(io.vegaprotocol.vega.Vega.TransferResponse value) { - if (responseBuilder_ == null) { - if (response_ != null) { - response_ = - io.vegaprotocol.vega.Vega.TransferResponse.newBuilder(response_).mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - onChanged(); - } else { - responseBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public Builder clearResponse() { - if (responseBuilder_ == null) { - response_ = null; - onChanged(); - } else { - response_ = null; - responseBuilder_ = null; - } - - return this; - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public io.vegaprotocol.vega.Vega.TransferResponse.Builder getResponseBuilder() { - - onChanged(); - return getResponseFieldBuilder().getBuilder(); - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - public io.vegaprotocol.vega.Vega.TransferResponseOrBuilder getResponseOrBuilder() { - if (responseBuilder_ != null) { - return responseBuilder_.getMessageOrBuilder(); - } else { - return response_ == null ? - io.vegaprotocol.vega.Vega.TransferResponse.getDefaultInstance() : response_; - } - } - /** - * .vega.TransferResponse response = 1 [json_name = "response"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferResponse, io.vegaprotocol.vega.Vega.TransferResponse.Builder, io.vegaprotocol.vega.Vega.TransferResponseOrBuilder> - getResponseFieldBuilder() { - if (responseBuilder_ == null) { - responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.TransferResponse, io.vegaprotocol.vega.Vega.TransferResponse.Builder, io.vegaprotocol.vega.Vega.TransferResponseOrBuilder>( - getResponse(), - getParentForChildren(), - isClean()); - response_ = null; - } - return responseBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.TransferResponsesSubscribeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeResponse) - private static final io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferResponsesSubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferResponsesSubscribeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartyAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartyAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Account type, required field
-     * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-     * Account type, required field
-     * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The type. - */ - io.vegaprotocol.vega.Vega.AccountType getType(); - - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - com.google.protobuf.ByteString - getAssetBytes(); - } - /** - *
-   * Request for a list of accounts for a party
-   * 
- * - * Protobuf type {@code api.v1.PartyAccountsRequest} - */ - public static final class PartyAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartyAccountsRequest) - PartyAccountsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartyAccountsRequest.newBuilder() to construct. - private PartyAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartyAccountsRequest() { - partyId_ = ""; - marketId_ = ""; - type_ = 0; - asset_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartyAccountsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartyAccountsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.class, io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier
-     * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-     * Account type, required field
-     * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Account type, required field
-     * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; - } - - public static final int ASSET_FIELD_NUMBER = 4; - private volatile java.lang.Object asset_; - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, type_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - if (type_ != io.vegaprotocol.vega.Vega.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartyAccountsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest other = (io.vegaprotocol.vega.api.Trading.PartyAccountsRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (type_ != other.type_) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartyAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of accounts for a party
-     * 
- * - * Protobuf type {@code api.v1.PartyAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartyAccountsRequest) - io.vegaprotocol.vega.api.Trading.PartyAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.class, io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - marketId_ = ""; - - type_ = 0; - - asset_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsRequest build() { - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest result = new io.vegaprotocol.vega.api.Trading.PartyAccountsRequest(this); - result.partyId_ = partyId_; - result.marketId_ = marketId_; - result.type_ = type_; - result.asset_ = asset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartyAccountsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartyAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartyAccountsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartyAccountsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier
-       * 
- * - * string party_id = 1 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * Account type, required field
-       * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-       * Account type, required field
-       * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Account type, required field
-       * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountType getType() { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.Vega.AccountType result = io.vegaprotocol.vega.Vega.AccountType.valueOf(type_); - return result == null ? io.vegaprotocol.vega.Vega.AccountType.UNRECOGNIZED : result; - } - /** - *
-       * Account type, required field
-       * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(io.vegaprotocol.vega.Vega.AccountType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Account type, required field
-       * 
- * - * .vega.AccountType type = 3 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object asset_ = ""; - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { - - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 4 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartyAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartyAccountsRequest) - private static final io.vegaprotocol.vega.api.Trading.PartyAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartyAccountsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PartyAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartyAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartyAccountsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartyAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PartyAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsList(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.Account getAccounts(int index); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - int getAccountsCount(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index); - } - /** - *
-   * Response for a list of accounts for a party
-   * 
- * - * Protobuf type {@code api.v1.PartyAccountsResponse} - */ - public static final class PartyAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PartyAccountsResponse) - PartyAccountsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartyAccountsResponse.newBuilder() to construct. - private PartyAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartyAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PartyAccountsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartyAccountsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.class, io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PartyAccountsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse other = (io.vegaprotocol.vega.api.Trading.PartyAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PartyAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of accounts for a party
-     * 
- * - * Protobuf type {@code api.v1.PartyAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PartyAccountsResponse) - io.vegaprotocol.vega.api.Trading.PartyAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.class, io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PartyAccountsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsResponse build() { - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse result = new io.vegaprotocol.vega.api.Trading.PartyAccountsResponse(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PartyAccountsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PartyAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PartyAccountsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PartyAccountsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountsBuilder_; - - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts(io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PartyAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PartyAccountsResponse) - private static final io.vegaprotocol.vega.api.Trading.PartyAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PartyAccountsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PartyAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartyAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartyAccountsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PartyAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The bytes for asset. - */ - com.google.protobuf.ByteString - getAssetBytes(); - } - /** - *
-   * Request for a list of accounts for a market
-   * 
- * - * Protobuf type {@code api.v1.MarketAccountsRequest} - */ - public static final class MarketAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketAccountsRequest) - MarketAccountsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketAccountsRequest.newBuilder() to construct. - private MarketAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketAccountsRequest() { - marketId_ = ""; - asset_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketAccountsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketAccountsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.class, io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.Builder.class); - } - - public static final int MARKET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier
-     * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSET_FIELD_NUMBER = 2; - private volatile java.lang.Object asset_; - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * Asset identifier
-     * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); - } - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); - } - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketAccountsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest other = (io.vegaprotocol.vega.api.Trading.MarketAccountsRequest) obj; - - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of accounts for a market
-     * 
- * - * Protobuf type {@code api.v1.MarketAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketAccountsRequest) - io.vegaprotocol.vega.api.Trading.MarketAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.class, io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - marketId_ = ""; - - asset_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsRequest build() { - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest result = new io.vegaprotocol.vega.api.Trading.MarketAccountsRequest(this); - result.marketId_ = marketId_; - result.asset_ = asset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketAccountsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketAccountsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.getDefaultInstance()) return this; - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketAccountsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier
-       * 
- * - * string market_id = 1 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object asset_ = ""; - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 2 [json_name = "asset"]; - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 2 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 2 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { - - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier
-       * 
- * - * string asset = 2 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketAccountsRequest) - private static final io.vegaprotocol.vega.api.Trading.MarketAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketAccountsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketAccountsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MarketAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.MarketAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsList(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.Account getAccounts(int index); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - int getAccountsCount(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index); - } - /** - *
-   * Response for a list of accounts for a market
-   * 
- * - * Protobuf type {@code api.v1.MarketAccountsResponse} - */ - public static final class MarketAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.MarketAccountsResponse) - MarketAccountsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarketAccountsResponse.newBuilder() to construct. - private MarketAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MarketAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarketAccountsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarketAccountsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.class, io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-     * A list of 0 or more accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.MarketAccountsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse other = (io.vegaprotocol.vega.api.Trading.MarketAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.MarketAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of accounts for a market
-     * 
- * - * Protobuf type {@code api.v1.MarketAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.MarketAccountsResponse) - io.vegaprotocol.vega.api.Trading.MarketAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.class, io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_MarketAccountsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsResponse build() { - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse result = new io.vegaprotocol.vega.api.Trading.MarketAccountsResponse(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.MarketAccountsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.MarketAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.MarketAccountsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.MarketAccountsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountsBuilder_; - - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts(io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.MarketAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.MarketAccountsResponse) - private static final io.vegaprotocol.vega.api.Trading.MarketAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.MarketAccountsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.MarketAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MarketAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarketAccountsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.MarketAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FeeInfrastructureAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.FeeInfrastructureAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Asset identifier, required field
-     * - Set to an empty string to return all accounts
-     * - Set to an asset ID to return a single infrastructure fee account for a given asset
-     * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The asset. - */ - java.lang.String getAsset(); - /** - *
-     * Asset identifier, required field
-     * - Set to an empty string to return all accounts
-     * - Set to an asset ID to return a single infrastructure fee account for a given asset
-     * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The bytes for asset. - */ - com.google.protobuf.ByteString - getAssetBytes(); - } - /** - *
-   * Request for a list of infrastructure fee accounts
-   * 
- * - * Protobuf type {@code api.v1.FeeInfrastructureAccountsRequest} - */ - public static final class FeeInfrastructureAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.FeeInfrastructureAccountsRequest) - FeeInfrastructureAccountsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeeInfrastructureAccountsRequest.newBuilder() to construct. - private FeeInfrastructureAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeeInfrastructureAccountsRequest() { - asset_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeeInfrastructureAccountsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeeInfrastructureAccountsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - asset_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.class, io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.Builder.class); - } - - public static final int ASSET_FIELD_NUMBER = 1; - private volatile java.lang.Object asset_; - /** - *
-     * Asset identifier, required field
-     * - Set to an empty string to return all accounts
-     * - Set to an asset ID to return a single infrastructure fee account for a given asset
-     * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - /** - *
-     * Asset identifier, required field
-     * - Set to an empty string to return all accounts
-     * - Set to an asset ID to return a single infrastructure fee account for a given asset
-     * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAssetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAssetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest other = (io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest) obj; - - if (!getAsset() - .equals(other.getAsset())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of infrastructure fee accounts
-     * 
- * - * Protobuf type {@code api.v1.FeeInfrastructureAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.FeeInfrastructureAccountsRequest) - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.class, io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - asset_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest build() { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest result = new io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest(this); - result.asset_ = asset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.getDefaultInstance()) return this; - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object asset_ = ""; - /** - *
-       * Asset identifier, required field
-       * - Set to an empty string to return all accounts
-       * - Set to an asset ID to return a single infrastructure fee account for a given asset
-       * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Asset identifier, required field
-       * - Set to an empty string to return all accounts
-       * - Set to an asset ID to return a single infrastructure fee account for a given asset
-       * 
- * - * string asset = 1 [json_name = "asset"]; - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString - getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Asset identifier, required field
-       * - Set to an empty string to return all accounts
-       * - Set to an asset ID to return a single infrastructure fee account for a given asset
-       * 
- * - * string asset = 1 [json_name = "asset"]; - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - asset_ = value; - onChanged(); - return this; - } - /** - *
-       * Asset identifier, required field
-       * - Set to an empty string to return all accounts
-       * - Set to an asset ID to return a single infrastructure fee account for a given asset
-       * 
- * - * string asset = 1 [json_name = "asset"]; - * @return This builder for chaining. - */ - public Builder clearAsset() { - - asset_ = getDefaultInstance().getAsset(); - onChanged(); - return this; - } - /** - *
-       * Asset identifier, required field
-       * - Set to an empty string to return all accounts
-       * - Set to an asset ID to return a single infrastructure fee account for a given asset
-       * 
- * - * string asset = 1 [json_name = "asset"]; - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - asset_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.FeeInfrastructureAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsRequest) - private static final io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeeInfrastructureAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeeInfrastructureAccountsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FeeInfrastructureAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.FeeInfrastructureAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsList(); - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.Account getAccounts(int index); - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - int getAccountsCount(); - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index); - } - /** - *
-   * Response for a list of infrastructure fee accounts
-   * 
- * - * Protobuf type {@code api.v1.FeeInfrastructureAccountsResponse} - */ - public static final class FeeInfrastructureAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.FeeInfrastructureAccountsResponse) - FeeInfrastructureAccountsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeeInfrastructureAccountsResponse.newBuilder() to construct. - private FeeInfrastructureAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeeInfrastructureAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeeInfrastructureAccountsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeeInfrastructureAccountsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.class, io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-     * A list of 0 or more infrastructure fee accounts
-     * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse other = (io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for a list of infrastructure fee accounts
-     * 
- * - * Protobuf type {@code api.v1.FeeInfrastructureAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.FeeInfrastructureAccountsResponse) - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.class, io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse build() { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse result = new io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> accountsBuilder_; - - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder setAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts(io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAccounts( - int index, io.vegaprotocol.vega.Vega.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public io.vegaprotocol.vega.Vega.Account.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Account.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more infrastructure fee accounts
-       * 
- * - * repeated .vega.Account accounts = 1 [json_name = "accounts"]; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Account, io.vegaprotocol.vega.Vega.Account.Builder, io.vegaprotocol.vega.Vega.AccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.FeeInfrastructureAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsResponse) - private static final io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeeInfrastructureAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeeInfrastructureAccountsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareProposalSubmissionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareProposalSubmissionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - boolean hasSubmission(); - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return The submission. - */ - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission(); - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder(); - } - /** - *
-   * Request to prepare a governance proposal
-   * 
- * - * Protobuf type {@code api.v1.PrepareProposalSubmissionRequest} - */ - public static final class PrepareProposalSubmissionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareProposalSubmissionRequest) - PrepareProposalSubmissionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareProposalSubmissionRequest.newBuilder() to construct. - private PrepareProposalSubmissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareProposalSubmissionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareProposalSubmissionRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareProposalSubmissionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.Builder.class); - } - - public static final int SUBMISSION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission submission_; - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return The submission. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (submission_ != null) { - output.writeMessage(1, getSubmission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest other = (io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest) obj; - - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to prepare a governance proposal
-     * 
- * - * Protobuf type {@code api.v1.PrepareProposalSubmissionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareProposalSubmissionRequest) - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest result = new io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest(this); - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.getDefaultInstance()) return this; - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder> submissionBuilder_; - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } - } - /** - * .vega.commands.v1.ProposalSubmission submission = 1 [json_name = "submission"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareProposalSubmissionRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareProposalSubmissionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareProposalSubmissionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareProposalSubmissionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareProposalSubmissionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - com.google.protobuf.ByteString getBlob(); - - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - boolean hasSubmission(); - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission(); - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder(); - } - /** - *
-   * Response to prepare a governance proposal
-   * 
- * - * Protobuf type {@code api.v1.PrepareProposalSubmissionResponse} - */ - public static final class PrepareProposalSubmissionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareProposalSubmissionResponse) - PrepareProposalSubmissionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareProposalSubmissionResponse.newBuilder() to construct. - private PrepareProposalSubmissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareProposalSubmissionResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareProposalSubmissionResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareProposalSubmissionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - blob_ = input.readBytes(); - break; - } - case 18: { - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.Builder.class); - } - - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; - /** - *
-     * A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - - public static final int SUBMISSION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission submission_; - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; - } - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } - /** - *
-     * A copy of the prepared proposal
-     * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); - } - if (submission_ != null) { - output.writeMessage(2, getSubmission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); - } - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse other = (io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse) obj; - - if (!getBlob() - .equals(other.getBlob())) return false; - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to prepare a governance proposal
-     * 
- * - * Protobuf type {@code api.v1.PrepareProposalSubmissionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareProposalSubmissionResponse) - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse result = new io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse(this); - result.blob_ = blob_; - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - /** - *
-       * A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blob_ = value; - onChanged(); - return this; - } - /** - *
-       * A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. - */ - public Builder clearBlob() { - - blob_ = getDefaultInstance().getBlob(); - onChanged(); - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder> submissionBuilder_; - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.getDefaultInstance() : submission_; - } - } - /** - *
-       * A copy of the prepared proposal
-       * 
- * - * .vega.commands.v1.ProposalSubmission submission = 2 [json_name = "submission"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.ProposalSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareProposalSubmissionResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareProposalSubmissionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareProposalSubmissionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareVoteSubmissionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareVoteSubmissionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - boolean hasSubmission(); - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission(); - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder(); - } - /** - *
-   * Request to prepare a governance vote
-   * 
- * - * Protobuf type {@code api.v1.PrepareVoteSubmissionRequest} - */ - public static final class PrepareVoteSubmissionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareVoteSubmissionRequest) - PrepareVoteSubmissionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareVoteSubmissionRequest.newBuilder() to construct. - private PrepareVoteSubmissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareVoteSubmissionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareVoteSubmissionRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareVoteSubmissionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.Builder.class); - } - - public static final int SUBMISSION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission submission_; - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; - } - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } - /** - *
-     * Vote, required field
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (submission_ != null) { - output.writeMessage(1, getSubmission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest other = (io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest) obj; - - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to prepare a governance vote
-     * 
- * - * Protobuf type {@code api.v1.PrepareVoteSubmissionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareVoteSubmissionRequest) - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest result = new io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest(this); - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.getDefaultInstance()) return this; - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder> submissionBuilder_; - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } - } - /** - *
-       * Vote, required field
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareVoteSubmissionRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareVoteSubmissionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareVoteSubmissionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareVoteSubmissionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareVoteSubmissionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - com.google.protobuf.ByteString getBlob(); - - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - boolean hasSubmission(); - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission(); - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder(); - } - /** - *
-   * Response to prepare a governance vote
-   * 
- * - * Protobuf type {@code api.v1.PrepareVoteSubmissionResponse} - */ - public static final class PrepareVoteSubmissionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareVoteSubmissionResponse) - PrepareVoteSubmissionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareVoteSubmissionResponse.newBuilder() to construct. - private PrepareVoteSubmissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareVoteSubmissionResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareVoteSubmissionResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareVoteSubmissionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - blob_ = input.readBytes(); - break; - } - case 18: { - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.Builder.class); - } - - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; - /** - *
-     * A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - - public static final int SUBMISSION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission submission_; - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; - } - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } - /** - *
-     * A copy of the prepared vote
-     * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); - } - if (submission_ != null) { - output.writeMessage(2, getSubmission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); - } - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse other = (io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse) obj; - - if (!getBlob() - .equals(other.getBlob())) return false; - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to prepare a governance vote
-     * 
- * - * Protobuf type {@code api.v1.PrepareVoteSubmissionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareVoteSubmissionResponse) - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse result = new io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse(this); - result.blob_ = blob_; - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - /** - *
-       * A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blob_ = value; - onChanged(); - return this; - } - /** - *
-       * A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. - */ - public Builder clearBlob() { - - blob_ = getDefaultInstance().getBlob(); - onChanged(); - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder> submissionBuilder_; - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - public io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.getDefaultInstance() : submission_; - } - } - /** - *
-       * A copy of the prepared vote
-       * 
- * - * .vega.commands.v1.VoteSubmission submission = 2 [json_name = "submission"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.VoteSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareVoteSubmissionResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareVoteSubmissionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareVoteSubmissionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareLiquidityProvisionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareLiquidityProvisionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - boolean hasSubmission(); - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission getSubmission(); - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder getSubmissionOrBuilder(); - } - /** - *
-   * Request to prepare liquiditity provision
-   * 
- * - * Protobuf type {@code api.v1.PrepareLiquidityProvisionRequest} - */ - public static final class PrepareLiquidityProvisionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareLiquidityProvisionRequest) - PrepareLiquidityProvisionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareLiquidityProvisionRequest.newBuilder() to construct. - private PrepareLiquidityProvisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareLiquidityProvisionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareLiquidityProvisionRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareLiquidityProvisionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder subBuilder = null; - if (submission_ != null) { - subBuilder = submission_.toBuilder(); - } - submission_ = input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submission_); - submission_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.Builder.class); - } - - public static final int SUBMISSION_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission submission_; - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - @java.lang.Override - public boolean hasSubmission() { - return submission_ != null; - } - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission getSubmission() { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.getDefaultInstance() : submission_; - } - /** - *
-     * Submission, required field
-     * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - @java.lang.Override - public io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder getSubmissionOrBuilder() { - return getSubmission(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (submission_ != null) { - output.writeMessage(1, getSubmission()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (submission_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubmission()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest other = (io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest) obj; - - if (hasSubmission() != other.hasSubmission()) return false; - if (hasSubmission()) { - if (!getSubmission() - .equals(other.getSubmission())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSubmission()) { - hash = (37 * hash) + SUBMISSION_FIELD_NUMBER; - hash = (53 * hash) + getSubmission().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to prepare liquiditity provision
-     * 
- * - * Protobuf type {@code api.v1.PrepareLiquidityProvisionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareLiquidityProvisionRequest) - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.class, io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (submissionBuilder_ == null) { - submission_ = null; - } else { - submission_ = null; - submissionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest build() { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest result = new io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest(this); - if (submissionBuilder_ == null) { - result.submission_ = submission_; - } else { - result.submission_ = submissionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.getDefaultInstance()) return this; - if (other.hasSubmission()) { - mergeSubmission(other.getSubmission()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission submission_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder> submissionBuilder_; - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return Whether the submission field is set. - */ - public boolean hasSubmission() { - return submissionBuilder_ != null || submission_ != null; - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - * @return The submission. - */ - public io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission getSubmission() { - if (submissionBuilder_ == null) { - return submission_ == null ? io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.getDefaultInstance() : submission_; - } else { - return submissionBuilder_.getMessage(); - } - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder setSubmission(io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission value) { - if (submissionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - submission_ = value; - onChanged(); - } else { - submissionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder setSubmission( - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder builderForValue) { - if (submissionBuilder_ == null) { - submission_ = builderForValue.build(); - onChanged(); - } else { - submissionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder mergeSubmission(io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission value) { - if (submissionBuilder_ == null) { - if (submission_ != null) { - submission_ = - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.newBuilder(submission_).mergeFrom(value).buildPartial(); - } else { - submission_ = value; - } - onChanged(); - } else { - submissionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public Builder clearSubmission() { - if (submissionBuilder_ == null) { - submission_ = null; - onChanged(); - } else { - submission_ = null; - submissionBuilder_ = null; - } - - return this; - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder getSubmissionBuilder() { - - onChanged(); - return getSubmissionFieldBuilder().getBuilder(); - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - public io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder getSubmissionOrBuilder() { - if (submissionBuilder_ != null) { - return submissionBuilder_.getMessageOrBuilder(); - } else { - return submission_ == null ? - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.getDefaultInstance() : submission_; - } - } - /** - *
-       * Submission, required field
-       * 
- * - * .vega.commands.v1.LiquidityProvisionSubmission submission = 1 [json_name = "submission", (.validator.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder> - getSubmissionFieldBuilder() { - if (submissionBuilder_ == null) { - submissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.LiquidityProvisionSubmissionOrBuilder>( - getSubmission(), - getParentForChildren(), - isClean()); - submission_ = null; - } - return submissionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareLiquidityProvisionRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionRequest) - private static final io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareLiquidityProvisionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareLiquidityProvisionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrepareLiquidityProvisionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.PrepareLiquidityProvisionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - com.google.protobuf.ByteString getBlob(); - } - /** - *
-   * Response to a liquidity provision request
-   * 
- * - * Protobuf type {@code api.v1.PrepareLiquidityProvisionResponse} - */ - public static final class PrepareLiquidityProvisionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.PrepareLiquidityProvisionResponse) - PrepareLiquidityProvisionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrepareLiquidityProvisionResponse.newBuilder() to construct. - private PrepareLiquidityProvisionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrepareLiquidityProvisionResponse() { - blob_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrepareLiquidityProvisionResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrepareLiquidityProvisionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - blob_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.Builder.class); - } - - public static final int BLOB_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blob_; - /** - *
-     * A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction
-     * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blob_.isEmpty()) { - output.writeBytes(1, blob_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blob_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse other = (io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse) obj; - - if (!getBlob() - .equals(other.getBlob())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a liquidity provision request
-     * 
- * - * Protobuf type {@code api.v1.PrepareLiquidityProvisionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.PrepareLiquidityProvisionResponse) - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.class, io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blob_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse build() { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse result = new io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse(this); - result.blob_ = blob_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.getDefaultInstance()) return this; - if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { - setBlob(other.getBlob()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBlob() { - return blob_; - } - /** - *
-       * A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @param value The blob to set. - * @return This builder for chaining. - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blob_ = value; - onChanged(); - return this; - } - /** - *
-       * A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction
-       * 
- * - * bytes blob = 1 [json_name = "blob"]; - * @return This builder for chaining. - */ - public Builder clearBlob() { - - blob_ = getDefaultInstance().getBlob(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.PrepareLiquidityProvisionResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionResponse) - private static final io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrepareLiquidityProvisionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrepareLiquidityProvisionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - java.lang.String getOrderId(); - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - com.google.protobuf.ByteString - getOrderIdBytes(); - - /** - *
-     * Version of the order:
-     * - Set `version` to 0 for most recent version of the order
-     * - Set `1` for original version of the order
-     * - Set `2` for first amendment, `3` for second amendment, etc
-     * 
- * - * uint64 version = 2 [json_name = "version"]; - * @return The version. - */ - long getVersion(); - } - /** - *
-   * Request for an order with the specified order identifier
-   * Optionally, return a specific version of the order with the `version` field
-   * 
- * - * Protobuf type {@code api.v1.OrderByIDRequest} - */ - public static final class OrderByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByIDRequest) - OrderByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByIDRequest.newBuilder() to construct. - private OrderByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByIDRequest() { - orderId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - orderId_ = s; - break; - } - case 16: { - - version_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderByIDRequest.Builder.class); - } - - public static final int ORDER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object orderId_; - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - @java.lang.Override - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } - } - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private long version_; - /** - *
-     * Version of the order:
-     * - Set `version` to 0 for most recent version of the order
-     * - Set `1` for original version of the order
-     * - Set `2` for first amendment, `3` for second amendment, etc
-     * 
- * - * uint64 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public long getVersion() { - return version_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOrderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); - } - if (version_ != 0L) { - output.writeUInt64(2, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOrderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); - } - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, version_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByIDRequest other = (io.vegaprotocol.vega.api.Trading.OrderByIDRequest) obj; - - if (!getOrderId() - .equals(other.getOrderId())) return false; - if (getVersion() - != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrderId().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for an order with the specified order identifier
-     * Optionally, return a specific version of the order with the `version` field
-     * 
- * - * Protobuf type {@code api.v1.OrderByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByIDRequest) - io.vegaprotocol.vega.api.Trading.OrderByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - orderId_ = ""; - - version_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDRequest build() { - io.vegaprotocol.vega.api.Trading.OrderByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByIDRequest result = new io.vegaprotocol.vega.api.Trading.OrderByIDRequest(this); - result.orderId_ = orderId_; - result.version_ = version_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByIDRequest.getDefaultInstance()) return this; - if (!other.getOrderId().isEmpty()) { - orderId_ = other.orderId_; - onChanged(); - } - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object orderId_ = ""; - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @param value The orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderId_ = value; - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearOrderId() { - - orderId_ = getDefaultInstance().getOrderId(); - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @param value The bytes for orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderId_ = value; - onChanged(); - return this; - } - - private long version_ ; - /** - *
-       * Version of the order:
-       * - Set `version` to 0 for most recent version of the order
-       * - Set `1` for original version of the order
-       * - Set `2` for first amendment, `3` for second amendment, etc
-       * 
- * - * uint64 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public long getVersion() { - return version_; - } - /** - *
-       * Version of the order:
-       * - Set `version` to 0 for most recent version of the order
-       * - Set `1` for original version of the order
-       * - Set `2` for first amendment, `3` for second amendment, etc
-       * 
- * - * uint64 version = 2 [json_name = "version"]; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version of the order:
-       * - Set `version` to 0 for most recent version of the order
-       * - Set `1` for original version of the order
-       * - Set `2` for first amendment, `3` for second amendment, etc
-       * 
- * - * uint64 version = 2 [json_name = "version"]; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.OrderByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - boolean hasOrder(); - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - io.vegaprotocol.vega.Vega.Order getOrder(); - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder(); - } - /** - * Protobuf type {@code api.v1.OrderByIDResponse} - */ - public static final class OrderByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderByIDResponse) - OrderByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderByIDResponse.newBuilder() to construct. - private OrderByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderByIDResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Order.Builder subBuilder = null; - if (order_ != null) { - subBuilder = order_.toBuilder(); - } - order_ = input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(order_); - order_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderByIDResponse.Builder.class); - } - - public static final int ORDER_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Order order_; - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - @java.lang.Override - public boolean hasOrder() { - return order_ != null; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrder() { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - return getOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (order_ != null) { - output.writeMessage(1, getOrder()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (order_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrder()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderByIDResponse other = (io.vegaprotocol.vega.api.Trading.OrderByIDResponse) obj; - - if (hasOrder() != other.hasOrder()) return false; - if (hasOrder()) { - if (!getOrder() - .equals(other.getOrder())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOrder()) { - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.OrderByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderByIDResponse) - io.vegaprotocol.vega.api.Trading.OrderByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderByIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (orderBuilder_ == null) { - order_ = null; - } else { - order_ = null; - orderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDResponse build() { - io.vegaprotocol.vega.api.Trading.OrderByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderByIDResponse result = new io.vegaprotocol.vega.api.Trading.OrderByIDResponse(this); - if (orderBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderByIDResponse.getDefaultInstance()) return this; - if (other.hasOrder()) { - mergeOrder(other.getOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Order order_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> orderBuilder_; - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - public boolean hasOrder() { - return orderBuilder_ != null || order_ != null; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - public io.vegaprotocol.vega.Vega.Order getOrder() { - if (orderBuilder_ == null) { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } else { - return orderBuilder_.getMessage(); - } - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - order_ = value; - onChanged(); - } else { - orderBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (orderBuilder_ == null) { - order_ = builderForValue.build(); - onChanged(); - } else { - orderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder mergeOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (order_ != null) { - order_ = - io.vegaprotocol.vega.Vega.Order.newBuilder(order_).mergeFrom(value).buildPartial(); - } else { - order_ = value; - } - onChanged(); - } else { - orderBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder clearOrder() { - if (orderBuilder_ == null) { - order_ = null; - onChanged(); - } else { - order_ = null; - orderBuilder_ = null; - } - - return this; - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrderBuilder() { - - onChanged(); - return getOrderFieldBuilder().getBuilder(); - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - if (orderBuilder_ != null) { - return orderBuilder_.getMessageOrBuilder(); - } else { - return order_ == null ? - io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - } - /** - * .vega.Order order = 1 [json_name = "order"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrderFieldBuilder() { - if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - getOrder(), - getParentForChildren(), - isClean()); - order_ = null; - } - return orderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.OrderByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderVersionsByIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderVersionsByIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - java.lang.String getOrderId(); - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - com.google.protobuf.ByteString - getOrderIdBytes(); - - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - boolean hasPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - io.vegaprotocol.vega.api.Trading.Pagination getPagination(); - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * Request for a list of all versions of an order given the specified order identifier
-   * 
- * - * Protobuf type {@code api.v1.OrderVersionsByIDRequest} - */ - public static final class OrderVersionsByIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderVersionsByIDRequest) - OrderVersionsByIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderVersionsByIDRequest.newBuilder() to construct. - private OrderVersionsByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderVersionsByIDRequest() { - orderId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderVersionsByIDRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderVersionsByIDRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - orderId_ = s; - break; - } - case 18: { - io.vegaprotocol.vega.api.Trading.Pagination.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(io.vegaprotocol.vega.api.Trading.Pagination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.Builder.class); - } - - public static final int ORDER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object orderId_; - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - @java.lang.Override - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } - } - /** - *
-     * Order identifier, required field
-     * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - @java.lang.Override - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination controls
-     * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOrderIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOrderIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest other = (io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest) obj; - - if (!getOrderId() - .equals(other.getOrderId())) return false; - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrderId().hashCode(); - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for a list of all versions of an order given the specified order identifier
-     * 
- * - * Protobuf type {@code api.v1.OrderVersionsByIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderVersionsByIDRequest) - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.class, io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - orderId_ = ""; - - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest build() { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest result = new io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest(this); - result.orderId_ = orderId_; - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.getDefaultInstance()) return this; - if (!other.getOrderId().isEmpty()) { - orderId_ = other.orderId_; - onChanged(); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object orderId_ = ""; - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The orderId. - */ - public java.lang.String getOrderId() { - java.lang.Object ref = orderId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return The bytes for orderId. - */ - public com.google.protobuf.ByteString - getOrderIdBytes() { - java.lang.Object ref = orderId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @param value The orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderId_ = value; - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearOrderId() { - - orderId_ = getDefaultInstance().getOrderId(); - onChanged(); - return this; - } - /** - *
-       * Order identifier, required field
-       * 
- * - * string order_id = 1 [json_name = "orderId", (.validator.field) = { ... } - * @param value The bytes for orderId to set. - * @return This builder for chaining. - */ - public Builder setOrderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderId_ = value; - onChanged(); - return this; - } - - private io.vegaprotocol.vega.api.Trading.Pagination pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> paginationBuilder_; - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return Whether the pagination field is set. - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - * @return The pagination. - */ - public io.vegaprotocol.vega.api.Trading.Pagination getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder setPagination( - io.vegaprotocol.vega.api.Trading.Pagination.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder mergePagination(io.vegaprotocol.vega.api.Trading.Pagination value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - io.vegaprotocol.vega.api.Trading.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.Pagination.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - public io.vegaprotocol.vega.api.Trading.PaginationOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - io.vegaprotocol.vega.api.Trading.Pagination.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination controls
-       * 
- * - * .api.v1.Pagination pagination = 2 [json_name = "pagination"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.api.Trading.Pagination, io.vegaprotocol.vega.api.Trading.Pagination.Builder, io.vegaprotocol.vega.api.Trading.PaginationOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderVersionsByIDRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDRequest) - private static final io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderVersionsByIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderVersionsByIDRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OrderVersionsByIDResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OrderVersionsByIDResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersList(); - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.Order getOrders(int index); - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - int getOrdersCount(); - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - java.util.List - getOrdersOrBuilderList(); - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index); - } - /** - *
-   * Response to a request for a list of all versions of an order
-   * 
- * - * Protobuf type {@code api.v1.OrderVersionsByIDResponse} - */ - public static final class OrderVersionsByIDResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OrderVersionsByIDResponse) - OrderVersionsByIDResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderVersionsByIDResponse.newBuilder() to construct. - private OrderVersionsByIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrderVersionsByIDResponse() { - orders_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OrderVersionsByIDResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OrderVersionsByIDResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - orders_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.Builder.class); - } - - public static final int ORDERS_FIELD_NUMBER = 1; - private java.util.List orders_; - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List getOrdersList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public java.util.List - getOrdersOrBuilderList() { - return orders_; - } - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public int getOrdersCount() { - return orders_.size(); - } - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - return orders_.get(index); - } - /** - *
-     * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-     * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - return orders_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < orders_.size(); i++) { - output.writeMessage(1, orders_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < orders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, orders_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse other = (io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse) obj; - - if (!getOrdersList() - .equals(other.getOrdersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOrdersCount() > 0) { - hash = (37 * hash) + ORDERS_FIELD_NUMBER; - hash = (53 * hash) + getOrdersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a request for a list of all versions of an order
-     * 
- * - * Protobuf type {@code api.v1.OrderVersionsByIDResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OrderVersionsByIDResponse) - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.class, io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOrdersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ordersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OrderVersionsByIDResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse build() { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse result = new io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse(this); - int from_bitField0_ = bitField0_; - if (ordersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - orders_ = java.util.Collections.unmodifiableList(orders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.orders_ = orders_; - } else { - result.orders_ = ordersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.getDefaultInstance()) return this; - if (ordersBuilder_ == null) { - if (!other.orders_.isEmpty()) { - if (orders_.isEmpty()) { - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOrdersIsMutable(); - orders_.addAll(other.orders_); - } - onChanged(); - } - } else { - if (!other.orders_.isEmpty()) { - if (ordersBuilder_.isEmpty()) { - ordersBuilder_.dispose(); - ordersBuilder_ = null; - orders_ = other.orders_; - bitField0_ = (bitField0_ & ~0x00000001); - ordersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrdersFieldBuilder() : null; - } else { - ordersBuilder_.addAllMessages(other.orders_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List orders_ = - java.util.Collections.emptyList(); - private void ensureOrdersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList(orders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> ordersBuilder_; - - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List getOrdersList() { - if (ordersBuilder_ == null) { - return java.util.Collections.unmodifiableList(orders_); - } else { - return ordersBuilder_.getMessageList(); - } - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public int getOrdersCount() { - if (ordersBuilder_ == null) { - return orders_.size(); - } else { - return ordersBuilder_.getCount(); - } - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order getOrders(int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); - } else { - return ordersBuilder_.getMessage(index); - } - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.set(index, value); - onChanged(); - } else { - ordersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder setOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.set(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders(io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(value); - onChanged(); - } else { - ordersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order value) { - if (ordersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrdersIsMutable(); - orders_.add(index, value); - onChanged(); - } else { - ordersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addOrders( - int index, io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(index, builderForValue.build()); - onChanged(); - } else { - ordersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder addAllOrders( - java.lang.Iterable values) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orders_); - onChanged(); - } else { - ordersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder clearOrders() { - if (ordersBuilder_ == null) { - orders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ordersBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public Builder removeOrders(int index) { - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.remove(index); - onChanged(); - } else { - ordersBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrdersBuilder( - int index) { - return getOrdersFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrdersOrBuilder( - int index) { - if (ordersBuilder_ == null) { - return orders_.get(index); } else { - return ordersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersOrBuilderList() { - if (ordersBuilder_ != null) { - return ordersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orders_); - } - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder addOrdersBuilder( - int index) { - return getOrdersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Order.getDefaultInstance()); - } - /** - *
-       * A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)
-       * 
- * - * repeated .vega.Order orders = 1 [json_name = "orders"]; - */ - public java.util.List - getOrdersBuilderList() { - return getOrdersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrdersFieldBuilder() { - if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - orders_ = null; - } - return ordersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OrderVersionsByIDResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDResponse) - private static final io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderVersionsByIDResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderVersionsByIDResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EstimateFeeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.EstimateFeeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - boolean hasOrder(); - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - io.vegaprotocol.vega.Vega.Order getOrder(); - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder(); - } - /** - *
-   * Request to fetch the estimated fee if an order were to trade immediately
-   * 
- * - * Protobuf type {@code api.v1.EstimateFeeRequest} - */ - public static final class EstimateFeeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.EstimateFeeRequest) - EstimateFeeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateFeeRequest.newBuilder() to construct. - private EstimateFeeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateFeeRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateFeeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateFeeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Order.Builder subBuilder = null; - if (order_ != null) { - subBuilder = order_.toBuilder(); - } - order_ = input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(order_); - order_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.class, io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.Builder.class); - } - - public static final int ORDER_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Order order_; - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - @java.lang.Override - public boolean hasOrder() { - return order_ != null; - } - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrder() { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - /** - *
-     * Order to estimate fees for
-     * the following fields in the order are required:
-     * MarketID (used to specify the fee factors)
-     * Price (the price at which the order could trade)
-     * Size (the size at which the order could eventually trade)
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - return getOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (order_ != null) { - output.writeMessage(1, getOrder()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (order_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrder()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.EstimateFeeRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest other = (io.vegaprotocol.vega.api.Trading.EstimateFeeRequest) obj; - - if (hasOrder() != other.hasOrder()) return false; - if (hasOrder()) { - if (!getOrder() - .equals(other.getOrder())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOrder()) { - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.EstimateFeeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to fetch the estimated fee if an order were to trade immediately
-     * 
- * - * Protobuf type {@code api.v1.EstimateFeeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.EstimateFeeRequest) - io.vegaprotocol.vega.api.Trading.EstimateFeeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.class, io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (orderBuilder_ == null) { - order_ = null; - } else { - order_ = null; - orderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeRequest build() { - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest result = new io.vegaprotocol.vega.api.Trading.EstimateFeeRequest(this); - if (orderBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.EstimateFeeRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.EstimateFeeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.EstimateFeeRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.getDefaultInstance()) return this; - if (other.hasOrder()) { - mergeOrder(other.getOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.EstimateFeeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Order order_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> orderBuilder_; - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - public boolean hasOrder() { - return orderBuilder_ != null || order_ != null; - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - public io.vegaprotocol.vega.Vega.Order getOrder() { - if (orderBuilder_ == null) { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } else { - return orderBuilder_.getMessage(); - } - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - order_ = value; - onChanged(); - } else { - orderBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (orderBuilder_ == null) { - order_ = builderForValue.build(); - onChanged(); - } else { - orderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder mergeOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (order_ != null) { - order_ = - io.vegaprotocol.vega.Vega.Order.newBuilder(order_).mergeFrom(value).buildPartial(); - } else { - order_ = value; - } - onChanged(); - } else { - orderBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder clearOrder() { - if (orderBuilder_ == null) { - order_ = null; - onChanged(); - } else { - order_ = null; - orderBuilder_ = null; - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrderBuilder() { - - onChanged(); - return getOrderFieldBuilder().getBuilder(); - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - if (orderBuilder_ != null) { - return orderBuilder_.getMessageOrBuilder(); - } else { - return order_ == null ? - io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - } - /** - *
-       * Order to estimate fees for
-       * the following fields in the order are required:
-       * MarketID (used to specify the fee factors)
-       * Price (the price at which the order could trade)
-       * Size (the size at which the order could eventually trade)
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrderFieldBuilder() { - if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - getOrder(), - getParentForChildren(), - isClean()); - order_ = null; - } - return orderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.EstimateFeeRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.EstimateFeeRequest) - private static final io.vegaprotocol.vega.api.Trading.EstimateFeeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.EstimateFeeRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.EstimateFeeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateFeeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateFeeRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EstimateFeeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.EstimateFeeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return Whether the fee field is set. - */ - boolean hasFee(); - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return The fee. - */ - io.vegaprotocol.vega.Vega.Fee getFee(); - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - io.vegaprotocol.vega.Vega.FeeOrBuilder getFeeOrBuilder(); - } - /** - *
-   * Response to a EstimateFeeRequest, containing the estimated fees for a given order
-   * 
- * - * Protobuf type {@code api.v1.EstimateFeeResponse} - */ - public static final class EstimateFeeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.EstimateFeeResponse) - EstimateFeeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateFeeResponse.newBuilder() to construct. - private EstimateFeeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateFeeResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateFeeResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateFeeResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - io.vegaprotocol.vega.Vega.Fee.Builder subBuilder = null; - if (fee_ != null) { - subBuilder = fee_.toBuilder(); - } - fee_ = input.readMessage(io.vegaprotocol.vega.Vega.Fee.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fee_); - fee_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.class, io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.Builder.class); - } - - public static final int FEE_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.Vega.Fee fee_; - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return Whether the fee field is set. - */ - @java.lang.Override - public boolean hasFee() { - return fee_ != null; - } - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return The fee. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Fee getFee() { - return fee_ == null ? io.vegaprotocol.vega.Vega.Fee.getDefaultInstance() : fee_; - } - /** - *
-     * Summary of the estimated fees for this order if it were to trade now
-     * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.FeeOrBuilder getFeeOrBuilder() { - return getFee(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (fee_ != null) { - output.writeMessage(2, getFee()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fee_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFee()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.EstimateFeeResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse other = (io.vegaprotocol.vega.api.Trading.EstimateFeeResponse) obj; - - if (hasFee() != other.hasFee()) return false; - if (hasFee()) { - if (!getFee() - .equals(other.getFee())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFee()) { - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + getFee().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.EstimateFeeResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a EstimateFeeRequest, containing the estimated fees for a given order
-     * 
- * - * Protobuf type {@code api.v1.EstimateFeeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.EstimateFeeResponse) - io.vegaprotocol.vega.api.Trading.EstimateFeeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.class, io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (feeBuilder_ == null) { - fee_ = null; - } else { - fee_ = null; - feeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateFeeResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeResponse build() { - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse result = new io.vegaprotocol.vega.api.Trading.EstimateFeeResponse(this); - if (feeBuilder_ == null) { - result.fee_ = fee_; - } else { - result.fee_ = feeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.EstimateFeeResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.EstimateFeeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.EstimateFeeResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.getDefaultInstance()) return this; - if (other.hasFee()) { - mergeFee(other.getFee()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.EstimateFeeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Fee fee_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Fee, io.vegaprotocol.vega.Vega.Fee.Builder, io.vegaprotocol.vega.Vega.FeeOrBuilder> feeBuilder_; - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return Whether the fee field is set. - */ - public boolean hasFee() { - return feeBuilder_ != null || fee_ != null; - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - * @return The fee. - */ - public io.vegaprotocol.vega.Vega.Fee getFee() { - if (feeBuilder_ == null) { - return fee_ == null ? io.vegaprotocol.vega.Vega.Fee.getDefaultInstance() : fee_; - } else { - return feeBuilder_.getMessage(); - } - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public Builder setFee(io.vegaprotocol.vega.Vega.Fee value) { - if (feeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fee_ = value; - onChanged(); - } else { - feeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public Builder setFee( - io.vegaprotocol.vega.Vega.Fee.Builder builderForValue) { - if (feeBuilder_ == null) { - fee_ = builderForValue.build(); - onChanged(); - } else { - feeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public Builder mergeFee(io.vegaprotocol.vega.Vega.Fee value) { - if (feeBuilder_ == null) { - if (fee_ != null) { - fee_ = - io.vegaprotocol.vega.Vega.Fee.newBuilder(fee_).mergeFrom(value).buildPartial(); - } else { - fee_ = value; - } - onChanged(); - } else { - feeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public Builder clearFee() { - if (feeBuilder_ == null) { - fee_ = null; - onChanged(); - } else { - fee_ = null; - feeBuilder_ = null; - } - - return this; - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public io.vegaprotocol.vega.Vega.Fee.Builder getFeeBuilder() { - - onChanged(); - return getFeeFieldBuilder().getBuilder(); - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - public io.vegaprotocol.vega.Vega.FeeOrBuilder getFeeOrBuilder() { - if (feeBuilder_ != null) { - return feeBuilder_.getMessageOrBuilder(); - } else { - return fee_ == null ? - io.vegaprotocol.vega.Vega.Fee.getDefaultInstance() : fee_; - } - } - /** - *
-       * Summary of the estimated fees for this order if it were to trade now
-       * 
- * - * .vega.Fee fee = 2 [json_name = "fee"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Fee, io.vegaprotocol.vega.Vega.Fee.Builder, io.vegaprotocol.vega.Vega.FeeOrBuilder> - getFeeFieldBuilder() { - if (feeBuilder_ == null) { - feeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Fee, io.vegaprotocol.vega.Vega.Fee.Builder, io.vegaprotocol.vega.Vega.FeeOrBuilder>( - getFee(), - getParentForChildren(), - isClean()); - fee_ = null; - } - return feeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.EstimateFeeResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.EstimateFeeResponse) - private static final io.vegaprotocol.vega.api.Trading.EstimateFeeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.EstimateFeeResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.EstimateFeeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateFeeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateFeeResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateFeeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EstimateMarginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.EstimateMarginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - boolean hasOrder(); - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - io.vegaprotocol.vega.Vega.Order getOrder(); - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder(); - } - /** - *
-   * Request to fetch the estimated MarginLevels if an order were to trade immediately
-   * 
- * - * Protobuf type {@code api.v1.EstimateMarginRequest} - */ - public static final class EstimateMarginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.EstimateMarginRequest) - EstimateMarginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateMarginRequest.newBuilder() to construct. - private EstimateMarginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateMarginRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateMarginRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateMarginRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Order.Builder subBuilder = null; - if (order_ != null) { - subBuilder = order_.toBuilder(); - } - order_ = input.readMessage(io.vegaprotocol.vega.Vega.Order.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(order_); - order_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.class, io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.Builder.class); - } - - public static final int ORDER_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Order order_; - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - @java.lang.Override - public boolean hasOrder() { - return order_ != null; - } - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Order getOrder() { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - /** - *
-     * Order to estimate fees for
-     * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - return getOrder(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (order_ != null) { - output.writeMessage(1, getOrder()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (order_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrder()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.EstimateMarginRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest other = (io.vegaprotocol.vega.api.Trading.EstimateMarginRequest) obj; - - if (hasOrder() != other.hasOrder()) return false; - if (hasOrder()) { - if (!getOrder() - .equals(other.getOrder())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOrder()) { - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.EstimateMarginRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to fetch the estimated MarginLevels if an order were to trade immediately
-     * 
- * - * Protobuf type {@code api.v1.EstimateMarginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.EstimateMarginRequest) - io.vegaprotocol.vega.api.Trading.EstimateMarginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.class, io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (orderBuilder_ == null) { - order_ = null; - } else { - order_ = null; - orderBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginRequest build() { - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest result = new io.vegaprotocol.vega.api.Trading.EstimateMarginRequest(this); - if (orderBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.EstimateMarginRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.EstimateMarginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.EstimateMarginRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.getDefaultInstance()) return this; - if (other.hasOrder()) { - mergeOrder(other.getOrder()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.EstimateMarginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Order order_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> orderBuilder_; - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return Whether the order field is set. - */ - public boolean hasOrder() { - return orderBuilder_ != null || order_ != null; - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - * @return The order. - */ - public io.vegaprotocol.vega.Vega.Order getOrder() { - if (orderBuilder_ == null) { - return order_ == null ? io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } else { - return orderBuilder_.getMessage(); - } - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - order_ = value; - onChanged(); - } else { - orderBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder setOrder( - io.vegaprotocol.vega.Vega.Order.Builder builderForValue) { - if (orderBuilder_ == null) { - order_ = builderForValue.build(); - onChanged(); - } else { - orderBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder mergeOrder(io.vegaprotocol.vega.Vega.Order value) { - if (orderBuilder_ == null) { - if (order_ != null) { - order_ = - io.vegaprotocol.vega.Vega.Order.newBuilder(order_).mergeFrom(value).buildPartial(); - } else { - order_ = value; - } - onChanged(); - } else { - orderBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public Builder clearOrder() { - if (orderBuilder_ == null) { - order_ = null; - onChanged(); - } else { - order_ = null; - orderBuilder_ = null; - } - - return this; - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.Order.Builder getOrderBuilder() { - - onChanged(); - return getOrderFieldBuilder().getBuilder(); - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - public io.vegaprotocol.vega.Vega.OrderOrBuilder getOrderOrBuilder() { - if (orderBuilder_ != null) { - return orderBuilder_.getMessageOrBuilder(); - } else { - return order_ == null ? - io.vegaprotocol.vega.Vega.Order.getDefaultInstance() : order_; - } - } - /** - *
-       * Order to estimate fees for
-       * 
- * - * .vega.Order order = 1 [json_name = "order"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder> - getOrderFieldBuilder() { - if (orderBuilder_ == null) { - orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Order, io.vegaprotocol.vega.Vega.Order.Builder, io.vegaprotocol.vega.Vega.OrderOrBuilder>( - getOrder(), - getParentForChildren(), - isClean()); - order_ = null; - } - return orderBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.EstimateMarginRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.EstimateMarginRequest) - private static final io.vegaprotocol.vega.api.Trading.EstimateMarginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.EstimateMarginRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.EstimateMarginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateMarginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateMarginRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EstimateMarginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.EstimateMarginResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - boolean hasMarginLevels(); - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels(); - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder(); - } - /** - *
-   * Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order
-   * 
- * - * Protobuf type {@code api.v1.EstimateMarginResponse} - */ - public static final class EstimateMarginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.EstimateMarginResponse) - EstimateMarginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateMarginResponse.newBuilder() to construct. - private EstimateMarginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateMarginResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateMarginResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateMarginResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - io.vegaprotocol.vega.Vega.MarginLevels.Builder subBuilder = null; - if (marginLevels_ != null) { - subBuilder = marginLevels_.toBuilder(); - } - marginLevels_ = input.readMessage(io.vegaprotocol.vega.Vega.MarginLevels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(marginLevels_); - marginLevels_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.class, io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.Builder.class); - } - - public static final int MARGIN_LEVELS_FIELD_NUMBER = 2; - private io.vegaprotocol.vega.Vega.MarginLevels marginLevels_; - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - @java.lang.Override - public boolean hasMarginLevels() { - return marginLevels_ != null; - } - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels() { - return marginLevels_ == null ? io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } - /** - *
-     * Summary of the estimated margins for this order if it were to trade now
-     * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder() { - return getMarginLevels(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (marginLevels_ != null) { - output.writeMessage(2, getMarginLevels()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (marginLevels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMarginLevels()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.EstimateMarginResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse other = (io.vegaprotocol.vega.api.Trading.EstimateMarginResponse) obj; - - if (hasMarginLevels() != other.hasMarginLevels()) return false; - if (hasMarginLevels()) { - if (!getMarginLevels() - .equals(other.getMarginLevels())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMarginLevels()) { - hash = (37 * hash) + MARGIN_LEVELS_FIELD_NUMBER; - hash = (53 * hash) + getMarginLevels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.EstimateMarginResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order
-     * 
- * - * Protobuf type {@code api.v1.EstimateMarginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.EstimateMarginResponse) - io.vegaprotocol.vega.api.Trading.EstimateMarginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.class, io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (marginLevelsBuilder_ == null) { - marginLevels_ = null; - } else { - marginLevels_ = null; - marginLevelsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_EstimateMarginResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginResponse build() { - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse result = new io.vegaprotocol.vega.api.Trading.EstimateMarginResponse(this); - if (marginLevelsBuilder_ == null) { - result.marginLevels_ = marginLevels_; - } else { - result.marginLevels_ = marginLevelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.EstimateMarginResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.EstimateMarginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.EstimateMarginResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.getDefaultInstance()) return this; - if (other.hasMarginLevels()) { - mergeMarginLevels(other.getMarginLevels()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.EstimateMarginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.MarginLevels marginLevels_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> marginLevelsBuilder_; - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return Whether the marginLevels field is set. - */ - public boolean hasMarginLevels() { - return marginLevelsBuilder_ != null || marginLevels_ != null; - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - * @return The marginLevels. - */ - public io.vegaprotocol.vega.Vega.MarginLevels getMarginLevels() { - if (marginLevelsBuilder_ == null) { - return marginLevels_ == null ? io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } else { - return marginLevelsBuilder_.getMessage(); - } - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels(io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - marginLevels_ = value; - onChanged(); - } else { - marginLevelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public Builder setMarginLevels( - io.vegaprotocol.vega.Vega.MarginLevels.Builder builderForValue) { - if (marginLevelsBuilder_ == null) { - marginLevels_ = builderForValue.build(); - onChanged(); - } else { - marginLevelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public Builder mergeMarginLevels(io.vegaprotocol.vega.Vega.MarginLevels value) { - if (marginLevelsBuilder_ == null) { - if (marginLevels_ != null) { - marginLevels_ = - io.vegaprotocol.vega.Vega.MarginLevels.newBuilder(marginLevels_).mergeFrom(value).buildPartial(); - } else { - marginLevels_ = value; - } - onChanged(); - } else { - marginLevelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public Builder clearMarginLevels() { - if (marginLevelsBuilder_ == null) { - marginLevels_ = null; - onChanged(); - } else { - marginLevels_ = null; - marginLevelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevels.Builder getMarginLevelsBuilder() { - - onChanged(); - return getMarginLevelsFieldBuilder().getBuilder(); - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - public io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder getMarginLevelsOrBuilder() { - if (marginLevelsBuilder_ != null) { - return marginLevelsBuilder_.getMessageOrBuilder(); - } else { - return marginLevels_ == null ? - io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance() : marginLevels_; - } - } - /** - *
-       * Summary of the estimated margins for this order if it were to trade now
-       * 
- * - * .vega.MarginLevels margin_levels = 2 [json_name = "marginLevels"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder> - getMarginLevelsFieldBuilder() { - if (marginLevelsBuilder_ == null) { - marginLevelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.MarginLevels, io.vegaprotocol.vega.Vega.MarginLevels.Builder, io.vegaprotocol.vega.Vega.MarginLevelsOrBuilder>( - getMarginLevels(), - getParentForChildren(), - isClean()); - marginLevels_ = null; - } - return marginLevelsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.EstimateMarginResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.EstimateMarginResponse) - private static final io.vegaprotocol.vega.api.Trading.EstimateMarginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.EstimateMarginResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.EstimateMarginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateMarginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateMarginResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.EstimateMarginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveEventBusRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveEventBusRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the type. - */ - java.util.List getTypeList(); - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return The count of type. - */ - int getTypeCount(); - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the element to return. - * @return The type at the given index. - */ - io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index); - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the enum numeric values on the wire for type. - */ - java.util.List - getTypeValueList(); - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of type at the given index. - */ - int getTypeValue(int index); - - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - java.lang.String getMarketId(); - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - com.google.protobuf.ByteString - getMarketIdBytes(); - - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - - /** - *
-     * Batch size, optional field -
-     * If not specified, any events received will be sent immediately. If the client is not ready
-     * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
-     * if specified, the first batch will be sent when ready. To receive the next set of events, the client
-     * must write an `ObserveEventBatch` message on the stream to flush the buffer.
-     * If no message is received in 5 seconds, the stream is closed.
-     * Default: 0, send any and all events when they are available.
-     * 
- * - * int64 batch_size = 4 [json_name = "batchSize"]; - * @return The batchSize. - */ - long getBatchSize(); - } - /** - *
-   * Request to subscribe to a stream of one or more event types from the Vega event bus
-   * 
- * - * Protobuf type {@code api.v1.ObserveEventBusRequest} - */ - public static final class ObserveEventBusRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveEventBusRequest) - ObserveEventBusRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveEventBusRequest.newBuilder() to construct. - private ObserveEventBusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveEventBusRequest() { - type_ = java.util.Collections.emptyList(); - marketId_ = ""; - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveEventBusRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveEventBusRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - type_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - type_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - type_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - type_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - marketId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - case 32: { - - batchSize_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - type_ = java.util.Collections.unmodifiableList(type_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private java.util.List type_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType> type_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>() { - public io.vegaprotocol.vega.events.v1.Events.BusEventType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - io.vegaprotocol.vega.events.v1.Events.BusEventType result = io.vegaprotocol.vega.events.v1.Events.BusEventType.valueOf(from); - return result == null ? io.vegaprotocol.vega.events.v1.Events.BusEventType.UNRECOGNIZED : result; - } - }; - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the type. - */ - @java.lang.Override - public java.util.List getTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>(type_, type_converter_); - } - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return The count of type. - */ - @java.lang.Override - public int getTypeCount() { - return type_.size(); - } - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the element to return. - * @return The type at the given index. - */ - @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index) { - return type_converter_.convert(type_.get(index)); - } - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the enum numeric values on the wire for type. - */ - @java.lang.Override - public java.util.List - getTypeValueList() { - return type_; - } - /** - *
-     * One or more types of event, required field
-     * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of type at the given index. - */ - @java.lang.Override - public int getTypeValue(int index) { - return type_.get(index); - } - private int typeMemoizedSerializedSize; - - public static final int MARKET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object marketId_; - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - @java.lang.Override - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } - } - /** - *
-     * Market identifier, optional field
-     * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object partyId_; - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * Party identifier, optional field
-     * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BATCH_SIZE_FIELD_NUMBER = 4; - private long batchSize_; - /** - *
-     * Batch size, optional field -
-     * If not specified, any events received will be sent immediately. If the client is not ready
-     * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
-     * if specified, the first batch will be sent when ready. To receive the next set of events, the client
-     * must write an `ObserveEventBatch` message on the stream to flush the buffer.
-     * If no message is received in 5 seconds, the stream is closed.
-     * Default: 0, send any and all events when they are available.
-     * 
- * - * int64 batch_size = 4 [json_name = "batchSize"]; - * @return The batchSize. - */ - @java.lang.Override - public long getBatchSize() { - return batchSize_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getTypeList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(typeMemoizedSerializedSize); - } - for (int i = 0; i < type_.size(); i++) { - output.writeEnumNoTag(type_.get(i)); - } - if (!getMarketIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partyId_); - } - if (batchSize_ != 0L) { - output.writeInt64(4, batchSize_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < type_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(type_.get(i)); - } - size += dataSize; - if (!getTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }typeMemoizedSerializedSize = dataSize; - } - if (!getMarketIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); - } - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partyId_); - } - if (batchSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, batchSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest other = (io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) obj; - - if (!type_.equals(other.type_)) return false; - if (!getMarketId() - .equals(other.getMarketId())) return false; - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (getBatchSize() - != other.getBatchSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTypeCount() > 0) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_.hashCode(); - } - hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getMarketId().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (37 * hash) + BATCH_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBatchSize()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request to subscribe to a stream of one or more event types from the Vega event bus
-     * 
- * - * Protobuf type {@code api.v1.ObserveEventBusRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveEventBusRequest) - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - marketId_ = ""; - - partyId_ = ""; - - batchSize_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest build() { - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest result = new io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - type_ = java.util.Collections.unmodifiableList(type_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.type_ = type_; - result.marketId_ = marketId_; - result.partyId_ = partyId_; - result.batchSize_ = batchSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance()) return this; - if (!other.type_.isEmpty()) { - if (type_.isEmpty()) { - type_ = other.type_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTypeIsMutable(); - type_.addAll(other.type_); - } - onChanged(); - } - if (!other.getMarketId().isEmpty()) { - marketId_ = other.marketId_; - onChanged(); - } - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - if (other.getBatchSize() != 0L) { - setBatchSize(other.getBatchSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List type_ = - java.util.Collections.emptyList(); - private void ensureTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - type_ = new java.util.ArrayList(type_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the type. - */ - public java.util.List getTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, io.vegaprotocol.vega.events.v1.Events.BusEventType>(type_, type_converter_); - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return The count of type. - */ - public int getTypeCount() { - return type_.size(); - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the element to return. - * @return The type at the given index. - */ - public io.vegaprotocol.vega.events.v1.Events.BusEventType getType(int index) { - return type_converter_.convert(type_.get(index)); - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index to set the value at. - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - int index, io.vegaprotocol.vega.events.v1.Events.BusEventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeIsMutable(); - type_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param value The type to add. - * @return This builder for chaining. - */ - public Builder addType(io.vegaprotocol.vega.events.v1.Events.BusEventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeIsMutable(); - type_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param values The type to add. - * @return This builder for chaining. - */ - public Builder addAllType( - java.lang.Iterable values) { - ensureTypeIsMutable(); - for (io.vegaprotocol.vega.events.v1.Events.BusEventType value : values) { - type_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @return A list containing the enum numeric values on the wire for type. - */ - public java.util.List - getTypeValueList() { - return java.util.Collections.unmodifiableList(type_); - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of type at the given index. - */ - public int getTypeValue(int index) { - return type_.get(index); - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of type at the given index. - * @return This builder for chaining. - */ - public Builder setTypeValue( - int index, int value) { - ensureTypeIsMutable(); - type_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to add. - * @return This builder for chaining. - */ - public Builder addTypeValue(int value) { - ensureTypeIsMutable(); - type_.add(value); - onChanged(); - return this; - } - /** - *
-       * One or more types of event, required field
-       * 
- * - * repeated .vega.events.v1.BusEventType type = 1 [json_name = "type"]; - * @param values The enum numeric values on the wire for type to add. - * @return This builder for chaining. - */ - public Builder addAllTypeValue( - java.lang.Iterable values) { - ensureTypeIsMutable(); - for (int value : values) { - type_.add(value); - } - onChanged(); - return this; - } - - private java.lang.Object marketId_ = ""; - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The marketId. - */ - public java.lang.String getMarketId() { - java.lang.Object ref = marketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - marketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return The bytes for marketId. - */ - public com.google.protobuf.ByteString - getMarketIdBytes() { - java.lang.Object ref = marketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - marketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - marketId_ = value; - onChanged(); - return this; - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @return This builder for chaining. - */ - public Builder clearMarketId() { - - marketId_ = getDefaultInstance().getMarketId(); - onChanged(); - return this; - } - /** - *
-       * Market identifier, optional field
-       * 
- * - * string market_id = 2 [json_name = "marketId"]; - * @param value The bytes for marketId to set. - * @return This builder for chaining. - */ - public Builder setMarketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - marketId_ = value; - onChanged(); - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * Party identifier, optional field
-       * 
- * - * string party_id = 3 [json_name = "partyId"]; - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - - private long batchSize_ ; - /** - *
-       * Batch size, optional field -
-       * If not specified, any events received will be sent immediately. If the client is not ready
-       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
-       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
-       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
-       * If no message is received in 5 seconds, the stream is closed.
-       * Default: 0, send any and all events when they are available.
-       * 
- * - * int64 batch_size = 4 [json_name = "batchSize"]; - * @return The batchSize. - */ - @java.lang.Override - public long getBatchSize() { - return batchSize_; - } - /** - *
-       * Batch size, optional field -
-       * If not specified, any events received will be sent immediately. If the client is not ready
-       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
-       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
-       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
-       * If no message is received in 5 seconds, the stream is closed.
-       * Default: 0, send any and all events when they are available.
-       * 
- * - * int64 batch_size = 4 [json_name = "batchSize"]; - * @param value The batchSize to set. - * @return This builder for chaining. - */ - public Builder setBatchSize(long value) { - - batchSize_ = value; - onChanged(); - return this; - } - /** - *
-       * Batch size, optional field -
-       * If not specified, any events received will be sent immediately. If the client is not ready
-       * for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
-       * if specified, the first batch will be sent when ready. To receive the next set of events, the client
-       * must write an `ObserveEventBatch` message on the stream to flush the buffer.
-       * If no message is received in 5 seconds, the stream is closed.
-       * Default: 0, send any and all events when they are available.
-       * 
- * - * int64 batch_size = 4 [json_name = "batchSize"]; - * @return This builder for chaining. - */ - public Builder clearBatchSize() { - - batchSize_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveEventBusRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) - private static final io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveEventBusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveEventBusRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObserveEventBusResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ObserveEventBusResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - java.util.List - getEventsList(); - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index); - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - int getEventsCount(); - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - java.util.List - getEventsOrBuilderList(); - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( - int index); - } - /** - *
-   * Response to a subscribed stream of events from the Vega event bus
-   * 
- * - * Protobuf type {@code api.v1.ObserveEventBusResponse} - */ - public static final class ObserveEventBusResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ObserveEventBusResponse) - ObserveEventBusResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObserveEventBusResponse.newBuilder() to construct. - private ObserveEventBusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObserveEventBusResponse() { - events_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObserveEventBusResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObserveEventBusResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add( - input.readMessage(io.vegaprotocol.vega.events.v1.Events.BusEvent.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.Builder.class); - } - - public static final int EVENTS_FIELD_NUMBER = 1; - private java.util.List events_; - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - @java.lang.Override - public java.util.List getEventsList() { - return events_; - } - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - @java.lang.Override - public java.util.List - getEventsOrBuilderList() { - return events_; - } - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - @java.lang.Override - public int getEventsCount() { - return events_.size(); - } - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index) { - return events_.get(index); - } - /** - *
-     * One or more events
-     * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( - int index) { - return events_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - output.writeMessage(1, events_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, events_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse other = (io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) obj; - - if (!getEventsList() - .equals(other.getEventsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response to a subscribed stream of events from the Vega event bus
-     * 
- * - * Protobuf type {@code api.v1.ObserveEventBusResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ObserveEventBusResponse) - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEventsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - eventsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ObserveEventBusResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse build() { - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse result = new io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse(this); - int from_bitField0_ = bitField0_; - if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - } else { - result.events_ = eventsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance()) return this; - if (eventsBuilder_ == null) { - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - } else { - if (!other.events_.isEmpty()) { - if (eventsBuilder_.isEmpty()) { - eventsBuilder_.dispose(); - eventsBuilder_ = null; - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; - } else { - eventsBuilder_.addAllMessages(other.events_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List events_ = - java.util.Collections.emptyList(); - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder> eventsBuilder_; - - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public java.util.List getEventsList() { - if (eventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(events_); - } else { - return eventsBuilder_.getMessageList(); - } - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public int getEventsCount() { - if (eventsBuilder_ == null) { - return events_.size(); - } else { - return eventsBuilder_.getCount(); - } - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public io.vegaprotocol.vega.events.v1.Events.BusEvent getEvents(int index) { - if (eventsBuilder_ == null) { - return events_.get(index); - } else { - return eventsBuilder_.getMessage(index); - } - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder setEvents( - int index, io.vegaprotocol.vega.events.v1.Events.BusEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - } else { - eventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder setEvents( - int index, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.set(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder addEvents(io.vegaprotocol.vega.events.v1.Events.BusEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - } else { - eventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder addEvents( - int index, io.vegaprotocol.vega.events.v1.Events.BusEvent value) { - if (eventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(index, value); - onChanged(); - } else { - eventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder addEvents( - io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder addEvents( - int index, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder builderForValue) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.add(index, builderForValue.build()); - onChanged(); - } else { - eventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - } else { - eventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder clearEvents() { - if (eventsBuilder_ == null) { - events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - eventsBuilder_.clear(); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public Builder removeEvents(int index) { - if (eventsBuilder_ == null) { - ensureEventsIsMutable(); - events_.remove(index); - onChanged(); - } else { - eventsBuilder_.remove(index); - } - return this; - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder getEventsBuilder( - int index) { - return getEventsFieldBuilder().getBuilder(index); - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder getEventsOrBuilder( - int index) { - if (eventsBuilder_ == null) { - return events_.get(index); } else { - return eventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public java.util.List - getEventsOrBuilderList() { - if (eventsBuilder_ != null) { - return eventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(events_); - } - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - io.vegaprotocol.vega.events.v1.Events.BusEvent.getDefaultInstance()); - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.events.v1.Events.BusEvent.getDefaultInstance()); - } - /** - *
-       * One or more events
-       * 
- * - * repeated .vega.events.v1.BusEvent events = 1 [json_name = "events"]; - */ - public java.util.List - getEventsBuilderList() { - return getEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder> - getEventsFieldBuilder() { - if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.BusEvent, io.vegaprotocol.vega.events.v1.Events.BusEvent.Builder, io.vegaprotocol.vega.events.v1.Events.BusEventOrBuilder>( - events_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - events_ = null; - } - return eventsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ObserveEventBusResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) - private static final io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObserveEventBusResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObserveEventBusResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StatisticsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.StatisticsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * A a request for statistics about the Vega network
-   * 
- * - * Protobuf type {@code api.v1.StatisticsRequest} - */ - public static final class StatisticsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.StatisticsRequest) - StatisticsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StatisticsRequest.newBuilder() to construct. - private StatisticsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StatisticsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StatisticsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StatisticsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, io.vegaprotocol.vega.api.Trading.StatisticsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.StatisticsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.StatisticsRequest other = (io.vegaprotocol.vega.api.Trading.StatisticsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.StatisticsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A a request for statistics about the Vega network
-     * 
- * - * Protobuf type {@code api.v1.StatisticsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.StatisticsRequest) - io.vegaprotocol.vega.api.Trading.StatisticsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, io.vegaprotocol.vega.api.Trading.StatisticsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.StatisticsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsRequest build() { - io.vegaprotocol.vega.api.Trading.StatisticsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.StatisticsRequest result = new io.vegaprotocol.vega.api.Trading.StatisticsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.StatisticsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.StatisticsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.StatisticsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.StatisticsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.StatisticsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.StatisticsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) - private static final io.vegaprotocol.vega.api.Trading.StatisticsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.StatisticsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatisticsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatisticsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StatisticsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.StatisticsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return Whether the statistics field is set. - */ - boolean hasStatistics(); - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return The statistics. - */ - io.vegaprotocol.vega.Vega.Statistics getStatistics(); - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - io.vegaprotocol.vega.Vega.StatisticsOrBuilder getStatisticsOrBuilder(); - } - /** - * Protobuf type {@code api.v1.StatisticsResponse} - */ - public static final class StatisticsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.StatisticsResponse) - StatisticsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use StatisticsResponse.newBuilder() to construct. - private StatisticsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StatisticsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StatisticsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StatisticsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Statistics.Builder subBuilder = null; - if (statistics_ != null) { - subBuilder = statistics_.toBuilder(); - } - statistics_ = input.readMessage(io.vegaprotocol.vega.Vega.Statistics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(statistics_); - statistics_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, io.vegaprotocol.vega.api.Trading.StatisticsResponse.Builder.class); - } - - public static final int STATISTICS_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Statistics statistics_; - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return Whether the statistics field is set. - */ - @java.lang.Override - public boolean hasStatistics() { - return statistics_ != null; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return The statistics. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Statistics getStatistics() { - return statistics_ == null ? io.vegaprotocol.vega.Vega.Statistics.getDefaultInstance() : statistics_; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.StatisticsOrBuilder getStatisticsOrBuilder() { - return getStatistics(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (statistics_ != null) { - output.writeMessage(1, getStatistics()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (statistics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStatistics()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.StatisticsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.StatisticsResponse other = (io.vegaprotocol.vega.api.Trading.StatisticsResponse) obj; - - if (hasStatistics() != other.hasStatistics()) return false; - if (hasStatistics()) { - if (!getStatistics() - .equals(other.getStatistics())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStatistics()) { - hash = (37 * hash) + STATISTICS_FIELD_NUMBER; - hash = (53 * hash) + getStatistics().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.StatisticsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code api.v1.StatisticsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.StatisticsResponse) - io.vegaprotocol.vega.api.Trading.StatisticsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, io.vegaprotocol.vega.api.Trading.StatisticsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.StatisticsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (statisticsBuilder_ == null) { - statistics_ = null; - } else { - statistics_ = null; - statisticsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_StatisticsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsResponse build() { - io.vegaprotocol.vega.api.Trading.StatisticsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.StatisticsResponse result = new io.vegaprotocol.vega.api.Trading.StatisticsResponse(this); - if (statisticsBuilder_ == null) { - result.statistics_ = statistics_; - } else { - result.statistics_ = statisticsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.StatisticsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.StatisticsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.StatisticsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance()) return this; - if (other.hasStatistics()) { - mergeStatistics(other.getStatistics()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.StatisticsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.StatisticsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Statistics statistics_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Statistics, io.vegaprotocol.vega.Vega.Statistics.Builder, io.vegaprotocol.vega.Vega.StatisticsOrBuilder> statisticsBuilder_; - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return Whether the statistics field is set. - */ - public boolean hasStatistics() { - return statisticsBuilder_ != null || statistics_ != null; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - * @return The statistics. - */ - public io.vegaprotocol.vega.Vega.Statistics getStatistics() { - if (statisticsBuilder_ == null) { - return statistics_ == null ? io.vegaprotocol.vega.Vega.Statistics.getDefaultInstance() : statistics_; - } else { - return statisticsBuilder_.getMessage(); - } - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public Builder setStatistics(io.vegaprotocol.vega.Vega.Statistics value) { - if (statisticsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - statistics_ = value; - onChanged(); - } else { - statisticsBuilder_.setMessage(value); - } - - return this; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public Builder setStatistics( - io.vegaprotocol.vega.Vega.Statistics.Builder builderForValue) { - if (statisticsBuilder_ == null) { - statistics_ = builderForValue.build(); - onChanged(); - } else { - statisticsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public Builder mergeStatistics(io.vegaprotocol.vega.Vega.Statistics value) { - if (statisticsBuilder_ == null) { - if (statistics_ != null) { - statistics_ = - io.vegaprotocol.vega.Vega.Statistics.newBuilder(statistics_).mergeFrom(value).buildPartial(); - } else { - statistics_ = value; - } - onChanged(); - } else { - statisticsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public Builder clearStatistics() { - if (statisticsBuilder_ == null) { - statistics_ = null; - onChanged(); - } else { - statistics_ = null; - statisticsBuilder_ = null; - } - - return this; - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public io.vegaprotocol.vega.Vega.Statistics.Builder getStatisticsBuilder() { - - onChanged(); - return getStatisticsFieldBuilder().getBuilder(); - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - public io.vegaprotocol.vega.Vega.StatisticsOrBuilder getStatisticsOrBuilder() { - if (statisticsBuilder_ != null) { - return statisticsBuilder_.getMessageOrBuilder(); - } else { - return statistics_ == null ? - io.vegaprotocol.vega.Vega.Statistics.getDefaultInstance() : statistics_; - } - } - /** - * .vega.Statistics statistics = 1 [json_name = "statistics"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Statistics, io.vegaprotocol.vega.Vega.Statistics.Builder, io.vegaprotocol.vega.Vega.StatisticsOrBuilder> - getStatisticsFieldBuilder() { - if (statisticsBuilder_ == null) { - statisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Statistics, io.vegaprotocol.vega.Vega.Statistics.Builder, io.vegaprotocol.vega.Vega.StatisticsOrBuilder>( - getStatistics(), - getParentForChildren(), - isClean()); - statistics_ = null; - } - return statisticsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.StatisticsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) - private static final io.vegaprotocol.vega.api.Trading.StatisticsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.StatisticsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatisticsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatisticsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.StatisticsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WithdrawalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.WithdrawalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The party to get the withdrawals for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * The party to get the withdrawals for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * A request to get a list of withdrawal from a given party
-   * 
- * - * Protobuf type {@code api.v1.WithdrawalsRequest} - */ - public static final class WithdrawalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.WithdrawalsRequest) - WithdrawalsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WithdrawalsRequest.newBuilder() to construct. - private WithdrawalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WithdrawalsRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WithdrawalsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WithdrawalsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.class, io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * The party to get the withdrawals for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * The party to get the withdrawals for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.WithdrawalsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest other = (io.vegaprotocol.vega.api.Trading.WithdrawalsRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.WithdrawalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to get a list of withdrawal from a given party
-     * 
- * - * Protobuf type {@code api.v1.WithdrawalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.WithdrawalsRequest) - io.vegaprotocol.vega.api.Trading.WithdrawalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.class, io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsRequest build() { - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest result = new io.vegaprotocol.vega.api.Trading.WithdrawalsRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.WithdrawalsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.WithdrawalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.WithdrawalsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.WithdrawalsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * The party to get the withdrawals for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The party to get the withdrawals for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The party to get the withdrawals for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * The party to get the withdrawals for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * The party to get the withdrawals for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.WithdrawalsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalsRequest) - private static final io.vegaprotocol.vega.api.Trading.WithdrawalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.WithdrawalsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WithdrawalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WithdrawalsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WithdrawalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.WithdrawalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - java.util.List - getWithdrawalsList(); - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - io.vegaprotocol.vega.Vega.Withdrawal getWithdrawals(int index); - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - int getWithdrawalsCount(); - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - java.util.List - getWithdrawalsOrBuilderList(); - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalsOrBuilder( - int index); - } - /** - *
-   * The response for a list of withdrawals
-   * 
- * - * Protobuf type {@code api.v1.WithdrawalsResponse} - */ - public static final class WithdrawalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.WithdrawalsResponse) - WithdrawalsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WithdrawalsResponse.newBuilder() to construct. - private WithdrawalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WithdrawalsResponse() { - withdrawals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WithdrawalsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WithdrawalsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - withdrawals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - withdrawals_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Withdrawal.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - withdrawals_ = java.util.Collections.unmodifiableList(withdrawals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.class, io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.Builder.class); - } - - public static final int WITHDRAWALS_FIELD_NUMBER = 1; - private java.util.List withdrawals_; - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - @java.lang.Override - public java.util.List getWithdrawalsList() { - return withdrawals_; - } - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - @java.lang.Override - public java.util.List - getWithdrawalsOrBuilderList() { - return withdrawals_; - } - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - @java.lang.Override - public int getWithdrawalsCount() { - return withdrawals_.size(); - } - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal getWithdrawals(int index) { - return withdrawals_.get(index); - } - /** - *
-     * The list of withdrawals for the specified party
-     * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalsOrBuilder( - int index) { - return withdrawals_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < withdrawals_.size(); i++) { - output.writeMessage(1, withdrawals_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < withdrawals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, withdrawals_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.WithdrawalsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse other = (io.vegaprotocol.vega.api.Trading.WithdrawalsResponse) obj; - - if (!getWithdrawalsList() - .equals(other.getWithdrawalsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWithdrawalsCount() > 0) { - hash = (37 * hash) + WITHDRAWALS_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawalsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.WithdrawalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The response for a list of withdrawals
-     * 
- * - * Protobuf type {@code api.v1.WithdrawalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.WithdrawalsResponse) - io.vegaprotocol.vega.api.Trading.WithdrawalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.class, io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWithdrawalsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (withdrawalsBuilder_ == null) { - withdrawals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - withdrawalsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsResponse build() { - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse result = new io.vegaprotocol.vega.api.Trading.WithdrawalsResponse(this); - int from_bitField0_ = bitField0_; - if (withdrawalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - withdrawals_ = java.util.Collections.unmodifiableList(withdrawals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.withdrawals_ = withdrawals_; - } else { - result.withdrawals_ = withdrawalsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.WithdrawalsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.WithdrawalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.WithdrawalsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.getDefaultInstance()) return this; - if (withdrawalsBuilder_ == null) { - if (!other.withdrawals_.isEmpty()) { - if (withdrawals_.isEmpty()) { - withdrawals_ = other.withdrawals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWithdrawalsIsMutable(); - withdrawals_.addAll(other.withdrawals_); - } - onChanged(); - } - } else { - if (!other.withdrawals_.isEmpty()) { - if (withdrawalsBuilder_.isEmpty()) { - withdrawalsBuilder_.dispose(); - withdrawalsBuilder_ = null; - withdrawals_ = other.withdrawals_; - bitField0_ = (bitField0_ & ~0x00000001); - withdrawalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWithdrawalsFieldBuilder() : null; - } else { - withdrawalsBuilder_.addAllMessages(other.withdrawals_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.WithdrawalsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List withdrawals_ = - java.util.Collections.emptyList(); - private void ensureWithdrawalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - withdrawals_ = new java.util.ArrayList(withdrawals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder> withdrawalsBuilder_; - - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public java.util.List getWithdrawalsList() { - if (withdrawalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(withdrawals_); - } else { - return withdrawalsBuilder_.getMessageList(); - } - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public int getWithdrawalsCount() { - if (withdrawalsBuilder_ == null) { - return withdrawals_.size(); - } else { - return withdrawalsBuilder_.getCount(); - } - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public io.vegaprotocol.vega.Vega.Withdrawal getWithdrawals(int index) { - if (withdrawalsBuilder_ == null) { - return withdrawals_.get(index); - } else { - return withdrawalsBuilder_.getMessage(index); - } - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder setWithdrawals( - int index, io.vegaprotocol.vega.Vega.Withdrawal value) { - if (withdrawalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWithdrawalsIsMutable(); - withdrawals_.set(index, value); - onChanged(); - } else { - withdrawalsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder setWithdrawals( - int index, io.vegaprotocol.vega.Vega.Withdrawal.Builder builderForValue) { - if (withdrawalsBuilder_ == null) { - ensureWithdrawalsIsMutable(); - withdrawals_.set(index, builderForValue.build()); - onChanged(); - } else { - withdrawalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder addWithdrawals(io.vegaprotocol.vega.Vega.Withdrawal value) { - if (withdrawalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWithdrawalsIsMutable(); - withdrawals_.add(value); - onChanged(); - } else { - withdrawalsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder addWithdrawals( - int index, io.vegaprotocol.vega.Vega.Withdrawal value) { - if (withdrawalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWithdrawalsIsMutable(); - withdrawals_.add(index, value); - onChanged(); - } else { - withdrawalsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder addWithdrawals( - io.vegaprotocol.vega.Vega.Withdrawal.Builder builderForValue) { - if (withdrawalsBuilder_ == null) { - ensureWithdrawalsIsMutable(); - withdrawals_.add(builderForValue.build()); - onChanged(); - } else { - withdrawalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder addWithdrawals( - int index, io.vegaprotocol.vega.Vega.Withdrawal.Builder builderForValue) { - if (withdrawalsBuilder_ == null) { - ensureWithdrawalsIsMutable(); - withdrawals_.add(index, builderForValue.build()); - onChanged(); - } else { - withdrawalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder addAllWithdrawals( - java.lang.Iterable values) { - if (withdrawalsBuilder_ == null) { - ensureWithdrawalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, withdrawals_); - onChanged(); - } else { - withdrawalsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder clearWithdrawals() { - if (withdrawalsBuilder_ == null) { - withdrawals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - withdrawalsBuilder_.clear(); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public Builder removeWithdrawals(int index) { - if (withdrawalsBuilder_ == null) { - ensureWithdrawalsIsMutable(); - withdrawals_.remove(index); - onChanged(); - } else { - withdrawalsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public io.vegaprotocol.vega.Vega.Withdrawal.Builder getWithdrawalsBuilder( - int index) { - return getWithdrawalsFieldBuilder().getBuilder(index); - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalsOrBuilder( - int index) { - if (withdrawalsBuilder_ == null) { - return withdrawals_.get(index); } else { - return withdrawalsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public java.util.List - getWithdrawalsOrBuilderList() { - if (withdrawalsBuilder_ != null) { - return withdrawalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(withdrawals_); - } - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public io.vegaprotocol.vega.Vega.Withdrawal.Builder addWithdrawalsBuilder() { - return getWithdrawalsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance()); - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public io.vegaprotocol.vega.Vega.Withdrawal.Builder addWithdrawalsBuilder( - int index) { - return getWithdrawalsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance()); - } - /** - *
-       * The list of withdrawals for the specified party
-       * 
- * - * repeated .vega.Withdrawal withdrawals = 1 [json_name = "withdrawals"]; - */ - public java.util.List - getWithdrawalsBuilderList() { - return getWithdrawalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder> - getWithdrawalsFieldBuilder() { - if (withdrawalsBuilder_ == null) { - withdrawalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder>( - withdrawals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - withdrawals_ = null; - } - return withdrawalsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.WithdrawalsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalsResponse) - private static final io.vegaprotocol.vega.api.Trading.WithdrawalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.WithdrawalsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WithdrawalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WithdrawalsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WithdrawalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.WithdrawalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * A request to get a specific withdrawal by identifier
-   * 
- * - * Protobuf type {@code api.v1.WithdrawalRequest} - */ - public static final class WithdrawalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.WithdrawalRequest) - WithdrawalRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WithdrawalRequest.newBuilder() to construct. - private WithdrawalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WithdrawalRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WithdrawalRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WithdrawalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalRequest.class, io.vegaprotocol.vega.api.Trading.WithdrawalRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.WithdrawalRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.WithdrawalRequest other = (io.vegaprotocol.vega.api.Trading.WithdrawalRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.WithdrawalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to get a specific withdrawal by identifier
-     * 
- * - * Protobuf type {@code api.v1.WithdrawalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.WithdrawalRequest) - io.vegaprotocol.vega.api.Trading.WithdrawalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalRequest.class, io.vegaprotocol.vega.api.Trading.WithdrawalRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.WithdrawalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.WithdrawalRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalRequest build() { - io.vegaprotocol.vega.api.Trading.WithdrawalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.WithdrawalRequest result = new io.vegaprotocol.vega.api.Trading.WithdrawalRequest(this); - result.id_ = id_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.WithdrawalRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.WithdrawalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.WithdrawalRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.WithdrawalRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.WithdrawalRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.WithdrawalRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.WithdrawalRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalRequest) - private static final io.vegaprotocol.vega.api.Trading.WithdrawalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.WithdrawalRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WithdrawalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WithdrawalRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WithdrawalResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.WithdrawalResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return Whether the withdrawal field is set. - */ - boolean hasWithdrawal(); - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return The withdrawal. - */ - io.vegaprotocol.vega.Vega.Withdrawal getWithdrawal(); - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalOrBuilder(); - } - /** - *
-   * A response for a withdrawal
-   * 
- * - * Protobuf type {@code api.v1.WithdrawalResponse} - */ - public static final class WithdrawalResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.WithdrawalResponse) - WithdrawalResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WithdrawalResponse.newBuilder() to construct. - private WithdrawalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WithdrawalResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WithdrawalResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WithdrawalResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Withdrawal.Builder subBuilder = null; - if (withdrawal_ != null) { - subBuilder = withdrawal_.toBuilder(); - } - withdrawal_ = input.readMessage(io.vegaprotocol.vega.Vega.Withdrawal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(withdrawal_); - withdrawal_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalResponse.class, io.vegaprotocol.vega.api.Trading.WithdrawalResponse.Builder.class); - } - - public static final int WITHDRAWAL_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Withdrawal withdrawal_; - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return Whether the withdrawal field is set. - */ - @java.lang.Override - public boolean hasWithdrawal() { - return withdrawal_ != null; - } - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return The withdrawal. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Withdrawal getWithdrawal() { - return withdrawal_ == null ? io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance() : withdrawal_; - } - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalOrBuilder() { - return getWithdrawal(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (withdrawal_ != null) { - output.writeMessage(1, getWithdrawal()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (withdrawal_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWithdrawal()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.WithdrawalResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.WithdrawalResponse other = (io.vegaprotocol.vega.api.Trading.WithdrawalResponse) obj; - - if (hasWithdrawal() != other.hasWithdrawal()) return false; - if (hasWithdrawal()) { - if (!getWithdrawal() - .equals(other.getWithdrawal())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWithdrawal()) { - hash = (37 * hash) + WITHDRAWAL_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawal().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.WithdrawalResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A response for a withdrawal
-     * 
- * - * Protobuf type {@code api.v1.WithdrawalResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.WithdrawalResponse) - io.vegaprotocol.vega.api.Trading.WithdrawalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.WithdrawalResponse.class, io.vegaprotocol.vega.api.Trading.WithdrawalResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.WithdrawalResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (withdrawalBuilder_ == null) { - withdrawal_ = null; - } else { - withdrawal_ = null; - withdrawalBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_WithdrawalResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.WithdrawalResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalResponse build() { - io.vegaprotocol.vega.api.Trading.WithdrawalResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.WithdrawalResponse result = new io.vegaprotocol.vega.api.Trading.WithdrawalResponse(this); - if (withdrawalBuilder_ == null) { - result.withdrawal_ = withdrawal_; - } else { - result.withdrawal_ = withdrawalBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.WithdrawalResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.WithdrawalResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.WithdrawalResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.WithdrawalResponse.getDefaultInstance()) return this; - if (other.hasWithdrawal()) { - mergeWithdrawal(other.getWithdrawal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.WithdrawalResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.WithdrawalResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Withdrawal withdrawal_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder> withdrawalBuilder_; - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return Whether the withdrawal field is set. - */ - public boolean hasWithdrawal() { - return withdrawalBuilder_ != null || withdrawal_ != null; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - * @return The withdrawal. - */ - public io.vegaprotocol.vega.Vega.Withdrawal getWithdrawal() { - if (withdrawalBuilder_ == null) { - return withdrawal_ == null ? io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance() : withdrawal_; - } else { - return withdrawalBuilder_.getMessage(); - } - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public Builder setWithdrawal(io.vegaprotocol.vega.Vega.Withdrawal value) { - if (withdrawalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - withdrawal_ = value; - onChanged(); - } else { - withdrawalBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public Builder setWithdrawal( - io.vegaprotocol.vega.Vega.Withdrawal.Builder builderForValue) { - if (withdrawalBuilder_ == null) { - withdrawal_ = builderForValue.build(); - onChanged(); - } else { - withdrawalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public Builder mergeWithdrawal(io.vegaprotocol.vega.Vega.Withdrawal value) { - if (withdrawalBuilder_ == null) { - if (withdrawal_ != null) { - withdrawal_ = - io.vegaprotocol.vega.Vega.Withdrawal.newBuilder(withdrawal_).mergeFrom(value).buildPartial(); - } else { - withdrawal_ = value; - } - onChanged(); - } else { - withdrawalBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public Builder clearWithdrawal() { - if (withdrawalBuilder_ == null) { - withdrawal_ = null; - onChanged(); - } else { - withdrawal_ = null; - withdrawalBuilder_ = null; - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public io.vegaprotocol.vega.Vega.Withdrawal.Builder getWithdrawalBuilder() { - - onChanged(); - return getWithdrawalFieldBuilder().getBuilder(); - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - public io.vegaprotocol.vega.Vega.WithdrawalOrBuilder getWithdrawalOrBuilder() { - if (withdrawalBuilder_ != null) { - return withdrawalBuilder_.getMessageOrBuilder(); - } else { - return withdrawal_ == null ? - io.vegaprotocol.vega.Vega.Withdrawal.getDefaultInstance() : withdrawal_; - } - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .vega.Withdrawal withdrawal = 1 [json_name = "withdrawal"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder> - getWithdrawalFieldBuilder() { - if (withdrawalBuilder_ == null) { - withdrawalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Withdrawal, io.vegaprotocol.vega.Vega.Withdrawal.Builder, io.vegaprotocol.vega.Vega.WithdrawalOrBuilder>( - getWithdrawal(), - getParentForChildren(), - isClean()); - withdrawal_ = null; - } - return withdrawalBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.WithdrawalResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.WithdrawalResponse) - private static final io.vegaprotocol.vega.api.Trading.WithdrawalResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.WithdrawalResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.WithdrawalResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WithdrawalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WithdrawalResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.WithdrawalResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ERC20WithdrawalApprovalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ERC20WithdrawalApprovalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The withdrawalId. - */ - java.lang.String getWithdrawalId(); - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The bytes for withdrawalId. - */ - com.google.protobuf.ByteString - getWithdrawalIdBytes(); - } - /** - *
-   * The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge
-   * 
- * - * Protobuf type {@code api.v1.ERC20WithdrawalApprovalRequest} - */ - public static final class ERC20WithdrawalApprovalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ERC20WithdrawalApprovalRequest) - ERC20WithdrawalApprovalRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ERC20WithdrawalApprovalRequest.newBuilder() to construct. - private ERC20WithdrawalApprovalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ERC20WithdrawalApprovalRequest() { - withdrawalId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ERC20WithdrawalApprovalRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ERC20WithdrawalApprovalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - withdrawalId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.class, io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.Builder.class); - } - - public static final int WITHDRAWAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object withdrawalId_; - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The withdrawalId. - */ - @java.lang.Override - public java.lang.String getWithdrawalId() { - java.lang.Object ref = withdrawalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawalId_ = s; - return s; - } - } - /** - *
-     * The identifier of the withdrawal
-     * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The bytes for withdrawalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWithdrawalIdBytes() { - java.lang.Object ref = withdrawalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getWithdrawalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, withdrawalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getWithdrawalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, withdrawalId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest other = (io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest) obj; - - if (!getWithdrawalId() - .equals(other.getWithdrawalId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WITHDRAWAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getWithdrawalId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge
-     * 
- * - * Protobuf type {@code api.v1.ERC20WithdrawalApprovalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ERC20WithdrawalApprovalRequest) - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.class, io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - withdrawalId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest build() { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest result = new io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest(this); - result.withdrawalId_ = withdrawalId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.getDefaultInstance()) return this; - if (!other.getWithdrawalId().isEmpty()) { - withdrawalId_ = other.withdrawalId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object withdrawalId_ = ""; - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The withdrawalId. - */ - public java.lang.String getWithdrawalId() { - java.lang.Object ref = withdrawalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - withdrawalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return The bytes for withdrawalId. - */ - public com.google.protobuf.ByteString - getWithdrawalIdBytes() { - java.lang.Object ref = withdrawalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - withdrawalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @param value The withdrawalId to set. - * @return This builder for chaining. - */ - public Builder setWithdrawalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - withdrawalId_ = value; - onChanged(); - return this; - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearWithdrawalId() { - - withdrawalId_ = getDefaultInstance().getWithdrawalId(); - onChanged(); - return this; - } - /** - *
-       * The identifier of the withdrawal
-       * 
- * - * string withdrawal_id = 1 [json_name = "withdrawalId", (.validator.field) = { ... } - * @param value The bytes for withdrawalId to set. - * @return This builder for chaining. - */ - public Builder setWithdrawalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - withdrawalId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ERC20WithdrawalApprovalRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalRequest) - private static final io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ERC20WithdrawalApprovalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ERC20WithdrawalApprovalRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ERC20WithdrawalApprovalResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.ERC20WithdrawalApprovalResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The address of asset on ethereum
-     * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The assetSource. - */ - java.lang.String getAssetSource(); - /** - *
-     * The address of asset on ethereum
-     * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The bytes for assetSource. - */ - com.google.protobuf.ByteString - getAssetSourceBytes(); - - /** - *
-     * The amount to be withdrawn
-     * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The amount. - */ - java.lang.String getAmount(); - /** - *
-     * The amount to be withdrawn
-     * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The bytes for amount. - */ - com.google.protobuf.ByteString - getAmountBytes(); - - /** - *
-     * The expiry / until what time the request is valid
-     * 
- * - * int64 expiry = 3 [json_name = "expiry"]; - * @return The expiry. - */ - long getExpiry(); - - /** - *
-     * The nonce, which is actually the internal reference for the withdrawal
-     * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The nonce. - */ - java.lang.String getNonce(); - /** - *
-     * The nonce, which is actually the internal reference for the withdrawal
-     * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The bytes for nonce. - */ - com.google.protobuf.ByteString - getNonceBytes(); - - /** - *
-     * The signatures bundle as hex encoded data, forward by 0x
-     * e.g: 0x + sig1 + sig2 + ... + sixN
-     * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The signatures. - */ - java.lang.String getSignatures(); - /** - *
-     * The signatures bundle as hex encoded data, forward by 0x
-     * e.g: 0x + sig1 + sig2 + ... + sixN
-     * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The bytes for signatures. - */ - com.google.protobuf.ByteString - getSignaturesBytes(); - } - /** - *
-   * The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge
-   * function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)
-   * 
- * - * Protobuf type {@code api.v1.ERC20WithdrawalApprovalResponse} - */ - public static final class ERC20WithdrawalApprovalResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.ERC20WithdrawalApprovalResponse) - ERC20WithdrawalApprovalResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ERC20WithdrawalApprovalResponse.newBuilder() to construct. - private ERC20WithdrawalApprovalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ERC20WithdrawalApprovalResponse() { - assetSource_ = ""; - amount_ = ""; - nonce_ = ""; - signatures_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ERC20WithdrawalApprovalResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ERC20WithdrawalApprovalResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - assetSource_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - amount_ = s; - break; - } - case 24: { - - expiry_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - nonce_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signatures_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.class, io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.Builder.class); - } - - public static final int ASSET_SOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object assetSource_; - /** - *
-     * The address of asset on ethereum
-     * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The assetSource. - */ - @java.lang.Override - public java.lang.String getAssetSource() { - java.lang.Object ref = assetSource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSource_ = s; - return s; - } - } - /** - *
-     * The address of asset on ethereum
-     * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The bytes for assetSource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssetSourceBytes() { - java.lang.Object ref = assetSource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object amount_; - /** - *
-     * The amount to be withdrawn
-     * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The amount. - */ - @java.lang.Override - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } - } - /** - *
-     * The amount to be withdrawn
-     * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The bytes for amount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPIRY_FIELD_NUMBER = 3; - private long expiry_; - /** - *
-     * The expiry / until what time the request is valid
-     * 
- * - * int64 expiry = 3 [json_name = "expiry"]; - * @return The expiry. - */ - @java.lang.Override - public long getExpiry() { - return expiry_; - } - - public static final int NONCE_FIELD_NUMBER = 4; - private volatile java.lang.Object nonce_; - /** - *
-     * The nonce, which is actually the internal reference for the withdrawal
-     * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The nonce. - */ - @java.lang.Override - public java.lang.String getNonce() { - java.lang.Object ref = nonce_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nonce_ = s; - return s; - } - } - /** - *
-     * The nonce, which is actually the internal reference for the withdrawal
-     * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The bytes for nonce. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNonceBytes() { - java.lang.Object ref = nonce_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nonce_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURES_FIELD_NUMBER = 5; - private volatile java.lang.Object signatures_; - /** - *
-     * The signatures bundle as hex encoded data, forward by 0x
-     * e.g: 0x + sig1 + sig2 + ... + sixN
-     * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The signatures. - */ - @java.lang.Override - public java.lang.String getSignatures() { - java.lang.Object ref = signatures_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signatures_ = s; - return s; - } - } - /** - *
-     * The signatures bundle as hex encoded data, forward by 0x
-     * e.g: 0x + sig1 + sig2 + ... + sixN
-     * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The bytes for signatures. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignaturesBytes() { - java.lang.Object ref = signatures_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signatures_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAssetSourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetSource_); - } - if (!getAmountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); - } - if (expiry_ != 0L) { - output.writeInt64(3, expiry_); - } - if (!getNonceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_); - } - if (!getSignaturesBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signatures_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAssetSourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assetSource_); - } - if (!getAmountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); - } - if (expiry_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, expiry_); - } - if (!getNonceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_); - } - if (!getSignaturesBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signatures_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse other = (io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse) obj; - - if (!getAssetSource() - .equals(other.getAssetSource())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (getExpiry() - != other.getExpiry()) return false; - if (!getNonce() - .equals(other.getNonce())) return false; - if (!getSignatures() - .equals(other.getSignatures())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ASSET_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getAssetSource().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAmount().hashCode(); - hash = (37 * hash) + EXPIRY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpiry()); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignatures().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge
-     * function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)
-     * 
- * - * Protobuf type {@code api.v1.ERC20WithdrawalApprovalResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.ERC20WithdrawalApprovalResponse) - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.class, io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - assetSource_ = ""; - - amount_ = ""; - - expiry_ = 0L; - - nonce_ = ""; - - signatures_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse build() { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse result = new io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse(this); - result.assetSource_ = assetSource_; - result.amount_ = amount_; - result.expiry_ = expiry_; - result.nonce_ = nonce_; - result.signatures_ = signatures_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.getDefaultInstance()) return this; - if (!other.getAssetSource().isEmpty()) { - assetSource_ = other.assetSource_; - onChanged(); - } - if (!other.getAmount().isEmpty()) { - amount_ = other.amount_; - onChanged(); - } - if (other.getExpiry() != 0L) { - setExpiry(other.getExpiry()); - } - if (!other.getNonce().isEmpty()) { - nonce_ = other.nonce_; - onChanged(); - } - if (!other.getSignatures().isEmpty()) { - signatures_ = other.signatures_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object assetSource_ = ""; - /** - *
-       * The address of asset on ethereum
-       * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The assetSource. - */ - public java.lang.String getAssetSource() { - java.lang.Object ref = assetSource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The address of asset on ethereum
-       * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return The bytes for assetSource. - */ - public com.google.protobuf.ByteString - getAssetSourceBytes() { - java.lang.Object ref = assetSource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The address of asset on ethereum
-       * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @param value The assetSource to set. - * @return This builder for chaining. - */ - public Builder setAssetSource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assetSource_ = value; - onChanged(); - return this; - } - /** - *
-       * The address of asset on ethereum
-       * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @return This builder for chaining. - */ - public Builder clearAssetSource() { - - assetSource_ = getDefaultInstance().getAssetSource(); - onChanged(); - return this; - } - /** - *
-       * The address of asset on ethereum
-       * 
- * - * string asset_source = 1 [json_name = "assetSource"]; - * @param value The bytes for assetSource to set. - * @return This builder for chaining. - */ - public Builder setAssetSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assetSource_ = value; - onChanged(); - return this; - } - - private java.lang.Object amount_ = ""; - /** - *
-       * The amount to be withdrawn
-       * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The amount. - */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - amount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The amount to be withdrawn
-       * 
- * - * string amount = 2 [json_name = "amount"]; - * @return The bytes for amount. - */ - public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - amount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The amount to be withdrawn
-       * 
- * - * string amount = 2 [json_name = "amount"]; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - amount_ = value; - onChanged(); - return this; - } - /** - *
-       * The amount to be withdrawn
-       * 
- * - * string amount = 2 [json_name = "amount"]; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = getDefaultInstance().getAmount(); - onChanged(); - return this; - } - /** - *
-       * The amount to be withdrawn
-       * 
- * - * string amount = 2 [json_name = "amount"]; - * @param value The bytes for amount to set. - * @return This builder for chaining. - */ - public Builder setAmountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - amount_ = value; - onChanged(); - return this; - } - - private long expiry_ ; - /** - *
-       * The expiry / until what time the request is valid
-       * 
- * - * int64 expiry = 3 [json_name = "expiry"]; - * @return The expiry. - */ - @java.lang.Override - public long getExpiry() { - return expiry_; - } - /** - *
-       * The expiry / until what time the request is valid
-       * 
- * - * int64 expiry = 3 [json_name = "expiry"]; - * @param value The expiry to set. - * @return This builder for chaining. - */ - public Builder setExpiry(long value) { - - expiry_ = value; - onChanged(); - return this; - } - /** - *
-       * The expiry / until what time the request is valid
-       * 
- * - * int64 expiry = 3 [json_name = "expiry"]; - * @return This builder for chaining. - */ - public Builder clearExpiry() { - - expiry_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object nonce_ = ""; - /** - *
-       * The nonce, which is actually the internal reference for the withdrawal
-       * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The nonce. - */ - public java.lang.String getNonce() { - java.lang.Object ref = nonce_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nonce_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The nonce, which is actually the internal reference for the withdrawal
-       * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return The bytes for nonce. - */ - public com.google.protobuf.ByteString - getNonceBytes() { - java.lang.Object ref = nonce_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nonce_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The nonce, which is actually the internal reference for the withdrawal
-       * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       * The nonce, which is actually the internal reference for the withdrawal
-       * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - /** - *
-       * The nonce, which is actually the internal reference for the withdrawal
-       * 
- * - * string nonce = 4 [json_name = "nonce"]; - * @param value The bytes for nonce to set. - * @return This builder for chaining. - */ - public Builder setNonceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nonce_ = value; - onChanged(); - return this; - } - - private java.lang.Object signatures_ = ""; - /** - *
-       * The signatures bundle as hex encoded data, forward by 0x
-       * e.g: 0x + sig1 + sig2 + ... + sixN
-       * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The signatures. - */ - public java.lang.String getSignatures() { - java.lang.Object ref = signatures_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signatures_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The signatures bundle as hex encoded data, forward by 0x
-       * e.g: 0x + sig1 + sig2 + ... + sixN
-       * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return The bytes for signatures. - */ - public com.google.protobuf.ByteString - getSignaturesBytes() { - java.lang.Object ref = signatures_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signatures_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The signatures bundle as hex encoded data, forward by 0x
-       * e.g: 0x + sig1 + sig2 + ... + sixN
-       * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @param value The signatures to set. - * @return This builder for chaining. - */ - public Builder setSignatures( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatures_ = value; - onChanged(); - return this; - } - /** - *
-       * The signatures bundle as hex encoded data, forward by 0x
-       * e.g: 0x + sig1 + sig2 + ... + sixN
-       * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @return This builder for chaining. - */ - public Builder clearSignatures() { - - signatures_ = getDefaultInstance().getSignatures(); - onChanged(); - return this; - } - /** - *
-       * The signatures bundle as hex encoded data, forward by 0x
-       * e.g: 0x + sig1 + sig2 + ... + sixN
-       * 
- * - * string signatures = 5 [json_name = "signatures"]; - * @param value The bytes for signatures to set. - * @return This builder for chaining. - */ - public Builder setSignaturesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatures_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.ERC20WithdrawalApprovalResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalResponse) - private static final io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ERC20WithdrawalApprovalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ERC20WithdrawalApprovalResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DepositsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.DepositsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The party to get the deposits for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - java.lang.String getPartyId(); - /** - *
-     * The party to get the deposits for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - com.google.protobuf.ByteString - getPartyIdBytes(); - } - /** - *
-   * A request to get a list of deposit from a given party
-   * 
- * - * Protobuf type {@code api.v1.DepositsRequest} - */ - public static final class DepositsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.DepositsRequest) - DepositsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DepositsRequest.newBuilder() to construct. - private DepositsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DepositsRequest() { - partyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DepositsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepositsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - partyId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositsRequest.class, io.vegaprotocol.vega.api.Trading.DepositsRequest.Builder.class); - } - - public static final int PARTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object partyId_; - /** - *
-     * The party to get the deposits for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - @java.lang.Override - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } - } - /** - *
-     * The party to get the deposits for
-     * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPartyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPartyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.DepositsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.DepositsRequest other = (io.vegaprotocol.vega.api.Trading.DepositsRequest) obj; - - if (!getPartyId() - .equals(other.getPartyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.DepositsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to get a list of deposit from a given party
-     * 
- * - * Protobuf type {@code api.v1.DepositsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.DepositsRequest) - io.vegaprotocol.vega.api.Trading.DepositsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositsRequest.class, io.vegaprotocol.vega.api.Trading.DepositsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.DepositsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - partyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.DepositsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsRequest build() { - io.vegaprotocol.vega.api.Trading.DepositsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.DepositsRequest result = new io.vegaprotocol.vega.api.Trading.DepositsRequest(this); - result.partyId_ = partyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.DepositsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.DepositsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.DepositsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.DepositsRequest.getDefaultInstance()) return this; - if (!other.getPartyId().isEmpty()) { - partyId_ = other.partyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.DepositsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.DepositsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object partyId_ = ""; - /** - *
-       * The party to get the deposits for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The partyId. - */ - public java.lang.String getPartyId() { - java.lang.Object ref = partyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The party to get the deposits for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return The bytes for partyId. - */ - public com.google.protobuf.ByteString - getPartyIdBytes() { - java.lang.Object ref = partyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The party to get the deposits for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partyId_ = value; - onChanged(); - return this; - } - /** - *
-       * The party to get the deposits for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPartyId() { - - partyId_ = getDefaultInstance().getPartyId(); - onChanged(); - return this; - } - /** - *
-       * The party to get the deposits for
-       * 
- * - * string party_id = 1 [json_name = "partyId", (.validator.field) = { ... } - * @param value The bytes for partyId to set. - * @return This builder for chaining. - */ - public Builder setPartyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partyId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.DepositsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.DepositsRequest) - private static final io.vegaprotocol.vega.api.Trading.DepositsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.DepositsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.DepositsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DepositsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepositsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DepositsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.DepositsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - java.util.List - getDepositsList(); - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - io.vegaprotocol.vega.Vega.Deposit getDeposits(int index); - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - int getDepositsCount(); - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - java.util.List - getDepositsOrBuilderList(); - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositsOrBuilder( - int index); - } - /** - *
-   * The response for a list of deposits
-   * 
- * - * Protobuf type {@code api.v1.DepositsResponse} - */ - public static final class DepositsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.DepositsResponse) - DepositsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DepositsResponse.newBuilder() to construct. - private DepositsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DepositsResponse() { - deposits_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DepositsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepositsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deposits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deposits_.add( - input.readMessage(io.vegaprotocol.vega.Vega.Deposit.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositsResponse.class, io.vegaprotocol.vega.api.Trading.DepositsResponse.Builder.class); - } - - public static final int DEPOSITS_FIELD_NUMBER = 1; - private java.util.List deposits_; - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - @java.lang.Override - public java.util.List getDepositsList() { - return deposits_; - } - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - @java.lang.Override - public java.util.List - getDepositsOrBuilderList() { - return deposits_; - } - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - @java.lang.Override - public int getDepositsCount() { - return deposits_.size(); - } - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit getDeposits(int index) { - return deposits_.get(index); - } - /** - *
-     * The list of deposits for the specified party
-     * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositsOrBuilder( - int index) { - return deposits_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < deposits_.size(); i++) { - output.writeMessage(1, deposits_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < deposits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, deposits_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.DepositsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.DepositsResponse other = (io.vegaprotocol.vega.api.Trading.DepositsResponse) obj; - - if (!getDepositsList() - .equals(other.getDepositsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDepositsCount() > 0) { - hash = (37 * hash) + DEPOSITS_FIELD_NUMBER; - hash = (53 * hash) + getDepositsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.DepositsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The response for a list of deposits
-     * 
- * - * Protobuf type {@code api.v1.DepositsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.DepositsResponse) - io.vegaprotocol.vega.api.Trading.DepositsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositsResponse.class, io.vegaprotocol.vega.api.Trading.DepositsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.DepositsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDepositsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - depositsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.DepositsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsResponse build() { - io.vegaprotocol.vega.api.Trading.DepositsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.DepositsResponse result = new io.vegaprotocol.vega.api.Trading.DepositsResponse(this); - int from_bitField0_ = bitField0_; - if (depositsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - deposits_ = java.util.Collections.unmodifiableList(deposits_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deposits_ = deposits_; - } else { - result.deposits_ = depositsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.DepositsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.DepositsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.DepositsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.DepositsResponse.getDefaultInstance()) return this; - if (depositsBuilder_ == null) { - if (!other.deposits_.isEmpty()) { - if (deposits_.isEmpty()) { - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDepositsIsMutable(); - deposits_.addAll(other.deposits_); - } - onChanged(); - } - } else { - if (!other.deposits_.isEmpty()) { - if (depositsBuilder_.isEmpty()) { - depositsBuilder_.dispose(); - depositsBuilder_ = null; - deposits_ = other.deposits_; - bitField0_ = (bitField0_ & ~0x00000001); - depositsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDepositsFieldBuilder() : null; - } else { - depositsBuilder_.addAllMessages(other.deposits_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.DepositsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.DepositsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List deposits_ = - java.util.Collections.emptyList(); - private void ensureDepositsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deposits_ = new java.util.ArrayList(deposits_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder> depositsBuilder_; - - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public java.util.List getDepositsList() { - if (depositsBuilder_ == null) { - return java.util.Collections.unmodifiableList(deposits_); - } else { - return depositsBuilder_.getMessageList(); - } - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public int getDepositsCount() { - if (depositsBuilder_ == null) { - return deposits_.size(); - } else { - return depositsBuilder_.getCount(); - } - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public io.vegaprotocol.vega.Vega.Deposit getDeposits(int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); - } else { - return depositsBuilder_.getMessage(index); - } - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder setDeposits( - int index, io.vegaprotocol.vega.Vega.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.set(index, value); - onChanged(); - } else { - depositsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder setDeposits( - int index, io.vegaprotocol.vega.Vega.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.set(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder addDeposits(io.vegaprotocol.vega.Vega.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(value); - onChanged(); - } else { - depositsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder addDeposits( - int index, io.vegaprotocol.vega.Vega.Deposit value) { - if (depositsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepositsIsMutable(); - deposits_.add(index, value); - onChanged(); - } else { - depositsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder addDeposits( - io.vegaprotocol.vega.Vega.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder addDeposits( - int index, io.vegaprotocol.vega.Vega.Deposit.Builder builderForValue) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.add(index, builderForValue.build()); - onChanged(); - } else { - depositsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder addAllDeposits( - java.lang.Iterable values) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deposits_); - onChanged(); - } else { - depositsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder clearDeposits() { - if (depositsBuilder_ == null) { - deposits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - depositsBuilder_.clear(); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public Builder removeDeposits(int index) { - if (depositsBuilder_ == null) { - ensureDepositsIsMutable(); - deposits_.remove(index); - onChanged(); - } else { - depositsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public io.vegaprotocol.vega.Vega.Deposit.Builder getDepositsBuilder( - int index) { - return getDepositsFieldBuilder().getBuilder(index); - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositsOrBuilder( - int index) { - if (depositsBuilder_ == null) { - return deposits_.get(index); } else { - return depositsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public java.util.List - getDepositsOrBuilderList() { - if (depositsBuilder_ != null) { - return depositsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(deposits_); - } - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public io.vegaprotocol.vega.Vega.Deposit.Builder addDepositsBuilder() { - return getDepositsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance()); - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public io.vegaprotocol.vega.Vega.Deposit.Builder addDepositsBuilder( - int index) { - return getDepositsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance()); - } - /** - *
-       * The list of deposits for the specified party
-       * 
- * - * repeated .vega.Deposit deposits = 1 [json_name = "deposits"]; - */ - public java.util.List - getDepositsBuilderList() { - return getDepositsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder> - getDepositsFieldBuilder() { - if (depositsBuilder_ == null) { - depositsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder>( - deposits_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - deposits_ = null; - } - return depositsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.DepositsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.DepositsResponse) - private static final io.vegaprotocol.vega.api.Trading.DepositsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.DepositsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.DepositsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DepositsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepositsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DepositRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.DepositRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the deposit
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The identifier of the deposit
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * A request to get a specific deposit by identifier
-   * 
- * - * Protobuf type {@code api.v1.DepositRequest} - */ - public static final class DepositRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.DepositRequest) - DepositRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DepositRequest.newBuilder() to construct. - private DepositRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DepositRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DepositRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepositRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositRequest.class, io.vegaprotocol.vega.api.Trading.DepositRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The identifier of the deposit
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The identifier of the deposit
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.DepositRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.DepositRequest other = (io.vegaprotocol.vega.api.Trading.DepositRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.DepositRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to get a specific deposit by identifier
-     * 
- * - * Protobuf type {@code api.v1.DepositRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.DepositRequest) - io.vegaprotocol.vega.api.Trading.DepositRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositRequest.class, io.vegaprotocol.vega.api.Trading.DepositRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.DepositRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.DepositRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositRequest build() { - io.vegaprotocol.vega.api.Trading.DepositRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.DepositRequest result = new io.vegaprotocol.vega.api.Trading.DepositRequest(this); - result.id_ = id_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.DepositRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.DepositRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.DepositRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.DepositRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.DepositRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.DepositRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * The identifier of the deposit
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The identifier of the deposit
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The identifier of the deposit
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The identifier of the deposit
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * The identifier of the deposit
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.DepositRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.DepositRequest) - private static final io.vegaprotocol.vega.api.Trading.DepositRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.DepositRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.DepositRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DepositRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepositRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DepositResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.DepositResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return Whether the deposit field is set. - */ - boolean hasDeposit(); - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return The deposit. - */ - io.vegaprotocol.vega.Vega.Deposit getDeposit(); - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositOrBuilder(); - } - /** - *
-   * A response for a deposit
-   * 
- * - * Protobuf type {@code api.v1.DepositResponse} - */ - public static final class DepositResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.DepositResponse) - DepositResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DepositResponse.newBuilder() to construct. - private DepositResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DepositResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DepositResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DepositResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.Vega.Deposit.Builder subBuilder = null; - if (deposit_ != null) { - subBuilder = deposit_.toBuilder(); - } - deposit_ = input.readMessage(io.vegaprotocol.vega.Vega.Deposit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deposit_); - deposit_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositResponse.class, io.vegaprotocol.vega.api.Trading.DepositResponse.Builder.class); - } - - public static final int DEPOSIT_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.Vega.Deposit deposit_; - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return Whether the deposit field is set. - */ - @java.lang.Override - public boolean hasDeposit() { - return deposit_ != null; - } - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return The deposit. - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.Deposit getDeposit() { - return deposit_ == null ? io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance() : deposit_; - } - /** - *
-     * The deposit matching the identifier from the request
-     * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositOrBuilder() { - return getDeposit(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (deposit_ != null) { - output.writeMessage(1, getDeposit()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deposit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeposit()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.DepositResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.DepositResponse other = (io.vegaprotocol.vega.api.Trading.DepositResponse) obj; - - if (hasDeposit() != other.hasDeposit()) return false; - if (hasDeposit()) { - if (!getDeposit() - .equals(other.getDeposit())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeposit()) { - hash = (37 * hash) + DEPOSIT_FIELD_NUMBER; - hash = (53 * hash) + getDeposit().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.DepositResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.DepositResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A response for a deposit
-     * 
- * - * Protobuf type {@code api.v1.DepositResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.DepositResponse) - io.vegaprotocol.vega.api.Trading.DepositResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.DepositResponse.class, io.vegaprotocol.vega.api.Trading.DepositResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.DepositResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (depositBuilder_ == null) { - deposit_ = null; - } else { - deposit_ = null; - depositBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_DepositResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.DepositResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositResponse build() { - io.vegaprotocol.vega.api.Trading.DepositResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.DepositResponse result = new io.vegaprotocol.vega.api.Trading.DepositResponse(this); - if (depositBuilder_ == null) { - result.deposit_ = deposit_; - } else { - result.deposit_ = depositBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.DepositResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.DepositResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.DepositResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.DepositResponse.getDefaultInstance()) return this; - if (other.hasDeposit()) { - mergeDeposit(other.getDeposit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.DepositResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.DepositResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.Vega.Deposit deposit_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder> depositBuilder_; - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return Whether the deposit field is set. - */ - public boolean hasDeposit() { - return depositBuilder_ != null || deposit_ != null; - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - * @return The deposit. - */ - public io.vegaprotocol.vega.Vega.Deposit getDeposit() { - if (depositBuilder_ == null) { - return deposit_ == null ? io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance() : deposit_; - } else { - return depositBuilder_.getMessage(); - } - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public Builder setDeposit(io.vegaprotocol.vega.Vega.Deposit value) { - if (depositBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deposit_ = value; - onChanged(); - } else { - depositBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public Builder setDeposit( - io.vegaprotocol.vega.Vega.Deposit.Builder builderForValue) { - if (depositBuilder_ == null) { - deposit_ = builderForValue.build(); - onChanged(); - } else { - depositBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public Builder mergeDeposit(io.vegaprotocol.vega.Vega.Deposit value) { - if (depositBuilder_ == null) { - if (deposit_ != null) { - deposit_ = - io.vegaprotocol.vega.Vega.Deposit.newBuilder(deposit_).mergeFrom(value).buildPartial(); - } else { - deposit_ = value; - } - onChanged(); - } else { - depositBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public Builder clearDeposit() { - if (depositBuilder_ == null) { - deposit_ = null; - onChanged(); - } else { - deposit_ = null; - depositBuilder_ = null; - } - - return this; - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public io.vegaprotocol.vega.Vega.Deposit.Builder getDepositBuilder() { - - onChanged(); - return getDepositFieldBuilder().getBuilder(); - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - public io.vegaprotocol.vega.Vega.DepositOrBuilder getDepositOrBuilder() { - if (depositBuilder_ != null) { - return depositBuilder_.getMessageOrBuilder(); - } else { - return deposit_ == null ? - io.vegaprotocol.vega.Vega.Deposit.getDefaultInstance() : deposit_; - } - } - /** - *
-       * The deposit matching the identifier from the request
-       * 
- * - * .vega.Deposit deposit = 1 [json_name = "deposit"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder> - getDepositFieldBuilder() { - if (depositBuilder_ == null) { - depositBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.Vega.Deposit, io.vegaprotocol.vega.Vega.Deposit.Builder, io.vegaprotocol.vega.Vega.DepositOrBuilder>( - getDeposit(), - getParentForChildren(), - isClean()); - deposit_ = null; - } - return depositBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.DepositResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.DepositResponse) - private static final io.vegaprotocol.vega.api.Trading.DepositResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.DepositResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.DepositResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DepositResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DepositResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.DepositResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NetworkParametersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.NetworkParametersRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * A message requesting for the list of all network parameters
-   * 
- * - * Protobuf type {@code api.v1.NetworkParametersRequest} - */ - public static final class NetworkParametersRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.NetworkParametersRequest) - NetworkParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkParametersRequest.newBuilder() to construct. - private NetworkParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkParametersRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NetworkParametersRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.class, io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.NetworkParametersRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest other = (io.vegaprotocol.vega.api.Trading.NetworkParametersRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.NetworkParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A message requesting for the list of all network parameters
-     * 
- * - * Protobuf type {@code api.v1.NetworkParametersRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.NetworkParametersRequest) - io.vegaprotocol.vega.api.Trading.NetworkParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.class, io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersRequest build() { - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest result = new io.vegaprotocol.vega.api.Trading.NetworkParametersRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.NetworkParametersRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.NetworkParametersRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.NetworkParametersRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.NetworkParametersRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.NetworkParametersRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.NetworkParametersRequest) - private static final io.vegaprotocol.vega.api.Trading.NetworkParametersRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.NetworkParametersRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.NetworkParametersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkParametersRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NetworkParametersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.NetworkParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - java.util.List - getNetworkParametersList(); - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index); - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - int getNetworkParametersCount(); - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - java.util.List - getNetworkParametersOrBuilderList(); - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( - int index); - } - /** - *
-   * A response containing all of the vega network parameters
-   * 
- * - * Protobuf type {@code api.v1.NetworkParametersResponse} - */ - public static final class NetworkParametersResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.NetworkParametersResponse) - NetworkParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkParametersResponse.newBuilder() to construct. - private NetworkParametersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkParametersResponse() { - networkParameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NetworkParametersResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networkParameters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networkParameters_.add( - input.readMessage(io.vegaprotocol.vega.Vega.NetworkParameter.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - networkParameters_ = java.util.Collections.unmodifiableList(networkParameters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.class, io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.Builder.class); - } - - public static final int NETWORK_PARAMETERS_FIELD_NUMBER = 1; - private java.util.List networkParameters_; - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - @java.lang.Override - public java.util.List getNetworkParametersList() { - return networkParameters_; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - @java.lang.Override - public java.util.List - getNetworkParametersOrBuilderList() { - return networkParameters_; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - @java.lang.Override - public int getNetworkParametersCount() { - return networkParameters_.size(); - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index) { - return networkParameters_.get(index); - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( - int index) { - return networkParameters_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < networkParameters_.size(); i++) { - output.writeMessage(1, networkParameters_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < networkParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networkParameters_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.NetworkParametersResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse other = (io.vegaprotocol.vega.api.Trading.NetworkParametersResponse) obj; - - if (!getNetworkParametersList() - .equals(other.getNetworkParametersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNetworkParametersCount() > 0) { - hash = (37 * hash) + NETWORK_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getNetworkParametersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.NetworkParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A response containing all of the vega network parameters
-     * 
- * - * Protobuf type {@code api.v1.NetworkParametersResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.NetworkParametersResponse) - io.vegaprotocol.vega.api.Trading.NetworkParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.class, io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNetworkParametersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (networkParametersBuilder_ == null) { - networkParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - networkParametersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_NetworkParametersResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersResponse build() { - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse result = new io.vegaprotocol.vega.api.Trading.NetworkParametersResponse(this); - int from_bitField0_ = bitField0_; - if (networkParametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - networkParameters_ = java.util.Collections.unmodifiableList(networkParameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.networkParameters_ = networkParameters_; - } else { - result.networkParameters_ = networkParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.NetworkParametersResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.NetworkParametersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.NetworkParametersResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.getDefaultInstance()) return this; - if (networkParametersBuilder_ == null) { - if (!other.networkParameters_.isEmpty()) { - if (networkParameters_.isEmpty()) { - networkParameters_ = other.networkParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNetworkParametersIsMutable(); - networkParameters_.addAll(other.networkParameters_); - } - onChanged(); - } - } else { - if (!other.networkParameters_.isEmpty()) { - if (networkParametersBuilder_.isEmpty()) { - networkParametersBuilder_.dispose(); - networkParametersBuilder_ = null; - networkParameters_ = other.networkParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - networkParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworkParametersFieldBuilder() : null; - } else { - networkParametersBuilder_.addAllMessages(other.networkParameters_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.NetworkParametersResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List networkParameters_ = - java.util.Collections.emptyList(); - private void ensureNetworkParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - networkParameters_ = new java.util.ArrayList(networkParameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> networkParametersBuilder_; - - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public java.util.List getNetworkParametersList() { - if (networkParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(networkParameters_); - } else { - return networkParametersBuilder_.getMessageList(); - } - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public int getNetworkParametersCount() { - if (networkParametersBuilder_ == null) { - return networkParameters_.size(); - } else { - return networkParametersBuilder_.getCount(); - } - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index) { - if (networkParametersBuilder_ == null) { - return networkParameters_.get(index); - } else { - return networkParametersBuilder_.getMessage(index); - } - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder setNetworkParameters( - int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { - if (networkParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworkParametersIsMutable(); - networkParameters_.set(index, value); - onChanged(); - } else { - networkParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder setNetworkParameters( - int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { - if (networkParametersBuilder_ == null) { - ensureNetworkParametersIsMutable(); - networkParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - networkParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder addNetworkParameters(io.vegaprotocol.vega.Vega.NetworkParameter value) { - if (networkParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworkParametersIsMutable(); - networkParameters_.add(value); - onChanged(); - } else { - networkParametersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder addNetworkParameters( - int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { - if (networkParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworkParametersIsMutable(); - networkParameters_.add(index, value); - onChanged(); - } else { - networkParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder addNetworkParameters( - io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { - if (networkParametersBuilder_ == null) { - ensureNetworkParametersIsMutable(); - networkParameters_.add(builderForValue.build()); - onChanged(); - } else { - networkParametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder addNetworkParameters( - int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { - if (networkParametersBuilder_ == null) { - ensureNetworkParametersIsMutable(); - networkParameters_.add(index, builderForValue.build()); - onChanged(); - } else { - networkParametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder addAllNetworkParameters( - java.lang.Iterable values) { - if (networkParametersBuilder_ == null) { - ensureNetworkParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkParameters_); - onChanged(); - } else { - networkParametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder clearNetworkParameters() { - if (networkParametersBuilder_ == null) { - networkParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - networkParametersBuilder_.clear(); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public Builder removeNetworkParameters(int index) { - if (networkParametersBuilder_ == null) { - ensureNetworkParametersIsMutable(); - networkParameters_.remove(index); - onChanged(); - } else { - networkParametersBuilder_.remove(index); - } - return this; - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public io.vegaprotocol.vega.Vega.NetworkParameter.Builder getNetworkParametersBuilder( - int index) { - return getNetworkParametersFieldBuilder().getBuilder(index); - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( - int index) { - if (networkParametersBuilder_ == null) { - return networkParameters_.get(index); } else { - return networkParametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public java.util.List - getNetworkParametersOrBuilderList() { - if (networkParametersBuilder_ != null) { - return networkParametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(networkParameters_); - } - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addNetworkParametersBuilder() { - return getNetworkParametersFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addNetworkParametersBuilder( - int index) { - return getNetworkParametersFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); - } - /** - * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; - */ - public java.util.List - getNetworkParametersBuilderList() { - return getNetworkParametersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> - getNetworkParametersFieldBuilder() { - if (networkParametersBuilder_ == null) { - networkParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder>( - networkParameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - networkParameters_ = null; - } - return networkParametersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.NetworkParametersResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.NetworkParametersResponse) - private static final io.vegaprotocol.vega.api.Trading.NetworkParametersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.NetworkParametersResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.NetworkParametersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkParametersResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.NetworkParametersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiquidityProvisionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.LiquidityProvisionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The target market for the liquidity provision orders
-     * 
- * - * string market = 1 [json_name = "market"]; - * @return The market. - */ - java.lang.String getMarket(); - /** - *
-     * The target market for the liquidity provision orders
-     * 
- * - * string market = 1 [json_name = "market"]; - * @return The bytes for market. - */ - com.google.protobuf.ByteString - getMarketBytes(); - - /** - *
-     * The party which submitted the liquidity provision orders
-     * 
- * - * string party = 2 [json_name = "party"]; - * @return The party. - */ - java.lang.String getParty(); - /** - *
-     * The party which submitted the liquidity provision orders
-     * 
- * - * string party = 2 [json_name = "party"]; - * @return The bytes for party. - */ - com.google.protobuf.ByteString - getPartyBytes(); - } - /** - *
-   * A message requesting for the list of liquidity provision orders for markets
-   * One of the two filters is required (or both)
-   * 
- * - * Protobuf type {@code api.v1.LiquidityProvisionsRequest} - */ - public static final class LiquidityProvisionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.LiquidityProvisionsRequest) - LiquidityProvisionsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiquidityProvisionsRequest.newBuilder() to construct. - private LiquidityProvisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiquidityProvisionsRequest() { - market_ = ""; - party_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiquidityProvisionsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiquidityProvisionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - market_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - party_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.class, io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.Builder.class); - } - - public static final int MARKET_FIELD_NUMBER = 1; - private volatile java.lang.Object market_; - /** - *
-     * The target market for the liquidity provision orders
-     * 
- * - * string market = 1 [json_name = "market"]; - * @return The market. - */ - @java.lang.Override - public java.lang.String getMarket() { - java.lang.Object ref = market_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - market_ = s; - return s; - } - } - /** - *
-     * The target market for the liquidity provision orders
-     * 
- * - * string market = 1 [json_name = "market"]; - * @return The bytes for market. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMarketBytes() { - java.lang.Object ref = market_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - market_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTY_FIELD_NUMBER = 2; - private volatile java.lang.Object party_; - /** - *
-     * The party which submitted the liquidity provision orders
-     * 
- * - * string party = 2 [json_name = "party"]; - * @return The party. - */ - @java.lang.Override - public java.lang.String getParty() { - java.lang.Object ref = party_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - party_ = s; - return s; - } - } - /** - *
-     * The party which submitted the liquidity provision orders
-     * 
- * - * string party = 2 [json_name = "party"]; - * @return The bytes for party. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPartyBytes() { - java.lang.Object ref = party_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - party_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMarketBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, market_); - } - if (!getPartyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, party_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMarketBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, market_); - } - if (!getPartyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, party_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest other = (io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest) obj; - - if (!getMarket() - .equals(other.getMarket())) return false; - if (!getParty() - .equals(other.getParty())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MARKET_FIELD_NUMBER; - hash = (53 * hash) + getMarket().hashCode(); - hash = (37 * hash) + PARTY_FIELD_NUMBER; - hash = (53 * hash) + getParty().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A message requesting for the list of liquidity provision orders for markets
-     * One of the two filters is required (or both)
-     * 
- * - * Protobuf type {@code api.v1.LiquidityProvisionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.LiquidityProvisionsRequest) - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.class, io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - market_ = ""; - - party_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest build() { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest result = new io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest(this); - result.market_ = market_; - result.party_ = party_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.getDefaultInstance()) return this; - if (!other.getMarket().isEmpty()) { - market_ = other.market_; - onChanged(); - } - if (!other.getParty().isEmpty()) { - party_ = other.party_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object market_ = ""; - /** - *
-       * The target market for the liquidity provision orders
-       * 
- * - * string market = 1 [json_name = "market"]; - * @return The market. - */ - public java.lang.String getMarket() { - java.lang.Object ref = market_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - market_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The target market for the liquidity provision orders
-       * 
- * - * string market = 1 [json_name = "market"]; - * @return The bytes for market. - */ - public com.google.protobuf.ByteString - getMarketBytes() { - java.lang.Object ref = market_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - market_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The target market for the liquidity provision orders
-       * 
- * - * string market = 1 [json_name = "market"]; - * @param value The market to set. - * @return This builder for chaining. - */ - public Builder setMarket( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - market_ = value; - onChanged(); - return this; - } - /** - *
-       * The target market for the liquidity provision orders
-       * 
- * - * string market = 1 [json_name = "market"]; - * @return This builder for chaining. - */ - public Builder clearMarket() { - - market_ = getDefaultInstance().getMarket(); - onChanged(); - return this; - } - /** - *
-       * The target market for the liquidity provision orders
-       * 
- * - * string market = 1 [json_name = "market"]; - * @param value The bytes for market to set. - * @return This builder for chaining. - */ - public Builder setMarketBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - market_ = value; - onChanged(); - return this; - } - - private java.lang.Object party_ = ""; - /** - *
-       * The party which submitted the liquidity provision orders
-       * 
- * - * string party = 2 [json_name = "party"]; - * @return The party. - */ - public java.lang.String getParty() { - java.lang.Object ref = party_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - party_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The party which submitted the liquidity provision orders
-       * 
- * - * string party = 2 [json_name = "party"]; - * @return The bytes for party. - */ - public com.google.protobuf.ByteString - getPartyBytes() { - java.lang.Object ref = party_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - party_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The party which submitted the liquidity provision orders
-       * 
- * - * string party = 2 [json_name = "party"]; - * @param value The party to set. - * @return This builder for chaining. - */ - public Builder setParty( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - party_ = value; - onChanged(); - return this; - } - /** - *
-       * The party which submitted the liquidity provision orders
-       * 
- * - * string party = 2 [json_name = "party"]; - * @return This builder for chaining. - */ - public Builder clearParty() { - - party_ = getDefaultInstance().getParty(); - onChanged(); - return this; - } - /** - *
-       * The party which submitted the liquidity provision orders
-       * 
- * - * string party = 2 [json_name = "party"]; - * @param value The bytes for party to set. - * @return This builder for chaining. - */ - public Builder setPartyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - party_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.LiquidityProvisionsRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsRequest) - private static final io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiquidityProvisionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityProvisionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiquidityProvisionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.LiquidityProvisionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - java.util.List - getLiquidityProvisionsList(); - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - io.vegaprotocol.vega.Vega.LiquidityProvision getLiquidityProvisions(int index); - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - int getLiquidityProvisionsCount(); - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - java.util.List - getLiquidityProvisionsOrBuilderList(); - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder getLiquidityProvisionsOrBuilder( - int index); - } - /** - *
-   * A response containing all of the Vega liquidity provision orders
-   * 
- * - * Protobuf type {@code api.v1.LiquidityProvisionsResponse} - */ - public static final class LiquidityProvisionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.LiquidityProvisionsResponse) - LiquidityProvisionsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiquidityProvisionsResponse.newBuilder() to construct. - private LiquidityProvisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiquidityProvisionsResponse() { - liquidityProvisions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiquidityProvisionsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiquidityProvisionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - liquidityProvisions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - liquidityProvisions_.add( - input.readMessage(io.vegaprotocol.vega.Vega.LiquidityProvision.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - liquidityProvisions_ = java.util.Collections.unmodifiableList(liquidityProvisions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.class, io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.Builder.class); - } - - public static final int LIQUIDITY_PROVISIONS_FIELD_NUMBER = 1; - private java.util.List liquidityProvisions_; - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - @java.lang.Override - public java.util.List getLiquidityProvisionsList() { - return liquidityProvisions_; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - @java.lang.Override - public java.util.List - getLiquidityProvisionsOrBuilderList() { - return liquidityProvisions_; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - @java.lang.Override - public int getLiquidityProvisionsCount() { - return liquidityProvisions_.size(); - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvision getLiquidityProvisions(int index) { - return liquidityProvisions_.get(index); - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder getLiquidityProvisionsOrBuilder( - int index) { - return liquidityProvisions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < liquidityProvisions_.size(); i++) { - output.writeMessage(1, liquidityProvisions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < liquidityProvisions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, liquidityProvisions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse other = (io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse) obj; - - if (!getLiquidityProvisionsList() - .equals(other.getLiquidityProvisionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLiquidityProvisionsCount() > 0) { - hash = (37 * hash) + LIQUIDITY_PROVISIONS_FIELD_NUMBER; - hash = (53 * hash) + getLiquidityProvisionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A response containing all of the Vega liquidity provision orders
-     * 
- * - * Protobuf type {@code api.v1.LiquidityProvisionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.LiquidityProvisionsResponse) - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.class, io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLiquidityProvisionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (liquidityProvisionsBuilder_ == null) { - liquidityProvisions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - liquidityProvisionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LiquidityProvisionsResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse build() { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse result = new io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse(this); - int from_bitField0_ = bitField0_; - if (liquidityProvisionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - liquidityProvisions_ = java.util.Collections.unmodifiableList(liquidityProvisions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.liquidityProvisions_ = liquidityProvisions_; - } else { - result.liquidityProvisions_ = liquidityProvisionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.getDefaultInstance()) return this; - if (liquidityProvisionsBuilder_ == null) { - if (!other.liquidityProvisions_.isEmpty()) { - if (liquidityProvisions_.isEmpty()) { - liquidityProvisions_ = other.liquidityProvisions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.addAll(other.liquidityProvisions_); - } - onChanged(); - } - } else { - if (!other.liquidityProvisions_.isEmpty()) { - if (liquidityProvisionsBuilder_.isEmpty()) { - liquidityProvisionsBuilder_.dispose(); - liquidityProvisionsBuilder_ = null; - liquidityProvisions_ = other.liquidityProvisions_; - bitField0_ = (bitField0_ & ~0x00000001); - liquidityProvisionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLiquidityProvisionsFieldBuilder() : null; - } else { - liquidityProvisionsBuilder_.addAllMessages(other.liquidityProvisions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List liquidityProvisions_ = - java.util.Collections.emptyList(); - private void ensureLiquidityProvisionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - liquidityProvisions_ = new java.util.ArrayList(liquidityProvisions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProvision, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder, io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder> liquidityProvisionsBuilder_; - - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public java.util.List getLiquidityProvisionsList() { - if (liquidityProvisionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(liquidityProvisions_); - } else { - return liquidityProvisionsBuilder_.getMessageList(); - } - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public int getLiquidityProvisionsCount() { - if (liquidityProvisionsBuilder_ == null) { - return liquidityProvisions_.size(); - } else { - return liquidityProvisionsBuilder_.getCount(); - } - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityProvision getLiquidityProvisions(int index) { - if (liquidityProvisionsBuilder_ == null) { - return liquidityProvisions_.get(index); - } else { - return liquidityProvisionsBuilder_.getMessage(index); - } - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder setLiquidityProvisions( - int index, io.vegaprotocol.vega.Vega.LiquidityProvision value) { - if (liquidityProvisionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.set(index, value); - onChanged(); - } else { - liquidityProvisionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder setLiquidityProvisions( - int index, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder builderForValue) { - if (liquidityProvisionsBuilder_ == null) { - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.set(index, builderForValue.build()); - onChanged(); - } else { - liquidityProvisionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder addLiquidityProvisions(io.vegaprotocol.vega.Vega.LiquidityProvision value) { - if (liquidityProvisionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.add(value); - onChanged(); - } else { - liquidityProvisionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder addLiquidityProvisions( - int index, io.vegaprotocol.vega.Vega.LiquidityProvision value) { - if (liquidityProvisionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.add(index, value); - onChanged(); - } else { - liquidityProvisionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder addLiquidityProvisions( - io.vegaprotocol.vega.Vega.LiquidityProvision.Builder builderForValue) { - if (liquidityProvisionsBuilder_ == null) { - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.add(builderForValue.build()); - onChanged(); - } else { - liquidityProvisionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder addLiquidityProvisions( - int index, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder builderForValue) { - if (liquidityProvisionsBuilder_ == null) { - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.add(index, builderForValue.build()); - onChanged(); - } else { - liquidityProvisionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder addAllLiquidityProvisions( - java.lang.Iterable values) { - if (liquidityProvisionsBuilder_ == null) { - ensureLiquidityProvisionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, liquidityProvisions_); - onChanged(); - } else { - liquidityProvisionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder clearLiquidityProvisions() { - if (liquidityProvisionsBuilder_ == null) { - liquidityProvisions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - liquidityProvisionsBuilder_.clear(); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public Builder removeLiquidityProvisions(int index) { - if (liquidityProvisionsBuilder_ == null) { - ensureLiquidityProvisionsIsMutable(); - liquidityProvisions_.remove(index); - onChanged(); - } else { - liquidityProvisionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityProvision.Builder getLiquidityProvisionsBuilder( - int index) { - return getLiquidityProvisionsFieldBuilder().getBuilder(index); - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder getLiquidityProvisionsOrBuilder( - int index) { - if (liquidityProvisionsBuilder_ == null) { - return liquidityProvisions_.get(index); } else { - return liquidityProvisionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public java.util.List - getLiquidityProvisionsOrBuilderList() { - if (liquidityProvisionsBuilder_ != null) { - return liquidityProvisionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(liquidityProvisions_); - } - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityProvision.Builder addLiquidityProvisionsBuilder() { - return getLiquidityProvisionsFieldBuilder().addBuilder( - io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance()); - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public io.vegaprotocol.vega.Vega.LiquidityProvision.Builder addLiquidityProvisionsBuilder( - int index) { - return getLiquidityProvisionsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.Vega.LiquidityProvision.getDefaultInstance()); - } - /** - * repeated .vega.LiquidityProvision liquidity_provisions = 1 [json_name = "liquidityProvisions"]; - */ - public java.util.List - getLiquidityProvisionsBuilderList() { - return getLiquidityProvisionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProvision, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder, io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder> - getLiquidityProvisionsFieldBuilder() { - if (liquidityProvisionsBuilder_ == null) { - liquidityProvisionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.Vega.LiquidityProvision, io.vegaprotocol.vega.Vega.LiquidityProvision.Builder, io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder>( - liquidityProvisions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - liquidityProvisions_ = null; - } - return liquidityProvisionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.LiquidityProvisionsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsResponse) - private static final io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiquidityProvisionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiquidityProvisionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OracleSpecRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleSpecRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * A request to get a specific oracle spec by identifier
-   * 
- * - * Protobuf type {@code api.v1.OracleSpecRequest} - */ - public static final class OracleSpecRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleSpecRequest) - OracleSpecRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleSpecRequest.newBuilder() to construct. - private OracleSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleSpecRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleSpecRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OracleSpecRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecRequest.class, io.vegaprotocol.vega.api.Trading.OracleSpecRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleSpecRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OracleSpecRequest other = (io.vegaprotocol.vega.api.Trading.OracleSpecRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleSpecRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to get a specific oracle spec by identifier
-     * 
- * - * Protobuf type {@code api.v1.OracleSpecRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleSpecRequest) - io.vegaprotocol.vega.api.Trading.OracleSpecRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecRequest.class, io.vegaprotocol.vega.api.Trading.OracleSpecRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OracleSpecRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleSpecRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecRequest build() { - io.vegaprotocol.vega.api.Trading.OracleSpecRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleSpecRequest result = new io.vegaprotocol.vega.api.Trading.OracleSpecRequest(this); - result.id_ = id_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleSpecRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleSpecRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleSpecRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleSpecRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleSpecRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleSpecRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * The id to get the oracle spec for
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The id to get the oracle spec for
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The id to get the oracle spec for
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The id to get the oracle spec for
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * The id to get the oracle spec for
-       * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OracleSpecRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecRequest) - private static final io.vegaprotocol.vega.api.Trading.OracleSpecRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleSpecRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OracleSpecRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSpecRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleSpecRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OracleSpecResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleSpecResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return Whether the oracleSpec field is set. - */ - boolean hasOracleSpec(); - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return The oracleSpec. - */ - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpec(); - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecOrBuilder(); - } - /** - *
-   * A response for a oracle spec
-   * 
- * - * Protobuf type {@code api.v1.OracleSpecResponse} - */ - public static final class OracleSpecResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleSpecResponse) - OracleSpecResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleSpecResponse.newBuilder() to construct. - private OracleSpecResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleSpecResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleSpecResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OracleSpecResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder subBuilder = null; - if (oracleSpec_ != null) { - subBuilder = oracleSpec_.toBuilder(); - } - oracleSpec_ = input.readMessage(io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(oracleSpec_); - oracleSpec_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecResponse.class, io.vegaprotocol.vega.api.Trading.OracleSpecResponse.Builder.class); - } - - public static final int ORACLE_SPEC_FIELD_NUMBER = 1; - private io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec oracleSpec_; - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return Whether the oracleSpec field is set. - */ - @java.lang.Override - public boolean hasOracleSpec() { - return oracleSpec_ != null; - } - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return The oracleSpec. - */ - @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpec() { - return oracleSpec_ == null ? io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.getDefaultInstance() : oracleSpec_; - } - /** - *
-     * The withdrawal matching the identifier from the request
-     * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecOrBuilder() { - return getOracleSpec(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oracleSpec_ != null) { - output.writeMessage(1, getOracleSpec()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oracleSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOracleSpec()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleSpecResponse)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OracleSpecResponse other = (io.vegaprotocol.vega.api.Trading.OracleSpecResponse) obj; - - if (hasOracleSpec() != other.hasOracleSpec()) return false; - if (hasOracleSpec()) { - if (!getOracleSpec() - .equals(other.getOracleSpec())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOracleSpec()) { - hash = (37 * hash) + ORACLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getOracleSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleSpecResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static final int CURRENT_TIME_FIELD_NUMBER = 5; + private volatile java.lang.Object currentTime_; /** *
-     * A response for a oracle spec
+     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
      * 
* - * Protobuf type {@code api.v1.OracleSpecResponse} + * string current_time = 5 [json_name = "currentTime"]; + * @return The currentTime. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleSpecResponse) - io.vegaprotocol.vega.api.Trading.OracleSpecResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecResponse.class, io.vegaprotocol.vega.api.Trading.OracleSpecResponse.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OracleSpecResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (oracleSpecBuilder_ == null) { - oracleSpec_ = null; - } else { - oracleSpec_ = null; - oracleSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleSpecResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecResponse build() { - io.vegaprotocol.vega.api.Trading.OracleSpecResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleSpecResponse result = new io.vegaprotocol.vega.api.Trading.OracleSpecResponse(this); - if (oracleSpecBuilder_ == null) { - result.oracleSpec_ = oracleSpec_; - } else { - result.oracleSpec_ = oracleSpecBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleSpecResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleSpecResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleSpecResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleSpecResponse.getDefaultInstance()) return this; - if (other.hasOracleSpec()) { - mergeOracleSpec(other.getOracleSpec()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleSpecResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleSpecResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec oracleSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder> oracleSpecBuilder_; - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return Whether the oracleSpec field is set. - */ - public boolean hasOracleSpec() { - return oracleSpecBuilder_ != null || oracleSpec_ != null; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - * @return The oracleSpec. - */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpec() { - if (oracleSpecBuilder_ == null) { - return oracleSpec_ == null ? io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.getDefaultInstance() : oracleSpec_; - } else { - return oracleSpecBuilder_.getMessage(); - } - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public Builder setOracleSpec(io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec value) { - if (oracleSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oracleSpec_ = value; - onChanged(); - } else { - oracleSpecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public Builder setOracleSpec( - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder builderForValue) { - if (oracleSpecBuilder_ == null) { - oracleSpec_ = builderForValue.build(); - onChanged(); - } else { - oracleSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public Builder mergeOracleSpec(io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec value) { - if (oracleSpecBuilder_ == null) { - if (oracleSpec_ != null) { - oracleSpec_ = - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.newBuilder(oracleSpec_).mergeFrom(value).buildPartial(); - } else { - oracleSpec_ = value; - } - onChanged(); - } else { - oracleSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public Builder clearOracleSpec() { - if (oracleSpecBuilder_ == null) { - oracleSpec_ = null; - onChanged(); - } else { - oracleSpec_ = null; - oracleSpecBuilder_ = null; - } - - return this; - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder getOracleSpecBuilder() { - - onChanged(); - return getOracleSpecFieldBuilder().getBuilder(); - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecOrBuilder() { - if (oracleSpecBuilder_ != null) { - return oracleSpecBuilder_.getMessageOrBuilder(); - } else { - return oracleSpec_ == null ? - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.getDefaultInstance() : oracleSpec_; - } - } - /** - *
-       * The withdrawal matching the identifier from the request
-       * 
- * - * .oracles.v1.OracleSpec oracle_spec = 1 [json_name = "oracleSpec"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder> - getOracleSpecFieldBuilder() { - if (oracleSpecBuilder_ == null) { - oracleSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder>( - getOracleSpec(), - getParentForChildren(), - isClean()); - oracleSpec_ = null; - } - return oracleSpecBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OracleSpecResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecResponse) - private static final io.vegaprotocol.vega.api.Trading.OracleSpecResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleSpecResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OracleSpecResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSpecResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleSpecResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OracleSpecsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleSpecsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * A request to get a specific oracle spec by identifier
-   * 
- * - * Protobuf type {@code api.v1.OracleSpecsRequest} - */ - public static final class OracleSpecsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleSpecsRequest) - OracleSpecsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleSpecsRequest.newBuilder() to construct. - private OracleSpecsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleSpecsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleSpecsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OracleSpecsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsRequest_descriptor; + /** + *
+     * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @return The bytes for currentTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int VEGA_TIME_FIELD_NUMBER = 6; + private volatile java.lang.Object vegaTime_; + /** + *
+     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The vegaTime. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.class, io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.Builder.class); + public java.lang.String getVegaTime() { + java.lang.Object ref = vegaTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaTime_ = s; + return s; + } } - - private byte memoizedIsInitialized = -1; + /** + *
+     * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+     * 
+ * + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The bytes for vegaTime. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public com.google.protobuf.ByteString + getVegaTimeBytes() { + java.lang.Object ref = vegaTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; + public static final int STATUS_FIELD_NUMBER = 7; + private int status_; + /** + *
+     * Status of the connection to the Vega blockchain
+     * - See [`ChainStatus`](#vega.ChainStatus)
+     * 
+ * + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * Status of the connection to the Vega blockchain
+     * - See [`ChainStatus`](#vega.ChainStatus)
+     * 
+ * + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override public io.vegaprotocol.vega.Vega.ChainStatus getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.ChainStatus result = io.vegaprotocol.vega.Vega.ChainStatus.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.ChainStatus.UNRECOGNIZED : result; } + public static final int TX_PER_BLOCK_FIELD_NUMBER = 8; + private long txPerBlock_; + /** + *
+     * Transactions per block
+     * 
+ * + * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * @return The txPerBlock. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); + public long getTxPerBlock() { + return txPerBlock_; } + public static final int AVERAGE_TX_BYTES_FIELD_NUMBER = 9; + private long averageTxBytes_; + /** + *
+     * Average transaction size in bytes
+     * 
+ * + * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * @return The averageTxBytes. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + public long getAverageTxBytes() { + return averageTxBytes_; } + public static final int AVERAGE_ORDERS_PER_BLOCK_FIELD_NUMBER = 10; + private long averageOrdersPerBlock_; + /** + *
+     * Average orders per block
+     * 
+ * + * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * @return The averageOrdersPerBlock. + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleSpecsRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest other = (io.vegaprotocol.vega.api.Trading.OracleSpecsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + public long getAverageOrdersPerBlock() { + return averageOrdersPerBlock_; } + public static final int TRADES_PER_SECOND_FIELD_NUMBER = 11; + private long tradesPerSecond_; + /** + *
+     * Trades emitted per second
+     * 
+ * + * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + * @return The tradesPerSecond. + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + public long getTradesPerSecond() { + return tradesPerSecond_; } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + public static final int ORDERS_PER_SECOND_FIELD_NUMBER = 12; + private long ordersPerSecond_; + /** + *
+     * Orders processed per second
+     * 
+ * + * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + * @return The ordersPerSecond. + */ + @java.lang.Override + public long getOrdersPerSecond() { + return ordersPerSecond_; } + public static final int TOTAL_MARKETS_FIELD_NUMBER = 13; + private long totalMarkets_; + /** + *
+     * Total markets on this Vega network
+     * 
+ * + * uint64 total_markets = 13 [json_name = "totalMarkets"]; + * @return The totalMarkets. + */ @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleSpecsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public long getTotalMarkets() { + return totalMarkets_; } + + public static final int TOTAL_AMEND_ORDER_FIELD_NUMBER = 16; + private long totalAmendOrder_; + /** + *
+     * Total number of order amendments since genesis (on all markets)
+     * 
+ * + * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + * @return The totalAmendOrder. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public long getTotalAmendOrder() { + return totalAmendOrder_; } + public static final int TOTAL_CANCEL_ORDER_FIELD_NUMBER = 17; + private long totalCancelOrder_; + /** + *
+     * Total number of order cancellations since genesis (on all markets)
+     * 
+ * + * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + * @return The totalCancelOrder. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public long getTotalCancelOrder() { + return totalCancelOrder_; } + + public static final int TOTAL_CREATE_ORDER_FIELD_NUMBER = 18; + private long totalCreateOrder_; /** *
-     * A request to get a specific oracle spec by identifier
+     * Total number of order submissions since genesis (on all markets)
      * 
* - * Protobuf type {@code api.v1.OracleSpecsRequest} + * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + * @return The totalCreateOrder. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleSpecsRequest) - io.vegaprotocol.vega.api.Trading.OracleSpecsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.class, io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsRequest build() { - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest result = new io.vegaprotocol.vega.api.Trading.OracleSpecsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleSpecsRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleSpecsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleSpecsRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleSpecsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OracleSpecsRequest) + @java.lang.Override + public long getTotalCreateOrder() { + return totalCreateOrder_; } - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecsRequest) - private static final io.vegaprotocol.vega.api.Trading.OracleSpecsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleSpecsRequest(); + public static final int TOTAL_ORDERS_FIELD_NUMBER = 19; + private long totalOrders_; + /** + *
+     * Total number of orders processed since genesis (on all markets)
+     * 
+ * + * uint64 total_orders = 19 [json_name = "totalOrders"]; + * @return The totalOrders. + */ + @java.lang.Override + public long getTotalOrders() { + return totalOrders_; } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; + public static final int TOTAL_TRADES_FIELD_NUMBER = 20; + private long totalTrades_; + /** + *
+     * Total number of trades emitted since genesis (on all markets)
+     * 
+ * + * uint64 total_trades = 20 [json_name = "totalTrades"]; + * @return The totalTrades. + */ + @java.lang.Override + public long getTotalTrades() { + return totalTrades_; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSpecsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleSpecsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + public static final int ORDER_SUBSCRIPTIONS_FIELD_NUMBER = 21; + private int orderSubscriptions_; + /** + *
+     * Current number of stream subscribers to order data
+     * 
+ * + * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + * @return The orderSubscriptions. + */ + @java.lang.Override + public int getOrderSubscriptions() { + return orderSubscriptions_; } + public static final int TRADE_SUBSCRIPTIONS_FIELD_NUMBER = 22; + private int tradeSubscriptions_; + /** + *
+     * Current number of stream subscribers to trade data
+     * 
+ * + * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + * @return The tradeSubscriptions. + */ @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public int getTradeSubscriptions() { + return tradeSubscriptions_; } + public static final int CANDLE_SUBSCRIPTIONS_FIELD_NUMBER = 23; + private int candleSubscriptions_; + /** + *
+     * Current number of stream subscribers to candle-stick data
+     * 
+ * + * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + * @return The candleSubscriptions. + */ @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public int getCandleSubscriptions() { + return candleSubscriptions_; } - } - - public interface OracleSpecsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleSpecsResponse) - com.google.protobuf.MessageOrBuilder { - + public static final int MARKET_DEPTH_SUBSCRIPTIONS_FIELD_NUMBER = 24; + private int marketDepthSubscriptions_; /** *
-     * The list of oracle specs
+     * Current number of stream subscribers to market depth data
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + * @return The marketDepthSubscriptions. */ - java.util.List - getOracleSpecsList(); + @java.lang.Override + public int getMarketDepthSubscriptions() { + return marketDepthSubscriptions_; + } + + public static final int POSITIONS_SUBSCRIPTIONS_FIELD_NUMBER = 25; + private int positionsSubscriptions_; /** *
-     * The list of oracle specs
+     * Current number of stream subscribers to positions data
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + * @return The positionsSubscriptions. */ - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpecs(int index); + @java.lang.Override + public int getPositionsSubscriptions() { + return positionsSubscriptions_; + } + + public static final int ACCOUNT_SUBSCRIPTIONS_FIELD_NUMBER = 26; + private int accountSubscriptions_; /** *
-     * The list of oracle specs
+     * Current number of stream subscribers to account data
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + * @return The accountSubscriptions. */ - int getOracleSpecsCount(); + @java.lang.Override + public int getAccountSubscriptions() { + return accountSubscriptions_; + } + + public static final int MARKET_DATA_SUBSCRIPTIONS_FIELD_NUMBER = 27; + private int marketDataSubscriptions_; /** *
-     * The list of oracle specs
+     * Current number of stream subscribers to market data
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + * @return The marketDataSubscriptions. */ - java.util.List - getOracleSpecsOrBuilderList(); + @java.lang.Override + public int getMarketDataSubscriptions() { + return marketDataSubscriptions_; + } + + public static final int APP_VERSION_HASH_FIELD_NUMBER = 28; + private volatile java.lang.Object appVersionHash_; /** *
-     * The list of oracle specs
+     * The version hash of the Vega node software
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The appVersionHash. */ - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecsOrBuilder( - int index); - } - /** - *
-   * The response for a list of withdrawals
-   * 
- * - * Protobuf type {@code api.v1.OracleSpecsResponse} - */ - public static final class OracleSpecsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleSpecsResponse) - OracleSpecsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleSpecsResponse.newBuilder() to construct. - private OracleSpecsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleSpecsResponse() { - oracleSpecs_ = java.util.Collections.emptyList(); + @java.lang.Override + public java.lang.String getAppVersionHash() { + java.lang.Object ref = appVersionHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersionHash_ = s; + return s; + } } - + /** + *
+     * The version hash of the Vega node software
+     * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The bytes for appVersionHash. + */ @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleSpecsResponse(); + public com.google.protobuf.ByteString + getAppVersionHashBytes() { + java.lang.Object ref = appVersionHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersionHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int APP_VERSION_FIELD_NUMBER = 29; + private volatile java.lang.Object appVersion_; + /** + *
+     * The version of the Vega node software
+     * 
+ * + * string app_version = 29 [json_name = "appVersion"]; + * @return The appVersion. + */ @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } } - private OracleSpecsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + *
+     * The version of the Vega node software
+     * 
+ * + * string app_version = 29 [json_name = "appVersion"]; + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleSpecs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - oracleSpecs_.add( - input.readMessage(io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - oracleSpecs_ = java.util.Collections.unmodifiableList(oracleSpecs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + } + + public static final int CHAIN_VERSION_FIELD_NUMBER = 30; + private volatile java.lang.Object chainVersion_; + /** + *
+     * The version of the underlying Vega blockchain
+     * 
+ * + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The chainVersion. + */ + @java.lang.Override + public java.lang.String getChainVersion() { + java.lang.Object ref = chainVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainVersion_ = s; + return s; } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsResponse_descriptor; + /** + *
+     * The version of the underlying Vega blockchain
+     * 
+ * + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The bytes for chainVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getChainVersionBytes() { + java.lang.Object ref = chainVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int BLOCK_DURATION_FIELD_NUMBER = 31; + private long blockDuration_; + /** + *
+     * Current block duration, in nanoseconds
+     * 
+ * + * uint64 block_duration = 31 [json_name = "blockDuration"]; + * @return The blockDuration. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.class, io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.Builder.class); + public long getBlockDuration() { + return blockDuration_; } - public static final int ORACLE_SPECS_FIELD_NUMBER = 1; - private java.util.List oracleSpecs_; + public static final int UPTIME_FIELD_NUMBER = 32; + private volatile java.lang.Object uptime_; /** *
-     * The list of oracle specs
+     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string uptime = 32 [json_name = "uptime"]; + * @return The uptime. */ @java.lang.Override - public java.util.List getOracleSpecsList() { - return oracleSpecs_; + public java.lang.String getUptime() { + java.lang.Object ref = uptime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uptime_ = s; + return s; + } } /** *
-     * The list of oracle specs
+     * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string uptime = 32 [json_name = "uptime"]; + * @return The bytes for uptime. */ @java.lang.Override - public java.util.List - getOracleSpecsOrBuilderList() { - return oracleSpecs_; + public com.google.protobuf.ByteString + getUptimeBytes() { + java.lang.Object ref = uptime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uptime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int CHAIN_ID_FIELD_NUMBER = 33; + private volatile java.lang.Object chainId_; /** *
-     * The list of oracle specs
+     * Unique identifier for the underlying Vega blockchain
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string chain_id = 33 [json_name = "chainId"]; + * @return The chainId. */ @java.lang.Override - public int getOracleSpecsCount() { - return oracleSpecs_.size(); + public java.lang.String getChainId() { + java.lang.Object ref = chainId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainId_ = s; + return s; + } } /** *
-     * The list of oracle specs
+     * Unique identifier for the underlying Vega blockchain
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string chain_id = 33 [json_name = "chainId"]; + * @return The bytes for chainId. */ @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpecs(int index) { - return oracleSpecs_.get(index); + public com.google.protobuf.ByteString + getChainIdBytes() { + java.lang.Object ref = chainId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int MARKET_DEPTH_UPDATES_SUBSCRIPTIONS_FIELD_NUMBER = 34; + private int marketDepthUpdatesSubscriptions_; /** *
-     * The list of oracle specs
+     * Current number of stream subscribers to market depth update data
      * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + * @return The marketDepthUpdatesSubscriptions. */ @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecsOrBuilder( - int index) { - return oracleSpecs_.get(index); + public int getMarketDepthUpdatesSubscriptions() { + return marketDepthUpdatesSubscriptions_; } private byte memoizedIsInitialized = -1; @@ -108538,8 +8492,101 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < oracleSpecs_.size(); i++) { - output.writeMessage(1, oracleSpecs_.get(i)); + if (blockHeight_ != 0L) { + output.writeUInt64(1, blockHeight_); + } + if (backlogLength_ != 0L) { + output.writeUInt64(2, backlogLength_); + } + if (totalPeers_ != 0L) { + output.writeUInt64(3, totalPeers_); + } + if (!getGenesisTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, genesisTime_); + } + if (!getCurrentTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, currentTime_); + } + if (!getVegaTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vegaTime_); + } + if (status_ != io.vegaprotocol.vega.Vega.ChainStatus.CHAIN_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(7, status_); + } + if (txPerBlock_ != 0L) { + output.writeUInt64(8, txPerBlock_); + } + if (averageTxBytes_ != 0L) { + output.writeUInt64(9, averageTxBytes_); + } + if (averageOrdersPerBlock_ != 0L) { + output.writeUInt64(10, averageOrdersPerBlock_); + } + if (tradesPerSecond_ != 0L) { + output.writeUInt64(11, tradesPerSecond_); + } + if (ordersPerSecond_ != 0L) { + output.writeUInt64(12, ordersPerSecond_); + } + if (totalMarkets_ != 0L) { + output.writeUInt64(13, totalMarkets_); + } + if (totalAmendOrder_ != 0L) { + output.writeUInt64(16, totalAmendOrder_); + } + if (totalCancelOrder_ != 0L) { + output.writeUInt64(17, totalCancelOrder_); + } + if (totalCreateOrder_ != 0L) { + output.writeUInt64(18, totalCreateOrder_); + } + if (totalOrders_ != 0L) { + output.writeUInt64(19, totalOrders_); + } + if (totalTrades_ != 0L) { + output.writeUInt64(20, totalTrades_); + } + if (orderSubscriptions_ != 0) { + output.writeUInt32(21, orderSubscriptions_); + } + if (tradeSubscriptions_ != 0) { + output.writeUInt32(22, tradeSubscriptions_); + } + if (candleSubscriptions_ != 0) { + output.writeUInt32(23, candleSubscriptions_); + } + if (marketDepthSubscriptions_ != 0) { + output.writeUInt32(24, marketDepthSubscriptions_); + } + if (positionsSubscriptions_ != 0) { + output.writeUInt32(25, positionsSubscriptions_); + } + if (accountSubscriptions_ != 0) { + output.writeUInt32(26, accountSubscriptions_); + } + if (marketDataSubscriptions_ != 0) { + output.writeUInt32(27, marketDataSubscriptions_); + } + if (!getAppVersionHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, appVersionHash_); + } + if (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, appVersion_); + } + if (!getChainVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, chainVersion_); + } + if (blockDuration_ != 0L) { + output.writeUInt64(31, blockDuration_); + } + if (!getUptimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 32, uptime_); + } + if (!getChainIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 33, chainId_); + } + if (marketDepthUpdatesSubscriptions_ != 0) { + output.writeUInt32(34, marketDepthUpdatesSubscriptions_); } unknownFields.writeTo(output); } @@ -108550,9 +8597,125 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < oracleSpecs_.size(); i++) { + if (blockHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockHeight_); + } + if (backlogLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, backlogLength_); + } + if (totalPeers_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, totalPeers_); + } + if (!getGenesisTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, genesisTime_); + } + if (!getCurrentTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, currentTime_); + } + if (!getVegaTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vegaTime_); + } + if (status_ != io.vegaprotocol.vega.Vega.ChainStatus.CHAIN_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, status_); + } + if (txPerBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, txPerBlock_); + } + if (averageTxBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, averageTxBytes_); + } + if (averageOrdersPerBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, averageOrdersPerBlock_); + } + if (tradesPerSecond_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(11, tradesPerSecond_); + } + if (ordersPerSecond_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(12, ordersPerSecond_); + } + if (totalMarkets_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(13, totalMarkets_); + } + if (totalAmendOrder_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(16, totalAmendOrder_); + } + if (totalCancelOrder_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(17, totalCancelOrder_); + } + if (totalCreateOrder_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(18, totalCreateOrder_); + } + if (totalOrders_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(19, totalOrders_); + } + if (totalTrades_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(20, totalTrades_); + } + if (orderSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(21, orderSubscriptions_); + } + if (tradeSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(22, tradeSubscriptions_); + } + if (candleSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(23, candleSubscriptions_); + } + if (marketDepthSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(24, marketDepthSubscriptions_); + } + if (positionsSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(25, positionsSubscriptions_); + } + if (accountSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(26, accountSubscriptions_); + } + if (marketDataSubscriptions_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(27, marketDataSubscriptions_); + } + if (!getAppVersionHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, appVersionHash_); + } + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, appVersion_); + } + if (!getChainVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, chainVersion_); + } + if (blockDuration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(31, blockDuration_); + } + if (!getUptimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, uptime_); + } + if (!getChainIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, chainId_); + } + if (marketDepthUpdatesSubscriptions_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, oracleSpecs_.get(i)); + .computeUInt32Size(34, marketDepthUpdatesSubscriptions_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -108564,13 +8727,74 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleSpecsResponse)) { + if (!(obj instanceof io.vegaprotocol.vega.api.Trading.Statistics)) { return super.equals(obj); } - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse other = (io.vegaprotocol.vega.api.Trading.OracleSpecsResponse) obj; + io.vegaprotocol.vega.api.Trading.Statistics other = (io.vegaprotocol.vega.api.Trading.Statistics) obj; - if (!getOracleSpecsList() - .equals(other.getOracleSpecsList())) return false; + if (getBlockHeight() + != other.getBlockHeight()) return false; + if (getBacklogLength() + != other.getBacklogLength()) return false; + if (getTotalPeers() + != other.getTotalPeers()) return false; + if (!getGenesisTime() + .equals(other.getGenesisTime())) return false; + if (!getCurrentTime() + .equals(other.getCurrentTime())) return false; + if (!getVegaTime() + .equals(other.getVegaTime())) return false; + if (status_ != other.status_) return false; + if (getTxPerBlock() + != other.getTxPerBlock()) return false; + if (getAverageTxBytes() + != other.getAverageTxBytes()) return false; + if (getAverageOrdersPerBlock() + != other.getAverageOrdersPerBlock()) return false; + if (getTradesPerSecond() + != other.getTradesPerSecond()) return false; + if (getOrdersPerSecond() + != other.getOrdersPerSecond()) return false; + if (getTotalMarkets() + != other.getTotalMarkets()) return false; + if (getTotalAmendOrder() + != other.getTotalAmendOrder()) return false; + if (getTotalCancelOrder() + != other.getTotalCancelOrder()) return false; + if (getTotalCreateOrder() + != other.getTotalCreateOrder()) return false; + if (getTotalOrders() + != other.getTotalOrders()) return false; + if (getTotalTrades() + != other.getTotalTrades()) return false; + if (getOrderSubscriptions() + != other.getOrderSubscriptions()) return false; + if (getTradeSubscriptions() + != other.getTradeSubscriptions()) return false; + if (getCandleSubscriptions() + != other.getCandleSubscriptions()) return false; + if (getMarketDepthSubscriptions() + != other.getMarketDepthSubscriptions()) return false; + if (getPositionsSubscriptions() + != other.getPositionsSubscriptions()) return false; + if (getAccountSubscriptions() + != other.getAccountSubscriptions()) return false; + if (getMarketDataSubscriptions() + != other.getMarketDataSubscriptions()) return false; + if (!getAppVersionHash() + .equals(other.getAppVersionHash())) return false; + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (!getChainVersion() + .equals(other.getChainVersion())) return false; + if (getBlockDuration() + != other.getBlockDuration()) return false; + if (!getUptime() + .equals(other.getUptime())) return false; + if (!getChainId() + .equals(other.getChainId())) return false; + if (getMarketDepthUpdatesSubscriptions() + != other.getMarketDepthUpdatesSubscriptions()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -108582,78 +8806,153 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getOracleSpecsCount() > 0) { - hash = (37 * hash) + ORACLE_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getOracleSpecsList().hashCode(); - } + hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockHeight()); + hash = (37 * hash) + BACKLOG_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBacklogLength()); + hash = (37 * hash) + TOTAL_PEERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPeers()); + hash = (37 * hash) + GENESIS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getGenesisTime().hashCode(); + hash = (37 * hash) + CURRENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCurrentTime().hashCode(); + hash = (37 * hash) + VEGA_TIME_FIELD_NUMBER; + hash = (53 * hash) + getVegaTime().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + TX_PER_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTxPerBlock()); + hash = (37 * hash) + AVERAGE_TX_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAverageTxBytes()); + hash = (37 * hash) + AVERAGE_ORDERS_PER_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAverageOrdersPerBlock()); + hash = (37 * hash) + TRADES_PER_SECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTradesPerSecond()); + hash = (37 * hash) + ORDERS_PER_SECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrdersPerSecond()); + hash = (37 * hash) + TOTAL_MARKETS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalMarkets()); + hash = (37 * hash) + TOTAL_AMEND_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalAmendOrder()); + hash = (37 * hash) + TOTAL_CANCEL_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCancelOrder()); + hash = (37 * hash) + TOTAL_CREATE_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCreateOrder()); + hash = (37 * hash) + TOTAL_ORDERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalOrders()); + hash = (37 * hash) + TOTAL_TRADES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTrades()); + hash = (37 * hash) + ORDER_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOrderSubscriptions(); + hash = (37 * hash) + TRADE_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTradeSubscriptions(); + hash = (37 * hash) + CANDLE_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCandleSubscriptions(); + hash = (37 * hash) + MARKET_DEPTH_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMarketDepthSubscriptions(); + hash = (37 * hash) + POSITIONS_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPositionsSubscriptions(); + hash = (37 * hash) + ACCOUNT_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAccountSubscriptions(); + hash = (37 * hash) + MARKET_DATA_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMarketDataSubscriptions(); + hash = (37 * hash) + APP_VERSION_HASH_FIELD_NUMBER; + hash = (53 * hash) + getAppVersionHash().hashCode(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + CHAIN_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getChainVersion().hashCode(); + hash = (37 * hash) + BLOCK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockDuration()); + hash = (37 * hash) + UPTIME_FIELD_NUMBER; + hash = (53 * hash) + getUptime().hashCode(); + hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getChainId().hashCode(); + hash = (37 * hash) + MARKET_DEPTH_UPDATES_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMarketDepthUpdatesSubscriptions(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom(byte[] data) + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.api.Trading.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseDelimitedFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( + public static io.vegaprotocol.vega.api.Trading.Statistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -108666,7 +8965,7 @@ public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleSpecsResponse prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.Statistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -108683,29 +8982,29 @@ protected Builder newBuilderForType( } /** *
-     * The response for a list of withdrawals
+     * Vega domain specific statistics as reported by the node the caller is connected to
      * 
* - * Protobuf type {@code api.v1.OracleSpecsResponse} + * Protobuf type {@code api.v1.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleSpecsResponse) - io.vegaprotocol.vega.api.Trading.OracleSpecsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:api.v1.Statistics) + io.vegaprotocol.vega.api.Trading.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Statistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsResponse_fieldAccessorTable + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.class, io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.Builder.class); + io.vegaprotocol.vega.api.Trading.Statistics.class, io.vegaprotocol.vega.api.Trading.Statistics.Builder.class); } - // Construct using io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.newBuilder() + // Construct using io.vegaprotocol.vega.api.Trading.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -108718,35 +9017,92 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getOracleSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (oracleSpecsBuilder_ == null) { - oracleSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - oracleSpecsBuilder_.clear(); - } + blockHeight_ = 0L; + + backlogLength_ = 0L; + + totalPeers_ = 0L; + + genesisTime_ = ""; + + currentTime_ = ""; + + vegaTime_ = ""; + + status_ = 0; + + txPerBlock_ = 0L; + + averageTxBytes_ = 0L; + + averageOrdersPerBlock_ = 0L; + + tradesPerSecond_ = 0L; + + ordersPerSecond_ = 0L; + + totalMarkets_ = 0L; + + totalAmendOrder_ = 0L; + + totalCancelOrder_ = 0L; + + totalCreateOrder_ = 0L; + + totalOrders_ = 0L; + + totalTrades_ = 0L; + + orderSubscriptions_ = 0; + + tradeSubscriptions_ = 0; + + candleSubscriptions_ = 0; + + marketDepthSubscriptions_ = 0; + + positionsSubscriptions_ = 0; + + accountSubscriptions_ = 0; + + marketDataSubscriptions_ = 0; + + appVersionHash_ = ""; + + appVersion_ = ""; + + chainVersion_ = ""; + + blockDuration_ = 0L; + + uptime_ = ""; + + chainId_ = ""; + + marketDepthUpdatesSubscriptions_ = 0; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleSpecsResponse_descriptor; + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_Statistics_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.getDefaultInstance(); + public io.vegaprotocol.vega.api.Trading.Statistics getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.Statistics.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse build() { - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse result = buildPartial(); + public io.vegaprotocol.vega.api.Trading.Statistics build() { + io.vegaprotocol.vega.api.Trading.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -108754,18 +9110,40 @@ public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse build() { } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse result = new io.vegaprotocol.vega.api.Trading.OracleSpecsResponse(this); - int from_bitField0_ = bitField0_; - if (oracleSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - oracleSpecs_ = java.util.Collections.unmodifiableList(oracleSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oracleSpecs_ = oracleSpecs_; - } else { - result.oracleSpecs_ = oracleSpecsBuilder_.build(); - } + public io.vegaprotocol.vega.api.Trading.Statistics buildPartial() { + io.vegaprotocol.vega.api.Trading.Statistics result = new io.vegaprotocol.vega.api.Trading.Statistics(this); + result.blockHeight_ = blockHeight_; + result.backlogLength_ = backlogLength_; + result.totalPeers_ = totalPeers_; + result.genesisTime_ = genesisTime_; + result.currentTime_ = currentTime_; + result.vegaTime_ = vegaTime_; + result.status_ = status_; + result.txPerBlock_ = txPerBlock_; + result.averageTxBytes_ = averageTxBytes_; + result.averageOrdersPerBlock_ = averageOrdersPerBlock_; + result.tradesPerSecond_ = tradesPerSecond_; + result.ordersPerSecond_ = ordersPerSecond_; + result.totalMarkets_ = totalMarkets_; + result.totalAmendOrder_ = totalAmendOrder_; + result.totalCancelOrder_ = totalCancelOrder_; + result.totalCreateOrder_ = totalCreateOrder_; + result.totalOrders_ = totalOrders_; + result.totalTrades_ = totalTrades_; + result.orderSubscriptions_ = orderSubscriptions_; + result.tradeSubscriptions_ = tradeSubscriptions_; + result.candleSubscriptions_ = candleSubscriptions_; + result.marketDepthSubscriptions_ = marketDepthSubscriptions_; + result.positionsSubscriptions_ = positionsSubscriptions_; + result.accountSubscriptions_ = accountSubscriptions_; + result.marketDataSubscriptions_ = marketDataSubscriptions_; + result.appVersionHash_ = appVersionHash_; + result.appVersion_ = appVersion_; + result.chainVersion_ = chainVersion_; + result.blockDuration_ = blockDuration_; + result.uptime_ = uptime_; + result.chainId_ = chainId_; + result.marketDepthUpdatesSubscriptions_ = marketDepthUpdatesSubscriptions_; onBuilt(); return result; } @@ -108804,41 +9182,119 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleSpecsResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleSpecsResponse)other); + if (other instanceof io.vegaprotocol.vega.api.Trading.Statistics) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.Statistics)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleSpecsResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.getDefaultInstance()) return this; - if (oracleSpecsBuilder_ == null) { - if (!other.oracleSpecs_.isEmpty()) { - if (oracleSpecs_.isEmpty()) { - oracleSpecs_ = other.oracleSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOracleSpecsIsMutable(); - oracleSpecs_.addAll(other.oracleSpecs_); - } - onChanged(); - } - } else { - if (!other.oracleSpecs_.isEmpty()) { - if (oracleSpecsBuilder_.isEmpty()) { - oracleSpecsBuilder_.dispose(); - oracleSpecsBuilder_ = null; - oracleSpecs_ = other.oracleSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - oracleSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleSpecsFieldBuilder() : null; - } else { - oracleSpecsBuilder_.addAllMessages(other.oracleSpecs_); - } - } + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.Statistics other) { + if (other == io.vegaprotocol.vega.api.Trading.Statistics.getDefaultInstance()) return this; + if (other.getBlockHeight() != 0L) { + setBlockHeight(other.getBlockHeight()); + } + if (other.getBacklogLength() != 0L) { + setBacklogLength(other.getBacklogLength()); + } + if (other.getTotalPeers() != 0L) { + setTotalPeers(other.getTotalPeers()); + } + if (!other.getGenesisTime().isEmpty()) { + genesisTime_ = other.genesisTime_; + onChanged(); + } + if (!other.getCurrentTime().isEmpty()) { + currentTime_ = other.currentTime_; + onChanged(); + } + if (!other.getVegaTime().isEmpty()) { + vegaTime_ = other.vegaTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getTxPerBlock() != 0L) { + setTxPerBlock(other.getTxPerBlock()); + } + if (other.getAverageTxBytes() != 0L) { + setAverageTxBytes(other.getAverageTxBytes()); + } + if (other.getAverageOrdersPerBlock() != 0L) { + setAverageOrdersPerBlock(other.getAverageOrdersPerBlock()); + } + if (other.getTradesPerSecond() != 0L) { + setTradesPerSecond(other.getTradesPerSecond()); + } + if (other.getOrdersPerSecond() != 0L) { + setOrdersPerSecond(other.getOrdersPerSecond()); + } + if (other.getTotalMarkets() != 0L) { + setTotalMarkets(other.getTotalMarkets()); + } + if (other.getTotalAmendOrder() != 0L) { + setTotalAmendOrder(other.getTotalAmendOrder()); + } + if (other.getTotalCancelOrder() != 0L) { + setTotalCancelOrder(other.getTotalCancelOrder()); + } + if (other.getTotalCreateOrder() != 0L) { + setTotalCreateOrder(other.getTotalCreateOrder()); + } + if (other.getTotalOrders() != 0L) { + setTotalOrders(other.getTotalOrders()); + } + if (other.getTotalTrades() != 0L) { + setTotalTrades(other.getTotalTrades()); + } + if (other.getOrderSubscriptions() != 0) { + setOrderSubscriptions(other.getOrderSubscriptions()); + } + if (other.getTradeSubscriptions() != 0) { + setTradeSubscriptions(other.getTradeSubscriptions()); + } + if (other.getCandleSubscriptions() != 0) { + setCandleSubscriptions(other.getCandleSubscriptions()); + } + if (other.getMarketDepthSubscriptions() != 0) { + setMarketDepthSubscriptions(other.getMarketDepthSubscriptions()); + } + if (other.getPositionsSubscriptions() != 0) { + setPositionsSubscriptions(other.getPositionsSubscriptions()); + } + if (other.getAccountSubscriptions() != 0) { + setAccountSubscriptions(other.getAccountSubscriptions()); + } + if (other.getMarketDataSubscriptions() != 0) { + setMarketDataSubscriptions(other.getMarketDataSubscriptions()); + } + if (!other.getAppVersionHash().isEmpty()) { + appVersionHash_ = other.appVersionHash_; + onChanged(); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (!other.getChainVersion().isEmpty()) { + chainVersion_ = other.chainVersion_; + onChanged(); + } + if (other.getBlockDuration() != 0L) { + setBlockDuration(other.getBlockDuration()); + } + if (!other.getUptime().isEmpty()) { + uptime_ = other.uptime_; + onChanged(); + } + if (!other.getChainId().isEmpty()) { + chainId_ = other.chainId_; + onChanged(); + } + if (other.getMarketDepthUpdatesSubscriptions() != 0) { + setMarketDepthUpdatesSubscriptions(other.getMarketDepthUpdatesSubscriptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -108855,11 +9311,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse parsedMessage = null; + io.vegaprotocol.vega.api.Trading.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleSpecsResponse) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.api.Trading.Statistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -108868,1843 +9324,1841 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List oracleSpecs_ = - java.util.Collections.emptyList(); - private void ensureOracleSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oracleSpecs_ = new java.util.ArrayList(oracleSpecs_); - bitField0_ |= 0x00000001; - } + private long blockHeight_ ; + /** + *
+       * Current block height as reported by the Vega blockchain
+       * 
+ * + * uint64 block_height = 1 [json_name = "blockHeight"]; + * @return The blockHeight. + */ + @java.lang.Override + public long getBlockHeight() { + return blockHeight_; } + /** + *
+       * Current block height as reported by the Vega blockchain
+       * 
+ * + * uint64 block_height = 1 [json_name = "blockHeight"]; + * @param value The blockHeight to set. + * @return This builder for chaining. + */ + public Builder setBlockHeight(long value) { - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder> oracleSpecsBuilder_; + blockHeight_ = value; + onChanged(); + return this; + } + /** + *
+       * Current block height as reported by the Vega blockchain
+       * 
+ * + * uint64 block_height = 1 [json_name = "blockHeight"]; + * @return This builder for chaining. + */ + public Builder clearBlockHeight() { + + blockHeight_ = 0L; + onChanged(); + return this; + } + + private long backlogLength_ ; + /** + *
+       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * 
+ * + * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * @return The backlogLength. + */ + @java.lang.Override + public long getBacklogLength() { + return backlogLength_; + } + /** + *
+       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * 
+ * + * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * @param value The backlogLength to set. + * @return This builder for chaining. + */ + public Builder setBacklogLength(long value) { + + backlogLength_ = value; + onChanged(); + return this; + } + /** + *
+       * Current backlog length (number of transactions) that are waiting to be included in a block
+       * 
+ * + * uint64 backlog_length = 2 [json_name = "backlogLength"]; + * @return This builder for chaining. + */ + public Builder clearBacklogLength() { + + backlogLength_ = 0L; + onChanged(); + return this; + } + + private long totalPeers_ ; + /** + *
+       * Total number of connected peers to this node
+       * 
+ * + * uint64 total_peers = 3 [json_name = "totalPeers"]; + * @return The totalPeers. + */ + @java.lang.Override + public long getTotalPeers() { + return totalPeers_; + } + /** + *
+       * Total number of connected peers to this node
+       * 
+ * + * uint64 total_peers = 3 [json_name = "totalPeers"]; + * @param value The totalPeers to set. + * @return This builder for chaining. + */ + public Builder setTotalPeers(long value) { + + totalPeers_ = value; + onChanged(); + return this; + } + /** + *
+       * Total number of connected peers to this node
+       * 
+ * + * uint64 total_peers = 3 [json_name = "totalPeers"]; + * @return This builder for chaining. + */ + public Builder clearTotalPeers() { + + totalPeers_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object genesisTime_ = ""; + /** + *
+       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The genesisTime. + */ + public java.lang.String getGenesisTime() { + java.lang.Object ref = genesisTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + genesisTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return The bytes for genesisTime. + */ + public com.google.protobuf.ByteString + getGenesisTimeBytes() { + java.lang.Object ref = genesisTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + genesisTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @param value The genesisTime to set. + * @return This builder for chaining. + */ + public Builder setGenesisTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + genesisTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @return This builder for chaining. + */ + public Builder clearGenesisTime() { + + genesisTime_ = getDefaultInstance().getGenesisTime(); + onChanged(); + return this; + } + /** + *
+       * Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string genesis_time = 4 [json_name = "genesisTime"]; + * @param value The bytes for genesisTime to set. + * @return This builder for chaining. + */ + public Builder setGenesisTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + genesisTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentTime_ = ""; + /** + *
+       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @return The currentTime. + */ + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @return The bytes for currentTime. + */ + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @param value The currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @return This builder for chaining. + */ + public Builder clearCurrentTime() { + + currentTime_ = getDefaultInstance().getCurrentTime(); + onChanged(); + return this; + } + /** + *
+       * Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string current_time = 5 [json_name = "currentTime"]; + * @param value The bytes for currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentTime_ = value; + onChanged(); + return this; + } + private java.lang.Object vegaTime_ = ""; + /** + *
+       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The vegaTime. + */ + public java.lang.String getVegaTime() { + java.lang.Object ref = vegaTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } /** *
-       * The list of oracle specs
+       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string vega_time = 6 [json_name = "vegaTime"]; + * @return The bytes for vegaTime. */ - public java.util.List getOracleSpecsList() { - if (oracleSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(oracleSpecs_); + public com.google.protobuf.ByteString + getVegaTimeBytes() { + java.lang.Object ref = vegaTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaTime_ = b; + return b; } else { - return oracleSpecsBuilder_.getMessageList(); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * The list of oracle specs
+       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string vega_time = 6 [json_name = "vegaTime"]; + * @param value The vegaTime to set. + * @return This builder for chaining. */ - public int getOracleSpecsCount() { - if (oracleSpecsBuilder_ == null) { - return oracleSpecs_.size(); - } else { - return oracleSpecsBuilder_.getCount(); - } + public Builder setVegaTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vegaTime_ = value; + onChanged(); + return this; } /** *
-       * The list of oracle specs
+       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string vega_time = 6 [json_name = "vegaTime"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec getOracleSpecs(int index) { - if (oracleSpecsBuilder_ == null) { - return oracleSpecs_.get(index); - } else { - return oracleSpecsBuilder_.getMessage(index); - } + public Builder clearVegaTime() { + + vegaTime_ = getDefaultInstance().getVegaTime(); + onChanged(); + return this; } /** *
-       * The list of oracle specs
+       * Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * string vega_time = 6 [json_name = "vegaTime"]; + * @param value The bytes for vegaTime to set. + * @return This builder for chaining. */ - public Builder setOracleSpecs( - int index, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec value) { - if (oracleSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleSpecsIsMutable(); - oracleSpecs_.set(index, value); - onChanged(); - } else { - oracleSpecsBuilder_.setMessage(index, value); - } + public Builder setVegaTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vegaTime_ = value; + onChanged(); return this; } + + private int status_ = 0; /** *
-       * The list of oracle specs
+       * Status of the connection to the Vega blockchain
+       * - See [`ChainStatus`](#vega.ChainStatus)
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The enum numeric value on the wire for status. */ - public Builder setOracleSpecs( - int index, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder builderForValue) { - if (oracleSpecsBuilder_ == null) { - ensureOracleSpecsIsMutable(); - oracleSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - oracleSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override public int getStatusValue() { + return status_; } /** *
-       * The list of oracle specs
+       * Status of the connection to the Vega blockchain
+       * - See [`ChainStatus`](#vega.ChainStatus)
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. */ - public Builder addOracleSpecs(io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec value) { - if (oracleSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleSpecsIsMutable(); - oracleSpecs_.add(value); - onChanged(); - } else { - oracleSpecsBuilder_.addMessage(value); - } + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); return this; } /** *
-       * The list of oracle specs
+       * Status of the connection to the Vega blockchain
+       * - See [`ChainStatus`](#vega.ChainStatus)
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return The status. */ - public Builder addOracleSpecs( - int index, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec value) { - if (oracleSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleSpecsIsMutable(); - oracleSpecs_.add(index, value); - onChanged(); - } else { - oracleSpecsBuilder_.addMessage(index, value); - } - return this; + @java.lang.Override + public io.vegaprotocol.vega.Vega.ChainStatus getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.Vega.ChainStatus result = io.vegaprotocol.vega.Vega.ChainStatus.valueOf(status_); + return result == null ? io.vegaprotocol.vega.Vega.ChainStatus.UNRECOGNIZED : result; } /** *
-       * The list of oracle specs
+       * Status of the connection to the Vega blockchain
+       * - See [`ChainStatus`](#vega.ChainStatus)
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. */ - public Builder addOracleSpecs( - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder builderForValue) { - if (oracleSpecsBuilder_ == null) { - ensureOracleSpecsIsMutable(); - oracleSpecs_.add(builderForValue.build()); - onChanged(); - } else { - oracleSpecsBuilder_.addMessage(builderForValue.build()); + public Builder setStatus(io.vegaprotocol.vega.Vega.ChainStatus value) { + if (value == null) { + throw new NullPointerException(); } + + status_ = value.getNumber(); + onChanged(); return this; } /** *
-       * The list of oracle specs
+       * Status of the connection to the Vega blockchain
+       * - See [`ChainStatus`](#vega.ChainStatus)
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * .vega.ChainStatus status = 7 [json_name = "status"]; + * @return This builder for chaining. */ - public Builder addOracleSpecs( - int index, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder builderForValue) { - if (oracleSpecsBuilder_ == null) { - ensureOracleSpecsIsMutable(); - oracleSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - oracleSpecsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearStatus() { + + status_ = 0; + onChanged(); return this; } + + private long txPerBlock_ ; /** *
-       * The list of oracle specs
+       * Transactions per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * @return The txPerBlock. */ - public Builder addAllOracleSpecs( - java.lang.Iterable values) { - if (oracleSpecsBuilder_ == null) { - ensureOracleSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleSpecs_); - onChanged(); - } else { - oracleSpecsBuilder_.addAllMessages(values); - } - return this; + @java.lang.Override + public long getTxPerBlock() { + return txPerBlock_; } /** *
-       * The list of oracle specs
+       * Transactions per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * @param value The txPerBlock to set. + * @return This builder for chaining. */ - public Builder clearOracleSpecs() { - if (oracleSpecsBuilder_ == null) { - oracleSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - oracleSpecsBuilder_.clear(); - } + public Builder setTxPerBlock(long value) { + + txPerBlock_ = value; + onChanged(); return this; } /** *
-       * The list of oracle specs
+       * Transactions per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 tx_per_block = 8 [json_name = "txPerBlock"]; + * @return This builder for chaining. */ - public Builder removeOracleSpecs(int index) { - if (oracleSpecsBuilder_ == null) { - ensureOracleSpecsIsMutable(); - oracleSpecs_.remove(index); - onChanged(); - } else { - oracleSpecsBuilder_.remove(index); - } + public Builder clearTxPerBlock() { + + txPerBlock_ = 0L; + onChanged(); return this; } + + private long averageTxBytes_ ; /** *
-       * The list of oracle specs
+       * Average transaction size in bytes
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * @return The averageTxBytes. */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder getOracleSpecsBuilder( - int index) { - return getOracleSpecsFieldBuilder().getBuilder(index); + @java.lang.Override + public long getAverageTxBytes() { + return averageTxBytes_; } /** *
-       * The list of oracle specs
+       * Average transaction size in bytes
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * @param value The averageTxBytes to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder getOracleSpecsOrBuilder( - int index) { - if (oracleSpecsBuilder_ == null) { - return oracleSpecs_.get(index); } else { - return oracleSpecsBuilder_.getMessageOrBuilder(index); - } + public Builder setAverageTxBytes(long value) { + + averageTxBytes_ = value; + onChanged(); + return this; } /** *
-       * The list of oracle specs
+       * Average transaction size in bytes
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_tx_bytes = 9 [json_name = "averageTxBytes"]; + * @return This builder for chaining. */ - public java.util.List - getOracleSpecsOrBuilderList() { - if (oracleSpecsBuilder_ != null) { - return oracleSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(oracleSpecs_); - } + public Builder clearAverageTxBytes() { + + averageTxBytes_ = 0L; + onChanged(); + return this; } + + private long averageOrdersPerBlock_ ; /** *
-       * The list of oracle specs
+       * Average orders per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * @return The averageOrdersPerBlock. */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder addOracleSpecsBuilder() { - return getOracleSpecsFieldBuilder().addBuilder( - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.getDefaultInstance()); + @java.lang.Override + public long getAverageOrdersPerBlock() { + return averageOrdersPerBlock_; } /** *
-       * The list of oracle specs
+       * Average orders per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * @param value The averageOrdersPerBlock to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder addOracleSpecsBuilder( - int index) { - return getOracleSpecsFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.getDefaultInstance()); + public Builder setAverageOrdersPerBlock(long value) { + + averageOrdersPerBlock_ = value; + onChanged(); + return this; } /** *
-       * The list of oracle specs
+       * Average orders per block
        * 
* - * repeated .oracles.v1.OracleSpec oracle_specs = 1 [json_name = "oracleSpecs"]; + * uint64 average_orders_per_block = 10 [json_name = "averageOrdersPerBlock"]; + * @return This builder for chaining. */ - public java.util.List - getOracleSpecsBuilderList() { - return getOracleSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder> - getOracleSpecsFieldBuilder() { - if (oracleSpecsBuilder_ == null) { - oracleSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec.Builder, io.vegaprotocol.vega.oracles.v1.Spec.OracleSpecOrBuilder>( - oracleSpecs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - oracleSpecs_ = null; - } - return oracleSpecsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.OracleSpecsResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.OracleSpecsResponse) - private static final io.vegaprotocol.vega.api.Trading.OracleSpecsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleSpecsResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.OracleSpecsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSpecsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleSpecsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OracleDataBySpecRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleDataBySpecRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * A request to all oracle data broadcast to a given spec
-   * 
- * - * Protobuf type {@code api.v1.OracleDataBySpecRequest} - */ - public static final class OracleDataBySpecRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleDataBySpecRequest) - OracleDataBySpecRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleDataBySpecRequest.newBuilder() to construct. - private OracleDataBySpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleDataBySpecRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleDataBySpecRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OracleDataBySpecRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.class, io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The id to get the oracle spec for
-     * 
- * - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest)) { - return super.equals(obj); - } - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest other = (io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A request to all oracle data broadcast to a given spec
-     * 
- * - * Protobuf type {@code api.v1.OracleDataBySpecRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleDataBySpecRequest) - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.class, io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.Builder.class); - } - - // Construct using io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; + public Builder clearAverageOrdersPerBlock() { + averageOrdersPerBlock_ = 0L; + onChanged(); return this; } + private long tradesPerSecond_ ; + /** + *
+       * Trades emitted per second
+       * 
+ * + * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + * @return The tradesPerSecond. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecRequest_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest build() { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest result = new io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest(this); - result.id_ = id_; - onBuilt(); - return result; + public long getTradesPerSecond() { + return tradesPerSecond_; } + /** + *
+       * Trades emitted per second
+       * 
+ * + * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + * @param value The tradesPerSecond to set. + * @return This builder for chaining. + */ + public Builder setTradesPerSecond(long value) { - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest)other); - } else { - super.mergeFrom(other); - return this; - } + tradesPerSecond_ = value; + onChanged(); + return this; } + /** + *
+       * Trades emitted per second
+       * 
+ * + * uint64 trades_per_second = 11 [json_name = "tradesPerSecond"]; + * @return This builder for chaining. + */ + public Builder clearTradesPerSecond() { - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); + tradesPerSecond_ = 0L; onChanged(); return this; } + private long ordersPerSecond_ ; + /** + *
+       * Orders processed per second
+       * 
+ * + * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + * @return The ordersPerSecond. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public long getOrdersPerSecond() { + return ordersPerSecond_; } + /** + *
+       * Orders processed per second
+       * 
+ * + * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + * @param value The ordersPerSecond to set. + * @return This builder for chaining. + */ + public Builder setOrdersPerSecond(long value) { - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + ordersPerSecond_ = value; + onChanged(); return this; } - - private java.lang.Object id_ = ""; /** *
-       * The id to get the oracle spec for
+       * Orders processed per second
        * 
* - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The id. + * uint64 orders_per_second = 12 [json_name = "ordersPerSecond"]; + * @return This builder for chaining. */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder clearOrdersPerSecond() { + + ordersPerSecond_ = 0L; + onChanged(); + return this; } + + private long totalMarkets_ ; /** *
-       * The id to get the oracle spec for
+       * Total markets on this Vega network
        * 
* - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @return The bytes for id. + * uint64 total_markets = 13 [json_name = "totalMarkets"]; + * @return The totalMarkets. */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public long getTotalMarkets() { + return totalMarkets_; } /** *
-       * The id to get the oracle spec for
+       * Total markets on this Vega network
        * 
* - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The id to set. + * uint64 total_markets = 13 [json_name = "totalMarkets"]; + * @param value The totalMarkets to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTotalMarkets(long value) { - id_ = value; + totalMarkets_ = value; onChanged(); return this; } /** *
-       * The id to get the oracle spec for
+       * Total markets on this Vega network
        * 
* - * string id = 1 [json_name = "id", (.validator.field) = { ... } + * uint64 total_markets = 13 [json_name = "totalMarkets"]; * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearTotalMarkets() { - id_ = getDefaultInstance().getId(); + totalMarkets_ = 0L; onChanged(); return this; } + + private long totalAmendOrder_ ; + /** + *
+       * Total number of order amendments since genesis (on all markets)
+       * 
+ * + * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + * @return The totalAmendOrder. + */ + @java.lang.Override + public long getTotalAmendOrder() { + return totalAmendOrder_; + } /** *
-       * The id to get the oracle spec for
+       * Total number of order amendments since genesis (on all markets)
        * 
* - * string id = 1 [json_name = "id", (.validator.field) = { ... } - * @param value The bytes for id to set. + * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + * @param value The totalAmendOrder to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setTotalAmendOrder(long value) { - id_ = value; + totalAmendOrder_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + *
+       * Total number of order amendments since genesis (on all markets)
+       * 
+ * + * uint64 total_amend_order = 16 [json_name = "totalAmendOrder"]; + * @return This builder for chaining. + */ + public Builder clearTotalAmendOrder() { + + totalAmendOrder_ = 0L; + onChanged(); + return this; } + private long totalCancelOrder_ ; + /** + *
+       * Total number of order cancellations since genesis (on all markets)
+       * 
+ * + * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + * @return The totalCancelOrder. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public long getTotalCancelOrder() { + return totalCancelOrder_; } + /** + *
+       * Total number of order cancellations since genesis (on all markets)
+       * 
+ * + * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + * @param value The totalCancelOrder to set. + * @return This builder for chaining. + */ + public Builder setTotalCancelOrder(long value) { + totalCancelOrder_ = value; + onChanged(); + return this; + } + /** + *
+       * Total number of order cancellations since genesis (on all markets)
+       * 
+ * + * uint64 total_cancel_order = 17 [json_name = "totalCancelOrder"]; + * @return This builder for chaining. + */ + public Builder clearTotalCancelOrder() { - // @@protoc_insertion_point(builder_scope:api.v1.OracleDataBySpecRequest) - } - - // @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecRequest) - private static final io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest(); - } - - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + totalCancelOrder_ = 0L; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private long totalCreateOrder_ ; + /** + *
+       * Total number of order submissions since genesis (on all markets)
+       * 
+ * + * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + * @return The totalCreateOrder. + */ @java.lang.Override - public OracleDataBySpecRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleDataBySpecRequest(input, extensionRegistry); + public long getTotalCreateOrder() { + return totalCreateOrder_; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OracleDataBySpecResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:api.v1.OracleDataBySpecResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - java.util.List - getOracleDataList(); - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - io.vegaprotocol.vega.oracles.v1.Data.OracleData getOracleData(int index); - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - int getOracleDataCount(); - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - java.util.List - getOracleDataOrBuilderList(); - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder getOracleDataOrBuilder( - int index); - } - /** - *
-   * The response for a list of all oracle data broadcast to a given spec
-   * 
- * - * Protobuf type {@code api.v1.OracleDataBySpecResponse} - */ - public static final class OracleDataBySpecResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:api.v1.OracleDataBySpecResponse) - OracleDataBySpecResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OracleDataBySpecResponse.newBuilder() to construct. - private OracleDataBySpecResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OracleDataBySpecResponse() { - oracleData_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OracleDataBySpecResponse(); - } + /** + *
+       * Total number of order submissions since genesis (on all markets)
+       * 
+ * + * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + * @param value The totalCreateOrder to set. + * @return This builder for chaining. + */ + public Builder setTotalCreateOrder(long value) { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OracleDataBySpecResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - oracleData_.add( - input.readMessage(io.vegaprotocol.vega.oracles.v1.Data.OracleData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - oracleData_ = java.util.Collections.unmodifiableList(oracleData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + totalCreateOrder_ = value; + onChanged(); + return this; } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.class, io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.Builder.class); - } - - public static final int ORACLE_DATA_FIELD_NUMBER = 1; - private java.util.List oracleData_; - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - @java.lang.Override - public java.util.List getOracleDataList() { - return oracleData_; - } - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - @java.lang.Override - public java.util.List - getOracleDataOrBuilderList() { - return oracleData_; - } - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - @java.lang.Override - public int getOracleDataCount() { - return oracleData_.size(); - } - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Data.OracleData getOracleData(int index) { - return oracleData_.get(index); - } - /** - *
-     * The list of oracle data broadcast to a given spec
-     * 
- * - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; - */ - @java.lang.Override - public io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder getOracleDataOrBuilder( - int index) { - return oracleData_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + /** + *
+       * Total number of order submissions since genesis (on all markets)
+       * 
+ * + * uint64 total_create_order = 18 [json_name = "totalCreateOrder"]; + * @return This builder for chaining. + */ + public Builder clearTotalCreateOrder() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < oracleData_.size(); i++) { - output.writeMessage(1, oracleData_.get(i)); + totalCreateOrder_ = 0L; + onChanged(); + return this; } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < oracleData_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, oracleData_.get(i)); + private long totalOrders_ ; + /** + *
+       * Total number of orders processed since genesis (on all markets)
+       * 
+ * + * uint64 total_orders = 19 [json_name = "totalOrders"]; + * @return The totalOrders. + */ + @java.lang.Override + public long getTotalOrders() { + return totalOrders_; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+       * Total number of orders processed since genesis (on all markets)
+       * 
+ * + * uint64 total_orders = 19 [json_name = "totalOrders"]; + * @param value The totalOrders to set. + * @return This builder for chaining. + */ + public Builder setTotalOrders(long value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + totalOrders_ = value; + onChanged(); + return this; } - if (!(obj instanceof io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse)) { - return super.equals(obj); + /** + *
+       * Total number of orders processed since genesis (on all markets)
+       * 
+ * + * uint64 total_orders = 19 [json_name = "totalOrders"]; + * @return This builder for chaining. + */ + public Builder clearTotalOrders() { + + totalOrders_ = 0L; + onChanged(); + return this; } - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse other = (io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse) obj; - if (!getOracleDataList() - .equals(other.getOracleDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private long totalTrades_ ; + /** + *
+       * Total number of trades emitted since genesis (on all markets)
+       * 
+ * + * uint64 total_trades = 20 [json_name = "totalTrades"]; + * @return The totalTrades. + */ + @java.lang.Override + public long getTotalTrades() { + return totalTrades_; + } + /** + *
+       * Total number of trades emitted since genesis (on all markets)
+       * 
+ * + * uint64 total_trades = 20 [json_name = "totalTrades"]; + * @param value The totalTrades to set. + * @return This builder for chaining. + */ + public Builder setTotalTrades(long value) { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + totalTrades_ = value; + onChanged(); + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getOracleDataCount() > 0) { - hash = (37 * hash) + ORACLE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOracleDataList().hashCode(); + /** + *
+       * Total number of trades emitted since genesis (on all markets)
+       * 
+ * + * uint64 total_trades = 20 [json_name = "totalTrades"]; + * @return This builder for chaining. + */ + public Builder clearTotalTrades() { + + totalTrades_ = 0L; + onChanged(); + return this; } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private int orderSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to order data
+       * 
+ * + * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + * @return The orderSubscriptions. + */ + @java.lang.Override + public int getOrderSubscriptions() { + return orderSubscriptions_; + } + /** + *
+       * Current number of stream subscribers to order data
+       * 
+ * + * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + * @param value The orderSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setOrderSubscriptions(int value) { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + orderSubscriptions_ = value; + onChanged(); + return this; + } + /** + *
+       * Current number of stream subscribers to order data
+       * 
+ * + * uint32 order_subscriptions = 21 [json_name = "orderSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearOrderSubscriptions() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * The response for a list of all oracle data broadcast to a given spec
-     * 
- * - * Protobuf type {@code api.v1.OracleDataBySpecResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:api.v1.OracleDataBySpecResponse) - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecResponse_descriptor; + orderSubscriptions_ = 0; + onChanged(); + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.class, io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.Builder.class); + private int tradeSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to trade data
+       * 
+ * + * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + * @return The tradeSubscriptions. + */ + @java.lang.Override + public int getTradeSubscriptions() { + return tradeSubscriptions_; } + /** + *
+       * Current number of stream subscribers to trade data
+       * 
+ * + * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + * @param value The tradeSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setTradeSubscriptions(int value) { - // Construct using io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + tradeSubscriptions_ = value; + onChanged(); + return this; } + /** + *
+       * Current number of stream subscribers to trade data
+       * 
+ * + * uint32 trade_subscriptions = 22 [json_name = "tradeSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearTradeSubscriptions() { - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOracleDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (oracleDataBuilder_ == null) { - oracleData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - oracleDataBuilder_.clear(); - } + tradeSubscriptions_ = 0; + onChanged(); return this; } + private int candleSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to candle-stick data
+       * 
+ * + * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + * @return The candleSubscriptions. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_OracleDataBySpecResponse_descriptor; + public int getCandleSubscriptions() { + return candleSubscriptions_; } + /** + *
+       * Current number of stream subscribers to candle-stick data
+       * 
+ * + * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + * @param value The candleSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setCandleSubscriptions(int value) { - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.getDefaultInstance(); + candleSubscriptions_ = value; + onChanged(); + return this; } + /** + *
+       * Current number of stream subscribers to candle-stick data
+       * 
+ * + * uint32 candle_subscriptions = 23 [json_name = "candleSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearCandleSubscriptions() { - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse build() { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + candleSubscriptions_ = 0; + onChanged(); + return this; } + private int marketDepthSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to market depth data
+       * 
+ * + * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + * @return The marketDepthSubscriptions. + */ @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse result = new io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse(this); - int from_bitField0_ = bitField0_; - if (oracleDataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - oracleData_ = java.util.Collections.unmodifiableList(oracleData_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oracleData_ = oracleData_; - } else { - result.oracleData_ = oracleDataBuilder_.build(); - } - onBuilt(); - return result; + public int getMarketDepthSubscriptions() { + return marketDepthSubscriptions_; } + /** + *
+       * Current number of stream subscribers to market depth data
+       * 
+ * + * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + * @param value The marketDepthSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setMarketDepthSubscriptions(int value) { - @java.lang.Override - public Builder clone() { - return super.clone(); + marketDepthSubscriptions_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + /** + *
+       * Current number of stream subscribers to market depth data
+       * 
+ * + * uint32 market_depth_subscriptions = 24 [json_name = "marketDepthSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearMarketDepthSubscriptions() { + + marketDepthSubscriptions_ = 0; + onChanged(); + return this; } + + private int positionsSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to positions data
+       * 
+ * + * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + * @return The positionsSubscriptions. + */ @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public int getPositionsSubscriptions() { + return positionsSubscriptions_; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + *
+       * Current number of stream subscribers to positions data
+       * 
+ * + * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + * @param value The positionsSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setPositionsSubscriptions(int value) { + + positionsSubscriptions_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+       * Current number of stream subscribers to positions data
+       * 
+ * + * uint32 positions_subscriptions = 25 [json_name = "positionsSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearPositionsSubscriptions() { + + positionsSubscriptions_ = 0; + onChanged(); + return this; } + + private int accountSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to account data
+       * 
+ * + * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + * @return The accountSubscriptions. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public int getAccountSubscriptions() { + return accountSubscriptions_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse)other); - } else { - super.mergeFrom(other); - return this; - } + /** + *
+       * Current number of stream subscribers to account data
+       * 
+ * + * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + * @param value The accountSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setAccountSubscriptions(int value) { + + accountSubscriptions_ = value; + onChanged(); + return this; } + /** + *
+       * Current number of stream subscribers to account data
+       * 
+ * + * uint32 account_subscriptions = 26 [json_name = "accountSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearAccountSubscriptions() { - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.getDefaultInstance()) return this; - if (oracleDataBuilder_ == null) { - if (!other.oracleData_.isEmpty()) { - if (oracleData_.isEmpty()) { - oracleData_ = other.oracleData_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOracleDataIsMutable(); - oracleData_.addAll(other.oracleData_); - } - onChanged(); - } - } else { - if (!other.oracleData_.isEmpty()) { - if (oracleDataBuilder_.isEmpty()) { - oracleDataBuilder_.dispose(); - oracleDataBuilder_ = null; - oracleData_ = other.oracleData_; - bitField0_ = (bitField0_ & ~0x00000001); - oracleDataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleDataFieldBuilder() : null; - } else { - oracleDataBuilder_.addAllMessages(other.oracleData_); - } - } - } - this.mergeUnknownFields(other.unknownFields); + accountSubscriptions_ = 0; onChanged(); return this; } + private int marketDataSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to market data
+       * 
+ * + * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + * @return The marketDataSubscriptions. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public int getMarketDataSubscriptions() { + return marketDataSubscriptions_; } + /** + *
+       * Current number of stream subscribers to market data
+       * 
+ * + * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + * @param value The marketDataSubscriptions to set. + * @return This builder for chaining. + */ + public Builder setMarketDataSubscriptions(int value) { - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + marketDataSubscriptions_ = value; + onChanged(); return this; } - private int bitField0_; + /** + *
+       * Current number of stream subscribers to market data
+       * 
+ * + * uint32 market_data_subscriptions = 27 [json_name = "marketDataSubscriptions"]; + * @return This builder for chaining. + */ + public Builder clearMarketDataSubscriptions() { - private java.util.List oracleData_ = - java.util.Collections.emptyList(); - private void ensureOracleDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oracleData_ = new java.util.ArrayList(oracleData_); - bitField0_ |= 0x00000001; - } + marketDataSubscriptions_ = 0; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Data.OracleData, io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder, io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder> oracleDataBuilder_; - + private java.lang.Object appVersionHash_ = ""; /** *
-       * The list of oracle data broadcast to a given spec
+       * The version hash of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The appVersionHash. */ - public java.util.List getOracleDataList() { - if (oracleDataBuilder_ == null) { - return java.util.Collections.unmodifiableList(oracleData_); + public java.lang.String getAppVersionHash() { + java.lang.Object ref = appVersionHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersionHash_ = s; + return s; } else { - return oracleDataBuilder_.getMessageList(); + return (java.lang.String) ref; } } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version hash of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return The bytes for appVersionHash. */ - public int getOracleDataCount() { - if (oracleDataBuilder_ == null) { - return oracleData_.size(); + public com.google.protobuf.ByteString + getAppVersionHashBytes() { + java.lang.Object ref = appVersionHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersionHash_ = b; + return b; } else { - return oracleDataBuilder_.getCount(); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version hash of the Vega node software
+       * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @param value The appVersionHash to set. + * @return This builder for chaining. + */ + public Builder setAppVersionHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appVersionHash_ = value; + onChanged(); + return this; + } + /** + *
+       * The version hash of the Vega node software
+       * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @return This builder for chaining. + */ + public Builder clearAppVersionHash() { + + appVersionHash_ = getDefaultInstance().getAppVersionHash(); + onChanged(); + return this; + } + /** + *
+       * The version hash of the Vega node software
+       * 
+ * + * string app_version_hash = 28 [json_name = "appVersionHash"]; + * @param value The bytes for appVersionHash to set. + * @return This builder for chaining. + */ + public Builder setAppVersionHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersionHash_ = value; + onChanged(); + return this; + } + + private java.lang.Object appVersion_ = ""; + /** + *
+       * The version of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version = 29 [json_name = "appVersion"]; + * @return The appVersion. */ - public io.vegaprotocol.vega.oracles.v1.Data.OracleData getOracleData(int index) { - if (oracleDataBuilder_ == null) { - return oracleData_.get(index); + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; } else { - return oracleDataBuilder_.getMessage(index); + return (java.lang.String) ref; } } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version = 29 [json_name = "appVersion"]; + * @return The bytes for appVersion. */ - public Builder setOracleData( - int index, io.vegaprotocol.vega.oracles.v1.Data.OracleData value) { - if (oracleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleDataIsMutable(); - oracleData_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString + getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; } else { - oracleDataBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+       * The version of the Vega node software
+       * 
+ * + * string app_version = 29 [json_name = "appVersion"]; + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version = 29 [json_name = "appVersion"]; + * @return This builder for chaining. */ - public Builder setOracleData( - int index, io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder builderForValue) { - if (oracleDataBuilder_ == null) { - ensureOracleDataIsMutable(); - oracleData_.set(index, builderForValue.build()); - onChanged(); - } else { - oracleDataBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearAppVersion() { + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the Vega node software
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string app_version = 29 [json_name = "appVersion"]; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. */ - public Builder addOracleData(io.vegaprotocol.vega.oracles.v1.Data.OracleData value) { - if (oracleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleDataIsMutable(); - oracleData_.add(value); - onChanged(); - } else { - oracleDataBuilder_.addMessage(value); - } + public Builder setAppVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); return this; } + + private java.lang.Object chainVersion_ = ""; /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the underlying Vega blockchain
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The chainVersion. */ - public Builder addOracleData( - int index, io.vegaprotocol.vega.oracles.v1.Data.OracleData value) { - if (oracleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOracleDataIsMutable(); - oracleData_.add(index, value); - onChanged(); + public java.lang.String getChainVersion() { + java.lang.Object ref = chainVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainVersion_ = s; + return s; } else { - oracleDataBuilder_.addMessage(index, value); + return (java.lang.String) ref; } - return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the underlying Vega blockchain
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string chain_version = 30 [json_name = "chainVersion"]; + * @return The bytes for chainVersion. */ - public Builder addOracleData( - io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder builderForValue) { - if (oracleDataBuilder_ == null) { - ensureOracleDataIsMutable(); - oracleData_.add(builderForValue.build()); - onChanged(); + public com.google.protobuf.ByteString + getChainVersionBytes() { + java.lang.Object ref = chainVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainVersion_ = b; + return b; } else { - oracleDataBuilder_.addMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+       * The version of the underlying Vega blockchain
+       * 
+ * + * string chain_version = 30 [json_name = "chainVersion"]; + * @param value The chainVersion to set. + * @return This builder for chaining. + */ + public Builder setChainVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + chainVersion_ = value; + onChanged(); return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the underlying Vega blockchain
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string chain_version = 30 [json_name = "chainVersion"]; + * @return This builder for chaining. */ - public Builder addOracleData( - int index, io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder builderForValue) { - if (oracleDataBuilder_ == null) { - ensureOracleDataIsMutable(); - oracleData_.add(index, builderForValue.build()); - onChanged(); - } else { - oracleDataBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearChainVersion() { + + chainVersion_ = getDefaultInstance().getChainVersion(); + onChanged(); return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * The version of the underlying Vega blockchain
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string chain_version = 30 [json_name = "chainVersion"]; + * @param value The bytes for chainVersion to set. + * @return This builder for chaining. */ - public Builder addAllOracleData( - java.lang.Iterable values) { - if (oracleDataBuilder_ == null) { - ensureOracleDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleData_); - onChanged(); - } else { - oracleDataBuilder_.addAllMessages(values); - } + public Builder setChainVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + chainVersion_ = value; + onChanged(); return this; } + + private long blockDuration_ ; /** *
-       * The list of oracle data broadcast to a given spec
+       * Current block duration, in nanoseconds
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * uint64 block_duration = 31 [json_name = "blockDuration"]; + * @return The blockDuration. */ - public Builder clearOracleData() { - if (oracleDataBuilder_ == null) { - oracleData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + @java.lang.Override + public long getBlockDuration() { + return blockDuration_; + } + /** + *
+       * Current block duration, in nanoseconds
+       * 
+ * + * uint64 block_duration = 31 [json_name = "blockDuration"]; + * @param value The blockDuration to set. + * @return This builder for chaining. + */ + public Builder setBlockDuration(long value) { + + blockDuration_ = value; + onChanged(); + return this; + } + /** + *
+       * Current block duration, in nanoseconds
+       * 
+ * + * uint64 block_duration = 31 [json_name = "blockDuration"]; + * @return This builder for chaining. + */ + public Builder clearBlockDuration() { + + blockDuration_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object uptime_ = ""; + /** + *
+       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string uptime = 32 [json_name = "uptime"]; + * @return The uptime. + */ + public java.lang.String getUptime() { + java.lang.Object ref = uptime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uptime_ = s; + return s; } else { - oracleDataBuilder_.clear(); + return (java.lang.String) ref; } - return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string uptime = 32 [json_name = "uptime"]; + * @return The bytes for uptime. */ - public Builder removeOracleData(int index) { - if (oracleDataBuilder_ == null) { - ensureOracleDataIsMutable(); - oracleData_.remove(index); - onChanged(); + public com.google.protobuf.ByteString + getUptimeBytes() { + java.lang.Object ref = uptime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uptime_ = b; + return b; } else { - oracleDataBuilder_.remove(index); + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
+       * 
+ * + * string uptime = 32 [json_name = "uptime"]; + * @param value The uptime to set. + * @return This builder for chaining. + */ + public Builder setUptime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uptime_ = value; + onChanged(); return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string uptime = 32 [json_name = "uptime"]; + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder getOracleDataBuilder( - int index) { - return getOracleDataFieldBuilder().getBuilder(index); + public Builder clearUptime() { + + uptime_ = getDefaultInstance().getUptime(); + onChanged(); + return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string uptime = 32 [json_name = "uptime"]; + * @param value The bytes for uptime to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder getOracleDataOrBuilder( - int index) { - if (oracleDataBuilder_ == null) { - return oracleData_.get(index); } else { - return oracleDataBuilder_.getMessageOrBuilder(index); + public Builder setUptimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uptime_ = value; + onChanged(); + return this; + } + + private java.lang.Object chainId_ = ""; + /** + *
+       * Unique identifier for the underlying Vega blockchain
+       * 
+ * + * string chain_id = 33 [json_name = "chainId"]; + * @return The chainId. + */ + public java.lang.String getChainId() { + java.lang.Object ref = chainId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainId_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** *
-       * The list of oracle data broadcast to a given spec
+       * Unique identifier for the underlying Vega blockchain
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * string chain_id = 33 [json_name = "chainId"]; + * @return The bytes for chainId. */ - public java.util.List - getOracleDataOrBuilderList() { - if (oracleDataBuilder_ != null) { - return oracleDataBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getChainIdBytes() { + java.lang.Object ref = chainId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainId_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(oracleData_); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * The list of oracle data broadcast to a given spec
+       * Unique identifier for the underlying Vega blockchain
+       * 
+ * + * string chain_id = 33 [json_name = "chainId"]; + * @param value The chainId to set. + * @return This builder for chaining. + */ + public Builder setChainId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + chainId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique identifier for the underlying Vega blockchain
+       * 
+ * + * string chain_id = 33 [json_name = "chainId"]; + * @return This builder for chaining. + */ + public Builder clearChainId() { + + chainId_ = getDefaultInstance().getChainId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier for the underlying Vega blockchain
+       * 
+ * + * string chain_id = 33 [json_name = "chainId"]; + * @param value The bytes for chainId to set. + * @return This builder for chaining. + */ + public Builder setChainIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + chainId_ = value; + onChanged(); + return this; + } + + private int marketDepthUpdatesSubscriptions_ ; + /** + *
+       * Current number of stream subscribers to market depth update data
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + * @return The marketDepthUpdatesSubscriptions. */ - public io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder addOracleDataBuilder() { - return getOracleDataFieldBuilder().addBuilder( - io.vegaprotocol.vega.oracles.v1.Data.OracleData.getDefaultInstance()); + @java.lang.Override + public int getMarketDepthUpdatesSubscriptions() { + return marketDepthUpdatesSubscriptions_; } /** *
-       * The list of oracle data broadcast to a given spec
+       * Current number of stream subscribers to market depth update data
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + * @param value The marketDepthUpdatesSubscriptions to set. + * @return This builder for chaining. */ - public io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder addOracleDataBuilder( - int index) { - return getOracleDataFieldBuilder().addBuilder( - index, io.vegaprotocol.vega.oracles.v1.Data.OracleData.getDefaultInstance()); + public Builder setMarketDepthUpdatesSubscriptions(int value) { + + marketDepthUpdatesSubscriptions_ = value; + onChanged(); + return this; } /** *
-       * The list of oracle data broadcast to a given spec
+       * Current number of stream subscribers to market depth update data
        * 
* - * repeated .oracles.v1.OracleData oracle_data = 1 [json_name = "oracleData"]; + * uint32 market_depth_updates_subscriptions = 34 [json_name = "marketDepthUpdatesSubscriptions"]; + * @return This builder for chaining. */ - public java.util.List - getOracleDataBuilderList() { - return getOracleDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Data.OracleData, io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder, io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder> - getOracleDataFieldBuilder() { - if (oracleDataBuilder_ == null) { - oracleDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.vegaprotocol.vega.oracles.v1.Data.OracleData, io.vegaprotocol.vega.oracles.v1.Data.OracleData.Builder, io.vegaprotocol.vega.oracles.v1.Data.OracleDataOrBuilder>( - oracleData_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - oracleData_ = null; - } - return oracleDataBuilder_; + public Builder clearMarketDepthUpdatesSubscriptions() { + + marketDepthUpdatesSubscriptions_ = 0; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -110719,41 +11173,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:api.v1.OracleDataBySpecResponse) + // @@protoc_insertion_point(builder_scope:api.v1.Statistics) } - // @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecResponse) - private static final io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:api.v1.Statistics) + private static final io.vegaprotocol.vega.api.Trading.Statistics DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.Statistics(); } - public static io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse getDefaultInstance() { + public static io.vegaprotocol.vega.api.Trading.Statistics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public OracleDataBySpecResponse parsePartialFrom( + public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleDataBySpecResponse(input, extensionRegistry); + return new Statistics(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse getDefaultInstanceForType() { + public io.vegaprotocol.vega.api.Trading.Statistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -111485,702 +11939,227 @@ private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastBlockHeightResponse_descriptor; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstanceForType() { - return io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance(); - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse build() { - io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse buildPartial() { - io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse result = new io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse) { - return mergeFrom((io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse other) { - if (other == io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * uint64 height = 1 [json_name = "height"]; - * @return The height. - */ - @java.lang.Override - public long getHeight() { - return height_; - } - /** - * uint64 height = 1 [json_name = "height"]; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * uint64 height = 1 [json_name = "height"]; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:api.v1.LastBlockHeightResponse) - } - - // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) - private static final io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse(); - } - - public static io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LastBlockHeightResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastBlockHeightResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PropagateChainEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PropagateChainEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PropagateChainEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PropagateChainEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_SubmitTransactionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_SubmitTransactionRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_SubmitTransactionResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_SubmitTransactionResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_SubmitTransactionV2Request_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_SubmitTransactionV2Response_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareWithdrawRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareWithdrawRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareWithdrawResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareWithdrawResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareSubmitOrderResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareSubmitOrderResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareCancelOrderResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareCancelOrderResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareAmendOrderResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareAmendOrderResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareSubmitOrderRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareSubmitOrderRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareCancelOrderRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareCancelOrderRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareAmendOrderRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareAmendOrderRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AssetsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AssetsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AssetsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AssetsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AssetByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AssetByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AssetByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AssetByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNodeSignaturesAggregateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNodeSignaturesAggregateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OptionalProposalState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OptionalProposalState_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalsByPartyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalsByPartyRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalsByPartyResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalsByPartyResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetVotesByPartyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetVotesByPartyRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetVotesByPartyResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetVotesByPartyResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNewMarketProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNewMarketProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNewMarketProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNewMarketProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetUpdateMarketProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetUpdateMarketProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNetworkParametersProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNetworkParametersProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNewAssetProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNewAssetProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetNewAssetProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetNewAssetProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalByReferenceRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalByReferenceRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_GetProposalByReferenceResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_GetProposalByReferenceResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObserveGovernanceRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObserveGovernanceRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObserveGovernanceResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObserveGovernanceResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObservePartyProposalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObservePartyProposalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObservePartyProposalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObservePartyProposalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObserveProposalVotesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObserveProposalVotesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObserveProposalVotesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObserveProposalVotesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObservePartyVotesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObservePartyVotesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ObservePartyVotesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ObservePartyVotesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarginLevelsSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarginLevelsSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarginLevelsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarginLevelsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarginLevelsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarginLevelsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsDataSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsDataSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsDataSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsDataSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDataByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDataByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDataByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDataByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsDataResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_LastTradeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_LastTradeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_LastTradeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_LastTradeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartyByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartyByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartyByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartyByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartiesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartiesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartiesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartiesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByPartyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByPartyRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByPartyResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByPartyResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByOrderRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByOrderRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByOrderResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByOrderResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AccountsSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AccountsSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_AccountsSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_AccountsSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_CandlesSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_CandlesSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_CandlesSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_CandlesSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PositionsSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PositionsSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PositionsSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PositionsSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersByMarketRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersByMarketRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersByMarketResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersByMarketResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersByPartyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersByPartyRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersByPartyResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersByPartyResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByMarketAndIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByMarketAndIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByMarketAndIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByMarketAndIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByReferenceRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByReferenceRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByReferenceResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByReferenceResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_CandlesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_CandlesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_CandlesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_CandlesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketDepthResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketDepthResponse_fieldAccessorTable; + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.api.Trading.internal_static_api_v1_LastBlockHeightResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse build() { + io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse buildPartial() { + io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse result = new io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse(this); + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse) { + return mergeFrom((io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse other) { + if (other == io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance()) return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_ ; + /** + * uint64 height = 1 [json_name = "height"]; + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + /** + * uint64 height = 1 [json_name = "height"]; + * @param value The height to set. + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + /** + * uint64 height = 1 [json_name = "height"]; + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:api.v1.LastBlockHeightResponse) + } + + // @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) + private static final io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse(); + } + + public static io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LastBlockHeightResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LastBlockHeightResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByMarketRequest_descriptor; + internal_static_api_v1_PropagateChainEventRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByMarketRequest_fieldAccessorTable; + internal_static_api_v1_PropagateChainEventRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesByMarketResponse_descriptor; + internal_static_api_v1_PropagateChainEventResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesByMarketResponse_fieldAccessorTable; + internal_static_api_v1_PropagateChainEventResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PositionsByPartyRequest_descriptor; + internal_static_api_v1_SubmitTransactionV2Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PositionsByPartyRequest_fieldAccessorTable; + internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PositionsByPartyResponse_descriptor; + internal_static_api_v1_SubmitTransactionV2Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PositionsByPartyResponse_fieldAccessorTable; + internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_v1_GetVegaTimeRequest_descriptor; private static final @@ -112191,131 +12170,6 @@ public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstan private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_Pagination_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_Pagination_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrdersSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrdersSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TradesSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TradesSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TransferResponsesSubscribeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_TransferResponsesSubscribeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartyAccountsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartyAccountsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PartyAccountsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PartyAccountsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketAccountsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketAccountsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_MarketAccountsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_MarketAccountsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_FeeInfrastructureAccountsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_FeeInfrastructureAccountsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareProposalSubmissionRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareProposalSubmissionResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareVoteSubmissionRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareVoteSubmissionResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareLiquidityProvisionRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_PrepareLiquidityProvisionResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderVersionsByIDRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderVersionsByIDRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OrderVersionsByIDResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OrderVersionsByIDResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_EstimateFeeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_EstimateFeeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_EstimateFeeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_EstimateFeeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_EstimateMarginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_EstimateMarginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_EstimateMarginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_EstimateMarginResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_v1_ObserveEventBusRequest_descriptor; private static final @@ -112337,105 +12191,10 @@ public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstan com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_v1_StatisticsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_WithdrawalsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_WithdrawalsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_WithdrawalsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_WithdrawalsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_WithdrawalRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_WithdrawalRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_WithdrawalResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_WithdrawalResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ERC20WithdrawalApprovalRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_ERC20WithdrawalApprovalResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_DepositsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_DepositsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_DepositsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_DepositsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_DepositRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_DepositRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_DepositResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_DepositResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_NetworkParametersRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_NetworkParametersRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_NetworkParametersResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_NetworkParametersResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_LiquidityProvisionsRequest_descriptor; + internal_static_api_v1_Statistics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_LiquidityProvisionsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_LiquidityProvisionsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_LiquidityProvisionsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleSpecRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleSpecRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleSpecResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleSpecResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleSpecsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleSpecsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleSpecsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleSpecsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleDataBySpecRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleDataBySpecRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_api_v1_OracleDataBySpecResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_api_v1_OracleDataBySpecResponse_fieldAccessorTable; + internal_static_api_v1_Statistics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_v1_LastBlockHeightRequest_descriptor; private static final @@ -112462,467 +12221,80 @@ public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstan "mmands/v1/commands.proto\032\035commands/v1/tr" + "ansaction.proto\032$commands/v1/validator_c" + "ommands.proto\0326github.com/mwitkow/go-pro" + - "to-validators/validator.proto\"\203\001\n\032Propag" + - "ateChainEventRequest\022.\n\003evt\030\001 \001(\0132\034.vega" + - ".commands.v1.ChainEventR\003evt\022\027\n\007pub_key\030" + - "\002 \001(\tR\006pubKey\022\034\n\tsignature\030\003 \001(\014R\tsignat" + - "ure\"7\n\033PropagateChainEventResponse\022\030\n\007su" + - "ccess\030\001 \001(\010R\007success\"\307\001\n\030SubmitTransacti" + - "onRequest\022\"\n\002tx\030\001 \001(\0132\022.vega.SignedBundl" + - "eR\002tx\0229\n\004type\030\002 \001(\0162%.api.v1.SubmitTrans" + - "actionRequest.TypeR\004type\"L\n\004Type\022\024\n\020TYPE" + - "_UNSPECIFIED\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_S" + - "YNC\020\002\022\017\n\013TYPE_COMMIT\020\003\"5\n\031SubmitTransact" + - "ionResponse\022\030\n\007success\030\001 \001(\010R\007success\"\326\001" + - "\n\032SubmitTransactionV2Request\022-\n\002tx\030\001 \001(\013" + - "2\035.vega.commands.v1.TransactionR\002tx\022;\n\004t" + - "ype\030\002 \001(\0162\'.api.v1.SubmitTransactionV2Re" + - "quest.TypeR\004type\"L\n\004Type\022\024\n\020TYPE_UNSPECI" + - "FIED\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_SYNC\020\002\022\017\n" + - "\013TYPE_COMMIT\020\003\"7\n\033SubmitTransactionV2Res" + - "ponse\022\030\n\007success\030\001 \001(\010R\007success\"Z\n\026Prepa" + - "reWithdrawRequest\022@\n\010withdraw\030\001 \001(\0132$.ve" + - "ga.commands.v1.WithdrawSubmissionR\010withd" + - "raw\"-\n\027PrepareWithdrawResponse\022\022\n\004blob\030\001" + - " \001(\014R\004blob\"M\n\032PrepareSubmitOrderResponse" + - "\022\022\n\004blob\030\001 \001(\014R\004blob\022\033\n\tsubmit_id\030\002 \001(\tR" + - "\010submitId\"0\n\032PrepareCancelOrderResponse\022" + - "\022\n\004blob\030\001 \001(\014R\004blob\"/\n\031PrepareAmendOrder" + - "Response\022\022\n\004blob\030\001 \001(\014R\004blob\"^\n\031PrepareS" + - "ubmitOrderRequest\022A\n\nsubmission\030\001 \001(\0132!." + - "vega.commands.v1.OrderSubmissionR\nsubmis" + - "sion\"d\n\031PrepareCancelOrderRequest\022G\n\014can" + - "cellation\030\001 \001(\0132#.vega.commands.v1.Order" + - "CancellationR\014cancellation\"Z\n\030PrepareAme" + - "ndOrderRequest\022>\n\tamendment\030\001 \001(\0132 .vega" + - ".commands.v1.OrderAmendmentR\tamendment\"\017" + - "\n\rAssetsRequest\"5\n\016AssetsResponse\022#\n\006ass" + - "ets\030\001 \003(\0132\013.vega.AssetR\006assets\"*\n\020AssetB" + - "yIDRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"6\n\021As" + - "setByIDResponse\022!\n\005asset\030\001 \001(\0132\013.vega.As" + - "setR\005asset\";\n!GetNodeSignaturesAggregate" + - "Request\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"e\n\"GetNo" + - "deSignaturesAggregateResponse\022?\n\nsignatu" + - "res\030\001 \003(\0132\037.vega.commands.v1.NodeSignatu" + - "reR\nsignatures\"C\n\025OptionalProposalState\022" + - "*\n\005value\030\001 \001(\0162\024.vega.Proposal.StateR\005va" + - "lue\"\\\n\023GetProposalsRequest\022E\n\017select_in_" + - "state\030\001 \001(\0132\035.api.v1.OptionalProposalSta" + - "teR\rselectInState\"@\n\024GetProposalsRespons" + - "e\022(\n\004data\030\001 \003(\0132\024.vega.GovernanceDataR\004d" + - "ata\"\206\001\n\032GetProposalsByPartyRequest\022!\n\010pa" + - "rty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\022E\n\017select_" + - "in_state\030\002 \001(\0132\035.api.v1.OptionalProposal" + - "StateR\rselectInState\"G\n\033GetProposalsByPa" + - "rtyResponse\022(\n\004data\030\001 \003(\0132\024.vega.Governa" + - "nceDataR\004data\";\n\026GetVotesByPartyRequest\022" + - "!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\";\n\027Ge" + - "tVotesByPartyResponse\022 \n\005votes\030\001 \003(\0132\n.v" + - "ega.VoteR\005votes\"e\n\034GetNewMarketProposals" + - "Request\022E\n\017select_in_state\030\001 \001(\0132\035.api.v" + - "1.OptionalProposalStateR\rselectInState\"I" + - "\n\035GetNewMarketProposalsResponse\022(\n\004data\030" + - "\001 \003(\0132\024.vega.GovernanceDataR\004data\"\215\001\n\037Ge" + - "tUpdateMarketProposalsRequest\022#\n\tmarket_" + - "id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022E\n\017select_in_" + - "state\030\002 \001(\0132\035.api.v1.OptionalProposalSta" + - "teR\rselectInState\"L\n GetUpdateMarketProp" + - "osalsResponse\022(\n\004data\030\001 \003(\0132\024.vega.Gover" + - "nanceDataR\004data\"m\n$GetNetworkParametersP" + - "roposalsRequest\022E\n\017select_in_state\030\001 \001(\013" + - "2\035.api.v1.OptionalProposalStateR\rselectI" + - "nState\"Q\n%GetNetworkParametersProposalsR" + - "esponse\022(\n\004data\030\001 \003(\0132\024.vega.GovernanceD" + - "ataR\004data\"d\n\033GetNewAssetProposalsRequest" + - "\022E\n\017select_in_state\030\001 \001(\0132\035.api.v1.Optio" + - "nalProposalStateR\rselectInState\"H\n\034GetNe" + - "wAssetProposalsResponse\022(\n\004data\030\001 \003(\0132\024." + - "vega.GovernanceDataR\004data\"A\n\026GetProposal" + - "ByIDRequest\022\'\n\013proposal_id\030\001 \001(\tB\006\342\337\037\002X\001" + - "R\nproposalId\"C\n\027GetProposalByIDResponse\022" + - "(\n\004data\030\001 \001(\0132\024.vega.GovernanceDataR\004dat" + - "a\"E\n\035GetProposalByReferenceRequest\022$\n\tre" + - "ference\030\001 \001(\tB\006\342\337\037\002X\001R\treference\"J\n\036GetP" + - "roposalByReferenceResponse\022(\n\004data\030\001 \001(\013" + - "2\024.vega.GovernanceDataR\004data\"\032\n\030ObserveG" + - "overnanceRequest\"E\n\031ObserveGovernanceRes" + - "ponse\022(\n\004data\030\001 \001(\0132\024.vega.GovernanceDat" + - "aR\004data\"A\n\034ObservePartyProposalsRequest\022" + - "!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"I\n\035Ob" + - "servePartyProposalsResponse\022(\n\004data\030\001 \001(" + - "\0132\024.vega.GovernanceDataR\004data\"F\n\033Observe" + - "ProposalVotesRequest\022\'\n\013proposal_id\030\001 \001(" + - "\tB\006\342\337\037\002X\001R\nproposalId\">\n\034ObserveProposal" + - "VotesResponse\022\036\n\004vote\030\001 \001(\0132\n.vega.VoteR" + - "\004vote\"=\n\030ObservePartyVotesRequest\022!\n\010par" + - "ty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\";\n\031ObserveP" + - "artyVotesResponse\022\036\n\004vote\030\001 \001(\0132\n.vega.V" + - "oteR\004vote\"^\n\034MarginLevelsSubscribeReques" + - "t\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\022\033\n\t" + - "market_id\030\002 \001(\tR\010marketId\"X\n\035MarginLevel" + - "sSubscribeResponse\0227\n\rmargin_levels\030\001 \001(" + - "\0132\022.vega.MarginLevelsR\014marginLevels\"U\n\023M" + - "arginLevelsRequest\022!\n\010party_id\030\001 \001(\tB\006\342\337" + - "\037\002X\001R\007partyId\022\033\n\tmarket_id\030\002 \001(\tR\010market" + - "Id\"O\n\024MarginLevelsResponse\0227\n\rmargin_lev" + - "els\030\001 \003(\0132\022.vega.MarginLevelsR\014marginLev" + - "els\":\n\033MarketsDataSubscribeRequest\022\033\n\tma" + - "rket_id\030\001 \001(\tR\010marketId\"Q\n\034MarketsDataSu" + - "bscribeResponse\0221\n\013market_data\030\001 \001(\0132\020.v" + - "ega.MarketDataR\nmarketData\"<\n\025MarketData" + - "ByIDRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010" + - "marketId\"K\n\026MarketDataByIDResponse\0221\n\013ma" + - "rket_data\030\001 \001(\0132\020.vega.MarketDataR\nmarke" + - "tData\"\024\n\022MarketsDataRequest\"J\n\023MarketsDa" + - "taResponse\0223\n\014markets_data\030\001 \003(\0132\020.vega." + - "MarketDataR\013marketsData\"7\n\020LastTradeRequ" + - "est\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId" + - "\"6\n\021LastTradeResponse\022!\n\005trade\030\001 \001(\0132\013.v" + - "ega.TradeR\005trade\"8\n\021MarketByIDRequest\022#\n" + - "\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\":\n\022Ma" + - "rketByIDResponse\022$\n\006market\030\001 \001(\0132\014.vega." + - "MarketR\006market\"5\n\020PartyByIDRequest\022!\n\010pa" + - "rty_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"6\n\021PartyBy" + - "IDResponse\022!\n\005party\030\001 \001(\0132\013.vega.PartyR\005" + - "party\"\020\n\016PartiesRequest\"8\n\017PartiesRespon" + - "se\022%\n\007parties\030\001 \003(\0132\013.vega.PartyR\007partie" + - "s\"\202\001\n\024TradesByPartyRequest\022\031\n\010party_id\030\001" + - " \001(\tR\007partyId\022\033\n\tmarket_id\030\002 \001(\tR\010market" + - "Id\0222\n\npagination\030\003 \001(\0132\022.api.v1.Paginati" + - "onR\npagination\"<\n\025TradesByPartyResponse\022" + - "#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trades\"1\n\024" + - "TradesByOrderRequest\022\031\n\010order_id\030\001 \001(\tR\007" + - "orderId\"<\n\025TradesByOrderResponse\022#\n\006trad" + - "es\030\001 \003(\0132\013.vega.TradeR\006trades\"\217\001\n\030Accoun" + - "tsSubscribeRequest\022\033\n\tmarket_id\030\001 \001(\tR\010m" + - "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005as" + - "set\030\003 \001(\tR\005asset\022%\n\004type\030\004 \001(\0162\021.vega.Ac" + - "countTypeR\004type\"D\n\031AccountsSubscribeResp" + - "onse\022\'\n\007account\030\001 \001(\0132\r.vega.AccountR\007ac" + - "count\"P\n\026OrdersSubscribeRequest\022\033\n\tmarke" + - "t_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\tR\007" + - "partyId\"P\n\026TradesSubscribeRequest\022\033\n\tmar" + - "ket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\t" + - "R\007partyId\"j\n\027CandlesSubscribeRequest\022#\n\t" + - "market_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022*\n\010int" + - "erval\030\002 \001(\0162\016.vega.IntervalR\010interval\"@\n" + - "\030CandlesSubscribeResponse\022$\n\006candle\030\001 \001(" + - "\0132\014.vega.CandleR\006candle\"B\n\033MarketDepthSu" + - "bscribeRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X" + - "\001R\010marketId\"T\n\034MarketDepthSubscribeRespo" + - "nse\0224\n\014market_depth\030\001 \001(\0132\021.vega.MarketD" + - "epthR\013marketDepth\"I\n\"MarketDepthUpdatesS" + - "ubscribeRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002" + - "X\001R\010marketId\"V\n#MarketDepthUpdatesSubscr" + - "ibeResponse\022/\n\006update\030\001 \001(\0132\027.vega.Marke" + - "tDepthUpdateR\006update\"S\n\031PositionsSubscri" + - "beRequest\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\033\n\t" + - "market_id\030\002 \001(\tR\010marketId\"H\n\032PositionsSu" + - "bscribeResponse\022*\n\010position\030\001 \001(\0132\016.vega" + - ".PositionR\010position\"p\n\025OrdersByMarketReq" + - "uest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketI" + - "d\0222\n\npagination\030\002 \001(\0132\022.api.v1.Paginatio" + - "nR\npagination\"=\n\026OrdersByMarketResponse\022" + - "#\n\006orders\030\001 \003(\0132\013.vega.OrderR\006orders\"m\n\024" + - "OrdersByPartyRequest\022!\n\010party_id\030\001 \001(\tB\006" + - "\342\337\037\002X\001R\007partyId\0222\n\npagination\030\002 \001(\0132\022.ap" + - "i.v1.PaginationR\npagination\"<\n\025OrdersByP" + - "artyResponse\022#\n\006orders\030\001 \003(\0132\013.vega.Orde" + - "rR\006orders\"c\n\031OrderByMarketAndIDRequest\022#" + - "\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022!\n\010o" + - "rder_id\030\002 \001(\tB\006\342\337\037\002X\001R\007orderId\"?\n\032OrderB" + - "yMarketAndIDResponse\022!\n\005order\030\001 \001(\0132\013.ve" + - "ga.OrderR\005order\"?\n\027OrderByReferenceReque" + - "st\022$\n\treference\030\001 \001(\tB\006\342\337\037\002X\001R\treference" + - "\"=\n\030OrderByReferenceResponse\022!\n\005order\030\001 " + - "\001(\0132\013.vega.OrderR\005order\"\020\n\016MarketsReques" + - "t\"9\n\017MarketsResponse\022&\n\007markets\030\001 \003(\0132\014." + - "vega.MarketR\007markets\"\222\001\n\016CandlesRequest\022" + - "#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\022/\n\017" + - "since_timestamp\030\002 \001(\003B\006\342\337\037\002\020\000R\016sinceTime" + - "stamp\022*\n\010interval\030\003 \001(\0162\016.vega.IntervalR" + - "\010interval\"9\n\017CandlesResponse\022&\n\007candles\030" + - "\001 \003(\0132\014.vega.CandleR\007candles\"V\n\022MarketDe" + - "pthRequest\022#\n\tmarket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010m" + - "arketId\022\033\n\tmax_depth\030\002 \001(\004R\010maxDepth\"\321\001\n" + - "\023MarketDepthResponse\022\033\n\tmarket_id\030\001 \001(\tR" + - "\010marketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevel" + - "R\003buy\022$\n\004sell\030\003 \003(\0132\020.vega.PriceLevelR\004s" + - "ell\022*\n\nlast_trade\030\004 \001(\0132\013.vega.TradeR\tla" + - "stTrade\022\'\n\017sequence_number\030\005 \001(\004R\016sequen" + - "ceNumber\"p\n\025TradesByMarketRequest\022#\n\tmar" + - "ket_id\030\001 \001(\tB\006\342\337\037\002X\001R\010marketId\0222\n\npagina" + - "tion\030\002 \001(\0132\022.api.v1.PaginationR\npaginati" + - "on\"=\n\026TradesByMarketResponse\022#\n\006trades\030\001" + - " \003(\0132\013.vega.TradeR\006trades\"Y\n\027PositionsBy" + - "PartyRequest\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007" + - "partyId\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\"H\n\030" + - "PositionsByPartyResponse\022,\n\tpositions\030\001 " + - "\003(\0132\016.vega.PositionR\tpositions\"\024\n\022GetVeg" + - "aTimeRequest\"3\n\023GetVegaTimeResponse\022\034\n\tt" + - "imestamp\030\001 \001(\003R\ttimestamp\"V\n\nPagination\022" + - "\022\n\004skip\030\001 \001(\004R\004skip\022\024\n\005limit\030\002 \001(\004R\005limi" + - "t\022\036\n\ndescending\030\003 \001(\010R\ndescending\">\n\027Ord" + - "ersSubscribeResponse\022#\n\006orders\030\001 \003(\0132\013.v" + - "ega.OrderR\006orders\">\n\027TradesSubscribeResp" + - "onse\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" + - "s\"#\n!TransferResponsesSubscribeRequest\"X" + - "\n\"TransferResponsesSubscribeResponse\0222\n\010" + - "response\030\001 \001(\0132\026.vega.TransferResponseR\010" + - "response\"\213\001\n\024PartyAccountsRequest\022\031\n\010par" + - "ty_id\030\001 \001(\tR\007partyId\022\033\n\tmarket_id\030\002 \001(\tR" + - "\010marketId\022%\n\004type\030\003 \001(\0162\021.vega.AccountTy" + - "peR\004type\022\024\n\005asset\030\004 \001(\tR\005asset\"B\n\025PartyA" + - "ccountsResponse\022)\n\010accounts\030\001 \003(\0132\r.vega" + - ".AccountR\010accounts\"J\n\025MarketAccountsRequ" + - "est\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\024\n\005asse" + - "t\030\002 \001(\tR\005asset\"C\n\026MarketAccountsResponse" + - "\022)\n\010accounts\030\001 \003(\0132\r.vega.AccountR\010accou" + - "nts\"8\n FeeInfrastructureAccountsRequest\022" + - "\024\n\005asset\030\001 \001(\tR\005asset\"N\n!FeeInfrastructu" + - "reAccountsResponse\022)\n\010accounts\030\001 \003(\0132\r.v" + - "ega.AccountR\010accounts\"h\n PrepareProposal" + - "SubmissionRequest\022D\n\nsubmission\030\001 \001(\0132$." + - "vega.commands.v1.ProposalSubmissionR\nsub" + - "mission\"}\n!PrepareProposalSubmissionResp" + - "onse\022\022\n\004blob\030\001 \001(\014R\004blob\022D\n\nsubmission\030\002" + - " \001(\0132$.vega.commands.v1.ProposalSubmissi" + - "onR\nsubmission\"h\n\034PrepareVoteSubmissionR" + - "equest\022H\n\nsubmission\030\001 \001(\0132 .vega.comman" + - "ds.v1.VoteSubmissionB\006\342\337\037\002 \001R\nsubmission" + - "\"u\n\035PrepareVoteSubmissionResponse\022\022\n\004blo" + - "b\030\001 \001(\014R\004blob\022@\n\nsubmission\030\002 \001(\0132 .vega" + - ".commands.v1.VoteSubmissionR\nsubmission\"" + - "z\n PrepareLiquidityProvisionRequest\022V\n\ns" + - "ubmission\030\001 \001(\0132..vega.commands.v1.Liqui" + - "dityProvisionSubmissionB\006\342\337\037\002 \001R\nsubmiss" + - "ion\"7\n!PrepareLiquidityProvisionResponse" + - "\022\022\n\004blob\030\001 \001(\014R\004blob\"O\n\020OrderByIDRequest" + - "\022!\n\010order_id\030\001 \001(\tB\006\342\337\037\002 \001R\007orderId\022\030\n\007v" + - "ersion\030\002 \001(\004R\007version\"6\n\021OrderByIDRespon" + - "se\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order\"q\n" + - "\030OrderVersionsByIDRequest\022!\n\010order_id\030\001 " + - "\001(\tB\006\342\337\037\002 \001R\007orderId\0222\n\npagination\030\002 \001(\013" + - "2\022.api.v1.PaginationR\npagination\"@\n\031Orde" + - "rVersionsByIDResponse\022#\n\006orders\030\001 \003(\0132\013." + - "vega.OrderR\006orders\"7\n\022EstimateFeeRequest" + - "\022!\n\005order\030\001 \001(\0132\013.vega.OrderR\005order\"2\n\023E" + - "stimateFeeResponse\022\033\n\003fee\030\002 \001(\0132\t.vega.F" + - "eeR\003fee\":\n\025EstimateMarginRequest\022!\n\005orde" + - "r\030\001 \001(\0132\013.vega.OrderR\005order\"Q\n\026EstimateM" + - "arginResponse\0227\n\rmargin_levels\030\002 \001(\0132\022.v" + - "ega.MarginLevelsR\014marginLevels\"\241\001\n\026Obser" + - "veEventBusRequest\0220\n\004type\030\001 \003(\0162\034.vega.e" + - "vents.v1.BusEventTypeR\004type\022\033\n\tmarket_id" + - "\030\002 \001(\tR\010marketId\022\031\n\010party_id\030\003 \001(\tR\007part" + - "yId\022\035\n\nbatch_size\030\004 \001(\003R\tbatchSize\"K\n\027Ob" + - "serveEventBusResponse\0220\n\006events\030\001 \003(\0132\030." + - "vega.events.v1.BusEventR\006events\"\023\n\021Stati" + - "sticsRequest\"F\n\022StatisticsResponse\0220\n\nst" + - "atistics\030\001 \001(\0132\020.vega.StatisticsR\nstatis" + - "tics\"7\n\022WithdrawalsRequest\022!\n\010party_id\030\001" + - " \001(\tB\006\342\337\037\002X\001R\007partyId\"I\n\023WithdrawalsResp" + - "onse\0222\n\013withdrawals\030\001 \003(\0132\020.vega.Withdra" + - "walR\013withdrawals\"+\n\021WithdrawalRequest\022\026\n" + - "\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"F\n\022WithdrawalRespo" + - "nse\0220\n\nwithdrawal\030\001 \001(\0132\020.vega.Withdrawa" + - "lR\nwithdrawal\"M\n\036ERC20WithdrawalApproval" + - "Request\022+\n\rwithdrawal_id\030\001 \001(\tB\006\342\337\037\002X\001R\014" + - "withdrawalId\"\252\001\n\037ERC20WithdrawalApproval" + - "Response\022!\n\014asset_source\030\001 \001(\tR\013assetSou" + - "rce\022\026\n\006amount\030\002 \001(\tR\006amount\022\026\n\006expiry\030\003 " + - "\001(\003R\006expiry\022\024\n\005nonce\030\004 \001(\tR\005nonce\022\036\n\nsig" + - "natures\030\005 \001(\tR\nsignatures\"4\n\017DepositsReq" + - "uest\022!\n\010party_id\030\001 \001(\tB\006\342\337\037\002X\001R\007partyId\"" + - "=\n\020DepositsResponse\022)\n\010deposits\030\001 \003(\0132\r." + - "vega.DepositR\010deposits\"(\n\016DepositRequest" + - "\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\":\n\017DepositRespo" + - "nse\022\'\n\007deposit\030\001 \001(\0132\r.vega.DepositR\007dep" + - "osit\"\032\n\030NetworkParametersRequest\"b\n\031Netw" + - "orkParametersResponse\022E\n\022network_paramet" + - "ers\030\001 \003(\0132\026.vega.NetworkParameterR\021netwo" + - "rkParameters\"J\n\032LiquidityProvisionsReque" + - "st\022\026\n\006market\030\001 \001(\tR\006market\022\024\n\005party\030\002 \001(" + - "\tR\005party\"j\n\033LiquidityProvisionsResponse\022" + - "K\n\024liquidity_provisions\030\001 \003(\0132\030.vega.Liq" + - "uidityProvisionR\023liquidityProvisions\"+\n\021" + - "OracleSpecRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002i" + - "d\"M\n\022OracleSpecResponse\0227\n\013oracle_spec\030\001" + - " \001(\0132\026.oracles.v1.OracleSpecR\noracleSpec" + - "\"\024\n\022OracleSpecsRequest\"P\n\023OracleSpecsRes" + - "ponse\0229\n\014oracle_specs\030\001 \003(\0132\026.oracles.v1" + - ".OracleSpecR\013oracleSpecs\"1\n\027OracleDataBy" + - "SpecRequest\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002X\001R\002id\"S\n\030O" + - "racleDataBySpecResponse\0227\n\013oracle_data\030\001" + - " \003(\0132\026.oracles.v1.OracleDataR\noracleData" + - "\"\030\n\026LastBlockHeightRequest\"1\n\027LastBlockH" + - "eightResponse\022\026\n\006height\030\001 \001(\004R\006height2\334\007" + - "\n\016TradingService\022[\n\022PrepareSubmitOrder\022!" + - ".api.v1.PrepareSubmitOrderRequest\032\".api." + - "v1.PrepareSubmitOrderResponse\022[\n\022Prepare" + - "CancelOrder\022!.api.v1.PrepareCancelOrderR" + - "equest\032\".api.v1.PrepareCancelOrderRespon" + - "se\022X\n\021PrepareAmendOrder\022 .api.v1.Prepare" + - "AmendOrderRequest\032!.api.v1.PrepareAmendO" + - "rderResponse\022R\n\017PrepareWithdraw\022\036.api.v1" + - ".PrepareWithdrawRequest\032\037.api.v1.Prepare" + - "WithdrawResponse\022X\n\021SubmitTransaction\022 ." + - "api.v1.SubmitTransactionRequest\032!.api.v1" + - ".SubmitTransactionResponse\022^\n\023SubmitTran" + - "sactionV2\022\".api.v1.SubmitTransactionV2Re" + - "quest\032#.api.v1.SubmitTransactionV2Respon" + - "se\022p\n\031PrepareProposalSubmission\022(.api.v1" + - ".PrepareProposalSubmissionRequest\032).api." + - "v1.PrepareProposalSubmissionResponse\022d\n\025" + - "PrepareVoteSubmission\022$.api.v1.PrepareVo" + - "teSubmissionRequest\032%.api.v1.PrepareVote" + - "SubmissionResponse\022^\n\023PropagateChainEven" + + "to-validators/validator.proto\"i\n\032Propaga" + + "teChainEventRequest\022\024\n\005event\030\001 \001(\014R\005even" + + "t\022\027\n\007pub_key\030\002 \001(\tR\006pubKey\022\034\n\tsignature\030" + + "\003 \001(\014R\tsignature\"7\n\033PropagateChainEventR" + + "esponse\022\030\n\007success\030\001 \001(\010R\007success\"\326\001\n\032Su" + + "bmitTransactionV2Request\022-\n\002tx\030\001 \001(\0132\035.v" + + "ega.commands.v1.TransactionR\002tx\022;\n\004type\030" + + "\002 \001(\0162\'.api.v1.SubmitTransactionV2Reques" + + "t.TypeR\004type\"L\n\004Type\022\024\n\020TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nTYPE_ASYNC\020\001\022\r\n\tTYPE_SYNC\020\002\022\017\n\013TYP" + + "E_COMMIT\020\003\"7\n\033SubmitTransactionV2Respons" + + "e\022\030\n\007success\030\001 \001(\010R\007success\"\024\n\022GetVegaTi" + + "meRequest\"3\n\023GetVegaTimeResponse\022\034\n\ttime" + + "stamp\030\001 \001(\003R\ttimestamp\"\241\001\n\026ObserveEventB" + + "usRequest\0220\n\004type\030\001 \003(\0162\034.vega.events.v1" + + ".BusEventTypeR\004type\022\033\n\tmarket_id\030\002 \001(\tR\010" + + "marketId\022\031\n\010party_id\030\003 \001(\tR\007partyId\022\035\n\nb" + + "atch_size\030\004 \001(\003R\tbatchSize\"K\n\027ObserveEve" + + "ntBusResponse\0220\n\006events\030\001 \003(\0132\030.vega.eve" + + "nts.v1.BusEventR\006events\"\023\n\021StatisticsReq" + + "uest\"H\n\022StatisticsResponse\0222\n\nstatistics" + + "\030\001 \001(\0132\022.api.v1.StatisticsR\nstatistics\"\351" + + "\n\n\nStatistics\022!\n\014block_height\030\001 \001(\004R\013blo" + + "ckHeight\022%\n\016backlog_length\030\002 \001(\004R\rbacklo" + + "gLength\022\037\n\013total_peers\030\003 \001(\004R\ntotalPeers" + + "\022!\n\014genesis_time\030\004 \001(\tR\013genesisTime\022!\n\014c" + + "urrent_time\030\005 \001(\tR\013currentTime\022\033\n\tvega_t" + + "ime\030\006 \001(\tR\010vegaTime\022)\n\006status\030\007 \001(\0162\021.ve" + + "ga.ChainStatusR\006status\022 \n\014tx_per_block\030\010" + + " \001(\004R\ntxPerBlock\022(\n\020average_tx_bytes\030\t \001" + + "(\004R\016averageTxBytes\0227\n\030average_orders_per" + + "_block\030\n \001(\004R\025averageOrdersPerBlock\022*\n\021t" + + "rades_per_second\030\013 \001(\004R\017tradesPerSecond\022" + + "*\n\021orders_per_second\030\014 \001(\004R\017ordersPerSec" + + "ond\022#\n\rtotal_markets\030\r \001(\004R\014totalMarkets" + + "\022*\n\021total_amend_order\030\020 \001(\004R\017totalAmendO" + + "rder\022,\n\022total_cancel_order\030\021 \001(\004R\020totalC" + + "ancelOrder\022,\n\022total_create_order\030\022 \001(\004R\020" + + "totalCreateOrder\022!\n\014total_orders\030\023 \001(\004R\013" + + "totalOrders\022!\n\014total_trades\030\024 \001(\004R\013total" + + "Trades\022/\n\023order_subscriptions\030\025 \001(\rR\022ord" + + "erSubscriptions\022/\n\023trade_subscriptions\030\026" + + " \001(\rR\022tradeSubscriptions\0221\n\024candle_subsc" + + "riptions\030\027 \001(\rR\023candleSubscriptions\022<\n\032m" + + "arket_depth_subscriptions\030\030 \001(\rR\030marketD" + + "epthSubscriptions\0227\n\027positions_subscript" + + "ions\030\031 \001(\rR\026positionsSubscriptions\0223\n\025ac" + + "count_subscriptions\030\032 \001(\rR\024accountSubscr" + + "iptions\022:\n\031market_data_subscriptions\030\033 \001" + + "(\rR\027marketDataSubscriptions\022(\n\020app_versi" + + "on_hash\030\034 \001(\tR\016appVersionHash\022\037\n\013app_ver" + + "sion\030\035 \001(\tR\nappVersion\022#\n\rchain_version\030" + + "\036 \001(\tR\014chainVersion\022%\n\016block_duration\030\037 " + + "\001(\004R\rblockDuration\022\026\n\006uptime\030 \001(\tR\006upti" + + "me\022\031\n\010chain_id\030! \001(\tR\007chainId\022K\n\"market_" + + "depth_updates_subscriptions\030\" \001(\rR\037marke" + + "tDepthUpdatesSubscriptions\"\030\n\026LastBlockH" + + "eightRequest\"1\n\027LastBlockHeightResponse\022" + + "\026\n\006height\030\001 \001(\004R\006height2\211\004\n\016TradingServi" + + "ce\022^\n\023SubmitTransactionV2\022\".api.v1.Submi" + + "tTransactionV2Request\032#.api.v1.SubmitTra" + + "nsactionV2Response\022^\n\023PropagateChainEven" + "t\022\".api.v1.PropagateChainEventRequest\032#." + - "api.v1.PropagateChainEventResponse\022p\n\031Pr" + - "epareLiquidityProvision\022(.api.v1.Prepare" + - "LiquidityProvisionRequest\032).api.v1.Prepa" + - "reLiquidityProvisionResponse2\257+\n\022Trading" + - "DataService\022O\n\016MarketAccounts\022\035.api.v1.M" + - "arketAccountsRequest\032\036.api.v1.MarketAcco" + - "untsResponse\022L\n\rPartyAccounts\022\034.api.v1.P" + - "artyAccountsRequest\032\035.api.v1.PartyAccoun" + - "tsResponse\022p\n\031FeeInfrastructureAccounts\022" + - "(.api.v1.FeeInfrastructureAccountsReques" + - "t\032).api.v1.FeeInfrastructureAccountsResp" + - "onse\022:\n\007Candles\022\026.api.v1.CandlesRequest\032" + - "\027.api.v1.CandlesResponse\022O\n\016MarketDataBy" + - "ID\022\035.api.v1.MarketDataByIDRequest\032\036.api." + - "v1.MarketDataByIDResponse\022F\n\013MarketsData" + - "\022\032.api.v1.MarketsDataRequest\032\033.api.v1.Ma" + - "rketsDataResponse\022C\n\nMarketByID\022\031.api.v1" + - ".MarketByIDRequest\032\032.api.v1.MarketByIDRe" + - "sponse\022F\n\013MarketDepth\022\032.api.v1.MarketDep" + - "thRequest\032\033.api.v1.MarketDepthResponse\022:" + - "\n\007Markets\022\026.api.v1.MarketsRequest\032\027.api." + - "v1.MarketsResponse\022[\n\022OrderByMarketAndID" + - "\022!.api.v1.OrderByMarketAndIDRequest\032\".ap" + - "i.v1.OrderByMarketAndIDResponse\022U\n\020Order" + - "ByReference\022\037.api.v1.OrderByReferenceReq" + - "uest\032 .api.v1.OrderByReferenceResponse\022O" + - "\n\016OrdersByMarket\022\035.api.v1.OrdersByMarket" + - "Request\032\036.api.v1.OrdersByMarketResponse\022" + - "L\n\rOrdersByParty\022\034.api.v1.OrdersByPartyR" + - "equest\032\035.api.v1.OrdersByPartyResponse\022@\n" + - "\tOrderByID\022\030.api.v1.OrderByIDRequest\032\031.a" + - "pi.v1.OrderByIDResponse\022X\n\021OrderVersions" + - "ByID\022 .api.v1.OrderVersionsByIDRequest\032!" + - ".api.v1.OrderVersionsByIDResponse\022I\n\014Mar" + - "ginLevels\022\033.api.v1.MarginLevelsRequest\032\034" + - ".api.v1.MarginLevelsResponse\022:\n\007Parties\022" + - "\026.api.v1.PartiesRequest\032\027.api.v1.Parties" + - "Response\022@\n\tPartyByID\022\030.api.v1.PartyByID" + - "Request\032\031.api.v1.PartyByIDResponse\022U\n\020Po" + - "sitionsByParty\022\037.api.v1.PositionsByParty" + - "Request\032 .api.v1.PositionsByPartyRespons" + - "e\022@\n\tLastTrade\022\030.api.v1.LastTradeRequest" + - "\032\031.api.v1.LastTradeResponse\022O\n\016TradesByM" + - "arket\022\035.api.v1.TradesByMarketRequest\032\036.a" + - "pi.v1.TradesByMarketResponse\022L\n\rTradesBy" + - "Order\022\034.api.v1.TradesByOrderRequest\032\035.ap" + - "i.v1.TradesByOrderResponse\022L\n\rTradesByPa" + - "rty\022\034.api.v1.TradesByPartyRequest\032\035.api." + - "v1.TradesByPartyResponse\022I\n\014GetProposals" + - "\022\033.api.v1.GetProposalsRequest\032\034.api.v1.G" + - "etProposalsResponse\022^\n\023GetProposalsByPar" + - "ty\022\".api.v1.GetProposalsByPartyRequest\032#" + - ".api.v1.GetProposalsByPartyResponse\022R\n\017G" + - "etVotesByParty\022\036.api.v1.GetVotesByPartyR" + - "equest\032\037.api.v1.GetVotesByPartyResponse\022" + - "d\n\025GetNewMarketProposals\022$.api.v1.GetNew" + - "MarketProposalsRequest\032%.api.v1.GetNewMa" + - "rketProposalsResponse\022m\n\030GetUpdateMarket" + - "Proposals\022\'.api.v1.GetUpdateMarketPropos" + - "alsRequest\032(.api.v1.GetUpdateMarketPropo" + - "salsResponse\022|\n\035GetNetworkParametersProp" + - "osals\022,.api.v1.GetNetworkParametersPropo" + - "salsRequest\032-.api.v1.GetNetworkParameter" + - "sProposalsResponse\022a\n\024GetNewAssetProposa" + - "ls\022#.api.v1.GetNewAssetProposalsRequest\032" + - "$.api.v1.GetNewAssetProposalsResponse\022R\n" + - "\017GetProposalByID\022\036.api.v1.GetProposalByI" + - "DRequest\032\037.api.v1.GetProposalByIDRespons" + - "e\022g\n\026GetProposalByReference\022%.api.v1.Get" + - "ProposalByReferenceRequest\032&.api.v1.GetP" + - "roposalByReferenceResponse\022Z\n\021ObserveGov" + - "ernance\022 .api.v1.ObserveGovernanceReques" + - "t\032!.api.v1.ObserveGovernanceResponse0\001\022f" + - "\n\025ObservePartyProposals\022$.api.v1.Observe" + - "PartyProposalsRequest\032%.api.v1.ObservePa" + - "rtyProposalsResponse0\001\022Z\n\021ObservePartyVo" + - "tes\022 .api.v1.ObservePartyVotesRequest\032!.", - "api.v1.ObservePartyVotesResponse0\001\022c\n\024Ob" + - "serveProposalVotes\022#.api.v1.ObservePropo" + - "salVotesRequest\032$.api.v1.ObserveProposal" + - "VotesResponse0\001\022V\n\017ObserveEventBus\022\036.api" + - ".v1.ObserveEventBusRequest\032\037.api.v1.Obse" + - "rveEventBusResponse(\0010\001\022C\n\nStatistics\022\031." + - "api.v1.StatisticsRequest\032\032.api.v1.Statis" + - "ticsResponse\022R\n\017LastBlockHeight\022\036.api.v1" + - ".LastBlockHeightRequest\032\037.api.v1.LastBlo" + - "ckHeightResponse\022F\n\013GetVegaTime\022\032.api.v1" + - ".GetVegaTimeRequest\032\033.api.v1.GetVegaTime" + - "Response\022Z\n\021AccountsSubscribe\022 .api.v1.A" + - "ccountsSubscribeRequest\032!.api.v1.Account" + - "sSubscribeResponse0\001\022W\n\020CandlesSubscribe" + - "\022\037.api.v1.CandlesSubscribeRequest\032 .api." + - "v1.CandlesSubscribeResponse0\001\022f\n\025MarginL" + - "evelsSubscribe\022$.api.v1.MarginLevelsSubs" + - "cribeRequest\032%.api.v1.MarginLevelsSubscr" + - "ibeResponse0\001\022c\n\024MarketDepthSubscribe\022#." + - "api.v1.MarketDepthSubscribeRequest\032$.api" + - ".v1.MarketDepthSubscribeResponse0\001\022x\n\033Ma" + - "rketDepthUpdatesSubscribe\022*.api.v1.Marke" + - "tDepthUpdatesSubscribeRequest\032+.api.v1.M" + - "arketDepthUpdatesSubscribeResponse0\001\022c\n\024" + - "MarketsDataSubscribe\022#.api.v1.MarketsDat" + - "aSubscribeRequest\032$.api.v1.MarketsDataSu" + - "bscribeResponse0\001\022T\n\017OrdersSubscribe\022\036.a" + - "pi.v1.OrdersSubscribeRequest\032\037.api.v1.Or" + - "dersSubscribeResponse0\001\022]\n\022PositionsSubs" + - "cribe\022!.api.v1.PositionsSubscribeRequest" + - "\032\".api.v1.PositionsSubscribeResponse0\001\022T" + - "\n\017TradesSubscribe\022\036.api.v1.TradesSubscri" + - "beRequest\032\037.api.v1.TradesSubscribeRespon" + - "se0\001\022u\n\032TransferResponsesSubscribe\022).api" + - ".v1.TransferResponsesSubscribeRequest\032*." + - "api.v1.TransferResponsesSubscribeRespons" + - "e0\001\022s\n\032GetNodeSignaturesAggregate\022).api." + - "v1.GetNodeSignaturesAggregateRequest\032*.a" + - "pi.v1.GetNodeSignaturesAggregateResponse" + - "\022@\n\tAssetByID\022\030.api.v1.AssetByIDRequest\032" + - "\031.api.v1.AssetByIDResponse\0227\n\006Assets\022\025.a" + - "pi.v1.AssetsRequest\032\026.api.v1.AssetsRespo" + - "nse\022F\n\013EstimateFee\022\032.api.v1.EstimateFeeR" + - "equest\032\033.api.v1.EstimateFeeResponse\022O\n\016E" + - "stimateMargin\022\035.api.v1.EstimateMarginReq" + - "uest\032\036.api.v1.EstimateMarginResponse\022j\n\027" + - "ERC20WithdrawalApproval\022&.api.v1.ERC20Wi" + - "thdrawalApprovalRequest\032\'.api.v1.ERC20Wi" + - "thdrawalApprovalResponse\022C\n\nWithdrawal\022\031" + - ".api.v1.WithdrawalRequest\032\032.api.v1.Withd" + - "rawalResponse\022F\n\013Withdrawals\022\032.api.v1.Wi" + - "thdrawalsRequest\032\033.api.v1.WithdrawalsRes" + - "ponse\022:\n\007Deposit\022\026.api.v1.DepositRequest" + - "\032\027.api.v1.DepositResponse\022=\n\010Deposits\022\027." + - "api.v1.DepositsRequest\032\030.api.v1.Deposits" + - "Response\022X\n\021NetworkParameters\022 .api.v1.N" + - "etworkParametersRequest\032!.api.v1.Network" + - "ParametersResponse\022^\n\023LiquidityProvision" + - "s\022\".api.v1.LiquidityProvisionsRequest\032#." + - "api.v1.LiquidityProvisionsResponse\022C\n\nOr" + - "acleSpec\022\031.api.v1.OracleSpecRequest\032\032.ap" + - "i.v1.OracleSpecResponse\022F\n\013OracleSpecs\022\032" + - ".api.v1.OracleSpecsRequest\032\033.api.v1.Orac" + - "leSpecsResponse\022U\n\020OracleDataBySpec\022\037.ap" + - "i.v1.OracleDataBySpecRequest\032 .api.v1.Or" + - "acleDataBySpecResponseB?\n\030io.vegaprotoco" + - "l.vega.apiZ#code.vegaprotocol.io/vega/pr" + - "oto/apib\006proto3" + "api.v1.PropagateChainEventResponse\022C\n\nSt" + + "atistics\022\031.api.v1.StatisticsRequest\032\032.ap" + + "i.v1.StatisticsResponse\022R\n\017LastBlockHeig" + + "ht\022\036.api.v1.LastBlockHeightRequest\032\037.api" + + ".v1.LastBlockHeightResponse\022F\n\013GetVegaTi" + + "me\022\032.api.v1.GetVegaTimeRequest\032\033.api.v1." + + "GetVegaTimeResponse\022V\n\017ObserveEventBus\022\036" + + ".api.v1.ObserveEventBusRequest\032\037.api.v1." + + "ObserveEventBusResponse(\0010\001B?\n\030io.vegapr" + + "otocol.vega.apiZ#code.vegaprotocol.io/ve" + + "ga/proto/apib\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -112944,918 +12316,79 @@ public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse getDefaultInstan internal_static_api_v1_PropagateChainEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_PropagateChainEventRequest_descriptor, - new java.lang.String[] { "Evt", "PubKey", "Signature", }); + new java.lang.String[] { "Event", "PubKey", "Signature", }); internal_static_api_v1_PropagateChainEventResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_api_v1_PropagateChainEventResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_PropagateChainEventResponse_descriptor, new java.lang.String[] { "Success", }); - internal_static_api_v1_SubmitTransactionRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_api_v1_SubmitTransactionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_SubmitTransactionRequest_descriptor, - new java.lang.String[] { "Tx", "Type", }); - internal_static_api_v1_SubmitTransactionResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_api_v1_SubmitTransactionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_SubmitTransactionResponse_descriptor, - new java.lang.String[] { "Success", }); internal_static_api_v1_SubmitTransactionV2Request_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(2); internal_static_api_v1_SubmitTransactionV2Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_SubmitTransactionV2Request_descriptor, new java.lang.String[] { "Tx", "Type", }); internal_static_api_v1_SubmitTransactionV2Response_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(3); internal_static_api_v1_SubmitTransactionV2Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_SubmitTransactionV2Response_descriptor, new java.lang.String[] { "Success", }); - internal_static_api_v1_PrepareWithdrawRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_api_v1_PrepareWithdrawRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareWithdrawRequest_descriptor, - new java.lang.String[] { "Withdraw", }); - internal_static_api_v1_PrepareWithdrawResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_api_v1_PrepareWithdrawResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareWithdrawResponse_descriptor, - new java.lang.String[] { "Blob", }); - internal_static_api_v1_PrepareSubmitOrderResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_api_v1_PrepareSubmitOrderResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareSubmitOrderResponse_descriptor, - new java.lang.String[] { "Blob", "SubmitId", }); - internal_static_api_v1_PrepareCancelOrderResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_api_v1_PrepareCancelOrderResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareCancelOrderResponse_descriptor, - new java.lang.String[] { "Blob", }); - internal_static_api_v1_PrepareAmendOrderResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_api_v1_PrepareAmendOrderResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareAmendOrderResponse_descriptor, - new java.lang.String[] { "Blob", }); - internal_static_api_v1_PrepareSubmitOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_api_v1_PrepareSubmitOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareSubmitOrderRequest_descriptor, - new java.lang.String[] { "Submission", }); - internal_static_api_v1_PrepareCancelOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_api_v1_PrepareCancelOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareCancelOrderRequest_descriptor, - new java.lang.String[] { "Cancellation", }); - internal_static_api_v1_PrepareAmendOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_api_v1_PrepareAmendOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareAmendOrderRequest_descriptor, - new java.lang.String[] { "Amendment", }); - internal_static_api_v1_AssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_api_v1_AssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AssetsRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_AssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_api_v1_AssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AssetsResponse_descriptor, - new java.lang.String[] { "Assets", }); - internal_static_api_v1_AssetByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_api_v1_AssetByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AssetByIDRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_AssetByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_api_v1_AssetByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AssetByIDResponse_descriptor, - new java.lang.String[] { "Asset", }); - internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_api_v1_GetNodeSignaturesAggregateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNodeSignaturesAggregateRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_api_v1_GetNodeSignaturesAggregateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNodeSignaturesAggregateResponse_descriptor, - new java.lang.String[] { "Signatures", }); - internal_static_api_v1_OptionalProposalState_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_api_v1_OptionalProposalState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OptionalProposalState_descriptor, - new java.lang.String[] { "Value", }); - internal_static_api_v1_GetProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_api_v1_GetProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalsRequest_descriptor, - new java.lang.String[] { "SelectInState", }); - internal_static_api_v1_GetProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_api_v1_GetProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetProposalsByPartyRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_api_v1_GetProposalsByPartyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalsByPartyRequest_descriptor, - new java.lang.String[] { "PartyId", "SelectInState", }); - internal_static_api_v1_GetProposalsByPartyResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_api_v1_GetProposalsByPartyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalsByPartyResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetVotesByPartyRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_api_v1_GetVotesByPartyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetVotesByPartyRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_GetVotesByPartyResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_api_v1_GetVotesByPartyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetVotesByPartyResponse_descriptor, - new java.lang.String[] { "Votes", }); - internal_static_api_v1_GetNewMarketProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_api_v1_GetNewMarketProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNewMarketProposalsRequest_descriptor, - new java.lang.String[] { "SelectInState", }); - internal_static_api_v1_GetNewMarketProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_api_v1_GetNewMarketProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNewMarketProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_api_v1_GetUpdateMarketProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetUpdateMarketProposalsRequest_descriptor, - new java.lang.String[] { "MarketId", "SelectInState", }); - internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_api_v1_GetUpdateMarketProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetUpdateMarketProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_api_v1_GetNetworkParametersProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNetworkParametersProposalsRequest_descriptor, - new java.lang.String[] { "SelectInState", }); - internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_api_v1_GetNetworkParametersProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNetworkParametersProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetNewAssetProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_api_v1_GetNewAssetProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNewAssetProposalsRequest_descriptor, - new java.lang.String[] { "SelectInState", }); - internal_static_api_v1_GetNewAssetProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_api_v1_GetNewAssetProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetNewAssetProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetProposalByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_api_v1_GetProposalByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalByIDRequest_descriptor, - new java.lang.String[] { "ProposalId", }); - internal_static_api_v1_GetProposalByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_api_v1_GetProposalByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalByIDResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_GetProposalByReferenceRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_api_v1_GetProposalByReferenceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalByReferenceRequest_descriptor, - new java.lang.String[] { "Reference", }); - internal_static_api_v1_GetProposalByReferenceResponse_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_api_v1_GetProposalByReferenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_GetProposalByReferenceResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_ObserveGovernanceRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_api_v1_ObserveGovernanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObserveGovernanceRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_ObserveGovernanceResponse_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_api_v1_ObserveGovernanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObserveGovernanceResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_ObservePartyProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_api_v1_ObservePartyProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObservePartyProposalsRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_ObservePartyProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_api_v1_ObservePartyProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObservePartyProposalsResponse_descriptor, - new java.lang.String[] { "Data", }); - internal_static_api_v1_ObserveProposalVotesRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_api_v1_ObserveProposalVotesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObserveProposalVotesRequest_descriptor, - new java.lang.String[] { "ProposalId", }); - internal_static_api_v1_ObserveProposalVotesResponse_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_api_v1_ObserveProposalVotesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObserveProposalVotesResponse_descriptor, - new java.lang.String[] { "Vote", }); - internal_static_api_v1_ObservePartyVotesRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_api_v1_ObservePartyVotesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObservePartyVotesRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_ObservePartyVotesResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_api_v1_ObservePartyVotesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ObservePartyVotesResponse_descriptor, - new java.lang.String[] { "Vote", }); - internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_api_v1_MarginLevelsSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarginLevelsSubscribeRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", }); - internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_api_v1_MarginLevelsSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarginLevelsSubscribeResponse_descriptor, - new java.lang.String[] { "MarginLevels", }); - internal_static_api_v1_MarginLevelsRequest_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_api_v1_MarginLevelsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarginLevelsRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", }); - internal_static_api_v1_MarginLevelsResponse_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_api_v1_MarginLevelsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarginLevelsResponse_descriptor, - new java.lang.String[] { "MarginLevels", }); - internal_static_api_v1_MarketsDataSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_api_v1_MarketsDataSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsDataSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_MarketsDataSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_api_v1_MarketsDataSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsDataSubscribeResponse_descriptor, - new java.lang.String[] { "MarketData", }); - internal_static_api_v1_MarketDataByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_api_v1_MarketDataByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDataByIDRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_MarketDataByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_api_v1_MarketDataByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDataByIDResponse_descriptor, - new java.lang.String[] { "MarketData", }); - internal_static_api_v1_MarketsDataRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_api_v1_MarketsDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsDataRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_MarketsDataResponse_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_api_v1_MarketsDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsDataResponse_descriptor, - new java.lang.String[] { "MarketsData", }); - internal_static_api_v1_LastTradeRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_api_v1_LastTradeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_LastTradeRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_LastTradeResponse_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_api_v1_LastTradeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_LastTradeResponse_descriptor, - new java.lang.String[] { "Trade", }); - internal_static_api_v1_MarketByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_api_v1_MarketByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketByIDRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_MarketByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_api_v1_MarketByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketByIDResponse_descriptor, - new java.lang.String[] { "Market", }); - internal_static_api_v1_PartyByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_api_v1_PartyByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartyByIDRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_PartyByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_api_v1_PartyByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartyByIDResponse_descriptor, - new java.lang.String[] { "Party", }); - internal_static_api_v1_PartiesRequest_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_api_v1_PartiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartiesRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_PartiesResponse_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_api_v1_PartiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartiesResponse_descriptor, - new java.lang.String[] { "Parties", }); - internal_static_api_v1_TradesByPartyRequest_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_api_v1_TradesByPartyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByPartyRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", "Pagination", }); - internal_static_api_v1_TradesByPartyResponse_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_api_v1_TradesByPartyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByPartyResponse_descriptor, - new java.lang.String[] { "Trades", }); - internal_static_api_v1_TradesByOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_api_v1_TradesByOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByOrderRequest_descriptor, - new java.lang.String[] { "OrderId", }); - internal_static_api_v1_TradesByOrderResponse_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_api_v1_TradesByOrderResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByOrderResponse_descriptor, - new java.lang.String[] { "Trades", }); - internal_static_api_v1_AccountsSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_api_v1_AccountsSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AccountsSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", "PartyId", "Asset", "Type", }); - internal_static_api_v1_AccountsSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_api_v1_AccountsSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_AccountsSubscribeResponse_descriptor, - new java.lang.String[] { "Account", }); - internal_static_api_v1_OrdersSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_api_v1_OrdersSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", "PartyId", }); - internal_static_api_v1_TradesSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_api_v1_TradesSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", "PartyId", }); - internal_static_api_v1_CandlesSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_api_v1_CandlesSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_CandlesSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", "Interval", }); - internal_static_api_v1_CandlesSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_api_v1_CandlesSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_CandlesSubscribeResponse_descriptor, - new java.lang.String[] { "Candle", }); - internal_static_api_v1_MarketDepthSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_api_v1_MarketDepthSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_MarketDepthSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_api_v1_MarketDepthSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthSubscribeResponse_descriptor, - new java.lang.String[] { "MarketDepth", }); - internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthUpdatesSubscribeRequest_descriptor, - new java.lang.String[] { "MarketId", }); - internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthUpdatesSubscribeResponse_descriptor, - new java.lang.String[] { "Update", }); - internal_static_api_v1_PositionsSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_api_v1_PositionsSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PositionsSubscribeRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", }); - internal_static_api_v1_PositionsSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_api_v1_PositionsSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PositionsSubscribeResponse_descriptor, - new java.lang.String[] { "Position", }); - internal_static_api_v1_OrdersByMarketRequest_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_api_v1_OrdersByMarketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersByMarketRequest_descriptor, - new java.lang.String[] { "MarketId", "Pagination", }); - internal_static_api_v1_OrdersByMarketResponse_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_api_v1_OrdersByMarketResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersByMarketResponse_descriptor, - new java.lang.String[] { "Orders", }); - internal_static_api_v1_OrdersByPartyRequest_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_api_v1_OrdersByPartyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersByPartyRequest_descriptor, - new java.lang.String[] { "PartyId", "Pagination", }); - internal_static_api_v1_OrdersByPartyResponse_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_api_v1_OrdersByPartyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersByPartyResponse_descriptor, - new java.lang.String[] { "Orders", }); - internal_static_api_v1_OrderByMarketAndIDRequest_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_api_v1_OrderByMarketAndIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByMarketAndIDRequest_descriptor, - new java.lang.String[] { "MarketId", "OrderId", }); - internal_static_api_v1_OrderByMarketAndIDResponse_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_api_v1_OrderByMarketAndIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByMarketAndIDResponse_descriptor, - new java.lang.String[] { "Order", }); - internal_static_api_v1_OrderByReferenceRequest_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_api_v1_OrderByReferenceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByReferenceRequest_descriptor, - new java.lang.String[] { "Reference", }); - internal_static_api_v1_OrderByReferenceResponse_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_api_v1_OrderByReferenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByReferenceResponse_descriptor, - new java.lang.String[] { "Order", }); - internal_static_api_v1_MarketsRequest_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_api_v1_MarketsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_MarketsResponse_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_api_v1_MarketsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketsResponse_descriptor, - new java.lang.String[] { "Markets", }); - internal_static_api_v1_CandlesRequest_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_api_v1_CandlesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_CandlesRequest_descriptor, - new java.lang.String[] { "MarketId", "SinceTimestamp", "Interval", }); - internal_static_api_v1_CandlesResponse_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_api_v1_CandlesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_CandlesResponse_descriptor, - new java.lang.String[] { "Candles", }); - internal_static_api_v1_MarketDepthRequest_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_api_v1_MarketDepthRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthRequest_descriptor, - new java.lang.String[] { "MarketId", "MaxDepth", }); - internal_static_api_v1_MarketDepthResponse_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_api_v1_MarketDepthResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketDepthResponse_descriptor, - new java.lang.String[] { "MarketId", "Buy", "Sell", "LastTrade", "SequenceNumber", }); - internal_static_api_v1_TradesByMarketRequest_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_api_v1_TradesByMarketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByMarketRequest_descriptor, - new java.lang.String[] { "MarketId", "Pagination", }); - internal_static_api_v1_TradesByMarketResponse_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_api_v1_TradesByMarketResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesByMarketResponse_descriptor, - new java.lang.String[] { "Trades", }); - internal_static_api_v1_PositionsByPartyRequest_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_api_v1_PositionsByPartyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PositionsByPartyRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", }); - internal_static_api_v1_PositionsByPartyResponse_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_api_v1_PositionsByPartyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PositionsByPartyResponse_descriptor, - new java.lang.String[] { "Positions", }); internal_static_api_v1_GetVegaTimeRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(4); internal_static_api_v1_GetVegaTimeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_GetVegaTimeRequest_descriptor, new java.lang.String[] { }); internal_static_api_v1_GetVegaTimeResponse_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(5); internal_static_api_v1_GetVegaTimeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_GetVegaTimeResponse_descriptor, new java.lang.String[] { "Timestamp", }); - internal_static_api_v1_Pagination_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_api_v1_Pagination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_Pagination_descriptor, - new java.lang.String[] { "Skip", "Limit", "Descending", }); - internal_static_api_v1_OrdersSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_api_v1_OrdersSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrdersSubscribeResponse_descriptor, - new java.lang.String[] { "Orders", }); - internal_static_api_v1_TradesSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_api_v1_TradesSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TradesSubscribeResponse_descriptor, - new java.lang.String[] { "Trades", }); - internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_api_v1_TransferResponsesSubscribeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TransferResponsesSubscribeRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(105); - internal_static_api_v1_TransferResponsesSubscribeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_TransferResponsesSubscribeResponse_descriptor, - new java.lang.String[] { "Response", }); - internal_static_api_v1_PartyAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(106); - internal_static_api_v1_PartyAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartyAccountsRequest_descriptor, - new java.lang.String[] { "PartyId", "MarketId", "Type", "Asset", }); - internal_static_api_v1_PartyAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(107); - internal_static_api_v1_PartyAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PartyAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", }); - internal_static_api_v1_MarketAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(108); - internal_static_api_v1_MarketAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketAccountsRequest_descriptor, - new java.lang.String[] { "MarketId", "Asset", }); - internal_static_api_v1_MarketAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(109); - internal_static_api_v1_MarketAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_MarketAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", }); - internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(110); - internal_static_api_v1_FeeInfrastructureAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_FeeInfrastructureAccountsRequest_descriptor, - new java.lang.String[] { "Asset", }); - internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(111); - internal_static_api_v1_FeeInfrastructureAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_FeeInfrastructureAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", }); - internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor = - getDescriptor().getMessageTypes().get(112); - internal_static_api_v1_PrepareProposalSubmissionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareProposalSubmissionRequest_descriptor, - new java.lang.String[] { "Submission", }); - internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor = - getDescriptor().getMessageTypes().get(113); - internal_static_api_v1_PrepareProposalSubmissionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareProposalSubmissionResponse_descriptor, - new java.lang.String[] { "Blob", "Submission", }); - internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor = - getDescriptor().getMessageTypes().get(114); - internal_static_api_v1_PrepareVoteSubmissionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareVoteSubmissionRequest_descriptor, - new java.lang.String[] { "Submission", }); - internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor = - getDescriptor().getMessageTypes().get(115); - internal_static_api_v1_PrepareVoteSubmissionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareVoteSubmissionResponse_descriptor, - new java.lang.String[] { "Blob", "Submission", }); - internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor = - getDescriptor().getMessageTypes().get(116); - internal_static_api_v1_PrepareLiquidityProvisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareLiquidityProvisionRequest_descriptor, - new java.lang.String[] { "Submission", }); - internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor = - getDescriptor().getMessageTypes().get(117); - internal_static_api_v1_PrepareLiquidityProvisionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_PrepareLiquidityProvisionResponse_descriptor, - new java.lang.String[] { "Blob", }); - internal_static_api_v1_OrderByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(118); - internal_static_api_v1_OrderByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByIDRequest_descriptor, - new java.lang.String[] { "OrderId", "Version", }); - internal_static_api_v1_OrderByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(119); - internal_static_api_v1_OrderByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderByIDResponse_descriptor, - new java.lang.String[] { "Order", }); - internal_static_api_v1_OrderVersionsByIDRequest_descriptor = - getDescriptor().getMessageTypes().get(120); - internal_static_api_v1_OrderVersionsByIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderVersionsByIDRequest_descriptor, - new java.lang.String[] { "OrderId", "Pagination", }); - internal_static_api_v1_OrderVersionsByIDResponse_descriptor = - getDescriptor().getMessageTypes().get(121); - internal_static_api_v1_OrderVersionsByIDResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OrderVersionsByIDResponse_descriptor, - new java.lang.String[] { "Orders", }); - internal_static_api_v1_EstimateFeeRequest_descriptor = - getDescriptor().getMessageTypes().get(122); - internal_static_api_v1_EstimateFeeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_EstimateFeeRequest_descriptor, - new java.lang.String[] { "Order", }); - internal_static_api_v1_EstimateFeeResponse_descriptor = - getDescriptor().getMessageTypes().get(123); - internal_static_api_v1_EstimateFeeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_EstimateFeeResponse_descriptor, - new java.lang.String[] { "Fee", }); - internal_static_api_v1_EstimateMarginRequest_descriptor = - getDescriptor().getMessageTypes().get(124); - internal_static_api_v1_EstimateMarginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_EstimateMarginRequest_descriptor, - new java.lang.String[] { "Order", }); - internal_static_api_v1_EstimateMarginResponse_descriptor = - getDescriptor().getMessageTypes().get(125); - internal_static_api_v1_EstimateMarginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_EstimateMarginResponse_descriptor, - new java.lang.String[] { "MarginLevels", }); internal_static_api_v1_ObserveEventBusRequest_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(6); internal_static_api_v1_ObserveEventBusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_ObserveEventBusRequest_descriptor, new java.lang.String[] { "Type", "MarketId", "PartyId", "BatchSize", }); internal_static_api_v1_ObserveEventBusResponse_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(7); internal_static_api_v1_ObserveEventBusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_ObserveEventBusResponse_descriptor, new java.lang.String[] { "Events", }); internal_static_api_v1_StatisticsRequest_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(8); internal_static_api_v1_StatisticsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_StatisticsRequest_descriptor, new java.lang.String[] { }); internal_static_api_v1_StatisticsResponse_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(9); internal_static_api_v1_StatisticsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_StatisticsResponse_descriptor, new java.lang.String[] { "Statistics", }); - internal_static_api_v1_WithdrawalsRequest_descriptor = - getDescriptor().getMessageTypes().get(130); - internal_static_api_v1_WithdrawalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_WithdrawalsRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_WithdrawalsResponse_descriptor = - getDescriptor().getMessageTypes().get(131); - internal_static_api_v1_WithdrawalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_WithdrawalsResponse_descriptor, - new java.lang.String[] { "Withdrawals", }); - internal_static_api_v1_WithdrawalRequest_descriptor = - getDescriptor().getMessageTypes().get(132); - internal_static_api_v1_WithdrawalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_WithdrawalRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_WithdrawalResponse_descriptor = - getDescriptor().getMessageTypes().get(133); - internal_static_api_v1_WithdrawalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_WithdrawalResponse_descriptor, - new java.lang.String[] { "Withdrawal", }); - internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor = - getDescriptor().getMessageTypes().get(134); - internal_static_api_v1_ERC20WithdrawalApprovalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ERC20WithdrawalApprovalRequest_descriptor, - new java.lang.String[] { "WithdrawalId", }); - internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor = - getDescriptor().getMessageTypes().get(135); - internal_static_api_v1_ERC20WithdrawalApprovalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_ERC20WithdrawalApprovalResponse_descriptor, - new java.lang.String[] { "AssetSource", "Amount", "Expiry", "Nonce", "Signatures", }); - internal_static_api_v1_DepositsRequest_descriptor = - getDescriptor().getMessageTypes().get(136); - internal_static_api_v1_DepositsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_DepositsRequest_descriptor, - new java.lang.String[] { "PartyId", }); - internal_static_api_v1_DepositsResponse_descriptor = - getDescriptor().getMessageTypes().get(137); - internal_static_api_v1_DepositsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_DepositsResponse_descriptor, - new java.lang.String[] { "Deposits", }); - internal_static_api_v1_DepositRequest_descriptor = - getDescriptor().getMessageTypes().get(138); - internal_static_api_v1_DepositRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_DepositRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_DepositResponse_descriptor = - getDescriptor().getMessageTypes().get(139); - internal_static_api_v1_DepositResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_DepositResponse_descriptor, - new java.lang.String[] { "Deposit", }); - internal_static_api_v1_NetworkParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(140); - internal_static_api_v1_NetworkParametersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_NetworkParametersRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_NetworkParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(141); - internal_static_api_v1_NetworkParametersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_NetworkParametersResponse_descriptor, - new java.lang.String[] { "NetworkParameters", }); - internal_static_api_v1_LiquidityProvisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(142); - internal_static_api_v1_LiquidityProvisionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_LiquidityProvisionsRequest_descriptor, - new java.lang.String[] { "Market", "Party", }); - internal_static_api_v1_LiquidityProvisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(143); - internal_static_api_v1_LiquidityProvisionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_LiquidityProvisionsResponse_descriptor, - new java.lang.String[] { "LiquidityProvisions", }); - internal_static_api_v1_OracleSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(144); - internal_static_api_v1_OracleSpecRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleSpecRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_OracleSpecResponse_descriptor = - getDescriptor().getMessageTypes().get(145); - internal_static_api_v1_OracleSpecResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleSpecResponse_descriptor, - new java.lang.String[] { "OracleSpec", }); - internal_static_api_v1_OracleSpecsRequest_descriptor = - getDescriptor().getMessageTypes().get(146); - internal_static_api_v1_OracleSpecsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleSpecsRequest_descriptor, - new java.lang.String[] { }); - internal_static_api_v1_OracleSpecsResponse_descriptor = - getDescriptor().getMessageTypes().get(147); - internal_static_api_v1_OracleSpecsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleSpecsResponse_descriptor, - new java.lang.String[] { "OracleSpecs", }); - internal_static_api_v1_OracleDataBySpecRequest_descriptor = - getDescriptor().getMessageTypes().get(148); - internal_static_api_v1_OracleDataBySpecRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleDataBySpecRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_api_v1_OracleDataBySpecResponse_descriptor = - getDescriptor().getMessageTypes().get(149); - internal_static_api_v1_OracleDataBySpecResponse_fieldAccessorTable = new + internal_static_api_v1_Statistics_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_api_v1_Statistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_api_v1_OracleDataBySpecResponse_descriptor, - new java.lang.String[] { "OracleData", }); + internal_static_api_v1_Statistics_descriptor, + new java.lang.String[] { "BlockHeight", "BacklogLength", "TotalPeers", "GenesisTime", "CurrentTime", "VegaTime", "Status", "TxPerBlock", "AverageTxBytes", "AverageOrdersPerBlock", "TradesPerSecond", "OrdersPerSecond", "TotalMarkets", "TotalAmendOrder", "TotalCancelOrder", "TotalCreateOrder", "TotalOrders", "TotalTrades", "OrderSubscriptions", "TradeSubscriptions", "CandleSubscriptions", "MarketDepthSubscriptions", "PositionsSubscriptions", "AccountSubscriptions", "MarketDataSubscriptions", "AppVersionHash", "AppVersion", "ChainVersion", "BlockDuration", "Uptime", "ChainId", "MarketDepthUpdatesSubscriptions", }); internal_static_api_v1_LastBlockHeightRequest_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(11); internal_static_api_v1_LastBlockHeightRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_LastBlockHeightRequest_descriptor, new java.lang.String[] { }); internal_static_api_v1_LastBlockHeightResponse_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(12); internal_static_api_v1_LastBlockHeightResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_v1_LastBlockHeightResponse_descriptor, new java.lang.String[] { "Height", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.github.mwitkow.go_proto_validators.Validator.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); io.vegaprotocol.vega.Vega.getDescriptor(); io.vegaprotocol.vega.Markets.getDescriptor(); io.vegaprotocol.vega.Governance.getDescriptor(); diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingDataServiceGrpc.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingDataServiceGrpc.java deleted file mode 100644 index 7f01bf16..00000000 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingDataServiceGrpc.java +++ /dev/null @@ -1,5629 +0,0 @@ -package io.vegaprotocol.vega.api; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.38.0)", - comments = "Source: api/trading.proto") -public final class TradingDataServiceGrpc { - - private TradingDataServiceGrpc() {} - - public static final String SERVICE_NAME = "api.v1.TradingDataService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getMarketAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketAccounts", - requestType = io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketAccountsMethod() { - io.grpc.MethodDescriptor getMarketAccountsMethod; - if ((getMarketAccountsMethod = TradingDataServiceGrpc.getMarketAccountsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketAccountsMethod = TradingDataServiceGrpc.getMarketAccountsMethod) == null) { - TradingDataServiceGrpc.getMarketAccountsMethod = getMarketAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketAccounts")) - .build(); - } - } - } - return getMarketAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getPartyAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PartyAccounts", - requestType = io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPartyAccountsMethod() { - io.grpc.MethodDescriptor getPartyAccountsMethod; - if ((getPartyAccountsMethod = TradingDataServiceGrpc.getPartyAccountsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getPartyAccountsMethod = TradingDataServiceGrpc.getPartyAccountsMethod) == null) { - TradingDataServiceGrpc.getPartyAccountsMethod = getPartyAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartyAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("PartyAccounts")) - .build(); - } - } - } - return getPartyAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getFeeInfrastructureAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FeeInfrastructureAccounts", - requestType = io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFeeInfrastructureAccountsMethod() { - io.grpc.MethodDescriptor getFeeInfrastructureAccountsMethod; - if ((getFeeInfrastructureAccountsMethod = TradingDataServiceGrpc.getFeeInfrastructureAccountsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getFeeInfrastructureAccountsMethod = TradingDataServiceGrpc.getFeeInfrastructureAccountsMethod) == null) { - TradingDataServiceGrpc.getFeeInfrastructureAccountsMethod = getFeeInfrastructureAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FeeInfrastructureAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("FeeInfrastructureAccounts")) - .build(); - } - } - } - return getFeeInfrastructureAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCandlesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Candles", - requestType = io.vegaprotocol.vega.api.Trading.CandlesRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.CandlesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCandlesMethod() { - io.grpc.MethodDescriptor getCandlesMethod; - if ((getCandlesMethod = TradingDataServiceGrpc.getCandlesMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getCandlesMethod = TradingDataServiceGrpc.getCandlesMethod) == null) { - TradingDataServiceGrpc.getCandlesMethod = getCandlesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Candles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.CandlesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.CandlesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Candles")) - .build(); - } - } - } - return getCandlesMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketDataByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketDataByID", - requestType = io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketDataByIDMethod() { - io.grpc.MethodDescriptor getMarketDataByIDMethod; - if ((getMarketDataByIDMethod = TradingDataServiceGrpc.getMarketDataByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketDataByIDMethod = TradingDataServiceGrpc.getMarketDataByIDMethod) == null) { - TradingDataServiceGrpc.getMarketDataByIDMethod = getMarketDataByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketDataByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketDataByID")) - .build(); - } - } - } - return getMarketDataByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketsDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketsData", - requestType = io.vegaprotocol.vega.api.Trading.MarketsDataRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketsDataResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketsDataMethod() { - io.grpc.MethodDescriptor getMarketsDataMethod; - if ((getMarketsDataMethod = TradingDataServiceGrpc.getMarketsDataMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketsDataMethod = TradingDataServiceGrpc.getMarketsDataMethod) == null) { - TradingDataServiceGrpc.getMarketsDataMethod = getMarketsDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketsData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsDataResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketsData")) - .build(); - } - } - } - return getMarketsDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketByID", - requestType = io.vegaprotocol.vega.api.Trading.MarketByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketByIDMethod() { - io.grpc.MethodDescriptor getMarketByIDMethod; - if ((getMarketByIDMethod = TradingDataServiceGrpc.getMarketByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketByIDMethod = TradingDataServiceGrpc.getMarketByIDMethod) == null) { - TradingDataServiceGrpc.getMarketByIDMethod = getMarketByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketByID")) - .build(); - } - } - } - return getMarketByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketDepthMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketDepth", - requestType = io.vegaprotocol.vega.api.Trading.MarketDepthRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketDepthResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketDepthMethod() { - io.grpc.MethodDescriptor getMarketDepthMethod; - if ((getMarketDepthMethod = TradingDataServiceGrpc.getMarketDepthMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketDepthMethod = TradingDataServiceGrpc.getMarketDepthMethod) == null) { - TradingDataServiceGrpc.getMarketDepthMethod = getMarketDepthMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketDepth")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketDepth")) - .build(); - } - } - } - return getMarketDepthMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Markets", - requestType = io.vegaprotocol.vega.api.Trading.MarketsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarketsMethod() { - io.grpc.MethodDescriptor getMarketsMethod; - if ((getMarketsMethod = TradingDataServiceGrpc.getMarketsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketsMethod = TradingDataServiceGrpc.getMarketsMethod) == null) { - TradingDataServiceGrpc.getMarketsMethod = getMarketsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Markets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Markets")) - .build(); - } - } - } - return getMarketsMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrderByMarketAndIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrderByMarketAndID", - requestType = io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrderByMarketAndIDMethod() { - io.grpc.MethodDescriptor getOrderByMarketAndIDMethod; - if ((getOrderByMarketAndIDMethod = TradingDataServiceGrpc.getOrderByMarketAndIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrderByMarketAndIDMethod = TradingDataServiceGrpc.getOrderByMarketAndIDMethod) == null) { - TradingDataServiceGrpc.getOrderByMarketAndIDMethod = getOrderByMarketAndIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrderByMarketAndID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrderByMarketAndID")) - .build(); - } - } - } - return getOrderByMarketAndIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrderByReferenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrderByReference", - requestType = io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrderByReferenceMethod() { - io.grpc.MethodDescriptor getOrderByReferenceMethod; - if ((getOrderByReferenceMethod = TradingDataServiceGrpc.getOrderByReferenceMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrderByReferenceMethod = TradingDataServiceGrpc.getOrderByReferenceMethod) == null) { - TradingDataServiceGrpc.getOrderByReferenceMethod = getOrderByReferenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrderByReference")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrderByReference")) - .build(); - } - } - } - return getOrderByReferenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrdersByMarketMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrdersByMarket", - requestType = io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrdersByMarketMethod() { - io.grpc.MethodDescriptor getOrdersByMarketMethod; - if ((getOrdersByMarketMethod = TradingDataServiceGrpc.getOrdersByMarketMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrdersByMarketMethod = TradingDataServiceGrpc.getOrdersByMarketMethod) == null) { - TradingDataServiceGrpc.getOrdersByMarketMethod = getOrdersByMarketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrdersByMarket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrdersByMarket")) - .build(); - } - } - } - return getOrdersByMarketMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrdersByPartyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrdersByParty", - requestType = io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrdersByPartyMethod() { - io.grpc.MethodDescriptor getOrdersByPartyMethod; - if ((getOrdersByPartyMethod = TradingDataServiceGrpc.getOrdersByPartyMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrdersByPartyMethod = TradingDataServiceGrpc.getOrdersByPartyMethod) == null) { - TradingDataServiceGrpc.getOrdersByPartyMethod = getOrdersByPartyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrdersByParty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrdersByParty")) - .build(); - } - } - } - return getOrdersByPartyMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrderByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrderByID", - requestType = io.vegaprotocol.vega.api.Trading.OrderByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrderByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrderByIDMethod() { - io.grpc.MethodDescriptor getOrderByIDMethod; - if ((getOrderByIDMethod = TradingDataServiceGrpc.getOrderByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrderByIDMethod = TradingDataServiceGrpc.getOrderByIDMethod) == null) { - TradingDataServiceGrpc.getOrderByIDMethod = getOrderByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrderByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrderByID")) - .build(); - } - } - } - return getOrderByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrderVersionsByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrderVersionsByID", - requestType = io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOrderVersionsByIDMethod() { - io.grpc.MethodDescriptor getOrderVersionsByIDMethod; - if ((getOrderVersionsByIDMethod = TradingDataServiceGrpc.getOrderVersionsByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrderVersionsByIDMethod = TradingDataServiceGrpc.getOrderVersionsByIDMethod) == null) { - TradingDataServiceGrpc.getOrderVersionsByIDMethod = getOrderVersionsByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrderVersionsByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrderVersionsByID")) - .build(); - } - } - } - return getOrderVersionsByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarginLevelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarginLevels", - requestType = io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMarginLevelsMethod() { - io.grpc.MethodDescriptor getMarginLevelsMethod; - if ((getMarginLevelsMethod = TradingDataServiceGrpc.getMarginLevelsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarginLevelsMethod = TradingDataServiceGrpc.getMarginLevelsMethod) == null) { - TradingDataServiceGrpc.getMarginLevelsMethod = getMarginLevelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarginLevels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarginLevels")) - .build(); - } - } - } - return getMarginLevelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getPartiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Parties", - requestType = io.vegaprotocol.vega.api.Trading.PartiesRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PartiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPartiesMethod() { - io.grpc.MethodDescriptor getPartiesMethod; - if ((getPartiesMethod = TradingDataServiceGrpc.getPartiesMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getPartiesMethod = TradingDataServiceGrpc.getPartiesMethod) == null) { - TradingDataServiceGrpc.getPartiesMethod = getPartiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Parties")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartiesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Parties")) - .build(); - } - } - } - return getPartiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getPartyByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PartyByID", - requestType = io.vegaprotocol.vega.api.Trading.PartyByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PartyByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPartyByIDMethod() { - io.grpc.MethodDescriptor getPartyByIDMethod; - if ((getPartyByIDMethod = TradingDataServiceGrpc.getPartyByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getPartyByIDMethod = TradingDataServiceGrpc.getPartyByIDMethod) == null) { - TradingDataServiceGrpc.getPartyByIDMethod = getPartyByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartyByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartyByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PartyByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("PartyByID")) - .build(); - } - } - } - return getPartyByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getPositionsByPartyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PositionsByParty", - requestType = io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPositionsByPartyMethod() { - io.grpc.MethodDescriptor getPositionsByPartyMethod; - if ((getPositionsByPartyMethod = TradingDataServiceGrpc.getPositionsByPartyMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getPositionsByPartyMethod = TradingDataServiceGrpc.getPositionsByPartyMethod) == null) { - TradingDataServiceGrpc.getPositionsByPartyMethod = getPositionsByPartyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PositionsByParty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("PositionsByParty")) - .build(); - } - } - } - return getPositionsByPartyMethod; - } - - private static volatile io.grpc.MethodDescriptor getLastTradeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LastTrade", - requestType = io.vegaprotocol.vega.api.Trading.LastTradeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.LastTradeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLastTradeMethod() { - io.grpc.MethodDescriptor getLastTradeMethod; - if ((getLastTradeMethod = TradingDataServiceGrpc.getLastTradeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getLastTradeMethod = TradingDataServiceGrpc.getLastTradeMethod) == null) { - TradingDataServiceGrpc.getLastTradeMethod = getLastTradeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LastTrade")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LastTradeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LastTradeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("LastTrade")) - .build(); - } - } - } - return getLastTradeMethod; - } - - private static volatile io.grpc.MethodDescriptor getTradesByMarketMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TradesByMarket", - requestType = io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTradesByMarketMethod() { - io.grpc.MethodDescriptor getTradesByMarketMethod; - if ((getTradesByMarketMethod = TradingDataServiceGrpc.getTradesByMarketMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getTradesByMarketMethod = TradingDataServiceGrpc.getTradesByMarketMethod) == null) { - TradingDataServiceGrpc.getTradesByMarketMethod = getTradesByMarketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TradesByMarket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("TradesByMarket")) - .build(); - } - } - } - return getTradesByMarketMethod; - } - - private static volatile io.grpc.MethodDescriptor getTradesByOrderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TradesByOrder", - requestType = io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTradesByOrderMethod() { - io.grpc.MethodDescriptor getTradesByOrderMethod; - if ((getTradesByOrderMethod = TradingDataServiceGrpc.getTradesByOrderMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getTradesByOrderMethod = TradingDataServiceGrpc.getTradesByOrderMethod) == null) { - TradingDataServiceGrpc.getTradesByOrderMethod = getTradesByOrderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TradesByOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("TradesByOrder")) - .build(); - } - } - } - return getTradesByOrderMethod; - } - - private static volatile io.grpc.MethodDescriptor getTradesByPartyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TradesByParty", - requestType = io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTradesByPartyMethod() { - io.grpc.MethodDescriptor getTradesByPartyMethod; - if ((getTradesByPartyMethod = TradingDataServiceGrpc.getTradesByPartyMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getTradesByPartyMethod = TradingDataServiceGrpc.getTradesByPartyMethod) == null) { - TradingDataServiceGrpc.getTradesByPartyMethod = getTradesByPartyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TradesByParty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("TradesByParty")) - .build(); - } - } - } - return getTradesByPartyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProposals", - requestType = io.vegaprotocol.vega.api.Trading.GetProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProposalsMethod() { - io.grpc.MethodDescriptor getGetProposalsMethod; - if ((getGetProposalsMethod = TradingDataServiceGrpc.getGetProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetProposalsMethod = TradingDataServiceGrpc.getGetProposalsMethod) == null) { - TradingDataServiceGrpc.getGetProposalsMethod = getGetProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetProposals")) - .build(); - } - } - } - return getGetProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetProposalsByPartyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProposalsByParty", - requestType = io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProposalsByPartyMethod() { - io.grpc.MethodDescriptor getGetProposalsByPartyMethod; - if ((getGetProposalsByPartyMethod = TradingDataServiceGrpc.getGetProposalsByPartyMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetProposalsByPartyMethod = TradingDataServiceGrpc.getGetProposalsByPartyMethod) == null) { - TradingDataServiceGrpc.getGetProposalsByPartyMethod = getGetProposalsByPartyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposalsByParty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetProposalsByParty")) - .build(); - } - } - } - return getGetProposalsByPartyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVotesByPartyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVotesByParty", - requestType = io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVotesByPartyMethod() { - io.grpc.MethodDescriptor getGetVotesByPartyMethod; - if ((getGetVotesByPartyMethod = TradingDataServiceGrpc.getGetVotesByPartyMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetVotesByPartyMethod = TradingDataServiceGrpc.getGetVotesByPartyMethod) == null) { - TradingDataServiceGrpc.getGetVotesByPartyMethod = getGetVotesByPartyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVotesByParty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetVotesByParty")) - .build(); - } - } - } - return getGetVotesByPartyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNewMarketProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNewMarketProposals", - requestType = io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNewMarketProposalsMethod() { - io.grpc.MethodDescriptor getGetNewMarketProposalsMethod; - if ((getGetNewMarketProposalsMethod = TradingDataServiceGrpc.getGetNewMarketProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetNewMarketProposalsMethod = TradingDataServiceGrpc.getGetNewMarketProposalsMethod) == null) { - TradingDataServiceGrpc.getGetNewMarketProposalsMethod = getGetNewMarketProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNewMarketProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetNewMarketProposals")) - .build(); - } - } - } - return getGetNewMarketProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetUpdateMarketProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUpdateMarketProposals", - requestType = io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetUpdateMarketProposalsMethod() { - io.grpc.MethodDescriptor getGetUpdateMarketProposalsMethod; - if ((getGetUpdateMarketProposalsMethod = TradingDataServiceGrpc.getGetUpdateMarketProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetUpdateMarketProposalsMethod = TradingDataServiceGrpc.getGetUpdateMarketProposalsMethod) == null) { - TradingDataServiceGrpc.getGetUpdateMarketProposalsMethod = getGetUpdateMarketProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUpdateMarketProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetUpdateMarketProposals")) - .build(); - } - } - } - return getGetUpdateMarketProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNetworkParametersProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetworkParametersProposals", - requestType = io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNetworkParametersProposalsMethod() { - io.grpc.MethodDescriptor getGetNetworkParametersProposalsMethod; - if ((getGetNetworkParametersProposalsMethod = TradingDataServiceGrpc.getGetNetworkParametersProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetNetworkParametersProposalsMethod = TradingDataServiceGrpc.getGetNetworkParametersProposalsMethod) == null) { - TradingDataServiceGrpc.getGetNetworkParametersProposalsMethod = getGetNetworkParametersProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkParametersProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetNetworkParametersProposals")) - .build(); - } - } - } - return getGetNetworkParametersProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNewAssetProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNewAssetProposals", - requestType = io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNewAssetProposalsMethod() { - io.grpc.MethodDescriptor getGetNewAssetProposalsMethod; - if ((getGetNewAssetProposalsMethod = TradingDataServiceGrpc.getGetNewAssetProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetNewAssetProposalsMethod = TradingDataServiceGrpc.getGetNewAssetProposalsMethod) == null) { - TradingDataServiceGrpc.getGetNewAssetProposalsMethod = getGetNewAssetProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNewAssetProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetNewAssetProposals")) - .build(); - } - } - } - return getGetNewAssetProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetProposalByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProposalByID", - requestType = io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProposalByIDMethod() { - io.grpc.MethodDescriptor getGetProposalByIDMethod; - if ((getGetProposalByIDMethod = TradingDataServiceGrpc.getGetProposalByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetProposalByIDMethod = TradingDataServiceGrpc.getGetProposalByIDMethod) == null) { - TradingDataServiceGrpc.getGetProposalByIDMethod = getGetProposalByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposalByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetProposalByID")) - .build(); - } - } - } - return getGetProposalByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetProposalByReferenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProposalByReference", - requestType = io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProposalByReferenceMethod() { - io.grpc.MethodDescriptor getGetProposalByReferenceMethod; - if ((getGetProposalByReferenceMethod = TradingDataServiceGrpc.getGetProposalByReferenceMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetProposalByReferenceMethod = TradingDataServiceGrpc.getGetProposalByReferenceMethod) == null) { - TradingDataServiceGrpc.getGetProposalByReferenceMethod = getGetProposalByReferenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProposalByReference")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetProposalByReference")) - .build(); - } - } - } - return getGetProposalByReferenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getObserveGovernanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ObserveGovernance", - requestType = io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getObserveGovernanceMethod() { - io.grpc.MethodDescriptor getObserveGovernanceMethod; - if ((getObserveGovernanceMethod = TradingDataServiceGrpc.getObserveGovernanceMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getObserveGovernanceMethod = TradingDataServiceGrpc.getObserveGovernanceMethod) == null) { - TradingDataServiceGrpc.getObserveGovernanceMethod = getObserveGovernanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObserveGovernance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ObserveGovernance")) - .build(); - } - } - } - return getObserveGovernanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getObservePartyProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ObservePartyProposals", - requestType = io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getObservePartyProposalsMethod() { - io.grpc.MethodDescriptor getObservePartyProposalsMethod; - if ((getObservePartyProposalsMethod = TradingDataServiceGrpc.getObservePartyProposalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getObservePartyProposalsMethod = TradingDataServiceGrpc.getObservePartyProposalsMethod) == null) { - TradingDataServiceGrpc.getObservePartyProposalsMethod = getObservePartyProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObservePartyProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ObservePartyProposals")) - .build(); - } - } - } - return getObservePartyProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getObservePartyVotesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ObservePartyVotes", - requestType = io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getObservePartyVotesMethod() { - io.grpc.MethodDescriptor getObservePartyVotesMethod; - if ((getObservePartyVotesMethod = TradingDataServiceGrpc.getObservePartyVotesMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getObservePartyVotesMethod = TradingDataServiceGrpc.getObservePartyVotesMethod) == null) { - TradingDataServiceGrpc.getObservePartyVotesMethod = getObservePartyVotesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObservePartyVotes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ObservePartyVotes")) - .build(); - } - } - } - return getObservePartyVotesMethod; - } - - private static volatile io.grpc.MethodDescriptor getObserveProposalVotesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ObserveProposalVotes", - requestType = io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getObserveProposalVotesMethod() { - io.grpc.MethodDescriptor getObserveProposalVotesMethod; - if ((getObserveProposalVotesMethod = TradingDataServiceGrpc.getObserveProposalVotesMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getObserveProposalVotesMethod = TradingDataServiceGrpc.getObserveProposalVotesMethod) == null) { - TradingDataServiceGrpc.getObserveProposalVotesMethod = getObserveProposalVotesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObserveProposalVotes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ObserveProposalVotes")) - .build(); - } - } - } - return getObserveProposalVotesMethod; - } - - private static volatile io.grpc.MethodDescriptor getObserveEventBusMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ObserveEventBus", - requestType = io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getObserveEventBusMethod() { - io.grpc.MethodDescriptor getObserveEventBusMethod; - if ((getObserveEventBusMethod = TradingDataServiceGrpc.getObserveEventBusMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getObserveEventBusMethod = TradingDataServiceGrpc.getObserveEventBusMethod) == null) { - TradingDataServiceGrpc.getObserveEventBusMethod = getObserveEventBusMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObserveEventBus")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ObserveEventBus")) - .build(); - } - } - } - return getObserveEventBusMethod; - } - - private static volatile io.grpc.MethodDescriptor getStatisticsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Statistics", - requestType = io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStatisticsMethod() { - io.grpc.MethodDescriptor getStatisticsMethod; - if ((getStatisticsMethod = TradingDataServiceGrpc.getStatisticsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getStatisticsMethod = TradingDataServiceGrpc.getStatisticsMethod) == null) { - TradingDataServiceGrpc.getStatisticsMethod = getStatisticsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Statistics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Statistics")) - .build(); - } - } - } - return getStatisticsMethod; - } - - private static volatile io.grpc.MethodDescriptor getLastBlockHeightMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LastBlockHeight", - requestType = io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLastBlockHeightMethod() { - io.grpc.MethodDescriptor getLastBlockHeightMethod; - if ((getLastBlockHeightMethod = TradingDataServiceGrpc.getLastBlockHeightMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getLastBlockHeightMethod = TradingDataServiceGrpc.getLastBlockHeightMethod) == null) { - TradingDataServiceGrpc.getLastBlockHeightMethod = getLastBlockHeightMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LastBlockHeight")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("LastBlockHeight")) - .build(); - } - } - } - return getLastBlockHeightMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVegaTimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVegaTime", - requestType = io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVegaTimeMethod() { - io.grpc.MethodDescriptor getGetVegaTimeMethod; - if ((getGetVegaTimeMethod = TradingDataServiceGrpc.getGetVegaTimeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetVegaTimeMethod = TradingDataServiceGrpc.getGetVegaTimeMethod) == null) { - TradingDataServiceGrpc.getGetVegaTimeMethod = getGetVegaTimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVegaTime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetVegaTime")) - .build(); - } - } - } - return getGetVegaTimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getAccountsSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AccountsSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getAccountsSubscribeMethod() { - io.grpc.MethodDescriptor getAccountsSubscribeMethod; - if ((getAccountsSubscribeMethod = TradingDataServiceGrpc.getAccountsSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getAccountsSubscribeMethod = TradingDataServiceGrpc.getAccountsSubscribeMethod) == null) { - TradingDataServiceGrpc.getAccountsSubscribeMethod = getAccountsSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AccountsSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("AccountsSubscribe")) - .build(); - } - } - } - return getAccountsSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCandlesSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CandlesSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getCandlesSubscribeMethod() { - io.grpc.MethodDescriptor getCandlesSubscribeMethod; - if ((getCandlesSubscribeMethod = TradingDataServiceGrpc.getCandlesSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getCandlesSubscribeMethod = TradingDataServiceGrpc.getCandlesSubscribeMethod) == null) { - TradingDataServiceGrpc.getCandlesSubscribeMethod = getCandlesSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CandlesSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("CandlesSubscribe")) - .build(); - } - } - } - return getCandlesSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarginLevelsSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarginLevelsSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getMarginLevelsSubscribeMethod() { - io.grpc.MethodDescriptor getMarginLevelsSubscribeMethod; - if ((getMarginLevelsSubscribeMethod = TradingDataServiceGrpc.getMarginLevelsSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarginLevelsSubscribeMethod = TradingDataServiceGrpc.getMarginLevelsSubscribeMethod) == null) { - TradingDataServiceGrpc.getMarginLevelsSubscribeMethod = getMarginLevelsSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarginLevelsSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarginLevelsSubscribe")) - .build(); - } - } - } - return getMarginLevelsSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketDepthSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketDepthSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getMarketDepthSubscribeMethod() { - io.grpc.MethodDescriptor getMarketDepthSubscribeMethod; - if ((getMarketDepthSubscribeMethod = TradingDataServiceGrpc.getMarketDepthSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketDepthSubscribeMethod = TradingDataServiceGrpc.getMarketDepthSubscribeMethod) == null) { - TradingDataServiceGrpc.getMarketDepthSubscribeMethod = getMarketDepthSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketDepthSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketDepthSubscribe")) - .build(); - } - } - } - return getMarketDepthSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketDepthUpdatesSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketDepthUpdatesSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getMarketDepthUpdatesSubscribeMethod() { - io.grpc.MethodDescriptor getMarketDepthUpdatesSubscribeMethod; - if ((getMarketDepthUpdatesSubscribeMethod = TradingDataServiceGrpc.getMarketDepthUpdatesSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketDepthUpdatesSubscribeMethod = TradingDataServiceGrpc.getMarketDepthUpdatesSubscribeMethod) == null) { - TradingDataServiceGrpc.getMarketDepthUpdatesSubscribeMethod = getMarketDepthUpdatesSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketDepthUpdatesSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketDepthUpdatesSubscribe")) - .build(); - } - } - } - return getMarketDepthUpdatesSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getMarketsDataSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MarketsDataSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getMarketsDataSubscribeMethod() { - io.grpc.MethodDescriptor getMarketsDataSubscribeMethod; - if ((getMarketsDataSubscribeMethod = TradingDataServiceGrpc.getMarketsDataSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getMarketsDataSubscribeMethod = TradingDataServiceGrpc.getMarketsDataSubscribeMethod) == null) { - TradingDataServiceGrpc.getMarketsDataSubscribeMethod = getMarketsDataSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MarketsDataSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("MarketsDataSubscribe")) - .build(); - } - } - } - return getMarketsDataSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getOrdersSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OrdersSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getOrdersSubscribeMethod() { - io.grpc.MethodDescriptor getOrdersSubscribeMethod; - if ((getOrdersSubscribeMethod = TradingDataServiceGrpc.getOrdersSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOrdersSubscribeMethod = TradingDataServiceGrpc.getOrdersSubscribeMethod) == null) { - TradingDataServiceGrpc.getOrdersSubscribeMethod = getOrdersSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrdersSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OrdersSubscribe")) - .build(); - } - } - } - return getOrdersSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getPositionsSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PositionsSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getPositionsSubscribeMethod() { - io.grpc.MethodDescriptor getPositionsSubscribeMethod; - if ((getPositionsSubscribeMethod = TradingDataServiceGrpc.getPositionsSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getPositionsSubscribeMethod = TradingDataServiceGrpc.getPositionsSubscribeMethod) == null) { - TradingDataServiceGrpc.getPositionsSubscribeMethod = getPositionsSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PositionsSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("PositionsSubscribe")) - .build(); - } - } - } - return getPositionsSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getTradesSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TradesSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getTradesSubscribeMethod() { - io.grpc.MethodDescriptor getTradesSubscribeMethod; - if ((getTradesSubscribeMethod = TradingDataServiceGrpc.getTradesSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getTradesSubscribeMethod = TradingDataServiceGrpc.getTradesSubscribeMethod) == null) { - TradingDataServiceGrpc.getTradesSubscribeMethod = getTradesSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TradesSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("TradesSubscribe")) - .build(); - } - } - } - return getTradesSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getTransferResponsesSubscribeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferResponsesSubscribe", - requestType = io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getTransferResponsesSubscribeMethod() { - io.grpc.MethodDescriptor getTransferResponsesSubscribeMethod; - if ((getTransferResponsesSubscribeMethod = TradingDataServiceGrpc.getTransferResponsesSubscribeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getTransferResponsesSubscribeMethod = TradingDataServiceGrpc.getTransferResponsesSubscribeMethod) == null) { - TradingDataServiceGrpc.getTransferResponsesSubscribeMethod = getTransferResponsesSubscribeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferResponsesSubscribe")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("TransferResponsesSubscribe")) - .build(); - } - } - } - return getTransferResponsesSubscribeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNodeSignaturesAggregateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodeSignaturesAggregate", - requestType = io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNodeSignaturesAggregateMethod() { - io.grpc.MethodDescriptor getGetNodeSignaturesAggregateMethod; - if ((getGetNodeSignaturesAggregateMethod = TradingDataServiceGrpc.getGetNodeSignaturesAggregateMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getGetNodeSignaturesAggregateMethod = TradingDataServiceGrpc.getGetNodeSignaturesAggregateMethod) == null) { - TradingDataServiceGrpc.getGetNodeSignaturesAggregateMethod = getGetNodeSignaturesAggregateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeSignaturesAggregate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("GetNodeSignaturesAggregate")) - .build(); - } - } - } - return getGetNodeSignaturesAggregateMethod; - } - - private static volatile io.grpc.MethodDescriptor getAssetByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AssetByID", - requestType = io.vegaprotocol.vega.api.Trading.AssetByIDRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.AssetByIDResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAssetByIDMethod() { - io.grpc.MethodDescriptor getAssetByIDMethod; - if ((getAssetByIDMethod = TradingDataServiceGrpc.getAssetByIDMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getAssetByIDMethod = TradingDataServiceGrpc.getAssetByIDMethod) == null) { - TradingDataServiceGrpc.getAssetByIDMethod = getAssetByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssetByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AssetByIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AssetByIDResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("AssetByID")) - .build(); - } - } - } - return getAssetByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Assets", - requestType = io.vegaprotocol.vega.api.Trading.AssetsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.AssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAssetsMethod() { - io.grpc.MethodDescriptor getAssetsMethod; - if ((getAssetsMethod = TradingDataServiceGrpc.getAssetsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getAssetsMethod = TradingDataServiceGrpc.getAssetsMethod) == null) { - TradingDataServiceGrpc.getAssetsMethod = getAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Assets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.AssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Assets")) - .build(); - } - } - } - return getAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getEstimateFeeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EstimateFee", - requestType = io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEstimateFeeMethod() { - io.grpc.MethodDescriptor getEstimateFeeMethod; - if ((getEstimateFeeMethod = TradingDataServiceGrpc.getEstimateFeeMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getEstimateFeeMethod = TradingDataServiceGrpc.getEstimateFeeMethod) == null) { - TradingDataServiceGrpc.getEstimateFeeMethod = getEstimateFeeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstimateFee")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("EstimateFee")) - .build(); - } - } - } - return getEstimateFeeMethod; - } - - private static volatile io.grpc.MethodDescriptor getEstimateMarginMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EstimateMargin", - requestType = io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEstimateMarginMethod() { - io.grpc.MethodDescriptor getEstimateMarginMethod; - if ((getEstimateMarginMethod = TradingDataServiceGrpc.getEstimateMarginMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getEstimateMarginMethod = TradingDataServiceGrpc.getEstimateMarginMethod) == null) { - TradingDataServiceGrpc.getEstimateMarginMethod = getEstimateMarginMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstimateMargin")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("EstimateMargin")) - .build(); - } - } - } - return getEstimateMarginMethod; - } - - private static volatile io.grpc.MethodDescriptor getERC20WithdrawalApprovalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ERC20WithdrawalApproval", - requestType = io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getERC20WithdrawalApprovalMethod() { - io.grpc.MethodDescriptor getERC20WithdrawalApprovalMethod; - if ((getERC20WithdrawalApprovalMethod = TradingDataServiceGrpc.getERC20WithdrawalApprovalMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getERC20WithdrawalApprovalMethod = TradingDataServiceGrpc.getERC20WithdrawalApprovalMethod) == null) { - TradingDataServiceGrpc.getERC20WithdrawalApprovalMethod = getERC20WithdrawalApprovalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ERC20WithdrawalApproval")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("ERC20WithdrawalApproval")) - .build(); - } - } - } - return getERC20WithdrawalApprovalMethod; - } - - private static volatile io.grpc.MethodDescriptor getWithdrawalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Withdrawal", - requestType = io.vegaprotocol.vega.api.Trading.WithdrawalRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.WithdrawalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawalMethod() { - io.grpc.MethodDescriptor getWithdrawalMethod; - if ((getWithdrawalMethod = TradingDataServiceGrpc.getWithdrawalMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getWithdrawalMethod = TradingDataServiceGrpc.getWithdrawalMethod) == null) { - TradingDataServiceGrpc.getWithdrawalMethod = getWithdrawalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Withdrawal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.WithdrawalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.WithdrawalResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Withdrawal")) - .build(); - } - } - } - return getWithdrawalMethod; - } - - private static volatile io.grpc.MethodDescriptor getWithdrawalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Withdrawals", - requestType = io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWithdrawalsMethod() { - io.grpc.MethodDescriptor getWithdrawalsMethod; - if ((getWithdrawalsMethod = TradingDataServiceGrpc.getWithdrawalsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getWithdrawalsMethod = TradingDataServiceGrpc.getWithdrawalsMethod) == null) { - TradingDataServiceGrpc.getWithdrawalsMethod = getWithdrawalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Withdrawals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Withdrawals")) - .build(); - } - } - } - return getWithdrawalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDepositMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Deposit", - requestType = io.vegaprotocol.vega.api.Trading.DepositRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.DepositResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDepositMethod() { - io.grpc.MethodDescriptor getDepositMethod; - if ((getDepositMethod = TradingDataServiceGrpc.getDepositMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getDepositMethod = TradingDataServiceGrpc.getDepositMethod) == null) { - TradingDataServiceGrpc.getDepositMethod = getDepositMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Deposit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.DepositRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.DepositResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Deposit")) - .build(); - } - } - } - return getDepositMethod; - } - - private static volatile io.grpc.MethodDescriptor getDepositsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Deposits", - requestType = io.vegaprotocol.vega.api.Trading.DepositsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.DepositsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDepositsMethod() { - io.grpc.MethodDescriptor getDepositsMethod; - if ((getDepositsMethod = TradingDataServiceGrpc.getDepositsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getDepositsMethod = TradingDataServiceGrpc.getDepositsMethod) == null) { - TradingDataServiceGrpc.getDepositsMethod = getDepositsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Deposits")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.DepositsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.DepositsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("Deposits")) - .build(); - } - } - } - return getDepositsMethod; - } - - private static volatile io.grpc.MethodDescriptor getNetworkParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "NetworkParameters", - requestType = io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getNetworkParametersMethod() { - io.grpc.MethodDescriptor getNetworkParametersMethod; - if ((getNetworkParametersMethod = TradingDataServiceGrpc.getNetworkParametersMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getNetworkParametersMethod = TradingDataServiceGrpc.getNetworkParametersMethod) == null) { - TradingDataServiceGrpc.getNetworkParametersMethod = getNetworkParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NetworkParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("NetworkParameters")) - .build(); - } - } - } - return getNetworkParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor getLiquidityProvisionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LiquidityProvisions", - requestType = io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLiquidityProvisionsMethod() { - io.grpc.MethodDescriptor getLiquidityProvisionsMethod; - if ((getLiquidityProvisionsMethod = TradingDataServiceGrpc.getLiquidityProvisionsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getLiquidityProvisionsMethod = TradingDataServiceGrpc.getLiquidityProvisionsMethod) == null) { - TradingDataServiceGrpc.getLiquidityProvisionsMethod = getLiquidityProvisionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LiquidityProvisions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("LiquidityProvisions")) - .build(); - } - } - } - return getLiquidityProvisionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getOracleSpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OracleSpec", - requestType = io.vegaprotocol.vega.api.Trading.OracleSpecRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OracleSpecResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOracleSpecMethod() { - io.grpc.MethodDescriptor getOracleSpecMethod; - if ((getOracleSpecMethod = TradingDataServiceGrpc.getOracleSpecMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOracleSpecMethod = TradingDataServiceGrpc.getOracleSpecMethod) == null) { - TradingDataServiceGrpc.getOracleSpecMethod = getOracleSpecMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OracleSpec")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleSpecRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleSpecResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OracleSpec")) - .build(); - } - } - } - return getOracleSpecMethod; - } - - private static volatile io.grpc.MethodDescriptor getOracleSpecsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OracleSpecs", - requestType = io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOracleSpecsMethod() { - io.grpc.MethodDescriptor getOracleSpecsMethod; - if ((getOracleSpecsMethod = TradingDataServiceGrpc.getOracleSpecsMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOracleSpecsMethod = TradingDataServiceGrpc.getOracleSpecsMethod) == null) { - TradingDataServiceGrpc.getOracleSpecsMethod = getOracleSpecsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OracleSpecs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OracleSpecs")) - .build(); - } - } - } - return getOracleSpecsMethod; - } - - private static volatile io.grpc.MethodDescriptor getOracleDataBySpecMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "OracleDataBySpec", - requestType = io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getOracleDataBySpecMethod() { - io.grpc.MethodDescriptor getOracleDataBySpecMethod; - if ((getOracleDataBySpecMethod = TradingDataServiceGrpc.getOracleDataBySpecMethod) == null) { - synchronized (TradingDataServiceGrpc.class) { - if ((getOracleDataBySpecMethod = TradingDataServiceGrpc.getOracleDataBySpecMethod) == null) { - TradingDataServiceGrpc.getOracleDataBySpecMethod = getOracleDataBySpecMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OracleDataBySpec")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingDataServiceMethodDescriptorSupplier("OracleDataBySpec")) - .build(); - } - } - } - return getOracleDataBySpecMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TradingDataServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TradingDataServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceStub(channel, callOptions); - } - }; - return TradingDataServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TradingDataServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TradingDataServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceBlockingStub(channel, callOptions); - } - }; - return TradingDataServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TradingDataServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TradingDataServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceFutureStub(channel, callOptions); - } - }; - return TradingDataServiceFutureStub.newStub(factory, channel); - } - - /** - */ - public static abstract class TradingDataServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Get a list of Accounts by Market
-     * 
- */ - public void marketAccounts(io.vegaprotocol.vega.api.Trading.MarketAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketAccountsMethod(), responseObserver); - } - - /** - *
-     * Get a list of Accounts by Party
-     * 
- */ - public void partyAccounts(io.vegaprotocol.vega.api.Trading.PartyAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPartyAccountsMethod(), responseObserver); - } - - /** - *
-     * Get a list of accounts holding infrastructure fees.
-     * Can be filtered by asset, there will be 1 infrastructure fee account per
-     * asset in the network.
-     * 
- */ - public void feeInfrastructureAccounts(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFeeInfrastructureAccountsMethod(), responseObserver); - } - - /** - *
-     * Get a list of Candles by Market
-     * 
- */ - public void candles(io.vegaprotocol.vega.api.Trading.CandlesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCandlesMethod(), responseObserver); - } - - /** - *
-     * Get Market Data by Market ID
-     * 
- */ - public void marketDataByID(io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketDataByIDMethod(), responseObserver); - } - - /** - *
-     * Get a list of Market Data
-     * 
- */ - public void marketsData(io.vegaprotocol.vega.api.Trading.MarketsDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketsDataMethod(), responseObserver); - } - - /** - *
-     * Get a Market by ID
-     * 
- */ - public void marketByID(io.vegaprotocol.vega.api.Trading.MarketByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketByIDMethod(), responseObserver); - } - - /** - *
-     * Get Market Depth
-     * 
- */ - public void marketDepth(io.vegaprotocol.vega.api.Trading.MarketDepthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketDepthMethod(), responseObserver); - } - - /** - *
-     * Get a list of Markets
-     * 
- */ - public void markets(io.vegaprotocol.vega.api.Trading.MarketsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketsMethod(), responseObserver); - } - - /** - *
-     * Get an Order by Market and Order ID
-     * 
- */ - public void orderByMarketAndID(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrderByMarketAndIDMethod(), responseObserver); - } - - /** - *
-     * Get an Order by Pending Order reference (UUID)
-     * 
- */ - public void orderByReference(io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrderByReferenceMethod(), responseObserver); - } - - /** - *
-     * Get a list of Orders by Market
-     * 
- */ - public void ordersByMarket(io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrdersByMarketMethod(), responseObserver); - } - - /** - *
-     * Get a list of Orders by Party
-     * 
- */ - public void ordersByParty(io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrdersByPartyMethod(), responseObserver); - } - - /** - *
-     * Get a specific order by order ID
-     * 
- */ - public void orderByID(io.vegaprotocol.vega.api.Trading.OrderByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrderByIDMethod(), responseObserver); - } - - /** - *
-     * Get all versions of the order by its orderID
-     * 
- */ - public void orderVersionsByID(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrderVersionsByIDMethod(), responseObserver); - } - - /** - *
-     * Get Margin Levels by Party ID
-     * 
- */ - public void marginLevels(io.vegaprotocol.vega.api.Trading.MarginLevelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarginLevelsMethod(), responseObserver); - } - - /** - *
-     * Get a list of Parties
-     * 
- */ - public void parties(io.vegaprotocol.vega.api.Trading.PartiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPartiesMethod(), responseObserver); - } - - /** - *
-     * Get a Party by ID
-     * 
- */ - public void partyByID(io.vegaprotocol.vega.api.Trading.PartyByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPartyByIDMethod(), responseObserver); - } - - /** - *
-     * Get a list of Positions by Party
-     * 
- */ - public void positionsByParty(io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPositionsByPartyMethod(), responseObserver); - } - - /** - *
-     * Get latest Trade
-     * 
- */ - public void lastTrade(io.vegaprotocol.vega.api.Trading.LastTradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLastTradeMethod(), responseObserver); - } - - /** - *
-     * Get a list of Trades by Market
-     * 
- */ - public void tradesByMarket(io.vegaprotocol.vega.api.Trading.TradesByMarketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTradesByMarketMethod(), responseObserver); - } - - /** - *
-     * Get a list of Trades by Order
-     * 
- */ - public void tradesByOrder(io.vegaprotocol.vega.api.Trading.TradesByOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTradesByOrderMethod(), responseObserver); - } - - /** - *
-     * Get a list of Trades by Party
-     * 
- */ - public void tradesByParty(io.vegaprotocol.vega.api.Trading.TradesByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTradesByPartyMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for all proposals
-     * 
- */ - public void getProposals(io.vegaprotocol.vega.api.Trading.GetProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProposalsMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals by party authoring them
-     * 
- */ - public void getProposalsByParty(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProposalsByPartyMethod(), responseObserver); - } - - /** - *
-     * Get votes by party casting them
-     * 
- */ - public void getVotesByParty(io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVotesByPartyMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim creating new markets
-     * 
- */ - public void getNewMarketProposals(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNewMarketProposalsMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating markets
-     * 
- */ - public void getUpdateMarketProposals(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUpdateMarketProposalsMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating Vega network parameters
-     * 
- */ - public void getNetworkParametersProposals(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkParametersProposalsMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals aiming to create new assets
-     * 
- */ - public void getNewAssetProposals(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNewAssetProposalsMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by ID
-     * 
- */ - public void getProposalByID(io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProposalByIDMethod(), responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by reference
-     * 
- */ - public void getProposalByReference(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProposalByReferenceMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of all governance updates
-     * 
- */ - public void observeGovernance(io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getObserveGovernanceMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of proposal updates
-     * 
- */ - public void observePartyProposals(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getObservePartyProposalsMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of votes cast by a specific party
-     * 
- */ - public void observePartyVotes(io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getObservePartyVotesMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of proposal votes
-     * 
- */ - public void observeProposalVotes(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getObserveProposalVotesMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of events from the core
-     * 
- */ - public io.grpc.stub.StreamObserver observeEventBus( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getObserveEventBusMethod(), responseObserver); - } - - /** - *
-     * Get Statistics on Vega
-     * 
- */ - public void statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatisticsMethod(), responseObserver); - } - - /** - */ - public void lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLastBlockHeightMethod(), responseObserver); - } - - /** - *
-     * Get Time
-     * 
- */ - public void getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVegaTimeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Accounts
-     * 
- */ - public void accountsSubscribe(io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAccountsSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Candles
-     * 
- */ - public void candlesSubscribe(io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCandlesSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Margin Levels
-     * 
- */ - public void marginLevelsSubscribe(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarginLevelsSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Market Depth
-     * 
- */ - public void marketDepthSubscribe(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketDepthSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Market Depth Price Level Updates
-     * 
- */ - public void marketDepthUpdatesSubscribe(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketDepthUpdatesSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Markets Data
-     * 
- */ - public void marketsDataSubscribe(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMarketsDataSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Orders
-     * 
- */ - public void ordersSubscribe(io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrdersSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Positions
-     * 
- */ - public void positionsSubscribe(io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPositionsSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Trades
-     * 
- */ - public void tradesSubscribe(io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTradesSubscribeMethod(), responseObserver); - } - - /** - *
-     * Subscribe to a stream of Transfer Responses
-     * 
- */ - public void transferResponsesSubscribe(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTransferResponsesSubscribeMethod(), responseObserver); - } - - /** - *
-     * Get an aggregate of signatures from all the nodes of the network
-     * 
- */ - public void getNodeSignaturesAggregate(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeSignaturesAggregateMethod(), responseObserver); - } - - /** - *
-     * Get an asset by its identifier
-     * 
- */ - public void assetByID(io.vegaprotocol.vega.api.Trading.AssetByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAssetByIDMethod(), responseObserver); - } - - /** - *
-     * Get a list of all assets on Vega
-     * 
- */ - public void assets(io.vegaprotocol.vega.api.Trading.AssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAssetsMethod(), responseObserver); - } - - /** - *
-     * Get an estimate for the fee to be paid for a given order
-     * 
- */ - public void estimateFee(io.vegaprotocol.vega.api.Trading.EstimateFeeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEstimateFeeMethod(), responseObserver); - } - - /** - *
-     * Get an estimate for the margin required for a new order
-     * 
- */ - public void estimateMargin(io.vegaprotocol.vega.api.Trading.EstimateMarginRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEstimateMarginMethod(), responseObserver); - } - - /** - *
-     * Get the bundle approval for an ERC20 withdrawal,
-     * these data are being used to bundle the call to the smart contract on the ethereum bridge
-     * 
- */ - public void eRC20WithdrawalApproval(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getERC20WithdrawalApprovalMethod(), responseObserver); - } - - /** - *
-     * Get a withdrawal by its identifier
-     * 
- */ - public void withdrawal(io.vegaprotocol.vega.api.Trading.WithdrawalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWithdrawalMethod(), responseObserver); - } - - /** - *
-     * Get withdrawals for a party
-     * 
- */ - public void withdrawals(io.vegaprotocol.vega.api.Trading.WithdrawalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWithdrawalsMethod(), responseObserver); - } - - /** - *
-     * Get a deposit by its identifier
-     * 
- */ - public void deposit(io.vegaprotocol.vega.api.Trading.DepositRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositMethod(), responseObserver); - } - - /** - *
-     * Get deposits for a party
-     * 
- */ - public void deposits(io.vegaprotocol.vega.api.Trading.DepositsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositsMethod(), responseObserver); - } - - /** - *
-     * Get the network parameters
-     * 
- */ - public void networkParameters(io.vegaprotocol.vega.api.Trading.NetworkParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNetworkParametersMethod(), responseObserver); - } - - /** - *
-     * Get the liquidity provision orders
-     * 
- */ - public void liquidityProvisions(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLiquidityProvisionsMethod(), responseObserver); - } - - /** - *
-     * Get an oracle spec by ID
-     * 
- */ - public void oracleSpec(io.vegaprotocol.vega.api.Trading.OracleSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOracleSpecMethod(), responseObserver); - } - - /** - *
-     * Get the oracle specs
-     * 
- */ - public void oracleSpecs(io.vegaprotocol.vega.api.Trading.OracleSpecsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOracleSpecsMethod(), responseObserver); - } - - /** - *
-     * Get all oracle data
-     * 
- */ - public void oracleDataBySpec(io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOracleDataBySpecMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getMarketAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest, - io.vegaprotocol.vega.api.Trading.MarketAccountsResponse>( - this, METHODID_MARKET_ACCOUNTS))) - .addMethod( - getPartyAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest, - io.vegaprotocol.vega.api.Trading.PartyAccountsResponse>( - this, METHODID_PARTY_ACCOUNTS))) - .addMethod( - getFeeInfrastructureAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest, - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse>( - this, METHODID_FEE_INFRASTRUCTURE_ACCOUNTS))) - .addMethod( - getCandlesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.CandlesRequest, - io.vegaprotocol.vega.api.Trading.CandlesResponse>( - this, METHODID_CANDLES))) - .addMethod( - getMarketDataByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest, - io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse>( - this, METHODID_MARKET_DATA_BY_ID))) - .addMethod( - getMarketsDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketsDataRequest, - io.vegaprotocol.vega.api.Trading.MarketsDataResponse>( - this, METHODID_MARKETS_DATA))) - .addMethod( - getMarketByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketByIDRequest, - io.vegaprotocol.vega.api.Trading.MarketByIDResponse>( - this, METHODID_MARKET_BY_ID))) - .addMethod( - getMarketDepthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketDepthRequest, - io.vegaprotocol.vega.api.Trading.MarketDepthResponse>( - this, METHODID_MARKET_DEPTH))) - .addMethod( - getMarketsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketsRequest, - io.vegaprotocol.vega.api.Trading.MarketsResponse>( - this, METHODID_MARKETS))) - .addMethod( - getOrderByMarketAndIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest, - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse>( - this, METHODID_ORDER_BY_MARKET_AND_ID))) - .addMethod( - getOrderByReferenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest, - io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse>( - this, METHODID_ORDER_BY_REFERENCE))) - .addMethod( - getOrdersByMarketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest, - io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse>( - this, METHODID_ORDERS_BY_MARKET))) - .addMethod( - getOrdersByPartyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest, - io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse>( - this, METHODID_ORDERS_BY_PARTY))) - .addMethod( - getOrderByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrderByIDRequest, - io.vegaprotocol.vega.api.Trading.OrderByIDResponse>( - this, METHODID_ORDER_BY_ID))) - .addMethod( - getOrderVersionsByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest, - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse>( - this, METHODID_ORDER_VERSIONS_BY_ID))) - .addMethod( - getMarginLevelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest, - io.vegaprotocol.vega.api.Trading.MarginLevelsResponse>( - this, METHODID_MARGIN_LEVELS))) - .addMethod( - getPartiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PartiesRequest, - io.vegaprotocol.vega.api.Trading.PartiesResponse>( - this, METHODID_PARTIES))) - .addMethod( - getPartyByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PartyByIDRequest, - io.vegaprotocol.vega.api.Trading.PartyByIDResponse>( - this, METHODID_PARTY_BY_ID))) - .addMethod( - getPositionsByPartyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest, - io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse>( - this, METHODID_POSITIONS_BY_PARTY))) - .addMethod( - getLastTradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.LastTradeRequest, - io.vegaprotocol.vega.api.Trading.LastTradeResponse>( - this, METHODID_LAST_TRADE))) - .addMethod( - getTradesByMarketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest, - io.vegaprotocol.vega.api.Trading.TradesByMarketResponse>( - this, METHODID_TRADES_BY_MARKET))) - .addMethod( - getTradesByOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest, - io.vegaprotocol.vega.api.Trading.TradesByOrderResponse>( - this, METHODID_TRADES_BY_ORDER))) - .addMethod( - getTradesByPartyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest, - io.vegaprotocol.vega.api.Trading.TradesByPartyResponse>( - this, METHODID_TRADES_BY_PARTY))) - .addMethod( - getGetProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetProposalsRequest, - io.vegaprotocol.vega.api.Trading.GetProposalsResponse>( - this, METHODID_GET_PROPOSALS))) - .addMethod( - getGetProposalsByPartyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest, - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse>( - this, METHODID_GET_PROPOSALS_BY_PARTY))) - .addMethod( - getGetVotesByPartyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest, - io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse>( - this, METHODID_GET_VOTES_BY_PARTY))) - .addMethod( - getGetNewMarketProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest, - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse>( - this, METHODID_GET_NEW_MARKET_PROPOSALS))) - .addMethod( - getGetUpdateMarketProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest, - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse>( - this, METHODID_GET_UPDATE_MARKET_PROPOSALS))) - .addMethod( - getGetNetworkParametersProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest, - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse>( - this, METHODID_GET_NETWORK_PARAMETERS_PROPOSALS))) - .addMethod( - getGetNewAssetProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest, - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse>( - this, METHODID_GET_NEW_ASSET_PROPOSALS))) - .addMethod( - getGetProposalByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest, - io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse>( - this, METHODID_GET_PROPOSAL_BY_ID))) - .addMethod( - getGetProposalByReferenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest, - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse>( - this, METHODID_GET_PROPOSAL_BY_REFERENCE))) - .addMethod( - getObserveGovernanceMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest, - io.vegaprotocol.vega.api.Trading.ObserveGovernanceResponse>( - this, METHODID_OBSERVE_GOVERNANCE))) - .addMethod( - getObservePartyProposalsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest, - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsResponse>( - this, METHODID_OBSERVE_PARTY_PROPOSALS))) - .addMethod( - getObservePartyVotesMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest, - io.vegaprotocol.vega.api.Trading.ObservePartyVotesResponse>( - this, METHODID_OBSERVE_PARTY_VOTES))) - .addMethod( - getObserveProposalVotesMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest, - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesResponse>( - this, METHODID_OBSERVE_PROPOSAL_VOTES))) - .addMethod( - getObserveEventBusMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest, - io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse>( - this, METHODID_OBSERVE_EVENT_BUS))) - .addMethod( - getStatisticsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.StatisticsRequest, - io.vegaprotocol.vega.api.Trading.StatisticsResponse>( - this, METHODID_STATISTICS))) - .addMethod( - getLastBlockHeightMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest, - io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse>( - this, METHODID_LAST_BLOCK_HEIGHT))) - .addMethod( - getGetVegaTimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest, - io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse>( - this, METHODID_GET_VEGA_TIME))) - .addMethod( - getAccountsSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest, - io.vegaprotocol.vega.api.Trading.AccountsSubscribeResponse>( - this, METHODID_ACCOUNTS_SUBSCRIBE))) - .addMethod( - getCandlesSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest, - io.vegaprotocol.vega.api.Trading.CandlesSubscribeResponse>( - this, METHODID_CANDLES_SUBSCRIBE))) - .addMethod( - getMarginLevelsSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest, - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeResponse>( - this, METHODID_MARGIN_LEVELS_SUBSCRIBE))) - .addMethod( - getMarketDepthSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest, - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeResponse>( - this, METHODID_MARKET_DEPTH_SUBSCRIBE))) - .addMethod( - getMarketDepthUpdatesSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest, - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeResponse>( - this, METHODID_MARKET_DEPTH_UPDATES_SUBSCRIBE))) - .addMethod( - getMarketsDataSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest, - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeResponse>( - this, METHODID_MARKETS_DATA_SUBSCRIBE))) - .addMethod( - getOrdersSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest, - io.vegaprotocol.vega.api.Trading.OrdersSubscribeResponse>( - this, METHODID_ORDERS_SUBSCRIBE))) - .addMethod( - getPositionsSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest, - io.vegaprotocol.vega.api.Trading.PositionsSubscribeResponse>( - this, METHODID_POSITIONS_SUBSCRIBE))) - .addMethod( - getTradesSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest, - io.vegaprotocol.vega.api.Trading.TradesSubscribeResponse>( - this, METHODID_TRADES_SUBSCRIBE))) - .addMethod( - getTransferResponsesSubscribeMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest, - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeResponse>( - this, METHODID_TRANSFER_RESPONSES_SUBSCRIBE))) - .addMethod( - getGetNodeSignaturesAggregateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest, - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse>( - this, METHODID_GET_NODE_SIGNATURES_AGGREGATE))) - .addMethod( - getAssetByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.AssetByIDRequest, - io.vegaprotocol.vega.api.Trading.AssetByIDResponse>( - this, METHODID_ASSET_BY_ID))) - .addMethod( - getAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.AssetsRequest, - io.vegaprotocol.vega.api.Trading.AssetsResponse>( - this, METHODID_ASSETS))) - .addMethod( - getEstimateFeeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest, - io.vegaprotocol.vega.api.Trading.EstimateFeeResponse>( - this, METHODID_ESTIMATE_FEE))) - .addMethod( - getEstimateMarginMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest, - io.vegaprotocol.vega.api.Trading.EstimateMarginResponse>( - this, METHODID_ESTIMATE_MARGIN))) - .addMethod( - getERC20WithdrawalApprovalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest, - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse>( - this, METHODID_ERC20WITHDRAWAL_APPROVAL))) - .addMethod( - getWithdrawalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.WithdrawalRequest, - io.vegaprotocol.vega.api.Trading.WithdrawalResponse>( - this, METHODID_WITHDRAWAL))) - .addMethod( - getWithdrawalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest, - io.vegaprotocol.vega.api.Trading.WithdrawalsResponse>( - this, METHODID_WITHDRAWALS))) - .addMethod( - getDepositMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.DepositRequest, - io.vegaprotocol.vega.api.Trading.DepositResponse>( - this, METHODID_DEPOSIT))) - .addMethod( - getDepositsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.DepositsRequest, - io.vegaprotocol.vega.api.Trading.DepositsResponse>( - this, METHODID_DEPOSITS))) - .addMethod( - getNetworkParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest, - io.vegaprotocol.vega.api.Trading.NetworkParametersResponse>( - this, METHODID_NETWORK_PARAMETERS))) - .addMethod( - getLiquidityProvisionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest, - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse>( - this, METHODID_LIQUIDITY_PROVISIONS))) - .addMethod( - getOracleSpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OracleSpecRequest, - io.vegaprotocol.vega.api.Trading.OracleSpecResponse>( - this, METHODID_ORACLE_SPEC))) - .addMethod( - getOracleSpecsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest, - io.vegaprotocol.vega.api.Trading.OracleSpecsResponse>( - this, METHODID_ORACLE_SPECS))) - .addMethod( - getOracleDataBySpecMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest, - io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse>( - this, METHODID_ORACLE_DATA_BY_SPEC))) - .build(); - } - } - - /** - */ - public static final class TradingDataServiceStub extends io.grpc.stub.AbstractAsyncStub { - private TradingDataServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TradingDataServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceStub(channel, callOptions); - } - - /** - *
-     * Get a list of Accounts by Market
-     * 
- */ - public void marketAccounts(io.vegaprotocol.vega.api.Trading.MarketAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Accounts by Party
-     * 
- */ - public void partyAccounts(io.vegaprotocol.vega.api.Trading.PartyAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPartyAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of accounts holding infrastructure fees.
-     * Can be filtered by asset, there will be 1 infrastructure fee account per
-     * asset in the network.
-     * 
- */ - public void feeInfrastructureAccounts(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFeeInfrastructureAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Candles by Market
-     * 
- */ - public void candles(io.vegaprotocol.vega.api.Trading.CandlesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCandlesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get Market Data by Market ID
-     * 
- */ - public void marketDataByID(io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketDataByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Market Data
-     * 
- */ - public void marketsData(io.vegaprotocol.vega.api.Trading.MarketsDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketsDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a Market by ID
-     * 
- */ - public void marketByID(io.vegaprotocol.vega.api.Trading.MarketByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get Market Depth
-     * 
- */ - public void marketDepth(io.vegaprotocol.vega.api.Trading.MarketDepthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketDepthMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Markets
-     * 
- */ - public void markets(io.vegaprotocol.vega.api.Trading.MarketsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarketsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an Order by Market and Order ID
-     * 
- */ - public void orderByMarketAndID(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrderByMarketAndIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an Order by Pending Order reference (UUID)
-     * 
- */ - public void orderByReference(io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrderByReferenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Orders by Market
-     * 
- */ - public void ordersByMarket(io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrdersByMarketMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Orders by Party
-     * 
- */ - public void ordersByParty(io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrdersByPartyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a specific order by order ID
-     * 
- */ - public void orderByID(io.vegaprotocol.vega.api.Trading.OrderByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrderByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get all versions of the order by its orderID
-     * 
- */ - public void orderVersionsByID(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOrderVersionsByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get Margin Levels by Party ID
-     * 
- */ - public void marginLevels(io.vegaprotocol.vega.api.Trading.MarginLevelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMarginLevelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Parties
-     * 
- */ - public void parties(io.vegaprotocol.vega.api.Trading.PartiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPartiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a Party by ID
-     * 
- */ - public void partyByID(io.vegaprotocol.vega.api.Trading.PartyByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPartyByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Positions by Party
-     * 
- */ - public void positionsByParty(io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPositionsByPartyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get latest Trade
-     * 
- */ - public void lastTrade(io.vegaprotocol.vega.api.Trading.LastTradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLastTradeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Trades by Market
-     * 
- */ - public void tradesByMarket(io.vegaprotocol.vega.api.Trading.TradesByMarketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTradesByMarketMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Trades by Order
-     * 
- */ - public void tradesByOrder(io.vegaprotocol.vega.api.Trading.TradesByOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTradesByOrderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of Trades by Party
-     * 
- */ - public void tradesByParty(io.vegaprotocol.vega.api.Trading.TradesByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTradesByPartyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for all proposals
-     * 
- */ - public void getProposals(io.vegaprotocol.vega.api.Trading.GetProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals by party authoring them
-     * 
- */ - public void getProposalsByParty(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProposalsByPartyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get votes by party casting them
-     * 
- */ - public void getVotesByParty(io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVotesByPartyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim creating new markets
-     * 
- */ - public void getNewMarketProposals(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNewMarketProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating markets
-     * 
- */ - public void getUpdateMarketProposals(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUpdateMarketProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating Vega network parameters
-     * 
- */ - public void getNetworkParametersProposals(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkParametersProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals aiming to create new assets
-     * 
- */ - public void getNewAssetProposals(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNewAssetProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by ID
-     * 
- */ - public void getProposalByID(io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProposalByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by reference
-     * 
- */ - public void getProposalByReference(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProposalByReferenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of all governance updates
-     * 
- */ - public void observeGovernance(io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getObserveGovernanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of proposal updates
-     * 
- */ - public void observePartyProposals(io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getObservePartyProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of votes cast by a specific party
-     * 
- */ - public void observePartyVotes(io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getObservePartyVotesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of proposal votes
-     * 
- */ - public void observeProposalVotes(io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getObserveProposalVotesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of events from the core
-     * 
- */ - public io.grpc.stub.StreamObserver observeEventBus( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getObserveEventBusMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * Get Statistics on Vega
-     * 
- */ - public void statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStatisticsMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLastBlockHeightMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get Time
-     * 
- */ - public void getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVegaTimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Accounts
-     * 
- */ - public void accountsSubscribe(io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getAccountsSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Candles
-     * 
- */ - public void candlesSubscribe(io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getCandlesSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Margin Levels
-     * 
- */ - public void marginLevelsSubscribe(io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getMarginLevelsSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Market Depth
-     * 
- */ - public void marketDepthSubscribe(io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getMarketDepthSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Market Depth Price Level Updates
-     * 
- */ - public void marketDepthUpdatesSubscribe(io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getMarketDepthUpdatesSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Markets Data
-     * 
- */ - public void marketsDataSubscribe(io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getMarketsDataSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Orders
-     * 
- */ - public void ordersSubscribe(io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getOrdersSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Positions
-     * 
- */ - public void positionsSubscribe(io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getPositionsSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Trades
-     * 
- */ - public void tradesSubscribe(io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getTradesSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribe to a stream of Transfer Responses
-     * 
- */ - public void transferResponsesSubscribe(io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getTransferResponsesSubscribeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an aggregate of signatures from all the nodes of the network
-     * 
- */ - public void getNodeSignaturesAggregate(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeSignaturesAggregateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an asset by its identifier
-     * 
- */ - public void assetByID(io.vegaprotocol.vega.api.Trading.AssetByIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAssetByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a list of all assets on Vega
-     * 
- */ - public void assets(io.vegaprotocol.vega.api.Trading.AssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an estimate for the fee to be paid for a given order
-     * 
- */ - public void estimateFee(io.vegaprotocol.vega.api.Trading.EstimateFeeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEstimateFeeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an estimate for the margin required for a new order
-     * 
- */ - public void estimateMargin(io.vegaprotocol.vega.api.Trading.EstimateMarginRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEstimateMarginMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the bundle approval for an ERC20 withdrawal,
-     * these data are being used to bundle the call to the smart contract on the ethereum bridge
-     * 
- */ - public void eRC20WithdrawalApproval(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getERC20WithdrawalApprovalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a withdrawal by its identifier
-     * 
- */ - public void withdrawal(io.vegaprotocol.vega.api.Trading.WithdrawalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWithdrawalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get withdrawals for a party
-     * 
- */ - public void withdrawals(io.vegaprotocol.vega.api.Trading.WithdrawalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWithdrawalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a deposit by its identifier
-     * 
- */ - public void deposit(io.vegaprotocol.vega.api.Trading.DepositRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get deposits for a party
-     * 
- */ - public void deposits(io.vegaprotocol.vega.api.Trading.DepositsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDepositsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the network parameters
-     * 
- */ - public void networkParameters(io.vegaprotocol.vega.api.Trading.NetworkParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getNetworkParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the liquidity provision orders
-     * 
- */ - public void liquidityProvisions(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLiquidityProvisionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get an oracle spec by ID
-     * 
- */ - public void oracleSpec(io.vegaprotocol.vega.api.Trading.OracleSpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOracleSpecMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the oracle specs
-     * 
- */ - public void oracleSpecs(io.vegaprotocol.vega.api.Trading.OracleSpecsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOracleSpecsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get all oracle data
-     * 
- */ - public void oracleDataBySpec(io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOracleDataBySpecMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - */ - public static final class TradingDataServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TradingDataServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TradingDataServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Get a list of Accounts by Market
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketAccountsResponse marketAccounts(io.vegaprotocol.vega.api.Trading.MarketAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketAccountsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Accounts by Party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PartyAccountsResponse partyAccounts(io.vegaprotocol.vega.api.Trading.PartyAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPartyAccountsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of accounts holding infrastructure fees.
-     * Can be filtered by asset, there will be 1 infrastructure fee account per
-     * asset in the network.
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsResponse feeInfrastructureAccounts(io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFeeInfrastructureAccountsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Candles by Market
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.CandlesResponse candles(io.vegaprotocol.vega.api.Trading.CandlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCandlesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get Market Data by Market ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketDataByIDResponse marketDataByID(io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketDataByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Market Data
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketsDataResponse marketsData(io.vegaprotocol.vega.api.Trading.MarketsDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketsDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a Market by ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketByIDResponse marketByID(io.vegaprotocol.vega.api.Trading.MarketByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get Market Depth
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketDepthResponse marketDepth(io.vegaprotocol.vega.api.Trading.MarketDepthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketDepthMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Markets
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarketsResponse markets(io.vegaprotocol.vega.api.Trading.MarketsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarketsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an Order by Market and Order ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDResponse orderByMarketAndID(io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrderByMarketAndIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an Order by Pending Order reference (UUID)
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrderByReferenceResponse orderByReference(io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrderByReferenceMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Orders by Market
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrdersByMarketResponse ordersByMarket(io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrdersByMarketMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Orders by Party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrdersByPartyResponse ordersByParty(io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrdersByPartyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a specific order by order ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrderByIDResponse orderByID(io.vegaprotocol.vega.api.Trading.OrderByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrderByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get all versions of the order by its orderID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OrderVersionsByIDResponse orderVersionsByID(io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOrderVersionsByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get Margin Levels by Party ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.MarginLevelsResponse marginLevels(io.vegaprotocol.vega.api.Trading.MarginLevelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMarginLevelsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Parties
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PartiesResponse parties(io.vegaprotocol.vega.api.Trading.PartiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPartiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a Party by ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PartyByIDResponse partyByID(io.vegaprotocol.vega.api.Trading.PartyByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPartyByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Positions by Party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PositionsByPartyResponse positionsByParty(io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPositionsByPartyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get latest Trade
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.LastTradeResponse lastTrade(io.vegaprotocol.vega.api.Trading.LastTradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLastTradeMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Trades by Market
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.TradesByMarketResponse tradesByMarket(io.vegaprotocol.vega.api.Trading.TradesByMarketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTradesByMarketMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Trades by Order
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.TradesByOrderResponse tradesByOrder(io.vegaprotocol.vega.api.Trading.TradesByOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTradesByOrderMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of Trades by Party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.TradesByPartyResponse tradesByParty(io.vegaprotocol.vega.api.Trading.TradesByPartyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTradesByPartyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for all proposals
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetProposalsResponse getProposals(io.vegaprotocol.vega.api.Trading.GetProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals by party authoring them
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetProposalsByPartyResponse getProposalsByParty(io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetProposalsByPartyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get votes by party casting them
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetVotesByPartyResponse getVotesByParty(io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVotesByPartyMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim creating new markets
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsResponse getNewMarketProposals(io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNewMarketProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating markets
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsResponse getUpdateMarketProposals(io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUpdateMarketProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating Vega network parameters
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsResponse getNetworkParametersProposals(io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkParametersProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals aiming to create new assets
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsResponse getNewAssetProposals(io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNewAssetProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetProposalByIDResponse getProposalByID(io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetProposalByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by reference
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetProposalByReferenceResponse getProposalByReference(io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetProposalByReferenceMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of all governance updates
-     * 
- */ - public java.util.Iterator observeGovernance( - io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getObserveGovernanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of proposal updates
-     * 
- */ - public java.util.Iterator observePartyProposals( - io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getObservePartyProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of votes cast by a specific party
-     * 
- */ - public java.util.Iterator observePartyVotes( - io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getObservePartyVotesMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of proposal votes
-     * 
- */ - public java.util.Iterator observeProposalVotes( - io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getObserveProposalVotesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get Statistics on Vega
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.StatisticsResponse statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStatisticsMethod(), getCallOptions(), request); - } - - /** - */ - public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLastBlockHeightMethod(), getCallOptions(), request); - } - - /** - *
-     * Get Time
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVegaTimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Accounts
-     * 
- */ - public java.util.Iterator accountsSubscribe( - io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getAccountsSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Candles
-     * 
- */ - public java.util.Iterator candlesSubscribe( - io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getCandlesSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Margin Levels
-     * 
- */ - public java.util.Iterator marginLevelsSubscribe( - io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getMarginLevelsSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Market Depth
-     * 
- */ - public java.util.Iterator marketDepthSubscribe( - io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getMarketDepthSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Market Depth Price Level Updates
-     * 
- */ - public java.util.Iterator marketDepthUpdatesSubscribe( - io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getMarketDepthUpdatesSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Markets Data
-     * 
- */ - public java.util.Iterator marketsDataSubscribe( - io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getMarketsDataSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Orders
-     * 
- */ - public java.util.Iterator ordersSubscribe( - io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getOrdersSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Positions
-     * 
- */ - public java.util.Iterator positionsSubscribe( - io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getPositionsSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Trades
-     * 
- */ - public java.util.Iterator tradesSubscribe( - io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getTradesSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribe to a stream of Transfer Responses
-     * 
- */ - public java.util.Iterator transferResponsesSubscribe( - io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getTransferResponsesSubscribeMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an aggregate of signatures from all the nodes of the network
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateResponse getNodeSignaturesAggregate(io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodeSignaturesAggregateMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an asset by its identifier
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.AssetByIDResponse assetByID(io.vegaprotocol.vega.api.Trading.AssetByIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAssetByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a list of all assets on Vega
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.AssetsResponse assets(io.vegaprotocol.vega.api.Trading.AssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an estimate for the fee to be paid for a given order
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.EstimateFeeResponse estimateFee(io.vegaprotocol.vega.api.Trading.EstimateFeeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEstimateFeeMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an estimate for the margin required for a new order
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.EstimateMarginResponse estimateMargin(io.vegaprotocol.vega.api.Trading.EstimateMarginRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEstimateMarginMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the bundle approval for an ERC20 withdrawal,
-     * these data are being used to bundle the call to the smart contract on the ethereum bridge
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalResponse eRC20WithdrawalApproval(io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getERC20WithdrawalApprovalMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a withdrawal by its identifier
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.WithdrawalResponse withdrawal(io.vegaprotocol.vega.api.Trading.WithdrawalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWithdrawalMethod(), getCallOptions(), request); - } - - /** - *
-     * Get withdrawals for a party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.WithdrawalsResponse withdrawals(io.vegaprotocol.vega.api.Trading.WithdrawalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWithdrawalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a deposit by its identifier
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.DepositResponse deposit(io.vegaprotocol.vega.api.Trading.DepositRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDepositMethod(), getCallOptions(), request); - } - - /** - *
-     * Get deposits for a party
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.DepositsResponse deposits(io.vegaprotocol.vega.api.Trading.DepositsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDepositsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the network parameters
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.NetworkParametersResponse networkParameters(io.vegaprotocol.vega.api.Trading.NetworkParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getNetworkParametersMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the liquidity provision orders
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.LiquidityProvisionsResponse liquidityProvisions(io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLiquidityProvisionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get an oracle spec by ID
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OracleSpecResponse oracleSpec(io.vegaprotocol.vega.api.Trading.OracleSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOracleSpecMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the oracle specs
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OracleSpecsResponse oracleSpecs(io.vegaprotocol.vega.api.Trading.OracleSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOracleSpecsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get all oracle data
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.OracleDataBySpecResponse oracleDataBySpec(io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getOracleDataBySpecMethod(), getCallOptions(), request); - } - } - - /** - */ - public static final class TradingDataServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private TradingDataServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TradingDataServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TradingDataServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Get a list of Accounts by Market
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marketAccounts( - io.vegaprotocol.vega.api.Trading.MarketAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketAccountsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Accounts by Party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture partyAccounts( - io.vegaprotocol.vega.api.Trading.PartyAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPartyAccountsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of accounts holding infrastructure fees.
-     * Can be filtered by asset, there will be 1 infrastructure fee account per
-     * asset in the network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture feeInfrastructureAccounts( - io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFeeInfrastructureAccountsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Candles by Market
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture candles( - io.vegaprotocol.vega.api.Trading.CandlesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCandlesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get Market Data by Market ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marketDataByID( - io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketDataByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Market Data
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marketsData( - io.vegaprotocol.vega.api.Trading.MarketsDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketsDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a Market by ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marketByID( - io.vegaprotocol.vega.api.Trading.MarketByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get Market Depth
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marketDepth( - io.vegaprotocol.vega.api.Trading.MarketDepthRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketDepthMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Markets
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture markets( - io.vegaprotocol.vega.api.Trading.MarketsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarketsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an Order by Market and Order ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture orderByMarketAndID( - io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrderByMarketAndIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an Order by Pending Order reference (UUID)
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture orderByReference( - io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrderByReferenceMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Orders by Market
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture ordersByMarket( - io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrdersByMarketMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Orders by Party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture ordersByParty( - io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrdersByPartyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a specific order by order ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture orderByID( - io.vegaprotocol.vega.api.Trading.OrderByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrderByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get all versions of the order by its orderID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture orderVersionsByID( - io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOrderVersionsByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get Margin Levels by Party ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture marginLevels( - io.vegaprotocol.vega.api.Trading.MarginLevelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMarginLevelsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Parties
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture parties( - io.vegaprotocol.vega.api.Trading.PartiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPartiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a Party by ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture partyByID( - io.vegaprotocol.vega.api.Trading.PartyByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPartyByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Positions by Party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture positionsByParty( - io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPositionsByPartyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get latest Trade
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lastTrade( - io.vegaprotocol.vega.api.Trading.LastTradeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLastTradeMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Trades by Market
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture tradesByMarket( - io.vegaprotocol.vega.api.Trading.TradesByMarketRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTradesByMarketMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Trades by Order
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture tradesByOrder( - io.vegaprotocol.vega.api.Trading.TradesByOrderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTradesByOrderMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of Trades by Party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture tradesByParty( - io.vegaprotocol.vega.api.Trading.TradesByPartyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTradesByPartyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for all proposals
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProposals( - io.vegaprotocol.vega.api.Trading.GetProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals by party authoring them
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProposalsByParty( - io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetProposalsByPartyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get votes by party casting them
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVotesByParty( - io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVotesByPartyMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim creating new markets
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNewMarketProposals( - io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNewMarketProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating markets
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getUpdateMarketProposals( - io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUpdateMarketProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals that aim updating Vega network parameters
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNetworkParametersProposals( - io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkParametersProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for proposals aiming to create new assets
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNewAssetProposals( - io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNewAssetProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProposalByID( - io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetProposalByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get governance data (proposals and votes) for a proposal located by reference
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProposalByReference( - io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetProposalByReferenceMethod(), getCallOptions()), request); - } - - /** - *
-     * Get Statistics on Vega
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture statistics( - io.vegaprotocol.vega.api.Trading.StatisticsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStatisticsMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture lastBlockHeight( - io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLastBlockHeightMethod(), getCallOptions()), request); - } - - /** - *
-     * Get Time
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVegaTime( - io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVegaTimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an aggregate of signatures from all the nodes of the network
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNodeSignaturesAggregate( - io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodeSignaturesAggregateMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an asset by its identifier
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture assetByID( - io.vegaprotocol.vega.api.Trading.AssetByIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAssetByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a list of all assets on Vega
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture assets( - io.vegaprotocol.vega.api.Trading.AssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an estimate for the fee to be paid for a given order
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture estimateFee( - io.vegaprotocol.vega.api.Trading.EstimateFeeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEstimateFeeMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an estimate for the margin required for a new order
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture estimateMargin( - io.vegaprotocol.vega.api.Trading.EstimateMarginRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEstimateMarginMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the bundle approval for an ERC20 withdrawal,
-     * these data are being used to bundle the call to the smart contract on the ethereum bridge
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture eRC20WithdrawalApproval( - io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getERC20WithdrawalApprovalMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a withdrawal by its identifier
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture withdrawal( - io.vegaprotocol.vega.api.Trading.WithdrawalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getWithdrawalMethod(), getCallOptions()), request); - } - - /** - *
-     * Get withdrawals for a party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture withdrawals( - io.vegaprotocol.vega.api.Trading.WithdrawalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getWithdrawalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a deposit by its identifier
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deposit( - io.vegaprotocol.vega.api.Trading.DepositRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDepositMethod(), getCallOptions()), request); - } - - /** - *
-     * Get deposits for a party
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deposits( - io.vegaprotocol.vega.api.Trading.DepositsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDepositsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the network parameters
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture networkParameters( - io.vegaprotocol.vega.api.Trading.NetworkParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getNetworkParametersMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the liquidity provision orders
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture liquidityProvisions( - io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLiquidityProvisionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get an oracle spec by ID
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture oracleSpec( - io.vegaprotocol.vega.api.Trading.OracleSpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOracleSpecMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the oracle specs
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture oracleSpecs( - io.vegaprotocol.vega.api.Trading.OracleSpecsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOracleSpecsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get all oracle data
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture oracleDataBySpec( - io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getOracleDataBySpecMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_MARKET_ACCOUNTS = 0; - private static final int METHODID_PARTY_ACCOUNTS = 1; - private static final int METHODID_FEE_INFRASTRUCTURE_ACCOUNTS = 2; - private static final int METHODID_CANDLES = 3; - private static final int METHODID_MARKET_DATA_BY_ID = 4; - private static final int METHODID_MARKETS_DATA = 5; - private static final int METHODID_MARKET_BY_ID = 6; - private static final int METHODID_MARKET_DEPTH = 7; - private static final int METHODID_MARKETS = 8; - private static final int METHODID_ORDER_BY_MARKET_AND_ID = 9; - private static final int METHODID_ORDER_BY_REFERENCE = 10; - private static final int METHODID_ORDERS_BY_MARKET = 11; - private static final int METHODID_ORDERS_BY_PARTY = 12; - private static final int METHODID_ORDER_BY_ID = 13; - private static final int METHODID_ORDER_VERSIONS_BY_ID = 14; - private static final int METHODID_MARGIN_LEVELS = 15; - private static final int METHODID_PARTIES = 16; - private static final int METHODID_PARTY_BY_ID = 17; - private static final int METHODID_POSITIONS_BY_PARTY = 18; - private static final int METHODID_LAST_TRADE = 19; - private static final int METHODID_TRADES_BY_MARKET = 20; - private static final int METHODID_TRADES_BY_ORDER = 21; - private static final int METHODID_TRADES_BY_PARTY = 22; - private static final int METHODID_GET_PROPOSALS = 23; - private static final int METHODID_GET_PROPOSALS_BY_PARTY = 24; - private static final int METHODID_GET_VOTES_BY_PARTY = 25; - private static final int METHODID_GET_NEW_MARKET_PROPOSALS = 26; - private static final int METHODID_GET_UPDATE_MARKET_PROPOSALS = 27; - private static final int METHODID_GET_NETWORK_PARAMETERS_PROPOSALS = 28; - private static final int METHODID_GET_NEW_ASSET_PROPOSALS = 29; - private static final int METHODID_GET_PROPOSAL_BY_ID = 30; - private static final int METHODID_GET_PROPOSAL_BY_REFERENCE = 31; - private static final int METHODID_OBSERVE_GOVERNANCE = 32; - private static final int METHODID_OBSERVE_PARTY_PROPOSALS = 33; - private static final int METHODID_OBSERVE_PARTY_VOTES = 34; - private static final int METHODID_OBSERVE_PROPOSAL_VOTES = 35; - private static final int METHODID_STATISTICS = 36; - private static final int METHODID_LAST_BLOCK_HEIGHT = 37; - private static final int METHODID_GET_VEGA_TIME = 38; - private static final int METHODID_ACCOUNTS_SUBSCRIBE = 39; - private static final int METHODID_CANDLES_SUBSCRIBE = 40; - private static final int METHODID_MARGIN_LEVELS_SUBSCRIBE = 41; - private static final int METHODID_MARKET_DEPTH_SUBSCRIBE = 42; - private static final int METHODID_MARKET_DEPTH_UPDATES_SUBSCRIBE = 43; - private static final int METHODID_MARKETS_DATA_SUBSCRIBE = 44; - private static final int METHODID_ORDERS_SUBSCRIBE = 45; - private static final int METHODID_POSITIONS_SUBSCRIBE = 46; - private static final int METHODID_TRADES_SUBSCRIBE = 47; - private static final int METHODID_TRANSFER_RESPONSES_SUBSCRIBE = 48; - private static final int METHODID_GET_NODE_SIGNATURES_AGGREGATE = 49; - private static final int METHODID_ASSET_BY_ID = 50; - private static final int METHODID_ASSETS = 51; - private static final int METHODID_ESTIMATE_FEE = 52; - private static final int METHODID_ESTIMATE_MARGIN = 53; - private static final int METHODID_ERC20WITHDRAWAL_APPROVAL = 54; - private static final int METHODID_WITHDRAWAL = 55; - private static final int METHODID_WITHDRAWALS = 56; - private static final int METHODID_DEPOSIT = 57; - private static final int METHODID_DEPOSITS = 58; - private static final int METHODID_NETWORK_PARAMETERS = 59; - private static final int METHODID_LIQUIDITY_PROVISIONS = 60; - private static final int METHODID_ORACLE_SPEC = 61; - private static final int METHODID_ORACLE_SPECS = 62; - private static final int METHODID_ORACLE_DATA_BY_SPEC = 63; - private static final int METHODID_OBSERVE_EVENT_BUS = 64; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final TradingDataServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TradingDataServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_MARKET_ACCOUNTS: - serviceImpl.marketAccounts((io.vegaprotocol.vega.api.Trading.MarketAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARTY_ACCOUNTS: - serviceImpl.partyAccounts((io.vegaprotocol.vega.api.Trading.PartyAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FEE_INFRASTRUCTURE_ACCOUNTS: - serviceImpl.feeInfrastructureAccounts((io.vegaprotocol.vega.api.Trading.FeeInfrastructureAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANDLES: - serviceImpl.candles((io.vegaprotocol.vega.api.Trading.CandlesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_DATA_BY_ID: - serviceImpl.marketDataByID((io.vegaprotocol.vega.api.Trading.MarketDataByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKETS_DATA: - serviceImpl.marketsData((io.vegaprotocol.vega.api.Trading.MarketsDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_BY_ID: - serviceImpl.marketByID((io.vegaprotocol.vega.api.Trading.MarketByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_DEPTH: - serviceImpl.marketDepth((io.vegaprotocol.vega.api.Trading.MarketDepthRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKETS: - serviceImpl.markets((io.vegaprotocol.vega.api.Trading.MarketsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDER_BY_MARKET_AND_ID: - serviceImpl.orderByMarketAndID((io.vegaprotocol.vega.api.Trading.OrderByMarketAndIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDER_BY_REFERENCE: - serviceImpl.orderByReference((io.vegaprotocol.vega.api.Trading.OrderByReferenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDERS_BY_MARKET: - serviceImpl.ordersByMarket((io.vegaprotocol.vega.api.Trading.OrdersByMarketRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDERS_BY_PARTY: - serviceImpl.ordersByParty((io.vegaprotocol.vega.api.Trading.OrdersByPartyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDER_BY_ID: - serviceImpl.orderByID((io.vegaprotocol.vega.api.Trading.OrderByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDER_VERSIONS_BY_ID: - serviceImpl.orderVersionsByID((io.vegaprotocol.vega.api.Trading.OrderVersionsByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARGIN_LEVELS: - serviceImpl.marginLevels((io.vegaprotocol.vega.api.Trading.MarginLevelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARTIES: - serviceImpl.parties((io.vegaprotocol.vega.api.Trading.PartiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PARTY_BY_ID: - serviceImpl.partyByID((io.vegaprotocol.vega.api.Trading.PartyByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_POSITIONS_BY_PARTY: - serviceImpl.positionsByParty((io.vegaprotocol.vega.api.Trading.PositionsByPartyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LAST_TRADE: - serviceImpl.lastTrade((io.vegaprotocol.vega.api.Trading.LastTradeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRADES_BY_MARKET: - serviceImpl.tradesByMarket((io.vegaprotocol.vega.api.Trading.TradesByMarketRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRADES_BY_ORDER: - serviceImpl.tradesByOrder((io.vegaprotocol.vega.api.Trading.TradesByOrderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRADES_BY_PARTY: - serviceImpl.tradesByParty((io.vegaprotocol.vega.api.Trading.TradesByPartyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPOSALS: - serviceImpl.getProposals((io.vegaprotocol.vega.api.Trading.GetProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPOSALS_BY_PARTY: - serviceImpl.getProposalsByParty((io.vegaprotocol.vega.api.Trading.GetProposalsByPartyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOTES_BY_PARTY: - serviceImpl.getVotesByParty((io.vegaprotocol.vega.api.Trading.GetVotesByPartyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NEW_MARKET_PROPOSALS: - serviceImpl.getNewMarketProposals((io.vegaprotocol.vega.api.Trading.GetNewMarketProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_UPDATE_MARKET_PROPOSALS: - serviceImpl.getUpdateMarketProposals((io.vegaprotocol.vega.api.Trading.GetUpdateMarketProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NETWORK_PARAMETERS_PROPOSALS: - serviceImpl.getNetworkParametersProposals((io.vegaprotocol.vega.api.Trading.GetNetworkParametersProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NEW_ASSET_PROPOSALS: - serviceImpl.getNewAssetProposals((io.vegaprotocol.vega.api.Trading.GetNewAssetProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPOSAL_BY_ID: - serviceImpl.getProposalByID((io.vegaprotocol.vega.api.Trading.GetProposalByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPOSAL_BY_REFERENCE: - serviceImpl.getProposalByReference((io.vegaprotocol.vega.api.Trading.GetProposalByReferenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_OBSERVE_GOVERNANCE: - serviceImpl.observeGovernance((io.vegaprotocol.vega.api.Trading.ObserveGovernanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_OBSERVE_PARTY_PROPOSALS: - serviceImpl.observePartyProposals((io.vegaprotocol.vega.api.Trading.ObservePartyProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_OBSERVE_PARTY_VOTES: - serviceImpl.observePartyVotes((io.vegaprotocol.vega.api.Trading.ObservePartyVotesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_OBSERVE_PROPOSAL_VOTES: - serviceImpl.observeProposalVotes((io.vegaprotocol.vega.api.Trading.ObserveProposalVotesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STATISTICS: - serviceImpl.statistics((io.vegaprotocol.vega.api.Trading.StatisticsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LAST_BLOCK_HEIGHT: - serviceImpl.lastBlockHeight((io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VEGA_TIME: - serviceImpl.getVegaTime((io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACCOUNTS_SUBSCRIBE: - serviceImpl.accountsSubscribe((io.vegaprotocol.vega.api.Trading.AccountsSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANDLES_SUBSCRIBE: - serviceImpl.candlesSubscribe((io.vegaprotocol.vega.api.Trading.CandlesSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARGIN_LEVELS_SUBSCRIBE: - serviceImpl.marginLevelsSubscribe((io.vegaprotocol.vega.api.Trading.MarginLevelsSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_DEPTH_SUBSCRIBE: - serviceImpl.marketDepthSubscribe((io.vegaprotocol.vega.api.Trading.MarketDepthSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKET_DEPTH_UPDATES_SUBSCRIBE: - serviceImpl.marketDepthUpdatesSubscribe((io.vegaprotocol.vega.api.Trading.MarketDepthUpdatesSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MARKETS_DATA_SUBSCRIBE: - serviceImpl.marketsDataSubscribe((io.vegaprotocol.vega.api.Trading.MarketsDataSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORDERS_SUBSCRIBE: - serviceImpl.ordersSubscribe((io.vegaprotocol.vega.api.Trading.OrdersSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_POSITIONS_SUBSCRIBE: - serviceImpl.positionsSubscribe((io.vegaprotocol.vega.api.Trading.PositionsSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRADES_SUBSCRIBE: - serviceImpl.tradesSubscribe((io.vegaprotocol.vega.api.Trading.TradesSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSFER_RESPONSES_SUBSCRIBE: - serviceImpl.transferResponsesSubscribe((io.vegaprotocol.vega.api.Trading.TransferResponsesSubscribeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NODE_SIGNATURES_AGGREGATE: - serviceImpl.getNodeSignaturesAggregate((io.vegaprotocol.vega.api.Trading.GetNodeSignaturesAggregateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ASSET_BY_ID: - serviceImpl.assetByID((io.vegaprotocol.vega.api.Trading.AssetByIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ASSETS: - serviceImpl.assets((io.vegaprotocol.vega.api.Trading.AssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ESTIMATE_FEE: - serviceImpl.estimateFee((io.vegaprotocol.vega.api.Trading.EstimateFeeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ESTIMATE_MARGIN: - serviceImpl.estimateMargin((io.vegaprotocol.vega.api.Trading.EstimateMarginRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ERC20WITHDRAWAL_APPROVAL: - serviceImpl.eRC20WithdrawalApproval((io.vegaprotocol.vega.api.Trading.ERC20WithdrawalApprovalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAWAL: - serviceImpl.withdrawal((io.vegaprotocol.vega.api.Trading.WithdrawalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WITHDRAWALS: - serviceImpl.withdrawals((io.vegaprotocol.vega.api.Trading.WithdrawalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPOSIT: - serviceImpl.deposit((io.vegaprotocol.vega.api.Trading.DepositRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DEPOSITS: - serviceImpl.deposits((io.vegaprotocol.vega.api.Trading.DepositsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_NETWORK_PARAMETERS: - serviceImpl.networkParameters((io.vegaprotocol.vega.api.Trading.NetworkParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIQUIDITY_PROVISIONS: - serviceImpl.liquidityProvisions((io.vegaprotocol.vega.api.Trading.LiquidityProvisionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORACLE_SPEC: - serviceImpl.oracleSpec((io.vegaprotocol.vega.api.Trading.OracleSpecRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORACLE_SPECS: - serviceImpl.oracleSpecs((io.vegaprotocol.vega.api.Trading.OracleSpecsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ORACLE_DATA_BY_SPEC: - serviceImpl.oracleDataBySpec((io.vegaprotocol.vega.api.Trading.OracleDataBySpecRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_OBSERVE_EVENT_BUS: - return (io.grpc.stub.StreamObserver) serviceImpl.observeEventBus( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class TradingDataServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TradingDataServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return io.vegaprotocol.vega.api.Trading.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TradingDataService"); - } - } - - private static final class TradingDataServiceFileDescriptorSupplier - extends TradingDataServiceBaseDescriptorSupplier { - TradingDataServiceFileDescriptorSupplier() {} - } - - private static final class TradingDataServiceMethodDescriptorSupplier - extends TradingDataServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TradingDataServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TradingDataServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TradingDataServiceFileDescriptorSupplier()) - .addMethod(getMarketAccountsMethod()) - .addMethod(getPartyAccountsMethod()) - .addMethod(getFeeInfrastructureAccountsMethod()) - .addMethod(getCandlesMethod()) - .addMethod(getMarketDataByIDMethod()) - .addMethod(getMarketsDataMethod()) - .addMethod(getMarketByIDMethod()) - .addMethod(getMarketDepthMethod()) - .addMethod(getMarketsMethod()) - .addMethod(getOrderByMarketAndIDMethod()) - .addMethod(getOrderByReferenceMethod()) - .addMethod(getOrdersByMarketMethod()) - .addMethod(getOrdersByPartyMethod()) - .addMethod(getOrderByIDMethod()) - .addMethod(getOrderVersionsByIDMethod()) - .addMethod(getMarginLevelsMethod()) - .addMethod(getPartiesMethod()) - .addMethod(getPartyByIDMethod()) - .addMethod(getPositionsByPartyMethod()) - .addMethod(getLastTradeMethod()) - .addMethod(getTradesByMarketMethod()) - .addMethod(getTradesByOrderMethod()) - .addMethod(getTradesByPartyMethod()) - .addMethod(getGetProposalsMethod()) - .addMethod(getGetProposalsByPartyMethod()) - .addMethod(getGetVotesByPartyMethod()) - .addMethod(getGetNewMarketProposalsMethod()) - .addMethod(getGetUpdateMarketProposalsMethod()) - .addMethod(getGetNetworkParametersProposalsMethod()) - .addMethod(getGetNewAssetProposalsMethod()) - .addMethod(getGetProposalByIDMethod()) - .addMethod(getGetProposalByReferenceMethod()) - .addMethod(getObserveGovernanceMethod()) - .addMethod(getObservePartyProposalsMethod()) - .addMethod(getObservePartyVotesMethod()) - .addMethod(getObserveProposalVotesMethod()) - .addMethod(getObserveEventBusMethod()) - .addMethod(getStatisticsMethod()) - .addMethod(getLastBlockHeightMethod()) - .addMethod(getGetVegaTimeMethod()) - .addMethod(getAccountsSubscribeMethod()) - .addMethod(getCandlesSubscribeMethod()) - .addMethod(getMarginLevelsSubscribeMethod()) - .addMethod(getMarketDepthSubscribeMethod()) - .addMethod(getMarketDepthUpdatesSubscribeMethod()) - .addMethod(getMarketsDataSubscribeMethod()) - .addMethod(getOrdersSubscribeMethod()) - .addMethod(getPositionsSubscribeMethod()) - .addMethod(getTradesSubscribeMethod()) - .addMethod(getTransferResponsesSubscribeMethod()) - .addMethod(getGetNodeSignaturesAggregateMethod()) - .addMethod(getAssetByIDMethod()) - .addMethod(getAssetsMethod()) - .addMethod(getEstimateFeeMethod()) - .addMethod(getEstimateMarginMethod()) - .addMethod(getERC20WithdrawalApprovalMethod()) - .addMethod(getWithdrawalMethod()) - .addMethod(getWithdrawalsMethod()) - .addMethod(getDepositMethod()) - .addMethod(getDepositsMethod()) - .addMethod(getNetworkParametersMethod()) - .addMethod(getLiquidityProvisionsMethod()) - .addMethod(getOracleSpecMethod()) - .addMethod(getOracleSpecsMethod()) - .addMethod(getOracleDataBySpecMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingServiceGrpc.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingServiceGrpc.java index 4139fcbe..6976eddf 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingServiceGrpc.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/api/TradingServiceGrpc.java @@ -14,161 +14,6 @@ private TradingServiceGrpc() {} public static final String SERVICE_NAME = "api.v1.TradingService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getPrepareSubmitOrderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareSubmitOrder", - requestType = io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareSubmitOrderMethod() { - io.grpc.MethodDescriptor getPrepareSubmitOrderMethod; - if ((getPrepareSubmitOrderMethod = TradingServiceGrpc.getPrepareSubmitOrderMethod) == null) { - synchronized (TradingServiceGrpc.class) { - if ((getPrepareSubmitOrderMethod = TradingServiceGrpc.getPrepareSubmitOrderMethod) == null) { - TradingServiceGrpc.getPrepareSubmitOrderMethod = getPrepareSubmitOrderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareSubmitOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareSubmitOrder")) - .build(); - } - } - } - return getPrepareSubmitOrderMethod; - } - - private static volatile io.grpc.MethodDescriptor getPrepareCancelOrderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareCancelOrder", - requestType = io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareCancelOrderMethod() { - io.grpc.MethodDescriptor getPrepareCancelOrderMethod; - if ((getPrepareCancelOrderMethod = TradingServiceGrpc.getPrepareCancelOrderMethod) == null) { - synchronized (TradingServiceGrpc.class) { - if ((getPrepareCancelOrderMethod = TradingServiceGrpc.getPrepareCancelOrderMethod) == null) { - TradingServiceGrpc.getPrepareCancelOrderMethod = getPrepareCancelOrderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareCancelOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareCancelOrder")) - .build(); - } - } - } - return getPrepareCancelOrderMethod; - } - - private static volatile io.grpc.MethodDescriptor getPrepareAmendOrderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareAmendOrder", - requestType = io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareAmendOrderMethod() { - io.grpc.MethodDescriptor getPrepareAmendOrderMethod; - if ((getPrepareAmendOrderMethod = TradingServiceGrpc.getPrepareAmendOrderMethod) == null) { - synchronized (TradingServiceGrpc.class) { - if ((getPrepareAmendOrderMethod = TradingServiceGrpc.getPrepareAmendOrderMethod) == null) { - TradingServiceGrpc.getPrepareAmendOrderMethod = getPrepareAmendOrderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareAmendOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareAmendOrder")) - .build(); - } - } - } - return getPrepareAmendOrderMethod; - } - - private static volatile io.grpc.MethodDescriptor getPrepareWithdrawMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareWithdraw", - requestType = io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareWithdrawMethod() { - io.grpc.MethodDescriptor getPrepareWithdrawMethod; - if ((getPrepareWithdrawMethod = TradingServiceGrpc.getPrepareWithdrawMethod) == null) { - synchronized (TradingServiceGrpc.class) { - if ((getPrepareWithdrawMethod = TradingServiceGrpc.getPrepareWithdrawMethod) == null) { - TradingServiceGrpc.getPrepareWithdrawMethod = getPrepareWithdrawMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareWithdraw")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareWithdraw")) - .build(); - } - } - } - return getPrepareWithdrawMethod; - } - - private static volatile io.grpc.MethodDescriptor getSubmitTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitTransaction", - requestType = io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitTransactionMethod() { - io.grpc.MethodDescriptor getSubmitTransactionMethod; - if ((getSubmitTransactionMethod = TradingServiceGrpc.getSubmitTransactionMethod) == null) { - synchronized (TradingServiceGrpc.class) { - if ((getSubmitTransactionMethod = TradingServiceGrpc.getSubmitTransactionMethod) == null) { - TradingServiceGrpc.getSubmitTransactionMethod = getSubmitTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("SubmitTransaction")) - .build(); - } - } - } - return getSubmitTransactionMethod; - } - private static volatile io.grpc.MethodDescriptor getSubmitTransactionV2Method; @@ -200,128 +45,159 @@ io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response> getSubmitTransacti return getSubmitTransactionV2Method; } - private static volatile io.grpc.MethodDescriptor getPrepareProposalSubmissionMethod; + private static volatile io.grpc.MethodDescriptor getPropagateChainEventMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareProposalSubmission", - requestType = io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.class, + fullMethodName = SERVICE_NAME + '/' + "PropagateChainEvent", + requestType = io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.class, + responseType = io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareProposalSubmissionMethod() { - io.grpc.MethodDescriptor getPrepareProposalSubmissionMethod; - if ((getPrepareProposalSubmissionMethod = TradingServiceGrpc.getPrepareProposalSubmissionMethod) == null) { + public static io.grpc.MethodDescriptor getPropagateChainEventMethod() { + io.grpc.MethodDescriptor getPropagateChainEventMethod; + if ((getPropagateChainEventMethod = TradingServiceGrpc.getPropagateChainEventMethod) == null) { synchronized (TradingServiceGrpc.class) { - if ((getPrepareProposalSubmissionMethod = TradingServiceGrpc.getPrepareProposalSubmissionMethod) == null) { - TradingServiceGrpc.getPrepareProposalSubmissionMethod = getPrepareProposalSubmissionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getPropagateChainEventMethod = TradingServiceGrpc.getPropagateChainEventMethod) == null) { + TradingServiceGrpc.getPropagateChainEventMethod = getPropagateChainEventMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareProposalSubmission")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PropagateChainEvent")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest.getDefaultInstance())) + io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareProposalSubmission")) + io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse.getDefaultInstance())) + .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PropagateChainEvent")) .build(); } } } - return getPrepareProposalSubmissionMethod; + return getPropagateChainEventMethod; } - private static volatile io.grpc.MethodDescriptor getPrepareVoteSubmissionMethod; + private static volatile io.grpc.MethodDescriptor getStatisticsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareVoteSubmission", - requestType = io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.class, + fullMethodName = SERVICE_NAME + '/' + "Statistics", + requestType = io.vegaprotocol.vega.api.Trading.StatisticsRequest.class, + responseType = io.vegaprotocol.vega.api.Trading.StatisticsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareVoteSubmissionMethod() { - io.grpc.MethodDescriptor getPrepareVoteSubmissionMethod; - if ((getPrepareVoteSubmissionMethod = TradingServiceGrpc.getPrepareVoteSubmissionMethod) == null) { + public static io.grpc.MethodDescriptor getStatisticsMethod() { + io.grpc.MethodDescriptor getStatisticsMethod; + if ((getStatisticsMethod = TradingServiceGrpc.getStatisticsMethod) == null) { synchronized (TradingServiceGrpc.class) { - if ((getPrepareVoteSubmissionMethod = TradingServiceGrpc.getPrepareVoteSubmissionMethod) == null) { - TradingServiceGrpc.getPrepareVoteSubmissionMethod = getPrepareVoteSubmissionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getStatisticsMethod = TradingServiceGrpc.getStatisticsMethod) == null) { + TradingServiceGrpc.getStatisticsMethod = getStatisticsMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareVoteSubmission")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Statistics")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest.getDefaultInstance())) + io.vegaprotocol.vega.api.Trading.StatisticsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareVoteSubmission")) + io.vegaprotocol.vega.api.Trading.StatisticsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("Statistics")) .build(); } } } - return getPrepareVoteSubmissionMethod; + return getStatisticsMethod; } - private static volatile io.grpc.MethodDescriptor getPropagateChainEventMethod; + private static volatile io.grpc.MethodDescriptor getLastBlockHeightMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PropagateChainEvent", - requestType = io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse.class, + fullMethodName = SERVICE_NAME + '/' + "LastBlockHeight", + requestType = io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest.class, + responseType = io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPropagateChainEventMethod() { - io.grpc.MethodDescriptor getPropagateChainEventMethod; - if ((getPropagateChainEventMethod = TradingServiceGrpc.getPropagateChainEventMethod) == null) { + public static io.grpc.MethodDescriptor getLastBlockHeightMethod() { + io.grpc.MethodDescriptor getLastBlockHeightMethod; + if ((getLastBlockHeightMethod = TradingServiceGrpc.getLastBlockHeightMethod) == null) { synchronized (TradingServiceGrpc.class) { - if ((getPropagateChainEventMethod = TradingServiceGrpc.getPropagateChainEventMethod) == null) { - TradingServiceGrpc.getPropagateChainEventMethod = getPropagateChainEventMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getLastBlockHeightMethod = TradingServiceGrpc.getLastBlockHeightMethod) == null) { + TradingServiceGrpc.getLastBlockHeightMethod = getLastBlockHeightMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PropagateChainEvent")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LastBlockHeight")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest.getDefaultInstance())) + io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PropagateChainEvent")) + io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse.getDefaultInstance())) + .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("LastBlockHeight")) .build(); } } } - return getPropagateChainEventMethod; + return getLastBlockHeightMethod; } - private static volatile io.grpc.MethodDescriptor getPrepareLiquidityProvisionMethod; + private static volatile io.grpc.MethodDescriptor getGetVegaTimeMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PrepareLiquidityProvision", - requestType = io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.class, - responseType = io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.class, + fullMethodName = SERVICE_NAME + '/' + "GetVegaTime", + requestType = io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.class, + responseType = io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPrepareLiquidityProvisionMethod() { - io.grpc.MethodDescriptor getPrepareLiquidityProvisionMethod; - if ((getPrepareLiquidityProvisionMethod = TradingServiceGrpc.getPrepareLiquidityProvisionMethod) == null) { + public static io.grpc.MethodDescriptor getGetVegaTimeMethod() { + io.grpc.MethodDescriptor getGetVegaTimeMethod; + if ((getGetVegaTimeMethod = TradingServiceGrpc.getGetVegaTimeMethod) == null) { synchronized (TradingServiceGrpc.class) { - if ((getPrepareLiquidityProvisionMethod = TradingServiceGrpc.getPrepareLiquidityProvisionMethod) == null) { - TradingServiceGrpc.getPrepareLiquidityProvisionMethod = getPrepareLiquidityProvisionMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetVegaTimeMethod = TradingServiceGrpc.getGetVegaTimeMethod) == null) { + TradingServiceGrpc.getGetVegaTimeMethod = getGetVegaTimeMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareLiquidityProvision")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVegaTime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse.getDefaultInstance())) + .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("GetVegaTime")) + .build(); + } + } + } + return getGetVegaTimeMethod; + } + + private static volatile io.grpc.MethodDescriptor getObserveEventBusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ObserveEventBus", + requestType = io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.class, + responseType = io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getObserveEventBusMethod() { + io.grpc.MethodDescriptor getObserveEventBusMethod; + if ((getObserveEventBusMethod = TradingServiceGrpc.getObserveEventBusMethod) == null) { + synchronized (TradingServiceGrpc.class) { + if ((getObserveEventBusMethod = TradingServiceGrpc.getObserveEventBusMethod) == null) { + TradingServiceGrpc.getObserveEventBusMethod = getObserveEventBusMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ObserveEventBus")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest.getDefaultInstance())) + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse.getDefaultInstance())) - .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("PrepareLiquidityProvision")) + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse.getDefaultInstance())) + .setSchemaDescriptor(new TradingServiceMethodDescriptorSupplier("ObserveEventBus")) .build(); } } } - return getPrepareLiquidityProvisionMethod; + return getObserveEventBusMethod; } /** @@ -374,141 +250,66 @@ public static abstract class TradingServiceImplBase implements io.grpc.BindableS /** *
-     * Prepare a submit order request
-     * 
- */ - public void prepareSubmitOrder(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareSubmitOrderMethod(), responseObserver); - } - - /** - *
-     * Prepare a cancel order request
-     * 
- */ - public void prepareCancelOrder(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareCancelOrderMethod(), responseObserver); - } - - /** - *
-     * Prepare an amend order request
-     * 
- */ - public void prepareAmendOrder(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareAmendOrderMethod(), responseObserver); - } - - /** - *
-     * Request a withdrawal
-     * 
- */ - public void prepareWithdraw(io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareWithdrawMethod(), responseObserver); - } - - /** - *
-     * Submit a signed transaction
+     * Submit a signed transaction (v2)
      * 
*/ - public void submitTransaction(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitTransactionMethod(), responseObserver); + public void submitTransactionV2(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitTransactionV2Method(), responseObserver); } /** *
-     * Submit a signed transaction (v2)
+     * Propagate a chain event
      * 
*/ - public void submitTransactionV2(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitTransactionV2Method(), responseObserver); + public void propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPropagateChainEventMethod(), responseObserver); } /** *
-     * Prepare a governance proposal
+     * Get Statistics on Vega
      * 
*/ - public void prepareProposalSubmission(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareProposalSubmissionMethod(), responseObserver); + public void statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatisticsMethod(), responseObserver); } /** *
-     * Prepare a governance vote
+     * Get the height of the last tendermint block
      * 
*/ - public void prepareVoteSubmission(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareVoteSubmissionMethod(), responseObserver); + public void lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLastBlockHeightMethod(), responseObserver); } /** *
-     * Propagate a chain event
+     * Get Time
      * 
*/ - public void propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPropagateChainEventMethod(), responseObserver); + public void getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVegaTimeMethod(), responseObserver); } /** *
-     * Prepare a liquidity provision request
+     * Subscribe to a stream of events from the core
      * 
*/ - public void prepareLiquidityProvision(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPrepareLiquidityProvisionMethod(), responseObserver); + public io.grpc.stub.StreamObserver observeEventBus( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getObserveEventBusMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getPrepareSubmitOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest, - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse>( - this, METHODID_PREPARE_SUBMIT_ORDER))) - .addMethod( - getPrepareCancelOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest, - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse>( - this, METHODID_PREPARE_CANCEL_ORDER))) - .addMethod( - getPrepareAmendOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest, - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse>( - this, METHODID_PREPARE_AMEND_ORDER))) - .addMethod( - getPrepareWithdrawMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest, - io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse>( - this, METHODID_PREPARE_WITHDRAW))) - .addMethod( - getSubmitTransactionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest, - io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse>( - this, METHODID_SUBMIT_TRANSACTION))) .addMethod( getSubmitTransactionV2Method(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -517,33 +318,40 @@ public void prepareLiquidityProvision(io.vegaprotocol.vega.api.Trading.PrepareLi io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response>( this, METHODID_SUBMIT_TRANSACTION_V2))) .addMethod( - getPrepareProposalSubmissionMethod(), + getPropagateChainEventMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest, - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse>( - this, METHODID_PREPARE_PROPOSAL_SUBMISSION))) + io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest, + io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse>( + this, METHODID_PROPAGATE_CHAIN_EVENT))) .addMethod( - getPrepareVoteSubmissionMethod(), + getStatisticsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest, - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse>( - this, METHODID_PREPARE_VOTE_SUBMISSION))) + io.vegaprotocol.vega.api.Trading.StatisticsRequest, + io.vegaprotocol.vega.api.Trading.StatisticsResponse>( + this, METHODID_STATISTICS))) .addMethod( - getPropagateChainEventMethod(), + getLastBlockHeightMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest, - io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse>( - this, METHODID_PROPAGATE_CHAIN_EVENT))) + io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest, + io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse>( + this, METHODID_LAST_BLOCK_HEIGHT))) .addMethod( - getPrepareLiquidityProvisionMethod(), + getGetVegaTimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest, - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse>( - this, METHODID_PREPARE_LIQUIDITY_PROVISION))) + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest, + io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse>( + this, METHODID_GET_VEGA_TIME))) + .addMethod( + getObserveEventBusMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + io.vegaprotocol.vega.api.Trading.ObserveEventBusRequest, + io.vegaprotocol.vega.api.Trading.ObserveEventBusResponse>( + this, METHODID_OBSERVE_EVENT_BUS))) .build(); } } @@ -564,112 +372,68 @@ protected TradingServiceStub build( /** *
-     * Prepare a submit order request
-     * 
- */ - public void prepareSubmitOrder(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareSubmitOrderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Prepare a cancel order request
-     * 
- */ - public void prepareCancelOrder(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareCancelOrderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Prepare an amend order request
-     * 
- */ - public void prepareAmendOrder(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareAmendOrderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Request a withdrawal
-     * 
- */ - public void prepareWithdraw(io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareWithdrawMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Submit a signed transaction
+     * Submit a signed transaction (v2)
      * 
*/ - public void submitTransaction(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void submitTransactionV2(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitTransactionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSubmitTransactionV2Method(), getCallOptions()), request, responseObserver); } /** *
-     * Submit a signed transaction (v2)
+     * Propagate a chain event
      * 
*/ - public void submitTransactionV2(io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request request, - io.grpc.stub.StreamObserver responseObserver) { + public void propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitTransactionV2Method(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPropagateChainEventMethod(), getCallOptions()), request, responseObserver); } /** *
-     * Prepare a governance proposal
+     * Get Statistics on Vega
      * 
*/ - public void prepareProposalSubmission(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareProposalSubmissionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getStatisticsMethod(), getCallOptions()), request, responseObserver); } /** *
-     * Prepare a governance vote
+     * Get the height of the last tendermint block
      * 
*/ - public void prepareVoteSubmission(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareVoteSubmissionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getLastBlockHeightMethod(), getCallOptions()), request, responseObserver); } /** *
-     * Propagate a chain event
+     * Get Time
      * 
*/ - public void propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPropagateChainEventMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetVegaTimeMethod(), getCallOptions()), request, responseObserver); } /** *
-     * Prepare a liquidity provision request
+     * Subscribe to a stream of events from the core
      * 
*/ - public void prepareLiquidityProvision(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPrepareLiquidityProvisionMethod(), getCallOptions()), request, responseObserver); + public io.grpc.stub.StreamObserver observeEventBus( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getObserveEventBusMethod(), getCallOptions()), responseObserver); } } @@ -687,56 +451,6 @@ protected TradingServiceBlockingStub build( return new TradingServiceBlockingStub(channel, callOptions); } - /** - *
-     * Prepare a submit order request
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderResponse prepareSubmitOrder(io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareSubmitOrderMethod(), getCallOptions(), request); - } - - /** - *
-     * Prepare a cancel order request
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PrepareCancelOrderResponse prepareCancelOrder(io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareCancelOrderMethod(), getCallOptions(), request); - } - - /** - *
-     * Prepare an amend order request
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PrepareAmendOrderResponse prepareAmendOrder(io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareAmendOrderMethod(), getCallOptions(), request); - } - - /** - *
-     * Request a withdrawal
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.PrepareWithdrawResponse prepareWithdraw(io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareWithdrawMethod(), getCallOptions(), request); - } - - /** - *
-     * Submit a signed transaction
-     * 
- */ - public io.vegaprotocol.vega.api.Trading.SubmitTransactionResponse submitTransaction(io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitTransactionMethod(), getCallOptions(), request); - } - /** *
      * Submit a signed transaction (v2)
@@ -749,42 +463,42 @@ public io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Response submitTransa
 
     /**
      * 
-     * Prepare a governance proposal
+     * Propagate a chain event
      * 
*/ - public io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionResponse prepareProposalSubmission(io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest request) { + public io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareProposalSubmissionMethod(), getCallOptions(), request); + getChannel(), getPropagateChainEventMethod(), getCallOptions(), request); } /** *
-     * Prepare a governance vote
+     * Get Statistics on Vega
      * 
*/ - public io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionResponse prepareVoteSubmission(io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest request) { + public io.vegaprotocol.vega.api.Trading.StatisticsResponse statistics(io.vegaprotocol.vega.api.Trading.StatisticsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareVoteSubmissionMethod(), getCallOptions(), request); + getChannel(), getStatisticsMethod(), getCallOptions(), request); } /** *
-     * Propagate a chain event
+     * Get the height of the last tendermint block
      * 
*/ - public io.vegaprotocol.vega.api.Trading.PropagateChainEventResponse propagateChainEvent(io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request) { + public io.vegaprotocol.vega.api.Trading.LastBlockHeightResponse lastBlockHeight(io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPropagateChainEventMethod(), getCallOptions(), request); + getChannel(), getLastBlockHeightMethod(), getCallOptions(), request); } /** *
-     * Prepare a liquidity provision request
+     * Get Time
      * 
*/ - public io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionResponse prepareLiquidityProvision(io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest request) { + public io.vegaprotocol.vega.api.Trading.GetVegaTimeResponse getVegaTime(io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPrepareLiquidityProvisionMethod(), getCallOptions(), request); + getChannel(), getGetVegaTimeMethod(), getCallOptions(), request); } } @@ -802,61 +516,6 @@ protected TradingServiceFutureStub build( return new TradingServiceFutureStub(channel, callOptions); } - /** - *
-     * Prepare a submit order request
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture prepareSubmitOrder( - io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareSubmitOrderMethod(), getCallOptions()), request); - } - - /** - *
-     * Prepare a cancel order request
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture prepareCancelOrder( - io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareCancelOrderMethod(), getCallOptions()), request); - } - - /** - *
-     * Prepare an amend order request
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture prepareAmendOrder( - io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareAmendOrderMethod(), getCallOptions()), request); - } - - /** - *
-     * Request a withdrawal
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture prepareWithdraw( - io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareWithdrawMethod(), getCallOptions()), request); - } - - /** - *
-     * Submit a signed transaction
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitTransaction( - io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitTransactionMethod(), getCallOptions()), request); - } - /** *
      * Submit a signed transaction (v2)
@@ -870,59 +529,55 @@ public com.google.common.util.concurrent.ListenableFuture
-     * Prepare a governance proposal
+     * Propagate a chain event
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture prepareProposalSubmission( - io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest request) { + public com.google.common.util.concurrent.ListenableFuture propagateChainEvent( + io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareProposalSubmissionMethod(), getCallOptions()), request); + getChannel().newCall(getPropagateChainEventMethod(), getCallOptions()), request); } /** *
-     * Prepare a governance vote
+     * Get Statistics on Vega
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture prepareVoteSubmission( - io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest request) { + public com.google.common.util.concurrent.ListenableFuture statistics( + io.vegaprotocol.vega.api.Trading.StatisticsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareVoteSubmissionMethod(), getCallOptions()), request); + getChannel().newCall(getStatisticsMethod(), getCallOptions()), request); } /** *
-     * Propagate a chain event
+     * Get the height of the last tendermint block
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture propagateChainEvent( - io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest request) { + public com.google.common.util.concurrent.ListenableFuture lastBlockHeight( + io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPropagateChainEventMethod(), getCallOptions()), request); + getChannel().newCall(getLastBlockHeightMethod(), getCallOptions()), request); } /** *
-     * Prepare a liquidity provision request
+     * Get Time
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture prepareLiquidityProvision( - io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest request) { + public com.google.common.util.concurrent.ListenableFuture getVegaTime( + io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPrepareLiquidityProvisionMethod(), getCallOptions()), request); + getChannel().newCall(getGetVegaTimeMethod(), getCallOptions()), request); } } - private static final int METHODID_PREPARE_SUBMIT_ORDER = 0; - private static final int METHODID_PREPARE_CANCEL_ORDER = 1; - private static final int METHODID_PREPARE_AMEND_ORDER = 2; - private static final int METHODID_PREPARE_WITHDRAW = 3; - private static final int METHODID_SUBMIT_TRANSACTION = 4; - private static final int METHODID_SUBMIT_TRANSACTION_V2 = 5; - private static final int METHODID_PREPARE_PROPOSAL_SUBMISSION = 6; - private static final int METHODID_PREPARE_VOTE_SUBMISSION = 7; - private static final int METHODID_PROPAGATE_CHAIN_EVENT = 8; - private static final int METHODID_PREPARE_LIQUIDITY_PROVISION = 9; + private static final int METHODID_SUBMIT_TRANSACTION_V2 = 0; + private static final int METHODID_PROPAGATE_CHAIN_EVENT = 1; + private static final int METHODID_STATISTICS = 2; + private static final int METHODID_LAST_BLOCK_HEIGHT = 3; + private static final int METHODID_GET_VEGA_TIME = 4; + private static final int METHODID_OBSERVE_EVENT_BUS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -941,45 +596,25 @@ private static final class MethodHandlers implements @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { - case METHODID_PREPARE_SUBMIT_ORDER: - serviceImpl.prepareSubmitOrder((io.vegaprotocol.vega.api.Trading.PrepareSubmitOrderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREPARE_CANCEL_ORDER: - serviceImpl.prepareCancelOrder((io.vegaprotocol.vega.api.Trading.PrepareCancelOrderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREPARE_AMEND_ORDER: - serviceImpl.prepareAmendOrder((io.vegaprotocol.vega.api.Trading.PrepareAmendOrderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREPARE_WITHDRAW: - serviceImpl.prepareWithdraw((io.vegaprotocol.vega.api.Trading.PrepareWithdrawRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBMIT_TRANSACTION: - serviceImpl.submitTransaction((io.vegaprotocol.vega.api.Trading.SubmitTransactionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_SUBMIT_TRANSACTION_V2: serviceImpl.submitTransactionV2((io.vegaprotocol.vega.api.Trading.SubmitTransactionV2Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_PREPARE_PROPOSAL_SUBMISSION: - serviceImpl.prepareProposalSubmission((io.vegaprotocol.vega.api.Trading.PrepareProposalSubmissionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREPARE_VOTE_SUBMISSION: - serviceImpl.prepareVoteSubmission((io.vegaprotocol.vega.api.Trading.PrepareVoteSubmissionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_PROPAGATE_CHAIN_EVENT: serviceImpl.propagateChainEvent((io.vegaprotocol.vega.api.Trading.PropagateChainEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_PREPARE_LIQUIDITY_PROVISION: - serviceImpl.prepareLiquidityProvision((io.vegaprotocol.vega.api.Trading.PrepareLiquidityProvisionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_STATISTICS: + serviceImpl.statistics((io.vegaprotocol.vega.api.Trading.StatisticsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LAST_BLOCK_HEIGHT: + serviceImpl.lastBlockHeight((io.vegaprotocol.vega.api.Trading.LastBlockHeightRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VEGA_TIME: + serviceImpl.getVegaTime((io.vegaprotocol.vega.api.Trading.GetVegaTimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -991,6 +626,9 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_OBSERVE_EVENT_BUS: + return (io.grpc.stub.StreamObserver) serviceImpl.observeEventBus( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } @@ -1042,16 +680,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TradingServiceFileDescriptorSupplier()) - .addMethod(getPrepareSubmitOrderMethod()) - .addMethod(getPrepareCancelOrderMethod()) - .addMethod(getPrepareAmendOrderMethod()) - .addMethod(getPrepareWithdrawMethod()) - .addMethod(getSubmitTransactionMethod()) .addMethod(getSubmitTransactionV2Method()) - .addMethod(getPrepareProposalSubmissionMethod()) - .addMethod(getPrepareVoteSubmissionMethod()) .addMethod(getPropagateChainEventMethod()) - .addMethod(getPrepareLiquidityProvisionMethod()) + .addMethod(getStatisticsMethod()) + .addMethod(getLastBlockHeightMethod()) + .addMethod(getGetVegaTimeMethod()) + .addMethod(getObserveEventBusMethod()) .build(); } } diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java index 403e9eee..9663810d 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java @@ -10881,6 +10881,506 @@ public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getDefault } + public interface RestoreSnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.commands.v1.RestoreSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1 [json_name = "data"]; + * @return The data. + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * A command that loads the state from a given checkpoint
+   * 
+ * + * Protobuf type {@code vega.commands.v1.RestoreSnapshot} + */ + public static final class RestoreSnapshot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.commands.v1.RestoreSnapshot) + RestoreSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreSnapshot.newBuilder() to construct. + private RestoreSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RestoreSnapshot() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RestoreSnapshot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RestoreSnapshot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + data_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.commands.v1.Commands.internal_static_vega_commands_v1_RestoreSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.commands.v1.Commands.internal_static_vega_commands_v1_RestoreSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.class, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1 [json_name = "data"]; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot)) { + return super.equals(obj); + } + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot other = (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) obj; + + if (!getData() + .equals(other.getData())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A command that loads the state from a given checkpoint
+     * 
+ * + * Protobuf type {@code vega.commands.v1.RestoreSnapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.commands.v1.RestoreSnapshot) + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.commands.v1.Commands.internal_static_vega_commands_v1_RestoreSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.commands.v1.Commands.internal_static_vega_commands_v1_RestoreSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.class, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder.class); + } + + // Construct using io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.commands.v1.Commands.internal_static_vega_commands_v1_RestoreSnapshot_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInstanceForType() { + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot build() { + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot buildPartial() { + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot result = new io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot(this); + result.data_ = data_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) { + return mergeFrom((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot other) { + if (other == io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1 [json_name = "data"]; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1 [json_name = "data"]; + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1 [json_name = "data"]; + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.commands.v1.RestoreSnapshot) + } + + // @@protoc_insertion_point(class_scope:vega.commands.v1.RestoreSnapshot) + private static final io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot(); + } + + public static io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreSnapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestoreSnapshot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_commands_v1_OrderSubmission_descriptor; private static final @@ -10926,6 +11426,11 @@ public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getDefault private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_commands_v1_UndelegateSubmission_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_commands_v1_RestoreSnapshot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_commands_v1_RestoreSnapshot_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -10981,9 +11486,10 @@ public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getDefault "vega.commands.v1.UndelegateSubmission.Me" + "thodR\006method\"a\n\006Method\022\026\n\022METHOD_UNSPECI" + "FIED\020\000\022\016\n\nMETHOD_NOW\020\001\022\032\n\026METHOD_AT_END_" + - "OF_EPOCH\020\002\022\023\n\017METHOD_IN_ANGER\020\003BO\n io.ve" + - "gaprotocol.vega.commands.v1Z+code.vegapr" + - "otocol.io/vega/proto/commands/v1b\006proto3" + "OF_EPOCH\020\002\022\023\n\017METHOD_IN_ANGER\020\003\"%\n\017Resto" + + "reSnapshot\022\022\n\004data\030\001 \001(\014R\004dataBO\n io.veg" + + "aprotocol.vega.commands.v1Z+code.vegapro" + + "tocol.io/vega/proto/commands/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -11047,6 +11553,12 @@ public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getDefault com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_commands_v1_UndelegateSubmission_descriptor, new java.lang.String[] { "NodeId", "Amount", "Method", }); + internal_static_vega_commands_v1_RestoreSnapshot_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_vega_commands_v1_RestoreSnapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_commands_v1_RestoreSnapshot_descriptor, + new java.lang.String[] { "Data", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.github.mwitkow.go_proto_validators.Validator.field); diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/TransactionOuterClass.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/TransactionOuterClass.java index 689c95f0..6ca35423 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/TransactionOuterClass.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/TransactionOuterClass.java @@ -287,6 +287,33 @@ public interface InputDataOrBuilder extends */ io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmissionOrBuilder getOracleDataSubmissionOrBuilder(); + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return Whether the restoreSnapshotSubmission field is set. + */ + boolean hasRestoreSnapshotSubmission(); + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return The restoreSnapshotSubmission. + */ + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshotSubmission(); + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotSubmissionOrBuilder(); + public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.InputData.CommandCase getCommandCase(); } /** @@ -540,6 +567,20 @@ private InputData( commandCase_ = 3001; break; } + case 32010: { + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder subBuilder = null; + if (commandCase_ == 4001) { + subBuilder = ((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_).toBuilder(); + } + command_ = + input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_); + command_ = subBuilder.buildPartial(); + } + commandCase_ = 4001; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -591,6 +632,7 @@ public enum CommandCase NODE_SIGNATURE(2003), CHAIN_EVENT(2004), ORACLE_DATA_SUBMISSION(3001), + RESTORE_SNAPSHOT_SUBMISSION(4001), COMMAND_NOT_SET(0); private final int value; private CommandCase(int value) { @@ -622,6 +664,7 @@ public static CommandCase forNumber(int value) { case 2003: return NODE_SIGNATURE; case 2004: return CHAIN_EVENT; case 3001: return ORACLE_DATA_SUBMISSION; + case 4001: return RESTORE_SNAPSHOT_SUBMISSION; case 0: return COMMAND_NOT_SET; default: return null; } @@ -1140,6 +1183,49 @@ public io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmissionOrBuilder ge return io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmission.getDefaultInstance(); } + public static final int RESTORE_SNAPSHOT_SUBMISSION_FIELD_NUMBER = 4001; + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return Whether the restoreSnapshotSubmission field is set. + */ + @java.lang.Override + public boolean hasRestoreSnapshotSubmission() { + return commandCase_ == 4001; + } + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return The restoreSnapshotSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshotSubmission() { + if (commandCase_ == 4001) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + /** + *
+     * Checkpoints
+     * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotSubmissionOrBuilder() { + if (commandCase_ == 4001) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1202,6 +1288,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (commandCase_ == 3001) { output.writeMessage(3001, (io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmission) command_); } + if (commandCase_ == 4001) { + output.writeMessage(4001, (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_); + } unknownFields.writeTo(output); } @@ -1275,6 +1364,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3001, (io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmission) command_); } + if (commandCase_ == 4001) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4001, (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1352,6 +1445,10 @@ public boolean equals(final java.lang.Object obj) { if (!getOracleDataSubmission() .equals(other.getOracleDataSubmission())) return false; break; + case 4001: + if (!getRestoreSnapshotSubmission() + .equals(other.getRestoreSnapshotSubmission())) return false; + break; case 0: default: } @@ -1429,6 +1526,10 @@ public int hashCode() { hash = (37 * hash) + ORACLE_DATA_SUBMISSION_FIELD_NUMBER; hash = (53 * hash) + getOracleDataSubmission().hashCode(); break; + case 4001: + hash = (37 * hash) + RESTORE_SNAPSHOT_SUBMISSION_FIELD_NUMBER; + hash = (53 * hash) + getRestoreSnapshotSubmission().hashCode(); + break; case 0: default: } @@ -1697,6 +1798,13 @@ public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.InputData buildPar result.command_ = oracleDataSubmissionBuilder_.build(); } } + if (commandCase_ == 4001) { + if (restoreSnapshotSubmissionBuilder_ == null) { + result.command_ = command_; + } else { + result.command_ = restoreSnapshotSubmissionBuilder_.build(); + } + } result.commandCase_ = commandCase_; onBuilt(); return result; @@ -1809,6 +1917,10 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.TransactionOuterClass. mergeOracleDataSubmission(other.getOracleDataSubmission()); break; } + case RESTORE_SNAPSHOT_SUBMISSION: { + mergeRestoreSnapshotSubmission(other.getRestoreSnapshotSubmission()); + break; + } case COMMAND_NOT_SET: { break; } @@ -4033,6 +4145,183 @@ public io.vegaprotocol.vega.commands.v1.Oracles.OracleDataSubmissionOrBuilder ge onChanged();; return oracleDataSubmissionBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder> restoreSnapshotSubmissionBuilder_; + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return Whether the restoreSnapshotSubmission field is set. + */ + @java.lang.Override + public boolean hasRestoreSnapshotSubmission() { + return commandCase_ == 4001; + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + * @return The restoreSnapshotSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshotSubmission() { + if (restoreSnapshotSubmissionBuilder_ == null) { + if (commandCase_ == 4001) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } else { + if (commandCase_ == 4001) { + return restoreSnapshotSubmissionBuilder_.getMessage(); + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + public Builder setRestoreSnapshotSubmission(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot value) { + if (restoreSnapshotSubmissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + command_ = value; + onChanged(); + } else { + restoreSnapshotSubmissionBuilder_.setMessage(value); + } + commandCase_ = 4001; + return this; + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + public Builder setRestoreSnapshotSubmission( + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder builderForValue) { + if (restoreSnapshotSubmissionBuilder_ == null) { + command_ = builderForValue.build(); + onChanged(); + } else { + restoreSnapshotSubmissionBuilder_.setMessage(builderForValue.build()); + } + commandCase_ = 4001; + return this; + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + public Builder mergeRestoreSnapshotSubmission(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot value) { + if (restoreSnapshotSubmissionBuilder_ == null) { + if (commandCase_ == 4001 && + command_ != io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance()) { + command_ = io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.newBuilder((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_) + .mergeFrom(value).buildPartial(); + } else { + command_ = value; + } + onChanged(); + } else { + if (commandCase_ == 4001) { + restoreSnapshotSubmissionBuilder_.mergeFrom(value); + } + restoreSnapshotSubmissionBuilder_.setMessage(value); + } + commandCase_ = 4001; + return this; + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + public Builder clearRestoreSnapshotSubmission() { + if (restoreSnapshotSubmissionBuilder_ == null) { + if (commandCase_ == 4001) { + commandCase_ = 0; + command_ = null; + onChanged(); + } + } else { + if (commandCase_ == 4001) { + commandCase_ = 0; + command_ = null; + } + restoreSnapshotSubmissionBuilder_.clear(); + } + return this; + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder getRestoreSnapshotSubmissionBuilder() { + return getRestoreSnapshotSubmissionFieldBuilder().getBuilder(); + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotSubmissionOrBuilder() { + if ((commandCase_ == 4001) && (restoreSnapshotSubmissionBuilder_ != null)) { + return restoreSnapshotSubmissionBuilder_.getMessageOrBuilder(); + } else { + if (commandCase_ == 4001) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + } + /** + *
+       * Checkpoints
+       * 
+ * + * .vega.commands.v1.RestoreSnapshot restore_snapshot_submission = 4001 [json_name = "restoreSnapshotSubmission"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder> + getRestoreSnapshotSubmissionFieldBuilder() { + if (restoreSnapshotSubmissionBuilder_ == null) { + if (!(commandCase_ == 4001)) { + command_ = io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + restoreSnapshotSubmissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder>( + (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) command_, + getParentForChildren(), + isClean()); + command_ = null; + } + commandCase_ = 4001; + onChanged();; + return restoreSnapshotSubmissionBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6378,7 +6667,7 @@ public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Signature getDefau "\n\035commands/v1/transaction.proto\022\020vega.co" + "mmands.v1\032\032commands/v1/commands.proto\032$c" + "ommands/v1/validator_commands.proto\032\031com" + - "mands/v1/oracles.proto\"\370\t\n\tInputData\022\024\n\005" + + "mands/v1/oracles.proto\"\336\n\n\tInputData\022\024\n\005" + "nonce\030\001 \001(\004R\005nonce\022!\n\014block_height\030\002 \001(\004" + "R\013blockHeight\022O\n\020order_submission\030\351\007 \001(\013" + "2!.vega.commands.v1.OrderSubmissionH\000R\017o" + @@ -6410,16 +6699,19 @@ public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Signature getDefau "s.v1.ChainEventH\000R\nchainEvent\022_\n\026oracle_" + "data_submission\030\271\027 \001(\0132&.vega.commands.v" + "1.OracleDataSubmissionH\000R\024oracleDataSubm" + - "issionB\t\n\007command\"\303\001\n\013Transaction\022\035\n\ninp" + - "ut_data\030\001 \001(\014R\tinputData\0229\n\tsignature\030\002 " + - "\001(\0132\033.vega.commands.v1.SignatureR\tsignat" + - "ure\022\033\n\007address\030\351\007 \001(\tH\000R\007address\022\032\n\007pub_" + - "key\030\352\007 \001(\tH\000R\006pubKey\022\031\n\007version\030\320\017 \001(\rR\007" + - "versionB\006\n\004from\"O\n\tSignature\022\024\n\005value\030\001 " + - "\001(\tR\005value\022\022\n\004algo\030\002 \001(\tR\004algo\022\030\n\007versio" + - "n\030\003 \001(\rR\007versionBO\n io.vegaprotocol.vega" + - ".commands.v1Z+code.vegaprotocol.io/vega/" + - "proto/commands/v1b\006proto3" + "ission\022d\n\033restore_snapshot_submission\030\241\037" + + " \001(\0132!.vega.commands.v1.RestoreSnapshotH" + + "\000R\031restoreSnapshotSubmissionB\t\n\007command\"" + + "\303\001\n\013Transaction\022\035\n\ninput_data\030\001 \001(\014R\tinp" + + "utData\0229\n\tsignature\030\002 \001(\0132\033.vega.command" + + "s.v1.SignatureR\tsignature\022\033\n\007address\030\351\007 " + + "\001(\tH\000R\007address\022\032\n\007pub_key\030\352\007 \001(\tH\000R\006pubK" + + "ey\022\031\n\007version\030\320\017 \001(\rR\007versionB\006\n\004from\"O\n" + + "\tSignature\022\024\n\005value\030\001 \001(\tR\005value\022\022\n\004algo" + + "\030\002 \001(\tR\004algo\022\030\n\007version\030\003 \001(\rR\007versionBO" + + "\n io.vegaprotocol.vega.commands.v1Z+code" + + ".vegaprotocol.io/vega/proto/commands/v1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6433,7 +6725,7 @@ public io.vegaprotocol.vega.commands.v1.TransactionOuterClass.Signature getDefau internal_static_vega_commands_v1_InputData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_commands_v1_InputData_descriptor, - new java.lang.String[] { "Nonce", "BlockHeight", "OrderSubmission", "OrderCancellation", "OrderAmendment", "WithdrawSubmission", "ProposalSubmission", "VoteSubmission", "LiquidityProvisionSubmission", "DelegateSubmission", "UndelegateSubmission", "NodeRegistration", "NodeVote", "NodeSignature", "ChainEvent", "OracleDataSubmission", "Command", }); + new java.lang.String[] { "Nonce", "BlockHeight", "OrderSubmission", "OrderCancellation", "OrderAmendment", "WithdrawSubmission", "ProposalSubmission", "VoteSubmission", "LiquidityProvisionSubmission", "DelegateSubmission", "UndelegateSubmission", "NodeRegistration", "NodeVote", "NodeSignature", "ChainEvent", "OracleDataSubmission", "RestoreSnapshotSubmission", "Command", }); internal_static_vega_commands_v1_Transaction_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_vega_commands_v1_Transaction_fieldAccessorTable = new diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/ValidatorCommands.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/ValidatorCommands.java index 6f81919d..1d030501 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/ValidatorCommands.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/ValidatorCommands.java @@ -165,30 +165,70 @@ public interface NodeRegistrationOrBuilder extends /** *
-     * Public key, required field
+     * Vega public key, required field
      * 
* - * bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { ... } - * @return The pubKey. + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The vegaPubKey. */ - com.google.protobuf.ByteString getPubKey(); + java.lang.String getVegaPubKey(); + /** + *
+     * Vega public key, required field
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The bytes for vegaPubKey. + */ + com.google.protobuf.ByteString + getVegaPubKeyBytes(); + + /** + *
+     * Ethereum public key, required field
+     * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The ethereumAddress. + */ + java.lang.String getEthereumAddress(); + /** + *
+     * Ethereum public key, required field
+     * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The bytes for ethereumAddress. + */ + com.google.protobuf.ByteString + getEthereumAddressBytes(); /** *
      * Public key for the blockchain, required field
      * 
* - * bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { ... } + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } * @return The chainPubKey. */ - com.google.protobuf.ByteString getChainPubKey(); + java.lang.String getChainPubKey(); + /** + *
+     * Public key for the blockchain, required field
+     * 
+ * + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } + * @return The bytes for chainPubKey. + */ + com.google.protobuf.ByteString + getChainPubKeyBytes(); /** *
      * URL with more info on the node
      * 
* - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The infoUrl. */ java.lang.String getInfoUrl(); @@ -197,7 +237,7 @@ public interface NodeRegistrationOrBuilder extends * URL with more info on the node *
* - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The bytes for infoUrl. */ com.google.protobuf.ByteString @@ -208,7 +248,7 @@ public interface NodeRegistrationOrBuilder extends * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The country. */ java.lang.String getCountry(); @@ -217,7 +257,7 @@ public interface NodeRegistrationOrBuilder extends * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The bytes for country. */ com.google.protobuf.ByteString @@ -240,8 +280,9 @@ private NodeRegistration(com.google.protobuf.GeneratedMessageV3.Builder build super(builder); } private NodeRegistration() { - pubKey_ = com.google.protobuf.ByteString.EMPTY; - chainPubKey_ = com.google.protobuf.ByteString.EMPTY; + vegaPubKey_ = ""; + ethereumAddress_ = ""; + chainPubKey_ = ""; infoUrl_ = ""; country_ = ""; } @@ -277,24 +318,32 @@ private NodeRegistration( done = true; break; case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pubKey_ = input.readBytes(); + vegaPubKey_ = s; break; } case 18: { + java.lang.String s = input.readStringRequireUtf8(); - chainPubKey_ = input.readBytes(); + ethereumAddress_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); - infoUrl_ = s; + chainPubKey_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); + infoUrl_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + country_ = s; break; } @@ -330,44 +379,152 @@ private NodeRegistration( io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration.class, io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration.Builder.class); } - public static final int PUB_KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString pubKey_; + public static final int VEGA_PUB_KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object vegaPubKey_; /** *
-     * Public key, required field
+     * Vega public key, required field
      * 
* - * bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { ... } - * @return The pubKey. + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The vegaPubKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; + public java.lang.String getVegaPubKey() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPubKey_ = s; + return s; + } + } + /** + *
+     * Vega public key, required field
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The bytes for vegaPubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVegaPubKeyBytes() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETHEREUM_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object ethereumAddress_; + /** + *
+     * Ethereum public key, required field
+     * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The ethereumAddress. + */ + @java.lang.Override + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } + } + /** + *
+     * Ethereum public key, required field
+     * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The bytes for ethereumAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int CHAIN_PUB_KEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString chainPubKey_; + public static final int CHAIN_PUB_KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object chainPubKey_; /** *
      * Public key for the blockchain, required field
      * 
* - * bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { ... } + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } * @return The chainPubKey. */ @java.lang.Override - public com.google.protobuf.ByteString getChainPubKey() { - return chainPubKey_; + public java.lang.String getChainPubKey() { + java.lang.Object ref = chainPubKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainPubKey_ = s; + return s; + } + } + /** + *
+     * Public key for the blockchain, required field
+     * 
+ * + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } + * @return The bytes for chainPubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getChainPubKeyBytes() { + java.lang.Object ref = chainPubKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int INFO_URL_FIELD_NUMBER = 3; + public static final int INFO_URL_FIELD_NUMBER = 4; private volatile java.lang.Object infoUrl_; /** *
      * URL with more info on the node
      * 
* - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The infoUrl. */ @java.lang.Override @@ -388,7 +545,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The bytes for infoUrl. */ @java.lang.Override @@ -406,14 +563,14 @@ public java.lang.String getInfoUrl() { } } - public static final int COUNTRY_FIELD_NUMBER = 4; + public static final int COUNTRY_FIELD_NUMBER = 5; private volatile java.lang.Object country_; /** *
      * Country code (ISO 3166-1 alpha-2) for the location of the node
      * 
* - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The country. */ @java.lang.Override @@ -434,7 +591,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The bytes for country. */ @java.lang.Override @@ -466,17 +623,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!pubKey_.isEmpty()) { - output.writeBytes(1, pubKey_); + if (!getVegaPubKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vegaPubKey_); + } + if (!getEthereumAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ethereumAddress_); } - if (!chainPubKey_.isEmpty()) { - output.writeBytes(2, chainPubKey_); + if (!getChainPubKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainPubKey_); } if (!getInfoUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, infoUrl_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, infoUrl_); } if (!getCountryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, country_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, country_); } unknownFields.writeTo(output); } @@ -487,19 +647,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!pubKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, pubKey_); + if (!getVegaPubKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vegaPubKey_); } - if (!chainPubKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, chainPubKey_); + if (!getEthereumAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ethereumAddress_); + } + if (!getChainPubKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainPubKey_); } if (!getInfoUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, infoUrl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, infoUrl_); } if (!getCountryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, country_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, country_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -516,8 +677,10 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration other = (io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration) obj; - if (!getPubKey() - .equals(other.getPubKey())) return false; + if (!getVegaPubKey() + .equals(other.getVegaPubKey())) return false; + if (!getEthereumAddress() + .equals(other.getEthereumAddress())) return false; if (!getChainPubKey() .equals(other.getChainPubKey())) return false; if (!getInfoUrl() @@ -535,8 +698,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + VEGA_PUB_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVegaPubKey().hashCode(); + hash = (37 * hash) + ETHEREUM_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEthereumAddress().hashCode(); hash = (37 * hash) + CHAIN_PUB_KEY_FIELD_NUMBER; hash = (53 * hash) + getChainPubKey().hashCode(); hash = (37 * hash) + INFO_URL_FIELD_NUMBER; @@ -680,9 +845,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - pubKey_ = com.google.protobuf.ByteString.EMPTY; + vegaPubKey_ = ""; + + ethereumAddress_ = ""; - chainPubKey_ = com.google.protobuf.ByteString.EMPTY; + chainPubKey_ = ""; infoUrl_ = ""; @@ -714,7 +881,8 @@ public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration build @java.lang.Override public io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration buildPartial() { io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration result = new io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration(this); - result.pubKey_ = pubKey_; + result.vegaPubKey_ = vegaPubKey_; + result.ethereumAddress_ = ethereumAddress_; result.chainPubKey_ = chainPubKey_; result.infoUrl_ = infoUrl_; result.country_ = country_; @@ -766,11 +934,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration other) { if (other == io.vegaprotocol.vega.commands.v1.ValidatorCommands.NodeRegistration.getDefaultInstance()) return this; - if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { - setPubKey(other.getPubKey()); + if (!other.getVegaPubKey().isEmpty()) { + vegaPubKey_ = other.vegaPubKey_; + onChanged(); } - if (other.getChainPubKey() != com.google.protobuf.ByteString.EMPTY) { - setChainPubKey(other.getChainPubKey()); + if (!other.getEthereumAddress().isEmpty()) { + ethereumAddress_ = other.ethereumAddress_; + onChanged(); + } + if (!other.getChainPubKey().isEmpty()) { + chainPubKey_ = other.chainPubKey_; + onChanged(); } if (!other.getInfoUrl().isEmpty()) { infoUrl_ = other.infoUrl_; @@ -809,75 +983,251 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; + private java.lang.Object vegaPubKey_ = ""; /** *
-       * Public key, required field
+       * Vega public key, required field
        * 
* - * bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { ... } - * @return The pubKey. + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The vegaPubKey. */ - @java.lang.Override - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; + public java.lang.String getVegaPubKey() { + java.lang.Object ref = vegaPubKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPubKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * Public key, required field
+       * Vega public key, required field
        * 
* - * bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { ... } - * @param value The pubKey to set. + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @return The bytes for vegaPubKey. + */ + public com.google.protobuf.ByteString + getVegaPubKeyBytes() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Vega public key, required field
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @param value The vegaPubKey to set. * @return This builder for chaining. */ - public Builder setPubKey(com.google.protobuf.ByteString value) { + public Builder setVegaPubKey( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pubKey_ = value; + vegaPubKey_ = value; onChanged(); return this; } /** *
-       * Public key, required field
+       * Vega public key, required field
        * 
* - * bytes pub_key = 1 [json_name = "pubKey", (.validator.field) = { ... } + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } * @return This builder for chaining. */ - public Builder clearPubKey() { + public Builder clearVegaPubKey() { - pubKey_ = getDefaultInstance().getPubKey(); + vegaPubKey_ = getDefaultInstance().getVegaPubKey(); + onChanged(); + return this; + } + /** + *
+       * Vega public key, required field
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey", (.validator.field) = { ... } + * @param value The bytes for vegaPubKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPubKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vegaPubKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object ethereumAddress_ = ""; + /** + *
+       * Ethereum public key, required field
+       * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The ethereumAddress. + */ + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ethereumAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Ethereum public key, required field
+       * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return The bytes for ethereumAddress. + */ + public com.google.protobuf.ByteString + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ethereumAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Ethereum public key, required field
+       * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @param value The ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ethereumAddress_ = value; + onChanged(); + return this; + } + /** + *
+       * Ethereum public key, required field
+       * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearEthereumAddress() { + + ethereumAddress_ = getDefaultInstance().getEthereumAddress(); + onChanged(); + return this; + } + /** + *
+       * Ethereum public key, required field
+       * 
+ * + * string ethereum_address = 2 [json_name = "ethereumAddress", (.validator.field) = { ... } + * @param value The bytes for ethereumAddress to set. + * @return This builder for chaining. + */ + public Builder setEthereumAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ethereumAddress_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString chainPubKey_ = com.google.protobuf.ByteString.EMPTY; + private java.lang.Object chainPubKey_ = ""; /** *
        * Public key for the blockchain, required field
        * 
* - * bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { ... } + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } * @return The chainPubKey. */ - @java.lang.Override - public com.google.protobuf.ByteString getChainPubKey() { - return chainPubKey_; + public java.lang.String getChainPubKey() { + java.lang.Object ref = chainPubKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chainPubKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Public key for the blockchain, required field
+       * 
+ * + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } + * @return The bytes for chainPubKey. + */ + public com.google.protobuf.ByteString + getChainPubKeyBytes() { + java.lang.Object ref = chainPubKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + chainPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
        * Public key for the blockchain, required field
        * 
* - * bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { ... } + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } * @param value The chainPubKey to set. * @return This builder for chaining. */ - public Builder setChainPubKey(com.google.protobuf.ByteString value) { + public Builder setChainPubKey( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -891,7 +1241,7 @@ public Builder setChainPubKey(com.google.protobuf.ByteString value) { * Public key for the blockchain, required field * * - * bytes chain_pub_key = 2 [json_name = "chainPubKey", (.validator.field) = { ... } + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } * @return This builder for chaining. */ public Builder clearChainPubKey() { @@ -900,6 +1250,26 @@ public Builder clearChainPubKey() { onChanged(); return this; } + /** + *
+       * Public key for the blockchain, required field
+       * 
+ * + * string chain_pub_key = 3 [json_name = "chainPubKey", (.validator.field) = { ... } + * @param value The bytes for chainPubKey to set. + * @return This builder for chaining. + */ + public Builder setChainPubKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + chainPubKey_ = value; + onChanged(); + return this; + } private java.lang.Object infoUrl_ = ""; /** @@ -907,7 +1277,7 @@ public Builder clearChainPubKey() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The infoUrl. */ public java.lang.String getInfoUrl() { @@ -927,7 +1297,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return The bytes for infoUrl. */ public com.google.protobuf.ByteString @@ -948,7 +1318,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @param value The infoUrl to set. * @return This builder for chaining. */ @@ -967,7 +1337,7 @@ public Builder setInfoUrl( * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @return This builder for chaining. */ public Builder clearInfoUrl() { @@ -981,7 +1351,7 @@ public Builder clearInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl", (.validator.field) = { ... } + * string info_url = 4 [json_name = "infoUrl", (.validator.field) = { ... } * @param value The bytes for infoUrl to set. * @return This builder for chaining. */ @@ -1003,7 +1373,7 @@ public Builder setInfoUrlBytes( * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The country. */ public java.lang.String getCountry() { @@ -1023,7 +1393,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return The bytes for country. */ public com.google.protobuf.ByteString @@ -1044,7 +1414,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @param value The country to set. * @return This builder for chaining. */ @@ -1063,7 +1433,7 @@ public Builder setCountry( * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @return This builder for chaining. */ public Builder clearCountry() { @@ -1077,7 +1447,7 @@ public Builder clearCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country", (.validator.field) = { ... } + * string country = 5 [json_name = "country", (.validator.field) = { ... } * @param value The bytes for country to set. * @return This builder for chaining. */ @@ -2844,6 +3214,33 @@ public interface ChainEventOrBuilder extends */ io.vegaprotocol.vega.ChainEvents.ValidatorEventOrBuilder getValidatorOrBuilder(); + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return Whether the stakingEvent field is set. + */ + boolean hasStakingEvent(); + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return The stakingEvent. + */ + io.vegaprotocol.vega.ChainEvents.StakingEvent getStakingEvent(); + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder getStakingEventOrBuilder(); + public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent.EventCase getEventCase(); } /** @@ -2963,6 +3360,20 @@ private ChainEvent( eventCase_ = 1004; break; } + case 8042: { + io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder subBuilder = null; + if (eventCase_ == 1005) { + subBuilder = ((io.vegaprotocol.vega.ChainEvents.StakingEvent) event_).toBuilder(); + } + event_ = + input.readMessage(io.vegaprotocol.vega.ChainEvents.StakingEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.ChainEvents.StakingEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 1005; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -3004,6 +3415,7 @@ public enum EventCase ERC20(1002), BTC(1003), VALIDATOR(1004), + STAKING_EVENT(1005), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { @@ -3025,6 +3437,7 @@ public static EventCase forNumber(int value) { case 1002: return ERC20; case 1003: return BTC; case 1004: return VALIDATOR; + case 1005: return STAKING_EVENT; case 0: return EVENT_NOT_SET; default: return null; } @@ -3273,6 +3686,49 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEventOrBuilder getValidatorOrBu return io.vegaprotocol.vega.ChainEvents.ValidatorEvent.getDefaultInstance(); } + public static final int STAKING_EVENT_FIELD_NUMBER = 1005; + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return Whether the stakingEvent field is set. + */ + @java.lang.Override + public boolean hasStakingEvent() { + return eventCase_ == 1005; + } + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return The stakingEvent. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent getStakingEvent() { + if (eventCase_ == 1005) { + return (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_; + } + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + /** + *
+     * Ethereum Staking event
+     * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder getStakingEventOrBuilder() { + if (eventCase_ == 1005) { + return (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_; + } + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3305,6 +3761,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (eventCase_ == 1004) { output.writeMessage(1004, (io.vegaprotocol.vega.ChainEvents.ValidatorEvent) event_); } + if (eventCase_ == 1005) { + output.writeMessage(1005, (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_); + } unknownFields.writeTo(output); } @@ -3337,6 +3796,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1004, (io.vegaprotocol.vega.ChainEvents.ValidatorEvent) event_); } + if (eventCase_ == 1005) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1005, (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3374,6 +3837,10 @@ public boolean equals(final java.lang.Object obj) { if (!getValidator() .equals(other.getValidator())) return false; break; + case 1005: + if (!getStakingEvent() + .equals(other.getStakingEvent())) return false; + break; case 0: default: } @@ -3410,6 +3877,10 @@ public int hashCode() { hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; hash = (53 * hash) + getValidator().hashCode(); break; + case 1005: + hash = (37 * hash) + STAKING_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getStakingEvent().hashCode(); + break; case 0: default: } @@ -3612,6 +4083,13 @@ public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent buildPartia result.event_ = validatorBuilder_.build(); } } + if (eventCase_ == 1005) { + if (stakingEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = stakingEventBuilder_.build(); + } + } result.eventCase_ = eventCase_; onBuilt(); return result; @@ -3685,6 +4163,10 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.ValidatorCommands.Chai mergeValidator(other.getValidator()); break; } + case STAKING_EVENT: { + mergeStakingEvent(other.getStakingEvent()); + break; + } case EVENT_NOT_SET: { break; } @@ -4579,6 +5061,183 @@ public io.vegaprotocol.vega.ChainEvents.ValidatorEventOrBuilder getValidatorOrBu onChanged();; return validatorBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakingEvent, io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder, io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder> stakingEventBuilder_; + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return Whether the stakingEvent field is set. + */ + @java.lang.Override + public boolean hasStakingEvent() { + return eventCase_ == 1005; + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + * @return The stakingEvent. + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEvent getStakingEvent() { + if (stakingEventBuilder_ == null) { + if (eventCase_ == 1005) { + return (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_; + } + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } else { + if (eventCase_ == 1005) { + return stakingEventBuilder_.getMessage(); + } + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + public Builder setStakingEvent(io.vegaprotocol.vega.ChainEvents.StakingEvent value) { + if (stakingEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + stakingEventBuilder_.setMessage(value); + } + eventCase_ = 1005; + return this; + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + public Builder setStakingEvent( + io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder builderForValue) { + if (stakingEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + stakingEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 1005; + return this; + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + public Builder mergeStakingEvent(io.vegaprotocol.vega.ChainEvents.StakingEvent value) { + if (stakingEventBuilder_ == null) { + if (eventCase_ == 1005 && + event_ != io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance()) { + event_ = io.vegaprotocol.vega.ChainEvents.StakingEvent.newBuilder((io.vegaprotocol.vega.ChainEvents.StakingEvent) event_) + .mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 1005) { + stakingEventBuilder_.mergeFrom(value); + } + stakingEventBuilder_.setMessage(value); + } + eventCase_ = 1005; + return this; + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + public Builder clearStakingEvent() { + if (stakingEventBuilder_ == null) { + if (eventCase_ == 1005) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 1005) { + eventCase_ = 0; + event_ = null; + } + stakingEventBuilder_.clear(); + } + return this; + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + public io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder getStakingEventBuilder() { + return getStakingEventFieldBuilder().getBuilder(); + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder getStakingEventOrBuilder() { + if ((eventCase_ == 1005) && (stakingEventBuilder_ != null)) { + return stakingEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 1005) { + return (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_; + } + return io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + } + /** + *
+       * Ethereum Staking event
+       * 
+ * + * .vega.StakingEvent staking_event = 1005 [json_name = "stakingEvent"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakingEvent, io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder, io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder> + getStakingEventFieldBuilder() { + if (stakingEventBuilder_ == null) { + if (!(eventCase_ == 1005)) { + event_ = io.vegaprotocol.vega.ChainEvents.StakingEvent.getDefaultInstance(); + } + stakingEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.ChainEvents.StakingEvent, io.vegaprotocol.vega.ChainEvents.StakingEvent.Builder, io.vegaprotocol.vega.ChainEvents.StakingEventOrBuilder>( + (io.vegaprotocol.vega.ChainEvents.StakingEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 1005; + onChanged();; + return stakingEventBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4664,22 +5323,25 @@ public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getDefaultI "\n$commands/v1/validator_commands.proto\022\020" + "vega.commands.v1\032\022chain_events.proto\0326gi" + "thub.com/mwitkow/go-proto-validators/val" + - "idator.proto\"\244\001\n\020NodeRegistration\022\037\n\007pub" + - "_key\030\001 \001(\014B\006\342\337\037\002X\001R\006pubKey\022*\n\rchain_pub_" + - "key\030\002 \001(\014B\006\342\337\037\002X\001R\013chainPubKey\022!\n\010info_u" + - "rl\030\003 \001(\tB\006\342\337\037\002X\001R\007infoUrl\022 \n\007country\030\004 \001" + - "(\tB\006\342\337\037\002X\001R\007country\"Q\n\010NodeVote\022\037\n\007pub_k" + - "ey\030\001 \001(\014B\006\342\337\037\002X\001R\006pubKey\022$\n\treference\030\002 " + - "\001(\tB\006\342\337\037\002X\001R\treference\"j\n\rNodeSignature\022" + - "\016\n\002id\030\001 \001(\tR\002id\022\020\n\003sig\030\002 \001(\014R\003sig\0227\n\004kin" + - "d\030\003 \001(\0162#.vega.commands.v1.NodeSignature" + - "KindR\004kind\"\375\001\n\nChainEvent\022\023\n\005tx_id\030\001 \001(\t" + - "R\004txId\022\024\n\005nonce\030\002 \001(\004R\005nonce\0224\n\007builtin\030" + - "\351\007 \001(\0132\027.vega.BuiltinAssetEventH\000R\007built" + - "in\022)\n\005erc20\030\352\007 \001(\0132\020.vega.ERC20EventH\000R\005" + - "erc20\022#\n\003btc\030\353\007 \001(\0132\016.vega.BTCEventH\000R\003b" + - "tc\0225\n\tvalidator\030\354\007 \001(\0132\024.vega.ValidatorE" + - "ventH\000R\tvalidatorB\007\n\005event*\205\001\n\021NodeSigna" + + "idator.proto\"\340\001\n\020NodeRegistration\022(\n\014veg" + + "a_pub_key\030\001 \001(\tB\006\342\337\037\002X\001R\nvegaPubKey\0221\n\020e" + + "thereum_address\030\002 \001(\tB\006\342\337\037\002X\001R\017ethereumA" + + "ddress\022*\n\rchain_pub_key\030\003 \001(\tB\006\342\337\037\002X\001R\013c" + + "hainPubKey\022!\n\010info_url\030\004 \001(\tB\006\342\337\037\002X\001R\007in" + + "foUrl\022 \n\007country\030\005 \001(\tB\006\342\337\037\002X\001R\007country\"" + + "Q\n\010NodeVote\022\037\n\007pub_key\030\001 \001(\014B\006\342\337\037\002X\001R\006pu" + + "bKey\022$\n\treference\030\002 \001(\tB\006\342\337\037\002X\001R\treferen" + + "ce\"j\n\rNodeSignature\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003s" + + "ig\030\002 \001(\014R\003sig\0227\n\004kind\030\003 \001(\0162#.vega.comma" + + "nds.v1.NodeSignatureKindR\004kind\"\271\002\n\nChain" + + "Event\022\023\n\005tx_id\030\001 \001(\tR\004txId\022\024\n\005nonce\030\002 \001(" + + "\004R\005nonce\0224\n\007builtin\030\351\007 \001(\0132\027.vega.Builti" + + "nAssetEventH\000R\007builtin\022)\n\005erc20\030\352\007 \001(\0132\020" + + ".vega.ERC20EventH\000R\005erc20\022#\n\003btc\030\353\007 \001(\0132" + + "\016.vega.BTCEventH\000R\003btc\0225\n\tvalidator\030\354\007 \001" + + "(\0132\024.vega.ValidatorEventH\000R\tvalidator\022:\n" + + "\rstaking_event\030\355\007 \001(\0132\022.vega.StakingEven" + + "tH\000R\014stakingEventB\007\n\005event*\205\001\n\021NodeSigna" + "tureKind\022#\n\037NODE_SIGNATURE_KIND_UNSPECIF" + "IED\020\000\022!\n\035NODE_SIGNATURE_KIND_ASSET_NEW\020\001" + "\022(\n$NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL" + @@ -4698,7 +5360,7 @@ public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getDefaultI internal_static_vega_commands_v1_NodeRegistration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_commands_v1_NodeRegistration_descriptor, - new java.lang.String[] { "PubKey", "ChainPubKey", "InfoUrl", "Country", }); + new java.lang.String[] { "VegaPubKey", "EthereumAddress", "ChainPubKey", "InfoUrl", "Country", }); internal_static_vega_commands_v1_NodeVote_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_vega_commands_v1_NodeVote_fieldAccessorTable = new @@ -4716,7 +5378,7 @@ public io.vegaprotocol.vega.commands.v1.ValidatorCommands.ChainEvent getDefaultI internal_static_vega_commands_v1_ChainEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_commands_v1_ChainEvent_descriptor, - new java.lang.String[] { "TxId", "Nonce", "Builtin", "Erc20", "Btc", "Validator", "Event", }); + new java.lang.String[] { "TxId", "Nonce", "Builtin", "Erc20", "Btc", "Validator", "StakingEvent", "Event", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.github.mwitkow.go_proto_validators.Validator.field); diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java new file mode 100644 index 00000000..421a945d --- /dev/null +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java @@ -0,0 +1,867 @@ +package io.vegaprotocol.vega.coreapi.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.38.0)", + comments = "Source: coreapi/v1/coreapi.proto") +public final class CoreApiServiceGrpc { + + private CoreApiServiceGrpc() {} + + public static final String SERVICE_NAME = "vega.coreapi.v1.CoreApiService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListAccountsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccounts", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAccountsMethod() { + io.grpc.MethodDescriptor getListAccountsMethod; + if ((getListAccountsMethod = CoreApiServiceGrpc.getListAccountsMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListAccountsMethod = CoreApiServiceGrpc.getListAccountsMethod) == null) { + CoreApiServiceGrpc.getListAccountsMethod = getListAccountsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListAccounts")) + .build(); + } + } + } + return getListAccountsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; + if ((getListAssetsMethod = CoreApiServiceGrpc.getListAssetsMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListAssetsMethod = CoreApiServiceGrpc.getListAssetsMethod) == null) { + CoreApiServiceGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworkParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkParameters", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworkParametersMethod() { + io.grpc.MethodDescriptor getListNetworkParametersMethod; + if ((getListNetworkParametersMethod = CoreApiServiceGrpc.getListNetworkParametersMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListNetworkParametersMethod = CoreApiServiceGrpc.getListNetworkParametersMethod) == null) { + CoreApiServiceGrpc.getListNetworkParametersMethod = getListNetworkParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListNetworkParameters")) + .build(); + } + } + } + return getListNetworkParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPartiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListParties", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPartiesMethod() { + io.grpc.MethodDescriptor getListPartiesMethod; + if ((getListPartiesMethod = CoreApiServiceGrpc.getListPartiesMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListPartiesMethod = CoreApiServiceGrpc.getListPartiesMethod) == null) { + CoreApiServiceGrpc.getListPartiesMethod = getListPartiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParties")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListParties")) + .build(); + } + } + } + return getListPartiesMethod; + } + + private static volatile io.grpc.MethodDescriptor getListValidatorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListValidators", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListValidatorsMethod() { + io.grpc.MethodDescriptor getListValidatorsMethod; + if ((getListValidatorsMethod = CoreApiServiceGrpc.getListValidatorsMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListValidatorsMethod = CoreApiServiceGrpc.getListValidatorsMethod) == null) { + CoreApiServiceGrpc.getListValidatorsMethod = getListValidatorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListValidators")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListValidators")) + .build(); + } + } + } + return getListValidatorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListMarketsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMarkets", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMarketsMethod() { + io.grpc.MethodDescriptor getListMarketsMethod; + if ((getListMarketsMethod = CoreApiServiceGrpc.getListMarketsMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListMarketsMethod = CoreApiServiceGrpc.getListMarketsMethod) == null) { + CoreApiServiceGrpc.getListMarketsMethod = getListMarketsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMarkets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListMarkets")) + .build(); + } + } + } + return getListMarketsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListProposalsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListProposals", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListProposalsMethod() { + io.grpc.MethodDescriptor getListProposalsMethod; + if ((getListProposalsMethod = CoreApiServiceGrpc.getListProposalsMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListProposalsMethod = CoreApiServiceGrpc.getListProposalsMethod) == null) { + CoreApiServiceGrpc.getListProposalsMethod = getListProposalsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProposals")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListProposals")) + .build(); + } + } + } + return getListProposalsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListMarketsDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMarketsData", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMarketsDataMethod() { + io.grpc.MethodDescriptor getListMarketsDataMethod; + if ((getListMarketsDataMethod = CoreApiServiceGrpc.getListMarketsDataMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListMarketsDataMethod = CoreApiServiceGrpc.getListMarketsDataMethod) == null) { + CoreApiServiceGrpc.getListMarketsDataMethod = getListMarketsDataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMarketsData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListMarketsData")) + .build(); + } + } + } + return getListMarketsDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVotesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVotes", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVotesMethod() { + io.grpc.MethodDescriptor getListVotesMethod; + if ((getListVotesMethod = CoreApiServiceGrpc.getListVotesMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListVotesMethod = CoreApiServiceGrpc.getListVotesMethod) == null) { + CoreApiServiceGrpc.getListVotesMethod = getListVotesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVotes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListVotes")) + .build(); + } + } + } + return getListVotesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CoreApiServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CoreApiServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceStub(channel, callOptions); + } + }; + return CoreApiServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CoreApiServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CoreApiServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceBlockingStub(channel, callOptions); + } + }; + return CoreApiServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CoreApiServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CoreApiServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceFutureStub(channel, callOptions); + } + }; + return CoreApiServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class CoreApiServiceImplBase implements io.grpc.BindableService { + + /** + */ + public void listAccounts(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccountsMethod(), responseObserver); + } + + /** + */ + public void listAssets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + */ + public void listNetworkParameters(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkParametersMethod(), responseObserver); + } + + /** + */ + public void listParties(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartiesMethod(), responseObserver); + } + + /** + */ + public void listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListValidatorsMethod(), responseObserver); + } + + /** + */ + public void listMarkets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMarketsMethod(), responseObserver); + } + + /** + */ + public void listProposals(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProposalsMethod(), responseObserver); + } + + /** + */ + public void listMarketsData(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMarketsDataMethod(), responseObserver); + } + + /** + */ + public void listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVotesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse>( + this, METHODID_LIST_ACCOUNTS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListNetworkParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse>( + this, METHODID_LIST_NETWORK_PARAMETERS))) + .addMethod( + getListPartiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse>( + this, METHODID_LIST_PARTIES))) + .addMethod( + getListValidatorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse>( + this, METHODID_LIST_VALIDATORS))) + .addMethod( + getListMarketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse>( + this, METHODID_LIST_MARKETS))) + .addMethod( + getListProposalsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse>( + this, METHODID_LIST_PROPOSALS))) + .addMethod( + getListMarketsDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse>( + this, METHODID_LIST_MARKETS_DATA))) + .addMethod( + getListVotesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse>( + this, METHODID_LIST_VOTES))) + .build(); + } + } + + /** + */ + public static final class CoreApiServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CoreApiServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CoreApiServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceStub(channel, callOptions); + } + + /** + */ + public void listAccounts(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listAssets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listNetworkParameters(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkParametersMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listParties(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPartiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListValidatorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listMarkets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMarketsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listProposals(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListProposalsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listMarketsData(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMarketsDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVotesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class CoreApiServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CoreApiServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CoreApiServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceBlockingStub(channel, callOptions); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse listAccounts(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse listAssets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse listNetworkParameters(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkParametersMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse listParties(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPartiesMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListValidatorsMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse listMarkets(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMarketsMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse listProposals(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListProposalsMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse listMarketsData(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMarketsDataMethod(), getCallOptions(), request); + } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVotesMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class CoreApiServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private CoreApiServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CoreApiServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CoreApiServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listAccounts( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listAssets( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listNetworkParameters( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkParametersMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listParties( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPartiesMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listValidators( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListValidatorsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listMarkets( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMarketsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listProposals( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListProposalsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listMarketsData( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMarketsDataMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listVotes( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVotesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ACCOUNTS = 0; + private static final int METHODID_LIST_ASSETS = 1; + private static final int METHODID_LIST_NETWORK_PARAMETERS = 2; + private static final int METHODID_LIST_PARTIES = 3; + private static final int METHODID_LIST_VALIDATORS = 4; + private static final int METHODID_LIST_MARKETS = 5; + private static final int METHODID_LIST_PROPOSALS = 6; + private static final int METHODID_LIST_MARKETS_DATA = 7; + private static final int METHODID_LIST_VOTES = 8; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CoreApiServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CoreApiServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_ACCOUNTS: + serviceImpl.listAccounts((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORK_PARAMETERS: + serviceImpl.listNetworkParameters((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PARTIES: + serviceImpl.listParties((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VALIDATORS: + serviceImpl.listValidators((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MARKETS: + serviceImpl.listMarkets((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PROPOSALS: + serviceImpl.listProposals((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MARKETS_DATA: + serviceImpl.listMarketsData((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOTES: + serviceImpl.listVotes((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class CoreApiServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CoreApiServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CoreApiService"); + } + } + + private static final class CoreApiServiceFileDescriptorSupplier + extends CoreApiServiceBaseDescriptorSupplier { + CoreApiServiceFileDescriptorSupplier() {} + } + + private static final class CoreApiServiceMethodDescriptorSupplier + extends CoreApiServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CoreApiServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CoreApiServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CoreApiServiceFileDescriptorSupplier()) + .addMethod(getListAccountsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListNetworkParametersMethod()) + .addMethod(getListPartiesMethod()) + .addMethod(getListValidatorsMethod()) + .addMethod(getListMarketsMethod()) + .addMethod(getListProposalsMethod()) + .addMethod(getListMarketsDataMethod()) + .addMethod(getListVotesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java new file mode 100644 index 00000000..a10833f8 --- /dev/null +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java @@ -0,0 +1,14024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreapi/v1/coreapi.proto + +package io.vegaprotocol.vega.coreapi.v1; + +public final class Coreapi { + private Coreapi() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface AccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.Account) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + java.lang.String getMarket(); + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + java.lang.String getBalance(); + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + com.google.protobuf.ByteString + getBalanceBytes(); + + /** + * string asset = 5 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + * string asset = 5 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + * string type = 6 [json_name = "type"]; + * @return The type. + */ + java.lang.String getType(); + /** + * string type = 6 [json_name = "type"]; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.Account} + */ + public static final class Account extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.Account) + AccountOrBuilder { + private static final long serialVersionUID = 0L; + // Use Account.newBuilder() to construct. + private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Account() { + party_ = ""; + market_ = ""; + balance_ = ""; + asset_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Account(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Account( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + market_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + balance_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MARKET_FIELD_NUMBER = 2; + private volatile java.lang.Object market_; + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + @java.lang.Override + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } + } + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BALANCE_FIELD_NUMBER = 3; + private volatile java.lang.Object balance_; + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + @java.lang.Override + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_FIELD_NUMBER = 5; + private volatile java.lang.Object asset_; + /** + * string asset = 5 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + /** + * string asset = 5 [json_name = "asset"]; + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object type_; + /** + * string type = 6 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * string type = 6 [json_name = "type"]; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getMarketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, market_); + } + if (!getBalanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, balance_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, asset_); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getMarketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, market_); + } + if (!getBalanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, balance_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, asset_); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.Account)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.Account) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getMarket() + .equals(other.getMarket())) return false; + if (!getBalance() + .equals(other.getBalance())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.Account prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.Account} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.Account) + io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + market_ = ""; + + balance_ = ""; + + asset_ = ""; + + type_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_Account_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.Account(this); + result.party_ = party_; + result.market_ = market_; + result.balance_ = balance_; + result.asset_ = asset_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.Account) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.Account)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.Account other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getMarket().isEmpty()) { + market_ = other.market_; + onChanged(); + } + if (!other.getBalance().isEmpty()) { + balance_ = other.balance_; + onChanged(); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.Account) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object market_ = ""; + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string market = 2 [json_name = "market"]; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + market_ = value; + onChanged(); + return this; + } + /** + * string market = 2 [json_name = "market"]; + * @return This builder for chaining. + */ + public Builder clearMarket() { + + market_ = getDefaultInstance().getMarket(); + onChanged(); + return this; + } + /** + * string market = 2 [json_name = "market"]; + * @param value The bytes for market to set. + * @return This builder for chaining. + */ + public Builder setMarketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + market_ = value; + onChanged(); + return this; + } + + private java.lang.Object balance_ = ""; + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @param value The balance to set. + * @return This builder for chaining. + */ + public Builder setBalance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** + * string balance = 3 [json_name = "balance"]; + * @return This builder for chaining. + */ + public Builder clearBalance() { + + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + /** + * string balance = 3 [json_name = "balance"]; + * @param value The bytes for balance to set. + * @return This builder for chaining. + */ + public Builder setBalanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + balance_ = value; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + * string asset = 5 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string asset = 5 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string asset = 5 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + * string asset = 5 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + * string asset = 5 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * string type = 6 [json_name = "type"]; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string type = 6 [json_name = "type"]; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string type = 6 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * string type = 6 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * string type = 6 [json_name = "type"]; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.Account) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.Account) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.Account DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.Account(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Account parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Account(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAccountsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListAccountsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + java.lang.String getMarket(); + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAccountsRequest} + */ + public static final class ListAccountsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListAccountsRequest) + ListAccountsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsRequest.newBuilder() to construct. + private ListAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAccountsRequest() { + party_ = ""; + market_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAccountsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListAccountsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + market_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MARKET_FIELD_NUMBER = 2; + private volatile java.lang.Object market_; + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + @java.lang.Override + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } + } + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getMarketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, market_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getMarketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, market_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getMarket() + .equals(other.getMarket())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAccountsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListAccountsRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + market_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest(this); + result.party_ = party_; + result.market_ = market_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getMarket().isEmpty()) { + market_ = other.market_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object market_ = ""; + /** + * string market = 2 [json_name = "market"]; + * @return The market. + */ + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string market = 2 [json_name = "market"]; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string market = 2 [json_name = "market"]; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + market_ = value; + onChanged(); + return this; + } + /** + * string market = 2 [json_name = "market"]; + * @return This builder for chaining. + */ + public Builder clearMarket() { + + market_ = getDefaultInstance().getMarket(); + onChanged(); + return this; + } + /** + * string market = 2 [json_name = "market"]; + * @param value The bytes for market to set. + * @return This builder for chaining. + */ + public Builder setMarketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + market_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListAccountsRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAccountsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAccountsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListAccountsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + java.util.List + getAccountsList(); + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getAccounts(int index); + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + int getAccountsCount(); + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + java.util.List + getAccountsOrBuilderList(); + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder getAccountsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAccountsResponse} + */ + public static final class ListAccountsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListAccountsResponse) + ListAccountsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsResponse.newBuilder() to construct. + private ListAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAccountsResponse() { + accounts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAccountsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListAccountsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + accounts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + accounts_.add( + input.readMessage(io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.Builder.class); + } + + public static final int ACCOUNTS_FIELD_NUMBER = 1; + private java.util.List accounts_; + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + @java.lang.Override + public java.util.List getAccountsList() { + return accounts_; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + @java.lang.Override + public java.util.List + getAccountsOrBuilderList() { + return accounts_; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + @java.lang.Override + public int getAccountsCount() { + return accounts_.size(); + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getAccounts(int index) { + return accounts_.get(index); + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder getAccountsOrBuilder( + int index) { + return accounts_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < accounts_.size(); i++) { + output.writeMessage(1, accounts_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, accounts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse) obj; + + if (!getAccountsList() + .equals(other.getAccountsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccountsCount() > 0) { + hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAccountsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAccountsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListAccountsResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAccountsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + accountsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse(this); + int from_bitField0_ = bitField0_; + if (accountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accounts_ = accounts_; + } else { + result.accounts_ = accountsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse.getDefaultInstance()) return this; + if (accountsBuilder_ == null) { + if (!other.accounts_.isEmpty()) { + if (accounts_.isEmpty()) { + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountsIsMutable(); + accounts_.addAll(other.accounts_); + } + onChanged(); + } + } else { + if (!other.accounts_.isEmpty()) { + if (accountsBuilder_.isEmpty()) { + accountsBuilder_.dispose(); + accountsBuilder_ = null; + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + accountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAccountsFieldBuilder() : null; + } else { + accountsBuilder_.addAllMessages(other.accounts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List accounts_ = + java.util.Collections.emptyList(); + private void ensureAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accounts_ = new java.util.ArrayList(accounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder> accountsBuilder_; + + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public java.util.List getAccountsList() { + if (accountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accounts_); + } else { + return accountsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public int getAccountsCount() { + if (accountsBuilder_ == null) { + return accounts_.size(); + } else { + return accountsBuilder_.getCount(); + } + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account getAccounts(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder setAccounts( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.set(index, value); + onChanged(); + } else { + accountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder setAccounts( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.set(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder addAccounts(io.vegaprotocol.vega.coreapi.v1.Coreapi.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(value); + onChanged(); + } else { + accountsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder addAccounts( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(index, value); + onChanged(); + } else { + accountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder addAccounts( + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder addAccounts( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder addAllAccounts( + java.lang.Iterable values) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accounts_); + onChanged(); + } else { + accountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder clearAccounts() { + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public Builder removeAccounts(int index) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.remove(index); + onChanged(); + } else { + accountsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder getAccountsBuilder( + int index) { + return getAccountsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder getAccountsOrBuilder( + int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); } else { + return accountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public java.util.List + getAccountsOrBuilderList() { + if (accountsBuilder_ != null) { + return accountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accounts_); + } + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder addAccountsBuilder() { + return getAccountsFieldBuilder().addBuilder( + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.getDefaultInstance()); + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder addAccountsBuilder( + int index) { + return getAccountsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.getDefaultInstance()); + } + /** + * repeated .vega.coreapi.v1.Account accounts = 1 [json_name = "accounts"]; + */ + public java.util.List + getAccountsBuilderList() { + return getAccountsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder> + getAccountsFieldBuilder() { + if (accountsBuilder_ == null) { + accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.Account, io.vegaprotocol.vega.coreapi.v1.Coreapi.Account.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.AccountOrBuilder>( + accounts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accounts_ = null; + } + return accountsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListAccountsResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAccountsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAccountsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAssetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListAssetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * optional ID
+     * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + *
+     * optional ID
+     * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAssetsRequest} + */ + public static final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListAssetsRequest) + ListAssetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAssetsRequest.newBuilder() to construct. + private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAssetsRequest() { + asset_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAssetsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListAssetsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.Builder.class); + } + + public static final int ASSET_FIELD_NUMBER = 1; + private volatile java.lang.Object asset_; + /** + *
+     * optional ID
+     * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + /** + *
+     * optional ID
+     * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest) obj; + + if (!getAsset() + .equals(other.getAsset())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAssetsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListAssetsRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + asset_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest(this); + result.asset_ = asset_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest.getDefaultInstance()) return this; + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object asset_ = ""; + /** + *
+       * optional ID
+       * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * optional ID
+       * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * optional ID
+       * 
+ * + * string asset = 1 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + *
+       * optional ID
+       * 
+ * + * string asset = 1 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + *
+       * optional ID
+       * 
+ * + * string asset = 1 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListAssetsRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAssetsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListAssetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + java.util.List + getAssetsList(); + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + io.vegaprotocol.vega.Assets.Asset getAssets(int index); + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + int getAssetsCount(); + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + java.util.List + getAssetsOrBuilderList(); + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAssetsResponse} + */ + public static final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListAssetsResponse) + ListAssetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAssetsResponse.newBuilder() to construct. + private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAssetsResponse() { + assets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAssetsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListAssetsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + assets_.add( + input.readMessage(io.vegaprotocol.vega.Assets.Asset.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.Builder.class); + } + + public static final int ASSETS_FIELD_NUMBER = 1; + private java.util.List assets_; + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public java.util.List getAssetsList() { + return assets_; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public java.util.List + getAssetsOrBuilderList() { + return assets_; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public int getAssetsCount() { + return assets_.size(); + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Assets.Asset getAssets(int index) { + return assets_.get(index); + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( + int index) { + return assets_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < assets_.size(); i++) { + output.writeMessage(1, assets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < assets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, assets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse) obj; + + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAssetsCount() > 0) { + hash = (37 * hash) + ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAssetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListAssetsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListAssetsResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAssetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + assetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse(this); + int from_bitField0_ = bitField0_; + if (assetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assets_ = assets_; + } else { + result.assets_ = assetsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse.getDefaultInstance()) return this; + if (assetsBuilder_ == null) { + if (!other.assets_.isEmpty()) { + if (assets_.isEmpty()) { + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssetsIsMutable(); + assets_.addAll(other.assets_); + } + onChanged(); + } + } else { + if (!other.assets_.isEmpty()) { + if (assetsBuilder_.isEmpty()) { + assetsBuilder_.dispose(); + assetsBuilder_ = null; + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; + } else { + assetsBuilder_.addAllMessages(other.assets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List assets_ = + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList(assets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> assetsBuilder_; + + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public java.util.List getAssetsList() { + if (assetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assets_); + } else { + return assetsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public int getAssetsCount() { + if (assetsBuilder_ == null) { + return assets_.size(); + } else { + return assetsBuilder_.getCount(); + } + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.Assets.Asset getAssets(int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder setAssets( + int index, io.vegaprotocol.vega.Assets.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.set(index, value); + onChanged(); + } else { + assetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder setAssets( + int index, io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.set(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder addAssets(io.vegaprotocol.vega.Assets.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(value); + onChanged(); + } else { + assetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + int index, io.vegaprotocol.vega.Assets.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(index, value); + onChanged(); + } else { + assetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + int index, io.vegaprotocol.vega.Assets.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder addAllAssets( + java.lang.Iterable values) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); + onChanged(); + } else { + assetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder clearAssets() { + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assetsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public Builder removeAssets(int index) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.remove(index); + onChanged(); + } else { + assetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.Assets.Asset.Builder getAssetsBuilder( + int index) { + return getAssetsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.Assets.AssetOrBuilder getAssetsOrBuilder( + int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); } else { + return assetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public java.util.List + getAssetsOrBuilderList() { + if (assetsBuilder_ != null) { + return assetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assets_); + } + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.Assets.Asset.Builder addAssetsBuilder() { + return getAssetsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Assets.Asset.getDefaultInstance()); + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.Assets.Asset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Assets.Asset.getDefaultInstance()); + } + /** + * repeated .vega.Asset assets = 1 [json_name = "assets"]; + */ + public java.util.List + getAssetsBuilderList() { + return getAssetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder> + getAssetsFieldBuilder() { + if (assetsBuilder_ == null) { + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Assets.Asset, io.vegaprotocol.vega.Assets.Asset.Builder, io.vegaprotocol.vega.Assets.AssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + assets_ = null; + } + return assetsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListAssetsResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListAssetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListNetworkParametersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListNetworkParametersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * optional parameter key
+     * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The networkParameterKey. + */ + java.lang.String getNetworkParameterKey(); + /** + *
+     * optional parameter key
+     * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The bytes for networkParameterKey. + */ + com.google.protobuf.ByteString + getNetworkParameterKeyBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListNetworkParametersRequest} + */ + public static final class ListNetworkParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListNetworkParametersRequest) + ListNetworkParametersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkParametersRequest.newBuilder() to construct. + private ListNetworkParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNetworkParametersRequest() { + networkParameterKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNetworkParametersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNetworkParametersRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + networkParameterKey_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.Builder.class); + } + + public static final int NETWORK_PARAMETER_KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object networkParameterKey_; + /** + *
+     * optional parameter key
+     * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The networkParameterKey. + */ + @java.lang.Override + public java.lang.String getNetworkParameterKey() { + java.lang.Object ref = networkParameterKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkParameterKey_ = s; + return s; + } + } + /** + *
+     * optional parameter key
+     * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The bytes for networkParameterKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkParameterKeyBytes() { + java.lang.Object ref = networkParameterKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkParameterKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNetworkParameterKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkParameterKey_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNetworkParameterKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkParameterKey_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest) obj; + + if (!getNetworkParameterKey() + .equals(other.getNetworkParameterKey())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_PARAMETER_KEY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkParameterKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListNetworkParametersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListNetworkParametersRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + networkParameterKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest(this); + result.networkParameterKey_ = networkParameterKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest.getDefaultInstance()) return this; + if (!other.getNetworkParameterKey().isEmpty()) { + networkParameterKey_ = other.networkParameterKey_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object networkParameterKey_ = ""; + /** + *
+       * optional parameter key
+       * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The networkParameterKey. + */ + public java.lang.String getNetworkParameterKey() { + java.lang.Object ref = networkParameterKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkParameterKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * optional parameter key
+       * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return The bytes for networkParameterKey. + */ + public com.google.protobuf.ByteString + getNetworkParameterKeyBytes() { + java.lang.Object ref = networkParameterKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkParameterKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * optional parameter key
+       * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @param value The networkParameterKey to set. + * @return This builder for chaining. + */ + public Builder setNetworkParameterKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + networkParameterKey_ = value; + onChanged(); + return this; + } + /** + *
+       * optional parameter key
+       * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @return This builder for chaining. + */ + public Builder clearNetworkParameterKey() { + + networkParameterKey_ = getDefaultInstance().getNetworkParameterKey(); + onChanged(); + return this; + } + /** + *
+       * optional parameter key
+       * 
+ * + * string network_parameter_key = 1 [json_name = "networkParameterKey"]; + * @param value The bytes for networkParameterKey to set. + * @return This builder for chaining. + */ + public Builder setNetworkParameterKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + networkParameterKey_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListNetworkParametersRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkParametersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListNetworkParametersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListNetworkParametersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + java.util.List + getNetworkParametersList(); + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index); + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + int getNetworkParametersCount(); + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + java.util.List + getNetworkParametersOrBuilderList(); + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListNetworkParametersResponse} + */ + public static final class ListNetworkParametersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListNetworkParametersResponse) + ListNetworkParametersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkParametersResponse.newBuilder() to construct. + private ListNetworkParametersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNetworkParametersResponse() { + networkParameters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNetworkParametersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNetworkParametersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networkParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networkParameters_.add( + input.readMessage(io.vegaprotocol.vega.Vega.NetworkParameter.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + networkParameters_ = java.util.Collections.unmodifiableList(networkParameters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.Builder.class); + } + + public static final int NETWORK_PARAMETERS_FIELD_NUMBER = 1; + private java.util.List networkParameters_; + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + @java.lang.Override + public java.util.List getNetworkParametersList() { + return networkParameters_; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + @java.lang.Override + public java.util.List + getNetworkParametersOrBuilderList() { + return networkParameters_; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + @java.lang.Override + public int getNetworkParametersCount() { + return networkParameters_.size(); + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index) { + return networkParameters_.get(index); + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( + int index) { + return networkParameters_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < networkParameters_.size(); i++) { + output.writeMessage(1, networkParameters_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < networkParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networkParameters_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse) obj; + + if (!getNetworkParametersList() + .equals(other.getNetworkParametersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNetworkParametersCount() > 0) { + hash = (37 * hash) + NETWORK_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkParametersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListNetworkParametersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListNetworkParametersResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworkParametersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkParametersBuilder_ == null) { + networkParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + networkParametersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse(this); + int from_bitField0_ = bitField0_; + if (networkParametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + networkParameters_ = java.util.Collections.unmodifiableList(networkParameters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.networkParameters_ = networkParameters_; + } else { + result.networkParameters_ = networkParametersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse.getDefaultInstance()) return this; + if (networkParametersBuilder_ == null) { + if (!other.networkParameters_.isEmpty()) { + if (networkParameters_.isEmpty()) { + networkParameters_ = other.networkParameters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNetworkParametersIsMutable(); + networkParameters_.addAll(other.networkParameters_); + } + onChanged(); + } + } else { + if (!other.networkParameters_.isEmpty()) { + if (networkParametersBuilder_.isEmpty()) { + networkParametersBuilder_.dispose(); + networkParametersBuilder_ = null; + networkParameters_ = other.networkParameters_; + bitField0_ = (bitField0_ & ~0x00000001); + networkParametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworkParametersFieldBuilder() : null; + } else { + networkParametersBuilder_.addAllMessages(other.networkParameters_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List networkParameters_ = + java.util.Collections.emptyList(); + private void ensureNetworkParametersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + networkParameters_ = new java.util.ArrayList(networkParameters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> networkParametersBuilder_; + + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public java.util.List getNetworkParametersList() { + if (networkParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkParameters_); + } else { + return networkParametersBuilder_.getMessageList(); + } + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public int getNetworkParametersCount() { + if (networkParametersBuilder_ == null) { + return networkParameters_.size(); + } else { + return networkParametersBuilder_.getCount(); + } + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter getNetworkParameters(int index) { + if (networkParametersBuilder_ == null) { + return networkParameters_.get(index); + } else { + return networkParametersBuilder_.getMessage(index); + } + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder setNetworkParameters( + int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (networkParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkParametersIsMutable(); + networkParameters_.set(index, value); + onChanged(); + } else { + networkParametersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder setNetworkParameters( + int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (networkParametersBuilder_ == null) { + ensureNetworkParametersIsMutable(); + networkParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + networkParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder addNetworkParameters(io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (networkParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkParametersIsMutable(); + networkParameters_.add(value); + onChanged(); + } else { + networkParametersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder addNetworkParameters( + int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (networkParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkParametersIsMutable(); + networkParameters_.add(index, value); + onChanged(); + } else { + networkParametersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder addNetworkParameters( + io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (networkParametersBuilder_ == null) { + ensureNetworkParametersIsMutable(); + networkParameters_.add(builderForValue.build()); + onChanged(); + } else { + networkParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder addNetworkParameters( + int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (networkParametersBuilder_ == null) { + ensureNetworkParametersIsMutable(); + networkParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + networkParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder addAllNetworkParameters( + java.lang.Iterable values) { + if (networkParametersBuilder_ == null) { + ensureNetworkParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networkParameters_); + onChanged(); + } else { + networkParametersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder clearNetworkParameters() { + if (networkParametersBuilder_ == null) { + networkParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + networkParametersBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public Builder removeNetworkParameters(int index) { + if (networkParametersBuilder_ == null) { + ensureNetworkParametersIsMutable(); + networkParameters_.remove(index); + onChanged(); + } else { + networkParametersBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder getNetworkParametersBuilder( + int index) { + return getNetworkParametersFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getNetworkParametersOrBuilder( + int index) { + if (networkParametersBuilder_ == null) { + return networkParameters_.get(index); } else { + return networkParametersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public java.util.List + getNetworkParametersOrBuilderList() { + if (networkParametersBuilder_ != null) { + return networkParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkParameters_); + } + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addNetworkParametersBuilder() { + return getNetworkParametersFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addNetworkParametersBuilder( + int index) { + return getNetworkParametersFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); + } + /** + * repeated .vega.NetworkParameter network_parameters = 1 [json_name = "networkParameters"]; + */ + public java.util.List + getNetworkParametersBuilderList() { + return getNetworkParametersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> + getNetworkParametersFieldBuilder() { + if (networkParametersBuilder_ == null) { + networkParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder>( + networkParameters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + networkParameters_ = null; + } + return networkParametersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListNetworkParametersResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkParametersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkParametersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListNetworkParametersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPartiesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListPartiesRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesRequest} + */ + public static final class ListPartiesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListPartiesRequest) + ListPartiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPartiesRequest.newBuilder() to construct. + private ListPartiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPartiesRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPartiesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPartiesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListPartiesRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListPartiesRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPartiesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPartiesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListPartiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + java.util.List + getPartiesList(); + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + io.vegaprotocol.vega.Vega.Party getParties(int index); + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + int getPartiesCount(); + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + java.util.List + getPartiesOrBuilderList(); + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesResponse} + */ + public static final class ListPartiesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListPartiesResponse) + ListPartiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPartiesResponse.newBuilder() to construct. + private ListPartiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPartiesResponse() { + parties_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPartiesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPartiesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + parties_.add( + input.readMessage(io.vegaprotocol.vega.Vega.Party.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + parties_ = java.util.Collections.unmodifiableList(parties_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.Builder.class); + } + + public static final int PARTIES_FIELD_NUMBER = 1; + private java.util.List parties_; + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + @java.lang.Override + public java.util.List getPartiesList() { + return parties_; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + @java.lang.Override + public java.util.List + getPartiesOrBuilderList() { + return parties_; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + @java.lang.Override + public int getPartiesCount() { + return parties_.size(); + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.Party getParties(int index) { + return parties_.get(index); + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( + int index) { + return parties_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < parties_.size(); i++) { + output.writeMessage(1, parties_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < parties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parties_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse) obj; + + if (!getPartiesList() + .equals(other.getPartiesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPartiesCount() > 0) { + hash = (37 * hash) + PARTIES_FIELD_NUMBER; + hash = (53 * hash) + getPartiesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListPartiesResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPartiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (partiesBuilder_ == null) { + parties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + partiesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse(this); + int from_bitField0_ = bitField0_; + if (partiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + parties_ = java.util.Collections.unmodifiableList(parties_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.parties_ = parties_; + } else { + result.parties_ = partiesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse.getDefaultInstance()) return this; + if (partiesBuilder_ == null) { + if (!other.parties_.isEmpty()) { + if (parties_.isEmpty()) { + parties_ = other.parties_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartiesIsMutable(); + parties_.addAll(other.parties_); + } + onChanged(); + } + } else { + if (!other.parties_.isEmpty()) { + if (partiesBuilder_.isEmpty()) { + partiesBuilder_.dispose(); + partiesBuilder_ = null; + parties_ = other.parties_; + bitField0_ = (bitField0_ & ~0x00000001); + partiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartiesFieldBuilder() : null; + } else { + partiesBuilder_.addAllMessages(other.parties_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List parties_ = + java.util.Collections.emptyList(); + private void ensurePartiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + parties_ = new java.util.ArrayList(parties_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> partiesBuilder_; + + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public java.util.List getPartiesList() { + if (partiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(parties_); + } else { + return partiesBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public int getPartiesCount() { + if (partiesBuilder_ == null) { + return parties_.size(); + } else { + return partiesBuilder_.getCount(); + } + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public io.vegaprotocol.vega.Vega.Party getParties(int index) { + if (partiesBuilder_ == null) { + return parties_.get(index); + } else { + return partiesBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder setParties( + int index, io.vegaprotocol.vega.Vega.Party value) { + if (partiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesIsMutable(); + parties_.set(index, value); + onChanged(); + } else { + partiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder setParties( + int index, io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { + if (partiesBuilder_ == null) { + ensurePartiesIsMutable(); + parties_.set(index, builderForValue.build()); + onChanged(); + } else { + partiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder addParties(io.vegaprotocol.vega.Vega.Party value) { + if (partiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesIsMutable(); + parties_.add(value); + onChanged(); + } else { + partiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder addParties( + int index, io.vegaprotocol.vega.Vega.Party value) { + if (partiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesIsMutable(); + parties_.add(index, value); + onChanged(); + } else { + partiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder addParties( + io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { + if (partiesBuilder_ == null) { + ensurePartiesIsMutable(); + parties_.add(builderForValue.build()); + onChanged(); + } else { + partiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder addParties( + int index, io.vegaprotocol.vega.Vega.Party.Builder builderForValue) { + if (partiesBuilder_ == null) { + ensurePartiesIsMutable(); + parties_.add(index, builderForValue.build()); + onChanged(); + } else { + partiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder addAllParties( + java.lang.Iterable values) { + if (partiesBuilder_ == null) { + ensurePartiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parties_); + onChanged(); + } else { + partiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder clearParties() { + if (partiesBuilder_ == null) { + parties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + partiesBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public Builder removeParties(int index) { + if (partiesBuilder_ == null) { + ensurePartiesIsMutable(); + parties_.remove(index); + onChanged(); + } else { + partiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public io.vegaprotocol.vega.Vega.Party.Builder getPartiesBuilder( + int index) { + return getPartiesFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public io.vegaprotocol.vega.Vega.PartyOrBuilder getPartiesOrBuilder( + int index) { + if (partiesBuilder_ == null) { + return parties_.get(index); } else { + return partiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public java.util.List + getPartiesOrBuilderList() { + if (partiesBuilder_ != null) { + return partiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parties_); + } + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public io.vegaprotocol.vega.Vega.Party.Builder addPartiesBuilder() { + return getPartiesFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.Party.getDefaultInstance()); + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public io.vegaprotocol.vega.Vega.Party.Builder addPartiesBuilder( + int index) { + return getPartiesFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.Party.getDefaultInstance()); + } + /** + * repeated .vega.Party parties = 1 [json_name = "parties"]; + */ + public java.util.List + getPartiesBuilderList() { + return getPartiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder> + getPartiesFieldBuilder() { + if (partiesBuilder_ == null) { + partiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.Party, io.vegaprotocol.vega.Vega.Party.Builder, io.vegaprotocol.vega.Vega.PartyOrBuilder>( + parties_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + parties_ = null; + } + return partiesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListPartiesResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPartiesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListValidatorsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListValidatorsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code vega.coreapi.v1.ListValidatorsRequest} + */ + public static final class ListValidatorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListValidatorsRequest) + ListValidatorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListValidatorsRequest.newBuilder() to construct. + private ListValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListValidatorsRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListValidatorsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListValidatorsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListValidatorsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListValidatorsRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListValidatorsRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListValidatorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListValidatorsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListValidatorsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListValidatorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + java.util.List + getValidatorsList(); + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate getValidators(int index); + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + int getValidatorsCount(); + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + java.util.List + getValidatorsOrBuilderList(); + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder getValidatorsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListValidatorsResponse} + */ + public static final class ListValidatorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListValidatorsResponse) + ListValidatorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListValidatorsResponse.newBuilder() to construct. + private ListValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListValidatorsResponse() { + validators_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListValidatorsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListValidatorsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validators_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validators_.add( + input.readMessage(io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + validators_ = java.util.Collections.unmodifiableList(validators_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.Builder.class); + } + + public static final int VALIDATORS_FIELD_NUMBER = 1; + private java.util.List validators_; + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + @java.lang.Override + public java.util.List getValidatorsList() { + return validators_; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + @java.lang.Override + public java.util.List + getValidatorsOrBuilderList() { + return validators_; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + @java.lang.Override + public int getValidatorsCount() { + return validators_.size(); + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate getValidators(int index) { + return validators_.get(index); + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder getValidatorsOrBuilder( + int index) { + return validators_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < validators_.size(); i++) { + output.writeMessage(1, validators_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < validators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, validators_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse) obj; + + if (!getValidatorsList() + .equals(other.getValidatorsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValidatorsCount() > 0) { + hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; + hash = (53 * hash) + getValidatorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListValidatorsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListValidatorsResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValidatorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (validatorsBuilder_ == null) { + validators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + validatorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse(this); + int from_bitField0_ = bitField0_; + if (validatorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + validators_ = java.util.Collections.unmodifiableList(validators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validators_ = validators_; + } else { + result.validators_ = validatorsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse.getDefaultInstance()) return this; + if (validatorsBuilder_ == null) { + if (!other.validators_.isEmpty()) { + if (validators_.isEmpty()) { + validators_ = other.validators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidatorsIsMutable(); + validators_.addAll(other.validators_); + } + onChanged(); + } + } else { + if (!other.validators_.isEmpty()) { + if (validatorsBuilder_.isEmpty()) { + validatorsBuilder_.dispose(); + validatorsBuilder_ = null; + validators_ = other.validators_; + bitField0_ = (bitField0_ & ~0x00000001); + validatorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidatorsFieldBuilder() : null; + } else { + validatorsBuilder_.addAllMessages(other.validators_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List validators_ = + java.util.Collections.emptyList(); + private void ensureValidatorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validators_ = new java.util.ArrayList(validators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder> validatorsBuilder_; + + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public java.util.List getValidatorsList() { + if (validatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validators_); + } else { + return validatorsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public int getValidatorsCount() { + if (validatorsBuilder_ == null) { + return validators_.size(); + } else { + return validatorsBuilder_.getCount(); + } + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate getValidators(int index) { + if (validatorsBuilder_ == null) { + return validators_.get(index); + } else { + return validatorsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder setValidators( + int index, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.set(index, value); + onChanged(); + } else { + validatorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder setValidators( + int index, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.set(index, builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder addValidators(io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.add(value); + onChanged(); + } else { + validatorsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder addValidators( + int index, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate value) { + if (validatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidatorsIsMutable(); + validators_.add(index, value); + onChanged(); + } else { + validatorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder addValidators( + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.add(builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder addValidators( + int index, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder builderForValue) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.add(index, builderForValue.build()); + onChanged(); + } else { + validatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder addAllValidators( + java.lang.Iterable values) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validators_); + onChanged(); + } else { + validatorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder clearValidators() { + if (validatorsBuilder_ == null) { + validators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + validatorsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public Builder removeValidators(int index) { + if (validatorsBuilder_ == null) { + ensureValidatorsIsMutable(); + validators_.remove(index); + onChanged(); + } else { + validatorsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder getValidatorsBuilder( + int index) { + return getValidatorsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder getValidatorsOrBuilder( + int index) { + if (validatorsBuilder_ == null) { + return validators_.get(index); } else { + return validatorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public java.util.List + getValidatorsOrBuilderList() { + if (validatorsBuilder_ != null) { + return validatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validators_); + } + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder addValidatorsBuilder() { + return getValidatorsFieldBuilder().addBuilder( + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.getDefaultInstance()); + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder addValidatorsBuilder( + int index) { + return getValidatorsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.getDefaultInstance()); + } + /** + * repeated .vega.events.v1.ValidatorUpdate validators = 1 [json_name = "validators"]; + */ + public java.util.List + getValidatorsBuilderList() { + return getValidatorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder> + getValidatorsFieldBuilder() { + if (validatorsBuilder_ == null) { + validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder>( + validators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + validators_ = null; + } + return validatorsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListValidatorsResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListValidatorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListValidatorsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMarketsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListMarketsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + java.lang.String getMarket(); + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsRequest} + */ + public static final class ListMarketsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListMarketsRequest) + ListMarketsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMarketsRequest.newBuilder() to construct. + private ListMarketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMarketsRequest() { + market_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListMarketsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMarketsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + market_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.Builder.class); + } + + public static final int MARKET_FIELD_NUMBER = 1; + private volatile java.lang.Object market_; + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + @java.lang.Override + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } + } + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMarketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, market_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMarketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, market_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest) obj; + + if (!getMarket() + .equals(other.getMarket())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListMarketsRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + market_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest(this); + result.market_ = market_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest.getDefaultInstance()) return this; + if (!other.getMarket().isEmpty()) { + market_ = other.market_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object market_ = ""; + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string market = 1 [json_name = "market"]; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + market_ = value; + onChanged(); + return this; + } + /** + * string market = 1 [json_name = "market"]; + * @return This builder for chaining. + */ + public Builder clearMarket() { + + market_ = getDefaultInstance().getMarket(); + onChanged(); + return this; + } + /** + * string market = 1 [json_name = "market"]; + * @param value The bytes for market to set. + * @return This builder for chaining. + */ + public Builder setMarketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + market_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListMarketsRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMarketsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMarketsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMarketsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListMarketsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + java.util.List + getMarketsList(); + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + io.vegaprotocol.vega.Markets.Market getMarkets(int index); + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + int getMarketsCount(); + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + java.util.List + getMarketsOrBuilderList(); + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsResponse} + */ + public static final class ListMarketsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListMarketsResponse) + ListMarketsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMarketsResponse.newBuilder() to construct. + private ListMarketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMarketsResponse() { + markets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListMarketsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMarketsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + markets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + markets_.add( + input.readMessage(io.vegaprotocol.vega.Markets.Market.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + markets_ = java.util.Collections.unmodifiableList(markets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.Builder.class); + } + + public static final int MARKETS_FIELD_NUMBER = 1; + private java.util.List markets_; + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + @java.lang.Override + public java.util.List getMarketsList() { + return markets_; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + @java.lang.Override + public java.util.List + getMarketsOrBuilderList() { + return markets_; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + @java.lang.Override + public int getMarketsCount() { + return markets_.size(); + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Markets.Market getMarkets(int index) { + return markets_.get(index); + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( + int index) { + return markets_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < markets_.size(); i++) { + output.writeMessage(1, markets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < markets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, markets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse) obj; + + if (!getMarketsList() + .equals(other.getMarketsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMarketsCount() > 0) { + hash = (37 * hash) + MARKETS_FIELD_NUMBER; + hash = (53 * hash) + getMarketsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListMarketsResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMarketsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (marketsBuilder_ == null) { + markets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + marketsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse(this); + int from_bitField0_ = bitField0_; + if (marketsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + markets_ = java.util.Collections.unmodifiableList(markets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.markets_ = markets_; + } else { + result.markets_ = marketsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse.getDefaultInstance()) return this; + if (marketsBuilder_ == null) { + if (!other.markets_.isEmpty()) { + if (markets_.isEmpty()) { + markets_ = other.markets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMarketsIsMutable(); + markets_.addAll(other.markets_); + } + onChanged(); + } + } else { + if (!other.markets_.isEmpty()) { + if (marketsBuilder_.isEmpty()) { + marketsBuilder_.dispose(); + marketsBuilder_ = null; + markets_ = other.markets_; + bitField0_ = (bitField0_ & ~0x00000001); + marketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMarketsFieldBuilder() : null; + } else { + marketsBuilder_.addAllMessages(other.markets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List markets_ = + java.util.Collections.emptyList(); + private void ensureMarketsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + markets_ = new java.util.ArrayList(markets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> marketsBuilder_; + + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public java.util.List getMarketsList() { + if (marketsBuilder_ == null) { + return java.util.Collections.unmodifiableList(markets_); + } else { + return marketsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public int getMarketsCount() { + if (marketsBuilder_ == null) { + return markets_.size(); + } else { + return marketsBuilder_.getCount(); + } + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public io.vegaprotocol.vega.Markets.Market getMarkets(int index) { + if (marketsBuilder_ == null) { + return markets_.get(index); + } else { + return marketsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder setMarkets( + int index, io.vegaprotocol.vega.Markets.Market value) { + if (marketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsIsMutable(); + markets_.set(index, value); + onChanged(); + } else { + marketsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder setMarkets( + int index, io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { + if (marketsBuilder_ == null) { + ensureMarketsIsMutable(); + markets_.set(index, builderForValue.build()); + onChanged(); + } else { + marketsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder addMarkets(io.vegaprotocol.vega.Markets.Market value) { + if (marketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsIsMutable(); + markets_.add(value); + onChanged(); + } else { + marketsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder addMarkets( + int index, io.vegaprotocol.vega.Markets.Market value) { + if (marketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsIsMutable(); + markets_.add(index, value); + onChanged(); + } else { + marketsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder addMarkets( + io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { + if (marketsBuilder_ == null) { + ensureMarketsIsMutable(); + markets_.add(builderForValue.build()); + onChanged(); + } else { + marketsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder addMarkets( + int index, io.vegaprotocol.vega.Markets.Market.Builder builderForValue) { + if (marketsBuilder_ == null) { + ensureMarketsIsMutable(); + markets_.add(index, builderForValue.build()); + onChanged(); + } else { + marketsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder addAllMarkets( + java.lang.Iterable values) { + if (marketsBuilder_ == null) { + ensureMarketsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, markets_); + onChanged(); + } else { + marketsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder clearMarkets() { + if (marketsBuilder_ == null) { + markets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + marketsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public Builder removeMarkets(int index) { + if (marketsBuilder_ == null) { + ensureMarketsIsMutable(); + markets_.remove(index); + onChanged(); + } else { + marketsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public io.vegaprotocol.vega.Markets.Market.Builder getMarketsBuilder( + int index) { + return getMarketsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public io.vegaprotocol.vega.Markets.MarketOrBuilder getMarketsOrBuilder( + int index) { + if (marketsBuilder_ == null) { + return markets_.get(index); } else { + return marketsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public java.util.List + getMarketsOrBuilderList() { + if (marketsBuilder_ != null) { + return marketsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(markets_); + } + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public io.vegaprotocol.vega.Markets.Market.Builder addMarketsBuilder() { + return getMarketsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Markets.Market.getDefaultInstance()); + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public io.vegaprotocol.vega.Markets.Market.Builder addMarketsBuilder( + int index) { + return getMarketsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Markets.Market.getDefaultInstance()); + } + /** + * repeated .vega.Market markets = 1 [json_name = "markets"]; + */ + public java.util.List + getMarketsBuilderList() { + return getMarketsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder> + getMarketsFieldBuilder() { + if (marketsBuilder_ == null) { + marketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Markets.Market, io.vegaprotocol.vega.Markets.Market.Builder, io.vegaprotocol.vega.Markets.MarketOrBuilder>( + markets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + markets_ = null; + } + return marketsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListMarketsResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMarketsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMarketsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListProposalsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListProposalsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * optional ID
+     * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + java.lang.String getProposal(); + /** + *
+     * optional ID
+     * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + com.google.protobuf.ByteString + getProposalBytes(); + + /** + *
+     * optional party
+     * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The proposer. + */ + java.lang.String getProposer(); + /** + *
+     * optional party
+     * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The bytes for proposer. + */ + com.google.protobuf.ByteString + getProposerBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListProposalsRequest} + */ + public static final class ListProposalsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListProposalsRequest) + ListProposalsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProposalsRequest.newBuilder() to construct. + private ListProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListProposalsRequest() { + proposal_ = ""; + proposer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListProposalsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListProposalsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + proposal_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + proposer_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.Builder.class); + } + + public static final int PROPOSAL_FIELD_NUMBER = 1; + private volatile java.lang.Object proposal_; + /** + *
+     * optional ID
+     * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + @java.lang.Override + public java.lang.String getProposal() { + java.lang.Object ref = proposal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposal_ = s; + return s; + } + } + /** + *
+     * optional ID
+     * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProposalBytes() { + java.lang.Object ref = proposal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPOSER_FIELD_NUMBER = 2; + private volatile java.lang.Object proposer_; + /** + *
+     * optional party
+     * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The proposer. + */ + @java.lang.Override + public java.lang.String getProposer() { + java.lang.Object ref = proposer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposer_ = s; + return s; + } + } + /** + *
+     * optional party
+     * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The bytes for proposer. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProposerBytes() { + java.lang.Object ref = proposer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProposalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, proposal_); + } + if (!getProposerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, proposer_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProposalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, proposal_); + } + if (!getProposerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, proposer_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest) obj; + + if (!getProposal() + .equals(other.getProposal())) return false; + if (!getProposer() + .equals(other.getProposer())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getProposal().hashCode(); + hash = (37 * hash) + PROPOSER_FIELD_NUMBER; + hash = (53 * hash) + getProposer().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListProposalsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListProposalsRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + proposal_ = ""; + + proposer_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest(this); + result.proposal_ = proposal_; + result.proposer_ = proposer_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest.getDefaultInstance()) return this; + if (!other.getProposal().isEmpty()) { + proposal_ = other.proposal_; + onChanged(); + } + if (!other.getProposer().isEmpty()) { + proposer_ = other.proposer_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object proposal_ = ""; + /** + *
+       * optional ID
+       * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + public java.lang.String getProposal() { + java.lang.Object ref = proposal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * optional ID
+       * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + public com.google.protobuf.ByteString + getProposalBytes() { + java.lang.Object ref = proposal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * optional ID
+       * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @param value The proposal to set. + * @return This builder for chaining. + */ + public Builder setProposal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + proposal_ = value; + onChanged(); + return this; + } + /** + *
+       * optional ID
+       * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @return This builder for chaining. + */ + public Builder clearProposal() { + + proposal_ = getDefaultInstance().getProposal(); + onChanged(); + return this; + } + /** + *
+       * optional ID
+       * 
+ * + * string proposal = 1 [json_name = "proposal"]; + * @param value The bytes for proposal to set. + * @return This builder for chaining. + */ + public Builder setProposalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + proposal_ = value; + onChanged(); + return this; + } + + private java.lang.Object proposer_ = ""; + /** + *
+       * optional party
+       * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The proposer. + */ + public java.lang.String getProposer() { + java.lang.Object ref = proposer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * optional party
+       * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return The bytes for proposer. + */ + public com.google.protobuf.ByteString + getProposerBytes() { + java.lang.Object ref = proposer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * optional party
+       * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @param value The proposer to set. + * @return This builder for chaining. + */ + public Builder setProposer( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + proposer_ = value; + onChanged(); + return this; + } + /** + *
+       * optional party
+       * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @return This builder for chaining. + */ + public Builder clearProposer() { + + proposer_ = getDefaultInstance().getProposer(); + onChanged(); + return this; + } + /** + *
+       * optional party
+       * 
+ * + * string proposer = 2 [json_name = "proposer"]; + * @param value The bytes for proposer to set. + * @return This builder for chaining. + */ + public Builder setProposerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + proposer_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListProposalsRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProposalsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProposalsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListProposalsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListProposalsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + java.util.List + getProposalsList(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + io.vegaprotocol.vega.Governance.Proposal getProposals(int index); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + int getProposalsCount(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + java.util.List + getProposalsOrBuilderList(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListProposalsResponse} + */ + public static final class ListProposalsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListProposalsResponse) + ListProposalsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProposalsResponse.newBuilder() to construct. + private ListProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListProposalsResponse() { + proposals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListProposalsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListProposalsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + proposals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + proposals_.add( + input.readMessage(io.vegaprotocol.vega.Governance.Proposal.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + proposals_ = java.util.Collections.unmodifiableList(proposals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.Builder.class); + } + + public static final int PROPOSALS_FIELD_NUMBER = 1; + private java.util.List proposals_; + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public java.util.List getProposalsList() { + return proposals_; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public java.util.List + getProposalsOrBuilderList() { + return proposals_; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public int getProposalsCount() { + return proposals_.size(); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.Proposal getProposals(int index) { + return proposals_.get(index); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index) { + return proposals_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < proposals_.size(); i++) { + output.writeMessage(1, proposals_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < proposals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, proposals_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse) obj; + + if (!getProposalsList() + .equals(other.getProposalsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProposalsCount() > 0) { + hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; + hash = (53 * hash) + getProposalsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListProposalsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListProposalsResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProposalsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (proposalsBuilder_ == null) { + proposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + proposalsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse(this); + int from_bitField0_ = bitField0_; + if (proposalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + proposals_ = java.util.Collections.unmodifiableList(proposals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.proposals_ = proposals_; + } else { + result.proposals_ = proposalsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse.getDefaultInstance()) return this; + if (proposalsBuilder_ == null) { + if (!other.proposals_.isEmpty()) { + if (proposals_.isEmpty()) { + proposals_ = other.proposals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProposalsIsMutable(); + proposals_.addAll(other.proposals_); + } + onChanged(); + } + } else { + if (!other.proposals_.isEmpty()) { + if (proposalsBuilder_.isEmpty()) { + proposalsBuilder_.dispose(); + proposalsBuilder_ = null; + proposals_ = other.proposals_; + bitField0_ = (bitField0_ & ~0x00000001); + proposalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProposalsFieldBuilder() : null; + } else { + proposalsBuilder_.addAllMessages(other.proposals_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List proposals_ = + java.util.Collections.emptyList(); + private void ensureProposalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + proposals_ = new java.util.ArrayList(proposals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder> proposalsBuilder_; + + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List getProposalsList() { + if (proposalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(proposals_); + } else { + return proposalsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public int getProposalsCount() { + if (proposalsBuilder_ == null) { + return proposals_.size(); + } else { + return proposalsBuilder_.getCount(); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal getProposals(int index) { + if (proposalsBuilder_ == null) { + return proposals_.get(index); + } else { + return proposalsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder setProposals( + int index, io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.set(index, value); + onChanged(); + } else { + proposalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder setProposals( + int index, io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.set(index, builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals(io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.add(value); + onChanged(); + } else { + proposalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + int index, io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.add(index, value); + onChanged(); + } else { + proposalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.add(builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + int index, io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.add(index, builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addAllProposals( + java.lang.Iterable values) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, proposals_); + onChanged(); + } else { + proposalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder clearProposals() { + if (proposalsBuilder_ == null) { + proposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + proposalsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder removeProposals(int index) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.remove(index); + onChanged(); + } else { + proposalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder getProposalsBuilder( + int index) { + return getProposalsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index) { + if (proposalsBuilder_ == null) { + return proposals_.get(index); } else { + return proposalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List + getProposalsOrBuilderList() { + if (proposalsBuilder_ != null) { + return proposalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(proposals_); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder addProposalsBuilder() { + return getProposalsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Governance.Proposal.getDefaultInstance()); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder addProposalsBuilder( + int index) { + return getProposalsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Governance.Proposal.getDefaultInstance()); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List + getProposalsBuilderList() { + return getProposalsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder> + getProposalsFieldBuilder() { + if (proposalsBuilder_ == null) { + proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder>( + proposals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + proposals_ = null; + } + return proposalsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListProposalsResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProposalsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProposalsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListProposalsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMarketsDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListMarketsDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + java.lang.String getMarket(); + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsDataRequest} + */ + public static final class ListMarketsDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListMarketsDataRequest) + ListMarketsDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMarketsDataRequest.newBuilder() to construct. + private ListMarketsDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMarketsDataRequest() { + market_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListMarketsDataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMarketsDataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + market_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.Builder.class); + } + + public static final int MARKET_FIELD_NUMBER = 1; + private volatile java.lang.Object market_; + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + @java.lang.Override + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } + } + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMarketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, market_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMarketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, market_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest) obj; + + if (!getMarket() + .equals(other.getMarket())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListMarketsDataRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + market_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest(this); + result.market_ = market_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest.getDefaultInstance()) return this; + if (!other.getMarket().isEmpty()) { + market_ = other.market_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object market_ = ""; + /** + * string market = 1 [json_name = "market"]; + * @return The market. + */ + public java.lang.String getMarket() { + java.lang.Object ref = market_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string market = 1 [json_name = "market"]; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + java.lang.Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string market = 1 [json_name = "market"]; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + market_ = value; + onChanged(); + return this; + } + /** + * string market = 1 [json_name = "market"]; + * @return This builder for chaining. + */ + public Builder clearMarket() { + + market_ = getDefaultInstance().getMarket(); + onChanged(); + return this; + } + /** + * string market = 1 [json_name = "market"]; + * @param value The bytes for market to set. + * @return This builder for chaining. + */ + public Builder setMarketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + market_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListMarketsDataRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMarketsDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMarketsDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMarketsDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListMarketsDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + java.util.List + getMarketsDataList(); + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index); + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + int getMarketsDataCount(); + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + java.util.List + getMarketsDataOrBuilderList(); + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsDataResponse} + */ + public static final class ListMarketsDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListMarketsDataResponse) + ListMarketsDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMarketsDataResponse.newBuilder() to construct. + private ListMarketsDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMarketsDataResponse() { + marketsData_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListMarketsDataResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMarketsDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + marketsData_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + marketsData_.add( + input.readMessage(io.vegaprotocol.vega.Vega.MarketData.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + marketsData_ = java.util.Collections.unmodifiableList(marketsData_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.Builder.class); + } + + public static final int MARKETS_DATA_FIELD_NUMBER = 1; + private java.util.List marketsData_; + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + @java.lang.Override + public java.util.List getMarketsDataList() { + return marketsData_; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + @java.lang.Override + public java.util.List + getMarketsDataOrBuilderList() { + return marketsData_; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + @java.lang.Override + public int getMarketsDataCount() { + return marketsData_.size(); + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index) { + return marketsData_.get(index); + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( + int index) { + return marketsData_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < marketsData_.size(); i++) { + output.writeMessage(1, marketsData_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < marketsData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, marketsData_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse) obj; + + if (!getMarketsDataList() + .equals(other.getMarketsDataList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMarketsDataCount() > 0) { + hash = (37 * hash) + MARKETS_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMarketsDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListMarketsDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListMarketsDataResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMarketsDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (marketsDataBuilder_ == null) { + marketsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + marketsDataBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse(this); + int from_bitField0_ = bitField0_; + if (marketsDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + marketsData_ = java.util.Collections.unmodifiableList(marketsData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.marketsData_ = marketsData_; + } else { + result.marketsData_ = marketsDataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse.getDefaultInstance()) return this; + if (marketsDataBuilder_ == null) { + if (!other.marketsData_.isEmpty()) { + if (marketsData_.isEmpty()) { + marketsData_ = other.marketsData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMarketsDataIsMutable(); + marketsData_.addAll(other.marketsData_); + } + onChanged(); + } + } else { + if (!other.marketsData_.isEmpty()) { + if (marketsDataBuilder_.isEmpty()) { + marketsDataBuilder_.dispose(); + marketsDataBuilder_ = null; + marketsData_ = other.marketsData_; + bitField0_ = (bitField0_ & ~0x00000001); + marketsDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMarketsDataFieldBuilder() : null; + } else { + marketsDataBuilder_.addAllMessages(other.marketsData_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List marketsData_ = + java.util.Collections.emptyList(); + private void ensureMarketsDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + marketsData_ = new java.util.ArrayList(marketsData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> marketsDataBuilder_; + + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public java.util.List getMarketsDataList() { + if (marketsDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(marketsData_); + } else { + return marketsDataBuilder_.getMessageList(); + } + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public int getMarketsDataCount() { + if (marketsDataBuilder_ == null) { + return marketsData_.size(); + } else { + return marketsDataBuilder_.getCount(); + } + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public io.vegaprotocol.vega.Vega.MarketData getMarketsData(int index) { + if (marketsDataBuilder_ == null) { + return marketsData_.get(index); + } else { + return marketsDataBuilder_.getMessage(index); + } + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder setMarketsData( + int index, io.vegaprotocol.vega.Vega.MarketData value) { + if (marketsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsDataIsMutable(); + marketsData_.set(index, value); + onChanged(); + } else { + marketsDataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder setMarketsData( + int index, io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { + if (marketsDataBuilder_ == null) { + ensureMarketsDataIsMutable(); + marketsData_.set(index, builderForValue.build()); + onChanged(); + } else { + marketsDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder addMarketsData(io.vegaprotocol.vega.Vega.MarketData value) { + if (marketsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsDataIsMutable(); + marketsData_.add(value); + onChanged(); + } else { + marketsDataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder addMarketsData( + int index, io.vegaprotocol.vega.Vega.MarketData value) { + if (marketsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMarketsDataIsMutable(); + marketsData_.add(index, value); + onChanged(); + } else { + marketsDataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder addMarketsData( + io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { + if (marketsDataBuilder_ == null) { + ensureMarketsDataIsMutable(); + marketsData_.add(builderForValue.build()); + onChanged(); + } else { + marketsDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder addMarketsData( + int index, io.vegaprotocol.vega.Vega.MarketData.Builder builderForValue) { + if (marketsDataBuilder_ == null) { + ensureMarketsDataIsMutable(); + marketsData_.add(index, builderForValue.build()); + onChanged(); + } else { + marketsDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder addAllMarketsData( + java.lang.Iterable values) { + if (marketsDataBuilder_ == null) { + ensureMarketsDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, marketsData_); + onChanged(); + } else { + marketsDataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder clearMarketsData() { + if (marketsDataBuilder_ == null) { + marketsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + marketsDataBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public Builder removeMarketsData(int index) { + if (marketsDataBuilder_ == null) { + ensureMarketsDataIsMutable(); + marketsData_.remove(index); + onChanged(); + } else { + marketsDataBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public io.vegaprotocol.vega.Vega.MarketData.Builder getMarketsDataBuilder( + int index) { + return getMarketsDataFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public io.vegaprotocol.vega.Vega.MarketDataOrBuilder getMarketsDataOrBuilder( + int index) { + if (marketsDataBuilder_ == null) { + return marketsData_.get(index); } else { + return marketsDataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public java.util.List + getMarketsDataOrBuilderList() { + if (marketsDataBuilder_ != null) { + return marketsDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(marketsData_); + } + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public io.vegaprotocol.vega.Vega.MarketData.Builder addMarketsDataBuilder() { + return getMarketsDataFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()); + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public io.vegaprotocol.vega.Vega.MarketData.Builder addMarketsDataBuilder( + int index) { + return getMarketsDataFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()); + } + /** + * repeated .vega.MarketData markets_data = 1 [json_name = "marketsData"]; + */ + public java.util.List + getMarketsDataBuilderList() { + return getMarketsDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder> + getMarketsDataFieldBuilder() { + if (marketsDataBuilder_ == null) { + marketsDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.MarketData, io.vegaprotocol.vega.Vega.MarketData.Builder, io.vegaprotocol.vega.Vega.MarketDataOrBuilder>( + marketsData_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + marketsData_ = null; + } + return marketsDataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListMarketsDataResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMarketsDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMarketsDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListMarketsDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListVotesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListVotesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + java.lang.String getProposal(); + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + com.google.protobuf.ByteString + getProposalBytes(); + + /** + * string party = 2 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 2 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListVotesRequest} + */ + public static final class ListVotesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListVotesRequest) + ListVotesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVotesRequest.newBuilder() to construct. + private ListVotesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListVotesRequest() { + proposal_ = ""; + party_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListVotesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListVotesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + proposal_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.Builder.class); + } + + public static final int PROPOSAL_FIELD_NUMBER = 1; + private volatile java.lang.Object proposal_; + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + @java.lang.Override + public java.lang.String getProposal() { + java.lang.Object ref = proposal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposal_ = s; + return s; + } + } + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProposalBytes() { + java.lang.Object ref = proposal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTY_FIELD_NUMBER = 2; + private volatile java.lang.Object party_; + /** + * string party = 2 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 2 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProposalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, proposal_); + } + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, party_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProposalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, proposal_); + } + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, party_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest) obj; + + if (!getProposal() + .equals(other.getProposal())) return false; + if (!getParty() + .equals(other.getParty())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getProposal().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListVotesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListVotesRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + proposal_ = ""; + + party_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest(this); + result.proposal_ = proposal_; + result.party_ = party_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest.getDefaultInstance()) return this; + if (!other.getProposal().isEmpty()) { + proposal_ = other.proposal_; + onChanged(); + } + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object proposal_ = ""; + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The proposal. + */ + public java.lang.String getProposal() { + java.lang.Object ref = proposal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string proposal = 1 [json_name = "proposal"]; + * @return The bytes for proposal. + */ + public com.google.protobuf.ByteString + getProposalBytes() { + java.lang.Object ref = proposal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proposal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string proposal = 1 [json_name = "proposal"]; + * @param value The proposal to set. + * @return This builder for chaining. + */ + public Builder setProposal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + proposal_ = value; + onChanged(); + return this; + } + /** + * string proposal = 1 [json_name = "proposal"]; + * @return This builder for chaining. + */ + public Builder clearProposal() { + + proposal_ = getDefaultInstance().getProposal(); + onChanged(); + return this; + } + /** + * string proposal = 1 [json_name = "proposal"]; + * @param value The bytes for proposal to set. + * @return This builder for chaining. + */ + public Builder setProposalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + proposal_ = value; + onChanged(); + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 2 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 2 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 2 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 2 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 2 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListVotesRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVotesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVotesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListVotesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListVotesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + java.util.List + getVotesList(); + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + io.vegaprotocol.vega.Governance.Vote getVotes(int index); + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + int getVotesCount(); + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + java.util.List + getVotesOrBuilderList(); + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListVotesResponse} + */ + public static final class ListVotesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListVotesResponse) + ListVotesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVotesResponse.newBuilder() to construct. + private ListVotesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListVotesResponse() { + votes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListVotesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListVotesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + votes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + votes_.add( + input.readMessage(io.vegaprotocol.vega.Governance.Vote.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + votes_ = java.util.Collections.unmodifiableList(votes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.Builder.class); + } + + public static final int VOTES_FIELD_NUMBER = 1; + private java.util.List votes_; + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + @java.lang.Override + public java.util.List getVotesList() { + return votes_; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + @java.lang.Override + public java.util.List + getVotesOrBuilderList() { + return votes_; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + @java.lang.Override + public int getVotesCount() { + return votes_.size(); + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.Vote getVotes(int index) { + return votes_.get(index); + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( + int index) { + return votes_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < votes_.size(); i++) { + output.writeMessage(1, votes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < votes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, votes_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse) obj; + + if (!getVotesList() + .equals(other.getVotesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVotesCount() > 0) { + hash = (37 * hash) + VOTES_FIELD_NUMBER; + hash = (53 * hash) + getVotesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListVotesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListVotesResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVotesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (votesBuilder_ == null) { + votes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + votesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListVotesResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse(this); + int from_bitField0_ = bitField0_; + if (votesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + votes_ = java.util.Collections.unmodifiableList(votes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.votes_ = votes_; + } else { + result.votes_ = votesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse.getDefaultInstance()) return this; + if (votesBuilder_ == null) { + if (!other.votes_.isEmpty()) { + if (votes_.isEmpty()) { + votes_ = other.votes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVotesIsMutable(); + votes_.addAll(other.votes_); + } + onChanged(); + } + } else { + if (!other.votes_.isEmpty()) { + if (votesBuilder_.isEmpty()) { + votesBuilder_.dispose(); + votesBuilder_ = null; + votes_ = other.votes_; + bitField0_ = (bitField0_ & ~0x00000001); + votesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVotesFieldBuilder() : null; + } else { + votesBuilder_.addAllMessages(other.votes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List votes_ = + java.util.Collections.emptyList(); + private void ensureVotesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + votes_ = new java.util.ArrayList(votes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> votesBuilder_; + + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public java.util.List getVotesList() { + if (votesBuilder_ == null) { + return java.util.Collections.unmodifiableList(votes_); + } else { + return votesBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public int getVotesCount() { + if (votesBuilder_ == null) { + return votes_.size(); + } else { + return votesBuilder_.getCount(); + } + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public io.vegaprotocol.vega.Governance.Vote getVotes(int index) { + if (votesBuilder_ == null) { + return votes_.get(index); + } else { + return votesBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder setVotes( + int index, io.vegaprotocol.vega.Governance.Vote value) { + if (votesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVotesIsMutable(); + votes_.set(index, value); + onChanged(); + } else { + votesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder setVotes( + int index, io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { + if (votesBuilder_ == null) { + ensureVotesIsMutable(); + votes_.set(index, builderForValue.build()); + onChanged(); + } else { + votesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder addVotes(io.vegaprotocol.vega.Governance.Vote value) { + if (votesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVotesIsMutable(); + votes_.add(value); + onChanged(); + } else { + votesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder addVotes( + int index, io.vegaprotocol.vega.Governance.Vote value) { + if (votesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVotesIsMutable(); + votes_.add(index, value); + onChanged(); + } else { + votesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder addVotes( + io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { + if (votesBuilder_ == null) { + ensureVotesIsMutable(); + votes_.add(builderForValue.build()); + onChanged(); + } else { + votesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder addVotes( + int index, io.vegaprotocol.vega.Governance.Vote.Builder builderForValue) { + if (votesBuilder_ == null) { + ensureVotesIsMutable(); + votes_.add(index, builderForValue.build()); + onChanged(); + } else { + votesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder addAllVotes( + java.lang.Iterable values) { + if (votesBuilder_ == null) { + ensureVotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, votes_); + onChanged(); + } else { + votesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder clearVotes() { + if (votesBuilder_ == null) { + votes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + votesBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public Builder removeVotes(int index) { + if (votesBuilder_ == null) { + ensureVotesIsMutable(); + votes_.remove(index); + onChanged(); + } else { + votesBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public io.vegaprotocol.vega.Governance.Vote.Builder getVotesBuilder( + int index) { + return getVotesFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public io.vegaprotocol.vega.Governance.VoteOrBuilder getVotesOrBuilder( + int index) { + if (votesBuilder_ == null) { + return votes_.get(index); } else { + return votesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public java.util.List + getVotesOrBuilderList() { + if (votesBuilder_ != null) { + return votesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(votes_); + } + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public io.vegaprotocol.vega.Governance.Vote.Builder addVotesBuilder() { + return getVotesFieldBuilder().addBuilder( + io.vegaprotocol.vega.Governance.Vote.getDefaultInstance()); + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public io.vegaprotocol.vega.Governance.Vote.Builder addVotesBuilder( + int index) { + return getVotesFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Governance.Vote.getDefaultInstance()); + } + /** + * repeated .vega.Vote votes = 1 [json_name = "votes"]; + */ + public java.util.List + getVotesBuilderList() { + return getVotesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder> + getVotesFieldBuilder() { + if (votesBuilder_ == null) { + votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Vote, io.vegaprotocol.vega.Governance.Vote.Builder, io.vegaprotocol.vega.Governance.VoteOrBuilder>( + votes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + votes_ = null; + } + return votesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListVotesResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVotesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVotesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_Account_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_Account_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListAccountsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListAccountsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListAssetsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListAssetsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListNetworkParametersRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListNetworkParametersResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListPartiesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListPartiesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListValidatorsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListValidatorsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListMarketsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListMarketsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListProposalsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListProposalsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListMarketsDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListMarketsDataResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListVotesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListVotesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListVotesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListVotesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030coreapi/v1/coreapi.proto\022\017vega.coreapi" + + ".v1\032\014assets.proto\032\020governance.proto\032\rmar" + + "kets.proto\032\nvega.proto\032\026events/v1/events" + + ".proto\"{\n\007Account\022\024\n\005party\030\001 \001(\tR\005party\022" + + "\026\n\006market\030\002 \001(\tR\006market\022\030\n\007balance\030\003 \001(\t" + + "R\007balance\022\024\n\005asset\030\005 \001(\tR\005asset\022\022\n\004type\030" + + "\006 \001(\tR\004type\"C\n\023ListAccountsRequest\022\024\n\005pa" + + "rty\030\001 \001(\tR\005party\022\026\n\006market\030\002 \001(\tR\006market" + + "\"L\n\024ListAccountsResponse\0224\n\010accounts\030\001 \003" + + "(\0132\030.vega.coreapi.v1.AccountR\010accounts\")" + + "\n\021ListAssetsRequest\022\024\n\005asset\030\001 \001(\tR\005asse" + + "t\"9\n\022ListAssetsResponse\022#\n\006assets\030\001 \003(\0132" + + "\013.vega.AssetR\006assets\"R\n\034ListNetworkParam" + + "etersRequest\0222\n\025network_parameter_key\030\001 " + + "\001(\tR\023networkParameterKey\"f\n\035ListNetworkP" + + "arametersResponse\022E\n\022network_parameters\030" + + "\001 \003(\0132\026.vega.NetworkParameterR\021networkPa" + + "rameters\"\024\n\022ListPartiesRequest\"<\n\023ListPa" + + "rtiesResponse\022%\n\007parties\030\001 \003(\0132\013.vega.Pa" + + "rtyR\007parties\"\027\n\025ListValidatorsRequest\"Y\n" + + "\026ListValidatorsResponse\022?\n\nvalidators\030\001 " + + "\003(\0132\037.vega.events.v1.ValidatorUpdateR\nva" + + "lidators\",\n\022ListMarketsRequest\022\026\n\006market" + + "\030\001 \001(\tR\006market\"=\n\023ListMarketsResponse\022&\n" + + "\007markets\030\001 \003(\0132\014.vega.MarketR\007markets\"N\n" + + "\024ListProposalsRequest\022\032\n\010proposal\030\001 \001(\tR" + + "\010proposal\022\032\n\010proposer\030\002 \001(\tR\010proposer\"E\n" + + "\025ListProposalsResponse\022,\n\tproposals\030\001 \003(" + + "\0132\016.vega.ProposalR\tproposals\"0\n\026ListMark" + + "etsDataRequest\022\026\n\006market\030\001 \001(\tR\006market\"N" + + "\n\027ListMarketsDataResponse\0223\n\014markets_dat" + + "a\030\001 \003(\0132\020.vega.MarketDataR\013marketsData\"D" + + "\n\020ListVotesRequest\022\032\n\010proposal\030\001 \001(\tR\010pr" + + "oposal\022\024\n\005party\030\002 \001(\tR\005party\"5\n\021ListVote" + + "sResponse\022 \n\005votes\030\001 \003(\0132\n.vega.VoteR\005vo" + + "tes2\355\006\n\016CoreApiService\022[\n\014ListAccounts\022$" + + ".vega.coreapi.v1.ListAccountsRequest\032%.v" + + "ega.coreapi.v1.ListAccountsResponse\022U\n\nL" + + "istAssets\022\".vega.coreapi.v1.ListAssetsRe" + + "quest\032#.vega.coreapi.v1.ListAssetsRespon" + + "se\022v\n\025ListNetworkParameters\022-.vega.corea" + + "pi.v1.ListNetworkParametersRequest\032..veg" + + "a.coreapi.v1.ListNetworkParametersRespon" + + "se\022X\n\013ListParties\022#.vega.coreapi.v1.List" + + "PartiesRequest\032$.vega.coreapi.v1.ListPar" + + "tiesResponse\022a\n\016ListValidators\022&.vega.co" + + "reapi.v1.ListValidatorsRequest\032\'.vega.co" + + "reapi.v1.ListValidatorsResponse\022X\n\013ListM" + + "arkets\022#.vega.coreapi.v1.ListMarketsRequ" + + "est\032$.vega.coreapi.v1.ListMarketsRespons" + + "e\022^\n\rListProposals\022%.vega.coreapi.v1.Lis" + + "tProposalsRequest\032&.vega.coreapi.v1.List" + + "ProposalsResponse\022d\n\017ListMarketsData\022\'.v" + + "ega.coreapi.v1.ListMarketsDataRequest\032(." + + "vega.coreapi.v1.ListMarketsDataResponse\022" + + "R\n\tListVotes\022!.vega.coreapi.v1.ListVotes" + + "Request\032\".vega.coreapi.v1.ListVotesRespo" + + "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" + + "code.vegaprotocol.io/vega/proto/coreapi/" + + "v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.vegaprotocol.vega.Assets.getDescriptor(), + io.vegaprotocol.vega.Governance.getDescriptor(), + io.vegaprotocol.vega.Markets.getDescriptor(), + io.vegaprotocol.vega.Vega.getDescriptor(), + io.vegaprotocol.vega.events.v1.Events.getDescriptor(), + }); + internal_static_vega_coreapi_v1_Account_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_vega_coreapi_v1_Account_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_Account_descriptor, + new java.lang.String[] { "Party", "Market", "Balance", "Asset", "Type", }); + internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_vega_coreapi_v1_ListAccountsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListAccountsRequest_descriptor, + new java.lang.String[] { "Party", "Market", }); + internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_vega_coreapi_v1_ListAccountsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListAccountsResponse_descriptor, + new java.lang.String[] { "Accounts", }); + internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_vega_coreapi_v1_ListAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { "Asset", }); + internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_vega_coreapi_v1_ListAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { "Assets", }); + internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_vega_coreapi_v1_ListNetworkParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListNetworkParametersRequest_descriptor, + new java.lang.String[] { "NetworkParameterKey", }); + internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_vega_coreapi_v1_ListNetworkParametersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListNetworkParametersResponse_descriptor, + new java.lang.String[] { "NetworkParameters", }); + internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_vega_coreapi_v1_ListPartiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListPartiesRequest_descriptor, + new java.lang.String[] { }); + internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_vega_coreapi_v1_ListPartiesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListPartiesResponse_descriptor, + new java.lang.String[] { "Parties", }); + internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_vega_coreapi_v1_ListValidatorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListValidatorsRequest_descriptor, + new java.lang.String[] { }); + internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_vega_coreapi_v1_ListValidatorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListValidatorsResponse_descriptor, + new java.lang.String[] { "Validators", }); + internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_vega_coreapi_v1_ListMarketsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListMarketsRequest_descriptor, + new java.lang.String[] { "Market", }); + internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_vega_coreapi_v1_ListMarketsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListMarketsResponse_descriptor, + new java.lang.String[] { "Markets", }); + internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_vega_coreapi_v1_ListProposalsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListProposalsRequest_descriptor, + new java.lang.String[] { "Proposal", "Proposer", }); + internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_vega_coreapi_v1_ListProposalsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListProposalsResponse_descriptor, + new java.lang.String[] { "Proposals", }); + internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_vega_coreapi_v1_ListMarketsDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListMarketsDataRequest_descriptor, + new java.lang.String[] { "Market", }); + internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_vega_coreapi_v1_ListMarketsDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListMarketsDataResponse_descriptor, + new java.lang.String[] { "MarketsData", }); + internal_static_vega_coreapi_v1_ListVotesRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_vega_coreapi_v1_ListVotesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListVotesRequest_descriptor, + new java.lang.String[] { "Proposal", "Party", }); + internal_static_vega_coreapi_v1_ListVotesResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_vega_coreapi_v1_ListVotesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListVotesResponse_descriptor, + new java.lang.String[] { "Votes", }); + io.vegaprotocol.vega.Assets.getDescriptor(); + io.vegaprotocol.vega.Governance.getDescriptor(); + io.vegaprotocol.vega.Markets.getDescriptor(); + io.vegaprotocol.vega.Vega.getDescriptor(); + io.vegaprotocol.vega.events.v1.Events.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java index bc753010..adb056a3 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java @@ -268,12 +268,12 @@ public enum BusEventType BUS_EVENT_TYPE_DELEGATION_BALANCE(29), /** *
-     * Event indicating that an delegation balance of a party to a node for next epoch has changed
+     * Event indicating the validator score for the given epoch
      * 
* - * BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE = 30; + * BUS_EVENT_TYPE_VALIDATOR_SCORE = 30; */ - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE(30), + BUS_EVENT_TYPE_VALIDATOR_SCORE(30), /** *
      * Event indicating the start or end of an epoch
@@ -295,9 +295,25 @@ public enum BusEventType
      * Event indicating a new staking event have been processed by the network
      * 
* - * BUS_EVENT_TYPE_STAKING_EVENT = 33; + * BUS_EVENT_TYPE_STAKE_LINKING = 33; */ - BUS_EVENT_TYPE_STAKING_EVENT(33), + BUS_EVENT_TYPE_STAKE_LINKING(33), + /** + *
+     * Event indicating the payout of a reward has been initiated
+     * 
+ * + * BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34; + */ + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT(34), + /** + *
+     * Event indicating a new checkpoint was created
+     * 
+ * + * BUS_EVENT_TYPE_CHECKPOINT = 35; + */ + BUS_EVENT_TYPE_CHECKPOINT(35), /** *
      * Event indicating a market related event, for example when a market opens
@@ -559,12 +575,12 @@ public enum BusEventType
     public static final int BUS_EVENT_TYPE_DELEGATION_BALANCE_VALUE = 29;
     /**
      * 
-     * Event indicating that an delegation balance of a party to a node for next epoch has changed
+     * Event indicating the validator score for the given epoch
      * 
* - * BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE = 30; + * BUS_EVENT_TYPE_VALIDATOR_SCORE = 30; */ - public static final int BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE_VALUE = 30; + public static final int BUS_EVENT_TYPE_VALIDATOR_SCORE_VALUE = 30; /** *
      * Event indicating the start or end of an epoch
@@ -586,9 +602,25 @@ public enum BusEventType
      * Event indicating a new staking event have been processed by the network
      * 
* - * BUS_EVENT_TYPE_STAKING_EVENT = 33; + * BUS_EVENT_TYPE_STAKE_LINKING = 33; + */ + public static final int BUS_EVENT_TYPE_STAKE_LINKING_VALUE = 33; + /** + *
+     * Event indicating the payout of a reward has been initiated
+     * 
+ * + * BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34; + */ + public static final int BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT_VALUE = 34; + /** + *
+     * Event indicating a new checkpoint was created
+     * 
+ * + * BUS_EVENT_TYPE_CHECKPOINT = 35; */ - public static final int BUS_EVENT_TYPE_STAKING_EVENT_VALUE = 33; + public static final int BUS_EVENT_TYPE_CHECKPOINT_VALUE = 35; /** *
      * Event indicating a market related event, for example when a market opens
@@ -661,10 +693,12 @@ public static BusEventType forNumber(int value) {
         case 27: return BUS_EVENT_TYPE_ORACLE_SPEC;
         case 28: return BUS_EVENT_TYPE_ORACLE_DATA;
         case 29: return BUS_EVENT_TYPE_DELEGATION_BALANCE;
-        case 30: return BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE;
+        case 30: return BUS_EVENT_TYPE_VALIDATOR_SCORE;
         case 31: return BUS_EVENT_TYPE_EPOCH_UPDATE;
         case 32: return BUS_EVENT_TYPE_VALIDATOR_UPDATE;
-        case 33: return BUS_EVENT_TYPE_STAKING_EVENT;
+        case 33: return BUS_EVENT_TYPE_STAKE_LINKING;
+        case 34: return BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT;
+        case 35: return BUS_EVENT_TYPE_CHECKPOINT;
         case 101: return BUS_EVENT_TYPE_MARKET;
         case 201: return BUS_EVENT_TYPE_TX_ERROR;
         default: return null;
@@ -723,8 +757,8 @@ private BusEventType(int value) {
     // @@protoc_insertion_point(enum_scope:vega.events.v1.BusEventType)
   }
 
-  public interface StakingEventOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:vega.events.v1.StakingEvent)
+  public interface StakeLinkingOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:vega.events.v1.StakeLinking)
       com.google.protobuf.MessageOrBuilder {
 
     /**
@@ -752,7 +786,7 @@ public interface StakingEventOrBuilder extends
      * The type of event
      * 
* - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); @@ -761,10 +795,10 @@ public interface StakingEventOrBuilder extends * The type of event *
* - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The type. */ - io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type getType(); + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type getType(); /** *
@@ -815,36 +849,87 @@ public interface StakingEventOrBuilder extends
      */
     com.google.protobuf.ByteString
         getAmountBytes();
+
+    /**
+     * 
+     * The status of the event
+     * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * The status of the event
+     * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The status. + */ + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status getStatus(); + + /** + *
+     * The time at which the vega network finalized the state of the event
+     * 
+ * + * int64 finalized_at = 7 [json_name = "finalizedAt"]; + * @return The finalizedAt. + */ + long getFinalizedAt(); + + /** + *
+     * The hash of the transaction from which the events happen
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The txHash. + */ + java.lang.String getTxHash(); + /** + *
+     * The hash of the transaction from which the events happen
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The bytes for txHash. + */ + com.google.protobuf.ByteString + getTxHashBytes(); } /** *
-   * StakingEvent - an event notifying of stake being deposited or removed for a given party
+   * StakeLinking - an event notifying of stake being deposited or removed for a given party
    * These events are emitted for every Staking deposit or removed accepted by the network
    * 
* - * Protobuf type {@code vega.events.v1.StakingEvent} + * Protobuf type {@code vega.events.v1.StakeLinking} */ - public static final class StakingEvent extends + public static final class StakeLinking extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:vega.events.v1.StakingEvent) - StakingEventOrBuilder { + // @@protoc_insertion_point(message_implements:vega.events.v1.StakeLinking) + StakeLinkingOrBuilder { private static final long serialVersionUID = 0L; - // Use StakingEvent.newBuilder() to construct. - private StakingEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use StakeLinking.newBuilder() to construct. + private StakeLinking(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StakingEvent() { + private StakeLinking() { id_ = ""; type_ = 0; party_ = ""; amount_ = ""; + status_ = 0; + txHash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new StakingEvent(); + return new StakeLinking(); } @java.lang.Override @@ -852,7 +937,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private StakingEvent( + private StakeLinking( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -899,6 +984,23 @@ private StakingEvent( amount_ = s; break; } + case 48: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 56: { + + finalizedAt_ = input.readInt64(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + txHash_ = s; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -920,19 +1022,19 @@ private StakingEvent( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakingEvent_descriptor; + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakeLinking_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakingEvent_fieldAccessorTable + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakeLinking_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.events.v1.Events.StakingEvent.class, io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder.class); + io.vegaprotocol.vega.events.v1.Events.StakeLinking.class, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder.class); } /** - * Protobuf enum {@code vega.events.v1.StakingEvent.Type} + * Protobuf enum {@code vega.events.v1.StakeLinking.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { @@ -949,17 +1051,17 @@ public enum Type * Indicate of a stake deposit instruction *
* - * TYPE_DEPOSIT = 1; + * TYPE_LINK = 1; */ - TYPE_DEPOSIT(1), + TYPE_LINK(1), /** *
        * Indicate of a stake remove instruction
        * 
* - * TYPE_REMOVE = 2; + * TYPE_UNLINK = 2; */ - TYPE_REMOVE(2), + TYPE_UNLINK(2), UNRECOGNIZED(-1), ; @@ -976,17 +1078,17 @@ public enum Type * Indicate of a stake deposit instruction * * - * TYPE_DEPOSIT = 1; + * TYPE_LINK = 1; */ - public static final int TYPE_DEPOSIT_VALUE = 1; + public static final int TYPE_LINK_VALUE = 1; /** *
        * Indicate of a stake remove instruction
        * 
* - * TYPE_REMOVE = 2; + * TYPE_UNLINK = 2; */ - public static final int TYPE_REMOVE_VALUE = 2; + public static final int TYPE_UNLINK_VALUE = 2; public final int getNumber() { @@ -1014,8 +1116,8 @@ public static Type valueOf(int value) { public static Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; - case 1: return TYPE_DEPOSIT; - case 2: return TYPE_REMOVE; + case 1: return TYPE_LINK; + case 2: return TYPE_UNLINK; default: return null; } } @@ -1046,7 +1148,7 @@ public Type findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDescriptor().getEnumTypes().get(0); + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); @@ -1069,7 +1171,165 @@ private Type(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:vega.events.v1.StakingEvent.Type) + // @@protoc_insertion_point(enum_scope:vega.events.v1.StakeLinking.Type) + } + + /** + * Protobuf enum {@code vega.events.v1.StakeLinking.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value
+       * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+       * Indicate an event waiting for confirmation from the vega network
+       * 
+ * + * STATUS_PENDING = 1; + */ + STATUS_PENDING(1), + /** + *
+       * Indicate of an event accepted by the vega network
+       * 
+ * + * STATUS_ACCEPTED = 2; + */ + STATUS_ACCEPTED(2), + /** + *
+       * Indaicate of an event rejected by the vega network
+       * 
+ * + * STATUS_REJECTED = 3; + */ + STATUS_REJECTED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value
+       * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+       * Indicate an event waiting for confirmation from the vega network
+       * 
+ * + * STATUS_PENDING = 1; + */ + public static final int STATUS_PENDING_VALUE = 1; + /** + *
+       * Indicate of an event accepted by the vega network
+       * 
+ * + * STATUS_ACCEPTED = 2; + */ + public static final int STATUS_ACCEPTED_VALUE = 2; + /** + *
+       * Indaicate of an event rejected by the vega network
+       * 
+ * + * STATUS_REJECTED = 3; + */ + public static final int STATUS_REJECTED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return STATUS_PENDING; + case 2: return STATUS_ACCEPTED; + case 3: return STATUS_REJECTED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDescriptor().getEnumTypes().get(1); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:vega.events.v1.StakeLinking.Status) } public static final int ID_FIELD_NUMBER = 1; @@ -1125,7 +1385,7 @@ public java.lang.String getId() { * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -1136,13 +1396,13 @@ public java.lang.String getId() { * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The type. */ - @java.lang.Override public io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type getType() { + @java.lang.Override public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type getType() { @SuppressWarnings("deprecation") - io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type result = io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.UNRECOGNIZED : result; + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type result = io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.valueOf(type_); + return result == null ? io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.UNRECOGNIZED : result; } public static final int TS_FIELD_NUMBER = 3; @@ -1252,6 +1512,94 @@ public java.lang.String getAmount() { } } + public static final int STATUS_FIELD_NUMBER = 6; + private int status_; + /** + *
+     * The status of the event
+     * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * The status of the event
+     * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status result = io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.UNRECOGNIZED : result; + } + + public static final int FINALIZED_AT_FIELD_NUMBER = 7; + private long finalizedAt_; + /** + *
+     * The time at which the vega network finalized the state of the event
+     * 
+ * + * int64 finalized_at = 7 [json_name = "finalizedAt"]; + * @return The finalizedAt. + */ + @java.lang.Override + public long getFinalizedAt() { + return finalizedAt_; + } + + public static final int TX_HASH_FIELD_NUMBER = 8; + private volatile java.lang.Object txHash_; + /** + *
+     * The hash of the transaction from which the events happen
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The txHash. + */ + @java.lang.Override + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; + } + } + /** + *
+     * The hash of the transaction from which the events happen
+     * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The bytes for txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1269,7 +1617,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (type_ != io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (ts_ != 0L) { @@ -1281,6 +1629,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getAmountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, amount_); } + if (status_ != io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(6, status_); + } + if (finalizedAt_ != 0L) { + output.writeInt64(7, finalizedAt_); + } + if (!getTxHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, txHash_); + } unknownFields.writeTo(output); } @@ -1293,7 +1650,7 @@ public int getSerializedSize() { if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (type_ != io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } @@ -1307,6 +1664,17 @@ public int getSerializedSize() { if (!getAmountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, amount_); } + if (status_ != io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, status_); + } + if (finalizedAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, finalizedAt_); + } + if (!getTxHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, txHash_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1317,10 +1685,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.vegaprotocol.vega.events.v1.Events.StakingEvent)) { + if (!(obj instanceof io.vegaprotocol.vega.events.v1.Events.StakeLinking)) { return super.equals(obj); } - io.vegaprotocol.vega.events.v1.Events.StakingEvent other = (io.vegaprotocol.vega.events.v1.Events.StakingEvent) obj; + io.vegaprotocol.vega.events.v1.Events.StakeLinking other = (io.vegaprotocol.vega.events.v1.Events.StakeLinking) obj; if (!getId() .equals(other.getId())) return false; @@ -1331,6 +1699,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getParty())) return false; if (!getAmount() .equals(other.getAmount())) return false; + if (status_ != other.status_) return false; + if (getFinalizedAt() + != other.getFinalizedAt()) return false; + if (!getTxHash() + .equals(other.getTxHash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1353,74 +1726,81 @@ public int hashCode() { hash = (53 * hash) + getParty().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + FINALIZED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFinalizedAt()); + hash = (37 * hash) + TX_HASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom(byte[] data) + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseDelimitedFrom(java.io.InputStream input) + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseDelimitedFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1433,7 +1813,7 @@ public static io.vegaprotocol.vega.events.v1.Events.StakingEvent parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.vegaprotocol.vega.events.v1.Events.StakingEvent prototype) { + public static Builder newBuilder(io.vegaprotocol.vega.events.v1.Events.StakeLinking prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1450,30 +1830,30 @@ protected Builder newBuilderForType( } /** *
-     * StakingEvent - an event notifying of stake being deposited or removed for a given party
+     * StakeLinking - an event notifying of stake being deposited or removed for a given party
      * These events are emitted for every Staking deposit or removed accepted by the network
      * 
* - * Protobuf type {@code vega.events.v1.StakingEvent} + * Protobuf type {@code vega.events.v1.StakeLinking} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:vega.events.v1.StakingEvent) - io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder { + // @@protoc_insertion_point(builder_implements:vega.events.v1.StakeLinking) + io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakingEvent_descriptor; + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakeLinking_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakingEvent_fieldAccessorTable + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakeLinking_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.vegaprotocol.vega.events.v1.Events.StakingEvent.class, io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder.class); + io.vegaprotocol.vega.events.v1.Events.StakeLinking.class, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder.class); } - // Construct using io.vegaprotocol.vega.events.v1.Events.StakingEvent.newBuilder() + // Construct using io.vegaprotocol.vega.events.v1.Events.StakeLinking.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1501,23 +1881,29 @@ public Builder clear() { amount_ = ""; + status_ = 0; + + finalizedAt_ = 0L; + + txHash_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakingEvent_descriptor; + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_StakeLinking_descriptor; } @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent getDefaultInstanceForType() { - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getDefaultInstanceForType() { + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent build() { - io.vegaprotocol.vega.events.v1.Events.StakingEvent result = buildPartial(); + public io.vegaprotocol.vega.events.v1.Events.StakeLinking build() { + io.vegaprotocol.vega.events.v1.Events.StakeLinking result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1525,13 +1911,16 @@ public io.vegaprotocol.vega.events.v1.Events.StakingEvent build() { } @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent buildPartial() { - io.vegaprotocol.vega.events.v1.Events.StakingEvent result = new io.vegaprotocol.vega.events.v1.Events.StakingEvent(this); + public io.vegaprotocol.vega.events.v1.Events.StakeLinking buildPartial() { + io.vegaprotocol.vega.events.v1.Events.StakeLinking result = new io.vegaprotocol.vega.events.v1.Events.StakeLinking(this); result.id_ = id_; result.type_ = type_; result.ts_ = ts_; result.party_ = party_; result.amount_ = amount_; + result.status_ = status_; + result.finalizedAt_ = finalizedAt_; + result.txHash_ = txHash_; onBuilt(); return result; } @@ -1570,16 +1959,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.vegaprotocol.vega.events.v1.Events.StakingEvent) { - return mergeFrom((io.vegaprotocol.vega.events.v1.Events.StakingEvent)other); + if (other instanceof io.vegaprotocol.vega.events.v1.Events.StakeLinking) { + return mergeFrom((io.vegaprotocol.vega.events.v1.Events.StakeLinking)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.StakingEvent other) { - if (other == io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance()) return this; + public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.StakeLinking other) { + if (other == io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1598,6 +1987,16 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.StakingEvent othe amount_ = other.amount_; onChanged(); } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getFinalizedAt() != 0L) { + setFinalizedAt(other.getFinalizedAt()); + } + if (!other.getTxHash().isEmpty()) { + txHash_ = other.txHash_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1613,11 +2012,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.vegaprotocol.vega.events.v1.Events.StakingEvent parsedMessage = null; + io.vegaprotocol.vega.events.v1.Events.StakeLinking parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.vegaprotocol.vega.events.v1.Events.StakingEvent) e.getUnfinishedMessage(); + parsedMessage = (io.vegaprotocol.vega.events.v1.Events.StakeLinking) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1729,7 +2128,7 @@ public Builder setIdBytes( * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -1740,7 +2139,7 @@ public Builder setIdBytes( * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1755,25 +2154,25 @@ public Builder setTypeValue(int value) { * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return The type. */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type getType() { + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type getType() { @SuppressWarnings("deprecation") - io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type result = io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.valueOf(type_); - return result == null ? io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type.UNRECOGNIZED : result; + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type result = io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.valueOf(type_); + return result == null ? io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type.UNRECOGNIZED : result; } /** *
        * The type of event
        * 
* - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type value) { + public Builder setType(io.vegaprotocol.vega.events.v1.Events.StakeLinking.Type value) { if (value == null) { throw new NullPointerException(); } @@ -1787,7 +2186,7 @@ public Builder setType(io.vegaprotocol.vega.events.v1.Events.StakingEvent.Type v * The type of event * * - * .vega.events.v1.StakingEvent.Type type = 2 [json_name = "type"]; + * .vega.events.v1.StakeLinking.Type type = 2 [json_name = "type"]; * @return This builder for chaining. */ public Builder clearType() { @@ -1876,158 +2275,3425 @@ public java.lang.String getParty() { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - party_ = b; + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The party to whom the event is directed at.
+       * 
+ * + * string party = 4 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + *
+       * The party to whom the event is directed at.
+       * 
+ * + * string party = 4 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + *
+       * The party to whom the event is directed at.
+       * 
+ * + * string party = 4 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + *
+       * The amount of stake deposited or removed
+       * 
+ * + * string amount = 5 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The amount of stake deposited or removed
+       * 
+ * + * string amount = 5 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The amount of stake deposited or removed
+       * 
+ * + * string amount = 5 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + amount_ = value; + onChanged(); + return this; + } + /** + *
+       * The amount of stake deposited or removed
+       * 
+ * + * string amount = 5 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
+       * The amount of stake deposited or removed
+       * 
+ * + * string amount = 5 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+       * The status of the event
+       * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+       * The status of the event
+       * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * The status of the event
+       * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status getStatus() { + @SuppressWarnings("deprecation") + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status result = io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.valueOf(status_); + return result == null ? io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status.UNRECOGNIZED : result; + } + /** + *
+       * The status of the event
+       * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(io.vegaprotocol.vega.events.v1.Events.StakeLinking.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The status of the event
+       * 
+ * + * .vega.events.v1.StakeLinking.Status status = 6 [json_name = "status"]; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private long finalizedAt_ ; + /** + *
+       * The time at which the vega network finalized the state of the event
+       * 
+ * + * int64 finalized_at = 7 [json_name = "finalizedAt"]; + * @return The finalizedAt. + */ + @java.lang.Override + public long getFinalizedAt() { + return finalizedAt_; + } + /** + *
+       * The time at which the vega network finalized the state of the event
+       * 
+ * + * int64 finalized_at = 7 [json_name = "finalizedAt"]; + * @param value The finalizedAt to set. + * @return This builder for chaining. + */ + public Builder setFinalizedAt(long value) { + + finalizedAt_ = value; + onChanged(); + return this; + } + /** + *
+       * The time at which the vega network finalized the state of the event
+       * 
+ * + * int64 finalized_at = 7 [json_name = "finalizedAt"]; + * @return This builder for chaining. + */ + public Builder clearFinalizedAt() { + + finalizedAt_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object txHash_ = ""; + /** + *
+       * The hash of the transaction from which the events happen
+       * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The txHash. + */ + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The hash of the transaction from which the events happen
+       * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return The bytes for txHash. + */ + public com.google.protobuf.ByteString + getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The hash of the transaction from which the events happen
+       * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @param value The txHash to set. + * @return This builder for chaining. + */ + public Builder setTxHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + *
+       * The hash of the transaction from which the events happen
+       * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @return This builder for chaining. + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + /** + *
+       * The hash of the transaction from which the events happen
+       * 
+ * + * string tx_hash = 8 [json_name = "txHash"]; + * @param value The bytes for txHash to set. + * @return This builder for chaining. + */ + public Builder setTxHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHash_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.events.v1.StakeLinking) + } + + // @@protoc_insertion_point(class_scope:vega.events.v1.StakeLinking) + private static final io.vegaprotocol.vega.events.v1.Events.StakeLinking DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.events.v1.Events.StakeLinking(); + } + + public static io.vegaprotocol.vega.events.v1.Events.StakeLinking getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StakeLinking parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StakeLinking(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CheckpointEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.events.v1.CheckpointEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * string hash = 1 [json_name = "hash"]; + * @return The hash. + */ + java.lang.String getHash(); + /** + * string hash = 1 [json_name = "hash"]; + * @return The bytes for hash. + */ + com.google.protobuf.ByteString + getHashBytes(); + + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The blockHash. + */ + java.lang.String getBlockHash(); + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The bytes for blockHash. + */ + com.google.protobuf.ByteString + getBlockHashBytes(); + + /** + * uint64 block_height = 3 [json_name = "blockHeight"]; + * @return The blockHeight. + */ + long getBlockHeight(); + } + /** + * Protobuf type {@code vega.events.v1.CheckpointEvent} + */ + public static final class CheckpointEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.events.v1.CheckpointEvent) + CheckpointEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckpointEvent.newBuilder() to construct. + private CheckpointEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CheckpointEvent() { + hash_ = ""; + blockHash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CheckpointEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CheckpointEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + hash_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + blockHash_ = s; + break; + } + case 24: { + + blockHeight_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_CheckpointEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_CheckpointEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.class, io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private volatile java.lang.Object hash_; + /** + * string hash = 1 [json_name = "hash"]; + * @return The hash. + */ + @java.lang.Override + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } + } + /** + * string hash = 1 [json_name = "hash"]; + * @return The bytes for hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_HASH_FIELD_NUMBER = 2; + private volatile java.lang.Object blockHash_; + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The blockHash. + */ + @java.lang.Override + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } + } + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The bytes for blockHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_HEIGHT_FIELD_NUMBER = 3; + private long blockHeight_; + /** + * uint64 block_height = 3 [json_name = "blockHeight"]; + * @return The blockHeight. + */ + @java.lang.Override + public long getBlockHeight() { + return blockHeight_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); + } + if (!getBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_); + } + if (blockHeight_ != 0L) { + output.writeUInt64(3, blockHeight_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); + } + if (!getBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_); + } + if (blockHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, blockHeight_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.events.v1.Events.CheckpointEvent)) { + return super.equals(obj); + } + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent other = (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) obj; + + if (!getHash() + .equals(other.getHash())) return false; + if (!getBlockHash() + .equals(other.getBlockHash())) return false; + if (getBlockHeight() + != other.getBlockHeight()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + BLOCK_HASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.events.v1.Events.CheckpointEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.events.v1.CheckpointEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.events.v1.CheckpointEvent) + io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_CheckpointEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_CheckpointEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.class, io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder.class); + } + + // Construct using io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = ""; + + blockHash_ = ""; + + blockHeight_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_CheckpointEvent_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getDefaultInstanceForType() { + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent build() { + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent buildPartial() { + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent result = new io.vegaprotocol.vega.events.v1.Events.CheckpointEvent(this); + result.hash_ = hash_; + result.blockHash_ = blockHash_; + result.blockHeight_ = blockHeight_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) { + return mergeFrom((io.vegaprotocol.vega.events.v1.Events.CheckpointEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.CheckpointEvent other) { + if (other == io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance()) return this; + if (!other.getHash().isEmpty()) { + hash_ = other.hash_; + onChanged(); + } + if (!other.getBlockHash().isEmpty()) { + blockHash_ = other.blockHash_; + onChanged(); + } + if (other.getBlockHeight() != 0L) { + setBlockHeight(other.getBlockHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object hash_ = ""; + /** + * string hash = 1 [json_name = "hash"]; + * @return The hash. + */ + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string hash = 1 [json_name = "hash"]; + * @return The bytes for hash. + */ + public com.google.protobuf.ByteString + getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string hash = 1 [json_name = "hash"]; + * @param value The hash to set. + * @return This builder for chaining. + */ + public Builder setHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * string hash = 1 [json_name = "hash"]; + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + /** + * string hash = 1 [json_name = "hash"]; + * @param value The bytes for hash to set. + * @return This builder for chaining. + */ + public Builder setHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hash_ = value; + onChanged(); + return this; + } + + private java.lang.Object blockHash_ = ""; + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The blockHash. + */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return The bytes for blockHash. + */ + public com.google.protobuf.ByteString + getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @param value The blockHash to set. + * @return This builder for chaining. + */ + public Builder setBlockHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @return This builder for chaining. + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + /** + * string block_hash = 2 [json_name = "blockHash"]; + * @param value The bytes for blockHash to set. + * @return This builder for chaining. + */ + public Builder setBlockHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blockHash_ = value; + onChanged(); + return this; + } + + private long blockHeight_ ; + /** + * uint64 block_height = 3 [json_name = "blockHeight"]; + * @return The blockHeight. + */ + @java.lang.Override + public long getBlockHeight() { + return blockHeight_; + } + /** + * uint64 block_height = 3 [json_name = "blockHeight"]; + * @param value The blockHeight to set. + * @return This builder for chaining. + */ + public Builder setBlockHeight(long value) { + + blockHeight_ = value; + onChanged(); + return this; + } + /** + * uint64 block_height = 3 [json_name = "blockHeight"]; + * @return This builder for chaining. + */ + public Builder clearBlockHeight() { + + blockHeight_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.events.v1.CheckpointEvent) + } + + // @@protoc_insertion_point(class_scope:vega.events.v1.CheckpointEvent) + private static final io.vegaprotocol.vega.events.v1.Events.CheckpointEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.events.v1.Events.CheckpointEvent(); + } + + public static io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckpointEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckpointEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RewardPayoutEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.events.v1.RewardPayoutEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + java.lang.String getEpochSeq(); + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + com.google.protobuf.ByteString + getEpochSeqBytes(); + + /** + * string asset = 3 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + * string asset = 3 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The percentOfTotalReward. + */ + java.lang.String getPercentOfTotalReward(); + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The bytes for percentOfTotalReward. + */ + com.google.protobuf.ByteString + getPercentOfTotalRewardBytes(); + + /** + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + long getTimestamp(); + } + /** + * Protobuf type {@code vega.events.v1.RewardPayoutEvent} + */ + public static final class RewardPayoutEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.events.v1.RewardPayoutEvent) + RewardPayoutEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use RewardPayoutEvent.newBuilder() to construct. + private RewardPayoutEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RewardPayoutEvent() { + party_ = ""; + epochSeq_ = ""; + asset_ = ""; + amount_ = ""; + percentOfTotalReward_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RewardPayoutEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RewardPayoutEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + epochSeq_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + percentOfTotalReward_ = s; + break; + } + case 48: { + + timestamp_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_RewardPayoutEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_RewardPayoutEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.class, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_SEQ_FIELD_NUMBER = 2; + private volatile java.lang.Object epochSeq_; + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + @java.lang.Override + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + epochSeq_ = s; + return s; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + epochSeq_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_FIELD_NUMBER = 3; + private volatile java.lang.Object asset_; + /** + * string asset = 3 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + /** + * string asset = 3 [json_name = "asset"]; + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 4; + private volatile java.lang.Object amount_; + /** + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERCENT_OF_TOTAL_REWARD_FIELD_NUMBER = 5; + private volatile java.lang.Object percentOfTotalReward_; + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The percentOfTotalReward. + */ + @java.lang.Override + public java.lang.String getPercentOfTotalReward() { + java.lang.Object ref = percentOfTotalReward_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + percentOfTotalReward_ = s; + return s; + } + } + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The bytes for percentOfTotalReward. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPercentOfTotalRewardBytes() { + java.lang.Object ref = percentOfTotalReward_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + percentOfTotalReward_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_FIELD_NUMBER = 6; + private long timestamp_; + /** + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getEpochSeqBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, epochSeq_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, asset_); + } + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, amount_); + } + if (!getPercentOfTotalRewardBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, percentOfTotalReward_); + } + if (timestamp_ != 0L) { + output.writeInt64(6, timestamp_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getEpochSeqBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, epochSeq_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, asset_); + } + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, amount_); + } + if (!getPercentOfTotalRewardBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, percentOfTotalReward_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, timestamp_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent)) { + return super.equals(obj); + } + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent other = (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getEpochSeq() + .equals(other.getEpochSeq())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getPercentOfTotalReward() + .equals(other.getPercentOfTotalReward())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER; + hash = (53 * hash) + getEpochSeq().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + PERCENT_OF_TOTAL_REWARD_FIELD_NUMBER; + hash = (53 * hash) + getPercentOfTotalReward().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.events.v1.RewardPayoutEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.events.v1.RewardPayoutEvent) + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_RewardPayoutEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_RewardPayoutEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.class, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder.class); + } + + // Construct using io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + epochSeq_ = ""; + + asset_ = ""; + + amount_ = ""; + + percentOfTotalReward_ = ""; + + timestamp_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_RewardPayoutEvent_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getDefaultInstanceForType() { + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent build() { + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent buildPartial() { + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent result = new io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent(this); + result.party_ = party_; + result.epochSeq_ = epochSeq_; + result.asset_ = asset_; + result.amount_ = amount_; + result.percentOfTotalReward_ = percentOfTotalReward_; + result.timestamp_ = timestamp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) { + return mergeFrom((io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent other) { + if (other == io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getEpochSeq().isEmpty()) { + epochSeq_ = other.epochSeq_; + onChanged(); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); + } + if (!other.getPercentOfTotalReward().isEmpty()) { + percentOfTotalReward_ = other.percentOfTotalReward_; + onChanged(); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object epochSeq_ = ""; + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + epochSeq_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + public com.google.protobuf.ByteString + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + epochSeq_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @param value The epochSeq to set. + * @return This builder for chaining. + */ + public Builder setEpochSeq( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + epochSeq_ = value; + onChanged(); + return this; + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return This builder for chaining. + */ + public Builder clearEpochSeq() { + + epochSeq_ = getDefaultInstance().getEpochSeq(); + onChanged(); + return this; + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @param value The bytes for epochSeq to set. + * @return This builder for chaining. + */ + public Builder setEpochSeqBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + epochSeq_ = value; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + * string asset = 3 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string asset = 3 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string asset = 3 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + * string asset = 3 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + * string asset = 3 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + * string amount = 4 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string amount = 4 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + amount_ = value; + onChanged(); + return this; + } + /** + * string amount = 4 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + * string amount = 4 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; + onChanged(); + return this; + } + + private java.lang.Object percentOfTotalReward_ = ""; + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The percentOfTotalReward. + */ + public java.lang.String getPercentOfTotalReward() { + java.lang.Object ref = percentOfTotalReward_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + percentOfTotalReward_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return The bytes for percentOfTotalReward. + */ + public com.google.protobuf.ByteString + getPercentOfTotalRewardBytes() { + java.lang.Object ref = percentOfTotalReward_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + percentOfTotalReward_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @param value The percentOfTotalReward to set. + * @return This builder for chaining. + */ + public Builder setPercentOfTotalReward( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + percentOfTotalReward_ = value; + onChanged(); + return this; + } + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @return This builder for chaining. + */ + public Builder clearPercentOfTotalReward() { + + percentOfTotalReward_ = getDefaultInstance().getPercentOfTotalReward(); + onChanged(); + return this; + } + /** + * string percent_of_total_reward = 5 [json_name = "percentOfTotalReward"]; + * @param value The bytes for percentOfTotalReward to set. + * @return This builder for chaining. + */ + public Builder setPercentOfTotalRewardBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + percentOfTotalReward_ = value; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + * int64 timestamp = 6 [json_name = "timestamp"]; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * int64 timestamp = 6 [json_name = "timestamp"]; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.events.v1.RewardPayoutEvent) + } + + // @@protoc_insertion_point(class_scope:vega.events.v1.RewardPayoutEvent) + private static final io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent(); + } + + public static io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RewardPayoutEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RewardPayoutEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ValidatorScoreEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.events.v1.ValidatorScoreEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The nodeId. + */ + java.lang.String getNodeId(); + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The bytes for nodeId. + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + java.lang.String getEpochSeq(); + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + com.google.protobuf.ByteString + getEpochSeqBytes(); + + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The validatorScore. + */ + java.lang.String getValidatorScore(); + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The bytes for validatorScore. + */ + com.google.protobuf.ByteString + getValidatorScoreBytes(); + + /** + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The normalisedScore. + */ + java.lang.String getNormalisedScore(); + /** + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. + */ + com.google.protobuf.ByteString + getNormalisedScoreBytes(); + } + /** + *
+   *ValidatorScoreEvent is the score a validator gets for a given epoch
+   * 
+ * + * Protobuf type {@code vega.events.v1.ValidatorScoreEvent} + */ + public static final class ValidatorScoreEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.events.v1.ValidatorScoreEvent) + ValidatorScoreEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidatorScoreEvent.newBuilder() to construct. + private ValidatorScoreEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ValidatorScoreEvent() { + nodeId_ = ""; + epochSeq_ = ""; + validatorScore_ = ""; + normalisedScore_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ValidatorScoreEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValidatorScoreEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + epochSeq_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + validatorScore_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + normalisedScore_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_ValidatorScoreEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_ValidatorScoreEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.class, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The nodeId. + */ + @java.lang.Override + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The bytes for nodeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_SEQ_FIELD_NUMBER = 2; + private volatile java.lang.Object epochSeq_; + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + @java.lang.Override + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + epochSeq_ = s; + return s; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + epochSeq_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATOR_SCORE_FIELD_NUMBER = 3; + private volatile java.lang.Object validatorScore_; + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The validatorScore. + */ + @java.lang.Override + public java.lang.String getValidatorScore() { + java.lang.Object ref = validatorScore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validatorScore_ = s; + return s; + } + } + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The bytes for validatorScore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValidatorScoreBytes() { + java.lang.Object ref = validatorScore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NORMALISED_SCORE_FIELD_NUMBER = 4; + private volatile java.lang.Object normalisedScore_; + /** + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The normalisedScore. + */ + @java.lang.Override + public java.lang.String getNormalisedScore() { + java.lang.Object ref = normalisedScore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalisedScore_ = s; + return s; + } + } + /** + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNormalisedScoreBytes() { + java.lang.Object ref = normalisedScore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + normalisedScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (!getEpochSeqBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, epochSeq_); + } + if (!getValidatorScoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorScore_); + } + if (!getNormalisedScoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, normalisedScore_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (!getEpochSeqBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, epochSeq_); + } + if (!getValidatorScoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorScore_); + } + if (!getNormalisedScoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, normalisedScore_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent)) { + return super.equals(obj); + } + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent other = (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getEpochSeq() + .equals(other.getEpochSeq())) return false; + if (!getValidatorScore() + .equals(other.getValidatorScore())) return false; + if (!getNormalisedScore() + .equals(other.getNormalisedScore())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER; + hash = (53 * hash) + getEpochSeq().hashCode(); + hash = (37 * hash) + VALIDATOR_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getValidatorScore().hashCode(); + hash = (37 * hash) + NORMALISED_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getNormalisedScore().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     *ValidatorScoreEvent is the score a validator gets for a given epoch
+     * 
+ * + * Protobuf type {@code vega.events.v1.ValidatorScoreEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.events.v1.ValidatorScoreEvent) + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_ValidatorScoreEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_ValidatorScoreEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.class, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder.class); + } + + // Construct using io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = ""; + + epochSeq_ = ""; + + validatorScore_ = ""; + + normalisedScore_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.events.v1.Events.internal_static_vega_events_v1_ValidatorScoreEvent_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getDefaultInstanceForType() { + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent build() { + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent buildPartial() { + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent result = new io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent(this); + result.nodeId_ = nodeId_; + result.epochSeq_ = epochSeq_; + result.validatorScore_ = validatorScore_; + result.normalisedScore_ = normalisedScore_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) { + return mergeFrom((io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent other) { + if (other == io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getEpochSeq().isEmpty()) { + epochSeq_ = other.epochSeq_; + onChanged(); + } + if (!other.getValidatorScore().isEmpty()) { + validatorScore_ = other.validatorScore_; + onChanged(); + } + if (!other.getNormalisedScore().isEmpty()) { + normalisedScore_ = other.normalisedScore_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The nodeId. + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return The bytes for nodeId. + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node_id = 1 [json_name = "nodeId"]; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string node_id = 1 [json_name = "nodeId"]; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string node_id = 1 [json_name = "nodeId"]; + * @param value The bytes for nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object epochSeq_ = ""; + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + public java.lang.String getEpochSeq() { + java.lang.Object ref = epochSeq_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + epochSeq_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + public com.google.protobuf.ByteString + getEpochSeqBytes() { + java.lang.Object ref = epochSeq_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + epochSeq_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @param value The epochSeq to set. + * @return This builder for chaining. + */ + public Builder setEpochSeq( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + epochSeq_ = value; + onChanged(); + return this; + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @return This builder for chaining. + */ + public Builder clearEpochSeq() { + + epochSeq_ = getDefaultInstance().getEpochSeq(); + onChanged(); + return this; + } + /** + * string epoch_seq = 2 [json_name = "epochSeq"]; + * @param value The bytes for epochSeq to set. + * @return This builder for chaining. + */ + public Builder setEpochSeqBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + epochSeq_ = value; + onChanged(); + return this; + } + + private java.lang.Object validatorScore_ = ""; + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The validatorScore. + */ + public java.lang.String getValidatorScore() { + java.lang.Object ref = validatorScore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validatorScore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string validator_score = 3 [json_name = "validatorScore"]; + * @return The bytes for validatorScore. + */ + public com.google.protobuf.ByteString + getValidatorScoreBytes() { + java.lang.Object ref = validatorScore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorScore_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * The party to whom the event is directed at.
-       * 
- * - * string party = 4 [json_name = "party"]; - * @param value The party to set. + * string validator_score = 3 [json_name = "validatorScore"]; + * @param value The validatorScore to set. * @return This builder for chaining. */ - public Builder setParty( + public Builder setValidatorScore( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - party_ = value; + validatorScore_ = value; onChanged(); return this; } /** - *
-       * The party to whom the event is directed at.
-       * 
- * - * string party = 4 [json_name = "party"]; + * string validator_score = 3 [json_name = "validatorScore"]; * @return This builder for chaining. */ - public Builder clearParty() { + public Builder clearValidatorScore() { - party_ = getDefaultInstance().getParty(); + validatorScore_ = getDefaultInstance().getValidatorScore(); onChanged(); return this; } /** - *
-       * The party to whom the event is directed at.
-       * 
- * - * string party = 4 [json_name = "party"]; - * @param value The bytes for party to set. + * string validator_score = 3 [json_name = "validatorScore"]; + * @param value The bytes for validatorScore to set. * @return This builder for chaining. */ - public Builder setPartyBytes( + public Builder setValidatorScoreBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - party_ = value; + validatorScore_ = value; onChanged(); return this; } - private java.lang.Object amount_ = ""; + private java.lang.Object normalisedScore_ = ""; /** - *
-       * The amount of stake deposited or removed
-       * 
- * - * string amount = 5 [json_name = "amount"]; - * @return The amount. + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The normalisedScore. */ - public java.lang.String getAmount() { - java.lang.Object ref = amount_; + public java.lang.String getNormalisedScore() { + java.lang.Object ref = normalisedScore_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - amount_ = s; + normalisedScore_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-       * The amount of stake deposited or removed
-       * 
- * - * string amount = 5 [json_name = "amount"]; - * @return The bytes for amount. + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. */ public com.google.protobuf.ByteString - getAmountBytes() { - java.lang.Object ref = amount_; + getNormalisedScoreBytes() { + java.lang.Object ref = normalisedScore_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - amount_ = b; + normalisedScore_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * The amount of stake deposited or removed
-       * 
- * - * string amount = 5 [json_name = "amount"]; - * @param value The amount to set. + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @param value The normalisedScore to set. * @return This builder for chaining. */ - public Builder setAmount( + public Builder setNormalisedScore( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - amount_ = value; + normalisedScore_ = value; onChanged(); return this; } /** - *
-       * The amount of stake deposited or removed
-       * 
- * - * string amount = 5 [json_name = "amount"]; + * string normalised_score = 4 [json_name = "normalisedScore"]; * @return This builder for chaining. */ - public Builder clearAmount() { + public Builder clearNormalisedScore() { - amount_ = getDefaultInstance().getAmount(); + normalisedScore_ = getDefaultInstance().getNormalisedScore(); onChanged(); return this; } /** - *
-       * The amount of stake deposited or removed
-       * 
- * - * string amount = 5 [json_name = "amount"]; - * @param value The bytes for amount to set. + * string normalised_score = 4 [json_name = "normalisedScore"]; + * @param value The bytes for normalisedScore to set. * @return This builder for chaining. */ - public Builder setAmountBytes( + public Builder setNormalisedScoreBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - amount_ = value; + normalisedScore_ = value; onChanged(); return this; } @@ -2044,41 +5710,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:vega.events.v1.StakingEvent) + // @@protoc_insertion_point(builder_scope:vega.events.v1.ValidatorScoreEvent) } - // @@protoc_insertion_point(class_scope:vega.events.v1.StakingEvent) - private static final io.vegaprotocol.vega.events.v1.Events.StakingEvent DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:vega.events.v1.ValidatorScoreEvent) + private static final io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.vegaprotocol.vega.events.v1.Events.StakingEvent(); + DEFAULT_INSTANCE = new io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent(); } - public static io.vegaprotocol.vega.events.v1.Events.StakingEvent getDefaultInstance() { + public static io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public StakingEvent parsePartialFrom( + public ValidatorScoreEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StakingEvent(input, extensionRegistry); + return new ValidatorScoreEvent(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent getDefaultInstanceForType() { + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2117,6 +5783,18 @@ public interface DelegationBalanceEventOrBuilder extends * @return The amount. */ long getAmount(); + + /** + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + java.lang.String getEpochSeq(); + /** + * string epoch_seq = 4 [json_name = "epochSeq"]; + * @return The bytes for epochSeq. + */ + com.google.protobuf.ByteString + getEpochSeqBytes(); } /** *
@@ -2137,6 +5815,7 @@ private DelegationBalanceEvent(com.google.protobuf.GeneratedMessageV3.Builder
     private DelegationBalanceEvent() {
       party_ = "";
       nodeId_ = "";
+      epochSeq_ = "";
     }
 
     @java.lang.Override
@@ -2186,6 +5865,12 @@ private DelegationBalanceEvent(
               amount_ = input.readUInt64();
               break;
             }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              epochSeq_ = s;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -2305,6 +5990,44 @@ public long getAmount() {
       return amount_;
     }
 
+    public static final int EPOCH_SEQ_FIELD_NUMBER = 4;
+    private volatile java.lang.Object epochSeq_;
+    /**
+     * string epoch_seq = 4 [json_name = "epochSeq"];
+     * @return The epochSeq.
+     */
+    @java.lang.Override
+    public java.lang.String getEpochSeq() {
+      java.lang.Object ref = epochSeq_;
+      if (ref instanceof java.lang.String) {
+        return (java.lang.String) ref;
+      } else {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        epochSeq_ = s;
+        return s;
+      }
+    }
+    /**
+     * string epoch_seq = 4 [json_name = "epochSeq"];
+     * @return The bytes for epochSeq.
+     */
+    @java.lang.Override
+    public com.google.protobuf.ByteString
+        getEpochSeqBytes() {
+      java.lang.Object ref = epochSeq_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        epochSeq_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -2328,6 +6051,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (amount_ != 0L) {
         output.writeUInt64(3, amount_);
       }
+      if (!getEpochSeqBytes().isEmpty()) {
+        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, epochSeq_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -2347,6 +6073,9 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeUInt64Size(3, amount_);
       }
+      if (!getEpochSeqBytes().isEmpty()) {
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, epochSeq_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -2368,6 +6097,8 @@ public boolean equals(final java.lang.Object obj) {
           .equals(other.getNodeId())) return false;
       if (getAmount()
           != other.getAmount()) return false;
+      if (!getEpochSeq()
+          .equals(other.getEpochSeq())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -2386,6 +6117,8 @@ public int hashCode() {
       hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
           getAmount());
+      hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER;
+      hash = (53 * hash) + getEpochSeq().hashCode();
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -2529,6 +6262,8 @@ public Builder clear() {
 
         amount_ = 0L;
 
+        epochSeq_ = "";
+
         return this;
       }
 
@@ -2558,6 +6293,7 @@ public io.vegaprotocol.vega.events.v1.Events.DelegationBalanceEvent buildPartial
         result.party_ = party_;
         result.nodeId_ = nodeId_;
         result.amount_ = amount_;
+        result.epochSeq_ = epochSeq_;
         onBuilt();
         return result;
       }
@@ -2617,6 +6353,10 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.DelegationBalance
         if (other.getAmount() != 0L) {
           setAmount(other.getAmount());
         }
+        if (!other.getEpochSeq().isEmpty()) {
+          epochSeq_ = other.epochSeq_;
+          onChanged();
+        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -2828,6 +6568,82 @@ public Builder clearAmount() {
         onChanged();
         return this;
       }
+
+      private java.lang.Object epochSeq_ = "";
+      /**
+       * string epoch_seq = 4 [json_name = "epochSeq"];
+       * @return The epochSeq.
+       */
+      public java.lang.String getEpochSeq() {
+        java.lang.Object ref = epochSeq_;
+        if (!(ref instanceof java.lang.String)) {
+          com.google.protobuf.ByteString bs =
+              (com.google.protobuf.ByteString) ref;
+          java.lang.String s = bs.toStringUtf8();
+          epochSeq_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * string epoch_seq = 4 [json_name = "epochSeq"];
+       * @return The bytes for epochSeq.
+       */
+      public com.google.protobuf.ByteString
+          getEpochSeqBytes() {
+        java.lang.Object ref = epochSeq_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b =
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          epochSeq_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * string epoch_seq = 4 [json_name = "epochSeq"];
+       * @param value The epochSeq to set.
+       * @return This builder for chaining.
+       */
+      public Builder setEpochSeq(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+
+        epochSeq_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * string epoch_seq = 4 [json_name = "epochSeq"];
+       * @return This builder for chaining.
+       */
+      public Builder clearEpochSeq() {
+
+        epochSeq_ = getDefaultInstance().getEpochSeq();
+        onChanged();
+        return this;
+      }
+      /**
+       * string epoch_seq = 4 [json_name = "epochSeq"];
+       * @param value The bytes for epochSeq to set.
+       * @return This builder for chaining.
+       */
+      public Builder setEpochSeqBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+
+        epochSeq_ = value;
+        onChanged();
+        return this;
+      }
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2920,6 +6736,18 @@ public interface PendingDelegationBalanceEventOrBuilder extends
      * @return The undelegationAmount.
      */
     long getUndelegationAmount();
+
+    /**
+     * string epoch_seq = 5 [json_name = "epochSeq"];
+     * @return The epochSeq.
+     */
+    java.lang.String getEpochSeq();
+    /**
+     * string epoch_seq = 5 [json_name = "epochSeq"];
+     * @return The bytes for epochSeq.
+     */
+    com.google.protobuf.ByteString
+        getEpochSeqBytes();
   }
   /**
    * 
@@ -2940,6 +6768,7 @@ private PendingDelegationBalanceEvent(com.google.protobuf.GeneratedMessageV3.Bui
     private PendingDelegationBalanceEvent() {
       party_ = "";
       nodeId_ = "";
+      epochSeq_ = "";
     }
 
     @java.lang.Override
@@ -2994,6 +6823,12 @@ private PendingDelegationBalanceEvent(
               undelegationAmount_ = input.readUInt64();
               break;
             }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              epochSeq_ = s;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -3124,6 +6959,44 @@ public long getUndelegationAmount() {
       return undelegationAmount_;
     }
 
+    public static final int EPOCH_SEQ_FIELD_NUMBER = 5;
+    private volatile java.lang.Object epochSeq_;
+    /**
+     * string epoch_seq = 5 [json_name = "epochSeq"];
+     * @return The epochSeq.
+     */
+    @java.lang.Override
+    public java.lang.String getEpochSeq() {
+      java.lang.Object ref = epochSeq_;
+      if (ref instanceof java.lang.String) {
+        return (java.lang.String) ref;
+      } else {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        epochSeq_ = s;
+        return s;
+      }
+    }
+    /**
+     * string epoch_seq = 5 [json_name = "epochSeq"];
+     * @return The bytes for epochSeq.
+     */
+    @java.lang.Override
+    public com.google.protobuf.ByteString
+        getEpochSeqBytes() {
+      java.lang.Object ref = epochSeq_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        epochSeq_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -3150,6 +7023,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (undelegationAmount_ != 0L) {
         output.writeUInt64(4, undelegationAmount_);
       }
+      if (!getEpochSeqBytes().isEmpty()) {
+        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, epochSeq_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -3173,6 +7049,9 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeUInt64Size(4, undelegationAmount_);
       }
+      if (!getEpochSeqBytes().isEmpty()) {
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, epochSeq_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -3196,6 +7075,8 @@ public boolean equals(final java.lang.Object obj) {
           != other.getDelegationAmount()) return false;
       if (getUndelegationAmount()
           != other.getUndelegationAmount()) return false;
+      if (!getEpochSeq()
+          .equals(other.getEpochSeq())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -3217,6 +7098,8 @@ public int hashCode() {
       hash = (37 * hash) + UNDELEGATION_AMOUNT_FIELD_NUMBER;
       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
           getUndelegationAmount());
+      hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER;
+      hash = (53 * hash) + getEpochSeq().hashCode();
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -3362,6 +7245,8 @@ public Builder clear() {
 
         undelegationAmount_ = 0L;
 
+        epochSeq_ = "";
+
         return this;
       }
 
@@ -3392,6 +7277,7 @@ public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent build
         result.nodeId_ = nodeId_;
         result.delegationAmount_ = delegationAmount_;
         result.undelegationAmount_ = undelegationAmount_;
+        result.epochSeq_ = epochSeq_;
         onBuilt();
         return result;
       }
@@ -3454,6 +7340,10 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.PendingDelegation
         if (other.getUndelegationAmount() != 0L) {
           setUndelegationAmount(other.getUndelegationAmount());
         }
+        if (!other.getEpochSeq().isEmpty()) {
+          epochSeq_ = other.epochSeq_;
+          onChanged();
+        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -3676,23 +7566,99 @@ public long getUndelegationAmount() {
         return undelegationAmount_;
       }
       /**
-       * uint64 undelegation_amount = 4 [json_name = "undelegationAmount"];
-       * @param value The undelegationAmount to set.
+       * uint64 undelegation_amount = 4 [json_name = "undelegationAmount"];
+       * @param value The undelegationAmount to set.
+       * @return This builder for chaining.
+       */
+      public Builder setUndelegationAmount(long value) {
+
+        undelegationAmount_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * uint64 undelegation_amount = 4 [json_name = "undelegationAmount"];
+       * @return This builder for chaining.
+       */
+      public Builder clearUndelegationAmount() {
+
+        undelegationAmount_ = 0L;
+        onChanged();
+        return this;
+      }
+
+      private java.lang.Object epochSeq_ = "";
+      /**
+       * string epoch_seq = 5 [json_name = "epochSeq"];
+       * @return The epochSeq.
+       */
+      public java.lang.String getEpochSeq() {
+        java.lang.Object ref = epochSeq_;
+        if (!(ref instanceof java.lang.String)) {
+          com.google.protobuf.ByteString bs =
+              (com.google.protobuf.ByteString) ref;
+          java.lang.String s = bs.toStringUtf8();
+          epochSeq_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * string epoch_seq = 5 [json_name = "epochSeq"];
+       * @return The bytes for epochSeq.
+       */
+      public com.google.protobuf.ByteString
+          getEpochSeqBytes() {
+        java.lang.Object ref = epochSeq_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b =
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          epochSeq_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * string epoch_seq = 5 [json_name = "epochSeq"];
+       * @param value The epochSeq to set.
+       * @return This builder for chaining.
+       */
+      public Builder setEpochSeq(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+
+        epochSeq_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * string epoch_seq = 5 [json_name = "epochSeq"];
        * @return This builder for chaining.
        */
-      public Builder setUndelegationAmount(long value) {
+      public Builder clearEpochSeq() {
 
-        undelegationAmount_ = value;
+        epochSeq_ = getDefaultInstance().getEpochSeq();
         onChanged();
         return this;
       }
       /**
-       * uint64 undelegation_amount = 4 [json_name = "undelegationAmount"];
+       * string epoch_seq = 5 [json_name = "epochSeq"];
+       * @param value The bytes for epochSeq to set.
        * @return This builder for chaining.
        */
-      public Builder clearUndelegationAmount() {
+      public Builder setEpochSeqBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
 
-        undelegationAmount_ = 0L;
+        epochSeq_ = value;
         onChanged();
         return this;
       }
@@ -15976,30 +19942,50 @@ public interface ValidatorUpdateOrBuilder extends
 
     /**
      * 
-     * Public key of validator node
+     * Vega public key of validator node
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The vegaPubKey. + */ + java.lang.String getVegaPubKey(); + /** + *
+     * Vega public key of validator node
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The bytes for vegaPubKey. + */ + com.google.protobuf.ByteString + getVegaPubKeyBytes(); + + /** + *
+     * Ethereum public key of validator node
      * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. */ - java.lang.String getPubKey(); + java.lang.String getEthereumAddress(); /** *
-     * Public key of validator node
+     * Ethereum public key of validator node
      * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The bytes for pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. */ com.google.protobuf.ByteString - getPubKeyBytes(); + getEthereumAddressBytes(); /** *
      * Public key of Tendermint
      * 
* - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The tmPubKey. */ java.lang.String getTmPubKey(); @@ -16008,7 +19994,7 @@ public interface ValidatorUpdateOrBuilder extends * Public key of Tendermint *
* - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The bytes for tmPubKey. */ com.google.protobuf.ByteString @@ -16019,7 +20005,7 @@ public interface ValidatorUpdateOrBuilder extends * URL with more info on the node *
* - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The infoUrl. */ java.lang.String getInfoUrl(); @@ -16028,7 +20014,7 @@ public interface ValidatorUpdateOrBuilder extends * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The bytes for infoUrl. */ com.google.protobuf.ByteString @@ -16039,7 +20025,7 @@ public interface ValidatorUpdateOrBuilder extends * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The country. */ java.lang.String getCountry(); @@ -16048,7 +20034,7 @@ public interface ValidatorUpdateOrBuilder extends * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The bytes for country. */ com.google.protobuf.ByteString @@ -16071,7 +20057,8 @@ private ValidatorUpdate(com.google.protobuf.GeneratedMessageV3.Builder builde super(builder); } private ValidatorUpdate() { - pubKey_ = ""; + vegaPubKey_ = ""; + ethereumAddress_ = ""; tmPubKey_ = ""; infoUrl_ = ""; country_ = ""; @@ -16110,24 +20097,30 @@ private ValidatorUpdate( case 10: { java.lang.String s = input.readStringRequireUtf8(); - pubKey_ = s; + vegaPubKey_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); - tmPubKey_ = s; + ethereumAddress_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); - infoUrl_ = s; + tmPubKey_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); + infoUrl_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + country_ = s; break; } @@ -16163,60 +20156,106 @@ private ValidatorUpdate( io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.class, io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.Builder.class); } - public static final int PUB_KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object pubKey_; + public static final int VEGA_PUB_KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object vegaPubKey_; + /** + *
+     * Vega public key of validator node
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The vegaPubKey. + */ + @java.lang.Override + public java.lang.String getVegaPubKey() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPubKey_ = s; + return s; + } + } + /** + *
+     * Vega public key of validator node
+     * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The bytes for vegaPubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVegaPubKeyBytes() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETHEREUM_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object ethereumAddress_; /** *
-     * Public key of validator node
+     * Ethereum public key of validator node
      * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. */ @java.lang.Override - public java.lang.String getPubKey() { - java.lang.Object ref = pubKey_; + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - pubKey_ = s; + ethereumAddress_ = s; return s; } } /** *
-     * Public key of validator node
+     * Ethereum public key of validator node
      * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The bytes for pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. */ @java.lang.Override public com.google.protobuf.ByteString - getPubKeyBytes() { - java.lang.Object ref = pubKey_; + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - pubKey_ = b; + ethereumAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int TM_PUB_KEY_FIELD_NUMBER = 2; + public static final int TM_PUB_KEY_FIELD_NUMBER = 3; private volatile java.lang.Object tmPubKey_; /** *
      * Public key of Tendermint
      * 
* - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The tmPubKey. */ @java.lang.Override @@ -16237,7 +20276,7 @@ public java.lang.String getTmPubKey() { * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The bytes for tmPubKey. */ @java.lang.Override @@ -16255,14 +20294,14 @@ public java.lang.String getTmPubKey() { } } - public static final int INFO_URL_FIELD_NUMBER = 3; + public static final int INFO_URL_FIELD_NUMBER = 4; private volatile java.lang.Object infoUrl_; /** *
      * URL with more info on the node
      * 
* - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The infoUrl. */ @java.lang.Override @@ -16283,7 +20322,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The bytes for infoUrl. */ @java.lang.Override @@ -16301,14 +20340,14 @@ public java.lang.String getInfoUrl() { } } - public static final int COUNTRY_FIELD_NUMBER = 4; + public static final int COUNTRY_FIELD_NUMBER = 5; private volatile java.lang.Object country_; /** *
      * Country code (ISO 3166-1 alpha-2) for the location of the node
      * 
* - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The country. */ @java.lang.Override @@ -16329,7 +20368,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The bytes for country. */ @java.lang.Override @@ -16361,17 +20400,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPubKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubKey_); + if (!getVegaPubKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vegaPubKey_); + } + if (!getEthereumAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ethereumAddress_); } if (!getTmPubKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tmPubKey_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tmPubKey_); } if (!getInfoUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, infoUrl_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, infoUrl_); } if (!getCountryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, country_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, country_); } unknownFields.writeTo(output); } @@ -16382,17 +20424,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPubKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubKey_); + if (!getVegaPubKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vegaPubKey_); + } + if (!getEthereumAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ethereumAddress_); } if (!getTmPubKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tmPubKey_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tmPubKey_); } if (!getInfoUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, infoUrl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, infoUrl_); } if (!getCountryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, country_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, country_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -16409,8 +20454,10 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate other = (io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate) obj; - if (!getPubKey() - .equals(other.getPubKey())) return false; + if (!getVegaPubKey() + .equals(other.getVegaPubKey())) return false; + if (!getEthereumAddress() + .equals(other.getEthereumAddress())) return false; if (!getTmPubKey() .equals(other.getTmPubKey())) return false; if (!getInfoUrl() @@ -16428,8 +20475,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + VEGA_PUB_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVegaPubKey().hashCode(); + hash = (37 * hash) + ETHEREUM_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEthereumAddress().hashCode(); hash = (37 * hash) + TM_PUB_KEY_FIELD_NUMBER; hash = (53 * hash) + getTmPubKey().hashCode(); hash = (37 * hash) + INFO_URL_FIELD_NUMBER; @@ -16573,7 +20622,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - pubKey_ = ""; + vegaPubKey_ = ""; + + ethereumAddress_ = ""; tmPubKey_ = ""; @@ -16607,7 +20658,8 @@ public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate build() { @java.lang.Override public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate buildPartial() { io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate result = new io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate(this); - result.pubKey_ = pubKey_; + result.vegaPubKey_ = vegaPubKey_; + result.ethereumAddress_ = ethereumAddress_; result.tmPubKey_ = tmPubKey_; result.infoUrl_ = infoUrl_; result.country_ = country_; @@ -16659,8 +20711,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate other) { if (other == io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.getDefaultInstance()) return this; - if (!other.getPubKey().isEmpty()) { - pubKey_ = other.pubKey_; + if (!other.getVegaPubKey().isEmpty()) { + vegaPubKey_ = other.vegaPubKey_; + onChanged(); + } + if (!other.getEthereumAddress().isEmpty()) { + ethereumAddress_ = other.ethereumAddress_; onChanged(); } if (!other.getTmPubKey().isEmpty()) { @@ -16704,22 +20760,118 @@ public Builder mergeFrom( return this; } - private java.lang.Object pubKey_ = ""; + private java.lang.Object vegaPubKey_ = ""; + /** + *
+       * Vega public key of validator node
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The vegaPubKey. + */ + public java.lang.String getVegaPubKey() { + java.lang.Object ref = vegaPubKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vegaPubKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Vega public key of validator node
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return The bytes for vegaPubKey. + */ + public com.google.protobuf.ByteString + getVegaPubKeyBytes() { + java.lang.Object ref = vegaPubKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vegaPubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Vega public key of validator node
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @param value The vegaPubKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPubKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vegaPubKey_ = value; + onChanged(); + return this; + } + /** + *
+       * Vega public key of validator node
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @return This builder for chaining. + */ + public Builder clearVegaPubKey() { + + vegaPubKey_ = getDefaultInstance().getVegaPubKey(); + onChanged(); + return this; + } + /** + *
+       * Vega public key of validator node
+       * 
+ * + * string vega_pub_key = 1 [json_name = "vegaPubKey"]; + * @param value The bytes for vegaPubKey to set. + * @return This builder for chaining. + */ + public Builder setVegaPubKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vegaPubKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object ethereumAddress_ = ""; /** *
-       * Public key of validator node
+       * Ethereum public key of validator node
        * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The ethereumAddress. */ - public java.lang.String getPubKey() { - java.lang.Object ref = pubKey_; + public java.lang.String getEthereumAddress() { + java.lang.Object ref = ethereumAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - pubKey_ = s; + ethereumAddress_ = s; return s; } else { return (java.lang.String) ref; @@ -16727,20 +20879,20 @@ public java.lang.String getPubKey() { } /** *
-       * Public key of validator node
+       * Ethereum public key of validator node
        * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @return The bytes for pubKey. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @return The bytes for ethereumAddress. */ public com.google.protobuf.ByteString - getPubKeyBytes() { - java.lang.Object ref = pubKey_; + getEthereumAddressBytes() { + java.lang.Object ref = ethereumAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - pubKey_ = b; + ethereumAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -16748,54 +20900,54 @@ public java.lang.String getPubKey() { } /** *
-       * Public key of validator node
+       * Ethereum public key of validator node
        * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @param value The pubKey to set. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @param value The ethereumAddress to set. * @return This builder for chaining. */ - public Builder setPubKey( + public Builder setEthereumAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pubKey_ = value; + ethereumAddress_ = value; onChanged(); return this; } /** *
-       * Public key of validator node
+       * Ethereum public key of validator node
        * 
* - * string pub_key = 1 [json_name = "pubKey"]; + * string ethereum_address = 2 [json_name = "ethereumAddress"]; * @return This builder for chaining. */ - public Builder clearPubKey() { + public Builder clearEthereumAddress() { - pubKey_ = getDefaultInstance().getPubKey(); + ethereumAddress_ = getDefaultInstance().getEthereumAddress(); onChanged(); return this; } /** *
-       * Public key of validator node
+       * Ethereum public key of validator node
        * 
* - * string pub_key = 1 [json_name = "pubKey"]; - * @param value The bytes for pubKey to set. + * string ethereum_address = 2 [json_name = "ethereumAddress"]; + * @param value The bytes for ethereumAddress to set. * @return This builder for chaining. */ - public Builder setPubKeyBytes( + public Builder setEthereumAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pubKey_ = value; + ethereumAddress_ = value; onChanged(); return this; } @@ -16806,7 +20958,7 @@ public Builder setPubKeyBytes( * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The tmPubKey. */ public java.lang.String getTmPubKey() { @@ -16826,7 +20978,7 @@ public java.lang.String getTmPubKey() { * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return The bytes for tmPubKey. */ public com.google.protobuf.ByteString @@ -16847,7 +20999,7 @@ public java.lang.String getTmPubKey() { * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @param value The tmPubKey to set. * @return This builder for chaining. */ @@ -16866,7 +21018,7 @@ public Builder setTmPubKey( * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @return This builder for chaining. */ public Builder clearTmPubKey() { @@ -16880,7 +21032,7 @@ public Builder clearTmPubKey() { * Public key of Tendermint * * - * string tm_pub_key = 2 [json_name = "tmPubKey"]; + * string tm_pub_key = 3 [json_name = "tmPubKey"]; * @param value The bytes for tmPubKey to set. * @return This builder for chaining. */ @@ -16902,7 +21054,7 @@ public Builder setTmPubKeyBytes( * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The infoUrl. */ public java.lang.String getInfoUrl() { @@ -16922,7 +21074,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return The bytes for infoUrl. */ public com.google.protobuf.ByteString @@ -16943,7 +21095,7 @@ public java.lang.String getInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @param value The infoUrl to set. * @return This builder for chaining. */ @@ -16962,7 +21114,7 @@ public Builder setInfoUrl( * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @return This builder for chaining. */ public Builder clearInfoUrl() { @@ -16976,7 +21128,7 @@ public Builder clearInfoUrl() { * URL with more info on the node * * - * string info_url = 3 [json_name = "infoUrl"]; + * string info_url = 4 [json_name = "infoUrl"]; * @param value The bytes for infoUrl to set. * @return This builder for chaining. */ @@ -16998,7 +21150,7 @@ public Builder setInfoUrlBytes( * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The country. */ public java.lang.String getCountry() { @@ -17018,7 +21170,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return The bytes for country. */ public com.google.protobuf.ByteString @@ -17039,7 +21191,7 @@ public java.lang.String getCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @param value The country to set. * @return This builder for chaining. */ @@ -17058,7 +21210,7 @@ public Builder setCountry( * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @return This builder for chaining. */ public Builder clearCountry() { @@ -17072,7 +21224,7 @@ public Builder clearCountry() { * Country code (ISO 3166-1 alpha-2) for the location of the node * * - * string country = 4 [json_name = "country"]; + * string country = 5 [json_name = "country"]; * @param value The bytes for country to set. * @return This builder for chaining. */ @@ -17961,30 +22113,30 @@ public interface BusEventOrBuilder extends /** *
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return Whether the pendingDelegationBalance field is set. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return Whether the validatorScore field is set. */ - boolean hasPendingDelegationBalance(); + boolean hasValidatorScore(); /** *
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return The pendingDelegationBalance. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return The validatorScore. */ - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent getPendingDelegationBalance(); + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getValidatorScore(); /** *
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder getPendingDelegationBalanceOrBuilder(); + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder getValidatorScoreOrBuilder(); /** *
@@ -18045,27 +22197,81 @@ public interface BusEventOrBuilder extends
      * Staking event
      * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return Whether the stakingEvent field is set. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return Whether the stakeLinking field is set. */ - boolean hasStakingEvent(); + boolean hasStakeLinking(); /** *
      * Staking event
      * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return The stakingEvent. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return The stakeLinking. */ - io.vegaprotocol.vega.events.v1.Events.StakingEvent getStakingEvent(); + io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinking(); /** *
      * Staking event
      * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + */ + io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingOrBuilder(); + + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return Whether the rewardPayout field is set. + */ + boolean hasRewardPayout(); + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return The rewardPayout. + */ + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getRewardPayout(); + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; */ - io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder getStakingEventOrBuilder(); + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder getRewardPayoutOrBuilder(); + + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return Whether the checkpoint field is set. + */ + boolean hasCheckpoint(); + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return The checkpoint. + */ + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getCheckpoint(); + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder getCheckpointOrBuilder(); /** *
@@ -18586,14 +22792,14 @@ private BusEvent(
               break;
             }
             case 1042: {
-              io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder subBuilder = null;
+              io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder subBuilder = null;
               if (eventCase_ == 130) {
-                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_).toBuilder();
+                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_).toBuilder();
               }
               event_ =
-                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.parser(), extensionRegistry);
+                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_);
+                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_);
                 event_ = subBuilder.buildPartial();
               }
               eventCase_ = 130;
@@ -18628,19 +22834,47 @@ private BusEvent(
               break;
             }
             case 1066: {
-              io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder subBuilder = null;
+              io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder subBuilder = null;
               if (eventCase_ == 133) {
-                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_).toBuilder();
+                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_).toBuilder();
               }
               event_ =
-                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.StakingEvent.parser(), extensionRegistry);
+                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.StakeLinking.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_);
+                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_);
                 event_ = subBuilder.buildPartial();
               }
               eventCase_ = 133;
               break;
             }
+            case 1074: {
+              io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder subBuilder = null;
+              if (eventCase_ == 134) {
+                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_).toBuilder();
+              }
+              event_ =
+                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_);
+                event_ = subBuilder.buildPartial();
+              }
+              eventCase_ = 134;
+              break;
+            }
+            case 1082: {
+              io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder subBuilder = null;
+              if (eventCase_ == 135) {
+                subBuilder = ((io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_).toBuilder();
+              }
+              event_ =
+                  input.readMessage(io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_);
+                event_ = subBuilder.buildPartial();
+              }
+              eventCase_ = 135;
+              break;
+            }
             case 8010: {
               io.vegaprotocol.vega.events.v1.Events.MarketEvent.Builder subBuilder = null;
               if (eventCase_ == 1001) {
@@ -18734,10 +22968,12 @@ public enum EventCase
       ORACLE_SPEC(126),
       ORACLE_DATA(127),
       DELEGATION_BALANCE(129),
-      PENDING_DELEGATION_BALANCE(130),
+      VALIDATOR_SCORE(130),
       EPOCH_EVENT(131),
       VALIDATOR_UPDATE(132),
-      STAKING_EVENT(133),
+      STAKE_LINKING(133),
+      REWARD_PAYOUT(134),
+      CHECKPOINT(135),
       MARKET(1001),
       TX_ERR_EVENT(2001),
       EVENT_NOT_SET(0);
@@ -18785,10 +23021,12 @@ public static EventCase forNumber(int value) {
           case 126: return ORACLE_SPEC;
           case 127: return ORACLE_DATA;
           case 129: return DELEGATION_BALANCE;
-          case 130: return PENDING_DELEGATION_BALANCE;
+          case 130: return VALIDATOR_SCORE;
           case 131: return EPOCH_EVENT;
           case 132: return VALIDATOR_UPDATE;
-          case 133: return STAKING_EVENT;
+          case 133: return STAKE_LINKING;
+          case 134: return REWARD_PAYOUT;
+          case 135: return CHECKPOINT;
           case 1001: return MARKET;
           case 2001: return TX_ERR_EVENT;
           case 0: return EVENT_NOT_SET;
@@ -20129,47 +24367,47 @@ public io.vegaprotocol.vega.events.v1.Events.DelegationBalanceEventOrBuilder get
       return io.vegaprotocol.vega.events.v1.Events.DelegationBalanceEvent.getDefaultInstance();
     }
 
-    public static final int PENDING_DELEGATION_BALANCE_FIELD_NUMBER = 130;
+    public static final int VALIDATOR_SCORE_FIELD_NUMBER = 130;
     /**
      * 
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return Whether the pendingDelegationBalance field is set. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return Whether the validatorScore field is set. */ @java.lang.Override - public boolean hasPendingDelegationBalance() { + public boolean hasValidatorScore() { return eventCase_ == 130; } /** *
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return The pendingDelegationBalance. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return The validatorScore. */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent getPendingDelegationBalance() { + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getValidatorScore() { if (eventCase_ == 130) { - return (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_; } - return io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } /** *
-     * Pending delegation balance events
+     * Validator score calcualted
      * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder getPendingDelegationBalanceOrBuilder() { + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder getValidatorScoreOrBuilder() { if (eventCase_ == 130) { - return (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_; } - return io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } public static final int EPOCH_EVENT_FIELD_NUMBER = 131; @@ -20258,17 +24496,17 @@ public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder getValidat return io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate.getDefaultInstance(); } - public static final int STAKING_EVENT_FIELD_NUMBER = 133; + public static final int STAKE_LINKING_FIELD_NUMBER = 133; /** *
      * Staking event
      * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return Whether the stakingEvent field is set. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return Whether the stakeLinking field is set. */ @java.lang.Override - public boolean hasStakingEvent() { + public boolean hasStakeLinking() { return eventCase_ == 133; } /** @@ -20276,29 +24514,115 @@ public boolean hasStakingEvent() { * Staking event *
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return The stakingEvent. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return The stakeLinking. */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent getStakingEvent() { + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinking() { if (eventCase_ == 133) { - return (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_; } - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } /** *
      * Staking event
      * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder getStakingEventOrBuilder() { + public io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingOrBuilder() { if (eventCase_ == 133) { - return (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_; + } + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); + } + + public static final int REWARD_PAYOUT_FIELD_NUMBER = 134; + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return Whether the rewardPayout field is set. + */ + @java.lang.Override + public boolean hasRewardPayout() { + return eventCase_ == 134; + } + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return The rewardPayout. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getRewardPayout() { + if (eventCase_ == 134) { + return (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + /** + *
+     * Reward payout event
+     * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder getRewardPayoutOrBuilder() { + if (eventCase_ == 134) { + return (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + + public static final int CHECKPOINT_FIELD_NUMBER = 135; + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return Whether the checkpoint field is set. + */ + @java.lang.Override + public boolean hasCheckpoint() { + return eventCase_ == 135; + } + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return The checkpoint. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getCheckpoint() { + if (eventCase_ == 135) { + return (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } + /** + *
+     * Checkpoint was created
+     * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder getCheckpointOrBuilder() { + if (eventCase_ == 135) { + return (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_; } - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); } public static final int MARKET_FIELD_NUMBER = 1001; @@ -20495,7 +24819,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(129, (io.vegaprotocol.vega.events.v1.Events.DelegationBalanceEvent) event_); } if (eventCase_ == 130) { - output.writeMessage(130, (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_); + output.writeMessage(130, (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_); } if (eventCase_ == 131) { output.writeMessage(131, (io.vegaprotocol.vega.events.v1.Events.EpochEvent) event_); @@ -20504,7 +24828,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(132, (io.vegaprotocol.vega.events.v1.Events.ValidatorUpdate) event_); } if (eventCase_ == 133) { - output.writeMessage(133, (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_); + output.writeMessage(133, (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_); + } + if (eventCase_ == 134) { + output.writeMessage(134, (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_); + } + if (eventCase_ == 135) { + output.writeMessage(135, (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_); } if (eventCase_ == 1001) { output.writeMessage(1001, (io.vegaprotocol.vega.events.v1.Events.MarketEvent) event_); @@ -20645,7 +24975,7 @@ public int getSerializedSize() { } if (eventCase_ == 130) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(130, (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_); + .computeMessageSize(130, (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_); } if (eventCase_ == 131) { size += com.google.protobuf.CodedOutputStream @@ -20657,7 +24987,15 @@ public int getSerializedSize() { } if (eventCase_ == 133) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(133, (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_); + .computeMessageSize(133, (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_); + } + if (eventCase_ == 134) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(134, (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_); + } + if (eventCase_ == 135) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(135, (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_); } if (eventCase_ == 1001) { size += com.google.protobuf.CodedOutputStream @@ -20802,8 +25140,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getDelegationBalance())) return false; break; case 130: - if (!getPendingDelegationBalance() - .equals(other.getPendingDelegationBalance())) return false; + if (!getValidatorScore() + .equals(other.getValidatorScore())) return false; break; case 131: if (!getEpochEvent() @@ -20814,8 +25152,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getValidatorUpdate())) return false; break; case 133: - if (!getStakingEvent() - .equals(other.getStakingEvent())) return false; + if (!getStakeLinking() + .equals(other.getStakeLinking())) return false; + break; + case 134: + if (!getRewardPayout() + .equals(other.getRewardPayout())) return false; + break; + case 135: + if (!getCheckpoint() + .equals(other.getCheckpoint())) return false; break; case 1001: if (!getMarket() @@ -20959,8 +25305,8 @@ public int hashCode() { hash = (53 * hash) + getDelegationBalance().hashCode(); break; case 130: - hash = (37 * hash) + PENDING_DELEGATION_BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getPendingDelegationBalance().hashCode(); + hash = (37 * hash) + VALIDATOR_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getValidatorScore().hashCode(); break; case 131: hash = (37 * hash) + EPOCH_EVENT_FIELD_NUMBER; @@ -20971,8 +25317,16 @@ public int hashCode() { hash = (53 * hash) + getValidatorUpdate().hashCode(); break; case 133: - hash = (37 * hash) + STAKING_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getStakingEvent().hashCode(); + hash = (37 * hash) + STAKE_LINKING_FIELD_NUMBER; + hash = (53 * hash) + getStakeLinking().hashCode(); + break; + case 134: + hash = (37 * hash) + REWARD_PAYOUT_FIELD_NUMBER; + hash = (53 * hash) + getRewardPayout().hashCode(); + break; + case 135: + hash = (37 * hash) + CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + getCheckpoint().hashCode(); break; case 1001: hash = (37 * hash) + MARKET_FIELD_NUMBER; @@ -21356,10 +25710,10 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent buildPartial() { } } if (eventCase_ == 130) { - if (pendingDelegationBalanceBuilder_ == null) { + if (validatorScoreBuilder_ == null) { result.event_ = event_; } else { - result.event_ = pendingDelegationBalanceBuilder_.build(); + result.event_ = validatorScoreBuilder_.build(); } } if (eventCase_ == 131) { @@ -21377,10 +25731,24 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent buildPartial() { } } if (eventCase_ == 133) { - if (stakingEventBuilder_ == null) { + if (stakeLinkingBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = stakeLinkingBuilder_.build(); + } + } + if (eventCase_ == 134) { + if (rewardPayoutBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = rewardPayoutBuilder_.build(); + } + } + if (eventCase_ == 135) { + if (checkpointBuilder_ == null) { result.event_ = event_; } else { - result.event_ = stakingEventBuilder_.build(); + result.event_ = checkpointBuilder_.build(); } } if (eventCase_ == 1001) { @@ -21570,8 +25938,8 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.BusEvent other) { mergeDelegationBalance(other.getDelegationBalance()); break; } - case PENDING_DELEGATION_BALANCE: { - mergePendingDelegationBalance(other.getPendingDelegationBalance()); + case VALIDATOR_SCORE: { + mergeValidatorScore(other.getValidatorScore()); break; } case EPOCH_EVENT: { @@ -21582,8 +25950,16 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.BusEvent other) { mergeValidatorUpdate(other.getValidatorUpdate()); break; } - case STAKING_EVENT: { - mergeStakingEvent(other.getStakingEvent()); + case STAKE_LINKING: { + mergeStakeLinking(other.getStakeLinking()); + break; + } + case REWARD_PAYOUT: { + mergeRewardPayout(other.getRewardPayout()); + break; + } + case CHECKPOINT: { + mergeCheckpoint(other.getCheckpoint()); break; } case MARKET: { @@ -26865,91 +31241,91 @@ public io.vegaprotocol.vega.events.v1.Events.DelegationBalanceEventOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder> pendingDelegationBalanceBuilder_; + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder> validatorScoreBuilder_; /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return Whether the pendingDelegationBalance field is set. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return Whether the validatorScore field is set. */ @java.lang.Override - public boolean hasPendingDelegationBalance() { + public boolean hasValidatorScore() { return eventCase_ == 130; } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; - * @return The pendingDelegationBalance. + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; + * @return The validatorScore. */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent getPendingDelegationBalance() { - if (pendingDelegationBalanceBuilder_ == null) { + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent getValidatorScore() { + if (validatorScoreBuilder_ == null) { if (eventCase_ == 130) { - return (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_; } - return io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } else { if (eventCase_ == 130) { - return pendingDelegationBalanceBuilder_.getMessage(); + return validatorScoreBuilder_.getMessage(); } - return io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - public Builder setPendingDelegationBalance(io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent value) { - if (pendingDelegationBalanceBuilder_ == null) { + public Builder setValidatorScore(io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent value) { + if (validatorScoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { - pendingDelegationBalanceBuilder_.setMessage(value); + validatorScoreBuilder_.setMessage(value); } eventCase_ = 130; return this; } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - public Builder setPendingDelegationBalance( - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder builderForValue) { - if (pendingDelegationBalanceBuilder_ == null) { + public Builder setValidatorScore( + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder builderForValue) { + if (validatorScoreBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { - pendingDelegationBalanceBuilder_.setMessage(builderForValue.build()); + validatorScoreBuilder_.setMessage(builderForValue.build()); } eventCase_ = 130; return this; } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - public Builder mergePendingDelegationBalance(io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent value) { - if (pendingDelegationBalanceBuilder_ == null) { + public Builder mergeValidatorScore(io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent value) { + if (validatorScoreBuilder_ == null) { if (eventCase_ == 130 && - event_ != io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance()) { - event_ = io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.newBuilder((io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_) + event_ != io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance()) { + event_ = io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.newBuilder((io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; @@ -26957,22 +31333,22 @@ public Builder mergePendingDelegationBalance(io.vegaprotocol.vega.events.v1.Even onChanged(); } else { if (eventCase_ == 130) { - pendingDelegationBalanceBuilder_.mergeFrom(value); + validatorScoreBuilder_.mergeFrom(value); } - pendingDelegationBalanceBuilder_.setMessage(value); + validatorScoreBuilder_.setMessage(value); } eventCase_ = 130; return this; } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - public Builder clearPendingDelegationBalance() { - if (pendingDelegationBalanceBuilder_ == null) { + public Builder clearValidatorScore() { + if (validatorScoreBuilder_ == null) { if (eventCase_ == 130) { eventCase_ = 0; event_ = null; @@ -26983,62 +31359,62 @@ public Builder clearPendingDelegationBalance() { eventCase_ = 0; event_ = null; } - pendingDelegationBalanceBuilder_.clear(); + validatorScoreBuilder_.clear(); } return this; } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ - public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder getPendingDelegationBalanceBuilder() { - return getPendingDelegationBalanceFieldBuilder().getBuilder(); + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder getValidatorScoreBuilder() { + return getValidatorScoreFieldBuilder().getBuilder(); } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder getPendingDelegationBalanceOrBuilder() { - if ((eventCase_ == 130) && (pendingDelegationBalanceBuilder_ != null)) { - return pendingDelegationBalanceBuilder_.getMessageOrBuilder(); + public io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder getValidatorScoreOrBuilder() { + if ((eventCase_ == 130) && (validatorScoreBuilder_ != null)) { + return validatorScoreBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 130) { - return (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_; } - return io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } } /** *
-       * Pending delegation balance events
+       * Validator score calcualted
        * 
* - * .vega.events.v1.PendingDelegationBalanceEvent pending_delegation_balance = 130 [json_name = "pendingDelegationBalance"]; + * .vega.events.v1.ValidatorScoreEvent validator_score = 130 [json_name = "validatorScore"]; */ private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder> - getPendingDelegationBalanceFieldBuilder() { - if (pendingDelegationBalanceBuilder_ == null) { + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder> + getValidatorScoreFieldBuilder() { + if (validatorScoreBuilder_ == null) { if (!(eventCase_ == 130)) { - event_ = io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.getDefaultInstance(); + event_ = io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.getDefaultInstance(); } - pendingDelegationBalanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent.Builder, io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEventOrBuilder>( - (io.vegaprotocol.vega.events.v1.Events.PendingDelegationBalanceEvent) event_, + validatorScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent.Builder, io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEventOrBuilder>( + (io.vegaprotocol.vega.events.v1.Events.ValidatorScoreEvent) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 130; onChanged();; - return pendingDelegationBalanceBuilder_; + return validatorScoreBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -27396,17 +31772,17 @@ public io.vegaprotocol.vega.events.v1.Events.ValidatorUpdateOrBuilder getValidat } private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.StakingEvent, io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder, io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder> stakingEventBuilder_; + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder> stakeLinkingBuilder_; /** *
        * Staking event
        * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return Whether the stakingEvent field is set. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return Whether the stakeLinking field is set. */ @java.lang.Override - public boolean hasStakingEvent() { + public boolean hasStakeLinking() { return eventCase_ == 133; } /** @@ -27414,21 +31790,21 @@ public boolean hasStakingEvent() { * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; - * @return The stakingEvent. + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; + * @return The stakeLinking. */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEvent getStakingEvent() { - if (stakingEventBuilder_ == null) { + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinking() { + if (stakeLinkingBuilder_ == null) { if (eventCase_ == 133) { - return (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_; } - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } else { if (eventCase_ == 133) { - return stakingEventBuilder_.getMessage(); + return stakeLinkingBuilder_.getMessage(); } - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } } /** @@ -27436,17 +31812,17 @@ public io.vegaprotocol.vega.events.v1.Events.StakingEvent getStakingEvent() { * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ - public Builder setStakingEvent(io.vegaprotocol.vega.events.v1.Events.StakingEvent value) { - if (stakingEventBuilder_ == null) { + public Builder setStakeLinking(io.vegaprotocol.vega.events.v1.Events.StakeLinking value) { + if (stakeLinkingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { - stakingEventBuilder_.setMessage(value); + stakeLinkingBuilder_.setMessage(value); } eventCase_ = 133; return this; @@ -27456,15 +31832,15 @@ public Builder setStakingEvent(io.vegaprotocol.vega.events.v1.Events.StakingEven * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ - public Builder setStakingEvent( - io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder builderForValue) { - if (stakingEventBuilder_ == null) { + public Builder setStakeLinking( + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder builderForValue) { + if (stakeLinkingBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { - stakingEventBuilder_.setMessage(builderForValue.build()); + stakeLinkingBuilder_.setMessage(builderForValue.build()); } eventCase_ = 133; return this; @@ -27474,13 +31850,13 @@ public Builder setStakingEvent( * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ - public Builder mergeStakingEvent(io.vegaprotocol.vega.events.v1.Events.StakingEvent value) { - if (stakingEventBuilder_ == null) { + public Builder mergeStakeLinking(io.vegaprotocol.vega.events.v1.Events.StakeLinking value) { + if (stakeLinkingBuilder_ == null) { if (eventCase_ == 133 && - event_ != io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance()) { - event_ = io.vegaprotocol.vega.events.v1.Events.StakingEvent.newBuilder((io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_) + event_ != io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance()) { + event_ = io.vegaprotocol.vega.events.v1.Events.StakeLinking.newBuilder((io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; @@ -27488,9 +31864,9 @@ public Builder mergeStakingEvent(io.vegaprotocol.vega.events.v1.Events.StakingEv onChanged(); } else { if (eventCase_ == 133) { - stakingEventBuilder_.mergeFrom(value); + stakeLinkingBuilder_.mergeFrom(value); } - stakingEventBuilder_.setMessage(value); + stakeLinkingBuilder_.setMessage(value); } eventCase_ = 133; return this; @@ -27500,10 +31876,10 @@ public Builder mergeStakingEvent(io.vegaprotocol.vega.events.v1.Events.StakingEv * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ - public Builder clearStakingEvent() { - if (stakingEventBuilder_ == null) { + public Builder clearStakeLinking() { + if (stakeLinkingBuilder_ == null) { if (eventCase_ == 133) { eventCase_ = 0; event_ = null; @@ -27514,7 +31890,7 @@ public Builder clearStakingEvent() { eventCase_ = 0; event_ = null; } - stakingEventBuilder_.clear(); + stakeLinkingBuilder_.clear(); } return this; } @@ -27523,27 +31899,27 @@ public Builder clearStakingEvent() { * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ - public io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder getStakingEventBuilder() { - return getStakingEventFieldBuilder().getBuilder(); + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder getStakeLinkingBuilder() { + return getStakeLinkingFieldBuilder().getBuilder(); } /** *
        * Staking event
        * 
* - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ @java.lang.Override - public io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder getStakingEventOrBuilder() { - if ((eventCase_ == 133) && (stakingEventBuilder_ != null)) { - return stakingEventBuilder_.getMessageOrBuilder(); + public io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingOrBuilder() { + if ((eventCase_ == 133) && (stakeLinkingBuilder_ != null)) { + return stakeLinkingBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 133) { - return (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_; + return (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_; } - return io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + return io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } } /** @@ -27551,25 +31927,379 @@ public io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder getStakingEve * Staking event * * - * .vega.events.v1.StakingEvent staking_event = 133 [json_name = "stakingEvent"]; + * .vega.events.v1.StakeLinking stake_linking = 133 [json_name = "stakeLinking"]; */ private com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.StakingEvent, io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder, io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder> - getStakingEventFieldBuilder() { - if (stakingEventBuilder_ == null) { + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder> + getStakeLinkingFieldBuilder() { + if (stakeLinkingBuilder_ == null) { if (!(eventCase_ == 133)) { - event_ = io.vegaprotocol.vega.events.v1.Events.StakingEvent.getDefaultInstance(); + event_ = io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance(); } - stakingEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.vegaprotocol.vega.events.v1.Events.StakingEvent, io.vegaprotocol.vega.events.v1.Events.StakingEvent.Builder, io.vegaprotocol.vega.events.v1.Events.StakingEventOrBuilder>( - (io.vegaprotocol.vega.events.v1.Events.StakingEvent) event_, + stakeLinkingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder>( + (io.vegaprotocol.vega.events.v1.Events.StakeLinking) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 133; onChanged();; - return stakingEventBuilder_; + return stakeLinkingBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder> rewardPayoutBuilder_; + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return Whether the rewardPayout field is set. + */ + @java.lang.Override + public boolean hasRewardPayout() { + return eventCase_ == 134; + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + * @return The rewardPayout. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent getRewardPayout() { + if (rewardPayoutBuilder_ == null) { + if (eventCase_ == 134) { + return (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } else { + if (eventCase_ == 134) { + return rewardPayoutBuilder_.getMessage(); + } + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + public Builder setRewardPayout(io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent value) { + if (rewardPayoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + rewardPayoutBuilder_.setMessage(value); + } + eventCase_ = 134; + return this; + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + public Builder setRewardPayout( + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder builderForValue) { + if (rewardPayoutBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + rewardPayoutBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 134; + return this; + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + public Builder mergeRewardPayout(io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent value) { + if (rewardPayoutBuilder_ == null) { + if (eventCase_ == 134 && + event_ != io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance()) { + event_ = io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.newBuilder((io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_) + .mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 134) { + rewardPayoutBuilder_.mergeFrom(value); + } + rewardPayoutBuilder_.setMessage(value); + } + eventCase_ = 134; + return this; + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + public Builder clearRewardPayout() { + if (rewardPayoutBuilder_ == null) { + if (eventCase_ == 134) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 134) { + eventCase_ = 0; + event_ = null; + } + rewardPayoutBuilder_.clear(); + } + return this; + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder getRewardPayoutBuilder() { + return getRewardPayoutFieldBuilder().getBuilder(); + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder getRewardPayoutOrBuilder() { + if ((eventCase_ == 134) && (rewardPayoutBuilder_ != null)) { + return rewardPayoutBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 134) { + return (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + } + /** + *
+       * Reward payout event
+       * 
+ * + * .vega.events.v1.RewardPayoutEvent reward_payout = 134 [json_name = "rewardPayout"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder> + getRewardPayoutFieldBuilder() { + if (rewardPayoutBuilder_ == null) { + if (!(eventCase_ == 134)) { + event_ = io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.getDefaultInstance(); + } + rewardPayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent.Builder, io.vegaprotocol.vega.events.v1.Events.RewardPayoutEventOrBuilder>( + (io.vegaprotocol.vega.events.v1.Events.RewardPayoutEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 134; + onChanged();; + return rewardPayoutBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent, io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder, io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder> checkpointBuilder_; + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return Whether the checkpoint field is set. + */ + @java.lang.Override + public boolean hasCheckpoint() { + return eventCase_ == 135; + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + * @return The checkpoint. + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent getCheckpoint() { + if (checkpointBuilder_ == null) { + if (eventCase_ == 135) { + return (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } else { + if (eventCase_ == 135) { + return checkpointBuilder_.getMessage(); + } + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + public Builder setCheckpoint(io.vegaprotocol.vega.events.v1.Events.CheckpointEvent value) { + if (checkpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + checkpointBuilder_.setMessage(value); + } + eventCase_ = 135; + return this; + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + public Builder setCheckpoint( + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder builderForValue) { + if (checkpointBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + checkpointBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 135; + return this; + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + public Builder mergeCheckpoint(io.vegaprotocol.vega.events.v1.Events.CheckpointEvent value) { + if (checkpointBuilder_ == null) { + if (eventCase_ == 135 && + event_ != io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance()) { + event_ = io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.newBuilder((io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_) + .mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 135) { + checkpointBuilder_.mergeFrom(value); + } + checkpointBuilder_.setMessage(value); + } + eventCase_ = 135; + return this; + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + public Builder clearCheckpoint() { + if (checkpointBuilder_ == null) { + if (eventCase_ == 135) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 135) { + eventCase_ = 0; + event_ = null; + } + checkpointBuilder_.clear(); + } + return this; + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + public io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder getCheckpointBuilder() { + return getCheckpointFieldBuilder().getBuilder(); + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder getCheckpointOrBuilder() { + if ((eventCase_ == 135) && (checkpointBuilder_ != null)) { + return checkpointBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 135) { + return (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_; + } + return io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } + } + /** + *
+       * Checkpoint was created
+       * 
+ * + * .vega.events.v1.CheckpointEvent checkpoint = 135 [json_name = "checkpoint"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent, io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder, io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder> + getCheckpointFieldBuilder() { + if (checkpointBuilder_ == null) { + if (!(eventCase_ == 135)) { + event_ = io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.getDefaultInstance(); + } + checkpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.CheckpointEvent, io.vegaprotocol.vega.events.v1.Events.CheckpointEvent.Builder, io.vegaprotocol.vega.events.v1.Events.CheckpointEventOrBuilder>( + (io.vegaprotocol.vega.events.v1.Events.CheckpointEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 135; + onChanged();; + return checkpointBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -27979,10 +32709,25 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_vega_events_v1_StakingEvent_descriptor; + internal_static_vega_events_v1_StakeLinking_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_events_v1_StakeLinking_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_events_v1_CheckpointEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_events_v1_CheckpointEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_events_v1_RewardPayoutEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_events_v1_RewardPayoutEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_events_v1_ValidatorScoreEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_vega_events_v1_StakingEvent_fieldAccessorTable; + internal_static_vega_events_v1_ValidatorScoreEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_events_v1_DelegationBalanceEvent_descriptor; private static final @@ -28077,157 +32822,182 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( "e.proto\032\nvega.proto\032\025oracles/v1/spec.pro" + "to\032\025oracles/v1/data.proto\032\032commands/v1/c" + "ommands.proto\032$commands/v1/validator_com" + - "mands.proto\"\324\001\n\014StakingEvent\022\016\n\002id\030\001 \001(\t" + + "mands.proto\"\252\003\n\014StakeLinking\022\016\n\002id\030\001 \001(\t" + "R\002id\0225\n\004type\030\002 \001(\0162!.vega.events.v1.Stak" + - "ingEvent.TypeR\004type\022\016\n\002ts\030\003 \001(\003R\002ts\022\024\n\005p" + + "eLinking.TypeR\004type\022\016\n\002ts\030\003 \001(\003R\002ts\022\024\n\005p" + "arty\030\004 \001(\tR\005party\022\026\n\006amount\030\005 \001(\tR\006amoun" + - "t\"?\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_" + - "DEPOSIT\020\001\022\017\n\013TYPE_REMOVE\020\002\"_\n\026Delegation" + - "BalanceEvent\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007no" + - "de_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\004R\006amo" + - "unt\"\254\001\n\035PendingDelegationBalanceEvent\022\024\n" + - "\005party\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006no" + - "deId\022+\n\021delegation_amount\030\003 \001(\004R\020delegat" + - "ionAmount\022/\n\023undelegation_amount\030\004 \001(\004R\022" + - "undelegationAmount\"D\n\013MarketEvent\022\033\n\tmar" + - "ket_id\030\001 \001(\tR\010marketId\022\030\n\007payload\030\002 \001(\tR" + - "\007payload\"\246\005\n\014TxErrorEvent\022\031\n\010party_id\030\001 " + - "\001(\tR\007partyId\022\027\n\007err_msg\030\002 \001(\tR\006errMsg\022N\n" + - "\020order_submission\030e \001(\0132!.vega.commands." + - "v1.OrderSubmissionH\000R\017orderSubmission\022K\n" + - "\017order_amendment\030f \001(\0132 .vega.commands.v" + - "1.OrderAmendmentH\000R\016orderAmendment\022T\n\022or" + - "der_cancellation\030g \001(\0132#.vega.commands.v" + - "1.OrderCancellationH\000R\021orderCancellation" + - "\022B\n\010proposal\030h \001(\0132$.vega.commands.v1.Pr" + - "oposalSubmissionH\000R\010proposal\022K\n\017vote_sub" + - "mission\030i \001(\0132 .vega.commands.v1.VoteSub" + - "missionH\000R\016voteSubmission\022v\n\036liquidity_p" + - "rovision_submission\030j \001(\0132..vega.command" + - "s.v1.LiquidityProvisionSubmissionH\000R\034liq" + - "uidityProvisionSubmission\022W\n\023withdraw_su" + - "bmission\030k \001(\0132$.vega.commands.v1.Withdr" + - "awSubmissionH\000R\022withdrawSubmissionB\r\n\013tr" + - "ansaction\"*\n\nTimeUpdate\022\034\n\ttimestamp\030\001 \001" + - "(\003R\ttimestamp\"y\n\nEpochEvent\022\020\n\003seq\030\001 \001(\004" + - "R\003seq\022\035\n\nstart_time\030\002 \001(\003R\tstartTime\022\037\n\013" + - "expire_time\030\003 \001(\003R\nexpireTime\022\031\n\010end_tim" + - "e\030\004 \001(\003R\007endTime\"I\n\021TransferResponses\0224\n" + - "\tresponses\030\001 \003(\0132\026.vega.TransferResponse" + - "R\tresponses\"\210\001\n\022PositionResolution\022\033\n\tma" + - "rket_id\030\001 \001(\tR\010marketId\022\036\n\ndistressed\030\002 " + - "\001(\003R\ndistressed\022\026\n\006closed\030\003 \001(\003R\006closed\022" + - "\035\n\nmark_price\030\004 \001(\004R\tmarkPrice\"c\n\021LossSo" + - "cialization\022\033\n\tmarket_id\030\001 \001(\tR\010marketId" + - "\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 " + - "\001(\003R\006amount\";\n\017TradeSettlement\022\022\n\004size\030\001" + - " \001(\003R\004size\022\024\n\005price\030\002 \001(\004R\005price\"\254\001\n\016Set" + - "tlePosition\022\033\n\tmarket_id\030\001 \001(\tR\010marketId" + - "\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005price\030\003 \001" + - "(\004R\005price\022L\n\021trade_settlements\030\004 \003(\0132\037.v" + - "ega.events.v1.TradeSettlementR\020tradeSett" + - "lements\"x\n\020SettleDistressed\022\033\n\tmarket_id" + - "\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(\tR\007part" + - "yId\022\026\n\006margin\030\003 \001(\004R\006margin\022\024\n\005price\030\004 \001" + - "(\004R\005price\"0\n\nMarketTick\022\016\n\002id\030\001 \001(\tR\002id\022" + - "\022\n\004time\030\002 \001(\003R\004time\"\205\002\n\014AuctionEvent\022\033\n\t" + - "market_id\030\001 \001(\tR\010marketId\022\'\n\017opening_auc" + - "tion\030\002 \001(\010R\016openingAuction\022\024\n\005leave\030\003 \001(" + - "\010R\005leave\022\024\n\005start\030\004 \001(\003R\005start\022\020\n\003end\030\005 " + - "\001(\003R\003end\022.\n\007trigger\030\006 \001(\0162\024.vega.Auction" + - "TriggerR\007trigger\022A\n\021extension_trigger\030\007 " + - "\001(\0162\024.vega.AuctionTriggerR\020extensionTrig" + - "ger\"}\n\017ValidatorUpdate\022\027\n\007pub_key\030\001 \001(\tR" + - "\006pubKey\022\034\n\ntm_pub_key\030\002 \001(\tR\010tmPubKey\022\031\n" + - "\010info_url\030\003 \001(\tR\007infoUrl\022\030\n\007country\030\004 \001(" + - "\tR\007country\"\255\021\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022" + - "\024\n\005block\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.ve" + - "ga.events.v1.BusEventTypeR\004type\022=\n\013time_" + - "update\030e \001(\0132\032.vega.events.v1.TimeUpdate" + - "H\000R\ntimeUpdate\022R\n\022transfer_responses\030f \001" + - "(\0132!.vega.events.v1.TransferResponsesH\000R" + - "\021transferResponses\022U\n\023position_resolutio" + - "n\030g \001(\0132\".vega.events.v1.PositionResolut" + - "ionH\000R\022positionResolution\022#\n\005order\030h \001(\013" + - "2\013.vega.OrderH\000R\005order\022)\n\007account\030i \001(\0132" + - "\r.vega.AccountH\000R\007account\022#\n\005party\030j \001(\013" + - "2\013.vega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013." + - "vega.TradeH\000R\005trade\0229\n\rmargin_levels\030l \001" + - "(\0132\022.vega.MarginLevelsH\000R\014marginLevels\022," + - "\n\010proposal\030m \001(\0132\016.vega.ProposalH\000R\010prop" + - "osal\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223" + - "\n\013market_data\030o \001(\0132\020.vega.MarketDataH\000R" + - "\nmarketData\022H\n\016node_signature\030p \001(\0132\037.ve" + - "ga.commands.v1.NodeSignatureH\000R\rnodeSign" + - "ature\022R\n\022loss_socialization\030q \001(\0132!.vega" + - ".events.v1.LossSocializationH\000R\021lossSoci" + - "alization\022I\n\017settle_position\030r \001(\0132\036.veg" + - "a.events.v1.SettlePositionH\000R\016settlePosi" + - "tion\022O\n\021settle_distressed\030s \001(\0132 .vega.e" + - "vents.v1.SettleDistressedH\000R\020settleDistr" + - "essed\0225\n\016market_created\030t \001(\0132\014.vega.Mar" + - "ketH\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.ve" + - "ga.AssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032" + - ".vega.events.v1.MarketTickH\000R\nmarketTick" + - "\0222\n\nwithdrawal\030w \001(\0132\020.vega.WithdrawalH\000" + - "R\nwithdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Dep" + - "ositH\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega." + - "events.v1.AuctionEventH\000R\007auction\0223\n\013ris" + - "k_factor\030z \001(\0132\020.vega.RiskFactorH\000R\nrisk" + - "Factor\022E\n\021network_parameter\030{ \001(\0132\026.vega" + - ".NetworkParameterH\000R\020networkParameter\022K\n" + - "\023liquidity_provision\030| \001(\0132\030.vega.Liquid" + - "ityProvisionH\000R\022liquidityProvision\0225\n\016ma" + - "rket_updated\030} \001(\0132\014.vega.MarketH\000R\rmark" + - "etUpdated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles" + - ".v1.OracleSpecH\000R\noracleSpec\0229\n\013oracle_d" + - "ata\030\177 \001(\0132\026.oracles.v1.OracleDataH\000R\nora" + - "cleData\022X\n\022delegation_balance\030\201\001 \001(\0132&.v" + - "ega.events.v1.DelegationBalanceEventH\000R\021" + - "delegationBalance\022n\n\032pending_delegation_" + - "balance\030\202\001 \001(\0132-.vega.events.v1.PendingD" + - "elegationBalanceEventH\000R\030pendingDelegati" + - "onBalance\022>\n\013epoch_event\030\203\001 \001(\0132\032.vega.e" + - "vents.v1.EpochEventH\000R\nepochEvent\022M\n\020val" + - "idator_update\030\204\001 \001(\0132\037.vega.events.v1.Va" + - "lidatorUpdateH\000R\017validatorUpdate\022D\n\rstak" + - "ing_event\030\205\001 \001(\0132\034.vega.events.v1.Stakin" + - "gEventH\000R\014stakingEvent\0226\n\006market\030\351\007 \001(\0132" + - "\033.vega.events.v1.MarketEventH\000R\006market\022A" + - "\n\014tx_err_event\030\321\017 \001(\0132\034.vega.events.v1.T" + - "xErrorEventH\000R\ntxErrEventB\007\n\005event*\247\t\n\014B" + - "usEventType\022\036\n\032BUS_EVENT_TYPE_UNSPECIFIE" + - "D\020\000\022\026\n\022BUS_EVENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT" + - "_TYPE_TIME_UPDATE\020\002\022%\n!BUS_EVENT_TYPE_TR" + - "ANSFER_RESPONSES\020\003\022&\n\"BUS_EVENT_TYPE_POS" + - "ITION_RESOLUTION\020\004\022\030\n\024BUS_EVENT_TYPE_ORD" + - "ER\020\005\022\032\n\026BUS_EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_" + - "EVENT_TYPE_PARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRA" + - "DE\020\010\022 \n\034BUS_EVENT_TYPE_MARGIN_LEVELS\020\t\022\033" + - "\n\027BUS_EVENT_TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT" + - "_TYPE_VOTE\020\013\022\036\n\032BUS_EVENT_TYPE_MARKET_DA" + - "TA\020\014\022!\n\035BUS_EVENT_TYPE_NODE_SIGNATURE\020\r\022" + - "%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\020\016\022\"" + - "\n\036BUS_EVENT_TYPE_SETTLE_POSITION\020\017\022$\n BU" + - "S_EVENT_TYPE_SETTLE_DISTRESSED\020\020\022!\n\035BUS_" + - "EVENT_TYPE_MARKET_CREATED\020\021\022\030\n\024BUS_EVENT" + - "_TYPE_ASSET\020\022\022\036\n\032BUS_EVENT_TYPE_MARKET_T" + - "ICK\020\023\022\035\n\031BUS_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026" + - "BUS_EVENT_TYPE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TY" + - "PE_AUCTION\020\026\022\036\n\032BUS_EVENT_TYPE_RISK_FACT" + - "OR\020\027\022$\n BUS_EVENT_TYPE_NETWORK_PARAMETER" + - "\020\030\022&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION" + - "\020\031\022!\n\035BUS_EVENT_TYPE_MARKET_UPDATED\020\032\022\036\n" + - "\032BUS_EVENT_TYPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVE" + - "NT_TYPE_ORACLE_DATA\020\034\022%\n!BUS_EVENT_TYPE_" + - "DELEGATION_BALANCE\020\035\022-\n)BUS_EVENT_TYPE_P" + - "ENDING_DELEGATION_BALANCE\020\036\022\037\n\033BUS_EVENT" + - "_TYPE_EPOCH_UPDATE\020\037\022#\n\037BUS_EVENT_TYPE_V" + - "ALIDATOR_UPDATE\020 \022 \n\034BUS_EVENT_TYPE_STAK" + - "ING_EVENT\020!\022\031\n\025BUS_EVENT_TYPE_MARKET\020e\022\034" + - "\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036io.vegap" + - "rotocol.vega.events.v1Z)code.vegaprotoco" + - "l.io/vega/proto/events/v1b\006proto3" + "t\022;\n\006status\030\006 \001(\0162#.vega.events.v1.Stake" + + "Linking.StatusR\006status\022!\n\014finalized_at\030\007" + + " \001(\003R\013finalizedAt\022\027\n\007tx_hash\030\010 \001(\tR\006txHa" + + "sh\"<\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tTYPE" + + "_LINK\020\001\022\017\n\013TYPE_UNLINK\020\002\"^\n\006Status\022\026\n\022ST" + + "ATUS_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023" + + "\n\017STATUS_ACCEPTED\020\002\022\023\n\017STATUS_REJECTED\020\003" + + "\"g\n\017CheckpointEvent\022\022\n\004hash\030\001 \001(\tR\004hash\022" + + "\035\n\nblock_hash\030\002 \001(\tR\tblockHash\022!\n\014block_" + + "height\030\003 \001(\004R\013blockHeight\"\311\001\n\021RewardPayo" + + "utEvent\022\024\n\005party\030\001 \001(\tR\005party\022\033\n\tepoch_s" + + "eq\030\002 \001(\tR\010epochSeq\022\024\n\005asset\030\003 \001(\tR\005asset" + + "\022\026\n\006amount\030\004 \001(\tR\006amount\0225\n\027percent_of_t" + + "otal_reward\030\005 \001(\tR\024percentOfTotalReward\022" + + "\034\n\ttimestamp\030\006 \001(\003R\ttimestamp\"\237\001\n\023Valida" + + "torScoreEvent\022\027\n\007node_id\030\001 \001(\tR\006nodeId\022\033" + + "\n\tepoch_seq\030\002 \001(\tR\010epochSeq\022\'\n\017validator" + + "_score\030\003 \001(\tR\016validatorScore\022)\n\020normalis" + + "ed_score\030\004 \001(\tR\017normalisedScore\"|\n\026Deleg" + + "ationBalanceEvent\022\024\n\005party\030\001 \001(\tR\005party\022" + + "\027\n\007node_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\004" + + "R\006amount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\311\001" + + "\n\035PendingDelegationBalanceEvent\022\024\n\005party" + + "\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006nodeId\022+" + + "\n\021delegation_amount\030\003 \001(\004R\020delegationAmo" + + "unt\022/\n\023undelegation_amount\030\004 \001(\004R\022undele" + + "gationAmount\022\033\n\tepoch_seq\030\005 \001(\tR\010epochSe" + + "q\"D\n\013MarketEvent\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + + "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\246\005\n\014TxEr" + + "rorEvent\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\027\n\007e" + + "rr_msg\030\002 \001(\tR\006errMsg\022N\n\020order_submission" + + "\030e \001(\0132!.vega.commands.v1.OrderSubmissio" + + "nH\000R\017orderSubmission\022K\n\017order_amendment\030" + + "f \001(\0132 .vega.commands.v1.OrderAmendmentH" + + "\000R\016orderAmendment\022T\n\022order_cancellation\030" + + "g \001(\0132#.vega.commands.v1.OrderCancellati" + + "onH\000R\021orderCancellation\022B\n\010proposal\030h \001(" + + "\0132$.vega.commands.v1.ProposalSubmissionH" + + "\000R\010proposal\022K\n\017vote_submission\030i \001(\0132 .v" + + "ega.commands.v1.VoteSubmissionH\000R\016voteSu" + + "bmission\022v\n\036liquidity_provision_submissi" + + "on\030j \001(\0132..vega.commands.v1.LiquidityPro" + + "visionSubmissionH\000R\034liquidityProvisionSu" + + "bmission\022W\n\023withdraw_submission\030k \001(\0132$." + + "vega.commands.v1.WithdrawSubmissionH\000R\022w" + + "ithdrawSubmissionB\r\n\013transaction\"*\n\nTime" + + "Update\022\034\n\ttimestamp\030\001 \001(\003R\ttimestamp\"y\n\n" + + "EpochEvent\022\020\n\003seq\030\001 \001(\004R\003seq\022\035\n\nstart_ti" + + "me\030\002 \001(\003R\tstartTime\022\037\n\013expire_time\030\003 \001(\003" + + "R\nexpireTime\022\031\n\010end_time\030\004 \001(\003R\007endTime\"" + + "I\n\021TransferResponses\0224\n\tresponses\030\001 \003(\0132" + + "\026.vega.TransferResponseR\tresponses\"\210\001\n\022P" + + "ositionResolution\022\033\n\tmarket_id\030\001 \001(\tR\010ma" + + "rketId\022\036\n\ndistressed\030\002 \001(\003R\ndistressed\022\026" + + "\n\006closed\030\003 \001(\003R\006closed\022\035\n\nmark_price\030\004 \001" + + "(\004R\tmarkPrice\"c\n\021LossSocialization\022\033\n\tma" + + "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + + "\tR\007partyId\022\026\n\006amount\030\003 \001(\003R\006amount\";\n\017Tr" + + "adeSettlement\022\022\n\004size\030\001 \001(\003R\004size\022\024\n\005pri" + + "ce\030\002 \001(\004R\005price\"\254\001\n\016SettlePosition\022\033\n\tma" + + "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + + "\tR\007partyId\022\024\n\005price\030\003 \001(\004R\005price\022L\n\021trad" + + "e_settlements\030\004 \003(\0132\037.vega.events.v1.Tra" + + "deSettlementR\020tradeSettlements\"x\n\020Settle" + + "Distressed\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022" + + "\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006margin\030\003 \001" + + "(\004R\006margin\022\024\n\005price\030\004 \001(\004R\005price\"0\n\nMark" + + "etTick\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004time\030\002 \001(\003R\004ti" + + "me\"\205\002\n\014AuctionEvent\022\033\n\tmarket_id\030\001 \001(\tR\010" + + "marketId\022\'\n\017opening_auction\030\002 \001(\010R\016openi" + + "ngAuction\022\024\n\005leave\030\003 \001(\010R\005leave\022\024\n\005start" + + "\030\004 \001(\003R\005start\022\020\n\003end\030\005 \001(\003R\003end\022.\n\007trigg" + + "er\030\006 \001(\0162\024.vega.AuctionTriggerR\007trigger\022" + + "A\n\021extension_trigger\030\007 \001(\0162\024.vega.Auctio" + + "nTriggerR\020extensionTrigger\"\261\001\n\017Validator" + + "Update\022 \n\014vega_pub_key\030\001 \001(\tR\nvegaPubKey" + + "\022)\n\020ethereum_address\030\002 \001(\tR\017ethereumAddr" + + "ess\022\034\n\ntm_pub_key\030\003 \001(\tR\010tmPubKey\022\031\n\010inf" + + "o_url\030\004 \001(\tR\007infoUrl\022\030\n\007country\030\005 \001(\tR\007c" + + "ountry\"\235\022\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005b" + + "lock\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.vega.e" + + "vents.v1.BusEventTypeR\004type\022=\n\013time_upda" + + "te\030e \001(\0132\032.vega.events.v1.TimeUpdateH\000R\n" + + "timeUpdate\022R\n\022transfer_responses\030f \001(\0132!" + + ".vega.events.v1.TransferResponsesH\000R\021tra" + + "nsferResponses\022U\n\023position_resolution\030g " + + "\001(\0132\".vega.events.v1.PositionResolutionH" + + "\000R\022positionResolution\022#\n\005order\030h \001(\0132\013.v" + + "ega.OrderH\000R\005order\022)\n\007account\030i \001(\0132\r.ve" + + "ga.AccountH\000R\007account\022#\n\005party\030j \001(\0132\013.v" + + "ega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013.vega" + + ".TradeH\000R\005trade\0229\n\rmargin_levels\030l \001(\0132\022" + + ".vega.MarginLevelsH\000R\014marginLevels\022,\n\010pr" + + "oposal\030m \001(\0132\016.vega.ProposalH\000R\010proposal" + + "\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223\n\013ma" + + "rket_data\030o \001(\0132\020.vega.MarketDataH\000R\nmar" + + "ketData\022H\n\016node_signature\030p \001(\0132\037.vega.c" + + "ommands.v1.NodeSignatureH\000R\rnodeSignatur" + + "e\022R\n\022loss_socialization\030q \001(\0132!.vega.eve" + + "nts.v1.LossSocializationH\000R\021lossSocializ" + + "ation\022I\n\017settle_position\030r \001(\0132\036.vega.ev" + + "ents.v1.SettlePositionH\000R\016settlePosition" + + "\022O\n\021settle_distressed\030s \001(\0132 .vega.event" + + "s.v1.SettleDistressedH\000R\020settleDistresse" + + "d\0225\n\016market_created\030t \001(\0132\014.vega.MarketH" + + "\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.vega.A" + + "ssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032.veg" + + "a.events.v1.MarketTickH\000R\nmarketTick\0222\n\n" + + "withdrawal\030w \001(\0132\020.vega.WithdrawalH\000R\nwi" + + "thdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Deposit" + + "H\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega.even" + + "ts.v1.AuctionEventH\000R\007auction\0223\n\013risk_fa" + + "ctor\030z \001(\0132\020.vega.RiskFactorH\000R\nriskFact" + + "or\022E\n\021network_parameter\030{ \001(\0132\026.vega.Net" + + "workParameterH\000R\020networkParameter\022K\n\023liq" + + "uidity_provision\030| \001(\0132\030.vega.LiquidityP" + + "rovisionH\000R\022liquidityProvision\0225\n\016market" + + "_updated\030} \001(\0132\014.vega.MarketH\000R\rmarketUp" + + "dated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles.v1." + + "OracleSpecH\000R\noracleSpec\0229\n\013oracle_data\030" + + "\177 \001(\0132\026.oracles.v1.OracleDataH\000R\noracleD" + + "ata\022X\n\022delegation_balance\030\201\001 \001(\0132&.vega." + + "events.v1.DelegationBalanceEventH\000R\021dele" + + "gationBalance\022O\n\017validator_score\030\202\001 \001(\0132" + + "#.vega.events.v1.ValidatorScoreEventH\000R\016" + + "validatorScore\022>\n\013epoch_event\030\203\001 \001(\0132\032.v" + + "ega.events.v1.EpochEventH\000R\nepochEvent\022M" + + "\n\020validator_update\030\204\001 \001(\0132\037.vega.events." + + "v1.ValidatorUpdateH\000R\017validatorUpdate\022D\n" + + "\rstake_linking\030\205\001 \001(\0132\034.vega.events.v1.S" + + "takeLinkingH\000R\014stakeLinking\022I\n\rreward_pa" + + "yout\030\206\001 \001(\0132!.vega.events.v1.RewardPayou" + + "tEventH\000R\014rewardPayout\022B\n\ncheckpoint\030\207\001 " + + "\001(\0132\037.vega.events.v1.CheckpointEventH\000R\n" + + "checkpoint\0226\n\006market\030\351\007 \001(\0132\033.vega.event" + + "s.v1.MarketEventH\000R\006market\022A\n\014tx_err_eve" + + "nt\030\321\017 \001(\0132\034.vega.events.v1.TxErrorEventH" + + "\000R\ntxErrEventB\007\n\005event*\343\t\n\014BusEventType\022" + + "\036\n\032BUS_EVENT_TYPE_UNSPECIFIED\020\000\022\026\n\022BUS_E" + + "VENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT_TYPE_TIME_U" + + "PDATE\020\002\022%\n!BUS_EVENT_TYPE_TRANSFER_RESPO" + + "NSES\020\003\022&\n\"BUS_EVENT_TYPE_POSITION_RESOLU" + + "TION\020\004\022\030\n\024BUS_EVENT_TYPE_ORDER\020\005\022\032\n\026BUS_" + + "EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_EVENT_TYPE_P" + + "ARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRADE\020\010\022 \n\034BUS_" + + "EVENT_TYPE_MARGIN_LEVELS\020\t\022\033\n\027BUS_EVENT_" + + "TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT_TYPE_VOTE\020\013" + + "\022\036\n\032BUS_EVENT_TYPE_MARKET_DATA\020\014\022!\n\035BUS_" + + "EVENT_TYPE_NODE_SIGNATURE\020\r\022%\n!BUS_EVENT" + + "_TYPE_LOSS_SOCIALIZATION\020\016\022\"\n\036BUS_EVENT_" + + "TYPE_SETTLE_POSITION\020\017\022$\n BUS_EVENT_TYPE" + + "_SETTLE_DISTRESSED\020\020\022!\n\035BUS_EVENT_TYPE_M" + + "ARKET_CREATED\020\021\022\030\n\024BUS_EVENT_TYPE_ASSET\020" + + "\022\022\036\n\032BUS_EVENT_TYPE_MARKET_TICK\020\023\022\035\n\031BUS" + + "_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026BUS_EVENT_TY" + + "PE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TYPE_AUCTION\020\026" + + "\022\036\n\032BUS_EVENT_TYPE_RISK_FACTOR\020\027\022$\n BUS_" + + "EVENT_TYPE_NETWORK_PARAMETER\020\030\022&\n\"BUS_EV" + + "ENT_TYPE_LIQUIDITY_PROVISION\020\031\022!\n\035BUS_EV" + + "ENT_TYPE_MARKET_UPDATED\020\032\022\036\n\032BUS_EVENT_T" + + "YPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVENT_TYPE_ORAC" + + "LE_DATA\020\034\022%\n!BUS_EVENT_TYPE_DELEGATION_B" + + "ALANCE\020\035\022\"\n\036BUS_EVENT_TYPE_VALIDATOR_SCO" + + "RE\020\036\022\037\n\033BUS_EVENT_TYPE_EPOCH_UPDATE\020\037\022#\n" + + "\037BUS_EVENT_TYPE_VALIDATOR_UPDATE\020 \022 \n\034BU" + + "S_EVENT_TYPE_STAKE_LINKING\020!\022&\n\"BUS_EVEN" + + "T_TYPE_REWARD_PAYOUT_EVENT\020\"\022\035\n\031BUS_EVEN" + + "T_TYPE_CHECKPOINT\020#\022\031\n\025BUS_EVENT_TYPE_MA" + + "RKET\020e\022\034\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036" + + "io.vegaprotocol.vega.events.v1Z)code.veg" + + "aprotocol.io/vega/proto/events/v1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -28241,108 +33011,126 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( io.vegaprotocol.vega.commands.v1.Commands.getDescriptor(), io.vegaprotocol.vega.commands.v1.ValidatorCommands.getDescriptor(), }); - internal_static_vega_events_v1_StakingEvent_descriptor = + internal_static_vega_events_v1_StakeLinking_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_vega_events_v1_StakingEvent_fieldAccessorTable = new + internal_static_vega_events_v1_StakeLinking_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_vega_events_v1_StakingEvent_descriptor, - new java.lang.String[] { "Id", "Type", "Ts", "Party", "Amount", }); - internal_static_vega_events_v1_DelegationBalanceEvent_descriptor = + internal_static_vega_events_v1_StakeLinking_descriptor, + new java.lang.String[] { "Id", "Type", "Ts", "Party", "Amount", "Status", "FinalizedAt", "TxHash", }); + internal_static_vega_events_v1_CheckpointEvent_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_vega_events_v1_CheckpointEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_events_v1_CheckpointEvent_descriptor, + new java.lang.String[] { "Hash", "BlockHash", "BlockHeight", }); + internal_static_vega_events_v1_RewardPayoutEvent_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_vega_events_v1_RewardPayoutEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_events_v1_RewardPayoutEvent_descriptor, + new java.lang.String[] { "Party", "EpochSeq", "Asset", "Amount", "PercentOfTotalReward", "Timestamp", }); + internal_static_vega_events_v1_ValidatorScoreEvent_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_vega_events_v1_ValidatorScoreEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_events_v1_ValidatorScoreEvent_descriptor, + new java.lang.String[] { "NodeId", "EpochSeq", "ValidatorScore", "NormalisedScore", }); + internal_static_vega_events_v1_DelegationBalanceEvent_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_vega_events_v1_DelegationBalanceEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_DelegationBalanceEvent_descriptor, - new java.lang.String[] { "Party", "NodeId", "Amount", }); + new java.lang.String[] { "Party", "NodeId", "Amount", "EpochSeq", }); internal_static_vega_events_v1_PendingDelegationBalanceEvent_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_vega_events_v1_PendingDelegationBalanceEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_PendingDelegationBalanceEvent_descriptor, - new java.lang.String[] { "Party", "NodeId", "DelegationAmount", "UndelegationAmount", }); + new java.lang.String[] { "Party", "NodeId", "DelegationAmount", "UndelegationAmount", "EpochSeq", }); internal_static_vega_events_v1_MarketEvent_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_vega_events_v1_MarketEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_MarketEvent_descriptor, new java.lang.String[] { "MarketId", "Payload", }); internal_static_vega_events_v1_TxErrorEvent_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_vega_events_v1_TxErrorEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_TxErrorEvent_descriptor, new java.lang.String[] { "PartyId", "ErrMsg", "OrderSubmission", "OrderAmendment", "OrderCancellation", "Proposal", "VoteSubmission", "LiquidityProvisionSubmission", "WithdrawSubmission", "Transaction", }); internal_static_vega_events_v1_TimeUpdate_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_vega_events_v1_TimeUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_TimeUpdate_descriptor, new java.lang.String[] { "Timestamp", }); internal_static_vega_events_v1_EpochEvent_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_vega_events_v1_EpochEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_EpochEvent_descriptor, new java.lang.String[] { "Seq", "StartTime", "ExpireTime", "EndTime", }); internal_static_vega_events_v1_TransferResponses_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_vega_events_v1_TransferResponses_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_TransferResponses_descriptor, new java.lang.String[] { "Responses", }); internal_static_vega_events_v1_PositionResolution_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_vega_events_v1_PositionResolution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_PositionResolution_descriptor, new java.lang.String[] { "MarketId", "Distressed", "Closed", "MarkPrice", }); internal_static_vega_events_v1_LossSocialization_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_vega_events_v1_LossSocialization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_LossSocialization_descriptor, new java.lang.String[] { "MarketId", "PartyId", "Amount", }); internal_static_vega_events_v1_TradeSettlement_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_vega_events_v1_TradeSettlement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_TradeSettlement_descriptor, new java.lang.String[] { "Size", "Price", }); internal_static_vega_events_v1_SettlePosition_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_vega_events_v1_SettlePosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_SettlePosition_descriptor, new java.lang.String[] { "MarketId", "PartyId", "Price", "TradeSettlements", }); internal_static_vega_events_v1_SettleDistressed_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_vega_events_v1_SettleDistressed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_SettleDistressed_descriptor, new java.lang.String[] { "MarketId", "PartyId", "Margin", "Price", }); internal_static_vega_events_v1_MarketTick_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_vega_events_v1_MarketTick_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_MarketTick_descriptor, new java.lang.String[] { "Id", "Time", }); internal_static_vega_events_v1_AuctionEvent_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_vega_events_v1_AuctionEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_AuctionEvent_descriptor, new java.lang.String[] { "MarketId", "OpeningAuction", "Leave", "Start", "End", "Trigger", "ExtensionTrigger", }); internal_static_vega_events_v1_ValidatorUpdate_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_vega_events_v1_ValidatorUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_ValidatorUpdate_descriptor, - new java.lang.String[] { "PubKey", "TmPubKey", "InfoUrl", "Country", }); + new java.lang.String[] { "VegaPubKey", "EthereumAddress", "TmPubKey", "InfoUrl", "Country", }); internal_static_vega_events_v1_BusEvent_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_vega_events_v1_BusEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_BusEvent_descriptor, - new java.lang.String[] { "Id", "Block", "Type", "TimeUpdate", "TransferResponses", "PositionResolution", "Order", "Account", "Party", "Trade", "MarginLevels", "Proposal", "Vote", "MarketData", "NodeSignature", "LossSocialization", "SettlePosition", "SettleDistressed", "MarketCreated", "Asset", "MarketTick", "Withdrawal", "Deposit", "Auction", "RiskFactor", "NetworkParameter", "LiquidityProvision", "MarketUpdated", "OracleSpec", "OracleData", "DelegationBalance", "PendingDelegationBalance", "EpochEvent", "ValidatorUpdate", "StakingEvent", "Market", "TxErrEvent", "Event", }); + new java.lang.String[] { "Id", "Block", "Type", "TimeUpdate", "TransferResponses", "PositionResolution", "Order", "Account", "Party", "Trade", "MarginLevels", "Proposal", "Vote", "MarketData", "NodeSignature", "LossSocialization", "SettlePosition", "SettleDistressed", "MarketCreated", "Asset", "MarketTick", "Withdrawal", "Deposit", "Auction", "RiskFactor", "NetworkParameter", "LiquidityProvision", "MarketUpdated", "OracleSpec", "OracleData", "DelegationBalance", "ValidatorScore", "EpochEvent", "ValidatorUpdate", "StakeLinking", "RewardPayout", "Checkpoint", "Market", "TxErrEvent", "Event", }); io.vegaprotocol.vega.Markets.getDescriptor(); io.vegaprotocol.vega.Assets.getDescriptor(); io.vegaprotocol.vega.Governance.getDescriptor(); diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/snapshot/v1/SnapshotOuterClass.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/snapshot/v1/SnapshotOuterClass.java new file mode 100644 index 00000000..15be6237 --- /dev/null +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/snapshot/v1/SnapshotOuterClass.java @@ -0,0 +1,8600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: snapshot/v1/snapshot.proto + +package io.vegaprotocol.vega.snapshot.v1; + +public final class SnapshotOuterClass { + private SnapshotOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Snapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes hash = 1 [json_name = "hash"]; + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * bytes state = 2 [json_name = "state"]; + * @return The state. + */ + com.google.protobuf.ByteString getState(); + } + /** + *
+   * Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Snapshot} + */ + public static final class Snapshot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Snapshot) + SnapshotOrBuilder { + private static final long serialVersionUID = 0L; + // Use Snapshot.newBuilder() to construct. + private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Snapshot() { + hash_ = com.google.protobuf.ByteString.EMPTY; + state_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Snapshot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Snapshot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + case 18: { + + state_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Snapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + /** + * bytes hash = 1 [json_name = "hash"]; + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString state_; + /** + * bytes state = 2 [json_name = "state"]; + * @return The state. + */ + @java.lang.Override + public com.google.protobuf.ByteString getState() { + return state_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + if (!state_.isEmpty()) { + output.writeBytes(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, hash_); + } + if (!state_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot) obj; + + if (!getHash() + .equals(other.getHash())) return false; + if (!getState() + .equals(other.getState())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Snapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Snapshot) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.SnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Snapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + state_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Snapshot_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot(this); + result.hash_ = hash_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot.getDefaultInstance()) return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getState() != com.google.protobuf.ByteString.EMPTY) { + setState(other.getState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes hash = 1 [json_name = "hash"]; + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** + * bytes hash = 1 [json_name = "hash"]; + * @param value The hash to set. + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * bytes hash = 1 [json_name = "hash"]; + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString state_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes state = 2 [json_name = "state"]; + * @return The state. + */ + @java.lang.Override + public com.google.protobuf.ByteString getState() { + return state_; + } + /** + * bytes state = 2 [json_name = "state"]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value; + onChanged(); + return this; + } + /** + * bytes state = 2 [json_name = "state"]; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = getDefaultInstance().getState(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Snapshot) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Snapshot) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Snapshot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Snapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CheckpointOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Checkpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes governance = 1 [json_name = "governance"]; + * @return The governance. + */ + com.google.protobuf.ByteString getGovernance(); + + /** + * bytes assets = 2 [json_name = "assets"]; + * @return The assets. + */ + com.google.protobuf.ByteString getAssets(); + + /** + * bytes collateral = 3 [json_name = "collateral"]; + * @return The collateral. + */ + com.google.protobuf.ByteString getCollateral(); + + /** + * bytes network_parameters = 4 [json_name = "networkParameters"]; + * @return The networkParameters. + */ + com.google.protobuf.ByteString getNetworkParameters(); + + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @return The delegation. + */ + com.google.protobuf.ByteString getDelegation(); + } + /** + *
+   * Checkpoint aggregates the various engine snapshots
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Checkpoint} + */ + public static final class Checkpoint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Checkpoint) + CheckpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use Checkpoint.newBuilder() to construct. + private Checkpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Checkpoint() { + governance_ = com.google.protobuf.ByteString.EMPTY; + assets_ = com.google.protobuf.ByteString.EMPTY; + collateral_ = com.google.protobuf.ByteString.EMPTY; + networkParameters_ = com.google.protobuf.ByteString.EMPTY; + delegation_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Checkpoint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Checkpoint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + governance_ = input.readBytes(); + break; + } + case 18: { + + assets_ = input.readBytes(); + break; + } + case 26: { + + collateral_ = input.readBytes(); + break; + } + case 34: { + + networkParameters_ = input.readBytes(); + break; + } + case 42: { + + delegation_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Checkpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Checkpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.Builder.class); + } + + public static final int GOVERNANCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString governance_; + /** + * bytes governance = 1 [json_name = "governance"]; + * @return The governance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGovernance() { + return governance_; + } + + public static final int ASSETS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString assets_; + /** + * bytes assets = 2 [json_name = "assets"]; + * @return The assets. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssets() { + return assets_; + } + + public static final int COLLATERAL_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString collateral_; + /** + * bytes collateral = 3 [json_name = "collateral"]; + * @return The collateral. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollateral() { + return collateral_; + } + + public static final int NETWORK_PARAMETERS_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString networkParameters_; + /** + * bytes network_parameters = 4 [json_name = "networkParameters"]; + * @return The networkParameters. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkParameters() { + return networkParameters_; + } + + public static final int DELEGATION_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString delegation_; + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @return The delegation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelegation() { + return delegation_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!governance_.isEmpty()) { + output.writeBytes(1, governance_); + } + if (!assets_.isEmpty()) { + output.writeBytes(2, assets_); + } + if (!collateral_.isEmpty()) { + output.writeBytes(3, collateral_); + } + if (!networkParameters_.isEmpty()) { + output.writeBytes(4, networkParameters_); + } + if (!delegation_.isEmpty()) { + output.writeBytes(5, delegation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!governance_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, governance_); + } + if (!assets_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, assets_); + } + if (!collateral_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, collateral_); + } + if (!networkParameters_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, networkParameters_); + } + if (!delegation_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, delegation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint) obj; + + if (!getGovernance() + .equals(other.getGovernance())) return false; + if (!getAssets() + .equals(other.getAssets())) return false; + if (!getCollateral() + .equals(other.getCollateral())) return false; + if (!getNetworkParameters() + .equals(other.getNetworkParameters())) return false; + if (!getDelegation() + .equals(other.getDelegation())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GOVERNANCE_FIELD_NUMBER; + hash = (53 * hash) + getGovernance().hashCode(); + hash = (37 * hash) + ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAssets().hashCode(); + hash = (37 * hash) + COLLATERAL_FIELD_NUMBER; + hash = (53 * hash) + getCollateral().hashCode(); + hash = (37 * hash) + NETWORK_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkParameters().hashCode(); + hash = (37 * hash) + DELEGATION_FIELD_NUMBER; + hash = (53 * hash) + getDelegation().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Checkpoint aggregates the various engine snapshots
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Checkpoint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Checkpoint) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.CheckpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Checkpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Checkpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + governance_ = com.google.protobuf.ByteString.EMPTY; + + assets_ = com.google.protobuf.ByteString.EMPTY; + + collateral_ = com.google.protobuf.ByteString.EMPTY; + + networkParameters_ = com.google.protobuf.ByteString.EMPTY; + + delegation_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Checkpoint_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint(this); + result.governance_ = governance_; + result.assets_ = assets_; + result.collateral_ = collateral_; + result.networkParameters_ = networkParameters_; + result.delegation_ = delegation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint.getDefaultInstance()) return this; + if (other.getGovernance() != com.google.protobuf.ByteString.EMPTY) { + setGovernance(other.getGovernance()); + } + if (other.getAssets() != com.google.protobuf.ByteString.EMPTY) { + setAssets(other.getAssets()); + } + if (other.getCollateral() != com.google.protobuf.ByteString.EMPTY) { + setCollateral(other.getCollateral()); + } + if (other.getNetworkParameters() != com.google.protobuf.ByteString.EMPTY) { + setNetworkParameters(other.getNetworkParameters()); + } + if (other.getDelegation() != com.google.protobuf.ByteString.EMPTY) { + setDelegation(other.getDelegation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString governance_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes governance = 1 [json_name = "governance"]; + * @return The governance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGovernance() { + return governance_; + } + /** + * bytes governance = 1 [json_name = "governance"]; + * @param value The governance to set. + * @return This builder for chaining. + */ + public Builder setGovernance(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + governance_ = value; + onChanged(); + return this; + } + /** + * bytes governance = 1 [json_name = "governance"]; + * @return This builder for chaining. + */ + public Builder clearGovernance() { + + governance_ = getDefaultInstance().getGovernance(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString assets_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes assets = 2 [json_name = "assets"]; + * @return The assets. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssets() { + return assets_; + } + /** + * bytes assets = 2 [json_name = "assets"]; + * @param value The assets to set. + * @return This builder for chaining. + */ + public Builder setAssets(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + assets_ = value; + onChanged(); + return this; + } + /** + * bytes assets = 2 [json_name = "assets"]; + * @return This builder for chaining. + */ + public Builder clearAssets() { + + assets_ = getDefaultInstance().getAssets(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString collateral_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes collateral = 3 [json_name = "collateral"]; + * @return The collateral. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollateral() { + return collateral_; + } + /** + * bytes collateral = 3 [json_name = "collateral"]; + * @param value The collateral to set. + * @return This builder for chaining. + */ + public Builder setCollateral(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + collateral_ = value; + onChanged(); + return this; + } + /** + * bytes collateral = 3 [json_name = "collateral"]; + * @return This builder for chaining. + */ + public Builder clearCollateral() { + + collateral_ = getDefaultInstance().getCollateral(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString networkParameters_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes network_parameters = 4 [json_name = "networkParameters"]; + * @return The networkParameters. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkParameters() { + return networkParameters_; + } + /** + * bytes network_parameters = 4 [json_name = "networkParameters"]; + * @param value The networkParameters to set. + * @return This builder for chaining. + */ + public Builder setNetworkParameters(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + networkParameters_ = value; + onChanged(); + return this; + } + /** + * bytes network_parameters = 4 [json_name = "networkParameters"]; + * @return This builder for chaining. + */ + public Builder clearNetworkParameters() { + + networkParameters_ = getDefaultInstance().getNetworkParameters(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString delegation_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @return The delegation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelegation() { + return delegation_; + } + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @param value The delegation to set. + * @return This builder for chaining. + */ + public Builder setDelegation(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + delegation_ = value; + onChanged(); + return this; + } + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @return This builder for chaining. + */ + public Builder clearDelegation() { + + delegation_ = getDefaultInstance().getDelegation(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Checkpoint) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Checkpoint) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Checkpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Checkpoint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AssetEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.AssetEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return Whether the assetDetails field is set. + */ + boolean hasAssetDetails(); + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return The assetDetails. + */ + io.vegaprotocol.vega.Assets.AssetDetails getAssetDetails(); + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder getAssetDetailsOrBuilder(); + } + /** + *
+   * AssetEntrty is a single (enabled) asset
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.AssetEntry} + */ + public static final class AssetEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.AssetEntry) + AssetEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AssetEntry.newBuilder() to construct. + private AssetEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AssetEntry() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AssetEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AssetEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + io.vegaprotocol.vega.Assets.AssetDetails.Builder subBuilder = null; + if (assetDetails_ != null) { + subBuilder = assetDetails_.toBuilder(); + } + assetDetails_ = input.readMessage(io.vegaprotocol.vega.Assets.AssetDetails.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(assetDetails_); + assetDetails_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_DETAILS_FIELD_NUMBER = 2; + private io.vegaprotocol.vega.Assets.AssetDetails assetDetails_; + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return Whether the assetDetails field is set. + */ + @java.lang.Override + public boolean hasAssetDetails() { + return assetDetails_ != null; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return The assetDetails. + */ + @java.lang.Override + public io.vegaprotocol.vega.Assets.AssetDetails getAssetDetails() { + return assetDetails_ == null ? io.vegaprotocol.vega.Assets.AssetDetails.getDefaultInstance() : assetDetails_; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder getAssetDetailsOrBuilder() { + return getAssetDetails(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (assetDetails_ != null) { + output.writeMessage(2, getAssetDetails()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (assetDetails_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAssetDetails()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasAssetDetails() != other.hasAssetDetails()) return false; + if (hasAssetDetails()) { + if (!getAssetDetails() + .equals(other.getAssetDetails())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasAssetDetails()) { + hash = (37 * hash) + ASSET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAssetDetails().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * AssetEntrty is a single (enabled) asset
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.AssetEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.AssetEntry) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (assetDetailsBuilder_ == null) { + assetDetails_ = null; + } else { + assetDetails_ = null; + assetDetailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetEntry_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry(this); + result.id_ = id_; + if (assetDetailsBuilder_ == null) { + result.assetDetails_ = assetDetails_; + } else { + result.assetDetails_ = assetDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasAssetDetails()) { + mergeAssetDetails(other.getAssetDetails()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private io.vegaprotocol.vega.Assets.AssetDetails assetDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Assets.AssetDetails, io.vegaprotocol.vega.Assets.AssetDetails.Builder, io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder> assetDetailsBuilder_; + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return Whether the assetDetails field is set. + */ + public boolean hasAssetDetails() { + return assetDetailsBuilder_ != null || assetDetails_ != null; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + * @return The assetDetails. + */ + public io.vegaprotocol.vega.Assets.AssetDetails getAssetDetails() { + if (assetDetailsBuilder_ == null) { + return assetDetails_ == null ? io.vegaprotocol.vega.Assets.AssetDetails.getDefaultInstance() : assetDetails_; + } else { + return assetDetailsBuilder_.getMessage(); + } + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public Builder setAssetDetails(io.vegaprotocol.vega.Assets.AssetDetails value) { + if (assetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assetDetails_ = value; + onChanged(); + } else { + assetDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public Builder setAssetDetails( + io.vegaprotocol.vega.Assets.AssetDetails.Builder builderForValue) { + if (assetDetailsBuilder_ == null) { + assetDetails_ = builderForValue.build(); + onChanged(); + } else { + assetDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public Builder mergeAssetDetails(io.vegaprotocol.vega.Assets.AssetDetails value) { + if (assetDetailsBuilder_ == null) { + if (assetDetails_ != null) { + assetDetails_ = + io.vegaprotocol.vega.Assets.AssetDetails.newBuilder(assetDetails_).mergeFrom(value).buildPartial(); + } else { + assetDetails_ = value; + } + onChanged(); + } else { + assetDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public Builder clearAssetDetails() { + if (assetDetailsBuilder_ == null) { + assetDetails_ = null; + onChanged(); + } else { + assetDetails_ = null; + assetDetailsBuilder_ = null; + } + + return this; + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public io.vegaprotocol.vega.Assets.AssetDetails.Builder getAssetDetailsBuilder() { + + onChanged(); + return getAssetDetailsFieldBuilder().getBuilder(); + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + public io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder getAssetDetailsOrBuilder() { + if (assetDetailsBuilder_ != null) { + return assetDetailsBuilder_.getMessageOrBuilder(); + } else { + return assetDetails_ == null ? + io.vegaprotocol.vega.Assets.AssetDetails.getDefaultInstance() : assetDetails_; + } + } + /** + * .vega.AssetDetails asset_details = 2 [json_name = "assetDetails"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Assets.AssetDetails, io.vegaprotocol.vega.Assets.AssetDetails.Builder, io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder> + getAssetDetailsFieldBuilder() { + if (assetDetailsBuilder_ == null) { + assetDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.Assets.AssetDetails, io.vegaprotocol.vega.Assets.AssetDetails.Builder, io.vegaprotocol.vega.Assets.AssetDetailsOrBuilder>( + getAssetDetails(), + getParentForChildren(), + isClean()); + assetDetails_ = null; + } + return assetDetailsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.AssetEntry) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetEntry) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AssetsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Assets) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + java.util.List + getAssetsList(); + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getAssets(int index); + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + int getAssetsCount(); + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + java.util.List + getAssetsOrBuilderList(); + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder getAssetsOrBuilder( + int index); + } + /** + *
+   * Assets contains all the enabled assets as AssetEntries
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Assets} + */ + public static final class Assets extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Assets) + AssetsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Assets.newBuilder() to construct. + private Assets(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Assets() { + assets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Assets(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Assets( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + assets_.add( + input.readMessage(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Assets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Assets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.Builder.class); + } + + public static final int ASSETS_FIELD_NUMBER = 1; + private java.util.List assets_; + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public java.util.List getAssetsList() { + return assets_; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public java.util.List + getAssetsOrBuilderList() { + return assets_; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public int getAssetsCount() { + return assets_.size(); + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getAssets(int index) { + return assets_.get(index); + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder getAssetsOrBuilder( + int index) { + return assets_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < assets_.size(); i++) { + output.writeMessage(1, assets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < assets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, assets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets) obj; + + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAssetsCount() > 0) { + hash = (37 * hash) + ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAssetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Assets contains all the enabled assets as AssetEntries
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Assets} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Assets) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Assets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Assets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAssetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + assetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Assets_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets(this); + int from_bitField0_ = bitField0_; + if (assetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assets_ = assets_; + } else { + result.assets_ = assetsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets.getDefaultInstance()) return this; + if (assetsBuilder_ == null) { + if (!other.assets_.isEmpty()) { + if (assets_.isEmpty()) { + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssetsIsMutable(); + assets_.addAll(other.assets_); + } + onChanged(); + } + } else { + if (!other.assets_.isEmpty()) { + if (assetsBuilder_.isEmpty()) { + assetsBuilder_.dispose(); + assetsBuilder_ = null; + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; + } else { + assetsBuilder_.addAllMessages(other.assets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List assets_ = + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList(assets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder> assetsBuilder_; + + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public java.util.List getAssetsList() { + if (assetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assets_); + } else { + return assetsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public int getAssetsCount() { + if (assetsBuilder_ == null) { + return assets_.size(); + } else { + return assetsBuilder_.getCount(); + } + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry getAssets(int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder setAssets( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.set(index, value); + onChanged(); + } else { + assetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder setAssets( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.set(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder addAssets(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(value); + onChanged(); + } else { + assetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(index, value); + onChanged(); + } else { + assetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder addAssets( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder addAllAssets( + java.lang.Iterable values) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); + onChanged(); + } else { + assetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder clearAssets() { + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assetsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public Builder removeAssets(int index) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.remove(index); + onChanged(); + } else { + assetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder getAssetsBuilder( + int index) { + return getAssetsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder getAssetsOrBuilder( + int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); } else { + return assetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public java.util.List + getAssetsOrBuilderList() { + if (assetsBuilder_ != null) { + return assetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assets_); + } + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder addAssetsBuilder() { + return getAssetsFieldBuilder().addBuilder( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.AssetEntry assets = 1 [json_name = "assets"]; + */ + public java.util.List + getAssetsBuilderList() { + return getAssetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder> + getAssetsFieldBuilder() { + if (assetsBuilder_ == null) { + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetEntryOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + assets_ = null; + } + return assetsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Assets) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Assets) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Assets(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Assets getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AssetBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.AssetBalance) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + java.lang.String getAsset(); + /** + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + java.lang.String getBalance(); + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + com.google.protobuf.ByteString + getBalanceBytes(); + } + /** + *
+   * AssetBalance represents the total balance of a given asset for a party
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.AssetBalance} + */ + public static final class AssetBalance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.AssetBalance) + AssetBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use AssetBalance.newBuilder() to construct. + private AssetBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AssetBalance() { + party_ = ""; + asset_ = ""; + balance_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AssetBalance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AssetBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + asset_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + balance_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_FIELD_NUMBER = 2; + private volatile java.lang.Object asset_; + /** + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + /** + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BALANCE_FIELD_NUMBER = 3; + private volatile java.lang.Object balance_; + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + @java.lang.Override + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getAssetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); + } + if (!getBalanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, balance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getAssetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); + } + if (!getBalanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getBalance() + .equals(other.getBalance())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * AssetBalance represents the total balance of a given asset for a party
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.AssetBalance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.AssetBalance) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + asset_ = ""; + + balance_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_AssetBalance_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance(this); + result.party_ = party_; + result.asset_ = asset_; + result.balance_ = balance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + onChanged(); + } + if (!other.getBalance().isEmpty()) { + balance_ = other.balance_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + * string asset = 2 [json_name = "asset"]; + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string asset = 2 [json_name = "asset"]; + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString + getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string asset = 2 [json_name = "asset"]; + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + asset_ = value; + onChanged(); + return this; + } + /** + * string asset = 2 [json_name = "asset"]; + * @return This builder for chaining. + */ + public Builder clearAsset() { + + asset_ = getDefaultInstance().getAsset(); + onChanged(); + return this; + } + /** + * string asset = 2 [json_name = "asset"]; + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + asset_ = value; + onChanged(); + return this; + } + + private java.lang.Object balance_ = ""; + /** + * string balance = 3 [json_name = "balance"]; + * @return The balance. + */ + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string balance = 3 [json_name = "balance"]; + * @param value The balance to set. + * @return This builder for chaining. + */ + public Builder setBalance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** + * string balance = 3 [json_name = "balance"]; + * @return This builder for chaining. + */ + public Builder clearBalance() { + + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + /** + * string balance = 3 [json_name = "balance"]; + * @param value The bytes for balance to set. + * @return This builder for chaining. + */ + public Builder setBalanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + balance_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.AssetBalance) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetBalance) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CollateralOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Collateral) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + java.util.List + getBalancesList(); + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getBalances(int index); + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + int getBalancesCount(); + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + java.util.List + getBalancesOrBuilderList(); + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder getBalancesOrBuilder( + int index); + } + /** + *
+   * Collateral contains the balances per party
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Collateral} + */ + public static final class Collateral extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Collateral) + CollateralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Collateral.newBuilder() to construct. + private Collateral(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Collateral() { + balances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Collateral(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Collateral( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + balances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + balances_.add( + input.readMessage(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + balances_ = java.util.Collections.unmodifiableList(balances_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Collateral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Collateral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.Builder.class); + } + + public static final int BALANCES_FIELD_NUMBER = 1; + private java.util.List balances_; + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + @java.lang.Override + public java.util.List getBalancesList() { + return balances_; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + @java.lang.Override + public java.util.List + getBalancesOrBuilderList() { + return balances_; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + @java.lang.Override + public int getBalancesCount() { + return balances_.size(); + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getBalances(int index) { + return balances_.get(index); + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder getBalancesOrBuilder( + int index) { + return balances_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < balances_.size(); i++) { + output.writeMessage(1, balances_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < balances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, balances_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral) obj; + + if (!getBalancesList() + .equals(other.getBalancesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBalancesCount() > 0) { + hash = (37 * hash) + BALANCES_FIELD_NUMBER; + hash = (53 * hash) + getBalancesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Collateral contains the balances per party
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Collateral} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Collateral) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.CollateralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Collateral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Collateral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBalancesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (balancesBuilder_ == null) { + balances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + balancesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Collateral_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral(this); + int from_bitField0_ = bitField0_; + if (balancesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + balances_ = java.util.Collections.unmodifiableList(balances_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.balances_ = balances_; + } else { + result.balances_ = balancesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral.getDefaultInstance()) return this; + if (balancesBuilder_ == null) { + if (!other.balances_.isEmpty()) { + if (balances_.isEmpty()) { + balances_ = other.balances_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBalancesIsMutable(); + balances_.addAll(other.balances_); + } + onChanged(); + } + } else { + if (!other.balances_.isEmpty()) { + if (balancesBuilder_.isEmpty()) { + balancesBuilder_.dispose(); + balancesBuilder_ = null; + balances_ = other.balances_; + bitField0_ = (bitField0_ & ~0x00000001); + balancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBalancesFieldBuilder() : null; + } else { + balancesBuilder_.addAllMessages(other.balances_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List balances_ = + java.util.Collections.emptyList(); + private void ensureBalancesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + balances_ = new java.util.ArrayList(balances_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder> balancesBuilder_; + + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public java.util.List getBalancesList() { + if (balancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(balances_); + } else { + return balancesBuilder_.getMessageList(); + } + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public int getBalancesCount() { + if (balancesBuilder_ == null) { + return balances_.size(); + } else { + return balancesBuilder_.getCount(); + } + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance getBalances(int index) { + if (balancesBuilder_ == null) { + return balances_.get(index); + } else { + return balancesBuilder_.getMessage(index); + } + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder setBalances( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.set(index, value); + onChanged(); + } else { + balancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder setBalances( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.set(index, builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder addBalances(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.add(value); + onChanged(); + } else { + balancesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder addBalances( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance value) { + if (balancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBalancesIsMutable(); + balances_.add(index, value); + onChanged(); + } else { + balancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder addBalances( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.add(builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder addBalances( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder builderForValue) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.add(index, builderForValue.build()); + onChanged(); + } else { + balancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder addAllBalances( + java.lang.Iterable values) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, balances_); + onChanged(); + } else { + balancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder clearBalances() { + if (balancesBuilder_ == null) { + balances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + balancesBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public Builder removeBalances(int index) { + if (balancesBuilder_ == null) { + ensureBalancesIsMutable(); + balances_.remove(index); + onChanged(); + } else { + balancesBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder getBalancesBuilder( + int index) { + return getBalancesFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder getBalancesOrBuilder( + int index) { + if (balancesBuilder_ == null) { + return balances_.get(index); } else { + return balancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public java.util.List + getBalancesOrBuilderList() { + if (balancesBuilder_ != null) { + return balancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(balances_); + } + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder addBalancesBuilder() { + return getBalancesFieldBuilder().addBuilder( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder addBalancesBuilder( + int index) { + return getBalancesFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.AssetBalance balances = 1 [json_name = "balances"]; + */ + public java.util.List + getBalancesBuilderList() { + return getBalancesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder> + getBalancesFieldBuilder() { + if (balancesBuilder_ == null) { + balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalance.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.AssetBalanceOrBuilder>( + balances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + balances_ = null; + } + return balancesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Collateral) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Collateral) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Collateral parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Collateral(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Collateral getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NetParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.NetParams) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + java.util.List + getParamsList(); + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + io.vegaprotocol.vega.Vega.NetworkParameter getParams(int index); + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + int getParamsCount(); + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + java.util.List + getParamsOrBuilderList(); + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getParamsOrBuilder( + int index); + } + /** + *
+   * NetParams contains all network parameters
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.NetParams} + */ + public static final class NetParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.NetParams) + NetParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetParams.newBuilder() to construct. + private NetParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetParams() { + params_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetParams(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + params_.add( + input.readMessage(io.vegaprotocol.vega.Vega.NetworkParameter.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = java.util.Collections.unmodifiableList(params_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_NetParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_NetParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.Builder.class); + } + + public static final int PARAMS_FIELD_NUMBER = 1; + private java.util.List params_; + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + @java.lang.Override + public java.util.List getParamsList() { + return params_; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + @java.lang.Override + public java.util.List + getParamsOrBuilderList() { + return params_; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + @java.lang.Override + public int getParamsCount() { + return params_.size(); + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NetworkParameter getParams(int index) { + return params_.get(index); + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getParamsOrBuilder( + int index) { + return params_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < params_.size(); i++) { + output.writeMessage(1, params_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < params_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, params_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams) obj; + + if (!getParamsList() + .equals(other.getParamsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getParamsCount() > 0) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParamsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * NetParams contains all network parameters
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.NetParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.NetParams) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_NetParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_NetParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getParamsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + paramsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_NetParams_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams(this); + int from_bitField0_ = bitField0_; + if (paramsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + params_ = java.util.Collections.unmodifiableList(params_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.params_ = params_; + } else { + result.params_ = paramsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams.getDefaultInstance()) return this; + if (paramsBuilder_ == null) { + if (!other.params_.isEmpty()) { + if (params_.isEmpty()) { + params_ = other.params_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParamsIsMutable(); + params_.addAll(other.params_); + } + onChanged(); + } + } else { + if (!other.params_.isEmpty()) { + if (paramsBuilder_.isEmpty()) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + params_ = other.params_; + bitField0_ = (bitField0_ & ~0x00000001); + paramsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParamsFieldBuilder() : null; + } else { + paramsBuilder_.addAllMessages(other.params_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List params_ = + java.util.Collections.emptyList(); + private void ensureParamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + params_ = new java.util.ArrayList(params_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> paramsBuilder_; + + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public java.util.List getParamsList() { + if (paramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(params_); + } else { + return paramsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public int getParamsCount() { + if (paramsBuilder_ == null) { + return params_.size(); + } else { + return paramsBuilder_.getCount(); + } + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter getParams(int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder setParams( + int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.set(index, value); + onChanged(); + } else { + paramsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder setParams( + int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.set(index, builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder addParams(io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.add(value); + onChanged(); + } else { + paramsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder addParams( + int index, io.vegaprotocol.vega.Vega.NetworkParameter value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.add(index, value); + onChanged(); + } else { + paramsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder addParams( + io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder addParams( + int index, io.vegaprotocol.vega.Vega.NetworkParameter.Builder builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(index, builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder addAllParams( + java.lang.Iterable values) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, params_); + onChanged(); + } else { + paramsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + paramsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public Builder removeParams(int index) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.remove(index); + onChanged(); + } else { + paramsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder getParamsBuilder( + int index) { + return getParamsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder getParamsOrBuilder( + int index) { + if (paramsBuilder_ == null) { + return params_.get(index); } else { + return paramsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public java.util.List + getParamsOrBuilderList() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(params_); + } + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addParamsBuilder() { + return getParamsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public io.vegaprotocol.vega.Vega.NetworkParameter.Builder addParamsBuilder( + int index) { + return getParamsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Vega.NetworkParameter.getDefaultInstance()); + } + /** + * repeated .vega.NetworkParameter params = 1 [json_name = "params"]; + */ + public java.util.List + getParamsBuilderList() { + return getParamsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder> + getParamsFieldBuilder() { + if (paramsBuilder_ == null) { + paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Vega.NetworkParameter, io.vegaprotocol.vega.Vega.NetworkParameter.Builder, io.vegaprotocol.vega.Vega.NetworkParameterOrBuilder>( + params_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + params_ = null; + } + return paramsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.NetParams) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.NetParams) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.NetParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProposalsOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Proposals) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + java.util.List + getProposalsList(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + io.vegaprotocol.vega.Governance.Proposal getProposals(int index); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + int getProposalsCount(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + java.util.List + getProposalsOrBuilderList(); + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index); + } + /** + *
+   * Proposals will contain all accepted proposals
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Proposals} + */ + public static final class Proposals extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Proposals) + ProposalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Proposals.newBuilder() to construct. + private Proposals(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Proposals() { + proposals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Proposals(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Proposals( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + proposals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + proposals_.add( + input.readMessage(io.vegaprotocol.vega.Governance.Proposal.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + proposals_ = java.util.Collections.unmodifiableList(proposals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Proposals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Proposals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.Builder.class); + } + + public static final int PROPOSALS_FIELD_NUMBER = 1; + private java.util.List proposals_; + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public java.util.List getProposalsList() { + return proposals_; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public java.util.List + getProposalsOrBuilderList() { + return proposals_; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public int getProposalsCount() { + return proposals_.size(); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.Proposal getProposals(int index) { + return proposals_.get(index); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index) { + return proposals_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < proposals_.size(); i++) { + output.writeMessage(1, proposals_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < proposals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, proposals_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals) obj; + + if (!getProposalsList() + .equals(other.getProposalsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProposalsCount() > 0) { + hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; + hash = (53 * hash) + getProposalsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Proposals will contain all accepted proposals
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Proposals} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Proposals) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.ProposalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Proposals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Proposals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProposalsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (proposalsBuilder_ == null) { + proposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + proposalsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Proposals_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals(this); + int from_bitField0_ = bitField0_; + if (proposalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + proposals_ = java.util.Collections.unmodifiableList(proposals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.proposals_ = proposals_; + } else { + result.proposals_ = proposalsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals.getDefaultInstance()) return this; + if (proposalsBuilder_ == null) { + if (!other.proposals_.isEmpty()) { + if (proposals_.isEmpty()) { + proposals_ = other.proposals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProposalsIsMutable(); + proposals_.addAll(other.proposals_); + } + onChanged(); + } + } else { + if (!other.proposals_.isEmpty()) { + if (proposalsBuilder_.isEmpty()) { + proposalsBuilder_.dispose(); + proposalsBuilder_ = null; + proposals_ = other.proposals_; + bitField0_ = (bitField0_ & ~0x00000001); + proposalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProposalsFieldBuilder() : null; + } else { + proposalsBuilder_.addAllMessages(other.proposals_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List proposals_ = + java.util.Collections.emptyList(); + private void ensureProposalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + proposals_ = new java.util.ArrayList(proposals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder> proposalsBuilder_; + + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List getProposalsList() { + if (proposalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(proposals_); + } else { + return proposalsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public int getProposalsCount() { + if (proposalsBuilder_ == null) { + return proposals_.size(); + } else { + return proposalsBuilder_.getCount(); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal getProposals(int index) { + if (proposalsBuilder_ == null) { + return proposals_.get(index); + } else { + return proposalsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder setProposals( + int index, io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.set(index, value); + onChanged(); + } else { + proposalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder setProposals( + int index, io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.set(index, builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals(io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.add(value); + onChanged(); + } else { + proposalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + int index, io.vegaprotocol.vega.Governance.Proposal value) { + if (proposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposalsIsMutable(); + proposals_.add(index, value); + onChanged(); + } else { + proposalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.add(builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addProposals( + int index, io.vegaprotocol.vega.Governance.Proposal.Builder builderForValue) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.add(index, builderForValue.build()); + onChanged(); + } else { + proposalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder addAllProposals( + java.lang.Iterable values) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, proposals_); + onChanged(); + } else { + proposalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder clearProposals() { + if (proposalsBuilder_ == null) { + proposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + proposalsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public Builder removeProposals(int index) { + if (proposalsBuilder_ == null) { + ensureProposalsIsMutable(); + proposals_.remove(index); + onChanged(); + } else { + proposalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder getProposalsBuilder( + int index) { + return getProposalsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.ProposalOrBuilder getProposalsOrBuilder( + int index) { + if (proposalsBuilder_ == null) { + return proposals_.get(index); } else { + return proposalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List + getProposalsOrBuilderList() { + if (proposalsBuilder_ != null) { + return proposalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(proposals_); + } + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder addProposalsBuilder() { + return getProposalsFieldBuilder().addBuilder( + io.vegaprotocol.vega.Governance.Proposal.getDefaultInstance()); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public io.vegaprotocol.vega.Governance.Proposal.Builder addProposalsBuilder( + int index) { + return getProposalsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.Governance.Proposal.getDefaultInstance()); + } + /** + * repeated .vega.Proposal proposals = 1 [json_name = "proposals"]; + */ + public java.util.List + getProposalsBuilderList() { + return getProposalsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder> + getProposalsFieldBuilder() { + if (proposalsBuilder_ == null) { + proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.Governance.Proposal, io.vegaprotocol.vega.Governance.Proposal.Builder, io.vegaprotocol.vega.Governance.ProposalOrBuilder>( + proposals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + proposals_ = null; + } + return proposalsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Proposals) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Proposals) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Proposals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Proposals(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DelegateEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.DelegateEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string node = 2 [json_name = "node"]; + * @return The node. + */ + java.lang.String getNode(); + /** + * string node = 2 [json_name = "node"]; + * @return The bytes for node. + */ + com.google.protobuf.ByteString + getNodeBytes(); + + /** + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + * bool undelegate = 4 [json_name = "undelegate"]; + * @return The undelegate. + */ + boolean getUndelegate(); + + /** + * uint64 epoch_seq = 5 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + long getEpochSeq(); + } + /** + *
+   * Delegated amounts for party/node
+   * undelegate and epoch seq are only relevant for pending entries
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.DelegateEntry} + */ + public static final class DelegateEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.DelegateEntry) + DelegateEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use DelegateEntry.newBuilder() to construct. + private DelegateEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DelegateEntry() { + party_ = ""; + node_ = ""; + amount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DelegateEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DelegateEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + node_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + amount_ = s; + break; + } + case 32: { + + undelegate_ = input.readBool(); + break; + } + case 40: { + + epochSeq_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_DelegateEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_DelegateEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_FIELD_NUMBER = 2; + private volatile java.lang.Object node_; + /** + * string node = 2 [json_name = "node"]; + * @return The node. + */ + @java.lang.Override + public java.lang.String getNode() { + java.lang.Object ref = node_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + node_ = s; + return s; + } + } + /** + * string node = 2 [json_name = "node"]; + * @return The bytes for node. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeBytes() { + java.lang.Object ref = node_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + node_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private volatile java.lang.Object amount_; + /** + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNDELEGATE_FIELD_NUMBER = 4; + private boolean undelegate_; + /** + * bool undelegate = 4 [json_name = "undelegate"]; + * @return The undelegate. + */ + @java.lang.Override + public boolean getUndelegate() { + return undelegate_; + } + + public static final int EPOCH_SEQ_FIELD_NUMBER = 5; + private long epochSeq_; + /** + * uint64 epoch_seq = 5 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + @java.lang.Override + public long getEpochSeq() { + return epochSeq_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getNodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, node_); + } + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); + } + if (undelegate_ != false) { + output.writeBool(4, undelegate_); + } + if (epochSeq_ != 0L) { + output.writeUInt64(5, epochSeq_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getNodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, node_); + } + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); + } + if (undelegate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, undelegate_); + } + if (epochSeq_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, epochSeq_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getNode() + .equals(other.getNode())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (getUndelegate() + != other.getUndelegate()) return false; + if (getEpochSeq() + != other.getEpochSeq()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNode().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + UNDELEGATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUndelegate()); + hash = (37 * hash) + EPOCH_SEQ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEpochSeq()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Delegated amounts for party/node
+     * undelegate and epoch seq are only relevant for pending entries
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.DelegateEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.DelegateEntry) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_DelegateEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_DelegateEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + node_ = ""; + + amount_ = ""; + + undelegate_ = false; + + epochSeq_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_DelegateEntry_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry(this); + result.party_ = party_; + result.node_ = node_; + result.amount_ = amount_; + result.undelegate_ = undelegate_; + result.epochSeq_ = epochSeq_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getNode().isEmpty()) { + node_ = other.node_; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); + } + if (other.getUndelegate() != false) { + setUndelegate(other.getUndelegate()); + } + if (other.getEpochSeq() != 0L) { + setEpochSeq(other.getEpochSeq()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object node_ = ""; + /** + * string node = 2 [json_name = "node"]; + * @return The node. + */ + public java.lang.String getNode() { + java.lang.Object ref = node_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + node_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node = 2 [json_name = "node"]; + * @return The bytes for node. + */ + public com.google.protobuf.ByteString + getNodeBytes() { + java.lang.Object ref = node_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + node_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node = 2 [json_name = "node"]; + * @param value The node to set. + * @return This builder for chaining. + */ + public Builder setNode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + node_ = value; + onChanged(); + return this; + } + /** + * string node = 2 [json_name = "node"]; + * @return This builder for chaining. + */ + public Builder clearNode() { + + node_ = getDefaultInstance().getNode(); + onChanged(); + return this; + } + /** + * string node = 2 [json_name = "node"]; + * @param value The bytes for node to set. + * @return This builder for chaining. + */ + public Builder setNodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + node_ = value; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + * string amount = 3 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string amount = 3 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + amount_ = value; + onChanged(); + return this; + } + /** + * string amount = 3 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; + onChanged(); + return this; + } + + private boolean undelegate_ ; + /** + * bool undelegate = 4 [json_name = "undelegate"]; + * @return The undelegate. + */ + @java.lang.Override + public boolean getUndelegate() { + return undelegate_; + } + /** + * bool undelegate = 4 [json_name = "undelegate"]; + * @param value The undelegate to set. + * @return This builder for chaining. + */ + public Builder setUndelegate(boolean value) { + + undelegate_ = value; + onChanged(); + return this; + } + /** + * bool undelegate = 4 [json_name = "undelegate"]; + * @return This builder for chaining. + */ + public Builder clearUndelegate() { + + undelegate_ = false; + onChanged(); + return this; + } + + private long epochSeq_ ; + /** + * uint64 epoch_seq = 5 [json_name = "epochSeq"]; + * @return The epochSeq. + */ + @java.lang.Override + public long getEpochSeq() { + return epochSeq_; + } + /** + * uint64 epoch_seq = 5 [json_name = "epochSeq"]; + * @param value The epochSeq to set. + * @return This builder for chaining. + */ + public Builder setEpochSeq(long value) { + + epochSeq_ = value; + onChanged(); + return this; + } + /** + * uint64 epoch_seq = 5 [json_name = "epochSeq"]; + * @return This builder for chaining. + */ + public Builder clearEpochSeq() { + + epochSeq_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.DelegateEntry) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.DelegateEntry) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DelegateEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DelegateEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DelegateOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.Delegate) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + java.util.List + getActiveList(); + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getActive(int index); + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + int getActiveCount(); + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + java.util.List + getActiveOrBuilderList(); + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getActiveOrBuilder( + int index); + + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + java.util.List + getPendingList(); + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getPending(int index); + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + int getPendingCount(); + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + java.util.List + getPendingOrBuilderList(); + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getPendingOrBuilder( + int index); + } + /** + *
+   * Delegate contains all entries for a checkpoint
+   * 
+ * + * Protobuf type {@code vega.snapshot.v1.Delegate} + */ + public static final class Delegate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.snapshot.v1.Delegate) + DelegateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Delegate.newBuilder() to construct. + private Delegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Delegate() { + active_ = java.util.Collections.emptyList(); + pending_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Delegate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Delegate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + active_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + active_.add( + input.readMessage(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pending_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + pending_.add( + input.readMessage(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + active_ = java.util.Collections.unmodifiableList(active_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + pending_ = java.util.Collections.unmodifiableList(pending_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Delegate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Delegate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.Builder.class); + } + + public static final int ACTIVE_FIELD_NUMBER = 1; + private java.util.List active_; + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + @java.lang.Override + public java.util.List getActiveList() { + return active_; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + @java.lang.Override + public java.util.List + getActiveOrBuilderList() { + return active_; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + @java.lang.Override + public int getActiveCount() { + return active_.size(); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getActive(int index) { + return active_.get(index); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getActiveOrBuilder( + int index) { + return active_.get(index); + } + + public static final int PENDING_FIELD_NUMBER = 2; + private java.util.List pending_; + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + @java.lang.Override + public java.util.List getPendingList() { + return pending_; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + @java.lang.Override + public java.util.List + getPendingOrBuilderList() { + return pending_; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + @java.lang.Override + public int getPendingCount() { + return pending_.size(); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getPending(int index) { + return pending_.get(index); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getPendingOrBuilder( + int index) { + return pending_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < active_.size(); i++) { + output.writeMessage(1, active_.get(i)); + } + for (int i = 0; i < pending_.size(); i++) { + output.writeMessage(2, pending_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < active_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, active_.get(i)); + } + for (int i = 0; i < pending_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, pending_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate)) { + return super.equals(obj); + } + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate other = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate) obj; + + if (!getActiveList() + .equals(other.getActiveList())) return false; + if (!getPendingList() + .equals(other.getPendingList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getActiveCount() > 0) { + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + getActiveList().hashCode(); + } + if (getPendingCount() > 0) { + hash = (37 * hash) + PENDING_FIELD_NUMBER; + hash = (53 * hash) + getPendingList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Delegate contains all entries for a checkpoint
+     * 
+ * + * Protobuf type {@code vega.snapshot.v1.Delegate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.snapshot.v1.Delegate) + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Delegate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Delegate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.class, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.Builder.class); + } + + // Construct using io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActiveFieldBuilder(); + getPendingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (activeBuilder_ == null) { + active_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + activeBuilder_.clear(); + } + if (pendingBuilder_ == null) { + pending_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + pendingBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.internal_static_vega_snapshot_v1_Delegate_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate getDefaultInstanceForType() { + return io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate build() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate buildPartial() { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate result = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate(this); + int from_bitField0_ = bitField0_; + if (activeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + active_ = java.util.Collections.unmodifiableList(active_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.active_ = active_; + } else { + result.active_ = activeBuilder_.build(); + } + if (pendingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + pending_ = java.util.Collections.unmodifiableList(pending_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.pending_ = pending_; + } else { + result.pending_ = pendingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate) { + return mergeFrom((io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate other) { + if (other == io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate.getDefaultInstance()) return this; + if (activeBuilder_ == null) { + if (!other.active_.isEmpty()) { + if (active_.isEmpty()) { + active_ = other.active_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActiveIsMutable(); + active_.addAll(other.active_); + } + onChanged(); + } + } else { + if (!other.active_.isEmpty()) { + if (activeBuilder_.isEmpty()) { + activeBuilder_.dispose(); + activeBuilder_ = null; + active_ = other.active_; + bitField0_ = (bitField0_ & ~0x00000001); + activeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActiveFieldBuilder() : null; + } else { + activeBuilder_.addAllMessages(other.active_); + } + } + } + if (pendingBuilder_ == null) { + if (!other.pending_.isEmpty()) { + if (pending_.isEmpty()) { + pending_ = other.pending_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePendingIsMutable(); + pending_.addAll(other.pending_); + } + onChanged(); + } + } else { + if (!other.pending_.isEmpty()) { + if (pendingBuilder_.isEmpty()) { + pendingBuilder_.dispose(); + pendingBuilder_ = null; + pending_ = other.pending_; + bitField0_ = (bitField0_ & ~0x00000002); + pendingBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPendingFieldBuilder() : null; + } else { + pendingBuilder_.addAllMessages(other.pending_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List active_ = + java.util.Collections.emptyList(); + private void ensureActiveIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + active_ = new java.util.ArrayList(active_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder> activeBuilder_; + + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public java.util.List getActiveList() { + if (activeBuilder_ == null) { + return java.util.Collections.unmodifiableList(active_); + } else { + return activeBuilder_.getMessageList(); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public int getActiveCount() { + if (activeBuilder_ == null) { + return active_.size(); + } else { + return activeBuilder_.getCount(); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getActive(int index) { + if (activeBuilder_ == null) { + return active_.get(index); + } else { + return activeBuilder_.getMessage(index); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder setActive( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (activeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveIsMutable(); + active_.set(index, value); + onChanged(); + } else { + activeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder setActive( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (activeBuilder_ == null) { + ensureActiveIsMutable(); + active_.set(index, builderForValue.build()); + onChanged(); + } else { + activeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder addActive(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (activeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveIsMutable(); + active_.add(value); + onChanged(); + } else { + activeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder addActive( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (activeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveIsMutable(); + active_.add(index, value); + onChanged(); + } else { + activeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder addActive( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (activeBuilder_ == null) { + ensureActiveIsMutable(); + active_.add(builderForValue.build()); + onChanged(); + } else { + activeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder addActive( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (activeBuilder_ == null) { + ensureActiveIsMutable(); + active_.add(index, builderForValue.build()); + onChanged(); + } else { + activeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder addAllActive( + java.lang.Iterable values) { + if (activeBuilder_ == null) { + ensureActiveIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, active_); + onChanged(); + } else { + activeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder clearActive() { + if (activeBuilder_ == null) { + active_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activeBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public Builder removeActive(int index) { + if (activeBuilder_ == null) { + ensureActiveIsMutable(); + active_.remove(index); + onChanged(); + } else { + activeBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder getActiveBuilder( + int index) { + return getActiveFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getActiveOrBuilder( + int index) { + if (activeBuilder_ == null) { + return active_.get(index); } else { + return activeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public java.util.List + getActiveOrBuilderList() { + if (activeBuilder_ != null) { + return activeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(active_); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder addActiveBuilder() { + return getActiveFieldBuilder().addBuilder( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder addActiveBuilder( + int index) { + return getActiveFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry active = 1 [json_name = "active"]; + */ + public java.util.List + getActiveBuilderList() { + return getActiveFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder> + getActiveFieldBuilder() { + if (activeBuilder_ == null) { + activeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder>( + active_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + active_ = null; + } + return activeBuilder_; + } + + private java.util.List pending_ = + java.util.Collections.emptyList(); + private void ensurePendingIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + pending_ = new java.util.ArrayList(pending_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder> pendingBuilder_; + + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public java.util.List getPendingList() { + if (pendingBuilder_ == null) { + return java.util.Collections.unmodifiableList(pending_); + } else { + return pendingBuilder_.getMessageList(); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public int getPendingCount() { + if (pendingBuilder_ == null) { + return pending_.size(); + } else { + return pendingBuilder_.getCount(); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry getPending(int index) { + if (pendingBuilder_ == null) { + return pending_.get(index); + } else { + return pendingBuilder_.getMessage(index); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder setPending( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (pendingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingIsMutable(); + pending_.set(index, value); + onChanged(); + } else { + pendingBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder setPending( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (pendingBuilder_ == null) { + ensurePendingIsMutable(); + pending_.set(index, builderForValue.build()); + onChanged(); + } else { + pendingBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder addPending(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (pendingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingIsMutable(); + pending_.add(value); + onChanged(); + } else { + pendingBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder addPending( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry value) { + if (pendingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingIsMutable(); + pending_.add(index, value); + onChanged(); + } else { + pendingBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder addPending( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (pendingBuilder_ == null) { + ensurePendingIsMutable(); + pending_.add(builderForValue.build()); + onChanged(); + } else { + pendingBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder addPending( + int index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder builderForValue) { + if (pendingBuilder_ == null) { + ensurePendingIsMutable(); + pending_.add(index, builderForValue.build()); + onChanged(); + } else { + pendingBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder addAllPending( + java.lang.Iterable values) { + if (pendingBuilder_ == null) { + ensurePendingIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pending_); + onChanged(); + } else { + pendingBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder clearPending() { + if (pendingBuilder_ == null) { + pending_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + pendingBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public Builder removePending(int index) { + if (pendingBuilder_ == null) { + ensurePendingIsMutable(); + pending_.remove(index); + onChanged(); + } else { + pendingBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder getPendingBuilder( + int index) { + return getPendingFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder getPendingOrBuilder( + int index) { + if (pendingBuilder_ == null) { + return pending_.get(index); } else { + return pendingBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public java.util.List + getPendingOrBuilderList() { + if (pendingBuilder_ != null) { + return pendingBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pending_); + } + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder addPendingBuilder() { + return getPendingFieldBuilder().addBuilder( + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder addPendingBuilder( + int index) { + return getPendingFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.getDefaultInstance()); + } + /** + * repeated .vega.snapshot.v1.DelegateEntry pending = 2 [json_name = "pending"]; + */ + public java.util.List + getPendingBuilderList() { + return getPendingFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder> + getPendingFieldBuilder() { + if (pendingBuilder_ == null) { + pendingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntry.Builder, io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.DelegateEntryOrBuilder>( + pending_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + pending_ = null; + } + return pendingBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.snapshot.v1.Delegate) + } + + // @@protoc_insertion_point(class_scope:vega.snapshot.v1.Delegate) + private static final io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate(); + } + + public static io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Delegate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Delegate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Delegate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Snapshot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Snapshot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Checkpoint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Checkpoint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_AssetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_AssetEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Assets_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Assets_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_AssetBalance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_AssetBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Collateral_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Collateral_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_NetParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_NetParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Proposals_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Proposals_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_DelegateEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_DelegateEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_snapshot_v1_Delegate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_snapshot_v1_Delegate_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032snapshot/v1/snapshot.proto\022\020vega.snaps" + + "hot.v1\032\nvega.proto\032\014assets.proto\032\020govern" + + "ance.proto\"4\n\010Snapshot\022\022\n\004hash\030\001 \001(\014R\004ha" + + "sh\022\024\n\005state\030\002 \001(\014R\005state\"\263\001\n\nCheckpoint\022" + + "\036\n\ngovernance\030\001 \001(\014R\ngovernance\022\026\n\006asset" + + "s\030\002 \001(\014R\006assets\022\036\n\ncollateral\030\003 \001(\014R\ncol" + + "lateral\022-\n\022network_parameters\030\004 \001(\014R\021net" + + "workParameters\022\036\n\ndelegation\030\005 \001(\014R\ndele" + + "gation\"U\n\nAssetEntry\022\016\n\002id\030\001 \001(\tR\002id\0227\n\r" + + "asset_details\030\002 \001(\0132\022.vega.AssetDetailsR" + + "\014assetDetails\">\n\006Assets\0224\n\006assets\030\001 \003(\0132" + + "\034.vega.snapshot.v1.AssetEntryR\006assets\"T\n" + + "\014AssetBalance\022\024\n\005party\030\001 \001(\tR\005party\022\024\n\005a" + + "sset\030\002 \001(\tR\005asset\022\030\n\007balance\030\003 \001(\tR\007bala" + + "nce\"H\n\nCollateral\022:\n\010balances\030\001 \003(\0132\036.ve" + + "ga.snapshot.v1.AssetBalanceR\010balances\";\n" + + "\tNetParams\022.\n\006params\030\001 \003(\0132\026.vega.Networ" + + "kParameterR\006params\"9\n\tProposals\022,\n\tpropo" + + "sals\030\001 \003(\0132\016.vega.ProposalR\tproposals\"\216\001" + + "\n\rDelegateEntry\022\024\n\005party\030\001 \001(\tR\005party\022\022\n" + + "\004node\030\002 \001(\tR\004node\022\026\n\006amount\030\003 \001(\tR\006amoun" + + "t\022\036\n\nundelegate\030\004 \001(\010R\nundelegate\022\033\n\tepo" + + "ch_seq\030\005 \001(\004R\010epochSeq\"~\n\010Delegate\0227\n\006ac" + + "tive\030\001 \003(\0132\037.vega.snapshot.v1.DelegateEn" + + "tryR\006active\0229\n\007pending\030\002 \003(\0132\037.vega.snap" + + "shot.v1.DelegateEntryR\007pendingBO\n io.veg" + + "aprotocol.vega.snapshot.v1Z+code.vegapro" + + "tocol.io/vega/proto/snapshot/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.vegaprotocol.vega.Vega.getDescriptor(), + io.vegaprotocol.vega.Assets.getDescriptor(), + io.vegaprotocol.vega.Governance.getDescriptor(), + }); + internal_static_vega_snapshot_v1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_vega_snapshot_v1_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Snapshot_descriptor, + new java.lang.String[] { "Hash", "State", }); + internal_static_vega_snapshot_v1_Checkpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_vega_snapshot_v1_Checkpoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Checkpoint_descriptor, + new java.lang.String[] { "Governance", "Assets", "Collateral", "NetworkParameters", "Delegation", }); + internal_static_vega_snapshot_v1_AssetEntry_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_vega_snapshot_v1_AssetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_AssetEntry_descriptor, + new java.lang.String[] { "Id", "AssetDetails", }); + internal_static_vega_snapshot_v1_Assets_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_vega_snapshot_v1_Assets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Assets_descriptor, + new java.lang.String[] { "Assets", }); + internal_static_vega_snapshot_v1_AssetBalance_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_vega_snapshot_v1_AssetBalance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_AssetBalance_descriptor, + new java.lang.String[] { "Party", "Asset", "Balance", }); + internal_static_vega_snapshot_v1_Collateral_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_vega_snapshot_v1_Collateral_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Collateral_descriptor, + new java.lang.String[] { "Balances", }); + internal_static_vega_snapshot_v1_NetParams_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_vega_snapshot_v1_NetParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_NetParams_descriptor, + new java.lang.String[] { "Params", }); + internal_static_vega_snapshot_v1_Proposals_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_vega_snapshot_v1_Proposals_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Proposals_descriptor, + new java.lang.String[] { "Proposals", }); + internal_static_vega_snapshot_v1_DelegateEntry_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_vega_snapshot_v1_DelegateEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_DelegateEntry_descriptor, + new java.lang.String[] { "Party", "Node", "Amount", "Undelegate", "EpochSeq", }); + internal_static_vega_snapshot_v1_Delegate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_vega_snapshot_v1_Delegate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_snapshot_v1_Delegate_descriptor, + new java.lang.String[] { "Active", "Pending", }); + io.vegaprotocol.vega.Vega.getDescriptor(); + io.vegaprotocol.vega.Assets.getDescriptor(); + io.vegaprotocol.vega.Governance.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/grpc/clients/js/generated/api/trading_grpc_pb.d.ts b/grpc/clients/js/generated/api/trading_grpc_pb.d.ts index 6d18c0ee..aa07b2cb 100644 --- a/grpc/clients/js/generated/api/trading_grpc_pb.d.ts +++ b/grpc/clients/js/generated/api/trading_grpc_pb.d.ts @@ -1,391 +1,136 @@ -// GENERATED CODE -- DO NOT EDIT! - // package: api.v1 // file: api/trading.proto +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; import * as api_trading_pb from "../api/trading_pb"; -import * as grpc from "grpc"; +import * as vega_pb from "../vega_pb"; +import * as markets_pb from "../markets_pb"; +import * as governance_pb from "../governance_pb"; +import * as assets_pb from "../assets_pb"; +import * as events_v1_events_pb from "../events/v1/events_pb"; +import * as oracles_v1_spec_pb from "../oracles/v1/spec_pb"; +import * as oracles_v1_data_pb from "../oracles/v1/data_pb"; +import * as commands_v1_commands_pb from "../commands/v1/commands_pb"; +import * as commands_v1_transaction_pb from "../commands/v1/transaction_pb"; +import * as commands_v1_validator_commands_pb from "../commands/v1/validator_commands_pb"; +import * as github_com_mwitkow_go_proto_validators_validator_pb from "../github.com/mwitkow/go-proto-validators/validator_pb"; interface ITradingServiceService extends grpc.ServiceDefinition { - prepareSubmitOrder: grpc.MethodDefinition; - prepareCancelOrder: grpc.MethodDefinition; - prepareAmendOrder: grpc.MethodDefinition; - prepareWithdraw: grpc.MethodDefinition; - submitTransaction: grpc.MethodDefinition; - submitTransactionV2: grpc.MethodDefinition; - prepareProposalSubmission: grpc.MethodDefinition; - prepareVoteSubmission: grpc.MethodDefinition; - propagateChainEvent: grpc.MethodDefinition; - prepareLiquidityProvision: grpc.MethodDefinition; + submitTransactionV2: ITradingServiceService_ISubmitTransactionV2; + propagateChainEvent: ITradingServiceService_IPropagateChainEvent; + statistics: ITradingServiceService_IStatistics; + lastBlockHeight: ITradingServiceService_ILastBlockHeight; + getVegaTime: ITradingServiceService_IGetVegaTime; + observeEventBus: ITradingServiceService_IObserveEventBus; } -export const TradingServiceService: ITradingServiceService; - -export interface ITradingServiceServer extends grpc.UntypedServiceImplementation { - prepareSubmitOrder: grpc.handleUnaryCall; - prepareCancelOrder: grpc.handleUnaryCall; - prepareAmendOrder: grpc.handleUnaryCall; - prepareWithdraw: grpc.handleUnaryCall; - submitTransaction: grpc.handleUnaryCall; - submitTransactionV2: grpc.handleUnaryCall; - prepareProposalSubmission: grpc.handleUnaryCall; - prepareVoteSubmission: grpc.handleUnaryCall; - propagateChainEvent: grpc.handleUnaryCall; - prepareLiquidityProvision: grpc.handleUnaryCall; +interface ITradingServiceService_ISubmitTransactionV2 extends grpc.MethodDefinition { + path: "/api.v1.TradingService/SubmitTransactionV2"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; } - -export class TradingServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - prepareSubmitOrder(argument: api_trading_pb.PrepareSubmitOrderRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareSubmitOrder(argument: api_trading_pb.PrepareSubmitOrderRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareSubmitOrder(argument: api_trading_pb.PrepareSubmitOrderRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareCancelOrder(argument: api_trading_pb.PrepareCancelOrderRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareCancelOrder(argument: api_trading_pb.PrepareCancelOrderRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareCancelOrder(argument: api_trading_pb.PrepareCancelOrderRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareAmendOrder(argument: api_trading_pb.PrepareAmendOrderRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareAmendOrder(argument: api_trading_pb.PrepareAmendOrderRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareAmendOrder(argument: api_trading_pb.PrepareAmendOrderRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareWithdraw(argument: api_trading_pb.PrepareWithdrawRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareWithdraw(argument: api_trading_pb.PrepareWithdrawRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareWithdraw(argument: api_trading_pb.PrepareWithdrawRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransaction(argument: api_trading_pb.SubmitTransactionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransaction(argument: api_trading_pb.SubmitTransactionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransaction(argument: api_trading_pb.SubmitTransactionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransactionV2(argument: api_trading_pb.SubmitTransactionV2Request, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransactionV2(argument: api_trading_pb.SubmitTransactionV2Request, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - submitTransactionV2(argument: api_trading_pb.SubmitTransactionV2Request, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareProposalSubmission(argument: api_trading_pb.PrepareProposalSubmissionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareProposalSubmission(argument: api_trading_pb.PrepareProposalSubmissionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareProposalSubmission(argument: api_trading_pb.PrepareProposalSubmissionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareVoteSubmission(argument: api_trading_pb.PrepareVoteSubmissionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareVoteSubmission(argument: api_trading_pb.PrepareVoteSubmissionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareVoteSubmission(argument: api_trading_pb.PrepareVoteSubmissionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - propagateChainEvent(argument: api_trading_pb.PropagateChainEventRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - propagateChainEvent(argument: api_trading_pb.PropagateChainEventRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - propagateChainEvent(argument: api_trading_pb.PropagateChainEventRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareLiquidityProvision(argument: api_trading_pb.PrepareLiquidityProvisionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareLiquidityProvision(argument: api_trading_pb.PrepareLiquidityProvisionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - prepareLiquidityProvision(argument: api_trading_pb.PrepareLiquidityProvisionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; +interface ITradingServiceService_IPropagateChainEvent extends grpc.MethodDefinition { + path: "/api.v1.TradingService/PropagateChainEvent"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; } - -interface ITradingDataServiceService extends grpc.ServiceDefinition { - marketAccounts: grpc.MethodDefinition; - partyAccounts: grpc.MethodDefinition; - feeInfrastructureAccounts: grpc.MethodDefinition; - candles: grpc.MethodDefinition; - marketDataByID: grpc.MethodDefinition; - marketsData: grpc.MethodDefinition; - marketByID: grpc.MethodDefinition; - marketDepth: grpc.MethodDefinition; - markets: grpc.MethodDefinition; - orderByMarketAndID: grpc.MethodDefinition; - orderByReference: grpc.MethodDefinition; - ordersByMarket: grpc.MethodDefinition; - ordersByParty: grpc.MethodDefinition; - orderByID: grpc.MethodDefinition; - orderVersionsByID: grpc.MethodDefinition; - marginLevels: grpc.MethodDefinition; - parties: grpc.MethodDefinition; - partyByID: grpc.MethodDefinition; - positionsByParty: grpc.MethodDefinition; - lastTrade: grpc.MethodDefinition; - tradesByMarket: grpc.MethodDefinition; - tradesByOrder: grpc.MethodDefinition; - tradesByParty: grpc.MethodDefinition; - getProposals: grpc.MethodDefinition; - getProposalsByParty: grpc.MethodDefinition; - getVotesByParty: grpc.MethodDefinition; - getNewMarketProposals: grpc.MethodDefinition; - getUpdateMarketProposals: grpc.MethodDefinition; - getNetworkParametersProposals: grpc.MethodDefinition; - getNewAssetProposals: grpc.MethodDefinition; - getProposalByID: grpc.MethodDefinition; - getProposalByReference: grpc.MethodDefinition; - observeGovernance: grpc.MethodDefinition; - observePartyProposals: grpc.MethodDefinition; - observePartyVotes: grpc.MethodDefinition; - observeProposalVotes: grpc.MethodDefinition; - observeEventBus: grpc.MethodDefinition; - statistics: grpc.MethodDefinition; - lastBlockHeight: grpc.MethodDefinition; - getVegaTime: grpc.MethodDefinition; - accountsSubscribe: grpc.MethodDefinition; - candlesSubscribe: grpc.MethodDefinition; - marginLevelsSubscribe: grpc.MethodDefinition; - marketDepthSubscribe: grpc.MethodDefinition; - marketDepthUpdatesSubscribe: grpc.MethodDefinition; - marketsDataSubscribe: grpc.MethodDefinition; - ordersSubscribe: grpc.MethodDefinition; - positionsSubscribe: grpc.MethodDefinition; - tradesSubscribe: grpc.MethodDefinition; - transferResponsesSubscribe: grpc.MethodDefinition; - getNodeSignaturesAggregate: grpc.MethodDefinition; - assetByID: grpc.MethodDefinition; - assets: grpc.MethodDefinition; - estimateFee: grpc.MethodDefinition; - estimateMargin: grpc.MethodDefinition; - eRC20WithdrawalApproval: grpc.MethodDefinition; - withdrawal: grpc.MethodDefinition; - withdrawals: grpc.MethodDefinition; - deposit: grpc.MethodDefinition; - deposits: grpc.MethodDefinition; - networkParameters: grpc.MethodDefinition; - liquidityProvisions: grpc.MethodDefinition; - oracleSpec: grpc.MethodDefinition; - oracleSpecs: grpc.MethodDefinition; - oracleDataBySpec: grpc.MethodDefinition; +interface ITradingServiceService_IStatistics extends grpc.MethodDefinition { + path: "/api.v1.TradingService/Statistics"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITradingServiceService_ILastBlockHeight extends grpc.MethodDefinition { + path: "/api.v1.TradingService/LastBlockHeight"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITradingServiceService_IGetVegaTime extends grpc.MethodDefinition { + path: "/api.v1.TradingService/GetVegaTime"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ITradingServiceService_IObserveEventBus extends grpc.MethodDefinition { + path: "/api.v1.TradingService/ObserveEventBus"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; } -export const TradingDataServiceService: ITradingDataServiceService; +export const TradingServiceService: ITradingServiceService; + +export interface ITradingServiceServer extends grpc.UntypedServiceImplementation { + submitTransactionV2: grpc.handleUnaryCall; + propagateChainEvent: grpc.handleUnaryCall; + statistics: grpc.handleUnaryCall; + lastBlockHeight: grpc.handleUnaryCall; + getVegaTime: grpc.handleUnaryCall; + observeEventBus: grpc.handleBidiStreamingCall; +} -export interface ITradingDataServiceServer extends grpc.UntypedServiceImplementation { - marketAccounts: grpc.handleUnaryCall; - partyAccounts: grpc.handleUnaryCall; - feeInfrastructureAccounts: grpc.handleUnaryCall; - candles: grpc.handleUnaryCall; - marketDataByID: grpc.handleUnaryCall; - marketsData: grpc.handleUnaryCall; - marketByID: grpc.handleUnaryCall; - marketDepth: grpc.handleUnaryCall; - markets: grpc.handleUnaryCall; - orderByMarketAndID: grpc.handleUnaryCall; - orderByReference: grpc.handleUnaryCall; - ordersByMarket: grpc.handleUnaryCall; - ordersByParty: grpc.handleUnaryCall; - orderByID: grpc.handleUnaryCall; - orderVersionsByID: grpc.handleUnaryCall; - marginLevels: grpc.handleUnaryCall; - parties: grpc.handleUnaryCall; - partyByID: grpc.handleUnaryCall; - positionsByParty: grpc.handleUnaryCall; - lastTrade: grpc.handleUnaryCall; - tradesByMarket: grpc.handleUnaryCall; - tradesByOrder: grpc.handleUnaryCall; - tradesByParty: grpc.handleUnaryCall; - getProposals: grpc.handleUnaryCall; - getProposalsByParty: grpc.handleUnaryCall; - getVotesByParty: grpc.handleUnaryCall; - getNewMarketProposals: grpc.handleUnaryCall; - getUpdateMarketProposals: grpc.handleUnaryCall; - getNetworkParametersProposals: grpc.handleUnaryCall; - getNewAssetProposals: grpc.handleUnaryCall; - getProposalByID: grpc.handleUnaryCall; - getProposalByReference: grpc.handleUnaryCall; - observeGovernance: grpc.handleServerStreamingCall; - observePartyProposals: grpc.handleServerStreamingCall; - observePartyVotes: grpc.handleServerStreamingCall; - observeProposalVotes: grpc.handleServerStreamingCall; - observeEventBus: grpc.handleBidiStreamingCall; - statistics: grpc.handleUnaryCall; - lastBlockHeight: grpc.handleUnaryCall; - getVegaTime: grpc.handleUnaryCall; - accountsSubscribe: grpc.handleServerStreamingCall; - candlesSubscribe: grpc.handleServerStreamingCall; - marginLevelsSubscribe: grpc.handleServerStreamingCall; - marketDepthSubscribe: grpc.handleServerStreamingCall; - marketDepthUpdatesSubscribe: grpc.handleServerStreamingCall; - marketsDataSubscribe: grpc.handleServerStreamingCall; - ordersSubscribe: grpc.handleServerStreamingCall; - positionsSubscribe: grpc.handleServerStreamingCall; - tradesSubscribe: grpc.handleServerStreamingCall; - transferResponsesSubscribe: grpc.handleServerStreamingCall; - getNodeSignaturesAggregate: grpc.handleUnaryCall; - assetByID: grpc.handleUnaryCall; - assets: grpc.handleUnaryCall; - estimateFee: grpc.handleUnaryCall; - estimateMargin: grpc.handleUnaryCall; - eRC20WithdrawalApproval: grpc.handleUnaryCall; - withdrawal: grpc.handleUnaryCall; - withdrawals: grpc.handleUnaryCall; - deposit: grpc.handleUnaryCall; - deposits: grpc.handleUnaryCall; - networkParameters: grpc.handleUnaryCall; - liquidityProvisions: grpc.handleUnaryCall; - oracleSpec: grpc.handleUnaryCall; - oracleSpecs: grpc.handleUnaryCall; - oracleDataBySpec: grpc.handleUnaryCall; +export interface ITradingServiceClient { + submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + statistics(request: api_trading_pb.StatisticsRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + statistics(request: api_trading_pb.StatisticsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + statistics(request: api_trading_pb.StatisticsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + getVegaTime(request: api_trading_pb.GetVegaTimeRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + getVegaTime(request: api_trading_pb.GetVegaTimeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + getVegaTime(request: api_trading_pb.GetVegaTimeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + observeEventBus(): grpc.ClientDuplexStream; + observeEventBus(options: Partial): grpc.ClientDuplexStream; + observeEventBus(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; } -export class TradingDataServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - marketAccounts(argument: api_trading_pb.MarketAccountsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketAccounts(argument: api_trading_pb.MarketAccountsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketAccounts(argument: api_trading_pb.MarketAccountsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyAccounts(argument: api_trading_pb.PartyAccountsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyAccounts(argument: api_trading_pb.PartyAccountsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyAccounts(argument: api_trading_pb.PartyAccountsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - feeInfrastructureAccounts(argument: api_trading_pb.FeeInfrastructureAccountsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - feeInfrastructureAccounts(argument: api_trading_pb.FeeInfrastructureAccountsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - feeInfrastructureAccounts(argument: api_trading_pb.FeeInfrastructureAccountsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - candles(argument: api_trading_pb.CandlesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - candles(argument: api_trading_pb.CandlesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - candles(argument: api_trading_pb.CandlesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDataByID(argument: api_trading_pb.MarketDataByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDataByID(argument: api_trading_pb.MarketDataByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDataByID(argument: api_trading_pb.MarketDataByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketsData(argument: api_trading_pb.MarketsDataRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketsData(argument: api_trading_pb.MarketsDataRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketsData(argument: api_trading_pb.MarketsDataRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketByID(argument: api_trading_pb.MarketByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketByID(argument: api_trading_pb.MarketByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketByID(argument: api_trading_pb.MarketByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDepth(argument: api_trading_pb.MarketDepthRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDepth(argument: api_trading_pb.MarketDepthRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marketDepth(argument: api_trading_pb.MarketDepthRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - markets(argument: api_trading_pb.MarketsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - markets(argument: api_trading_pb.MarketsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - markets(argument: api_trading_pb.MarketsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByMarketAndID(argument: api_trading_pb.OrderByMarketAndIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByMarketAndID(argument: api_trading_pb.OrderByMarketAndIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByMarketAndID(argument: api_trading_pb.OrderByMarketAndIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByReference(argument: api_trading_pb.OrderByReferenceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByReference(argument: api_trading_pb.OrderByReferenceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByReference(argument: api_trading_pb.OrderByReferenceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByMarket(argument: api_trading_pb.OrdersByMarketRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByMarket(argument: api_trading_pb.OrdersByMarketRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByMarket(argument: api_trading_pb.OrdersByMarketRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByParty(argument: api_trading_pb.OrdersByPartyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByParty(argument: api_trading_pb.OrdersByPartyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - ordersByParty(argument: api_trading_pb.OrdersByPartyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByID(argument: api_trading_pb.OrderByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByID(argument: api_trading_pb.OrderByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderByID(argument: api_trading_pb.OrderByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderVersionsByID(argument: api_trading_pb.OrderVersionsByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderVersionsByID(argument: api_trading_pb.OrderVersionsByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - orderVersionsByID(argument: api_trading_pb.OrderVersionsByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marginLevels(argument: api_trading_pb.MarginLevelsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marginLevels(argument: api_trading_pb.MarginLevelsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - marginLevels(argument: api_trading_pb.MarginLevelsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - parties(argument: api_trading_pb.PartiesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - parties(argument: api_trading_pb.PartiesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - parties(argument: api_trading_pb.PartiesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyByID(argument: api_trading_pb.PartyByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyByID(argument: api_trading_pb.PartyByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - partyByID(argument: api_trading_pb.PartyByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - positionsByParty(argument: api_trading_pb.PositionsByPartyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - positionsByParty(argument: api_trading_pb.PositionsByPartyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - positionsByParty(argument: api_trading_pb.PositionsByPartyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastTrade(argument: api_trading_pb.LastTradeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastTrade(argument: api_trading_pb.LastTradeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastTrade(argument: api_trading_pb.LastTradeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByMarket(argument: api_trading_pb.TradesByMarketRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByMarket(argument: api_trading_pb.TradesByMarketRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByMarket(argument: api_trading_pb.TradesByMarketRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByOrder(argument: api_trading_pb.TradesByOrderRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByOrder(argument: api_trading_pb.TradesByOrderRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByOrder(argument: api_trading_pb.TradesByOrderRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByParty(argument: api_trading_pb.TradesByPartyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByParty(argument: api_trading_pb.TradesByPartyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - tradesByParty(argument: api_trading_pb.TradesByPartyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposals(argument: api_trading_pb.GetProposalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposals(argument: api_trading_pb.GetProposalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposals(argument: api_trading_pb.GetProposalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalsByParty(argument: api_trading_pb.GetProposalsByPartyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalsByParty(argument: api_trading_pb.GetProposalsByPartyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalsByParty(argument: api_trading_pb.GetProposalsByPartyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVotesByParty(argument: api_trading_pb.GetVotesByPartyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVotesByParty(argument: api_trading_pb.GetVotesByPartyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVotesByParty(argument: api_trading_pb.GetVotesByPartyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewMarketProposals(argument: api_trading_pb.GetNewMarketProposalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewMarketProposals(argument: api_trading_pb.GetNewMarketProposalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewMarketProposals(argument: api_trading_pb.GetNewMarketProposalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUpdateMarketProposals(argument: api_trading_pb.GetUpdateMarketProposalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUpdateMarketProposals(argument: api_trading_pb.GetUpdateMarketProposalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUpdateMarketProposals(argument: api_trading_pb.GetUpdateMarketProposalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNetworkParametersProposals(argument: api_trading_pb.GetNetworkParametersProposalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNetworkParametersProposals(argument: api_trading_pb.GetNetworkParametersProposalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNetworkParametersProposals(argument: api_trading_pb.GetNetworkParametersProposalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewAssetProposals(argument: api_trading_pb.GetNewAssetProposalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewAssetProposals(argument: api_trading_pb.GetNewAssetProposalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNewAssetProposals(argument: api_trading_pb.GetNewAssetProposalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByID(argument: api_trading_pb.GetProposalByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByID(argument: api_trading_pb.GetProposalByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByID(argument: api_trading_pb.GetProposalByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByReference(argument: api_trading_pb.GetProposalByReferenceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByReference(argument: api_trading_pb.GetProposalByReferenceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProposalByReference(argument: api_trading_pb.GetProposalByReferenceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - observeGovernance(argument: api_trading_pb.ObserveGovernanceRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - observeGovernance(argument: api_trading_pb.ObserveGovernanceRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - observePartyProposals(argument: api_trading_pb.ObservePartyProposalsRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - observePartyProposals(argument: api_trading_pb.ObservePartyProposalsRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - observePartyVotes(argument: api_trading_pb.ObservePartyVotesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - observePartyVotes(argument: api_trading_pb.ObservePartyVotesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - observeProposalVotes(argument: api_trading_pb.ObserveProposalVotesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - observeProposalVotes(argument: api_trading_pb.ObserveProposalVotesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - observeEventBus(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; - observeEventBus(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; - statistics(argument: api_trading_pb.StatisticsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - statistics(argument: api_trading_pb.StatisticsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - statistics(argument: api_trading_pb.StatisticsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastBlockHeight(argument: api_trading_pb.LastBlockHeightRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastBlockHeight(argument: api_trading_pb.LastBlockHeightRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lastBlockHeight(argument: api_trading_pb.LastBlockHeightRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVegaTime(argument: api_trading_pb.GetVegaTimeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVegaTime(argument: api_trading_pb.GetVegaTimeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVegaTime(argument: api_trading_pb.GetVegaTimeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - accountsSubscribe(argument: api_trading_pb.AccountsSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - accountsSubscribe(argument: api_trading_pb.AccountsSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - candlesSubscribe(argument: api_trading_pb.CandlesSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - candlesSubscribe(argument: api_trading_pb.CandlesSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - marginLevelsSubscribe(argument: api_trading_pb.MarginLevelsSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - marginLevelsSubscribe(argument: api_trading_pb.MarginLevelsSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - marketDepthSubscribe(argument: api_trading_pb.MarketDepthSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - marketDepthSubscribe(argument: api_trading_pb.MarketDepthSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - marketDepthUpdatesSubscribe(argument: api_trading_pb.MarketDepthUpdatesSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - marketDepthUpdatesSubscribe(argument: api_trading_pb.MarketDepthUpdatesSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - marketsDataSubscribe(argument: api_trading_pb.MarketsDataSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - marketsDataSubscribe(argument: api_trading_pb.MarketsDataSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - ordersSubscribe(argument: api_trading_pb.OrdersSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - ordersSubscribe(argument: api_trading_pb.OrdersSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - positionsSubscribe(argument: api_trading_pb.PositionsSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - positionsSubscribe(argument: api_trading_pb.PositionsSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - tradesSubscribe(argument: api_trading_pb.TradesSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - tradesSubscribe(argument: api_trading_pb.TradesSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - transferResponsesSubscribe(argument: api_trading_pb.TransferResponsesSubscribeRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - transferResponsesSubscribe(argument: api_trading_pb.TransferResponsesSubscribeRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - getNodeSignaturesAggregate(argument: api_trading_pb.GetNodeSignaturesAggregateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNodeSignaturesAggregate(argument: api_trading_pb.GetNodeSignaturesAggregateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNodeSignaturesAggregate(argument: api_trading_pb.GetNodeSignaturesAggregateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assetByID(argument: api_trading_pb.AssetByIDRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assetByID(argument: api_trading_pb.AssetByIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assetByID(argument: api_trading_pb.AssetByIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assets(argument: api_trading_pb.AssetsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assets(argument: api_trading_pb.AssetsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - assets(argument: api_trading_pb.AssetsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateFee(argument: api_trading_pb.EstimateFeeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateFee(argument: api_trading_pb.EstimateFeeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateFee(argument: api_trading_pb.EstimateFeeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateMargin(argument: api_trading_pb.EstimateMarginRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateMargin(argument: api_trading_pb.EstimateMarginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - estimateMargin(argument: api_trading_pb.EstimateMarginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - eRC20WithdrawalApproval(argument: api_trading_pb.ERC20WithdrawalApprovalRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - eRC20WithdrawalApproval(argument: api_trading_pb.ERC20WithdrawalApprovalRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - eRC20WithdrawalApproval(argument: api_trading_pb.ERC20WithdrawalApprovalRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawal(argument: api_trading_pb.WithdrawalRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawal(argument: api_trading_pb.WithdrawalRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawal(argument: api_trading_pb.WithdrawalRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawals(argument: api_trading_pb.WithdrawalsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawals(argument: api_trading_pb.WithdrawalsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - withdrawals(argument: api_trading_pb.WithdrawalsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposit(argument: api_trading_pb.DepositRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposit(argument: api_trading_pb.DepositRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposit(argument: api_trading_pb.DepositRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposits(argument: api_trading_pb.DepositsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposits(argument: api_trading_pb.DepositsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deposits(argument: api_trading_pb.DepositsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - networkParameters(argument: api_trading_pb.NetworkParametersRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - networkParameters(argument: api_trading_pb.NetworkParametersRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - networkParameters(argument: api_trading_pb.NetworkParametersRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - liquidityProvisions(argument: api_trading_pb.LiquidityProvisionsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - liquidityProvisions(argument: api_trading_pb.LiquidityProvisionsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - liquidityProvisions(argument: api_trading_pb.LiquidityProvisionsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpec(argument: api_trading_pb.OracleSpecRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpec(argument: api_trading_pb.OracleSpecRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpec(argument: api_trading_pb.OracleSpecRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpecs(argument: api_trading_pb.OracleSpecsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpecs(argument: api_trading_pb.OracleSpecsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleSpecs(argument: api_trading_pb.OracleSpecsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleDataBySpec(argument: api_trading_pb.OracleDataBySpecRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleDataBySpec(argument: api_trading_pb.OracleDataBySpecRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oracleDataBySpec(argument: api_trading_pb.OracleDataBySpecRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; +export class TradingServiceClient extends grpc.Client implements ITradingServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + public submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + public submitTransactionV2(request: api_trading_pb.SubmitTransactionV2Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.SubmitTransactionV2Response) => void): grpc.ClientUnaryCall; + public propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + public propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + public propagateChainEvent(request: api_trading_pb.PropagateChainEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.PropagateChainEventResponse) => void): grpc.ClientUnaryCall; + public statistics(request: api_trading_pb.StatisticsRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + public statistics(request: api_trading_pb.StatisticsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + public statistics(request: api_trading_pb.StatisticsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.StatisticsResponse) => void): grpc.ClientUnaryCall; + public lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + public lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + public lastBlockHeight(request: api_trading_pb.LastBlockHeightRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.LastBlockHeightResponse) => void): grpc.ClientUnaryCall; + public getVegaTime(request: api_trading_pb.GetVegaTimeRequest, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + public getVegaTime(request: api_trading_pb.GetVegaTimeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + public getVegaTime(request: api_trading_pb.GetVegaTimeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: api_trading_pb.GetVegaTimeResponse) => void): grpc.ClientUnaryCall; + public observeEventBus(options?: Partial): grpc.ClientDuplexStream; + public observeEventBus(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; } diff --git a/grpc/clients/js/generated/api/trading_grpc_pb.js b/grpc/clients/js/generated/api/trading_grpc_pb.js new file mode 100644 index 00000000..09edec34 --- /dev/null +++ b/grpc/clients/js/generated/api/trading_grpc_pb.js @@ -0,0 +1,226 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var api_trading_pb = require('../api/trading_pb.js'); +var vega_pb = require('../vega_pb.js'); +var markets_pb = require('../markets_pb.js'); +var governance_pb = require('../governance_pb.js'); +var assets_pb = require('../assets_pb.js'); +var events_v1_events_pb = require('../events/v1/events_pb.js'); +var oracles_v1_spec_pb = require('../oracles/v1/spec_pb.js'); +var oracles_v1_data_pb = require('../oracles/v1/data_pb.js'); +var commands_v1_commands_pb = require('../commands/v1/commands_pb.js'); +var commands_v1_transaction_pb = require('../commands/v1/transaction_pb.js'); +var commands_v1_validator_commands_pb = require('../commands/v1/validator_commands_pb.js'); +var github_com_mwitkow_go$proto$validators_validator_pb = require('../github.com/mwitkow/go-proto-validators/validator_pb.js'); + +function serialize_api_v1_GetVegaTimeRequest(arg) { + if (!(arg instanceof api_trading_pb.GetVegaTimeRequest)) { + throw new Error('Expected argument of type api.v1.GetVegaTimeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_GetVegaTimeRequest(buffer_arg) { + return api_trading_pb.GetVegaTimeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_GetVegaTimeResponse(arg) { + if (!(arg instanceof api_trading_pb.GetVegaTimeResponse)) { + throw new Error('Expected argument of type api.v1.GetVegaTimeResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_GetVegaTimeResponse(buffer_arg) { + return api_trading_pb.GetVegaTimeResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_LastBlockHeightRequest(arg) { + if (!(arg instanceof api_trading_pb.LastBlockHeightRequest)) { + throw new Error('Expected argument of type api.v1.LastBlockHeightRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_LastBlockHeightRequest(buffer_arg) { + return api_trading_pb.LastBlockHeightRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_LastBlockHeightResponse(arg) { + if (!(arg instanceof api_trading_pb.LastBlockHeightResponse)) { + throw new Error('Expected argument of type api.v1.LastBlockHeightResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_LastBlockHeightResponse(buffer_arg) { + return api_trading_pb.LastBlockHeightResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_ObserveEventBusRequest(arg) { + if (!(arg instanceof api_trading_pb.ObserveEventBusRequest)) { + throw new Error('Expected argument of type api.v1.ObserveEventBusRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_ObserveEventBusRequest(buffer_arg) { + return api_trading_pb.ObserveEventBusRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_ObserveEventBusResponse(arg) { + if (!(arg instanceof api_trading_pb.ObserveEventBusResponse)) { + throw new Error('Expected argument of type api.v1.ObserveEventBusResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_ObserveEventBusResponse(buffer_arg) { + return api_trading_pb.ObserveEventBusResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_PropagateChainEventRequest(arg) { + if (!(arg instanceof api_trading_pb.PropagateChainEventRequest)) { + throw new Error('Expected argument of type api.v1.PropagateChainEventRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_PropagateChainEventRequest(buffer_arg) { + return api_trading_pb.PropagateChainEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_PropagateChainEventResponse(arg) { + if (!(arg instanceof api_trading_pb.PropagateChainEventResponse)) { + throw new Error('Expected argument of type api.v1.PropagateChainEventResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_PropagateChainEventResponse(buffer_arg) { + return api_trading_pb.PropagateChainEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_StatisticsRequest(arg) { + if (!(arg instanceof api_trading_pb.StatisticsRequest)) { + throw new Error('Expected argument of type api.v1.StatisticsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_StatisticsRequest(buffer_arg) { + return api_trading_pb.StatisticsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_StatisticsResponse(arg) { + if (!(arg instanceof api_trading_pb.StatisticsResponse)) { + throw new Error('Expected argument of type api.v1.StatisticsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_StatisticsResponse(buffer_arg) { + return api_trading_pb.StatisticsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_SubmitTransactionV2Request(arg) { + if (!(arg instanceof api_trading_pb.SubmitTransactionV2Request)) { + throw new Error('Expected argument of type api.v1.SubmitTransactionV2Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_SubmitTransactionV2Request(buffer_arg) { + return api_trading_pb.SubmitTransactionV2Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_api_v1_SubmitTransactionV2Response(arg) { + if (!(arg instanceof api_trading_pb.SubmitTransactionV2Response)) { + throw new Error('Expected argument of type api.v1.SubmitTransactionV2Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_api_v1_SubmitTransactionV2Response(buffer_arg) { + return api_trading_pb.SubmitTransactionV2Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var TradingServiceService = exports.TradingServiceService = { + // Submit a signed transaction (v2) +submitTransactionV2: { + path: '/api.v1.TradingService/SubmitTransactionV2', + requestStream: false, + responseStream: false, + requestType: api_trading_pb.SubmitTransactionV2Request, + responseType: api_trading_pb.SubmitTransactionV2Response, + requestSerialize: serialize_api_v1_SubmitTransactionV2Request, + requestDeserialize: deserialize_api_v1_SubmitTransactionV2Request, + responseSerialize: serialize_api_v1_SubmitTransactionV2Response, + responseDeserialize: deserialize_api_v1_SubmitTransactionV2Response, + }, + // Propagate a chain event +propagateChainEvent: { + path: '/api.v1.TradingService/PropagateChainEvent', + requestStream: false, + responseStream: false, + requestType: api_trading_pb.PropagateChainEventRequest, + responseType: api_trading_pb.PropagateChainEventResponse, + requestSerialize: serialize_api_v1_PropagateChainEventRequest, + requestDeserialize: deserialize_api_v1_PropagateChainEventRequest, + responseSerialize: serialize_api_v1_PropagateChainEventResponse, + responseDeserialize: deserialize_api_v1_PropagateChainEventResponse, + }, + // Get Statistics on Vega +statistics: { + path: '/api.v1.TradingService/Statistics', + requestStream: false, + responseStream: false, + requestType: api_trading_pb.StatisticsRequest, + responseType: api_trading_pb.StatisticsResponse, + requestSerialize: serialize_api_v1_StatisticsRequest, + requestDeserialize: deserialize_api_v1_StatisticsRequest, + responseSerialize: serialize_api_v1_StatisticsResponse, + responseDeserialize: deserialize_api_v1_StatisticsResponse, + }, + // Get the height of the last tendermint block +lastBlockHeight: { + path: '/api.v1.TradingService/LastBlockHeight', + requestStream: false, + responseStream: false, + requestType: api_trading_pb.LastBlockHeightRequest, + responseType: api_trading_pb.LastBlockHeightResponse, + requestSerialize: serialize_api_v1_LastBlockHeightRequest, + requestDeserialize: deserialize_api_v1_LastBlockHeightRequest, + responseSerialize: serialize_api_v1_LastBlockHeightResponse, + responseDeserialize: deserialize_api_v1_LastBlockHeightResponse, + }, + // Get Time +getVegaTime: { + path: '/api.v1.TradingService/GetVegaTime', + requestStream: false, + responseStream: false, + requestType: api_trading_pb.GetVegaTimeRequest, + responseType: api_trading_pb.GetVegaTimeResponse, + requestSerialize: serialize_api_v1_GetVegaTimeRequest, + requestDeserialize: deserialize_api_v1_GetVegaTimeRequest, + responseSerialize: serialize_api_v1_GetVegaTimeResponse, + responseDeserialize: deserialize_api_v1_GetVegaTimeResponse, + }, + // Subscribe to a stream of events from the core +observeEventBus: { + path: '/api.v1.TradingService/ObserveEventBus', + requestStream: true, + responseStream: true, + requestType: api_trading_pb.ObserveEventBusRequest, + responseType: api_trading_pb.ObserveEventBusResponse, + requestSerialize: serialize_api_v1_ObserveEventBusRequest, + requestDeserialize: deserialize_api_v1_ObserveEventBusRequest, + responseSerialize: serialize_api_v1_ObserveEventBusResponse, + responseDeserialize: deserialize_api_v1_ObserveEventBusResponse, + }, +}; + +exports.TradingServiceClient = grpc.makeGenericClientConstructor(TradingServiceService); diff --git a/grpc/clients/js/generated/api/trading_pb.d.ts b/grpc/clients/js/generated/api/trading_pb.d.ts index ef48bd1f..6dd45582 100644 --- a/grpc/clients/js/generated/api/trading_pb.d.ts +++ b/grpc/clients/js/generated/api/trading_pb.d.ts @@ -1,6 +1,9 @@ // package: api.v1 // file: api/trading.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as vega_pb from "../vega_pb"; import * as markets_pb from "../markets_pb"; @@ -15,3404 +18,385 @@ import * as commands_v1_validator_commands_pb from "../commands/v1/validator_com import * as github_com_mwitkow_go_proto_validators_validator_pb from "../github.com/mwitkow/go-proto-validators/validator_pb"; export class PropagateChainEventRequest extends jspb.Message { - hasEvt(): boolean; - clearEvt(): void; - getEvt(): commands_v1_validator_commands_pb.ChainEvent | undefined; - setEvt(value?: commands_v1_validator_commands_pb.ChainEvent): void; - - getPubKey(): string; - setPubKey(value: string): void; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PropagateChainEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: PropagateChainEventRequest): PropagateChainEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PropagateChainEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PropagateChainEventRequest; - static deserializeBinaryFromReader(message: PropagateChainEventRequest, reader: jspb.BinaryReader): PropagateChainEventRequest; + getEvent(): Uint8Array | string; + getEvent_asU8(): Uint8Array; + getEvent_asB64(): string; + setEvent(value: Uint8Array | string): PropagateChainEventRequest; + getPubKey(): string; + setPubKey(value: string): PropagateChainEventRequest; + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): PropagateChainEventRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PropagateChainEventRequest.AsObject; + static toObject(includeInstance: boolean, msg: PropagateChainEventRequest): PropagateChainEventRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PropagateChainEventRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PropagateChainEventRequest; + static deserializeBinaryFromReader(message: PropagateChainEventRequest, reader: jspb.BinaryReader): PropagateChainEventRequest; } export namespace PropagateChainEventRequest { - export type AsObject = { - evt?: commands_v1_validator_commands_pb.ChainEvent.AsObject, - pubKey: string, - signature: Uint8Array | string, - } + export type AsObject = { + event: Uint8Array | string, + pubKey: string, + signature: Uint8Array | string, + } } export class PropagateChainEventResponse extends jspb.Message { - getSuccess(): boolean; - setSuccess(value: boolean): void; + getSuccess(): boolean; + setSuccess(value: boolean): PropagateChainEventResponse; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PropagateChainEventResponse.AsObject; - static toObject(includeInstance: boolean, msg: PropagateChainEventResponse): PropagateChainEventResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PropagateChainEventResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PropagateChainEventResponse; - static deserializeBinaryFromReader(message: PropagateChainEventResponse, reader: jspb.BinaryReader): PropagateChainEventResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PropagateChainEventResponse.AsObject; + static toObject(includeInstance: boolean, msg: PropagateChainEventResponse): PropagateChainEventResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PropagateChainEventResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PropagateChainEventResponse; + static deserializeBinaryFromReader(message: PropagateChainEventResponse, reader: jspb.BinaryReader): PropagateChainEventResponse; } export namespace PropagateChainEventResponse { - export type AsObject = { - success: boolean, - } -} - -export class SubmitTransactionRequest extends jspb.Message { - hasTx(): boolean; - clearTx(): void; - getTx(): vega_pb.SignedBundle | undefined; - setTx(value?: vega_pb.SignedBundle): void; - - getType(): SubmitTransactionRequest.TypeMap[keyof SubmitTransactionRequest.TypeMap]; - setType(value: SubmitTransactionRequest.TypeMap[keyof SubmitTransactionRequest.TypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitTransactionRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubmitTransactionRequest): SubmitTransactionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitTransactionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitTransactionRequest; - static deserializeBinaryFromReader(message: SubmitTransactionRequest, reader: jspb.BinaryReader): SubmitTransactionRequest; -} - -export namespace SubmitTransactionRequest { - export type AsObject = { - tx?: vega_pb.SignedBundle.AsObject, - type: SubmitTransactionRequest.TypeMap[keyof SubmitTransactionRequest.TypeMap], - } - - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_ASYNC: 1; - TYPE_SYNC: 2; - TYPE_COMMIT: 3; - } - - export const Type: TypeMap; -} - -export class SubmitTransactionResponse extends jspb.Message { - getSuccess(): boolean; - setSuccess(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitTransactionResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubmitTransactionResponse): SubmitTransactionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitTransactionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitTransactionResponse; - static deserializeBinaryFromReader(message: SubmitTransactionResponse, reader: jspb.BinaryReader): SubmitTransactionResponse; -} - -export namespace SubmitTransactionResponse { - export type AsObject = { - success: boolean, - } + export type AsObject = { + success: boolean, + } } export class SubmitTransactionV2Request extends jspb.Message { - hasTx(): boolean; - clearTx(): void; - getTx(): commands_v1_transaction_pb.Transaction | undefined; - setTx(value?: commands_v1_transaction_pb.Transaction): void; - getType(): SubmitTransactionV2Request.TypeMap[keyof SubmitTransactionV2Request.TypeMap]; - setType(value: SubmitTransactionV2Request.TypeMap[keyof SubmitTransactionV2Request.TypeMap]): void; + hasTx(): boolean; + clearTx(): void; + getTx(): commands_v1_transaction_pb.Transaction | undefined; + setTx(value?: commands_v1_transaction_pb.Transaction): SubmitTransactionV2Request; + getType(): SubmitTransactionV2Request.Type; + setType(value: SubmitTransactionV2Request.Type): SubmitTransactionV2Request; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitTransactionV2Request.AsObject; - static toObject(includeInstance: boolean, msg: SubmitTransactionV2Request): SubmitTransactionV2Request.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitTransactionV2Request, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitTransactionV2Request; - static deserializeBinaryFromReader(message: SubmitTransactionV2Request, reader: jspb.BinaryReader): SubmitTransactionV2Request; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubmitTransactionV2Request.AsObject; + static toObject(includeInstance: boolean, msg: SubmitTransactionV2Request): SubmitTransactionV2Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubmitTransactionV2Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubmitTransactionV2Request; + static deserializeBinaryFromReader(message: SubmitTransactionV2Request, reader: jspb.BinaryReader): SubmitTransactionV2Request; } export namespace SubmitTransactionV2Request { - export type AsObject = { - tx?: commands_v1_transaction_pb.Transaction.AsObject, - type: SubmitTransactionV2Request.TypeMap[keyof SubmitTransactionV2Request.TypeMap], - } + export type AsObject = { + tx?: commands_v1_transaction_pb.Transaction.AsObject, + type: SubmitTransactionV2Request.Type, + } - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_ASYNC: 1; - TYPE_SYNC: 2; - TYPE_COMMIT: 3; - } + export enum Type { + TYPE_UNSPECIFIED = 0, + TYPE_ASYNC = 1, + TYPE_SYNC = 2, + TYPE_COMMIT = 3, + } - export const Type: TypeMap; } export class SubmitTransactionV2Response extends jspb.Message { - getSuccess(): boolean; - setSuccess(value: boolean): void; + getSuccess(): boolean; + setSuccess(value: boolean): SubmitTransactionV2Response; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitTransactionV2Response.AsObject; - static toObject(includeInstance: boolean, msg: SubmitTransactionV2Response): SubmitTransactionV2Response.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitTransactionV2Response, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitTransactionV2Response; - static deserializeBinaryFromReader(message: SubmitTransactionV2Response, reader: jspb.BinaryReader): SubmitTransactionV2Response; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubmitTransactionV2Response.AsObject; + static toObject(includeInstance: boolean, msg: SubmitTransactionV2Response): SubmitTransactionV2Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubmitTransactionV2Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubmitTransactionV2Response; + static deserializeBinaryFromReader(message: SubmitTransactionV2Response, reader: jspb.BinaryReader): SubmitTransactionV2Response; } export namespace SubmitTransactionV2Response { - export type AsObject = { - success: boolean, - } -} - -export class PrepareWithdrawRequest extends jspb.Message { - hasWithdraw(): boolean; - clearWithdraw(): void; - getWithdraw(): commands_v1_commands_pb.WithdrawSubmission | undefined; - setWithdraw(value?: commands_v1_commands_pb.WithdrawSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareWithdrawRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareWithdrawRequest): PrepareWithdrawRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareWithdrawRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareWithdrawRequest; - static deserializeBinaryFromReader(message: PrepareWithdrawRequest, reader: jspb.BinaryReader): PrepareWithdrawRequest; -} - -export namespace PrepareWithdrawRequest { - export type AsObject = { - withdraw?: commands_v1_commands_pb.WithdrawSubmission.AsObject, - } -} - -export class PrepareWithdrawResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareWithdrawResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareWithdrawResponse): PrepareWithdrawResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareWithdrawResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareWithdrawResponse; - static deserializeBinaryFromReader(message: PrepareWithdrawResponse, reader: jspb.BinaryReader): PrepareWithdrawResponse; -} - -export namespace PrepareWithdrawResponse { - export type AsObject = { - blob: Uint8Array | string, - } -} - -export class PrepareSubmitOrderResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - getSubmitId(): string; - setSubmitId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareSubmitOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareSubmitOrderResponse): PrepareSubmitOrderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareSubmitOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareSubmitOrderResponse; - static deserializeBinaryFromReader(message: PrepareSubmitOrderResponse, reader: jspb.BinaryReader): PrepareSubmitOrderResponse; -} - -export namespace PrepareSubmitOrderResponse { - export type AsObject = { - blob: Uint8Array | string, - submitId: string, - } -} - -export class PrepareCancelOrderResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareCancelOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareCancelOrderResponse): PrepareCancelOrderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareCancelOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareCancelOrderResponse; - static deserializeBinaryFromReader(message: PrepareCancelOrderResponse, reader: jspb.BinaryReader): PrepareCancelOrderResponse; -} - -export namespace PrepareCancelOrderResponse { - export type AsObject = { - blob: Uint8Array | string, - } -} - -export class PrepareAmendOrderResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareAmendOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareAmendOrderResponse): PrepareAmendOrderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareAmendOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareAmendOrderResponse; - static deserializeBinaryFromReader(message: PrepareAmendOrderResponse, reader: jspb.BinaryReader): PrepareAmendOrderResponse; -} - -export namespace PrepareAmendOrderResponse { - export type AsObject = { - blob: Uint8Array | string, - } -} - -export class PrepareSubmitOrderRequest extends jspb.Message { - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.OrderSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareSubmitOrderRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareSubmitOrderRequest): PrepareSubmitOrderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareSubmitOrderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareSubmitOrderRequest; - static deserializeBinaryFromReader(message: PrepareSubmitOrderRequest, reader: jspb.BinaryReader): PrepareSubmitOrderRequest; -} - -export namespace PrepareSubmitOrderRequest { - export type AsObject = { - submission?: commands_v1_commands_pb.OrderSubmission.AsObject, - } -} - -export class PrepareCancelOrderRequest extends jspb.Message { - hasCancellation(): boolean; - clearCancellation(): void; - getCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; - setCancellation(value?: commands_v1_commands_pb.OrderCancellation): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareCancelOrderRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareCancelOrderRequest): PrepareCancelOrderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareCancelOrderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareCancelOrderRequest; - static deserializeBinaryFromReader(message: PrepareCancelOrderRequest, reader: jspb.BinaryReader): PrepareCancelOrderRequest; -} - -export namespace PrepareCancelOrderRequest { - export type AsObject = { - cancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, - } -} - -export class PrepareAmendOrderRequest extends jspb.Message { - hasAmendment(): boolean; - clearAmendment(): void; - getAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; - setAmendment(value?: commands_v1_commands_pb.OrderAmendment): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareAmendOrderRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareAmendOrderRequest): PrepareAmendOrderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareAmendOrderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareAmendOrderRequest; - static deserializeBinaryFromReader(message: PrepareAmendOrderRequest, reader: jspb.BinaryReader): PrepareAmendOrderRequest; -} - -export namespace PrepareAmendOrderRequest { - export type AsObject = { - amendment?: commands_v1_commands_pb.OrderAmendment.AsObject, - } -} - -export class AssetsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssetsRequest.AsObject; - static toObject(includeInstance: boolean, msg: AssetsRequest): AssetsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssetsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssetsRequest; - static deserializeBinaryFromReader(message: AssetsRequest, reader: jspb.BinaryReader): AssetsRequest; -} - -export namespace AssetsRequest { - export type AsObject = { - } -} - -export class AssetsResponse extends jspb.Message { - clearAssetsList(): void; - getAssetsList(): Array; - setAssetsList(value: Array): void; - addAssets(value?: assets_pb.Asset, index?: number): assets_pb.Asset; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssetsResponse.AsObject; - static toObject(includeInstance: boolean, msg: AssetsResponse): AssetsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssetsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssetsResponse; - static deserializeBinaryFromReader(message: AssetsResponse, reader: jspb.BinaryReader): AssetsResponse; -} - -export namespace AssetsResponse { - export type AsObject = { - assetsList: Array, - } -} - -export class AssetByIDRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssetByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: AssetByIDRequest): AssetByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssetByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssetByIDRequest; - static deserializeBinaryFromReader(message: AssetByIDRequest, reader: jspb.BinaryReader): AssetByIDRequest; -} - -export namespace AssetByIDRequest { - export type AsObject = { - id: string, - } -} - -export class AssetByIDResponse extends jspb.Message { - hasAsset(): boolean; - clearAsset(): void; - getAsset(): assets_pb.Asset | undefined; - setAsset(value?: assets_pb.Asset): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssetByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: AssetByIDResponse): AssetByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssetByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssetByIDResponse; - static deserializeBinaryFromReader(message: AssetByIDResponse, reader: jspb.BinaryReader): AssetByIDResponse; -} - -export namespace AssetByIDResponse { - export type AsObject = { - asset?: assets_pb.Asset.AsObject, - } -} - -export class GetNodeSignaturesAggregateRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNodeSignaturesAggregateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNodeSignaturesAggregateRequest): GetNodeSignaturesAggregateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNodeSignaturesAggregateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNodeSignaturesAggregateRequest; - static deserializeBinaryFromReader(message: GetNodeSignaturesAggregateRequest, reader: jspb.BinaryReader): GetNodeSignaturesAggregateRequest; -} - -export namespace GetNodeSignaturesAggregateRequest { - export type AsObject = { - id: string, - } -} - -export class GetNodeSignaturesAggregateResponse extends jspb.Message { - clearSignaturesList(): void; - getSignaturesList(): Array; - setSignaturesList(value: Array): void; - addSignatures(value?: commands_v1_validator_commands_pb.NodeSignature, index?: number): commands_v1_validator_commands_pb.NodeSignature; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNodeSignaturesAggregateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNodeSignaturesAggregateResponse): GetNodeSignaturesAggregateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNodeSignaturesAggregateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNodeSignaturesAggregateResponse; - static deserializeBinaryFromReader(message: GetNodeSignaturesAggregateResponse, reader: jspb.BinaryReader): GetNodeSignaturesAggregateResponse; -} - -export namespace GetNodeSignaturesAggregateResponse { - export type AsObject = { - signaturesList: Array, - } -} - -export class OptionalProposalState extends jspb.Message { - getValue(): governance_pb.Proposal.StateMap[keyof governance_pb.Proposal.StateMap]; - setValue(value: governance_pb.Proposal.StateMap[keyof governance_pb.Proposal.StateMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OptionalProposalState.AsObject; - static toObject(includeInstance: boolean, msg: OptionalProposalState): OptionalProposalState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OptionalProposalState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OptionalProposalState; - static deserializeBinaryFromReader(message: OptionalProposalState, reader: jspb.BinaryReader): OptionalProposalState; -} - -export namespace OptionalProposalState { - export type AsObject = { - value: governance_pb.Proposal.StateMap[keyof governance_pb.Proposal.StateMap], - } -} - -export class GetProposalsRequest extends jspb.Message { - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalsRequest): GetProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalsRequest; - static deserializeBinaryFromReader(message: GetProposalsRequest, reader: jspb.BinaryReader): GetProposalsRequest; -} - -export namespace GetProposalsRequest { - export type AsObject = { - selectInState?: OptionalProposalState.AsObject, - } -} - -export class GetProposalsResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalsResponse): GetProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalsResponse; - static deserializeBinaryFromReader(message: GetProposalsResponse, reader: jspb.BinaryReader): GetProposalsResponse; -} - -export namespace GetProposalsResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetProposalsByPartyRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalsByPartyRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalsByPartyRequest): GetProposalsByPartyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalsByPartyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalsByPartyRequest; - static deserializeBinaryFromReader(message: GetProposalsByPartyRequest, reader: jspb.BinaryReader): GetProposalsByPartyRequest; -} - -export namespace GetProposalsByPartyRequest { - export type AsObject = { - partyId: string, - selectInState?: OptionalProposalState.AsObject, - } -} - -export class GetProposalsByPartyResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalsByPartyResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalsByPartyResponse): GetProposalsByPartyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalsByPartyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalsByPartyResponse; - static deserializeBinaryFromReader(message: GetProposalsByPartyResponse, reader: jspb.BinaryReader): GetProposalsByPartyResponse; -} - -export namespace GetProposalsByPartyResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetVotesByPartyRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVotesByPartyRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetVotesByPartyRequest): GetVotesByPartyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVotesByPartyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVotesByPartyRequest; - static deserializeBinaryFromReader(message: GetVotesByPartyRequest, reader: jspb.BinaryReader): GetVotesByPartyRequest; -} - -export namespace GetVotesByPartyRequest { - export type AsObject = { - partyId: string, - } -} - -export class GetVotesByPartyResponse extends jspb.Message { - clearVotesList(): void; - getVotesList(): Array; - setVotesList(value: Array): void; - addVotes(value?: governance_pb.Vote, index?: number): governance_pb.Vote; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVotesByPartyResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetVotesByPartyResponse): GetVotesByPartyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVotesByPartyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVotesByPartyResponse; - static deserializeBinaryFromReader(message: GetVotesByPartyResponse, reader: jspb.BinaryReader): GetVotesByPartyResponse; -} - -export namespace GetVotesByPartyResponse { - export type AsObject = { - votesList: Array, - } -} - -export class GetNewMarketProposalsRequest extends jspb.Message { - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewMarketProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNewMarketProposalsRequest): GetNewMarketProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNewMarketProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewMarketProposalsRequest; - static deserializeBinaryFromReader(message: GetNewMarketProposalsRequest, reader: jspb.BinaryReader): GetNewMarketProposalsRequest; -} - -export namespace GetNewMarketProposalsRequest { - export type AsObject = { - selectInState?: OptionalProposalState.AsObject, - } + export type AsObject = { + success: boolean, + } } -export class GetNewMarketProposalsResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewMarketProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNewMarketProposalsResponse): GetNewMarketProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNewMarketProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewMarketProposalsResponse; - static deserializeBinaryFromReader(message: GetNewMarketProposalsResponse, reader: jspb.BinaryReader): GetNewMarketProposalsResponse; -} - -export namespace GetNewMarketProposalsResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetUpdateMarketProposalsRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUpdateMarketProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetUpdateMarketProposalsRequest): GetUpdateMarketProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetUpdateMarketProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUpdateMarketProposalsRequest; - static deserializeBinaryFromReader(message: GetUpdateMarketProposalsRequest, reader: jspb.BinaryReader): GetUpdateMarketProposalsRequest; -} - -export namespace GetUpdateMarketProposalsRequest { - export type AsObject = { - marketId: string, - selectInState?: OptionalProposalState.AsObject, - } -} - -export class GetUpdateMarketProposalsResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUpdateMarketProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetUpdateMarketProposalsResponse): GetUpdateMarketProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetUpdateMarketProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUpdateMarketProposalsResponse; - static deserializeBinaryFromReader(message: GetUpdateMarketProposalsResponse, reader: jspb.BinaryReader): GetUpdateMarketProposalsResponse; -} - -export namespace GetUpdateMarketProposalsResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetNetworkParametersProposalsRequest extends jspb.Message { - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNetworkParametersProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNetworkParametersProposalsRequest): GetNetworkParametersProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNetworkParametersProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNetworkParametersProposalsRequest; - static deserializeBinaryFromReader(message: GetNetworkParametersProposalsRequest, reader: jspb.BinaryReader): GetNetworkParametersProposalsRequest; -} - -export namespace GetNetworkParametersProposalsRequest { - export type AsObject = { - selectInState?: OptionalProposalState.AsObject, - } -} - -export class GetNetworkParametersProposalsResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNetworkParametersProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNetworkParametersProposalsResponse): GetNetworkParametersProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNetworkParametersProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNetworkParametersProposalsResponse; - static deserializeBinaryFromReader(message: GetNetworkParametersProposalsResponse, reader: jspb.BinaryReader): GetNetworkParametersProposalsResponse; -} - -export namespace GetNetworkParametersProposalsResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetNewAssetProposalsRequest extends jspb.Message { - hasSelectInState(): boolean; - clearSelectInState(): void; - getSelectInState(): OptionalProposalState | undefined; - setSelectInState(value?: OptionalProposalState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewAssetProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNewAssetProposalsRequest): GetNewAssetProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNewAssetProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewAssetProposalsRequest; - static deserializeBinaryFromReader(message: GetNewAssetProposalsRequest, reader: jspb.BinaryReader): GetNewAssetProposalsRequest; -} - -export namespace GetNewAssetProposalsRequest { - export type AsObject = { - selectInState?: OptionalProposalState.AsObject, - } -} - -export class GetNewAssetProposalsResponse extends jspb.Message { - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: governance_pb.GovernanceData, index?: number): governance_pb.GovernanceData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewAssetProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNewAssetProposalsResponse): GetNewAssetProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNewAssetProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewAssetProposalsResponse; - static deserializeBinaryFromReader(message: GetNewAssetProposalsResponse, reader: jspb.BinaryReader): GetNewAssetProposalsResponse; -} - -export namespace GetNewAssetProposalsResponse { - export type AsObject = { - dataList: Array, - } -} - -export class GetProposalByIDRequest extends jspb.Message { - getProposalId(): string; - setProposalId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalByIDRequest): GetProposalByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalByIDRequest; - static deserializeBinaryFromReader(message: GetProposalByIDRequest, reader: jspb.BinaryReader): GetProposalByIDRequest; -} - -export namespace GetProposalByIDRequest { - export type AsObject = { - proposalId: string, - } -} - -export class GetProposalByIDResponse extends jspb.Message { - hasData(): boolean; - clearData(): void; - getData(): governance_pb.GovernanceData | undefined; - setData(value?: governance_pb.GovernanceData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalByIDResponse): GetProposalByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalByIDResponse; - static deserializeBinaryFromReader(message: GetProposalByIDResponse, reader: jspb.BinaryReader): GetProposalByIDResponse; -} - -export namespace GetProposalByIDResponse { - export type AsObject = { - data?: governance_pb.GovernanceData.AsObject, - } -} - -export class GetProposalByReferenceRequest extends jspb.Message { - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalByReferenceRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalByReferenceRequest): GetProposalByReferenceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalByReferenceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalByReferenceRequest; - static deserializeBinaryFromReader(message: GetProposalByReferenceRequest, reader: jspb.BinaryReader): GetProposalByReferenceRequest; -} - -export namespace GetProposalByReferenceRequest { - export type AsObject = { - reference: string, - } -} - -export class GetProposalByReferenceResponse extends jspb.Message { - hasData(): boolean; - clearData(): void; - getData(): governance_pb.GovernanceData | undefined; - setData(value?: governance_pb.GovernanceData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProposalByReferenceResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetProposalByReferenceResponse): GetProposalByReferenceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProposalByReferenceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProposalByReferenceResponse; - static deserializeBinaryFromReader(message: GetProposalByReferenceResponse, reader: jspb.BinaryReader): GetProposalByReferenceResponse; -} - -export namespace GetProposalByReferenceResponse { - export type AsObject = { - data?: governance_pb.GovernanceData.AsObject, - } -} - -export class ObserveGovernanceRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveGovernanceRequest.AsObject; - static toObject(includeInstance: boolean, msg: ObserveGovernanceRequest): ObserveGovernanceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveGovernanceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveGovernanceRequest; - static deserializeBinaryFromReader(message: ObserveGovernanceRequest, reader: jspb.BinaryReader): ObserveGovernanceRequest; -} - -export namespace ObserveGovernanceRequest { - export type AsObject = { - } -} - -export class ObserveGovernanceResponse extends jspb.Message { - hasData(): boolean; - clearData(): void; - getData(): governance_pb.GovernanceData | undefined; - setData(value?: governance_pb.GovernanceData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveGovernanceResponse.AsObject; - static toObject(includeInstance: boolean, msg: ObserveGovernanceResponse): ObserveGovernanceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveGovernanceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveGovernanceResponse; - static deserializeBinaryFromReader(message: ObserveGovernanceResponse, reader: jspb.BinaryReader): ObserveGovernanceResponse; -} - -export namespace ObserveGovernanceResponse { - export type AsObject = { - data?: governance_pb.GovernanceData.AsObject, - } -} - -export class ObservePartyProposalsRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObservePartyProposalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ObservePartyProposalsRequest): ObservePartyProposalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObservePartyProposalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObservePartyProposalsRequest; - static deserializeBinaryFromReader(message: ObservePartyProposalsRequest, reader: jspb.BinaryReader): ObservePartyProposalsRequest; -} - -export namespace ObservePartyProposalsRequest { - export type AsObject = { - partyId: string, - } -} - -export class ObservePartyProposalsResponse extends jspb.Message { - hasData(): boolean; - clearData(): void; - getData(): governance_pb.GovernanceData | undefined; - setData(value?: governance_pb.GovernanceData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObservePartyProposalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ObservePartyProposalsResponse): ObservePartyProposalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObservePartyProposalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObservePartyProposalsResponse; - static deserializeBinaryFromReader(message: ObservePartyProposalsResponse, reader: jspb.BinaryReader): ObservePartyProposalsResponse; -} - -export namespace ObservePartyProposalsResponse { - export type AsObject = { - data?: governance_pb.GovernanceData.AsObject, - } -} - -export class ObserveProposalVotesRequest extends jspb.Message { - getProposalId(): string; - setProposalId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveProposalVotesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ObserveProposalVotesRequest): ObserveProposalVotesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveProposalVotesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveProposalVotesRequest; - static deserializeBinaryFromReader(message: ObserveProposalVotesRequest, reader: jspb.BinaryReader): ObserveProposalVotesRequest; -} - -export namespace ObserveProposalVotesRequest { - export type AsObject = { - proposalId: string, - } -} - -export class ObserveProposalVotesResponse extends jspb.Message { - hasVote(): boolean; - clearVote(): void; - getVote(): governance_pb.Vote | undefined; - setVote(value?: governance_pb.Vote): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveProposalVotesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ObserveProposalVotesResponse): ObserveProposalVotesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveProposalVotesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveProposalVotesResponse; - static deserializeBinaryFromReader(message: ObserveProposalVotesResponse, reader: jspb.BinaryReader): ObserveProposalVotesResponse; -} - -export namespace ObserveProposalVotesResponse { - export type AsObject = { - vote?: governance_pb.Vote.AsObject, - } -} - -export class ObservePartyVotesRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObservePartyVotesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ObservePartyVotesRequest): ObservePartyVotesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObservePartyVotesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObservePartyVotesRequest; - static deserializeBinaryFromReader(message: ObservePartyVotesRequest, reader: jspb.BinaryReader): ObservePartyVotesRequest; -} - -export namespace ObservePartyVotesRequest { - export type AsObject = { - partyId: string, - } -} - -export class ObservePartyVotesResponse extends jspb.Message { - hasVote(): boolean; - clearVote(): void; - getVote(): governance_pb.Vote | undefined; - setVote(value?: governance_pb.Vote): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObservePartyVotesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ObservePartyVotesResponse): ObservePartyVotesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObservePartyVotesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObservePartyVotesResponse; - static deserializeBinaryFromReader(message: ObservePartyVotesResponse, reader: jspb.BinaryReader): ObservePartyVotesResponse; -} - -export namespace ObservePartyVotesResponse { - export type AsObject = { - vote?: governance_pb.Vote.AsObject, - } -} - -export class MarginLevelsSubscribeRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginLevelsSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarginLevelsSubscribeRequest): MarginLevelsSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginLevelsSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginLevelsSubscribeRequest; - static deserializeBinaryFromReader(message: MarginLevelsSubscribeRequest, reader: jspb.BinaryReader): MarginLevelsSubscribeRequest; -} - -export namespace MarginLevelsSubscribeRequest { - export type AsObject = { - partyId: string, - marketId: string, - } -} - -export class MarginLevelsSubscribeResponse extends jspb.Message { - hasMarginLevels(): boolean; - clearMarginLevels(): void; - getMarginLevels(): vega_pb.MarginLevels | undefined; - setMarginLevels(value?: vega_pb.MarginLevels): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginLevelsSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarginLevelsSubscribeResponse): MarginLevelsSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginLevelsSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginLevelsSubscribeResponse; - static deserializeBinaryFromReader(message: MarginLevelsSubscribeResponse, reader: jspb.BinaryReader): MarginLevelsSubscribeResponse; -} - -export namespace MarginLevelsSubscribeResponse { - export type AsObject = { - marginLevels?: vega_pb.MarginLevels.AsObject, - } -} - -export class MarginLevelsRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; +export class GetVegaTimeRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginLevelsRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarginLevelsRequest): MarginLevelsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginLevelsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginLevelsRequest; - static deserializeBinaryFromReader(message: MarginLevelsRequest, reader: jspb.BinaryReader): MarginLevelsRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVegaTimeRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetVegaTimeRequest): GetVegaTimeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetVegaTimeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVegaTimeRequest; + static deserializeBinaryFromReader(message: GetVegaTimeRequest, reader: jspb.BinaryReader): GetVegaTimeRequest; } -export namespace MarginLevelsRequest { - export type AsObject = { - partyId: string, - marketId: string, - } +export namespace GetVegaTimeRequest { + export type AsObject = { + } } -export class MarginLevelsResponse extends jspb.Message { - clearMarginLevelsList(): void; - getMarginLevelsList(): Array; - setMarginLevelsList(value: Array): void; - addMarginLevels(value?: vega_pb.MarginLevels, index?: number): vega_pb.MarginLevels; +export class GetVegaTimeResponse extends jspb.Message { + getTimestamp(): number; + setTimestamp(value: number): GetVegaTimeResponse; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginLevelsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarginLevelsResponse): MarginLevelsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginLevelsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginLevelsResponse; - static deserializeBinaryFromReader(message: MarginLevelsResponse, reader: jspb.BinaryReader): MarginLevelsResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVegaTimeResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetVegaTimeResponse): GetVegaTimeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetVegaTimeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVegaTimeResponse; + static deserializeBinaryFromReader(message: GetVegaTimeResponse, reader: jspb.BinaryReader): GetVegaTimeResponse; } -export namespace MarginLevelsResponse { - export type AsObject = { - marginLevelsList: Array, - } +export namespace GetVegaTimeResponse { + export type AsObject = { + timestamp: number, + } } -export class MarketsDataSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsDataSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketsDataSubscribeRequest): MarketsDataSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsDataSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsDataSubscribeRequest; - static deserializeBinaryFromReader(message: MarketsDataSubscribeRequest, reader: jspb.BinaryReader): MarketsDataSubscribeRequest; +export class ObserveEventBusRequest extends jspb.Message { + clearTypeList(): void; + getTypeList(): Array; + setTypeList(value: Array): ObserveEventBusRequest; + addType(value: events_v1_events_pb.BusEventType, index?: number): events_v1_events_pb.BusEventType; + getMarketId(): string; + setMarketId(value: string): ObserveEventBusRequest; + getPartyId(): string; + setPartyId(value: string): ObserveEventBusRequest; + getBatchSize(): number; + setBatchSize(value: number): ObserveEventBusRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ObserveEventBusRequest.AsObject; + static toObject(includeInstance: boolean, msg: ObserveEventBusRequest): ObserveEventBusRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ObserveEventBusRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ObserveEventBusRequest; + static deserializeBinaryFromReader(message: ObserveEventBusRequest, reader: jspb.BinaryReader): ObserveEventBusRequest; } -export namespace MarketsDataSubscribeRequest { - export type AsObject = { - marketId: string, - } +export namespace ObserveEventBusRequest { + export type AsObject = { + typeList: Array, + marketId: string, + partyId: string, + batchSize: number, + } } -export class MarketsDataSubscribeResponse extends jspb.Message { - hasMarketData(): boolean; - clearMarketData(): void; - getMarketData(): vega_pb.MarketData | undefined; - setMarketData(value?: vega_pb.MarketData): void; +export class ObserveEventBusResponse extends jspb.Message { + clearEventsList(): void; + getEventsList(): Array; + setEventsList(value: Array): ObserveEventBusResponse; + addEvents(value?: events_v1_events_pb.BusEvent, index?: number): events_v1_events_pb.BusEvent; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsDataSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketsDataSubscribeResponse): MarketsDataSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsDataSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsDataSubscribeResponse; - static deserializeBinaryFromReader(message: MarketsDataSubscribeResponse, reader: jspb.BinaryReader): MarketsDataSubscribeResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ObserveEventBusResponse.AsObject; + static toObject(includeInstance: boolean, msg: ObserveEventBusResponse): ObserveEventBusResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ObserveEventBusResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ObserveEventBusResponse; + static deserializeBinaryFromReader(message: ObserveEventBusResponse, reader: jspb.BinaryReader): ObserveEventBusResponse; } -export namespace MarketsDataSubscribeResponse { - export type AsObject = { - marketData?: vega_pb.MarketData.AsObject, - } +export namespace ObserveEventBusResponse { + export type AsObject = { + eventsList: Array, + } } -export class MarketDataByIDRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; +export class StatisticsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDataByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketDataByIDRequest): MarketDataByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDataByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDataByIDRequest; - static deserializeBinaryFromReader(message: MarketDataByIDRequest, reader: jspb.BinaryReader): MarketDataByIDRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StatisticsRequest.AsObject; + static toObject(includeInstance: boolean, msg: StatisticsRequest): StatisticsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StatisticsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StatisticsRequest; + static deserializeBinaryFromReader(message: StatisticsRequest, reader: jspb.BinaryReader): StatisticsRequest; } -export namespace MarketDataByIDRequest { - export type AsObject = { - marketId: string, - } +export namespace StatisticsRequest { + export type AsObject = { + } } -export class MarketDataByIDResponse extends jspb.Message { - hasMarketData(): boolean; - clearMarketData(): void; - getMarketData(): vega_pb.MarketData | undefined; - setMarketData(value?: vega_pb.MarketData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDataByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketDataByIDResponse): MarketDataByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDataByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDataByIDResponse; - static deserializeBinaryFromReader(message: MarketDataByIDResponse, reader: jspb.BinaryReader): MarketDataByIDResponse; -} +export class StatisticsResponse extends jspb.Message { -export namespace MarketDataByIDResponse { - export type AsObject = { - marketData?: vega_pb.MarketData.AsObject, - } -} + hasStatistics(): boolean; + clearStatistics(): void; + getStatistics(): Statistics | undefined; + setStatistics(value?: Statistics): StatisticsResponse; -export class MarketsDataRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsDataRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketsDataRequest): MarketsDataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsDataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsDataRequest; - static deserializeBinaryFromReader(message: MarketsDataRequest, reader: jspb.BinaryReader): MarketsDataRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StatisticsResponse.AsObject; + static toObject(includeInstance: boolean, msg: StatisticsResponse): StatisticsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StatisticsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StatisticsResponse; + static deserializeBinaryFromReader(message: StatisticsResponse, reader: jspb.BinaryReader): StatisticsResponse; } -export namespace MarketsDataRequest { - export type AsObject = { - } +export namespace StatisticsResponse { + export type AsObject = { + statistics?: Statistics.AsObject, + } +} + +export class Statistics extends jspb.Message { + getBlockHeight(): number; + setBlockHeight(value: number): Statistics; + getBacklogLength(): number; + setBacklogLength(value: number): Statistics; + getTotalPeers(): number; + setTotalPeers(value: number): Statistics; + getGenesisTime(): string; + setGenesisTime(value: string): Statistics; + getCurrentTime(): string; + setCurrentTime(value: string): Statistics; + getVegaTime(): string; + setVegaTime(value: string): Statistics; + getStatus(): vega_pb.ChainStatus; + setStatus(value: vega_pb.ChainStatus): Statistics; + getTxPerBlock(): number; + setTxPerBlock(value: number): Statistics; + getAverageTxBytes(): number; + setAverageTxBytes(value: number): Statistics; + getAverageOrdersPerBlock(): number; + setAverageOrdersPerBlock(value: number): Statistics; + getTradesPerSecond(): number; + setTradesPerSecond(value: number): Statistics; + getOrdersPerSecond(): number; + setOrdersPerSecond(value: number): Statistics; + getTotalMarkets(): number; + setTotalMarkets(value: number): Statistics; + getTotalAmendOrder(): number; + setTotalAmendOrder(value: number): Statistics; + getTotalCancelOrder(): number; + setTotalCancelOrder(value: number): Statistics; + getTotalCreateOrder(): number; + setTotalCreateOrder(value: number): Statistics; + getTotalOrders(): number; + setTotalOrders(value: number): Statistics; + getTotalTrades(): number; + setTotalTrades(value: number): Statistics; + getOrderSubscriptions(): number; + setOrderSubscriptions(value: number): Statistics; + getTradeSubscriptions(): number; + setTradeSubscriptions(value: number): Statistics; + getCandleSubscriptions(): number; + setCandleSubscriptions(value: number): Statistics; + getMarketDepthSubscriptions(): number; + setMarketDepthSubscriptions(value: number): Statistics; + getPositionsSubscriptions(): number; + setPositionsSubscriptions(value: number): Statistics; + getAccountSubscriptions(): number; + setAccountSubscriptions(value: number): Statistics; + getMarketDataSubscriptions(): number; + setMarketDataSubscriptions(value: number): Statistics; + getAppVersionHash(): string; + setAppVersionHash(value: string): Statistics; + getAppVersion(): string; + setAppVersion(value: string): Statistics; + getChainVersion(): string; + setChainVersion(value: string): Statistics; + getBlockDuration(): number; + setBlockDuration(value: number): Statistics; + getUptime(): string; + setUptime(value: string): Statistics; + getChainId(): string; + setChainId(value: string): Statistics; + getMarketDepthUpdatesSubscriptions(): number; + setMarketDepthUpdatesSubscriptions(value: number): Statistics; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Statistics.AsObject; + static toObject(includeInstance: boolean, msg: Statistics): Statistics.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Statistics, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Statistics; + static deserializeBinaryFromReader(message: Statistics, reader: jspb.BinaryReader): Statistics; +} + +export namespace Statistics { + export type AsObject = { + blockHeight: number, + backlogLength: number, + totalPeers: number, + genesisTime: string, + currentTime: string, + vegaTime: string, + status: vega_pb.ChainStatus, + txPerBlock: number, + averageTxBytes: number, + averageOrdersPerBlock: number, + tradesPerSecond: number, + ordersPerSecond: number, + totalMarkets: number, + totalAmendOrder: number, + totalCancelOrder: number, + totalCreateOrder: number, + totalOrders: number, + totalTrades: number, + orderSubscriptions: number, + tradeSubscriptions: number, + candleSubscriptions: number, + marketDepthSubscriptions: number, + positionsSubscriptions: number, + accountSubscriptions: number, + marketDataSubscriptions: number, + appVersionHash: string, + appVersion: string, + chainVersion: string, + blockDuration: number, + uptime: string, + chainId: string, + marketDepthUpdatesSubscriptions: number, + } } -export class MarketsDataResponse extends jspb.Message { - clearMarketsDataList(): void; - getMarketsDataList(): Array; - setMarketsDataList(value: Array): void; - addMarketsData(value?: vega_pb.MarketData, index?: number): vega_pb.MarketData; +export class LastBlockHeightRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsDataResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketsDataResponse): MarketsDataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsDataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsDataResponse; - static deserializeBinaryFromReader(message: MarketsDataResponse, reader: jspb.BinaryReader): MarketsDataResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LastBlockHeightRequest.AsObject; + static toObject(includeInstance: boolean, msg: LastBlockHeightRequest): LastBlockHeightRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LastBlockHeightRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LastBlockHeightRequest; + static deserializeBinaryFromReader(message: LastBlockHeightRequest, reader: jspb.BinaryReader): LastBlockHeightRequest; } -export namespace MarketsDataResponse { - export type AsObject = { - marketsDataList: Array, - } +export namespace LastBlockHeightRequest { + export type AsObject = { + } } -export class LastTradeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; +export class LastBlockHeightResponse extends jspb.Message { + getHeight(): number; + setHeight(value: number): LastBlockHeightResponse; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastTradeRequest.AsObject; - static toObject(includeInstance: boolean, msg: LastTradeRequest): LastTradeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastTradeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastTradeRequest; - static deserializeBinaryFromReader(message: LastTradeRequest, reader: jspb.BinaryReader): LastTradeRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LastBlockHeightResponse.AsObject; + static toObject(includeInstance: boolean, msg: LastBlockHeightResponse): LastBlockHeightResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LastBlockHeightResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LastBlockHeightResponse; + static deserializeBinaryFromReader(message: LastBlockHeightResponse, reader: jspb.BinaryReader): LastBlockHeightResponse; } -export namespace LastTradeRequest { - export type AsObject = { - marketId: string, - } +export namespace LastBlockHeightResponse { + export type AsObject = { + height: number, + } } - -export class LastTradeResponse extends jspb.Message { - hasTrade(): boolean; - clearTrade(): void; - getTrade(): vega_pb.Trade | undefined; - setTrade(value?: vega_pb.Trade): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastTradeResponse.AsObject; - static toObject(includeInstance: boolean, msg: LastTradeResponse): LastTradeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastTradeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastTradeResponse; - static deserializeBinaryFromReader(message: LastTradeResponse, reader: jspb.BinaryReader): LastTradeResponse; -} - -export namespace LastTradeResponse { - export type AsObject = { - trade?: vega_pb.Trade.AsObject, - } -} - -export class MarketByIDRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketByIDRequest): MarketByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketByIDRequest; - static deserializeBinaryFromReader(message: MarketByIDRequest, reader: jspb.BinaryReader): MarketByIDRequest; -} - -export namespace MarketByIDRequest { - export type AsObject = { - marketId: string, - } -} - -export class MarketByIDResponse extends jspb.Message { - hasMarket(): boolean; - clearMarket(): void; - getMarket(): markets_pb.Market | undefined; - setMarket(value?: markets_pb.Market): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketByIDResponse): MarketByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketByIDResponse; - static deserializeBinaryFromReader(message: MarketByIDResponse, reader: jspb.BinaryReader): MarketByIDResponse; -} - -export namespace MarketByIDResponse { - export type AsObject = { - market?: markets_pb.Market.AsObject, - } -} - -export class PartyByIDRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartyByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: PartyByIDRequest): PartyByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartyByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartyByIDRequest; - static deserializeBinaryFromReader(message: PartyByIDRequest, reader: jspb.BinaryReader): PartyByIDRequest; -} - -export namespace PartyByIDRequest { - export type AsObject = { - partyId: string, - } -} - -export class PartyByIDResponse extends jspb.Message { - hasParty(): boolean; - clearParty(): void; - getParty(): vega_pb.Party | undefined; - setParty(value?: vega_pb.Party): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartyByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: PartyByIDResponse): PartyByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartyByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartyByIDResponse; - static deserializeBinaryFromReader(message: PartyByIDResponse, reader: jspb.BinaryReader): PartyByIDResponse; -} - -export namespace PartyByIDResponse { - export type AsObject = { - party?: vega_pb.Party.AsObject, - } -} - -export class PartiesRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartiesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PartiesRequest): PartiesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartiesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartiesRequest; - static deserializeBinaryFromReader(message: PartiesRequest, reader: jspb.BinaryReader): PartiesRequest; -} - -export namespace PartiesRequest { - export type AsObject = { - } -} - -export class PartiesResponse extends jspb.Message { - clearPartiesList(): void; - getPartiesList(): Array; - setPartiesList(value: Array): void; - addParties(value?: vega_pb.Party, index?: number): vega_pb.Party; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartiesResponse.AsObject; - static toObject(includeInstance: boolean, msg: PartiesResponse): PartiesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartiesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartiesResponse; - static deserializeBinaryFromReader(message: PartiesResponse, reader: jspb.BinaryReader): PartiesResponse; -} - -export namespace PartiesResponse { - export type AsObject = { - partiesList: Array, - } -} - -export class TradesByPartyRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByPartyRequest.AsObject; - static toObject(includeInstance: boolean, msg: TradesByPartyRequest): TradesByPartyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByPartyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByPartyRequest; - static deserializeBinaryFromReader(message: TradesByPartyRequest, reader: jspb.BinaryReader): TradesByPartyRequest; -} - -export namespace TradesByPartyRequest { - export type AsObject = { - partyId: string, - marketId: string, - pagination?: Pagination.AsObject, - } -} - -export class TradesByPartyResponse extends jspb.Message { - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: vega_pb.Trade, index?: number): vega_pb.Trade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByPartyResponse.AsObject; - static toObject(includeInstance: boolean, msg: TradesByPartyResponse): TradesByPartyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByPartyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByPartyResponse; - static deserializeBinaryFromReader(message: TradesByPartyResponse, reader: jspb.BinaryReader): TradesByPartyResponse; -} - -export namespace TradesByPartyResponse { - export type AsObject = { - tradesList: Array, - } -} - -export class TradesByOrderRequest extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByOrderRequest.AsObject; - static toObject(includeInstance: boolean, msg: TradesByOrderRequest): TradesByOrderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByOrderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByOrderRequest; - static deserializeBinaryFromReader(message: TradesByOrderRequest, reader: jspb.BinaryReader): TradesByOrderRequest; -} - -export namespace TradesByOrderRequest { - export type AsObject = { - orderId: string, - } -} - -export class TradesByOrderResponse extends jspb.Message { - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: vega_pb.Trade, index?: number): vega_pb.Trade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: TradesByOrderResponse): TradesByOrderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByOrderResponse; - static deserializeBinaryFromReader(message: TradesByOrderResponse, reader: jspb.BinaryReader): TradesByOrderResponse; -} - -export namespace TradesByOrderResponse { - export type AsObject = { - tradesList: Array, - } -} - -export class AccountsSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAsset(): string; - setAsset(value: string): void; - - getType(): vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap]; - setType(value: vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccountsSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: AccountsSubscribeRequest): AccountsSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AccountsSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccountsSubscribeRequest; - static deserializeBinaryFromReader(message: AccountsSubscribeRequest, reader: jspb.BinaryReader): AccountsSubscribeRequest; -} - -export namespace AccountsSubscribeRequest { - export type AsObject = { - marketId: string, - partyId: string, - asset: string, - type: vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap], - } -} - -export class AccountsSubscribeResponse extends jspb.Message { - hasAccount(): boolean; - clearAccount(): void; - getAccount(): vega_pb.Account | undefined; - setAccount(value?: vega_pb.Account): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccountsSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: AccountsSubscribeResponse): AccountsSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AccountsSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccountsSubscribeResponse; - static deserializeBinaryFromReader(message: AccountsSubscribeResponse, reader: jspb.BinaryReader): AccountsSubscribeResponse; -} - -export namespace AccountsSubscribeResponse { - export type AsObject = { - account?: vega_pb.Account.AsObject, - } -} - -export class OrdersSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrdersSubscribeRequest): OrdersSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersSubscribeRequest; - static deserializeBinaryFromReader(message: OrdersSubscribeRequest, reader: jspb.BinaryReader): OrdersSubscribeRequest; -} - -export namespace OrdersSubscribeRequest { - export type AsObject = { - marketId: string, - partyId: string, - } -} - -export class TradesSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: TradesSubscribeRequest): TradesSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesSubscribeRequest; - static deserializeBinaryFromReader(message: TradesSubscribeRequest, reader: jspb.BinaryReader): TradesSubscribeRequest; -} - -export namespace TradesSubscribeRequest { - export type AsObject = { - marketId: string, - partyId: string, - } -} - -export class CandlesSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getInterval(): vega_pb.IntervalMap[keyof vega_pb.IntervalMap]; - setInterval(value: vega_pb.IntervalMap[keyof vega_pb.IntervalMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CandlesSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: CandlesSubscribeRequest): CandlesSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CandlesSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CandlesSubscribeRequest; - static deserializeBinaryFromReader(message: CandlesSubscribeRequest, reader: jspb.BinaryReader): CandlesSubscribeRequest; -} - -export namespace CandlesSubscribeRequest { - export type AsObject = { - marketId: string, - interval: vega_pb.IntervalMap[keyof vega_pb.IntervalMap], - } -} - -export class CandlesSubscribeResponse extends jspb.Message { - hasCandle(): boolean; - clearCandle(): void; - getCandle(): vega_pb.Candle | undefined; - setCandle(value?: vega_pb.Candle): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CandlesSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: CandlesSubscribeResponse): CandlesSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CandlesSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CandlesSubscribeResponse; - static deserializeBinaryFromReader(message: CandlesSubscribeResponse, reader: jspb.BinaryReader): CandlesSubscribeResponse; -} - -export namespace CandlesSubscribeResponse { - export type AsObject = { - candle?: vega_pb.Candle.AsObject, - } -} - -export class MarketDepthSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthSubscribeRequest): MarketDepthSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthSubscribeRequest; - static deserializeBinaryFromReader(message: MarketDepthSubscribeRequest, reader: jspb.BinaryReader): MarketDepthSubscribeRequest; -} - -export namespace MarketDepthSubscribeRequest { - export type AsObject = { - marketId: string, - } -} - -export class MarketDepthSubscribeResponse extends jspb.Message { - hasMarketDepth(): boolean; - clearMarketDepth(): void; - getMarketDepth(): vega_pb.MarketDepth | undefined; - setMarketDepth(value?: vega_pb.MarketDepth): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthSubscribeResponse): MarketDepthSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthSubscribeResponse; - static deserializeBinaryFromReader(message: MarketDepthSubscribeResponse, reader: jspb.BinaryReader): MarketDepthSubscribeResponse; -} - -export namespace MarketDepthSubscribeResponse { - export type AsObject = { - marketDepth?: vega_pb.MarketDepth.AsObject, - } -} - -export class MarketDepthUpdatesSubscribeRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthUpdatesSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthUpdatesSubscribeRequest): MarketDepthUpdatesSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthUpdatesSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthUpdatesSubscribeRequest; - static deserializeBinaryFromReader(message: MarketDepthUpdatesSubscribeRequest, reader: jspb.BinaryReader): MarketDepthUpdatesSubscribeRequest; -} - -export namespace MarketDepthUpdatesSubscribeRequest { - export type AsObject = { - marketId: string, - } -} - -export class MarketDepthUpdatesSubscribeResponse extends jspb.Message { - hasUpdate(): boolean; - clearUpdate(): void; - getUpdate(): vega_pb.MarketDepthUpdate | undefined; - setUpdate(value?: vega_pb.MarketDepthUpdate): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthUpdatesSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthUpdatesSubscribeResponse): MarketDepthUpdatesSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthUpdatesSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthUpdatesSubscribeResponse; - static deserializeBinaryFromReader(message: MarketDepthUpdatesSubscribeResponse, reader: jspb.BinaryReader): MarketDepthUpdatesSubscribeResponse; -} - -export namespace MarketDepthUpdatesSubscribeResponse { - export type AsObject = { - update?: vega_pb.MarketDepthUpdate.AsObject, - } -} - -export class PositionsSubscribeRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionsSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: PositionsSubscribeRequest): PositionsSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionsSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionsSubscribeRequest; - static deserializeBinaryFromReader(message: PositionsSubscribeRequest, reader: jspb.BinaryReader): PositionsSubscribeRequest; -} - -export namespace PositionsSubscribeRequest { - export type AsObject = { - partyId: string, - marketId: string, - } -} - -export class PositionsSubscribeResponse extends jspb.Message { - hasPosition(): boolean; - clearPosition(): void; - getPosition(): vega_pb.Position | undefined; - setPosition(value?: vega_pb.Position): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionsSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: PositionsSubscribeResponse): PositionsSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionsSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionsSubscribeResponse; - static deserializeBinaryFromReader(message: PositionsSubscribeResponse, reader: jspb.BinaryReader): PositionsSubscribeResponse; -} - -export namespace PositionsSubscribeResponse { - export type AsObject = { - position?: vega_pb.Position.AsObject, - } -} - -export class OrdersByMarketRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersByMarketRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrdersByMarketRequest): OrdersByMarketRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersByMarketRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersByMarketRequest; - static deserializeBinaryFromReader(message: OrdersByMarketRequest, reader: jspb.BinaryReader): OrdersByMarketRequest; -} - -export namespace OrdersByMarketRequest { - export type AsObject = { - marketId: string, - pagination?: Pagination.AsObject, - } -} - -export class OrdersByMarketResponse extends jspb.Message { - clearOrdersList(): void; - getOrdersList(): Array; - setOrdersList(value: Array): void; - addOrders(value?: vega_pb.Order, index?: number): vega_pb.Order; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersByMarketResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrdersByMarketResponse): OrdersByMarketResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersByMarketResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersByMarketResponse; - static deserializeBinaryFromReader(message: OrdersByMarketResponse, reader: jspb.BinaryReader): OrdersByMarketResponse; -} - -export namespace OrdersByMarketResponse { - export type AsObject = { - ordersList: Array, - } -} - -export class OrdersByPartyRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersByPartyRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrdersByPartyRequest): OrdersByPartyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersByPartyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersByPartyRequest; - static deserializeBinaryFromReader(message: OrdersByPartyRequest, reader: jspb.BinaryReader): OrdersByPartyRequest; -} - -export namespace OrdersByPartyRequest { - export type AsObject = { - partyId: string, - pagination?: Pagination.AsObject, - } -} - -export class OrdersByPartyResponse extends jspb.Message { - clearOrdersList(): void; - getOrdersList(): Array; - setOrdersList(value: Array): void; - addOrders(value?: vega_pb.Order, index?: number): vega_pb.Order; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersByPartyResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrdersByPartyResponse): OrdersByPartyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersByPartyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersByPartyResponse; - static deserializeBinaryFromReader(message: OrdersByPartyResponse, reader: jspb.BinaryReader): OrdersByPartyResponse; -} - -export namespace OrdersByPartyResponse { - export type AsObject = { - ordersList: Array, - } -} - -export class OrderByMarketAndIDRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getOrderId(): string; - setOrderId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByMarketAndIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrderByMarketAndIDRequest): OrderByMarketAndIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByMarketAndIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByMarketAndIDRequest; - static deserializeBinaryFromReader(message: OrderByMarketAndIDRequest, reader: jspb.BinaryReader): OrderByMarketAndIDRequest; -} - -export namespace OrderByMarketAndIDRequest { - export type AsObject = { - marketId: string, - orderId: string, - } -} - -export class OrderByMarketAndIDResponse extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByMarketAndIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrderByMarketAndIDResponse): OrderByMarketAndIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByMarketAndIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByMarketAndIDResponse; - static deserializeBinaryFromReader(message: OrderByMarketAndIDResponse, reader: jspb.BinaryReader): OrderByMarketAndIDResponse; -} - -export namespace OrderByMarketAndIDResponse { - export type AsObject = { - order?: vega_pb.Order.AsObject, - } -} - -export class OrderByReferenceRequest extends jspb.Message { - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByReferenceRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrderByReferenceRequest): OrderByReferenceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByReferenceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByReferenceRequest; - static deserializeBinaryFromReader(message: OrderByReferenceRequest, reader: jspb.BinaryReader): OrderByReferenceRequest; -} - -export namespace OrderByReferenceRequest { - export type AsObject = { - reference: string, - } -} - -export class OrderByReferenceResponse extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByReferenceResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrderByReferenceResponse): OrderByReferenceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByReferenceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByReferenceResponse; - static deserializeBinaryFromReader(message: OrderByReferenceResponse, reader: jspb.BinaryReader): OrderByReferenceResponse; -} - -export namespace OrderByReferenceResponse { - export type AsObject = { - order?: vega_pb.Order.AsObject, - } -} - -export class MarketsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketsRequest): MarketsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsRequest; - static deserializeBinaryFromReader(message: MarketsRequest, reader: jspb.BinaryReader): MarketsRequest; -} - -export namespace MarketsRequest { - export type AsObject = { - } -} - -export class MarketsResponse extends jspb.Message { - clearMarketsList(): void; - getMarketsList(): Array; - setMarketsList(value: Array): void; - addMarkets(value?: markets_pb.Market, index?: number): markets_pb.Market; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketsResponse): MarketsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketsResponse; - static deserializeBinaryFromReader(message: MarketsResponse, reader: jspb.BinaryReader): MarketsResponse; -} - -export namespace MarketsResponse { - export type AsObject = { - marketsList: Array, - } -} - -export class CandlesRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getSinceTimestamp(): number; - setSinceTimestamp(value: number): void; - - getInterval(): vega_pb.IntervalMap[keyof vega_pb.IntervalMap]; - setInterval(value: vega_pb.IntervalMap[keyof vega_pb.IntervalMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CandlesRequest.AsObject; - static toObject(includeInstance: boolean, msg: CandlesRequest): CandlesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CandlesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CandlesRequest; - static deserializeBinaryFromReader(message: CandlesRequest, reader: jspb.BinaryReader): CandlesRequest; -} - -export namespace CandlesRequest { - export type AsObject = { - marketId: string, - sinceTimestamp: number, - interval: vega_pb.IntervalMap[keyof vega_pb.IntervalMap], - } -} - -export class CandlesResponse extends jspb.Message { - clearCandlesList(): void; - getCandlesList(): Array; - setCandlesList(value: Array): void; - addCandles(value?: vega_pb.Candle, index?: number): vega_pb.Candle; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CandlesResponse.AsObject; - static toObject(includeInstance: boolean, msg: CandlesResponse): CandlesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CandlesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CandlesResponse; - static deserializeBinaryFromReader(message: CandlesResponse, reader: jspb.BinaryReader): CandlesResponse; -} - -export namespace CandlesResponse { - export type AsObject = { - candlesList: Array, - } -} - -export class MarketDepthRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getMaxDepth(): number; - setMaxDepth(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthRequest): MarketDepthRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthRequest; - static deserializeBinaryFromReader(message: MarketDepthRequest, reader: jspb.BinaryReader): MarketDepthRequest; -} - -export namespace MarketDepthRequest { - export type AsObject = { - marketId: string, - maxDepth: number, - } -} - -export class MarketDepthResponse extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - clearBuyList(): void; - getBuyList(): Array; - setBuyList(value: Array): void; - addBuy(value?: vega_pb.PriceLevel, index?: number): vega_pb.PriceLevel; - - clearSellList(): void; - getSellList(): Array; - setSellList(value: Array): void; - addSell(value?: vega_pb.PriceLevel, index?: number): vega_pb.PriceLevel; - - hasLastTrade(): boolean; - clearLastTrade(): void; - getLastTrade(): vega_pb.Trade | undefined; - setLastTrade(value?: vega_pb.Trade): void; - - getSequenceNumber(): number; - setSequenceNumber(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthResponse): MarketDepthResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthResponse; - static deserializeBinaryFromReader(message: MarketDepthResponse, reader: jspb.BinaryReader): MarketDepthResponse; -} - -export namespace MarketDepthResponse { - export type AsObject = { - marketId: string, - buyList: Array, - sellList: Array, - lastTrade?: vega_pb.Trade.AsObject, - sequenceNumber: number, - } -} - -export class TradesByMarketRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByMarketRequest.AsObject; - static toObject(includeInstance: boolean, msg: TradesByMarketRequest): TradesByMarketRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByMarketRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByMarketRequest; - static deserializeBinaryFromReader(message: TradesByMarketRequest, reader: jspb.BinaryReader): TradesByMarketRequest; -} - -export namespace TradesByMarketRequest { - export type AsObject = { - marketId: string, - pagination?: Pagination.AsObject, - } -} - -export class TradesByMarketResponse extends jspb.Message { - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: vega_pb.Trade, index?: number): vega_pb.Trade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesByMarketResponse.AsObject; - static toObject(includeInstance: boolean, msg: TradesByMarketResponse): TradesByMarketResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesByMarketResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesByMarketResponse; - static deserializeBinaryFromReader(message: TradesByMarketResponse, reader: jspb.BinaryReader): TradesByMarketResponse; -} - -export namespace TradesByMarketResponse { - export type AsObject = { - tradesList: Array, - } -} - -export class PositionsByPartyRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionsByPartyRequest.AsObject; - static toObject(includeInstance: boolean, msg: PositionsByPartyRequest): PositionsByPartyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionsByPartyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionsByPartyRequest; - static deserializeBinaryFromReader(message: PositionsByPartyRequest, reader: jspb.BinaryReader): PositionsByPartyRequest; -} - -export namespace PositionsByPartyRequest { - export type AsObject = { - partyId: string, - marketId: string, - } -} - -export class PositionsByPartyResponse extends jspb.Message { - clearPositionsList(): void; - getPositionsList(): Array; - setPositionsList(value: Array): void; - addPositions(value?: vega_pb.Position, index?: number): vega_pb.Position; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionsByPartyResponse.AsObject; - static toObject(includeInstance: boolean, msg: PositionsByPartyResponse): PositionsByPartyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionsByPartyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionsByPartyResponse; - static deserializeBinaryFromReader(message: PositionsByPartyResponse, reader: jspb.BinaryReader): PositionsByPartyResponse; -} - -export namespace PositionsByPartyResponse { - export type AsObject = { - positionsList: Array, - } -} - -export class GetVegaTimeRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVegaTimeRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetVegaTimeRequest): GetVegaTimeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVegaTimeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVegaTimeRequest; - static deserializeBinaryFromReader(message: GetVegaTimeRequest, reader: jspb.BinaryReader): GetVegaTimeRequest; -} - -export namespace GetVegaTimeRequest { - export type AsObject = { - } -} - -export class GetVegaTimeResponse extends jspb.Message { - getTimestamp(): number; - setTimestamp(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVegaTimeResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetVegaTimeResponse): GetVegaTimeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVegaTimeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVegaTimeResponse; - static deserializeBinaryFromReader(message: GetVegaTimeResponse, reader: jspb.BinaryReader): GetVegaTimeResponse; -} - -export namespace GetVegaTimeResponse { - export type AsObject = { - timestamp: number, - } -} - -export class Pagination extends jspb.Message { - getSkip(): number; - setSkip(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getDescending(): boolean; - setDescending(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Pagination.AsObject; - static toObject(includeInstance: boolean, msg: Pagination): Pagination.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Pagination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Pagination; - static deserializeBinaryFromReader(message: Pagination, reader: jspb.BinaryReader): Pagination; -} - -export namespace Pagination { - export type AsObject = { - skip: number, - limit: number, - descending: boolean, - } -} - -export class OrdersSubscribeResponse extends jspb.Message { - clearOrdersList(): void; - getOrdersList(): Array; - setOrdersList(value: Array): void; - addOrders(value?: vega_pb.Order, index?: number): vega_pb.Order; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrdersSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrdersSubscribeResponse): OrdersSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrdersSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrdersSubscribeResponse; - static deserializeBinaryFromReader(message: OrdersSubscribeResponse, reader: jspb.BinaryReader): OrdersSubscribeResponse; -} - -export namespace OrdersSubscribeResponse { - export type AsObject = { - ordersList: Array, - } -} - -export class TradesSubscribeResponse extends jspb.Message { - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: vega_pb.Trade, index?: number): vega_pb.Trade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradesSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: TradesSubscribeResponse): TradesSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradesSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradesSubscribeResponse; - static deserializeBinaryFromReader(message: TradesSubscribeResponse, reader: jspb.BinaryReader): TradesSubscribeResponse; -} - -export namespace TradesSubscribeResponse { - export type AsObject = { - tradesList: Array, - } -} - -export class TransferResponsesSubscribeRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferResponsesSubscribeRequest.AsObject; - static toObject(includeInstance: boolean, msg: TransferResponsesSubscribeRequest): TransferResponsesSubscribeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferResponsesSubscribeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferResponsesSubscribeRequest; - static deserializeBinaryFromReader(message: TransferResponsesSubscribeRequest, reader: jspb.BinaryReader): TransferResponsesSubscribeRequest; -} - -export namespace TransferResponsesSubscribeRequest { - export type AsObject = { - } -} - -export class TransferResponsesSubscribeResponse extends jspb.Message { - hasResponse(): boolean; - clearResponse(): void; - getResponse(): vega_pb.TransferResponse | undefined; - setResponse(value?: vega_pb.TransferResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferResponsesSubscribeResponse.AsObject; - static toObject(includeInstance: boolean, msg: TransferResponsesSubscribeResponse): TransferResponsesSubscribeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferResponsesSubscribeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferResponsesSubscribeResponse; - static deserializeBinaryFromReader(message: TransferResponsesSubscribeResponse, reader: jspb.BinaryReader): TransferResponsesSubscribeResponse; -} - -export namespace TransferResponsesSubscribeResponse { - export type AsObject = { - response?: vega_pb.TransferResponse.AsObject, - } -} - -export class PartyAccountsRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getType(): vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap]; - setType(value: vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap]): void; - - getAsset(): string; - setAsset(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartyAccountsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PartyAccountsRequest): PartyAccountsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartyAccountsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartyAccountsRequest; - static deserializeBinaryFromReader(message: PartyAccountsRequest, reader: jspb.BinaryReader): PartyAccountsRequest; -} - -export namespace PartyAccountsRequest { - export type AsObject = { - partyId: string, - marketId: string, - type: vega_pb.AccountTypeMap[keyof vega_pb.AccountTypeMap], - asset: string, - } -} - -export class PartyAccountsResponse extends jspb.Message { - clearAccountsList(): void; - getAccountsList(): Array; - setAccountsList(value: Array): void; - addAccounts(value?: vega_pb.Account, index?: number): vega_pb.Account; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PartyAccountsResponse.AsObject; - static toObject(includeInstance: boolean, msg: PartyAccountsResponse): PartyAccountsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PartyAccountsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PartyAccountsResponse; - static deserializeBinaryFromReader(message: PartyAccountsResponse, reader: jspb.BinaryReader): PartyAccountsResponse; -} - -export namespace PartyAccountsResponse { - export type AsObject = { - accountsList: Array, - } -} - -export class MarketAccountsRequest extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getAsset(): string; - setAsset(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketAccountsRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketAccountsRequest): MarketAccountsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketAccountsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketAccountsRequest; - static deserializeBinaryFromReader(message: MarketAccountsRequest, reader: jspb.BinaryReader): MarketAccountsRequest; -} - -export namespace MarketAccountsRequest { - export type AsObject = { - marketId: string, - asset: string, - } -} - -export class MarketAccountsResponse extends jspb.Message { - clearAccountsList(): void; - getAccountsList(): Array; - setAccountsList(value: Array): void; - addAccounts(value?: vega_pb.Account, index?: number): vega_pb.Account; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketAccountsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MarketAccountsResponse): MarketAccountsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketAccountsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketAccountsResponse; - static deserializeBinaryFromReader(message: MarketAccountsResponse, reader: jspb.BinaryReader): MarketAccountsResponse; -} - -export namespace MarketAccountsResponse { - export type AsObject = { - accountsList: Array, - } -} - -export class FeeInfrastructureAccountsRequest extends jspb.Message { - getAsset(): string; - setAsset(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FeeInfrastructureAccountsRequest.AsObject; - static toObject(includeInstance: boolean, msg: FeeInfrastructureAccountsRequest): FeeInfrastructureAccountsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FeeInfrastructureAccountsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FeeInfrastructureAccountsRequest; - static deserializeBinaryFromReader(message: FeeInfrastructureAccountsRequest, reader: jspb.BinaryReader): FeeInfrastructureAccountsRequest; -} - -export namespace FeeInfrastructureAccountsRequest { - export type AsObject = { - asset: string, - } -} - -export class FeeInfrastructureAccountsResponse extends jspb.Message { - clearAccountsList(): void; - getAccountsList(): Array; - setAccountsList(value: Array): void; - addAccounts(value?: vega_pb.Account, index?: number): vega_pb.Account; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FeeInfrastructureAccountsResponse.AsObject; - static toObject(includeInstance: boolean, msg: FeeInfrastructureAccountsResponse): FeeInfrastructureAccountsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FeeInfrastructureAccountsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FeeInfrastructureAccountsResponse; - static deserializeBinaryFromReader(message: FeeInfrastructureAccountsResponse, reader: jspb.BinaryReader): FeeInfrastructureAccountsResponse; -} - -export namespace FeeInfrastructureAccountsResponse { - export type AsObject = { - accountsList: Array, - } -} - -export class PrepareProposalSubmissionRequest extends jspb.Message { - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.ProposalSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareProposalSubmissionRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareProposalSubmissionRequest): PrepareProposalSubmissionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareProposalSubmissionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareProposalSubmissionRequest; - static deserializeBinaryFromReader(message: PrepareProposalSubmissionRequest, reader: jspb.BinaryReader): PrepareProposalSubmissionRequest; -} - -export namespace PrepareProposalSubmissionRequest { - export type AsObject = { - submission?: commands_v1_commands_pb.ProposalSubmission.AsObject, - } -} - -export class PrepareProposalSubmissionResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.ProposalSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareProposalSubmissionResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareProposalSubmissionResponse): PrepareProposalSubmissionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareProposalSubmissionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareProposalSubmissionResponse; - static deserializeBinaryFromReader(message: PrepareProposalSubmissionResponse, reader: jspb.BinaryReader): PrepareProposalSubmissionResponse; -} - -export namespace PrepareProposalSubmissionResponse { - export type AsObject = { - blob: Uint8Array | string, - submission?: commands_v1_commands_pb.ProposalSubmission.AsObject, - } -} - -export class PrepareVoteSubmissionRequest extends jspb.Message { - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.VoteSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareVoteSubmissionRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareVoteSubmissionRequest): PrepareVoteSubmissionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareVoteSubmissionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareVoteSubmissionRequest; - static deserializeBinaryFromReader(message: PrepareVoteSubmissionRequest, reader: jspb.BinaryReader): PrepareVoteSubmissionRequest; -} - -export namespace PrepareVoteSubmissionRequest { - export type AsObject = { - submission?: commands_v1_commands_pb.VoteSubmission.AsObject, - } -} - -export class PrepareVoteSubmissionResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.VoteSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareVoteSubmissionResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareVoteSubmissionResponse): PrepareVoteSubmissionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareVoteSubmissionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareVoteSubmissionResponse; - static deserializeBinaryFromReader(message: PrepareVoteSubmissionResponse, reader: jspb.BinaryReader): PrepareVoteSubmissionResponse; -} - -export namespace PrepareVoteSubmissionResponse { - export type AsObject = { - blob: Uint8Array | string, - submission?: commands_v1_commands_pb.VoteSubmission.AsObject, - } -} - -export class PrepareLiquidityProvisionRequest extends jspb.Message { - hasSubmission(): boolean; - clearSubmission(): void; - getSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; - setSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareLiquidityProvisionRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareLiquidityProvisionRequest): PrepareLiquidityProvisionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareLiquidityProvisionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareLiquidityProvisionRequest; - static deserializeBinaryFromReader(message: PrepareLiquidityProvisionRequest, reader: jspb.BinaryReader): PrepareLiquidityProvisionRequest; -} - -export namespace PrepareLiquidityProvisionRequest { - export type AsObject = { - submission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, - } -} - -export class PrepareLiquidityProvisionResponse extends jspb.Message { - getBlob(): Uint8Array | string; - getBlob_asU8(): Uint8Array; - getBlob_asB64(): string; - setBlob(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareLiquidityProvisionResponse.AsObject; - static toObject(includeInstance: boolean, msg: PrepareLiquidityProvisionResponse): PrepareLiquidityProvisionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareLiquidityProvisionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareLiquidityProvisionResponse; - static deserializeBinaryFromReader(message: PrepareLiquidityProvisionResponse, reader: jspb.BinaryReader): PrepareLiquidityProvisionResponse; -} - -export namespace PrepareLiquidityProvisionResponse { - export type AsObject = { - blob: Uint8Array | string, - } -} - -export class OrderByIDRequest extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; - - getVersion(): number; - setVersion(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrderByIDRequest): OrderByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByIDRequest; - static deserializeBinaryFromReader(message: OrderByIDRequest, reader: jspb.BinaryReader): OrderByIDRequest; -} - -export namespace OrderByIDRequest { - export type AsObject = { - orderId: string, - version: number, - } -} - -export class OrderByIDResponse extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrderByIDResponse): OrderByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderByIDResponse; - static deserializeBinaryFromReader(message: OrderByIDResponse, reader: jspb.BinaryReader): OrderByIDResponse; -} - -export namespace OrderByIDResponse { - export type AsObject = { - order?: vega_pb.Order.AsObject, - } -} - -export class OrderVersionsByIDRequest extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderVersionsByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrderVersionsByIDRequest): OrderVersionsByIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderVersionsByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderVersionsByIDRequest; - static deserializeBinaryFromReader(message: OrderVersionsByIDRequest, reader: jspb.BinaryReader): OrderVersionsByIDRequest; -} - -export namespace OrderVersionsByIDRequest { - export type AsObject = { - orderId: string, - pagination?: Pagination.AsObject, - } -} - -export class OrderVersionsByIDResponse extends jspb.Message { - clearOrdersList(): void; - getOrdersList(): Array; - setOrdersList(value: Array): void; - addOrders(value?: vega_pb.Order, index?: number): vega_pb.Order; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderVersionsByIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrderVersionsByIDResponse): OrderVersionsByIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderVersionsByIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderVersionsByIDResponse; - static deserializeBinaryFromReader(message: OrderVersionsByIDResponse, reader: jspb.BinaryReader): OrderVersionsByIDResponse; -} - -export namespace OrderVersionsByIDResponse { - export type AsObject = { - ordersList: Array, - } -} - -export class EstimateFeeRequest extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EstimateFeeRequest.AsObject; - static toObject(includeInstance: boolean, msg: EstimateFeeRequest): EstimateFeeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EstimateFeeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EstimateFeeRequest; - static deserializeBinaryFromReader(message: EstimateFeeRequest, reader: jspb.BinaryReader): EstimateFeeRequest; -} - -export namespace EstimateFeeRequest { - export type AsObject = { - order?: vega_pb.Order.AsObject, - } -} - -export class EstimateFeeResponse extends jspb.Message { - hasFee(): boolean; - clearFee(): void; - getFee(): vega_pb.Fee | undefined; - setFee(value?: vega_pb.Fee): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EstimateFeeResponse.AsObject; - static toObject(includeInstance: boolean, msg: EstimateFeeResponse): EstimateFeeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EstimateFeeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EstimateFeeResponse; - static deserializeBinaryFromReader(message: EstimateFeeResponse, reader: jspb.BinaryReader): EstimateFeeResponse; -} - -export namespace EstimateFeeResponse { - export type AsObject = { - fee?: vega_pb.Fee.AsObject, - } -} - -export class EstimateMarginRequest extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EstimateMarginRequest.AsObject; - static toObject(includeInstance: boolean, msg: EstimateMarginRequest): EstimateMarginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EstimateMarginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EstimateMarginRequest; - static deserializeBinaryFromReader(message: EstimateMarginRequest, reader: jspb.BinaryReader): EstimateMarginRequest; -} - -export namespace EstimateMarginRequest { - export type AsObject = { - order?: vega_pb.Order.AsObject, - } -} - -export class EstimateMarginResponse extends jspb.Message { - hasMarginLevels(): boolean; - clearMarginLevels(): void; - getMarginLevels(): vega_pb.MarginLevels | undefined; - setMarginLevels(value?: vega_pb.MarginLevels): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EstimateMarginResponse.AsObject; - static toObject(includeInstance: boolean, msg: EstimateMarginResponse): EstimateMarginResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EstimateMarginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EstimateMarginResponse; - static deserializeBinaryFromReader(message: EstimateMarginResponse, reader: jspb.BinaryReader): EstimateMarginResponse; -} - -export namespace EstimateMarginResponse { - export type AsObject = { - marginLevels?: vega_pb.MarginLevels.AsObject, - } -} - -export class ObserveEventBusRequest extends jspb.Message { - clearTypeList(): void; - getTypeList(): Array; - setTypeList(value: Array): void; - addType(value: events_v1_events_pb.BusEventTypeMap[keyof events_v1_events_pb.BusEventTypeMap], index?: number): events_v1_events_pb.BusEventTypeMap[keyof events_v1_events_pb.BusEventTypeMap]; - - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getBatchSize(): number; - setBatchSize(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveEventBusRequest.AsObject; - static toObject(includeInstance: boolean, msg: ObserveEventBusRequest): ObserveEventBusRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveEventBusRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveEventBusRequest; - static deserializeBinaryFromReader(message: ObserveEventBusRequest, reader: jspb.BinaryReader): ObserveEventBusRequest; -} - -export namespace ObserveEventBusRequest { - export type AsObject = { - typeList: Array, - marketId: string, - partyId: string, - batchSize: number, - } -} - -export class ObserveEventBusResponse extends jspb.Message { - clearEventsList(): void; - getEventsList(): Array; - setEventsList(value: Array): void; - addEvents(value?: events_v1_events_pb.BusEvent, index?: number): events_v1_events_pb.BusEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ObserveEventBusResponse.AsObject; - static toObject(includeInstance: boolean, msg: ObserveEventBusResponse): ObserveEventBusResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ObserveEventBusResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ObserveEventBusResponse; - static deserializeBinaryFromReader(message: ObserveEventBusResponse, reader: jspb.BinaryReader): ObserveEventBusResponse; -} - -export namespace ObserveEventBusResponse { - export type AsObject = { - eventsList: Array, - } -} - -export class StatisticsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatisticsRequest.AsObject; - static toObject(includeInstance: boolean, msg: StatisticsRequest): StatisticsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatisticsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatisticsRequest; - static deserializeBinaryFromReader(message: StatisticsRequest, reader: jspb.BinaryReader): StatisticsRequest; -} - -export namespace StatisticsRequest { - export type AsObject = { - } -} - -export class StatisticsResponse extends jspb.Message { - hasStatistics(): boolean; - clearStatistics(): void; - getStatistics(): vega_pb.Statistics | undefined; - setStatistics(value?: vega_pb.Statistics): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatisticsResponse.AsObject; - static toObject(includeInstance: boolean, msg: StatisticsResponse): StatisticsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatisticsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatisticsResponse; - static deserializeBinaryFromReader(message: StatisticsResponse, reader: jspb.BinaryReader): StatisticsResponse; -} - -export namespace StatisticsResponse { - export type AsObject = { - statistics?: vega_pb.Statistics.AsObject, - } -} - -export class WithdrawalsRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawalsRequest.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawalsRequest): WithdrawalsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawalsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawalsRequest; - static deserializeBinaryFromReader(message: WithdrawalsRequest, reader: jspb.BinaryReader): WithdrawalsRequest; -} - -export namespace WithdrawalsRequest { - export type AsObject = { - partyId: string, - } -} - -export class WithdrawalsResponse extends jspb.Message { - clearWithdrawalsList(): void; - getWithdrawalsList(): Array; - setWithdrawalsList(value: Array): void; - addWithdrawals(value?: vega_pb.Withdrawal, index?: number): vega_pb.Withdrawal; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawalsResponse.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawalsResponse): WithdrawalsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawalsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawalsResponse; - static deserializeBinaryFromReader(message: WithdrawalsResponse, reader: jspb.BinaryReader): WithdrawalsResponse; -} - -export namespace WithdrawalsResponse { - export type AsObject = { - withdrawalsList: Array, - } -} - -export class WithdrawalRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawalRequest.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawalRequest): WithdrawalRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawalRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawalRequest; - static deserializeBinaryFromReader(message: WithdrawalRequest, reader: jspb.BinaryReader): WithdrawalRequest; -} - -export namespace WithdrawalRequest { - export type AsObject = { - id: string, - } -} - -export class WithdrawalResponse extends jspb.Message { - hasWithdrawal(): boolean; - clearWithdrawal(): void; - getWithdrawal(): vega_pb.Withdrawal | undefined; - setWithdrawal(value?: vega_pb.Withdrawal): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawalResponse.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawalResponse): WithdrawalResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawalResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawalResponse; - static deserializeBinaryFromReader(message: WithdrawalResponse, reader: jspb.BinaryReader): WithdrawalResponse; -} - -export namespace WithdrawalResponse { - export type AsObject = { - withdrawal?: vega_pb.Withdrawal.AsObject, - } -} - -export class ERC20WithdrawalApprovalRequest extends jspb.Message { - getWithdrawalId(): string; - setWithdrawalId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20WithdrawalApprovalRequest.AsObject; - static toObject(includeInstance: boolean, msg: ERC20WithdrawalApprovalRequest): ERC20WithdrawalApprovalRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20WithdrawalApprovalRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20WithdrawalApprovalRequest; - static deserializeBinaryFromReader(message: ERC20WithdrawalApprovalRequest, reader: jspb.BinaryReader): ERC20WithdrawalApprovalRequest; -} - -export namespace ERC20WithdrawalApprovalRequest { - export type AsObject = { - withdrawalId: string, - } -} - -export class ERC20WithdrawalApprovalResponse extends jspb.Message { - getAssetSource(): string; - setAssetSource(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - getExpiry(): number; - setExpiry(value: number): void; - - getNonce(): string; - setNonce(value: string): void; - - getSignatures(): string; - setSignatures(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20WithdrawalApprovalResponse.AsObject; - static toObject(includeInstance: boolean, msg: ERC20WithdrawalApprovalResponse): ERC20WithdrawalApprovalResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20WithdrawalApprovalResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20WithdrawalApprovalResponse; - static deserializeBinaryFromReader(message: ERC20WithdrawalApprovalResponse, reader: jspb.BinaryReader): ERC20WithdrawalApprovalResponse; -} - -export namespace ERC20WithdrawalApprovalResponse { - export type AsObject = { - assetSource: string, - amount: string, - expiry: number, - nonce: string, - signatures: string, - } -} - -export class DepositsRequest extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DepositsRequest): DepositsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DepositsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositsRequest; - static deserializeBinaryFromReader(message: DepositsRequest, reader: jspb.BinaryReader): DepositsRequest; -} - -export namespace DepositsRequest { - export type AsObject = { - partyId: string, - } -} - -export class DepositsResponse extends jspb.Message { - clearDepositsList(): void; - getDepositsList(): Array; - setDepositsList(value: Array): void; - addDeposits(value?: vega_pb.Deposit, index?: number): vega_pb.Deposit; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositsResponse.AsObject; - static toObject(includeInstance: boolean, msg: DepositsResponse): DepositsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DepositsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositsResponse; - static deserializeBinaryFromReader(message: DepositsResponse, reader: jspb.BinaryReader): DepositsResponse; -} - -export namespace DepositsResponse { - export type AsObject = { - depositsList: Array, - } -} - -export class DepositRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositRequest.AsObject; - static toObject(includeInstance: boolean, msg: DepositRequest): DepositRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DepositRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositRequest; - static deserializeBinaryFromReader(message: DepositRequest, reader: jspb.BinaryReader): DepositRequest; -} - -export namespace DepositRequest { - export type AsObject = { - id: string, - } -} - -export class DepositResponse extends jspb.Message { - hasDeposit(): boolean; - clearDeposit(): void; - getDeposit(): vega_pb.Deposit | undefined; - setDeposit(value?: vega_pb.Deposit): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositResponse.AsObject; - static toObject(includeInstance: boolean, msg: DepositResponse): DepositResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DepositResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositResponse; - static deserializeBinaryFromReader(message: DepositResponse, reader: jspb.BinaryReader): DepositResponse; -} - -export namespace DepositResponse { - export type AsObject = { - deposit?: vega_pb.Deposit.AsObject, - } -} - -export class NetworkParametersRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NetworkParametersRequest.AsObject; - static toObject(includeInstance: boolean, msg: NetworkParametersRequest): NetworkParametersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NetworkParametersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NetworkParametersRequest; - static deserializeBinaryFromReader(message: NetworkParametersRequest, reader: jspb.BinaryReader): NetworkParametersRequest; -} - -export namespace NetworkParametersRequest { - export type AsObject = { - } -} - -export class NetworkParametersResponse extends jspb.Message { - clearNetworkParametersList(): void; - getNetworkParametersList(): Array; - setNetworkParametersList(value: Array): void; - addNetworkParameters(value?: vega_pb.NetworkParameter, index?: number): vega_pb.NetworkParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NetworkParametersResponse.AsObject; - static toObject(includeInstance: boolean, msg: NetworkParametersResponse): NetworkParametersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NetworkParametersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NetworkParametersResponse; - static deserializeBinaryFromReader(message: NetworkParametersResponse, reader: jspb.BinaryReader): NetworkParametersResponse; -} - -export namespace NetworkParametersResponse { - export type AsObject = { - networkParametersList: Array, - } -} - -export class LiquidityProvisionsRequest extends jspb.Message { - getMarket(): string; - setMarket(value: string): void; - - getParty(): string; - setParty(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityProvisionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityProvisionsRequest): LiquidityProvisionsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityProvisionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityProvisionsRequest; - static deserializeBinaryFromReader(message: LiquidityProvisionsRequest, reader: jspb.BinaryReader): LiquidityProvisionsRequest; -} - -export namespace LiquidityProvisionsRequest { - export type AsObject = { - market: string, - party: string, - } -} - -export class LiquidityProvisionsResponse extends jspb.Message { - clearLiquidityProvisionsList(): void; - getLiquidityProvisionsList(): Array; - setLiquidityProvisionsList(value: Array): void; - addLiquidityProvisions(value?: vega_pb.LiquidityProvision, index?: number): vega_pb.LiquidityProvision; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityProvisionsResponse.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityProvisionsResponse): LiquidityProvisionsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityProvisionsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityProvisionsResponse; - static deserializeBinaryFromReader(message: LiquidityProvisionsResponse, reader: jspb.BinaryReader): LiquidityProvisionsResponse; -} - -export namespace LiquidityProvisionsResponse { - export type AsObject = { - liquidityProvisionsList: Array, - } -} - -export class OracleSpecRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecRequest.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecRequest): OracleSpecRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecRequest; - static deserializeBinaryFromReader(message: OracleSpecRequest, reader: jspb.BinaryReader): OracleSpecRequest; -} - -export namespace OracleSpecRequest { - export type AsObject = { - id: string, - } -} - -export class OracleSpecResponse extends jspb.Message { - hasOracleSpec(): boolean; - clearOracleSpec(): void; - getOracleSpec(): oracles_v1_spec_pb.OracleSpec | undefined; - setOracleSpec(value?: oracles_v1_spec_pb.OracleSpec): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecResponse.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecResponse): OracleSpecResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecResponse; - static deserializeBinaryFromReader(message: OracleSpecResponse, reader: jspb.BinaryReader): OracleSpecResponse; -} - -export namespace OracleSpecResponse { - export type AsObject = { - oracleSpec?: oracles_v1_spec_pb.OracleSpec.AsObject, - } -} - -export class OracleSpecsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecsRequest.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecsRequest): OracleSpecsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecsRequest; - static deserializeBinaryFromReader(message: OracleSpecsRequest, reader: jspb.BinaryReader): OracleSpecsRequest; -} - -export namespace OracleSpecsRequest { - export type AsObject = { - } -} - -export class OracleSpecsResponse extends jspb.Message { - clearOracleSpecsList(): void; - getOracleSpecsList(): Array; - setOracleSpecsList(value: Array): void; - addOracleSpecs(value?: oracles_v1_spec_pb.OracleSpec, index?: number): oracles_v1_spec_pb.OracleSpec; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecsResponse.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecsResponse): OracleSpecsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecsResponse; - static deserializeBinaryFromReader(message: OracleSpecsResponse, reader: jspb.BinaryReader): OracleSpecsResponse; -} - -export namespace OracleSpecsResponse { - export type AsObject = { - oracleSpecsList: Array, - } -} - -export class OracleDataBySpecRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleDataBySpecRequest.AsObject; - static toObject(includeInstance: boolean, msg: OracleDataBySpecRequest): OracleDataBySpecRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleDataBySpecRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleDataBySpecRequest; - static deserializeBinaryFromReader(message: OracleDataBySpecRequest, reader: jspb.BinaryReader): OracleDataBySpecRequest; -} - -export namespace OracleDataBySpecRequest { - export type AsObject = { - id: string, - } -} - -export class OracleDataBySpecResponse extends jspb.Message { - clearOracleDataList(): void; - getOracleDataList(): Array; - setOracleDataList(value: Array): void; - addOracleData(value?: oracles_v1_data_pb.OracleData, index?: number): oracles_v1_data_pb.OracleData; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleDataBySpecResponse.AsObject; - static toObject(includeInstance: boolean, msg: OracleDataBySpecResponse): OracleDataBySpecResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleDataBySpecResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleDataBySpecResponse; - static deserializeBinaryFromReader(message: OracleDataBySpecResponse, reader: jspb.BinaryReader): OracleDataBySpecResponse; -} - -export namespace OracleDataBySpecResponse { - export type AsObject = { - oracleDataList: Array, - } -} - -export class LastBlockHeightRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastBlockHeightRequest.AsObject; - static toObject(includeInstance: boolean, msg: LastBlockHeightRequest): LastBlockHeightRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastBlockHeightRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastBlockHeightRequest; - static deserializeBinaryFromReader(message: LastBlockHeightRequest, reader: jspb.BinaryReader): LastBlockHeightRequest; -} - -export namespace LastBlockHeightRequest { - export type AsObject = { - } -} - -export class LastBlockHeightResponse extends jspb.Message { - getHeight(): number; - setHeight(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastBlockHeightResponse.AsObject; - static toObject(includeInstance: boolean, msg: LastBlockHeightResponse): LastBlockHeightResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastBlockHeightResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastBlockHeightResponse; - static deserializeBinaryFromReader(message: LastBlockHeightResponse, reader: jspb.BinaryReader): LastBlockHeightResponse; -} - -export namespace LastBlockHeightResponse { - export type AsObject = { - height: number, - } -} - diff --git a/grpc/clients/js/generated/api/trading_pb.js b/grpc/clients/js/generated/api/trading_pb.js index c59ea9b1..46e58fad 100644 --- a/grpc/clients/js/generated/api/trading_pb.js +++ b/grpc/clients/js/generated/api/trading_pb.js @@ -36,160 +36,20 @@ var commands_v1_validator_commands_pb = require('../commands/v1/validator_comman goog.object.extend(proto, commands_v1_validator_commands_pb); var github_com_mwitkow_go$proto$validators_validator_pb = require('../github.com/mwitkow/go-proto-validators/validator_pb.js'); goog.object.extend(proto, github_com_mwitkow_go$proto$validators_validator_pb); -goog.exportSymbol('proto.api.v1.AccountsSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.AccountsSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.AssetByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.AssetByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.AssetsRequest', null, global); -goog.exportSymbol('proto.api.v1.AssetsResponse', null, global); -goog.exportSymbol('proto.api.v1.CandlesRequest', null, global); -goog.exportSymbol('proto.api.v1.CandlesResponse', null, global); -goog.exportSymbol('proto.api.v1.CandlesSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.CandlesSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.DepositRequest', null, global); -goog.exportSymbol('proto.api.v1.DepositResponse', null, global); -goog.exportSymbol('proto.api.v1.DepositsRequest', null, global); -goog.exportSymbol('proto.api.v1.DepositsResponse', null, global); -goog.exportSymbol('proto.api.v1.ERC20WithdrawalApprovalRequest', null, global); -goog.exportSymbol('proto.api.v1.ERC20WithdrawalApprovalResponse', null, global); -goog.exportSymbol('proto.api.v1.EstimateFeeRequest', null, global); -goog.exportSymbol('proto.api.v1.EstimateFeeResponse', null, global); -goog.exportSymbol('proto.api.v1.EstimateMarginRequest', null, global); -goog.exportSymbol('proto.api.v1.EstimateMarginResponse', null, global); -goog.exportSymbol('proto.api.v1.FeeInfrastructureAccountsRequest', null, global); -goog.exportSymbol('proto.api.v1.FeeInfrastructureAccountsResponse', null, global); -goog.exportSymbol('proto.api.v1.GetNetworkParametersProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.GetNetworkParametersProposalsResponse', null, global); -goog.exportSymbol('proto.api.v1.GetNewAssetProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.GetNewAssetProposalsResponse', null, global); -goog.exportSymbol('proto.api.v1.GetNewMarketProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.GetNewMarketProposalsResponse', null, global); -goog.exportSymbol('proto.api.v1.GetNodeSignaturesAggregateRequest', null, global); -goog.exportSymbol('proto.api.v1.GetNodeSignaturesAggregateResponse', null, global); -goog.exportSymbol('proto.api.v1.GetProposalByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.GetProposalByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.GetProposalByReferenceRequest', null, global); -goog.exportSymbol('proto.api.v1.GetProposalByReferenceResponse', null, global); -goog.exportSymbol('proto.api.v1.GetProposalsByPartyRequest', null, global); -goog.exportSymbol('proto.api.v1.GetProposalsByPartyResponse', null, global); -goog.exportSymbol('proto.api.v1.GetProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.GetProposalsResponse', null, global); -goog.exportSymbol('proto.api.v1.GetUpdateMarketProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.GetUpdateMarketProposalsResponse', null, global); goog.exportSymbol('proto.api.v1.GetVegaTimeRequest', null, global); goog.exportSymbol('proto.api.v1.GetVegaTimeResponse', null, global); -goog.exportSymbol('proto.api.v1.GetVotesByPartyRequest', null, global); -goog.exportSymbol('proto.api.v1.GetVotesByPartyResponse', null, global); goog.exportSymbol('proto.api.v1.LastBlockHeightRequest', null, global); goog.exportSymbol('proto.api.v1.LastBlockHeightResponse', null, global); -goog.exportSymbol('proto.api.v1.LastTradeRequest', null, global); -goog.exportSymbol('proto.api.v1.LastTradeResponse', null, global); -goog.exportSymbol('proto.api.v1.LiquidityProvisionsRequest', null, global); -goog.exportSymbol('proto.api.v1.LiquidityProvisionsResponse', null, global); -goog.exportSymbol('proto.api.v1.MarginLevelsRequest', null, global); -goog.exportSymbol('proto.api.v1.MarginLevelsResponse', null, global); -goog.exportSymbol('proto.api.v1.MarginLevelsSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.MarginLevelsSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketAccountsRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketAccountsResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketDataByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketDataByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthUpdatesSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketDepthUpdatesSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketsDataRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketsDataResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketsDataSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketsDataSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.MarketsRequest', null, global); -goog.exportSymbol('proto.api.v1.MarketsResponse', null, global); -goog.exportSymbol('proto.api.v1.NetworkParametersRequest', null, global); -goog.exportSymbol('proto.api.v1.NetworkParametersResponse', null, global); goog.exportSymbol('proto.api.v1.ObserveEventBusRequest', null, global); goog.exportSymbol('proto.api.v1.ObserveEventBusResponse', null, global); -goog.exportSymbol('proto.api.v1.ObserveGovernanceRequest', null, global); -goog.exportSymbol('proto.api.v1.ObserveGovernanceResponse', null, global); -goog.exportSymbol('proto.api.v1.ObservePartyProposalsRequest', null, global); -goog.exportSymbol('proto.api.v1.ObservePartyProposalsResponse', null, global); -goog.exportSymbol('proto.api.v1.ObservePartyVotesRequest', null, global); -goog.exportSymbol('proto.api.v1.ObservePartyVotesResponse', null, global); -goog.exportSymbol('proto.api.v1.ObserveProposalVotesRequest', null, global); -goog.exportSymbol('proto.api.v1.ObserveProposalVotesResponse', null, global); -goog.exportSymbol('proto.api.v1.OptionalProposalState', null, global); -goog.exportSymbol('proto.api.v1.OracleDataBySpecRequest', null, global); -goog.exportSymbol('proto.api.v1.OracleDataBySpecResponse', null, global); -goog.exportSymbol('proto.api.v1.OracleSpecRequest', null, global); -goog.exportSymbol('proto.api.v1.OracleSpecResponse', null, global); -goog.exportSymbol('proto.api.v1.OracleSpecsRequest', null, global); -goog.exportSymbol('proto.api.v1.OracleSpecsResponse', null, global); -goog.exportSymbol('proto.api.v1.OrderByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.OrderByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.OrderByMarketAndIDRequest', null, global); -goog.exportSymbol('proto.api.v1.OrderByMarketAndIDResponse', null, global); -goog.exportSymbol('proto.api.v1.OrderByReferenceRequest', null, global); -goog.exportSymbol('proto.api.v1.OrderByReferenceResponse', null, global); -goog.exportSymbol('proto.api.v1.OrderVersionsByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.OrderVersionsByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.OrdersByMarketRequest', null, global); -goog.exportSymbol('proto.api.v1.OrdersByMarketResponse', null, global); -goog.exportSymbol('proto.api.v1.OrdersByPartyRequest', null, global); -goog.exportSymbol('proto.api.v1.OrdersByPartyResponse', null, global); -goog.exportSymbol('proto.api.v1.OrdersSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.OrdersSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.Pagination', null, global); -goog.exportSymbol('proto.api.v1.PartiesRequest', null, global); -goog.exportSymbol('proto.api.v1.PartiesResponse', null, global); -goog.exportSymbol('proto.api.v1.PartyAccountsRequest', null, global); -goog.exportSymbol('proto.api.v1.PartyAccountsResponse', null, global); -goog.exportSymbol('proto.api.v1.PartyByIDRequest', null, global); -goog.exportSymbol('proto.api.v1.PartyByIDResponse', null, global); -goog.exportSymbol('proto.api.v1.PositionsByPartyRequest', null, global); -goog.exportSymbol('proto.api.v1.PositionsByPartyResponse', null, global); -goog.exportSymbol('proto.api.v1.PositionsSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.PositionsSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareAmendOrderRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareAmendOrderResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareCancelOrderRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareCancelOrderResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareLiquidityProvisionRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareLiquidityProvisionResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareProposalSubmissionRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareProposalSubmissionResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareSubmitOrderRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareSubmitOrderResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareVoteSubmissionRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareVoteSubmissionResponse', null, global); -goog.exportSymbol('proto.api.v1.PrepareWithdrawRequest', null, global); -goog.exportSymbol('proto.api.v1.PrepareWithdrawResponse', null, global); goog.exportSymbol('proto.api.v1.PropagateChainEventRequest', null, global); goog.exportSymbol('proto.api.v1.PropagateChainEventResponse', null, global); +goog.exportSymbol('proto.api.v1.Statistics', null, global); goog.exportSymbol('proto.api.v1.StatisticsRequest', null, global); goog.exportSymbol('proto.api.v1.StatisticsResponse', null, global); -goog.exportSymbol('proto.api.v1.SubmitTransactionRequest', null, global); -goog.exportSymbol('proto.api.v1.SubmitTransactionRequest.Type', null, global); -goog.exportSymbol('proto.api.v1.SubmitTransactionResponse', null, global); goog.exportSymbol('proto.api.v1.SubmitTransactionV2Request', null, global); goog.exportSymbol('proto.api.v1.SubmitTransactionV2Request.Type', null, global); goog.exportSymbol('proto.api.v1.SubmitTransactionV2Response', null, global); -goog.exportSymbol('proto.api.v1.TradesByMarketRequest', null, global); -goog.exportSymbol('proto.api.v1.TradesByMarketResponse', null, global); -goog.exportSymbol('proto.api.v1.TradesByOrderRequest', null, global); -goog.exportSymbol('proto.api.v1.TradesByOrderResponse', null, global); -goog.exportSymbol('proto.api.v1.TradesByPartyRequest', null, global); -goog.exportSymbol('proto.api.v1.TradesByPartyResponse', null, global); -goog.exportSymbol('proto.api.v1.TradesSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.TradesSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.TransferResponsesSubscribeRequest', null, global); -goog.exportSymbol('proto.api.v1.TransferResponsesSubscribeResponse', null, global); -goog.exportSymbol('proto.api.v1.WithdrawalRequest', null, global); -goog.exportSymbol('proto.api.v1.WithdrawalResponse', null, global); -goog.exportSymbol('proto.api.v1.WithdrawalsRequest', null, global); -goog.exportSymbol('proto.api.v1.WithdrawalsResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -232,48 +92,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.api.v1.PropagateChainEventResponse.displayName = 'proto.api.v1.PropagateChainEventResponse'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.SubmitTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.SubmitTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.SubmitTransactionRequest.displayName = 'proto.api.v1.SubmitTransactionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.SubmitTransactionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.SubmitTransactionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.SubmitTransactionResponse.displayName = 'proto.api.v1.SubmitTransactionResponse'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -326,16 +144,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareWithdrawRequest = function(opt_data) { +proto.api.v1.GetVegaTimeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareWithdrawRequest, jspb.Message); +goog.inherits(proto.api.v1.GetVegaTimeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareWithdrawRequest.displayName = 'proto.api.v1.PrepareWithdrawRequest'; + proto.api.v1.GetVegaTimeRequest.displayName = 'proto.api.v1.GetVegaTimeRequest'; } /** * Generated by JsPbCodeGenerator. @@ -347,16 +165,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareWithdrawResponse = function(opt_data) { +proto.api.v1.GetVegaTimeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareWithdrawResponse, jspb.Message); +goog.inherits(proto.api.v1.GetVegaTimeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareWithdrawResponse.displayName = 'proto.api.v1.PrepareWithdrawResponse'; + proto.api.v1.GetVegaTimeResponse.displayName = 'proto.api.v1.GetVegaTimeResponse'; } /** * Generated by JsPbCodeGenerator. @@ -368,16 +186,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareSubmitOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.ObserveEventBusRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.ObserveEventBusRequest.repeatedFields_, null); }; -goog.inherits(proto.api.v1.PrepareSubmitOrderResponse, jspb.Message); +goog.inherits(proto.api.v1.ObserveEventBusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareSubmitOrderResponse.displayName = 'proto.api.v1.PrepareSubmitOrderResponse'; + proto.api.v1.ObserveEventBusRequest.displayName = 'proto.api.v1.ObserveEventBusRequest'; } /** * Generated by JsPbCodeGenerator. @@ -389,16 +207,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareCancelOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.ObserveEventBusResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.ObserveEventBusResponse.repeatedFields_, null); }; -goog.inherits(proto.api.v1.PrepareCancelOrderResponse, jspb.Message); +goog.inherits(proto.api.v1.ObserveEventBusResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareCancelOrderResponse.displayName = 'proto.api.v1.PrepareCancelOrderResponse'; + proto.api.v1.ObserveEventBusResponse.displayName = 'proto.api.v1.ObserveEventBusResponse'; } /** * Generated by JsPbCodeGenerator. @@ -410,16 +228,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareAmendOrderResponse = function(opt_data) { +proto.api.v1.StatisticsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareAmendOrderResponse, jspb.Message); +goog.inherits(proto.api.v1.StatisticsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareAmendOrderResponse.displayName = 'proto.api.v1.PrepareAmendOrderResponse'; + proto.api.v1.StatisticsRequest.displayName = 'proto.api.v1.StatisticsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -431,16 +249,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareSubmitOrderRequest = function(opt_data) { +proto.api.v1.StatisticsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareSubmitOrderRequest, jspb.Message); +goog.inherits(proto.api.v1.StatisticsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareSubmitOrderRequest.displayName = 'proto.api.v1.PrepareSubmitOrderRequest'; + proto.api.v1.StatisticsResponse.displayName = 'proto.api.v1.StatisticsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -452,16 +270,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareCancelOrderRequest = function(opt_data) { +proto.api.v1.Statistics = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareCancelOrderRequest, jspb.Message); +goog.inherits(proto.api.v1.Statistics, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareCancelOrderRequest.displayName = 'proto.api.v1.PrepareCancelOrderRequest'; + proto.api.v1.Statistics.displayName = 'proto.api.v1.Statistics'; } /** * Generated by JsPbCodeGenerator. @@ -473,16 +291,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.PrepareAmendOrderRequest = function(opt_data) { +proto.api.v1.LastBlockHeightRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.PrepareAmendOrderRequest, jspb.Message); +goog.inherits(proto.api.v1.LastBlockHeightRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.PrepareAmendOrderRequest.displayName = 'proto.api.v1.PrepareAmendOrderRequest'; + proto.api.v1.LastBlockHeightRequest.displayName = 'proto.api.v1.LastBlockHeightRequest'; } /** * Generated by JsPbCodeGenerator. @@ -494,23422 +312,147 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.api.v1.AssetsRequest = function(opt_data) { +proto.api.v1.LastBlockHeightResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.api.v1.AssetsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.AssetsRequest.displayName = 'proto.api.v1.AssetsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.AssetsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.AssetsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.AssetsResponse, jspb.Message); +goog.inherits(proto.api.v1.LastBlockHeightResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.api.v1.AssetsResponse.displayName = 'proto.api.v1.AssetsResponse'; + proto.api.v1.LastBlockHeightResponse.displayName = 'proto.api.v1.LastBlockHeightResponse'; } + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.api.v1.AssetByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.PropagateChainEventRequest.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.PropagateChainEventRequest.toObject(opt_includeInstance, this); }; -goog.inherits(proto.api.v1.AssetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.AssetByIDRequest.displayName = 'proto.api.v1.AssetByIDRequest'; -} + + /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.api.v1.PropagateChainEventRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.AssetByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.PropagateChainEventRequest.toObject = function(includeInstance, msg) { + var f, obj = { + event: msg.getEvent_asB64(), + pubKey: jspb.Message.getFieldWithDefault(msg, 2, ""), + signature: msg.getSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; -goog.inherits(proto.api.v1.AssetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.AssetByIDResponse.displayName = 'proto.api.v1.AssetByIDResponse'; } + + /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.api.v1.PropagateChainEventRequest} */ -proto.api.v1.GetNodeSignaturesAggregateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.PropagateChainEventRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.api.v1.PropagateChainEventRequest; + return proto.api.v1.PropagateChainEventRequest.deserializeBinaryFromReader(msg, reader); }; -goog.inherits(proto.api.v1.GetNodeSignaturesAggregateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNodeSignaturesAggregateRequest.displayName = 'proto.api.v1.GetNodeSignaturesAggregateRequest'; -} + + /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.api.v1.PropagateChainEventRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.api.v1.PropagateChainEventRequest} */ -proto.api.v1.GetNodeSignaturesAggregateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetNodeSignaturesAggregateResponse.repeatedFields_, null); +proto.api.v1.PropagateChainEventRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setEvent(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPubKey(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; -goog.inherits(proto.api.v1.GetNodeSignaturesAggregateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNodeSignaturesAggregateResponse.displayName = 'proto.api.v1.GetNodeSignaturesAggregateResponse'; -} + + /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.api.v1.OptionalProposalState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.api.v1.PropagateChainEventRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.api.v1.PropagateChainEventRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; -goog.inherits(proto.api.v1.OptionalProposalState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OptionalProposalState.displayName = 'proto.api.v1.OptionalProposalState'; -} + + /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.api.v1.PropagateChainEventRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.GetProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalsRequest.displayName = 'proto.api.v1.GetProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetProposalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalsResponse.displayName = 'proto.api.v1.GetProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalsByPartyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalsByPartyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalsByPartyRequest.displayName = 'proto.api.v1.GetProposalsByPartyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalsByPartyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetProposalsByPartyResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetProposalsByPartyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalsByPartyResponse.displayName = 'proto.api.v1.GetProposalsByPartyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetVotesByPartyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetVotesByPartyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetVotesByPartyRequest.displayName = 'proto.api.v1.GetVotesByPartyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetVotesByPartyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetVotesByPartyResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetVotesByPartyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetVotesByPartyResponse.displayName = 'proto.api.v1.GetVotesByPartyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNewMarketProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetNewMarketProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNewMarketProposalsRequest.displayName = 'proto.api.v1.GetNewMarketProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNewMarketProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetNewMarketProposalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetNewMarketProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNewMarketProposalsResponse.displayName = 'proto.api.v1.GetNewMarketProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetUpdateMarketProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetUpdateMarketProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetUpdateMarketProposalsRequest.displayName = 'proto.api.v1.GetUpdateMarketProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetUpdateMarketProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetUpdateMarketProposalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetUpdateMarketProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetUpdateMarketProposalsResponse.displayName = 'proto.api.v1.GetUpdateMarketProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNetworkParametersProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetNetworkParametersProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNetworkParametersProposalsRequest.displayName = 'proto.api.v1.GetNetworkParametersProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNetworkParametersProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetNetworkParametersProposalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetNetworkParametersProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNetworkParametersProposalsResponse.displayName = 'proto.api.v1.GetNetworkParametersProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNewAssetProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetNewAssetProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNewAssetProposalsRequest.displayName = 'proto.api.v1.GetNewAssetProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetNewAssetProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.GetNewAssetProposalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.GetNewAssetProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetNewAssetProposalsResponse.displayName = 'proto.api.v1.GetNewAssetProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalByIDRequest.displayName = 'proto.api.v1.GetProposalByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalByIDResponse.displayName = 'proto.api.v1.GetProposalByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalByReferenceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalByReferenceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalByReferenceRequest.displayName = 'proto.api.v1.GetProposalByReferenceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetProposalByReferenceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetProposalByReferenceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetProposalByReferenceResponse.displayName = 'proto.api.v1.GetProposalByReferenceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveGovernanceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObserveGovernanceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveGovernanceRequest.displayName = 'proto.api.v1.ObserveGovernanceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveGovernanceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObserveGovernanceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveGovernanceResponse.displayName = 'proto.api.v1.ObserveGovernanceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObservePartyProposalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObservePartyProposalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObservePartyProposalsRequest.displayName = 'proto.api.v1.ObservePartyProposalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObservePartyProposalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObservePartyProposalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObservePartyProposalsResponse.displayName = 'proto.api.v1.ObservePartyProposalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveProposalVotesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObserveProposalVotesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveProposalVotesRequest.displayName = 'proto.api.v1.ObserveProposalVotesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveProposalVotesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObserveProposalVotesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveProposalVotesResponse.displayName = 'proto.api.v1.ObserveProposalVotesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObservePartyVotesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObservePartyVotesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObservePartyVotesRequest.displayName = 'proto.api.v1.ObservePartyVotesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObservePartyVotesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ObservePartyVotesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObservePartyVotesResponse.displayName = 'proto.api.v1.ObservePartyVotesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarginLevelsSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarginLevelsSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarginLevelsSubscribeRequest.displayName = 'proto.api.v1.MarginLevelsSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarginLevelsSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarginLevelsSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarginLevelsSubscribeResponse.displayName = 'proto.api.v1.MarginLevelsSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarginLevelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarginLevelsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarginLevelsRequest.displayName = 'proto.api.v1.MarginLevelsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarginLevelsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.MarginLevelsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.MarginLevelsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarginLevelsResponse.displayName = 'proto.api.v1.MarginLevelsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsDataSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketsDataSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsDataSubscribeRequest.displayName = 'proto.api.v1.MarketsDataSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsDataSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketsDataSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsDataSubscribeResponse.displayName = 'proto.api.v1.MarketsDataSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDataByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDataByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDataByIDRequest.displayName = 'proto.api.v1.MarketDataByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDataByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDataByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDataByIDResponse.displayName = 'proto.api.v1.MarketDataByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsDataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketsDataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsDataRequest.displayName = 'proto.api.v1.MarketsDataRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsDataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.MarketsDataResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.MarketsDataResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsDataResponse.displayName = 'proto.api.v1.MarketsDataResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LastTradeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.LastTradeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LastTradeRequest.displayName = 'proto.api.v1.LastTradeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LastTradeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.LastTradeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LastTradeResponse.displayName = 'proto.api.v1.LastTradeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketByIDRequest.displayName = 'proto.api.v1.MarketByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketByIDResponse.displayName = 'proto.api.v1.MarketByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartyByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PartyByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartyByIDRequest.displayName = 'proto.api.v1.PartyByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartyByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PartyByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartyByIDResponse.displayName = 'proto.api.v1.PartyByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartiesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PartiesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartiesRequest.displayName = 'proto.api.v1.PartiesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartiesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.PartiesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.PartiesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartiesResponse.displayName = 'proto.api.v1.PartiesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByPartyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TradesByPartyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByPartyRequest.displayName = 'proto.api.v1.TradesByPartyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByPartyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.TradesByPartyResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.TradesByPartyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByPartyResponse.displayName = 'proto.api.v1.TradesByPartyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TradesByOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByOrderRequest.displayName = 'proto.api.v1.TradesByOrderRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.TradesByOrderResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.TradesByOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByOrderResponse.displayName = 'proto.api.v1.TradesByOrderResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.AccountsSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.AccountsSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.AccountsSubscribeRequest.displayName = 'proto.api.v1.AccountsSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.AccountsSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.AccountsSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.AccountsSubscribeResponse.displayName = 'proto.api.v1.AccountsSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrdersSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersSubscribeRequest.displayName = 'proto.api.v1.OrdersSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TradesSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesSubscribeRequest.displayName = 'proto.api.v1.TradesSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.CandlesSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.CandlesSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.CandlesSubscribeRequest.displayName = 'proto.api.v1.CandlesSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.CandlesSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.CandlesSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.CandlesSubscribeResponse.displayName = 'proto.api.v1.CandlesSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDepthSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthSubscribeRequest.displayName = 'proto.api.v1.MarketDepthSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDepthSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthSubscribeResponse.displayName = 'proto.api.v1.MarketDepthSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDepthUpdatesSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthUpdatesSubscribeRequest.displayName = 'proto.api.v1.MarketDepthUpdatesSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDepthUpdatesSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthUpdatesSubscribeResponse.displayName = 'proto.api.v1.MarketDepthUpdatesSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PositionsSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PositionsSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PositionsSubscribeRequest.displayName = 'proto.api.v1.PositionsSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PositionsSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PositionsSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PositionsSubscribeResponse.displayName = 'proto.api.v1.PositionsSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersByMarketRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrdersByMarketRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersByMarketRequest.displayName = 'proto.api.v1.OrdersByMarketRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersByMarketResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OrdersByMarketResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OrdersByMarketResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersByMarketResponse.displayName = 'proto.api.v1.OrdersByMarketResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersByPartyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrdersByPartyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersByPartyRequest.displayName = 'proto.api.v1.OrdersByPartyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersByPartyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OrdersByPartyResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OrdersByPartyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersByPartyResponse.displayName = 'proto.api.v1.OrdersByPartyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByMarketAndIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByMarketAndIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByMarketAndIDRequest.displayName = 'proto.api.v1.OrderByMarketAndIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByMarketAndIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByMarketAndIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByMarketAndIDResponse.displayName = 'proto.api.v1.OrderByMarketAndIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByReferenceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByReferenceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByReferenceRequest.displayName = 'proto.api.v1.OrderByReferenceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByReferenceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByReferenceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByReferenceResponse.displayName = 'proto.api.v1.OrderByReferenceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsRequest.displayName = 'proto.api.v1.MarketsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.MarketsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.MarketsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketsResponse.displayName = 'proto.api.v1.MarketsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.CandlesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.CandlesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.CandlesRequest.displayName = 'proto.api.v1.CandlesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.CandlesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.CandlesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.CandlesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.CandlesResponse.displayName = 'proto.api.v1.CandlesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketDepthRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthRequest.displayName = 'proto.api.v1.MarketDepthRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketDepthResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.MarketDepthResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.MarketDepthResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketDepthResponse.displayName = 'proto.api.v1.MarketDepthResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByMarketRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TradesByMarketRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByMarketRequest.displayName = 'proto.api.v1.TradesByMarketRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesByMarketResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.TradesByMarketResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.TradesByMarketResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesByMarketResponse.displayName = 'proto.api.v1.TradesByMarketResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PositionsByPartyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PositionsByPartyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PositionsByPartyRequest.displayName = 'proto.api.v1.PositionsByPartyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PositionsByPartyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.PositionsByPartyResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.PositionsByPartyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PositionsByPartyResponse.displayName = 'proto.api.v1.PositionsByPartyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetVegaTimeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetVegaTimeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetVegaTimeRequest.displayName = 'proto.api.v1.GetVegaTimeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.GetVegaTimeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.GetVegaTimeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.GetVegaTimeResponse.displayName = 'proto.api.v1.GetVegaTimeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.Pagination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.Pagination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.Pagination.displayName = 'proto.api.v1.Pagination'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrdersSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OrdersSubscribeResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OrdersSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrdersSubscribeResponse.displayName = 'proto.api.v1.OrdersSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TradesSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.TradesSubscribeResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.TradesSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TradesSubscribeResponse.displayName = 'proto.api.v1.TradesSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TransferResponsesSubscribeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TransferResponsesSubscribeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TransferResponsesSubscribeRequest.displayName = 'proto.api.v1.TransferResponsesSubscribeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.TransferResponsesSubscribeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.TransferResponsesSubscribeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.TransferResponsesSubscribeResponse.displayName = 'proto.api.v1.TransferResponsesSubscribeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartyAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PartyAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartyAccountsRequest.displayName = 'proto.api.v1.PartyAccountsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PartyAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.PartyAccountsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.PartyAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PartyAccountsResponse.displayName = 'proto.api.v1.PartyAccountsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.MarketAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketAccountsRequest.displayName = 'proto.api.v1.MarketAccountsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.MarketAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.MarketAccountsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.MarketAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.MarketAccountsResponse.displayName = 'proto.api.v1.MarketAccountsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.FeeInfrastructureAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.FeeInfrastructureAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.FeeInfrastructureAccountsRequest.displayName = 'proto.api.v1.FeeInfrastructureAccountsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.FeeInfrastructureAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.FeeInfrastructureAccountsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.FeeInfrastructureAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.FeeInfrastructureAccountsResponse.displayName = 'proto.api.v1.FeeInfrastructureAccountsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareProposalSubmissionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareProposalSubmissionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareProposalSubmissionRequest.displayName = 'proto.api.v1.PrepareProposalSubmissionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareProposalSubmissionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareProposalSubmissionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareProposalSubmissionResponse.displayName = 'proto.api.v1.PrepareProposalSubmissionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareVoteSubmissionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareVoteSubmissionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareVoteSubmissionRequest.displayName = 'proto.api.v1.PrepareVoteSubmissionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareVoteSubmissionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareVoteSubmissionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareVoteSubmissionResponse.displayName = 'proto.api.v1.PrepareVoteSubmissionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareLiquidityProvisionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareLiquidityProvisionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareLiquidityProvisionRequest.displayName = 'proto.api.v1.PrepareLiquidityProvisionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.PrepareLiquidityProvisionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.PrepareLiquidityProvisionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.PrepareLiquidityProvisionResponse.displayName = 'proto.api.v1.PrepareLiquidityProvisionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByIDRequest.displayName = 'proto.api.v1.OrderByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderByIDResponse.displayName = 'proto.api.v1.OrderByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderVersionsByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OrderVersionsByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderVersionsByIDRequest.displayName = 'proto.api.v1.OrderVersionsByIDRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OrderVersionsByIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OrderVersionsByIDResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OrderVersionsByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OrderVersionsByIDResponse.displayName = 'proto.api.v1.OrderVersionsByIDResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.EstimateFeeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.EstimateFeeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.EstimateFeeRequest.displayName = 'proto.api.v1.EstimateFeeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.EstimateFeeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.EstimateFeeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.EstimateFeeResponse.displayName = 'proto.api.v1.EstimateFeeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.EstimateMarginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.EstimateMarginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.EstimateMarginRequest.displayName = 'proto.api.v1.EstimateMarginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.EstimateMarginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.EstimateMarginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.EstimateMarginResponse.displayName = 'proto.api.v1.EstimateMarginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveEventBusRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.ObserveEventBusRequest.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.ObserveEventBusRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveEventBusRequest.displayName = 'proto.api.v1.ObserveEventBusRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ObserveEventBusResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.ObserveEventBusResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.ObserveEventBusResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ObserveEventBusResponse.displayName = 'proto.api.v1.ObserveEventBusResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.StatisticsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.StatisticsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.StatisticsRequest.displayName = 'proto.api.v1.StatisticsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.StatisticsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.StatisticsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.StatisticsResponse.displayName = 'proto.api.v1.StatisticsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.WithdrawalsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.WithdrawalsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.WithdrawalsRequest.displayName = 'proto.api.v1.WithdrawalsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.WithdrawalsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.WithdrawalsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.WithdrawalsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.WithdrawalsResponse.displayName = 'proto.api.v1.WithdrawalsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.WithdrawalRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.WithdrawalRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.WithdrawalRequest.displayName = 'proto.api.v1.WithdrawalRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.WithdrawalResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.WithdrawalResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.WithdrawalResponse.displayName = 'proto.api.v1.WithdrawalResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ERC20WithdrawalApprovalRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ERC20WithdrawalApprovalRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ERC20WithdrawalApprovalRequest.displayName = 'proto.api.v1.ERC20WithdrawalApprovalRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.ERC20WithdrawalApprovalResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.ERC20WithdrawalApprovalResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.ERC20WithdrawalApprovalResponse.displayName = 'proto.api.v1.ERC20WithdrawalApprovalResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.DepositsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.DepositsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.DepositsRequest.displayName = 'proto.api.v1.DepositsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.DepositsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.DepositsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.DepositsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.DepositsResponse.displayName = 'proto.api.v1.DepositsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.DepositRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.DepositRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.DepositRequest.displayName = 'proto.api.v1.DepositRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.DepositResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.DepositResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.DepositResponse.displayName = 'proto.api.v1.DepositResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.NetworkParametersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.NetworkParametersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.NetworkParametersRequest.displayName = 'proto.api.v1.NetworkParametersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.NetworkParametersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.NetworkParametersResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.NetworkParametersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.NetworkParametersResponse.displayName = 'proto.api.v1.NetworkParametersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LiquidityProvisionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.LiquidityProvisionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LiquidityProvisionsRequest.displayName = 'proto.api.v1.LiquidityProvisionsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LiquidityProvisionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.LiquidityProvisionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.LiquidityProvisionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LiquidityProvisionsResponse.displayName = 'proto.api.v1.LiquidityProvisionsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleSpecRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OracleSpecRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleSpecRequest.displayName = 'proto.api.v1.OracleSpecRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleSpecResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OracleSpecResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleSpecResponse.displayName = 'proto.api.v1.OracleSpecResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleSpecsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OracleSpecsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleSpecsRequest.displayName = 'proto.api.v1.OracleSpecsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleSpecsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OracleSpecsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OracleSpecsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleSpecsResponse.displayName = 'proto.api.v1.OracleSpecsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleDataBySpecRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.OracleDataBySpecRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleDataBySpecRequest.displayName = 'proto.api.v1.OracleDataBySpecRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.OracleDataBySpecResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.v1.OracleDataBySpecResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.v1.OracleDataBySpecResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.OracleDataBySpecResponse.displayName = 'proto.api.v1.OracleDataBySpecResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LastBlockHeightRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.LastBlockHeightRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LastBlockHeightRequest.displayName = 'proto.api.v1.LastBlockHeightRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.v1.LastBlockHeightResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.v1.LastBlockHeightResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.v1.LastBlockHeightResponse.displayName = 'proto.api.v1.LastBlockHeightResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PropagateChainEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PropagateChainEventRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PropagateChainEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PropagateChainEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - evt: (f = msg.getEvt()) && commands_v1_validator_commands_pb.ChainEvent.toObject(includeInstance, f), - pubKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - signature: msg.getSignature_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PropagateChainEventRequest} - */ -proto.api.v1.PropagateChainEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PropagateChainEventRequest; - return proto.api.v1.PropagateChainEventRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PropagateChainEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PropagateChainEventRequest} - */ -proto.api.v1.PropagateChainEventRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_validator_commands_pb.ChainEvent; - reader.readMessage(value,commands_v1_validator_commands_pb.ChainEvent.deserializeBinaryFromReader); - msg.setEvt(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPubKey(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PropagateChainEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PropagateChainEventRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PropagateChainEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PropagateChainEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEvt(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_validator_commands_pb.ChainEvent.serializeBinaryToWriter - ); - } - f = message.getPubKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional vega.commands.v1.ChainEvent evt = 1; - * @return {?proto.vega.commands.v1.ChainEvent} - */ -proto.api.v1.PropagateChainEventRequest.prototype.getEvt = function() { - return /** @type{?proto.vega.commands.v1.ChainEvent} */ ( - jspb.Message.getWrapperField(this, commands_v1_validator_commands_pb.ChainEvent, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.ChainEvent|undefined} value - * @return {!proto.api.v1.PropagateChainEventRequest} returns this -*/ -proto.api.v1.PropagateChainEventRequest.prototype.setEvt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PropagateChainEventRequest} returns this - */ -proto.api.v1.PropagateChainEventRequest.prototype.clearEvt = function() { - return this.setEvt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PropagateChainEventRequest.prototype.hasEvt = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string pub_key = 2; - * @return {string} - */ -proto.api.v1.PropagateChainEventRequest.prototype.getPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PropagateChainEventRequest} returns this - */ -proto.api.v1.PropagateChainEventRequest.prototype.setPubKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes signature = 3; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PropagateChainEventRequest.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes signature = 3; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.api.v1.PropagateChainEventRequest.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.api.v1.PropagateChainEventRequest.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PropagateChainEventRequest} returns this - */ -proto.api.v1.PropagateChainEventRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PropagateChainEventResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PropagateChainEventResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PropagateChainEventResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PropagateChainEventResponse.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PropagateChainEventResponse} - */ -proto.api.v1.PropagateChainEventResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PropagateChainEventResponse; - return proto.api.v1.PropagateChainEventResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PropagateChainEventResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PropagateChainEventResponse} - */ -proto.api.v1.PropagateChainEventResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PropagateChainEventResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PropagateChainEventResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PropagateChainEventResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PropagateChainEventResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool success = 1; - * @return {boolean} - */ -proto.api.v1.PropagateChainEventResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.v1.PropagateChainEventResponse} returns this - */ -proto.api.v1.PropagateChainEventResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.SubmitTransactionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.SubmitTransactionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.SubmitTransactionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tx: (f = msg.getTx()) && vega_pb.SignedBundle.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.SubmitTransactionRequest} - */ -proto.api.v1.SubmitTransactionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.SubmitTransactionRequest; - return proto.api.v1.SubmitTransactionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.SubmitTransactionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.SubmitTransactionRequest} - */ -proto.api.v1.SubmitTransactionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.SignedBundle; - reader.readMessage(value,vega_pb.SignedBundle.deserializeBinaryFromReader); - msg.setTx(value); - break; - case 2: - var value = /** @type {!proto.api.v1.SubmitTransactionRequest.Type} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.SubmitTransactionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.SubmitTransactionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.SubmitTransactionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTx(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.SignedBundle.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.api.v1.SubmitTransactionRequest.Type = { - TYPE_UNSPECIFIED: 0, - TYPE_ASYNC: 1, - TYPE_SYNC: 2, - TYPE_COMMIT: 3 -}; - -/** - * optional vega.SignedBundle tx = 1; - * @return {?proto.vega.SignedBundle} - */ -proto.api.v1.SubmitTransactionRequest.prototype.getTx = function() { - return /** @type{?proto.vega.SignedBundle} */ ( - jspb.Message.getWrapperField(this, vega_pb.SignedBundle, 1)); -}; - - -/** - * @param {?proto.vega.SignedBundle|undefined} value - * @return {!proto.api.v1.SubmitTransactionRequest} returns this -*/ -proto.api.v1.SubmitTransactionRequest.prototype.setTx = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.SubmitTransactionRequest} returns this - */ -proto.api.v1.SubmitTransactionRequest.prototype.clearTx = function() { - return this.setTx(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.SubmitTransactionRequest.prototype.hasTx = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Type type = 2; - * @return {!proto.api.v1.SubmitTransactionRequest.Type} - */ -proto.api.v1.SubmitTransactionRequest.prototype.getType = function() { - return /** @type {!proto.api.v1.SubmitTransactionRequest.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.v1.SubmitTransactionRequest.Type} value - * @return {!proto.api.v1.SubmitTransactionRequest} returns this - */ -proto.api.v1.SubmitTransactionRequest.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.SubmitTransactionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.SubmitTransactionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.SubmitTransactionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.SubmitTransactionResponse} - */ -proto.api.v1.SubmitTransactionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.SubmitTransactionResponse; - return proto.api.v1.SubmitTransactionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.SubmitTransactionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.SubmitTransactionResponse} - */ -proto.api.v1.SubmitTransactionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.SubmitTransactionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.SubmitTransactionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.SubmitTransactionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool success = 1; - * @return {boolean} - */ -proto.api.v1.SubmitTransactionResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.v1.SubmitTransactionResponse} returns this - */ -proto.api.v1.SubmitTransactionResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.SubmitTransactionV2Request.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.SubmitTransactionV2Request.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.SubmitTransactionV2Request} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionV2Request.toObject = function(includeInstance, msg) { - var f, obj = { - tx: (f = msg.getTx()) && commands_v1_transaction_pb.Transaction.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.SubmitTransactionV2Request} - */ -proto.api.v1.SubmitTransactionV2Request.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.SubmitTransactionV2Request; - return proto.api.v1.SubmitTransactionV2Request.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.SubmitTransactionV2Request} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.SubmitTransactionV2Request} - */ -proto.api.v1.SubmitTransactionV2Request.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_transaction_pb.Transaction; - reader.readMessage(value,commands_v1_transaction_pb.Transaction.deserializeBinaryFromReader); - msg.setTx(value); - break; - case 2: - var value = /** @type {!proto.api.v1.SubmitTransactionV2Request.Type} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.SubmitTransactionV2Request.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.SubmitTransactionV2Request.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.SubmitTransactionV2Request} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionV2Request.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTx(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_transaction_pb.Transaction.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.api.v1.SubmitTransactionV2Request.Type = { - TYPE_UNSPECIFIED: 0, - TYPE_ASYNC: 1, - TYPE_SYNC: 2, - TYPE_COMMIT: 3 -}; - -/** - * optional vega.commands.v1.Transaction tx = 1; - * @return {?proto.vega.commands.v1.Transaction} - */ -proto.api.v1.SubmitTransactionV2Request.prototype.getTx = function() { - return /** @type{?proto.vega.commands.v1.Transaction} */ ( - jspb.Message.getWrapperField(this, commands_v1_transaction_pb.Transaction, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.Transaction|undefined} value - * @return {!proto.api.v1.SubmitTransactionV2Request} returns this -*/ -proto.api.v1.SubmitTransactionV2Request.prototype.setTx = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.SubmitTransactionV2Request} returns this - */ -proto.api.v1.SubmitTransactionV2Request.prototype.clearTx = function() { - return this.setTx(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.SubmitTransactionV2Request.prototype.hasTx = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Type type = 2; - * @return {!proto.api.v1.SubmitTransactionV2Request.Type} - */ -proto.api.v1.SubmitTransactionV2Request.prototype.getType = function() { - return /** @type {!proto.api.v1.SubmitTransactionV2Request.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.v1.SubmitTransactionV2Request.Type} value - * @return {!proto.api.v1.SubmitTransactionV2Request} returns this - */ -proto.api.v1.SubmitTransactionV2Request.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.SubmitTransactionV2Response.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.SubmitTransactionV2Response.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.SubmitTransactionV2Response} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionV2Response.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.SubmitTransactionV2Response} - */ -proto.api.v1.SubmitTransactionV2Response.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.SubmitTransactionV2Response; - return proto.api.v1.SubmitTransactionV2Response.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.SubmitTransactionV2Response} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.SubmitTransactionV2Response} - */ -proto.api.v1.SubmitTransactionV2Response.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.SubmitTransactionV2Response.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.SubmitTransactionV2Response.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.SubmitTransactionV2Response} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.SubmitTransactionV2Response.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool success = 1; - * @return {boolean} - */ -proto.api.v1.SubmitTransactionV2Response.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.v1.SubmitTransactionV2Response} returns this - */ -proto.api.v1.SubmitTransactionV2Response.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareWithdrawRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareWithdrawRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareWithdrawRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareWithdrawRequest.toObject = function(includeInstance, msg) { - var f, obj = { - withdraw: (f = msg.getWithdraw()) && commands_v1_commands_pb.WithdrawSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareWithdrawRequest} - */ -proto.api.v1.PrepareWithdrawRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareWithdrawRequest; - return proto.api.v1.PrepareWithdrawRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareWithdrawRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareWithdrawRequest} - */ -proto.api.v1.PrepareWithdrawRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.WithdrawSubmission; - reader.readMessage(value,commands_v1_commands_pb.WithdrawSubmission.deserializeBinaryFromReader); - msg.setWithdraw(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareWithdrawRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareWithdrawRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareWithdrawRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareWithdrawRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWithdraw(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.WithdrawSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.WithdrawSubmission withdraw = 1; - * @return {?proto.vega.commands.v1.WithdrawSubmission} - */ -proto.api.v1.PrepareWithdrawRequest.prototype.getWithdraw = function() { - return /** @type{?proto.vega.commands.v1.WithdrawSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.WithdrawSubmission, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.WithdrawSubmission|undefined} value - * @return {!proto.api.v1.PrepareWithdrawRequest} returns this -*/ -proto.api.v1.PrepareWithdrawRequest.prototype.setWithdraw = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareWithdrawRequest} returns this - */ -proto.api.v1.PrepareWithdrawRequest.prototype.clearWithdraw = function() { - return this.setWithdraw(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareWithdrawRequest.prototype.hasWithdraw = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareWithdrawResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareWithdrawResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareWithdrawResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareWithdrawResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareWithdrawResponse} - */ -proto.api.v1.PrepareWithdrawResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareWithdrawResponse; - return proto.api.v1.PrepareWithdrawResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareWithdrawResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareWithdrawResponse} - */ -proto.api.v1.PrepareWithdrawResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareWithdrawResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareWithdrawResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareWithdrawResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareWithdrawResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareWithdrawResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareWithdrawResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareWithdrawResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareWithdrawResponse} returns this - */ -proto.api.v1.PrepareWithdrawResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareSubmitOrderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareSubmitOrderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareSubmitOrderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64(), - submitId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareSubmitOrderResponse} - */ -proto.api.v1.PrepareSubmitOrderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareSubmitOrderResponse; - return proto.api.v1.PrepareSubmitOrderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareSubmitOrderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareSubmitOrderResponse} - */ -proto.api.v1.PrepareSubmitOrderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSubmitId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareSubmitOrderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareSubmitOrderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareSubmitOrderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSubmitId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareSubmitOrderResponse} returns this - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string submit_id = 2; - * @return {string} - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.getSubmitId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PrepareSubmitOrderResponse} returns this - */ -proto.api.v1.PrepareSubmitOrderResponse.prototype.setSubmitId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareCancelOrderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareCancelOrderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareCancelOrderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareCancelOrderResponse} - */ -proto.api.v1.PrepareCancelOrderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareCancelOrderResponse; - return proto.api.v1.PrepareCancelOrderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareCancelOrderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareCancelOrderResponse} - */ -proto.api.v1.PrepareCancelOrderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareCancelOrderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareCancelOrderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareCancelOrderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareCancelOrderResponse} returns this - */ -proto.api.v1.PrepareCancelOrderResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareAmendOrderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareAmendOrderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareAmendOrderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareAmendOrderResponse} - */ -proto.api.v1.PrepareAmendOrderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareAmendOrderResponse; - return proto.api.v1.PrepareAmendOrderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareAmendOrderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareAmendOrderResponse} - */ -proto.api.v1.PrepareAmendOrderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareAmendOrderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareAmendOrderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareAmendOrderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareAmendOrderResponse} returns this - */ -proto.api.v1.PrepareAmendOrderResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareSubmitOrderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareSubmitOrderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareSubmitOrderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareSubmitOrderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.OrderSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareSubmitOrderRequest} - */ -proto.api.v1.PrepareSubmitOrderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareSubmitOrderRequest; - return proto.api.v1.PrepareSubmitOrderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareSubmitOrderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareSubmitOrderRequest} - */ -proto.api.v1.PrepareSubmitOrderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.OrderSubmission; - reader.readMessage(value,commands_v1_commands_pb.OrderSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareSubmitOrderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareSubmitOrderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareSubmitOrderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareSubmitOrderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.OrderSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.OrderSubmission submission = 1; - * @return {?proto.vega.commands.v1.OrderSubmission} - */ -proto.api.v1.PrepareSubmitOrderRequest.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.OrderSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.OrderSubmission, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.OrderSubmission|undefined} value - * @return {!proto.api.v1.PrepareSubmitOrderRequest} returns this -*/ -proto.api.v1.PrepareSubmitOrderRequest.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareSubmitOrderRequest} returns this - */ -proto.api.v1.PrepareSubmitOrderRequest.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareSubmitOrderRequest.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareCancelOrderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareCancelOrderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareCancelOrderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareCancelOrderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - cancellation: (f = msg.getCancellation()) && commands_v1_commands_pb.OrderCancellation.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareCancelOrderRequest} - */ -proto.api.v1.PrepareCancelOrderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareCancelOrderRequest; - return proto.api.v1.PrepareCancelOrderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareCancelOrderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareCancelOrderRequest} - */ -proto.api.v1.PrepareCancelOrderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.OrderCancellation; - reader.readMessage(value,commands_v1_commands_pb.OrderCancellation.deserializeBinaryFromReader); - msg.setCancellation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareCancelOrderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareCancelOrderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareCancelOrderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareCancelOrderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCancellation(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.OrderCancellation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.OrderCancellation cancellation = 1; - * @return {?proto.vega.commands.v1.OrderCancellation} - */ -proto.api.v1.PrepareCancelOrderRequest.prototype.getCancellation = function() { - return /** @type{?proto.vega.commands.v1.OrderCancellation} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.OrderCancellation, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.OrderCancellation|undefined} value - * @return {!proto.api.v1.PrepareCancelOrderRequest} returns this -*/ -proto.api.v1.PrepareCancelOrderRequest.prototype.setCancellation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareCancelOrderRequest} returns this - */ -proto.api.v1.PrepareCancelOrderRequest.prototype.clearCancellation = function() { - return this.setCancellation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareCancelOrderRequest.prototype.hasCancellation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareAmendOrderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareAmendOrderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareAmendOrderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareAmendOrderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - amendment: (f = msg.getAmendment()) && commands_v1_commands_pb.OrderAmendment.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareAmendOrderRequest} - */ -proto.api.v1.PrepareAmendOrderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareAmendOrderRequest; - return proto.api.v1.PrepareAmendOrderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareAmendOrderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareAmendOrderRequest} - */ -proto.api.v1.PrepareAmendOrderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.OrderAmendment; - reader.readMessage(value,commands_v1_commands_pb.OrderAmendment.deserializeBinaryFromReader); - msg.setAmendment(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareAmendOrderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareAmendOrderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareAmendOrderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareAmendOrderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAmendment(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.OrderAmendment.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.OrderAmendment amendment = 1; - * @return {?proto.vega.commands.v1.OrderAmendment} - */ -proto.api.v1.PrepareAmendOrderRequest.prototype.getAmendment = function() { - return /** @type{?proto.vega.commands.v1.OrderAmendment} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.OrderAmendment, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.OrderAmendment|undefined} value - * @return {!proto.api.v1.PrepareAmendOrderRequest} returns this -*/ -proto.api.v1.PrepareAmendOrderRequest.prototype.setAmendment = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareAmendOrderRequest} returns this - */ -proto.api.v1.PrepareAmendOrderRequest.prototype.clearAmendment = function() { - return this.setAmendment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareAmendOrderRequest.prototype.hasAmendment = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AssetsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AssetsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AssetsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AssetsRequest} - */ -proto.api.v1.AssetsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AssetsRequest; - return proto.api.v1.AssetsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AssetsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AssetsRequest} - */ -proto.api.v1.AssetsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AssetsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AssetsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AssetsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.AssetsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AssetsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AssetsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AssetsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - assetsList: jspb.Message.toObjectList(msg.getAssetsList(), - assets_pb.Asset.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AssetsResponse} - */ -proto.api.v1.AssetsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AssetsResponse; - return proto.api.v1.AssetsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AssetsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AssetsResponse} - */ -proto.api.v1.AssetsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new assets_pb.Asset; - reader.readMessage(value,assets_pb.Asset.deserializeBinaryFromReader); - msg.addAssets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AssetsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AssetsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AssetsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssetsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - assets_pb.Asset.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Asset assets = 1; - * @return {!Array} - */ -proto.api.v1.AssetsResponse.prototype.getAssetsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, assets_pb.Asset, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.AssetsResponse} returns this -*/ -proto.api.v1.AssetsResponse.prototype.setAssetsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Asset=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Asset} - */ -proto.api.v1.AssetsResponse.prototype.addAssets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Asset, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.AssetsResponse} returns this - */ -proto.api.v1.AssetsResponse.prototype.clearAssetsList = function() { - return this.setAssetsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AssetByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AssetByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AssetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AssetByIDRequest} - */ -proto.api.v1.AssetByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AssetByIDRequest; - return proto.api.v1.AssetByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AssetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AssetByIDRequest} - */ -proto.api.v1.AssetByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AssetByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AssetByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AssetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.v1.AssetByIDRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.AssetByIDRequest} returns this - */ -proto.api.v1.AssetByIDRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AssetByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AssetByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AssetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - asset: (f = msg.getAsset()) && assets_pb.Asset.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AssetByIDResponse} - */ -proto.api.v1.AssetByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AssetByIDResponse; - return proto.api.v1.AssetByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AssetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AssetByIDResponse} - */ -proto.api.v1.AssetByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new assets_pb.Asset; - reader.readMessage(value,assets_pb.Asset.deserializeBinaryFromReader); - msg.setAsset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AssetByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AssetByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AssetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AssetByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAsset(); - if (f != null) { - writer.writeMessage( - 1, - f, - assets_pb.Asset.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Asset asset = 1; - * @return {?proto.vega.Asset} - */ -proto.api.v1.AssetByIDResponse.prototype.getAsset = function() { - return /** @type{?proto.vega.Asset} */ ( - jspb.Message.getWrapperField(this, assets_pb.Asset, 1)); -}; - - -/** - * @param {?proto.vega.Asset|undefined} value - * @return {!proto.api.v1.AssetByIDResponse} returns this -*/ -proto.api.v1.AssetByIDResponse.prototype.setAsset = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.AssetByIDResponse} returns this - */ -proto.api.v1.AssetByIDResponse.prototype.clearAsset = function() { - return this.setAsset(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.AssetByIDResponse.prototype.hasAsset = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNodeSignaturesAggregateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNodeSignaturesAggregateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNodeSignaturesAggregateRequest} - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNodeSignaturesAggregateRequest; - return proto.api.v1.GetNodeSignaturesAggregateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNodeSignaturesAggregateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNodeSignaturesAggregateRequest} - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNodeSignaturesAggregateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNodeSignaturesAggregateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetNodeSignaturesAggregateRequest} returns this - */ -proto.api.v1.GetNodeSignaturesAggregateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNodeSignaturesAggregateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNodeSignaturesAggregateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - signaturesList: jspb.Message.toObjectList(msg.getSignaturesList(), - commands_v1_validator_commands_pb.NodeSignature.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNodeSignaturesAggregateResponse} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNodeSignaturesAggregateResponse; - return proto.api.v1.GetNodeSignaturesAggregateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNodeSignaturesAggregateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNodeSignaturesAggregateResponse} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_validator_commands_pb.NodeSignature; - reader.readMessage(value,commands_v1_validator_commands_pb.NodeSignature.deserializeBinaryFromReader); - msg.addSignatures(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNodeSignaturesAggregateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNodeSignaturesAggregateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignaturesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - commands_v1_validator_commands_pb.NodeSignature.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.commands.v1.NodeSignature signatures = 1; - * @return {!Array} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.getSignaturesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, commands_v1_validator_commands_pb.NodeSignature, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetNodeSignaturesAggregateResponse} returns this -*/ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.setSignaturesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.commands.v1.NodeSignature=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.commands.v1.NodeSignature} - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.addSignatures = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.commands.v1.NodeSignature, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetNodeSignaturesAggregateResponse} returns this - */ -proto.api.v1.GetNodeSignaturesAggregateResponse.prototype.clearSignaturesList = function() { - return this.setSignaturesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OptionalProposalState.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OptionalProposalState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OptionalProposalState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OptionalProposalState.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OptionalProposalState} - */ -proto.api.v1.OptionalProposalState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OptionalProposalState; - return proto.api.v1.OptionalProposalState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OptionalProposalState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OptionalProposalState} - */ -proto.api.v1.OptionalProposalState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.vega.Proposal.State} */ (reader.readEnum()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OptionalProposalState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OptionalProposalState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OptionalProposalState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OptionalProposalState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional vega.Proposal.State value = 1; - * @return {!proto.vega.Proposal.State} - */ -proto.api.v1.OptionalProposalState.prototype.getValue = function() { - return /** @type {!proto.vega.Proposal.State} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.vega.Proposal.State} value - * @return {!proto.api.v1.OptionalProposalState} returns this - */ -proto.api.v1.OptionalProposalState.prototype.setValue = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalsRequest} - */ -proto.api.v1.GetProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalsRequest; - return proto.api.v1.GetProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalsRequest} - */ -proto.api.v1.GetProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OptionalProposalState select_in_state = 1; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetProposalsRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 1)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetProposalsRequest} returns this -*/ -proto.api.v1.GetProposalsRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetProposalsRequest} returns this - */ -proto.api.v1.GetProposalsRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetProposalsRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetProposalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalsResponse} - */ -proto.api.v1.GetProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalsResponse; - return proto.api.v1.GetProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalsResponse} - */ -proto.api.v1.GetProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetProposalsResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetProposalsResponse} returns this -*/ -proto.api.v1.GetProposalsResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetProposalsResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetProposalsResponse} returns this - */ -proto.api.v1.GetProposalsResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalsByPartyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalsByPartyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsByPartyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalsByPartyRequest} - */ -proto.api.v1.GetProposalsByPartyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalsByPartyRequest; - return proto.api.v1.GetProposalsByPartyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalsByPartyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalsByPartyRequest} - */ -proto.api.v1.GetProposalsByPartyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalsByPartyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalsByPartyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsByPartyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetProposalsByPartyRequest} returns this - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OptionalProposalState select_in_state = 2; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 2)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetProposalsByPartyRequest} returns this -*/ -proto.api.v1.GetProposalsByPartyRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetProposalsByPartyRequest} returns this - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetProposalsByPartyRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetProposalsByPartyResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalsByPartyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalsByPartyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalsByPartyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsByPartyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalsByPartyResponse} - */ -proto.api.v1.GetProposalsByPartyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalsByPartyResponse; - return proto.api.v1.GetProposalsByPartyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalsByPartyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalsByPartyResponse} - */ -proto.api.v1.GetProposalsByPartyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalsByPartyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalsByPartyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalsByPartyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalsByPartyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetProposalsByPartyResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetProposalsByPartyResponse} returns this -*/ -proto.api.v1.GetProposalsByPartyResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetProposalsByPartyResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetProposalsByPartyResponse} returns this - */ -proto.api.v1.GetProposalsByPartyResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetVotesByPartyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetVotesByPartyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetVotesByPartyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVotesByPartyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetVotesByPartyRequest} - */ -proto.api.v1.GetVotesByPartyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetVotesByPartyRequest; - return proto.api.v1.GetVotesByPartyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetVotesByPartyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetVotesByPartyRequest} - */ -proto.api.v1.GetVotesByPartyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetVotesByPartyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetVotesByPartyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetVotesByPartyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVotesByPartyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.GetVotesByPartyRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetVotesByPartyRequest} returns this - */ -proto.api.v1.GetVotesByPartyRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetVotesByPartyResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetVotesByPartyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetVotesByPartyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetVotesByPartyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVotesByPartyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - votesList: jspb.Message.toObjectList(msg.getVotesList(), - governance_pb.Vote.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetVotesByPartyResponse} - */ -proto.api.v1.GetVotesByPartyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetVotesByPartyResponse; - return proto.api.v1.GetVotesByPartyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetVotesByPartyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetVotesByPartyResponse} - */ -proto.api.v1.GetVotesByPartyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.Vote; - reader.readMessage(value,governance_pb.Vote.deserializeBinaryFromReader); - msg.addVotes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetVotesByPartyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetVotesByPartyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetVotesByPartyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVotesByPartyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVotesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.Vote.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Vote votes = 1; - * @return {!Array} - */ -proto.api.v1.GetVotesByPartyResponse.prototype.getVotesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.Vote, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetVotesByPartyResponse} returns this -*/ -proto.api.v1.GetVotesByPartyResponse.prototype.setVotesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Vote=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Vote} - */ -proto.api.v1.GetVotesByPartyResponse.prototype.addVotes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Vote, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetVotesByPartyResponse} returns this - */ -proto.api.v1.GetVotesByPartyResponse.prototype.clearVotesList = function() { - return this.setVotesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNewMarketProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNewMarketProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNewMarketProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewMarketProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNewMarketProposalsRequest} - */ -proto.api.v1.GetNewMarketProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNewMarketProposalsRequest; - return proto.api.v1.GetNewMarketProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNewMarketProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNewMarketProposalsRequest} - */ -proto.api.v1.GetNewMarketProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNewMarketProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNewMarketProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNewMarketProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewMarketProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OptionalProposalState select_in_state = 1; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetNewMarketProposalsRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 1)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetNewMarketProposalsRequest} returns this -*/ -proto.api.v1.GetNewMarketProposalsRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetNewMarketProposalsRequest} returns this - */ -proto.api.v1.GetNewMarketProposalsRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetNewMarketProposalsRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetNewMarketProposalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNewMarketProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNewMarketProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNewMarketProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewMarketProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNewMarketProposalsResponse} - */ -proto.api.v1.GetNewMarketProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNewMarketProposalsResponse; - return proto.api.v1.GetNewMarketProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNewMarketProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNewMarketProposalsResponse} - */ -proto.api.v1.GetNewMarketProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNewMarketProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNewMarketProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNewMarketProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewMarketProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetNewMarketProposalsResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetNewMarketProposalsResponse} returns this -*/ -proto.api.v1.GetNewMarketProposalsResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetNewMarketProposalsResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetNewMarketProposalsResponse} returns this - */ -proto.api.v1.GetNewMarketProposalsResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetUpdateMarketProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetUpdateMarketProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetUpdateMarketProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetUpdateMarketProposalsRequest} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetUpdateMarketProposalsRequest; - return proto.api.v1.GetUpdateMarketProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetUpdateMarketProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetUpdateMarketProposalsRequest} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetUpdateMarketProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetUpdateMarketProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetUpdateMarketProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetUpdateMarketProposalsRequest} returns this - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OptionalProposalState select_in_state = 2; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 2)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetUpdateMarketProposalsRequest} returns this -*/ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetUpdateMarketProposalsRequest} returns this - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetUpdateMarketProposalsRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetUpdateMarketProposalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetUpdateMarketProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetUpdateMarketProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetUpdateMarketProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetUpdateMarketProposalsResponse} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetUpdateMarketProposalsResponse; - return proto.api.v1.GetUpdateMarketProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetUpdateMarketProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetUpdateMarketProposalsResponse} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetUpdateMarketProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetUpdateMarketProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetUpdateMarketProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetUpdateMarketProposalsResponse} returns this -*/ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetUpdateMarketProposalsResponse} returns this - */ -proto.api.v1.GetUpdateMarketProposalsResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNetworkParametersProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNetworkParametersProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNetworkParametersProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNetworkParametersProposalsRequest} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNetworkParametersProposalsRequest; - return proto.api.v1.GetNetworkParametersProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNetworkParametersProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNetworkParametersProposalsRequest} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNetworkParametersProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNetworkParametersProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNetworkParametersProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OptionalProposalState select_in_state = 1; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 1)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetNetworkParametersProposalsRequest} returns this -*/ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetNetworkParametersProposalsRequest} returns this - */ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetNetworkParametersProposalsRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetNetworkParametersProposalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNetworkParametersProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNetworkParametersProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNetworkParametersProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNetworkParametersProposalsResponse} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNetworkParametersProposalsResponse; - return proto.api.v1.GetNetworkParametersProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNetworkParametersProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNetworkParametersProposalsResponse} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNetworkParametersProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNetworkParametersProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNetworkParametersProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetNetworkParametersProposalsResponse} returns this -*/ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetNetworkParametersProposalsResponse} returns this - */ -proto.api.v1.GetNetworkParametersProposalsResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNewAssetProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNewAssetProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNewAssetProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewAssetProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - selectInState: (f = msg.getSelectInState()) && proto.api.v1.OptionalProposalState.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNewAssetProposalsRequest} - */ -proto.api.v1.GetNewAssetProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNewAssetProposalsRequest; - return proto.api.v1.GetNewAssetProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNewAssetProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNewAssetProposalsRequest} - */ -proto.api.v1.GetNewAssetProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.v1.OptionalProposalState; - reader.readMessage(value,proto.api.v1.OptionalProposalState.deserializeBinaryFromReader); - msg.setSelectInState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNewAssetProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNewAssetProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNewAssetProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewAssetProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelectInState(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.v1.OptionalProposalState.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OptionalProposalState select_in_state = 1; - * @return {?proto.api.v1.OptionalProposalState} - */ -proto.api.v1.GetNewAssetProposalsRequest.prototype.getSelectInState = function() { - return /** @type{?proto.api.v1.OptionalProposalState} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.OptionalProposalState, 1)); -}; - - -/** - * @param {?proto.api.v1.OptionalProposalState|undefined} value - * @return {!proto.api.v1.GetNewAssetProposalsRequest} returns this -*/ -proto.api.v1.GetNewAssetProposalsRequest.prototype.setSelectInState = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetNewAssetProposalsRequest} returns this - */ -proto.api.v1.GetNewAssetProposalsRequest.prototype.clearSelectInState = function() { - return this.setSelectInState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetNewAssetProposalsRequest.prototype.hasSelectInState = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.GetNewAssetProposalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetNewAssetProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetNewAssetProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetNewAssetProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewAssetProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataList: jspb.Message.toObjectList(msg.getDataList(), - governance_pb.GovernanceData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetNewAssetProposalsResponse} - */ -proto.api.v1.GetNewAssetProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetNewAssetProposalsResponse; - return proto.api.v1.GetNewAssetProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetNewAssetProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetNewAssetProposalsResponse} - */ -proto.api.v1.GetNewAssetProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetNewAssetProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetNewAssetProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetNewAssetProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetNewAssetProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.GovernanceData data = 1; - * @return {!Array} - */ -proto.api.v1.GetNewAssetProposalsResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.GetNewAssetProposalsResponse} returns this -*/ -proto.api.v1.GetNewAssetProposalsResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.GovernanceData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.GovernanceData} - */ -proto.api.v1.GetNewAssetProposalsResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.GovernanceData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.GetNewAssetProposalsResponse} returns this - */ -proto.api.v1.GetNewAssetProposalsResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - proposalId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalByIDRequest} - */ -proto.api.v1.GetProposalByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalByIDRequest; - return proto.api.v1.GetProposalByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalByIDRequest} - */ -proto.api.v1.GetProposalByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProposalId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProposalId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string proposal_id = 1; - * @return {string} - */ -proto.api.v1.GetProposalByIDRequest.prototype.getProposalId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetProposalByIDRequest} returns this - */ -proto.api.v1.GetProposalByIDRequest.prototype.setProposalId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: (f = msg.getData()) && governance_pb.GovernanceData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalByIDResponse} - */ -proto.api.v1.GetProposalByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalByIDResponse; - return proto.api.v1.GetProposalByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalByIDResponse} - */ -proto.api.v1.GetProposalByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.GovernanceData data = 1; - * @return {?proto.vega.GovernanceData} - */ -proto.api.v1.GetProposalByIDResponse.prototype.getData = function() { - return /** @type{?proto.vega.GovernanceData} */ ( - jspb.Message.getWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {?proto.vega.GovernanceData|undefined} value - * @return {!proto.api.v1.GetProposalByIDResponse} returns this -*/ -proto.api.v1.GetProposalByIDResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetProposalByIDResponse} returns this - */ -proto.api.v1.GetProposalByIDResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetProposalByIDResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalByReferenceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalByReferenceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalByReferenceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByReferenceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - reference: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalByReferenceRequest} - */ -proto.api.v1.GetProposalByReferenceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalByReferenceRequest; - return proto.api.v1.GetProposalByReferenceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalByReferenceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalByReferenceRequest} - */ -proto.api.v1.GetProposalByReferenceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReference(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalByReferenceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalByReferenceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalByReferenceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByReferenceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReference(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string reference = 1; - * @return {string} - */ -proto.api.v1.GetProposalByReferenceRequest.prototype.getReference = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.GetProposalByReferenceRequest} returns this - */ -proto.api.v1.GetProposalByReferenceRequest.prototype.setReference = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetProposalByReferenceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetProposalByReferenceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetProposalByReferenceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByReferenceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: (f = msg.getData()) && governance_pb.GovernanceData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetProposalByReferenceResponse} - */ -proto.api.v1.GetProposalByReferenceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetProposalByReferenceResponse; - return proto.api.v1.GetProposalByReferenceResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetProposalByReferenceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetProposalByReferenceResponse} - */ -proto.api.v1.GetProposalByReferenceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetProposalByReferenceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetProposalByReferenceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetProposalByReferenceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetProposalByReferenceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.GovernanceData data = 1; - * @return {?proto.vega.GovernanceData} - */ -proto.api.v1.GetProposalByReferenceResponse.prototype.getData = function() { - return /** @type{?proto.vega.GovernanceData} */ ( - jspb.Message.getWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {?proto.vega.GovernanceData|undefined} value - * @return {!proto.api.v1.GetProposalByReferenceResponse} returns this -*/ -proto.api.v1.GetProposalByReferenceResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.GetProposalByReferenceResponse} returns this - */ -proto.api.v1.GetProposalByReferenceResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.GetProposalByReferenceResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveGovernanceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveGovernanceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveGovernanceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveGovernanceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveGovernanceRequest} - */ -proto.api.v1.ObserveGovernanceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveGovernanceRequest; - return proto.api.v1.ObserveGovernanceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveGovernanceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveGovernanceRequest} - */ -proto.api.v1.ObserveGovernanceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveGovernanceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveGovernanceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveGovernanceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveGovernanceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveGovernanceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveGovernanceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveGovernanceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveGovernanceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: (f = msg.getData()) && governance_pb.GovernanceData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveGovernanceResponse} - */ -proto.api.v1.ObserveGovernanceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveGovernanceResponse; - return proto.api.v1.ObserveGovernanceResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveGovernanceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveGovernanceResponse} - */ -proto.api.v1.ObserveGovernanceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveGovernanceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveGovernanceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveGovernanceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveGovernanceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.GovernanceData data = 1; - * @return {?proto.vega.GovernanceData} - */ -proto.api.v1.ObserveGovernanceResponse.prototype.getData = function() { - return /** @type{?proto.vega.GovernanceData} */ ( - jspb.Message.getWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {?proto.vega.GovernanceData|undefined} value - * @return {!proto.api.v1.ObserveGovernanceResponse} returns this -*/ -proto.api.v1.ObserveGovernanceResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.ObserveGovernanceResponse} returns this - */ -proto.api.v1.ObserveGovernanceResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.ObserveGovernanceResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObservePartyProposalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObservePartyProposalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObservePartyProposalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyProposalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObservePartyProposalsRequest} - */ -proto.api.v1.ObservePartyProposalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObservePartyProposalsRequest; - return proto.api.v1.ObservePartyProposalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObservePartyProposalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObservePartyProposalsRequest} - */ -proto.api.v1.ObservePartyProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObservePartyProposalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObservePartyProposalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObservePartyProposalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyProposalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.ObservePartyProposalsRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.ObservePartyProposalsRequest} returns this - */ -proto.api.v1.ObservePartyProposalsRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObservePartyProposalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObservePartyProposalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObservePartyProposalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyProposalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: (f = msg.getData()) && governance_pb.GovernanceData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObservePartyProposalsResponse} - */ -proto.api.v1.ObservePartyProposalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObservePartyProposalsResponse; - return proto.api.v1.ObservePartyProposalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObservePartyProposalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObservePartyProposalsResponse} - */ -proto.api.v1.ObservePartyProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.GovernanceData; - reader.readMessage(value,governance_pb.GovernanceData.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObservePartyProposalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObservePartyProposalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObservePartyProposalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyProposalsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.GovernanceData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.GovernanceData data = 1; - * @return {?proto.vega.GovernanceData} - */ -proto.api.v1.ObservePartyProposalsResponse.prototype.getData = function() { - return /** @type{?proto.vega.GovernanceData} */ ( - jspb.Message.getWrapperField(this, governance_pb.GovernanceData, 1)); -}; - - -/** - * @param {?proto.vega.GovernanceData|undefined} value - * @return {!proto.api.v1.ObservePartyProposalsResponse} returns this -*/ -proto.api.v1.ObservePartyProposalsResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.ObservePartyProposalsResponse} returns this - */ -proto.api.v1.ObservePartyProposalsResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.ObservePartyProposalsResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveProposalVotesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveProposalVotesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveProposalVotesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveProposalVotesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - proposalId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveProposalVotesRequest} - */ -proto.api.v1.ObserveProposalVotesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveProposalVotesRequest; - return proto.api.v1.ObserveProposalVotesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveProposalVotesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveProposalVotesRequest} - */ -proto.api.v1.ObserveProposalVotesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProposalId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveProposalVotesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveProposalVotesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveProposalVotesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveProposalVotesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProposalId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string proposal_id = 1; - * @return {string} - */ -proto.api.v1.ObserveProposalVotesRequest.prototype.getProposalId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.ObserveProposalVotesRequest} returns this - */ -proto.api.v1.ObserveProposalVotesRequest.prototype.setProposalId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveProposalVotesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveProposalVotesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveProposalVotesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveProposalVotesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - vote: (f = msg.getVote()) && governance_pb.Vote.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveProposalVotesResponse} - */ -proto.api.v1.ObserveProposalVotesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveProposalVotesResponse; - return proto.api.v1.ObserveProposalVotesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveProposalVotesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveProposalVotesResponse} - */ -proto.api.v1.ObserveProposalVotesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.Vote; - reader.readMessage(value,governance_pb.Vote.deserializeBinaryFromReader); - msg.setVote(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveProposalVotesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveProposalVotesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveProposalVotesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveProposalVotesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVote(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.Vote.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Vote vote = 1; - * @return {?proto.vega.Vote} - */ -proto.api.v1.ObserveProposalVotesResponse.prototype.getVote = function() { - return /** @type{?proto.vega.Vote} */ ( - jspb.Message.getWrapperField(this, governance_pb.Vote, 1)); -}; - - -/** - * @param {?proto.vega.Vote|undefined} value - * @return {!proto.api.v1.ObserveProposalVotesResponse} returns this -*/ -proto.api.v1.ObserveProposalVotesResponse.prototype.setVote = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.ObserveProposalVotesResponse} returns this - */ -proto.api.v1.ObserveProposalVotesResponse.prototype.clearVote = function() { - return this.setVote(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.ObserveProposalVotesResponse.prototype.hasVote = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObservePartyVotesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObservePartyVotesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObservePartyVotesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyVotesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObservePartyVotesRequest} - */ -proto.api.v1.ObservePartyVotesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObservePartyVotesRequest; - return proto.api.v1.ObservePartyVotesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObservePartyVotesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObservePartyVotesRequest} - */ -proto.api.v1.ObservePartyVotesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObservePartyVotesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObservePartyVotesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObservePartyVotesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyVotesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.ObservePartyVotesRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.ObservePartyVotesRequest} returns this - */ -proto.api.v1.ObservePartyVotesRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObservePartyVotesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObservePartyVotesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObservePartyVotesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyVotesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - vote: (f = msg.getVote()) && governance_pb.Vote.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObservePartyVotesResponse} - */ -proto.api.v1.ObservePartyVotesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObservePartyVotesResponse; - return proto.api.v1.ObservePartyVotesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObservePartyVotesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObservePartyVotesResponse} - */ -proto.api.v1.ObservePartyVotesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new governance_pb.Vote; - reader.readMessage(value,governance_pb.Vote.deserializeBinaryFromReader); - msg.setVote(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObservePartyVotesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObservePartyVotesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObservePartyVotesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObservePartyVotesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVote(); - if (f != null) { - writer.writeMessage( - 1, - f, - governance_pb.Vote.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Vote vote = 1; - * @return {?proto.vega.Vote} - */ -proto.api.v1.ObservePartyVotesResponse.prototype.getVote = function() { - return /** @type{?proto.vega.Vote} */ ( - jspb.Message.getWrapperField(this, governance_pb.Vote, 1)); -}; - - -/** - * @param {?proto.vega.Vote|undefined} value - * @return {!proto.api.v1.ObservePartyVotesResponse} returns this -*/ -proto.api.v1.ObservePartyVotesResponse.prototype.setVote = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.ObservePartyVotesResponse} returns this - */ -proto.api.v1.ObservePartyVotesResponse.prototype.clearVote = function() { - return this.setVote(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.ObservePartyVotesResponse.prototype.hasVote = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarginLevelsSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarginLevelsSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarginLevelsSubscribeRequest} - */ -proto.api.v1.MarginLevelsSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarginLevelsSubscribeRequest; - return proto.api.v1.MarginLevelsSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarginLevelsSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarginLevelsSubscribeRequest} - */ -proto.api.v1.MarginLevelsSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarginLevelsSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarginLevelsSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarginLevelsSubscribeRequest} returns this - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarginLevelsSubscribeRequest} returns this - */ -proto.api.v1.MarginLevelsSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarginLevelsSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarginLevelsSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marginLevels: (f = msg.getMarginLevels()) && vega_pb.MarginLevels.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarginLevelsSubscribeResponse} - */ -proto.api.v1.MarginLevelsSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarginLevelsSubscribeResponse; - return proto.api.v1.MarginLevelsSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarginLevelsSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarginLevelsSubscribeResponse} - */ -proto.api.v1.MarginLevelsSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarginLevels; - reader.readMessage(value,vega_pb.MarginLevels.deserializeBinaryFromReader); - msg.setMarginLevels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarginLevelsSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarginLevelsSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarginLevels(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.MarginLevels.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarginLevels margin_levels = 1; - * @return {?proto.vega.MarginLevels} - */ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.getMarginLevels = function() { - return /** @type{?proto.vega.MarginLevels} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarginLevels, 1)); -}; - - -/** - * @param {?proto.vega.MarginLevels|undefined} value - * @return {!proto.api.v1.MarginLevelsSubscribeResponse} returns this -*/ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.setMarginLevels = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarginLevelsSubscribeResponse} returns this - */ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.clearMarginLevels = function() { - return this.setMarginLevels(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarginLevelsSubscribeResponse.prototype.hasMarginLevels = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarginLevelsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarginLevelsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarginLevelsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarginLevelsRequest} - */ -proto.api.v1.MarginLevelsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarginLevelsRequest; - return proto.api.v1.MarginLevelsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarginLevelsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarginLevelsRequest} - */ -proto.api.v1.MarginLevelsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarginLevelsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarginLevelsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarginLevelsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.MarginLevelsRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarginLevelsRequest} returns this - */ -proto.api.v1.MarginLevelsRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.MarginLevelsRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarginLevelsRequest} returns this - */ -proto.api.v1.MarginLevelsRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.MarginLevelsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarginLevelsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarginLevelsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarginLevelsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marginLevelsList: jspb.Message.toObjectList(msg.getMarginLevelsList(), - vega_pb.MarginLevels.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarginLevelsResponse} - */ -proto.api.v1.MarginLevelsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarginLevelsResponse; - return proto.api.v1.MarginLevelsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarginLevelsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarginLevelsResponse} - */ -proto.api.v1.MarginLevelsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarginLevels; - reader.readMessage(value,vega_pb.MarginLevels.deserializeBinaryFromReader); - msg.addMarginLevels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarginLevelsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarginLevelsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarginLevelsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarginLevelsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarginLevelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.MarginLevels.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.MarginLevels margin_levels = 1; - * @return {!Array} - */ -proto.api.v1.MarginLevelsResponse.prototype.getMarginLevelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.MarginLevels, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarginLevelsResponse} returns this -*/ -proto.api.v1.MarginLevelsResponse.prototype.setMarginLevelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.MarginLevels=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.MarginLevels} - */ -proto.api.v1.MarginLevelsResponse.prototype.addMarginLevels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.MarginLevels, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarginLevelsResponse} returns this - */ -proto.api.v1.MarginLevelsResponse.prototype.clearMarginLevelsList = function() { - return this.setMarginLevelsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsDataSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsDataSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsDataSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsDataSubscribeRequest} - */ -proto.api.v1.MarketsDataSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsDataSubscribeRequest; - return proto.api.v1.MarketsDataSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsDataSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsDataSubscribeRequest} - */ -proto.api.v1.MarketsDataSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsDataSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsDataSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsDataSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketsDataSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketsDataSubscribeRequest} returns this - */ -proto.api.v1.MarketsDataSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsDataSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsDataSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsDataSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketData: (f = msg.getMarketData()) && vega_pb.MarketData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsDataSubscribeResponse} - */ -proto.api.v1.MarketsDataSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsDataSubscribeResponse; - return proto.api.v1.MarketsDataSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsDataSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsDataSubscribeResponse} - */ -proto.api.v1.MarketsDataSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarketData; - reader.readMessage(value,vega_pb.MarketData.deserializeBinaryFromReader); - msg.setMarketData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsDataSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsDataSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsDataSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketData(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.MarketData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarketData market_data = 1; - * @return {?proto.vega.MarketData} - */ -proto.api.v1.MarketsDataSubscribeResponse.prototype.getMarketData = function() { - return /** @type{?proto.vega.MarketData} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarketData, 1)); -}; - - -/** - * @param {?proto.vega.MarketData|undefined} value - * @return {!proto.api.v1.MarketsDataSubscribeResponse} returns this -*/ -proto.api.v1.MarketsDataSubscribeResponse.prototype.setMarketData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketsDataSubscribeResponse} returns this - */ -proto.api.v1.MarketsDataSubscribeResponse.prototype.clearMarketData = function() { - return this.setMarketData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketsDataSubscribeResponse.prototype.hasMarketData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDataByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDataByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDataByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDataByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDataByIDRequest} - */ -proto.api.v1.MarketDataByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDataByIDRequest; - return proto.api.v1.MarketDataByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDataByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDataByIDRequest} - */ -proto.api.v1.MarketDataByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDataByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDataByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDataByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDataByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketDataByIDRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketDataByIDRequest} returns this - */ -proto.api.v1.MarketDataByIDRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDataByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDataByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDataByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDataByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketData: (f = msg.getMarketData()) && vega_pb.MarketData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDataByIDResponse} - */ -proto.api.v1.MarketDataByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDataByIDResponse; - return proto.api.v1.MarketDataByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDataByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDataByIDResponse} - */ -proto.api.v1.MarketDataByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarketData; - reader.readMessage(value,vega_pb.MarketData.deserializeBinaryFromReader); - msg.setMarketData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDataByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDataByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDataByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDataByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketData(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.MarketData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarketData market_data = 1; - * @return {?proto.vega.MarketData} - */ -proto.api.v1.MarketDataByIDResponse.prototype.getMarketData = function() { - return /** @type{?proto.vega.MarketData} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarketData, 1)); -}; - - -/** - * @param {?proto.vega.MarketData|undefined} value - * @return {!proto.api.v1.MarketDataByIDResponse} returns this -*/ -proto.api.v1.MarketDataByIDResponse.prototype.setMarketData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketDataByIDResponse} returns this - */ -proto.api.v1.MarketDataByIDResponse.prototype.clearMarketData = function() { - return this.setMarketData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketDataByIDResponse.prototype.hasMarketData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsDataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsDataRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsDataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsDataRequest} - */ -proto.api.v1.MarketsDataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsDataRequest; - return proto.api.v1.MarketsDataRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsDataRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsDataRequest} - */ -proto.api.v1.MarketsDataRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsDataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsDataRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsDataRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.MarketsDataResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsDataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsDataResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsDataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketsDataList: jspb.Message.toObjectList(msg.getMarketsDataList(), - vega_pb.MarketData.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsDataResponse} - */ -proto.api.v1.MarketsDataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsDataResponse; - return proto.api.v1.MarketsDataResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsDataResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsDataResponse} - */ -proto.api.v1.MarketsDataResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarketData; - reader.readMessage(value,vega_pb.MarketData.deserializeBinaryFromReader); - msg.addMarketsData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsDataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsDataResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsDataResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsDataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketsDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.MarketData.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.MarketData markets_data = 1; - * @return {!Array} - */ -proto.api.v1.MarketsDataResponse.prototype.getMarketsDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.MarketData, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarketsDataResponse} returns this -*/ -proto.api.v1.MarketsDataResponse.prototype.setMarketsDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.MarketData=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.MarketData} - */ -proto.api.v1.MarketsDataResponse.prototype.addMarketsData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.MarketData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarketsDataResponse} returns this - */ -proto.api.v1.MarketsDataResponse.prototype.clearMarketsDataList = function() { - return this.setMarketsDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.LastTradeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.LastTradeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.LastTradeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.LastTradeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.LastTradeRequest} - */ -proto.api.v1.LastTradeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.LastTradeRequest; - return proto.api.v1.LastTradeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.LastTradeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.LastTradeRequest} - */ -proto.api.v1.LastTradeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.LastTradeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.LastTradeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.LastTradeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.LastTradeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.LastTradeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.LastTradeRequest} returns this - */ -proto.api.v1.LastTradeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.LastTradeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.LastTradeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.LastTradeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.LastTradeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && vega_pb.Trade.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.LastTradeResponse} - */ -proto.api.v1.LastTradeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.LastTradeResponse; - return proto.api.v1.LastTradeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.LastTradeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.LastTradeResponse} - */ -proto.api.v1.LastTradeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.setTrade(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.LastTradeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.LastTradeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.LastTradeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.LastTradeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Trade trade = 1; - * @return {?proto.vega.Trade} - */ -proto.api.v1.LastTradeResponse.prototype.getTrade = function() { - return /** @type{?proto.vega.Trade} */ ( - jspb.Message.getWrapperField(this, vega_pb.Trade, 1)); -}; - - -/** - * @param {?proto.vega.Trade|undefined} value - * @return {!proto.api.v1.LastTradeResponse} returns this -*/ -proto.api.v1.LastTradeResponse.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.LastTradeResponse} returns this - */ -proto.api.v1.LastTradeResponse.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.LastTradeResponse.prototype.hasTrade = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketByIDRequest} - */ -proto.api.v1.MarketByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketByIDRequest; - return proto.api.v1.MarketByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketByIDRequest} - */ -proto.api.v1.MarketByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketByIDRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketByIDRequest} returns this - */ -proto.api.v1.MarketByIDRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - market: (f = msg.getMarket()) && markets_pb.Market.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketByIDResponse} - */ -proto.api.v1.MarketByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketByIDResponse; - return proto.api.v1.MarketByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketByIDResponse} - */ -proto.api.v1.MarketByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new markets_pb.Market; - reader.readMessage(value,markets_pb.Market.deserializeBinaryFromReader); - msg.setMarket(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarket(); - if (f != null) { - writer.writeMessage( - 1, - f, - markets_pb.Market.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Market market = 1; - * @return {?proto.vega.Market} - */ -proto.api.v1.MarketByIDResponse.prototype.getMarket = function() { - return /** @type{?proto.vega.Market} */ ( - jspb.Message.getWrapperField(this, markets_pb.Market, 1)); -}; - - -/** - * @param {?proto.vega.Market|undefined} value - * @return {!proto.api.v1.MarketByIDResponse} returns this -*/ -proto.api.v1.MarketByIDResponse.prototype.setMarket = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketByIDResponse} returns this - */ -proto.api.v1.MarketByIDResponse.prototype.clearMarket = function() { - return this.setMarket(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketByIDResponse.prototype.hasMarket = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartyByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartyByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartyByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartyByIDRequest} - */ -proto.api.v1.PartyByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartyByIDRequest; - return proto.api.v1.PartyByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartyByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartyByIDRequest} - */ -proto.api.v1.PartyByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartyByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartyByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartyByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.PartyByIDRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PartyByIDRequest} returns this - */ -proto.api.v1.PartyByIDRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartyByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartyByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartyByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - party: (f = msg.getParty()) && vega_pb.Party.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartyByIDResponse} - */ -proto.api.v1.PartyByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartyByIDResponse; - return proto.api.v1.PartyByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartyByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartyByIDResponse} - */ -proto.api.v1.PartyByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Party; - reader.readMessage(value,vega_pb.Party.deserializeBinaryFromReader); - msg.setParty(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartyByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartyByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartyByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParty(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Party.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Party party = 1; - * @return {?proto.vega.Party} - */ -proto.api.v1.PartyByIDResponse.prototype.getParty = function() { - return /** @type{?proto.vega.Party} */ ( - jspb.Message.getWrapperField(this, vega_pb.Party, 1)); -}; - - -/** - * @param {?proto.vega.Party|undefined} value - * @return {!proto.api.v1.PartyByIDResponse} returns this -*/ -proto.api.v1.PartyByIDResponse.prototype.setParty = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PartyByIDResponse} returns this - */ -proto.api.v1.PartyByIDResponse.prototype.clearParty = function() { - return this.setParty(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PartyByIDResponse.prototype.hasParty = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartiesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartiesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartiesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartiesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartiesRequest} - */ -proto.api.v1.PartiesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartiesRequest; - return proto.api.v1.PartiesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartiesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartiesRequest} - */ -proto.api.v1.PartiesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartiesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartiesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartiesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartiesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.PartiesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartiesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartiesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartiesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartiesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - partiesList: jspb.Message.toObjectList(msg.getPartiesList(), - vega_pb.Party.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartiesResponse} - */ -proto.api.v1.PartiesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartiesResponse; - return proto.api.v1.PartiesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartiesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartiesResponse} - */ -proto.api.v1.PartiesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Party; - reader.readMessage(value,vega_pb.Party.deserializeBinaryFromReader); - msg.addParties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartiesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartiesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartiesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartiesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Party.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Party parties = 1; - * @return {!Array} - */ -proto.api.v1.PartiesResponse.prototype.getPartiesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Party, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.PartiesResponse} returns this -*/ -proto.api.v1.PartiesResponse.prototype.setPartiesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Party=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Party} - */ -proto.api.v1.PartiesResponse.prototype.addParties = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Party, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.PartiesResponse} returns this - */ -proto.api.v1.PartiesResponse.prototype.clearPartiesList = function() { - return this.setPartiesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByPartyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByPartyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByPartyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByPartyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), - pagination: (f = msg.getPagination()) && proto.api.v1.Pagination.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByPartyRequest} - */ -proto.api.v1.TradesByPartyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByPartyRequest; - return proto.api.v1.TradesByPartyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByPartyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByPartyRequest} - */ -proto.api.v1.TradesByPartyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 3: - var value = new proto.api.v1.Pagination; - reader.readMessage(value,proto.api.v1.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByPartyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByPartyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByPartyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByPartyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.api.v1.Pagination.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.TradesByPartyRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesByPartyRequest} returns this - */ -proto.api.v1.TradesByPartyRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.TradesByPartyRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesByPartyRequest} returns this - */ -proto.api.v1.TradesByPartyRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Pagination pagination = 3; - * @return {?proto.api.v1.Pagination} - */ -proto.api.v1.TradesByPartyRequest.prototype.getPagination = function() { - return /** @type{?proto.api.v1.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.Pagination, 3)); -}; - - -/** - * @param {?proto.api.v1.Pagination|undefined} value - * @return {!proto.api.v1.TradesByPartyRequest} returns this -*/ -proto.api.v1.TradesByPartyRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.TradesByPartyRequest} returns this - */ -proto.api.v1.TradesByPartyRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.TradesByPartyRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.TradesByPartyResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByPartyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByPartyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByPartyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByPartyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradesList: jspb.Message.toObjectList(msg.getTradesList(), - vega_pb.Trade.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByPartyResponse} - */ -proto.api.v1.TradesByPartyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByPartyResponse; - return proto.api.v1.TradesByPartyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByPartyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByPartyResponse} - */ -proto.api.v1.TradesByPartyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.addTrades(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByPartyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByPartyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByPartyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByPartyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Trade trades = 1; - * @return {!Array} - */ -proto.api.v1.TradesByPartyResponse.prototype.getTradesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Trade, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.TradesByPartyResponse} returns this -*/ -proto.api.v1.TradesByPartyResponse.prototype.setTradesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Trade=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Trade} - */ -proto.api.v1.TradesByPartyResponse.prototype.addTrades = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Trade, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.TradesByPartyResponse} returns this - */ -proto.api.v1.TradesByPartyResponse.prototype.clearTradesList = function() { - return this.setTradesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByOrderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByOrderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByOrderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByOrderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - orderId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByOrderRequest} - */ -proto.api.v1.TradesByOrderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByOrderRequest; - return proto.api.v1.TradesByOrderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByOrderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByOrderRequest} - */ -proto.api.v1.TradesByOrderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrderId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByOrderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByOrderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByOrderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByOrderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string order_id = 1; - * @return {string} - */ -proto.api.v1.TradesByOrderRequest.prototype.getOrderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesByOrderRequest} returns this - */ -proto.api.v1.TradesByOrderRequest.prototype.setOrderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.TradesByOrderResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByOrderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByOrderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByOrderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradesList: jspb.Message.toObjectList(msg.getTradesList(), - vega_pb.Trade.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByOrderResponse} - */ -proto.api.v1.TradesByOrderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByOrderResponse; - return proto.api.v1.TradesByOrderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByOrderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByOrderResponse} - */ -proto.api.v1.TradesByOrderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.addTrades(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByOrderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByOrderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByOrderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByOrderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Trade trades = 1; - * @return {!Array} - */ -proto.api.v1.TradesByOrderResponse.prototype.getTradesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Trade, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.TradesByOrderResponse} returns this -*/ -proto.api.v1.TradesByOrderResponse.prototype.setTradesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Trade=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Trade} - */ -proto.api.v1.TradesByOrderResponse.prototype.addTrades = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Trade, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.TradesByOrderResponse} returns this - */ -proto.api.v1.TradesByOrderResponse.prototype.clearTradesList = function() { - return this.setTradesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AccountsSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AccountsSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AccountsSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), - asset: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AccountsSubscribeRequest} - */ -proto.api.v1.AccountsSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AccountsSubscribeRequest; - return proto.api.v1.AccountsSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AccountsSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AccountsSubscribeRequest} - */ -proto.api.v1.AccountsSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - case 4: - var value = /** @type {!proto.vega.AccountType} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AccountsSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AccountsSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AccountsSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.AccountsSubscribeRequest} returns this - */ -proto.api.v1.AccountsSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string party_id = 2; - * @return {string} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.AccountsSubscribeRequest} returns this - */ -proto.api.v1.AccountsSubscribeRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string asset = 3; - * @return {string} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.AccountsSubscribeRequest} returns this - */ -proto.api.v1.AccountsSubscribeRequest.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional vega.AccountType type = 4; - * @return {!proto.vega.AccountType} - */ -proto.api.v1.AccountsSubscribeRequest.prototype.getType = function() { - return /** @type {!proto.vega.AccountType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.vega.AccountType} value - * @return {!proto.api.v1.AccountsSubscribeRequest} returns this - */ -proto.api.v1.AccountsSubscribeRequest.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.AccountsSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.AccountsSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.AccountsSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AccountsSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - account: (f = msg.getAccount()) && vega_pb.Account.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.AccountsSubscribeResponse} - */ -proto.api.v1.AccountsSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.AccountsSubscribeResponse; - return proto.api.v1.AccountsSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.AccountsSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.AccountsSubscribeResponse} - */ -proto.api.v1.AccountsSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Account; - reader.readMessage(value,vega_pb.Account.deserializeBinaryFromReader); - msg.setAccount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.AccountsSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.AccountsSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.AccountsSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.AccountsSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccount(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Account.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Account account = 1; - * @return {?proto.vega.Account} - */ -proto.api.v1.AccountsSubscribeResponse.prototype.getAccount = function() { - return /** @type{?proto.vega.Account} */ ( - jspb.Message.getWrapperField(this, vega_pb.Account, 1)); -}; - - -/** - * @param {?proto.vega.Account|undefined} value - * @return {!proto.api.v1.AccountsSubscribeResponse} returns this -*/ -proto.api.v1.AccountsSubscribeResponse.prototype.setAccount = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.AccountsSubscribeResponse} returns this - */ -proto.api.v1.AccountsSubscribeResponse.prototype.clearAccount = function() { - return this.setAccount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.AccountsSubscribeResponse.prototype.hasAccount = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersSubscribeRequest} - */ -proto.api.v1.OrdersSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersSubscribeRequest; - return proto.api.v1.OrdersSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersSubscribeRequest} - */ -proto.api.v1.OrdersSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.OrdersSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrdersSubscribeRequest} returns this - */ -proto.api.v1.OrdersSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string party_id = 2; - * @return {string} - */ -proto.api.v1.OrdersSubscribeRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrdersSubscribeRequest} returns this - */ -proto.api.v1.OrdersSubscribeRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesSubscribeRequest} - */ -proto.api.v1.TradesSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesSubscribeRequest; - return proto.api.v1.TradesSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesSubscribeRequest} - */ -proto.api.v1.TradesSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.TradesSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesSubscribeRequest} returns this - */ -proto.api.v1.TradesSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string party_id = 2; - * @return {string} - */ -proto.api.v1.TradesSubscribeRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesSubscribeRequest} returns this - */ -proto.api.v1.TradesSubscribeRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.CandlesSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.CandlesSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.CandlesSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - interval: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.CandlesSubscribeRequest} - */ -proto.api.v1.CandlesSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.CandlesSubscribeRequest; - return proto.api.v1.CandlesSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.CandlesSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.CandlesSubscribeRequest} - */ -proto.api.v1.CandlesSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {!proto.vega.Interval} */ (reader.readEnum()); - msg.setInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.CandlesSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.CandlesSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.CandlesSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInterval(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.CandlesSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.CandlesSubscribeRequest} returns this - */ -proto.api.v1.CandlesSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional vega.Interval interval = 2; - * @return {!proto.vega.Interval} - */ -proto.api.v1.CandlesSubscribeRequest.prototype.getInterval = function() { - return /** @type {!proto.vega.Interval} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.vega.Interval} value - * @return {!proto.api.v1.CandlesSubscribeRequest} returns this - */ -proto.api.v1.CandlesSubscribeRequest.prototype.setInterval = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.CandlesSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.CandlesSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.CandlesSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - candle: (f = msg.getCandle()) && vega_pb.Candle.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.CandlesSubscribeResponse} - */ -proto.api.v1.CandlesSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.CandlesSubscribeResponse; - return proto.api.v1.CandlesSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.CandlesSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.CandlesSubscribeResponse} - */ -proto.api.v1.CandlesSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Candle; - reader.readMessage(value,vega_pb.Candle.deserializeBinaryFromReader); - msg.setCandle(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.CandlesSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.CandlesSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.CandlesSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCandle(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Candle.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Candle candle = 1; - * @return {?proto.vega.Candle} - */ -proto.api.v1.CandlesSubscribeResponse.prototype.getCandle = function() { - return /** @type{?proto.vega.Candle} */ ( - jspb.Message.getWrapperField(this, vega_pb.Candle, 1)); -}; - - -/** - * @param {?proto.vega.Candle|undefined} value - * @return {!proto.api.v1.CandlesSubscribeResponse} returns this -*/ -proto.api.v1.CandlesSubscribeResponse.prototype.setCandle = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.CandlesSubscribeResponse} returns this - */ -proto.api.v1.CandlesSubscribeResponse.prototype.clearCandle = function() { - return this.setCandle(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.CandlesSubscribeResponse.prototype.hasCandle = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthSubscribeRequest} - */ -proto.api.v1.MarketDepthSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthSubscribeRequest; - return proto.api.v1.MarketDepthSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthSubscribeRequest} - */ -proto.api.v1.MarketDepthSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketDepthSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketDepthSubscribeRequest} returns this - */ -proto.api.v1.MarketDepthSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketDepth: (f = msg.getMarketDepth()) && vega_pb.MarketDepth.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthSubscribeResponse} - */ -proto.api.v1.MarketDepthSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthSubscribeResponse; - return proto.api.v1.MarketDepthSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthSubscribeResponse} - */ -proto.api.v1.MarketDepthSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarketDepth; - reader.readMessage(value,vega_pb.MarketDepth.deserializeBinaryFromReader); - msg.setMarketDepth(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketDepth(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.MarketDepth.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarketDepth market_depth = 1; - * @return {?proto.vega.MarketDepth} - */ -proto.api.v1.MarketDepthSubscribeResponse.prototype.getMarketDepth = function() { - return /** @type{?proto.vega.MarketDepth} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarketDepth, 1)); -}; - - -/** - * @param {?proto.vega.MarketDepth|undefined} value - * @return {!proto.api.v1.MarketDepthSubscribeResponse} returns this -*/ -proto.api.v1.MarketDepthSubscribeResponse.prototype.setMarketDepth = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketDepthSubscribeResponse} returns this - */ -proto.api.v1.MarketDepthSubscribeResponse.prototype.clearMarketDepth = function() { - return this.setMarketDepth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketDepthSubscribeResponse.prototype.hasMarketDepth = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthUpdatesSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthUpdatesSubscribeRequest; - return proto.api.v1.MarketDepthUpdatesSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthUpdatesSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeRequest} returns this - */ -proto.api.v1.MarketDepthUpdatesSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthUpdatesSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - update: (f = msg.getUpdate()) && vega_pb.MarketDepthUpdate.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthUpdatesSubscribeResponse; - return proto.api.v1.MarketDepthUpdatesSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.MarketDepthUpdate; - reader.readMessage(value,vega_pb.MarketDepthUpdate.deserializeBinaryFromReader); - msg.setUpdate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthUpdatesSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUpdate(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.MarketDepthUpdate.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarketDepthUpdate update = 1; - * @return {?proto.vega.MarketDepthUpdate} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.getUpdate = function() { - return /** @type{?proto.vega.MarketDepthUpdate} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarketDepthUpdate, 1)); -}; - - -/** - * @param {?proto.vega.MarketDepthUpdate|undefined} value - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} returns this -*/ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.setUpdate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketDepthUpdatesSubscribeResponse} returns this - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.clearUpdate = function() { - return this.setUpdate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketDepthUpdatesSubscribeResponse.prototype.hasUpdate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PositionsSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PositionsSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PositionsSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PositionsSubscribeRequest} - */ -proto.api.v1.PositionsSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PositionsSubscribeRequest; - return proto.api.v1.PositionsSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PositionsSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PositionsSubscribeRequest} - */ -proto.api.v1.PositionsSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PositionsSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PositionsSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PositionsSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.PositionsSubscribeRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PositionsSubscribeRequest} returns this - */ -proto.api.v1.PositionsSubscribeRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.PositionsSubscribeRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PositionsSubscribeRequest} returns this - */ -proto.api.v1.PositionsSubscribeRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PositionsSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PositionsSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PositionsSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - position: (f = msg.getPosition()) && vega_pb.Position.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PositionsSubscribeResponse} - */ -proto.api.v1.PositionsSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PositionsSubscribeResponse; - return proto.api.v1.PositionsSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PositionsSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PositionsSubscribeResponse} - */ -proto.api.v1.PositionsSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Position; - reader.readMessage(value,vega_pb.Position.deserializeBinaryFromReader); - msg.setPosition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PositionsSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PositionsSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PositionsSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPosition(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Position.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Position position = 1; - * @return {?proto.vega.Position} - */ -proto.api.v1.PositionsSubscribeResponse.prototype.getPosition = function() { - return /** @type{?proto.vega.Position} */ ( - jspb.Message.getWrapperField(this, vega_pb.Position, 1)); -}; - - -/** - * @param {?proto.vega.Position|undefined} value - * @return {!proto.api.v1.PositionsSubscribeResponse} returns this -*/ -proto.api.v1.PositionsSubscribeResponse.prototype.setPosition = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PositionsSubscribeResponse} returns this - */ -proto.api.v1.PositionsSubscribeResponse.prototype.clearPosition = function() { - return this.setPosition(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PositionsSubscribeResponse.prototype.hasPosition = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersByMarketRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersByMarketRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersByMarketRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByMarketRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagination: (f = msg.getPagination()) && proto.api.v1.Pagination.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersByMarketRequest} - */ -proto.api.v1.OrdersByMarketRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersByMarketRequest; - return proto.api.v1.OrdersByMarketRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersByMarketRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersByMarketRequest} - */ -proto.api.v1.OrdersByMarketRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = new proto.api.v1.Pagination; - reader.readMessage(value,proto.api.v1.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersByMarketRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersByMarketRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersByMarketRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByMarketRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.Pagination.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.OrdersByMarketRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrdersByMarketRequest} returns this - */ -proto.api.v1.OrdersByMarketRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Pagination pagination = 2; - * @return {?proto.api.v1.Pagination} - */ -proto.api.v1.OrdersByMarketRequest.prototype.getPagination = function() { - return /** @type{?proto.api.v1.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.Pagination, 2)); -}; - - -/** - * @param {?proto.api.v1.Pagination|undefined} value - * @return {!proto.api.v1.OrdersByMarketRequest} returns this -*/ -proto.api.v1.OrdersByMarketRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrdersByMarketRequest} returns this - */ -proto.api.v1.OrdersByMarketRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrdersByMarketRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.OrdersByMarketResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersByMarketResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersByMarketResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersByMarketResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByMarketResponse.toObject = function(includeInstance, msg) { - var f, obj = { - ordersList: jspb.Message.toObjectList(msg.getOrdersList(), - vega_pb.Order.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersByMarketResponse} - */ -proto.api.v1.OrdersByMarketResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersByMarketResponse; - return proto.api.v1.OrdersByMarketResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersByMarketResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersByMarketResponse} - */ -proto.api.v1.OrdersByMarketResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.addOrders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersByMarketResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersByMarketResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersByMarketResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByMarketResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Order orders = 1; - * @return {!Array} - */ -proto.api.v1.OrdersByMarketResponse.prototype.getOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.OrdersByMarketResponse} returns this -*/ -proto.api.v1.OrdersByMarketResponse.prototype.setOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Order=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Order} - */ -proto.api.v1.OrdersByMarketResponse.prototype.addOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Order, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OrdersByMarketResponse} returns this - */ -proto.api.v1.OrdersByMarketResponse.prototype.clearOrdersList = function() { - return this.setOrdersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersByPartyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersByPartyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersByPartyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByPartyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagination: (f = msg.getPagination()) && proto.api.v1.Pagination.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersByPartyRequest} - */ -proto.api.v1.OrdersByPartyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersByPartyRequest; - return proto.api.v1.OrdersByPartyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersByPartyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersByPartyRequest} - */ -proto.api.v1.OrdersByPartyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = new proto.api.v1.Pagination; - reader.readMessage(value,proto.api.v1.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersByPartyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersByPartyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersByPartyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByPartyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.Pagination.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.OrdersByPartyRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrdersByPartyRequest} returns this - */ -proto.api.v1.OrdersByPartyRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Pagination pagination = 2; - * @return {?proto.api.v1.Pagination} - */ -proto.api.v1.OrdersByPartyRequest.prototype.getPagination = function() { - return /** @type{?proto.api.v1.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.Pagination, 2)); -}; - - -/** - * @param {?proto.api.v1.Pagination|undefined} value - * @return {!proto.api.v1.OrdersByPartyRequest} returns this -*/ -proto.api.v1.OrdersByPartyRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrdersByPartyRequest} returns this - */ -proto.api.v1.OrdersByPartyRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrdersByPartyRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.OrdersByPartyResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersByPartyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersByPartyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersByPartyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByPartyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - ordersList: jspb.Message.toObjectList(msg.getOrdersList(), - vega_pb.Order.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersByPartyResponse} - */ -proto.api.v1.OrdersByPartyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersByPartyResponse; - return proto.api.v1.OrdersByPartyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersByPartyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersByPartyResponse} - */ -proto.api.v1.OrdersByPartyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.addOrders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersByPartyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersByPartyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersByPartyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersByPartyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Order orders = 1; - * @return {!Array} - */ -proto.api.v1.OrdersByPartyResponse.prototype.getOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.OrdersByPartyResponse} returns this -*/ -proto.api.v1.OrdersByPartyResponse.prototype.setOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Order=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Order} - */ -proto.api.v1.OrdersByPartyResponse.prototype.addOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Order, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OrdersByPartyResponse} returns this - */ -proto.api.v1.OrdersByPartyResponse.prototype.clearOrdersList = function() { - return this.setOrdersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByMarketAndIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByMarketAndIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByMarketAndIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - orderId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByMarketAndIDRequest} - */ -proto.api.v1.OrderByMarketAndIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByMarketAndIDRequest; - return proto.api.v1.OrderByMarketAndIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByMarketAndIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByMarketAndIDRequest} - */ -proto.api.v1.OrderByMarketAndIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOrderId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByMarketAndIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByMarketAndIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByMarketAndIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOrderId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrderByMarketAndIDRequest} returns this - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string order_id = 2; - * @return {string} - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.getOrderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrderByMarketAndIDRequest} returns this - */ -proto.api.v1.OrderByMarketAndIDRequest.prototype.setOrderId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByMarketAndIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByMarketAndIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByMarketAndIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByMarketAndIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - order: (f = msg.getOrder()) && vega_pb.Order.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByMarketAndIDResponse} - */ -proto.api.v1.OrderByMarketAndIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByMarketAndIDResponse; - return proto.api.v1.OrderByMarketAndIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByMarketAndIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByMarketAndIDResponse} - */ -proto.api.v1.OrderByMarketAndIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByMarketAndIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByMarketAndIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByMarketAndIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByMarketAndIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Order order = 1; - * @return {?proto.vega.Order} - */ -proto.api.v1.OrderByMarketAndIDResponse.prototype.getOrder = function() { - return /** @type{?proto.vega.Order} */ ( - jspb.Message.getWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {?proto.vega.Order|undefined} value - * @return {!proto.api.v1.OrderByMarketAndIDResponse} returns this -*/ -proto.api.v1.OrderByMarketAndIDResponse.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrderByMarketAndIDResponse} returns this - */ -proto.api.v1.OrderByMarketAndIDResponse.prototype.clearOrder = function() { - return this.setOrder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrderByMarketAndIDResponse.prototype.hasOrder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByReferenceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByReferenceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByReferenceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByReferenceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - reference: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByReferenceRequest} - */ -proto.api.v1.OrderByReferenceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByReferenceRequest; - return proto.api.v1.OrderByReferenceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByReferenceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByReferenceRequest} - */ -proto.api.v1.OrderByReferenceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReference(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByReferenceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByReferenceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByReferenceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByReferenceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReference(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string reference = 1; - * @return {string} - */ -proto.api.v1.OrderByReferenceRequest.prototype.getReference = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrderByReferenceRequest} returns this - */ -proto.api.v1.OrderByReferenceRequest.prototype.setReference = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByReferenceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByReferenceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByReferenceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByReferenceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - order: (f = msg.getOrder()) && vega_pb.Order.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByReferenceResponse} - */ -proto.api.v1.OrderByReferenceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByReferenceResponse; - return proto.api.v1.OrderByReferenceResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByReferenceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByReferenceResponse} - */ -proto.api.v1.OrderByReferenceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByReferenceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByReferenceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByReferenceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByReferenceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Order order = 1; - * @return {?proto.vega.Order} - */ -proto.api.v1.OrderByReferenceResponse.prototype.getOrder = function() { - return /** @type{?proto.vega.Order} */ ( - jspb.Message.getWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {?proto.vega.Order|undefined} value - * @return {!proto.api.v1.OrderByReferenceResponse} returns this -*/ -proto.api.v1.OrderByReferenceResponse.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrderByReferenceResponse} returns this - */ -proto.api.v1.OrderByReferenceResponse.prototype.clearOrder = function() { - return this.setOrder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrderByReferenceResponse.prototype.hasOrder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsRequest} - */ -proto.api.v1.MarketsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsRequest; - return proto.api.v1.MarketsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsRequest} - */ -proto.api.v1.MarketsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.MarketsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketsList: jspb.Message.toObjectList(msg.getMarketsList(), - markets_pb.Market.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketsResponse} - */ -proto.api.v1.MarketsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketsResponse; - return proto.api.v1.MarketsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketsResponse} - */ -proto.api.v1.MarketsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new markets_pb.Market; - reader.readMessage(value,markets_pb.Market.deserializeBinaryFromReader); - msg.addMarkets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - markets_pb.Market.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Market markets = 1; - * @return {!Array} - */ -proto.api.v1.MarketsResponse.prototype.getMarketsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, markets_pb.Market, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarketsResponse} returns this -*/ -proto.api.v1.MarketsResponse.prototype.setMarketsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Market=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Market} - */ -proto.api.v1.MarketsResponse.prototype.addMarkets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Market, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarketsResponse} returns this - */ -proto.api.v1.MarketsResponse.prototype.clearMarketsList = function() { - return this.setMarketsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.CandlesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.CandlesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.CandlesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - sinceTimestamp: jspb.Message.getFieldWithDefault(msg, 2, 0), - interval: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.CandlesRequest} - */ -proto.api.v1.CandlesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.CandlesRequest; - return proto.api.v1.CandlesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.CandlesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.CandlesRequest} - */ -proto.api.v1.CandlesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSinceTimestamp(value); - break; - case 3: - var value = /** @type {!proto.vega.Interval} */ (reader.readEnum()); - msg.setInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.CandlesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.CandlesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.CandlesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSinceTimestamp(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getInterval(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.CandlesRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.CandlesRequest} returns this - */ -proto.api.v1.CandlesRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 since_timestamp = 2; - * @return {number} - */ -proto.api.v1.CandlesRequest.prototype.getSinceTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.CandlesRequest} returns this - */ -proto.api.v1.CandlesRequest.prototype.setSinceTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional vega.Interval interval = 3; - * @return {!proto.vega.Interval} - */ -proto.api.v1.CandlesRequest.prototype.getInterval = function() { - return /** @type {!proto.vega.Interval} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.vega.Interval} value - * @return {!proto.api.v1.CandlesRequest} returns this - */ -proto.api.v1.CandlesRequest.prototype.setInterval = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.CandlesResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.CandlesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.CandlesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.CandlesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - candlesList: jspb.Message.toObjectList(msg.getCandlesList(), - vega_pb.Candle.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.CandlesResponse} - */ -proto.api.v1.CandlesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.CandlesResponse; - return proto.api.v1.CandlesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.CandlesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.CandlesResponse} - */ -proto.api.v1.CandlesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Candle; - reader.readMessage(value,vega_pb.Candle.deserializeBinaryFromReader); - msg.addCandles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.CandlesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.CandlesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.CandlesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.CandlesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCandlesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Candle.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Candle candles = 1; - * @return {!Array} - */ -proto.api.v1.CandlesResponse.prototype.getCandlesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Candle, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.CandlesResponse} returns this -*/ -proto.api.v1.CandlesResponse.prototype.setCandlesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Candle=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Candle} - */ -proto.api.v1.CandlesResponse.prototype.addCandles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Candle, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.CandlesResponse} returns this - */ -proto.api.v1.CandlesResponse.prototype.clearCandlesList = function() { - return this.setCandlesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - maxDepth: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthRequest} - */ -proto.api.v1.MarketDepthRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthRequest; - return proto.api.v1.MarketDepthRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthRequest} - */ -proto.api.v1.MarketDepthRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxDepth(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMaxDepth(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketDepthRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketDepthRequest} returns this - */ -proto.api.v1.MarketDepthRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 max_depth = 2; - * @return {number} - */ -proto.api.v1.MarketDepthRequest.prototype.getMaxDepth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.MarketDepthRequest} returns this - */ -proto.api.v1.MarketDepthRequest.prototype.setMaxDepth = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.MarketDepthResponse.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketDepthResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketDepthResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketDepthResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - buyList: jspb.Message.toObjectList(msg.getBuyList(), - vega_pb.PriceLevel.toObject, includeInstance), - sellList: jspb.Message.toObjectList(msg.getSellList(), - vega_pb.PriceLevel.toObject, includeInstance), - lastTrade: (f = msg.getLastTrade()) && vega_pb.Trade.toObject(includeInstance, f), - sequenceNumber: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketDepthResponse} - */ -proto.api.v1.MarketDepthResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketDepthResponse; - return proto.api.v1.MarketDepthResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketDepthResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketDepthResponse} - */ -proto.api.v1.MarketDepthResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = new vega_pb.PriceLevel; - reader.readMessage(value,vega_pb.PriceLevel.deserializeBinaryFromReader); - msg.addBuy(value); - break; - case 3: - var value = new vega_pb.PriceLevel; - reader.readMessage(value,vega_pb.PriceLevel.deserializeBinaryFromReader); - msg.addSell(value); - break; - case 4: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.setLastTrade(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequenceNumber(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketDepthResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketDepthResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketDepthResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketDepthResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBuyList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - vega_pb.PriceLevel.serializeBinaryToWriter - ); - } - f = message.getSellList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - vega_pb.PriceLevel.serializeBinaryToWriter - ); - } - f = message.getLastTrade(); - if (f != null) { - writer.writeMessage( - 4, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } - f = message.getSequenceNumber(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketDepthResponse.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketDepthResponse} returns this - */ -proto.api.v1.MarketDepthResponse.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated vega.PriceLevel buy = 2; - * @return {!Array} - */ -proto.api.v1.MarketDepthResponse.prototype.getBuyList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.PriceLevel, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarketDepthResponse} returns this -*/ -proto.api.v1.MarketDepthResponse.prototype.setBuyList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.vega.PriceLevel=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.PriceLevel} - */ -proto.api.v1.MarketDepthResponse.prototype.addBuy = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.PriceLevel, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarketDepthResponse} returns this - */ -proto.api.v1.MarketDepthResponse.prototype.clearBuyList = function() { - return this.setBuyList([]); -}; - - -/** - * repeated vega.PriceLevel sell = 3; - * @return {!Array} - */ -proto.api.v1.MarketDepthResponse.prototype.getSellList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.PriceLevel, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarketDepthResponse} returns this -*/ -proto.api.v1.MarketDepthResponse.prototype.setSellList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.vega.PriceLevel=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.PriceLevel} - */ -proto.api.v1.MarketDepthResponse.prototype.addSell = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.vega.PriceLevel, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarketDepthResponse} returns this - */ -proto.api.v1.MarketDepthResponse.prototype.clearSellList = function() { - return this.setSellList([]); -}; - - -/** - * optional vega.Trade last_trade = 4; - * @return {?proto.vega.Trade} - */ -proto.api.v1.MarketDepthResponse.prototype.getLastTrade = function() { - return /** @type{?proto.vega.Trade} */ ( - jspb.Message.getWrapperField(this, vega_pb.Trade, 4)); -}; - - -/** - * @param {?proto.vega.Trade|undefined} value - * @return {!proto.api.v1.MarketDepthResponse} returns this -*/ -proto.api.v1.MarketDepthResponse.prototype.setLastTrade = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.MarketDepthResponse} returns this - */ -proto.api.v1.MarketDepthResponse.prototype.clearLastTrade = function() { - return this.setLastTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.MarketDepthResponse.prototype.hasLastTrade = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 sequence_number = 5; - * @return {number} - */ -proto.api.v1.MarketDepthResponse.prototype.getSequenceNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.MarketDepthResponse} returns this - */ -proto.api.v1.MarketDepthResponse.prototype.setSequenceNumber = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByMarketRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByMarketRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByMarketRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByMarketRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagination: (f = msg.getPagination()) && proto.api.v1.Pagination.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByMarketRequest} - */ -proto.api.v1.TradesByMarketRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByMarketRequest; - return proto.api.v1.TradesByMarketRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByMarketRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByMarketRequest} - */ -proto.api.v1.TradesByMarketRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = new proto.api.v1.Pagination; - reader.readMessage(value,proto.api.v1.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByMarketRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByMarketRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByMarketRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByMarketRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.Pagination.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.TradesByMarketRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.TradesByMarketRequest} returns this - */ -proto.api.v1.TradesByMarketRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Pagination pagination = 2; - * @return {?proto.api.v1.Pagination} - */ -proto.api.v1.TradesByMarketRequest.prototype.getPagination = function() { - return /** @type{?proto.api.v1.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.Pagination, 2)); -}; - - -/** - * @param {?proto.api.v1.Pagination|undefined} value - * @return {!proto.api.v1.TradesByMarketRequest} returns this -*/ -proto.api.v1.TradesByMarketRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.TradesByMarketRequest} returns this - */ -proto.api.v1.TradesByMarketRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.TradesByMarketRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.TradesByMarketResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesByMarketResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesByMarketResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesByMarketResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByMarketResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradesList: jspb.Message.toObjectList(msg.getTradesList(), - vega_pb.Trade.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesByMarketResponse} - */ -proto.api.v1.TradesByMarketResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesByMarketResponse; - return proto.api.v1.TradesByMarketResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesByMarketResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesByMarketResponse} - */ -proto.api.v1.TradesByMarketResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.addTrades(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesByMarketResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesByMarketResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesByMarketResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesByMarketResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Trade trades = 1; - * @return {!Array} - */ -proto.api.v1.TradesByMarketResponse.prototype.getTradesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Trade, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.TradesByMarketResponse} returns this -*/ -proto.api.v1.TradesByMarketResponse.prototype.setTradesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Trade=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Trade} - */ -proto.api.v1.TradesByMarketResponse.prototype.addTrades = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Trade, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.TradesByMarketResponse} returns this - */ -proto.api.v1.TradesByMarketResponse.prototype.clearTradesList = function() { - return this.setTradesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PositionsByPartyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PositionsByPartyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PositionsByPartyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsByPartyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PositionsByPartyRequest} - */ -proto.api.v1.PositionsByPartyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PositionsByPartyRequest; - return proto.api.v1.PositionsByPartyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PositionsByPartyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PositionsByPartyRequest} - */ -proto.api.v1.PositionsByPartyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PositionsByPartyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PositionsByPartyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PositionsByPartyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsByPartyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.PositionsByPartyRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PositionsByPartyRequest} returns this - */ -proto.api.v1.PositionsByPartyRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.PositionsByPartyRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PositionsByPartyRequest} returns this - */ -proto.api.v1.PositionsByPartyRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.PositionsByPartyResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PositionsByPartyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PositionsByPartyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PositionsByPartyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsByPartyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - positionsList: jspb.Message.toObjectList(msg.getPositionsList(), - vega_pb.Position.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PositionsByPartyResponse} - */ -proto.api.v1.PositionsByPartyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PositionsByPartyResponse; - return proto.api.v1.PositionsByPartyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PositionsByPartyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PositionsByPartyResponse} - */ -proto.api.v1.PositionsByPartyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Position; - reader.readMessage(value,vega_pb.Position.deserializeBinaryFromReader); - msg.addPositions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PositionsByPartyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PositionsByPartyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PositionsByPartyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PositionsByPartyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPositionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Position.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Position positions = 1; - * @return {!Array} - */ -proto.api.v1.PositionsByPartyResponse.prototype.getPositionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Position, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.PositionsByPartyResponse} returns this -*/ -proto.api.v1.PositionsByPartyResponse.prototype.setPositionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Position=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Position} - */ -proto.api.v1.PositionsByPartyResponse.prototype.addPositions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Position, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.PositionsByPartyResponse} returns this - */ -proto.api.v1.PositionsByPartyResponse.prototype.clearPositionsList = function() { - return this.setPositionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetVegaTimeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetVegaTimeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetVegaTimeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVegaTimeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetVegaTimeRequest} - */ -proto.api.v1.GetVegaTimeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetVegaTimeRequest; - return proto.api.v1.GetVegaTimeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetVegaTimeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetVegaTimeRequest} - */ -proto.api.v1.GetVegaTimeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetVegaTimeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetVegaTimeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetVegaTimeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVegaTimeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.GetVegaTimeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.GetVegaTimeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.GetVegaTimeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVegaTimeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.GetVegaTimeResponse} - */ -proto.api.v1.GetVegaTimeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.GetVegaTimeResponse; - return proto.api.v1.GetVegaTimeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.GetVegaTimeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.GetVegaTimeResponse} - */ -proto.api.v1.GetVegaTimeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimestamp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.GetVegaTimeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.GetVegaTimeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.GetVegaTimeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.GetVegaTimeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTimestamp(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 timestamp = 1; - * @return {number} - */ -proto.api.v1.GetVegaTimeResponse.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.GetVegaTimeResponse} returns this - */ -proto.api.v1.GetVegaTimeResponse.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.Pagination.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.Pagination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.Pagination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.Pagination.toObject = function(includeInstance, msg) { - var f, obj = { - skip: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - descending: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.Pagination} - */ -proto.api.v1.Pagination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.Pagination; - return proto.api.v1.Pagination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.Pagination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.Pagination} - */ -proto.api.v1.Pagination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSkip(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDescending(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.Pagination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.Pagination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.Pagination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.Pagination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSkip(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getDescending(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional uint64 skip = 1; - * @return {number} - */ -proto.api.v1.Pagination.prototype.getSkip = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.Pagination} returns this - */ -proto.api.v1.Pagination.prototype.setSkip = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.api.v1.Pagination.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.Pagination} returns this - */ -proto.api.v1.Pagination.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool descending = 3; - * @return {boolean} - */ -proto.api.v1.Pagination.prototype.getDescending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.v1.Pagination} returns this - */ -proto.api.v1.Pagination.prototype.setDescending = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.OrdersSubscribeResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrdersSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrdersSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrdersSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - ordersList: jspb.Message.toObjectList(msg.getOrdersList(), - vega_pb.Order.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrdersSubscribeResponse} - */ -proto.api.v1.OrdersSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrdersSubscribeResponse; - return proto.api.v1.OrdersSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrdersSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrdersSubscribeResponse} - */ -proto.api.v1.OrdersSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.addOrders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrdersSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrdersSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrdersSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrdersSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Order orders = 1; - * @return {!Array} - */ -proto.api.v1.OrdersSubscribeResponse.prototype.getOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.OrdersSubscribeResponse} returns this -*/ -proto.api.v1.OrdersSubscribeResponse.prototype.setOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Order=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Order} - */ -proto.api.v1.OrdersSubscribeResponse.prototype.addOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Order, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OrdersSubscribeResponse} returns this - */ -proto.api.v1.OrdersSubscribeResponse.prototype.clearOrdersList = function() { - return this.setOrdersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.TradesSubscribeResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TradesSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TradesSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TradesSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradesList: jspb.Message.toObjectList(msg.getTradesList(), - vega_pb.Trade.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TradesSubscribeResponse} - */ -proto.api.v1.TradesSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TradesSubscribeResponse; - return proto.api.v1.TradesSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TradesSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TradesSubscribeResponse} - */ -proto.api.v1.TradesSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Trade; - reader.readMessage(value,vega_pb.Trade.deserializeBinaryFromReader); - msg.addTrades(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TradesSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TradesSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TradesSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TradesSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Trade trades = 1; - * @return {!Array} - */ -proto.api.v1.TradesSubscribeResponse.prototype.getTradesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Trade, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.TradesSubscribeResponse} returns this -*/ -proto.api.v1.TradesSubscribeResponse.prototype.setTradesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Trade=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Trade} - */ -proto.api.v1.TradesSubscribeResponse.prototype.addTrades = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Trade, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.TradesSubscribeResponse} returns this - */ -proto.api.v1.TradesSubscribeResponse.prototype.clearTradesList = function() { - return this.setTradesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TransferResponsesSubscribeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TransferResponsesSubscribeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TransferResponsesSubscribeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TransferResponsesSubscribeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TransferResponsesSubscribeRequest} - */ -proto.api.v1.TransferResponsesSubscribeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TransferResponsesSubscribeRequest; - return proto.api.v1.TransferResponsesSubscribeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TransferResponsesSubscribeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TransferResponsesSubscribeRequest} - */ -proto.api.v1.TransferResponsesSubscribeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TransferResponsesSubscribeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TransferResponsesSubscribeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TransferResponsesSubscribeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TransferResponsesSubscribeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.TransferResponsesSubscribeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.TransferResponsesSubscribeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TransferResponsesSubscribeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && vega_pb.TransferResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.TransferResponsesSubscribeResponse} - */ -proto.api.v1.TransferResponsesSubscribeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.TransferResponsesSubscribeResponse; - return proto.api.v1.TransferResponsesSubscribeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.TransferResponsesSubscribeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.TransferResponsesSubscribeResponse} - */ -proto.api.v1.TransferResponsesSubscribeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.TransferResponse; - reader.readMessage(value,vega_pb.TransferResponse.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.TransferResponsesSubscribeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.TransferResponsesSubscribeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.TransferResponsesSubscribeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.TransferResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.TransferResponse response = 1; - * @return {?proto.vega.TransferResponse} - */ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.getResponse = function() { - return /** @type{?proto.vega.TransferResponse} */ ( - jspb.Message.getWrapperField(this, vega_pb.TransferResponse, 1)); -}; - - -/** - * @param {?proto.vega.TransferResponse|undefined} value - * @return {!proto.api.v1.TransferResponsesSubscribeResponse} returns this -*/ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.TransferResponsesSubscribeResponse} returns this - */ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.TransferResponsesSubscribeResponse.prototype.hasResponse = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartyAccountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartyAccountsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartyAccountsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyAccountsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), - type: jspb.Message.getFieldWithDefault(msg, 3, 0), - asset: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartyAccountsRequest} - */ -proto.api.v1.PartyAccountsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartyAccountsRequest; - return proto.api.v1.PartyAccountsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartyAccountsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartyAccountsRequest} - */ -proto.api.v1.PartyAccountsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 3: - var value = /** @type {!proto.vega.AccountType} */ (reader.readEnum()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartyAccountsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartyAccountsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartyAccountsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyAccountsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.PartyAccountsRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PartyAccountsRequest} returns this - */ -proto.api.v1.PartyAccountsRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.PartyAccountsRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PartyAccountsRequest} returns this - */ -proto.api.v1.PartyAccountsRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional vega.AccountType type = 3; - * @return {!proto.vega.AccountType} - */ -proto.api.v1.PartyAccountsRequest.prototype.getType = function() { - return /** @type {!proto.vega.AccountType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.vega.AccountType} value - * @return {!proto.api.v1.PartyAccountsRequest} returns this - */ -proto.api.v1.PartyAccountsRequest.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional string asset = 4; - * @return {string} - */ -proto.api.v1.PartyAccountsRequest.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.PartyAccountsRequest} returns this - */ -proto.api.v1.PartyAccountsRequest.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.PartyAccountsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PartyAccountsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PartyAccountsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PartyAccountsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyAccountsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - accountsList: jspb.Message.toObjectList(msg.getAccountsList(), - vega_pb.Account.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PartyAccountsResponse} - */ -proto.api.v1.PartyAccountsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PartyAccountsResponse; - return proto.api.v1.PartyAccountsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PartyAccountsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PartyAccountsResponse} - */ -proto.api.v1.PartyAccountsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Account; - reader.readMessage(value,vega_pb.Account.deserializeBinaryFromReader); - msg.addAccounts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PartyAccountsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PartyAccountsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PartyAccountsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PartyAccountsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Account.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Account accounts = 1; - * @return {!Array} - */ -proto.api.v1.PartyAccountsResponse.prototype.getAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Account, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.PartyAccountsResponse} returns this -*/ -proto.api.v1.PartyAccountsResponse.prototype.setAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Account=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Account} - */ -proto.api.v1.PartyAccountsResponse.prototype.addAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Account, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.PartyAccountsResponse} returns this - */ -proto.api.v1.PartyAccountsResponse.prototype.clearAccountsList = function() { - return this.setAccountsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketAccountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketAccountsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketAccountsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketAccountsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - asset: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketAccountsRequest} - */ -proto.api.v1.MarketAccountsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketAccountsRequest; - return proto.api.v1.MarketAccountsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketAccountsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketAccountsRequest} - */ -proto.api.v1.MarketAccountsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketAccountsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketAccountsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketAccountsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketAccountsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string market_id = 1; - * @return {string} - */ -proto.api.v1.MarketAccountsRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketAccountsRequest} returns this - */ -proto.api.v1.MarketAccountsRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string asset = 2; - * @return {string} - */ -proto.api.v1.MarketAccountsRequest.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.MarketAccountsRequest} returns this - */ -proto.api.v1.MarketAccountsRequest.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.MarketAccountsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.MarketAccountsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.MarketAccountsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.MarketAccountsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketAccountsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - accountsList: jspb.Message.toObjectList(msg.getAccountsList(), - vega_pb.Account.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.MarketAccountsResponse} - */ -proto.api.v1.MarketAccountsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.MarketAccountsResponse; - return proto.api.v1.MarketAccountsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.MarketAccountsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.MarketAccountsResponse} - */ -proto.api.v1.MarketAccountsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Account; - reader.readMessage(value,vega_pb.Account.deserializeBinaryFromReader); - msg.addAccounts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.MarketAccountsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.MarketAccountsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.MarketAccountsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.MarketAccountsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Account.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Account accounts = 1; - * @return {!Array} - */ -proto.api.v1.MarketAccountsResponse.prototype.getAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Account, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.MarketAccountsResponse} returns this -*/ -proto.api.v1.MarketAccountsResponse.prototype.setAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Account=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Account} - */ -proto.api.v1.MarketAccountsResponse.prototype.addAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Account, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.MarketAccountsResponse} returns this - */ -proto.api.v1.MarketAccountsResponse.prototype.clearAccountsList = function() { - return this.setAccountsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.FeeInfrastructureAccountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.FeeInfrastructureAccountsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.FeeInfrastructureAccountsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.FeeInfrastructureAccountsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - asset: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.FeeInfrastructureAccountsRequest} - */ -proto.api.v1.FeeInfrastructureAccountsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.FeeInfrastructureAccountsRequest; - return proto.api.v1.FeeInfrastructureAccountsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.FeeInfrastructureAccountsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.FeeInfrastructureAccountsRequest} - */ -proto.api.v1.FeeInfrastructureAccountsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.FeeInfrastructureAccountsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.FeeInfrastructureAccountsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.FeeInfrastructureAccountsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.FeeInfrastructureAccountsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string asset = 1; - * @return {string} - */ -proto.api.v1.FeeInfrastructureAccountsRequest.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.FeeInfrastructureAccountsRequest} returns this - */ -proto.api.v1.FeeInfrastructureAccountsRequest.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.FeeInfrastructureAccountsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.FeeInfrastructureAccountsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.FeeInfrastructureAccountsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.FeeInfrastructureAccountsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - accountsList: jspb.Message.toObjectList(msg.getAccountsList(), - vega_pb.Account.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.FeeInfrastructureAccountsResponse} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.FeeInfrastructureAccountsResponse; - return proto.api.v1.FeeInfrastructureAccountsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.FeeInfrastructureAccountsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.FeeInfrastructureAccountsResponse} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Account; - reader.readMessage(value,vega_pb.Account.deserializeBinaryFromReader); - msg.addAccounts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.FeeInfrastructureAccountsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.FeeInfrastructureAccountsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.FeeInfrastructureAccountsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Account.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Account accounts = 1; - * @return {!Array} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.getAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Account, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.FeeInfrastructureAccountsResponse} returns this -*/ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.setAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Account=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Account} - */ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.addAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Account, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.FeeInfrastructureAccountsResponse} returns this - */ -proto.api.v1.FeeInfrastructureAccountsResponse.prototype.clearAccountsList = function() { - return this.setAccountsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareProposalSubmissionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareProposalSubmissionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareProposalSubmissionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.ProposalSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareProposalSubmissionRequest} - */ -proto.api.v1.PrepareProposalSubmissionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareProposalSubmissionRequest; - return proto.api.v1.PrepareProposalSubmissionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareProposalSubmissionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareProposalSubmissionRequest} - */ -proto.api.v1.PrepareProposalSubmissionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.ProposalSubmission; - reader.readMessage(value,commands_v1_commands_pb.ProposalSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareProposalSubmissionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareProposalSubmissionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareProposalSubmissionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.ProposalSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.ProposalSubmission submission = 1; - * @return {?proto.vega.commands.v1.ProposalSubmission} - */ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.ProposalSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.ProposalSubmission, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.ProposalSubmission|undefined} value - * @return {!proto.api.v1.PrepareProposalSubmissionRequest} returns this -*/ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareProposalSubmissionRequest} returns this - */ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareProposalSubmissionRequest.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareProposalSubmissionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareProposalSubmissionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareProposalSubmissionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64(), - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.ProposalSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareProposalSubmissionResponse} - */ -proto.api.v1.PrepareProposalSubmissionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareProposalSubmissionResponse; - return proto.api.v1.PrepareProposalSubmissionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareProposalSubmissionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareProposalSubmissionResponse} - */ -proto.api.v1.PrepareProposalSubmissionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - case 2: - var value = new commands_v1_commands_pb.ProposalSubmission; - reader.readMessage(value,commands_v1_commands_pb.ProposalSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareProposalSubmissionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareProposalSubmissionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareProposalSubmissionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 2, - f, - commands_v1_commands_pb.ProposalSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareProposalSubmissionResponse} returns this - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional vega.commands.v1.ProposalSubmission submission = 2; - * @return {?proto.vega.commands.v1.ProposalSubmission} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.ProposalSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.ProposalSubmission, 2)); -}; - - -/** - * @param {?proto.vega.commands.v1.ProposalSubmission|undefined} value - * @return {!proto.api.v1.PrepareProposalSubmissionResponse} returns this -*/ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareProposalSubmissionResponse} returns this - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareProposalSubmissionResponse.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareVoteSubmissionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareVoteSubmissionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareVoteSubmissionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.VoteSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareVoteSubmissionRequest} - */ -proto.api.v1.PrepareVoteSubmissionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareVoteSubmissionRequest; - return proto.api.v1.PrepareVoteSubmissionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareVoteSubmissionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareVoteSubmissionRequest} - */ -proto.api.v1.PrepareVoteSubmissionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.VoteSubmission; - reader.readMessage(value,commands_v1_commands_pb.VoteSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareVoteSubmissionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareVoteSubmissionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareVoteSubmissionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.VoteSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.VoteSubmission submission = 1; - * @return {?proto.vega.commands.v1.VoteSubmission} - */ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.VoteSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.VoteSubmission, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.VoteSubmission|undefined} value - * @return {!proto.api.v1.PrepareVoteSubmissionRequest} returns this -*/ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareVoteSubmissionRequest} returns this - */ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareVoteSubmissionRequest.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareVoteSubmissionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareVoteSubmissionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareVoteSubmissionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64(), - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.VoteSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareVoteSubmissionResponse} - */ -proto.api.v1.PrepareVoteSubmissionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareVoteSubmissionResponse; - return proto.api.v1.PrepareVoteSubmissionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareVoteSubmissionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareVoteSubmissionResponse} - */ -proto.api.v1.PrepareVoteSubmissionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - case 2: - var value = new commands_v1_commands_pb.VoteSubmission; - reader.readMessage(value,commands_v1_commands_pb.VoteSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareVoteSubmissionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareVoteSubmissionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareVoteSubmissionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 2, - f, - commands_v1_commands_pb.VoteSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareVoteSubmissionResponse} returns this - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional vega.commands.v1.VoteSubmission submission = 2; - * @return {?proto.vega.commands.v1.VoteSubmission} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.VoteSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.VoteSubmission, 2)); -}; - - -/** - * @param {?proto.vega.commands.v1.VoteSubmission|undefined} value - * @return {!proto.api.v1.PrepareVoteSubmissionResponse} returns this -*/ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareVoteSubmissionResponse} returns this - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareVoteSubmissionResponse.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareLiquidityProvisionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareLiquidityProvisionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareLiquidityProvisionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - submission: (f = msg.getSubmission()) && commands_v1_commands_pb.LiquidityProvisionSubmission.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareLiquidityProvisionRequest} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareLiquidityProvisionRequest; - return proto.api.v1.PrepareLiquidityProvisionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareLiquidityProvisionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareLiquidityProvisionRequest} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commands_v1_commands_pb.LiquidityProvisionSubmission; - reader.readMessage(value,commands_v1_commands_pb.LiquidityProvisionSubmission.deserializeBinaryFromReader); - msg.setSubmission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareLiquidityProvisionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareLiquidityProvisionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareLiquidityProvisionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubmission(); - if (f != null) { - writer.writeMessage( - 1, - f, - commands_v1_commands_pb.LiquidityProvisionSubmission.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.commands.v1.LiquidityProvisionSubmission submission = 1; - * @return {?proto.vega.commands.v1.LiquidityProvisionSubmission} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.getSubmission = function() { - return /** @type{?proto.vega.commands.v1.LiquidityProvisionSubmission} */ ( - jspb.Message.getWrapperField(this, commands_v1_commands_pb.LiquidityProvisionSubmission, 1)); -}; - - -/** - * @param {?proto.vega.commands.v1.LiquidityProvisionSubmission|undefined} value - * @return {!proto.api.v1.PrepareLiquidityProvisionRequest} returns this -*/ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.setSubmission = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.PrepareLiquidityProvisionRequest} returns this - */ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.clearSubmission = function() { - return this.setSubmission(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.PrepareLiquidityProvisionRequest.prototype.hasSubmission = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.PrepareLiquidityProvisionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.PrepareLiquidityProvisionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareLiquidityProvisionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blob: msg.getBlob_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.PrepareLiquidityProvisionResponse} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.PrepareLiquidityProvisionResponse; - return proto.api.v1.PrepareLiquidityProvisionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.PrepareLiquidityProvisionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.PrepareLiquidityProvisionResponse} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.PrepareLiquidityProvisionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.PrepareLiquidityProvisionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.PrepareLiquidityProvisionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlob_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes blob = 1; - * @return {!(string|Uint8Array)} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.getBlob = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes blob = 1; - * This is a type-conversion wrapper around `getBlob()` - * @return {string} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.getBlob_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlob())); -}; - - -/** - * optional bytes blob = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlob()` - * @return {!Uint8Array} - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.getBlob_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlob())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.v1.PrepareLiquidityProvisionResponse} returns this - */ -proto.api.v1.PrepareLiquidityProvisionResponse.prototype.setBlob = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - orderId: jspb.Message.getFieldWithDefault(msg, 1, ""), - version: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByIDRequest} - */ -proto.api.v1.OrderByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByIDRequest; - return proto.api.v1.OrderByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByIDRequest} - */ -proto.api.v1.OrderByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrderId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getVersion(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional string order_id = 1; - * @return {string} - */ -proto.api.v1.OrderByIDRequest.prototype.getOrderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrderByIDRequest} returns this - */ -proto.api.v1.OrderByIDRequest.prototype.setOrderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 version = 2; - * @return {number} - */ -proto.api.v1.OrderByIDRequest.prototype.getVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.OrderByIDRequest} returns this - */ -proto.api.v1.OrderByIDRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - order: (f = msg.getOrder()) && vega_pb.Order.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderByIDResponse} - */ -proto.api.v1.OrderByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderByIDResponse; - return proto.api.v1.OrderByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderByIDResponse} - */ -proto.api.v1.OrderByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Order order = 1; - * @return {?proto.vega.Order} - */ -proto.api.v1.OrderByIDResponse.prototype.getOrder = function() { - return /** @type{?proto.vega.Order} */ ( - jspb.Message.getWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {?proto.vega.Order|undefined} value - * @return {!proto.api.v1.OrderByIDResponse} returns this -*/ -proto.api.v1.OrderByIDResponse.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrderByIDResponse} returns this - */ -proto.api.v1.OrderByIDResponse.prototype.clearOrder = function() { - return this.setOrder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrderByIDResponse.prototype.hasOrder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderVersionsByIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderVersionsByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderVersionsByIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - orderId: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagination: (f = msg.getPagination()) && proto.api.v1.Pagination.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderVersionsByIDRequest} - */ -proto.api.v1.OrderVersionsByIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderVersionsByIDRequest; - return proto.api.v1.OrderVersionsByIDRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderVersionsByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderVersionsByIDRequest} - */ -proto.api.v1.OrderVersionsByIDRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrderId(value); - break; - case 2: - var value = new proto.api.v1.Pagination; - reader.readMessage(value,proto.api.v1.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderVersionsByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderVersionsByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderVersionsByIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.v1.Pagination.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string order_id = 1; - * @return {string} - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.getOrderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.OrderVersionsByIDRequest} returns this - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.setOrderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Pagination pagination = 2; - * @return {?proto.api.v1.Pagination} - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.getPagination = function() { - return /** @type{?proto.api.v1.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.api.v1.Pagination, 2)); -}; - - -/** - * @param {?proto.api.v1.Pagination|undefined} value - * @return {!proto.api.v1.OrderVersionsByIDRequest} returns this -*/ -proto.api.v1.OrderVersionsByIDRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OrderVersionsByIDRequest} returns this - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.OrderVersionsByIDRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.OrderVersionsByIDResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.OrderVersionsByIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OrderVersionsByIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OrderVersionsByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderVersionsByIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - ordersList: jspb.Message.toObjectList(msg.getOrdersList(), - vega_pb.Order.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OrderVersionsByIDResponse} - */ -proto.api.v1.OrderVersionsByIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OrderVersionsByIDResponse; - return proto.api.v1.OrderVersionsByIDResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OrderVersionsByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OrderVersionsByIDResponse} - */ -proto.api.v1.OrderVersionsByIDResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.addOrders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.OrderVersionsByIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OrderVersionsByIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OrderVersionsByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.OrderVersionsByIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.Order orders = 1; - * @return {!Array} - */ -proto.api.v1.OrderVersionsByIDResponse.prototype.getOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.OrderVersionsByIDResponse} returns this -*/ -proto.api.v1.OrderVersionsByIDResponse.prototype.setOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Order=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Order} - */ -proto.api.v1.OrderVersionsByIDResponse.prototype.addOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Order, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OrderVersionsByIDResponse} returns this - */ -proto.api.v1.OrderVersionsByIDResponse.prototype.clearOrdersList = function() { - return this.setOrdersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.EstimateFeeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.EstimateFeeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.EstimateFeeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateFeeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - order: (f = msg.getOrder()) && vega_pb.Order.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.EstimateFeeRequest} - */ -proto.api.v1.EstimateFeeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.EstimateFeeRequest; - return proto.api.v1.EstimateFeeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.EstimateFeeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.EstimateFeeRequest} - */ -proto.api.v1.EstimateFeeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.EstimateFeeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.EstimateFeeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.EstimateFeeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateFeeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Order order = 1; - * @return {?proto.vega.Order} - */ -proto.api.v1.EstimateFeeRequest.prototype.getOrder = function() { - return /** @type{?proto.vega.Order} */ ( - jspb.Message.getWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {?proto.vega.Order|undefined} value - * @return {!proto.api.v1.EstimateFeeRequest} returns this -*/ -proto.api.v1.EstimateFeeRequest.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.EstimateFeeRequest} returns this - */ -proto.api.v1.EstimateFeeRequest.prototype.clearOrder = function() { - return this.setOrder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.EstimateFeeRequest.prototype.hasOrder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.EstimateFeeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.EstimateFeeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.EstimateFeeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateFeeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - fee: (f = msg.getFee()) && vega_pb.Fee.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.EstimateFeeResponse} - */ -proto.api.v1.EstimateFeeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.EstimateFeeResponse; - return proto.api.v1.EstimateFeeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.EstimateFeeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.EstimateFeeResponse} - */ -proto.api.v1.EstimateFeeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new vega_pb.Fee; - reader.readMessage(value,vega_pb.Fee.deserializeBinaryFromReader); - msg.setFee(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.EstimateFeeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.EstimateFeeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.EstimateFeeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateFeeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFee(); - if (f != null) { - writer.writeMessage( - 2, - f, - vega_pb.Fee.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Fee fee = 2; - * @return {?proto.vega.Fee} - */ -proto.api.v1.EstimateFeeResponse.prototype.getFee = function() { - return /** @type{?proto.vega.Fee} */ ( - jspb.Message.getWrapperField(this, vega_pb.Fee, 2)); -}; - - -/** - * @param {?proto.vega.Fee|undefined} value - * @return {!proto.api.v1.EstimateFeeResponse} returns this -*/ -proto.api.v1.EstimateFeeResponse.prototype.setFee = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.EstimateFeeResponse} returns this - */ -proto.api.v1.EstimateFeeResponse.prototype.clearFee = function() { - return this.setFee(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.EstimateFeeResponse.prototype.hasFee = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.EstimateMarginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.EstimateMarginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.EstimateMarginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateMarginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - order: (f = msg.getOrder()) && vega_pb.Order.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.EstimateMarginRequest} - */ -proto.api.v1.EstimateMarginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.EstimateMarginRequest; - return proto.api.v1.EstimateMarginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.EstimateMarginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.EstimateMarginRequest} - */ -proto.api.v1.EstimateMarginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Order; - reader.readMessage(value,vega_pb.Order.deserializeBinaryFromReader); - msg.setOrder(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.EstimateMarginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.EstimateMarginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.EstimateMarginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateMarginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Order.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Order order = 1; - * @return {?proto.vega.Order} - */ -proto.api.v1.EstimateMarginRequest.prototype.getOrder = function() { - return /** @type{?proto.vega.Order} */ ( - jspb.Message.getWrapperField(this, vega_pb.Order, 1)); -}; - - -/** - * @param {?proto.vega.Order|undefined} value - * @return {!proto.api.v1.EstimateMarginRequest} returns this -*/ -proto.api.v1.EstimateMarginRequest.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.EstimateMarginRequest} returns this - */ -proto.api.v1.EstimateMarginRequest.prototype.clearOrder = function() { - return this.setOrder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.EstimateMarginRequest.prototype.hasOrder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.EstimateMarginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.EstimateMarginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.EstimateMarginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateMarginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - marginLevels: (f = msg.getMarginLevels()) && vega_pb.MarginLevels.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.EstimateMarginResponse} - */ -proto.api.v1.EstimateMarginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.EstimateMarginResponse; - return proto.api.v1.EstimateMarginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.EstimateMarginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.EstimateMarginResponse} - */ -proto.api.v1.EstimateMarginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new vega_pb.MarginLevels; - reader.readMessage(value,vega_pb.MarginLevels.deserializeBinaryFromReader); - msg.setMarginLevels(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.EstimateMarginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.EstimateMarginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.EstimateMarginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.EstimateMarginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarginLevels(); - if (f != null) { - writer.writeMessage( - 2, - f, - vega_pb.MarginLevels.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.MarginLevels margin_levels = 2; - * @return {?proto.vega.MarginLevels} - */ -proto.api.v1.EstimateMarginResponse.prototype.getMarginLevels = function() { - return /** @type{?proto.vega.MarginLevels} */ ( - jspb.Message.getWrapperField(this, vega_pb.MarginLevels, 2)); -}; - - -/** - * @param {?proto.vega.MarginLevels|undefined} value - * @return {!proto.api.v1.EstimateMarginResponse} returns this -*/ -proto.api.v1.EstimateMarginResponse.prototype.setMarginLevels = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.EstimateMarginResponse} returns this - */ -proto.api.v1.EstimateMarginResponse.prototype.clearMarginLevels = function() { - return this.setMarginLevels(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.EstimateMarginResponse.prototype.hasMarginLevels = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.ObserveEventBusRequest.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveEventBusRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveEventBusRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveEventBusRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveEventBusRequest.toObject = function(includeInstance, msg) { - var f, obj = { - typeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 3, ""), - batchSize: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveEventBusRequest} - */ -proto.api.v1.ObserveEventBusRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveEventBusRequest; - return proto.api.v1.ObserveEventBusRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveEventBusRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveEventBusRequest} - */ -proto.api.v1.ObserveEventBusRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); - for (var i = 0; i < values.length; i++) { - msg.addType(values[i]); - } - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBatchSize(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveEventBusRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveEventBusRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveEventBusRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveEventBusRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTypeList(); - if (f.length > 0) { - writer.writePackedEnum( - 1, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBatchSize(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } -}; - - -/** - * repeated vega.events.v1.BusEventType type = 1; - * @return {!Array} - */ -proto.api.v1.ObserveEventBusRequest.prototype.getTypeList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.setTypeList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {!proto.vega.events.v1.BusEventType} value - * @param {number=} opt_index - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.addType = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.clearTypeList = function() { - return this.setTypeList([]); -}; - - -/** - * optional string market_id = 2; - * @return {string} - */ -proto.api.v1.ObserveEventBusRequest.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string party_id = 3; - * @return {string} - */ -proto.api.v1.ObserveEventBusRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional int64 batch_size = 4; - * @return {number} - */ -proto.api.v1.ObserveEventBusRequest.prototype.getBatchSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.v1.ObserveEventBusRequest} returns this - */ -proto.api.v1.ObserveEventBusRequest.prototype.setBatchSize = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.ObserveEventBusResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.ObserveEventBusResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ObserveEventBusResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.ObserveEventBusResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveEventBusResponse.toObject = function(includeInstance, msg) { - var f, obj = { - eventsList: jspb.Message.toObjectList(msg.getEventsList(), - events_v1_events_pb.BusEvent.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ObserveEventBusResponse} - */ -proto.api.v1.ObserveEventBusResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ObserveEventBusResponse; - return proto.api.v1.ObserveEventBusResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.ObserveEventBusResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ObserveEventBusResponse} - */ -proto.api.v1.ObserveEventBusResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new events_v1_events_pb.BusEvent; - reader.readMessage(value,events_v1_events_pb.BusEvent.deserializeBinaryFromReader); - msg.addEvents(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.ObserveEventBusResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.ObserveEventBusResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ObserveEventBusResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.ObserveEventBusResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEventsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - events_v1_events_pb.BusEvent.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.events.v1.BusEvent events = 1; - * @return {!Array} - */ -proto.api.v1.ObserveEventBusResponse.prototype.getEventsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, events_v1_events_pb.BusEvent, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.ObserveEventBusResponse} returns this -*/ -proto.api.v1.ObserveEventBusResponse.prototype.setEventsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.events.v1.BusEvent=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.events.v1.BusEvent} - */ -proto.api.v1.ObserveEventBusResponse.prototype.addEvents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.events.v1.BusEvent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.ObserveEventBusResponse} returns this - */ -proto.api.v1.ObserveEventBusResponse.prototype.clearEventsList = function() { - return this.setEventsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.StatisticsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.StatisticsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.StatisticsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.StatisticsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.StatisticsRequest} - */ -proto.api.v1.StatisticsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.StatisticsRequest; - return proto.api.v1.StatisticsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.StatisticsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.StatisticsRequest} - */ -proto.api.v1.StatisticsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.StatisticsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.StatisticsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.StatisticsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.StatisticsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.StatisticsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.StatisticsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.StatisticsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.StatisticsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - statistics: (f = msg.getStatistics()) && vega_pb.Statistics.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.StatisticsResponse} - */ -proto.api.v1.StatisticsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.StatisticsResponse; - return proto.api.v1.StatisticsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.StatisticsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.StatisticsResponse} - */ -proto.api.v1.StatisticsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Statistics; - reader.readMessage(value,vega_pb.Statistics.deserializeBinaryFromReader); - msg.setStatistics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.StatisticsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.StatisticsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.StatisticsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.StatisticsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatistics(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Statistics.serializeBinaryToWriter - ); - } -}; - - -/** - * optional vega.Statistics statistics = 1; - * @return {?proto.vega.Statistics} - */ -proto.api.v1.StatisticsResponse.prototype.getStatistics = function() { - return /** @type{?proto.vega.Statistics} */ ( - jspb.Message.getWrapperField(this, vega_pb.Statistics, 1)); -}; - - -/** - * @param {?proto.vega.Statistics|undefined} value - * @return {!proto.api.v1.StatisticsResponse} returns this -*/ -proto.api.v1.StatisticsResponse.prototype.setStatistics = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.v1.StatisticsResponse} returns this - */ -proto.api.v1.StatisticsResponse.prototype.clearStatistics = function() { - return this.setStatistics(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.v1.StatisticsResponse.prototype.hasStatistics = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.WithdrawalsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.WithdrawalsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.WithdrawalsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.WithdrawalsRequest} - */ -proto.api.v1.WithdrawalsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.WithdrawalsRequest; - return proto.api.v1.WithdrawalsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.WithdrawalsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.WithdrawalsRequest} - */ -proto.api.v1.WithdrawalsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.WithdrawalsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.WithdrawalsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.WithdrawalsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.WithdrawalsRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.WithdrawalsRequest} returns this - */ -proto.api.v1.WithdrawalsRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.WithdrawalsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.WithdrawalsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.WithdrawalsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.WithdrawalsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - withdrawalsList: jspb.Message.toObjectList(msg.getWithdrawalsList(), - vega_pb.Withdrawal.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.WithdrawalsResponse} - */ -proto.api.v1.WithdrawalsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.WithdrawalsResponse; - return proto.api.v1.WithdrawalsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.WithdrawalsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.WithdrawalsResponse} - */ -proto.api.v1.WithdrawalsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Withdrawal; - reader.readMessage(value,vega_pb.Withdrawal.deserializeBinaryFromReader); - msg.addWithdrawals(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.WithdrawalsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.WithdrawalsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.WithdrawalsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalsResponse.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.PropagateChainEventRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getWithdrawalsList(); + f = message.getEvent_asU8(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeBytes( 1, - f, - vega_pb.Withdrawal.serializeBinaryToWriter + f ); } -}; - - -/** - * repeated vega.Withdrawal withdrawals = 1; - * @return {!Array} - */ -proto.api.v1.WithdrawalsResponse.prototype.getWithdrawalsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Withdrawal, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.WithdrawalsResponse} returns this -*/ -proto.api.v1.WithdrawalsResponse.prototype.setWithdrawalsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.Withdrawal=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Withdrawal} - */ -proto.api.v1.WithdrawalsResponse.prototype.addWithdrawals = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Withdrawal, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.WithdrawalsResponse} returns this - */ -proto.api.v1.WithdrawalsResponse.prototype.clearWithdrawalsList = function() { - return this.setWithdrawalsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.v1.WithdrawalRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.WithdrawalRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.WithdrawalRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.WithdrawalRequest} - */ -proto.api.v1.WithdrawalRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.WithdrawalRequest; - return proto.api.v1.WithdrawalRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.WithdrawalRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.WithdrawalRequest} - */ -proto.api.v1.WithdrawalRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.v1.WithdrawalRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.WithdrawalRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.WithdrawalRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); + f = message.getPubKey(); if (f.length > 0) { writer.writeString( - 1, + 2, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, f ); } @@ -23917,171 +460,104 @@ proto.api.v1.WithdrawalRequest.serializeBinaryToWriter = function(message, write /** - * optional string id = 1; - * @return {string} - */ -proto.api.v1.WithdrawalRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.WithdrawalRequest} returns this - */ -proto.api.v1.WithdrawalRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional bytes event = 1; + * @return {!(string|Uint8Array)} */ -proto.api.v1.WithdrawalResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.WithdrawalResponse.toObject(opt_includeInstance, this); +proto.api.v1.PropagateChainEventRequest.prototype.getEvent = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.WithdrawalResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.v1.WithdrawalResponse.toObject = function(includeInstance, msg) { - var f, obj = { - withdrawal: (f = msg.getWithdrawal()) && vega_pb.Withdrawal.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +/** + * optional bytes event = 1; + * This is a type-conversion wrapper around `getEvent()` + * @return {string} + */ +proto.api.v1.PropagateChainEventRequest.prototype.getEvent_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getEvent())); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.WithdrawalResponse} + * optional bytes event = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getEvent()` + * @return {!Uint8Array} */ -proto.api.v1.WithdrawalResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.WithdrawalResponse; - return proto.api.v1.WithdrawalResponse.deserializeBinaryFromReader(msg, reader); +proto.api.v1.PropagateChainEventRequest.prototype.getEvent_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getEvent())); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.WithdrawalResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.WithdrawalResponse} + * @param {!(string|Uint8Array)} value + * @return {!proto.api.v1.PropagateChainEventRequest} returns this */ -proto.api.v1.WithdrawalResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Withdrawal; - reader.readMessage(value,vega_pb.Withdrawal.deserializeBinaryFromReader); - msg.setWithdrawal(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.PropagateChainEventRequest.prototype.setEvent = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string pub_key = 2; + * @return {string} */ -proto.api.v1.WithdrawalResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.WithdrawalResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.PropagateChainEventRequest.prototype.getPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.WithdrawalResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.api.v1.PropagateChainEventRequest} returns this */ -proto.api.v1.WithdrawalResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWithdrawal(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Withdrawal.serializeBinaryToWriter - ); - } +proto.api.v1.PropagateChainEventRequest.prototype.setPubKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional vega.Withdrawal withdrawal = 1; - * @return {?proto.vega.Withdrawal} + * optional bytes signature = 3; + * @return {!(string|Uint8Array)} */ -proto.api.v1.WithdrawalResponse.prototype.getWithdrawal = function() { - return /** @type{?proto.vega.Withdrawal} */ ( - jspb.Message.getWrapperField(this, vega_pb.Withdrawal, 1)); +proto.api.v1.PropagateChainEventRequest.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.vega.Withdrawal|undefined} value - * @return {!proto.api.v1.WithdrawalResponse} returns this -*/ -proto.api.v1.WithdrawalResponse.prototype.setWithdrawal = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * optional bytes signature = 3; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.api.v1.PropagateChainEventRequest.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); }; /** - * Clears the message field making it undefined. - * @return {!proto.api.v1.WithdrawalResponse} returns this + * optional bytes signature = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} */ -proto.api.v1.WithdrawalResponse.prototype.clearWithdrawal = function() { - return this.setWithdrawal(undefined); +proto.api.v1.PropagateChainEventRequest.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!(string|Uint8Array)} value + * @return {!proto.api.v1.PropagateChainEventRequest} returns this */ -proto.api.v1.WithdrawalResponse.prototype.hasWithdrawal = function() { - return jspb.Message.getField(this, 1) != null; +proto.api.v1.PropagateChainEventRequest.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -24101,8 +577,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ERC20WithdrawalApprovalRequest.toObject(opt_includeInstance, this); +proto.api.v1.PropagateChainEventResponse.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.PropagateChainEventResponse.toObject(opt_includeInstance, this); }; @@ -24111,13 +587,13 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.ERC20WithdrawalApprovalRequest} msg The msg instance to transform. + * @param {!proto.api.v1.PropagateChainEventResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalRequest.toObject = function(includeInstance, msg) { +proto.api.v1.PropagateChainEventResponse.toObject = function(includeInstance, msg) { var f, obj = { - withdrawalId: jspb.Message.getFieldWithDefault(msg, 1, "") + success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -24131,23 +607,23 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ERC20WithdrawalApprovalRequest} + * @return {!proto.api.v1.PropagateChainEventResponse} */ -proto.api.v1.ERC20WithdrawalApprovalRequest.deserializeBinary = function(bytes) { +proto.api.v1.PropagateChainEventResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ERC20WithdrawalApprovalRequest; - return proto.api.v1.ERC20WithdrawalApprovalRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.PropagateChainEventResponse; + return proto.api.v1.PropagateChainEventResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.ERC20WithdrawalApprovalRequest} msg The message object to deserialize into. + * @param {!proto.api.v1.PropagateChainEventResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ERC20WithdrawalApprovalRequest} + * @return {!proto.api.v1.PropagateChainEventResponse} */ -proto.api.v1.ERC20WithdrawalApprovalRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.PropagateChainEventResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24155,8 +631,8 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setWithdrawalId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; default: reader.skipField(); @@ -24171,9 +647,9 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.serializeBinary = function() { +proto.api.v1.PropagateChainEventResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.ERC20WithdrawalApprovalRequest.serializeBinaryToWriter(this, writer); + proto.api.v1.PropagateChainEventResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24181,15 +657,15 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ERC20WithdrawalApprovalRequest} message + * @param {!proto.api.v1.PropagateChainEventResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalRequest.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.PropagateChainEventResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getWithdrawalId(); - if (f.length > 0) { - writer.writeString( + f = message.getSuccess(); + if (f) { + writer.writeBool( 1, f ); @@ -24198,20 +674,20 @@ proto.api.v1.ERC20WithdrawalApprovalRequest.serializeBinaryToWriter = function(m /** - * optional string withdrawal_id = 1; - * @return {string} + * optional bool success = 1; + * @return {boolean} */ -proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.getWithdrawalId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.api.v1.PropagateChainEventResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * @param {string} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalRequest} returns this + * @param {boolean} value + * @return {!proto.api.v1.PropagateChainEventResponse} returns this */ -proto.api.v1.ERC20WithdrawalApprovalRequest.prototype.setWithdrawalId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.api.v1.PropagateChainEventResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -24231,8 +707,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.ERC20WithdrawalApprovalResponse.toObject(opt_includeInstance, this); +proto.api.v1.SubmitTransactionV2Request.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.SubmitTransactionV2Request.toObject(opt_includeInstance, this); }; @@ -24241,17 +717,14 @@ proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.ERC20WithdrawalApprovalResponse} msg The msg instance to transform. + * @param {!proto.api.v1.SubmitTransactionV2Request} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalResponse.toObject = function(includeInstance, msg) { +proto.api.v1.SubmitTransactionV2Request.toObject = function(includeInstance, msg) { var f, obj = { - assetSource: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: jspb.Message.getFieldWithDefault(msg, 2, ""), - expiry: jspb.Message.getFieldWithDefault(msg, 3, 0), - nonce: jspb.Message.getFieldWithDefault(msg, 4, ""), - signatures: jspb.Message.getFieldWithDefault(msg, 5, "") + tx: (f = msg.getTx()) && commands_v1_transaction_pb.Transaction.toObject(includeInstance, f), + type: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -24265,23 +738,23 @@ proto.api.v1.ERC20WithdrawalApprovalResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} + * @return {!proto.api.v1.SubmitTransactionV2Request} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.deserializeBinary = function(bytes) { +proto.api.v1.SubmitTransactionV2Request.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.ERC20WithdrawalApprovalResponse; - return proto.api.v1.ERC20WithdrawalApprovalResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.SubmitTransactionV2Request; + return proto.api.v1.SubmitTransactionV2Request.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.ERC20WithdrawalApprovalResponse} msg The message object to deserialize into. + * @param {!proto.api.v1.SubmitTransactionV2Request} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} + * @return {!proto.api.v1.SubmitTransactionV2Request} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.SubmitTransactionV2Request.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24289,24 +762,13 @@ proto.api.v1.ERC20WithdrawalApprovalResponse.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAssetSource(value); + var value = new commands_v1_transaction_pb.Transaction; + reader.readMessage(value,commands_v1_transaction_pb.Transaction.deserializeBinaryFromReader); + msg.setTx(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAmount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setExpiry(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNonce(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSignatures(value); + var value = /** @type {!proto.api.v1.SubmitTransactionV2Request.Type} */ (reader.readEnum()); + msg.setType(value); break; default: reader.skipField(); @@ -24321,9 +783,9 @@ proto.api.v1.ERC20WithdrawalApprovalResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.serializeBinary = function() { +proto.api.v1.SubmitTransactionV2Request.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.ERC20WithdrawalApprovalResponse.serializeBinaryToWriter(this, writer); + proto.api.v1.SubmitTransactionV2Request.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24331,137 +793,222 @@ proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.ERC20WithdrawalApprovalResponse} message + * @param {!proto.api.v1.SubmitTransactionV2Request} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalResponse.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.SubmitTransactionV2Request.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssetSource(); - if (f.length > 0) { - writer.writeString( + f = message.getTx(); + if (f != null) { + writer.writeMessage( 1, - f + f, + commands_v1_transaction_pb.Transaction.serializeBinaryToWriter ); } - f = message.getAmount(); - if (f.length > 0) { - writer.writeString( + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( 2, f ); } - f = message.getExpiry(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getNonce(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSignatures(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } }; /** - * optional string asset_source = 1; - * @return {string} + * @enum {number} + */ +proto.api.v1.SubmitTransactionV2Request.Type = { + TYPE_UNSPECIFIED: 0, + TYPE_ASYNC: 1, + TYPE_SYNC: 2, + TYPE_COMMIT: 3 +}; + +/** + * optional vega.commands.v1.Transaction tx = 1; + * @return {?proto.vega.commands.v1.Transaction} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.getAssetSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.api.v1.SubmitTransactionV2Request.prototype.getTx = function() { + return /** @type{?proto.vega.commands.v1.Transaction} */ ( + jspb.Message.getWrapperField(this, commands_v1_transaction_pb.Transaction, 1)); }; /** - * @param {string} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} returns this + * @param {?proto.vega.commands.v1.Transaction|undefined} value + * @return {!proto.api.v1.SubmitTransactionV2Request} returns this +*/ +proto.api.v1.SubmitTransactionV2Request.prototype.setTx = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.api.v1.SubmitTransactionV2Request} returns this */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.setAssetSource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.api.v1.SubmitTransactionV2Request.prototype.clearTx = function() { + return this.setTx(undefined); }; /** - * optional string amount = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.api.v1.SubmitTransactionV2Request.prototype.hasTx = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Type type = 2; + * @return {!proto.api.v1.SubmitTransactionV2Request.Type} + */ +proto.api.v1.SubmitTransactionV2Request.prototype.getType = function() { + return /** @type {!proto.api.v1.SubmitTransactionV2Request.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.api.v1.SubmitTransactionV2Request.Type} value + * @return {!proto.api.v1.SubmitTransactionV2Request} returns this + */ +proto.api.v1.SubmitTransactionV2Request.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.api.v1.SubmitTransactionV2Response.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.SubmitTransactionV2Response.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.api.v1.SubmitTransactionV2Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.api.v1.SubmitTransactionV2Response.toObject = function(includeInstance, msg) { + var f, obj = { + success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional int64 expiry = 3; - * @return {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.api.v1.SubmitTransactionV2Response} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.getExpiry = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.api.v1.SubmitTransactionV2Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.api.v1.SubmitTransactionV2Response; + return proto.api.v1.SubmitTransactionV2Response.deserializeBinaryFromReader(msg, reader); }; /** - * @param {number} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.api.v1.SubmitTransactionV2Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.api.v1.SubmitTransactionV2Response} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.setExpiry = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.api.v1.SubmitTransactionV2Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string nonce = 4; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.getNonce = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.api.v1.SubmitTransactionV2Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.api.v1.SubmitTransactionV2Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.api.v1.SubmitTransactionV2Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.setNonce = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.api.v1.SubmitTransactionV2Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f) { + writer.writeBool( + 1, + f + ); + } }; /** - * optional string signatures = 5; - * @return {string} + * optional bool success = 1; + * @return {boolean} */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.getSignatures = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.api.v1.SubmitTransactionV2Response.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * @param {string} value - * @return {!proto.api.v1.ERC20WithdrawalApprovalResponse} returns this + * @param {boolean} value + * @return {!proto.api.v1.SubmitTransactionV2Response} returns this */ -proto.api.v1.ERC20WithdrawalApprovalResponse.prototype.setSignatures = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.api.v1.SubmitTransactionV2Response.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -24481,8 +1028,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.DepositsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.DepositsRequest.toObject(opt_includeInstance, this); +proto.api.v1.GetVegaTimeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.GetVegaTimeRequest.toObject(opt_includeInstance, this); }; @@ -24491,13 +1038,13 @@ proto.api.v1.DepositsRequest.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.DepositsRequest} msg The msg instance to transform. + * @param {!proto.api.v1.GetVegaTimeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositsRequest.toObject = function(includeInstance, msg) { +proto.api.v1.GetVegaTimeRequest.toObject = function(includeInstance, msg) { var f, obj = { - partyId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; if (includeInstance) { @@ -24511,33 +1058,29 @@ proto.api.v1.DepositsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.DepositsRequest} + * @return {!proto.api.v1.GetVegaTimeRequest} */ -proto.api.v1.DepositsRequest.deserializeBinary = function(bytes) { +proto.api.v1.GetVegaTimeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.DepositsRequest; - return proto.api.v1.DepositsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.GetVegaTimeRequest; + return proto.api.v1.GetVegaTimeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.DepositsRequest} msg The message object to deserialize into. + * @param {!proto.api.v1.GetVegaTimeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.DepositsRequest} + * @return {!proto.api.v1.GetVegaTimeRequest} */ -proto.api.v1.DepositsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.GetVegaTimeRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; default: reader.skipField(); break; @@ -24551,9 +1094,9 @@ proto.api.v1.DepositsRequest.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.DepositsRequest.prototype.serializeBinary = function() { +proto.api.v1.GetVegaTimeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.DepositsRequest.serializeBinaryToWriter(this, writer); + proto.api.v1.GetVegaTimeRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24561,48 +1104,16 @@ proto.api.v1.DepositsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.DepositsRequest} message + * @param {!proto.api.v1.GetVegaTimeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositsRequest.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.GetVegaTimeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string party_id = 1; - * @return {string} - */ -proto.api.v1.DepositsRequest.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.DepositsRequest} returns this - */ -proto.api.v1.DepositsRequest.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.DepositsResponse.repeatedFields_ = [1]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -24618,8 +1129,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.DepositsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.DepositsResponse.toObject(opt_includeInstance, this); +proto.api.v1.GetVegaTimeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.GetVegaTimeResponse.toObject(opt_includeInstance, this); }; @@ -24628,14 +1139,13 @@ proto.api.v1.DepositsResponse.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.DepositsResponse} msg The msg instance to transform. + * @param {!proto.api.v1.GetVegaTimeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositsResponse.toObject = function(includeInstance, msg) { +proto.api.v1.GetVegaTimeResponse.toObject = function(includeInstance, msg) { var f, obj = { - depositsList: jspb.Message.toObjectList(msg.getDepositsList(), - vega_pb.Deposit.toObject, includeInstance) + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { @@ -24649,23 +1159,23 @@ proto.api.v1.DepositsResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.DepositsResponse} + * @return {!proto.api.v1.GetVegaTimeResponse} */ -proto.api.v1.DepositsResponse.deserializeBinary = function(bytes) { +proto.api.v1.GetVegaTimeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.DepositsResponse; - return proto.api.v1.DepositsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.GetVegaTimeResponse; + return proto.api.v1.GetVegaTimeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.DepositsResponse} msg The message object to deserialize into. + * @param {!proto.api.v1.GetVegaTimeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.DepositsResponse} + * @return {!proto.api.v1.GetVegaTimeResponse} */ -proto.api.v1.DepositsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.GetVegaTimeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24673,9 +1183,8 @@ proto.api.v1.DepositsResponse.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new vega_pb.Deposit; - reader.readMessage(value,vega_pb.Deposit.deserializeBinaryFromReader); - msg.addDeposits(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); break; default: reader.skipField(); @@ -24690,9 +1199,9 @@ proto.api.v1.DepositsResponse.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.DepositsResponse.prototype.serializeBinary = function() { +proto.api.v1.GetVegaTimeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.DepositsResponse.serializeBinaryToWriter(this, writer); + proto.api.v1.GetVegaTimeResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24700,61 +1209,47 @@ proto.api.v1.DepositsResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.DepositsResponse} message + * @param {!proto.api.v1.GetVegaTimeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositsResponse.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.GetVegaTimeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getDepositsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( 1, - f, - vega_pb.Deposit.serializeBinaryToWriter + f ); } }; /** - * repeated vega.Deposit deposits = 1; - * @return {!Array} + * optional int64 timestamp = 1; + * @return {number} */ -proto.api.v1.DepositsResponse.prototype.getDepositsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.Deposit, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.DepositsResponse} returns this -*/ -proto.api.v1.DepositsResponse.prototype.setDepositsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.api.v1.GetVegaTimeResponse.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {!proto.vega.Deposit=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.Deposit} + * @param {number} value + * @return {!proto.api.v1.GetVegaTimeResponse} returns this */ -proto.api.v1.DepositsResponse.prototype.addDeposits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Deposit, opt_index); +proto.api.v1.GetVegaTimeResponse.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.DepositsResponse} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.api.v1.DepositsResponse.prototype.clearDepositsList = function() { - return this.setDepositsList([]); -}; - - +proto.api.v1.ObserveEventBusRequest.repeatedFields_ = [1]; @@ -24771,8 +1266,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.DepositRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.DepositRequest.toObject(opt_includeInstance, this); +proto.api.v1.ObserveEventBusRequest.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.ObserveEventBusRequest.toObject(opt_includeInstance, this); }; @@ -24781,13 +1276,16 @@ proto.api.v1.DepositRequest.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.DepositRequest} msg The msg instance to transform. + * @param {!proto.api.v1.ObserveEventBusRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositRequest.toObject = function(includeInstance, msg) { +proto.api.v1.ObserveEventBusRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") + typeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), + partyId: jspb.Message.getFieldWithDefault(msg, 3, ""), + batchSize: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -24801,23 +1299,23 @@ proto.api.v1.DepositRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.DepositRequest} + * @return {!proto.api.v1.ObserveEventBusRequest} */ -proto.api.v1.DepositRequest.deserializeBinary = function(bytes) { +proto.api.v1.ObserveEventBusRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.DepositRequest; - return proto.api.v1.DepositRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.ObserveEventBusRequest; + return proto.api.v1.ObserveEventBusRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.DepositRequest} msg The message object to deserialize into. + * @param {!proto.api.v1.ObserveEventBusRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.DepositRequest} + * @return {!proto.api.v1.ObserveEventBusRequest} */ -proto.api.v1.DepositRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.ObserveEventBusRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24825,8 +1323,22 @@ proto.api.v1.DepositRequest.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addType(values[i]); + } + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMarketId(value); + break; + case 3: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setPartyId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBatchSize(value); break; default: reader.skipField(); @@ -24841,9 +1353,9 @@ proto.api.v1.DepositRequest.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.DepositRequest.prototype.serializeBinary = function() { +proto.api.v1.ObserveEventBusRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.DepositRequest.serializeBinaryToWriter(this, writer); + proto.api.v1.ObserveEventBusRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24851,192 +1363,142 @@ proto.api.v1.DepositRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.DepositRequest} message + * @param {!proto.api.v1.ObserveEventBusRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.DepositRequest.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.ObserveEventBusRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getTypeList(); if (f.length > 0) { - writer.writeString( + writer.writePackedEnum( 1, f ); } + f = message.getMarketId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPartyId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getBatchSize(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } }; /** - * optional string id = 1; - * @return {string} - */ -proto.api.v1.DepositRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.v1.DepositRequest} returns this - */ -proto.api.v1.DepositRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * repeated vega.events.v1.BusEventType type = 1; + * @return {!Array} */ -proto.api.v1.DepositResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.DepositResponse.toObject(opt_includeInstance, this); +proto.api.v1.ObserveEventBusRequest.prototype.getTypeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.DepositResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!Array} value + * @return {!proto.api.v1.ObserveEventBusRequest} returns this */ -proto.api.v1.DepositResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deposit: (f = msg.getDeposit()) && vega_pb.Deposit.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.api.v1.ObserveEventBusRequest.prototype.setTypeList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.DepositResponse} + * @param {!proto.vega.events.v1.BusEventType} value + * @param {number=} opt_index + * @return {!proto.api.v1.ObserveEventBusRequest} returns this */ -proto.api.v1.DepositResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.DepositResponse; - return proto.api.v1.DepositResponse.deserializeBinaryFromReader(msg, reader); +proto.api.v1.ObserveEventBusRequest.prototype.addType = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.DepositResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.DepositResponse} + * Clears the list making it empty but non-null. + * @return {!proto.api.v1.ObserveEventBusRequest} returns this */ -proto.api.v1.DepositResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new vega_pb.Deposit; - reader.readMessage(value,vega_pb.Deposit.deserializeBinaryFromReader); - msg.setDeposit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.ObserveEventBusRequest.prototype.clearTypeList = function() { + return this.setTypeList([]); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string market_id = 2; + * @return {string} */ -proto.api.v1.DepositResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.DepositResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.ObserveEventBusRequest.prototype.getMarketId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.DepositResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.api.v1.ObserveEventBusRequest} returns this */ -proto.api.v1.DepositResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeposit(); - if (f != null) { - writer.writeMessage( - 1, - f, - vega_pb.Deposit.serializeBinaryToWriter - ); - } +proto.api.v1.ObserveEventBusRequest.prototype.setMarketId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional vega.Deposit deposit = 1; - * @return {?proto.vega.Deposit} + * optional string party_id = 3; + * @return {string} */ -proto.api.v1.DepositResponse.prototype.getDeposit = function() { - return /** @type{?proto.vega.Deposit} */ ( - jspb.Message.getWrapperField(this, vega_pb.Deposit, 1)); +proto.api.v1.ObserveEventBusRequest.prototype.getPartyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.vega.Deposit|undefined} value - * @return {!proto.api.v1.DepositResponse} returns this -*/ -proto.api.v1.DepositResponse.prototype.setDeposit = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.api.v1.ObserveEventBusRequest} returns this + */ +proto.api.v1.ObserveEventBusRequest.prototype.setPartyId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.api.v1.DepositResponse} returns this + * optional int64 batch_size = 4; + * @return {number} */ -proto.api.v1.DepositResponse.prototype.clearDeposit = function() { - return this.setDeposit(undefined); +proto.api.v1.ObserveEventBusRequest.prototype.getBatchSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.api.v1.ObserveEventBusRequest} returns this */ -proto.api.v1.DepositResponse.prototype.hasDeposit = function() { - return jspb.Message.getField(this, 1) != null; +proto.api.v1.ObserveEventBusRequest.prototype.setBatchSize = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.api.v1.ObserveEventBusResponse.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -25052,8 +1514,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.NetworkParametersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.NetworkParametersRequest.toObject(opt_includeInstance, this); +proto.api.v1.ObserveEventBusResponse.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.ObserveEventBusResponse.toObject(opt_includeInstance, this); }; @@ -25062,13 +1524,14 @@ proto.api.v1.NetworkParametersRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.NetworkParametersRequest} msg The msg instance to transform. + * @param {!proto.api.v1.ObserveEventBusResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.NetworkParametersRequest.toObject = function(includeInstance, msg) { +proto.api.v1.ObserveEventBusResponse.toObject = function(includeInstance, msg) { var f, obj = { - + eventsList: jspb.Message.toObjectList(msg.getEventsList(), + events_v1_events_pb.BusEvent.toObject, includeInstance) }; if (includeInstance) { @@ -25082,29 +1545,34 @@ proto.api.v1.NetworkParametersRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.NetworkParametersRequest} + * @return {!proto.api.v1.ObserveEventBusResponse} */ -proto.api.v1.NetworkParametersRequest.deserializeBinary = function(bytes) { +proto.api.v1.ObserveEventBusResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.NetworkParametersRequest; - return proto.api.v1.NetworkParametersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.ObserveEventBusResponse; + return proto.api.v1.ObserveEventBusResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.NetworkParametersRequest} msg The message object to deserialize into. + * @param {!proto.api.v1.ObserveEventBusResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.NetworkParametersRequest} + * @return {!proto.api.v1.ObserveEventBusResponse} */ -proto.api.v1.NetworkParametersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.ObserveEventBusResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new events_v1_events_pb.BusEvent; + reader.readMessage(value,events_v1_events_pb.BusEvent.deserializeBinaryFromReader); + msg.addEvents(value); + break; default: reader.skipField(); break; @@ -25118,9 +1586,9 @@ proto.api.v1.NetworkParametersRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.NetworkParametersRequest.prototype.serializeBinary = function() { +proto.api.v1.ObserveEventBusResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.NetworkParametersRequest.serializeBinaryToWriter(this, writer); + proto.api.v1.ObserveEventBusResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25128,22 +1596,61 @@ proto.api.v1.NetworkParametersRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.NetworkParametersRequest} message + * @param {!proto.api.v1.ObserveEventBusResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.NetworkParametersRequest.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.ObserveEventBusResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getEventsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + events_v1_events_pb.BusEvent.serializeBinaryToWriter + ); + } }; +/** + * repeated vega.events.v1.BusEvent events = 1; + * @return {!Array} + */ +proto.api.v1.ObserveEventBusResponse.prototype.getEventsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, events_v1_events_pb.BusEvent, 1)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!Array} value + * @return {!proto.api.v1.ObserveEventBusResponse} returns this +*/ +proto.api.v1.ObserveEventBusResponse.prototype.setEventsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.events.v1.BusEvent=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.events.v1.BusEvent} + */ +proto.api.v1.ObserveEventBusResponse.prototype.addEvents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.events.v1.BusEvent, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.api.v1.ObserveEventBusResponse} returns this */ -proto.api.v1.NetworkParametersResponse.repeatedFields_ = [1]; +proto.api.v1.ObserveEventBusResponse.prototype.clearEventsList = function() { + return this.setEventsList([]); +}; + + @@ -25160,8 +1667,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.NetworkParametersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.NetworkParametersResponse.toObject(opt_includeInstance, this); +proto.api.v1.StatisticsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.StatisticsRequest.toObject(opt_includeInstance, this); }; @@ -25170,14 +1677,13 @@ proto.api.v1.NetworkParametersResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.NetworkParametersResponse} msg The msg instance to transform. + * @param {!proto.api.v1.StatisticsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.NetworkParametersResponse.toObject = function(includeInstance, msg) { +proto.api.v1.StatisticsRequest.toObject = function(includeInstance, msg) { var f, obj = { - networkParametersList: jspb.Message.toObjectList(msg.getNetworkParametersList(), - vega_pb.NetworkParameter.toObject, includeInstance) + }; if (includeInstance) { @@ -25191,34 +1697,29 @@ proto.api.v1.NetworkParametersResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.NetworkParametersResponse} + * @return {!proto.api.v1.StatisticsRequest} */ -proto.api.v1.NetworkParametersResponse.deserializeBinary = function(bytes) { +proto.api.v1.StatisticsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.NetworkParametersResponse; - return proto.api.v1.NetworkParametersResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.StatisticsRequest; + return proto.api.v1.StatisticsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.NetworkParametersResponse} msg The message object to deserialize into. + * @param {!proto.api.v1.StatisticsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.NetworkParametersResponse} + * @return {!proto.api.v1.StatisticsRequest} */ -proto.api.v1.NetworkParametersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.StatisticsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new vega_pb.NetworkParameter; - reader.readMessage(value,vega_pb.NetworkParameter.deserializeBinaryFromReader); - msg.addNetworkParameters(value); - break; default: reader.skipField(); break; @@ -25232,9 +1733,9 @@ proto.api.v1.NetworkParametersResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.NetworkParametersResponse.prototype.serializeBinary = function() { +proto.api.v1.StatisticsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.NetworkParametersResponse.serializeBinaryToWriter(this, writer); + proto.api.v1.StatisticsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25242,58 +1743,12 @@ proto.api.v1.NetworkParametersResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.NetworkParametersResponse} message + * @param {!proto.api.v1.StatisticsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.NetworkParametersResponse.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.StatisticsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNetworkParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.NetworkParameter.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated vega.NetworkParameter network_parameters = 1; - * @return {!Array} - */ -proto.api.v1.NetworkParametersResponse.prototype.getNetworkParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.NetworkParameter, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.v1.NetworkParametersResponse} returns this -*/ -proto.api.v1.NetworkParametersResponse.prototype.setNetworkParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.vega.NetworkParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.NetworkParameter} - */ -proto.api.v1.NetworkParametersResponse.prototype.addNetworkParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.NetworkParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.NetworkParametersResponse} returns this - */ -proto.api.v1.NetworkParametersResponse.prototype.clearNetworkParametersList = function() { - return this.setNetworkParametersList([]); }; @@ -25313,8 +1768,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.LiquidityProvisionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.LiquidityProvisionsRequest.toObject(opt_includeInstance, this); +proto.api.v1.StatisticsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.StatisticsResponse.toObject(opt_includeInstance, this); }; @@ -25323,14 +1778,13 @@ proto.api.v1.LiquidityProvisionsRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.LiquidityProvisionsRequest} msg The msg instance to transform. + * @param {!proto.api.v1.StatisticsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.LiquidityProvisionsRequest.toObject = function(includeInstance, msg) { +proto.api.v1.StatisticsResponse.toObject = function(includeInstance, msg) { var f, obj = { - market: jspb.Message.getFieldWithDefault(msg, 1, ""), - party: jspb.Message.getFieldWithDefault(msg, 2, "") + statistics: (f = msg.getStatistics()) && proto.api.v1.Statistics.toObject(includeInstance, f) }; if (includeInstance) { @@ -25344,23 +1798,23 @@ proto.api.v1.LiquidityProvisionsRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.LiquidityProvisionsRequest} + * @return {!proto.api.v1.StatisticsResponse} */ -proto.api.v1.LiquidityProvisionsRequest.deserializeBinary = function(bytes) { +proto.api.v1.StatisticsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.LiquidityProvisionsRequest; - return proto.api.v1.LiquidityProvisionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.StatisticsResponse; + return proto.api.v1.StatisticsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.LiquidityProvisionsRequest} msg The message object to deserialize into. + * @param {!proto.api.v1.StatisticsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.LiquidityProvisionsRequest} + * @return {!proto.api.v1.StatisticsResponse} */ -proto.api.v1.LiquidityProvisionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.StatisticsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25368,12 +1822,9 @@ proto.api.v1.LiquidityProvisionsRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMarket(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setParty(value); + var value = new proto.api.v1.Statistics; + reader.readMessage(value,proto.api.v1.Statistics.deserializeBinaryFromReader); + msg.setStatistics(value); break; default: reader.skipField(); @@ -25388,9 +1839,9 @@ proto.api.v1.LiquidityProvisionsRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.api.v1.LiquidityProvisionsRequest.prototype.serializeBinary = function() { +proto.api.v1.StatisticsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.api.v1.LiquidityProvisionsRequest.serializeBinaryToWriter(this, writer); + proto.api.v1.StatisticsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25398,73 +1849,61 @@ proto.api.v1.LiquidityProvisionsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.LiquidityProvisionsRequest} message + * @param {!proto.api.v1.StatisticsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.LiquidityProvisionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.api.v1.StatisticsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMarket(); - if (f.length > 0) { - writer.writeString( + f = message.getStatistics(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getParty(); - if (f.length > 0) { - writer.writeString( - 2, - f + f, + proto.api.v1.Statistics.serializeBinaryToWriter ); } }; /** - * optional string market = 1; - * @return {string} + * optional Statistics statistics = 1; + * @return {?proto.api.v1.Statistics} */ -proto.api.v1.LiquidityProvisionsRequest.prototype.getMarket = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.api.v1.StatisticsResponse.prototype.getStatistics = function() { + return /** @type{?proto.api.v1.Statistics} */ ( + jspb.Message.getWrapperField(this, proto.api.v1.Statistics, 1)); }; /** - * @param {string} value - * @return {!proto.api.v1.LiquidityProvisionsRequest} returns this - */ -proto.api.v1.LiquidityProvisionsRequest.prototype.setMarket = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + * @param {?proto.api.v1.Statistics|undefined} value + * @return {!proto.api.v1.StatisticsResponse} returns this +*/ +proto.api.v1.StatisticsResponse.prototype.setStatistics = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional string party = 2; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.api.v1.StatisticsResponse} returns this */ -proto.api.v1.LiquidityProvisionsRequest.prototype.getParty = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.api.v1.StatisticsResponse.prototype.clearStatistics = function() { + return this.setStatistics(undefined); }; /** - * @param {string} value - * @return {!proto.api.v1.LiquidityProvisionsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.api.v1.LiquidityProvisionsRequest.prototype.setParty = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.api.v1.StatisticsResponse.prototype.hasStatistics = function() { + return jspb.Message.getField(this, 1) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.v1.LiquidityProvisionsResponse.repeatedFields_ = [1]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -25480,8 +1919,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.api.v1.LiquidityProvisionsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.LiquidityProvisionsResponse.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.toObject = function(opt_includeInstance) { + return proto.api.v1.Statistics.toObject(opt_includeInstance, this); }; @@ -25490,14 +1929,44 @@ proto.api.v1.LiquidityProvisionsResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.api.v1.LiquidityProvisionsResponse} msg The msg instance to transform. + * @param {!proto.api.v1.Statistics} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.api.v1.LiquidityProvisionsResponse.toObject = function(includeInstance, msg) { +proto.api.v1.Statistics.toObject = function(includeInstance, msg) { var f, obj = { - liquidityProvisionsList: jspb.Message.toObjectList(msg.getLiquidityProvisionsList(), - vega_pb.LiquidityProvision.toObject, includeInstance) + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + backlogLength: jspb.Message.getFieldWithDefault(msg, 2, 0), + totalPeers: jspb.Message.getFieldWithDefault(msg, 3, 0), + genesisTime: jspb.Message.getFieldWithDefault(msg, 4, ""), + currentTime: jspb.Message.getFieldWithDefault(msg, 5, ""), + vegaTime: jspb.Message.getFieldWithDefault(msg, 6, ""), + status: jspb.Message.getFieldWithDefault(msg, 7, 0), + txPerBlock: jspb.Message.getFieldWithDefault(msg, 8, 0), + averageTxBytes: jspb.Message.getFieldWithDefault(msg, 9, 0), + averageOrdersPerBlock: jspb.Message.getFieldWithDefault(msg, 10, 0), + tradesPerSecond: jspb.Message.getFieldWithDefault(msg, 11, 0), + ordersPerSecond: jspb.Message.getFieldWithDefault(msg, 12, 0), + totalMarkets: jspb.Message.getFieldWithDefault(msg, 13, 0), + totalAmendOrder: jspb.Message.getFieldWithDefault(msg, 16, 0), + totalCancelOrder: jspb.Message.getFieldWithDefault(msg, 17, 0), + totalCreateOrder: jspb.Message.getFieldWithDefault(msg, 18, 0), + totalOrders: jspb.Message.getFieldWithDefault(msg, 19, 0), + totalTrades: jspb.Message.getFieldWithDefault(msg, 20, 0), + orderSubscriptions: jspb.Message.getFieldWithDefault(msg, 21, 0), + tradeSubscriptions: jspb.Message.getFieldWithDefault(msg, 22, 0), + candleSubscriptions: jspb.Message.getFieldWithDefault(msg, 23, 0), + marketDepthSubscriptions: jspb.Message.getFieldWithDefault(msg, 24, 0), + positionsSubscriptions: jspb.Message.getFieldWithDefault(msg, 25, 0), + accountSubscriptions: jspb.Message.getFieldWithDefault(msg, 26, 0), + marketDataSubscriptions: jspb.Message.getFieldWithDefault(msg, 27, 0), + appVersionHash: jspb.Message.getFieldWithDefault(msg, 28, ""), + appVersion: jspb.Message.getFieldWithDefault(msg, 29, ""), + chainVersion: jspb.Message.getFieldWithDefault(msg, 30, ""), + blockDuration: jspb.Message.getFieldWithDefault(msg, 31, 0), + uptime: jspb.Message.getFieldWithDefault(msg, 32, ""), + chainId: jspb.Message.getFieldWithDefault(msg, 33, ""), + marketDepthUpdatesSubscriptions: jspb.Message.getFieldWithDefault(msg, 34, 0) }; if (includeInstance) { @@ -25511,23 +1980,23 @@ proto.api.v1.LiquidityProvisionsResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.LiquidityProvisionsResponse} + * @return {!proto.api.v1.Statistics} */ -proto.api.v1.LiquidityProvisionsResponse.deserializeBinary = function(bytes) { +proto.api.v1.Statistics.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.LiquidityProvisionsResponse; - return proto.api.v1.LiquidityProvisionsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.api.v1.Statistics; + return proto.api.v1.Statistics.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.api.v1.LiquidityProvisionsResponse} msg The message object to deserialize into. + * @param {!proto.api.v1.Statistics} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.LiquidityProvisionsResponse} + * @return {!proto.api.v1.Statistics} */ -proto.api.v1.LiquidityProvisionsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.api.v1.Statistics.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25535,917 +2004,962 @@ proto.api.v1.LiquidityProvisionsResponse.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new vega_pb.LiquidityProvision; - reader.readMessage(value,vega_pb.LiquidityProvision.deserializeBinaryFromReader); - msg.addLiquidityProvisions(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlockHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBacklogLength(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalPeers(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setGenesisTime(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrentTime(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setVegaTime(value); + break; + case 7: + var value = /** @type {!proto.vega.ChainStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTxPerBlock(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAverageTxBytes(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAverageOrdersPerBlock(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTradesPerSecond(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setOrdersPerSecond(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalMarkets(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalAmendOrder(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalCancelOrder(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalCreateOrder(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalOrders(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalTrades(value); + break; + case 21: + var value = /** @type {number} */ (reader.readUint32()); + msg.setOrderSubscriptions(value); + break; + case 22: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTradeSubscriptions(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCandleSubscriptions(value); + break; + case 24: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMarketDepthSubscriptions(value); + break; + case 25: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPositionsSubscriptions(value); + break; + case 26: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAccountSubscriptions(value); + break; + case 27: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMarketDataSubscriptions(value); + break; + case 28: + var value = /** @type {string} */ (reader.readString()); + msg.setAppVersionHash(value); + break; + case 29: + var value = /** @type {string} */ (reader.readString()); + msg.setAppVersion(value); + break; + case 30: + var value = /** @type {string} */ (reader.readString()); + msg.setChainVersion(value); + break; + case 31: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlockDuration(value); + break; + case 32: + var value = /** @type {string} */ (reader.readString()); + msg.setUptime(value); + break; + case 33: + var value = /** @type {string} */ (reader.readString()); + msg.setChainId(value); + break; + case 34: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMarketDepthUpdatesSubscriptions(value); break; default: reader.skipField(); break; } } - return msg; + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.api.v1.Statistics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.api.v1.Statistics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.api.v1.Statistics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.api.v1.Statistics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getBacklogLength(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getTotalPeers(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getGenesisTime(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getCurrentTime(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getVegaTime(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 7, + f + ); + } + f = message.getTxPerBlock(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getAverageTxBytes(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getAverageOrdersPerBlock(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } + f = message.getTradesPerSecond(); + if (f !== 0) { + writer.writeUint64( + 11, + f + ); + } + f = message.getOrdersPerSecond(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getTotalMarkets(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } + f = message.getTotalAmendOrder(); + if (f !== 0) { + writer.writeUint64( + 16, + f + ); + } + f = message.getTotalCancelOrder(); + if (f !== 0) { + writer.writeUint64( + 17, + f + ); + } + f = message.getTotalCreateOrder(); + if (f !== 0) { + writer.writeUint64( + 18, + f + ); + } + f = message.getTotalOrders(); + if (f !== 0) { + writer.writeUint64( + 19, + f + ); + } + f = message.getTotalTrades(); + if (f !== 0) { + writer.writeUint64( + 20, + f + ); + } + f = message.getOrderSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 21, + f + ); + } + f = message.getTradeSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 22, + f + ); + } + f = message.getCandleSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 23, + f + ); + } + f = message.getMarketDepthSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 24, + f + ); + } + f = message.getPositionsSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 25, + f + ); + } + f = message.getAccountSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 26, + f + ); + } + f = message.getMarketDataSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 27, + f + ); + } + f = message.getAppVersionHash(); + if (f.length > 0) { + writer.writeString( + 28, + f + ); + } + f = message.getAppVersion(); + if (f.length > 0) { + writer.writeString( + 29, + f + ); + } + f = message.getChainVersion(); + if (f.length > 0) { + writer.writeString( + 30, + f + ); + } + f = message.getBlockDuration(); + if (f !== 0) { + writer.writeUint64( + 31, + f + ); + } + f = message.getUptime(); + if (f.length > 0) { + writer.writeString( + 32, + f + ); + } + f = message.getChainId(); + if (f.length > 0) { + writer.writeString( + 33, + f + ); + } + f = message.getMarketDepthUpdatesSubscriptions(); + if (f !== 0) { + writer.writeUint32( + 34, + f + ); + } }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint64 block_height = 1; + * @return {number} */ -proto.api.v1.LiquidityProvisionsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.LiquidityProvisionsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.LiquidityProvisionsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.LiquidityProvisionsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLiquidityProvisionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - vega_pb.LiquidityProvision.serializeBinaryToWriter - ); - } +proto.api.v1.Statistics.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * repeated vega.LiquidityProvision liquidity_provisions = 1; - * @return {!Array} + * optional uint64 backlog_length = 2; + * @return {number} */ -proto.api.v1.LiquidityProvisionsResponse.prototype.getLiquidityProvisionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, vega_pb.LiquidityProvision, 1)); +proto.api.v1.Statistics.prototype.getBacklogLength = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!Array} value - * @return {!proto.api.v1.LiquidityProvisionsResponse} returns this -*/ -proto.api.v1.LiquidityProvisionsResponse.prototype.setLiquidityProvisionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setBacklogLength = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {!proto.vega.LiquidityProvision=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.LiquidityProvision} + * optional uint64 total_peers = 3; + * @return {number} */ -proto.api.v1.LiquidityProvisionsResponse.prototype.addLiquidityProvisions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.LiquidityProvision, opt_index); +proto.api.v1.Statistics.prototype.getTotalPeers = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.LiquidityProvisionsResponse} returns this + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.LiquidityProvisionsResponse.prototype.clearLiquidityProvisionsList = function() { - return this.setLiquidityProvisionsList([]); +proto.api.v1.Statistics.prototype.setTotalPeers = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional string genesis_time = 4; + * @return {string} */ -proto.api.v1.OracleSpecRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleSpecRequest.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.getGenesisTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleSpecRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.api.v1.Statistics.prototype.setGenesisTime = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleSpecRequest} + * optional string current_time = 5; + * @return {string} */ -proto.api.v1.OracleSpecRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleSpecRequest; - return proto.api.v1.OracleSpecRequest.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.getCurrentTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleSpecRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleSpecRequest} + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.Statistics.prototype.setCurrentTime = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string vega_time = 6; + * @return {string} */ -proto.api.v1.OracleSpecRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleSpecRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getVegaTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleSpecRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.api.v1.Statistics.prototype.setVegaTime = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional string id = 1; - * @return {string} + * optional vega.ChainStatus status = 7; + * @return {!proto.vega.ChainStatus} */ -proto.api.v1.OracleSpecRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.api.v1.Statistics.prototype.getStatus = function() { + return /** @type {!proto.vega.ChainStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** - * @param {string} value - * @return {!proto.api.v1.OracleSpecRequest} returns this + * @param {!proto.vega.ChainStatus} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.api.v1.Statistics.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional uint64 tx_per_block = 8; + * @return {number} */ -proto.api.v1.OracleSpecResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleSpecResponse.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.getTxPerBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleSpecResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecResponse.toObject = function(includeInstance, msg) { - var f, obj = { - oracleSpec: (f = msg.getOracleSpec()) && oracles_v1_spec_pb.OracleSpec.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.api.v1.Statistics.prototype.setTxPerBlock = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleSpecResponse} + * optional uint64 average_tx_bytes = 9; + * @return {number} */ -proto.api.v1.OracleSpecResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleSpecResponse; - return proto.api.v1.OracleSpecResponse.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.getAverageTxBytes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleSpecResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleSpecResponse} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracles_v1_spec_pb.OracleSpec; - reader.readMessage(value,oracles_v1_spec_pb.OracleSpec.deserializeBinaryFromReader); - msg.setOracleSpec(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.Statistics.prototype.setAverageTxBytes = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint64 average_orders_per_block = 10; + * @return {number} */ -proto.api.v1.OracleSpecResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleSpecResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getAverageOrdersPerBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleSpecResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleSpec(); - if (f != null) { - writer.writeMessage( - 1, - f, - oracles_v1_spec_pb.OracleSpec.serializeBinaryToWriter - ); - } +proto.api.v1.Statistics.prototype.setAverageOrdersPerBlock = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * optional oracles.v1.OracleSpec oracle_spec = 1; - * @return {?proto.oracles.v1.OracleSpec} + * optional uint64 trades_per_second = 11; + * @return {number} */ -proto.api.v1.OracleSpecResponse.prototype.getOracleSpec = function() { - return /** @type{?proto.oracles.v1.OracleSpec} */ ( - jspb.Message.getWrapperField(this, oracles_v1_spec_pb.OracleSpec, 1)); +proto.api.v1.Statistics.prototype.getTradesPerSecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; /** - * @param {?proto.oracles.v1.OracleSpec|undefined} value - * @return {!proto.api.v1.OracleSpecResponse} returns this -*/ -proto.api.v1.OracleSpecResponse.prototype.setOracleSpec = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setTradesPerSecond = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.api.v1.OracleSpecResponse} returns this + * optional uint64 orders_per_second = 12; + * @return {number} */ -proto.api.v1.OracleSpecResponse.prototype.clearOracleSpec = function() { - return this.setOracleSpec(undefined); +proto.api.v1.Statistics.prototype.getOrdersPerSecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecResponse.prototype.hasOracleSpec = function() { - return jspb.Message.getField(this, 1) != null; +proto.api.v1.Statistics.prototype.setOrdersPerSecond = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional uint64 total_markets = 13; + * @return {number} */ -proto.api.v1.OracleSpecsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleSpecsRequest.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.getTotalMarkets = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleSpecsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsRequest.toObject = function(includeInstance, msg) { - var f, obj = { +proto.api.v1.Statistics.prototype.setTotalMarkets = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; - }; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +/** + * optional uint64 total_amend_order = 16; + * @return {number} + */ +proto.api.v1.Statistics.prototype.getTotalAmendOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleSpecsRequest} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleSpecsRequest; - return proto.api.v1.OracleSpecsRequest.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.setTotalAmendOrder = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleSpecsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleSpecsRequest} - */ -proto.api.v1.OracleSpecsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; + * optional uint64 total_cancel_order = 17; + * @return {number} + */ +proto.api.v1.Statistics.prototype.getTotalCancelOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleSpecsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.setTotalCancelOrder = function(value) { + return jspb.Message.setProto3IntField(this, 17, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleSpecsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 total_create_order = 18; + * @return {number} */ -proto.api.v1.OracleSpecsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.api.v1.Statistics.prototype.getTotalCreateOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsResponse.repeatedFields_ = [1]; - +proto.api.v1.Statistics.prototype.setTotalCreateOrder = function(value) { + return jspb.Message.setProto3IntField(this, 18, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional uint64 total_orders = 19; + * @return {number} */ -proto.api.v1.OracleSpecsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleSpecsResponse.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.getTotalOrders = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleSpecsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - oracleSpecsList: jspb.Message.toObjectList(msg.getOracleSpecsList(), - oracles_v1_spec_pb.OracleSpec.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.api.v1.Statistics.prototype.setTotalOrders = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleSpecsResponse} + * optional uint64 total_trades = 20; + * @return {number} */ -proto.api.v1.OracleSpecsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleSpecsResponse; - return proto.api.v1.OracleSpecsResponse.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.getTotalTrades = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleSpecsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleSpecsResponse} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracles_v1_spec_pb.OracleSpec; - reader.readMessage(value,oracles_v1_spec_pb.OracleSpec.deserializeBinaryFromReader); - msg.addOracleSpecs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.Statistics.prototype.setTotalTrades = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint32 order_subscriptions = 21; + * @return {number} */ -proto.api.v1.OracleSpecsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleSpecsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getOrderSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleSpecsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleSpecsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - oracles_v1_spec_pb.OracleSpec.serializeBinaryToWriter - ); - } +proto.api.v1.Statistics.prototype.setOrderSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 21, value); }; /** - * repeated oracles.v1.OracleSpec oracle_specs = 1; - * @return {!Array} + * optional uint32 trade_subscriptions = 22; + * @return {number} */ -proto.api.v1.OracleSpecsResponse.prototype.getOracleSpecsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracles_v1_spec_pb.OracleSpec, 1)); +proto.api.v1.Statistics.prototype.getTradeSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); }; /** - * @param {!Array} value - * @return {!proto.api.v1.OracleSpecsResponse} returns this -*/ -proto.api.v1.OracleSpecsResponse.prototype.setOracleSpecsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setTradeSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 22, value); }; /** - * @param {!proto.oracles.v1.OracleSpec=} opt_value - * @param {number=} opt_index - * @return {!proto.oracles.v1.OracleSpec} + * optional uint32 candle_subscriptions = 23; + * @return {number} */ -proto.api.v1.OracleSpecsResponse.prototype.addOracleSpecs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.oracles.v1.OracleSpec, opt_index); +proto.api.v1.Statistics.prototype.getCandleSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OracleSpecsResponse} returns this + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleSpecsResponse.prototype.clearOracleSpecsList = function() { - return this.setOracleSpecsList([]); +proto.api.v1.Statistics.prototype.setCandleSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); }; +/** + * optional uint32 market_depth_subscriptions = 24; + * @return {number} + */ +proto.api.v1.Statistics.prototype.getMarketDepthSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleDataBySpecRequest.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.setMarketDepthSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 24, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleDataBySpecRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint32 positions_subscriptions = 25; + * @return {number} */ -proto.api.v1.OracleDataBySpecRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; +proto.api.v1.Statistics.prototype.getPositionsSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setPositionsSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 25, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleDataBySpecRequest} + * optional uint32 account_subscriptions = 26; + * @return {number} */ -proto.api.v1.OracleDataBySpecRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleDataBySpecRequest; - return proto.api.v1.OracleDataBySpecRequest.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.getAccountSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleDataBySpecRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleDataBySpecRequest} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.Statistics.prototype.setAccountSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 26, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint32 market_data_subscriptions = 27; + * @return {number} */ -proto.api.v1.OracleDataBySpecRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleDataBySpecRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getMarketDataSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleDataBySpecRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.api.v1.Statistics.prototype.setMarketDataSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 27, value); }; /** - * optional string id = 1; + * optional string app_version_hash = 28; * @return {string} */ -proto.api.v1.OracleDataBySpecRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.api.v1.Statistics.prototype.getAppVersionHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "")); }; /** * @param {string} value - * @return {!proto.api.v1.OracleDataBySpecRequest} returns this + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.api.v1.Statistics.prototype.setAppVersionHash = function(value) { + return jspb.Message.setProto3StringField(this, 28, value); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional string app_version = 29; + * @return {string} */ -proto.api.v1.OracleDataBySpecResponse.repeatedFields_ = [1]; - +proto.api.v1.Statistics.prototype.getAppVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.v1.OracleDataBySpecResponse.toObject(opt_includeInstance, this); +proto.api.v1.Statistics.prototype.setAppVersion = function(value) { + return jspb.Message.setProto3StringField(this, 29, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.v1.OracleDataBySpecResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string chain_version = 30; + * @return {string} */ -proto.api.v1.OracleDataBySpecResponse.toObject = function(includeInstance, msg) { - var f, obj = { - oracleDataList: jspb.Message.toObjectList(msg.getOracleDataList(), - oracles_v1_data_pb.OracleData.toObject, includeInstance) - }; +proto.api.v1.Statistics.prototype.getChainVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, "")); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setChainVersion = function(value) { + return jspb.Message.setProto3StringField(this, 30, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.v1.OracleDataBySpecResponse} + * optional uint64 block_duration = 31; + * @return {number} */ -proto.api.v1.OracleDataBySpecResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.v1.OracleDataBySpecResponse; - return proto.api.v1.OracleDataBySpecResponse.deserializeBinaryFromReader(msg, reader); +proto.api.v1.Statistics.prototype.getBlockDuration = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.v1.OracleDataBySpecResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.v1.OracleDataBySpecResponse} + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracles_v1_data_pb.OracleData; - reader.readMessage(value,oracles_v1_data_pb.OracleData.deserializeBinaryFromReader); - msg.addOracleData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.api.v1.Statistics.prototype.setBlockDuration = function(value) { + return jspb.Message.setProto3IntField(this, 31, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string uptime = 32; + * @return {string} */ -proto.api.v1.OracleDataBySpecResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.v1.OracleDataBySpecResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.api.v1.Statistics.prototype.getUptime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.v1.OracleDataBySpecResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - oracles_v1_data_pb.OracleData.serializeBinaryToWriter - ); - } +proto.api.v1.Statistics.prototype.setUptime = function(value) { + return jspb.Message.setProto3StringField(this, 32, value); }; /** - * repeated oracles.v1.OracleData oracle_data = 1; - * @return {!Array} + * optional string chain_id = 33; + * @return {string} */ -proto.api.v1.OracleDataBySpecResponse.prototype.getOracleDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracles_v1_data_pb.OracleData, 1)); +proto.api.v1.Statistics.prototype.getChainId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); }; /** - * @param {!Array} value - * @return {!proto.api.v1.OracleDataBySpecResponse} returns this -*/ -proto.api.v1.OracleDataBySpecResponse.prototype.setOracleDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.api.v1.Statistics} returns this + */ +proto.api.v1.Statistics.prototype.setChainId = function(value) { + return jspb.Message.setProto3StringField(this, 33, value); }; /** - * @param {!proto.oracles.v1.OracleData=} opt_value - * @param {number=} opt_index - * @return {!proto.oracles.v1.OracleData} + * optional uint32 market_depth_updates_subscriptions = 34; + * @return {number} */ -proto.api.v1.OracleDataBySpecResponse.prototype.addOracleData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.oracles.v1.OracleData, opt_index); +proto.api.v1.Statistics.prototype.getMarketDepthUpdatesSubscriptions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.api.v1.OracleDataBySpecResponse} returns this + * @param {number} value + * @return {!proto.api.v1.Statistics} returns this */ -proto.api.v1.OracleDataBySpecResponse.prototype.clearOracleDataList = function() { - return this.setOracleDataList([]); +proto.api.v1.Statistics.prototype.setMarketDepthUpdatesSubscriptions = function(value) { + return jspb.Message.setProto3IntField(this, 34, value); }; diff --git a/grpc/clients/js/generated/api/trading_pb_service.d.ts b/grpc/clients/js/generated/api/trading_pb_service.d.ts deleted file mode 100644 index 434323f1..00000000 --- a/grpc/clients/js/generated/api/trading_pb_service.d.ts +++ /dev/null @@ -1,1359 +0,0 @@ -// package: api.v1 -// file: api/trading.proto - -import * as api_trading_pb from "../api/trading_pb"; -import {grpc} from "@improbable-eng/grpc-web"; - -type TradingServicePrepareSubmitOrder = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareSubmitOrderRequest; - readonly responseType: typeof api_trading_pb.PrepareSubmitOrderResponse; -}; - -type TradingServicePrepareCancelOrder = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareCancelOrderRequest; - readonly responseType: typeof api_trading_pb.PrepareCancelOrderResponse; -}; - -type TradingServicePrepareAmendOrder = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareAmendOrderRequest; - readonly responseType: typeof api_trading_pb.PrepareAmendOrderResponse; -}; - -type TradingServicePrepareWithdraw = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareWithdrawRequest; - readonly responseType: typeof api_trading_pb.PrepareWithdrawResponse; -}; - -type TradingServiceSubmitTransaction = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.SubmitTransactionRequest; - readonly responseType: typeof api_trading_pb.SubmitTransactionResponse; -}; - -type TradingServiceSubmitTransactionV2 = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.SubmitTransactionV2Request; - readonly responseType: typeof api_trading_pb.SubmitTransactionV2Response; -}; - -type TradingServicePrepareProposalSubmission = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareProposalSubmissionRequest; - readonly responseType: typeof api_trading_pb.PrepareProposalSubmissionResponse; -}; - -type TradingServicePrepareVoteSubmission = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareVoteSubmissionRequest; - readonly responseType: typeof api_trading_pb.PrepareVoteSubmissionResponse; -}; - -type TradingServicePropagateChainEvent = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PropagateChainEventRequest; - readonly responseType: typeof api_trading_pb.PropagateChainEventResponse; -}; - -type TradingServicePrepareLiquidityProvision = { - readonly methodName: string; - readonly service: typeof TradingService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PrepareLiquidityProvisionRequest; - readonly responseType: typeof api_trading_pb.PrepareLiquidityProvisionResponse; -}; - -export class TradingService { - static readonly serviceName: string; - static readonly PrepareSubmitOrder: TradingServicePrepareSubmitOrder; - static readonly PrepareCancelOrder: TradingServicePrepareCancelOrder; - static readonly PrepareAmendOrder: TradingServicePrepareAmendOrder; - static readonly PrepareWithdraw: TradingServicePrepareWithdraw; - static readonly SubmitTransaction: TradingServiceSubmitTransaction; - static readonly SubmitTransactionV2: TradingServiceSubmitTransactionV2; - static readonly PrepareProposalSubmission: TradingServicePrepareProposalSubmission; - static readonly PrepareVoteSubmission: TradingServicePrepareVoteSubmission; - static readonly PropagateChainEvent: TradingServicePropagateChainEvent; - static readonly PrepareLiquidityProvision: TradingServicePrepareLiquidityProvision; -} - -type TradingDataServiceMarketAccounts = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketAccountsRequest; - readonly responseType: typeof api_trading_pb.MarketAccountsResponse; -}; - -type TradingDataServicePartyAccounts = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PartyAccountsRequest; - readonly responseType: typeof api_trading_pb.PartyAccountsResponse; -}; - -type TradingDataServiceFeeInfrastructureAccounts = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.FeeInfrastructureAccountsRequest; - readonly responseType: typeof api_trading_pb.FeeInfrastructureAccountsResponse; -}; - -type TradingDataServiceCandles = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.CandlesRequest; - readonly responseType: typeof api_trading_pb.CandlesResponse; -}; - -type TradingDataServiceMarketDataByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketDataByIDRequest; - readonly responseType: typeof api_trading_pb.MarketDataByIDResponse; -}; - -type TradingDataServiceMarketsData = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketsDataRequest; - readonly responseType: typeof api_trading_pb.MarketsDataResponse; -}; - -type TradingDataServiceMarketByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketByIDRequest; - readonly responseType: typeof api_trading_pb.MarketByIDResponse; -}; - -type TradingDataServiceMarketDepth = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketDepthRequest; - readonly responseType: typeof api_trading_pb.MarketDepthResponse; -}; - -type TradingDataServiceMarkets = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarketsRequest; - readonly responseType: typeof api_trading_pb.MarketsResponse; -}; - -type TradingDataServiceOrderByMarketAndID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrderByMarketAndIDRequest; - readonly responseType: typeof api_trading_pb.OrderByMarketAndIDResponse; -}; - -type TradingDataServiceOrderByReference = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrderByReferenceRequest; - readonly responseType: typeof api_trading_pb.OrderByReferenceResponse; -}; - -type TradingDataServiceOrdersByMarket = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrdersByMarketRequest; - readonly responseType: typeof api_trading_pb.OrdersByMarketResponse; -}; - -type TradingDataServiceOrdersByParty = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrdersByPartyRequest; - readonly responseType: typeof api_trading_pb.OrdersByPartyResponse; -}; - -type TradingDataServiceOrderByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrderByIDRequest; - readonly responseType: typeof api_trading_pb.OrderByIDResponse; -}; - -type TradingDataServiceOrderVersionsByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OrderVersionsByIDRequest; - readonly responseType: typeof api_trading_pb.OrderVersionsByIDResponse; -}; - -type TradingDataServiceMarginLevels = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.MarginLevelsRequest; - readonly responseType: typeof api_trading_pb.MarginLevelsResponse; -}; - -type TradingDataServiceParties = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PartiesRequest; - readonly responseType: typeof api_trading_pb.PartiesResponse; -}; - -type TradingDataServicePartyByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PartyByIDRequest; - readonly responseType: typeof api_trading_pb.PartyByIDResponse; -}; - -type TradingDataServicePositionsByParty = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.PositionsByPartyRequest; - readonly responseType: typeof api_trading_pb.PositionsByPartyResponse; -}; - -type TradingDataServiceLastTrade = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.LastTradeRequest; - readonly responseType: typeof api_trading_pb.LastTradeResponse; -}; - -type TradingDataServiceTradesByMarket = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.TradesByMarketRequest; - readonly responseType: typeof api_trading_pb.TradesByMarketResponse; -}; - -type TradingDataServiceTradesByOrder = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.TradesByOrderRequest; - readonly responseType: typeof api_trading_pb.TradesByOrderResponse; -}; - -type TradingDataServiceTradesByParty = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.TradesByPartyRequest; - readonly responseType: typeof api_trading_pb.TradesByPartyResponse; -}; - -type TradingDataServiceGetProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetProposalsRequest; - readonly responseType: typeof api_trading_pb.GetProposalsResponse; -}; - -type TradingDataServiceGetProposalsByParty = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetProposalsByPartyRequest; - readonly responseType: typeof api_trading_pb.GetProposalsByPartyResponse; -}; - -type TradingDataServiceGetVotesByParty = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetVotesByPartyRequest; - readonly responseType: typeof api_trading_pb.GetVotesByPartyResponse; -}; - -type TradingDataServiceGetNewMarketProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetNewMarketProposalsRequest; - readonly responseType: typeof api_trading_pb.GetNewMarketProposalsResponse; -}; - -type TradingDataServiceGetUpdateMarketProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetUpdateMarketProposalsRequest; - readonly responseType: typeof api_trading_pb.GetUpdateMarketProposalsResponse; -}; - -type TradingDataServiceGetNetworkParametersProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetNetworkParametersProposalsRequest; - readonly responseType: typeof api_trading_pb.GetNetworkParametersProposalsResponse; -}; - -type TradingDataServiceGetNewAssetProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetNewAssetProposalsRequest; - readonly responseType: typeof api_trading_pb.GetNewAssetProposalsResponse; -}; - -type TradingDataServiceGetProposalByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetProposalByIDRequest; - readonly responseType: typeof api_trading_pb.GetProposalByIDResponse; -}; - -type TradingDataServiceGetProposalByReference = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetProposalByReferenceRequest; - readonly responseType: typeof api_trading_pb.GetProposalByReferenceResponse; -}; - -type TradingDataServiceObserveGovernance = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.ObserveGovernanceRequest; - readonly responseType: typeof api_trading_pb.ObserveGovernanceResponse; -}; - -type TradingDataServiceObservePartyProposals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.ObservePartyProposalsRequest; - readonly responseType: typeof api_trading_pb.ObservePartyProposalsResponse; -}; - -type TradingDataServiceObservePartyVotes = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.ObservePartyVotesRequest; - readonly responseType: typeof api_trading_pb.ObservePartyVotesResponse; -}; - -type TradingDataServiceObserveProposalVotes = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.ObserveProposalVotesRequest; - readonly responseType: typeof api_trading_pb.ObserveProposalVotesResponse; -}; - -type TradingDataServiceObserveEventBus = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: true; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.ObserveEventBusRequest; - readonly responseType: typeof api_trading_pb.ObserveEventBusResponse; -}; - -type TradingDataServiceStatistics = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.StatisticsRequest; - readonly responseType: typeof api_trading_pb.StatisticsResponse; -}; - -type TradingDataServiceLastBlockHeight = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.LastBlockHeightRequest; - readonly responseType: typeof api_trading_pb.LastBlockHeightResponse; -}; - -type TradingDataServiceGetVegaTime = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetVegaTimeRequest; - readonly responseType: typeof api_trading_pb.GetVegaTimeResponse; -}; - -type TradingDataServiceAccountsSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.AccountsSubscribeRequest; - readonly responseType: typeof api_trading_pb.AccountsSubscribeResponse; -}; - -type TradingDataServiceCandlesSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.CandlesSubscribeRequest; - readonly responseType: typeof api_trading_pb.CandlesSubscribeResponse; -}; - -type TradingDataServiceMarginLevelsSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.MarginLevelsSubscribeRequest; - readonly responseType: typeof api_trading_pb.MarginLevelsSubscribeResponse; -}; - -type TradingDataServiceMarketDepthSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.MarketDepthSubscribeRequest; - readonly responseType: typeof api_trading_pb.MarketDepthSubscribeResponse; -}; - -type TradingDataServiceMarketDepthUpdatesSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.MarketDepthUpdatesSubscribeRequest; - readonly responseType: typeof api_trading_pb.MarketDepthUpdatesSubscribeResponse; -}; - -type TradingDataServiceMarketsDataSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.MarketsDataSubscribeRequest; - readonly responseType: typeof api_trading_pb.MarketsDataSubscribeResponse; -}; - -type TradingDataServiceOrdersSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.OrdersSubscribeRequest; - readonly responseType: typeof api_trading_pb.OrdersSubscribeResponse; -}; - -type TradingDataServicePositionsSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.PositionsSubscribeRequest; - readonly responseType: typeof api_trading_pb.PositionsSubscribeResponse; -}; - -type TradingDataServiceTradesSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.TradesSubscribeRequest; - readonly responseType: typeof api_trading_pb.TradesSubscribeResponse; -}; - -type TradingDataServiceTransferResponsesSubscribe = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof api_trading_pb.TransferResponsesSubscribeRequest; - readonly responseType: typeof api_trading_pb.TransferResponsesSubscribeResponse; -}; - -type TradingDataServiceGetNodeSignaturesAggregate = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.GetNodeSignaturesAggregateRequest; - readonly responseType: typeof api_trading_pb.GetNodeSignaturesAggregateResponse; -}; - -type TradingDataServiceAssetByID = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.AssetByIDRequest; - readonly responseType: typeof api_trading_pb.AssetByIDResponse; -}; - -type TradingDataServiceAssets = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.AssetsRequest; - readonly responseType: typeof api_trading_pb.AssetsResponse; -}; - -type TradingDataServiceEstimateFee = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.EstimateFeeRequest; - readonly responseType: typeof api_trading_pb.EstimateFeeResponse; -}; - -type TradingDataServiceEstimateMargin = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.EstimateMarginRequest; - readonly responseType: typeof api_trading_pb.EstimateMarginResponse; -}; - -type TradingDataServiceERC20WithdrawalApproval = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.ERC20WithdrawalApprovalRequest; - readonly responseType: typeof api_trading_pb.ERC20WithdrawalApprovalResponse; -}; - -type TradingDataServiceWithdrawal = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.WithdrawalRequest; - readonly responseType: typeof api_trading_pb.WithdrawalResponse; -}; - -type TradingDataServiceWithdrawals = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.WithdrawalsRequest; - readonly responseType: typeof api_trading_pb.WithdrawalsResponse; -}; - -type TradingDataServiceDeposit = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.DepositRequest; - readonly responseType: typeof api_trading_pb.DepositResponse; -}; - -type TradingDataServiceDeposits = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.DepositsRequest; - readonly responseType: typeof api_trading_pb.DepositsResponse; -}; - -type TradingDataServiceNetworkParameters = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.NetworkParametersRequest; - readonly responseType: typeof api_trading_pb.NetworkParametersResponse; -}; - -type TradingDataServiceLiquidityProvisions = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.LiquidityProvisionsRequest; - readonly responseType: typeof api_trading_pb.LiquidityProvisionsResponse; -}; - -type TradingDataServiceOracleSpec = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OracleSpecRequest; - readonly responseType: typeof api_trading_pb.OracleSpecResponse; -}; - -type TradingDataServiceOracleSpecs = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OracleSpecsRequest; - readonly responseType: typeof api_trading_pb.OracleSpecsResponse; -}; - -type TradingDataServiceOracleDataBySpec = { - readonly methodName: string; - readonly service: typeof TradingDataService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof api_trading_pb.OracleDataBySpecRequest; - readonly responseType: typeof api_trading_pb.OracleDataBySpecResponse; -}; - -export class TradingDataService { - static readonly serviceName: string; - static readonly MarketAccounts: TradingDataServiceMarketAccounts; - static readonly PartyAccounts: TradingDataServicePartyAccounts; - static readonly FeeInfrastructureAccounts: TradingDataServiceFeeInfrastructureAccounts; - static readonly Candles: TradingDataServiceCandles; - static readonly MarketDataByID: TradingDataServiceMarketDataByID; - static readonly MarketsData: TradingDataServiceMarketsData; - static readonly MarketByID: TradingDataServiceMarketByID; - static readonly MarketDepth: TradingDataServiceMarketDepth; - static readonly Markets: TradingDataServiceMarkets; - static readonly OrderByMarketAndID: TradingDataServiceOrderByMarketAndID; - static readonly OrderByReference: TradingDataServiceOrderByReference; - static readonly OrdersByMarket: TradingDataServiceOrdersByMarket; - static readonly OrdersByParty: TradingDataServiceOrdersByParty; - static readonly OrderByID: TradingDataServiceOrderByID; - static readonly OrderVersionsByID: TradingDataServiceOrderVersionsByID; - static readonly MarginLevels: TradingDataServiceMarginLevels; - static readonly Parties: TradingDataServiceParties; - static readonly PartyByID: TradingDataServicePartyByID; - static readonly PositionsByParty: TradingDataServicePositionsByParty; - static readonly LastTrade: TradingDataServiceLastTrade; - static readonly TradesByMarket: TradingDataServiceTradesByMarket; - static readonly TradesByOrder: TradingDataServiceTradesByOrder; - static readonly TradesByParty: TradingDataServiceTradesByParty; - static readonly GetProposals: TradingDataServiceGetProposals; - static readonly GetProposalsByParty: TradingDataServiceGetProposalsByParty; - static readonly GetVotesByParty: TradingDataServiceGetVotesByParty; - static readonly GetNewMarketProposals: TradingDataServiceGetNewMarketProposals; - static readonly GetUpdateMarketProposals: TradingDataServiceGetUpdateMarketProposals; - static readonly GetNetworkParametersProposals: TradingDataServiceGetNetworkParametersProposals; - static readonly GetNewAssetProposals: TradingDataServiceGetNewAssetProposals; - static readonly GetProposalByID: TradingDataServiceGetProposalByID; - static readonly GetProposalByReference: TradingDataServiceGetProposalByReference; - static readonly ObserveGovernance: TradingDataServiceObserveGovernance; - static readonly ObservePartyProposals: TradingDataServiceObservePartyProposals; - static readonly ObservePartyVotes: TradingDataServiceObservePartyVotes; - static readonly ObserveProposalVotes: TradingDataServiceObserveProposalVotes; - static readonly ObserveEventBus: TradingDataServiceObserveEventBus; - static readonly Statistics: TradingDataServiceStatistics; - static readonly LastBlockHeight: TradingDataServiceLastBlockHeight; - static readonly GetVegaTime: TradingDataServiceGetVegaTime; - static readonly AccountsSubscribe: TradingDataServiceAccountsSubscribe; - static readonly CandlesSubscribe: TradingDataServiceCandlesSubscribe; - static readonly MarginLevelsSubscribe: TradingDataServiceMarginLevelsSubscribe; - static readonly MarketDepthSubscribe: TradingDataServiceMarketDepthSubscribe; - static readonly MarketDepthUpdatesSubscribe: TradingDataServiceMarketDepthUpdatesSubscribe; - static readonly MarketsDataSubscribe: TradingDataServiceMarketsDataSubscribe; - static readonly OrdersSubscribe: TradingDataServiceOrdersSubscribe; - static readonly PositionsSubscribe: TradingDataServicePositionsSubscribe; - static readonly TradesSubscribe: TradingDataServiceTradesSubscribe; - static readonly TransferResponsesSubscribe: TradingDataServiceTransferResponsesSubscribe; - static readonly GetNodeSignaturesAggregate: TradingDataServiceGetNodeSignaturesAggregate; - static readonly AssetByID: TradingDataServiceAssetByID; - static readonly Assets: TradingDataServiceAssets; - static readonly EstimateFee: TradingDataServiceEstimateFee; - static readonly EstimateMargin: TradingDataServiceEstimateMargin; - static readonly ERC20WithdrawalApproval: TradingDataServiceERC20WithdrawalApproval; - static readonly Withdrawal: TradingDataServiceWithdrawal; - static readonly Withdrawals: TradingDataServiceWithdrawals; - static readonly Deposit: TradingDataServiceDeposit; - static readonly Deposits: TradingDataServiceDeposits; - static readonly NetworkParameters: TradingDataServiceNetworkParameters; - static readonly LiquidityProvisions: TradingDataServiceLiquidityProvisions; - static readonly OracleSpec: TradingDataServiceOracleSpec; - static readonly OracleSpecs: TradingDataServiceOracleSpecs; - static readonly OracleDataBySpec: TradingDataServiceOracleDataBySpec; -} - -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } - -interface UnaryResponse { - cancel(): void; -} -interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; -} -interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; -} -interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; -} - -export class TradingServiceClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - prepareSubmitOrder( - requestMessage: api_trading_pb.PrepareSubmitOrderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareSubmitOrderResponse|null) => void - ): UnaryResponse; - prepareSubmitOrder( - requestMessage: api_trading_pb.PrepareSubmitOrderRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareSubmitOrderResponse|null) => void - ): UnaryResponse; - prepareCancelOrder( - requestMessage: api_trading_pb.PrepareCancelOrderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareCancelOrderResponse|null) => void - ): UnaryResponse; - prepareCancelOrder( - requestMessage: api_trading_pb.PrepareCancelOrderRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareCancelOrderResponse|null) => void - ): UnaryResponse; - prepareAmendOrder( - requestMessage: api_trading_pb.PrepareAmendOrderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareAmendOrderResponse|null) => void - ): UnaryResponse; - prepareAmendOrder( - requestMessage: api_trading_pb.PrepareAmendOrderRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareAmendOrderResponse|null) => void - ): UnaryResponse; - prepareWithdraw( - requestMessage: api_trading_pb.PrepareWithdrawRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareWithdrawResponse|null) => void - ): UnaryResponse; - prepareWithdraw( - requestMessage: api_trading_pb.PrepareWithdrawRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareWithdrawResponse|null) => void - ): UnaryResponse; - submitTransaction( - requestMessage: api_trading_pb.SubmitTransactionRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.SubmitTransactionResponse|null) => void - ): UnaryResponse; - submitTransaction( - requestMessage: api_trading_pb.SubmitTransactionRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.SubmitTransactionResponse|null) => void - ): UnaryResponse; - submitTransactionV2( - requestMessage: api_trading_pb.SubmitTransactionV2Request, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.SubmitTransactionV2Response|null) => void - ): UnaryResponse; - submitTransactionV2( - requestMessage: api_trading_pb.SubmitTransactionV2Request, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.SubmitTransactionV2Response|null) => void - ): UnaryResponse; - prepareProposalSubmission( - requestMessage: api_trading_pb.PrepareProposalSubmissionRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareProposalSubmissionResponse|null) => void - ): UnaryResponse; - prepareProposalSubmission( - requestMessage: api_trading_pb.PrepareProposalSubmissionRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareProposalSubmissionResponse|null) => void - ): UnaryResponse; - prepareVoteSubmission( - requestMessage: api_trading_pb.PrepareVoteSubmissionRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareVoteSubmissionResponse|null) => void - ): UnaryResponse; - prepareVoteSubmission( - requestMessage: api_trading_pb.PrepareVoteSubmissionRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareVoteSubmissionResponse|null) => void - ): UnaryResponse; - propagateChainEvent( - requestMessage: api_trading_pb.PropagateChainEventRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PropagateChainEventResponse|null) => void - ): UnaryResponse; - propagateChainEvent( - requestMessage: api_trading_pb.PropagateChainEventRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PropagateChainEventResponse|null) => void - ): UnaryResponse; - prepareLiquidityProvision( - requestMessage: api_trading_pb.PrepareLiquidityProvisionRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareLiquidityProvisionResponse|null) => void - ): UnaryResponse; - prepareLiquidityProvision( - requestMessage: api_trading_pb.PrepareLiquidityProvisionRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PrepareLiquidityProvisionResponse|null) => void - ): UnaryResponse; -} - -export class TradingDataServiceClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - marketAccounts( - requestMessage: api_trading_pb.MarketAccountsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketAccountsResponse|null) => void - ): UnaryResponse; - marketAccounts( - requestMessage: api_trading_pb.MarketAccountsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketAccountsResponse|null) => void - ): UnaryResponse; - partyAccounts( - requestMessage: api_trading_pb.PartyAccountsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartyAccountsResponse|null) => void - ): UnaryResponse; - partyAccounts( - requestMessage: api_trading_pb.PartyAccountsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartyAccountsResponse|null) => void - ): UnaryResponse; - feeInfrastructureAccounts( - requestMessage: api_trading_pb.FeeInfrastructureAccountsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.FeeInfrastructureAccountsResponse|null) => void - ): UnaryResponse; - feeInfrastructureAccounts( - requestMessage: api_trading_pb.FeeInfrastructureAccountsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.FeeInfrastructureAccountsResponse|null) => void - ): UnaryResponse; - candles( - requestMessage: api_trading_pb.CandlesRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.CandlesResponse|null) => void - ): UnaryResponse; - candles( - requestMessage: api_trading_pb.CandlesRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.CandlesResponse|null) => void - ): UnaryResponse; - marketDataByID( - requestMessage: api_trading_pb.MarketDataByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketDataByIDResponse|null) => void - ): UnaryResponse; - marketDataByID( - requestMessage: api_trading_pb.MarketDataByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketDataByIDResponse|null) => void - ): UnaryResponse; - marketsData( - requestMessage: api_trading_pb.MarketsDataRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketsDataResponse|null) => void - ): UnaryResponse; - marketsData( - requestMessage: api_trading_pb.MarketsDataRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketsDataResponse|null) => void - ): UnaryResponse; - marketByID( - requestMessage: api_trading_pb.MarketByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketByIDResponse|null) => void - ): UnaryResponse; - marketByID( - requestMessage: api_trading_pb.MarketByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketByIDResponse|null) => void - ): UnaryResponse; - marketDepth( - requestMessage: api_trading_pb.MarketDepthRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketDepthResponse|null) => void - ): UnaryResponse; - marketDepth( - requestMessage: api_trading_pb.MarketDepthRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketDepthResponse|null) => void - ): UnaryResponse; - markets( - requestMessage: api_trading_pb.MarketsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketsResponse|null) => void - ): UnaryResponse; - markets( - requestMessage: api_trading_pb.MarketsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarketsResponse|null) => void - ): UnaryResponse; - orderByMarketAndID( - requestMessage: api_trading_pb.OrderByMarketAndIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByMarketAndIDResponse|null) => void - ): UnaryResponse; - orderByMarketAndID( - requestMessage: api_trading_pb.OrderByMarketAndIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByMarketAndIDResponse|null) => void - ): UnaryResponse; - orderByReference( - requestMessage: api_trading_pb.OrderByReferenceRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByReferenceResponse|null) => void - ): UnaryResponse; - orderByReference( - requestMessage: api_trading_pb.OrderByReferenceRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByReferenceResponse|null) => void - ): UnaryResponse; - ordersByMarket( - requestMessage: api_trading_pb.OrdersByMarketRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrdersByMarketResponse|null) => void - ): UnaryResponse; - ordersByMarket( - requestMessage: api_trading_pb.OrdersByMarketRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrdersByMarketResponse|null) => void - ): UnaryResponse; - ordersByParty( - requestMessage: api_trading_pb.OrdersByPartyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrdersByPartyResponse|null) => void - ): UnaryResponse; - ordersByParty( - requestMessage: api_trading_pb.OrdersByPartyRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrdersByPartyResponse|null) => void - ): UnaryResponse; - orderByID( - requestMessage: api_trading_pb.OrderByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByIDResponse|null) => void - ): UnaryResponse; - orderByID( - requestMessage: api_trading_pb.OrderByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderByIDResponse|null) => void - ): UnaryResponse; - orderVersionsByID( - requestMessage: api_trading_pb.OrderVersionsByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderVersionsByIDResponse|null) => void - ): UnaryResponse; - orderVersionsByID( - requestMessage: api_trading_pb.OrderVersionsByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OrderVersionsByIDResponse|null) => void - ): UnaryResponse; - marginLevels( - requestMessage: api_trading_pb.MarginLevelsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarginLevelsResponse|null) => void - ): UnaryResponse; - marginLevels( - requestMessage: api_trading_pb.MarginLevelsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.MarginLevelsResponse|null) => void - ): UnaryResponse; - parties( - requestMessage: api_trading_pb.PartiesRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartiesResponse|null) => void - ): UnaryResponse; - parties( - requestMessage: api_trading_pb.PartiesRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartiesResponse|null) => void - ): UnaryResponse; - partyByID( - requestMessage: api_trading_pb.PartyByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartyByIDResponse|null) => void - ): UnaryResponse; - partyByID( - requestMessage: api_trading_pb.PartyByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PartyByIDResponse|null) => void - ): UnaryResponse; - positionsByParty( - requestMessage: api_trading_pb.PositionsByPartyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PositionsByPartyResponse|null) => void - ): UnaryResponse; - positionsByParty( - requestMessage: api_trading_pb.PositionsByPartyRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.PositionsByPartyResponse|null) => void - ): UnaryResponse; - lastTrade( - requestMessage: api_trading_pb.LastTradeRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LastTradeResponse|null) => void - ): UnaryResponse; - lastTrade( - requestMessage: api_trading_pb.LastTradeRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LastTradeResponse|null) => void - ): UnaryResponse; - tradesByMarket( - requestMessage: api_trading_pb.TradesByMarketRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByMarketResponse|null) => void - ): UnaryResponse; - tradesByMarket( - requestMessage: api_trading_pb.TradesByMarketRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByMarketResponse|null) => void - ): UnaryResponse; - tradesByOrder( - requestMessage: api_trading_pb.TradesByOrderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByOrderResponse|null) => void - ): UnaryResponse; - tradesByOrder( - requestMessage: api_trading_pb.TradesByOrderRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByOrderResponse|null) => void - ): UnaryResponse; - tradesByParty( - requestMessage: api_trading_pb.TradesByPartyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByPartyResponse|null) => void - ): UnaryResponse; - tradesByParty( - requestMessage: api_trading_pb.TradesByPartyRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.TradesByPartyResponse|null) => void - ): UnaryResponse; - getProposals( - requestMessage: api_trading_pb.GetProposalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalsResponse|null) => void - ): UnaryResponse; - getProposals( - requestMessage: api_trading_pb.GetProposalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalsResponse|null) => void - ): UnaryResponse; - getProposalsByParty( - requestMessage: api_trading_pb.GetProposalsByPartyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalsByPartyResponse|null) => void - ): UnaryResponse; - getProposalsByParty( - requestMessage: api_trading_pb.GetProposalsByPartyRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalsByPartyResponse|null) => void - ): UnaryResponse; - getVotesByParty( - requestMessage: api_trading_pb.GetVotesByPartyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetVotesByPartyResponse|null) => void - ): UnaryResponse; - getVotesByParty( - requestMessage: api_trading_pb.GetVotesByPartyRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetVotesByPartyResponse|null) => void - ): UnaryResponse; - getNewMarketProposals( - requestMessage: api_trading_pb.GetNewMarketProposalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNewMarketProposalsResponse|null) => void - ): UnaryResponse; - getNewMarketProposals( - requestMessage: api_trading_pb.GetNewMarketProposalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNewMarketProposalsResponse|null) => void - ): UnaryResponse; - getUpdateMarketProposals( - requestMessage: api_trading_pb.GetUpdateMarketProposalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetUpdateMarketProposalsResponse|null) => void - ): UnaryResponse; - getUpdateMarketProposals( - requestMessage: api_trading_pb.GetUpdateMarketProposalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetUpdateMarketProposalsResponse|null) => void - ): UnaryResponse; - getNetworkParametersProposals( - requestMessage: api_trading_pb.GetNetworkParametersProposalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNetworkParametersProposalsResponse|null) => void - ): UnaryResponse; - getNetworkParametersProposals( - requestMessage: api_trading_pb.GetNetworkParametersProposalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNetworkParametersProposalsResponse|null) => void - ): UnaryResponse; - getNewAssetProposals( - requestMessage: api_trading_pb.GetNewAssetProposalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNewAssetProposalsResponse|null) => void - ): UnaryResponse; - getNewAssetProposals( - requestMessage: api_trading_pb.GetNewAssetProposalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNewAssetProposalsResponse|null) => void - ): UnaryResponse; - getProposalByID( - requestMessage: api_trading_pb.GetProposalByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalByIDResponse|null) => void - ): UnaryResponse; - getProposalByID( - requestMessage: api_trading_pb.GetProposalByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalByIDResponse|null) => void - ): UnaryResponse; - getProposalByReference( - requestMessage: api_trading_pb.GetProposalByReferenceRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalByReferenceResponse|null) => void - ): UnaryResponse; - getProposalByReference( - requestMessage: api_trading_pb.GetProposalByReferenceRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetProposalByReferenceResponse|null) => void - ): UnaryResponse; - observeGovernance(requestMessage: api_trading_pb.ObserveGovernanceRequest, metadata?: grpc.Metadata): ResponseStream; - observePartyProposals(requestMessage: api_trading_pb.ObservePartyProposalsRequest, metadata?: grpc.Metadata): ResponseStream; - observePartyVotes(requestMessage: api_trading_pb.ObservePartyVotesRequest, metadata?: grpc.Metadata): ResponseStream; - observeProposalVotes(requestMessage: api_trading_pb.ObserveProposalVotesRequest, metadata?: grpc.Metadata): ResponseStream; - observeEventBus(metadata?: grpc.Metadata): BidirectionalStream; - statistics( - requestMessage: api_trading_pb.StatisticsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.StatisticsResponse|null) => void - ): UnaryResponse; - statistics( - requestMessage: api_trading_pb.StatisticsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.StatisticsResponse|null) => void - ): UnaryResponse; - lastBlockHeight( - requestMessage: api_trading_pb.LastBlockHeightRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LastBlockHeightResponse|null) => void - ): UnaryResponse; - lastBlockHeight( - requestMessage: api_trading_pb.LastBlockHeightRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LastBlockHeightResponse|null) => void - ): UnaryResponse; - getVegaTime( - requestMessage: api_trading_pb.GetVegaTimeRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetVegaTimeResponse|null) => void - ): UnaryResponse; - getVegaTime( - requestMessage: api_trading_pb.GetVegaTimeRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetVegaTimeResponse|null) => void - ): UnaryResponse; - accountsSubscribe(requestMessage: api_trading_pb.AccountsSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - candlesSubscribe(requestMessage: api_trading_pb.CandlesSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - marginLevelsSubscribe(requestMessage: api_trading_pb.MarginLevelsSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - marketDepthSubscribe(requestMessage: api_trading_pb.MarketDepthSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - marketDepthUpdatesSubscribe(requestMessage: api_trading_pb.MarketDepthUpdatesSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - marketsDataSubscribe(requestMessage: api_trading_pb.MarketsDataSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - ordersSubscribe(requestMessage: api_trading_pb.OrdersSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - positionsSubscribe(requestMessage: api_trading_pb.PositionsSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - tradesSubscribe(requestMessage: api_trading_pb.TradesSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - transferResponsesSubscribe(requestMessage: api_trading_pb.TransferResponsesSubscribeRequest, metadata?: grpc.Metadata): ResponseStream; - getNodeSignaturesAggregate( - requestMessage: api_trading_pb.GetNodeSignaturesAggregateRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNodeSignaturesAggregateResponse|null) => void - ): UnaryResponse; - getNodeSignaturesAggregate( - requestMessage: api_trading_pb.GetNodeSignaturesAggregateRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.GetNodeSignaturesAggregateResponse|null) => void - ): UnaryResponse; - assetByID( - requestMessage: api_trading_pb.AssetByIDRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.AssetByIDResponse|null) => void - ): UnaryResponse; - assetByID( - requestMessage: api_trading_pb.AssetByIDRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.AssetByIDResponse|null) => void - ): UnaryResponse; - assets( - requestMessage: api_trading_pb.AssetsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.AssetsResponse|null) => void - ): UnaryResponse; - assets( - requestMessage: api_trading_pb.AssetsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.AssetsResponse|null) => void - ): UnaryResponse; - estimateFee( - requestMessage: api_trading_pb.EstimateFeeRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.EstimateFeeResponse|null) => void - ): UnaryResponse; - estimateFee( - requestMessage: api_trading_pb.EstimateFeeRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.EstimateFeeResponse|null) => void - ): UnaryResponse; - estimateMargin( - requestMessage: api_trading_pb.EstimateMarginRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.EstimateMarginResponse|null) => void - ): UnaryResponse; - estimateMargin( - requestMessage: api_trading_pb.EstimateMarginRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.EstimateMarginResponse|null) => void - ): UnaryResponse; - eRC20WithdrawalApproval( - requestMessage: api_trading_pb.ERC20WithdrawalApprovalRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.ERC20WithdrawalApprovalResponse|null) => void - ): UnaryResponse; - eRC20WithdrawalApproval( - requestMessage: api_trading_pb.ERC20WithdrawalApprovalRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.ERC20WithdrawalApprovalResponse|null) => void - ): UnaryResponse; - withdrawal( - requestMessage: api_trading_pb.WithdrawalRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.WithdrawalResponse|null) => void - ): UnaryResponse; - withdrawal( - requestMessage: api_trading_pb.WithdrawalRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.WithdrawalResponse|null) => void - ): UnaryResponse; - withdrawals( - requestMessage: api_trading_pb.WithdrawalsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.WithdrawalsResponse|null) => void - ): UnaryResponse; - withdrawals( - requestMessage: api_trading_pb.WithdrawalsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.WithdrawalsResponse|null) => void - ): UnaryResponse; - deposit( - requestMessage: api_trading_pb.DepositRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.DepositResponse|null) => void - ): UnaryResponse; - deposit( - requestMessage: api_trading_pb.DepositRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.DepositResponse|null) => void - ): UnaryResponse; - deposits( - requestMessage: api_trading_pb.DepositsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.DepositsResponse|null) => void - ): UnaryResponse; - deposits( - requestMessage: api_trading_pb.DepositsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.DepositsResponse|null) => void - ): UnaryResponse; - networkParameters( - requestMessage: api_trading_pb.NetworkParametersRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.NetworkParametersResponse|null) => void - ): UnaryResponse; - networkParameters( - requestMessage: api_trading_pb.NetworkParametersRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.NetworkParametersResponse|null) => void - ): UnaryResponse; - liquidityProvisions( - requestMessage: api_trading_pb.LiquidityProvisionsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LiquidityProvisionsResponse|null) => void - ): UnaryResponse; - liquidityProvisions( - requestMessage: api_trading_pb.LiquidityProvisionsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.LiquidityProvisionsResponse|null) => void - ): UnaryResponse; - oracleSpec( - requestMessage: api_trading_pb.OracleSpecRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleSpecResponse|null) => void - ): UnaryResponse; - oracleSpec( - requestMessage: api_trading_pb.OracleSpecRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleSpecResponse|null) => void - ): UnaryResponse; - oracleSpecs( - requestMessage: api_trading_pb.OracleSpecsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleSpecsResponse|null) => void - ): UnaryResponse; - oracleSpecs( - requestMessage: api_trading_pb.OracleSpecsRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleSpecsResponse|null) => void - ): UnaryResponse; - oracleDataBySpec( - requestMessage: api_trading_pb.OracleDataBySpecRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleDataBySpecResponse|null) => void - ): UnaryResponse; - oracleDataBySpec( - requestMessage: api_trading_pb.OracleDataBySpecRequest, - callback: (error: ServiceError|null, responseMessage: api_trading_pb.OracleDataBySpecResponse|null) => void - ): UnaryResponse; -} - diff --git a/grpc/clients/js/generated/api/trading_pb_service.js b/grpc/clients/js/generated/api/trading_pb_service.js deleted file mode 100644 index 0f5d3745..00000000 --- a/grpc/clients/js/generated/api/trading_pb_service.js +++ /dev/null @@ -1,3162 +0,0 @@ -// package: api.v1 -// file: api/trading.proto - -var api_trading_pb = require("../api/trading_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; - -var TradingService = (function () { - function TradingService() {} - TradingService.serviceName = "api.v1.TradingService"; - return TradingService; -}()); - -TradingService.PrepareSubmitOrder = { - methodName: "PrepareSubmitOrder", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareSubmitOrderRequest, - responseType: api_trading_pb.PrepareSubmitOrderResponse -}; - -TradingService.PrepareCancelOrder = { - methodName: "PrepareCancelOrder", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareCancelOrderRequest, - responseType: api_trading_pb.PrepareCancelOrderResponse -}; - -TradingService.PrepareAmendOrder = { - methodName: "PrepareAmendOrder", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareAmendOrderRequest, - responseType: api_trading_pb.PrepareAmendOrderResponse -}; - -TradingService.PrepareWithdraw = { - methodName: "PrepareWithdraw", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareWithdrawRequest, - responseType: api_trading_pb.PrepareWithdrawResponse -}; - -TradingService.SubmitTransaction = { - methodName: "SubmitTransaction", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.SubmitTransactionRequest, - responseType: api_trading_pb.SubmitTransactionResponse -}; - -TradingService.SubmitTransactionV2 = { - methodName: "SubmitTransactionV2", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.SubmitTransactionV2Request, - responseType: api_trading_pb.SubmitTransactionV2Response -}; - -TradingService.PrepareProposalSubmission = { - methodName: "PrepareProposalSubmission", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareProposalSubmissionRequest, - responseType: api_trading_pb.PrepareProposalSubmissionResponse -}; - -TradingService.PrepareVoteSubmission = { - methodName: "PrepareVoteSubmission", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareVoteSubmissionRequest, - responseType: api_trading_pb.PrepareVoteSubmissionResponse -}; - -TradingService.PropagateChainEvent = { - methodName: "PropagateChainEvent", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PropagateChainEventRequest, - responseType: api_trading_pb.PropagateChainEventResponse -}; - -TradingService.PrepareLiquidityProvision = { - methodName: "PrepareLiquidityProvision", - service: TradingService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PrepareLiquidityProvisionRequest, - responseType: api_trading_pb.PrepareLiquidityProvisionResponse -}; - -exports.TradingService = TradingService; - -function TradingServiceClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -TradingServiceClient.prototype.prepareSubmitOrder = function prepareSubmitOrder(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareSubmitOrder, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareCancelOrder = function prepareCancelOrder(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareCancelOrder, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareAmendOrder = function prepareAmendOrder(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareAmendOrder, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareWithdraw = function prepareWithdraw(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareWithdraw, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.submitTransaction = function submitTransaction(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.SubmitTransaction, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.submitTransactionV2 = function submitTransactionV2(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.SubmitTransactionV2, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareProposalSubmission = function prepareProposalSubmission(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareProposalSubmission, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareVoteSubmission = function prepareVoteSubmission(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareVoteSubmission, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.propagateChainEvent = function propagateChainEvent(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PropagateChainEvent, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingServiceClient.prototype.prepareLiquidityProvision = function prepareLiquidityProvision(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingService.PrepareLiquidityProvision, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.TradingServiceClient = TradingServiceClient; - -var TradingDataService = (function () { - function TradingDataService() {} - TradingDataService.serviceName = "api.v1.TradingDataService"; - return TradingDataService; -}()); - -TradingDataService.MarketAccounts = { - methodName: "MarketAccounts", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketAccountsRequest, - responseType: api_trading_pb.MarketAccountsResponse -}; - -TradingDataService.PartyAccounts = { - methodName: "PartyAccounts", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PartyAccountsRequest, - responseType: api_trading_pb.PartyAccountsResponse -}; - -TradingDataService.FeeInfrastructureAccounts = { - methodName: "FeeInfrastructureAccounts", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.FeeInfrastructureAccountsRequest, - responseType: api_trading_pb.FeeInfrastructureAccountsResponse -}; - -TradingDataService.Candles = { - methodName: "Candles", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.CandlesRequest, - responseType: api_trading_pb.CandlesResponse -}; - -TradingDataService.MarketDataByID = { - methodName: "MarketDataByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketDataByIDRequest, - responseType: api_trading_pb.MarketDataByIDResponse -}; - -TradingDataService.MarketsData = { - methodName: "MarketsData", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketsDataRequest, - responseType: api_trading_pb.MarketsDataResponse -}; - -TradingDataService.MarketByID = { - methodName: "MarketByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketByIDRequest, - responseType: api_trading_pb.MarketByIDResponse -}; - -TradingDataService.MarketDepth = { - methodName: "MarketDepth", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketDepthRequest, - responseType: api_trading_pb.MarketDepthResponse -}; - -TradingDataService.Markets = { - methodName: "Markets", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarketsRequest, - responseType: api_trading_pb.MarketsResponse -}; - -TradingDataService.OrderByMarketAndID = { - methodName: "OrderByMarketAndID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrderByMarketAndIDRequest, - responseType: api_trading_pb.OrderByMarketAndIDResponse -}; - -TradingDataService.OrderByReference = { - methodName: "OrderByReference", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrderByReferenceRequest, - responseType: api_trading_pb.OrderByReferenceResponse -}; - -TradingDataService.OrdersByMarket = { - methodName: "OrdersByMarket", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrdersByMarketRequest, - responseType: api_trading_pb.OrdersByMarketResponse -}; - -TradingDataService.OrdersByParty = { - methodName: "OrdersByParty", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrdersByPartyRequest, - responseType: api_trading_pb.OrdersByPartyResponse -}; - -TradingDataService.OrderByID = { - methodName: "OrderByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrderByIDRequest, - responseType: api_trading_pb.OrderByIDResponse -}; - -TradingDataService.OrderVersionsByID = { - methodName: "OrderVersionsByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OrderVersionsByIDRequest, - responseType: api_trading_pb.OrderVersionsByIDResponse -}; - -TradingDataService.MarginLevels = { - methodName: "MarginLevels", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.MarginLevelsRequest, - responseType: api_trading_pb.MarginLevelsResponse -}; - -TradingDataService.Parties = { - methodName: "Parties", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PartiesRequest, - responseType: api_trading_pb.PartiesResponse -}; - -TradingDataService.PartyByID = { - methodName: "PartyByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PartyByIDRequest, - responseType: api_trading_pb.PartyByIDResponse -}; - -TradingDataService.PositionsByParty = { - methodName: "PositionsByParty", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.PositionsByPartyRequest, - responseType: api_trading_pb.PositionsByPartyResponse -}; - -TradingDataService.LastTrade = { - methodName: "LastTrade", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.LastTradeRequest, - responseType: api_trading_pb.LastTradeResponse -}; - -TradingDataService.TradesByMarket = { - methodName: "TradesByMarket", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.TradesByMarketRequest, - responseType: api_trading_pb.TradesByMarketResponse -}; - -TradingDataService.TradesByOrder = { - methodName: "TradesByOrder", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.TradesByOrderRequest, - responseType: api_trading_pb.TradesByOrderResponse -}; - -TradingDataService.TradesByParty = { - methodName: "TradesByParty", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.TradesByPartyRequest, - responseType: api_trading_pb.TradesByPartyResponse -}; - -TradingDataService.GetProposals = { - methodName: "GetProposals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetProposalsRequest, - responseType: api_trading_pb.GetProposalsResponse -}; - -TradingDataService.GetProposalsByParty = { - methodName: "GetProposalsByParty", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetProposalsByPartyRequest, - responseType: api_trading_pb.GetProposalsByPartyResponse -}; - -TradingDataService.GetVotesByParty = { - methodName: "GetVotesByParty", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetVotesByPartyRequest, - responseType: api_trading_pb.GetVotesByPartyResponse -}; - -TradingDataService.GetNewMarketProposals = { - methodName: "GetNewMarketProposals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetNewMarketProposalsRequest, - responseType: api_trading_pb.GetNewMarketProposalsResponse -}; - -TradingDataService.GetUpdateMarketProposals = { - methodName: "GetUpdateMarketProposals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetUpdateMarketProposalsRequest, - responseType: api_trading_pb.GetUpdateMarketProposalsResponse -}; - -TradingDataService.GetNetworkParametersProposals = { - methodName: "GetNetworkParametersProposals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetNetworkParametersProposalsRequest, - responseType: api_trading_pb.GetNetworkParametersProposalsResponse -}; - -TradingDataService.GetNewAssetProposals = { - methodName: "GetNewAssetProposals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetNewAssetProposalsRequest, - responseType: api_trading_pb.GetNewAssetProposalsResponse -}; - -TradingDataService.GetProposalByID = { - methodName: "GetProposalByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetProposalByIDRequest, - responseType: api_trading_pb.GetProposalByIDResponse -}; - -TradingDataService.GetProposalByReference = { - methodName: "GetProposalByReference", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetProposalByReferenceRequest, - responseType: api_trading_pb.GetProposalByReferenceResponse -}; - -TradingDataService.ObserveGovernance = { - methodName: "ObserveGovernance", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.ObserveGovernanceRequest, - responseType: api_trading_pb.ObserveGovernanceResponse -}; - -TradingDataService.ObservePartyProposals = { - methodName: "ObservePartyProposals", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.ObservePartyProposalsRequest, - responseType: api_trading_pb.ObservePartyProposalsResponse -}; - -TradingDataService.ObservePartyVotes = { - methodName: "ObservePartyVotes", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.ObservePartyVotesRequest, - responseType: api_trading_pb.ObservePartyVotesResponse -}; - -TradingDataService.ObserveProposalVotes = { - methodName: "ObserveProposalVotes", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.ObserveProposalVotesRequest, - responseType: api_trading_pb.ObserveProposalVotesResponse -}; - -TradingDataService.ObserveEventBus = { - methodName: "ObserveEventBus", - service: TradingDataService, - requestStream: true, - responseStream: true, - requestType: api_trading_pb.ObserveEventBusRequest, - responseType: api_trading_pb.ObserveEventBusResponse -}; - -TradingDataService.Statistics = { - methodName: "Statistics", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.StatisticsRequest, - responseType: api_trading_pb.StatisticsResponse -}; - -TradingDataService.LastBlockHeight = { - methodName: "LastBlockHeight", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.LastBlockHeightRequest, - responseType: api_trading_pb.LastBlockHeightResponse -}; - -TradingDataService.GetVegaTime = { - methodName: "GetVegaTime", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetVegaTimeRequest, - responseType: api_trading_pb.GetVegaTimeResponse -}; - -TradingDataService.AccountsSubscribe = { - methodName: "AccountsSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.AccountsSubscribeRequest, - responseType: api_trading_pb.AccountsSubscribeResponse -}; - -TradingDataService.CandlesSubscribe = { - methodName: "CandlesSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.CandlesSubscribeRequest, - responseType: api_trading_pb.CandlesSubscribeResponse -}; - -TradingDataService.MarginLevelsSubscribe = { - methodName: "MarginLevelsSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.MarginLevelsSubscribeRequest, - responseType: api_trading_pb.MarginLevelsSubscribeResponse -}; - -TradingDataService.MarketDepthSubscribe = { - methodName: "MarketDepthSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.MarketDepthSubscribeRequest, - responseType: api_trading_pb.MarketDepthSubscribeResponse -}; - -TradingDataService.MarketDepthUpdatesSubscribe = { - methodName: "MarketDepthUpdatesSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.MarketDepthUpdatesSubscribeRequest, - responseType: api_trading_pb.MarketDepthUpdatesSubscribeResponse -}; - -TradingDataService.MarketsDataSubscribe = { - methodName: "MarketsDataSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.MarketsDataSubscribeRequest, - responseType: api_trading_pb.MarketsDataSubscribeResponse -}; - -TradingDataService.OrdersSubscribe = { - methodName: "OrdersSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.OrdersSubscribeRequest, - responseType: api_trading_pb.OrdersSubscribeResponse -}; - -TradingDataService.PositionsSubscribe = { - methodName: "PositionsSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.PositionsSubscribeRequest, - responseType: api_trading_pb.PositionsSubscribeResponse -}; - -TradingDataService.TradesSubscribe = { - methodName: "TradesSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.TradesSubscribeRequest, - responseType: api_trading_pb.TradesSubscribeResponse -}; - -TradingDataService.TransferResponsesSubscribe = { - methodName: "TransferResponsesSubscribe", - service: TradingDataService, - requestStream: false, - responseStream: true, - requestType: api_trading_pb.TransferResponsesSubscribeRequest, - responseType: api_trading_pb.TransferResponsesSubscribeResponse -}; - -TradingDataService.GetNodeSignaturesAggregate = { - methodName: "GetNodeSignaturesAggregate", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.GetNodeSignaturesAggregateRequest, - responseType: api_trading_pb.GetNodeSignaturesAggregateResponse -}; - -TradingDataService.AssetByID = { - methodName: "AssetByID", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.AssetByIDRequest, - responseType: api_trading_pb.AssetByIDResponse -}; - -TradingDataService.Assets = { - methodName: "Assets", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.AssetsRequest, - responseType: api_trading_pb.AssetsResponse -}; - -TradingDataService.EstimateFee = { - methodName: "EstimateFee", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.EstimateFeeRequest, - responseType: api_trading_pb.EstimateFeeResponse -}; - -TradingDataService.EstimateMargin = { - methodName: "EstimateMargin", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.EstimateMarginRequest, - responseType: api_trading_pb.EstimateMarginResponse -}; - -TradingDataService.ERC20WithdrawalApproval = { - methodName: "ERC20WithdrawalApproval", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.ERC20WithdrawalApprovalRequest, - responseType: api_trading_pb.ERC20WithdrawalApprovalResponse -}; - -TradingDataService.Withdrawal = { - methodName: "Withdrawal", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.WithdrawalRequest, - responseType: api_trading_pb.WithdrawalResponse -}; - -TradingDataService.Withdrawals = { - methodName: "Withdrawals", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.WithdrawalsRequest, - responseType: api_trading_pb.WithdrawalsResponse -}; - -TradingDataService.Deposit = { - methodName: "Deposit", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.DepositRequest, - responseType: api_trading_pb.DepositResponse -}; - -TradingDataService.Deposits = { - methodName: "Deposits", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.DepositsRequest, - responseType: api_trading_pb.DepositsResponse -}; - -TradingDataService.NetworkParameters = { - methodName: "NetworkParameters", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.NetworkParametersRequest, - responseType: api_trading_pb.NetworkParametersResponse -}; - -TradingDataService.LiquidityProvisions = { - methodName: "LiquidityProvisions", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.LiquidityProvisionsRequest, - responseType: api_trading_pb.LiquidityProvisionsResponse -}; - -TradingDataService.OracleSpec = { - methodName: "OracleSpec", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OracleSpecRequest, - responseType: api_trading_pb.OracleSpecResponse -}; - -TradingDataService.OracleSpecs = { - methodName: "OracleSpecs", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OracleSpecsRequest, - responseType: api_trading_pb.OracleSpecsResponse -}; - -TradingDataService.OracleDataBySpec = { - methodName: "OracleDataBySpec", - service: TradingDataService, - requestStream: false, - responseStream: false, - requestType: api_trading_pb.OracleDataBySpecRequest, - responseType: api_trading_pb.OracleDataBySpecResponse -}; - -exports.TradingDataService = TradingDataService; - -function TradingDataServiceClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -TradingDataServiceClient.prototype.marketAccounts = function marketAccounts(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarketAccounts, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.partyAccounts = function partyAccounts(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.PartyAccounts, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.feeInfrastructureAccounts = function feeInfrastructureAccounts(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.FeeInfrastructureAccounts, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.candles = function candles(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Candles, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketDataByID = function marketDataByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarketDataByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketsData = function marketsData(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarketsData, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketByID = function marketByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarketByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketDepth = function marketDepth(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarketDepth, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.markets = function markets(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Markets, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.orderByMarketAndID = function orderByMarketAndID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrderByMarketAndID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.orderByReference = function orderByReference(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrderByReference, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.ordersByMarket = function ordersByMarket(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrdersByMarket, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.ordersByParty = function ordersByParty(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrdersByParty, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.orderByID = function orderByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrderByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.orderVersionsByID = function orderVersionsByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OrderVersionsByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marginLevels = function marginLevels(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.MarginLevels, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.parties = function parties(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Parties, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.partyByID = function partyByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.PartyByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.positionsByParty = function positionsByParty(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.PositionsByParty, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.lastTrade = function lastTrade(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.LastTrade, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.tradesByMarket = function tradesByMarket(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.TradesByMarket, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.tradesByOrder = function tradesByOrder(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.TradesByOrder, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.tradesByParty = function tradesByParty(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.TradesByParty, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getProposals = function getProposals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getProposalsByParty = function getProposalsByParty(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetProposalsByParty, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getVotesByParty = function getVotesByParty(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetVotesByParty, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getNewMarketProposals = function getNewMarketProposals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetNewMarketProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getUpdateMarketProposals = function getUpdateMarketProposals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetUpdateMarketProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getNetworkParametersProposals = function getNetworkParametersProposals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetNetworkParametersProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getNewAssetProposals = function getNewAssetProposals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetNewAssetProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getProposalByID = function getProposalByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetProposalByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getProposalByReference = function getProposalByReference(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetProposalByReference, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.observeGovernance = function observeGovernance(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.ObserveGovernance, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.observePartyProposals = function observePartyProposals(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.ObservePartyProposals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.observePartyVotes = function observePartyVotes(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.ObservePartyVotes, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.observeProposalVotes = function observeProposalVotes(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.ObserveProposalVotes, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.observeEventBus = function observeEventBus(metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.client(TradingDataService.ObserveEventBus, { - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport - }); - client.onEnd(function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - }); - client.onMessage(function (message) { - listeners.data.forEach(function (handler) { - handler(message); - }) - }); - client.start(metadata); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - write: function (requestMessage) { - client.send(requestMessage); - return this; - }, - end: function () { - client.finishSend(); - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.statistics = function statistics(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Statistics, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.lastBlockHeight = function lastBlockHeight(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.LastBlockHeight, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getVegaTime = function getVegaTime(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetVegaTime, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.accountsSubscribe = function accountsSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.AccountsSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.candlesSubscribe = function candlesSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.CandlesSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marginLevelsSubscribe = function marginLevelsSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.MarginLevelsSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketDepthSubscribe = function marketDepthSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.MarketDepthSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketDepthUpdatesSubscribe = function marketDepthUpdatesSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.MarketDepthUpdatesSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.marketsDataSubscribe = function marketsDataSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.MarketsDataSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.ordersSubscribe = function ordersSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.OrdersSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.positionsSubscribe = function positionsSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.PositionsSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.tradesSubscribe = function tradesSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.TradesSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.transferResponsesSubscribe = function transferResponsesSubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(TradingDataService.TransferResponsesSubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.getNodeSignaturesAggregate = function getNodeSignaturesAggregate(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.GetNodeSignaturesAggregate, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.assetByID = function assetByID(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.AssetByID, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.assets = function assets(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Assets, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.estimateFee = function estimateFee(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.EstimateFee, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.estimateMargin = function estimateMargin(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.EstimateMargin, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.eRC20WithdrawalApproval = function eRC20WithdrawalApproval(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.ERC20WithdrawalApproval, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.withdrawal = function withdrawal(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Withdrawal, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.withdrawals = function withdrawals(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Withdrawals, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.deposit = function deposit(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Deposit, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.deposits = function deposits(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.Deposits, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.networkParameters = function networkParameters(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.NetworkParameters, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.liquidityProvisions = function liquidityProvisions(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.LiquidityProvisions, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.oracleSpec = function oracleSpec(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OracleSpec, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.oracleSpecs = function oracleSpecs(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OracleSpecs, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -TradingDataServiceClient.prototype.oracleDataBySpec = function oracleDataBySpec(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(TradingDataService.OracleDataBySpec, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.TradingDataServiceClient = TradingDataServiceClient; - diff --git a/grpc/clients/js/generated/assets_grpc_pb.d.ts b/grpc/clients/js/generated/assets_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/assets_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/assets_grpc_pb.js b/grpc/clients/js/generated/assets_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/assets_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/assets_pb.d.ts b/grpc/clients/js/generated/assets_pb.d.ts index 351f8d8a..458bc62e 100644 --- a/grpc/clients/js/generated/assets_pb.d.ts +++ b/grpc/clients/js/generated/assets_pb.d.ts @@ -1,126 +1,126 @@ // package: vega // file: assets.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class Asset extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasDetails(): boolean; - clearDetails(): void; - getDetails(): AssetDetails | undefined; - setDetails(value?: AssetDetails): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Asset.AsObject; - static toObject(includeInstance: boolean, msg: Asset): Asset.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Asset, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Asset; - static deserializeBinaryFromReader(message: Asset, reader: jspb.BinaryReader): Asset; + getId(): string; + setId(value: string): Asset; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): AssetDetails | undefined; + setDetails(value?: AssetDetails): Asset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Asset.AsObject; + static toObject(includeInstance: boolean, msg: Asset): Asset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Asset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Asset; + static deserializeBinaryFromReader(message: Asset, reader: jspb.BinaryReader): Asset; } export namespace Asset { - export type AsObject = { - id: string, - details?: AssetDetails.AsObject, - } + export type AsObject = { + id: string, + details?: AssetDetails.AsObject, + } } export class AssetDetails extends jspb.Message { - getName(): string; - setName(value: string): void; - - getSymbol(): string; - setSymbol(value: string): void; - - getTotalSupply(): string; - setTotalSupply(value: string): void; - - getDecimals(): number; - setDecimals(value: number): void; - - getMinLpStake(): string; - setMinLpStake(value: string): void; - - hasBuiltinAsset(): boolean; - clearBuiltinAsset(): void; - getBuiltinAsset(): BuiltinAsset | undefined; - setBuiltinAsset(value?: BuiltinAsset): void; - - hasErc20(): boolean; - clearErc20(): void; - getErc20(): ERC20 | undefined; - setErc20(value?: ERC20): void; - - getSourceCase(): AssetDetails.SourceCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssetDetails.AsObject; - static toObject(includeInstance: boolean, msg: AssetDetails): AssetDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssetDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssetDetails; - static deserializeBinaryFromReader(message: AssetDetails, reader: jspb.BinaryReader): AssetDetails; + getName(): string; + setName(value: string): AssetDetails; + getSymbol(): string; + setSymbol(value: string): AssetDetails; + getTotalSupply(): string; + setTotalSupply(value: string): AssetDetails; + getDecimals(): number; + setDecimals(value: number): AssetDetails; + getMinLpStake(): string; + setMinLpStake(value: string): AssetDetails; + + hasBuiltinAsset(): boolean; + clearBuiltinAsset(): void; + getBuiltinAsset(): BuiltinAsset | undefined; + setBuiltinAsset(value?: BuiltinAsset): AssetDetails; + + hasErc20(): boolean; + clearErc20(): void; + getErc20(): ERC20 | undefined; + setErc20(value?: ERC20): AssetDetails; + + getSourceCase(): AssetDetails.SourceCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssetDetails.AsObject; + static toObject(includeInstance: boolean, msg: AssetDetails): AssetDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssetDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssetDetails; + static deserializeBinaryFromReader(message: AssetDetails, reader: jspb.BinaryReader): AssetDetails; } export namespace AssetDetails { - export type AsObject = { - name: string, - symbol: string, - totalSupply: string, - decimals: number, - minLpStake: string, - builtinAsset?: BuiltinAsset.AsObject, - erc20?: ERC20.AsObject, - } - - export enum SourceCase { - SOURCE_NOT_SET = 0, - BUILTIN_ASSET = 101, - ERC20 = 102, - } + export type AsObject = { + name: string, + symbol: string, + totalSupply: string, + decimals: number, + minLpStake: string, + builtinAsset?: BuiltinAsset.AsObject, + erc20?: ERC20.AsObject, + } + + export enum SourceCase { + SOURCE_NOT_SET = 0, + BUILTIN_ASSET = 101, + ERC20 = 102, + } + } export class BuiltinAsset extends jspb.Message { - getMaxFaucetAmountMint(): string; - setMaxFaucetAmountMint(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuiltinAsset.AsObject; - static toObject(includeInstance: boolean, msg: BuiltinAsset): BuiltinAsset.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BuiltinAsset, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuiltinAsset; - static deserializeBinaryFromReader(message: BuiltinAsset, reader: jspb.BinaryReader): BuiltinAsset; + getMaxFaucetAmountMint(): string; + setMaxFaucetAmountMint(value: string): BuiltinAsset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuiltinAsset.AsObject; + static toObject(includeInstance: boolean, msg: BuiltinAsset): BuiltinAsset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BuiltinAsset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuiltinAsset; + static deserializeBinaryFromReader(message: BuiltinAsset, reader: jspb.BinaryReader): BuiltinAsset; } export namespace BuiltinAsset { - export type AsObject = { - maxFaucetAmountMint: string, - } + export type AsObject = { + maxFaucetAmountMint: string, + } } export class ERC20 extends jspb.Message { - getContractAddress(): string; - setContractAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20.AsObject; - static toObject(includeInstance: boolean, msg: ERC20): ERC20.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20; - static deserializeBinaryFromReader(message: ERC20, reader: jspb.BinaryReader): ERC20; + getContractAddress(): string; + setContractAddress(value: string): ERC20; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20.AsObject; + static toObject(includeInstance: boolean, msg: ERC20): ERC20.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20; + static deserializeBinaryFromReader(message: ERC20, reader: jspb.BinaryReader): ERC20; } export namespace ERC20 { - export type AsObject = { - contractAddress: string, - } + export type AsObject = { + contractAddress: string, + } } - diff --git a/grpc/clients/js/generated/assets_pb_service.d.ts b/grpc/clients/js/generated/assets_pb_service.d.ts deleted file mode 100644 index b03d6874..00000000 --- a/grpc/clients/js/generated/assets_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: assets.proto - diff --git a/grpc/clients/js/generated/assets_pb_service.js b/grpc/clients/js/generated/assets_pb_service.js deleted file mode 100644 index b03d6874..00000000 --- a/grpc/clients/js/generated/assets_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: assets.proto - diff --git a/grpc/clients/js/generated/chain_events_grpc_pb.d.ts b/grpc/clients/js/generated/chain_events_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/chain_events_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/chain_events_grpc_pb.js b/grpc/clients/js/generated/chain_events_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/chain_events_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/chain_events_pb.d.ts b/grpc/clients/js/generated/chain_events_pb.d.ts index 0e3182d1..7a9504ee 100644 --- a/grpc/clients/js/generated/chain_events_pb.d.ts +++ b/grpc/clients/js/generated/chain_events_pb.d.ts @@ -1,514 +1,616 @@ // package: vega // file: chain_events.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class BuiltinAssetDeposit extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuiltinAssetDeposit.AsObject; - static toObject(includeInstance: boolean, msg: BuiltinAssetDeposit): BuiltinAssetDeposit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BuiltinAssetDeposit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuiltinAssetDeposit; - static deserializeBinaryFromReader(message: BuiltinAssetDeposit, reader: jspb.BinaryReader): BuiltinAssetDeposit; + getVegaAssetId(): string; + setVegaAssetId(value: string): BuiltinAssetDeposit; + getPartyId(): string; + setPartyId(value: string): BuiltinAssetDeposit; + getAmount(): number; + setAmount(value: number): BuiltinAssetDeposit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuiltinAssetDeposit.AsObject; + static toObject(includeInstance: boolean, msg: BuiltinAssetDeposit): BuiltinAssetDeposit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BuiltinAssetDeposit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuiltinAssetDeposit; + static deserializeBinaryFromReader(message: BuiltinAssetDeposit, reader: jspb.BinaryReader): BuiltinAssetDeposit; } export namespace BuiltinAssetDeposit { - export type AsObject = { - vegaAssetId: string, - partyId: string, - amount: number, - } + export type AsObject = { + vegaAssetId: string, + partyId: string, + amount: number, + } } export class BuiltinAssetWithdrawal extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuiltinAssetWithdrawal.AsObject; - static toObject(includeInstance: boolean, msg: BuiltinAssetWithdrawal): BuiltinAssetWithdrawal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BuiltinAssetWithdrawal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuiltinAssetWithdrawal; - static deserializeBinaryFromReader(message: BuiltinAssetWithdrawal, reader: jspb.BinaryReader): BuiltinAssetWithdrawal; + getVegaAssetId(): string; + setVegaAssetId(value: string): BuiltinAssetWithdrawal; + getPartyId(): string; + setPartyId(value: string): BuiltinAssetWithdrawal; + getAmount(): number; + setAmount(value: number): BuiltinAssetWithdrawal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuiltinAssetWithdrawal.AsObject; + static toObject(includeInstance: boolean, msg: BuiltinAssetWithdrawal): BuiltinAssetWithdrawal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BuiltinAssetWithdrawal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuiltinAssetWithdrawal; + static deserializeBinaryFromReader(message: BuiltinAssetWithdrawal, reader: jspb.BinaryReader): BuiltinAssetWithdrawal; } export namespace BuiltinAssetWithdrawal { - export type AsObject = { - vegaAssetId: string, - partyId: string, - amount: number, - } + export type AsObject = { + vegaAssetId: string, + partyId: string, + amount: number, + } } export class BuiltinAssetEvent extends jspb.Message { - hasDeposit(): boolean; - clearDeposit(): void; - getDeposit(): BuiltinAssetDeposit | undefined; - setDeposit(value?: BuiltinAssetDeposit): void; - - hasWithdrawal(): boolean; - clearWithdrawal(): void; - getWithdrawal(): BuiltinAssetWithdrawal | undefined; - setWithdrawal(value?: BuiltinAssetWithdrawal): void; - - getActionCase(): BuiltinAssetEvent.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuiltinAssetEvent.AsObject; - static toObject(includeInstance: boolean, msg: BuiltinAssetEvent): BuiltinAssetEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BuiltinAssetEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuiltinAssetEvent; - static deserializeBinaryFromReader(message: BuiltinAssetEvent, reader: jspb.BinaryReader): BuiltinAssetEvent; + + hasDeposit(): boolean; + clearDeposit(): void; + getDeposit(): BuiltinAssetDeposit | undefined; + setDeposit(value?: BuiltinAssetDeposit): BuiltinAssetEvent; + + hasWithdrawal(): boolean; + clearWithdrawal(): void; + getWithdrawal(): BuiltinAssetWithdrawal | undefined; + setWithdrawal(value?: BuiltinAssetWithdrawal): BuiltinAssetEvent; + + getActionCase(): BuiltinAssetEvent.ActionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuiltinAssetEvent.AsObject; + static toObject(includeInstance: boolean, msg: BuiltinAssetEvent): BuiltinAssetEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BuiltinAssetEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuiltinAssetEvent; + static deserializeBinaryFromReader(message: BuiltinAssetEvent, reader: jspb.BinaryReader): BuiltinAssetEvent; } export namespace BuiltinAssetEvent { - export type AsObject = { - deposit?: BuiltinAssetDeposit.AsObject, - withdrawal?: BuiltinAssetWithdrawal.AsObject, - } + export type AsObject = { + deposit?: BuiltinAssetDeposit.AsObject, + withdrawal?: BuiltinAssetWithdrawal.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + DEPOSIT = 1001, + WITHDRAWAL = 1002, + } - export enum ActionCase { - ACTION_NOT_SET = 0, - DEPOSIT = 1001, - WITHDRAWAL = 1002, - } } export class ERC20AssetList extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; + getVegaAssetId(): string; + setVegaAssetId(value: string): ERC20AssetList; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20AssetList.AsObject; - static toObject(includeInstance: boolean, msg: ERC20AssetList): ERC20AssetList.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20AssetList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20AssetList; - static deserializeBinaryFromReader(message: ERC20AssetList, reader: jspb.BinaryReader): ERC20AssetList; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20AssetList.AsObject; + static toObject(includeInstance: boolean, msg: ERC20AssetList): ERC20AssetList.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20AssetList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20AssetList; + static deserializeBinaryFromReader(message: ERC20AssetList, reader: jspb.BinaryReader): ERC20AssetList; } export namespace ERC20AssetList { - export type AsObject = { - vegaAssetId: string, - } + export type AsObject = { + vegaAssetId: string, + } } export class ERC20AssetDelist extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; + getVegaAssetId(): string; + setVegaAssetId(value: string): ERC20AssetDelist; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20AssetDelist.AsObject; - static toObject(includeInstance: boolean, msg: ERC20AssetDelist): ERC20AssetDelist.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20AssetDelist, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20AssetDelist; - static deserializeBinaryFromReader(message: ERC20AssetDelist, reader: jspb.BinaryReader): ERC20AssetDelist; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20AssetDelist.AsObject; + static toObject(includeInstance: boolean, msg: ERC20AssetDelist): ERC20AssetDelist.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20AssetDelist, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20AssetDelist; + static deserializeBinaryFromReader(message: ERC20AssetDelist, reader: jspb.BinaryReader): ERC20AssetDelist; } export namespace ERC20AssetDelist { - export type AsObject = { - vegaAssetId: string, - } + export type AsObject = { + vegaAssetId: string, + } } export class ERC20Deposit extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; - - getSourceEthereumAddress(): string; - setSourceEthereumAddress(value: string): void; - - getTargetPartyId(): string; - setTargetPartyId(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20Deposit.AsObject; - static toObject(includeInstance: boolean, msg: ERC20Deposit): ERC20Deposit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20Deposit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20Deposit; - static deserializeBinaryFromReader(message: ERC20Deposit, reader: jspb.BinaryReader): ERC20Deposit; + getVegaAssetId(): string; + setVegaAssetId(value: string): ERC20Deposit; + getSourceEthereumAddress(): string; + setSourceEthereumAddress(value: string): ERC20Deposit; + getTargetPartyId(): string; + setTargetPartyId(value: string): ERC20Deposit; + getAmount(): string; + setAmount(value: string): ERC20Deposit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20Deposit.AsObject; + static toObject(includeInstance: boolean, msg: ERC20Deposit): ERC20Deposit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20Deposit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20Deposit; + static deserializeBinaryFromReader(message: ERC20Deposit, reader: jspb.BinaryReader): ERC20Deposit; } export namespace ERC20Deposit { - export type AsObject = { - vegaAssetId: string, - sourceEthereumAddress: string, - targetPartyId: string, - amount: string, - } + export type AsObject = { + vegaAssetId: string, + sourceEthereumAddress: string, + targetPartyId: string, + amount: string, + } } export class ERC20Withdrawal extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; - - getTargetEthereumAddress(): string; - setTargetEthereumAddress(value: string): void; - - getReferenceNonce(): string; - setReferenceNonce(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20Withdrawal.AsObject; - static toObject(includeInstance: boolean, msg: ERC20Withdrawal): ERC20Withdrawal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20Withdrawal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20Withdrawal; - static deserializeBinaryFromReader(message: ERC20Withdrawal, reader: jspb.BinaryReader): ERC20Withdrawal; + getVegaAssetId(): string; + setVegaAssetId(value: string): ERC20Withdrawal; + getTargetEthereumAddress(): string; + setTargetEthereumAddress(value: string): ERC20Withdrawal; + getReferenceNonce(): string; + setReferenceNonce(value: string): ERC20Withdrawal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20Withdrawal.AsObject; + static toObject(includeInstance: boolean, msg: ERC20Withdrawal): ERC20Withdrawal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20Withdrawal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20Withdrawal; + static deserializeBinaryFromReader(message: ERC20Withdrawal, reader: jspb.BinaryReader): ERC20Withdrawal; } export namespace ERC20Withdrawal { - export type AsObject = { - vegaAssetId: string, - targetEthereumAddress: string, - referenceNonce: string, - } + export type AsObject = { + vegaAssetId: string, + targetEthereumAddress: string, + referenceNonce: string, + } } export class ERC20Event extends jspb.Message { - getIndex(): number; - setIndex(value: number): void; - - getBlock(): number; - setBlock(value: number): void; - - hasAssetList(): boolean; - clearAssetList(): void; - getAssetList(): ERC20AssetList | undefined; - setAssetList(value?: ERC20AssetList): void; - - hasAssetDelist(): boolean; - clearAssetDelist(): void; - getAssetDelist(): ERC20AssetDelist | undefined; - setAssetDelist(value?: ERC20AssetDelist): void; - - hasDeposit(): boolean; - clearDeposit(): void; - getDeposit(): ERC20Deposit | undefined; - setDeposit(value?: ERC20Deposit): void; - - hasWithdrawal(): boolean; - clearWithdrawal(): void; - getWithdrawal(): ERC20Withdrawal | undefined; - setWithdrawal(value?: ERC20Withdrawal): void; - - getActionCase(): ERC20Event.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ERC20Event.AsObject; - static toObject(includeInstance: boolean, msg: ERC20Event): ERC20Event.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ERC20Event, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ERC20Event; - static deserializeBinaryFromReader(message: ERC20Event, reader: jspb.BinaryReader): ERC20Event; + getIndex(): number; + setIndex(value: number): ERC20Event; + getBlock(): number; + setBlock(value: number): ERC20Event; + + hasAssetList(): boolean; + clearAssetList(): void; + getAssetList(): ERC20AssetList | undefined; + setAssetList(value?: ERC20AssetList): ERC20Event; + + hasAssetDelist(): boolean; + clearAssetDelist(): void; + getAssetDelist(): ERC20AssetDelist | undefined; + setAssetDelist(value?: ERC20AssetDelist): ERC20Event; + + hasDeposit(): boolean; + clearDeposit(): void; + getDeposit(): ERC20Deposit | undefined; + setDeposit(value?: ERC20Deposit): ERC20Event; + + hasWithdrawal(): boolean; + clearWithdrawal(): void; + getWithdrawal(): ERC20Withdrawal | undefined; + setWithdrawal(value?: ERC20Withdrawal): ERC20Event; + + getActionCase(): ERC20Event.ActionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ERC20Event.AsObject; + static toObject(includeInstance: boolean, msg: ERC20Event): ERC20Event.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ERC20Event, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ERC20Event; + static deserializeBinaryFromReader(message: ERC20Event, reader: jspb.BinaryReader): ERC20Event; } export namespace ERC20Event { - export type AsObject = { - index: number, - block: number, - assetList?: ERC20AssetList.AsObject, - assetDelist?: ERC20AssetDelist.AsObject, - deposit?: ERC20Deposit.AsObject, - withdrawal?: ERC20Withdrawal.AsObject, - } - - export enum ActionCase { - ACTION_NOT_SET = 0, - ASSET_LIST = 1001, - ASSET_DELIST = 1002, - DEPOSIT = 1003, - WITHDRAWAL = 1004, - } -} - -export class BTCDeposit extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; + export type AsObject = { + index: number, + block: number, + assetList?: ERC20AssetList.AsObject, + assetDelist?: ERC20AssetDelist.AsObject, + deposit?: ERC20Deposit.AsObject, + withdrawal?: ERC20Withdrawal.AsObject, + } - getSourceBtcAddress(): string; - setSourceBtcAddress(value: string): void; + export enum ActionCase { + ACTION_NOT_SET = 0, + ASSET_LIST = 1001, + ASSET_DELIST = 1002, + DEPOSIT = 1003, + WITHDRAWAL = 1004, + } - getTargetPartyId(): string; - setTargetPartyId(value: string): void; +} - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BTCDeposit.AsObject; - static toObject(includeInstance: boolean, msg: BTCDeposit): BTCDeposit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BTCDeposit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BTCDeposit; - static deserializeBinaryFromReader(message: BTCDeposit, reader: jspb.BinaryReader): BTCDeposit; +export class BTCDeposit extends jspb.Message { + getVegaAssetId(): string; + setVegaAssetId(value: string): BTCDeposit; + getSourceBtcAddress(): string; + setSourceBtcAddress(value: string): BTCDeposit; + getTargetPartyId(): string; + setTargetPartyId(value: string): BTCDeposit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BTCDeposit.AsObject; + static toObject(includeInstance: boolean, msg: BTCDeposit): BTCDeposit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BTCDeposit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BTCDeposit; + static deserializeBinaryFromReader(message: BTCDeposit, reader: jspb.BinaryReader): BTCDeposit; } export namespace BTCDeposit { - export type AsObject = { - vegaAssetId: string, - sourceBtcAddress: string, - targetPartyId: string, - } + export type AsObject = { + vegaAssetId: string, + sourceBtcAddress: string, + targetPartyId: string, + } } export class BTCWithdrawal extends jspb.Message { - getVegaAssetId(): string; - setVegaAssetId(value: string): void; - - getSourcePartyId(): string; - setSourcePartyId(value: string): void; - - getTargetBtcAddress(): string; - setTargetBtcAddress(value: string): void; - - getReferenceNonce(): string; - setReferenceNonce(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BTCWithdrawal.AsObject; - static toObject(includeInstance: boolean, msg: BTCWithdrawal): BTCWithdrawal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BTCWithdrawal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BTCWithdrawal; - static deserializeBinaryFromReader(message: BTCWithdrawal, reader: jspb.BinaryReader): BTCWithdrawal; + getVegaAssetId(): string; + setVegaAssetId(value: string): BTCWithdrawal; + getSourcePartyId(): string; + setSourcePartyId(value: string): BTCWithdrawal; + getTargetBtcAddress(): string; + setTargetBtcAddress(value: string): BTCWithdrawal; + getReferenceNonce(): string; + setReferenceNonce(value: string): BTCWithdrawal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BTCWithdrawal.AsObject; + static toObject(includeInstance: boolean, msg: BTCWithdrawal): BTCWithdrawal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BTCWithdrawal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BTCWithdrawal; + static deserializeBinaryFromReader(message: BTCWithdrawal, reader: jspb.BinaryReader): BTCWithdrawal; } export namespace BTCWithdrawal { - export type AsObject = { - vegaAssetId: string, - sourcePartyId: string, - targetBtcAddress: string, - referenceNonce: string, - } + export type AsObject = { + vegaAssetId: string, + sourcePartyId: string, + targetBtcAddress: string, + referenceNonce: string, + } } export class BTCEvent extends jspb.Message { - getIndex(): number; - setIndex(value: number): void; + getIndex(): number; + setIndex(value: number): BTCEvent; + getBlock(): number; + setBlock(value: number): BTCEvent; - getBlock(): number; - setBlock(value: number): void; + hasDeposit(): boolean; + clearDeposit(): void; + getDeposit(): BTCDeposit | undefined; + setDeposit(value?: BTCDeposit): BTCEvent; - hasDeposit(): boolean; - clearDeposit(): void; - getDeposit(): BTCDeposit | undefined; - setDeposit(value?: BTCDeposit): void; + hasWithdrawal(): boolean; + clearWithdrawal(): void; + getWithdrawal(): BTCWithdrawal | undefined; + setWithdrawal(value?: BTCWithdrawal): BTCEvent; - hasWithdrawal(): boolean; - clearWithdrawal(): void; - getWithdrawal(): BTCWithdrawal | undefined; - setWithdrawal(value?: BTCWithdrawal): void; + getActionCase(): BTCEvent.ActionCase; - getActionCase(): BTCEvent.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BTCEvent.AsObject; - static toObject(includeInstance: boolean, msg: BTCEvent): BTCEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BTCEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BTCEvent; - static deserializeBinaryFromReader(message: BTCEvent, reader: jspb.BinaryReader): BTCEvent; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BTCEvent.AsObject; + static toObject(includeInstance: boolean, msg: BTCEvent): BTCEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BTCEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BTCEvent; + static deserializeBinaryFromReader(message: BTCEvent, reader: jspb.BinaryReader): BTCEvent; } export namespace BTCEvent { - export type AsObject = { - index: number, - block: number, - deposit?: BTCDeposit.AsObject, - withdrawal?: BTCWithdrawal.AsObject, - } + export type AsObject = { + index: number, + block: number, + deposit?: BTCDeposit.AsObject, + withdrawal?: BTCWithdrawal.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + DEPOSIT = 1001, + WITHDRAWAL = 1002, + } - export enum ActionCase { - ACTION_NOT_SET = 0, - DEPOSIT = 1001, - WITHDRAWAL = 1002, - } } export class EthereumAddress extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; + getAddress(): string; + setAddress(value: string): EthereumAddress; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EthereumAddress.AsObject; - static toObject(includeInstance: boolean, msg: EthereumAddress): EthereumAddress.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EthereumAddress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EthereumAddress; - static deserializeBinaryFromReader(message: EthereumAddress, reader: jspb.BinaryReader): EthereumAddress; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EthereumAddress.AsObject; + static toObject(includeInstance: boolean, msg: EthereumAddress): EthereumAddress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EthereumAddress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EthereumAddress; + static deserializeBinaryFromReader(message: EthereumAddress, reader: jspb.BinaryReader): EthereumAddress; } export namespace EthereumAddress { - export type AsObject = { - address: string, - } + export type AsObject = { + address: string, + } } export class BitcoinAddress extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; + getAddress(): string; + setAddress(value: string): BitcoinAddress; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BitcoinAddress.AsObject; - static toObject(includeInstance: boolean, msg: BitcoinAddress): BitcoinAddress.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BitcoinAddress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BitcoinAddress; - static deserializeBinaryFromReader(message: BitcoinAddress, reader: jspb.BinaryReader): BitcoinAddress; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BitcoinAddress.AsObject; + static toObject(includeInstance: boolean, msg: BitcoinAddress): BitcoinAddress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BitcoinAddress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BitcoinAddress; + static deserializeBinaryFromReader(message: BitcoinAddress, reader: jspb.BinaryReader): BitcoinAddress; } export namespace BitcoinAddress { - export type AsObject = { - address: string, - } + export type AsObject = { + address: string, + } } export class Identifier extends jspb.Message { - hasEthereumAddress(): boolean; - clearEthereumAddress(): void; - getEthereumAddress(): EthereumAddress | undefined; - setEthereumAddress(value?: EthereumAddress): void; - - hasBitcoinAddress(): boolean; - clearBitcoinAddress(): void; - getBitcoinAddress(): BitcoinAddress | undefined; - setBitcoinAddress(value?: BitcoinAddress): void; - - getIdentifierCase(): Identifier.IdentifierCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Identifier.AsObject; - static toObject(includeInstance: boolean, msg: Identifier): Identifier.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Identifier, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Identifier; - static deserializeBinaryFromReader(message: Identifier, reader: jspb.BinaryReader): Identifier; + + hasEthereumAddress(): boolean; + clearEthereumAddress(): void; + getEthereumAddress(): EthereumAddress | undefined; + setEthereumAddress(value?: EthereumAddress): Identifier; + + hasBitcoinAddress(): boolean; + clearBitcoinAddress(): void; + getBitcoinAddress(): BitcoinAddress | undefined; + setBitcoinAddress(value?: BitcoinAddress): Identifier; + + getIdentifierCase(): Identifier.IdentifierCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Identifier.AsObject; + static toObject(includeInstance: boolean, msg: Identifier): Identifier.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Identifier, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Identifier; + static deserializeBinaryFromReader(message: Identifier, reader: jspb.BinaryReader): Identifier; } export namespace Identifier { - export type AsObject = { - ethereumAddress?: EthereumAddress.AsObject, - bitcoinAddress?: BitcoinAddress.AsObject, - } + export type AsObject = { + ethereumAddress?: EthereumAddress.AsObject, + bitcoinAddress?: BitcoinAddress.AsObject, + } + + export enum IdentifierCase { + IDENTIFIER_NOT_SET = 0, + ETHEREUM_ADDRESS = 1, + BITCOIN_ADDRESS = 2, + } - export enum IdentifierCase { - IDENTIFIER_NOT_SET = 0, - ETHEREUM_ADDRESS = 1, - BITCOIN_ADDRESS = 2, - } } export class AddValidator extends jspb.Message { - hasId(): boolean; - clearId(): void; - getId(): Identifier | undefined; - setId(value?: Identifier): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddValidator.AsObject; - static toObject(includeInstance: boolean, msg: AddValidator): AddValidator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddValidator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddValidator; - static deserializeBinaryFromReader(message: AddValidator, reader: jspb.BinaryReader): AddValidator; + hasId(): boolean; + clearId(): void; + getId(): Identifier | undefined; + setId(value?: Identifier): AddValidator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddValidator.AsObject; + static toObject(includeInstance: boolean, msg: AddValidator): AddValidator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddValidator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddValidator; + static deserializeBinaryFromReader(message: AddValidator, reader: jspb.BinaryReader): AddValidator; } export namespace AddValidator { - export type AsObject = { - id?: Identifier.AsObject, - } + export type AsObject = { + id?: Identifier.AsObject, + } } export class RemoveValidator extends jspb.Message { - hasId(): boolean; - clearId(): void; - getId(): Identifier | undefined; - setId(value?: Identifier): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveValidator.AsObject; - static toObject(includeInstance: boolean, msg: RemoveValidator): RemoveValidator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveValidator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveValidator; - static deserializeBinaryFromReader(message: RemoveValidator, reader: jspb.BinaryReader): RemoveValidator; + hasId(): boolean; + clearId(): void; + getId(): Identifier | undefined; + setId(value?: Identifier): RemoveValidator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveValidator.AsObject; + static toObject(includeInstance: boolean, msg: RemoveValidator): RemoveValidator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemoveValidator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveValidator; + static deserializeBinaryFromReader(message: RemoveValidator, reader: jspb.BinaryReader): RemoveValidator; } export namespace RemoveValidator { - export type AsObject = { - id?: Identifier.AsObject, - } + export type AsObject = { + id?: Identifier.AsObject, + } } export class ValidatorEvent extends jspb.Message { - getSourceId(): string; - setSourceId(value: string): void; - - hasAdd(): boolean; - clearAdd(): void; - getAdd(): AddValidator | undefined; - setAdd(value?: AddValidator): void; - - hasRm(): boolean; - clearRm(): void; - getRm(): RemoveValidator | undefined; - setRm(value?: RemoveValidator): void; - - getActionCase(): ValidatorEvent.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorEvent.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorEvent): ValidatorEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorEvent; - static deserializeBinaryFromReader(message: ValidatorEvent, reader: jspb.BinaryReader): ValidatorEvent; -} + getSourceId(): string; + setSourceId(value: string): ValidatorEvent; -export namespace ValidatorEvent { - export type AsObject = { - sourceId: string, - add?: AddValidator.AsObject, - rm?: RemoveValidator.AsObject, - } + hasAdd(): boolean; + clearAdd(): void; + getAdd(): AddValidator | undefined; + setAdd(value?: AddValidator): ValidatorEvent; + + hasRm(): boolean; + clearRm(): void; + getRm(): RemoveValidator | undefined; + setRm(value?: RemoveValidator): ValidatorEvent; + + getActionCase(): ValidatorEvent.ActionCase; - export enum ActionCase { - ACTION_NOT_SET = 0, - ADD = 1001, - RM = 1002, - } + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidatorEvent.AsObject; + static toObject(includeInstance: boolean, msg: ValidatorEvent): ValidatorEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidatorEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidatorEvent; + static deserializeBinaryFromReader(message: ValidatorEvent, reader: jspb.BinaryReader): ValidatorEvent; } +export namespace ValidatorEvent { + export type AsObject = { + sourceId: string, + add?: AddValidator.AsObject, + rm?: RemoveValidator.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + ADD = 1001, + RM = 1002, + } + +} + +export class StakingEvent extends jspb.Message { + getIndex(): number; + setIndex(value: number): StakingEvent; + getBlock(): number; + setBlock(value: number): StakingEvent; + + hasStakeDeposited(): boolean; + clearStakeDeposited(): void; + getStakeDeposited(): StakeDeposited | undefined; + setStakeDeposited(value?: StakeDeposited): StakingEvent; + + hasStakeRemoved(): boolean; + clearStakeRemoved(): void; + getStakeRemoved(): StakeRemoved | undefined; + setStakeRemoved(value?: StakeRemoved): StakingEvent; + + getActionCase(): StakingEvent.ActionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakingEvent.AsObject; + static toObject(includeInstance: boolean, msg: StakingEvent): StakingEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakingEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakingEvent; + static deserializeBinaryFromReader(message: StakingEvent, reader: jspb.BinaryReader): StakingEvent; +} + +export namespace StakingEvent { + export type AsObject = { + index: number, + block: number, + stakeDeposited?: StakeDeposited.AsObject, + stakeRemoved?: StakeRemoved.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + STAKE_DEPOSITED = 1001, + STAKE_REMOVED = 1002, + } + +} + +export class StakeDeposited extends jspb.Message { + getEthereumAddress(): string; + setEthereumAddress(value: string): StakeDeposited; + getVegaPublicKey(): string; + setVegaPublicKey(value: string): StakeDeposited; + getAmount(): string; + setAmount(value: string): StakeDeposited; + getBlockTime(): number; + setBlockTime(value: number): StakeDeposited; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakeDeposited.AsObject; + static toObject(includeInstance: boolean, msg: StakeDeposited): StakeDeposited.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakeDeposited, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakeDeposited; + static deserializeBinaryFromReader(message: StakeDeposited, reader: jspb.BinaryReader): StakeDeposited; +} + +export namespace StakeDeposited { + export type AsObject = { + ethereumAddress: string, + vegaPublicKey: string, + amount: string, + blockTime: number, + } +} + +export class StakeRemoved extends jspb.Message { + getEthereumAddress(): string; + setEthereumAddress(value: string): StakeRemoved; + getVegaPublicKey(): string; + setVegaPublicKey(value: string): StakeRemoved; + getAmount(): string; + setAmount(value: string): StakeRemoved; + getBlockTime(): number; + setBlockTime(value: number): StakeRemoved; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakeRemoved.AsObject; + static toObject(includeInstance: boolean, msg: StakeRemoved): StakeRemoved.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakeRemoved, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakeRemoved; + static deserializeBinaryFromReader(message: StakeRemoved, reader: jspb.BinaryReader): StakeRemoved; +} + +export namespace StakeRemoved { + export type AsObject = { + ethereumAddress: string, + vegaPublicKey: string, + amount: string, + blockTime: number, + } +} diff --git a/grpc/clients/js/generated/chain_events_pb.js b/grpc/clients/js/generated/chain_events_pb.js index 58e75b49..a321dc6c 100644 --- a/grpc/clients/js/generated/chain_events_pb.js +++ b/grpc/clients/js/generated/chain_events_pb.js @@ -34,6 +34,10 @@ goog.exportSymbol('proto.vega.EthereumAddress', null, global); goog.exportSymbol('proto.vega.Identifier', null, global); goog.exportSymbol('proto.vega.Identifier.IdentifierCase', null, global); goog.exportSymbol('proto.vega.RemoveValidator', null, global); +goog.exportSymbol('proto.vega.StakeDeposited', null, global); +goog.exportSymbol('proto.vega.StakeRemoved', null, global); +goog.exportSymbol('proto.vega.StakingEvent', null, global); +goog.exportSymbol('proto.vega.StakingEvent.ActionCase', null, global); goog.exportSymbol('proto.vega.ValidatorEvent', null, global); goog.exportSymbol('proto.vega.ValidatorEvent.ActionCase', null, global); /** @@ -393,6 +397,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.vega.ValidatorEvent.displayName = 'proto.vega.ValidatorEvent'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.StakingEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, 500, null, proto.vega.StakingEvent.oneofGroups_); +}; +goog.inherits(proto.vega.StakingEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.StakingEvent.displayName = 'proto.vega.StakingEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.StakeDeposited = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.StakeDeposited, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.StakeDeposited.displayName = 'proto.vega.StakeDeposited'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.StakeRemoved = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.StakeRemoved, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.StakeRemoved.displayName = 'proto.vega.StakeRemoved'; +} @@ -3809,4 +3876,732 @@ proto.vega.ValidatorEvent.prototype.hasRm = function() { }; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.vega.StakingEvent.oneofGroups_ = [[1001,1002]]; + +/** + * @enum {number} + */ +proto.vega.StakingEvent.ActionCase = { + ACTION_NOT_SET: 0, + STAKE_DEPOSITED: 1001, + STAKE_REMOVED: 1002 +}; + +/** + * @return {proto.vega.StakingEvent.ActionCase} + */ +proto.vega.StakingEvent.prototype.getActionCase = function() { + return /** @type {proto.vega.StakingEvent.ActionCase} */(jspb.Message.computeOneofCase(this, proto.vega.StakingEvent.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.StakingEvent.prototype.toObject = function(opt_includeInstance) { + return proto.vega.StakingEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.StakingEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakingEvent.toObject = function(includeInstance, msg) { + var f, obj = { + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + block: jspb.Message.getFieldWithDefault(msg, 2, 0), + stakeDeposited: (f = msg.getStakeDeposited()) && proto.vega.StakeDeposited.toObject(includeInstance, f), + stakeRemoved: (f = msg.getStakeRemoved()) && proto.vega.StakeRemoved.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.StakingEvent} + */ +proto.vega.StakingEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.StakingEvent; + return proto.vega.StakingEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.StakingEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.StakingEvent} + */ +proto.vega.StakingEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setIndex(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlock(value); + break; + case 1001: + var value = new proto.vega.StakeDeposited; + reader.readMessage(value,proto.vega.StakeDeposited.deserializeBinaryFromReader); + msg.setStakeDeposited(value); + break; + case 1002: + var value = new proto.vega.StakeRemoved; + reader.readMessage(value,proto.vega.StakeRemoved.deserializeBinaryFromReader); + msg.setStakeRemoved(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.StakingEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.StakingEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.StakingEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakingEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIndex(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getBlock(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getStakeDeposited(); + if (f != null) { + writer.writeMessage( + 1001, + f, + proto.vega.StakeDeposited.serializeBinaryToWriter + ); + } + f = message.getStakeRemoved(); + if (f != null) { + writer.writeMessage( + 1002, + f, + proto.vega.StakeRemoved.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 index = 1; + * @return {number} + */ +proto.vega.StakingEvent.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.StakingEvent} returns this + */ +proto.vega.StakingEvent.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 block = 2; + * @return {number} + */ +proto.vega.StakingEvent.prototype.getBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.StakingEvent} returns this + */ +proto.vega.StakingEvent.prototype.setBlock = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional StakeDeposited stake_deposited = 1001; + * @return {?proto.vega.StakeDeposited} + */ +proto.vega.StakingEvent.prototype.getStakeDeposited = function() { + return /** @type{?proto.vega.StakeDeposited} */ ( + jspb.Message.getWrapperField(this, proto.vega.StakeDeposited, 1001)); +}; + + +/** + * @param {?proto.vega.StakeDeposited|undefined} value + * @return {!proto.vega.StakingEvent} returns this +*/ +proto.vega.StakingEvent.prototype.setStakeDeposited = function(value) { + return jspb.Message.setOneofWrapperField(this, 1001, proto.vega.StakingEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.StakingEvent} returns this + */ +proto.vega.StakingEvent.prototype.clearStakeDeposited = function() { + return this.setStakeDeposited(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.StakingEvent.prototype.hasStakeDeposited = function() { + return jspb.Message.getField(this, 1001) != null; +}; + + +/** + * optional StakeRemoved stake_removed = 1002; + * @return {?proto.vega.StakeRemoved} + */ +proto.vega.StakingEvent.prototype.getStakeRemoved = function() { + return /** @type{?proto.vega.StakeRemoved} */ ( + jspb.Message.getWrapperField(this, proto.vega.StakeRemoved, 1002)); +}; + + +/** + * @param {?proto.vega.StakeRemoved|undefined} value + * @return {!proto.vega.StakingEvent} returns this +*/ +proto.vega.StakingEvent.prototype.setStakeRemoved = function(value) { + return jspb.Message.setOneofWrapperField(this, 1002, proto.vega.StakingEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.StakingEvent} returns this + */ +proto.vega.StakingEvent.prototype.clearStakeRemoved = function() { + return this.setStakeRemoved(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.StakingEvent.prototype.hasStakeRemoved = function() { + return jspb.Message.getField(this, 1002) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.StakeDeposited.prototype.toObject = function(opt_includeInstance) { + return proto.vega.StakeDeposited.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.StakeDeposited} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakeDeposited.toObject = function(includeInstance, msg) { + var f, obj = { + ethereumAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), + vegaPublicKey: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + blockTime: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.StakeDeposited} + */ +proto.vega.StakeDeposited.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.StakeDeposited; + return proto.vega.StakeDeposited.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.StakeDeposited} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.StakeDeposited} + */ +proto.vega.StakeDeposited.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setEthereumAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setVegaPublicKey(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBlockTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.StakeDeposited.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.StakeDeposited.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.StakeDeposited} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakeDeposited.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEthereumAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVegaPublicKey(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getBlockTime(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional string ethereum_address = 1; + * @return {string} + */ +proto.vega.StakeDeposited.prototype.getEthereumAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeDeposited} returns this + */ +proto.vega.StakeDeposited.prototype.setEthereumAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string vega_public_key = 2; + * @return {string} + */ +proto.vega.StakeDeposited.prototype.getVegaPublicKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeDeposited} returns this + */ +proto.vega.StakeDeposited.prototype.setVegaPublicKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string amount = 3; + * @return {string} + */ +proto.vega.StakeDeposited.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeDeposited} returns this + */ +proto.vega.StakeDeposited.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int64 block_time = 4; + * @return {number} + */ +proto.vega.StakeDeposited.prototype.getBlockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.StakeDeposited} returns this + */ +proto.vega.StakeDeposited.prototype.setBlockTime = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.StakeRemoved.prototype.toObject = function(opt_includeInstance) { + return proto.vega.StakeRemoved.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.StakeRemoved} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakeRemoved.toObject = function(includeInstance, msg) { + var f, obj = { + ethereumAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), + vegaPublicKey: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + blockTime: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.StakeRemoved} + */ +proto.vega.StakeRemoved.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.StakeRemoved; + return proto.vega.StakeRemoved.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.StakeRemoved} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.StakeRemoved} + */ +proto.vega.StakeRemoved.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setEthereumAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setVegaPublicKey(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBlockTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.StakeRemoved.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.StakeRemoved.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.StakeRemoved} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.StakeRemoved.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEthereumAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVegaPublicKey(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getBlockTime(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional string ethereum_address = 1; + * @return {string} + */ +proto.vega.StakeRemoved.prototype.getEthereumAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeRemoved} returns this + */ +proto.vega.StakeRemoved.prototype.setEthereumAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string vega_public_key = 2; + * @return {string} + */ +proto.vega.StakeRemoved.prototype.getVegaPublicKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeRemoved} returns this + */ +proto.vega.StakeRemoved.prototype.setVegaPublicKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string amount = 3; + * @return {string} + */ +proto.vega.StakeRemoved.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.StakeRemoved} returns this + */ +proto.vega.StakeRemoved.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int64 block_time = 4; + * @return {number} + */ +proto.vega.StakeRemoved.prototype.getBlockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.StakeRemoved} returns this + */ +proto.vega.StakeRemoved.prototype.setBlockTime = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + goog.object.extend(exports, proto.vega); diff --git a/grpc/clients/js/generated/chain_events_pb_service.d.ts b/grpc/clients/js/generated/chain_events_pb_service.d.ts deleted file mode 100644 index 46fb162f..00000000 --- a/grpc/clients/js/generated/chain_events_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: chain_events.proto - diff --git a/grpc/clients/js/generated/chain_events_pb_service.js b/grpc/clients/js/generated/chain_events_pb_service.js deleted file mode 100644 index 46fb162f..00000000 --- a/grpc/clients/js/generated/chain_events_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: chain_events.proto - diff --git a/grpc/clients/js/generated/commands/v1/commands_grpc_pb.d.ts b/grpc/clients/js/generated/commands/v1/commands_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/commands/v1/commands_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/commands/v1/commands_grpc_pb.js b/grpc/clients/js/generated/commands/v1/commands_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/commands/v1/commands_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/commands/v1/commands_pb.d.ts b/grpc/clients/js/generated/commands/v1/commands_pb.d.ts index f4c93b97..416f36b5 100644 --- a/grpc/clients/js/generated/commands/v1/commands_pb.d.ts +++ b/grpc/clients/js/generated/commands/v1/commands_pb.d.ts @@ -1,6 +1,9 @@ // package: vega.commands.v1 // file: commands/v1/commands.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as governance_pb from "../../governance_pb"; import * as vega_pb from "../../vega_pb"; @@ -8,319 +11,317 @@ import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wr import * as github_com_mwitkow_go_proto_validators_validator_pb from "../../github.com/mwitkow/go-proto-validators/validator_pb"; export class OrderSubmission extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPrice(): number; - setPrice(value: number): void; - - getSize(): number; - setSize(value: number): void; - - getSide(): vega_pb.SideMap[keyof vega_pb.SideMap]; - setSide(value: vega_pb.SideMap[keyof vega_pb.SideMap]): void; - - getTimeInForce(): vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap]; - setTimeInForce(value: vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap]): void; - - getExpiresAt(): number; - setExpiresAt(value: number): void; - - getType(): vega_pb.Order.TypeMap[keyof vega_pb.Order.TypeMap]; - setType(value: vega_pb.Order.TypeMap[keyof vega_pb.Order.TypeMap]): void; - - getReference(): string; - setReference(value: string): void; - - hasPeggedOrder(): boolean; - clearPeggedOrder(): void; - getPeggedOrder(): vega_pb.PeggedOrder | undefined; - setPeggedOrder(value?: vega_pb.PeggedOrder): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderSubmission.AsObject; - static toObject(includeInstance: boolean, msg: OrderSubmission): OrderSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderSubmission; - static deserializeBinaryFromReader(message: OrderSubmission, reader: jspb.BinaryReader): OrderSubmission; + getMarketId(): string; + setMarketId(value: string): OrderSubmission; + getPrice(): number; + setPrice(value: number): OrderSubmission; + getSize(): number; + setSize(value: number): OrderSubmission; + getSide(): vega_pb.Side; + setSide(value: vega_pb.Side): OrderSubmission; + getTimeInForce(): vega_pb.Order.TimeInForce; + setTimeInForce(value: vega_pb.Order.TimeInForce): OrderSubmission; + getExpiresAt(): number; + setExpiresAt(value: number): OrderSubmission; + getType(): vega_pb.Order.Type; + setType(value: vega_pb.Order.Type): OrderSubmission; + getReference(): string; + setReference(value: string): OrderSubmission; + + hasPeggedOrder(): boolean; + clearPeggedOrder(): void; + getPeggedOrder(): vega_pb.PeggedOrder | undefined; + setPeggedOrder(value?: vega_pb.PeggedOrder): OrderSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OrderSubmission.AsObject; + static toObject(includeInstance: boolean, msg: OrderSubmission): OrderSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OrderSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OrderSubmission; + static deserializeBinaryFromReader(message: OrderSubmission, reader: jspb.BinaryReader): OrderSubmission; } export namespace OrderSubmission { - export type AsObject = { - marketId: string, - price: number, - size: number, - side: vega_pb.SideMap[keyof vega_pb.SideMap], - timeInForce: vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap], - expiresAt: number, - type: vega_pb.Order.TypeMap[keyof vega_pb.Order.TypeMap], - reference: string, - peggedOrder?: vega_pb.PeggedOrder.AsObject, - } + export type AsObject = { + marketId: string, + price: number, + size: number, + side: vega_pb.Side, + timeInForce: vega_pb.Order.TimeInForce, + expiresAt: number, + type: vega_pb.Order.Type, + reference: string, + peggedOrder?: vega_pb.PeggedOrder.AsObject, + } } export class OrderCancellation extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderCancellation.AsObject; - static toObject(includeInstance: boolean, msg: OrderCancellation): OrderCancellation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderCancellation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderCancellation; - static deserializeBinaryFromReader(message: OrderCancellation, reader: jspb.BinaryReader): OrderCancellation; + getOrderId(): string; + setOrderId(value: string): OrderCancellation; + getMarketId(): string; + setMarketId(value: string): OrderCancellation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OrderCancellation.AsObject; + static toObject(includeInstance: boolean, msg: OrderCancellation): OrderCancellation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OrderCancellation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OrderCancellation; + static deserializeBinaryFromReader(message: OrderCancellation, reader: jspb.BinaryReader): OrderCancellation; } export namespace OrderCancellation { - export type AsObject = { - orderId: string, - marketId: string, - } + export type AsObject = { + orderId: string, + marketId: string, + } } export class OrderAmendment extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - hasPrice(): boolean; - clearPrice(): void; - getPrice(): vega_pb.Price | undefined; - setPrice(value?: vega_pb.Price): void; - - getSizeDelta(): number; - setSizeDelta(value: number): void; - - hasExpiresAt(): boolean; - clearExpiresAt(): void; - getExpiresAt(): vega_pb.Timestamp | undefined; - setExpiresAt(value?: vega_pb.Timestamp): void; - - getTimeInForce(): vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap]; - setTimeInForce(value: vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap]): void; - - hasPeggedOffset(): boolean; - clearPeggedOffset(): void; - getPeggedOffset(): google_protobuf_wrappers_pb.Int64Value | undefined; - setPeggedOffset(value?: google_protobuf_wrappers_pb.Int64Value): void; - - getPeggedReference(): vega_pb.PeggedReferenceMap[keyof vega_pb.PeggedReferenceMap]; - setPeggedReference(value: vega_pb.PeggedReferenceMap[keyof vega_pb.PeggedReferenceMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderAmendment.AsObject; - static toObject(includeInstance: boolean, msg: OrderAmendment): OrderAmendment.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderAmendment, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderAmendment; - static deserializeBinaryFromReader(message: OrderAmendment, reader: jspb.BinaryReader): OrderAmendment; + getOrderId(): string; + setOrderId(value: string): OrderAmendment; + getMarketId(): string; + setMarketId(value: string): OrderAmendment; + + hasPrice(): boolean; + clearPrice(): void; + getPrice(): vega_pb.Price | undefined; + setPrice(value?: vega_pb.Price): OrderAmendment; + getSizeDelta(): number; + setSizeDelta(value: number): OrderAmendment; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): vega_pb.Timestamp | undefined; + setExpiresAt(value?: vega_pb.Timestamp): OrderAmendment; + getTimeInForce(): vega_pb.Order.TimeInForce; + setTimeInForce(value: vega_pb.Order.TimeInForce): OrderAmendment; + + hasPeggedOffset(): boolean; + clearPeggedOffset(): void; + getPeggedOffset(): google_protobuf_wrappers_pb.Int64Value | undefined; + setPeggedOffset(value?: google_protobuf_wrappers_pb.Int64Value): OrderAmendment; + getPeggedReference(): vega_pb.PeggedReference; + setPeggedReference(value: vega_pb.PeggedReference): OrderAmendment; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OrderAmendment.AsObject; + static toObject(includeInstance: boolean, msg: OrderAmendment): OrderAmendment.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OrderAmendment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OrderAmendment; + static deserializeBinaryFromReader(message: OrderAmendment, reader: jspb.BinaryReader): OrderAmendment; } export namespace OrderAmendment { - export type AsObject = { - orderId: string, - marketId: string, - price?: vega_pb.Price.AsObject, - sizeDelta: number, - expiresAt?: vega_pb.Timestamp.AsObject, - timeInForce: vega_pb.Order.TimeInForceMap[keyof vega_pb.Order.TimeInForceMap], - peggedOffset?: google_protobuf_wrappers_pb.Int64Value.AsObject, - peggedReference: vega_pb.PeggedReferenceMap[keyof vega_pb.PeggedReferenceMap], - } + export type AsObject = { + orderId: string, + marketId: string, + price?: vega_pb.Price.AsObject, + sizeDelta: number, + expiresAt?: vega_pb.Timestamp.AsObject, + timeInForce: vega_pb.Order.TimeInForce, + peggedOffset?: google_protobuf_wrappers_pb.Int64Value.AsObject, + peggedReference: vega_pb.PeggedReference, + } } export class LiquidityProvisionSubmission extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getCommitmentAmount(): number; - setCommitmentAmount(value: number): void; - - getFee(): string; - setFee(value: string): void; - - clearSellsList(): void; - getSellsList(): Array; - setSellsList(value: Array): void; - addSells(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; - - clearBuysList(): void; - getBuysList(): Array; - setBuysList(value: Array): void; - addBuys(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; - - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityProvisionSubmission.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityProvisionSubmission): LiquidityProvisionSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityProvisionSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityProvisionSubmission; - static deserializeBinaryFromReader(message: LiquidityProvisionSubmission, reader: jspb.BinaryReader): LiquidityProvisionSubmission; + getMarketId(): string; + setMarketId(value: string): LiquidityProvisionSubmission; + getCommitmentAmount(): number; + setCommitmentAmount(value: number): LiquidityProvisionSubmission; + getFee(): string; + setFee(value: string): LiquidityProvisionSubmission; + clearSellsList(): void; + getSellsList(): Array; + setSellsList(value: Array): LiquidityProvisionSubmission; + addSells(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; + clearBuysList(): void; + getBuysList(): Array; + setBuysList(value: Array): LiquidityProvisionSubmission; + addBuys(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; + getReference(): string; + setReference(value: string): LiquidityProvisionSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityProvisionSubmission.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityProvisionSubmission): LiquidityProvisionSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityProvisionSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityProvisionSubmission; + static deserializeBinaryFromReader(message: LiquidityProvisionSubmission, reader: jspb.BinaryReader): LiquidityProvisionSubmission; } export namespace LiquidityProvisionSubmission { - export type AsObject = { - marketId: string, - commitmentAmount: number, - fee: string, - sellsList: Array, - buysList: Array, - reference: string, - } + export type AsObject = { + marketId: string, + commitmentAmount: number, + fee: string, + sellsList: Array, + buysList: Array, + reference: string, + } } export class WithdrawSubmission extends jspb.Message { - getAmount(): number; - setAmount(value: number): void; - - getAsset(): string; - setAsset(value: string): void; - - hasExt(): boolean; - clearExt(): void; - getExt(): vega_pb.WithdrawExt | undefined; - setExt(value?: vega_pb.WithdrawExt): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawSubmission.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawSubmission): WithdrawSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawSubmission; - static deserializeBinaryFromReader(message: WithdrawSubmission, reader: jspb.BinaryReader): WithdrawSubmission; + getAmount(): number; + setAmount(value: number): WithdrawSubmission; + getAsset(): string; + setAsset(value: string): WithdrawSubmission; + + hasExt(): boolean; + clearExt(): void; + getExt(): vega_pb.WithdrawExt | undefined; + setExt(value?: vega_pb.WithdrawExt): WithdrawSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WithdrawSubmission.AsObject; + static toObject(includeInstance: boolean, msg: WithdrawSubmission): WithdrawSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WithdrawSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WithdrawSubmission; + static deserializeBinaryFromReader(message: WithdrawSubmission, reader: jspb.BinaryReader): WithdrawSubmission; } export namespace WithdrawSubmission { - export type AsObject = { - amount: number, - asset: string, - ext?: vega_pb.WithdrawExt.AsObject, - } + export type AsObject = { + amount: number, + asset: string, + ext?: vega_pb.WithdrawExt.AsObject, + } } export class ProposalSubmission extends jspb.Message { - getReference(): string; - setReference(value: string): void; - - hasTerms(): boolean; - clearTerms(): void; - getTerms(): governance_pb.ProposalTerms | undefined; - setTerms(value?: governance_pb.ProposalTerms): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProposalSubmission.AsObject; - static toObject(includeInstance: boolean, msg: ProposalSubmission): ProposalSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProposalSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProposalSubmission; - static deserializeBinaryFromReader(message: ProposalSubmission, reader: jspb.BinaryReader): ProposalSubmission; + getReference(): string; + setReference(value: string): ProposalSubmission; + + hasTerms(): boolean; + clearTerms(): void; + getTerms(): governance_pb.ProposalTerms | undefined; + setTerms(value?: governance_pb.ProposalTerms): ProposalSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalSubmission.AsObject; + static toObject(includeInstance: boolean, msg: ProposalSubmission): ProposalSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProposalSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalSubmission; + static deserializeBinaryFromReader(message: ProposalSubmission, reader: jspb.BinaryReader): ProposalSubmission; } export namespace ProposalSubmission { - export type AsObject = { - reference: string, - terms?: governance_pb.ProposalTerms.AsObject, - } + export type AsObject = { + reference: string, + terms?: governance_pb.ProposalTerms.AsObject, + } } export class VoteSubmission extends jspb.Message { - getProposalId(): string; - setProposalId(value: string): void; - - getValue(): governance_pb.Vote.ValueMap[keyof governance_pb.Vote.ValueMap]; - setValue(value: governance_pb.Vote.ValueMap[keyof governance_pb.Vote.ValueMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VoteSubmission.AsObject; - static toObject(includeInstance: boolean, msg: VoteSubmission): VoteSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VoteSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VoteSubmission; - static deserializeBinaryFromReader(message: VoteSubmission, reader: jspb.BinaryReader): VoteSubmission; + getProposalId(): string; + setProposalId(value: string): VoteSubmission; + getValue(): governance_pb.Vote.Value; + setValue(value: governance_pb.Vote.Value): VoteSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VoteSubmission.AsObject; + static toObject(includeInstance: boolean, msg: VoteSubmission): VoteSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: VoteSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VoteSubmission; + static deserializeBinaryFromReader(message: VoteSubmission, reader: jspb.BinaryReader): VoteSubmission; } export namespace VoteSubmission { - export type AsObject = { - proposalId: string, - value: governance_pb.Vote.ValueMap[keyof governance_pb.Vote.ValueMap], - } + export type AsObject = { + proposalId: string, + value: governance_pb.Vote.Value, + } } export class DelegateSubmission extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelegateSubmission.AsObject; - static toObject(includeInstance: boolean, msg: DelegateSubmission): DelegateSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DelegateSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelegateSubmission; - static deserializeBinaryFromReader(message: DelegateSubmission, reader: jspb.BinaryReader): DelegateSubmission; + getNodeId(): string; + setNodeId(value: string): DelegateSubmission; + getAmount(): number; + setAmount(value: number): DelegateSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DelegateSubmission.AsObject; + static toObject(includeInstance: boolean, msg: DelegateSubmission): DelegateSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DelegateSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DelegateSubmission; + static deserializeBinaryFromReader(message: DelegateSubmission, reader: jspb.BinaryReader): DelegateSubmission; } export namespace DelegateSubmission { - export type AsObject = { - nodeId: string, - amount: number, - } + export type AsObject = { + nodeId: string, + amount: number, + } } export class UndelegateSubmission extends jspb.Message { - getNodeId(): string; - setNodeId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - getMethod(): UndelegateSubmission.MethodMap[keyof UndelegateSubmission.MethodMap]; - setMethod(value: UndelegateSubmission.MethodMap[keyof UndelegateSubmission.MethodMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UndelegateSubmission.AsObject; - static toObject(includeInstance: boolean, msg: UndelegateSubmission): UndelegateSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UndelegateSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UndelegateSubmission; - static deserializeBinaryFromReader(message: UndelegateSubmission, reader: jspb.BinaryReader): UndelegateSubmission; + getNodeId(): string; + setNodeId(value: string): UndelegateSubmission; + getAmount(): number; + setAmount(value: number): UndelegateSubmission; + getMethod(): UndelegateSubmission.Method; + setMethod(value: UndelegateSubmission.Method): UndelegateSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UndelegateSubmission.AsObject; + static toObject(includeInstance: boolean, msg: UndelegateSubmission): UndelegateSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UndelegateSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UndelegateSubmission; + static deserializeBinaryFromReader(message: UndelegateSubmission, reader: jspb.BinaryReader): UndelegateSubmission; } export namespace UndelegateSubmission { - export type AsObject = { - nodeId: string, - amount: number, - method: UndelegateSubmission.MethodMap[keyof UndelegateSubmission.MethodMap], - } - - export interface MethodMap { - METHOD_UNSPECIFIED: 0; - METHOD_NOW: 1; - METHOD_AT_END_OF_EPOCH: 2; - METHOD_IN_ANGER: 3; - } - - export const Method: MethodMap; + export type AsObject = { + nodeId: string, + amount: number, + method: UndelegateSubmission.Method, + } + + export enum Method { + METHOD_UNSPECIFIED = 0, + METHOD_NOW = 1, + METHOD_AT_END_OF_EPOCH = 2, + METHOD_IN_ANGER = 3, + } + } +export class RestoreSnapshot extends jspb.Message { + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): RestoreSnapshot; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RestoreSnapshot.AsObject; + static toObject(includeInstance: boolean, msg: RestoreSnapshot): RestoreSnapshot.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RestoreSnapshot, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RestoreSnapshot; + static deserializeBinaryFromReader(message: RestoreSnapshot, reader: jspb.BinaryReader): RestoreSnapshot; +} + +export namespace RestoreSnapshot { + export type AsObject = { + data: Uint8Array | string, + } +} diff --git a/grpc/clients/js/generated/commands/v1/commands_pb.js b/grpc/clients/js/generated/commands/v1/commands_pb.js index 4fec1001..b23343af 100644 --- a/grpc/clients/js/generated/commands/v1/commands_pb.js +++ b/grpc/clients/js/generated/commands/v1/commands_pb.js @@ -28,6 +28,7 @@ goog.exportSymbol('proto.vega.commands.v1.OrderAmendment', null, global); goog.exportSymbol('proto.vega.commands.v1.OrderCancellation', null, global); goog.exportSymbol('proto.vega.commands.v1.OrderSubmission', null, global); goog.exportSymbol('proto.vega.commands.v1.ProposalSubmission', null, global); +goog.exportSymbol('proto.vega.commands.v1.RestoreSnapshot', null, global); goog.exportSymbol('proto.vega.commands.v1.UndelegateSubmission', null, global); goog.exportSymbol('proto.vega.commands.v1.UndelegateSubmission.Method', null, global); goog.exportSymbol('proto.vega.commands.v1.VoteSubmission', null, global); @@ -221,6 +222,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.vega.commands.v1.UndelegateSubmission.displayName = 'proto.vega.commands.v1.UndelegateSubmission'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.commands.v1.RestoreSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.commands.v1.RestoreSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.commands.v1.RestoreSnapshot.displayName = 'proto.vega.commands.v1.RestoreSnapshot'; +} @@ -2420,4 +2442,158 @@ proto.vega.commands.v1.UndelegateSubmission.prototype.setMethod = function(value }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.toObject = function(opt_includeInstance) { + return proto.vega.commands.v1.RestoreSnapshot.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.commands.v1.RestoreSnapshot} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.commands.v1.RestoreSnapshot.toObject = function(includeInstance, msg) { + var f, obj = { + data: msg.getData_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.commands.v1.RestoreSnapshot} + */ +proto.vega.commands.v1.RestoreSnapshot.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.commands.v1.RestoreSnapshot; + return proto.vega.commands.v1.RestoreSnapshot.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.commands.v1.RestoreSnapshot} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.commands.v1.RestoreSnapshot} + */ +proto.vega.commands.v1.RestoreSnapshot.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.commands.v1.RestoreSnapshot.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.commands.v1.RestoreSnapshot} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.commands.v1.RestoreSnapshot.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes data = 1; + * @return {!(string|Uint8Array)} + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes data = 1; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.commands.v1.RestoreSnapshot} returns this + */ +proto.vega.commands.v1.RestoreSnapshot.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + goog.object.extend(exports, proto.vega.commands.v1); diff --git a/grpc/clients/js/generated/commands/v1/commands_pb_service.d.ts b/grpc/clients/js/generated/commands/v1/commands_pb_service.d.ts deleted file mode 100644 index 88d42405..00000000 --- a/grpc/clients/js/generated/commands/v1/commands_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/commands.proto - diff --git a/grpc/clients/js/generated/commands/v1/commands_pb_service.js b/grpc/clients/js/generated/commands/v1/commands_pb_service.js deleted file mode 100644 index 88d42405..00000000 --- a/grpc/clients/js/generated/commands/v1/commands_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/commands.proto - diff --git a/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.d.ts b/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.js b/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/commands/v1/oracles_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/commands/v1/oracles_pb.d.ts b/grpc/clients/js/generated/commands/v1/oracles_pb.d.ts index a8b9baad..807bf0db 100644 --- a/grpc/clients/js/generated/commands/v1/oracles_pb.d.ts +++ b/grpc/clients/js/generated/commands/v1/oracles_pb.d.ts @@ -1,38 +1,38 @@ // package: vega.commands.v1 // file: commands/v1/oracles.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class OracleDataSubmission extends jspb.Message { - getSource(): OracleDataSubmission.OracleSourceMap[keyof OracleDataSubmission.OracleSourceMap]; - setSource(value: OracleDataSubmission.OracleSourceMap[keyof OracleDataSubmission.OracleSourceMap]): void; - - getPayload(): Uint8Array | string; - getPayload_asU8(): Uint8Array; - getPayload_asB64(): string; - setPayload(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleDataSubmission.AsObject; - static toObject(includeInstance: boolean, msg: OracleDataSubmission): OracleDataSubmission.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleDataSubmission, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleDataSubmission; - static deserializeBinaryFromReader(message: OracleDataSubmission, reader: jspb.BinaryReader): OracleDataSubmission; + getSource(): OracleDataSubmission.OracleSource; + setSource(value: OracleDataSubmission.OracleSource): OracleDataSubmission; + getPayload(): Uint8Array | string; + getPayload_asU8(): Uint8Array; + getPayload_asB64(): string; + setPayload(value: Uint8Array | string): OracleDataSubmission; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OracleDataSubmission.AsObject; + static toObject(includeInstance: boolean, msg: OracleDataSubmission): OracleDataSubmission.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OracleDataSubmission, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OracleDataSubmission; + static deserializeBinaryFromReader(message: OracleDataSubmission, reader: jspb.BinaryReader): OracleDataSubmission; } export namespace OracleDataSubmission { - export type AsObject = { - source: OracleDataSubmission.OracleSourceMap[keyof OracleDataSubmission.OracleSourceMap], - payload: Uint8Array | string, - } + export type AsObject = { + source: OracleDataSubmission.OracleSource, + payload: Uint8Array | string, + } - export interface OracleSourceMap { - ORACLE_SOURCE_UNSPECIFIED: 0; - ORACLE_SOURCE_OPEN_ORACLE: 1; - } + export enum OracleSource { + ORACLE_SOURCE_UNSPECIFIED = 0, + ORACLE_SOURCE_OPEN_ORACLE = 1, + } - export const OracleSource: OracleSourceMap; } - diff --git a/grpc/clients/js/generated/commands/v1/oracles_pb_service.d.ts b/grpc/clients/js/generated/commands/v1/oracles_pb_service.d.ts deleted file mode 100644 index 14bfb27a..00000000 --- a/grpc/clients/js/generated/commands/v1/oracles_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/oracles.proto - diff --git a/grpc/clients/js/generated/commands/v1/oracles_pb_service.js b/grpc/clients/js/generated/commands/v1/oracles_pb_service.js deleted file mode 100644 index 14bfb27a..00000000 --- a/grpc/clients/js/generated/commands/v1/oracles_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/oracles.proto - diff --git a/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.d.ts b/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.js b/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/commands/v1/transaction_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/commands/v1/transaction_pb.d.ts b/grpc/clients/js/generated/commands/v1/transaction_pb.d.ts index 519eb4ad..5dd0c34c 100644 --- a/grpc/clients/js/generated/commands/v1/transaction_pb.d.ts +++ b/grpc/clients/js/generated/commands/v1/transaction_pb.d.ts @@ -1,214 +1,223 @@ // package: vega.commands.v1 // file: commands/v1/transaction.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as commands_v1_commands_pb from "../../commands/v1/commands_pb"; import * as commands_v1_validator_commands_pb from "../../commands/v1/validator_commands_pb"; import * as commands_v1_oracles_pb from "../../commands/v1/oracles_pb"; export class InputData extends jspb.Message { - getNonce(): number; - setNonce(value: number): void; - - getBlockHeight(): number; - setBlockHeight(value: number): void; - - hasOrderSubmission(): boolean; - clearOrderSubmission(): void; - getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; - setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): void; - - hasOrderCancellation(): boolean; - clearOrderCancellation(): void; - getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; - setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): void; - - hasOrderAmendment(): boolean; - clearOrderAmendment(): void; - getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; - setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): void; - - hasWithdrawSubmission(): boolean; - clearWithdrawSubmission(): void; - getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; - setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): void; - - hasProposalSubmission(): boolean; - clearProposalSubmission(): void; - getProposalSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; - setProposalSubmission(value?: commands_v1_commands_pb.ProposalSubmission): void; - - hasVoteSubmission(): boolean; - clearVoteSubmission(): void; - getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; - setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): void; - - hasLiquidityProvisionSubmission(): boolean; - clearLiquidityProvisionSubmission(): void; - getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; - setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): void; - - hasDelegateSubmission(): boolean; - clearDelegateSubmission(): void; - getDelegateSubmission(): commands_v1_commands_pb.DelegateSubmission | undefined; - setDelegateSubmission(value?: commands_v1_commands_pb.DelegateSubmission): void; - - hasUndelegateSubmission(): boolean; - clearUndelegateSubmission(): void; - getUndelegateSubmission(): commands_v1_commands_pb.UndelegateSubmission | undefined; - setUndelegateSubmission(value?: commands_v1_commands_pb.UndelegateSubmission): void; - - hasNodeRegistration(): boolean; - clearNodeRegistration(): void; - getNodeRegistration(): commands_v1_validator_commands_pb.NodeRegistration | undefined; - setNodeRegistration(value?: commands_v1_validator_commands_pb.NodeRegistration): void; - - hasNodeVote(): boolean; - clearNodeVote(): void; - getNodeVote(): commands_v1_validator_commands_pb.NodeVote | undefined; - setNodeVote(value?: commands_v1_validator_commands_pb.NodeVote): void; - - hasNodeSignature(): boolean; - clearNodeSignature(): void; - getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; - setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): void; - - hasChainEvent(): boolean; - clearChainEvent(): void; - getChainEvent(): commands_v1_validator_commands_pb.ChainEvent | undefined; - setChainEvent(value?: commands_v1_validator_commands_pb.ChainEvent): void; - - hasOracleDataSubmission(): boolean; - clearOracleDataSubmission(): void; - getOracleDataSubmission(): commands_v1_oracles_pb.OracleDataSubmission | undefined; - setOracleDataSubmission(value?: commands_v1_oracles_pb.OracleDataSubmission): void; - - getCommandCase(): InputData.CommandCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InputData.AsObject; - static toObject(includeInstance: boolean, msg: InputData): InputData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InputData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InputData; - static deserializeBinaryFromReader(message: InputData, reader: jspb.BinaryReader): InputData; + getNonce(): number; + setNonce(value: number): InputData; + getBlockHeight(): number; + setBlockHeight(value: number): InputData; + + hasOrderSubmission(): boolean; + clearOrderSubmission(): void; + getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; + setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): InputData; + + hasOrderCancellation(): boolean; + clearOrderCancellation(): void; + getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; + setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): InputData; + + hasOrderAmendment(): boolean; + clearOrderAmendment(): void; + getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; + setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): InputData; + + hasWithdrawSubmission(): boolean; + clearWithdrawSubmission(): void; + getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; + setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): InputData; + + hasProposalSubmission(): boolean; + clearProposalSubmission(): void; + getProposalSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; + setProposalSubmission(value?: commands_v1_commands_pb.ProposalSubmission): InputData; + + hasVoteSubmission(): boolean; + clearVoteSubmission(): void; + getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; + setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): InputData; + + hasLiquidityProvisionSubmission(): boolean; + clearLiquidityProvisionSubmission(): void; + getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; + setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): InputData; + + hasDelegateSubmission(): boolean; + clearDelegateSubmission(): void; + getDelegateSubmission(): commands_v1_commands_pb.DelegateSubmission | undefined; + setDelegateSubmission(value?: commands_v1_commands_pb.DelegateSubmission): InputData; + + hasUndelegateSubmission(): boolean; + clearUndelegateSubmission(): void; + getUndelegateSubmission(): commands_v1_commands_pb.UndelegateSubmission | undefined; + setUndelegateSubmission(value?: commands_v1_commands_pb.UndelegateSubmission): InputData; + + hasNodeRegistration(): boolean; + clearNodeRegistration(): void; + getNodeRegistration(): commands_v1_validator_commands_pb.NodeRegistration | undefined; + setNodeRegistration(value?: commands_v1_validator_commands_pb.NodeRegistration): InputData; + + hasNodeVote(): boolean; + clearNodeVote(): void; + getNodeVote(): commands_v1_validator_commands_pb.NodeVote | undefined; + setNodeVote(value?: commands_v1_validator_commands_pb.NodeVote): InputData; + + hasNodeSignature(): boolean; + clearNodeSignature(): void; + getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; + setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): InputData; + + hasChainEvent(): boolean; + clearChainEvent(): void; + getChainEvent(): commands_v1_validator_commands_pb.ChainEvent | undefined; + setChainEvent(value?: commands_v1_validator_commands_pb.ChainEvent): InputData; + + hasOracleDataSubmission(): boolean; + clearOracleDataSubmission(): void; + getOracleDataSubmission(): commands_v1_oracles_pb.OracleDataSubmission | undefined; + setOracleDataSubmission(value?: commands_v1_oracles_pb.OracleDataSubmission): InputData; + + hasRestoreSnapshotSubmission(): boolean; + clearRestoreSnapshotSubmission(): void; + getRestoreSnapshotSubmission(): commands_v1_commands_pb.RestoreSnapshot | undefined; + setRestoreSnapshotSubmission(value?: commands_v1_commands_pb.RestoreSnapshot): InputData; + + getCommandCase(): InputData.CommandCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputData.AsObject; + static toObject(includeInstance: boolean, msg: InputData): InputData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputData; + static deserializeBinaryFromReader(message: InputData, reader: jspb.BinaryReader): InputData; } export namespace InputData { - export type AsObject = { - nonce: number, - blockHeight: number, - orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, - orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, - orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, - withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, - proposalSubmission?: commands_v1_commands_pb.ProposalSubmission.AsObject, - voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, - liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, - delegateSubmission?: commands_v1_commands_pb.DelegateSubmission.AsObject, - undelegateSubmission?: commands_v1_commands_pb.UndelegateSubmission.AsObject, - nodeRegistration?: commands_v1_validator_commands_pb.NodeRegistration.AsObject, - nodeVote?: commands_v1_validator_commands_pb.NodeVote.AsObject, - nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, - chainEvent?: commands_v1_validator_commands_pb.ChainEvent.AsObject, - oracleDataSubmission?: commands_v1_oracles_pb.OracleDataSubmission.AsObject, - } - - export enum CommandCase { - COMMAND_NOT_SET = 0, - ORDER_SUBMISSION = 1001, - ORDER_CANCELLATION = 1002, - ORDER_AMENDMENT = 1003, - WITHDRAW_SUBMISSION = 1004, - PROPOSAL_SUBMISSION = 1005, - VOTE_SUBMISSION = 1006, - LIQUIDITY_PROVISION_SUBMISSION = 1007, - DELEGATE_SUBMISSION = 1008, - UNDELEGATE_SUBMISSION = 1009, - NODE_REGISTRATION = 2001, - NODE_VOTE = 2002, - NODE_SIGNATURE = 2003, - CHAIN_EVENT = 2004, - ORACLE_DATA_SUBMISSION = 3001, - } + export type AsObject = { + nonce: number, + blockHeight: number, + orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, + orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, + orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, + withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, + proposalSubmission?: commands_v1_commands_pb.ProposalSubmission.AsObject, + voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, + liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, + delegateSubmission?: commands_v1_commands_pb.DelegateSubmission.AsObject, + undelegateSubmission?: commands_v1_commands_pb.UndelegateSubmission.AsObject, + nodeRegistration?: commands_v1_validator_commands_pb.NodeRegistration.AsObject, + nodeVote?: commands_v1_validator_commands_pb.NodeVote.AsObject, + nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, + chainEvent?: commands_v1_validator_commands_pb.ChainEvent.AsObject, + oracleDataSubmission?: commands_v1_oracles_pb.OracleDataSubmission.AsObject, + restoreSnapshotSubmission?: commands_v1_commands_pb.RestoreSnapshot.AsObject, + } + + export enum CommandCase { + COMMAND_NOT_SET = 0, + ORDER_SUBMISSION = 1001, + ORDER_CANCELLATION = 1002, + ORDER_AMENDMENT = 1003, + WITHDRAW_SUBMISSION = 1004, + PROPOSAL_SUBMISSION = 1005, + VOTE_SUBMISSION = 1006, + LIQUIDITY_PROVISION_SUBMISSION = 1007, + DELEGATE_SUBMISSION = 1008, + UNDELEGATE_SUBMISSION = 1009, + NODE_REGISTRATION = 2001, + NODE_VOTE = 2002, + NODE_SIGNATURE = 2003, + CHAIN_EVENT = 2004, + ORACLE_DATA_SUBMISSION = 3001, + RESTORE_SNAPSHOT_SUBMISSION = 4001, + } + } export class Transaction extends jspb.Message { - getInputData(): Uint8Array | string; - getInputData_asU8(): Uint8Array; - getInputData_asB64(): string; - setInputData(value: Uint8Array | string): void; - - hasSignature(): boolean; - clearSignature(): void; - getSignature(): Signature | undefined; - setSignature(value?: Signature): void; - - hasAddress(): boolean; - clearAddress(): void; - getAddress(): string; - setAddress(value: string): void; - - hasPubKey(): boolean; - clearPubKey(): void; - getPubKey(): string; - setPubKey(value: string): void; - - getVersion(): number; - setVersion(value: number): void; - - getFromCase(): Transaction.FromCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Transaction.AsObject; - static toObject(includeInstance: boolean, msg: Transaction): Transaction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Transaction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Transaction; - static deserializeBinaryFromReader(message: Transaction, reader: jspb.BinaryReader): Transaction; + getInputData(): Uint8Array | string; + getInputData_asU8(): Uint8Array; + getInputData_asB64(): string; + setInputData(value: Uint8Array | string): Transaction; + + hasSignature(): boolean; + clearSignature(): void; + getSignature(): Signature | undefined; + setSignature(value?: Signature): Transaction; + + hasAddress(): boolean; + clearAddress(): void; + getAddress(): string; + setAddress(value: string): Transaction; + + hasPubKey(): boolean; + clearPubKey(): void; + getPubKey(): string; + setPubKey(value: string): Transaction; + getVersion(): number; + setVersion(value: number): Transaction; + + getFromCase(): Transaction.FromCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Transaction.AsObject; + static toObject(includeInstance: boolean, msg: Transaction): Transaction.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Transaction, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Transaction; + static deserializeBinaryFromReader(message: Transaction, reader: jspb.BinaryReader): Transaction; } export namespace Transaction { - export type AsObject = { - inputData: Uint8Array | string, - signature?: Signature.AsObject, - address: string, - pubKey: string, - version: number, - } - - export enum FromCase { - FROM_NOT_SET = 0, - ADDRESS = 1001, - PUB_KEY = 1002, - } + export type AsObject = { + inputData: Uint8Array | string, + signature?: Signature.AsObject, + address: string, + pubKey: string, + version: number, + } + + export enum FromCase { + FROM_NOT_SET = 0, + ADDRESS = 1001, + PUB_KEY = 1002, + } + } export class Signature extends jspb.Message { - getValue(): string; - setValue(value: string): void; - - getAlgo(): string; - setAlgo(value: string): void; - - getVersion(): number; - setVersion(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Signature.AsObject; - static toObject(includeInstance: boolean, msg: Signature): Signature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Signature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Signature; - static deserializeBinaryFromReader(message: Signature, reader: jspb.BinaryReader): Signature; + getValue(): string; + setValue(value: string): Signature; + getAlgo(): string; + setAlgo(value: string): Signature; + getVersion(): number; + setVersion(value: number): Signature; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Signature.AsObject; + static toObject(includeInstance: boolean, msg: Signature): Signature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Signature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Signature; + static deserializeBinaryFromReader(message: Signature, reader: jspb.BinaryReader): Signature; } export namespace Signature { - export type AsObject = { - value: string, - algo: string, - version: number, - } + export type AsObject = { + value: string, + algo: string, + version: number, + } } - diff --git a/grpc/clients/js/generated/commands/v1/transaction_pb.js b/grpc/clients/js/generated/commands/v1/transaction_pb.js index 849c9169..42b40758 100644 --- a/grpc/clients/js/generated/commands/v1/transaction_pb.js +++ b/grpc/clients/js/generated/commands/v1/transaction_pb.js @@ -97,7 +97,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array>} * @const */ -proto.vega.commands.v1.InputData.oneofGroups_ = [[1001,1002,1003,1004,1005,1006,1007,1008,1009,2001,2002,2003,2004,3001]]; +proto.vega.commands.v1.InputData.oneofGroups_ = [[1001,1002,1003,1004,1005,1006,1007,1008,1009,2001,2002,2003,2004,3001,4001]]; /** * @enum {number} @@ -117,7 +117,8 @@ proto.vega.commands.v1.InputData.CommandCase = { NODE_VOTE: 2002, NODE_SIGNATURE: 2003, CHAIN_EVENT: 2004, - ORACLE_DATA_SUBMISSION: 3001 + ORACLE_DATA_SUBMISSION: 3001, + RESTORE_SNAPSHOT_SUBMISSION: 4001 }; /** @@ -173,7 +174,8 @@ proto.vega.commands.v1.InputData.toObject = function(includeInstance, msg) { nodeVote: (f = msg.getNodeVote()) && commands_v1_validator_commands_pb.NodeVote.toObject(includeInstance, f), nodeSignature: (f = msg.getNodeSignature()) && commands_v1_validator_commands_pb.NodeSignature.toObject(includeInstance, f), chainEvent: (f = msg.getChainEvent()) && commands_v1_validator_commands_pb.ChainEvent.toObject(includeInstance, f), - oracleDataSubmission: (f = msg.getOracleDataSubmission()) && commands_v1_oracles_pb.OracleDataSubmission.toObject(includeInstance, f) + oracleDataSubmission: (f = msg.getOracleDataSubmission()) && commands_v1_oracles_pb.OracleDataSubmission.toObject(includeInstance, f), + restoreSnapshotSubmission: (f = msg.getRestoreSnapshotSubmission()) && commands_v1_commands_pb.RestoreSnapshot.toObject(includeInstance, f) }; if (includeInstance) { @@ -288,6 +290,11 @@ proto.vega.commands.v1.InputData.deserializeBinaryFromReader = function(msg, rea reader.readMessage(value,commands_v1_oracles_pb.OracleDataSubmission.deserializeBinaryFromReader); msg.setOracleDataSubmission(value); break; + case 4001: + var value = new commands_v1_commands_pb.RestoreSnapshot; + reader.readMessage(value,commands_v1_commands_pb.RestoreSnapshot.deserializeBinaryFromReader); + msg.setRestoreSnapshotSubmission(value); + break; default: reader.skipField(); break; @@ -443,6 +450,14 @@ proto.vega.commands.v1.InputData.serializeBinaryToWriter = function(message, wri commands_v1_oracles_pb.OracleDataSubmission.serializeBinaryToWriter ); } + f = message.getRestoreSnapshotSubmission(); + if (f != null) { + writer.writeMessage( + 4001, + f, + commands_v1_commands_pb.RestoreSnapshot.serializeBinaryToWriter + ); + } }; @@ -1000,6 +1015,43 @@ proto.vega.commands.v1.InputData.prototype.hasOracleDataSubmission = function() }; +/** + * optional RestoreSnapshot restore_snapshot_submission = 4001; + * @return {?proto.vega.commands.v1.RestoreSnapshot} + */ +proto.vega.commands.v1.InputData.prototype.getRestoreSnapshotSubmission = function() { + return /** @type{?proto.vega.commands.v1.RestoreSnapshot} */ ( + jspb.Message.getWrapperField(this, commands_v1_commands_pb.RestoreSnapshot, 4001)); +}; + + +/** + * @param {?proto.vega.commands.v1.RestoreSnapshot|undefined} value + * @return {!proto.vega.commands.v1.InputData} returns this +*/ +proto.vega.commands.v1.InputData.prototype.setRestoreSnapshotSubmission = function(value) { + return jspb.Message.setOneofWrapperField(this, 4001, proto.vega.commands.v1.InputData.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.commands.v1.InputData} returns this + */ +proto.vega.commands.v1.InputData.prototype.clearRestoreSnapshotSubmission = function() { + return this.setRestoreSnapshotSubmission(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.commands.v1.InputData.prototype.hasRestoreSnapshotSubmission = function() { + return jspb.Message.getField(this, 4001) != null; +}; + + /** * Oneof group definitions for this message. Each group defines the field diff --git a/grpc/clients/js/generated/commands/v1/transaction_pb_service.d.ts b/grpc/clients/js/generated/commands/v1/transaction_pb_service.d.ts deleted file mode 100644 index c1cefeb5..00000000 --- a/grpc/clients/js/generated/commands/v1/transaction_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/transaction.proto - diff --git a/grpc/clients/js/generated/commands/v1/transaction_pb_service.js b/grpc/clients/js/generated/commands/v1/transaction_pb_service.js deleted file mode 100644 index c1cefeb5..00000000 --- a/grpc/clients/js/generated/commands/v1/transaction_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/transaction.proto - diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.d.ts b/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.js b/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/commands/v1/validator_commands_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_pb.d.ts b/grpc/clients/js/generated/commands/v1/validator_commands_pb.d.ts index ccf5d874..9c1c459d 100644 --- a/grpc/clients/js/generated/commands/v1/validator_commands_pb.d.ts +++ b/grpc/clients/js/generated/commands/v1/validator_commands_pb.d.ts @@ -1,164 +1,165 @@ // package: vega.commands.v1 // file: commands/v1/validator_commands.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as chain_events_pb from "../../chain_events_pb"; import * as github_com_mwitkow_go_proto_validators_validator_pb from "../../github.com/mwitkow/go-proto-validators/validator_pb"; export class NodeRegistration extends jspb.Message { - getPubKey(): Uint8Array | string; - getPubKey_asU8(): Uint8Array; - getPubKey_asB64(): string; - setPubKey(value: Uint8Array | string): void; - - getChainPubKey(): Uint8Array | string; - getChainPubKey_asU8(): Uint8Array; - getChainPubKey_asB64(): string; - setChainPubKey(value: Uint8Array | string): void; - - getInfoUrl(): string; - setInfoUrl(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeRegistration.AsObject; - static toObject(includeInstance: boolean, msg: NodeRegistration): NodeRegistration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeRegistration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeRegistration; - static deserializeBinaryFromReader(message: NodeRegistration, reader: jspb.BinaryReader): NodeRegistration; + getVegaPubKey(): string; + setVegaPubKey(value: string): NodeRegistration; + getEthereumAddress(): string; + setEthereumAddress(value: string): NodeRegistration; + getChainPubKey(): string; + setChainPubKey(value: string): NodeRegistration; + getInfoUrl(): string; + setInfoUrl(value: string): NodeRegistration; + getCountry(): string; + setCountry(value: string): NodeRegistration; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeRegistration.AsObject; + static toObject(includeInstance: boolean, msg: NodeRegistration): NodeRegistration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeRegistration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeRegistration; + static deserializeBinaryFromReader(message: NodeRegistration, reader: jspb.BinaryReader): NodeRegistration; } export namespace NodeRegistration { - export type AsObject = { - pubKey: Uint8Array | string, - chainPubKey: Uint8Array | string, - infoUrl: string, - country: string, - } + export type AsObject = { + vegaPubKey: string, + ethereumAddress: string, + chainPubKey: string, + infoUrl: string, + country: string, + } } export class NodeVote extends jspb.Message { - getPubKey(): Uint8Array | string; - getPubKey_asU8(): Uint8Array; - getPubKey_asB64(): string; - setPubKey(value: Uint8Array | string): void; - - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeVote.AsObject; - static toObject(includeInstance: boolean, msg: NodeVote): NodeVote.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeVote, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeVote; - static deserializeBinaryFromReader(message: NodeVote, reader: jspb.BinaryReader): NodeVote; + getPubKey(): Uint8Array | string; + getPubKey_asU8(): Uint8Array; + getPubKey_asB64(): string; + setPubKey(value: Uint8Array | string): NodeVote; + getReference(): string; + setReference(value: string): NodeVote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeVote.AsObject; + static toObject(includeInstance: boolean, msg: NodeVote): NodeVote.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeVote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeVote; + static deserializeBinaryFromReader(message: NodeVote, reader: jspb.BinaryReader): NodeVote; } export namespace NodeVote { - export type AsObject = { - pubKey: Uint8Array | string, - reference: string, - } + export type AsObject = { + pubKey: Uint8Array | string, + reference: string, + } } export class NodeSignature extends jspb.Message { - getId(): string; - setId(value: string): void; - - getSig(): Uint8Array | string; - getSig_asU8(): Uint8Array; - getSig_asB64(): string; - setSig(value: Uint8Array | string): void; - - getKind(): NodeSignatureKindMap[keyof NodeSignatureKindMap]; - setKind(value: NodeSignatureKindMap[keyof NodeSignatureKindMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeSignature.AsObject; - static toObject(includeInstance: boolean, msg: NodeSignature): NodeSignature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeSignature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeSignature; - static deserializeBinaryFromReader(message: NodeSignature, reader: jspb.BinaryReader): NodeSignature; + getId(): string; + setId(value: string): NodeSignature; + getSig(): Uint8Array | string; + getSig_asU8(): Uint8Array; + getSig_asB64(): string; + setSig(value: Uint8Array | string): NodeSignature; + getKind(): NodeSignatureKind; + setKind(value: NodeSignatureKind): NodeSignature; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeSignature.AsObject; + static toObject(includeInstance: boolean, msg: NodeSignature): NodeSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeSignature; + static deserializeBinaryFromReader(message: NodeSignature, reader: jspb.BinaryReader): NodeSignature; } export namespace NodeSignature { - export type AsObject = { - id: string, - sig: Uint8Array | string, - kind: NodeSignatureKindMap[keyof NodeSignatureKindMap], - } + export type AsObject = { + id: string, + sig: Uint8Array | string, + kind: NodeSignatureKind, + } } export class ChainEvent extends jspb.Message { - getTxId(): string; - setTxId(value: string): void; - - getNonce(): number; - setNonce(value: number): void; - - hasBuiltin(): boolean; - clearBuiltin(): void; - getBuiltin(): chain_events_pb.BuiltinAssetEvent | undefined; - setBuiltin(value?: chain_events_pb.BuiltinAssetEvent): void; - - hasErc20(): boolean; - clearErc20(): void; - getErc20(): chain_events_pb.ERC20Event | undefined; - setErc20(value?: chain_events_pb.ERC20Event): void; - - hasBtc(): boolean; - clearBtc(): void; - getBtc(): chain_events_pb.BTCEvent | undefined; - setBtc(value?: chain_events_pb.BTCEvent): void; - - hasValidator(): boolean; - clearValidator(): void; - getValidator(): chain_events_pb.ValidatorEvent | undefined; - setValidator(value?: chain_events_pb.ValidatorEvent): void; - - getEventCase(): ChainEvent.EventCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChainEvent.AsObject; - static toObject(includeInstance: boolean, msg: ChainEvent): ChainEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChainEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChainEvent; - static deserializeBinaryFromReader(message: ChainEvent, reader: jspb.BinaryReader): ChainEvent; + getTxId(): string; + setTxId(value: string): ChainEvent; + getNonce(): number; + setNonce(value: number): ChainEvent; + + hasBuiltin(): boolean; + clearBuiltin(): void; + getBuiltin(): chain_events_pb.BuiltinAssetEvent | undefined; + setBuiltin(value?: chain_events_pb.BuiltinAssetEvent): ChainEvent; + + hasErc20(): boolean; + clearErc20(): void; + getErc20(): chain_events_pb.ERC20Event | undefined; + setErc20(value?: chain_events_pb.ERC20Event): ChainEvent; + + hasBtc(): boolean; + clearBtc(): void; + getBtc(): chain_events_pb.BTCEvent | undefined; + setBtc(value?: chain_events_pb.BTCEvent): ChainEvent; + + hasValidator(): boolean; + clearValidator(): void; + getValidator(): chain_events_pb.ValidatorEvent | undefined; + setValidator(value?: chain_events_pb.ValidatorEvent): ChainEvent; + + hasStakingEvent(): boolean; + clearStakingEvent(): void; + getStakingEvent(): chain_events_pb.StakingEvent | undefined; + setStakingEvent(value?: chain_events_pb.StakingEvent): ChainEvent; + + getEventCase(): ChainEvent.EventCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChainEvent.AsObject; + static toObject(includeInstance: boolean, msg: ChainEvent): ChainEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ChainEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChainEvent; + static deserializeBinaryFromReader(message: ChainEvent, reader: jspb.BinaryReader): ChainEvent; } export namespace ChainEvent { - export type AsObject = { - txId: string, - nonce: number, - builtin?: chain_events_pb.BuiltinAssetEvent.AsObject, - erc20?: chain_events_pb.ERC20Event.AsObject, - btc?: chain_events_pb.BTCEvent.AsObject, - validator?: chain_events_pb.ValidatorEvent.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - BUILTIN = 1001, - ERC20 = 1002, - BTC = 1003, - VALIDATOR = 1004, - } -} + export type AsObject = { + txId: string, + nonce: number, + builtin?: chain_events_pb.BuiltinAssetEvent.AsObject, + erc20?: chain_events_pb.ERC20Event.AsObject, + btc?: chain_events_pb.BTCEvent.AsObject, + validator?: chain_events_pb.ValidatorEvent.AsObject, + stakingEvent?: chain_events_pb.StakingEvent.AsObject, + } + + export enum EventCase { + EVENT_NOT_SET = 0, + BUILTIN = 1001, + ERC20 = 1002, + BTC = 1003, + VALIDATOR = 1004, + STAKING_EVENT = 1005, + } -export interface NodeSignatureKindMap { - NODE_SIGNATURE_KIND_UNSPECIFIED: 0; - NODE_SIGNATURE_KIND_ASSET_NEW: 1; - NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL: 2; } -export const NodeSignatureKind: NodeSignatureKindMap; - +export enum NodeSignatureKind { + NODE_SIGNATURE_KIND_UNSPECIFIED = 0, + NODE_SIGNATURE_KIND_ASSET_NEW = 1, + NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL = 2, +} diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_pb.js b/grpc/clients/js/generated/commands/v1/validator_commands_pb.js index bf89efc2..cae04aa8 100644 --- a/grpc/clients/js/generated/commands/v1/validator_commands_pb.js +++ b/grpc/clients/js/generated/commands/v1/validator_commands_pb.js @@ -140,10 +140,11 @@ proto.vega.commands.v1.NodeRegistration.prototype.toObject = function(opt_includ */ proto.vega.commands.v1.NodeRegistration.toObject = function(includeInstance, msg) { var f, obj = { - pubKey: msg.getPubKey_asB64(), - chainPubKey: msg.getChainPubKey_asB64(), - infoUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), - country: jspb.Message.getFieldWithDefault(msg, 4, "") + vegaPubKey: jspb.Message.getFieldWithDefault(msg, 1, ""), + ethereumAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), + chainPubKey: jspb.Message.getFieldWithDefault(msg, 3, ""), + infoUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), + country: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -181,18 +182,22 @@ proto.vega.commands.v1.NodeRegistration.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPubKey(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVegaPubKey(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setChainPubKey(value); + var value = /** @type {string} */ (reader.readString()); + msg.setEthereumAddress(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setInfoUrl(value); + msg.setChainPubKey(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setInfoUrl(value); + break; + case 5: var value = /** @type {string} */ (reader.readString()); msg.setCountry(value); break; @@ -225,127 +230,104 @@ proto.vega.commands.v1.NodeRegistration.prototype.serializeBinary = function() { */ proto.vega.commands.v1.NodeRegistration.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPubKey_asU8(); + f = message.getVegaPubKey(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); } - f = message.getChainPubKey_asU8(); + f = message.getEthereumAddress(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 2, f ); } - f = message.getInfoUrl(); + f = message.getChainPubKey(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getCountry(); + f = message.getInfoUrl(); if (f.length > 0) { writer.writeString( 4, f ); } + f = message.getCountry(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } }; /** - * optional bytes pub_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.vega.commands.v1.NodeRegistration.prototype.getPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes pub_key = 1; - * This is a type-conversion wrapper around `getPubKey()` + * optional string vega_pub_key = 1; * @return {string} */ -proto.vega.commands.v1.NodeRegistration.prototype.getPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPubKey())); -}; - - -/** - * optional bytes pub_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPubKey()` - * @return {!Uint8Array} - */ -proto.vega.commands.v1.NodeRegistration.prototype.getPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPubKey())); +proto.vega.commands.v1.NodeRegistration.prototype.getVegaPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.vega.commands.v1.NodeRegistration} returns this */ -proto.vega.commands.v1.NodeRegistration.prototype.setPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.vega.commands.v1.NodeRegistration.prototype.setVegaPubKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes chain_pub_key = 2; - * @return {!(string|Uint8Array)} + * optional string ethereum_address = 2; + * @return {string} */ -proto.vega.commands.v1.NodeRegistration.prototype.getChainPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.commands.v1.NodeRegistration.prototype.getEthereumAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes chain_pub_key = 2; - * This is a type-conversion wrapper around `getChainPubKey()` - * @return {string} + * @param {string} value + * @return {!proto.vega.commands.v1.NodeRegistration} returns this */ -proto.vega.commands.v1.NodeRegistration.prototype.getChainPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getChainPubKey())); +proto.vega.commands.v1.NodeRegistration.prototype.setEthereumAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bytes chain_pub_key = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getChainPubKey()` - * @return {!Uint8Array} + * optional string chain_pub_key = 3; + * @return {string} */ -proto.vega.commands.v1.NodeRegistration.prototype.getChainPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getChainPubKey())); +proto.vega.commands.v1.NodeRegistration.prototype.getChainPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.vega.commands.v1.NodeRegistration} returns this */ proto.vega.commands.v1.NodeRegistration.prototype.setChainPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string info_url = 3; + * optional string info_url = 4; * @return {string} */ proto.vega.commands.v1.NodeRegistration.prototype.getInfoUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -354,16 +336,16 @@ proto.vega.commands.v1.NodeRegistration.prototype.getInfoUrl = function() { * @return {!proto.vega.commands.v1.NodeRegistration} returns this */ proto.vega.commands.v1.NodeRegistration.prototype.setInfoUrl = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string country = 4; + * optional string country = 5; * @return {string} */ proto.vega.commands.v1.NodeRegistration.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -372,7 +354,7 @@ proto.vega.commands.v1.NodeRegistration.prototype.getCountry = function() { * @return {!proto.vega.commands.v1.NodeRegistration} returns this */ proto.vega.commands.v1.NodeRegistration.prototype.setCountry = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -783,7 +765,7 @@ proto.vega.commands.v1.NodeSignature.prototype.setKind = function(value) { * @private {!Array>} * @const */ -proto.vega.commands.v1.ChainEvent.oneofGroups_ = [[1001,1002,1003,1004]]; +proto.vega.commands.v1.ChainEvent.oneofGroups_ = [[1001,1002,1003,1004,1005]]; /** * @enum {number} @@ -793,7 +775,8 @@ proto.vega.commands.v1.ChainEvent.EventCase = { BUILTIN: 1001, ERC20: 1002, BTC: 1003, - VALIDATOR: 1004 + VALIDATOR: 1004, + STAKING_EVENT: 1005 }; /** @@ -839,7 +822,8 @@ proto.vega.commands.v1.ChainEvent.toObject = function(includeInstance, msg) { builtin: (f = msg.getBuiltin()) && chain_events_pb.BuiltinAssetEvent.toObject(includeInstance, f), erc20: (f = msg.getErc20()) && chain_events_pb.ERC20Event.toObject(includeInstance, f), btc: (f = msg.getBtc()) && chain_events_pb.BTCEvent.toObject(includeInstance, f), - validator: (f = msg.getValidator()) && chain_events_pb.ValidatorEvent.toObject(includeInstance, f) + validator: (f = msg.getValidator()) && chain_events_pb.ValidatorEvent.toObject(includeInstance, f), + stakingEvent: (f = msg.getStakingEvent()) && chain_events_pb.StakingEvent.toObject(includeInstance, f) }; if (includeInstance) { @@ -904,6 +888,11 @@ proto.vega.commands.v1.ChainEvent.deserializeBinaryFromReader = function(msg, re reader.readMessage(value,chain_events_pb.ValidatorEvent.deserializeBinaryFromReader); msg.setValidator(value); break; + case 1005: + var value = new chain_events_pb.StakingEvent; + reader.readMessage(value,chain_events_pb.StakingEvent.deserializeBinaryFromReader); + msg.setStakingEvent(value); + break; default: reader.skipField(); break; @@ -979,6 +968,14 @@ proto.vega.commands.v1.ChainEvent.serializeBinaryToWriter = function(message, wr chain_events_pb.ValidatorEvent.serializeBinaryToWriter ); } + f = message.getStakingEvent(); + if (f != null) { + writer.writeMessage( + 1005, + f, + chain_events_pb.StakingEvent.serializeBinaryToWriter + ); + } }; @@ -1166,6 +1163,43 @@ proto.vega.commands.v1.ChainEvent.prototype.hasValidator = function() { }; +/** + * optional vega.StakingEvent staking_event = 1005; + * @return {?proto.vega.StakingEvent} + */ +proto.vega.commands.v1.ChainEvent.prototype.getStakingEvent = function() { + return /** @type{?proto.vega.StakingEvent} */ ( + jspb.Message.getWrapperField(this, chain_events_pb.StakingEvent, 1005)); +}; + + +/** + * @param {?proto.vega.StakingEvent|undefined} value + * @return {!proto.vega.commands.v1.ChainEvent} returns this +*/ +proto.vega.commands.v1.ChainEvent.prototype.setStakingEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 1005, proto.vega.commands.v1.ChainEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.commands.v1.ChainEvent} returns this + */ +proto.vega.commands.v1.ChainEvent.prototype.clearStakingEvent = function() { + return this.setStakingEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.commands.v1.ChainEvent.prototype.hasStakingEvent = function() { + return jspb.Message.getField(this, 1005) != null; +}; + + /** * @enum {number} */ diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.d.ts b/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.d.ts deleted file mode 100644 index a9e4437e..00000000 --- a/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/validator_commands.proto - diff --git a/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.js b/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.js deleted file mode 100644 index a9e4437e..00000000 --- a/grpc/clients/js/generated/commands/v1/validator_commands_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.commands.v1 -// file: commands/v1/validator_commands.proto - diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts new file mode 100644 index 00000000..097e058d --- /dev/null +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts @@ -0,0 +1,182 @@ +// package: vega.coreapi.v1 +// file: coreapi/v1/coreapi.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as coreapi_v1_coreapi_pb from "../../coreapi/v1/coreapi_pb"; +import * as assets_pb from "../../assets_pb"; +import * as governance_pb from "../../governance_pb"; +import * as markets_pb from "../../markets_pb"; +import * as vega_pb from "../../vega_pb"; +import * as events_v1_events_pb from "../../events/v1/events_pb"; + +interface ICoreApiServiceService extends grpc.ServiceDefinition { + listAccounts: ICoreApiServiceService_IListAccounts; + listAssets: ICoreApiServiceService_IListAssets; + listNetworkParameters: ICoreApiServiceService_IListNetworkParameters; + listParties: ICoreApiServiceService_IListParties; + listValidators: ICoreApiServiceService_IListValidators; + listMarkets: ICoreApiServiceService_IListMarkets; + listProposals: ICoreApiServiceService_IListProposals; + listMarketsData: ICoreApiServiceService_IListMarketsData; + listVotes: ICoreApiServiceService_IListVotes; +} + +interface ICoreApiServiceService_IListAccounts extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListAccounts"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListAssets extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListAssets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListNetworkParameters extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListNetworkParameters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListParties extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListParties"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListValidators extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListValidators"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListMarkets extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListMarkets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListProposals extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListProposals"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListMarketsData extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListMarketsData"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ICoreApiServiceService_IListVotes extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListVotes"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const CoreApiServiceService: ICoreApiServiceService; + +export interface ICoreApiServiceServer extends grpc.UntypedServiceImplementation { + listAccounts: grpc.handleUnaryCall; + listAssets: grpc.handleUnaryCall; + listNetworkParameters: grpc.handleUnaryCall; + listParties: grpc.handleUnaryCall; + listValidators: grpc.handleUnaryCall; + listMarkets: grpc.handleUnaryCall; + listProposals: grpc.handleUnaryCall; + listMarketsData: grpc.handleUnaryCall; + listVotes: grpc.handleUnaryCall; +} + +export interface ICoreApiServiceClient { + listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; +} + +export class CoreApiServiceClient extends grpc.Client implements ICoreApiServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + public listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + public listAccounts(request: coreapi_v1_coreapi_pb.ListAccountsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAccountsResponse) => void): grpc.ClientUnaryCall; + public listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + public listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + public listAssets(request: coreapi_v1_coreapi_pb.ListAssetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListAssetsResponse) => void): grpc.ClientUnaryCall; + public listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + public listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + public listNetworkParameters(request: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListNetworkParametersResponse) => void): grpc.ClientUnaryCall; + public listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + public listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + public listParties(request: coreapi_v1_coreapi_pb.ListPartiesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesResponse) => void): grpc.ClientUnaryCall; + public listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + public listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + public listValidators(request: coreapi_v1_coreapi_pb.ListValidatorsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListValidatorsResponse) => void): grpc.ClientUnaryCall; + public listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + public listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + public listMarkets(request: coreapi_v1_coreapi_pb.ListMarketsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsResponse) => void): grpc.ClientUnaryCall; + public listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + public listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + public listProposals(request: coreapi_v1_coreapi_pb.ListProposalsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListProposalsResponse) => void): grpc.ClientUnaryCall; + public listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + public listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + public listMarketsData(request: coreapi_v1_coreapi_pb.ListMarketsDataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListMarketsDataResponse) => void): grpc.ClientUnaryCall; + public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; +} diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js new file mode 100644 index 00000000..caa0eb89 --- /dev/null +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js @@ -0,0 +1,313 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var coreapi_v1_coreapi_pb = require('../../coreapi/v1/coreapi_pb.js'); +var assets_pb = require('../../assets_pb.js'); +var governance_pb = require('../../governance_pb.js'); +var markets_pb = require('../../markets_pb.js'); +var vega_pb = require('../../vega_pb.js'); +var events_v1_events_pb = require('../../events/v1/events_pb.js'); + +function serialize_vega_coreapi_v1_ListAccountsRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListAccountsRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListAccountsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListAccountsRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListAccountsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListAccountsResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListAccountsResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListAccountsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListAccountsResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListAccountsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListAssetsRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListAssetsRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListAssetsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListAssetsRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListAssetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListAssetsResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListAssetsResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListAssetsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListAssetsResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListAssetsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListMarketsDataRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListMarketsDataRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListMarketsDataRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListMarketsDataRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListMarketsDataRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListMarketsDataResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListMarketsDataResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListMarketsDataResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListMarketsDataResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListMarketsDataResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListMarketsRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListMarketsRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListMarketsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListMarketsRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListMarketsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListMarketsResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListMarketsResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListMarketsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListMarketsResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListMarketsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListNetworkParametersRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListNetworkParametersRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListNetworkParametersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListNetworkParametersRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListNetworkParametersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListNetworkParametersResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListNetworkParametersResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListNetworkParametersResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListNetworkParametersResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListNetworkParametersResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListPartiesRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListPartiesRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListPartiesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListPartiesRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListPartiesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListPartiesResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListPartiesResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListPartiesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListPartiesResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListPartiesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListProposalsRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListProposalsRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListProposalsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListProposalsRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListProposalsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListProposalsResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListProposalsResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListProposalsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListProposalsResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListProposalsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListValidatorsRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListValidatorsRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListValidatorsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListValidatorsRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListValidatorsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListValidatorsResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListValidatorsResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListValidatorsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListValidatorsResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListValidatorsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListVotesRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListVotesRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListVotesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListVotesRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListVotesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListVotesResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListVotesResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListVotesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListVotesResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListVotesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var CoreApiServiceService = exports.CoreApiServiceService = { + listAccounts: { + path: '/vega.coreapi.v1.CoreApiService/ListAccounts', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListAccountsRequest, + responseType: coreapi_v1_coreapi_pb.ListAccountsResponse, + requestSerialize: serialize_vega_coreapi_v1_ListAccountsRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListAccountsRequest, + responseSerialize: serialize_vega_coreapi_v1_ListAccountsResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListAccountsResponse, + }, + listAssets: { + path: '/vega.coreapi.v1.CoreApiService/ListAssets', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListAssetsRequest, + responseType: coreapi_v1_coreapi_pb.ListAssetsResponse, + requestSerialize: serialize_vega_coreapi_v1_ListAssetsRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListAssetsRequest, + responseSerialize: serialize_vega_coreapi_v1_ListAssetsResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListAssetsResponse, + }, + listNetworkParameters: { + path: '/vega.coreapi.v1.CoreApiService/ListNetworkParameters', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListNetworkParametersRequest, + responseType: coreapi_v1_coreapi_pb.ListNetworkParametersResponse, + requestSerialize: serialize_vega_coreapi_v1_ListNetworkParametersRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListNetworkParametersRequest, + responseSerialize: serialize_vega_coreapi_v1_ListNetworkParametersResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListNetworkParametersResponse, + }, + listParties: { + path: '/vega.coreapi.v1.CoreApiService/ListParties', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListPartiesRequest, + responseType: coreapi_v1_coreapi_pb.ListPartiesResponse, + requestSerialize: serialize_vega_coreapi_v1_ListPartiesRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListPartiesRequest, + responseSerialize: serialize_vega_coreapi_v1_ListPartiesResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListPartiesResponse, + }, + listValidators: { + path: '/vega.coreapi.v1.CoreApiService/ListValidators', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListValidatorsRequest, + responseType: coreapi_v1_coreapi_pb.ListValidatorsResponse, + requestSerialize: serialize_vega_coreapi_v1_ListValidatorsRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListValidatorsRequest, + responseSerialize: serialize_vega_coreapi_v1_ListValidatorsResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListValidatorsResponse, + }, + listMarkets: { + path: '/vega.coreapi.v1.CoreApiService/ListMarkets', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListMarketsRequest, + responseType: coreapi_v1_coreapi_pb.ListMarketsResponse, + requestSerialize: serialize_vega_coreapi_v1_ListMarketsRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListMarketsRequest, + responseSerialize: serialize_vega_coreapi_v1_ListMarketsResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListMarketsResponse, + }, + listProposals: { + path: '/vega.coreapi.v1.CoreApiService/ListProposals', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListProposalsRequest, + responseType: coreapi_v1_coreapi_pb.ListProposalsResponse, + requestSerialize: serialize_vega_coreapi_v1_ListProposalsRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListProposalsRequest, + responseSerialize: serialize_vega_coreapi_v1_ListProposalsResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListProposalsResponse, + }, + listMarketsData: { + path: '/vega.coreapi.v1.CoreApiService/ListMarketsData', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListMarketsDataRequest, + responseType: coreapi_v1_coreapi_pb.ListMarketsDataResponse, + requestSerialize: serialize_vega_coreapi_v1_ListMarketsDataRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListMarketsDataRequest, + responseSerialize: serialize_vega_coreapi_v1_ListMarketsDataResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListMarketsDataResponse, + }, + listVotes: { + path: '/vega.coreapi.v1.CoreApiService/ListVotes', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListVotesRequest, + responseType: coreapi_v1_coreapi_pb.ListVotesResponse, + requestSerialize: serialize_vega_coreapi_v1_ListVotesRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListVotesRequest, + responseSerialize: serialize_vega_coreapi_v1_ListVotesResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListVotesResponse, + }, +}; + +exports.CoreApiServiceClient = grpc.makeGenericClientConstructor(CoreApiServiceService); diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts new file mode 100644 index 00000000..0c8df20b --- /dev/null +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts @@ -0,0 +1,425 @@ +// package: vega.coreapi.v1 +// file: coreapi/v1/coreapi.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as assets_pb from "../../assets_pb"; +import * as governance_pb from "../../governance_pb"; +import * as markets_pb from "../../markets_pb"; +import * as vega_pb from "../../vega_pb"; +import * as events_v1_events_pb from "../../events/v1/events_pb"; + +export class Account extends jspb.Message { + getParty(): string; + setParty(value: string): Account; + getMarket(): string; + setMarket(value: string): Account; + getBalance(): string; + setBalance(value: string): Account; + getAsset(): string; + setAsset(value: string): Account; + getType(): string; + setType(value: string): Account; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Account.AsObject; + static toObject(includeInstance: boolean, msg: Account): Account.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Account, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Account; + static deserializeBinaryFromReader(message: Account, reader: jspb.BinaryReader): Account; +} + +export namespace Account { + export type AsObject = { + party: string, + market: string, + balance: string, + asset: string, + type: string, + } +} + +export class ListAccountsRequest extends jspb.Message { + getParty(): string; + setParty(value: string): ListAccountsRequest; + getMarket(): string; + setMarket(value: string): ListAccountsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAccountsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAccountsRequest): ListAccountsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAccountsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAccountsRequest; + static deserializeBinaryFromReader(message: ListAccountsRequest, reader: jspb.BinaryReader): ListAccountsRequest; +} + +export namespace ListAccountsRequest { + export type AsObject = { + party: string, + market: string, + } +} + +export class ListAccountsResponse extends jspb.Message { + clearAccountsList(): void; + getAccountsList(): Array; + setAccountsList(value: Array): ListAccountsResponse; + addAccounts(value?: Account, index?: number): Account; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAccountsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListAccountsResponse): ListAccountsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAccountsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAccountsResponse; + static deserializeBinaryFromReader(message: ListAccountsResponse, reader: jspb.BinaryReader): ListAccountsResponse; +} + +export namespace ListAccountsResponse { + export type AsObject = { + accountsList: Array, + } +} + +export class ListAssetsRequest extends jspb.Message { + getAsset(): string; + setAsset(value: string): ListAssetsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAssetsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAssetsRequest): ListAssetsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAssetsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAssetsRequest; + static deserializeBinaryFromReader(message: ListAssetsRequest, reader: jspb.BinaryReader): ListAssetsRequest; +} + +export namespace ListAssetsRequest { + export type AsObject = { + asset: string, + } +} + +export class ListAssetsResponse extends jspb.Message { + clearAssetsList(): void; + getAssetsList(): Array; + setAssetsList(value: Array): ListAssetsResponse; + addAssets(value?: assets_pb.Asset, index?: number): assets_pb.Asset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAssetsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListAssetsResponse): ListAssetsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAssetsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAssetsResponse; + static deserializeBinaryFromReader(message: ListAssetsResponse, reader: jspb.BinaryReader): ListAssetsResponse; +} + +export namespace ListAssetsResponse { + export type AsObject = { + assetsList: Array, + } +} + +export class ListNetworkParametersRequest extends jspb.Message { + getNetworkParameterKey(): string; + setNetworkParameterKey(value: string): ListNetworkParametersRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListNetworkParametersRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListNetworkParametersRequest): ListNetworkParametersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListNetworkParametersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNetworkParametersRequest; + static deserializeBinaryFromReader(message: ListNetworkParametersRequest, reader: jspb.BinaryReader): ListNetworkParametersRequest; +} + +export namespace ListNetworkParametersRequest { + export type AsObject = { + networkParameterKey: string, + } +} + +export class ListNetworkParametersResponse extends jspb.Message { + clearNetworkParametersList(): void; + getNetworkParametersList(): Array; + setNetworkParametersList(value: Array): ListNetworkParametersResponse; + addNetworkParameters(value?: vega_pb.NetworkParameter, index?: number): vega_pb.NetworkParameter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListNetworkParametersResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListNetworkParametersResponse): ListNetworkParametersResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListNetworkParametersResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNetworkParametersResponse; + static deserializeBinaryFromReader(message: ListNetworkParametersResponse, reader: jspb.BinaryReader): ListNetworkParametersResponse; +} + +export namespace ListNetworkParametersResponse { + export type AsObject = { + networkParametersList: Array, + } +} + +export class ListPartiesRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListPartiesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListPartiesRequest): ListPartiesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListPartiesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListPartiesRequest; + static deserializeBinaryFromReader(message: ListPartiesRequest, reader: jspb.BinaryReader): ListPartiesRequest; +} + +export namespace ListPartiesRequest { + export type AsObject = { + } +} + +export class ListPartiesResponse extends jspb.Message { + clearPartiesList(): void; + getPartiesList(): Array; + setPartiesList(value: Array): ListPartiesResponse; + addParties(value?: vega_pb.Party, index?: number): vega_pb.Party; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListPartiesResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListPartiesResponse): ListPartiesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListPartiesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListPartiesResponse; + static deserializeBinaryFromReader(message: ListPartiesResponse, reader: jspb.BinaryReader): ListPartiesResponse; +} + +export namespace ListPartiesResponse { + export type AsObject = { + partiesList: Array, + } +} + +export class ListValidatorsRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListValidatorsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListValidatorsRequest): ListValidatorsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListValidatorsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListValidatorsRequest; + static deserializeBinaryFromReader(message: ListValidatorsRequest, reader: jspb.BinaryReader): ListValidatorsRequest; +} + +export namespace ListValidatorsRequest { + export type AsObject = { + } +} + +export class ListValidatorsResponse extends jspb.Message { + clearValidatorsList(): void; + getValidatorsList(): Array; + setValidatorsList(value: Array): ListValidatorsResponse; + addValidators(value?: events_v1_events_pb.ValidatorUpdate, index?: number): events_v1_events_pb.ValidatorUpdate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListValidatorsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListValidatorsResponse): ListValidatorsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListValidatorsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListValidatorsResponse; + static deserializeBinaryFromReader(message: ListValidatorsResponse, reader: jspb.BinaryReader): ListValidatorsResponse; +} + +export namespace ListValidatorsResponse { + export type AsObject = { + validatorsList: Array, + } +} + +export class ListMarketsRequest extends jspb.Message { + getMarket(): string; + setMarket(value: string): ListMarketsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMarketsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMarketsRequest): ListMarketsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMarketsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMarketsRequest; + static deserializeBinaryFromReader(message: ListMarketsRequest, reader: jspb.BinaryReader): ListMarketsRequest; +} + +export namespace ListMarketsRequest { + export type AsObject = { + market: string, + } +} + +export class ListMarketsResponse extends jspb.Message { + clearMarketsList(): void; + getMarketsList(): Array; + setMarketsList(value: Array): ListMarketsResponse; + addMarkets(value?: markets_pb.Market, index?: number): markets_pb.Market; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMarketsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMarketsResponse): ListMarketsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMarketsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMarketsResponse; + static deserializeBinaryFromReader(message: ListMarketsResponse, reader: jspb.BinaryReader): ListMarketsResponse; +} + +export namespace ListMarketsResponse { + export type AsObject = { + marketsList: Array, + } +} + +export class ListProposalsRequest extends jspb.Message { + getProposal(): string; + setProposal(value: string): ListProposalsRequest; + getProposer(): string; + setProposer(value: string): ListProposalsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListProposalsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListProposalsRequest): ListProposalsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListProposalsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListProposalsRequest; + static deserializeBinaryFromReader(message: ListProposalsRequest, reader: jspb.BinaryReader): ListProposalsRequest; +} + +export namespace ListProposalsRequest { + export type AsObject = { + proposal: string, + proposer: string, + } +} + +export class ListProposalsResponse extends jspb.Message { + clearProposalsList(): void; + getProposalsList(): Array; + setProposalsList(value: Array): ListProposalsResponse; + addProposals(value?: governance_pb.Proposal, index?: number): governance_pb.Proposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListProposalsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListProposalsResponse): ListProposalsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListProposalsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListProposalsResponse; + static deserializeBinaryFromReader(message: ListProposalsResponse, reader: jspb.BinaryReader): ListProposalsResponse; +} + +export namespace ListProposalsResponse { + export type AsObject = { + proposalsList: Array, + } +} + +export class ListMarketsDataRequest extends jspb.Message { + getMarket(): string; + setMarket(value: string): ListMarketsDataRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMarketsDataRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMarketsDataRequest): ListMarketsDataRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMarketsDataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMarketsDataRequest; + static deserializeBinaryFromReader(message: ListMarketsDataRequest, reader: jspb.BinaryReader): ListMarketsDataRequest; +} + +export namespace ListMarketsDataRequest { + export type AsObject = { + market: string, + } +} + +export class ListMarketsDataResponse extends jspb.Message { + clearMarketsDataList(): void; + getMarketsDataList(): Array; + setMarketsDataList(value: Array): ListMarketsDataResponse; + addMarketsData(value?: vega_pb.MarketData, index?: number): vega_pb.MarketData; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMarketsDataResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMarketsDataResponse): ListMarketsDataResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMarketsDataResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMarketsDataResponse; + static deserializeBinaryFromReader(message: ListMarketsDataResponse, reader: jspb.BinaryReader): ListMarketsDataResponse; +} + +export namespace ListMarketsDataResponse { + export type AsObject = { + marketsDataList: Array, + } +} + +export class ListVotesRequest extends jspb.Message { + getProposal(): string; + setProposal(value: string): ListVotesRequest; + getParty(): string; + setParty(value: string): ListVotesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVotesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListVotesRequest): ListVotesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListVotesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListVotesRequest; + static deserializeBinaryFromReader(message: ListVotesRequest, reader: jspb.BinaryReader): ListVotesRequest; +} + +export namespace ListVotesRequest { + export type AsObject = { + proposal: string, + party: string, + } +} + +export class ListVotesResponse extends jspb.Message { + clearVotesList(): void; + getVotesList(): Array; + setVotesList(value: Array): ListVotesResponse; + addVotes(value?: governance_pb.Vote, index?: number): governance_pb.Vote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVotesResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListVotesResponse): ListVotesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListVotesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListVotesResponse; + static deserializeBinaryFromReader(message: ListVotesResponse, reader: jspb.BinaryReader): ListVotesResponse; +} + +export namespace ListVotesResponse { + export type AsObject = { + votesList: Array, + } +} diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js new file mode 100644 index 00000000..e3203a95 --- /dev/null +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js @@ -0,0 +1,3337 @@ +// source: coreapi/v1/coreapi.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var assets_pb = require('../../assets_pb.js'); +goog.object.extend(proto, assets_pb); +var governance_pb = require('../../governance_pb.js'); +goog.object.extend(proto, governance_pb); +var markets_pb = require('../../markets_pb.js'); +goog.object.extend(proto, markets_pb); +var vega_pb = require('../../vega_pb.js'); +goog.object.extend(proto, vega_pb); +var events_v1_events_pb = require('../../events/v1/events_pb.js'); +goog.object.extend(proto, events_v1_events_pb); +goog.exportSymbol('proto.vega.coreapi.v1.Account', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListAccountsRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListAccountsResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListAssetsRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListAssetsResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListMarketsDataRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListMarketsDataResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListMarketsRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListMarketsResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListNetworkParametersRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListNetworkParametersResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListProposalsRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListProposalsResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListValidatorsRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListValidatorsResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListVotesRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListVotesResponse', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.Account = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.Account, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.Account.displayName = 'proto.vega.coreapi.v1.Account'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListAccountsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListAccountsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListAccountsRequest.displayName = 'proto.vega.coreapi.v1.ListAccountsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListAccountsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListAccountsResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListAccountsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListAccountsResponse.displayName = 'proto.vega.coreapi.v1.ListAccountsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListAssetsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListAssetsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListAssetsRequest.displayName = 'proto.vega.coreapi.v1.ListAssetsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListAssetsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListAssetsResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListAssetsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListAssetsResponse.displayName = 'proto.vega.coreapi.v1.ListAssetsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListNetworkParametersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListNetworkParametersRequest.displayName = 'proto.vega.coreapi.v1.ListNetworkParametersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListNetworkParametersResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListNetworkParametersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListNetworkParametersResponse.displayName = 'proto.vega.coreapi.v1.ListNetworkParametersResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListPartiesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListPartiesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListPartiesRequest.displayName = 'proto.vega.coreapi.v1.ListPartiesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListPartiesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListPartiesResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListPartiesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListPartiesResponse.displayName = 'proto.vega.coreapi.v1.ListPartiesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListValidatorsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListValidatorsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListValidatorsRequest.displayName = 'proto.vega.coreapi.v1.ListValidatorsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListValidatorsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListValidatorsResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListValidatorsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListValidatorsResponse.displayName = 'proto.vega.coreapi.v1.ListValidatorsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListMarketsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListMarketsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListMarketsRequest.displayName = 'proto.vega.coreapi.v1.ListMarketsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListMarketsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListMarketsResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListMarketsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListMarketsResponse.displayName = 'proto.vega.coreapi.v1.ListMarketsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListProposalsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListProposalsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListProposalsRequest.displayName = 'proto.vega.coreapi.v1.ListProposalsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListProposalsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListProposalsResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListProposalsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListProposalsResponse.displayName = 'proto.vega.coreapi.v1.ListProposalsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListMarketsDataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListMarketsDataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListMarketsDataRequest.displayName = 'proto.vega.coreapi.v1.ListMarketsDataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListMarketsDataResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListMarketsDataResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListMarketsDataResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListMarketsDataResponse.displayName = 'proto.vega.coreapi.v1.ListMarketsDataResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListVotesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListVotesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListVotesRequest.displayName = 'proto.vega.coreapi.v1.ListVotesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListVotesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListVotesResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListVotesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListVotesResponse.displayName = 'proto.vega.coreapi.v1.ListVotesResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.Account.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.Account.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.Account} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.Account.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + market: jspb.Message.getFieldWithDefault(msg, 2, ""), + balance: jspb.Message.getFieldWithDefault(msg, 3, ""), + asset: jspb.Message.getFieldWithDefault(msg, 5, ""), + type: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.Account} + */ +proto.vega.coreapi.v1.Account.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.Account; + return proto.vega.coreapi.v1.Account.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.Account} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.Account} + */ +proto.vega.coreapi.v1.Account.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMarket(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setBalance(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.Account.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.Account.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.Account} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.Account.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMarket(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBalance(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.coreapi.v1.Account.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.Account} returns this + */ +proto.vega.coreapi.v1.Account.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string market = 2; + * @return {string} + */ +proto.vega.coreapi.v1.Account.prototype.getMarket = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.Account} returns this + */ +proto.vega.coreapi.v1.Account.prototype.setMarket = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string balance = 3; + * @return {string} + */ +proto.vega.coreapi.v1.Account.prototype.getBalance = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.Account} returns this + */ +proto.vega.coreapi.v1.Account.prototype.setBalance = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string asset = 5; + * @return {string} + */ +proto.vega.coreapi.v1.Account.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.Account} returns this + */ +proto.vega.coreapi.v1.Account.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string type = 6; + * @return {string} + */ +proto.vega.coreapi.v1.Account.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.Account} returns this + */ +proto.vega.coreapi.v1.Account.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListAccountsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListAccountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAccountsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + market: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListAccountsRequest} + */ +proto.vega.coreapi.v1.ListAccountsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListAccountsRequest; + return proto.vega.coreapi.v1.ListAccountsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListAccountsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListAccountsRequest} + */ +proto.vega.coreapi.v1.ListAccountsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMarket(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListAccountsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListAccountsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAccountsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMarket(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListAccountsRequest} returns this + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string market = 2; + * @return {string} + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.getMarket = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListAccountsRequest} returns this + */ +proto.vega.coreapi.v1.ListAccountsRequest.prototype.setMarket = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListAccountsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListAccountsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListAccountsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAccountsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + accountsList: jspb.Message.toObjectList(msg.getAccountsList(), + proto.vega.coreapi.v1.Account.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListAccountsResponse} + */ +proto.vega.coreapi.v1.ListAccountsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListAccountsResponse; + return proto.vega.coreapi.v1.ListAccountsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListAccountsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListAccountsResponse} + */ +proto.vega.coreapi.v1.ListAccountsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.vega.coreapi.v1.Account; + reader.readMessage(value,proto.vega.coreapi.v1.Account.deserializeBinaryFromReader); + msg.addAccounts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListAccountsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListAccountsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAccountsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.vega.coreapi.v1.Account.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Account accounts = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.getAccountsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.coreapi.v1.Account, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListAccountsResponse} returns this +*/ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.setAccountsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.coreapi.v1.Account=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.coreapi.v1.Account} + */ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.addAccounts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.coreapi.v1.Account, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListAccountsResponse} returns this + */ +proto.vega.coreapi.v1.ListAccountsResponse.prototype.clearAccountsList = function() { + return this.setAccountsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListAssetsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListAssetsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListAssetsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAssetsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + asset: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListAssetsRequest} + */ +proto.vega.coreapi.v1.ListAssetsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListAssetsRequest; + return proto.vega.coreapi.v1.ListAssetsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListAssetsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListAssetsRequest} + */ +proto.vega.coreapi.v1.ListAssetsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListAssetsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListAssetsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListAssetsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAssetsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string asset = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListAssetsRequest.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListAssetsRequest} returns this + */ +proto.vega.coreapi.v1.ListAssetsRequest.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListAssetsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListAssetsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListAssetsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAssetsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + assetsList: jspb.Message.toObjectList(msg.getAssetsList(), + assets_pb.Asset.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListAssetsResponse} + */ +proto.vega.coreapi.v1.ListAssetsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListAssetsResponse; + return proto.vega.coreapi.v1.ListAssetsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListAssetsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListAssetsResponse} + */ +proto.vega.coreapi.v1.ListAssetsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new assets_pb.Asset; + reader.readMessage(value,assets_pb.Asset.deserializeBinaryFromReader); + msg.addAssets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListAssetsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListAssetsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListAssetsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + assets_pb.Asset.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Asset assets = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.getAssetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, assets_pb.Asset, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListAssetsResponse} returns this +*/ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.setAssetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Asset=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Asset} + */ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.addAssets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Asset, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListAssetsResponse} returns this + */ +proto.vega.coreapi.v1.ListAssetsResponse.prototype.clearAssetsList = function() { + return this.setAssetsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListNetworkParametersRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListNetworkParametersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.toObject = function(includeInstance, msg) { + var f, obj = { + networkParameterKey: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListNetworkParametersRequest} + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListNetworkParametersRequest; + return proto.vega.coreapi.v1.ListNetworkParametersRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListNetworkParametersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListNetworkParametersRequest} + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNetworkParameterKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListNetworkParametersRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListNetworkParametersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNetworkParameterKey(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string network_parameter_key = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.prototype.getNetworkParameterKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListNetworkParametersRequest} returns this + */ +proto.vega.coreapi.v1.ListNetworkParametersRequest.prototype.setNetworkParameterKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListNetworkParametersResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListNetworkParametersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.toObject = function(includeInstance, msg) { + var f, obj = { + networkParametersList: jspb.Message.toObjectList(msg.getNetworkParametersList(), + vega_pb.NetworkParameter.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListNetworkParametersResponse} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListNetworkParametersResponse; + return proto.vega.coreapi.v1.ListNetworkParametersResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListNetworkParametersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListNetworkParametersResponse} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new vega_pb.NetworkParameter; + reader.readMessage(value,vega_pb.NetworkParameter.deserializeBinaryFromReader); + msg.addNetworkParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListNetworkParametersResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListNetworkParametersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNetworkParametersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + vega_pb.NetworkParameter.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.NetworkParameter network_parameters = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.getNetworkParametersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, vega_pb.NetworkParameter, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListNetworkParametersResponse} returns this +*/ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.setNetworkParametersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.NetworkParameter=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.NetworkParameter} + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.addNetworkParameters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.NetworkParameter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListNetworkParametersResponse} returns this + */ +proto.vega.coreapi.v1.ListNetworkParametersResponse.prototype.clearNetworkParametersList = function() { + return this.setNetworkParametersList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListPartiesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListPartiesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListPartiesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListPartiesRequest} + */ +proto.vega.coreapi.v1.ListPartiesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListPartiesRequest; + return proto.vega.coreapi.v1.ListPartiesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListPartiesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListPartiesRequest} + */ +proto.vega.coreapi.v1.ListPartiesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListPartiesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListPartiesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListPartiesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListPartiesResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListPartiesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListPartiesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + partiesList: jspb.Message.toObjectList(msg.getPartiesList(), + vega_pb.Party.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListPartiesResponse} + */ +proto.vega.coreapi.v1.ListPartiesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListPartiesResponse; + return proto.vega.coreapi.v1.ListPartiesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListPartiesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListPartiesResponse} + */ +proto.vega.coreapi.v1.ListPartiesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new vega_pb.Party; + reader.readMessage(value,vega_pb.Party.deserializeBinaryFromReader); + msg.addParties(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListPartiesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListPartiesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPartiesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + vega_pb.Party.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Party parties = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.getPartiesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, vega_pb.Party, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListPartiesResponse} returns this +*/ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.setPartiesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Party=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Party} + */ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.addParties = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Party, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListPartiesResponse} returns this + */ +proto.vega.coreapi.v1.ListPartiesResponse.prototype.clearPartiesList = function() { + return this.setPartiesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListValidatorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListValidatorsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListValidatorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListValidatorsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListValidatorsRequest} + */ +proto.vega.coreapi.v1.ListValidatorsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListValidatorsRequest; + return proto.vega.coreapi.v1.ListValidatorsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListValidatorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListValidatorsRequest} + */ +proto.vega.coreapi.v1.ListValidatorsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListValidatorsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListValidatorsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListValidatorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListValidatorsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListValidatorsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListValidatorsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListValidatorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListValidatorsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), + events_v1_events_pb.ValidatorUpdate.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListValidatorsResponse} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListValidatorsResponse; + return proto.vega.coreapi.v1.ListValidatorsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListValidatorsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListValidatorsResponse} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new events_v1_events_pb.ValidatorUpdate; + reader.readMessage(value,events_v1_events_pb.ValidatorUpdate.deserializeBinaryFromReader); + msg.addValidators(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListValidatorsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListValidatorsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListValidatorsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValidatorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + events_v1_events_pb.ValidatorUpdate.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.events.v1.ValidatorUpdate validators = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, events_v1_events_pb.ValidatorUpdate, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListValidatorsResponse} returns this +*/ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.setValidatorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.events.v1.ValidatorUpdate=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.events.v1.ValidatorUpdate} + */ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.events.v1.ValidatorUpdate, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListValidatorsResponse} returns this + */ +proto.vega.coreapi.v1.ListValidatorsResponse.prototype.clearValidatorsList = function() { + return this.setValidatorsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListMarketsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListMarketsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListMarketsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + market: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListMarketsRequest} + */ +proto.vega.coreapi.v1.ListMarketsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListMarketsRequest; + return proto.vega.coreapi.v1.ListMarketsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListMarketsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListMarketsRequest} + */ +proto.vega.coreapi.v1.ListMarketsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMarket(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListMarketsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListMarketsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListMarketsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMarket(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string market = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListMarketsRequest.prototype.getMarket = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListMarketsRequest} returns this + */ +proto.vega.coreapi.v1.ListMarketsRequest.prototype.setMarket = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListMarketsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListMarketsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListMarketsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + marketsList: jspb.Message.toObjectList(msg.getMarketsList(), + markets_pb.Market.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListMarketsResponse} + */ +proto.vega.coreapi.v1.ListMarketsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListMarketsResponse; + return proto.vega.coreapi.v1.ListMarketsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListMarketsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListMarketsResponse} + */ +proto.vega.coreapi.v1.ListMarketsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new markets_pb.Market; + reader.readMessage(value,markets_pb.Market.deserializeBinaryFromReader); + msg.addMarkets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListMarketsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListMarketsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMarketsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + markets_pb.Market.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Market markets = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.getMarketsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, markets_pb.Market, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListMarketsResponse} returns this +*/ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.setMarketsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Market=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Market} + */ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.addMarkets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Market, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListMarketsResponse} returns this + */ +proto.vega.coreapi.v1.ListMarketsResponse.prototype.clearMarketsList = function() { + return this.setMarketsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListProposalsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListProposalsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListProposalsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: jspb.Message.getFieldWithDefault(msg, 1, ""), + proposer: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListProposalsRequest} + */ +proto.vega.coreapi.v1.ListProposalsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListProposalsRequest; + return proto.vega.coreapi.v1.ListProposalsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListProposalsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListProposalsRequest} + */ +proto.vega.coreapi.v1.ListProposalsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProposal(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setProposer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListProposalsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListProposalsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListProposalsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getProposer(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string proposal = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.getProposal = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListProposalsRequest} returns this + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.setProposal = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string proposer = 2; + * @return {string} + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.getProposer = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListProposalsRequest} returns this + */ +proto.vega.coreapi.v1.ListProposalsRequest.prototype.setProposer = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListProposalsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListProposalsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListProposalsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListProposalsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + proposalsList: jspb.Message.toObjectList(msg.getProposalsList(), + governance_pb.Proposal.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListProposalsResponse} + */ +proto.vega.coreapi.v1.ListProposalsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListProposalsResponse; + return proto.vega.coreapi.v1.ListProposalsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListProposalsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListProposalsResponse} + */ +proto.vega.coreapi.v1.ListProposalsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new governance_pb.Proposal; + reader.readMessage(value,governance_pb.Proposal.deserializeBinaryFromReader); + msg.addProposals(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListProposalsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListProposalsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListProposalsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + governance_pb.Proposal.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Proposal proposals = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.getProposalsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, governance_pb.Proposal, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListProposalsResponse} returns this +*/ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.setProposalsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Proposal=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Proposal} + */ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.addProposals = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Proposal, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListProposalsResponse} returns this + */ +proto.vega.coreapi.v1.ListProposalsResponse.prototype.clearProposalsList = function() { + return this.setProposalsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListMarketsDataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListMarketsDataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + market: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListMarketsDataRequest} + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListMarketsDataRequest; + return proto.vega.coreapi.v1.ListMarketsDataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListMarketsDataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListMarketsDataRequest} + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMarket(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListMarketsDataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListMarketsDataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMarket(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string market = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.prototype.getMarket = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListMarketsDataRequest} returns this + */ +proto.vega.coreapi.v1.ListMarketsDataRequest.prototype.setMarket = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListMarketsDataResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListMarketsDataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + marketsDataList: jspb.Message.toObjectList(msg.getMarketsDataList(), + vega_pb.MarketData.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListMarketsDataResponse} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListMarketsDataResponse; + return proto.vega.coreapi.v1.ListMarketsDataResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListMarketsDataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListMarketsDataResponse} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new vega_pb.MarketData; + reader.readMessage(value,vega_pb.MarketData.deserializeBinaryFromReader); + msg.addMarketsData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListMarketsDataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListMarketsDataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMarketsDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + vega_pb.MarketData.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.MarketData markets_data = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.getMarketsDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, vega_pb.MarketData, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListMarketsDataResponse} returns this +*/ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.setMarketsDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.MarketData=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.MarketData} + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.addMarketsData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.MarketData, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListMarketsDataResponse} returns this + */ +proto.vega.coreapi.v1.ListMarketsDataResponse.prototype.clearMarketsDataList = function() { + return this.setMarketsDataList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListVotesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListVotesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListVotesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: jspb.Message.getFieldWithDefault(msg, 1, ""), + party: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListVotesRequest} + */ +proto.vega.coreapi.v1.ListVotesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListVotesRequest; + return proto.vega.coreapi.v1.ListVotesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListVotesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListVotesRequest} + */ +proto.vega.coreapi.v1.ListVotesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProposal(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListVotesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListVotesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListVotesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string proposal = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.getProposal = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListVotesRequest} returns this + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.setProposal = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string party = 2; + * @return {string} + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListVotesRequest} returns this + */ +proto.vega.coreapi.v1.ListVotesRequest.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListVotesResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListVotesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListVotesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListVotesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListVotesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + votesList: jspb.Message.toObjectList(msg.getVotesList(), + governance_pb.Vote.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListVotesResponse} + */ +proto.vega.coreapi.v1.ListVotesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListVotesResponse; + return proto.vega.coreapi.v1.ListVotesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListVotesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListVotesResponse} + */ +proto.vega.coreapi.v1.ListVotesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new governance_pb.Vote; + reader.readMessage(value,governance_pb.Vote.deserializeBinaryFromReader); + msg.addVotes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListVotesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListVotesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListVotesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListVotesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVotesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + governance_pb.Vote.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Vote votes = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListVotesResponse.prototype.getVotesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, governance_pb.Vote, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListVotesResponse} returns this +*/ +proto.vega.coreapi.v1.ListVotesResponse.prototype.setVotesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Vote=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Vote} + */ +proto.vega.coreapi.v1.ListVotesResponse.prototype.addVotes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Vote, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListVotesResponse} returns this + */ +proto.vega.coreapi.v1.ListVotesResponse.prototype.clearVotesList = function() { + return this.setVotesList([]); +}; + + +goog.object.extend(exports, proto.vega.coreapi.v1); diff --git a/grpc/clients/js/generated/events/v1/events_grpc_pb.d.ts b/grpc/clients/js/generated/events/v1/events_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/events/v1/events_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/events/v1/events_grpc_pb.js b/grpc/clients/js/generated/events/v1/events_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/events/v1/events_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/events/v1/events_pb.d.ts b/grpc/clients/js/generated/events/v1/events_pb.d.ts index 88810fd5..735c626e 100644 --- a/grpc/clients/js/generated/events/v1/events_pb.d.ts +++ b/grpc/clients/js/generated/events/v1/events_pb.d.ts @@ -1,6 +1,9 @@ // package: vega.events.v1 // file: events/v1/events.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as markets_pb from "../../markets_pb"; import * as assets_pb from "../../assets_pb"; @@ -11,845 +14,938 @@ import * as oracles_v1_data_pb from "../../oracles/v1/data_pb"; import * as commands_v1_commands_pb from "../../commands/v1/commands_pb"; import * as commands_v1_validator_commands_pb from "../../commands/v1/validator_commands_pb"; -export class StakingEvent extends jspb.Message { - getId(): string; - setId(value: string): void; - - getType(): StakingEvent.TypeMap[keyof StakingEvent.TypeMap]; - setType(value: StakingEvent.TypeMap[keyof StakingEvent.TypeMap]): void; - - getTs(): number; - setTs(value: number): void; - - getParty(): string; - setParty(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StakingEvent.AsObject; - static toObject(includeInstance: boolean, msg: StakingEvent): StakingEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StakingEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StakingEvent; - static deserializeBinaryFromReader(message: StakingEvent, reader: jspb.BinaryReader): StakingEvent; -} - -export namespace StakingEvent { - export type AsObject = { - id: string, - type: StakingEvent.TypeMap[keyof StakingEvent.TypeMap], - ts: number, - party: string, - amount: string, - } - - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_DEPOSIT: 1; - TYPE_REMOVE: 2; - } - - export const Type: TypeMap; +export class StakeLinking extends jspb.Message { + getId(): string; + setId(value: string): StakeLinking; + getType(): StakeLinking.Type; + setType(value: StakeLinking.Type): StakeLinking; + getTs(): number; + setTs(value: number): StakeLinking; + getParty(): string; + setParty(value: string): StakeLinking; + getAmount(): string; + setAmount(value: string): StakeLinking; + getStatus(): StakeLinking.Status; + setStatus(value: StakeLinking.Status): StakeLinking; + getFinalizedAt(): number; + setFinalizedAt(value: number): StakeLinking; + getTxHash(): string; + setTxHash(value: string): StakeLinking; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakeLinking.AsObject; + static toObject(includeInstance: boolean, msg: StakeLinking): StakeLinking.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakeLinking, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakeLinking; + static deserializeBinaryFromReader(message: StakeLinking, reader: jspb.BinaryReader): StakeLinking; +} + +export namespace StakeLinking { + export type AsObject = { + id: string, + type: StakeLinking.Type, + ts: number, + party: string, + amount: string, + status: StakeLinking.Status, + finalizedAt: number, + txHash: string, + } + + export enum Type { + TYPE_UNSPECIFIED = 0, + TYPE_LINK = 1, + TYPE_UNLINK = 2, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_PENDING = 1, + STATUS_ACCEPTED = 2, + STATUS_REJECTED = 3, + } + +} + +export class CheckpointEvent extends jspb.Message { + getHash(): string; + setHash(value: string): CheckpointEvent; + getBlockHash(): string; + setBlockHash(value: string): CheckpointEvent; + getBlockHeight(): number; + setBlockHeight(value: number): CheckpointEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckpointEvent.AsObject; + static toObject(includeInstance: boolean, msg: CheckpointEvent): CheckpointEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckpointEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckpointEvent; + static deserializeBinaryFromReader(message: CheckpointEvent, reader: jspb.BinaryReader): CheckpointEvent; +} + +export namespace CheckpointEvent { + export type AsObject = { + hash: string, + blockHash: string, + blockHeight: number, + } +} + +export class RewardPayoutEvent extends jspb.Message { + getParty(): string; + setParty(value: string): RewardPayoutEvent; + getEpochSeq(): string; + setEpochSeq(value: string): RewardPayoutEvent; + getAsset(): string; + setAsset(value: string): RewardPayoutEvent; + getAmount(): string; + setAmount(value: string): RewardPayoutEvent; + getPercentOfTotalReward(): string; + setPercentOfTotalReward(value: string): RewardPayoutEvent; + getTimestamp(): number; + setTimestamp(value: number): RewardPayoutEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardPayoutEvent.AsObject; + static toObject(includeInstance: boolean, msg: RewardPayoutEvent): RewardPayoutEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardPayoutEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardPayoutEvent; + static deserializeBinaryFromReader(message: RewardPayoutEvent, reader: jspb.BinaryReader): RewardPayoutEvent; +} + +export namespace RewardPayoutEvent { + export type AsObject = { + party: string, + epochSeq: string, + asset: string, + amount: string, + percentOfTotalReward: string, + timestamp: number, + } +} + +export class ValidatorScoreEvent extends jspb.Message { + getNodeId(): string; + setNodeId(value: string): ValidatorScoreEvent; + getEpochSeq(): string; + setEpochSeq(value: string): ValidatorScoreEvent; + getValidatorScore(): string; + setValidatorScore(value: string): ValidatorScoreEvent; + getNormalisedScore(): string; + setNormalisedScore(value: string): ValidatorScoreEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidatorScoreEvent.AsObject; + static toObject(includeInstance: boolean, msg: ValidatorScoreEvent): ValidatorScoreEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidatorScoreEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidatorScoreEvent; + static deserializeBinaryFromReader(message: ValidatorScoreEvent, reader: jspb.BinaryReader): ValidatorScoreEvent; +} + +export namespace ValidatorScoreEvent { + export type AsObject = { + nodeId: string, + epochSeq: string, + validatorScore: string, + normalisedScore: string, + } } export class DelegationBalanceEvent extends jspb.Message { - getParty(): string; - setParty(value: string): void; - - getNodeId(): string; - setNodeId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelegationBalanceEvent.AsObject; - static toObject(includeInstance: boolean, msg: DelegationBalanceEvent): DelegationBalanceEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DelegationBalanceEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelegationBalanceEvent; - static deserializeBinaryFromReader(message: DelegationBalanceEvent, reader: jspb.BinaryReader): DelegationBalanceEvent; + getParty(): string; + setParty(value: string): DelegationBalanceEvent; + getNodeId(): string; + setNodeId(value: string): DelegationBalanceEvent; + getAmount(): number; + setAmount(value: number): DelegationBalanceEvent; + getEpochSeq(): string; + setEpochSeq(value: string): DelegationBalanceEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DelegationBalanceEvent.AsObject; + static toObject(includeInstance: boolean, msg: DelegationBalanceEvent): DelegationBalanceEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DelegationBalanceEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DelegationBalanceEvent; + static deserializeBinaryFromReader(message: DelegationBalanceEvent, reader: jspb.BinaryReader): DelegationBalanceEvent; } export namespace DelegationBalanceEvent { - export type AsObject = { - party: string, - nodeId: string, - amount: number, - } + export type AsObject = { + party: string, + nodeId: string, + amount: number, + epochSeq: string, + } } export class PendingDelegationBalanceEvent extends jspb.Message { - getParty(): string; - setParty(value: string): void; - - getNodeId(): string; - setNodeId(value: string): void; - - getDelegationAmount(): number; - setDelegationAmount(value: number): void; - - getUndelegationAmount(): number; - setUndelegationAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PendingDelegationBalanceEvent.AsObject; - static toObject(includeInstance: boolean, msg: PendingDelegationBalanceEvent): PendingDelegationBalanceEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PendingDelegationBalanceEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PendingDelegationBalanceEvent; - static deserializeBinaryFromReader(message: PendingDelegationBalanceEvent, reader: jspb.BinaryReader): PendingDelegationBalanceEvent; + getParty(): string; + setParty(value: string): PendingDelegationBalanceEvent; + getNodeId(): string; + setNodeId(value: string): PendingDelegationBalanceEvent; + getDelegationAmount(): number; + setDelegationAmount(value: number): PendingDelegationBalanceEvent; + getUndelegationAmount(): number; + setUndelegationAmount(value: number): PendingDelegationBalanceEvent; + getEpochSeq(): string; + setEpochSeq(value: string): PendingDelegationBalanceEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PendingDelegationBalanceEvent.AsObject; + static toObject(includeInstance: boolean, msg: PendingDelegationBalanceEvent): PendingDelegationBalanceEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PendingDelegationBalanceEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PendingDelegationBalanceEvent; + static deserializeBinaryFromReader(message: PendingDelegationBalanceEvent, reader: jspb.BinaryReader): PendingDelegationBalanceEvent; } export namespace PendingDelegationBalanceEvent { - export type AsObject = { - party: string, - nodeId: string, - delegationAmount: number, - undelegationAmount: number, - } + export type AsObject = { + party: string, + nodeId: string, + delegationAmount: number, + undelegationAmount: number, + epochSeq: string, + } } export class MarketEvent extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPayload(): string; - setPayload(value: string): void; + getMarketId(): string; + setMarketId(value: string): MarketEvent; + getPayload(): string; + setPayload(value: string): MarketEvent; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketEvent.AsObject; - static toObject(includeInstance: boolean, msg: MarketEvent): MarketEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketEvent; - static deserializeBinaryFromReader(message: MarketEvent, reader: jspb.BinaryReader): MarketEvent; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketEvent.AsObject; + static toObject(includeInstance: boolean, msg: MarketEvent): MarketEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketEvent; + static deserializeBinaryFromReader(message: MarketEvent, reader: jspb.BinaryReader): MarketEvent; } export namespace MarketEvent { - export type AsObject = { - marketId: string, - payload: string, - } + export type AsObject = { + marketId: string, + payload: string, + } } export class TxErrorEvent extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getErrMsg(): string; - setErrMsg(value: string): void; - - hasOrderSubmission(): boolean; - clearOrderSubmission(): void; - getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; - setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): void; - - hasOrderAmendment(): boolean; - clearOrderAmendment(): void; - getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; - setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): void; - - hasOrderCancellation(): boolean; - clearOrderCancellation(): void; - getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; - setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): void; - - hasProposal(): boolean; - clearProposal(): void; - getProposal(): commands_v1_commands_pb.ProposalSubmission | undefined; - setProposal(value?: commands_v1_commands_pb.ProposalSubmission): void; - - hasVoteSubmission(): boolean; - clearVoteSubmission(): void; - getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; - setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): void; - - hasLiquidityProvisionSubmission(): boolean; - clearLiquidityProvisionSubmission(): void; - getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; - setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): void; - - hasWithdrawSubmission(): boolean; - clearWithdrawSubmission(): void; - getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; - setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): void; - - getTransactionCase(): TxErrorEvent.TransactionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TxErrorEvent.AsObject; - static toObject(includeInstance: boolean, msg: TxErrorEvent): TxErrorEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TxErrorEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TxErrorEvent; - static deserializeBinaryFromReader(message: TxErrorEvent, reader: jspb.BinaryReader): TxErrorEvent; + getPartyId(): string; + setPartyId(value: string): TxErrorEvent; + getErrMsg(): string; + setErrMsg(value: string): TxErrorEvent; + + hasOrderSubmission(): boolean; + clearOrderSubmission(): void; + getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; + setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): TxErrorEvent; + + hasOrderAmendment(): boolean; + clearOrderAmendment(): void; + getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; + setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): TxErrorEvent; + + hasOrderCancellation(): boolean; + clearOrderCancellation(): void; + getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; + setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): TxErrorEvent; + + hasProposal(): boolean; + clearProposal(): void; + getProposal(): commands_v1_commands_pb.ProposalSubmission | undefined; + setProposal(value?: commands_v1_commands_pb.ProposalSubmission): TxErrorEvent; + + hasVoteSubmission(): boolean; + clearVoteSubmission(): void; + getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; + setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): TxErrorEvent; + + hasLiquidityProvisionSubmission(): boolean; + clearLiquidityProvisionSubmission(): void; + getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; + setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): TxErrorEvent; + + hasWithdrawSubmission(): boolean; + clearWithdrawSubmission(): void; + getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; + setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): TxErrorEvent; + + getTransactionCase(): TxErrorEvent.TransactionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TxErrorEvent.AsObject; + static toObject(includeInstance: boolean, msg: TxErrorEvent): TxErrorEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TxErrorEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TxErrorEvent; + static deserializeBinaryFromReader(message: TxErrorEvent, reader: jspb.BinaryReader): TxErrorEvent; } export namespace TxErrorEvent { - export type AsObject = { - partyId: string, - errMsg: string, - orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, - orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, - orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, - proposal?: commands_v1_commands_pb.ProposalSubmission.AsObject, - voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, - liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, - withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, - } - - export enum TransactionCase { - TRANSACTION_NOT_SET = 0, - ORDER_SUBMISSION = 101, - ORDER_AMENDMENT = 102, - ORDER_CANCELLATION = 103, - PROPOSAL = 104, - VOTE_SUBMISSION = 105, - LIQUIDITY_PROVISION_SUBMISSION = 106, - WITHDRAW_SUBMISSION = 107, - } + export type AsObject = { + partyId: string, + errMsg: string, + orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, + orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, + orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, + proposal?: commands_v1_commands_pb.ProposalSubmission.AsObject, + voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, + liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, + withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, + } + + export enum TransactionCase { + TRANSACTION_NOT_SET = 0, + ORDER_SUBMISSION = 101, + ORDER_AMENDMENT = 102, + ORDER_CANCELLATION = 103, + PROPOSAL = 104, + VOTE_SUBMISSION = 105, + LIQUIDITY_PROVISION_SUBMISSION = 106, + WITHDRAW_SUBMISSION = 107, + } + } export class TimeUpdate extends jspb.Message { - getTimestamp(): number; - setTimestamp(value: number): void; + getTimestamp(): number; + setTimestamp(value: number): TimeUpdate; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TimeUpdate.AsObject; - static toObject(includeInstance: boolean, msg: TimeUpdate): TimeUpdate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TimeUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TimeUpdate; - static deserializeBinaryFromReader(message: TimeUpdate, reader: jspb.BinaryReader): TimeUpdate; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TimeUpdate.AsObject; + static toObject(includeInstance: boolean, msg: TimeUpdate): TimeUpdate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TimeUpdate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TimeUpdate; + static deserializeBinaryFromReader(message: TimeUpdate, reader: jspb.BinaryReader): TimeUpdate; } export namespace TimeUpdate { - export type AsObject = { - timestamp: number, - } + export type AsObject = { + timestamp: number, + } } export class EpochEvent extends jspb.Message { - getSeq(): number; - setSeq(value: number): void; - - getStartTime(): number; - setStartTime(value: number): void; - - getExpireTime(): number; - setExpireTime(value: number): void; - - getEndTime(): number; - setEndTime(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EpochEvent.AsObject; - static toObject(includeInstance: boolean, msg: EpochEvent): EpochEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EpochEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EpochEvent; - static deserializeBinaryFromReader(message: EpochEvent, reader: jspb.BinaryReader): EpochEvent; + getSeq(): number; + setSeq(value: number): EpochEvent; + getStartTime(): number; + setStartTime(value: number): EpochEvent; + getExpireTime(): number; + setExpireTime(value: number): EpochEvent; + getEndTime(): number; + setEndTime(value: number): EpochEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EpochEvent.AsObject; + static toObject(includeInstance: boolean, msg: EpochEvent): EpochEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EpochEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EpochEvent; + static deserializeBinaryFromReader(message: EpochEvent, reader: jspb.BinaryReader): EpochEvent; } export namespace EpochEvent { - export type AsObject = { - seq: number, - startTime: number, - expireTime: number, - endTime: number, - } + export type AsObject = { + seq: number, + startTime: number, + expireTime: number, + endTime: number, + } } export class TransferResponses extends jspb.Message { - clearResponsesList(): void; - getResponsesList(): Array; - setResponsesList(value: Array): void; - addResponses(value?: vega_pb.TransferResponse, index?: number): vega_pb.TransferResponse; + clearResponsesList(): void; + getResponsesList(): Array; + setResponsesList(value: Array): TransferResponses; + addResponses(value?: vega_pb.TransferResponse, index?: number): vega_pb.TransferResponse; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferResponses.AsObject; - static toObject(includeInstance: boolean, msg: TransferResponses): TransferResponses.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferResponses, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferResponses; - static deserializeBinaryFromReader(message: TransferResponses, reader: jspb.BinaryReader): TransferResponses; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferResponses.AsObject; + static toObject(includeInstance: boolean, msg: TransferResponses): TransferResponses.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferResponses, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferResponses; + static deserializeBinaryFromReader(message: TransferResponses, reader: jspb.BinaryReader): TransferResponses; } export namespace TransferResponses { - export type AsObject = { - responsesList: Array, - } + export type AsObject = { + responsesList: Array, + } } export class PositionResolution extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getDistressed(): number; - setDistressed(value: number): void; - - getClosed(): number; - setClosed(value: number): void; - - getMarkPrice(): number; - setMarkPrice(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionResolution.AsObject; - static toObject(includeInstance: boolean, msg: PositionResolution): PositionResolution.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionResolution, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionResolution; - static deserializeBinaryFromReader(message: PositionResolution, reader: jspb.BinaryReader): PositionResolution; + getMarketId(): string; + setMarketId(value: string): PositionResolution; + getDistressed(): number; + setDistressed(value: number): PositionResolution; + getClosed(): number; + setClosed(value: number): PositionResolution; + getMarkPrice(): number; + setMarkPrice(value: number): PositionResolution; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PositionResolution.AsObject; + static toObject(includeInstance: boolean, msg: PositionResolution): PositionResolution.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PositionResolution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PositionResolution; + static deserializeBinaryFromReader(message: PositionResolution, reader: jspb.BinaryReader): PositionResolution; } export namespace PositionResolution { - export type AsObject = { - marketId: string, - distressed: number, - closed: number, - markPrice: number, - } + export type AsObject = { + marketId: string, + distressed: number, + closed: number, + markPrice: number, + } } export class LossSocialization extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LossSocialization.AsObject; - static toObject(includeInstance: boolean, msg: LossSocialization): LossSocialization.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LossSocialization, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LossSocialization; - static deserializeBinaryFromReader(message: LossSocialization, reader: jspb.BinaryReader): LossSocialization; + getMarketId(): string; + setMarketId(value: string): LossSocialization; + getPartyId(): string; + setPartyId(value: string): LossSocialization; + getAmount(): number; + setAmount(value: number): LossSocialization; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LossSocialization.AsObject; + static toObject(includeInstance: boolean, msg: LossSocialization): LossSocialization.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LossSocialization, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LossSocialization; + static deserializeBinaryFromReader(message: LossSocialization, reader: jspb.BinaryReader): LossSocialization; } export namespace LossSocialization { - export type AsObject = { - marketId: string, - partyId: string, - amount: number, - } + export type AsObject = { + marketId: string, + partyId: string, + amount: number, + } } export class TradeSettlement extends jspb.Message { - getSize(): number; - setSize(value: number): void; - - getPrice(): number; - setPrice(value: number): void; + getSize(): number; + setSize(value: number): TradeSettlement; + getPrice(): number; + setPrice(value: number): TradeSettlement; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeSettlement.AsObject; - static toObject(includeInstance: boolean, msg: TradeSettlement): TradeSettlement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradeSettlement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeSettlement; - static deserializeBinaryFromReader(message: TradeSettlement, reader: jspb.BinaryReader): TradeSettlement; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeSettlement.AsObject; + static toObject(includeInstance: boolean, msg: TradeSettlement): TradeSettlement.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TradeSettlement, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeSettlement; + static deserializeBinaryFromReader(message: TradeSettlement, reader: jspb.BinaryReader): TradeSettlement; } export namespace TradeSettlement { - export type AsObject = { - size: number, - price: number, - } + export type AsObject = { + size: number, + price: number, + } } export class SettlePosition extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getPrice(): number; - setPrice(value: number): void; - - clearTradeSettlementsList(): void; - getTradeSettlementsList(): Array; - setTradeSettlementsList(value: Array): void; - addTradeSettlements(value?: TradeSettlement, index?: number): TradeSettlement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SettlePosition.AsObject; - static toObject(includeInstance: boolean, msg: SettlePosition): SettlePosition.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SettlePosition, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SettlePosition; - static deserializeBinaryFromReader(message: SettlePosition, reader: jspb.BinaryReader): SettlePosition; + getMarketId(): string; + setMarketId(value: string): SettlePosition; + getPartyId(): string; + setPartyId(value: string): SettlePosition; + getPrice(): number; + setPrice(value: number): SettlePosition; + clearTradeSettlementsList(): void; + getTradeSettlementsList(): Array; + setTradeSettlementsList(value: Array): SettlePosition; + addTradeSettlements(value?: TradeSettlement, index?: number): TradeSettlement; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SettlePosition.AsObject; + static toObject(includeInstance: boolean, msg: SettlePosition): SettlePosition.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SettlePosition, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SettlePosition; + static deserializeBinaryFromReader(message: SettlePosition, reader: jspb.BinaryReader): SettlePosition; } export namespace SettlePosition { - export type AsObject = { - marketId: string, - partyId: string, - price: number, - tradeSettlementsList: Array, - } + export type AsObject = { + marketId: string, + partyId: string, + price: number, + tradeSettlementsList: Array, + } } export class SettleDistressed extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getMargin(): number; - setMargin(value: number): void; - - getPrice(): number; - setPrice(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SettleDistressed.AsObject; - static toObject(includeInstance: boolean, msg: SettleDistressed): SettleDistressed.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SettleDistressed, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SettleDistressed; - static deserializeBinaryFromReader(message: SettleDistressed, reader: jspb.BinaryReader): SettleDistressed; + getMarketId(): string; + setMarketId(value: string): SettleDistressed; + getPartyId(): string; + setPartyId(value: string): SettleDistressed; + getMargin(): number; + setMargin(value: number): SettleDistressed; + getPrice(): number; + setPrice(value: number): SettleDistressed; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SettleDistressed.AsObject; + static toObject(includeInstance: boolean, msg: SettleDistressed): SettleDistressed.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SettleDistressed, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SettleDistressed; + static deserializeBinaryFromReader(message: SettleDistressed, reader: jspb.BinaryReader): SettleDistressed; } export namespace SettleDistressed { - export type AsObject = { - marketId: string, - partyId: string, - margin: number, - price: number, - } + export type AsObject = { + marketId: string, + partyId: string, + margin: number, + price: number, + } } export class MarketTick extends jspb.Message { - getId(): string; - setId(value: string): void; - - getTime(): number; - setTime(value: number): void; + getId(): string; + setId(value: string): MarketTick; + getTime(): number; + setTime(value: number): MarketTick; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketTick.AsObject; - static toObject(includeInstance: boolean, msg: MarketTick): MarketTick.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketTick, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketTick; - static deserializeBinaryFromReader(message: MarketTick, reader: jspb.BinaryReader): MarketTick; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketTick.AsObject; + static toObject(includeInstance: boolean, msg: MarketTick): MarketTick.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketTick, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketTick; + static deserializeBinaryFromReader(message: MarketTick, reader: jspb.BinaryReader): MarketTick; } export namespace MarketTick { - export type AsObject = { - id: string, - time: number, - } + export type AsObject = { + id: string, + time: number, + } } export class AuctionEvent extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getOpeningAuction(): boolean; - setOpeningAuction(value: boolean): void; - - getLeave(): boolean; - setLeave(value: boolean): void; - - getStart(): number; - setStart(value: number): void; - - getEnd(): number; - setEnd(value: number): void; - - getTrigger(): vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap]; - setTrigger(value: vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap]): void; - - getExtensionTrigger(): vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap]; - setExtensionTrigger(value: vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuctionEvent.AsObject; - static toObject(includeInstance: boolean, msg: AuctionEvent): AuctionEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuctionEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuctionEvent; - static deserializeBinaryFromReader(message: AuctionEvent, reader: jspb.BinaryReader): AuctionEvent; + getMarketId(): string; + setMarketId(value: string): AuctionEvent; + getOpeningAuction(): boolean; + setOpeningAuction(value: boolean): AuctionEvent; + getLeave(): boolean; + setLeave(value: boolean): AuctionEvent; + getStart(): number; + setStart(value: number): AuctionEvent; + getEnd(): number; + setEnd(value: number): AuctionEvent; + getTrigger(): vega_pb.AuctionTrigger; + setTrigger(value: vega_pb.AuctionTrigger): AuctionEvent; + getExtensionTrigger(): vega_pb.AuctionTrigger; + setExtensionTrigger(value: vega_pb.AuctionTrigger): AuctionEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AuctionEvent.AsObject; + static toObject(includeInstance: boolean, msg: AuctionEvent): AuctionEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AuctionEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AuctionEvent; + static deserializeBinaryFromReader(message: AuctionEvent, reader: jspb.BinaryReader): AuctionEvent; } export namespace AuctionEvent { - export type AsObject = { - marketId: string, - openingAuction: boolean, - leave: boolean, - start: number, - end: number, - trigger: vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap], - extensionTrigger: vega_pb.AuctionTriggerMap[keyof vega_pb.AuctionTriggerMap], - } + export type AsObject = { + marketId: string, + openingAuction: boolean, + leave: boolean, + start: number, + end: number, + trigger: vega_pb.AuctionTrigger, + extensionTrigger: vega_pb.AuctionTrigger, + } } export class ValidatorUpdate extends jspb.Message { - getPubKey(): string; - setPubKey(value: string): void; - - getTmPubKey(): string; - setTmPubKey(value: string): void; - - getInfoUrl(): string; - setInfoUrl(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorUpdate; - static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate; + getVegaPubKey(): string; + setVegaPubKey(value: string): ValidatorUpdate; + getEthereumAddress(): string; + setEthereumAddress(value: string): ValidatorUpdate; + getTmPubKey(): string; + setTmPubKey(value: string): ValidatorUpdate; + getInfoUrl(): string; + setInfoUrl(value: string): ValidatorUpdate; + getCountry(): string; + setCountry(value: string): ValidatorUpdate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidatorUpdate.AsObject; + static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidatorUpdate; + static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate; } export namespace ValidatorUpdate { - export type AsObject = { - pubKey: string, - tmPubKey: string, - infoUrl: string, - country: string, - } + export type AsObject = { + vegaPubKey: string, + ethereumAddress: string, + tmPubKey: string, + infoUrl: string, + country: string, + } } export class BusEvent extends jspb.Message { - getId(): string; - setId(value: string): void; - - getBlock(): string; - setBlock(value: string): void; - - getType(): BusEventTypeMap[keyof BusEventTypeMap]; - setType(value: BusEventTypeMap[keyof BusEventTypeMap]): void; - - hasTimeUpdate(): boolean; - clearTimeUpdate(): void; - getTimeUpdate(): TimeUpdate | undefined; - setTimeUpdate(value?: TimeUpdate): void; - - hasTransferResponses(): boolean; - clearTransferResponses(): void; - getTransferResponses(): TransferResponses | undefined; - setTransferResponses(value?: TransferResponses): void; - - hasPositionResolution(): boolean; - clearPositionResolution(): void; - getPositionResolution(): PositionResolution | undefined; - setPositionResolution(value?: PositionResolution): void; - - hasOrder(): boolean; - clearOrder(): void; - getOrder(): vega_pb.Order | undefined; - setOrder(value?: vega_pb.Order): void; - - hasAccount(): boolean; - clearAccount(): void; - getAccount(): vega_pb.Account | undefined; - setAccount(value?: vega_pb.Account): void; - - hasParty(): boolean; - clearParty(): void; - getParty(): vega_pb.Party | undefined; - setParty(value?: vega_pb.Party): void; - - hasTrade(): boolean; - clearTrade(): void; - getTrade(): vega_pb.Trade | undefined; - setTrade(value?: vega_pb.Trade): void; - - hasMarginLevels(): boolean; - clearMarginLevels(): void; - getMarginLevels(): vega_pb.MarginLevels | undefined; - setMarginLevels(value?: vega_pb.MarginLevels): void; - - hasProposal(): boolean; - clearProposal(): void; - getProposal(): governance_pb.Proposal | undefined; - setProposal(value?: governance_pb.Proposal): void; - - hasVote(): boolean; - clearVote(): void; - getVote(): governance_pb.Vote | undefined; - setVote(value?: governance_pb.Vote): void; - - hasMarketData(): boolean; - clearMarketData(): void; - getMarketData(): vega_pb.MarketData | undefined; - setMarketData(value?: vega_pb.MarketData): void; - - hasNodeSignature(): boolean; - clearNodeSignature(): void; - getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; - setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): void; - - hasLossSocialization(): boolean; - clearLossSocialization(): void; - getLossSocialization(): LossSocialization | undefined; - setLossSocialization(value?: LossSocialization): void; - - hasSettlePosition(): boolean; - clearSettlePosition(): void; - getSettlePosition(): SettlePosition | undefined; - setSettlePosition(value?: SettlePosition): void; - - hasSettleDistressed(): boolean; - clearSettleDistressed(): void; - getSettleDistressed(): SettleDistressed | undefined; - setSettleDistressed(value?: SettleDistressed): void; - - hasMarketCreated(): boolean; - clearMarketCreated(): void; - getMarketCreated(): markets_pb.Market | undefined; - setMarketCreated(value?: markets_pb.Market): void; - - hasAsset(): boolean; - clearAsset(): void; - getAsset(): assets_pb.Asset | undefined; - setAsset(value?: assets_pb.Asset): void; - - hasMarketTick(): boolean; - clearMarketTick(): void; - getMarketTick(): MarketTick | undefined; - setMarketTick(value?: MarketTick): void; - - hasWithdrawal(): boolean; - clearWithdrawal(): void; - getWithdrawal(): vega_pb.Withdrawal | undefined; - setWithdrawal(value?: vega_pb.Withdrawal): void; - - hasDeposit(): boolean; - clearDeposit(): void; - getDeposit(): vega_pb.Deposit | undefined; - setDeposit(value?: vega_pb.Deposit): void; - - hasAuction(): boolean; - clearAuction(): void; - getAuction(): AuctionEvent | undefined; - setAuction(value?: AuctionEvent): void; - - hasRiskFactor(): boolean; - clearRiskFactor(): void; - getRiskFactor(): vega_pb.RiskFactor | undefined; - setRiskFactor(value?: vega_pb.RiskFactor): void; - - hasNetworkParameter(): boolean; - clearNetworkParameter(): void; - getNetworkParameter(): vega_pb.NetworkParameter | undefined; - setNetworkParameter(value?: vega_pb.NetworkParameter): void; - - hasLiquidityProvision(): boolean; - clearLiquidityProvision(): void; - getLiquidityProvision(): vega_pb.LiquidityProvision | undefined; - setLiquidityProvision(value?: vega_pb.LiquidityProvision): void; - - hasMarketUpdated(): boolean; - clearMarketUpdated(): void; - getMarketUpdated(): markets_pb.Market | undefined; - setMarketUpdated(value?: markets_pb.Market): void; - - hasOracleSpec(): boolean; - clearOracleSpec(): void; - getOracleSpec(): oracles_v1_spec_pb.OracleSpec | undefined; - setOracleSpec(value?: oracles_v1_spec_pb.OracleSpec): void; - - hasOracleData(): boolean; - clearOracleData(): void; - getOracleData(): oracles_v1_data_pb.OracleData | undefined; - setOracleData(value?: oracles_v1_data_pb.OracleData): void; - - hasDelegationBalance(): boolean; - clearDelegationBalance(): void; - getDelegationBalance(): DelegationBalanceEvent | undefined; - setDelegationBalance(value?: DelegationBalanceEvent): void; - - hasPendingDelegationBalance(): boolean; - clearPendingDelegationBalance(): void; - getPendingDelegationBalance(): PendingDelegationBalanceEvent | undefined; - setPendingDelegationBalance(value?: PendingDelegationBalanceEvent): void; - - hasEpochEvent(): boolean; - clearEpochEvent(): void; - getEpochEvent(): EpochEvent | undefined; - setEpochEvent(value?: EpochEvent): void; - - hasValidatorUpdate(): boolean; - clearValidatorUpdate(): void; - getValidatorUpdate(): ValidatorUpdate | undefined; - setValidatorUpdate(value?: ValidatorUpdate): void; - - hasStakingEvent(): boolean; - clearStakingEvent(): void; - getStakingEvent(): StakingEvent | undefined; - setStakingEvent(value?: StakingEvent): void; - - hasMarket(): boolean; - clearMarket(): void; - getMarket(): MarketEvent | undefined; - setMarket(value?: MarketEvent): void; - - hasTxErrEvent(): boolean; - clearTxErrEvent(): void; - getTxErrEvent(): TxErrorEvent | undefined; - setTxErrEvent(value?: TxErrorEvent): void; - - getEventCase(): BusEvent.EventCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BusEvent.AsObject; - static toObject(includeInstance: boolean, msg: BusEvent): BusEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BusEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BusEvent; - static deserializeBinaryFromReader(message: BusEvent, reader: jspb.BinaryReader): BusEvent; + getId(): string; + setId(value: string): BusEvent; + getBlock(): string; + setBlock(value: string): BusEvent; + getType(): BusEventType; + setType(value: BusEventType): BusEvent; + + hasTimeUpdate(): boolean; + clearTimeUpdate(): void; + getTimeUpdate(): TimeUpdate | undefined; + setTimeUpdate(value?: TimeUpdate): BusEvent; + + hasTransferResponses(): boolean; + clearTransferResponses(): void; + getTransferResponses(): TransferResponses | undefined; + setTransferResponses(value?: TransferResponses): BusEvent; + + hasPositionResolution(): boolean; + clearPositionResolution(): void; + getPositionResolution(): PositionResolution | undefined; + setPositionResolution(value?: PositionResolution): BusEvent; + + hasOrder(): boolean; + clearOrder(): void; + getOrder(): vega_pb.Order | undefined; + setOrder(value?: vega_pb.Order): BusEvent; + + hasAccount(): boolean; + clearAccount(): void; + getAccount(): vega_pb.Account | undefined; + setAccount(value?: vega_pb.Account): BusEvent; + + hasParty(): boolean; + clearParty(): void; + getParty(): vega_pb.Party | undefined; + setParty(value?: vega_pb.Party): BusEvent; + + hasTrade(): boolean; + clearTrade(): void; + getTrade(): vega_pb.Trade | undefined; + setTrade(value?: vega_pb.Trade): BusEvent; + + hasMarginLevels(): boolean; + clearMarginLevels(): void; + getMarginLevels(): vega_pb.MarginLevels | undefined; + setMarginLevels(value?: vega_pb.MarginLevels): BusEvent; + + hasProposal(): boolean; + clearProposal(): void; + getProposal(): governance_pb.Proposal | undefined; + setProposal(value?: governance_pb.Proposal): BusEvent; + + hasVote(): boolean; + clearVote(): void; + getVote(): governance_pb.Vote | undefined; + setVote(value?: governance_pb.Vote): BusEvent; + + hasMarketData(): boolean; + clearMarketData(): void; + getMarketData(): vega_pb.MarketData | undefined; + setMarketData(value?: vega_pb.MarketData): BusEvent; + + hasNodeSignature(): boolean; + clearNodeSignature(): void; + getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; + setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): BusEvent; + + hasLossSocialization(): boolean; + clearLossSocialization(): void; + getLossSocialization(): LossSocialization | undefined; + setLossSocialization(value?: LossSocialization): BusEvent; + + hasSettlePosition(): boolean; + clearSettlePosition(): void; + getSettlePosition(): SettlePosition | undefined; + setSettlePosition(value?: SettlePosition): BusEvent; + + hasSettleDistressed(): boolean; + clearSettleDistressed(): void; + getSettleDistressed(): SettleDistressed | undefined; + setSettleDistressed(value?: SettleDistressed): BusEvent; + + hasMarketCreated(): boolean; + clearMarketCreated(): void; + getMarketCreated(): markets_pb.Market | undefined; + setMarketCreated(value?: markets_pb.Market): BusEvent; + + hasAsset(): boolean; + clearAsset(): void; + getAsset(): assets_pb.Asset | undefined; + setAsset(value?: assets_pb.Asset): BusEvent; + + hasMarketTick(): boolean; + clearMarketTick(): void; + getMarketTick(): MarketTick | undefined; + setMarketTick(value?: MarketTick): BusEvent; + + hasWithdrawal(): boolean; + clearWithdrawal(): void; + getWithdrawal(): vega_pb.Withdrawal | undefined; + setWithdrawal(value?: vega_pb.Withdrawal): BusEvent; + + hasDeposit(): boolean; + clearDeposit(): void; + getDeposit(): vega_pb.Deposit | undefined; + setDeposit(value?: vega_pb.Deposit): BusEvent; + + hasAuction(): boolean; + clearAuction(): void; + getAuction(): AuctionEvent | undefined; + setAuction(value?: AuctionEvent): BusEvent; + + hasRiskFactor(): boolean; + clearRiskFactor(): void; + getRiskFactor(): vega_pb.RiskFactor | undefined; + setRiskFactor(value?: vega_pb.RiskFactor): BusEvent; + + hasNetworkParameter(): boolean; + clearNetworkParameter(): void; + getNetworkParameter(): vega_pb.NetworkParameter | undefined; + setNetworkParameter(value?: vega_pb.NetworkParameter): BusEvent; + + hasLiquidityProvision(): boolean; + clearLiquidityProvision(): void; + getLiquidityProvision(): vega_pb.LiquidityProvision | undefined; + setLiquidityProvision(value?: vega_pb.LiquidityProvision): BusEvent; + + hasMarketUpdated(): boolean; + clearMarketUpdated(): void; + getMarketUpdated(): markets_pb.Market | undefined; + setMarketUpdated(value?: markets_pb.Market): BusEvent; + + hasOracleSpec(): boolean; + clearOracleSpec(): void; + getOracleSpec(): oracles_v1_spec_pb.OracleSpec | undefined; + setOracleSpec(value?: oracles_v1_spec_pb.OracleSpec): BusEvent; + + hasOracleData(): boolean; + clearOracleData(): void; + getOracleData(): oracles_v1_data_pb.OracleData | undefined; + setOracleData(value?: oracles_v1_data_pb.OracleData): BusEvent; + + hasDelegationBalance(): boolean; + clearDelegationBalance(): void; + getDelegationBalance(): DelegationBalanceEvent | undefined; + setDelegationBalance(value?: DelegationBalanceEvent): BusEvent; + + hasValidatorScore(): boolean; + clearValidatorScore(): void; + getValidatorScore(): ValidatorScoreEvent | undefined; + setValidatorScore(value?: ValidatorScoreEvent): BusEvent; + + hasEpochEvent(): boolean; + clearEpochEvent(): void; + getEpochEvent(): EpochEvent | undefined; + setEpochEvent(value?: EpochEvent): BusEvent; + + hasValidatorUpdate(): boolean; + clearValidatorUpdate(): void; + getValidatorUpdate(): ValidatorUpdate | undefined; + setValidatorUpdate(value?: ValidatorUpdate): BusEvent; + + hasStakeLinking(): boolean; + clearStakeLinking(): void; + getStakeLinking(): StakeLinking | undefined; + setStakeLinking(value?: StakeLinking): BusEvent; + + hasRewardPayout(): boolean; + clearRewardPayout(): void; + getRewardPayout(): RewardPayoutEvent | undefined; + setRewardPayout(value?: RewardPayoutEvent): BusEvent; + + hasCheckpoint(): boolean; + clearCheckpoint(): void; + getCheckpoint(): CheckpointEvent | undefined; + setCheckpoint(value?: CheckpointEvent): BusEvent; + + hasMarket(): boolean; + clearMarket(): void; + getMarket(): MarketEvent | undefined; + setMarket(value?: MarketEvent): BusEvent; + + hasTxErrEvent(): boolean; + clearTxErrEvent(): void; + getTxErrEvent(): TxErrorEvent | undefined; + setTxErrEvent(value?: TxErrorEvent): BusEvent; + + getEventCase(): BusEvent.EventCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BusEvent.AsObject; + static toObject(includeInstance: boolean, msg: BusEvent): BusEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BusEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BusEvent; + static deserializeBinaryFromReader(message: BusEvent, reader: jspb.BinaryReader): BusEvent; } export namespace BusEvent { - export type AsObject = { - id: string, - block: string, - type: BusEventTypeMap[keyof BusEventTypeMap], - timeUpdate?: TimeUpdate.AsObject, - transferResponses?: TransferResponses.AsObject, - positionResolution?: PositionResolution.AsObject, - order?: vega_pb.Order.AsObject, - account?: vega_pb.Account.AsObject, - party?: vega_pb.Party.AsObject, - trade?: vega_pb.Trade.AsObject, - marginLevels?: vega_pb.MarginLevels.AsObject, - proposal?: governance_pb.Proposal.AsObject, - vote?: governance_pb.Vote.AsObject, - marketData?: vega_pb.MarketData.AsObject, - nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, - lossSocialization?: LossSocialization.AsObject, - settlePosition?: SettlePosition.AsObject, - settleDistressed?: SettleDistressed.AsObject, - marketCreated?: markets_pb.Market.AsObject, - asset?: assets_pb.Asset.AsObject, - marketTick?: MarketTick.AsObject, - withdrawal?: vega_pb.Withdrawal.AsObject, - deposit?: vega_pb.Deposit.AsObject, - auction?: AuctionEvent.AsObject, - riskFactor?: vega_pb.RiskFactor.AsObject, - networkParameter?: vega_pb.NetworkParameter.AsObject, - liquidityProvision?: vega_pb.LiquidityProvision.AsObject, - marketUpdated?: markets_pb.Market.AsObject, - oracleSpec?: oracles_v1_spec_pb.OracleSpec.AsObject, - oracleData?: oracles_v1_data_pb.OracleData.AsObject, - delegationBalance?: DelegationBalanceEvent.AsObject, - pendingDelegationBalance?: PendingDelegationBalanceEvent.AsObject, - epochEvent?: EpochEvent.AsObject, - validatorUpdate?: ValidatorUpdate.AsObject, - stakingEvent?: StakingEvent.AsObject, - market?: MarketEvent.AsObject, - txErrEvent?: TxErrorEvent.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - TIME_UPDATE = 101, - TRANSFER_RESPONSES = 102, - POSITION_RESOLUTION = 103, - ORDER = 104, - ACCOUNT = 105, - PARTY = 106, - TRADE = 107, - MARGIN_LEVELS = 108, - PROPOSAL = 109, - VOTE = 110, - MARKET_DATA = 111, - NODE_SIGNATURE = 112, - LOSS_SOCIALIZATION = 113, - SETTLE_POSITION = 114, - SETTLE_DISTRESSED = 115, - MARKET_CREATED = 116, - ASSET = 117, - MARKET_TICK = 118, - WITHDRAWAL = 119, - DEPOSIT = 120, - AUCTION = 121, - RISK_FACTOR = 122, - NETWORK_PARAMETER = 123, - LIQUIDITY_PROVISION = 124, - MARKET_UPDATED = 125, - ORACLE_SPEC = 126, - ORACLE_DATA = 127, - DELEGATION_BALANCE = 129, - PENDING_DELEGATION_BALANCE = 130, - EPOCH_EVENT = 131, - VALIDATOR_UPDATE = 132, - STAKING_EVENT = 133, - MARKET = 1001, - TX_ERR_EVENT = 2001, - } -} - -export interface BusEventTypeMap { - BUS_EVENT_TYPE_UNSPECIFIED: 0; - BUS_EVENT_TYPE_ALL: 1; - BUS_EVENT_TYPE_TIME_UPDATE: 2; - BUS_EVENT_TYPE_TRANSFER_RESPONSES: 3; - BUS_EVENT_TYPE_POSITION_RESOLUTION: 4; - BUS_EVENT_TYPE_ORDER: 5; - BUS_EVENT_TYPE_ACCOUNT: 6; - BUS_EVENT_TYPE_PARTY: 7; - BUS_EVENT_TYPE_TRADE: 8; - BUS_EVENT_TYPE_MARGIN_LEVELS: 9; - BUS_EVENT_TYPE_PROPOSAL: 10; - BUS_EVENT_TYPE_VOTE: 11; - BUS_EVENT_TYPE_MARKET_DATA: 12; - BUS_EVENT_TYPE_NODE_SIGNATURE: 13; - BUS_EVENT_TYPE_LOSS_SOCIALIZATION: 14; - BUS_EVENT_TYPE_SETTLE_POSITION: 15; - BUS_EVENT_TYPE_SETTLE_DISTRESSED: 16; - BUS_EVENT_TYPE_MARKET_CREATED: 17; - BUS_EVENT_TYPE_ASSET: 18; - BUS_EVENT_TYPE_MARKET_TICK: 19; - BUS_EVENT_TYPE_WITHDRAWAL: 20; - BUS_EVENT_TYPE_DEPOSIT: 21; - BUS_EVENT_TYPE_AUCTION: 22; - BUS_EVENT_TYPE_RISK_FACTOR: 23; - BUS_EVENT_TYPE_NETWORK_PARAMETER: 24; - BUS_EVENT_TYPE_LIQUIDITY_PROVISION: 25; - BUS_EVENT_TYPE_MARKET_UPDATED: 26; - BUS_EVENT_TYPE_ORACLE_SPEC: 27; - BUS_EVENT_TYPE_ORACLE_DATA: 28; - BUS_EVENT_TYPE_DELEGATION_BALANCE: 29; - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE: 30; - BUS_EVENT_TYPE_EPOCH_UPDATE: 31; - BUS_EVENT_TYPE_VALIDATOR_UPDATE: 32; - BUS_EVENT_TYPE_STAKING_EVENT: 33; - BUS_EVENT_TYPE_MARKET: 101; - BUS_EVENT_TYPE_TX_ERROR: 201; -} - -export const BusEventType: BusEventTypeMap; - + export type AsObject = { + id: string, + block: string, + type: BusEventType, + timeUpdate?: TimeUpdate.AsObject, + transferResponses?: TransferResponses.AsObject, + positionResolution?: PositionResolution.AsObject, + order?: vega_pb.Order.AsObject, + account?: vega_pb.Account.AsObject, + party?: vega_pb.Party.AsObject, + trade?: vega_pb.Trade.AsObject, + marginLevels?: vega_pb.MarginLevels.AsObject, + proposal?: governance_pb.Proposal.AsObject, + vote?: governance_pb.Vote.AsObject, + marketData?: vega_pb.MarketData.AsObject, + nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, + lossSocialization?: LossSocialization.AsObject, + settlePosition?: SettlePosition.AsObject, + settleDistressed?: SettleDistressed.AsObject, + marketCreated?: markets_pb.Market.AsObject, + asset?: assets_pb.Asset.AsObject, + marketTick?: MarketTick.AsObject, + withdrawal?: vega_pb.Withdrawal.AsObject, + deposit?: vega_pb.Deposit.AsObject, + auction?: AuctionEvent.AsObject, + riskFactor?: vega_pb.RiskFactor.AsObject, + networkParameter?: vega_pb.NetworkParameter.AsObject, + liquidityProvision?: vega_pb.LiquidityProvision.AsObject, + marketUpdated?: markets_pb.Market.AsObject, + oracleSpec?: oracles_v1_spec_pb.OracleSpec.AsObject, + oracleData?: oracles_v1_data_pb.OracleData.AsObject, + delegationBalance?: DelegationBalanceEvent.AsObject, + validatorScore?: ValidatorScoreEvent.AsObject, + epochEvent?: EpochEvent.AsObject, + validatorUpdate?: ValidatorUpdate.AsObject, + stakeLinking?: StakeLinking.AsObject, + rewardPayout?: RewardPayoutEvent.AsObject, + checkpoint?: CheckpointEvent.AsObject, + market?: MarketEvent.AsObject, + txErrEvent?: TxErrorEvent.AsObject, + } + + export enum EventCase { + EVENT_NOT_SET = 0, + TIME_UPDATE = 101, + TRANSFER_RESPONSES = 102, + POSITION_RESOLUTION = 103, + ORDER = 104, + ACCOUNT = 105, + PARTY = 106, + TRADE = 107, + MARGIN_LEVELS = 108, + PROPOSAL = 109, + VOTE = 110, + MARKET_DATA = 111, + NODE_SIGNATURE = 112, + LOSS_SOCIALIZATION = 113, + SETTLE_POSITION = 114, + SETTLE_DISTRESSED = 115, + MARKET_CREATED = 116, + ASSET = 117, + MARKET_TICK = 118, + WITHDRAWAL = 119, + DEPOSIT = 120, + AUCTION = 121, + RISK_FACTOR = 122, + NETWORK_PARAMETER = 123, + LIQUIDITY_PROVISION = 124, + MARKET_UPDATED = 125, + ORACLE_SPEC = 126, + ORACLE_DATA = 127, + DELEGATION_BALANCE = 129, + VALIDATOR_SCORE = 130, + EPOCH_EVENT = 131, + VALIDATOR_UPDATE = 132, + STAKE_LINKING = 133, + REWARD_PAYOUT = 134, + CHECKPOINT = 135, + MARKET = 1001, + TX_ERR_EVENT = 2001, + } + +} + +export enum BusEventType { + BUS_EVENT_TYPE_UNSPECIFIED = 0, + BUS_EVENT_TYPE_ALL = 1, + BUS_EVENT_TYPE_TIME_UPDATE = 2, + BUS_EVENT_TYPE_TRANSFER_RESPONSES = 3, + BUS_EVENT_TYPE_POSITION_RESOLUTION = 4, + BUS_EVENT_TYPE_ORDER = 5, + BUS_EVENT_TYPE_ACCOUNT = 6, + BUS_EVENT_TYPE_PARTY = 7, + BUS_EVENT_TYPE_TRADE = 8, + BUS_EVENT_TYPE_MARGIN_LEVELS = 9, + BUS_EVENT_TYPE_PROPOSAL = 10, + BUS_EVENT_TYPE_VOTE = 11, + BUS_EVENT_TYPE_MARKET_DATA = 12, + BUS_EVENT_TYPE_NODE_SIGNATURE = 13, + BUS_EVENT_TYPE_LOSS_SOCIALIZATION = 14, + BUS_EVENT_TYPE_SETTLE_POSITION = 15, + BUS_EVENT_TYPE_SETTLE_DISTRESSED = 16, + BUS_EVENT_TYPE_MARKET_CREATED = 17, + BUS_EVENT_TYPE_ASSET = 18, + BUS_EVENT_TYPE_MARKET_TICK = 19, + BUS_EVENT_TYPE_WITHDRAWAL = 20, + BUS_EVENT_TYPE_DEPOSIT = 21, + BUS_EVENT_TYPE_AUCTION = 22, + BUS_EVENT_TYPE_RISK_FACTOR = 23, + BUS_EVENT_TYPE_NETWORK_PARAMETER = 24, + BUS_EVENT_TYPE_LIQUIDITY_PROVISION = 25, + BUS_EVENT_TYPE_MARKET_UPDATED = 26, + BUS_EVENT_TYPE_ORACLE_SPEC = 27, + BUS_EVENT_TYPE_ORACLE_DATA = 28, + BUS_EVENT_TYPE_DELEGATION_BALANCE = 29, + BUS_EVENT_TYPE_VALIDATOR_SCORE = 30, + BUS_EVENT_TYPE_EPOCH_UPDATE = 31, + BUS_EVENT_TYPE_VALIDATOR_UPDATE = 32, + BUS_EVENT_TYPE_STAKE_LINKING = 33, + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34, + BUS_EVENT_TYPE_CHECKPOINT = 35, + BUS_EVENT_TYPE_MARKET = 101, + BUS_EVENT_TYPE_TX_ERROR = 201, +} diff --git a/grpc/clients/js/generated/events/v1/events_pb.js b/grpc/clients/js/generated/events/v1/events_pb.js index 038a6079..df9ebe91 100644 --- a/grpc/clients/js/generated/events/v1/events_pb.js +++ b/grpc/clients/js/generated/events/v1/events_pb.js @@ -34,6 +34,7 @@ goog.exportSymbol('proto.vega.events.v1.AuctionEvent', null, global); goog.exportSymbol('proto.vega.events.v1.BusEvent', null, global); goog.exportSymbol('proto.vega.events.v1.BusEvent.EventCase', null, global); goog.exportSymbol('proto.vega.events.v1.BusEventType', null, global); +goog.exportSymbol('proto.vega.events.v1.CheckpointEvent', null, global); goog.exportSymbol('proto.vega.events.v1.DelegationBalanceEvent', null, global); goog.exportSymbol('proto.vega.events.v1.EpochEvent', null, global); goog.exportSymbol('proto.vega.events.v1.LossSocialization', null, global); @@ -41,15 +42,18 @@ goog.exportSymbol('proto.vega.events.v1.MarketEvent', null, global); goog.exportSymbol('proto.vega.events.v1.MarketTick', null, global); goog.exportSymbol('proto.vega.events.v1.PendingDelegationBalanceEvent', null, global); goog.exportSymbol('proto.vega.events.v1.PositionResolution', null, global); +goog.exportSymbol('proto.vega.events.v1.RewardPayoutEvent', null, global); goog.exportSymbol('proto.vega.events.v1.SettleDistressed', null, global); goog.exportSymbol('proto.vega.events.v1.SettlePosition', null, global); -goog.exportSymbol('proto.vega.events.v1.StakingEvent', null, global); -goog.exportSymbol('proto.vega.events.v1.StakingEvent.Type', null, global); +goog.exportSymbol('proto.vega.events.v1.StakeLinking', null, global); +goog.exportSymbol('proto.vega.events.v1.StakeLinking.Status', null, global); +goog.exportSymbol('proto.vega.events.v1.StakeLinking.Type', null, global); goog.exportSymbol('proto.vega.events.v1.TimeUpdate', null, global); goog.exportSymbol('proto.vega.events.v1.TradeSettlement', null, global); goog.exportSymbol('proto.vega.events.v1.TransferResponses', null, global); goog.exportSymbol('proto.vega.events.v1.TxErrorEvent', null, global); goog.exportSymbol('proto.vega.events.v1.TxErrorEvent.TransactionCase', null, global); +goog.exportSymbol('proto.vega.events.v1.ValidatorScoreEvent', null, global); goog.exportSymbol('proto.vega.events.v1.ValidatorUpdate', null, global); /** * Generated by JsPbCodeGenerator. @@ -61,16 +65,79 @@ goog.exportSymbol('proto.vega.events.v1.ValidatorUpdate', null, global); * @extends {jspb.Message} * @constructor */ -proto.vega.events.v1.StakingEvent = function(opt_data) { +proto.vega.events.v1.StakeLinking = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.events.v1.StakingEvent, jspb.Message); +goog.inherits(proto.vega.events.v1.StakeLinking, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.events.v1.StakingEvent.displayName = 'proto.vega.events.v1.StakingEvent'; + proto.vega.events.v1.StakeLinking.displayName = 'proto.vega.events.v1.StakeLinking'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.events.v1.CheckpointEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.events.v1.CheckpointEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.events.v1.CheckpointEvent.displayName = 'proto.vega.events.v1.CheckpointEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.events.v1.RewardPayoutEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.events.v1.RewardPayoutEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.events.v1.RewardPayoutEvent.displayName = 'proto.vega.events.v1.RewardPayoutEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.events.v1.ValidatorScoreEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.events.v1.ValidatorScoreEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.events.v1.ValidatorScoreEvent.displayName = 'proto.vega.events.v1.ValidatorScoreEvent'; } /** * Generated by JsPbCodeGenerator. @@ -388,26 +455,855 @@ if (goog.DEBUG && !COMPILED) { proto.vega.events.v1.ValidatorUpdate.displayName = 'proto.vega.events.v1.ValidatorUpdate'; } /** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.events.v1.BusEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, 500, null, proto.vega.events.v1.BusEvent.oneofGroups_); +}; +goog.inherits(proto.vega.events.v1.BusEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.events.v1.BusEvent.displayName = 'proto.vega.events.v1.BusEvent'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.events.v1.StakeLinking.prototype.toObject = function(opt_includeInstance) { + return proto.vega.events.v1.StakeLinking.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.events.v1.StakeLinking} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.StakeLinking.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, 0), + ts: jspb.Message.getFieldWithDefault(msg, 3, 0), + party: jspb.Message.getFieldWithDefault(msg, 4, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, ""), + status: jspb.Message.getFieldWithDefault(msg, 6, 0), + finalizedAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + txHash: jspb.Message.getFieldWithDefault(msg, 8, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.events.v1.StakeLinking} + */ +proto.vega.events.v1.StakeLinking.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.events.v1.StakeLinking; + return proto.vega.events.v1.StakeLinking.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.events.v1.StakeLinking} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.events.v1.StakeLinking} + */ +proto.vega.events.v1.StakeLinking.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {!proto.vega.events.v1.StakeLinking.Type} */ (reader.readEnum()); + msg.setType(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTs(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 6: + var value = /** @type {!proto.vega.events.v1.StakeLinking.Status} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setFinalizedAt(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setTxHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.events.v1.StakeLinking.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.events.v1.StakeLinking.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.events.v1.StakeLinking} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.StakeLinking.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getTs(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } + f = message.getFinalizedAt(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getTxHash(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.vega.events.v1.StakeLinking.Type = { + TYPE_UNSPECIFIED: 0, + TYPE_LINK: 1, + TYPE_UNLINK: 2 +}; + +/** + * @enum {number} + */ +proto.vega.events.v1.StakeLinking.Status = { + STATUS_UNSPECIFIED: 0, + STATUS_PENDING: 1, + STATUS_ACCEPTED: 2, + STATUS_REJECTED: 3 +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.vega.events.v1.StakeLinking.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Type type = 2; + * @return {!proto.vega.events.v1.StakeLinking.Type} + */ +proto.vega.events.v1.StakeLinking.prototype.getType = function() { + return /** @type {!proto.vega.events.v1.StakeLinking.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.vega.events.v1.StakeLinking.Type} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional int64 ts = 3; + * @return {number} + */ +proto.vega.events.v1.StakeLinking.prototype.getTs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setTs = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string party = 4; + * @return {string} + */ +proto.vega.events.v1.StakeLinking.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string amount = 5; + * @return {string} + */ +proto.vega.events.v1.StakeLinking.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional Status status = 6; + * @return {!proto.vega.events.v1.StakeLinking.Status} + */ +proto.vega.events.v1.StakeLinking.prototype.getStatus = function() { + return /** @type {!proto.vega.events.v1.StakeLinking.Status} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.vega.events.v1.StakeLinking.Status} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + +/** + * optional int64 finalized_at = 7; + * @return {number} + */ +proto.vega.events.v1.StakeLinking.prototype.getFinalizedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setFinalizedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional string tx_hash = 8; + * @return {string} + */ +proto.vega.events.v1.StakeLinking.prototype.getTxHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.StakeLinking} returns this + */ +proto.vega.events.v1.StakeLinking.prototype.setTxHash = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.events.v1.CheckpointEvent.prototype.toObject = function(opt_includeInstance) { + return proto.vega.events.v1.CheckpointEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.events.v1.CheckpointEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.CheckpointEvent.toObject = function(includeInstance, msg) { + var f, obj = { + hash: jspb.Message.getFieldWithDefault(msg, 1, ""), + blockHash: jspb.Message.getFieldWithDefault(msg, 2, ""), + blockHeight: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.events.v1.CheckpointEvent} + */ +proto.vega.events.v1.CheckpointEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.events.v1.CheckpointEvent; + return proto.vega.events.v1.CheckpointEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.events.v1.CheckpointEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.events.v1.CheckpointEvent} + */ +proto.vega.events.v1.CheckpointEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setHash(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBlockHash(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlockHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.events.v1.CheckpointEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.events.v1.CheckpointEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.events.v1.CheckpointEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.CheckpointEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBlockHash(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } +}; + + +/** + * optional string hash = 1; + * @return {string} + */ +proto.vega.events.v1.CheckpointEvent.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.CheckpointEvent} returns this + */ +proto.vega.events.v1.CheckpointEvent.prototype.setHash = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string block_hash = 2; + * @return {string} + */ +proto.vega.events.v1.CheckpointEvent.prototype.getBlockHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.CheckpointEvent} returns this + */ +proto.vega.events.v1.CheckpointEvent.prototype.setBlockHash = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint64 block_height = 3; + * @return {number} + */ +proto.vega.events.v1.CheckpointEvent.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.events.v1.CheckpointEvent} returns this + */ +proto.vega.events.v1.CheckpointEvent.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.toObject = function(opt_includeInstance) { + return proto.vega.events.v1.RewardPayoutEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.events.v1.RewardPayoutEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.RewardPayoutEvent.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + epochSeq: jspb.Message.getFieldWithDefault(msg, 2, ""), + asset: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 4, ""), + percentOfTotalReward: jspb.Message.getFieldWithDefault(msg, 5, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.events.v1.RewardPayoutEvent} + */ +proto.vega.events.v1.RewardPayoutEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.events.v1.RewardPayoutEvent; + return proto.vega.events.v1.RewardPayoutEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.events.v1.RewardPayoutEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.events.v1.RewardPayoutEvent} + */ +proto.vega.events.v1.RewardPayoutEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEpochSeq(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPercentOfTotalReward(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.events.v1.RewardPayoutEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.events.v1.RewardPayoutEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.events.v1.RewardPayoutEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getEpochSeq(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPercentOfTotalReward(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string epoch_seq = 2; + * @return {string} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getEpochSeq = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string asset = 3; + * @return {string} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string amount = 4; + * @return {string} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string percent_of_total_reward = 5; + * @return {string} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getPercentOfTotalReward = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.setPercentOfTotalReward = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional int64 timestamp = 6; + * @return {number} + */ +proto.vega.events.v1.RewardPayoutEvent.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.events.v1.RewardPayoutEvent} returns this */ -proto.vega.events.v1.BusEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, proto.vega.events.v1.BusEvent.oneofGroups_); +proto.vega.events.v1.RewardPayoutEvent.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; -goog.inherits(proto.vega.events.v1.BusEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vega.events.v1.BusEvent.displayName = 'proto.vega.events.v1.BusEvent'; -} + + @@ -424,8 +1320,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.events.v1.StakingEvent.prototype.toObject = function(opt_includeInstance) { - return proto.vega.events.v1.StakingEvent.toObject(opt_includeInstance, this); +proto.vega.events.v1.ValidatorScoreEvent.prototype.toObject = function(opt_includeInstance) { + return proto.vega.events.v1.ValidatorScoreEvent.toObject(opt_includeInstance, this); }; @@ -434,17 +1330,16 @@ proto.vega.events.v1.StakingEvent.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.events.v1.StakingEvent} msg The msg instance to transform. + * @param {!proto.vega.events.v1.ValidatorScoreEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.events.v1.StakingEvent.toObject = function(includeInstance, msg) { +proto.vega.events.v1.ValidatorScoreEvent.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - ts: jspb.Message.getFieldWithDefault(msg, 3, 0), - party: jspb.Message.getFieldWithDefault(msg, 4, ""), - amount: jspb.Message.getFieldWithDefault(msg, 5, "") + nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), + epochSeq: jspb.Message.getFieldWithDefault(msg, 2, ""), + validatorScore: jspb.Message.getFieldWithDefault(msg, 3, ""), + normalisedScore: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -458,23 +1353,23 @@ proto.vega.events.v1.StakingEvent.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.events.v1.StakingEvent} + * @return {!proto.vega.events.v1.ValidatorScoreEvent} */ -proto.vega.events.v1.StakingEvent.deserializeBinary = function(bytes) { +proto.vega.events.v1.ValidatorScoreEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.events.v1.StakingEvent; - return proto.vega.events.v1.StakingEvent.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.events.v1.ValidatorScoreEvent; + return proto.vega.events.v1.ValidatorScoreEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.events.v1.StakingEvent} msg The message object to deserialize into. + * @param {!proto.vega.events.v1.ValidatorScoreEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.events.v1.StakingEvent} + * @return {!proto.vega.events.v1.ValidatorScoreEvent} */ -proto.vega.events.v1.StakingEvent.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.events.v1.ValidatorScoreEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -483,23 +1378,19 @@ proto.vega.events.v1.StakingEvent.deserializeBinaryFromReader = function(msg, re switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setNodeId(value); break; case 2: - var value = /** @type {!proto.vega.events.v1.StakingEvent.Type} */ (reader.readEnum()); - msg.setType(value); + var value = /** @type {string} */ (reader.readString()); + msg.setEpochSeq(value); break; case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTs(value); - break; - case 4: var value = /** @type {string} */ (reader.readString()); - msg.setParty(value); + msg.setValidatorScore(value); break; - case 5: + case 4: var value = /** @type {string} */ (reader.readString()); - msg.setAmount(value); + msg.setNormalisedScore(value); break; default: reader.skipField(); @@ -514,9 +1405,9 @@ proto.vega.events.v1.StakingEvent.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.events.v1.StakingEvent.prototype.serializeBinary = function() { +proto.vega.events.v1.ValidatorScoreEvent.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.events.v1.StakingEvent.serializeBinaryToWriter(this, writer); + proto.vega.events.v1.ValidatorScoreEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -524,44 +1415,37 @@ proto.vega.events.v1.StakingEvent.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.events.v1.StakingEvent} message + * @param {!proto.vega.events.v1.ValidatorScoreEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.events.v1.StakingEvent.serializeBinaryToWriter = function(message, writer) { +proto.vega.events.v1.ValidatorScoreEvent.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getNodeId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getEpochSeq(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getTs(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getParty(); + f = message.getValidatorScore(); if (f.length > 0) { writer.writeString( - 4, + 3, f ); } - f = message.getAmount(); + f = message.getNormalisedScore(); if (f.length > 0) { writer.writeString( - 5, + 4, f ); } @@ -569,101 +1453,74 @@ proto.vega.events.v1.StakingEvent.serializeBinaryToWriter = function(message, wr /** - * @enum {number} - */ -proto.vega.events.v1.StakingEvent.Type = { - TYPE_UNSPECIFIED: 0, - TYPE_DEPOSIT: 1, - TYPE_REMOVE: 2 -}; - -/** - * optional string id = 1; + * optional string node_id = 1; * @return {string} */ -proto.vega.events.v1.StakingEvent.prototype.getId = function() { +proto.vega.events.v1.ValidatorScoreEvent.prototype.getNodeId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.events.v1.StakingEvent} returns this + * @return {!proto.vega.events.v1.ValidatorScoreEvent} returns this */ -proto.vega.events.v1.StakingEvent.prototype.setId = function(value) { +proto.vega.events.v1.ValidatorScoreEvent.prototype.setNodeId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional Type type = 2; - * @return {!proto.vega.events.v1.StakingEvent.Type} - */ -proto.vega.events.v1.StakingEvent.prototype.getType = function() { - return /** @type {!proto.vega.events.v1.StakingEvent.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.vega.events.v1.StakingEvent.Type} value - * @return {!proto.vega.events.v1.StakingEvent} returns this - */ -proto.vega.events.v1.StakingEvent.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional int64 ts = 3; - * @return {number} + * optional string epoch_seq = 2; + * @return {string} */ -proto.vega.events.v1.StakingEvent.prototype.getTs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.events.v1.ValidatorScoreEvent.prototype.getEpochSeq = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.vega.events.v1.StakingEvent} returns this + * @param {string} value + * @return {!proto.vega.events.v1.ValidatorScoreEvent} returns this */ -proto.vega.events.v1.StakingEvent.prototype.setTs = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.events.v1.ValidatorScoreEvent.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string party = 4; + * optional string validator_score = 3; * @return {string} */ -proto.vega.events.v1.StakingEvent.prototype.getParty = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.vega.events.v1.ValidatorScoreEvent.prototype.getValidatorScore = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.vega.events.v1.StakingEvent} returns this + * @return {!proto.vega.events.v1.ValidatorScoreEvent} returns this */ -proto.vega.events.v1.StakingEvent.prototype.setParty = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.vega.events.v1.ValidatorScoreEvent.prototype.setValidatorScore = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string amount = 5; + * optional string normalised_score = 4; * @return {string} */ -proto.vega.events.v1.StakingEvent.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.vega.events.v1.ValidatorScoreEvent.prototype.getNormalisedScore = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.vega.events.v1.StakingEvent} returns this + * @return {!proto.vega.events.v1.ValidatorScoreEvent} returns this */ -proto.vega.events.v1.StakingEvent.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.vega.events.v1.ValidatorScoreEvent.prototype.setNormalisedScore = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -701,7 +1558,8 @@ proto.vega.events.v1.DelegationBalanceEvent.toObject = function(includeInstance, var f, obj = { party: jspb.Message.getFieldWithDefault(msg, 1, ""), nodeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0) + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + epochSeq: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -750,6 +1608,10 @@ proto.vega.events.v1.DelegationBalanceEvent.deserializeBinaryFromReader = functi var value = /** @type {number} */ (reader.readUint64()); msg.setAmount(value); break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setEpochSeq(value); + break; default: reader.skipField(); break; @@ -800,6 +1662,13 @@ proto.vega.events.v1.DelegationBalanceEvent.serializeBinaryToWriter = function(m f ); } + f = message.getEpochSeq(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } }; @@ -857,6 +1726,24 @@ proto.vega.events.v1.DelegationBalanceEvent.prototype.setAmount = function(value }; +/** + * optional string epoch_seq = 4; + * @return {string} + */ +proto.vega.events.v1.DelegationBalanceEvent.prototype.getEpochSeq = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.DelegationBalanceEvent} returns this + */ +proto.vega.events.v1.DelegationBalanceEvent.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + @@ -892,7 +1779,8 @@ proto.vega.events.v1.PendingDelegationBalanceEvent.toObject = function(includeIn party: jspb.Message.getFieldWithDefault(msg, 1, ""), nodeId: jspb.Message.getFieldWithDefault(msg, 2, ""), delegationAmount: jspb.Message.getFieldWithDefault(msg, 3, 0), - undelegationAmount: jspb.Message.getFieldWithDefault(msg, 4, 0) + undelegationAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), + epochSeq: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -945,6 +1833,10 @@ proto.vega.events.v1.PendingDelegationBalanceEvent.deserializeBinaryFromReader = var value = /** @type {number} */ (reader.readUint64()); msg.setUndelegationAmount(value); break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setEpochSeq(value); + break; default: reader.skipField(); break; @@ -1002,6 +1894,13 @@ proto.vega.events.v1.PendingDelegationBalanceEvent.serializeBinaryToWriter = fun f ); } + f = message.getEpochSeq(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } }; @@ -1077,6 +1976,24 @@ proto.vega.events.v1.PendingDelegationBalanceEvent.prototype.setUndelegationAmou }; +/** + * optional string epoch_seq = 5; + * @return {string} + */ +proto.vega.events.v1.PendingDelegationBalanceEvent.prototype.getEpochSeq = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.PendingDelegationBalanceEvent} returns this + */ +proto.vega.events.v1.PendingDelegationBalanceEvent.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + @@ -3837,10 +4754,11 @@ proto.vega.events.v1.ValidatorUpdate.prototype.toObject = function(opt_includeIn */ proto.vega.events.v1.ValidatorUpdate.toObject = function(includeInstance, msg) { var f, obj = { - pubKey: jspb.Message.getFieldWithDefault(msg, 1, ""), - tmPubKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - infoUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), - country: jspb.Message.getFieldWithDefault(msg, 4, "") + vegaPubKey: jspb.Message.getFieldWithDefault(msg, 1, ""), + ethereumAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), + tmPubKey: jspb.Message.getFieldWithDefault(msg, 3, ""), + infoUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), + country: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -3879,17 +4797,21 @@ proto.vega.events.v1.ValidatorUpdate.deserializeBinaryFromReader = function(msg, switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setPubKey(value); + msg.setVegaPubKey(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setTmPubKey(value); + msg.setEthereumAddress(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setInfoUrl(value); + msg.setTmPubKey(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setInfoUrl(value); + break; + case 5: var value = /** @type {string} */ (reader.readString()); msg.setCountry(value); break; @@ -3922,42 +4844,49 @@ proto.vega.events.v1.ValidatorUpdate.prototype.serializeBinary = function() { */ proto.vega.events.v1.ValidatorUpdate.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPubKey(); + f = message.getVegaPubKey(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getTmPubKey(); + f = message.getEthereumAddress(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getInfoUrl(); + f = message.getTmPubKey(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getCountry(); + f = message.getInfoUrl(); if (f.length > 0) { writer.writeString( 4, f ); } + f = message.getCountry(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } }; /** - * optional string pub_key = 1; + * optional string vega_pub_key = 1; * @return {string} */ -proto.vega.events.v1.ValidatorUpdate.prototype.getPubKey = function() { +proto.vega.events.v1.ValidatorUpdate.prototype.getVegaPubKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -3966,16 +4895,16 @@ proto.vega.events.v1.ValidatorUpdate.prototype.getPubKey = function() { * @param {string} value * @return {!proto.vega.events.v1.ValidatorUpdate} returns this */ -proto.vega.events.v1.ValidatorUpdate.prototype.setPubKey = function(value) { +proto.vega.events.v1.ValidatorUpdate.prototype.setVegaPubKey = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string tm_pub_key = 2; + * optional string ethereum_address = 2; * @return {string} */ -proto.vega.events.v1.ValidatorUpdate.prototype.getTmPubKey = function() { +proto.vega.events.v1.ValidatorUpdate.prototype.getEthereumAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -3984,16 +4913,16 @@ proto.vega.events.v1.ValidatorUpdate.prototype.getTmPubKey = function() { * @param {string} value * @return {!proto.vega.events.v1.ValidatorUpdate} returns this */ -proto.vega.events.v1.ValidatorUpdate.prototype.setTmPubKey = function(value) { +proto.vega.events.v1.ValidatorUpdate.prototype.setEthereumAddress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string info_url = 3; + * optional string tm_pub_key = 3; * @return {string} */ -proto.vega.events.v1.ValidatorUpdate.prototype.getInfoUrl = function() { +proto.vega.events.v1.ValidatorUpdate.prototype.getTmPubKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -4002,16 +4931,16 @@ proto.vega.events.v1.ValidatorUpdate.prototype.getInfoUrl = function() { * @param {string} value * @return {!proto.vega.events.v1.ValidatorUpdate} returns this */ -proto.vega.events.v1.ValidatorUpdate.prototype.setInfoUrl = function(value) { +proto.vega.events.v1.ValidatorUpdate.prototype.setTmPubKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string country = 4; + * optional string info_url = 4; * @return {string} */ -proto.vega.events.v1.ValidatorUpdate.prototype.getCountry = function() { +proto.vega.events.v1.ValidatorUpdate.prototype.getInfoUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -4020,11 +4949,29 @@ proto.vega.events.v1.ValidatorUpdate.prototype.getCountry = function() { * @param {string} value * @return {!proto.vega.events.v1.ValidatorUpdate} returns this */ -proto.vega.events.v1.ValidatorUpdate.prototype.setCountry = function(value) { +proto.vega.events.v1.ValidatorUpdate.prototype.setInfoUrl = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; +/** + * optional string country = 5; + * @return {string} + */ +proto.vega.events.v1.ValidatorUpdate.prototype.getCountry = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.events.v1.ValidatorUpdate} returns this + */ +proto.vega.events.v1.ValidatorUpdate.prototype.setCountry = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + /** * Oneof group definitions for this message. Each group defines the field @@ -4034,7 +4981,7 @@ proto.vega.events.v1.ValidatorUpdate.prototype.setCountry = function(value) { * @private {!Array>} * @const */ -proto.vega.events.v1.BusEvent.oneofGroups_ = [[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,129,130,131,132,133,1001,2001]]; +proto.vega.events.v1.BusEvent.oneofGroups_ = [[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,129,130,131,132,133,134,135,1001,2001]]; /** * @enum {number} @@ -4069,10 +5016,12 @@ proto.vega.events.v1.BusEvent.EventCase = { ORACLE_SPEC: 126, ORACLE_DATA: 127, DELEGATION_BALANCE: 129, - PENDING_DELEGATION_BALANCE: 130, + VALIDATOR_SCORE: 130, EPOCH_EVENT: 131, VALIDATOR_UPDATE: 132, - STAKING_EVENT: 133, + STAKE_LINKING: 133, + REWARD_PAYOUT: 134, + CHECKPOINT: 135, MARKET: 1001, TX_ERR_EVENT: 2001 }; @@ -4146,10 +5095,12 @@ proto.vega.events.v1.BusEvent.toObject = function(includeInstance, msg) { oracleSpec: (f = msg.getOracleSpec()) && oracles_v1_spec_pb.OracleSpec.toObject(includeInstance, f), oracleData: (f = msg.getOracleData()) && oracles_v1_data_pb.OracleData.toObject(includeInstance, f), delegationBalance: (f = msg.getDelegationBalance()) && proto.vega.events.v1.DelegationBalanceEvent.toObject(includeInstance, f), - pendingDelegationBalance: (f = msg.getPendingDelegationBalance()) && proto.vega.events.v1.PendingDelegationBalanceEvent.toObject(includeInstance, f), + validatorScore: (f = msg.getValidatorScore()) && proto.vega.events.v1.ValidatorScoreEvent.toObject(includeInstance, f), epochEvent: (f = msg.getEpochEvent()) && proto.vega.events.v1.EpochEvent.toObject(includeInstance, f), validatorUpdate: (f = msg.getValidatorUpdate()) && proto.vega.events.v1.ValidatorUpdate.toObject(includeInstance, f), - stakingEvent: (f = msg.getStakingEvent()) && proto.vega.events.v1.StakingEvent.toObject(includeInstance, f), + stakeLinking: (f = msg.getStakeLinking()) && proto.vega.events.v1.StakeLinking.toObject(includeInstance, f), + rewardPayout: (f = msg.getRewardPayout()) && proto.vega.events.v1.RewardPayoutEvent.toObject(includeInstance, f), + checkpoint: (f = msg.getCheckpoint()) && proto.vega.events.v1.CheckpointEvent.toObject(includeInstance, f), market: (f = msg.getMarket()) && proto.vega.events.v1.MarketEvent.toObject(includeInstance, f), txErrEvent: (f = msg.getTxErrEvent()) && proto.vega.events.v1.TxErrorEvent.toObject(includeInstance, f) }; @@ -4341,9 +5292,9 @@ proto.vega.events.v1.BusEvent.deserializeBinaryFromReader = function(msg, reader msg.setDelegationBalance(value); break; case 130: - var value = new proto.vega.events.v1.PendingDelegationBalanceEvent; - reader.readMessage(value,proto.vega.events.v1.PendingDelegationBalanceEvent.deserializeBinaryFromReader); - msg.setPendingDelegationBalance(value); + var value = new proto.vega.events.v1.ValidatorScoreEvent; + reader.readMessage(value,proto.vega.events.v1.ValidatorScoreEvent.deserializeBinaryFromReader); + msg.setValidatorScore(value); break; case 131: var value = new proto.vega.events.v1.EpochEvent; @@ -4356,9 +5307,19 @@ proto.vega.events.v1.BusEvent.deserializeBinaryFromReader = function(msg, reader msg.setValidatorUpdate(value); break; case 133: - var value = new proto.vega.events.v1.StakingEvent; - reader.readMessage(value,proto.vega.events.v1.StakingEvent.deserializeBinaryFromReader); - msg.setStakingEvent(value); + var value = new proto.vega.events.v1.StakeLinking; + reader.readMessage(value,proto.vega.events.v1.StakeLinking.deserializeBinaryFromReader); + msg.setStakeLinking(value); + break; + case 134: + var value = new proto.vega.events.v1.RewardPayoutEvent; + reader.readMessage(value,proto.vega.events.v1.RewardPayoutEvent.deserializeBinaryFromReader); + msg.setRewardPayout(value); + break; + case 135: + var value = new proto.vega.events.v1.CheckpointEvent; + reader.readMessage(value,proto.vega.events.v1.CheckpointEvent.deserializeBinaryFromReader); + msg.setCheckpoint(value); break; case 1001: var value = new proto.vega.events.v1.MarketEvent; @@ -4644,12 +5605,12 @@ proto.vega.events.v1.BusEvent.serializeBinaryToWriter = function(message, writer proto.vega.events.v1.DelegationBalanceEvent.serializeBinaryToWriter ); } - f = message.getPendingDelegationBalance(); + f = message.getValidatorScore(); if (f != null) { writer.writeMessage( 130, f, - proto.vega.events.v1.PendingDelegationBalanceEvent.serializeBinaryToWriter + proto.vega.events.v1.ValidatorScoreEvent.serializeBinaryToWriter ); } f = message.getEpochEvent(); @@ -4668,12 +5629,28 @@ proto.vega.events.v1.BusEvent.serializeBinaryToWriter = function(message, writer proto.vega.events.v1.ValidatorUpdate.serializeBinaryToWriter ); } - f = message.getStakingEvent(); + f = message.getStakeLinking(); if (f != null) { writer.writeMessage( 133, f, - proto.vega.events.v1.StakingEvent.serializeBinaryToWriter + proto.vega.events.v1.StakeLinking.serializeBinaryToWriter + ); + } + f = message.getRewardPayout(); + if (f != null) { + writer.writeMessage( + 134, + f, + proto.vega.events.v1.RewardPayoutEvent.serializeBinaryToWriter + ); + } + f = message.getCheckpoint(); + if (f != null) { + writer.writeMessage( + 135, + f, + proto.vega.events.v1.CheckpointEvent.serializeBinaryToWriter ); } f = message.getMarket(); @@ -5786,20 +6763,20 @@ proto.vega.events.v1.BusEvent.prototype.hasDelegationBalance = function() { /** - * optional PendingDelegationBalanceEvent pending_delegation_balance = 130; - * @return {?proto.vega.events.v1.PendingDelegationBalanceEvent} + * optional ValidatorScoreEvent validator_score = 130; + * @return {?proto.vega.events.v1.ValidatorScoreEvent} */ -proto.vega.events.v1.BusEvent.prototype.getPendingDelegationBalance = function() { - return /** @type{?proto.vega.events.v1.PendingDelegationBalanceEvent} */ ( - jspb.Message.getWrapperField(this, proto.vega.events.v1.PendingDelegationBalanceEvent, 130)); +proto.vega.events.v1.BusEvent.prototype.getValidatorScore = function() { + return /** @type{?proto.vega.events.v1.ValidatorScoreEvent} */ ( + jspb.Message.getWrapperField(this, proto.vega.events.v1.ValidatorScoreEvent, 130)); }; /** - * @param {?proto.vega.events.v1.PendingDelegationBalanceEvent|undefined} value + * @param {?proto.vega.events.v1.ValidatorScoreEvent|undefined} value * @return {!proto.vega.events.v1.BusEvent} returns this */ -proto.vega.events.v1.BusEvent.prototype.setPendingDelegationBalance = function(value) { +proto.vega.events.v1.BusEvent.prototype.setValidatorScore = function(value) { return jspb.Message.setOneofWrapperField(this, 130, proto.vega.events.v1.BusEvent.oneofGroups_[0], value); }; @@ -5808,8 +6785,8 @@ proto.vega.events.v1.BusEvent.prototype.setPendingDelegationBalance = function(v * Clears the message field making it undefined. * @return {!proto.vega.events.v1.BusEvent} returns this */ -proto.vega.events.v1.BusEvent.prototype.clearPendingDelegationBalance = function() { - return this.setPendingDelegationBalance(undefined); +proto.vega.events.v1.BusEvent.prototype.clearValidatorScore = function() { + return this.setValidatorScore(undefined); }; @@ -5817,7 +6794,7 @@ proto.vega.events.v1.BusEvent.prototype.clearPendingDelegationBalance = function * Returns whether this field is set. * @return {boolean} */ -proto.vega.events.v1.BusEvent.prototype.hasPendingDelegationBalance = function() { +proto.vega.events.v1.BusEvent.prototype.hasValidatorScore = function() { return jspb.Message.getField(this, 130) != null; }; @@ -5897,20 +6874,20 @@ proto.vega.events.v1.BusEvent.prototype.hasValidatorUpdate = function() { /** - * optional StakingEvent staking_event = 133; - * @return {?proto.vega.events.v1.StakingEvent} + * optional StakeLinking stake_linking = 133; + * @return {?proto.vega.events.v1.StakeLinking} */ -proto.vega.events.v1.BusEvent.prototype.getStakingEvent = function() { - return /** @type{?proto.vega.events.v1.StakingEvent} */ ( - jspb.Message.getWrapperField(this, proto.vega.events.v1.StakingEvent, 133)); +proto.vega.events.v1.BusEvent.prototype.getStakeLinking = function() { + return /** @type{?proto.vega.events.v1.StakeLinking} */ ( + jspb.Message.getWrapperField(this, proto.vega.events.v1.StakeLinking, 133)); }; /** - * @param {?proto.vega.events.v1.StakingEvent|undefined} value + * @param {?proto.vega.events.v1.StakeLinking|undefined} value * @return {!proto.vega.events.v1.BusEvent} returns this */ -proto.vega.events.v1.BusEvent.prototype.setStakingEvent = function(value) { +proto.vega.events.v1.BusEvent.prototype.setStakeLinking = function(value) { return jspb.Message.setOneofWrapperField(this, 133, proto.vega.events.v1.BusEvent.oneofGroups_[0], value); }; @@ -5919,8 +6896,8 @@ proto.vega.events.v1.BusEvent.prototype.setStakingEvent = function(value) { * Clears the message field making it undefined. * @return {!proto.vega.events.v1.BusEvent} returns this */ -proto.vega.events.v1.BusEvent.prototype.clearStakingEvent = function() { - return this.setStakingEvent(undefined); +proto.vega.events.v1.BusEvent.prototype.clearStakeLinking = function() { + return this.setStakeLinking(undefined); }; @@ -5928,11 +6905,85 @@ proto.vega.events.v1.BusEvent.prototype.clearStakingEvent = function() { * Returns whether this field is set. * @return {boolean} */ -proto.vega.events.v1.BusEvent.prototype.hasStakingEvent = function() { +proto.vega.events.v1.BusEvent.prototype.hasStakeLinking = function() { return jspb.Message.getField(this, 133) != null; }; +/** + * optional RewardPayoutEvent reward_payout = 134; + * @return {?proto.vega.events.v1.RewardPayoutEvent} + */ +proto.vega.events.v1.BusEvent.prototype.getRewardPayout = function() { + return /** @type{?proto.vega.events.v1.RewardPayoutEvent} */ ( + jspb.Message.getWrapperField(this, proto.vega.events.v1.RewardPayoutEvent, 134)); +}; + + +/** + * @param {?proto.vega.events.v1.RewardPayoutEvent|undefined} value + * @return {!proto.vega.events.v1.BusEvent} returns this +*/ +proto.vega.events.v1.BusEvent.prototype.setRewardPayout = function(value) { + return jspb.Message.setOneofWrapperField(this, 134, proto.vega.events.v1.BusEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.events.v1.BusEvent} returns this + */ +proto.vega.events.v1.BusEvent.prototype.clearRewardPayout = function() { + return this.setRewardPayout(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.events.v1.BusEvent.prototype.hasRewardPayout = function() { + return jspb.Message.getField(this, 134) != null; +}; + + +/** + * optional CheckpointEvent checkpoint = 135; + * @return {?proto.vega.events.v1.CheckpointEvent} + */ +proto.vega.events.v1.BusEvent.prototype.getCheckpoint = function() { + return /** @type{?proto.vega.events.v1.CheckpointEvent} */ ( + jspb.Message.getWrapperField(this, proto.vega.events.v1.CheckpointEvent, 135)); +}; + + +/** + * @param {?proto.vega.events.v1.CheckpointEvent|undefined} value + * @return {!proto.vega.events.v1.BusEvent} returns this +*/ +proto.vega.events.v1.BusEvent.prototype.setCheckpoint = function(value) { + return jspb.Message.setOneofWrapperField(this, 135, proto.vega.events.v1.BusEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.events.v1.BusEvent} returns this + */ +proto.vega.events.v1.BusEvent.prototype.clearCheckpoint = function() { + return this.setCheckpoint(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.events.v1.BusEvent.prototype.hasCheckpoint = function() { + return jspb.Message.getField(this, 135) != null; +}; + + /** * optional MarketEvent market = 1001; * @return {?proto.vega.events.v1.MarketEvent} @@ -6041,10 +7092,12 @@ proto.vega.events.v1.BusEventType = { BUS_EVENT_TYPE_ORACLE_SPEC: 27, BUS_EVENT_TYPE_ORACLE_DATA: 28, BUS_EVENT_TYPE_DELEGATION_BALANCE: 29, - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE: 30, + BUS_EVENT_TYPE_VALIDATOR_SCORE: 30, BUS_EVENT_TYPE_EPOCH_UPDATE: 31, BUS_EVENT_TYPE_VALIDATOR_UPDATE: 32, - BUS_EVENT_TYPE_STAKING_EVENT: 33, + BUS_EVENT_TYPE_STAKE_LINKING: 33, + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT: 34, + BUS_EVENT_TYPE_CHECKPOINT: 35, BUS_EVENT_TYPE_MARKET: 101, BUS_EVENT_TYPE_TX_ERROR: 201 }; diff --git a/grpc/clients/js/generated/events/v1/events_pb_service.d.ts b/grpc/clients/js/generated/events/v1/events_pb_service.d.ts deleted file mode 100644 index 74a83970..00000000 --- a/grpc/clients/js/generated/events/v1/events_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.events.v1 -// file: events/v1/events.proto - diff --git a/grpc/clients/js/generated/events/v1/events_pb_service.js b/grpc/clients/js/generated/events/v1/events_pb_service.js deleted file mode 100644 index 74a83970..00000000 --- a/grpc/clients/js/generated/events/v1/events_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.events.v1 -// file: events/v1/events.proto - diff --git a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.d.ts b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.js b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb.d.ts b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb.d.ts index ad87a14b..c26977de 100644 --- a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb.d.ts +++ b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb.d.ts @@ -1,156 +1,160 @@ // package: validator // file: github.com/mwitkow/go-proto-validators/validator.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; export class FieldValidator extends jspb.Message { - hasRegex(): boolean; - clearRegex(): void; - getRegex(): string | undefined; - setRegex(value: string): void; - - hasIntGt(): boolean; - clearIntGt(): void; - getIntGt(): number | undefined; - setIntGt(value: number): void; - - hasIntLt(): boolean; - clearIntLt(): void; - getIntLt(): number | undefined; - setIntLt(value: number): void; - - hasMsgExists(): boolean; - clearMsgExists(): void; - getMsgExists(): boolean | undefined; - setMsgExists(value: boolean): void; - - hasHumanError(): boolean; - clearHumanError(): void; - getHumanError(): string | undefined; - setHumanError(value: string): void; - - hasFloatGt(): boolean; - clearFloatGt(): void; - getFloatGt(): number | undefined; - setFloatGt(value: number): void; - - hasFloatLt(): boolean; - clearFloatLt(): void; - getFloatLt(): number | undefined; - setFloatLt(value: number): void; - - hasFloatEpsilon(): boolean; - clearFloatEpsilon(): void; - getFloatEpsilon(): number | undefined; - setFloatEpsilon(value: number): void; - - hasFloatGte(): boolean; - clearFloatGte(): void; - getFloatGte(): number | undefined; - setFloatGte(value: number): void; - - hasFloatLte(): boolean; - clearFloatLte(): void; - getFloatLte(): number | undefined; - setFloatLte(value: number): void; - - hasStringNotEmpty(): boolean; - clearStringNotEmpty(): void; - getStringNotEmpty(): boolean | undefined; - setStringNotEmpty(value: boolean): void; - - hasRepeatedCountMin(): boolean; - clearRepeatedCountMin(): void; - getRepeatedCountMin(): number | undefined; - setRepeatedCountMin(value: number): void; - - hasRepeatedCountMax(): boolean; - clearRepeatedCountMax(): void; - getRepeatedCountMax(): number | undefined; - setRepeatedCountMax(value: number): void; - - hasLengthGt(): boolean; - clearLengthGt(): void; - getLengthGt(): number | undefined; - setLengthGt(value: number): void; - - hasLengthLt(): boolean; - clearLengthLt(): void; - getLengthLt(): number | undefined; - setLengthLt(value: number): void; - - hasLengthEq(): boolean; - clearLengthEq(): void; - getLengthEq(): number | undefined; - setLengthEq(value: number): void; - - hasIsInEnum(): boolean; - clearIsInEnum(): void; - getIsInEnum(): boolean | undefined; - setIsInEnum(value: boolean): void; - - hasUuidVer(): boolean; - clearUuidVer(): void; - getUuidVer(): number | undefined; - setUuidVer(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FieldValidator.AsObject; - static toObject(includeInstance: boolean, msg: FieldValidator): FieldValidator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FieldValidator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FieldValidator; - static deserializeBinaryFromReader(message: FieldValidator, reader: jspb.BinaryReader): FieldValidator; + + hasRegex(): boolean; + clearRegex(): void; + getRegex(): string | undefined; + setRegex(value: string): FieldValidator; + + hasIntGt(): boolean; + clearIntGt(): void; + getIntGt(): number | undefined; + setIntGt(value: number): FieldValidator; + + hasIntLt(): boolean; + clearIntLt(): void; + getIntLt(): number | undefined; + setIntLt(value: number): FieldValidator; + + hasMsgExists(): boolean; + clearMsgExists(): void; + getMsgExists(): boolean | undefined; + setMsgExists(value: boolean): FieldValidator; + + hasHumanError(): boolean; + clearHumanError(): void; + getHumanError(): string | undefined; + setHumanError(value: string): FieldValidator; + + hasFloatGt(): boolean; + clearFloatGt(): void; + getFloatGt(): number | undefined; + setFloatGt(value: number): FieldValidator; + + hasFloatLt(): boolean; + clearFloatLt(): void; + getFloatLt(): number | undefined; + setFloatLt(value: number): FieldValidator; + + hasFloatEpsilon(): boolean; + clearFloatEpsilon(): void; + getFloatEpsilon(): number | undefined; + setFloatEpsilon(value: number): FieldValidator; + + hasFloatGte(): boolean; + clearFloatGte(): void; + getFloatGte(): number | undefined; + setFloatGte(value: number): FieldValidator; + + hasFloatLte(): boolean; + clearFloatLte(): void; + getFloatLte(): number | undefined; + setFloatLte(value: number): FieldValidator; + + hasStringNotEmpty(): boolean; + clearStringNotEmpty(): void; + getStringNotEmpty(): boolean | undefined; + setStringNotEmpty(value: boolean): FieldValidator; + + hasRepeatedCountMin(): boolean; + clearRepeatedCountMin(): void; + getRepeatedCountMin(): number | undefined; + setRepeatedCountMin(value: number): FieldValidator; + + hasRepeatedCountMax(): boolean; + clearRepeatedCountMax(): void; + getRepeatedCountMax(): number | undefined; + setRepeatedCountMax(value: number): FieldValidator; + + hasLengthGt(): boolean; + clearLengthGt(): void; + getLengthGt(): number | undefined; + setLengthGt(value: number): FieldValidator; + + hasLengthLt(): boolean; + clearLengthLt(): void; + getLengthLt(): number | undefined; + setLengthLt(value: number): FieldValidator; + + hasLengthEq(): boolean; + clearLengthEq(): void; + getLengthEq(): number | undefined; + setLengthEq(value: number): FieldValidator; + + hasIsInEnum(): boolean; + clearIsInEnum(): void; + getIsInEnum(): boolean | undefined; + setIsInEnum(value: boolean): FieldValidator; + + hasUuidVer(): boolean; + clearUuidVer(): void; + getUuidVer(): number | undefined; + setUuidVer(value: number): FieldValidator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FieldValidator.AsObject; + static toObject(includeInstance: boolean, msg: FieldValidator): FieldValidator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FieldValidator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FieldValidator; + static deserializeBinaryFromReader(message: FieldValidator, reader: jspb.BinaryReader): FieldValidator; } export namespace FieldValidator { - export type AsObject = { - regex?: string, - intGt?: number, - intLt?: number, - msgExists?: boolean, - humanError?: string, - floatGt?: number, - floatLt?: number, - floatEpsilon?: number, - floatGte?: number, - floatLte?: number, - stringNotEmpty?: boolean, - repeatedCountMin?: number, - repeatedCountMax?: number, - lengthGt?: number, - lengthLt?: number, - lengthEq?: number, - isInEnum?: boolean, - uuidVer?: number, - } + export type AsObject = { + regex?: string, + intGt?: number, + intLt?: number, + msgExists?: boolean, + humanError?: string, + floatGt?: number, + floatLt?: number, + floatEpsilon?: number, + floatGte?: number, + floatLte?: number, + stringNotEmpty?: boolean, + repeatedCountMin?: number, + repeatedCountMax?: number, + lengthGt?: number, + lengthLt?: number, + lengthEq?: number, + isInEnum?: boolean, + uuidVer?: number, + } } export class OneofValidator extends jspb.Message { - hasRequired(): boolean; - clearRequired(): void; - getRequired(): boolean | undefined; - setRequired(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OneofValidator.AsObject; - static toObject(includeInstance: boolean, msg: OneofValidator): OneofValidator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OneofValidator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OneofValidator; - static deserializeBinaryFromReader(message: OneofValidator, reader: jspb.BinaryReader): OneofValidator; + + hasRequired(): boolean; + clearRequired(): void; + getRequired(): boolean | undefined; + setRequired(value: boolean): OneofValidator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OneofValidator.AsObject; + static toObject(includeInstance: boolean, msg: OneofValidator): OneofValidator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OneofValidator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OneofValidator; + static deserializeBinaryFromReader(message: OneofValidator, reader: jspb.BinaryReader): OneofValidator; } export namespace OneofValidator { - export type AsObject = { - required?: boolean, - } + export type AsObject = { + required?: boolean, + } } - export const field: jspb.ExtensionFieldInfo; - - export const oneof: jspb.ExtensionFieldInfo; +export const field: jspb.ExtensionFieldInfo; +export const oneof: jspb.ExtensionFieldInfo; diff --git a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.d.ts b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.d.ts deleted file mode 100644 index 0e5fed43..00000000 --- a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: validator -// file: github.com/mwitkow/go-proto-validators/validator.proto - diff --git a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.js b/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.js deleted file mode 100644 index 0e5fed43..00000000 --- a/grpc/clients/js/generated/github.com/mwitkow/go-proto-validators/validator_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: validator -// file: github.com/mwitkow/go-proto-validators/validator.proto - diff --git a/grpc/clients/js/generated/governance_grpc_pb.d.ts b/grpc/clients/js/generated/governance_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/governance_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/governance_grpc_pb.js b/grpc/clients/js/generated/governance_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/governance_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/governance_pb.d.ts b/grpc/clients/js/generated/governance_pb.d.ts index 3ff0fd53..128fa63b 100644 --- a/grpc/clients/js/generated/governance_pb.d.ts +++ b/grpc/clients/js/generated/governance_pb.d.ts @@ -1,6 +1,9 @@ // package: vega // file: governance.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as github_com_mwitkow_go_proto_validators_validator_pb from "./github.com/mwitkow/go-proto-validators/validator_pb"; import * as markets_pb from "./markets_pb"; @@ -9,545 +12,532 @@ import * as assets_pb from "./assets_pb"; import * as oracles_v1_spec_pb from "./oracles/v1/spec_pb"; export class FutureProduct extends jspb.Message { - getMaturity(): string; - setMaturity(value: string): void; - - getSettlementAsset(): string; - setSettlementAsset(value: string): void; - - getQuoteName(): string; - setQuoteName(value: string): void; - - hasOracleSpecForSettlementPrice(): boolean; - clearOracleSpecForSettlementPrice(): void; - getOracleSpecForSettlementPrice(): oracles_v1_spec_pb.OracleSpecConfiguration | undefined; - setOracleSpecForSettlementPrice(value?: oracles_v1_spec_pb.OracleSpecConfiguration): void; - - hasOracleSpecForTradingTermination(): boolean; - clearOracleSpecForTradingTermination(): void; - getOracleSpecForTradingTermination(): oracles_v1_spec_pb.OracleSpecConfiguration | undefined; - setOracleSpecForTradingTermination(value?: oracles_v1_spec_pb.OracleSpecConfiguration): void; - - hasOracleSpecBinding(): boolean; - clearOracleSpecBinding(): void; - getOracleSpecBinding(): markets_pb.OracleSpecToFutureBinding | undefined; - setOracleSpecBinding(value?: markets_pb.OracleSpecToFutureBinding): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FutureProduct.AsObject; - static toObject(includeInstance: boolean, msg: FutureProduct): FutureProduct.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FutureProduct, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FutureProduct; - static deserializeBinaryFromReader(message: FutureProduct, reader: jspb.BinaryReader): FutureProduct; + getMaturity(): string; + setMaturity(value: string): FutureProduct; + getSettlementAsset(): string; + setSettlementAsset(value: string): FutureProduct; + getQuoteName(): string; + setQuoteName(value: string): FutureProduct; + + hasOracleSpecForSettlementPrice(): boolean; + clearOracleSpecForSettlementPrice(): void; + getOracleSpecForSettlementPrice(): oracles_v1_spec_pb.OracleSpecConfiguration | undefined; + setOracleSpecForSettlementPrice(value?: oracles_v1_spec_pb.OracleSpecConfiguration): FutureProduct; + + hasOracleSpecForTradingTermination(): boolean; + clearOracleSpecForTradingTermination(): void; + getOracleSpecForTradingTermination(): oracles_v1_spec_pb.OracleSpecConfiguration | undefined; + setOracleSpecForTradingTermination(value?: oracles_v1_spec_pb.OracleSpecConfiguration): FutureProduct; + + hasOracleSpecBinding(): boolean; + clearOracleSpecBinding(): void; + getOracleSpecBinding(): markets_pb.OracleSpecToFutureBinding | undefined; + setOracleSpecBinding(value?: markets_pb.OracleSpecToFutureBinding): FutureProduct; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FutureProduct.AsObject; + static toObject(includeInstance: boolean, msg: FutureProduct): FutureProduct.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FutureProduct, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FutureProduct; + static deserializeBinaryFromReader(message: FutureProduct, reader: jspb.BinaryReader): FutureProduct; } export namespace FutureProduct { - export type AsObject = { - maturity: string, - settlementAsset: string, - quoteName: string, - oracleSpecForSettlementPrice?: oracles_v1_spec_pb.OracleSpecConfiguration.AsObject, - oracleSpecForTradingTermination?: oracles_v1_spec_pb.OracleSpecConfiguration.AsObject, - oracleSpecBinding?: markets_pb.OracleSpecToFutureBinding.AsObject, - } + export type AsObject = { + maturity: string, + settlementAsset: string, + quoteName: string, + oracleSpecForSettlementPrice?: oracles_v1_spec_pb.OracleSpecConfiguration.AsObject, + oracleSpecForTradingTermination?: oracles_v1_spec_pb.OracleSpecConfiguration.AsObject, + oracleSpecBinding?: markets_pb.OracleSpecToFutureBinding.AsObject, + } } export class InstrumentConfiguration extends jspb.Message { - getName(): string; - setName(value: string): void; - - getCode(): string; - setCode(value: string): void; - - hasFuture(): boolean; - clearFuture(): void; - getFuture(): FutureProduct | undefined; - setFuture(value?: FutureProduct): void; - - getProductCase(): InstrumentConfiguration.ProductCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InstrumentConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: InstrumentConfiguration): InstrumentConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InstrumentConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InstrumentConfiguration; - static deserializeBinaryFromReader(message: InstrumentConfiguration, reader: jspb.BinaryReader): InstrumentConfiguration; + getName(): string; + setName(value: string): InstrumentConfiguration; + getCode(): string; + setCode(value: string): InstrumentConfiguration; + + hasFuture(): boolean; + clearFuture(): void; + getFuture(): FutureProduct | undefined; + setFuture(value?: FutureProduct): InstrumentConfiguration; + + getProductCase(): InstrumentConfiguration.ProductCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InstrumentConfiguration.AsObject; + static toObject(includeInstance: boolean, msg: InstrumentConfiguration): InstrumentConfiguration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InstrumentConfiguration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InstrumentConfiguration; + static deserializeBinaryFromReader(message: InstrumentConfiguration, reader: jspb.BinaryReader): InstrumentConfiguration; } export namespace InstrumentConfiguration { - export type AsObject = { - name: string, - code: string, - future?: FutureProduct.AsObject, - } - - export enum ProductCase { - PRODUCT_NOT_SET = 0, - FUTURE = 100, - } + export type AsObject = { + name: string, + code: string, + future?: FutureProduct.AsObject, + } + + export enum ProductCase { + PRODUCT_NOT_SET = 0, + FUTURE = 100, + } + } export class NewMarketConfiguration extends jspb.Message { - hasInstrument(): boolean; - clearInstrument(): void; - getInstrument(): InstrumentConfiguration | undefined; - setInstrument(value?: InstrumentConfiguration): void; - - getDecimalPlaces(): number; - setDecimalPlaces(value: number): void; - - clearMetadataList(): void; - getMetadataList(): Array; - setMetadataList(value: Array): void; - addMetadata(value: string, index?: number): string; - - hasPriceMonitoringParameters(): boolean; - clearPriceMonitoringParameters(): void; - getPriceMonitoringParameters(): markets_pb.PriceMonitoringParameters | undefined; - setPriceMonitoringParameters(value?: markets_pb.PriceMonitoringParameters): void; - - hasLiquidityMonitoringParameters(): boolean; - clearLiquidityMonitoringParameters(): void; - getLiquidityMonitoringParameters(): markets_pb.LiquidityMonitoringParameters | undefined; - setLiquidityMonitoringParameters(value?: markets_pb.LiquidityMonitoringParameters): void; - - hasSimple(): boolean; - clearSimple(): void; - getSimple(): markets_pb.SimpleModelParams | undefined; - setSimple(value?: markets_pb.SimpleModelParams): void; - - hasLogNormal(): boolean; - clearLogNormal(): void; - getLogNormal(): markets_pb.LogNormalRiskModel | undefined; - setLogNormal(value?: markets_pb.LogNormalRiskModel): void; - - hasContinuous(): boolean; - clearContinuous(): void; - getContinuous(): markets_pb.ContinuousTrading | undefined; - setContinuous(value?: markets_pb.ContinuousTrading): void; - - hasDiscrete(): boolean; - clearDiscrete(): void; - getDiscrete(): markets_pb.DiscreteTrading | undefined; - setDiscrete(value?: markets_pb.DiscreteTrading): void; - - getRiskParametersCase(): NewMarketConfiguration.RiskParametersCase; - getTradingModeCase(): NewMarketConfiguration.TradingModeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NewMarketConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: NewMarketConfiguration): NewMarketConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NewMarketConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NewMarketConfiguration; - static deserializeBinaryFromReader(message: NewMarketConfiguration, reader: jspb.BinaryReader): NewMarketConfiguration; + + hasInstrument(): boolean; + clearInstrument(): void; + getInstrument(): InstrumentConfiguration | undefined; + setInstrument(value?: InstrumentConfiguration): NewMarketConfiguration; + getDecimalPlaces(): number; + setDecimalPlaces(value: number): NewMarketConfiguration; + clearMetadataList(): void; + getMetadataList(): Array; + setMetadataList(value: Array): NewMarketConfiguration; + addMetadata(value: string, index?: number): string; + + hasPriceMonitoringParameters(): boolean; + clearPriceMonitoringParameters(): void; + getPriceMonitoringParameters(): markets_pb.PriceMonitoringParameters | undefined; + setPriceMonitoringParameters(value?: markets_pb.PriceMonitoringParameters): NewMarketConfiguration; + + hasLiquidityMonitoringParameters(): boolean; + clearLiquidityMonitoringParameters(): void; + getLiquidityMonitoringParameters(): markets_pb.LiquidityMonitoringParameters | undefined; + setLiquidityMonitoringParameters(value?: markets_pb.LiquidityMonitoringParameters): NewMarketConfiguration; + + hasSimple(): boolean; + clearSimple(): void; + getSimple(): markets_pb.SimpleModelParams | undefined; + setSimple(value?: markets_pb.SimpleModelParams): NewMarketConfiguration; + + hasLogNormal(): boolean; + clearLogNormal(): void; + getLogNormal(): markets_pb.LogNormalRiskModel | undefined; + setLogNormal(value?: markets_pb.LogNormalRiskModel): NewMarketConfiguration; + + hasContinuous(): boolean; + clearContinuous(): void; + getContinuous(): markets_pb.ContinuousTrading | undefined; + setContinuous(value?: markets_pb.ContinuousTrading): NewMarketConfiguration; + + hasDiscrete(): boolean; + clearDiscrete(): void; + getDiscrete(): markets_pb.DiscreteTrading | undefined; + setDiscrete(value?: markets_pb.DiscreteTrading): NewMarketConfiguration; + + getRiskParametersCase(): NewMarketConfiguration.RiskParametersCase; + getTradingModeCase(): NewMarketConfiguration.TradingModeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewMarketConfiguration.AsObject; + static toObject(includeInstance: boolean, msg: NewMarketConfiguration): NewMarketConfiguration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NewMarketConfiguration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewMarketConfiguration; + static deserializeBinaryFromReader(message: NewMarketConfiguration, reader: jspb.BinaryReader): NewMarketConfiguration; } export namespace NewMarketConfiguration { - export type AsObject = { - instrument?: InstrumentConfiguration.AsObject, - decimalPlaces: number, - metadataList: Array, - priceMonitoringParameters?: markets_pb.PriceMonitoringParameters.AsObject, - liquidityMonitoringParameters?: markets_pb.LiquidityMonitoringParameters.AsObject, - simple?: markets_pb.SimpleModelParams.AsObject, - logNormal?: markets_pb.LogNormalRiskModel.AsObject, - continuous?: markets_pb.ContinuousTrading.AsObject, - discrete?: markets_pb.DiscreteTrading.AsObject, - } - - export enum RiskParametersCase { - RISK_PARAMETERS_NOT_SET = 0, - SIMPLE = 100, - LOG_NORMAL = 101, - } - - export enum TradingModeCase { - TRADING_MODE_NOT_SET = 0, - CONTINUOUS = 200, - DISCRETE = 201, - } + export type AsObject = { + instrument?: InstrumentConfiguration.AsObject, + decimalPlaces: number, + metadataList: Array, + priceMonitoringParameters?: markets_pb.PriceMonitoringParameters.AsObject, + liquidityMonitoringParameters?: markets_pb.LiquidityMonitoringParameters.AsObject, + simple?: markets_pb.SimpleModelParams.AsObject, + logNormal?: markets_pb.LogNormalRiskModel.AsObject, + continuous?: markets_pb.ContinuousTrading.AsObject, + discrete?: markets_pb.DiscreteTrading.AsObject, + } + + export enum RiskParametersCase { + RISK_PARAMETERS_NOT_SET = 0, + SIMPLE = 100, + LOG_NORMAL = 101, + } + + export enum TradingModeCase { + TRADING_MODE_NOT_SET = 0, + CONTINUOUS = 200, + DISCRETE = 201, + } + } export class NewMarketCommitment extends jspb.Message { - getCommitmentAmount(): number; - setCommitmentAmount(value: number): void; - - getFee(): string; - setFee(value: string): void; - - clearSellsList(): void; - getSellsList(): Array; - setSellsList(value: Array): void; - addSells(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; - - clearBuysList(): void; - getBuysList(): Array; - setBuysList(value: Array): void; - addBuys(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; - - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NewMarketCommitment.AsObject; - static toObject(includeInstance: boolean, msg: NewMarketCommitment): NewMarketCommitment.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NewMarketCommitment, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NewMarketCommitment; - static deserializeBinaryFromReader(message: NewMarketCommitment, reader: jspb.BinaryReader): NewMarketCommitment; + getCommitmentAmount(): number; + setCommitmentAmount(value: number): NewMarketCommitment; + getFee(): string; + setFee(value: string): NewMarketCommitment; + clearSellsList(): void; + getSellsList(): Array; + setSellsList(value: Array): NewMarketCommitment; + addSells(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; + clearBuysList(): void; + getBuysList(): Array; + setBuysList(value: Array): NewMarketCommitment; + addBuys(value?: vega_pb.LiquidityOrder, index?: number): vega_pb.LiquidityOrder; + getReference(): string; + setReference(value: string): NewMarketCommitment; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewMarketCommitment.AsObject; + static toObject(includeInstance: boolean, msg: NewMarketCommitment): NewMarketCommitment.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NewMarketCommitment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewMarketCommitment; + static deserializeBinaryFromReader(message: NewMarketCommitment, reader: jspb.BinaryReader): NewMarketCommitment; } export namespace NewMarketCommitment { - export type AsObject = { - commitmentAmount: number, - fee: string, - sellsList: Array, - buysList: Array, - reference: string, - } + export type AsObject = { + commitmentAmount: number, + fee: string, + sellsList: Array, + buysList: Array, + reference: string, + } } export class NewMarket extends jspb.Message { - hasChanges(): boolean; - clearChanges(): void; - getChanges(): NewMarketConfiguration | undefined; - setChanges(value?: NewMarketConfiguration): void; - - hasLiquidityCommitment(): boolean; - clearLiquidityCommitment(): void; - getLiquidityCommitment(): NewMarketCommitment | undefined; - setLiquidityCommitment(value?: NewMarketCommitment): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NewMarket.AsObject; - static toObject(includeInstance: boolean, msg: NewMarket): NewMarket.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NewMarket, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NewMarket; - static deserializeBinaryFromReader(message: NewMarket, reader: jspb.BinaryReader): NewMarket; + + hasChanges(): boolean; + clearChanges(): void; + getChanges(): NewMarketConfiguration | undefined; + setChanges(value?: NewMarketConfiguration): NewMarket; + + hasLiquidityCommitment(): boolean; + clearLiquidityCommitment(): void; + getLiquidityCommitment(): NewMarketCommitment | undefined; + setLiquidityCommitment(value?: NewMarketCommitment): NewMarket; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewMarket.AsObject; + static toObject(includeInstance: boolean, msg: NewMarket): NewMarket.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NewMarket, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewMarket; + static deserializeBinaryFromReader(message: NewMarket, reader: jspb.BinaryReader): NewMarket; } export namespace NewMarket { - export type AsObject = { - changes?: NewMarketConfiguration.AsObject, - liquidityCommitment?: NewMarketCommitment.AsObject, - } + export type AsObject = { + changes?: NewMarketConfiguration.AsObject, + liquidityCommitment?: NewMarketCommitment.AsObject, + } } export class UpdateMarket extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMarket.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMarket): UpdateMarket.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateMarket, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMarket; - static deserializeBinaryFromReader(message: UpdateMarket, reader: jspb.BinaryReader): UpdateMarket; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMarket.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMarket): UpdateMarket.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMarket, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMarket; + static deserializeBinaryFromReader(message: UpdateMarket, reader: jspb.BinaryReader): UpdateMarket; } export namespace UpdateMarket { - export type AsObject = { - } + export type AsObject = { + } } export class UpdateNetworkParameter extends jspb.Message { - hasChanges(): boolean; - clearChanges(): void; - getChanges(): vega_pb.NetworkParameter | undefined; - setChanges(value?: vega_pb.NetworkParameter): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateNetworkParameter.AsObject; - static toObject(includeInstance: boolean, msg: UpdateNetworkParameter): UpdateNetworkParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateNetworkParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateNetworkParameter; - static deserializeBinaryFromReader(message: UpdateNetworkParameter, reader: jspb.BinaryReader): UpdateNetworkParameter; + + hasChanges(): boolean; + clearChanges(): void; + getChanges(): vega_pb.NetworkParameter | undefined; + setChanges(value?: vega_pb.NetworkParameter): UpdateNetworkParameter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateNetworkParameter.AsObject; + static toObject(includeInstance: boolean, msg: UpdateNetworkParameter): UpdateNetworkParameter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateNetworkParameter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateNetworkParameter; + static deserializeBinaryFromReader(message: UpdateNetworkParameter, reader: jspb.BinaryReader): UpdateNetworkParameter; } export namespace UpdateNetworkParameter { - export type AsObject = { - changes?: vega_pb.NetworkParameter.AsObject, - } + export type AsObject = { + changes?: vega_pb.NetworkParameter.AsObject, + } } export class NewAsset extends jspb.Message { - hasChanges(): boolean; - clearChanges(): void; - getChanges(): assets_pb.AssetDetails | undefined; - setChanges(value?: assets_pb.AssetDetails): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NewAsset.AsObject; - static toObject(includeInstance: boolean, msg: NewAsset): NewAsset.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NewAsset, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NewAsset; - static deserializeBinaryFromReader(message: NewAsset, reader: jspb.BinaryReader): NewAsset; + + hasChanges(): boolean; + clearChanges(): void; + getChanges(): assets_pb.AssetDetails | undefined; + setChanges(value?: assets_pb.AssetDetails): NewAsset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewAsset.AsObject; + static toObject(includeInstance: boolean, msg: NewAsset): NewAsset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NewAsset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewAsset; + static deserializeBinaryFromReader(message: NewAsset, reader: jspb.BinaryReader): NewAsset; } export namespace NewAsset { - export type AsObject = { - changes?: assets_pb.AssetDetails.AsObject, - } + export type AsObject = { + changes?: assets_pb.AssetDetails.AsObject, + } } export class ProposalTerms extends jspb.Message { - getClosingTimestamp(): number; - setClosingTimestamp(value: number): void; - - getEnactmentTimestamp(): number; - setEnactmentTimestamp(value: number): void; - - getValidationTimestamp(): number; - setValidationTimestamp(value: number): void; - - hasUpdateMarket(): boolean; - clearUpdateMarket(): void; - getUpdateMarket(): UpdateMarket | undefined; - setUpdateMarket(value?: UpdateMarket): void; - - hasNewMarket(): boolean; - clearNewMarket(): void; - getNewMarket(): NewMarket | undefined; - setNewMarket(value?: NewMarket): void; - - hasUpdateNetworkParameter(): boolean; - clearUpdateNetworkParameter(): void; - getUpdateNetworkParameter(): UpdateNetworkParameter | undefined; - setUpdateNetworkParameter(value?: UpdateNetworkParameter): void; - - hasNewAsset(): boolean; - clearNewAsset(): void; - getNewAsset(): NewAsset | undefined; - setNewAsset(value?: NewAsset): void; - - getChangeCase(): ProposalTerms.ChangeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProposalTerms.AsObject; - static toObject(includeInstance: boolean, msg: ProposalTerms): ProposalTerms.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProposalTerms, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProposalTerms; - static deserializeBinaryFromReader(message: ProposalTerms, reader: jspb.BinaryReader): ProposalTerms; + getClosingTimestamp(): number; + setClosingTimestamp(value: number): ProposalTerms; + getEnactmentTimestamp(): number; + setEnactmentTimestamp(value: number): ProposalTerms; + getValidationTimestamp(): number; + setValidationTimestamp(value: number): ProposalTerms; + + hasUpdateMarket(): boolean; + clearUpdateMarket(): void; + getUpdateMarket(): UpdateMarket | undefined; + setUpdateMarket(value?: UpdateMarket): ProposalTerms; + + hasNewMarket(): boolean; + clearNewMarket(): void; + getNewMarket(): NewMarket | undefined; + setNewMarket(value?: NewMarket): ProposalTerms; + + hasUpdateNetworkParameter(): boolean; + clearUpdateNetworkParameter(): void; + getUpdateNetworkParameter(): UpdateNetworkParameter | undefined; + setUpdateNetworkParameter(value?: UpdateNetworkParameter): ProposalTerms; + + hasNewAsset(): boolean; + clearNewAsset(): void; + getNewAsset(): NewAsset | undefined; + setNewAsset(value?: NewAsset): ProposalTerms; + + getChangeCase(): ProposalTerms.ChangeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalTerms.AsObject; + static toObject(includeInstance: boolean, msg: ProposalTerms): ProposalTerms.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProposalTerms, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalTerms; + static deserializeBinaryFromReader(message: ProposalTerms, reader: jspb.BinaryReader): ProposalTerms; } export namespace ProposalTerms { - export type AsObject = { - closingTimestamp: number, - enactmentTimestamp: number, - validationTimestamp: number, - updateMarket?: UpdateMarket.AsObject, - newMarket?: NewMarket.AsObject, - updateNetworkParameter?: UpdateNetworkParameter.AsObject, - newAsset?: NewAsset.AsObject, - } - - export enum ChangeCase { - CHANGE_NOT_SET = 0, - UPDATE_MARKET = 101, - NEW_MARKET = 102, - UPDATE_NETWORK_PARAMETER = 103, - NEW_ASSET = 104, - } + export type AsObject = { + closingTimestamp: number, + enactmentTimestamp: number, + validationTimestamp: number, + updateMarket?: UpdateMarket.AsObject, + newMarket?: NewMarket.AsObject, + updateNetworkParameter?: UpdateNetworkParameter.AsObject, + newAsset?: NewAsset.AsObject, + } + + export enum ChangeCase { + CHANGE_NOT_SET = 0, + UPDATE_MARKET = 101, + NEW_MARKET = 102, + UPDATE_NETWORK_PARAMETER = 103, + NEW_ASSET = 104, + } + } export class GovernanceData extends jspb.Message { - hasProposal(): boolean; - clearProposal(): void; - getProposal(): Proposal | undefined; - setProposal(value?: Proposal): void; - - clearYesList(): void; - getYesList(): Array; - setYesList(value: Array): void; - addYes(value?: Vote, index?: number): Vote; - - clearNoList(): void; - getNoList(): Array; - setNoList(value: Array): void; - addNo(value?: Vote, index?: number): Vote; - - getYesPartyMap(): jspb.Map; - clearYesPartyMap(): void; - getNoPartyMap(): jspb.Map; - clearNoPartyMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GovernanceData.AsObject; - static toObject(includeInstance: boolean, msg: GovernanceData): GovernanceData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GovernanceData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GovernanceData; - static deserializeBinaryFromReader(message: GovernanceData, reader: jspb.BinaryReader): GovernanceData; -} -export namespace GovernanceData { - export type AsObject = { - proposal?: Proposal.AsObject, - yesList: Array, - noList: Array, - yesPartyMap: Array<[string, Vote.AsObject]>, - noPartyMap: Array<[string, Vote.AsObject]>, - } + hasProposal(): boolean; + clearProposal(): void; + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): GovernanceData; + clearYesList(): void; + getYesList(): Array; + setYesList(value: Array): GovernanceData; + addYes(value?: Vote, index?: number): Vote; + clearNoList(): void; + getNoList(): Array; + setNoList(value: Array): GovernanceData; + addNo(value?: Vote, index?: number): Vote; + + getYesPartyMap(): jspb.Map; + clearYesPartyMap(): void; + + getNoPartyMap(): jspb.Map; + clearNoPartyMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GovernanceData.AsObject; + static toObject(includeInstance: boolean, msg: GovernanceData): GovernanceData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GovernanceData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GovernanceData; + static deserializeBinaryFromReader(message: GovernanceData, reader: jspb.BinaryReader): GovernanceData; } -export class Proposal extends jspb.Message { - getId(): string; - setId(value: string): void; - - getReference(): string; - setReference(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getState(): Proposal.StateMap[keyof Proposal.StateMap]; - setState(value: Proposal.StateMap[keyof Proposal.StateMap]): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - hasTerms(): boolean; - clearTerms(): void; - getTerms(): ProposalTerms | undefined; - setTerms(value?: ProposalTerms): void; +export namespace GovernanceData { + export type AsObject = { + proposal?: Proposal.AsObject, + yesList: Array, + noList: Array, - getReason(): ProposalErrorMap[keyof ProposalErrorMap]; - setReason(value: ProposalErrorMap[keyof ProposalErrorMap]): void; + yesPartyMap: Array<[string, Vote.AsObject]>, - getErrorDetails(): string; - setErrorDetails(value: string): void; + noPartyMap: Array<[string, Vote.AsObject]>, + } +} - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Proposal.AsObject; - static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Proposal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Proposal; - static deserializeBinaryFromReader(message: Proposal, reader: jspb.BinaryReader): Proposal; +export class Proposal extends jspb.Message { + getId(): string; + setId(value: string): Proposal; + getReference(): string; + setReference(value: string): Proposal; + getPartyId(): string; + setPartyId(value: string): Proposal; + getState(): Proposal.State; + setState(value: Proposal.State): Proposal; + getTimestamp(): number; + setTimestamp(value: number): Proposal; + + hasTerms(): boolean; + clearTerms(): void; + getTerms(): ProposalTerms | undefined; + setTerms(value?: ProposalTerms): Proposal; + getReason(): ProposalError; + setReason(value: ProposalError): Proposal; + getErrorDetails(): string; + setErrorDetails(value: string): Proposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Proposal.AsObject; + static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Proposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Proposal; + static deserializeBinaryFromReader(message: Proposal, reader: jspb.BinaryReader): Proposal; } export namespace Proposal { - export type AsObject = { - id: string, - reference: string, - partyId: string, - state: Proposal.StateMap[keyof Proposal.StateMap], - timestamp: number, - terms?: ProposalTerms.AsObject, - reason: ProposalErrorMap[keyof ProposalErrorMap], - errorDetails: string, - } - - export interface StateMap { - STATE_UNSPECIFIED: 0; - STATE_FAILED: 1; - STATE_OPEN: 2; - STATE_PASSED: 3; - STATE_REJECTED: 4; - STATE_DECLINED: 5; - STATE_ENACTED: 6; - STATE_WAITING_FOR_NODE_VOTE: 7; - } - - export const State: StateMap; + export type AsObject = { + id: string, + reference: string, + partyId: string, + state: Proposal.State, + timestamp: number, + terms?: ProposalTerms.AsObject, + reason: ProposalError, + errorDetails: string, + } + + export enum State { + STATE_UNSPECIFIED = 0, + STATE_FAILED = 1, + STATE_OPEN = 2, + STATE_PASSED = 3, + STATE_REJECTED = 4, + STATE_DECLINED = 5, + STATE_ENACTED = 6, + STATE_WAITING_FOR_NODE_VOTE = 7, + } + } export class Vote extends jspb.Message { - getPartyId(): string; - setPartyId(value: string): void; - - getValue(): Vote.ValueMap[keyof Vote.ValueMap]; - setValue(value: Vote.ValueMap[keyof Vote.ValueMap]): void; - - getProposalId(): string; - setProposalId(value: string): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - getTotalGovernanceTokenBalance(): number; - setTotalGovernanceTokenBalance(value: number): void; - - getTotalGovernanceTokenWeight(): string; - setTotalGovernanceTokenWeight(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Vote.AsObject; - static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Vote, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Vote; - static deserializeBinaryFromReader(message: Vote, reader: jspb.BinaryReader): Vote; + getPartyId(): string; + setPartyId(value: string): Vote; + getValue(): Vote.Value; + setValue(value: Vote.Value): Vote; + getProposalId(): string; + setProposalId(value: string): Vote; + getTimestamp(): number; + setTimestamp(value: number): Vote; + getTotalGovernanceTokenBalance(): number; + setTotalGovernanceTokenBalance(value: number): Vote; + getTotalGovernanceTokenWeight(): string; + setTotalGovernanceTokenWeight(value: string): Vote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Vote.AsObject; + static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Vote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Vote; + static deserializeBinaryFromReader(message: Vote, reader: jspb.BinaryReader): Vote; } export namespace Vote { - export type AsObject = { - partyId: string, - value: Vote.ValueMap[keyof Vote.ValueMap], - proposalId: string, - timestamp: number, - totalGovernanceTokenBalance: number, - totalGovernanceTokenWeight: string, - } - - export interface ValueMap { - VALUE_UNSPECIFIED: 0; - VALUE_NO: 1; - VALUE_YES: 2; - } - - export const Value: ValueMap; -} + export type AsObject = { + partyId: string, + value: Vote.Value, + proposalId: string, + timestamp: number, + totalGovernanceTokenBalance: number, + totalGovernanceTokenWeight: string, + } + + export enum Value { + VALUE_UNSPECIFIED = 0, + VALUE_NO = 1, + VALUE_YES = 2, + } -export interface ProposalErrorMap { - PROPOSAL_ERROR_UNSPECIFIED: 0; - PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON: 1; - PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE: 2; - PROPOSAL_ERROR_ENACT_TIME_TOO_SOON: 3; - PROPOSAL_ERROR_ENACT_TIME_TOO_LATE: 4; - PROPOSAL_ERROR_INSUFFICIENT_TOKENS: 5; - PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY: 6; - PROPOSAL_ERROR_NO_PRODUCT: 7; - PROPOSAL_ERROR_UNSUPPORTED_PRODUCT: 8; - PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP: 9; - PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED: 10; - PROPOSAL_ERROR_NO_TRADING_MODE: 11; - PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE: 12; - PROPOSAL_ERROR_NODE_VALIDATION_FAILED: 13; - PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD: 14; - PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS: 15; - PROPOSAL_ERROR_INVALID_ASSET: 16; - PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS: 17; - PROPOSAL_ERROR_NO_RISK_PARAMETERS: 18; - PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY: 19; - PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE: 20; - PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED: 21; - PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL: 22; - PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE: 23; - PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT: 24; - PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET: 25; - PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT: 26; - PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT: 27; - PROPOSAL_ERROR_INVALID_FEE_AMOUNT: 28; - PROPOSAL_ERROR_INVALID_SHAPE: 29; - PROPOSAL_ERROR_INVALID_RISK_PARAMETER: 30; - PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED: 31; - PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED: 32; - PROPOSAL_ERROR_INVALID_ASSET_DETAILS: 33; } -export const ProposalError: ProposalErrorMap; - +export enum ProposalError { + PROPOSAL_ERROR_UNSPECIFIED = 0, + PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON = 1, + PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE = 2, + PROPOSAL_ERROR_ENACT_TIME_TOO_SOON = 3, + PROPOSAL_ERROR_ENACT_TIME_TOO_LATE = 4, + PROPOSAL_ERROR_INSUFFICIENT_TOKENS = 5, + PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY = 6, + PROPOSAL_ERROR_NO_PRODUCT = 7, + PROPOSAL_ERROR_UNSUPPORTED_PRODUCT = 8, + PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP = 9, + PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED = 10, + PROPOSAL_ERROR_NO_TRADING_MODE = 11, + PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE = 12, + PROPOSAL_ERROR_NODE_VALIDATION_FAILED = 13, + PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD = 14, + PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS = 15, + PROPOSAL_ERROR_INVALID_ASSET = 16, + PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS = 17, + PROPOSAL_ERROR_NO_RISK_PARAMETERS = 18, + PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY = 19, + PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE = 20, + PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED = 21, + PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL = 22, + PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE = 23, + PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT = 24, + PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET = 25, + PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT = 26, + PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT = 27, + PROPOSAL_ERROR_INVALID_FEE_AMOUNT = 28, + PROPOSAL_ERROR_INVALID_SHAPE = 29, + PROPOSAL_ERROR_INVALID_RISK_PARAMETER = 30, + PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED = 31, + PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED = 32, + PROPOSAL_ERROR_INVALID_ASSET_DETAILS = 33, +} diff --git a/grpc/clients/js/generated/governance_pb_service.d.ts b/grpc/clients/js/generated/governance_pb_service.d.ts deleted file mode 100644 index be51242b..00000000 --- a/grpc/clients/js/generated/governance_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: governance.proto - diff --git a/grpc/clients/js/generated/governance_pb_service.js b/grpc/clients/js/generated/governance_pb_service.js deleted file mode 100644 index be51242b..00000000 --- a/grpc/clients/js/generated/governance_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: governance.proto - diff --git a/grpc/clients/js/generated/markets_grpc_pb.d.ts b/grpc/clients/js/generated/markets_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/markets_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/markets_grpc_pb.js b/grpc/clients/js/generated/markets_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/markets_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/markets_pb.d.ts b/grpc/clients/js/generated/markets_pb.d.ts index 4d117b47..1b03f1b6 100644 --- a/grpc/clients/js/generated/markets_pb.d.ts +++ b/grpc/clients/js/generated/markets_pb.d.ts @@ -1,750 +1,731 @@ // package: vega // file: markets.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as github_com_mwitkow_go_proto_validators_validator_pb from "./github.com/mwitkow/go-proto-validators/validator_pb"; import * as oracles_v1_spec_pb from "./oracles/v1/spec_pb"; export class AuctionDuration extends jspb.Message { - getDuration(): number; - setDuration(value: number): void; - - getVolume(): number; - setVolume(value: number): void; + getDuration(): number; + setDuration(value: number): AuctionDuration; + getVolume(): number; + setVolume(value: number): AuctionDuration; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuctionDuration.AsObject; - static toObject(includeInstance: boolean, msg: AuctionDuration): AuctionDuration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuctionDuration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuctionDuration; - static deserializeBinaryFromReader(message: AuctionDuration, reader: jspb.BinaryReader): AuctionDuration; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AuctionDuration.AsObject; + static toObject(includeInstance: boolean, msg: AuctionDuration): AuctionDuration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AuctionDuration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AuctionDuration; + static deserializeBinaryFromReader(message: AuctionDuration, reader: jspb.BinaryReader): AuctionDuration; } export namespace AuctionDuration { - export type AsObject = { - duration: number, - volume: number, - } + export type AsObject = { + duration: number, + volume: number, + } } export class ContinuousTrading extends jspb.Message { - getTickSize(): string; - setTickSize(value: string): void; + getTickSize(): string; + setTickSize(value: string): ContinuousTrading; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ContinuousTrading.AsObject; - static toObject(includeInstance: boolean, msg: ContinuousTrading): ContinuousTrading.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ContinuousTrading, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ContinuousTrading; - static deserializeBinaryFromReader(message: ContinuousTrading, reader: jspb.BinaryReader): ContinuousTrading; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ContinuousTrading.AsObject; + static toObject(includeInstance: boolean, msg: ContinuousTrading): ContinuousTrading.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ContinuousTrading, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ContinuousTrading; + static deserializeBinaryFromReader(message: ContinuousTrading, reader: jspb.BinaryReader): ContinuousTrading; } export namespace ContinuousTrading { - export type AsObject = { - tickSize: string, - } + export type AsObject = { + tickSize: string, + } } export class DiscreteTrading extends jspb.Message { - getDurationNs(): number; - setDurationNs(value: number): void; + getDurationNs(): number; + setDurationNs(value: number): DiscreteTrading; + getTickSize(): string; + setTickSize(value: string): DiscreteTrading; - getTickSize(): string; - setTickSize(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DiscreteTrading.AsObject; - static toObject(includeInstance: boolean, msg: DiscreteTrading): DiscreteTrading.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DiscreteTrading, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DiscreteTrading; - static deserializeBinaryFromReader(message: DiscreteTrading, reader: jspb.BinaryReader): DiscreteTrading; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DiscreteTrading.AsObject; + static toObject(includeInstance: boolean, msg: DiscreteTrading): DiscreteTrading.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DiscreteTrading, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DiscreteTrading; + static deserializeBinaryFromReader(message: DiscreteTrading, reader: jspb.BinaryReader): DiscreteTrading; } export namespace DiscreteTrading { - export type AsObject = { - durationNs: number, - tickSize: string, - } + export type AsObject = { + durationNs: number, + tickSize: string, + } } export class Future extends jspb.Message { - getMaturity(): string; - setMaturity(value: string): void; - - getSettlementAsset(): string; - setSettlementAsset(value: string): void; - - getQuoteName(): string; - setQuoteName(value: string): void; - - hasOracleSpecForSettlementPrice(): boolean; - clearOracleSpecForSettlementPrice(): void; - getOracleSpecForSettlementPrice(): oracles_v1_spec_pb.OracleSpec | undefined; - setOracleSpecForSettlementPrice(value?: oracles_v1_spec_pb.OracleSpec): void; - - hasOracleSpecForTradingTermination(): boolean; - clearOracleSpecForTradingTermination(): void; - getOracleSpecForTradingTermination(): oracles_v1_spec_pb.OracleSpec | undefined; - setOracleSpecForTradingTermination(value?: oracles_v1_spec_pb.OracleSpec): void; - - hasOracleSpecBinding(): boolean; - clearOracleSpecBinding(): void; - getOracleSpecBinding(): OracleSpecToFutureBinding | undefined; - setOracleSpecBinding(value?: OracleSpecToFutureBinding): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Future.AsObject; - static toObject(includeInstance: boolean, msg: Future): Future.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Future, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Future; - static deserializeBinaryFromReader(message: Future, reader: jspb.BinaryReader): Future; + getMaturity(): string; + setMaturity(value: string): Future; + getSettlementAsset(): string; + setSettlementAsset(value: string): Future; + getQuoteName(): string; + setQuoteName(value: string): Future; + + hasOracleSpecForSettlementPrice(): boolean; + clearOracleSpecForSettlementPrice(): void; + getOracleSpecForSettlementPrice(): oracles_v1_spec_pb.OracleSpec | undefined; + setOracleSpecForSettlementPrice(value?: oracles_v1_spec_pb.OracleSpec): Future; + + hasOracleSpecForTradingTermination(): boolean; + clearOracleSpecForTradingTermination(): void; + getOracleSpecForTradingTermination(): oracles_v1_spec_pb.OracleSpec | undefined; + setOracleSpecForTradingTermination(value?: oracles_v1_spec_pb.OracleSpec): Future; + + hasOracleSpecBinding(): boolean; + clearOracleSpecBinding(): void; + getOracleSpecBinding(): OracleSpecToFutureBinding | undefined; + setOracleSpecBinding(value?: OracleSpecToFutureBinding): Future; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Future.AsObject; + static toObject(includeInstance: boolean, msg: Future): Future.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Future, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Future; + static deserializeBinaryFromReader(message: Future, reader: jspb.BinaryReader): Future; } export namespace Future { - export type AsObject = { - maturity: string, - settlementAsset: string, - quoteName: string, - oracleSpecForSettlementPrice?: oracles_v1_spec_pb.OracleSpec.AsObject, - oracleSpecForTradingTermination?: oracles_v1_spec_pb.OracleSpec.AsObject, - oracleSpecBinding?: OracleSpecToFutureBinding.AsObject, - } + export type AsObject = { + maturity: string, + settlementAsset: string, + quoteName: string, + oracleSpecForSettlementPrice?: oracles_v1_spec_pb.OracleSpec.AsObject, + oracleSpecForTradingTermination?: oracles_v1_spec_pb.OracleSpec.AsObject, + oracleSpecBinding?: OracleSpecToFutureBinding.AsObject, + } } export class OracleSpecToFutureBinding extends jspb.Message { - getSettlementPriceProperty(): string; - setSettlementPriceProperty(value: string): void; + getSettlementPriceProperty(): string; + setSettlementPriceProperty(value: string): OracleSpecToFutureBinding; + getTradingTerminationProperty(): string; + setTradingTerminationProperty(value: string): OracleSpecToFutureBinding; - getTradingTerminationProperty(): string; - setTradingTerminationProperty(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecToFutureBinding.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecToFutureBinding): OracleSpecToFutureBinding.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecToFutureBinding, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecToFutureBinding; - static deserializeBinaryFromReader(message: OracleSpecToFutureBinding, reader: jspb.BinaryReader): OracleSpecToFutureBinding; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OracleSpecToFutureBinding.AsObject; + static toObject(includeInstance: boolean, msg: OracleSpecToFutureBinding): OracleSpecToFutureBinding.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OracleSpecToFutureBinding, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OracleSpecToFutureBinding; + static deserializeBinaryFromReader(message: OracleSpecToFutureBinding, reader: jspb.BinaryReader): OracleSpecToFutureBinding; } export namespace OracleSpecToFutureBinding { - export type AsObject = { - settlementPriceProperty: string, - tradingTerminationProperty: string, - } + export type AsObject = { + settlementPriceProperty: string, + tradingTerminationProperty: string, + } } export class InstrumentMetadata extends jspb.Message { - clearTagsList(): void; - getTagsList(): Array; - setTagsList(value: Array): void; - addTags(value: string, index?: number): string; + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): InstrumentMetadata; + addTags(value: string, index?: number): string; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InstrumentMetadata.AsObject; - static toObject(includeInstance: boolean, msg: InstrumentMetadata): InstrumentMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InstrumentMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InstrumentMetadata; - static deserializeBinaryFromReader(message: InstrumentMetadata, reader: jspb.BinaryReader): InstrumentMetadata; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InstrumentMetadata.AsObject; + static toObject(includeInstance: boolean, msg: InstrumentMetadata): InstrumentMetadata.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InstrumentMetadata, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InstrumentMetadata; + static deserializeBinaryFromReader(message: InstrumentMetadata, reader: jspb.BinaryReader): InstrumentMetadata; } export namespace InstrumentMetadata { - export type AsObject = { - tagsList: Array, - } + export type AsObject = { + tagsList: Array, + } } export class Instrument extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCode(): string; - setCode(value: string): void; - - getName(): string; - setName(value: string): void; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): InstrumentMetadata | undefined; - setMetadata(value?: InstrumentMetadata): void; - - hasFuture(): boolean; - clearFuture(): void; - getFuture(): Future | undefined; - setFuture(value?: Future): void; - - getProductCase(): Instrument.ProductCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Instrument.AsObject; - static toObject(includeInstance: boolean, msg: Instrument): Instrument.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Instrument, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Instrument; - static deserializeBinaryFromReader(message: Instrument, reader: jspb.BinaryReader): Instrument; + getId(): string; + setId(value: string): Instrument; + getCode(): string; + setCode(value: string): Instrument; + getName(): string; + setName(value: string): Instrument; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): InstrumentMetadata | undefined; + setMetadata(value?: InstrumentMetadata): Instrument; + + hasFuture(): boolean; + clearFuture(): void; + getFuture(): Future | undefined; + setFuture(value?: Future): Instrument; + + getProductCase(): Instrument.ProductCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Instrument.AsObject; + static toObject(includeInstance: boolean, msg: Instrument): Instrument.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Instrument, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Instrument; + static deserializeBinaryFromReader(message: Instrument, reader: jspb.BinaryReader): Instrument; } export namespace Instrument { - export type AsObject = { - id: string, - code: string, - name: string, - metadata?: InstrumentMetadata.AsObject, - future?: Future.AsObject, - } + export type AsObject = { + id: string, + code: string, + name: string, + metadata?: InstrumentMetadata.AsObject, + future?: Future.AsObject, + } + + export enum ProductCase { + PRODUCT_NOT_SET = 0, + FUTURE = 100, + } - export enum ProductCase { - PRODUCT_NOT_SET = 0, - FUTURE = 100, - } } export class LogNormalRiskModel extends jspb.Message { - getRiskAversionParameter(): number; - setRiskAversionParameter(value: number): void; - - getTau(): number; - setTau(value: number): void; - - hasParams(): boolean; - clearParams(): void; - getParams(): LogNormalModelParams | undefined; - setParams(value?: LogNormalModelParams): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogNormalRiskModel.AsObject; - static toObject(includeInstance: boolean, msg: LogNormalRiskModel): LogNormalRiskModel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogNormalRiskModel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogNormalRiskModel; - static deserializeBinaryFromReader(message: LogNormalRiskModel, reader: jspb.BinaryReader): LogNormalRiskModel; + getRiskAversionParameter(): number; + setRiskAversionParameter(value: number): LogNormalRiskModel; + getTau(): number; + setTau(value: number): LogNormalRiskModel; + + hasParams(): boolean; + clearParams(): void; + getParams(): LogNormalModelParams | undefined; + setParams(value?: LogNormalModelParams): LogNormalRiskModel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LogNormalRiskModel.AsObject; + static toObject(includeInstance: boolean, msg: LogNormalRiskModel): LogNormalRiskModel.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LogNormalRiskModel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LogNormalRiskModel; + static deserializeBinaryFromReader(message: LogNormalRiskModel, reader: jspb.BinaryReader): LogNormalRiskModel; } export namespace LogNormalRiskModel { - export type AsObject = { - riskAversionParameter: number, - tau: number, - params?: LogNormalModelParams.AsObject, - } + export type AsObject = { + riskAversionParameter: number, + tau: number, + params?: LogNormalModelParams.AsObject, + } } export class LogNormalModelParams extends jspb.Message { - getMu(): number; - setMu(value: number): void; - - getR(): number; - setR(value: number): void; - - getSigma(): number; - setSigma(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogNormalModelParams.AsObject; - static toObject(includeInstance: boolean, msg: LogNormalModelParams): LogNormalModelParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogNormalModelParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogNormalModelParams; - static deserializeBinaryFromReader(message: LogNormalModelParams, reader: jspb.BinaryReader): LogNormalModelParams; + getMu(): number; + setMu(value: number): LogNormalModelParams; + getR(): number; + setR(value: number): LogNormalModelParams; + getSigma(): number; + setSigma(value: number): LogNormalModelParams; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LogNormalModelParams.AsObject; + static toObject(includeInstance: boolean, msg: LogNormalModelParams): LogNormalModelParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LogNormalModelParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LogNormalModelParams; + static deserializeBinaryFromReader(message: LogNormalModelParams, reader: jspb.BinaryReader): LogNormalModelParams; } export namespace LogNormalModelParams { - export type AsObject = { - mu: number, - r: number, - sigma: number, - } + export type AsObject = { + mu: number, + r: number, + sigma: number, + } } export class SimpleRiskModel extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): SimpleModelParams | undefined; - setParams(value?: SimpleModelParams): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SimpleRiskModel.AsObject; - static toObject(includeInstance: boolean, msg: SimpleRiskModel): SimpleRiskModel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SimpleRiskModel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SimpleRiskModel; - static deserializeBinaryFromReader(message: SimpleRiskModel, reader: jspb.BinaryReader): SimpleRiskModel; + hasParams(): boolean; + clearParams(): void; + getParams(): SimpleModelParams | undefined; + setParams(value?: SimpleModelParams): SimpleRiskModel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SimpleRiskModel.AsObject; + static toObject(includeInstance: boolean, msg: SimpleRiskModel): SimpleRiskModel.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SimpleRiskModel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SimpleRiskModel; + static deserializeBinaryFromReader(message: SimpleRiskModel, reader: jspb.BinaryReader): SimpleRiskModel; } export namespace SimpleRiskModel { - export type AsObject = { - params?: SimpleModelParams.AsObject, - } + export type AsObject = { + params?: SimpleModelParams.AsObject, + } } export class SimpleModelParams extends jspb.Message { - getFactorLong(): number; - setFactorLong(value: number): void; - - getFactorShort(): number; - setFactorShort(value: number): void; - - getMaxMoveUp(): number; - setMaxMoveUp(value: number): void; - - getMinMoveDown(): number; - setMinMoveDown(value: number): void; - - getProbabilityOfTrading(): number; - setProbabilityOfTrading(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SimpleModelParams.AsObject; - static toObject(includeInstance: boolean, msg: SimpleModelParams): SimpleModelParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SimpleModelParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SimpleModelParams; - static deserializeBinaryFromReader(message: SimpleModelParams, reader: jspb.BinaryReader): SimpleModelParams; + getFactorLong(): number; + setFactorLong(value: number): SimpleModelParams; + getFactorShort(): number; + setFactorShort(value: number): SimpleModelParams; + getMaxMoveUp(): number; + setMaxMoveUp(value: number): SimpleModelParams; + getMinMoveDown(): number; + setMinMoveDown(value: number): SimpleModelParams; + getProbabilityOfTrading(): number; + setProbabilityOfTrading(value: number): SimpleModelParams; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SimpleModelParams.AsObject; + static toObject(includeInstance: boolean, msg: SimpleModelParams): SimpleModelParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SimpleModelParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SimpleModelParams; + static deserializeBinaryFromReader(message: SimpleModelParams, reader: jspb.BinaryReader): SimpleModelParams; } export namespace SimpleModelParams { - export type AsObject = { - factorLong: number, - factorShort: number, - maxMoveUp: number, - minMoveDown: number, - probabilityOfTrading: number, - } + export type AsObject = { + factorLong: number, + factorShort: number, + maxMoveUp: number, + minMoveDown: number, + probabilityOfTrading: number, + } } export class ScalingFactors extends jspb.Message { - getSearchLevel(): number; - setSearchLevel(value: number): void; - - getInitialMargin(): number; - setInitialMargin(value: number): void; - - getCollateralRelease(): number; - setCollateralRelease(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ScalingFactors.AsObject; - static toObject(includeInstance: boolean, msg: ScalingFactors): ScalingFactors.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ScalingFactors, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ScalingFactors; - static deserializeBinaryFromReader(message: ScalingFactors, reader: jspb.BinaryReader): ScalingFactors; + getSearchLevel(): number; + setSearchLevel(value: number): ScalingFactors; + getInitialMargin(): number; + setInitialMargin(value: number): ScalingFactors; + getCollateralRelease(): number; + setCollateralRelease(value: number): ScalingFactors; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScalingFactors.AsObject; + static toObject(includeInstance: boolean, msg: ScalingFactors): ScalingFactors.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScalingFactors, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScalingFactors; + static deserializeBinaryFromReader(message: ScalingFactors, reader: jspb.BinaryReader): ScalingFactors; } export namespace ScalingFactors { - export type AsObject = { - searchLevel: number, - initialMargin: number, - collateralRelease: number, - } + export type AsObject = { + searchLevel: number, + initialMargin: number, + collateralRelease: number, + } } export class MarginCalculator extends jspb.Message { - hasScalingFactors(): boolean; - clearScalingFactors(): void; - getScalingFactors(): ScalingFactors | undefined; - setScalingFactors(value?: ScalingFactors): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginCalculator.AsObject; - static toObject(includeInstance: boolean, msg: MarginCalculator): MarginCalculator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginCalculator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginCalculator; - static deserializeBinaryFromReader(message: MarginCalculator, reader: jspb.BinaryReader): MarginCalculator; + hasScalingFactors(): boolean; + clearScalingFactors(): void; + getScalingFactors(): ScalingFactors | undefined; + setScalingFactors(value?: ScalingFactors): MarginCalculator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarginCalculator.AsObject; + static toObject(includeInstance: boolean, msg: MarginCalculator): MarginCalculator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarginCalculator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarginCalculator; + static deserializeBinaryFromReader(message: MarginCalculator, reader: jspb.BinaryReader): MarginCalculator; } export namespace MarginCalculator { - export type AsObject = { - scalingFactors?: ScalingFactors.AsObject, - } + export type AsObject = { + scalingFactors?: ScalingFactors.AsObject, + } } export class TradableInstrument extends jspb.Message { - hasInstrument(): boolean; - clearInstrument(): void; - getInstrument(): Instrument | undefined; - setInstrument(value?: Instrument): void; - - hasMarginCalculator(): boolean; - clearMarginCalculator(): void; - getMarginCalculator(): MarginCalculator | undefined; - setMarginCalculator(value?: MarginCalculator): void; - - hasLogNormalRiskModel(): boolean; - clearLogNormalRiskModel(): void; - getLogNormalRiskModel(): LogNormalRiskModel | undefined; - setLogNormalRiskModel(value?: LogNormalRiskModel): void; - - hasSimpleRiskModel(): boolean; - clearSimpleRiskModel(): void; - getSimpleRiskModel(): SimpleRiskModel | undefined; - setSimpleRiskModel(value?: SimpleRiskModel): void; - - getRiskModelCase(): TradableInstrument.RiskModelCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradableInstrument.AsObject; - static toObject(includeInstance: boolean, msg: TradableInstrument): TradableInstrument.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradableInstrument, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradableInstrument; - static deserializeBinaryFromReader(message: TradableInstrument, reader: jspb.BinaryReader): TradableInstrument; -} -export namespace TradableInstrument { - export type AsObject = { - instrument?: Instrument.AsObject, - marginCalculator?: MarginCalculator.AsObject, - logNormalRiskModel?: LogNormalRiskModel.AsObject, - simpleRiskModel?: SimpleRiskModel.AsObject, - } + hasInstrument(): boolean; + clearInstrument(): void; + getInstrument(): Instrument | undefined; + setInstrument(value?: Instrument): TradableInstrument; + + hasMarginCalculator(): boolean; + clearMarginCalculator(): void; + getMarginCalculator(): MarginCalculator | undefined; + setMarginCalculator(value?: MarginCalculator): TradableInstrument; - export enum RiskModelCase { - RISK_MODEL_NOT_SET = 0, - LOG_NORMAL_RISK_MODEL = 100, - SIMPLE_RISK_MODEL = 101, - } + hasLogNormalRiskModel(): boolean; + clearLogNormalRiskModel(): void; + getLogNormalRiskModel(): LogNormalRiskModel | undefined; + setLogNormalRiskModel(value?: LogNormalRiskModel): TradableInstrument; + + hasSimpleRiskModel(): boolean; + clearSimpleRiskModel(): void; + getSimpleRiskModel(): SimpleRiskModel | undefined; + setSimpleRiskModel(value?: SimpleRiskModel): TradableInstrument; + + getRiskModelCase(): TradableInstrument.RiskModelCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradableInstrument.AsObject; + static toObject(includeInstance: boolean, msg: TradableInstrument): TradableInstrument.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TradableInstrument, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradableInstrument; + static deserializeBinaryFromReader(message: TradableInstrument, reader: jspb.BinaryReader): TradableInstrument; } -export class FeeFactors extends jspb.Message { - getMakerFee(): string; - setMakerFee(value: string): void; +export namespace TradableInstrument { + export type AsObject = { + instrument?: Instrument.AsObject, + marginCalculator?: MarginCalculator.AsObject, + logNormalRiskModel?: LogNormalRiskModel.AsObject, + simpleRiskModel?: SimpleRiskModel.AsObject, + } - getInfrastructureFee(): string; - setInfrastructureFee(value: string): void; + export enum RiskModelCase { + RISK_MODEL_NOT_SET = 0, + LOG_NORMAL_RISK_MODEL = 100, + SIMPLE_RISK_MODEL = 101, + } - getLiquidityFee(): string; - setLiquidityFee(value: string): void; +} - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FeeFactors.AsObject; - static toObject(includeInstance: boolean, msg: FeeFactors): FeeFactors.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FeeFactors, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FeeFactors; - static deserializeBinaryFromReader(message: FeeFactors, reader: jspb.BinaryReader): FeeFactors; +export class FeeFactors extends jspb.Message { + getMakerFee(): string; + setMakerFee(value: string): FeeFactors; + getInfrastructureFee(): string; + setInfrastructureFee(value: string): FeeFactors; + getLiquidityFee(): string; + setLiquidityFee(value: string): FeeFactors; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FeeFactors.AsObject; + static toObject(includeInstance: boolean, msg: FeeFactors): FeeFactors.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FeeFactors, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FeeFactors; + static deserializeBinaryFromReader(message: FeeFactors, reader: jspb.BinaryReader): FeeFactors; } export namespace FeeFactors { - export type AsObject = { - makerFee: string, - infrastructureFee: string, - liquidityFee: string, - } + export type AsObject = { + makerFee: string, + infrastructureFee: string, + liquidityFee: string, + } } export class Fees extends jspb.Message { - hasFactors(): boolean; - clearFactors(): void; - getFactors(): FeeFactors | undefined; - setFactors(value?: FeeFactors): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Fees.AsObject; - static toObject(includeInstance: boolean, msg: Fees): Fees.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Fees, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Fees; - static deserializeBinaryFromReader(message: Fees, reader: jspb.BinaryReader): Fees; + hasFactors(): boolean; + clearFactors(): void; + getFactors(): FeeFactors | undefined; + setFactors(value?: FeeFactors): Fees; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Fees.AsObject; + static toObject(includeInstance: boolean, msg: Fees): Fees.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Fees, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Fees; + static deserializeBinaryFromReader(message: Fees, reader: jspb.BinaryReader): Fees; } export namespace Fees { - export type AsObject = { - factors?: FeeFactors.AsObject, - } + export type AsObject = { + factors?: FeeFactors.AsObject, + } } export class PriceMonitoringTrigger extends jspb.Message { - getHorizon(): number; - setHorizon(value: number): void; - - getProbability(): number; - setProbability(value: number): void; - - getAuctionExtension(): number; - setAuctionExtension(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceMonitoringTrigger.AsObject; - static toObject(includeInstance: boolean, msg: PriceMonitoringTrigger): PriceMonitoringTrigger.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceMonitoringTrigger, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceMonitoringTrigger; - static deserializeBinaryFromReader(message: PriceMonitoringTrigger, reader: jspb.BinaryReader): PriceMonitoringTrigger; + getHorizon(): number; + setHorizon(value: number): PriceMonitoringTrigger; + getProbability(): number; + setProbability(value: number): PriceMonitoringTrigger; + getAuctionExtension(): number; + setAuctionExtension(value: number): PriceMonitoringTrigger; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceMonitoringTrigger.AsObject; + static toObject(includeInstance: boolean, msg: PriceMonitoringTrigger): PriceMonitoringTrigger.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceMonitoringTrigger, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceMonitoringTrigger; + static deserializeBinaryFromReader(message: PriceMonitoringTrigger, reader: jspb.BinaryReader): PriceMonitoringTrigger; } export namespace PriceMonitoringTrigger { - export type AsObject = { - horizon: number, - probability: number, - auctionExtension: number, - } + export type AsObject = { + horizon: number, + probability: number, + auctionExtension: number, + } } export class PriceMonitoringParameters extends jspb.Message { - clearTriggersList(): void; - getTriggersList(): Array; - setTriggersList(value: Array): void; - addTriggers(value?: PriceMonitoringTrigger, index?: number): PriceMonitoringTrigger; + clearTriggersList(): void; + getTriggersList(): Array; + setTriggersList(value: Array): PriceMonitoringParameters; + addTriggers(value?: PriceMonitoringTrigger, index?: number): PriceMonitoringTrigger; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceMonitoringParameters.AsObject; - static toObject(includeInstance: boolean, msg: PriceMonitoringParameters): PriceMonitoringParameters.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceMonitoringParameters, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceMonitoringParameters; - static deserializeBinaryFromReader(message: PriceMonitoringParameters, reader: jspb.BinaryReader): PriceMonitoringParameters; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceMonitoringParameters.AsObject; + static toObject(includeInstance: boolean, msg: PriceMonitoringParameters): PriceMonitoringParameters.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceMonitoringParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceMonitoringParameters; + static deserializeBinaryFromReader(message: PriceMonitoringParameters, reader: jspb.BinaryReader): PriceMonitoringParameters; } export namespace PriceMonitoringParameters { - export type AsObject = { - triggersList: Array, - } + export type AsObject = { + triggersList: Array, + } } export class PriceMonitoringSettings extends jspb.Message { - hasParameters(): boolean; - clearParameters(): void; - getParameters(): PriceMonitoringParameters | undefined; - setParameters(value?: PriceMonitoringParameters): void; - getUpdateFrequency(): number; - setUpdateFrequency(value: number): void; + hasParameters(): boolean; + clearParameters(): void; + getParameters(): PriceMonitoringParameters | undefined; + setParameters(value?: PriceMonitoringParameters): PriceMonitoringSettings; + getUpdateFrequency(): number; + setUpdateFrequency(value: number): PriceMonitoringSettings; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceMonitoringSettings.AsObject; - static toObject(includeInstance: boolean, msg: PriceMonitoringSettings): PriceMonitoringSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceMonitoringSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceMonitoringSettings; - static deserializeBinaryFromReader(message: PriceMonitoringSettings, reader: jspb.BinaryReader): PriceMonitoringSettings; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceMonitoringSettings.AsObject; + static toObject(includeInstance: boolean, msg: PriceMonitoringSettings): PriceMonitoringSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceMonitoringSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceMonitoringSettings; + static deserializeBinaryFromReader(message: PriceMonitoringSettings, reader: jspb.BinaryReader): PriceMonitoringSettings; } export namespace PriceMonitoringSettings { - export type AsObject = { - parameters?: PriceMonitoringParameters.AsObject, - updateFrequency: number, - } + export type AsObject = { + parameters?: PriceMonitoringParameters.AsObject, + updateFrequency: number, + } } export class LiquidityMonitoringParameters extends jspb.Message { - hasTargetStakeParameters(): boolean; - clearTargetStakeParameters(): void; - getTargetStakeParameters(): TargetStakeParameters | undefined; - setTargetStakeParameters(value?: TargetStakeParameters): void; - getTriggeringRatio(): number; - setTriggeringRatio(value: number): void; - - getAuctionExtension(): number; - setAuctionExtension(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityMonitoringParameters.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityMonitoringParameters): LiquidityMonitoringParameters.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityMonitoringParameters, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityMonitoringParameters; - static deserializeBinaryFromReader(message: LiquidityMonitoringParameters, reader: jspb.BinaryReader): LiquidityMonitoringParameters; + hasTargetStakeParameters(): boolean; + clearTargetStakeParameters(): void; + getTargetStakeParameters(): TargetStakeParameters | undefined; + setTargetStakeParameters(value?: TargetStakeParameters): LiquidityMonitoringParameters; + getTriggeringRatio(): number; + setTriggeringRatio(value: number): LiquidityMonitoringParameters; + getAuctionExtension(): number; + setAuctionExtension(value: number): LiquidityMonitoringParameters; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityMonitoringParameters.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityMonitoringParameters): LiquidityMonitoringParameters.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityMonitoringParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityMonitoringParameters; + static deserializeBinaryFromReader(message: LiquidityMonitoringParameters, reader: jspb.BinaryReader): LiquidityMonitoringParameters; } export namespace LiquidityMonitoringParameters { - export type AsObject = { - targetStakeParameters?: TargetStakeParameters.AsObject, - triggeringRatio: number, - auctionExtension: number, - } + export type AsObject = { + targetStakeParameters?: TargetStakeParameters.AsObject, + triggeringRatio: number, + auctionExtension: number, + } } export class TargetStakeParameters extends jspb.Message { - getTimeWindow(): number; - setTimeWindow(value: number): void; - - getScalingFactor(): number; - setScalingFactor(value: number): void; + getTimeWindow(): number; + setTimeWindow(value: number): TargetStakeParameters; + getScalingFactor(): number; + setScalingFactor(value: number): TargetStakeParameters; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TargetStakeParameters.AsObject; - static toObject(includeInstance: boolean, msg: TargetStakeParameters): TargetStakeParameters.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TargetStakeParameters, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TargetStakeParameters; - static deserializeBinaryFromReader(message: TargetStakeParameters, reader: jspb.BinaryReader): TargetStakeParameters; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TargetStakeParameters.AsObject; + static toObject(includeInstance: boolean, msg: TargetStakeParameters): TargetStakeParameters.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TargetStakeParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TargetStakeParameters; + static deserializeBinaryFromReader(message: TargetStakeParameters, reader: jspb.BinaryReader): TargetStakeParameters; } export namespace TargetStakeParameters { - export type AsObject = { - timeWindow: number, - scalingFactor: number, - } + export type AsObject = { + timeWindow: number, + scalingFactor: number, + } } export class Market extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasTradableInstrument(): boolean; - clearTradableInstrument(): void; - getTradableInstrument(): TradableInstrument | undefined; - setTradableInstrument(value?: TradableInstrument): void; - - getDecimalPlaces(): number; - setDecimalPlaces(value: number): void; - - hasFees(): boolean; - clearFees(): void; - getFees(): Fees | undefined; - setFees(value?: Fees): void; - - hasOpeningAuction(): boolean; - clearOpeningAuction(): void; - getOpeningAuction(): AuctionDuration | undefined; - setOpeningAuction(value?: AuctionDuration): void; - - hasContinuous(): boolean; - clearContinuous(): void; - getContinuous(): ContinuousTrading | undefined; - setContinuous(value?: ContinuousTrading): void; - - hasDiscrete(): boolean; - clearDiscrete(): void; - getDiscrete(): DiscreteTrading | undefined; - setDiscrete(value?: DiscreteTrading): void; - - hasPriceMonitoringSettings(): boolean; - clearPriceMonitoringSettings(): void; - getPriceMonitoringSettings(): PriceMonitoringSettings | undefined; - setPriceMonitoringSettings(value?: PriceMonitoringSettings): void; - - hasLiquidityMonitoringParameters(): boolean; - clearLiquidityMonitoringParameters(): void; - getLiquidityMonitoringParameters(): LiquidityMonitoringParameters | undefined; - setLiquidityMonitoringParameters(value?: LiquidityMonitoringParameters): void; - - getTradingMode(): Market.TradingModeMap[keyof Market.TradingModeMap]; - setTradingMode(value: Market.TradingModeMap[keyof Market.TradingModeMap]): void; - - getState(): Market.StateMap[keyof Market.StateMap]; - setState(value: Market.StateMap[keyof Market.StateMap]): void; - - hasMarketTimestamps(): boolean; - clearMarketTimestamps(): void; - getMarketTimestamps(): MarketTimestamps | undefined; - setMarketTimestamps(value?: MarketTimestamps): void; - - getTradingModeConfigCase(): Market.TradingModeConfigCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Market.AsObject; - static toObject(includeInstance: boolean, msg: Market): Market.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Market, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Market; - static deserializeBinaryFromReader(message: Market, reader: jspb.BinaryReader): Market; + getId(): string; + setId(value: string): Market; + + hasTradableInstrument(): boolean; + clearTradableInstrument(): void; + getTradableInstrument(): TradableInstrument | undefined; + setTradableInstrument(value?: TradableInstrument): Market; + getDecimalPlaces(): number; + setDecimalPlaces(value: number): Market; + + hasFees(): boolean; + clearFees(): void; + getFees(): Fees | undefined; + setFees(value?: Fees): Market; + + hasOpeningAuction(): boolean; + clearOpeningAuction(): void; + getOpeningAuction(): AuctionDuration | undefined; + setOpeningAuction(value?: AuctionDuration): Market; + + hasContinuous(): boolean; + clearContinuous(): void; + getContinuous(): ContinuousTrading | undefined; + setContinuous(value?: ContinuousTrading): Market; + + hasDiscrete(): boolean; + clearDiscrete(): void; + getDiscrete(): DiscreteTrading | undefined; + setDiscrete(value?: DiscreteTrading): Market; + + hasPriceMonitoringSettings(): boolean; + clearPriceMonitoringSettings(): void; + getPriceMonitoringSettings(): PriceMonitoringSettings | undefined; + setPriceMonitoringSettings(value?: PriceMonitoringSettings): Market; + + hasLiquidityMonitoringParameters(): boolean; + clearLiquidityMonitoringParameters(): void; + getLiquidityMonitoringParameters(): LiquidityMonitoringParameters | undefined; + setLiquidityMonitoringParameters(value?: LiquidityMonitoringParameters): Market; + getTradingMode(): Market.TradingMode; + setTradingMode(value: Market.TradingMode): Market; + getState(): Market.State; + setState(value: Market.State): Market; + + hasMarketTimestamps(): boolean; + clearMarketTimestamps(): void; + getMarketTimestamps(): MarketTimestamps | undefined; + setMarketTimestamps(value?: MarketTimestamps): Market; + + getTradingModeConfigCase(): Market.TradingModeConfigCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Market.AsObject; + static toObject(includeInstance: boolean, msg: Market): Market.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Market, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Market; + static deserializeBinaryFromReader(message: Market, reader: jspb.BinaryReader): Market; } export namespace Market { - export type AsObject = { - id: string, - tradableInstrument?: TradableInstrument.AsObject, - decimalPlaces: number, - fees?: Fees.AsObject, - openingAuction?: AuctionDuration.AsObject, - continuous?: ContinuousTrading.AsObject, - discrete?: DiscreteTrading.AsObject, - priceMonitoringSettings?: PriceMonitoringSettings.AsObject, - liquidityMonitoringParameters?: LiquidityMonitoringParameters.AsObject, - tradingMode: Market.TradingModeMap[keyof Market.TradingModeMap], - state: Market.StateMap[keyof Market.StateMap], - marketTimestamps?: MarketTimestamps.AsObject, - } - - export interface StateMap { - STATE_UNSPECIFIED: 0; - STATE_PROPOSED: 1; - STATE_REJECTED: 2; - STATE_PENDING: 3; - STATE_CANCELLED: 4; - STATE_ACTIVE: 5; - STATE_SUSPENDED: 6; - STATE_CLOSED: 7; - STATE_TRADING_TERMINATED: 8; - STATE_SETTLED: 9; - } - - export const State: StateMap; - - export interface TradingModeMap { - TRADING_MODE_UNSPECIFIED: 0; - TRADING_MODE_CONTINUOUS: 1; - TRADING_MODE_BATCH_AUCTION: 2; - TRADING_MODE_OPENING_AUCTION: 3; - TRADING_MODE_MONITORING_AUCTION: 4; - } - - export const TradingMode: TradingModeMap; - - export enum TradingModeConfigCase { - TRADING_MODE_CONFIG_NOT_SET = 0, - CONTINUOUS = 100, - DISCRETE = 101, - } + export type AsObject = { + id: string, + tradableInstrument?: TradableInstrument.AsObject, + decimalPlaces: number, + fees?: Fees.AsObject, + openingAuction?: AuctionDuration.AsObject, + continuous?: ContinuousTrading.AsObject, + discrete?: DiscreteTrading.AsObject, + priceMonitoringSettings?: PriceMonitoringSettings.AsObject, + liquidityMonitoringParameters?: LiquidityMonitoringParameters.AsObject, + tradingMode: Market.TradingMode, + state: Market.State, + marketTimestamps?: MarketTimestamps.AsObject, + } + + export enum State { + STATE_UNSPECIFIED = 0, + STATE_PROPOSED = 1, + STATE_REJECTED = 2, + STATE_PENDING = 3, + STATE_CANCELLED = 4, + STATE_ACTIVE = 5, + STATE_SUSPENDED = 6, + STATE_CLOSED = 7, + STATE_TRADING_TERMINATED = 8, + STATE_SETTLED = 9, + } + + export enum TradingMode { + TRADING_MODE_UNSPECIFIED = 0, + TRADING_MODE_CONTINUOUS = 1, + TRADING_MODE_BATCH_AUCTION = 2, + TRADING_MODE_OPENING_AUCTION = 3, + TRADING_MODE_MONITORING_AUCTION = 4, + } + + + export enum TradingModeConfigCase { + TRADING_MODE_CONFIG_NOT_SET = 0, + CONTINUOUS = 100, + DISCRETE = 101, + } + } export class MarketTimestamps extends jspb.Message { - getProposed(): number; - setProposed(value: number): void; - - getPending(): number; - setPending(value: number): void; - - getOpen(): number; - setOpen(value: number): void; - - getClose(): number; - setClose(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketTimestamps.AsObject; - static toObject(includeInstance: boolean, msg: MarketTimestamps): MarketTimestamps.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketTimestamps, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketTimestamps; - static deserializeBinaryFromReader(message: MarketTimestamps, reader: jspb.BinaryReader): MarketTimestamps; + getProposed(): number; + setProposed(value: number): MarketTimestamps; + getPending(): number; + setPending(value: number): MarketTimestamps; + getOpen(): number; + setOpen(value: number): MarketTimestamps; + getClose(): number; + setClose(value: number): MarketTimestamps; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketTimestamps.AsObject; + static toObject(includeInstance: boolean, msg: MarketTimestamps): MarketTimestamps.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketTimestamps, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketTimestamps; + static deserializeBinaryFromReader(message: MarketTimestamps, reader: jspb.BinaryReader): MarketTimestamps; } export namespace MarketTimestamps { - export type AsObject = { - proposed: number, - pending: number, - open: number, - close: number, - } + export type AsObject = { + proposed: number, + pending: number, + open: number, + close: number, + } } - diff --git a/grpc/clients/js/generated/markets_pb_service.d.ts b/grpc/clients/js/generated/markets_pb_service.d.ts deleted file mode 100644 index c5cf283e..00000000 --- a/grpc/clients/js/generated/markets_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: markets.proto - diff --git a/grpc/clients/js/generated/markets_pb_service.js b/grpc/clients/js/generated/markets_pb_service.js deleted file mode 100644 index c5cf283e..00000000 --- a/grpc/clients/js/generated/markets_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: markets.proto - diff --git a/grpc/clients/js/generated/oracles/v1/data_grpc_pb.d.ts b/grpc/clients/js/generated/oracles/v1/data_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/oracles/v1/data_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/oracles/v1/data_grpc_pb.js b/grpc/clients/js/generated/oracles/v1/data_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/oracles/v1/data_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/oracles/v1/data_pb.d.ts b/grpc/clients/js/generated/oracles/v1/data_pb.d.ts index a9842313..50025135 100644 --- a/grpc/clients/js/generated/oracles/v1/data_pb.d.ts +++ b/grpc/clients/js/generated/oracles/v1/data_pb.d.ts @@ -1,67 +1,65 @@ // package: oracles.v1 // file: oracles/v1/data.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class OracleData extends jspb.Message { - clearPubKeysList(): void; - getPubKeysList(): Array; - setPubKeysList(value: Array): void; - addPubKeys(value: string, index?: number): string; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: Property, index?: number): Property; - - clearMatchedSpecIdsList(): void; - getMatchedSpecIdsList(): Array; - setMatchedSpecIdsList(value: Array): void; - addMatchedSpecIds(value: string, index?: number): string; + clearPubKeysList(): void; + getPubKeysList(): Array; + setPubKeysList(value: Array): OracleData; + addPubKeys(value: string, index?: number): string; + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): OracleData; + addData(value?: Property, index?: number): Property; + clearMatchedSpecIdsList(): void; + getMatchedSpecIdsList(): Array; + setMatchedSpecIdsList(value: Array): OracleData; + addMatchedSpecIds(value: string, index?: number): string; + getBroadcastAt(): number; + setBroadcastAt(value: number): OracleData; - getBroadcastAt(): number; - setBroadcastAt(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleData.AsObject; - static toObject(includeInstance: boolean, msg: OracleData): OracleData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleData; - static deserializeBinaryFromReader(message: OracleData, reader: jspb.BinaryReader): OracleData; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OracleData.AsObject; + static toObject(includeInstance: boolean, msg: OracleData): OracleData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OracleData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OracleData; + static deserializeBinaryFromReader(message: OracleData, reader: jspb.BinaryReader): OracleData; } export namespace OracleData { - export type AsObject = { - pubKeysList: Array, - dataList: Array, - matchedSpecIdsList: Array, - broadcastAt: number, - } + export type AsObject = { + pubKeysList: Array, + dataList: Array, + matchedSpecIdsList: Array, + broadcastAt: number, + } } export class Property extends jspb.Message { - getName(): string; - setName(value: string): void; - - getValue(): string; - setValue(value: string): void; + getName(): string; + setName(value: string): Property; + getValue(): string; + setValue(value: string): Property; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Property.AsObject; - static toObject(includeInstance: boolean, msg: Property): Property.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Property, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Property; - static deserializeBinaryFromReader(message: Property, reader: jspb.BinaryReader): Property; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Property.AsObject; + static toObject(includeInstance: boolean, msg: Property): Property.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Property, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Property; + static deserializeBinaryFromReader(message: Property, reader: jspb.BinaryReader): Property; } export namespace Property { - export type AsObject = { - name: string, - value: string, - } + export type AsObject = { + name: string, + value: string, + } } - diff --git a/grpc/clients/js/generated/oracles/v1/data_pb_service.d.ts b/grpc/clients/js/generated/oracles/v1/data_pb_service.d.ts deleted file mode 100644 index 03296af7..00000000 --- a/grpc/clients/js/generated/oracles/v1/data_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: oracles.v1 -// file: oracles/v1/data.proto - diff --git a/grpc/clients/js/generated/oracles/v1/data_pb_service.js b/grpc/clients/js/generated/oracles/v1/data_pb_service.js deleted file mode 100644 index 03296af7..00000000 --- a/grpc/clients/js/generated/oracles/v1/data_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: oracles.v1 -// file: oracles/v1/data.proto - diff --git a/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.d.ts b/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.js b/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/oracles/v1/spec_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/oracles/v1/spec_pb.d.ts b/grpc/clients/js/generated/oracles/v1/spec_pb.d.ts index b288d746..30ef280c 100644 --- a/grpc/clients/js/generated/oracles/v1/spec_pb.d.ts +++ b/grpc/clients/js/generated/oracles/v1/spec_pb.d.ts @@ -1,184 +1,175 @@ // package: oracles.v1 // file: oracles/v1/spec.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class OracleSpecConfiguration extends jspb.Message { - clearPubKeysList(): void; - getPubKeysList(): Array; - setPubKeysList(value: Array): void; - addPubKeys(value: string, index?: number): string; - - clearFiltersList(): void; - getFiltersList(): Array; - setFiltersList(value: Array): void; - addFilters(value?: Filter, index?: number): Filter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpecConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpecConfiguration): OracleSpecConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpecConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpecConfiguration; - static deserializeBinaryFromReader(message: OracleSpecConfiguration, reader: jspb.BinaryReader): OracleSpecConfiguration; + clearPubKeysList(): void; + getPubKeysList(): Array; + setPubKeysList(value: Array): OracleSpecConfiguration; + addPubKeys(value: string, index?: number): string; + clearFiltersList(): void; + getFiltersList(): Array; + setFiltersList(value: Array): OracleSpecConfiguration; + addFilters(value?: Filter, index?: number): Filter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OracleSpecConfiguration.AsObject; + static toObject(includeInstance: boolean, msg: OracleSpecConfiguration): OracleSpecConfiguration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OracleSpecConfiguration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OracleSpecConfiguration; + static deserializeBinaryFromReader(message: OracleSpecConfiguration, reader: jspb.BinaryReader): OracleSpecConfiguration; } export namespace OracleSpecConfiguration { - export type AsObject = { - pubKeysList: Array, - filtersList: Array, - } + export type AsObject = { + pubKeysList: Array, + filtersList: Array, + } } export class OracleSpec extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCreatedAt(): number; - setCreatedAt(value: number): void; - - getUpdatedAt(): number; - setUpdatedAt(value: number): void; - - clearPubKeysList(): void; - getPubKeysList(): Array; - setPubKeysList(value: Array): void; - addPubKeys(value: string, index?: number): string; - - clearFiltersList(): void; - getFiltersList(): Array; - setFiltersList(value: Array): void; - addFilters(value?: Filter, index?: number): Filter; - - getStatus(): OracleSpec.StatusMap[keyof OracleSpec.StatusMap]; - setStatus(value: OracleSpec.StatusMap[keyof OracleSpec.StatusMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleSpec.AsObject; - static toObject(includeInstance: boolean, msg: OracleSpec): OracleSpec.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleSpec, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleSpec; - static deserializeBinaryFromReader(message: OracleSpec, reader: jspb.BinaryReader): OracleSpec; + getId(): string; + setId(value: string): OracleSpec; + getCreatedAt(): number; + setCreatedAt(value: number): OracleSpec; + getUpdatedAt(): number; + setUpdatedAt(value: number): OracleSpec; + clearPubKeysList(): void; + getPubKeysList(): Array; + setPubKeysList(value: Array): OracleSpec; + addPubKeys(value: string, index?: number): string; + clearFiltersList(): void; + getFiltersList(): Array; + setFiltersList(value: Array): OracleSpec; + addFilters(value?: Filter, index?: number): Filter; + getStatus(): OracleSpec.Status; + setStatus(value: OracleSpec.Status): OracleSpec; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OracleSpec.AsObject; + static toObject(includeInstance: boolean, msg: OracleSpec): OracleSpec.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OracleSpec, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OracleSpec; + static deserializeBinaryFromReader(message: OracleSpec, reader: jspb.BinaryReader): OracleSpec; } export namespace OracleSpec { - export type AsObject = { - id: string, - createdAt: number, - updatedAt: number, - pubKeysList: Array, - filtersList: Array, - status: OracleSpec.StatusMap[keyof OracleSpec.StatusMap], - } - - export interface StatusMap { - STATUS_UNSPECIFIED: 0; - STATUS_ACTIVE: 1; - STATUS_DEACTIVATED: 2; - } - - export const Status: StatusMap; + export type AsObject = { + id: string, + createdAt: number, + updatedAt: number, + pubKeysList: Array, + filtersList: Array, + status: OracleSpec.Status, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_ACTIVE = 1, + STATUS_DEACTIVATED = 2, + } + } export class Filter extends jspb.Message { - hasKey(): boolean; - clearKey(): void; - getKey(): PropertyKey | undefined; - setKey(value?: PropertyKey): void; - - clearConditionsList(): void; - getConditionsList(): Array; - setConditionsList(value: Array): void; - addConditions(value?: Condition, index?: number): Condition; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Filter.AsObject; - static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Filter; - static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter; + + hasKey(): boolean; + clearKey(): void; + getKey(): PropertyKey | undefined; + setKey(value?: PropertyKey): Filter; + clearConditionsList(): void; + getConditionsList(): Array; + setConditionsList(value: Array): Filter; + addConditions(value?: Condition, index?: number): Condition; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Filter.AsObject; + static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Filter; + static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter; } export namespace Filter { - export type AsObject = { - key?: PropertyKey.AsObject, - conditionsList: Array, - } + export type AsObject = { + key?: PropertyKey.AsObject, + conditionsList: Array, + } } export class PropertyKey extends jspb.Message { - getName(): string; - setName(value: string): void; - - getType(): PropertyKey.TypeMap[keyof PropertyKey.TypeMap]; - setType(value: PropertyKey.TypeMap[keyof PropertyKey.TypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PropertyKey.AsObject; - static toObject(includeInstance: boolean, msg: PropertyKey): PropertyKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PropertyKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PropertyKey; - static deserializeBinaryFromReader(message: PropertyKey, reader: jspb.BinaryReader): PropertyKey; + getName(): string; + setName(value: string): PropertyKey; + getType(): PropertyKey.Type; + setType(value: PropertyKey.Type): PropertyKey; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PropertyKey.AsObject; + static toObject(includeInstance: boolean, msg: PropertyKey): PropertyKey.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PropertyKey, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PropertyKey; + static deserializeBinaryFromReader(message: PropertyKey, reader: jspb.BinaryReader): PropertyKey; } export namespace PropertyKey { - export type AsObject = { - name: string, - type: PropertyKey.TypeMap[keyof PropertyKey.TypeMap], - } - - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_EMPTY: 1; - TYPE_INTEGER: 2; - TYPE_STRING: 3; - TYPE_BOOLEAN: 4; - TYPE_DECIMAL: 5; - TYPE_TIMESTAMP: 6; - } - - export const Type: TypeMap; + export type AsObject = { + name: string, + type: PropertyKey.Type, + } + + export enum Type { + TYPE_UNSPECIFIED = 0, + TYPE_EMPTY = 1, + TYPE_INTEGER = 2, + TYPE_STRING = 3, + TYPE_BOOLEAN = 4, + TYPE_DECIMAL = 5, + TYPE_TIMESTAMP = 6, + } + } export class Condition extends jspb.Message { - getOperator(): Condition.OperatorMap[keyof Condition.OperatorMap]; - setOperator(value: Condition.OperatorMap[keyof Condition.OperatorMap]): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Condition.AsObject; - static toObject(includeInstance: boolean, msg: Condition): Condition.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Condition, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Condition; - static deserializeBinaryFromReader(message: Condition, reader: jspb.BinaryReader): Condition; + getOperator(): Condition.Operator; + setOperator(value: Condition.Operator): Condition; + getValue(): string; + setValue(value: string): Condition; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Condition.AsObject; + static toObject(includeInstance: boolean, msg: Condition): Condition.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Condition, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Condition; + static deserializeBinaryFromReader(message: Condition, reader: jspb.BinaryReader): Condition; } export namespace Condition { - export type AsObject = { - operator: Condition.OperatorMap[keyof Condition.OperatorMap], - value: string, - } - - export interface OperatorMap { - OPERATOR_UNSPECIFIED: 0; - OPERATOR_EQUALS: 1; - OPERATOR_GREATER_THAN: 2; - OPERATOR_GREATER_THAN_OR_EQUAL: 3; - OPERATOR_LESS_THAN: 4; - OPERATOR_LESS_THAN_OR_EQUAL: 5; - } - - export const Operator: OperatorMap; -} + export type AsObject = { + operator: Condition.Operator, + value: string, + } + + export enum Operator { + OPERATOR_UNSPECIFIED = 0, + OPERATOR_EQUALS = 1, + OPERATOR_GREATER_THAN = 2, + OPERATOR_GREATER_THAN_OR_EQUAL = 3, + OPERATOR_LESS_THAN = 4, + OPERATOR_LESS_THAN_OR_EQUAL = 5, + } +} diff --git a/grpc/clients/js/generated/oracles/v1/spec_pb_service.d.ts b/grpc/clients/js/generated/oracles/v1/spec_pb_service.d.ts deleted file mode 100644 index bd049850..00000000 --- a/grpc/clients/js/generated/oracles/v1/spec_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: oracles.v1 -// file: oracles/v1/spec.proto - diff --git a/grpc/clients/js/generated/oracles/v1/spec_pb_service.js b/grpc/clients/js/generated/oracles/v1/spec_pb_service.js deleted file mode 100644 index bd049850..00000000 --- a/grpc/clients/js/generated/oracles/v1/spec_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: oracles.v1 -// file: oracles/v1/spec.proto - diff --git a/grpc/clients/js/generated/snapshot/v1/snapshot_grpc_pb.js b/grpc/clients/js/generated/snapshot/v1/snapshot_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/snapshot/v1/snapshot_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts new file mode 100644 index 00000000..4456a280 --- /dev/null +++ b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts @@ -0,0 +1,278 @@ +// package: vega.snapshot.v1 +// file: snapshot/v1/snapshot.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as vega_pb from "../../vega_pb"; +import * as assets_pb from "../../assets_pb"; +import * as governance_pb from "../../governance_pb"; + +export class Snapshot extends jspb.Message { + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): Snapshot; + getState(): Uint8Array | string; + getState_asU8(): Uint8Array; + getState_asB64(): string; + setState(value: Uint8Array | string): Snapshot; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Snapshot.AsObject; + static toObject(includeInstance: boolean, msg: Snapshot): Snapshot.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Snapshot, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Snapshot; + static deserializeBinaryFromReader(message: Snapshot, reader: jspb.BinaryReader): Snapshot; +} + +export namespace Snapshot { + export type AsObject = { + hash: Uint8Array | string, + state: Uint8Array | string, + } +} + +export class Checkpoint extends jspb.Message { + getGovernance(): Uint8Array | string; + getGovernance_asU8(): Uint8Array; + getGovernance_asB64(): string; + setGovernance(value: Uint8Array | string): Checkpoint; + getAssets(): Uint8Array | string; + getAssets_asU8(): Uint8Array; + getAssets_asB64(): string; + setAssets(value: Uint8Array | string): Checkpoint; + getCollateral(): Uint8Array | string; + getCollateral_asU8(): Uint8Array; + getCollateral_asB64(): string; + setCollateral(value: Uint8Array | string): Checkpoint; + getNetworkParameters(): Uint8Array | string; + getNetworkParameters_asU8(): Uint8Array; + getNetworkParameters_asB64(): string; + setNetworkParameters(value: Uint8Array | string): Checkpoint; + getDelegation(): Uint8Array | string; + getDelegation_asU8(): Uint8Array; + getDelegation_asB64(): string; + setDelegation(value: Uint8Array | string): Checkpoint; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Checkpoint.AsObject; + static toObject(includeInstance: boolean, msg: Checkpoint): Checkpoint.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Checkpoint, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Checkpoint; + static deserializeBinaryFromReader(message: Checkpoint, reader: jspb.BinaryReader): Checkpoint; +} + +export namespace Checkpoint { + export type AsObject = { + governance: Uint8Array | string, + assets: Uint8Array | string, + collateral: Uint8Array | string, + networkParameters: Uint8Array | string, + delegation: Uint8Array | string, + } +} + +export class AssetEntry extends jspb.Message { + getId(): string; + setId(value: string): AssetEntry; + + hasAssetDetails(): boolean; + clearAssetDetails(): void; + getAssetDetails(): assets_pb.AssetDetails | undefined; + setAssetDetails(value?: assets_pb.AssetDetails): AssetEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssetEntry.AsObject; + static toObject(includeInstance: boolean, msg: AssetEntry): AssetEntry.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssetEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssetEntry; + static deserializeBinaryFromReader(message: AssetEntry, reader: jspb.BinaryReader): AssetEntry; +} + +export namespace AssetEntry { + export type AsObject = { + id: string, + assetDetails?: assets_pb.AssetDetails.AsObject, + } +} + +export class Assets extends jspb.Message { + clearAssetsList(): void; + getAssetsList(): Array; + setAssetsList(value: Array): Assets; + addAssets(value?: AssetEntry, index?: number): AssetEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Assets.AsObject; + static toObject(includeInstance: boolean, msg: Assets): Assets.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Assets, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Assets; + static deserializeBinaryFromReader(message: Assets, reader: jspb.BinaryReader): Assets; +} + +export namespace Assets { + export type AsObject = { + assetsList: Array, + } +} + +export class AssetBalance extends jspb.Message { + getParty(): string; + setParty(value: string): AssetBalance; + getAsset(): string; + setAsset(value: string): AssetBalance; + getBalance(): string; + setBalance(value: string): AssetBalance; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssetBalance.AsObject; + static toObject(includeInstance: boolean, msg: AssetBalance): AssetBalance.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssetBalance, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssetBalance; + static deserializeBinaryFromReader(message: AssetBalance, reader: jspb.BinaryReader): AssetBalance; +} + +export namespace AssetBalance { + export type AsObject = { + party: string, + asset: string, + balance: string, + } +} + +export class Collateral extends jspb.Message { + clearBalancesList(): void; + getBalancesList(): Array; + setBalancesList(value: Array): Collateral; + addBalances(value?: AssetBalance, index?: number): AssetBalance; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Collateral.AsObject; + static toObject(includeInstance: boolean, msg: Collateral): Collateral.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Collateral, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Collateral; + static deserializeBinaryFromReader(message: Collateral, reader: jspb.BinaryReader): Collateral; +} + +export namespace Collateral { + export type AsObject = { + balancesList: Array, + } +} + +export class NetParams extends jspb.Message { + clearParamsList(): void; + getParamsList(): Array; + setParamsList(value: Array): NetParams; + addParams(value?: vega_pb.NetworkParameter, index?: number): vega_pb.NetworkParameter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NetParams.AsObject; + static toObject(includeInstance: boolean, msg: NetParams): NetParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NetParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NetParams; + static deserializeBinaryFromReader(message: NetParams, reader: jspb.BinaryReader): NetParams; +} + +export namespace NetParams { + export type AsObject = { + paramsList: Array, + } +} + +export class Proposals extends jspb.Message { + clearProposalsList(): void; + getProposalsList(): Array; + setProposalsList(value: Array): Proposals; + addProposals(value?: governance_pb.Proposal, index?: number): governance_pb.Proposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Proposals.AsObject; + static toObject(includeInstance: boolean, msg: Proposals): Proposals.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Proposals, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Proposals; + static deserializeBinaryFromReader(message: Proposals, reader: jspb.BinaryReader): Proposals; +} + +export namespace Proposals { + export type AsObject = { + proposalsList: Array, + } +} + +export class DelegateEntry extends jspb.Message { + getParty(): string; + setParty(value: string): DelegateEntry; + getNode(): string; + setNode(value: string): DelegateEntry; + getAmount(): string; + setAmount(value: string): DelegateEntry; + getUndelegate(): boolean; + setUndelegate(value: boolean): DelegateEntry; + getEpochSeq(): number; + setEpochSeq(value: number): DelegateEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DelegateEntry.AsObject; + static toObject(includeInstance: boolean, msg: DelegateEntry): DelegateEntry.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DelegateEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DelegateEntry; + static deserializeBinaryFromReader(message: DelegateEntry, reader: jspb.BinaryReader): DelegateEntry; +} + +export namespace DelegateEntry { + export type AsObject = { + party: string, + node: string, + amount: string, + undelegate: boolean, + epochSeq: number, + } +} + +export class Delegate extends jspb.Message { + clearActiveList(): void; + getActiveList(): Array; + setActiveList(value: Array): Delegate; + addActive(value?: DelegateEntry, index?: number): DelegateEntry; + clearPendingList(): void; + getPendingList(): Array; + setPendingList(value: Array): Delegate; + addPending(value?: DelegateEntry, index?: number): DelegateEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Delegate.AsObject; + static toObject(includeInstance: boolean, msg: Delegate): Delegate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Delegate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Delegate; + static deserializeBinaryFromReader(message: Delegate, reader: jspb.BinaryReader): Delegate; +} + +export namespace Delegate { + export type AsObject = { + activeList: Array, + pendingList: Array, + } +} diff --git a/grpc/clients/js/generated/snapshot/v1/snapshot_pb.js b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.js new file mode 100644 index 00000000..d8794d72 --- /dev/null +++ b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.js @@ -0,0 +1,2295 @@ +// source: snapshot/v1/snapshot.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var vega_pb = require('../../vega_pb.js'); +goog.object.extend(proto, vega_pb); +var assets_pb = require('../../assets_pb.js'); +goog.object.extend(proto, assets_pb); +var governance_pb = require('../../governance_pb.js'); +goog.object.extend(proto, governance_pb); +goog.exportSymbol('proto.vega.snapshot.v1.AssetBalance', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.AssetEntry', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Assets', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Checkpoint', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Collateral', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Delegate', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.DelegateEntry', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.NetParams', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Proposals', null, global); +goog.exportSymbol('proto.vega.snapshot.v1.Snapshot', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Snapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.snapshot.v1.Snapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Snapshot.displayName = 'proto.vega.snapshot.v1.Snapshot'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Checkpoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.snapshot.v1.Checkpoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Checkpoint.displayName = 'proto.vega.snapshot.v1.Checkpoint'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.AssetEntry = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.snapshot.v1.AssetEntry, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.AssetEntry.displayName = 'proto.vega.snapshot.v1.AssetEntry'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Assets = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.snapshot.v1.Assets.repeatedFields_, null); +}; +goog.inherits(proto.vega.snapshot.v1.Assets, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Assets.displayName = 'proto.vega.snapshot.v1.Assets'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.AssetBalance = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.snapshot.v1.AssetBalance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.AssetBalance.displayName = 'proto.vega.snapshot.v1.AssetBalance'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Collateral = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.snapshot.v1.Collateral.repeatedFields_, null); +}; +goog.inherits(proto.vega.snapshot.v1.Collateral, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Collateral.displayName = 'proto.vega.snapshot.v1.Collateral'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.NetParams = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.snapshot.v1.NetParams.repeatedFields_, null); +}; +goog.inherits(proto.vega.snapshot.v1.NetParams, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.NetParams.displayName = 'proto.vega.snapshot.v1.NetParams'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Proposals = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.snapshot.v1.Proposals.repeatedFields_, null); +}; +goog.inherits(proto.vega.snapshot.v1.Proposals, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Proposals.displayName = 'proto.vega.snapshot.v1.Proposals'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.DelegateEntry = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.snapshot.v1.DelegateEntry, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.DelegateEntry.displayName = 'proto.vega.snapshot.v1.DelegateEntry'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.snapshot.v1.Delegate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.snapshot.v1.Delegate.repeatedFields_, null); +}; +goog.inherits(proto.vega.snapshot.v1.Delegate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.snapshot.v1.Delegate.displayName = 'proto.vega.snapshot.v1.Delegate'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Snapshot.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Snapshot.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Snapshot} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Snapshot.toObject = function(includeInstance, msg) { + var f, obj = { + hash: msg.getHash_asB64(), + state: msg.getState_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Snapshot} + */ +proto.vega.snapshot.v1.Snapshot.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Snapshot; + return proto.vega.snapshot.v1.Snapshot.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Snapshot} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Snapshot} + */ +proto.vega.snapshot.v1.Snapshot.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Snapshot.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Snapshot.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Snapshot} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Snapshot.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getState_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional bytes hash = 1; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes hash = 1; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHash()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Snapshot} returns this + */ +proto.vega.snapshot.v1.Snapshot.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional bytes state = 2; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getState = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes state = 2; + * This is a type-conversion wrapper around `getState()` + * @return {string} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getState_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getState())); +}; + + +/** + * optional bytes state = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getState()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Snapshot.prototype.getState_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getState())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Snapshot} returns this + */ +proto.vega.snapshot.v1.Snapshot.prototype.setState = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Checkpoint.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Checkpoint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Checkpoint.toObject = function(includeInstance, msg) { + var f, obj = { + governance: msg.getGovernance_asB64(), + assets: msg.getAssets_asB64(), + collateral: msg.getCollateral_asB64(), + networkParameters: msg.getNetworkParameters_asB64(), + delegation: msg.getDelegation_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Checkpoint} + */ +proto.vega.snapshot.v1.Checkpoint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Checkpoint; + return proto.vega.snapshot.v1.Checkpoint.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Checkpoint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Checkpoint} + */ +proto.vega.snapshot.v1.Checkpoint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setGovernance(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAssets(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setCollateral(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setNetworkParameters(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDelegation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Checkpoint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Checkpoint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Checkpoint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGovernance_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getAssets_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getCollateral_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getNetworkParameters_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getDelegation_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } +}; + + +/** + * optional bytes governance = 1; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getGovernance = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes governance = 1; + * This is a type-conversion wrapper around `getGovernance()` + * @return {string} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getGovernance_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getGovernance())); +}; + + +/** + * optional bytes governance = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getGovernance()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getGovernance_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getGovernance())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Checkpoint} returns this + */ +proto.vega.snapshot.v1.Checkpoint.prototype.setGovernance = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional bytes assets = 2; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getAssets = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes assets = 2; + * This is a type-conversion wrapper around `getAssets()` + * @return {string} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getAssets_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAssets())); +}; + + +/** + * optional bytes assets = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAssets()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getAssets_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAssets())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Checkpoint} returns this + */ +proto.vega.snapshot.v1.Checkpoint.prototype.setAssets = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bytes collateral = 3; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getCollateral = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes collateral = 3; + * This is a type-conversion wrapper around `getCollateral()` + * @return {string} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getCollateral_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getCollateral())); +}; + + +/** + * optional bytes collateral = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCollateral()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getCollateral_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getCollateral())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Checkpoint} returns this + */ +proto.vega.snapshot.v1.Checkpoint.prototype.setCollateral = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bytes network_parameters = 4; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getNetworkParameters = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes network_parameters = 4; + * This is a type-conversion wrapper around `getNetworkParameters()` + * @return {string} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getNetworkParameters_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getNetworkParameters())); +}; + + +/** + * optional bytes network_parameters = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNetworkParameters()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getNetworkParameters_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getNetworkParameters())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Checkpoint} returns this + */ +proto.vega.snapshot.v1.Checkpoint.prototype.setNetworkParameters = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional bytes delegation = 5; + * @return {!(string|Uint8Array)} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getDelegation = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes delegation = 5; + * This is a type-conversion wrapper around `getDelegation()` + * @return {string} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getDelegation_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDelegation())); +}; + + +/** + * optional bytes delegation = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDelegation()` + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Checkpoint.prototype.getDelegation_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDelegation())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.vega.snapshot.v1.Checkpoint} returns this + */ +proto.vega.snapshot.v1.Checkpoint.prototype.setDelegation = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.AssetEntry.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.AssetEntry.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.AssetEntry} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.AssetEntry.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + assetDetails: (f = msg.getAssetDetails()) && assets_pb.AssetDetails.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.AssetEntry} + */ +proto.vega.snapshot.v1.AssetEntry.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.AssetEntry; + return proto.vega.snapshot.v1.AssetEntry.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.AssetEntry} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.AssetEntry} + */ +proto.vega.snapshot.v1.AssetEntry.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new assets_pb.AssetDetails; + reader.readMessage(value,assets_pb.AssetDetails.deserializeBinaryFromReader); + msg.setAssetDetails(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.AssetEntry.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.AssetEntry.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.AssetEntry} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.AssetEntry.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAssetDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + assets_pb.AssetDetails.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.vega.snapshot.v1.AssetEntry.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.AssetEntry} returns this + */ +proto.vega.snapshot.v1.AssetEntry.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional vega.AssetDetails asset_details = 2; + * @return {?proto.vega.AssetDetails} + */ +proto.vega.snapshot.v1.AssetEntry.prototype.getAssetDetails = function() { + return /** @type{?proto.vega.AssetDetails} */ ( + jspb.Message.getWrapperField(this, assets_pb.AssetDetails, 2)); +}; + + +/** + * @param {?proto.vega.AssetDetails|undefined} value + * @return {!proto.vega.snapshot.v1.AssetEntry} returns this +*/ +proto.vega.snapshot.v1.AssetEntry.prototype.setAssetDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.snapshot.v1.AssetEntry} returns this + */ +proto.vega.snapshot.v1.AssetEntry.prototype.clearAssetDetails = function() { + return this.setAssetDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.snapshot.v1.AssetEntry.prototype.hasAssetDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.snapshot.v1.Assets.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Assets.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Assets.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Assets} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Assets.toObject = function(includeInstance, msg) { + var f, obj = { + assetsList: jspb.Message.toObjectList(msg.getAssetsList(), + proto.vega.snapshot.v1.AssetEntry.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Assets} + */ +proto.vega.snapshot.v1.Assets.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Assets; + return proto.vega.snapshot.v1.Assets.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Assets} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Assets} + */ +proto.vega.snapshot.v1.Assets.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.vega.snapshot.v1.AssetEntry; + reader.readMessage(value,proto.vega.snapshot.v1.AssetEntry.deserializeBinaryFromReader); + msg.addAssets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Assets.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Assets.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Assets} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Assets.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.vega.snapshot.v1.AssetEntry.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetEntry assets = 1; + * @return {!Array} + */ +proto.vega.snapshot.v1.Assets.prototype.getAssetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.snapshot.v1.AssetEntry, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.Assets} returns this +*/ +proto.vega.snapshot.v1.Assets.prototype.setAssetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.snapshot.v1.AssetEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.snapshot.v1.AssetEntry} + */ +proto.vega.snapshot.v1.Assets.prototype.addAssets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.snapshot.v1.AssetEntry, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.Assets} returns this + */ +proto.vega.snapshot.v1.Assets.prototype.clearAssetsList = function() { + return this.setAssetsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.AssetBalance.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.AssetBalance.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.AssetBalance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.AssetBalance.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + asset: jspb.Message.getFieldWithDefault(msg, 2, ""), + balance: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.AssetBalance} + */ +proto.vega.snapshot.v1.AssetBalance.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.AssetBalance; + return proto.vega.snapshot.v1.AssetBalance.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.AssetBalance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.AssetBalance} + */ +proto.vega.snapshot.v1.AssetBalance.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setBalance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.AssetBalance.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.AssetBalance.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.AssetBalance} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.AssetBalance.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBalance(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.snapshot.v1.AssetBalance.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.AssetBalance} returns this + */ +proto.vega.snapshot.v1.AssetBalance.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string asset = 2; + * @return {string} + */ +proto.vega.snapshot.v1.AssetBalance.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.AssetBalance} returns this + */ +proto.vega.snapshot.v1.AssetBalance.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string balance = 3; + * @return {string} + */ +proto.vega.snapshot.v1.AssetBalance.prototype.getBalance = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.AssetBalance} returns this + */ +proto.vega.snapshot.v1.AssetBalance.prototype.setBalance = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.snapshot.v1.Collateral.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Collateral.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Collateral.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Collateral} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Collateral.toObject = function(includeInstance, msg) { + var f, obj = { + balancesList: jspb.Message.toObjectList(msg.getBalancesList(), + proto.vega.snapshot.v1.AssetBalance.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Collateral} + */ +proto.vega.snapshot.v1.Collateral.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Collateral; + return proto.vega.snapshot.v1.Collateral.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Collateral} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Collateral} + */ +proto.vega.snapshot.v1.Collateral.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.vega.snapshot.v1.AssetBalance; + reader.readMessage(value,proto.vega.snapshot.v1.AssetBalance.deserializeBinaryFromReader); + msg.addBalances(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Collateral.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Collateral.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Collateral} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Collateral.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBalancesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.vega.snapshot.v1.AssetBalance.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetBalance balances = 1; + * @return {!Array} + */ +proto.vega.snapshot.v1.Collateral.prototype.getBalancesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.snapshot.v1.AssetBalance, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.Collateral} returns this +*/ +proto.vega.snapshot.v1.Collateral.prototype.setBalancesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.snapshot.v1.AssetBalance=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.snapshot.v1.AssetBalance} + */ +proto.vega.snapshot.v1.Collateral.prototype.addBalances = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.snapshot.v1.AssetBalance, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.Collateral} returns this + */ +proto.vega.snapshot.v1.Collateral.prototype.clearBalancesList = function() { + return this.setBalancesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.snapshot.v1.NetParams.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.NetParams.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.NetParams.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.NetParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.NetParams.toObject = function(includeInstance, msg) { + var f, obj = { + paramsList: jspb.Message.toObjectList(msg.getParamsList(), + vega_pb.NetworkParameter.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.NetParams} + */ +proto.vega.snapshot.v1.NetParams.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.NetParams; + return proto.vega.snapshot.v1.NetParams.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.NetParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.NetParams} + */ +proto.vega.snapshot.v1.NetParams.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new vega_pb.NetworkParameter; + reader.readMessage(value,vega_pb.NetworkParameter.deserializeBinaryFromReader); + msg.addParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.NetParams.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.NetParams.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.NetParams} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.NetParams.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParamsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + vega_pb.NetworkParameter.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.NetworkParameter params = 1; + * @return {!Array} + */ +proto.vega.snapshot.v1.NetParams.prototype.getParamsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, vega_pb.NetworkParameter, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.NetParams} returns this +*/ +proto.vega.snapshot.v1.NetParams.prototype.setParamsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.NetworkParameter=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.NetworkParameter} + */ +proto.vega.snapshot.v1.NetParams.prototype.addParams = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.NetworkParameter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.NetParams} returns this + */ +proto.vega.snapshot.v1.NetParams.prototype.clearParamsList = function() { + return this.setParamsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.snapshot.v1.Proposals.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Proposals.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Proposals.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Proposals} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Proposals.toObject = function(includeInstance, msg) { + var f, obj = { + proposalsList: jspb.Message.toObjectList(msg.getProposalsList(), + governance_pb.Proposal.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Proposals} + */ +proto.vega.snapshot.v1.Proposals.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Proposals; + return proto.vega.snapshot.v1.Proposals.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Proposals} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Proposals} + */ +proto.vega.snapshot.v1.Proposals.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new governance_pb.Proposal; + reader.readMessage(value,governance_pb.Proposal.deserializeBinaryFromReader); + msg.addProposals(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Proposals.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Proposals.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Proposals} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Proposals.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + governance_pb.Proposal.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated vega.Proposal proposals = 1; + * @return {!Array} + */ +proto.vega.snapshot.v1.Proposals.prototype.getProposalsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, governance_pb.Proposal, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.Proposals} returns this +*/ +proto.vega.snapshot.v1.Proposals.prototype.setProposalsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Proposal=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Proposal} + */ +proto.vega.snapshot.v1.Proposals.prototype.addProposals = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Proposal, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.Proposals} returns this + */ +proto.vega.snapshot.v1.Proposals.prototype.clearProposalsList = function() { + return this.setProposalsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.DelegateEntry.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.DelegateEntry} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.DelegateEntry.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + node: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + undelegate: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + epochSeq: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.DelegateEntry} + */ +proto.vega.snapshot.v1.DelegateEntry.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.DelegateEntry; + return proto.vega.snapshot.v1.DelegateEntry.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.DelegateEntry} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.DelegateEntry} + */ +proto.vega.snapshot.v1.DelegateEntry.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setNode(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUndelegate(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setEpochSeq(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.DelegateEntry.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.DelegateEntry} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.DelegateEntry.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getNode(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getUndelegate(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getEpochSeq(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.DelegateEntry} returns this + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string node = 2; + * @return {string} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.getNode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.DelegateEntry} returns this + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.setNode = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string amount = 3; + * @return {string} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.snapshot.v1.DelegateEntry} returns this + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool undelegate = 4; + * @return {boolean} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.getUndelegate = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.vega.snapshot.v1.DelegateEntry} returns this + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.setUndelegate = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional uint64 epoch_seq = 5; + * @return {number} + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.getEpochSeq = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.snapshot.v1.DelegateEntry} returns this + */ +proto.vega.snapshot.v1.DelegateEntry.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.snapshot.v1.Delegate.repeatedFields_ = [1,2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.snapshot.v1.Delegate.prototype.toObject = function(opt_includeInstance) { + return proto.vega.snapshot.v1.Delegate.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.snapshot.v1.Delegate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Delegate.toObject = function(includeInstance, msg) { + var f, obj = { + activeList: jspb.Message.toObjectList(msg.getActiveList(), + proto.vega.snapshot.v1.DelegateEntry.toObject, includeInstance), + pendingList: jspb.Message.toObjectList(msg.getPendingList(), + proto.vega.snapshot.v1.DelegateEntry.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.snapshot.v1.Delegate} + */ +proto.vega.snapshot.v1.Delegate.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.snapshot.v1.Delegate; + return proto.vega.snapshot.v1.Delegate.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.snapshot.v1.Delegate} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.snapshot.v1.Delegate} + */ +proto.vega.snapshot.v1.Delegate.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.vega.snapshot.v1.DelegateEntry; + reader.readMessage(value,proto.vega.snapshot.v1.DelegateEntry.deserializeBinaryFromReader); + msg.addActive(value); + break; + case 2: + var value = new proto.vega.snapshot.v1.DelegateEntry; + reader.readMessage(value,proto.vega.snapshot.v1.DelegateEntry.deserializeBinaryFromReader); + msg.addPending(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.snapshot.v1.Delegate.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.snapshot.v1.Delegate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.snapshot.v1.Delegate} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.snapshot.v1.Delegate.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getActiveList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.vega.snapshot.v1.DelegateEntry.serializeBinaryToWriter + ); + } + f = message.getPendingList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.vega.snapshot.v1.DelegateEntry.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated DelegateEntry active = 1; + * @return {!Array} + */ +proto.vega.snapshot.v1.Delegate.prototype.getActiveList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.snapshot.v1.DelegateEntry, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.Delegate} returns this +*/ +proto.vega.snapshot.v1.Delegate.prototype.setActiveList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.snapshot.v1.DelegateEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.snapshot.v1.DelegateEntry} + */ +proto.vega.snapshot.v1.Delegate.prototype.addActive = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.snapshot.v1.DelegateEntry, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.Delegate} returns this + */ +proto.vega.snapshot.v1.Delegate.prototype.clearActiveList = function() { + return this.setActiveList([]); +}; + + +/** + * repeated DelegateEntry pending = 2; + * @return {!Array} + */ +proto.vega.snapshot.v1.Delegate.prototype.getPendingList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.snapshot.v1.DelegateEntry, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.snapshot.v1.Delegate} returns this +*/ +proto.vega.snapshot.v1.Delegate.prototype.setPendingList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.vega.snapshot.v1.DelegateEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.snapshot.v1.DelegateEntry} + */ +proto.vega.snapshot.v1.Delegate.prototype.addPending = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.snapshot.v1.DelegateEntry, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.snapshot.v1.Delegate} returns this + */ +proto.vega.snapshot.v1.Delegate.prototype.clearPendingList = function() { + return this.setPendingList([]); +}; + + +goog.object.extend(exports, proto.vega.snapshot.v1); diff --git a/grpc/clients/js/generated/tm/replay_grpc_pb.d.ts b/grpc/clients/js/generated/tm/replay_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/tm/replay_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/tm/replay_grpc_pb.js b/grpc/clients/js/generated/tm/replay_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/tm/replay_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/tm/replay_pb.d.ts b/grpc/clients/js/generated/tm/replay_pb.d.ts index 34fda98a..f0fc7f1a 100644 --- a/grpc/clients/js/generated/tm/replay_pb.d.ts +++ b/grpc/clients/js/generated/tm/replay_pb.d.ts @@ -1,684 +1,665 @@ // package: tm // file: tm/replay.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; export class TmEvent extends jspb.Message { - hasReqInitChain(): boolean; - clearReqInitChain(): void; - getReqInitChain(): RequestInitChain | undefined; - setReqInitChain(value?: RequestInitChain): void; - - hasResInitChain(): boolean; - clearResInitChain(): void; - getResInitChain(): ResponseInitChain | undefined; - setResInitChain(value?: ResponseInitChain): void; - - hasReqDeliverTx(): boolean; - clearReqDeliverTx(): void; - getReqDeliverTx(): RequestDeliverTx | undefined; - setReqDeliverTx(value?: RequestDeliverTx): void; - - hasResDeliverTx(): boolean; - clearResDeliverTx(): void; - getResDeliverTx(): ResponseDeliverTx | undefined; - setResDeliverTx(value?: ResponseDeliverTx): void; - - hasReqBeginBlock(): boolean; - clearReqBeginBlock(): void; - getReqBeginBlock(): RequestBeginBlock | undefined; - setReqBeginBlock(value?: RequestBeginBlock): void; - - hasResBeginBlock(): boolean; - clearResBeginBlock(): void; - getResBeginBlock(): ResponseBeginBlock | undefined; - setResBeginBlock(value?: ResponseBeginBlock): void; - - getActionCase(): TmEvent.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TmEvent.AsObject; - static toObject(includeInstance: boolean, msg: TmEvent): TmEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TmEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TmEvent; - static deserializeBinaryFromReader(message: TmEvent, reader: jspb.BinaryReader): TmEvent; -} -export namespace TmEvent { - export type AsObject = { - reqInitChain?: RequestInitChain.AsObject, - resInitChain?: ResponseInitChain.AsObject, - reqDeliverTx?: RequestDeliverTx.AsObject, - resDeliverTx?: ResponseDeliverTx.AsObject, - reqBeginBlock?: RequestBeginBlock.AsObject, - resBeginBlock?: ResponseBeginBlock.AsObject, - } - - export enum ActionCase { - ACTION_NOT_SET = 0, - REQ_INIT_CHAIN = 1, - RES_INIT_CHAIN = 2, - REQ_DELIVER_TX = 3, - RES_DELIVER_TX = 4, - REQ_BEGIN_BLOCK = 5, - RES_BEGIN_BLOCK = 6, - } -} + hasReqInitChain(): boolean; + clearReqInitChain(): void; + getReqInitChain(): RequestInitChain | undefined; + setReqInitChain(value?: RequestInitChain): TmEvent; -export class RequestInitChain extends jspb.Message { - getTime(): number; - setTime(value: number): void; + hasResInitChain(): boolean; + clearResInitChain(): void; + getResInitChain(): ResponseInitChain | undefined; + setResInitChain(value?: ResponseInitChain): TmEvent; + + hasReqDeliverTx(): boolean; + clearReqDeliverTx(): void; + getReqDeliverTx(): RequestDeliverTx | undefined; + setReqDeliverTx(value?: RequestDeliverTx): TmEvent; + + hasResDeliverTx(): boolean; + clearResDeliverTx(): void; + getResDeliverTx(): ResponseDeliverTx | undefined; + setResDeliverTx(value?: ResponseDeliverTx): TmEvent; - getChainId(): string; - setChainId(value: string): void; + hasReqBeginBlock(): boolean; + clearReqBeginBlock(): void; + getReqBeginBlock(): RequestBeginBlock | undefined; + setReqBeginBlock(value?: RequestBeginBlock): TmEvent; - hasConsensusParams(): boolean; - clearConsensusParams(): void; - getConsensusParams(): ConsensusParams | undefined; - setConsensusParams(value?: ConsensusParams): void; + hasResBeginBlock(): boolean; + clearResBeginBlock(): void; + getResBeginBlock(): ResponseBeginBlock | undefined; + setResBeginBlock(value?: ResponseBeginBlock): TmEvent; - clearValidatorsList(): void; - getValidatorsList(): Array; - setValidatorsList(value: Array): void; - addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; + getActionCase(): TmEvent.ActionCase; - getAppStateBytes(): Uint8Array | string; - getAppStateBytes_asU8(): Uint8Array; - getAppStateBytes_asB64(): string; - setAppStateBytes(value: Uint8Array | string): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TmEvent.AsObject; + static toObject(includeInstance: boolean, msg: TmEvent): TmEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TmEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TmEvent; + static deserializeBinaryFromReader(message: TmEvent, reader: jspb.BinaryReader): TmEvent; +} - getInitialHeight(): number; - setInitialHeight(value: number): void; +export namespace TmEvent { + export type AsObject = { + reqInitChain?: RequestInitChain.AsObject, + resInitChain?: ResponseInitChain.AsObject, + reqDeliverTx?: RequestDeliverTx.AsObject, + resDeliverTx?: ResponseDeliverTx.AsObject, + reqBeginBlock?: RequestBeginBlock.AsObject, + resBeginBlock?: ResponseBeginBlock.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + REQ_INIT_CHAIN = 1, + RES_INIT_CHAIN = 2, + REQ_DELIVER_TX = 3, + RES_DELIVER_TX = 4, + REQ_BEGIN_BLOCK = 5, + RES_BEGIN_BLOCK = 6, + } - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RequestInitChain.AsObject; - static toObject(includeInstance: boolean, msg: RequestInitChain): RequestInitChain.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RequestInitChain, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RequestInitChain; - static deserializeBinaryFromReader(message: RequestInitChain, reader: jspb.BinaryReader): RequestInitChain; +} + +export class RequestInitChain extends jspb.Message { + getTime(): number; + setTime(value: number): RequestInitChain; + getChainId(): string; + setChainId(value: string): RequestInitChain; + + hasConsensusParams(): boolean; + clearConsensusParams(): void; + getConsensusParams(): ConsensusParams | undefined; + setConsensusParams(value?: ConsensusParams): RequestInitChain; + clearValidatorsList(): void; + getValidatorsList(): Array; + setValidatorsList(value: Array): RequestInitChain; + addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; + getAppStateBytes(): Uint8Array | string; + getAppStateBytes_asU8(): Uint8Array; + getAppStateBytes_asB64(): string; + setAppStateBytes(value: Uint8Array | string): RequestInitChain; + getInitialHeight(): number; + setInitialHeight(value: number): RequestInitChain; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RequestInitChain.AsObject; + static toObject(includeInstance: boolean, msg: RequestInitChain): RequestInitChain.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RequestInitChain, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RequestInitChain; + static deserializeBinaryFromReader(message: RequestInitChain, reader: jspb.BinaryReader): RequestInitChain; } export namespace RequestInitChain { - export type AsObject = { - time: number, - chainId: string, - consensusParams?: ConsensusParams.AsObject, - validatorsList: Array, - appStateBytes: Uint8Array | string, - initialHeight: number, - } + export type AsObject = { + time: number, + chainId: string, + consensusParams?: ConsensusParams.AsObject, + validatorsList: Array, + appStateBytes: Uint8Array | string, + initialHeight: number, + } } export class RequestBeginBlock extends jspb.Message { - getHash(): Uint8Array | string; - getHash_asU8(): Uint8Array; - getHash_asB64(): string; - setHash(value: Uint8Array | string): void; - - hasHeader(): boolean; - clearHeader(): void; - getHeader(): Header | undefined; - setHeader(value?: Header): void; - - hasLastCommitInfo(): boolean; - clearLastCommitInfo(): void; - getLastCommitInfo(): LastCommitInfo | undefined; - setLastCommitInfo(value?: LastCommitInfo): void; - - clearByzantineValidatorsList(): void; - getByzantineValidatorsList(): Array; - setByzantineValidatorsList(value: Array): void; - addByzantineValidators(value?: Evidence, index?: number): Evidence; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RequestBeginBlock.AsObject; - static toObject(includeInstance: boolean, msg: RequestBeginBlock): RequestBeginBlock.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RequestBeginBlock, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RequestBeginBlock; - static deserializeBinaryFromReader(message: RequestBeginBlock, reader: jspb.BinaryReader): RequestBeginBlock; + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): RequestBeginBlock; + + hasHeader(): boolean; + clearHeader(): void; + getHeader(): Header | undefined; + setHeader(value?: Header): RequestBeginBlock; + + hasLastCommitInfo(): boolean; + clearLastCommitInfo(): void; + getLastCommitInfo(): LastCommitInfo | undefined; + setLastCommitInfo(value?: LastCommitInfo): RequestBeginBlock; + clearByzantineValidatorsList(): void; + getByzantineValidatorsList(): Array; + setByzantineValidatorsList(value: Array): RequestBeginBlock; + addByzantineValidators(value?: Evidence, index?: number): Evidence; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RequestBeginBlock.AsObject; + static toObject(includeInstance: boolean, msg: RequestBeginBlock): RequestBeginBlock.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RequestBeginBlock, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RequestBeginBlock; + static deserializeBinaryFromReader(message: RequestBeginBlock, reader: jspb.BinaryReader): RequestBeginBlock; } export namespace RequestBeginBlock { - export type AsObject = { - hash: Uint8Array | string, - header?: Header.AsObject, - lastCommitInfo?: LastCommitInfo.AsObject, - byzantineValidatorsList: Array, - } + export type AsObject = { + hash: Uint8Array | string, + header?: Header.AsObject, + lastCommitInfo?: LastCommitInfo.AsObject, + byzantineValidatorsList: Array, + } } export class RequestDeliverTx extends jspb.Message { - getTx(): Uint8Array | string; - getTx_asU8(): Uint8Array; - getTx_asB64(): string; - setTx(value: Uint8Array | string): void; + getTx(): Uint8Array | string; + getTx_asU8(): Uint8Array; + getTx_asB64(): string; + setTx(value: Uint8Array | string): RequestDeliverTx; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RequestDeliverTx.AsObject; - static toObject(includeInstance: boolean, msg: RequestDeliverTx): RequestDeliverTx.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RequestDeliverTx, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RequestDeliverTx; - static deserializeBinaryFromReader(message: RequestDeliverTx, reader: jspb.BinaryReader): RequestDeliverTx; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RequestDeliverTx.AsObject; + static toObject(includeInstance: boolean, msg: RequestDeliverTx): RequestDeliverTx.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RequestDeliverTx, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RequestDeliverTx; + static deserializeBinaryFromReader(message: RequestDeliverTx, reader: jspb.BinaryReader): RequestDeliverTx; } export namespace RequestDeliverTx { - export type AsObject = { - tx: Uint8Array | string, - } + export type AsObject = { + tx: Uint8Array | string, + } } export class ResponseInitChain extends jspb.Message { - hasConsensusParams(): boolean; - clearConsensusParams(): void; - getConsensusParams(): ConsensusParams | undefined; - setConsensusParams(value?: ConsensusParams): void; - - clearValidatorsList(): void; - getValidatorsList(): Array; - setValidatorsList(value: Array): void; - addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; - - getAppHash(): Uint8Array | string; - getAppHash_asU8(): Uint8Array; - getAppHash_asB64(): string; - setAppHash(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResponseInitChain.AsObject; - static toObject(includeInstance: boolean, msg: ResponseInitChain): ResponseInitChain.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResponseInitChain, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResponseInitChain; - static deserializeBinaryFromReader(message: ResponseInitChain, reader: jspb.BinaryReader): ResponseInitChain; + + hasConsensusParams(): boolean; + clearConsensusParams(): void; + getConsensusParams(): ConsensusParams | undefined; + setConsensusParams(value?: ConsensusParams): ResponseInitChain; + clearValidatorsList(): void; + getValidatorsList(): Array; + setValidatorsList(value: Array): ResponseInitChain; + addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; + getAppHash(): Uint8Array | string; + getAppHash_asU8(): Uint8Array; + getAppHash_asB64(): string; + setAppHash(value: Uint8Array | string): ResponseInitChain; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResponseInitChain.AsObject; + static toObject(includeInstance: boolean, msg: ResponseInitChain): ResponseInitChain.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResponseInitChain, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResponseInitChain; + static deserializeBinaryFromReader(message: ResponseInitChain, reader: jspb.BinaryReader): ResponseInitChain; } export namespace ResponseInitChain { - export type AsObject = { - consensusParams?: ConsensusParams.AsObject, - validatorsList: Array, - appHash: Uint8Array | string, - } + export type AsObject = { + consensusParams?: ConsensusParams.AsObject, + validatorsList: Array, + appHash: Uint8Array | string, + } } export class ResponseBeginBlock extends jspb.Message { - clearEventsList(): void; - getEventsList(): Array; - setEventsList(value: Array): void; - addEvents(value?: Event, index?: number): Event; + clearEventsList(): void; + getEventsList(): Array; + setEventsList(value: Array): ResponseBeginBlock; + addEvents(value?: Event, index?: number): Event; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResponseBeginBlock.AsObject; - static toObject(includeInstance: boolean, msg: ResponseBeginBlock): ResponseBeginBlock.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResponseBeginBlock, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResponseBeginBlock; - static deserializeBinaryFromReader(message: ResponseBeginBlock, reader: jspb.BinaryReader): ResponseBeginBlock; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResponseBeginBlock.AsObject; + static toObject(includeInstance: boolean, msg: ResponseBeginBlock): ResponseBeginBlock.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResponseBeginBlock, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResponseBeginBlock; + static deserializeBinaryFromReader(message: ResponseBeginBlock, reader: jspb.BinaryReader): ResponseBeginBlock; } export namespace ResponseBeginBlock { - export type AsObject = { - eventsList: Array, - } + export type AsObject = { + eventsList: Array, + } } export class ResponseDeliverTx extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - getLog(): string; - setLog(value: string): void; - - getInfo(): string; - setInfo(value: string): void; - - getGasWanted(): number; - setGasWanted(value: number): void; - - getGasUsed(): number; - setGasUsed(value: number): void; - - clearEventsList(): void; - getEventsList(): Array; - setEventsList(value: Array): void; - addEvents(value?: Event, index?: number): Event; - - getCodespace(): string; - setCodespace(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResponseDeliverTx.AsObject; - static toObject(includeInstance: boolean, msg: ResponseDeliverTx): ResponseDeliverTx.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResponseDeliverTx, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResponseDeliverTx; - static deserializeBinaryFromReader(message: ResponseDeliverTx, reader: jspb.BinaryReader): ResponseDeliverTx; + getCode(): number; + setCode(value: number): ResponseDeliverTx; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): ResponseDeliverTx; + getLog(): string; + setLog(value: string): ResponseDeliverTx; + getInfo(): string; + setInfo(value: string): ResponseDeliverTx; + getGasWanted(): number; + setGasWanted(value: number): ResponseDeliverTx; + getGasUsed(): number; + setGasUsed(value: number): ResponseDeliverTx; + clearEventsList(): void; + getEventsList(): Array; + setEventsList(value: Array): ResponseDeliverTx; + addEvents(value?: Event, index?: number): Event; + getCodespace(): string; + setCodespace(value: string): ResponseDeliverTx; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResponseDeliverTx.AsObject; + static toObject(includeInstance: boolean, msg: ResponseDeliverTx): ResponseDeliverTx.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResponseDeliverTx, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResponseDeliverTx; + static deserializeBinaryFromReader(message: ResponseDeliverTx, reader: jspb.BinaryReader): ResponseDeliverTx; } export namespace ResponseDeliverTx { - export type AsObject = { - code: number, - data: Uint8Array | string, - log: string, - info: string, - gasWanted: number, - gasUsed: number, - eventsList: Array, - codespace: string, - } + export type AsObject = { + code: number, + data: Uint8Array | string, + log: string, + info: string, + gasWanted: number, + gasUsed: number, + eventsList: Array, + codespace: string, + } } export class Event extends jspb.Message { - getType(): string; - setType(value: string): void; - - clearAttributesList(): void; - getAttributesList(): Array; - setAttributesList(value: Array): void; - addAttributes(value?: EventAttribute, index?: number): EventAttribute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Event.AsObject; - static toObject(includeInstance: boolean, msg: Event): Event.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Event, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Event; - static deserializeBinaryFromReader(message: Event, reader: jspb.BinaryReader): Event; + getType(): string; + setType(value: string): Event; + clearAttributesList(): void; + getAttributesList(): Array; + setAttributesList(value: Array): Event; + addAttributes(value?: EventAttribute, index?: number): EventAttribute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Event.AsObject; + static toObject(includeInstance: boolean, msg: Event): Event.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Event, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Event; + static deserializeBinaryFromReader(message: Event, reader: jspb.BinaryReader): Event; } export namespace Event { - export type AsObject = { - type: string, - attributesList: Array, - } + export type AsObject = { + type: string, + attributesList: Array, + } } export class EventAttribute extends jspb.Message { - getKey(): Uint8Array | string; - getKey_asU8(): Uint8Array; - getKey_asB64(): string; - setKey(value: Uint8Array | string): void; - - getValue(): Uint8Array | string; - getValue_asU8(): Uint8Array; - getValue_asB64(): string; - setValue(value: Uint8Array | string): void; - - getIndex(): boolean; - setIndex(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EventAttribute.AsObject; - static toObject(includeInstance: boolean, msg: EventAttribute): EventAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EventAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EventAttribute; - static deserializeBinaryFromReader(message: EventAttribute, reader: jspb.BinaryReader): EventAttribute; + getKey(): Uint8Array | string; + getKey_asU8(): Uint8Array; + getKey_asB64(): string; + setKey(value: Uint8Array | string): EventAttribute; + getValue(): Uint8Array | string; + getValue_asU8(): Uint8Array; + getValue_asB64(): string; + setValue(value: Uint8Array | string): EventAttribute; + getIndex(): boolean; + setIndex(value: boolean): EventAttribute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EventAttribute.AsObject; + static toObject(includeInstance: boolean, msg: EventAttribute): EventAttribute.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EventAttribute, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EventAttribute; + static deserializeBinaryFromReader(message: EventAttribute, reader: jspb.BinaryReader): EventAttribute; } export namespace EventAttribute { - export type AsObject = { - key: Uint8Array | string, - value: Uint8Array | string, - index: boolean, - } + export type AsObject = { + key: Uint8Array | string, + value: Uint8Array | string, + index: boolean, + } } export class ValidatorUpdate extends jspb.Message { - hasPubKey(): boolean; - clearPubKey(): void; - getPubKey(): PublicKey | undefined; - setPubKey(value?: PublicKey): void; - getPower(): number; - setPower(value: number): void; + hasPubKey(): boolean; + clearPubKey(): void; + getPubKey(): PublicKey | undefined; + setPubKey(value?: PublicKey): ValidatorUpdate; + getPower(): number; + setPower(value: number): ValidatorUpdate; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorUpdate; - static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidatorUpdate.AsObject; + static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidatorUpdate; + static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate; } export namespace ValidatorUpdate { - export type AsObject = { - pubKey?: PublicKey.AsObject, - power: number, - } + export type AsObject = { + pubKey?: PublicKey.AsObject, + power: number, + } } export class ConsensusParams extends jspb.Message { - hasBlock(): boolean; - clearBlock(): void; - getBlock(): BlockParams | undefined; - setBlock(value?: BlockParams): void; - - hasEvidence(): boolean; - clearEvidence(): void; - getEvidence(): EvidenceParams | undefined; - setEvidence(value?: EvidenceParams): void; - - hasValidator(): boolean; - clearValidator(): void; - getValidator(): ValidatorParams | undefined; - setValidator(value?: ValidatorParams): void; - - hasVersion(): boolean; - clearVersion(): void; - getVersion(): VersionParams | undefined; - setVersion(value?: VersionParams): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConsensusParams.AsObject; - static toObject(includeInstance: boolean, msg: ConsensusParams): ConsensusParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConsensusParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConsensusParams; - static deserializeBinaryFromReader(message: ConsensusParams, reader: jspb.BinaryReader): ConsensusParams; + + hasBlock(): boolean; + clearBlock(): void; + getBlock(): BlockParams | undefined; + setBlock(value?: BlockParams): ConsensusParams; + + hasEvidence(): boolean; + clearEvidence(): void; + getEvidence(): EvidenceParams | undefined; + setEvidence(value?: EvidenceParams): ConsensusParams; + + hasValidator(): boolean; + clearValidator(): void; + getValidator(): ValidatorParams | undefined; + setValidator(value?: ValidatorParams): ConsensusParams; + + hasVersion(): boolean; + clearVersion(): void; + getVersion(): VersionParams | undefined; + setVersion(value?: VersionParams): ConsensusParams; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConsensusParams.AsObject; + static toObject(includeInstance: boolean, msg: ConsensusParams): ConsensusParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ConsensusParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConsensusParams; + static deserializeBinaryFromReader(message: ConsensusParams, reader: jspb.BinaryReader): ConsensusParams; } export namespace ConsensusParams { - export type AsObject = { - block?: BlockParams.AsObject, - evidence?: EvidenceParams.AsObject, - validator?: ValidatorParams.AsObject, - version?: VersionParams.AsObject, - } + export type AsObject = { + block?: BlockParams.AsObject, + evidence?: EvidenceParams.AsObject, + validator?: ValidatorParams.AsObject, + version?: VersionParams.AsObject, + } } export class BlockParams extends jspb.Message { - getMaxBytes(): number; - setMaxBytes(value: number): void; + getMaxBytes(): number; + setMaxBytes(value: number): BlockParams; + getMaxGas(): number; + setMaxGas(value: number): BlockParams; - getMaxGas(): number; - setMaxGas(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockParams.AsObject; - static toObject(includeInstance: boolean, msg: BlockParams): BlockParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockParams; - static deserializeBinaryFromReader(message: BlockParams, reader: jspb.BinaryReader): BlockParams; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlockParams.AsObject; + static toObject(includeInstance: boolean, msg: BlockParams): BlockParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BlockParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlockParams; + static deserializeBinaryFromReader(message: BlockParams, reader: jspb.BinaryReader): BlockParams; } export namespace BlockParams { - export type AsObject = { - maxBytes: number, - maxGas: number, - } + export type AsObject = { + maxBytes: number, + maxGas: number, + } } export class Evidence extends jspb.Message { - getType(): EvidenceTypeMap[keyof EvidenceTypeMap]; - setType(value: EvidenceTypeMap[keyof EvidenceTypeMap]): void; - - hasValidator(): boolean; - clearValidator(): void; - getValidator(): Validator | undefined; - setValidator(value?: Validator): void; - - getHeight(): number; - setHeight(value: number): void; - - getTime(): number; - setTime(value: number): void; - - getTotalVotingPower(): number; - setTotalVotingPower(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Evidence.AsObject; - static toObject(includeInstance: boolean, msg: Evidence): Evidence.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Evidence, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Evidence; - static deserializeBinaryFromReader(message: Evidence, reader: jspb.BinaryReader): Evidence; + getType(): EvidenceType; + setType(value: EvidenceType): Evidence; + + hasValidator(): boolean; + clearValidator(): void; + getValidator(): Validator | undefined; + setValidator(value?: Validator): Evidence; + getHeight(): number; + setHeight(value: number): Evidence; + getTime(): number; + setTime(value: number): Evidence; + getTotalVotingPower(): number; + setTotalVotingPower(value: number): Evidence; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Evidence.AsObject; + static toObject(includeInstance: boolean, msg: Evidence): Evidence.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Evidence, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Evidence; + static deserializeBinaryFromReader(message: Evidence, reader: jspb.BinaryReader): Evidence; } export namespace Evidence { - export type AsObject = { - type: EvidenceTypeMap[keyof EvidenceTypeMap], - validator?: Validator.AsObject, - height: number, - time: number, - totalVotingPower: number, - } + export type AsObject = { + type: EvidenceType, + validator?: Validator.AsObject, + height: number, + time: number, + totalVotingPower: number, + } } export class Validator extends jspb.Message { - getAddress(): Uint8Array | string; - getAddress_asU8(): Uint8Array; - getAddress_asB64(): string; - setAddress(value: Uint8Array | string): void; - - getPower(): number; - setPower(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Validator.AsObject; - static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Validator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Validator; - static deserializeBinaryFromReader(message: Validator, reader: jspb.BinaryReader): Validator; + getAddress(): Uint8Array | string; + getAddress_asU8(): Uint8Array; + getAddress_asB64(): string; + setAddress(value: Uint8Array | string): Validator; + getPower(): number; + setPower(value: number): Validator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Validator.AsObject; + static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Validator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Validator; + static deserializeBinaryFromReader(message: Validator, reader: jspb.BinaryReader): Validator; } export namespace Validator { - export type AsObject = { - address: Uint8Array | string, - power: number, - } + export type AsObject = { + address: Uint8Array | string, + power: number, + } } export class LastCommitInfo extends jspb.Message { - getRound(): number; - setRound(value: number): void; - - clearVotesList(): void; - getVotesList(): Array; - setVotesList(value: Array): void; - addVotes(value?: VoteInfo, index?: number): VoteInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastCommitInfo.AsObject; - static toObject(includeInstance: boolean, msg: LastCommitInfo): LastCommitInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastCommitInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastCommitInfo; - static deserializeBinaryFromReader(message: LastCommitInfo, reader: jspb.BinaryReader): LastCommitInfo; + getRound(): number; + setRound(value: number): LastCommitInfo; + clearVotesList(): void; + getVotesList(): Array; + setVotesList(value: Array): LastCommitInfo; + addVotes(value?: VoteInfo, index?: number): VoteInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LastCommitInfo.AsObject; + static toObject(includeInstance: boolean, msg: LastCommitInfo): LastCommitInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LastCommitInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LastCommitInfo; + static deserializeBinaryFromReader(message: LastCommitInfo, reader: jspb.BinaryReader): LastCommitInfo; } export namespace LastCommitInfo { - export type AsObject = { - round: number, - votesList: Array, - } + export type AsObject = { + round: number, + votesList: Array, + } } export class VoteInfo extends jspb.Message { - hasValidator(): boolean; - clearValidator(): void; - getValidator(): Validator | undefined; - setValidator(value?: Validator): void; - getSignedLastBlock(): boolean; - setSignedLastBlock(value: boolean): void; + hasValidator(): boolean; + clearValidator(): void; + getValidator(): Validator | undefined; + setValidator(value?: Validator): VoteInfo; + getSignedLastBlock(): boolean; + setSignedLastBlock(value: boolean): VoteInfo; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VoteInfo.AsObject; - static toObject(includeInstance: boolean, msg: VoteInfo): VoteInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VoteInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VoteInfo; - static deserializeBinaryFromReader(message: VoteInfo, reader: jspb.BinaryReader): VoteInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VoteInfo.AsObject; + static toObject(includeInstance: boolean, msg: VoteInfo): VoteInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: VoteInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VoteInfo; + static deserializeBinaryFromReader(message: VoteInfo, reader: jspb.BinaryReader): VoteInfo; } export namespace VoteInfo { - export type AsObject = { - validator?: Validator.AsObject, - signedLastBlock: boolean, - } + export type AsObject = { + validator?: Validator.AsObject, + signedLastBlock: boolean, + } } export class EvidenceParams extends jspb.Message { - getMaxAgeNumBlocks(): number; - setMaxAgeNumBlocks(value: number): void; - - getMaxAgeDuration(): number; - setMaxAgeDuration(value: number): void; - - getMaxNum(): number; - setMaxNum(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EvidenceParams.AsObject; - static toObject(includeInstance: boolean, msg: EvidenceParams): EvidenceParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EvidenceParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EvidenceParams; - static deserializeBinaryFromReader(message: EvidenceParams, reader: jspb.BinaryReader): EvidenceParams; + getMaxAgeNumBlocks(): number; + setMaxAgeNumBlocks(value: number): EvidenceParams; + getMaxAgeDuration(): number; + setMaxAgeDuration(value: number): EvidenceParams; + getMaxNum(): number; + setMaxNum(value: number): EvidenceParams; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EvidenceParams.AsObject; + static toObject(includeInstance: boolean, msg: EvidenceParams): EvidenceParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EvidenceParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EvidenceParams; + static deserializeBinaryFromReader(message: EvidenceParams, reader: jspb.BinaryReader): EvidenceParams; } export namespace EvidenceParams { - export type AsObject = { - maxAgeNumBlocks: number, - maxAgeDuration: number, - maxNum: number, - } + export type AsObject = { + maxAgeNumBlocks: number, + maxAgeDuration: number, + maxNum: number, + } } export class ValidatorParams extends jspb.Message { - clearPubKeyTypesList(): void; - getPubKeyTypesList(): Array; - setPubKeyTypesList(value: Array): void; - addPubKeyTypes(value: string, index?: number): string; + clearPubKeyTypesList(): void; + getPubKeyTypesList(): Array; + setPubKeyTypesList(value: Array): ValidatorParams; + addPubKeyTypes(value: string, index?: number): string; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorParams.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorParams): ValidatorParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorParams; - static deserializeBinaryFromReader(message: ValidatorParams, reader: jspb.BinaryReader): ValidatorParams; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidatorParams.AsObject; + static toObject(includeInstance: boolean, msg: ValidatorParams): ValidatorParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidatorParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidatorParams; + static deserializeBinaryFromReader(message: ValidatorParams, reader: jspb.BinaryReader): ValidatorParams; } export namespace ValidatorParams { - export type AsObject = { - pubKeyTypesList: Array, - } + export type AsObject = { + pubKeyTypesList: Array, + } } export class VersionParams extends jspb.Message { - getAppVersion(): number; - setAppVersion(value: number): void; + getAppVersion(): number; + setAppVersion(value: number): VersionParams; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VersionParams.AsObject; - static toObject(includeInstance: boolean, msg: VersionParams): VersionParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VersionParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VersionParams; - static deserializeBinaryFromReader(message: VersionParams, reader: jspb.BinaryReader): VersionParams; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VersionParams.AsObject; + static toObject(includeInstance: boolean, msg: VersionParams): VersionParams.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: VersionParams, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VersionParams; + static deserializeBinaryFromReader(message: VersionParams, reader: jspb.BinaryReader): VersionParams; } export namespace VersionParams { - export type AsObject = { - appVersion: number, - } + export type AsObject = { + appVersion: number, + } } export class Header extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; - - getHeight(): number; - setHeight(value: number): void; - - getTime(): number; - setTime(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Header.AsObject; - static toObject(includeInstance: boolean, msg: Header): Header.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Header, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Header; - static deserializeBinaryFromReader(message: Header, reader: jspb.BinaryReader): Header; + getChainId(): string; + setChainId(value: string): Header; + getHeight(): number; + setHeight(value: number): Header; + getTime(): number; + setTime(value: number): Header; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Header.AsObject; + static toObject(includeInstance: boolean, msg: Header): Header.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Header, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Header; + static deserializeBinaryFromReader(message: Header, reader: jspb.BinaryReader): Header; } export namespace Header { - export type AsObject = { - chainId: string, - height: number, - time: number, - } + export type AsObject = { + chainId: string, + height: number, + time: number, + } } export class PublicKey extends jspb.Message { - hasEd25519(): boolean; - clearEd25519(): void; - getEd25519(): Uint8Array | string; - getEd25519_asU8(): Uint8Array; - getEd25519_asB64(): string; - setEd25519(value: Uint8Array | string): void; - - getSumCase(): PublicKey.SumCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PublicKey.AsObject; - static toObject(includeInstance: boolean, msg: PublicKey): PublicKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PublicKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PublicKey; - static deserializeBinaryFromReader(message: PublicKey, reader: jspb.BinaryReader): PublicKey; + + hasEd25519(): boolean; + clearEd25519(): void; + getEd25519(): Uint8Array | string; + getEd25519_asU8(): Uint8Array; + getEd25519_asB64(): string; + setEd25519(value: Uint8Array | string): PublicKey; + + getSumCase(): PublicKey.SumCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PublicKey.AsObject; + static toObject(includeInstance: boolean, msg: PublicKey): PublicKey.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PublicKey, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PublicKey; + static deserializeBinaryFromReader(message: PublicKey, reader: jspb.BinaryReader): PublicKey; } export namespace PublicKey { - export type AsObject = { - ed25519: Uint8Array | string, - } + export type AsObject = { + ed25519: Uint8Array | string, + } - export enum SumCase { - SUM_NOT_SET = 0, - ED25519 = 1, - } -} + export enum SumCase { + SUM_NOT_SET = 0, + ED25519 = 1, + } -export interface EvidenceTypeMap { - UNKNOWN: 0; - DUPLICATE_VOTE: 1; - LIGHT_CLIENT_ATTACK: 2; } -export const EvidenceType: EvidenceTypeMap; - +export enum EvidenceType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2, +} diff --git a/grpc/clients/js/generated/tm/replay_pb_service.d.ts b/grpc/clients/js/generated/tm/replay_pb_service.d.ts deleted file mode 100644 index 7bf759e2..00000000 --- a/grpc/clients/js/generated/tm/replay_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: tm -// file: tm/replay.proto - diff --git a/grpc/clients/js/generated/tm/replay_pb_service.js b/grpc/clients/js/generated/tm/replay_pb_service.js deleted file mode 100644 index 7bf759e2..00000000 --- a/grpc/clients/js/generated/tm/replay_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: tm -// file: tm/replay.proto - diff --git a/grpc/clients/js/generated/vega_grpc_pb.d.ts b/grpc/clients/js/generated/vega_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/vega_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/vega_grpc_pb.js b/grpc/clients/js/generated/vega_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/vega_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/vega_pb.d.ts b/grpc/clients/js/generated/vega_pb.d.ts index 345da869..aae23e2a 100644 --- a/grpc/clients/js/generated/vega_pb.d.ts +++ b/grpc/clients/js/generated/vega_pb.d.ts @@ -1,1990 +1,1890 @@ // package: vega // file: vega.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as github_com_mwitkow_go_proto_validators_validator_pb from "./github.com/mwitkow/go-proto-validators/validator_pb"; import * as markets_pb from "./markets_pb"; +import * as assets_pb from "./assets_pb"; export class Price extends jspb.Message { - getValue(): number; - setValue(value: number): void; + getValue(): number; + setValue(value: number): Price; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Price.AsObject; - static toObject(includeInstance: boolean, msg: Price): Price.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Price, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Price; - static deserializeBinaryFromReader(message: Price, reader: jspb.BinaryReader): Price; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Price.AsObject; + static toObject(includeInstance: boolean, msg: Price): Price.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Price, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Price; + static deserializeBinaryFromReader(message: Price, reader: jspb.BinaryReader): Price; } export namespace Price { - export type AsObject = { - value: number, - } + export type AsObject = { + value: number, + } } export class Timestamp extends jspb.Message { - getValue(): number; - setValue(value: number): void; + getValue(): number; + setValue(value: number): Timestamp; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Timestamp.AsObject; - static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Timestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Timestamp; - static deserializeBinaryFromReader(message: Timestamp, reader: jspb.BinaryReader): Timestamp; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Timestamp.AsObject; + static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Timestamp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Timestamp; + static deserializeBinaryFromReader(message: Timestamp, reader: jspb.BinaryReader): Timestamp; } export namespace Timestamp { - export type AsObject = { - value: number, - } + export type AsObject = { + value: number, + } } export class Party extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Party.AsObject; - static toObject(includeInstance: boolean, msg: Party): Party.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Party, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Party; - static deserializeBinaryFromReader(message: Party, reader: jspb.BinaryReader): Party; + getId(): string; + setId(value: string): Party; + clearDelegationsList(): void; + getDelegationsList(): Array; + setDelegationsList(value: Array): Party; + addDelegations(value?: Delegation, index?: number): Delegation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Party.AsObject; + static toObject(includeInstance: boolean, msg: Party): Party.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Party, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Party; + static deserializeBinaryFromReader(message: Party, reader: jspb.BinaryReader): Party; } export namespace Party { - export type AsObject = { - id: string, - } + export type AsObject = { + id: string, + delegationsList: Array, + } } export class RiskFactor extends jspb.Message { - getMarket(): string; - setMarket(value: string): void; - - getShort(): number; - setShort(value: number): void; - - getLong(): number; - setLong(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RiskFactor.AsObject; - static toObject(includeInstance: boolean, msg: RiskFactor): RiskFactor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RiskFactor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RiskFactor; - static deserializeBinaryFromReader(message: RiskFactor, reader: jspb.BinaryReader): RiskFactor; + getMarket(): string; + setMarket(value: string): RiskFactor; + getShort(): number; + setShort(value: number): RiskFactor; + getLong(): number; + setLong(value: number): RiskFactor; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RiskFactor.AsObject; + static toObject(includeInstance: boolean, msg: RiskFactor): RiskFactor.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RiskFactor, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RiskFactor; + static deserializeBinaryFromReader(message: RiskFactor, reader: jspb.BinaryReader): RiskFactor; } export namespace RiskFactor { - export type AsObject = { - market: string, - pb_short: number, - pb_long: number, - } + export type AsObject = { + market: string, + pb_short: number, + pb_long: number, + } } export class RiskResult extends jspb.Message { - getUpdatedTimestamp(): number; - setUpdatedTimestamp(value: number): void; - - getRiskFactorsMap(): jspb.Map; - clearRiskFactorsMap(): void; - getNextUpdateTimestamp(): number; - setNextUpdateTimestamp(value: number): void; - - getPredictedNextRiskFactorsMap(): jspb.Map; - clearPredictedNextRiskFactorsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RiskResult.AsObject; - static toObject(includeInstance: boolean, msg: RiskResult): RiskResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RiskResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RiskResult; - static deserializeBinaryFromReader(message: RiskResult, reader: jspb.BinaryReader): RiskResult; + getUpdatedTimestamp(): number; + setUpdatedTimestamp(value: number): RiskResult; + + getRiskFactorsMap(): jspb.Map; + clearRiskFactorsMap(): void; + getNextUpdateTimestamp(): number; + setNextUpdateTimestamp(value: number): RiskResult; + + getPredictedNextRiskFactorsMap(): jspb.Map; + clearPredictedNextRiskFactorsMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RiskResult.AsObject; + static toObject(includeInstance: boolean, msg: RiskResult): RiskResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RiskResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RiskResult; + static deserializeBinaryFromReader(message: RiskResult, reader: jspb.BinaryReader): RiskResult; } export namespace RiskResult { - export type AsObject = { - updatedTimestamp: number, - riskFactorsMap: Array<[string, RiskFactor.AsObject]>, - nextUpdateTimestamp: number, - predictedNextRiskFactorsMap: Array<[string, RiskFactor.AsObject]>, - } + export type AsObject = { + updatedTimestamp: number, + + riskFactorsMap: Array<[string, RiskFactor.AsObject]>, + nextUpdateTimestamp: number, + + predictedNextRiskFactorsMap: Array<[string, RiskFactor.AsObject]>, + } } export class PeggedOrder extends jspb.Message { - getReference(): PeggedReferenceMap[keyof PeggedReferenceMap]; - setReference(value: PeggedReferenceMap[keyof PeggedReferenceMap]): void; + getReference(): PeggedReference; + setReference(value: PeggedReference): PeggedOrder; + getOffset(): number; + setOffset(value: number): PeggedOrder; - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PeggedOrder.AsObject; - static toObject(includeInstance: boolean, msg: PeggedOrder): PeggedOrder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PeggedOrder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PeggedOrder; - static deserializeBinaryFromReader(message: PeggedOrder, reader: jspb.BinaryReader): PeggedOrder; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PeggedOrder.AsObject; + static toObject(includeInstance: boolean, msg: PeggedOrder): PeggedOrder.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PeggedOrder, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PeggedOrder; + static deserializeBinaryFromReader(message: PeggedOrder, reader: jspb.BinaryReader): PeggedOrder; } export namespace PeggedOrder { - export type AsObject = { - reference: PeggedReferenceMap[keyof PeggedReferenceMap], - offset: number, - } + export type AsObject = { + reference: PeggedReference, + offset: number, + } } export class Order extends jspb.Message { - getId(): string; - setId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getSide(): SideMap[keyof SideMap]; - setSide(value: SideMap[keyof SideMap]): void; - - getPrice(): number; - setPrice(value: number): void; - - getSize(): number; - setSize(value: number): void; - - getRemaining(): number; - setRemaining(value: number): void; - - getTimeInForce(): Order.TimeInForceMap[keyof Order.TimeInForceMap]; - setTimeInForce(value: Order.TimeInForceMap[keyof Order.TimeInForceMap]): void; - - getType(): Order.TypeMap[keyof Order.TypeMap]; - setType(value: Order.TypeMap[keyof Order.TypeMap]): void; - - getCreatedAt(): number; - setCreatedAt(value: number): void; - - getStatus(): Order.StatusMap[keyof Order.StatusMap]; - setStatus(value: Order.StatusMap[keyof Order.StatusMap]): void; - - getExpiresAt(): number; - setExpiresAt(value: number): void; - - getReference(): string; - setReference(value: string): void; - - getReason(): OrderErrorMap[keyof OrderErrorMap]; - setReason(value: OrderErrorMap[keyof OrderErrorMap]): void; - - getUpdatedAt(): number; - setUpdatedAt(value: number): void; - - getVersion(): number; - setVersion(value: number): void; - - getBatchId(): number; - setBatchId(value: number): void; - - hasPeggedOrder(): boolean; - clearPeggedOrder(): void; - getPeggedOrder(): PeggedOrder | undefined; - setPeggedOrder(value?: PeggedOrder): void; - - getLiquidityProvisionId(): string; - setLiquidityProvisionId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Order.AsObject; - static toObject(includeInstance: boolean, msg: Order): Order.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Order, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Order; - static deserializeBinaryFromReader(message: Order, reader: jspb.BinaryReader): Order; + getId(): string; + setId(value: string): Order; + getMarketId(): string; + setMarketId(value: string): Order; + getPartyId(): string; + setPartyId(value: string): Order; + getSide(): Side; + setSide(value: Side): Order; + getPrice(): number; + setPrice(value: number): Order; + getSize(): number; + setSize(value: number): Order; + getRemaining(): number; + setRemaining(value: number): Order; + getTimeInForce(): Order.TimeInForce; + setTimeInForce(value: Order.TimeInForce): Order; + getType(): Order.Type; + setType(value: Order.Type): Order; + getCreatedAt(): number; + setCreatedAt(value: number): Order; + getStatus(): Order.Status; + setStatus(value: Order.Status): Order; + getExpiresAt(): number; + setExpiresAt(value: number): Order; + getReference(): string; + setReference(value: string): Order; + getReason(): OrderError; + setReason(value: OrderError): Order; + getUpdatedAt(): number; + setUpdatedAt(value: number): Order; + getVersion(): number; + setVersion(value: number): Order; + getBatchId(): number; + setBatchId(value: number): Order; + + hasPeggedOrder(): boolean; + clearPeggedOrder(): void; + getPeggedOrder(): PeggedOrder | undefined; + setPeggedOrder(value?: PeggedOrder): Order; + getLiquidityProvisionId(): string; + setLiquidityProvisionId(value: string): Order; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Order.AsObject; + static toObject(includeInstance: boolean, msg: Order): Order.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Order, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Order; + static deserializeBinaryFromReader(message: Order, reader: jspb.BinaryReader): Order; } export namespace Order { - export type AsObject = { - id: string, - marketId: string, - partyId: string, - side: SideMap[keyof SideMap], - price: number, - size: number, - remaining: number, - timeInForce: Order.TimeInForceMap[keyof Order.TimeInForceMap], - type: Order.TypeMap[keyof Order.TypeMap], - createdAt: number, - status: Order.StatusMap[keyof Order.StatusMap], - expiresAt: number, - reference: string, - reason: OrderErrorMap[keyof OrderErrorMap], - updatedAt: number, - version: number, - batchId: number, - peggedOrder?: PeggedOrder.AsObject, - liquidityProvisionId: string, - } - - export interface TimeInForceMap { - TIME_IN_FORCE_UNSPECIFIED: 0; - TIME_IN_FORCE_GTC: 1; - TIME_IN_FORCE_GTT: 2; - TIME_IN_FORCE_IOC: 3; - TIME_IN_FORCE_FOK: 4; - TIME_IN_FORCE_GFA: 5; - TIME_IN_FORCE_GFN: 6; - } - - export const TimeInForce: TimeInForceMap; - - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_LIMIT: 1; - TYPE_MARKET: 2; - TYPE_NETWORK: 3; - } - - export const Type: TypeMap; - - export interface StatusMap { - STATUS_UNSPECIFIED: 0; - STATUS_ACTIVE: 1; - STATUS_EXPIRED: 2; - STATUS_CANCELLED: 3; - STATUS_STOPPED: 4; - STATUS_FILLED: 5; - STATUS_REJECTED: 6; - STATUS_PARTIALLY_FILLED: 7; - STATUS_PARKED: 8; - } - - export const Status: StatusMap; + export type AsObject = { + id: string, + marketId: string, + partyId: string, + side: Side, + price: number, + size: number, + remaining: number, + timeInForce: Order.TimeInForce, + type: Order.Type, + createdAt: number, + status: Order.Status, + expiresAt: number, + reference: string, + reason: OrderError, + updatedAt: number, + version: number, + batchId: number, + peggedOrder?: PeggedOrder.AsObject, + liquidityProvisionId: string, + } + + export enum TimeInForce { + TIME_IN_FORCE_UNSPECIFIED = 0, + TIME_IN_FORCE_GTC = 1, + TIME_IN_FORCE_GTT = 2, + TIME_IN_FORCE_IOC = 3, + TIME_IN_FORCE_FOK = 4, + TIME_IN_FORCE_GFA = 5, + TIME_IN_FORCE_GFN = 6, + } + + export enum Type { + TYPE_UNSPECIFIED = 0, + TYPE_LIMIT = 1, + TYPE_MARKET = 2, + TYPE_NETWORK = 3, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_ACTIVE = 1, + STATUS_EXPIRED = 2, + STATUS_CANCELLED = 3, + STATUS_STOPPED = 4, + STATUS_FILLED = 5, + STATUS_REJECTED = 6, + STATUS_PARTIALLY_FILLED = 7, + STATUS_PARKED = 8, + } + } export class OrderCancellationConfirmation extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): Order | undefined; - setOrder(value?: Order): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderCancellationConfirmation.AsObject; - static toObject(includeInstance: boolean, msg: OrderCancellationConfirmation): OrderCancellationConfirmation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderCancellationConfirmation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderCancellationConfirmation; - static deserializeBinaryFromReader(message: OrderCancellationConfirmation, reader: jspb.BinaryReader): OrderCancellationConfirmation; + hasOrder(): boolean; + clearOrder(): void; + getOrder(): Order | undefined; + setOrder(value?: Order): OrderCancellationConfirmation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OrderCancellationConfirmation.AsObject; + static toObject(includeInstance: boolean, msg: OrderCancellationConfirmation): OrderCancellationConfirmation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OrderCancellationConfirmation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OrderCancellationConfirmation; + static deserializeBinaryFromReader(message: OrderCancellationConfirmation, reader: jspb.BinaryReader): OrderCancellationConfirmation; } export namespace OrderCancellationConfirmation { - export type AsObject = { - order?: Order.AsObject, - } + export type AsObject = { + order?: Order.AsObject, + } } export class OrderConfirmation extends jspb.Message { - hasOrder(): boolean; - clearOrder(): void; - getOrder(): Order | undefined; - setOrder(value?: Order): void; - - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: Trade, index?: number): Trade; - - clearPassiveOrdersAffectedList(): void; - getPassiveOrdersAffectedList(): Array; - setPassiveOrdersAffectedList(value: Array): void; - addPassiveOrdersAffected(value?: Order, index?: number): Order; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrderConfirmation.AsObject; - static toObject(includeInstance: boolean, msg: OrderConfirmation): OrderConfirmation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OrderConfirmation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrderConfirmation; - static deserializeBinaryFromReader(message: OrderConfirmation, reader: jspb.BinaryReader): OrderConfirmation; + + hasOrder(): boolean; + clearOrder(): void; + getOrder(): Order | undefined; + setOrder(value?: Order): OrderConfirmation; + clearTradesList(): void; + getTradesList(): Array; + setTradesList(value: Array): OrderConfirmation; + addTrades(value?: Trade, index?: number): Trade; + clearPassiveOrdersAffectedList(): void; + getPassiveOrdersAffectedList(): Array; + setPassiveOrdersAffectedList(value: Array): OrderConfirmation; + addPassiveOrdersAffected(value?: Order, index?: number): Order; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OrderConfirmation.AsObject; + static toObject(includeInstance: boolean, msg: OrderConfirmation): OrderConfirmation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OrderConfirmation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OrderConfirmation; + static deserializeBinaryFromReader(message: OrderConfirmation, reader: jspb.BinaryReader): OrderConfirmation; } export namespace OrderConfirmation { - export type AsObject = { - order?: Order.AsObject, - tradesList: Array, - passiveOrdersAffectedList: Array, - } + export type AsObject = { + order?: Order.AsObject, + tradesList: Array, + passiveOrdersAffectedList: Array, + } } export class AuctionIndicativeState extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getIndicativePrice(): number; - setIndicativePrice(value: number): void; - - getIndicativeVolume(): number; - setIndicativeVolume(value: number): void; - - getAuctionStart(): number; - setAuctionStart(value: number): void; - - getAuctionEnd(): number; - setAuctionEnd(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuctionIndicativeState.AsObject; - static toObject(includeInstance: boolean, msg: AuctionIndicativeState): AuctionIndicativeState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuctionIndicativeState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuctionIndicativeState; - static deserializeBinaryFromReader(message: AuctionIndicativeState, reader: jspb.BinaryReader): AuctionIndicativeState; + getMarketId(): string; + setMarketId(value: string): AuctionIndicativeState; + getIndicativePrice(): number; + setIndicativePrice(value: number): AuctionIndicativeState; + getIndicativeVolume(): number; + setIndicativeVolume(value: number): AuctionIndicativeState; + getAuctionStart(): number; + setAuctionStart(value: number): AuctionIndicativeState; + getAuctionEnd(): number; + setAuctionEnd(value: number): AuctionIndicativeState; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AuctionIndicativeState.AsObject; + static toObject(includeInstance: boolean, msg: AuctionIndicativeState): AuctionIndicativeState.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AuctionIndicativeState, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AuctionIndicativeState; + static deserializeBinaryFromReader(message: AuctionIndicativeState, reader: jspb.BinaryReader): AuctionIndicativeState; } export namespace AuctionIndicativeState { - export type AsObject = { - marketId: string, - indicativePrice: number, - indicativeVolume: number, - auctionStart: number, - auctionEnd: number, - } + export type AsObject = { + marketId: string, + indicativePrice: number, + indicativeVolume: number, + auctionStart: number, + auctionEnd: number, + } } export class Trade extends jspb.Message { - getId(): string; - setId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getPrice(): number; - setPrice(value: number): void; - - getSize(): number; - setSize(value: number): void; - - getBuyer(): string; - setBuyer(value: string): void; - - getSeller(): string; - setSeller(value: string): void; - - getAggressor(): SideMap[keyof SideMap]; - setAggressor(value: SideMap[keyof SideMap]): void; - - getBuyOrder(): string; - setBuyOrder(value: string): void; - - getSellOrder(): string; - setSellOrder(value: string): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - getType(): Trade.TypeMap[keyof Trade.TypeMap]; - setType(value: Trade.TypeMap[keyof Trade.TypeMap]): void; - - hasBuyerFee(): boolean; - clearBuyerFee(): void; - getBuyerFee(): Fee | undefined; - setBuyerFee(value?: Fee): void; - - hasSellerFee(): boolean; - clearSellerFee(): void; - getSellerFee(): Fee | undefined; - setSellerFee(value?: Fee): void; - - getBuyerAuctionBatch(): number; - setBuyerAuctionBatch(value: number): void; - - getSellerAuctionBatch(): number; - setSellerAuctionBatch(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Trade.AsObject; - static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Trade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Trade; - static deserializeBinaryFromReader(message: Trade, reader: jspb.BinaryReader): Trade; + getId(): string; + setId(value: string): Trade; + getMarketId(): string; + setMarketId(value: string): Trade; + getPrice(): number; + setPrice(value: number): Trade; + getSize(): number; + setSize(value: number): Trade; + getBuyer(): string; + setBuyer(value: string): Trade; + getSeller(): string; + setSeller(value: string): Trade; + getAggressor(): Side; + setAggressor(value: Side): Trade; + getBuyOrder(): string; + setBuyOrder(value: string): Trade; + getSellOrder(): string; + setSellOrder(value: string): Trade; + getTimestamp(): number; + setTimestamp(value: number): Trade; + getType(): Trade.Type; + setType(value: Trade.Type): Trade; + + hasBuyerFee(): boolean; + clearBuyerFee(): void; + getBuyerFee(): Fee | undefined; + setBuyerFee(value?: Fee): Trade; + + hasSellerFee(): boolean; + clearSellerFee(): void; + getSellerFee(): Fee | undefined; + setSellerFee(value?: Fee): Trade; + getBuyerAuctionBatch(): number; + setBuyerAuctionBatch(value: number): Trade; + getSellerAuctionBatch(): number; + setSellerAuctionBatch(value: number): Trade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Trade.AsObject; + static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Trade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Trade; + static deserializeBinaryFromReader(message: Trade, reader: jspb.BinaryReader): Trade; } export namespace Trade { - export type AsObject = { - id: string, - marketId: string, - price: number, - size: number, - buyer: string, - seller: string, - aggressor: SideMap[keyof SideMap], - buyOrder: string, - sellOrder: string, - timestamp: number, - type: Trade.TypeMap[keyof Trade.TypeMap], - buyerFee?: Fee.AsObject, - sellerFee?: Fee.AsObject, - buyerAuctionBatch: number, - sellerAuctionBatch: number, - } - - export interface TypeMap { - TYPE_UNSPECIFIED: 0; - TYPE_DEFAULT: 1; - TYPE_NETWORK_CLOSE_OUT_GOOD: 2; - TYPE_NETWORK_CLOSE_OUT_BAD: 3; - } - - export const Type: TypeMap; + export type AsObject = { + id: string, + marketId: string, + price: number, + size: number, + buyer: string, + seller: string, + aggressor: Side, + buyOrder: string, + sellOrder: string, + timestamp: number, + type: Trade.Type, + buyerFee?: Fee.AsObject, + sellerFee?: Fee.AsObject, + buyerAuctionBatch: number, + sellerAuctionBatch: number, + } + + export enum Type { + TYPE_UNSPECIFIED = 0, + TYPE_DEFAULT = 1, + TYPE_NETWORK_CLOSE_OUT_GOOD = 2, + TYPE_NETWORK_CLOSE_OUT_BAD = 3, + } + } export class Fee extends jspb.Message { - getMakerFee(): number; - setMakerFee(value: number): void; - - getInfrastructureFee(): number; - setInfrastructureFee(value: number): void; - - getLiquidityFee(): number; - setLiquidityFee(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Fee.AsObject; - static toObject(includeInstance: boolean, msg: Fee): Fee.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Fee, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Fee; - static deserializeBinaryFromReader(message: Fee, reader: jspb.BinaryReader): Fee; + getMakerFee(): number; + setMakerFee(value: number): Fee; + getInfrastructureFee(): number; + setInfrastructureFee(value: number): Fee; + getLiquidityFee(): number; + setLiquidityFee(value: number): Fee; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Fee.AsObject; + static toObject(includeInstance: boolean, msg: Fee): Fee.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Fee, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Fee; + static deserializeBinaryFromReader(message: Fee, reader: jspb.BinaryReader): Fee; } export namespace Fee { - export type AsObject = { - makerFee: number, - infrastructureFee: number, - liquidityFee: number, - } + export type AsObject = { + makerFee: number, + infrastructureFee: number, + liquidityFee: number, + } } export class TradeSet extends jspb.Message { - clearTradesList(): void; - getTradesList(): Array; - setTradesList(value: Array): void; - addTrades(value?: Trade, index?: number): Trade; + clearTradesList(): void; + getTradesList(): Array; + setTradesList(value: Array): TradeSet; + addTrades(value?: Trade, index?: number): Trade; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeSet.AsObject; - static toObject(includeInstance: boolean, msg: TradeSet): TradeSet.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TradeSet, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeSet; - static deserializeBinaryFromReader(message: TradeSet, reader: jspb.BinaryReader): TradeSet; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeSet.AsObject; + static toObject(includeInstance: boolean, msg: TradeSet): TradeSet.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TradeSet, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeSet; + static deserializeBinaryFromReader(message: TradeSet, reader: jspb.BinaryReader): TradeSet; } export namespace TradeSet { - export type AsObject = { - tradesList: Array, - } + export type AsObject = { + tradesList: Array, + } } export class Candle extends jspb.Message { - getTimestamp(): number; - setTimestamp(value: number): void; - - getDatetime(): string; - setDatetime(value: string): void; - - getHigh(): number; - setHigh(value: number): void; - - getLow(): number; - setLow(value: number): void; - - getOpen(): number; - setOpen(value: number): void; - - getClose(): number; - setClose(value: number): void; - - getVolume(): number; - setVolume(value: number): void; - - getInterval(): IntervalMap[keyof IntervalMap]; - setInterval(value: IntervalMap[keyof IntervalMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Candle.AsObject; - static toObject(includeInstance: boolean, msg: Candle): Candle.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Candle, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Candle; - static deserializeBinaryFromReader(message: Candle, reader: jspb.BinaryReader): Candle; + getTimestamp(): number; + setTimestamp(value: number): Candle; + getDatetime(): string; + setDatetime(value: string): Candle; + getHigh(): number; + setHigh(value: number): Candle; + getLow(): number; + setLow(value: number): Candle; + getOpen(): number; + setOpen(value: number): Candle; + getClose(): number; + setClose(value: number): Candle; + getVolume(): number; + setVolume(value: number): Candle; + getInterval(): Interval; + setInterval(value: Interval): Candle; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Candle.AsObject; + static toObject(includeInstance: boolean, msg: Candle): Candle.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Candle, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Candle; + static deserializeBinaryFromReader(message: Candle, reader: jspb.BinaryReader): Candle; } export namespace Candle { - export type AsObject = { - timestamp: number, - datetime: string, - high: number, - low: number, - open: number, - close: number, - volume: number, - interval: IntervalMap[keyof IntervalMap], - } + export type AsObject = { + timestamp: number, + datetime: string, + high: number, + low: number, + open: number, + close: number, + volume: number, + interval: Interval, + } } export class PriceLevel extends jspb.Message { - getPrice(): number; - setPrice(value: number): void; - - getNumberOfOrders(): number; - setNumberOfOrders(value: number): void; - - getVolume(): number; - setVolume(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceLevel.AsObject; - static toObject(includeInstance: boolean, msg: PriceLevel): PriceLevel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceLevel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceLevel; - static deserializeBinaryFromReader(message: PriceLevel, reader: jspb.BinaryReader): PriceLevel; + getPrice(): number; + setPrice(value: number): PriceLevel; + getNumberOfOrders(): number; + setNumberOfOrders(value: number): PriceLevel; + getVolume(): number; + setVolume(value: number): PriceLevel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceLevel.AsObject; + static toObject(includeInstance: boolean, msg: PriceLevel): PriceLevel.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceLevel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceLevel; + static deserializeBinaryFromReader(message: PriceLevel, reader: jspb.BinaryReader): PriceLevel; } export namespace PriceLevel { - export type AsObject = { - price: number, - numberOfOrders: number, - volume: number, - } + export type AsObject = { + price: number, + numberOfOrders: number, + volume: number, + } } export class MarketDepth extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - clearBuyList(): void; - getBuyList(): Array; - setBuyList(value: Array): void; - addBuy(value?: PriceLevel, index?: number): PriceLevel; - - clearSellList(): void; - getSellList(): Array; - setSellList(value: Array): void; - addSell(value?: PriceLevel, index?: number): PriceLevel; - - getSequenceNumber(): number; - setSequenceNumber(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepth.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepth): MarketDepth.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepth, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepth; - static deserializeBinaryFromReader(message: MarketDepth, reader: jspb.BinaryReader): MarketDepth; + getMarketId(): string; + setMarketId(value: string): MarketDepth; + clearBuyList(): void; + getBuyList(): Array; + setBuyList(value: Array): MarketDepth; + addBuy(value?: PriceLevel, index?: number): PriceLevel; + clearSellList(): void; + getSellList(): Array; + setSellList(value: Array): MarketDepth; + addSell(value?: PriceLevel, index?: number): PriceLevel; + getSequenceNumber(): number; + setSequenceNumber(value: number): MarketDepth; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketDepth.AsObject; + static toObject(includeInstance: boolean, msg: MarketDepth): MarketDepth.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketDepth, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketDepth; + static deserializeBinaryFromReader(message: MarketDepth, reader: jspb.BinaryReader): MarketDepth; } export namespace MarketDepth { - export type AsObject = { - marketId: string, - buyList: Array, - sellList: Array, - sequenceNumber: number, - } + export type AsObject = { + marketId: string, + buyList: Array, + sellList: Array, + sequenceNumber: number, + } } export class MarketDepthUpdate extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - clearBuyList(): void; - getBuyList(): Array; - setBuyList(value: Array): void; - addBuy(value?: PriceLevel, index?: number): PriceLevel; - - clearSellList(): void; - getSellList(): Array; - setSellList(value: Array): void; - addSell(value?: PriceLevel, index?: number): PriceLevel; - - getSequenceNumber(): number; - setSequenceNumber(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketDepthUpdate.AsObject; - static toObject(includeInstance: boolean, msg: MarketDepthUpdate): MarketDepthUpdate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketDepthUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketDepthUpdate; - static deserializeBinaryFromReader(message: MarketDepthUpdate, reader: jspb.BinaryReader): MarketDepthUpdate; + getMarketId(): string; + setMarketId(value: string): MarketDepthUpdate; + clearBuyList(): void; + getBuyList(): Array; + setBuyList(value: Array): MarketDepthUpdate; + addBuy(value?: PriceLevel, index?: number): PriceLevel; + clearSellList(): void; + getSellList(): Array; + setSellList(value: Array): MarketDepthUpdate; + addSell(value?: PriceLevel, index?: number): PriceLevel; + getSequenceNumber(): number; + setSequenceNumber(value: number): MarketDepthUpdate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketDepthUpdate.AsObject; + static toObject(includeInstance: boolean, msg: MarketDepthUpdate): MarketDepthUpdate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketDepthUpdate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketDepthUpdate; + static deserializeBinaryFromReader(message: MarketDepthUpdate, reader: jspb.BinaryReader): MarketDepthUpdate; } export namespace MarketDepthUpdate { - export type AsObject = { - marketId: string, - buyList: Array, - sellList: Array, - sequenceNumber: number, - } + export type AsObject = { + marketId: string, + buyList: Array, + sellList: Array, + sequenceNumber: number, + } } export class Position extends jspb.Message { - getMarketId(): string; - setMarketId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getOpenVolume(): number; - setOpenVolume(value: number): void; - - getRealisedPnl(): number; - setRealisedPnl(value: number): void; - - getUnrealisedPnl(): number; - setUnrealisedPnl(value: number): void; - - getAverageEntryPrice(): number; - setAverageEntryPrice(value: number): void; - - getUpdatedAt(): number; - setUpdatedAt(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Position.AsObject; - static toObject(includeInstance: boolean, msg: Position): Position.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Position; - static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; + getMarketId(): string; + setMarketId(value: string): Position; + getPartyId(): string; + setPartyId(value: string): Position; + getOpenVolume(): number; + setOpenVolume(value: number): Position; + getRealisedPnl(): number; + setRealisedPnl(value: number): Position; + getUnrealisedPnl(): number; + setUnrealisedPnl(value: number): Position; + getAverageEntryPrice(): number; + setAverageEntryPrice(value: number): Position; + getUpdatedAt(): number; + setUpdatedAt(value: number): Position; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Position.AsObject; + static toObject(includeInstance: boolean, msg: Position): Position.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Position; + static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; } export namespace Position { - export type AsObject = { - marketId: string, - partyId: string, - openVolume: number, - realisedPnl: number, - unrealisedPnl: number, - averageEntryPrice: number, - updatedAt: number, - } + export type AsObject = { + marketId: string, + partyId: string, + openVolume: number, + realisedPnl: number, + unrealisedPnl: number, + averageEntryPrice: number, + updatedAt: number, + } } export class PositionTrade extends jspb.Message { - getVolume(): number; - setVolume(value: number): void; - - getPrice(): number; - setPrice(value: number): void; + getVolume(): number; + setVolume(value: number): PositionTrade; + getPrice(): number; + setPrice(value: number): PositionTrade; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PositionTrade.AsObject; - static toObject(includeInstance: boolean, msg: PositionTrade): PositionTrade.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PositionTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PositionTrade; - static deserializeBinaryFromReader(message: PositionTrade, reader: jspb.BinaryReader): PositionTrade; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PositionTrade.AsObject; + static toObject(includeInstance: boolean, msg: PositionTrade): PositionTrade.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PositionTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PositionTrade; + static deserializeBinaryFromReader(message: PositionTrade, reader: jspb.BinaryReader): PositionTrade; } export namespace PositionTrade { - export type AsObject = { - volume: number, - price: number, - } -} - -export class Statistics extends jspb.Message { - getBlockHeight(): number; - setBlockHeight(value: number): void; - - getBacklogLength(): number; - setBacklogLength(value: number): void; - - getTotalPeers(): number; - setTotalPeers(value: number): void; - - getGenesisTime(): string; - setGenesisTime(value: string): void; - - getCurrentTime(): string; - setCurrentTime(value: string): void; - - getVegaTime(): string; - setVegaTime(value: string): void; - - getStatus(): ChainStatusMap[keyof ChainStatusMap]; - setStatus(value: ChainStatusMap[keyof ChainStatusMap]): void; - - getTxPerBlock(): number; - setTxPerBlock(value: number): void; - - getAverageTxBytes(): number; - setAverageTxBytes(value: number): void; - - getAverageOrdersPerBlock(): number; - setAverageOrdersPerBlock(value: number): void; - - getTradesPerSecond(): number; - setTradesPerSecond(value: number): void; - - getOrdersPerSecond(): number; - setOrdersPerSecond(value: number): void; - - getTotalMarkets(): number; - setTotalMarkets(value: number): void; - - getTotalAmendOrder(): number; - setTotalAmendOrder(value: number): void; - - getTotalCancelOrder(): number; - setTotalCancelOrder(value: number): void; - - getTotalCreateOrder(): number; - setTotalCreateOrder(value: number): void; - - getTotalOrders(): number; - setTotalOrders(value: number): void; - - getTotalTrades(): number; - setTotalTrades(value: number): void; - - getOrderSubscriptions(): number; - setOrderSubscriptions(value: number): void; - - getTradeSubscriptions(): number; - setTradeSubscriptions(value: number): void; - - getCandleSubscriptions(): number; - setCandleSubscriptions(value: number): void; - - getMarketDepthSubscriptions(): number; - setMarketDepthSubscriptions(value: number): void; - - getPositionsSubscriptions(): number; - setPositionsSubscriptions(value: number): void; - - getAccountSubscriptions(): number; - setAccountSubscriptions(value: number): void; - - getMarketDataSubscriptions(): number; - setMarketDataSubscriptions(value: number): void; - - getAppVersionHash(): string; - setAppVersionHash(value: string): void; - - getAppVersion(): string; - setAppVersion(value: string): void; - - getChainVersion(): string; - setChainVersion(value: string): void; - - getBlockDuration(): number; - setBlockDuration(value: number): void; - - getUptime(): string; - setUptime(value: string): void; - - getChainId(): string; - setChainId(value: string): void; - - getMarketDepthUpdatesSubscriptions(): number; - setMarketDepthUpdatesSubscriptions(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Statistics.AsObject; - static toObject(includeInstance: boolean, msg: Statistics): Statistics.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Statistics, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Statistics; - static deserializeBinaryFromReader(message: Statistics, reader: jspb.BinaryReader): Statistics; -} - -export namespace Statistics { - export type AsObject = { - blockHeight: number, - backlogLength: number, - totalPeers: number, - genesisTime: string, - currentTime: string, - vegaTime: string, - status: ChainStatusMap[keyof ChainStatusMap], - txPerBlock: number, - averageTxBytes: number, - averageOrdersPerBlock: number, - tradesPerSecond: number, - ordersPerSecond: number, - totalMarkets: number, - totalAmendOrder: number, - totalCancelOrder: number, - totalCreateOrder: number, - totalOrders: number, - totalTrades: number, - orderSubscriptions: number, - tradeSubscriptions: number, - candleSubscriptions: number, - marketDepthSubscriptions: number, - positionsSubscriptions: number, - accountSubscriptions: number, - marketDataSubscriptions: number, - appVersionHash: string, - appVersion: string, - chainVersion: string, - blockDuration: number, - uptime: string, - chainId: string, - marketDepthUpdatesSubscriptions: number, - } + export type AsObject = { + volume: number, + price: number, + } } export class Deposit extends jspb.Message { - getId(): string; - setId(value: string): void; - - getStatus(): Deposit.StatusMap[keyof Deposit.StatusMap]; - setStatus(value: Deposit.StatusMap[keyof Deposit.StatusMap]): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAsset(): string; - setAsset(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - getTxHash(): string; - setTxHash(value: string): void; - - getCreditedTimestamp(): number; - setCreditedTimestamp(value: number): void; - - getCreatedTimestamp(): number; - setCreatedTimestamp(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Deposit.AsObject; - static toObject(includeInstance: boolean, msg: Deposit): Deposit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Deposit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Deposit; - static deserializeBinaryFromReader(message: Deposit, reader: jspb.BinaryReader): Deposit; + getId(): string; + setId(value: string): Deposit; + getStatus(): Deposit.Status; + setStatus(value: Deposit.Status): Deposit; + getPartyId(): string; + setPartyId(value: string): Deposit; + getAsset(): string; + setAsset(value: string): Deposit; + getAmount(): string; + setAmount(value: string): Deposit; + getTxHash(): string; + setTxHash(value: string): Deposit; + getCreditedTimestamp(): number; + setCreditedTimestamp(value: number): Deposit; + getCreatedTimestamp(): number; + setCreatedTimestamp(value: number): Deposit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Deposit.AsObject; + static toObject(includeInstance: boolean, msg: Deposit): Deposit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Deposit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Deposit; + static deserializeBinaryFromReader(message: Deposit, reader: jspb.BinaryReader): Deposit; } export namespace Deposit { - export type AsObject = { - id: string, - status: Deposit.StatusMap[keyof Deposit.StatusMap], - partyId: string, - asset: string, - amount: string, - txHash: string, - creditedTimestamp: number, - createdTimestamp: number, - } - - export interface StatusMap { - STATUS_UNSPECIFIED: 0; - STATUS_OPEN: 1; - STATUS_CANCELLED: 2; - STATUS_FINALIZED: 3; - } - - export const Status: StatusMap; + export type AsObject = { + id: string, + status: Deposit.Status, + partyId: string, + asset: string, + amount: string, + txHash: string, + creditedTimestamp: number, + createdTimestamp: number, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_OPEN = 1, + STATUS_CANCELLED = 2, + STATUS_FINALIZED = 3, + } + } export class Withdrawal extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - getAsset(): string; - setAsset(value: string): void; - - getStatus(): Withdrawal.StatusMap[keyof Withdrawal.StatusMap]; - setStatus(value: Withdrawal.StatusMap[keyof Withdrawal.StatusMap]): void; - - getRef(): string; - setRef(value: string): void; - - getExpiry(): number; - setExpiry(value: number): void; - - getTxHash(): string; - setTxHash(value: string): void; - - getCreatedTimestamp(): number; - setCreatedTimestamp(value: number): void; - - getWithdrawnTimestamp(): number; - setWithdrawnTimestamp(value: number): void; - - hasExt(): boolean; - clearExt(): void; - getExt(): WithdrawExt | undefined; - setExt(value?: WithdrawExt): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Withdrawal.AsObject; - static toObject(includeInstance: boolean, msg: Withdrawal): Withdrawal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Withdrawal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Withdrawal; - static deserializeBinaryFromReader(message: Withdrawal, reader: jspb.BinaryReader): Withdrawal; + getId(): string; + setId(value: string): Withdrawal; + getPartyId(): string; + setPartyId(value: string): Withdrawal; + getAmount(): number; + setAmount(value: number): Withdrawal; + getAsset(): string; + setAsset(value: string): Withdrawal; + getStatus(): Withdrawal.Status; + setStatus(value: Withdrawal.Status): Withdrawal; + getRef(): string; + setRef(value: string): Withdrawal; + getExpiry(): number; + setExpiry(value: number): Withdrawal; + getTxHash(): string; + setTxHash(value: string): Withdrawal; + getCreatedTimestamp(): number; + setCreatedTimestamp(value: number): Withdrawal; + getWithdrawnTimestamp(): number; + setWithdrawnTimestamp(value: number): Withdrawal; + + hasExt(): boolean; + clearExt(): void; + getExt(): WithdrawExt | undefined; + setExt(value?: WithdrawExt): Withdrawal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Withdrawal.AsObject; + static toObject(includeInstance: boolean, msg: Withdrawal): Withdrawal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Withdrawal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Withdrawal; + static deserializeBinaryFromReader(message: Withdrawal, reader: jspb.BinaryReader): Withdrawal; } export namespace Withdrawal { - export type AsObject = { - id: string, - partyId: string, - amount: number, - asset: string, - status: Withdrawal.StatusMap[keyof Withdrawal.StatusMap], - ref: string, - expiry: number, - txHash: string, - createdTimestamp: number, - withdrawnTimestamp: number, - ext?: WithdrawExt.AsObject, - } - - export interface StatusMap { - STATUS_UNSPECIFIED: 0; - STATUS_OPEN: 1; - STATUS_CANCELLED: 2; - STATUS_FINALIZED: 3; - } - - export const Status: StatusMap; + export type AsObject = { + id: string, + partyId: string, + amount: number, + asset: string, + status: Withdrawal.Status, + ref: string, + expiry: number, + txHash: string, + createdTimestamp: number, + withdrawnTimestamp: number, + ext?: WithdrawExt.AsObject, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_OPEN = 1, + STATUS_CANCELLED = 2, + STATUS_FINALIZED = 3, + } + } export class WithdrawExt extends jspb.Message { - hasErc20(): boolean; - clearErc20(): void; - getErc20(): Erc20WithdrawExt | undefined; - setErc20(value?: Erc20WithdrawExt): void; - - getExtCase(): WithdrawExt.ExtCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawExt.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawExt): WithdrawExt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WithdrawExt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawExt; - static deserializeBinaryFromReader(message: WithdrawExt, reader: jspb.BinaryReader): WithdrawExt; + + hasErc20(): boolean; + clearErc20(): void; + getErc20(): Erc20WithdrawExt | undefined; + setErc20(value?: Erc20WithdrawExt): WithdrawExt; + + getExtCase(): WithdrawExt.ExtCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WithdrawExt.AsObject; + static toObject(includeInstance: boolean, msg: WithdrawExt): WithdrawExt.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WithdrawExt, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WithdrawExt; + static deserializeBinaryFromReader(message: WithdrawExt, reader: jspb.BinaryReader): WithdrawExt; } export namespace WithdrawExt { - export type AsObject = { - erc20?: Erc20WithdrawExt.AsObject, - } + export type AsObject = { + erc20?: Erc20WithdrawExt.AsObject, + } + + export enum ExtCase { + EXT_NOT_SET = 0, + ERC20 = 1, + } - export enum ExtCase { - EXT_NOT_SET = 0, - ERC20 = 1, - } } export class Erc20WithdrawExt extends jspb.Message { - getReceiverAddress(): string; - setReceiverAddress(value: string): void; + getReceiverAddress(): string; + setReceiverAddress(value: string): Erc20WithdrawExt; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Erc20WithdrawExt.AsObject; - static toObject(includeInstance: boolean, msg: Erc20WithdrawExt): Erc20WithdrawExt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Erc20WithdrawExt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Erc20WithdrawExt; - static deserializeBinaryFromReader(message: Erc20WithdrawExt, reader: jspb.BinaryReader): Erc20WithdrawExt; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Erc20WithdrawExt.AsObject; + static toObject(includeInstance: boolean, msg: Erc20WithdrawExt): Erc20WithdrawExt.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Erc20WithdrawExt, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Erc20WithdrawExt; + static deserializeBinaryFromReader(message: Erc20WithdrawExt, reader: jspb.BinaryReader): Erc20WithdrawExt; } export namespace Erc20WithdrawExt { - export type AsObject = { - receiverAddress: string, - } + export type AsObject = { + receiverAddress: string, + } } export class Account extends jspb.Message { - getId(): string; - setId(value: string): void; - - getOwner(): string; - setOwner(value: string): void; - - getBalance(): number; - setBalance(value: number): void; - - getAsset(): string; - setAsset(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getType(): AccountTypeMap[keyof AccountTypeMap]; - setType(value: AccountTypeMap[keyof AccountTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Account.AsObject; - static toObject(includeInstance: boolean, msg: Account): Account.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Account, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Account; - static deserializeBinaryFromReader(message: Account, reader: jspb.BinaryReader): Account; + getId(): string; + setId(value: string): Account; + getOwner(): string; + setOwner(value: string): Account; + getBalance(): number; + setBalance(value: number): Account; + getAsset(): string; + setAsset(value: string): Account; + getMarketId(): string; + setMarketId(value: string): Account; + getType(): AccountType; + setType(value: AccountType): Account; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Account.AsObject; + static toObject(includeInstance: boolean, msg: Account): Account.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Account, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Account; + static deserializeBinaryFromReader(message: Account, reader: jspb.BinaryReader): Account; } export namespace Account { - export type AsObject = { - id: string, - owner: string, - balance: number, - asset: string, - marketId: string, - type: AccountTypeMap[keyof AccountTypeMap], - } + export type AsObject = { + id: string, + owner: string, + balance: number, + asset: string, + marketId: string, + type: AccountType, + } } export class FinancialAmount extends jspb.Message { - getAmount(): number; - setAmount(value: number): void; - - getAsset(): string; - setAsset(value: string): void; + getAmount(): number; + setAmount(value: number): FinancialAmount; + getAsset(): string; + setAsset(value: string): FinancialAmount; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FinancialAmount.AsObject; - static toObject(includeInstance: boolean, msg: FinancialAmount): FinancialAmount.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FinancialAmount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FinancialAmount; - static deserializeBinaryFromReader(message: FinancialAmount, reader: jspb.BinaryReader): FinancialAmount; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FinancialAmount.AsObject; + static toObject(includeInstance: boolean, msg: FinancialAmount): FinancialAmount.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FinancialAmount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FinancialAmount; + static deserializeBinaryFromReader(message: FinancialAmount, reader: jspb.BinaryReader): FinancialAmount; } export namespace FinancialAmount { - export type AsObject = { - amount: number, - asset: string, - } + export type AsObject = { + amount: number, + asset: string, + } } export class Transfer extends jspb.Message { - getOwner(): string; - setOwner(value: string): void; - - hasAmount(): boolean; - clearAmount(): void; - getAmount(): FinancialAmount | undefined; - setAmount(value?: FinancialAmount): void; - - getType(): TransferTypeMap[keyof TransferTypeMap]; - setType(value: TransferTypeMap[keyof TransferTypeMap]): void; - - getMinAmount(): number; - setMinAmount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Transfer.AsObject; - static toObject(includeInstance: boolean, msg: Transfer): Transfer.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Transfer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Transfer; - static deserializeBinaryFromReader(message: Transfer, reader: jspb.BinaryReader): Transfer; + getOwner(): string; + setOwner(value: string): Transfer; + + hasAmount(): boolean; + clearAmount(): void; + getAmount(): FinancialAmount | undefined; + setAmount(value?: FinancialAmount): Transfer; + getType(): TransferType; + setType(value: TransferType): Transfer; + getMinAmount(): number; + setMinAmount(value: number): Transfer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Transfer.AsObject; + static toObject(includeInstance: boolean, msg: Transfer): Transfer.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Transfer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Transfer; + static deserializeBinaryFromReader(message: Transfer, reader: jspb.BinaryReader): Transfer; } export namespace Transfer { - export type AsObject = { - owner: string, - amount?: FinancialAmount.AsObject, - type: TransferTypeMap[keyof TransferTypeMap], - minAmount: number, - } + export type AsObject = { + owner: string, + amount?: FinancialAmount.AsObject, + type: TransferType, + minAmount: number, + } } export class TransferRequest extends jspb.Message { - clearFromAccountList(): void; - getFromAccountList(): Array; - setFromAccountList(value: Array): void; - addFromAccount(value?: Account, index?: number): Account; - - clearToAccountList(): void; - getToAccountList(): Array; - setToAccountList(value: Array): void; - addToAccount(value?: Account, index?: number): Account; - - getAmount(): number; - setAmount(value: number): void; - - getMinAmount(): number; - setMinAmount(value: number): void; - - getAsset(): string; - setAsset(value: string): void; - - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferRequest.AsObject; - static toObject(includeInstance: boolean, msg: TransferRequest): TransferRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferRequest; - static deserializeBinaryFromReader(message: TransferRequest, reader: jspb.BinaryReader): TransferRequest; + clearFromAccountList(): void; + getFromAccountList(): Array; + setFromAccountList(value: Array): TransferRequest; + addFromAccount(value?: Account, index?: number): Account; + clearToAccountList(): void; + getToAccountList(): Array; + setToAccountList(value: Array): TransferRequest; + addToAccount(value?: Account, index?: number): Account; + getAmount(): number; + setAmount(value: number): TransferRequest; + getMinAmount(): number; + setMinAmount(value: number): TransferRequest; + getAsset(): string; + setAsset(value: string): TransferRequest; + getReference(): string; + setReference(value: string): TransferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferRequest.AsObject; + static toObject(includeInstance: boolean, msg: TransferRequest): TransferRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferRequest; + static deserializeBinaryFromReader(message: TransferRequest, reader: jspb.BinaryReader): TransferRequest; } export namespace TransferRequest { - export type AsObject = { - fromAccountList: Array, - toAccountList: Array, - amount: number, - minAmount: number, - asset: string, - reference: string, - } + export type AsObject = { + fromAccountList: Array, + toAccountList: Array, + amount: number, + minAmount: number, + asset: string, + reference: string, + } } export class LedgerEntry extends jspb.Message { - getFromAccount(): string; - setFromAccount(value: string): void; - - getToAccount(): string; - setToAccount(value: string): void; - - getAmount(): number; - setAmount(value: number): void; - - getReference(): string; - setReference(value: string): void; - - getType(): string; - setType(value: string): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LedgerEntry.AsObject; - static toObject(includeInstance: boolean, msg: LedgerEntry): LedgerEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LedgerEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LedgerEntry; - static deserializeBinaryFromReader(message: LedgerEntry, reader: jspb.BinaryReader): LedgerEntry; + getFromAccount(): string; + setFromAccount(value: string): LedgerEntry; + getToAccount(): string; + setToAccount(value: string): LedgerEntry; + getAmount(): number; + setAmount(value: number): LedgerEntry; + getReference(): string; + setReference(value: string): LedgerEntry; + getType(): string; + setType(value: string): LedgerEntry; + getTimestamp(): number; + setTimestamp(value: number): LedgerEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LedgerEntry.AsObject; + static toObject(includeInstance: boolean, msg: LedgerEntry): LedgerEntry.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LedgerEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LedgerEntry; + static deserializeBinaryFromReader(message: LedgerEntry, reader: jspb.BinaryReader): LedgerEntry; } export namespace LedgerEntry { - export type AsObject = { - fromAccount: string, - toAccount: string, - amount: number, - reference: string, - type: string, - timestamp: number, - } + export type AsObject = { + fromAccount: string, + toAccount: string, + amount: number, + reference: string, + type: string, + timestamp: number, + } } export class TransferBalance extends jspb.Message { - hasAccount(): boolean; - clearAccount(): void; - getAccount(): Account | undefined; - setAccount(value?: Account): void; - getBalance(): number; - setBalance(value: number): void; + hasAccount(): boolean; + clearAccount(): void; + getAccount(): Account | undefined; + setAccount(value?: Account): TransferBalance; + getBalance(): number; + setBalance(value: number): TransferBalance; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferBalance.AsObject; - static toObject(includeInstance: boolean, msg: TransferBalance): TransferBalance.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferBalance, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferBalance; - static deserializeBinaryFromReader(message: TransferBalance, reader: jspb.BinaryReader): TransferBalance; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferBalance.AsObject; + static toObject(includeInstance: boolean, msg: TransferBalance): TransferBalance.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferBalance, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferBalance; + static deserializeBinaryFromReader(message: TransferBalance, reader: jspb.BinaryReader): TransferBalance; } export namespace TransferBalance { - export type AsObject = { - account?: Account.AsObject, - balance: number, - } + export type AsObject = { + account?: Account.AsObject, + balance: number, + } } export class TransferResponse extends jspb.Message { - clearTransfersList(): void; - getTransfersList(): Array; - setTransfersList(value: Array): void; - addTransfers(value?: LedgerEntry, index?: number): LedgerEntry; - - clearBalancesList(): void; - getBalancesList(): Array; - setBalancesList(value: Array): void; - addBalances(value?: TransferBalance, index?: number): TransferBalance; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferResponse.AsObject; - static toObject(includeInstance: boolean, msg: TransferResponse): TransferResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransferResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferResponse; - static deserializeBinaryFromReader(message: TransferResponse, reader: jspb.BinaryReader): TransferResponse; + clearTransfersList(): void; + getTransfersList(): Array; + setTransfersList(value: Array): TransferResponse; + addTransfers(value?: LedgerEntry, index?: number): LedgerEntry; + clearBalancesList(): void; + getBalancesList(): Array; + setBalancesList(value: Array): TransferResponse; + addBalances(value?: TransferBalance, index?: number): TransferBalance; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferResponse.AsObject; + static toObject(includeInstance: boolean, msg: TransferResponse): TransferResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferResponse; + static deserializeBinaryFromReader(message: TransferResponse, reader: jspb.BinaryReader): TransferResponse; } export namespace TransferResponse { - export type AsObject = { - transfersList: Array, - balancesList: Array, - } + export type AsObject = { + transfersList: Array, + balancesList: Array, + } } export class MarginLevels extends jspb.Message { - getMaintenanceMargin(): number; - setMaintenanceMargin(value: number): void; - - getSearchLevel(): number; - setSearchLevel(value: number): void; - - getInitialMargin(): number; - setInitialMargin(value: number): void; - - getCollateralReleaseLevel(): number; - setCollateralReleaseLevel(value: number): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getAsset(): string; - setAsset(value: string): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarginLevels.AsObject; - static toObject(includeInstance: boolean, msg: MarginLevels): MarginLevels.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarginLevels, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarginLevels; - static deserializeBinaryFromReader(message: MarginLevels, reader: jspb.BinaryReader): MarginLevels; + getMaintenanceMargin(): number; + setMaintenanceMargin(value: number): MarginLevels; + getSearchLevel(): number; + setSearchLevel(value: number): MarginLevels; + getInitialMargin(): number; + setInitialMargin(value: number): MarginLevels; + getCollateralReleaseLevel(): number; + setCollateralReleaseLevel(value: number): MarginLevels; + getPartyId(): string; + setPartyId(value: string): MarginLevels; + getMarketId(): string; + setMarketId(value: string): MarginLevels; + getAsset(): string; + setAsset(value: string): MarginLevels; + getTimestamp(): number; + setTimestamp(value: number): MarginLevels; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarginLevels.AsObject; + static toObject(includeInstance: boolean, msg: MarginLevels): MarginLevels.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarginLevels, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarginLevels; + static deserializeBinaryFromReader(message: MarginLevels, reader: jspb.BinaryReader): MarginLevels; } export namespace MarginLevels { - export type AsObject = { - maintenanceMargin: number, - searchLevel: number, - initialMargin: number, - collateralReleaseLevel: number, - partyId: string, - marketId: string, - asset: string, - timestamp: number, - } + export type AsObject = { + maintenanceMargin: number, + searchLevel: number, + initialMargin: number, + collateralReleaseLevel: number, + partyId: string, + marketId: string, + asset: string, + timestamp: number, + } } export class MarketData extends jspb.Message { - getMarkPrice(): number; - setMarkPrice(value: number): void; - - getBestBidPrice(): number; - setBestBidPrice(value: number): void; - - getBestBidVolume(): number; - setBestBidVolume(value: number): void; - - getBestOfferPrice(): number; - setBestOfferPrice(value: number): void; - - getBestOfferVolume(): number; - setBestOfferVolume(value: number): void; - - getBestStaticBidPrice(): number; - setBestStaticBidPrice(value: number): void; - - getBestStaticBidVolume(): number; - setBestStaticBidVolume(value: number): void; - - getBestStaticOfferPrice(): number; - setBestStaticOfferPrice(value: number): void; - - getBestStaticOfferVolume(): number; - setBestStaticOfferVolume(value: number): void; - - getMidPrice(): number; - setMidPrice(value: number): void; - - getStaticMidPrice(): number; - setStaticMidPrice(value: number): void; - - getMarket(): string; - setMarket(value: string): void; - - getTimestamp(): number; - setTimestamp(value: number): void; - - getOpenInterest(): number; - setOpenInterest(value: number): void; - - getAuctionEnd(): number; - setAuctionEnd(value: number): void; - - getAuctionStart(): number; - setAuctionStart(value: number): void; - - getIndicativePrice(): number; - setIndicativePrice(value: number): void; - - getIndicativeVolume(): number; - setIndicativeVolume(value: number): void; - - getMarketTradingMode(): markets_pb.Market.TradingModeMap[keyof markets_pb.Market.TradingModeMap]; - setMarketTradingMode(value: markets_pb.Market.TradingModeMap[keyof markets_pb.Market.TradingModeMap]): void; - - getTrigger(): AuctionTriggerMap[keyof AuctionTriggerMap]; - setTrigger(value: AuctionTriggerMap[keyof AuctionTriggerMap]): void; - - getExtensionTrigger(): AuctionTriggerMap[keyof AuctionTriggerMap]; - setExtensionTrigger(value: AuctionTriggerMap[keyof AuctionTriggerMap]): void; - - getTargetStake(): string; - setTargetStake(value: string): void; - - getSuppliedStake(): string; - setSuppliedStake(value: string): void; - - clearPriceMonitoringBoundsList(): void; - getPriceMonitoringBoundsList(): Array; - setPriceMonitoringBoundsList(value: Array): void; - addPriceMonitoringBounds(value?: PriceMonitoringBounds, index?: number): PriceMonitoringBounds; - - getMarketValueProxy(): string; - setMarketValueProxy(value: string): void; - - clearLiquidityProviderFeeShareList(): void; - getLiquidityProviderFeeShareList(): Array; - setLiquidityProviderFeeShareList(value: Array): void; - addLiquidityProviderFeeShare(value?: LiquidityProviderFeeShare, index?: number): LiquidityProviderFeeShare; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketData.AsObject; - static toObject(includeInstance: boolean, msg: MarketData): MarketData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MarketData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketData; - static deserializeBinaryFromReader(message: MarketData, reader: jspb.BinaryReader): MarketData; + getMarkPrice(): number; + setMarkPrice(value: number): MarketData; + getBestBidPrice(): number; + setBestBidPrice(value: number): MarketData; + getBestBidVolume(): number; + setBestBidVolume(value: number): MarketData; + getBestOfferPrice(): number; + setBestOfferPrice(value: number): MarketData; + getBestOfferVolume(): number; + setBestOfferVolume(value: number): MarketData; + getBestStaticBidPrice(): number; + setBestStaticBidPrice(value: number): MarketData; + getBestStaticBidVolume(): number; + setBestStaticBidVolume(value: number): MarketData; + getBestStaticOfferPrice(): number; + setBestStaticOfferPrice(value: number): MarketData; + getBestStaticOfferVolume(): number; + setBestStaticOfferVolume(value: number): MarketData; + getMidPrice(): number; + setMidPrice(value: number): MarketData; + getStaticMidPrice(): number; + setStaticMidPrice(value: number): MarketData; + getMarket(): string; + setMarket(value: string): MarketData; + getTimestamp(): number; + setTimestamp(value: number): MarketData; + getOpenInterest(): number; + setOpenInterest(value: number): MarketData; + getAuctionEnd(): number; + setAuctionEnd(value: number): MarketData; + getAuctionStart(): number; + setAuctionStart(value: number): MarketData; + getIndicativePrice(): number; + setIndicativePrice(value: number): MarketData; + getIndicativeVolume(): number; + setIndicativeVolume(value: number): MarketData; + getMarketTradingMode(): markets_pb.Market.TradingMode; + setMarketTradingMode(value: markets_pb.Market.TradingMode): MarketData; + getTrigger(): AuctionTrigger; + setTrigger(value: AuctionTrigger): MarketData; + getExtensionTrigger(): AuctionTrigger; + setExtensionTrigger(value: AuctionTrigger): MarketData; + getTargetStake(): string; + setTargetStake(value: string): MarketData; + getSuppliedStake(): string; + setSuppliedStake(value: string): MarketData; + clearPriceMonitoringBoundsList(): void; + getPriceMonitoringBoundsList(): Array; + setPriceMonitoringBoundsList(value: Array): MarketData; + addPriceMonitoringBounds(value?: PriceMonitoringBounds, index?: number): PriceMonitoringBounds; + getMarketValueProxy(): string; + setMarketValueProxy(value: string): MarketData; + clearLiquidityProviderFeeShareList(): void; + getLiquidityProviderFeeShareList(): Array; + setLiquidityProviderFeeShareList(value: Array): MarketData; + addLiquidityProviderFeeShare(value?: LiquidityProviderFeeShare, index?: number): LiquidityProviderFeeShare; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketData.AsObject; + static toObject(includeInstance: boolean, msg: MarketData): MarketData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MarketData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketData; + static deserializeBinaryFromReader(message: MarketData, reader: jspb.BinaryReader): MarketData; } export namespace MarketData { - export type AsObject = { - markPrice: number, - bestBidPrice: number, - bestBidVolume: number, - bestOfferPrice: number, - bestOfferVolume: number, - bestStaticBidPrice: number, - bestStaticBidVolume: number, - bestStaticOfferPrice: number, - bestStaticOfferVolume: number, - midPrice: number, - staticMidPrice: number, - market: string, - timestamp: number, - openInterest: number, - auctionEnd: number, - auctionStart: number, - indicativePrice: number, - indicativeVolume: number, - marketTradingMode: markets_pb.Market.TradingModeMap[keyof markets_pb.Market.TradingModeMap], - trigger: AuctionTriggerMap[keyof AuctionTriggerMap], - extensionTrigger: AuctionTriggerMap[keyof AuctionTriggerMap], - targetStake: string, - suppliedStake: string, - priceMonitoringBoundsList: Array, - marketValueProxy: string, - liquidityProviderFeeShareList: Array, - } + export type AsObject = { + markPrice: number, + bestBidPrice: number, + bestBidVolume: number, + bestOfferPrice: number, + bestOfferVolume: number, + bestStaticBidPrice: number, + bestStaticBidVolume: number, + bestStaticOfferPrice: number, + bestStaticOfferVolume: number, + midPrice: number, + staticMidPrice: number, + market: string, + timestamp: number, + openInterest: number, + auctionEnd: number, + auctionStart: number, + indicativePrice: number, + indicativeVolume: number, + marketTradingMode: markets_pb.Market.TradingMode, + trigger: AuctionTrigger, + extensionTrigger: AuctionTrigger, + targetStake: string, + suppliedStake: string, + priceMonitoringBoundsList: Array, + marketValueProxy: string, + liquidityProviderFeeShareList: Array, + } } export class LiquidityProviderFeeShare extends jspb.Message { - getParty(): string; - setParty(value: string): void; - - getEquityLikeShare(): string; - setEquityLikeShare(value: string): void; - - getAverageEntryValuation(): string; - setAverageEntryValuation(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityProviderFeeShare.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityProviderFeeShare): LiquidityProviderFeeShare.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityProviderFeeShare, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityProviderFeeShare; - static deserializeBinaryFromReader(message: LiquidityProviderFeeShare, reader: jspb.BinaryReader): LiquidityProviderFeeShare; + getParty(): string; + setParty(value: string): LiquidityProviderFeeShare; + getEquityLikeShare(): string; + setEquityLikeShare(value: string): LiquidityProviderFeeShare; + getAverageEntryValuation(): string; + setAverageEntryValuation(value: string): LiquidityProviderFeeShare; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityProviderFeeShare.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityProviderFeeShare): LiquidityProviderFeeShare.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityProviderFeeShare, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityProviderFeeShare; + static deserializeBinaryFromReader(message: LiquidityProviderFeeShare, reader: jspb.BinaryReader): LiquidityProviderFeeShare; } export namespace LiquidityProviderFeeShare { - export type AsObject = { - party: string, - equityLikeShare: string, - averageEntryValuation: string, - } + export type AsObject = { + party: string, + equityLikeShare: string, + averageEntryValuation: string, + } } export class PriceMonitoringBounds extends jspb.Message { - getMinValidPrice(): number; - setMinValidPrice(value: number): void; - - getMaxValidPrice(): number; - setMaxValidPrice(value: number): void; - - hasTrigger(): boolean; - clearTrigger(): void; - getTrigger(): markets_pb.PriceMonitoringTrigger | undefined; - setTrigger(value?: markets_pb.PriceMonitoringTrigger): void; - - getReferencePrice(): number; - setReferencePrice(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceMonitoringBounds.AsObject; - static toObject(includeInstance: boolean, msg: PriceMonitoringBounds): PriceMonitoringBounds.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceMonitoringBounds, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceMonitoringBounds; - static deserializeBinaryFromReader(message: PriceMonitoringBounds, reader: jspb.BinaryReader): PriceMonitoringBounds; + getMinValidPrice(): number; + setMinValidPrice(value: number): PriceMonitoringBounds; + getMaxValidPrice(): number; + setMaxValidPrice(value: number): PriceMonitoringBounds; + + hasTrigger(): boolean; + clearTrigger(): void; + getTrigger(): markets_pb.PriceMonitoringTrigger | undefined; + setTrigger(value?: markets_pb.PriceMonitoringTrigger): PriceMonitoringBounds; + getReferencePrice(): number; + setReferencePrice(value: number): PriceMonitoringBounds; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceMonitoringBounds.AsObject; + static toObject(includeInstance: boolean, msg: PriceMonitoringBounds): PriceMonitoringBounds.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceMonitoringBounds, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceMonitoringBounds; + static deserializeBinaryFromReader(message: PriceMonitoringBounds, reader: jspb.BinaryReader): PriceMonitoringBounds; } export namespace PriceMonitoringBounds { - export type AsObject = { - minValidPrice: number, - maxValidPrice: number, - trigger?: markets_pb.PriceMonitoringTrigger.AsObject, - referencePrice: number, - } + export type AsObject = { + minValidPrice: number, + maxValidPrice: number, + trigger?: markets_pb.PriceMonitoringTrigger.AsObject, + referencePrice: number, + } } export class ErrorDetail extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getMessage(): string; - setMessage(value: string): void; - - getInner(): string; - setInner(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ErrorDetail.AsObject; - static toObject(includeInstance: boolean, msg: ErrorDetail): ErrorDetail.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ErrorDetail, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ErrorDetail; - static deserializeBinaryFromReader(message: ErrorDetail, reader: jspb.BinaryReader): ErrorDetail; + getCode(): number; + setCode(value: number): ErrorDetail; + getMessage(): string; + setMessage(value: string): ErrorDetail; + getInner(): string; + setInner(value: string): ErrorDetail; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ErrorDetail.AsObject; + static toObject(includeInstance: boolean, msg: ErrorDetail): ErrorDetail.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ErrorDetail, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ErrorDetail; + static deserializeBinaryFromReader(message: ErrorDetail, reader: jspb.BinaryReader): ErrorDetail; } export namespace ErrorDetail { - export type AsObject = { - code: number, - message: string, - inner: string, - } -} - -export class Transaction extends jspb.Message { - getInputData(): Uint8Array | string; - getInputData_asU8(): Uint8Array; - getInputData_asB64(): string; - setInputData(value: Uint8Array | string): void; - - getNonce(): number; - setNonce(value: number): void; - - getBlockHeight(): number; - setBlockHeight(value: number): void; - - hasAddress(): boolean; - clearAddress(): void; - getAddress(): Uint8Array | string; - getAddress_asU8(): Uint8Array; - getAddress_asB64(): string; - setAddress(value: Uint8Array | string): void; - - hasPubKey(): boolean; - clearPubKey(): void; - getPubKey(): Uint8Array | string; - getPubKey_asU8(): Uint8Array; - getPubKey_asB64(): string; - setPubKey(value: Uint8Array | string): void; - - getFromCase(): Transaction.FromCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Transaction.AsObject; - static toObject(includeInstance: boolean, msg: Transaction): Transaction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Transaction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Transaction; - static deserializeBinaryFromReader(message: Transaction, reader: jspb.BinaryReader): Transaction; -} - -export namespace Transaction { - export type AsObject = { - inputData: Uint8Array | string, - nonce: number, - blockHeight: number, - address: Uint8Array | string, - pubKey: Uint8Array | string, - } - - export enum FromCase { - FROM_NOT_SET = 0, - ADDRESS = 1001, - PUB_KEY = 1002, - } -} - -export class Signature extends jspb.Message { - getSig(): Uint8Array | string; - getSig_asU8(): Uint8Array; - getSig_asB64(): string; - setSig(value: Uint8Array | string): void; - - getAlgo(): string; - setAlgo(value: string): void; - - getVersion(): number; - setVersion(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Signature.AsObject; - static toObject(includeInstance: boolean, msg: Signature): Signature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Signature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Signature; - static deserializeBinaryFromReader(message: Signature, reader: jspb.BinaryReader): Signature; -} - -export namespace Signature { - export type AsObject = { - sig: Uint8Array | string, - algo: string, - version: number, - } -} - -export class SignedBundle extends jspb.Message { - getTx(): Uint8Array | string; - getTx_asU8(): Uint8Array; - getTx_asB64(): string; - setTx(value: Uint8Array | string): void; - - hasSig(): boolean; - clearSig(): void; - getSig(): Signature | undefined; - setSig(value?: Signature): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedBundle.AsObject; - static toObject(includeInstance: boolean, msg: SignedBundle): SignedBundle.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignedBundle, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedBundle; - static deserializeBinaryFromReader(message: SignedBundle, reader: jspb.BinaryReader): SignedBundle; -} - -export namespace SignedBundle { - export type AsObject = { - tx: Uint8Array | string, - sig?: Signature.AsObject, - } + export type AsObject = { + code: number, + message: string, + inner: string, + } } export class NetworkParameter extends jspb.Message { - getKey(): string; - setKey(value: string): void; + getKey(): string; + setKey(value: string): NetworkParameter; + getValue(): string; + setValue(value: string): NetworkParameter; - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NetworkParameter.AsObject; - static toObject(includeInstance: boolean, msg: NetworkParameter): NetworkParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NetworkParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NetworkParameter; - static deserializeBinaryFromReader(message: NetworkParameter, reader: jspb.BinaryReader): NetworkParameter; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NetworkParameter.AsObject; + static toObject(includeInstance: boolean, msg: NetworkParameter): NetworkParameter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NetworkParameter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NetworkParameter; + static deserializeBinaryFromReader(message: NetworkParameter, reader: jspb.BinaryReader): NetworkParameter; } export namespace NetworkParameter { - export type AsObject = { - key: string, - value: string, - } + export type AsObject = { + key: string, + value: string, + } } export class LiquidityOrder extends jspb.Message { - getReference(): PeggedReferenceMap[keyof PeggedReferenceMap]; - setReference(value: PeggedReferenceMap[keyof PeggedReferenceMap]): void; - - getProportion(): number; - setProportion(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityOrder.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityOrder): LiquidityOrder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityOrder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityOrder; - static deserializeBinaryFromReader(message: LiquidityOrder, reader: jspb.BinaryReader): LiquidityOrder; + getReference(): PeggedReference; + setReference(value: PeggedReference): LiquidityOrder; + getProportion(): number; + setProportion(value: number): LiquidityOrder; + getOffset(): number; + setOffset(value: number): LiquidityOrder; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityOrder.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityOrder): LiquidityOrder.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityOrder, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityOrder; + static deserializeBinaryFromReader(message: LiquidityOrder, reader: jspb.BinaryReader): LiquidityOrder; } export namespace LiquidityOrder { - export type AsObject = { - reference: PeggedReferenceMap[keyof PeggedReferenceMap], - proportion: number, - offset: number, - } + export type AsObject = { + reference: PeggedReference, + proportion: number, + offset: number, + } } export class LiquidityOrderReference extends jspb.Message { - getOrderId(): string; - setOrderId(value: string): void; + getOrderId(): string; + setOrderId(value: string): LiquidityOrderReference; - hasLiquidityOrder(): boolean; - clearLiquidityOrder(): void; - getLiquidityOrder(): LiquidityOrder | undefined; - setLiquidityOrder(value?: LiquidityOrder): void; + hasLiquidityOrder(): boolean; + clearLiquidityOrder(): void; + getLiquidityOrder(): LiquidityOrder | undefined; + setLiquidityOrder(value?: LiquidityOrder): LiquidityOrderReference; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityOrderReference.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityOrderReference): LiquidityOrderReference.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityOrderReference, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityOrderReference; - static deserializeBinaryFromReader(message: LiquidityOrderReference, reader: jspb.BinaryReader): LiquidityOrderReference; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityOrderReference.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityOrderReference): LiquidityOrderReference.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityOrderReference, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityOrderReference; + static deserializeBinaryFromReader(message: LiquidityOrderReference, reader: jspb.BinaryReader): LiquidityOrderReference; } export namespace LiquidityOrderReference { - export type AsObject = { - orderId: string, - liquidityOrder?: LiquidityOrder.AsObject, - } + export type AsObject = { + orderId: string, + liquidityOrder?: LiquidityOrder.AsObject, + } } export class LiquidityProvision extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPartyId(): string; - setPartyId(value: string): void; - - getCreatedAt(): number; - setCreatedAt(value: number): void; - - getUpdatedAt(): number; - setUpdatedAt(value: number): void; - - getMarketId(): string; - setMarketId(value: string): void; - - getCommitmentAmount(): number; - setCommitmentAmount(value: number): void; - - getFee(): string; - setFee(value: string): void; - - clearSellsList(): void; - getSellsList(): Array; - setSellsList(value: Array): void; - addSells(value?: LiquidityOrderReference, index?: number): LiquidityOrderReference; - - clearBuysList(): void; - getBuysList(): Array; - setBuysList(value: Array): void; - addBuys(value?: LiquidityOrderReference, index?: number): LiquidityOrderReference; - - getVersion(): string; - setVersion(value: string): void; - - getStatus(): LiquidityProvision.StatusMap[keyof LiquidityProvision.StatusMap]; - setStatus(value: LiquidityProvision.StatusMap[keyof LiquidityProvision.StatusMap]): void; - - getReference(): string; - setReference(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LiquidityProvision.AsObject; - static toObject(includeInstance: boolean, msg: LiquidityProvision): LiquidityProvision.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LiquidityProvision, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LiquidityProvision; - static deserializeBinaryFromReader(message: LiquidityProvision, reader: jspb.BinaryReader): LiquidityProvision; + getId(): string; + setId(value: string): LiquidityProvision; + getPartyId(): string; + setPartyId(value: string): LiquidityProvision; + getCreatedAt(): number; + setCreatedAt(value: number): LiquidityProvision; + getUpdatedAt(): number; + setUpdatedAt(value: number): LiquidityProvision; + getMarketId(): string; + setMarketId(value: string): LiquidityProvision; + getCommitmentAmount(): number; + setCommitmentAmount(value: number): LiquidityProvision; + getFee(): string; + setFee(value: string): LiquidityProvision; + clearSellsList(): void; + getSellsList(): Array; + setSellsList(value: Array): LiquidityProvision; + addSells(value?: LiquidityOrderReference, index?: number): LiquidityOrderReference; + clearBuysList(): void; + getBuysList(): Array; + setBuysList(value: Array): LiquidityProvision; + addBuys(value?: LiquidityOrderReference, index?: number): LiquidityOrderReference; + getVersion(): string; + setVersion(value: string): LiquidityProvision; + getStatus(): LiquidityProvision.Status; + setStatus(value: LiquidityProvision.Status): LiquidityProvision; + getReference(): string; + setReference(value: string): LiquidityProvision; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LiquidityProvision.AsObject; + static toObject(includeInstance: boolean, msg: LiquidityProvision): LiquidityProvision.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LiquidityProvision, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LiquidityProvision; + static deserializeBinaryFromReader(message: LiquidityProvision, reader: jspb.BinaryReader): LiquidityProvision; } export namespace LiquidityProvision { - export type AsObject = { - id: string, - partyId: string, - createdAt: number, - updatedAt: number, - marketId: string, - commitmentAmount: number, - fee: string, - sellsList: Array, - buysList: Array, - version: string, - status: LiquidityProvision.StatusMap[keyof LiquidityProvision.StatusMap], - reference: string, - } - - export interface StatusMap { - STATUS_UNSPECIFIED: 0; - STATUS_ACTIVE: 1; - STATUS_STOPPED: 2; - STATUS_CANCELLED: 3; - STATUS_REJECTED: 4; - STATUS_UNDEPLOYED: 5; - STATUS_PENDING: 6; - } - - export const Status: StatusMap; + export type AsObject = { + id: string, + partyId: string, + createdAt: number, + updatedAt: number, + marketId: string, + commitmentAmount: number, + fee: string, + sellsList: Array, + buysList: Array, + version: string, + status: LiquidityProvision.Status, + reference: string, + } + + export enum Status { + STATUS_UNSPECIFIED = 0, + STATUS_ACTIVE = 1, + STATUS_STOPPED = 2, + STATUS_CANCELLED = 3, + STATUS_REJECTED = 4, + STATUS_UNDEPLOYED = 5, + STATUS_PENDING = 6, + } + } export class EthereumConfig extends jspb.Message { - getNetworkId(): string; - setNetworkId(value: string): void; - - getChainId(): string; - setChainId(value: string): void; - - getBridgeAddress(): string; - setBridgeAddress(value: string): void; - - getConfirmations(): number; - setConfirmations(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EthereumConfig.AsObject; - static toObject(includeInstance: boolean, msg: EthereumConfig): EthereumConfig.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EthereumConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EthereumConfig; - static deserializeBinaryFromReader(message: EthereumConfig, reader: jspb.BinaryReader): EthereumConfig; + getNetworkId(): string; + setNetworkId(value: string): EthereumConfig; + getChainId(): string; + setChainId(value: string): EthereumConfig; + getBridgeAddress(): string; + setBridgeAddress(value: string): EthereumConfig; + getConfirmations(): number; + setConfirmations(value: number): EthereumConfig; + clearStakingBridgeAddressesList(): void; + getStakingBridgeAddressesList(): Array; + setStakingBridgeAddressesList(value: Array): EthereumConfig; + addStakingBridgeAddresses(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EthereumConfig.AsObject; + static toObject(includeInstance: boolean, msg: EthereumConfig): EthereumConfig.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EthereumConfig, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EthereumConfig; + static deserializeBinaryFromReader(message: EthereumConfig, reader: jspb.BinaryReader): EthereumConfig; } export namespace EthereumConfig { - export type AsObject = { - networkId: string, - chainId: string, - bridgeAddress: string, - confirmations: number, - } -} - -export interface SideMap { - SIDE_UNSPECIFIED: 0; - SIDE_BUY: 1; - SIDE_SELL: 2; -} - -export const Side: SideMap; - -export interface IntervalMap { - INTERVAL_UNSPECIFIED: 0; - INTERVAL_I1M: 60; - INTERVAL_I5M: 300; - INTERVAL_I15M: 900; - INTERVAL_I1H: 3600; - INTERVAL_I6H: 21600; - INTERVAL_I1D: 86400; -} - -export const Interval: IntervalMap; - -export interface AuctionTriggerMap { - AUCTION_TRIGGER_UNSPECIFIED: 0; - AUCTION_TRIGGER_BATCH: 1; - AUCTION_TRIGGER_OPENING: 2; - AUCTION_TRIGGER_PRICE: 3; - AUCTION_TRIGGER_LIQUIDITY: 4; -} - -export const AuctionTrigger: AuctionTriggerMap; - -export interface PeggedReferenceMap { - PEGGED_REFERENCE_UNSPECIFIED: 0; - PEGGED_REFERENCE_MID: 1; - PEGGED_REFERENCE_BEST_BID: 2; - PEGGED_REFERENCE_BEST_ASK: 3; -} - -export const PeggedReference: PeggedReferenceMap; - -export interface OrderErrorMap { - ORDER_ERROR_UNSPECIFIED: 0; - ORDER_ERROR_INVALID_MARKET_ID: 1; - ORDER_ERROR_INVALID_ORDER_ID: 2; - ORDER_ERROR_OUT_OF_SEQUENCE: 3; - ORDER_ERROR_INVALID_REMAINING_SIZE: 4; - ORDER_ERROR_TIME_FAILURE: 5; - ORDER_ERROR_REMOVAL_FAILURE: 6; - ORDER_ERROR_INVALID_EXPIRATION_DATETIME: 7; - ORDER_ERROR_INVALID_ORDER_REFERENCE: 8; - ORDER_ERROR_EDIT_NOT_ALLOWED: 9; - ORDER_ERROR_AMEND_FAILURE: 10; - ORDER_ERROR_NOT_FOUND: 11; - ORDER_ERROR_INVALID_PARTY_ID: 12; - ORDER_ERROR_MARKET_CLOSED: 13; - ORDER_ERROR_MARGIN_CHECK_FAILED: 14; - ORDER_ERROR_MISSING_GENERAL_ACCOUNT: 15; - ORDER_ERROR_INTERNAL_ERROR: 16; - ORDER_ERROR_INVALID_SIZE: 17; - ORDER_ERROR_INVALID_PERSISTENCE: 18; - ORDER_ERROR_INVALID_TYPE: 19; - ORDER_ERROR_SELF_TRADING: 20; - ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES: 21; - ORDER_ERROR_INCORRECT_MARKET_TYPE: 22; - ORDER_ERROR_INVALID_TIME_IN_FORCE: 23; - ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION: 24; - ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING: 25; - ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT: 26; - ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT: 27; - ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT: 28; - ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC: 29; - ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN: 30; - ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN: 31; - ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION: 32; - ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION: 33; - ORDER_ERROR_MUST_BE_LIMIT_ORDER: 34; - ORDER_ERROR_MUST_BE_GTT_OR_GTC: 35; - ORDER_ERROR_WITHOUT_REFERENCE_PRICE: 36; - ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE: 37; - ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO: 38; - ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO: 39; - ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO: 40; - ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE: 41; - ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO: 42; - ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE: 43; - ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER: 44; - ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER: 45; - ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER: 46; - ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS: 47; -} - -export const OrderError: OrderErrorMap; - -export interface ChainStatusMap { - CHAIN_STATUS_UNSPECIFIED: 0; - CHAIN_STATUS_DISCONNECTED: 1; - CHAIN_STATUS_REPLAYING: 2; - CHAIN_STATUS_CONNECTED: 3; -} - -export const ChainStatus: ChainStatusMap; - -export interface AccountTypeMap { - ACCOUNT_TYPE_UNSPECIFIED: 0; - ACCOUNT_TYPE_INSURANCE: 1; - ACCOUNT_TYPE_SETTLEMENT: 2; - ACCOUNT_TYPE_MARGIN: 3; - ACCOUNT_TYPE_GENERAL: 4; - ACCOUNT_TYPE_FEES_INFRASTRUCTURE: 5; - ACCOUNT_TYPE_FEES_LIQUIDITY: 6; - ACCOUNT_TYPE_FEES_MAKER: 7; - ACCOUNT_TYPE_LOCK_WITHDRAW: 8; - ACCOUNT_TYPE_BOND: 9; - ACCOUNT_TYPE_EXTERNAL: 10; - ACCOUNT_TYPE_GLOBAL_INSURANCE: 11; - ACCOUNT_TYPE_GLOBAL_REWARD: 12; -} - -export const AccountType: AccountTypeMap; - -export interface TransferTypeMap { - TRANSFER_TYPE_UNSPECIFIED: 0; - TRANSFER_TYPE_LOSS: 1; - TRANSFER_TYPE_WIN: 2; - TRANSFER_TYPE_CLOSE: 3; - TRANSFER_TYPE_MTM_LOSS: 4; - TRANSFER_TYPE_MTM_WIN: 5; - TRANSFER_TYPE_MARGIN_LOW: 6; - TRANSFER_TYPE_MARGIN_HIGH: 7; - TRANSFER_TYPE_MARGIN_CONFISCATED: 8; - TRANSFER_TYPE_MAKER_FEE_PAY: 9; - TRANSFER_TYPE_MAKER_FEE_RECEIVE: 10; - TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY: 11; - TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE: 12; - TRANSFER_TYPE_LIQUIDITY_FEE_PAY: 13; - TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE: 14; - TRANSFER_TYPE_BOND_LOW: 15; - TRANSFER_TYPE_BOND_HIGH: 16; - TRANSFER_TYPE_WITHDRAW_LOCK: 17; - TRANSFER_TYPE_WITHDRAW: 18; - TRANSFER_TYPE_DEPOSIT: 19; - TRANSFER_TYPE_BOND_SLASHING: 20; - TRANSFER_TYPE_STAKE_REWARD: 21; -} - -export const TransferType: TransferTypeMap; - + export type AsObject = { + networkId: string, + chainId: string, + bridgeAddress: string, + confirmations: number, + stakingBridgeAddressesList: Array, + } +} + +export class EpochTimestamps extends jspb.Message { + getStartTime(): number; + setStartTime(value: number): EpochTimestamps; + getEndTime(): number; + setEndTime(value: number): EpochTimestamps; + getFirstBlock(): number; + setFirstBlock(value: number): EpochTimestamps; + getLastBlock(): number; + setLastBlock(value: number): EpochTimestamps; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EpochTimestamps.AsObject; + static toObject(includeInstance: boolean, msg: EpochTimestamps): EpochTimestamps.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EpochTimestamps, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EpochTimestamps; + static deserializeBinaryFromReader(message: EpochTimestamps, reader: jspb.BinaryReader): EpochTimestamps; +} + +export namespace EpochTimestamps { + export type AsObject = { + startTime: number, + endTime: number, + firstBlock: number, + lastBlock: number, + } +} + +export class Epoch extends jspb.Message { + getSeq(): number; + setSeq(value: number): Epoch; + + hasTimestamps(): boolean; + clearTimestamps(): void; + getTimestamps(): EpochTimestamps | undefined; + setTimestamps(value?: EpochTimestamps): Epoch; + clearValidatorsList(): void; + getValidatorsList(): Array; + setValidatorsList(value: Array): Epoch; + addValidators(value?: Node, index?: number): Node; + clearDelegationsList(): void; + getDelegationsList(): Array; + setDelegationsList(value: Array): Epoch; + addDelegations(value?: Delegation, index?: number): Delegation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Epoch.AsObject; + static toObject(includeInstance: boolean, msg: Epoch): Epoch.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Epoch, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Epoch; + static deserializeBinaryFromReader(message: Epoch, reader: jspb.BinaryReader): Epoch; +} + +export namespace Epoch { + export type AsObject = { + seq: number, + timestamps?: EpochTimestamps.AsObject, + validatorsList: Array, + delegationsList: Array, + } +} + +export class EpochParticipation extends jspb.Message { + + hasEpoch(): boolean; + clearEpoch(): void; + getEpoch(): Epoch | undefined; + setEpoch(value?: Epoch): EpochParticipation; + getOffline(): number; + setOffline(value: number): EpochParticipation; + getOnline(): number; + setOnline(value: number): EpochParticipation; + getTotalRewards(): number; + setTotalRewards(value: number): EpochParticipation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EpochParticipation.AsObject; + static toObject(includeInstance: boolean, msg: EpochParticipation): EpochParticipation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EpochParticipation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EpochParticipation; + static deserializeBinaryFromReader(message: EpochParticipation, reader: jspb.BinaryReader): EpochParticipation; +} + +export namespace EpochParticipation { + export type AsObject = { + epoch?: Epoch.AsObject, + offline: number, + online: number, + totalRewards: number, + } +} + +export class EpochData extends jspb.Message { + getTotal(): number; + setTotal(value: number): EpochData; + getOffline(): number; + setOffline(value: number): EpochData; + getOnline(): number; + setOnline(value: number): EpochData; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EpochData.AsObject; + static toObject(includeInstance: boolean, msg: EpochData): EpochData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EpochData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EpochData; + static deserializeBinaryFromReader(message: EpochData, reader: jspb.BinaryReader): EpochData; +} + +export namespace EpochData { + export type AsObject = { + total: number, + offline: number, + online: number, + } +} + +export class Node extends jspb.Message { + getId(): string; + setId(value: string): Node; + getPubKey(): string; + setPubKey(value: string): Node; + getInfoUrl(): string; + setInfoUrl(value: string): Node; + getLocation(): string; + setLocation(value: string): Node; + getStakedByOperator(): string; + setStakedByOperator(value: string): Node; + getStakedByDelegates(): string; + setStakedByDelegates(value: string): Node; + getStakedTotal(): string; + setStakedTotal(value: string): Node; + getMaxIntendedStake(): string; + setMaxIntendedStake(value: string): Node; + getPendingStake(): string; + setPendingStake(value: string): Node; + + hasEpochData(): boolean; + clearEpochData(): void; + getEpochData(): EpochData | undefined; + setEpochData(value?: EpochData): Node; + getStatus(): NodeStatus; + setStatus(value: NodeStatus): Node; + clearDelagationsList(): void; + getDelagationsList(): Array; + setDelagationsList(value: Array): Node; + addDelagations(value?: Delegation, index?: number): Delegation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Node.AsObject; + static toObject(includeInstance: boolean, msg: Node): Node.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Node, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Node; + static deserializeBinaryFromReader(message: Node, reader: jspb.BinaryReader): Node; +} + +export namespace Node { + export type AsObject = { + id: string, + pubKey: string, + infoUrl: string, + location: string, + stakedByOperator: string, + stakedByDelegates: string, + stakedTotal: string, + maxIntendedStake: string, + pendingStake: string, + epochData?: EpochData.AsObject, + status: NodeStatus, + delagationsList: Array, + } +} + +export class NodeData extends jspb.Message { + getStakedTotal(): string; + setStakedTotal(value: string): NodeData; + getTotalNodes(): number; + setTotalNodes(value: number): NodeData; + getInactiveNodes(): number; + setInactiveNodes(value: number): NodeData; + getValidatingNodes(): number; + setValidatingNodes(value: number): NodeData; + getUptime(): number; + setUptime(value: number): NodeData; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeData.AsObject; + static toObject(includeInstance: boolean, msg: NodeData): NodeData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeData; + static deserializeBinaryFromReader(message: NodeData, reader: jspb.BinaryReader): NodeData; +} + +export namespace NodeData { + export type AsObject = { + stakedTotal: string, + totalNodes: number, + inactiveNodes: number, + validatingNodes: number, + uptime: number, + } +} + +export class Delegation extends jspb.Message { + getParty(): string; + setParty(value: string): Delegation; + getNodeId(): string; + setNodeId(value: string): Delegation; + getAmount(): string; + setAmount(value: string): Delegation; + getEpochSeq(): string; + setEpochSeq(value: string): Delegation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Delegation.AsObject; + static toObject(includeInstance: boolean, msg: Delegation): Delegation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Delegation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Delegation; + static deserializeBinaryFromReader(message: Delegation, reader: jspb.BinaryReader): Delegation; +} + +export namespace Delegation { + export type AsObject = { + party: string, + nodeId: string, + amount: string, + epochSeq: string, + } +} + +export class RewardDetails extends jspb.Message { + getAssetId(): string; + setAssetId(value: string): RewardDetails; + getPartyId(): string; + setPartyId(value: string): RewardDetails; + getEpoch(): number; + setEpoch(value: number): RewardDetails; + getAmount(): string; + setAmount(value: string): RewardDetails; + getPercentageOfTotal(): string; + setPercentageOfTotal(value: string): RewardDetails; + getReceivedAt(): number; + setReceivedAt(value: number): RewardDetails; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardDetails.AsObject; + static toObject(includeInstance: boolean, msg: RewardDetails): RewardDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardDetails; + static deserializeBinaryFromReader(message: RewardDetails, reader: jspb.BinaryReader): RewardDetails; +} + +export namespace RewardDetails { + export type AsObject = { + assetId: string, + partyId: string, + epoch: number, + amount: string, + percentageOfTotal: string, + receivedAt: number, + } +} + +export class RewardPerAssetDetail extends jspb.Message { + getAsset(): string; + setAsset(value: string): RewardPerAssetDetail; + clearDetailsList(): void; + getDetailsList(): Array; + setDetailsList(value: Array): RewardPerAssetDetail; + addDetails(value?: RewardDetails, index?: number): RewardDetails; + getTotalForAsset(): string; + setTotalForAsset(value: string): RewardPerAssetDetail; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardPerAssetDetail.AsObject; + static toObject(includeInstance: boolean, msg: RewardPerAssetDetail): RewardPerAssetDetail.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardPerAssetDetail, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardPerAssetDetail; + static deserializeBinaryFromReader(message: RewardPerAssetDetail, reader: jspb.BinaryReader): RewardPerAssetDetail; +} + +export namespace RewardPerAssetDetail { + export type AsObject = { + asset: string, + detailsList: Array, + totalForAsset: string, + } +} + +export enum Side { + SIDE_UNSPECIFIED = 0, + SIDE_BUY = 1, + SIDE_SELL = 2, +} + +export enum Interval { + INTERVAL_UNSPECIFIED = 0, + INTERVAL_I1M = 60, + INTERVAL_I5M = 300, + INTERVAL_I15M = 900, + INTERVAL_I1H = 3600, + INTERVAL_I6H = 21600, + INTERVAL_I1D = 86400, +} + +export enum AuctionTrigger { + AUCTION_TRIGGER_UNSPECIFIED = 0, + AUCTION_TRIGGER_BATCH = 1, + AUCTION_TRIGGER_OPENING = 2, + AUCTION_TRIGGER_PRICE = 3, + AUCTION_TRIGGER_LIQUIDITY = 4, +} + +export enum PeggedReference { + PEGGED_REFERENCE_UNSPECIFIED = 0, + PEGGED_REFERENCE_MID = 1, + PEGGED_REFERENCE_BEST_BID = 2, + PEGGED_REFERENCE_BEST_ASK = 3, +} + +export enum OrderError { + ORDER_ERROR_UNSPECIFIED = 0, + ORDER_ERROR_INVALID_MARKET_ID = 1, + ORDER_ERROR_INVALID_ORDER_ID = 2, + ORDER_ERROR_OUT_OF_SEQUENCE = 3, + ORDER_ERROR_INVALID_REMAINING_SIZE = 4, + ORDER_ERROR_TIME_FAILURE = 5, + ORDER_ERROR_REMOVAL_FAILURE = 6, + ORDER_ERROR_INVALID_EXPIRATION_DATETIME = 7, + ORDER_ERROR_INVALID_ORDER_REFERENCE = 8, + ORDER_ERROR_EDIT_NOT_ALLOWED = 9, + ORDER_ERROR_AMEND_FAILURE = 10, + ORDER_ERROR_NOT_FOUND = 11, + ORDER_ERROR_INVALID_PARTY_ID = 12, + ORDER_ERROR_MARKET_CLOSED = 13, + ORDER_ERROR_MARGIN_CHECK_FAILED = 14, + ORDER_ERROR_MISSING_GENERAL_ACCOUNT = 15, + ORDER_ERROR_INTERNAL_ERROR = 16, + ORDER_ERROR_INVALID_SIZE = 17, + ORDER_ERROR_INVALID_PERSISTENCE = 18, + ORDER_ERROR_INVALID_TYPE = 19, + ORDER_ERROR_SELF_TRADING = 20, + ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES = 21, + ORDER_ERROR_INCORRECT_MARKET_TYPE = 22, + ORDER_ERROR_INVALID_TIME_IN_FORCE = 23, + ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION = 24, + ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING = 25, + ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT = 26, + ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT = 27, + ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT = 28, + ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC = 29, + ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN = 30, + ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN = 31, + ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION = 32, + ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION = 33, + ORDER_ERROR_MUST_BE_LIMIT_ORDER = 34, + ORDER_ERROR_MUST_BE_GTT_OR_GTC = 35, + ORDER_ERROR_WITHOUT_REFERENCE_PRICE = 36, + ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE = 37, + ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO = 38, + ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO = 39, + ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = 40, + ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE = 41, + ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO = 42, + ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE = 43, + ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER = 44, + ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER = 45, + ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER = 46, + ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS = 47, +} + +export enum ChainStatus { + CHAIN_STATUS_UNSPECIFIED = 0, + CHAIN_STATUS_DISCONNECTED = 1, + CHAIN_STATUS_REPLAYING = 2, + CHAIN_STATUS_CONNECTED = 3, +} + +export enum AccountType { + ACCOUNT_TYPE_UNSPECIFIED = 0, + ACCOUNT_TYPE_INSURANCE = 1, + ACCOUNT_TYPE_SETTLEMENT = 2, + ACCOUNT_TYPE_MARGIN = 3, + ACCOUNT_TYPE_GENERAL = 4, + ACCOUNT_TYPE_FEES_INFRASTRUCTURE = 5, + ACCOUNT_TYPE_FEES_LIQUIDITY = 6, + ACCOUNT_TYPE_FEES_MAKER = 7, + ACCOUNT_TYPE_LOCK_WITHDRAW = 8, + ACCOUNT_TYPE_BOND = 9, + ACCOUNT_TYPE_EXTERNAL = 10, + ACCOUNT_TYPE_GLOBAL_INSURANCE = 11, + ACCOUNT_TYPE_GLOBAL_REWARD = 12, +} + +export enum TransferType { + TRANSFER_TYPE_UNSPECIFIED = 0, + TRANSFER_TYPE_LOSS = 1, + TRANSFER_TYPE_WIN = 2, + TRANSFER_TYPE_CLOSE = 3, + TRANSFER_TYPE_MTM_LOSS = 4, + TRANSFER_TYPE_MTM_WIN = 5, + TRANSFER_TYPE_MARGIN_LOW = 6, + TRANSFER_TYPE_MARGIN_HIGH = 7, + TRANSFER_TYPE_MARGIN_CONFISCATED = 8, + TRANSFER_TYPE_MAKER_FEE_PAY = 9, + TRANSFER_TYPE_MAKER_FEE_RECEIVE = 10, + TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY = 11, + TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE = 12, + TRANSFER_TYPE_LIQUIDITY_FEE_PAY = 13, + TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE = 14, + TRANSFER_TYPE_BOND_LOW = 15, + TRANSFER_TYPE_BOND_HIGH = 16, + TRANSFER_TYPE_WITHDRAW_LOCK = 17, + TRANSFER_TYPE_WITHDRAW = 18, + TRANSFER_TYPE_DEPOSIT = 19, + TRANSFER_TYPE_BOND_SLASHING = 20, + TRANSFER_TYPE_STAKE_REWARD = 21, +} + +export enum NodeStatus { + NODE_STATUS_UNSPECIFIED = 0, + NODE_STATUS_VALIDATOR = 1, + NODE_STATUS_NON_VALIDATOR = 2, +} diff --git a/grpc/clients/js/generated/vega_pb.js b/grpc/clients/js/generated/vega_pb.js index bc56fcb9..e09fe2d8 100644 --- a/grpc/clients/js/generated/vega_pb.js +++ b/grpc/clients/js/generated/vega_pb.js @@ -18,14 +18,21 @@ var github_com_mwitkow_go$proto$validators_validator_pb = require('./github.com/ goog.object.extend(proto, github_com_mwitkow_go$proto$validators_validator_pb); var markets_pb = require('./markets_pb.js'); goog.object.extend(proto, markets_pb); +var assets_pb = require('./assets_pb.js'); +goog.object.extend(proto, assets_pb); goog.exportSymbol('proto.vega.Account', null, global); goog.exportSymbol('proto.vega.AccountType', null, global); goog.exportSymbol('proto.vega.AuctionIndicativeState', null, global); goog.exportSymbol('proto.vega.AuctionTrigger', null, global); goog.exportSymbol('proto.vega.Candle', null, global); goog.exportSymbol('proto.vega.ChainStatus', null, global); +goog.exportSymbol('proto.vega.Delegation', null, global); goog.exportSymbol('proto.vega.Deposit', null, global); goog.exportSymbol('proto.vega.Deposit.Status', null, global); +goog.exportSymbol('proto.vega.Epoch', null, global); +goog.exportSymbol('proto.vega.EpochData', null, global); +goog.exportSymbol('proto.vega.EpochParticipation', null, global); +goog.exportSymbol('proto.vega.EpochTimestamps', null, global); goog.exportSymbol('proto.vega.Erc20WithdrawExt', null, global); goog.exportSymbol('proto.vega.ErrorDetail', null, global); goog.exportSymbol('proto.vega.EthereumConfig', null, global); @@ -43,6 +50,9 @@ goog.exportSymbol('proto.vega.MarketData', null, global); goog.exportSymbol('proto.vega.MarketDepth', null, global); goog.exportSymbol('proto.vega.MarketDepthUpdate', null, global); goog.exportSymbol('proto.vega.NetworkParameter', null, global); +goog.exportSymbol('proto.vega.Node', null, global); +goog.exportSymbol('proto.vega.NodeData', null, global); +goog.exportSymbol('proto.vega.NodeStatus', null, global); goog.exportSymbol('proto.vega.Order', null, global); goog.exportSymbol('proto.vega.Order.Status', null, global); goog.exportSymbol('proto.vega.Order.TimeInForce', null, global); @@ -58,18 +68,15 @@ goog.exportSymbol('proto.vega.PositionTrade', null, global); goog.exportSymbol('proto.vega.Price', null, global); goog.exportSymbol('proto.vega.PriceLevel', null, global); goog.exportSymbol('proto.vega.PriceMonitoringBounds', null, global); +goog.exportSymbol('proto.vega.RewardDetails', null, global); +goog.exportSymbol('proto.vega.RewardPerAssetDetail', null, global); goog.exportSymbol('proto.vega.RiskFactor', null, global); goog.exportSymbol('proto.vega.RiskResult', null, global); goog.exportSymbol('proto.vega.Side', null, global); -goog.exportSymbol('proto.vega.Signature', null, global); -goog.exportSymbol('proto.vega.SignedBundle', null, global); -goog.exportSymbol('proto.vega.Statistics', null, global); goog.exportSymbol('proto.vega.Timestamp', null, global); goog.exportSymbol('proto.vega.Trade', null, global); goog.exportSymbol('proto.vega.Trade.Type', null, global); goog.exportSymbol('proto.vega.TradeSet', null, global); -goog.exportSymbol('proto.vega.Transaction', null, global); -goog.exportSymbol('proto.vega.Transaction.FromCase', null, global); goog.exportSymbol('proto.vega.Transfer', null, global); goog.exportSymbol('proto.vega.TransferBalance', null, global); goog.exportSymbol('proto.vega.TransferRequest', null, global); @@ -132,7 +139,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.vega.Party = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.Party.repeatedFields_, null); }; goog.inherits(proto.vega.Party, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -478,27 +485,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.vega.PositionTrade.displayName = 'proto.vega.PositionTrade'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.vega.Statistics = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.vega.Statistics, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vega.Statistics.displayName = 'proto.vega.Statistics'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -845,16 +831,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.Transaction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, proto.vega.Transaction.oneofGroups_); +proto.vega.NetworkParameter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.Transaction, jspb.Message); +goog.inherits(proto.vega.NetworkParameter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.Transaction.displayName = 'proto.vega.Transaction'; + proto.vega.NetworkParameter.displayName = 'proto.vega.NetworkParameter'; } /** * Generated by JsPbCodeGenerator. @@ -866,16 +852,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.Signature = function(opt_data) { +proto.vega.LiquidityOrder = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.Signature, jspb.Message); +goog.inherits(proto.vega.LiquidityOrder, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.Signature.displayName = 'proto.vega.Signature'; + proto.vega.LiquidityOrder.displayName = 'proto.vega.LiquidityOrder'; } /** * Generated by JsPbCodeGenerator. @@ -887,16 +873,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.SignedBundle = function(opt_data) { +proto.vega.LiquidityOrderReference = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.SignedBundle, jspb.Message); +goog.inherits(proto.vega.LiquidityOrderReference, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.SignedBundle.displayName = 'proto.vega.SignedBundle'; + proto.vega.LiquidityOrderReference.displayName = 'proto.vega.LiquidityOrderReference'; } /** * Generated by JsPbCodeGenerator. @@ -908,16 +894,58 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.NetworkParameter = function(opt_data) { +proto.vega.LiquidityProvision = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.LiquidityProvision.repeatedFields_, null); +}; +goog.inherits(proto.vega.LiquidityProvision, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.LiquidityProvision.displayName = 'proto.vega.LiquidityProvision'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.EthereumConfig = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.EthereumConfig.repeatedFields_, null); +}; +goog.inherits(proto.vega.EthereumConfig, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.EthereumConfig.displayName = 'proto.vega.EthereumConfig'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.EpochTimestamps = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.NetworkParameter, jspb.Message); +goog.inherits(proto.vega.EpochTimestamps, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.NetworkParameter.displayName = 'proto.vega.NetworkParameter'; + proto.vega.EpochTimestamps.displayName = 'proto.vega.EpochTimestamps'; } /** * Generated by JsPbCodeGenerator. @@ -929,16 +957,37 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.LiquidityOrder = function(opt_data) { +proto.vega.Epoch = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.Epoch.repeatedFields_, null); +}; +goog.inherits(proto.vega.Epoch, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.Epoch.displayName = 'proto.vega.Epoch'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.EpochParticipation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.LiquidityOrder, jspb.Message); +goog.inherits(proto.vega.EpochParticipation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.LiquidityOrder.displayName = 'proto.vega.LiquidityOrder'; + proto.vega.EpochParticipation.displayName = 'proto.vega.EpochParticipation'; } /** * Generated by JsPbCodeGenerator. @@ -950,16 +999,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.LiquidityOrderReference = function(opt_data) { +proto.vega.EpochData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.LiquidityOrderReference, jspb.Message); +goog.inherits(proto.vega.EpochData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.LiquidityOrderReference.displayName = 'proto.vega.LiquidityOrderReference'; + proto.vega.EpochData.displayName = 'proto.vega.EpochData'; } /** * Generated by JsPbCodeGenerator. @@ -971,16 +1020,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.LiquidityProvision = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.LiquidityProvision.repeatedFields_, null); +proto.vega.Node = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.Node.repeatedFields_, null); }; -goog.inherits(proto.vega.LiquidityProvision, jspb.Message); +goog.inherits(proto.vega.Node, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.LiquidityProvision.displayName = 'proto.vega.LiquidityProvision'; + proto.vega.Node.displayName = 'proto.vega.Node'; } /** * Generated by JsPbCodeGenerator. @@ -992,16 +1041,79 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vega.EthereumConfig = function(opt_data) { +proto.vega.NodeData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vega.EthereumConfig, jspb.Message); +goog.inherits(proto.vega.NodeData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vega.EthereumConfig.displayName = 'proto.vega.EthereumConfig'; + proto.vega.NodeData.displayName = 'proto.vega.NodeData'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.Delegation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.Delegation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.Delegation.displayName = 'proto.vega.Delegation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.RewardDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.RewardDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.RewardDetails.displayName = 'proto.vega.RewardDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.RewardPerAssetDetail = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.RewardPerAssetDetail.repeatedFields_, null); +}; +goog.inherits(proto.vega.RewardPerAssetDetail, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.RewardPerAssetDetail.displayName = 'proto.vega.RewardPerAssetDetail'; } @@ -1264,6 +1376,13 @@ proto.vega.Timestamp.prototype.setValue = function(value) { +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.Party.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -1295,7 +1414,9 @@ proto.vega.Party.prototype.toObject = function(opt_includeInstance) { */ proto.vega.Party.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + delegationsList: jspb.Message.toObjectList(msg.getDelegationsList(), + proto.vega.Delegation.toObject, includeInstance) }; if (includeInstance) { @@ -1336,6 +1457,11 @@ proto.vega.Party.deserializeBinaryFromReader = function(msg, reader) { var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; + case 2: + var value = new proto.vega.Delegation; + reader.readMessage(value,proto.vega.Delegation.deserializeBinaryFromReader); + msg.addDelegations(value); + break; default: reader.skipField(); break; @@ -1372,6 +1498,14 @@ proto.vega.Party.serializeBinaryToWriter = function(message, writer) { f ); } + f = message.getDelegationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.vega.Delegation.serializeBinaryToWriter + ); + } }; @@ -1393,6 +1527,44 @@ proto.vega.Party.prototype.setId = function(value) { }; +/** + * repeated Delegation delegations = 2; + * @return {!Array} + */ +proto.vega.Party.prototype.getDelegationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Delegation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.Party} returns this +*/ +proto.vega.Party.prototype.setDelegationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.vega.Delegation=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Delegation} + */ +proto.vega.Party.prototype.addDelegations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.Delegation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.Party} returns this + */ +proto.vega.Party.prototype.clearDelegationsList = function() { + return this.setDelegationsList([]); +}; + + @@ -5877,8 +6049,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Statistics.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Statistics.toObject(opt_includeInstance, this); +proto.vega.Deposit.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Deposit.toObject(opt_includeInstance, this); }; @@ -5887,44 +6059,20 @@ proto.vega.Statistics.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Statistics} msg The msg instance to transform. + * @param {!proto.vega.Deposit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Statistics.toObject = function(includeInstance, msg) { +proto.vega.Deposit.toObject = function(includeInstance, msg) { var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), - backlogLength: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalPeers: jspb.Message.getFieldWithDefault(msg, 3, 0), - genesisTime: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentTime: jspb.Message.getFieldWithDefault(msg, 5, ""), - vegaTime: jspb.Message.getFieldWithDefault(msg, 6, ""), - status: jspb.Message.getFieldWithDefault(msg, 7, 0), - txPerBlock: jspb.Message.getFieldWithDefault(msg, 8, 0), - averageTxBytes: jspb.Message.getFieldWithDefault(msg, 9, 0), - averageOrdersPerBlock: jspb.Message.getFieldWithDefault(msg, 10, 0), - tradesPerSecond: jspb.Message.getFieldWithDefault(msg, 11, 0), - ordersPerSecond: jspb.Message.getFieldWithDefault(msg, 12, 0), - totalMarkets: jspb.Message.getFieldWithDefault(msg, 13, 0), - totalAmendOrder: jspb.Message.getFieldWithDefault(msg, 16, 0), - totalCancelOrder: jspb.Message.getFieldWithDefault(msg, 17, 0), - totalCreateOrder: jspb.Message.getFieldWithDefault(msg, 18, 0), - totalOrders: jspb.Message.getFieldWithDefault(msg, 19, 0), - totalTrades: jspb.Message.getFieldWithDefault(msg, 20, 0), - orderSubscriptions: jspb.Message.getFieldWithDefault(msg, 21, 0), - tradeSubscriptions: jspb.Message.getFieldWithDefault(msg, 22, 0), - candleSubscriptions: jspb.Message.getFieldWithDefault(msg, 23, 0), - marketDepthSubscriptions: jspb.Message.getFieldWithDefault(msg, 24, 0), - positionsSubscriptions: jspb.Message.getFieldWithDefault(msg, 25, 0), - accountSubscriptions: jspb.Message.getFieldWithDefault(msg, 26, 0), - marketDataSubscriptions: jspb.Message.getFieldWithDefault(msg, 27, 0), - appVersionHash: jspb.Message.getFieldWithDefault(msg, 28, ""), - appVersion: jspb.Message.getFieldWithDefault(msg, 29, ""), - chainVersion: jspb.Message.getFieldWithDefault(msg, 30, ""), - blockDuration: jspb.Message.getFieldWithDefault(msg, 31, 0), - uptime: jspb.Message.getFieldWithDefault(msg, 32, ""), - chainId: jspb.Message.getFieldWithDefault(msg, 33, ""), - marketDepthUpdatesSubscriptions: jspb.Message.getFieldWithDefault(msg, 34, 0) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: jspb.Message.getFieldWithDefault(msg, 2, 0), + partyId: jspb.Message.getFieldWithDefault(msg, 3, ""), + asset: jspb.Message.getFieldWithDefault(msg, 4, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, ""), + txHash: jspb.Message.getFieldWithDefault(msg, 6, ""), + creditedTimestamp: jspb.Message.getFieldWithDefault(msg, 7, 0), + createdTimestamp: jspb.Message.getFieldWithDefault(msg, 8, 0) }; if (includeInstance) { @@ -5938,23 +6086,23 @@ proto.vega.Statistics.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Statistics} + * @return {!proto.vega.Deposit} */ -proto.vega.Statistics.deserializeBinary = function(bytes) { +proto.vega.Deposit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Statistics; - return proto.vega.Statistics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Deposit; + return proto.vega.Deposit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Statistics} msg The message object to deserialize into. + * @param {!proto.vega.Deposit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Statistics} + * @return {!proto.vega.Deposit} */ -proto.vega.Statistics.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Deposit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5962,135 +6110,39 @@ proto.vega.Statistics.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockHeight(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBacklogLength(value); + var value = /** @type {!proto.vega.Deposit.Status} */ (reader.readEnum()); + msg.setStatus(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalPeers(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPartyId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setGenesisTime(value); + msg.setAsset(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setCurrentTime(value); + msg.setAmount(value); break; case 6: var value = /** @type {string} */ (reader.readString()); - msg.setVegaTime(value); + msg.setTxHash(value); break; case 7: - var value = /** @type {!proto.vega.ChainStatus} */ (reader.readEnum()); - msg.setStatus(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreditedTimestamp(value); break; case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTxPerBlock(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAverageTxBytes(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAverageOrdersPerBlock(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTradesPerSecond(value); - break; - case 12: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOrdersPerSecond(value); - break; - case 13: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalMarkets(value); - break; - case 16: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalAmendOrder(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreatedTimestamp(value); break; - case 17: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalCancelOrder(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalCreateOrder(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalOrders(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalTrades(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOrderSubscriptions(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTradeSubscriptions(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCandleSubscriptions(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMarketDepthSubscriptions(value); - break; - case 25: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPositionsSubscriptions(value); - break; - case 26: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAccountSubscriptions(value); - break; - case 27: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMarketDataSubscriptions(value); - break; - case 28: - var value = /** @type {string} */ (reader.readString()); - msg.setAppVersionHash(value); - break; - case 29: - var value = /** @type {string} */ (reader.readString()); - msg.setAppVersion(value); - break; - case 30: - var value = /** @type {string} */ (reader.readString()); - msg.setChainVersion(value); - break; - case 31: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockDuration(value); - break; - case 32: - var value = /** @type {string} */ (reader.readString()); - msg.setUptime(value); - break; - case 33: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - case 34: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMarketDepthUpdatesSubscriptions(value); - break; - default: - reader.skipField(); + default: + reader.skipField(); break; } } @@ -6102,9 +6154,9 @@ proto.vega.Statistics.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Statistics.prototype.serializeBinary = function() { +proto.vega.Deposit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Statistics.serializeBinaryToWriter(this, writer); + proto.vega.Deposit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6112,818 +6164,714 @@ proto.vega.Statistics.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Statistics} message + * @param {!proto.vega.Deposit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Statistics.serializeBinaryToWriter = function(message, writer) { +proto.vega.Deposit.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlockHeight(); - if (f !== 0) { - writer.writeUint64( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getBacklogLength(); - if (f !== 0) { - writer.writeUint64( + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( 2, f ); } - f = message.getTotalPeers(); - if (f !== 0) { - writer.writeUint64( + f = message.getPartyId(); + if (f.length > 0) { + writer.writeString( 3, f ); } - f = message.getGenesisTime(); + f = message.getAsset(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getCurrentTime(); + f = message.getAmount(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getVegaTime(); + f = message.getTxHash(); if (f.length > 0) { writer.writeString( 6, f ); } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getCreditedTimestamp(); + if (f !== 0) { + writer.writeInt64( 7, f ); } - f = message.getTxPerBlock(); + f = message.getCreatedTimestamp(); if (f !== 0) { - writer.writeUint64( + writer.writeInt64( 8, f ); } - f = message.getAverageTxBytes(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getAverageOrdersPerBlock(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getTradesPerSecond(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getOrdersPerSecond(); - if (f !== 0) { - writer.writeUint64( - 12, - f - ); - } - f = message.getTotalMarkets(); - if (f !== 0) { - writer.writeUint64( - 13, - f - ); - } - f = message.getTotalAmendOrder(); - if (f !== 0) { - writer.writeUint64( - 16, - f - ); - } - f = message.getTotalCancelOrder(); - if (f !== 0) { - writer.writeUint64( - 17, - f - ); - } - f = message.getTotalCreateOrder(); - if (f !== 0) { - writer.writeUint64( - 18, - f - ); - } - f = message.getTotalOrders(); - if (f !== 0) { - writer.writeUint64( - 19, - f - ); - } - f = message.getTotalTrades(); - if (f !== 0) { - writer.writeUint64( - 20, - f - ); - } - f = message.getOrderSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 21, - f - ); - } - f = message.getTradeSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 22, - f - ); - } - f = message.getCandleSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getMarketDepthSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getPositionsSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 25, - f - ); - } - f = message.getAccountSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 26, - f - ); - } - f = message.getMarketDataSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 27, - f - ); - } - f = message.getAppVersionHash(); - if (f.length > 0) { - writer.writeString( - 28, - f - ); - } - f = message.getAppVersion(); - if (f.length > 0) { - writer.writeString( - 29, - f - ); - } - f = message.getChainVersion(); - if (f.length > 0) { - writer.writeString( - 30, - f - ); - } - f = message.getBlockDuration(); - if (f !== 0) { - writer.writeUint64( - 31, - f - ); - } - f = message.getUptime(); - if (f.length > 0) { - writer.writeString( - 32, - f - ); - } - f = message.getChainId(); - if (f.length > 0) { - writer.writeString( - 33, - f - ); - } - f = message.getMarketDepthUpdatesSubscriptions(); - if (f !== 0) { - writer.writeUint32( - 34, - f - ); - } }; /** - * optional uint64 block_height = 1; - * @return {number} + * @enum {number} */ -proto.vega.Statistics.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.vega.Deposit.Status = { + STATUS_UNSPECIFIED: 0, + STATUS_OPEN: 1, + STATUS_CANCELLED: 2, + STATUS_FINALIZED: 3 }; - /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * optional string id = 1; + * @return {string} */ -proto.vega.Statistics.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.vega.Deposit.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional uint64 backlog_length = 2; - * @return {number} + * @param {string} value + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.getBacklogLength = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.Deposit.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * optional Status status = 2; + * @return {!proto.vega.Deposit.Status} */ -proto.vega.Statistics.prototype.setBacklogLength = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.vega.Deposit.prototype.getStatus = function() { + return /** @type {!proto.vega.Deposit.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional uint64 total_peers = 3; - * @return {number} + * @param {!proto.vega.Deposit.Status} value + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.getTotalPeers = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.Deposit.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * optional string party_id = 3; + * @return {string} */ -proto.vega.Statistics.prototype.setTotalPeers = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.Deposit.prototype.getPartyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * optional string genesis_time = 4; - * @return {string} + * @param {string} value + * @return {!proto.vega.Deposit} returns this + */ +proto.vega.Deposit.prototype.setPartyId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string asset = 4; + * @return {string} */ -proto.vega.Statistics.prototype.getGenesisTime = function() { +proto.vega.Deposit.prototype.getAsset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.setGenesisTime = function(value) { +proto.vega.Deposit.prototype.setAsset = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string current_time = 5; + * optional string amount = 5; * @return {string} */ -proto.vega.Statistics.prototype.getCurrentTime = function() { +proto.vega.Deposit.prototype.getAmount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.setCurrentTime = function(value) { +proto.vega.Deposit.prototype.setAmount = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string vega_time = 6; + * optional string tx_hash = 6; * @return {string} */ -proto.vega.Statistics.prototype.getVegaTime = function() { +proto.vega.Deposit.prototype.getTxHash = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.setVegaTime = function(value) { +proto.vega.Deposit.prototype.setTxHash = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional ChainStatus status = 7; - * @return {!proto.vega.ChainStatus} + * optional int64 credited_timestamp = 7; + * @return {number} */ -proto.vega.Statistics.prototype.getStatus = function() { - return /** @type {!proto.vega.ChainStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.vega.Deposit.prototype.getCreditedTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** - * @param {!proto.vega.ChainStatus} value - * @return {!proto.vega.Statistics} returns this + * @param {number} value + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); +proto.vega.Deposit.prototype.setCreditedTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); }; /** - * optional uint64 tx_per_block = 8; + * optional int64 created_timestamp = 8; * @return {number} */ -proto.vega.Statistics.prototype.getTxPerBlock = function() { +proto.vega.Deposit.prototype.getCreatedTimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Deposit} returns this */ -proto.vega.Statistics.prototype.setTxPerBlock = function(value) { +proto.vega.Deposit.prototype.setCreatedTimestamp = function(value) { return jspb.Message.setProto3IntField(this, 8, value); }; -/** - * optional uint64 average_tx_bytes = 9; - * @return {number} - */ -proto.vega.Statistics.prototype.getAverageTxBytes = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.Statistics.prototype.setAverageTxBytes = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.vega.Withdrawal.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Withdrawal.toObject(opt_includeInstance, this); }; /** - * optional uint64 average_orders_per_block = 10; - * @return {number} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.Withdrawal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Statistics.prototype.getAverageOrdersPerBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.vega.Withdrawal.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + asset: jspb.Message.getFieldWithDefault(msg, 4, ""), + status: jspb.Message.getFieldWithDefault(msg, 5, 0), + ref: jspb.Message.getFieldWithDefault(msg, 6, ""), + expiry: jspb.Message.getFieldWithDefault(msg, 7, 0), + txHash: jspb.Message.getFieldWithDefault(msg, 8, ""), + createdTimestamp: jspb.Message.getFieldWithDefault(msg, 9, 0), + withdrawnTimestamp: jspb.Message.getFieldWithDefault(msg, 10, 0), + ext: (f = msg.getExt()) && proto.vega.WithdrawExt.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.Withdrawal} */ -proto.vega.Statistics.prototype.setAverageOrdersPerBlock = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); +proto.vega.Withdrawal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.Withdrawal; + return proto.vega.Withdrawal.deserializeBinaryFromReader(msg, reader); }; /** - * optional uint64 trades_per_second = 11; - * @return {number} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.Withdrawal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.Withdrawal} */ -proto.vega.Statistics.prototype.getTradesPerSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.vega.Withdrawal.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPartyId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + case 5: + var value = /** @type {!proto.vega.Withdrawal.Status} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setRef(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExpiry(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setTxHash(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreatedTimestamp(value); + break; + case 10: + var value = /** @type {number} */ (reader.readInt64()); + msg.setWithdrawnTimestamp(value); + break; + case 11: + var value = new proto.vega.WithdrawExt; + reader.readMessage(value,proto.vega.WithdrawExt.deserializeBinaryFromReader); + msg.setExt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.Statistics.prototype.setTradesPerSecond = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); +proto.vega.Withdrawal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.Withdrawal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional uint64 orders_per_second = 12; - * @return {number} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.Withdrawal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Statistics.prototype.getOrdersPerSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +proto.vega.Withdrawal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPartyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 5, + f + ); + } + f = message.getRef(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getExpiry(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getTxHash(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getCreatedTimestamp(); + if (f !== 0) { + writer.writeInt64( + 9, + f + ); + } + f = message.getWithdrawnTimestamp(); + if (f !== 0) { + writer.writeInt64( + 10, + f + ); + } + f = message.getExt(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.vega.WithdrawExt.serializeBinaryToWriter + ); + } }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @enum {number} */ -proto.vega.Statistics.prototype.setOrdersPerSecond = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional uint64 total_markets = 13; - * @return {number} - */ -proto.vega.Statistics.prototype.getTotalMarkets = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setTotalMarkets = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional uint64 total_amend_order = 16; - * @return {number} - */ -proto.vega.Statistics.prototype.getTotalAmendOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setTotalAmendOrder = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional uint64 total_cancel_order = 17; - * @return {number} - */ -proto.vega.Statistics.prototype.getTotalCancelOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setTotalCancelOrder = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); +proto.vega.Withdrawal.Status = { + STATUS_UNSPECIFIED: 0, + STATUS_OPEN: 1, + STATUS_CANCELLED: 2, + STATUS_FINALIZED: 3 }; - /** - * optional uint64 total_create_order = 18; - * @return {number} + * optional string id = 1; + * @return {string} */ -proto.vega.Statistics.prototype.getTotalCreateOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +proto.vega.Withdrawal.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {string} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setTotalCreateOrder = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); +proto.vega.Withdrawal.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 total_orders = 19; - * @return {number} + * optional string party_id = 2; + * @return {string} */ -proto.vega.Statistics.prototype.getTotalOrders = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +proto.vega.Withdrawal.prototype.getPartyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {string} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setTotalOrders = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); +proto.vega.Withdrawal.prototype.setPartyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 total_trades = 20; + * optional uint64 amount = 3; * @return {number} */ -proto.vega.Statistics.prototype.getTotalTrades = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +proto.vega.Withdrawal.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setTotalTrades = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); +proto.vega.Withdrawal.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional uint32 order_subscriptions = 21; - * @return {number} + * optional string asset = 4; + * @return {string} */ -proto.vega.Statistics.prototype.getOrderSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +proto.vega.Withdrawal.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {string} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setOrderSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); +proto.vega.Withdrawal.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional uint32 trade_subscriptions = 22; - * @return {number} + * optional Status status = 5; + * @return {!proto.vega.Withdrawal.Status} */ -proto.vega.Statistics.prototype.getTradeSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); +proto.vega.Withdrawal.prototype.getStatus = function() { + return /** @type {!proto.vega.Withdrawal.Status} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {!proto.vega.Withdrawal.Status} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setTradeSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); +proto.vega.Withdrawal.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 5, value); }; /** - * optional uint32 candle_subscriptions = 23; - * @return {number} + * optional string ref = 6; + * @return {string} */ -proto.vega.Statistics.prototype.getCandleSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +proto.vega.Withdrawal.prototype.getRef = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {string} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setCandleSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); +proto.vega.Withdrawal.prototype.setRef = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional uint32 market_depth_subscriptions = 24; + * optional int64 expiry = 7; * @return {number} */ -proto.vega.Statistics.prototype.getMarketDepthSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); +proto.vega.Withdrawal.prototype.getExpiry = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setMarketDepthSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); +proto.vega.Withdrawal.prototype.setExpiry = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); }; /** - * optional uint32 positions_subscriptions = 25; - * @return {number} + * optional string tx_hash = 8; + * @return {string} */ -proto.vega.Statistics.prototype.getPositionsSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); +proto.vega.Withdrawal.prototype.getTxHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @param {string} value + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setPositionsSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); +proto.vega.Withdrawal.prototype.setTxHash = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional uint32 account_subscriptions = 26; + * optional int64 created_timestamp = 9; * @return {number} */ -proto.vega.Statistics.prototype.getAccountSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); +proto.vega.Withdrawal.prototype.getCreatedTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setAccountSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 26, value); +proto.vega.Withdrawal.prototype.setCreatedTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * optional uint32 market_data_subscriptions = 27; + * optional int64 withdrawn_timestamp = 10; * @return {number} */ -proto.vega.Statistics.prototype.getMarketDataSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); +proto.vega.Withdrawal.prototype.getWithdrawnTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** * @param {number} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setMarketDataSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 27, value); -}; - - -/** - * optional string app_version_hash = 28; - * @return {string} - */ -proto.vega.Statistics.prototype.getAppVersionHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setAppVersionHash = function(value) { - return jspb.Message.setProto3StringField(this, 28, value); -}; - - -/** - * optional string app_version = 29; - * @return {string} - */ -proto.vega.Statistics.prototype.getAppVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setAppVersion = function(value) { - return jspb.Message.setProto3StringField(this, 29, value); -}; - - -/** - * optional string chain_version = 30; - * @return {string} - */ -proto.vega.Statistics.prototype.getChainVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.Statistics} returns this + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.setChainVersion = function(value) { - return jspb.Message.setProto3StringField(this, 30, value); +proto.vega.Withdrawal.prototype.setWithdrawnTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * optional uint64 block_duration = 31; - * @return {number} + * optional WithdrawExt ext = 11; + * @return {?proto.vega.WithdrawExt} */ -proto.vega.Statistics.prototype.getBlockDuration = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 0)); +proto.vega.Withdrawal.prototype.getExt = function() { + return /** @type{?proto.vega.WithdrawExt} */ ( + jspb.Message.getWrapperField(this, proto.vega.WithdrawExt, 11)); }; /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this - */ -proto.vega.Statistics.prototype.setBlockDuration = function(value) { - return jspb.Message.setProto3IntField(this, 31, value); + * @param {?proto.vega.WithdrawExt|undefined} value + * @return {!proto.vega.Withdrawal} returns this +*/ +proto.vega.Withdrawal.prototype.setExt = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** - * optional string uptime = 32; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.vega.Withdrawal} returns this */ -proto.vega.Statistics.prototype.getUptime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, "")); +proto.vega.Withdrawal.prototype.clearExt = function() { + return this.setExt(undefined); }; /** - * @param {string} value - * @return {!proto.vega.Statistics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.Statistics.prototype.setUptime = function(value) { - return jspb.Message.setProto3StringField(this, 32, value); +proto.vega.Withdrawal.prototype.hasExt = function() { + return jspb.Message.getField(this, 11) != null; }; -/** - * optional string chain_id = 33; - * @return {string} - */ -proto.vega.Statistics.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); -}; - /** - * @param {string} value - * @return {!proto.vega.Statistics} returns this + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.vega.Statistics.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 33, value); -}; - +proto.vega.WithdrawExt.oneofGroups_ = [[1]]; /** - * optional uint32 market_depth_updates_subscriptions = 34; - * @return {number} + * @enum {number} */ -proto.vega.Statistics.prototype.getMarketDepthUpdatesSubscriptions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); +proto.vega.WithdrawExt.ExtCase = { + EXT_NOT_SET: 0, + ERC20: 1 }; - /** - * @param {number} value - * @return {!proto.vega.Statistics} returns this + * @return {proto.vega.WithdrawExt.ExtCase} */ -proto.vega.Statistics.prototype.setMarketDepthUpdatesSubscriptions = function(value) { - return jspb.Message.setProto3IntField(this, 34, value); +proto.vega.WithdrawExt.prototype.getExtCase = function() { + return /** @type {proto.vega.WithdrawExt.ExtCase} */(jspb.Message.computeOneofCase(this, proto.vega.WithdrawExt.oneofGroups_[0])); }; - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -6937,8 +6885,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Deposit.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Deposit.toObject(opt_includeInstance, this); +proto.vega.WithdrawExt.prototype.toObject = function(opt_includeInstance) { + return proto.vega.WithdrawExt.toObject(opt_includeInstance, this); }; @@ -6947,20 +6895,13 @@ proto.vega.Deposit.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Deposit} msg The msg instance to transform. + * @param {!proto.vega.WithdrawExt} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Deposit.toObject = function(includeInstance, msg) { +proto.vega.WithdrawExt.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: jspb.Message.getFieldWithDefault(msg, 2, 0), - partyId: jspb.Message.getFieldWithDefault(msg, 3, ""), - asset: jspb.Message.getFieldWithDefault(msg, 4, ""), - amount: jspb.Message.getFieldWithDefault(msg, 5, ""), - txHash: jspb.Message.getFieldWithDefault(msg, 6, ""), - creditedTimestamp: jspb.Message.getFieldWithDefault(msg, 7, 0), - createdTimestamp: jspb.Message.getFieldWithDefault(msg, 8, 0) + erc20: (f = msg.getErc20()) && proto.vega.Erc20WithdrawExt.toObject(includeInstance, f) }; if (includeInstance) { @@ -6974,23 +6915,23 @@ proto.vega.Deposit.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Deposit} + * @return {!proto.vega.WithdrawExt} */ -proto.vega.Deposit.deserializeBinary = function(bytes) { +proto.vega.WithdrawExt.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Deposit; - return proto.vega.Deposit.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.WithdrawExt; + return proto.vega.WithdrawExt.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Deposit} msg The message object to deserialize into. + * @param {!proto.vega.WithdrawExt} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Deposit} + * @return {!proto.vega.WithdrawExt} */ -proto.vega.Deposit.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6998,36 +6939,9 @@ proto.vega.Deposit.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.vega.Deposit.Status} */ (reader.readEnum()); - msg.setStatus(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAmount(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTxHash(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreditedTimestamp(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreatedTimestamp(value); + var value = new proto.vega.Erc20WithdrawExt; + reader.readMessage(value,proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader); + msg.setErc20(value); break; default: reader.skipField(); @@ -7042,9 +6956,9 @@ proto.vega.Deposit.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Deposit.prototype.serializeBinary = function() { +proto.vega.WithdrawExt.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Deposit.serializeBinaryToWriter(this, writer); + proto.vega.WithdrawExt.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7052,222 +6966,187 @@ proto.vega.Deposit.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Deposit} message + * @param {!proto.vega.WithdrawExt} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Deposit.serializeBinaryToWriter = function(message, writer) { +proto.vega.WithdrawExt.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getErc20(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAmount(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTxHash(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getCreditedTimestamp(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getCreatedTimestamp(); - if (f !== 0) { - writer.writeInt64( - 8, - f + f, + proto.vega.Erc20WithdrawExt.serializeBinaryToWriter ); } }; /** - * @enum {number} + * optional Erc20WithdrawExt erc20 = 1; + * @return {?proto.vega.Erc20WithdrawExt} */ -proto.vega.Deposit.Status = { - STATUS_UNSPECIFIED: 0, - STATUS_OPEN: 1, - STATUS_CANCELLED: 2, - STATUS_FINALIZED: 3 +proto.vega.WithdrawExt.prototype.getErc20 = function() { + return /** @type{?proto.vega.Erc20WithdrawExt} */ ( + jspb.Message.getWrapperField(this, proto.vega.Erc20WithdrawExt, 1)); }; + /** - * optional string id = 1; - * @return {string} - */ -proto.vega.Deposit.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + * @param {?proto.vega.Erc20WithdrawExt|undefined} value + * @return {!proto.vega.WithdrawExt} returns this +*/ +proto.vega.WithdrawExt.prototype.setErc20 = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.vega.WithdrawExt.oneofGroups_[0], value); }; /** - * @param {string} value - * @return {!proto.vega.Deposit} returns this + * Clears the message field making it undefined. + * @return {!proto.vega.WithdrawExt} returns this */ -proto.vega.Deposit.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.vega.WithdrawExt.prototype.clearErc20 = function() { + return this.setErc20(undefined); }; /** - * optional Status status = 2; - * @return {!proto.vega.Deposit.Status} + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.Deposit.prototype.getStatus = function() { - return /** @type {!proto.vega.Deposit.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.WithdrawExt.prototype.hasErc20 = function() { + return jspb.Message.getField(this, 1) != null; }; -/** - * @param {!proto.vega.Deposit.Status} value - * @return {!proto.vega.Deposit} returns this - */ -proto.vega.Deposit.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string party_id = 3; - * @return {string} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.Deposit.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.vega.Erc20WithdrawExt.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Erc20WithdrawExt.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.vega.Deposit} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.Erc20WithdrawExt} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Deposit.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.vega.Erc20WithdrawExt.toObject = function(includeInstance, msg) { + var f, obj = { + receiverAddress: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string asset = 4; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.Erc20WithdrawExt} */ -proto.vega.Deposit.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.vega.Erc20WithdrawExt.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.Erc20WithdrawExt; + return proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.vega.Deposit} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.Erc20WithdrawExt} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.Erc20WithdrawExt} */ -proto.vega.Deposit.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiverAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string amount = 5; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.Deposit.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.vega.Erc20WithdrawExt.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.Erc20WithdrawExt.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.vega.Deposit} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.Erc20WithdrawExt} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Deposit.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.vega.Erc20WithdrawExt.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReceiverAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } }; /** - * optional string tx_hash = 6; + * optional string receiver_address = 1; * @return {string} */ -proto.vega.Deposit.prototype.getTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.vega.Erc20WithdrawExt.prototype.getReceiverAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.Deposit} returns this + * @return {!proto.vega.Erc20WithdrawExt} returns this */ -proto.vega.Deposit.prototype.setTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional int64 credited_timestamp = 7; - * @return {number} - */ -proto.vega.Deposit.prototype.getCreditedTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Deposit} returns this - */ -proto.vega.Deposit.prototype.setCreditedTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional int64 created_timestamp = 8; - * @return {number} - */ -proto.vega.Deposit.prototype.getCreatedTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Deposit} returns this - */ -proto.vega.Deposit.prototype.setCreatedTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.vega.Erc20WithdrawExt.prototype.setReceiverAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7287,8 +7166,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Withdrawal.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Withdrawal.toObject(opt_includeInstance, this); +proto.vega.Account.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Account.toObject(opt_includeInstance, this); }; @@ -7297,23 +7176,18 @@ proto.vega.Withdrawal.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Withdrawal} msg The msg instance to transform. + * @param {!proto.vega.Account} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Withdrawal.toObject = function(includeInstance, msg) { +proto.vega.Account.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + owner: jspb.Message.getFieldWithDefault(msg, 2, ""), + balance: jspb.Message.getFieldWithDefault(msg, 3, 0), asset: jspb.Message.getFieldWithDefault(msg, 4, ""), - status: jspb.Message.getFieldWithDefault(msg, 5, 0), - ref: jspb.Message.getFieldWithDefault(msg, 6, ""), - expiry: jspb.Message.getFieldWithDefault(msg, 7, 0), - txHash: jspb.Message.getFieldWithDefault(msg, 8, ""), - createdTimestamp: jspb.Message.getFieldWithDefault(msg, 9, 0), - withdrawnTimestamp: jspb.Message.getFieldWithDefault(msg, 10, 0), - ext: (f = msg.getExt()) && proto.vega.WithdrawExt.toObject(includeInstance, f) + marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), + type: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -7327,23 +7201,23 @@ proto.vega.Withdrawal.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Withdrawal} + * @return {!proto.vega.Account} */ -proto.vega.Withdrawal.deserializeBinary = function(bytes) { +proto.vega.Account.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Withdrawal; - return proto.vega.Withdrawal.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Account; + return proto.vega.Account.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Withdrawal} msg The message object to deserialize into. + * @param {!proto.vega.Account} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Withdrawal} + * @return {!proto.vega.Account} */ -proto.vega.Withdrawal.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Account.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7356,44 +7230,23 @@ proto.vega.Withdrawal.deserializeBinaryFromReader = function(msg, reader) { break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); + msg.setOwner(value); break; case 3: var value = /** @type {number} */ (reader.readUint64()); - msg.setAmount(value); + msg.setBalance(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setAsset(value); break; case 5: - var value = /** @type {!proto.vega.Withdrawal.Status} */ (reader.readEnum()); - msg.setStatus(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setRef(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setExpiry(value); - break; - case 8: var value = /** @type {string} */ (reader.readString()); - msg.setTxHash(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreatedTimestamp(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setWithdrawnTimestamp(value); + msg.setMarketId(value); break; - case 11: - var value = new proto.vega.WithdrawExt; - reader.readMessage(value,proto.vega.WithdrawExt.deserializeBinaryFromReader); - msg.setExt(value); + case 6: + var value = /** @type {!proto.vega.AccountType} */ (reader.readEnum()); + msg.setType(value); break; default: reader.skipField(); @@ -7408,9 +7261,9 @@ proto.vega.Withdrawal.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Withdrawal.prototype.serializeBinary = function() { +proto.vega.Account.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Withdrawal.serializeBinaryToWriter(this, writer); + proto.vega.Account.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7418,11 +7271,11 @@ proto.vega.Withdrawal.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Withdrawal} message + * @param {!proto.vega.Account} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Withdrawal.serializeBinaryToWriter = function(message, writer) { +proto.vega.Account.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -7431,14 +7284,14 @@ proto.vega.Withdrawal.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getPartyId(); + f = message.getOwner(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getAmount(); + f = message.getBalance(); if (f !== 0) { writer.writeUint64( 3, @@ -7452,119 +7305,73 @@ proto.vega.Withdrawal.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getRef(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getExpiry(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getTxHash(); + f = message.getMarketId(); if (f.length > 0) { writer.writeString( - 8, - f - ); - } - f = message.getCreatedTimestamp(); - if (f !== 0) { - writer.writeInt64( - 9, + 5, f ); } - f = message.getWithdrawnTimestamp(); - if (f !== 0) { - writer.writeInt64( - 10, + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 6, f ); } - f = message.getExt(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.vega.WithdrawExt.serializeBinaryToWriter - ); - } }; -/** - * @enum {number} - */ -proto.vega.Withdrawal.Status = { - STATUS_UNSPECIFIED: 0, - STATUS_OPEN: 1, - STATUS_CANCELLED: 2, - STATUS_FINALIZED: 3 -}; - /** * optional string id = 1; * @return {string} */ -proto.vega.Withdrawal.prototype.getId = function() { +proto.vega.Account.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.Withdrawal} returns this + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setId = function(value) { +proto.vega.Account.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string party_id = 2; + * optional string owner = 2; * @return {string} */ -proto.vega.Withdrawal.prototype.getPartyId = function() { +proto.vega.Account.prototype.getOwner = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.vega.Withdrawal} returns this + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setPartyId = function(value) { +proto.vega.Account.prototype.setOwner = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 amount = 3; + * optional uint64 balance = 3; * @return {number} */ -proto.vega.Withdrawal.prototype.getAmount = function() { +proto.vega.Account.prototype.getBalance = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.Withdrawal} returns this + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setAmount = function(value) { +proto.vega.Account.prototype.setBalance = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -7573,191 +7380,217 @@ proto.vega.Withdrawal.prototype.setAmount = function(value) { * optional string asset = 4; * @return {string} */ -proto.vega.Withdrawal.prototype.getAsset = function() { +proto.vega.Account.prototype.getAsset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.vega.Withdrawal} returns this + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setAsset = function(value) { +proto.vega.Account.prototype.setAsset = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional Status status = 5; - * @return {!proto.vega.Withdrawal.Status} + * optional string market_id = 5; + * @return {string} */ -proto.vega.Withdrawal.prototype.getStatus = function() { - return /** @type {!proto.vega.Withdrawal.Status} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.vega.Account.prototype.getMarketId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {!proto.vega.Withdrawal.Status} value - * @return {!proto.vega.Withdrawal} returns this + * @param {string} value + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); +proto.vega.Account.prototype.setMarketId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string ref = 6; - * @return {string} + * optional AccountType type = 6; + * @return {!proto.vega.AccountType} */ -proto.vega.Withdrawal.prototype.getRef = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.vega.Account.prototype.getType = function() { + return /** @type {!proto.vega.AccountType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {string} value - * @return {!proto.vega.Withdrawal} returns this + * @param {!proto.vega.AccountType} value + * @return {!proto.vega.Account} returns this */ -proto.vega.Withdrawal.prototype.setRef = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.vega.Account.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional int64 expiry = 7; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.Withdrawal.prototype.getExpiry = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.vega.FinancialAmount.prototype.toObject = function(opt_includeInstance) { + return proto.vega.FinancialAmount.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.vega.Withdrawal} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.FinancialAmount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Withdrawal.prototype.setExpiry = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); +proto.vega.FinancialAmount.toObject = function(includeInstance, msg) { + var f, obj = { + amount: jspb.Message.getFieldWithDefault(msg, 1, 0), + asset: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string tx_hash = 8; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.FinancialAmount} */ -proto.vega.Withdrawal.prototype.getTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.vega.FinancialAmount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.FinancialAmount; + return proto.vega.FinancialAmount.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.vega.Withdrawal} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.FinancialAmount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.FinancialAmount} */ -proto.vega.Withdrawal.prototype.setTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.vega.FinancialAmount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmount(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional int64 created_timestamp = 9; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.Withdrawal.prototype.getCreatedTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.vega.FinancialAmount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.FinancialAmount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.vega.Withdrawal} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.FinancialAmount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Withdrawal.prototype.setCreatedTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.vega.FinancialAmount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAmount(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional int64 withdrawn_timestamp = 10; + * optional uint64 amount = 1; * @return {number} */ -proto.vega.Withdrawal.prototype.getWithdrawnTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.vega.FinancialAmount.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vega.Withdrawal} returns this - */ -proto.vega.Withdrawal.prototype.setWithdrawnTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional WithdrawExt ext = 11; - * @return {?proto.vega.WithdrawExt} + * @return {!proto.vega.FinancialAmount} returns this */ -proto.vega.Withdrawal.prototype.getExt = function() { - return /** @type{?proto.vega.WithdrawExt} */ ( - jspb.Message.getWrapperField(this, proto.vega.WithdrawExt, 11)); -}; - - -/** - * @param {?proto.vega.WithdrawExt|undefined} value - * @return {!proto.vega.Withdrawal} returns this -*/ -proto.vega.Withdrawal.prototype.setExt = function(value) { - return jspb.Message.setWrapperField(this, 11, value); +proto.vega.FinancialAmount.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.Withdrawal} returns this + * optional string asset = 2; + * @return {string} */ -proto.vega.Withdrawal.prototype.clearExt = function() { - return this.setExt(undefined); +proto.vega.FinancialAmount.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.vega.FinancialAmount} returns this */ -proto.vega.Withdrawal.prototype.hasExt = function() { - return jspb.Message.getField(this, 11) != null; +proto.vega.FinancialAmount.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.vega.WithdrawExt.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.vega.WithdrawExt.ExtCase = { - EXT_NOT_SET: 0, - ERC20: 1 -}; - -/** - * @return {proto.vega.WithdrawExt.ExtCase} - */ -proto.vega.WithdrawExt.prototype.getExtCase = function() { - return /** @type {proto.vega.WithdrawExt.ExtCase} */(jspb.Message.computeOneofCase(this, proto.vega.WithdrawExt.oneofGroups_[0])); -}; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7773,8 +7606,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.WithdrawExt.prototype.toObject = function(opt_includeInstance) { - return proto.vega.WithdrawExt.toObject(opt_includeInstance, this); +proto.vega.Transfer.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Transfer.toObject(opt_includeInstance, this); }; @@ -7783,13 +7616,16 @@ proto.vega.WithdrawExt.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.WithdrawExt} msg The msg instance to transform. + * @param {!proto.vega.Transfer} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.WithdrawExt.toObject = function(includeInstance, msg) { +proto.vega.Transfer.toObject = function(includeInstance, msg) { var f, obj = { - erc20: (f = msg.getErc20()) && proto.vega.Erc20WithdrawExt.toObject(includeInstance, f) + owner: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: (f = msg.getAmount()) && proto.vega.FinancialAmount.toObject(includeInstance, f), + type: jspb.Message.getFieldWithDefault(msg, 3, 0), + minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -7803,23 +7639,23 @@ proto.vega.WithdrawExt.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.WithdrawExt} + * @return {!proto.vega.Transfer} */ -proto.vega.WithdrawExt.deserializeBinary = function(bytes) { +proto.vega.Transfer.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.WithdrawExt; - return proto.vega.WithdrawExt.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Transfer; + return proto.vega.Transfer.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.WithdrawExt} msg The message object to deserialize into. + * @param {!proto.vega.Transfer} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.WithdrawExt} + * @return {!proto.vega.Transfer} */ -proto.vega.WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Transfer.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7827,9 +7663,21 @@ proto.vega.WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.vega.Erc20WithdrawExt; - reader.readMessage(value,proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader); - msg.setErc20(value); + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + case 2: + var value = new proto.vega.FinancialAmount; + reader.readMessage(value,proto.vega.FinancialAmount.deserializeBinaryFromReader); + msg.setAmount(value); + break; + case 3: + var value = /** @type {!proto.vega.TransferType} */ (reader.readEnum()); + msg.setType(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinAmount(value); break; default: reader.skipField(); @@ -7844,9 +7692,9 @@ proto.vega.WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.WithdrawExt.prototype.serializeBinary = function() { +proto.vega.Transfer.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.WithdrawExt.serializeBinaryToWriter(this, writer); + proto.vega.Transfer.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7854,190 +7702,142 @@ proto.vega.WithdrawExt.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.WithdrawExt} message + * @param {!proto.vega.Transfer} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.WithdrawExt.serializeBinaryToWriter = function(message, writer) { +proto.vega.Transfer.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getErc20(); + f = message.getOwner(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); if (f != null) { writer.writeMessage( - 1, + 2, f, - proto.vega.Erc20WithdrawExt.serializeBinaryToWriter + proto.vega.FinancialAmount.serializeBinaryToWriter + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getMinAmount(); + if (f !== 0) { + writer.writeUint64( + 4, + f ); } }; /** - * optional Erc20WithdrawExt erc20 = 1; - * @return {?proto.vega.Erc20WithdrawExt} + * optional string owner = 1; + * @return {string} */ -proto.vega.WithdrawExt.prototype.getErc20 = function() { - return /** @type{?proto.vega.Erc20WithdrawExt} */ ( - jspb.Message.getWrapperField(this, proto.vega.Erc20WithdrawExt, 1)); -}; - - -/** - * @param {?proto.vega.Erc20WithdrawExt|undefined} value - * @return {!proto.vega.WithdrawExt} returns this -*/ -proto.vega.WithdrawExt.prototype.setErc20 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.vega.WithdrawExt.oneofGroups_[0], value); +proto.vega.Transfer.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.WithdrawExt} returns this + * @param {string} value + * @return {!proto.vega.Transfer} returns this */ -proto.vega.WithdrawExt.prototype.clearErc20 = function() { - return this.setErc20(undefined); +proto.vega.Transfer.prototype.setOwner = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional FinancialAmount amount = 2; + * @return {?proto.vega.FinancialAmount} */ -proto.vega.WithdrawExt.prototype.hasErc20 = function() { - return jspb.Message.getField(this, 1) != null; +proto.vega.Transfer.prototype.getAmount = function() { + return /** @type{?proto.vega.FinancialAmount} */ ( + jspb.Message.getWrapperField(this, proto.vega.FinancialAmount, 2)); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vega.Erc20WithdrawExt.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Erc20WithdrawExt.toObject(opt_includeInstance, this); + * @param {?proto.vega.FinancialAmount|undefined} value + * @return {!proto.vega.Transfer} returns this +*/ +proto.vega.Transfer.prototype.setAmount = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vega.Erc20WithdrawExt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.vega.Transfer} returns this */ -proto.vega.Erc20WithdrawExt.toObject = function(includeInstance, msg) { - var f, obj = { - receiverAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.vega.Transfer.prototype.clearAmount = function() { + return this.setAmount(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Erc20WithdrawExt} + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.Erc20WithdrawExt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Erc20WithdrawExt; - return proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader(msg, reader); +proto.vega.Transfer.prototype.hasAmount = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vega.Erc20WithdrawExt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Erc20WithdrawExt} + * optional TransferType type = 3; + * @return {!proto.vega.TransferType} */ -proto.vega.Erc20WithdrawExt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReceiverAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.vega.Transfer.prototype.getType = function() { + return /** @type {!proto.vega.TransferType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.vega.TransferType} value + * @return {!proto.vega.Transfer} returns this */ -proto.vega.Erc20WithdrawExt.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vega.Erc20WithdrawExt.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.vega.Transfer.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vega.Erc20WithdrawExt} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 min_amount = 4; + * @return {number} */ -proto.vega.Erc20WithdrawExt.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReceiverAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.vega.Transfer.prototype.getMinAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * optional string receiver_address = 1; - * @return {string} + * @param {number} value + * @return {!proto.vega.Transfer} returns this */ -proto.vega.Erc20WithdrawExt.prototype.getReceiverAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.Transfer.prototype.setMinAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; + /** - * @param {string} value - * @return {!proto.vega.Erc20WithdrawExt} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vega.Erc20WithdrawExt.prototype.setReceiverAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - +proto.vega.TransferRequest.repeatedFields_ = [1,2]; @@ -8054,8 +7854,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Account.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Account.toObject(opt_includeInstance, this); +proto.vega.TransferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.TransferRequest.toObject(opt_includeInstance, this); }; @@ -8064,18 +7864,20 @@ proto.vega.Account.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Account} msg The msg instance to transform. + * @param {!proto.vega.TransferRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Account.toObject = function(includeInstance, msg) { +proto.vega.TransferRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - owner: jspb.Message.getFieldWithDefault(msg, 2, ""), - balance: jspb.Message.getFieldWithDefault(msg, 3, 0), - asset: jspb.Message.getFieldWithDefault(msg, 4, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), - type: jspb.Message.getFieldWithDefault(msg, 6, 0) + fromAccountList: jspb.Message.toObjectList(msg.getFromAccountList(), + proto.vega.Account.toObject, includeInstance), + toAccountList: jspb.Message.toObjectList(msg.getToAccountList(), + proto.vega.Account.toObject, includeInstance), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), + asset: jspb.Message.getFieldWithDefault(msg, 5, ""), + reference: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { @@ -8089,23 +7891,23 @@ proto.vega.Account.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Account} + * @return {!proto.vega.TransferRequest} */ -proto.vega.Account.deserializeBinary = function(bytes) { +proto.vega.TransferRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Account; - return proto.vega.Account.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.TransferRequest; + return proto.vega.TransferRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Account} msg The message object to deserialize into. + * @param {!proto.vega.TransferRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Account} + * @return {!proto.vega.TransferRequest} */ -proto.vega.Account.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.TransferRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8113,28 +7915,30 @@ proto.vega.Account.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto.vega.Account; + reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); + msg.addFromAccount(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + var value = new proto.vega.Account; + reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); + msg.addToAccount(value); break; case 3: var value = /** @type {number} */ (reader.readUint64()); - msg.setBalance(value); + msg.setAmount(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinAmount(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); + msg.setAsset(value); break; case 6: - var value = /** @type {!proto.vega.AccountType} */ (reader.readEnum()); - msg.setType(value); + var value = /** @type {string} */ (reader.readString()); + msg.setReference(value); break; default: reader.skipField(); @@ -8149,9 +7953,9 @@ proto.vega.Account.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Account.prototype.serializeBinary = function() { +proto.vega.TransferRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Account.serializeBinaryToWriter(this, writer); + proto.vega.TransferRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8159,50 +7963,52 @@ proto.vega.Account.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Account} message + * @param {!proto.vega.TransferRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Account.serializeBinaryToWriter = function(message, writer) { +proto.vega.TransferRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getFromAccountList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 1, - f + f, + proto.vega.Account.serializeBinaryToWriter ); } - f = message.getOwner(); + f = message.getToAccountList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto.vega.Account.serializeBinaryToWriter ); } - f = message.getBalance(); + f = message.getAmount(); if (f !== 0) { writer.writeUint64( 3, f ); } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( + f = message.getMinAmount(); + if (f !== 0) { + writer.writeUint64( 4, f ); } - f = message.getMarketId(); + f = message.getAsset(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getReference(); + if (f.length > 0) { + writer.writeString( 6, f ); @@ -8211,110 +8017,150 @@ proto.vega.Account.serializeBinaryToWriter = function(message, writer) { /** - * optional string id = 1; - * @return {string} + * repeated Account from_account = 1; + * @return {!Array} */ -proto.vega.Account.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.TransferRequest.prototype.getFromAccountList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Account, 1)); }; /** - * @param {string} value - * @return {!proto.vega.Account} returns this + * @param {!Array} value + * @return {!proto.vega.TransferRequest} returns this +*/ +proto.vega.TransferRequest.prototype.setFromAccountList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.Account=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Account} */ -proto.vega.Account.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.vega.TransferRequest.prototype.addFromAccount = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Account, opt_index); }; /** - * optional string owner = 2; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.vega.TransferRequest} returns this */ -proto.vega.Account.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.TransferRequest.prototype.clearFromAccountList = function() { + return this.setFromAccountList([]); }; /** - * @param {string} value - * @return {!proto.vega.Account} returns this + * repeated Account to_account = 2; + * @return {!Array} */ -proto.vega.Account.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.vega.TransferRequest.prototype.getToAccountList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Account, 2)); }; /** - * optional uint64 balance = 3; + * @param {!Array} value + * @return {!proto.vega.TransferRequest} returns this +*/ +proto.vega.TransferRequest.prototype.setToAccountList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.vega.Account=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Account} + */ +proto.vega.TransferRequest.prototype.addToAccount = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.Account, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.TransferRequest} returns this + */ +proto.vega.TransferRequest.prototype.clearToAccountList = function() { + return this.setToAccountList([]); +}; + + +/** + * optional uint64 amount = 3; * @return {number} */ -proto.vega.Account.prototype.getBalance = function() { +proto.vega.TransferRequest.prototype.getAmount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.Account} returns this + * @return {!proto.vega.TransferRequest} returns this */ -proto.vega.Account.prototype.setBalance = function(value) { +proto.vega.TransferRequest.prototype.setAmount = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional string asset = 4; - * @return {string} + * optional uint64 min_amount = 4; + * @return {number} */ -proto.vega.Account.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.vega.TransferRequest.prototype.getMinAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value - * @return {!proto.vega.Account} returns this + * @param {number} value + * @return {!proto.vega.TransferRequest} returns this */ -proto.vega.Account.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.vega.TransferRequest.prototype.setMinAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * optional string market_id = 5; + * optional string asset = 5; * @return {string} */ -proto.vega.Account.prototype.getMarketId = function() { +proto.vega.TransferRequest.prototype.getAsset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.vega.Account} returns this + * @return {!proto.vega.TransferRequest} returns this */ -proto.vega.Account.prototype.setMarketId = function(value) { +proto.vega.TransferRequest.prototype.setAsset = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional AccountType type = 6; - * @return {!proto.vega.AccountType} + * optional string reference = 6; + * @return {string} */ -proto.vega.Account.prototype.getType = function() { - return /** @type {!proto.vega.AccountType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.vega.TransferRequest.prototype.getReference = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {!proto.vega.AccountType} value - * @return {!proto.vega.Account} returns this + * @param {string} value + * @return {!proto.vega.TransferRequest} returns this */ -proto.vega.Account.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); +proto.vega.TransferRequest.prototype.setReference = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -8334,8 +8180,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.FinancialAmount.prototype.toObject = function(opt_includeInstance) { - return proto.vega.FinancialAmount.toObject(opt_includeInstance, this); +proto.vega.LedgerEntry.prototype.toObject = function(opt_includeInstance) { + return proto.vega.LedgerEntry.toObject(opt_includeInstance, this); }; @@ -8344,14 +8190,18 @@ proto.vega.FinancialAmount.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.FinancialAmount} msg The msg instance to transform. + * @param {!proto.vega.LedgerEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.FinancialAmount.toObject = function(includeInstance, msg) { +proto.vega.LedgerEntry.toObject = function(includeInstance, msg) { var f, obj = { - amount: jspb.Message.getFieldWithDefault(msg, 1, 0), - asset: jspb.Message.getFieldWithDefault(msg, 2, "") + fromAccount: jspb.Message.getFieldWithDefault(msg, 1, ""), + toAccount: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + reference: jspb.Message.getFieldWithDefault(msg, 4, ""), + type: jspb.Message.getFieldWithDefault(msg, 5, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -8365,23 +8215,23 @@ proto.vega.FinancialAmount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.FinancialAmount} + * @return {!proto.vega.LedgerEntry} */ -proto.vega.FinancialAmount.deserializeBinary = function(bytes) { +proto.vega.LedgerEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.FinancialAmount; - return proto.vega.FinancialAmount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.LedgerEntry; + return proto.vega.LedgerEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.FinancialAmount} msg The message object to deserialize into. + * @param {!proto.vega.LedgerEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.FinancialAmount} + * @return {!proto.vega.LedgerEntry} */ -proto.vega.FinancialAmount.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.LedgerEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8389,12 +8239,28 @@ proto.vega.FinancialAmount.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setFromAccount(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setToAccount(value); + break; + case 3: var value = /** @type {number} */ (reader.readUint64()); msg.setAmount(value); break; - case 2: + case 4: var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); + msg.setReference(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); break; default: reader.skipField(); @@ -8409,9 +8275,9 @@ proto.vega.FinancialAmount.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.FinancialAmount.prototype.serializeBinary = function() { +proto.vega.LedgerEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.FinancialAmount.serializeBinaryToWriter(this, writer); + proto.vega.LedgerEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8419,23 +8285,51 @@ proto.vega.FinancialAmount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.FinancialAmount} message + * @param {!proto.vega.LedgerEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.FinancialAmount.serializeBinaryToWriter = function(message, writer) { +proto.vega.LedgerEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getFromAccount(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getToAccount(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } f = message.getAmount(); if (f !== 0) { writer.writeUint64( - 1, + 3, f ); } - f = message.getAsset(); + f = message.getReference(); if (f.length > 0) { writer.writeString( - 2, + 4, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 6, f ); } @@ -8443,59 +8337,131 @@ proto.vega.FinancialAmount.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 amount = 1; - * @return {number} + * optional string from_account = 1; + * @return {string} */ -proto.vega.FinancialAmount.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.vega.LedgerEntry.prototype.getFromAccount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.vega.FinancialAmount} returns this + * @param {string} value + * @return {!proto.vega.LedgerEntry} returns this */ -proto.vega.FinancialAmount.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.vega.LedgerEntry.prototype.setFromAccount = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string asset = 2; + * optional string to_account = 2; * @return {string} */ -proto.vega.FinancialAmount.prototype.getAsset = function() { +proto.vega.LedgerEntry.prototype.getToAccount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.vega.FinancialAmount} returns this + * @return {!proto.vega.LedgerEntry} returns this */ -proto.vega.FinancialAmount.prototype.setAsset = function(value) { +proto.vega.LedgerEntry.prototype.setToAccount = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * optional uint64 amount = 3; + * @return {number} + */ +proto.vega.LedgerEntry.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {number} value + * @return {!proto.vega.LedgerEntry} returns this */ -proto.vega.Transfer.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Transfer.toObject(opt_includeInstance, this); +proto.vega.LedgerEntry.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string reference = 4; + * @return {string} + */ +proto.vega.LedgerEntry.prototype.getReference = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.LedgerEntry} returns this + */ +proto.vega.LedgerEntry.prototype.setReference = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string type = 5; + * @return {string} + */ +proto.vega.LedgerEntry.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.LedgerEntry} returns this + */ +proto.vega.LedgerEntry.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional int64 timestamp = 6; + * @return {number} + */ +proto.vega.LedgerEntry.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.LedgerEntry} returns this + */ +proto.vega.LedgerEntry.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.TransferBalance.prototype.toObject = function(opt_includeInstance) { + return proto.vega.TransferBalance.toObject(opt_includeInstance, this); }; @@ -8504,16 +8470,14 @@ proto.vega.Transfer.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Transfer} msg The msg instance to transform. + * @param {!proto.vega.TransferBalance} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Transfer.toObject = function(includeInstance, msg) { +proto.vega.TransferBalance.toObject = function(includeInstance, msg) { var f, obj = { - owner: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: (f = msg.getAmount()) && proto.vega.FinancialAmount.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 3, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0) + account: (f = msg.getAccount()) && proto.vega.Account.toObject(includeInstance, f), + balance: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -8527,23 +8491,23 @@ proto.vega.Transfer.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Transfer} + * @return {!proto.vega.TransferBalance} */ -proto.vega.Transfer.deserializeBinary = function(bytes) { +proto.vega.TransferBalance.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Transfer; - return proto.vega.Transfer.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.TransferBalance; + return proto.vega.TransferBalance.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Transfer} msg The message object to deserialize into. + * @param {!proto.vega.TransferBalance} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Transfer} + * @return {!proto.vega.TransferBalance} */ -proto.vega.Transfer.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.TransferBalance.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8551,21 +8515,13 @@ proto.vega.Transfer.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + var value = new proto.vega.Account; + reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); + msg.setAccount(value); break; case 2: - var value = new proto.vega.FinancialAmount; - reader.readMessage(value,proto.vega.FinancialAmount.deserializeBinaryFromReader); - msg.setAmount(value); - break; - case 3: - var value = /** @type {!proto.vega.TransferType} */ (reader.readEnum()); - msg.setType(value); - break; - case 4: var value = /** @type {number} */ (reader.readUint64()); - msg.setMinAmount(value); + msg.setBalance(value); break; default: reader.skipField(); @@ -8580,9 +8536,9 @@ proto.vega.Transfer.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Transfer.prototype.serializeBinary = function() { +proto.vega.TransferBalance.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Transfer.serializeBinaryToWriter(this, writer); + proto.vega.TransferBalance.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8590,38 +8546,24 @@ proto.vega.Transfer.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Transfer} message + * @param {!proto.vega.TransferBalance} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Transfer.serializeBinaryToWriter = function(message, writer) { +proto.vega.TransferBalance.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getOwner(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAmount(); + f = message.getAccount(); if (f != null) { writer.writeMessage( - 2, + 1, f, - proto.vega.FinancialAmount.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f + proto.vega.Account.serializeBinaryToWriter ); } - f = message.getMinAmount(); + f = message.getBalance(); if (f !== 0) { writer.writeUint64( - 4, + 2, f ); } @@ -8629,48 +8571,30 @@ proto.vega.Transfer.serializeBinaryToWriter = function(message, writer) { /** - * optional string owner = 1; - * @return {string} - */ -proto.vega.Transfer.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.Transfer} returns this - */ -proto.vega.Transfer.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional FinancialAmount amount = 2; - * @return {?proto.vega.FinancialAmount} + * optional Account account = 1; + * @return {?proto.vega.Account} */ -proto.vega.Transfer.prototype.getAmount = function() { - return /** @type{?proto.vega.FinancialAmount} */ ( - jspb.Message.getWrapperField(this, proto.vega.FinancialAmount, 2)); +proto.vega.TransferBalance.prototype.getAccount = function() { + return /** @type{?proto.vega.Account} */ ( + jspb.Message.getWrapperField(this, proto.vega.Account, 1)); }; /** - * @param {?proto.vega.FinancialAmount|undefined} value - * @return {!proto.vega.Transfer} returns this + * @param {?proto.vega.Account|undefined} value + * @return {!proto.vega.TransferBalance} returns this */ -proto.vega.Transfer.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.vega.TransferBalance.prototype.setAccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vega.Transfer} returns this + * @return {!proto.vega.TransferBalance} returns this */ -proto.vega.Transfer.prototype.clearAmount = function() { - return this.setAmount(undefined); +proto.vega.TransferBalance.prototype.clearAccount = function() { + return this.setAccount(undefined); }; @@ -8678,44 +8602,26 @@ proto.vega.Transfer.prototype.clearAmount = function() { * Returns whether this field is set. * @return {boolean} */ -proto.vega.Transfer.prototype.hasAmount = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional TransferType type = 3; - * @return {!proto.vega.TransferType} - */ -proto.vega.Transfer.prototype.getType = function() { - return /** @type {!proto.vega.TransferType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.vega.TransferType} value - * @return {!proto.vega.Transfer} returns this - */ -proto.vega.Transfer.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); +proto.vega.TransferBalance.prototype.hasAccount = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint64 min_amount = 4; + * optional uint64 balance = 2; * @return {number} */ -proto.vega.Transfer.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.vega.TransferBalance.prototype.getBalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.vega.Transfer} returns this + * @return {!proto.vega.TransferBalance} returns this */ -proto.vega.Transfer.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.vega.TransferBalance.prototype.setBalance = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -8725,7 +8631,7 @@ proto.vega.Transfer.prototype.setMinAmount = function(value) { * @private {!Array} * @const */ -proto.vega.TransferRequest.repeatedFields_ = [1,2]; +proto.vega.TransferResponse.repeatedFields_ = [1,2]; @@ -8742,8 +8648,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.TransferRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vega.TransferRequest.toObject(opt_includeInstance, this); +proto.vega.TransferResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.TransferResponse.toObject(opt_includeInstance, this); }; @@ -8752,20 +8658,16 @@ proto.vega.TransferRequest.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.TransferRequest} msg The msg instance to transform. + * @param {!proto.vega.TransferResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.TransferRequest.toObject = function(includeInstance, msg) { +proto.vega.TransferResponse.toObject = function(includeInstance, msg) { var f, obj = { - fromAccountList: jspb.Message.toObjectList(msg.getFromAccountList(), - proto.vega.Account.toObject, includeInstance), - toAccountList: jspb.Message.toObjectList(msg.getToAccountList(), - proto.vega.Account.toObject, includeInstance), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), - asset: jspb.Message.getFieldWithDefault(msg, 5, ""), - reference: jspb.Message.getFieldWithDefault(msg, 6, "") + transfersList: jspb.Message.toObjectList(msg.getTransfersList(), + proto.vega.LedgerEntry.toObject, includeInstance), + balancesList: jspb.Message.toObjectList(msg.getBalancesList(), + proto.vega.TransferBalance.toObject, includeInstance) }; if (includeInstance) { @@ -8779,23 +8681,23 @@ proto.vega.TransferRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.TransferRequest} + * @return {!proto.vega.TransferResponse} */ -proto.vega.TransferRequest.deserializeBinary = function(bytes) { +proto.vega.TransferResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.TransferRequest; - return proto.vega.TransferRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.TransferResponse; + return proto.vega.TransferResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.TransferRequest} msg The message object to deserialize into. + * @param {!proto.vega.TransferResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.TransferRequest} + * @return {!proto.vega.TransferResponse} */ -proto.vega.TransferRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.TransferResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8803,30 +8705,14 @@ proto.vega.TransferRequest.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.vega.Account; - reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); - msg.addFromAccount(value); + var value = new proto.vega.LedgerEntry; + reader.readMessage(value,proto.vega.LedgerEntry.deserializeBinaryFromReader); + msg.addTransfers(value); break; case 2: - var value = new proto.vega.Account; - reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); - msg.addToAccount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAmount(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinAmount(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setReference(value); + var value = new proto.vega.TransferBalance; + reader.readMessage(value,proto.vega.TransferBalance.deserializeBinaryFromReader); + msg.addBalances(value); break; default: reader.skipField(); @@ -8841,9 +8727,9 @@ proto.vega.TransferRequest.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.TransferRequest.prototype.serializeBinary = function() { +proto.vega.TransferResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.TransferRequest.serializeBinaryToWriter(this, writer); + proto.vega.TransferResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8851,204 +8737,104 @@ proto.vega.TransferRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.TransferRequest} message + * @param {!proto.vega.TransferResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.TransferRequest.serializeBinaryToWriter = function(message, writer) { +proto.vega.TransferResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFromAccountList(); + f = message.getTransfersList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - proto.vega.Account.serializeBinaryToWriter + proto.vega.LedgerEntry.serializeBinaryToWriter ); } - f = message.getToAccountList(); + f = message.getBalancesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto.vega.Account.serializeBinaryToWriter - ); - } - f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getMinAmount(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getReference(); - if (f.length > 0) { - writer.writeString( - 6, - f + proto.vega.TransferBalance.serializeBinaryToWriter ); } }; /** - * repeated Account from_account = 1; - * @return {!Array} + * repeated LedgerEntry transfers = 1; + * @return {!Array} */ -proto.vega.TransferRequest.prototype.getFromAccountList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.Account, 1)); +proto.vega.TransferResponse.prototype.getTransfersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.LedgerEntry, 1)); }; /** - * @param {!Array} value - * @return {!proto.vega.TransferRequest} returns this + * @param {!Array} value + * @return {!proto.vega.TransferResponse} returns this */ -proto.vega.TransferRequest.prototype.setFromAccountList = function(value) { +proto.vega.TransferResponse.prototype.setTransfersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {!proto.vega.Account=} opt_value + * @param {!proto.vega.LedgerEntry=} opt_value * @param {number=} opt_index - * @return {!proto.vega.Account} + * @return {!proto.vega.LedgerEntry} */ -proto.vega.TransferRequest.prototype.addFromAccount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.Account, opt_index); +proto.vega.TransferResponse.prototype.addTransfers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.LedgerEntry, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.vega.TransferRequest} returns this + * @return {!proto.vega.TransferResponse} returns this */ -proto.vega.TransferRequest.prototype.clearFromAccountList = function() { - return this.setFromAccountList([]); +proto.vega.TransferResponse.prototype.clearTransfersList = function() { + return this.setTransfersList([]); }; /** - * repeated Account to_account = 2; - * @return {!Array} + * repeated TransferBalance balances = 2; + * @return {!Array} */ -proto.vega.TransferRequest.prototype.getToAccountList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.Account, 2)); +proto.vega.TransferResponse.prototype.getBalancesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.TransferBalance, 2)); }; /** - * @param {!Array} value - * @return {!proto.vega.TransferRequest} returns this + * @param {!Array} value + * @return {!proto.vega.TransferResponse} returns this */ -proto.vega.TransferRequest.prototype.setToAccountList = function(value) { +proto.vega.TransferResponse.prototype.setBalancesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.vega.Account=} opt_value + * @param {!proto.vega.TransferBalance=} opt_value * @param {number=} opt_index - * @return {!proto.vega.Account} + * @return {!proto.vega.TransferBalance} */ -proto.vega.TransferRequest.prototype.addToAccount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.Account, opt_index); +proto.vega.TransferResponse.prototype.addBalances = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.TransferBalance, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.vega.TransferRequest} returns this - */ -proto.vega.TransferRequest.prototype.clearToAccountList = function() { - return this.setToAccountList([]); -}; - - -/** - * optional uint64 amount = 3; - * @return {number} - */ -proto.vega.TransferRequest.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.TransferRequest} returns this - */ -proto.vega.TransferRequest.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 min_amount = 4; - * @return {number} - */ -proto.vega.TransferRequest.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.TransferRequest} returns this - */ -proto.vega.TransferRequest.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string asset = 5; - * @return {string} - */ -proto.vega.TransferRequest.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.TransferRequest} returns this - */ -proto.vega.TransferRequest.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string reference = 6; - * @return {string} - */ -proto.vega.TransferRequest.prototype.getReference = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.TransferRequest} returns this + * @return {!proto.vega.TransferResponse} returns this */ -proto.vega.TransferRequest.prototype.setReference = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.vega.TransferResponse.prototype.clearBalancesList = function() { + return this.setBalancesList([]); }; @@ -9068,8 +8854,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.LedgerEntry.prototype.toObject = function(opt_includeInstance) { - return proto.vega.LedgerEntry.toObject(opt_includeInstance, this); +proto.vega.MarginLevels.prototype.toObject = function(opt_includeInstance) { + return proto.vega.MarginLevels.toObject(opt_includeInstance, this); }; @@ -9078,18 +8864,20 @@ proto.vega.LedgerEntry.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.LedgerEntry} msg The msg instance to transform. + * @param {!proto.vega.MarginLevels} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LedgerEntry.toObject = function(includeInstance, msg) { +proto.vega.MarginLevels.toObject = function(includeInstance, msg) { var f, obj = { - fromAccount: jspb.Message.getFieldWithDefault(msg, 1, ""), - toAccount: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), - reference: jspb.Message.getFieldWithDefault(msg, 4, ""), - type: jspb.Message.getFieldWithDefault(msg, 5, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0) + maintenanceMargin: jspb.Message.getFieldWithDefault(msg, 1, 0), + searchLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), + initialMargin: jspb.Message.getFieldWithDefault(msg, 3, 0), + collateralReleaseLevel: jspb.Message.getFieldWithDefault(msg, 4, 0), + partyId: jspb.Message.getFieldWithDefault(msg, 5, ""), + marketId: jspb.Message.getFieldWithDefault(msg, 6, ""), + asset: jspb.Message.getFieldWithDefault(msg, 7, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 8, 0) }; if (includeInstance) { @@ -9103,23 +8891,23 @@ proto.vega.LedgerEntry.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.LedgerEntry} + * @return {!proto.vega.MarginLevels} */ -proto.vega.LedgerEntry.deserializeBinary = function(bytes) { +proto.vega.MarginLevels.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.LedgerEntry; - return proto.vega.LedgerEntry.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.MarginLevels; + return proto.vega.MarginLevels.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.LedgerEntry} msg The message object to deserialize into. + * @param {!proto.vega.MarginLevels} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.LedgerEntry} + * @return {!proto.vega.MarginLevels} */ -proto.vega.LedgerEntry.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.MarginLevels.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9127,26 +8915,34 @@ proto.vega.LedgerEntry.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setFromAccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaintenanceMargin(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToAccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setSearchLevel(value); break; case 3: var value = /** @type {number} */ (reader.readUint64()); - msg.setAmount(value); + msg.setInitialMargin(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setReference(value); - break; + var value = /** @type {number} */ (reader.readUint64()); + msg.setCollateralReleaseLevel(value); + break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setPartyId(value); break; case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMarketId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setAsset(value); + break; + case 8: var value = /** @type {number} */ (reader.readInt64()); msg.setTimestamp(value); break; @@ -9163,9 +8959,9 @@ proto.vega.LedgerEntry.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.LedgerEntry.prototype.serializeBinary = function() { +proto.vega.MarginLevels.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.LedgerEntry.serializeBinaryToWriter(this, writer); + proto.vega.MarginLevels.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9173,51 +8969,65 @@ proto.vega.LedgerEntry.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.LedgerEntry} message + * @param {!proto.vega.MarginLevels} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LedgerEntry.serializeBinaryToWriter = function(message, writer) { +proto.vega.MarginLevels.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFromAccount(); - if (f.length > 0) { - writer.writeString( + f = message.getMaintenanceMargin(); + if (f !== 0) { + writer.writeUint64( 1, f ); } - f = message.getToAccount(); - if (f.length > 0) { - writer.writeString( + f = message.getSearchLevel(); + if (f !== 0) { + writer.writeUint64( 2, f ); } - f = message.getAmount(); + f = message.getInitialMargin(); if (f !== 0) { writer.writeUint64( 3, f ); } - f = message.getReference(); - if (f.length > 0) { - writer.writeString( + f = message.getCollateralReleaseLevel(); + if (f !== 0) { + writer.writeUint64( 4, f ); } - f = message.getType(); + f = message.getPartyId(); if (f.length > 0) { writer.writeString( 5, f ); } + f = message.getMarketId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getAsset(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } f = message.getTimestamp(); if (f !== 0) { writer.writeInt64( - 6, + 8, f ); } @@ -9225,114 +9035,157 @@ proto.vega.LedgerEntry.serializeBinaryToWriter = function(message, writer) { /** - * optional string from_account = 1; - * @return {string} + * optional uint64 maintenance_margin = 1; + * @return {number} */ -proto.vega.LedgerEntry.prototype.getFromAccount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.MarginLevels.prototype.getMaintenanceMargin = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.vega.LedgerEntry} returns this + * @param {number} value + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setFromAccount = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.vega.MarginLevels.prototype.setMaintenanceMargin = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional string to_account = 2; - * @return {string} + * optional uint64 search_level = 2; + * @return {number} */ -proto.vega.LedgerEntry.prototype.getToAccount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.MarginLevels.prototype.getSearchLevel = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.vega.LedgerEntry} returns this + * @param {number} value + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setToAccount = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.vega.MarginLevels.prototype.setSearchLevel = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional uint64 amount = 3; + * optional uint64 initial_margin = 3; * @return {number} */ -proto.vega.LedgerEntry.prototype.getAmount = function() { +proto.vega.MarginLevels.prototype.getInitialMargin = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.LedgerEntry} returns this + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setAmount = function(value) { +proto.vega.MarginLevels.prototype.setInitialMargin = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional string reference = 4; - * @return {string} + * optional uint64 collateral_release_level = 4; + * @return {number} */ -proto.vega.LedgerEntry.prototype.getReference = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.vega.MarginLevels.prototype.getCollateralReleaseLevel = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value - * @return {!proto.vega.LedgerEntry} returns this + * @param {number} value + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setReference = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.vega.MarginLevels.prototype.setCollateralReleaseLevel = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * optional string type = 5; + * optional string party_id = 5; * @return {string} */ -proto.vega.LedgerEntry.prototype.getType = function() { +proto.vega.MarginLevels.prototype.getPartyId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.vega.LedgerEntry} returns this + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setType = function(value) { +proto.vega.MarginLevels.prototype.setPartyId = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional int64 timestamp = 6; + * optional string market_id = 6; + * @return {string} + */ +proto.vega.MarginLevels.prototype.getMarketId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.MarginLevels} returns this + */ +proto.vega.MarginLevels.prototype.setMarketId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string asset = 7; + * @return {string} + */ +proto.vega.MarginLevels.prototype.getAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.MarginLevels} returns this + */ +proto.vega.MarginLevels.prototype.setAsset = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional int64 timestamp = 8; * @return {number} */ -proto.vega.LedgerEntry.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.vega.MarginLevels.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value - * @return {!proto.vega.LedgerEntry} returns this + * @return {!proto.vega.MarginLevels} returns this */ -proto.vega.LedgerEntry.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.vega.MarginLevels.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.MarketData.repeatedFields_ = [24,26]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9348,8 +9201,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.TransferBalance.prototype.toObject = function(opt_includeInstance) { - return proto.vega.TransferBalance.toObject(opt_includeInstance, this); +proto.vega.MarketData.prototype.toObject = function(opt_includeInstance) { + return proto.vega.MarketData.toObject(opt_includeInstance, this); }; @@ -9358,14 +9211,40 @@ proto.vega.TransferBalance.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.TransferBalance} msg The msg instance to transform. + * @param {!proto.vega.MarketData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.TransferBalance.toObject = function(includeInstance, msg) { +proto.vega.MarketData.toObject = function(includeInstance, msg) { var f, obj = { - account: (f = msg.getAccount()) && proto.vega.Account.toObject(includeInstance, f), - balance: jspb.Message.getFieldWithDefault(msg, 2, 0) + markPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), + bestBidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), + bestBidVolume: jspb.Message.getFieldWithDefault(msg, 3, 0), + bestOfferPrice: jspb.Message.getFieldWithDefault(msg, 4, 0), + bestOfferVolume: jspb.Message.getFieldWithDefault(msg, 5, 0), + bestStaticBidPrice: jspb.Message.getFieldWithDefault(msg, 6, 0), + bestStaticBidVolume: jspb.Message.getFieldWithDefault(msg, 7, 0), + bestStaticOfferPrice: jspb.Message.getFieldWithDefault(msg, 8, 0), + bestStaticOfferVolume: jspb.Message.getFieldWithDefault(msg, 9, 0), + midPrice: jspb.Message.getFieldWithDefault(msg, 10, 0), + staticMidPrice: jspb.Message.getFieldWithDefault(msg, 11, 0), + market: jspb.Message.getFieldWithDefault(msg, 12, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 13, 0), + openInterest: jspb.Message.getFieldWithDefault(msg, 14, 0), + auctionEnd: jspb.Message.getFieldWithDefault(msg, 15, 0), + auctionStart: jspb.Message.getFieldWithDefault(msg, 16, 0), + indicativePrice: jspb.Message.getFieldWithDefault(msg, 17, 0), + indicativeVolume: jspb.Message.getFieldWithDefault(msg, 18, 0), + marketTradingMode: jspb.Message.getFieldWithDefault(msg, 19, 0), + trigger: jspb.Message.getFieldWithDefault(msg, 20, 0), + extensionTrigger: jspb.Message.getFieldWithDefault(msg, 21, 0), + targetStake: jspb.Message.getFieldWithDefault(msg, 22, ""), + suppliedStake: jspb.Message.getFieldWithDefault(msg, 23, ""), + priceMonitoringBoundsList: jspb.Message.toObjectList(msg.getPriceMonitoringBoundsList(), + proto.vega.PriceMonitoringBounds.toObject, includeInstance), + marketValueProxy: jspb.Message.getFieldWithDefault(msg, 25, ""), + liquidityProviderFeeShareList: jspb.Message.toObjectList(msg.getLiquidityProviderFeeShareList(), + proto.vega.LiquidityProviderFeeShare.toObject, includeInstance) }; if (includeInstance) { @@ -9379,23 +9258,23 @@ proto.vega.TransferBalance.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.TransferBalance} + * @return {!proto.vega.MarketData} */ -proto.vega.TransferBalance.deserializeBinary = function(bytes) { +proto.vega.MarketData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.TransferBalance; - return proto.vega.TransferBalance.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.MarketData; + return proto.vega.MarketData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.TransferBalance} msg The message object to deserialize into. + * @param {!proto.vega.MarketData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.TransferBalance} + * @return {!proto.vega.MarketData} */ -proto.vega.TransferBalance.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9403,123 +9282,835 @@ proto.vega.TransferBalance.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.vega.Account; - reader.readMessage(value,proto.vega.Account.deserializeBinaryFromReader); - msg.setAccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setMarkPrice(value); break; case 2: var value = /** @type {number} */ (reader.readUint64()); - msg.setBalance(value); + msg.setBestBidPrice(value); break; - default: - reader.skipField(); + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestBidVolume(value); break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vega.TransferBalance.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vega.TransferBalance.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestOfferPrice(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestOfferVolume(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestStaticBidPrice(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestStaticBidVolume(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestStaticOfferPrice(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBestStaticOfferVolume(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMidPrice(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStaticMidPrice(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setMarket(value); + break; + case 13: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setOpenInterest(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAuctionEnd(value); + break; + case 16: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAuctionStart(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setIndicativePrice(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setIndicativeVolume(value); + break; + case 19: + var value = /** @type {!proto.vega.Market.TradingMode} */ (reader.readEnum()); + msg.setMarketTradingMode(value); + break; + case 20: + var value = /** @type {!proto.vega.AuctionTrigger} */ (reader.readEnum()); + msg.setTrigger(value); + break; + case 21: + var value = /** @type {!proto.vega.AuctionTrigger} */ (reader.readEnum()); + msg.setExtensionTrigger(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setTargetStake(value); + break; + case 23: + var value = /** @type {string} */ (reader.readString()); + msg.setSuppliedStake(value); + break; + case 24: + var value = new proto.vega.PriceMonitoringBounds; + reader.readMessage(value,proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader); + msg.addPriceMonitoringBounds(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.setMarketValueProxy(value); + break; + case 26: + var value = new proto.vega.LiquidityProviderFeeShare; + reader.readMessage(value,proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader); + msg.addLiquidityProviderFeeShare(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.MarketData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.MarketData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.MarketData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMarkPrice(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getBestBidPrice(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getBestBidVolume(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getBestOfferPrice(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getBestOfferVolume(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getBestStaticBidPrice(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getBestStaticBidVolume(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getBestStaticOfferPrice(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getBestStaticOfferVolume(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getMidPrice(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } + f = message.getStaticMidPrice(); + if (f !== 0) { + writer.writeUint64( + 11, + f + ); + } + f = message.getMarket(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 13, + f + ); + } + f = message.getOpenInterest(); + if (f !== 0) { + writer.writeUint64( + 14, + f + ); + } + f = message.getAuctionEnd(); + if (f !== 0) { + writer.writeInt64( + 15, + f + ); + } + f = message.getAuctionStart(); + if (f !== 0) { + writer.writeInt64( + 16, + f + ); + } + f = message.getIndicativePrice(); + if (f !== 0) { + writer.writeUint64( + 17, + f + ); + } + f = message.getIndicativeVolume(); + if (f !== 0) { + writer.writeUint64( + 18, + f + ); + } + f = message.getMarketTradingMode(); + if (f !== 0.0) { + writer.writeEnum( + 19, + f + ); + } + f = message.getTrigger(); + if (f !== 0.0) { + writer.writeEnum( + 20, + f + ); + } + f = message.getExtensionTrigger(); + if (f !== 0.0) { + writer.writeEnum( + 21, + f + ); + } + f = message.getTargetStake(); + if (f.length > 0) { + writer.writeString( + 22, + f + ); + } + f = message.getSuppliedStake(); + if (f.length > 0) { + writer.writeString( + 23, + f + ); + } + f = message.getPriceMonitoringBoundsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 24, + f, + proto.vega.PriceMonitoringBounds.serializeBinaryToWriter + ); + } + f = message.getMarketValueProxy(); + if (f.length > 0) { + writer.writeString( + 25, + f + ); + } + f = message.getLiquidityProviderFeeShareList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 26, + f, + proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 mark_price = 1; + * @return {number} + */ +proto.vega.MarketData.prototype.getMarkPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setMarkPrice = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 best_bid_price = 2; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestBidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestBidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 best_bid_volume = 3; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestBidVolume = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestBidVolume = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 best_offer_price = 4; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestOfferPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestOfferPrice = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 best_offer_volume = 5; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestOfferVolume = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestOfferVolume = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 best_static_bid_price = 6; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestStaticBidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestStaticBidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 best_static_bid_volume = 7; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestStaticBidVolume = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestStaticBidVolume = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 best_static_offer_price = 8; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestStaticOfferPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestStaticOfferPrice = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 best_static_offer_volume = 9; + * @return {number} + */ +proto.vega.MarketData.prototype.getBestStaticOfferVolume = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setBestStaticOfferVolume = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 mid_price = 10; + * @return {number} + */ +proto.vega.MarketData.prototype.getMidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setMidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional uint64 static_mid_price = 11; + * @return {number} + */ +proto.vega.MarketData.prototype.getStaticMidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setStaticMidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional string market = 12; + * @return {string} + */ +proto.vega.MarketData.prototype.getMarket = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setMarket = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional int64 timestamp = 13; + * @return {number} + */ +proto.vega.MarketData.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + +/** + * optional uint64 open_interest = 14; + * @return {number} + */ +proto.vega.MarketData.prototype.getOpenInterest = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setOpenInterest = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * optional int64 auction_end = 15; + * @return {number} + */ +proto.vega.MarketData.prototype.getAuctionEnd = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setAuctionEnd = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional int64 auction_start = 16; + * @return {number} + */ +proto.vega.MarketData.prototype.getAuctionStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setAuctionStart = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); +}; + + +/** + * optional uint64 indicative_price = 17; + * @return {number} + */ +proto.vega.MarketData.prototype.getIndicativePrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setIndicativePrice = function(value) { + return jspb.Message.setProto3IntField(this, 17, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vega.TransferBalance} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 indicative_volume = 18; + * @return {number} */ -proto.vega.TransferBalance.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccount(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.vega.Account.serializeBinaryToWriter - ); - } - f = message.getBalance(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } +proto.vega.MarketData.prototype.getIndicativeVolume = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; /** - * optional Account account = 1; - * @return {?proto.vega.Account} + * @param {number} value + * @return {!proto.vega.MarketData} returns this */ -proto.vega.TransferBalance.prototype.getAccount = function() { - return /** @type{?proto.vega.Account} */ ( - jspb.Message.getWrapperField(this, proto.vega.Account, 1)); +proto.vega.MarketData.prototype.setIndicativeVolume = function(value) { + return jspb.Message.setProto3IntField(this, 18, value); }; /** - * @param {?proto.vega.Account|undefined} value - * @return {!proto.vega.TransferBalance} returns this + * optional Market.TradingMode market_trading_mode = 19; + * @return {!proto.vega.Market.TradingMode} + */ +proto.vega.MarketData.prototype.getMarketTradingMode = function() { + return /** @type {!proto.vega.Market.TradingMode} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {!proto.vega.Market.TradingMode} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setMarketTradingMode = function(value) { + return jspb.Message.setProto3EnumField(this, 19, value); +}; + + +/** + * optional AuctionTrigger trigger = 20; + * @return {!proto.vega.AuctionTrigger} + */ +proto.vega.MarketData.prototype.getTrigger = function() { + return /** @type {!proto.vega.AuctionTrigger} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {!proto.vega.AuctionTrigger} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setTrigger = function(value) { + return jspb.Message.setProto3EnumField(this, 20, value); +}; + + +/** + * optional AuctionTrigger extension_trigger = 21; + * @return {!proto.vega.AuctionTrigger} + */ +proto.vega.MarketData.prototype.getExtensionTrigger = function() { + return /** @type {!proto.vega.AuctionTrigger} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +}; + + +/** + * @param {!proto.vega.AuctionTrigger} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setExtensionTrigger = function(value) { + return jspb.Message.setProto3EnumField(this, 21, value); +}; + + +/** + * optional string target_stake = 22; + * @return {string} + */ +proto.vega.MarketData.prototype.getTargetStake = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setTargetStake = function(value) { + return jspb.Message.setProto3StringField(this, 22, value); +}; + + +/** + * optional string supplied_stake = 23; + * @return {string} + */ +proto.vega.MarketData.prototype.getSuppliedStake = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.setSuppliedStake = function(value) { + return jspb.Message.setProto3StringField(this, 23, value); +}; + + +/** + * repeated PriceMonitoringBounds price_monitoring_bounds = 24; + * @return {!Array} + */ +proto.vega.MarketData.prototype.getPriceMonitoringBoundsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.PriceMonitoringBounds, 24)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.MarketData} returns this */ -proto.vega.TransferBalance.prototype.setAccount = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.vega.MarketData.prototype.setPriceMonitoringBoundsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 24, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.TransferBalance} returns this + * @param {!proto.vega.PriceMonitoringBounds=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.PriceMonitoringBounds} */ -proto.vega.TransferBalance.prototype.clearAccount = function() { - return this.setAccount(undefined); +proto.vega.MarketData.prototype.addPriceMonitoringBounds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.vega.PriceMonitoringBounds, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.vega.MarketData} returns this */ -proto.vega.TransferBalance.prototype.hasAccount = function() { - return jspb.Message.getField(this, 1) != null; +proto.vega.MarketData.prototype.clearPriceMonitoringBoundsList = function() { + return this.setPriceMonitoringBoundsList([]); }; /** - * optional uint64 balance = 2; - * @return {number} + * optional string market_value_proxy = 25; + * @return {string} */ -proto.vega.TransferBalance.prototype.getBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.MarketData.prototype.getMarketValueProxy = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); }; /** - * @param {number} value - * @return {!proto.vega.TransferBalance} returns this + * @param {string} value + * @return {!proto.vega.MarketData} returns this */ -proto.vega.TransferBalance.prototype.setBalance = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.vega.MarketData.prototype.setMarketValueProxy = function(value) { + return jspb.Message.setProto3StringField(this, 25, value); }; +/** + * repeated LiquidityProviderFeeShare liquidity_provider_fee_share = 26; + * @return {!Array} + */ +proto.vega.MarketData.prototype.getLiquidityProviderFeeShareList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityProviderFeeShare, 26)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!Array} value + * @return {!proto.vega.MarketData} returns this +*/ +proto.vega.MarketData.prototype.setLiquidityProviderFeeShareList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 26, value); +}; + + +/** + * @param {!proto.vega.LiquidityProviderFeeShare=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.LiquidityProviderFeeShare} */ -proto.vega.TransferResponse.repeatedFields_ = [1,2]; +proto.vega.MarketData.prototype.addLiquidityProviderFeeShare = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.vega.LiquidityProviderFeeShare, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.MarketData} returns this + */ +proto.vega.MarketData.prototype.clearLiquidityProviderFeeShareList = function() { + return this.setLiquidityProviderFeeShareList([]); +}; + + @@ -9536,8 +10127,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.TransferResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vega.TransferResponse.toObject(opt_includeInstance, this); +proto.vega.LiquidityProviderFeeShare.prototype.toObject = function(opt_includeInstance) { + return proto.vega.LiquidityProviderFeeShare.toObject(opt_includeInstance, this); }; @@ -9546,16 +10137,15 @@ proto.vega.TransferResponse.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.TransferResponse} msg The msg instance to transform. + * @param {!proto.vega.LiquidityProviderFeeShare} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.TransferResponse.toObject = function(includeInstance, msg) { +proto.vega.LiquidityProviderFeeShare.toObject = function(includeInstance, msg) { var f, obj = { - transfersList: jspb.Message.toObjectList(msg.getTransfersList(), - proto.vega.LedgerEntry.toObject, includeInstance), - balancesList: jspb.Message.toObjectList(msg.getBalancesList(), - proto.vega.TransferBalance.toObject, includeInstance) + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + equityLikeShare: jspb.Message.getFieldWithDefault(msg, 2, ""), + averageEntryValuation: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -9569,23 +10159,23 @@ proto.vega.TransferResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.TransferResponse} + * @return {!proto.vega.LiquidityProviderFeeShare} */ -proto.vega.TransferResponse.deserializeBinary = function(bytes) { +proto.vega.LiquidityProviderFeeShare.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.TransferResponse; - return proto.vega.TransferResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.LiquidityProviderFeeShare; + return proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.TransferResponse} msg The message object to deserialize into. + * @param {!proto.vega.LiquidityProviderFeeShare} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.TransferResponse} + * @return {!proto.vega.LiquidityProviderFeeShare} */ -proto.vega.TransferResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9593,14 +10183,16 @@ proto.vega.TransferResponse.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.vega.LedgerEntry; - reader.readMessage(value,proto.vega.LedgerEntry.deserializeBinaryFromReader); - msg.addTransfers(value); + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); break; case 2: - var value = new proto.vega.TransferBalance; - reader.readMessage(value,proto.vega.TransferBalance.deserializeBinaryFromReader); - msg.addBalances(value); + var value = /** @type {string} */ (reader.readString()); + msg.setEquityLikeShare(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAverageEntryValuation(value); break; default: reader.skipField(); @@ -9615,9 +10207,9 @@ proto.vega.TransferResponse.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.TransferResponse.prototype.serializeBinary = function() { +proto.vega.LiquidityProviderFeeShare.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.TransferResponse.serializeBinaryToWriter(this, writer); + proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9625,104 +10217,87 @@ proto.vega.TransferResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.TransferResponse} message + * @param {!proto.vega.LiquidityProviderFeeShare} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.TransferResponse.serializeBinaryToWriter = function(message, writer) { +proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTransfersList(); + f = message.getParty(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 1, - f, - proto.vega.LedgerEntry.serializeBinaryToWriter + f ); } - f = message.getBalancesList(); + f = message.getEquityLikeShare(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto.vega.TransferBalance.serializeBinaryToWriter + f + ); + } + f = message.getAverageEntryValuation(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; /** - * repeated LedgerEntry transfers = 1; - * @return {!Array} + * optional string party = 1; + * @return {string} */ -proto.vega.TransferResponse.prototype.getTransfersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.LedgerEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.vega.TransferResponse} returns this -*/ -proto.vega.TransferResponse.prototype.setTransfersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.vega.LiquidityProviderFeeShare.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!proto.vega.LedgerEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.LedgerEntry} + * @param {string} value + * @return {!proto.vega.LiquidityProviderFeeShare} returns this */ -proto.vega.TransferResponse.prototype.addTransfers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.LedgerEntry, opt_index); +proto.vega.LiquidityProviderFeeShare.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.TransferResponse} returns this + * optional string equity_like_share = 2; + * @return {string} */ -proto.vega.TransferResponse.prototype.clearTransfersList = function() { - return this.setTransfersList([]); +proto.vega.LiquidityProviderFeeShare.prototype.getEquityLikeShare = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * repeated TransferBalance balances = 2; - * @return {!Array} + * @param {string} value + * @return {!proto.vega.LiquidityProviderFeeShare} returns this */ -proto.vega.TransferResponse.prototype.getBalancesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.TransferBalance, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.vega.TransferResponse} returns this -*/ -proto.vega.TransferResponse.prototype.setBalancesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.vega.LiquidityProviderFeeShare.prototype.setEquityLikeShare = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.vega.TransferBalance=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.TransferBalance} + * optional string average_entry_valuation = 3; + * @return {string} */ -proto.vega.TransferResponse.prototype.addBalances = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.TransferBalance, opt_index); +proto.vega.LiquidityProviderFeeShare.prototype.getAverageEntryValuation = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.TransferResponse} returns this + * @param {string} value + * @return {!proto.vega.LiquidityProviderFeeShare} returns this */ -proto.vega.TransferResponse.prototype.clearBalancesList = function() { - return this.setBalancesList([]); +proto.vega.LiquidityProviderFeeShare.prototype.setAverageEntryValuation = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -9742,8 +10317,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.MarginLevels.prototype.toObject = function(opt_includeInstance) { - return proto.vega.MarginLevels.toObject(opt_includeInstance, this); +proto.vega.PriceMonitoringBounds.prototype.toObject = function(opt_includeInstance) { + return proto.vega.PriceMonitoringBounds.toObject(opt_includeInstance, this); }; @@ -9752,20 +10327,16 @@ proto.vega.MarginLevels.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.MarginLevels} msg The msg instance to transform. + * @param {!proto.vega.PriceMonitoringBounds} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarginLevels.toObject = function(includeInstance, msg) { +proto.vega.PriceMonitoringBounds.toObject = function(includeInstance, msg) { var f, obj = { - maintenanceMargin: jspb.Message.getFieldWithDefault(msg, 1, 0), - searchLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), - initialMargin: jspb.Message.getFieldWithDefault(msg, 3, 0), - collateralReleaseLevel: jspb.Message.getFieldWithDefault(msg, 4, 0), - partyId: jspb.Message.getFieldWithDefault(msg, 5, ""), - marketId: jspb.Message.getFieldWithDefault(msg, 6, ""), - asset: jspb.Message.getFieldWithDefault(msg, 7, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 8, 0) + minValidPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), + maxValidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), + trigger: (f = msg.getTrigger()) && markets_pb.PriceMonitoringTrigger.toObject(includeInstance, f), + referencePrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -9779,23 +10350,23 @@ proto.vega.MarginLevels.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.MarginLevels} + * @return {!proto.vega.PriceMonitoringBounds} */ -proto.vega.MarginLevels.deserializeBinary = function(bytes) { +proto.vega.PriceMonitoringBounds.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.MarginLevels; - return proto.vega.MarginLevels.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.PriceMonitoringBounds; + return proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.MarginLevels} msg The message object to deserialize into. + * @param {!proto.vega.PriceMonitoringBounds} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.MarginLevels} + * @return {!proto.vega.PriceMonitoringBounds} */ -proto.vega.MarginLevels.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9804,35 +10375,20 @@ proto.vega.MarginLevels.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {number} */ (reader.readUint64()); - msg.setMaintenanceMargin(value); + msg.setMinValidPrice(value); break; case 2: var value = /** @type {number} */ (reader.readUint64()); - msg.setSearchLevel(value); + msg.setMaxValidPrice(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setInitialMargin(value); + var value = new markets_pb.PriceMonitoringTrigger; + reader.readMessage(value,markets_pb.PriceMonitoringTrigger.deserializeBinaryFromReader); + msg.setTrigger(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCollateralReleaseLevel(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAsset(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimestamp(value); + var value = /** @type {number} */ (reader.readDouble()); + msg.setReferencePrice(value); break; default: reader.skipField(); @@ -9847,9 +10403,9 @@ proto.vega.MarginLevels.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.MarginLevels.prototype.serializeBinary = function() { +proto.vega.PriceMonitoringBounds.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.MarginLevels.serializeBinaryToWriter(this, writer); + proto.vega.PriceMonitoringBounds.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9857,223 +10413,136 @@ proto.vega.MarginLevels.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.MarginLevels} message + * @param {!proto.vega.PriceMonitoringBounds} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarginLevels.serializeBinaryToWriter = function(message, writer) { +proto.vega.PriceMonitoringBounds.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMaintenanceMargin(); + f = message.getMinValidPrice(); if (f !== 0) { writer.writeUint64( 1, f ); } - f = message.getSearchLevel(); + f = message.getMaxValidPrice(); if (f !== 0) { writer.writeUint64( 2, f ); } - f = message.getInitialMargin(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getCollateralReleaseLevel(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getPartyId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAsset(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getTimestamp(); - if (f !== 0) { - writer.writeInt64( - 8, - f - ); - } -}; - - -/** - * optional uint64 maintenance_margin = 1; - * @return {number} - */ -proto.vega.MarginLevels.prototype.getMaintenanceMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.MarginLevels} returns this - */ -proto.vega.MarginLevels.prototype.setMaintenanceMargin = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 search_level = 2; - * @return {number} - */ -proto.vega.MarginLevels.prototype.getSearchLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.MarginLevels} returns this - */ -proto.vega.MarginLevels.prototype.setSearchLevel = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + f = message.getTrigger(); + if (f != null) { + writer.writeMessage( + 3, + f, + markets_pb.PriceMonitoringTrigger.serializeBinaryToWriter + ); + } + f = message.getReferencePrice(); + if (f !== 0.0) { + writer.writeDouble( + 4, + f + ); + } }; /** - * optional uint64 initial_margin = 3; + * optional uint64 min_valid_price = 1; * @return {number} */ -proto.vega.MarginLevels.prototype.getInitialMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.PriceMonitoringBounds.prototype.getMinValidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vega.MarginLevels} returns this + * @return {!proto.vega.PriceMonitoringBounds} returns this */ -proto.vega.MarginLevels.prototype.setInitialMargin = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.PriceMonitoringBounds.prototype.setMinValidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional uint64 collateral_release_level = 4; + * optional uint64 max_valid_price = 2; * @return {number} */ -proto.vega.MarginLevels.prototype.getCollateralReleaseLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.vega.PriceMonitoringBounds.prototype.getMaxValidPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.vega.MarginLevels} returns this - */ -proto.vega.MarginLevels.prototype.setCollateralReleaseLevel = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string party_id = 5; - * @return {string} - */ -proto.vega.MarginLevels.prototype.getPartyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vega.MarginLevels} returns this + * @return {!proto.vega.PriceMonitoringBounds} returns this */ -proto.vega.MarginLevels.prototype.setPartyId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.vega.PriceMonitoringBounds.prototype.setMaxValidPrice = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional string market_id = 6; - * @return {string} + * optional PriceMonitoringTrigger trigger = 3; + * @return {?proto.vega.PriceMonitoringTrigger} */ -proto.vega.MarginLevels.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.vega.PriceMonitoringBounds.prototype.getTrigger = function() { + return /** @type{?proto.vega.PriceMonitoringTrigger} */ ( + jspb.Message.getWrapperField(this, markets_pb.PriceMonitoringTrigger, 3)); }; /** - * @param {string} value - * @return {!proto.vega.MarginLevels} returns this - */ -proto.vega.MarginLevels.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); + * @param {?proto.vega.PriceMonitoringTrigger|undefined} value + * @return {!proto.vega.PriceMonitoringBounds} returns this +*/ +proto.vega.PriceMonitoringBounds.prototype.setTrigger = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * optional string asset = 7; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.vega.PriceMonitoringBounds} returns this */ -proto.vega.MarginLevels.prototype.getAsset = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.vega.PriceMonitoringBounds.prototype.clearTrigger = function() { + return this.setTrigger(undefined); }; /** - * @param {string} value - * @return {!proto.vega.MarginLevels} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.MarginLevels.prototype.setAsset = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.vega.PriceMonitoringBounds.prototype.hasTrigger = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional int64 timestamp = 8; + * optional double reference_price = 4; * @return {number} */ -proto.vega.MarginLevels.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.vega.PriceMonitoringBounds.prototype.getReferencePrice = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value - * @return {!proto.vega.MarginLevels} returns this + * @return {!proto.vega.PriceMonitoringBounds} returns this */ -proto.vega.MarginLevels.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.vega.PriceMonitoringBounds.prototype.setReferencePrice = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.vega.MarketData.repeatedFields_ = [24,26]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -10089,8 +10558,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.MarketData.prototype.toObject = function(opt_includeInstance) { - return proto.vega.MarketData.toObject(opt_includeInstance, this); +proto.vega.ErrorDetail.prototype.toObject = function(opt_includeInstance) { + return proto.vega.ErrorDetail.toObject(opt_includeInstance, this); }; @@ -10099,40 +10568,15 @@ proto.vega.MarketData.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.MarketData} msg The msg instance to transform. + * @param {!proto.vega.ErrorDetail} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.toObject = function(includeInstance, msg) { +proto.vega.ErrorDetail.toObject = function(includeInstance, msg) { var f, obj = { - markPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), - bestBidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), - bestBidVolume: jspb.Message.getFieldWithDefault(msg, 3, 0), - bestOfferPrice: jspb.Message.getFieldWithDefault(msg, 4, 0), - bestOfferVolume: jspb.Message.getFieldWithDefault(msg, 5, 0), - bestStaticBidPrice: jspb.Message.getFieldWithDefault(msg, 6, 0), - bestStaticBidVolume: jspb.Message.getFieldWithDefault(msg, 7, 0), - bestStaticOfferPrice: jspb.Message.getFieldWithDefault(msg, 8, 0), - bestStaticOfferVolume: jspb.Message.getFieldWithDefault(msg, 9, 0), - midPrice: jspb.Message.getFieldWithDefault(msg, 10, 0), - staticMidPrice: jspb.Message.getFieldWithDefault(msg, 11, 0), - market: jspb.Message.getFieldWithDefault(msg, 12, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 13, 0), - openInterest: jspb.Message.getFieldWithDefault(msg, 14, 0), - auctionEnd: jspb.Message.getFieldWithDefault(msg, 15, 0), - auctionStart: jspb.Message.getFieldWithDefault(msg, 16, 0), - indicativePrice: jspb.Message.getFieldWithDefault(msg, 17, 0), - indicativeVolume: jspb.Message.getFieldWithDefault(msg, 18, 0), - marketTradingMode: jspb.Message.getFieldWithDefault(msg, 19, 0), - trigger: jspb.Message.getFieldWithDefault(msg, 20, 0), - extensionTrigger: jspb.Message.getFieldWithDefault(msg, 21, 0), - targetStake: jspb.Message.getFieldWithDefault(msg, 22, ""), - suppliedStake: jspb.Message.getFieldWithDefault(msg, 23, ""), - priceMonitoringBoundsList: jspb.Message.toObjectList(msg.getPriceMonitoringBoundsList(), - proto.vega.PriceMonitoringBounds.toObject, includeInstance), - marketValueProxy: jspb.Message.getFieldWithDefault(msg, 25, ""), - liquidityProviderFeeShareList: jspb.Message.toObjectList(msg.getLiquidityProviderFeeShareList(), - proto.vega.LiquidityProviderFeeShare.toObject, includeInstance) + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + message: jspb.Message.getFieldWithDefault(msg, 2, ""), + inner: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -10146,134 +10590,40 @@ proto.vega.MarketData.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.MarketData} + * @return {!proto.vega.ErrorDetail} */ -proto.vega.MarketData.deserializeBinary = function(bytes) { +proto.vega.ErrorDetail.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.MarketData; - return proto.vega.MarketData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vega.MarketData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.MarketData} - */ -proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMarkPrice(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestBidPrice(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestBidVolume(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestOfferPrice(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestOfferVolume(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestStaticBidPrice(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestStaticBidVolume(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestStaticOfferPrice(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBestStaticOfferVolume(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMidPrice(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setStaticMidPrice(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setMarket(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimestamp(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOpenInterest(value); - break; - case 15: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAuctionEnd(value); - break; - case 16: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAuctionStart(value); - break; - case 17: - var value = /** @type {number} */ (reader.readUint64()); - msg.setIndicativePrice(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint64()); - msg.setIndicativeVolume(value); - break; - case 19: - var value = /** @type {!proto.vega.Market.TradingMode} */ (reader.readEnum()); - msg.setMarketTradingMode(value); - break; - case 20: - var value = /** @type {!proto.vega.AuctionTrigger} */ (reader.readEnum()); - msg.setTrigger(value); - break; - case 21: - var value = /** @type {!proto.vega.AuctionTrigger} */ (reader.readEnum()); - msg.setExtensionTrigger(value); + var msg = new proto.vega.ErrorDetail; + return proto.vega.ErrorDetail.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.ErrorDetail} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.ErrorDetail} + */ +proto.vega.ErrorDetail.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetStake(value); + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; - case 23: + case 2: var value = /** @type {string} */ (reader.readString()); - msg.setSuppliedStake(value); - break; - case 24: - var value = new proto.vega.PriceMonitoringBounds; - reader.readMessage(value,proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader); - msg.addPriceMonitoringBounds(value); + msg.setMessage(value); break; - case 25: + case 3: var value = /** @type {string} */ (reader.readString()); - msg.setMarketValueProxy(value); - break; - case 26: - var value = new proto.vega.LiquidityProviderFeeShare; - reader.readMessage(value,proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader); - msg.addLiquidityProviderFeeShare(value); + msg.setInner(value); break; default: reader.skipField(); @@ -10288,9 +10638,9 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.MarketData.prototype.serializeBinary = function() { +proto.vega.ErrorDetail.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.MarketData.serializeBinaryToWriter(this, writer); + proto.vega.ErrorDetail.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10298,898 +10648,1155 @@ proto.vega.MarketData.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.MarketData} message + * @param {!proto.vega.ErrorDetail} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { +proto.vega.ErrorDetail.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMarkPrice(); + f = message.getCode(); if (f !== 0) { - writer.writeUint64( + writer.writeInt32( 1, f ); } - f = message.getBestBidPrice(); - if (f !== 0) { - writer.writeUint64( + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getBestBidVolume(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getBestOfferPrice(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getBestOfferVolume(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getBestStaticBidPrice(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getBestStaticBidVolume(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getBestStaticOfferPrice(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getBestStaticOfferVolume(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getMidPrice(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getStaticMidPrice(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getMarket(); + f = message.getInner(); if (f.length > 0) { writer.writeString( - 12, - f - ); - } - f = message.getTimestamp(); - if (f !== 0) { - writer.writeInt64( - 13, - f - ); - } - f = message.getOpenInterest(); - if (f !== 0) { - writer.writeUint64( - 14, - f - ); - } - f = message.getAuctionEnd(); - if (f !== 0) { - writer.writeInt64( - 15, - f - ); - } - f = message.getAuctionStart(); - if (f !== 0) { - writer.writeInt64( - 16, - f - ); - } - f = message.getIndicativePrice(); - if (f !== 0) { - writer.writeUint64( - 17, - f - ); - } - f = message.getIndicativeVolume(); - if (f !== 0) { - writer.writeUint64( - 18, - f - ); - } - f = message.getMarketTradingMode(); - if (f !== 0.0) { - writer.writeEnum( - 19, - f - ); - } - f = message.getTrigger(); - if (f !== 0.0) { - writer.writeEnum( - 20, + 3, f ); } - f = message.getExtensionTrigger(); - if (f !== 0.0) { - writer.writeEnum( - 21, - f - ); +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.vega.ErrorDetail.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.ErrorDetail} returns this + */ +proto.vega.ErrorDetail.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.vega.ErrorDetail.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.ErrorDetail} returns this + */ +proto.vega.ErrorDetail.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string inner = 3; + * @return {string} + */ +proto.vega.ErrorDetail.prototype.getInner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.ErrorDetail} returns this + */ +proto.vega.ErrorDetail.prototype.setInner = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.NetworkParameter.prototype.toObject = function(opt_includeInstance) { + return proto.vega.NetworkParameter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.NetworkParameter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.NetworkParameter.toObject = function(includeInstance, msg) { + var f, obj = { + key: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; } - f = message.getTargetStake(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.NetworkParameter} + */ +proto.vega.NetworkParameter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.NetworkParameter; + return proto.vega.NetworkParameter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.NetworkParameter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.NetworkParameter} + */ +proto.vega.NetworkParameter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } } - f = message.getSuppliedStake(); + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.NetworkParameter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.NetworkParameter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.NetworkParameter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.NetworkParameter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKey(); if (f.length > 0) { writer.writeString( - 23, + 1, f ); } - f = message.getPriceMonitoringBoundsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 24, - f, - proto.vega.PriceMonitoringBounds.serializeBinaryToWriter - ); - } - f = message.getMarketValueProxy(); + f = message.getValue(); if (f.length > 0) { writer.writeString( - 25, + 2, f ); } - f = message.getLiquidityProviderFeeShareList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 26, - f, - proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter - ); - } }; /** - * optional uint64 mark_price = 1; - * @return {number} + * optional string key = 1; + * @return {string} */ -proto.vega.MarketData.prototype.getMarkPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.vega.NetworkParameter.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @param {string} value + * @return {!proto.vega.NetworkParameter} returns this */ -proto.vega.MarketData.prototype.setMarkPrice = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.vega.NetworkParameter.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 best_bid_price = 2; - * @return {number} + * optional string value = 2; + * @return {string} */ -proto.vega.MarketData.prototype.getBestBidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.NetworkParameter.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @param {string} value + * @return {!proto.vega.NetworkParameter} returns this */ -proto.vega.MarketData.prototype.setBestBidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.vega.NetworkParameter.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional uint64 best_bid_volume = 3; - * @return {number} - */ -proto.vega.MarketData.prototype.getBestBidVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - -/** - * @param {number} value - * @return {!proto.vega.MarketData} returns this - */ -proto.vega.MarketData.prototype.setBestBidVolume = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional uint64 best_offer_price = 4; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.MarketData.prototype.getBestOfferPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.vega.LiquidityOrder.prototype.toObject = function(opt_includeInstance) { + return proto.vega.LiquidityOrder.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.LiquidityOrder} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.setBestOfferPrice = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.vega.LiquidityOrder.toObject = function(includeInstance, msg) { + var f, obj = { + reference: jspb.Message.getFieldWithDefault(msg, 1, 0), + proportion: jspb.Message.getFieldWithDefault(msg, 2, 0), + offset: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional uint64 best_offer_volume = 5; - * @return {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.LiquidityOrder} */ -proto.vega.MarketData.prototype.getBestOfferVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.vega.LiquidityOrder.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.LiquidityOrder; + return proto.vega.LiquidityOrder.deserializeBinaryFromReader(msg, reader); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.LiquidityOrder} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.LiquidityOrder} */ -proto.vega.MarketData.prototype.setBestOfferVolume = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.vega.LiquidityOrder.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.vega.PeggedReference} */ (reader.readEnum()); + msg.setReference(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setProportion(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOffset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional uint64 best_static_bid_price = 6; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.MarketData.prototype.getBestStaticBidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.vega.LiquidityOrder.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.LiquidityOrder.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.LiquidityOrder} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.setBestStaticBidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.vega.LiquidityOrder.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReference(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getProportion(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getOffset(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } }; /** - * optional uint64 best_static_bid_volume = 7; - * @return {number} + * optional PeggedReference reference = 1; + * @return {!proto.vega.PeggedReference} */ -proto.vega.MarketData.prototype.getBestStaticBidVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.vega.LiquidityOrder.prototype.getReference = function() { + return /** @type {!proto.vega.PeggedReference} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @param {!proto.vega.PeggedReference} value + * @return {!proto.vega.LiquidityOrder} returns this */ -proto.vega.MarketData.prototype.setBestStaticBidVolume = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); +proto.vega.LiquidityOrder.prototype.setReference = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * optional uint64 best_static_offer_price = 8; + * optional uint32 proportion = 2; * @return {number} */ -proto.vega.MarketData.prototype.getBestStaticOfferPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.vega.LiquidityOrder.prototype.getProportion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @return {!proto.vega.LiquidityOrder} returns this */ -proto.vega.MarketData.prototype.setBestStaticOfferPrice = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.vega.LiquidityOrder.prototype.setProportion = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional uint64 best_static_offer_volume = 9; + * optional int64 offset = 3; * @return {number} */ -proto.vega.MarketData.prototype.getBestStaticOfferVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.vega.LiquidityOrder.prototype.getOffset = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @return {!proto.vega.LiquidityOrder} returns this */ -proto.vega.MarketData.prototype.setBestStaticOfferVolume = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.vega.LiquidityOrder.prototype.setOffset = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * optional uint64 mid_price = 10; - * @return {number} - */ -proto.vega.MarketData.prototype.getMidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - -/** - * @param {number} value - * @return {!proto.vega.MarketData} returns this - */ -proto.vega.MarketData.prototype.setMidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional uint64 static_mid_price = 11; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.MarketData.prototype.getStaticMidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.vega.LiquidityOrderReference.prototype.toObject = function(opt_includeInstance) { + return proto.vega.LiquidityOrderReference.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.LiquidityOrderReference} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.setStaticMidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); +proto.vega.LiquidityOrderReference.toObject = function(includeInstance, msg) { + var f, obj = { + orderId: jspb.Message.getFieldWithDefault(msg, 1, ""), + liquidityOrder: (f = msg.getLiquidityOrder()) && proto.vega.LiquidityOrder.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string market = 12; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.LiquidityOrderReference} */ -proto.vega.MarketData.prototype.getMarket = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.vega.LiquidityOrderReference.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.LiquidityOrderReference; + return proto.vega.LiquidityOrderReference.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.vega.MarketData} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.LiquidityOrderReference} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.LiquidityOrderReference} */ -proto.vega.MarketData.prototype.setMarket = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.vega.LiquidityOrderReference.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setOrderId(value); + break; + case 2: + var value = new proto.vega.LiquidityOrder; + reader.readMessage(value,proto.vega.LiquidityOrder.deserializeBinaryFromReader); + msg.setLiquidityOrder(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional int64 timestamp = 13; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.MarketData.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +proto.vega.LiquidityOrderReference.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.LiquidityOrderReference.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.LiquidityOrderReference} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); +proto.vega.LiquidityOrderReference.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOrderId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLiquidityOrder(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.vega.LiquidityOrder.serializeBinaryToWriter + ); + } }; /** - * optional uint64 open_interest = 14; - * @return {number} + * optional string order_id = 1; + * @return {string} */ -proto.vega.MarketData.prototype.getOpenInterest = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +proto.vega.LiquidityOrderReference.prototype.getOrderId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * @param {string} value + * @return {!proto.vega.LiquidityOrderReference} returns this */ -proto.vega.MarketData.prototype.setOpenInterest = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); +proto.vega.LiquidityOrderReference.prototype.setOrderId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional int64 auction_end = 15; - * @return {number} + * optional LiquidityOrder liquidity_order = 2; + * @return {?proto.vega.LiquidityOrder} */ -proto.vega.MarketData.prototype.getAuctionEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +proto.vega.LiquidityOrderReference.prototype.getLiquidityOrder = function() { + return /** @type{?proto.vega.LiquidityOrder} */ ( + jspb.Message.getWrapperField(this, proto.vega.LiquidityOrder, 2)); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this - */ -proto.vega.MarketData.prototype.setAuctionEnd = function(value) { - return jspb.Message.setProto3IntField(this, 15, value); + * @param {?proto.vega.LiquidityOrder|undefined} value + * @return {!proto.vega.LiquidityOrderReference} returns this +*/ +proto.vega.LiquidityOrderReference.prototype.setLiquidityOrder = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional int64 auction_start = 16; - * @return {number} - */ -proto.vega.MarketData.prototype.getAuctionStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); + * Clears the message field making it undefined. + * @return {!proto.vega.LiquidityOrderReference} returns this + */ +proto.vega.LiquidityOrderReference.prototype.clearLiquidityOrder = function() { + return this.setLiquidityOrder(undefined); }; /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.MarketData.prototype.setAuctionStart = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); +proto.vega.LiquidityOrderReference.prototype.hasLiquidityOrder = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * optional uint64 indicative_price = 17; - * @return {number} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vega.MarketData.prototype.getIndicativePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; +proto.vega.LiquidityProvision.repeatedFields_ = [8,9]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.MarketData.prototype.setIndicativePrice = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); +proto.vega.LiquidityProvision.prototype.toObject = function(opt_includeInstance) { + return proto.vega.LiquidityProvision.toObject(opt_includeInstance, this); }; /** - * optional uint64 indicative_volume = 18; - * @return {number} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.LiquidityProvision} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.getIndicativeVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +proto.vega.LiquidityProvision.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 3, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 4, 0), + marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), + commitmentAmount: jspb.Message.getFieldWithDefault(msg, 6, 0), + fee: jspb.Message.getFieldWithDefault(msg, 7, ""), + sellsList: jspb.Message.toObjectList(msg.getSellsList(), + proto.vega.LiquidityOrderReference.toObject, includeInstance), + buysList: jspb.Message.toObjectList(msg.getBuysList(), + proto.vega.LiquidityOrderReference.toObject, includeInstance), + version: jspb.Message.getFieldWithDefault(msg, 10, ""), + status: jspb.Message.getFieldWithDefault(msg, 11, 0), + reference: jspb.Message.getFieldWithDefault(msg, 12, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {number} value - * @return {!proto.vega.MarketData} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.LiquidityProvision} */ -proto.vega.MarketData.prototype.setIndicativeVolume = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); +proto.vega.LiquidityProvision.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.LiquidityProvision; + return proto.vega.LiquidityProvision.deserializeBinaryFromReader(msg, reader); }; /** - * optional Market.TradingMode market_trading_mode = 19; - * @return {!proto.vega.Market.TradingMode} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.LiquidityProvision} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.LiquidityProvision} */ -proto.vega.MarketData.prototype.getMarketTradingMode = function() { - return /** @type {!proto.vega.Market.TradingMode} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +proto.vega.LiquidityProvision.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPartyId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreatedAt(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setUpdatedAt(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMarketId(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCommitmentAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setFee(value); + break; + case 8: + var value = new proto.vega.LiquidityOrderReference; + reader.readMessage(value,proto.vega.LiquidityOrderReference.deserializeBinaryFromReader); + msg.addSells(value); + break; + case 9: + var value = new proto.vega.LiquidityOrderReference; + reader.readMessage(value,proto.vega.LiquidityOrderReference.deserializeBinaryFromReader); + msg.addBuys(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + case 11: + var value = /** @type {!proto.vega.LiquidityProvision.Status} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setReference(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {!proto.vega.Market.TradingMode} value - * @return {!proto.vega.MarketData} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.MarketData.prototype.setMarketTradingMode = function(value) { - return jspb.Message.setProto3EnumField(this, 19, value); +proto.vega.LiquidityProvision.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.LiquidityProvision.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional AuctionTrigger trigger = 20; - * @return {!proto.vega.AuctionTrigger} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.LiquidityProvision} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.MarketData.prototype.getTrigger = function() { - return /** @type {!proto.vega.AuctionTrigger} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +proto.vega.LiquidityProvision.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPartyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getMarketId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCommitmentAmount(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getFee(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getSellsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.vega.LiquidityOrderReference.serializeBinaryToWriter + ); + } + f = message.getBuysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.vega.LiquidityOrderReference.serializeBinaryToWriter + ); + } + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 11, + f + ); + } + f = message.getReference(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } }; /** - * @param {!proto.vega.AuctionTrigger} value - * @return {!proto.vega.MarketData} returns this + * @enum {number} */ -proto.vega.MarketData.prototype.setTrigger = function(value) { - return jspb.Message.setProto3EnumField(this, 20, value); +proto.vega.LiquidityProvision.Status = { + STATUS_UNSPECIFIED: 0, + STATUS_ACTIVE: 1, + STATUS_STOPPED: 2, + STATUS_CANCELLED: 3, + STATUS_REJECTED: 4, + STATUS_UNDEPLOYED: 5, + STATUS_PENDING: 6 }; - /** - * optional AuctionTrigger extension_trigger = 21; - * @return {!proto.vega.AuctionTrigger} + * optional string id = 1; + * @return {string} */ -proto.vega.MarketData.prototype.getExtensionTrigger = function() { - return /** @type {!proto.vega.AuctionTrigger} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +proto.vega.LiquidityProvision.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!proto.vega.AuctionTrigger} value - * @return {!proto.vega.MarketData} returns this + * @param {string} value + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.MarketData.prototype.setExtensionTrigger = function(value) { - return jspb.Message.setProto3EnumField(this, 21, value); +proto.vega.LiquidityProvision.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string target_stake = 22; + * optional string party_id = 2; * @return {string} */ -proto.vega.MarketData.prototype.getTargetStake = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +proto.vega.LiquidityProvision.prototype.getPartyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.vega.MarketData} returns this + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.MarketData.prototype.setTargetStake = function(value) { - return jspb.Message.setProto3StringField(this, 22, value); +proto.vega.LiquidityProvision.prototype.setPartyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string supplied_stake = 23; - * @return {string} + * optional int64 created_at = 3; + * @return {number} */ -proto.vega.MarketData.prototype.getSuppliedStake = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); +proto.vega.LiquidityProvision.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.vega.MarketData} returns this + * @param {number} value + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.MarketData.prototype.setSuppliedStake = function(value) { - return jspb.Message.setProto3StringField(this, 23, value); +proto.vega.LiquidityProvision.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * repeated PriceMonitoringBounds price_monitoring_bounds = 24; - * @return {!Array} + * optional int64 updated_at = 4; + * @return {number} */ -proto.vega.MarketData.prototype.getPriceMonitoringBoundsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.PriceMonitoringBounds, 24)); +proto.vega.LiquidityProvision.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {!Array} value - * @return {!proto.vega.MarketData} returns this -*/ -proto.vega.MarketData.prototype.setPriceMonitoringBoundsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 24, value); + * @param {number} value + * @return {!proto.vega.LiquidityProvision} returns this + */ +proto.vega.LiquidityProvision.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * @param {!proto.vega.PriceMonitoringBounds=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.PriceMonitoringBounds} + * optional string market_id = 5; + * @return {string} */ -proto.vega.MarketData.prototype.addPriceMonitoringBounds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.vega.PriceMonitoringBounds, opt_index); +proto.vega.LiquidityProvision.prototype.getMarketId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.MarketData} returns this + * @param {string} value + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.MarketData.prototype.clearPriceMonitoringBoundsList = function() { - return this.setPriceMonitoringBoundsList([]); +proto.vega.LiquidityProvision.prototype.setMarketId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string market_value_proxy = 25; - * @return {string} + * optional uint64 commitment_amount = 6; + * @return {number} */ -proto.vega.MarketData.prototype.getMarketValueProxy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); +proto.vega.LiquidityProvision.prototype.getCommitmentAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {string} value - * @return {!proto.vega.MarketData} returns this + * @param {number} value + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.MarketData.prototype.setMarketValueProxy = function(value) { - return jspb.Message.setProto3StringField(this, 25, value); +proto.vega.LiquidityProvision.prototype.setCommitmentAmount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; /** - * repeated LiquidityProviderFeeShare liquidity_provider_fee_share = 26; - * @return {!Array} + * optional string fee = 7; + * @return {string} */ -proto.vega.MarketData.prototype.getLiquidityProviderFeeShareList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityProviderFeeShare, 26)); +proto.vega.LiquidityProvision.prototype.getFee = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * @param {!Array} value - * @return {!proto.vega.MarketData} returns this -*/ -proto.vega.MarketData.prototype.setLiquidityProviderFeeShareList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 26, value); + * @param {string} value + * @return {!proto.vega.LiquidityProvision} returns this + */ +proto.vega.LiquidityProvision.prototype.setFee = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * @param {!proto.vega.LiquidityProviderFeeShare=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.LiquidityProviderFeeShare} + * repeated LiquidityOrderReference sells = 8; + * @return {!Array} */ -proto.vega.MarketData.prototype.addLiquidityProviderFeeShare = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.vega.LiquidityProviderFeeShare, opt_index); +proto.vega.LiquidityProvision.prototype.getSellsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityOrderReference, 8)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.MarketData} returns this - */ -proto.vega.MarketData.prototype.clearLiquidityProviderFeeShareList = function() { - return this.setLiquidityProviderFeeShareList([]); + * @param {!Array} value + * @return {!proto.vega.LiquidityProvision} returns this +*/ +proto.vega.LiquidityProvision.prototype.setSellsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {!proto.vega.LiquidityOrderReference=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.LiquidityOrderReference} */ -proto.vega.LiquidityProviderFeeShare.prototype.toObject = function(opt_includeInstance) { - return proto.vega.LiquidityProviderFeeShare.toObject(opt_includeInstance, this); +proto.vega.LiquidityProvision.prototype.addSells = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.vega.LiquidityOrderReference, opt_index); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vega.LiquidityProviderFeeShare} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.LiquidityProviderFeeShare.toObject = function(includeInstance, msg) { - var f, obj = { - party: jspb.Message.getFieldWithDefault(msg, 1, ""), - equityLikeShare: jspb.Message.getFieldWithDefault(msg, 2, ""), - averageEntryValuation: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.vega.LiquidityProvision.prototype.clearSellsList = function() { + return this.setSellsList([]); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.LiquidityProviderFeeShare} + * repeated LiquidityOrderReference buys = 9; + * @return {!Array} */ -proto.vega.LiquidityProviderFeeShare.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.LiquidityProviderFeeShare; - return proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader(msg, reader); +proto.vega.LiquidityProvision.prototype.getBuysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityOrderReference, 9)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vega.LiquidityProviderFeeShare} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.LiquidityProviderFeeShare} - */ -proto.vega.LiquidityProviderFeeShare.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setParty(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEquityLikeShare(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAverageEntryValuation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {!Array} value + * @return {!proto.vega.LiquidityProvision} returns this +*/ +proto.vega.LiquidityProvision.prototype.setBuysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vega.LiquidityProviderFeeShare.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {!proto.vega.LiquidityOrderReference=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.LiquidityOrderReference} + */ +proto.vega.LiquidityProvision.prototype.addBuys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.vega.LiquidityOrderReference, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vega.LiquidityProviderFeeShare} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.LiquidityProviderFeeShare.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParty(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEquityLikeShare(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAverageEntryValuation(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.vega.LiquidityProvision.prototype.clearBuysList = function() { + return this.setBuysList([]); }; /** - * optional string party = 1; + * optional string version = 10; * @return {string} */ -proto.vega.LiquidityProviderFeeShare.prototype.getParty = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.LiquidityProvision.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProviderFeeShare} returns this + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.LiquidityProviderFeeShare.prototype.setParty = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.vega.LiquidityProvision.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * optional string equity_like_share = 2; - * @return {string} + * optional Status status = 11; + * @return {!proto.vega.LiquidityProvision.Status} */ -proto.vega.LiquidityProviderFeeShare.prototype.getEquityLikeShare = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.LiquidityProvision.prototype.getStatus = function() { + return /** @type {!proto.vega.LiquidityProvision.Status} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; /** - * @param {string} value - * @return {!proto.vega.LiquidityProviderFeeShare} returns this + * @param {!proto.vega.LiquidityProvision.Status} value + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.LiquidityProviderFeeShare.prototype.setEquityLikeShare = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.vega.LiquidityProvision.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 11, value); }; /** - * optional string average_entry_valuation = 3; + * optional string reference = 12; * @return {string} */ -proto.vega.LiquidityProviderFeeShare.prototype.getAverageEntryValuation = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.vega.LiquidityProvision.prototype.getReference = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProviderFeeShare} returns this + * @return {!proto.vega.LiquidityProvision} returns this */ -proto.vega.LiquidityProviderFeeShare.prototype.setAverageEntryValuation = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.vega.LiquidityProvision.prototype.setReference = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.EthereumConfig.repeatedFields_ = [5]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11205,8 +11812,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.PriceMonitoringBounds.prototype.toObject = function(opt_includeInstance) { - return proto.vega.PriceMonitoringBounds.toObject(opt_includeInstance, this); +proto.vega.EthereumConfig.prototype.toObject = function(opt_includeInstance) { + return proto.vega.EthereumConfig.toObject(opt_includeInstance, this); }; @@ -11215,16 +11822,17 @@ proto.vega.PriceMonitoringBounds.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.PriceMonitoringBounds} msg The msg instance to transform. + * @param {!proto.vega.EthereumConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.PriceMonitoringBounds.toObject = function(includeInstance, msg) { +proto.vega.EthereumConfig.toObject = function(includeInstance, msg) { var f, obj = { - minValidPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), - maxValidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), - trigger: (f = msg.getTrigger()) && markets_pb.PriceMonitoringTrigger.toObject(includeInstance, f), - referencePrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) + networkId: jspb.Message.getFieldWithDefault(msg, 1, ""), + chainId: jspb.Message.getFieldWithDefault(msg, 2, ""), + bridgeAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), + confirmations: jspb.Message.getFieldWithDefault(msg, 4, 0), + stakingBridgeAddressesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f }; if (includeInstance) { @@ -11238,23 +11846,23 @@ proto.vega.PriceMonitoringBounds.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.PriceMonitoringBounds} + * @return {!proto.vega.EthereumConfig} */ -proto.vega.PriceMonitoringBounds.deserializeBinary = function(bytes) { +proto.vega.EthereumConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.PriceMonitoringBounds; - return proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.EthereumConfig; + return proto.vega.EthereumConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.PriceMonitoringBounds} msg The message object to deserialize into. + * @param {!proto.vega.EthereumConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.PriceMonitoringBounds} + * @return {!proto.vega.EthereumConfig} */ -proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.EthereumConfig.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11262,21 +11870,24 @@ proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinValidPrice(value); + var value = /** @type {string} */ (reader.readString()); + msg.setNetworkId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxValidPrice(value); + var value = /** @type {string} */ (reader.readString()); + msg.setChainId(value); break; case 3: - var value = new markets_pb.PriceMonitoringTrigger; - reader.readMessage(value,markets_pb.PriceMonitoringTrigger.deserializeBinaryFromReader); - msg.setTrigger(value); + var value = /** @type {string} */ (reader.readString()); + msg.setBridgeAddress(value); break; case 4: - var value = /** @type {number} */ (reader.readDouble()); - msg.setReferencePrice(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setConfirmations(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addStakingBridgeAddresses(value); break; default: reader.skipField(); @@ -11291,9 +11902,9 @@ proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.PriceMonitoringBounds.prototype.serializeBinary = function() { +proto.vega.EthereumConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.PriceMonitoringBounds.serializeBinaryToWriter(this, writer); + proto.vega.EthereumConfig.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11301,132 +11912,156 @@ proto.vega.PriceMonitoringBounds.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.PriceMonitoringBounds} message + * @param {!proto.vega.EthereumConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.PriceMonitoringBounds.serializeBinaryToWriter = function(message, writer) { +proto.vega.EthereumConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMinValidPrice(); - if (f !== 0) { - writer.writeUint64( + f = message.getNetworkId(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getMaxValidPrice(); - if (f !== 0) { - writer.writeUint64( + f = message.getChainId(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getTrigger(); - if (f != null) { - writer.writeMessage( + f = message.getBridgeAddress(); + if (f.length > 0) { + writer.writeString( 3, - f, - markets_pb.PriceMonitoringTrigger.serializeBinaryToWriter + f ); } - f = message.getReferencePrice(); - if (f !== 0.0) { - writer.writeDouble( + f = message.getConfirmations(); + if (f !== 0) { + writer.writeUint32( 4, f ); } + f = message.getStakingBridgeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } }; /** - * optional uint64 min_valid_price = 1; - * @return {number} + * optional string network_id = 1; + * @return {string} */ -proto.vega.PriceMonitoringBounds.prototype.getMinValidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.vega.EthereumConfig.prototype.getNetworkId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.vega.PriceMonitoringBounds} returns this + * @param {string} value + * @return {!proto.vega.EthereumConfig} returns this */ -proto.vega.PriceMonitoringBounds.prototype.setMinValidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.vega.EthereumConfig.prototype.setNetworkId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 max_valid_price = 2; - * @return {number} + * optional string chain_id = 2; + * @return {string} */ -proto.vega.PriceMonitoringBounds.prototype.getMaxValidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.EthereumConfig.prototype.getChainId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.vega.PriceMonitoringBounds} returns this + * @param {string} value + * @return {!proto.vega.EthereumConfig} returns this */ -proto.vega.PriceMonitoringBounds.prototype.setMaxValidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.vega.EthereumConfig.prototype.setChainId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional PriceMonitoringTrigger trigger = 3; - * @return {?proto.vega.PriceMonitoringTrigger} + * optional string bridge_address = 3; + * @return {string} */ -proto.vega.PriceMonitoringBounds.prototype.getTrigger = function() { - return /** @type{?proto.vega.PriceMonitoringTrigger} */ ( - jspb.Message.getWrapperField(this, markets_pb.PriceMonitoringTrigger, 3)); +proto.vega.EthereumConfig.prototype.getBridgeAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.vega.PriceMonitoringTrigger|undefined} value - * @return {!proto.vega.PriceMonitoringBounds} returns this -*/ -proto.vega.PriceMonitoringBounds.prototype.setTrigger = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.vega.EthereumConfig} returns this + */ +proto.vega.EthereumConfig.prototype.setBridgeAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.PriceMonitoringBounds} returns this + * optional uint32 confirmations = 4; + * @return {number} */ -proto.vega.PriceMonitoringBounds.prototype.clearTrigger = function() { - return this.setTrigger(undefined); +proto.vega.EthereumConfig.prototype.getConfirmations = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.vega.EthereumConfig} returns this */ -proto.vega.PriceMonitoringBounds.prototype.hasTrigger = function() { - return jspb.Message.getField(this, 3) != null; +proto.vega.EthereumConfig.prototype.setConfirmations = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * optional double reference_price = 4; - * @return {number} + * repeated string staking_bridge_addresses = 5; + * @return {!Array} */ -proto.vega.PriceMonitoringBounds.prototype.getReferencePrice = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +proto.vega.EthereumConfig.prototype.getStakingBridgeAddressesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.EthereumConfig} returns this + */ +proto.vega.EthereumConfig.prototype.setStakingBridgeAddressesList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.vega.EthereumConfig} returns this + */ +proto.vega.EthereumConfig.prototype.addStakingBridgeAddresses = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** - * @param {number} value - * @return {!proto.vega.PriceMonitoringBounds} returns this + * Clears the list making it empty but non-null. + * @return {!proto.vega.EthereumConfig} returns this */ -proto.vega.PriceMonitoringBounds.prototype.setReferencePrice = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.vega.EthereumConfig.prototype.clearStakingBridgeAddressesList = function() { + return this.setStakingBridgeAddressesList([]); }; @@ -11446,8 +12081,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.ErrorDetail.prototype.toObject = function(opt_includeInstance) { - return proto.vega.ErrorDetail.toObject(opt_includeInstance, this); +proto.vega.EpochTimestamps.prototype.toObject = function(opt_includeInstance) { + return proto.vega.EpochTimestamps.toObject(opt_includeInstance, this); }; @@ -11456,15 +12091,16 @@ proto.vega.ErrorDetail.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.ErrorDetail} msg The msg instance to transform. + * @param {!proto.vega.EpochTimestamps} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.ErrorDetail.toObject = function(includeInstance, msg) { +proto.vega.EpochTimestamps.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - message: jspb.Message.getFieldWithDefault(msg, 2, ""), - inner: jspb.Message.getFieldWithDefault(msg, 3, "") + startTime: jspb.Message.getFieldWithDefault(msg, 1, 0), + endTime: jspb.Message.getFieldWithDefault(msg, 2, 0), + firstBlock: jspb.Message.getFieldWithDefault(msg, 3, 0), + lastBlock: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -11478,23 +12114,23 @@ proto.vega.ErrorDetail.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.ErrorDetail} + * @return {!proto.vega.EpochTimestamps} */ -proto.vega.ErrorDetail.deserializeBinary = function(bytes) { +proto.vega.EpochTimestamps.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.ErrorDetail; - return proto.vega.ErrorDetail.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.EpochTimestamps; + return proto.vega.EpochTimestamps.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.ErrorDetail} msg The message object to deserialize into. + * @param {!proto.vega.EpochTimestamps} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.ErrorDetail} + * @return {!proto.vega.EpochTimestamps} */ -proto.vega.ErrorDetail.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.EpochTimestamps.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11502,16 +12138,20 @@ proto.vega.ErrorDetail.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setStartTime(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setEndTime(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setInner(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setFirstBlock(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastBlock(value); break; default: reader.skipField(); @@ -11526,9 +12166,9 @@ proto.vega.ErrorDetail.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.ErrorDetail.prototype.serializeBinary = function() { +proto.vega.EpochTimestamps.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.ErrorDetail.serializeBinaryToWriter(this, writer); + proto.vega.EpochTimestamps.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11536,116 +12176,122 @@ proto.vega.ErrorDetail.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.ErrorDetail} message + * @param {!proto.vega.EpochTimestamps} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.ErrorDetail.serializeBinaryToWriter = function(message, writer) { +proto.vega.EpochTimestamps.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); + f = message.getStartTime(); if (f !== 0) { - writer.writeInt32( + writer.writeInt64( 1, f ); } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( + f = message.getEndTime(); + if (f !== 0) { + writer.writeInt64( 2, f ); } - f = message.getInner(); - if (f.length > 0) { - writer.writeString( + f = message.getFirstBlock(); + if (f !== 0) { + writer.writeUint64( 3, f ); } + f = message.getLastBlock(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } }; /** - * optional int32 code = 1; + * optional int64 start_time = 1; * @return {number} */ -proto.vega.ErrorDetail.prototype.getCode = function() { +proto.vega.EpochTimestamps.prototype.getStartTime = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vega.ErrorDetail} returns this + * @return {!proto.vega.EpochTimestamps} returns this */ -proto.vega.ErrorDetail.prototype.setCode = function(value) { +proto.vega.EpochTimestamps.prototype.setStartTime = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional string message = 2; - * @return {string} + * optional int64 end_time = 2; + * @return {number} */ -proto.vega.ErrorDetail.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.EpochTimestamps.prototype.getEndTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.vega.ErrorDetail} returns this + * @param {number} value + * @return {!proto.vega.EpochTimestamps} returns this */ -proto.vega.ErrorDetail.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.vega.EpochTimestamps.prototype.setEndTime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional string inner = 3; - * @return {string} + * optional uint64 first_block = 3; + * @return {number} */ -proto.vega.ErrorDetail.prototype.getInner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.vega.EpochTimestamps.prototype.getFirstBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.vega.ErrorDetail} returns this + * @param {number} value + * @return {!proto.vega.EpochTimestamps} returns this */ -proto.vega.ErrorDetail.prototype.setInner = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.vega.EpochTimestamps.prototype.setFirstBlock = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const + * optional uint64 last_block = 4; + * @return {number} */ -proto.vega.Transaction.oneofGroups_ = [[1001,1002]]; +proto.vega.EpochTimestamps.prototype.getLastBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + /** - * @enum {number} + * @param {number} value + * @return {!proto.vega.EpochTimestamps} returns this */ -proto.vega.Transaction.FromCase = { - FROM_NOT_SET: 0, - ADDRESS: 1001, - PUB_KEY: 1002 +proto.vega.EpochTimestamps.prototype.setLastBlock = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; + + /** - * @return {proto.vega.Transaction.FromCase} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vega.Transaction.prototype.getFromCase = function() { - return /** @type {proto.vega.Transaction.FromCase} */(jspb.Message.computeOneofCase(this, proto.vega.Transaction.oneofGroups_[0])); -}; +proto.vega.Epoch.repeatedFields_ = [3,4]; @@ -11662,8 +12308,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Transaction.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Transaction.toObject(opt_includeInstance, this); +proto.vega.Epoch.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Epoch.toObject(opt_includeInstance, this); }; @@ -11672,17 +12318,18 @@ proto.vega.Transaction.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Transaction} msg The msg instance to transform. + * @param {!proto.vega.Epoch} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Transaction.toObject = function(includeInstance, msg) { +proto.vega.Epoch.toObject = function(includeInstance, msg) { var f, obj = { - inputData: msg.getInputData_asB64(), - nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), - blockHeight: jspb.Message.getFieldWithDefault(msg, 3, 0), - address: msg.getAddress_asB64(), - pubKey: msg.getPubKey_asB64() + seq: jspb.Message.getFieldWithDefault(msg, 1, 0), + timestamps: (f = msg.getTimestamps()) && proto.vega.EpochTimestamps.toObject(includeInstance, f), + validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), + proto.vega.Node.toObject, includeInstance), + delegationsList: jspb.Message.toObjectList(msg.getDelegationsList(), + proto.vega.Delegation.toObject, includeInstance) }; if (includeInstance) { @@ -11696,23 +12343,23 @@ proto.vega.Transaction.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Transaction} + * @return {!proto.vega.Epoch} */ -proto.vega.Transaction.deserializeBinary = function(bytes) { +proto.vega.Epoch.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Transaction; - return proto.vega.Transaction.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Epoch; + return proto.vega.Epoch.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Transaction} msg The message object to deserialize into. + * @param {!proto.vega.Epoch} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Transaction} + * @return {!proto.vega.Epoch} */ -proto.vega.Transaction.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Epoch.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11720,24 +12367,23 @@ proto.vega.Transaction.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setInputData(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setSeq(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setNonce(value); + var value = new proto.vega.EpochTimestamps; + reader.readMessage(value,proto.vega.EpochTimestamps.deserializeBinaryFromReader); + msg.setTimestamps(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockHeight(value); - break; - case 1001: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAddress(value); + var value = new proto.vega.Node; + reader.readMessage(value,proto.vega.Node.deserializeBinaryFromReader); + msg.addValidators(value); break; - case 1002: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPubKey(value); + case 4: + var value = new proto.vega.Delegation; + reader.readMessage(value,proto.vega.Delegation.deserializeBinaryFromReader); + msg.addDelegations(value); break; default: reader.skipField(); @@ -11752,9 +12398,9 @@ proto.vega.Transaction.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Transaction.prototype.serializeBinary = function() { +proto.vega.Epoch.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Transaction.serializeBinaryToWriter(this, writer); + proto.vega.Epoch.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11762,245 +12408,174 @@ proto.vega.Transaction.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Transaction} message + * @param {!proto.vega.Epoch} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Transaction.serializeBinaryToWriter = function(message, writer) { +proto.vega.Epoch.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInputData_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getSeq(); + if (f !== 0) { + writer.writeUint64( 1, f ); } - f = message.getNonce(); - if (f !== 0) { - writer.writeUint64( + f = message.getTimestamps(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.vega.EpochTimestamps.serializeBinaryToWriter ); } - f = message.getBlockHeight(); - if (f !== 0) { - writer.writeUint64( + f = message.getValidatorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1001)); - if (f != null) { - writer.writeBytes( - 1001, - f + f, + proto.vega.Node.serializeBinaryToWriter ); } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1002)); - if (f != null) { - writer.writeBytes( - 1002, - f + f = message.getDelegationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.vega.Delegation.serializeBinaryToWriter ); } }; /** - * optional bytes input_data = 1; - * @return {!(string|Uint8Array)} - */ -proto.vega.Transaction.prototype.getInputData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes input_data = 1; - * This is a type-conversion wrapper around `getInputData()` - * @return {string} - */ -proto.vega.Transaction.prototype.getInputData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getInputData())); -}; - - -/** - * optional bytes input_data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getInputData()` - * @return {!Uint8Array} - */ -proto.vega.Transaction.prototype.getInputData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getInputData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.vega.Transaction} returns this - */ -proto.vega.Transaction.prototype.setInputData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint64 nonce = 2; - * @return {number} - */ -proto.vega.Transaction.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Transaction} returns this - */ -proto.vega.Transaction.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 block_height = 3; + * optional uint64 seq = 1; * @return {number} */ -proto.vega.Transaction.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.Epoch.prototype.getSeq = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vega.Transaction} returns this + * @return {!proto.vega.Epoch} returns this */ -proto.vega.Transaction.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.Epoch.prototype.setSeq = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional bytes address = 1001; - * @return {!(string|Uint8Array)} + * optional EpochTimestamps timestamps = 2; + * @return {?proto.vega.EpochTimestamps} */ -proto.vega.Transaction.prototype.getAddress = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1001, "")); +proto.vega.Epoch.prototype.getTimestamps = function() { + return /** @type{?proto.vega.EpochTimestamps} */ ( + jspb.Message.getWrapperField(this, proto.vega.EpochTimestamps, 2)); }; /** - * optional bytes address = 1001; - * This is a type-conversion wrapper around `getAddress()` - * @return {string} - */ -proto.vega.Transaction.prototype.getAddress_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAddress())); + * @param {?proto.vega.EpochTimestamps|undefined} value + * @return {!proto.vega.Epoch} returns this +*/ +proto.vega.Epoch.prototype.setTimestamps = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional bytes address = 1001; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAddress()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.vega.Epoch} returns this */ -proto.vega.Transaction.prototype.getAddress_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAddress())); +proto.vega.Epoch.prototype.clearTimestamps = function() { + return this.setTimestamps(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.vega.Transaction} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.Transaction.prototype.setAddress = function(value) { - return jspb.Message.setOneofField(this, 1001, proto.vega.Transaction.oneofGroups_[0], value); +proto.vega.Epoch.prototype.hasTimestamps = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Clears the field making it undefined. - * @return {!proto.vega.Transaction} returns this + * repeated Node validators = 3; + * @return {!Array} */ -proto.vega.Transaction.prototype.clearAddress = function() { - return jspb.Message.setOneofField(this, 1001, proto.vega.Transaction.oneofGroups_[0], undefined); +proto.vega.Epoch.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Node, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vega.Transaction.prototype.hasAddress = function() { - return jspb.Message.getField(this, 1001) != null; + * @param {!Array} value + * @return {!proto.vega.Epoch} returns this +*/ +proto.vega.Epoch.prototype.setValidatorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * optional bytes pub_key = 1002; - * @return {!(string|Uint8Array)} + * @param {!proto.vega.Node=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Node} */ -proto.vega.Transaction.prototype.getPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); +proto.vega.Epoch.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.vega.Node, opt_index); }; /** - * optional bytes pub_key = 1002; - * This is a type-conversion wrapper around `getPubKey()` - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.vega.Epoch} returns this */ -proto.vega.Transaction.prototype.getPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPubKey())); +proto.vega.Epoch.prototype.clearValidatorsList = function() { + return this.setValidatorsList([]); }; /** - * optional bytes pub_key = 1002; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPubKey()` - * @return {!Uint8Array} + * repeated Delegation delegations = 4; + * @return {!Array} */ -proto.vega.Transaction.prototype.getPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPubKey())); +proto.vega.Epoch.prototype.getDelegationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Delegation, 4)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.vega.Transaction} returns this - */ -proto.vega.Transaction.prototype.setPubKey = function(value) { - return jspb.Message.setOneofField(this, 1002, proto.vega.Transaction.oneofGroups_[0], value); + * @param {!Array} value + * @return {!proto.vega.Epoch} returns this +*/ +proto.vega.Epoch.prototype.setDelegationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * Clears the field making it undefined. - * @return {!proto.vega.Transaction} returns this + * @param {!proto.vega.Delegation=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Delegation} */ -proto.vega.Transaction.prototype.clearPubKey = function() { - return jspb.Message.setOneofField(this, 1002, proto.vega.Transaction.oneofGroups_[0], undefined); +proto.vega.Epoch.prototype.addDelegations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.vega.Delegation, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.vega.Epoch} returns this */ -proto.vega.Transaction.prototype.hasPubKey = function() { - return jspb.Message.getField(this, 1002) != null; +proto.vega.Epoch.prototype.clearDelegationsList = function() { + return this.setDelegationsList([]); }; @@ -12020,8 +12595,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.Signature.prototype.toObject = function(opt_includeInstance) { - return proto.vega.Signature.toObject(opt_includeInstance, this); +proto.vega.EpochParticipation.prototype.toObject = function(opt_includeInstance) { + return proto.vega.EpochParticipation.toObject(opt_includeInstance, this); }; @@ -12030,15 +12605,16 @@ proto.vega.Signature.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.Signature} msg The msg instance to transform. + * @param {!proto.vega.EpochParticipation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Signature.toObject = function(includeInstance, msg) { +proto.vega.EpochParticipation.toObject = function(includeInstance, msg) { var f, obj = { - sig: msg.getSig_asB64(), - algo: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, 0) + epoch: (f = msg.getEpoch()) && proto.vega.Epoch.toObject(includeInstance, f), + offline: jspb.Message.getFieldWithDefault(msg, 2, 0), + online: jspb.Message.getFieldWithDefault(msg, 3, 0), + totalRewards: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -12052,23 +12628,23 @@ proto.vega.Signature.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.Signature} + * @return {!proto.vega.EpochParticipation} */ -proto.vega.Signature.deserializeBinary = function(bytes) { +proto.vega.EpochParticipation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.Signature; - return proto.vega.Signature.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.EpochParticipation; + return proto.vega.EpochParticipation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.Signature} msg The message object to deserialize into. + * @param {!proto.vega.EpochParticipation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.Signature} + * @return {!proto.vega.EpochParticipation} */ -proto.vega.Signature.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.EpochParticipation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12076,16 +12652,21 @@ proto.vega.Signature.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSig(value); + var value = new proto.vega.Epoch; + reader.readMessage(value,proto.vega.Epoch.deserializeBinaryFromReader); + msg.setEpoch(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAlgo(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setOffline(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setVersion(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setOnline(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setTotalRewards(value); break; default: reader.skipField(); @@ -12100,9 +12681,9 @@ proto.vega.Signature.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.Signature.prototype.serializeBinary = function() { +proto.vega.EpochParticipation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.Signature.serializeBinaryToWriter(this, writer); + proto.vega.EpochParticipation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12110,114 +12691,135 @@ proto.vega.Signature.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.Signature} message + * @param {!proto.vega.EpochParticipation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.Signature.serializeBinaryToWriter = function(message, writer) { +proto.vega.EpochParticipation.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSig_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getEpoch(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.vega.Epoch.serializeBinaryToWriter ); } - f = message.getAlgo(); - if (f.length > 0) { - writer.writeString( + f = message.getOffline(); + if (f !== 0) { + writer.writeUint64( 2, f ); } - f = message.getVersion(); + f = message.getOnline(); if (f !== 0) { - writer.writeUint32( + writer.writeUint64( 3, f ); } + f = message.getTotalRewards(); + if (f !== 0.0) { + writer.writeDouble( + 4, + f + ); + } }; /** - * optional bytes sig = 1; - * @return {!(string|Uint8Array)} + * optional Epoch epoch = 1; + * @return {?proto.vega.Epoch} */ -proto.vega.Signature.prototype.getSig = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.EpochParticipation.prototype.getEpoch = function() { + return /** @type{?proto.vega.Epoch} */ ( + jspb.Message.getWrapperField(this, proto.vega.Epoch, 1)); }; /** - * optional bytes sig = 1; - * This is a type-conversion wrapper around `getSig()` - * @return {string} - */ -proto.vega.Signature.prototype.getSig_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSig())); + * @param {?proto.vega.Epoch|undefined} value + * @return {!proto.vega.EpochParticipation} returns this +*/ +proto.vega.EpochParticipation.prototype.setEpoch = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes sig = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSig()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.vega.EpochParticipation} returns this */ -proto.vega.Signature.prototype.getSig_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSig())); +proto.vega.EpochParticipation.prototype.clearEpoch = function() { + return this.setEpoch(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.vega.Signature} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.Signature.prototype.setSig = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.vega.EpochParticipation.prototype.hasEpoch = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional string algo = 2; - * @return {string} + * optional uint64 offline = 2; + * @return {number} */ -proto.vega.Signature.prototype.getAlgo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.EpochParticipation.prototype.getOffline = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.vega.Signature} returns this + * @param {number} value + * @return {!proto.vega.EpochParticipation} returns this */ -proto.vega.Signature.prototype.setAlgo = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.vega.EpochParticipation.prototype.setOffline = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional uint32 version = 3; + * optional uint64 online = 3; * @return {number} */ -proto.vega.Signature.prototype.getVersion = function() { +proto.vega.EpochParticipation.prototype.getOnline = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.vega.Signature} returns this + * @return {!proto.vega.EpochParticipation} returns this */ -proto.vega.Signature.prototype.setVersion = function(value) { +proto.vega.EpochParticipation.prototype.setOnline = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; +/** + * optional double total_rewards = 4; + * @return {number} + */ +proto.vega.EpochParticipation.prototype.getTotalRewards = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.EpochParticipation} returns this + */ +proto.vega.EpochParticipation.prototype.setTotalRewards = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + @@ -12234,8 +12836,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.SignedBundle.prototype.toObject = function(opt_includeInstance) { - return proto.vega.SignedBundle.toObject(opt_includeInstance, this); +proto.vega.EpochData.prototype.toObject = function(opt_includeInstance) { + return proto.vega.EpochData.toObject(opt_includeInstance, this); }; @@ -12244,14 +12846,15 @@ proto.vega.SignedBundle.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.SignedBundle} msg The msg instance to transform. + * @param {!proto.vega.EpochData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.SignedBundle.toObject = function(includeInstance, msg) { +proto.vega.EpochData.toObject = function(includeInstance, msg) { var f, obj = { - tx: msg.getTx_asB64(), - sig: (f = msg.getSig()) && proto.vega.Signature.toObject(includeInstance, f) + total: jspb.Message.getFieldWithDefault(msg, 1, 0), + offline: jspb.Message.getFieldWithDefault(msg, 2, 0), + online: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -12265,23 +12868,23 @@ proto.vega.SignedBundle.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.SignedBundle} + * @return {!proto.vega.EpochData} */ -proto.vega.SignedBundle.deserializeBinary = function(bytes) { +proto.vega.EpochData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.SignedBundle; - return proto.vega.SignedBundle.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.EpochData; + return proto.vega.EpochData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.SignedBundle} msg The message object to deserialize into. + * @param {!proto.vega.EpochData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.SignedBundle} + * @return {!proto.vega.EpochData} */ -proto.vega.SignedBundle.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.EpochData.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12289,13 +12892,16 @@ proto.vega.SignedBundle.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTx(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setTotal(value); break; case 2: - var value = new proto.vega.Signature; - reader.readMessage(value,proto.vega.Signature.deserializeBinaryFromReader); - msg.setSig(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setOffline(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setOnline(value); break; default: reader.skipField(); @@ -12310,9 +12916,9 @@ proto.vega.SignedBundle.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.SignedBundle.prototype.serializeBinary = function() { +proto.vega.EpochData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.SignedBundle.serializeBinaryToWriter(this, writer); + proto.vega.EpochData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12320,109 +12926,97 @@ proto.vega.SignedBundle.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.SignedBundle} message + * @param {!proto.vega.EpochData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.SignedBundle.serializeBinaryToWriter = function(message, writer) { +proto.vega.EpochData.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTx_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getTotal(); + if (f !== 0) { + writer.writeInt32( 1, f ); } - f = message.getSig(); - if (f != null) { - writer.writeMessage( + f = message.getOffline(); + if (f !== 0) { + writer.writeInt32( 2, - f, - proto.vega.Signature.serializeBinaryToWriter + f + ); + } + f = message.getOnline(); + if (f !== 0) { + writer.writeInt32( + 3, + f ); } }; /** - * optional bytes tx = 1; - * @return {!(string|Uint8Array)} + * optional int32 total = 1; + * @return {number} */ -proto.vega.SignedBundle.prototype.getTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.vega.EpochData.prototype.getTotal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * optional bytes tx = 1; - * This is a type-conversion wrapper around `getTx()` - * @return {string} + * @param {number} value + * @return {!proto.vega.EpochData} returns this */ -proto.vega.SignedBundle.prototype.getTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTx())); +proto.vega.EpochData.prototype.setTotal = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional bytes tx = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTx()` - * @return {!Uint8Array} + * optional int32 offline = 2; + * @return {number} */ -proto.vega.SignedBundle.prototype.getTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTx())); +proto.vega.EpochData.prototype.getOffline = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.vega.SignedBundle} returns this + * @param {number} value + * @return {!proto.vega.EpochData} returns this */ -proto.vega.SignedBundle.prototype.setTx = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.vega.EpochData.prototype.setOffline = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional Signature sig = 2; - * @return {?proto.vega.Signature} + * optional int32 online = 3; + * @return {number} */ -proto.vega.SignedBundle.prototype.getSig = function() { - return /** @type{?proto.vega.Signature} */ ( - jspb.Message.getWrapperField(this, proto.vega.Signature, 2)); -}; - - -/** - * @param {?proto.vega.Signature|undefined} value - * @return {!proto.vega.SignedBundle} returns this -*/ -proto.vega.SignedBundle.prototype.setSig = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.vega.EpochData.prototype.getOnline = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.SignedBundle} returns this + * @param {number} value + * @return {!proto.vega.EpochData} returns this */ -proto.vega.SignedBundle.prototype.clearSig = function() { - return this.setSig(undefined); +proto.vega.EpochData.prototype.setOnline = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; + /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vega.SignedBundle.prototype.hasSig = function() { - return jspb.Message.getField(this, 2) != null; -}; - - +proto.vega.Node.repeatedFields_ = [12]; @@ -12439,8 +13033,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.NetworkParameter.prototype.toObject = function(opt_includeInstance) { - return proto.vega.NetworkParameter.toObject(opt_includeInstance, this); +proto.vega.Node.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Node.toObject(opt_includeInstance, this); }; @@ -12449,14 +13043,25 @@ proto.vega.NetworkParameter.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.NetworkParameter} msg The msg instance to transform. + * @param {!proto.vega.Node} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.NetworkParameter.toObject = function(includeInstance, msg) { +proto.vega.Node.toObject = function(includeInstance, msg) { var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + pubKey: jspb.Message.getFieldWithDefault(msg, 2, ""), + infoUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), + location: jspb.Message.getFieldWithDefault(msg, 4, ""), + stakedByOperator: jspb.Message.getFieldWithDefault(msg, 5, ""), + stakedByDelegates: jspb.Message.getFieldWithDefault(msg, 6, ""), + stakedTotal: jspb.Message.getFieldWithDefault(msg, 7, ""), + maxIntendedStake: jspb.Message.getFieldWithDefault(msg, 8, ""), + pendingStake: jspb.Message.getFieldWithDefault(msg, 9, ""), + epochData: (f = msg.getEpochData()) && proto.vega.EpochData.toObject(includeInstance, f), + status: jspb.Message.getFieldWithDefault(msg, 11, 0), + delagationsList: jspb.Message.toObjectList(msg.getDelagationsList(), + proto.vega.Delegation.toObject, includeInstance) }; if (includeInstance) { @@ -12470,23 +13075,23 @@ proto.vega.NetworkParameter.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.NetworkParameter} + * @return {!proto.vega.Node} */ -proto.vega.NetworkParameter.deserializeBinary = function(bytes) { +proto.vega.Node.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.NetworkParameter; - return proto.vega.NetworkParameter.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Node; + return proto.vega.Node.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.NetworkParameter} msg The message object to deserialize into. + * @param {!proto.vega.Node} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.NetworkParameter} + * @return {!proto.vega.Node} */ -proto.vega.NetworkParameter.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Node.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12495,11 +13100,53 @@ proto.vega.NetworkParameter.deserializeBinaryFromReader = function(msg, reader) switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); + msg.setPubKey(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setInfoUrl(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setLocation(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setStakedByOperator(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setStakedByDelegates(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setStakedTotal(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMaxIntendedStake(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setPendingStake(value); + break; + case 10: + var value = new proto.vega.EpochData; + reader.readMessage(value,proto.vega.EpochData.deserializeBinaryFromReader); + msg.setEpochData(value); + break; + case 11: + var value = /** @type {!proto.vega.NodeStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 12: + var value = new proto.vega.Delegation; + reader.readMessage(value,proto.vega.Delegation.deserializeBinaryFromReader); + msg.addDelagations(value); break; default: reader.skipField(); @@ -12514,9 +13161,9 @@ proto.vega.NetworkParameter.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.NetworkParameter.prototype.serializeBinary = function() { +proto.vega.Node.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.NetworkParameter.serializeBinaryToWriter(this, writer); + proto.vega.Node.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12524,252 +13171,353 @@ proto.vega.NetworkParameter.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.NetworkParameter} message + * @param {!proto.vega.Node} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.NetworkParameter.serializeBinaryToWriter = function(message, writer) { +proto.vega.Node.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKey(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getValue(); + f = message.getPubKey(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getInfoUrl(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLocation(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getStakedByOperator(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getStakedByDelegates(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getStakedTotal(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMaxIntendedStake(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getPendingStake(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getEpochData(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.vega.EpochData.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 11, + f + ); + } + f = message.getDelagationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.vega.Delegation.serializeBinaryToWriter + ); + } }; /** - * optional string key = 1; + * optional string id = 1; * @return {string} */ -proto.vega.NetworkParameter.prototype.getKey = function() { +proto.vega.Node.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.NetworkParameter} returns this + * @return {!proto.vega.Node} returns this */ -proto.vega.NetworkParameter.prototype.setKey = function(value) { +proto.vega.Node.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string value = 2; + * optional string pub_key = 2; * @return {string} */ -proto.vega.NetworkParameter.prototype.getValue = function() { +proto.vega.Node.prototype.getPubKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.vega.NetworkParameter} returns this + * @return {!proto.vega.Node} returns this */ -proto.vega.NetworkParameter.prototype.setValue = function(value) { +proto.vega.Node.prototype.setPubKey = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * optional string info_url = 3; + * @return {string} + */ +proto.vega.Node.prototype.getInfoUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setInfoUrl = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional string location = 4; + * @return {string} */ -proto.vega.LiquidityOrder.prototype.toObject = function(opt_includeInstance) { - return proto.vega.LiquidityOrder.toObject(opt_includeInstance, this); +proto.vega.Node.prototype.getLocation = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setLocation = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string staked_by_operator = 5; + * @return {string} + */ +proto.vega.Node.prototype.getStakedByOperator = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setStakedByOperator = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string staked_by_delegates = 6; + * @return {string} + */ +proto.vega.Node.prototype.getStakedByDelegates = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setStakedByDelegates = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string staked_total = 7; + * @return {string} + */ +proto.vega.Node.prototype.getStakedTotal = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setStakedTotal = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string max_intended_stake = 8; + * @return {string} + */ +proto.vega.Node.prototype.getMaxIntendedStake = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vega.LiquidityOrder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.vega.Node} returns this */ -proto.vega.LiquidityOrder.toObject = function(includeInstance, msg) { - var f, obj = { - reference: jspb.Message.getFieldWithDefault(msg, 1, 0), - proportion: jspb.Message.getFieldWithDefault(msg, 2, 0), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.vega.Node.prototype.setMaxIntendedStake = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.LiquidityOrder} + * optional string pending_stake = 9; + * @return {string} */ -proto.vega.LiquidityOrder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.LiquidityOrder; - return proto.vega.LiquidityOrder.deserializeBinaryFromReader(msg, reader); +proto.vega.Node.prototype.getPendingStake = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vega.LiquidityOrder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.LiquidityOrder} + * @param {string} value + * @return {!proto.vega.Node} returns this */ -proto.vega.LiquidityOrder.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.vega.PeggedReference} */ (reader.readEnum()); - msg.setReference(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setProportion(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.vega.Node.prototype.setPendingStake = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional EpochData epoch_data = 10; + * @return {?proto.vega.EpochData} */ -proto.vega.LiquidityOrder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vega.LiquidityOrder.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.vega.Node.prototype.getEpochData = function() { + return /** @type{?proto.vega.EpochData} */ ( + jspb.Message.getWrapperField(this, proto.vega.EpochData, 10)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vega.LiquidityOrder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {?proto.vega.EpochData|undefined} value + * @return {!proto.vega.Node} returns this +*/ +proto.vega.Node.prototype.setEpochData = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.Node} returns this */ -proto.vega.LiquidityOrder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReference(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getProportion(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } +proto.vega.Node.prototype.clearEpochData = function() { + return this.setEpochData(undefined); }; /** - * optional PeggedReference reference = 1; - * @return {!proto.vega.PeggedReference} + * Returns whether this field is set. + * @return {boolean} */ -proto.vega.LiquidityOrder.prototype.getReference = function() { - return /** @type {!proto.vega.PeggedReference} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.vega.Node.prototype.hasEpochData = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * @param {!proto.vega.PeggedReference} value - * @return {!proto.vega.LiquidityOrder} returns this + * optional NodeStatus status = 11; + * @return {!proto.vega.NodeStatus} */ -proto.vega.LiquidityOrder.prototype.setReference = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.vega.Node.prototype.getStatus = function() { + return /** @type {!proto.vega.NodeStatus} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; /** - * optional uint32 proportion = 2; - * @return {number} + * @param {!proto.vega.NodeStatus} value + * @return {!proto.vega.Node} returns this */ -proto.vega.LiquidityOrder.prototype.getProportion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.vega.Node.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 11, value); }; /** - * @param {number} value - * @return {!proto.vega.LiquidityOrder} returns this + * repeated Delegation delagations = 12; + * @return {!Array} */ -proto.vega.LiquidityOrder.prototype.setProportion = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.vega.Node.prototype.getDelagationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.Delegation, 12)); }; /** - * optional int64 offset = 3; - * @return {number} + * @param {!Array} value + * @return {!proto.vega.Node} returns this +*/ +proto.vega.Node.prototype.setDelagationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.vega.Delegation=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.Delegation} */ -proto.vega.LiquidityOrder.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.Node.prototype.addDelagations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.vega.Delegation, opt_index); }; /** - * @param {number} value - * @return {!proto.vega.LiquidityOrder} returns this + * Clears the list making it empty but non-null. + * @return {!proto.vega.Node} returns this */ -proto.vega.LiquidityOrder.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.Node.prototype.clearDelagationsList = function() { + return this.setDelagationsList([]); }; @@ -12789,8 +13537,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.LiquidityOrderReference.prototype.toObject = function(opt_includeInstance) { - return proto.vega.LiquidityOrderReference.toObject(opt_includeInstance, this); +proto.vega.NodeData.prototype.toObject = function(opt_includeInstance) { + return proto.vega.NodeData.toObject(opt_includeInstance, this); }; @@ -12799,14 +13547,17 @@ proto.vega.LiquidityOrderReference.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.LiquidityOrderReference} msg The msg instance to transform. + * @param {!proto.vega.NodeData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityOrderReference.toObject = function(includeInstance, msg) { +proto.vega.NodeData.toObject = function(includeInstance, msg) { var f, obj = { - orderId: jspb.Message.getFieldWithDefault(msg, 1, ""), - liquidityOrder: (f = msg.getLiquidityOrder()) && proto.vega.LiquidityOrder.toObject(includeInstance, f) + stakedTotal: jspb.Message.getFieldWithDefault(msg, 1, ""), + totalNodes: jspb.Message.getFieldWithDefault(msg, 2, 0), + inactiveNodes: jspb.Message.getFieldWithDefault(msg, 3, 0), + validatingNodes: jspb.Message.getFieldWithDefault(msg, 4, 0), + uptime: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) }; if (includeInstance) { @@ -12820,23 +13571,23 @@ proto.vega.LiquidityOrderReference.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.LiquidityOrderReference} + * @return {!proto.vega.NodeData} */ -proto.vega.LiquidityOrderReference.deserializeBinary = function(bytes) { +proto.vega.NodeData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.LiquidityOrderReference; - return proto.vega.LiquidityOrderReference.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.NodeData; + return proto.vega.NodeData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.LiquidityOrderReference} msg The message object to deserialize into. + * @param {!proto.vega.NodeData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.LiquidityOrderReference} + * @return {!proto.vega.NodeData} */ -proto.vega.LiquidityOrderReference.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.NodeData.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12845,12 +13596,23 @@ proto.vega.LiquidityOrderReference.deserializeBinaryFromReader = function(msg, r switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setOrderId(value); + msg.setStakedTotal(value); break; case 2: - var value = new proto.vega.LiquidityOrder; - reader.readMessage(value,proto.vega.LiquidityOrder.deserializeBinaryFromReader); - msg.setLiquidityOrder(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setTotalNodes(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setInactiveNodes(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setValidatingNodes(value); + break; + case 5: + var value = /** @type {number} */ (reader.readFloat()); + msg.setUptime(value); break; default: reader.skipField(); @@ -12865,9 +13627,9 @@ proto.vega.LiquidityOrderReference.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.LiquidityOrderReference.prototype.serializeBinary = function() { +proto.vega.NodeData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.LiquidityOrderReference.serializeBinaryToWriter(this, writer); + proto.vega.NodeData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12875,92 +13637,140 @@ proto.vega.LiquidityOrderReference.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.LiquidityOrderReference} message + * @param {!proto.vega.NodeData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityOrderReference.serializeBinaryToWriter = function(message, writer) { +proto.vega.NodeData.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getOrderId(); + f = message.getStakedTotal(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getLiquidityOrder(); - if (f != null) { - writer.writeMessage( + f = message.getTotalNodes(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto.vega.LiquidityOrder.serializeBinaryToWriter + f + ); + } + f = message.getInactiveNodes(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getValidatingNodes(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getUptime(); + if (f !== 0.0) { + writer.writeFloat( + 5, + f ); } }; /** - * optional string order_id = 1; + * optional string staked_total = 1; * @return {string} */ -proto.vega.LiquidityOrderReference.prototype.getOrderId = function() { +proto.vega.NodeData.prototype.getStakedTotal = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityOrderReference} returns this + * @return {!proto.vega.NodeData} returns this */ -proto.vega.LiquidityOrderReference.prototype.setOrderId = function(value) { +proto.vega.NodeData.prototype.setStakedTotal = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional LiquidityOrder liquidity_order = 2; - * @return {?proto.vega.LiquidityOrder} + * optional uint32 total_nodes = 2; + * @return {number} */ -proto.vega.LiquidityOrderReference.prototype.getLiquidityOrder = function() { - return /** @type{?proto.vega.LiquidityOrder} */ ( - jspb.Message.getWrapperField(this, proto.vega.LiquidityOrder, 2)); +proto.vega.NodeData.prototype.getTotalNodes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {?proto.vega.LiquidityOrder|undefined} value - * @return {!proto.vega.LiquidityOrderReference} returns this -*/ -proto.vega.LiquidityOrderReference.prototype.setLiquidityOrder = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.vega.NodeData} returns this + */ +proto.vega.NodeData.prototype.setTotalNodes = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.vega.LiquidityOrderReference} returns this + * optional uint32 inactive_nodes = 3; + * @return {number} */ -proto.vega.LiquidityOrderReference.prototype.clearLiquidityOrder = function() { - return this.setLiquidityOrder(undefined); +proto.vega.NodeData.prototype.getInactiveNodes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.vega.NodeData} returns this */ -proto.vega.LiquidityOrderReference.prototype.hasLiquidityOrder = function() { - return jspb.Message.getField(this, 2) != null; +proto.vega.NodeData.prototype.setInactiveNodes = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; +/** + * optional uint32 validating_nodes = 4; + * @return {number} + */ +proto.vega.NodeData.prototype.getValidatingNodes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.vega.NodeData} returns this */ -proto.vega.LiquidityProvision.repeatedFields_ = [8,9]; +proto.vega.NodeData.prototype.setValidatingNodes = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional float uptime = 5; + * @return {number} + */ +proto.vega.NodeData.prototype.getUptime = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.vega.NodeData} returns this + */ +proto.vega.NodeData.prototype.setUptime = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + @@ -12977,8 +13787,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.LiquidityProvision.prototype.toObject = function(opt_includeInstance) { - return proto.vega.LiquidityProvision.toObject(opt_includeInstance, this); +proto.vega.Delegation.prototype.toObject = function(opt_includeInstance) { + return proto.vega.Delegation.toObject(opt_includeInstance, this); }; @@ -12987,26 +13797,16 @@ proto.vega.LiquidityProvision.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.LiquidityProvision} msg The msg instance to transform. + * @param {!proto.vega.Delegation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityProvision.toObject = function(includeInstance, msg) { +proto.vega.Delegation.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 3, 0), - updatedAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), - commitmentAmount: jspb.Message.getFieldWithDefault(msg, 6, 0), - fee: jspb.Message.getFieldWithDefault(msg, 7, ""), - sellsList: jspb.Message.toObjectList(msg.getSellsList(), - proto.vega.LiquidityOrderReference.toObject, includeInstance), - buysList: jspb.Message.toObjectList(msg.getBuysList(), - proto.vega.LiquidityOrderReference.toObject, includeInstance), - version: jspb.Message.getFieldWithDefault(msg, 10, ""), - status: jspb.Message.getFieldWithDefault(msg, 11, 0), - reference: jspb.Message.getFieldWithDefault(msg, 12, "") + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + nodeId: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + epochSeq: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -13020,23 +13820,23 @@ proto.vega.LiquidityProvision.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.LiquidityProvision} + * @return {!proto.vega.Delegation} */ -proto.vega.LiquidityProvision.deserializeBinary = function(bytes) { +proto.vega.Delegation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.LiquidityProvision; - return proto.vega.LiquidityProvision.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.Delegation; + return proto.vega.Delegation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.LiquidityProvision} msg The message object to deserialize into. + * @param {!proto.vega.Delegation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.LiquidityProvision} + * @return {!proto.vega.Delegation} */ -proto.vega.LiquidityProvision.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.Delegation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13045,53 +13845,19 @@ proto.vega.LiquidityProvision.deserializeBinaryFromReader = function(msg, reader switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setParty(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setPartyId(value); + msg.setNodeId(value); break; case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreatedAt(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setUpdatedAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMarketId(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCommitmentAmount(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setFee(value); - break; - case 8: - var value = new proto.vega.LiquidityOrderReference; - reader.readMessage(value,proto.vega.LiquidityOrderReference.deserializeBinaryFromReader); - msg.addSells(value); - break; - case 9: - var value = new proto.vega.LiquidityOrderReference; - reader.readMessage(value,proto.vega.LiquidityOrderReference.deserializeBinaryFromReader); - msg.addBuys(value); - break; - case 10: var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 11: - var value = /** @type {!proto.vega.LiquidityProvision.Status} */ (reader.readEnum()); - msg.setStatus(value); + msg.setAmount(value); break; - case 12: + case 4: var value = /** @type {string} */ (reader.readString()); - msg.setReference(value); + msg.setEpochSeq(value); break; default: reader.skipField(); @@ -13106,9 +13872,9 @@ proto.vega.LiquidityProvision.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.LiquidityProvision.prototype.serializeBinary = function() { +proto.vega.Delegation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.LiquidityProvision.serializeBinaryToWriter(this, writer); + proto.vega.Delegation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13116,95 +13882,37 @@ proto.vega.LiquidityProvision.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.LiquidityProvision} message + * @param {!proto.vega.Delegation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityProvision.serializeBinaryToWriter = function(message, writer) { +proto.vega.Delegation.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getParty(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getPartyId(); + f = message.getNodeId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getCreatedAt(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getUpdatedAt(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getMarketId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCommitmentAmount(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getFee(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getSellsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.vega.LiquidityOrderReference.serializeBinaryToWriter - ); - } - f = message.getBuysList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.vega.LiquidityOrderReference.serializeBinaryToWriter - ); - } - f = message.getVersion(); + f = message.getAmount(); if (f.length > 0) { writer.writeString( - 10, - f - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 11, + 3, f ); } - f = message.getReference(); + f = message.getEpochSeq(); if (f.length > 0) { writer.writeString( - 12, + 4, f ); } @@ -13212,274 +13920,364 @@ proto.vega.LiquidityProvision.serializeBinaryToWriter = function(message, writer /** - * @enum {number} - */ -proto.vega.LiquidityProvision.Status = { - STATUS_UNSPECIFIED: 0, - STATUS_ACTIVE: 1, - STATUS_STOPPED: 2, - STATUS_CANCELLED: 3, - STATUS_REJECTED: 4, - STATUS_UNDEPLOYED: 5, - STATUS_PENDING: 6 -}; - -/** - * optional string id = 1; + * optional string party = 1; * @return {string} */ -proto.vega.LiquidityProvision.prototype.getId = function() { +proto.vega.Delegation.prototype.getParty = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * @return {!proto.vega.Delegation} returns this */ -proto.vega.LiquidityProvision.prototype.setId = function(value) { +proto.vega.Delegation.prototype.setParty = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string party_id = 2; + * optional string node_id = 2; * @return {string} */ -proto.vega.LiquidityProvision.prototype.getPartyId = function() { +proto.vega.Delegation.prototype.getNodeId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * @return {!proto.vega.Delegation} returns this */ -proto.vega.LiquidityProvision.prototype.setPartyId = function(value) { +proto.vega.Delegation.prototype.setNodeId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional int64 created_at = 3; - * @return {number} + * optional string amount = 3; + * @return {string} */ -proto.vega.LiquidityProvision.prototype.getCreatedAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.vega.Delegation.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value - * @return {!proto.vega.LiquidityProvision} returns this + * @param {string} value + * @return {!proto.vega.Delegation} returns this */ -proto.vega.LiquidityProvision.prototype.setCreatedAt = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.vega.Delegation.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional int64 updated_at = 4; - * @return {number} + * optional string epoch_seq = 4; + * @return {string} */ -proto.vega.LiquidityProvision.prototype.getUpdatedAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.vega.Delegation.prototype.getEpochSeq = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value - * @return {!proto.vega.LiquidityProvision} returns this + * @param {string} value + * @return {!proto.vega.Delegation} returns this */ -proto.vega.LiquidityProvision.prototype.setUpdatedAt = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.vega.Delegation.prototype.setEpochSeq = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string market_id = 5; - * @return {string} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.vega.LiquidityProvision.prototype.getMarketId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.vega.RewardDetails.prototype.toObject = function(opt_includeInstance) { + return proto.vega.RewardDetails.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.RewardDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityProvision.prototype.setMarketId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.vega.RewardDetails.toObject = function(includeInstance, msg) { + var f, obj = { + assetId: jspb.Message.getFieldWithDefault(msg, 1, ""), + partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), + epoch: jspb.Message.getFieldWithDefault(msg, 3, 0), + amount: jspb.Message.getFieldWithDefault(msg, 4, ""), + percentageOfTotal: jspb.Message.getFieldWithDefault(msg, 5, ""), + receivedAt: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.RewardDetails} + */ +proto.vega.RewardDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.RewardDetails; + return proto.vega.RewardDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.RewardDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.RewardDetails} + */ +proto.vega.RewardDetails.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAssetId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPartyId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setEpoch(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPercentageOfTotal(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setReceivedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional uint64 commitment_amount = 6; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.vega.LiquidityProvision.prototype.getCommitmentAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.vega.RewardDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.RewardDetails.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.vega.LiquidityProvision} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.RewardDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.LiquidityProvision.prototype.setCommitmentAmount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.vega.RewardDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPartyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getEpoch(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPercentageOfTotal(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getReceivedAt(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } }; /** - * optional string fee = 7; + * optional string asset_id = 1; * @return {string} */ -proto.vega.LiquidityProvision.prototype.getFee = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.vega.RewardDetails.prototype.getAssetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.setFee = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.vega.RewardDetails.prototype.setAssetId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated LiquidityOrderReference sells = 8; - * @return {!Array} + * optional string party_id = 2; + * @return {string} */ -proto.vega.LiquidityProvision.prototype.getSellsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityOrderReference, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.vega.LiquidityProvision} returns this -*/ -proto.vega.LiquidityProvision.prototype.setSellsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); +proto.vega.RewardDetails.prototype.getPartyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!proto.vega.LiquidityOrderReference=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.LiquidityOrderReference} + * @param {string} value + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.addSells = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.vega.LiquidityOrderReference, opt_index); +proto.vega.RewardDetails.prototype.setPartyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.LiquidityProvision} returns this + * optional uint64 epoch = 3; + * @return {number} */ -proto.vega.LiquidityProvision.prototype.clearSellsList = function() { - return this.setSellsList([]); +proto.vega.RewardDetails.prototype.getEpoch = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * repeated LiquidityOrderReference buys = 9; - * @return {!Array} + * @param {number} value + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.getBuysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.LiquidityOrderReference, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.vega.LiquidityProvision} returns this -*/ -proto.vega.LiquidityProvision.prototype.setBuysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); +proto.vega.RewardDetails.prototype.setEpoch = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * @param {!proto.vega.LiquidityOrderReference=} opt_value - * @param {number=} opt_index - * @return {!proto.vega.LiquidityOrderReference} + * optional string amount = 4; + * @return {string} */ -proto.vega.LiquidityProvision.prototype.addBuys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.vega.LiquidityOrderReference, opt_index); +proto.vega.RewardDetails.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vega.LiquidityProvision} returns this + * @param {string} value + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.clearBuysList = function() { - return this.setBuysList([]); +proto.vega.RewardDetails.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string version = 10; + * optional string percentage_of_total = 5; * @return {string} */ -proto.vega.LiquidityProvision.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.vega.RewardDetails.prototype.getPercentageOfTotal = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.vega.RewardDetails.prototype.setPercentageOfTotal = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional Status status = 11; - * @return {!proto.vega.LiquidityProvision.Status} + * optional int64 received_at = 6; + * @return {number} */ -proto.vega.LiquidityProvision.prototype.getStatus = function() { - return /** @type {!proto.vega.LiquidityProvision.Status} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.vega.RewardDetails.prototype.getReceivedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {!proto.vega.LiquidityProvision.Status} value - * @return {!proto.vega.LiquidityProvision} returns this + * @param {number} value + * @return {!proto.vega.RewardDetails} returns this */ -proto.vega.LiquidityProvision.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 11, value); +proto.vega.RewardDetails.prototype.setReceivedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * optional string reference = 12; - * @return {string} - */ -proto.vega.LiquidityProvision.prototype.getReference = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - /** - * @param {string} value - * @return {!proto.vega.LiquidityProvision} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vega.LiquidityProvision.prototype.setReference = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - +proto.vega.RewardPerAssetDetail.repeatedFields_ = [2]; @@ -13496,8 +14294,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vega.EthereumConfig.prototype.toObject = function(opt_includeInstance) { - return proto.vega.EthereumConfig.toObject(opt_includeInstance, this); +proto.vega.RewardPerAssetDetail.prototype.toObject = function(opt_includeInstance) { + return proto.vega.RewardPerAssetDetail.toObject(opt_includeInstance, this); }; @@ -13506,16 +14304,16 @@ proto.vega.EthereumConfig.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vega.EthereumConfig} msg The msg instance to transform. + * @param {!proto.vega.RewardPerAssetDetail} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.EthereumConfig.toObject = function(includeInstance, msg) { +proto.vega.RewardPerAssetDetail.toObject = function(includeInstance, msg) { var f, obj = { - networkId: jspb.Message.getFieldWithDefault(msg, 1, ""), - chainId: jspb.Message.getFieldWithDefault(msg, 2, ""), - bridgeAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), - confirmations: jspb.Message.getFieldWithDefault(msg, 4, 0) + asset: jspb.Message.getFieldWithDefault(msg, 1, ""), + detailsList: jspb.Message.toObjectList(msg.getDetailsList(), + proto.vega.RewardDetails.toObject, includeInstance), + totalForAsset: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -13529,23 +14327,23 @@ proto.vega.EthereumConfig.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vega.EthereumConfig} + * @return {!proto.vega.RewardPerAssetDetail} */ -proto.vega.EthereumConfig.deserializeBinary = function(bytes) { +proto.vega.RewardPerAssetDetail.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vega.EthereumConfig; - return proto.vega.EthereumConfig.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vega.RewardPerAssetDetail; + return proto.vega.RewardPerAssetDetail.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vega.EthereumConfig} msg The message object to deserialize into. + * @param {!proto.vega.RewardPerAssetDetail} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vega.EthereumConfig} + * @return {!proto.vega.RewardPerAssetDetail} */ -proto.vega.EthereumConfig.deserializeBinaryFromReader = function(msg, reader) { +proto.vega.RewardPerAssetDetail.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13554,19 +14352,16 @@ proto.vega.EthereumConfig.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setNetworkId(value); + msg.setAsset(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); + var value = new proto.vega.RewardDetails; + reader.readMessage(value,proto.vega.RewardDetails.deserializeBinaryFromReader); + msg.addDetails(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setBridgeAddress(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setConfirmations(value); + msg.setTotalForAsset(value); break; default: reader.skipField(); @@ -13581,9 +14376,9 @@ proto.vega.EthereumConfig.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vega.EthereumConfig.prototype.serializeBinary = function() { +proto.vega.RewardPerAssetDetail.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vega.EthereumConfig.serializeBinaryToWriter(this, writer); + proto.vega.RewardPerAssetDetail.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13591,112 +14386,108 @@ proto.vega.EthereumConfig.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vega.EthereumConfig} message + * @param {!proto.vega.RewardPerAssetDetail} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vega.EthereumConfig.serializeBinaryToWriter = function(message, writer) { +proto.vega.RewardPerAssetDetail.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNetworkId(); + f = message.getAsset(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getChainId(); + f = message.getDetailsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto.vega.RewardDetails.serializeBinaryToWriter ); } - f = message.getBridgeAddress(); + f = message.getTotalForAsset(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getConfirmations(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } }; /** - * optional string network_id = 1; + * optional string asset = 1; * @return {string} */ -proto.vega.EthereumConfig.prototype.getNetworkId = function() { +proto.vega.RewardPerAssetDetail.prototype.getAsset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.vega.EthereumConfig} returns this + * @return {!proto.vega.RewardPerAssetDetail} returns this */ -proto.vega.EthereumConfig.prototype.setNetworkId = function(value) { +proto.vega.RewardPerAssetDetail.prototype.setAsset = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string chain_id = 2; - * @return {string} + * repeated RewardDetails details = 2; + * @return {!Array} */ -proto.vega.EthereumConfig.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.vega.RewardPerAssetDetail.prototype.getDetailsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.RewardDetails, 2)); }; /** - * @param {string} value - * @return {!proto.vega.EthereumConfig} returns this - */ -proto.vega.EthereumConfig.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {!Array} value + * @return {!proto.vega.RewardPerAssetDetail} returns this +*/ +proto.vega.RewardPerAssetDetail.prototype.setDetailsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string bridge_address = 3; - * @return {string} + * @param {!proto.vega.RewardDetails=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.RewardDetails} */ -proto.vega.EthereumConfig.prototype.getBridgeAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.vega.RewardPerAssetDetail.prototype.addDetails = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.vega.RewardDetails, opt_index); }; /** - * @param {string} value - * @return {!proto.vega.EthereumConfig} returns this + * Clears the list making it empty but non-null. + * @return {!proto.vega.RewardPerAssetDetail} returns this */ -proto.vega.EthereumConfig.prototype.setBridgeAddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.vega.RewardPerAssetDetail.prototype.clearDetailsList = function() { + return this.setDetailsList([]); }; /** - * optional uint32 confirmations = 4; - * @return {number} + * optional string total_for_asset = 3; + * @return {string} */ -proto.vega.EthereumConfig.prototype.getConfirmations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.vega.RewardPerAssetDetail.prototype.getTotalForAsset = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value - * @return {!proto.vega.EthereumConfig} returns this + * @param {string} value + * @return {!proto.vega.RewardPerAssetDetail} returns this */ -proto.vega.EthereumConfig.prototype.setConfirmations = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.vega.RewardPerAssetDetail.prototype.setTotalForAsset = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -13854,4 +14645,13 @@ proto.vega.TransferType = { TRANSFER_TYPE_STAKE_REWARD: 21 }; +/** + * @enum {number} + */ +proto.vega.NodeStatus = { + NODE_STATUS_UNSPECIFIED: 0, + NODE_STATUS_VALIDATOR: 1, + NODE_STATUS_NON_VALIDATOR: 2 +}; + goog.object.extend(exports, proto.vega); diff --git a/grpc/clients/js/generated/vega_pb_service.d.ts b/grpc/clients/js/generated/vega_pb_service.d.ts deleted file mode 100644 index 3d90b0dd..00000000 --- a/grpc/clients/js/generated/vega_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: vega.proto - diff --git a/grpc/clients/js/generated/vega_pb_service.js b/grpc/clients/js/generated/vega_pb_service.js deleted file mode 100644 index 3d90b0dd..00000000 --- a/grpc/clients/js/generated/vega_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega -// file: vega.proto - diff --git a/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.d.ts b/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.js b/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/grpc/clients/js/generated/wallet/v1/wallet_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/grpc/clients/js/generated/wallet/v1/wallet_pb.d.ts b/grpc/clients/js/generated/wallet/v1/wallet_pb.d.ts index a12aadc0..73ea61a4 100644 --- a/grpc/clients/js/generated/wallet/v1/wallet_pb.d.ts +++ b/grpc/clients/js/generated/wallet/v1/wallet_pb.d.ts @@ -1,135 +1,138 @@ // package: vega.wallet.v1 // file: wallet/v1/wallet.proto +/* tslint:disable */ +/* eslint-disable */ + import * as jspb from "google-protobuf"; import * as commands_v1_commands_pb from "../../commands/v1/commands_pb"; import * as commands_v1_validator_commands_pb from "../../commands/v1/validator_commands_pb"; import * as commands_v1_oracles_pb from "../../commands/v1/oracles_pb"; export class SubmitTransactionRequest extends jspb.Message { - getPubKey(): string; - setPubKey(value: string): void; - - getPropagate(): boolean; - setPropagate(value: boolean): void; - - hasOrderSubmission(): boolean; - clearOrderSubmission(): void; - getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; - setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): void; - - hasOrderCancellation(): boolean; - clearOrderCancellation(): void; - getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; - setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): void; - - hasOrderAmendment(): boolean; - clearOrderAmendment(): void; - getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; - setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): void; - - hasWithdrawSubmission(): boolean; - clearWithdrawSubmission(): void; - getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; - setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): void; - - hasProposalSubmission(): boolean; - clearProposalSubmission(): void; - getProposalSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; - setProposalSubmission(value?: commands_v1_commands_pb.ProposalSubmission): void; - - hasVoteSubmission(): boolean; - clearVoteSubmission(): void; - getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; - setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): void; - - hasLiquidityProvisionSubmission(): boolean; - clearLiquidityProvisionSubmission(): void; - getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; - setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): void; - - hasDelegateSubmission(): boolean; - clearDelegateSubmission(): void; - getDelegateSubmission(): commands_v1_commands_pb.DelegateSubmission | undefined; - setDelegateSubmission(value?: commands_v1_commands_pb.DelegateSubmission): void; - - hasUndelegateSubmission(): boolean; - clearUndelegateSubmission(): void; - getUndelegateSubmission(): commands_v1_commands_pb.UndelegateSubmission | undefined; - setUndelegateSubmission(value?: commands_v1_commands_pb.UndelegateSubmission): void; - - hasNodeRegistration(): boolean; - clearNodeRegistration(): void; - getNodeRegistration(): commands_v1_validator_commands_pb.NodeRegistration | undefined; - setNodeRegistration(value?: commands_v1_validator_commands_pb.NodeRegistration): void; - - hasNodeVote(): boolean; - clearNodeVote(): void; - getNodeVote(): commands_v1_validator_commands_pb.NodeVote | undefined; - setNodeVote(value?: commands_v1_validator_commands_pb.NodeVote): void; - - hasNodeSignature(): boolean; - clearNodeSignature(): void; - getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; - setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): void; - - hasChainEvent(): boolean; - clearChainEvent(): void; - getChainEvent(): commands_v1_validator_commands_pb.ChainEvent | undefined; - setChainEvent(value?: commands_v1_validator_commands_pb.ChainEvent): void; - - hasOracleDataSubmission(): boolean; - clearOracleDataSubmission(): void; - getOracleDataSubmission(): commands_v1_oracles_pb.OracleDataSubmission | undefined; - setOracleDataSubmission(value?: commands_v1_oracles_pb.OracleDataSubmission): void; - - getCommandCase(): SubmitTransactionRequest.CommandCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubmitTransactionRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubmitTransactionRequest): SubmitTransactionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubmitTransactionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubmitTransactionRequest; - static deserializeBinaryFromReader(message: SubmitTransactionRequest, reader: jspb.BinaryReader): SubmitTransactionRequest; + getPubKey(): string; + setPubKey(value: string): SubmitTransactionRequest; + getPropagate(): boolean; + setPropagate(value: boolean): SubmitTransactionRequest; + + hasOrderSubmission(): boolean; + clearOrderSubmission(): void; + getOrderSubmission(): commands_v1_commands_pb.OrderSubmission | undefined; + setOrderSubmission(value?: commands_v1_commands_pb.OrderSubmission): SubmitTransactionRequest; + + hasOrderCancellation(): boolean; + clearOrderCancellation(): void; + getOrderCancellation(): commands_v1_commands_pb.OrderCancellation | undefined; + setOrderCancellation(value?: commands_v1_commands_pb.OrderCancellation): SubmitTransactionRequest; + + hasOrderAmendment(): boolean; + clearOrderAmendment(): void; + getOrderAmendment(): commands_v1_commands_pb.OrderAmendment | undefined; + setOrderAmendment(value?: commands_v1_commands_pb.OrderAmendment): SubmitTransactionRequest; + + hasWithdrawSubmission(): boolean; + clearWithdrawSubmission(): void; + getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; + setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): SubmitTransactionRequest; + + hasProposalSubmission(): boolean; + clearProposalSubmission(): void; + getProposalSubmission(): commands_v1_commands_pb.ProposalSubmission | undefined; + setProposalSubmission(value?: commands_v1_commands_pb.ProposalSubmission): SubmitTransactionRequest; + + hasVoteSubmission(): boolean; + clearVoteSubmission(): void; + getVoteSubmission(): commands_v1_commands_pb.VoteSubmission | undefined; + setVoteSubmission(value?: commands_v1_commands_pb.VoteSubmission): SubmitTransactionRequest; + + hasLiquidityProvisionSubmission(): boolean; + clearLiquidityProvisionSubmission(): void; + getLiquidityProvisionSubmission(): commands_v1_commands_pb.LiquidityProvisionSubmission | undefined; + setLiquidityProvisionSubmission(value?: commands_v1_commands_pb.LiquidityProvisionSubmission): SubmitTransactionRequest; + + hasDelegateSubmission(): boolean; + clearDelegateSubmission(): void; + getDelegateSubmission(): commands_v1_commands_pb.DelegateSubmission | undefined; + setDelegateSubmission(value?: commands_v1_commands_pb.DelegateSubmission): SubmitTransactionRequest; + + hasUndelegateSubmission(): boolean; + clearUndelegateSubmission(): void; + getUndelegateSubmission(): commands_v1_commands_pb.UndelegateSubmission | undefined; + setUndelegateSubmission(value?: commands_v1_commands_pb.UndelegateSubmission): SubmitTransactionRequest; + + hasNodeRegistration(): boolean; + clearNodeRegistration(): void; + getNodeRegistration(): commands_v1_validator_commands_pb.NodeRegistration | undefined; + setNodeRegistration(value?: commands_v1_validator_commands_pb.NodeRegistration): SubmitTransactionRequest; + + hasNodeVote(): boolean; + clearNodeVote(): void; + getNodeVote(): commands_v1_validator_commands_pb.NodeVote | undefined; + setNodeVote(value?: commands_v1_validator_commands_pb.NodeVote): SubmitTransactionRequest; + + hasNodeSignature(): boolean; + clearNodeSignature(): void; + getNodeSignature(): commands_v1_validator_commands_pb.NodeSignature | undefined; + setNodeSignature(value?: commands_v1_validator_commands_pb.NodeSignature): SubmitTransactionRequest; + + hasChainEvent(): boolean; + clearChainEvent(): void; + getChainEvent(): commands_v1_validator_commands_pb.ChainEvent | undefined; + setChainEvent(value?: commands_v1_validator_commands_pb.ChainEvent): SubmitTransactionRequest; + + hasOracleDataSubmission(): boolean; + clearOracleDataSubmission(): void; + getOracleDataSubmission(): commands_v1_oracles_pb.OracleDataSubmission | undefined; + setOracleDataSubmission(value?: commands_v1_oracles_pb.OracleDataSubmission): SubmitTransactionRequest; + + getCommandCase(): SubmitTransactionRequest.CommandCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubmitTransactionRequest.AsObject; + static toObject(includeInstance: boolean, msg: SubmitTransactionRequest): SubmitTransactionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubmitTransactionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubmitTransactionRequest; + static deserializeBinaryFromReader(message: SubmitTransactionRequest, reader: jspb.BinaryReader): SubmitTransactionRequest; } export namespace SubmitTransactionRequest { - export type AsObject = { - pubKey: string, - propagate: boolean, - orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, - orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, - orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, - withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, - proposalSubmission?: commands_v1_commands_pb.ProposalSubmission.AsObject, - voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, - liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, - delegateSubmission?: commands_v1_commands_pb.DelegateSubmission.AsObject, - undelegateSubmission?: commands_v1_commands_pb.UndelegateSubmission.AsObject, - nodeRegistration?: commands_v1_validator_commands_pb.NodeRegistration.AsObject, - nodeVote?: commands_v1_validator_commands_pb.NodeVote.AsObject, - nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, - chainEvent?: commands_v1_validator_commands_pb.ChainEvent.AsObject, - oracleDataSubmission?: commands_v1_oracles_pb.OracleDataSubmission.AsObject, - } - - export enum CommandCase { - COMMAND_NOT_SET = 0, - ORDER_SUBMISSION = 1001, - ORDER_CANCELLATION = 1002, - ORDER_AMENDMENT = 1003, - WITHDRAW_SUBMISSION = 1004, - PROPOSAL_SUBMISSION = 1005, - VOTE_SUBMISSION = 1006, - LIQUIDITY_PROVISION_SUBMISSION = 1007, - DELEGATE_SUBMISSION = 1008, - UNDELEGATE_SUBMISSION = 1009, - NODE_REGISTRATION = 2001, - NODE_VOTE = 2002, - NODE_SIGNATURE = 2003, - CHAIN_EVENT = 2004, - ORACLE_DATA_SUBMISSION = 3001, - } -} + export type AsObject = { + pubKey: string, + propagate: boolean, + orderSubmission?: commands_v1_commands_pb.OrderSubmission.AsObject, + orderCancellation?: commands_v1_commands_pb.OrderCancellation.AsObject, + orderAmendment?: commands_v1_commands_pb.OrderAmendment.AsObject, + withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, + proposalSubmission?: commands_v1_commands_pb.ProposalSubmission.AsObject, + voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, + liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, + delegateSubmission?: commands_v1_commands_pb.DelegateSubmission.AsObject, + undelegateSubmission?: commands_v1_commands_pb.UndelegateSubmission.AsObject, + nodeRegistration?: commands_v1_validator_commands_pb.NodeRegistration.AsObject, + nodeVote?: commands_v1_validator_commands_pb.NodeVote.AsObject, + nodeSignature?: commands_v1_validator_commands_pb.NodeSignature.AsObject, + chainEvent?: commands_v1_validator_commands_pb.ChainEvent.AsObject, + oracleDataSubmission?: commands_v1_oracles_pb.OracleDataSubmission.AsObject, + } + + export enum CommandCase { + COMMAND_NOT_SET = 0, + ORDER_SUBMISSION = 1001, + ORDER_CANCELLATION = 1002, + ORDER_AMENDMENT = 1003, + WITHDRAW_SUBMISSION = 1004, + PROPOSAL_SUBMISSION = 1005, + VOTE_SUBMISSION = 1006, + LIQUIDITY_PROVISION_SUBMISSION = 1007, + DELEGATE_SUBMISSION = 1008, + UNDELEGATE_SUBMISSION = 1009, + NODE_REGISTRATION = 2001, + NODE_VOTE = 2002, + NODE_SIGNATURE = 2003, + CHAIN_EVENT = 2004, + ORACLE_DATA_SUBMISSION = 3001, + } +} diff --git a/grpc/clients/js/generated/wallet/v1/wallet_pb_service.d.ts b/grpc/clients/js/generated/wallet/v1/wallet_pb_service.d.ts deleted file mode 100644 index 16da5d78..00000000 --- a/grpc/clients/js/generated/wallet/v1/wallet_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.wallet.v1 -// file: wallet/v1/wallet.proto - diff --git a/grpc/clients/js/generated/wallet/v1/wallet_pb_service.js b/grpc/clients/js/generated/wallet/v1/wallet_pb_service.js deleted file mode 100644 index 16da5d78..00000000 --- a/grpc/clients/js/generated/wallet/v1/wallet_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: vega.wallet.v1 -// file: wallet/v1/wallet.proto - diff --git a/grpc/clients/js/index.d.ts b/grpc/clients/js/index.d.ts index f832277f..bdb3348a 100644 --- a/grpc/clients/js/index.d.ts +++ b/grpc/clients/js/index.d.ts @@ -2,49 +2,21 @@ export * as api_trading_grpc from "./generated/api/trading_grpc_pb"; export * as api_trading from "./generated/api/trading_pb"; -export * as api_trading_service from "./generated/api/trading_pb_service"; -export * as assets_grpc from "./generated/assets_grpc_pb"; export * as assets from "./generated/assets_pb"; -export * as assets_service from "./generated/assets_pb_service"; -export * as chain_events_grpc from "./generated/chain_events_grpc_pb"; export * as chain_events from "./generated/chain_events_pb"; -export * as chain_events_service from "./generated/chain_events_pb_service"; -export * as commands_v1_commands_grpc from "./generated/commands/v1/commands_grpc_pb"; export * as commands_v1_commands from "./generated/commands/v1/commands_pb"; -export * as commands_v1_commands_service from "./generated/commands/v1/commands_pb_service"; -export * as commands_v1_oracles_grpc from "./generated/commands/v1/oracles_grpc_pb"; export * as commands_v1_oracles from "./generated/commands/v1/oracles_pb"; -export * as commands_v1_oracles_service from "./generated/commands/v1/oracles_pb_service"; -export * as commands_v1_transaction_grpc from "./generated/commands/v1/transaction_grpc_pb"; export * as commands_v1_transaction from "./generated/commands/v1/transaction_pb"; -export * as commands_v1_transaction_service from "./generated/commands/v1/transaction_pb_service"; -export * as commands_v1_validator_commands_grpc from "./generated/commands/v1/validator_commands_grpc_pb"; export * as commands_v1_validator_commands from "./generated/commands/v1/validator_commands_pb"; -export * as commands_v1_validator_commands_service from "./generated/commands/v1/validator_commands_pb_service"; -export * as events_v1_events_grpc from "./generated/events/v1/events_grpc_pb"; +export * as coreapi_v1_coreapi_grpc from "./generated/coreapi/v1/coreapi_grpc_pb"; +export * as coreapi_v1_coreapi from "./generated/coreapi/v1/coreapi_pb"; export * as events_v1_events from "./generated/events/v1/events_pb"; -export * as events_v1_events_service from "./generated/events/v1/events_pb_service"; -export * as github_com_mwitkow_go_proto_validators_validator_grpc from "./generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb"; export * as github_com_mwitkow_go_proto_validators_validator from "./generated/github.com/mwitkow/go-proto-validators/validator_pb"; -export * as github_com_mwitkow_go_proto_validators_validator_service from "./generated/github.com/mwitkow/go-proto-validators/validator_pb_service"; -export * as governance_grpc from "./generated/governance_grpc_pb"; export * as governance from "./generated/governance_pb"; -export * as governance_service from "./generated/governance_pb_service"; -export * as markets_grpc from "./generated/markets_grpc_pb"; export * as markets from "./generated/markets_pb"; -export * as markets_service from "./generated/markets_pb_service"; -export * as oracles_v1_data_grpc from "./generated/oracles/v1/data_grpc_pb"; export * as oracles_v1_data from "./generated/oracles/v1/data_pb"; -export * as oracles_v1_data_service from "./generated/oracles/v1/data_pb_service"; -export * as oracles_v1_spec_grpc from "./generated/oracles/v1/spec_grpc_pb"; export * as oracles_v1_spec from "./generated/oracles/v1/spec_pb"; -export * as oracles_v1_spec_service from "./generated/oracles/v1/spec_pb_service"; -export * as tm_replay_grpc from "./generated/tm/replay_grpc_pb"; +export * as snapshot_v1_snapshot from "./generated/snapshot/v1/snapshot_pb"; export * as tm_replay from "./generated/tm/replay_pb"; -export * as tm_replay_service from "./generated/tm/replay_pb_service"; -export * as vega_grpc from "./generated/vega_grpc_pb"; export * as vega from "./generated/vega_pb"; -export * as vega_service from "./generated/vega_pb_service"; -export * as wallet_v1_wallet_grpc from "./generated/wallet/v1/wallet_grpc_pb"; export * as wallet_v1_wallet from "./generated/wallet/v1/wallet_pb"; -export * as wallet_v1_wallet_service from "./generated/wallet/v1/wallet_pb_service"; diff --git a/grpc/clients/js/index.js b/grpc/clients/js/index.js index eb767c7b..42399dea 100644 --- a/grpc/clients/js/index.js +++ b/grpc/clients/js/index.js @@ -1,63 +1,111 @@ // GENERATED CODE -- DO NOT EDIT! +var api_trading_grpc = require('./generated/api/trading_grpc_pb.js') var api_trading = require('./generated/api/trading_pb.js') +var assets_grpc = require('./generated/assets_grpc_pb.js') var assets = require('./generated/assets_pb.js') +var chain_events_grpc = require('./generated/chain_events_grpc_pb.js') var chain_events = require('./generated/chain_events_pb.js') +var commands_v1_commands_grpc = require('./generated/commands/v1/commands_grpc_pb.js') var commands_v1_commands = require('./generated/commands/v1/commands_pb.js') +var commands_v1_oracles_grpc = require('./generated/commands/v1/oracles_grpc_pb.js') var commands_v1_oracles = require('./generated/commands/v1/oracles_pb.js') +var commands_v1_transaction_grpc = require('./generated/commands/v1/transaction_grpc_pb.js') var commands_v1_transaction = require('./generated/commands/v1/transaction_pb.js') +var commands_v1_validator_commands_grpc = require('./generated/commands/v1/validator_commands_grpc_pb.js') var commands_v1_validator_commands = require('./generated/commands/v1/validator_commands_pb.js') +var coreapi_v1_coreapi_grpc = require('./generated/coreapi/v1/coreapi_grpc_pb.js') +var coreapi_v1_coreapi = require('./generated/coreapi/v1/coreapi_pb.js') +var events_v1_events_grpc = require('./generated/events/v1/events_grpc_pb.js') var events_v1_events = require('./generated/events/v1/events_pb.js') +var github_com_mwitkow_go_proto_validators_validator_grpc = require('./generated/github.com/mwitkow/go-proto-validators/validator_grpc_pb.js') var github_com_mwitkow_go_proto_validators_validator = require('./generated/github.com/mwitkow/go-proto-validators/validator_pb.js') +var governance_grpc = require('./generated/governance_grpc_pb.js') var governance = require('./generated/governance_pb.js') +var markets_grpc = require('./generated/markets_grpc_pb.js') var markets = require('./generated/markets_pb.js') +var oracles_v1_data_grpc = require('./generated/oracles/v1/data_grpc_pb.js') var oracles_v1_data = require('./generated/oracles/v1/data_pb.js') +var oracles_v1_spec_grpc = require('./generated/oracles/v1/spec_grpc_pb.js') var oracles_v1_spec = require('./generated/oracles/v1/spec_pb.js') +var snapshot_v1_snapshot_grpc = require('./generated/snapshot/v1/snapshot_grpc_pb.js') +var snapshot_v1_snapshot = require('./generated/snapshot/v1/snapshot_pb.js') +var tm_replay_grpc = require('./generated/tm/replay_grpc_pb.js') var tm_replay = require('./generated/tm/replay_pb.js') +var vega_grpc = require('./generated/vega_grpc_pb.js') var vega = require('./generated/vega_pb.js') +var wallet_v1_wallet_grpc = require('./generated/wallet/v1/wallet_grpc_pb.js') var wallet_v1_wallet = require('./generated/wallet/v1/wallet_pb.js') module.exports = { api: { - trading: api_trading + trading: api_trading, + trading_grpc: api_trading_grpc }, assets: assets, + assets_grpc: assets_grpc, chain_events: chain_events, + chain_events_grpc: chain_events_grpc, commands: { v1: { commands: commands_v1_commands, + commands_grpc: commands_v1_commands_grpc, oracles: commands_v1_oracles, + oracles_grpc: commands_v1_oracles_grpc, transaction: commands_v1_transaction, - validator_commands: commands_v1_validator_commands + transaction_grpc: commands_v1_transaction_grpc, + validator_commands: commands_v1_validator_commands, + validator_commands_grpc: commands_v1_validator_commands_grpc + } + }, + coreapi: { + v1: { + coreapi: coreapi_v1_coreapi, + coreapi_grpc: coreapi_v1_coreapi_grpc } }, events: { v1: { - events: events_v1_events + events: events_v1_events, + events_grpc: events_v1_events_grpc } }, github_com: { mwitkow: { go_proto_validators: { - validator: github_com_mwitkow_go_proto_validators_validator + validator: github_com_mwitkow_go_proto_validators_validator, + validator_grpc: github_com_mwitkow_go_proto_validators_validator_grpc } } }, governance: governance, + governance_grpc: governance_grpc, markets: markets, + markets_grpc: markets_grpc, oracles: { v1: { data: oracles_v1_data, - spec: oracles_v1_spec + data_grpc: oracles_v1_data_grpc, + spec: oracles_v1_spec, + spec_grpc: oracles_v1_spec_grpc + } + }, + snapshot: { + v1: { + snapshot: snapshot_v1_snapshot, + snapshot_grpc: snapshot_v1_snapshot_grpc } }, tm: { - replay: tm_replay + replay: tm_replay, + replay_grpc: tm_replay_grpc }, vega: vega, + vega_grpc: vega_grpc, wallet: { v1: { - wallet: wallet_v1_wallet + wallet: wallet_v1_wallet, + wallet_grpc: wallet_v1_wallet_grpc } } } diff --git a/grpc/clients/python/vegaapiclient/generated/api/trading_pb2.py b/grpc/clients/python/vegaapiclient/generated/api/trading_pb2.py index 9f9747ca..07f740cd 100644 --- a/grpc/clients/python/vegaapiclient/generated/api/trading_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/api/trading_pb2.py @@ -30,47 +30,12 @@ syntax='proto3', serialized_options=b'\n\030io.vegaprotocol.vega.apiZ#code.vegaprotocol.io/vega/proto/api', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x11\x61pi/trading.proto\x12\x06\x61pi.v1\x1a\nvega.proto\x1a\rmarkets.proto\x1a\x10governance.proto\x1a\x0c\x61ssets.proto\x1a\x16\x65vents/v1/events.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a\x1d\x63ommands/v1/transaction.proto\x1a$commands/v1/validator_commands.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\x83\x01\n\x1aPropagateChainEventRequest\x12.\n\x03\x65vt\x18\x01 \x01(\x0b\x32\x1c.vega.commands.v1.ChainEventR\x03\x65vt\x12\x17\n\x07pub_key\x18\x02 \x01(\tR\x06pubKey\x12\x1c\n\tsignature\x18\x03 \x01(\x0cR\tsignature\"7\n\x1bPropagateChainEventResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\"\xc7\x01\n\x18SubmitTransactionRequest\x12\"\n\x02tx\x18\x01 \x01(\x0b\x32\x12.vega.SignedBundleR\x02tx\x12\x39\n\x04type\x18\x02 \x01(\x0e\x32%.api.v1.SubmitTransactionRequest.TypeR\x04type\"L\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_ASYNC\x10\x01\x12\r\n\tTYPE_SYNC\x10\x02\x12\x0f\n\x0bTYPE_COMMIT\x10\x03\"5\n\x19SubmitTransactionResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\"\xd6\x01\n\x1aSubmitTransactionV2Request\x12-\n\x02tx\x18\x01 \x01(\x0b\x32\x1d.vega.commands.v1.TransactionR\x02tx\x12;\n\x04type\x18\x02 \x01(\x0e\x32\'.api.v1.SubmitTransactionV2Request.TypeR\x04type\"L\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_ASYNC\x10\x01\x12\r\n\tTYPE_SYNC\x10\x02\x12\x0f\n\x0bTYPE_COMMIT\x10\x03\"7\n\x1bSubmitTransactionV2Response\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\"Z\n\x16PrepareWithdrawRequest\x12@\n\x08withdraw\x18\x01 \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionR\x08withdraw\"-\n\x17PrepareWithdrawResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\"M\n\x1aPrepareSubmitOrderResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\x12\x1b\n\tsubmit_id\x18\x02 \x01(\tR\x08submitId\"0\n\x1aPrepareCancelOrderResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\"/\n\x19PrepareAmendOrderResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\"^\n\x19PrepareSubmitOrderRequest\x12\x41\n\nsubmission\x18\x01 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionR\nsubmission\"d\n\x19PrepareCancelOrderRequest\x12G\n\x0c\x63\x61ncellation\x18\x01 \x01(\x0b\x32#.vega.commands.v1.OrderCancellationR\x0c\x63\x61ncellation\"Z\n\x18PrepareAmendOrderRequest\x12>\n\tamendment\x18\x01 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentR\tamendment\"\x0f\n\rAssetsRequest\"5\n\x0e\x41ssetsResponse\x12#\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x0b.vega.AssetR\x06\x61ssets\"*\n\x10\x41ssetByIDRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\"6\n\x11\x41ssetByIDResponse\x12!\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x0b.vega.AssetR\x05\x61sset\";\n!GetNodeSignaturesAggregateRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\"e\n\"GetNodeSignaturesAggregateResponse\x12?\n\nsignatures\x18\x01 \x03(\x0b\x32\x1f.vega.commands.v1.NodeSignatureR\nsignatures\"C\n\x15OptionalProposalState\x12*\n\x05value\x18\x01 \x01(\x0e\x32\x14.vega.Proposal.StateR\x05value\"\\\n\x13GetProposalsRequest\x12\x45\n\x0fselect_in_state\x18\x01 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"@\n\x14GetProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"\x86\x01\n\x1aGetProposalsByPartyRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x45\n\x0fselect_in_state\x18\x02 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"G\n\x1bGetProposalsByPartyResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\";\n\x16GetVotesByPartyRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\";\n\x17GetVotesByPartyResponse\x12 \n\x05votes\x18\x01 \x03(\x0b\x32\n.vega.VoteR\x05votes\"e\n\x1cGetNewMarketProposalsRequest\x12\x45\n\x0fselect_in_state\x18\x01 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"I\n\x1dGetNewMarketProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"\x8d\x01\n\x1fGetUpdateMarketProposalsRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x45\n\x0fselect_in_state\x18\x02 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"L\n GetUpdateMarketProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"m\n$GetNetworkParametersProposalsRequest\x12\x45\n\x0fselect_in_state\x18\x01 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"Q\n%GetNetworkParametersProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"d\n\x1bGetNewAssetProposalsRequest\x12\x45\n\x0fselect_in_state\x18\x01 \x01(\x0b\x32\x1d.api.v1.OptionalProposalStateR\rselectInState\"H\n\x1cGetNewAssetProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"A\n\x16GetProposalByIDRequest\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\"C\n\x17GetProposalByIDResponse\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"E\n\x1dGetProposalByReferenceRequest\x12$\n\treference\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\treference\"J\n\x1eGetProposalByReferenceResponse\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"\x1a\n\x18ObserveGovernanceRequest\"E\n\x19ObserveGovernanceResponse\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"A\n\x1cObservePartyProposalsRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\"I\n\x1dObservePartyProposalsResponse\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.vega.GovernanceDataR\x04\x64\x61ta\"F\n\x1bObserveProposalVotesRequest\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\">\n\x1cObserveProposalVotesResponse\x12\x1e\n\x04vote\x18\x01 \x01(\x0b\x32\n.vega.VoteR\x04vote\"=\n\x18ObservePartyVotesRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\";\n\x19ObservePartyVotesResponse\x12\x1e\n\x04vote\x18\x01 \x01(\x0b\x32\n.vega.VoteR\x04vote\"^\n\x1cMarginLevelsSubscribeRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"X\n\x1dMarginLevelsSubscribeResponse\x12\x37\n\rmargin_levels\x18\x01 \x01(\x0b\x32\x12.vega.MarginLevelsR\x0cmarginLevels\"U\n\x13MarginLevelsRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"O\n\x14MarginLevelsResponse\x12\x37\n\rmargin_levels\x18\x01 \x03(\x0b\x32\x12.vega.MarginLevelsR\x0cmarginLevels\":\n\x1bMarketsDataSubscribeRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"Q\n\x1cMarketsDataSubscribeResponse\x12\x31\n\x0bmarket_data\x18\x01 \x01(\x0b\x32\x10.vega.MarketDataR\nmarketData\"<\n\x15MarketDataByIDRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\"K\n\x16MarketDataByIDResponse\x12\x31\n\x0bmarket_data\x18\x01 \x01(\x0b\x32\x10.vega.MarketDataR\nmarketData\"\x14\n\x12MarketsDataRequest\"J\n\x13MarketsDataResponse\x12\x33\n\x0cmarkets_data\x18\x01 \x03(\x0b\x32\x10.vega.MarketDataR\x0bmarketsData\"7\n\x10LastTradeRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\"6\n\x11LastTradeResponse\x12!\n\x05trade\x18\x01 \x01(\x0b\x32\x0b.vega.TradeR\x05trade\"8\n\x11MarketByIDRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\":\n\x12MarketByIDResponse\x12$\n\x06market\x18\x01 \x01(\x0b\x32\x0c.vega.MarketR\x06market\"5\n\x10PartyByIDRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\"6\n\x11PartyByIDResponse\x12!\n\x05party\x18\x01 \x01(\x0b\x32\x0b.vega.PartyR\x05party\"\x10\n\x0ePartiesRequest\"8\n\x0fPartiesResponse\x12%\n\x07parties\x18\x01 \x03(\x0b\x32\x0b.vega.PartyR\x07parties\"\x82\x01\n\x14TradesByPartyRequest\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x32\n\npagination\x18\x03 \x01(\x0b\x32\x12.api.v1.PaginationR\npagination\"<\n\x15TradesByPartyResponse\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"1\n\x14TradesByOrderRequest\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\"<\n\x15TradesByOrderResponse\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"\x8f\x01\n\x18\x41\x63\x63ountsSubscribeRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05\x61sset\x18\x03 \x01(\tR\x05\x61sset\x12%\n\x04type\x18\x04 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\"D\n\x19\x41\x63\x63ountsSubscribeResponse\x12\'\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\r.vega.AccountR\x07\x61\x63\x63ount\"P\n\x16OrdersSubscribeRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\"P\n\x16TradesSubscribeRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\"j\n\x17\x43\x61ndlesSubscribeRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12*\n\x08interval\x18\x02 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"@\n\x18\x43\x61ndlesSubscribeResponse\x12$\n\x06\x63\x61ndle\x18\x01 \x01(\x0b\x32\x0c.vega.CandleR\x06\x63\x61ndle\"B\n\x1bMarketDepthSubscribeRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\"T\n\x1cMarketDepthSubscribeResponse\x12\x34\n\x0cmarket_depth\x18\x01 \x01(\x0b\x32\x11.vega.MarketDepthR\x0bmarketDepth\"I\n\"MarketDepthUpdatesSubscribeRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\"V\n#MarketDepthUpdatesSubscribeResponse\x12/\n\x06update\x18\x01 \x01(\x0b\x32\x17.vega.MarketDepthUpdateR\x06update\"S\n\x19PositionsSubscribeRequest\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"H\n\x1aPositionsSubscribeResponse\x12*\n\x08position\x18\x01 \x01(\x0b\x32\x0e.vega.PositionR\x08position\"p\n\x15OrdersByMarketRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x12.api.v1.PaginationR\npagination\"=\n\x16OrdersByMarketResponse\x12#\n\x06orders\x18\x01 \x03(\x0b\x32\x0b.vega.OrderR\x06orders\"m\n\x14OrdersByPartyRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x12.api.v1.PaginationR\npagination\"<\n\x15OrdersByPartyResponse\x12#\n\x06orders\x18\x01 \x03(\x0b\x32\x0b.vega.OrderR\x06orders\"c\n\x19OrderByMarketAndIDRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12!\n\x08order_id\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07orderId\"?\n\x1aOrderByMarketAndIDResponse\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"?\n\x17OrderByReferenceRequest\x12$\n\treference\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\treference\"=\n\x18OrderByReferenceResponse\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"\x10\n\x0eMarketsRequest\"9\n\x0fMarketsResponse\x12&\n\x07markets\x18\x01 \x03(\x0b\x32\x0c.vega.MarketR\x07markets\"\x92\x01\n\x0e\x43\x61ndlesRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12/\n\x0fsince_timestamp\x18\x02 \x01(\x03\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x0esinceTimestamp\x12*\n\x08interval\x18\x03 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"9\n\x0f\x43\x61ndlesResponse\x12&\n\x07\x63\x61ndles\x18\x01 \x03(\x0b\x32\x0c.vega.CandleR\x07\x63\x61ndles\"V\n\x12MarketDepthRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x1b\n\tmax_depth\x18\x02 \x01(\x04R\x08maxDepth\"\xd1\x01\n\x13MarketDepthResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12*\n\nlast_trade\x18\x04 \x01(\x0b\x32\x0b.vega.TradeR\tlastTrade\x12\'\n\x0fsequence_number\x18\x05 \x01(\x04R\x0esequenceNumber\"p\n\x15TradesByMarketRequest\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x12.api.v1.PaginationR\npagination\"=\n\x16TradesByMarketResponse\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"Y\n\x17PositionsByPartyRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"H\n\x18PositionsByPartyResponse\x12,\n\tpositions\x18\x01 \x03(\x0b\x32\x0e.vega.PositionR\tpositions\"\x14\n\x12GetVegaTimeRequest\"3\n\x13GetVegaTimeResponse\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"V\n\nPagination\x12\x12\n\x04skip\x18\x01 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x02 \x01(\x04R\x05limit\x12\x1e\n\ndescending\x18\x03 \x01(\x08R\ndescending\">\n\x17OrdersSubscribeResponse\x12#\n\x06orders\x18\x01 \x03(\x0b\x32\x0b.vega.OrderR\x06orders\">\n\x17TradesSubscribeResponse\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"#\n!TransferResponsesSubscribeRequest\"X\n\"TransferResponsesSubscribeResponse\x12\x32\n\x08response\x18\x01 \x01(\x0b\x32\x16.vega.TransferResponseR\x08response\"\x8b\x01\n\x14PartyAccountsRequest\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12%\n\x04type\x18\x03 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\"B\n\x15PartyAccountsResponse\x12)\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x08\x61\x63\x63ounts\"J\n\x15MarketAccountsRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\"C\n\x16MarketAccountsResponse\x12)\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x08\x61\x63\x63ounts\"8\n FeeInfrastructureAccountsRequest\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\"N\n!FeeInfrastructureAccountsResponse\x12)\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x08\x61\x63\x63ounts\"h\n PrepareProposalSubmissionRequest\x12\x44\n\nsubmission\x18\x01 \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionR\nsubmission\"}\n!PrepareProposalSubmissionResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\x12\x44\n\nsubmission\x18\x02 \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionR\nsubmission\"h\n\x1cPrepareVoteSubmissionRequest\x12H\n\nsubmission\x18\x01 \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionB\x06\xe2\xdf\x1f\x02 \x01R\nsubmission\"u\n\x1dPrepareVoteSubmissionResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\x12@\n\nsubmission\x18\x02 \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionR\nsubmission\"z\n PrepareLiquidityProvisionRequest\x12V\n\nsubmission\x18\x01 \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionB\x06\xe2\xdf\x1f\x02 \x01R\nsubmission\"7\n!PrepareLiquidityProvisionResponse\x12\x12\n\x04\x62lob\x18\x01 \x01(\x0cR\x04\x62lob\"O\n\x10OrderByIDRequest\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x07orderId\x12\x18\n\x07version\x18\x02 \x01(\x04R\x07version\"6\n\x11OrderByIDResponse\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"q\n\x18OrderVersionsByIDRequest\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x07orderId\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x12.api.v1.PaginationR\npagination\"@\n\x19OrderVersionsByIDResponse\x12#\n\x06orders\x18\x01 \x03(\x0b\x32\x0b.vega.OrderR\x06orders\"7\n\x12\x45stimateFeeRequest\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"2\n\x13\x45stimateFeeResponse\x12\x1b\n\x03\x66\x65\x65\x18\x02 \x01(\x0b\x32\t.vega.FeeR\x03\x66\x65\x65\":\n\x15\x45stimateMarginRequest\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"Q\n\x16\x45stimateMarginResponse\x12\x37\n\rmargin_levels\x18\x02 \x01(\x0b\x32\x12.vega.MarginLevelsR\x0cmarginLevels\"\xa1\x01\n\x16ObserveEventBusRequest\x12\x30\n\x04type\x18\x01 \x03(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1d\n\nbatch_size\x18\x04 \x01(\x03R\tbatchSize\"K\n\x17ObserveEventBusResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x18.vega.events.v1.BusEventR\x06\x65vents\"\x13\n\x11StatisticsRequest\"F\n\x12StatisticsResponse\x12\x30\n\nstatistics\x18\x01 \x01(\x0b\x32\x10.vega.StatisticsR\nstatistics\"7\n\x12WithdrawalsRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\"I\n\x13WithdrawalsResponse\x12\x32\n\x0bwithdrawals\x18\x01 \x03(\x0b\x32\x10.vega.WithdrawalR\x0bwithdrawals\"+\n\x11WithdrawalRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\"F\n\x12WithdrawalResponse\x12\x30\n\nwithdrawal\x18\x01 \x01(\x0b\x32\x10.vega.WithdrawalR\nwithdrawal\"M\n\x1e\x45RC20WithdrawalApprovalRequest\x12+\n\rwithdrawal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x0cwithdrawalId\"\xaa\x01\n\x1f\x45RC20WithdrawalApprovalResponse\x12!\n\x0c\x61sset_source\x18\x01 \x01(\tR\x0b\x61ssetSource\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\x12\x16\n\x06\x65xpiry\x18\x03 \x01(\x03R\x06\x65xpiry\x12\x14\n\x05nonce\x18\x04 \x01(\tR\x05nonce\x12\x1e\n\nsignatures\x18\x05 \x01(\tR\nsignatures\"4\n\x0f\x44\x65positsRequest\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\"=\n\x10\x44\x65positsResponse\x12)\n\x08\x64\x65posits\x18\x01 \x03(\x0b\x32\r.vega.DepositR\x08\x64\x65posits\"(\n\x0e\x44\x65positRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\":\n\x0f\x44\x65positResponse\x12\'\n\x07\x64\x65posit\x18\x01 \x01(\x0b\x32\r.vega.DepositR\x07\x64\x65posit\"\x1a\n\x18NetworkParametersRequest\"b\n\x19NetworkParametersResponse\x12\x45\n\x12network_parameters\x18\x01 \x03(\x0b\x32\x16.vega.NetworkParameterR\x11networkParameters\"J\n\x1aLiquidityProvisionsRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\x12\x14\n\x05party\x18\x02 \x01(\tR\x05party\"j\n\x1bLiquidityProvisionsResponse\x12K\n\x14liquidity_provisions\x18\x01 \x03(\x0b\x32\x18.vega.LiquidityProvisionR\x13liquidityProvisions\"+\n\x11OracleSpecRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\"M\n\x12OracleSpecResponse\x12\x37\n\x0boracle_spec\x18\x01 \x01(\x0b\x32\x16.oracles.v1.OracleSpecR\noracleSpec\"\x14\n\x12OracleSpecsRequest\"P\n\x13OracleSpecsResponse\x12\x39\n\x0coracle_specs\x18\x01 \x03(\x0b\x32\x16.oracles.v1.OracleSpecR\x0boracleSpecs\"1\n\x17OracleDataBySpecRequest\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x02id\"S\n\x18OracleDataBySpecResponse\x12\x37\n\x0boracle_data\x18\x01 \x03(\x0b\x32\x16.oracles.v1.OracleDataR\noracleData\"\x18\n\x16LastBlockHeightRequest\"1\n\x17LastBlockHeightResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height2\xdc\x07\n\x0eTradingService\x12[\n\x12PrepareSubmitOrder\x12!.api.v1.PrepareSubmitOrderRequest\x1a\".api.v1.PrepareSubmitOrderResponse\x12[\n\x12PrepareCancelOrder\x12!.api.v1.PrepareCancelOrderRequest\x1a\".api.v1.PrepareCancelOrderResponse\x12X\n\x11PrepareAmendOrder\x12 .api.v1.PrepareAmendOrderRequest\x1a!.api.v1.PrepareAmendOrderResponse\x12R\n\x0fPrepareWithdraw\x12\x1e.api.v1.PrepareWithdrawRequest\x1a\x1f.api.v1.PrepareWithdrawResponse\x12X\n\x11SubmitTransaction\x12 .api.v1.SubmitTransactionRequest\x1a!.api.v1.SubmitTransactionResponse\x12^\n\x13SubmitTransactionV2\x12\".api.v1.SubmitTransactionV2Request\x1a#.api.v1.SubmitTransactionV2Response\x12p\n\x19PrepareProposalSubmission\x12(.api.v1.PrepareProposalSubmissionRequest\x1a).api.v1.PrepareProposalSubmissionResponse\x12\x64\n\x15PrepareVoteSubmission\x12$.api.v1.PrepareVoteSubmissionRequest\x1a%.api.v1.PrepareVoteSubmissionResponse\x12^\n\x13PropagateChainEvent\x12\".api.v1.PropagateChainEventRequest\x1a#.api.v1.PropagateChainEventResponse\x12p\n\x19PrepareLiquidityProvision\x12(.api.v1.PrepareLiquidityProvisionRequest\x1a).api.v1.PrepareLiquidityProvisionResponse2\xaf+\n\x12TradingDataService\x12O\n\x0eMarketAccounts\x12\x1d.api.v1.MarketAccountsRequest\x1a\x1e.api.v1.MarketAccountsResponse\x12L\n\rPartyAccounts\x12\x1c.api.v1.PartyAccountsRequest\x1a\x1d.api.v1.PartyAccountsResponse\x12p\n\x19\x46\x65\x65InfrastructureAccounts\x12(.api.v1.FeeInfrastructureAccountsRequest\x1a).api.v1.FeeInfrastructureAccountsResponse\x12:\n\x07\x43\x61ndles\x12\x16.api.v1.CandlesRequest\x1a\x17.api.v1.CandlesResponse\x12O\n\x0eMarketDataByID\x12\x1d.api.v1.MarketDataByIDRequest\x1a\x1e.api.v1.MarketDataByIDResponse\x12\x46\n\x0bMarketsData\x12\x1a.api.v1.MarketsDataRequest\x1a\x1b.api.v1.MarketsDataResponse\x12\x43\n\nMarketByID\x12\x19.api.v1.MarketByIDRequest\x1a\x1a.api.v1.MarketByIDResponse\x12\x46\n\x0bMarketDepth\x12\x1a.api.v1.MarketDepthRequest\x1a\x1b.api.v1.MarketDepthResponse\x12:\n\x07Markets\x12\x16.api.v1.MarketsRequest\x1a\x17.api.v1.MarketsResponse\x12[\n\x12OrderByMarketAndID\x12!.api.v1.OrderByMarketAndIDRequest\x1a\".api.v1.OrderByMarketAndIDResponse\x12U\n\x10OrderByReference\x12\x1f.api.v1.OrderByReferenceRequest\x1a .api.v1.OrderByReferenceResponse\x12O\n\x0eOrdersByMarket\x12\x1d.api.v1.OrdersByMarketRequest\x1a\x1e.api.v1.OrdersByMarketResponse\x12L\n\rOrdersByParty\x12\x1c.api.v1.OrdersByPartyRequest\x1a\x1d.api.v1.OrdersByPartyResponse\x12@\n\tOrderByID\x12\x18.api.v1.OrderByIDRequest\x1a\x19.api.v1.OrderByIDResponse\x12X\n\x11OrderVersionsByID\x12 .api.v1.OrderVersionsByIDRequest\x1a!.api.v1.OrderVersionsByIDResponse\x12I\n\x0cMarginLevels\x12\x1b.api.v1.MarginLevelsRequest\x1a\x1c.api.v1.MarginLevelsResponse\x12:\n\x07Parties\x12\x16.api.v1.PartiesRequest\x1a\x17.api.v1.PartiesResponse\x12@\n\tPartyByID\x12\x18.api.v1.PartyByIDRequest\x1a\x19.api.v1.PartyByIDResponse\x12U\n\x10PositionsByParty\x12\x1f.api.v1.PositionsByPartyRequest\x1a .api.v1.PositionsByPartyResponse\x12@\n\tLastTrade\x12\x18.api.v1.LastTradeRequest\x1a\x19.api.v1.LastTradeResponse\x12O\n\x0eTradesByMarket\x12\x1d.api.v1.TradesByMarketRequest\x1a\x1e.api.v1.TradesByMarketResponse\x12L\n\rTradesByOrder\x12\x1c.api.v1.TradesByOrderRequest\x1a\x1d.api.v1.TradesByOrderResponse\x12L\n\rTradesByParty\x12\x1c.api.v1.TradesByPartyRequest\x1a\x1d.api.v1.TradesByPartyResponse\x12I\n\x0cGetProposals\x12\x1b.api.v1.GetProposalsRequest\x1a\x1c.api.v1.GetProposalsResponse\x12^\n\x13GetProposalsByParty\x12\".api.v1.GetProposalsByPartyRequest\x1a#.api.v1.GetProposalsByPartyResponse\x12R\n\x0fGetVotesByParty\x12\x1e.api.v1.GetVotesByPartyRequest\x1a\x1f.api.v1.GetVotesByPartyResponse\x12\x64\n\x15GetNewMarketProposals\x12$.api.v1.GetNewMarketProposalsRequest\x1a%.api.v1.GetNewMarketProposalsResponse\x12m\n\x18GetUpdateMarketProposals\x12\'.api.v1.GetUpdateMarketProposalsRequest\x1a(.api.v1.GetUpdateMarketProposalsResponse\x12|\n\x1dGetNetworkParametersProposals\x12,.api.v1.GetNetworkParametersProposalsRequest\x1a-.api.v1.GetNetworkParametersProposalsResponse\x12\x61\n\x14GetNewAssetProposals\x12#.api.v1.GetNewAssetProposalsRequest\x1a$.api.v1.GetNewAssetProposalsResponse\x12R\n\x0fGetProposalByID\x12\x1e.api.v1.GetProposalByIDRequest\x1a\x1f.api.v1.GetProposalByIDResponse\x12g\n\x16GetProposalByReference\x12%.api.v1.GetProposalByReferenceRequest\x1a&.api.v1.GetProposalByReferenceResponse\x12Z\n\x11ObserveGovernance\x12 .api.v1.ObserveGovernanceRequest\x1a!.api.v1.ObserveGovernanceResponse0\x01\x12\x66\n\x15ObservePartyProposals\x12$.api.v1.ObservePartyProposalsRequest\x1a%.api.v1.ObservePartyProposalsResponse0\x01\x12Z\n\x11ObservePartyVotes\x12 .api.v1.ObservePartyVotesRequest\x1a!.api.v1.ObservePartyVotesResponse0\x01\x12\x63\n\x14ObserveProposalVotes\x12#.api.v1.ObserveProposalVotesRequest\x1a$.api.v1.ObserveProposalVotesResponse0\x01\x12V\n\x0fObserveEventBus\x12\x1e.api.v1.ObserveEventBusRequest\x1a\x1f.api.v1.ObserveEventBusResponse(\x01\x30\x01\x12\x43\n\nStatistics\x12\x19.api.v1.StatisticsRequest\x1a\x1a.api.v1.StatisticsResponse\x12R\n\x0fLastBlockHeight\x12\x1e.api.v1.LastBlockHeightRequest\x1a\x1f.api.v1.LastBlockHeightResponse\x12\x46\n\x0bGetVegaTime\x12\x1a.api.v1.GetVegaTimeRequest\x1a\x1b.api.v1.GetVegaTimeResponse\x12Z\n\x11\x41\x63\x63ountsSubscribe\x12 .api.v1.AccountsSubscribeRequest\x1a!.api.v1.AccountsSubscribeResponse0\x01\x12W\n\x10\x43\x61ndlesSubscribe\x12\x1f.api.v1.CandlesSubscribeRequest\x1a .api.v1.CandlesSubscribeResponse0\x01\x12\x66\n\x15MarginLevelsSubscribe\x12$.api.v1.MarginLevelsSubscribeRequest\x1a%.api.v1.MarginLevelsSubscribeResponse0\x01\x12\x63\n\x14MarketDepthSubscribe\x12#.api.v1.MarketDepthSubscribeRequest\x1a$.api.v1.MarketDepthSubscribeResponse0\x01\x12x\n\x1bMarketDepthUpdatesSubscribe\x12*.api.v1.MarketDepthUpdatesSubscribeRequest\x1a+.api.v1.MarketDepthUpdatesSubscribeResponse0\x01\x12\x63\n\x14MarketsDataSubscribe\x12#.api.v1.MarketsDataSubscribeRequest\x1a$.api.v1.MarketsDataSubscribeResponse0\x01\x12T\n\x0fOrdersSubscribe\x12\x1e.api.v1.OrdersSubscribeRequest\x1a\x1f.api.v1.OrdersSubscribeResponse0\x01\x12]\n\x12PositionsSubscribe\x12!.api.v1.PositionsSubscribeRequest\x1a\".api.v1.PositionsSubscribeResponse0\x01\x12T\n\x0fTradesSubscribe\x12\x1e.api.v1.TradesSubscribeRequest\x1a\x1f.api.v1.TradesSubscribeResponse0\x01\x12u\n\x1aTransferResponsesSubscribe\x12).api.v1.TransferResponsesSubscribeRequest\x1a*.api.v1.TransferResponsesSubscribeResponse0\x01\x12s\n\x1aGetNodeSignaturesAggregate\x12).api.v1.GetNodeSignaturesAggregateRequest\x1a*.api.v1.GetNodeSignaturesAggregateResponse\x12@\n\tAssetByID\x12\x18.api.v1.AssetByIDRequest\x1a\x19.api.v1.AssetByIDResponse\x12\x37\n\x06\x41ssets\x12\x15.api.v1.AssetsRequest\x1a\x16.api.v1.AssetsResponse\x12\x46\n\x0b\x45stimateFee\x12\x1a.api.v1.EstimateFeeRequest\x1a\x1b.api.v1.EstimateFeeResponse\x12O\n\x0e\x45stimateMargin\x12\x1d.api.v1.EstimateMarginRequest\x1a\x1e.api.v1.EstimateMarginResponse\x12j\n\x17\x45RC20WithdrawalApproval\x12&.api.v1.ERC20WithdrawalApprovalRequest\x1a\'.api.v1.ERC20WithdrawalApprovalResponse\x12\x43\n\nWithdrawal\x12\x19.api.v1.WithdrawalRequest\x1a\x1a.api.v1.WithdrawalResponse\x12\x46\n\x0bWithdrawals\x12\x1a.api.v1.WithdrawalsRequest\x1a\x1b.api.v1.WithdrawalsResponse\x12:\n\x07\x44\x65posit\x12\x16.api.v1.DepositRequest\x1a\x17.api.v1.DepositResponse\x12=\n\x08\x44\x65posits\x12\x17.api.v1.DepositsRequest\x1a\x18.api.v1.DepositsResponse\x12X\n\x11NetworkParameters\x12 .api.v1.NetworkParametersRequest\x1a!.api.v1.NetworkParametersResponse\x12^\n\x13LiquidityProvisions\x12\".api.v1.LiquidityProvisionsRequest\x1a#.api.v1.LiquidityProvisionsResponse\x12\x43\n\nOracleSpec\x12\x19.api.v1.OracleSpecRequest\x1a\x1a.api.v1.OracleSpecResponse\x12\x46\n\x0bOracleSpecs\x12\x1a.api.v1.OracleSpecsRequest\x1a\x1b.api.v1.OracleSpecsResponse\x12U\n\x10OracleDataBySpec\x12\x1f.api.v1.OracleDataBySpecRequest\x1a .api.v1.OracleDataBySpecResponseB?\n\x18io.vegaprotocol.vega.apiZ#code.vegaprotocol.io/vega/proto/apib\x06proto3' + serialized_pb=b'\n\x11\x61pi/trading.proto\x12\x06\x61pi.v1\x1a\nvega.proto\x1a\rmarkets.proto\x1a\x10governance.proto\x1a\x0c\x61ssets.proto\x1a\x16\x65vents/v1/events.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a\x1d\x63ommands/v1/transaction.proto\x1a$commands/v1/validator_commands.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"i\n\x1aPropagateChainEventRequest\x12\x14\n\x05\x65vent\x18\x01 \x01(\x0cR\x05\x65vent\x12\x17\n\x07pub_key\x18\x02 \x01(\tR\x06pubKey\x12\x1c\n\tsignature\x18\x03 \x01(\x0cR\tsignature\"7\n\x1bPropagateChainEventResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\"\xd6\x01\n\x1aSubmitTransactionV2Request\x12-\n\x02tx\x18\x01 \x01(\x0b\x32\x1d.vega.commands.v1.TransactionR\x02tx\x12;\n\x04type\x18\x02 \x01(\x0e\x32\'.api.v1.SubmitTransactionV2Request.TypeR\x04type\"L\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_ASYNC\x10\x01\x12\r\n\tTYPE_SYNC\x10\x02\x12\x0f\n\x0bTYPE_COMMIT\x10\x03\"7\n\x1bSubmitTransactionV2Response\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\"\x14\n\x12GetVegaTimeRequest\"3\n\x13GetVegaTimeResponse\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"\xa1\x01\n\x16ObserveEventBusRequest\x12\x30\n\x04type\x18\x01 \x03(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1d\n\nbatch_size\x18\x04 \x01(\x03R\tbatchSize\"K\n\x17ObserveEventBusResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x18.vega.events.v1.BusEventR\x06\x65vents\"\x13\n\x11StatisticsRequest\"H\n\x12StatisticsResponse\x12\x32\n\nstatistics\x18\x01 \x01(\x0b\x32\x12.api.v1.StatisticsR\nstatistics\"\xe9\n\n\nStatistics\x12!\n\x0c\x62lock_height\x18\x01 \x01(\x04R\x0b\x62lockHeight\x12%\n\x0e\x62\x61\x63klog_length\x18\x02 \x01(\x04R\rbacklogLength\x12\x1f\n\x0btotal_peers\x18\x03 \x01(\x04R\ntotalPeers\x12!\n\x0cgenesis_time\x18\x04 \x01(\tR\x0bgenesisTime\x12!\n\x0c\x63urrent_time\x18\x05 \x01(\tR\x0b\x63urrentTime\x12\x1b\n\tvega_time\x18\x06 \x01(\tR\x08vegaTime\x12)\n\x06status\x18\x07 \x01(\x0e\x32\x11.vega.ChainStatusR\x06status\x12 \n\x0ctx_per_block\x18\x08 \x01(\x04R\ntxPerBlock\x12(\n\x10\x61verage_tx_bytes\x18\t \x01(\x04R\x0e\x61verageTxBytes\x12\x37\n\x18\x61verage_orders_per_block\x18\n \x01(\x04R\x15\x61verageOrdersPerBlock\x12*\n\x11trades_per_second\x18\x0b \x01(\x04R\x0ftradesPerSecond\x12*\n\x11orders_per_second\x18\x0c \x01(\x04R\x0fordersPerSecond\x12#\n\rtotal_markets\x18\r \x01(\x04R\x0ctotalMarkets\x12*\n\x11total_amend_order\x18\x10 \x01(\x04R\x0ftotalAmendOrder\x12,\n\x12total_cancel_order\x18\x11 \x01(\x04R\x10totalCancelOrder\x12,\n\x12total_create_order\x18\x12 \x01(\x04R\x10totalCreateOrder\x12!\n\x0ctotal_orders\x18\x13 \x01(\x04R\x0btotalOrders\x12!\n\x0ctotal_trades\x18\x14 \x01(\x04R\x0btotalTrades\x12/\n\x13order_subscriptions\x18\x15 \x01(\rR\x12orderSubscriptions\x12/\n\x13trade_subscriptions\x18\x16 \x01(\rR\x12tradeSubscriptions\x12\x31\n\x14\x63\x61ndle_subscriptions\x18\x17 \x01(\rR\x13\x63\x61ndleSubscriptions\x12<\n\x1amarket_depth_subscriptions\x18\x18 \x01(\rR\x18marketDepthSubscriptions\x12\x37\n\x17positions_subscriptions\x18\x19 \x01(\rR\x16positionsSubscriptions\x12\x33\n\x15\x61\x63\x63ount_subscriptions\x18\x1a \x01(\rR\x14\x61\x63\x63ountSubscriptions\x12:\n\x19market_data_subscriptions\x18\x1b \x01(\rR\x17marketDataSubscriptions\x12(\n\x10\x61pp_version_hash\x18\x1c \x01(\tR\x0e\x61ppVersionHash\x12\x1f\n\x0b\x61pp_version\x18\x1d \x01(\tR\nappVersion\x12#\n\rchain_version\x18\x1e \x01(\tR\x0c\x63hainVersion\x12%\n\x0e\x62lock_duration\x18\x1f \x01(\x04R\rblockDuration\x12\x16\n\x06uptime\x18 \x01(\tR\x06uptime\x12\x19\n\x08\x63hain_id\x18! \x01(\tR\x07\x63hainId\x12K\n\"market_depth_updates_subscriptions\x18\" \x01(\rR\x1fmarketDepthUpdatesSubscriptions\"\x18\n\x16LastBlockHeightRequest\"1\n\x17LastBlockHeightResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height2\x89\x04\n\x0eTradingService\x12^\n\x13SubmitTransactionV2\x12\".api.v1.SubmitTransactionV2Request\x1a#.api.v1.SubmitTransactionV2Response\x12^\n\x13PropagateChainEvent\x12\".api.v1.PropagateChainEventRequest\x1a#.api.v1.PropagateChainEventResponse\x12\x43\n\nStatistics\x12\x19.api.v1.StatisticsRequest\x1a\x1a.api.v1.StatisticsResponse\x12R\n\x0fLastBlockHeight\x12\x1e.api.v1.LastBlockHeightRequest\x1a\x1f.api.v1.LastBlockHeightResponse\x12\x46\n\x0bGetVegaTime\x12\x1a.api.v1.GetVegaTimeRequest\x1a\x1b.api.v1.GetVegaTimeResponse\x12V\n\x0fObserveEventBus\x12\x1e.api.v1.ObserveEventBusRequest\x1a\x1f.api.v1.ObserveEventBusResponse(\x01\x30\x01\x42?\n\x18io.vegaprotocol.vega.apiZ#code.vegaprotocol.io/vega/proto/apib\x06proto3' , dependencies=[vega__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,events_dot_v1_dot_events__pb2.DESCRIPTOR,oracles_dot_v1_dot_spec__pb2.DESCRIPTOR,oracles_dot_v1_dot_data__pb2.DESCRIPTOR,commands_dot_v1_dot_commands__pb2.DESCRIPTOR,commands_dot_v1_dot_transaction__pb2.DESCRIPTOR,commands_dot_v1_dot_validator__commands__pb2.DESCRIPTOR,github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,]) -_SUBMITTRANSACTIONREQUEST_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='api.v1.SubmitTransactionRequest.Type', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='TYPE_UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TYPE_ASYNC', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TYPE_SYNC', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TYPE_COMMIT', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=626, - serialized_end=702, -) -_sym_db.RegisterEnumDescriptor(_SUBMITTRANSACTIONREQUEST_TYPE) - _SUBMITTRANSACTIONV2REQUEST_TYPE = _descriptor.EnumDescriptor( name='Type', full_name='api.v1.SubmitTransactionV2Request.Type', @@ -101,8 +66,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=626, - serialized_end=702, + serialized_start=614, + serialized_end=690, ) _sym_db.RegisterEnumDescriptor(_SUBMITTRANSACTIONV2REQUEST_TYPE) @@ -116,12 +81,12 @@ create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='evt', full_name='api.v1.PropagateChainEventRequest.evt', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='event', full_name='api.v1.PropagateChainEventRequest.event', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='evt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='event', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='pub_key', full_name='api.v1.PropagateChainEventRequest.pub_key', index=1, number=2, type=9, cpp_type=9, label=1, @@ -148,8 +113,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=312, - serialized_end=443, + serialized_start=311, + serialized_end=416, ) @@ -180,80 +145,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=445, - serialized_end=500, -) - - -_SUBMITTRANSACTIONREQUEST = _descriptor.Descriptor( - name='SubmitTransactionRequest', - full_name='api.v1.SubmitTransactionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='tx', full_name='api.v1.SubmitTransactionRequest.tx', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='tx', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='api.v1.SubmitTransactionRequest.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SUBMITTRANSACTIONREQUEST_TYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=503, - serialized_end=702, -) - - -_SUBMITTRANSACTIONRESPONSE = _descriptor.Descriptor( - name='SubmitTransactionResponse', - full_name='api.v1.SubmitTransactionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='success', full_name='api.v1.SubmitTransactionResponse.success', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='success', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=704, - serialized_end=757, + serialized_start=418, + serialized_end=473, ) @@ -292,8 +185,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=760, - serialized_end=974, + serialized_start=476, + serialized_end=690, ) @@ -324,26 +217,19 @@ extension_ranges=[], oneofs=[ ], - serialized_start=976, - serialized_end=1031, + serialized_start=692, + serialized_end=747, ) -_PREPAREWITHDRAWREQUEST = _descriptor.Descriptor( - name='PrepareWithdrawRequest', - full_name='api.v1.PrepareWithdrawRequest', +_GETVEGATIMEREQUEST = _descriptor.Descriptor( + name='GetVegaTimeRequest', + full_name='api.v1.GetVegaTimeRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ - _descriptor.FieldDescriptor( - name='withdraw', full_name='api.v1.PrepareWithdrawRequest.withdraw', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='withdraw', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -356,26 +242,26 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1033, - serialized_end=1123, + serialized_start=749, + serialized_end=769, ) -_PREPAREWITHDRAWRESPONSE = _descriptor.Descriptor( - name='PrepareWithdrawResponse', - full_name='api.v1.PrepareWithdrawResponse', +_GETVEGATIMERESPONSE = _descriptor.Descriptor( + name='GetVegaTimeResponse', + full_name='api.v1.GetVegaTimeResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareWithdrawResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='timestamp', full_name='api.v1.GetVegaTimeResponse.timestamp', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='timestamp', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -388,97 +274,47 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1125, - serialized_end=1170, + serialized_start=771, + serialized_end=822, ) -_PREPARESUBMITORDERRESPONSE = _descriptor.Descriptor( - name='PrepareSubmitOrderResponse', - full_name='api.v1.PrepareSubmitOrderResponse', +_OBSERVEEVENTBUSREQUEST = _descriptor.Descriptor( + name='ObserveEventBusRequest', + full_name='api.v1.ObserveEventBusRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareSubmitOrderResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='type', full_name='api.v1.ObserveEventBusRequest.type', index=0, + number=1, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='submit_id', full_name='api.v1.PrepareSubmitOrderResponse.submit_id', index=1, + name='market_id', full_name='api.v1.ObserveEventBusRequest.market_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='submitId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1172, - serialized_end=1249, -) - - -_PREPARECANCELORDERRESPONSE = _descriptor.Descriptor( - name='PrepareCancelOrderResponse', - full_name='api.v1.PrepareCancelOrderResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareCancelOrderResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='party_id', full_name='api.v1.ObserveEventBusRequest.party_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1251, - serialized_end=1299, -) - - -_PREPAREAMENDORDERRESPONSE = _descriptor.Descriptor( - name='PrepareAmendOrderResponse', - full_name='api.v1.PrepareAmendOrderResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareAmendOrderResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='batch_size', full_name='api.v1.ObserveEventBusRequest.batch_size', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='batchSize', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -491,26 +327,26 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1301, - serialized_end=1348, + serialized_start=825, + serialized_end=986, ) -_PREPARESUBMITORDERREQUEST = _descriptor.Descriptor( - name='PrepareSubmitOrderRequest', - full_name='api.v1.PrepareSubmitOrderRequest', +_OBSERVEEVENTBUSRESPONSE = _descriptor.Descriptor( + name='ObserveEventBusResponse', + full_name='api.v1.ObserveEventBusResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareSubmitOrderRequest.submission', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='events', full_name='api.v1.ObserveEventBusResponse.events', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='events', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -523,26 +359,19 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1350, - serialized_end=1444, + serialized_start=988, + serialized_end=1063, ) -_PREPARECANCELORDERREQUEST = _descriptor.Descriptor( - name='PrepareCancelOrderRequest', - full_name='api.v1.PrepareCancelOrderRequest', +_STATISTICSREQUEST = _descriptor.Descriptor( + name='StatisticsRequest', + full_name='api.v1.StatisticsRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ - _descriptor.FieldDescriptor( - name='cancellation', full_name='api.v1.PrepareCancelOrderRequest.cancellation', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='cancellation', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -555,51 +384,26 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1446, - serialized_end=1546, + serialized_start=1065, + serialized_end=1084, ) -_PREPAREAMENDORDERREQUEST = _descriptor.Descriptor( - name='PrepareAmendOrderRequest', - full_name='api.v1.PrepareAmendOrderRequest', +_STATISTICSRESPONSE = _descriptor.Descriptor( + name='StatisticsResponse', + full_name='api.v1.StatisticsResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='amendment', full_name='api.v1.PrepareAmendOrderRequest.amendment', index=0, + name='statistics', full_name='api.v1.StatisticsResponse.statistics', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='amendment', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1548, - serialized_end=1638, -) - - -_ASSETSREQUEST = _descriptor.Descriptor( - name='AssetsRequest', - full_name='api.v1.AssetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='statistics', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -612,289 +416,243 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1640, - serialized_end=1655, + serialized_start=1086, + serialized_end=1158, ) -_ASSETSRESPONSE = _descriptor.Descriptor( - name='AssetsResponse', - full_name='api.v1.AssetsResponse', +_STATISTICS = _descriptor.Descriptor( + name='Statistics', + full_name='api.v1.Statistics', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='assets', full_name='api.v1.AssetsResponse.assets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='block_height', full_name='api.v1.Statistics.block_height', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='assets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1657, - serialized_end=1710, -) - - -_ASSETBYIDREQUEST = _descriptor.Descriptor( - name='AssetByIDRequest', - full_name='api.v1.AssetByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='blockHeight', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='backlog_length', full_name='api.v1.Statistics.backlog_length', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='backlogLength', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_peers', full_name='api.v1.Statistics.total_peers', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalPeers', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='id', full_name='api.v1.AssetByIDRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, + name='genesis_time', full_name='api.v1.Statistics.genesis_time', index=3, + number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1712, - serialized_end=1754, -) - - -_ASSETBYIDRESPONSE = _descriptor.Descriptor( - name='AssetByIDResponse', - full_name='api.v1.AssetByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='genesisTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='asset', full_name='api.v1.AssetByIDResponse.asset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='current_time', full_name='api.v1.Statistics.current_time', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1756, - serialized_end=1810, -) - - -_GETNODESIGNATURESAGGREGATEREQUEST = _descriptor.Descriptor( - name='GetNodeSignaturesAggregateRequest', - full_name='api.v1.GetNodeSignaturesAggregateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='currentTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='id', full_name='api.v1.GetNodeSignaturesAggregateRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, + name='vega_time', full_name='api.v1.Statistics.vega_time', index=5, + number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1812, - serialized_end=1871, -) - - -_GETNODESIGNATURESAGGREGATERESPONSE = _descriptor.Descriptor( - name='GetNodeSignaturesAggregateResponse', - full_name='api.v1.GetNodeSignaturesAggregateResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='vegaTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='signatures', full_name='api.v1.GetNodeSignaturesAggregateResponse.signatures', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='status', full_name='api.v1.Statistics.status', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='signatures', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1873, - serialized_end=1974, -) - - -_OPTIONALPROPOSALSTATE = _descriptor.Descriptor( - name='OptionalProposalState', - full_name='api.v1.OptionalProposalState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='value', full_name='api.v1.OptionalProposalState.value', index=0, - number=1, type=14, cpp_type=8, label=1, + name='tx_per_block', full_name='api.v1.Statistics.tx_per_block', index=7, + number=8, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='value', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1976, - serialized_end=2043, -) - - -_GETPROPOSALSREQUEST = _descriptor.Descriptor( - name='GetProposalsRequest', - full_name='api.v1.GetProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='txPerBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetProposalsRequest.select_in_state', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='average_tx_bytes', full_name='api.v1.Statistics.average_tx_bytes', index=8, + number=9, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2045, - serialized_end=2137, -) - - -_GETPROPOSALSRESPONSE = _descriptor.Descriptor( - name='GetProposalsResponse', - full_name='api.v1.GetProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='averageTxBytes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='average_orders_per_block', full_name='api.v1.Statistics.average_orders_per_block', index=9, + number=10, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2139, - serialized_end=2203, -) - - -_GETPROPOSALSBYPARTYREQUEST = _descriptor.Descriptor( - name='GetProposalsByPartyRequest', - full_name='api.v1.GetProposalsByPartyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ + serialized_options=None, json_name='averageOrdersPerBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='trades_per_second', full_name='api.v1.Statistics.trades_per_second', index=10, + number=11, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='tradesPerSecond', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='orders_per_second', full_name='api.v1.Statistics.orders_per_second', index=11, + number=12, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='ordersPerSecond', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_markets', full_name='api.v1.Statistics.total_markets', index=12, + number=13, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalMarkets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_amend_order', full_name='api.v1.Statistics.total_amend_order', index=13, + number=16, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalAmendOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_cancel_order', full_name='api.v1.Statistics.total_cancel_order', index=14, + number=17, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalCancelOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_create_order', full_name='api.v1.Statistics.total_create_order', index=15, + number=18, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalCreateOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_orders', full_name='api.v1.Statistics.total_orders', index=16, + number=19, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalOrders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_trades', full_name='api.v1.Statistics.total_trades', index=17, + number=20, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalTrades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='order_subscriptions', full_name='api.v1.Statistics.order_subscriptions', index=18, + number=21, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='orderSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='trade_subscriptions', full_name='api.v1.Statistics.trade_subscriptions', index=19, + number=22, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='tradeSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='candle_subscriptions', full_name='api.v1.Statistics.candle_subscriptions', index=20, + number=23, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='candleSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market_depth_subscriptions', full_name='api.v1.Statistics.market_depth_subscriptions', index=21, + number=24, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='marketDepthSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='positions_subscriptions', full_name='api.v1.Statistics.positions_subscriptions', index=22, + number=25, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='positionsSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='account_subscriptions', full_name='api.v1.Statistics.account_subscriptions', index=23, + number=26, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='accountSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market_data_subscriptions', full_name='api.v1.Statistics.market_data_subscriptions', index=24, + number=27, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='marketDataSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.GetProposalsByPartyRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, + name='app_version_hash', full_name='api.v1.Statistics.app_version_hash', index=25, + number=28, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='appVersionHash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetProposalsByPartyRequest.select_in_state', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='app_version', full_name='api.v1.Statistics.app_version', index=26, + number=29, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='appVersion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='chain_version', full_name='api.v1.Statistics.chain_version', index=27, + number=30, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='chainVersion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_duration', full_name='api.v1.Statistics.block_duration', index=28, + number=31, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='blockDuration', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='uptime', full_name='api.v1.Statistics.uptime', index=29, + number=32, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='uptime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='chain_id', full_name='api.v1.Statistics.chain_id', index=30, + number=33, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='chainId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market_depth_updates_subscriptions', full_name='api.v1.Statistics.market_depth_updates_subscriptions', index=31, + number=34, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='marketDepthUpdatesSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -907,26 +665,19 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2206, - serialized_end=2340, + serialized_start=1161, + serialized_end=2546, ) -_GETPROPOSALSBYPARTYRESPONSE = _descriptor.Descriptor( - name='GetProposalsByPartyResponse', - full_name='api.v1.GetProposalsByPartyResponse', +_LASTBLOCKHEIGHTREQUEST = _descriptor.Descriptor( + name='LastBlockHeightRequest', + full_name='api.v1.LastBlockHeightRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetProposalsByPartyResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -939,26 +690,26 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2342, - serialized_end=2413, + serialized_start=2548, + serialized_end=2572, ) -_GETVOTESBYPARTYREQUEST = _descriptor.Descriptor( - name='GetVotesByPartyRequest', - full_name='api.v1.GetVotesByPartyRequest', +_LASTBLOCKHEIGHTRESPONSE = _descriptor.Descriptor( + name='LastBlockHeightResponse', + full_name='api.v1.LastBlockHeightResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.GetVotesByPartyRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='height', full_name='api.v1.LastBlockHeightResponse.height', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='height', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -971,6126 +722,160 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2415, - serialized_end=2474, + serialized_start=2574, + serialized_end=2623, ) - -_GETVOTESBYPARTYRESPONSE = _descriptor.Descriptor( - name='GetVotesByPartyResponse', - full_name='api.v1.GetVotesByPartyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='votes', full_name='api.v1.GetVotesByPartyResponse.votes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='votes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2476, - serialized_end=2535, -) - - -_GETNEWMARKETPROPOSALSREQUEST = _descriptor.Descriptor( - name='GetNewMarketProposalsRequest', - full_name='api.v1.GetNewMarketProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetNewMarketProposalsRequest.select_in_state', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2537, - serialized_end=2638, -) - - -_GETNEWMARKETPROPOSALSRESPONSE = _descriptor.Descriptor( - name='GetNewMarketProposalsResponse', - full_name='api.v1.GetNewMarketProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetNewMarketProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2640, - serialized_end=2713, -) - - -_GETUPDATEMARKETPROPOSALSREQUEST = _descriptor.Descriptor( - name='GetUpdateMarketProposalsRequest', - full_name='api.v1.GetUpdateMarketProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.GetUpdateMarketProposalsRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetUpdateMarketProposalsRequest.select_in_state', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2716, - serialized_end=2857, -) - - -_GETUPDATEMARKETPROPOSALSRESPONSE = _descriptor.Descriptor( - name='GetUpdateMarketProposalsResponse', - full_name='api.v1.GetUpdateMarketProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetUpdateMarketProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2859, - serialized_end=2935, -) - - -_GETNETWORKPARAMETERSPROPOSALSREQUEST = _descriptor.Descriptor( - name='GetNetworkParametersProposalsRequest', - full_name='api.v1.GetNetworkParametersProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetNetworkParametersProposalsRequest.select_in_state', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2937, - serialized_end=3046, -) - - -_GETNETWORKPARAMETERSPROPOSALSRESPONSE = _descriptor.Descriptor( - name='GetNetworkParametersProposalsResponse', - full_name='api.v1.GetNetworkParametersProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetNetworkParametersProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3048, - serialized_end=3129, -) - - -_GETNEWASSETPROPOSALSREQUEST = _descriptor.Descriptor( - name='GetNewAssetProposalsRequest', - full_name='api.v1.GetNewAssetProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='select_in_state', full_name='api.v1.GetNewAssetProposalsRequest.select_in_state', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='selectInState', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3131, - serialized_end=3231, -) - - -_GETNEWASSETPROPOSALSRESPONSE = _descriptor.Descriptor( - name='GetNewAssetProposalsResponse', - full_name='api.v1.GetNewAssetProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetNewAssetProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3233, - serialized_end=3305, -) - - -_GETPROPOSALBYIDREQUEST = _descriptor.Descriptor( - name='GetProposalByIDRequest', - full_name='api.v1.GetProposalByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='proposal_id', full_name='api.v1.GetProposalByIDRequest.proposal_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='proposalId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3307, - serialized_end=3372, -) - - -_GETPROPOSALBYIDRESPONSE = _descriptor.Descriptor( - name='GetProposalByIDResponse', - full_name='api.v1.GetProposalByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetProposalByIDResponse.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3374, - serialized_end=3441, -) - - -_GETPROPOSALBYREFERENCEREQUEST = _descriptor.Descriptor( - name='GetProposalByReferenceRequest', - full_name='api.v1.GetProposalByReferenceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='reference', full_name='api.v1.GetProposalByReferenceRequest.reference', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3443, - serialized_end=3512, -) - - -_GETPROPOSALBYREFERENCERESPONSE = _descriptor.Descriptor( - name='GetProposalByReferenceResponse', - full_name='api.v1.GetProposalByReferenceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.GetProposalByReferenceResponse.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3514, - serialized_end=3588, -) - - -_OBSERVEGOVERNANCEREQUEST = _descriptor.Descriptor( - name='ObserveGovernanceRequest', - full_name='api.v1.ObserveGovernanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3590, - serialized_end=3616, -) - - -_OBSERVEGOVERNANCERESPONSE = _descriptor.Descriptor( - name='ObserveGovernanceResponse', - full_name='api.v1.ObserveGovernanceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.ObserveGovernanceResponse.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3618, - serialized_end=3687, -) - - -_OBSERVEPARTYPROPOSALSREQUEST = _descriptor.Descriptor( - name='ObservePartyProposalsRequest', - full_name='api.v1.ObservePartyProposalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.ObservePartyProposalsRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3689, - serialized_end=3754, -) - - -_OBSERVEPARTYPROPOSALSRESPONSE = _descriptor.Descriptor( - name='ObservePartyProposalsResponse', - full_name='api.v1.ObservePartyProposalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='api.v1.ObservePartyProposalsResponse.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3756, - serialized_end=3829, -) - - -_OBSERVEPROPOSALVOTESREQUEST = _descriptor.Descriptor( - name='ObserveProposalVotesRequest', - full_name='api.v1.ObserveProposalVotesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='proposal_id', full_name='api.v1.ObserveProposalVotesRequest.proposal_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='proposalId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3831, - serialized_end=3901, -) - - -_OBSERVEPROPOSALVOTESRESPONSE = _descriptor.Descriptor( - name='ObserveProposalVotesResponse', - full_name='api.v1.ObserveProposalVotesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vote', full_name='api.v1.ObserveProposalVotesResponse.vote', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='vote', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3903, - serialized_end=3965, -) - - -_OBSERVEPARTYVOTESREQUEST = _descriptor.Descriptor( - name='ObservePartyVotesRequest', - full_name='api.v1.ObservePartyVotesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.ObservePartyVotesRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3967, - serialized_end=4028, -) - - -_OBSERVEPARTYVOTESRESPONSE = _descriptor.Descriptor( - name='ObservePartyVotesResponse', - full_name='api.v1.ObservePartyVotesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vote', full_name='api.v1.ObservePartyVotesResponse.vote', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='vote', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4030, - serialized_end=4089, -) - - -_MARGINLEVELSSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='MarginLevelsSubscribeRequest', - full_name='api.v1.MarginLevelsSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.MarginLevelsSubscribeRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarginLevelsSubscribeRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4091, - serialized_end=4185, -) - - -_MARGINLEVELSSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='MarginLevelsSubscribeResponse', - full_name='api.v1.MarginLevelsSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='margin_levels', full_name='api.v1.MarginLevelsSubscribeResponse.margin_levels', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marginLevels', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4187, - serialized_end=4275, -) - - -_MARGINLEVELSREQUEST = _descriptor.Descriptor( - name='MarginLevelsRequest', - full_name='api.v1.MarginLevelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.MarginLevelsRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarginLevelsRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4277, - serialized_end=4362, -) - - -_MARGINLEVELSRESPONSE = _descriptor.Descriptor( - name='MarginLevelsResponse', - full_name='api.v1.MarginLevelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='margin_levels', full_name='api.v1.MarginLevelsResponse.margin_levels', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marginLevels', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4364, - serialized_end=4443, -) - - -_MARKETSDATASUBSCRIBEREQUEST = _descriptor.Descriptor( - name='MarketsDataSubscribeRequest', - full_name='api.v1.MarketsDataSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketsDataSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4445, - serialized_end=4503, -) - - -_MARKETSDATASUBSCRIBERESPONSE = _descriptor.Descriptor( - name='MarketsDataSubscribeResponse', - full_name='api.v1.MarketsDataSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_data', full_name='api.v1.MarketsDataSubscribeResponse.market_data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4505, - serialized_end=4586, -) - - -_MARKETDATABYIDREQUEST = _descriptor.Descriptor( - name='MarketDataByIDRequest', - full_name='api.v1.MarketDataByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketDataByIDRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4588, - serialized_end=4648, -) - - -_MARKETDATABYIDRESPONSE = _descriptor.Descriptor( - name='MarketDataByIDResponse', - full_name='api.v1.MarketDataByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_data', full_name='api.v1.MarketDataByIDResponse.market_data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4650, - serialized_end=4725, -) - - -_MARKETSDATAREQUEST = _descriptor.Descriptor( - name='MarketsDataRequest', - full_name='api.v1.MarketsDataRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4727, - serialized_end=4747, -) - - -_MARKETSDATARESPONSE = _descriptor.Descriptor( - name='MarketsDataResponse', - full_name='api.v1.MarketsDataResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='markets_data', full_name='api.v1.MarketsDataResponse.markets_data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketsData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4749, - serialized_end=4823, -) - - -_LASTTRADEREQUEST = _descriptor.Descriptor( - name='LastTradeRequest', - full_name='api.v1.LastTradeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.LastTradeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4825, - serialized_end=4880, -) - - -_LASTTRADERESPONSE = _descriptor.Descriptor( - name='LastTradeResponse', - full_name='api.v1.LastTradeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='trade', full_name='api.v1.LastTradeResponse.trade', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='trade', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4882, - serialized_end=4936, -) - - -_MARKETBYIDREQUEST = _descriptor.Descriptor( - name='MarketByIDRequest', - full_name='api.v1.MarketByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketByIDRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4938, - serialized_end=4994, -) - - -_MARKETBYIDRESPONSE = _descriptor.Descriptor( - name='MarketByIDResponse', - full_name='api.v1.MarketByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market', full_name='api.v1.MarketByIDResponse.market', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4996, - serialized_end=5054, -) - - -_PARTYBYIDREQUEST = _descriptor.Descriptor( - name='PartyByIDRequest', - full_name='api.v1.PartyByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.PartyByIDRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5056, - serialized_end=5109, -) - - -_PARTYBYIDRESPONSE = _descriptor.Descriptor( - name='PartyByIDResponse', - full_name='api.v1.PartyByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party', full_name='api.v1.PartyByIDResponse.party', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5111, - serialized_end=5165, -) - - -_PARTIESREQUEST = _descriptor.Descriptor( - name='PartiesRequest', - full_name='api.v1.PartiesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5167, - serialized_end=5183, -) - - -_PARTIESRESPONSE = _descriptor.Descriptor( - name='PartiesResponse', - full_name='api.v1.PartiesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='parties', full_name='api.v1.PartiesResponse.parties', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='parties', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5185, - serialized_end=5241, -) - - -_TRADESBYPARTYREQUEST = _descriptor.Descriptor( - name='TradesByPartyRequest', - full_name='api.v1.TradesByPartyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.TradesByPartyRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.TradesByPartyRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='api.v1.TradesByPartyRequest.pagination', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='pagination', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5244, - serialized_end=5374, -) - - -_TRADESBYPARTYRESPONSE = _descriptor.Descriptor( - name='TradesByPartyResponse', - full_name='api.v1.TradesByPartyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='trades', full_name='api.v1.TradesByPartyResponse.trades', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='trades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5376, - serialized_end=5436, -) - - -_TRADESBYORDERREQUEST = _descriptor.Descriptor( - name='TradesByOrderRequest', - full_name='api.v1.TradesByOrderRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order_id', full_name='api.v1.TradesByOrderRequest.order_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5438, - serialized_end=5487, -) - - -_TRADESBYORDERRESPONSE = _descriptor.Descriptor( - name='TradesByOrderResponse', - full_name='api.v1.TradesByOrderResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='trades', full_name='api.v1.TradesByOrderResponse.trades', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='trades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5489, - serialized_end=5549, -) - - -_ACCOUNTSSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='AccountsSubscribeRequest', - full_name='api.v1.AccountsSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.AccountsSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.AccountsSubscribeRequest.party_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='asset', full_name='api.v1.AccountsSubscribeRequest.asset', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='api.v1.AccountsSubscribeRequest.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5552, - serialized_end=5695, -) - - -_ACCOUNTSSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='AccountsSubscribeResponse', - full_name='api.v1.AccountsSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='account', full_name='api.v1.AccountsSubscribeResponse.account', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='account', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5697, - serialized_end=5765, -) - - -_ORDERSSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='OrdersSubscribeRequest', - full_name='api.v1.OrdersSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.OrdersSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.OrdersSubscribeRequest.party_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5767, - serialized_end=5847, -) - - -_TRADESSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='TradesSubscribeRequest', - full_name='api.v1.TradesSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.TradesSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.TradesSubscribeRequest.party_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5849, - serialized_end=5929, -) - - -_CANDLESSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='CandlesSubscribeRequest', - full_name='api.v1.CandlesSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.CandlesSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='interval', full_name='api.v1.CandlesSubscribeRequest.interval', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='interval', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5931, - serialized_end=6037, -) - - -_CANDLESSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='CandlesSubscribeResponse', - full_name='api.v1.CandlesSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='candle', full_name='api.v1.CandlesSubscribeResponse.candle', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='candle', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6039, - serialized_end=6103, -) - - -_MARKETDEPTHSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='MarketDepthSubscribeRequest', - full_name='api.v1.MarketDepthSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketDepthSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6105, - serialized_end=6171, -) - - -_MARKETDEPTHSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='MarketDepthSubscribeResponse', - full_name='api.v1.MarketDepthSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_depth', full_name='api.v1.MarketDepthSubscribeResponse.market_depth', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketDepth', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6173, - serialized_end=6257, -) - - -_MARKETDEPTHUPDATESSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='MarketDepthUpdatesSubscribeRequest', - full_name='api.v1.MarketDepthUpdatesSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketDepthUpdatesSubscribeRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6259, - serialized_end=6332, -) - - -_MARKETDEPTHUPDATESSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='MarketDepthUpdatesSubscribeResponse', - full_name='api.v1.MarketDepthUpdatesSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='update', full_name='api.v1.MarketDepthUpdatesSubscribeResponse.update', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='update', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6334, - serialized_end=6420, -) - - -_POSITIONSSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='PositionsSubscribeRequest', - full_name='api.v1.PositionsSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.PositionsSubscribeRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.PositionsSubscribeRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6422, - serialized_end=6505, -) - - -_POSITIONSSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='PositionsSubscribeResponse', - full_name='api.v1.PositionsSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='position', full_name='api.v1.PositionsSubscribeResponse.position', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='position', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6507, - serialized_end=6579, -) - - -_ORDERSBYMARKETREQUEST = _descriptor.Descriptor( - name='OrdersByMarketRequest', - full_name='api.v1.OrdersByMarketRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.OrdersByMarketRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='api.v1.OrdersByMarketRequest.pagination', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='pagination', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6581, - serialized_end=6693, -) - - -_ORDERSBYMARKETRESPONSE = _descriptor.Descriptor( - name='OrdersByMarketResponse', - full_name='api.v1.OrdersByMarketResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='orders', full_name='api.v1.OrdersByMarketResponse.orders', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6695, - serialized_end=6756, -) - - -_ORDERSBYPARTYREQUEST = _descriptor.Descriptor( - name='OrdersByPartyRequest', - full_name='api.v1.OrdersByPartyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.OrdersByPartyRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='api.v1.OrdersByPartyRequest.pagination', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='pagination', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6758, - serialized_end=6867, -) - - -_ORDERSBYPARTYRESPONSE = _descriptor.Descriptor( - name='OrdersByPartyResponse', - full_name='api.v1.OrdersByPartyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='orders', full_name='api.v1.OrdersByPartyResponse.orders', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6869, - serialized_end=6929, -) - - -_ORDERBYMARKETANDIDREQUEST = _descriptor.Descriptor( - name='OrderByMarketAndIDRequest', - full_name='api.v1.OrderByMarketAndIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.OrderByMarketAndIDRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='order_id', full_name='api.v1.OrderByMarketAndIDRequest.order_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6931, - serialized_end=7030, -) - - -_ORDERBYMARKETANDIDRESPONSE = _descriptor.Descriptor( - name='OrderByMarketAndIDResponse', - full_name='api.v1.OrderByMarketAndIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order', full_name='api.v1.OrderByMarketAndIDResponse.order', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='order', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7032, - serialized_end=7095, -) - - -_ORDERBYREFERENCEREQUEST = _descriptor.Descriptor( - name='OrderByReferenceRequest', - full_name='api.v1.OrderByReferenceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='reference', full_name='api.v1.OrderByReferenceRequest.reference', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7097, - serialized_end=7160, -) - - -_ORDERBYREFERENCERESPONSE = _descriptor.Descriptor( - name='OrderByReferenceResponse', - full_name='api.v1.OrderByReferenceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order', full_name='api.v1.OrderByReferenceResponse.order', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='order', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7162, - serialized_end=7223, -) - - -_MARKETSREQUEST = _descriptor.Descriptor( - name='MarketsRequest', - full_name='api.v1.MarketsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7225, - serialized_end=7241, -) - - -_MARKETSRESPONSE = _descriptor.Descriptor( - name='MarketsResponse', - full_name='api.v1.MarketsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='markets', full_name='api.v1.MarketsResponse.markets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='markets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7243, - serialized_end=7300, -) - - -_CANDLESREQUEST = _descriptor.Descriptor( - name='CandlesRequest', - full_name='api.v1.CandlesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.CandlesRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='since_timestamp', full_name='api.v1.CandlesRequest.since_timestamp', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002\020\000', json_name='sinceTimestamp', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='interval', full_name='api.v1.CandlesRequest.interval', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='interval', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7303, - serialized_end=7449, -) - - -_CANDLESRESPONSE = _descriptor.Descriptor( - name='CandlesResponse', - full_name='api.v1.CandlesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='candles', full_name='api.v1.CandlesResponse.candles', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='candles', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7451, - serialized_end=7508, -) - - -_MARKETDEPTHREQUEST = _descriptor.Descriptor( - name='MarketDepthRequest', - full_name='api.v1.MarketDepthRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketDepthRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='max_depth', full_name='api.v1.MarketDepthRequest.max_depth', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='maxDepth', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7510, - serialized_end=7596, -) - - -_MARKETDEPTHRESPONSE = _descriptor.Descriptor( - name='MarketDepthResponse', - full_name='api.v1.MarketDepthResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketDepthResponse.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='buy', full_name='api.v1.MarketDepthResponse.buy', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='buy', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sell', full_name='api.v1.MarketDepthResponse.sell', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='sell', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='last_trade', full_name='api.v1.MarketDepthResponse.last_trade', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='lastTrade', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sequence_number', full_name='api.v1.MarketDepthResponse.sequence_number', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='sequenceNumber', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7599, - serialized_end=7808, -) - - -_TRADESBYMARKETREQUEST = _descriptor.Descriptor( - name='TradesByMarketRequest', - full_name='api.v1.TradesByMarketRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.TradesByMarketRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='api.v1.TradesByMarketRequest.pagination', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='pagination', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7810, - serialized_end=7922, -) - - -_TRADESBYMARKETRESPONSE = _descriptor.Descriptor( - name='TradesByMarketResponse', - full_name='api.v1.TradesByMarketResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='trades', full_name='api.v1.TradesByMarketResponse.trades', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='trades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7924, - serialized_end=7985, -) - - -_POSITIONSBYPARTYREQUEST = _descriptor.Descriptor( - name='PositionsByPartyRequest', - full_name='api.v1.PositionsByPartyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.PositionsByPartyRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.PositionsByPartyRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7987, - serialized_end=8076, -) - - -_POSITIONSBYPARTYRESPONSE = _descriptor.Descriptor( - name='PositionsByPartyResponse', - full_name='api.v1.PositionsByPartyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='positions', full_name='api.v1.PositionsByPartyResponse.positions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='positions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8078, - serialized_end=8150, -) - - -_GETVEGATIMEREQUEST = _descriptor.Descriptor( - name='GetVegaTimeRequest', - full_name='api.v1.GetVegaTimeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8152, - serialized_end=8172, -) - - -_GETVEGATIMERESPONSE = _descriptor.Descriptor( - name='GetVegaTimeResponse', - full_name='api.v1.GetVegaTimeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='api.v1.GetVegaTimeResponse.timestamp', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='timestamp', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8174, - serialized_end=8225, -) - - -_PAGINATION = _descriptor.Descriptor( - name='Pagination', - full_name='api.v1.Pagination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='skip', full_name='api.v1.Pagination.skip', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='skip', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='limit', full_name='api.v1.Pagination.limit', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='limit', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='descending', full_name='api.v1.Pagination.descending', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='descending', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8227, - serialized_end=8313, -) - - -_ORDERSSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='OrdersSubscribeResponse', - full_name='api.v1.OrdersSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='orders', full_name='api.v1.OrdersSubscribeResponse.orders', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8315, - serialized_end=8377, -) - - -_TRADESSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='TradesSubscribeResponse', - full_name='api.v1.TradesSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='trades', full_name='api.v1.TradesSubscribeResponse.trades', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='trades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8379, - serialized_end=8441, -) - - -_TRANSFERRESPONSESSUBSCRIBEREQUEST = _descriptor.Descriptor( - name='TransferResponsesSubscribeRequest', - full_name='api.v1.TransferResponsesSubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8443, - serialized_end=8478, -) - - -_TRANSFERRESPONSESSUBSCRIBERESPONSE = _descriptor.Descriptor( - name='TransferResponsesSubscribeResponse', - full_name='api.v1.TransferResponsesSubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='response', full_name='api.v1.TransferResponsesSubscribeResponse.response', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='response', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8480, - serialized_end=8568, -) - - -_PARTYACCOUNTSREQUEST = _descriptor.Descriptor( - name='PartyAccountsRequest', - full_name='api.v1.PartyAccountsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.PartyAccountsRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.PartyAccountsRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='api.v1.PartyAccountsRequest.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='asset', full_name='api.v1.PartyAccountsRequest.asset', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8571, - serialized_end=8710, -) - - -_PARTYACCOUNTSRESPONSE = _descriptor.Descriptor( - name='PartyAccountsResponse', - full_name='api.v1.PartyAccountsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='accounts', full_name='api.v1.PartyAccountsResponse.accounts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='accounts', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8712, - serialized_end=8778, -) - - -_MARKETACCOUNTSREQUEST = _descriptor.Descriptor( - name='MarketAccountsRequest', - full_name='api.v1.MarketAccountsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.MarketAccountsRequest.market_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='asset', full_name='api.v1.MarketAccountsRequest.asset', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8780, - serialized_end=8854, -) - - -_MARKETACCOUNTSRESPONSE = _descriptor.Descriptor( - name='MarketAccountsResponse', - full_name='api.v1.MarketAccountsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='accounts', full_name='api.v1.MarketAccountsResponse.accounts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='accounts', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8856, - serialized_end=8923, -) - - -_FEEINFRASTRUCTUREACCOUNTSREQUEST = _descriptor.Descriptor( - name='FeeInfrastructureAccountsRequest', - full_name='api.v1.FeeInfrastructureAccountsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='asset', full_name='api.v1.FeeInfrastructureAccountsRequest.asset', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8925, - serialized_end=8981, -) - - -_FEEINFRASTRUCTUREACCOUNTSRESPONSE = _descriptor.Descriptor( - name='FeeInfrastructureAccountsResponse', - full_name='api.v1.FeeInfrastructureAccountsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='accounts', full_name='api.v1.FeeInfrastructureAccountsResponse.accounts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='accounts', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=8983, - serialized_end=9061, -) - - -_PREPAREPROPOSALSUBMISSIONREQUEST = _descriptor.Descriptor( - name='PrepareProposalSubmissionRequest', - full_name='api.v1.PrepareProposalSubmissionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareProposalSubmissionRequest.submission', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9063, - serialized_end=9167, -) - - -_PREPAREPROPOSALSUBMISSIONRESPONSE = _descriptor.Descriptor( - name='PrepareProposalSubmissionResponse', - full_name='api.v1.PrepareProposalSubmissionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareProposalSubmissionResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareProposalSubmissionResponse.submission', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9169, - serialized_end=9294, -) - - -_PREPAREVOTESUBMISSIONREQUEST = _descriptor.Descriptor( - name='PrepareVoteSubmissionRequest', - full_name='api.v1.PrepareVoteSubmissionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareVoteSubmissionRequest.submission', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002 \001', json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9296, - serialized_end=9400, -) - - -_PREPAREVOTESUBMISSIONRESPONSE = _descriptor.Descriptor( - name='PrepareVoteSubmissionResponse', - full_name='api.v1.PrepareVoteSubmissionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareVoteSubmissionResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareVoteSubmissionResponse.submission', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9402, - serialized_end=9519, -) - - -_PREPARELIQUIDITYPROVISIONREQUEST = _descriptor.Descriptor( - name='PrepareLiquidityProvisionRequest', - full_name='api.v1.PrepareLiquidityProvisionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='submission', full_name='api.v1.PrepareLiquidityProvisionRequest.submission', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002 \001', json_name='submission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9521, - serialized_end=9643, -) - - -_PREPARELIQUIDITYPROVISIONRESPONSE = _descriptor.Descriptor( - name='PrepareLiquidityProvisionResponse', - full_name='api.v1.PrepareLiquidityProvisionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='blob', full_name='api.v1.PrepareLiquidityProvisionResponse.blob', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9645, - serialized_end=9700, -) - - -_ORDERBYIDREQUEST = _descriptor.Descriptor( - name='OrderByIDRequest', - full_name='api.v1.OrderByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order_id', full_name='api.v1.OrderByIDRequest.order_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002 \001', json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='api.v1.OrderByIDRequest.version', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='version', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9702, - serialized_end=9781, -) - - -_ORDERBYIDRESPONSE = _descriptor.Descriptor( - name='OrderByIDResponse', - full_name='api.v1.OrderByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order', full_name='api.v1.OrderByIDResponse.order', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='order', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9783, - serialized_end=9837, -) - - -_ORDERVERSIONSBYIDREQUEST = _descriptor.Descriptor( - name='OrderVersionsByIDRequest', - full_name='api.v1.OrderVersionsByIDRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order_id', full_name='api.v1.OrderVersionsByIDRequest.order_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002 \001', json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='api.v1.OrderVersionsByIDRequest.pagination', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='pagination', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9839, - serialized_end=9952, -) - - -_ORDERVERSIONSBYIDRESPONSE = _descriptor.Descriptor( - name='OrderVersionsByIDResponse', - full_name='api.v1.OrderVersionsByIDResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='orders', full_name='api.v1.OrderVersionsByIDResponse.orders', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9954, - serialized_end=10018, -) - - -_ESTIMATEFEEREQUEST = _descriptor.Descriptor( - name='EstimateFeeRequest', - full_name='api.v1.EstimateFeeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order', full_name='api.v1.EstimateFeeRequest.order', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='order', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10020, - serialized_end=10075, -) - - -_ESTIMATEFEERESPONSE = _descriptor.Descriptor( - name='EstimateFeeResponse', - full_name='api.v1.EstimateFeeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='fee', full_name='api.v1.EstimateFeeResponse.fee', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='fee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10077, - serialized_end=10127, -) - - -_ESTIMATEMARGINREQUEST = _descriptor.Descriptor( - name='EstimateMarginRequest', - full_name='api.v1.EstimateMarginRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='order', full_name='api.v1.EstimateMarginRequest.order', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='order', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10129, - serialized_end=10187, -) - - -_ESTIMATEMARGINRESPONSE = _descriptor.Descriptor( - name='EstimateMarginResponse', - full_name='api.v1.EstimateMarginResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='margin_levels', full_name='api.v1.EstimateMarginResponse.margin_levels', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marginLevels', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10189, - serialized_end=10270, -) - - -_OBSERVEEVENTBUSREQUEST = _descriptor.Descriptor( - name='ObserveEventBusRequest', - full_name='api.v1.ObserveEventBusRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='api.v1.ObserveEventBusRequest.type', index=0, - number=1, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_id', full_name='api.v1.ObserveEventBusRequest.market_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.ObserveEventBusRequest.party_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='batch_size', full_name='api.v1.ObserveEventBusRequest.batch_size', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='batchSize', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10273, - serialized_end=10434, -) - - -_OBSERVEEVENTBUSRESPONSE = _descriptor.Descriptor( - name='ObserveEventBusResponse', - full_name='api.v1.ObserveEventBusResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='events', full_name='api.v1.ObserveEventBusResponse.events', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='events', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10436, - serialized_end=10511, -) - - -_STATISTICSREQUEST = _descriptor.Descriptor( - name='StatisticsRequest', - full_name='api.v1.StatisticsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10513, - serialized_end=10532, -) - - -_STATISTICSRESPONSE = _descriptor.Descriptor( - name='StatisticsResponse', - full_name='api.v1.StatisticsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='statistics', full_name='api.v1.StatisticsResponse.statistics', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='statistics', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10534, - serialized_end=10604, -) - - -_WITHDRAWALSREQUEST = _descriptor.Descriptor( - name='WithdrawalsRequest', - full_name='api.v1.WithdrawalsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.WithdrawalsRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10606, - serialized_end=10661, -) - - -_WITHDRAWALSRESPONSE = _descriptor.Descriptor( - name='WithdrawalsResponse', - full_name='api.v1.WithdrawalsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='withdrawals', full_name='api.v1.WithdrawalsResponse.withdrawals', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='withdrawals', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10663, - serialized_end=10736, -) - - -_WITHDRAWALREQUEST = _descriptor.Descriptor( - name='WithdrawalRequest', - full_name='api.v1.WithdrawalRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='api.v1.WithdrawalRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10738, - serialized_end=10781, -) - - -_WITHDRAWALRESPONSE = _descriptor.Descriptor( - name='WithdrawalResponse', - full_name='api.v1.WithdrawalResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='withdrawal', full_name='api.v1.WithdrawalResponse.withdrawal', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='withdrawal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10783, - serialized_end=10853, -) - - -_ERC20WITHDRAWALAPPROVALREQUEST = _descriptor.Descriptor( - name='ERC20WithdrawalApprovalRequest', - full_name='api.v1.ERC20WithdrawalApprovalRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='withdrawal_id', full_name='api.v1.ERC20WithdrawalApprovalRequest.withdrawal_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='withdrawalId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10855, - serialized_end=10932, -) - - -_ERC20WITHDRAWALAPPROVALRESPONSE = _descriptor.Descriptor( - name='ERC20WithdrawalApprovalResponse', - full_name='api.v1.ERC20WithdrawalApprovalResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='asset_source', full_name='api.v1.ERC20WithdrawalApprovalResponse.asset_source', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='assetSource', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='amount', full_name='api.v1.ERC20WithdrawalApprovalResponse.amount', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='expiry', full_name='api.v1.ERC20WithdrawalApprovalResponse.expiry', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='expiry', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='nonce', full_name='api.v1.ERC20WithdrawalApprovalResponse.nonce', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='nonce', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='signatures', full_name='api.v1.ERC20WithdrawalApprovalResponse.signatures', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='signatures', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=10935, - serialized_end=11105, -) - - -_DEPOSITSREQUEST = _descriptor.Descriptor( - name='DepositsRequest', - full_name='api.v1.DepositsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='party_id', full_name='api.v1.DepositsRequest.party_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11107, - serialized_end=11159, -) - - -_DEPOSITSRESPONSE = _descriptor.Descriptor( - name='DepositsResponse', - full_name='api.v1.DepositsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='deposits', full_name='api.v1.DepositsResponse.deposits', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='deposits', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11161, - serialized_end=11222, -) - - -_DEPOSITREQUEST = _descriptor.Descriptor( - name='DepositRequest', - full_name='api.v1.DepositRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='api.v1.DepositRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11224, - serialized_end=11264, -) - - -_DEPOSITRESPONSE = _descriptor.Descriptor( - name='DepositResponse', - full_name='api.v1.DepositResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='deposit', full_name='api.v1.DepositResponse.deposit', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='deposit', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11266, - serialized_end=11324, -) - - -_NETWORKPARAMETERSREQUEST = _descriptor.Descriptor( - name='NetworkParametersRequest', - full_name='api.v1.NetworkParametersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11326, - serialized_end=11352, -) - - -_NETWORKPARAMETERSRESPONSE = _descriptor.Descriptor( - name='NetworkParametersResponse', - full_name='api.v1.NetworkParametersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='network_parameters', full_name='api.v1.NetworkParametersResponse.network_parameters', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='networkParameters', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11354, - serialized_end=11452, -) - - -_LIQUIDITYPROVISIONSREQUEST = _descriptor.Descriptor( - name='LiquidityProvisionsRequest', - full_name='api.v1.LiquidityProvisionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='market', full_name='api.v1.LiquidityProvisionsRequest.market', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='party', full_name='api.v1.LiquidityProvisionsRequest.party', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11454, - serialized_end=11528, -) - - -_LIQUIDITYPROVISIONSRESPONSE = _descriptor.Descriptor( - name='LiquidityProvisionsResponse', - full_name='api.v1.LiquidityProvisionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='liquidity_provisions', full_name='api.v1.LiquidityProvisionsResponse.liquidity_provisions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='liquidityProvisions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11530, - serialized_end=11636, -) - - -_ORACLESPECREQUEST = _descriptor.Descriptor( - name='OracleSpecRequest', - full_name='api.v1.OracleSpecRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='api.v1.OracleSpecRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11638, - serialized_end=11681, -) - - -_ORACLESPECRESPONSE = _descriptor.Descriptor( - name='OracleSpecResponse', - full_name='api.v1.OracleSpecResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oracle_spec', full_name='api.v1.OracleSpecResponse.oracle_spec', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='oracleSpec', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11683, - serialized_end=11760, -) - - -_ORACLESPECSREQUEST = _descriptor.Descriptor( - name='OracleSpecsRequest', - full_name='api.v1.OracleSpecsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11762, - serialized_end=11782, -) - - -_ORACLESPECSRESPONSE = _descriptor.Descriptor( - name='OracleSpecsResponse', - full_name='api.v1.OracleSpecsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oracle_specs', full_name='api.v1.OracleSpecsResponse.oracle_specs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='oracleSpecs', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11784, - serialized_end=11864, -) - - -_ORACLEDATABYSPECREQUEST = _descriptor.Descriptor( - name='OracleDataBySpecRequest', - full_name='api.v1.OracleDataBySpecRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='api.v1.OracleDataBySpecRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11866, - serialized_end=11915, -) - - -_ORACLEDATABYSPECRESPONSE = _descriptor.Descriptor( - name='OracleDataBySpecResponse', - full_name='api.v1.OracleDataBySpecResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oracle_data', full_name='api.v1.OracleDataBySpecResponse.oracle_data', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='oracleData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=11917, - serialized_end=12000, -) - - -_LASTBLOCKHEIGHTREQUEST = _descriptor.Descriptor( - name='LastBlockHeightRequest', - full_name='api.v1.LastBlockHeightRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12002, - serialized_end=12026, -) - - -_LASTBLOCKHEIGHTRESPONSE = _descriptor.Descriptor( - name='LastBlockHeightResponse', - full_name='api.v1.LastBlockHeightResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='height', full_name='api.v1.LastBlockHeightResponse.height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='height', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=12028, - serialized_end=12077, -) - -_PROPAGATECHAINEVENTREQUEST.fields_by_name['evt'].message_type = commands_dot_v1_dot_validator__commands__pb2._CHAINEVENT -_SUBMITTRANSACTIONREQUEST.fields_by_name['tx'].message_type = vega__pb2._SIGNEDBUNDLE -_SUBMITTRANSACTIONREQUEST.fields_by_name['type'].enum_type = _SUBMITTRANSACTIONREQUEST_TYPE -_SUBMITTRANSACTIONREQUEST_TYPE.containing_type = _SUBMITTRANSACTIONREQUEST -_SUBMITTRANSACTIONV2REQUEST.fields_by_name['tx'].message_type = commands_dot_v1_dot_transaction__pb2._TRANSACTION -_SUBMITTRANSACTIONV2REQUEST.fields_by_name['type'].enum_type = _SUBMITTRANSACTIONV2REQUEST_TYPE -_SUBMITTRANSACTIONV2REQUEST_TYPE.containing_type = _SUBMITTRANSACTIONV2REQUEST -_PREPAREWITHDRAWREQUEST.fields_by_name['withdraw'].message_type = commands_dot_v1_dot_commands__pb2._WITHDRAWSUBMISSION -_PREPARESUBMITORDERREQUEST.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._ORDERSUBMISSION -_PREPARECANCELORDERREQUEST.fields_by_name['cancellation'].message_type = commands_dot_v1_dot_commands__pb2._ORDERCANCELLATION -_PREPAREAMENDORDERREQUEST.fields_by_name['amendment'].message_type = commands_dot_v1_dot_commands__pb2._ORDERAMENDMENT -_ASSETSRESPONSE.fields_by_name['assets'].message_type = assets__pb2._ASSET -_ASSETBYIDRESPONSE.fields_by_name['asset'].message_type = assets__pb2._ASSET -_GETNODESIGNATURESAGGREGATERESPONSE.fields_by_name['signatures'].message_type = commands_dot_v1_dot_validator__commands__pb2._NODESIGNATURE -_OPTIONALPROPOSALSTATE.fields_by_name['value'].enum_type = governance__pb2._PROPOSAL_STATE -_GETPROPOSALSREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETPROPOSALSBYPARTYREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETPROPOSALSBYPARTYRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETVOTESBYPARTYRESPONSE.fields_by_name['votes'].message_type = governance__pb2._VOTE -_GETNEWMARKETPROPOSALSREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETNEWMARKETPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETUPDATEMARKETPROPOSALSREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETUPDATEMARKETPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETNETWORKPARAMETERSPROPOSALSREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETNETWORKPARAMETERSPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETNEWASSETPROPOSALSREQUEST.fields_by_name['select_in_state'].message_type = _OPTIONALPROPOSALSTATE -_GETNEWASSETPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETPROPOSALBYIDRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_GETPROPOSALBYREFERENCERESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_OBSERVEGOVERNANCERESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_OBSERVEPARTYPROPOSALSRESPONSE.fields_by_name['data'].message_type = governance__pb2._GOVERNANCEDATA -_OBSERVEPROPOSALVOTESRESPONSE.fields_by_name['vote'].message_type = governance__pb2._VOTE -_OBSERVEPARTYVOTESRESPONSE.fields_by_name['vote'].message_type = governance__pb2._VOTE -_MARGINLEVELSSUBSCRIBERESPONSE.fields_by_name['margin_levels'].message_type = vega__pb2._MARGINLEVELS -_MARGINLEVELSRESPONSE.fields_by_name['margin_levels'].message_type = vega__pb2._MARGINLEVELS -_MARKETSDATASUBSCRIBERESPONSE.fields_by_name['market_data'].message_type = vega__pb2._MARKETDATA -_MARKETDATABYIDRESPONSE.fields_by_name['market_data'].message_type = vega__pb2._MARKETDATA -_MARKETSDATARESPONSE.fields_by_name['markets_data'].message_type = vega__pb2._MARKETDATA -_LASTTRADERESPONSE.fields_by_name['trade'].message_type = vega__pb2._TRADE -_MARKETBYIDRESPONSE.fields_by_name['market'].message_type = markets__pb2._MARKET -_PARTYBYIDRESPONSE.fields_by_name['party'].message_type = vega__pb2._PARTY -_PARTIESRESPONSE.fields_by_name['parties'].message_type = vega__pb2._PARTY -_TRADESBYPARTYREQUEST.fields_by_name['pagination'].message_type = _PAGINATION -_TRADESBYPARTYRESPONSE.fields_by_name['trades'].message_type = vega__pb2._TRADE -_TRADESBYORDERRESPONSE.fields_by_name['trades'].message_type = vega__pb2._TRADE -_ACCOUNTSSUBSCRIBEREQUEST.fields_by_name['type'].enum_type = vega__pb2._ACCOUNTTYPE -_ACCOUNTSSUBSCRIBERESPONSE.fields_by_name['account'].message_type = vega__pb2._ACCOUNT -_CANDLESSUBSCRIBEREQUEST.fields_by_name['interval'].enum_type = vega__pb2._INTERVAL -_CANDLESSUBSCRIBERESPONSE.fields_by_name['candle'].message_type = vega__pb2._CANDLE -_MARKETDEPTHSUBSCRIBERESPONSE.fields_by_name['market_depth'].message_type = vega__pb2._MARKETDEPTH -_MARKETDEPTHUPDATESSUBSCRIBERESPONSE.fields_by_name['update'].message_type = vega__pb2._MARKETDEPTHUPDATE -_POSITIONSSUBSCRIBERESPONSE.fields_by_name['position'].message_type = vega__pb2._POSITION -_ORDERSBYMARKETREQUEST.fields_by_name['pagination'].message_type = _PAGINATION -_ORDERSBYMARKETRESPONSE.fields_by_name['orders'].message_type = vega__pb2._ORDER -_ORDERSBYPARTYREQUEST.fields_by_name['pagination'].message_type = _PAGINATION -_ORDERSBYPARTYRESPONSE.fields_by_name['orders'].message_type = vega__pb2._ORDER -_ORDERBYMARKETANDIDRESPONSE.fields_by_name['order'].message_type = vega__pb2._ORDER -_ORDERBYREFERENCERESPONSE.fields_by_name['order'].message_type = vega__pb2._ORDER -_MARKETSRESPONSE.fields_by_name['markets'].message_type = markets__pb2._MARKET -_CANDLESREQUEST.fields_by_name['interval'].enum_type = vega__pb2._INTERVAL -_CANDLESRESPONSE.fields_by_name['candles'].message_type = vega__pb2._CANDLE -_MARKETDEPTHRESPONSE.fields_by_name['buy'].message_type = vega__pb2._PRICELEVEL -_MARKETDEPTHRESPONSE.fields_by_name['sell'].message_type = vega__pb2._PRICELEVEL -_MARKETDEPTHRESPONSE.fields_by_name['last_trade'].message_type = vega__pb2._TRADE -_TRADESBYMARKETREQUEST.fields_by_name['pagination'].message_type = _PAGINATION -_TRADESBYMARKETRESPONSE.fields_by_name['trades'].message_type = vega__pb2._TRADE -_POSITIONSBYPARTYRESPONSE.fields_by_name['positions'].message_type = vega__pb2._POSITION -_ORDERSSUBSCRIBERESPONSE.fields_by_name['orders'].message_type = vega__pb2._ORDER -_TRADESSUBSCRIBERESPONSE.fields_by_name['trades'].message_type = vega__pb2._TRADE -_TRANSFERRESPONSESSUBSCRIBERESPONSE.fields_by_name['response'].message_type = vega__pb2._TRANSFERRESPONSE -_PARTYACCOUNTSREQUEST.fields_by_name['type'].enum_type = vega__pb2._ACCOUNTTYPE -_PARTYACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = vega__pb2._ACCOUNT -_MARKETACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = vega__pb2._ACCOUNT -_FEEINFRASTRUCTUREACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = vega__pb2._ACCOUNT -_PREPAREPROPOSALSUBMISSIONREQUEST.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._PROPOSALSUBMISSION -_PREPAREPROPOSALSUBMISSIONRESPONSE.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._PROPOSALSUBMISSION -_PREPAREVOTESUBMISSIONREQUEST.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._VOTESUBMISSION -_PREPAREVOTESUBMISSIONRESPONSE.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._VOTESUBMISSION -_PREPARELIQUIDITYPROVISIONREQUEST.fields_by_name['submission'].message_type = commands_dot_v1_dot_commands__pb2._LIQUIDITYPROVISIONSUBMISSION -_ORDERBYIDRESPONSE.fields_by_name['order'].message_type = vega__pb2._ORDER -_ORDERVERSIONSBYIDREQUEST.fields_by_name['pagination'].message_type = _PAGINATION -_ORDERVERSIONSBYIDRESPONSE.fields_by_name['orders'].message_type = vega__pb2._ORDER -_ESTIMATEFEEREQUEST.fields_by_name['order'].message_type = vega__pb2._ORDER -_ESTIMATEFEERESPONSE.fields_by_name['fee'].message_type = vega__pb2._FEE -_ESTIMATEMARGINREQUEST.fields_by_name['order'].message_type = vega__pb2._ORDER -_ESTIMATEMARGINRESPONSE.fields_by_name['margin_levels'].message_type = vega__pb2._MARGINLEVELS -_OBSERVEEVENTBUSREQUEST.fields_by_name['type'].enum_type = events_dot_v1_dot_events__pb2._BUSEVENTTYPE -_OBSERVEEVENTBUSRESPONSE.fields_by_name['events'].message_type = events_dot_v1_dot_events__pb2._BUSEVENT -_STATISTICSRESPONSE.fields_by_name['statistics'].message_type = vega__pb2._STATISTICS -_WITHDRAWALSRESPONSE.fields_by_name['withdrawals'].message_type = vega__pb2._WITHDRAWAL -_WITHDRAWALRESPONSE.fields_by_name['withdrawal'].message_type = vega__pb2._WITHDRAWAL -_DEPOSITSRESPONSE.fields_by_name['deposits'].message_type = vega__pb2._DEPOSIT -_DEPOSITRESPONSE.fields_by_name['deposit'].message_type = vega__pb2._DEPOSIT -_NETWORKPARAMETERSRESPONSE.fields_by_name['network_parameters'].message_type = vega__pb2._NETWORKPARAMETER -_LIQUIDITYPROVISIONSRESPONSE.fields_by_name['liquidity_provisions'].message_type = vega__pb2._LIQUIDITYPROVISION -_ORACLESPECRESPONSE.fields_by_name['oracle_spec'].message_type = oracles_dot_v1_dot_spec__pb2._ORACLESPEC -_ORACLESPECSRESPONSE.fields_by_name['oracle_specs'].message_type = oracles_dot_v1_dot_spec__pb2._ORACLESPEC -_ORACLEDATABYSPECRESPONSE.fields_by_name['oracle_data'].message_type = oracles_dot_v1_dot_data__pb2._ORACLEDATA -DESCRIPTOR.message_types_by_name['PropagateChainEventRequest'] = _PROPAGATECHAINEVENTREQUEST -DESCRIPTOR.message_types_by_name['PropagateChainEventResponse'] = _PROPAGATECHAINEVENTRESPONSE -DESCRIPTOR.message_types_by_name['SubmitTransactionRequest'] = _SUBMITTRANSACTIONREQUEST -DESCRIPTOR.message_types_by_name['SubmitTransactionResponse'] = _SUBMITTRANSACTIONRESPONSE -DESCRIPTOR.message_types_by_name['SubmitTransactionV2Request'] = _SUBMITTRANSACTIONV2REQUEST -DESCRIPTOR.message_types_by_name['SubmitTransactionV2Response'] = _SUBMITTRANSACTIONV2RESPONSE -DESCRIPTOR.message_types_by_name['PrepareWithdrawRequest'] = _PREPAREWITHDRAWREQUEST -DESCRIPTOR.message_types_by_name['PrepareWithdrawResponse'] = _PREPAREWITHDRAWRESPONSE -DESCRIPTOR.message_types_by_name['PrepareSubmitOrderResponse'] = _PREPARESUBMITORDERRESPONSE -DESCRIPTOR.message_types_by_name['PrepareCancelOrderResponse'] = _PREPARECANCELORDERRESPONSE -DESCRIPTOR.message_types_by_name['PrepareAmendOrderResponse'] = _PREPAREAMENDORDERRESPONSE -DESCRIPTOR.message_types_by_name['PrepareSubmitOrderRequest'] = _PREPARESUBMITORDERREQUEST -DESCRIPTOR.message_types_by_name['PrepareCancelOrderRequest'] = _PREPARECANCELORDERREQUEST -DESCRIPTOR.message_types_by_name['PrepareAmendOrderRequest'] = _PREPAREAMENDORDERREQUEST -DESCRIPTOR.message_types_by_name['AssetsRequest'] = _ASSETSREQUEST -DESCRIPTOR.message_types_by_name['AssetsResponse'] = _ASSETSRESPONSE -DESCRIPTOR.message_types_by_name['AssetByIDRequest'] = _ASSETBYIDREQUEST -DESCRIPTOR.message_types_by_name['AssetByIDResponse'] = _ASSETBYIDRESPONSE -DESCRIPTOR.message_types_by_name['GetNodeSignaturesAggregateRequest'] = _GETNODESIGNATURESAGGREGATEREQUEST -DESCRIPTOR.message_types_by_name['GetNodeSignaturesAggregateResponse'] = _GETNODESIGNATURESAGGREGATERESPONSE -DESCRIPTOR.message_types_by_name['OptionalProposalState'] = _OPTIONALPROPOSALSTATE -DESCRIPTOR.message_types_by_name['GetProposalsRequest'] = _GETPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['GetProposalsResponse'] = _GETPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['GetProposalsByPartyRequest'] = _GETPROPOSALSBYPARTYREQUEST -DESCRIPTOR.message_types_by_name['GetProposalsByPartyResponse'] = _GETPROPOSALSBYPARTYRESPONSE -DESCRIPTOR.message_types_by_name['GetVotesByPartyRequest'] = _GETVOTESBYPARTYREQUEST -DESCRIPTOR.message_types_by_name['GetVotesByPartyResponse'] = _GETVOTESBYPARTYRESPONSE -DESCRIPTOR.message_types_by_name['GetNewMarketProposalsRequest'] = _GETNEWMARKETPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['GetNewMarketProposalsResponse'] = _GETNEWMARKETPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['GetUpdateMarketProposalsRequest'] = _GETUPDATEMARKETPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['GetUpdateMarketProposalsResponse'] = _GETUPDATEMARKETPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['GetNetworkParametersProposalsRequest'] = _GETNETWORKPARAMETERSPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['GetNetworkParametersProposalsResponse'] = _GETNETWORKPARAMETERSPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['GetNewAssetProposalsRequest'] = _GETNEWASSETPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['GetNewAssetProposalsResponse'] = _GETNEWASSETPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['GetProposalByIDRequest'] = _GETPROPOSALBYIDREQUEST -DESCRIPTOR.message_types_by_name['GetProposalByIDResponse'] = _GETPROPOSALBYIDRESPONSE -DESCRIPTOR.message_types_by_name['GetProposalByReferenceRequest'] = _GETPROPOSALBYREFERENCEREQUEST -DESCRIPTOR.message_types_by_name['GetProposalByReferenceResponse'] = _GETPROPOSALBYREFERENCERESPONSE -DESCRIPTOR.message_types_by_name['ObserveGovernanceRequest'] = _OBSERVEGOVERNANCEREQUEST -DESCRIPTOR.message_types_by_name['ObserveGovernanceResponse'] = _OBSERVEGOVERNANCERESPONSE -DESCRIPTOR.message_types_by_name['ObservePartyProposalsRequest'] = _OBSERVEPARTYPROPOSALSREQUEST -DESCRIPTOR.message_types_by_name['ObservePartyProposalsResponse'] = _OBSERVEPARTYPROPOSALSRESPONSE -DESCRIPTOR.message_types_by_name['ObserveProposalVotesRequest'] = _OBSERVEPROPOSALVOTESREQUEST -DESCRIPTOR.message_types_by_name['ObserveProposalVotesResponse'] = _OBSERVEPROPOSALVOTESRESPONSE -DESCRIPTOR.message_types_by_name['ObservePartyVotesRequest'] = _OBSERVEPARTYVOTESREQUEST -DESCRIPTOR.message_types_by_name['ObservePartyVotesResponse'] = _OBSERVEPARTYVOTESRESPONSE -DESCRIPTOR.message_types_by_name['MarginLevelsSubscribeRequest'] = _MARGINLEVELSSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['MarginLevelsSubscribeResponse'] = _MARGINLEVELSSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['MarginLevelsRequest'] = _MARGINLEVELSREQUEST -DESCRIPTOR.message_types_by_name['MarginLevelsResponse'] = _MARGINLEVELSRESPONSE -DESCRIPTOR.message_types_by_name['MarketsDataSubscribeRequest'] = _MARKETSDATASUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['MarketsDataSubscribeResponse'] = _MARKETSDATASUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['MarketDataByIDRequest'] = _MARKETDATABYIDREQUEST -DESCRIPTOR.message_types_by_name['MarketDataByIDResponse'] = _MARKETDATABYIDRESPONSE -DESCRIPTOR.message_types_by_name['MarketsDataRequest'] = _MARKETSDATAREQUEST -DESCRIPTOR.message_types_by_name['MarketsDataResponse'] = _MARKETSDATARESPONSE -DESCRIPTOR.message_types_by_name['LastTradeRequest'] = _LASTTRADEREQUEST -DESCRIPTOR.message_types_by_name['LastTradeResponse'] = _LASTTRADERESPONSE -DESCRIPTOR.message_types_by_name['MarketByIDRequest'] = _MARKETBYIDREQUEST -DESCRIPTOR.message_types_by_name['MarketByIDResponse'] = _MARKETBYIDRESPONSE -DESCRIPTOR.message_types_by_name['PartyByIDRequest'] = _PARTYBYIDREQUEST -DESCRIPTOR.message_types_by_name['PartyByIDResponse'] = _PARTYBYIDRESPONSE -DESCRIPTOR.message_types_by_name['PartiesRequest'] = _PARTIESREQUEST -DESCRIPTOR.message_types_by_name['PartiesResponse'] = _PARTIESRESPONSE -DESCRIPTOR.message_types_by_name['TradesByPartyRequest'] = _TRADESBYPARTYREQUEST -DESCRIPTOR.message_types_by_name['TradesByPartyResponse'] = _TRADESBYPARTYRESPONSE -DESCRIPTOR.message_types_by_name['TradesByOrderRequest'] = _TRADESBYORDERREQUEST -DESCRIPTOR.message_types_by_name['TradesByOrderResponse'] = _TRADESBYORDERRESPONSE -DESCRIPTOR.message_types_by_name['AccountsSubscribeRequest'] = _ACCOUNTSSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['AccountsSubscribeResponse'] = _ACCOUNTSSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['OrdersSubscribeRequest'] = _ORDERSSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['TradesSubscribeRequest'] = _TRADESSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['CandlesSubscribeRequest'] = _CANDLESSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['CandlesSubscribeResponse'] = _CANDLESSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['MarketDepthSubscribeRequest'] = _MARKETDEPTHSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['MarketDepthSubscribeResponse'] = _MARKETDEPTHSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['MarketDepthUpdatesSubscribeRequest'] = _MARKETDEPTHUPDATESSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['MarketDepthUpdatesSubscribeResponse'] = _MARKETDEPTHUPDATESSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['PositionsSubscribeRequest'] = _POSITIONSSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['PositionsSubscribeResponse'] = _POSITIONSSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['OrdersByMarketRequest'] = _ORDERSBYMARKETREQUEST -DESCRIPTOR.message_types_by_name['OrdersByMarketResponse'] = _ORDERSBYMARKETRESPONSE -DESCRIPTOR.message_types_by_name['OrdersByPartyRequest'] = _ORDERSBYPARTYREQUEST -DESCRIPTOR.message_types_by_name['OrdersByPartyResponse'] = _ORDERSBYPARTYRESPONSE -DESCRIPTOR.message_types_by_name['OrderByMarketAndIDRequest'] = _ORDERBYMARKETANDIDREQUEST -DESCRIPTOR.message_types_by_name['OrderByMarketAndIDResponse'] = _ORDERBYMARKETANDIDRESPONSE -DESCRIPTOR.message_types_by_name['OrderByReferenceRequest'] = _ORDERBYREFERENCEREQUEST -DESCRIPTOR.message_types_by_name['OrderByReferenceResponse'] = _ORDERBYREFERENCERESPONSE -DESCRIPTOR.message_types_by_name['MarketsRequest'] = _MARKETSREQUEST -DESCRIPTOR.message_types_by_name['MarketsResponse'] = _MARKETSRESPONSE -DESCRIPTOR.message_types_by_name['CandlesRequest'] = _CANDLESREQUEST -DESCRIPTOR.message_types_by_name['CandlesResponse'] = _CANDLESRESPONSE -DESCRIPTOR.message_types_by_name['MarketDepthRequest'] = _MARKETDEPTHREQUEST -DESCRIPTOR.message_types_by_name['MarketDepthResponse'] = _MARKETDEPTHRESPONSE -DESCRIPTOR.message_types_by_name['TradesByMarketRequest'] = _TRADESBYMARKETREQUEST -DESCRIPTOR.message_types_by_name['TradesByMarketResponse'] = _TRADESBYMARKETRESPONSE -DESCRIPTOR.message_types_by_name['PositionsByPartyRequest'] = _POSITIONSBYPARTYREQUEST -DESCRIPTOR.message_types_by_name['PositionsByPartyResponse'] = _POSITIONSBYPARTYRESPONSE -DESCRIPTOR.message_types_by_name['GetVegaTimeRequest'] = _GETVEGATIMEREQUEST -DESCRIPTOR.message_types_by_name['GetVegaTimeResponse'] = _GETVEGATIMERESPONSE -DESCRIPTOR.message_types_by_name['Pagination'] = _PAGINATION -DESCRIPTOR.message_types_by_name['OrdersSubscribeResponse'] = _ORDERSSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['TradesSubscribeResponse'] = _TRADESSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['TransferResponsesSubscribeRequest'] = _TRANSFERRESPONSESSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['TransferResponsesSubscribeResponse'] = _TRANSFERRESPONSESSUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['PartyAccountsRequest'] = _PARTYACCOUNTSREQUEST -DESCRIPTOR.message_types_by_name['PartyAccountsResponse'] = _PARTYACCOUNTSRESPONSE -DESCRIPTOR.message_types_by_name['MarketAccountsRequest'] = _MARKETACCOUNTSREQUEST -DESCRIPTOR.message_types_by_name['MarketAccountsResponse'] = _MARKETACCOUNTSRESPONSE -DESCRIPTOR.message_types_by_name['FeeInfrastructureAccountsRequest'] = _FEEINFRASTRUCTUREACCOUNTSREQUEST -DESCRIPTOR.message_types_by_name['FeeInfrastructureAccountsResponse'] = _FEEINFRASTRUCTUREACCOUNTSRESPONSE -DESCRIPTOR.message_types_by_name['PrepareProposalSubmissionRequest'] = _PREPAREPROPOSALSUBMISSIONREQUEST -DESCRIPTOR.message_types_by_name['PrepareProposalSubmissionResponse'] = _PREPAREPROPOSALSUBMISSIONRESPONSE -DESCRIPTOR.message_types_by_name['PrepareVoteSubmissionRequest'] = _PREPAREVOTESUBMISSIONREQUEST -DESCRIPTOR.message_types_by_name['PrepareVoteSubmissionResponse'] = _PREPAREVOTESUBMISSIONRESPONSE -DESCRIPTOR.message_types_by_name['PrepareLiquidityProvisionRequest'] = _PREPARELIQUIDITYPROVISIONREQUEST -DESCRIPTOR.message_types_by_name['PrepareLiquidityProvisionResponse'] = _PREPARELIQUIDITYPROVISIONRESPONSE -DESCRIPTOR.message_types_by_name['OrderByIDRequest'] = _ORDERBYIDREQUEST -DESCRIPTOR.message_types_by_name['OrderByIDResponse'] = _ORDERBYIDRESPONSE -DESCRIPTOR.message_types_by_name['OrderVersionsByIDRequest'] = _ORDERVERSIONSBYIDREQUEST -DESCRIPTOR.message_types_by_name['OrderVersionsByIDResponse'] = _ORDERVERSIONSBYIDRESPONSE -DESCRIPTOR.message_types_by_name['EstimateFeeRequest'] = _ESTIMATEFEEREQUEST -DESCRIPTOR.message_types_by_name['EstimateFeeResponse'] = _ESTIMATEFEERESPONSE -DESCRIPTOR.message_types_by_name['EstimateMarginRequest'] = _ESTIMATEMARGINREQUEST -DESCRIPTOR.message_types_by_name['EstimateMarginResponse'] = _ESTIMATEMARGINRESPONSE -DESCRIPTOR.message_types_by_name['ObserveEventBusRequest'] = _OBSERVEEVENTBUSREQUEST -DESCRIPTOR.message_types_by_name['ObserveEventBusResponse'] = _OBSERVEEVENTBUSRESPONSE -DESCRIPTOR.message_types_by_name['StatisticsRequest'] = _STATISTICSREQUEST -DESCRIPTOR.message_types_by_name['StatisticsResponse'] = _STATISTICSRESPONSE -DESCRIPTOR.message_types_by_name['WithdrawalsRequest'] = _WITHDRAWALSREQUEST -DESCRIPTOR.message_types_by_name['WithdrawalsResponse'] = _WITHDRAWALSRESPONSE -DESCRIPTOR.message_types_by_name['WithdrawalRequest'] = _WITHDRAWALREQUEST -DESCRIPTOR.message_types_by_name['WithdrawalResponse'] = _WITHDRAWALRESPONSE -DESCRIPTOR.message_types_by_name['ERC20WithdrawalApprovalRequest'] = _ERC20WITHDRAWALAPPROVALREQUEST -DESCRIPTOR.message_types_by_name['ERC20WithdrawalApprovalResponse'] = _ERC20WITHDRAWALAPPROVALRESPONSE -DESCRIPTOR.message_types_by_name['DepositsRequest'] = _DEPOSITSREQUEST -DESCRIPTOR.message_types_by_name['DepositsResponse'] = _DEPOSITSRESPONSE -DESCRIPTOR.message_types_by_name['DepositRequest'] = _DEPOSITREQUEST -DESCRIPTOR.message_types_by_name['DepositResponse'] = _DEPOSITRESPONSE -DESCRIPTOR.message_types_by_name['NetworkParametersRequest'] = _NETWORKPARAMETERSREQUEST -DESCRIPTOR.message_types_by_name['NetworkParametersResponse'] = _NETWORKPARAMETERSRESPONSE -DESCRIPTOR.message_types_by_name['LiquidityProvisionsRequest'] = _LIQUIDITYPROVISIONSREQUEST -DESCRIPTOR.message_types_by_name['LiquidityProvisionsResponse'] = _LIQUIDITYPROVISIONSRESPONSE -DESCRIPTOR.message_types_by_name['OracleSpecRequest'] = _ORACLESPECREQUEST -DESCRIPTOR.message_types_by_name['OracleSpecResponse'] = _ORACLESPECRESPONSE -DESCRIPTOR.message_types_by_name['OracleSpecsRequest'] = _ORACLESPECSREQUEST -DESCRIPTOR.message_types_by_name['OracleSpecsResponse'] = _ORACLESPECSRESPONSE -DESCRIPTOR.message_types_by_name['OracleDataBySpecRequest'] = _ORACLEDATABYSPECREQUEST -DESCRIPTOR.message_types_by_name['OracleDataBySpecResponse'] = _ORACLEDATABYSPECRESPONSE -DESCRIPTOR.message_types_by_name['LastBlockHeightRequest'] = _LASTBLOCKHEIGHTREQUEST -DESCRIPTOR.message_types_by_name['LastBlockHeightResponse'] = _LASTBLOCKHEIGHTRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PropagateChainEventRequest = _reflection.GeneratedProtocolMessageType('PropagateChainEventRequest', (_message.Message,), { - 'DESCRIPTOR' : _PROPAGATECHAINEVENTREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PropagateChainEventRequest) - }) -_sym_db.RegisterMessage(PropagateChainEventRequest) - -PropagateChainEventResponse = _reflection.GeneratedProtocolMessageType('PropagateChainEventResponse', (_message.Message,), { - 'DESCRIPTOR' : _PROPAGATECHAINEVENTRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PropagateChainEventResponse) - }) -_sym_db.RegisterMessage(PropagateChainEventResponse) - -SubmitTransactionRequest = _reflection.GeneratedProtocolMessageType('SubmitTransactionRequest', (_message.Message,), { - 'DESCRIPTOR' : _SUBMITTRANSACTIONREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionRequest) - }) -_sym_db.RegisterMessage(SubmitTransactionRequest) - -SubmitTransactionResponse = _reflection.GeneratedProtocolMessageType('SubmitTransactionResponse', (_message.Message,), { - 'DESCRIPTOR' : _SUBMITTRANSACTIONRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionResponse) - }) -_sym_db.RegisterMessage(SubmitTransactionResponse) - -SubmitTransactionV2Request = _reflection.GeneratedProtocolMessageType('SubmitTransactionV2Request', (_message.Message,), { - 'DESCRIPTOR' : _SUBMITTRANSACTIONV2REQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) - }) -_sym_db.RegisterMessage(SubmitTransactionV2Request) - -SubmitTransactionV2Response = _reflection.GeneratedProtocolMessageType('SubmitTransactionV2Response', (_message.Message,), { - 'DESCRIPTOR' : _SUBMITTRANSACTIONV2RESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) - }) -_sym_db.RegisterMessage(SubmitTransactionV2Response) - -PrepareWithdrawRequest = _reflection.GeneratedProtocolMessageType('PrepareWithdrawRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREWITHDRAWREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawRequest) - }) -_sym_db.RegisterMessage(PrepareWithdrawRequest) - -PrepareWithdrawResponse = _reflection.GeneratedProtocolMessageType('PrepareWithdrawResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREWITHDRAWRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareWithdrawResponse) - }) -_sym_db.RegisterMessage(PrepareWithdrawResponse) - -PrepareSubmitOrderResponse = _reflection.GeneratedProtocolMessageType('PrepareSubmitOrderResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPARESUBMITORDERRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderResponse) - }) -_sym_db.RegisterMessage(PrepareSubmitOrderResponse) - -PrepareCancelOrderResponse = _reflection.GeneratedProtocolMessageType('PrepareCancelOrderResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPARECANCELORDERRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderResponse) - }) -_sym_db.RegisterMessage(PrepareCancelOrderResponse) - -PrepareAmendOrderResponse = _reflection.GeneratedProtocolMessageType('PrepareAmendOrderResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREAMENDORDERRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderResponse) - }) -_sym_db.RegisterMessage(PrepareAmendOrderResponse) - -PrepareSubmitOrderRequest = _reflection.GeneratedProtocolMessageType('PrepareSubmitOrderRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPARESUBMITORDERREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareSubmitOrderRequest) - }) -_sym_db.RegisterMessage(PrepareSubmitOrderRequest) - -PrepareCancelOrderRequest = _reflection.GeneratedProtocolMessageType('PrepareCancelOrderRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPARECANCELORDERREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareCancelOrderRequest) - }) -_sym_db.RegisterMessage(PrepareCancelOrderRequest) - -PrepareAmendOrderRequest = _reflection.GeneratedProtocolMessageType('PrepareAmendOrderRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREAMENDORDERREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareAmendOrderRequest) - }) -_sym_db.RegisterMessage(PrepareAmendOrderRequest) - -AssetsRequest = _reflection.GeneratedProtocolMessageType('AssetsRequest', (_message.Message,), { - 'DESCRIPTOR' : _ASSETSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AssetsRequest) - }) -_sym_db.RegisterMessage(AssetsRequest) - -AssetsResponse = _reflection.GeneratedProtocolMessageType('AssetsResponse', (_message.Message,), { - 'DESCRIPTOR' : _ASSETSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AssetsResponse) - }) -_sym_db.RegisterMessage(AssetsResponse) - -AssetByIDRequest = _reflection.GeneratedProtocolMessageType('AssetByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _ASSETBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AssetByIDRequest) - }) -_sym_db.RegisterMessage(AssetByIDRequest) - -AssetByIDResponse = _reflection.GeneratedProtocolMessageType('AssetByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _ASSETBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AssetByIDResponse) - }) -_sym_db.RegisterMessage(AssetByIDResponse) - -GetNodeSignaturesAggregateRequest = _reflection.GeneratedProtocolMessageType('GetNodeSignaturesAggregateRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETNODESIGNATURESAGGREGATEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateRequest) - }) -_sym_db.RegisterMessage(GetNodeSignaturesAggregateRequest) - -GetNodeSignaturesAggregateResponse = _reflection.GeneratedProtocolMessageType('GetNodeSignaturesAggregateResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETNODESIGNATURESAGGREGATERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNodeSignaturesAggregateResponse) - }) -_sym_db.RegisterMessage(GetNodeSignaturesAggregateResponse) - -OptionalProposalState = _reflection.GeneratedProtocolMessageType('OptionalProposalState', (_message.Message,), { - 'DESCRIPTOR' : _OPTIONALPROPOSALSTATE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OptionalProposalState) - }) -_sym_db.RegisterMessage(OptionalProposalState) - -GetProposalsRequest = _reflection.GeneratedProtocolMessageType('GetProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalsRequest) - }) -_sym_db.RegisterMessage(GetProposalsRequest) - -GetProposalsResponse = _reflection.GeneratedProtocolMessageType('GetProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalsResponse) - }) -_sym_db.RegisterMessage(GetProposalsResponse) - -GetProposalsByPartyRequest = _reflection.GeneratedProtocolMessageType('GetProposalsByPartyRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALSBYPARTYREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyRequest) - }) -_sym_db.RegisterMessage(GetProposalsByPartyRequest) - -GetProposalsByPartyResponse = _reflection.GeneratedProtocolMessageType('GetProposalsByPartyResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALSBYPARTYRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalsByPartyResponse) - }) -_sym_db.RegisterMessage(GetProposalsByPartyResponse) - -GetVotesByPartyRequest = _reflection.GeneratedProtocolMessageType('GetVotesByPartyRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETVOTESBYPARTYREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyRequest) - }) -_sym_db.RegisterMessage(GetVotesByPartyRequest) - -GetVotesByPartyResponse = _reflection.GeneratedProtocolMessageType('GetVotesByPartyResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETVOTESBYPARTYRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetVotesByPartyResponse) - }) -_sym_db.RegisterMessage(GetVotesByPartyResponse) - -GetNewMarketProposalsRequest = _reflection.GeneratedProtocolMessageType('GetNewMarketProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETNEWMARKETPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsRequest) - }) -_sym_db.RegisterMessage(GetNewMarketProposalsRequest) - -GetNewMarketProposalsResponse = _reflection.GeneratedProtocolMessageType('GetNewMarketProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETNEWMARKETPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNewMarketProposalsResponse) - }) -_sym_db.RegisterMessage(GetNewMarketProposalsResponse) - -GetUpdateMarketProposalsRequest = _reflection.GeneratedProtocolMessageType('GetUpdateMarketProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETUPDATEMARKETPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsRequest) - }) -_sym_db.RegisterMessage(GetUpdateMarketProposalsRequest) - -GetUpdateMarketProposalsResponse = _reflection.GeneratedProtocolMessageType('GetUpdateMarketProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETUPDATEMARKETPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetUpdateMarketProposalsResponse) - }) -_sym_db.RegisterMessage(GetUpdateMarketProposalsResponse) - -GetNetworkParametersProposalsRequest = _reflection.GeneratedProtocolMessageType('GetNetworkParametersProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETNETWORKPARAMETERSPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsRequest) - }) -_sym_db.RegisterMessage(GetNetworkParametersProposalsRequest) - -GetNetworkParametersProposalsResponse = _reflection.GeneratedProtocolMessageType('GetNetworkParametersProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETNETWORKPARAMETERSPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNetworkParametersProposalsResponse) - }) -_sym_db.RegisterMessage(GetNetworkParametersProposalsResponse) - -GetNewAssetProposalsRequest = _reflection.GeneratedProtocolMessageType('GetNewAssetProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETNEWASSETPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsRequest) - }) -_sym_db.RegisterMessage(GetNewAssetProposalsRequest) - -GetNewAssetProposalsResponse = _reflection.GeneratedProtocolMessageType('GetNewAssetProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETNEWASSETPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetNewAssetProposalsResponse) - }) -_sym_db.RegisterMessage(GetNewAssetProposalsResponse) - -GetProposalByIDRequest = _reflection.GeneratedProtocolMessageType('GetProposalByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDRequest) - }) -_sym_db.RegisterMessage(GetProposalByIDRequest) - -GetProposalByIDResponse = _reflection.GeneratedProtocolMessageType('GetProposalByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalByIDResponse) - }) -_sym_db.RegisterMessage(GetProposalByIDResponse) - -GetProposalByReferenceRequest = _reflection.GeneratedProtocolMessageType('GetProposalByReferenceRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALBYREFERENCEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceRequest) - }) -_sym_db.RegisterMessage(GetProposalByReferenceRequest) - -GetProposalByReferenceResponse = _reflection.GeneratedProtocolMessageType('GetProposalByReferenceResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPROPOSALBYREFERENCERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetProposalByReferenceResponse) - }) -_sym_db.RegisterMessage(GetProposalByReferenceResponse) - -ObserveGovernanceRequest = _reflection.GeneratedProtocolMessageType('ObserveGovernanceRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEGOVERNANCEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceRequest) - }) -_sym_db.RegisterMessage(ObserveGovernanceRequest) - -ObserveGovernanceResponse = _reflection.GeneratedProtocolMessageType('ObserveGovernanceResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEGOVERNANCERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveGovernanceResponse) - }) -_sym_db.RegisterMessage(ObserveGovernanceResponse) - -ObservePartyProposalsRequest = _reflection.GeneratedProtocolMessageType('ObservePartyProposalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPARTYPROPOSALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsRequest) - }) -_sym_db.RegisterMessage(ObservePartyProposalsRequest) - -ObservePartyProposalsResponse = _reflection.GeneratedProtocolMessageType('ObservePartyProposalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPARTYPROPOSALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObservePartyProposalsResponse) - }) -_sym_db.RegisterMessage(ObservePartyProposalsResponse) - -ObserveProposalVotesRequest = _reflection.GeneratedProtocolMessageType('ObserveProposalVotesRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPROPOSALVOTESREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesRequest) - }) -_sym_db.RegisterMessage(ObserveProposalVotesRequest) - -ObserveProposalVotesResponse = _reflection.GeneratedProtocolMessageType('ObserveProposalVotesResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPROPOSALVOTESRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveProposalVotesResponse) - }) -_sym_db.RegisterMessage(ObserveProposalVotesResponse) - -ObservePartyVotesRequest = _reflection.GeneratedProtocolMessageType('ObservePartyVotesRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPARTYVOTESREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesRequest) - }) -_sym_db.RegisterMessage(ObservePartyVotesRequest) - -ObservePartyVotesResponse = _reflection.GeneratedProtocolMessageType('ObservePartyVotesResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEPARTYVOTESRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObservePartyVotesResponse) - }) -_sym_db.RegisterMessage(ObservePartyVotesResponse) - -MarginLevelsSubscribeRequest = _reflection.GeneratedProtocolMessageType('MarginLevelsSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARGINLEVELSSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeRequest) - }) -_sym_db.RegisterMessage(MarginLevelsSubscribeRequest) - -MarginLevelsSubscribeResponse = _reflection.GeneratedProtocolMessageType('MarginLevelsSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARGINLEVELSSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarginLevelsSubscribeResponse) - }) -_sym_db.RegisterMessage(MarginLevelsSubscribeResponse) - -MarginLevelsRequest = _reflection.GeneratedProtocolMessageType('MarginLevelsRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARGINLEVELSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarginLevelsRequest) - }) -_sym_db.RegisterMessage(MarginLevelsRequest) - -MarginLevelsResponse = _reflection.GeneratedProtocolMessageType('MarginLevelsResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARGINLEVELSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarginLevelsResponse) - }) -_sym_db.RegisterMessage(MarginLevelsResponse) - -MarketsDataSubscribeRequest = _reflection.GeneratedProtocolMessageType('MarketsDataSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSDATASUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeRequest) - }) -_sym_db.RegisterMessage(MarketsDataSubscribeRequest) - -MarketsDataSubscribeResponse = _reflection.GeneratedProtocolMessageType('MarketsDataSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSDATASUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsDataSubscribeResponse) - }) -_sym_db.RegisterMessage(MarketsDataSubscribeResponse) - -MarketDataByIDRequest = _reflection.GeneratedProtocolMessageType('MarketDataByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDATABYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDRequest) - }) -_sym_db.RegisterMessage(MarketDataByIDRequest) - -MarketDataByIDResponse = _reflection.GeneratedProtocolMessageType('MarketDataByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDATABYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDataByIDResponse) - }) -_sym_db.RegisterMessage(MarketDataByIDResponse) - -MarketsDataRequest = _reflection.GeneratedProtocolMessageType('MarketsDataRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSDATAREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsDataRequest) - }) -_sym_db.RegisterMessage(MarketsDataRequest) - -MarketsDataResponse = _reflection.GeneratedProtocolMessageType('MarketsDataResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSDATARESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsDataResponse) - }) -_sym_db.RegisterMessage(MarketsDataResponse) - -LastTradeRequest = _reflection.GeneratedProtocolMessageType('LastTradeRequest', (_message.Message,), { - 'DESCRIPTOR' : _LASTTRADEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LastTradeRequest) - }) -_sym_db.RegisterMessage(LastTradeRequest) - -LastTradeResponse = _reflection.GeneratedProtocolMessageType('LastTradeResponse', (_message.Message,), { - 'DESCRIPTOR' : _LASTTRADERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LastTradeResponse) - }) -_sym_db.RegisterMessage(LastTradeResponse) - -MarketByIDRequest = _reflection.GeneratedProtocolMessageType('MarketByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketByIDRequest) - }) -_sym_db.RegisterMessage(MarketByIDRequest) - -MarketByIDResponse = _reflection.GeneratedProtocolMessageType('MarketByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketByIDResponse) - }) -_sym_db.RegisterMessage(MarketByIDResponse) - -PartyByIDRequest = _reflection.GeneratedProtocolMessageType('PartyByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _PARTYBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartyByIDRequest) - }) -_sym_db.RegisterMessage(PartyByIDRequest) - -PartyByIDResponse = _reflection.GeneratedProtocolMessageType('PartyByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _PARTYBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartyByIDResponse) - }) -_sym_db.RegisterMessage(PartyByIDResponse) - -PartiesRequest = _reflection.GeneratedProtocolMessageType('PartiesRequest', (_message.Message,), { - 'DESCRIPTOR' : _PARTIESREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartiesRequest) - }) -_sym_db.RegisterMessage(PartiesRequest) - -PartiesResponse = _reflection.GeneratedProtocolMessageType('PartiesResponse', (_message.Message,), { - 'DESCRIPTOR' : _PARTIESRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartiesResponse) - }) -_sym_db.RegisterMessage(PartiesResponse) - -TradesByPartyRequest = _reflection.GeneratedProtocolMessageType('TradesByPartyRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYPARTYREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByPartyRequest) - }) -_sym_db.RegisterMessage(TradesByPartyRequest) - -TradesByPartyResponse = _reflection.GeneratedProtocolMessageType('TradesByPartyResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYPARTYRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByPartyResponse) - }) -_sym_db.RegisterMessage(TradesByPartyResponse) - -TradesByOrderRequest = _reflection.GeneratedProtocolMessageType('TradesByOrderRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYORDERREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByOrderRequest) - }) -_sym_db.RegisterMessage(TradesByOrderRequest) - -TradesByOrderResponse = _reflection.GeneratedProtocolMessageType('TradesByOrderResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYORDERRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByOrderResponse) - }) -_sym_db.RegisterMessage(TradesByOrderResponse) - -AccountsSubscribeRequest = _reflection.GeneratedProtocolMessageType('AccountsSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _ACCOUNTSSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeRequest) - }) -_sym_db.RegisterMessage(AccountsSubscribeRequest) - -AccountsSubscribeResponse = _reflection.GeneratedProtocolMessageType('AccountsSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _ACCOUNTSSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.AccountsSubscribeResponse) - }) -_sym_db.RegisterMessage(AccountsSubscribeResponse) - -OrdersSubscribeRequest = _reflection.GeneratedProtocolMessageType('OrdersSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeRequest) - }) -_sym_db.RegisterMessage(OrdersSubscribeRequest) - -TradesSubscribeRequest = _reflection.GeneratedProtocolMessageType('TradesSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRADESSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeRequest) - }) -_sym_db.RegisterMessage(TradesSubscribeRequest) - -CandlesSubscribeRequest = _reflection.GeneratedProtocolMessageType('CandlesSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _CANDLESSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeRequest) - }) -_sym_db.RegisterMessage(CandlesSubscribeRequest) - -CandlesSubscribeResponse = _reflection.GeneratedProtocolMessageType('CandlesSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _CANDLESSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.CandlesSubscribeResponse) - }) -_sym_db.RegisterMessage(CandlesSubscribeResponse) - -MarketDepthSubscribeRequest = _reflection.GeneratedProtocolMessageType('MarketDepthSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeRequest) - }) -_sym_db.RegisterMessage(MarketDepthSubscribeRequest) - -MarketDepthSubscribeResponse = _reflection.GeneratedProtocolMessageType('MarketDepthSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthSubscribeResponse) - }) -_sym_db.RegisterMessage(MarketDepthSubscribeResponse) - -MarketDepthUpdatesSubscribeRequest = _reflection.GeneratedProtocolMessageType('MarketDepthUpdatesSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHUPDATESSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeRequest) - }) -_sym_db.RegisterMessage(MarketDepthUpdatesSubscribeRequest) - -MarketDepthUpdatesSubscribeResponse = _reflection.GeneratedProtocolMessageType('MarketDepthUpdatesSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHUPDATESSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthUpdatesSubscribeResponse) - }) -_sym_db.RegisterMessage(MarketDepthUpdatesSubscribeResponse) - -PositionsSubscribeRequest = _reflection.GeneratedProtocolMessageType('PositionsSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _POSITIONSSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeRequest) - }) -_sym_db.RegisterMessage(PositionsSubscribeRequest) - -PositionsSubscribeResponse = _reflection.GeneratedProtocolMessageType('PositionsSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _POSITIONSSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PositionsSubscribeResponse) - }) -_sym_db.RegisterMessage(PositionsSubscribeResponse) - -OrdersByMarketRequest = _reflection.GeneratedProtocolMessageType('OrdersByMarketRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSBYMARKETREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketRequest) - }) -_sym_db.RegisterMessage(OrdersByMarketRequest) - -OrdersByMarketResponse = _reflection.GeneratedProtocolMessageType('OrdersByMarketResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSBYMARKETRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersByMarketResponse) - }) -_sym_db.RegisterMessage(OrdersByMarketResponse) - -OrdersByPartyRequest = _reflection.GeneratedProtocolMessageType('OrdersByPartyRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSBYPARTYREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyRequest) - }) -_sym_db.RegisterMessage(OrdersByPartyRequest) - -OrdersByPartyResponse = _reflection.GeneratedProtocolMessageType('OrdersByPartyResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSBYPARTYRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersByPartyResponse) - }) -_sym_db.RegisterMessage(OrdersByPartyResponse) - -OrderByMarketAndIDRequest = _reflection.GeneratedProtocolMessageType('OrderByMarketAndIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYMARKETANDIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDRequest) - }) -_sym_db.RegisterMessage(OrderByMarketAndIDRequest) - -OrderByMarketAndIDResponse = _reflection.GeneratedProtocolMessageType('OrderByMarketAndIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYMARKETANDIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByMarketAndIDResponse) - }) -_sym_db.RegisterMessage(OrderByMarketAndIDResponse) - -OrderByReferenceRequest = _reflection.GeneratedProtocolMessageType('OrderByReferenceRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYREFERENCEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceRequest) - }) -_sym_db.RegisterMessage(OrderByReferenceRequest) - -OrderByReferenceResponse = _reflection.GeneratedProtocolMessageType('OrderByReferenceResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYREFERENCERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByReferenceResponse) - }) -_sym_db.RegisterMessage(OrderByReferenceResponse) - -MarketsRequest = _reflection.GeneratedProtocolMessageType('MarketsRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsRequest) - }) -_sym_db.RegisterMessage(MarketsRequest) - -MarketsResponse = _reflection.GeneratedProtocolMessageType('MarketsResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketsResponse) - }) -_sym_db.RegisterMessage(MarketsResponse) - -CandlesRequest = _reflection.GeneratedProtocolMessageType('CandlesRequest', (_message.Message,), { - 'DESCRIPTOR' : _CANDLESREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.CandlesRequest) - }) -_sym_db.RegisterMessage(CandlesRequest) - -CandlesResponse = _reflection.GeneratedProtocolMessageType('CandlesResponse', (_message.Message,), { - 'DESCRIPTOR' : _CANDLESRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.CandlesResponse) - }) -_sym_db.RegisterMessage(CandlesResponse) - -MarketDepthRequest = _reflection.GeneratedProtocolMessageType('MarketDepthRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthRequest) - }) -_sym_db.RegisterMessage(MarketDepthRequest) - -MarketDepthResponse = _reflection.GeneratedProtocolMessageType('MarketDepthResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETDEPTHRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketDepthResponse) - }) -_sym_db.RegisterMessage(MarketDepthResponse) - -TradesByMarketRequest = _reflection.GeneratedProtocolMessageType('TradesByMarketRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYMARKETREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByMarketRequest) - }) -_sym_db.RegisterMessage(TradesByMarketRequest) - -TradesByMarketResponse = _reflection.GeneratedProtocolMessageType('TradesByMarketResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRADESBYMARKETRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesByMarketResponse) - }) -_sym_db.RegisterMessage(TradesByMarketResponse) - -PositionsByPartyRequest = _reflection.GeneratedProtocolMessageType('PositionsByPartyRequest', (_message.Message,), { - 'DESCRIPTOR' : _POSITIONSBYPARTYREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyRequest) - }) -_sym_db.RegisterMessage(PositionsByPartyRequest) - -PositionsByPartyResponse = _reflection.GeneratedProtocolMessageType('PositionsByPartyResponse', (_message.Message,), { - 'DESCRIPTOR' : _POSITIONSBYPARTYRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PositionsByPartyResponse) - }) -_sym_db.RegisterMessage(PositionsByPartyResponse) - -GetVegaTimeRequest = _reflection.GeneratedProtocolMessageType('GetVegaTimeRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETVEGATIMEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) - }) -_sym_db.RegisterMessage(GetVegaTimeRequest) - -GetVegaTimeResponse = _reflection.GeneratedProtocolMessageType('GetVegaTimeResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETVEGATIMERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) - }) -_sym_db.RegisterMessage(GetVegaTimeResponse) - -Pagination = _reflection.GeneratedProtocolMessageType('Pagination', (_message.Message,), { - 'DESCRIPTOR' : _PAGINATION, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.Pagination) - }) -_sym_db.RegisterMessage(Pagination) - -OrdersSubscribeResponse = _reflection.GeneratedProtocolMessageType('OrdersSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERSSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrdersSubscribeResponse) - }) -_sym_db.RegisterMessage(OrdersSubscribeResponse) - -TradesSubscribeResponse = _reflection.GeneratedProtocolMessageType('TradesSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRADESSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TradesSubscribeResponse) - }) -_sym_db.RegisterMessage(TradesSubscribeResponse) - -TransferResponsesSubscribeRequest = _reflection.GeneratedProtocolMessageType('TransferResponsesSubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRANSFERRESPONSESSUBSCRIBEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeRequest) - }) -_sym_db.RegisterMessage(TransferResponsesSubscribeRequest) - -TransferResponsesSubscribeResponse = _reflection.GeneratedProtocolMessageType('TransferResponsesSubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRANSFERRESPONSESSUBSCRIBERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.TransferResponsesSubscribeResponse) - }) -_sym_db.RegisterMessage(TransferResponsesSubscribeResponse) - -PartyAccountsRequest = _reflection.GeneratedProtocolMessageType('PartyAccountsRequest', (_message.Message,), { - 'DESCRIPTOR' : _PARTYACCOUNTSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartyAccountsRequest) - }) -_sym_db.RegisterMessage(PartyAccountsRequest) - -PartyAccountsResponse = _reflection.GeneratedProtocolMessageType('PartyAccountsResponse', (_message.Message,), { - 'DESCRIPTOR' : _PARTYACCOUNTSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PartyAccountsResponse) - }) -_sym_db.RegisterMessage(PartyAccountsResponse) - -MarketAccountsRequest = _reflection.GeneratedProtocolMessageType('MarketAccountsRequest', (_message.Message,), { - 'DESCRIPTOR' : _MARKETACCOUNTSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketAccountsRequest) - }) -_sym_db.RegisterMessage(MarketAccountsRequest) - -MarketAccountsResponse = _reflection.GeneratedProtocolMessageType('MarketAccountsResponse', (_message.Message,), { - 'DESCRIPTOR' : _MARKETACCOUNTSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.MarketAccountsResponse) - }) -_sym_db.RegisterMessage(MarketAccountsResponse) - -FeeInfrastructureAccountsRequest = _reflection.GeneratedProtocolMessageType('FeeInfrastructureAccountsRequest', (_message.Message,), { - 'DESCRIPTOR' : _FEEINFRASTRUCTUREACCOUNTSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsRequest) - }) -_sym_db.RegisterMessage(FeeInfrastructureAccountsRequest) - -FeeInfrastructureAccountsResponse = _reflection.GeneratedProtocolMessageType('FeeInfrastructureAccountsResponse', (_message.Message,), { - 'DESCRIPTOR' : _FEEINFRASTRUCTUREACCOUNTSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.FeeInfrastructureAccountsResponse) - }) -_sym_db.RegisterMessage(FeeInfrastructureAccountsResponse) - -PrepareProposalSubmissionRequest = _reflection.GeneratedProtocolMessageType('PrepareProposalSubmissionRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREPROPOSALSUBMISSIONREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionRequest) - }) -_sym_db.RegisterMessage(PrepareProposalSubmissionRequest) - -PrepareProposalSubmissionResponse = _reflection.GeneratedProtocolMessageType('PrepareProposalSubmissionResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREPROPOSALSUBMISSIONRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareProposalSubmissionResponse) - }) -_sym_db.RegisterMessage(PrepareProposalSubmissionResponse) - -PrepareVoteSubmissionRequest = _reflection.GeneratedProtocolMessageType('PrepareVoteSubmissionRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREVOTESUBMISSIONREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionRequest) - }) -_sym_db.RegisterMessage(PrepareVoteSubmissionRequest) - -PrepareVoteSubmissionResponse = _reflection.GeneratedProtocolMessageType('PrepareVoteSubmissionResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPAREVOTESUBMISSIONRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareVoteSubmissionResponse) - }) -_sym_db.RegisterMessage(PrepareVoteSubmissionResponse) - -PrepareLiquidityProvisionRequest = _reflection.GeneratedProtocolMessageType('PrepareLiquidityProvisionRequest', (_message.Message,), { - 'DESCRIPTOR' : _PREPARELIQUIDITYPROVISIONREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionRequest) - }) -_sym_db.RegisterMessage(PrepareLiquidityProvisionRequest) - -PrepareLiquidityProvisionResponse = _reflection.GeneratedProtocolMessageType('PrepareLiquidityProvisionResponse', (_message.Message,), { - 'DESCRIPTOR' : _PREPARELIQUIDITYPROVISIONRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.PrepareLiquidityProvisionResponse) - }) -_sym_db.RegisterMessage(PrepareLiquidityProvisionResponse) - -OrderByIDRequest = _reflection.GeneratedProtocolMessageType('OrderByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByIDRequest) - }) -_sym_db.RegisterMessage(OrderByIDRequest) - -OrderByIDResponse = _reflection.GeneratedProtocolMessageType('OrderByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderByIDResponse) - }) -_sym_db.RegisterMessage(OrderByIDResponse) - -OrderVersionsByIDRequest = _reflection.GeneratedProtocolMessageType('OrderVersionsByIDRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORDERVERSIONSBYIDREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDRequest) - }) -_sym_db.RegisterMessage(OrderVersionsByIDRequest) - -OrderVersionsByIDResponse = _reflection.GeneratedProtocolMessageType('OrderVersionsByIDResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORDERVERSIONSBYIDRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OrderVersionsByIDResponse) - }) -_sym_db.RegisterMessage(OrderVersionsByIDResponse) - -EstimateFeeRequest = _reflection.GeneratedProtocolMessageType('EstimateFeeRequest', (_message.Message,), { - 'DESCRIPTOR' : _ESTIMATEFEEREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.EstimateFeeRequest) - }) -_sym_db.RegisterMessage(EstimateFeeRequest) - -EstimateFeeResponse = _reflection.GeneratedProtocolMessageType('EstimateFeeResponse', (_message.Message,), { - 'DESCRIPTOR' : _ESTIMATEFEERESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.EstimateFeeResponse) - }) -_sym_db.RegisterMessage(EstimateFeeResponse) - -EstimateMarginRequest = _reflection.GeneratedProtocolMessageType('EstimateMarginRequest', (_message.Message,), { - 'DESCRIPTOR' : _ESTIMATEMARGINREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.EstimateMarginRequest) - }) -_sym_db.RegisterMessage(EstimateMarginRequest) - -EstimateMarginResponse = _reflection.GeneratedProtocolMessageType('EstimateMarginResponse', (_message.Message,), { - 'DESCRIPTOR' : _ESTIMATEMARGINRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.EstimateMarginResponse) - }) -_sym_db.RegisterMessage(EstimateMarginResponse) - -ObserveEventBusRequest = _reflection.GeneratedProtocolMessageType('ObserveEventBusRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEEVENTBUSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) - }) -_sym_db.RegisterMessage(ObserveEventBusRequest) - -ObserveEventBusResponse = _reflection.GeneratedProtocolMessageType('ObserveEventBusResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVEEVENTBUSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) - }) -_sym_db.RegisterMessage(ObserveEventBusResponse) - -StatisticsRequest = _reflection.GeneratedProtocolMessageType('StatisticsRequest', (_message.Message,), { - 'DESCRIPTOR' : _STATISTICSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) - }) -_sym_db.RegisterMessage(StatisticsRequest) - -StatisticsResponse = _reflection.GeneratedProtocolMessageType('StatisticsResponse', (_message.Message,), { - 'DESCRIPTOR' : _STATISTICSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) - }) -_sym_db.RegisterMessage(StatisticsResponse) - -WithdrawalsRequest = _reflection.GeneratedProtocolMessageType('WithdrawalsRequest', (_message.Message,), { - 'DESCRIPTOR' : _WITHDRAWALSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.WithdrawalsRequest) - }) -_sym_db.RegisterMessage(WithdrawalsRequest) - -WithdrawalsResponse = _reflection.GeneratedProtocolMessageType('WithdrawalsResponse', (_message.Message,), { - 'DESCRIPTOR' : _WITHDRAWALSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.WithdrawalsResponse) - }) -_sym_db.RegisterMessage(WithdrawalsResponse) - -WithdrawalRequest = _reflection.GeneratedProtocolMessageType('WithdrawalRequest', (_message.Message,), { - 'DESCRIPTOR' : _WITHDRAWALREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.WithdrawalRequest) - }) -_sym_db.RegisterMessage(WithdrawalRequest) - -WithdrawalResponse = _reflection.GeneratedProtocolMessageType('WithdrawalResponse', (_message.Message,), { - 'DESCRIPTOR' : _WITHDRAWALRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.WithdrawalResponse) - }) -_sym_db.RegisterMessage(WithdrawalResponse) - -ERC20WithdrawalApprovalRequest = _reflection.GeneratedProtocolMessageType('ERC20WithdrawalApprovalRequest', (_message.Message,), { - 'DESCRIPTOR' : _ERC20WITHDRAWALAPPROVALREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalRequest) - }) -_sym_db.RegisterMessage(ERC20WithdrawalApprovalRequest) - -ERC20WithdrawalApprovalResponse = _reflection.GeneratedProtocolMessageType('ERC20WithdrawalApprovalResponse', (_message.Message,), { - 'DESCRIPTOR' : _ERC20WITHDRAWALAPPROVALRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.ERC20WithdrawalApprovalResponse) - }) -_sym_db.RegisterMessage(ERC20WithdrawalApprovalResponse) - -DepositsRequest = _reflection.GeneratedProtocolMessageType('DepositsRequest', (_message.Message,), { - 'DESCRIPTOR' : _DEPOSITSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.DepositsRequest) - }) -_sym_db.RegisterMessage(DepositsRequest) - -DepositsResponse = _reflection.GeneratedProtocolMessageType('DepositsResponse', (_message.Message,), { - 'DESCRIPTOR' : _DEPOSITSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.DepositsResponse) - }) -_sym_db.RegisterMessage(DepositsResponse) - -DepositRequest = _reflection.GeneratedProtocolMessageType('DepositRequest', (_message.Message,), { - 'DESCRIPTOR' : _DEPOSITREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.DepositRequest) - }) -_sym_db.RegisterMessage(DepositRequest) - -DepositResponse = _reflection.GeneratedProtocolMessageType('DepositResponse', (_message.Message,), { - 'DESCRIPTOR' : _DEPOSITRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.DepositResponse) - }) -_sym_db.RegisterMessage(DepositResponse) - -NetworkParametersRequest = _reflection.GeneratedProtocolMessageType('NetworkParametersRequest', (_message.Message,), { - 'DESCRIPTOR' : _NETWORKPARAMETERSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.NetworkParametersRequest) - }) -_sym_db.RegisterMessage(NetworkParametersRequest) - -NetworkParametersResponse = _reflection.GeneratedProtocolMessageType('NetworkParametersResponse', (_message.Message,), { - 'DESCRIPTOR' : _NETWORKPARAMETERSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.NetworkParametersResponse) - }) -_sym_db.RegisterMessage(NetworkParametersResponse) - -LiquidityProvisionsRequest = _reflection.GeneratedProtocolMessageType('LiquidityProvisionsRequest', (_message.Message,), { - 'DESCRIPTOR' : _LIQUIDITYPROVISIONSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsRequest) - }) -_sym_db.RegisterMessage(LiquidityProvisionsRequest) - -LiquidityProvisionsResponse = _reflection.GeneratedProtocolMessageType('LiquidityProvisionsResponse', (_message.Message,), { - 'DESCRIPTOR' : _LIQUIDITYPROVISIONSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LiquidityProvisionsResponse) - }) -_sym_db.RegisterMessage(LiquidityProvisionsResponse) - -OracleSpecRequest = _reflection.GeneratedProtocolMessageType('OracleSpecRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORACLESPECREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleSpecRequest) - }) -_sym_db.RegisterMessage(OracleSpecRequest) - -OracleSpecResponse = _reflection.GeneratedProtocolMessageType('OracleSpecResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORACLESPECRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleSpecResponse) - }) -_sym_db.RegisterMessage(OracleSpecResponse) - -OracleSpecsRequest = _reflection.GeneratedProtocolMessageType('OracleSpecsRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORACLESPECSREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleSpecsRequest) - }) -_sym_db.RegisterMessage(OracleSpecsRequest) - -OracleSpecsResponse = _reflection.GeneratedProtocolMessageType('OracleSpecsResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORACLESPECSRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleSpecsResponse) - }) -_sym_db.RegisterMessage(OracleSpecsResponse) - -OracleDataBySpecRequest = _reflection.GeneratedProtocolMessageType('OracleDataBySpecRequest', (_message.Message,), { - 'DESCRIPTOR' : _ORACLEDATABYSPECREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecRequest) - }) -_sym_db.RegisterMessage(OracleDataBySpecRequest) - -OracleDataBySpecResponse = _reflection.GeneratedProtocolMessageType('OracleDataBySpecResponse', (_message.Message,), { - 'DESCRIPTOR' : _ORACLEDATABYSPECRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.OracleDataBySpecResponse) - }) -_sym_db.RegisterMessage(OracleDataBySpecResponse) - -LastBlockHeightRequest = _reflection.GeneratedProtocolMessageType('LastBlockHeightRequest', (_message.Message,), { - 'DESCRIPTOR' : _LASTBLOCKHEIGHTREQUEST, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightRequest) - }) -_sym_db.RegisterMessage(LastBlockHeightRequest) - -LastBlockHeightResponse = _reflection.GeneratedProtocolMessageType('LastBlockHeightResponse', (_message.Message,), { - 'DESCRIPTOR' : _LASTBLOCKHEIGHTRESPONSE, - '__module__' : 'api.trading_pb2' - # @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) - }) -_sym_db.RegisterMessage(LastBlockHeightResponse) - - -DESCRIPTOR._options = None -_ASSETBYIDREQUEST.fields_by_name['id']._options = None -_GETNODESIGNATURESAGGREGATEREQUEST.fields_by_name['id']._options = None -_GETPROPOSALSBYPARTYREQUEST.fields_by_name['party_id']._options = None -_GETVOTESBYPARTYREQUEST.fields_by_name['party_id']._options = None -_GETUPDATEMARKETPROPOSALSREQUEST.fields_by_name['market_id']._options = None -_GETPROPOSALBYIDREQUEST.fields_by_name['proposal_id']._options = None -_GETPROPOSALBYREFERENCEREQUEST.fields_by_name['reference']._options = None -_OBSERVEPARTYPROPOSALSREQUEST.fields_by_name['party_id']._options = None -_OBSERVEPROPOSALVOTESREQUEST.fields_by_name['proposal_id']._options = None -_OBSERVEPARTYVOTESREQUEST.fields_by_name['party_id']._options = None -_MARGINLEVELSSUBSCRIBEREQUEST.fields_by_name['party_id']._options = None -_MARGINLEVELSREQUEST.fields_by_name['party_id']._options = None -_MARKETDATABYIDREQUEST.fields_by_name['market_id']._options = None -_LASTTRADEREQUEST.fields_by_name['market_id']._options = None -_MARKETBYIDREQUEST.fields_by_name['market_id']._options = None -_PARTYBYIDREQUEST.fields_by_name['party_id']._options = None -_CANDLESSUBSCRIBEREQUEST.fields_by_name['market_id']._options = None -_MARKETDEPTHSUBSCRIBEREQUEST.fields_by_name['market_id']._options = None -_MARKETDEPTHUPDATESSUBSCRIBEREQUEST.fields_by_name['market_id']._options = None -_ORDERSBYMARKETREQUEST.fields_by_name['market_id']._options = None -_ORDERSBYPARTYREQUEST.fields_by_name['party_id']._options = None -_ORDERBYMARKETANDIDREQUEST.fields_by_name['market_id']._options = None -_ORDERBYMARKETANDIDREQUEST.fields_by_name['order_id']._options = None -_ORDERBYREFERENCEREQUEST.fields_by_name['reference']._options = None -_CANDLESREQUEST.fields_by_name['market_id']._options = None -_CANDLESREQUEST.fields_by_name['since_timestamp']._options = None -_MARKETDEPTHREQUEST.fields_by_name['market_id']._options = None -_TRADESBYMARKETREQUEST.fields_by_name['market_id']._options = None -_POSITIONSBYPARTYREQUEST.fields_by_name['party_id']._options = None -_PREPAREVOTESUBMISSIONREQUEST.fields_by_name['submission']._options = None -_PREPARELIQUIDITYPROVISIONREQUEST.fields_by_name['submission']._options = None -_ORDERBYIDREQUEST.fields_by_name['order_id']._options = None -_ORDERVERSIONSBYIDREQUEST.fields_by_name['order_id']._options = None -_WITHDRAWALSREQUEST.fields_by_name['party_id']._options = None -_WITHDRAWALREQUEST.fields_by_name['id']._options = None -_ERC20WITHDRAWALAPPROVALREQUEST.fields_by_name['withdrawal_id']._options = None -_DEPOSITSREQUEST.fields_by_name['party_id']._options = None -_DEPOSITREQUEST.fields_by_name['id']._options = None -_ORACLESPECREQUEST.fields_by_name['id']._options = None -_ORACLEDATABYSPECREQUEST.fields_by_name['id']._options = None - -_TRADINGSERVICE = _descriptor.ServiceDescriptor( - name='TradingService', - full_name='api.v1.TradingService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_start=12080, - serialized_end=13068, - methods=[ - _descriptor.MethodDescriptor( - name='PrepareSubmitOrder', - full_name='api.v1.TradingService.PrepareSubmitOrder', - index=0, - containing_service=None, - input_type=_PREPARESUBMITORDERREQUEST, - output_type=_PREPARESUBMITORDERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareCancelOrder', - full_name='api.v1.TradingService.PrepareCancelOrder', - index=1, - containing_service=None, - input_type=_PREPARECANCELORDERREQUEST, - output_type=_PREPARECANCELORDERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareAmendOrder', - full_name='api.v1.TradingService.PrepareAmendOrder', - index=2, - containing_service=None, - input_type=_PREPAREAMENDORDERREQUEST, - output_type=_PREPAREAMENDORDERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareWithdraw', - full_name='api.v1.TradingService.PrepareWithdraw', - index=3, - containing_service=None, - input_type=_PREPAREWITHDRAWREQUEST, - output_type=_PREPAREWITHDRAWRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='SubmitTransaction', - full_name='api.v1.TradingService.SubmitTransaction', - index=4, - containing_service=None, - input_type=_SUBMITTRANSACTIONREQUEST, - output_type=_SUBMITTRANSACTIONRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='SubmitTransactionV2', - full_name='api.v1.TradingService.SubmitTransactionV2', - index=5, - containing_service=None, - input_type=_SUBMITTRANSACTIONV2REQUEST, - output_type=_SUBMITTRANSACTIONV2RESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareProposalSubmission', - full_name='api.v1.TradingService.PrepareProposalSubmission', - index=6, - containing_service=None, - input_type=_PREPAREPROPOSALSUBMISSIONREQUEST, - output_type=_PREPAREPROPOSALSUBMISSIONRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareVoteSubmission', - full_name='api.v1.TradingService.PrepareVoteSubmission', - index=7, - containing_service=None, - input_type=_PREPAREVOTESUBMISSIONREQUEST, - output_type=_PREPAREVOTESUBMISSIONRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PropagateChainEvent', - full_name='api.v1.TradingService.PropagateChainEvent', - index=8, - containing_service=None, - input_type=_PROPAGATECHAINEVENTREQUEST, - output_type=_PROPAGATECHAINEVENTRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PrepareLiquidityProvision', - full_name='api.v1.TradingService.PrepareLiquidityProvision', - index=9, - containing_service=None, - input_type=_PREPARELIQUIDITYPROVISIONREQUEST, - output_type=_PREPARELIQUIDITYPROVISIONRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), -]) -_sym_db.RegisterServiceDescriptor(_TRADINGSERVICE) - -DESCRIPTOR.services_by_name['TradingService'] = _TRADINGSERVICE - - -_TRADINGDATASERVICE = _descriptor.ServiceDescriptor( - name='TradingDataService', - full_name='api.v1.TradingDataService', - file=DESCRIPTOR, - index=1, - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_start=13071, - serialized_end=18622, - methods=[ - _descriptor.MethodDescriptor( - name='MarketAccounts', - full_name='api.v1.TradingDataService.MarketAccounts', - index=0, - containing_service=None, - input_type=_MARKETACCOUNTSREQUEST, - output_type=_MARKETACCOUNTSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PartyAccounts', - full_name='api.v1.TradingDataService.PartyAccounts', - index=1, - containing_service=None, - input_type=_PARTYACCOUNTSREQUEST, - output_type=_PARTYACCOUNTSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='FeeInfrastructureAccounts', - full_name='api.v1.TradingDataService.FeeInfrastructureAccounts', - index=2, - containing_service=None, - input_type=_FEEINFRASTRUCTUREACCOUNTSREQUEST, - output_type=_FEEINFRASTRUCTUREACCOUNTSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Candles', - full_name='api.v1.TradingDataService.Candles', - index=3, - containing_service=None, - input_type=_CANDLESREQUEST, - output_type=_CANDLESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketDataByID', - full_name='api.v1.TradingDataService.MarketDataByID', - index=4, - containing_service=None, - input_type=_MARKETDATABYIDREQUEST, - output_type=_MARKETDATABYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketsData', - full_name='api.v1.TradingDataService.MarketsData', - index=5, - containing_service=None, - input_type=_MARKETSDATAREQUEST, - output_type=_MARKETSDATARESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketByID', - full_name='api.v1.TradingDataService.MarketByID', - index=6, - containing_service=None, - input_type=_MARKETBYIDREQUEST, - output_type=_MARKETBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketDepth', - full_name='api.v1.TradingDataService.MarketDepth', - index=7, - containing_service=None, - input_type=_MARKETDEPTHREQUEST, - output_type=_MARKETDEPTHRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Markets', - full_name='api.v1.TradingDataService.Markets', - index=8, - containing_service=None, - input_type=_MARKETSREQUEST, - output_type=_MARKETSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrderByMarketAndID', - full_name='api.v1.TradingDataService.OrderByMarketAndID', - index=9, - containing_service=None, - input_type=_ORDERBYMARKETANDIDREQUEST, - output_type=_ORDERBYMARKETANDIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrderByReference', - full_name='api.v1.TradingDataService.OrderByReference', - index=10, - containing_service=None, - input_type=_ORDERBYREFERENCEREQUEST, - output_type=_ORDERBYREFERENCERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrdersByMarket', - full_name='api.v1.TradingDataService.OrdersByMarket', - index=11, - containing_service=None, - input_type=_ORDERSBYMARKETREQUEST, - output_type=_ORDERSBYMARKETRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrdersByParty', - full_name='api.v1.TradingDataService.OrdersByParty', - index=12, - containing_service=None, - input_type=_ORDERSBYPARTYREQUEST, - output_type=_ORDERSBYPARTYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrderByID', - full_name='api.v1.TradingDataService.OrderByID', - index=13, - containing_service=None, - input_type=_ORDERBYIDREQUEST, - output_type=_ORDERBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrderVersionsByID', - full_name='api.v1.TradingDataService.OrderVersionsByID', - index=14, - containing_service=None, - input_type=_ORDERVERSIONSBYIDREQUEST, - output_type=_ORDERVERSIONSBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarginLevels', - full_name='api.v1.TradingDataService.MarginLevels', - index=15, - containing_service=None, - input_type=_MARGINLEVELSREQUEST, - output_type=_MARGINLEVELSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Parties', - full_name='api.v1.TradingDataService.Parties', - index=16, - containing_service=None, - input_type=_PARTIESREQUEST, - output_type=_PARTIESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PartyByID', - full_name='api.v1.TradingDataService.PartyByID', - index=17, - containing_service=None, - input_type=_PARTYBYIDREQUEST, - output_type=_PARTYBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PositionsByParty', - full_name='api.v1.TradingDataService.PositionsByParty', - index=18, - containing_service=None, - input_type=_POSITIONSBYPARTYREQUEST, - output_type=_POSITIONSBYPARTYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='LastTrade', - full_name='api.v1.TradingDataService.LastTrade', - index=19, - containing_service=None, - input_type=_LASTTRADEREQUEST, - output_type=_LASTTRADERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='TradesByMarket', - full_name='api.v1.TradingDataService.TradesByMarket', - index=20, - containing_service=None, - input_type=_TRADESBYMARKETREQUEST, - output_type=_TRADESBYMARKETRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='TradesByOrder', - full_name='api.v1.TradingDataService.TradesByOrder', - index=21, - containing_service=None, - input_type=_TRADESBYORDERREQUEST, - output_type=_TRADESBYORDERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='TradesByParty', - full_name='api.v1.TradingDataService.TradesByParty', - index=22, - containing_service=None, - input_type=_TRADESBYPARTYREQUEST, - output_type=_TRADESBYPARTYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetProposals', - full_name='api.v1.TradingDataService.GetProposals', - index=23, - containing_service=None, - input_type=_GETPROPOSALSREQUEST, - output_type=_GETPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetProposalsByParty', - full_name='api.v1.TradingDataService.GetProposalsByParty', - index=24, - containing_service=None, - input_type=_GETPROPOSALSBYPARTYREQUEST, - output_type=_GETPROPOSALSBYPARTYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetVotesByParty', - full_name='api.v1.TradingDataService.GetVotesByParty', - index=25, - containing_service=None, - input_type=_GETVOTESBYPARTYREQUEST, - output_type=_GETVOTESBYPARTYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetNewMarketProposals', - full_name='api.v1.TradingDataService.GetNewMarketProposals', - index=26, - containing_service=None, - input_type=_GETNEWMARKETPROPOSALSREQUEST, - output_type=_GETNEWMARKETPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetUpdateMarketProposals', - full_name='api.v1.TradingDataService.GetUpdateMarketProposals', - index=27, - containing_service=None, - input_type=_GETUPDATEMARKETPROPOSALSREQUEST, - output_type=_GETUPDATEMARKETPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetNetworkParametersProposals', - full_name='api.v1.TradingDataService.GetNetworkParametersProposals', - index=28, - containing_service=None, - input_type=_GETNETWORKPARAMETERSPROPOSALSREQUEST, - output_type=_GETNETWORKPARAMETERSPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetNewAssetProposals', - full_name='api.v1.TradingDataService.GetNewAssetProposals', - index=29, - containing_service=None, - input_type=_GETNEWASSETPROPOSALSREQUEST, - output_type=_GETNEWASSETPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetProposalByID', - full_name='api.v1.TradingDataService.GetProposalByID', - index=30, - containing_service=None, - input_type=_GETPROPOSALBYIDREQUEST, - output_type=_GETPROPOSALBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetProposalByReference', - full_name='api.v1.TradingDataService.GetProposalByReference', - index=31, - containing_service=None, - input_type=_GETPROPOSALBYREFERENCEREQUEST, - output_type=_GETPROPOSALBYREFERENCERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ObserveGovernance', - full_name='api.v1.TradingDataService.ObserveGovernance', - index=32, - containing_service=None, - input_type=_OBSERVEGOVERNANCEREQUEST, - output_type=_OBSERVEGOVERNANCERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ObservePartyProposals', - full_name='api.v1.TradingDataService.ObservePartyProposals', - index=33, - containing_service=None, - input_type=_OBSERVEPARTYPROPOSALSREQUEST, - output_type=_OBSERVEPARTYPROPOSALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ObservePartyVotes', - full_name='api.v1.TradingDataService.ObservePartyVotes', - index=34, - containing_service=None, - input_type=_OBSERVEPARTYVOTESREQUEST, - output_type=_OBSERVEPARTYVOTESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), +_SUBMITTRANSACTIONV2REQUEST.fields_by_name['tx'].message_type = commands_dot_v1_dot_transaction__pb2._TRANSACTION +_SUBMITTRANSACTIONV2REQUEST.fields_by_name['type'].enum_type = _SUBMITTRANSACTIONV2REQUEST_TYPE +_SUBMITTRANSACTIONV2REQUEST_TYPE.containing_type = _SUBMITTRANSACTIONV2REQUEST +_OBSERVEEVENTBUSREQUEST.fields_by_name['type'].enum_type = events_dot_v1_dot_events__pb2._BUSEVENTTYPE +_OBSERVEEVENTBUSRESPONSE.fields_by_name['events'].message_type = events_dot_v1_dot_events__pb2._BUSEVENT +_STATISTICSRESPONSE.fields_by_name['statistics'].message_type = _STATISTICS +_STATISTICS.fields_by_name['status'].enum_type = vega__pb2._CHAINSTATUS +DESCRIPTOR.message_types_by_name['PropagateChainEventRequest'] = _PROPAGATECHAINEVENTREQUEST +DESCRIPTOR.message_types_by_name['PropagateChainEventResponse'] = _PROPAGATECHAINEVENTRESPONSE +DESCRIPTOR.message_types_by_name['SubmitTransactionV2Request'] = _SUBMITTRANSACTIONV2REQUEST +DESCRIPTOR.message_types_by_name['SubmitTransactionV2Response'] = _SUBMITTRANSACTIONV2RESPONSE +DESCRIPTOR.message_types_by_name['GetVegaTimeRequest'] = _GETVEGATIMEREQUEST +DESCRIPTOR.message_types_by_name['GetVegaTimeResponse'] = _GETVEGATIMERESPONSE +DESCRIPTOR.message_types_by_name['ObserveEventBusRequest'] = _OBSERVEEVENTBUSREQUEST +DESCRIPTOR.message_types_by_name['ObserveEventBusResponse'] = _OBSERVEEVENTBUSRESPONSE +DESCRIPTOR.message_types_by_name['StatisticsRequest'] = _STATISTICSREQUEST +DESCRIPTOR.message_types_by_name['StatisticsResponse'] = _STATISTICSRESPONSE +DESCRIPTOR.message_types_by_name['Statistics'] = _STATISTICS +DESCRIPTOR.message_types_by_name['LastBlockHeightRequest'] = _LASTBLOCKHEIGHTREQUEST +DESCRIPTOR.message_types_by_name['LastBlockHeightResponse'] = _LASTBLOCKHEIGHTRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PropagateChainEventRequest = _reflection.GeneratedProtocolMessageType('PropagateChainEventRequest', (_message.Message,), { + 'DESCRIPTOR' : _PROPAGATECHAINEVENTREQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.PropagateChainEventRequest) + }) +_sym_db.RegisterMessage(PropagateChainEventRequest) + +PropagateChainEventResponse = _reflection.GeneratedProtocolMessageType('PropagateChainEventResponse', (_message.Message,), { + 'DESCRIPTOR' : _PROPAGATECHAINEVENTRESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.PropagateChainEventResponse) + }) +_sym_db.RegisterMessage(PropagateChainEventResponse) + +SubmitTransactionV2Request = _reflection.GeneratedProtocolMessageType('SubmitTransactionV2Request', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITTRANSACTIONV2REQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Request) + }) +_sym_db.RegisterMessage(SubmitTransactionV2Request) + +SubmitTransactionV2Response = _reflection.GeneratedProtocolMessageType('SubmitTransactionV2Response', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITTRANSACTIONV2RESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.SubmitTransactionV2Response) + }) +_sym_db.RegisterMessage(SubmitTransactionV2Response) + +GetVegaTimeRequest = _reflection.GeneratedProtocolMessageType('GetVegaTimeRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETVEGATIMEREQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeRequest) + }) +_sym_db.RegisterMessage(GetVegaTimeRequest) + +GetVegaTimeResponse = _reflection.GeneratedProtocolMessageType('GetVegaTimeResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETVEGATIMERESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.GetVegaTimeResponse) + }) +_sym_db.RegisterMessage(GetVegaTimeResponse) + +ObserveEventBusRequest = _reflection.GeneratedProtocolMessageType('ObserveEventBusRequest', (_message.Message,), { + 'DESCRIPTOR' : _OBSERVEEVENTBUSREQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusRequest) + }) +_sym_db.RegisterMessage(ObserveEventBusRequest) + +ObserveEventBusResponse = _reflection.GeneratedProtocolMessageType('ObserveEventBusResponse', (_message.Message,), { + 'DESCRIPTOR' : _OBSERVEEVENTBUSRESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.ObserveEventBusResponse) + }) +_sym_db.RegisterMessage(ObserveEventBusResponse) + +StatisticsRequest = _reflection.GeneratedProtocolMessageType('StatisticsRequest', (_message.Message,), { + 'DESCRIPTOR' : _STATISTICSREQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.StatisticsRequest) + }) +_sym_db.RegisterMessage(StatisticsRequest) + +StatisticsResponse = _reflection.GeneratedProtocolMessageType('StatisticsResponse', (_message.Message,), { + 'DESCRIPTOR' : _STATISTICSRESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.StatisticsResponse) + }) +_sym_db.RegisterMessage(StatisticsResponse) + +Statistics = _reflection.GeneratedProtocolMessageType('Statistics', (_message.Message,), { + 'DESCRIPTOR' : _STATISTICS, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.Statistics) + }) +_sym_db.RegisterMessage(Statistics) + +LastBlockHeightRequest = _reflection.GeneratedProtocolMessageType('LastBlockHeightRequest', (_message.Message,), { + 'DESCRIPTOR' : _LASTBLOCKHEIGHTREQUEST, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightRequest) + }) +_sym_db.RegisterMessage(LastBlockHeightRequest) + +LastBlockHeightResponse = _reflection.GeneratedProtocolMessageType('LastBlockHeightResponse', (_message.Message,), { + 'DESCRIPTOR' : _LASTBLOCKHEIGHTRESPONSE, + '__module__' : 'api.trading_pb2' + # @@protoc_insertion_point(class_scope:api.v1.LastBlockHeightResponse) + }) +_sym_db.RegisterMessage(LastBlockHeightResponse) + + +DESCRIPTOR._options = None + +_TRADINGSERVICE = _descriptor.ServiceDescriptor( + name='TradingService', + full_name='api.v1.TradingService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2626, + serialized_end=3147, + methods=[ _descriptor.MethodDescriptor( - name='ObserveProposalVotes', - full_name='api.v1.TradingDataService.ObserveProposalVotes', - index=35, + name='SubmitTransactionV2', + full_name='api.v1.TradingService.SubmitTransactionV2', + index=0, containing_service=None, - input_type=_OBSERVEPROPOSALVOTESREQUEST, - output_type=_OBSERVEPROPOSALVOTESRESPONSE, + input_type=_SUBMITTRANSACTIONV2REQUEST, + output_type=_SUBMITTRANSACTIONV2RESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( - name='ObserveEventBus', - full_name='api.v1.TradingDataService.ObserveEventBus', - index=36, + name='PropagateChainEvent', + full_name='api.v1.TradingService.PropagateChainEvent', + index=1, containing_service=None, - input_type=_OBSERVEEVENTBUSREQUEST, - output_type=_OBSERVEEVENTBUSRESPONSE, + input_type=_PROPAGATECHAINEVENTREQUEST, + output_type=_PROPAGATECHAINEVENTRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Statistics', - full_name='api.v1.TradingDataService.Statistics', - index=37, + full_name='api.v1.TradingService.Statistics', + index=2, containing_service=None, input_type=_STATISTICSREQUEST, output_type=_STATISTICSRESPONSE, @@ -7099,8 +884,8 @@ ), _descriptor.MethodDescriptor( name='LastBlockHeight', - full_name='api.v1.TradingDataService.LastBlockHeight', - index=38, + full_name='api.v1.TradingService.LastBlockHeight', + index=3, containing_service=None, input_type=_LASTBLOCKHEIGHTREQUEST, output_type=_LASTBLOCKHEIGHTRESPONSE, @@ -7109,8 +894,8 @@ ), _descriptor.MethodDescriptor( name='GetVegaTime', - full_name='api.v1.TradingDataService.GetVegaTime', - index=39, + full_name='api.v1.TradingService.GetVegaTime', + index=4, containing_service=None, input_type=_GETVEGATIMEREQUEST, output_type=_GETVEGATIMERESPONSE, @@ -7118,258 +903,18 @@ create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( - name='AccountsSubscribe', - full_name='api.v1.TradingDataService.AccountsSubscribe', - index=40, - containing_service=None, - input_type=_ACCOUNTSSUBSCRIBEREQUEST, - output_type=_ACCOUNTSSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='CandlesSubscribe', - full_name='api.v1.TradingDataService.CandlesSubscribe', - index=41, - containing_service=None, - input_type=_CANDLESSUBSCRIBEREQUEST, - output_type=_CANDLESSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarginLevelsSubscribe', - full_name='api.v1.TradingDataService.MarginLevelsSubscribe', - index=42, - containing_service=None, - input_type=_MARGINLEVELSSUBSCRIBEREQUEST, - output_type=_MARGINLEVELSSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketDepthSubscribe', - full_name='api.v1.TradingDataService.MarketDepthSubscribe', - index=43, - containing_service=None, - input_type=_MARKETDEPTHSUBSCRIBEREQUEST, - output_type=_MARKETDEPTHSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketDepthUpdatesSubscribe', - full_name='api.v1.TradingDataService.MarketDepthUpdatesSubscribe', - index=44, - containing_service=None, - input_type=_MARKETDEPTHUPDATESSUBSCRIBEREQUEST, - output_type=_MARKETDEPTHUPDATESSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='MarketsDataSubscribe', - full_name='api.v1.TradingDataService.MarketsDataSubscribe', - index=45, - containing_service=None, - input_type=_MARKETSDATASUBSCRIBEREQUEST, - output_type=_MARKETSDATASUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OrdersSubscribe', - full_name='api.v1.TradingDataService.OrdersSubscribe', - index=46, - containing_service=None, - input_type=_ORDERSSUBSCRIBEREQUEST, - output_type=_ORDERSSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PositionsSubscribe', - full_name='api.v1.TradingDataService.PositionsSubscribe', - index=47, - containing_service=None, - input_type=_POSITIONSSUBSCRIBEREQUEST, - output_type=_POSITIONSSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='TradesSubscribe', - full_name='api.v1.TradingDataService.TradesSubscribe', - index=48, - containing_service=None, - input_type=_TRADESSUBSCRIBEREQUEST, - output_type=_TRADESSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='TransferResponsesSubscribe', - full_name='api.v1.TradingDataService.TransferResponsesSubscribe', - index=49, - containing_service=None, - input_type=_TRANSFERRESPONSESSUBSCRIBEREQUEST, - output_type=_TRANSFERRESPONSESSUBSCRIBERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='GetNodeSignaturesAggregate', - full_name='api.v1.TradingDataService.GetNodeSignaturesAggregate', - index=50, - containing_service=None, - input_type=_GETNODESIGNATURESAGGREGATEREQUEST, - output_type=_GETNODESIGNATURESAGGREGATERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='AssetByID', - full_name='api.v1.TradingDataService.AssetByID', - index=51, - containing_service=None, - input_type=_ASSETBYIDREQUEST, - output_type=_ASSETBYIDRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Assets', - full_name='api.v1.TradingDataService.Assets', - index=52, - containing_service=None, - input_type=_ASSETSREQUEST, - output_type=_ASSETSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='EstimateFee', - full_name='api.v1.TradingDataService.EstimateFee', - index=53, - containing_service=None, - input_type=_ESTIMATEFEEREQUEST, - output_type=_ESTIMATEFEERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='EstimateMargin', - full_name='api.v1.TradingDataService.EstimateMargin', - index=54, - containing_service=None, - input_type=_ESTIMATEMARGINREQUEST, - output_type=_ESTIMATEMARGINRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ERC20WithdrawalApproval', - full_name='api.v1.TradingDataService.ERC20WithdrawalApproval', - index=55, - containing_service=None, - input_type=_ERC20WITHDRAWALAPPROVALREQUEST, - output_type=_ERC20WITHDRAWALAPPROVALRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Withdrawal', - full_name='api.v1.TradingDataService.Withdrawal', - index=56, - containing_service=None, - input_type=_WITHDRAWALREQUEST, - output_type=_WITHDRAWALRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Withdrawals', - full_name='api.v1.TradingDataService.Withdrawals', - index=57, - containing_service=None, - input_type=_WITHDRAWALSREQUEST, - output_type=_WITHDRAWALSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Deposit', - full_name='api.v1.TradingDataService.Deposit', - index=58, - containing_service=None, - input_type=_DEPOSITREQUEST, - output_type=_DEPOSITRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Deposits', - full_name='api.v1.TradingDataService.Deposits', - index=59, - containing_service=None, - input_type=_DEPOSITSREQUEST, - output_type=_DEPOSITSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='NetworkParameters', - full_name='api.v1.TradingDataService.NetworkParameters', - index=60, - containing_service=None, - input_type=_NETWORKPARAMETERSREQUEST, - output_type=_NETWORKPARAMETERSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='LiquidityProvisions', - full_name='api.v1.TradingDataService.LiquidityProvisions', - index=61, - containing_service=None, - input_type=_LIQUIDITYPROVISIONSREQUEST, - output_type=_LIQUIDITYPROVISIONSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OracleSpec', - full_name='api.v1.TradingDataService.OracleSpec', - index=62, - containing_service=None, - input_type=_ORACLESPECREQUEST, - output_type=_ORACLESPECRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OracleSpecs', - full_name='api.v1.TradingDataService.OracleSpecs', - index=63, - containing_service=None, - input_type=_ORACLESPECSREQUEST, - output_type=_ORACLESPECSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='OracleDataBySpec', - full_name='api.v1.TradingDataService.OracleDataBySpec', - index=64, + name='ObserveEventBus', + full_name='api.v1.TradingService.ObserveEventBus', + index=5, containing_service=None, - input_type=_ORACLEDATABYSPECREQUEST, - output_type=_ORACLEDATABYSPECRESPONSE, + input_type=_OBSERVEEVENTBUSREQUEST, + output_type=_OBSERVEEVENTBUSRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), ]) -_sym_db.RegisterServiceDescriptor(_TRADINGDATASERVICE) +_sym_db.RegisterServiceDescriptor(_TRADINGSERVICE) -DESCRIPTOR.services_by_name['TradingDataService'] = _TRADINGDATASERVICE +DESCRIPTOR.services_by_name['TradingService'] = _TRADINGSERVICE # @@protoc_insertion_point(module_scope) diff --git a/grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py b/grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py index f2624974..696a621d 100644 --- a/grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py +++ b/grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py @@ -14,126 +14,78 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ - self.PrepareSubmitOrder = channel.unary_unary( - '/api.v1.TradingService/PrepareSubmitOrder', - request_serializer=api_dot_trading__pb2.PrepareSubmitOrderRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareSubmitOrderResponse.FromString, - ) - self.PrepareCancelOrder = channel.unary_unary( - '/api.v1.TradingService/PrepareCancelOrder', - request_serializer=api_dot_trading__pb2.PrepareCancelOrderRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareCancelOrderResponse.FromString, - ) - self.PrepareAmendOrder = channel.unary_unary( - '/api.v1.TradingService/PrepareAmendOrder', - request_serializer=api_dot_trading__pb2.PrepareAmendOrderRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareAmendOrderResponse.FromString, - ) - self.PrepareWithdraw = channel.unary_unary( - '/api.v1.TradingService/PrepareWithdraw', - request_serializer=api_dot_trading__pb2.PrepareWithdrawRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareWithdrawResponse.FromString, - ) - self.SubmitTransaction = channel.unary_unary( - '/api.v1.TradingService/SubmitTransaction', - request_serializer=api_dot_trading__pb2.SubmitTransactionRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.SubmitTransactionResponse.FromString, - ) self.SubmitTransactionV2 = channel.unary_unary( '/api.v1.TradingService/SubmitTransactionV2', request_serializer=api_dot_trading__pb2.SubmitTransactionV2Request.SerializeToString, response_deserializer=api_dot_trading__pb2.SubmitTransactionV2Response.FromString, ) - self.PrepareProposalSubmission = channel.unary_unary( - '/api.v1.TradingService/PrepareProposalSubmission', - request_serializer=api_dot_trading__pb2.PrepareProposalSubmissionRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareProposalSubmissionResponse.FromString, - ) - self.PrepareVoteSubmission = channel.unary_unary( - '/api.v1.TradingService/PrepareVoteSubmission', - request_serializer=api_dot_trading__pb2.PrepareVoteSubmissionRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareVoteSubmissionResponse.FromString, - ) self.PropagateChainEvent = channel.unary_unary( '/api.v1.TradingService/PropagateChainEvent', request_serializer=api_dot_trading__pb2.PropagateChainEventRequest.SerializeToString, response_deserializer=api_dot_trading__pb2.PropagateChainEventResponse.FromString, ) - self.PrepareLiquidityProvision = channel.unary_unary( - '/api.v1.TradingService/PrepareLiquidityProvision', - request_serializer=api_dot_trading__pb2.PrepareLiquidityProvisionRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PrepareLiquidityProvisionResponse.FromString, + self.Statistics = channel.unary_unary( + '/api.v1.TradingService/Statistics', + request_serializer=api_dot_trading__pb2.StatisticsRequest.SerializeToString, + response_deserializer=api_dot_trading__pb2.StatisticsResponse.FromString, + ) + self.LastBlockHeight = channel.unary_unary( + '/api.v1.TradingService/LastBlockHeight', + request_serializer=api_dot_trading__pb2.LastBlockHeightRequest.SerializeToString, + response_deserializer=api_dot_trading__pb2.LastBlockHeightResponse.FromString, + ) + self.GetVegaTime = channel.unary_unary( + '/api.v1.TradingService/GetVegaTime', + request_serializer=api_dot_trading__pb2.GetVegaTimeRequest.SerializeToString, + response_deserializer=api_dot_trading__pb2.GetVegaTimeResponse.FromString, + ) + self.ObserveEventBus = channel.stream_stream( + '/api.v1.TradingService/ObserveEventBus', + request_serializer=api_dot_trading__pb2.ObserveEventBusRequest.SerializeToString, + response_deserializer=api_dot_trading__pb2.ObserveEventBusResponse.FromString, ) class TradingServiceServicer(object): """Missing associated documentation comment in .proto file.""" - def PrepareSubmitOrder(self, request, context): - """Prepare a submit order request - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PrepareCancelOrder(self, request, context): - """Prepare a cancel order request - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PrepareAmendOrder(self, request, context): - """Prepare an amend order request - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PrepareWithdraw(self, request, context): - """Request a withdrawal - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SubmitTransaction(self, request, context): - """Submit a signed transaction + def SubmitTransactionV2(self, request, context): + """Submit a signed transaction (v2) """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def SubmitTransactionV2(self, request, context): - """Submit a signed transaction (v2) + def PropagateChainEvent(self, request, context): + """Propagate a chain event """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def PrepareProposalSubmission(self, request, context): - """Prepare a governance proposal + def Statistics(self, request, context): + """Get Statistics on Vega """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def PrepareVoteSubmission(self, request, context): - """Prepare a governance vote + def LastBlockHeight(self, request, context): + """Get the height of the last tendermint block """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def PropagateChainEvent(self, request, context): - """Propagate a chain event + def GetVegaTime(self, request, context): + """Get Time """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def PrepareLiquidityProvision(self, request, context): - """Prepare a liquidity provision request + def ObserveEventBus(self, request_iterator, context): + """Subscribe to a stream of events from the core """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -142,55 +94,35 @@ def PrepareLiquidityProvision(self, request, context): def add_TradingServiceServicer_to_server(servicer, server): rpc_method_handlers = { - 'PrepareSubmitOrder': grpc.unary_unary_rpc_method_handler( - servicer.PrepareSubmitOrder, - request_deserializer=api_dot_trading__pb2.PrepareSubmitOrderRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareSubmitOrderResponse.SerializeToString, - ), - 'PrepareCancelOrder': grpc.unary_unary_rpc_method_handler( - servicer.PrepareCancelOrder, - request_deserializer=api_dot_trading__pb2.PrepareCancelOrderRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareCancelOrderResponse.SerializeToString, - ), - 'PrepareAmendOrder': grpc.unary_unary_rpc_method_handler( - servicer.PrepareAmendOrder, - request_deserializer=api_dot_trading__pb2.PrepareAmendOrderRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareAmendOrderResponse.SerializeToString, - ), - 'PrepareWithdraw': grpc.unary_unary_rpc_method_handler( - servicer.PrepareWithdraw, - request_deserializer=api_dot_trading__pb2.PrepareWithdrawRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareWithdrawResponse.SerializeToString, - ), - 'SubmitTransaction': grpc.unary_unary_rpc_method_handler( - servicer.SubmitTransaction, - request_deserializer=api_dot_trading__pb2.SubmitTransactionRequest.FromString, - response_serializer=api_dot_trading__pb2.SubmitTransactionResponse.SerializeToString, - ), 'SubmitTransactionV2': grpc.unary_unary_rpc_method_handler( servicer.SubmitTransactionV2, request_deserializer=api_dot_trading__pb2.SubmitTransactionV2Request.FromString, response_serializer=api_dot_trading__pb2.SubmitTransactionV2Response.SerializeToString, ), - 'PrepareProposalSubmission': grpc.unary_unary_rpc_method_handler( - servicer.PrepareProposalSubmission, - request_deserializer=api_dot_trading__pb2.PrepareProposalSubmissionRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareProposalSubmissionResponse.SerializeToString, - ), - 'PrepareVoteSubmission': grpc.unary_unary_rpc_method_handler( - servicer.PrepareVoteSubmission, - request_deserializer=api_dot_trading__pb2.PrepareVoteSubmissionRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareVoteSubmissionResponse.SerializeToString, - ), 'PropagateChainEvent': grpc.unary_unary_rpc_method_handler( servicer.PropagateChainEvent, request_deserializer=api_dot_trading__pb2.PropagateChainEventRequest.FromString, response_serializer=api_dot_trading__pb2.PropagateChainEventResponse.SerializeToString, ), - 'PrepareLiquidityProvision': grpc.unary_unary_rpc_method_handler( - servicer.PrepareLiquidityProvision, - request_deserializer=api_dot_trading__pb2.PrepareLiquidityProvisionRequest.FromString, - response_serializer=api_dot_trading__pb2.PrepareLiquidityProvisionResponse.SerializeToString, + 'Statistics': grpc.unary_unary_rpc_method_handler( + servicer.Statistics, + request_deserializer=api_dot_trading__pb2.StatisticsRequest.FromString, + response_serializer=api_dot_trading__pb2.StatisticsResponse.SerializeToString, + ), + 'LastBlockHeight': grpc.unary_unary_rpc_method_handler( + servicer.LastBlockHeight, + request_deserializer=api_dot_trading__pb2.LastBlockHeightRequest.FromString, + response_serializer=api_dot_trading__pb2.LastBlockHeightResponse.SerializeToString, + ), + 'GetVegaTime': grpc.unary_unary_rpc_method_handler( + servicer.GetVegaTime, + request_deserializer=api_dot_trading__pb2.GetVegaTimeRequest.FromString, + response_serializer=api_dot_trading__pb2.GetVegaTimeResponse.SerializeToString, + ), + 'ObserveEventBus': grpc.stream_stream_rpc_method_handler( + servicer.ObserveEventBus, + request_deserializer=api_dot_trading__pb2.ObserveEventBusRequest.FromString, + response_serializer=api_dot_trading__pb2.ObserveEventBusResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -203,75 +135,7 @@ class TradingService(object): """Missing associated documentation comment in .proto file.""" @staticmethod - def PrepareSubmitOrder(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareSubmitOrder', - api_dot_trading__pb2.PrepareSubmitOrderRequest.SerializeToString, - api_dot_trading__pb2.PrepareSubmitOrderResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PrepareCancelOrder(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareCancelOrder', - api_dot_trading__pb2.PrepareCancelOrderRequest.SerializeToString, - api_dot_trading__pb2.PrepareCancelOrderResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PrepareAmendOrder(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareAmendOrder', - api_dot_trading__pb2.PrepareAmendOrderRequest.SerializeToString, - api_dot_trading__pb2.PrepareAmendOrderResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PrepareWithdraw(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareWithdraw', - api_dot_trading__pb2.PrepareWithdrawRequest.SerializeToString, - api_dot_trading__pb2.PrepareWithdrawResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SubmitTransaction(request, + def SubmitTransactionV2(request, target, options=(), channel_credentials=None, @@ -281,14 +145,14 @@ def SubmitTransaction(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/SubmitTransaction', - api_dot_trading__pb2.SubmitTransactionRequest.SerializeToString, - api_dot_trading__pb2.SubmitTransactionResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/SubmitTransactionV2', + api_dot_trading__pb2.SubmitTransactionV2Request.SerializeToString, + api_dot_trading__pb2.SubmitTransactionV2Response.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def SubmitTransactionV2(request, + def PropagateChainEvent(request, target, options=(), channel_credentials=None, @@ -298,14 +162,14 @@ def SubmitTransactionV2(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/SubmitTransactionV2', - api_dot_trading__pb2.SubmitTransactionV2Request.SerializeToString, - api_dot_trading__pb2.SubmitTransactionV2Response.FromString, + return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PropagateChainEvent', + api_dot_trading__pb2.PropagateChainEventRequest.SerializeToString, + api_dot_trading__pb2.PropagateChainEventResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def PrepareProposalSubmission(request, + def Statistics(request, target, options=(), channel_credentials=None, @@ -315,14 +179,14 @@ def PrepareProposalSubmission(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareProposalSubmission', - api_dot_trading__pb2.PrepareProposalSubmissionRequest.SerializeToString, - api_dot_trading__pb2.PrepareProposalSubmissionResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/Statistics', + api_dot_trading__pb2.StatisticsRequest.SerializeToString, + api_dot_trading__pb2.StatisticsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def PrepareVoteSubmission(request, + def LastBlockHeight(request, target, options=(), channel_credentials=None, @@ -332,14 +196,14 @@ def PrepareVoteSubmission(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareVoteSubmission', - api_dot_trading__pb2.PrepareVoteSubmissionRequest.SerializeToString, - api_dot_trading__pb2.PrepareVoteSubmissionResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/LastBlockHeight', + api_dot_trading__pb2.LastBlockHeightRequest.SerializeToString, + api_dot_trading__pb2.LastBlockHeightResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def PropagateChainEvent(request, + def GetVegaTime(request, target, options=(), channel_credentials=None, @@ -349,14 +213,14 @@ def PropagateChainEvent(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PropagateChainEvent', - api_dot_trading__pb2.PropagateChainEventRequest.SerializeToString, - api_dot_trading__pb2.PropagateChainEventResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/GetVegaTime', + api_dot_trading__pb2.GetVegaTimeRequest.SerializeToString, + api_dot_trading__pb2.GetVegaTimeResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def PrepareLiquidityProvision(request, + def ObserveEventBus(request_iterator, target, options=(), channel_credentials=None, @@ -366,2268 +230,8 @@ def PrepareLiquidityProvision(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingService/PrepareLiquidityProvision', - api_dot_trading__pb2.PrepareLiquidityProvisionRequest.SerializeToString, - api_dot_trading__pb2.PrepareLiquidityProvisionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - -class TradingDataServiceStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.MarketAccounts = channel.unary_unary( - '/api.v1.TradingDataService/MarketAccounts', - request_serializer=api_dot_trading__pb2.MarketAccountsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketAccountsResponse.FromString, - ) - self.PartyAccounts = channel.unary_unary( - '/api.v1.TradingDataService/PartyAccounts', - request_serializer=api_dot_trading__pb2.PartyAccountsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PartyAccountsResponse.FromString, - ) - self.FeeInfrastructureAccounts = channel.unary_unary( - '/api.v1.TradingDataService/FeeInfrastructureAccounts', - request_serializer=api_dot_trading__pb2.FeeInfrastructureAccountsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.FeeInfrastructureAccountsResponse.FromString, - ) - self.Candles = channel.unary_unary( - '/api.v1.TradingDataService/Candles', - request_serializer=api_dot_trading__pb2.CandlesRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.CandlesResponse.FromString, - ) - self.MarketDataByID = channel.unary_unary( - '/api.v1.TradingDataService/MarketDataByID', - request_serializer=api_dot_trading__pb2.MarketDataByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketDataByIDResponse.FromString, - ) - self.MarketsData = channel.unary_unary( - '/api.v1.TradingDataService/MarketsData', - request_serializer=api_dot_trading__pb2.MarketsDataRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketsDataResponse.FromString, - ) - self.MarketByID = channel.unary_unary( - '/api.v1.TradingDataService/MarketByID', - request_serializer=api_dot_trading__pb2.MarketByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketByIDResponse.FromString, - ) - self.MarketDepth = channel.unary_unary( - '/api.v1.TradingDataService/MarketDepth', - request_serializer=api_dot_trading__pb2.MarketDepthRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketDepthResponse.FromString, - ) - self.Markets = channel.unary_unary( - '/api.v1.TradingDataService/Markets', - request_serializer=api_dot_trading__pb2.MarketsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketsResponse.FromString, - ) - self.OrderByMarketAndID = channel.unary_unary( - '/api.v1.TradingDataService/OrderByMarketAndID', - request_serializer=api_dot_trading__pb2.OrderByMarketAndIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrderByMarketAndIDResponse.FromString, - ) - self.OrderByReference = channel.unary_unary( - '/api.v1.TradingDataService/OrderByReference', - request_serializer=api_dot_trading__pb2.OrderByReferenceRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrderByReferenceResponse.FromString, - ) - self.OrdersByMarket = channel.unary_unary( - '/api.v1.TradingDataService/OrdersByMarket', - request_serializer=api_dot_trading__pb2.OrdersByMarketRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrdersByMarketResponse.FromString, - ) - self.OrdersByParty = channel.unary_unary( - '/api.v1.TradingDataService/OrdersByParty', - request_serializer=api_dot_trading__pb2.OrdersByPartyRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrdersByPartyResponse.FromString, - ) - self.OrderByID = channel.unary_unary( - '/api.v1.TradingDataService/OrderByID', - request_serializer=api_dot_trading__pb2.OrderByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrderByIDResponse.FromString, - ) - self.OrderVersionsByID = channel.unary_unary( - '/api.v1.TradingDataService/OrderVersionsByID', - request_serializer=api_dot_trading__pb2.OrderVersionsByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrderVersionsByIDResponse.FromString, - ) - self.MarginLevels = channel.unary_unary( - '/api.v1.TradingDataService/MarginLevels', - request_serializer=api_dot_trading__pb2.MarginLevelsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarginLevelsResponse.FromString, - ) - self.Parties = channel.unary_unary( - '/api.v1.TradingDataService/Parties', - request_serializer=api_dot_trading__pb2.PartiesRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PartiesResponse.FromString, - ) - self.PartyByID = channel.unary_unary( - '/api.v1.TradingDataService/PartyByID', - request_serializer=api_dot_trading__pb2.PartyByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PartyByIDResponse.FromString, - ) - self.PositionsByParty = channel.unary_unary( - '/api.v1.TradingDataService/PositionsByParty', - request_serializer=api_dot_trading__pb2.PositionsByPartyRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PositionsByPartyResponse.FromString, - ) - self.LastTrade = channel.unary_unary( - '/api.v1.TradingDataService/LastTrade', - request_serializer=api_dot_trading__pb2.LastTradeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.LastTradeResponse.FromString, - ) - self.TradesByMarket = channel.unary_unary( - '/api.v1.TradingDataService/TradesByMarket', - request_serializer=api_dot_trading__pb2.TradesByMarketRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.TradesByMarketResponse.FromString, - ) - self.TradesByOrder = channel.unary_unary( - '/api.v1.TradingDataService/TradesByOrder', - request_serializer=api_dot_trading__pb2.TradesByOrderRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.TradesByOrderResponse.FromString, - ) - self.TradesByParty = channel.unary_unary( - '/api.v1.TradingDataService/TradesByParty', - request_serializer=api_dot_trading__pb2.TradesByPartyRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.TradesByPartyResponse.FromString, - ) - self.GetProposals = channel.unary_unary( - '/api.v1.TradingDataService/GetProposals', - request_serializer=api_dot_trading__pb2.GetProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetProposalsResponse.FromString, - ) - self.GetProposalsByParty = channel.unary_unary( - '/api.v1.TradingDataService/GetProposalsByParty', - request_serializer=api_dot_trading__pb2.GetProposalsByPartyRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetProposalsByPartyResponse.FromString, - ) - self.GetVotesByParty = channel.unary_unary( - '/api.v1.TradingDataService/GetVotesByParty', - request_serializer=api_dot_trading__pb2.GetVotesByPartyRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetVotesByPartyResponse.FromString, - ) - self.GetNewMarketProposals = channel.unary_unary( - '/api.v1.TradingDataService/GetNewMarketProposals', - request_serializer=api_dot_trading__pb2.GetNewMarketProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetNewMarketProposalsResponse.FromString, - ) - self.GetUpdateMarketProposals = channel.unary_unary( - '/api.v1.TradingDataService/GetUpdateMarketProposals', - request_serializer=api_dot_trading__pb2.GetUpdateMarketProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetUpdateMarketProposalsResponse.FromString, - ) - self.GetNetworkParametersProposals = channel.unary_unary( - '/api.v1.TradingDataService/GetNetworkParametersProposals', - request_serializer=api_dot_trading__pb2.GetNetworkParametersProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetNetworkParametersProposalsResponse.FromString, - ) - self.GetNewAssetProposals = channel.unary_unary( - '/api.v1.TradingDataService/GetNewAssetProposals', - request_serializer=api_dot_trading__pb2.GetNewAssetProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetNewAssetProposalsResponse.FromString, - ) - self.GetProposalByID = channel.unary_unary( - '/api.v1.TradingDataService/GetProposalByID', - request_serializer=api_dot_trading__pb2.GetProposalByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetProposalByIDResponse.FromString, - ) - self.GetProposalByReference = channel.unary_unary( - '/api.v1.TradingDataService/GetProposalByReference', - request_serializer=api_dot_trading__pb2.GetProposalByReferenceRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetProposalByReferenceResponse.FromString, - ) - self.ObserveGovernance = channel.unary_stream( - '/api.v1.TradingDataService/ObserveGovernance', - request_serializer=api_dot_trading__pb2.ObserveGovernanceRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ObserveGovernanceResponse.FromString, - ) - self.ObservePartyProposals = channel.unary_stream( - '/api.v1.TradingDataService/ObservePartyProposals', - request_serializer=api_dot_trading__pb2.ObservePartyProposalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ObservePartyProposalsResponse.FromString, - ) - self.ObservePartyVotes = channel.unary_stream( - '/api.v1.TradingDataService/ObservePartyVotes', - request_serializer=api_dot_trading__pb2.ObservePartyVotesRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ObservePartyVotesResponse.FromString, - ) - self.ObserveProposalVotes = channel.unary_stream( - '/api.v1.TradingDataService/ObserveProposalVotes', - request_serializer=api_dot_trading__pb2.ObserveProposalVotesRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ObserveProposalVotesResponse.FromString, - ) - self.ObserveEventBus = channel.stream_stream( - '/api.v1.TradingDataService/ObserveEventBus', - request_serializer=api_dot_trading__pb2.ObserveEventBusRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ObserveEventBusResponse.FromString, - ) - self.Statistics = channel.unary_unary( - '/api.v1.TradingDataService/Statistics', - request_serializer=api_dot_trading__pb2.StatisticsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.StatisticsResponse.FromString, - ) - self.LastBlockHeight = channel.unary_unary( - '/api.v1.TradingDataService/LastBlockHeight', - request_serializer=api_dot_trading__pb2.LastBlockHeightRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.LastBlockHeightResponse.FromString, - ) - self.GetVegaTime = channel.unary_unary( - '/api.v1.TradingDataService/GetVegaTime', - request_serializer=api_dot_trading__pb2.GetVegaTimeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetVegaTimeResponse.FromString, - ) - self.AccountsSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/AccountsSubscribe', - request_serializer=api_dot_trading__pb2.AccountsSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.AccountsSubscribeResponse.FromString, - ) - self.CandlesSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/CandlesSubscribe', - request_serializer=api_dot_trading__pb2.CandlesSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.CandlesSubscribeResponse.FromString, - ) - self.MarginLevelsSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/MarginLevelsSubscribe', - request_serializer=api_dot_trading__pb2.MarginLevelsSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarginLevelsSubscribeResponse.FromString, - ) - self.MarketDepthSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/MarketDepthSubscribe', - request_serializer=api_dot_trading__pb2.MarketDepthSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketDepthSubscribeResponse.FromString, - ) - self.MarketDepthUpdatesSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/MarketDepthUpdatesSubscribe', - request_serializer=api_dot_trading__pb2.MarketDepthUpdatesSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketDepthUpdatesSubscribeResponse.FromString, - ) - self.MarketsDataSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/MarketsDataSubscribe', - request_serializer=api_dot_trading__pb2.MarketsDataSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.MarketsDataSubscribeResponse.FromString, - ) - self.OrdersSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/OrdersSubscribe', - request_serializer=api_dot_trading__pb2.OrdersSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OrdersSubscribeResponse.FromString, - ) - self.PositionsSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/PositionsSubscribe', - request_serializer=api_dot_trading__pb2.PositionsSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.PositionsSubscribeResponse.FromString, - ) - self.TradesSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/TradesSubscribe', - request_serializer=api_dot_trading__pb2.TradesSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.TradesSubscribeResponse.FromString, - ) - self.TransferResponsesSubscribe = channel.unary_stream( - '/api.v1.TradingDataService/TransferResponsesSubscribe', - request_serializer=api_dot_trading__pb2.TransferResponsesSubscribeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.TransferResponsesSubscribeResponse.FromString, - ) - self.GetNodeSignaturesAggregate = channel.unary_unary( - '/api.v1.TradingDataService/GetNodeSignaturesAggregate', - request_serializer=api_dot_trading__pb2.GetNodeSignaturesAggregateRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.GetNodeSignaturesAggregateResponse.FromString, - ) - self.AssetByID = channel.unary_unary( - '/api.v1.TradingDataService/AssetByID', - request_serializer=api_dot_trading__pb2.AssetByIDRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.AssetByIDResponse.FromString, - ) - self.Assets = channel.unary_unary( - '/api.v1.TradingDataService/Assets', - request_serializer=api_dot_trading__pb2.AssetsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.AssetsResponse.FromString, - ) - self.EstimateFee = channel.unary_unary( - '/api.v1.TradingDataService/EstimateFee', - request_serializer=api_dot_trading__pb2.EstimateFeeRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.EstimateFeeResponse.FromString, - ) - self.EstimateMargin = channel.unary_unary( - '/api.v1.TradingDataService/EstimateMargin', - request_serializer=api_dot_trading__pb2.EstimateMarginRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.EstimateMarginResponse.FromString, - ) - self.ERC20WithdrawalApproval = channel.unary_unary( - '/api.v1.TradingDataService/ERC20WithdrawalApproval', - request_serializer=api_dot_trading__pb2.ERC20WithdrawalApprovalRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.ERC20WithdrawalApprovalResponse.FromString, - ) - self.Withdrawal = channel.unary_unary( - '/api.v1.TradingDataService/Withdrawal', - request_serializer=api_dot_trading__pb2.WithdrawalRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.WithdrawalResponse.FromString, - ) - self.Withdrawals = channel.unary_unary( - '/api.v1.TradingDataService/Withdrawals', - request_serializer=api_dot_trading__pb2.WithdrawalsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.WithdrawalsResponse.FromString, - ) - self.Deposit = channel.unary_unary( - '/api.v1.TradingDataService/Deposit', - request_serializer=api_dot_trading__pb2.DepositRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.DepositResponse.FromString, - ) - self.Deposits = channel.unary_unary( - '/api.v1.TradingDataService/Deposits', - request_serializer=api_dot_trading__pb2.DepositsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.DepositsResponse.FromString, - ) - self.NetworkParameters = channel.unary_unary( - '/api.v1.TradingDataService/NetworkParameters', - request_serializer=api_dot_trading__pb2.NetworkParametersRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.NetworkParametersResponse.FromString, - ) - self.LiquidityProvisions = channel.unary_unary( - '/api.v1.TradingDataService/LiquidityProvisions', - request_serializer=api_dot_trading__pb2.LiquidityProvisionsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.LiquidityProvisionsResponse.FromString, - ) - self.OracleSpec = channel.unary_unary( - '/api.v1.TradingDataService/OracleSpec', - request_serializer=api_dot_trading__pb2.OracleSpecRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OracleSpecResponse.FromString, - ) - self.OracleSpecs = channel.unary_unary( - '/api.v1.TradingDataService/OracleSpecs', - request_serializer=api_dot_trading__pb2.OracleSpecsRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OracleSpecsResponse.FromString, - ) - self.OracleDataBySpec = channel.unary_unary( - '/api.v1.TradingDataService/OracleDataBySpec', - request_serializer=api_dot_trading__pb2.OracleDataBySpecRequest.SerializeToString, - response_deserializer=api_dot_trading__pb2.OracleDataBySpecResponse.FromString, - ) - - -class TradingDataServiceServicer(object): - """Missing associated documentation comment in .proto file.""" - - def MarketAccounts(self, request, context): - """-- Accounts -- - - Get a list of Accounts by Market - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PartyAccounts(self, request, context): - """Get a list of Accounts by Party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FeeInfrastructureAccounts(self, request, context): - """Get a list of accounts holding infrastructure fees. - Can be filtered by asset, there will be 1 infrastructure fee account per - asset in the network. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Candles(self, request, context): - """-- Candles -- - - Get a list of Candles by Market - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketDataByID(self, request, context): - """-- Market Data -- - - Get Market Data by Market ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketsData(self, request, context): - """Get a list of Market Data - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketByID(self, request, context): - """-- Markets -- - - Get a Market by ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketDepth(self, request, context): - """Get Market Depth - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Markets(self, request, context): - """Get a list of Markets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrderByMarketAndID(self, request, context): - """-- Orders -- - - Get an Order by Market and Order ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrderByReference(self, request, context): - """Get an Order by Pending Order reference (UUID) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrdersByMarket(self, request, context): - """Get a list of Orders by Market - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrdersByParty(self, request, context): - """Get a list of Orders by Party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrderByID(self, request, context): - """Get a specific order by order ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrderVersionsByID(self, request, context): - """Get all versions of the order by its orderID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarginLevels(self, request, context): - """-- Parties -- - - Get Margin Levels by Party ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Parties(self, request, context): - """Get a list of Parties - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PartyByID(self, request, context): - """Get a Party by ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PositionsByParty(self, request, context): - """-- Positions -- - - Get a list of Positions by Party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LastTrade(self, request, context): - """-- Trades -- - - Get latest Trade - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TradesByMarket(self, request, context): - """Get a list of Trades by Market - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TradesByOrder(self, request, context): - """Get a list of Trades by Order - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TradesByParty(self, request, context): - """Get a list of Trades by Party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProposals(self, request, context): - """-- Governance -- - - Get governance data (proposals and votes) for all proposals - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProposalsByParty(self, request, context): - """Get governance data (proposals and votes) for proposals by party authoring them - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetVotesByParty(self, request, context): - """Get votes by party casting them - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNewMarketProposals(self, request, context): - """Get governance data (proposals and votes) for proposals that aim creating new markets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetUpdateMarketProposals(self, request, context): - """Get governance data (proposals and votes) for proposals that aim updating markets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNetworkParametersProposals(self, request, context): - """Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNewAssetProposals(self, request, context): - """Get governance data (proposals and votes) for proposals aiming to create new assets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProposalByID(self, request, context): - """Get governance data (proposals and votes) for a proposal located by ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProposalByReference(self, request, context): - """Get governance data (proposals and votes) for a proposal located by reference - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ObserveGovernance(self, request, context): - """Subscribe to a stream of all governance updates - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ObservePartyProposals(self, request, context): - """Subscribe to a stream of proposal updates - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ObservePartyVotes(self, request, context): - """Subscribe to a stream of votes cast by a specific party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ObserveProposalVotes(self, request, context): - """Subscribe to a stream of proposal votes - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ObserveEventBus(self, request_iterator, context): - """Subscribe to a stream of events from the core - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Statistics(self, request, context): - """-- Misc -- - - Get Statistics on Vega - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LastBlockHeight(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetVegaTime(self, request, context): - """Get Time - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AccountsSubscribe(self, request, context): - """Subscribe to a stream of Accounts - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CandlesSubscribe(self, request, context): - """Subscribe to a stream of Candles - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarginLevelsSubscribe(self, request, context): - """Subscribe to a stream of Margin Levels - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketDepthSubscribe(self, request, context): - """Subscribe to a stream of Market Depth - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketDepthUpdatesSubscribe(self, request, context): - """Subscribe to a stream of Market Depth Price Level Updates - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MarketsDataSubscribe(self, request, context): - """Subscribe to a stream of Markets Data - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OrdersSubscribe(self, request, context): - """Subscribe to a stream of Orders - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PositionsSubscribe(self, request, context): - """Subscribe to a stream of Positions - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TradesSubscribe(self, request, context): - """Subscribe to a stream of Trades - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TransferResponsesSubscribe(self, request, context): - """Subscribe to a stream of Transfer Responses - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNodeSignaturesAggregate(self, request, context): - """Get an aggregate of signatures from all the nodes of the network - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AssetByID(self, request, context): - """Get an asset by its identifier - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Assets(self, request, context): - """Get a list of all assets on Vega - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EstimateFee(self, request, context): - """Get an estimate for the fee to be paid for a given order - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EstimateMargin(self, request, context): - """Get an estimate for the margin required for a new order - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ERC20WithdrawalApproval(self, request, context): - """Get the bundle approval for an ERC20 withdrawal, - these data are being used to bundle the call to the smart contract on the ethereum bridge - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Withdrawal(self, request, context): - """Get a withdrawal by its identifier - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Withdrawals(self, request, context): - """Get withdrawals for a party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Deposit(self, request, context): - """Get a deposit by its identifier - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Deposits(self, request, context): - """Get deposits for a party - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def NetworkParameters(self, request, context): - """Get the network parameters - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LiquidityProvisions(self, request, context): - """Get the liquidity provision orders - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OracleSpec(self, request, context): - """Get an oracle spec by ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OracleSpecs(self, request, context): - """Get the oracle specs - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OracleDataBySpec(self, request, context): - """Get all oracle data - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_TradingDataServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'MarketAccounts': grpc.unary_unary_rpc_method_handler( - servicer.MarketAccounts, - request_deserializer=api_dot_trading__pb2.MarketAccountsRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketAccountsResponse.SerializeToString, - ), - 'PartyAccounts': grpc.unary_unary_rpc_method_handler( - servicer.PartyAccounts, - request_deserializer=api_dot_trading__pb2.PartyAccountsRequest.FromString, - response_serializer=api_dot_trading__pb2.PartyAccountsResponse.SerializeToString, - ), - 'FeeInfrastructureAccounts': grpc.unary_unary_rpc_method_handler( - servicer.FeeInfrastructureAccounts, - request_deserializer=api_dot_trading__pb2.FeeInfrastructureAccountsRequest.FromString, - response_serializer=api_dot_trading__pb2.FeeInfrastructureAccountsResponse.SerializeToString, - ), - 'Candles': grpc.unary_unary_rpc_method_handler( - servicer.Candles, - request_deserializer=api_dot_trading__pb2.CandlesRequest.FromString, - response_serializer=api_dot_trading__pb2.CandlesResponse.SerializeToString, - ), - 'MarketDataByID': grpc.unary_unary_rpc_method_handler( - servicer.MarketDataByID, - request_deserializer=api_dot_trading__pb2.MarketDataByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketDataByIDResponse.SerializeToString, - ), - 'MarketsData': grpc.unary_unary_rpc_method_handler( - servicer.MarketsData, - request_deserializer=api_dot_trading__pb2.MarketsDataRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketsDataResponse.SerializeToString, - ), - 'MarketByID': grpc.unary_unary_rpc_method_handler( - servicer.MarketByID, - request_deserializer=api_dot_trading__pb2.MarketByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketByIDResponse.SerializeToString, - ), - 'MarketDepth': grpc.unary_unary_rpc_method_handler( - servicer.MarketDepth, - request_deserializer=api_dot_trading__pb2.MarketDepthRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketDepthResponse.SerializeToString, - ), - 'Markets': grpc.unary_unary_rpc_method_handler( - servicer.Markets, - request_deserializer=api_dot_trading__pb2.MarketsRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketsResponse.SerializeToString, - ), - 'OrderByMarketAndID': grpc.unary_unary_rpc_method_handler( - servicer.OrderByMarketAndID, - request_deserializer=api_dot_trading__pb2.OrderByMarketAndIDRequest.FromString, - response_serializer=api_dot_trading__pb2.OrderByMarketAndIDResponse.SerializeToString, - ), - 'OrderByReference': grpc.unary_unary_rpc_method_handler( - servicer.OrderByReference, - request_deserializer=api_dot_trading__pb2.OrderByReferenceRequest.FromString, - response_serializer=api_dot_trading__pb2.OrderByReferenceResponse.SerializeToString, - ), - 'OrdersByMarket': grpc.unary_unary_rpc_method_handler( - servicer.OrdersByMarket, - request_deserializer=api_dot_trading__pb2.OrdersByMarketRequest.FromString, - response_serializer=api_dot_trading__pb2.OrdersByMarketResponse.SerializeToString, - ), - 'OrdersByParty': grpc.unary_unary_rpc_method_handler( - servicer.OrdersByParty, - request_deserializer=api_dot_trading__pb2.OrdersByPartyRequest.FromString, - response_serializer=api_dot_trading__pb2.OrdersByPartyResponse.SerializeToString, - ), - 'OrderByID': grpc.unary_unary_rpc_method_handler( - servicer.OrderByID, - request_deserializer=api_dot_trading__pb2.OrderByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.OrderByIDResponse.SerializeToString, - ), - 'OrderVersionsByID': grpc.unary_unary_rpc_method_handler( - servicer.OrderVersionsByID, - request_deserializer=api_dot_trading__pb2.OrderVersionsByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.OrderVersionsByIDResponse.SerializeToString, - ), - 'MarginLevels': grpc.unary_unary_rpc_method_handler( - servicer.MarginLevels, - request_deserializer=api_dot_trading__pb2.MarginLevelsRequest.FromString, - response_serializer=api_dot_trading__pb2.MarginLevelsResponse.SerializeToString, - ), - 'Parties': grpc.unary_unary_rpc_method_handler( - servicer.Parties, - request_deserializer=api_dot_trading__pb2.PartiesRequest.FromString, - response_serializer=api_dot_trading__pb2.PartiesResponse.SerializeToString, - ), - 'PartyByID': grpc.unary_unary_rpc_method_handler( - servicer.PartyByID, - request_deserializer=api_dot_trading__pb2.PartyByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.PartyByIDResponse.SerializeToString, - ), - 'PositionsByParty': grpc.unary_unary_rpc_method_handler( - servicer.PositionsByParty, - request_deserializer=api_dot_trading__pb2.PositionsByPartyRequest.FromString, - response_serializer=api_dot_trading__pb2.PositionsByPartyResponse.SerializeToString, - ), - 'LastTrade': grpc.unary_unary_rpc_method_handler( - servicer.LastTrade, - request_deserializer=api_dot_trading__pb2.LastTradeRequest.FromString, - response_serializer=api_dot_trading__pb2.LastTradeResponse.SerializeToString, - ), - 'TradesByMarket': grpc.unary_unary_rpc_method_handler( - servicer.TradesByMarket, - request_deserializer=api_dot_trading__pb2.TradesByMarketRequest.FromString, - response_serializer=api_dot_trading__pb2.TradesByMarketResponse.SerializeToString, - ), - 'TradesByOrder': grpc.unary_unary_rpc_method_handler( - servicer.TradesByOrder, - request_deserializer=api_dot_trading__pb2.TradesByOrderRequest.FromString, - response_serializer=api_dot_trading__pb2.TradesByOrderResponse.SerializeToString, - ), - 'TradesByParty': grpc.unary_unary_rpc_method_handler( - servicer.TradesByParty, - request_deserializer=api_dot_trading__pb2.TradesByPartyRequest.FromString, - response_serializer=api_dot_trading__pb2.TradesByPartyResponse.SerializeToString, - ), - 'GetProposals': grpc.unary_unary_rpc_method_handler( - servicer.GetProposals, - request_deserializer=api_dot_trading__pb2.GetProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.GetProposalsResponse.SerializeToString, - ), - 'GetProposalsByParty': grpc.unary_unary_rpc_method_handler( - servicer.GetProposalsByParty, - request_deserializer=api_dot_trading__pb2.GetProposalsByPartyRequest.FromString, - response_serializer=api_dot_trading__pb2.GetProposalsByPartyResponse.SerializeToString, - ), - 'GetVotesByParty': grpc.unary_unary_rpc_method_handler( - servicer.GetVotesByParty, - request_deserializer=api_dot_trading__pb2.GetVotesByPartyRequest.FromString, - response_serializer=api_dot_trading__pb2.GetVotesByPartyResponse.SerializeToString, - ), - 'GetNewMarketProposals': grpc.unary_unary_rpc_method_handler( - servicer.GetNewMarketProposals, - request_deserializer=api_dot_trading__pb2.GetNewMarketProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.GetNewMarketProposalsResponse.SerializeToString, - ), - 'GetUpdateMarketProposals': grpc.unary_unary_rpc_method_handler( - servicer.GetUpdateMarketProposals, - request_deserializer=api_dot_trading__pb2.GetUpdateMarketProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.GetUpdateMarketProposalsResponse.SerializeToString, - ), - 'GetNetworkParametersProposals': grpc.unary_unary_rpc_method_handler( - servicer.GetNetworkParametersProposals, - request_deserializer=api_dot_trading__pb2.GetNetworkParametersProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.GetNetworkParametersProposalsResponse.SerializeToString, - ), - 'GetNewAssetProposals': grpc.unary_unary_rpc_method_handler( - servicer.GetNewAssetProposals, - request_deserializer=api_dot_trading__pb2.GetNewAssetProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.GetNewAssetProposalsResponse.SerializeToString, - ), - 'GetProposalByID': grpc.unary_unary_rpc_method_handler( - servicer.GetProposalByID, - request_deserializer=api_dot_trading__pb2.GetProposalByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.GetProposalByIDResponse.SerializeToString, - ), - 'GetProposalByReference': grpc.unary_unary_rpc_method_handler( - servicer.GetProposalByReference, - request_deserializer=api_dot_trading__pb2.GetProposalByReferenceRequest.FromString, - response_serializer=api_dot_trading__pb2.GetProposalByReferenceResponse.SerializeToString, - ), - 'ObserveGovernance': grpc.unary_stream_rpc_method_handler( - servicer.ObserveGovernance, - request_deserializer=api_dot_trading__pb2.ObserveGovernanceRequest.FromString, - response_serializer=api_dot_trading__pb2.ObserveGovernanceResponse.SerializeToString, - ), - 'ObservePartyProposals': grpc.unary_stream_rpc_method_handler( - servicer.ObservePartyProposals, - request_deserializer=api_dot_trading__pb2.ObservePartyProposalsRequest.FromString, - response_serializer=api_dot_trading__pb2.ObservePartyProposalsResponse.SerializeToString, - ), - 'ObservePartyVotes': grpc.unary_stream_rpc_method_handler( - servicer.ObservePartyVotes, - request_deserializer=api_dot_trading__pb2.ObservePartyVotesRequest.FromString, - response_serializer=api_dot_trading__pb2.ObservePartyVotesResponse.SerializeToString, - ), - 'ObserveProposalVotes': grpc.unary_stream_rpc_method_handler( - servicer.ObserveProposalVotes, - request_deserializer=api_dot_trading__pb2.ObserveProposalVotesRequest.FromString, - response_serializer=api_dot_trading__pb2.ObserveProposalVotesResponse.SerializeToString, - ), - 'ObserveEventBus': grpc.stream_stream_rpc_method_handler( - servicer.ObserveEventBus, - request_deserializer=api_dot_trading__pb2.ObserveEventBusRequest.FromString, - response_serializer=api_dot_trading__pb2.ObserveEventBusResponse.SerializeToString, - ), - 'Statistics': grpc.unary_unary_rpc_method_handler( - servicer.Statistics, - request_deserializer=api_dot_trading__pb2.StatisticsRequest.FromString, - response_serializer=api_dot_trading__pb2.StatisticsResponse.SerializeToString, - ), - 'LastBlockHeight': grpc.unary_unary_rpc_method_handler( - servicer.LastBlockHeight, - request_deserializer=api_dot_trading__pb2.LastBlockHeightRequest.FromString, - response_serializer=api_dot_trading__pb2.LastBlockHeightResponse.SerializeToString, - ), - 'GetVegaTime': grpc.unary_unary_rpc_method_handler( - servicer.GetVegaTime, - request_deserializer=api_dot_trading__pb2.GetVegaTimeRequest.FromString, - response_serializer=api_dot_trading__pb2.GetVegaTimeResponse.SerializeToString, - ), - 'AccountsSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.AccountsSubscribe, - request_deserializer=api_dot_trading__pb2.AccountsSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.AccountsSubscribeResponse.SerializeToString, - ), - 'CandlesSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.CandlesSubscribe, - request_deserializer=api_dot_trading__pb2.CandlesSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.CandlesSubscribeResponse.SerializeToString, - ), - 'MarginLevelsSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.MarginLevelsSubscribe, - request_deserializer=api_dot_trading__pb2.MarginLevelsSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.MarginLevelsSubscribeResponse.SerializeToString, - ), - 'MarketDepthSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.MarketDepthSubscribe, - request_deserializer=api_dot_trading__pb2.MarketDepthSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketDepthSubscribeResponse.SerializeToString, - ), - 'MarketDepthUpdatesSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.MarketDepthUpdatesSubscribe, - request_deserializer=api_dot_trading__pb2.MarketDepthUpdatesSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketDepthUpdatesSubscribeResponse.SerializeToString, - ), - 'MarketsDataSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.MarketsDataSubscribe, - request_deserializer=api_dot_trading__pb2.MarketsDataSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.MarketsDataSubscribeResponse.SerializeToString, - ), - 'OrdersSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.OrdersSubscribe, - request_deserializer=api_dot_trading__pb2.OrdersSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.OrdersSubscribeResponse.SerializeToString, - ), - 'PositionsSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.PositionsSubscribe, - request_deserializer=api_dot_trading__pb2.PositionsSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.PositionsSubscribeResponse.SerializeToString, - ), - 'TradesSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.TradesSubscribe, - request_deserializer=api_dot_trading__pb2.TradesSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.TradesSubscribeResponse.SerializeToString, - ), - 'TransferResponsesSubscribe': grpc.unary_stream_rpc_method_handler( - servicer.TransferResponsesSubscribe, - request_deserializer=api_dot_trading__pb2.TransferResponsesSubscribeRequest.FromString, - response_serializer=api_dot_trading__pb2.TransferResponsesSubscribeResponse.SerializeToString, - ), - 'GetNodeSignaturesAggregate': grpc.unary_unary_rpc_method_handler( - servicer.GetNodeSignaturesAggregate, - request_deserializer=api_dot_trading__pb2.GetNodeSignaturesAggregateRequest.FromString, - response_serializer=api_dot_trading__pb2.GetNodeSignaturesAggregateResponse.SerializeToString, - ), - 'AssetByID': grpc.unary_unary_rpc_method_handler( - servicer.AssetByID, - request_deserializer=api_dot_trading__pb2.AssetByIDRequest.FromString, - response_serializer=api_dot_trading__pb2.AssetByIDResponse.SerializeToString, - ), - 'Assets': grpc.unary_unary_rpc_method_handler( - servicer.Assets, - request_deserializer=api_dot_trading__pb2.AssetsRequest.FromString, - response_serializer=api_dot_trading__pb2.AssetsResponse.SerializeToString, - ), - 'EstimateFee': grpc.unary_unary_rpc_method_handler( - servicer.EstimateFee, - request_deserializer=api_dot_trading__pb2.EstimateFeeRequest.FromString, - response_serializer=api_dot_trading__pb2.EstimateFeeResponse.SerializeToString, - ), - 'EstimateMargin': grpc.unary_unary_rpc_method_handler( - servicer.EstimateMargin, - request_deserializer=api_dot_trading__pb2.EstimateMarginRequest.FromString, - response_serializer=api_dot_trading__pb2.EstimateMarginResponse.SerializeToString, - ), - 'ERC20WithdrawalApproval': grpc.unary_unary_rpc_method_handler( - servicer.ERC20WithdrawalApproval, - request_deserializer=api_dot_trading__pb2.ERC20WithdrawalApprovalRequest.FromString, - response_serializer=api_dot_trading__pb2.ERC20WithdrawalApprovalResponse.SerializeToString, - ), - 'Withdrawal': grpc.unary_unary_rpc_method_handler( - servicer.Withdrawal, - request_deserializer=api_dot_trading__pb2.WithdrawalRequest.FromString, - response_serializer=api_dot_trading__pb2.WithdrawalResponse.SerializeToString, - ), - 'Withdrawals': grpc.unary_unary_rpc_method_handler( - servicer.Withdrawals, - request_deserializer=api_dot_trading__pb2.WithdrawalsRequest.FromString, - response_serializer=api_dot_trading__pb2.WithdrawalsResponse.SerializeToString, - ), - 'Deposit': grpc.unary_unary_rpc_method_handler( - servicer.Deposit, - request_deserializer=api_dot_trading__pb2.DepositRequest.FromString, - response_serializer=api_dot_trading__pb2.DepositResponse.SerializeToString, - ), - 'Deposits': grpc.unary_unary_rpc_method_handler( - servicer.Deposits, - request_deserializer=api_dot_trading__pb2.DepositsRequest.FromString, - response_serializer=api_dot_trading__pb2.DepositsResponse.SerializeToString, - ), - 'NetworkParameters': grpc.unary_unary_rpc_method_handler( - servicer.NetworkParameters, - request_deserializer=api_dot_trading__pb2.NetworkParametersRequest.FromString, - response_serializer=api_dot_trading__pb2.NetworkParametersResponse.SerializeToString, - ), - 'LiquidityProvisions': grpc.unary_unary_rpc_method_handler( - servicer.LiquidityProvisions, - request_deserializer=api_dot_trading__pb2.LiquidityProvisionsRequest.FromString, - response_serializer=api_dot_trading__pb2.LiquidityProvisionsResponse.SerializeToString, - ), - 'OracleSpec': grpc.unary_unary_rpc_method_handler( - servicer.OracleSpec, - request_deserializer=api_dot_trading__pb2.OracleSpecRequest.FromString, - response_serializer=api_dot_trading__pb2.OracleSpecResponse.SerializeToString, - ), - 'OracleSpecs': grpc.unary_unary_rpc_method_handler( - servicer.OracleSpecs, - request_deserializer=api_dot_trading__pb2.OracleSpecsRequest.FromString, - response_serializer=api_dot_trading__pb2.OracleSpecsResponse.SerializeToString, - ), - 'OracleDataBySpec': grpc.unary_unary_rpc_method_handler( - servicer.OracleDataBySpec, - request_deserializer=api_dot_trading__pb2.OracleDataBySpecRequest.FromString, - response_serializer=api_dot_trading__pb2.OracleDataBySpecResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.v1.TradingDataService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class TradingDataService(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def MarketAccounts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarketAccounts', - api_dot_trading__pb2.MarketAccountsRequest.SerializeToString, - api_dot_trading__pb2.MarketAccountsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PartyAccounts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/PartyAccounts', - api_dot_trading__pb2.PartyAccountsRequest.SerializeToString, - api_dot_trading__pb2.PartyAccountsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FeeInfrastructureAccounts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/FeeInfrastructureAccounts', - api_dot_trading__pb2.FeeInfrastructureAccountsRequest.SerializeToString, - api_dot_trading__pb2.FeeInfrastructureAccountsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Candles(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Candles', - api_dot_trading__pb2.CandlesRequest.SerializeToString, - api_dot_trading__pb2.CandlesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketDataByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarketDataByID', - api_dot_trading__pb2.MarketDataByIDRequest.SerializeToString, - api_dot_trading__pb2.MarketDataByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketsData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarketsData', - api_dot_trading__pb2.MarketsDataRequest.SerializeToString, - api_dot_trading__pb2.MarketsDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarketByID', - api_dot_trading__pb2.MarketByIDRequest.SerializeToString, - api_dot_trading__pb2.MarketByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketDepth(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarketDepth', - api_dot_trading__pb2.MarketDepthRequest.SerializeToString, - api_dot_trading__pb2.MarketDepthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Markets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Markets', - api_dot_trading__pb2.MarketsRequest.SerializeToString, - api_dot_trading__pb2.MarketsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrderByMarketAndID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrderByMarketAndID', - api_dot_trading__pb2.OrderByMarketAndIDRequest.SerializeToString, - api_dot_trading__pb2.OrderByMarketAndIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrderByReference(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrderByReference', - api_dot_trading__pb2.OrderByReferenceRequest.SerializeToString, - api_dot_trading__pb2.OrderByReferenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrdersByMarket(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrdersByMarket', - api_dot_trading__pb2.OrdersByMarketRequest.SerializeToString, - api_dot_trading__pb2.OrdersByMarketResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrdersByParty(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrdersByParty', - api_dot_trading__pb2.OrdersByPartyRequest.SerializeToString, - api_dot_trading__pb2.OrdersByPartyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrderByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrderByID', - api_dot_trading__pb2.OrderByIDRequest.SerializeToString, - api_dot_trading__pb2.OrderByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrderVersionsByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OrderVersionsByID', - api_dot_trading__pb2.OrderVersionsByIDRequest.SerializeToString, - api_dot_trading__pb2.OrderVersionsByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarginLevels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/MarginLevels', - api_dot_trading__pb2.MarginLevelsRequest.SerializeToString, - api_dot_trading__pb2.MarginLevelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Parties(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Parties', - api_dot_trading__pb2.PartiesRequest.SerializeToString, - api_dot_trading__pb2.PartiesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PartyByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/PartyByID', - api_dot_trading__pb2.PartyByIDRequest.SerializeToString, - api_dot_trading__pb2.PartyByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PositionsByParty(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/PositionsByParty', - api_dot_trading__pb2.PositionsByPartyRequest.SerializeToString, - api_dot_trading__pb2.PositionsByPartyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LastTrade(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/LastTrade', - api_dot_trading__pb2.LastTradeRequest.SerializeToString, - api_dot_trading__pb2.LastTradeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TradesByMarket(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/TradesByMarket', - api_dot_trading__pb2.TradesByMarketRequest.SerializeToString, - api_dot_trading__pb2.TradesByMarketResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TradesByOrder(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/TradesByOrder', - api_dot_trading__pb2.TradesByOrderRequest.SerializeToString, - api_dot_trading__pb2.TradesByOrderResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TradesByParty(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/TradesByParty', - api_dot_trading__pb2.TradesByPartyRequest.SerializeToString, - api_dot_trading__pb2.TradesByPartyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetProposals', - api_dot_trading__pb2.GetProposalsRequest.SerializeToString, - api_dot_trading__pb2.GetProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProposalsByParty(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetProposalsByParty', - api_dot_trading__pb2.GetProposalsByPartyRequest.SerializeToString, - api_dot_trading__pb2.GetProposalsByPartyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetVotesByParty(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetVotesByParty', - api_dot_trading__pb2.GetVotesByPartyRequest.SerializeToString, - api_dot_trading__pb2.GetVotesByPartyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNewMarketProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetNewMarketProposals', - api_dot_trading__pb2.GetNewMarketProposalsRequest.SerializeToString, - api_dot_trading__pb2.GetNewMarketProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetUpdateMarketProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetUpdateMarketProposals', - api_dot_trading__pb2.GetUpdateMarketProposalsRequest.SerializeToString, - api_dot_trading__pb2.GetUpdateMarketProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNetworkParametersProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetNetworkParametersProposals', - api_dot_trading__pb2.GetNetworkParametersProposalsRequest.SerializeToString, - api_dot_trading__pb2.GetNetworkParametersProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNewAssetProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetNewAssetProposals', - api_dot_trading__pb2.GetNewAssetProposalsRequest.SerializeToString, - api_dot_trading__pb2.GetNewAssetProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProposalByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetProposalByID', - api_dot_trading__pb2.GetProposalByIDRequest.SerializeToString, - api_dot_trading__pb2.GetProposalByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProposalByReference(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetProposalByReference', - api_dot_trading__pb2.GetProposalByReferenceRequest.SerializeToString, - api_dot_trading__pb2.GetProposalByReferenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ObserveGovernance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/ObserveGovernance', - api_dot_trading__pb2.ObserveGovernanceRequest.SerializeToString, - api_dot_trading__pb2.ObserveGovernanceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ObservePartyProposals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/ObservePartyProposals', - api_dot_trading__pb2.ObservePartyProposalsRequest.SerializeToString, - api_dot_trading__pb2.ObservePartyProposalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ObservePartyVotes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/ObservePartyVotes', - api_dot_trading__pb2.ObservePartyVotesRequest.SerializeToString, - api_dot_trading__pb2.ObservePartyVotesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ObserveProposalVotes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/ObserveProposalVotes', - api_dot_trading__pb2.ObserveProposalVotesRequest.SerializeToString, - api_dot_trading__pb2.ObserveProposalVotesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ObserveEventBus(request_iterator, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/api.v1.TradingDataService/ObserveEventBus', - api_dot_trading__pb2.ObserveEventBusRequest.SerializeToString, - api_dot_trading__pb2.ObserveEventBusResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Statistics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Statistics', - api_dot_trading__pb2.StatisticsRequest.SerializeToString, - api_dot_trading__pb2.StatisticsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LastBlockHeight(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/LastBlockHeight', - api_dot_trading__pb2.LastBlockHeightRequest.SerializeToString, - api_dot_trading__pb2.LastBlockHeightResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetVegaTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetVegaTime', - api_dot_trading__pb2.GetVegaTimeRequest.SerializeToString, - api_dot_trading__pb2.GetVegaTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AccountsSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/AccountsSubscribe', - api_dot_trading__pb2.AccountsSubscribeRequest.SerializeToString, - api_dot_trading__pb2.AccountsSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CandlesSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/CandlesSubscribe', - api_dot_trading__pb2.CandlesSubscribeRequest.SerializeToString, - api_dot_trading__pb2.CandlesSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarginLevelsSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/MarginLevelsSubscribe', - api_dot_trading__pb2.MarginLevelsSubscribeRequest.SerializeToString, - api_dot_trading__pb2.MarginLevelsSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketDepthSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/MarketDepthSubscribe', - api_dot_trading__pb2.MarketDepthSubscribeRequest.SerializeToString, - api_dot_trading__pb2.MarketDepthSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketDepthUpdatesSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/MarketDepthUpdatesSubscribe', - api_dot_trading__pb2.MarketDepthUpdatesSubscribeRequest.SerializeToString, - api_dot_trading__pb2.MarketDepthUpdatesSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MarketsDataSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/MarketsDataSubscribe', - api_dot_trading__pb2.MarketsDataSubscribeRequest.SerializeToString, - api_dot_trading__pb2.MarketsDataSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OrdersSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/OrdersSubscribe', - api_dot_trading__pb2.OrdersSubscribeRequest.SerializeToString, - api_dot_trading__pb2.OrdersSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PositionsSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/PositionsSubscribe', - api_dot_trading__pb2.PositionsSubscribeRequest.SerializeToString, - api_dot_trading__pb2.PositionsSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TradesSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/TradesSubscribe', - api_dot_trading__pb2.TradesSubscribeRequest.SerializeToString, - api_dot_trading__pb2.TradesSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TransferResponsesSubscribe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.v1.TradingDataService/TransferResponsesSubscribe', - api_dot_trading__pb2.TransferResponsesSubscribeRequest.SerializeToString, - api_dot_trading__pb2.TransferResponsesSubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNodeSignaturesAggregate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/GetNodeSignaturesAggregate', - api_dot_trading__pb2.GetNodeSignaturesAggregateRequest.SerializeToString, - api_dot_trading__pb2.GetNodeSignaturesAggregateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AssetByID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/AssetByID', - api_dot_trading__pb2.AssetByIDRequest.SerializeToString, - api_dot_trading__pb2.AssetByIDResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Assets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Assets', - api_dot_trading__pb2.AssetsRequest.SerializeToString, - api_dot_trading__pb2.AssetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EstimateFee(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/EstimateFee', - api_dot_trading__pb2.EstimateFeeRequest.SerializeToString, - api_dot_trading__pb2.EstimateFeeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EstimateMargin(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/EstimateMargin', - api_dot_trading__pb2.EstimateMarginRequest.SerializeToString, - api_dot_trading__pb2.EstimateMarginResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ERC20WithdrawalApproval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/ERC20WithdrawalApproval', - api_dot_trading__pb2.ERC20WithdrawalApprovalRequest.SerializeToString, - api_dot_trading__pb2.ERC20WithdrawalApprovalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Withdrawal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Withdrawal', - api_dot_trading__pb2.WithdrawalRequest.SerializeToString, - api_dot_trading__pb2.WithdrawalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Withdrawals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Withdrawals', - api_dot_trading__pb2.WithdrawalsRequest.SerializeToString, - api_dot_trading__pb2.WithdrawalsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Deposit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Deposit', - api_dot_trading__pb2.DepositRequest.SerializeToString, - api_dot_trading__pb2.DepositResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Deposits(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/Deposits', - api_dot_trading__pb2.DepositsRequest.SerializeToString, - api_dot_trading__pb2.DepositsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def NetworkParameters(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/NetworkParameters', - api_dot_trading__pb2.NetworkParametersRequest.SerializeToString, - api_dot_trading__pb2.NetworkParametersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LiquidityProvisions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/LiquidityProvisions', - api_dot_trading__pb2.LiquidityProvisionsRequest.SerializeToString, - api_dot_trading__pb2.LiquidityProvisionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OracleSpec(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OracleSpec', - api_dot_trading__pb2.OracleSpecRequest.SerializeToString, - api_dot_trading__pb2.OracleSpecResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OracleSpecs(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OracleSpecs', - api_dot_trading__pb2.OracleSpecsRequest.SerializeToString, - api_dot_trading__pb2.OracleSpecsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OracleDataBySpec(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.v1.TradingDataService/OracleDataBySpec', - api_dot_trading__pb2.OracleDataBySpecRequest.SerializeToString, - api_dot_trading__pb2.OracleDataBySpecResponse.FromString, + return grpc.experimental.stream_stream(request_iterator, target, '/api.v1.TradingService/ObserveEventBus', + api_dot_trading__pb2.ObserveEventBusRequest.SerializeToString, + api_dot_trading__pb2.ObserveEventBusResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py b/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py index e0cea7e7..7beb9372 100644 --- a/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py @@ -19,7 +19,7 @@ syntax='proto3', serialized_options=b'\n\024io.vegaprotocol.vegaZ\037code.vegaprotocol.io/vega/proto', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x12\x63hain_events.proto\x12\x04vega\"l\n\x13\x42uiltinAssetDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"o\n\x16\x42uiltinAssetWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"\x96\x01\n\x11\x42uiltinAssetEvent\x12\x36\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x19.vega.BuiltinAssetDepositH\x00R\x07\x64\x65posit\x12?\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x1c.vega.BuiltinAssetWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"4\n\x0e\x45RC20AssetList\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"6\n\x10\x45RC20AssetDelist\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"\xaa\x01\n\x0c\x45RC20Deposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17source_ethereum_address\x18\x02 \x01(\tR\x15sourceEthereumAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\"\x96\x01\n\x0f\x45RC20Withdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17target_ethereum_address\x18\x02 \x01(\tR\x15targetEthereumAddress\x12\'\n\x0freference_nonce\x18\x03 \x01(\tR\x0ereferenceNonce\"\xa3\x02\n\nERC20Event\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12\x36\n\nasset_list\x18\xe9\x07 \x01(\x0b\x32\x14.vega.ERC20AssetListH\x00R\tassetList\x12<\n\x0c\x61sset_delist\x18\xea\x07 \x01(\x0b\x32\x16.vega.ERC20AssetDelistH\x00R\x0b\x61ssetDelist\x12/\n\x07\x64\x65posit\x18\xeb\x07 \x01(\x0b\x32\x12.vega.ERC20DepositH\x00R\x07\x64\x65posit\x12\x38\n\nwithdrawal\x18\xec\x07 \x01(\x0b\x32\x15.vega.ERC20WithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"\x86\x01\n\nBTCDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12,\n\x12source_btc_address\x18\x02 \x01(\tR\x10sourceBtcAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\"\xb2\x01\n\rBTCWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12&\n\x0fsource_party_id\x18\x02 \x01(\tR\rsourcePartyId\x12,\n\x12target_btc_address\x18\x03 \x01(\tR\x10targetBtcAddress\x12\'\n\x0freference_nonce\x18\x04 \x01(\tR\x0ereferenceNonce\"\xa7\x01\n\x08\x42TCEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12-\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x10.vega.BTCDepositH\x00R\x07\x64\x65posit\x12\x36\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x13.vega.BTCWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"+\n\x0f\x45thereumAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"*\n\x0e\x42itcoinAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x9f\x01\n\nIdentifier\x12\x42\n\x10\x65thereum_address\x18\x01 \x01(\x0b\x32\x15.vega.EthereumAddressH\x00R\x0f\x65thereumAddress\x12?\n\x0f\x62itcoin_address\x18\x02 \x01(\x0b\x32\x14.vega.BitcoinAddressH\x00R\x0e\x62itcoinAddressB\x0c\n\nidentifier\"0\n\x0c\x41\x64\x64Validator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"3\n\x0fRemoveValidator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"\x8a\x01\n\x0eValidatorEvent\x12\x1b\n\tsource_id\x18\x01 \x01(\tR\x08sourceId\x12\'\n\x03\x61\x64\x64\x18\xe9\x07 \x01(\x0b\x32\x12.vega.AddValidatorH\x00R\x03\x61\x64\x64\x12(\n\x02rm\x18\xea\x07 \x01(\x0b\x32\x15.vega.RemoveValidatorH\x00R\x02rmB\x08\n\x06\x61\x63tionB7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' + serialized_pb=b'\n\x12\x63hain_events.proto\x12\x04vega\"l\n\x13\x42uiltinAssetDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"o\n\x16\x42uiltinAssetWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"\x96\x01\n\x11\x42uiltinAssetEvent\x12\x36\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x19.vega.BuiltinAssetDepositH\x00R\x07\x64\x65posit\x12?\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x1c.vega.BuiltinAssetWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"4\n\x0e\x45RC20AssetList\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"6\n\x10\x45RC20AssetDelist\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"\xaa\x01\n\x0c\x45RC20Deposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17source_ethereum_address\x18\x02 \x01(\tR\x15sourceEthereumAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\"\x96\x01\n\x0f\x45RC20Withdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17target_ethereum_address\x18\x02 \x01(\tR\x15targetEthereumAddress\x12\'\n\x0freference_nonce\x18\x03 \x01(\tR\x0ereferenceNonce\"\xa3\x02\n\nERC20Event\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12\x36\n\nasset_list\x18\xe9\x07 \x01(\x0b\x32\x14.vega.ERC20AssetListH\x00R\tassetList\x12<\n\x0c\x61sset_delist\x18\xea\x07 \x01(\x0b\x32\x16.vega.ERC20AssetDelistH\x00R\x0b\x61ssetDelist\x12/\n\x07\x64\x65posit\x18\xeb\x07 \x01(\x0b\x32\x12.vega.ERC20DepositH\x00R\x07\x64\x65posit\x12\x38\n\nwithdrawal\x18\xec\x07 \x01(\x0b\x32\x15.vega.ERC20WithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"\x86\x01\n\nBTCDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12,\n\x12source_btc_address\x18\x02 \x01(\tR\x10sourceBtcAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\"\xb2\x01\n\rBTCWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12&\n\x0fsource_party_id\x18\x02 \x01(\tR\rsourcePartyId\x12,\n\x12target_btc_address\x18\x03 \x01(\tR\x10targetBtcAddress\x12\'\n\x0freference_nonce\x18\x04 \x01(\tR\x0ereferenceNonce\"\xa7\x01\n\x08\x42TCEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12-\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x10.vega.BTCDepositH\x00R\x07\x64\x65posit\x12\x36\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x13.vega.BTCWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"+\n\x0f\x45thereumAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"*\n\x0e\x42itcoinAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x9f\x01\n\nIdentifier\x12\x42\n\x10\x65thereum_address\x18\x01 \x01(\x0b\x32\x15.vega.EthereumAddressH\x00R\x0f\x65thereumAddress\x12?\n\x0f\x62itcoin_address\x18\x02 \x01(\x0b\x32\x14.vega.BitcoinAddressH\x00R\x0e\x62itcoinAddressB\x0c\n\nidentifier\"0\n\x0c\x41\x64\x64Validator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"3\n\x0fRemoveValidator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"\x8a\x01\n\x0eValidatorEvent\x12\x1b\n\tsource_id\x18\x01 \x01(\tR\x08sourceId\x12\'\n\x03\x61\x64\x64\x18\xe9\x07 \x01(\x0b\x32\x12.vega.AddValidatorH\x00R\x03\x61\x64\x64\x12(\n\x02rm\x18\xea\x07 \x01(\x0b\x32\x15.vega.RemoveValidatorH\x00R\x02rmB\x08\n\x06\x61\x63tion\"\xc2\x01\n\x0cStakingEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12@\n\x0fstake_deposited\x18\xe9\x07 \x01(\x0b\x32\x14.vega.StakeDepositedH\x00R\x0estakeDeposited\x12:\n\rstake_removed\x18\xea\x07 \x01(\x0b\x32\x12.vega.StakeRemovedH\x00R\x0cstakeRemovedB\x08\n\x06\x61\x63tion\"\x9a\x01\n\x0eStakeDeposited\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTime\"\x98\x01\n\x0cStakeRemoved\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTimeB7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' ) @@ -775,6 +775,170 @@ serialized_end=2115, ) + +_STAKINGEVENT = _descriptor.Descriptor( + name='StakingEvent', + full_name='vega.StakingEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='index', full_name='vega.StakingEvent.index', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='index', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block', full_name='vega.StakingEvent.block', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='block', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='stake_deposited', full_name='vega.StakingEvent.stake_deposited', index=2, + number=1001, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='stakeDeposited', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='stake_removed', full_name='vega.StakingEvent.stake_removed', index=3, + number=1002, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='stakeRemoved', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='action', full_name='vega.StakingEvent.action', + index=0, containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[]), + ], + serialized_start=2118, + serialized_end=2312, +) + + +_STAKEDEPOSITED = _descriptor.Descriptor( + name='StakeDeposited', + full_name='vega.StakeDeposited', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='ethereum_address', full_name='vega.StakeDeposited.ethereum_address', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='ethereumAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='vega_public_key', full_name='vega.StakeDeposited.vega_public_key', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='vegaPublicKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='amount', full_name='vega.StakeDeposited.amount', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_time', full_name='vega.StakeDeposited.block_time', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='blockTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2315, + serialized_end=2469, +) + + +_STAKEREMOVED = _descriptor.Descriptor( + name='StakeRemoved', + full_name='vega.StakeRemoved', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='ethereum_address', full_name='vega.StakeRemoved.ethereum_address', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='ethereumAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='vega_public_key', full_name='vega.StakeRemoved.vega_public_key', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='vegaPublicKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='amount', full_name='vega.StakeRemoved.amount', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_time', full_name='vega.StakeRemoved.block_time', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='blockTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2472, + serialized_end=2624, +) + _BUILTINASSETEVENT.fields_by_name['deposit'].message_type = _BUILTINASSETDEPOSIT _BUILTINASSETEVENT.fields_by_name['withdrawal'].message_type = _BUILTINASSETWITHDRAWAL _BUILTINASSETEVENT.oneofs_by_name['action'].fields.append( @@ -825,6 +989,14 @@ _VALIDATOREVENT.oneofs_by_name['action'].fields.append( _VALIDATOREVENT.fields_by_name['rm']) _VALIDATOREVENT.fields_by_name['rm'].containing_oneof = _VALIDATOREVENT.oneofs_by_name['action'] +_STAKINGEVENT.fields_by_name['stake_deposited'].message_type = _STAKEDEPOSITED +_STAKINGEVENT.fields_by_name['stake_removed'].message_type = _STAKEREMOVED +_STAKINGEVENT.oneofs_by_name['action'].fields.append( + _STAKINGEVENT.fields_by_name['stake_deposited']) +_STAKINGEVENT.fields_by_name['stake_deposited'].containing_oneof = _STAKINGEVENT.oneofs_by_name['action'] +_STAKINGEVENT.oneofs_by_name['action'].fields.append( + _STAKINGEVENT.fields_by_name['stake_removed']) +_STAKINGEVENT.fields_by_name['stake_removed'].containing_oneof = _STAKINGEVENT.oneofs_by_name['action'] DESCRIPTOR.message_types_by_name['BuiltinAssetDeposit'] = _BUILTINASSETDEPOSIT DESCRIPTOR.message_types_by_name['BuiltinAssetWithdrawal'] = _BUILTINASSETWITHDRAWAL DESCRIPTOR.message_types_by_name['BuiltinAssetEvent'] = _BUILTINASSETEVENT @@ -842,6 +1014,9 @@ DESCRIPTOR.message_types_by_name['AddValidator'] = _ADDVALIDATOR DESCRIPTOR.message_types_by_name['RemoveValidator'] = _REMOVEVALIDATOR DESCRIPTOR.message_types_by_name['ValidatorEvent'] = _VALIDATOREVENT +DESCRIPTOR.message_types_by_name['StakingEvent'] = _STAKINGEVENT +DESCRIPTOR.message_types_by_name['StakeDeposited'] = _STAKEDEPOSITED +DESCRIPTOR.message_types_by_name['StakeRemoved'] = _STAKEREMOVED _sym_db.RegisterFileDescriptor(DESCRIPTOR) BuiltinAssetDeposit = _reflection.GeneratedProtocolMessageType('BuiltinAssetDeposit', (_message.Message,), { @@ -963,6 +1138,27 @@ }) _sym_db.RegisterMessage(ValidatorEvent) +StakingEvent = _reflection.GeneratedProtocolMessageType('StakingEvent', (_message.Message,), { + 'DESCRIPTOR' : _STAKINGEVENT, + '__module__' : 'chain_events_pb2' + # @@protoc_insertion_point(class_scope:vega.StakingEvent) + }) +_sym_db.RegisterMessage(StakingEvent) + +StakeDeposited = _reflection.GeneratedProtocolMessageType('StakeDeposited', (_message.Message,), { + 'DESCRIPTOR' : _STAKEDEPOSITED, + '__module__' : 'chain_events_pb2' + # @@protoc_insertion_point(class_scope:vega.StakeDeposited) + }) +_sym_db.RegisterMessage(StakeDeposited) + +StakeRemoved = _reflection.GeneratedProtocolMessageType('StakeRemoved', (_message.Message,), { + 'DESCRIPTOR' : _STAKEREMOVED, + '__module__' : 'chain_events_pb2' + # @@protoc_insertion_point(class_scope:vega.StakeRemoved) + }) +_sym_db.RegisterMessage(StakeRemoved) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) diff --git a/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py b/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py index d77fc22f..7798f32f 100644 --- a/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py @@ -23,7 +23,7 @@ syntax='proto3', serialized_options=b'\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1a\x63ommands/v1/commands.proto\x12\x10vega.commands.v1\x1a\x10governance.proto\x1a\nvega.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xde\x02\n\x0fOrderSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\x12\x1a\n\x04size\x18\x03 \x01(\x04\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x04size\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12;\n\rtime_in_force\x18\x05 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12\x1d\n\nexpires_at\x18\x06 \x01(\x03R\texpiresAt\x12$\n\x04type\x18\x07 \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1c\n\treference\x18\x08 \x01(\tR\treference\x12\x34\n\x0cpegged_order\x18\t \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\"K\n\x11OrderCancellation\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"\x83\x03\n\x0eOrderAmendment\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12!\n\x05price\x18\x03 \x01(\x0b\x32\x0b.vega.PriceR\x05price\x12\x1d\n\nsize_delta\x18\x04 \x01(\x03R\tsizeDelta\x12.\n\nexpires_at\x18\x05 \x01(\x0b\x32\x0f.vega.TimestampR\texpiresAt\x12;\n\rtime_in_force\x18\x06 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12@\n\rpegged_offset\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x0cpeggedOffset\x12@\n\x10pegged_reference\x18\x08 \x01(\x0e\x32\x15.vega.PeggedReferenceR\x0fpeggedReference\"\xf6\x01\n\x1cLiquidityProvisionSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x02 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x03 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x05 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"g\n\x12WithdrawSubmission\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\x12#\n\x03\x65xt\x18\x03 \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"e\n\x12ProposalSubmission\x12\x1c\n\treference\x18\x01 \x01(\tR\treference\x12\x31\n\x05terms\x18\x02 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\"a\n\x0eVoteSubmission\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12&\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueR\x05value\"M\n\x12\x44\x65legateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\"\xf9\x01\n\x14UndelegateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\x12\x45\n\x06method\x18\x03 \x01(\x0e\x32-.vega.commands.v1.UndelegateSubmission.MethodR\x06method\"a\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0e\n\nMETHOD_NOW\x10\x01\x12\x1a\n\x16METHOD_AT_END_OF_EPOCH\x10\x02\x12\x13\n\x0fMETHOD_IN_ANGER\x10\x03\x42O\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' + serialized_pb=b'\n\x1a\x63ommands/v1/commands.proto\x12\x10vega.commands.v1\x1a\x10governance.proto\x1a\nvega.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xde\x02\n\x0fOrderSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\x12\x1a\n\x04size\x18\x03 \x01(\x04\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x04size\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12;\n\rtime_in_force\x18\x05 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12\x1d\n\nexpires_at\x18\x06 \x01(\x03R\texpiresAt\x12$\n\x04type\x18\x07 \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1c\n\treference\x18\x08 \x01(\tR\treference\x12\x34\n\x0cpegged_order\x18\t \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\"K\n\x11OrderCancellation\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"\x83\x03\n\x0eOrderAmendment\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12!\n\x05price\x18\x03 \x01(\x0b\x32\x0b.vega.PriceR\x05price\x12\x1d\n\nsize_delta\x18\x04 \x01(\x03R\tsizeDelta\x12.\n\nexpires_at\x18\x05 \x01(\x0b\x32\x0f.vega.TimestampR\texpiresAt\x12;\n\rtime_in_force\x18\x06 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12@\n\rpegged_offset\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x0cpeggedOffset\x12@\n\x10pegged_reference\x18\x08 \x01(\x0e\x32\x15.vega.PeggedReferenceR\x0fpeggedReference\"\xf6\x01\n\x1cLiquidityProvisionSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x02 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x03 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x05 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"g\n\x12WithdrawSubmission\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\x12#\n\x03\x65xt\x18\x03 \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"e\n\x12ProposalSubmission\x12\x1c\n\treference\x18\x01 \x01(\tR\treference\x12\x31\n\x05terms\x18\x02 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\"a\n\x0eVoteSubmission\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12&\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueR\x05value\"M\n\x12\x44\x65legateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\"\xf9\x01\n\x14UndelegateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\x12\x45\n\x06method\x18\x03 \x01(\x0e\x32-.vega.commands.v1.UndelegateSubmission.MethodR\x06method\"a\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0e\n\nMETHOD_NOW\x10\x01\x12\x1a\n\x16METHOD_AT_END_OF_EPOCH\x10\x02\x12\x13\n\x0fMETHOD_IN_ANGER\x10\x03\"%\n\x0fRestoreSnapshot\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61taBO\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' , dependencies=[governance__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,]) @@ -549,6 +549,38 @@ serialized_end=1871, ) + +_RESTORESNAPSHOT = _descriptor.Descriptor( + name='RestoreSnapshot', + full_name='vega.commands.v1.RestoreSnapshot', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='data', full_name='vega.commands.v1.RestoreSnapshot.data', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='data', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1873, + serialized_end=1910, +) + _ORDERSUBMISSION.fields_by_name['side'].enum_type = vega__pb2._SIDE _ORDERSUBMISSION.fields_by_name['time_in_force'].enum_type = vega__pb2._ORDER_TIMEINFORCE _ORDERSUBMISSION.fields_by_name['type'].enum_type = vega__pb2._ORDER_TYPE @@ -574,6 +606,7 @@ DESCRIPTOR.message_types_by_name['VoteSubmission'] = _VOTESUBMISSION DESCRIPTOR.message_types_by_name['DelegateSubmission'] = _DELEGATESUBMISSION DESCRIPTOR.message_types_by_name['UndelegateSubmission'] = _UNDELEGATESUBMISSION +DESCRIPTOR.message_types_by_name['RestoreSnapshot'] = _RESTORESNAPSHOT _sym_db.RegisterFileDescriptor(DESCRIPTOR) OrderSubmission = _reflection.GeneratedProtocolMessageType('OrderSubmission', (_message.Message,), { @@ -639,6 +672,13 @@ }) _sym_db.RegisterMessage(UndelegateSubmission) +RestoreSnapshot = _reflection.GeneratedProtocolMessageType('RestoreSnapshot', (_message.Message,), { + 'DESCRIPTOR' : _RESTORESNAPSHOT, + '__module__' : 'commands.v1.commands_pb2' + # @@protoc_insertion_point(class_scope:vega.commands.v1.RestoreSnapshot) + }) +_sym_db.RegisterMessage(RestoreSnapshot) + DESCRIPTOR._options = None _ORDERSUBMISSION.fields_by_name['market_id']._options = None diff --git a/grpc/clients/python/vegaapiclient/generated/commands/v1/transaction_pb2.py b/grpc/clients/python/vegaapiclient/generated/commands/v1/transaction_pb2.py index 561c37be..e6e47e8f 100644 --- a/grpc/clients/python/vegaapiclient/generated/commands/v1/transaction_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/commands/v1/transaction_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1d\x63ommands/v1/transaction.proto\x12\x10vega.commands.v1\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\x1a\x19\x63ommands/v1/oracles.proto\"\xf8\t\n\tInputData\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12O\n\x10order_submission\x18\xe9\x07 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12U\n\x12order_cancellation\x18\xea\x07 \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12L\n\x0forder_amendment\x18\xeb\x07 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12X\n\x13withdraw_submission\x18\xec\x07 \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmission\x12X\n\x13proposal_submission\x18\xed\x07 \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x12proposalSubmission\x12L\n\x0fvote_submission\x18\xee\x07 \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12w\n\x1eliquidity_provision_submission\x18\xef\x07 \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12X\n\x13\x64\x65legate_submission\x18\xf0\x07 \x01(\x0b\x32$.vega.commands.v1.DelegateSubmissionH\x00R\x12\x64\x65legateSubmission\x12^\n\x15undelegate_submission\x18\xf1\x07 \x01(\x0b\x32&.vega.commands.v1.UndelegateSubmissionH\x00R\x14undelegateSubmission\x12R\n\x11node_registration\x18\xd1\x0f \x01(\x0b\x32\".vega.commands.v1.NodeRegistrationH\x00R\x10nodeRegistration\x12:\n\tnode_vote\x18\xd2\x0f \x01(\x0b\x32\x1a.vega.commands.v1.NodeVoteH\x00R\x08nodeVote\x12I\n\x0enode_signature\x18\xd3\x0f \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12@\n\x0b\x63hain_event\x18\xd4\x0f \x01(\x0b\x32\x1c.vega.commands.v1.ChainEventH\x00R\nchainEvent\x12_\n\x16oracle_data_submission\x18\xb9\x17 \x01(\x0b\x32&.vega.commands.v1.OracleDataSubmissionH\x00R\x14oracleDataSubmissionB\t\n\x07\x63ommand\"\xc3\x01\n\x0bTransaction\x12\x1d\n\ninput_data\x18\x01 \x01(\x0cR\tinputData\x12\x39\n\tsignature\x18\x02 \x01(\x0b\x32\x1b.vega.commands.v1.SignatureR\tsignature\x12\x1b\n\x07\x61\x64\x64ress\x18\xe9\x07 \x01(\tH\x00R\x07\x61\x64\x64ress\x12\x1a\n\x07pub_key\x18\xea\x07 \x01(\tH\x00R\x06pubKey\x12\x19\n\x07version\x18\xd0\x0f \x01(\rR\x07versionB\x06\n\x04\x66rom\"O\n\tSignature\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n\x04\x61lgo\x18\x02 \x01(\tR\x04\x61lgo\x12\x18\n\x07version\x18\x03 \x01(\rR\x07versionBO\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' + serialized_pb=b'\n\x1d\x63ommands/v1/transaction.proto\x12\x10vega.commands.v1\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\x1a\x19\x63ommands/v1/oracles.proto\"\xde\n\n\tInputData\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12O\n\x10order_submission\x18\xe9\x07 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12U\n\x12order_cancellation\x18\xea\x07 \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12L\n\x0forder_amendment\x18\xeb\x07 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12X\n\x13withdraw_submission\x18\xec\x07 \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmission\x12X\n\x13proposal_submission\x18\xed\x07 \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x12proposalSubmission\x12L\n\x0fvote_submission\x18\xee\x07 \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12w\n\x1eliquidity_provision_submission\x18\xef\x07 \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12X\n\x13\x64\x65legate_submission\x18\xf0\x07 \x01(\x0b\x32$.vega.commands.v1.DelegateSubmissionH\x00R\x12\x64\x65legateSubmission\x12^\n\x15undelegate_submission\x18\xf1\x07 \x01(\x0b\x32&.vega.commands.v1.UndelegateSubmissionH\x00R\x14undelegateSubmission\x12R\n\x11node_registration\x18\xd1\x0f \x01(\x0b\x32\".vega.commands.v1.NodeRegistrationH\x00R\x10nodeRegistration\x12:\n\tnode_vote\x18\xd2\x0f \x01(\x0b\x32\x1a.vega.commands.v1.NodeVoteH\x00R\x08nodeVote\x12I\n\x0enode_signature\x18\xd3\x0f \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12@\n\x0b\x63hain_event\x18\xd4\x0f \x01(\x0b\x32\x1c.vega.commands.v1.ChainEventH\x00R\nchainEvent\x12_\n\x16oracle_data_submission\x18\xb9\x17 \x01(\x0b\x32&.vega.commands.v1.OracleDataSubmissionH\x00R\x14oracleDataSubmission\x12\x64\n\x1brestore_snapshot_submission\x18\xa1\x1f \x01(\x0b\x32!.vega.commands.v1.RestoreSnapshotH\x00R\x19restoreSnapshotSubmissionB\t\n\x07\x63ommand\"\xc3\x01\n\x0bTransaction\x12\x1d\n\ninput_data\x18\x01 \x01(\x0cR\tinputData\x12\x39\n\tsignature\x18\x02 \x01(\x0b\x32\x1b.vega.commands.v1.SignatureR\tsignature\x12\x1b\n\x07\x61\x64\x64ress\x18\xe9\x07 \x01(\tH\x00R\x07\x61\x64\x64ress\x12\x1a\n\x07pub_key\x18\xea\x07 \x01(\tH\x00R\x06pubKey\x12\x19\n\x07version\x18\xd0\x0f \x01(\rR\x07versionB\x06\n\x04\x66rom\"O\n\tSignature\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n\x04\x61lgo\x18\x02 \x01(\tR\x04\x61lgo\x12\x18\n\x07version\x18\x03 \x01(\rR\x07versionBO\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' , dependencies=[commands_dot_v1_dot_commands__pb2.DESCRIPTOR,commands_dot_v1_dot_validator__commands__pb2.DESCRIPTOR,commands_dot_v1_dot_oracles__pb2.DESCRIPTOR,]) @@ -149,6 +149,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='oracleDataSubmission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='restore_snapshot_submission', full_name='vega.commands.v1.InputData.restore_snapshot_submission', index=16, + number=4001, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='restoreSnapshotSubmission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -167,7 +174,7 @@ fields=[]), ], serialized_start=145, - serialized_end=1417, + serialized_end=1519, ) @@ -231,8 +238,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=1420, - serialized_end=1615, + serialized_start=1522, + serialized_end=1717, ) @@ -277,8 +284,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1617, - serialized_end=1696, + serialized_start=1719, + serialized_end=1798, ) _INPUTDATA.fields_by_name['order_submission'].message_type = commands_dot_v1_dot_commands__pb2._ORDERSUBMISSION @@ -295,6 +302,7 @@ _INPUTDATA.fields_by_name['node_signature'].message_type = commands_dot_v1_dot_validator__commands__pb2._NODESIGNATURE _INPUTDATA.fields_by_name['chain_event'].message_type = commands_dot_v1_dot_validator__commands__pb2._CHAINEVENT _INPUTDATA.fields_by_name['oracle_data_submission'].message_type = commands_dot_v1_dot_oracles__pb2._ORACLEDATASUBMISSION +_INPUTDATA.fields_by_name['restore_snapshot_submission'].message_type = commands_dot_v1_dot_commands__pb2._RESTORESNAPSHOT _INPUTDATA.oneofs_by_name['command'].fields.append( _INPUTDATA.fields_by_name['order_submission']) _INPUTDATA.fields_by_name['order_submission'].containing_oneof = _INPUTDATA.oneofs_by_name['command'] @@ -337,6 +345,9 @@ _INPUTDATA.oneofs_by_name['command'].fields.append( _INPUTDATA.fields_by_name['oracle_data_submission']) _INPUTDATA.fields_by_name['oracle_data_submission'].containing_oneof = _INPUTDATA.oneofs_by_name['command'] +_INPUTDATA.oneofs_by_name['command'].fields.append( + _INPUTDATA.fields_by_name['restore_snapshot_submission']) +_INPUTDATA.fields_by_name['restore_snapshot_submission'].containing_oneof = _INPUTDATA.oneofs_by_name['command'] _TRANSACTION.fields_by_name['signature'].message_type = _SIGNATURE _TRANSACTION.oneofs_by_name['from'].fields.append( _TRANSACTION.fields_by_name['address']) diff --git a/grpc/clients/python/vegaapiclient/generated/commands/v1/validator_commands_pb2.py b/grpc/clients/python/vegaapiclient/generated/commands/v1/validator_commands_pb2.py index 49353f08..ceb3fa5b 100644 --- a/grpc/clients/python/vegaapiclient/generated/commands/v1/validator_commands_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/commands/v1/validator_commands_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n$commands/v1/validator_commands.proto\x12\x10vega.commands.v1\x1a\x12\x63hain_events.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xa4\x01\n\x10NodeRegistration\x12\x1f\n\x07pub_key\x18\x01 \x01(\x0c\x42\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12*\n\rchain_pub_key\x18\x02 \x01(\x0c\x42\x06\xe2\xdf\x1f\x02X\x01R\x0b\x63hainPubKey\x12!\n\x08info_url\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07infoUrl\x12 \n\x07\x63ountry\x18\x04 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07\x63ountry\"Q\n\x08NodeVote\x12\x1f\n\x07pub_key\x18\x01 \x01(\x0c\x42\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12$\n\treference\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\treference\"j\n\rNodeSignature\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03sig\x18\x02 \x01(\x0cR\x03sig\x12\x37\n\x04kind\x18\x03 \x01(\x0e\x32#.vega.commands.v1.NodeSignatureKindR\x04kind\"\xfd\x01\n\nChainEvent\x12\x13\n\x05tx_id\x18\x01 \x01(\tR\x04txId\x12\x14\n\x05nonce\x18\x02 \x01(\x04R\x05nonce\x12\x34\n\x07\x62uiltin\x18\xe9\x07 \x01(\x0b\x32\x17.vega.BuiltinAssetEventH\x00R\x07\x62uiltin\x12)\n\x05\x65rc20\x18\xea\x07 \x01(\x0b\x32\x10.vega.ERC20EventH\x00R\x05\x65rc20\x12#\n\x03\x62tc\x18\xeb\x07 \x01(\x0b\x32\x0e.vega.BTCEventH\x00R\x03\x62tc\x12\x35\n\tvalidator\x18\xec\x07 \x01(\x0b\x32\x14.vega.ValidatorEventH\x00R\tvalidatorB\x07\n\x05\x65vent*\x85\x01\n\x11NodeSignatureKind\x12#\n\x1fNODE_SIGNATURE_KIND_UNSPECIFIED\x10\x00\x12!\n\x1dNODE_SIGNATURE_KIND_ASSET_NEW\x10\x01\x12(\n$NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL\x10\x02\x42O\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' + serialized_pb=b'\n$commands/v1/validator_commands.proto\x12\x10vega.commands.v1\x1a\x12\x63hain_events.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xe0\x01\n\x10NodeRegistration\x12(\n\x0cvega_pub_key\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nvegaPubKey\x12\x31\n\x10\x65thereum_address\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x0f\x65thereumAddress\x12*\n\rchain_pub_key\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x0b\x63hainPubKey\x12!\n\x08info_url\x18\x04 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07infoUrl\x12 \n\x07\x63ountry\x18\x05 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07\x63ountry\"Q\n\x08NodeVote\x12\x1f\n\x07pub_key\x18\x01 \x01(\x0c\x42\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12$\n\treference\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\treference\"j\n\rNodeSignature\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03sig\x18\x02 \x01(\x0cR\x03sig\x12\x37\n\x04kind\x18\x03 \x01(\x0e\x32#.vega.commands.v1.NodeSignatureKindR\x04kind\"\xb9\x02\n\nChainEvent\x12\x13\n\x05tx_id\x18\x01 \x01(\tR\x04txId\x12\x14\n\x05nonce\x18\x02 \x01(\x04R\x05nonce\x12\x34\n\x07\x62uiltin\x18\xe9\x07 \x01(\x0b\x32\x17.vega.BuiltinAssetEventH\x00R\x07\x62uiltin\x12)\n\x05\x65rc20\x18\xea\x07 \x01(\x0b\x32\x10.vega.ERC20EventH\x00R\x05\x65rc20\x12#\n\x03\x62tc\x18\xeb\x07 \x01(\x0b\x32\x0e.vega.BTCEventH\x00R\x03\x62tc\x12\x35\n\tvalidator\x18\xec\x07 \x01(\x0b\x32\x14.vega.ValidatorEventH\x00R\tvalidator\x12:\n\rstaking_event\x18\xed\x07 \x01(\x0b\x32\x12.vega.StakingEventH\x00R\x0cstakingEventB\x07\n\x05\x65vent*\x85\x01\n\x11NodeSignatureKind\x12#\n\x1fNODE_SIGNATURE_KIND_UNSPECIFIED\x10\x00\x12!\n\x1dNODE_SIGNATURE_KIND_ASSET_NEW\x10\x01\x12(\n$NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL\x10\x02\x42O\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' , dependencies=[chain__events__pb2.DESCRIPTOR,github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,]) @@ -51,8 +51,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=749, - serialized_end=882, + serialized_start=869, + serialized_end=1002, ) _sym_db.RegisterEnumDescriptor(_NODESIGNATUREKIND) @@ -72,32 +72,39 @@ create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='pub_key', full_name='vega.commands.v1.NodeRegistration.pub_key', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='vega_pub_key', full_name='vega.commands.v1.NodeRegistration.vega_pub_key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='pubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002X\001', json_name='vegaPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chain_pub_key', full_name='vega.commands.v1.NodeRegistration.chain_pub_key', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='ethereum_address', full_name='vega.commands.v1.NodeRegistration.ethereum_address', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='chainPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002X\001', json_name='ethereumAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='info_url', full_name='vega.commands.v1.NodeRegistration.info_url', index=2, + name='chain_pub_key', full_name='vega.commands.v1.NodeRegistration.chain_pub_key', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='infoUrl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002X\001', json_name='chainPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='country', full_name='vega.commands.v1.NodeRegistration.country', index=3, + name='info_url', full_name='vega.commands.v1.NodeRegistration.info_url', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, + serialized_options=b'\342\337\037\002X\001', json_name='infoUrl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='country', full_name='vega.commands.v1.NodeRegistration.country', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, serialized_options=b'\342\337\037\002X\001', json_name='country', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ @@ -112,7 +119,7 @@ oneofs=[ ], serialized_start=135, - serialized_end=299, + serialized_end=359, ) @@ -150,8 +157,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=301, - serialized_end=382, + serialized_start=361, + serialized_end=442, ) @@ -196,8 +203,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=384, - serialized_end=490, + serialized_start=444, + serialized_end=550, ) @@ -251,6 +258,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='validator', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='staking_event', full_name='vega.commands.v1.ChainEvent.staking_event', index=6, + number=1005, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='stakingEvent', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -268,8 +282,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=493, - serialized_end=746, + serialized_start=553, + serialized_end=866, ) _NODESIGNATURE.fields_by_name['kind'].enum_type = _NODESIGNATUREKIND @@ -277,6 +291,7 @@ _CHAINEVENT.fields_by_name['erc20'].message_type = chain__events__pb2._ERC20EVENT _CHAINEVENT.fields_by_name['btc'].message_type = chain__events__pb2._BTCEVENT _CHAINEVENT.fields_by_name['validator'].message_type = chain__events__pb2._VALIDATOREVENT +_CHAINEVENT.fields_by_name['staking_event'].message_type = chain__events__pb2._STAKINGEVENT _CHAINEVENT.oneofs_by_name['event'].fields.append( _CHAINEVENT.fields_by_name['builtin']) _CHAINEVENT.fields_by_name['builtin'].containing_oneof = _CHAINEVENT.oneofs_by_name['event'] @@ -289,6 +304,9 @@ _CHAINEVENT.oneofs_by_name['event'].fields.append( _CHAINEVENT.fields_by_name['validator']) _CHAINEVENT.fields_by_name['validator'].containing_oneof = _CHAINEVENT.oneofs_by_name['event'] +_CHAINEVENT.oneofs_by_name['event'].fields.append( + _CHAINEVENT.fields_by_name['staking_event']) +_CHAINEVENT.fields_by_name['staking_event'].containing_oneof = _CHAINEVENT.oneofs_by_name['event'] DESCRIPTOR.message_types_by_name['NodeRegistration'] = _NODEREGISTRATION DESCRIPTOR.message_types_by_name['NodeVote'] = _NODEVOTE DESCRIPTOR.message_types_by_name['NodeSignature'] = _NODESIGNATURE @@ -326,7 +344,8 @@ DESCRIPTOR._options = None -_NODEREGISTRATION.fields_by_name['pub_key']._options = None +_NODEREGISTRATION.fields_by_name['vega_pub_key']._options = None +_NODEREGISTRATION.fields_by_name['ethereum_address']._options = None _NODEREGISTRATION.fields_by_name['chain_pub_key']._options = None _NODEREGISTRATION.fields_by_name['info_url']._options = None _NODEREGISTRATION.fields_by_name['country']._options = None diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py new file mode 100644 index 00000000..25d0a575 --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py @@ -0,0 +1,947 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: coreapi/v1/coreapi.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import assets_pb2 as assets__pb2 +import governance_pb2 as governance__pb2 +import markets_pb2 as markets__pb2 +import vega_pb2 as vega__pb2 +from events.v1 import events_pb2 as events_dot_v1_dot_events__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='coreapi/v1/coreapi.proto', + package='vega.coreapi.v1', + syntax='proto3', + serialized_options=b'\n\037io.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x18\x63oreapi/v1/coreapi.proto\x12\x0fvega.coreapi.v1\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\rmarkets.proto\x1a\nvega.proto\x1a\x16\x65vents/v1/events.proto\"{\n\x07\x41\x63\x63ount\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x12\n\x04type\x18\x06 \x01(\tR\x04type\"C\n\x13ListAccountsRequest\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\"L\n\x14ListAccountsResponse\x12\x34\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x18.vega.coreapi.v1.AccountR\x08\x61\x63\x63ounts\")\n\x11ListAssetsRequest\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\"9\n\x12ListAssetsResponse\x12#\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x0b.vega.AssetR\x06\x61ssets\"R\n\x1cListNetworkParametersRequest\x12\x32\n\x15network_parameter_key\x18\x01 \x01(\tR\x13networkParameterKey\"f\n\x1dListNetworkParametersResponse\x12\x45\n\x12network_parameters\x18\x01 \x03(\x0b\x32\x16.vega.NetworkParameterR\x11networkParameters\"\x14\n\x12ListPartiesRequest\"<\n\x13ListPartiesResponse\x12%\n\x07parties\x18\x01 \x03(\x0b\x32\x0b.vega.PartyR\x07parties\"\x17\n\x15ListValidatorsRequest\"Y\n\x16ListValidatorsResponse\x12?\n\nvalidators\x18\x01 \x03(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateR\nvalidators\",\n\x12ListMarketsRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"=\n\x13ListMarketsResponse\x12&\n\x07markets\x18\x01 \x03(\x0b\x32\x0c.vega.MarketR\x07markets\"N\n\x14ListProposalsRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\"E\n\x15ListProposalsResponse\x12,\n\tproposals\x18\x01 \x03(\x0b\x32\x0e.vega.ProposalR\tproposals\"0\n\x16ListMarketsDataRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"N\n\x17ListMarketsDataResponse\x12\x33\n\x0cmarkets_data\x18\x01 \x03(\x0b\x32\x10.vega.MarketDataR\x0bmarketsData\"D\n\x10ListVotesRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x14\n\x05party\x18\x02 \x01(\tR\x05party\"5\n\x11ListVotesResponse\x12 \n\x05votes\x18\x01 \x03(\x0b\x32\n.vega.VoteR\x05votes2\xed\x06\n\x0e\x43oreApiService\x12[\n\x0cListAccounts\x12$.vega.coreapi.v1.ListAccountsRequest\x1a%.vega.coreapi.v1.ListAccountsResponse\x12U\n\nListAssets\x12\".vega.coreapi.v1.ListAssetsRequest\x1a#.vega.coreapi.v1.ListAssetsResponse\x12v\n\x15ListNetworkParameters\x12-.vega.coreapi.v1.ListNetworkParametersRequest\x1a..vega.coreapi.v1.ListNetworkParametersResponse\x12X\n\x0bListParties\x12#.vega.coreapi.v1.ListPartiesRequest\x1a$.vega.coreapi.v1.ListPartiesResponse\x12\x61\n\x0eListValidators\x12&.vega.coreapi.v1.ListValidatorsRequest\x1a\'.vega.coreapi.v1.ListValidatorsResponse\x12X\n\x0bListMarkets\x12#.vega.coreapi.v1.ListMarketsRequest\x1a$.vega.coreapi.v1.ListMarketsResponse\x12^\n\rListProposals\x12%.vega.coreapi.v1.ListProposalsRequest\x1a&.vega.coreapi.v1.ListProposalsResponse\x12\x64\n\x0fListMarketsData\x12\'.vega.coreapi.v1.ListMarketsDataRequest\x1a(.vega.coreapi.v1.ListMarketsDataResponse\x12R\n\tListVotes\x12!.vega.coreapi.v1.ListVotesRequest\x1a\".vega.coreapi.v1.ListVotesResponseBM\n\x1fio.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1b\x06proto3' + , + dependencies=[assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,events_dot_v1_dot_events__pb2.DESCRIPTOR,]) + + + + +_ACCOUNT = _descriptor.Descriptor( + name='Account', + full_name='vega.coreapi.v1.Account', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.coreapi.v1.Account.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market', full_name='vega.coreapi.v1.Account.market', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='balance', full_name='vega.coreapi.v1.Account.balance', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='balance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='asset', full_name='vega.coreapi.v1.Account.asset', index=3, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='type', full_name='vega.coreapi.v1.Account.type', index=4, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=251, +) + + +_LISTACCOUNTSREQUEST = _descriptor.Descriptor( + name='ListAccountsRequest', + full_name='vega.coreapi.v1.ListAccountsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.coreapi.v1.ListAccountsRequest.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market', full_name='vega.coreapi.v1.ListAccountsRequest.market', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=253, + serialized_end=320, +) + + +_LISTACCOUNTSRESPONSE = _descriptor.Descriptor( + name='ListAccountsResponse', + full_name='vega.coreapi.v1.ListAccountsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='accounts', full_name='vega.coreapi.v1.ListAccountsResponse.accounts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='accounts', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=322, + serialized_end=398, +) + + +_LISTASSETSREQUEST = _descriptor.Descriptor( + name='ListAssetsRequest', + full_name='vega.coreapi.v1.ListAssetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='asset', full_name='vega.coreapi.v1.ListAssetsRequest.asset', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=400, + serialized_end=441, +) + + +_LISTASSETSRESPONSE = _descriptor.Descriptor( + name='ListAssetsResponse', + full_name='vega.coreapi.v1.ListAssetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='assets', full_name='vega.coreapi.v1.ListAssetsResponse.assets', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='assets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=443, + serialized_end=500, +) + + +_LISTNETWORKPARAMETERSREQUEST = _descriptor.Descriptor( + name='ListNetworkParametersRequest', + full_name='vega.coreapi.v1.ListNetworkParametersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='network_parameter_key', full_name='vega.coreapi.v1.ListNetworkParametersRequest.network_parameter_key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='networkParameterKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=502, + serialized_end=584, +) + + +_LISTNETWORKPARAMETERSRESPONSE = _descriptor.Descriptor( + name='ListNetworkParametersResponse', + full_name='vega.coreapi.v1.ListNetworkParametersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='network_parameters', full_name='vega.coreapi.v1.ListNetworkParametersResponse.network_parameters', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='networkParameters', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=586, + serialized_end=688, +) + + +_LISTPARTIESREQUEST = _descriptor.Descriptor( + name='ListPartiesRequest', + full_name='vega.coreapi.v1.ListPartiesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=690, + serialized_end=710, +) + + +_LISTPARTIESRESPONSE = _descriptor.Descriptor( + name='ListPartiesResponse', + full_name='vega.coreapi.v1.ListPartiesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parties', full_name='vega.coreapi.v1.ListPartiesResponse.parties', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='parties', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=712, + serialized_end=772, +) + + +_LISTVALIDATORSREQUEST = _descriptor.Descriptor( + name='ListValidatorsRequest', + full_name='vega.coreapi.v1.ListValidatorsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=774, + serialized_end=797, +) + + +_LISTVALIDATORSRESPONSE = _descriptor.Descriptor( + name='ListValidatorsResponse', + full_name='vega.coreapi.v1.ListValidatorsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='validators', full_name='vega.coreapi.v1.ListValidatorsResponse.validators', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='validators', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=799, + serialized_end=888, +) + + +_LISTMARKETSREQUEST = _descriptor.Descriptor( + name='ListMarketsRequest', + full_name='vega.coreapi.v1.ListMarketsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='market', full_name='vega.coreapi.v1.ListMarketsRequest.market', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=890, + serialized_end=934, +) + + +_LISTMARKETSRESPONSE = _descriptor.Descriptor( + name='ListMarketsResponse', + full_name='vega.coreapi.v1.ListMarketsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='markets', full_name='vega.coreapi.v1.ListMarketsResponse.markets', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='markets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=936, + serialized_end=997, +) + + +_LISTPROPOSALSREQUEST = _descriptor.Descriptor( + name='ListProposalsRequest', + full_name='vega.coreapi.v1.ListProposalsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='proposal', full_name='vega.coreapi.v1.ListProposalsRequest.proposal', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='proposal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='proposer', full_name='vega.coreapi.v1.ListProposalsRequest.proposer', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='proposer', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=999, + serialized_end=1077, +) + + +_LISTPROPOSALSRESPONSE = _descriptor.Descriptor( + name='ListProposalsResponse', + full_name='vega.coreapi.v1.ListProposalsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='proposals', full_name='vega.coreapi.v1.ListProposalsResponse.proposals', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='proposals', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1079, + serialized_end=1148, +) + + +_LISTMARKETSDATAREQUEST = _descriptor.Descriptor( + name='ListMarketsDataRequest', + full_name='vega.coreapi.v1.ListMarketsDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='market', full_name='vega.coreapi.v1.ListMarketsDataRequest.market', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1150, + serialized_end=1198, +) + + +_LISTMARKETSDATARESPONSE = _descriptor.Descriptor( + name='ListMarketsDataResponse', + full_name='vega.coreapi.v1.ListMarketsDataResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='markets_data', full_name='vega.coreapi.v1.ListMarketsDataResponse.markets_data', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='marketsData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1200, + serialized_end=1278, +) + + +_LISTVOTESREQUEST = _descriptor.Descriptor( + name='ListVotesRequest', + full_name='vega.coreapi.v1.ListVotesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='proposal', full_name='vega.coreapi.v1.ListVotesRequest.proposal', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='proposal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='party', full_name='vega.coreapi.v1.ListVotesRequest.party', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1280, + serialized_end=1348, +) + + +_LISTVOTESRESPONSE = _descriptor.Descriptor( + name='ListVotesResponse', + full_name='vega.coreapi.v1.ListVotesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='votes', full_name='vega.coreapi.v1.ListVotesResponse.votes', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='votes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1350, + serialized_end=1403, +) + +_LISTACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = _ACCOUNT +_LISTASSETSRESPONSE.fields_by_name['assets'].message_type = assets__pb2._ASSET +_LISTNETWORKPARAMETERSRESPONSE.fields_by_name['network_parameters'].message_type = vega__pb2._NETWORKPARAMETER +_LISTPARTIESRESPONSE.fields_by_name['parties'].message_type = vega__pb2._PARTY +_LISTVALIDATORSRESPONSE.fields_by_name['validators'].message_type = events_dot_v1_dot_events__pb2._VALIDATORUPDATE +_LISTMARKETSRESPONSE.fields_by_name['markets'].message_type = markets__pb2._MARKET +_LISTPROPOSALSRESPONSE.fields_by_name['proposals'].message_type = governance__pb2._PROPOSAL +_LISTMARKETSDATARESPONSE.fields_by_name['markets_data'].message_type = vega__pb2._MARKETDATA +_LISTVOTESRESPONSE.fields_by_name['votes'].message_type = governance__pb2._VOTE +DESCRIPTOR.message_types_by_name['Account'] = _ACCOUNT +DESCRIPTOR.message_types_by_name['ListAccountsRequest'] = _LISTACCOUNTSREQUEST +DESCRIPTOR.message_types_by_name['ListAccountsResponse'] = _LISTACCOUNTSRESPONSE +DESCRIPTOR.message_types_by_name['ListAssetsRequest'] = _LISTASSETSREQUEST +DESCRIPTOR.message_types_by_name['ListAssetsResponse'] = _LISTASSETSRESPONSE +DESCRIPTOR.message_types_by_name['ListNetworkParametersRequest'] = _LISTNETWORKPARAMETERSREQUEST +DESCRIPTOR.message_types_by_name['ListNetworkParametersResponse'] = _LISTNETWORKPARAMETERSRESPONSE +DESCRIPTOR.message_types_by_name['ListPartiesRequest'] = _LISTPARTIESREQUEST +DESCRIPTOR.message_types_by_name['ListPartiesResponse'] = _LISTPARTIESRESPONSE +DESCRIPTOR.message_types_by_name['ListValidatorsRequest'] = _LISTVALIDATORSREQUEST +DESCRIPTOR.message_types_by_name['ListValidatorsResponse'] = _LISTVALIDATORSRESPONSE +DESCRIPTOR.message_types_by_name['ListMarketsRequest'] = _LISTMARKETSREQUEST +DESCRIPTOR.message_types_by_name['ListMarketsResponse'] = _LISTMARKETSRESPONSE +DESCRIPTOR.message_types_by_name['ListProposalsRequest'] = _LISTPROPOSALSREQUEST +DESCRIPTOR.message_types_by_name['ListProposalsResponse'] = _LISTPROPOSALSRESPONSE +DESCRIPTOR.message_types_by_name['ListMarketsDataRequest'] = _LISTMARKETSDATAREQUEST +DESCRIPTOR.message_types_by_name['ListMarketsDataResponse'] = _LISTMARKETSDATARESPONSE +DESCRIPTOR.message_types_by_name['ListVotesRequest'] = _LISTVOTESREQUEST +DESCRIPTOR.message_types_by_name['ListVotesResponse'] = _LISTVOTESRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Account = _reflection.GeneratedProtocolMessageType('Account', (_message.Message,), { + 'DESCRIPTOR' : _ACCOUNT, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.Account) + }) +_sym_db.RegisterMessage(Account) + +ListAccountsRequest = _reflection.GeneratedProtocolMessageType('ListAccountsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTACCOUNTSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsRequest) + }) +_sym_db.RegisterMessage(ListAccountsRequest) + +ListAccountsResponse = _reflection.GeneratedProtocolMessageType('ListAccountsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTACCOUNTSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAccountsResponse) + }) +_sym_db.RegisterMessage(ListAccountsResponse) + +ListAssetsRequest = _reflection.GeneratedProtocolMessageType('ListAssetsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTASSETSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsRequest) + }) +_sym_db.RegisterMessage(ListAssetsRequest) + +ListAssetsResponse = _reflection.GeneratedProtocolMessageType('ListAssetsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTASSETSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListAssetsResponse) + }) +_sym_db.RegisterMessage(ListAssetsResponse) + +ListNetworkParametersRequest = _reflection.GeneratedProtocolMessageType('ListNetworkParametersRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTNETWORKPARAMETERSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersRequest) + }) +_sym_db.RegisterMessage(ListNetworkParametersRequest) + +ListNetworkParametersResponse = _reflection.GeneratedProtocolMessageType('ListNetworkParametersResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTNETWORKPARAMETERSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListNetworkParametersResponse) + }) +_sym_db.RegisterMessage(ListNetworkParametersResponse) + +ListPartiesRequest = _reflection.GeneratedProtocolMessageType('ListPartiesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTIESREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesRequest) + }) +_sym_db.RegisterMessage(ListPartiesRequest) + +ListPartiesResponse = _reflection.GeneratedProtocolMessageType('ListPartiesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTIESRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesResponse) + }) +_sym_db.RegisterMessage(ListPartiesResponse) + +ListValidatorsRequest = _reflection.GeneratedProtocolMessageType('ListValidatorsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTVALIDATORSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsRequest) + }) +_sym_db.RegisterMessage(ListValidatorsRequest) + +ListValidatorsResponse = _reflection.GeneratedProtocolMessageType('ListValidatorsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTVALIDATORSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListValidatorsResponse) + }) +_sym_db.RegisterMessage(ListValidatorsResponse) + +ListMarketsRequest = _reflection.GeneratedProtocolMessageType('ListMarketsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTMARKETSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsRequest) + }) +_sym_db.RegisterMessage(ListMarketsRequest) + +ListMarketsResponse = _reflection.GeneratedProtocolMessageType('ListMarketsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTMARKETSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsResponse) + }) +_sym_db.RegisterMessage(ListMarketsResponse) + +ListProposalsRequest = _reflection.GeneratedProtocolMessageType('ListProposalsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPROPOSALSREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsRequest) + }) +_sym_db.RegisterMessage(ListProposalsRequest) + +ListProposalsResponse = _reflection.GeneratedProtocolMessageType('ListProposalsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTPROPOSALSRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListProposalsResponse) + }) +_sym_db.RegisterMessage(ListProposalsResponse) + +ListMarketsDataRequest = _reflection.GeneratedProtocolMessageType('ListMarketsDataRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTMARKETSDATAREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataRequest) + }) +_sym_db.RegisterMessage(ListMarketsDataRequest) + +ListMarketsDataResponse = _reflection.GeneratedProtocolMessageType('ListMarketsDataResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTMARKETSDATARESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListMarketsDataResponse) + }) +_sym_db.RegisterMessage(ListMarketsDataResponse) + +ListVotesRequest = _reflection.GeneratedProtocolMessageType('ListVotesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTVOTESREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesRequest) + }) +_sym_db.RegisterMessage(ListVotesRequest) + +ListVotesResponse = _reflection.GeneratedProtocolMessageType('ListVotesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTVOTESRESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListVotesResponse) + }) +_sym_db.RegisterMessage(ListVotesResponse) + + +DESCRIPTOR._options = None + +_COREAPISERVICE = _descriptor.ServiceDescriptor( + name='CoreApiService', + full_name='vega.coreapi.v1.CoreApiService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1406, + serialized_end=2283, + methods=[ + _descriptor.MethodDescriptor( + name='ListAccounts', + full_name='vega.coreapi.v1.CoreApiService.ListAccounts', + index=0, + containing_service=None, + input_type=_LISTACCOUNTSREQUEST, + output_type=_LISTACCOUNTSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListAssets', + full_name='vega.coreapi.v1.CoreApiService.ListAssets', + index=1, + containing_service=None, + input_type=_LISTASSETSREQUEST, + output_type=_LISTASSETSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListNetworkParameters', + full_name='vega.coreapi.v1.CoreApiService.ListNetworkParameters', + index=2, + containing_service=None, + input_type=_LISTNETWORKPARAMETERSREQUEST, + output_type=_LISTNETWORKPARAMETERSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListParties', + full_name='vega.coreapi.v1.CoreApiService.ListParties', + index=3, + containing_service=None, + input_type=_LISTPARTIESREQUEST, + output_type=_LISTPARTIESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListValidators', + full_name='vega.coreapi.v1.CoreApiService.ListValidators', + index=4, + containing_service=None, + input_type=_LISTVALIDATORSREQUEST, + output_type=_LISTVALIDATORSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListMarkets', + full_name='vega.coreapi.v1.CoreApiService.ListMarkets', + index=5, + containing_service=None, + input_type=_LISTMARKETSREQUEST, + output_type=_LISTMARKETSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListProposals', + full_name='vega.coreapi.v1.CoreApiService.ListProposals', + index=6, + containing_service=None, + input_type=_LISTPROPOSALSREQUEST, + output_type=_LISTPROPOSALSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListMarketsData', + full_name='vega.coreapi.v1.CoreApiService.ListMarketsData', + index=7, + containing_service=None, + input_type=_LISTMARKETSDATAREQUEST, + output_type=_LISTMARKETSDATARESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListVotes', + full_name='vega.coreapi.v1.CoreApiService.ListVotes', + index=8, + containing_service=None, + input_type=_LISTVOTESREQUEST, + output_type=_LISTVOTESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_COREAPISERVICE) + +DESCRIPTOR.services_by_name['CoreApiService'] = _COREAPISERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py new file mode 100644 index 00000000..3e180315 --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py @@ -0,0 +1,330 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from coreapi.v1 import coreapi_pb2 as coreapi_dot_v1_dot_coreapi__pb2 + + +class CoreApiServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListAccounts = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListAccounts', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListAccountsRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListAccountsResponse.FromString, + ) + self.ListAssets = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListAssets', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListAssetsRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListAssetsResponse.FromString, + ) + self.ListNetworkParameters = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListNetworkParameters', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersResponse.FromString, + ) + self.ListParties = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListParties', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesResponse.FromString, + ) + self.ListValidators = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListValidators', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsResponse.FromString, + ) + self.ListMarkets = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListMarkets', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsResponse.FromString, + ) + self.ListProposals = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListProposals', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListProposalsRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListProposalsResponse.FromString, + ) + self.ListMarketsData = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListMarketsData', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataResponse.FromString, + ) + self.ListVotes = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListVotes', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.FromString, + ) + + +class CoreApiServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ListAccounts(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListAssets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNetworkParameters(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListParties(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListValidators(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMarkets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListProposals(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMarketsData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListVotes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CoreApiServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListAccounts': grpc.unary_unary_rpc_method_handler( + servicer.ListAccounts, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListAccountsRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListAccountsResponse.SerializeToString, + ), + 'ListAssets': grpc.unary_unary_rpc_method_handler( + servicer.ListAssets, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListAssetsRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListAssetsResponse.SerializeToString, + ), + 'ListNetworkParameters': grpc.unary_unary_rpc_method_handler( + servicer.ListNetworkParameters, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersResponse.SerializeToString, + ), + 'ListParties': grpc.unary_unary_rpc_method_handler( + servicer.ListParties, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesResponse.SerializeToString, + ), + 'ListValidators': grpc.unary_unary_rpc_method_handler( + servicer.ListValidators, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsResponse.SerializeToString, + ), + 'ListMarkets': grpc.unary_unary_rpc_method_handler( + servicer.ListMarkets, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsResponse.SerializeToString, + ), + 'ListProposals': grpc.unary_unary_rpc_method_handler( + servicer.ListProposals, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListProposalsRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListProposalsResponse.SerializeToString, + ), + 'ListMarketsData': grpc.unary_unary_rpc_method_handler( + servicer.ListMarketsData, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataResponse.SerializeToString, + ), + 'ListVotes': grpc.unary_unary_rpc_method_handler( + servicer.ListVotes, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vega.coreapi.v1.CoreApiService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CoreApiService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ListAccounts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListAccounts', + coreapi_dot_v1_dot_coreapi__pb2.ListAccountsRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListAccountsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListAssets', + coreapi_dot_v1_dot_coreapi__pb2.ListAssetsRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListNetworkParameters(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListNetworkParameters', + coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListNetworkParametersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListParties(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListParties', + coreapi_dot_v1_dot_coreapi__pb2.ListPartiesRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListPartiesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListValidators(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListValidators', + coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListValidatorsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMarkets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListMarkets', + coreapi_dot_v1_dot_coreapi__pb2.ListMarketsRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListMarketsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListProposals(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListProposals', + coreapi_dot_v1_dot_coreapi__pb2.ListProposalsRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListProposalsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMarketsData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListMarketsData', + coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListMarketsDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListVotes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListVotes', + coreapi_dot_v1_dot_coreapi__pb2.ListVotesRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py b/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py index 0d20ad3f..b1d54019 100644 --- a/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py @@ -28,7 +28,7 @@ syntax='proto3', serialized_options=b'\n\036io.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x16\x65vents/v1/events.proto\x12\x0evega.events.v1\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\nvega.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\"\xd4\x01\n\x0cStakingEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x35\n\x04type\x18\x02 \x01(\x0e\x32!.vega.events.v1.StakingEvent.TypeR\x04type\x12\x0e\n\x02ts\x18\x03 \x01(\x03R\x02ts\x12\x14\n\x05party\x18\x04 \x01(\tR\x05party\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\"?\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_DEPOSIT\x10\x01\x12\x0f\n\x0bTYPE_REMOVE\x10\x02\"_\n\x16\x44\x65legationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"\xac\x01\n\x1dPendingDelegationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12+\n\x11\x64\x65legation_amount\x18\x03 \x01(\x04R\x10\x64\x65legationAmount\x12/\n\x13undelegation_amount\x18\x04 \x01(\x04R\x12undelegationAmount\"D\n\x0bMarketEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload\"\xa6\x05\n\x0cTxErrorEvent\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x17\n\x07\x65rr_msg\x18\x02 \x01(\tR\x06\x65rrMsg\x12N\n\x10order_submission\x18\x65 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12K\n\x0forder_amendment\x18\x66 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12T\n\x12order_cancellation\x18g \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12\x42\n\x08proposal\x18h \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x08proposal\x12K\n\x0fvote_submission\x18i \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12v\n\x1eliquidity_provision_submission\x18j \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12W\n\x13withdraw_submission\x18k \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmissionB\r\n\x0btransaction\"*\n\nTimeUpdate\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"y\n\nEpochEvent\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime\x12\x1f\n\x0b\x65xpire_time\x18\x03 \x01(\x03R\nexpireTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x03R\x07\x65ndTime\"I\n\x11TransferResponses\x12\x34\n\tresponses\x18\x01 \x03(\x0b\x32\x16.vega.TransferResponseR\tresponses\"\x88\x01\n\x12PositionResolution\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\ndistressed\x18\x02 \x01(\x03R\ndistressed\x12\x16\n\x06\x63losed\x18\x03 \x01(\x03R\x06\x63losed\x12\x1d\n\nmark_price\x18\x04 \x01(\x04R\tmarkPrice\"c\n\x11LossSocialization\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\";\n\x0fTradeSettlement\x12\x12\n\x04size\x18\x01 \x01(\x03R\x04size\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xac\x01\n\x0eSettlePosition\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12L\n\x11trade_settlements\x18\x04 \x03(\x0b\x32\x1f.vega.events.v1.TradeSettlementR\x10tradeSettlements\"x\n\x10SettleDistressed\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06margin\x18\x03 \x01(\x04R\x06margin\x12\x14\n\x05price\x18\x04 \x01(\x04R\x05price\"0\n\nMarketTick\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04time\x18\x02 \x01(\x03R\x04time\"\x85\x02\n\x0c\x41uctionEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\'\n\x0fopening_auction\x18\x02 \x01(\x08R\x0eopeningAuction\x12\x14\n\x05leave\x18\x03 \x01(\x08R\x05leave\x12\x14\n\x05start\x18\x04 \x01(\x03R\x05start\x12\x10\n\x03\x65nd\x18\x05 \x01(\x03R\x03\x65nd\x12.\n\x07trigger\x18\x06 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x07 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\"}\n\x0fValidatorUpdate\x12\x17\n\x07pub_key\x18\x01 \x01(\tR\x06pubKey\x12\x1c\n\ntm_pub_key\x18\x02 \x01(\tR\x08tmPubKey\x12\x19\n\x08info_url\x18\x03 \x01(\tR\x07infoUrl\x12\x18\n\x07\x63ountry\x18\x04 \x01(\tR\x07\x63ountry\"\xad\x11\n\x08\x42usEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05\x62lock\x18\x02 \x01(\tR\x05\x62lock\x12\x30\n\x04type\x18\x03 \x01(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12=\n\x0btime_update\x18\x65 \x01(\x0b\x32\x1a.vega.events.v1.TimeUpdateH\x00R\ntimeUpdate\x12R\n\x12transfer_responses\x18\x66 \x01(\x0b\x32!.vega.events.v1.TransferResponsesH\x00R\x11transferResponses\x12U\n\x13position_resolution\x18g \x01(\x0b\x32\".vega.events.v1.PositionResolutionH\x00R\x12positionResolution\x12#\n\x05order\x18h \x01(\x0b\x32\x0b.vega.OrderH\x00R\x05order\x12)\n\x07\x61\x63\x63ount\x18i \x01(\x0b\x32\r.vega.AccountH\x00R\x07\x61\x63\x63ount\x12#\n\x05party\x18j \x01(\x0b\x32\x0b.vega.PartyH\x00R\x05party\x12#\n\x05trade\x18k \x01(\x0b\x32\x0b.vega.TradeH\x00R\x05trade\x12\x39\n\rmargin_levels\x18l \x01(\x0b\x32\x12.vega.MarginLevelsH\x00R\x0cmarginLevels\x12,\n\x08proposal\x18m \x01(\x0b\x32\x0e.vega.ProposalH\x00R\x08proposal\x12 \n\x04vote\x18n \x01(\x0b\x32\n.vega.VoteH\x00R\x04vote\x12\x33\n\x0bmarket_data\x18o \x01(\x0b\x32\x10.vega.MarketDataH\x00R\nmarketData\x12H\n\x0enode_signature\x18p \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12R\n\x12loss_socialization\x18q \x01(\x0b\x32!.vega.events.v1.LossSocializationH\x00R\x11lossSocialization\x12I\n\x0fsettle_position\x18r \x01(\x0b\x32\x1e.vega.events.v1.SettlePositionH\x00R\x0esettlePosition\x12O\n\x11settle_distressed\x18s \x01(\x0b\x32 .vega.events.v1.SettleDistressedH\x00R\x10settleDistressed\x12\x35\n\x0emarket_created\x18t \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketCreated\x12#\n\x05\x61sset\x18u \x01(\x0b\x32\x0b.vega.AssetH\x00R\x05\x61sset\x12=\n\x0bmarket_tick\x18v \x01(\x0b\x32\x1a.vega.events.v1.MarketTickH\x00R\nmarketTick\x12\x32\n\nwithdrawal\x18w \x01(\x0b\x32\x10.vega.WithdrawalH\x00R\nwithdrawal\x12)\n\x07\x64\x65posit\x18x \x01(\x0b\x32\r.vega.DepositH\x00R\x07\x64\x65posit\x12\x38\n\x07\x61uction\x18y \x01(\x0b\x32\x1c.vega.events.v1.AuctionEventH\x00R\x07\x61uction\x12\x33\n\x0brisk_factor\x18z \x01(\x0b\x32\x10.vega.RiskFactorH\x00R\nriskFactor\x12\x45\n\x11network_parameter\x18{ \x01(\x0b\x32\x16.vega.NetworkParameterH\x00R\x10networkParameter\x12K\n\x13liquidity_provision\x18| \x01(\x0b\x32\x18.vega.LiquidityProvisionH\x00R\x12liquidityProvision\x12\x35\n\x0emarket_updated\x18} \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketUpdated\x12\x39\n\x0boracle_spec\x18~ \x01(\x0b\x32\x16.oracles.v1.OracleSpecH\x00R\noracleSpec\x12\x39\n\x0boracle_data\x18\x7f \x01(\x0b\x32\x16.oracles.v1.OracleDataH\x00R\noracleData\x12X\n\x12\x64\x65legation_balance\x18\x81\x01 \x01(\x0b\x32&.vega.events.v1.DelegationBalanceEventH\x00R\x11\x64\x65legationBalance\x12n\n\x1apending_delegation_balance\x18\x82\x01 \x01(\x0b\x32-.vega.events.v1.PendingDelegationBalanceEventH\x00R\x18pendingDelegationBalance\x12>\n\x0b\x65poch_event\x18\x83\x01 \x01(\x0b\x32\x1a.vega.events.v1.EpochEventH\x00R\nepochEvent\x12M\n\x10validator_update\x18\x84\x01 \x01(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateH\x00R\x0fvalidatorUpdate\x12\x44\n\rstaking_event\x18\x85\x01 \x01(\x0b\x32\x1c.vega.events.v1.StakingEventH\x00R\x0cstakingEvent\x12\x36\n\x06market\x18\xe9\x07 \x01(\x0b\x32\x1b.vega.events.v1.MarketEventH\x00R\x06market\x12\x41\n\x0ctx_err_event\x18\xd1\x0f \x01(\x0b\x32\x1c.vega.events.v1.TxErrorEventH\x00R\ntxErrEventB\x07\n\x05\x65vent*\xa7\t\n\x0c\x42usEventType\x12\x1e\n\x1a\x42US_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x42US_EVENT_TYPE_ALL\x10\x01\x12\x1e\n\x1a\x42US_EVENT_TYPE_TIME_UPDATE\x10\x02\x12%\n!BUS_EVENT_TYPE_TRANSFER_RESPONSES\x10\x03\x12&\n\"BUS_EVENT_TYPE_POSITION_RESOLUTION\x10\x04\x12\x18\n\x14\x42US_EVENT_TYPE_ORDER\x10\x05\x12\x1a\n\x16\x42US_EVENT_TYPE_ACCOUNT\x10\x06\x12\x18\n\x14\x42US_EVENT_TYPE_PARTY\x10\x07\x12\x18\n\x14\x42US_EVENT_TYPE_TRADE\x10\x08\x12 \n\x1c\x42US_EVENT_TYPE_MARGIN_LEVELS\x10\t\x12\x1b\n\x17\x42US_EVENT_TYPE_PROPOSAL\x10\n\x12\x17\n\x13\x42US_EVENT_TYPE_VOTE\x10\x0b\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_DATA\x10\x0c\x12!\n\x1d\x42US_EVENT_TYPE_NODE_SIGNATURE\x10\r\x12%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\x10\x0e\x12\"\n\x1e\x42US_EVENT_TYPE_SETTLE_POSITION\x10\x0f\x12$\n BUS_EVENT_TYPE_SETTLE_DISTRESSED\x10\x10\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_CREATED\x10\x11\x12\x18\n\x14\x42US_EVENT_TYPE_ASSET\x10\x12\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_TICK\x10\x13\x12\x1d\n\x19\x42US_EVENT_TYPE_WITHDRAWAL\x10\x14\x12\x1a\n\x16\x42US_EVENT_TYPE_DEPOSIT\x10\x15\x12\x1a\n\x16\x42US_EVENT_TYPE_AUCTION\x10\x16\x12\x1e\n\x1a\x42US_EVENT_TYPE_RISK_FACTOR\x10\x17\x12$\n BUS_EVENT_TYPE_NETWORK_PARAMETER\x10\x18\x12&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION\x10\x19\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_UPDATED\x10\x1a\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_SPEC\x10\x1b\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_DATA\x10\x1c\x12%\n!BUS_EVENT_TYPE_DELEGATION_BALANCE\x10\x1d\x12-\n)BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE\x10\x1e\x12\x1f\n\x1b\x42US_EVENT_TYPE_EPOCH_UPDATE\x10\x1f\x12#\n\x1f\x42US_EVENT_TYPE_VALIDATOR_UPDATE\x10 \x12 \n\x1c\x42US_EVENT_TYPE_STAKING_EVENT\x10!\x12\x19\n\x15\x42US_EVENT_TYPE_MARKET\x10\x65\x12\x1c\n\x17\x42US_EVENT_TYPE_TX_ERROR\x10\xc9\x01\x42K\n\x1eio.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1b\x06proto3' + serialized_pb=b'\n\x16\x65vents/v1/events.proto\x12\x0evega.events.v1\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\nvega.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\"\xaa\x03\n\x0cStakeLinking\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x35\n\x04type\x18\x02 \x01(\x0e\x32!.vega.events.v1.StakeLinking.TypeR\x04type\x12\x0e\n\x02ts\x18\x03 \x01(\x03R\x02ts\x12\x14\n\x05party\x18\x04 \x01(\tR\x05party\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12;\n\x06status\x18\x06 \x01(\x0e\x32#.vega.events.v1.StakeLinking.StatusR\x06status\x12!\n\x0c\x66inalized_at\x18\x07 \x01(\x03R\x0b\x66inalizedAt\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\"<\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTYPE_LINK\x10\x01\x12\x0f\n\x0bTYPE_UNLINK\x10\x02\"^\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_PENDING\x10\x01\x12\x13\n\x0fSTATUS_ACCEPTED\x10\x02\x12\x13\n\x0fSTATUS_REJECTED\x10\x03\"g\n\x0f\x43heckpointEvent\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x1d\n\nblock_hash\x18\x02 \x01(\tR\tblockHash\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\"\xc9\x01\n\x11RewardPayoutEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\x14\n\x05\x61sset\x18\x03 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12\x35\n\x17percent_of_total_reward\x18\x05 \x01(\tR\x14percentOfTotalReward\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"\x9f\x01\n\x13ValidatorScoreEvent\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\'\n\x0fvalidator_score\x18\x03 \x01(\tR\x0evalidatorScore\x12)\n\x10normalised_score\x18\x04 \x01(\tR\x0fnormalisedScore\"|\n\x16\x44\x65legationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc9\x01\n\x1dPendingDelegationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12+\n\x11\x64\x65legation_amount\x18\x03 \x01(\x04R\x10\x64\x65legationAmount\x12/\n\x13undelegation_amount\x18\x04 \x01(\x04R\x12undelegationAmount\x12\x1b\n\tepoch_seq\x18\x05 \x01(\tR\x08\x65pochSeq\"D\n\x0bMarketEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload\"\xa6\x05\n\x0cTxErrorEvent\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x17\n\x07\x65rr_msg\x18\x02 \x01(\tR\x06\x65rrMsg\x12N\n\x10order_submission\x18\x65 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12K\n\x0forder_amendment\x18\x66 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12T\n\x12order_cancellation\x18g \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12\x42\n\x08proposal\x18h \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x08proposal\x12K\n\x0fvote_submission\x18i \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12v\n\x1eliquidity_provision_submission\x18j \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12W\n\x13withdraw_submission\x18k \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmissionB\r\n\x0btransaction\"*\n\nTimeUpdate\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"y\n\nEpochEvent\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime\x12\x1f\n\x0b\x65xpire_time\x18\x03 \x01(\x03R\nexpireTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x03R\x07\x65ndTime\"I\n\x11TransferResponses\x12\x34\n\tresponses\x18\x01 \x03(\x0b\x32\x16.vega.TransferResponseR\tresponses\"\x88\x01\n\x12PositionResolution\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\ndistressed\x18\x02 \x01(\x03R\ndistressed\x12\x16\n\x06\x63losed\x18\x03 \x01(\x03R\x06\x63losed\x12\x1d\n\nmark_price\x18\x04 \x01(\x04R\tmarkPrice\"c\n\x11LossSocialization\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\";\n\x0fTradeSettlement\x12\x12\n\x04size\x18\x01 \x01(\x03R\x04size\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xac\x01\n\x0eSettlePosition\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12L\n\x11trade_settlements\x18\x04 \x03(\x0b\x32\x1f.vega.events.v1.TradeSettlementR\x10tradeSettlements\"x\n\x10SettleDistressed\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06margin\x18\x03 \x01(\x04R\x06margin\x12\x14\n\x05price\x18\x04 \x01(\x04R\x05price\"0\n\nMarketTick\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04time\x18\x02 \x01(\x03R\x04time\"\x85\x02\n\x0c\x41uctionEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\'\n\x0fopening_auction\x18\x02 \x01(\x08R\x0eopeningAuction\x12\x14\n\x05leave\x18\x03 \x01(\x08R\x05leave\x12\x14\n\x05start\x18\x04 \x01(\x03R\x05start\x12\x10\n\x03\x65nd\x18\x05 \x01(\x03R\x03\x65nd\x12.\n\x07trigger\x18\x06 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x07 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\"\xb1\x01\n\x0fValidatorUpdate\x12 \n\x0cvega_pub_key\x18\x01 \x01(\tR\nvegaPubKey\x12)\n\x10\x65thereum_address\x18\x02 \x01(\tR\x0f\x65thereumAddress\x12\x1c\n\ntm_pub_key\x18\x03 \x01(\tR\x08tmPubKey\x12\x19\n\x08info_url\x18\x04 \x01(\tR\x07infoUrl\x12\x18\n\x07\x63ountry\x18\x05 \x01(\tR\x07\x63ountry\"\x9d\x12\n\x08\x42usEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05\x62lock\x18\x02 \x01(\tR\x05\x62lock\x12\x30\n\x04type\x18\x03 \x01(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12=\n\x0btime_update\x18\x65 \x01(\x0b\x32\x1a.vega.events.v1.TimeUpdateH\x00R\ntimeUpdate\x12R\n\x12transfer_responses\x18\x66 \x01(\x0b\x32!.vega.events.v1.TransferResponsesH\x00R\x11transferResponses\x12U\n\x13position_resolution\x18g \x01(\x0b\x32\".vega.events.v1.PositionResolutionH\x00R\x12positionResolution\x12#\n\x05order\x18h \x01(\x0b\x32\x0b.vega.OrderH\x00R\x05order\x12)\n\x07\x61\x63\x63ount\x18i \x01(\x0b\x32\r.vega.AccountH\x00R\x07\x61\x63\x63ount\x12#\n\x05party\x18j \x01(\x0b\x32\x0b.vega.PartyH\x00R\x05party\x12#\n\x05trade\x18k \x01(\x0b\x32\x0b.vega.TradeH\x00R\x05trade\x12\x39\n\rmargin_levels\x18l \x01(\x0b\x32\x12.vega.MarginLevelsH\x00R\x0cmarginLevels\x12,\n\x08proposal\x18m \x01(\x0b\x32\x0e.vega.ProposalH\x00R\x08proposal\x12 \n\x04vote\x18n \x01(\x0b\x32\n.vega.VoteH\x00R\x04vote\x12\x33\n\x0bmarket_data\x18o \x01(\x0b\x32\x10.vega.MarketDataH\x00R\nmarketData\x12H\n\x0enode_signature\x18p \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12R\n\x12loss_socialization\x18q \x01(\x0b\x32!.vega.events.v1.LossSocializationH\x00R\x11lossSocialization\x12I\n\x0fsettle_position\x18r \x01(\x0b\x32\x1e.vega.events.v1.SettlePositionH\x00R\x0esettlePosition\x12O\n\x11settle_distressed\x18s \x01(\x0b\x32 .vega.events.v1.SettleDistressedH\x00R\x10settleDistressed\x12\x35\n\x0emarket_created\x18t \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketCreated\x12#\n\x05\x61sset\x18u \x01(\x0b\x32\x0b.vega.AssetH\x00R\x05\x61sset\x12=\n\x0bmarket_tick\x18v \x01(\x0b\x32\x1a.vega.events.v1.MarketTickH\x00R\nmarketTick\x12\x32\n\nwithdrawal\x18w \x01(\x0b\x32\x10.vega.WithdrawalH\x00R\nwithdrawal\x12)\n\x07\x64\x65posit\x18x \x01(\x0b\x32\r.vega.DepositH\x00R\x07\x64\x65posit\x12\x38\n\x07\x61uction\x18y \x01(\x0b\x32\x1c.vega.events.v1.AuctionEventH\x00R\x07\x61uction\x12\x33\n\x0brisk_factor\x18z \x01(\x0b\x32\x10.vega.RiskFactorH\x00R\nriskFactor\x12\x45\n\x11network_parameter\x18{ \x01(\x0b\x32\x16.vega.NetworkParameterH\x00R\x10networkParameter\x12K\n\x13liquidity_provision\x18| \x01(\x0b\x32\x18.vega.LiquidityProvisionH\x00R\x12liquidityProvision\x12\x35\n\x0emarket_updated\x18} \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketUpdated\x12\x39\n\x0boracle_spec\x18~ \x01(\x0b\x32\x16.oracles.v1.OracleSpecH\x00R\noracleSpec\x12\x39\n\x0boracle_data\x18\x7f \x01(\x0b\x32\x16.oracles.v1.OracleDataH\x00R\noracleData\x12X\n\x12\x64\x65legation_balance\x18\x81\x01 \x01(\x0b\x32&.vega.events.v1.DelegationBalanceEventH\x00R\x11\x64\x65legationBalance\x12O\n\x0fvalidator_score\x18\x82\x01 \x01(\x0b\x32#.vega.events.v1.ValidatorScoreEventH\x00R\x0evalidatorScore\x12>\n\x0b\x65poch_event\x18\x83\x01 \x01(\x0b\x32\x1a.vega.events.v1.EpochEventH\x00R\nepochEvent\x12M\n\x10validator_update\x18\x84\x01 \x01(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateH\x00R\x0fvalidatorUpdate\x12\x44\n\rstake_linking\x18\x85\x01 \x01(\x0b\x32\x1c.vega.events.v1.StakeLinkingH\x00R\x0cstakeLinking\x12I\n\rreward_payout\x18\x86\x01 \x01(\x0b\x32!.vega.events.v1.RewardPayoutEventH\x00R\x0crewardPayout\x12\x42\n\ncheckpoint\x18\x87\x01 \x01(\x0b\x32\x1f.vega.events.v1.CheckpointEventH\x00R\ncheckpoint\x12\x36\n\x06market\x18\xe9\x07 \x01(\x0b\x32\x1b.vega.events.v1.MarketEventH\x00R\x06market\x12\x41\n\x0ctx_err_event\x18\xd1\x0f \x01(\x0b\x32\x1c.vega.events.v1.TxErrorEventH\x00R\ntxErrEventB\x07\n\x05\x65vent*\xe3\t\n\x0c\x42usEventType\x12\x1e\n\x1a\x42US_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x42US_EVENT_TYPE_ALL\x10\x01\x12\x1e\n\x1a\x42US_EVENT_TYPE_TIME_UPDATE\x10\x02\x12%\n!BUS_EVENT_TYPE_TRANSFER_RESPONSES\x10\x03\x12&\n\"BUS_EVENT_TYPE_POSITION_RESOLUTION\x10\x04\x12\x18\n\x14\x42US_EVENT_TYPE_ORDER\x10\x05\x12\x1a\n\x16\x42US_EVENT_TYPE_ACCOUNT\x10\x06\x12\x18\n\x14\x42US_EVENT_TYPE_PARTY\x10\x07\x12\x18\n\x14\x42US_EVENT_TYPE_TRADE\x10\x08\x12 \n\x1c\x42US_EVENT_TYPE_MARGIN_LEVELS\x10\t\x12\x1b\n\x17\x42US_EVENT_TYPE_PROPOSAL\x10\n\x12\x17\n\x13\x42US_EVENT_TYPE_VOTE\x10\x0b\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_DATA\x10\x0c\x12!\n\x1d\x42US_EVENT_TYPE_NODE_SIGNATURE\x10\r\x12%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\x10\x0e\x12\"\n\x1e\x42US_EVENT_TYPE_SETTLE_POSITION\x10\x0f\x12$\n BUS_EVENT_TYPE_SETTLE_DISTRESSED\x10\x10\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_CREATED\x10\x11\x12\x18\n\x14\x42US_EVENT_TYPE_ASSET\x10\x12\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_TICK\x10\x13\x12\x1d\n\x19\x42US_EVENT_TYPE_WITHDRAWAL\x10\x14\x12\x1a\n\x16\x42US_EVENT_TYPE_DEPOSIT\x10\x15\x12\x1a\n\x16\x42US_EVENT_TYPE_AUCTION\x10\x16\x12\x1e\n\x1a\x42US_EVENT_TYPE_RISK_FACTOR\x10\x17\x12$\n BUS_EVENT_TYPE_NETWORK_PARAMETER\x10\x18\x12&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION\x10\x19\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_UPDATED\x10\x1a\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_SPEC\x10\x1b\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_DATA\x10\x1c\x12%\n!BUS_EVENT_TYPE_DELEGATION_BALANCE\x10\x1d\x12\"\n\x1e\x42US_EVENT_TYPE_VALIDATOR_SCORE\x10\x1e\x12\x1f\n\x1b\x42US_EVENT_TYPE_EPOCH_UPDATE\x10\x1f\x12#\n\x1f\x42US_EVENT_TYPE_VALIDATOR_UPDATE\x10 \x12 \n\x1c\x42US_EVENT_TYPE_STAKE_LINKING\x10!\x12&\n\"BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT\x10\"\x12\x1d\n\x19\x42US_EVENT_TYPE_CHECKPOINT\x10#\x12\x19\n\x15\x42US_EVENT_TYPE_MARKET\x10\x65\x12\x1c\n\x17\x42US_EVENT_TYPE_TX_ERROR\x10\xc9\x01\x42K\n\x1eio.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1b\x06proto3' , dependencies=[markets__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,oracles_dot_v1_dot_spec__pb2.DESCRIPTOR,oracles_dot_v1_dot_data__pb2.DESCRIPTOR,commands_dot_v1_dot_commands__pb2.DESCRIPTOR,commands_dot_v1_dot_validator__commands__pb2.DESCRIPTOR,]) @@ -190,7 +190,7 @@ type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE', index=30, number=30, + name='BUS_EVENT_TYPE_VALIDATOR_SCORE', index=30, number=30, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), @@ -205,25 +205,35 @@ type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='BUS_EVENT_TYPE_STAKING_EVENT', index=33, number=33, + name='BUS_EVENT_TYPE_STAKE_LINKING', index=33, number=33, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='BUS_EVENT_TYPE_MARKET', index=34, number=101, + name='BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT', index=34, number=34, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='BUS_EVENT_TYPE_TX_ERROR', index=35, number=201, + name='BUS_EVENT_TYPE_CHECKPOINT', index=35, number=35, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='BUS_EVENT_TYPE_MARKET', index=36, number=101, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='BUS_EVENT_TYPE_TX_ERROR', index=37, number=201, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, - serialized_start=4957, - serialized_end=6148, + serialized_start=5865, + serialized_end=7116, ) _sym_db.RegisterEnumDescriptor(_BUSEVENTTYPE) @@ -258,17 +268,19 @@ BUS_EVENT_TYPE_ORACLE_SPEC = 27 BUS_EVENT_TYPE_ORACLE_DATA = 28 BUS_EVENT_TYPE_DELEGATION_BALANCE = 29 -BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE = 30 +BUS_EVENT_TYPE_VALIDATOR_SCORE = 30 BUS_EVENT_TYPE_EPOCH_UPDATE = 31 BUS_EVENT_TYPE_VALIDATOR_UPDATE = 32 -BUS_EVENT_TYPE_STAKING_EVENT = 33 +BUS_EVENT_TYPE_STAKE_LINKING = 33 +BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34 +BUS_EVENT_TYPE_CHECKPOINT = 35 BUS_EVENT_TYPE_MARKET = 101 BUS_EVENT_TYPE_TX_ERROR = 201 -_STAKINGEVENT_TYPE = _descriptor.EnumDescriptor( +_STAKELINKING_TYPE = _descriptor.EnumDescriptor( name='Type', - full_name='vega.events.v1.StakingEvent.Type', + full_name='vega.events.v1.StakeLinking.Type', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -279,73 +291,130 @@ type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='TYPE_DEPOSIT', index=1, number=1, + name='TYPE_LINK', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='TYPE_UNLINK', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=484, + serialized_end=544, +) +_sym_db.RegisterEnumDescriptor(_STAKELINKING_TYPE) + +_STAKELINKING_STATUS = _descriptor.EnumDescriptor( + name='Status', + full_name='vega.events.v1.StakeLinking.Status', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='STATUS_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='STATUS_PENDING', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='TYPE_REMOVE', index=2, number=2, + name='STATUS_ACCEPTED', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='STATUS_REJECTED', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, - serialized_start=363, - serialized_end=426, + serialized_start=546, + serialized_end=640, ) -_sym_db.RegisterEnumDescriptor(_STAKINGEVENT_TYPE) +_sym_db.RegisterEnumDescriptor(_STAKELINKING_STATUS) -_STAKINGEVENT = _descriptor.Descriptor( - name='StakingEvent', - full_name='vega.events.v1.StakingEvent', +_STAKELINKING = _descriptor.Descriptor( + name='StakeLinking', + full_name='vega.events.v1.StakeLinking', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='vega.events.v1.StakingEvent.id', index=0, + name='id', full_name='vega.events.v1.StakeLinking.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='type', full_name='vega.events.v1.StakingEvent.type', index=1, + name='type', full_name='vega.events.v1.StakeLinking.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='ts', full_name='vega.events.v1.StakingEvent.ts', index=2, + name='ts', full_name='vega.events.v1.StakeLinking.ts', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='ts', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='party', full_name='vega.events.v1.StakingEvent.party', index=3, + name='party', full_name='vega.events.v1.StakeLinking.party', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='amount', full_name='vega.events.v1.StakingEvent.amount', index=4, + name='amount', full_name='vega.events.v1.StakeLinking.amount', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='vega.events.v1.StakeLinking.status', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='finalized_at', full_name='vega.events.v1.StakeLinking.finalized_at', index=6, + number=7, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='finalizedAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='tx_hash', full_name='vega.events.v1.StakeLinking.tx_hash', index=7, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='txHash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ - _STAKINGEVENT_TYPE, + _STAKELINKING_TYPE, + _STAKELINKING_STATUS, ], serialized_options=None, is_extendable=False, @@ -354,7 +423,173 @@ oneofs=[ ], serialized_start=214, - serialized_end=426, + serialized_end=640, +) + + +_CHECKPOINTEVENT = _descriptor.Descriptor( + name='CheckpointEvent', + full_name='vega.events.v1.CheckpointEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='hash', full_name='vega.events.v1.CheckpointEvent.hash', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='hash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_hash', full_name='vega.events.v1.CheckpointEvent.block_hash', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='blockHash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='block_height', full_name='vega.events.v1.CheckpointEvent.block_height', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='blockHeight', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=642, + serialized_end=745, +) + + +_REWARDPAYOUTEVENT = _descriptor.Descriptor( + name='RewardPayoutEvent', + full_name='vega.events.v1.RewardPayoutEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.events.v1.RewardPayoutEvent.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch_seq', full_name='vega.events.v1.RewardPayoutEvent.epoch_seq', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='asset', full_name='vega.events.v1.RewardPayoutEvent.asset', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='amount', full_name='vega.events.v1.RewardPayoutEvent.amount', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='percent_of_total_reward', full_name='vega.events.v1.RewardPayoutEvent.percent_of_total_reward', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='percentOfTotalReward', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='vega.events.v1.RewardPayoutEvent.timestamp', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='timestamp', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=748, + serialized_end=949, +) + + +_VALIDATORSCOREEVENT = _descriptor.Descriptor( + name='ValidatorScoreEvent', + full_name='vega.events.v1.ValidatorScoreEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='node_id', full_name='vega.events.v1.ValidatorScoreEvent.node_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='nodeId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch_seq', full_name='vega.events.v1.ValidatorScoreEvent.epoch_seq', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='validator_score', full_name='vega.events.v1.ValidatorScoreEvent.validator_score', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='validatorScore', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='normalised_score', full_name='vega.events.v1.ValidatorScoreEvent.normalised_score', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='normalisedScore', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=952, + serialized_end=1111, ) @@ -387,6 +622,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch_seq', full_name='vega.events.v1.DelegationBalanceEvent.epoch_seq', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -399,8 +641,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=428, - serialized_end=523, + serialized_start=1113, + serialized_end=1237, ) @@ -440,6 +682,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='undelegationAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch_seq', full_name='vega.events.v1.PendingDelegationBalanceEvent.epoch_seq', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -452,8 +701,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=526, - serialized_end=698, + serialized_start=1240, + serialized_end=1441, ) @@ -491,8 +740,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=700, - serialized_end=768, + serialized_start=1443, + serialized_end=1511, ) @@ -584,8 +833,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=771, - serialized_end=1449, + serialized_start=1514, + serialized_end=2192, ) @@ -616,8 +865,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1451, - serialized_end=1493, + serialized_start=2194, + serialized_end=2236, ) @@ -669,8 +918,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1495, - serialized_end=1616, + serialized_start=2238, + serialized_end=2359, ) @@ -701,8 +950,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1618, - serialized_end=1691, + serialized_start=2361, + serialized_end=2434, ) @@ -754,8 +1003,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1694, - serialized_end=1830, + serialized_start=2437, + serialized_end=2573, ) @@ -800,8 +1049,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1832, - serialized_end=1931, + serialized_start=2575, + serialized_end=2674, ) @@ -839,8 +1088,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1933, - serialized_end=1992, + serialized_start=2676, + serialized_end=2735, ) @@ -892,8 +1141,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1995, - serialized_end=2167, + serialized_start=2738, + serialized_end=2910, ) @@ -945,8 +1194,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2169, - serialized_end=2289, + serialized_start=2912, + serialized_end=3032, ) @@ -984,8 +1233,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2291, - serialized_end=2339, + serialized_start=3034, + serialized_end=3082, ) @@ -1058,8 +1307,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2342, - serialized_end=2603, + serialized_start=3085, + serialized_end=3346, ) @@ -1072,32 +1321,39 @@ create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='pub_key', full_name='vega.events.v1.ValidatorUpdate.pub_key', index=0, + name='vega_pub_key', full_name='vega.events.v1.ValidatorUpdate.vega_pub_key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='pubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='vegaPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='tm_pub_key', full_name='vega.events.v1.ValidatorUpdate.tm_pub_key', index=1, + name='ethereum_address', full_name='vega.events.v1.ValidatorUpdate.ethereum_address', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='tmPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='ethereumAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='info_url', full_name='vega.events.v1.ValidatorUpdate.info_url', index=2, + name='tm_pub_key', full_name='vega.events.v1.ValidatorUpdate.tm_pub_key', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='infoUrl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='tmPubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='country', full_name='vega.events.v1.ValidatorUpdate.country', index=3, + name='info_url', full_name='vega.events.v1.ValidatorUpdate.info_url', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, + serialized_options=None, json_name='infoUrl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='country', full_name='vega.events.v1.ValidatorUpdate.country', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, serialized_options=None, json_name='country', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ @@ -1111,8 +1367,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2605, - serialized_end=2730, + serialized_start=3349, + serialized_end=3526, ) @@ -1342,12 +1598,12 @@ is_extension=False, extension_scope=None, serialized_options=None, json_name='delegationBalance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='pending_delegation_balance', full_name='vega.events.v1.BusEvent.pending_delegation_balance', index=31, + name='validator_score', full_name='vega.events.v1.BusEvent.validator_score', index=31, number=130, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='pendingDelegationBalance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='validatorScore', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='epoch_event', full_name='vega.events.v1.BusEvent.epoch_event', index=32, number=131, type=11, cpp_type=10, label=1, @@ -1363,21 +1619,35 @@ is_extension=False, extension_scope=None, serialized_options=None, json_name='validatorUpdate', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='staking_event', full_name='vega.events.v1.BusEvent.staking_event', index=34, + name='stake_linking', full_name='vega.events.v1.BusEvent.stake_linking', index=34, number=133, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='stakingEvent', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='stakeLinking', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='reward_payout', full_name='vega.events.v1.BusEvent.reward_payout', index=35, + number=134, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='rewardPayout', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='checkpoint', full_name='vega.events.v1.BusEvent.checkpoint', index=36, + number=135, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='checkpoint', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='market', full_name='vega.events.v1.BusEvent.market', index=35, + name='market', full_name='vega.events.v1.BusEvent.market', index=37, number=1001, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='market', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='tx_err_event', full_name='vega.events.v1.BusEvent.tx_err_event', index=36, + name='tx_err_event', full_name='vega.events.v1.BusEvent.tx_err_event', index=38, number=2001, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1400,12 +1670,14 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=2733, - serialized_end=4954, + serialized_start=3529, + serialized_end=5862, ) -_STAKINGEVENT.fields_by_name['type'].enum_type = _STAKINGEVENT_TYPE -_STAKINGEVENT_TYPE.containing_type = _STAKINGEVENT +_STAKELINKING.fields_by_name['type'].enum_type = _STAKELINKING_TYPE +_STAKELINKING.fields_by_name['status'].enum_type = _STAKELINKING_STATUS +_STAKELINKING_TYPE.containing_type = _STAKELINKING +_STAKELINKING_STATUS.containing_type = _STAKELINKING _TXERROREVENT.fields_by_name['order_submission'].message_type = commands_dot_v1_dot_commands__pb2._ORDERSUBMISSION _TXERROREVENT.fields_by_name['order_amendment'].message_type = commands_dot_v1_dot_commands__pb2._ORDERAMENDMENT _TXERROREVENT.fields_by_name['order_cancellation'].message_type = commands_dot_v1_dot_commands__pb2._ORDERCANCELLATION @@ -1467,10 +1739,12 @@ _BUSEVENT.fields_by_name['oracle_spec'].message_type = oracles_dot_v1_dot_spec__pb2._ORACLESPEC _BUSEVENT.fields_by_name['oracle_data'].message_type = oracles_dot_v1_dot_data__pb2._ORACLEDATA _BUSEVENT.fields_by_name['delegation_balance'].message_type = _DELEGATIONBALANCEEVENT -_BUSEVENT.fields_by_name['pending_delegation_balance'].message_type = _PENDINGDELEGATIONBALANCEEVENT +_BUSEVENT.fields_by_name['validator_score'].message_type = _VALIDATORSCOREEVENT _BUSEVENT.fields_by_name['epoch_event'].message_type = _EPOCHEVENT _BUSEVENT.fields_by_name['validator_update'].message_type = _VALIDATORUPDATE -_BUSEVENT.fields_by_name['staking_event'].message_type = _STAKINGEVENT +_BUSEVENT.fields_by_name['stake_linking'].message_type = _STAKELINKING +_BUSEVENT.fields_by_name['reward_payout'].message_type = _REWARDPAYOUTEVENT +_BUSEVENT.fields_by_name['checkpoint'].message_type = _CHECKPOINTEVENT _BUSEVENT.fields_by_name['market'].message_type = _MARKETEVENT _BUSEVENT.fields_by_name['tx_err_event'].message_type = _TXERROREVENT _BUSEVENT.oneofs_by_name['event'].fields.append( @@ -1558,8 +1832,8 @@ _BUSEVENT.fields_by_name['delegation_balance']) _BUSEVENT.fields_by_name['delegation_balance'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] _BUSEVENT.oneofs_by_name['event'].fields.append( - _BUSEVENT.fields_by_name['pending_delegation_balance']) -_BUSEVENT.fields_by_name['pending_delegation_balance'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] + _BUSEVENT.fields_by_name['validator_score']) +_BUSEVENT.fields_by_name['validator_score'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] _BUSEVENT.oneofs_by_name['event'].fields.append( _BUSEVENT.fields_by_name['epoch_event']) _BUSEVENT.fields_by_name['epoch_event'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] @@ -1567,15 +1841,24 @@ _BUSEVENT.fields_by_name['validator_update']) _BUSEVENT.fields_by_name['validator_update'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] _BUSEVENT.oneofs_by_name['event'].fields.append( - _BUSEVENT.fields_by_name['staking_event']) -_BUSEVENT.fields_by_name['staking_event'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] + _BUSEVENT.fields_by_name['stake_linking']) +_BUSEVENT.fields_by_name['stake_linking'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] +_BUSEVENT.oneofs_by_name['event'].fields.append( + _BUSEVENT.fields_by_name['reward_payout']) +_BUSEVENT.fields_by_name['reward_payout'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] +_BUSEVENT.oneofs_by_name['event'].fields.append( + _BUSEVENT.fields_by_name['checkpoint']) +_BUSEVENT.fields_by_name['checkpoint'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] _BUSEVENT.oneofs_by_name['event'].fields.append( _BUSEVENT.fields_by_name['market']) _BUSEVENT.fields_by_name['market'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] _BUSEVENT.oneofs_by_name['event'].fields.append( _BUSEVENT.fields_by_name['tx_err_event']) _BUSEVENT.fields_by_name['tx_err_event'].containing_oneof = _BUSEVENT.oneofs_by_name['event'] -DESCRIPTOR.message_types_by_name['StakingEvent'] = _STAKINGEVENT +DESCRIPTOR.message_types_by_name['StakeLinking'] = _STAKELINKING +DESCRIPTOR.message_types_by_name['CheckpointEvent'] = _CHECKPOINTEVENT +DESCRIPTOR.message_types_by_name['RewardPayoutEvent'] = _REWARDPAYOUTEVENT +DESCRIPTOR.message_types_by_name['ValidatorScoreEvent'] = _VALIDATORSCOREEVENT DESCRIPTOR.message_types_by_name['DelegationBalanceEvent'] = _DELEGATIONBALANCEEVENT DESCRIPTOR.message_types_by_name['PendingDelegationBalanceEvent'] = _PENDINGDELEGATIONBALANCEEVENT DESCRIPTOR.message_types_by_name['MarketEvent'] = _MARKETEVENT @@ -1595,12 +1878,33 @@ DESCRIPTOR.enum_types_by_name['BusEventType'] = _BUSEVENTTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -StakingEvent = _reflection.GeneratedProtocolMessageType('StakingEvent', (_message.Message,), { - 'DESCRIPTOR' : _STAKINGEVENT, +StakeLinking = _reflection.GeneratedProtocolMessageType('StakeLinking', (_message.Message,), { + 'DESCRIPTOR' : _STAKELINKING, + '__module__' : 'events.v1.events_pb2' + # @@protoc_insertion_point(class_scope:vega.events.v1.StakeLinking) + }) +_sym_db.RegisterMessage(StakeLinking) + +CheckpointEvent = _reflection.GeneratedProtocolMessageType('CheckpointEvent', (_message.Message,), { + 'DESCRIPTOR' : _CHECKPOINTEVENT, + '__module__' : 'events.v1.events_pb2' + # @@protoc_insertion_point(class_scope:vega.events.v1.CheckpointEvent) + }) +_sym_db.RegisterMessage(CheckpointEvent) + +RewardPayoutEvent = _reflection.GeneratedProtocolMessageType('RewardPayoutEvent', (_message.Message,), { + 'DESCRIPTOR' : _REWARDPAYOUTEVENT, + '__module__' : 'events.v1.events_pb2' + # @@protoc_insertion_point(class_scope:vega.events.v1.RewardPayoutEvent) + }) +_sym_db.RegisterMessage(RewardPayoutEvent) + +ValidatorScoreEvent = _reflection.GeneratedProtocolMessageType('ValidatorScoreEvent', (_message.Message,), { + 'DESCRIPTOR' : _VALIDATORSCOREEVENT, '__module__' : 'events.v1.events_pb2' - # @@protoc_insertion_point(class_scope:vega.events.v1.StakingEvent) + # @@protoc_insertion_point(class_scope:vega.events.v1.ValidatorScoreEvent) }) -_sym_db.RegisterMessage(StakingEvent) +_sym_db.RegisterMessage(ValidatorScoreEvent) DelegationBalanceEvent = _reflection.GeneratedProtocolMessageType('DelegationBalanceEvent', (_message.Message,), { 'DESCRIPTOR' : _DELEGATIONBALANCEEVENT, diff --git a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py new file mode 100644 index 00000000..5c006ebb --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py @@ -0,0 +1,533 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: snapshot/v1/snapshot.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import vega_pb2 as vega__pb2 +import assets_pb2 as assets__pb2 +import governance_pb2 as governance__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='snapshot/v1/snapshot.proto', + package='vega.snapshot.v1', + syntax='proto3', + serialized_options=b'\n io.vegaprotocol.vega.snapshot.v1Z+code.vegaprotocol.io/vega/proto/snapshot/v1', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x1asnapshot/v1/snapshot.proto\x12\x10vega.snapshot.v1\x1a\nvega.proto\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\"4\n\x08Snapshot\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12\x14\n\x05state\x18\x02 \x01(\x0cR\x05state\"\xb3\x01\n\nCheckpoint\x12\x1e\n\ngovernance\x18\x01 \x01(\x0cR\ngovernance\x12\x16\n\x06\x61ssets\x18\x02 \x01(\x0cR\x06\x61ssets\x12\x1e\n\ncollateral\x18\x03 \x01(\x0cR\ncollateral\x12-\n\x12network_parameters\x18\x04 \x01(\x0cR\x11networkParameters\x12\x1e\n\ndelegation\x18\x05 \x01(\x0cR\ndelegation\"U\n\nAssetEntry\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\rasset_details\x18\x02 \x01(\x0b\x32\x12.vega.AssetDetailsR\x0c\x61ssetDetails\">\n\x06\x41ssets\x12\x34\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x1c.vega.snapshot.v1.AssetEntryR\x06\x61ssets\"T\n\x0c\x41ssetBalance\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\"H\n\nCollateral\x12:\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32\x1e.vega.snapshot.v1.AssetBalanceR\x08\x62\x61lances\";\n\tNetParams\x12.\n\x06params\x18\x01 \x03(\x0b\x32\x16.vega.NetworkParameterR\x06params\"9\n\tProposals\x12,\n\tproposals\x18\x01 \x03(\x0b\x32\x0e.vega.ProposalR\tproposals\"\x8e\x01\n\rDelegateEntry\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x12\n\x04node\x18\x02 \x01(\tR\x04node\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1e\n\nundelegate\x18\x04 \x01(\x08R\nundelegate\x12\x1b\n\tepoch_seq\x18\x05 \x01(\x04R\x08\x65pochSeq\"~\n\x08\x44\x65legate\x12\x37\n\x06\x61\x63tive\x18\x01 \x03(\x0b\x32\x1f.vega.snapshot.v1.DelegateEntryR\x06\x61\x63tive\x12\x39\n\x07pending\x18\x02 \x03(\x0b\x32\x1f.vega.snapshot.v1.DelegateEntryR\x07pendingBO\n io.vegaprotocol.vega.snapshot.v1Z+code.vegaprotocol.io/vega/proto/snapshot/v1b\x06proto3' + , + dependencies=[vega__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,]) + + + + +_SNAPSHOT = _descriptor.Descriptor( + name='Snapshot', + full_name='vega.snapshot.v1.Snapshot', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='hash', full_name='vega.snapshot.v1.Snapshot.hash', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='hash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='state', full_name='vega.snapshot.v1.Snapshot.state', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='state', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=92, + serialized_end=144, +) + + +_CHECKPOINT = _descriptor.Descriptor( + name='Checkpoint', + full_name='vega.snapshot.v1.Checkpoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='governance', full_name='vega.snapshot.v1.Checkpoint.governance', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='governance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='assets', full_name='vega.snapshot.v1.Checkpoint.assets', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='assets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='collateral', full_name='vega.snapshot.v1.Checkpoint.collateral', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='collateral', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='network_parameters', full_name='vega.snapshot.v1.Checkpoint.network_parameters', index=3, + number=4, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='networkParameters', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='delegation', full_name='vega.snapshot.v1.Checkpoint.delegation', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='delegation', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=147, + serialized_end=326, +) + + +_ASSETENTRY = _descriptor.Descriptor( + name='AssetEntry', + full_name='vega.snapshot.v1.AssetEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='vega.snapshot.v1.AssetEntry.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='asset_details', full_name='vega.snapshot.v1.AssetEntry.asset_details', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='assetDetails', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=328, + serialized_end=413, +) + + +_ASSETS = _descriptor.Descriptor( + name='Assets', + full_name='vega.snapshot.v1.Assets', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='assets', full_name='vega.snapshot.v1.Assets.assets', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='assets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=415, + serialized_end=477, +) + + +_ASSETBALANCE = _descriptor.Descriptor( + name='AssetBalance', + full_name='vega.snapshot.v1.AssetBalance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.snapshot.v1.AssetBalance.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='asset', full_name='vega.snapshot.v1.AssetBalance.asset', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='balance', full_name='vega.snapshot.v1.AssetBalance.balance', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='balance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=479, + serialized_end=563, +) + + +_COLLATERAL = _descriptor.Descriptor( + name='Collateral', + full_name='vega.snapshot.v1.Collateral', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='balances', full_name='vega.snapshot.v1.Collateral.balances', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='balances', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=565, + serialized_end=637, +) + + +_NETPARAMS = _descriptor.Descriptor( + name='NetParams', + full_name='vega.snapshot.v1.NetParams', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='params', full_name='vega.snapshot.v1.NetParams.params', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='params', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=639, + serialized_end=698, +) + + +_PROPOSALS = _descriptor.Descriptor( + name='Proposals', + full_name='vega.snapshot.v1.Proposals', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='proposals', full_name='vega.snapshot.v1.Proposals.proposals', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='proposals', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=700, + serialized_end=757, +) + + +_DELEGATEENTRY = _descriptor.Descriptor( + name='DelegateEntry', + full_name='vega.snapshot.v1.DelegateEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.snapshot.v1.DelegateEntry.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='node', full_name='vega.snapshot.v1.DelegateEntry.node', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='node', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='amount', full_name='vega.snapshot.v1.DelegateEntry.amount', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='undelegate', full_name='vega.snapshot.v1.DelegateEntry.undelegate', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='undelegate', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch_seq', full_name='vega.snapshot.v1.DelegateEntry.epoch_seq', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=760, + serialized_end=902, +) + + +_DELEGATE = _descriptor.Descriptor( + name='Delegate', + full_name='vega.snapshot.v1.Delegate', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='active', full_name='vega.snapshot.v1.Delegate.active', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='active', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pending', full_name='vega.snapshot.v1.Delegate.pending', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='pending', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=904, + serialized_end=1030, +) + +_ASSETENTRY.fields_by_name['asset_details'].message_type = assets__pb2._ASSETDETAILS +_ASSETS.fields_by_name['assets'].message_type = _ASSETENTRY +_COLLATERAL.fields_by_name['balances'].message_type = _ASSETBALANCE +_NETPARAMS.fields_by_name['params'].message_type = vega__pb2._NETWORKPARAMETER +_PROPOSALS.fields_by_name['proposals'].message_type = governance__pb2._PROPOSAL +_DELEGATE.fields_by_name['active'].message_type = _DELEGATEENTRY +_DELEGATE.fields_by_name['pending'].message_type = _DELEGATEENTRY +DESCRIPTOR.message_types_by_name['Snapshot'] = _SNAPSHOT +DESCRIPTOR.message_types_by_name['Checkpoint'] = _CHECKPOINT +DESCRIPTOR.message_types_by_name['AssetEntry'] = _ASSETENTRY +DESCRIPTOR.message_types_by_name['Assets'] = _ASSETS +DESCRIPTOR.message_types_by_name['AssetBalance'] = _ASSETBALANCE +DESCRIPTOR.message_types_by_name['Collateral'] = _COLLATERAL +DESCRIPTOR.message_types_by_name['NetParams'] = _NETPARAMS +DESCRIPTOR.message_types_by_name['Proposals'] = _PROPOSALS +DESCRIPTOR.message_types_by_name['DelegateEntry'] = _DELEGATEENTRY +DESCRIPTOR.message_types_by_name['Delegate'] = _DELEGATE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Snapshot = _reflection.GeneratedProtocolMessageType('Snapshot', (_message.Message,), { + 'DESCRIPTOR' : _SNAPSHOT, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Snapshot) + }) +_sym_db.RegisterMessage(Snapshot) + +Checkpoint = _reflection.GeneratedProtocolMessageType('Checkpoint', (_message.Message,), { + 'DESCRIPTOR' : _CHECKPOINT, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Checkpoint) + }) +_sym_db.RegisterMessage(Checkpoint) + +AssetEntry = _reflection.GeneratedProtocolMessageType('AssetEntry', (_message.Message,), { + 'DESCRIPTOR' : _ASSETENTRY, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetEntry) + }) +_sym_db.RegisterMessage(AssetEntry) + +Assets = _reflection.GeneratedProtocolMessageType('Assets', (_message.Message,), { + 'DESCRIPTOR' : _ASSETS, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Assets) + }) +_sym_db.RegisterMessage(Assets) + +AssetBalance = _reflection.GeneratedProtocolMessageType('AssetBalance', (_message.Message,), { + 'DESCRIPTOR' : _ASSETBALANCE, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.AssetBalance) + }) +_sym_db.RegisterMessage(AssetBalance) + +Collateral = _reflection.GeneratedProtocolMessageType('Collateral', (_message.Message,), { + 'DESCRIPTOR' : _COLLATERAL, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Collateral) + }) +_sym_db.RegisterMessage(Collateral) + +NetParams = _reflection.GeneratedProtocolMessageType('NetParams', (_message.Message,), { + 'DESCRIPTOR' : _NETPARAMS, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.NetParams) + }) +_sym_db.RegisterMessage(NetParams) + +Proposals = _reflection.GeneratedProtocolMessageType('Proposals', (_message.Message,), { + 'DESCRIPTOR' : _PROPOSALS, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Proposals) + }) +_sym_db.RegisterMessage(Proposals) + +DelegateEntry = _reflection.GeneratedProtocolMessageType('DelegateEntry', (_message.Message,), { + 'DESCRIPTOR' : _DELEGATEENTRY, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.DelegateEntry) + }) +_sym_db.RegisterMessage(DelegateEntry) + +Delegate = _reflection.GeneratedProtocolMessageType('Delegate', (_message.Message,), { + 'DESCRIPTOR' : _DELEGATE, + '__module__' : 'snapshot.v1.snapshot_pb2' + # @@protoc_insertion_point(class_scope:vega.snapshot.v1.Delegate) + }) +_sym_db.RegisterMessage(Delegate) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2_grpc.py b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/grpc/clients/python/vegaapiclient/generated/vega_pb2.py b/grpc/clients/python/vegaapiclient/generated/vega_pb2.py index bcc1e8d8..18263de9 100644 --- a/grpc/clients/python/vegaapiclient/generated/vega_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/vega_pb2.py @@ -14,6 +14,7 @@ from .github.com.mwitkow.go_proto_validators import validator_pb2 as github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2 from . import markets_pb2 as markets__pb2 +from . import assets_pb2 as assets__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -22,9 +23,9 @@ syntax='proto3', serialized_options=b'\n\024io.vegaprotocol.vegaZ\037code.vegaprotocol.io/vega/proto', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\nvega.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\"\x1d\n\x05Price\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value\"!\n\tTimestamp\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"\x1f\n\x05Party\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x02id\"N\n\nRiskFactor\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\x12\x14\n\x05short\x18\x02 \x01(\x01R\x05short\x12\x12\n\x04long\x18\x03 \x01(\x01R\x04long\"\xd3\x03\n\nRiskResult\x12+\n\x11updated_timestamp\x18\x01 \x01(\x03R\x10updatedTimestamp\x12\x44\n\x0crisk_factors\x18\x02 \x03(\x0b\x32!.vega.RiskResult.RiskFactorsEntryR\x0briskFactors\x12\x32\n\x15next_update_timestamp\x18\x03 \x01(\x03R\x13nextUpdateTimestamp\x12m\n\x1bpredicted_next_risk_factors\x18\x04 \x03(\x0b\x32..vega.RiskResult.PredictedNextRiskFactorsEntryR\x18predictedNextRiskFactors\x1aP\n\x10RiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\x1a]\n\x1dPredictedNextRiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\"Z\n\x0bPeggedOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x16\n\x06offset\x18\x02 \x01(\x03R\x06offset\"\xe2\x08\n\x05Order\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12\x14\n\x05price\x18\x05 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x1c\n\tremaining\x18\x07 \x01(\x04R\tremaining\x12;\n\rtime_in_force\x18\x08 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12$\n\x04type\x18\t \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\x12*\n\x06status\x18\x0b \x01(\x0e\x32\x12.vega.Order.StatusR\x06status\x12\x1d\n\nexpires_at\x18\x0c \x01(\x03R\texpiresAt\x12\x1c\n\treference\x18\r \x01(\tR\treference\x12(\n\x06reason\x18\x0e \x01(\x0e\x32\x10.vega.OrderErrorR\x06reason\x12\x1d\n\nupdated_at\x18\x0f \x01(\x03R\tupdatedAt\x12\x18\n\x07version\x18\x10 \x01(\x04R\x07version\x12\x19\n\x08\x62\x61tch_id\x18\x11 \x01(\x04R\x07\x62\x61tchId\x12\x34\n\x0cpegged_order\x18\x12 \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\x12\x34\n\x16liquidity_provision_id\x18\x13 \x01(\tR\x14liquidityProvisionId\"\xb6\x01\n\x0bTimeInForce\x12\x1d\n\x19TIME_IN_FORCE_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_IN_FORCE_GTC\x10\x01\x12\x15\n\x11TIME_IN_FORCE_GTT\x10\x02\x12\x15\n\x11TIME_IN_FORCE_IOC\x10\x03\x12\x15\n\x11TIME_IN_FORCE_FOK\x10\x04\x12\x15\n\x11TIME_IN_FORCE_GFA\x10\x05\x12\x15\n\x11TIME_IN_FORCE_GFN\x10\x06\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_LIMIT\x10\x01\x12\x0f\n\x0bTYPE_MARKET\x10\x02\x12\x10\n\x0cTYPE_NETWORK\x10\x03\"\xc9\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_EXPIRED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x12\n\x0eSTATUS_STOPPED\x10\x04\x12\x11\n\rSTATUS_FILLED\x10\x05\x12\x13\n\x0fSTATUS_REJECTED\x10\x06\x12\x1b\n\x17STATUS_PARTIALLY_FILLED\x10\x07\x12\x11\n\rSTATUS_PARKED\x10\x08\"B\n\x1dOrderCancellationConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"\xa0\x01\n\x11OrderConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\x12#\n\x06trades\x18\x02 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\x12\x43\n\x17passive_orders_affected\x18\x03 \x03(\x0b\x32\x0b.vega.OrderR\x15passiveOrdersAffected\"\xd3\x01\n\x16\x41uctionIndicativeState\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12)\n\x10indicative_price\x18\x02 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x03 \x01(\x04R\x10indicativeVolume\x12#\n\rauction_start\x18\x04 \x01(\x03R\x0c\x61uctionStart\x12\x1f\n\x0b\x61uction_end\x18\x05 \x01(\x03R\nauctionEnd\"\xdb\x04\n\x05Trade\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x04 \x01(\x04R\x04size\x12\x14\n\x05\x62uyer\x18\x05 \x01(\tR\x05\x62uyer\x12\x16\n\x06seller\x18\x06 \x01(\tR\x06seller\x12(\n\taggressor\x18\x07 \x01(\x0e\x32\n.vega.SideR\taggressor\x12\x1b\n\tbuy_order\x18\x08 \x01(\tR\x08\x62uyOrder\x12\x1d\n\nsell_order\x18\t \x01(\tR\tsellOrder\x12\x1c\n\ttimestamp\x18\n \x01(\x03R\ttimestamp\x12$\n\x04type\x18\x0b \x01(\x0e\x32\x10.vega.Trade.TypeR\x04type\x12&\n\tbuyer_fee\x18\x0c \x01(\x0b\x32\t.vega.FeeR\x08\x62uyerFee\x12(\n\nseller_fee\x18\r \x01(\x0b\x32\t.vega.FeeR\tsellerFee\x12.\n\x13\x62uyer_auction_batch\x18\x0e \x01(\x04R\x11\x62uyerAuctionBatch\x12\x30\n\x14seller_auction_batch\x18\x0f \x01(\x04R\x12sellerAuctionBatch\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_DEFAULT\x10\x01\x12\x1f\n\x1bTYPE_NETWORK_CLOSE_OUT_GOOD\x10\x02\x12\x1e\n\x1aTYPE_NETWORK_CLOSE_OUT_BAD\x10\x03\"v\n\x03\x46\x65\x65\x12\x1b\n\tmaker_fee\x18\x01 \x01(\x04R\x08makerFee\x12-\n\x12infrastructure_fee\x18\x02 \x01(\x04R\x11infrastructureFee\x12#\n\rliquidity_fee\x18\x03 \x01(\x04R\x0cliquidityFee\"/\n\x08TradeSet\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"\xd6\x01\n\x06\x43\x61ndle\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x1a\n\x08\x64\x61tetime\x18\x02 \x01(\tR\x08\x64\x61tetime\x12\x12\n\x04high\x18\x03 \x01(\x04R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x04R\x03low\x12\x12\n\x04open\x18\x05 \x01(\x04R\x04open\x12\x14\n\x05\x63lose\x18\x06 \x01(\x04R\x05\x63lose\x12\x16\n\x06volume\x18\x07 \x01(\x04R\x06volume\x12*\n\x08interval\x18\x08 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"d\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\x04R\x05price\x12(\n\x10number_of_orders\x18\x02 \x01(\x04R\x0enumberOfOrders\x12\x16\n\x06volume\x18\x03 \x01(\x04R\x06volume\"\x9d\x01\n\x0bMarketDepth\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xa3\x01\n\x11MarketDepthUpdate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xfc\x01\n\x08Position\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1f\n\x0bopen_volume\x18\x03 \x01(\x03R\nopenVolume\x12!\n\x0crealised_pnl\x18\x04 \x01(\x03R\x0brealisedPnl\x12%\n\x0eunrealised_pnl\x18\x05 \x01(\x03R\runrealisedPnl\x12.\n\x13\x61verage_entry_price\x18\x06 \x01(\x04R\x11\x61verageEntryPrice\x12\x1d\n\nupdated_at\x18\x07 \x01(\x03R\tupdatedAt\"=\n\rPositionTrade\x12\x16\n\x06volume\x18\x01 \x01(\x03R\x06volume\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xe9\n\n\nStatistics\x12!\n\x0c\x62lock_height\x18\x01 \x01(\x04R\x0b\x62lockHeight\x12%\n\x0e\x62\x61\x63klog_length\x18\x02 \x01(\x04R\rbacklogLength\x12\x1f\n\x0btotal_peers\x18\x03 \x01(\x04R\ntotalPeers\x12!\n\x0cgenesis_time\x18\x04 \x01(\tR\x0bgenesisTime\x12!\n\x0c\x63urrent_time\x18\x05 \x01(\tR\x0b\x63urrentTime\x12\x1b\n\tvega_time\x18\x06 \x01(\tR\x08vegaTime\x12)\n\x06status\x18\x07 \x01(\x0e\x32\x11.vega.ChainStatusR\x06status\x12 \n\x0ctx_per_block\x18\x08 \x01(\x04R\ntxPerBlock\x12(\n\x10\x61verage_tx_bytes\x18\t \x01(\x04R\x0e\x61verageTxBytes\x12\x37\n\x18\x61verage_orders_per_block\x18\n \x01(\x04R\x15\x61verageOrdersPerBlock\x12*\n\x11trades_per_second\x18\x0b \x01(\x04R\x0ftradesPerSecond\x12*\n\x11orders_per_second\x18\x0c \x01(\x04R\x0fordersPerSecond\x12#\n\rtotal_markets\x18\r \x01(\x04R\x0ctotalMarkets\x12*\n\x11total_amend_order\x18\x10 \x01(\x04R\x0ftotalAmendOrder\x12,\n\x12total_cancel_order\x18\x11 \x01(\x04R\x10totalCancelOrder\x12,\n\x12total_create_order\x18\x12 \x01(\x04R\x10totalCreateOrder\x12!\n\x0ctotal_orders\x18\x13 \x01(\x04R\x0btotalOrders\x12!\n\x0ctotal_trades\x18\x14 \x01(\x04R\x0btotalTrades\x12/\n\x13order_subscriptions\x18\x15 \x01(\rR\x12orderSubscriptions\x12/\n\x13trade_subscriptions\x18\x16 \x01(\rR\x12tradeSubscriptions\x12\x31\n\x14\x63\x61ndle_subscriptions\x18\x17 \x01(\rR\x13\x63\x61ndleSubscriptions\x12<\n\x1amarket_depth_subscriptions\x18\x18 \x01(\rR\x18marketDepthSubscriptions\x12\x37\n\x17positions_subscriptions\x18\x19 \x01(\rR\x16positionsSubscriptions\x12\x33\n\x15\x61\x63\x63ount_subscriptions\x18\x1a \x01(\rR\x14\x61\x63\x63ountSubscriptions\x12:\n\x19market_data_subscriptions\x18\x1b \x01(\rR\x17marketDataSubscriptions\x12(\n\x10\x61pp_version_hash\x18\x1c \x01(\tR\x0e\x61ppVersionHash\x12\x1f\n\x0b\x61pp_version\x18\x1d \x01(\tR\nappVersion\x12#\n\rchain_version\x18\x1e \x01(\tR\x0c\x63hainVersion\x12%\n\x0e\x62lock_duration\x18\x1f \x01(\x04R\rblockDuration\x12\x16\n\x06uptime\x18 \x01(\tR\x06uptime\x12\x19\n\x08\x63hain_id\x18! \x01(\tR\x07\x63hainId\x12K\n\"market_depth_updates_subscriptions\x18\" \x01(\rR\x1fmarketDepthUpdatesSubscriptions\"\xe4\x02\n\x07\x44\x65posit\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12,\n\x06status\x18\x02 \x01(\x0e\x32\x14.vega.Deposit.StatusR\x06status\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x17\n\x07tx_hash\x18\x06 \x01(\tR\x06txHash\x12-\n\x12\x63redited_timestamp\x18\x07 \x01(\x03R\x11\x63reditedTimestamp\x12+\n\x11\x63reated_timestamp\x18\x08 \x01(\x03R\x10\x63reatedTimestamp\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"\xbb\x03\n\nWithdrawal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12/\n\x06status\x18\x05 \x01(\x0e\x32\x17.vega.Withdrawal.StatusR\x06status\x12\x10\n\x03ref\x18\x06 \x01(\tR\x03ref\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\x12+\n\x11\x63reated_timestamp\x18\t \x01(\x03R\x10\x63reatedTimestamp\x12/\n\x13withdrawn_timestamp\x18\n \x01(\x03R\x12withdrawnTimestamp\x12#\n\x03\x65xt\x18\x0b \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"D\n\x0bWithdrawExt\x12.\n\x05\x65rc20\x18\x01 \x01(\x0b\x32\x16.vega.Erc20WithdrawExtH\x00R\x05\x65rc20B\x05\n\x03\x65xt\"=\n\x10\x45rc20WithdrawExt\x12)\n\x10receiver_address\x18\x01 \x01(\tR\x0freceiverAddress\"\xa3\x01\n\x07\x41\x63\x63ount\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\x04R\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x1b\n\tmarket_id\x18\x05 \x01(\tR\x08marketId\x12%\n\x04type\x18\x06 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\"?\n\x0f\x46inancialAmount\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\"\x96\x01\n\x08Transfer\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\x12-\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x15.vega.FinancialAmountR\x06\x61mount\x12&\n\x04type\x18\x03 \x01(\x0e\x32\x12.vega.TransferTypeR\x04type\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\"\xdc\x01\n\x0fTransferRequest\x12\x30\n\x0c\x66rom_account\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x0b\x66romAccount\x12,\n\nto_account\x18\x02 \x03(\x0b\x32\r.vega.AccountR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"\xb7\x01\n\x0bLedgerEntry\x12!\n\x0c\x66rom_account\x18\x01 \x01(\tR\x0b\x66romAccount\x12\x1d\n\nto_account\x18\x02 \x01(\tR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1c\n\treference\x18\x04 \x01(\tR\treference\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"T\n\x0fTransferBalance\x12\'\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\r.vega.AccountR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\x04R\x07\x62\x61lance\"v\n\x10TransferResponse\x12/\n\ttransfers\x18\x01 \x03(\x0b\x32\x11.vega.LedgerEntryR\ttransfers\x12\x31\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32\x15.vega.TransferBalanceR\x08\x62\x61lances\"\xad\x02\n\x0cMarginLevels\x12-\n\x12maintenance_margin\x18\x01 \x01(\x04R\x11maintenanceMargin\x12!\n\x0csearch_level\x18\x02 \x01(\x04R\x0bsearchLevel\x12%\n\x0einitial_margin\x18\x03 \x01(\x04R\rinitialMargin\x12\x38\n\x18\x63ollateral_release_level\x18\x04 \x01(\x04R\x16\x63ollateralReleaseLevel\x12\x19\n\x08party_id\x18\x05 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12\x14\n\x05\x61sset\x18\x07 \x01(\tR\x05\x61sset\x12\x1c\n\ttimestamp\x18\x08 \x01(\x03R\ttimestamp\"\xd3\t\n\nMarketData\x12\x1d\n\nmark_price\x18\x01 \x01(\x04R\tmarkPrice\x12$\n\x0e\x62\x65st_bid_price\x18\x02 \x01(\x04R\x0c\x62\x65stBidPrice\x12&\n\x0f\x62\x65st_bid_volume\x18\x03 \x01(\x04R\rbestBidVolume\x12(\n\x10\x62\x65st_offer_price\x18\x04 \x01(\x04R\x0e\x62\x65stOfferPrice\x12*\n\x11\x62\x65st_offer_volume\x18\x05 \x01(\x04R\x0f\x62\x65stOfferVolume\x12\x31\n\x15\x62\x65st_static_bid_price\x18\x06 \x01(\x04R\x12\x62\x65stStaticBidPrice\x12\x33\n\x16\x62\x65st_static_bid_volume\x18\x07 \x01(\x04R\x13\x62\x65stStaticBidVolume\x12\x35\n\x17\x62\x65st_static_offer_price\x18\x08 \x01(\x04R\x14\x62\x65stStaticOfferPrice\x12\x37\n\x18\x62\x65st_static_offer_volume\x18\t \x01(\x04R\x15\x62\x65stStaticOfferVolume\x12\x1b\n\tmid_price\x18\n \x01(\x04R\x08midPrice\x12(\n\x10static_mid_price\x18\x0b \x01(\x04R\x0estaticMidPrice\x12\x16\n\x06market\x18\x0c \x01(\tR\x06market\x12\x1c\n\ttimestamp\x18\r \x01(\x03R\ttimestamp\x12#\n\ropen_interest\x18\x0e \x01(\x04R\x0copenInterest\x12\x1f\n\x0b\x61uction_end\x18\x0f \x01(\x03R\nauctionEnd\x12#\n\rauction_start\x18\x10 \x01(\x03R\x0c\x61uctionStart\x12)\n\x10indicative_price\x18\x11 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x12 \x01(\x04R\x10indicativeVolume\x12H\n\x13market_trading_mode\x18\x13 \x01(\x0e\x32\x18.vega.Market.TradingModeR\x11marketTradingMode\x12.\n\x07trigger\x18\x14 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x15 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\x12!\n\x0ctarget_stake\x18\x16 \x01(\tR\x0btargetStake\x12%\n\x0esupplied_stake\x18\x17 \x01(\tR\rsuppliedStake\x12S\n\x17price_monitoring_bounds\x18\x18 \x03(\x0b\x32\x1b.vega.PriceMonitoringBoundsR\x15priceMonitoringBounds\x12,\n\x12market_value_proxy\x18\x19 \x01(\tR\x10marketValueProxy\x12`\n\x1cliquidity_provider_fee_share\x18\x1a \x03(\x0b\x32\x1f.vega.LiquidityProviderFeeShareR\x19liquidityProviderFeeShare\"\x95\x01\n\x19LiquidityProviderFeeShare\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12*\n\x11\x65quity_like_share\x18\x02 \x01(\tR\x0f\x65quityLikeShare\x12\x36\n\x17\x61verage_entry_valuation\x18\x03 \x01(\tR\x15\x61verageEntryValuation\"\xc8\x01\n\x15PriceMonitoringBounds\x12&\n\x0fmin_valid_price\x18\x01 \x01(\x04R\rminValidPrice\x12&\n\x0fmax_valid_price\x18\x02 \x01(\x04R\rmaxValidPrice\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32\x1c.vega.PriceMonitoringTriggerR\x07trigger\x12\'\n\x0freference_price\x18\x04 \x01(\x01R\x0ereferencePrice\"Q\n\x0b\x45rrorDetail\x12\x12\n\x04\x63ode\x18\x01 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x14\n\x05inner\x18\x03 \x01(\tR\x05inner\"\xa6\x01\n\x0bTransaction\x12\x1d\n\ninput_data\x18\x01 \x01(\x0cR\tinputData\x12\x14\n\x05nonce\x18\x02 \x01(\x04R\x05nonce\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\x12\x1b\n\x07\x61\x64\x64ress\x18\xe9\x07 \x01(\x0cH\x00R\x07\x61\x64\x64ress\x12\x1a\n\x07pub_key\x18\xea\x07 \x01(\x0cH\x00R\x06pubKeyB\x06\n\x04\x66rom\"K\n\tSignature\x12\x10\n\x03sig\x18\x01 \x01(\x0cR\x03sig\x12\x12\n\x04\x61lgo\x18\x02 \x01(\tR\x04\x61lgo\x12\x18\n\x07version\x18\x03 \x01(\rR\x07version\"A\n\x0cSignedBundle\x12\x0e\n\x02tx\x18\x01 \x01(\x0cR\x02tx\x12!\n\x03sig\x18\x02 \x01(\x0b\x32\x0f.vega.SignatureR\x03sig\":\n\x10NetworkParameter\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"}\n\x0eLiquidityOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x1e\n\nproportion\x18\x02 \x01(\rR\nproportion\x12\x16\n\x06offset\x18\x03 \x01(\x03R\x06offset\"s\n\x17LiquidityOrderReference\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12=\n\x0fliquidity_order\x18\x02 \x01(\x0b\x32\x14.vega.LiquidityOrderR\x0eliquidityOrder\"\xda\x04\n\x12LiquidityProvision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1d\n\ncreated_at\x18\x03 \x01(\x03R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x04 \x01(\x03R\tupdatedAt\x12#\n\tmarket_id\x18\x05 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x06 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x07 \x01(\tR\x03\x66\x65\x65\x12\x33\n\x05sells\x18\x08 \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x05sells\x12\x31\n\x04\x62uys\x18\t \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x04\x62uys\x12\x18\n\x07version\x18\n \x01(\tR\x07version\x12\x37\n\x06status\x18\x0b \x01(\x0e\x32\x1f.vega.LiquidityProvision.StatusR\x06status\x12\x1c\n\treference\x18\x0c \x01(\tR\treference\"\x9d\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_STOPPED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x13\n\x0fSTATUS_REJECTED\x10\x04\x12\x15\n\x11STATUS_UNDEPLOYED\x10\x05\x12\x12\n\x0eSTATUS_PENDING\x10\x06\"\x97\x01\n\x0e\x45thereumConfig\x12\x1d\n\nnetwork_id\x18\x01 \x01(\tR\tnetworkId\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12%\n\x0e\x62ridge_address\x18\x03 \x01(\tR\rbridgeAddress\x12$\n\rconfirmations\x18\x04 \x01(\rR\rconfirmations*9\n\x04Side\x12\x14\n\x10SIDE_UNSPECIFIED\x10\x00\x12\x0c\n\x08SIDE_BUY\x10\x01\x12\r\n\tSIDE_SELL\x10\x02*\x98\x01\n\x08Interval\x12\x18\n\x14INTERVAL_UNSPECIFIED\x10\x00\x12\x10\n\x0cINTERVAL_I1M\x10<\x12\x11\n\x0cINTERVAL_I5M\x10\xac\x02\x12\x12\n\rINTERVAL_I15M\x10\x84\x07\x12\x11\n\x0cINTERVAL_I1H\x10\x90\x1c\x12\x12\n\x0cINTERVAL_I6H\x10\xe0\xa8\x01\x12\x12\n\x0cINTERVAL_I1D\x10\x80\xa3\x05*\xa3\x01\n\x0e\x41uctionTrigger\x12\x1f\n\x1b\x41UCTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41UCTION_TRIGGER_BATCH\x10\x01\x12\x1b\n\x17\x41UCTION_TRIGGER_OPENING\x10\x02\x12\x19\n\x15\x41UCTION_TRIGGER_PRICE\x10\x03\x12\x1d\n\x19\x41UCTION_TRIGGER_LIQUIDITY\x10\x04*\x8b\x01\n\x0fPeggedReference\x12 \n\x1cPEGGED_REFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14PEGGED_REFERENCE_MID\x10\x01\x12\x1d\n\x19PEGGED_REFERENCE_BEST_BID\x10\x02\x12\x1d\n\x19PEGGED_REFERENCE_BEST_ASK\x10\x03*\xf8\x0f\n\nOrderError\x12\x1b\n\x17ORDER_ERROR_UNSPECIFIED\x10\x00\x12!\n\x1dORDER_ERROR_INVALID_MARKET_ID\x10\x01\x12 \n\x1cORDER_ERROR_INVALID_ORDER_ID\x10\x02\x12\x1f\n\x1bORDER_ERROR_OUT_OF_SEQUENCE\x10\x03\x12&\n\"ORDER_ERROR_INVALID_REMAINING_SIZE\x10\x04\x12\x1c\n\x18ORDER_ERROR_TIME_FAILURE\x10\x05\x12\x1f\n\x1bORDER_ERROR_REMOVAL_FAILURE\x10\x06\x12+\n\'ORDER_ERROR_INVALID_EXPIRATION_DATETIME\x10\x07\x12\'\n#ORDER_ERROR_INVALID_ORDER_REFERENCE\x10\x08\x12 \n\x1cORDER_ERROR_EDIT_NOT_ALLOWED\x10\t\x12\x1d\n\x19ORDER_ERROR_AMEND_FAILURE\x10\n\x12\x19\n\x15ORDER_ERROR_NOT_FOUND\x10\x0b\x12 \n\x1cORDER_ERROR_INVALID_PARTY_ID\x10\x0c\x12\x1d\n\x19ORDER_ERROR_MARKET_CLOSED\x10\r\x12#\n\x1fORDER_ERROR_MARGIN_CHECK_FAILED\x10\x0e\x12\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUNT\x10\x0f\x12\x1e\n\x1aORDER_ERROR_INTERNAL_ERROR\x10\x10\x12\x1c\n\x18ORDER_ERROR_INVALID_SIZE\x10\x11\x12#\n\x1fORDER_ERROR_INVALID_PERSISTENCE\x10\x12\x12\x1c\n\x18ORDER_ERROR_INVALID_TYPE\x10\x13\x12\x1c\n\x18ORDER_ERROR_SELF_TRADING\x10\x14\x12.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\x10\x15\x12%\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\x10\x16\x12%\n!ORDER_ERROR_INVALID_TIME_IN_FORCE\x10\x17\x12+\n\'ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\x10\x18\x12\x33\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\x10\x19\x12\x34\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\x10\x1a\x12)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT\x10\x1b\x12,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\x10\x1c\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\x10\x1d\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN\x10\x1e\x12,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\x10\x1f\x12\x34\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION\x10 \x12\x34\n0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\x10!\x12#\n\x1fORDER_ERROR_MUST_BE_LIMIT_ORDER\x10\"\x12\"\n\x1eORDER_ERROR_MUST_BE_GTT_OR_GTC\x10#\x12\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PRICE\x10$\x12\x33\n/ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE\x10%\x12\x34\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO\x10&\x12-\n)ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\x10\'\x12\x37\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO\x10(\x12\x34\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE\x10)\x12\x30\n,ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\x10*\x12*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE\x10+\x12\x45\nAORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER\x10,\x12.\n*ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER\x10-\x12\x35\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER\x10.\x12\x38\n4ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\x10/*\x82\x01\n\x0b\x43hainStatus\x12\x1c\n\x18\x43HAIN_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43HAIN_STATUS_DISCONNECTED\x10\x01\x12\x1a\n\x16\x43HAIN_STATUS_REPLAYING\x10\x02\x12\x1a\n\x16\x43HAIN_STATUS_CONNECTED\x10\x03*\x90\x03\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNT_TYPE_INSURANCE\x10\x01\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_SETTLEMENT\x10\x02\x12\x17\n\x13\x41\x43\x43OUNT_TYPE_MARGIN\x10\x03\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_GENERAL\x10\x04\x12$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\x10\x05\x12\x1f\n\x1b\x41\x43\x43OUNT_TYPE_FEES_LIQUIDITY\x10\x06\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_FEES_MAKER\x10\x07\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_LOCK_WITHDRAW\x10\x08\x12\x15\n\x11\x41\x43\x43OUNT_TYPE_BOND\x10\t\x12\x19\n\x15\x41\x43\x43OUNT_TYPE_EXTERNAL\x10\n\x12!\n\x1d\x41\x43\x43OUNT_TYPE_GLOBAL_INSURANCE\x10\x0b\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_GLOBAL_REWARD\x10\x0c*\xd3\x05\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12TRANSFER_TYPE_LOSS\x10\x01\x12\x15\n\x11TRANSFER_TYPE_WIN\x10\x02\x12\x17\n\x13TRANSFER_TYPE_CLOSE\x10\x03\x12\x1a\n\x16TRANSFER_TYPE_MTM_LOSS\x10\x04\x12\x19\n\x15TRANSFER_TYPE_MTM_WIN\x10\x05\x12\x1c\n\x18TRANSFER_TYPE_MARGIN_LOW\x10\x06\x12\x1d\n\x19TRANSFER_TYPE_MARGIN_HIGH\x10\x07\x12$\n TRANSFER_TYPE_MARGIN_CONFISCATED\x10\x08\x12\x1f\n\x1bTRANSFER_TYPE_MAKER_FEE_PAY\x10\t\x12#\n\x1fTRANSFER_TYPE_MAKER_FEE_RECEIVE\x10\n\x12(\n$TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\x10\x0b\x12/\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE\x10\x0c\x12#\n\x1fTRANSFER_TYPE_LIQUIDITY_FEE_PAY\x10\r\x12*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\x10\x0e\x12\x1a\n\x16TRANSFER_TYPE_BOND_LOW\x10\x0f\x12\x1b\n\x17TRANSFER_TYPE_BOND_HIGH\x10\x10\x12\x1f\n\x1bTRANSFER_TYPE_WITHDRAW_LOCK\x10\x11\x12\x1a\n\x16TRANSFER_TYPE_WITHDRAW\x10\x12\x12\x19\n\x15TRANSFER_TYPE_DEPOSIT\x10\x13\x12\x1f\n\x1bTRANSFER_TYPE_BOND_SLASHING\x10\x14\x12\x1e\n\x1aTRANSFER_TYPE_STAKE_REWARD\x10\x15\x42\x37\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' + serialized_pb=b'\n\nvega.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\"\x1d\n\x05Price\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value\"!\n\tTimestamp\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"S\n\x05Party\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x02id\x12\x32\n\x0b\x64\x65legations\x18\x02 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"N\n\nRiskFactor\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\x12\x14\n\x05short\x18\x02 \x01(\x01R\x05short\x12\x12\n\x04long\x18\x03 \x01(\x01R\x04long\"\xd3\x03\n\nRiskResult\x12+\n\x11updated_timestamp\x18\x01 \x01(\x03R\x10updatedTimestamp\x12\x44\n\x0crisk_factors\x18\x02 \x03(\x0b\x32!.vega.RiskResult.RiskFactorsEntryR\x0briskFactors\x12\x32\n\x15next_update_timestamp\x18\x03 \x01(\x03R\x13nextUpdateTimestamp\x12m\n\x1bpredicted_next_risk_factors\x18\x04 \x03(\x0b\x32..vega.RiskResult.PredictedNextRiskFactorsEntryR\x18predictedNextRiskFactors\x1aP\n\x10RiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\x1a]\n\x1dPredictedNextRiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\"Z\n\x0bPeggedOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x16\n\x06offset\x18\x02 \x01(\x03R\x06offset\"\xe2\x08\n\x05Order\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12\x14\n\x05price\x18\x05 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x1c\n\tremaining\x18\x07 \x01(\x04R\tremaining\x12;\n\rtime_in_force\x18\x08 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12$\n\x04type\x18\t \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\x12*\n\x06status\x18\x0b \x01(\x0e\x32\x12.vega.Order.StatusR\x06status\x12\x1d\n\nexpires_at\x18\x0c \x01(\x03R\texpiresAt\x12\x1c\n\treference\x18\r \x01(\tR\treference\x12(\n\x06reason\x18\x0e \x01(\x0e\x32\x10.vega.OrderErrorR\x06reason\x12\x1d\n\nupdated_at\x18\x0f \x01(\x03R\tupdatedAt\x12\x18\n\x07version\x18\x10 \x01(\x04R\x07version\x12\x19\n\x08\x62\x61tch_id\x18\x11 \x01(\x04R\x07\x62\x61tchId\x12\x34\n\x0cpegged_order\x18\x12 \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\x12\x34\n\x16liquidity_provision_id\x18\x13 \x01(\tR\x14liquidityProvisionId\"\xb6\x01\n\x0bTimeInForce\x12\x1d\n\x19TIME_IN_FORCE_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_IN_FORCE_GTC\x10\x01\x12\x15\n\x11TIME_IN_FORCE_GTT\x10\x02\x12\x15\n\x11TIME_IN_FORCE_IOC\x10\x03\x12\x15\n\x11TIME_IN_FORCE_FOK\x10\x04\x12\x15\n\x11TIME_IN_FORCE_GFA\x10\x05\x12\x15\n\x11TIME_IN_FORCE_GFN\x10\x06\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_LIMIT\x10\x01\x12\x0f\n\x0bTYPE_MARKET\x10\x02\x12\x10\n\x0cTYPE_NETWORK\x10\x03\"\xc9\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_EXPIRED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x12\n\x0eSTATUS_STOPPED\x10\x04\x12\x11\n\rSTATUS_FILLED\x10\x05\x12\x13\n\x0fSTATUS_REJECTED\x10\x06\x12\x1b\n\x17STATUS_PARTIALLY_FILLED\x10\x07\x12\x11\n\rSTATUS_PARKED\x10\x08\"B\n\x1dOrderCancellationConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"\xa0\x01\n\x11OrderConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\x12#\n\x06trades\x18\x02 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\x12\x43\n\x17passive_orders_affected\x18\x03 \x03(\x0b\x32\x0b.vega.OrderR\x15passiveOrdersAffected\"\xd3\x01\n\x16\x41uctionIndicativeState\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12)\n\x10indicative_price\x18\x02 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x03 \x01(\x04R\x10indicativeVolume\x12#\n\rauction_start\x18\x04 \x01(\x03R\x0c\x61uctionStart\x12\x1f\n\x0b\x61uction_end\x18\x05 \x01(\x03R\nauctionEnd\"\xdb\x04\n\x05Trade\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x04 \x01(\x04R\x04size\x12\x14\n\x05\x62uyer\x18\x05 \x01(\tR\x05\x62uyer\x12\x16\n\x06seller\x18\x06 \x01(\tR\x06seller\x12(\n\taggressor\x18\x07 \x01(\x0e\x32\n.vega.SideR\taggressor\x12\x1b\n\tbuy_order\x18\x08 \x01(\tR\x08\x62uyOrder\x12\x1d\n\nsell_order\x18\t \x01(\tR\tsellOrder\x12\x1c\n\ttimestamp\x18\n \x01(\x03R\ttimestamp\x12$\n\x04type\x18\x0b \x01(\x0e\x32\x10.vega.Trade.TypeR\x04type\x12&\n\tbuyer_fee\x18\x0c \x01(\x0b\x32\t.vega.FeeR\x08\x62uyerFee\x12(\n\nseller_fee\x18\r \x01(\x0b\x32\t.vega.FeeR\tsellerFee\x12.\n\x13\x62uyer_auction_batch\x18\x0e \x01(\x04R\x11\x62uyerAuctionBatch\x12\x30\n\x14seller_auction_batch\x18\x0f \x01(\x04R\x12sellerAuctionBatch\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_DEFAULT\x10\x01\x12\x1f\n\x1bTYPE_NETWORK_CLOSE_OUT_GOOD\x10\x02\x12\x1e\n\x1aTYPE_NETWORK_CLOSE_OUT_BAD\x10\x03\"v\n\x03\x46\x65\x65\x12\x1b\n\tmaker_fee\x18\x01 \x01(\x04R\x08makerFee\x12-\n\x12infrastructure_fee\x18\x02 \x01(\x04R\x11infrastructureFee\x12#\n\rliquidity_fee\x18\x03 \x01(\x04R\x0cliquidityFee\"/\n\x08TradeSet\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"\xd6\x01\n\x06\x43\x61ndle\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x1a\n\x08\x64\x61tetime\x18\x02 \x01(\tR\x08\x64\x61tetime\x12\x12\n\x04high\x18\x03 \x01(\x04R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x04R\x03low\x12\x12\n\x04open\x18\x05 \x01(\x04R\x04open\x12\x14\n\x05\x63lose\x18\x06 \x01(\x04R\x05\x63lose\x12\x16\n\x06volume\x18\x07 \x01(\x04R\x06volume\x12*\n\x08interval\x18\x08 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"d\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\x04R\x05price\x12(\n\x10number_of_orders\x18\x02 \x01(\x04R\x0enumberOfOrders\x12\x16\n\x06volume\x18\x03 \x01(\x04R\x06volume\"\x9d\x01\n\x0bMarketDepth\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xa3\x01\n\x11MarketDepthUpdate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xfc\x01\n\x08Position\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1f\n\x0bopen_volume\x18\x03 \x01(\x03R\nopenVolume\x12!\n\x0crealised_pnl\x18\x04 \x01(\x03R\x0brealisedPnl\x12%\n\x0eunrealised_pnl\x18\x05 \x01(\x03R\runrealisedPnl\x12.\n\x13\x61verage_entry_price\x18\x06 \x01(\x04R\x11\x61verageEntryPrice\x12\x1d\n\nupdated_at\x18\x07 \x01(\x03R\tupdatedAt\"=\n\rPositionTrade\x12\x16\n\x06volume\x18\x01 \x01(\x03R\x06volume\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xe4\x02\n\x07\x44\x65posit\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12,\n\x06status\x18\x02 \x01(\x0e\x32\x14.vega.Deposit.StatusR\x06status\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x17\n\x07tx_hash\x18\x06 \x01(\tR\x06txHash\x12-\n\x12\x63redited_timestamp\x18\x07 \x01(\x03R\x11\x63reditedTimestamp\x12+\n\x11\x63reated_timestamp\x18\x08 \x01(\x03R\x10\x63reatedTimestamp\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"\xbb\x03\n\nWithdrawal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12/\n\x06status\x18\x05 \x01(\x0e\x32\x17.vega.Withdrawal.StatusR\x06status\x12\x10\n\x03ref\x18\x06 \x01(\tR\x03ref\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\x12+\n\x11\x63reated_timestamp\x18\t \x01(\x03R\x10\x63reatedTimestamp\x12/\n\x13withdrawn_timestamp\x18\n \x01(\x03R\x12withdrawnTimestamp\x12#\n\x03\x65xt\x18\x0b \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"D\n\x0bWithdrawExt\x12.\n\x05\x65rc20\x18\x01 \x01(\x0b\x32\x16.vega.Erc20WithdrawExtH\x00R\x05\x65rc20B\x05\n\x03\x65xt\"=\n\x10\x45rc20WithdrawExt\x12)\n\x10receiver_address\x18\x01 \x01(\tR\x0freceiverAddress\"\xa3\x01\n\x07\x41\x63\x63ount\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\x04R\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x1b\n\tmarket_id\x18\x05 \x01(\tR\x08marketId\x12%\n\x04type\x18\x06 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\"?\n\x0f\x46inancialAmount\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\"\x96\x01\n\x08Transfer\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\x12-\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x15.vega.FinancialAmountR\x06\x61mount\x12&\n\x04type\x18\x03 \x01(\x0e\x32\x12.vega.TransferTypeR\x04type\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\"\xdc\x01\n\x0fTransferRequest\x12\x30\n\x0c\x66rom_account\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x0b\x66romAccount\x12,\n\nto_account\x18\x02 \x03(\x0b\x32\r.vega.AccountR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"\xb7\x01\n\x0bLedgerEntry\x12!\n\x0c\x66rom_account\x18\x01 \x01(\tR\x0b\x66romAccount\x12\x1d\n\nto_account\x18\x02 \x01(\tR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1c\n\treference\x18\x04 \x01(\tR\treference\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"T\n\x0fTransferBalance\x12\'\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\r.vega.AccountR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\x04R\x07\x62\x61lance\"v\n\x10TransferResponse\x12/\n\ttransfers\x18\x01 \x03(\x0b\x32\x11.vega.LedgerEntryR\ttransfers\x12\x31\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32\x15.vega.TransferBalanceR\x08\x62\x61lances\"\xad\x02\n\x0cMarginLevels\x12-\n\x12maintenance_margin\x18\x01 \x01(\x04R\x11maintenanceMargin\x12!\n\x0csearch_level\x18\x02 \x01(\x04R\x0bsearchLevel\x12%\n\x0einitial_margin\x18\x03 \x01(\x04R\rinitialMargin\x12\x38\n\x18\x63ollateral_release_level\x18\x04 \x01(\x04R\x16\x63ollateralReleaseLevel\x12\x19\n\x08party_id\x18\x05 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12\x14\n\x05\x61sset\x18\x07 \x01(\tR\x05\x61sset\x12\x1c\n\ttimestamp\x18\x08 \x01(\x03R\ttimestamp\"\xd3\t\n\nMarketData\x12\x1d\n\nmark_price\x18\x01 \x01(\x04R\tmarkPrice\x12$\n\x0e\x62\x65st_bid_price\x18\x02 \x01(\x04R\x0c\x62\x65stBidPrice\x12&\n\x0f\x62\x65st_bid_volume\x18\x03 \x01(\x04R\rbestBidVolume\x12(\n\x10\x62\x65st_offer_price\x18\x04 \x01(\x04R\x0e\x62\x65stOfferPrice\x12*\n\x11\x62\x65st_offer_volume\x18\x05 \x01(\x04R\x0f\x62\x65stOfferVolume\x12\x31\n\x15\x62\x65st_static_bid_price\x18\x06 \x01(\x04R\x12\x62\x65stStaticBidPrice\x12\x33\n\x16\x62\x65st_static_bid_volume\x18\x07 \x01(\x04R\x13\x62\x65stStaticBidVolume\x12\x35\n\x17\x62\x65st_static_offer_price\x18\x08 \x01(\x04R\x14\x62\x65stStaticOfferPrice\x12\x37\n\x18\x62\x65st_static_offer_volume\x18\t \x01(\x04R\x15\x62\x65stStaticOfferVolume\x12\x1b\n\tmid_price\x18\n \x01(\x04R\x08midPrice\x12(\n\x10static_mid_price\x18\x0b \x01(\x04R\x0estaticMidPrice\x12\x16\n\x06market\x18\x0c \x01(\tR\x06market\x12\x1c\n\ttimestamp\x18\r \x01(\x03R\ttimestamp\x12#\n\ropen_interest\x18\x0e \x01(\x04R\x0copenInterest\x12\x1f\n\x0b\x61uction_end\x18\x0f \x01(\x03R\nauctionEnd\x12#\n\rauction_start\x18\x10 \x01(\x03R\x0c\x61uctionStart\x12)\n\x10indicative_price\x18\x11 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x12 \x01(\x04R\x10indicativeVolume\x12H\n\x13market_trading_mode\x18\x13 \x01(\x0e\x32\x18.vega.Market.TradingModeR\x11marketTradingMode\x12.\n\x07trigger\x18\x14 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x15 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\x12!\n\x0ctarget_stake\x18\x16 \x01(\tR\x0btargetStake\x12%\n\x0esupplied_stake\x18\x17 \x01(\tR\rsuppliedStake\x12S\n\x17price_monitoring_bounds\x18\x18 \x03(\x0b\x32\x1b.vega.PriceMonitoringBoundsR\x15priceMonitoringBounds\x12,\n\x12market_value_proxy\x18\x19 \x01(\tR\x10marketValueProxy\x12`\n\x1cliquidity_provider_fee_share\x18\x1a \x03(\x0b\x32\x1f.vega.LiquidityProviderFeeShareR\x19liquidityProviderFeeShare\"\x95\x01\n\x19LiquidityProviderFeeShare\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12*\n\x11\x65quity_like_share\x18\x02 \x01(\tR\x0f\x65quityLikeShare\x12\x36\n\x17\x61verage_entry_valuation\x18\x03 \x01(\tR\x15\x61verageEntryValuation\"\xc8\x01\n\x15PriceMonitoringBounds\x12&\n\x0fmin_valid_price\x18\x01 \x01(\x04R\rminValidPrice\x12&\n\x0fmax_valid_price\x18\x02 \x01(\x04R\rmaxValidPrice\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32\x1c.vega.PriceMonitoringTriggerR\x07trigger\x12\'\n\x0freference_price\x18\x04 \x01(\x01R\x0ereferencePrice\"Q\n\x0b\x45rrorDetail\x12\x12\n\x04\x63ode\x18\x01 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x14\n\x05inner\x18\x03 \x01(\tR\x05inner\":\n\x10NetworkParameter\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"}\n\x0eLiquidityOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x1e\n\nproportion\x18\x02 \x01(\rR\nproportion\x12\x16\n\x06offset\x18\x03 \x01(\x03R\x06offset\"s\n\x17LiquidityOrderReference\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12=\n\x0fliquidity_order\x18\x02 \x01(\x0b\x32\x14.vega.LiquidityOrderR\x0eliquidityOrder\"\xda\x04\n\x12LiquidityProvision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1d\n\ncreated_at\x18\x03 \x01(\x03R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x04 \x01(\x03R\tupdatedAt\x12#\n\tmarket_id\x18\x05 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x06 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x07 \x01(\tR\x03\x66\x65\x65\x12\x33\n\x05sells\x18\x08 \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x05sells\x12\x31\n\x04\x62uys\x18\t \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x04\x62uys\x12\x18\n\x07version\x18\n \x01(\tR\x07version\x12\x37\n\x06status\x18\x0b \x01(\x0e\x32\x1f.vega.LiquidityProvision.StatusR\x06status\x12\x1c\n\treference\x18\x0c \x01(\tR\treference\"\x9d\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_STOPPED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x13\n\x0fSTATUS_REJECTED\x10\x04\x12\x15\n\x11STATUS_UNDEPLOYED\x10\x05\x12\x12\n\x0eSTATUS_PENDING\x10\x06\"\xd1\x01\n\x0e\x45thereumConfig\x12\x1d\n\nnetwork_id\x18\x01 \x01(\tR\tnetworkId\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12%\n\x0e\x62ridge_address\x18\x03 \x01(\tR\rbridgeAddress\x12$\n\rconfirmations\x18\x04 \x01(\rR\rconfirmations\x12\x38\n\x18staking_bridge_addresses\x18\x05 \x03(\tR\x16stakingBridgeAddresses\"\x8b\x01\n\x0f\x45pochTimestamps\x12\x1d\n\nstart_time\x18\x01 \x01(\x03R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x02 \x01(\x03R\x07\x65ndTime\x12\x1f\n\x0b\x66irst_block\x18\x03 \x01(\x04R\nfirstBlock\x12\x1d\n\nlast_block\x18\x04 \x01(\x04R\tlastBlock\"\xb8\x01\n\x05\x45poch\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12=\n\ntimestamps\x18\x02 \x01(\x0b\x32\x15.vega.EpochTimestampsB\x06\xe2\xdf\x1f\x02 \x01R\ntimestamps\x12*\n\nvalidators\x18\x03 \x03(\x0b\x32\n.vega.NodeR\nvalidators\x12\x32\n\x0b\x64\x65legations\x18\x04 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"\x96\x01\n\x12\x45pochParticipation\x12)\n\x05\x65poch\x18\x01 \x01(\x0b\x32\x0b.vega.EpochB\x06\xe2\xdf\x1f\x02X\x01R\x05\x65poch\x12\x18\n\x07offline\x18\x02 \x01(\x04R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x04R\x06online\x12#\n\rtotal_rewards\x18\x04 \x01(\x01R\x0ctotalRewards\"S\n\tEpochData\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n\x07offline\x18\x02 \x01(\x05R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x05R\x06online\"\xe0\x03\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n\x07pub_key\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12\x19\n\x08info_url\x18\x03 \x01(\tR\x07infoUrl\x12\x1a\n\x08location\x18\x04 \x01(\tR\x08location\x12,\n\x12staked_by_operator\x18\x05 \x01(\tR\x10stakedByOperator\x12.\n\x13staked_by_delegates\x18\x06 \x01(\tR\x11stakedByDelegates\x12!\n\x0cstaked_total\x18\x07 \x01(\tR\x0bstakedTotal\x12,\n\x12max_intended_stake\x18\x08 \x01(\tR\x10maxIntendedStake\x12#\n\rpending_stake\x18\t \x01(\tR\x0cpendingStake\x12\x36\n\nepoch_data\x18\n \x01(\x0b\x32\x0f.vega.EpochDataB\x06\xe2\xdf\x1f\x02 \x01R\tepochData\x12\x30\n\x06status\x18\x0b \x01(\x0e\x32\x10.vega.NodeStatusB\x06\xe2\xdf\x1f\x02 \x01R\x06status\x12\x32\n\x0b\x64\x65lagations\x18\x0c \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65lagations\"\xb8\x01\n\x08NodeData\x12!\n\x0cstaked_total\x18\x01 \x01(\tR\x0bstakedTotal\x12\x1f\n\x0btotal_nodes\x18\x02 \x01(\rR\ntotalNodes\x12%\n\x0einactive_nodes\x18\x03 \x01(\rR\rinactiveNodes\x12)\n\x10validating_nodes\x18\x04 \x01(\rR\x0fvalidatingNodes\x12\x16\n\x06uptime\x18\x05 \x01(\x02R\x06uptime\"p\n\nDelegation\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc4\x01\n\rRewardDetails\x12\x19\n\x08\x61sset_id\x18\x01 \x01(\tR\x07\x61ssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05\x65poch\x18\x03 \x01(\x04R\x05\x65poch\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12.\n\x13percentage_of_total\x18\x05 \x01(\tR\x11percentageOfTotal\x12\x1f\n\x0breceived_at\x18\x06 \x01(\x03R\nreceivedAt\"\x83\x01\n\x14RewardPerAssetDetail\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\x12-\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x13.vega.RewardDetailsR\x07\x64\x65tails\x12&\n\x0ftotal_for_asset\x18\x03 \x01(\tR\rtotalForAsset*9\n\x04Side\x12\x14\n\x10SIDE_UNSPECIFIED\x10\x00\x12\x0c\n\x08SIDE_BUY\x10\x01\x12\r\n\tSIDE_SELL\x10\x02*\x98\x01\n\x08Interval\x12\x18\n\x14INTERVAL_UNSPECIFIED\x10\x00\x12\x10\n\x0cINTERVAL_I1M\x10<\x12\x11\n\x0cINTERVAL_I5M\x10\xac\x02\x12\x12\n\rINTERVAL_I15M\x10\x84\x07\x12\x11\n\x0cINTERVAL_I1H\x10\x90\x1c\x12\x12\n\x0cINTERVAL_I6H\x10\xe0\xa8\x01\x12\x12\n\x0cINTERVAL_I1D\x10\x80\xa3\x05*\xa3\x01\n\x0e\x41uctionTrigger\x12\x1f\n\x1b\x41UCTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41UCTION_TRIGGER_BATCH\x10\x01\x12\x1b\n\x17\x41UCTION_TRIGGER_OPENING\x10\x02\x12\x19\n\x15\x41UCTION_TRIGGER_PRICE\x10\x03\x12\x1d\n\x19\x41UCTION_TRIGGER_LIQUIDITY\x10\x04*\x8b\x01\n\x0fPeggedReference\x12 \n\x1cPEGGED_REFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14PEGGED_REFERENCE_MID\x10\x01\x12\x1d\n\x19PEGGED_REFERENCE_BEST_BID\x10\x02\x12\x1d\n\x19PEGGED_REFERENCE_BEST_ASK\x10\x03*\xf8\x0f\n\nOrderError\x12\x1b\n\x17ORDER_ERROR_UNSPECIFIED\x10\x00\x12!\n\x1dORDER_ERROR_INVALID_MARKET_ID\x10\x01\x12 \n\x1cORDER_ERROR_INVALID_ORDER_ID\x10\x02\x12\x1f\n\x1bORDER_ERROR_OUT_OF_SEQUENCE\x10\x03\x12&\n\"ORDER_ERROR_INVALID_REMAINING_SIZE\x10\x04\x12\x1c\n\x18ORDER_ERROR_TIME_FAILURE\x10\x05\x12\x1f\n\x1bORDER_ERROR_REMOVAL_FAILURE\x10\x06\x12+\n\'ORDER_ERROR_INVALID_EXPIRATION_DATETIME\x10\x07\x12\'\n#ORDER_ERROR_INVALID_ORDER_REFERENCE\x10\x08\x12 \n\x1cORDER_ERROR_EDIT_NOT_ALLOWED\x10\t\x12\x1d\n\x19ORDER_ERROR_AMEND_FAILURE\x10\n\x12\x19\n\x15ORDER_ERROR_NOT_FOUND\x10\x0b\x12 \n\x1cORDER_ERROR_INVALID_PARTY_ID\x10\x0c\x12\x1d\n\x19ORDER_ERROR_MARKET_CLOSED\x10\r\x12#\n\x1fORDER_ERROR_MARGIN_CHECK_FAILED\x10\x0e\x12\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUNT\x10\x0f\x12\x1e\n\x1aORDER_ERROR_INTERNAL_ERROR\x10\x10\x12\x1c\n\x18ORDER_ERROR_INVALID_SIZE\x10\x11\x12#\n\x1fORDER_ERROR_INVALID_PERSISTENCE\x10\x12\x12\x1c\n\x18ORDER_ERROR_INVALID_TYPE\x10\x13\x12\x1c\n\x18ORDER_ERROR_SELF_TRADING\x10\x14\x12.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\x10\x15\x12%\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\x10\x16\x12%\n!ORDER_ERROR_INVALID_TIME_IN_FORCE\x10\x17\x12+\n\'ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\x10\x18\x12\x33\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\x10\x19\x12\x34\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\x10\x1a\x12)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT\x10\x1b\x12,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\x10\x1c\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\x10\x1d\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN\x10\x1e\x12,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\x10\x1f\x12\x34\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION\x10 \x12\x34\n0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\x10!\x12#\n\x1fORDER_ERROR_MUST_BE_LIMIT_ORDER\x10\"\x12\"\n\x1eORDER_ERROR_MUST_BE_GTT_OR_GTC\x10#\x12\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PRICE\x10$\x12\x33\n/ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE\x10%\x12\x34\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO\x10&\x12-\n)ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\x10\'\x12\x37\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO\x10(\x12\x34\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE\x10)\x12\x30\n,ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\x10*\x12*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE\x10+\x12\x45\nAORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER\x10,\x12.\n*ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER\x10-\x12\x35\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER\x10.\x12\x38\n4ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\x10/*\x82\x01\n\x0b\x43hainStatus\x12\x1c\n\x18\x43HAIN_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43HAIN_STATUS_DISCONNECTED\x10\x01\x12\x1a\n\x16\x43HAIN_STATUS_REPLAYING\x10\x02\x12\x1a\n\x16\x43HAIN_STATUS_CONNECTED\x10\x03*\x90\x03\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNT_TYPE_INSURANCE\x10\x01\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_SETTLEMENT\x10\x02\x12\x17\n\x13\x41\x43\x43OUNT_TYPE_MARGIN\x10\x03\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_GENERAL\x10\x04\x12$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\x10\x05\x12\x1f\n\x1b\x41\x43\x43OUNT_TYPE_FEES_LIQUIDITY\x10\x06\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_FEES_MAKER\x10\x07\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_LOCK_WITHDRAW\x10\x08\x12\x15\n\x11\x41\x43\x43OUNT_TYPE_BOND\x10\t\x12\x19\n\x15\x41\x43\x43OUNT_TYPE_EXTERNAL\x10\n\x12!\n\x1d\x41\x43\x43OUNT_TYPE_GLOBAL_INSURANCE\x10\x0b\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_GLOBAL_REWARD\x10\x0c*\xd3\x05\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12TRANSFER_TYPE_LOSS\x10\x01\x12\x15\n\x11TRANSFER_TYPE_WIN\x10\x02\x12\x17\n\x13TRANSFER_TYPE_CLOSE\x10\x03\x12\x1a\n\x16TRANSFER_TYPE_MTM_LOSS\x10\x04\x12\x19\n\x15TRANSFER_TYPE_MTM_WIN\x10\x05\x12\x1c\n\x18TRANSFER_TYPE_MARGIN_LOW\x10\x06\x12\x1d\n\x19TRANSFER_TYPE_MARGIN_HIGH\x10\x07\x12$\n TRANSFER_TYPE_MARGIN_CONFISCATED\x10\x08\x12\x1f\n\x1bTRANSFER_TYPE_MAKER_FEE_PAY\x10\t\x12#\n\x1fTRANSFER_TYPE_MAKER_FEE_RECEIVE\x10\n\x12(\n$TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\x10\x0b\x12/\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE\x10\x0c\x12#\n\x1fTRANSFER_TYPE_LIQUIDITY_FEE_PAY\x10\r\x12*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\x10\x0e\x12\x1a\n\x16TRANSFER_TYPE_BOND_LOW\x10\x0f\x12\x1b\n\x17TRANSFER_TYPE_BOND_HIGH\x10\x10\x12\x1f\n\x1bTRANSFER_TYPE_WITHDRAW_LOCK\x10\x11\x12\x1a\n\x16TRANSFER_TYPE_WITHDRAW\x10\x12\x12\x19\n\x15TRANSFER_TYPE_DEPOSIT\x10\x13\x12\x1f\n\x1bTRANSFER_TYPE_BOND_SLASHING\x10\x14\x12\x1e\n\x1aTRANSFER_TYPE_STAKE_REWARD\x10\x15*c\n\nNodeStatus\x12\x1b\n\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15NODE_STATUS_VALIDATOR\x10\x01\x12\x1d\n\x19NODE_STATUS_NON_VALIDATOR\x10\x02\x42\x37\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' , - dependencies=[github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,]) + dependencies=[github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,]) _SIDE = _descriptor.EnumDescriptor( name='Side', @@ -51,8 +52,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10821, - serialized_end=10878, + serialized_start=10928, + serialized_end=10985, ) _sym_db.RegisterEnumDescriptor(_SIDE) @@ -102,8 +103,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10881, - serialized_end=11033, + serialized_start=10988, + serialized_end=11140, ) _sym_db.RegisterEnumDescriptor(_INTERVAL) @@ -143,8 +144,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11036, - serialized_end=11199, + serialized_start=11143, + serialized_end=11306, ) _sym_db.RegisterEnumDescriptor(_AUCTIONTRIGGER) @@ -179,8 +180,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11202, - serialized_end=11341, + serialized_start=11309, + serialized_end=11448, ) _sym_db.RegisterEnumDescriptor(_PEGGEDREFERENCE) @@ -435,8 +436,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11344, - serialized_end=13384, + serialized_start=11451, + serialized_end=13491, ) _sym_db.RegisterEnumDescriptor(_ORDERERROR) @@ -471,8 +472,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13387, - serialized_end=13517, + serialized_start=13494, + serialized_end=13624, ) _sym_db.RegisterEnumDescriptor(_CHAINSTATUS) @@ -552,8 +553,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13520, - serialized_end=13920, + serialized_start=13627, + serialized_end=14027, ) _sym_db.RegisterEnumDescriptor(_ACCOUNTTYPE) @@ -678,12 +679,43 @@ ], containing_type=None, serialized_options=None, - serialized_start=13923, - serialized_end=14646, + serialized_start=14030, + serialized_end=14753, ) _sym_db.RegisterEnumDescriptor(_TRANSFERTYPE) TransferType = enum_type_wrapper.EnumTypeWrapper(_TRANSFERTYPE) +_NODESTATUS = _descriptor.EnumDescriptor( + name='NodeStatus', + full_name='vega.NodeStatus', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='NODE_STATUS_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='NODE_STATUS_VALIDATOR', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='NODE_STATUS_NON_VALIDATOR', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=14755, + serialized_end=14854, +) +_sym_db.RegisterEnumDescriptor(_NODESTATUS) + +NodeStatus = enum_type_wrapper.EnumTypeWrapper(_NODESTATUS) SIDE_UNSPECIFIED = 0 SIDE_BUY = 1 SIDE_SELL = 2 @@ -790,6 +822,9 @@ TRANSFER_TYPE_DEPOSIT = 19 TRANSFER_TYPE_BOND_SLASHING = 20 TRANSFER_TYPE_STAKE_REWARD = 21 +NODE_STATUS_UNSPECIFIED = 0 +NODE_STATUS_VALIDATOR = 1 +NODE_STATUS_NON_VALIDATOR = 2 _ORDER_TIMEINFORCE = _descriptor.EnumDescriptor( @@ -837,8 +872,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1488, - serialized_end=1670, + serialized_start=1554, + serialized_end=1736, ) _sym_db.RegisterEnumDescriptor(_ORDER_TIMEINFORCE) @@ -872,8 +907,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1672, - serialized_end=1751, + serialized_start=1738, + serialized_end=1817, ) _sym_db.RegisterEnumDescriptor(_ORDER_TYPE) @@ -932,8 +967,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1754, - serialized_end=1955, + serialized_start=1820, + serialized_end=2021, ) _sym_db.RegisterEnumDescriptor(_ORDER_STATUS) @@ -967,8 +1002,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2895, - serialized_end=3006, + serialized_start=2961, + serialized_end=3072, ) _sym_db.RegisterEnumDescriptor(_TRADE_TYPE) @@ -1002,8 +1037,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=5792, - serialized_end=5885, + serialized_start=4470, + serialized_end=4563, ) _sym_db.RegisterEnumDescriptor(_DEPOSIT_STATUS) @@ -1037,8 +1072,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=5792, - serialized_end=5885, + serialized_start=4470, + serialized_end=4563, ) _sym_db.RegisterEnumDescriptor(_WITHDRAWAL_STATUS) @@ -1087,8 +1122,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10508, - serialized_end=10665, + serialized_start=8873, + serialized_end=9030, ) _sym_db.RegisterEnumDescriptor(_LIQUIDITYPROVISION_STATUS) @@ -1120,8 +1155,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=91, - serialized_end=120, + serialized_start=105, + serialized_end=134, ) @@ -1152,8 +1187,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=122, - serialized_end=155, + serialized_start=136, + serialized_end=169, ) @@ -1172,6 +1207,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\342\337\037\002 \001', json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='delegations', full_name='vega.Party.delegations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='delegations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -1184,8 +1226,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=157, - serialized_end=188, + serialized_start=171, + serialized_end=254, ) @@ -1230,8 +1272,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=190, - serialized_end=268, + serialized_start=256, + serialized_end=334, ) @@ -1269,8 +1311,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=563, - serialized_end=643, + serialized_start=629, + serialized_end=709, ) _RISKRESULT_PREDICTEDNEXTRISKFACTORSENTRY = _descriptor.Descriptor( @@ -1307,8 +1349,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=645, - serialized_end=738, + serialized_start=711, + serialized_end=804, ) _RISKRESULT = _descriptor.Descriptor( @@ -1359,8 +1401,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=271, - serialized_end=738, + serialized_start=337, + serialized_end=804, ) @@ -1398,8 +1440,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=740, - serialized_end=830, + serialized_start=806, + serialized_end=896, ) @@ -1559,8 +1601,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=833, - serialized_end=1955, + serialized_start=899, + serialized_end=2021, ) @@ -1591,8 +1633,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1957, - serialized_end=2023, + serialized_start=2023, + serialized_end=2089, ) @@ -1637,8 +1679,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2026, - serialized_end=2186, + serialized_start=2092, + serialized_end=2252, ) @@ -1697,8 +1739,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2189, - serialized_end=2400, + serialized_start=2255, + serialized_end=2466, ) @@ -1828,8 +1870,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2403, - serialized_end=3006, + serialized_start=2469, + serialized_end=3072, ) @@ -1874,8 +1916,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3008, - serialized_end=3126, + serialized_start=3074, + serialized_end=3192, ) @@ -1906,8 +1948,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3128, - serialized_end=3175, + serialized_start=3194, + serialized_end=3241, ) @@ -1987,8 +2029,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3178, - serialized_end=3392, + serialized_start=3244, + serialized_end=3458, ) @@ -2033,8 +2075,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3394, - serialized_end=3494, + serialized_start=3460, + serialized_end=3560, ) @@ -2086,8 +2128,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3497, - serialized_end=3654, + serialized_start=3563, + serialized_end=3720, ) @@ -2139,8 +2181,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3657, - serialized_end=3820, + serialized_start=3723, + serialized_end=3886, ) @@ -2213,8 +2255,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3823, - serialized_end=4075, + serialized_start=3889, + serialized_end=4141, ) @@ -2252,257 +2294,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4077, - serialized_end=4138, -) - - -_STATISTICS = _descriptor.Descriptor( - name='Statistics', - full_name='vega.Statistics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='block_height', full_name='vega.Statistics.block_height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blockHeight', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='backlog_length', full_name='vega.Statistics.backlog_length', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='backlogLength', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_peers', full_name='vega.Statistics.total_peers', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalPeers', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='genesis_time', full_name='vega.Statistics.genesis_time', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='genesisTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='current_time', full_name='vega.Statistics.current_time', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='currentTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vega_time', full_name='vega.Statistics.vega_time', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='vegaTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='status', full_name='vega.Statistics.status', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='tx_per_block', full_name='vega.Statistics.tx_per_block', index=7, - number=8, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='txPerBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='average_tx_bytes', full_name='vega.Statistics.average_tx_bytes', index=8, - number=9, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='averageTxBytes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='average_orders_per_block', full_name='vega.Statistics.average_orders_per_block', index=9, - number=10, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='averageOrdersPerBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='trades_per_second', full_name='vega.Statistics.trades_per_second', index=10, - number=11, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='tradesPerSecond', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='orders_per_second', full_name='vega.Statistics.orders_per_second', index=11, - number=12, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='ordersPerSecond', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_markets', full_name='vega.Statistics.total_markets', index=12, - number=13, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalMarkets', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_amend_order', full_name='vega.Statistics.total_amend_order', index=13, - number=16, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalAmendOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_cancel_order', full_name='vega.Statistics.total_cancel_order', index=14, - number=17, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalCancelOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_create_order', full_name='vega.Statistics.total_create_order', index=15, - number=18, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalCreateOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_orders', full_name='vega.Statistics.total_orders', index=16, - number=19, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalOrders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_trades', full_name='vega.Statistics.total_trades', index=17, - number=20, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='totalTrades', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='order_subscriptions', full_name='vega.Statistics.order_subscriptions', index=18, - number=21, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='orderSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='trade_subscriptions', full_name='vega.Statistics.trade_subscriptions', index=19, - number=22, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='tradeSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='candle_subscriptions', full_name='vega.Statistics.candle_subscriptions', index=20, - number=23, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='candleSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_depth_subscriptions', full_name='vega.Statistics.market_depth_subscriptions', index=21, - number=24, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketDepthSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='positions_subscriptions', full_name='vega.Statistics.positions_subscriptions', index=22, - number=25, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='positionsSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='account_subscriptions', full_name='vega.Statistics.account_subscriptions', index=23, - number=26, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='accountSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_data_subscriptions', full_name='vega.Statistics.market_data_subscriptions', index=24, - number=27, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketDataSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='app_version_hash', full_name='vega.Statistics.app_version_hash', index=25, - number=28, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='appVersionHash', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='app_version', full_name='vega.Statistics.app_version', index=26, - number=29, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='appVersion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='chain_version', full_name='vega.Statistics.chain_version', index=27, - number=30, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='chainVersion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='block_duration', full_name='vega.Statistics.block_duration', index=28, - number=31, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blockDuration', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='uptime', full_name='vega.Statistics.uptime', index=29, - number=32, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='uptime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='chain_id', full_name='vega.Statistics.chain_id', index=30, - number=33, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='chainId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='market_depth_updates_subscriptions', full_name='vega.Statistics.market_depth_updates_subscriptions', index=31, - number=34, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='marketDepthUpdatesSubscriptions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4141, - serialized_end=5526, + serialized_start=4143, + serialized_end=4204, ) @@ -2583,8 +2376,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=5529, - serialized_end=5885, + serialized_start=4207, + serialized_end=4563, ) @@ -2686,8 +2479,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=5888, - serialized_end=6331, + serialized_start=4566, + serialized_end=5009, ) @@ -2723,8 +2516,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=6333, - serialized_end=6401, + serialized_start=5011, + serialized_end=5079, ) @@ -2755,8 +2548,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=6403, - serialized_end=6464, + serialized_start=5081, + serialized_end=5142, ) @@ -2822,8 +2615,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=6467, - serialized_end=6630, + serialized_start=5145, + serialized_end=5308, ) @@ -2861,8 +2654,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=6632, - serialized_end=6695, + serialized_start=5310, + serialized_end=5373, ) @@ -2914,8 +2707,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=6698, - serialized_end=6848, + serialized_start=5376, + serialized_end=5526, ) @@ -2981,8 +2774,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=6851, - serialized_end=7071, + serialized_start=5529, + serialized_end=5749, ) @@ -3048,8 +2841,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=7074, - serialized_end=7257, + serialized_start=5752, + serialized_end=5935, ) @@ -3087,8 +2880,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=7259, - serialized_end=7343, + serialized_start=5937, + serialized_end=6021, ) @@ -3126,8 +2919,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=7345, - serialized_end=7463, + serialized_start=6023, + serialized_end=6141, ) @@ -3207,8 +3000,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=7466, - serialized_end=7767, + serialized_start=6144, + serialized_end=6445, ) @@ -3414,8 +3207,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=7770, - serialized_end=9005, + serialized_start=6448, + serialized_end=7683, ) @@ -3460,8 +3253,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9008, - serialized_end=9157, + serialized_start=7686, + serialized_end=7835, ) @@ -3513,8 +3306,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9160, - serialized_end=9360, + serialized_start=7838, + serialized_end=8038, ) @@ -3559,54 +3352,33 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9362, - serialized_end=9443, + serialized_start=8040, + serialized_end=8121, ) -_TRANSACTION = _descriptor.Descriptor( - name='Transaction', - full_name='vega.Transaction', +_NETWORKPARAMETER = _descriptor.Descriptor( + name='NetworkParameter', + full_name='vega.NetworkParameter', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='input_data', full_name='vega.Transaction.input_data', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='inputData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='nonce', full_name='vega.Transaction.nonce', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='nonce', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='block_height', full_name='vega.Transaction.block_height', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, json_name='blockHeight', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='address', full_name='vega.Transaction.address', index=3, - number=1001, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='key', full_name='vega.NetworkParameter.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='address', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='key', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='pub_key', full_name='vega.Transaction.pub_key', index=4, - number=1002, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='value', full_name='vega.NetworkParameter.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='pubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='value', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3618,46 +3390,41 @@ syntax='proto3', extension_ranges=[], oneofs=[ - _descriptor.OneofDescriptor( - name='from', full_name='vega.Transaction.from', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), ], - serialized_start=9446, - serialized_end=9612, + serialized_start=8123, + serialized_end=8181, ) -_SIGNATURE = _descriptor.Descriptor( - name='Signature', - full_name='vega.Signature', +_LIQUIDITYORDER = _descriptor.Descriptor( + name='LiquidityOrder', + full_name='vega.LiquidityOrder', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='sig', full_name='vega.Signature.sig', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='reference', full_name='vega.LiquidityOrder.reference', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='sig', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='algo', full_name='vega.Signature.algo', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='proportion', full_name='vega.LiquidityOrder.proportion', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='algo', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='proportion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='version', full_name='vega.Signature.version', index=2, - number=3, type=13, cpp_type=3, label=1, + name='offset', full_name='vega.LiquidityOrder.offset', index=2, + number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='version', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='offset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3670,33 +3437,33 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9614, - serialized_end=9689, + serialized_start=8183, + serialized_end=8308, ) -_SIGNEDBUNDLE = _descriptor.Descriptor( - name='SignedBundle', - full_name='vega.SignedBundle', +_LIQUIDITYORDERREFERENCE = _descriptor.Descriptor( + name='LiquidityOrderReference', + full_name='vega.LiquidityOrderReference', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='tx', full_name='vega.SignedBundle.tx', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='order_id', full_name='vega.LiquidityOrderReference.order_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='tx', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sig', full_name='vega.SignedBundle.sig', index=1, + name='liquidity_order', full_name='vega.LiquidityOrderReference.liquidity_order', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='sig', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='liquidityOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3709,38 +3476,109 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9691, - serialized_end=9756, + serialized_start=8310, + serialized_end=8425, ) -_NETWORKPARAMETER = _descriptor.Descriptor( - name='NetworkParameter', - full_name='vega.NetworkParameter', +_LIQUIDITYPROVISION = _descriptor.Descriptor( + name='LiquidityProvision', + full_name='vega.LiquidityProvision', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='key', full_name='vega.NetworkParameter.key', index=0, + name='id', full_name='vega.LiquidityProvision.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='key', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='value', full_name='vega.NetworkParameter.value', index=1, + name='party_id', full_name='vega.LiquidityProvision.party_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='value', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='vega.LiquidityProvision.created_at', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='createdAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='updated_at', full_name='vega.LiquidityProvision.updated_at', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='updatedAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='market_id', full_name='vega.LiquidityProvision.market_id', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='commitment_amount', full_name='vega.LiquidityProvision.commitment_amount', index=5, + number=6, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='commitmentAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fee', full_name='vega.LiquidityProvision.fee', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='fee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='sells', full_name='vega.LiquidityProvision.sells', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='sells', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='buys', full_name='vega.LiquidityProvision.buys', index=8, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='buys', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='version', full_name='vega.LiquidityProvision.version', index=9, + number=10, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='version', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='vega.LiquidityProvision.status', index=10, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='reference', full_name='vega.LiquidityProvision.reference', index=11, + number=12, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ + _LIQUIDITYPROVISION_STATUS, ], serialized_options=None, is_extendable=False, @@ -3748,40 +3586,107 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9758, - serialized_end=9816, + serialized_start=8428, + serialized_end=9030, ) -_LIQUIDITYORDER = _descriptor.Descriptor( - name='LiquidityOrder', - full_name='vega.LiquidityOrder', +_ETHEREUMCONFIG = _descriptor.Descriptor( + name='EthereumConfig', + full_name='vega.EthereumConfig', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='reference', full_name='vega.LiquidityOrder.reference', index=0, - number=1, type=14, cpp_type=8, label=1, + name='network_id', full_name='vega.EthereumConfig.network_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='networkId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='chain_id', full_name='vega.EthereumConfig.chain_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='chainId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='bridge_address', full_name='vega.EthereumConfig.bridge_address', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='bridgeAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='confirmations', full_name='vega.EthereumConfig.confirmations', index=3, + number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='confirmations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='proportion', full_name='vega.LiquidityOrder.proportion', index=1, - number=2, type=13, cpp_type=3, label=1, + name='staking_bridge_addresses', full_name='vega.EthereumConfig.staking_bridge_addresses', index=4, + number=5, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='stakingBridgeAddresses', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=9033, + serialized_end=9242, +) + + +_EPOCHTIMESTAMPS = _descriptor.Descriptor( + name='EpochTimestamps', + full_name='vega.EpochTimestamps', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='start_time', full_name='vega.EpochTimestamps.start_time', index=0, + number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='proportion', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='startTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='offset', full_name='vega.LiquidityOrder.offset', index=2, - number=3, type=3, cpp_type=2, label=1, + name='end_time', full_name='vega.EpochTimestamps.end_time', index=1, + number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='offset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='endTime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='first_block', full_name='vega.EpochTimestamps.first_block', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='firstBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='last_block', full_name='vega.EpochTimestamps.last_block', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='lastBlock', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3794,33 +3699,47 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9818, - serialized_end=9943, + serialized_start=9245, + serialized_end=9384, ) -_LIQUIDITYORDERREFERENCE = _descriptor.Descriptor( - name='LiquidityOrderReference', - full_name='vega.LiquidityOrderReference', +_EPOCH = _descriptor.Descriptor( + name='Epoch', + full_name='vega.Epoch', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='order_id', full_name='vega.LiquidityOrderReference.order_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='seq', full_name='vega.Epoch.seq', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='orderId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='seq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='liquidity_order', full_name='vega.LiquidityOrderReference.liquidity_order', index=1, + name='timestamps', full_name='vega.Epoch.timestamps', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='liquidityOrder', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002 \001', json_name='timestamps', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='validators', full_name='vega.Epoch.validators', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='validators', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='delegations', full_name='vega.Epoch.delegations', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='delegations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3833,109 +3752,267 @@ extension_ranges=[], oneofs=[ ], - serialized_start=9945, - serialized_end=10060, + serialized_start=9387, + serialized_end=9571, ) -_LIQUIDITYPROVISION = _descriptor.Descriptor( - name='LiquidityProvision', - full_name='vega.LiquidityProvision', +_EPOCHPARTICIPATION = _descriptor.Descriptor( + name='EpochParticipation', + full_name='vega.EpochParticipation', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='vega.LiquidityProvision.id', index=0, + name='epoch', full_name='vega.EpochParticipation.epoch', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\342\337\037\002X\001', json_name='epoch', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='offline', full_name='vega.EpochParticipation.offline', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='offline', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='online', full_name='vega.EpochParticipation.online', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='online', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_rewards', full_name='vega.EpochParticipation.total_rewards', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalRewards', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=9574, + serialized_end=9724, +) + + +_EPOCHDATA = _descriptor.Descriptor( + name='EpochData', + full_name='vega.EpochData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='total', full_name='vega.EpochData.total', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='total', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='offline', full_name='vega.EpochData.offline', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='offline', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='online', full_name='vega.EpochData.online', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='online', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=9726, + serialized_end=9809, +) + + +_NODE = _descriptor.Descriptor( + name='Node', + full_name='vega.Node', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='vega.Node.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='party_id', full_name='vega.LiquidityProvision.party_id', index=1, + name='pub_key', full_name='vega.Node.pub_key', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002X\001', json_name='pubKey', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='created_at', full_name='vega.LiquidityProvision.created_at', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + name='info_url', full_name='vega.Node.info_url', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='createdAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='infoUrl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='updated_at', full_name='vega.LiquidityProvision.updated_at', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + name='location', full_name='vega.Node.location', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='updatedAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='location', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='market_id', full_name='vega.LiquidityProvision.market_id', index=4, + name='staked_by_operator', full_name='vega.Node.staked_by_operator', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='stakedByOperator', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='commitment_amount', full_name='vega.LiquidityProvision.commitment_amount', index=5, - number=6, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + name='staked_by_delegates', full_name='vega.Node.staked_by_delegates', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='commitmentAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='stakedByDelegates', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='fee', full_name='vega.LiquidityProvision.fee', index=6, + name='staked_total', full_name='vega.Node.staked_total', index=6, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='fee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='stakedTotal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sells', full_name='vega.LiquidityProvision.sells', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='max_intended_stake', full_name='vega.Node.max_intended_stake', index=7, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='sells', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='maxIntendedStake', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='buys', full_name='vega.LiquidityProvision.buys', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='pending_stake', full_name='vega.Node.pending_stake', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='buys', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='pendingStake', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='version', full_name='vega.LiquidityProvision.version', index=9, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='epoch_data', full_name='vega.Node.epoch_data', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='version', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002 \001', json_name='epochData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='status', full_name='vega.LiquidityProvision.status', index=10, + name='status', full_name='vega.Node.status', index=10, number=11, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\342\337\037\002 \001', json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='reference', full_name='vega.LiquidityProvision.reference', index=11, - number=12, type=9, cpp_type=9, label=1, + name='delagations', full_name='vega.Node.delagations', index=11, + number=12, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='delagations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=9812, + serialized_end=10292, +) + + +_NODEDATA = _descriptor.Descriptor( + name='NodeData', + full_name='vega.NodeData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='staked_total', full_name='vega.NodeData.staked_total', index=0, + number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='reference', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='stakedTotal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_nodes', full_name='vega.NodeData.total_nodes', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalNodes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='inactive_nodes', full_name='vega.NodeData.inactive_nodes', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='inactiveNodes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='validating_nodes', full_name='vega.NodeData.validating_nodes', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='validatingNodes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='uptime', full_name='vega.NodeData.uptime', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='uptime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ - _LIQUIDITYPROVISION_STATUS, ], serialized_options=None, is_extendable=False, @@ -3943,47 +4020,114 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10063, - serialized_end=10665, + serialized_start=10295, + serialized_end=10479, ) -_ETHEREUMCONFIG = _descriptor.Descriptor( - name='EthereumConfig', - full_name='vega.EthereumConfig', +_DELEGATION = _descriptor.Descriptor( + name='Delegation', + full_name='vega.Delegation', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='network_id', full_name='vega.EthereumConfig.network_id', index=0, + name='party', full_name='vega.Delegation.party', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='networkId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chain_id', full_name='vega.EthereumConfig.chain_id', index=1, + name='node_id', full_name='vega.Delegation.node_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='chainId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='nodeId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='bridge_address', full_name='vega.EthereumConfig.bridge_address', index=2, + name='amount', full_name='vega.Delegation.amount', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='bridgeAddress', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='confirmations', full_name='vega.EthereumConfig.confirmations', index=3, - number=4, type=13, cpp_type=3, label=1, + name='epoch_seq', full_name='vega.Delegation.epoch_seq', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='epochSeq', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10481, + serialized_end=10593, +) + + +_REWARDDETAILS = _descriptor.Descriptor( + name='RewardDetails', + full_name='vega.RewardDetails', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='asset_id', full_name='vega.RewardDetails.asset_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='assetId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='party_id', full_name='vega.RewardDetails.party_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='epoch', full_name='vega.RewardDetails.epoch', index=2, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, json_name='confirmations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=None, json_name='epoch', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='amount', full_name='vega.RewardDetails.amount', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='percentage_of_total', full_name='vega.RewardDetails.percentage_of_total', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='percentageOfTotal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='received_at', full_name='vega.RewardDetails.received_at', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='receivedAt', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3996,10 +4140,57 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10668, - serialized_end=10819, + serialized_start=10596, + serialized_end=10792, ) + +_REWARDPERASSETDETAIL = _descriptor.Descriptor( + name='RewardPerAssetDetail', + full_name='vega.RewardPerAssetDetail', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='asset', full_name='vega.RewardPerAssetDetail.asset', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='asset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='details', full_name='vega.RewardPerAssetDetail.details', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='details', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='total_for_asset', full_name='vega.RewardPerAssetDetail.total_for_asset', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='totalForAsset', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10795, + serialized_end=10926, +) + +_PARTY.fields_by_name['delegations'].message_type = _DELEGATION _RISKRESULT_RISKFACTORSENTRY.fields_by_name['value'].message_type = _RISKFACTOR _RISKRESULT_RISKFACTORSENTRY.containing_type = _RISKRESULT _RISKRESULT_PREDICTEDNEXTRISKFACTORSENTRY.fields_by_name['value'].message_type = _RISKFACTOR @@ -4031,7 +4222,6 @@ _MARKETDEPTH.fields_by_name['sell'].message_type = _PRICELEVEL _MARKETDEPTHUPDATE.fields_by_name['buy'].message_type = _PRICELEVEL _MARKETDEPTHUPDATE.fields_by_name['sell'].message_type = _PRICELEVEL -_STATISTICS.fields_by_name['status'].enum_type = _CHAINSTATUS _DEPOSIT.fields_by_name['status'].enum_type = _DEPOSIT_STATUS _DEPOSIT_STATUS.containing_type = _DEPOSIT _WITHDRAWAL.fields_by_name['status'].enum_type = _WITHDRAWAL_STATUS @@ -4055,19 +4245,20 @@ _MARKETDATA.fields_by_name['price_monitoring_bounds'].message_type = _PRICEMONITORINGBOUNDS _MARKETDATA.fields_by_name['liquidity_provider_fee_share'].message_type = _LIQUIDITYPROVIDERFEESHARE _PRICEMONITORINGBOUNDS.fields_by_name['trigger'].message_type = markets__pb2._PRICEMONITORINGTRIGGER -_TRANSACTION.oneofs_by_name['from'].fields.append( - _TRANSACTION.fields_by_name['address']) -_TRANSACTION.fields_by_name['address'].containing_oneof = _TRANSACTION.oneofs_by_name['from'] -_TRANSACTION.oneofs_by_name['from'].fields.append( - _TRANSACTION.fields_by_name['pub_key']) -_TRANSACTION.fields_by_name['pub_key'].containing_oneof = _TRANSACTION.oneofs_by_name['from'] -_SIGNEDBUNDLE.fields_by_name['sig'].message_type = _SIGNATURE _LIQUIDITYORDER.fields_by_name['reference'].enum_type = _PEGGEDREFERENCE _LIQUIDITYORDERREFERENCE.fields_by_name['liquidity_order'].message_type = _LIQUIDITYORDER _LIQUIDITYPROVISION.fields_by_name['sells'].message_type = _LIQUIDITYORDERREFERENCE _LIQUIDITYPROVISION.fields_by_name['buys'].message_type = _LIQUIDITYORDERREFERENCE _LIQUIDITYPROVISION.fields_by_name['status'].enum_type = _LIQUIDITYPROVISION_STATUS _LIQUIDITYPROVISION_STATUS.containing_type = _LIQUIDITYPROVISION +_EPOCH.fields_by_name['timestamps'].message_type = _EPOCHTIMESTAMPS +_EPOCH.fields_by_name['validators'].message_type = _NODE +_EPOCH.fields_by_name['delegations'].message_type = _DELEGATION +_EPOCHPARTICIPATION.fields_by_name['epoch'].message_type = _EPOCH +_NODE.fields_by_name['epoch_data'].message_type = _EPOCHDATA +_NODE.fields_by_name['status'].enum_type = _NODESTATUS +_NODE.fields_by_name['delagations'].message_type = _DELEGATION +_REWARDPERASSETDETAIL.fields_by_name['details'].message_type = _REWARDDETAILS DESCRIPTOR.message_types_by_name['Price'] = _PRICE DESCRIPTOR.message_types_by_name['Timestamp'] = _TIMESTAMP DESCRIPTOR.message_types_by_name['Party'] = _PARTY @@ -4087,7 +4278,6 @@ DESCRIPTOR.message_types_by_name['MarketDepthUpdate'] = _MARKETDEPTHUPDATE DESCRIPTOR.message_types_by_name['Position'] = _POSITION DESCRIPTOR.message_types_by_name['PositionTrade'] = _POSITIONTRADE -DESCRIPTOR.message_types_by_name['Statistics'] = _STATISTICS DESCRIPTOR.message_types_by_name['Deposit'] = _DEPOSIT DESCRIPTOR.message_types_by_name['Withdrawal'] = _WITHDRAWAL DESCRIPTOR.message_types_by_name['WithdrawExt'] = _WITHDRAWEXT @@ -4104,14 +4294,20 @@ DESCRIPTOR.message_types_by_name['LiquidityProviderFeeShare'] = _LIQUIDITYPROVIDERFEESHARE DESCRIPTOR.message_types_by_name['PriceMonitoringBounds'] = _PRICEMONITORINGBOUNDS DESCRIPTOR.message_types_by_name['ErrorDetail'] = _ERRORDETAIL -DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION -DESCRIPTOR.message_types_by_name['Signature'] = _SIGNATURE -DESCRIPTOR.message_types_by_name['SignedBundle'] = _SIGNEDBUNDLE DESCRIPTOR.message_types_by_name['NetworkParameter'] = _NETWORKPARAMETER DESCRIPTOR.message_types_by_name['LiquidityOrder'] = _LIQUIDITYORDER DESCRIPTOR.message_types_by_name['LiquidityOrderReference'] = _LIQUIDITYORDERREFERENCE DESCRIPTOR.message_types_by_name['LiquidityProvision'] = _LIQUIDITYPROVISION DESCRIPTOR.message_types_by_name['EthereumConfig'] = _ETHEREUMCONFIG +DESCRIPTOR.message_types_by_name['EpochTimestamps'] = _EPOCHTIMESTAMPS +DESCRIPTOR.message_types_by_name['Epoch'] = _EPOCH +DESCRIPTOR.message_types_by_name['EpochParticipation'] = _EPOCHPARTICIPATION +DESCRIPTOR.message_types_by_name['EpochData'] = _EPOCHDATA +DESCRIPTOR.message_types_by_name['Node'] = _NODE +DESCRIPTOR.message_types_by_name['NodeData'] = _NODEDATA +DESCRIPTOR.message_types_by_name['Delegation'] = _DELEGATION +DESCRIPTOR.message_types_by_name['RewardDetails'] = _REWARDDETAILS +DESCRIPTOR.message_types_by_name['RewardPerAssetDetail'] = _REWARDPERASSETDETAIL DESCRIPTOR.enum_types_by_name['Side'] = _SIDE DESCRIPTOR.enum_types_by_name['Interval'] = _INTERVAL DESCRIPTOR.enum_types_by_name['AuctionTrigger'] = _AUCTIONTRIGGER @@ -4120,6 +4316,7 @@ DESCRIPTOR.enum_types_by_name['ChainStatus'] = _CHAINSTATUS DESCRIPTOR.enum_types_by_name['AccountType'] = _ACCOUNTTYPE DESCRIPTOR.enum_types_by_name['TransferType'] = _TRANSFERTYPE +DESCRIPTOR.enum_types_by_name['NodeStatus'] = _NODESTATUS _sym_db.RegisterFileDescriptor(DESCRIPTOR) Price = _reflection.GeneratedProtocolMessageType('Price', (_message.Message,), { @@ -4271,13 +4468,6 @@ }) _sym_db.RegisterMessage(PositionTrade) -Statistics = _reflection.GeneratedProtocolMessageType('Statistics', (_message.Message,), { - 'DESCRIPTOR' : _STATISTICS, - '__module__' : 'vega_pb2' - # @@protoc_insertion_point(class_scope:vega.Statistics) - }) -_sym_db.RegisterMessage(Statistics) - Deposit = _reflection.GeneratedProtocolMessageType('Deposit', (_message.Message,), { 'DESCRIPTOR' : _DEPOSIT, '__module__' : 'vega_pb2' @@ -4390,27 +4580,6 @@ }) _sym_db.RegisterMessage(ErrorDetail) -Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTION, - '__module__' : 'vega_pb2' - # @@protoc_insertion_point(class_scope:vega.Transaction) - }) -_sym_db.RegisterMessage(Transaction) - -Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), { - 'DESCRIPTOR' : _SIGNATURE, - '__module__' : 'vega_pb2' - # @@protoc_insertion_point(class_scope:vega.Signature) - }) -_sym_db.RegisterMessage(Signature) - -SignedBundle = _reflection.GeneratedProtocolMessageType('SignedBundle', (_message.Message,), { - 'DESCRIPTOR' : _SIGNEDBUNDLE, - '__module__' : 'vega_pb2' - # @@protoc_insertion_point(class_scope:vega.SignedBundle) - }) -_sym_db.RegisterMessage(SignedBundle) - NetworkParameter = _reflection.GeneratedProtocolMessageType('NetworkParameter', (_message.Message,), { 'DESCRIPTOR' : _NETWORKPARAMETER, '__module__' : 'vega_pb2' @@ -4446,10 +4615,78 @@ }) _sym_db.RegisterMessage(EthereumConfig) +EpochTimestamps = _reflection.GeneratedProtocolMessageType('EpochTimestamps', (_message.Message,), { + 'DESCRIPTOR' : _EPOCHTIMESTAMPS, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.EpochTimestamps) + }) +_sym_db.RegisterMessage(EpochTimestamps) + +Epoch = _reflection.GeneratedProtocolMessageType('Epoch', (_message.Message,), { + 'DESCRIPTOR' : _EPOCH, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.Epoch) + }) +_sym_db.RegisterMessage(Epoch) + +EpochParticipation = _reflection.GeneratedProtocolMessageType('EpochParticipation', (_message.Message,), { + 'DESCRIPTOR' : _EPOCHPARTICIPATION, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.EpochParticipation) + }) +_sym_db.RegisterMessage(EpochParticipation) + +EpochData = _reflection.GeneratedProtocolMessageType('EpochData', (_message.Message,), { + 'DESCRIPTOR' : _EPOCHDATA, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.EpochData) + }) +_sym_db.RegisterMessage(EpochData) + +Node = _reflection.GeneratedProtocolMessageType('Node', (_message.Message,), { + 'DESCRIPTOR' : _NODE, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.Node) + }) +_sym_db.RegisterMessage(Node) + +NodeData = _reflection.GeneratedProtocolMessageType('NodeData', (_message.Message,), { + 'DESCRIPTOR' : _NODEDATA, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.NodeData) + }) +_sym_db.RegisterMessage(NodeData) + +Delegation = _reflection.GeneratedProtocolMessageType('Delegation', (_message.Message,), { + 'DESCRIPTOR' : _DELEGATION, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.Delegation) + }) +_sym_db.RegisterMessage(Delegation) + +RewardDetails = _reflection.GeneratedProtocolMessageType('RewardDetails', (_message.Message,), { + 'DESCRIPTOR' : _REWARDDETAILS, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.RewardDetails) + }) +_sym_db.RegisterMessage(RewardDetails) + +RewardPerAssetDetail = _reflection.GeneratedProtocolMessageType('RewardPerAssetDetail', (_message.Message,), { + 'DESCRIPTOR' : _REWARDPERASSETDETAIL, + '__module__' : 'vega_pb2' + # @@protoc_insertion_point(class_scope:vega.RewardPerAssetDetail) + }) +_sym_db.RegisterMessage(RewardPerAssetDetail) + DESCRIPTOR._options = None _PARTY.fields_by_name['id']._options = None _RISKRESULT_RISKFACTORSENTRY._options = None _RISKRESULT_PREDICTEDNEXTRISKFACTORSENTRY._options = None _LIQUIDITYPROVISION.fields_by_name['market_id']._options = None +_EPOCH.fields_by_name['timestamps']._options = None +_EPOCHPARTICIPATION.fields_by_name['epoch']._options = None +_NODE.fields_by_name['pub_key']._options = None +_NODE.fields_by_name['epoch_data']._options = None +_NODE.fields_by_name['status']._options = None # @@protoc_insertion_point(module_scope) diff --git a/grpc/doc/doc.json b/grpc/doc/doc.json index 449466d1..d78f02dc 100644 --- a/grpc/doc/doc.json +++ b/grpc/doc/doc.json @@ -1962,6 +1962,200 @@ ], "services": [] }, + { + "name": "assets.proto", + "description": "", + "package": "vega", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [], + "extensions": [], + "messages": [ + { + "name": "Asset", + "longName": "Asset", + "fullName": "vega.Asset", + "description": "The Vega representation of an external asset", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "id", + "description": "Internal identifier of the asset", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "details", + "description": "The definition of the external source for this asset", + "label": "", + "type": "AssetDetails", + "longType": "AssetDetails", + "fullType": "vega.AssetDetails", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "AssetDetails", + "longName": "AssetDetails", + "fullName": "vega.AssetDetails", + "description": "The Vega representation of an external asset", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": true, + "extensions": [], + "fields": [ + { + "name": "name", + "description": "Name of the asset (e.g: Great British Pound)", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "symbol", + "description": "Symbol of the asset (e.g: GBP)", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_supply", + "description": "Total circulating supply for the asset", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "decimals", + "description": "Number of decimal / precision handled by this asset", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "min_lp_stake", + "description": "Min stake required for this asset from liquidity providers", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "builtin_asset", + "description": "A built-in asset", + "label": "", + "type": "BuiltinAsset", + "longType": "BuiltinAsset", + "fullType": "vega.BuiltinAsset", + "ismap": false, + "isoneof": true, + "oneofdecl": "source", + "defaultValue": "" + }, + { + "name": "erc20", + "description": "An Ethereum ERC20 asset", + "label": "", + "type": "ERC20", + "longType": "ERC20", + "fullType": "vega.ERC20", + "ismap": false, + "isoneof": true, + "oneofdecl": "source", + "defaultValue": "" + } + ] + }, + { + "name": "BuiltinAsset", + "longName": "BuiltinAsset", + "fullName": "vega.BuiltinAsset", + "description": "A Vega internal asset", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "max_faucet_amount_mint", + "description": "Maximum amount that can be requested by a party through the built-in asset faucet at a time", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ERC20", + "longName": "ERC20", + "fullName": "vega.ERC20", + "description": "An ERC20 token based asset, living on the ethereum network", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "contract_address", + "description": "The address of the contract for the token, on the ethereum network", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + } + ], + "services": [] + }, { "name": "vega.proto", "description": "", @@ -2219,6 +2413,29 @@ } ] }, + { + "name": "NodeStatus", + "longName": "NodeStatus", + "fullName": "vega.NodeStatus", + "description": "Node status type", + "values": [ + { + "name": "NODE_STATUS_UNSPECIFIED", + "number": "0", + "description": "" + }, + { + "name": "NODE_STATUS_VALIDATOR", + "number": "1", + "description": "The node is validating" + }, + { + "name": "NODE_STATUS_NON_VALIDATOR", + "number": "2", + "description": "The node is non-validating" + } + ] + }, { "name": "Status", "longName": "Order.Status", @@ -3084,18 +3301,18 @@ ] }, { - "name": "Deposit", - "longName": "Deposit", - "fullName": "vega.Deposit", - "description": "A deposit on to the Vega network", + "name": "Delegation", + "longName": "Delegation", + "fullName": "vega.Delegation", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "id", - "description": "Unique identifier for the deposit", + "name": "party", + "description": "Party which is delegating", "label": "", "type": "string", "longType": "string", @@ -3106,20 +3323,8 @@ "defaultValue": "" }, { - "name": "status", - "description": "Status of the deposit", - "label": "", - "type": "Status", - "longType": "Deposit.Status", - "fullType": "vega.Deposit.Status", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "Party identifier of the user initiating the deposit", + "name": "node_id", + "description": "Node ID", "label": "", "type": "string", "longType": "string", @@ -3130,8 +3335,8 @@ "defaultValue": "" }, { - "name": "asset", - "description": "The Vega asset targeted by this deposit", + "name": "amount", + "description": "Amount delegated", "label": "", "type": "string", "longType": "string", @@ -3142,8 +3347,8 @@ "defaultValue": "" }, { - "name": "amount", - "description": "The amount to be deposited", + "name": "epoch_seq", + "description": "Epoch of delegation", "label": "", "type": "string", "longType": "string", @@ -3152,10 +3357,22 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "Deposit", + "longName": "Deposit", + "fullName": "vega.Deposit", + "description": "A deposit on to the Vega network", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "tx_hash", - "description": "The hash of the transaction from the foreign chain", + "name": "id", + "description": "Unique identifier for the deposit", "label": "", "type": "string", "longType": "string", @@ -3166,8 +3383,68 @@ "defaultValue": "" }, { - "name": "credited_timestamp", - "description": "Timestamp for when the Vega account was updated with the deposit", + "name": "status", + "description": "Status of the deposit", + "label": "", + "type": "Status", + "longType": "Deposit.Status", + "fullType": "vega.Deposit.Status", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "party_id", + "description": "Party identifier of the user initiating the deposit", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "asset", + "description": "The Vega asset targeted by this deposit", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "amount", + "description": "The amount to be deposited", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tx_hash", + "description": "The hash of the transaction from the foreign chain", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "credited_timestamp", + "description": "Timestamp for when the Vega account was updated with the deposit", "label": "", "type": "int64", "longType": "int64", @@ -3192,22 +3469,66 @@ ] }, { - "name": "Erc20WithdrawExt", - "longName": "Erc20WithdrawExt", - "fullName": "vega.Erc20WithdrawExt", - "description": "An extension of data required for the withdraw submissions", + "name": "Epoch", + "longName": "Epoch", + "fullName": "vega.Epoch", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "receiver_address", - "description": "The address into which the bridge will release the funds", + "name": "seq", + "description": "Sequence is used as epoch indentifier", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "timestamps", + "description": "Timestamps for start/end etc", + "label": "", + "type": "EpochTimestamps", + "longType": "EpochTimestamps", + "fullType": "vega.EpochTimestamps", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } + }, + { + "name": "validators", + "description": "Validators that participated in this epoch", + "label": "repeated", + "type": "Node", + "longType": "Node", + "fullType": "vega.Node", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "delegations", + "description": "List of all delegations in epoch", + "label": "repeated", + "type": "Delegation", + "longType": "Delegation", + "fullType": "vega.Delegation", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3216,18 +3537,18 @@ ] }, { - "name": "ErrorDetail", - "longName": "ErrorDetail", - "fullName": "vega.ErrorDetail", - "description": "Represents Vega domain specific error information over gRPC/Protobuf", + "name": "EpochData", + "longName": "EpochData", + "fullName": "vega.EpochData", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "code", - "description": "A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004", + "name": "total", + "description": "Total number of epochs since node was created", "label": "", "type": "int32", "longType": "int32", @@ -3238,24 +3559,24 @@ "defaultValue": "" }, { - "name": "message", - "description": "A message that describes the error in more detail, should describe the problem encountered", + "name": "offline", + "description": "Total number of offline epochs since node was created", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int32", + "longType": "int32", + "fullType": "int32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "inner", - "description": "Any inner error information that could add more context, or be helpful for error reporting", + "name": "online", + "description": "Total number of online epochs since node was created", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int32", + "longType": "int32", + "fullType": "int32", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3264,58 +3585,66 @@ ] }, { - "name": "EthereumConfig", - "longName": "EthereumConfig", - "fullName": "vega.EthereumConfig", - "description": "Ethereum configuration details", + "name": "EpochParticipation", + "longName": "EpochParticipation", + "fullName": "vega.EpochParticipation", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "network_id", - "description": "Network identifier of this Ethereum network", + "name": "epoch", + "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Epoch", + "longType": "Epoch", + "fullType": "vega.Epoch", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "chain_id", - "description": "Chain identifier of this Ethereum network", + "name": "offline", + "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "bridge_address", - "description": "Bridge address for this Ethereum network", + "name": "online", + "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "confirmations", - "description": "Number of confirmations", + "name": "total_rewards", + "description": "", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "double", + "longType": "double", + "fullType": "double", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3324,30 +3653,42 @@ ] }, { - "name": "Fee", - "longName": "Fee", - "fullName": "vega.Fee", - "description": "Represents any fees paid by a party, resulting from a trade", + "name": "EpochTimestamps", + "longName": "EpochTimestamps", + "fullName": "vega.EpochTimestamps", + "description": "Describes in both human readable and block time when an epoch spans", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "maker_fee", - "description": "Fee amount paid to the non-aggressive party of the trade", + "name": "start_time", + "description": "Timestamp of epoch start in nanoseconds, empty if not started\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "infrastructure_fee", - "description": "Fee amount paid for maintaining the Vega infrastructure", + "name": "end_time", + "description": "Timestamp of epoch end in nanoseconds, empty if not started\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "first_block", + "description": "Height of first block in the epoch", "label": "", "type": "uint64", "longType": "uint64", @@ -3358,8 +3699,8 @@ "defaultValue": "" }, { - "name": "liquidity_fee", - "description": "Fee amount paid to market makers", + "name": "last_block", + "description": "Height of last block in the epoch, empty if not ended", "label": "", "type": "uint64", "longType": "uint64", @@ -3372,30 +3713,18 @@ ] }, { - "name": "FinancialAmount", - "longName": "FinancialAmount", - "fullName": "vega.FinancialAmount", - "description": "Asset value information used within a transfer", + "name": "Erc20WithdrawExt", + "longName": "Erc20WithdrawExt", + "fullName": "vega.Erc20WithdrawExt", + "description": "An extension of data required for the withdraw submissions", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "amount", - "description": "A signed integer amount of asset", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "asset", - "description": "Asset identifier", + "name": "receiver_address", + "description": "The address into which the bridge will release the funds", "label": "", "type": "string", "longType": "string", @@ -3408,30 +3737,30 @@ ] }, { - "name": "LedgerEntry", - "longName": "LedgerEntry", - "fullName": "vega.LedgerEntry", - "description": "Represents a ledger entry on Vega", + "name": "ErrorDetail", + "longName": "ErrorDetail", + "fullName": "vega.ErrorDetail", + "description": "Represents Vega domain specific error information over gRPC/Protobuf", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "from_account", - "description": "One or more accounts to transfer from", + "name": "code", + "description": "A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int32", + "longType": "int32", + "fullType": "int32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "to_account", - "description": "One or more accounts to transfer to", + "name": "message", + "description": "A message that describes the error in more detail, should describe the problem encountered", "label": "", "type": "string", "longType": "string", @@ -3442,10 +3771,214 @@ "defaultValue": "" }, { - "name": "amount", - "description": "An amount to transfer", + "name": "inner", + "description": "Any inner error information that could add more context, or be helpful for error reporting", "label": "", - "type": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "EthereumConfig", + "longName": "EthereumConfig", + "fullName": "vega.EthereumConfig", + "description": "Ethereum configuration details", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "network_id", + "description": "Network identifier of this Ethereum network", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "chain_id", + "description": "Chain identifier of this Ethereum network", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "bridge_address", + "description": "Bridge address for this Ethereum network", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "confirmations", + "description": "Number of confirmations", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "staking_bridge_addresses", + "description": "Staking Bridge addresses for the ethereum network", + "label": "repeated", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Fee", + "longName": "Fee", + "fullName": "vega.Fee", + "description": "Represents any fees paid by a party, resulting from a trade", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "maker_fee", + "description": "Fee amount paid to the non-aggressive party of the trade", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "infrastructure_fee", + "description": "Fee amount paid for maintaining the Vega infrastructure", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "liquidity_fee", + "description": "Fee amount paid to market makers", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "FinancialAmount", + "longName": "FinancialAmount", + "fullName": "vega.FinancialAmount", + "description": "Asset value information used within a transfer", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "amount", + "description": "A signed integer amount of asset", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "asset", + "description": "Asset identifier", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "LedgerEntry", + "longName": "LedgerEntry", + "fullName": "vega.LedgerEntry", + "description": "Represents a ledger entry on Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "from_account", + "description": "One or more accounts to transfer from", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "to_account", + "description": "One or more accounts to transfer to", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "amount", + "description": "An amount to transfer", + "label": "", + "type": "uint64", "longType": "uint64", "fullType": "uint64", "ismap": false, @@ -4376,10 +4909,10 @@ ] }, { - "name": "Order", - "longName": "Order", - "fullName": "vega.Order", - "description": "An order can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties", + "name": "Node", + "longName": "Node", + "fullName": "vega.Node", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -4387,7 +4920,7 @@ "fields": [ { "name": "id", - "description": "Unique identifier for the order (set by the system after consensus)", + "description": "The node url eg n01.vega.xyz", "label": "", "type": "string", "longType": "string", @@ -4398,8 +4931,8 @@ "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier for the order", + "name": "pub_key", + "description": "Pub key of the node operator", "label": "", "type": "string", "longType": "string", @@ -4407,11 +4940,19 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "party_id", - "description": "Party identifier for the order", + "name": "info_url", + "description": "URL where I can find out more info on the node", "label": "", "type": "string", "longType": "string", @@ -4422,50 +4963,294 @@ "defaultValue": "" }, { - "name": "side", - "description": "Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)", + "name": "location", + "description": "Country code for the location of the node", "label": "", - "type": "Side", - "longType": "Side", - "fullType": "vega.Side", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "price", - "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "staked_by_operator", + "description": "The amount the node has put up themselves", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "size", - "description": "Size for the order, for example, in a futures market the size equals the number of contracts", + "name": "staked_by_delegates", + "description": "The amount of stake that has been delegated by token holders", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "remaining", - "description": "Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED", + "name": "staked_total", + "description": "Total amount staked on node", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "max_intended_stake", + "description": "Max amount of (wanted) stake, is this a network param or a node param", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "pending_stake", + "description": "Amount of stake on the next epoch", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "epoch_data", + "description": "Informantion about epoch", + "label": "", + "type": "EpochData", + "longType": "EpochData", + "fullType": "vega.EpochData", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } + }, + { + "name": "status", + "description": "Node status", + "label": "", + "type": "NodeStatus", + "longType": "NodeStatus", + "fullType": "vega.NodeStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } + }, + { + "name": "delagations", + "description": "Node's delegations", + "label": "repeated", + "type": "Delegation", + "longType": "Delegation", + "fullType": "vega.Delegation", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "NodeData", + "longName": "NodeData", + "fullName": "vega.NodeData", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "staked_total", + "description": "Total staked amount across all nodes", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_nodes", + "description": "Total number of nodes", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "inactive_nodes", + "description": "Number of inactive nodes", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "validating_nodes", + "description": "Number of nodes validating", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "uptime", + "description": "Total uptime for all epochs across all nodes", + "label": "", + "type": "float", + "longType": "float", + "fullType": "float", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Order", + "longName": "Order", + "fullName": "vega.Order", + "description": "An order can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "id", + "description": "Unique identifier for the order (set by the system after consensus)", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "market_id", + "description": "Market identifier for the order", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "party_id", + "description": "Party identifier for the order", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "side", + "description": "Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)", + "label": "", + "type": "Side", + "longType": "Side", + "fullType": "vega.Side", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "price", + "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "size", + "description": "Size for the order, for example, in a futures market the size equals the number of contracts", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "remaining", + "description": "Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, "oneofdecl": "", "defaultValue": "" }, @@ -4716,6 +5501,18 @@ } ] } + }, + { + "name": "delegations", + "description": "", + "label": "repeated", + "type": "Delegation", + "longType": "Delegation", + "fullType": "vega.Delegation", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, @@ -5020,18 +5817,18 @@ ] }, { - "name": "RiskFactor", - "longName": "RiskFactor", - "fullName": "vega.RiskFactor", - "description": "Risk factors are used to calculate the current risk associated with orders trading on a given market", + "name": "RewardDetails", + "longName": "RewardDetails", + "fullName": "vega.RewardDetails", + "description": "Details for a single reward payment", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market", - "description": "Market ID that relates to this risk factor", + "name": "asset_id", + "description": "", "label": "", "type": "string", "longType": "string", @@ -5042,34 +5839,166 @@ "defaultValue": "" }, { - "name": "short", - "description": "Short Risk factor value", + "name": "party_id", + "description": "", "label": "", - "type": "double", - "longType": "double", - "fullType": "double", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "long", - "description": "Long Risk factor value", + "name": "epoch", + "description": "", "label": "", - "type": "double", - "longType": "double", - "fullType": "double", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "RiskResult", - "longName": "RiskResult", + }, + { + "name": "amount", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "percentage_of_total", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "received_at", + "description": "", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "RewardPerAssetDetail", + "longName": "RewardPerAssetDetail", + "fullName": "vega.RewardPerAssetDetail", + "description": "Details for rewards for a single asset", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "asset", + "description": "asset details", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "details", + "description": "rewards ordered by received_at", + "label": "repeated", + "type": "RewardDetails", + "longType": "RewardDetails", + "fullType": "vega.RewardDetails", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_for_asset", + "description": "Total amount of rewards for the asset", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "RiskFactor", + "longName": "RiskFactor", + "fullName": "vega.RiskFactor", + "description": "Risk factors are used to calculate the current risk associated with orders trading on a given market", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "market", + "description": "Market ID that relates to this risk factor", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "short", + "description": "Short Risk factor value", + "label": "", + "type": "double", + "longType": "double", + "fullType": "double", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "long", + "description": "Long Risk factor value", + "label": "", + "type": "double", + "longType": "double", + "fullType": "double", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "RiskResult", + "longName": "RiskResult", "fullName": "vega.RiskResult", "description": "Risk results are calculated internally by Vega to attempt to maintain safe trading", "hasExtensions": false, @@ -5200,46 +6129,22 @@ ] }, { - "name": "Signature", - "longName": "Signature", - "fullName": "vega.Signature", - "description": "A signature to be authenticate a transaction\nand to be verified by the vega network", + "name": "Timestamp", + "longName": "Timestamp", + "fullName": "vega.Timestamp", + "description": "A timestamp in nanoseconds since epoch\nSee [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "sig", - "description": "The bytes of the signature", - "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "algo", - "description": "The algorithm used to create the signature", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "version", - "description": "The version of the signature used to create the signature", + "name": "value", + "description": "Timestamp value", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5248,54 +6153,42 @@ ] }, { - "name": "SignedBundle", - "longName": "SignedBundle", - "fullName": "vega.SignedBundle", - "description": "A bundle of a transaction and it's signature", + "name": "Trade", + "longName": "Trade", + "fullName": "vega.Trade", + "description": "A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "tx", - "description": "Transaction payload (proto marshalled)", + "name": "id", + "description": "Unique identifier for the trade (generated by Vega)", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "sig", - "description": "The signature authenticating the transaction", + "name": "market_id", + "description": "Market identifier (the market that the trade occurred on)", "label": "", - "type": "Signature", - "longType": "Signature", - "fullType": "vega.Signature", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "Statistics", - "longName": "Statistics", - "fullName": "vega.Statistics", - "description": "Vega domain specific statistics as reported by the node the caller is connected to", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "block_height", - "description": "Current block height as reported by the Vega blockchain", + "name": "price", + "description": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", "type": "uint64", "longType": "uint64", @@ -5306,8 +6199,8 @@ "defaultValue": "" }, { - "name": "backlog_length", - "description": "Current backlog length (number of transactions) that are waiting to be included in a block", + "name": "size", + "description": "Size filled for the trade", "label": "", "type": "uint64", "longType": "uint64", @@ -5318,20 +6211,20 @@ "defaultValue": "" }, { - "name": "total_peers", - "description": "Total number of connected peers to this node", + "name": "buyer", + "description": "Unique party identifier for the buyer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "genesis_time", - "description": "Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision", + "name": "seller", + "description": "Unique party identifier for the seller", "label": "", "type": "string", "longType": "string", @@ -5342,20 +6235,20 @@ "defaultValue": "" }, { - "name": "current_time", - "description": "Current system date and time formatted in ISO-8601 datetime format with nanosecond precision", + "name": "aggressor", + "description": "Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Side", + "longType": "Side", + "fullType": "vega.Side", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "vega_time", - "description": "Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision", + "name": "buy_order", + "description": "Identifier of the order from the buy side", "label": "", "type": "string", "longType": "string", @@ -5366,68 +6259,68 @@ "defaultValue": "" }, { - "name": "status", - "description": "Status of the connection to the Vega blockchain\n- See [`ChainStatus`](#vega.ChainStatus)", + "name": "sell_order", + "description": "Identifier of the order from the sell side", "label": "", - "type": "ChainStatus", - "longType": "ChainStatus", - "fullType": "vega.ChainStatus", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "tx_per_block", - "description": "Transactions per block", + "name": "timestamp", + "description": "Timestamp for when the trade occurred, in nanoseconds since the epoch\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "average_tx_bytes", - "description": "Average transaction size in bytes", + "name": "type", + "description": "Type for the trade - See [`Trade.Type`](#vega.Trade.Type)", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "Type", + "longType": "Trade.Type", + "fullType": "vega.Trade.Type", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "average_orders_per_block", - "description": "Average orders per block", + "name": "buyer_fee", + "description": "Fee amount charged to the buyer party for the trade", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "Fee", + "longType": "Fee", + "fullType": "vega.Fee", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "trades_per_second", - "description": "Trades emitted per second", + "name": "seller_fee", + "description": "Fee amount charged to the seller party for the trade", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "Fee", + "longType": "Fee", + "fullType": "vega.Fee", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "orders_per_second", - "description": "Orders processed per second", + "name": "buyer_auction_batch", + "description": "Auction batch number that the buy side order was placed in", "label": "", "type": "uint64", "longType": "uint64", @@ -5438,8 +6331,8 @@ "defaultValue": "" }, { - "name": "total_markets", - "description": "Total markets on this Vega network", + "name": "seller_auction_batch", + "description": "Auction batch number that the sell side order was placed in", "label": "", "type": "uint64", "longType": "uint64", @@ -5448,58 +6341,82 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "TradeSet", + "longName": "TradeSet", + "fullName": "vega.TradeSet", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "total_amend_order", - "description": "Total number of order amendments since genesis (on all markets)", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "name": "trades", + "description": "A set of one or more trades", + "label": "repeated", + "type": "Trade", + "longType": "Trade", + "fullType": "vega.Trade", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "Transfer", + "longName": "Transfer", + "fullName": "vega.Transfer", + "description": "Represents a financial transfer within Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "total_cancel_order", - "description": "Total number of order cancellations since genesis (on all markets)", + "name": "owner", + "description": "Party identifier for the owner of the transfer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "total_create_order", - "description": "Total number of order submissions since genesis (on all markets)", + "name": "amount", + "description": "A financial amount (of an asset) to transfer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "FinancialAmount", + "longType": "FinancialAmount", + "fullType": "vega.FinancialAmount", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "total_orders", - "description": "Total number of orders processed since genesis (on all markets)", + "name": "type", + "description": "The type of transfer, gives the reason for the transfer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "TransferType", + "longType": "TransferType", + "fullType": "vega.TransferType", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "total_trades", - "description": "Total number of trades emitted since genesis (on all markets)", + "name": "min_amount", + "description": "A minimum amount", "label": "", "type": "uint64", "longType": "uint64", @@ -5508,94 +6425,118 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "TransferBalance", + "longName": "TransferBalance", + "fullName": "vega.TransferBalance", + "description": "Represents the balance for an account during a transfer", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "order_subscriptions", - "description": "Current number of stream subscribers to order data", + "name": "account", + "description": "The account relating to the transfer", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "Account", + "longType": "Account", + "fullType": "vega.Account", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "trade_subscriptions", - "description": "Current number of stream subscribers to trade data", + "name": "balance", + "description": "The balance relating to the transfer", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "TransferRequest", + "longName": "TransferRequest", + "fullName": "vega.TransferRequest", + "description": "Represents a request to transfer from one set of accounts to another", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "candle_subscriptions", - "description": "Current number of stream subscribers to candle-stick data", - "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "name": "from_account", + "description": "One or more accounts to transfer from", + "label": "repeated", + "type": "Account", + "longType": "Account", + "fullType": "vega.Account", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "market_depth_subscriptions", - "description": "Current number of stream subscribers to market depth data", - "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "name": "to_account", + "description": "One or more accounts to transfer to", + "label": "repeated", + "type": "Account", + "longType": "Account", + "fullType": "vega.Account", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "positions_subscriptions", - "description": "Current number of stream subscribers to positions data", + "name": "amount", + "description": "An amount to transfer for the asset", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "account_subscriptions", - "description": "Current number of stream subscribers to account data", + "name": "min_amount", + "description": "A minimum amount", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "market_data_subscriptions", - "description": "Current number of stream subscribers to market data", + "name": "asset", + "description": "Asset identifier", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "app_version_hash", - "description": "The version hash of the Vega node software", + "name": "reference", + "description": "A reference for auditing purposes", "label": "", "type": "string", "longType": "string", @@ -5604,74 +6545,38 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "TransferResponse", + "longName": "TransferResponse", + "fullName": "vega.TransferResponse", + "description": "Represents the response from a transfer", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "app_version", - "description": "The version of the Vega node software", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "name": "transfers", + "description": "One or more ledger entries representing the transfers", + "label": "repeated", + "type": "LedgerEntry", + "longType": "LedgerEntry", + "fullType": "vega.LedgerEntry", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "chain_version", - "description": "The version of the underlying Vega blockchain", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "block_duration", - "description": "Current block duration, in nanoseconds", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "uptime", - "description": "Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "chain_id", - "description": "Unique identifier for the underlying Vega blockchain", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "market_depth_updates_subscriptions", - "description": "Current number of stream subscribers to market depth update data", - "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "name": "balances", + "description": "One or more account balances", + "label": "repeated", + "type": "TransferBalance", + "longType": "TransferBalance", + "fullType": "vega.TransferBalance", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5680,34 +6585,34 @@ ] }, { - "name": "Timestamp", - "longName": "Timestamp", - "fullName": "vega.Timestamp", - "description": "A timestamp in nanoseconds since epoch\nSee [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", + "name": "WithdrawExt", + "longName": "WithdrawExt", + "fullName": "vega.WithdrawExt", + "description": "Withdrawal external details", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "value", - "description": "Timestamp value", + "name": "erc20", + "description": "ERC20 withdrawal details", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "Erc20WithdrawExt", + "longType": "Erc20WithdrawExt", + "fullType": "vega.Erc20WithdrawExt", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "ext", "defaultValue": "" } ] }, { - "name": "Trade", - "longName": "Trade", - "fullName": "vega.Trade", - "description": "A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega", + "name": "Withdrawal", + "longName": "Withdrawal", + "fullName": "vega.Withdrawal", + "description": "A withdrawal from the Vega network", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -5715,7 +6620,7 @@ "fields": [ { "name": "id", - "description": "Unique identifier for the trade (generated by Vega)", + "description": "Unique identifier for the withdrawal", "label": "", "type": "string", "longType": "string", @@ -5726,8 +6631,8 @@ "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier (the market that the trade occurred on)", + "name": "party_id", + "description": "Unique party identifier of the user initiating the withdrawal", "label": "", "type": "string", "longType": "string", @@ -5738,8 +6643,8 @@ "defaultValue": "" }, { - "name": "price", - "description": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "amount", + "description": "The amount to be withdrawn", "label": "", "type": "uint64", "longType": "uint64", @@ -5750,32 +6655,32 @@ "defaultValue": "" }, { - "name": "size", - "description": "Size filled for the trade", + "name": "asset", + "description": "The asset we want to withdraw funds from", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "buyer", - "description": "Unique party identifier for the buyer", + "name": "status", + "description": "The status of the withdrawal", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Status", + "longType": "Withdrawal.Status", + "fullType": "vega.Withdrawal.Status", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "seller", - "description": "Unique party identifier for the seller", + "name": "ref", + "description": "The reference which is used by the foreign chain\nto refer to this withdrawal", "label": "", "type": "string", "longType": "string", @@ -5786,20 +6691,20 @@ "defaultValue": "" }, { - "name": "aggressor", - "description": "Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)", + "name": "expiry", + "description": "The time until when the withdrawal is valid", "label": "", - "type": "Side", - "longType": "Side", - "fullType": "vega.Side", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "buy_order", - "description": "Identifier of the order from the buy side", + "name": "tx_hash", + "description": "The hash of the foreign chain for this transaction", "label": "", "type": "string", "longType": "string", @@ -5810,20 +6715,20 @@ "defaultValue": "" }, { - "name": "sell_order", - "description": "Identifier of the order from the sell side", + "name": "created_timestamp", + "description": "Timestamp for when the network started to process this withdrawal", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "timestamp", - "description": "Timestamp for when the trade occurred, in nanoseconds since the epoch\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", + "name": "withdrawn_timestamp", + "description": "Timestamp for when the withdrawal was finalised by the network", "label": "", "type": "int64", "longType": "int64", @@ -5834,3326 +6739,296 @@ "defaultValue": "" }, { - "name": "type", - "description": "Type for the trade - See [`Trade.Type`](#vega.Trade.Type)", + "name": "ext", + "description": "Foreign chain specifics", "label": "", - "type": "Type", - "longType": "Trade.Type", - "fullType": "vega.Trade.Type", + "type": "WithdrawExt", + "longType": "WithdrawExt", + "fullType": "vega.WithdrawExt", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" + } + ] + } + ], + "services": [] + }, + { + "name": "governance.proto", + "description": "", + "package": "vega", + "hasEnums": true, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [ + { + "name": "State", + "longName": "Proposal.State", + "fullName": "vega.Proposal.State", + "description": "Proposal state transition:\nOpen -\u003e\n - Passed -\u003e Enacted.\n - Passed -\u003e Failed.\n - Declined\nRejected\nProposal can enter Failed state from any other state", + "values": [ + { + "name": "STATE_UNSPECIFIED", + "number": "0", + "description": "Default value, always invalid" }, { - "name": "buyer_fee", - "description": "Fee amount charged to the buyer party for the trade", - "label": "", - "type": "Fee", - "longType": "Fee", - "fullType": "vega.Fee", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "STATE_FAILED", + "number": "1", + "description": "Proposal enactment has failed - even though proposal has passed, its execution could not be performed" }, { - "name": "seller_fee", - "description": "Fee amount charged to the seller party for the trade", - "label": "", - "type": "Fee", - "longType": "Fee", - "fullType": "vega.Fee", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "STATE_OPEN", + "number": "2", + "description": "Proposal is open for voting" }, { - "name": "buyer_auction_batch", - "description": "Auction batch number that the buy side order was placed in", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "STATE_PASSED", + "number": "3", + "description": "Proposal has gained enough support to be executed" }, { - "name": "seller_auction_batch", - "description": "Auction batch number that the sell side order was placed in", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "STATE_REJECTED", + "number": "4", + "description": "Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)" + }, + { + "name": "STATE_DECLINED", + "number": "5", + "description": "Proposal didn't get enough votes (either failing to gain required participation or majority level)" + }, + { + "name": "STATE_ENACTED", + "number": "6", + "description": "Proposal enacted" + }, + { + "name": "STATE_WAITING_FOR_NODE_VOTE", + "number": "7", + "description": "Waiting for node validation of the proposal" } ] }, { - "name": "TradeSet", - "longName": "TradeSet", - "fullName": "vega.TradeSet", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "ProposalError", + "longName": "ProposalError", + "fullName": "vega.ProposalError", + "description": "A list of possible errors that can cause a proposal to be in state rejected or failed", + "values": [ { - "name": "trades", - "description": "A set of one or more trades", - "label": "repeated", - "type": "Trade", - "longType": "Trade", - "fullType": "vega.Trade", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "Transaction", - "longName": "Transaction", - "fullName": "vega.Transaction", - "description": "Represents a transaction to be sent to Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ + "name": "PROPOSAL_ERROR_UNSPECIFIED", + "number": "0", + "description": "Default value" + }, { - "name": "input_data", - "description": "One of the set of Vega commands (proto marshalled)", - "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON", + "number": "1", + "description": "The specified close time is too early base on network parameters" }, { - "name": "nonce", - "description": "A random number used to provide uniqueness and prevent against replay attack", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE", + "number": "2", + "description": "The specified close time is too late based on network parameters" }, { - "name": "block_height", - "description": "The block height associated to the transaction, this should always be current block height\nof the node at the time of sending the Tx and block height is used as a mechanism\nfor replay protection", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON", + "number": "3", + "description": "The specified enact time is too early based on network parameters" }, { - "name": "address", - "description": "The address of the sender", - "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", - "ismap": false, - "isoneof": true, - "oneofdecl": "from", - "defaultValue": "" + "name": "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE", + "number": "4", + "description": "The specified enact time is too late based on network parameters" }, { - "name": "pub_key", - "description": "The public key of the sender", - "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", - "ismap": false, - "isoneof": true, - "oneofdecl": "from", - "defaultValue": "" - } - ] - }, - { - "name": "Transfer", - "longName": "Transfer", - "fullName": "vega.Transfer", - "description": "Represents a financial transfer within Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "PROPOSAL_ERROR_INSUFFICIENT_TOKENS", + "number": "5", + "description": "The proposer for this proposal as insufficient tokens" + }, { - "name": "owner", - "description": "Party identifier for the owner of the transfer", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY", + "number": "6", + "description": "The instrument quote name and base name were the same" }, { - "name": "amount", - "description": "A financial amount (of an asset) to transfer", - "label": "", - "type": "FinancialAmount", - "longType": "FinancialAmount", - "fullType": "vega.FinancialAmount", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NO_PRODUCT", + "number": "7", + "description": "The proposal has no product" }, { - "name": "type", - "description": "The type of transfer, gives the reason for the transfer", - "label": "", - "type": "TransferType", - "longType": "TransferType", - "fullType": "vega.TransferType", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT", + "number": "8", + "description": "The specified product is not supported" }, { - "name": "min_amount", - "description": "A minimum amount", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "TransferBalance", - "longName": "TransferBalance", - "fullName": "vega.TransferBalance", - "description": "Represents the balance for an account during a transfer", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP", + "number": "9", + "description": "Invalid future maturity timestamp (expect RFC3339)" + }, { - "name": "account", - "description": "The account relating to the transfer", - "label": "", - "type": "Account", - "longType": "Account", - "fullType": "vega.Account", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED", + "number": "10", + "description": "The product maturity is past" }, { - "name": "balance", - "description": "The balance relating to the transfer", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "TransferRequest", - "longName": "TransferRequest", - "fullName": "vega.TransferRequest", - "description": "Represents a request to transfer from one set of accounts to another", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "PROPOSAL_ERROR_NO_TRADING_MODE", + "number": "11", + "description": "The proposal has no trading mode" + }, { - "name": "from_account", - "description": "One or more accounts to transfer from", - "label": "repeated", - "type": "Account", - "longType": "Account", - "fullType": "vega.Account", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE", + "number": "12", + "description": "The proposal has an unsupported trading mode" }, { - "name": "to_account", - "description": "One or more accounts to transfer to", - "label": "repeated", - "type": "Account", - "longType": "Account", - "fullType": "vega.Account", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NODE_VALIDATION_FAILED", + "number": "13", + "description": "The proposal failed node validation" }, { - "name": "amount", - "description": "An amount to transfer for the asset", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD", + "number": "14", + "description": "A field is missing in a builtin asset source" }, { - "name": "min_amount", - "description": "A minimum amount", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS", + "number": "15", + "description": "The contract address is missing in the ERC20 asset source" }, { - "name": "asset", - "description": "Asset identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference", - "description": "A reference for auditing purposes", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "TransferResponse", - "longName": "TransferResponse", - "fullName": "vega.TransferResponse", - "description": "Represents the response from a transfer", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "transfers", - "description": "One or more ledger entries representing the transfers", - "label": "repeated", - "type": "LedgerEntry", - "longType": "LedgerEntry", - "fullType": "vega.LedgerEntry", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "balances", - "description": "One or more account balances", - "label": "repeated", - "type": "TransferBalance", - "longType": "TransferBalance", - "fullType": "vega.TransferBalance", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "WithdrawExt", - "longName": "WithdrawExt", - "fullName": "vega.WithdrawExt", - "description": "Withdrawal external details", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "erc20", - "description": "ERC20 withdrawal details", - "label": "", - "type": "Erc20WithdrawExt", - "longType": "Erc20WithdrawExt", - "fullType": "vega.Erc20WithdrawExt", - "ismap": false, - "isoneof": true, - "oneofdecl": "ext", - "defaultValue": "" - } - ] - }, - { - "name": "Withdrawal", - "longName": "Withdrawal", - "fullName": "vega.Withdrawal", - "description": "A withdrawal from the Vega network", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "id", - "description": "Unique identifier for the withdrawal", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "Unique party identifier of the user initiating the withdrawal", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_ASSET", + "number": "16", + "description": "The asset identifier is invalid or does not exist on the Vega network" }, { - "name": "amount", - "description": "The amount to be withdrawn", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS", + "number": "17", + "description": "Proposal terms timestamps are not compatible (Validation \u003c Closing \u003c Enactment)" }, { - "name": "asset", - "description": "The asset we want to withdraw funds from", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NO_RISK_PARAMETERS", + "number": "18", + "description": "No risk parameters were specified" }, { - "name": "status", - "description": "The status of the withdrawal", - "label": "", - "type": "Status", - "longType": "Withdrawal.Status", - "fullType": "vega.Withdrawal.Status", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY", + "number": "19", + "description": "Invalid key in update network parameter proposal" }, { - "name": "ref", - "description": "The reference which is used by the foreign chain\nto refer to this withdrawal", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE", + "number": "20", + "description": "Invalid valid in update network parameter proposal" }, { - "name": "expiry", - "description": "The time until when the withdrawal is valid", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED", + "number": "21", + "description": "Validation failed for network parameter proposal" }, { - "name": "tx_hash", - "description": "The hash of the foreign chain for this transaction", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL", + "number": "22", + "description": "Opening auction duration is less than the network minimum opening auction time" }, { - "name": "created_timestamp", - "description": "Timestamp for when the network started to process this withdrawal", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE", + "number": "23", + "description": "Opening auction duration is more than the network minimum opening auction time" }, { - "name": "withdrawn_timestamp", - "description": "Timestamp for when the withdrawal was finalised by the network", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT", + "number": "24", + "description": "Market proposal is missing a liquidity commitment" }, - { - "name": "ext", - "description": "Foreign chain specifics", - "label": "", - "type": "WithdrawExt", - "longType": "WithdrawExt", - "fullType": "vega.WithdrawExt", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "assets.proto", - "description": "", - "package": "vega", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [], - "extensions": [], - "messages": [ - { - "name": "Asset", - "longName": "Asset", - "fullName": "vega.Asset", - "description": "The Vega representation of an external asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "id", - "description": "Internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "details", - "description": "The definition of the external source for this asset", - "label": "", - "type": "AssetDetails", - "longType": "AssetDetails", - "fullType": "vega.AssetDetails", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "AssetDetails", - "longName": "AssetDetails", - "fullName": "vega.AssetDetails", - "description": "The Vega representation of an external asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "name", - "description": "Name of the asset (e.g: Great British Pound)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "symbol", - "description": "Symbol of the asset (e.g: GBP)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "total_supply", - "description": "Total circulating supply for the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "decimals", - "description": "Number of decimal / precision handled by this asset", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "min_lp_stake", - "description": "Min stake required for this asset from liquidity providers", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "builtin_asset", - "description": "A built-in asset", - "label": "", - "type": "BuiltinAsset", - "longType": "BuiltinAsset", - "fullType": "vega.BuiltinAsset", - "ismap": false, - "isoneof": true, - "oneofdecl": "source", - "defaultValue": "" - }, - { - "name": "erc20", - "description": "An Ethereum ERC20 asset", - "label": "", - "type": "ERC20", - "longType": "ERC20", - "fullType": "vega.ERC20", - "ismap": false, - "isoneof": true, - "oneofdecl": "source", - "defaultValue": "" - } - ] - }, - { - "name": "BuiltinAsset", - "longName": "BuiltinAsset", - "fullName": "vega.BuiltinAsset", - "description": "A Vega internal asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "max_faucet_amount_mint", - "description": "Maximum amount that can be requested by a party through the built-in asset faucet at a time", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ERC20", - "longName": "ERC20", - "fullName": "vega.ERC20", - "description": "An ERC20 token based asset, living on the ethereum network", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "contract_address", - "description": "The address of the contract for the token, on the ethereum network", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "governance.proto", - "description": "", - "package": "vega", - "hasEnums": true, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [ - { - "name": "State", - "longName": "Proposal.State", - "fullName": "vega.Proposal.State", - "description": "Proposal state transition:\nOpen -\u003e\n - Passed -\u003e Enacted.\n - Passed -\u003e Failed.\n - Declined\nRejected\nProposal can enter Failed state from any other state", - "values": [ - { - "name": "STATE_UNSPECIFIED", - "number": "0", - "description": "Default value, always invalid" - }, - { - "name": "STATE_FAILED", - "number": "1", - "description": "Proposal enactment has failed - even though proposal has passed, its execution could not be performed" - }, - { - "name": "STATE_OPEN", - "number": "2", - "description": "Proposal is open for voting" - }, - { - "name": "STATE_PASSED", - "number": "3", - "description": "Proposal has gained enough support to be executed" - }, - { - "name": "STATE_REJECTED", - "number": "4", - "description": "Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)" - }, - { - "name": "STATE_DECLINED", - "number": "5", - "description": "Proposal didn't get enough votes (either failing to gain required participation or majority level)" - }, - { - "name": "STATE_ENACTED", - "number": "6", - "description": "Proposal enacted" - }, - { - "name": "STATE_WAITING_FOR_NODE_VOTE", - "number": "7", - "description": "Waiting for node validation of the proposal" - } - ] - }, - { - "name": "ProposalError", - "longName": "ProposalError", - "fullName": "vega.ProposalError", - "description": "A list of possible errors that can cause a proposal to be in state rejected or failed", - "values": [ - { - "name": "PROPOSAL_ERROR_UNSPECIFIED", - "number": "0", - "description": "Default value" - }, - { - "name": "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON", - "number": "1", - "description": "The specified close time is too early base on network parameters" - }, - { - "name": "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE", - "number": "2", - "description": "The specified close time is too late based on network parameters" - }, - { - "name": "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON", - "number": "3", - "description": "The specified enact time is too early based on network parameters" - }, - { - "name": "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE", - "number": "4", - "description": "The specified enact time is too late based on network parameters" - }, - { - "name": "PROPOSAL_ERROR_INSUFFICIENT_TOKENS", - "number": "5", - "description": "The proposer for this proposal as insufficient tokens" - }, - { - "name": "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY", - "number": "6", - "description": "The instrument quote name and base name were the same" - }, - { - "name": "PROPOSAL_ERROR_NO_PRODUCT", - "number": "7", - "description": "The proposal has no product" - }, - { - "name": "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT", - "number": "8", - "description": "The specified product is not supported" - }, - { - "name": "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP", - "number": "9", - "description": "Invalid future maturity timestamp (expect RFC3339)" - }, - { - "name": "PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED", - "number": "10", - "description": "The product maturity is past" - }, - { - "name": "PROPOSAL_ERROR_NO_TRADING_MODE", - "number": "11", - "description": "The proposal has no trading mode" - }, - { - "name": "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE", - "number": "12", - "description": "The proposal has an unsupported trading mode" - }, - { - "name": "PROPOSAL_ERROR_NODE_VALIDATION_FAILED", - "number": "13", - "description": "The proposal failed node validation" - }, - { - "name": "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD", - "number": "14", - "description": "A field is missing in a builtin asset source" - }, - { - "name": "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS", - "number": "15", - "description": "The contract address is missing in the ERC20 asset source" - }, - { - "name": "PROPOSAL_ERROR_INVALID_ASSET", - "number": "16", - "description": "The asset identifier is invalid or does not exist on the Vega network" - }, - { - "name": "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS", - "number": "17", - "description": "Proposal terms timestamps are not compatible (Validation \u003c Closing \u003c Enactment)" - }, - { - "name": "PROPOSAL_ERROR_NO_RISK_PARAMETERS", - "number": "18", - "description": "No risk parameters were specified" - }, - { - "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY", - "number": "19", - "description": "Invalid key in update network parameter proposal" - }, - { - "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE", - "number": "20", - "description": "Invalid valid in update network parameter proposal" - }, - { - "name": "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED", - "number": "21", - "description": "Validation failed for network parameter proposal" - }, - { - "name": "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL", - "number": "22", - "description": "Opening auction duration is less than the network minimum opening auction time" - }, - { - "name": "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE", - "number": "23", - "description": "Opening auction duration is more than the network minimum opening auction time" - }, - { - "name": "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT", - "number": "24", - "description": "Market proposal is missing a liquidity commitment" - }, - { - "name": "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET", - "number": "25", - "description": "Market proposal market could not be instantiate in execution" - }, - { - "name": "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT", - "number": "26", - "description": "Market proposal market contained invalid product definition" - }, - { - "name": "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT", - "number": "27", - "description": "Market proposal is missing commitment amount" - }, - { - "name": "PROPOSAL_ERROR_INVALID_FEE_AMOUNT", - "number": "28", - "description": "Market proposal have invalid fee" - }, - { - "name": "PROPOSAL_ERROR_INVALID_SHAPE", - "number": "29", - "description": "Market proposal have invalid shape" - }, - { - "name": "PROPOSAL_ERROR_INVALID_RISK_PARAMETER", - "number": "30", - "description": "Market proposal invalid risk parameter" - }, - { - "name": "PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED", - "number": "31", - "description": "Proposal was declined because vote didn't reach the majority thershold required" - }, - { - "name": "PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED", - "number": "32", - "description": "Proposal declined because the participation threshold was not reached" - }, - { - "name": "PROPOSAL_ERROR_INVALID_ASSET_DETAILS", - "number": "33", - "description": "Asset proposal invalid asset details" - } - ] - }, - { - "name": "Value", - "longName": "Vote.Value", - "fullName": "vega.Vote.Value", - "description": "Vote value", - "values": [ - { - "name": "VALUE_UNSPECIFIED", - "number": "0", - "description": "Default value, always invalid" - }, - { - "name": "VALUE_NO", - "number": "1", - "description": "A vote against the proposal" - }, - { - "name": "VALUE_YES", - "number": "2", - "description": "A vote in favour of the proposal" - } - ] - } - ], - "extensions": [], - "messages": [ - { - "name": "FutureProduct", - "longName": "FutureProduct", - "fullName": "vega.FutureProduct", - "description": "Future product configuration", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "maturity", - "description": "Future product maturity (ISO8601/RFC3339 timestamp)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "settlement_asset", - "description": "Product settlement asset identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "quote_name", - "description": "Product quote name", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "oracle_spec_for_settlement_price", - "description": "The oracle spec describing the oracle data of settlement price", - "label": "", - "type": "OracleSpecConfiguration", - "longType": "oracles.v1.OracleSpecConfiguration", - "fullType": "oracles.v1.OracleSpecConfiguration", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "oracle_spec_for_trading_termination", - "description": "The oracle spec describing the oracle data of trading termination", - "label": "", - "type": "OracleSpecConfiguration", - "longType": "oracles.v1.OracleSpecConfiguration", - "fullType": "oracles.v1.OracleSpecConfiguration", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "oracle_spec_binding", - "description": "The binding between the oracle spec and the settlement price", - "label": "", - "type": "OracleSpecToFutureBinding", - "longType": "OracleSpecToFutureBinding", - "fullType": "vega.OracleSpecToFutureBinding", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "GovernanceData", - "longName": "GovernanceData", - "fullName": "vega.GovernanceData", - "description": "Governance data", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "proposal", - "description": "The governance proposal", - "label": "", - "type": "Proposal", - "longType": "Proposal", - "fullType": "vega.Proposal", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "yes", - "description": "All \"yes\" votes in favour of the proposal above", - "label": "repeated", - "type": "Vote", - "longType": "Vote", - "fullType": "vega.Vote", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "no", - "description": "All \"no\" votes against the proposal above", - "label": "repeated", - "type": "Vote", - "longType": "Vote", - "fullType": "vega.Vote", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "yes_party", - "description": "All latest YES votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", - "label": "repeated", - "type": "YesPartyEntry", - "longType": "GovernanceData.YesPartyEntry", - "fullType": "vega.GovernanceData.YesPartyEntry", - "ismap": true, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "no_party", - "description": "All latest NO votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", - "label": "repeated", - "type": "NoPartyEntry", - "longType": "GovernanceData.NoPartyEntry", - "fullType": "vega.GovernanceData.NoPartyEntry", - "ismap": true, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "NoPartyEntry", - "longName": "GovernanceData.NoPartyEntry", - "fullName": "vega.GovernanceData.NoPartyEntry", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "key", - "description": "", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "value", - "description": "", - "label": "", - "type": "Vote", - "longType": "Vote", - "fullType": "vega.Vote", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "YesPartyEntry", - "longName": "GovernanceData.YesPartyEntry", - "fullName": "vega.GovernanceData.YesPartyEntry", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "key", - "description": "", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "value", - "description": "", - "label": "", - "type": "Vote", - "longType": "Vote", - "fullType": "vega.Vote", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "InstrumentConfiguration", - "longName": "InstrumentConfiguration", - "fullName": "vega.InstrumentConfiguration", - "description": "Instrument configuration", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "name", - "description": "Instrument name", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "code", - "description": "Instrument code", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "future", - "description": "Future", - "label": "", - "type": "FutureProduct", - "longType": "FutureProduct", - "fullType": "vega.FutureProduct", - "ismap": false, - "isoneof": true, - "oneofdecl": "product", - "defaultValue": "" - } - ] - }, - { - "name": "NewAsset", - "longName": "NewAsset", - "fullName": "vega.NewAsset", - "description": "New asset on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "changes", - "description": "The configuration of the new asset", - "label": "", - "type": "AssetDetails", - "longType": "AssetDetails", - "fullType": "vega.AssetDetails", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - } - ] - }, - { - "name": "NewMarket", - "longName": "NewMarket", - "fullName": "vega.NewMarket", - "description": "New market on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "changes", - "description": "The configuration of the new market", - "label": "", - "type": "NewMarketConfiguration", - "longType": "NewMarketConfiguration", - "fullType": "vega.NewMarketConfiguration", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - }, - { - "name": "liquidity_commitment", - "description": "The commitment from the party creating the NewMarket proposal", - "label": "", - "type": "NewMarketCommitment", - "longType": "NewMarketCommitment", - "fullType": "vega.NewMarketCommitment", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "NewMarketCommitment", - "longName": "NewMarketCommitment", - "fullName": "vega.NewMarketCommitment", - "description": "A commitment of liquidity to be made by the party which proposes a market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "commitment_amount", - "description": "Specified as a unitless number that represents the amount of settlement asset of the market", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "fee", - "description": "Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "sells", - "description": "A set of liquidity sell orders to meet the liquidity provision obligation", - "label": "repeated", - "type": "LiquidityOrder", - "longType": "LiquidityOrder", - "fullType": "vega.LiquidityOrder", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "buys", - "description": "A set of liquidity buy orders to meet the liquidity provision obligation", - "label": "repeated", - "type": "LiquidityOrder", - "longType": "LiquidityOrder", - "fullType": "vega.LiquidityOrder", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference", - "description": "A reference to be associated to all orders created from this commitment", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "NewMarketConfiguration", - "longName": "NewMarketConfiguration", - "fullName": "vega.NewMarketConfiguration", - "description": "Configuration for a new market on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "instrument", - "description": "New market instrument configuration", - "label": "", - "type": "InstrumentConfiguration", - "longType": "InstrumentConfiguration", - "fullType": "vega.InstrumentConfiguration", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - }, - { - "name": "decimal_places", - "description": "Decimal places used for the new market", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "int_lt", - "value": 150 - } - ] - } - }, - { - "name": "metadata", - "description": "Optional new market meta data, tags", - "label": "repeated", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "price_monitoring_parameters", - "description": "Price monitoring parameters", - "label": "", - "type": "PriceMonitoringParameters", - "longType": "PriceMonitoringParameters", - "fullType": "vega.PriceMonitoringParameters", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "liquidity_monitoring_parameters", - "description": "Liquidity monitoring parameters", - "label": "", - "type": "LiquidityMonitoringParameters", - "longType": "LiquidityMonitoringParameters", - "fullType": "vega.LiquidityMonitoringParameters", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "simple", - "description": "Simple risk model parameters, valid only if MODEL_SIMPLE is selected", - "label": "", - "type": "SimpleModelParams", - "longType": "SimpleModelParams", - "fullType": "vega.SimpleModelParams", - "ismap": false, - "isoneof": true, - "oneofdecl": "risk_parameters", - "defaultValue": "" - }, - { - "name": "log_normal", - "description": "Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected", - "label": "", - "type": "LogNormalRiskModel", - "longType": "LogNormalRiskModel", - "fullType": "vega.LogNormalRiskModel", - "ismap": false, - "isoneof": true, - "oneofdecl": "risk_parameters", - "defaultValue": "" - }, - { - "name": "continuous", - "description": "Continuous trading", - "label": "", - "type": "ContinuousTrading", - "longType": "ContinuousTrading", - "fullType": "vega.ContinuousTrading", - "ismap": false, - "isoneof": true, - "oneofdecl": "trading_mode", - "defaultValue": "" - }, - { - "name": "discrete", - "description": "Discrete trading", - "label": "", - "type": "DiscreteTrading", - "longType": "DiscreteTrading", - "fullType": "vega.DiscreteTrading", - "ismap": false, - "isoneof": true, - "oneofdecl": "trading_mode", - "defaultValue": "" - } - ] - }, - { - "name": "Proposal", - "longName": "Proposal", - "fullName": "vega.Proposal", - "description": "Governance proposal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "id", - "description": "Unique proposal identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference", - "description": "Proposal reference", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "Party identifier of the author (the party submitting the proposal)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "state", - "description": "Proposal state - See (Proposal.State)[#vega.Proposal.State] definition", - "label": "", - "type": "State", - "longType": "Proposal.State", - "fullType": "vega.Proposal.State", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": null - } - }, - { - "name": "timestamp", - "description": "Proposal timestamp for date and time (in nanoseconds) when proposal was submitted to the network", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "terms", - "description": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted", - "label": "", - "type": "ProposalTerms", - "longType": "ProposalTerms", - "fullType": "vega.ProposalTerms", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - }, - { - "name": "reason", - "description": "A reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses", - "label": "", - "type": "ProposalError", - "longType": "ProposalError", - "fullType": "vega.ProposalError", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "error_details", - "description": "The detailed error associated to the reason.", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ProposalTerms", - "longName": "ProposalTerms", - "fullName": "vega.ProposalTerms", - "description": "Terms for a governance proposal on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "closing_timestamp", - "description": "Timestamp (Unix time in seconds) when voting closes for this proposal,\nconstrained by `minCloseInSeconds` and `maxCloseInSeconds` network parameters", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "int_gt", - "value": 0 - } - ] - } - }, - { - "name": "enactment_timestamp", - "description": "Timestamp (Unix time in seconds) when proposal gets enacted (if passed),\nconstrained by `minEnactInSeconds` and `maxEnactInSeconds` network parameters", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "int_gt", - "value": 0 - } - ] - } - }, - { - "name": "validation_timestamp", - "description": "Validation timestamp (Unix time in seconds)", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "update_market", - "description": "Proposal change for modifying an existing market on Vega", - "label": "", - "type": "UpdateMarket", - "longType": "UpdateMarket", - "fullType": "vega.UpdateMarket", - "ismap": false, - "isoneof": true, - "oneofdecl": "change", - "defaultValue": "" - }, - { - "name": "new_market", - "description": "Proposal change for creating new market on Vega", - "label": "", - "type": "NewMarket", - "longType": "NewMarket", - "fullType": "vega.NewMarket", - "ismap": false, - "isoneof": true, - "oneofdecl": "change", - "defaultValue": "" - }, - { - "name": "update_network_parameter", - "description": "Proposal change for updating Vega network parameters", - "label": "", - "type": "UpdateNetworkParameter", - "longType": "UpdateNetworkParameter", - "fullType": "vega.UpdateNetworkParameter", - "ismap": false, - "isoneof": true, - "oneofdecl": "change", - "defaultValue": "" - }, - { - "name": "new_asset", - "description": "Proposal change for creating new assets on Vega", - "label": "", - "type": "NewAsset", - "longType": "NewAsset", - "fullType": "vega.NewAsset", - "ismap": false, - "isoneof": true, - "oneofdecl": "change", - "defaultValue": "" - } - ] - }, - { - "name": "UpdateMarket", - "longName": "UpdateMarket", - "fullName": "vega.UpdateMarket", - "description": "Update an existing market on Vega", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "UpdateNetworkParameter", - "longName": "UpdateNetworkParameter", - "fullName": "vega.UpdateNetworkParameter", - "description": "Update network configuration on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "changes", - "description": "The network parameter to update", - "label": "", - "type": "NetworkParameter", - "longType": "NetworkParameter", - "fullType": "vega.NetworkParameter", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - } - ] - }, - { - "name": "Vote", - "longName": "Vote", - "fullName": "vega.Vote", - "description": "Governance vote", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "party_id", - "description": "Voter's party identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "value", - "description": "Actual vote", - "label": "", - "type": "Value", - "longType": "Vote.Value", - "fullType": "vega.Vote.Value", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": null - } - }, - { - "name": "proposal_id", - "description": "Identifier of the proposal being voted on", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "timestamp", - "description": "Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "total_governance_token_balance", - "description": "Total number of governance token for the party that casted the vote", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "total_governance_token_weight", - "description": "The weight of this vote based on the total of governance token", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "oracles/v1/data.proto", - "description": "", - "package": "oracles.v1", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [], - "extensions": [], - "messages": [ - { - "name": "OracleData", - "longName": "OracleData", - "fullName": "oracles.v1.OracleData", - "description": "OracleData describes an oracle data that has been broadcast.", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "pub_keys", - "description": "pubKeys is the list of authorized public keys that signed the data for this\noracle. All the public keys in the oracle data should be contained in these\npublic keys.", - "label": "repeated", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "data", - "description": "data holds all the properties of the oracle data", - "label": "repeated", - "type": "Property", - "longType": "Property", - "fullType": "oracles.v1.Property", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "matched_spec_ids", - "description": "matched_specs_ids lists all the oracle specs that matched this oracle data.", - "label": "repeated", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "broadcast_at", - "description": "broadcast_at is the time at which the data was broadcast for the first\ntime.", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "Property", - "longName": "Property", - "fullName": "oracles.v1.Property", - "description": "Property describes one property of an oracle spec with a key with its value.", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "name", - "description": "name is the name of the property.", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "value", - "description": "value is the value of the property.", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "commands/v1/commands.proto", - "description": "", - "package": "vega.commands.v1", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [ - { - "name": "Method", - "longName": "UndelegateSubmission.Method", - "fullName": "vega.commands.v1.UndelegateSubmission.Method", - "description": "", - "values": [ - { - "name": "METHOD_UNSPECIFIED", - "number": "0", - "description": "" - }, - { - "name": "METHOD_NOW", - "number": "1", - "description": "" - }, - { - "name": "METHOD_AT_END_OF_EPOCH", - "number": "2", - "description": "" - }, - { - "name": "METHOD_IN_ANGER", - "number": "3", - "description": "" - } - ] - } - ], - "extensions": [], - "messages": [ - { - "name": "DelegateSubmission", - "longName": "DelegateSubmission", - "fullName": "vega.commands.v1.DelegateSubmission", - "description": "A command to submit an instruction to delegate some stake to a node", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "node_id", - "description": "The ID for the node to delegate to", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "amount", - "description": "The amount of stake to delegate", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "LiquidityProvisionSubmission", - "longName": "LiquidityProvisionSubmission", - "fullName": "vega.commands.v1.LiquidityProvisionSubmission", - "description": "A liquidity provision submitted for a given market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "market_id", - "description": "Market identifier for the order, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "commitment_amount", - "description": "Specified as a unitless number that represents the amount of settlement asset of the market", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "fee", - "description": "Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "sells", - "description": "A set of liquidity sell orders to meet the liquidity provision obligation", - "label": "repeated", - "type": "LiquidityOrder", - "longType": "vega.LiquidityOrder", - "fullType": "vega.LiquidityOrder", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "buys", - "description": "A set of liquidity buy orders to meet the liquidity provision obligation", - "label": "repeated", - "type": "LiquidityOrder", - "longType": "vega.LiquidityOrder", - "fullType": "vega.LiquidityOrder", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference", - "description": "A reference to be added to every order created out of this liquidityProvisionSubmission", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "OrderAmendment", - "longName": "OrderAmendment", - "fullName": "vega.commands.v1.OrderAmendment", - "description": "An order amendment is a request to amend or update an existing order on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "order_id", - "description": "Order identifier, this is required to find the order and will not be updated, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "market_id", - "description": "Market identifier, this is required to find the order and will not be updated", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "price", - "description": "Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)", - "label": "", - "type": "Price", - "longType": "vega.Price", - "fullType": "vega.Price", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "size_delta", - "description": "Amend the size for the order by the delta specified:\n- To reduce the size from the current value set a negative integer value\n- To increase the size from the current value, set a positive integer value\n- To leave the size unchanged set a value of zero", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "expires_at", - "description": "Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "label": "", - "type": "Timestamp", - "longType": "vega.Timestamp", - "fullType": "vega.Timestamp", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "time_in_force", - "description": "Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged\n- See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`", - "label": "", - "type": "TimeInForce", - "longType": "vega.Order.TimeInForce", - "fullType": "vega.Order.TimeInForce", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "pegged_offset", - "description": "Amend the pegged order offset for the order", - "label": "", - "type": "Int64Value", - "longType": "google.protobuf.Int64Value", - "fullType": "google.protobuf.Int64Value", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "pegged_reference", - "description": "Amend the pegged order reference for the order\n- See [`PeggedReference`](#vega.PeggedReference)", - "label": "", - "type": "PeggedReference", - "longType": "vega.PeggedReference", - "fullType": "vega.PeggedReference", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "OrderCancellation", - "longName": "OrderCancellation", - "fullName": "vega.commands.v1.OrderCancellation", - "description": "An order cancellation is a request to cancel an existing order on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "order_id", - "description": "Unique identifier for the order (set by the system after consensus), required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "market_id", - "description": "Market identifier for the order, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "OrderSubmission", - "longName": "OrderSubmission", - "fullName": "vega.commands.v1.OrderSubmission", - "description": "An order submission is a request to submit or create a new order on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "market_id", - "description": "Market identifier for the order, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "price", - "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places,\n, required field for limit orders, however it is not required for market orders", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "size", - "description": "Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "int_gt", - "value": 0 - } - ] - } - }, - { - "name": "side", - "description": "Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)", - "label": "", - "type": "Side", - "longType": "vega.Side", - "fullType": "vega.Side", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "time_in_force", - "description": "Time in force indicates how long an order will remain active before it is executed or expires, required field\n- See [`Order.TimeInForce`](#vega.Order.TimeInForce)", - "label": "", - "type": "TimeInForce", - "longType": "vega.Order.TimeInForce", - "fullType": "vega.Order.TimeInForce", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "expires_at", - "description": "Timestamp for when the order will expire, in nanoseconds since the epoch,\nrequired field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "type", - "description": "Type for the order, required field - See [`Order.Type`](#vega.Order.Type)", - "label": "", - "type": "Type", - "longType": "vega.Order.Type", - "fullType": "vega.Order.Type", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference", - "description": "Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently\nset internally by the node to return a unique reference identifier for the order submission", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "pegged_order", - "description": "Used to specify the details for a pegged order\n- See [`PeggedOrder`](#vega.PeggedOrder)", - "label": "", - "type": "PeggedOrder", - "longType": "vega.PeggedOrder", - "fullType": "vega.PeggedOrder", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ProposalSubmission", - "longName": "ProposalSubmission", - "fullName": "vega.commands.v1.ProposalSubmission", - "description": "A command to submit a new proposal for the\nvega network governance", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "reference", - "description": "Proposal reference", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "terms", - "description": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted", - "label": "", - "type": "ProposalTerms", - "longType": "vega.ProposalTerms", - "fullType": "vega.ProposalTerms", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - } - ] - }, - { - "name": "UndelegateSubmission", - "longName": "UndelegateSubmission", - "fullName": "vega.commands.v1.UndelegateSubmission", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "node_id", - "description": "", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "amount", - "description": "optional, if not specified = ALL", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "method", - "description": "", - "label": "", - "type": "Method", - "longType": "UndelegateSubmission.Method", - "fullType": "vega.commands.v1.UndelegateSubmission.Method", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "VoteSubmission", - "longName": "VoteSubmission", - "fullName": "vega.commands.v1.VoteSubmission", - "description": "A command to submit a new vote for a governance\nproposal.", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "proposal_id", - "description": "The ID of the proposal to vote for.", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "value", - "description": "The actual value of the vote", - "label": "", - "type": "Value", - "longType": "vega.Vote.Value", - "fullType": "vega.Vote.Value", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "WithdrawSubmission", - "longName": "WithdrawSubmission", - "fullName": "vega.commands.v1.WithdrawSubmission", - "description": "Represents the submission request to withdraw funds for a party on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "amount", - "description": "The amount to be withdrawn", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "asset", - "description": "The asset we want to withdraw", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "ext", - "description": "Foreign chain specifics", - "label": "", - "type": "WithdrawExt", - "longType": "vega.WithdrawExt", - "fullType": "vega.WithdrawExt", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "chain_events.proto", - "description": "", - "package": "vega", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [], - "extensions": [], - "messages": [ - { - "name": "AddValidator", - "longName": "AddValidator", - "fullName": "vega.AddValidator", - "description": "A message to notify when a new validator is being added to the Vega network", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "id", - "description": "The identifier of the validator", - "label": "", - "type": "Identifier", - "longType": "Identifier", - "fullType": "vega.Identifier", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "BTCDeposit", - "longName": "BTCDeposit", - "fullName": "vega.BTCDeposit", - "description": "A Bitcoin deposit into Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "The Vega network internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "source_btc_address", - "description": "The BTC wallet initiating the deposit", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "target_party_id", - "description": "The Vega party identifier (pub-key) which is the target of the deposit", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "BTCEvent", - "longName": "BTCEvent", - "fullName": "vega.BTCEvent", - "description": "An event from the Bitcoin network", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "index", - "description": "The index of the transaction", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "block", - "description": "The block in which the transaction happened", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "deposit", - "description": "Deposit BTC asset", - "label": "", - "type": "BTCDeposit", - "longType": "BTCDeposit", - "fullType": "vega.BTCDeposit", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" - }, - { - "name": "withdrawal", - "description": "Withdraw BTC asset", - "label": "", - "type": "BTCWithdrawal", - "longType": "BTCWithdrawal", - "fullType": "vega.BTCWithdrawal", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" - } - ] - }, - { - "name": "BTCWithdrawal", - "longName": "BTCWithdrawal", - "fullName": "vega.BTCWithdrawal", - "description": "A Bitcoin withdrawal from Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "The vega network internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "source_party_id", - "description": "The party identifier (pub-key) initiating the withdrawal", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "target_btc_address", - "description": "Target Bitcoin wallet address", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "reference_nonce", - "description": "The nonce reference of the transaction", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "BitcoinAddress", - "longName": "BitcoinAddress", - "fullName": "vega.BitcoinAddress", - "description": "Used as a wrapper for a Bitcoin address (wallet)", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "address", - "description": "A Bitcoin address", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "BuiltinAssetDeposit", - "longName": "BuiltinAssetDeposit", - "fullName": "vega.BuiltinAssetDeposit", - "description": "A deposit for a Vega built-in asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "A Vega network internal asset identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "A Vega party identifier (pub-key)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "amount", - "description": "The amount to be deposited", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "BuiltinAssetEvent", - "longName": "BuiltinAssetEvent", - "fullName": "vega.BuiltinAssetEvent", - "description": "An event related to a Vega built-in asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "deposit", - "description": "Built-in asset deposit", - "label": "", - "type": "BuiltinAssetDeposit", - "longType": "BuiltinAssetDeposit", - "fullType": "vega.BuiltinAssetDeposit", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" - }, - { - "name": "withdrawal", - "description": "Built-in asset withdrawal", - "label": "", - "type": "BuiltinAssetWithdrawal", - "longType": "BuiltinAssetWithdrawal", - "fullType": "vega.BuiltinAssetWithdrawal", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" - } - ] - }, - { - "name": "BuiltinAssetWithdrawal", - "longName": "BuiltinAssetWithdrawal", - "fullName": "vega.BuiltinAssetWithdrawal", - "description": "A withdrawal for a Vega built-in asset", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "A Vega network internal asset identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "A Vega network party identifier (pub-key)", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "amount", - "description": "The amount to be withdrawn", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ERC20AssetDelist", - "longName": "ERC20AssetDelist", - "fullName": "vega.ERC20AssetDelist", - "description": "An asset deny-listing for an ERC20 token", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "The Vega network internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ERC20AssetList", - "longName": "ERC20AssetList", - "fullName": "vega.ERC20AssetList", - "description": "An asset allow-listing for an ERC20 token", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "The Vega network internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ERC20Deposit", - "longName": "ERC20Deposit", - "fullName": "vega.ERC20Deposit", - "description": "An asset deposit for an ERC20 token", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "vega_asset_id", - "description": "The vega network internal identifier of the asset", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "source_ethereum_address", - "description": "The Ethereum wallet that initiated the deposit", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + { + "name": "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET", + "number": "25", + "description": "Market proposal market could not be instantiate in execution" }, { - "name": "target_party_id", - "description": "The Vega party identifier (pub-key) which is the target of the deposit", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT", + "number": "26", + "description": "Market proposal market contained invalid product definition" }, { - "name": "amount", - "description": "The amount to be deposited", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "ERC20Event", - "longName": "ERC20Event", - "fullName": "vega.ERC20Event", - "description": "An event related to an ERC20 token", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ + "name": "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT", + "number": "27", + "description": "Market proposal is missing commitment amount" + }, { - "name": "index", - "description": "Index of the transaction", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_FEE_AMOUNT", + "number": "28", + "description": "Market proposal have invalid fee" }, { - "name": "block", - "description": "The block in which the transaction was added", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_SHAPE", + "number": "29", + "description": "Market proposal have invalid shape" }, { - "name": "asset_list", - "description": "List an ERC20 asset", - "label": "", - "type": "ERC20AssetList", - "longType": "ERC20AssetList", - "fullType": "vega.ERC20AssetList", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_RISK_PARAMETER", + "number": "30", + "description": "Market proposal invalid risk parameter" }, { - "name": "asset_delist", - "description": "De-list an ERC20 asset", - "label": "", - "type": "ERC20AssetDelist", - "longType": "ERC20AssetDelist", - "fullType": "vega.ERC20AssetDelist", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" + "name": "PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED", + "number": "31", + "description": "Proposal was declined because vote didn't reach the majority thershold required" }, { - "name": "deposit", - "description": "Deposit ERC20 asset", - "label": "", - "type": "ERC20Deposit", - "longType": "ERC20Deposit", - "fullType": "vega.ERC20Deposit", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" + "name": "PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED", + "number": "32", + "description": "Proposal declined because the participation threshold was not reached" }, { - "name": "withdrawal", - "description": "Withdraw ERC20 asset", - "label": "", - "type": "ERC20Withdrawal", - "longType": "ERC20Withdrawal", - "fullType": "vega.ERC20Withdrawal", - "ismap": false, - "isoneof": true, - "oneofdecl": "action", - "defaultValue": "" + "name": "PROPOSAL_ERROR_INVALID_ASSET_DETAILS", + "number": "33", + "description": "Asset proposal invalid asset details" } ] }, { - "name": "ERC20Withdrawal", - "longName": "ERC20Withdrawal", - "fullName": "vega.ERC20Withdrawal", - "description": "An asset withdrawal for an ERC20 token", + "name": "Value", + "longName": "Vote.Value", + "fullName": "vega.Vote.Value", + "description": "Vote value", + "values": [ + { + "name": "VALUE_UNSPECIFIED", + "number": "0", + "description": "Default value, always invalid" + }, + { + "name": "VALUE_NO", + "number": "1", + "description": "A vote against the proposal" + }, + { + "name": "VALUE_YES", + "number": "2", + "description": "A vote in favour of the proposal" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "FutureProduct", + "longName": "FutureProduct", + "fullName": "vega.FutureProduct", + "description": "Future product configuration", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "vega_asset_id", - "description": "The Vega network internal identifier of the asset", + "name": "maturity", + "description": "Future product maturity (ISO8601/RFC3339 timestamp)", "label": "", "type": "string", "longType": "string", @@ -9161,11 +7036,19 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "target_ethereum_address", - "description": "The target Ethereum wallet address", + "name": "settlement_asset", + "description": "Product settlement asset identifier", "label": "", "type": "string", "longType": "string", @@ -9173,11 +7056,19 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "reference_nonce", - "description": "The reference nonce used for the transaction", + "name": "quote_name", + "description": "Product quote name", "label": "", "type": "string", "longType": "string", @@ -9185,87 +7076,47 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "EthereumAddress", - "longName": "EthereumAddress", - "fullName": "vega.EthereumAddress", - "description": "Used as a wrapper for an Ethereum address (wallet/contract)", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + }, { - "name": "address", - "description": "An Ethereum address", + "name": "oracle_spec_for_settlement_price", + "description": "The oracle spec describing the oracle data of settlement price", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "OracleSpecConfiguration", + "longType": "oracles.v1.OracleSpecConfiguration", + "fullType": "oracles.v1.OracleSpecConfiguration", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "Identifier", - "longName": "Identifier", - "fullName": "vega.Identifier", - "description": "Used as a wrapper type on any possible network address supported by Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": true, - "extensions": [], - "fields": [ - { - "name": "ethereum_address", - "description": "Ethereum network", - "label": "", - "type": "EthereumAddress", - "longType": "EthereumAddress", - "fullType": "vega.EthereumAddress", - "ismap": false, - "isoneof": true, - "oneofdecl": "identifier", - "defaultValue": "" }, { - "name": "bitcoin_address", - "description": "Bitcoin network", + "name": "oracle_spec_for_trading_termination", + "description": "The oracle spec describing the oracle data of trading termination", "label": "", - "type": "BitcoinAddress", - "longType": "BitcoinAddress", - "fullType": "vega.BitcoinAddress", + "type": "OracleSpecConfiguration", + "longType": "oracles.v1.OracleSpecConfiguration", + "fullType": "oracles.v1.OracleSpecConfiguration", "ismap": false, - "isoneof": true, - "oneofdecl": "identifier", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "RemoveValidator", - "longName": "RemoveValidator", - "fullName": "vega.RemoveValidator", - "description": "A message to notify when a validator is being removed from the Vega network", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "id", - "description": "The identifier of the validator", + "name": "oracle_spec_binding", + "description": "The binding between the oracle spec and the settlement price", "label": "", - "type": "Identifier", - "longType": "Identifier", - "fullType": "vega.Identifier", + "type": "OracleSpecToFutureBinding", + "longType": "OracleSpecToFutureBinding", + "fullType": "vega.OracleSpecToFutureBinding", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -9274,104 +7125,90 @@ ] }, { - "name": "ValidatorEvent", - "longName": "ValidatorEvent", - "fullName": "vega.ValidatorEvent", - "description": "An event related to validator management with foreign networks", + "name": "GovernanceData", + "longName": "GovernanceData", + "fullName": "vega.GovernanceData", + "description": "Governance data", "hasExtensions": false, "hasFields": true, - "hasOneofs": true, + "hasOneofs": false, "extensions": [], "fields": [ { - "name": "source_id", - "description": "The source identifier of the event", + "name": "proposal", + "description": "The governance proposal", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Proposal", + "longType": "Proposal", + "fullType": "vega.Proposal", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "add", - "description": "Add a new validator", - "label": "", - "type": "AddValidator", - "longType": "AddValidator", - "fullType": "vega.AddValidator", + "name": "yes", + "description": "All \"yes\" votes in favour of the proposal above", + "label": "repeated", + "type": "Vote", + "longType": "Vote", + "fullType": "vega.Vote", "ismap": false, - "isoneof": true, - "oneofdecl": "action", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "rm", - "description": "Remove an existing validator", - "label": "", - "type": "RemoveValidator", - "longType": "RemoveValidator", - "fullType": "vega.RemoveValidator", + "name": "no", + "description": "All \"no\" votes against the proposal above", + "label": "repeated", + "type": "Vote", + "longType": "Vote", + "fullType": "vega.Vote", "ismap": false, - "isoneof": true, - "oneofdecl": "action", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "commands/v1/validator_commands.proto", - "description": "", - "package": "vega.commands.v1", - "hasEnums": true, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [ - { - "name": "NodeSignatureKind", - "longName": "NodeSignatureKind", - "fullName": "vega.commands.v1.NodeSignatureKind", - "description": "The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc", - "values": [ - { - "name": "NODE_SIGNATURE_KIND_UNSPECIFIED", - "number": "0", - "description": "Represents an unspecified or missing value from the input" }, { - "name": "NODE_SIGNATURE_KIND_ASSET_NEW", - "number": "1", - "description": "Represents a signature for a new asset allow-listing" + "name": "yes_party", + "description": "All latest YES votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", + "label": "repeated", + "type": "YesPartyEntry", + "longType": "GovernanceData.YesPartyEntry", + "fullType": "vega.GovernanceData.YesPartyEntry", + "ismap": true, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL", - "number": "2", - "description": "Represents a signature for an asset withdrawal" + "name": "no_party", + "description": "All latest NO votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", + "label": "repeated", + "type": "NoPartyEntry", + "longType": "GovernanceData.NoPartyEntry", + "fullType": "vega.GovernanceData.NoPartyEntry", + "ismap": true, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] - } - ], - "extensions": [], - "messages": [ + }, { - "name": "ChainEvent", - "longName": "ChainEvent", - "fullName": "vega.commands.v1.ChainEvent", - "description": "An event forwarded to the Vega network to provide information on events happening on other networks", + "name": "NoPartyEntry", + "longName": "GovernanceData.NoPartyEntry", + "fullName": "vega.GovernanceData.NoPartyEntry", + "description": "", "hasExtensions": false, "hasFields": true, - "hasOneofs": true, + "hasOneofs": false, "extensions": [], "fields": [ { - "name": "tx_id", - "description": "The identifier of the transaction in which the events happened, usually a hash", + "name": "key", + "description": "", "label": "", "type": "string", "longType": "string", @@ -9382,120 +7219,68 @@ "defaultValue": "" }, { - "name": "nonce", - "description": "Arbitrary one-time integer used to prevent replay attacks", + "name": "value", + "description": "", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "Vote", + "longType": "Vote", + "fullType": "vega.Vote", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, - { - "name": "builtin", - "description": "Built-in asset event", - "label": "", - "type": "BuiltinAssetEvent", - "longType": "vega.BuiltinAssetEvent", - "fullType": "vega.BuiltinAssetEvent", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" - }, - { - "name": "erc20", - "description": "Ethereum ERC20 event", - "label": "", - "type": "ERC20Event", - "longType": "vega.ERC20Event", - "fullType": "vega.ERC20Event", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" - }, - { - "name": "btc", - "description": "Bitcoin BTC event", - "label": "", - "type": "BTCEvent", - "longType": "vega.BTCEvent", - "fullType": "vega.BTCEvent", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" - }, - { - "name": "validator", - "description": "Validator event", - "label": "", - "type": "ValidatorEvent", - "longType": "vega.ValidatorEvent", - "fullType": "vega.ValidatorEvent", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" } ] }, { - "name": "NodeRegistration", - "longName": "NodeRegistration", - "fullName": "vega.commands.v1.NodeRegistration", - "description": "Used to Register a node as a validator during network start-up", + "name": "YesPartyEntry", + "longName": "GovernanceData.YesPartyEntry", + "fullName": "vega.GovernanceData.YesPartyEntry", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "pub_key", - "description": "Public key, required field", + "name": "key", + "description": "", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "chain_pub_key", - "description": "Public key for the blockchain, required field", + "name": "value", + "description": "", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "Vote", + "longType": "Vote", + "fullType": "vega.Vote", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, + "defaultValue": "" + } + ] + }, + { + "name": "InstrumentConfiguration", + "longName": "InstrumentConfiguration", + "fullName": "vega.InstrumentConfiguration", + "description": "Instrument configuration", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": true, + "extensions": [], + "fields": [ { - "name": "info_url", - "description": "URL with more info on the node", + "name": "name", + "description": "Instrument name", "label": "", "type": "string", "longType": "string", @@ -9514,8 +7299,8 @@ } }, { - "name": "country", - "description": "Country code (ISO 3166-1 alpha-2) for the location of the node", + "name": "code", + "description": "Instrument code", "label": "", "type": "string", "longType": "string", @@ -9532,74 +7317,70 @@ } ] } + }, + { + "name": "future", + "description": "Future", + "label": "", + "type": "FutureProduct", + "longType": "FutureProduct", + "fullType": "vega.FutureProduct", + "ismap": false, + "isoneof": true, + "oneofdecl": "product", + "defaultValue": "" } ] }, { - "name": "NodeSignature", - "longName": "NodeSignature", - "fullName": "vega.commands.v1.NodeSignature", - "description": "Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network", + "name": "NewAsset", + "longName": "NewAsset", + "fullName": "vega.NewAsset", + "description": "New asset on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "id", - "description": "The identifier of the resource being signed", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "sig", - "description": "The signature", - "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "kind", - "description": "The kind of resource being signed", + "name": "changes", + "description": "The configuration of the new asset", "label": "", - "type": "NodeSignatureKind", - "longType": "NodeSignatureKind", - "fullType": "vega.commands.v1.NodeSignatureKind", + "type": "AssetDetails", + "longType": "AssetDetails", + "fullType": "vega.AssetDetails", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } } ] }, { - "name": "NodeVote", - "longName": "NodeVote", - "fullName": "vega.commands.v1.NodeVote", - "description": "Used when a node votes for validating a given resource exists or is valid,\nfor example, an ERC20 deposit is valid and exists on ethereum", + "name": "NewMarket", + "longName": "NewMarket", + "fullName": "vega.NewMarket", + "description": "New market on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "pub_key", - "description": "Public key, required field", + "name": "changes", + "description": "The configuration of the new market", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "NewMarketConfiguration", + "longType": "NewMarketConfiguration", + "fullType": "vega.NewMarketConfiguration", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -9607,273 +7388,259 @@ "options": { "validator.field": [ { - "name": "string_not_empty", + "name": "msg_exists", "value": true } ] } }, { - "name": "reference", - "description": "Reference, required field", + "name": "liquidity_commitment", + "description": "The commitment from the party creating the NewMarket proposal", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "NewMarketCommitment", + "longType": "NewMarketCommitment", + "fullType": "vega.NewMarketCommitment", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" } ] - } - ], - "services": [] - }, - { - "name": "events/v1/events.proto", - "description": "", - "package": "vega.events.v1", - "hasEnums": true, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [ - { - "name": "BusEventType", - "longName": "BusEventType", - "fullName": "vega.events.v1.BusEventType", - "description": "An (event) bus event type is used to specify a type of event\nIt has 2 styles of event:\nSingle values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item\nGroup values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items", - "values": [ - { - "name": "BUS_EVENT_TYPE_UNSPECIFIED", - "number": "0", - "description": "Default value, always invalid" - }, - { - "name": "BUS_EVENT_TYPE_ALL", - "number": "1", - "description": "Events of ALL event types, used when filtering stream from event bus" - }, - { - "name": "BUS_EVENT_TYPE_TIME_UPDATE", - "number": "2", - "description": "Event for blockchain time updates" - }, - { - "name": "BUS_EVENT_TYPE_TRANSFER_RESPONSES", - "number": "3", - "description": "Event for when a transfer happens internally, contains the transfer information" - }, - { - "name": "BUS_EVENT_TYPE_POSITION_RESOLUTION", - "number": "4", - "description": "Event indicating position resolution has occurred" - }, - { - "name": "BUS_EVENT_TYPE_ORDER", - "number": "5", - "description": "Event for order updates, both new and existing orders" - }, - { - "name": "BUS_EVENT_TYPE_ACCOUNT", - "number": "6", - "description": "Event for account updates" - }, - { - "name": "BUS_EVENT_TYPE_PARTY", - "number": "7", - "description": "Event for party updates" - }, - { - "name": "BUS_EVENT_TYPE_TRADE", - "number": "8", - "description": "Event indicating a new trade has occurred" - }, - { - "name": "BUS_EVENT_TYPE_MARGIN_LEVELS", - "number": "9", - "description": "Event indicating margin levels have changed for a party" - }, - { - "name": "BUS_EVENT_TYPE_PROPOSAL", - "number": "10", - "description": "Event for proposal updates (for governance)" - }, - { - "name": "BUS_EVENT_TYPE_VOTE", - "number": "11", - "description": "Event indicating a new vote has occurred (for governance)" - }, - { - "name": "BUS_EVENT_TYPE_MARKET_DATA", - "number": "12", - "description": "Event for market data updates" - }, - { - "name": "BUS_EVENT_TYPE_NODE_SIGNATURE", - "number": "13", - "description": "Event for a new signature for a Vega node" - }, - { - "name": "BUS_EVENT_TYPE_LOSS_SOCIALIZATION", - "number": "14", - "description": "Event indicating loss socialisation occurred for a party" - }, - { - "name": "BUS_EVENT_TYPE_SETTLE_POSITION", - "number": "15", - "description": "Event for when a position is being settled" - }, - { - "name": "BUS_EVENT_TYPE_SETTLE_DISTRESSED", - "number": "16", - "description": "Event for when a position is distressed" - }, - { - "name": "BUS_EVENT_TYPE_MARKET_CREATED", - "number": "17", - "description": "Event indicating a new market was created" - }, - { - "name": "BUS_EVENT_TYPE_ASSET", - "number": "18", - "description": "Event for when an asset is added to Vega" - }, - { - "name": "BUS_EVENT_TYPE_MARKET_TICK", - "number": "19", - "description": "Event indicating a market tick event" - }, - { - "name": "BUS_EVENT_TYPE_WITHDRAWAL", - "number": "20", - "description": "Event for when a withdrawal occurs" - }, - { - "name": "BUS_EVENT_TYPE_DEPOSIT", - "number": "21", - "description": "Event for when a deposit occurs" - }, + }, + { + "name": "NewMarketCommitment", + "longName": "NewMarketCommitment", + "fullName": "vega.NewMarketCommitment", + "description": "A commitment of liquidity to be made by the party which proposes a market", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "BUS_EVENT_TYPE_AUCTION", - "number": "22", - "description": "Event indicating a change in auction state, for example starting or ending an auction" + "name": "commitment_amount", + "description": "Specified as a unitless number that represents the amount of settlement asset of the market", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_RISK_FACTOR", - "number": "23", - "description": "Event indicating a risk factor has been updated" + "name": "fee", + "description": "Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_NETWORK_PARAMETER", - "number": "24", - "description": "Event indicating a network parameter has been added or updated" + "name": "sells", + "description": "A set of liquidity sell orders to meet the liquidity provision obligation", + "label": "repeated", + "type": "LiquidityOrder", + "longType": "LiquidityOrder", + "fullType": "vega.LiquidityOrder", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_LIQUIDITY_PROVISION", - "number": "25", - "description": "Event indicating a liquidity provision has been created or updated" + "name": "buys", + "description": "A set of liquidity buy orders to meet the liquidity provision obligation", + "label": "repeated", + "type": "LiquidityOrder", + "longType": "LiquidityOrder", + "fullType": "vega.LiquidityOrder", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_MARKET_UPDATED", - "number": "26", - "description": "Event indicating a new market was created" - }, + "name": "reference", + "description": "A reference to be associated to all orders created from this commitment", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "NewMarketConfiguration", + "longName": "NewMarketConfiguration", + "fullName": "vega.NewMarketConfiguration", + "description": "Configuration for a new market on Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": true, + "extensions": [], + "fields": [ { - "name": "BUS_EVENT_TYPE_ORACLE_SPEC", - "number": "27", - "description": "Event indicating an oracle spec has been created or updated" + "name": "instrument", + "description": "New market instrument configuration", + "label": "", + "type": "InstrumentConfiguration", + "longType": "InstrumentConfiguration", + "fullType": "vega.InstrumentConfiguration", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } }, { - "name": "BUS_EVENT_TYPE_ORACLE_DATA", - "number": "28", - "description": "Event indicating that an oracle data has been broadcast" + "name": "decimal_places", + "description": "Decimal places used for the new market", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "int_lt", + "value": 150 + } + ] + } }, { - "name": "BUS_EVENT_TYPE_DELEGATION_BALANCE", - "number": "29", - "description": "Event indicating that an delegation balance of a party to a node for current epoch has changed" + "name": "metadata", + "description": "Optional new market meta data, tags", + "label": "repeated", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE", - "number": "30", - "description": "Event indicating that an delegation balance of a party to a node for next epoch has changed" + "name": "price_monitoring_parameters", + "description": "Price monitoring parameters", + "label": "", + "type": "PriceMonitoringParameters", + "longType": "PriceMonitoringParameters", + "fullType": "vega.PriceMonitoringParameters", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_EPOCH_UPDATE", - "number": "31", - "description": "Event indicating the start or end of an epoch" + "name": "liquidity_monitoring_parameters", + "description": "Liquidity monitoring parameters", + "label": "", + "type": "LiquidityMonitoringParameters", + "longType": "LiquidityMonitoringParameters", + "fullType": "vega.LiquidityMonitoringParameters", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_VALIDATOR_UPDATE", - "number": "32", - "description": "Event indicating that validator node has been updated" + "name": "simple", + "description": "Simple risk model parameters, valid only if MODEL_SIMPLE is selected", + "label": "", + "type": "SimpleModelParams", + "longType": "SimpleModelParams", + "fullType": "vega.SimpleModelParams", + "ismap": false, + "isoneof": true, + "oneofdecl": "risk_parameters", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_STAKING_EVENT", - "number": "33", - "description": "Event indicating a new staking event have been processed by the network" + "name": "log_normal", + "description": "Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected", + "label": "", + "type": "LogNormalRiskModel", + "longType": "LogNormalRiskModel", + "fullType": "vega.LogNormalRiskModel", + "ismap": false, + "isoneof": true, + "oneofdecl": "risk_parameters", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_MARKET", - "number": "101", - "description": "Event indicating a market related event, for example when a market opens" + "name": "continuous", + "description": "Continuous trading", + "label": "", + "type": "ContinuousTrading", + "longType": "ContinuousTrading", + "fullType": "vega.ContinuousTrading", + "ismap": false, + "isoneof": true, + "oneofdecl": "trading_mode", + "defaultValue": "" }, { - "name": "BUS_EVENT_TYPE_TX_ERROR", - "number": "201", - "description": "Event used to report failed transactions back to a user, this is excluded from the ALL type" + "name": "discrete", + "description": "Discrete trading", + "label": "", + "type": "DiscreteTrading", + "longType": "DiscreteTrading", + "fullType": "vega.DiscreteTrading", + "ismap": false, + "isoneof": true, + "oneofdecl": "trading_mode", + "defaultValue": "" } ] }, { - "name": "Type", - "longName": "StakingEvent.Type", - "fullName": "vega.events.v1.StakingEvent.Type", - "description": "", - "values": [ - { - "name": "TYPE_UNSPECIFIED", - "number": "0", - "description": "Default value" - }, - { - "name": "TYPE_DEPOSIT", - "number": "1", - "description": "Indicate of a stake deposit instruction" - }, - { - "name": "TYPE_REMOVE", - "number": "2", - "description": "Indicate of a stake remove instruction" - } - ] - } - ], - "extensions": [], - "messages": [ - { - "name": "AuctionEvent", - "longName": "AuctionEvent", - "fullName": "vega.events.v1.AuctionEvent", - "description": "An auction event indicating a change in auction state, for example starting or ending an auction", + "name": "Proposal", + "longName": "Proposal", + "fullName": "vega.Proposal", + "description": "Governance proposal", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier for the event", + "name": "id", + "description": "Unique proposal identifier", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "reference", + "description": "Proposal reference", "label": "", "type": "string", "longType": "string", @@ -9884,32 +7651,43 @@ "defaultValue": "" }, { - "name": "opening_auction", - "description": "True if the event indicates an auction opening and False otherwise", + "name": "party_id", + "description": "Party identifier of the author (the party submitting the proposal)", "label": "", - "type": "bool", - "longType": "bool", - "fullType": "bool", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "leave", - "description": "True if the event indicates leaving auction mode and False otherwise", + "name": "state", + "description": "Proposal state - See (Proposal.State)[#vega.Proposal.State] definition", "label": "", - "type": "bool", - "longType": "bool", - "fullType": "bool", + "type": "State", + "longType": "Proposal.State", + "fullType": "vega.Proposal.State", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": null + } }, { - "name": "start", - "description": "Timestamp containing the start time for an auction", + "name": "timestamp", + "description": "Proposal timestamp for date and time (in nanoseconds) when proposal was submitted to the network", "label": "", "type": "int64", "longType": "int64", @@ -9920,36 +7698,44 @@ "defaultValue": "" }, { - "name": "end", - "description": "Timestamp containing the end time for an auction", + "name": "terms", + "description": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "ProposalTerms", + "longType": "ProposalTerms", + "fullType": "vega.ProposalTerms", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } }, { - "name": "trigger", - "description": "the reason this market is/was in auction", + "name": "reason", + "description": "A reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses", "label": "", - "type": "AuctionTrigger", - "longType": "vega.AuctionTrigger", - "fullType": "vega.AuctionTrigger", + "type": "ProposalError", + "longType": "ProposalError", + "fullType": "vega.ProposalError", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "extension_trigger", - "description": "If an auction was ongoing, but was extended for whatever reason, this field will\nbe set to the trigger type indicating which component extended the auction", + "name": "error_details", + "description": "The detailed error associated to the reason.", "label": "", - "type": "AuctionTrigger", - "longType": "vega.AuctionTrigger", - "fullType": "vega.AuctionTrigger", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -9958,474 +7744,681 @@ ] }, { - "name": "BusEvent", - "longName": "BusEvent", - "fullName": "vega.events.v1.BusEvent", - "description": "A bus event is a container for event bus events emitted by Vega", + "name": "ProposalTerms", + "longName": "ProposalTerms", + "fullName": "vega.ProposalTerms", + "description": "Terms for a governance proposal on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": true, "extensions": [], "fields": [ { - "name": "id", - "description": "A unique event identifier for the message", + "name": "closing_timestamp", + "description": "Timestamp (Unix time in seconds) when voting closes for this proposal,\nconstrained by `minCloseInSeconds` and `maxCloseInSeconds` network parameters", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "int_gt", + "value": 0 + } + ] + } }, { - "name": "block", - "description": "The batch (or block) of transactions that the events relate to", + "name": "enactment_timestamp", + "description": "Timestamp (Unix time in seconds) when proposal gets enacted (if passed),\nconstrained by `minEnactInSeconds` and `maxEnactInSeconds` network parameters", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "int_gt", + "value": 0 + } + ] + } }, { - "name": "type", - "description": "The type of bus event (one of the list below)", + "name": "validation_timestamp", + "description": "Validation timestamp (Unix time in seconds)", "label": "", - "type": "BusEventType", - "longType": "BusEventType", - "fullType": "vega.events.v1.BusEventType", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "time_update", - "description": "Time update events - See [TimeUpdate](#vega.TimeUpdate)", + "name": "update_market", + "description": "Proposal change for modifying an existing market on Vega", "label": "", - "type": "TimeUpdate", - "longType": "TimeUpdate", - "fullType": "vega.events.v1.TimeUpdate", + "type": "UpdateMarket", + "longType": "UpdateMarket", + "fullType": "vega.UpdateMarket", "ismap": false, "isoneof": true, - "oneofdecl": "event", + "oneofdecl": "change", "defaultValue": "" }, { - "name": "transfer_responses", - "description": "Transfer responses update events - See [TransferResponses](#vega.TransferResponses)", + "name": "new_market", + "description": "Proposal change for creating new market on Vega", "label": "", - "type": "TransferResponses", - "longType": "TransferResponses", - "fullType": "vega.events.v1.TransferResponses", + "type": "NewMarket", + "longType": "NewMarket", + "fullType": "vega.NewMarket", "ismap": false, "isoneof": true, - "oneofdecl": "event", + "oneofdecl": "change", "defaultValue": "" }, { - "name": "position_resolution", - "description": "Position resolution events - See [PositionResolution](#vega.PositionResolution)", + "name": "update_network_parameter", + "description": "Proposal change for updating Vega network parameters", "label": "", - "type": "PositionResolution", - "longType": "PositionResolution", - "fullType": "vega.events.v1.PositionResolution", + "type": "UpdateNetworkParameter", + "longType": "UpdateNetworkParameter", + "fullType": "vega.UpdateNetworkParameter", "ismap": false, "isoneof": true, - "oneofdecl": "event", + "oneofdecl": "change", "defaultValue": "" }, { - "name": "order", - "description": "Order events", + "name": "new_asset", + "description": "Proposal change for creating new assets on Vega", "label": "", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "NewAsset", + "longType": "NewAsset", + "fullType": "vega.NewAsset", "ismap": false, "isoneof": true, - "oneofdecl": "event", + "oneofdecl": "change", "defaultValue": "" - }, + } + ] + }, + { + "name": "UpdateMarket", + "longName": "UpdateMarket", + "fullName": "vega.UpdateMarket", + "description": "Update an existing market on Vega", + "hasExtensions": false, + "hasFields": false, + "hasOneofs": false, + "extensions": [], + "fields": [] + }, + { + "name": "UpdateNetworkParameter", + "longName": "UpdateNetworkParameter", + "fullName": "vega.UpdateNetworkParameter", + "description": "Update network configuration on Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "account", - "description": "Account events", + "name": "changes", + "description": "The network parameter to update", "label": "", - "type": "Account", - "longType": "vega.Account", - "fullType": "vega.Account", + "type": "NetworkParameter", + "longType": "NetworkParameter", + "fullType": "vega.NetworkParameter", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } + } + ] + }, + { + "name": "Vote", + "longName": "Vote", + "fullName": "vega.Vote", + "description": "Governance vote", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "party_id", + "description": "Voter's party identifier", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "party", - "description": "Party events", + "name": "value", + "description": "Actual vote", "label": "", - "type": "Party", - "longType": "vega.Party", - "fullType": "vega.Party", + "type": "Value", + "longType": "Vote.Value", + "fullType": "vega.Vote.Value", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": null + } }, { - "name": "trade", - "description": "Trade events", + "name": "proposal_id", + "description": "Identifier of the proposal being voted on", "label": "", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "margin_levels", - "description": "Margin level update events", + "name": "timestamp", + "description": "Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network", "label": "", - "type": "MarginLevels", - "longType": "vega.MarginLevels", - "fullType": "vega.MarginLevels", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "proposal", - "description": "Proposal events (for governance)", + "name": "total_governance_token_balance", + "description": "Total number of governance token for the party that casted the vote", "label": "", - "type": "Proposal", - "longType": "vega.Proposal", - "fullType": "vega.Proposal", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "vote", - "description": "Vote events (for governance)", + "name": "total_governance_token_weight", + "description": "The weight of this vote based on the total of governance token", "label": "", - "type": "Vote", - "longType": "vega.Vote", - "fullType": "vega.Vote", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + } + ], + "services": [] + }, + { + "name": "oracles/v1/data.proto", + "description": "", + "package": "oracles.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [], + "extensions": [], + "messages": [ + { + "name": "OracleData", + "longName": "OracleData", + "fullName": "oracles.v1.OracleData", + "description": "OracleData describes an oracle data that has been broadcast.", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "market_data", - "description": "Market data events", - "label": "", - "type": "MarketData", - "longType": "vega.MarketData", - "fullType": "vega.MarketData", + "name": "pub_keys", + "description": "pubKeys is the list of authorized public keys that signed the data for this\noracle. All the public keys in the oracle data should be contained in these\npublic keys.", + "label": "repeated", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "node_signature", - "description": "Node signature events", - "label": "", - "type": "NodeSignature", - "longType": "vega.commands.v1.NodeSignature", - "fullType": "vega.commands.v1.NodeSignature", + "name": "data", + "description": "data holds all the properties of the oracle data", + "label": "repeated", + "type": "Property", + "longType": "Property", + "fullType": "oracles.v1.Property", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "loss_socialization", - "description": "Loss socialization events - See [LossSocialization](#vega.LossSocialization)", - "label": "", - "type": "LossSocialization", - "longType": "LossSocialization", - "fullType": "vega.events.v1.LossSocialization", + "name": "matched_spec_ids", + "description": "matched_specs_ids lists all the oracle specs that matched this oracle data.", + "label": "repeated", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "settle_position", - "description": "Position settlement events - See [SettlePosition](#vega.SettlePosition)", + "name": "broadcast_at", + "description": "broadcast_at is the time at which the data was broadcast for the first\ntime.", "label": "", - "type": "SettlePosition", - "longType": "SettlePosition", - "fullType": "vega.events.v1.SettlePosition", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "Property", + "longName": "Property", + "fullName": "oracles.v1.Property", + "description": "Property describes one property of an oracle spec with a key with its value.", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "settle_distressed", - "description": "Position distressed events - See [SettleDistressed](#vega.SettleDistressed)", + "name": "name", + "description": "name is the name of the property.", "label": "", - "type": "SettleDistressed", - "longType": "SettleDistressed", - "fullType": "vega.events.v1.SettleDistressed", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "market_created", - "description": "Market created events", + "name": "value", + "description": "value is the value of the property.", "label": "", - "type": "Market", - "longType": "vega.Market", - "fullType": "vega.Market", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" + } + ] + } + ], + "services": [] + }, + { + "name": "commands/v1/commands.proto", + "description": "", + "package": "vega.commands.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [ + { + "name": "Method", + "longName": "UndelegateSubmission.Method", + "fullName": "vega.commands.v1.UndelegateSubmission.Method", + "description": "", + "values": [ + { + "name": "METHOD_UNSPECIFIED", + "number": "0", + "description": "" }, { - "name": "asset", - "description": "Asset events", - "label": "", - "type": "Asset", - "longType": "vega.Asset", - "fullType": "vega.Asset", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "name": "METHOD_NOW", + "number": "1", + "description": "" }, { - "name": "market_tick", - "description": "Market tick events - See [MarketTick](#vega.MarketTick)", - "label": "", - "type": "MarketTick", - "longType": "MarketTick", - "fullType": "vega.events.v1.MarketTick", - "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "name": "METHOD_AT_END_OF_EPOCH", + "number": "2", + "description": "" }, { - "name": "withdrawal", - "description": "Withdrawal events", + "name": "METHOD_IN_ANGER", + "number": "3", + "description": "" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "DelegateSubmission", + "longName": "DelegateSubmission", + "fullName": "vega.commands.v1.DelegateSubmission", + "description": "A command to submit an instruction to delegate some stake to a node", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "node_id", + "description": "The ID for the node to delegate to", "label": "", - "type": "Withdrawal", - "longType": "vega.Withdrawal", - "fullType": "vega.Withdrawal", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "deposit", - "description": "Deposit events", + "name": "amount", + "description": "The amount of stake to delegate", "label": "", - "type": "Deposit", - "longType": "vega.Deposit", - "fullType": "vega.Deposit", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "LiquidityProvisionSubmission", + "longName": "LiquidityProvisionSubmission", + "fullName": "vega.commands.v1.LiquidityProvisionSubmission", + "description": "A liquidity provision submitted for a given market", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "auction", - "description": "Auction events - See [AuctionEvent](#vega.AuctionEvent)", + "name": "market_id", + "description": "Market identifier for the order, required field", "label": "", - "type": "AuctionEvent", - "longType": "AuctionEvent", - "fullType": "vega.events.v1.AuctionEvent", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "risk_factor", - "description": "Risk factor events", + "name": "commitment_amount", + "description": "Specified as a unitless number that represents the amount of settlement asset of the market", "label": "", - "type": "RiskFactor", - "longType": "vega.RiskFactor", - "fullType": "vega.RiskFactor", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "network_parameter", - "description": "Network parameter events", + "name": "fee", + "description": "Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers", "label": "", - "type": "NetworkParameter", - "longType": "vega.NetworkParameter", - "fullType": "vega.NetworkParameter", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "liquidity_provision", - "description": "LiquidityProvision events", - "label": "", - "type": "LiquidityProvision", - "longType": "vega.LiquidityProvision", - "fullType": "vega.LiquidityProvision", + "name": "sells", + "description": "A set of liquidity sell orders to meet the liquidity provision obligation", + "label": "repeated", + "type": "LiquidityOrder", + "longType": "vega.LiquidityOrder", + "fullType": "vega.LiquidityOrder", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "market_updated", - "description": "Market created events", - "label": "", - "type": "Market", - "longType": "vega.Market", - "fullType": "vega.Market", + "name": "buys", + "description": "A set of liquidity buy orders to meet the liquidity provision obligation", + "label": "repeated", + "type": "LiquidityOrder", + "longType": "vega.LiquidityOrder", + "fullType": "vega.LiquidityOrder", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "oracle_spec", - "description": "OracleSpec events", + "name": "reference", + "description": "A reference to be added to every order created out of this liquidityProvisionSubmission", "label": "", - "type": "OracleSpec", - "longType": "oracles.v1.OracleSpec", - "fullType": "oracles.v1.OracleSpec", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "OrderAmendment", + "longName": "OrderAmendment", + "fullName": "vega.commands.v1.OrderAmendment", + "description": "An order amendment is a request to amend or update an existing order on Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "oracle_data", - "description": "OracleData events", + "name": "order_id", + "description": "Order identifier, this is required to find the order and will not be updated, required field", "label": "", - "type": "OracleData", - "longType": "oracles.v1.OracleData", - "fullType": "oracles.v1.OracleData", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", - "defaultValue": "" + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "delegation_balance", - "description": "Delegation balance events", + "name": "market_id", + "description": "Market identifier, this is required to find the order and will not be updated", "label": "", - "type": "DelegationBalanceEvent", - "longType": "DelegationBalanceEvent", - "fullType": "vega.events.v1.DelegationBalanceEvent", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "pending_delegation_balance", - "description": "Pending delegation balance events", + "name": "price", + "description": "Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)", "label": "", - "type": "PendingDelegationBalanceEvent", - "longType": "PendingDelegationBalanceEvent", - "fullType": "vega.events.v1.PendingDelegationBalanceEvent", + "type": "Price", + "longType": "vega.Price", + "fullType": "vega.Price", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "epoch_event", - "description": "Epoch update events - See [Epoch](#vega.Epoch)", + "name": "size_delta", + "description": "Amend the size for the order by the delta specified:\n- To reduce the size from the current value set a negative integer value\n- To increase the size from the current value, set a positive integer value\n- To leave the size unchanged set a value of zero", "label": "", - "type": "EpochEvent", - "longType": "EpochEvent", - "fullType": "vega.events.v1.EpochEvent", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "validator_update", - "description": "Validator update events", + "name": "expires_at", + "description": "Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", "label": "", - "type": "ValidatorUpdate", - "longType": "ValidatorUpdate", - "fullType": "vega.events.v1.ValidatorUpdate", + "type": "Timestamp", + "longType": "vega.Timestamp", + "fullType": "vega.Timestamp", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "staking_event", - "description": "Staking event", + "name": "time_in_force", + "description": "Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged\n- See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`", "label": "", - "type": "StakingEvent", - "longType": "StakingEvent", - "fullType": "vega.events.v1.StakingEvent", + "type": "TimeInForce", + "longType": "vega.Order.TimeInForce", + "fullType": "vega.Order.TimeInForce", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "market", - "description": "Market tick events - See [MarketEvent](#vega.MarketEvent)", + "name": "pegged_offset", + "description": "Amend the pegged order offset for the order", "label": "", - "type": "MarketEvent", - "longType": "MarketEvent", - "fullType": "vega.events.v1.MarketEvent", + "type": "Int64Value", + "longType": "google.protobuf.Int64Value", + "fullType": "google.protobuf.Int64Value", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "tx_err_event", - "description": "Transaction error events, not included in the ALL event type", + "name": "pegged_reference", + "description": "Amend the pegged order reference for the order\n- See [`PeggedReference`](#vega.PeggedReference)", "label": "", - "type": "TxErrorEvent", - "longType": "TxErrorEvent", - "fullType": "vega.events.v1.TxErrorEvent", + "type": "PeggedReference", + "longType": "vega.PeggedReference", + "fullType": "vega.PeggedReference", "ismap": false, - "isoneof": true, - "oneofdecl": "event", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" } ] }, { - "name": "DelegationBalanceEvent", - "longName": "DelegationBalanceEvent", - "fullName": "vega.events.v1.DelegationBalanceEvent", - "description": "DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect", + "name": "OrderCancellation", + "longName": "OrderCancellation", + "fullName": "vega.commands.v1.OrderCancellation", + "description": "An order cancellation is a request to cancel an existing order on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party", - "description": "", + "name": "order_id", + "description": "Unique identifier for the order (set by the system after consensus), required field", "label": "", "type": "string", "longType": "string", @@ -10436,8 +8429,8 @@ "defaultValue": "" }, { - "name": "node_id", - "description": "", + "name": "market_id", + "description": "Market identifier for the order, required field", "label": "", "type": "string", "longType": "string", @@ -10446,142 +8439,122 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, - { - "name": "amount", - "description": "", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" } ] }, { - "name": "EpochEvent", - "longName": "EpochEvent", - "fullName": "vega.events.v1.EpochEvent", - "description": "Epoch details", + "name": "OrderSubmission", + "longName": "OrderSubmission", + "fullName": "vega.commands.v1.OrderSubmission", + "description": "An order submission is a request to submit or create a new order on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "seq", - "description": "Sequence number that increases by one each epoch", + "name": "market_id", + "description": "Market identifier for the order, required field", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "start_time", - "description": "What time did this epoch start", + "name": "price", + "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places,\n, required field for limit orders, however it is not required for market orders", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "expire_time", - "description": "What time should this epoch end", + "name": "size", + "description": "Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "int_gt", + "value": 0 + } + ] + } }, { - "name": "end_time", - "description": "What time did it actually end", + "name": "side", + "description": "Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "Side", + "longType": "vega.Side", + "fullType": "vega.Side", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "LossSocialization", - "longName": "LossSocialization", - "fullName": "vega.events.v1.LossSocialization", - "description": "A loss socialization event contains details on the amount of wins unable to be distributed", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier for the event", + "name": "time_in_force", + "description": "Time in force indicates how long an order will remain active before it is executed or expires, required field\n- See [`Order.TimeInForce`](#vega.Order.TimeInForce)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "TimeInForce", + "longType": "vega.Order.TimeInForce", + "fullType": "vega.Order.TimeInForce", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "party_id", - "description": "Party identifier (public key) for the event", + "name": "expires_at", + "description": "Timestamp for when the order will expire, in nanoseconds since the epoch,\nrequired field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "amount", - "description": "Amount distributed", + "name": "type", + "description": "Type for the order, required field - See [`Order.Type`](#vega.Order.Type)", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "Type", + "longType": "vega.Order.Type", + "fullType": "vega.Order.Type", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketEvent", - "longName": "MarketEvent", - "fullName": "vega.events.v1.MarketEvent", - "description": "MarketEvent - the common denominator for all market events\ninterface has a method to return a string for logging", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier for the event", + "name": "reference", + "description": "Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently\nset internally by the node to return a unique reference identifier for the order submission", "label": "", "type": "string", "longType": "string", @@ -10592,12 +8565,12 @@ "defaultValue": "" }, { - "name": "payload", - "description": "Payload is a unique information string", + "name": "pegged_order", + "description": "Used to specify the details for a pegged order\n- See [`PeggedOrder`](#vega.PeggedOrder)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "PeggedOrder", + "longType": "vega.PeggedOrder", + "fullType": "vega.PeggedOrder", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -10606,18 +8579,18 @@ ] }, { - "name": "MarketTick", - "longName": "MarketTick", - "fullName": "vega.events.v1.MarketTick", - "description": "A market ticket event contains the time value for when a particular market was last processed on Vega", + "name": "ProposalSubmission", + "longName": "ProposalSubmission", + "fullName": "vega.commands.v1.ProposalSubmission", + "description": "A command to submit a new proposal for the\nvega network governance", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "id", - "description": "Market identifier for the event", + "name": "reference", + "description": "Proposal reference", "label": "", "type": "string", "longType": "string", @@ -10628,41 +8601,61 @@ "defaultValue": "" }, { - "name": "time", - "description": "Timestamp containing latest update from Vega blockchain aka Vega-time", + "name": "terms", + "description": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "ProposalTerms", + "longType": "vega.ProposalTerms", + "fullType": "vega.ProposalTerms", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "msg_exists", + "value": true + } + ] + } } ] }, { - "name": "PendingDelegationBalanceEvent", - "longName": "PendingDelegationBalanceEvent", - "fullName": "vega.events.v1.PendingDelegationBalanceEvent", - "description": "PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch", + "name": "RestoreSnapshot", + "longName": "RestoreSnapshot", + "fullName": "vega.commands.v1.RestoreSnapshot", + "description": "A command that loads the state from a given checkpoint", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party", + "name": "data", "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "UndelegateSubmission", + "longName": "UndelegateSubmission", + "fullName": "vega.commands.v1.UndelegateSubmission", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { "name": "node_id", "description": "", @@ -10673,11 +8666,19 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "delegation_amount", - "description": "", + "name": "amount", + "description": "optional, if not specified = ALL", "label": "", "type": "uint64", "longType": "uint64", @@ -10688,12 +8689,12 @@ "defaultValue": "" }, { - "name": "undelegation_amount", + "name": "method", "description": "", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "Method", + "longType": "UndelegateSubmission.Method", + "fullType": "vega.commands.v1.UndelegateSubmission.Method", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -10702,18 +8703,18 @@ ] }, { - "name": "PositionResolution", - "longName": "PositionResolution", - "fullName": "vega.events.v1.PositionResolution", - "description": "A position resolution event contains information on distressed trades", + "name": "VoteSubmission", + "longName": "VoteSubmission", + "fullName": "vega.commands.v1.VoteSubmission", + "description": "A command to submit a new vote for a governance\nproposal.", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier for the event", + "name": "proposal_id", + "description": "The ID of the proposal to vote for.", "label": "", "type": "string", "longType": "string", @@ -10721,71 +8722,129 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } }, { - "name": "distressed", - "description": "Number of distressed traders", + "name": "value", + "description": "The actual value of the vote", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "Value", + "longType": "vega.Vote.Value", + "fullType": "vega.Vote.Value", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "WithdrawSubmission", + "longName": "WithdrawSubmission", + "fullName": "vega.commands.v1.WithdrawSubmission", + "description": "Represents the submission request to withdraw funds for a party on Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "amount", + "description": "The amount to be withdrawn", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "closed", - "description": "Number of close outs", + "name": "asset", + "description": "The asset we want to withdraw", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "mark_price", - "description": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "ext", + "description": "Foreign chain specifics", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "WithdrawExt", + "longType": "vega.WithdrawExt", + "fullType": "vega.WithdrawExt", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" } ] - }, + } + ], + "services": [] + }, + { + "name": "chain_events.proto", + "description": "", + "package": "vega", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [], + "extensions": [], + "messages": [ { - "name": "SettleDistressed", - "longName": "SettleDistressed", - "fullName": "vega.events.v1.SettleDistressed", - "description": "A settle distressed event contains information on distressed trading parties who are closed out", + "name": "AddValidator", + "longName": "AddValidator", + "fullName": "vega.AddValidator", + "description": "A message to notify when a new validator is being added to the Vega network", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier for the event", + "name": "id", + "description": "The identifier of the validator", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Identifier", + "longType": "Identifier", + "fullType": "vega.Identifier", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "BTCDeposit", + "longName": "BTCDeposit", + "fullName": "vega.BTCDeposit", + "description": "A Bitcoin deposit into Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "party_id", - "description": "Party identifier (public key) for the event", + "name": "vega_asset_id", + "description": "The Vega network internal identifier of the asset", "label": "", "type": "string", "longType": "string", @@ -10796,24 +8855,24 @@ "defaultValue": "" }, { - "name": "margin", - "description": "Margin value as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "source_btc_address", + "description": "The BTC wallet initiating the deposit", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "price", - "description": "Price as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "target_party_id", + "description": "The Vega party identifier (pub-key) which is the target of the deposit", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -10822,78 +8881,78 @@ ] }, { - "name": "SettlePosition", - "longName": "SettlePosition", - "fullName": "vega.events.v1.SettlePosition", - "description": "A settle position event contains position settlement information for a party", + "name": "BTCEvent", + "longName": "BTCEvent", + "fullName": "vega.BTCEvent", + "description": "An event from the Bitcoin network", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier for the event", + "name": "index", + "description": "The index of the transaction", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "party_id", - "description": "Party identifier (public key) for the event", + "name": "block", + "description": "The block in which the transaction happened", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "price", - "description": "Price of settlement as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "deposit", + "description": "Deposit BTC asset", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "BTCDeposit", + "longType": "BTCDeposit", + "fullType": "vega.BTCDeposit", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "action", "defaultValue": "" }, { - "name": "trade_settlements", - "description": "A collection of 1 or more trade settlements", - "label": "repeated", - "type": "TradeSettlement", - "longType": "TradeSettlement", - "fullType": "vega.events.v1.TradeSettlement", + "name": "withdrawal", + "description": "Withdraw BTC asset", + "label": "", + "type": "BTCWithdrawal", + "longType": "BTCWithdrawal", + "fullType": "vega.BTCWithdrawal", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "action", "defaultValue": "" } ] }, { - "name": "StakingEvent", - "longName": "StakingEvent", - "fullName": "vega.events.v1.StakingEvent", - "description": "StakingEvent - an event notifying of stake being deposited or removed for a given party\nThese events are emitted for every Staking deposit or removed accepted by the network", + "name": "BTCWithdrawal", + "longName": "BTCWithdrawal", + "fullName": "vega.BTCWithdrawal", + "description": "A Bitcoin withdrawal from Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "id", - "description": "The internal ID for this staking event", + "name": "vega_asset_id", + "description": "The vega network internal identifier of the asset", "label": "", "type": "string", "longType": "string", @@ -10904,32 +8963,20 @@ "defaultValue": "" }, { - "name": "type", - "description": "The type of event", - "label": "", - "type": "Type", - "longType": "StakingEvent.Type", - "fullType": "vega.events.v1.StakingEvent.Type", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "ts", - "description": "The timestamps at which the event was emitted by ethereum", + "name": "source_party_id", + "description": "The party identifier (pub-key) initiating the withdrawal", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "party", - "description": "The party to whom the event is directed at.", + "name": "target_btc_address", + "description": "Target Bitcoin wallet address", "label": "", "type": "string", "longType": "string", @@ -10940,8 +8987,8 @@ "defaultValue": "" }, { - "name": "amount", - "description": "The amount of stake deposited or removed", + "name": "reference_nonce", + "description": "The nonce reference of the transaction", "label": "", "type": "string", "longType": "string", @@ -10954,22 +9001,22 @@ ] }, { - "name": "TimeUpdate", - "longName": "TimeUpdate", - "fullName": "vega.events.v1.TimeUpdate", - "description": "A time update event contains the latest time update from Vega blockchain", + "name": "BitcoinAddress", + "longName": "BitcoinAddress", + "fullName": "vega.BitcoinAddress", + "description": "Used as a wrapper for a Bitcoin address (wallet)", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "timestamp", - "description": "Timestamp containing latest update from Vega blockchain aka Vega-time", + "name": "address", + "description": "A Bitcoin address", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -10978,30 +9025,42 @@ ] }, { - "name": "TradeSettlement", - "longName": "TradeSettlement", - "fullName": "vega.events.v1.TradeSettlement", - "description": "A trade settlement is part of the settle position event", + "name": "BuiltinAssetDeposit", + "longName": "BuiltinAssetDeposit", + "fullName": "vega.BuiltinAssetDeposit", + "description": "A deposit for a Vega built-in asset", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "size", - "description": "Size of trade settlement", + "name": "vega_asset_id", + "description": "A Vega network internal asset identifier", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "price", - "description": "Price of settlement as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "name": "party_id", + "description": "A Vega party identifier (pub-key)", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "amount", + "description": "The amount to be deposited", "label": "", "type": "uint64", "longType": "uint64", @@ -11014,42 +9073,54 @@ ] }, { - "name": "TransferResponses", - "longName": "TransferResponses", - "fullName": "vega.events.v1.TransferResponses", - "description": "A transfer responses event contains a collection of transfer information", + "name": "BuiltinAssetEvent", + "longName": "BuiltinAssetEvent", + "fullName": "vega.BuiltinAssetEvent", + "description": "An event related to a Vega built-in asset", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "responses", - "description": "One or more entries containing internal transfer information", - "label": "repeated", - "type": "TransferResponse", - "longType": "vega.TransferResponse", - "fullType": "vega.TransferResponse", + "name": "deposit", + "description": "Built-in asset deposit", + "label": "", + "type": "BuiltinAssetDeposit", + "longType": "BuiltinAssetDeposit", + "fullType": "vega.BuiltinAssetDeposit", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "action", + "defaultValue": "" + }, + { + "name": "withdrawal", + "description": "Built-in asset withdrawal", + "label": "", + "type": "BuiltinAssetWithdrawal", + "longType": "BuiltinAssetWithdrawal", + "fullType": "vega.BuiltinAssetWithdrawal", + "ismap": false, + "isoneof": true, + "oneofdecl": "action", "defaultValue": "" } ] }, { - "name": "TxErrorEvent", - "longName": "TxErrorEvent", - "fullName": "vega.events.v1.TxErrorEvent", - "description": "", + "name": "BuiltinAssetWithdrawal", + "longName": "BuiltinAssetWithdrawal", + "fullName": "vega.BuiltinAssetWithdrawal", + "description": "A withdrawal for a Vega built-in asset", "hasExtensions": false, "hasFields": true, - "hasOneofs": true, + "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Unique party identifier for the related party", + "name": "vega_asset_id", + "description": "A Vega network internal asset identifier", "label": "", "type": "string", "longType": "string", @@ -11060,8 +9131,8 @@ "defaultValue": "" }, { - "name": "err_msg", - "description": "An error message describing what went wrong", + "name": "party_id", + "description": "A Vega network party identifier (pub-key)", "label": "", "type": "string", "longType": "string", @@ -11072,104 +9143,56 @@ "defaultValue": "" }, { - "name": "order_submission", - "description": "", - "label": "", - "type": "OrderSubmission", - "longType": "vega.commands.v1.OrderSubmission", - "fullType": "vega.commands.v1.OrderSubmission", - "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", - "defaultValue": "" - }, - { - "name": "order_amendment", - "description": "", - "label": "", - "type": "OrderAmendment", - "longType": "vega.commands.v1.OrderAmendment", - "fullType": "vega.commands.v1.OrderAmendment", - "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", - "defaultValue": "" - }, - { - "name": "order_cancellation", - "description": "", - "label": "", - "type": "OrderCancellation", - "longType": "vega.commands.v1.OrderCancellation", - "fullType": "vega.commands.v1.OrderCancellation", - "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", - "defaultValue": "" - }, - { - "name": "proposal", - "description": "", - "label": "", - "type": "ProposalSubmission", - "longType": "vega.commands.v1.ProposalSubmission", - "fullType": "vega.commands.v1.ProposalSubmission", - "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", - "defaultValue": "" - }, - { - "name": "vote_submission", - "description": "", - "label": "", - "type": "VoteSubmission", - "longType": "vega.commands.v1.VoteSubmission", - "fullType": "vega.commands.v1.VoteSubmission", - "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", - "defaultValue": "" - }, - { - "name": "liquidity_provision_submission", - "description": "", + "name": "amount", + "description": "The amount to be withdrawn", "label": "", - "type": "LiquidityProvisionSubmission", - "longType": "vega.commands.v1.LiquidityProvisionSubmission", - "fullType": "vega.commands.v1.LiquidityProvisionSubmission", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "ERC20AssetDelist", + "longName": "ERC20AssetDelist", + "fullName": "vega.ERC20AssetDelist", + "description": "An asset deny-listing for an ERC20 token", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "withdraw_submission", - "description": "", + "name": "vega_asset_id", + "description": "The Vega network internal identifier of the asset", "label": "", - "type": "WithdrawSubmission", - "longType": "vega.commands.v1.WithdrawSubmission", - "fullType": "vega.commands.v1.WithdrawSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "transaction", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" } ] }, { - "name": "ValidatorUpdate", - "longName": "ValidatorUpdate", - "fullName": "vega.events.v1.ValidatorUpdate", - "description": "A validator update event contains information about validator node", + "name": "ERC20AssetList", + "longName": "ERC20AssetList", + "fullName": "vega.ERC20AssetList", + "description": "An asset allow-listing for an ERC20 token", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "pub_key", - "description": "Public key of validator node", + "name": "vega_asset_id", + "description": "The Vega network internal identifier of the asset", "label": "", "type": "string", "longType": "string", @@ -11178,10 +9201,22 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "ERC20Deposit", + "longName": "ERC20Deposit", + "fullName": "vega.ERC20Deposit", + "description": "An asset deposit for an ERC20 token", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "tm_pub_key", - "description": "Public key of Tendermint", + "name": "vega_asset_id", + "description": "The vega network internal identifier of the asset", "label": "", "type": "string", "longType": "string", @@ -11192,8 +9227,8 @@ "defaultValue": "" }, { - "name": "info_url", - "description": "URL with more info on the node", + "name": "source_ethereum_address", + "description": "The Ethereum wallet that initiated the deposit", "label": "", "type": "string", "longType": "string", @@ -11204,8 +9239,8 @@ "defaultValue": "" }, { - "name": "country", - "description": "Country code (ISO 3166-1 alpha-2) for the location of the node", + "name": "target_party_id", + "description": "The Vega party identifier (pub-key) which is the target of the deposit", "label": "", "type": "string", "longType": "string", @@ -11214,105 +9249,34 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - } - ], - "services": [] - }, - { - "name": "commands/v1/oracles.proto", - "description": "", - "package": "vega.commands.v1", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [ - { - "name": "OracleSource", - "longName": "OracleDataSubmission.OracleSource", - "fullName": "vega.commands.v1.OracleDataSubmission.OracleSource", - "description": "The supported Oracle sources", - "values": [ - { - "name": "ORACLE_SOURCE_UNSPECIFIED", - "number": "0", - "description": "The default value" - }, - { - "name": "ORACLE_SOURCE_OPEN_ORACLE", - "number": "1", - "description": "Support for Open Oracle standard" - } - ] - } - ], - "extensions": [], - "messages": [ - { - "name": "OracleDataSubmission", - "longName": "OracleDataSubmission", - "fullName": "vega.commands.v1.OracleDataSubmission", - "description": "Command to submit new Oracle data from third party providers", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "source", - "description": "The source from which the data is coming from", - "label": "", - "type": "OracleSource", - "longType": "OracleDataSubmission.OracleSource", - "fullType": "vega.commands.v1.OracleDataSubmission.OracleSource", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" }, { - "name": "payload", - "description": "The data provided by the third party provider", + "name": "amount", + "description": "The amount to be deposited", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" } ] - } - ], - "services": [] - }, - { - "name": "commands/v1/transaction.proto", - "description": "", - "package": "vega.commands.v1", - "hasEnums": false, - "hasExtensions": false, - "hasMessages": true, - "hasServices": false, - "enums": [], - "extensions": [], - "messages": [ + }, { - "name": "InputData", - "longName": "InputData", - "fullName": "vega.commands.v1.InputData", - "description": "", + "name": "ERC20Event", + "longName": "ERC20Event", + "fullName": "vega.ERC20Event", + "description": "An event related to an ERC20 token", "hasExtensions": false, "hasFields": true, "hasOneofs": true, "extensions": [], "fields": [ { - "name": "nonce", - "description": "A random number used to provided uniqueness and prevents against replay\nattack.", + "name": "index", + "description": "Index of the transaction", "label": "", "type": "uint64", "longType": "uint64", @@ -11323,8 +9287,8 @@ "defaultValue": "" }, { - "name": "block_height", - "description": "The block height associated to the transaction.\nThis should always be current height of the node at the time of sending the\nTx. BlockHeight is used as a mechanism for replay protection.", + "name": "block", + "description": "The block in which the transaction was added", "label": "", "type": "uint64", "longType": "uint64", @@ -11335,188 +9299,260 @@ "defaultValue": "" }, { - "name": "order_submission", - "description": "User commands", + "name": "asset_list", + "description": "List an ERC20 asset", "label": "", - "type": "OrderSubmission", - "longType": "OrderSubmission", - "fullType": "vega.commands.v1.OrderSubmission", + "type": "ERC20AssetList", + "longType": "ERC20AssetList", + "fullType": "vega.ERC20AssetList", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "action", "defaultValue": "" }, { - "name": "order_cancellation", - "description": "", + "name": "asset_delist", + "description": "De-list an ERC20 asset", "label": "", - "type": "OrderCancellation", - "longType": "OrderCancellation", - "fullType": "vega.commands.v1.OrderCancellation", + "type": "ERC20AssetDelist", + "longType": "ERC20AssetDelist", + "fullType": "vega.ERC20AssetDelist", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "action", "defaultValue": "" }, { - "name": "order_amendment", - "description": "", + "name": "deposit", + "description": "Deposit ERC20 asset", "label": "", - "type": "OrderAmendment", - "longType": "OrderAmendment", - "fullType": "vega.commands.v1.OrderAmendment", + "type": "ERC20Deposit", + "longType": "ERC20Deposit", + "fullType": "vega.ERC20Deposit", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "action", "defaultValue": "" }, { - "name": "withdraw_submission", - "description": "", + "name": "withdrawal", + "description": "Withdraw ERC20 asset", "label": "", - "type": "WithdrawSubmission", - "longType": "WithdrawSubmission", - "fullType": "vega.commands.v1.WithdrawSubmission", + "type": "ERC20Withdrawal", + "longType": "ERC20Withdrawal", + "fullType": "vega.ERC20Withdrawal", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "action", "defaultValue": "" - }, + } + ] + }, + { + "name": "ERC20Withdrawal", + "longName": "ERC20Withdrawal", + "fullName": "vega.ERC20Withdrawal", + "description": "An asset withdrawal for an ERC20 token", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "proposal_submission", - "description": "", + "name": "vega_asset_id", + "description": "The Vega network internal identifier of the asset", "label": "", - "type": "ProposalSubmission", - "longType": "ProposalSubmission", - "fullType": "vega.commands.v1.ProposalSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "vote_submission", - "description": "", + "name": "target_ethereum_address", + "description": "The target Ethereum wallet address", "label": "", - "type": "VoteSubmission", - "longType": "VoteSubmission", - "fullType": "vega.commands.v1.VoteSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "liquidity_provision_submission", - "description": "", + "name": "reference_nonce", + "description": "The reference nonce used for the transaction", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "EthereumAddress", + "longName": "EthereumAddress", + "fullName": "vega.EthereumAddress", + "description": "Used as a wrapper for an Ethereum address (wallet/contract)", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "address", + "description": "An Ethereum address", "label": "", - "type": "LiquidityProvisionSubmission", - "longType": "LiquidityProvisionSubmission", - "fullType": "vega.commands.v1.LiquidityProvisionSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "Identifier", + "longName": "Identifier", + "fullName": "vega.Identifier", + "description": "Used as a wrapper type on any possible network address supported by Vega", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": true, + "extensions": [], + "fields": [ { - "name": "delegate_submission", - "description": "", + "name": "ethereum_address", + "description": "Ethereum network", "label": "", - "type": "DelegateSubmission", - "longType": "DelegateSubmission", - "fullType": "vega.commands.v1.DelegateSubmission", + "type": "EthereumAddress", + "longType": "EthereumAddress", + "fullType": "vega.EthereumAddress", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "identifier", "defaultValue": "" }, { - "name": "undelegate_submission", - "description": "", + "name": "bitcoin_address", + "description": "Bitcoin network", "label": "", - "type": "UndelegateSubmission", - "longType": "UndelegateSubmission", - "fullType": "vega.commands.v1.UndelegateSubmission", + "type": "BitcoinAddress", + "longType": "BitcoinAddress", + "fullType": "vega.BitcoinAddress", "ismap": false, "isoneof": true, - "oneofdecl": "command", + "oneofdecl": "identifier", "defaultValue": "" - }, + } + ] + }, + { + "name": "RemoveValidator", + "longName": "RemoveValidator", + "fullName": "vega.RemoveValidator", + "description": "A message to notify when a validator is being removed from the Vega network", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "node_registration", - "description": "Validator commands", + "name": "id", + "description": "The identifier of the validator", "label": "", - "type": "NodeRegistration", - "longType": "NodeRegistration", - "fullType": "vega.commands.v1.NodeRegistration", + "type": "Identifier", + "longType": "Identifier", + "fullType": "vega.Identifier", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "StakeDeposited", + "longName": "StakeDeposited", + "fullName": "vega.StakeDeposited", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "node_vote", - "description": "", + "name": "ethereum_address", + "description": "Ethereum Address of the user depositing stake (hex encode with 0x prefix)", "label": "", - "type": "NodeVote", - "longType": "NodeVote", - "fullType": "vega.commands.v1.NodeVote", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "node_signature", - "description": "", + "name": "vega_public_key", + "description": "The public of the party receiving the stake deposit (hex encode)", "label": "", - "type": "NodeSignature", - "longType": "NodeSignature", - "fullType": "vega.commands.v1.NodeSignature", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "chain_event", - "description": "", + "name": "amount", + "description": "The amount deposited (base 10)", "label": "", - "type": "ChainEvent", - "longType": "ChainEvent", - "fullType": "vega.commands.v1.ChainEvent", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" }, { - "name": "oracle_data_submission", - "description": "Oracles", + "name": "block_time", + "description": "The time at which the block was produced\nwill be used to inform the core at what time\nthe stake started to be available.", "label": "", - "type": "OracleDataSubmission", - "longType": "OracleDataSubmission", - "fullType": "vega.commands.v1.OracleDataSubmission", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, - "isoneof": true, - "oneofdecl": "command", + "isoneof": false, + "oneofdecl": "", "defaultValue": "" } ] }, { - "name": "Signature", - "longName": "Signature", - "fullName": "vega.commands.v1.Signature", - "description": "A signature to be authenticate a transaction and to be verified by the vega\nnetwork.", + "name": "StakeRemoved", + "longName": "StakeRemoved", + "fullName": "vega.StakeRemoved", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "value", - "description": "The bytes of the signature (hex-encoded).", + "name": "ethereum_address", + "description": "Ethereum address of the user removing stake (hex encode with 0x prefix)", "label": "", "type": "string", "longType": "string", @@ -11527,8 +9563,8 @@ "defaultValue": "" }, { - "name": "algo", - "description": "The algorithm used to create the signature.", + "name": "vega_public_key", + "description": "The public key of the party from which to remove stake (hex encode)", "label": "", "type": "string", "longType": "string", @@ -11539,12 +9575,24 @@ "defaultValue": "" }, { - "name": "version", - "description": "The version of the signature used to create the signature.", + "name": "amount", + "description": "The amount removed (base 10)", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "block_time", + "description": "The time at which the block was produced\nwill be used to inform the core at what time\nthe stake was made unavailable.", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -11553,73 +9601,109 @@ ] }, { - "name": "Transaction", - "longName": "Transaction", - "fullName": "vega.commands.v1.Transaction", - "description": "Represents a transaction to be sent to Vega.", + "name": "StakingEvent", + "longName": "StakingEvent", + "fullName": "vega.StakingEvent", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": true, "extensions": [], "fields": [ { - "name": "input_data", - "description": "One of the set of Vega commands (proto marshalled).", + "name": "index", + "description": "Index of the transaction", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "signature", - "description": "The signature of the inputData.", + "name": "block", + "description": "The block in which the transaction was added", "label": "", - "type": "Signature", - "longType": "Signature", - "fullType": "vega.commands.v1.Signature", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "address", - "description": "The address of the sender (hex-encoded). Not supported yet.", + "name": "stake_deposited", + "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "StakeDeposited", + "longType": "StakeDeposited", + "fullType": "vega.StakeDeposited", "ismap": false, "isoneof": true, - "oneofdecl": "from", + "oneofdecl": "action", "defaultValue": "" }, { - "name": "pub_key", - "description": "The public key of the sender (hex-encoded).", + "name": "stake_removed", + "description": "", + "label": "", + "type": "StakeRemoved", + "longType": "StakeRemoved", + "fullType": "vega.StakeRemoved", + "ismap": false, + "isoneof": true, + "oneofdecl": "action", + "defaultValue": "" + } + ] + }, + { + "name": "ValidatorEvent", + "longName": "ValidatorEvent", + "fullName": "vega.ValidatorEvent", + "description": "An event related to validator management with foreign networks", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": true, + "extensions": [], + "fields": [ + { + "name": "source_id", + "description": "The source identifier of the event", "label": "", "type": "string", "longType": "string", "fullType": "string", "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "add", + "description": "Add a new validator", + "label": "", + "type": "AddValidator", + "longType": "AddValidator", + "fullType": "vega.AddValidator", + "ismap": false, "isoneof": true, - "oneofdecl": "from", + "oneofdecl": "action", "defaultValue": "" }, { - "name": "version", - "description": "A version of the transaction, to be used in the future in case we want to\nimplement changes to the Transaction format.", + "name": "rm", + "description": "Remove an existing validator", "label": "", - "type": "uint32", - "longType": "uint32", - "fullType": "uint32", + "type": "RemoveValidator", + "longType": "RemoveValidator", + "fullType": "vega.RemoveValidator", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "action", "defaultValue": "" } ] @@ -11628,67 +9712,34 @@ "services": [] }, { - "name": "api/trading.proto", + "name": "commands/v1/validator_commands.proto", "description": "", - "package": "api.v1", - "hasEnums": false, + "package": "vega.commands.v1", + "hasEnums": true, "hasExtensions": false, "hasMessages": true, - "hasServices": true, + "hasServices": false, "enums": [ { - "name": "Type", - "longName": "SubmitTransactionRequest.Type", - "fullName": "api.v1.SubmitTransactionRequest.Type", - "description": "Blockchain transaction type", - "values": [ - { - "name": "TYPE_UNSPECIFIED", - "number": "0", - "description": "" - }, - { - "name": "TYPE_ASYNC", - "number": "1", - "description": "The transaction will be submitted without waiting for response" - }, - { - "name": "TYPE_SYNC", - "number": "2", - "description": "The transaction will be submitted, and blocking until the\ntendermint mempool return a response" - }, - { - "name": "TYPE_COMMIT", - "number": "3", - "description": "The transaction will submitted, and blocking until the tendermint\nnetwork will have committed it into a block" - } - ] - }, - { - "name": "Type", - "longName": "SubmitTransactionV2Request.Type", - "fullName": "api.v1.SubmitTransactionV2Request.Type", - "description": "Blockchain transaction type", + "name": "NodeSignatureKind", + "longName": "NodeSignatureKind", + "fullName": "vega.commands.v1.NodeSignatureKind", + "description": "The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc", "values": [ { - "name": "TYPE_UNSPECIFIED", + "name": "NODE_SIGNATURE_KIND_UNSPECIFIED", "number": "0", - "description": "" + "description": "Represents an unspecified or missing value from the input" }, { - "name": "TYPE_ASYNC", + "name": "NODE_SIGNATURE_KIND_ASSET_NEW", "number": "1", - "description": "The transaction will be submitted without waiting for response" + "description": "Represents a signature for a new asset allow-listing" }, { - "name": "TYPE_SYNC", + "name": "NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL", "number": "2", - "description": "The transaction will be submitted, and blocking until the\ntendermint mempool return a response" - }, - { - "name": "TYPE_COMMIT", - "number": "3", - "description": "The transaction will submitted, and blocking until the tendermint\nnetwork will have committed it into a block" + "description": "Represents a signature for an asset withdrawal" } ] } @@ -11696,18 +9747,18 @@ "extensions": [], "messages": [ { - "name": "AccountsSubscribeRequest", - "longName": "AccountsSubscribeRequest", - "fullName": "api.v1.AccountsSubscribeRequest", - "description": "Request to subscribe to a stream of (Accounts)[#vega.Account]", + "name": "ChainEvent", + "longName": "ChainEvent", + "fullName": "vega.commands.v1.ChainEvent", + "description": "An event forwarded to the Vega network to provide information on events happening on other networks", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier", + "name": "tx_id", + "description": "The identifier of the transaction in which the events happened, usually a hash", "label": "", "type": "string", "longType": "string", @@ -11718,80 +9769,112 @@ "defaultValue": "" }, { - "name": "party_id", - "description": "Party identifier", + "name": "nonce", + "description": "Arbitrary one-time integer used to prevent replay attacks", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "asset", - "description": "Asset identifier", + "name": "builtin", + "description": "Built-in asset event", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "BuiltinAssetEvent", + "longType": "vega.BuiltinAssetEvent", + "fullType": "vega.BuiltinAssetEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" }, { - "name": "type", - "description": "Account type to subscribe to, required field", + "name": "erc20", + "description": "Ethereum ERC20 event", "label": "", - "type": "AccountType", - "longType": "vega.AccountType", - "fullType": "vega.AccountType", + "type": "ERC20Event", + "longType": "vega.ERC20Event", + "fullType": "vega.ERC20Event", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "btc", + "description": "Bitcoin BTC event", + "label": "", + "type": "BTCEvent", + "longType": "vega.BTCEvent", + "fullType": "vega.BTCEvent", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "validator", + "description": "Validator event", + "label": "", + "type": "ValidatorEvent", + "longType": "vega.ValidatorEvent", + "fullType": "vega.ValidatorEvent", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "staking_event", + "description": "Ethereum Staking event", + "label": "", + "type": "StakingEvent", + "longType": "vega.StakingEvent", + "fullType": "vega.StakingEvent", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" } ] }, { - "name": "AccountsSubscribeResponse", - "longName": "AccountsSubscribeResponse", - "fullName": "api.v1.AccountsSubscribeResponse", - "description": "", + "name": "NodeRegistration", + "longName": "NodeRegistration", + "fullName": "vega.commands.v1.NodeRegistration", + "description": "Used to Register a node as a validator during network start-up", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "account", - "description": "", + "name": "vega_pub_key", + "description": "Vega public key, required field", "label": "", - "type": "Account", - "longType": "vega.Account", - "fullType": "vega.Account", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "AssetByIDRequest", - "longName": "AssetByIDRequest", - "fullName": "api.v1.AssetByIDRequest", - "description": "Request for an asset given an asset identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + }, { - "name": "id", - "description": "Asset identifier, required field", + "name": "ethereum_address", + "description": "Ethereum public key, required field", "label": "", "type": "string", "longType": "string", @@ -11808,61 +9891,110 @@ } ] } - } - ] - }, - { - "name": "AssetByIDResponse", - "longName": "AssetByIDResponse", - "fullName": "api.v1.AssetByIDResponse", - "description": "Response for an asset given an asset identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "asset", - "description": "An asset record, if found", + "name": "chain_pub_key", + "description": "Public key for the blockchain, required field", "label": "", - "type": "Asset", - "longType": "vega.Asset", - "fullType": "vega.Asset", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "AssetsRequest", - "longName": "AssetsRequest", - "fullName": "api.v1.AssetsRequest", - "description": "Request for a list of all assets enabled on Vega", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + }, + { + "name": "info_url", + "description": "URL with more info on the node", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + }, + { + "name": "country", + "description": "Country code (ISO 3166-1 alpha-2) for the location of the node", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + } + ] }, { - "name": "AssetsResponse", - "longName": "AssetsResponse", - "fullName": "api.v1.AssetsResponse", - "description": "Response for a list of all assets enabled on Vega", + "name": "NodeSignature", + "longName": "NodeSignature", + "fullName": "vega.commands.v1.NodeSignature", + "description": "Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "assets", - "description": "A list of 0 or more assets", - "label": "repeated", - "type": "Asset", - "longType": "vega.Asset", - "fullType": "vega.Asset", + "name": "id", + "description": "The identifier of the resource being signed", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "sig", + "description": "The signature", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "kind", + "description": "The kind of resource being signed", + "label": "", + "type": "NodeSignatureKind", + "longType": "NodeSignatureKind", + "fullType": "vega.commands.v1.NodeSignatureKind", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -11871,18 +10003,38 @@ ] }, { - "name": "CandlesRequest", - "longName": "CandlesRequest", - "fullName": "api.v1.CandlesRequest", - "description": "Request for a list of candles for a market at an interval", + "name": "NodeVote", + "longName": "NodeVote", + "fullName": "vega.commands.v1.NodeVote", + "description": "Used when a node votes for validating a given resource exists or is valid,\nfor example, an ERC20 deposit is valid and exists on ethereum", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier, required field.", + "name": "pub_key", + "description": "Public key, required field", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "", + "options": { + "validator.field": [ + { + "name": "string_not_empty", + "value": true + } + ] + } + }, + { + "name": "reference", + "description": "Reference, required field", "label": "", "type": "string", "longType": "string", @@ -11899,70 +10051,278 @@ } ] } + } + ] + } + ], + "services": [] + }, + { + "name": "events/v1/events.proto", + "description": "", + "package": "vega.events.v1", + "hasEnums": true, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [ + { + "name": "BusEventType", + "longName": "BusEventType", + "fullName": "vega.events.v1.BusEventType", + "description": "An (event) bus event type is used to specify a type of event\nIt has 2 styles of event:\nSingle values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item\nGroup values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items", + "values": [ + { + "name": "BUS_EVENT_TYPE_UNSPECIFIED", + "number": "0", + "description": "Default value, always invalid" + }, + { + "name": "BUS_EVENT_TYPE_ALL", + "number": "1", + "description": "Events of ALL event types, used when filtering stream from event bus" + }, + { + "name": "BUS_EVENT_TYPE_TIME_UPDATE", + "number": "2", + "description": "Event for blockchain time updates" + }, + { + "name": "BUS_EVENT_TYPE_TRANSFER_RESPONSES", + "number": "3", + "description": "Event for when a transfer happens internally, contains the transfer information" + }, + { + "name": "BUS_EVENT_TYPE_POSITION_RESOLUTION", + "number": "4", + "description": "Event indicating position resolution has occurred" + }, + { + "name": "BUS_EVENT_TYPE_ORDER", + "number": "5", + "description": "Event for order updates, both new and existing orders" + }, + { + "name": "BUS_EVENT_TYPE_ACCOUNT", + "number": "6", + "description": "Event for account updates" + }, + { + "name": "BUS_EVENT_TYPE_PARTY", + "number": "7", + "description": "Event for party updates" + }, + { + "name": "BUS_EVENT_TYPE_TRADE", + "number": "8", + "description": "Event indicating a new trade has occurred" + }, + { + "name": "BUS_EVENT_TYPE_MARGIN_LEVELS", + "number": "9", + "description": "Event indicating margin levels have changed for a party" + }, + { + "name": "BUS_EVENT_TYPE_PROPOSAL", + "number": "10", + "description": "Event for proposal updates (for governance)" + }, + { + "name": "BUS_EVENT_TYPE_VOTE", + "number": "11", + "description": "Event indicating a new vote has occurred (for governance)" + }, + { + "name": "BUS_EVENT_TYPE_MARKET_DATA", + "number": "12", + "description": "Event for market data updates" + }, + { + "name": "BUS_EVENT_TYPE_NODE_SIGNATURE", + "number": "13", + "description": "Event for a new signature for a Vega node" + }, + { + "name": "BUS_EVENT_TYPE_LOSS_SOCIALIZATION", + "number": "14", + "description": "Event indicating loss socialisation occurred for a party" + }, + { + "name": "BUS_EVENT_TYPE_SETTLE_POSITION", + "number": "15", + "description": "Event for when a position is being settled" + }, + { + "name": "BUS_EVENT_TYPE_SETTLE_DISTRESSED", + "number": "16", + "description": "Event for when a position is distressed" + }, + { + "name": "BUS_EVENT_TYPE_MARKET_CREATED", + "number": "17", + "description": "Event indicating a new market was created" + }, + { + "name": "BUS_EVENT_TYPE_ASSET", + "number": "18", + "description": "Event for when an asset is added to Vega" + }, + { + "name": "BUS_EVENT_TYPE_MARKET_TICK", + "number": "19", + "description": "Event indicating a market tick event" + }, + { + "name": "BUS_EVENT_TYPE_WITHDRAWAL", + "number": "20", + "description": "Event for when a withdrawal occurs" + }, + { + "name": "BUS_EVENT_TYPE_DEPOSIT", + "number": "21", + "description": "Event for when a deposit occurs" + }, + { + "name": "BUS_EVENT_TYPE_AUCTION", + "number": "22", + "description": "Event indicating a change in auction state, for example starting or ending an auction" + }, + { + "name": "BUS_EVENT_TYPE_RISK_FACTOR", + "number": "23", + "description": "Event indicating a risk factor has been updated" + }, + { + "name": "BUS_EVENT_TYPE_NETWORK_PARAMETER", + "number": "24", + "description": "Event indicating a network parameter has been added or updated" + }, + { + "name": "BUS_EVENT_TYPE_LIQUIDITY_PROVISION", + "number": "25", + "description": "Event indicating a liquidity provision has been created or updated" + }, + { + "name": "BUS_EVENT_TYPE_MARKET_UPDATED", + "number": "26", + "description": "Event indicating a new market was created" + }, + { + "name": "BUS_EVENT_TYPE_ORACLE_SPEC", + "number": "27", + "description": "Event indicating an oracle spec has been created or updated" + }, + { + "name": "BUS_EVENT_TYPE_ORACLE_DATA", + "number": "28", + "description": "Event indicating that an oracle data has been broadcast" + }, + { + "name": "BUS_EVENT_TYPE_DELEGATION_BALANCE", + "number": "29", + "description": "Event indicating that an delegation balance of a party to a node for current epoch has changed" + }, + { + "name": "BUS_EVENT_TYPE_VALIDATOR_SCORE", + "number": "30", + "description": "Event indicating the validator score for the given epoch" + }, + { + "name": "BUS_EVENT_TYPE_EPOCH_UPDATE", + "number": "31", + "description": "Event indicating the start or end of an epoch" + }, + { + "name": "BUS_EVENT_TYPE_VALIDATOR_UPDATE", + "number": "32", + "description": "Event indicating that validator node has been updated" + }, + { + "name": "BUS_EVENT_TYPE_STAKE_LINKING", + "number": "33", + "description": "Event indicating a new staking event have been processed by the network" + }, + { + "name": "BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT", + "number": "34", + "description": "Event indicating the payout of a reward has been initiated" }, { - "name": "since_timestamp", - "description": "Timestamp to retrieve candles since, in nanoseconds since the epoch,\nrequired field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "int_gt", - "value": 0 - } - ] - } + "name": "BUS_EVENT_TYPE_CHECKPOINT", + "number": "35", + "description": "Event indicating a new checkpoint was created" }, { - "name": "interval", - "description": "Time interval for the candles, required field", - "label": "", - "type": "Interval", - "longType": "vega.Interval", - "fullType": "vega.Interval", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "BUS_EVENT_TYPE_MARKET", + "number": "101", + "description": "Event indicating a market related event, for example when a market opens" + }, + { + "name": "BUS_EVENT_TYPE_TX_ERROR", + "number": "201", + "description": "Event used to report failed transactions back to a user, this is excluded from the ALL type" } ] }, { - "name": "CandlesResponse", - "longName": "CandlesResponse", - "fullName": "api.v1.CandlesResponse", - "description": "Response for a list of candles for a market at an interval", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "Status", + "longName": "StakeLinking.Status", + "fullName": "vega.events.v1.StakeLinking.Status", + "description": "", + "values": [ { - "name": "candles", - "description": "A list of 0 or more candles", - "label": "repeated", - "type": "Candle", - "longType": "vega.Candle", - "fullType": "vega.Candle", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "STATUS_UNSPECIFIED", + "number": "0", + "description": "Default value" + }, + { + "name": "STATUS_PENDING", + "number": "1", + "description": "Indicate an event waiting for confirmation from the vega network" + }, + { + "name": "STATUS_ACCEPTED", + "number": "2", + "description": "Indicate of an event accepted by the vega network" + }, + { + "name": "STATUS_REJECTED", + "number": "3", + "description": "Indaicate of an event rejected by the vega network" } ] }, { - "name": "CandlesSubscribeRequest", - "longName": "CandlesSubscribeRequest", - "fullName": "api.v1.CandlesSubscribeRequest", - "description": "Request to subscribe to a stream of (Candles)[#vega.Candle]", + "name": "Type", + "longName": "StakeLinking.Type", + "fullName": "vega.events.v1.StakeLinking.Type", + "description": "", + "values": [ + { + "name": "TYPE_UNSPECIFIED", + "number": "0", + "description": "Default value" + }, + { + "name": "TYPE_LINK", + "number": "1", + "description": "Indicate of a stake deposit instruction" + }, + { + "name": "TYPE_UNLINK", + "number": "2", + "description": "Indicate of a stake remove instruction" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "AuctionEvent", + "longName": "AuctionEvent", + "fullName": "vega.events.v1.AuctionEvent", + "description": "An auction event indicating a change in auction state, for example starting or ending an auction", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -11970,7 +10330,7 @@ "fields": [ { "name": "market_id", - "description": "Market identifier, required field", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -11978,211 +10338,95 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "interval", - "description": "Time interval for the candles, required field.", + "name": "opening_auction", + "description": "True if the event indicates an auction opening and False otherwise", "label": "", - "type": "Interval", - "longType": "vega.Interval", - "fullType": "vega.Interval", + "type": "bool", + "longType": "bool", + "fullType": "bool", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "CandlesSubscribeResponse", - "longName": "CandlesSubscribeResponse", - "fullName": "api.v1.CandlesSubscribeResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "candle", - "description": "", + "name": "leave", + "description": "True if the event indicates leaving auction mode and False otherwise", "label": "", - "type": "Candle", - "longType": "vega.Candle", - "fullType": "vega.Candle", + "type": "bool", + "longType": "bool", + "fullType": "bool", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "DepositRequest", - "longName": "DepositRequest", - "fullName": "api.v1.DepositRequest", - "description": "A request to get a specific deposit by identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "id", - "description": "The identifier of the deposit", + "name": "start", + "description": "Timestamp containing the start time for an auction", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "DepositResponse", - "longName": "DepositResponse", - "fullName": "api.v1.DepositResponse", - "description": "A response for a deposit", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "deposit", - "description": "The deposit matching the identifier from the request", + "name": "end", + "description": "Timestamp containing the end time for an auction", "label": "", - "type": "Deposit", - "longType": "vega.Deposit", - "fullType": "vega.Deposit", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "DepositsRequest", - "longName": "DepositsRequest", - "fullName": "api.v1.DepositsRequest", - "description": "A request to get a list of deposit from a given party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "The party to get the deposits for", + "name": "trigger", + "description": "the reason this market is/was in auction", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "DepositsResponse", - "longName": "DepositsResponse", - "fullName": "api.v1.DepositsResponse", - "description": "The response for a list of deposits", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "deposits", - "description": "The list of deposits for the specified party", - "label": "repeated", - "type": "Deposit", - "longType": "vega.Deposit", - "fullType": "vega.Deposit", + "type": "AuctionTrigger", + "longType": "vega.AuctionTrigger", + "fullType": "vega.AuctionTrigger", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "ERC20WithdrawalApprovalRequest", - "longName": "ERC20WithdrawalApprovalRequest", - "fullName": "api.v1.ERC20WithdrawalApprovalRequest", - "description": "The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "withdrawal_id", - "description": "The identifier of the withdrawal", + "name": "extension_trigger", + "description": "If an auction was ongoing, but was extended for whatever reason, this field will\nbe set to the trigger type indicating which component extended the auction", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "AuctionTrigger", + "longType": "vega.AuctionTrigger", + "fullType": "vega.AuctionTrigger", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" } ] }, { - "name": "ERC20WithdrawalApprovalResponse", - "longName": "ERC20WithdrawalApprovalResponse", - "fullName": "api.v1.ERC20WithdrawalApprovalResponse", - "description": "The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge\nfunction withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)", + "name": "BusEvent", + "longName": "BusEvent", + "fullName": "vega.events.v1.BusEvent", + "description": "A bus event is a container for event bus events emitted by Vega", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "asset_source", - "description": "The address of asset on ethereum", + "name": "id", + "description": "A unique event identifier for the message", "label": "", "type": "string", "longType": "string", @@ -12193,8 +10437,8 @@ "defaultValue": "" }, { - "name": "amount", - "description": "The amount to be withdrawn", + "name": "block", + "description": "The batch (or block) of transactions that the events relate to", "label": "", "type": "string", "longType": "string", @@ -12205,628 +10449,464 @@ "defaultValue": "" }, { - "name": "expiry", - "description": "The expiry / until what time the request is valid", + "name": "type", + "description": "The type of bus event (one of the list below)", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "BusEventType", + "longType": "BusEventType", + "fullType": "vega.events.v1.BusEventType", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "nonce", - "description": "The nonce, which is actually the internal reference for the withdrawal", + "name": "time_update", + "description": "Time update events - See [TimeUpdate](#vega.TimeUpdate)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "TimeUpdate", + "longType": "TimeUpdate", + "fullType": "vega.events.v1.TimeUpdate", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" }, { - "name": "signatures", - "description": "The signatures bundle as hex encoded data, forward by 0x\ne.g: 0x + sig1 + sig2 + ... + sixN", + "name": "transfer_responses", + "description": "Transfer responses update events - See [TransferResponses](#vega.TransferResponses)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "TransferResponses", + "longType": "TransferResponses", + "fullType": "vega.events.v1.TransferResponses", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "EstimateFeeRequest", - "longName": "EstimateFeeRequest", - "fullName": "api.v1.EstimateFeeRequest", - "description": "Request to fetch the estimated fee if an order were to trade immediately", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, + { + "name": "position_resolution", + "description": "Position resolution events - See [PositionResolution](#vega.PositionResolution)", + "label": "", + "type": "PositionResolution", + "longType": "PositionResolution", + "fullType": "vega.events.v1.PositionResolution", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { "name": "order", - "description": "Order to estimate fees for\nthe following fields in the order are required:\nMarketID (used to specify the fee factors)\nPrice (the price at which the order could trade)\nSize (the size at which the order could eventually trade)", + "description": "Order events", "label": "", "type": "Order", "longType": "vega.Order", "fullType": "vega.Order", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "EstimateFeeResponse", - "longName": "EstimateFeeResponse", - "fullName": "api.v1.EstimateFeeResponse", - "description": "Response to a EstimateFeeRequest, containing the estimated fees for a given order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "fee", - "description": "Summary of the estimated fees for this order if it were to trade now", + "name": "account", + "description": "Account events", "label": "", - "type": "Fee", - "longType": "vega.Fee", - "fullType": "vega.Fee", + "type": "Account", + "longType": "vega.Account", + "fullType": "vega.Account", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "EstimateMarginRequest", - "longName": "EstimateMarginRequest", - "fullName": "api.v1.EstimateMarginRequest", - "description": "Request to fetch the estimated MarginLevels if an order were to trade immediately", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "order", - "description": "Order to estimate fees for", + "name": "party", + "description": "Party events", "label": "", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "Party", + "longType": "vega.Party", + "fullType": "vega.Party", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "EstimateMarginResponse", - "longName": "EstimateMarginResponse", - "fullName": "api.v1.EstimateMarginResponse", - "description": "Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, + { + "name": "trade", + "description": "Trade events", + "label": "", + "type": "Trade", + "longType": "vega.Trade", + "fullType": "vega.Trade", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { "name": "margin_levels", - "description": "Summary of the estimated margins for this order if it were to trade now", + "description": "Margin level update events", "label": "", "type": "MarginLevels", "longType": "vega.MarginLevels", "fullType": "vega.MarginLevels", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "FeeInfrastructureAccountsRequest", - "longName": "FeeInfrastructureAccountsRequest", - "fullName": "api.v1.FeeInfrastructureAccountsRequest", - "description": "Request for a list of infrastructure fee accounts", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, + { + "name": "proposal", + "description": "Proposal events (for governance)", + "label": "", + "type": "Proposal", + "longType": "vega.Proposal", + "fullType": "vega.Proposal", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "vote", + "description": "Vote events (for governance)", + "label": "", + "type": "Vote", + "longType": "vega.Vote", + "fullType": "vega.Vote", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "market_data", + "description": "Market data events", + "label": "", + "type": "MarketData", + "longType": "vega.MarketData", + "fullType": "vega.MarketData", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "node_signature", + "description": "Node signature events", + "label": "", + "type": "NodeSignature", + "longType": "vega.commands.v1.NodeSignature", + "fullType": "vega.commands.v1.NodeSignature", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "loss_socialization", + "description": "Loss socialization events - See [LossSocialization](#vega.LossSocialization)", + "label": "", + "type": "LossSocialization", + "longType": "LossSocialization", + "fullType": "vega.events.v1.LossSocialization", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "settle_position", + "description": "Position settlement events - See [SettlePosition](#vega.SettlePosition)", + "label": "", + "type": "SettlePosition", + "longType": "SettlePosition", + "fullType": "vega.events.v1.SettlePosition", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "settle_distressed", + "description": "Position distressed events - See [SettleDistressed](#vega.SettleDistressed)", + "label": "", + "type": "SettleDistressed", + "longType": "SettleDistressed", + "fullType": "vega.events.v1.SettleDistressed", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "market_created", + "description": "Market created events", + "label": "", + "type": "Market", + "longType": "vega.Market", + "fullType": "vega.Market", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { "name": "asset", - "description": "Asset identifier, required field\n- Set to an empty string to return all accounts\n- Set to an asset ID to return a single infrastructure fee account for a given asset", + "description": "Asset events", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "Asset", + "longType": "vega.Asset", + "fullType": "vega.Asset", + "ismap": false, + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, + { + "name": "market_tick", + "description": "Market tick events - See [MarketTick](#vega.MarketTick)", + "label": "", + "type": "MarketTick", + "longType": "MarketTick", + "fullType": "vega.events.v1.MarketTick", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "FeeInfrastructureAccountsResponse", - "longName": "FeeInfrastructureAccountsResponse", - "fullName": "api.v1.FeeInfrastructureAccountsResponse", - "description": "Response for a list of infrastructure fee accounts", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "accounts", - "description": "A list of 0 or more infrastructure fee accounts", - "label": "repeated", - "type": "Account", - "longType": "vega.Account", - "fullType": "vega.Account", + "name": "withdrawal", + "description": "Withdrawal events", + "label": "", + "type": "Withdrawal", + "longType": "vega.Withdrawal", + "fullType": "vega.Withdrawal", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNetworkParametersProposalsRequest", - "longName": "GetNetworkParametersProposalsRequest", - "fullName": "api.v1.GetNetworkParametersProposalsRequest", - "description": "Request for a list of network parameter proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "select_in_state", - "description": "Optional proposal state", + "name": "deposit", + "description": "Deposit events", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "Deposit", + "longType": "vega.Deposit", + "fullType": "vega.Deposit", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNetworkParametersProposalsResponse", - "longName": "GetNetworkParametersProposalsResponse", - "fullName": "api.v1.GetNetworkParametersProposalsResponse", - "description": "Response for a list of network parameter proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "auction", + "description": "Auction events - See [AuctionEvent](#vega.AuctionEvent)", + "label": "", + "type": "AuctionEvent", + "longType": "AuctionEvent", + "fullType": "vega.events.v1.AuctionEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNewAssetProposalsRequest", - "longName": "GetNewAssetProposalsRequest", - "fullName": "api.v1.GetNewAssetProposalsRequest", - "description": "Request for a list of new asset proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "select_in_state", - "description": "Optional proposal state", + "name": "risk_factor", + "description": "Risk factor events", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "RiskFactor", + "longType": "vega.RiskFactor", + "fullType": "vega.RiskFactor", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNewAssetProposalsResponse", - "longName": "GetNewAssetProposalsResponse", - "fullName": "api.v1.GetNewAssetProposalsResponse", - "description": "Response for a list of new asset proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "network_parameter", + "description": "Network parameter events", + "label": "", + "type": "NetworkParameter", + "longType": "vega.NetworkParameter", + "fullType": "vega.NetworkParameter", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNewMarketProposalsRequest", - "longName": "GetNewMarketProposalsRequest", - "fullName": "api.v1.GetNewMarketProposalsRequest", - "description": "Request for a list of new market proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "select_in_state", - "description": "Optional proposal state", + "name": "liquidity_provision", + "description": "LiquidityProvision events", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "LiquidityProvision", + "longType": "vega.LiquidityProvision", + "fullType": "vega.LiquidityProvision", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNewMarketProposalsResponse", - "longName": "GetNewMarketProposalsResponse", - "fullName": "api.v1.GetNewMarketProposalsResponse", - "description": "Response for a list of new market proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "market_updated", + "description": "Market created events", + "label": "", + "type": "Market", + "longType": "vega.Market", + "fullType": "vega.Market", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetNodeSignaturesAggregateRequest", - "longName": "GetNodeSignaturesAggregateRequest", - "fullName": "api.v1.GetNodeSignaturesAggregateRequest", - "description": "Request to specify the identifier of the resource we want to retrieve aggregated signatures for", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "id", - "description": "Resource identifier, required field", + "name": "oracle_spec", + "description": "OracleSpec events", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "OracleSpec", + "longType": "oracles.v1.OracleSpec", + "fullType": "oracles.v1.OracleSpec", "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "GetNodeSignaturesAggregateResponse", - "longName": "GetNodeSignaturesAggregateResponse", - "fullName": "api.v1.GetNodeSignaturesAggregateResponse", - "description": "Response to specify the identifier of the resource we want to retrieve aggregated signatures for", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { - "name": "signatures", - "description": "A list of 0 or more signatures", - "label": "repeated", - "type": "NodeSignature", - "longType": "vega.commands.v1.NodeSignature", - "fullType": "vega.commands.v1.NodeSignature", + "name": "oracle_data", + "description": "OracleData events", + "label": "", + "type": "OracleData", + "longType": "oracles.v1.OracleData", + "fullType": "oracles.v1.OracleData", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalByIDRequest", - "longName": "GetProposalByIDRequest", - "fullName": "api.v1.GetProposalByIDRequest", - "description": "Request for a governance proposal given a proposal identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "proposal_id", - "description": "Proposal identifier, required field", + "name": "delegation_balance", + "description": "Delegation balance events", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "DelegationBalanceEvent", + "longType": "DelegationBalanceEvent", + "fullType": "vega.events.v1.DelegationBalanceEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "GetProposalByIDResponse", - "longName": "GetProposalByIDResponse", - "fullName": "api.v1.GetProposalByIDResponse", - "description": "Response for a governance proposal given a proposal identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { - "name": "data", - "description": "Governance data, if found", + "name": "validator_score", + "description": "Validator score calcualted", "label": "", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "type": "ValidatorScoreEvent", + "longType": "ValidatorScoreEvent", + "fullType": "vega.events.v1.ValidatorScoreEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalByReferenceRequest", - "longName": "GetProposalByReferenceRequest", - "fullName": "api.v1.GetProposalByReferenceRequest", - "description": "Request for a governance proposal given a proposal reference", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "reference", - "description": "Proposal reference. Required field", + "name": "epoch_event", + "description": "Epoch update events - See [Epoch](#vega.Epoch)", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "EpochEvent", + "longType": "EpochEvent", + "fullType": "vega.events.v1.EpochEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "GetProposalByReferenceResponse", - "longName": "GetProposalByReferenceResponse", - "fullName": "api.v1.GetProposalByReferenceResponse", - "description": "Response for a governance proposal given a proposal reference", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" + }, { - "name": "data", - "description": "Governance data, if found", + "name": "validator_update", + "description": "Validator update events", "label": "", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "type": "ValidatorUpdate", + "longType": "ValidatorUpdate", + "fullType": "vega.events.v1.ValidatorUpdate", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalsByPartyRequest", - "longName": "GetProposalsByPartyRequest", - "fullName": "api.v1.GetProposalsByPartyRequest", - "description": "Request for a list of proposals for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "Party identifier, required field", + "name": "stake_linking", + "description": "Staking event", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "StakeLinking", + "longType": "StakeLinking", + "fullType": "vega.events.v1.StakeLinking", "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "isoneof": true, + "oneofdecl": "event", + "defaultValue": "" }, { - "name": "select_in_state", - "description": "Optional proposal state", + "name": "reward_payout", + "description": "Reward payout event", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "RewardPayoutEvent", + "longType": "RewardPayoutEvent", + "fullType": "vega.events.v1.RewardPayoutEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalsByPartyResponse", - "longName": "GetProposalsByPartyResponse", - "fullName": "api.v1.GetProposalsByPartyResponse", - "description": "Response for a list of proposals for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "checkpoint", + "description": "Checkpoint was created", + "label": "", + "type": "CheckpointEvent", + "longType": "CheckpointEvent", + "fullType": "vega.events.v1.CheckpointEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalsRequest", - "longName": "GetProposalsRequest", - "fullName": "api.v1.GetProposalsRequest", - "description": "Request for a list of proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "select_in_state", - "description": "Optional proposal state", + "name": "market", + "description": "Market tick events - See [MarketEvent](#vega.MarketEvent)", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "MarketEvent", + "longType": "MarketEvent", + "fullType": "vega.events.v1.MarketEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" - } - ] - }, - { - "name": "GetProposalsResponse", - "longName": "GetProposalsResponse", - "fullName": "api.v1.GetProposalsResponse", - "description": "Response for a list of proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "tx_err_event", + "description": "Transaction error events, not included in the ALL event type", + "label": "", + "type": "TxErrorEvent", + "longType": "TxErrorEvent", + "fullType": "vega.events.v1.TxErrorEvent", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "event", "defaultValue": "" } ] }, { - "name": "GetUpdateMarketProposalsRequest", - "longName": "GetUpdateMarketProposalsRequest", - "fullName": "api.v1.GetUpdateMarketProposalsRequest", - "description": "Request for a list of update market proposals", + "name": "CheckpointEvent", + "longName": "CheckpointEvent", + "fullName": "vega.events.v1.CheckpointEvent", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier, required field", + "name": "hash", + "description": "", "label": "", "type": "string", "longType": "string", @@ -12834,47 +10914,27 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "select_in_state", - "description": "Proposal state", + "name": "block_hash", + "description": "", "label": "", - "type": "OptionalProposalState", - "longType": "OptionalProposalState", - "fullType": "api.v1.OptionalProposalState", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "GetUpdateMarketProposalsResponse", - "longName": "GetUpdateMarketProposalsResponse", - "fullName": "api.v1.GetUpdateMarketProposalsResponse", - "description": "Response for a list of update market proposals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", - "description": "A list of 0 or more governance data", - "label": "repeated", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "name": "block_height", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -12883,53 +10943,30 @@ ] }, { - "name": "GetVegaTimeRequest", - "longName": "GetVegaTimeRequest", - "fullName": "api.v1.GetVegaTimeRequest", - "description": "Request for the current time of the vega network", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "GetVegaTimeResponse", - "longName": "GetVegaTimeResponse", - "fullName": "api.v1.GetVegaTimeResponse", - "description": "Response for the current consensus coordinated time on the Vega network, referred to as \"VegaTime\"", + "name": "DelegationBalanceEvent", + "longName": "DelegationBalanceEvent", + "fullName": "vega.events.v1.DelegationBalanceEvent", + "description": "DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "timestamp", - "description": "Timestamp representation of current VegaTime as represented in\nNanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`", + "name": "party", + "description": "", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "GetVotesByPartyRequest", - "longName": "GetVotesByPartyRequest", - "fullName": "api.v1.GetVotesByPartyRequest", - "description": "Request for a list of votes for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "Party identifier, required field", + "name": "node_id", + "description": "", "label": "", "type": "string", "longType": "string", @@ -12937,35 +10974,27 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "GetVotesByPartyResponse", - "longName": "GetVotesByPartyResponse", - "fullName": "api.v1.GetVotesByPartyResponse", - "description": "Response for a list of votes for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, + { + "name": "amount", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, { - "name": "votes", - "description": "A list of 0 or more votes", - "label": "repeated", - "type": "Vote", - "longType": "vega.Vote", - "fullType": "vega.Vote", + "name": "epoch_seq", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -12974,29 +11003,18 @@ ] }, { - "name": "LastBlockHeightRequest", - "longName": "LastBlockHeightRequest", - "fullName": "api.v1.LastBlockHeightRequest", - "description": "A request to get the height of the very last block processed\nby tendermint", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "LastBlockHeightResponse", - "longName": "LastBlockHeightResponse", - "fullName": "api.v1.LastBlockHeightResponse", - "description": "A response with the height of the last block processed by\ntendermint", + "name": "EpochEvent", + "longName": "EpochEvent", + "fullName": "vega.events.v1.EpochEvent", + "description": "Epoch details", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "height", - "description": "", + "name": "seq", + "description": "Sequence number that increases by one each epoch", "label": "", "type": "uint64", "longType": "uint64", @@ -13005,14 +11023,50 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" + }, + { + "name": "start_time", + "description": "What time did this epoch start", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "expire_time", + "description": "What time should this epoch end", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "end_time", + "description": "What time did it actually end", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, { - "name": "LastTradeRequest", - "longName": "LastTradeRequest", - "fullName": "api.v1.LastTradeRequest", - "description": "Request for the latest trade that occurred on Vega for a given market", + "name": "LossSocialization", + "longName": "LossSocialization", + "fullName": "vega.events.v1.LossSocialization", + "description": "A loss socialization event contains details on the amount of wins unable to be distributed", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -13020,7 +11074,7 @@ "fields": [ { "name": "market_id", - "description": "Market identifier, required field", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -13028,35 +11082,27 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "LastTradeResponse", - "longName": "LastTradeResponse", - "fullName": "api.v1.LastTradeResponse", - "description": "Response for the latest trade that occurred on Vega for a given market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "trade", - "description": "A trade, if found", + "name": "party_id", + "description": "Party identifier (public key) for the event", "label": "", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "amount", + "description": "Amount distributed", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13065,18 +11111,18 @@ ] }, { - "name": "LiquidityProvisionsRequest", - "longName": "LiquidityProvisionsRequest", - "fullName": "api.v1.LiquidityProvisionsRequest", - "description": "A message requesting for the list of liquidity provision orders for markets\nOne of the two filters is required (or both)", + "name": "MarketEvent", + "longName": "MarketEvent", + "fullName": "vega.events.v1.MarketEvent", + "description": "MarketEvent - the common denominator for all market events\ninterface has a method to return a string for logging", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market", - "description": "The target market for the liquidity provision orders", + "name": "market_id", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -13087,8 +11133,8 @@ "defaultValue": "" }, { - "name": "party", - "description": "The party which submitted the liquidity provision orders", + "name": "payload", + "description": "Payload is a unique information string", "label": "", "type": "string", "longType": "string", @@ -13101,22 +11147,34 @@ ] }, { - "name": "LiquidityProvisionsResponse", - "longName": "LiquidityProvisionsResponse", - "fullName": "api.v1.LiquidityProvisionsResponse", - "description": "A response containing all of the Vega liquidity provision orders", + "name": "MarketTick", + "longName": "MarketTick", + "fullName": "vega.events.v1.MarketTick", + "description": "A market ticket event contains the time value for when a particular market was last processed on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "liquidity_provisions", - "description": "", - "label": "repeated", - "type": "LiquidityProvision", - "longType": "vega.LiquidityProvision", - "fullType": "vega.LiquidityProvision", + "name": "id", + "description": "Market identifier for the event", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "time", + "description": "Timestamp containing latest update from Vega blockchain aka Vega-time", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13125,18 +11183,18 @@ ] }, { - "name": "MarginLevelsRequest", - "longName": "MarginLevelsRequest", - "fullName": "api.v1.MarginLevelsRequest", - "description": "Request for margin levels for a party", + "name": "PendingDelegationBalanceEvent", + "longName": "PendingDelegationBalanceEvent", + "fullName": "vega.events.v1.PendingDelegationBalanceEvent", + "description": "PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier, required field", + "name": "party", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13144,19 +11202,11 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier", + "name": "node_id", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13165,26 +11215,38 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarginLevelsResponse", - "longName": "MarginLevelsResponse", - "fullName": "api.v1.MarginLevelsResponse", - "description": "Response for margin levels for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "margin_levels", - "description": "A list of 0 or more margin levels", - "label": "repeated", - "type": "MarginLevels", - "longType": "vega.MarginLevels", - "fullType": "vega.MarginLevels", + "name": "delegation_amount", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "undelegation_amount", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "epoch_seq", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13193,18 +11255,18 @@ ] }, { - "name": "MarginLevelsSubscribeRequest", - "longName": "MarginLevelsSubscribeRequest", - "fullName": "api.v1.MarginLevelsSubscribeRequest", - "description": "Request to subscribe to a stream of MarginLevels data matching the given party identifier\nOptionally, the list can be additionally filtered by market", + "name": "PositionResolution", + "longName": "PositionResolution", + "fullName": "vega.events.v1.PositionResolution", + "description": "A position resolution event contains information on distressed trades", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier, required field", + "name": "market_id", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -13212,23 +11274,39 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" + }, + { + "name": "distressed", + "description": "Number of distressed traders", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "closed", + "description": "Number of close outs", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier", + "name": "mark_price", + "description": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13237,9 +11315,9 @@ ] }, { - "name": "MarginLevelsSubscribeResponse", - "longName": "MarginLevelsSubscribeResponse", - "fullName": "api.v1.MarginLevelsSubscribeResponse", + "name": "RewardPayoutEvent", + "longName": "RewardPayoutEvent", + "fullName": "vega.events.v1.RewardPayoutEvent", "description": "", "hasExtensions": false, "hasFields": true, @@ -13247,32 +11325,20 @@ "extensions": [], "fields": [ { - "name": "margin_levels", + "name": "party", "description": "", "label": "", - "type": "MarginLevels", - "longType": "vega.MarginLevels", - "fullType": "vega.MarginLevels", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketAccountsRequest", - "longName": "MarketAccountsRequest", - "fullName": "api.v1.MarketAccountsRequest", - "description": "Request for a list of accounts for a market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier", + "name": "epoch_seq", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13284,7 +11350,7 @@ }, { "name": "asset", - "description": "Asset identifier", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13293,46 +11359,22 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketAccountsResponse", - "longName": "MarketAccountsResponse", - "fullName": "api.v1.MarketAccountsResponse", - "description": "Response for a list of accounts for a market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "accounts", - "description": "A list of 0 or more accounts", - "label": "repeated", - "type": "Account", - "longType": "vega.Account", - "fullType": "vega.Account", + "name": "amount", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketByIDRequest", - "longName": "MarketByIDRequest", - "fullName": "api.v1.MarketByIDRequest", - "description": "Request for a market given a market identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier, required field", + "name": "percent_of_total_reward", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13340,35 +11382,15 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "MarketByIDResponse", - "longName": "MarketByIDResponse", - "fullName": "api.v1.MarketByIDResponse", - "description": "Response for a market given a market identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "market", - "description": "A market, if found", + "name": "timestamp", + "description": "", "label": "", - "type": "Market", - "longType": "vega.Market", - "fullType": "vega.Market", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13377,10 +11399,10 @@ ] }, { - "name": "MarketDataByIDRequest", - "longName": "MarketDataByIDRequest", - "fullName": "api.v1.MarketDataByIDRequest", - "description": "Request for market data for a market", + "name": "SettleDistressed", + "longName": "SettleDistressed", + "fullName": "vega.events.v1.SettleDistressed", + "description": "A settle distressed event contains information on distressed trading parties who are closed out", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -13388,7 +11410,7 @@ "fields": [ { "name": "market_id", - "description": "Market identifier", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -13396,75 +11418,35 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "MarketDataByIDResponse", - "longName": "MarketDataByIDResponse", - "fullName": "api.v1.MarketDataByIDResponse", - "description": "Response for market data for a market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "market_data", - "description": "Market data, if found", + "name": "party_id", + "description": "Party identifier (public key) for the event", "label": "", - "type": "MarketData", - "longType": "vega.MarketData", - "fullType": "vega.MarketData", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketDepthRequest", - "longName": "MarketDepthRequest", - "fullName": "api.v1.MarketDepthRequest", - "description": "Request for the market depth/order book price levels on a market\nOptionally, a maximum depth can be set to limit the number of levels returned", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier, required field", + "name": "margin", + "description": "Margin value as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "max_depth", - "description": "Max depth limits the number of levels returned. Default is 0, which returns all levels", + "name": "price", + "description": "Price as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", "type": "uint64", "longType": "uint64", @@ -13477,10 +11459,10 @@ ] }, { - "name": "MarketDepthResponse", - "longName": "MarketDepthResponse", - "fullName": "api.v1.MarketDepthResponse", - "description": "Response for the market depth/order book price levels on a market", + "name": "SettlePosition", + "longName": "SettlePosition", + "fullName": "vega.events.v1.SettlePosition", + "description": "A settle position event contains position settlement information for a party", "hasExtensions": false, "hasFields": true, "hasOneofs": false, @@ -13488,7 +11470,7 @@ "fields": [ { "name": "market_id", - "description": "Market identifier", + "description": "Market identifier for the event", "label": "", "type": "string", "longType": "string", @@ -13499,48 +11481,36 @@ "defaultValue": "" }, { - "name": "buy", - "description": "Zero or more price levels for the buy side of the market depth data", - "label": "repeated", - "type": "PriceLevel", - "longType": "vega.PriceLevel", - "fullType": "vega.PriceLevel", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "sell", - "description": "Zero or more price levels for the sell side of the market depth data", - "label": "repeated", - "type": "PriceLevel", - "longType": "vega.PriceLevel", - "fullType": "vega.PriceLevel", + "name": "party_id", + "description": "Party identifier (public key) for the event", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "last_trade", - "description": "Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`", + "name": "price", + "description": "Price of settlement as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "sequence_number", - "description": "Sequence number incremented after each update", - "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "name": "trade_settlements", + "description": "A collection of 1 or more trade settlements", + "label": "repeated", + "type": "TradeSettlement", + "longType": "TradeSettlement", + "fullType": "vega.events.v1.TradeSettlement", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13549,18 +11519,18 @@ ] }, { - "name": "MarketDepthSubscribeRequest", - "longName": "MarketDepthSubscribeRequest", - "fullName": "api.v1.MarketDepthSubscribeRequest", - "description": "Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data", + "name": "StakeLinking", + "longName": "StakeLinking", + "fullName": "vega.events.v1.StakeLinking", + "description": "StakeLinking - an event notifying of stake being deposited or removed for a given party\nThese events are emitted for every Staking deposit or removed accepted by the network", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier, required field.", + "name": "id", + "description": "The internal ID for this staking event", "label": "", "type": "string", "longType": "string", @@ -13568,55 +11538,47 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "MarketDepthSubscribeResponse", - "longName": "MarketDepthSubscribeResponse", - "fullName": "api.v1.MarketDepthSubscribeResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, + { + "name": "type", + "description": "The type of event", + "label": "", + "type": "Type", + "longType": "StakeLinking.Type", + "fullType": "vega.events.v1.StakeLinking.Type", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "ts", + "description": "The timestamps at which the event was emitted by ethereum", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, { - "name": "market_depth", - "description": "", + "name": "party", + "description": "The party to whom the event is directed at.", "label": "", - "type": "MarketDepth", - "longType": "vega.MarketDepth", - "fullType": "vega.MarketDepth", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketDepthUpdatesSubscribeRequest", - "longName": "MarketDepthUpdatesSubscribeRequest", - "fullName": "api.v1.MarketDepthUpdatesSubscribeRequest", - "description": "Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier, required field", + "name": "amount", + "description": "The amount of stake deposited or removed", "label": "", "type": "string", "longType": "string", @@ -13624,90 +11586,35 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "MarketDepthUpdatesSubscribeResponse", - "longName": "MarketDepthUpdatesSubscribeResponse", - "fullName": "api.v1.MarketDepthUpdatesSubscribeResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "update", - "description": "", + "name": "status", + "description": "The status of the event", "label": "", - "type": "MarketDepthUpdate", - "longType": "vega.MarketDepthUpdate", - "fullType": "vega.MarketDepthUpdate", + "type": "Status", + "longType": "StakeLinking.Status", + "fullType": "vega.events.v1.StakeLinking.Status", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketsDataRequest", - "longName": "MarketsDataRequest", - "fullName": "api.v1.MarketsDataRequest", - "description": "Request for market data", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "MarketsDataResponse", - "longName": "MarketsDataResponse", - "fullName": "api.v1.MarketsDataResponse", - "description": "Response for market data", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "markets_data", - "description": "A list of 0 or more market data", - "label": "repeated", - "type": "MarketData", - "longType": "vega.MarketData", - "fullType": "vega.MarketData", + "name": "finalized_at", + "description": "The time at which the vega network finalized the state of the event", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "MarketsDataSubscribeRequest", - "longName": "MarketsDataSubscribeRequest", - "fullName": "api.v1.MarketsDataSubscribeRequest", - "description": "Request to subscribe to a stream of MarketsData\nOptionally, the list can be additionally filtered by market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "market_id", - "description": "Market identifier", + "name": "tx_hash", + "description": "The hash of the transaction from which the events happen", "label": "", "type": "string", "longType": "string", @@ -13720,22 +11627,22 @@ ] }, { - "name": "MarketsDataSubscribeResponse", - "longName": "MarketsDataSubscribeResponse", - "fullName": "api.v1.MarketsDataSubscribeResponse", - "description": "", + "name": "TimeUpdate", + "longName": "TimeUpdate", + "fullName": "vega.events.v1.TimeUpdate", + "description": "A time update event contains the latest time update from Vega blockchain", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_data", - "description": "", + "name": "timestamp", + "description": "Timestamp containing latest update from Vega blockchain aka Vega-time", "label": "", - "type": "MarketData", - "longType": "vega.MarketData", - "fullType": "vega.MarketData", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13744,33 +11651,34 @@ ] }, { - "name": "MarketsRequest", - "longName": "MarketsRequest", - "fullName": "api.v1.MarketsRequest", - "description": "Request for a list of markets on Vega", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "MarketsResponse", - "longName": "MarketsResponse", - "fullName": "api.v1.MarketsResponse", - "description": "Response for a list of markets on Vega", + "name": "TradeSettlement", + "longName": "TradeSettlement", + "fullName": "vega.events.v1.TradeSettlement", + "description": "A trade settlement is part of the settle position event", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "markets", - "description": "A list of 0 or more markets", - "label": "repeated", - "type": "Market", - "longType": "vega.Market", - "fullType": "vega.Market", + "name": "size", + "description": "Size of trade settlement", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "price", + "description": "Price of settlement as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13779,33 +11687,22 @@ ] }, { - "name": "NetworkParametersRequest", - "longName": "NetworkParametersRequest", - "fullName": "api.v1.NetworkParametersRequest", - "description": "A message requesting for the list of all network parameters", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "NetworkParametersResponse", - "longName": "NetworkParametersResponse", - "fullName": "api.v1.NetworkParametersResponse", - "description": "A response containing all of the vega network parameters", + "name": "TransferResponses", + "longName": "TransferResponses", + "fullName": "vega.events.v1.TransferResponses", + "description": "A transfer responses event contains a collection of transfer information", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "network_parameters", - "description": "", + "name": "responses", + "description": "One or more entries containing internal transfer information", "label": "repeated", - "type": "NetworkParameter", - "longType": "vega.NetworkParameter", - "fullType": "vega.NetworkParameter", + "type": "TransferResponse", + "longType": "vega.TransferResponse", + "fullType": "vega.TransferResponse", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -13814,30 +11711,30 @@ ] }, { - "name": "ObserveEventBusRequest", - "longName": "ObserveEventBusRequest", - "fullName": "api.v1.ObserveEventBusRequest", - "description": "Request to subscribe to a stream of one or more event types from the Vega event bus", + "name": "TxErrorEvent", + "longName": "TxErrorEvent", + "fullName": "vega.events.v1.TxErrorEvent", + "description": "", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "type", - "description": "One or more types of event, required field", - "label": "repeated", - "type": "BusEventType", - "longType": "vega.events.v1.BusEventType", - "fullType": "vega.events.v1.BusEventType", + "name": "party_id", + "description": "Unique party identifier for the related party", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier, optional field", + "name": "err_msg", + "description": "An error message describing what went wrong", "label": "", "type": "string", "longType": "string", @@ -13848,103 +11745,104 @@ "defaultValue": "" }, { - "name": "party_id", - "description": "Party identifier, optional field", + "name": "order_submission", + "description": "", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "OrderSubmission", + "longType": "vega.commands.v1.OrderSubmission", + "fullType": "vega.commands.v1.OrderSubmission", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "transaction", "defaultValue": "" }, { - "name": "batch_size", - "description": "Batch size, optional field -\nIf not specified, any events received will be sent immediately. If the client is not ready\nfor the next data-set, data may be dropped a number of times, and eventually the stream is closed.\nif specified, the first batch will be sent when ready. To receive the next set of events, the client\nmust write an `ObserveEventBatch` message on the stream to flush the buffer.\nIf no message is received in 5 seconds, the stream is closed.\nDefault: 0, send any and all events when they are available.", + "name": "order_amendment", + "description": "", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "OrderAmendment", + "longType": "vega.commands.v1.OrderAmendment", + "fullType": "vega.commands.v1.OrderAmendment", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "transaction", "defaultValue": "" - } - ] - }, - { - "name": "ObserveEventBusResponse", - "longName": "ObserveEventBusResponse", - "fullName": "api.v1.ObserveEventBusResponse", - "description": "Response to a subscribed stream of events from the Vega event bus", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, + { + "name": "order_cancellation", + "description": "", + "label": "", + "type": "OrderCancellation", + "longType": "vega.commands.v1.OrderCancellation", + "fullType": "vega.commands.v1.OrderCancellation", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" + }, + { + "name": "proposal", + "description": "", + "label": "", + "type": "ProposalSubmission", + "longType": "vega.commands.v1.ProposalSubmission", + "fullType": "vega.commands.v1.ProposalSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" + }, + { + "name": "vote_submission", + "description": "", + "label": "", + "type": "VoteSubmission", + "longType": "vega.commands.v1.VoteSubmission", + "fullType": "vega.commands.v1.VoteSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" + }, { - "name": "events", - "description": "One or more events", - "label": "repeated", - "type": "BusEvent", - "longType": "vega.events.v1.BusEvent", - "fullType": "vega.events.v1.BusEvent", + "name": "liquidity_provision_submission", + "description": "", + "label": "", + "type": "LiquidityProvisionSubmission", + "longType": "vega.commands.v1.LiquidityProvisionSubmission", + "fullType": "vega.commands.v1.LiquidityProvisionSubmission", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "transaction", "defaultValue": "" - } - ] - }, - { - "name": "ObserveGovernanceRequest", - "longName": "ObserveGovernanceRequest", - "fullName": "api.v1.ObserveGovernanceRequest", - "description": "Request to obsever all event related to governance", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "ObserveGovernanceResponse", - "longName": "ObserveGovernanceResponse", - "fullName": "api.v1.ObserveGovernanceResponse", - "description": "All events related to governance", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "data", + "name": "withdraw_submission", "description": "", "label": "", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "type": "WithdrawSubmission", + "longType": "vega.commands.v1.WithdrawSubmission", + "fullType": "vega.commands.v1.WithdrawSubmission", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "transaction", "defaultValue": "" } ] }, { - "name": "ObservePartyProposalsRequest", - "longName": "ObservePartyProposalsRequest", - "fullName": "api.v1.ObservePartyProposalsRequest", - "description": "Request to subscribe to a stream of governance proposals for a party", + "name": "ValidatorScoreEvent", + "longName": "ValidatorScoreEvent", + "fullName": "vega.events.v1.ValidatorScoreEvent", + "description": "ValidatorScoreEvent is the score a validator gets for a given epoch", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier, required field", + "name": "node_id", + "description": "", "label": "", "type": "string", "longType": "string", @@ -13952,55 +11850,23 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "ObservePartyProposalsResponse", - "longName": "ObservePartyProposalsResponse", - "fullName": "api.v1.ObservePartyProposalsResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "data", + "name": "epoch_seq", "description": "", "label": "", - "type": "GovernanceData", - "longType": "vega.GovernanceData", - "fullType": "vega.GovernanceData", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "ObservePartyVotesRequest", - "longName": "ObservePartyVotesRequest", - "fullName": "api.v1.ObservePartyVotesRequest", - "description": "Request to subscribe to a stream of governance votes for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "Party identifier, required field", + "name": "validator_score", + "description": "", "label": "", "type": "string", "longType": "string", @@ -14008,35 +11874,15 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "ObservePartyVotesResponse", - "longName": "ObservePartyVotesResponse", - "fullName": "api.v1.ObservePartyVotesResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "vote", + "name": "normalised_score", "description": "", "label": "", - "type": "Vote", - "longType": "vega.Vote", - "fullType": "vega.Vote", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14045,18 +11891,18 @@ ] }, { - "name": "ObserveProposalVotesRequest", - "longName": "ObserveProposalVotesRequest", - "fullName": "api.v1.ObserveProposalVotesRequest", - "description": "Request to subscribe to a stream of governance votes for a proposal", + "name": "ValidatorUpdate", + "longName": "ValidatorUpdate", + "fullName": "vega.events.v1.ValidatorUpdate", + "description": "A validator update event contains information about validator node", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "proposal_id", - "description": "Proposal identifier, required field", + "name": "vega_pub_key", + "description": "Vega public key of validator node", "label": "", "type": "string", "longType": "string", @@ -14064,79 +11910,35 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "ObserveProposalVotesResponse", - "longName": "ObserveProposalVotesResponse", - "fullName": "api.v1.ObserveProposalVotesResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "vote", - "description": "", + "name": "ethereum_address", + "description": "Ethereum public key of validator node", "label": "", - "type": "Vote", - "longType": "vega.Vote", - "fullType": "vega.Vote", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OptionalProposalState", - "longName": "OptionalProposalState", - "fullName": "api.v1.OptionalProposalState", - "description": "Optional proposal state", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "value", - "description": "Proposal state value", + "name": "tm_pub_key", + "description": "Public key of Tendermint", "label": "", - "type": "State", - "longType": "vega.Proposal.State", - "fullType": "vega.Proposal.State", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OracleDataBySpecRequest", - "longName": "OracleDataBySpecRequest", - "fullName": "api.v1.OracleDataBySpecRequest", - "description": "A request to all oracle data broadcast to a given spec", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "id", - "description": "The id to get the oracle spec for", + "name": "info_url", + "description": "URL with more info on the node", "label": "", "type": "string", "longType": "string", @@ -14144,55 +11946,11 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "OracleDataBySpecResponse", - "longName": "OracleDataBySpecResponse", - "fullName": "api.v1.OracleDataBySpecResponse", - "description": "The response for a list of all oracle data broadcast to a given spec", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "oracle_data", - "description": "The list of oracle data broadcast to a given spec", - "label": "repeated", - "type": "OracleData", - "longType": "oracles.v1.OracleData", - "fullType": "oracles.v1.OracleData", - "ismap": false, - "isoneof": false, - "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OracleSpecRequest", - "longName": "OracleSpecRequest", - "fullName": "api.v1.OracleSpecRequest", - "description": "A request to get a specific oracle spec by identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "id", - "description": "The id to get the oracle spec for", + "name": "country", + "description": "Country code (ISO 3166-1 alpha-2) for the location of the node", "label": "", "type": "string", "longType": "string", @@ -14200,158 +11958,322 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" + } + ] + } + ], + "services": [] + }, + { + "name": "commands/v1/oracles.proto", + "description": "", + "package": "vega.commands.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [ + { + "name": "OracleSource", + "longName": "OracleDataSubmission.OracleSource", + "fullName": "vega.commands.v1.OracleDataSubmission.OracleSource", + "description": "The supported Oracle sources", + "values": [ + { + "name": "ORACLE_SOURCE_UNSPECIFIED", + "number": "0", + "description": "The default value" + }, + { + "name": "ORACLE_SOURCE_OPEN_ORACLE", + "number": "1", + "description": "Support for Open Oracle standard" } ] - }, + } + ], + "extensions": [], + "messages": [ { - "name": "OracleSpecResponse", - "longName": "OracleSpecResponse", - "fullName": "api.v1.OracleSpecResponse", - "description": "A response for a oracle spec", + "name": "OracleDataSubmission", + "longName": "OracleDataSubmission", + "fullName": "vega.commands.v1.OracleDataSubmission", + "description": "Command to submit new Oracle data from third party providers", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "oracle_spec", - "description": "The withdrawal matching the identifier from the request", + "name": "source", + "description": "The source from which the data is coming from", "label": "", - "type": "OracleSpec", - "longType": "oracles.v1.OracleSpec", - "fullType": "oracles.v1.OracleSpec", + "type": "OracleSource", + "longType": "OracleDataSubmission.OracleSource", + "fullType": "vega.commands.v1.OracleDataSubmission.OracleSource", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OracleSpecsRequest", - "longName": "OracleSpecsRequest", - "fullName": "api.v1.OracleSpecsRequest", - "description": "A request to get a specific oracle spec by identifier", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "OracleSpecsResponse", - "longName": "OracleSpecsResponse", - "fullName": "api.v1.OracleSpecsResponse", - "description": "The response for a list of withdrawals", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "oracle_specs", - "description": "The list of oracle specs", - "label": "repeated", - "type": "OracleSpec", - "longType": "oracles.v1.OracleSpec", - "fullType": "oracles.v1.OracleSpec", + "name": "payload", + "description": "The data provided by the third party provider", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" } ] - }, + } + ], + "services": [] + }, + { + "name": "commands/v1/transaction.proto", + "description": "", + "package": "vega.commands.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [], + "extensions": [], + "messages": [ { - "name": "OrderByIDRequest", - "longName": "OrderByIDRequest", - "fullName": "api.v1.OrderByIDRequest", - "description": "Request for an order with the specified order identifier\nOptionally, return a specific version of the order with the `version` field", + "name": "InputData", + "longName": "InputData", + "fullName": "vega.commands.v1.InputData", + "description": "", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "order_id", - "description": "Order identifier, required field", + "name": "nonce", + "description": "A random number used to provided uniqueness and prevents against replay\nattack.", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "version", - "description": "Version of the order:\n- Set `version` to 0 for most recent version of the order\n- Set `1` for original version of the order\n- Set `2` for first amendment, `3` for second amendment, etc", + "name": "block_height", + "description": "The block height associated to the transaction.\nThis should always be current height of the node at the time of sending the\nTx. BlockHeight is used as a mechanism for replay protection.", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "order_submission", + "description": "User commands", + "label": "", + "type": "OrderSubmission", + "longType": "OrderSubmission", + "fullType": "vega.commands.v1.OrderSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "order_cancellation", + "description": "", + "label": "", + "type": "OrderCancellation", + "longType": "OrderCancellation", + "fullType": "vega.commands.v1.OrderCancellation", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "order_amendment", + "description": "", + "label": "", + "type": "OrderAmendment", + "longType": "OrderAmendment", + "fullType": "vega.commands.v1.OrderAmendment", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "withdraw_submission", + "description": "", + "label": "", + "type": "WithdrawSubmission", + "longType": "WithdrawSubmission", + "fullType": "vega.commands.v1.WithdrawSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "proposal_submission", + "description": "", + "label": "", + "type": "ProposalSubmission", + "longType": "ProposalSubmission", + "fullType": "vega.commands.v1.ProposalSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "vote_submission", + "description": "", + "label": "", + "type": "VoteSubmission", + "longType": "VoteSubmission", + "fullType": "vega.commands.v1.VoteSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "liquidity_provision_submission", + "description": "", + "label": "", + "type": "LiquidityProvisionSubmission", + "longType": "LiquidityProvisionSubmission", + "fullType": "vega.commands.v1.LiquidityProvisionSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "delegate_submission", + "description": "", + "label": "", + "type": "DelegateSubmission", + "longType": "DelegateSubmission", + "fullType": "vega.commands.v1.DelegateSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "undelegate_submission", + "description": "", + "label": "", + "type": "UndelegateSubmission", + "longType": "UndelegateSubmission", + "fullType": "vega.commands.v1.UndelegateSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "node_registration", + "description": "Validator commands", + "label": "", + "type": "NodeRegistration", + "longType": "NodeRegistration", + "fullType": "vega.commands.v1.NodeRegistration", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "node_vote", + "description": "", + "label": "", + "type": "NodeVote", + "longType": "NodeVote", + "fullType": "vega.commands.v1.NodeVote", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "node_signature", + "description": "", + "label": "", + "type": "NodeSignature", + "longType": "NodeSignature", + "fullType": "vega.commands.v1.NodeSignature", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "chain_event", + "description": "", + "label": "", + "type": "ChainEvent", + "longType": "ChainEvent", + "fullType": "vega.commands.v1.ChainEvent", + "ismap": false, + "isoneof": true, + "oneofdecl": "command", + "defaultValue": "" + }, + { + "name": "oracle_data_submission", + "description": "Oracles", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "OracleDataSubmission", + "longType": "OracleDataSubmission", + "fullType": "vega.commands.v1.OracleDataSubmission", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "command", "defaultValue": "" - } - ] - }, - { - "name": "OrderByIDResponse", - "longName": "OrderByIDResponse", - "fullName": "api.v1.OrderByIDResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "order", - "description": "", + "name": "restore_snapshot_submission", + "description": "Checkpoints", "label": "", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "RestoreSnapshot", + "longType": "RestoreSnapshot", + "fullType": "vega.commands.v1.RestoreSnapshot", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "command", "defaultValue": "" } ] }, { - "name": "OrderByMarketAndIDRequest", - "longName": "OrderByMarketAndIDRequest", - "fullName": "api.v1.OrderByMarketAndIDRequest", - "description": "Request for an order on a market given an order identifier", + "name": "Signature", + "longName": "Signature", + "fullName": "vega.commands.v1.Signature", + "description": "A signature to be authenticate a transaction and to be verified by the vega\nnetwork.", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier, required field", + "name": "value", + "description": "The bytes of the signature (hex-encoded).", "label": "", "type": "string", "longType": "string", @@ -14359,19 +12281,11 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "order_id", - "description": "Order identifier, required field", + "name": "algo", + "description": "The algorithm used to create the signature.", "label": "", "type": "string", "longType": "string", @@ -14379,35 +12293,15 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "OrderByMarketAndIDResponse", - "longName": "OrderByMarketAndIDResponse", - "fullName": "api.v1.OrderByMarketAndIDResponse", - "description": "Response for an order on a market given an order identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "order", - "description": "An order, if found", + "name": "version", + "description": "The version of the signature used to create the signature.", "label": "", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14416,190 +12310,148 @@ ] }, { - "name": "OrderByReferenceRequest", - "longName": "OrderByReferenceRequest", - "fullName": "api.v1.OrderByReferenceRequest", - "description": "Request for an order given an order reference", + "name": "Transaction", + "longName": "Transaction", + "fullName": "vega.commands.v1.Transaction", + "description": "Represents a transaction to be sent to Vega.", "hasExtensions": false, "hasFields": true, - "hasOneofs": false, + "hasOneofs": true, "extensions": [], "fields": [ { - "name": "reference", - "description": "Unique reference, required field", + "name": "input_data", + "description": "One of the set of Vega commands (proto marshalled).", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "OrderByReferenceResponse", - "longName": "OrderByReferenceResponse", - "fullName": "api.v1.OrderByReferenceResponse", - "description": "Response for an order given an order reference", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "order", - "description": "An order, if found", + "name": "signature", + "description": "The signature of the inputData.", "label": "", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "Signature", + "longType": "Signature", + "fullType": "vega.commands.v1.Signature", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OrderVersionsByIDRequest", - "longName": "OrderVersionsByIDRequest", - "fullName": "api.v1.OrderVersionsByIDRequest", - "description": "Request for a list of all versions of an order given the specified order identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "order_id", - "description": "Order identifier, required field", + "name": "address", + "description": "The address of the sender (hex-encoded). Not supported yet.", "label": "", "type": "string", "longType": "string", "fullType": "string", "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } + "isoneof": true, + "oneofdecl": "from", + "defaultValue": "" }, { - "name": "pagination", - "description": "Pagination controls", + "name": "pub_key", + "description": "The public key of the sender (hex-encoded).", "label": "", - "type": "Pagination", - "longType": "Pagination", - "fullType": "api.v1.Pagination", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, - "isoneof": false, - "oneofdecl": "", + "isoneof": true, + "oneofdecl": "from", "defaultValue": "" - } - ] - }, - { - "name": "OrderVersionsByIDResponse", - "longName": "OrderVersionsByIDResponse", - "fullName": "api.v1.OrderVersionsByIDResponse", - "description": "Response to a request for a list of all versions of an order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "orders", - "description": "A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)", - "label": "repeated", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "name": "version", + "description": "A version of the transaction, to be used in the future in case we want to\nimplement changes to the Transaction format.", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" } ] - }, + } + ], + "services": [] + }, + { + "name": "api/trading.proto", + "description": "", + "package": "api.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": true, + "enums": [ { - "name": "OrdersByMarketRequest", - "longName": "OrdersByMarketRequest", - "fullName": "api.v1.OrdersByMarketRequest", - "description": "Request for a list of orders for a market", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "name": "Type", + "longName": "SubmitTransactionV2Request.Type", + "fullName": "api.v1.SubmitTransactionV2Request.Type", + "description": "Blockchain transaction type", + "values": [ { - "name": "market_id", - "description": "Market identifier, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "name": "TYPE_UNSPECIFIED", + "number": "0", + "description": "" }, { - "name": "pagination", - "description": "Optional pagination controls", - "label": "", - "type": "Pagination", - "longType": "Pagination", - "fullType": "api.v1.Pagination", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" + "name": "TYPE_ASYNC", + "number": "1", + "description": "The transaction will be submitted without waiting for response" + }, + { + "name": "TYPE_SYNC", + "number": "2", + "description": "The transaction will be submitted, and blocking until the\ntendermint mempool return a response" + }, + { + "name": "TYPE_COMMIT", + "number": "3", + "description": "The transaction will submitted, and blocking until the tendermint\nnetwork will have committed it into a block" } ] + } + ], + "extensions": [], + "messages": [ + { + "name": "GetVegaTimeRequest", + "longName": "GetVegaTimeRequest", + "fullName": "api.v1.GetVegaTimeRequest", + "description": "Request for the current time of the vega network", + "hasExtensions": false, + "hasFields": false, + "hasOneofs": false, + "extensions": [], + "fields": [] }, { - "name": "OrdersByMarketResponse", - "longName": "OrdersByMarketResponse", - "fullName": "api.v1.OrdersByMarketResponse", - "description": "Response for a list of orders for a market", + "name": "GetVegaTimeResponse", + "longName": "GetVegaTimeResponse", + "fullName": "api.v1.GetVegaTimeResponse", + "description": "Response for the current consensus coordinated time on the Vega network, referred to as \"VegaTime\"", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "orders", - "description": "A list of 0 or more orders", - "label": "repeated", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "name": "timestamp", + "description": "Timestamp representation of current VegaTime as represented in\nNanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14608,42 +12460,33 @@ ] }, { - "name": "OrdersByPartyRequest", - "longName": "OrdersByPartyRequest", - "fullName": "api.v1.OrdersByPartyRequest", - "description": "Request for a list of orders for a party", + "name": "LastBlockHeightRequest", + "longName": "LastBlockHeightRequest", + "fullName": "api.v1.LastBlockHeightRequest", + "description": "A request to get the height of the very last block processed\nby tendermint", + "hasExtensions": false, + "hasFields": false, + "hasOneofs": false, + "extensions": [], + "fields": [] + }, + { + "name": "LastBlockHeightResponse", + "longName": "LastBlockHeightResponse", + "fullName": "api.v1.LastBlockHeightResponse", + "description": "A response with the height of the last block processed by\ntendermint", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - }, - { - "name": "pagination", - "description": "Pagination controls", + "name": "height", + "description": "", "label": "", - "type": "Pagination", - "longType": "Pagination", - "fullType": "api.v1.Pagination", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14652,42 +12495,30 @@ ] }, { - "name": "OrdersByPartyResponse", - "longName": "OrdersByPartyResponse", - "fullName": "api.v1.OrdersByPartyResponse", - "description": "Response for a list of orders for a party", + "name": "ObserveEventBusRequest", + "longName": "ObserveEventBusRequest", + "fullName": "api.v1.ObserveEventBusRequest", + "description": "Request to subscribe to a stream of one or more event types from the Vega event bus", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "orders", - "description": "A list of 0 or more orders", + "name": "type", + "description": "One or more types of event, required field", "label": "repeated", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "BusEventType", + "longType": "vega.events.v1.BusEventType", + "fullType": "vega.events.v1.BusEventType", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "OrdersSubscribeRequest", - "longName": "OrdersSubscribeRequest", - "fullName": "api.v1.OrdersSubscribeRequest", - "description": "Request to subscribe to a stream of (Orders)[#vega.Order]", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { "name": "market_id", - "description": "Market identifier", + "description": "Market identifier, optional field", "label": "", "type": "string", "longType": "string", @@ -14699,7 +12530,7 @@ }, { "name": "party_id", - "description": "Party identifier", + "description": "Party identifier, optional field", "label": "", "type": "string", "longType": "string", @@ -14708,26 +12539,38 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" + }, + { + "name": "batch_size", + "description": "Batch size, optional field -\nIf not specified, any events received will be sent immediately. If the client is not ready\nfor the next data-set, data may be dropped a number of times, and eventually the stream is closed.\nif specified, the first batch will be sent when ready. To receive the next set of events, the client\nmust write an `ObserveEventBatch` message on the stream to flush the buffer.\nIf no message is received in 5 seconds, the stream is closed.\nDefault: 0, send any and all events when they are available.", + "label": "", + "type": "int64", + "longType": "int64", + "fullType": "int64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, { - "name": "OrdersSubscribeResponse", - "longName": "OrdersSubscribeResponse", - "fullName": "api.v1.OrdersSubscribeResponse", - "description": "A stream of orders", + "name": "ObserveEventBusResponse", + "longName": "ObserveEventBusResponse", + "fullName": "api.v1.ObserveEventBusResponse", + "description": "Response to a subscribed stream of events from the Vega event bus", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "orders", - "description": "A list of 0 or more orders", + "name": "events", + "description": "One or more events", "label": "repeated", - "type": "Order", - "longType": "vega.Order", - "fullType": "vega.Order", + "type": "BusEvent", + "longType": "vega.events.v1.BusEvent", + "fullType": "vega.events.v1.BusEvent", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14736,46 +12579,46 @@ ] }, { - "name": "Pagination", - "longName": "Pagination", - "fullName": "api.v1.Pagination", - "description": "Pagination controls", + "name": "PropagateChainEventRequest", + "longName": "PropagateChainEventRequest", + "fullName": "api.v1.PropagateChainEventRequest", + "description": "Request for a new event sent by the blockchain queue to be propagated on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "skip", - "description": "Skip the number of records specified, default is 0", + "name": "event", + "description": "Chain event", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "limit", - "description": "Limit the number of returned records to the value specified, default is 50", + "name": "pub_key", + "description": "Public key", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "descending", - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order", + "name": "signature", + "description": "Signature", "label": "", - "type": "bool", - "longType": "bool", - "fullType": "bool", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14784,33 +12627,22 @@ ] }, { - "name": "PartiesRequest", - "longName": "PartiesRequest", - "fullName": "api.v1.PartiesRequest", - "description": "Request for a list of all parties", - "hasExtensions": false, - "hasFields": false, - "hasOneofs": false, - "extensions": [], - "fields": [] - }, - { - "name": "PartiesResponse", - "longName": "PartiesResponse", - "fullName": "api.v1.PartiesResponse", - "description": "Response to a request for a list of parties", + "name": "PropagateChainEventResponse", + "longName": "PropagateChainEventResponse", + "fullName": "api.v1.PropagateChainEventResponse", + "description": "Response for a new event sent by the blockchain queue to be propagated on Vega", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "parties", - "description": "A list of 0 or more parties", - "label": "repeated", - "type": "Party", - "longType": "vega.Party", - "fullType": "vega.Party", + "name": "success", + "description": "Success will be true if the event was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", + "label": "", + "type": "bool", + "longType": "bool", + "fullType": "bool", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -14819,158 +12651,66 @@ ] }, { - "name": "PartyAccountsRequest", - "longName": "PartyAccountsRequest", - "fullName": "api.v1.PartyAccountsRequest", - "description": "Request for a list of accounts for a party", + "name": "Statistics", + "longName": "Statistics", + "fullName": "api.v1.Statistics", + "description": "Vega domain specific statistics as reported by the node the caller is connected to", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier", + "name": "block_height", + "description": "Current block height as reported by the Vega blockchain", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier", + "name": "backlog_length", + "description": "Current backlog length (number of transactions) that are waiting to be included in a block", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "type", - "description": "Account type, required field", + "name": "total_peers", + "description": "Total number of connected peers to this node", "label": "", - "type": "AccountType", - "longType": "vega.AccountType", - "fullType": "vega.AccountType", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "asset", - "description": "Asset identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "PartyAccountsResponse", - "longName": "PartyAccountsResponse", - "fullName": "api.v1.PartyAccountsResponse", - "description": "Response for a list of accounts for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "accounts", - "description": "A list of 0 or more accounts", - "label": "repeated", - "type": "Account", - "longType": "vega.Account", - "fullType": "vega.Account", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "PartyByIDRequest", - "longName": "PartyByIDRequest", - "fullName": "api.v1.PartyByIDRequest", - "description": "Request for a party given a party identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "party_id", - "description": "Party identifier, required field", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "PartyByIDResponse", - "longName": "PartyByIDResponse", - "fullName": "api.v1.PartyByIDResponse", - "description": "Response for a party given a party identifier", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "party", - "description": "A party, if found", - "label": "", - "type": "Party", - "longType": "vega.Party", - "fullType": "vega.Party", + "name": "genesis_time", + "description": "Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PositionsByPartyRequest", - "longName": "PositionsByPartyRequest", - "fullName": "api.v1.PositionsByPartyRequest", - "description": "Request for a list of positions for a party\nOptionally, if a market identifier is set, the results will be filtered for that market only", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "Party identifier, required field", + "name": "current_time", + "description": "Current system date and time formatted in ISO-8601 datetime format with nanosecond precision", "label": "", "type": "string", "longType": "string", @@ -14978,19 +12718,11 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier", + "name": "vega_time", + "description": "Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision", "label": "", "type": "string", "longType": "string", @@ -14999,506 +12731,286 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PositionsByPartyResponse", - "longName": "PositionsByPartyResponse", - "fullName": "api.v1.PositionsByPartyResponse", - "description": "Response for a list of positions for a party", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "positions", - "description": "A list of 0 or more positions", - "label": "repeated", - "type": "Position", - "longType": "vega.Position", - "fullType": "vega.Position", + "name": "status", + "description": "Status of the connection to the Vega blockchain\n- See [`ChainStatus`](#vega.ChainStatus)", + "label": "", + "type": "ChainStatus", + "longType": "vega.ChainStatus", + "fullType": "vega.ChainStatus", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PositionsSubscribeRequest", - "longName": "PositionsSubscribeRequest", - "fullName": "api.v1.PositionsSubscribeRequest", - "description": "Request to subscribe to a stream of (Positions)[#vega.Position]", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "party_id", - "description": "Party identifier, optional field", + "name": "tx_per_block", + "description": "Transactions per block", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "market_id", - "description": "Market identifier, optional field", + "name": "average_tx_bytes", + "description": "Average transaction size in bytes", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PositionsSubscribeResponse", - "longName": "PositionsSubscribeResponse", - "fullName": "api.v1.PositionsSubscribeResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "position", - "description": "", + "name": "average_orders_per_block", + "description": "Average orders per block", "label": "", - "type": "Position", - "longType": "vega.Position", - "fullType": "vega.Position", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareAmendOrderRequest", - "longName": "PrepareAmendOrderRequest", - "fullName": "api.v1.PrepareAmendOrderRequest", - "description": "Request to amend an existing order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "amendment", - "description": "An order amendment", + "name": "trades_per_second", + "description": "Trades emitted per second", "label": "", - "type": "OrderAmendment", - "longType": "vega.commands.v1.OrderAmendment", - "fullType": "vega.commands.v1.OrderAmendment", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareAmendOrderResponse", - "longName": "PrepareAmendOrderResponse", - "fullName": "api.v1.PrepareAmendOrderResponse", - "description": "Response for preparing an order amendment", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "blob", - "description": "Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.", + "name": "orders_per_second", + "description": "Orders processed per second", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareCancelOrderRequest", - "longName": "PrepareCancelOrderRequest", - "fullName": "api.v1.PrepareCancelOrderRequest", - "description": "Request to cancel an existing order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "cancellation", - "description": "An order cancellation", + "name": "total_markets", + "description": "Total markets on this Vega network", "label": "", - "type": "OrderCancellation", - "longType": "vega.commands.v1.OrderCancellation", - "fullType": "vega.commands.v1.OrderCancellation", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareCancelOrderResponse", - "longName": "PrepareCancelOrderResponse", - "fullName": "api.v1.PrepareCancelOrderResponse", - "description": "Response for preparing an order cancellation", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "blob", - "description": "Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction", + "name": "total_amend_order", + "description": "Total number of order amendments since genesis (on all markets)", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareLiquidityProvisionRequest", - "longName": "PrepareLiquidityProvisionRequest", - "fullName": "api.v1.PrepareLiquidityProvisionRequest", - "description": "Request to prepare liquiditity provision", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "submission", - "description": "Submission, required field", + "name": "total_cancel_order", + "description": "Total number of order cancellations since genesis (on all markets)", "label": "", - "type": "LiquidityProvisionSubmission", - "longType": "vega.commands.v1.LiquidityProvisionSubmission", - "fullType": "vega.commands.v1.LiquidityProvisionSubmission", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - } - ] - }, - { - "name": "PrepareLiquidityProvisionResponse", - "longName": "PrepareLiquidityProvisionResponse", - "fullName": "api.v1.PrepareLiquidityProvisionResponse", - "description": "Response to a liquidity provision request", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "blob", - "description": "A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction", + "name": "total_create_order", + "description": "Total number of order submissions since genesis (on all markets)", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareProposalSubmissionRequest", - "longName": "PrepareProposalSubmissionRequest", - "fullName": "api.v1.PrepareProposalSubmissionRequest", - "description": "Request to prepare a governance proposal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "submission", - "description": "", + "name": "total_orders", + "description": "Total number of orders processed since genesis (on all markets)", "label": "", - "type": "ProposalSubmission", - "longType": "vega.commands.v1.ProposalSubmission", - "fullType": "vega.commands.v1.ProposalSubmission", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareProposalSubmissionResponse", - "longName": "PrepareProposalSubmissionResponse", - "fullName": "api.v1.PrepareProposalSubmissionResponse", - "description": "Response to prepare a governance proposal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "blob", - "description": "A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction", + "name": "total_trades", + "description": "Total number of trades emitted since genesis (on all markets)", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "order_subscriptions", + "description": "Current number of stream subscribers to order data", + "label": "", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "submission", - "description": "A copy of the prepared proposal", + "name": "trade_subscriptions", + "description": "Current number of stream subscribers to trade data", "label": "", - "type": "ProposalSubmission", - "longType": "vega.commands.v1.ProposalSubmission", - "fullType": "vega.commands.v1.ProposalSubmission", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareSubmitOrderRequest", - "longName": "PrepareSubmitOrderRequest", - "fullName": "api.v1.PrepareSubmitOrderRequest", - "description": "Request to submit a new order", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "submission", - "description": "An order submission", + "name": "candle_subscriptions", + "description": "Current number of stream subscribers to candle-stick data", "label": "", - "type": "OrderSubmission", - "longType": "vega.commands.v1.OrderSubmission", - "fullType": "vega.commands.v1.OrderSubmission", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareSubmitOrderResponse", - "longName": "PrepareSubmitOrderResponse", - "fullName": "api.v1.PrepareSubmitOrderResponse", - "description": "Response for preparing an order submission", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "blob", - "description": "Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction", + "name": "market_depth_subscriptions", + "description": "Current number of stream subscribers to market depth data", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "submit_id", - "description": "Submission identifier (order reference)", + "name": "positions_subscriptions", + "description": "Current number of stream subscribers to positions data", "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareVoteSubmissionRequest", - "longName": "PrepareVoteSubmissionRequest", - "fullName": "api.v1.PrepareVoteSubmissionRequest", - "description": "Request to prepare a governance vote", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "submission", - "description": "Vote, required field", + "name": "account_subscriptions", + "description": "Current number of stream subscribers to account data", "label": "", - "type": "VoteSubmission", - "longType": "vega.commands.v1.VoteSubmission", - "fullType": "vega.commands.v1.VoteSubmission", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "msg_exists", - "value": true - } - ] - } - } - ] - }, - { - "name": "PrepareVoteSubmissionResponse", - "longName": "PrepareVoteSubmissionResponse", - "fullName": "api.v1.PrepareVoteSubmissionResponse", - "description": "Response to prepare a governance vote", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "blob", - "description": "A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction", + "name": "market_data_subscriptions", + "description": "Current number of stream subscribers to market data", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "submission", - "description": "A copy of the prepared vote", + "name": "app_version_hash", + "description": "The version hash of the Vega node software", "label": "", - "type": "VoteSubmission", - "longType": "vega.commands.v1.VoteSubmission", - "fullType": "vega.commands.v1.VoteSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareWithdrawRequest", - "longName": "PrepareWithdrawRequest", - "fullName": "api.v1.PrepareWithdrawRequest", - "description": "Request for preparing a withdrawal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "withdraw", - "description": "An asset withdrawal", + "name": "app_version", + "description": "The version of the Vega node software", "label": "", - "type": "WithdrawSubmission", - "longType": "vega.commands.v1.WithdrawSubmission", - "fullType": "vega.commands.v1.WithdrawSubmission", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PrepareWithdrawResponse", - "longName": "PrepareWithdrawResponse", - "fullName": "api.v1.PrepareWithdrawResponse", - "description": "Response for preparing a withdrawal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "blob", - "description": "Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction", + "name": "chain_version", + "description": "The version of the underlying Vega blockchain", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PropagateChainEventRequest", - "longName": "PropagateChainEventRequest", - "fullName": "api.v1.PropagateChainEventRequest", - "description": "Request for a new event sent by the blockchain queue to be propagated on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "evt", - "description": "Chain event", + "name": "block_duration", + "description": "Current block duration, in nanoseconds", "label": "", - "type": "ChainEvent", - "longType": "vega.commands.v1.ChainEvent", - "fullType": "vega.commands.v1.ChainEvent", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" }, { - "name": "pub_key", - "description": "Public key", + "name": "uptime", + "description": "Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision", "label": "", "type": "string", "longType": "string", @@ -15509,36 +13021,24 @@ "defaultValue": "" }, { - "name": "signature", - "description": "Signature", + "name": "chain_id", + "description": "Unique identifier for the underlying Vega blockchain", "label": "", - "type": "bytes", - "longType": "bytes", - "fullType": "bytes", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - } - ] - }, - { - "name": "PropagateChainEventResponse", - "longName": "PropagateChainEventResponse", - "fullName": "api.v1.PropagateChainEventResponse", - "description": "Response for a new event sent by the blockchain queue to be propagated on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + }, { - "name": "success", - "description": "Success will be true if the event was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", + "name": "market_depth_updates_subscriptions", + "description": "Current number of stream subscribers to market depth update data", "label": "", - "type": "bool", - "longType": "bool", - "fullType": "bool", + "type": "uint32", + "longType": "uint32", + "fullType": "uint32", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15561,79 +13061,19 @@ "name": "StatisticsResponse", "longName": "StatisticsResponse", "fullName": "api.v1.StatisticsResponse", - "description": "", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "statistics", - "description": "", - "label": "", - "type": "Statistics", - "longType": "vega.Statistics", - "fullType": "vega.Statistics", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "SubmitTransactionRequest", - "longName": "SubmitTransactionRequest", - "fullName": "api.v1.SubmitTransactionRequest", - "description": "Request for submitting a transaction on Vega", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ - { - "name": "tx", - "description": "A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain", - "label": "", - "type": "SignedBundle", - "longType": "vega.SignedBundle", - "fullType": "vega.SignedBundle", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "type", - "description": "Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response", - "label": "", - "type": "Type", - "longType": "SubmitTransactionRequest.Type", - "fullType": "api.v1.SubmitTransactionRequest.Type", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - } - ] - }, - { - "name": "SubmitTransactionResponse", - "longName": "SubmitTransactionResponse", - "fullName": "api.v1.SubmitTransactionResponse", - "description": "Response for submitting a transaction on Vega", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "success", - "description": "Success will be true if the transaction was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", + "name": "statistics", + "description": "", "label": "", - "type": "bool", - "longType": "bool", - "fullType": "bool", + "type": "Statistics", + "longType": "Statistics", + "fullType": "api.v1.Statistics", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15700,20 +13140,187 @@ "defaultValue": "" } ] + } + ], + "services": [ + { + "name": "TradingService", + "longName": "TradingService", + "fullName": "api.v1.TradingService", + "description": "", + "methods": [ + { + "name": "SubmitTransactionV2", + "description": "Submit a signed transaction (v2)", + "requestType": "SubmitTransactionV2Request", + "requestLongType": "SubmitTransactionV2Request", + "requestFullType": "api.v1.SubmitTransactionV2Request", + "requestStreaming": false, + "responseType": "SubmitTransactionV2Response", + "responseLongType": "SubmitTransactionV2Response", + "responseFullType": "api.v1.SubmitTransactionV2Response", + "responseStreaming": false + }, + { + "name": "PropagateChainEvent", + "description": "Propagate a chain event", + "requestType": "PropagateChainEventRequest", + "requestLongType": "PropagateChainEventRequest", + "requestFullType": "api.v1.PropagateChainEventRequest", + "requestStreaming": false, + "responseType": "PropagateChainEventResponse", + "responseLongType": "PropagateChainEventResponse", + "responseFullType": "api.v1.PropagateChainEventResponse", + "responseStreaming": false + }, + { + "name": "Statistics", + "description": "Get Statistics on Vega", + "requestType": "StatisticsRequest", + "requestLongType": "StatisticsRequest", + "requestFullType": "api.v1.StatisticsRequest", + "requestStreaming": false, + "responseType": "StatisticsResponse", + "responseLongType": "StatisticsResponse", + "responseFullType": "api.v1.StatisticsResponse", + "responseStreaming": false + }, + { + "name": "LastBlockHeight", + "description": "Get the height of the last tendermint block", + "requestType": "LastBlockHeightRequest", + "requestLongType": "LastBlockHeightRequest", + "requestFullType": "api.v1.LastBlockHeightRequest", + "requestStreaming": false, + "responseType": "LastBlockHeightResponse", + "responseLongType": "LastBlockHeightResponse", + "responseFullType": "api.v1.LastBlockHeightResponse", + "responseStreaming": false + }, + { + "name": "GetVegaTime", + "description": "Get Time", + "requestType": "GetVegaTimeRequest", + "requestLongType": "GetVegaTimeRequest", + "requestFullType": "api.v1.GetVegaTimeRequest", + "requestStreaming": false, + "responseType": "GetVegaTimeResponse", + "responseLongType": "GetVegaTimeResponse", + "responseFullType": "api.v1.GetVegaTimeResponse", + "responseStreaming": false + }, + { + "name": "ObserveEventBus", + "description": "Subscribe to a stream of events from the core", + "requestType": "ObserveEventBusRequest", + "requestLongType": "ObserveEventBusRequest", + "requestFullType": "api.v1.ObserveEventBusRequest", + "requestStreaming": true, + "responseType": "ObserveEventBusResponse", + "responseLongType": "ObserveEventBusResponse", + "responseFullType": "api.v1.ObserveEventBusResponse", + "responseStreaming": true + } + ] + } + ] + }, + { + "name": "coreapi/v1/coreapi.proto", + "description": "", + "package": "vega.coreapi.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": true, + "enums": [], + "extensions": [], + "messages": [ + { + "name": "Account", + "longName": "Account", + "fullName": "vega.coreapi.v1.Account", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "market", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "balance", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "asset", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "type", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] }, { - "name": "TradesByMarketRequest", - "longName": "TradesByMarketRequest", - "fullName": "api.v1.TradesByMarketRequest", - "description": "Request for a list of trades on a market", + "name": "ListAccountsRequest", + "longName": "ListAccountsRequest", + "fullName": "vega.coreapi.v1.ListAccountsRequest", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier, required field", + "name": "party", + "description": "", "label": "", "type": "string", "longType": "string", @@ -15721,23 +13328,15 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" }, { - "name": "pagination", - "description": "Pagination controls", + "name": "market", + "description": "", "label": "", - "type": "Pagination", - "longType": "Pagination", - "fullType": "api.v1.Pagination", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15746,22 +13345,22 @@ ] }, { - "name": "TradesByMarketResponse", - "longName": "TradesByMarketResponse", - "fullName": "api.v1.TradesByMarketResponse", - "description": "Response for a list of trades on a market", + "name": "ListAccountsResponse", + "longName": "ListAccountsResponse", + "fullName": "vega.coreapi.v1.ListAccountsResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "trades", - "description": "A list of 0 or more trades", + "name": "accounts", + "description": "", "label": "repeated", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "Account", + "longType": "Account", + "fullType": "vega.coreapi.v1.Account", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15770,18 +13369,18 @@ ] }, { - "name": "TradesByOrderRequest", - "longName": "TradesByOrderRequest", - "fullName": "api.v1.TradesByOrderRequest", - "description": "Request for a list of trades related to an order", + "name": "ListAssetsRequest", + "longName": "ListAssetsRequest", + "fullName": "vega.coreapi.v1.ListAssetsRequest", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "order_id", - "description": "Order identifier, required field", + "name": "asset", + "description": "optional ID", "label": "", "type": "string", "longType": "string", @@ -15794,22 +13393,22 @@ ] }, { - "name": "TradesByOrderResponse", - "longName": "TradesByOrderResponse", - "fullName": "api.v1.TradesByOrderResponse", - "description": "Response for a list of trades related to an order", + "name": "ListAssetsResponse", + "longName": "ListAssetsResponse", + "fullName": "vega.coreapi.v1.ListAssetsResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "trades", - "description": "A list of 0 or more trades", + "name": "assets", + "description": "", "label": "repeated", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "Asset", + "longType": "vega.Asset", + "fullType": "vega.Asset", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15818,18 +13417,18 @@ ] }, { - "name": "TradesByPartyRequest", - "longName": "TradesByPartyRequest", - "fullName": "api.v1.TradesByPartyRequest", - "description": "Request for a list of trades relating to the given party\nOptionally, the list can be additionally filtered for trades by market", + "name": "ListMarketsDataRequest", + "longName": "ListMarketsDataRequest", + "fullName": "vega.coreapi.v1.ListMarketsDataRequest", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "Party identifier. Required field", + "name": "market", + "description": "", "label": "", "type": "string", "longType": "string", @@ -15838,26 +13437,50 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "ListMarketsDataResponse", + "longName": "ListMarketsDataResponse", + "fullName": "vega.coreapi.v1.ListMarketsDataResponse", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "market_id", - "description": "Market identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "name": "markets_data", + "description": "", + "label": "repeated", + "type": "MarketData", + "longType": "vega.MarketData", + "fullType": "vega.MarketData", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" - }, + } + ] + }, + { + "name": "ListMarketsRequest", + "longName": "ListMarketsRequest", + "fullName": "vega.coreapi.v1.ListMarketsRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "pagination", - "description": "Pagination controls", + "name": "market", + "description": "", "label": "", - "type": "Pagination", - "longType": "Pagination", - "fullType": "api.v1.Pagination", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15866,22 +13489,22 @@ ] }, { - "name": "TradesByPartyResponse", - "longName": "TradesByPartyResponse", - "fullName": "api.v1.TradesByPartyResponse", - "description": "Response for a list of trades relating to a party", + "name": "ListMarketsResponse", + "longName": "ListMarketsResponse", + "fullName": "vega.coreapi.v1.ListMarketsResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "trades", - "description": "A list of 0 or more trades", + "name": "markets", + "description": "", "label": "repeated", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "Market", + "longType": "vega.Market", + "fullType": "vega.Market", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15890,30 +13513,18 @@ ] }, { - "name": "TradesSubscribeRequest", - "longName": "TradesSubscribeRequest", - "fullName": "api.v1.TradesSubscribeRequest", - "description": "Request to subscribe to a stream of (Trades)[#vega.Trade]", + "name": "ListNetworkParametersRequest", + "longName": "ListNetworkParametersRequest", + "fullName": "vega.coreapi.v1.ListNetworkParametersRequest", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "market_id", - "description": "Market identifier", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, - { - "name": "party_id", - "description": "Party identifier", + "name": "network_parameter_key", + "description": "optional parameter key", "label": "", "type": "string", "longType": "string", @@ -15926,22 +13537,22 @@ ] }, { - "name": "TradesSubscribeResponse", - "longName": "TradesSubscribeResponse", - "fullName": "api.v1.TradesSubscribeResponse", - "description": "A stream of trades", + "name": "ListNetworkParametersResponse", + "longName": "ListNetworkParametersResponse", + "fullName": "vega.coreapi.v1.ListNetworkParametersResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "trades", - "description": "A list of 0 or more trades", + "name": "network_parameters", + "description": "", "label": "repeated", - "type": "Trade", - "longType": "vega.Trade", - "fullType": "vega.Trade", + "type": "NetworkParameter", + "longType": "vega.NetworkParameter", + "fullType": "vega.NetworkParameter", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15950,9 +13561,9 @@ ] }, { - "name": "TransferResponsesSubscribeRequest", - "longName": "TransferResponsesSubscribeRequest", - "fullName": "api.v1.TransferResponsesSubscribeRequest", + "name": "ListPartiesRequest", + "longName": "ListPartiesRequest", + "fullName": "vega.coreapi.v1.ListPartiesRequest", "description": "", "hasExtensions": false, "hasFields": false, @@ -15961,9 +13572,9 @@ "fields": [] }, { - "name": "TransferResponsesSubscribeResponse", - "longName": "TransferResponsesSubscribeResponse", - "fullName": "api.v1.TransferResponsesSubscribeResponse", + "name": "ListPartiesResponse", + "longName": "ListPartiesResponse", + "fullName": "vega.coreapi.v1.ListPartiesResponse", "description": "", "hasExtensions": false, "hasFields": true, @@ -15971,12 +13582,12 @@ "extensions": [], "fields": [ { - "name": "response", + "name": "parties", "description": "", - "label": "", - "type": "TransferResponse", - "longType": "vega.TransferResponse", - "fullType": "vega.TransferResponse", + "label": "repeated", + "type": "Party", + "longType": "vega.Party", + "fullType": "vega.Party", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -15985,18 +13596,18 @@ ] }, { - "name": "WithdrawalRequest", - "longName": "WithdrawalRequest", - "fullName": "api.v1.WithdrawalRequest", - "description": "A request to get a specific withdrawal by identifier", + "name": "ListProposalsRequest", + "longName": "ListProposalsRequest", + "fullName": "vega.coreapi.v1.ListProposalsRequest", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "id", - "description": "The identifier of the withdrawal", + "name": "proposal", + "description": "optional ID", "label": "", "type": "string", "longType": "string", @@ -16004,35 +13615,15 @@ "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } - } - ] - }, - { - "name": "WithdrawalResponse", - "longName": "WithdrawalResponse", - "fullName": "api.v1.WithdrawalResponse", - "description": "A response for a withdrawal", - "hasExtensions": false, - "hasFields": true, - "hasOneofs": false, - "extensions": [], - "fields": [ + "defaultValue": "" + }, { - "name": "withdrawal", - "description": "The withdrawal matching the identifier from the request", + "name": "proposer", + "description": "optional party", "label": "", - "type": "Withdrawal", - "longType": "vega.Withdrawal", - "fullType": "vega.Withdrawal", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -16041,980 +13632,653 @@ ] }, { - "name": "WithdrawalsRequest", - "longName": "WithdrawalsRequest", - "fullName": "api.v1.WithdrawalsRequest", - "description": "A request to get a list of withdrawal from a given party", + "name": "ListProposalsResponse", + "longName": "ListProposalsResponse", + "fullName": "vega.coreapi.v1.ListProposalsResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "party_id", - "description": "The party to get the withdrawals for", - "label": "", - "type": "string", - "longType": "string", - "fullType": "string", + "name": "proposals", + "description": "", + "label": "repeated", + "type": "Proposal", + "longType": "vega.Proposal", + "fullType": "vega.Proposal", "ismap": false, "isoneof": false, "oneofdecl": "", - "defaultValue": "", - "options": { - "validator.field": [ - { - "name": "string_not_empty", - "value": true - } - ] - } + "defaultValue": "" } ] }, { - "name": "WithdrawalsResponse", - "longName": "WithdrawalsResponse", - "fullName": "api.v1.WithdrawalsResponse", - "description": "The response for a list of withdrawals", + "name": "ListValidatorsRequest", + "longName": "ListValidatorsRequest", + "fullName": "vega.coreapi.v1.ListValidatorsRequest", + "description": "", + "hasExtensions": false, + "hasFields": false, + "hasOneofs": false, + "extensions": [], + "fields": [] + }, + { + "name": "ListValidatorsResponse", + "longName": "ListValidatorsResponse", + "fullName": "vega.coreapi.v1.ListValidatorsResponse", + "description": "", "hasExtensions": false, "hasFields": true, "hasOneofs": false, "extensions": [], "fields": [ { - "name": "withdrawals", - "description": "The list of withdrawals for the specified party", + "name": "validators", + "description": "", "label": "repeated", - "type": "Withdrawal", - "longType": "vega.Withdrawal", - "fullType": "vega.Withdrawal", + "type": "ValidatorUpdate", + "longType": "vega.events.v1.ValidatorUpdate", + "fullType": "vega.events.v1.ValidatorUpdate", "ismap": false, "isoneof": false, "oneofdecl": "", "defaultValue": "" } ] - } - ], - "services": [ + }, { - "name": "TradingDataService", - "longName": "TradingDataService", - "fullName": "api.v1.TradingDataService", + "name": "ListVotesRequest", + "longName": "ListVotesRequest", + "fullName": "vega.coreapi.v1.ListVotesRequest", "description": "", - "methods": [ - { - "name": "MarketAccounts", - "description": "Get a list of Accounts by Market", - "requestType": "MarketAccountsRequest", - "requestLongType": "MarketAccountsRequest", - "requestFullType": "api.v1.MarketAccountsRequest", - "requestStreaming": false, - "responseType": "MarketAccountsResponse", - "responseLongType": "MarketAccountsResponse", - "responseFullType": "api.v1.MarketAccountsResponse", - "responseStreaming": false - }, - { - "name": "PartyAccounts", - "description": "Get a list of Accounts by Party", - "requestType": "PartyAccountsRequest", - "requestLongType": "PartyAccountsRequest", - "requestFullType": "api.v1.PartyAccountsRequest", - "requestStreaming": false, - "responseType": "PartyAccountsResponse", - "responseLongType": "PartyAccountsResponse", - "responseFullType": "api.v1.PartyAccountsResponse", - "responseStreaming": false - }, - { - "name": "FeeInfrastructureAccounts", - "description": "Get a list of accounts holding infrastructure fees.\nCan be filtered by asset, there will be 1 infrastructure fee account per\nasset in the network.", - "requestType": "FeeInfrastructureAccountsRequest", - "requestLongType": "FeeInfrastructureAccountsRequest", - "requestFullType": "api.v1.FeeInfrastructureAccountsRequest", - "requestStreaming": false, - "responseType": "FeeInfrastructureAccountsResponse", - "responseLongType": "FeeInfrastructureAccountsResponse", - "responseFullType": "api.v1.FeeInfrastructureAccountsResponse", - "responseStreaming": false - }, - { - "name": "Candles", - "description": "Get a list of Candles by Market", - "requestType": "CandlesRequest", - "requestLongType": "CandlesRequest", - "requestFullType": "api.v1.CandlesRequest", - "requestStreaming": false, - "responseType": "CandlesResponse", - "responseLongType": "CandlesResponse", - "responseFullType": "api.v1.CandlesResponse", - "responseStreaming": false - }, - { - "name": "MarketDataByID", - "description": "Get Market Data by Market ID", - "requestType": "MarketDataByIDRequest", - "requestLongType": "MarketDataByIDRequest", - "requestFullType": "api.v1.MarketDataByIDRequest", - "requestStreaming": false, - "responseType": "MarketDataByIDResponse", - "responseLongType": "MarketDataByIDResponse", - "responseFullType": "api.v1.MarketDataByIDResponse", - "responseStreaming": false - }, - { - "name": "MarketsData", - "description": "Get a list of Market Data", - "requestType": "MarketsDataRequest", - "requestLongType": "MarketsDataRequest", - "requestFullType": "api.v1.MarketsDataRequest", - "requestStreaming": false, - "responseType": "MarketsDataResponse", - "responseLongType": "MarketsDataResponse", - "responseFullType": "api.v1.MarketsDataResponse", - "responseStreaming": false - }, - { - "name": "MarketByID", - "description": "Get a Market by ID", - "requestType": "MarketByIDRequest", - "requestLongType": "MarketByIDRequest", - "requestFullType": "api.v1.MarketByIDRequest", - "requestStreaming": false, - "responseType": "MarketByIDResponse", - "responseLongType": "MarketByIDResponse", - "responseFullType": "api.v1.MarketByIDResponse", - "responseStreaming": false - }, - { - "name": "MarketDepth", - "description": "Get Market Depth", - "requestType": "MarketDepthRequest", - "requestLongType": "MarketDepthRequest", - "requestFullType": "api.v1.MarketDepthRequest", - "requestStreaming": false, - "responseType": "MarketDepthResponse", - "responseLongType": "MarketDepthResponse", - "responseFullType": "api.v1.MarketDepthResponse", - "responseStreaming": false - }, - { - "name": "Markets", - "description": "Get a list of Markets", - "requestType": "MarketsRequest", - "requestLongType": "MarketsRequest", - "requestFullType": "api.v1.MarketsRequest", - "requestStreaming": false, - "responseType": "MarketsResponse", - "responseLongType": "MarketsResponse", - "responseFullType": "api.v1.MarketsResponse", - "responseStreaming": false - }, - { - "name": "OrderByMarketAndID", - "description": "Get an Order by Market and Order ID", - "requestType": "OrderByMarketAndIDRequest", - "requestLongType": "OrderByMarketAndIDRequest", - "requestFullType": "api.v1.OrderByMarketAndIDRequest", - "requestStreaming": false, - "responseType": "OrderByMarketAndIDResponse", - "responseLongType": "OrderByMarketAndIDResponse", - "responseFullType": "api.v1.OrderByMarketAndIDResponse", - "responseStreaming": false - }, - { - "name": "OrderByReference", - "description": "Get an Order by Pending Order reference (UUID)", - "requestType": "OrderByReferenceRequest", - "requestLongType": "OrderByReferenceRequest", - "requestFullType": "api.v1.OrderByReferenceRequest", - "requestStreaming": false, - "responseType": "OrderByReferenceResponse", - "responseLongType": "OrderByReferenceResponse", - "responseFullType": "api.v1.OrderByReferenceResponse", - "responseStreaming": false - }, - { - "name": "OrdersByMarket", - "description": "Get a list of Orders by Market", - "requestType": "OrdersByMarketRequest", - "requestLongType": "OrdersByMarketRequest", - "requestFullType": "api.v1.OrdersByMarketRequest", - "requestStreaming": false, - "responseType": "OrdersByMarketResponse", - "responseLongType": "OrdersByMarketResponse", - "responseFullType": "api.v1.OrdersByMarketResponse", - "responseStreaming": false - }, - { - "name": "OrdersByParty", - "description": "Get a list of Orders by Party", - "requestType": "OrdersByPartyRequest", - "requestLongType": "OrdersByPartyRequest", - "requestFullType": "api.v1.OrdersByPartyRequest", - "requestStreaming": false, - "responseType": "OrdersByPartyResponse", - "responseLongType": "OrdersByPartyResponse", - "responseFullType": "api.v1.OrdersByPartyResponse", - "responseStreaming": false - }, - { - "name": "OrderByID", - "description": "Get a specific order by order ID", - "requestType": "OrderByIDRequest", - "requestLongType": "OrderByIDRequest", - "requestFullType": "api.v1.OrderByIDRequest", - "requestStreaming": false, - "responseType": "OrderByIDResponse", - "responseLongType": "OrderByIDResponse", - "responseFullType": "api.v1.OrderByIDResponse", - "responseStreaming": false - }, - { - "name": "OrderVersionsByID", - "description": "Get all versions of the order by its orderID", - "requestType": "OrderVersionsByIDRequest", - "requestLongType": "OrderVersionsByIDRequest", - "requestFullType": "api.v1.OrderVersionsByIDRequest", - "requestStreaming": false, - "responseType": "OrderVersionsByIDResponse", - "responseLongType": "OrderVersionsByIDResponse", - "responseFullType": "api.v1.OrderVersionsByIDResponse", - "responseStreaming": false - }, - { - "name": "MarginLevels", - "description": "Get Margin Levels by Party ID", - "requestType": "MarginLevelsRequest", - "requestLongType": "MarginLevelsRequest", - "requestFullType": "api.v1.MarginLevelsRequest", - "requestStreaming": false, - "responseType": "MarginLevelsResponse", - "responseLongType": "MarginLevelsResponse", - "responseFullType": "api.v1.MarginLevelsResponse", - "responseStreaming": false - }, - { - "name": "Parties", - "description": "Get a list of Parties", - "requestType": "PartiesRequest", - "requestLongType": "PartiesRequest", - "requestFullType": "api.v1.PartiesRequest", - "requestStreaming": false, - "responseType": "PartiesResponse", - "responseLongType": "PartiesResponse", - "responseFullType": "api.v1.PartiesResponse", - "responseStreaming": false - }, - { - "name": "PartyByID", - "description": "Get a Party by ID", - "requestType": "PartyByIDRequest", - "requestLongType": "PartyByIDRequest", - "requestFullType": "api.v1.PartyByIDRequest", - "requestStreaming": false, - "responseType": "PartyByIDResponse", - "responseLongType": "PartyByIDResponse", - "responseFullType": "api.v1.PartyByIDResponse", - "responseStreaming": false - }, - { - "name": "PositionsByParty", - "description": "Get a list of Positions by Party", - "requestType": "PositionsByPartyRequest", - "requestLongType": "PositionsByPartyRequest", - "requestFullType": "api.v1.PositionsByPartyRequest", - "requestStreaming": false, - "responseType": "PositionsByPartyResponse", - "responseLongType": "PositionsByPartyResponse", - "responseFullType": "api.v1.PositionsByPartyResponse", - "responseStreaming": false - }, - { - "name": "LastTrade", - "description": "Get latest Trade", - "requestType": "LastTradeRequest", - "requestLongType": "LastTradeRequest", - "requestFullType": "api.v1.LastTradeRequest", - "requestStreaming": false, - "responseType": "LastTradeResponse", - "responseLongType": "LastTradeResponse", - "responseFullType": "api.v1.LastTradeResponse", - "responseStreaming": false - }, - { - "name": "TradesByMarket", - "description": "Get a list of Trades by Market", - "requestType": "TradesByMarketRequest", - "requestLongType": "TradesByMarketRequest", - "requestFullType": "api.v1.TradesByMarketRequest", - "requestStreaming": false, - "responseType": "TradesByMarketResponse", - "responseLongType": "TradesByMarketResponse", - "responseFullType": "api.v1.TradesByMarketResponse", - "responseStreaming": false - }, - { - "name": "TradesByOrder", - "description": "Get a list of Trades by Order", - "requestType": "TradesByOrderRequest", - "requestLongType": "TradesByOrderRequest", - "requestFullType": "api.v1.TradesByOrderRequest", - "requestStreaming": false, - "responseType": "TradesByOrderResponse", - "responseLongType": "TradesByOrderResponse", - "responseFullType": "api.v1.TradesByOrderResponse", - "responseStreaming": false - }, - { - "name": "TradesByParty", - "description": "Get a list of Trades by Party", - "requestType": "TradesByPartyRequest", - "requestLongType": "TradesByPartyRequest", - "requestFullType": "api.v1.TradesByPartyRequest", - "requestStreaming": false, - "responseType": "TradesByPartyResponse", - "responseLongType": "TradesByPartyResponse", - "responseFullType": "api.v1.TradesByPartyResponse", - "responseStreaming": false - }, - { - "name": "GetProposals", - "description": "Get governance data (proposals and votes) for all proposals", - "requestType": "GetProposalsRequest", - "requestLongType": "GetProposalsRequest", - "requestFullType": "api.v1.GetProposalsRequest", - "requestStreaming": false, - "responseType": "GetProposalsResponse", - "responseLongType": "GetProposalsResponse", - "responseFullType": "api.v1.GetProposalsResponse", - "responseStreaming": false - }, - { - "name": "GetProposalsByParty", - "description": "Get governance data (proposals and votes) for proposals by party authoring them", - "requestType": "GetProposalsByPartyRequest", - "requestLongType": "GetProposalsByPartyRequest", - "requestFullType": "api.v1.GetProposalsByPartyRequest", - "requestStreaming": false, - "responseType": "GetProposalsByPartyResponse", - "responseLongType": "GetProposalsByPartyResponse", - "responseFullType": "api.v1.GetProposalsByPartyResponse", - "responseStreaming": false - }, - { - "name": "GetVotesByParty", - "description": "Get votes by party casting them", - "requestType": "GetVotesByPartyRequest", - "requestLongType": "GetVotesByPartyRequest", - "requestFullType": "api.v1.GetVotesByPartyRequest", - "requestStreaming": false, - "responseType": "GetVotesByPartyResponse", - "responseLongType": "GetVotesByPartyResponse", - "responseFullType": "api.v1.GetVotesByPartyResponse", - "responseStreaming": false - }, - { - "name": "GetNewMarketProposals", - "description": "Get governance data (proposals and votes) for proposals that aim creating new markets", - "requestType": "GetNewMarketProposalsRequest", - "requestLongType": "GetNewMarketProposalsRequest", - "requestFullType": "api.v1.GetNewMarketProposalsRequest", - "requestStreaming": false, - "responseType": "GetNewMarketProposalsResponse", - "responseLongType": "GetNewMarketProposalsResponse", - "responseFullType": "api.v1.GetNewMarketProposalsResponse", - "responseStreaming": false - }, - { - "name": "GetUpdateMarketProposals", - "description": "Get governance data (proposals and votes) for proposals that aim updating markets", - "requestType": "GetUpdateMarketProposalsRequest", - "requestLongType": "GetUpdateMarketProposalsRequest", - "requestFullType": "api.v1.GetUpdateMarketProposalsRequest", - "requestStreaming": false, - "responseType": "GetUpdateMarketProposalsResponse", - "responseLongType": "GetUpdateMarketProposalsResponse", - "responseFullType": "api.v1.GetUpdateMarketProposalsResponse", - "responseStreaming": false - }, - { - "name": "GetNetworkParametersProposals", - "description": "Get governance data (proposals and votes) for proposals that aim updating Vega network parameters", - "requestType": "GetNetworkParametersProposalsRequest", - "requestLongType": "GetNetworkParametersProposalsRequest", - "requestFullType": "api.v1.GetNetworkParametersProposalsRequest", - "requestStreaming": false, - "responseType": "GetNetworkParametersProposalsResponse", - "responseLongType": "GetNetworkParametersProposalsResponse", - "responseFullType": "api.v1.GetNetworkParametersProposalsResponse", - "responseStreaming": false - }, - { - "name": "GetNewAssetProposals", - "description": "Get governance data (proposals and votes) for proposals aiming to create new assets", - "requestType": "GetNewAssetProposalsRequest", - "requestLongType": "GetNewAssetProposalsRequest", - "requestFullType": "api.v1.GetNewAssetProposalsRequest", - "requestStreaming": false, - "responseType": "GetNewAssetProposalsResponse", - "responseLongType": "GetNewAssetProposalsResponse", - "responseFullType": "api.v1.GetNewAssetProposalsResponse", - "responseStreaming": false - }, - { - "name": "GetProposalByID", - "description": "Get governance data (proposals and votes) for a proposal located by ID", - "requestType": "GetProposalByIDRequest", - "requestLongType": "GetProposalByIDRequest", - "requestFullType": "api.v1.GetProposalByIDRequest", - "requestStreaming": false, - "responseType": "GetProposalByIDResponse", - "responseLongType": "GetProposalByIDResponse", - "responseFullType": "api.v1.GetProposalByIDResponse", - "responseStreaming": false - }, - { - "name": "GetProposalByReference", - "description": "Get governance data (proposals and votes) for a proposal located by reference", - "requestType": "GetProposalByReferenceRequest", - "requestLongType": "GetProposalByReferenceRequest", - "requestFullType": "api.v1.GetProposalByReferenceRequest", - "requestStreaming": false, - "responseType": "GetProposalByReferenceResponse", - "responseLongType": "GetProposalByReferenceResponse", - "responseFullType": "api.v1.GetProposalByReferenceResponse", - "responseStreaming": false - }, - { - "name": "ObserveGovernance", - "description": "Subscribe to a stream of all governance updates", - "requestType": "ObserveGovernanceRequest", - "requestLongType": "ObserveGovernanceRequest", - "requestFullType": "api.v1.ObserveGovernanceRequest", - "requestStreaming": false, - "responseType": "ObserveGovernanceResponse", - "responseLongType": "ObserveGovernanceResponse", - "responseFullType": "api.v1.ObserveGovernanceResponse", - "responseStreaming": true - }, - { - "name": "ObservePartyProposals", - "description": "Subscribe to a stream of proposal updates", - "requestType": "ObservePartyProposalsRequest", - "requestLongType": "ObservePartyProposalsRequest", - "requestFullType": "api.v1.ObservePartyProposalsRequest", - "requestStreaming": false, - "responseType": "ObservePartyProposalsResponse", - "responseLongType": "ObservePartyProposalsResponse", - "responseFullType": "api.v1.ObservePartyProposalsResponse", - "responseStreaming": true - }, + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "ObservePartyVotes", - "description": "Subscribe to a stream of votes cast by a specific party", - "requestType": "ObservePartyVotesRequest", - "requestLongType": "ObservePartyVotesRequest", - "requestFullType": "api.v1.ObservePartyVotesRequest", - "requestStreaming": false, - "responseType": "ObservePartyVotesResponse", - "responseLongType": "ObservePartyVotesResponse", - "responseFullType": "api.v1.ObservePartyVotesResponse", - "responseStreaming": true + "name": "proposal", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "ObserveProposalVotes", - "description": "Subscribe to a stream of proposal votes", - "requestType": "ObserveProposalVotesRequest", - "requestLongType": "ObserveProposalVotesRequest", - "requestFullType": "api.v1.ObserveProposalVotesRequest", - "requestStreaming": false, - "responseType": "ObserveProposalVotesResponse", - "responseLongType": "ObserveProposalVotesResponse", - "responseFullType": "api.v1.ObserveProposalVotesResponse", - "responseStreaming": true - }, + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ListVotesResponse", + "longName": "ListVotesResponse", + "fullName": "vega.coreapi.v1.ListVotesResponse", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "ObserveEventBus", - "description": "Subscribe to a stream of events from the core", - "requestType": "ObserveEventBusRequest", - "requestLongType": "ObserveEventBusRequest", - "requestFullType": "api.v1.ObserveEventBusRequest", - "requestStreaming": true, - "responseType": "ObserveEventBusResponse", - "responseLongType": "ObserveEventBusResponse", - "responseFullType": "api.v1.ObserveEventBusResponse", - "responseStreaming": true - }, + "name": "votes", + "description": "", + "label": "repeated", + "type": "Vote", + "longType": "vega.Vote", + "fullType": "vega.Vote", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + } + ], + "services": [ + { + "name": "CoreApiService", + "longName": "CoreApiService", + "fullName": "vega.coreapi.v1.CoreApiService", + "description": "", + "methods": [ { - "name": "Statistics", - "description": "Get Statistics on Vega", - "requestType": "StatisticsRequest", - "requestLongType": "StatisticsRequest", - "requestFullType": "api.v1.StatisticsRequest", + "name": "ListAccounts", + "description": "", + "requestType": "ListAccountsRequest", + "requestLongType": "ListAccountsRequest", + "requestFullType": "vega.coreapi.v1.ListAccountsRequest", "requestStreaming": false, - "responseType": "StatisticsResponse", - "responseLongType": "StatisticsResponse", - "responseFullType": "api.v1.StatisticsResponse", + "responseType": "ListAccountsResponse", + "responseLongType": "ListAccountsResponse", + "responseFullType": "vega.coreapi.v1.ListAccountsResponse", "responseStreaming": false }, { - "name": "LastBlockHeight", + "name": "ListAssets", "description": "", - "requestType": "LastBlockHeightRequest", - "requestLongType": "LastBlockHeightRequest", - "requestFullType": "api.v1.LastBlockHeightRequest", + "requestType": "ListAssetsRequest", + "requestLongType": "ListAssetsRequest", + "requestFullType": "vega.coreapi.v1.ListAssetsRequest", "requestStreaming": false, - "responseType": "LastBlockHeightResponse", - "responseLongType": "LastBlockHeightResponse", - "responseFullType": "api.v1.LastBlockHeightResponse", + "responseType": "ListAssetsResponse", + "responseLongType": "ListAssetsResponse", + "responseFullType": "vega.coreapi.v1.ListAssetsResponse", "responseStreaming": false }, { - "name": "GetVegaTime", - "description": "Get Time", - "requestType": "GetVegaTimeRequest", - "requestLongType": "GetVegaTimeRequest", - "requestFullType": "api.v1.GetVegaTimeRequest", + "name": "ListNetworkParameters", + "description": "", + "requestType": "ListNetworkParametersRequest", + "requestLongType": "ListNetworkParametersRequest", + "requestFullType": "vega.coreapi.v1.ListNetworkParametersRequest", "requestStreaming": false, - "responseType": "GetVegaTimeResponse", - "responseLongType": "GetVegaTimeResponse", - "responseFullType": "api.v1.GetVegaTimeResponse", + "responseType": "ListNetworkParametersResponse", + "responseLongType": "ListNetworkParametersResponse", + "responseFullType": "vega.coreapi.v1.ListNetworkParametersResponse", "responseStreaming": false }, { - "name": "AccountsSubscribe", - "description": "Subscribe to a stream of Accounts", - "requestType": "AccountsSubscribeRequest", - "requestLongType": "AccountsSubscribeRequest", - "requestFullType": "api.v1.AccountsSubscribeRequest", - "requestStreaming": false, - "responseType": "AccountsSubscribeResponse", - "responseLongType": "AccountsSubscribeResponse", - "responseFullType": "api.v1.AccountsSubscribeResponse", - "responseStreaming": true - }, - { - "name": "CandlesSubscribe", - "description": "Subscribe to a stream of Candles", - "requestType": "CandlesSubscribeRequest", - "requestLongType": "CandlesSubscribeRequest", - "requestFullType": "api.v1.CandlesSubscribeRequest", - "requestStreaming": false, - "responseType": "CandlesSubscribeResponse", - "responseLongType": "CandlesSubscribeResponse", - "responseFullType": "api.v1.CandlesSubscribeResponse", - "responseStreaming": true - }, - { - "name": "MarginLevelsSubscribe", - "description": "Subscribe to a stream of Margin Levels", - "requestType": "MarginLevelsSubscribeRequest", - "requestLongType": "MarginLevelsSubscribeRequest", - "requestFullType": "api.v1.MarginLevelsSubscribeRequest", - "requestStreaming": false, - "responseType": "MarginLevelsSubscribeResponse", - "responseLongType": "MarginLevelsSubscribeResponse", - "responseFullType": "api.v1.MarginLevelsSubscribeResponse", - "responseStreaming": true - }, - { - "name": "MarketDepthSubscribe", - "description": "Subscribe to a stream of Market Depth", - "requestType": "MarketDepthSubscribeRequest", - "requestLongType": "MarketDepthSubscribeRequest", - "requestFullType": "api.v1.MarketDepthSubscribeRequest", - "requestStreaming": false, - "responseType": "MarketDepthSubscribeResponse", - "responseLongType": "MarketDepthSubscribeResponse", - "responseFullType": "api.v1.MarketDepthSubscribeResponse", - "responseStreaming": true - }, - { - "name": "MarketDepthUpdatesSubscribe", - "description": "Subscribe to a stream of Market Depth Price Level Updates", - "requestType": "MarketDepthUpdatesSubscribeRequest", - "requestLongType": "MarketDepthUpdatesSubscribeRequest", - "requestFullType": "api.v1.MarketDepthUpdatesSubscribeRequest", - "requestStreaming": false, - "responseType": "MarketDepthUpdatesSubscribeResponse", - "responseLongType": "MarketDepthUpdatesSubscribeResponse", - "responseFullType": "api.v1.MarketDepthUpdatesSubscribeResponse", - "responseStreaming": true - }, - { - "name": "MarketsDataSubscribe", - "description": "Subscribe to a stream of Markets Data", - "requestType": "MarketsDataSubscribeRequest", - "requestLongType": "MarketsDataSubscribeRequest", - "requestFullType": "api.v1.MarketsDataSubscribeRequest", - "requestStreaming": false, - "responseType": "MarketsDataSubscribeResponse", - "responseLongType": "MarketsDataSubscribeResponse", - "responseFullType": "api.v1.MarketsDataSubscribeResponse", - "responseStreaming": true - }, - { - "name": "OrdersSubscribe", - "description": "Subscribe to a stream of Orders", - "requestType": "OrdersSubscribeRequest", - "requestLongType": "OrdersSubscribeRequest", - "requestFullType": "api.v1.OrdersSubscribeRequest", - "requestStreaming": false, - "responseType": "OrdersSubscribeResponse", - "responseLongType": "OrdersSubscribeResponse", - "responseFullType": "api.v1.OrdersSubscribeResponse", - "responseStreaming": true - }, - { - "name": "PositionsSubscribe", - "description": "Subscribe to a stream of Positions", - "requestType": "PositionsSubscribeRequest", - "requestLongType": "PositionsSubscribeRequest", - "requestFullType": "api.v1.PositionsSubscribeRequest", - "requestStreaming": false, - "responseType": "PositionsSubscribeResponse", - "responseLongType": "PositionsSubscribeResponse", - "responseFullType": "api.v1.PositionsSubscribeResponse", - "responseStreaming": true - }, - { - "name": "TradesSubscribe", - "description": "Subscribe to a stream of Trades", - "requestType": "TradesSubscribeRequest", - "requestLongType": "TradesSubscribeRequest", - "requestFullType": "api.v1.TradesSubscribeRequest", - "requestStreaming": false, - "responseType": "TradesSubscribeResponse", - "responseLongType": "TradesSubscribeResponse", - "responseFullType": "api.v1.TradesSubscribeResponse", - "responseStreaming": true - }, - { - "name": "TransferResponsesSubscribe", - "description": "Subscribe to a stream of Transfer Responses", - "requestType": "TransferResponsesSubscribeRequest", - "requestLongType": "TransferResponsesSubscribeRequest", - "requestFullType": "api.v1.TransferResponsesSubscribeRequest", - "requestStreaming": false, - "responseType": "TransferResponsesSubscribeResponse", - "responseLongType": "TransferResponsesSubscribeResponse", - "responseFullType": "api.v1.TransferResponsesSubscribeResponse", - "responseStreaming": true - }, - { - "name": "GetNodeSignaturesAggregate", - "description": "Get an aggregate of signatures from all the nodes of the network", - "requestType": "GetNodeSignaturesAggregateRequest", - "requestLongType": "GetNodeSignaturesAggregateRequest", - "requestFullType": "api.v1.GetNodeSignaturesAggregateRequest", + "name": "ListParties", + "description": "", + "requestType": "ListPartiesRequest", + "requestLongType": "ListPartiesRequest", + "requestFullType": "vega.coreapi.v1.ListPartiesRequest", "requestStreaming": false, - "responseType": "GetNodeSignaturesAggregateResponse", - "responseLongType": "GetNodeSignaturesAggregateResponse", - "responseFullType": "api.v1.GetNodeSignaturesAggregateResponse", + "responseType": "ListPartiesResponse", + "responseLongType": "ListPartiesResponse", + "responseFullType": "vega.coreapi.v1.ListPartiesResponse", "responseStreaming": false }, { - "name": "AssetByID", - "description": "Get an asset by its identifier", - "requestType": "AssetByIDRequest", - "requestLongType": "AssetByIDRequest", - "requestFullType": "api.v1.AssetByIDRequest", + "name": "ListValidators", + "description": "", + "requestType": "ListValidatorsRequest", + "requestLongType": "ListValidatorsRequest", + "requestFullType": "vega.coreapi.v1.ListValidatorsRequest", "requestStreaming": false, - "responseType": "AssetByIDResponse", - "responseLongType": "AssetByIDResponse", - "responseFullType": "api.v1.AssetByIDResponse", + "responseType": "ListValidatorsResponse", + "responseLongType": "ListValidatorsResponse", + "responseFullType": "vega.coreapi.v1.ListValidatorsResponse", "responseStreaming": false }, { - "name": "Assets", - "description": "Get a list of all assets on Vega", - "requestType": "AssetsRequest", - "requestLongType": "AssetsRequest", - "requestFullType": "api.v1.AssetsRequest", + "name": "ListMarkets", + "description": "", + "requestType": "ListMarketsRequest", + "requestLongType": "ListMarketsRequest", + "requestFullType": "vega.coreapi.v1.ListMarketsRequest", "requestStreaming": false, - "responseType": "AssetsResponse", - "responseLongType": "AssetsResponse", - "responseFullType": "api.v1.AssetsResponse", + "responseType": "ListMarketsResponse", + "responseLongType": "ListMarketsResponse", + "responseFullType": "vega.coreapi.v1.ListMarketsResponse", "responseStreaming": false }, { - "name": "EstimateFee", - "description": "Get an estimate for the fee to be paid for a given order", - "requestType": "EstimateFeeRequest", - "requestLongType": "EstimateFeeRequest", - "requestFullType": "api.v1.EstimateFeeRequest", + "name": "ListProposals", + "description": "", + "requestType": "ListProposalsRequest", + "requestLongType": "ListProposalsRequest", + "requestFullType": "vega.coreapi.v1.ListProposalsRequest", "requestStreaming": false, - "responseType": "EstimateFeeResponse", - "responseLongType": "EstimateFeeResponse", - "responseFullType": "api.v1.EstimateFeeResponse", + "responseType": "ListProposalsResponse", + "responseLongType": "ListProposalsResponse", + "responseFullType": "vega.coreapi.v1.ListProposalsResponse", "responseStreaming": false }, { - "name": "EstimateMargin", - "description": "Get an estimate for the margin required for a new order", - "requestType": "EstimateMarginRequest", - "requestLongType": "EstimateMarginRequest", - "requestFullType": "api.v1.EstimateMarginRequest", + "name": "ListMarketsData", + "description": "", + "requestType": "ListMarketsDataRequest", + "requestLongType": "ListMarketsDataRequest", + "requestFullType": "vega.coreapi.v1.ListMarketsDataRequest", "requestStreaming": false, - "responseType": "EstimateMarginResponse", - "responseLongType": "EstimateMarginResponse", - "responseFullType": "api.v1.EstimateMarginResponse", + "responseType": "ListMarketsDataResponse", + "responseLongType": "ListMarketsDataResponse", + "responseFullType": "vega.coreapi.v1.ListMarketsDataResponse", "responseStreaming": false }, { - "name": "ERC20WithdrawalApproval", - "description": "Get the bundle approval for an ERC20 withdrawal,\nthese data are being used to bundle the call to the smart contract on the ethereum bridge", - "requestType": "ERC20WithdrawalApprovalRequest", - "requestLongType": "ERC20WithdrawalApprovalRequest", - "requestFullType": "api.v1.ERC20WithdrawalApprovalRequest", + "name": "ListVotes", + "description": "", + "requestType": "ListVotesRequest", + "requestLongType": "ListVotesRequest", + "requestFullType": "vega.coreapi.v1.ListVotesRequest", "requestStreaming": false, - "responseType": "ERC20WithdrawalApprovalResponse", - "responseLongType": "ERC20WithdrawalApprovalResponse", - "responseFullType": "api.v1.ERC20WithdrawalApprovalResponse", + "responseType": "ListVotesResponse", + "responseLongType": "ListVotesResponse", + "responseFullType": "vega.coreapi.v1.ListVotesResponse", "responseStreaming": false - }, + } + ] + } + ] + }, + { + "name": "snapshot/v1/snapshot.proto", + "description": "", + "package": "vega.snapshot.v1", + "hasEnums": false, + "hasExtensions": false, + "hasMessages": true, + "hasServices": false, + "enums": [], + "extensions": [], + "messages": [ + { + "name": "AssetBalance", + "longName": "AssetBalance", + "fullName": "vega.snapshot.v1.AssetBalance", + "description": "AssetBalance represents the total balance of a given asset for a party", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "Withdrawal", - "description": "Get a withdrawal by its identifier", - "requestType": "WithdrawalRequest", - "requestLongType": "WithdrawalRequest", - "requestFullType": "api.v1.WithdrawalRequest", - "requestStreaming": false, - "responseType": "WithdrawalResponse", - "responseLongType": "WithdrawalResponse", - "responseFullType": "api.v1.WithdrawalResponse", - "responseStreaming": false + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "Withdrawals", - "description": "Get withdrawals for a party", - "requestType": "WithdrawalsRequest", - "requestLongType": "WithdrawalsRequest", - "requestFullType": "api.v1.WithdrawalsRequest", - "requestStreaming": false, - "responseType": "WithdrawalsResponse", - "responseLongType": "WithdrawalsResponse", - "responseFullType": "api.v1.WithdrawalsResponse", - "responseStreaming": false + "name": "asset", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "Deposit", - "description": "Get a deposit by its identifier", - "requestType": "DepositRequest", - "requestLongType": "DepositRequest", - "requestFullType": "api.v1.DepositRequest", - "requestStreaming": false, - "responseType": "DepositResponse", - "responseLongType": "DepositResponse", - "responseFullType": "api.v1.DepositResponse", - "responseStreaming": false + "name": "balance", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "AssetEntry", + "longName": "AssetEntry", + "fullName": "vega.snapshot.v1.AssetEntry", + "description": "AssetEntrty is a single (enabled) asset", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "Deposits", - "description": "Get deposits for a party", - "requestType": "DepositsRequest", - "requestLongType": "DepositsRequest", - "requestFullType": "api.v1.DepositsRequest", - "requestStreaming": false, - "responseType": "DepositsResponse", - "responseLongType": "DepositsResponse", - "responseFullType": "api.v1.DepositsResponse", - "responseStreaming": false + "name": "asset_details", + "description": "", + "label": "", + "type": "AssetDetails", + "longType": "vega.AssetDetails", + "fullType": "vega.AssetDetails", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Assets", + "longName": "Assets", + "fullName": "vega.snapshot.v1.Assets", + "description": "Assets contains all the enabled assets as AssetEntries", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "assets", + "description": "", + "label": "repeated", + "type": "AssetEntry", + "longType": "AssetEntry", + "fullType": "vega.snapshot.v1.AssetEntry", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Checkpoint", + "longName": "Checkpoint", + "fullName": "vega.snapshot.v1.Checkpoint", + "description": "Checkpoint aggregates the various engine snapshots", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "governance", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "NetworkParameters", - "description": "Get the network parameters", - "requestType": "NetworkParametersRequest", - "requestLongType": "NetworkParametersRequest", - "requestFullType": "api.v1.NetworkParametersRequest", - "requestStreaming": false, - "responseType": "NetworkParametersResponse", - "responseLongType": "NetworkParametersResponse", - "responseFullType": "api.v1.NetworkParametersResponse", - "responseStreaming": false + "name": "assets", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "LiquidityProvisions", - "description": "Get the liquidity provision orders", - "requestType": "LiquidityProvisionsRequest", - "requestLongType": "LiquidityProvisionsRequest", - "requestFullType": "api.v1.LiquidityProvisionsRequest", - "requestStreaming": false, - "responseType": "LiquidityProvisionsResponse", - "responseLongType": "LiquidityProvisionsResponse", - "responseFullType": "api.v1.LiquidityProvisionsResponse", - "responseStreaming": false + "name": "collateral", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "OracleSpec", - "description": "Get an oracle spec by ID", - "requestType": "OracleSpecRequest", - "requestLongType": "OracleSpecRequest", - "requestFullType": "api.v1.OracleSpecRequest", - "requestStreaming": false, - "responseType": "OracleSpecResponse", - "responseLongType": "OracleSpecResponse", - "responseFullType": "api.v1.OracleSpecResponse", - "responseStreaming": false + "name": "network_parameters", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "OracleSpecs", - "description": "Get the oracle specs", - "requestType": "OracleSpecsRequest", - "requestLongType": "OracleSpecsRequest", - "requestFullType": "api.v1.OracleSpecsRequest", - "requestStreaming": false, - "responseType": "OracleSpecsResponse", - "responseLongType": "OracleSpecsResponse", - "responseFullType": "api.v1.OracleSpecsResponse", - "responseStreaming": false - }, + "name": "delegation", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Collateral", + "longName": "Collateral", + "fullName": "vega.snapshot.v1.Collateral", + "description": "Collateral contains the balances per party", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "OracleDataBySpec", - "description": "Get all oracle data", - "requestType": "OracleDataBySpecRequest", - "requestLongType": "OracleDataBySpecRequest", - "requestFullType": "api.v1.OracleDataBySpecRequest", - "requestStreaming": false, - "responseType": "OracleDataBySpecResponse", - "responseLongType": "OracleDataBySpecResponse", - "responseFullType": "api.v1.OracleDataBySpecResponse", - "responseStreaming": false + "name": "balances", + "description": "", + "label": "repeated", + "type": "AssetBalance", + "longType": "AssetBalance", + "fullType": "vega.snapshot.v1.AssetBalance", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, { - "name": "TradingService", - "longName": "TradingService", - "fullName": "api.v1.TradingService", - "description": "", - "methods": [ + "name": "Delegate", + "longName": "Delegate", + "fullName": "vega.snapshot.v1.Delegate", + "description": "Delegate contains all entries for a checkpoint", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "PrepareSubmitOrder", - "description": "Prepare a submit order request", - "requestType": "PrepareSubmitOrderRequest", - "requestLongType": "PrepareSubmitOrderRequest", - "requestFullType": "api.v1.PrepareSubmitOrderRequest", - "requestStreaming": false, - "responseType": "PrepareSubmitOrderResponse", - "responseLongType": "PrepareSubmitOrderResponse", - "responseFullType": "api.v1.PrepareSubmitOrderResponse", - "responseStreaming": false + "name": "active", + "description": "", + "label": "repeated", + "type": "DelegateEntry", + "longType": "DelegateEntry", + "fullType": "vega.snapshot.v1.DelegateEntry", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "PrepareCancelOrder", - "description": "Prepare a cancel order request", - "requestType": "PrepareCancelOrderRequest", - "requestLongType": "PrepareCancelOrderRequest", - "requestFullType": "api.v1.PrepareCancelOrderRequest", - "requestStreaming": false, - "responseType": "PrepareCancelOrderResponse", - "responseLongType": "PrepareCancelOrderResponse", - "responseFullType": "api.v1.PrepareCancelOrderResponse", - "responseStreaming": false - }, + "name": "pending", + "description": "", + "label": "repeated", + "type": "DelegateEntry", + "longType": "DelegateEntry", + "fullType": "vega.snapshot.v1.DelegateEntry", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "DelegateEntry", + "longName": "DelegateEntry", + "fullName": "vega.snapshot.v1.DelegateEntry", + "description": "Delegated amounts for party/node\nundelegate and epoch seq are only relevant for pending entries", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "PrepareAmendOrder", - "description": "Prepare an amend order request", - "requestType": "PrepareAmendOrderRequest", - "requestLongType": "PrepareAmendOrderRequest", - "requestFullType": "api.v1.PrepareAmendOrderRequest", - "requestStreaming": false, - "responseType": "PrepareAmendOrderResponse", - "responseLongType": "PrepareAmendOrderResponse", - "responseFullType": "api.v1.PrepareAmendOrderResponse", - "responseStreaming": false + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "PrepareWithdraw", - "description": "Request a withdrawal", - "requestType": "PrepareWithdrawRequest", - "requestLongType": "PrepareWithdrawRequest", - "requestFullType": "api.v1.PrepareWithdrawRequest", - "requestStreaming": false, - "responseType": "PrepareWithdrawResponse", - "responseLongType": "PrepareWithdrawResponse", - "responseFullType": "api.v1.PrepareWithdrawResponse", - "responseStreaming": false + "name": "node", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "SubmitTransaction", - "description": "Submit a signed transaction", - "requestType": "SubmitTransactionRequest", - "requestLongType": "SubmitTransactionRequest", - "requestFullType": "api.v1.SubmitTransactionRequest", - "requestStreaming": false, - "responseType": "SubmitTransactionResponse", - "responseLongType": "SubmitTransactionResponse", - "responseFullType": "api.v1.SubmitTransactionResponse", - "responseStreaming": false + "name": "amount", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "SubmitTransactionV2", - "description": "Submit a signed transaction (v2)", - "requestType": "SubmitTransactionV2Request", - "requestLongType": "SubmitTransactionV2Request", - "requestFullType": "api.v1.SubmitTransactionV2Request", - "requestStreaming": false, - "responseType": "SubmitTransactionV2Response", - "responseLongType": "SubmitTransactionV2Response", - "responseFullType": "api.v1.SubmitTransactionV2Response", - "responseStreaming": false + "name": "undelegate", + "description": "", + "label": "", + "type": "bool", + "longType": "bool", + "fullType": "bool", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "PrepareProposalSubmission", - "description": "Prepare a governance proposal", - "requestType": "PrepareProposalSubmissionRequest", - "requestLongType": "PrepareProposalSubmissionRequest", - "requestFullType": "api.v1.PrepareProposalSubmissionRequest", - "requestStreaming": false, - "responseType": "PrepareProposalSubmissionResponse", - "responseLongType": "PrepareProposalSubmissionResponse", - "responseFullType": "api.v1.PrepareProposalSubmissionResponse", - "responseStreaming": false - }, + "name": "epoch_seq", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "NetParams", + "longName": "NetParams", + "fullName": "vega.snapshot.v1.NetParams", + "description": "NetParams contains all network parameters", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "PrepareVoteSubmission", - "description": "Prepare a governance vote", - "requestType": "PrepareVoteSubmissionRequest", - "requestLongType": "PrepareVoteSubmissionRequest", - "requestFullType": "api.v1.PrepareVoteSubmissionRequest", - "requestStreaming": false, - "responseType": "PrepareVoteSubmissionResponse", - "responseLongType": "PrepareVoteSubmissionResponse", - "responseFullType": "api.v1.PrepareVoteSubmissionResponse", - "responseStreaming": false - }, + "name": "params", + "description": "", + "label": "repeated", + "type": "NetworkParameter", + "longType": "vega.NetworkParameter", + "fullType": "vega.NetworkParameter", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Proposals", + "longName": "Proposals", + "fullName": "vega.snapshot.v1.Proposals", + "description": "Proposals will contain all accepted proposals", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ { - "name": "PropagateChainEvent", - "description": "Propagate a chain event", - "requestType": "PropagateChainEventRequest", - "requestLongType": "PropagateChainEventRequest", - "requestFullType": "api.v1.PropagateChainEventRequest", - "requestStreaming": false, - "responseType": "PropagateChainEventResponse", - "responseLongType": "PropagateChainEventResponse", - "responseFullType": "api.v1.PropagateChainEventResponse", - "responseStreaming": false + "name": "proposals", + "description": "", + "label": "repeated", + "type": "Proposal", + "longType": "vega.Proposal", + "fullType": "vega.Proposal", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "Snapshot", + "longName": "Snapshot", + "fullName": "vega.snapshot.v1.Snapshot", + "description": "Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "hash", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" }, { - "name": "PrepareLiquidityProvision", - "description": "Prepare a liquidity provision request", - "requestType": "PrepareLiquidityProvisionRequest", - "requestLongType": "PrepareLiquidityProvisionRequest", - "requestFullType": "api.v1.PrepareLiquidityProvisionRequest", - "requestStreaming": false, - "responseType": "PrepareLiquidityProvisionResponse", - "responseLongType": "PrepareLiquidityProvisionResponse", - "responseFullType": "api.v1.PrepareLiquidityProvisionResponse", - "responseStreaming": false + "name": "state", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] } - ] + ], + "services": [] }, { "name": "tm/replay.proto", diff --git a/grpc/doc/index.html b/grpc/doc/index.html index 1e8eea43..8aa739c6 100644 --- a/grpc/doc/index.html +++ b/grpc/doc/index.html @@ -355,6 +355,33 @@

Table of Contents

+
  • + assets.proto + +
  • + +
  • vega.proto -
  • -
  • - wallet/v1/wallet.proto -
      -
    • - MSubmitTransactionRequest -
    • +

      OracleSpecConfiguration

      +

      An oracle spec describe the oracle data that a product (or a risk model)

      wants to get from the oracle engine.

      + + + + + + + + + + + - - + + + + + + -
    • Scalar Value Types
    • - - + +
      FieldTypeLabelDescription
      pub_keysstringrepeated

      pubKeys is the list of authorized public keys that signed the data for this +oracle. All the public keys in the oracle data should be contained in these +public keys.

      filtersFilterrepeated

      filters describes which oracle data are considered of interest or not for +the product (or the risk model).

      -
      -

      github.com/mwitkow/go-proto-validators/validator.proto

      Top -
      -

      -

      FieldValidator

      -

      +

      PropertyKey

      +

      PropertyKey describes the property key contained in an oracle data.

      @@ -1796,199 +1808,155 @@

      FieldValidator

      - + - - + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
      regexname stringoptional

      Uses a Golang RE2-syntax regex to match the field contents.

      name is the name of the property.

      int_gtint64optional

      Field value of integer strictly greater than this value.

      typePropertyKey.Type

      type is the type of the property.

      int_ltint64optional

      Field value of integer strictly smaller than this value.

      msg_existsbooloptional

      Used for nested message types, requires that the message type exists.

      human_errorstringoptional

      Human error specifies a user-customizable error that is visible to the user.

      float_gtdoubleoptional

      Field value of double strictly greater than this value. -Note that this value can only take on a valid floating point -value. Use together with float_epsilon if you need something more specific.

      float_ltdoubleoptional

      Field value of double strictly smaller than this value. -Note that this value can only take on a valid floating point -value. Use together with float_epsilon if you need something more specific.

      float_epsilondoubleoptional

      Field value of double describing the epsilon within which -any comparison should be considered to be true. For example, -when using float_gt = 0.35, using a float_epsilon of 0.05 -would mean that any value above 0.30 is acceptable. It can be -thought of as a {float_value_condition} +- {float_epsilon}. -If unset, no correction for floating point inaccuracies in -comparisons will be attempted.

      float_gtedoubleoptional

      Floating-point value compared to which the field content should be greater or equal.

      float_ltedoubleoptional

      Floating-point value compared to which the field content should be smaller or equal.

      string_not_emptybooloptional

      Used for string fields, requires the string to be not empty (i.e different from "").

      repeated_count_minint64optional

      Repeated field with at least this number of elements.

      - - repeated_count_max - int64 - optional -

      Repeated field with at most this number of elements.

      - - - length_gt - int64 - optional -

      Field value of length greater than this value.

      - - - length_lt - int64 - optional -

      Field value of length smaller than this value.

      - - - length_eq - int64 - optional -

      Field value of integer strictly equal this value.

      - - - is_in_enum - bool - optional -

      Requires that the value is in the enum.

      - - - uuid_ver - int32 - optional -

      Ensures that a string value is in UUID format. -uuid_ver specifies the valid UUID versions. Valid values are: 0-5. -If uuid_ver is 0 all UUID versions are accepted.

      - - - +

      Condition.Operator

      +

      Comparator describes the type of comparison.

      + + + + + + + + + + + + + + + + + + + + + + + + + -

      OneofValidator

      -

      + + + + + + + + + + -
      NameNumberDescription
      OPERATOR_UNSPECIFIED0

      The default value

      OPERATOR_EQUALS1

      Verify if the property values are strictly equal or not.

      OPERATOR_GREATER_THAN2

      Verify if the oracle data value is greater than the Condition value.

      OPERATOR_GREATER_THAN_OR_EQUAL3

      Verify if the oracle data value is greater than or equal to the Condition +value.

      OPERATOR_LESS_THAN4

      Verify if the oracle data value is less than the Condition value.

      OPERATOR_LESS_THAN_OR_EQUAL5

      Verify if the oracle data value is less or equal to than the Condition +value.

      - - - - + +
      FieldTypeLabelDescription
      - - required - bool - optional -

      Require that one of the oneof fields is set.

      - +

      OracleSpec.Status

      +

      Status describe the status of the oracle spec

      + + + + + - -
      NameNumberDescription
      + + STATUS_UNSPECIFIED + 0 +

      The default value.

      + + + STATUS_ACTIVE + 1 +

      STATUS_ACTIVE describes an active oracle spec.

      + + + STATUS_DEACTIVATED + 2 +

      STATUS_DEACTIVATED describes an oracle spec that is not listening to data +anymore.

      + + + +

      PropertyKey.Type

      +

      Type describes the type of properties that are supported by the oracle

      engine.

      + + + + + + + + + + + + + + + + + + + + + + + + + -

      File-level Extensions

      -
      NameNumberDescription
      TYPE_UNSPECIFIED0

      The default value.

      TYPE_EMPTY1

      Any type.

      TYPE_INTEGER2

      Integer type.

      TYPE_STRING3

      String type.

      - - - - + + + + + - - - - - + + + - - - - - + + + @@ -1998,14 +1966,16 @@

      File- -
      -

      oracles/v1/spec.proto

      Top + + +
      +

      markets.proto

      Top

      -

      Condition

      -

      Condition describes the condition that must be validated by the

      +

      AuctionDuration

      +

      An auction duration is used to configure 3 auction periods:

      1. `duration > 0`, `volume == 0`:

      The auction will last for at least N seconds

      2. `duration == 0`, `volume > 0`:

      The auction will end once we can close with given traded volume

      3. `duration > 0`, `volume > 0`:

      The auction will take at least N seconds, but can end sooner if we can trade a certain volume

      ExtensionTypeBaseNumberDescription
      TYPE_BOOLEAN4

      Boolean type.

      fieldFieldValidator.google.protobuf.FieldOptions65020

      TYPE_DECIMAL5

      Any floating point decimal type.

      oneofOneofValidator.google.protobuf.OneofOptions65021

      TYPE_TIMESTAMP6

      Timestamp date type.

      @@ -2015,17 +1985,17 @@

      Condition

      - - + + - + - - + + - + @@ -2035,8 +2005,8 @@

      Condition

      -

      Filter

      -

      Filter describes the conditions under which an oracle data is considered of

      interest or not.

      +

      ContinuousTrading

      +

      Continuous trading

      operatorCondition.Operatordurationint64

      comparator is the type of comparison to make on the value.

      Duration of the auction in seconds

      valuestringvolumeuint64

      value is used by the comparator.

      Target uncrossing trading volume

      @@ -2046,18 +2016,10 @@

      Filter

      - - + + - - - - - - - - + @@ -2067,8 +2029,8 @@

      Filter

      -

      OracleSpec

      -

      An oracle spec describe the oracle data that a product (or a risk model)

      wants to get from the oracle engine.

      This message contains additional information used by the API.

      +

      DiscreteTrading

      +

      Discrete trading

      keyPropertyKeytick_sizestring

      key is the oracle data property key targeted by the filter.

      conditionsConditionrepeated

      conditions are the conditions that should be matched by the data to be -considered of interest.

      Tick size

      @@ -2078,48 +2040,108 @@

      OracleSpec

      - - + + - + - - + + - + + + + +
      idstringduration_nsint64

      id is a hash generated from the OracleSpec data.

      Duration in nanoseconds, maximum 1 month (2592000000000000 ns)

      created_atint64tick_sizestring

      Creation Date time

      Tick size

      + + + + +

      Validated Fields

      + + + + + + + - - + + + + + +
      FieldValidations
      updated_atint64duration_ns +
        + +
      • int_gt: 0
      • + +
      • int_lt: 2592000000000000
      • + +
      +
      + + + + + +

      FeeFactors

      +

      Fee factors definition

      + + + + + + + + + + + - + - + - - + + - - - - + + + + + +
      FieldTypeLabelDescription
      maker_feestring

      Last Updated timestamp

      Maker fee

      pub_keysinfrastructure_fee stringrepeated

      pubKeys is the list of authorized public keys that signed the data for this -oracle. All the public keys in the oracle data should be contained in these -public keys.

      Infrastructure fee

      filtersFilterrepeated

      filters describes which oracle data are considered of interest or not for -the product (or the risk model).

      liquidity_feestring

      Liquidity fee

      + + + + + +

      Fees

      +

      Fees definition

      + + + + + + + + - - + + - + @@ -2129,8 +2151,8 @@

      OracleSpec

      -

      OracleSpecConfiguration

      -

      An oracle spec describe the oracle data that a product (or a risk model)

      wants to get from the oracle engine.

      +

      Future

      +

      Future product definition

      FieldTypeLabelDescription
      statusOracleSpec.StatusfactorsFeeFactors

      status describes the status of the oracle spec

      Fee factors

      @@ -2140,20 +2162,45 @@

      OracleSpecConfiguration

      - + - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2163,8 +2210,8 @@

      OracleSpecConfiguration

      -

      PropertyKey

      -

      PropertyKey describes the property key contained in an oracle data.

      +

      Instrument

      +

      Instrument definition

      pub_keysmaturity stringrepeated

      pubKeys is the list of authorized public keys that signed the data for this -oracle. All the public keys in the oracle data should be contained in these -public keys.

      The maturity for the future

      filtersFilterrepeated

      filters describes which oracle data are considered of interest or not for -the product (or the risk model).

      settlement_assetstring

      The asset for the future

      quote_namestring

      Quote name of the instrument

      oracle_spec_for_settlement_priceoracles.v1.OracleSpec

      The oracle spec describing the settlement price oracle filter

      oracle_spec_for_trading_terminationoracles.v1.OracleSpec

      the oracle spec describing the trading termination oracle filter

      oracle_spec_bindingOracleSpecToFutureBinding

      The binding between the oracle spec and the oracle data

      @@ -2173,18 +2220,39 @@

      PropertyKey

      + + + + + + + + + + + + + + - + - - + + - + + + + + + + + @@ -2194,175 +2262,22 @@

      PropertyKey

      +

      InstrumentMetadata

      +

      Instrument metadata definition

      -

      Condition.Operator

      -

      Comparator describes the type of comparison.

      -
      idstring

      Instrument identifier

      codestring

      Code for the instrument

      name string

      name is the name of the property.

      Name of the instrument

      typePropertyKey.TypemetadataInstrumentMetadata

      type is the type of the property.

      A collection of instrument meta-data

      futureFuture

      Future

      - - - - +
      NameNumberDescription
      + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      OPERATOR_UNSPECIFIED0

      The default value

      OPERATOR_EQUALS1

      Verify if the property values are strictly equal or not.

      OPERATOR_GREATER_THAN2

      Verify if the oracle data value is greater than the Condition value.

      OPERATOR_GREATER_THAN_OR_EQUAL3

      Verify if the oracle data value is greater than or equal to the Condition -value.

      OPERATOR_LESS_THAN4

      Verify if the oracle data value is less than the Condition value.

      OPERATOR_LESS_THAN_OR_EQUAL5

      Verify if the oracle data value is less or equal to than the Condition -value.

      - -

      OracleSpec.Status

      -

      Status describe the status of the oracle spec

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      The default value.

      STATUS_ACTIVE1

      STATUS_ACTIVE describes an active oracle spec.

      STATUS_DEACTIVATED2

      STATUS_DEACTIVATED describes an oracle spec that is not listening to data -anymore.

      - -

      PropertyKey.Type

      -

      Type describes the type of properties that are supported by the oracle

      engine.

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      TYPE_UNSPECIFIED0

      The default value.

      TYPE_EMPTY1

      Any type.

      TYPE_INTEGER2

      Integer type.

      TYPE_STRING3

      String type.

      TYPE_BOOLEAN4

      Boolean type.

      TYPE_DECIMAL5

      Any floating point decimal type.

      TYPE_TIMESTAMP6

      Timestamp date type.

      - - - - - - - -
      -

      markets.proto

      Top -
      -

      - - -

      AuctionDuration

      -

      An auction duration is used to configure 3 auction periods:

      1. `duration > 0`, `volume == 0`:

      The auction will last for at least N seconds

      2. `duration == 0`, `volume > 0`:

      The auction will end once we can close with given traded volume

      3. `duration > 0`, `volume > 0`:

      The auction will take at least N seconds, but can end sooner if we can trade a certain volume

      - - - - - - - - - - - - - - - - - - - - - + + + + + +
      FieldTypeLabelDescription
      durationint64

      Duration of the auction in seconds

      volumeuint64

      Target uncrossing trading volume

      tagsstringrepeated

      A list of 0 or more tags

      @@ -2371,8 +2286,8 @@

      AuctionDuration

      -

      ContinuousTrading

      -

      Continuous trading

      +

      LiquidityMonitoringParameters

      +

      LiquidityMonitoringParameters contains settings used for liquidity monitoring

      @@ -2382,41 +2297,24 @@

      ContinuousTrading

      - - + + - + - -
      tick_sizestringtarget_stake_parametersTargetStakeParameters

      Tick size

      Specifies parameters related to target stake calculation

      - - - - - -

      DiscreteTrading

      -

      Discrete trading

      - - - - - - - - - - + + - + - - + + - + @@ -2436,13 +2334,13 @@

      Validated Fields

      - + @@ -2455,8 +2353,8 @@

      Validated Fields

      -

      FeeFactors

      -

      Fee factors definition

      +

      LogNormalModelParams

      +

      Risk model parameters for log normal

      FieldTypeLabelDescription
      duration_nsint64triggering_ratiodouble

      Duration in nanoseconds, maximum 1 month (2592000000000000 ns)

      Specifies the triggering ratio for entering liquidity auction

      tick_sizestringauction_extensionint64

      Tick size

      Specifies by how many seconds an auction should be extended if leaving the auction were to trigger a liquidity auction

      duration_nstriggering_ratio
        -
      • int_gt: 0
      • +
      • float_gte: 0
      • -
      • int_lt: 2592000000000000
      • +
      • float_lte: 1
      @@ -2466,24 +2364,24 @@

      FeeFactors

      - - + + - + - - + + - + - - + + - + @@ -2493,8 +2391,8 @@

      FeeFactors

      -

      Fees

      -

      Fees definition

      +

      LogNormalRiskModel

      +

      Risk model for log normal

      maker_feestringmudouble

      Maker fee

      Mu param

      infrastructure_feestringrdouble

      Infrastructure fee

      R param

      liquidity_feestringsigmadouble

      Liquidity fee

      Sigma param

      @@ -2504,10 +2402,24 @@

      Fees

      - - + + - + + + + + + + + + + + + + + + @@ -2517,8 +2429,8 @@

      Fees

      -

      Future

      -

      Future product definition

      +

      MarginCalculator

      +

      Margin Calculator definition

      factorsFeeFactorsrisk_aversion_parameterdouble

      Fee factors

      Risk Aversion Parameter

      taudouble

      Tau

      paramsLogNormalModelParams

      Risk model parameters for log normal

      @@ -2528,45 +2440,10 @@

      Future

      - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -2576,8 +2453,8 @@

      Future

      -

      Instrument

      -

      Instrument definition

      +

      Market

      +

      Market definition

      maturitystringscaling_factorsScalingFactors

      The maturity for the future

      settlement_assetstring

      The asset for the future

      quote_namestring

      Quote name of the instrument

      oracle_spec_for_settlement_priceoracles.v1.OracleSpec

      The oracle spec describing the settlement price oracle filter

      oracle_spec_for_trading_terminationoracles.v1.OracleSpec

      the oracle spec describing the trading termination oracle filter

      oracle_spec_bindingOracleSpecToFutureBinding

      The binding between the oracle spec and the oracle data

      Scaling factors for margin calculation

      @@ -2590,59 +2467,87 @@

      Instrument

      - + - - + + - + - - + + - + - - + + - + - - + + - + - -
      id string

      Instrument identifier

      Unique identifier

      codestringtradable_instrumentTradableInstrument

      Code for the instrument

      Tradable instrument configuration

      namestringdecimal_placesuint64

      Name of the instrument

      Number of decimal places that a price must be shifted by in order to get a +correct price denominated in the currency of the market, for example: +`realPrice = price / 10^decimalPlaces`

      metadataInstrumentMetadatafeesFees

      A collection of instrument meta-data

      Fees configuration

      futureFutureopening_auctionAuctionDuration

      Future

      Auction duration specifies how long the opening auction will run (minimum +duration and optionally a minimum traded volume)

      - - + + continuous + ContinuousTrading + +

      Continuous

      + + + discrete + DiscreteTrading + +

      Discrete

      + + + price_monitoring_settings + PriceMonitoringSettings + +

      PriceMonitoringSettings for the market

      + -

      InstrumentMetadata

      -

      Instrument metadata definition

      + + liquidity_monitoring_parameters + LiquidityMonitoringParameters + +

      LiquidityMonitoringParameters for the market

      + + + trading_mode + Market.TradingMode + +

      Current mode of execution of the market

      + - - - - - + + + + + + - - - - + + + + @@ -2652,8 +2557,8 @@

      InstrumentMetadata

      -

      LiquidityMonitoringParameters

      -

      LiquidityMonitoringParameters contains settings used for liquidity monitoring

      +

      MarketTimestamps

      +

      Time stamps for important times about creating, enacting etc the market

      FieldTypeLabelDescription
      stateMarket.State

      Current state of the market

      tagsstringrepeated

      A list of 0 or more tags

      market_timestampsMarketTimestamps

      Timestamps for when the market stay changes

      @@ -2663,64 +2568,42 @@

      LiquidityMonitoringParameters

      - - + + - + - - + + - + - + - - - - -
      target_stake_parametersTargetStakeParametersproposedint64

      Specifies parameters related to target stake calculation

      Time when the market is first proposed

      triggering_ratiodoublependingint64

      Specifies the triggering ratio for entering liquidity auction

      Time when the market has been voted in and is created into an opening auction

      auction_extensionopen int64

      Specifies by how many seconds an auction should be extended if leaving the auction were to trigger a liquidity auction

      - - - - -

      Validated Fields

      - - - - - + - - - - + + + + - -
      FieldValidations

      Time when the market has left the opening auction and is ready to accept trades

      triggering_ratio -
        - -
      • float_gte: 0
      • - -
      • float_lte: 1
      • - -
      -
      closeint64

      Time when the market is closed

      + + -

      LogNormalModelParams

      -

      Risk model parameters for log normal

      +

      OracleSpecToFutureBinding

      +

      OracleSpecToFutureBinding tells on which property oracle data should be

      used as settlement price and which to use the trading terminated trigger

      @@ -2730,24 +2613,20 @@

      LogNormalModelParams

      - - - - - - - - - + + - + - - + + - + @@ -2757,8 +2636,8 @@

      LogNormalModelParams

      -

      LogNormalRiskModel

      -

      Risk model for log normal

      +

      PriceMonitoringParameters

      +

      PriceMonitoringParameters contains a collection of triggers to be used for a given market

      mudouble

      Mu param

      rdoublesettlement_price_propertystring

      R param

      settlement_price_property holds the name of the property in the oracle data +that should be used as settlement price. +If it is set to "prices.BTC.value", then the Future will use the value of +this property as settlement price.

      sigmadoubletrading_termination_propertystring

      Sigma param

      the name of the property in the oracle data that signals termination of trading

      @@ -2768,24 +2647,10 @@

      LogNormalRiskModel

      - - - - - - - - - - - - - - - - - - + + + + @@ -2795,8 +2660,8 @@

      LogNormalRiskModel

      -

      MarginCalculator

      -

      Margin Calculator definition

      +

      PriceMonitoringSettings

      +

      PriceMonitoringSettings contains the settings for price monitoring

      risk_aversion_parameterdouble

      Risk Aversion Parameter

      taudouble

      Tau

      paramsLogNormalModelParams

      Risk model parameters for log normal

      triggersPriceMonitoringTriggerrepeated

      @@ -2806,10 +2671,17 @@

      MarginCalculator

      - - + + - + + + + + + + + @@ -2819,8 +2691,8 @@

      MarginCalculator

      -

      Market

      -

      Market definition

      +

      PriceMonitoringTrigger

      +

      PriceMonitoringTrigger holds together price projection horizon Ï„, probability level p, and auction extension duration

      scaling_factorsScalingFactorsparametersPriceMonitoringParameters

      Scaling factors for margin calculation

      Specifies price monitoring parameters to be used for price monitoring purposes

      update_frequencyint64

      Specifies how often (expressed in seconds) the price monitoring bounds should be updated

      @@ -2830,248 +2702,10 @@

      Market

      - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      idstringhorizonint64

      Unique identifier

      tradable_instrumentTradableInstrument

      Tradable instrument configuration

      decimal_placesuint64

      Number of decimal places that a price must be shifted by in order to get a -correct price denominated in the currency of the market, for example: -`realPrice = price / 10^decimalPlaces`

      feesFees

      Fees configuration

      opening_auctionAuctionDuration

      Auction duration specifies how long the opening auction will run (minimum -duration and optionally a minimum traded volume)

      continuousContinuousTrading

      Continuous

      discreteDiscreteTrading

      Discrete

      price_monitoring_settingsPriceMonitoringSettings

      PriceMonitoringSettings for the market

      liquidity_monitoring_parametersLiquidityMonitoringParameters

      LiquidityMonitoringParameters for the market

      trading_modeMarket.TradingMode

      Current mode of execution of the market

      stateMarket.State

      Current state of the market

      market_timestampsMarketTimestamps

      Timestamps for when the market stay changes

      - - - - - -

      MarketTimestamps

      -

      Time stamps for important times about creating, enacting etc the market

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      proposedint64

      Time when the market is first proposed

      pendingint64

      Time when the market has been voted in and is created into an opening auction

      openint64

      Time when the market has left the opening auction and is ready to accept trades

      closeint64

      Time when the market is closed

      - - - - - -

      OracleSpecToFutureBinding

      -

      OracleSpecToFutureBinding tells on which property oracle data should be

      used as settlement price and which to use the trading terminated trigger

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      settlement_price_propertystring

      settlement_price_property holds the name of the property in the oracle data -that should be used as settlement price. -If it is set to "prices.BTC.value", then the Future will use the value of -this property as settlement price.

      trading_termination_propertystring

      the name of the property in the oracle data that signals termination of trading

      - - - - - -

      PriceMonitoringParameters

      -

      PriceMonitoringParameters contains a collection of triggers to be used for a given market

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      triggersPriceMonitoringTriggerrepeated

      - - - - - -

      PriceMonitoringSettings

      -

      PriceMonitoringSettings contains the settings for price monitoring

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      parametersPriceMonitoringParameters

      Specifies price monitoring parameters to be used for price monitoring purposes

      update_frequencyint64

      Specifies how often (expressed in seconds) the price monitoring bounds should be updated

      - - - - - -

      PriceMonitoringTrigger

      -

      PriceMonitoringTrigger holds together price projection horizon Ï„, probability level p, and auction extension duration

      - - - - - - - - - - - - - + @@ -3550,13 +3184,13 @@

      Market.TradingMode

      -

      vega.proto

      Top +

      assets.proto

      Top

      -

      Account

      -

      Represents an account for an asset on Vega for a particular owner or party

      +

      Asset

      +

      The Vega representation of an external asset

      FieldTypeLabelDescription
      horizonint64

      Price monitoring projection horizon Ï„ in seconds

      Price monitoring projection horizon Ï„ in seconds

      @@ -3569,23 +3203,182 @@

      Account

      - + - - + + - + - - - - - +
      id string

      Unique account identifier (used internally by Vega)

      Internal identifier of the asset

      ownerstringdetailsAssetDetails

      The party that the account belongs to, special values include `network`, which represents the Vega network and is -most commonly seen during liquidation of distressed trading positions

      The definition of the external source for this asset

      balanceuint64

      Balance of the asset, the balance is an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places +

      + + + + + +

      AssetDetails

      +

      The Vega representation of an external asset

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      namestring

      Name of the asset (e.g: Great British Pound)

      symbolstring

      Symbol of the asset (e.g: GBP)

      total_supplystring

      Total circulating supply for the asset

      decimalsuint64

      Number of decimal / precision handled by this asset

      min_lp_stakestring

      Min stake required for this asset from liquidity providers

      builtin_assetBuiltinAsset

      A built-in asset

      erc20ERC20

      An Ethereum ERC20 asset

      + + + + + +

      BuiltinAsset

      +

      A Vega internal asset

      + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      max_faucet_amount_mintstring

      Maximum amount that can be requested by a party through the built-in asset faucet at a time

      + + + + + +

      ERC20

      +

      An ERC20 token based asset, living on the ethereum network

      + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      contract_addressstring

      The address of the contract for the token, on the ethereum network

      + + + + + + + + + + + + + +
      +

      vega.proto

      Top +
      +

      + + +

      Account

      +

      Represents an account for an asset on Vega for a particular owner or party

      + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3743,6 +3536,51 @@

      Candle

      +

      Delegation

      +

      + + +
      FieldTypeLabelDescription
      idstring

      Unique account identifier (used internally by Vega)

      ownerstring

      The party that the account belongs to, special values include `network`, which represents the Vega network and is +most commonly seen during liquidation of distressed trading positions

      balanceuint64

      Balance of the asset, the balance is an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places and importantly balances cannot be negative

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      partystring

      Party which is delegating

      node_idstring

      Node ID

      amountstring

      Amount delegated

      epoch_seqstring

      Epoch of delegation

      + + + + +

      Deposit

      A deposit on to the Vega network

      @@ -3816,8 +3654,8 @@

      Deposit

      -

      Erc20WithdrawExt

      -

      An extension of data required for the withdraw submissions

      +

      Epoch

      +

      @@ -3827,10 +3665,31 @@

      Erc20WithdrawExt

      - - + + - + + + + + + + + + + + + + + + + + + + + + + @@ -3839,9 +3698,36 @@

      Erc20WithdrawExt

      +

      Validated Fields

      +
      receiver_addressstringsequint64

      The address into which the bridge will release the funds

      Sequence is used as epoch indentifier

      timestampsEpochTimestamps

      Timestamps for start/end etc

      validatorsNoderepeated

      Validators that participated in this epoch

      delegationsDelegationrepeated

      List of all delegations in epoch

      + + + + + + + -

      ErrorDetail

      -

      Represents Vega domain specific error information over gRPC/Protobuf

      + + + + + + +
      FieldValidations
      timestamps +
        + +
      • msg_exists: true
      • + +
      +
      + + + + + +

      EpochData

      +

      @@ -3851,7 +3737,188 @@

      ErrorDetail

      - + + + + + + + + + + + + + + + + + + + + + +
      codetotalint32

      Total number of epochs since node was created

      offlineint32

      Total number of offline epochs since node was created

      onlineint32

      Total number of online epochs since node was created

      + + + + + +

      EpochParticipation

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      epochEpoch

      offlineuint64

      onlineuint64

      total_rewardsdouble

      + + + + +

      Validated Fields

      + + + + + + + + + + + + + + + +
      FieldValidations
      epoch +
        + +
      • string_not_empty: true
      • + +
      +
      + + + + + +

      EpochTimestamps

      +

      Describes in both human readable and block time when an epoch spans

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      start_timeint64

      Timestamp of epoch start in nanoseconds, empty if not started +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      end_timeint64

      Timestamp of epoch end in nanoseconds, empty if not started +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      first_blockuint64

      Height of first block in the epoch

      last_blockuint64

      Height of last block in the epoch, empty if not ended

      + + + + + +

      Erc20WithdrawExt

      +

      An extension of data required for the withdraw submissions

      + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      receiver_addressstring

      The address into which the bridge will release the funds

      + + + + + +

      ErrorDetail

      +

      Represents Vega domain specific error information over gRPC/Protobuf

      + + + + + + + + + + @@ -3916,6 +3983,13 @@

      EthereumConfig

      + + + + + + +
      FieldTypeLabelDescription
      code int32

      A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004

      Number of confirmations

      staking_bridge_addressesstringrepeated

      Staking Bridge addresses for the ethereum network

      @@ -4688,8 +4762,8 @@

      NetworkParameter

      -

      Order

      -

      An order can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties

      +

      Node

      +

      @@ -4702,128 +4776,330 @@

      Order

      - + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - - - + + + + - - - - - - + +
      id string

      Unique identifier for the order (set by the system after consensus)

      The node url eg n01.vega.xyz

      market_idpub_key string

      Market identifier for the order

      Pub key of the node operator

      party_idinfo_url string

      Party identifier for the order

      URL where I can find out more info on the node

      sideSidelocationstring

      Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)

      Country code for the location of the node

      priceuint64staked_by_operatorstring

      Price for the order, the price is an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      The amount the node has put up themselves

      sizeuint64staked_by_delegatesstring

      Size for the order, for example, in a futures market the size equals the number of contracts

      The amount of stake that has been delegated by token holders

      remaininguint64staked_totalstring

      Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED

      Total amount staked on node

      time_in_forceOrder.TimeInForcemax_intended_stakestring

      Time in force indicates how long an order will remain active before it is executed or expires. -- See [`Order.TimeInForce`](#vega.Order.TimeInForce)

      Max amount of (wanted) stake, is this a network param or a node param

      typeOrder.Typepending_stakestring

      Type for the order - See [`Order.Type`](#vega.Order.Type)

      Amount of stake on the next epoch

      created_atint64epoch_dataEpochData

      Timestamp for when the order was created at, in nanoseconds since the epoch -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      Informantion about epoch

      statusOrder.StatusNodeStatus

      The current status for the order. See [`Order.Status`](#vega.Order.Status) -- For detail on `STATUS_REJECTED` please check the [`OrderError`](#vega.OrderError) value given in the `reason` field

      Node status

      expires_atint64

      Timestamp for when the order will expire, in nanoseconds since the epoch -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`, valid only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`

      delagationsDelegationrepeated

      Node's delegations

      referencestring

      Reference given for the order, this is typically used to retrieve an order submitted through consensus -- Currently set internally by the node to return a unique reference identifier for the order submission

      - - reason - OrderError - -

      If the Order `status` is `STATUS_REJECTED` then an [`OrderError`](#vega.OrderError) reason will be specified -- The default for this field is `ORDER_ERROR_NONE` which signifies that there were no errors

      - - - updated_at - int64 - -

      Timestamp for when the Order was last updated, in nanoseconds since the epoch -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      - - - version - uint64 - -

      The version for the order, initial value is version 1 and is incremented after each successful amend

      - +

      Validated Fields

      + + - - - - + + + + + + + + + + + + + + + + + + + + + + +
      batch_iduint64

      Batch identifier for the order, used internally for orders submitted during auctions -to keep track of the auction batch this order falls under (required for fees calculation)

      FieldValidations
      pub_key +
        + +
      • string_not_empty: true
      • + +
      +
      epoch_data +
        + +
      • msg_exists: true
      • + +
      +
      status +
        + +
      • msg_exists: true
      • + +
      +
      + + + + + +

      NodeData

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      staked_totalstring

      Total staked amount across all nodes

      total_nodesuint32

      Total number of nodes

      inactive_nodesuint32

      Number of inactive nodes

      validating_nodesuint32

      Number of nodes validating

      uptimefloat

      Total uptime for all epochs across all nodes

      + + + + + +

      Order

      +

      An order can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4926,6 +5202,13 @@

      Party

      + + + + + + +
      FieldTypeLabelDescription
      idstring

      Unique identifier for the order (set by the system after consensus)

      market_idstring

      Market identifier for the order

      party_idstring

      Party identifier for the order

      sideSide

      Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)

      priceuint64

      Price for the order, the price is an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

      sizeuint64

      Size for the order, for example, in a futures market the size equals the number of contracts

      remaininguint64

      Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED

      time_in_forceOrder.TimeInForce

      Time in force indicates how long an order will remain active before it is executed or expires. +- See [`Order.TimeInForce`](#vega.Order.TimeInForce)

      typeOrder.Type

      Type for the order - See [`Order.Type`](#vega.Order.Type)

      created_atint64

      Timestamp for when the order was created at, in nanoseconds since the epoch +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      statusOrder.Status

      The current status for the order. See [`Order.Status`](#vega.Order.Status) +- For detail on `STATUS_REJECTED` please check the [`OrderError`](#vega.OrderError) value given in the `reason` field

      expires_atint64

      Timestamp for when the order will expire, in nanoseconds since the epoch +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`, valid only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`

      referencestring

      Reference given for the order, this is typically used to retrieve an order submitted through consensus +- Currently set internally by the node to return a unique reference identifier for the order submission

      reasonOrderError

      If the Order `status` is `STATUS_REJECTED` then an [`OrderError`](#vega.OrderError) reason will be specified +- The default for this field is `ORDER_ERROR_NONE` which signifies that there were no errors

      updated_atint64

      Timestamp for when the Order was last updated, in nanoseconds since the epoch +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      versionuint64

      The version for the order, initial value is version 1 and is incremented after each successful amend

      batch_iduint64

      Batch identifier for the order, used internally for orders submitted during auctions +to keep track of the auction batch this order falls under (required for fees calculation)

      A unique identifier for the party, typically represented by a public key

      delegationsDelegationrepeated

      @@ -5199,8 +5482,8 @@

      PriceMonitoringBounds

      -

      RiskFactor

      -

      Risk factors are used to calculate the current risk associated with orders trading on a given market

      +

      RewardDetails

      +

      Details for a single reward payment

      @@ -5210,34 +5493,131 @@

      RiskFactor

      - + - + - - + + - + - - + + - + - -
      marketasset_id string

      Market ID that relates to this risk factor

      shortdoubleparty_idstring

      Short Risk factor value

      longdoubleepochuint64

      Long Risk factor value

      - - - + + amount + string + +

      + + + percentage_of_total + string + +

      + -

      RiskResult

      + + received_at + int64 + +

      + + + + + + + + + +

      RewardPerAssetDetail

      +

      Details for rewards for a single asset

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      assetstring

      asset details

      detailsRewardDetailsrepeated

      rewards ordered by received_at

      total_for_assetstring

      Total amount of rewards for the asset

      + + + + + +

      RiskFactor

      +

      Risk factors are used to calculate the current risk associated with orders trading on a given market

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      marketstring

      Market ID that relates to this risk factor

      shortdouble

      Short Risk factor value

      longdouble

      Long Risk factor value

      + + + + + +

      RiskResult

      Risk results are calculated internally by Vega to attempt to maintain safe trading

      @@ -5344,8 +5724,8 @@

      RiskResult.RiskFactorsEntry

      -

      Signature

      -

      A signature to be authenticate a transaction

      and to be verified by the vega network

      +

      Timestamp

      +

      A timestamp in nanoseconds since epoch

      See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      @@ -5355,24 +5735,10 @@

      Signature

      - - - - - - - - - - - - - - - - + + - + @@ -5382,8 +5748,8 @@

      Signature

      -

      SignedBundle

      -

      A bundle of a transaction and it's signature

      +

      Trade

      +

      A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega

      sigbytes

      The bytes of the signature

      algostring

      The algorithm used to create the signature

      versionuint32valueint64

      The version of the signature used to create the signature

      Timestamp value

      @@ -5393,259 +5759,300 @@

      SignedBundle

      - - + + - + - - + + - + - -
      txbytesidstring

      Transaction payload (proto marshalled)

      Unique identifier for the trade (generated by Vega)

      sigSignaturemarket_idstring

      The signature authenticating the transaction

      Market identifier (the market that the trade occurred on)

      - - - - - -

      Statistics

      -

      Vega domain specific statistics as reported by the node the caller is connected to

      - - - - - - - - - + - + - + - + - - + + - + - + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - - - - - - + +
      FieldTypeLabelDescription
      block_heightprice uint64

      Current block height as reported by the Vega blockchain

      Price for the trade, the price is an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

      backlog_lengthsize uint64

      Current backlog length (number of transactions) that are waiting to be included in a block

      Size filled for the trade

      total_peersuint64buyerstring

      Total number of connected peers to this node

      Unique party identifier for the buyer

      genesis_timeseller string

      Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision

      Unique party identifier for the seller

      current_timestringaggressorSide

      Current system date and time formatted in ISO-8601 datetime format with nanosecond precision

      Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)

      vega_timebuy_order string

      Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision

      Identifier of the order from the buy side

      statusChainStatussell_orderstring

      Status of the connection to the Vega blockchain -- See [`ChainStatus`](#vega.ChainStatus)

      Identifier of the order from the sell side

      tx_per_blockuint64timestampint64

      Transactions per block

      Timestamp for when the trade occurred, in nanoseconds since the epoch +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      average_tx_bytesuint64typeTrade.Type

      Average transaction size in bytes

      Type for the trade - See [`Trade.Type`](#vega.Trade.Type)

      average_orders_per_blockuint64buyer_feeFee

      Average orders per block

      Fee amount charged to the buyer party for the trade

      trades_per_seconduint64seller_feeFee

      Trades emitted per second

      Fee amount charged to the seller party for the trade

      orders_per_secondbuyer_auction_batch uint64

      Orders processed per second

      Auction batch number that the buy side order was placed in

      total_marketsseller_auction_batch uint64

      Total markets on this Vega network

      Auction batch number that the sell side order was placed in

      total_amend_orderuint64

      Total number of order amendments since genesis (on all markets)

      + + + + + +

      TradeSet

      +

      + + + + + + + - - - - + + + + + +
      FieldTypeLabelDescription
      total_cancel_orderuint64

      Total number of order cancellations since genesis (on all markets)

      tradesTraderepeated

      A set of one or more trades

      + + + + + +

      Transfer

      +

      Represents a financial transfer within Vega

      + + + + + + + + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - + +
      FieldTypeLabelDescription
      total_create_orderuint64ownerstring

      Total number of order submissions since genesis (on all markets)

      Party identifier for the owner of the transfer

      total_ordersuint64amountFinancialAmount

      Total number of orders processed since genesis (on all markets)

      A financial amount (of an asset) to transfer

      total_tradesuint64typeTransferType

      Total number of trades emitted since genesis (on all markets)

      The type of transfer, gives the reason for the transfer

      order_subscriptionsuint32min_amountuint64

      Current number of stream subscribers to order data

      A minimum amount

      trade_subscriptionsuint32

      Current number of stream subscribers to trade data

      + + + + + +

      TransferBalance

      +

      Represents the balance for an account during a transfer

      + + + + + + + - - + + - + - - + + - + + +
      FieldTypeLabelDescription
      candle_subscriptionsuint32accountAccount

      Current number of stream subscribers to candle-stick data

      The account relating to the transfer

      market_depth_subscriptionsuint32balanceuint64

      Current number of stream subscribers to market depth data

      The balance relating to the transfer

      + + + + + +

      TransferRequest

      +

      Represents a request to transfer from one set of accounts to another

      + + + + + + + + - - - - + + + + - - - - + + + + - - + + - + - - + + - + - + - + - + - + - - - - - - + +
      FieldTypeLabelDescription
      positions_subscriptionsuint32

      Current number of stream subscribers to positions data

      from_accountAccountrepeated

      One or more accounts to transfer from

      account_subscriptionsuint32

      Current number of stream subscribers to account data

      to_accountAccountrepeated

      One or more accounts to transfer to

      market_data_subscriptionsuint32amountuint64

      Current number of stream subscribers to market data

      An amount to transfer for the asset

      app_version_hashstringmin_amountuint64

      The version hash of the Vega node software

      A minimum amount

      app_versionasset string

      The version of the Vega node software

      Asset identifier

      chain_versionreference string

      The version of the underlying Vega blockchain

      A reference for auditing purposes

      block_durationuint64

      Current block duration, in nanoseconds

      + + + + + +

      TransferResponse

      +

      Represents the response from a transfer

      - - uptime - string - -

      Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision

      - + + + + + + - - - - + + + + - - - - + + + + @@ -5655,8 +6062,8 @@

      Statistics

      -

      Timestamp

      -

      A timestamp in nanoseconds since epoch

      See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      +

      WithdrawExt

      +

      Withdrawal external details

      FieldTypeLabelDescription
      chain_idstring

      Unique identifier for the underlying Vega blockchain

      transfersLedgerEntryrepeated

      One or more ledger entries representing the transfers

      market_depth_updates_subscriptionsuint32

      Current number of stream subscribers to market depth update data

      balancesTransferBalancerepeated

      One or more account balances

      @@ -5666,10 +6073,10 @@

      Timestamp

      - - + + - + @@ -5679,8 +6086,8 @@

      Timestamp

      -

      Trade

      -

      A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega

      +

      Withdrawal

      +

      A withdrawal from the Vega network

      valueint64erc20Erc20WithdrawExt

      Timestamp value

      ERC20 withdrawal details

      @@ -5693,107 +6100,78 @@

      Trade

      - + - + - - - - - - - - + - + - - - - - - - - + - + - - - - - - - - + - - + + - + - + - + - + - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + @@ -5803,373 +6181,510 @@

      Trade

      -

      TradeSet

      -

      -
      id string

      Unique identifier for the trade (generated by Vega)

      Unique identifier for the withdrawal

      market_idparty_id string

      Market identifier (the market that the trade occurred on)

      priceuint64

      Price for the trade, the price is an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      Unique party identifier of the user initiating the withdrawal

      sizeamount uint64

      Size filled for the trade

      buyerstring

      Unique party identifier for the buyer

      The amount to be withdrawn

      sellerasset string

      Unique party identifier for the seller

      aggressorSide

      Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)

      The asset we want to withdraw funds from

      buy_orderstringstatusWithdrawal.Status

      Identifier of the order from the buy side

      The status of the withdrawal

      sell_orderref string

      Identifier of the order from the sell side

      The reference which is used by the foreign chain +to refer to this withdrawal

      timestampexpiry int64

      Timestamp for when the trade occurred, in nanoseconds since the epoch -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      typeTrade.Type

      Type for the trade - See [`Trade.Type`](#vega.Trade.Type)

      The time until when the withdrawal is valid

      buyer_feeFeetx_hashstring

      Fee amount charged to the buyer party for the trade

      The hash of the foreign chain for this transaction

      seller_feeFeecreated_timestampint64

      Fee amount charged to the seller party for the trade

      Timestamp for when the network started to process this withdrawal

      buyer_auction_batchuint64withdrawn_timestampint64

      Auction batch number that the buy side order was placed in

      Timestamp for when the withdrawal was finalised by the network

      seller_auction_batchuint64extWithdrawExt

      Auction batch number that the sell side order was placed in

      Foreign chain specifics

      - - - - +

      AccountType

      +

      Various collateral/account types as used by Vega

      +
      FieldTypeLabelDescription
      + + + + - - - - - - + + + + + - -
      NameNumberDescription
      tradesTraderepeated

      A set of one or more trades

      ACCOUNT_TYPE_UNSPECIFIED0

      Default value

      + + ACCOUNT_TYPE_INSURANCE + 1 +

      Insurance pool accounts contain insurance pool funds for a market

      + + + ACCOUNT_TYPE_SETTLEMENT + 2 +

      Settlement accounts exist only during settlement or mark-to-market

      + + + ACCOUNT_TYPE_MARGIN + 3 +

      Margin accounts contain margin funds for a party and each party will +have multiple margin accounts, one for each market they have traded in +Margin account funds will alter as margin requirements on positions change

      + + + ACCOUNT_TYPE_GENERAL + 4 +

      General accounts contains general funds for a party. A party will +have multiple general accounts, one for each asset they want +to trade with -

      Transaction

      -

      Represents a transaction to be sent to Vega

      +General accounts are where funds are initially deposited or withdrawn from, +it is also the account where funds are taken to fulfil fees and initial margin requirements

      + + + ACCOUNT_TYPE_FEES_INFRASTRUCTURE + 5 +

      Infrastructure accounts contain fees earned by providing infrastructure on Vega

      + - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      ACCOUNT_TYPE_FEES_LIQUIDITY6

      Liquidity accounts contain fees earned by providing liquidity on Vega markets

      input_databytes

      One of the set of Vega commands (proto marshalled)

      ACCOUNT_TYPE_FEES_MAKER7

      This account is created to hold fees earned by placing orders that sit on the book +and are then matched with an incoming order to create a trade - These fees reward parties +who provide the best priced liquidity that actually allows trading to take place

      nonceuint64

      A random number used to provide uniqueness and prevent against replay attack

      ACCOUNT_TYPE_LOCK_WITHDRAW8

      This account is created to lock funds to be withdrawn by parties

      block_heightuint64

      The block height associated to the transaction, this should always be current block height -of the node at the time of sending the Tx and block height is used as a mechanism -for replay protection

      ACCOUNT_TYPE_BOND9

      This account is created to maintain liquidity providers funds commitments

      addressbytes

      The address of the sender

      ACCOUNT_TYPE_EXTERNAL10

      External account represents an external source (deposit/withdrawal)

      pub_keybytes

      The public key of the sender

      ACCOUNT_TYPE_GLOBAL_INSURANCE11

      Global insurance account for the asset

      + + ACCOUNT_TYPE_GLOBAL_REWARD + 12 +

      Global reward account for the asset

      + + + +

      AuctionTrigger

      +

      Auction triggers indicate what condition triggered an auction (if market is in auction mode)

      + + + + + + + + + + + + + + + -

      Transfer

      -

      Represents a financial transfer within Vega

      + + + + + + + + + + -
      NameNumberDescription
      AUCTION_TRIGGER_UNSPECIFIED0

      Default value for AuctionTrigger, no auction triggered

      AUCTION_TRIGGER_BATCH1

      Batch auction

      AUCTION_TRIGGER_OPENING2

      Opening auction

      AUCTION_TRIGGER_PRICE3

      Price monitoring trigger

      - - - - + + + + + - - - - - - + +
      FieldTypeLabelDescription
      AUCTION_TRIGGER_LIQUIDITY4

      Liquidity monitoring trigger

      ownerstring

      Party identifier for the owner of the transfer

      - - amount - FinancialAmount - -

      A financial amount (of an asset) to transfer

      - +

      ChainStatus

      +

      The Vega blockchain status as reported by the node the caller is connected to

      + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      NameNumberDescription
      typeTransferType

      The type of transfer, gives the reason for the transfer

      CHAIN_STATUS_UNSPECIFIED0

      Default value, always invalid

      min_amountuint64

      A minimum amount

      CHAIN_STATUS_DISCONNECTED1

      Blockchain is disconnected

      + + CHAIN_STATUS_REPLAYING + 2 +

      Blockchain is replaying historic transactions

      + + + CHAIN_STATUS_CONNECTED + 3 +

      Blockchain is connected and receiving transactions

      + + + +

      Deposit.Status

      +

      The status of the deposit

      + + + + + + + + + + -

      TransferBalance

      -

      Represents the balance for an account during a transfer

      + + + + + + + + + + -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value, always invalid

      STATUS_OPEN1

      The deposit is being processed by the network

      STATUS_CANCELLED2

      The deposit has been cancelled by the network

      - - - - + + + + + - - - - - - + +
      FieldTypeLabelDescription
      STATUS_FINALIZED3

      The deposit has been finalised and accounts have been updated

      accountAccount

      The account relating to the transfer

      - - balance - uint64 - -

      The balance relating to the transfer

      - +

      Interval

      +

      Represents a set of time intervals that are used when querying for candle-stick data

      + + + + + - -
      NameNumberDescription
      + + INTERVAL_UNSPECIFIED + 0 +

      Default value, always invalid

      + + + INTERVAL_I1M + 60 +

      1 minute.

      + + + INTERVAL_I5M + 300 +

      5 minutes.

      + + + INTERVAL_I15M + 900 +

      15 minutes.

      + + + INTERVAL_I1H + 3600 +

      1 hour.

      + -

      TransferRequest

      -

      Represents a request to transfer from one set of accounts to another

      + + INTERVAL_I6H + 21600 +

      6 hours.

      + + + INTERVAL_I1D + 86400 +

      1 day.

      + - - - - - + +
      FieldTypeLabelDescription
      - - from_account - Account - repeated -

      One or more accounts to transfer from

      - +

      LiquidityProvision.Status

      +

      Status of a liquidity provision order

      + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      NameNumberDescription
      to_accountAccountrepeated

      One or more accounts to transfer to

      STATUS_UNSPECIFIED0

      The default value

      amountuint64

      An amount to transfer for the asset

      STATUS_ACTIVE1

      The liquidity provision is active

      min_amountuint64

      A minimum amount

      STATUS_STOPPED2

      The liquidity provision was stopped by the network

      assetstring

      Asset identifier

      STATUS_CANCELLED3

      The liquidity provision was cancelled by the liquidity provider

      referencestring

      A reference for auditing purposes

      STATUS_REJECTED4

      The liquidity provision was invalid and got rejected

      + + STATUS_UNDEPLOYED + 5 +

      The liquidity provision is valid and accepted by network, but orders aren't deployed

      + + + STATUS_PENDING + 6 +

      The liquidity provision is valid and accepted by network +but have never been deployed. I when it's possible to deploy them for the first time +margin check fails, then they will be cancelled without any penalties.

      + + + +

      NodeStatus

      +

      Node status type

      + + + + + + + + + + -

      TransferResponse

      -

      Represents the response from a transfer

      + + + + + + + + + + -
      NameNumberDescription
      NODE_STATUS_UNSPECIFIED0

      NODE_STATUS_VALIDATOR1

      The node is validating

      NODE_STATUS_NON_VALIDATOR2

      The node is non-validating

      - - - - + +
      FieldTypeLabelDescription
      - - transfers - LedgerEntry - repeated -

      One or more ledger entries representing the transfers

      - +

      Order.Status

      +

      Status values for an order

      See resulting status in [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail.

      + + + + + - - - - - - + + + + + - -
      NameNumberDescription
      balancesTransferBalancerepeated

      One or more account balances

      STATUS_UNSPECIFIED0

      Default value, always invalid

      + + STATUS_ACTIVE + 1 +

      Used for active unfilled or partially filled orders

      + + + STATUS_EXPIRED + 2 +

      Used for expired GTT orders

      + + + STATUS_CANCELLED + 3 +

      Used for orders cancelled by the party that created the order

      + + + STATUS_STOPPED + 4 +

      Used for unfilled FOK or IOC orders, and for orders that were stopped by the network

      + + + STATUS_FILLED + 5 +

      Used for closed fully filled orders

      + -

      WithdrawExt

      -

      Withdrawal external details

      + + STATUS_REJECTED + 6 +

      Used for orders when not enough collateral was available to fill the margin requirements

      + + + STATUS_PARTIALLY_FILLED + 7 +

      Used for closed partially filled IOC orders

      + - - - - - + + + + + - - - - - - + +
      FieldTypeLabelDescription
      STATUS_PARKED8

      Order has been removed from the order book and has been parked, this applies to pegged orders only

      erc20Erc20WithdrawExt

      ERC20 withdrawal details

      - - +

      Order.TimeInForce

      +

      Time In Force for an order

      See [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail

      + + + + + + + + + + + + + + + + + + + + + + + + + -

      Withdrawal

      -

      A withdrawal from the Vega network

      - - -
      NameNumberDescription
      TIME_IN_FORCE_UNSPECIFIED0

      Default value for TimeInForce, can be valid for an amend

      TIME_IN_FORCE_GTC1

      Good until cancelled

      TIME_IN_FORCE_GTT2

      Good until specified time

      TIME_IN_FORCE_IOC3

      Immediate or cancel

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      idstring

      Unique identifier for the withdrawal

      party_idstring

      Unique party identifier of the user initiating the withdrawal

      amountuint64

      The amount to be withdrawn

      assetstring

      The asset we want to withdraw funds from

      statusWithdrawal.Status

      The status of the withdrawal

      refstring

      The reference which is used by the foreign chain -to refer to this withdrawal

      expiryint64

      The time until when the withdrawal is valid

      tx_hashstring

      The hash of the foreign chain for this transaction

      created_timestampint64

      Timestamp for when the network started to process this withdrawal

      TIME_IN_FORCE_FOK4

      Fill or kill

      withdrawn_timestampint64

      Timestamp for when the withdrawal was finalised by the network

      TIME_IN_FORCE_GFA5

      Good for auction

      extWithdrawExt

      Foreign chain specifics

      TIME_IN_FORCE_GFN6

      Good for normal

      + + +

      Order.Type

      +

      Type values for an order

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      NameNumberDescription
      TYPE_UNSPECIFIED0

      Default value, always invalid

      TYPE_LIMIT1

      Used for Limit orders

      TYPE_MARKET2

      Used for Market orders

      TYPE_NETWORK3

      Used for orders where the initiating party is the network (with distressed parties)

      -

      AccountType

      -

      Various collateral/account types as used by Vega

      +

      OrderError

      +

      OrderError codes are returned in the `[Order](#vega.Order).reason` field - If there is an issue

      with an order during its life-cycle, it will be marked with `status.ORDER_STATUS_REJECTED`

      @@ -6177,382 +6692,301 @@

      AccountType

      - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - -
      NameNumberDescription
      ACCOUNT_TYPE_UNSPECIFIEDORDER_ERROR_UNSPECIFIED 0

      Default value

      Default value, no error reported

      ACCOUNT_TYPE_INSURANCEORDER_ERROR_INVALID_MARKET_ID 1

      Insurance pool accounts contain insurance pool funds for a market

      Order was submitted for a market that does not exist

      ACCOUNT_TYPE_SETTLEMENTORDER_ERROR_INVALID_ORDER_ID 2

      Settlement accounts exist only during settlement or mark-to-market

      Order was submitted with an invalid identifier

      ACCOUNT_TYPE_MARGINORDER_ERROR_OUT_OF_SEQUENCE 3

      Margin accounts contain margin funds for a party and each party will -have multiple margin accounts, one for each market they have traded in - -Margin account funds will alter as margin requirements on positions change

      Order was amended with a sequence number that was not previous version + 1

      ACCOUNT_TYPE_GENERALORDER_ERROR_INVALID_REMAINING_SIZE 4

      General accounts contains general funds for a party. A party will -have multiple general accounts, one for each asset they want -to trade with - -General accounts are where funds are initially deposited or withdrawn from, -it is also the account where funds are taken to fulfil fees and initial margin requirements

      Order was amended with an invalid remaining size (e.g. remaining greater than total size)

      ACCOUNT_TYPE_FEES_INFRASTRUCTUREORDER_ERROR_TIME_FAILURE 5

      Infrastructure accounts contain fees earned by providing infrastructure on Vega

      Node was unable to get Vega (blockchain) time

      ACCOUNT_TYPE_FEES_LIQUIDITYORDER_ERROR_REMOVAL_FAILURE 6

      Liquidity accounts contain fees earned by providing liquidity on Vega markets

      Failed to remove an order from the book

      ACCOUNT_TYPE_FEES_MAKERORDER_ERROR_INVALID_EXPIRATION_DATETIME 7

      This account is created to hold fees earned by placing orders that sit on the book -and are then matched with an incoming order to create a trade - These fees reward parties -who provide the best priced liquidity that actually allows trading to take place

      An order with `TimeInForce.TIME_IN_FORCE_GTT` was submitted or amended +with an expiration that was badly formatted or otherwise invalid

      ACCOUNT_TYPE_LOCK_WITHDRAWORDER_ERROR_INVALID_ORDER_REFERENCE 8

      This account is created to lock funds to be withdrawn by parties

      Order was submitted or amended with an invalid reference field

      ACCOUNT_TYPE_BONDORDER_ERROR_EDIT_NOT_ALLOWED 9

      This account is created to maintain liquidity providers funds commitments

      Order amend was submitted for an order field that cannot not be amended (e.g. order identifier)

      ACCOUNT_TYPE_EXTERNALORDER_ERROR_AMEND_FAILURE 10

      External account represents an external source (deposit/withdrawal)

      Amend failure because amend details do not match original order

      ACCOUNT_TYPE_GLOBAL_INSURANCEORDER_ERROR_NOT_FOUND 11

      Global insurance account for the asset

      Order not found in an order book or store

      ACCOUNT_TYPE_GLOBAL_REWARDORDER_ERROR_INVALID_PARTY_ID 12

      Global reward account for the asset

      Order was submitted with an invalid or missing party identifier

      - -

      AuctionTrigger

      -

      Auction triggers indicate what condition triggered an auction (if market is in auction mode)

      - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - -
      NameNumberDescription
      AUCTION_TRIGGER_UNSPECIFIED0

      Default value for AuctionTrigger, no auction triggered

      ORDER_ERROR_MARKET_CLOSED13

      Order was submitted for a market that has closed

      AUCTION_TRIGGER_BATCH1

      Batch auction

      ORDER_ERROR_MARGIN_CHECK_FAILED14

      Order was submitted, but the party did not have enough collateral to cover the order

      AUCTION_TRIGGER_OPENING2

      Opening auction

      ORDER_ERROR_MISSING_GENERAL_ACCOUNT15

      Order was submitted, but the party did not have an account for this asset

      AUCTION_TRIGGER_PRICE3

      Price monitoring trigger

      ORDER_ERROR_INTERNAL_ERROR16

      Unspecified internal error

      AUCTION_TRIGGER_LIQUIDITY4

      Liquidity monitoring trigger

      - -

      ChainStatus

      -

      The Vega blockchain status as reported by the node the caller is connected to

      - - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - -
      NameNumberDescription
      CHAIN_STATUS_UNSPECIFIED0

      Default value, always invalid

      ORDER_ERROR_INVALID_SIZE17

      Order was submitted with an invalid or missing size (e.g. 0)

      CHAIN_STATUS_DISCONNECTED1

      Blockchain is disconnected

      ORDER_ERROR_INVALID_PERSISTENCE18

      Order was submitted with an invalid persistence for its type

      CHAIN_STATUS_REPLAYING2

      Blockchain is replaying historic transactions

      ORDER_ERROR_INVALID_TYPE19

      Order was submitted with an invalid type field

      CHAIN_STATUS_CONNECTED3

      Blockchain is connected and receiving transactions

      ORDER_ERROR_SELF_TRADING20

      Order was stopped as it would have traded with another order submitted from the same party

      - -

      Deposit.Status

      -

      The status of the deposit

      - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value, always invalid

      ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES21

      Order was submitted, but the party did not have enough collateral to cover the fees for the order

      STATUS_OPEN1

      The deposit is being processed by the network

      ORDER_ERROR_INCORRECT_MARKET_TYPE22

      Order was submitted with an incorrect or invalid market type

      STATUS_CANCELLED2

      The deposit has been cancelled by the network

      ORDER_ERROR_INVALID_TIME_IN_FORCE23

      Order was submitted with invalid time in force

      STATUS_FINALIZED3

      The deposit has been finalised and accounts have been updated

      ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION24

      A GFN order has got to the market when it is in auction mode

      - -

      Interval

      -

      Represents a set of time intervals that are used when querying for candle-stick data

      - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - -
      NameNumberDescription
      INTERVAL_UNSPECIFIED0

      Default value, always invalid

      ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING25

      A GFA order has got to the market when it is in continuous trading mode

      INTERVAL_I1M60

      1 minute.

      ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT26

      Attempt to amend order to GTT without ExpiryAt

      INTERVAL_I5M300

      5 minutes.

      ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT27

      Attempt to amend ExpiryAt to a value before CreatedAt

      INTERVAL_I15M900

      15 minutes.

      ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT28

      Attempt to amend to GTC without an ExpiryAt value

      INTERVAL_I1H3600

      1 hour.

      ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC29

      Amending to FOK or IOC is invalid

      INTERVAL_I6H21600

      6 hours.

      ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN30

      Amending to GFA or GFN is invalid

      INTERVAL_I1D86400

      1 day.

      ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN31

      Amending from GFA or GFN is invalid

      - -

      LiquidityProvision.Status

      -

      Status of a liquidity provision order

      - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      The default value

      ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION32

      IOC orders are not allowed during auction

      STATUS_ACTIVE1

      The liquidity provision is active

      ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION33

      FOK orders are not allowed during auction

      STATUS_STOPPED2

      The liquidity provision was stopped by the network

      ORDER_ERROR_MUST_BE_LIMIT_ORDER34

      Pegged orders must be LIMIT orders

      STATUS_CANCELLED3

      The liquidity provision was cancelled by the liquidity provider

      ORDER_ERROR_MUST_BE_GTT_OR_GTC35

      Pegged orders can only have TIF GTC or GTT

      STATUS_REJECTED4

      The liquidity provision was invalid and got rejected

      ORDER_ERROR_WITHOUT_REFERENCE_PRICE36

      Pegged order must have a reference price

      STATUS_UNDEPLOYED5

      The liquidity provision is valid and accepted by network, but orders aren't deployed

      ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE37

      Buy pegged order cannot reference best ask price

      STATUS_PENDING6

      The liquidity provision is valid and accepted by network -but have never been deployed. I when it's possible to deploy them for the first time -margin check fails, then they will be cancelled without any penalties.

      ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO38

      Pegged order offset must be <= 0

      - -

      Order.Status

      -

      Status values for an order

      See resulting status in [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail.

      - - - - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + +
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value, always invalid

      ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO39

      Pegged order offset must be < 0

      STATUS_ACTIVE1

      Used for active unfilled or partially filled orders

      ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO40

      Pegged order offset must be >= 0

      STATUS_EXPIRED2

      Used for expired GTT orders

      ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE41

      Sell pegged order cannot reference best bid price

      STATUS_CANCELLED3

      Used for orders cancelled by the party that created the order

      ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO42

      Pegged order offset must be > zero

      STATUS_STOPPED4

      Used for unfilled FOK or IOC orders, and for orders that were stopped by the network

      ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE43

      The party has an insufficient balance, or does not have +a general account to submit the order (no deposits made +for the required asset)

      STATUS_FILLED5

      Used for closed fully filled orders

      ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER44

      Cannot amend a non pegged orders details

      STATUS_REJECTED6

      Used for orders when not enough collateral was available to fill the margin requirements

      ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER45

      We are unable to re-price a pegged order because a market price is unavailable

      STATUS_PARTIALLY_FILLED7

      Used for closed partially filled IOC orders

      ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER46

      It is not possible to amend the price of an existing pegged order

      STATUS_PARKED8

      Order has been removed from the order book and has been parked, this applies to pegged orders only

      ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS47

      An FOK, IOC, or GFN order was rejected because it resulted in trades outside the price bounds

      -

      Order.TimeInForce

      -

      Time In Force for an order

      See [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail

      +

      PeggedReference

      +

      A pegged reference defines which price point a pegged order is linked to - meaning

      the price for a pegged order is calculated from the value of the reference price point

      @@ -6560,4430 +6994,291 @@

      Order.TimeInForce

      - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      TIME_IN_FORCE_UNSPECIFIEDPEGGED_REFERENCE_UNSPECIFIED 0

      Default value for TimeInForce, can be valid for an amend

      Default value for PeggedReference, no reference given

      TIME_IN_FORCE_GTCPEGGED_REFERENCE_MID 1

      Good until cancelled

      TIME_IN_FORCE_GTT2

      Good until specified time

      TIME_IN_FORCE_IOC3

      Immediate or cancel

      TIME_IN_FORCE_FOK4

      Fill or kill

      TIME_IN_FORCE_GFA5

      Good for auction

      TIME_IN_FORCE_GFN6

      Good for normal

      - -

      Order.Type

      -

      Type values for an order

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      TYPE_UNSPECIFIED0

      Default value, always invalid

      TYPE_LIMIT1

      Used for Limit orders

      TYPE_MARKET2

      Used for Market orders

      TYPE_NETWORK3

      Used for orders where the initiating party is the network (with distressed parties)

      - -

      OrderError

      -

      OrderError codes are returned in the `[Order](#vega.Order).reason` field - If there is an issue

      with an order during its life-cycle, it will be marked with `status.ORDER_STATUS_REJECTED`

      - - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      ORDER_ERROR_UNSPECIFIED0

      Default value, no error reported

      ORDER_ERROR_INVALID_MARKET_ID1

      Order was submitted for a market that does not exist

      Mid price reference

      ORDER_ERROR_INVALID_ORDER_IDPEGGED_REFERENCE_BEST_BID 2

      Order was submitted with an invalid identifier

      Best bid price reference

      ORDER_ERROR_OUT_OF_SEQUENCE3

      Order was amended with a sequence number that was not previous version + 1

      ORDER_ERROR_INVALID_REMAINING_SIZE4

      Order was amended with an invalid remaining size (e.g. remaining greater than total size)

      ORDER_ERROR_TIME_FAILURE5

      Node was unable to get Vega (blockchain) time

      ORDER_ERROR_REMOVAL_FAILURE6

      Failed to remove an order from the book

      ORDER_ERROR_INVALID_EXPIRATION_DATETIME7

      An order with `TimeInForce.TIME_IN_FORCE_GTT` was submitted or amended -with an expiration that was badly formatted or otherwise invalid

      ORDER_ERROR_INVALID_ORDER_REFERENCE8

      Order was submitted or amended with an invalid reference field

      ORDER_ERROR_EDIT_NOT_ALLOWED9

      Order amend was submitted for an order field that cannot not be amended (e.g. order identifier)

      ORDER_ERROR_AMEND_FAILURE10

      Amend failure because amend details do not match original order

      ORDER_ERROR_NOT_FOUND11

      Order not found in an order book or store

      ORDER_ERROR_INVALID_PARTY_ID12

      Order was submitted with an invalid or missing party identifier

      ORDER_ERROR_MARKET_CLOSED13

      Order was submitted for a market that has closed

      ORDER_ERROR_MARGIN_CHECK_FAILED14

      Order was submitted, but the party did not have enough collateral to cover the order

      ORDER_ERROR_MISSING_GENERAL_ACCOUNT15

      Order was submitted, but the party did not have an account for this asset

      ORDER_ERROR_INTERNAL_ERROR16

      Unspecified internal error

      ORDER_ERROR_INVALID_SIZE17

      Order was submitted with an invalid or missing size (e.g. 0)

      ORDER_ERROR_INVALID_PERSISTENCE18

      Order was submitted with an invalid persistence for its type

      ORDER_ERROR_INVALID_TYPE19

      Order was submitted with an invalid type field

      ORDER_ERROR_SELF_TRADING20

      Order was stopped as it would have traded with another order submitted from the same party

      ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES21

      Order was submitted, but the party did not have enough collateral to cover the fees for the order

      ORDER_ERROR_INCORRECT_MARKET_TYPE22

      Order was submitted with an incorrect or invalid market type

      ORDER_ERROR_INVALID_TIME_IN_FORCE23

      Order was submitted with invalid time in force

      ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION24

      A GFN order has got to the market when it is in auction mode

      ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING25

      A GFA order has got to the market when it is in continuous trading mode

      ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT26

      Attempt to amend order to GTT without ExpiryAt

      ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT27

      Attempt to amend ExpiryAt to a value before CreatedAt

      ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT28

      Attempt to amend to GTC without an ExpiryAt value

      ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC29

      Amending to FOK or IOC is invalid

      ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN30

      Amending to GFA or GFN is invalid

      ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN31

      Amending from GFA or GFN is invalid

      ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION32

      IOC orders are not allowed during auction

      ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION33

      FOK orders are not allowed during auction

      ORDER_ERROR_MUST_BE_LIMIT_ORDER34

      Pegged orders must be LIMIT orders

      ORDER_ERROR_MUST_BE_GTT_OR_GTC35

      Pegged orders can only have TIF GTC or GTT

      ORDER_ERROR_WITHOUT_REFERENCE_PRICE36

      Pegged order must have a reference price

      ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE37

      Buy pegged order cannot reference best ask price

      ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO38

      Pegged order offset must be <= 0

      ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO39

      Pegged order offset must be < 0

      ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO40

      Pegged order offset must be >= 0

      ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE41

      Sell pegged order cannot reference best bid price

      ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO42

      Pegged order offset must be > zero

      ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE43

      The party has an insufficient balance, or does not have -a general account to submit the order (no deposits made -for the required asset)

      ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER44

      Cannot amend a non pegged orders details

      ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER45

      We are unable to re-price a pegged order because a market price is unavailable

      ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER46

      It is not possible to amend the price of an existing pegged order

      ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS47

      An FOK, IOC, or GFN order was rejected because it resulted in trades outside the price bounds

      - -

      PeggedReference

      -

      A pegged reference defines which price point a pegged order is linked to - meaning

      the price for a pegged order is calculated from the value of the reference price point

      - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - -
      NameNumberDescription
      PEGGED_REFERENCE_UNSPECIFIED0

      Default value for PeggedReference, no reference given

      PEGGED_REFERENCE_MID1

      Mid price reference

      PEGGED_REFERENCE_BEST_BID2

      Best bid price reference

      PEGGED_REFERENCE_BEST_ASKPEGGED_REFERENCE_BEST_ASK 3

      Best ask price reference

      - -

      Side

      -

      A side relates to the direction of an order, to Buy, or Sell

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      SIDE_UNSPECIFIED0

      Default value, always invalid

      SIDE_BUY1

      Buy order

      SIDE_SELL2

      Sell order

      - -

      Trade.Type

      -

      Type values for a trade

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      TYPE_UNSPECIFIED0

      Default value, always invalid

      TYPE_DEFAULT1

      Normal trading between two parties

      TYPE_NETWORK_CLOSE_OUT_GOOD2

      Trading initiated by the network with another party on the book, -which helps to zero-out the positions of one or more distressed parties

      TYPE_NETWORK_CLOSE_OUT_BAD3

      Trading initiated by the network with another party off the book, -with a distressed party in order to zero-out the position of the party

      - -

      TransferType

      -

      Transfers can occur between parties on Vega, these are the types that indicate why a transfer took place

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      TRANSFER_TYPE_UNSPECIFIED0

      Default value, always invalid

      TRANSFER_TYPE_LOSS1

      Loss

      TRANSFER_TYPE_WIN2

      Win

      TRANSFER_TYPE_CLOSE3

      Close

      TRANSFER_TYPE_MTM_LOSS4

      Mark to market loss

      TRANSFER_TYPE_MTM_WIN5

      Mark to market win

      TRANSFER_TYPE_MARGIN_LOW6

      Margin too low

      TRANSFER_TYPE_MARGIN_HIGH7

      Margin too high

      TRANSFER_TYPE_MARGIN_CONFISCATED8

      Margin was confiscated

      TRANSFER_TYPE_MAKER_FEE_PAY9

      Pay maker fee

      TRANSFER_TYPE_MAKER_FEE_RECEIVE10

      Receive maker fee

      TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY11

      Pay infrastructure fee

      TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE12

      Receive infrastructure fee

      TRANSFER_TYPE_LIQUIDITY_FEE_PAY13

      Pay liquidity fee

      TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE14

      Receive liquidity fee

      TRANSFER_TYPE_BOND_LOW15

      Bond too low

      TRANSFER_TYPE_BOND_HIGH16

      Bond too high

      TRANSFER_TYPE_WITHDRAW_LOCK17

      Lock amount for withdraw

      TRANSFER_TYPE_WITHDRAW18

      Actual withdraw from system

      TRANSFER_TYPE_DEPOSIT19

      Deposit funds

      TRANSFER_TYPE_BOND_SLASHING20

      Bond slashing

      TRANSFER_TYPE_STAKE_REWARD21

      Stake reward

      - -

      Withdrawal.Status

      -

      The status of the withdrawal

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value, always invalid

      STATUS_OPEN1

      The withdrawal is open and being processed by the network

      STATUS_CANCELLED2

      The withdrawal have been cancelled

      STATUS_FINALIZED3

      The withdrawal went through and is fully finalised, the funds are removed from the -Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network

      - - - - - - - -
      -

      assets.proto

      Top -
      -

      - - -

      Asset

      -

      The Vega representation of an external asset

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idstring

      Internal identifier of the asset

      detailsAssetDetails

      The definition of the external source for this asset

      - - - - - -

      AssetDetails

      -

      The Vega representation of an external asset

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      namestring

      Name of the asset (e.g: Great British Pound)

      symbolstring

      Symbol of the asset (e.g: GBP)

      total_supplystring

      Total circulating supply for the asset

      decimalsuint64

      Number of decimal / precision handled by this asset

      min_lp_stakestring

      Min stake required for this asset from liquidity providers

      builtin_assetBuiltinAsset

      A built-in asset

      erc20ERC20

      An Ethereum ERC20 asset

      - - - - - -

      BuiltinAsset

      -

      A Vega internal asset

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      max_faucet_amount_mintstring

      Maximum amount that can be requested by a party through the built-in asset faucet at a time

      - - - - - -

      ERC20

      -

      An ERC20 token based asset, living on the ethereum network

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      contract_addressstring

      The address of the contract for the token, on the ethereum network

      - - - - - - - - - - - - - -
      -

      governance.proto

      Top -
      -

      - - -

      FutureProduct

      -

      Future product configuration

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      maturitystring

      Future product maturity (ISO8601/RFC3339 timestamp)

      settlement_assetstring

      Product settlement asset identifier

      quote_namestring

      Product quote name

      oracle_spec_for_settlement_priceoracles.v1.OracleSpecConfiguration

      The oracle spec describing the oracle data of settlement price

      oracle_spec_for_trading_terminationoracles.v1.OracleSpecConfiguration

      The oracle spec describing the oracle data of trading termination

      oracle_spec_bindingOracleSpecToFutureBinding

      The binding between the oracle spec and the settlement price

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      maturity -
        - -
      • string_not_empty: true
      • - -
      -
      settlement_asset -
        - -
      • string_not_empty: true
      • - -
      -
      quote_name -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      GovernanceData

      -

      Governance data

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      proposalProposal

      The governance proposal

      yesVoterepeated

      All "yes" votes in favour of the proposal above

      noVoterepeated

      All "no" votes against the proposal above

      yes_partyGovernanceData.YesPartyEntryrepeated

      All latest YES votes by party (guaranteed to be unique), -where key (string) is the party ID (public key) and -value (Vote) is the vote cast by the given party

      no_partyGovernanceData.NoPartyEntryrepeated

      All latest NO votes by party (guaranteed to be unique), -where key (string) is the party ID (public key) and -value (Vote) is the vote cast by the given party

      - - - - - -

      GovernanceData.NoPartyEntry

      -

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      keystring

      valueVote

      - - - - - -

      GovernanceData.YesPartyEntry

      -

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      keystring

      valueVote

      - - - - - -

      InstrumentConfiguration

      -

      Instrument configuration

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      namestring

      Instrument name

      codestring

      Instrument code

      futureFutureProduct

      Future

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      name -
        - -
      • string_not_empty: true
      • - -
      -
      code -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      NewAsset

      -

      New asset on Vega

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      changesAssetDetails

      The configuration of the new asset

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      changes -
        - -
      • msg_exists: true
      • - -
      -
      - - - - - -

      NewMarket

      -

      New market on Vega

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      changesNewMarketConfiguration

      The configuration of the new market

      liquidity_commitmentNewMarketCommitment

      The commitment from the party creating the NewMarket proposal

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      changes -
        - -
      • msg_exists: true
      • - -
      -
      - - - - - -

      NewMarketCommitment

      -

      A commitment of liquidity to be made by the party which proposes a market

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      commitment_amountuint64

      Specified as a unitless number that represents the amount of settlement asset of the market

      feestring

      Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers

      sellsLiquidityOrderrepeated

      A set of liquidity sell orders to meet the liquidity provision obligation

      buysLiquidityOrderrepeated

      A set of liquidity buy orders to meet the liquidity provision obligation

      referencestring

      A reference to be associated to all orders created from this commitment

      - - - - - -

      NewMarketConfiguration

      -

      Configuration for a new market on Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      instrumentInstrumentConfiguration

      New market instrument configuration

      decimal_placesuint64

      Decimal places used for the new market

      metadatastringrepeated

      Optional new market meta data, tags

      price_monitoring_parametersPriceMonitoringParameters

      Price monitoring parameters

      liquidity_monitoring_parametersLiquidityMonitoringParameters

      Liquidity monitoring parameters

      simpleSimpleModelParams

      Simple risk model parameters, valid only if MODEL_SIMPLE is selected

      log_normalLogNormalRiskModel

      Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected

      continuousContinuousTrading

      Continuous trading

      discreteDiscreteTrading

      Discrete trading

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      instrument -
        - -
      • msg_exists: true
      • - -
      -
      decimal_places -
        - -
      • int_lt: 150
      • - -
      -
      - - - - - -

      Proposal

      -

      Governance proposal

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idstring

      Unique proposal identifier

      referencestring

      Proposal reference

      party_idstring

      Party identifier of the author (the party submitting the proposal)

      stateProposal.State

      Proposal state - See (Proposal.State)[#vega.Proposal.State] definition

      timestampint64

      Proposal timestamp for date and time (in nanoseconds) when proposal was submitted to the network

      termsProposalTerms

      Proposal configuration and the actual change that is meant to be executed when proposal is enacted

      reasonProposalError

      A reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses

      error_detailsstring

      The detailed error associated to the reason.

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      party_id -
        - -
      • string_not_empty: true
      • - -
      -
      state -
        - -
      -
      terms -
        - -
      • msg_exists: true
      • - -
      -
      - - - - - -

      ProposalTerms

      -

      Terms for a governance proposal on Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      closing_timestampint64

      Timestamp (Unix time in seconds) when voting closes for this proposal, -constrained by `minCloseInSeconds` and `maxCloseInSeconds` network parameters

      enactment_timestampint64

      Timestamp (Unix time in seconds) when proposal gets enacted (if passed), -constrained by `minEnactInSeconds` and `maxEnactInSeconds` network parameters

      validation_timestampint64

      Validation timestamp (Unix time in seconds)

      update_marketUpdateMarket

      Proposal change for modifying an existing market on Vega

      new_marketNewMarket

      Proposal change for creating new market on Vega

      update_network_parameterUpdateNetworkParameter

      Proposal change for updating Vega network parameters

      new_assetNewAsset

      Proposal change for creating new assets on Vega

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      closing_timestamp -
        - -
      • int_gt: 0
      • - -
      -
      enactment_timestamp -
        - -
      • int_gt: 0
      • - -
      -
      - - - - - -

      UpdateMarket

      -

      Update an existing market on Vega

      - - - - - -

      UpdateNetworkParameter

      -

      Update network configuration on Vega

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      changesNetworkParameter

      The network parameter to update

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      changes -
        - -
      • msg_exists: true
      • - -
      -
      - - - - - -

      Vote

      -

      Governance vote

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      party_idstring

      Voter's party identifier

      valueVote.Value

      Actual vote

      proposal_idstring

      Identifier of the proposal being voted on

      timestampint64

      Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network

      total_governance_token_balanceuint64

      Total number of governance token for the party that casted the vote

      total_governance_token_weightstring

      The weight of this vote based on the total of governance token

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      party_id -
        - -
      • string_not_empty: true
      • - -
      -
      value -
        - -
      -
      proposal_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - - - -

      Proposal.State

      -

      Proposal state transition:

      Open ->

      - Passed -> Enacted.

      - Passed -> Failed.

      - Declined

      Rejected

      Proposal can enter Failed state from any other state

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      STATE_UNSPECIFIED0

      Default value, always invalid

      STATE_FAILED1

      Proposal enactment has failed - even though proposal has passed, its execution could not be performed

      STATE_OPEN2

      Proposal is open for voting

      STATE_PASSED3

      Proposal has gained enough support to be executed

      STATE_REJECTED4

      Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)

      STATE_DECLINED5

      Proposal didn't get enough votes (either failing to gain required participation or majority level)

      STATE_ENACTED6

      Proposal enacted

      STATE_WAITING_FOR_NODE_VOTE7

      Waiting for node validation of the proposal

      - -

      ProposalError

      -

      A list of possible errors that can cause a proposal to be in state rejected or failed

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      PROPOSAL_ERROR_UNSPECIFIED0

      Default value

      PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON1

      The specified close time is too early base on network parameters

      PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE2

      The specified close time is too late based on network parameters

      PROPOSAL_ERROR_ENACT_TIME_TOO_SOON3

      The specified enact time is too early based on network parameters

      PROPOSAL_ERROR_ENACT_TIME_TOO_LATE4

      The specified enact time is too late based on network parameters

      PROPOSAL_ERROR_INSUFFICIENT_TOKENS5

      The proposer for this proposal as insufficient tokens

      PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY6

      The instrument quote name and base name were the same

      PROPOSAL_ERROR_NO_PRODUCT7

      The proposal has no product

      PROPOSAL_ERROR_UNSUPPORTED_PRODUCT8

      The specified product is not supported

      PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP9

      Invalid future maturity timestamp (expect RFC3339)

      PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED10

      The product maturity is past

      PROPOSAL_ERROR_NO_TRADING_MODE11

      The proposal has no trading mode

      PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE12

      The proposal has an unsupported trading mode

      PROPOSAL_ERROR_NODE_VALIDATION_FAILED13

      The proposal failed node validation

      PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD14

      A field is missing in a builtin asset source

      PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS15

      The contract address is missing in the ERC20 asset source

      PROPOSAL_ERROR_INVALID_ASSET16

      The asset identifier is invalid or does not exist on the Vega network

      PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS17

      Proposal terms timestamps are not compatible (Validation < Closing < Enactment)

      PROPOSAL_ERROR_NO_RISK_PARAMETERS18

      No risk parameters were specified

      PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY19

      Invalid key in update network parameter proposal

      PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE20

      Invalid valid in update network parameter proposal

      PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED21

      Validation failed for network parameter proposal

      PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL22

      Opening auction duration is less than the network minimum opening auction time

      PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE23

      Opening auction duration is more than the network minimum opening auction time

      PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT24

      Market proposal is missing a liquidity commitment

      PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET25

      Market proposal market could not be instantiate in execution

      PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT26

      Market proposal market contained invalid product definition

      PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT27

      Market proposal is missing commitment amount

      PROPOSAL_ERROR_INVALID_FEE_AMOUNT28

      Market proposal have invalid fee

      PROPOSAL_ERROR_INVALID_SHAPE29

      Market proposal have invalid shape

      PROPOSAL_ERROR_INVALID_RISK_PARAMETER30

      Market proposal invalid risk parameter

      PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED31

      Proposal was declined because vote didn't reach the majority thershold required

      PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED32

      Proposal declined because the participation threshold was not reached

      PROPOSAL_ERROR_INVALID_ASSET_DETAILS33

      Asset proposal invalid asset details

      - -

      Vote.Value

      -

      Vote value

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      VALUE_UNSPECIFIED0

      Default value, always invalid

      VALUE_NO1

      A vote against the proposal

      VALUE_YES2

      A vote in favour of the proposal

      - - - - - - - -
      -

      oracles/v1/data.proto

      Top -
      -

      - - -

      OracleData

      -

      OracleData describes an oracle data that has been broadcast.

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      pub_keysstringrepeated

      pubKeys is the list of authorized public keys that signed the data for this -oracle. All the public keys in the oracle data should be contained in these -public keys.

      dataPropertyrepeated

      data holds all the properties of the oracle data

      matched_spec_idsstringrepeated

      matched_specs_ids lists all the oracle specs that matched this oracle data.

      broadcast_atint64

      broadcast_at is the time at which the data was broadcast for the first -time.

      - - - - - -

      Property

      -

      Property describes one property of an oracle spec with a key with its value.

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      namestring

      name is the name of the property.

      valuestring

      value is the value of the property.

      - - - - - - - - - - - - - -
      -

      commands/v1/commands.proto

      Top -
      -

      - - -

      DelegateSubmission

      -

      A command to submit an instruction to delegate some stake to a node

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      node_idstring

      The ID for the node to delegate to

      amountuint64

      The amount of stake to delegate

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      node_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      LiquidityProvisionSubmission

      -

      A liquidity provision submitted for a given market

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      market_idstring

      Market identifier for the order, required field

      commitment_amountuint64

      Specified as a unitless number that represents the amount of settlement asset of the market

      feestring

      Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers

      sellsvega.LiquidityOrderrepeated

      A set of liquidity sell orders to meet the liquidity provision obligation

      buysvega.LiquidityOrderrepeated

      A set of liquidity buy orders to meet the liquidity provision obligation

      referencestring

      A reference to be added to every order created out of this liquidityProvisionSubmission

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      market_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      OrderAmendment

      -

      An order amendment is a request to amend or update an existing order on Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      order_idstring

      Order identifier, this is required to find the order and will not be updated, required field

      market_idstring

      Market identifier, this is required to find the order and will not be updated

      pricevega.Price

      Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)

      size_deltaint64

      Amend the size for the order by the delta specified: -- To reduce the size from the current value set a negative integer value -- To increase the size from the current value, set a positive integer value -- To leave the size unchanged set a value of zero

      expires_atvega.Timestamp

      Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      time_in_forcevega.Order.TimeInForce

      Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged -- See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`

      pegged_offsetgoogle.protobuf.Int64Value

      Amend the pegged order offset for the order

      pegged_referencevega.PeggedReference

      Amend the pegged order reference for the order -- See [`PeggedReference`](#vega.PeggedReference)

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      order_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      OrderCancellation

      -

      An order cancellation is a request to cancel an existing order on Vega

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      order_idstring

      Unique identifier for the order (set by the system after consensus), required field

      market_idstring

      Market identifier for the order, required field

      - - - - - -

      OrderSubmission

      -

      An order submission is a request to submit or create a new order on Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      market_idstring

      Market identifier for the order, required field

      priceuint64

      Price for the order, the price is an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places, -, required field for limit orders, however it is not required for market orders

      sizeuint64

      Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative

      sidevega.Side

      Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)

      time_in_forcevega.Order.TimeInForce

      Time in force indicates how long an order will remain active before it is executed or expires, required field -- See [`Order.TimeInForce`](#vega.Order.TimeInForce)

      expires_atint64

      Timestamp for when the order will expire, in nanoseconds since the epoch, -required field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT` -- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      typevega.Order.Type

      Type for the order, required field - See [`Order.Type`](#vega.Order.Type)

      referencestring

      Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently -set internally by the node to return a unique reference identifier for the order submission

      pegged_ordervega.PeggedOrder

      Used to specify the details for a pegged order -- See [`PeggedOrder`](#vega.PeggedOrder)

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      market_id -
        - -
      • string_not_empty: true
      • - -
      -
      size -
        - -
      • int_gt: 0
      • - -
      -
      - - - - - -

      ProposalSubmission

      -

      A command to submit a new proposal for the

      vega network governance

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      referencestring

      Proposal reference

      termsvega.ProposalTerms

      Proposal configuration and the actual change that is meant to be executed when proposal is enacted

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      terms -
        - -
      • msg_exists: true
      • - -
      -
      - - - - - -

      UndelegateSubmission

      -

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      node_idstring

      amountuint64

      optional, if not specified = ALL

      methodUndelegateSubmission.Method

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      node_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      VoteSubmission

      -

      A command to submit a new vote for a governance

      proposal.

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      proposal_idstring

      The ID of the proposal to vote for.

      valuevega.Vote.Value

      The actual value of the vote

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - -
      FieldValidations
      proposal_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      WithdrawSubmission

      -

      Represents the submission request to withdraw funds for a party on Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      amountuint64

      The amount to be withdrawn

      assetstring

      The asset we want to withdraw

      extvega.WithdrawExt

      Foreign chain specifics

      - - - - - - - -

      UndelegateSubmission.Method

      -

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      METHOD_UNSPECIFIED0

      METHOD_NOW1

      METHOD_AT_END_OF_EPOCH2

      METHOD_IN_ANGER3

      - - - - - - - -
      -

      chain_events.proto

      Top -
      -

      - - -

      AddValidator

      -

      A message to notify when a new validator is being added to the Vega network

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idIdentifier

      The identifier of the validator

      - - - - - -

      BTCDeposit

      -

      A Bitcoin deposit into Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The Vega network internal identifier of the asset

      source_btc_addressstring

      The BTC wallet initiating the deposit

      target_party_idstring

      The Vega party identifier (pub-key) which is the target of the deposit

      - - - - - -

      BTCEvent

      -

      An event from the Bitcoin network

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      indexuint64

      The index of the transaction

      blockuint64

      The block in which the transaction happened

      depositBTCDeposit

      Deposit BTC asset

      withdrawalBTCWithdrawal

      Withdraw BTC asset

      - - - - - -

      BTCWithdrawal

      -

      A Bitcoin withdrawal from Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The vega network internal identifier of the asset

      source_party_idstring

      The party identifier (pub-key) initiating the withdrawal

      target_btc_addressstring

      Target Bitcoin wallet address

      reference_noncestring

      The nonce reference of the transaction

      - - - - - -

      BitcoinAddress

      -

      Used as a wrapper for a Bitcoin address (wallet)

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      addressstring

      A Bitcoin address

      - - - - - -

      BuiltinAssetDeposit

      -

      A deposit for a Vega built-in asset

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      A Vega network internal asset identifier

      party_idstring

      A Vega party identifier (pub-key)

      amountuint64

      The amount to be deposited

      - - - - - -

      BuiltinAssetEvent

      -

      An event related to a Vega built-in asset

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      depositBuiltinAssetDeposit

      Built-in asset deposit

      withdrawalBuiltinAssetWithdrawal

      Built-in asset withdrawal

      - - - - - -

      BuiltinAssetWithdrawal

      -

      A withdrawal for a Vega built-in asset

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      A Vega network internal asset identifier

      party_idstring

      A Vega network party identifier (pub-key)

      amountuint64

      The amount to be withdrawn

      - - - - - -

      ERC20AssetDelist

      -

      An asset deny-listing for an ERC20 token

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The Vega network internal identifier of the asset

      - - - - - -

      ERC20AssetList

      -

      An asset allow-listing for an ERC20 token

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The Vega network internal identifier of the asset

      - - - - - -

      ERC20Deposit

      -

      An asset deposit for an ERC20 token

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The vega network internal identifier of the asset

      source_ethereum_addressstring

      The Ethereum wallet that initiated the deposit

      target_party_idstring

      The Vega party identifier (pub-key) which is the target of the deposit

      amountstring

      The amount to be deposited

      - - - - - -

      ERC20Event

      -

      An event related to an ERC20 token

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      indexuint64

      Index of the transaction

      blockuint64

      The block in which the transaction was added

      asset_listERC20AssetList

      List an ERC20 asset

      asset_delistERC20AssetDelist

      De-list an ERC20 asset

      depositERC20Deposit

      Deposit ERC20 asset

      withdrawalERC20Withdrawal

      Withdraw ERC20 asset

      - - - - - -

      ERC20Withdrawal

      -

      An asset withdrawal for an ERC20 token

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      vega_asset_idstring

      The Vega network internal identifier of the asset

      target_ethereum_addressstring

      The target Ethereum wallet address

      reference_noncestring

      The reference nonce used for the transaction

      - - - - - -

      EthereumAddress

      -

      Used as a wrapper for an Ethereum address (wallet/contract)

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      addressstring

      An Ethereum address

      - - - - - -

      Identifier

      -

      Used as a wrapper type on any possible network address supported by Vega

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      ethereum_addressEthereumAddress

      Ethereum network

      bitcoin_addressBitcoinAddress

      Bitcoin network

      - - - - - -

      RemoveValidator

      -

      A message to notify when a validator is being removed from the Vega network

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idIdentifier

      The identifier of the validator

      - - - - - -

      ValidatorEvent

      -

      An event related to validator management with foreign networks

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      source_idstring

      The source identifier of the event

      addAddValidator

      Add a new validator

      rmRemoveValidator

      Remove an existing validator

      - - - - - - - - - - - - - -
      -

      commands/v1/validator_commands.proto

      Top -
      -

      - - -

      ChainEvent

      -

      An event forwarded to the Vega network to provide information on events happening on other networks

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      tx_idstring

      The identifier of the transaction in which the events happened, usually a hash

      nonceuint64

      Arbitrary one-time integer used to prevent replay attacks

      builtinvega.BuiltinAssetEvent

      Built-in asset event

      erc20vega.ERC20Event

      Ethereum ERC20 event

      btcvega.BTCEvent

      Bitcoin BTC event

      validatorvega.ValidatorEvent

      Validator event

      - - - - - -

      NodeRegistration

      -

      Used to Register a node as a validator during network start-up

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      pub_keybytes

      Public key, required field

      chain_pub_keybytes

      Public key for the blockchain, required field

      info_urlstring

      URL with more info on the node

      countrystring

      Country code (ISO 3166-1 alpha-2) for the location of the node

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      pub_key -
        - -
      • string_not_empty: true
      • - -
      -
      chain_pub_key -
        - -
      • string_not_empty: true
      • - -
      -
      info_url -
        - -
      • string_not_empty: true
      • - -
      -
      country -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - -

      NodeSignature

      -

      Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idstring

      The identifier of the resource being signed

      sigbytes

      The signature

      kindNodeSignatureKind

      The kind of resource being signed

      - - - - - -

      NodeVote

      -

      Used when a node votes for validating a given resource exists or is valid,

      for example, an ERC20 deposit is valid and exists on ethereum

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      pub_keybytes

      Public key, required field

      referencestring

      Reference, required field

      - - - - -

      Validated Fields

      - - - - - - - - - - - - - - - - - - - - -
      FieldValidations
      pub_key -
        - -
      • string_not_empty: true
      • - -
      -
      reference -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - - - - -

      NodeSignatureKind

      -

      The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc

      - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      NODE_SIGNATURE_KIND_UNSPECIFIED0

      Represents an unspecified or missing value from the input

      NODE_SIGNATURE_KIND_ASSET_NEW1

      Represents a signature for a new asset allow-listing

      NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL2

      Represents a signature for an asset withdrawal

      - - - - - - - -
      -

      events/v1/events.proto

      Top -
      -

      - - -

      AuctionEvent

      -

      An auction event indicating a change in auction state, for example starting or ending an auction

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      market_idstring

      Market identifier for the event

      opening_auctionbool

      True if the event indicates an auction opening and False otherwise

      leavebool

      True if the event indicates leaving auction mode and False otherwise

      startint64

      Timestamp containing the start time for an auction

      endint64

      Timestamp containing the end time for an auction

      triggervega.AuctionTrigger

      the reason this market is/was in auction

      extension_triggervega.AuctionTrigger

      If an auction was ongoing, but was extended for whatever reason, this field will -be set to the trigger type indicating which component extended the auction

      - - - - - -

      BusEvent

      -

      A bus event is a container for event bus events emitted by Vega

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      idstring

      A unique event identifier for the message

      blockstring

      The batch (or block) of transactions that the events relate to

      typeBusEventType

      The type of bus event (one of the list below)

      time_updateTimeUpdate

      Time update events - See [TimeUpdate](#vega.TimeUpdate)

      transfer_responsesTransferResponses

      Transfer responses update events - See [TransferResponses](#vega.TransferResponses)

      position_resolutionPositionResolution

      Position resolution events - See [PositionResolution](#vega.PositionResolution)

      ordervega.Order

      Order events

      accountvega.Account

      Account events

      partyvega.Party

      Party events

      tradevega.Trade

      Trade events

      margin_levelsvega.MarginLevels

      Margin level update events

      proposalvega.Proposal

      Proposal events (for governance)

      votevega.Vote

      Vote events (for governance)

      market_datavega.MarketData

      Market data events

      node_signaturevega.commands.v1.NodeSignature

      Node signature events

      loss_socializationLossSocialization

      Loss socialization events - See [LossSocialization](#vega.LossSocialization)

      settle_positionSettlePosition

      Position settlement events - See [SettlePosition](#vega.SettlePosition)

      settle_distressedSettleDistressed

      Position distressed events - See [SettleDistressed](#vega.SettleDistressed)

      market_createdvega.Market

      Market created events

      assetvega.Asset

      Asset events

      market_tickMarketTick

      Market tick events - See [MarketTick](#vega.MarketTick)

      withdrawalvega.Withdrawal

      Withdrawal events

      depositvega.Deposit

      Deposit events

      auctionAuctionEvent

      Auction events - See [AuctionEvent](#vega.AuctionEvent)

      risk_factorvega.RiskFactor

      Risk factor events

      network_parametervega.NetworkParameter

      Network parameter events

      liquidity_provisionvega.LiquidityProvision

      LiquidityProvision events

      market_updatedvega.Market

      Market created events

      oracle_specoracles.v1.OracleSpec

      OracleSpec events

      oracle_dataoracles.v1.OracleData

      OracleData events

      delegation_balanceDelegationBalanceEvent

      Delegation balance events

      pending_delegation_balancePendingDelegationBalanceEvent

      Pending delegation balance events

      epoch_eventEpochEvent

      Epoch update events - See [Epoch](#vega.Epoch)

      validator_updateValidatorUpdate

      Validator update events

      staking_eventStakingEvent

      Staking event

      marketMarketEvent

      Market tick events - See [MarketEvent](#vega.MarketEvent)

      tx_err_eventTxErrorEvent

      Transaction error events, not included in the ALL event type

      - - - - - -

      DelegationBalanceEvent

      -

      DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      partystring

      node_idstring

      amountuint64

      - - - - - -

      EpochEvent

      -

      Epoch details

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      sequint64

      Sequence number that increases by one each epoch

      start_timeint64

      What time did this epoch start

      expire_timeint64

      What time should this epoch end

      end_timeint64

      What time did it actually end

      - - - - - -

      LossSocialization

      -

      A loss socialization event contains details on the amount of wins unable to be distributed

      - - - - - - - - - - - - - - - - - - - - - + - - - - - - + +
      FieldTypeLabelDescription
      market_idstring

      Market identifier for the event

      party_idstring

      Party identifier (public key) for the event

      amountint64

      Amount distributed

      - - +

      Side

      +

      A side relates to the direction of an order, to Buy, or Sell

      + + + + + + + + + + + + + + + + + + + + + +
      NameNumberDescription
      SIDE_UNSPECIFIED0

      Default value, always invalid

      SIDE_BUY1

      Buy order

      SIDE_SELL2

      Sell order

      -

      MarketEvent

      -

      MarketEvent - the common denominator for all market events

      interface has a method to return a string for logging

      +

      Trade.Type

      +

      Type values for a trade

      + + + + + + + + + + -
      NameNumberDescription
      TYPE_UNSPECIFIED0

      Default value, always invalid

      - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      TYPE_DEFAULT1

      Normal trading between two parties

      market_idstring

      Market identifier for the event

      TYPE_NETWORK_CLOSE_OUT_GOOD2

      Trading initiated by the network with another party on the book, +which helps to zero-out the positions of one or more distressed parties

      payloadstring

      Payload is a unique information string

      TYPE_NETWORK_CLOSE_OUT_BAD3

      Trading initiated by the network with another party off the book, +with a distressed party in order to zero-out the position of the party

      + + +

      TransferType

      +

      Transfers can occur between parties on Vega, these are the types that indicate why a transfer took place

      + + + + + + + + + + + + + + + + + + + + -

      MarketTick

      -

      A market ticket event contains the time value for when a particular market was last processed on Vega

      + + + + + + + + + + -
      NameNumberDescription
      TRANSFER_TYPE_UNSPECIFIED0

      Default value, always invalid

      TRANSFER_TYPE_LOSS1

      Loss

      TRANSFER_TYPE_WIN2

      Win

      TRANSFER_TYPE_CLOSE3

      Close

      TRANSFER_TYPE_MTM_LOSS4

      Mark to market loss

      - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      TRANSFER_TYPE_MTM_WIN5

      Mark to market win

      idstring

      Market identifier for the event

      TRANSFER_TYPE_MARGIN_LOW6

      Margin too low

      timeint64

      Timestamp containing latest update from Vega blockchain aka Vega-time

      TRANSFER_TYPE_MARGIN_HIGH7

      Margin too high

      + + TRANSFER_TYPE_MARGIN_CONFISCATED + 8 +

      Margin was confiscated

      + + + TRANSFER_TYPE_MAKER_FEE_PAY + 9 +

      Pay maker fee

      + + + TRANSFER_TYPE_MAKER_FEE_RECEIVE + 10 +

      Receive maker fee

      + + + TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY + 11 +

      Pay infrastructure fee

      + + + TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE + 12 +

      Receive infrastructure fee

      + -

      PendingDelegationBalanceEvent

      -

      PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch

      + + TRANSFER_TYPE_LIQUIDITY_FEE_PAY + 13 +

      Pay liquidity fee

      + + + TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE + 14 +

      Receive liquidity fee

      + - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      TRANSFER_TYPE_BOND_LOW15

      Bond too low

      partystring

      TRANSFER_TYPE_BOND_HIGH16

      Bond too high

      node_idstring

      TRANSFER_TYPE_WITHDRAW_LOCK17

      Lock amount for withdraw

      delegation_amountuint64

      TRANSFER_TYPE_WITHDRAW18

      Actual withdraw from system

      undelegation_amountuint64

      TRANSFER_TYPE_DEPOSIT19

      Deposit funds

      + + TRANSFER_TYPE_BOND_SLASHING + 20 +

      Bond slashing

      + + + TRANSFER_TYPE_STAKE_REWARD + 21 +

      Stake reward

      + + + +

      Withdrawal.Status

      +

      The status of the withdrawal

      + + + + + + + + + + -

      PositionResolution

      -

      A position resolution event contains information on distressed trades

      + + + + + + + + + + -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value, always invalid

      STATUS_OPEN1

      The withdrawal is open and being processed by the network

      STATUS_CANCELLED2

      The withdrawal have been cancelled

      - - - - + + + + + - - - - - - + +
      FieldTypeLabelDescription
      STATUS_FINALIZED3

      The withdrawal went through and is fully finalised, the funds are removed from the +Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network

      market_idstring

      Market identifier for the event

      - - distressed - int64 - -

      Number of distressed traders

      - - - closed - int64 - -

      Number of close outs

      - - - mark_price - uint64 - -

      Mark price, as an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      - - - +
      +

      governance.proto

      Top +
      +

      -

      SettleDistressed

      -

      A settle distressed event contains information on distressed trading parties who are closed out

      +

      FutureProduct

      +

      Future product configuration

      @@ -10993,79 +7288,45 @@

      SettleDistressed

      - + - + - + - - - - - - - - - - - - - - - + - -
      market_idmaturity string

      Market identifier for the event

      Future product maturity (ISO8601/RFC3339 timestamp)

      party_idsettlement_asset string

      Party identifier (public key) for the event

      marginuint64

      Margin value as an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      priceuint64

      Price as an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      Product settlement asset identifier

      - - - - - -

      SettlePosition

      -

      A settle position event contains position settlement information for a party

      - - - - - - - - - + - + - - + + - + - - + + - + - - - - + + + + @@ -11074,61 +7335,58 @@

      SettlePosition

      - -

      StakingEvent

      -

      StakingEvent - an event notifying of stake being deposited or removed for a given party

      These events are emitted for every Staking deposit or removed accepted by the network

      - - -
      FieldTypeLabelDescription
      market_idquote_name string

      Market identifier for the event

      Product quote name

      party_idstringoracle_spec_for_settlement_priceoracles.v1.OracleSpecConfiguration

      Party identifier (public key) for the event

      The oracle spec describing the oracle data of settlement price

      priceuint64oracle_spec_for_trading_terminationoracles.v1.OracleSpecConfiguration

      Price of settlement as an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      The oracle spec describing the oracle data of trading termination

      trade_settlementsTradeSettlementrepeated

      A collection of 1 or more trade settlements

      oracle_spec_bindingOracleSpecToFutureBinding

      The binding between the oracle spec and the settlement price

      - - - - - +

      Validated Fields

      +
      FieldTypeLabelDescription
      + - - - - + + + + - - - - - + + - - - - +
    • string_not_empty: true
    • + + + - - - - + + - - - - + + - -
      idstring

      The internal ID for this staking event

      FieldValidations
      typeStakingEvent.Type

      The type of event

      maturity +
        -
      tsint64

      The timestamps at which the event was emitted by ethereum

      partystring

      The party to whom the event is directed at.

      settlement_asset +
        + +
      • string_not_empty: true
      • + +
      +
      amountstring

      The amount of stake deposited or removed

      quote_name +
        + +
      • string_not_empty: true
      • + +
      +
      + + -

      TimeUpdate

      -

      A time update event contains the latest time update from Vega blockchain

      +

      GovernanceData

      +

      Governance data

      @@ -11138,42 +7396,42 @@

      TimeUpdate

      - - + + - + - -
      timestampint64proposalProposal

      Timestamp containing latest update from Vega blockchain aka Vega-time

      The governance proposal

      - - - - - -

      TradeSettlement

      -

      A trade settlement is part of the settle position event

      - - - - - - - + + + + + + - - - - + + + + - - - - + + + + + + + + + + + @@ -11183,8 +7441,8 @@

      TradeSettlement

      -

      TransferResponses

      -

      A transfer responses event contains a collection of transfer information

      +

      GovernanceData.NoPartyEntry

      +

      FieldTypeLabelDescription
      yesVoterepeated

      All "yes" votes in favour of the proposal above

      sizeint64

      Size of trade settlement

      noVoterepeated

      All "no" votes against the proposal above

      priceuint64

      Price of settlement as an integer, for example `123456` is a correctly -formatted price of `1.23456` assuming market configured to 5 decimal places

      yes_partyGovernanceData.YesPartyEntryrepeated

      All latest YES votes by party (guaranteed to be unique), +where key (string) is the party ID (public key) and +value (Vote) is the vote cast by the given party

      no_partyGovernanceData.NoPartyEntryrepeated

      All latest NO votes by party (guaranteed to be unique), +where key (string) is the party ID (public key) and +value (Vote) is the vote cast by the given party

      @@ -11194,10 +7452,17 @@

      TransferResponses

      - - - - + + + + + + + + + + + @@ -11207,7 +7472,7 @@

      TransferResponses

      -

      TxErrorEvent

      +

      GovernanceData.YesPartyEntry

      @@ -11218,64 +7483,15 @@

      TxErrorEvent

      - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -11287,8 +7503,8 @@

      TxErrorEvent

      -

      ValidatorUpdate

      -

      A validator update event contains information about validator node

      +

      InstrumentConfiguration

      +

      Instrument configuration

      responsesvega.TransferResponserepeated

      One or more entries containing internal transfer information

      keystring

      valueVote

      party_idstring

      Unique party identifier for the related party

      err_msgkey string

      An error message describing what went wrong

      order_submissionvega.commands.v1.OrderSubmission

      order_amendmentvega.commands.v1.OrderAmendment

      order_cancellationvega.commands.v1.OrderCancellation

      proposalvega.commands.v1.ProposalSubmission

      vote_submissionvega.commands.v1.VoteSubmission

      liquidity_provision_submissionvega.commands.v1.LiquidityProvisionSubmission

      withdraw_submissionvega.commands.v1.WithdrawSubmissionvalueVote

      @@ -11298,31 +7514,24 @@

      ValidatorUpdate

      - - - - - - - - + - + - + - + - - + + - + @@ -11331,279 +7540,98 @@

      ValidatorUpdate

      +

      Validated Fields

      +
      pub_keystring

      Public key of validator node

      tm_pub_keyname string

      Public key of Tendermint

      Instrument name

      info_urlcode string

      URL with more info on the node

      Instrument code

      countrystringfutureFutureProduct

      Country code (ISO 3166-1 alpha-2) for the location of the node

      Future

      + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - +

      NewAsset

      +

      New asset on Vega

      - - - - - - - - - - +
      FieldValidations
      name +
        +
      • string_not_empty: true
      • -

        BusEventType

        -

        An (event) bus event type is used to specify a type of event

        It has 2 styles of event:

        Single values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item

        Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items

        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - + + + - - - - +
      • string_not_empty: true
      • - - - - - + + + - - - - - + +
        NameNumberDescription
        BUS_EVENT_TYPE_UNSPECIFIED0

        Default value, always invalid

        BUS_EVENT_TYPE_ALL1

        Events of ALL event types, used when filtering stream from event bus

        BUS_EVENT_TYPE_TIME_UPDATE2

        Event for blockchain time updates

        BUS_EVENT_TYPE_TRANSFER_RESPONSES3

        Event for when a transfer happens internally, contains the transfer information

        BUS_EVENT_TYPE_POSITION_RESOLUTION4

        Event indicating position resolution has occurred

        BUS_EVENT_TYPE_ORDER5

        Event for order updates, both new and existing orders

        BUS_EVENT_TYPE_ACCOUNT6

        Event for account updates

        BUS_EVENT_TYPE_PARTY7

        Event for party updates

        BUS_EVENT_TYPE_TRADE8

        Event indicating a new trade has occurred

        BUS_EVENT_TYPE_MARGIN_LEVELS9

        Event indicating margin levels have changed for a party

        BUS_EVENT_TYPE_PROPOSAL10

        Event for proposal updates (for governance)

        BUS_EVENT_TYPE_VOTE11

        Event indicating a new vote has occurred (for governance)

        BUS_EVENT_TYPE_MARKET_DATA12

        Event for market data updates

        BUS_EVENT_TYPE_NODE_SIGNATURE13

        Event for a new signature for a Vega node

        BUS_EVENT_TYPE_LOSS_SOCIALIZATION14

        Event indicating loss socialisation occurred for a party

        BUS_EVENT_TYPE_SETTLE_POSITION15

        Event for when a position is being settled

        BUS_EVENT_TYPE_SETTLE_DISTRESSED16

        Event for when a position is distressed

        BUS_EVENT_TYPE_MARKET_CREATED17

        Event indicating a new market was created

        BUS_EVENT_TYPE_ASSET18

        Event for when an asset is added to Vega

        BUS_EVENT_TYPE_MARKET_TICK19

        Event indicating a market tick event

        BUS_EVENT_TYPE_WITHDRAWAL20

        Event for when a withdrawal occurs

        BUS_EVENT_TYPE_DEPOSIT21

        Event for when a deposit occurs

        BUS_EVENT_TYPE_AUCTION22

        Event indicating a change in auction state, for example starting or ending an auction

        BUS_EVENT_TYPE_RISK_FACTOR23

        Event indicating a risk factor has been updated

        BUS_EVENT_TYPE_NETWORK_PARAMETER24

        Event indicating a network parameter has been added or updated

        BUS_EVENT_TYPE_LIQUIDITY_PROVISION25

        Event indicating a liquidity provision has been created or updated

        code +
          -
        BUS_EVENT_TYPE_MARKET_UPDATED26

        Event indicating a new market was created

        BUS_EVENT_TYPE_ORACLE_SPEC27

        Event indicating an oracle spec has been created or updated

        BUS_EVENT_TYPE_ORACLE_DATA28

        Event indicating that an oracle data has been broadcast

        -
      BUS_EVENT_TYPE_DELEGATION_BALANCE29

      Event indicating that an delegation balance of a party to a node for current epoch has changed

      BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE30

      Event indicating that an delegation balance of a party to a node for next epoch has changed

      BUS_EVENT_TYPE_EPOCH_UPDATE31

      Event indicating the start or end of an epoch

      BUS_EVENT_TYPE_VALIDATOR_UPDATE32

      Event indicating that validator node has been updated

      BUS_EVENT_TYPE_STAKING_EVENT33

      Event indicating a new staking event have been processed by the network

      BUS_EVENT_TYPE_MARKET101

      Event indicating a market related event, for example when a market opens

      BUS_EVENT_TYPE_TX_ERROR201

      Event used to report failed transactions back to a user, this is excluded from the ALL type

      + + + + - -
      FieldTypeLabelDescription
      + + changes + AssetDetails + +

      The configuration of the new asset

      + -

      StakingEvent.Type

      -

      - - - - - + +
      NameNumberDescription
      - - TYPE_UNSPECIFIED - 0 -

      Default value

      - - - TYPE_DEPOSIT - 1 -

      Indicate of a stake deposit instruction

      - - - TYPE_REMOVE - 2 -

      Indicate of a stake remove instruction

      - - - +

      Validated Fields

      + + + + + + + + + + + + + +
      FieldValidations
      changes +
        +
      • msg_exists: true
      • +
      +
      -
      -

      commands/v1/oracles.proto

      Top -
      -

      -

      OracleDataSubmission

      -

      Command to submit new Oracle data from third party providers

      +

      NewMarket

      +

      New market on Vega

      @@ -11613,17 +7641,17 @@

      OracleDataSubmission

      - - + + - + - - + + - + @@ -11632,46 +7660,88 @@

      OracleDataSubmission

      +

      Validated Fields

      +
      sourceOracleDataSubmission.OracleSourcechangesNewMarketConfiguration

      The source from which the data is coming from

      The configuration of the new market

      payloadbytesliquidity_commitmentNewMarketCommitment

      The data provided by the third party provider

      The commitment from the party creating the NewMarket proposal

      + + + + + + + + + + - - - - - -
      FieldValidations
      changes +
        +
      • msg_exists: true
      • -

        OracleDataSubmission.OracleSource

        -

        The supported Oracle sources

        - - - - - + + + - - - - - + +
        NameNumberDescription
        ORACLE_SOURCE_UNSPECIFIED0

        The default value

        -
      ORACLE_SOURCE_OPEN_ORACLE1

      Support for Open Oracle standard

      +

      NewMarketCommitment

      +

      A commitment of liquidity to be made by the party which proposes a market

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      commitment_amountuint64

      Specified as a unitless number that represents the amount of settlement asset of the market

      feestring

      Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers

      sellsLiquidityOrderrepeated

      A set of liquidity sell orders to meet the liquidity provision obligation

      buysLiquidityOrderrepeated

      A set of liquidity buy orders to meet the liquidity provision obligation

      referencestring

      A reference to be associated to all orders created from this commitment

      -
      -

      commands/v1/transaction.proto

      Top -
      -

      -

      InputData

      -

      + +

      NewMarketConfiguration

      +

      Configuration for a new market on Vega

      @@ -11681,129 +7751,115 @@

      InputData

      - - + + - + - + - + - - - - + + + + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - + +
      nonceuint64instrumentInstrumentConfiguration

      A random number used to provided uniqueness and prevents against replay -attack.

      New market instrument configuration

      block_heightdecimal_places uint64

      The block height associated to the transaction. -This should always be current height of the node at the time of sending the -Tx. BlockHeight is used as a mechanism for replay protection.

      Decimal places used for the new market

      order_submissionOrderSubmission

      User commands

      metadatastringrepeated

      Optional new market meta data, tags

      order_cancellationOrderCancellationprice_monitoring_parametersPriceMonitoringParameters

      Price monitoring parameters

      order_amendmentOrderAmendmentliquidity_monitoring_parametersLiquidityMonitoringParameters

      Liquidity monitoring parameters

      withdraw_submissionWithdrawSubmissionsimpleSimpleModelParams

      Simple risk model parameters, valid only if MODEL_SIMPLE is selected

      proposal_submissionProposalSubmissionlog_normalLogNormalRiskModel

      Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected

      vote_submissionVoteSubmissioncontinuousContinuousTrading

      Continuous trading

      liquidity_provision_submissionLiquidityProvisionSubmissiondiscreteDiscreteTrading

      Discrete trading

      delegate_submissionDelegateSubmission

      - - undelegate_submission - UndelegateSubmission - -

      - - - node_registration - NodeRegistration - -

      Validator commands

      - - - node_vote - NodeVote - -

      - +

      Validated Fields

      + + - - - - + + + + - - - - + + - - - - + + - -
      node_signatureNodeSignature

      FieldValidations
      chain_eventChainEvent

      instrument +
        + +
      • msg_exists: true
      • + +
      +
      oracle_data_submissionOracleDataSubmission

      Oracles

      decimal_places +
        + +
      • int_lt: 150
      • + +
      +
      + + -

      Signature

      -

      A signature to be authenticate a transaction and to be verified by the vega

      network.

      +

      Proposal

      +

      Governance proposal

      @@ -11813,77 +7869,59 @@

      Signature

      - + - + - + - + - - + + - + - -
      valueid string

      The bytes of the signature (hex-encoded).

      Unique proposal identifier

      algoreference string

      The algorithm used to create the signature.

      Proposal reference

      versionuint32party_idstring

      The version of the signature used to create the signature.

      Party identifier of the author (the party submitting the proposal)

      - - - - - -

      Transaction

      -

      Represents a transaction to be sent to Vega.

      - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + @@ -11892,57 +7930,113 @@

      Transaction

      +

      Validated Fields

      +
      FieldTypeLabelDescription
      input_databytesstateProposal.State

      One of the set of Vega commands (proto marshalled).

      Proposal state - See (Proposal.State)[#vega.Proposal.State] definition

      signatureSignaturetimestampint64

      The signature of the inputData.

      Proposal timestamp for date and time (in nanoseconds) when proposal was submitted to the network

      addressstringtermsProposalTerms

      The address of the sender (hex-encoded). Not supported yet.

      Proposal configuration and the actual change that is meant to be executed when proposal is enacted

      pub_keystringreasonProposalError

      The public key of the sender (hex-encoded).

      A reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses

      versionuint32error_detailsstring

      A version of the transaction, to be used in the future in case we want to -implement changes to the Transaction format.

      The detailed error associated to the reason.

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldValidations
      party_id +
        + +
      • string_not_empty: true
      • + +
      +
      state +
        + +
      +
      terms +
        +
      • msg_exists: true
      • +
      +
      +

      ProposalTerms

      +

      Terms for a governance proposal on Vega

      -
      -

      api/trading.proto

      Top -
      -

      + + + + + -

      AccountsSubscribeRequest

      -

      Request to subscribe to a stream of (Accounts)[#vega.Account]

      + + + + + + + + + + + + -
      FieldTypeLabelDescription
      closing_timestampint64

      Timestamp (Unix time in seconds) when voting closes for this proposal, +constrained by `minCloseInSeconds` and `maxCloseInSeconds` network parameters

      enactment_timestampint64

      Timestamp (Unix time in seconds) when proposal gets enacted (if passed), +constrained by `minEnactInSeconds` and `maxEnactInSeconds` network parameters

      - - - - + + + + + + - - + + - + - - + + - + - - + + - + - - + + - + @@ -11951,33 +8045,54 @@

      AccountsSubscribeRequest

      +

      Validated Fields

      +
      FieldTypeLabelDescription
      validation_timestampint64

      Validation timestamp (Unix time in seconds)

      market_idstringupdate_marketUpdateMarket

      Market identifier

      Proposal change for modifying an existing market on Vega

      party_idstringnew_marketNewMarket

      Party identifier

      Proposal change for creating new market on Vega

      assetstringupdate_network_parameterUpdateNetworkParameter

      Asset identifier

      Proposal change for updating Vega network parameters

      typevega.AccountTypenew_assetNewAsset

      Account type to subscribe to, required field

      Proposal change for creating new assets on Vega

      + + + + + + + -

      AccountsSubscribeResponse

      -

      + + + +
      FieldValidations
      closing_timestamp +
        +
      • int_gt: 0
      • - - - - - + + + - - - - + + - -
        FieldTypeLabelDescription
        accountvega.Account

        enactment_timestamp +
          + +
        • int_gt: 0
        • + +
        +
        +
      -

      AssetByIDRequest

      -

      Request for an asset given an asset identifier

      +

      UpdateMarket

      +

      Update an existing market on Vega

      + + + + + +

      UpdateNetworkParameter

      +

      Update network configuration on Vega

      @@ -11987,10 +8102,10 @@

      AssetByIDRequest

      - - + + - + @@ -12010,11 +8125,11 @@

      Validated Fields

      - + @@ -12027,8 +8142,8 @@

      Validated Fields

      -

      AssetByIDResponse

      -

      Response for an asset given an asset identifier

      +

      Vote

      +

      Governance vote

      idstringchangesNetworkParameter

      Asset identifier, required field

      The network parameter to update

      idchanges
        -
      • string_not_empty: true
      • +
      • msg_exists: true
      @@ -12038,80 +8153,45 @@

      AssetByIDResponse

      - - + + - + - -
      assetvega.Assetparty_idstring

      An asset record, if found

      Voter's party identifier

      - - - - - -

      AssetsRequest

      -

      Request for a list of all assets enabled on Vega

      - - - - - -

      AssetsResponse

      -

      Response for a list of all assets enabled on Vega

      - - - - - - - - - - - - + + + + - -
      FieldTypeLabelDescription
      assetsvega.Assetrepeated

      A list of 0 or more assets

      valueVote.Value

      Actual vote

      - - - - - -

      CandlesRequest

      -

      Request for a list of candles for a market at an interval

      - - - - - - - - - + - + - + - + + + + + + + + - - + + - + @@ -12130,143 +8210,363 @@

      Validated Fields

      - - - + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      market_idproposal_id string

      Market identifier, required field.

      Identifier of the proposal being voted on

      since_timestamptimestamp int64

      Timestamp to retrieve candles since, in nanoseconds since the epoch, -required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network

      total_governance_token_balanceuint64

      Total number of governance token for the party that casted the vote

      intervalvega.Intervaltotal_governance_token_weightstring

      Time interval for the candles, required field

      The weight of this vote based on the total of governance token

      market_id -
        +
      party_id +
        + +
      • string_not_empty: true
      • + +
      +
      value +
        + +
      +
      proposal_id +
        + +
      • string_not_empty: true
      • + +
      +
      + + + + + + + +

      Proposal.State

      +

      Proposal state transition:

      Open ->

      - Passed -> Enacted.

      - Passed -> Failed.

      - Declined

      Rejected

      Proposal can enter Failed state from any other state

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      NameNumberDescription
      STATE_UNSPECIFIED0

      Default value, always invalid

      STATE_FAILED1

      Proposal enactment has failed - even though proposal has passed, its execution could not be performed

      STATE_OPEN2

      Proposal is open for voting

      STATE_PASSED3

      Proposal has gained enough support to be executed

      STATE_REJECTED4

      Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)

      STATE_DECLINED5

      Proposal didn't get enough votes (either failing to gain required participation or majority level)

      STATE_ENACTED6

      Proposal enacted

      STATE_WAITING_FOR_NODE_VOTE7

      Waiting for node validation of the proposal

      + +

      ProposalError

      +

      A list of possible errors that can cause a proposal to be in state rejected or failed

      + + + + + + + + + + + -
    • string_not_empty: true
    • + + + + + - - - + + + + + - - - + + + + -
    • int_gt: 0
    • + + + + + - - - + + + + + - -
      NameNumberDescription
      PROPOSAL_ERROR_UNSPECIFIED0

      Default value

      PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON1

      The specified close time is too early base on network parameters

      PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE2

      The specified close time is too late based on network parameters

      since_timestamp -
        +
      PROPOSAL_ERROR_ENACT_TIME_TOO_SOON3

      The specified enact time is too early based on network parameters

      PROPOSAL_ERROR_ENACT_TIME_TOO_LATE4

      The specified enact time is too late based on network parameters

      PROPOSAL_ERROR_INSUFFICIENT_TOKENS5

      The proposer for this proposal as insufficient tokens

      + + PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY + 6 +

      The instrument quote name and base name were the same

      + + + + PROPOSAL_ERROR_NO_PRODUCT + 7 +

      The proposal has no product

      + + + PROPOSAL_ERROR_UNSUPPORTED_PRODUCT + 8 +

      The specified product is not supported

      + + + PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP + 9 +

      Invalid future maturity timestamp (expect RFC3339)

      + + + PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED + 10 +

      The product maturity is past

      + + + PROPOSAL_ERROR_NO_TRADING_MODE + 11 +

      The proposal has no trading mode

      + -

      CandlesResponse

      -

      Response for a list of candles for a market at an interval

      + + PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE + 12 +

      The proposal has an unsupported trading mode

      + + + PROPOSAL_ERROR_NODE_VALIDATION_FAILED + 13 +

      The proposal failed node validation

      + - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD14

      A field is missing in a builtin asset source

      candlesvega.Candlerepeated

      A list of 0 or more candles

      PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS15

      The contract address is missing in the ERC20 asset source

      + + PROPOSAL_ERROR_INVALID_ASSET + 16 +

      The asset identifier is invalid or does not exist on the Vega network

      + + + PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS + 17 +

      Proposal terms timestamps are not compatible (Validation < Closing < Enactment)

      + + + PROPOSAL_ERROR_NO_RISK_PARAMETERS + 18 +

      No risk parameters were specified

      + + + PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY + 19 +

      Invalid key in update network parameter proposal

      + + + PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE + 20 +

      Invalid valid in update network parameter proposal

      + -

      CandlesSubscribeRequest

      -

      Request to subscribe to a stream of (Candles)[#vega.Candle]

      + + PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED + 21 +

      Validation failed for network parameter proposal

      + + + PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL + 22 +

      Opening auction duration is less than the network minimum opening auction time

      + - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE23

      Opening auction duration is more than the network minimum opening auction time

      market_idstring

      Market identifier, required field

      PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT24

      Market proposal is missing a liquidity commitment

      intervalvega.Interval

      Time interval for the candles, required field.

      PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET25

      Market proposal market could not be instantiate in execution

      + + PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT + 26 +

      Market proposal market contained invalid product definition

      + + + PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT + 27 +

      Market proposal is missing commitment amount

      + + + PROPOSAL_ERROR_INVALID_FEE_AMOUNT + 28 +

      Market proposal have invalid fee

      + + + PROPOSAL_ERROR_INVALID_SHAPE + 29 +

      Market proposal have invalid shape

      + -

      Validated Fields

      - - - - - - - - + + + + + - - - + + + + -
    • string_not_empty: true
    • + + + + + - - - + + + + + - -
      FieldValidations
      PROPOSAL_ERROR_INVALID_RISK_PARAMETER30

      Market proposal invalid risk parameter

      market_id -
        +
      PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED31

      Proposal was declined because vote didn't reach the majority thershold required

      PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED32

      Proposal declined because the participation threshold was not reached

      PROPOSAL_ERROR_INVALID_ASSET_DETAILS33

      Asset proposal invalid asset details

      + + +

      Vote.Value

      +

      Vote value

      + + + + + + + + + + + + + + + + + + + + -

      CandlesSubscribeResponse

      -

      + +
      NameNumberDescription
      VALUE_UNSPECIFIED0

      Default value, always invalid

      VALUE_NO1

      A vote against the proposal

      VALUE_YES2

      A vote in favour of the proposal

      - - - - - - - - - - - - -
      FieldTypeLabelDescription
      candlevega.Candle

      +
      +

      oracles/v1/data.proto

      Top +
      +

      -

      DepositRequest

      -

      A request to get a specific deposit by identifier

      +

      OracleData

      +

      OracleData describes an oracle data that has been broadcast.

      @@ -12276,61 +8576,34 @@

      DepositRequest

      - + - - + + - -
      idpub_keys string

      The identifier of the deposit

      repeated

      pubKeys is the list of authorized public keys that signed the data for this +oracle. All the public keys in the oracle data should be contained in these +public keys.

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - -
      FieldValidationsdataPropertyrepeated

      data holds all the properties of the oracle data

      id -
        - -
      • string_not_empty: true
      • - -
      -
      matched_spec_idsstringrepeated

      matched_specs_ids lists all the oracle specs that matched this oracle data.

      - - - - - -

      DepositResponse

      -

      A response for a deposit

      - - - - - - - - - - + + - + @@ -12340,8 +8613,8 @@

      DepositResponse

      -

      DepositsRequest

      -

      A request to get a list of deposit from a given party

      +

      Property

      +

      Property describes one property of an oracle spec with a key with its value.

      FieldTypeLabelDescription
      depositvega.Depositbroadcast_atint64

      The deposit matching the identifier from the request

      broadcast_at is the time at which the data was broadcast for the first +time.

      @@ -12351,72 +8624,42 @@

      DepositsRequest

      - + - + - -
      party_idname string

      The party to get the deposits for

      name is the name of the property.

      - - - - -

      Validated Fields

      - - - - + + + + - - - - - - - + +
      FieldValidationsvaluestring

      value is the value of the property.

      party_id -
        - -
      • string_not_empty: true
      • -
      -
      - - -

      DepositsResponse

      -

      The response for a list of deposits

      - - - - - - - - - - - - -
      FieldTypeLabelDescription
      depositsvega.Depositrepeated

      The list of deposits for the specified party

      +
      +

      commands/v1/commands.proto

      Top +
      +

      -

      ERC20WithdrawalApprovalRequest

      -

      The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge

      +

      DelegateSubmission

      +

      A command to submit an instruction to delegate some stake to a node

      @@ -12426,10 +8669,17 @@

      ERC20WithdrawalApprovalRequest

      - + - + + + + + + + + @@ -12449,7 +8699,7 @@

      Validated Fields

      - + + + + + + + + + + + + + + + + + + -

      GetNetworkParametersProposalsRequest

      -

      Request for a list of network parameter proposals

      + + + + + + + + + + + + -
      withdrawal_idnode_id string

      The identifier of the withdrawal

      The ID for the node to delegate to

      amountuint64

      The amount of stake to delegate

      withdrawal_idnode_id
        @@ -12466,8 +8716,8 @@

        Validated Fields

        -

        ERC20WithdrawalApprovalResponse

        -

        The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge

        function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)

        +

        LiquidityProvisionSubmission

        +

        A liquidity provision submitted for a given market

        @@ -12477,139 +8727,45 @@

        ERC20WithdrawalApprovalResponse<

        - - - - - - - - + - - - - - - - - + - - + + - + - + - - - - -
        asset_sourcestring

        The address of asset on ethereum

        amountmarket_id string

        The amount to be withdrawn

        expiryint64

        The expiry / until what time the request is valid

        Market identifier for the order, required field

        noncestringcommitment_amountuint64

        The nonce, which is actually the internal reference for the withdrawal

        Specified as a unitless number that represents the amount of settlement asset of the market

        signaturesfee string

        The signatures bundle as hex encoded data, forward by 0x -e.g: 0x + sig1 + sig2 + ... + sixN

        - - - - - -

        EstimateFeeRequest

        -

        Request to fetch the estimated fee if an order were to trade immediately

        - - - - - - - - - - - - - + - -
        FieldTypeLabelDescription
        ordervega.Order

        Order to estimate fees for -the following fields in the order are required: -MarketID (used to specify the fee factors) -Price (the price at which the order could trade) -Size (the size at which the order could eventually trade)

        Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers

        - - - - - -

        EstimateFeeResponse

        -

        Response to a EstimateFeeRequest, containing the estimated fees for a given order

        - - - - - - - - - - - - + + + + - -
        FieldTypeLabelDescription
        feevega.Fee

        Summary of the estimated fees for this order if it were to trade now

        sellsvega.LiquidityOrderrepeated

        A set of liquidity sell orders to meet the liquidity provision obligation

        - - - - - -

        EstimateMarginRequest

        -

        Request to fetch the estimated MarginLevels if an order were to trade immediately

        - - - - - - - - - - - - + + + + - -
        FieldTypeLabelDescription
        ordervega.Order

        Order to estimate fees for

        buysvega.LiquidityOrderrepeated

        A set of liquidity buy orders to meet the liquidity provision obligation

        - - - - - -

        EstimateMarginResponse

        -

        Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order

        - - - - - - - - - - + + - + @@ -12618,35 +8774,36 @@

        EstimateMarginResponse

        +

        Validated Fields

        +
        FieldTypeLabelDescription
        margin_levelsvega.MarginLevelsreferencestring

        Summary of the estimated margins for this order if it were to trade now

        A reference to be added to every order created out of this liquidityProvisionSubmission

        + + + + + + + -

        FeeInfrastructureAccountsRequest

        -

        Request for a list of infrastructure fee accounts

        - + + + +
        FieldValidations
        market_id +
          - - - - - +
        • string_not_empty: true
        • - - - - - + + - -
          FieldTypeLabelDescription
          assetstring

          Asset identifier, required field -- Set to an empty string to return all accounts -- Set to an asset ID to return a single infrastructure fee account for a given asset

          +
        -

        FeeInfrastructureAccountsResponse

        -

        Response for a list of infrastructure fee accounts

        +

        OrderAmendment

        +

        An order amendment is a request to amend or update an existing order on Vega

        @@ -12656,34 +8813,65 @@

        FeeInfrastructureAccountsRespo

        - - - - + + + + - -
        accountsvega.Accountrepeated

        A list of 0 or more infrastructure fee accounts

        order_idstring

        Order identifier, this is required to find the order and will not be updated, required field

        - - +
      market_idstring

      Market identifier, this is required to find the order and will not be updated

      pricevega.Price

      Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)

      size_deltaint64

      Amend the size for the order by the delta specified: +- To reduce the size from the current value set a negative integer value +- To increase the size from the current value, set a positive integer value +- To leave the size unchanged set a value of zero

      expires_atvega.Timestamp

      Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      time_in_forcevega.Order.TimeInForce

      Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged +- See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`

      - - - - + + + + + + - - + + - + @@ -12692,33 +8880,36 @@

      GetNetworkParametersProposa +

      Validated Fields

      +
      FieldTypeLabelDescription
      pegged_offsetgoogle.protobuf.Int64Value

      Amend the pegged order offset for the order

      select_in_stateOptionalProposalStatepegged_referencevega.PeggedReference

      Optional proposal state

      Amend the pegged order reference for the order +- See [`PeggedReference`](#vega.PeggedReference)

      + + + + + + + -

      GetNetworkParametersProposalsResponse

      -

      Response for a list of network parameter proposals

      - + + + +
      FieldValidations
      order_id +
        - - - - - +
      • string_not_empty: true
      • - - - - - + + - -
        FieldTypeLabelDescription
        datavega.GovernanceDatarepeated

        A list of 0 or more governance data

        +
      -

      GetNewAssetProposalsRequest

      -

      Request for a list of new asset proposals

      +

      OrderCancellation

      +

      An order cancellation is a request to cancel an existing order on Vega

      @@ -12728,10 +8919,17 @@

      GetNewAssetProposalsRequest

      - - + + + + + + + + + - + @@ -12741,8 +8939,8 @@

      GetNewAssetProposalsRequest

      -

      GetNewAssetProposalsResponse

      -

      Response for a list of new asset proposals

      +

      OrderSubmission

      +

      An order submission is a request to submit or create a new order on Vega

      select_in_stateOptionalProposalStateorder_idstring

      Unique identifier for the order (set by the system after consensus), required field

      market_idstring

      Optional proposal state

      Market identifier for the order, required field

      @@ -12752,34 +8950,73 @@

      GetNewAssetProposalsResponse

      - - - - + + + + - -
      datavega.GovernanceDatarepeated

      A list of 0 or more governance data

      market_idstring

      Market identifier for the order, required field

      - + + price + uint64 + +

      Price for the order, the price is an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places, +, required field for limit orders, however it is not required for market orders

      + + + size + uint64 + +

      Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative

      + + + side + vega.Side + +

      Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)

      + + + time_in_force + vega.Order.TimeInForce + +

      Time in force indicates how long an order will remain active before it is executed or expires, required field +- See [`Order.TimeInForce`](#vega.Order.TimeInForce)

      + -

      GetNewMarketProposalsRequest

      -

      Request for a list of new market proposals

      + + expires_at + int64 + +

      Timestamp for when the order will expire, in nanoseconds since the epoch, +required field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT` +- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

      + + + type + vega.Order.Type + +

      Type for the order, required field - See [`Order.Type`](#vega.Order.Type)

      + - - - - - + + + + + + - - + + - + @@ -12788,33 +9025,47 @@

      GetNewMarketProposalsRequest

      +

      Validated Fields

      +
      FieldTypeLabelDescription
      referencestring

      Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently +set internally by the node to return a unique reference identifier for the order submission

      select_in_stateOptionalProposalStatepegged_ordervega.PeggedOrder

      Optional proposal state

      Used to specify the details for a pegged order +- See [`PeggedOrder`](#vega.PeggedOrder)

      + + + + + + + -

      GetNewMarketProposalsResponse

      -

      Response for a list of new market proposals

      + + + +
      FieldValidations
      market_id +
        +
      • string_not_empty: true
      • - - - - - + + + - - - - + + - -
        FieldTypeLabelDescription
        datavega.GovernanceDatarepeated

        A list of 0 or more governance data

        size +
          + +
        • int_gt: 0
        • + +
        +
        +
      -

      GetNodeSignaturesAggregateRequest

      -

      Request to specify the identifier of the resource we want to retrieve aggregated signatures for

      +

      ProposalSubmission

      +

      A command to submit a new proposal for the

      vega network governance

      @@ -12824,10 +9075,17 @@

      GetNodeSignaturesAggregateRequ

      - + - + + + + + + + + @@ -12847,11 +9105,11 @@

      Validated Fields

      - + @@ -12864,8 +9122,8 @@

      Validated Fields

      -

      GetNodeSignaturesAggregateResponse

      -

      Response to specify the identifier of the resource we want to retrieve aggregated signatures for

      +

      RestoreSnapshot

      +

      A command that loads the state from a given checkpoint

      idreference string

      Resource identifier, required field

      Proposal reference

      termsvega.ProposalTerms

      Proposal configuration and the actual change that is meant to be executed when proposal is enacted

      idterms
        -
      • string_not_empty: true
      • +
      • msg_exists: true
      @@ -12875,10 +9133,10 @@

      GetNodeSignaturesAggregateRes

      - - - - + + + + @@ -12888,8 +9146,8 @@

      GetNodeSignaturesAggregateRes -

      GetProposalByIDRequest

      -

      Request for a governance proposal given a proposal identifier

      +

      UndelegateSubmission

      +

      signaturesvega.commands.v1.NodeSignaturerepeated

      A list of 0 or more signatures

      databytes

      @@ -12899,10 +9157,24 @@

      GetProposalByIDRequest

      - + - + + + + + + + + + + + + + + + @@ -12922,7 +9194,7 @@

      Validated Fields

      - + +
      proposal_idnode_id string

      Proposal identifier, required field

      amountuint64

      optional, if not specified = ALL

      methodUndelegateSubmission.Method

      proposal_idnode_id
        @@ -12939,8 +9211,8 @@

        Validated Fields

        -

        GetProposalByIDResponse

        -

        Response for a governance proposal given a proposal identifier

        +

        VoteSubmission

        +

        A command to submit a new vote for a governance

        proposal.

        @@ -12950,34 +9222,17 @@

        GetProposalByIDResponse

        - - + + - + - -
        datavega.GovernanceDataproposal_idstring

        Governance data, if found

        The ID of the proposal to vote for.

        - - - - - -

        GetProposalByReferenceRequest

        -

        Request for a governance proposal given a proposal reference

        - - - - - - - - - - + + - + @@ -12997,7 +9252,7 @@

        Validated Fields

        - + -
        FieldTypeLabelDescription
        referencestringvaluevega.Vote.Value

        Proposal reference. Required field

        The actual value of the vote

        referenceproposal_id
          @@ -13014,8 +9269,8 @@

          Validated Fields

          -

          GetProposalByReferenceResponse

          -

          Response for a governance proposal given a proposal reference

          +

          WithdrawSubmission

          +

          Represents the submission request to withdraw funds for a party on Vega

          @@ -13025,41 +9280,24 @@

          GetProposalByReferenceResponse

          - - + + - + - -
          datavega.GovernanceDataamountuint64

          Governance data, if found

          The amount to be withdrawn

          - - - - - -

          GetProposalsByPartyRequest

          -

          Request for a list of proposals for a party

          - - - - - - - - - + - + - - + + - + @@ -13068,36 +9306,58 @@

          GetProposalsByPartyRequest

          -

          Validated Fields

          -
          FieldTypeLabelDescription
          party_idasset string

          Party identifier, required field

          The asset we want to withdraw

          select_in_stateOptionalProposalStateextvega.WithdrawExt

          Optional proposal state

          Foreign chain specifics

          - - - - - - - - - - - +

          UndelegateSubmission.Method

          +

          +
          FieldValidations
          party_id -
            -
          • string_not_empty: true
          • -
          -
          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
          NameNumberDescription
          METHOD_UNSPECIFIED0

          METHOD_NOW1

          METHOD_AT_END_OF_EPOCH2

          METHOD_IN_ANGER3

          -
        -

        GetProposalsByPartyResponse

        -

        Response for a list of proposals for a party

        + +
        +

        chain_events.proto

        Top +
        +

        + + +

        AddValidator

        +

        A message to notify when a new validator is being added to the Vega network

        @@ -13107,10 +9367,10 @@

        GetProposalsByPartyResponse

        - - - - + + + + @@ -13120,8 +9380,8 @@

        GetProposalsByPartyResponse

        -

        GetProposalsRequest

        -

        Request for a list of proposals

        +

        BTCDeposit

        +

        A Bitcoin deposit into Vega

        datavega.GovernanceDatarepeated

        A list of 0 or more governance data

        idIdentifier

        The identifier of the validator

        @@ -13131,10 +9391,24 @@

        GetProposalsRequest

        - - + + + + + + + + + + + + + + + + - + @@ -13144,8 +9418,8 @@

        GetProposalsRequest

        -

        GetProposalsResponse

        -

        Response for a list of proposals

        +

        BTCEvent

        +

        An event from the Bitcoin network

        select_in_stateOptionalProposalStatevega_asset_idstring

        The Vega network internal identifier of the asset

        source_btc_addressstring

        The BTC wallet initiating the deposit

        target_party_idstring

        Optional proposal state

        The Vega party identifier (pub-key) which is the target of the deposit

        @@ -13155,10 +9429,31 @@

        GetProposalsResponse

        - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13168,8 +9463,8 @@

        GetProposalsResponse

        -

        GetUpdateMarketProposalsRequest

        -

        Request for a list of update market proposals

        +

        BTCWithdrawal

        +

        A Bitcoin withdrawal from Vega

        datavega.GovernanceDatarepeated

        A list of 0 or more governance data

        indexuint64

        The index of the transaction

        blockuint64

        The block in which the transaction happened

        depositBTCDeposit

        Deposit BTC asset

        withdrawalBTCWithdrawal

        Withdraw BTC asset

        @@ -13179,17 +9474,31 @@

        GetUpdateMarketProposalsRequest<

        - + + + + + + + + + + + + + + + - + - - + + - + @@ -13198,36 +9507,33 @@

        GetUpdateMarketProposalsRequest< -

        Validated Fields

        -
        market_idvega_asset_idstring

        The vega network internal identifier of the asset

        source_party_idstring

        The party identifier (pub-key) initiating the withdrawal

        target_btc_address string

        Market identifier, required field

        Target Bitcoin wallet address

        select_in_stateOptionalProposalStatereference_noncestring

        Proposal state

        The nonce reference of the transaction

        - - - - - - - - - - +
        FieldValidations
        market_id -
          +

          BitcoinAddress

          +

          Used as a wrapper for a Bitcoin address (wallet)

          -
        • string_not_empty: true
        • -
        -
        + + + + + + + + + + - -
        FieldTypeLabelDescription
        addressstring

        A Bitcoin address

        +
      -

      GetUpdateMarketProposalsResponse

      -

      Response for a list of update market proposals

      +

      BuiltinAssetDeposit

      +

      A deposit for a Vega built-in asset

      @@ -13237,10 +9543,24 @@

      GetUpdateMarketProposalsRespons

      - - - - + + + + + + + + + + + + + + + + + + @@ -13250,15 +9570,8 @@

      GetUpdateMarketProposalsRespons -

      GetVegaTimeRequest

      -

      Request for the current time of the vega network

      - - - - - -

      GetVegaTimeResponse

      -

      Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"

      +

      BuiltinAssetEvent

      +

      An event related to a Vega built-in asset

      datavega.GovernanceDatarepeated

      A list of 0 or more governance data

      vega_asset_idstring

      A Vega network internal asset identifier

      party_idstring

      A Vega party identifier (pub-key)

      amountuint64

      The amount to be deposited

      @@ -13268,11 +9581,17 @@

      GetVegaTimeResponse

      - - + + - + + + + + + + + @@ -13282,8 +9601,8 @@

      GetVegaTimeResponse

      -

      GetVotesByPartyRequest

      -

      Request for a list of votes for a party

      +

      BuiltinAssetWithdrawal

      +

      A withdrawal for a Vega built-in asset

      timestampint64depositBuiltinAssetDeposit

      Timestamp representation of current VegaTime as represented in -Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`

      Built-in asset deposit

      withdrawalBuiltinAssetWithdrawal

      Built-in asset withdrawal

      @@ -13293,48 +9612,35 @@

      GetVotesByPartyRequest

      - + - + - -
      party_idvega_asset_id string

      Party identifier, required field

      A Vega network internal asset identifier

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - -
      FieldValidationsparty_idstring

      A Vega network party identifier (pub-key)

      party_id -
        - -
      • string_not_empty: true
      • - -
      -
      amountuint64

      The amount to be withdrawn

      + + -

      GetVotesByPartyResponse

      -

      Response for a list of votes for a party

      +

      ERC20AssetDelist

      +

      An asset deny-listing for an ERC20 token

      @@ -13344,10 +9650,10 @@

      GetVotesByPartyResponse

      - - - - + + + + @@ -13357,15 +9663,8 @@

      GetVotesByPartyResponse

      -

      LastBlockHeightRequest

      -

      A request to get the height of the very last block processed

      by tendermint

      - - - - - -

      LastBlockHeightResponse

      -

      A response with the height of the last block processed by

      tendermint

      +

      ERC20AssetList

      +

      An asset allow-listing for an ERC20 token

      votesvega.Voterepeated

      A list of 0 or more votes

      vega_asset_idstring

      The Vega network internal identifier of the asset

      @@ -13375,10 +9674,10 @@

      LastBlockHeightResponse

      - - + + - + @@ -13388,8 +9687,8 @@

      LastBlockHeightResponse

      -

      LastTradeRequest

      -

      Request for the latest trade that occurred on Vega for a given market

      +

      ERC20Deposit

      +

      An asset deposit for an ERC20 token

      heightuint64vega_asset_idstring

      The Vega network internal identifier of the asset

      @@ -13399,48 +9698,42 @@

      LastTradeRequest

      - + - + - -
      market_idvega_asset_id string

      Market identifier, required field

      The vega network internal identifier of the asset

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - - + + + + + - -
      FieldValidationssource_ethereum_addressstring

      The Ethereum wallet that initiated the deposit

      market_id -
        - -
      • string_not_empty: true
      • +
      target_party_idstring

      The Vega party identifier (pub-key) which is the target of the deposit

      amountstring

      The amount to be deposited

      + + -

      LastTradeResponse

      -

      Response for the latest trade that occurred on Vega for a given market

      +

      ERC20Event

      +

      An event related to an ERC20 token

      @@ -13450,10 +9743,45 @@

      LastTradeResponse

      - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -13463,8 +9791,8 @@

      LastTradeResponse

      -

      LiquidityProvisionsRequest

      -

      A message requesting for the list of liquidity provision orders for markets

      One of the two filters is required (or both)

      +

      ERC20Withdrawal

      +

      An asset withdrawal for an ERC20 token

      tradevega.Tradeindexuint64

      Index of the transaction

      blockuint64

      The block in which the transaction was added

      asset_listERC20AssetList

      List an ERC20 asset

      asset_delistERC20AssetDelist

      De-list an ERC20 asset

      depositERC20Deposit

      Deposit ERC20 asset

      withdrawalERC20Withdrawal

      A trade, if found

      Withdraw ERC20 asset

      @@ -13474,17 +9802,24 @@

      LiquidityProvisionsRequest

      - + - + - + + + + + + + + - + @@ -13494,8 +9829,8 @@

      LiquidityProvisionsRequest

      -

      LiquidityProvisionsResponse

      -

      A response containing all of the Vega liquidity provision orders

      +

      EthereumAddress

      +

      Used as a wrapper for an Ethereum address (wallet/contract)

      marketvega_asset_id string

      The target market for the liquidity provision orders

      The Vega network internal identifier of the asset

      partytarget_ethereum_addressstring

      The target Ethereum wallet address

      reference_nonce string

      The party which submitted the liquidity provision orders

      The reference nonce used for the transaction

      @@ -13505,10 +9840,10 @@

      LiquidityProvisionsResponse

      - - - - + + + + @@ -13518,8 +9853,8 @@

      LiquidityProvisionsResponse

      -

      MarginLevelsRequest

      -

      Request for margin levels for a party

      +

      Identifier

      +

      Used as a wrapper type on any possible network address supported by Vega

      liquidity_provisionsvega.LiquidityProvisionrepeated

      addressstring

      An Ethereum address

      @@ -13529,17 +9864,17 @@

      MarginLevelsRequest

      - - + + - + - - + + - + @@ -13548,36 +9883,33 @@

      MarginLevelsRequest

      -

      Validated Fields

      -
      party_idstringethereum_addressEthereumAddress

      Party identifier, required field

      Ethereum network

      market_idstringbitcoin_addressBitcoinAddress

      Market identifier

      Bitcoin network

      - - - - - - - - - - +
      FieldValidations
      party_id -
        +

        RemoveValidator

        +

        A message to notify when a validator is being removed from the Vega network

        -
      • string_not_empty: true
      • -
      -
      + + + + + + + + + + - -
      FieldTypeLabelDescription
      idIdentifier

      The identifier of the validator

      + + -

      MarginLevelsResponse

      -

      Response for margin levels for a party

      +

      StakeDeposited

      +

      @@ -13587,10 +9919,33 @@

      MarginLevelsResponse

      - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13600,8 +9955,8 @@

      MarginLevelsResponse

      -

      MarginLevelsSubscribeRequest

      -

      Request to subscribe to a stream of MarginLevels data matching the given party identifier

      Optionally, the list can be additionally filtered by market

      +

      StakeRemoved

      +

      margin_levelsvega.MarginLevelsrepeated

      A list of 0 or more margin levels

      ethereum_addressstring

      Ethereum Address of the user depositing stake (hex encode with 0x prefix)

      vega_public_keystring

      The public of the party receiving the stake deposit (hex encode)

      amountstring

      The amount deposited (base 10)

      block_timeint64

      The time at which the block was produced +will be used to inform the core at what time +the stake started to be available.

      @@ -13611,54 +9966,43 @@

      MarginLevelsSubscribeRequest

      - + - + - + - + - -
      party_idethereum_address string

      Party identifier, required field

      Ethereum address of the user removing stake (hex encode with 0x prefix)

      market_idvega_public_key string

      Market identifier

      The public key of the party from which to remove stake (hex encode)

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - -
      FieldValidationsamountstring

      The amount removed (base 10)

      party_id -
        - -
      • string_not_empty: true
      • - -
      -
      block_timeint64

      The time at which the block was produced +will be used to inform the core at what time +the stake was made unavailable.

      + + -

      MarginLevelsSubscribeResponse

      +

      StakingEvent

      @@ -13669,8 +10013,29 @@

      MarginLevelsSubscribeResponse

      - margin_levels - vega.MarginLevels + index + uint64 + +

      Index of the transaction

      + + + + block + uint64 + +

      The block in which the transaction was added

      + + + + stake_deposited + StakeDeposited + +

      + + + + stake_removed + StakeRemoved

      @@ -13682,8 +10047,8 @@

      MarginLevelsSubscribeResponse

      -

      MarketAccountsRequest

      -

      Request for a list of accounts for a market

      +

      ValidatorEvent

      +

      An event related to validator management with foreign networks

      @@ -13693,17 +10058,24 @@

      MarketAccountsRequest

      - + - + - - + + - + + + + + + + + @@ -13713,32 +10085,22 @@

      MarketAccountsRequest

      -

      MarketAccountsResponse

      -

      Response for a list of accounts for a market

      -
      market_idsource_id string

      Market identifier

      The source identifier of the event

      assetstringaddAddValidator

      Asset identifier

      Add a new validator

      rmRemoveValidator

      Remove an existing validator

      - - - - - - - - - - - -
      FieldTypeLabelDescription
      accountsvega.Accountrepeated

      A list of 0 or more accounts

      +
      +

      commands/v1/validator_commands.proto

      Top +
      +

      + -

      MarketByIDRequest

      -

      Request for a market given a market identifier

      +

      ChainEvent

      +

      An event forwarded to the Vega network to provide information on events happening on other networks

      @@ -13748,48 +10110,63 @@

      MarketByIDRequest

      - + - + - -
      market_idtx_id string

      Market identifier, required field

      The identifier of the transaction in which the events happened, usually a hash

      - - + + nonce + uint64 + +

      Arbitrary one-time integer used to prevent replay attacks

      + + + builtin + vega.BuiltinAssetEvent + +

      Built-in asset event

      + -

      Validated Fields

      - - - - + + + + - - - - + + + + -
    • string_not_empty: true
    • + + + + + + - - + + + + + - -
      FieldValidationserc20vega.ERC20Event

      Ethereum ERC20 event

      market_id -
        +
      btcvega.BTCEvent

      Bitcoin BTC event

      validatorvega.ValidatorEvent

      Validator event

      staking_eventvega.StakingEvent

      Ethereum Staking event

      + + -

      MarketByIDResponse

      -

      Response for a market given a market identifier

      +

      NodeRegistration

      +

      Used to Register a node as a validator during network start-up

      @@ -13799,34 +10176,38 @@

      MarketByIDResponse

      - - + + - + - -
      marketvega.Marketvega_pub_keystring

      A market, if found

      Vega public key, required field

      - - - - - -

      MarketDataByIDRequest

      -

      Request for market data for a market

      + + ethereum_address + string + +

      Ethereum public key, required field

      + + + chain_pub_key + string + +

      Public key for the blockchain, required field

      + - - - - - + + + + + + - + - + @@ -13846,7 +10227,7 @@

      Validated Fields

      - + - -
      FieldTypeLabelDescription
      info_urlstring

      URL with more info on the node

      market_idcountry string

      Market identifier

      Country code (ISO 3166-1 alpha-2) for the location of the node

      market_idvega_pub_key
        @@ -13856,79 +10237,41 @@

        Validated Fields

      - - - - - -

      MarketDataByIDResponse

      -

      Response for market data for a market

      - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      market_datavega.MarketData

      Market data, if found

      - - - - - -

      MarketDepthRequest

      -

      Request for the market depth/order book price levels on a market

      Optionally, a maximum depth can be set to limit the number of levels returned

      - + ethereum_address + +
        - - - - - +
      • string_not_empty: true
      • - - - - - + + - - - - - + + -
        FieldTypeLabelDescription
        market_idstring

        Market identifier, required field

        max_depthuint64

        Max depth limits the number of levels returned. Default is 0, which returns all levels

        chain_pub_key +
          -
        +
      • string_not_empty: true
      • +
      + + + + info_url + +
        +
      • string_not_empty: true
      • -

        Validated Fields

        - - - - - + + - - - + + + + + + + + + + + + -
        FieldValidations
        market_idcountry
          @@ -13945,8 +10288,8 @@

          Validated Fields

          -

          MarketDepthResponse

          -

          Response for the market depth/order book price levels on a market

          +

          NodeSignature

          +

          Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network

          @@ -13956,38 +10299,24 @@

          MarketDepthResponse

          - + - - - - - - - - - - - - - - - + - - + + - + - - + + - + @@ -13997,8 +10326,8 @@

          MarketDepthResponse

          -

          MarketDepthSubscribeRequest

          -

          Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data

          +

          NodeVote

          +

          Used when a node votes for validating a given resource exists or is valid,

          for example, an ERC20 deposit is valid and exists on ethereum

          market_idid string

          Market identifier

          buyvega.PriceLevelrepeated

          Zero or more price levels for the buy side of the market depth data

          sellvega.PriceLevelrepeated

          Zero or more price levels for the sell side of the market depth data

          The identifier of the resource being signed

          last_tradevega.Tradesigbytes

          Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`

          The signature

          sequence_numberuint64kindNodeSignatureKind

          Sequence number incremented after each update

          The kind of resource being signed

          @@ -14008,10 +10337,17 @@

          MarketDepthSubscribeRequest

          - + + + + + + + + - + @@ -14031,7 +10367,18 @@

          Validated Fields

          - + + + + + + - - - - - - -
          market_idpub_keybytes

          Public key, required field

          reference string

          Market identifier, required field.

          Reference, required field

          market_idpub_key +
            + +
          • string_not_empty: true
          • + +
          +
          reference
            @@ -14048,32 +10395,51 @@

            Validated Fields

            -

            MarketDepthSubscribeResponse

            -

            - - - - - +

            NodeSignatureKind

            +

            The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc

            +
            FieldTypeLabelDescription
            + + + + + + + + + + + + + + + + + + + + + + + + +
            NameNumberDescription
            NODE_SIGNATURE_KIND_UNSPECIFIED0

            Represents an unspecified or missing value from the input

            NODE_SIGNATURE_KIND_ASSET_NEW1

            Represents a signature for a new asset allow-listing

            NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL2

            Represents a signature for an asset withdrawal

            -
          market_depthvega.MarketDepth

          -

          MarketDepthUpdatesSubscribeRequest

          -

          Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data

          +
          +

          events/v1/events.proto

          Top +
          +

          + + +

          AuctionEvent

          +

          An auction event indicating a change in auction state, for example starting or ending an auction

          @@ -14086,58 +10452,50 @@

          MarketDepthUpdatesSubscribeRe

          - + - -
          market_id string

          Market identifier, required field

          Market identifier for the event

          - - - - -

          Validated Fields

          - - - - + + + + - - - - + + + + - -
          FieldValidationsopening_auctionbool

          True if the event indicates an auction opening and False otherwise

          market_id -
            - -
          • string_not_empty: true
          • - -
          -
          leavebool

          True if the event indicates leaving auction mode and False otherwise

          - - - - - -

          MarketDepthUpdatesSubscribeResponse

          -

          +
        startint64

        Timestamp containing the start time for an auction

        endint64

        Timestamp containing the end time for an auction

        - - - - + + + + + + - - + + - + @@ -14147,15 +10505,8 @@

        MarketDepthUpdatesSubscribeR -

        MarketsDataRequest

        -

        Request for market data

        - - - - - -

        MarketsDataResponse

        -

        Response for market data

        +

        BusEvent

        +

        A bus event is a container for event bus events emitted by Vega

        FieldTypeLabelDescription
        triggervega.AuctionTrigger

        the reason this market is/was in auction

        updatevega.MarketDepthUpdateextension_triggervega.AuctionTrigger

        If an auction was ongoing, but was extended for whatever reason, this field will +be set to the trigger type indicating which component extended the auction

        @@ -14165,213 +10516,287 @@

        MarketsDataResponse

        - - - - + + + + - -
        markets_datavega.MarketDatarepeated

        A list of 0 or more market data

        idstring

        A unique event identifier for the message

        - + + block + string + +

        The batch (or block) of transactions that the events relate to

        + + + type + BusEventType + +

        The type of bus event (one of the list below)

        + + + time_update + TimeUpdate + +

        Time update events - See [TimeUpdate](#vega.TimeUpdate)

        + + + transfer_responses + TransferResponses + +

        Transfer responses update events - See [TransferResponses](#vega.TransferResponses)

        + -

        MarketsDataSubscribeRequest

        -

        Request to subscribe to a stream of MarketsData

        Optionally, the list can be additionally filtered by market

        + + position_resolution + PositionResolution + +

        Position resolution events - See [PositionResolution](#vega.PositionResolution)

        + + + order + vega.Order + +

        Order events

        + - - - - - + + + + + + - - + + - + - -
        FieldTypeLabelDescription
        accountvega.Account

        Account events

        market_idstringpartyvega.Party

        Market identifier

        Party events

        - - - - + + trade + vega.Trade + +

        Trade events

        + -

        MarketsDataSubscribeResponse

        -

        + + margin_levels + vega.MarginLevels + +

        Margin level update events

        + + + proposal + vega.Proposal + +

        Proposal events (for governance)

        + - - - - - + + + + + + - + - -
        FieldTypeLabelDescription
        votevega.Vote

        Vote events (for governance)

        market_data vega.MarketData

        Market data events

        - - - - - -

        MarketsRequest

        -

        Request for a list of markets on Vega

        - - - - + + node_signature + vega.commands.v1.NodeSignature + +

        Node signature events

        + -

        MarketsResponse

        -

        Response for a list of markets on Vega

        + + loss_socialization + LossSocialization + +

        Loss socialization events - See [LossSocialization](#vega.LossSocialization)

        + + + settle_position + SettlePosition + +

        Position settlement events - See [SettlePosition](#vega.SettlePosition)

        + - - - - - + + + + + + - + - - + + - -
        FieldTypeLabelDescription
        settle_distressedSettleDistressed

        Position distressed events - See [SettleDistressed](#vega.SettleDistressed)

        marketsmarket_created vega.Marketrepeated

        A list of 0 or more markets

        Market created events

        - - - - - -

        NetworkParametersRequest

        -

        A message requesting for the list of all network parameters

        - - + + asset + vega.Asset + +

        Asset events

        + + + market_tick + MarketTick + +

        Market tick events - See [MarketTick](#vega.MarketTick)

        + + + withdrawal + vega.Withdrawal + +

        Withdrawal events

        + -

        NetworkParametersResponse

        -

        A response containing all of the vega network parameters

        + + deposit + vega.Deposit + +

        Deposit events

        + + + auction + AuctionEvent + +

        Auction events - See [AuctionEvent](#vega.AuctionEvent)

        + - - - - - + + + + + + - + - - + + - -
        FieldTypeLabelDescription
        risk_factorvega.RiskFactor

        Risk factor events

        network_parametersnetwork_parameter vega.NetworkParameterrepeated

        Network parameter events

        - - - - - -

        ObserveEventBusRequest

        -

        Request to subscribe to a stream of one or more event types from the Vega event bus

        - - - - - - - - - - - - + + + + - - + + - + - - + + - + - - + + - + - -
        FieldTypeLabelDescription
        typevega.events.v1.BusEventTyperepeated

        One or more types of event, required field

        liquidity_provisionvega.LiquidityProvision

        LiquidityProvision events

        market_idstringmarket_updatedvega.Market

        Market identifier, optional field

        Market created events

        party_idstringoracle_specoracles.v1.OracleSpec

        Party identifier, optional field

        OracleSpec events

        batch_sizeint64oracle_dataoracles.v1.OracleData

        Batch size, optional field - -If not specified, any events received will be sent immediately. If the client is not ready -for the next data-set, data may be dropped a number of times, and eventually the stream is closed. -if specified, the first batch will be sent when ready. To receive the next set of events, the client -must write an `ObserveEventBatch` message on the stream to flush the buffer. -If no message is received in 5 seconds, the stream is closed. -Default: 0, send any and all events when they are available.

        OracleData events

        - - - - - -

        ObserveEventBusResponse

        -

        Response to a subscribed stream of events from the Vega event bus

        + + delegation_balance + DelegationBalanceEvent + +

        Delegation balance events

        + + + validator_score + ValidatorScoreEvent + +

        Validator score calcualted

        + - - - - - + + + + + + - - - - + + + + - -
        FieldTypeLabelDescription
        epoch_eventEpochEvent

        Epoch update events - See [Epoch](#vega.Epoch)

        eventsvega.events.v1.BusEventrepeated

        One or more events

        validator_updateValidatorUpdate

        Validator update events

        + + stake_linking + StakeLinking + +

        Staking event

        + + + reward_payout + RewardPayoutEvent + +

        Reward payout event

        + + + checkpoint + CheckpointEvent + +

        Checkpoint was created

        + + + market + MarketEvent + +

        Market tick events - See [MarketEvent](#vega.MarketEvent)

        + + + tx_err_event + TxErrorEvent + +

        Transaction error events, not included in the ALL event type

        + -

        ObserveGovernanceRequest

        -

        Request to obsever all event related to governance

        + + -

        ObserveGovernanceResponse

        -

        All events related to governance

        +

        CheckpointEvent

        +

        @@ -14381,8 +10806,22 @@

        ObserveGovernanceResponse

        - - + + + + + + + + + + + + + + + + @@ -14394,8 +10833,8 @@

        ObserveGovernanceResponse

        -

        ObservePartyProposalsRequest

        -

        Request to subscribe to a stream of governance proposals for a party

        +

        DelegationBalanceEvent

        +

        DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect

        datavega.GovernanceDatahashstring

        block_hashstring

        block_heightuint64

        @@ -14405,59 +10844,29 @@

        ObservePartyProposalsRequest

        - + - + - -
        party_idparty string

        Party identifier, required field

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationsnode_idstring

        party_id -
          - -
        • string_not_empty: true
        • - -
        -
        amountuint64

        - - - - - -

        ObservePartyProposalsResponse

        -

        - - - - - - - - - - + + @@ -14469,8 +10878,8 @@

        ObservePartyProposalsResponse

        -

        ObservePartyVotesRequest

        -

        Request to subscribe to a stream of governance votes for a party

        +

        EpochEvent

        +

        Epoch details

        FieldTypeLabelDescription
        datavega.GovernanceDataepoch_seqstring

        @@ -14480,61 +10889,31 @@

        ObservePartyVotesRequest

        - - + + - + - -
        party_idstringsequint64

        Party identifier, required field

        Sequence number that increases by one each epoch

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationsstart_timeint64

        What time did this epoch start

        party_id -
          - -
        • string_not_empty: true
        • - -
        -
        expire_timeint64

        What time should this epoch end

        - - - - - -

        ObservePartyVotesResponse

        -

        - - - - - - - - - - + + - + @@ -14544,8 +10923,8 @@

        ObservePartyVotesResponse

        -

        ObserveProposalVotesRequest

        -

        Request to subscribe to a stream of governance votes for a proposal

        +

        LossSocialization

        +

        A loss socialization event contains details on the amount of wins unable to be distributed

        FieldTypeLabelDescription
        votevega.Voteend_timeint64

        What time did it actually end

        @@ -14555,48 +10934,35 @@

        ObserveProposalVotesRequest

        - + - + - -
        proposal_idmarket_id string

        Proposal identifier, required field

        Market identifier for the event

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationsparty_idstring

        Party identifier (public key) for the event

        proposal_id -
          - -
        • string_not_empty: true
        • - -
        -
        amountint64

        Amount distributed

        + + -

        ObserveProposalVotesResponse

        -

        +

        MarketEvent

        +

        MarketEvent - the common denominator for all market events

        interface has a method to return a string for logging

        @@ -14606,10 +10972,17 @@

        ObserveProposalVotesResponse

        - - + + - + + + + + + + + @@ -14619,8 +10992,8 @@

        ObserveProposalVotesResponse

        -

        OptionalProposalState

        -

        Optional proposal state

        +

        MarketTick

        +

        A market ticket event contains the time value for when a particular market was last processed on Vega

        votevega.Votemarket_idstring

        Market identifier for the event

        payloadstring

        Payload is a unique information string

        @@ -14630,10 +11003,17 @@

        OptionalProposalState

        - - + + + + + + + + + - + @@ -14643,8 +11023,8 @@

        OptionalProposalState

        -

        OracleDataBySpecRequest

        -

        A request to all oracle data broadcast to a given spec

        +

        PendingDelegationBalanceEvent

        +

        PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch

        valuevega.Proposal.Stateidstring

        Market identifier for the event

        timeint64

        Proposal state value

        Timestamp containing latest update from Vega blockchain aka Vega-time

        @@ -14654,61 +11034,38 @@

        OracleDataBySpecRequest

        - + - + - -
        idparty string

        The id to get the oracle spec for

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationsnode_idstring

        id -
          - -
        • string_not_empty: true
        • - -
        -
        delegation_amountuint64

        - - - - - -

        OracleDataBySpecResponse

        -

        The response for a list of all oracle data broadcast to a given spec

        - - - - - - - + + + + + + - - - - + + + + @@ -14718,8 +11075,8 @@

        OracleDataBySpecResponse

        -

        OracleSpecRequest

        -

        A request to get a specific oracle spec by identifier

        +

        PositionResolution

        +

        A position resolution event contains information on distressed trades

        FieldTypeLabelDescription
        undelegation_amountuint64

        oracle_dataoracles.v1.OracleDatarepeated

        The list of oracle data broadcast to a given spec

        epoch_seqstring

        @@ -14729,48 +11086,43 @@

        OracleSpecRequest

        - + - + - -
        idmarket_id string

        The id to get the oracle spec for

        Market identifier for the event

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - - + + + + + - -
        FieldValidationsdistressedint64

        Number of distressed traders

        id -
          - -
        • string_not_empty: true
        • +
        closedint64

        Number of close outs

        mark_priceuint64

        Mark price, as an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

        + + -

        OracleSpecResponse

        -

        A response for a oracle spec

        +

        RewardPayoutEvent

        +

        @@ -14780,41 +11132,45 @@

        OracleSpecResponse

        - - + + - + - -
        oracle_specoracles.v1.OracleSpecpartystring

        The withdrawal matching the identifier from the request

        - - - - - -

        OracleSpecsRequest

        -

        A request to get a specific oracle spec by identifier

        - - - - + + epoch_seq + string + +

        + -

        OracleSpecsResponse

        -

        The response for a list of withdrawals

        + + asset + string + +

        + + + amount + string + +

        + - - - - - + + + + + + - - - - + + + + @@ -14824,8 +11180,8 @@

        OracleSpecsResponse

        -

        OrderByIDRequest

        -

        Request for an order with the specified order identifier

        Optionally, return a specific version of the order with the `version` field

        +

        SettleDistressed

        +

        A settle distressed event contains information on distressed trading parties who are closed out

        FieldTypeLabelDescription
        percent_of_total_rewardstring

        oracle_specsoracles.v1.OracleSpecrepeated

        The list of oracle specs

        timestampint64

        @@ -14835,58 +11191,44 @@

        OrderByIDRequest

        - + - + - - + + - + - -
        order_idmarket_id string

        Order identifier, required field

        Market identifier for the event

        versionuint64party_idstring

        Version of the order: -- Set `version` to 0 for most recent version of the order -- Set `1` for original version of the order -- Set `2` for first amendment, `3` for second amendment, etc

        Party identifier (public key) for the event

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationsmarginuint64

        Margin value as an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

        order_id -
          - -
        • msg_exists: true
        • - -
        -
        priceuint64

        Price as an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

        + + -

        OrderByIDResponse

        -

        +

        SettlePosition

        +

        A settle position event contains position settlement information for a party

        @@ -14896,10 +11238,32 @@

        OrderByIDResponse

        - - + + - + + + + + + + + + + + + + + + + + + + + + + @@ -14909,8 +11273,8 @@

        OrderByIDResponse

        -

        OrderByMarketAndIDRequest

        -

        Request for an order on a market given an order identifier

        +

        StakeLinking

        +

        StakeLinking - an event notifying of stake being deposited or removed for a given party

        These events are emitted for every Staking deposit or removed accepted by the network

        ordervega.Ordermarket_idstring

        Market identifier for the event

        party_idstring

        Party identifier (public key) for the event

        priceuint64

        Price of settlement as an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

        trade_settlementsTradeSettlementrepeated

        A collection of 1 or more trade settlements

        @@ -14920,66 +11284,70 @@

        OrderByMarketAndIDRequest

        - + - + - - + + - + - -
        market_idid string

        Market identifier, required field

        The internal ID for this staking event

        order_idstringtypeStakeLinking.Type

        Order identifier, required field

        The type of event

        - - - - -

        Validated Fields

        - - - - + + + + - - - - + + + + - - + + + + + - - + + + + -
      • string_not_empty: true
      • + + + + + + - - + + + + + - -
        FieldValidationstsint64

        The timestamps at which the event was emitted by ethereum

        market_id -
          - -
        • string_not_empty: true
        • +
        partystring

        The party to whom the event is directed at.

        amountstring

        The amount of stake deposited or removed

        order_id -
          +
        statusStakeLinking.Status

        The status of the event

        finalized_atint64

        The time at which the vega network finalized the state of the event

        tx_hashstring

        The hash of the transaction from which the events happen

        + + -

        OrderByMarketAndIDResponse

        -

        Response for an order on a market given an order identifier

        +

        TimeUpdate

        +

        A time update event contains the latest time update from Vega blockchain

        @@ -14989,10 +11357,10 @@

        OrderByMarketAndIDResponse

        - - + + - + @@ -15002,59 +11370,40 @@

        OrderByMarketAndIDResponse

        -

        OrderByReferenceRequest

        -

        Request for an order given an order reference

        +

        TradeSettlement

        +

        A trade settlement is part of the settle position event

        ordervega.Ordertimestampint64

        An order, if found

        Timestamp containing latest update from Vega blockchain aka Vega-time

        - - - - - - - - - - - -
        FieldTypeLabelDescription
        referencestring

        Unique reference, required field

        - - - + + -

        Validated Fields

        - - - - + + + + - - - - + + + + - -
        FieldValidationssizeint64

        Size of trade settlement

        reference -
          - -
        • string_not_empty: true
        • - -
        -
        priceuint64

        Price of settlement as an integer, for example `123456` is a correctly +formatted price of `1.23456` assuming market configured to 5 decimal places

        + + -

        OrderByReferenceResponse

        -

        Response for an order given an order reference

        +

        TransferResponses

        +

        A transfer responses event contains a collection of transfer information

        @@ -15064,10 +11413,10 @@

        OrderByReferenceResponse

        - - - - + + + + @@ -15077,8 +11426,8 @@

        OrderByReferenceResponse

        -

        OrderVersionsByIDRequest

        -

        Request for a list of all versions of an order given the specified order identifier

        +

        TxErrorEvent

        +

        ordervega.Order

        An order, if found

        responsesvega.TransferResponserepeated

        One or more entries containing internal transfer information

        @@ -15088,55 +11437,77 @@

        OrderVersionsByIDRequest

        - + - + - - + + - + - -
        order_idparty_id string

        Order identifier, required field

        Unique party identifier for the related party

        paginationPaginationerr_msgstring

        Pagination controls

        An error message describing what went wrong

        - + + order_submission + vega.commands.v1.OrderSubmission + +

        + + + order_amendment + vega.commands.v1.OrderAmendment + +

        + + + order_cancellation + vega.commands.v1.OrderCancellation + +

        + -

        Validated Fields

        - - - - + + + + - - - - + + + + -
      • msg_exists: true
      • + + + + + + - - + + + + + - -
        FieldValidationsproposalvega.commands.v1.ProposalSubmission

        order_id -
          +
        vote_submissionvega.commands.v1.VoteSubmission

        liquidity_provision_submissionvega.commands.v1.LiquidityProvisionSubmission

        withdraw_submissionvega.commands.v1.WithdrawSubmission

        + + -

        OrderVersionsByIDResponse

        -

        Response to a request for a list of all versions of an order

        +

        ValidatorScoreEvent

        +

        ValidatorScoreEvent is the score a validator gets for a given epoch

        @@ -15146,10 +11517,31 @@

        OrderVersionsByIDResponse

        - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15159,8 +11551,8 @@

        OrderVersionsByIDResponse

        -

        OrdersByMarketRequest

        -

        Request for a list of orders for a market

        +

        ValidatorUpdate

        +

        A validator update event contains information about validator node

        ordersvega.Orderrepeated

        A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)

        node_idstring

        epoch_seqstring

        validator_scorestring

        normalised_scorestring

        @@ -15170,216 +11562,366 @@

        OrdersByMarketRequest

        - + - + - - + + - + - -
        market_idvega_pub_key string

        Market identifier, required field

        Vega public key of validator node

        paginationPaginationethereum_addressstring

        Optional pagination controls

        Ethereum public key of validator node

        - - - + + tm_pub_key + string + +

        Public key of Tendermint

        + -

        Validated Fields

        - - - - + + + + - - - - + + + + -
      • string_not_empty: true
      • + +
        FieldValidationsinfo_urlstring

        URL with more info on the node

        market_id -
          +
        countrystring

        Country code (ISO 3166-1 alpha-2) for the location of the node

        -
      - - - - -

      OrdersByMarketResponse

      -

      Response for a list of orders for a market

      +

      BusEventType

      +

      An (event) bus event type is used to specify a type of event

      It has 2 styles of event:

      Single values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item

      Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items

      + + + + + + + + + + -
      NameNumberDescription
      BUS_EVENT_TYPE_UNSPECIFIED0

      Default value, always invalid

      - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      BUS_EVENT_TYPE_ALL1

      Events of ALL event types, used when filtering stream from event bus

      ordersvega.Orderrepeated

      A list of 0 or more orders

      BUS_EVENT_TYPE_TIME_UPDATE2

      Event for blockchain time updates

      + + BUS_EVENT_TYPE_TRANSFER_RESPONSES + 3 +

      Event for when a transfer happens internally, contains the transfer information

      + + + + BUS_EVENT_TYPE_POSITION_RESOLUTION + 4 +

      Event indicating position resolution has occurred

      + + + + BUS_EVENT_TYPE_ORDER + 5 +

      Event for order updates, both new and existing orders

      + + + + BUS_EVENT_TYPE_ACCOUNT + 6 +

      Event for account updates

      + + + + BUS_EVENT_TYPE_PARTY + 7 +

      Event for party updates

      + + + BUS_EVENT_TYPE_TRADE + 8 +

      Event indicating a new trade has occurred

      + + + BUS_EVENT_TYPE_MARGIN_LEVELS + 9 +

      Event indicating margin levels have changed for a party

      + + + BUS_EVENT_TYPE_PROPOSAL + 10 +

      Event for proposal updates (for governance)

      + + + BUS_EVENT_TYPE_VOTE + 11 +

      Event indicating a new vote has occurred (for governance)

      + -

      OrdersByPartyRequest

      -

      Request for a list of orders for a party

      + + BUS_EVENT_TYPE_MARKET_DATA + 12 +

      Event for market data updates

      + + + BUS_EVENT_TYPE_NODE_SIGNATURE + 13 +

      Event for a new signature for a Vega node

      + - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      BUS_EVENT_TYPE_LOSS_SOCIALIZATION14

      Event indicating loss socialisation occurred for a party

      party_idstring

      Party identifier, required field

      BUS_EVENT_TYPE_SETTLE_POSITION15

      Event for when a position is being settled

      paginationPagination

      Pagination controls

      BUS_EVENT_TYPE_SETTLE_DISTRESSED16

      Event for when a position is distressed

      + + BUS_EVENT_TYPE_MARKET_CREATED + 17 +

      Event indicating a new market was created

      + + + BUS_EVENT_TYPE_ASSET + 18 +

      Event for when an asset is added to Vega

      + + + BUS_EVENT_TYPE_MARKET_TICK + 19 +

      Event indicating a market tick event

      + + + BUS_EVENT_TYPE_WITHDRAWAL + 20 +

      Event for when a withdrawal occurs

      + -

      Validated Fields

      - - - - - - - - + + + + + - - - + + + + -
    • string_not_empty: true
    • + + + + + - - - + + + + + - -
      FieldValidations
      BUS_EVENT_TYPE_DEPOSIT21

      Event for when a deposit occurs

      party_id -
        +
      BUS_EVENT_TYPE_AUCTION22

      Event indicating a change in auction state, for example starting or ending an auction

      BUS_EVENT_TYPE_RISK_FACTOR23

      Event indicating a risk factor has been updated

      BUS_EVENT_TYPE_NETWORK_PARAMETER24

      Event indicating a network parameter has been added or updated

      + + BUS_EVENT_TYPE_LIQUIDITY_PROVISION + 25 +

      Event indicating a liquidity provision has been created or updated

      + + + BUS_EVENT_TYPE_MARKET_UPDATED + 26 +

      Event indicating a new market was created

      + + + BUS_EVENT_TYPE_ORACLE_SPEC + 27 +

      Event indicating an oracle spec has been created or updated

      + + + BUS_EVENT_TYPE_ORACLE_DATA + 28 +

      Event indicating that an oracle data has been broadcast

      + + + BUS_EVENT_TYPE_DELEGATION_BALANCE + 29 +

      Event indicating that an delegation balance of a party to a node for current epoch has changed

      + -

      OrdersByPartyResponse

      -

      Response for a list of orders for a party

      + + BUS_EVENT_TYPE_VALIDATOR_SCORE + 30 +

      Event indicating the validator score for the given epoch

      + + + BUS_EVENT_TYPE_EPOCH_UPDATE + 31 +

      Event indicating the start or end of an epoch

      + - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      BUS_EVENT_TYPE_VALIDATOR_UPDATE32

      Event indicating that validator node has been updated

      ordersvega.Orderrepeated

      A list of 0 or more orders

      BUS_EVENT_TYPE_STAKE_LINKING33

      Event indicating a new staking event have been processed by the network

      + + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT + 34 +

      Event indicating the payout of a reward has been initiated

      + + + BUS_EVENT_TYPE_CHECKPOINT + 35 +

      Event indicating a new checkpoint was created

      + + + BUS_EVENT_TYPE_MARKET + 101 +

      Event indicating a market related event, for example when a market opens

      + + + BUS_EVENT_TYPE_TX_ERROR + 201 +

      Event used to report failed transactions back to a user, this is excluded from the ALL type

      + + + -

      OrdersSubscribeRequest

      -

      Request to subscribe to a stream of (Orders)[#vega.Order]

      +

      StakeLinking.Status

      +

      + + + + + + + + + + -
      NameNumberDescription
      STATUS_UNSPECIFIED0

      Default value

      - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      FieldTypeLabelDescription
      STATUS_PENDING1

      Indicate an event waiting for confirmation from the vega network

      market_idstring

      Market identifier

      STATUS_ACCEPTED2

      Indicate of an event accepted by the vega network

      party_idstring

      Party identifier

      STATUS_REJECTED3

      Indaicate of an event rejected by the vega network

      + + +

      StakeLinking.Type

      +

      + + + + + + + + + + + + + + + + + + + + -

      OrdersSubscribeResponse

      -

      A stream of orders

      + +
      NameNumberDescription
      TYPE_UNSPECIFIED0

      Default value

      TYPE_LINK1

      Indicate of a stake deposit instruction

      TYPE_UNLINK2

      Indicate of a stake remove instruction

      - - - - - - - - - - - - -
      FieldTypeLabelDescription
      ordersvega.Orderrepeated

      A list of 0 or more orders

      +
      +

      commands/v1/oracles.proto

      Top +
      +

      -

      Pagination

      -

      Pagination controls

      +

      OracleDataSubmission

      +

      Command to submit new Oracle data from third party providers

      @@ -15389,25 +11931,17 @@

      Pagination

      - - - - - - - - - + + - + - - + + - + @@ -15417,39 +11951,45 @@

      Pagination

      -

      PartiesRequest

      -

      Request for a list of all parties

      +

      OracleDataSubmission.OracleSource

      +

      The supported Oracle sources

      +
      skipuint64

      Skip the number of records specified, default is 0

      limituint64sourceOracleDataSubmission.OracleSource

      Limit the number of returned records to the value specified, default is 50

      The source from which the data is coming from

      descendingboolpayloadbytes

      Descending reverses the order of the records returned, -default is true, if false the results will be returned in ascending order

      The data provided by the third party provider

      + + + + + + + + + + + + + + -

      PartiesResponse

      -

      Response to a request for a list of parties

      + +
      NameNumberDescription
      ORACLE_SOURCE_UNSPECIFIED0

      The default value

      ORACLE_SOURCE_OPEN_ORACLE1

      Support for Open Oracle standard

      - - - - - - - - - - - - -
      FieldTypeLabelDescription
      partiesvega.Partyrepeated

      A list of 0 or more parties

      +
      +

      commands/v1/transaction.proto

      Top +
      +

      -

      PartyAccountsRequest

      -

      Request for a list of accounts for a party

      +

      InputData

      +

      @@ -15459,55 +11999,125 @@

      PartyAccountsRequest

      - - + + - + - - + + - + - - + + - + - - + + - + - -
      party_idstringnonceuint64

      Party identifier

      A random number used to provided uniqueness and prevents against replay +attack.

      market_idstringblock_heightuint64

      Market identifier

      The block height associated to the transaction. +This should always be current height of the node at the time of sending the +Tx. BlockHeight is used as a mechanism for replay protection.

      typevega.AccountTypeorder_submissionOrderSubmission

      Account type, required field

      User commands

      assetstringorder_cancellationOrderCancellation

      Asset identifier

      + + order_amendment + OrderAmendment + +

      + + + withdraw_submission + WithdrawSubmission + +

      + + + proposal_submission + ProposalSubmission + +

      + + + vote_submission + VoteSubmission + +

      + + + liquidity_provision_submission + LiquidityProvisionSubmission + +

      + -

      PartyAccountsResponse

      -

      Response for a list of accounts for a party

      + + delegate_submission + DelegateSubmission + +

      + + + undelegate_submission + UndelegateSubmission + +

      + - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15517,8 +12127,8 @@

      PartyAccountsResponse

      -

      PartyByIDRequest

      -

      Request for a party given a party identifier

      +

      Signature

      +

      A signature to be authenticate a transaction and to be verified by the vega

      network.

      FieldTypeLabelDescription
      node_registrationNodeRegistration

      Validator commands

      accountsvega.Accountrepeated

      A list of 0 or more accounts

      node_voteNodeVote

      node_signatureNodeSignature

      chain_eventChainEvent

      oracle_data_submissionOracleDataSubmission

      Oracles

      restore_snapshot_submissionRestoreSnapshot

      Checkpoints

      @@ -15528,48 +12138,35 @@

      PartyByIDRequest

      - + - + - -
      party_idvalue string

      Party identifier, required field

      The bytes of the signature (hex-encoded).

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - -
      FieldValidationsalgostring

      The algorithm used to create the signature.

      party_id -
        - -
      • string_not_empty: true
      • - -
      -
      versionuint32

      The version of the signature used to create the signature.

      + + -

      PartyByIDResponse

      -

      Response for a party given a party identifier

      +

      Transaction

      +

      Represents a transaction to be sent to Vega.

      @@ -15579,41 +12176,39 @@

      PartyByIDResponse

      - - + + - + - -
      partyvega.Partyinput_databytes

      A party, if found

      One of the set of Vega commands (proto marshalled).

      - - - - - -

      PositionsByPartyRequest

      -

      Request for a list of positions for a party

      Optionally, if a market identifier is set, the results will be filtered for that market only

      - - - - - - - + + + + + + - + - + - + - + + + + + + + + @@ -15622,60 +12217,30 @@

      PositionsByPartyRequest

      -

      Validated Fields

      -
      FieldTypeLabelDescription
      signatureSignature

      The signature of the inputData.

      party_idaddress string

      Party identifier, required field

      The address of the sender (hex-encoded). Not supported yet.

      market_idpub_key string

      Market identifier

      The public key of the sender (hex-encoded).

      versionuint32

      A version of the transaction, to be used in the future in case we want to +implement changes to the Transaction format.

      - - - - - - - - - - - - - -
      FieldValidations
      party_id -
        - -
      • string_not_empty: true
      • -
      -
      -

      PositionsByPartyResponse

      -

      Response for a list of positions for a party

      - - - - - +
      +

      api/trading.proto

      Top +
      +

      - - - - - - - -
      FieldTypeLabelDescription
      positionsvega.Positionrepeated

      A list of 0 or more positions

      +

      GetVegaTimeRequest

      +

      Request for the current time of the vega network

      -

      PositionsSubscribeRequest

      -

      Request to subscribe to a stream of (Positions)[#vega.Position]

      +

      GetVegaTimeResponse

      +

      Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"

      @@ -15685,17 +12250,11 @@

      PositionsSubscribeRequest

      - - - - - - - - - + + - + @@ -15705,8 +12264,15 @@

      PositionsSubscribeRequest

      -

      PositionsSubscribeResponse

      -

      +

      LastBlockHeightRequest

      +

      A request to get the height of the very last block processed

      by tendermint

      + + + + + +

      LastBlockHeightResponse

      +

      A response with the height of the last block processed by

      tendermint

      party_idstring

      Party identifier, optional field

      market_idstringtimestampint64

      Market identifier, optional field

      Timestamp representation of current VegaTime as represented in +Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`

      @@ -15716,8 +12282,8 @@

      PositionsSubscribeResponse

      - - + + @@ -15729,8 +12295,8 @@

      PositionsSubscribeResponse

      -

      PrepareAmendOrderRequest

      -

      Request to amend an existing order

      +

      ObserveEventBusRequest

      +

      Request to subscribe to a stream of one or more event types from the Vega event bus

      positionvega.Positionheightuint64

      @@ -15740,10 +12306,37 @@

      PrepareAmendOrderRequest

      - - + + + + + + + + + + + + + + + + + + + + + + + - + @@ -15753,8 +12346,8 @@

      PrepareAmendOrderRequest

      -

      PrepareAmendOrderResponse

      -

      Response for preparing an order amendment

      +

      ObserveEventBusResponse

      +

      Response to a subscribed stream of events from the Vega event bus

      amendmentvega.commands.v1.OrderAmendmenttypevega.events.v1.BusEventTyperepeated

      One or more types of event, required field

      market_idstring

      Market identifier, optional field

      party_idstring

      Party identifier, optional field

      batch_sizeint64

      An order amendment

      Batch size, optional field - +If not specified, any events received will be sent immediately. If the client is not ready +for the next data-set, data may be dropped a number of times, and eventually the stream is closed. +if specified, the first batch will be sent when ready. To receive the next set of events, the client +must write an `ObserveEventBatch` message on the stream to flush the buffer. +If no message is received in 5 seconds, the stream is closed. +Default: 0, send any and all events when they are available.

      @@ -15764,10 +12357,10 @@

      PrepareAmendOrderResponse

      - - - - + + + + @@ -15777,8 +12370,8 @@

      PrepareAmendOrderResponse

      -

      PrepareCancelOrderRequest

      -

      Request to cancel an existing order

      +

      PropagateChainEventRequest

      +

      Request for a new event sent by the blockchain queue to be propagated on Vega

      blobbytes

      Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.

      eventsvega.events.v1.BusEventrepeated

      One or more events

      @@ -15788,10 +12381,24 @@

      PrepareCancelOrderRequest

      - - + + + + + + + + + - + + + + + + + + @@ -15801,8 +12408,8 @@

      PrepareCancelOrderRequest

      -

      PrepareCancelOrderResponse

      -

      Response for preparing an order cancellation

      +

      PropagateChainEventResponse

      +

      Response for a new event sent by the blockchain queue to be propagated on Vega

      cancellationvega.commands.v1.OrderCancellationeventbytes

      Chain event

      pub_keystring

      An order cancellation

      Public key

      signaturebytes

      Signature

      @@ -15812,10 +12419,11 @@

      PrepareCancelOrderResponse

      - - + + - + @@ -15825,8 +12433,8 @@

      PrepareCancelOrderResponse

      -

      PrepareLiquidityProvisionRequest

      -

      Request to prepare liquiditity provision

      +

      Statistics

      +

      Vega domain specific statistics as reported by the node the caller is connected to

      blobbytessuccessbool

      Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction

      Success will be true if the event was accepted by the node, +**Important** - success does not mean that the event is confirmed by consensus

      @@ -15836,195 +12444,228 @@

      PrepareLiquidityProvisionReques

      - - + + - + - -
      submissionvega.commands.v1.LiquidityProvisionSubmissionblock_heightuint64

      Submission, required field

      Current block height as reported by the Vega blockchain

      - - - - -

      Validated Fields

      - - - - + + + + - - - - + + + + - -
      FieldValidationsbacklog_lengthuint64

      Current backlog length (number of transactions) that are waiting to be included in a block

      submission -
        - -
      • msg_exists: true
      • - -
      -
      total_peersuint64

      Total number of connected peers to this node

      - - - - - -

      PrepareLiquidityProvisionResponse

      -

      Response to a liquidity provision request

      - - - - - - - - - - + + - + - -
      FieldTypeLabelDescription
      blobbytesgenesis_timestring

      A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction

      Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision

      - - - - + + current_time + string + +

      Current system date and time formatted in ISO-8601 datetime format with nanosecond precision

      + -

      PrepareProposalSubmissionRequest

      -

      Request to prepare a governance proposal

      + + vega_time + string + +

      Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision

      + + + status + vega.ChainStatus + +

      Status of the connection to the Vega blockchain +- See [`ChainStatus`](#vega.ChainStatus)

      + - - - - - + + + + + + - - + + - + - -
      FieldTypeLabelDescription
      tx_per_blockuint64

      Transactions per block

      submissionvega.commands.v1.ProposalSubmissionaverage_tx_bytesuint64

      Average transaction size in bytes

      + + average_orders_per_block + uint64 + +

      Average orders per block

      + + + trades_per_second + uint64 + +

      Trades emitted per second

      + + + orders_per_second + uint64 + +

      Orders processed per second

      + + + total_markets + uint64 + +

      Total markets on this Vega network

      + + + total_amend_order + uint64 + +

      Total number of order amendments since genesis (on all markets)

      + -

      PrepareProposalSubmissionResponse

      -

      Response to prepare a governance proposal

      + + total_cancel_order + uint64 + +

      Total number of order cancellations since genesis (on all markets)

      + + + total_create_order + uint64 + +

      Total number of order submissions since genesis (on all markets)

      + - - - - - + + + + + + - - + + - + - - + + - + - -
      FieldTypeLabelDescription
      total_ordersuint64

      Total number of orders processed since genesis (on all markets)

      blobbytestotal_tradesuint64

      A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction

      Total number of trades emitted since genesis (on all markets)

      submissionvega.commands.v1.ProposalSubmissionorder_subscriptionsuint32

      A copy of the prepared proposal

      Current number of stream subscribers to order data

      - - - - - -

      PrepareSubmitOrderRequest

      -

      Request to submit a new order

      - - - - - - - - - - + + - + - -
      FieldTypeLabelDescription
      submissionvega.commands.v1.OrderSubmissiontrade_subscriptionsuint32

      An order submission

      Current number of stream subscribers to trade data

      - - - - + + candle_subscriptions + uint32 + +

      Current number of stream subscribers to candle-stick data

      + -

      PrepareSubmitOrderResponse

      -

      Response for preparing an order submission

      + + market_depth_subscriptions + uint32 + +

      Current number of stream subscribers to market depth data

      + + + positions_subscriptions + uint32 + +

      Current number of stream subscribers to positions data

      + - - - - - + + + + + + - - + + - + - + - + - -
      FieldTypeLabelDescription
      account_subscriptionsuint32

      Current number of stream subscribers to account data

      blobbytesmarket_data_subscriptionsuint32

      Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction

      Current number of stream subscribers to market data

      submit_idapp_version_hash string

      Submission identifier (order reference)

      The version hash of the Vega node software

      - - - + + app_version + string + +

      The version of the Vega node software

      + + + chain_version + string + +

      The version of the underlying Vega blockchain

      + -

      PrepareVoteSubmissionRequest

      -

      Request to prepare a governance vote

      + + block_duration + uint64 + +

      Current block duration, in nanoseconds

      + + + uptime + string + +

      Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision

      + - - - - - + + + + + + - - + + - + @@ -16033,36 +12674,16 @@

      PrepareVoteSubmissionRequest

      -

      Validated Fields

      -
      FieldTypeLabelDescription
      chain_idstring

      Unique identifier for the underlying Vega blockchain

      submissionvega.commands.v1.VoteSubmissionmarket_depth_updates_subscriptionsuint32

      Vote, required field

      Current number of stream subscribers to market depth update data

      - - - - - - - - - - - - - -
      FieldValidations
      submission -
        - -
      • msg_exists: true
      • - -
      -
      +

      StatisticsRequest

      +

      A a request for statistics about the Vega network

      -

      PrepareVoteSubmissionResponse

      -

      Response to prepare a governance vote

      +

      StatisticsResponse

      +

      @@ -16072,17 +12693,10 @@

      PrepareVoteSubmissionResponse

      - - - - - - - - - + + - + @@ -16092,8 +12706,8 @@

      PrepareVoteSubmissionResponse

      -

      PrepareWithdrawRequest

      -

      Request for preparing a withdrawal

      +

      SubmitTransactionV2Request

      +

      Request for submitting a transaction v2 on Vega

      blobbytes

      A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction

      submissionvega.commands.v1.VoteSubmissionstatisticsStatistics

      A copy of the prepared vote

      @@ -16103,10 +12717,17 @@

      PrepareWithdrawRequest

      - - + + - + + + + + + + + @@ -16116,8 +12737,8 @@

      PrepareWithdrawRequest

      -

      PrepareWithdrawResponse

      -

      Response for preparing a withdrawal

      +

      SubmitTransactionV2Response

      +

      Response for submitting a transaction v2 on Vega

      withdrawvega.commands.v1.WithdrawSubmissiontxvega.commands.v1.Transaction

      An asset withdrawal

      A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain

      typeSubmitTransactionV2Request.Type

      Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response

      @@ -16127,10 +12748,11 @@

      PrepareWithdrawResponse

      - - + + - + @@ -16140,77 +12762,112 @@

      PrepareWithdrawResponse

      -

      PropagateChainEventRequest

      -

      Request for a new event sent by the blockchain queue to be propagated on Vega

      -
      blobbytessuccessbool

      Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction

      Success will be true if the transaction was accepted by the node, +**Important** - success does not mean that the event is confirmed by consensus

      - - - - +

      SubmitTransactionV2Request.Type

      +

      Blockchain transaction type

      +
      FieldTypeLabelDescription
      + + + + - - - - - - + + + + + - - - - - - + + + + + - - - - - - + + + + + - -
      NameNumberDescription
      evtvega.commands.v1.ChainEvent

      Chain event

      TYPE_UNSPECIFIED0

      pub_keystring

      Public key

      TYPE_ASYNC1

      The transaction will be submitted without waiting for response

      signaturebytes

      Signature

      TYPE_SYNC2

      The transaction will be submitted, and blocking until the +tendermint mempool return a response

      + + TYPE_COMMIT + 3 +

      The transaction will submitted, and blocking until the tendermint +network will have committed it into a block

      + + + -

      PropagateChainEventResponse

      -

      Response for a new event sent by the blockchain queue to be propagated on Vega

      +

      TradingService

      +

      + + + + + -
      Method NameRequest TypeResponse TypeDescription
      - - - - + + + + + + - - - - - - + + + + + + - -
      FieldTypeLabelDescription
      SubmitTransactionV2SubmitTransactionV2RequestSubmitTransactionV2Response

      Submit a signed transaction (v2)

      successbool

      Success will be true if the event was accepted by the node, -**Important** - success does not mean that the event is confirmed by consensus

      PropagateChainEventPropagateChainEventRequestPropagateChainEventResponse

      Propagate a chain event

      + + Statistics + StatisticsRequest + StatisticsResponse +

      Get Statistics on Vega

      + + + LastBlockHeight + LastBlockHeightRequest + LastBlockHeightResponse +

      Get the height of the last tendermint block

      + + + GetVegaTime + GetVegaTimeRequest + GetVegaTimeResponse +

      Get Time

      + + + ObserveEventBus + ObserveEventBusRequest stream + ObserveEventBusResponse stream +

      Subscribe to a stream of events from the core

      + + + -

      StatisticsRequest

      -

      A a request for statistics about the Vega network

      +
      +

      coreapi/v1/coreapi.proto

      Top +
      +

      -

      StatisticsResponse

      +

      Account

      @@ -16221,66 +12878,38 @@

      StatisticsResponse

      - statistics - vega.Statistics + party + string

      - - - - - - - -

      SubmitTransactionRequest

      -

      Request for submitting a transaction on Vega

      - - - - - - - - - - + + - + - - + + - + - -
      FieldTypeLabelDescription
      txvega.SignedBundlemarketstring

      A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain

      typeSubmitTransactionRequest.Typebalancestring

      Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response

      - - - - - -

      SubmitTransactionResponse

      -

      Response for submitting a transaction on Vega

      - - - - - - - + + + + + + - - + + - + @@ -16290,8 +12919,8 @@

      SubmitTransactionResponse

      -

      SubmitTransactionV2Request

      -

      Request for submitting a transaction v2 on Vega

      +

      ListAccountsRequest

      +

      FieldTypeLabelDescription
      assetstring

      successbooltypestring

      Success will be true if the transaction was accepted by the node, -**Important** - success does not mean that the event is confirmed by consensus

      @@ -16301,17 +12930,17 @@

      SubmitTransactionV2Request

      - - + + - + - - + + - + @@ -16321,8 +12950,8 @@

      SubmitTransactionV2Request

      -

      SubmitTransactionV2Response

      -

      Response for submitting a transaction v2 on Vega

      +

      ListAccountsResponse

      +

      txvega.commands.v1.Transactionpartystring

      A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain

      typeSubmitTransactionV2Request.Typemarketstring

      Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response

      @@ -16332,11 +12961,10 @@

      SubmitTransactionV2Response

      - - - - + + + + @@ -16346,8 +12974,8 @@

      SubmitTransactionV2Response

      -

      TradesByMarketRequest

      -

      Request for a list of trades on a market

      +

      ListAssetsRequest

      +

      successbool

      Success will be true if the transaction was accepted by the node, -**Important** - success does not mean that the event is confirmed by consensus

      accountsAccountrepeated

      @@ -16357,17 +12985,10 @@

      TradesByMarketRequest

      - + - - - - - - - - + @@ -16376,36 +12997,9 @@

      TradesByMarketRequest

      -

      Validated Fields

      -
      market_idasset string

      Market identifier, required field

      paginationPagination

      Pagination controls

      optional ID

      - - - - - - - - - - - - - - -
      FieldValidations
      market_id -
        - -
      • string_not_empty: true
      • - -
      -
      - - - - -

      TradesByMarketResponse

      -

      Response for a list of trades on a market

      +

      ListAssetsResponse

      +

      @@ -16415,10 +13009,10 @@

      TradesByMarketResponse

      - - + + - + @@ -16428,8 +13022,8 @@

      TradesByMarketResponse

      -

      TradesByOrderRequest

      -

      Request for a list of trades related to an order

      +

      ListMarketsDataRequest

      +

      tradesvega.Tradeassetsvega.Asset repeated

      A list of 0 or more trades

      @@ -16439,10 +13033,10 @@

      TradesByOrderRequest

      - + - + @@ -16452,8 +13046,8 @@

      TradesByOrderRequest

      -

      TradesByOrderResponse

      -

      Response for a list of trades related to an order

      +

      ListMarketsDataResponse

      +

      order_idmarket string

      Order identifier, required field

      @@ -16463,10 +13057,10 @@

      TradesByOrderResponse

      - - + + - + @@ -16476,8 +13070,8 @@

      TradesByOrderResponse

      -

      TradesByPartyRequest

      -

      Request for a list of trades relating to the given party

      Optionally, the list can be additionally filtered for trades by market

      +

      ListMarketsRequest

      +

      tradesvega.Trademarkets_datavega.MarketData repeated

      A list of 0 or more trades

      @@ -16487,24 +13081,10 @@

      TradesByPartyRequest

      - - - - - - - - + - - - - - - - - + @@ -16514,8 +13094,8 @@

      TradesByPartyRequest

      -

      TradesByPartyResponse

      -

      Response for a list of trades relating to a party

      +

      ListMarketsResponse

      +

      party_idstring

      Party identifier. Required field

      market_idmarket string

      Market identifier

      paginationPagination

      Pagination controls

      @@ -16525,10 +13105,10 @@

      TradesByPartyResponse

      - - + + - + @@ -16538,8 +13118,8 @@

      TradesByPartyResponse

      -

      TradesSubscribeRequest

      -

      Request to subscribe to a stream of (Trades)[#vega.Trade]

      +

      ListNetworkParametersRequest

      +

      tradesvega.Trademarketsvega.Market repeated

      A list of 0 or more trades

      @@ -16549,17 +13129,10 @@

      TradesSubscribeRequest

      - - - - - - - - + - + @@ -16569,8 +13142,8 @@

      TradesSubscribeRequest

      -

      TradesSubscribeResponse

      -

      A stream of trades

      +

      ListNetworkParametersResponse

      +

      market_idstring

      Market identifier

      party_idnetwork_parameter_key string

      Party identifier

      optional parameter key

      @@ -16580,10 +13153,10 @@

      TradesSubscribeResponse

      - - + + - + @@ -16593,14 +13166,14 @@

      TradesSubscribeResponse

      -

      TransferResponsesSubscribeRequest

      +

      ListPartiesRequest

      -

      TransferResponsesSubscribeResponse

      +

      ListPartiesResponse

      @@ -16611,9 +13184,9 @@

      TransferResponsesSubscribeRes

      - - - + + + @@ -16624,8 +13197,8 @@

      TransferResponsesSubscribeRes -

      WithdrawalRequest

      -

      A request to get a specific withdrawal by identifier

      +

      ListProposalsRequest

      +

      tradesvega.Tradenetwork_parametersvega.NetworkParameter repeated

      A list of 0 or more trades

      responsevega.TransferResponsepartiesvega.Partyrepeated

      @@ -16635,10 +13208,17 @@

      WithdrawalRequest

      - + + + + + + + + - + @@ -16647,36 +13227,40 @@

      WithdrawalRequest

      -

      Validated Fields

      -
      idproposalstring

      optional ID

      proposer string

      The identifier of the withdrawal

      optional party

      - + +

      ListProposalsResponse

      +

      + + +
      + + + + + - - + + + + - - - - - +
      FieldTypeLabelDescription
      FieldValidationsproposalsvega.Proposalrepeated

      id -
        +
      + -
    • string_not_empty: true
    • -
    - - - - + +

    ListValidatorsRequest

    +

    -

    WithdrawalResponse

    -

    A response for a withdrawal

    +

    ListValidatorsResponse

    +

    @@ -16686,10 +13270,10 @@

    WithdrawalResponse

    - - - - + + + + @@ -16699,8 +13283,8 @@

    WithdrawalResponse

    -

    WithdrawalsRequest

    -

    A request to get a list of withdrawal from a given party

    +

    ListVotesRequest

    +

    withdrawalvega.Withdrawal

    The withdrawal matching the identifier from the request

    validatorsvega.events.v1.ValidatorUpdaterepeated

    @@ -16710,48 +13294,28 @@

    WithdrawalsRequest

    - + - - - - -
    party_idproposal string

    The party to get the withdrawals for

    - - - - -

    Validated Fields

    - - - - - + - - - - + + + + - -
    FieldValidations

    party_id -
      - -
    • string_not_empty: true
    • - -
    -
    partystring

    + + -

    WithdrawalsResponse

    -

    The response for a list of withdrawals

    +

    ListVotesResponse

    +

    @@ -16761,10 +13325,10 @@

    WithdrawalsResponse

    - - + + - + @@ -16776,75 +13340,79 @@

    WithdrawalsResponse

    -

    SubmitTransactionRequest.Type

    -

    Blockchain transaction type

    + + + + +

    CoreApiService

    +

    withdrawalsvega.Withdrawalvotesvega.Vote repeated

    The list of withdrawals for the specified party

    - + - - + + + - - - + + + + - - - + + + + - - - + + + + - -
    NameNumberDescription
    Method NameRequest TypeResponse TypeDescription
    TYPE_UNSPECIFIED0ListAccountsListAccountsRequestListAccountsResponse

    TYPE_ASYNC1

    The transaction will be submitted without waiting for response

    ListAssetsListAssetsRequestListAssetsResponse

    TYPE_SYNC2

    The transaction will be submitted, and blocking until the -tendermint mempool return a response

    ListNetworkParametersListNetworkParametersRequestListNetworkParametersResponse

    TYPE_COMMIT3

    The transaction will submitted, and blocking until the tendermint -network will have committed it into a block

    ListPartiesListPartiesRequestListPartiesResponse

    - -

    SubmitTransactionV2Request.Type

    -

    Blockchain transaction type

    - - - - - + + + + + + - - + + + - - - + + + + - - - + + + + - - - + + + + @@ -16853,557 +13421,347 @@

    SubmitTransactionV2Request.Type< +
    +

    snapshot/v1/snapshot.proto

    Top +
    +

    -

    TradingDataService

    -

    -
    NameNumberDescription
    ListValidatorsListValidatorsRequestListValidatorsResponse

    TYPE_UNSPECIFIED0ListMarketsListMarketsRequestListMarketsResponse

    TYPE_ASYNC1

    The transaction will be submitted without waiting for response

    ListProposalsListProposalsRequestListProposalsResponse

    TYPE_SYNC2

    The transaction will be submitted, and blocking until the -tendermint mempool return a response

    ListMarketsDataListMarketsDataRequestListMarketsDataResponse

    TYPE_COMMIT3

    The transaction will submitted, and blocking until the tendermint -network will have committed it into a block

    ListVotesListVotesRequestListVotesResponse

    - - - - - - - - - - +

    AssetBalance

    +

    AssetBalance represents the total balance of a given asset for a party

    - - - - - - - - - - - - +
    Method NameRequest TypeResponse TypeDescription
    MarketAccountsMarketAccountsRequestMarketAccountsResponse

    Get a list of Accounts by Market

    PartyAccountsPartyAccountsRequestPartyAccountsResponse

    Get a list of Accounts by Party

    FeeInfrastructureAccountsFeeInfrastructureAccountsRequestFeeInfrastructureAccountsResponse

    Get a list of accounts holding infrastructure fees. -Can be filtered by asset, there will be 1 infrastructure fee account per -asset in the network.

    + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    CandlesCandlesRequestCandlesResponse

    Get a list of Candles by Market

    partystring

    MarketDataByIDMarketDataByIDRequestMarketDataByIDResponse

    Get Market Data by Market ID

    assetstring

    MarketsDataMarketsDataRequestMarketsDataResponse

    Get a list of Market Data

    balancestring

    MarketByIDMarketByIDRequestMarketByIDResponse

    Get a Market by ID

    - - MarketDepth - MarketDepthRequest - MarketDepthResponse -

    Get Market Depth

    - - - Markets - MarketsRequest - MarketsResponse -

    Get a list of Markets

    - - - OrderByMarketAndID - OrderByMarketAndIDRequest - OrderByMarketAndIDResponse -

    Get an Order by Market and Order ID

    - - - OrderByReference - OrderByReferenceRequest - OrderByReferenceResponse -

    Get an Order by Pending Order reference (UUID)

    - - - OrdersByMarket - OrdersByMarketRequest - OrdersByMarketResponse -

    Get a list of Orders by Market

    - +

    AssetEntry

    +

    AssetEntrty is a single (enabled) asset

    - - OrdersByParty - OrdersByPartyRequest - OrdersByPartyResponse -

    Get a list of Orders by Party

    - - - OrderByID - OrderByIDRequest - OrderByIDResponse -

    Get a specific order by order ID

    - + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    OrderVersionsByIDOrderVersionsByIDRequestOrderVersionsByIDResponse

    Get all versions of the order by its orderID

    idstring

    MarginLevelsMarginLevelsRequestMarginLevelsResponse

    Get Margin Levels by Party ID

    asset_detailsvega.AssetDetails

    PartiesPartiesRequestPartiesResponse

    Get a list of Parties

    + + + + + +

    Assets

    +

    Assets contains all the enabled assets as AssetEntries

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    assetsAssetEntryrepeated

    + + + + + +

    Checkpoint

    +

    Checkpoint aggregates the various engine snapshots

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    governancebytes

    assetsbytes

    collateralbytes

    network_parametersbytes

    delegationbytes

    + + + + + +

    Collateral

    +

    Collateral contains the balances per party

    + + + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    PartyByIDPartyByIDRequestPartyByIDResponse

    Get a Party by ID

    balancesAssetBalancerepeated

    PositionsByPartyPositionsByPartyRequestPositionsByPartyResponse

    Get a list of Positions by Party

    - - LastTrade - LastTradeRequest - LastTradeResponse -

    Get latest Trade

    - - - TradesByMarket - TradesByMarketRequest - TradesByMarketResponse -

    Get a list of Trades by Market

    - - - TradesByOrder - TradesByOrderRequest - TradesByOrderResponse -

    Get a list of Trades by Order

    - - - TradesByParty - TradesByPartyRequest - TradesByPartyResponse -

    Get a list of Trades by Party

    - - - GetProposals - GetProposalsRequest - GetProposalsResponse -

    Get governance data (proposals and votes) for all proposals

    - +

    Delegate

    +

    Delegate contains all entries for a checkpoint

    - - GetProposalsByParty - GetProposalsByPartyRequest - GetProposalsByPartyResponse -

    Get governance data (proposals and votes) for proposals by party authoring them

    - - - GetVotesByParty - GetVotesByPartyRequest - GetVotesByPartyResponse -

    Get votes by party casting them

    - + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    GetNewMarketProposalsGetNewMarketProposalsRequestGetNewMarketProposalsResponse

    Get governance data (proposals and votes) for proposals that aim creating new markets

    activeDelegateEntryrepeated

    GetUpdateMarketProposalsGetUpdateMarketProposalsRequestGetUpdateMarketProposalsResponse

    Get governance data (proposals and votes) for proposals that aim updating markets

    pendingDelegateEntryrepeated

    GetNetworkParametersProposalsGetNetworkParametersProposalsRequestGetNetworkParametersProposalsResponse

    Get governance data (proposals and votes) for proposals that aim updating Vega network parameters

    - - GetNewAssetProposals - GetNewAssetProposalsRequest - GetNewAssetProposalsResponse -

    Get governance data (proposals and votes) for proposals aiming to create new assets

    - - - GetProposalByID - GetProposalByIDRequest - GetProposalByIDResponse -

    Get governance data (proposals and votes) for a proposal located by ID

    - - - GetProposalByReference - GetProposalByReferenceRequest - GetProposalByReferenceResponse -

    Get governance data (proposals and votes) for a proposal located by reference

    - - - ObserveGovernance - ObserveGovernanceRequest - ObserveGovernanceResponse stream -

    Subscribe to a stream of all governance updates

    - - - ObservePartyProposals - ObservePartyProposalsRequest - ObservePartyProposalsResponse stream -

    Subscribe to a stream of proposal updates

    - +

    DelegateEntry

    +

    Delegated amounts for party/node

    undelegate and epoch seq are only relevant for pending entries

    - - ObservePartyVotes - ObservePartyVotesRequest - ObservePartyVotesResponse stream -

    Subscribe to a stream of votes cast by a specific party

    - - - ObserveProposalVotes - ObserveProposalVotesRequest - ObserveProposalVotesResponse stream -

    Subscribe to a stream of proposal votes

    - + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    ObserveEventBusObserveEventBusRequest streamObserveEventBusResponse stream

    Subscribe to a stream of events from the core

    partystring

    StatisticsStatisticsRequestStatisticsResponse

    Get Statistics on Vega

    nodestring

    LastBlockHeightLastBlockHeightRequestLastBlockHeightResponse

    amountstring

    GetVegaTimeGetVegaTimeRequestGetVegaTimeResponse

    Get Time

    undelegatebool

    AccountsSubscribeAccountsSubscribeRequestAccountsSubscribeResponse stream

    Subscribe to a stream of Accounts

    epoch_sequint64

    CandlesSubscribeCandlesSubscribeRequestCandlesSubscribeResponse stream

    Subscribe to a stream of Candles

    - - MarginLevelsSubscribe - MarginLevelsSubscribeRequest - MarginLevelsSubscribeResponse stream -

    Subscribe to a stream of Margin Levels

    - - - MarketDepthSubscribe - MarketDepthSubscribeRequest - MarketDepthSubscribeResponse stream -

    Subscribe to a stream of Market Depth

    - - - MarketDepthUpdatesSubscribe - MarketDepthUpdatesSubscribeRequest - MarketDepthUpdatesSubscribeResponse stream -

    Subscribe to a stream of Market Depth Price Level Updates

    - - - MarketsDataSubscribe - MarketsDataSubscribeRequest - MarketsDataSubscribeResponse stream -

    Subscribe to a stream of Markets Data

    - - - OrdersSubscribe - OrdersSubscribeRequest - OrdersSubscribeResponse stream -

    Subscribe to a stream of Orders

    - +

    NetParams

    +

    NetParams contains all network parameters

    - - PositionsSubscribe - PositionsSubscribeRequest - PositionsSubscribeResponse stream -

    Subscribe to a stream of Positions

    - - - TradesSubscribe - TradesSubscribeRequest - TradesSubscribeResponse stream -

    Subscribe to a stream of Trades

    - + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    TransferResponsesSubscribeTransferResponsesSubscribeRequestTransferResponsesSubscribeResponse stream

    Subscribe to a stream of Transfer Responses

    paramsvega.NetworkParameterrepeated

    GetNodeSignaturesAggregateGetNodeSignaturesAggregateRequestGetNodeSignaturesAggregateResponse

    Get an aggregate of signatures from all the nodes of the network

    - - AssetByID - AssetByIDRequest - AssetByIDResponse -

    Get an asset by its identifier

    - - - Assets - AssetsRequest - AssetsResponse -

    Get a list of all assets on Vega

    - - - EstimateFee - EstimateFeeRequest - EstimateFeeResponse -

    Get an estimate for the fee to be paid for a given order

    - - - EstimateMargin - EstimateMarginRequest - EstimateMarginResponse -

    Get an estimate for the margin required for a new order

    - - - ERC20WithdrawalApproval - ERC20WithdrawalApprovalRequest - ERC20WithdrawalApprovalResponse -

    Get the bundle approval for an ERC20 withdrawal, -these data are being used to bundle the call to the smart contract on the ethereum bridge

    - +

    Proposals

    +

    Proposals will contain all accepted proposals

    - - Withdrawal - WithdrawalRequest - WithdrawalResponse -

    Get a withdrawal by its identifier

    - - - Withdrawals - WithdrawalsRequest - WithdrawalsResponse -

    Get withdrawals for a party

    - + + + + + - - - - - - + + + + + + - - - - - - + +
    FieldTypeLabelDescription
    DepositDepositRequestDepositResponse

    Get a deposit by its identifier

    proposalsvega.Proposalrepeated

    DepositsDepositsRequestDepositsResponse

    Get deposits for a party

    - - NetworkParameters - NetworkParametersRequest - NetworkParametersResponse -

    Get the network parameters

    - - - LiquidityProvisions - LiquidityProvisionsRequest - LiquidityProvisionsResponse -

    Get the liquidity provision orders

    - - - OracleSpec - OracleSpecRequest - OracleSpecResponse -

    Get an oracle spec by ID

    - - - OracleSpecs - OracleSpecsRequest - OracleSpecsResponse -

    Get the oracle specs

    - - - OracleDataBySpec - OracleDataBySpecRequest - OracleDataBySpecResponse -

    Get all oracle data

    - +

    Snapshot

    +

    Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)

    - - + + + + + -

    TradingService

    -

    -
    FieldTypeLabelDescription
    - - - - + + + + + + - - - - - - + + + + + + - - - - - - + +
    Method NameRequest TypeResponse TypeDescription
    hashbytes

    PrepareSubmitOrderPrepareSubmitOrderRequestPrepareSubmitOrderResponse

    Prepare a submit order request

    statebytes

    PrepareCancelOrderPrepareCancelOrderRequestPrepareCancelOrderResponse

    Prepare a cancel order request

    - - PrepareAmendOrder - PrepareAmendOrderRequest - PrepareAmendOrderResponse -

    Prepare an amend order request

    - - - PrepareWithdraw - PrepareWithdrawRequest - PrepareWithdrawResponse -

    Request a withdrawal

    - - - SubmitTransaction - SubmitTransactionRequest - SubmitTransactionResponse -

    Submit a signed transaction

    - - - SubmitTransactionV2 - SubmitTransactionV2Request - SubmitTransactionV2Response -

    Submit a signed transaction (v2)

    - - - PrepareProposalSubmission - PrepareProposalSubmissionRequest - PrepareProposalSubmissionResponse -

    Prepare a governance proposal

    - - - PrepareVoteSubmission - PrepareVoteSubmissionRequest - PrepareVoteSubmissionResponse -

    Prepare a governance vote

    - - - PropagateChainEvent - PropagateChainEventRequest - PropagateChainEventResponse -

    Propagate a chain event

    - - - PrepareLiquidityProvision - PrepareLiquidityProvisionRequest - PrepareLiquidityProvisionResponse -

    Prepare a liquidity provision request

    - - - diff --git a/grpc/doc/index.md b/grpc/doc/index.md index cb497a1b..cf3a98d5 100644 --- a/grpc/doc/index.md +++ b/grpc/doc/index.md @@ -49,11 +49,22 @@ - [Market.State](#vega.Market.State) - [Market.TradingMode](#vega.Market.TradingMode) +- [assets.proto](#assets.proto) + - [Asset](#vega.Asset) + - [AssetDetails](#vega.AssetDetails) + - [BuiltinAsset](#vega.BuiltinAsset) + - [ERC20](#vega.ERC20) + - [vega.proto](#vega.proto) - [Account](#vega.Account) - [AuctionIndicativeState](#vega.AuctionIndicativeState) - [Candle](#vega.Candle) + - [Delegation](#vega.Delegation) - [Deposit](#vega.Deposit) + - [Epoch](#vega.Epoch) + - [EpochData](#vega.EpochData) + - [EpochParticipation](#vega.EpochParticipation) + - [EpochTimestamps](#vega.EpochTimestamps) - [Erc20WithdrawExt](#vega.Erc20WithdrawExt) - [ErrorDetail](#vega.ErrorDetail) - [EthereumConfig](#vega.EthereumConfig) @@ -69,6 +80,8 @@ - [MarketDepth](#vega.MarketDepth) - [MarketDepthUpdate](#vega.MarketDepthUpdate) - [NetworkParameter](#vega.NetworkParameter) + - [Node](#vega.Node) + - [NodeData](#vega.NodeData) - [Order](#vega.Order) - [OrderCancellationConfirmation](#vega.OrderCancellationConfirmation) - [OrderConfirmation](#vega.OrderConfirmation) @@ -79,17 +92,15 @@ - [Price](#vega.Price) - [PriceLevel](#vega.PriceLevel) - [PriceMonitoringBounds](#vega.PriceMonitoringBounds) + - [RewardDetails](#vega.RewardDetails) + - [RewardPerAssetDetail](#vega.RewardPerAssetDetail) - [RiskFactor](#vega.RiskFactor) - [RiskResult](#vega.RiskResult) - [RiskResult.PredictedNextRiskFactorsEntry](#vega.RiskResult.PredictedNextRiskFactorsEntry) - [RiskResult.RiskFactorsEntry](#vega.RiskResult.RiskFactorsEntry) - - [Signature](#vega.Signature) - - [SignedBundle](#vega.SignedBundle) - - [Statistics](#vega.Statistics) - [Timestamp](#vega.Timestamp) - [Trade](#vega.Trade) - [TradeSet](#vega.TradeSet) - - [Transaction](#vega.Transaction) - [Transfer](#vega.Transfer) - [TransferBalance](#vega.TransferBalance) - [TransferRequest](#vega.TransferRequest) @@ -103,6 +114,7 @@ - [Deposit.Status](#vega.Deposit.Status) - [Interval](#vega.Interval) - [LiquidityProvision.Status](#vega.LiquidityProvision.Status) + - [NodeStatus](#vega.NodeStatus) - [Order.Status](#vega.Order.Status) - [Order.TimeInForce](#vega.Order.TimeInForce) - [Order.Type](#vega.Order.Type) @@ -113,12 +125,6 @@ - [TransferType](#vega.TransferType) - [Withdrawal.Status](#vega.Withdrawal.Status) -- [assets.proto](#assets.proto) - - [Asset](#vega.Asset) - - [AssetDetails](#vega.AssetDetails) - - [BuiltinAsset](#vega.BuiltinAsset) - - [ERC20](#vega.ERC20) - - [governance.proto](#governance.proto) - [FutureProduct](#vega.FutureProduct) - [GovernanceData](#vega.GovernanceData) @@ -150,6 +156,7 @@ - [OrderCancellation](#vega.commands.v1.OrderCancellation) - [OrderSubmission](#vega.commands.v1.OrderSubmission) - [ProposalSubmission](#vega.commands.v1.ProposalSubmission) + - [RestoreSnapshot](#vega.commands.v1.RestoreSnapshot) - [UndelegateSubmission](#vega.commands.v1.UndelegateSubmission) - [VoteSubmission](#vega.commands.v1.VoteSubmission) - [WithdrawSubmission](#vega.commands.v1.WithdrawSubmission) @@ -173,6 +180,9 @@ - [EthereumAddress](#vega.EthereumAddress) - [Identifier](#vega.Identifier) - [RemoveValidator](#vega.RemoveValidator) + - [StakeDeposited](#vega.StakeDeposited) + - [StakeRemoved](#vega.StakeRemoved) + - [StakingEvent](#vega.StakingEvent) - [ValidatorEvent](#vega.ValidatorEvent) - [commands/v1/validator_commands.proto](#commands/v1/validator_commands.proto) @@ -186,6 +196,7 @@ - [events/v1/events.proto](#events/v1/events.proto) - [AuctionEvent](#vega.events.v1.AuctionEvent) - [BusEvent](#vega.events.v1.BusEvent) + - [CheckpointEvent](#vega.events.v1.CheckpointEvent) - [DelegationBalanceEvent](#vega.events.v1.DelegationBalanceEvent) - [EpochEvent](#vega.events.v1.EpochEvent) - [LossSocialization](#vega.events.v1.LossSocialization) @@ -193,17 +204,20 @@ - [MarketTick](#vega.events.v1.MarketTick) - [PendingDelegationBalanceEvent](#vega.events.v1.PendingDelegationBalanceEvent) - [PositionResolution](#vega.events.v1.PositionResolution) + - [RewardPayoutEvent](#vega.events.v1.RewardPayoutEvent) - [SettleDistressed](#vega.events.v1.SettleDistressed) - [SettlePosition](#vega.events.v1.SettlePosition) - - [StakingEvent](#vega.events.v1.StakingEvent) + - [StakeLinking](#vega.events.v1.StakeLinking) - [TimeUpdate](#vega.events.v1.TimeUpdate) - [TradeSettlement](#vega.events.v1.TradeSettlement) - [TransferResponses](#vega.events.v1.TransferResponses) - [TxErrorEvent](#vega.events.v1.TxErrorEvent) + - [ValidatorScoreEvent](#vega.events.v1.ValidatorScoreEvent) - [ValidatorUpdate](#vega.events.v1.ValidatorUpdate) - [BusEventType](#vega.events.v1.BusEventType) - - [StakingEvent.Type](#vega.events.v1.StakingEvent.Type) + - [StakeLinking.Status](#vega.events.v1.StakeLinking.Status) + - [StakeLinking.Type](#vega.events.v1.StakeLinking.Type) - [commands/v1/oracles.proto](#commands/v1/oracles.proto) - [OracleDataSubmission](#vega.commands.v1.OracleDataSubmission) @@ -216,165 +230,59 @@ - [Transaction](#vega.commands.v1.Transaction) - [api/trading.proto](#api/trading.proto) - - [AccountsSubscribeRequest](#api.v1.AccountsSubscribeRequest) - - [AccountsSubscribeResponse](#api.v1.AccountsSubscribeResponse) - - [AssetByIDRequest](#api.v1.AssetByIDRequest) - - [AssetByIDResponse](#api.v1.AssetByIDResponse) - - [AssetsRequest](#api.v1.AssetsRequest) - - [AssetsResponse](#api.v1.AssetsResponse) - - [CandlesRequest](#api.v1.CandlesRequest) - - [CandlesResponse](#api.v1.CandlesResponse) - - [CandlesSubscribeRequest](#api.v1.CandlesSubscribeRequest) - - [CandlesSubscribeResponse](#api.v1.CandlesSubscribeResponse) - - [DepositRequest](#api.v1.DepositRequest) - - [DepositResponse](#api.v1.DepositResponse) - - [DepositsRequest](#api.v1.DepositsRequest) - - [DepositsResponse](#api.v1.DepositsResponse) - - [ERC20WithdrawalApprovalRequest](#api.v1.ERC20WithdrawalApprovalRequest) - - [ERC20WithdrawalApprovalResponse](#api.v1.ERC20WithdrawalApprovalResponse) - - [EstimateFeeRequest](#api.v1.EstimateFeeRequest) - - [EstimateFeeResponse](#api.v1.EstimateFeeResponse) - - [EstimateMarginRequest](#api.v1.EstimateMarginRequest) - - [EstimateMarginResponse](#api.v1.EstimateMarginResponse) - - [FeeInfrastructureAccountsRequest](#api.v1.FeeInfrastructureAccountsRequest) - - [FeeInfrastructureAccountsResponse](#api.v1.FeeInfrastructureAccountsResponse) - - [GetNetworkParametersProposalsRequest](#api.v1.GetNetworkParametersProposalsRequest) - - [GetNetworkParametersProposalsResponse](#api.v1.GetNetworkParametersProposalsResponse) - - [GetNewAssetProposalsRequest](#api.v1.GetNewAssetProposalsRequest) - - [GetNewAssetProposalsResponse](#api.v1.GetNewAssetProposalsResponse) - - [GetNewMarketProposalsRequest](#api.v1.GetNewMarketProposalsRequest) - - [GetNewMarketProposalsResponse](#api.v1.GetNewMarketProposalsResponse) - - [GetNodeSignaturesAggregateRequest](#api.v1.GetNodeSignaturesAggregateRequest) - - [GetNodeSignaturesAggregateResponse](#api.v1.GetNodeSignaturesAggregateResponse) - - [GetProposalByIDRequest](#api.v1.GetProposalByIDRequest) - - [GetProposalByIDResponse](#api.v1.GetProposalByIDResponse) - - [GetProposalByReferenceRequest](#api.v1.GetProposalByReferenceRequest) - - [GetProposalByReferenceResponse](#api.v1.GetProposalByReferenceResponse) - - [GetProposalsByPartyRequest](#api.v1.GetProposalsByPartyRequest) - - [GetProposalsByPartyResponse](#api.v1.GetProposalsByPartyResponse) - - [GetProposalsRequest](#api.v1.GetProposalsRequest) - - [GetProposalsResponse](#api.v1.GetProposalsResponse) - - [GetUpdateMarketProposalsRequest](#api.v1.GetUpdateMarketProposalsRequest) - - [GetUpdateMarketProposalsResponse](#api.v1.GetUpdateMarketProposalsResponse) - [GetVegaTimeRequest](#api.v1.GetVegaTimeRequest) - [GetVegaTimeResponse](#api.v1.GetVegaTimeResponse) - - [GetVotesByPartyRequest](#api.v1.GetVotesByPartyRequest) - - [GetVotesByPartyResponse](#api.v1.GetVotesByPartyResponse) - [LastBlockHeightRequest](#api.v1.LastBlockHeightRequest) - [LastBlockHeightResponse](#api.v1.LastBlockHeightResponse) - - [LastTradeRequest](#api.v1.LastTradeRequest) - - [LastTradeResponse](#api.v1.LastTradeResponse) - - [LiquidityProvisionsRequest](#api.v1.LiquidityProvisionsRequest) - - [LiquidityProvisionsResponse](#api.v1.LiquidityProvisionsResponse) - - [MarginLevelsRequest](#api.v1.MarginLevelsRequest) - - [MarginLevelsResponse](#api.v1.MarginLevelsResponse) - - [MarginLevelsSubscribeRequest](#api.v1.MarginLevelsSubscribeRequest) - - [MarginLevelsSubscribeResponse](#api.v1.MarginLevelsSubscribeResponse) - - [MarketAccountsRequest](#api.v1.MarketAccountsRequest) - - [MarketAccountsResponse](#api.v1.MarketAccountsResponse) - - [MarketByIDRequest](#api.v1.MarketByIDRequest) - - [MarketByIDResponse](#api.v1.MarketByIDResponse) - - [MarketDataByIDRequest](#api.v1.MarketDataByIDRequest) - - [MarketDataByIDResponse](#api.v1.MarketDataByIDResponse) - - [MarketDepthRequest](#api.v1.MarketDepthRequest) - - [MarketDepthResponse](#api.v1.MarketDepthResponse) - - [MarketDepthSubscribeRequest](#api.v1.MarketDepthSubscribeRequest) - - [MarketDepthSubscribeResponse](#api.v1.MarketDepthSubscribeResponse) - - [MarketDepthUpdatesSubscribeRequest](#api.v1.MarketDepthUpdatesSubscribeRequest) - - [MarketDepthUpdatesSubscribeResponse](#api.v1.MarketDepthUpdatesSubscribeResponse) - - [MarketsDataRequest](#api.v1.MarketsDataRequest) - - [MarketsDataResponse](#api.v1.MarketsDataResponse) - - [MarketsDataSubscribeRequest](#api.v1.MarketsDataSubscribeRequest) - - [MarketsDataSubscribeResponse](#api.v1.MarketsDataSubscribeResponse) - - [MarketsRequest](#api.v1.MarketsRequest) - - [MarketsResponse](#api.v1.MarketsResponse) - - [NetworkParametersRequest](#api.v1.NetworkParametersRequest) - - [NetworkParametersResponse](#api.v1.NetworkParametersResponse) - [ObserveEventBusRequest](#api.v1.ObserveEventBusRequest) - [ObserveEventBusResponse](#api.v1.ObserveEventBusResponse) - - [ObserveGovernanceRequest](#api.v1.ObserveGovernanceRequest) - - [ObserveGovernanceResponse](#api.v1.ObserveGovernanceResponse) - - [ObservePartyProposalsRequest](#api.v1.ObservePartyProposalsRequest) - - [ObservePartyProposalsResponse](#api.v1.ObservePartyProposalsResponse) - - [ObservePartyVotesRequest](#api.v1.ObservePartyVotesRequest) - - [ObservePartyVotesResponse](#api.v1.ObservePartyVotesResponse) - - [ObserveProposalVotesRequest](#api.v1.ObserveProposalVotesRequest) - - [ObserveProposalVotesResponse](#api.v1.ObserveProposalVotesResponse) - - [OptionalProposalState](#api.v1.OptionalProposalState) - - [OracleDataBySpecRequest](#api.v1.OracleDataBySpecRequest) - - [OracleDataBySpecResponse](#api.v1.OracleDataBySpecResponse) - - [OracleSpecRequest](#api.v1.OracleSpecRequest) - - [OracleSpecResponse](#api.v1.OracleSpecResponse) - - [OracleSpecsRequest](#api.v1.OracleSpecsRequest) - - [OracleSpecsResponse](#api.v1.OracleSpecsResponse) - - [OrderByIDRequest](#api.v1.OrderByIDRequest) - - [OrderByIDResponse](#api.v1.OrderByIDResponse) - - [OrderByMarketAndIDRequest](#api.v1.OrderByMarketAndIDRequest) - - [OrderByMarketAndIDResponse](#api.v1.OrderByMarketAndIDResponse) - - [OrderByReferenceRequest](#api.v1.OrderByReferenceRequest) - - [OrderByReferenceResponse](#api.v1.OrderByReferenceResponse) - - [OrderVersionsByIDRequest](#api.v1.OrderVersionsByIDRequest) - - [OrderVersionsByIDResponse](#api.v1.OrderVersionsByIDResponse) - - [OrdersByMarketRequest](#api.v1.OrdersByMarketRequest) - - [OrdersByMarketResponse](#api.v1.OrdersByMarketResponse) - - [OrdersByPartyRequest](#api.v1.OrdersByPartyRequest) - - [OrdersByPartyResponse](#api.v1.OrdersByPartyResponse) - - [OrdersSubscribeRequest](#api.v1.OrdersSubscribeRequest) - - [OrdersSubscribeResponse](#api.v1.OrdersSubscribeResponse) - - [Pagination](#api.v1.Pagination) - - [PartiesRequest](#api.v1.PartiesRequest) - - [PartiesResponse](#api.v1.PartiesResponse) - - [PartyAccountsRequest](#api.v1.PartyAccountsRequest) - - [PartyAccountsResponse](#api.v1.PartyAccountsResponse) - - [PartyByIDRequest](#api.v1.PartyByIDRequest) - - [PartyByIDResponse](#api.v1.PartyByIDResponse) - - [PositionsByPartyRequest](#api.v1.PositionsByPartyRequest) - - [PositionsByPartyResponse](#api.v1.PositionsByPartyResponse) - - [PositionsSubscribeRequest](#api.v1.PositionsSubscribeRequest) - - [PositionsSubscribeResponse](#api.v1.PositionsSubscribeResponse) - - [PrepareAmendOrderRequest](#api.v1.PrepareAmendOrderRequest) - - [PrepareAmendOrderResponse](#api.v1.PrepareAmendOrderResponse) - - [PrepareCancelOrderRequest](#api.v1.PrepareCancelOrderRequest) - - [PrepareCancelOrderResponse](#api.v1.PrepareCancelOrderResponse) - - [PrepareLiquidityProvisionRequest](#api.v1.PrepareLiquidityProvisionRequest) - - [PrepareLiquidityProvisionResponse](#api.v1.PrepareLiquidityProvisionResponse) - - [PrepareProposalSubmissionRequest](#api.v1.PrepareProposalSubmissionRequest) - - [PrepareProposalSubmissionResponse](#api.v1.PrepareProposalSubmissionResponse) - - [PrepareSubmitOrderRequest](#api.v1.PrepareSubmitOrderRequest) - - [PrepareSubmitOrderResponse](#api.v1.PrepareSubmitOrderResponse) - - [PrepareVoteSubmissionRequest](#api.v1.PrepareVoteSubmissionRequest) - - [PrepareVoteSubmissionResponse](#api.v1.PrepareVoteSubmissionResponse) - - [PrepareWithdrawRequest](#api.v1.PrepareWithdrawRequest) - - [PrepareWithdrawResponse](#api.v1.PrepareWithdrawResponse) - [PropagateChainEventRequest](#api.v1.PropagateChainEventRequest) - [PropagateChainEventResponse](#api.v1.PropagateChainEventResponse) + - [Statistics](#api.v1.Statistics) - [StatisticsRequest](#api.v1.StatisticsRequest) - [StatisticsResponse](#api.v1.StatisticsResponse) - - [SubmitTransactionRequest](#api.v1.SubmitTransactionRequest) - - [SubmitTransactionResponse](#api.v1.SubmitTransactionResponse) - [SubmitTransactionV2Request](#api.v1.SubmitTransactionV2Request) - [SubmitTransactionV2Response](#api.v1.SubmitTransactionV2Response) - - [TradesByMarketRequest](#api.v1.TradesByMarketRequest) - - [TradesByMarketResponse](#api.v1.TradesByMarketResponse) - - [TradesByOrderRequest](#api.v1.TradesByOrderRequest) - - [TradesByOrderResponse](#api.v1.TradesByOrderResponse) - - [TradesByPartyRequest](#api.v1.TradesByPartyRequest) - - [TradesByPartyResponse](#api.v1.TradesByPartyResponse) - - [TradesSubscribeRequest](#api.v1.TradesSubscribeRequest) - - [TradesSubscribeResponse](#api.v1.TradesSubscribeResponse) - - [TransferResponsesSubscribeRequest](#api.v1.TransferResponsesSubscribeRequest) - - [TransferResponsesSubscribeResponse](#api.v1.TransferResponsesSubscribeResponse) - - [WithdrawalRequest](#api.v1.WithdrawalRequest) - - [WithdrawalResponse](#api.v1.WithdrawalResponse) - - [WithdrawalsRequest](#api.v1.WithdrawalsRequest) - - [WithdrawalsResponse](#api.v1.WithdrawalsResponse) - - - [SubmitTransactionRequest.Type](#api.v1.SubmitTransactionRequest.Type) + - [SubmitTransactionV2Request.Type](#api.v1.SubmitTransactionV2Request.Type) - - [TradingDataService](#api.v1.TradingDataService) - [TradingService](#api.v1.TradingService) +- [coreapi/v1/coreapi.proto](#coreapi/v1/coreapi.proto) + - [Account](#vega.coreapi.v1.Account) + - [ListAccountsRequest](#vega.coreapi.v1.ListAccountsRequest) + - [ListAccountsResponse](#vega.coreapi.v1.ListAccountsResponse) + - [ListAssetsRequest](#vega.coreapi.v1.ListAssetsRequest) + - [ListAssetsResponse](#vega.coreapi.v1.ListAssetsResponse) + - [ListMarketsDataRequest](#vega.coreapi.v1.ListMarketsDataRequest) + - [ListMarketsDataResponse](#vega.coreapi.v1.ListMarketsDataResponse) + - [ListMarketsRequest](#vega.coreapi.v1.ListMarketsRequest) + - [ListMarketsResponse](#vega.coreapi.v1.ListMarketsResponse) + - [ListNetworkParametersRequest](#vega.coreapi.v1.ListNetworkParametersRequest) + - [ListNetworkParametersResponse](#vega.coreapi.v1.ListNetworkParametersResponse) + - [ListPartiesRequest](#vega.coreapi.v1.ListPartiesRequest) + - [ListPartiesResponse](#vega.coreapi.v1.ListPartiesResponse) + - [ListProposalsRequest](#vega.coreapi.v1.ListProposalsRequest) + - [ListProposalsResponse](#vega.coreapi.v1.ListProposalsResponse) + - [ListValidatorsRequest](#vega.coreapi.v1.ListValidatorsRequest) + - [ListValidatorsResponse](#vega.coreapi.v1.ListValidatorsResponse) + - [ListVotesRequest](#vega.coreapi.v1.ListVotesRequest) + - [ListVotesResponse](#vega.coreapi.v1.ListVotesResponse) + + - [CoreApiService](#vega.coreapi.v1.CoreApiService) + +- [snapshot/v1/snapshot.proto](#snapshot/v1/snapshot.proto) + - [AssetBalance](#vega.snapshot.v1.AssetBalance) + - [AssetEntry](#vega.snapshot.v1.AssetEntry) + - [Assets](#vega.snapshot.v1.Assets) + - [Checkpoint](#vega.snapshot.v1.Checkpoint) + - [Collateral](#vega.snapshot.v1.Collateral) + - [Delegate](#vega.snapshot.v1.Delegate) + - [DelegateEntry](#vega.snapshot.v1.DelegateEntry) + - [NetParams](#vega.snapshot.v1.NetParams) + - [Proposals](#vega.snapshot.v1.Proposals) + - [Snapshot](#vega.snapshot.v1.Snapshot) + - [tm/replay.proto](#tm/replay.proto) - [BlockParams](#tm.BlockParams) - [ConsensusParams](#tm.ConsensusParams) @@ -1080,6 +988,89 @@ The trading mode the market is currently running, also referred to as 'marke + +

    Top

    + +## assets.proto + + + + + +### Asset +The Vega representation of an external asset + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | Internal identifier of the asset | +| details | [AssetDetails](#vega.AssetDetails) | | The definition of the external source for this asset | + + + + + + + + +### AssetDetails +The Vega representation of an external asset + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | Name of the asset (e.g: Great British Pound) | +| symbol | [string](#string) | | Symbol of the asset (e.g: GBP) | +| total_supply | [string](#string) | | Total circulating supply for the asset | +| decimals | [uint64](#uint64) | | Number of decimal / precision handled by this asset | +| min_lp_stake | [string](#string) | | Min stake required for this asset from liquidity providers | +| builtin_asset | [BuiltinAsset](#vega.BuiltinAsset) | | A built-in asset | +| erc20 | [ERC20](#vega.ERC20) | | An Ethereum ERC20 asset | + + + + + + + + +### BuiltinAsset +A Vega internal asset + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| max_faucet_amount_mint | [string](#string) | | Maximum amount that can be requested by a party through the built-in asset faucet at a time | + + + + + + + + +### ERC20 +An ERC20 token based asset, living on the ethereum network + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contract_address | [string](#string) | | The address of the contract for the token, on the ethereum network | + + + + + + + + + + + + + + +

    Top

    @@ -1149,6 +1140,24 @@ referred to commonly as a candlestick or candle + + +### Delegation + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| party | [string](#string) | | Party which is delegating | +| node_id | [string](#string) | | Node ID | +| amount | [string](#string) | | Amount delegated | +| epoch_seq | [string](#string) | | Epoch of delegation | + + + + + + ### Deposit @@ -1171,6 +1180,77 @@ A deposit on to the Vega network + + +### Epoch + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| seq | [uint64](#uint64) | | Sequence is used as epoch indentifier | +| timestamps | [EpochTimestamps](#vega.EpochTimestamps) | | Timestamps for start/end etc | +| validators | [Node](#vega.Node) | repeated | Validators that participated in this epoch | +| delegations | [Delegation](#vega.Delegation) | repeated | List of all delegations in epoch | + + + + + + + + +### EpochData + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| total | [int32](#int32) | | Total number of epochs since node was created | +| offline | [int32](#int32) | | Total number of offline epochs since node was created | +| online | [int32](#int32) | | Total number of online epochs since node was created | + + + + + + + + +### EpochParticipation + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| epoch | [Epoch](#vega.Epoch) | | | +| offline | [uint64](#uint64) | | | +| online | [uint64](#uint64) | | | +| total_rewards | [double](#double) | | | + + + + + + + + +### EpochTimestamps +Describes in both human readable and block time when an epoch spans + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| start_time | [int64](#int64) | | Timestamp of epoch start in nanoseconds, empty if not started - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | +| end_time | [int64](#int64) | | Timestamp of epoch end in nanoseconds, empty if not started - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | +| first_block | [uint64](#uint64) | | Height of first block in the epoch | +| last_block | [uint64](#uint64) | | Height of last block in the epoch, empty if not ended | + + + + + + ### Erc20WithdrawExt @@ -1215,6 +1295,7 @@ Ethereum configuration details | chain_id | [string](#string) | | Chain identifier of this Ethereum network | | bridge_address | [string](#string) | | Bridge address for this Ethereum network | | confirmations | [uint32](#uint32) | | Number of confirmations | +| staking_bridge_addresses | [string](#string) | repeated | Staking Bridge addresses for the ethereum network | @@ -1464,6 +1545,51 @@ Represents a network parameter on Vega + + +### Node + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | The node url eg n01.vega.xyz | +| pub_key | [string](#string) | | Pub key of the node operator | +| info_url | [string](#string) | | URL where I can find out more info on the node | +| location | [string](#string) | | Country code for the location of the node | +| staked_by_operator | [string](#string) | | The amount the node has put up themselves | +| staked_by_delegates | [string](#string) | | The amount of stake that has been delegated by token holders | +| staked_total | [string](#string) | | Total amount staked on node | +| max_intended_stake | [string](#string) | | Max amount of (wanted) stake, is this a network param or a node param | +| pending_stake | [string](#string) | | Amount of stake on the next epoch | +| epoch_data | [EpochData](#vega.EpochData) | | Informantion about epoch | +| status | [NodeStatus](#vega.NodeStatus) | | Node status | +| delagations | [Delegation](#vega.Delegation) | repeated | Node's delegations | + + + + + + + + +### NodeData + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| staked_total | [string](#string) | | Total staked amount across all nodes | +| total_nodes | [uint32](#uint32) | | Total number of nodes | +| inactive_nodes | [uint32](#uint32) | | Number of inactive nodes | +| validating_nodes | [uint32](#uint32) | | Number of nodes validating | +| uptime | [float](#float) | | Total uptime for all epochs across all nodes | + + + + + + ### Order @@ -1538,6 +1664,7 @@ A party represents an entity who wishes to trade on or query a Vega network | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | id | [string](#string) | | A unique identifier for the party, typically represented by a public key | +| delegations | [Delegation](#vega.Delegation) | repeated | | @@ -1648,6 +1775,43 @@ Represents a list of valid (at the current timestamp) price ranges per associate + + +### RewardDetails +Details for a single reward payment + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| asset_id | [string](#string) | | | +| party_id | [string](#string) | | | +| epoch | [uint64](#uint64) | | | +| amount | [string](#string) | | | +| percentage_of_total | [string](#string) | | | +| received_at | [int64](#int64) | | | + + + + + + + + +### RewardPerAssetDetail +Details for rewards for a single asset + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| asset | [string](#string) | | asset details | +| details | [RewardDetails](#vega.RewardDetails) | repeated | rewards ordered by received_at | +| total_for_asset | [string](#string) | | Total amount of rewards for the asset | + + + + + + ### RiskFactor @@ -1715,134 +1879,54 @@ Risk results are calculated internally by Vega to attempt to maintain safe tradi - + -### Signature -A signature to be authenticate a transaction -and to be verified by the vega network +### Timestamp +A timestamp in nanoseconds since epoch +See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| sig | [bytes](#bytes) | | The bytes of the signature | -| algo | [string](#string) | | The algorithm used to create the signature | -| version | [uint32](#uint32) | | The version of the signature used to create the signature | +| value | [int64](#int64) | | Timestamp value | - + -### SignedBundle -A bundle of a transaction and it's signature +### Trade +A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| tx | [bytes](#bytes) | | Transaction payload (proto marshalled) | -| sig | [Signature](#vega.Signature) | | The signature authenticating the transaction | +| id | [string](#string) | | Unique identifier for the trade (generated by Vega) | +| market_id | [string](#string) | | Market identifier (the market that the trade occurred on) | +| price | [uint64](#uint64) | | Price for the trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| size | [uint64](#uint64) | | Size filled for the trade | +| buyer | [string](#string) | | Unique party identifier for the buyer | +| seller | [string](#string) | | Unique party identifier for the seller | +| aggressor | [Side](#vega.Side) | | Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side) | +| buy_order | [string](#string) | | Identifier of the order from the buy side | +| sell_order | [string](#string) | | Identifier of the order from the sell side | +| timestamp | [int64](#int64) | | Timestamp for when the trade occurred, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | +| type | [Trade.Type](#vega.Trade.Type) | | Type for the trade - See [`Trade.Type`](#vega.Trade.Type) | +| buyer_fee | [Fee](#vega.Fee) | | Fee amount charged to the buyer party for the trade | +| seller_fee | [Fee](#vega.Fee) | | Fee amount charged to the seller party for the trade | +| buyer_auction_batch | [uint64](#uint64) | | Auction batch number that the buy side order was placed in | +| seller_auction_batch | [uint64](#uint64) | | Auction batch number that the sell side order was placed in | - - -### Statistics -Vega domain specific statistics as reported by the node the caller is connected to - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| block_height | [uint64](#uint64) | | Current block height as reported by the Vega blockchain | -| backlog_length | [uint64](#uint64) | | Current backlog length (number of transactions) that are waiting to be included in a block | -| total_peers | [uint64](#uint64) | | Total number of connected peers to this node | -| genesis_time | [string](#string) | | Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision | -| current_time | [string](#string) | | Current system date and time formatted in ISO-8601 datetime format with nanosecond precision | -| vega_time | [string](#string) | | Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision | -| status | [ChainStatus](#vega.ChainStatus) | | Status of the connection to the Vega blockchain - See [`ChainStatus`](#vega.ChainStatus) | -| tx_per_block | [uint64](#uint64) | | Transactions per block | -| average_tx_bytes | [uint64](#uint64) | | Average transaction size in bytes | -| average_orders_per_block | [uint64](#uint64) | | Average orders per block | -| trades_per_second | [uint64](#uint64) | | Trades emitted per second | -| orders_per_second | [uint64](#uint64) | | Orders processed per second | -| total_markets | [uint64](#uint64) | | Total markets on this Vega network | -| total_amend_order | [uint64](#uint64) | | Total number of order amendments since genesis (on all markets) | -| total_cancel_order | [uint64](#uint64) | | Total number of order cancellations since genesis (on all markets) | -| total_create_order | [uint64](#uint64) | | Total number of order submissions since genesis (on all markets) | -| total_orders | [uint64](#uint64) | | Total number of orders processed since genesis (on all markets) | -| total_trades | [uint64](#uint64) | | Total number of trades emitted since genesis (on all markets) | -| order_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to order data | -| trade_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to trade data | -| candle_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to candle-stick data | -| market_depth_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market depth data | -| positions_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to positions data | -| account_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to account data | -| market_data_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market data | -| app_version_hash | [string](#string) | | The version hash of the Vega node software | -| app_version | [string](#string) | | The version of the Vega node software | -| chain_version | [string](#string) | | The version of the underlying Vega blockchain | -| block_duration | [uint64](#uint64) | | Current block duration, in nanoseconds | -| uptime | [string](#string) | | Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision | -| chain_id | [string](#string) | | Unique identifier for the underlying Vega blockchain | -| market_depth_updates_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market depth update data | - - - - - - - - -### Timestamp -A timestamp in nanoseconds since epoch -See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| value | [int64](#int64) | | Timestamp value | - - - - - - - - -### Trade -A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Unique identifier for the trade (generated by Vega) | -| market_id | [string](#string) | | Market identifier (the market that the trade occurred on) | -| price | [uint64](#uint64) | | Price for the trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | -| size | [uint64](#uint64) | | Size filled for the trade | -| buyer | [string](#string) | | Unique party identifier for the buyer | -| seller | [string](#string) | | Unique party identifier for the seller | -| aggressor | [Side](#vega.Side) | | Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side) | -| buy_order | [string](#string) | | Identifier of the order from the buy side | -| sell_order | [string](#string) | | Identifier of the order from the sell side | -| timestamp | [int64](#int64) | | Timestamp for when the trade occurred, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | -| type | [Trade.Type](#vega.Trade.Type) | | Type for the trade - See [`Trade.Type`](#vega.Trade.Type) | -| buyer_fee | [Fee](#vega.Fee) | | Fee amount charged to the buyer party for the trade | -| seller_fee | [Fee](#vega.Fee) | | Fee amount charged to the seller party for the trade | -| buyer_auction_batch | [uint64](#uint64) | | Auction batch number that the buy side order was placed in | -| seller_auction_batch | [uint64](#uint64) | | Auction batch number that the sell side order was placed in | - - - - - - - - -### TradeSet + + +### TradeSet @@ -1855,25 +1939,6 @@ A trade occurs when an aggressive order crosses one or more passive orders on th - - -### Transaction -Represents a transaction to be sent to Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| input_data | [bytes](#bytes) | | One of the set of Vega commands (proto marshalled) | -| nonce | [uint64](#uint64) | | A random number used to provide uniqueness and prevent against replay attack | -| block_height | [uint64](#uint64) | | The block height associated to the transaction, this should always be current block height of the node at the time of sending the Tx and block height is used as a mechanism for replay protection | -| address | [bytes](#bytes) | | The address of the sender | -| pub_key | [bytes](#bytes) | | The public key of the sender | - - - - - - ### Transfer @@ -2090,6 +2155,19 @@ Status of a liquidity provision order + + +### NodeStatus +Node status type + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NODE_STATUS_UNSPECIFIED | 0 | | +| NODE_STATUS_VALIDATOR | 1 | The node is validating | +| NODE_STATUS_NON_VALIDATOR | 2 | The node is non-validating | + + + ### Order.Status @@ -2296,89 +2374,6 @@ The status of the withdrawal - -

    Top

    - -## assets.proto - - - - - -### Asset -The Vega representation of an external asset - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Internal identifier of the asset | -| details | [AssetDetails](#vega.AssetDetails) | | The definition of the external source for this asset | - - - - - - - - -### AssetDetails -The Vega representation of an external asset - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| name | [string](#string) | | Name of the asset (e.g: Great British Pound) | -| symbol | [string](#string) | | Symbol of the asset (e.g: GBP) | -| total_supply | [string](#string) | | Total circulating supply for the asset | -| decimals | [uint64](#uint64) | | Number of decimal / precision handled by this asset | -| min_lp_stake | [string](#string) | | Min stake required for this asset from liquidity providers | -| builtin_asset | [BuiltinAsset](#vega.BuiltinAsset) | | A built-in asset | -| erc20 | [ERC20](#vega.ERC20) | | An Ethereum ERC20 asset | - - - - - - - - -### BuiltinAsset -A Vega internal asset - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| max_faucet_amount_mint | [string](#string) | | Maximum amount that can be requested by a party through the built-in asset faucet at a time | - - - - - - - - -### ERC20 -An ERC20 token based asset, living on the ethereum network - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contract_address | [string](#string) | | The address of the contract for the token, on the ethereum network | - - - - - - - - - - - - - - -

    Top

    @@ -2896,6 +2891,21 @@ vega network governance + + +### RestoreSnapshot +A command that loads the state from a given checkpoint + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| data | [bytes](#bytes) | | | + + + + + + ### UndelegateSubmission @@ -3241,6 +3251,60 @@ A message to notify when a validator is being removed from the Vega network + + +### StakeDeposited + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ethereum_address | [string](#string) | | Ethereum Address of the user depositing stake (hex encode with 0x prefix) | +| vega_public_key | [string](#string) | | The public of the party receiving the stake deposit (hex encode) | +| amount | [string](#string) | | The amount deposited (base 10) | +| block_time | [int64](#int64) | | The time at which the block was produced will be used to inform the core at what time the stake started to be available. | + + + + + + + + +### StakeRemoved + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ethereum_address | [string](#string) | | Ethereum address of the user removing stake (hex encode with 0x prefix) | +| vega_public_key | [string](#string) | | The public key of the party from which to remove stake (hex encode) | +| amount | [string](#string) | | The amount removed (base 10) | +| block_time | [int64](#int64) | | The time at which the block was produced will be used to inform the core at what time the stake was made unavailable. | + + + + + + + + +### StakingEvent + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| index | [uint64](#uint64) | | Index of the transaction | +| block | [uint64](#uint64) | | The block in which the transaction was added | +| stake_deposited | [StakeDeposited](#vega.StakeDeposited) | | | +| stake_removed | [StakeRemoved](#vega.StakeRemoved) | | | + + + + + + ### ValidatorEvent @@ -3288,6 +3352,7 @@ An event forwarded to the Vega network to provide information on events happenin | erc20 | [vega.ERC20Event](#vega.ERC20Event) | | Ethereum ERC20 event | | btc | [vega.BTCEvent](#vega.BTCEvent) | | Bitcoin BTC event | | validator | [vega.ValidatorEvent](#vega.ValidatorEvent) | | Validator event | +| staking_event | [vega.StakingEvent](#vega.StakingEvent) | | Ethereum Staking event | @@ -3302,8 +3367,9 @@ Used to Register a node as a validator during network start-up | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pub_key | [bytes](#bytes) | | Public key, required field | -| chain_pub_key | [bytes](#bytes) | | Public key for the blockchain, required field | +| vega_pub_key | [string](#string) | | Vega public key, required field | +| ethereum_address | [string](#string) | | Ethereum public key, required field | +| chain_pub_key | [string](#string) | | Public key for the blockchain, required field | | info_url | [string](#string) | | URL with more info on the node | | country | [string](#string) | | Country code (ISO 3166-1 alpha-2) for the location of the node | @@ -3435,10 +3501,12 @@ A bus event is a container for event bus events emitted by Vega | oracle_spec | [oracles.v1.OracleSpec](#oracles.v1.OracleSpec) | | OracleSpec events | | oracle_data | [oracles.v1.OracleData](#oracles.v1.OracleData) | | OracleData events | | delegation_balance | [DelegationBalanceEvent](#vega.events.v1.DelegationBalanceEvent) | | Delegation balance events | -| pending_delegation_balance | [PendingDelegationBalanceEvent](#vega.events.v1.PendingDelegationBalanceEvent) | | Pending delegation balance events | +| validator_score | [ValidatorScoreEvent](#vega.events.v1.ValidatorScoreEvent) | | Validator score calcualted | | epoch_event | [EpochEvent](#vega.events.v1.EpochEvent) | | Epoch update events - See [Epoch](#vega.Epoch) | | validator_update | [ValidatorUpdate](#vega.events.v1.ValidatorUpdate) | | Validator update events | -| staking_event | [StakingEvent](#vega.events.v1.StakingEvent) | | Staking event | +| stake_linking | [StakeLinking](#vega.events.v1.StakeLinking) | | Staking event | +| reward_payout | [RewardPayoutEvent](#vega.events.v1.RewardPayoutEvent) | | Reward payout event | +| checkpoint | [CheckpointEvent](#vega.events.v1.CheckpointEvent) | | Checkpoint was created | | market | [MarketEvent](#vega.events.v1.MarketEvent) | | Market tick events - See [MarketEvent](#vega.MarketEvent) | | tx_err_event | [TxErrorEvent](#vega.events.v1.TxErrorEvent) | | Transaction error events, not included in the ALL event type | @@ -3447,6 +3515,23 @@ A bus event is a container for event bus events emitted by Vega + + +### CheckpointEvent + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| hash | [string](#string) | | | +| block_hash | [string](#string) | | | +| block_height | [uint64](#uint64) | | | + + + + + + ### DelegationBalanceEvent @@ -3458,6 +3543,7 @@ DelegationBalanceEvent - updates on the delegation balance of a party to a node | party | [string](#string) | | | | node_id | [string](#string) | | | | amount | [uint64](#uint64) | | | +| epoch_seq | [string](#string) | | | @@ -3544,6 +3630,7 @@ PendingDelegationBalanceEvent - updates on the delegation/undelegation balance o | node_id | [string](#string) | | | | delegation_amount | [uint64](#uint64) | | | | undelegation_amount | [uint64](#uint64) | | | +| epoch_seq | [string](#string) | | | @@ -3568,6 +3655,26 @@ A position resolution event contains information on distressed trades + + +### RewardPayoutEvent + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| party | [string](#string) | | | +| epoch_seq | [string](#string) | | | +| asset | [string](#string) | | | +| amount | [string](#string) | | | +| percent_of_total_reward | [string](#string) | | | +| timestamp | [int64](#int64) | | | + + + + + + ### SettleDistressed @@ -3604,20 +3711,23 @@ A settle position event contains position settlement information for a party - + -### StakingEvent -StakingEvent - an event notifying of stake being deposited or removed for a given party +### StakeLinking +StakeLinking - an event notifying of stake being deposited or removed for a given party These events are emitted for every Staking deposit or removed accepted by the network | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | id | [string](#string) | | The internal ID for this staking event | -| type | [StakingEvent.Type](#vega.events.v1.StakingEvent.Type) | | The type of event | +| type | [StakeLinking.Type](#vega.events.v1.StakeLinking.Type) | | The type of event | | ts | [int64](#int64) | | The timestamps at which the event was emitted by ethereum | | party | [string](#string) | | The party to whom the event is directed at. | | amount | [string](#string) | | The amount of stake deposited or removed | +| status | [StakeLinking.Status](#vega.events.v1.StakeLinking.Status) | | The status of the event | +| finalized_at | [int64](#int64) | | The time at which the vega network finalized the state of the event | +| tx_hash | [string](#string) | | The hash of the transaction from which the events happen | @@ -3693,27 +3803,46 @@ A transfer responses event contains a collection of transfer information - + -### ValidatorUpdate -A validator update event contains information about validator node +### ValidatorScoreEvent +ValidatorScoreEvent is the score a validator gets for a given epoch | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pub_key | [string](#string) | | Public key of validator node | -| tm_pub_key | [string](#string) | | Public key of Tendermint | -| info_url | [string](#string) | | URL with more info on the node | -| country | [string](#string) | | Country code (ISO 3166-1 alpha-2) for the location of the node | +| node_id | [string](#string) | | | +| epoch_seq | [string](#string) | | | +| validator_score | [string](#string) | | | +| normalised_score | [string](#string) | | | + +### ValidatorUpdate +A validator update event contains information about validator node - + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| vega_pub_key | [string](#string) | | Vega public key of validator node | +| ethereum_address | [string](#string) | | Ethereum public key of validator node | +| tm_pub_key | [string](#string) | | Public key of Tendermint | +| info_url | [string](#string) | | URL with more info on the node | +| country | [string](#string) | | Country code (ISO 3166-1 alpha-2) for the location of the node | + + + + + + + + + ### BusEventType An (event) bus event type is used to specify a type of event @@ -3753,25 +3882,41 @@ Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data | BUS_EVENT_TYPE_ORACLE_SPEC | 27 | Event indicating an oracle spec has been created or updated | | BUS_EVENT_TYPE_ORACLE_DATA | 28 | Event indicating that an oracle data has been broadcast | | BUS_EVENT_TYPE_DELEGATION_BALANCE | 29 | Event indicating that an delegation balance of a party to a node for current epoch has changed | -| BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE | 30 | Event indicating that an delegation balance of a party to a node for next epoch has changed | +| BUS_EVENT_TYPE_VALIDATOR_SCORE | 30 | Event indicating the validator score for the given epoch | | BUS_EVENT_TYPE_EPOCH_UPDATE | 31 | Event indicating the start or end of an epoch | | BUS_EVENT_TYPE_VALIDATOR_UPDATE | 32 | Event indicating that validator node has been updated | -| BUS_EVENT_TYPE_STAKING_EVENT | 33 | Event indicating a new staking event have been processed by the network | +| BUS_EVENT_TYPE_STAKE_LINKING | 33 | Event indicating a new staking event have been processed by the network | +| BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT | 34 | Event indicating the payout of a reward has been initiated | +| BUS_EVENT_TYPE_CHECKPOINT | 35 | Event indicating a new checkpoint was created | | BUS_EVENT_TYPE_MARKET | 101 | Event indicating a market related event, for example when a market opens | | BUS_EVENT_TYPE_TX_ERROR | 201 | Event used to report failed transactions back to a user, this is excluded from the ALL type | - + + +### StakeLinking.Status + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| STATUS_UNSPECIFIED | 0 | Default value | +| STATUS_PENDING | 1 | Indicate an event waiting for confirmation from the vega network | +| STATUS_ACCEPTED | 2 | Indicate of an event accepted by the vega network | +| STATUS_REJECTED | 3 | Indaicate of an event rejected by the vega network | -### StakingEvent.Type + + + + +### StakeLinking.Type | Name | Number | Description | | ---- | ------ | ----------- | | TYPE_UNSPECIFIED | 0 | Default value | -| TYPE_DEPOSIT | 1 | Indicate of a stake deposit instruction | -| TYPE_REMOVE | 2 | Indicate of a stake remove instruction | +| TYPE_LINK | 1 | Indicate of a stake deposit instruction | +| TYPE_UNLINK | 2 | Indicate of a stake remove instruction | @@ -3857,6 +4002,7 @@ The supported Oracle sources | node_signature | [NodeSignature](#vega.commands.v1.NodeSignature) | | | | chain_event | [ChainEvent](#vega.commands.v1.ChainEvent) | | | | oracle_data_submission | [OracleDataSubmission](#vega.commands.v1.OracleDataSubmission) | | Oracles | +| restore_snapshot_submission | [RestoreSnapshot](#vega.commands.v1.RestoreSnapshot) | | Checkpoints | @@ -3916,2416 +4062,756 @@ Represents a transaction to be sent to Vega. - - -### AccountsSubscribeRequest -Request to subscribe to a stream of (Accounts)[#vega.Account] - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | -| party_id | [string](#string) | | Party identifier | -| asset | [string](#string) | | Asset identifier | -| type | [vega.AccountType](#vega.AccountType) | | Account type to subscribe to, required field | + +### GetVegaTimeRequest +Request for the current time of the vega network - -### AccountsSubscribeResponse + +### GetVegaTimeResponse +Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime" | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| account | [vega.Account](#vega.Account) | | | - - +| timestamp | [int64](#int64) | | Timestamp representation of current VegaTime as represented in Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z` | - -### AssetByIDRequest -Request for an asset given an asset identifier + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Asset identifier, required field | +### LastBlockHeightRequest +A request to get the height of the very last block processed +by tendermint - + -### AssetByIDResponse -Response for an asset given an asset identifier +### LastBlockHeightResponse +A response with the height of the last block processed by +tendermint | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| asset | [vega.Asset](#vega.Asset) | | An asset record, if found | - - - - - - - - -### AssetsRequest -Request for a list of all assets enabled on Vega +| height | [uint64](#uint64) | | | - + -### AssetsResponse -Response for a list of all assets enabled on Vega +### ObserveEventBusRequest +Request to subscribe to a stream of one or more event types from the Vega event bus | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| assets | [vega.Asset](#vega.Asset) | repeated | A list of 0 or more assets | +| type | [vega.events.v1.BusEventType](#vega.events.v1.BusEventType) | repeated | One or more types of event, required field | +| market_id | [string](#string) | | Market identifier, optional field | +| party_id | [string](#string) | | Party identifier, optional field | +| batch_size | [int64](#int64) | | Batch size, optional field - If not specified, any events received will be sent immediately. If the client is not ready for the next data-set, data may be dropped a number of times, and eventually the stream is closed. if specified, the first batch will be sent when ready. To receive the next set of events, the client must write an `ObserveEventBatch` message on the stream to flush the buffer. If no message is received in 5 seconds, the stream is closed. Default: 0, send any and all events when they are available. | - + -### CandlesRequest -Request for a list of candles for a market at an interval +### ObserveEventBusResponse +Response to a subscribed stream of events from the Vega event bus | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field. | -| since_timestamp | [int64](#int64) | | Timestamp to retrieve candles since, in nanoseconds since the epoch, required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | -| interval | [vega.Interval](#vega.Interval) | | Time interval for the candles, required field | +| events | [vega.events.v1.BusEvent](#vega.events.v1.BusEvent) | repeated | One or more events | - + -### CandlesResponse -Response for a list of candles for a market at an interval +### PropagateChainEventRequest +Request for a new event sent by the blockchain queue to be propagated on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| candles | [vega.Candle](#vega.Candle) | repeated | A list of 0 or more candles | +| event | [bytes](#bytes) | | Chain event | +| pub_key | [string](#string) | | Public key | +| signature | [bytes](#bytes) | | Signature | - + -### CandlesSubscribeRequest -Request to subscribe to a stream of (Candles)[#vega.Candle] +### PropagateChainEventResponse +Response for a new event sent by the blockchain queue to be propagated on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| interval | [vega.Interval](#vega.Interval) | | Time interval for the candles, required field. | - +| success | [bool](#bool) | | Success will be true if the event was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus | - -### CandlesSubscribeResponse + +### Statistics +Vega domain specific statistics as reported by the node the caller is connected to | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| candle | [vega.Candle](#vega.Candle) | | | - +| block_height | [uint64](#uint64) | | Current block height as reported by the Vega blockchain | +| backlog_length | [uint64](#uint64) | | Current backlog length (number of transactions) that are waiting to be included in a block | +| total_peers | [uint64](#uint64) | | Total number of connected peers to this node | +| genesis_time | [string](#string) | | Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision | +| current_time | [string](#string) | | Current system date and time formatted in ISO-8601 datetime format with nanosecond precision | +| vega_time | [string](#string) | | Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision | +| status | [vega.ChainStatus](#vega.ChainStatus) | | Status of the connection to the Vega blockchain - See [`ChainStatus`](#vega.ChainStatus) | +| tx_per_block | [uint64](#uint64) | | Transactions per block | +| average_tx_bytes | [uint64](#uint64) | | Average transaction size in bytes | +| average_orders_per_block | [uint64](#uint64) | | Average orders per block | +| trades_per_second | [uint64](#uint64) | | Trades emitted per second | +| orders_per_second | [uint64](#uint64) | | Orders processed per second | +| total_markets | [uint64](#uint64) | | Total markets on this Vega network | +| total_amend_order | [uint64](#uint64) | | Total number of order amendments since genesis (on all markets) | +| total_cancel_order | [uint64](#uint64) | | Total number of order cancellations since genesis (on all markets) | +| total_create_order | [uint64](#uint64) | | Total number of order submissions since genesis (on all markets) | +| total_orders | [uint64](#uint64) | | Total number of orders processed since genesis (on all markets) | +| total_trades | [uint64](#uint64) | | Total number of trades emitted since genesis (on all markets) | +| order_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to order data | +| trade_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to trade data | +| candle_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to candle-stick data | +| market_depth_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market depth data | +| positions_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to positions data | +| account_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to account data | +| market_data_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market data | +| app_version_hash | [string](#string) | | The version hash of the Vega node software | +| app_version | [string](#string) | | The version of the Vega node software | +| chain_version | [string](#string) | | The version of the underlying Vega blockchain | +| block_duration | [uint64](#uint64) | | Current block duration, in nanoseconds | +| uptime | [string](#string) | | Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision | +| chain_id | [string](#string) | | Unique identifier for the underlying Vega blockchain | +| market_depth_updates_subscriptions | [uint32](#uint32) | | Current number of stream subscribers to market depth update data | - -### DepositRequest -A request to get a specific deposit by identifier + +### StatisticsRequest +A a request for statistics about the Vega network -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | The identifier of the deposit | + - +### StatisticsResponse -### DepositResponse -A response for a deposit | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| deposit | [vega.Deposit](#vega.Deposit) | | The deposit matching the identifier from the request | +| statistics | [Statistics](#api.v1.Statistics) | | | - + -### DepositsRequest -A request to get a list of deposit from a given party +### SubmitTransactionV2Request +Request for submitting a transaction v2 on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | The party to get the deposits for | +| tx | [vega.commands.v1.Transaction](#vega.commands.v1.Transaction) | | A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain | +| type | [SubmitTransactionV2Request.Type](#api.v1.SubmitTransactionV2Request.Type) | | Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response | - + -### DepositsResponse -The response for a list of deposits +### SubmitTransactionV2Response +Response for submitting a transaction v2 on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| deposits | [vega.Deposit](#vega.Deposit) | repeated | The list of deposits for the specified party | - - - +| success | [bool](#bool) | | Success will be true if the transaction was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus | - -### ERC20WithdrawalApprovalRequest -The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| withdrawal_id | [string](#string) | | The identifier of the withdrawal | + +### SubmitTransactionV2Request.Type +Blockchain transaction type +| Name | Number | Description | +| ---- | ------ | ----------- | +| TYPE_UNSPECIFIED | 0 | | +| TYPE_ASYNC | 1 | The transaction will be submitted without waiting for response | +| TYPE_SYNC | 2 | The transaction will be submitted, and blocking until the tendermint mempool return a response | +| TYPE_COMMIT | 3 | The transaction will submitted, and blocking until the tendermint network will have committed it into a block | - -### ERC20WithdrawalApprovalResponse -The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge -function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures) -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| asset_source | [string](#string) | | The address of asset on ethereum | -| amount | [string](#string) | | The amount to be withdrawn | -| expiry | [int64](#int64) | | The expiry / until what time the request is valid | -| nonce | [string](#string) | | The nonce, which is actually the internal reference for the withdrawal | -| signatures | [string](#string) | | The signatures bundle as hex encoded data, forward by 0x e.g: 0x + sig1 + sig2 + ... + sixN | + +### TradingService +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| SubmitTransactionV2 | [SubmitTransactionV2Request](#api.v1.SubmitTransactionV2Request) | [SubmitTransactionV2Response](#api.v1.SubmitTransactionV2Response) | Submit a signed transaction (v2) | +| PropagateChainEvent | [PropagateChainEventRequest](#api.v1.PropagateChainEventRequest) | [PropagateChainEventResponse](#api.v1.PropagateChainEventResponse) | Propagate a chain event | +| Statistics | [StatisticsRequest](#api.v1.StatisticsRequest) | [StatisticsResponse](#api.v1.StatisticsResponse) | Get Statistics on Vega | +| LastBlockHeight | [LastBlockHeightRequest](#api.v1.LastBlockHeightRequest) | [LastBlockHeightResponse](#api.v1.LastBlockHeightResponse) | Get the height of the last tendermint block | +| GetVegaTime | [GetVegaTimeRequest](#api.v1.GetVegaTimeRequest) | [GetVegaTimeResponse](#api.v1.GetVegaTimeResponse) | Get Time | +| ObserveEventBus | [ObserveEventBusRequest](#api.v1.ObserveEventBusRequest) stream | [ObserveEventBusResponse](#api.v1.ObserveEventBusResponse) stream | Subscribe to a stream of events from the core | - -### EstimateFeeRequest -Request to fetch the estimated fee if an order were to trade immediately -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order | [vega.Order](#vega.Order) | | Order to estimate fees for the following fields in the order are required: MarketID (used to specify the fee factors) Price (the price at which the order could trade) Size (the size at which the order could eventually trade) | + +

    Top

    +## coreapi/v1/coreapi.proto + - +### Account -### EstimateFeeResponse -Response to a EstimateFeeRequest, containing the estimated fees for a given order | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| fee | [vega.Fee](#vega.Fee) | | Summary of the estimated fees for this order if it were to trade now | - - - - - - - - -### EstimateMarginRequest -Request to fetch the estimated MarginLevels if an order were to trade immediately - +| party | [string](#string) | | | +| market | [string](#string) | | | +| balance | [string](#string) | | | +| asset | [string](#string) | | | +| type | [string](#string) | | | -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order | [vega.Order](#vega.Order) | | Order to estimate fees for | + - +### ListAccountsRequest -### EstimateMarginResponse -Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| margin_levels | [vega.MarginLevels](#vega.MarginLevels) | | Summary of the estimated margins for this order if it were to trade now | - - - - - - - - -### FeeInfrastructureAccountsRequest -Request for a list of infrastructure fee accounts - +| party | [string](#string) | | | +| market | [string](#string) | | | -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| asset | [string](#string) | | Asset identifier, required field - Set to an empty string to return all accounts - Set to an asset ID to return a single infrastructure fee account for a given asset | + - +### ListAccountsResponse -### FeeInfrastructureAccountsResponse -Response for a list of infrastructure fee accounts | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| accounts | [vega.Account](#vega.Account) | repeated | A list of 0 or more infrastructure fee accounts | - - - +| accounts | [Account](#vega.coreapi.v1.Account) | repeated | | - -### GetNetworkParametersProposalsRequest -Request for a list of network parameter proposals - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Optional proposal state | + +### ListAssetsRequest - - -### GetNetworkParametersProposalsResponse -Response for a list of network parameter proposals - - | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | +| asset | [string](#string) | | optional ID | + + - +### ListAssetsResponse -### GetNewAssetProposalsRequest -Request for a list of new asset proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Optional proposal state | +| assets | [vega.Asset](#vega.Asset) | repeated | | - + + +### ListMarketsDataRequest -### GetNewAssetProposalsResponse -Response for a list of new asset proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | +| market | [string](#string) | | | + + - +### ListMarketsDataResponse -### GetNewMarketProposalsRequest -Request for a list of new market proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Optional proposal state | +| markets_data | [vega.MarketData](#vega.MarketData) | repeated | | - + + +### ListMarketsRequest -### GetNewMarketProposalsResponse -Response for a list of new market proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | +| market | [string](#string) | | | + + - +### ListMarketsResponse -### GetNodeSignaturesAggregateRequest -Request to specify the identifier of the resource we want to retrieve aggregated signatures for | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Resource identifier, required field | +| markets | [vega.Market](#vega.Market) | repeated | | - + + +### ListNetworkParametersRequest -### GetNodeSignaturesAggregateResponse -Response to specify the identifier of the resource we want to retrieve aggregated signatures for | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| signatures | [vega.commands.v1.NodeSignature](#vega.commands.v1.NodeSignature) | repeated | A list of 0 or more signatures | +| network_parameter_key | [string](#string) | | optional parameter key | + + - +### ListNetworkParametersResponse -### GetProposalByIDRequest -Request for a governance proposal given a proposal identifier | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| proposal_id | [string](#string) | | Proposal identifier, required field | +| network_parameters | [vega.NetworkParameter](#vega.NetworkParameter) | repeated | | - + -### GetProposalByIDResponse -Response for a governance proposal given a proposal identifier +### ListPartiesRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | | Governance data, if found | + - +### ListPartiesResponse -### GetProposalByReferenceRequest -Request for a governance proposal given a proposal reference | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| reference | [string](#string) | | Proposal reference. Required field | +| parties | [vega.Party](#vega.Party) | repeated | | + + - +### ListProposalsRequest -### GetProposalByReferenceResponse -Response for a governance proposal given a proposal reference | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | | Governance data, if found | +| proposal | [string](#string) | | optional ID | +| proposer | [string](#string) | | optional party | - + + +### ListProposalsResponse -### GetProposalsByPartyRequest -Request for a list of proposals for a party | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Optional proposal state | +| proposals | [vega.Proposal](#vega.Proposal) | repeated | | - + -### GetProposalsByPartyResponse -Response for a list of proposals for a party +### ListValidatorsRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | + - +### ListValidatorsResponse -### GetProposalsRequest -Request for a list of proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Optional proposal state | +| validators | [vega.events.v1.ValidatorUpdate](#vega.events.v1.ValidatorUpdate) | repeated | | + + - +### ListVotesRequest -### GetProposalsResponse -Response for a list of proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | +| proposal | [string](#string) | | | +| party | [string](#string) | | | + + - +### ListVotesResponse -### GetUpdateMarketProposalsRequest -Request for a list of update market proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| select_in_state | [OptionalProposalState](#api.v1.OptionalProposalState) | | Proposal state | +| votes | [vega.Vote](#vega.Vote) | repeated | | - -### GetUpdateMarketProposalsResponse -Response for a list of update market proposals -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | repeated | A list of 0 or more governance data | - - - - - - - - -### GetVegaTimeRequest -Request for the current time of the vega network + +### CoreApiService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListAccounts | [ListAccountsRequest](#vega.coreapi.v1.ListAccountsRequest) | [ListAccountsResponse](#vega.coreapi.v1.ListAccountsResponse) | | +| ListAssets | [ListAssetsRequest](#vega.coreapi.v1.ListAssetsRequest) | [ListAssetsResponse](#vega.coreapi.v1.ListAssetsResponse) | | +| ListNetworkParameters | [ListNetworkParametersRequest](#vega.coreapi.v1.ListNetworkParametersRequest) | [ListNetworkParametersResponse](#vega.coreapi.v1.ListNetworkParametersResponse) | | +| ListParties | [ListPartiesRequest](#vega.coreapi.v1.ListPartiesRequest) | [ListPartiesResponse](#vega.coreapi.v1.ListPartiesResponse) | | +| ListValidators | [ListValidatorsRequest](#vega.coreapi.v1.ListValidatorsRequest) | [ListValidatorsResponse](#vega.coreapi.v1.ListValidatorsResponse) | | +| ListMarkets | [ListMarketsRequest](#vega.coreapi.v1.ListMarketsRequest) | [ListMarketsResponse](#vega.coreapi.v1.ListMarketsResponse) | | +| ListProposals | [ListProposalsRequest](#vega.coreapi.v1.ListProposalsRequest) | [ListProposalsResponse](#vega.coreapi.v1.ListProposalsResponse) | | +| ListMarketsData | [ListMarketsDataRequest](#vega.coreapi.v1.ListMarketsDataRequest) | [ListMarketsDataResponse](#vega.coreapi.v1.ListMarketsDataResponse) | | +| ListVotes | [ListVotesRequest](#vega.coreapi.v1.ListVotesRequest) | [ListVotesResponse](#vega.coreapi.v1.ListVotesResponse) | | -### GetVegaTimeResponse -Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime" -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| timestamp | [int64](#int64) | | Timestamp representation of current VegaTime as represented in Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z` | + +

    Top

    +## snapshot/v1/snapshot.proto - + -### GetVotesByPartyRequest -Request for a list of votes for a party +### AssetBalance +AssetBalance represents the total balance of a given asset for a party | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | +| party | [string](#string) | | | +| asset | [string](#string) | | | +| balance | [string](#string) | | | - + -### GetVotesByPartyResponse -Response for a list of votes for a party +### AssetEntry +AssetEntrty is a single (enabled) asset | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| votes | [vega.Vote](#vega.Vote) | repeated | A list of 0 or more votes | - - - - - - - - -### LastBlockHeightRequest -A request to get the height of the very last block processed -by tendermint +| id | [string](#string) | | | +| asset_details | [vega.AssetDetails](#vega.AssetDetails) | | | - + -### LastBlockHeightResponse -A response with the height of the last block processed by -tendermint +### Assets +Assets contains all the enabled assets as AssetEntries | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| height | [uint64](#uint64) | | | +| assets | [AssetEntry](#vega.snapshot.v1.AssetEntry) | repeated | | - + -### LastTradeRequest -Request for the latest trade that occurred on Vega for a given market +### Checkpoint +Checkpoint aggregates the various engine snapshots | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | +| governance | [bytes](#bytes) | | | +| assets | [bytes](#bytes) | | | +| collateral | [bytes](#bytes) | | | +| network_parameters | [bytes](#bytes) | | | +| delegation | [bytes](#bytes) | | | - + -### LastTradeResponse -Response for the latest trade that occurred on Vega for a given market +### Collateral +Collateral contains the balances per party | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| trade | [vega.Trade](#vega.Trade) | | A trade, if found | +| balances | [AssetBalance](#vega.snapshot.v1.AssetBalance) | repeated | | - + -### LiquidityProvisionsRequest -A message requesting for the list of liquidity provision orders for markets -One of the two filters is required (or both) +### Delegate +Delegate contains all entries for a checkpoint | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| market | [string](#string) | | The target market for the liquidity provision orders | -| party | [string](#string) | | The party which submitted the liquidity provision orders | +| active | [DelegateEntry](#vega.snapshot.v1.DelegateEntry) | repeated | | +| pending | [DelegateEntry](#vega.snapshot.v1.DelegateEntry) | repeated | | - + -### LiquidityProvisionsResponse -A response containing all of the Vega liquidity provision orders +### DelegateEntry +Delegated amounts for party/node +undelegate and epoch seq are only relevant for pending entries | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| liquidity_provisions | [vega.LiquidityProvision](#vega.LiquidityProvision) | repeated | | +| party | [string](#string) | | | +| node | [string](#string) | | | +| amount | [string](#string) | | | +| undelegate | [bool](#bool) | | | +| epoch_seq | [uint64](#uint64) | | | - + -### MarginLevelsRequest -Request for margin levels for a party +### NetParams +NetParams contains all network parameters | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | -| market_id | [string](#string) | | Market identifier | +| params | [vega.NetworkParameter](#vega.NetworkParameter) | repeated | | - + -### MarginLevelsResponse -Response for margin levels for a party +### Proposals +Proposals will contain all accepted proposals | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| margin_levels | [vega.MarginLevels](#vega.MarginLevels) | repeated | A list of 0 or more margin levels | +| proposals | [vega.Proposal](#vega.Proposal) | repeated | | - + -### MarginLevelsSubscribeRequest -Request to subscribe to a stream of MarginLevels data matching the given party identifier -Optionally, the list can be additionally filtered by market +### Snapshot +Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash) | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | -| market_id | [string](#string) | | Market identifier | - - - - +| hash | [bytes](#bytes) | | | +| state | [bytes](#bytes) | | | - -### MarginLevelsSubscribeResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| margin_levels | [vega.MarginLevels](#vega.MarginLevels) | | | - - -### MarketAccountsRequest -Request for a list of accounts for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | -| asset | [string](#string) | | Asset identifier | - - - - - - - - -### MarketAccountsResponse -Response for a list of accounts for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| accounts | [vega.Account](#vega.Account) | repeated | A list of 0 or more accounts | - - - - - - - - -### MarketByIDRequest -Request for a market given a market identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | - - - - - - - - -### MarketByIDResponse -Response for a market given a market identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market | [vega.Market](#vega.Market) | | A market, if found | - - - - - - - - -### MarketDataByIDRequest -Request for market data for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | - - - - - - - - -### MarketDataByIDResponse -Response for market data for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_data | [vega.MarketData](#vega.MarketData) | | Market data, if found | - - - - - - - - -### MarketDepthRequest -Request for the market depth/order book price levels on a market -Optionally, a maximum depth can be set to limit the number of levels returned - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| max_depth | [uint64](#uint64) | | Max depth limits the number of levels returned. Default is 0, which returns all levels | - - - - - - - - -### MarketDepthResponse -Response for the market depth/order book price levels on a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | -| buy | [vega.PriceLevel](#vega.PriceLevel) | repeated | Zero or more price levels for the buy side of the market depth data | -| sell | [vega.PriceLevel](#vega.PriceLevel) | repeated | Zero or more price levels for the sell side of the market depth data | -| last_trade | [vega.Trade](#vega.Trade) | | Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse` | -| sequence_number | [uint64](#uint64) | | Sequence number incremented after each update | - - - - - - - - -### MarketDepthSubscribeRequest -Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field. | - - - - - - - - -### MarketDepthSubscribeResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_depth | [vega.MarketDepth](#vega.MarketDepth) | | | - - - - - - - - -### MarketDepthUpdatesSubscribeRequest -Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | - - - - - - - - -### MarketDepthUpdatesSubscribeResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| update | [vega.MarketDepthUpdate](#vega.MarketDepthUpdate) | | | - - - - - - - - -### MarketsDataRequest -Request for market data - - - - - - - - -### MarketsDataResponse -Response for market data - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| markets_data | [vega.MarketData](#vega.MarketData) | repeated | A list of 0 or more market data | - - - - - - - - -### MarketsDataSubscribeRequest -Request to subscribe to a stream of MarketsData -Optionally, the list can be additionally filtered by market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | - - - - - - - - -### MarketsDataSubscribeResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_data | [vega.MarketData](#vega.MarketData) | | | - - - - - - - - -### MarketsRequest -Request for a list of markets on Vega - - - - - - - - -### MarketsResponse -Response for a list of markets on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| markets | [vega.Market](#vega.Market) | repeated | A list of 0 or more markets | - - - - - - - - -### NetworkParametersRequest -A message requesting for the list of all network parameters - - - - - - - - -### NetworkParametersResponse -A response containing all of the vega network parameters - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| network_parameters | [vega.NetworkParameter](#vega.NetworkParameter) | repeated | | - - - - - - - - -### ObserveEventBusRequest -Request to subscribe to a stream of one or more event types from the Vega event bus - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| type | [vega.events.v1.BusEventType](#vega.events.v1.BusEventType) | repeated | One or more types of event, required field | -| market_id | [string](#string) | | Market identifier, optional field | -| party_id | [string](#string) | | Party identifier, optional field | -| batch_size | [int64](#int64) | | Batch size, optional field - If not specified, any events received will be sent immediately. If the client is not ready for the next data-set, data may be dropped a number of times, and eventually the stream is closed. if specified, the first batch will be sent when ready. To receive the next set of events, the client must write an `ObserveEventBatch` message on the stream to flush the buffer. If no message is received in 5 seconds, the stream is closed. Default: 0, send any and all events when they are available. | - - - - - - - - -### ObserveEventBusResponse -Response to a subscribed stream of events from the Vega event bus - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| events | [vega.events.v1.BusEvent](#vega.events.v1.BusEvent) | repeated | One or more events | - - - - - - - - -### ObserveGovernanceRequest -Request to obsever all event related to governance - - - - - - - - -### ObserveGovernanceResponse -All events related to governance - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | | | - - - - - - - - -### ObservePartyProposalsRequest -Request to subscribe to a stream of governance proposals for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | - - - - - - - - -### ObservePartyProposalsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| data | [vega.GovernanceData](#vega.GovernanceData) | | | - - - - - - - - -### ObservePartyVotesRequest -Request to subscribe to a stream of governance votes for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | - - - - - - - - -### ObservePartyVotesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| vote | [vega.Vote](#vega.Vote) | | | - - - - - - - - -### ObserveProposalVotesRequest -Request to subscribe to a stream of governance votes for a proposal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| proposal_id | [string](#string) | | Proposal identifier, required field | - - - - - - - - -### ObserveProposalVotesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| vote | [vega.Vote](#vega.Vote) | | | - - - - - - - - -### OptionalProposalState -Optional proposal state - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| value | [vega.Proposal.State](#vega.Proposal.State) | | Proposal state value | - - - - - - - - -### OracleDataBySpecRequest -A request to all oracle data broadcast to a given spec - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | The id to get the oracle spec for | - - - - - - - - -### OracleDataBySpecResponse -The response for a list of all oracle data broadcast to a given spec - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| oracle_data | [oracles.v1.OracleData](#oracles.v1.OracleData) | repeated | The list of oracle data broadcast to a given spec | - - - - - - - - -### OracleSpecRequest -A request to get a specific oracle spec by identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | The id to get the oracle spec for | - - - - - - - - -### OracleSpecResponse -A response for a oracle spec - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| oracle_spec | [oracles.v1.OracleSpec](#oracles.v1.OracleSpec) | | The withdrawal matching the identifier from the request | - - - - - - - - -### OracleSpecsRequest -A request to get a specific oracle spec by identifier - - - - - - - - -### OracleSpecsResponse -The response for a list of withdrawals - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| oracle_specs | [oracles.v1.OracleSpec](#oracles.v1.OracleSpec) | repeated | The list of oracle specs | - - - - - - - - -### OrderByIDRequest -Request for an order with the specified order identifier -Optionally, return a specific version of the order with the `version` field - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order_id | [string](#string) | | Order identifier, required field | -| version | [uint64](#uint64) | | Version of the order: - Set `version` to 0 for most recent version of the order - Set `1` for original version of the order - Set `2` for first amendment, `3` for second amendment, etc | - - - - - - - - -### OrderByIDResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order | [vega.Order](#vega.Order) | | | - - - - - - - - -### OrderByMarketAndIDRequest -Request for an order on a market given an order identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| order_id | [string](#string) | | Order identifier, required field | - - - - - - - - -### OrderByMarketAndIDResponse -Response for an order on a market given an order identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order | [vega.Order](#vega.Order) | | An order, if found | - - - - - - - - -### OrderByReferenceRequest -Request for an order given an order reference - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| reference | [string](#string) | | Unique reference, required field | - - - - - - - - -### OrderByReferenceResponse -Response for an order given an order reference - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order | [vega.Order](#vega.Order) | | An order, if found | - - - - - - - - -### OrderVersionsByIDRequest -Request for a list of all versions of an order given the specified order identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order_id | [string](#string) | | Order identifier, required field | -| pagination | [Pagination](#api.v1.Pagination) | | Pagination controls | - - - - - - - - -### OrderVersionsByIDResponse -Response to a request for a list of all versions of an order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| orders | [vega.Order](#vega.Order) | repeated | A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended) | - - - - - - - - -### OrdersByMarketRequest -Request for a list of orders for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| pagination | [Pagination](#api.v1.Pagination) | | Optional pagination controls | - - - - - - - - -### OrdersByMarketResponse -Response for a list of orders for a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| orders | [vega.Order](#vega.Order) | repeated | A list of 0 or more orders | - - - - - - - - -### OrdersByPartyRequest -Request for a list of orders for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | -| pagination | [Pagination](#api.v1.Pagination) | | Pagination controls | - - - - - - - - -### OrdersByPartyResponse -Response for a list of orders for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| orders | [vega.Order](#vega.Order) | repeated | A list of 0 or more orders | - - - - - - - - -### OrdersSubscribeRequest -Request to subscribe to a stream of (Orders)[#vega.Order] - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | -| party_id | [string](#string) | | Party identifier | - - - - - - - - -### OrdersSubscribeResponse -A stream of orders - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| orders | [vega.Order](#vega.Order) | repeated | A list of 0 or more orders | - - - - - - - - -### Pagination -Pagination controls - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| skip | [uint64](#uint64) | | Skip the number of records specified, default is 0 | -| limit | [uint64](#uint64) | | Limit the number of returned records to the value specified, default is 50 | -| descending | [bool](#bool) | | Descending reverses the order of the records returned, default is true, if false the results will be returned in ascending order | - - - - - - - - -### PartiesRequest -Request for a list of all parties - - - - - - - - -### PartiesResponse -Response to a request for a list of parties - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| parties | [vega.Party](#vega.Party) | repeated | A list of 0 or more parties | - - - - - - - - -### PartyAccountsRequest -Request for a list of accounts for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier | -| market_id | [string](#string) | | Market identifier | -| type | [vega.AccountType](#vega.AccountType) | | Account type, required field | -| asset | [string](#string) | | Asset identifier | - - - - - - - - -### PartyAccountsResponse -Response for a list of accounts for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| accounts | [vega.Account](#vega.Account) | repeated | A list of 0 or more accounts | - - - - - - - - -### PartyByIDRequest -Request for a party given a party identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | - - - - - - - - -### PartyByIDResponse -Response for a party given a party identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party | [vega.Party](#vega.Party) | | A party, if found | - - - - - - - - -### PositionsByPartyRequest -Request for a list of positions for a party -Optionally, if a market identifier is set, the results will be filtered for that market only - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, required field | -| market_id | [string](#string) | | Market identifier | - - - - - - - - -### PositionsByPartyResponse -Response for a list of positions for a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| positions | [vega.Position](#vega.Position) | repeated | A list of 0 or more positions | - - - - - - - - -### PositionsSubscribeRequest -Request to subscribe to a stream of (Positions)[#vega.Position] - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier, optional field | -| market_id | [string](#string) | | Market identifier, optional field | - - - - - - - - -### PositionsSubscribeResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| position | [vega.Position](#vega.Position) | | | - - - - - - - - -### PrepareAmendOrderRequest -Request to amend an existing order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| amendment | [vega.commands.v1.OrderAmendment](#vega.commands.v1.OrderAmendment) | | An order amendment | - - - - - - - - -### PrepareAmendOrderResponse -Response for preparing an order amendment - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction. | - - - - - - - - -### PrepareCancelOrderRequest -Request to cancel an existing order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| cancellation | [vega.commands.v1.OrderCancellation](#vega.commands.v1.OrderCancellation) | | An order cancellation | - - - - - - - - -### PrepareCancelOrderResponse -Response for preparing an order cancellation - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction | - - - - - - - - -### PrepareLiquidityProvisionRequest -Request to prepare liquiditity provision - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| submission | [vega.commands.v1.LiquidityProvisionSubmission](#vega.commands.v1.LiquidityProvisionSubmission) | | Submission, required field | - - - - - - - - -### PrepareLiquidityProvisionResponse -Response to a liquidity provision request - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction | - - - - - - - - -### PrepareProposalSubmissionRequest -Request to prepare a governance proposal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| submission | [vega.commands.v1.ProposalSubmission](#vega.commands.v1.ProposalSubmission) | | | - - - - - - - - -### PrepareProposalSubmissionResponse -Response to prepare a governance proposal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction | -| submission | [vega.commands.v1.ProposalSubmission](#vega.commands.v1.ProposalSubmission) | | A copy of the prepared proposal | - - - - - - - - -### PrepareSubmitOrderRequest -Request to submit a new order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| submission | [vega.commands.v1.OrderSubmission](#vega.commands.v1.OrderSubmission) | | An order submission | - - - - - - - - -### PrepareSubmitOrderResponse -Response for preparing an order submission - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction | -| submit_id | [string](#string) | | Submission identifier (order reference) | - - - - - - - - -### PrepareVoteSubmissionRequest -Request to prepare a governance vote - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| submission | [vega.commands.v1.VoteSubmission](#vega.commands.v1.VoteSubmission) | | Vote, required field | - - - - - - - - -### PrepareVoteSubmissionResponse -Response to prepare a governance vote - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction | -| submission | [vega.commands.v1.VoteSubmission](#vega.commands.v1.VoteSubmission) | | A copy of the prepared vote | - - - - - - - - -### PrepareWithdrawRequest -Request for preparing a withdrawal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| withdraw | [vega.commands.v1.WithdrawSubmission](#vega.commands.v1.WithdrawSubmission) | | An asset withdrawal | - - - - - - - - -### PrepareWithdrawResponse -Response for preparing a withdrawal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blob | [bytes](#bytes) | | Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction | - - - - - - - - -### PropagateChainEventRequest -Request for a new event sent by the blockchain queue to be propagated on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| evt | [vega.commands.v1.ChainEvent](#vega.commands.v1.ChainEvent) | | Chain event | -| pub_key | [string](#string) | | Public key | -| signature | [bytes](#bytes) | | Signature | - - - - - - - - -### PropagateChainEventResponse -Response for a new event sent by the blockchain queue to be propagated on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| success | [bool](#bool) | | Success will be true if the event was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus | - - - - - - - - -### StatisticsRequest -A a request for statistics about the Vega network - - - - - - - - -### StatisticsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| statistics | [vega.Statistics](#vega.Statistics) | | | - - - - - - - - -### SubmitTransactionRequest -Request for submitting a transaction on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tx | [vega.SignedBundle](#vega.SignedBundle) | | A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain | -| type | [SubmitTransactionRequest.Type](#api.v1.SubmitTransactionRequest.Type) | | Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response | - - - - - - - - -### SubmitTransactionResponse -Response for submitting a transaction on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| success | [bool](#bool) | | Success will be true if the transaction was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus | - - - - - - - - -### SubmitTransactionV2Request -Request for submitting a transaction v2 on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tx | [vega.commands.v1.Transaction](#vega.commands.v1.Transaction) | | A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain | -| type | [SubmitTransactionV2Request.Type](#api.v1.SubmitTransactionV2Request.Type) | | Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response | - - - - - - - - -### SubmitTransactionV2Response -Response for submitting a transaction v2 on Vega - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| success | [bool](#bool) | | Success will be true if the transaction was accepted by the node, **Important** - success does not mean that the event is confirmed by consensus | - - - - - - - - -### TradesByMarketRequest -Request for a list of trades on a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier, required field | -| pagination | [Pagination](#api.v1.Pagination) | | Pagination controls | - - - - - - - - -### TradesByMarketResponse -Response for a list of trades on a market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| trades | [vega.Trade](#vega.Trade) | repeated | A list of 0 or more trades | - - - - - - - - -### TradesByOrderRequest -Request for a list of trades related to an order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| order_id | [string](#string) | | Order identifier, required field | - - - - - - - - -### TradesByOrderResponse -Response for a list of trades related to an order - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| trades | [vega.Trade](#vega.Trade) | repeated | A list of 0 or more trades | - - - - - - - - -### TradesByPartyRequest -Request for a list of trades relating to the given party -Optionally, the list can be additionally filtered for trades by market - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | Party identifier. Required field | -| market_id | [string](#string) | | Market identifier | -| pagination | [Pagination](#api.v1.Pagination) | | Pagination controls | - - - - - - - - -### TradesByPartyResponse -Response for a list of trades relating to a party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| trades | [vega.Trade](#vega.Trade) | repeated | A list of 0 or more trades | - - - - - - - - -### TradesSubscribeRequest -Request to subscribe to a stream of (Trades)[#vega.Trade] - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| market_id | [string](#string) | | Market identifier | -| party_id | [string](#string) | | Party identifier | - - - - - - - - -### TradesSubscribeResponse -A stream of trades - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| trades | [vega.Trade](#vega.Trade) | repeated | A list of 0 or more trades | - - - - - - - - -### TransferResponsesSubscribeRequest - - - - - - - - - -### TransferResponsesSubscribeResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| response | [vega.TransferResponse](#vega.TransferResponse) | | | - - - - - - - - -### WithdrawalRequest -A request to get a specific withdrawal by identifier - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | The identifier of the withdrawal | - - - - - - - - -### WithdrawalResponse -A response for a withdrawal - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| withdrawal | [vega.Withdrawal](#vega.Withdrawal) | | The withdrawal matching the identifier from the request | - - - - - - - - -### WithdrawalsRequest -A request to get a list of withdrawal from a given party - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| party_id | [string](#string) | | The party to get the withdrawals for | - - - - - - - - -### WithdrawalsResponse -The response for a list of withdrawals - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| withdrawals | [vega.Withdrawal](#vega.Withdrawal) | repeated | The list of withdrawals for the specified party | - - - - - - - - - - -### SubmitTransactionRequest.Type -Blockchain transaction type - -| Name | Number | Description | -| ---- | ------ | ----------- | -| TYPE_UNSPECIFIED | 0 | | -| TYPE_ASYNC | 1 | The transaction will be submitted without waiting for response | -| TYPE_SYNC | 2 | The transaction will be submitted, and blocking until the tendermint mempool return a response | -| TYPE_COMMIT | 3 | The transaction will submitted, and blocking until the tendermint network will have committed it into a block | - - - - - -### SubmitTransactionV2Request.Type -Blockchain transaction type - -| Name | Number | Description | -| ---- | ------ | ----------- | -| TYPE_UNSPECIFIED | 0 | | -| TYPE_ASYNC | 1 | The transaction will be submitted without waiting for response | -| TYPE_SYNC | 2 | The transaction will be submitted, and blocking until the tendermint mempool return a response | -| TYPE_COMMIT | 3 | The transaction will submitted, and blocking until the tendermint network will have committed it into a block | - - - - - - - - - -### TradingDataService - - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| MarketAccounts | [MarketAccountsRequest](#api.v1.MarketAccountsRequest) | [MarketAccountsResponse](#api.v1.MarketAccountsResponse) | Get a list of Accounts by Market | -| PartyAccounts | [PartyAccountsRequest](#api.v1.PartyAccountsRequest) | [PartyAccountsResponse](#api.v1.PartyAccountsResponse) | Get a list of Accounts by Party | -| FeeInfrastructureAccounts | [FeeInfrastructureAccountsRequest](#api.v1.FeeInfrastructureAccountsRequest) | [FeeInfrastructureAccountsResponse](#api.v1.FeeInfrastructureAccountsResponse) | Get a list of accounts holding infrastructure fees. Can be filtered by asset, there will be 1 infrastructure fee account per asset in the network. | -| Candles | [CandlesRequest](#api.v1.CandlesRequest) | [CandlesResponse](#api.v1.CandlesResponse) | Get a list of Candles by Market | -| MarketDataByID | [MarketDataByIDRequest](#api.v1.MarketDataByIDRequest) | [MarketDataByIDResponse](#api.v1.MarketDataByIDResponse) | Get Market Data by Market ID | -| MarketsData | [MarketsDataRequest](#api.v1.MarketsDataRequest) | [MarketsDataResponse](#api.v1.MarketsDataResponse) | Get a list of Market Data | -| MarketByID | [MarketByIDRequest](#api.v1.MarketByIDRequest) | [MarketByIDResponse](#api.v1.MarketByIDResponse) | Get a Market by ID | -| MarketDepth | [MarketDepthRequest](#api.v1.MarketDepthRequest) | [MarketDepthResponse](#api.v1.MarketDepthResponse) | Get Market Depth | -| Markets | [MarketsRequest](#api.v1.MarketsRequest) | [MarketsResponse](#api.v1.MarketsResponse) | Get a list of Markets | -| OrderByMarketAndID | [OrderByMarketAndIDRequest](#api.v1.OrderByMarketAndIDRequest) | [OrderByMarketAndIDResponse](#api.v1.OrderByMarketAndIDResponse) | Get an Order by Market and Order ID | -| OrderByReference | [OrderByReferenceRequest](#api.v1.OrderByReferenceRequest) | [OrderByReferenceResponse](#api.v1.OrderByReferenceResponse) | Get an Order by Pending Order reference (UUID) | -| OrdersByMarket | [OrdersByMarketRequest](#api.v1.OrdersByMarketRequest) | [OrdersByMarketResponse](#api.v1.OrdersByMarketResponse) | Get a list of Orders by Market | -| OrdersByParty | [OrdersByPartyRequest](#api.v1.OrdersByPartyRequest) | [OrdersByPartyResponse](#api.v1.OrdersByPartyResponse) | Get a list of Orders by Party | -| OrderByID | [OrderByIDRequest](#api.v1.OrderByIDRequest) | [OrderByIDResponse](#api.v1.OrderByIDResponse) | Get a specific order by order ID | -| OrderVersionsByID | [OrderVersionsByIDRequest](#api.v1.OrderVersionsByIDRequest) | [OrderVersionsByIDResponse](#api.v1.OrderVersionsByIDResponse) | Get all versions of the order by its orderID | -| MarginLevels | [MarginLevelsRequest](#api.v1.MarginLevelsRequest) | [MarginLevelsResponse](#api.v1.MarginLevelsResponse) | Get Margin Levels by Party ID | -| Parties | [PartiesRequest](#api.v1.PartiesRequest) | [PartiesResponse](#api.v1.PartiesResponse) | Get a list of Parties | -| PartyByID | [PartyByIDRequest](#api.v1.PartyByIDRequest) | [PartyByIDResponse](#api.v1.PartyByIDResponse) | Get a Party by ID | -| PositionsByParty | [PositionsByPartyRequest](#api.v1.PositionsByPartyRequest) | [PositionsByPartyResponse](#api.v1.PositionsByPartyResponse) | Get a list of Positions by Party | -| LastTrade | [LastTradeRequest](#api.v1.LastTradeRequest) | [LastTradeResponse](#api.v1.LastTradeResponse) | Get latest Trade | -| TradesByMarket | [TradesByMarketRequest](#api.v1.TradesByMarketRequest) | [TradesByMarketResponse](#api.v1.TradesByMarketResponse) | Get a list of Trades by Market | -| TradesByOrder | [TradesByOrderRequest](#api.v1.TradesByOrderRequest) | [TradesByOrderResponse](#api.v1.TradesByOrderResponse) | Get a list of Trades by Order | -| TradesByParty | [TradesByPartyRequest](#api.v1.TradesByPartyRequest) | [TradesByPartyResponse](#api.v1.TradesByPartyResponse) | Get a list of Trades by Party | -| GetProposals | [GetProposalsRequest](#api.v1.GetProposalsRequest) | [GetProposalsResponse](#api.v1.GetProposalsResponse) | Get governance data (proposals and votes) for all proposals | -| GetProposalsByParty | [GetProposalsByPartyRequest](#api.v1.GetProposalsByPartyRequest) | [GetProposalsByPartyResponse](#api.v1.GetProposalsByPartyResponse) | Get governance data (proposals and votes) for proposals by party authoring them | -| GetVotesByParty | [GetVotesByPartyRequest](#api.v1.GetVotesByPartyRequest) | [GetVotesByPartyResponse](#api.v1.GetVotesByPartyResponse) | Get votes by party casting them | -| GetNewMarketProposals | [GetNewMarketProposalsRequest](#api.v1.GetNewMarketProposalsRequest) | [GetNewMarketProposalsResponse](#api.v1.GetNewMarketProposalsResponse) | Get governance data (proposals and votes) for proposals that aim creating new markets | -| GetUpdateMarketProposals | [GetUpdateMarketProposalsRequest](#api.v1.GetUpdateMarketProposalsRequest) | [GetUpdateMarketProposalsResponse](#api.v1.GetUpdateMarketProposalsResponse) | Get governance data (proposals and votes) for proposals that aim updating markets | -| GetNetworkParametersProposals | [GetNetworkParametersProposalsRequest](#api.v1.GetNetworkParametersProposalsRequest) | [GetNetworkParametersProposalsResponse](#api.v1.GetNetworkParametersProposalsResponse) | Get governance data (proposals and votes) for proposals that aim updating Vega network parameters | -| GetNewAssetProposals | [GetNewAssetProposalsRequest](#api.v1.GetNewAssetProposalsRequest) | [GetNewAssetProposalsResponse](#api.v1.GetNewAssetProposalsResponse) | Get governance data (proposals and votes) for proposals aiming to create new assets | -| GetProposalByID | [GetProposalByIDRequest](#api.v1.GetProposalByIDRequest) | [GetProposalByIDResponse](#api.v1.GetProposalByIDResponse) | Get governance data (proposals and votes) for a proposal located by ID | -| GetProposalByReference | [GetProposalByReferenceRequest](#api.v1.GetProposalByReferenceRequest) | [GetProposalByReferenceResponse](#api.v1.GetProposalByReferenceResponse) | Get governance data (proposals and votes) for a proposal located by reference | -| ObserveGovernance | [ObserveGovernanceRequest](#api.v1.ObserveGovernanceRequest) | [ObserveGovernanceResponse](#api.v1.ObserveGovernanceResponse) stream | Subscribe to a stream of all governance updates | -| ObservePartyProposals | [ObservePartyProposalsRequest](#api.v1.ObservePartyProposalsRequest) | [ObservePartyProposalsResponse](#api.v1.ObservePartyProposalsResponse) stream | Subscribe to a stream of proposal updates | -| ObservePartyVotes | [ObservePartyVotesRequest](#api.v1.ObservePartyVotesRequest) | [ObservePartyVotesResponse](#api.v1.ObservePartyVotesResponse) stream | Subscribe to a stream of votes cast by a specific party | -| ObserveProposalVotes | [ObserveProposalVotesRequest](#api.v1.ObserveProposalVotesRequest) | [ObserveProposalVotesResponse](#api.v1.ObserveProposalVotesResponse) stream | Subscribe to a stream of proposal votes | -| ObserveEventBus | [ObserveEventBusRequest](#api.v1.ObserveEventBusRequest) stream | [ObserveEventBusResponse](#api.v1.ObserveEventBusResponse) stream | Subscribe to a stream of events from the core | -| Statistics | [StatisticsRequest](#api.v1.StatisticsRequest) | [StatisticsResponse](#api.v1.StatisticsResponse) | Get Statistics on Vega | -| LastBlockHeight | [LastBlockHeightRequest](#api.v1.LastBlockHeightRequest) | [LastBlockHeightResponse](#api.v1.LastBlockHeightResponse) | | -| GetVegaTime | [GetVegaTimeRequest](#api.v1.GetVegaTimeRequest) | [GetVegaTimeResponse](#api.v1.GetVegaTimeResponse) | Get Time | -| AccountsSubscribe | [AccountsSubscribeRequest](#api.v1.AccountsSubscribeRequest) | [AccountsSubscribeResponse](#api.v1.AccountsSubscribeResponse) stream | Subscribe to a stream of Accounts | -| CandlesSubscribe | [CandlesSubscribeRequest](#api.v1.CandlesSubscribeRequest) | [CandlesSubscribeResponse](#api.v1.CandlesSubscribeResponse) stream | Subscribe to a stream of Candles | -| MarginLevelsSubscribe | [MarginLevelsSubscribeRequest](#api.v1.MarginLevelsSubscribeRequest) | [MarginLevelsSubscribeResponse](#api.v1.MarginLevelsSubscribeResponse) stream | Subscribe to a stream of Margin Levels | -| MarketDepthSubscribe | [MarketDepthSubscribeRequest](#api.v1.MarketDepthSubscribeRequest) | [MarketDepthSubscribeResponse](#api.v1.MarketDepthSubscribeResponse) stream | Subscribe to a stream of Market Depth | -| MarketDepthUpdatesSubscribe | [MarketDepthUpdatesSubscribeRequest](#api.v1.MarketDepthUpdatesSubscribeRequest) | [MarketDepthUpdatesSubscribeResponse](#api.v1.MarketDepthUpdatesSubscribeResponse) stream | Subscribe to a stream of Market Depth Price Level Updates | -| MarketsDataSubscribe | [MarketsDataSubscribeRequest](#api.v1.MarketsDataSubscribeRequest) | [MarketsDataSubscribeResponse](#api.v1.MarketsDataSubscribeResponse) stream | Subscribe to a stream of Markets Data | -| OrdersSubscribe | [OrdersSubscribeRequest](#api.v1.OrdersSubscribeRequest) | [OrdersSubscribeResponse](#api.v1.OrdersSubscribeResponse) stream | Subscribe to a stream of Orders | -| PositionsSubscribe | [PositionsSubscribeRequest](#api.v1.PositionsSubscribeRequest) | [PositionsSubscribeResponse](#api.v1.PositionsSubscribeResponse) stream | Subscribe to a stream of Positions | -| TradesSubscribe | [TradesSubscribeRequest](#api.v1.TradesSubscribeRequest) | [TradesSubscribeResponse](#api.v1.TradesSubscribeResponse) stream | Subscribe to a stream of Trades | -| TransferResponsesSubscribe | [TransferResponsesSubscribeRequest](#api.v1.TransferResponsesSubscribeRequest) | [TransferResponsesSubscribeResponse](#api.v1.TransferResponsesSubscribeResponse) stream | Subscribe to a stream of Transfer Responses | -| GetNodeSignaturesAggregate | [GetNodeSignaturesAggregateRequest](#api.v1.GetNodeSignaturesAggregateRequest) | [GetNodeSignaturesAggregateResponse](#api.v1.GetNodeSignaturesAggregateResponse) | Get an aggregate of signatures from all the nodes of the network | -| AssetByID | [AssetByIDRequest](#api.v1.AssetByIDRequest) | [AssetByIDResponse](#api.v1.AssetByIDResponse) | Get an asset by its identifier | -| Assets | [AssetsRequest](#api.v1.AssetsRequest) | [AssetsResponse](#api.v1.AssetsResponse) | Get a list of all assets on Vega | -| EstimateFee | [EstimateFeeRequest](#api.v1.EstimateFeeRequest) | [EstimateFeeResponse](#api.v1.EstimateFeeResponse) | Get an estimate for the fee to be paid for a given order | -| EstimateMargin | [EstimateMarginRequest](#api.v1.EstimateMarginRequest) | [EstimateMarginResponse](#api.v1.EstimateMarginResponse) | Get an estimate for the margin required for a new order | -| ERC20WithdrawalApproval | [ERC20WithdrawalApprovalRequest](#api.v1.ERC20WithdrawalApprovalRequest) | [ERC20WithdrawalApprovalResponse](#api.v1.ERC20WithdrawalApprovalResponse) | Get the bundle approval for an ERC20 withdrawal, these data are being used to bundle the call to the smart contract on the ethereum bridge | -| Withdrawal | [WithdrawalRequest](#api.v1.WithdrawalRequest) | [WithdrawalResponse](#api.v1.WithdrawalResponse) | Get a withdrawal by its identifier | -| Withdrawals | [WithdrawalsRequest](#api.v1.WithdrawalsRequest) | [WithdrawalsResponse](#api.v1.WithdrawalsResponse) | Get withdrawals for a party | -| Deposit | [DepositRequest](#api.v1.DepositRequest) | [DepositResponse](#api.v1.DepositResponse) | Get a deposit by its identifier | -| Deposits | [DepositsRequest](#api.v1.DepositsRequest) | [DepositsResponse](#api.v1.DepositsResponse) | Get deposits for a party | -| NetworkParameters | [NetworkParametersRequest](#api.v1.NetworkParametersRequest) | [NetworkParametersResponse](#api.v1.NetworkParametersResponse) | Get the network parameters | -| LiquidityProvisions | [LiquidityProvisionsRequest](#api.v1.LiquidityProvisionsRequest) | [LiquidityProvisionsResponse](#api.v1.LiquidityProvisionsResponse) | Get the liquidity provision orders | -| OracleSpec | [OracleSpecRequest](#api.v1.OracleSpecRequest) | [OracleSpecResponse](#api.v1.OracleSpecResponse) | Get an oracle spec by ID | -| OracleSpecs | [OracleSpecsRequest](#api.v1.OracleSpecsRequest) | [OracleSpecsResponse](#api.v1.OracleSpecsResponse) | Get the oracle specs | -| OracleDataBySpec | [OracleDataBySpecRequest](#api.v1.OracleDataBySpecRequest) | [OracleDataBySpecResponse](#api.v1.OracleDataBySpecResponse) | Get all oracle data | - - - - -### TradingService - - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| PrepareSubmitOrder | [PrepareSubmitOrderRequest](#api.v1.PrepareSubmitOrderRequest) | [PrepareSubmitOrderResponse](#api.v1.PrepareSubmitOrderResponse) | Prepare a submit order request | -| PrepareCancelOrder | [PrepareCancelOrderRequest](#api.v1.PrepareCancelOrderRequest) | [PrepareCancelOrderResponse](#api.v1.PrepareCancelOrderResponse) | Prepare a cancel order request | -| PrepareAmendOrder | [PrepareAmendOrderRequest](#api.v1.PrepareAmendOrderRequest) | [PrepareAmendOrderResponse](#api.v1.PrepareAmendOrderResponse) | Prepare an amend order request | -| PrepareWithdraw | [PrepareWithdrawRequest](#api.v1.PrepareWithdrawRequest) | [PrepareWithdrawResponse](#api.v1.PrepareWithdrawResponse) | Request a withdrawal | -| SubmitTransaction | [SubmitTransactionRequest](#api.v1.SubmitTransactionRequest) | [SubmitTransactionResponse](#api.v1.SubmitTransactionResponse) | Submit a signed transaction | -| SubmitTransactionV2 | [SubmitTransactionV2Request](#api.v1.SubmitTransactionV2Request) | [SubmitTransactionV2Response](#api.v1.SubmitTransactionV2Response) | Submit a signed transaction (v2) | -| PrepareProposalSubmission | [PrepareProposalSubmissionRequest](#api.v1.PrepareProposalSubmissionRequest) | [PrepareProposalSubmissionResponse](#api.v1.PrepareProposalSubmissionResponse) | Prepare a governance proposal | -| PrepareVoteSubmission | [PrepareVoteSubmissionRequest](#api.v1.PrepareVoteSubmissionRequest) | [PrepareVoteSubmissionResponse](#api.v1.PrepareVoteSubmissionResponse) | Prepare a governance vote | -| PropagateChainEvent | [PropagateChainEventRequest](#api.v1.PropagateChainEventRequest) | [PropagateChainEventResponse](#api.v1.PropagateChainEventResponse) | Propagate a chain event | -| PrepareLiquidityProvision | [PrepareLiquidityProvisionRequest](#api.v1.PrepareLiquidityProvisionRequest) | [PrepareLiquidityProvisionResponse](#api.v1.PrepareLiquidityProvisionResponse) | Prepare a liquidity provision request | - - diff --git a/proto/api/trading.proto b/proto/api/trading.proto index 5d7321b8..4c2ff951 100644 --- a/proto/api/trading.proto +++ b/proto/api/trading.proto @@ -19,42 +19,24 @@ option java_package = "io.vegaprotocol.vega.api"; import "github.com/mwitkow/go-proto-validators/validator.proto"; service TradingService { - - // Prepare a submit order request - rpc PrepareSubmitOrder(PrepareSubmitOrderRequest) returns (PrepareSubmitOrderResponse); - - // Prepare a cancel order request - rpc PrepareCancelOrder(PrepareCancelOrderRequest) returns (PrepareCancelOrderResponse); - - // Prepare an amend order request - rpc PrepareAmendOrder(PrepareAmendOrderRequest) returns (PrepareAmendOrderResponse); - - // Request a withdrawal - rpc PrepareWithdraw(PrepareWithdrawRequest) returns (PrepareWithdrawResponse); - - // Submit a signed transaction - rpc SubmitTransaction(SubmitTransactionRequest) returns (SubmitTransactionResponse); - // Submit a signed transaction (v2) rpc SubmitTransactionV2(SubmitTransactionV2Request) returns (SubmitTransactionV2Response); - - // Prepare a governance proposal - rpc PrepareProposalSubmission(PrepareProposalSubmissionRequest) returns (PrepareProposalSubmissionResponse); - - // Prepare a governance vote - rpc PrepareVoteSubmission(PrepareVoteSubmissionRequest) returns (PrepareVoteSubmissionResponse); - // Propagate a chain event rpc PropagateChainEvent(PropagateChainEventRequest) returns (PropagateChainEventResponse); - - // Prepare a liquidity provision request - rpc PrepareLiquidityProvision(PrepareLiquidityProvisionRequest) returns (PrepareLiquidityProvisionResponse); + // Get Statistics on Vega + rpc Statistics(StatisticsRequest) returns (StatisticsResponse); + // Get the height of the last tendermint block + rpc LastBlockHeight(LastBlockHeightRequest) returns (LastBlockHeightResponse); + // Get Time + rpc GetVegaTime(GetVegaTimeRequest) returns (GetVegaTimeResponse); + // Subscribe to a stream of events from the core + rpc ObserveEventBus(stream ObserveEventBusRequest) returns (stream ObserveEventBusResponse); } // Request for a new event sent by the blockchain queue to be propagated on Vega message PropagateChainEventRequest { // Chain event - vega.commands.v1.ChainEvent evt = 1; + bytes event = 1; // Public key string pub_key = 2; // Signature @@ -68,44 +50,6 @@ message PropagateChainEventResponse { bool success = 1; } -// Request for submitting a transaction on Vega -message SubmitTransactionRequest { - // Blockchain transaction type - enum Type { - TYPE_UNSPECIFIED = 0; - // The transaction will be submitted without waiting for response - TYPE_ASYNC = 1; - // The transaction will be submitted, and blocking until the - // tendermint mempool return a response - TYPE_SYNC = 2; - // The transaction will submitted, and blocking until the tendermint - // network will have committed it into a block - TYPE_COMMIT = 3; - } - - // This request will take the signed `blob` result from a `prepare` call and submit it for inclusion in a block by the Vega blockchain - // Several commands are available on Vega: - // - SubmitOrder, see [PrepareSubmitOrder](#api.trading) - // - AmendOrder, see [PrepareAmendOrder](#api.trading) - // - CancelOrder, see [PrepareCancelOrder](#api.trading) - // - PrepareProposal, see [PrepareProposal](#api.trading) - // - PrepareVoteSubmission, see [PrepareVote](#api.trading) - // - Withdraw, see [WithdrawRequest](#api.trading) - // All of these can be prepared using this API, payload data must be signed using Vega Wallet before submitting a transaction - - // A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain - vega.SignedBundle tx = 1; - // Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response - Type type = 2; -} - -// Response for submitting a transaction on Vega -message SubmitTransactionResponse { - // Success will be true if the transaction was accepted by the node, - // **Important** - success does not mean that the event is confirmed by consensus - bool success = 1; -} - // Request for submitting a transaction v2 on Vega message SubmitTransactionV2Request { // Blockchain transaction type @@ -134,817 +78,6 @@ message SubmitTransactionV2Response { bool success = 1; } -// Request for preparing a withdrawal -message PrepareWithdrawRequest { - // An asset withdrawal - vega.commands.v1.WithdrawSubmission withdraw = 1; -} - -// Response for preparing a withdrawal -message PrepareWithdrawResponse { - // Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; -} - -// Response for preparing an order submission -message PrepareSubmitOrderResponse { - // Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; - // Submission identifier (order reference) - string submit_id = 2; -} - -// Response for preparing an order cancellation -message PrepareCancelOrderResponse { - // Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; -} - -// Response for preparing an order amendment -message PrepareAmendOrderResponse { - // Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction. - bytes blob = 1; -} - -// Request to submit a new order -message PrepareSubmitOrderRequest { - // An order submission - vega.commands.v1.OrderSubmission submission = 1; -} - -// Request to cancel an existing order -message PrepareCancelOrderRequest { - // An order cancellation - vega.commands.v1.OrderCancellation cancellation = 1; -} - -// Request to amend an existing order -message PrepareAmendOrderRequest { - // An order amendment - vega.commands.v1.OrderAmendment amendment = 1; -} - -service TradingDataService { - - // -- Accounts -- - - // Get a list of Accounts by Market - rpc MarketAccounts(MarketAccountsRequest) returns (MarketAccountsResponse); - - // Get a list of Accounts by Party - rpc PartyAccounts(PartyAccountsRequest) returns (PartyAccountsResponse); - - // Get a list of accounts holding infrastructure fees. - // Can be filtered by asset, there will be 1 infrastructure fee account per - // asset in the network. - rpc FeeInfrastructureAccounts(FeeInfrastructureAccountsRequest) returns (FeeInfrastructureAccountsResponse); - - // -- Candles -- - - // Get a list of Candles by Market - rpc Candles(CandlesRequest) returns (CandlesResponse); - - // -- Market Data -- - - // Get Market Data by Market ID - rpc MarketDataByID(MarketDataByIDRequest) returns (MarketDataByIDResponse); - - // Get a list of Market Data - rpc MarketsData(MarketsDataRequest) returns (MarketsDataResponse); - - // -- Markets -- - - // Get a Market by ID - rpc MarketByID(MarketByIDRequest) returns (MarketByIDResponse); - - // Get Market Depth - rpc MarketDepth(MarketDepthRequest) returns (MarketDepthResponse); - - // Get a list of Markets - rpc Markets(MarketsRequest) returns (MarketsResponse); - - // -- Orders -- - - // Get an Order by Market and Order ID - rpc OrderByMarketAndID(OrderByMarketAndIDRequest) returns (OrderByMarketAndIDResponse); - - // Get an Order by Pending Order reference (UUID) - rpc OrderByReference(OrderByReferenceRequest) returns (OrderByReferenceResponse); - - // Get a list of Orders by Market - rpc OrdersByMarket(OrdersByMarketRequest) returns (OrdersByMarketResponse); - - // Get a list of Orders by Party - rpc OrdersByParty(OrdersByPartyRequest) returns (OrdersByPartyResponse); - - // Get a specific order by order ID - rpc OrderByID(OrderByIDRequest) returns (OrderByIDResponse); - - // Get all versions of the order by its orderID - rpc OrderVersionsByID(OrderVersionsByIDRequest) returns (OrderVersionsByIDResponse); - - // -- Parties -- - - // Get Margin Levels by Party ID - rpc MarginLevels(MarginLevelsRequest) returns (MarginLevelsResponse); - - // Get a list of Parties - rpc Parties(PartiesRequest) returns (PartiesResponse); - - // Get a Party by ID - rpc PartyByID(PartyByIDRequest) returns (PartyByIDResponse); - - // -- Positions -- - - // Get a list of Positions by Party - rpc PositionsByParty(PositionsByPartyRequest) returns (PositionsByPartyResponse); - - // -- Trades -- - - // Get latest Trade - rpc LastTrade(LastTradeRequest) returns (LastTradeResponse); - - // Get a list of Trades by Market - rpc TradesByMarket(TradesByMarketRequest) returns (TradesByMarketResponse); - - // Get a list of Trades by Order - rpc TradesByOrder(TradesByOrderRequest) returns (TradesByOrderResponse); - - // Get a list of Trades by Party - rpc TradesByParty(TradesByPartyRequest) returns (TradesByPartyResponse); - - // -- Governance -- - - // Get governance data (proposals and votes) for all proposals - rpc GetProposals(GetProposalsRequest) returns (GetProposalsResponse); - - // Get governance data (proposals and votes) for proposals by party authoring them - rpc GetProposalsByParty(GetProposalsByPartyRequest) returns (GetProposalsByPartyResponse); - - // Get votes by party casting them - rpc GetVotesByParty(GetVotesByPartyRequest) returns (GetVotesByPartyResponse); - - // Get governance data (proposals and votes) for proposals that aim creating new markets - rpc GetNewMarketProposals(GetNewMarketProposalsRequest) returns (GetNewMarketProposalsResponse); - - // Get governance data (proposals and votes) for proposals that aim updating markets - rpc GetUpdateMarketProposals(GetUpdateMarketProposalsRequest) returns (GetUpdateMarketProposalsResponse); - - // Get governance data (proposals and votes) for proposals that aim updating Vega network parameters - rpc GetNetworkParametersProposals(GetNetworkParametersProposalsRequest) returns (GetNetworkParametersProposalsResponse); - - // Get governance data (proposals and votes) for proposals aiming to create new assets - rpc GetNewAssetProposals(GetNewAssetProposalsRequest) returns (GetNewAssetProposalsResponse); - - // Get governance data (proposals and votes) for a proposal located by ID - rpc GetProposalByID(GetProposalByIDRequest) returns (GetProposalByIDResponse); - - // Get governance data (proposals and votes) for a proposal located by reference - rpc GetProposalByReference(GetProposalByReferenceRequest) returns (GetProposalByReferenceResponse); - - // Subscribe to a stream of all governance updates - rpc ObserveGovernance(ObserveGovernanceRequest) returns (stream ObserveGovernanceResponse); - - // Subscribe to a stream of proposal updates - rpc ObservePartyProposals(ObservePartyProposalsRequest) returns (stream ObservePartyProposalsResponse); - - // Subscribe to a stream of votes cast by a specific party - rpc ObservePartyVotes(ObservePartyVotesRequest) returns (stream ObservePartyVotesResponse); - - // Subscribe to a stream of proposal votes - rpc ObserveProposalVotes(ObserveProposalVotesRequest) returns (stream ObserveProposalVotesResponse); - - // Subscribe to a stream of events from the core - rpc ObserveEventBus(stream ObserveEventBusRequest) returns (stream ObserveEventBusResponse); - - // -- Misc -- - - // Get Statistics on Vega - rpc Statistics(StatisticsRequest) returns (StatisticsResponse); - - rpc LastBlockHeight(LastBlockHeightRequest) returns (LastBlockHeightResponse); - - // Get Time - rpc GetVegaTime(GetVegaTimeRequest) returns (GetVegaTimeResponse); - - // Subscribe to a stream of Accounts - rpc AccountsSubscribe(AccountsSubscribeRequest) returns (stream AccountsSubscribeResponse); - - // Subscribe to a stream of Candles - rpc CandlesSubscribe(CandlesSubscribeRequest) returns (stream CandlesSubscribeResponse); - - // Subscribe to a stream of Margin Levels - rpc MarginLevelsSubscribe(MarginLevelsSubscribeRequest) returns (stream MarginLevelsSubscribeResponse); - - // Subscribe to a stream of Market Depth - rpc MarketDepthSubscribe(MarketDepthSubscribeRequest) returns (stream MarketDepthSubscribeResponse); - - // Subscribe to a stream of Market Depth Price Level Updates - rpc MarketDepthUpdatesSubscribe(MarketDepthUpdatesSubscribeRequest) returns (stream MarketDepthUpdatesSubscribeResponse); - - // Subscribe to a stream of Markets Data - rpc MarketsDataSubscribe(MarketsDataSubscribeRequest) returns (stream MarketsDataSubscribeResponse); - - // Subscribe to a stream of Orders - rpc OrdersSubscribe(OrdersSubscribeRequest) returns (stream OrdersSubscribeResponse); - - // Subscribe to a stream of Positions - rpc PositionsSubscribe(PositionsSubscribeRequest) returns (stream PositionsSubscribeResponse); - - // Subscribe to a stream of Trades - rpc TradesSubscribe(TradesSubscribeRequest) returns (stream TradesSubscribeResponse); - - // Subscribe to a stream of Transfer Responses - rpc TransferResponsesSubscribe(TransferResponsesSubscribeRequest) returns (stream TransferResponsesSubscribeResponse); - - // Get an aggregate of signatures from all the nodes of the network - rpc GetNodeSignaturesAggregate(GetNodeSignaturesAggregateRequest) returns (GetNodeSignaturesAggregateResponse); - - // Get an asset by its identifier - rpc AssetByID(AssetByIDRequest) returns (AssetByIDResponse); - - // Get a list of all assets on Vega - rpc Assets(AssetsRequest) returns (AssetsResponse); - - // Get an estimate for the fee to be paid for a given order - rpc EstimateFee(EstimateFeeRequest) returns (EstimateFeeResponse); - - // Get an estimate for the margin required for a new order - rpc EstimateMargin(EstimateMarginRequest) returns (EstimateMarginResponse); - - // Get the bundle approval for an ERC20 withdrawal, - // these data are being used to bundle the call to the smart contract on the ethereum bridge - rpc ERC20WithdrawalApproval(ERC20WithdrawalApprovalRequest) returns (ERC20WithdrawalApprovalResponse); - - // Get a withdrawal by its identifier - rpc Withdrawal(WithdrawalRequest) returns (WithdrawalResponse); - - // Get withdrawals for a party - rpc Withdrawals(WithdrawalsRequest) returns (WithdrawalsResponse); - - // Get a deposit by its identifier - rpc Deposit(DepositRequest) returns (DepositResponse); - - // Get deposits for a party - rpc Deposits(DepositsRequest) returns (DepositsResponse); - - // Get the network parameters - rpc NetworkParameters(NetworkParametersRequest) returns (NetworkParametersResponse); - - // Get the liquidity provision orders - rpc LiquidityProvisions(LiquidityProvisionsRequest) returns (LiquidityProvisionsResponse); - - // Get an oracle spec by ID - rpc OracleSpec(OracleSpecRequest) returns (OracleSpecResponse); - - // Get the oracle specs - rpc OracleSpecs(OracleSpecsRequest) returns (OracleSpecsResponse); - - // Get all oracle data - rpc OracleDataBySpec(OracleDataBySpecRequest) returns (OracleDataBySpecResponse); -} - -// Request for a list of all assets enabled on Vega -message AssetsRequest { } - -// Response for a list of all assets enabled on Vega -message AssetsResponse { - // A list of 0 or more assets - repeated vega.Asset assets = 1; -} - -// Request for an asset given an asset identifier -message AssetByIDRequest { - // Asset identifier, required field - string id = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response for an asset given an asset identifier -message AssetByIDResponse { - // An asset record, if found - vega.Asset asset = 1; -} - -// Request to specify the identifier of the resource we want to retrieve aggregated signatures for -message GetNodeSignaturesAggregateRequest { - // Resource identifier, required field - string id = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response to specify the identifier of the resource we want to retrieve aggregated signatures for -message GetNodeSignaturesAggregateResponse { - // A list of 0 or more signatures - repeated vega.commands.v1.NodeSignature signatures = 1; -} - -// Optional proposal state -message OptionalProposalState { - // Proposal state value - vega.Proposal.State value = 1; -} - -// Request for a list of proposals -message GetProposalsRequest { - // Optional proposal state - OptionalProposalState select_in_state = 1; -} - -// Response for a list of proposals -message GetProposalsResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a list of proposals for a party -message GetProposalsByPartyRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true}]; - // Optional proposal state - OptionalProposalState select_in_state = 2; -} - -// Response for a list of proposals for a party -message GetProposalsByPartyResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a list of votes for a party -message GetVotesByPartyRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response for a list of votes for a party -message GetVotesByPartyResponse { - // A list of 0 or more votes - repeated vega.Vote votes = 1; -} - -// Request for a list of new market proposals -message GetNewMarketProposalsRequest { - // Optional proposal state - OptionalProposalState select_in_state = 1; -} - -// Response for a list of new market proposals -message GetNewMarketProposalsResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a list of update market proposals -message GetUpdateMarketProposalsRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true}]; - // Proposal state - OptionalProposalState select_in_state = 2; -} - -// Response for a list of update market proposals -message GetUpdateMarketProposalsResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a list of network parameter proposals -message GetNetworkParametersProposalsRequest { - // Optional proposal state - OptionalProposalState select_in_state = 1; -} - -// Response for a list of network parameter proposals -message GetNetworkParametersProposalsResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a list of new asset proposals -message GetNewAssetProposalsRequest { - // Optional proposal state - OptionalProposalState select_in_state = 1; -} - -// Response for a list of new asset proposals -message GetNewAssetProposalsResponse { - // A list of 0 or more governance data - repeated vega.GovernanceData data = 1; -} - -// Request for a governance proposal given a proposal identifier -message GetProposalByIDRequest { - // Proposal identifier, required field - string proposal_id = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response for a governance proposal given a proposal identifier -message GetProposalByIDResponse { - // Governance data, if found - vega.GovernanceData data = 1; -} - -// Request for a governance proposal given a proposal reference -message GetProposalByReferenceRequest { - // Proposal reference. Required field - string reference = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response for a governance proposal given a proposal reference -message GetProposalByReferenceResponse { - // Governance data, if found - vega.GovernanceData data = 1; -} - -// Request to obsever all event related to governance -message ObserveGovernanceRequest {} - -// All events related to governance -message ObserveGovernanceResponse { - vega.GovernanceData data = 1; -} - -// Request to subscribe to a stream of governance proposals for a party -message ObservePartyProposalsRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -message ObservePartyProposalsResponse { - vega.GovernanceData data = 1; -} - -// Request to subscribe to a stream of governance votes for a proposal -message ObserveProposalVotesRequest { - // Proposal identifier, required field - string proposal_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -message ObserveProposalVotesResponse { - vega.Vote vote = 1; -} - -// Request to subscribe to a stream of governance votes for a party -message ObservePartyVotesRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -message ObservePartyVotesResponse { - vega.Vote vote = 1; -} - -// Request to subscribe to a stream of MarginLevels data matching the given party identifier -// Optionally, the list can be additionally filtered by market -message MarginLevelsSubscribeRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; - // Market identifier - string market_id = 2; -} - -message MarginLevelsSubscribeResponse { - vega.MarginLevels margin_levels = 1; -} - -// Request for margin levels for a party -message MarginLevelsRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; - // Market identifier - string market_id = 2; -} - -// Response for margin levels for a party -message MarginLevelsResponse { - // A list of 0 or more margin levels - repeated vega.MarginLevels margin_levels = 1; -} - -// Request to subscribe to a stream of MarketsData -// Optionally, the list can be additionally filtered by market -message MarketsDataSubscribeRequest { - // Market identifier - string market_id = 1; -} - -message MarketsDataSubscribeResponse { - vega.MarketData market_data = 1; -} - -// Request for market data for a market -message MarketDataByIDRequest { - // Market identifier - string market_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// Response for market data for a market -message MarketDataByIDResponse { - // Market data, if found - vega.MarketData market_data = 1; -} - -// Request for market data -message MarketsDataRequest {} - -// Response for market data -message MarketsDataResponse { - // A list of 0 or more market data - repeated vega.MarketData markets_data = 1; -} - -// Request for the latest trade that occurred on Vega for a given market -message LastTradeRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// Response for the latest trade that occurred on Vega for a given market -message LastTradeResponse { - // A trade, if found - vega.Trade trade = 1; -} - -// Request for a market given a market identifier -message MarketByIDRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// Response for a market given a market identifier -message MarketByIDResponse { - // A market, if found - vega.Market market = 1; -} - -// Request for a party given a party identifier -message PartyByIDRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// Response for a party given a party identifier -message PartyByIDResponse { - // A party, if found - vega.Party party = 1; -} - -// Request for a list of all parties -message PartiesRequest {} - -// Response to a request for a list of parties -message PartiesResponse { - // A list of 0 or more parties - repeated vega.Party parties = 1; -} - -// Request for a list of trades relating to the given party -// Optionally, the list can be additionally filtered for trades by market -message TradesByPartyRequest { - // Party identifier. Required field - string party_id = 1; - // Market identifier - string market_id = 2; - // Pagination controls - Pagination pagination = 3; -} - -// Response for a list of trades relating to a party -message TradesByPartyResponse { - // A list of 0 or more trades - repeated vega.Trade trades = 1; -} - -// Request for a list of trades related to an order -message TradesByOrderRequest { - // Order identifier, required field - string order_id = 1; -} - -// Response for a list of trades related to an order -message TradesByOrderResponse { - // A list of 0 or more trades - repeated vega.Trade trades = 1; -} - -// Request to subscribe to a stream of (Accounts)[#vega.Account] -message AccountsSubscribeRequest { - // Market identifier - string market_id = 1; - // Party identifier - string party_id = 2; - // Asset identifier - string asset = 3; - // Account type to subscribe to, required field - vega.AccountType type = 4; -} - -message AccountsSubscribeResponse { - vega.Account account = 1; -} - -// Request to subscribe to a stream of (Orders)[#vega.Order] -message OrdersSubscribeRequest { - // The fields for market identifier and party identifier are optional filters: - // If omitted all orders, for all parties on all markets will be returned on the stream - // If market identifier is given, orders from that market will be returned on the stream - // If party identifier is given, orders from that party will be returned on the stream - // Both filters can be combined - - // Market identifier - string market_id = 1; - // Party identifier - string party_id = 2; -} - -// Request to subscribe to a stream of (Trades)[#vega.Trade] -message TradesSubscribeRequest { - // The fields for market identifier and party identifier are optional filters: - // If omitted all trades, for all parties on all markets will be returned on the stream - // If market identifier is given, trades from that market will be returned on the stream - // If party identifier is given, trades from that party will be returned on the stream - // Both filters can be combined - - // Market identifier - string market_id = 1; - // Party identifier - string party_id = 2; -} - -// Request to subscribe to a stream of (Candles)[#vega.Candle] -message CandlesSubscribeRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true}]; - // Time interval for the candles, required field. - vega.Interval interval = 2; -} - -message CandlesSubscribeResponse { - vega.Candle candle = 1; -} - -// Request to subscribe to a stream of (MarketDepth)[#vega.MarketDepth] data -message MarketDepthSubscribeRequest { - // Market identifier, required field. - string market_id = 1 [(validator.field) = {string_not_empty : true}]; -} - -message MarketDepthSubscribeResponse { - vega.MarketDepth market_depth = 1; -} - -// Request to subscribe to a stream of (MarketDepth Update)[#vega.MarketDepthUpdate] data -message MarketDepthUpdatesSubscribeRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true}]; -} - -message MarketDepthUpdatesSubscribeResponse { - vega.MarketDepthUpdate update = 1; -} - -// Request to subscribe to a stream of (Positions)[#vega.Position] -message PositionsSubscribeRequest { - // Party identifier, optional field - string party_id = 1; - // Market identifier, optional field - string market_id = 2; -} - -message PositionsSubscribeResponse { - vega.Position position = 1; -} - -// Request for a list of orders for a market -message OrdersByMarketRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true}]; - // Optional pagination controls - Pagination pagination = 2; -} - -// Response for a list of orders for a market -message OrdersByMarketResponse { - // A list of 0 or more orders - repeated vega.Order orders = 1; -} - -// Request for a list of orders for a party -message OrdersByPartyRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty : true }]; - // Pagination controls - Pagination pagination = 2; -} - -// Response for a list of orders for a party -message OrdersByPartyResponse { - // A list of 0 or more orders - repeated vega.Order orders = 1; -} - -// Request for an order on a market given an order identifier -message OrderByMarketAndIDRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty : true}]; - // Order identifier, required field - string order_id = 2 [(validator.field) = {string_not_empty : true}]; -} - -// Response for an order on a market given an order identifier -message OrderByMarketAndIDResponse { - // An order, if found - vega.Order order = 1; -} - -// Request for an order given an order reference -message OrderByReferenceRequest { - // Unique reference, required field - string reference = 1 [(validator.field) = {string_not_empty : true}]; -} - -// Response for an order given an order reference -message OrderByReferenceResponse { - // An order, if found - vega.Order order = 1; -} - -// Request for a list of markets on Vega -message MarketsRequest {} - -// Response for a list of markets on Vega -message MarketsResponse { - // A list of 0 or more markets - repeated vega.Market markets = 1; -} - -// Request for a list of candles for a market at an interval -message CandlesRequest { - // Market identifier, required field. - string market_id = 1 [(validator.field) = {string_not_empty : true}]; - // Timestamp to retrieve candles since, in nanoseconds since the epoch, - // required field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` - int64 since_timestamp = 2 [(validator.field) = {int_gt: 0}]; - // Time interval for the candles, required field - vega.Interval interval = 3; -} - -// Response for a list of candles for a market at an interval -message CandlesResponse { - // A list of 0 or more candles - repeated vega.Candle candles = 1; -} - -// Request for the market depth/order book price levels on a market -// Optionally, a maximum depth can be set to limit the number of levels returned -message MarketDepthRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty: true}]; - // Max depth limits the number of levels returned. Default is 0, which returns all levels - uint64 max_depth = 2; -} - -// Response for the market depth/order book price levels on a market -message MarketDepthResponse { - // Market identifier - string market_id = 1; - // Zero or more price levels for the buy side of the market depth data - repeated vega.PriceLevel buy = 2; - // Zero or more price levels for the sell side of the market depth data - repeated vega.PriceLevel sell = 3; - // Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse` - vega.Trade last_trade = 4; - // Sequence number incremented after each update - uint64 sequence_number = 5; -} - -// Request for a list of trades on a market -message TradesByMarketRequest { - // Market identifier, required field - string market_id = 1 [(validator.field) = {string_not_empty: true}]; - // Pagination controls - Pagination pagination = 2; -} - -// Response for a list of trades on a market -message TradesByMarketResponse { - // A list of 0 or more trades - repeated vega.Trade trades = 1; -} - -// Request for a list of positions for a party -// Optionally, if a market identifier is set, the results will be filtered for that market only -message PositionsByPartyRequest { - // Party identifier, required field - string party_id = 1 [(validator.field) = {string_not_empty: true}]; - // Market identifier - string market_id = 2; -} - -// Response for a list of positions for a party -message PositionsByPartyResponse { - // A list of 0 or more positions - repeated vega.Position positions = 1; -} // Request for the current time of the vega network message GetVegaTimeRequest {} @@ -956,178 +89,6 @@ message GetVegaTimeResponse { int64 timestamp = 1; } -// Pagination controls -message Pagination { - // Skip the number of records specified, default is 0 - uint64 skip = 1; - // Limit the number of returned records to the value specified, default is 50 - uint64 limit = 2; - // Descending reverses the order of the records returned, - // default is true, if false the results will be returned in ascending order - bool descending = 3; -} - -// A stream of orders -message OrdersSubscribeResponse { - // A list of 0 or more orders - repeated vega.Order orders = 1; -} - -// A stream of trades -message TradesSubscribeResponse { - // A list of 0 or more trades - repeated vega.Trade trades = 1; -} - -message TransferResponsesSubscribeRequest {} - -message TransferResponsesSubscribeResponse { - vega.TransferResponse response = 1; -} - -// Request for a list of accounts for a party -message PartyAccountsRequest { - // Party identifier - string party_id = 1; - // Market identifier - string market_id = 2; - // Account type, required field - vega.AccountType type = 3; - // Asset identifier - string asset = 4; -} - -// Response for a list of accounts for a party -message PartyAccountsResponse { - // A list of 0 or more accounts - repeated vega.Account accounts = 1; -} - -// Request for a list of accounts for a market -message MarketAccountsRequest { - // Market identifier - string market_id = 1; - // Asset identifier - string asset = 2; -} - -// Response for a list of accounts for a market -message MarketAccountsResponse { - // A list of 0 or more accounts - repeated vega.Account accounts = 1; -} - -// Request for a list of infrastructure fee accounts -message FeeInfrastructureAccountsRequest { - // Asset identifier, required field - // - Set to an empty string to return all accounts - // - Set to an asset ID to return a single infrastructure fee account for a given asset - string asset = 1; -} - -// Response for a list of infrastructure fee accounts -message FeeInfrastructureAccountsResponse { - // A list of 0 or more infrastructure fee accounts - repeated vega.Account accounts = 1; -} - -// Request to prepare a governance proposal -message PrepareProposalSubmissionRequest { - vega.commands.v1.ProposalSubmission submission = 1; -} - -// Response to prepare a governance proposal -message PrepareProposalSubmissionResponse { - // A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; - // A copy of the prepared proposal - vega.commands.v1.ProposalSubmission submission = 2; -} - -// Request to prepare a governance vote -message PrepareVoteSubmissionRequest { - // Vote, required field - vega.commands.v1.VoteSubmission submission = 1 [(validator.field) = {msg_exists: true}]; -} - -// Response to prepare a governance vote -message PrepareVoteSubmissionResponse { - // A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; - // A copy of the prepared vote - vega.commands.v1.VoteSubmission submission = 2; -} - -// Request to prepare liquiditity provision -message PrepareLiquidityProvisionRequest { - // Submission, required field - vega.commands.v1.LiquidityProvisionSubmission submission = 1 [(validator.field) = {msg_exists: true}]; -} - -// Response to a liquidity provision request -message PrepareLiquidityProvisionResponse { - // A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction - bytes blob = 1; -} - -// Request for an order with the specified order identifier -// Optionally, return a specific version of the order with the `version` field -message OrderByIDRequest { - // Order identifier, required field - string order_id = 1 [(validator.field) = {msg_exists: true}]; - // Version of the order: - // - Set `version` to 0 for most recent version of the order - // - Set `1` for original version of the order - // - Set `2` for first amendment, `3` for second amendment, etc - uint64 version = 2; -} - -message OrderByIDResponse { - vega.Order order = 1; -} - -// Request for a list of all versions of an order given the specified order identifier -message OrderVersionsByIDRequest { - // Order identifier, required field - string order_id = 1 [(validator.field) = {msg_exists: true}]; - // Pagination controls - Pagination pagination = 2; -} - -// Response to a request for a list of all versions of an order -message OrderVersionsByIDResponse { - // A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended) - repeated vega.Order orders = 1; -} - -// Request to fetch the estimated fee if an order were to trade immediately -message EstimateFeeRequest { - // Order to estimate fees for - // the following fields in the order are required: - // MarketID (used to specify the fee factors) - // Price (the price at which the order could trade) - // Size (the size at which the order could eventually trade) - vega.Order order = 1; -} - -// Response to a EstimateFeeRequest, containing the estimated fees for a given order -message EstimateFeeResponse { - // Summary of the estimated fees for this order if it were to trade now - vega.Fee fee = 2; -} - -// Request to fetch the estimated MarginLevels if an order were to trade immediately -message EstimateMarginRequest { - // Order to estimate fees for - vega.Order order = 1; -} - -// Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order -message EstimateMarginResponse { - // Summary of the estimated margins for this order if it were to trade now - vega.MarginLevels margin_levels = 2; -} - // Request to subscribe to a stream of one or more event types from the Vega event bus message ObserveEventBusRequest { // One or more types of event, required field @@ -1156,133 +117,76 @@ message ObserveEventBusResponse { message StatisticsRequest {} message StatisticsResponse { - vega.Statistics statistics = 1; -} - -// A request to get a list of withdrawal from a given party -message WithdrawalsRequest { - // The party to get the withdrawals for - string party_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// The response for a list of withdrawals -message WithdrawalsResponse { - // The list of withdrawals for the specified party - repeated vega.Withdrawal withdrawals = 1; -} - -// A request to get a specific withdrawal by identifier -message WithdrawalRequest { - // The identifier of the withdrawal - string id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// A response for a withdrawal -message WithdrawalResponse { - // The withdrawal matching the identifier from the request - vega.Withdrawal withdrawal = 1 ; -} - -// The request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge -message ERC20WithdrawalApprovalRequest { - // The identifier of the withdrawal - string withdrawal_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge -// function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures) -message ERC20WithdrawalApprovalResponse { - // The address of asset on ethereum - string asset_source = 1; - // The amount to be withdrawn - string amount = 2; - // The expiry / until what time the request is valid - int64 expiry = 3; - // The nonce, which is actually the internal reference for the withdrawal - string nonce = 4; - // The signatures bundle as hex encoded data, forward by 0x - // e.g: 0x + sig1 + sig2 + ... + sixN - string signatures = 5; -} - -// A request to get a list of deposit from a given party -message DepositsRequest { - // The party to get the deposits for - string party_id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// The response for a list of deposits -message DepositsResponse { - // The list of deposits for the specified party - repeated vega.Deposit deposits = 1; -} - -// A request to get a specific deposit by identifier -message DepositRequest { - // The identifier of the deposit - string id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// A response for a deposit -message DepositResponse { - // The deposit matching the identifier from the request - vega.Deposit deposit = 1 ; -} - -// A message requesting for the list of all network parameters -message NetworkParametersRequest { } - -// A response containing all of the vega network parameters -message NetworkParametersResponse { - repeated vega.NetworkParameter network_parameters = 1; -} - -// A message requesting for the list of liquidity provision orders for markets -// One of the two filters is required (or both) -message LiquidityProvisionsRequest { - // The target market for the liquidity provision orders - string market = 1; - // The party which submitted the liquidity provision orders - string party = 2; -} - -// A response containing all of the Vega liquidity provision orders -message LiquidityProvisionsResponse { - repeated vega.LiquidityProvision liquidity_provisions = 1; -} - -// A request to get a specific oracle spec by identifier -message OracleSpecRequest { - // The id to get the oracle spec for - string id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// A response for a oracle spec -message OracleSpecResponse { - // The withdrawal matching the identifier from the request - oracles.v1.OracleSpec oracle_spec = 1 ; -} - -// A request to get a specific oracle spec by identifier -message OracleSpecsRequest { -} - -// The response for a list of withdrawals -message OracleSpecsResponse { - // The list of oracle specs - repeated oracles.v1.OracleSpec oracle_specs = 1; -} - -// A request to all oracle data broadcast to a given spec -message OracleDataBySpecRequest { - // The id to get the oracle spec for - string id = 1 [(validator.field) = {string_not_empty : true }]; -} - -// The response for a list of all oracle data broadcast to a given spec -message OracleDataBySpecResponse { - // The list of oracle data broadcast to a given spec - repeated oracles.v1.OracleData oracle_data = 1; + Statistics statistics = 1; +} + +// Vega domain specific statistics as reported by the node the caller is connected to +message Statistics { + // Current block height as reported by the Vega blockchain + uint64 block_height = 1; + // Current backlog length (number of transactions) that are waiting to be included in a block + uint64 backlog_length = 2; + // Total number of connected peers to this node + uint64 total_peers = 3; + // Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision + string genesis_time = 4; + // Current system date and time formatted in ISO-8601 datetime format with nanosecond precision + string current_time = 5; + // Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision + string vega_time = 6; + // Status of the connection to the Vega blockchain + // - See [`ChainStatus`](#vega.ChainStatus) + vega.ChainStatus status = 7; + // Transactions per block + uint64 tx_per_block = 8; + // Average transaction size in bytes + uint64 average_tx_bytes = 9; + // Average orders per block + uint64 average_orders_per_block = 10; + // Trades emitted per second + uint64 trades_per_second = 11; + // Orders processed per second + uint64 orders_per_second = 12; + // Total markets on this Vega network + uint64 total_markets = 13; + // Total number of order amendments since genesis (on all markets) + uint64 total_amend_order = 16; + // Total number of order cancellations since genesis (on all markets) + uint64 total_cancel_order = 17; + // Total number of order submissions since genesis (on all markets) + uint64 total_create_order = 18; + // Total number of orders processed since genesis (on all markets) + uint64 total_orders = 19; + // Total number of trades emitted since genesis (on all markets) + uint64 total_trades = 20; + // Current number of stream subscribers to order data + uint32 order_subscriptions = 21; + // Current number of stream subscribers to trade data + uint32 trade_subscriptions = 22; + // Current number of stream subscribers to candle-stick data + uint32 candle_subscriptions = 23; + // Current number of stream subscribers to market depth data + uint32 market_depth_subscriptions = 24; + // Current number of stream subscribers to positions data + uint32 positions_subscriptions = 25; + // Current number of stream subscribers to account data + uint32 account_subscriptions = 26; + // Current number of stream subscribers to market data + uint32 market_data_subscriptions = 27; + // The version hash of the Vega node software + string app_version_hash = 28; + // The version of the Vega node software + string app_version = 29; + // The version of the underlying Vega blockchain + string chain_version = 30; + // Current block duration, in nanoseconds + uint64 block_duration = 31; + // Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision + string uptime = 32; + // Unique identifier for the underlying Vega blockchain + string chain_id = 33; + // Current number of stream subscribers to market depth update data + uint32 market_depth_updates_subscriptions = 34; } // A request to get the height of the very last block processed @@ -1293,4 +197,4 @@ message LastBlockHeightRequest {} // tendermint message LastBlockHeightResponse { uint64 height = 1; -} \ No newline at end of file +} diff --git a/proto/chain_events.proto b/proto/chain_events.proto index ac4c59ba..d114d8f0 100644 --- a/proto/chain_events.proto +++ b/proto/chain_events.proto @@ -171,3 +171,41 @@ message ValidatorEvent { RemoveValidator rm = 1002; } } + +message StakingEvent { + // Index of the transaction + uint64 index = 1; + // The block in which the transaction was added + uint64 block = 2; + + oneof action { + StakeDeposited stake_deposited = 1001; + StakeRemoved stake_removed = 1002; + } +} + +message StakeDeposited { + // Ethereum Address of the user depositing stake (hex encode with 0x prefix) + string ethereum_address = 1; + // The public of the party receiving the stake deposit (hex encode) + string vega_public_key = 2; + // The amount deposited (base 10) + string amount = 3; + // The time at which the block was produced + // will be used to inform the core at what time + // the stake started to be available. + int64 block_time = 4; +} + +message StakeRemoved { + // Ethereum address of the user removing stake (hex encode with 0x prefix) + string ethereum_address = 1; + // The public key of the party from which to remove stake (hex encode) + string vega_public_key = 2; + // The amount removed (base 10) + string amount = 3; + // The time at which the block was produced + // will be used to inform the core at what time + // the stake was made unavailable. + int64 block_time = 4; +} \ No newline at end of file diff --git a/proto/commands/v1/commands.proto b/proto/commands/v1/commands.proto index a41a386b..de670e2f 100644 --- a/proto/commands/v1/commands.proto +++ b/proto/commands/v1/commands.proto @@ -140,4 +140,9 @@ message UndelegateSubmission { // optional, if not specified = ALL uint64 amount = 2; Method method = 3; -} \ No newline at end of file +} + +// A command that loads the state from a given checkpoint +message RestoreSnapshot { + bytes data = 1; +} diff --git a/proto/commands/v1/transaction.proto b/proto/commands/v1/transaction.proto index 9067d07f..36717027 100644 --- a/proto/commands/v1/transaction.proto +++ b/proto/commands/v1/transaction.proto @@ -38,6 +38,9 @@ message InputData { // Oracles OracleDataSubmission oracle_data_submission = 3001; + + // Checkpoints + RestoreSnapshot restore_snapshot_submission = 4001; } } diff --git a/proto/commands/v1/validator_commands.proto b/proto/commands/v1/validator_commands.proto index ee0b76c0..4cab3430 100644 --- a/proto/commands/v1/validator_commands.proto +++ b/proto/commands/v1/validator_commands.proto @@ -9,14 +9,16 @@ import "github.com/mwitkow/go-proto-validators/validator.proto"; // Used to Register a node as a validator during network start-up message NodeRegistration { - // Public key, required field - bytes pub_key = 1 [(validator.field) = {string_not_empty: true}]; + // Vega public key, required field + string vega_pub_key = 1 [(validator.field) = {string_not_empty: true}]; + // Ethereum public key, required field + string ethereum_address = 2 [(validator.field) = {string_not_empty: true}]; // Public key for the blockchain, required field - bytes chain_pub_key = 2 [(validator.field) = {string_not_empty: true}]; + string chain_pub_key = 3 [(validator.field) = {string_not_empty: true}]; // URL with more info on the node - string info_url = 3 [(validator.field) = {string_not_empty: true}]; + string info_url = 4 [(validator.field) = {string_not_empty: true}]; // Country code (ISO 3166-1 alpha-2) for the location of the node - string country = 4 [(validator.field) = {string_not_empty: true}]; + string country = 5 [(validator.field) = {string_not_empty: true}]; } // Used when a node votes for validating a given resource exists or is valid, @@ -64,5 +66,7 @@ message ChainEvent { vega.BTCEvent btc = 1003; // Validator event vega.ValidatorEvent validator = 1004; + // Ethereum Staking event + vega.StakingEvent staking_event = 1005; } } diff --git a/proto/coreapi/v1/coreapi.proto b/proto/coreapi/v1/coreapi.proto new file mode 100644 index 00000000..b049ef3f --- /dev/null +++ b/proto/coreapi/v1/coreapi.proto @@ -0,0 +1,102 @@ +syntax = "proto3"; + +package vega.coreapi.v1; +option java_package = "io.vegaprotocol.vega.coreapi.v1"; +option go_package = "code.vegaprotocol.io/vega/proto/coreapi/v1"; + +import "assets.proto"; +import "governance.proto"; +import "markets.proto"; +import "vega.proto"; +import "events/v1/events.proto"; + +service CoreApiService { + rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse); + rpc ListAssets(ListAssetsRequest) returns (ListAssetsResponse); + rpc ListNetworkParameters(ListNetworkParametersRequest) returns (ListNetworkParametersResponse); + rpc ListParties(ListPartiesRequest) returns (ListPartiesResponse); + rpc ListValidators(ListValidatorsRequest) returns (ListValidatorsResponse); + rpc ListMarkets(ListMarketsRequest) returns (ListMarketsResponse); + rpc ListProposals(ListProposalsRequest) returns (ListProposalsResponse); + rpc ListMarketsData(ListMarketsDataRequest) returns (ListMarketsDataResponse); + rpc ListVotes(ListVotesRequest) returns (ListVotesResponse); +} + +message Account { + string party = 1; + string market = 2; + string balance = 3; + string asset = 5; + string type = 6; +} + +message ListAccountsRequest { + string party = 1; + string market = 2; +} + +message ListAccountsResponse { + repeated Account accounts = 1; +} + +message ListAssetsRequest { + string asset = 1; // optional ID +} + +message ListAssetsResponse { + repeated vega.Asset assets = 1; +} + +message ListNetworkParametersRequest { + string network_parameter_key = 1; // optional parameter key +} + +message ListNetworkParametersResponse { + repeated vega.NetworkParameter network_parameters = 1; +} + +message ListPartiesRequest {} + +message ListPartiesResponse { + repeated vega.Party parties = 1; +} + +message ListValidatorsRequest {} + +message ListValidatorsResponse { + repeated vega.events.v1.ValidatorUpdate validators = 1; +} + +message ListMarketsRequest { + string market = 1; +} + +message ListMarketsResponse { + repeated vega.Market markets = 1; +} + +message ListProposalsRequest { + string proposal = 1; // optional ID + string proposer = 2; // optional party +} + +message ListProposalsResponse { + repeated vega.Proposal proposals = 1; +} + +message ListMarketsDataRequest { + string market = 1; +} + +message ListMarketsDataResponse { + repeated vega.MarketData markets_data = 1; +} + +message ListVotesRequest { + string proposal = 1; + string party = 2; +} + +message ListVotesResponse { + repeated vega.Vote votes = 1; +} \ No newline at end of file diff --git a/proto/events/v1/events.proto b/proto/events/v1/events.proto index 64f016a8..aec5a644 100644 --- a/proto/events/v1/events.proto +++ b/proto/events/v1/events.proto @@ -13,16 +13,27 @@ import "oracles/v1/data.proto"; import "commands/v1/commands.proto"; import "commands/v1/validator_commands.proto"; -// StakingEvent - an event notifying of stake being deposited or removed for a given party +// StakeLinking - an event notifying of stake being deposited or removed for a given party // These events are emitted for every Staking deposit or removed accepted by the network -message StakingEvent { +message StakeLinking { enum Type { // Default value TYPE_UNSPECIFIED = 0; // Indicate of a stake deposit instruction - TYPE_DEPOSIT = 1; + TYPE_LINK = 1; // Indicate of a stake remove instruction - TYPE_REMOVE = 2; + TYPE_UNLINK = 2; + } + + enum Status { + // Default value + STATUS_UNSPECIFIED = 0; + // Indicate an event waiting for confirmation from the vega network + STATUS_PENDING = 1; + // Indicate of an event accepted by the vega network + STATUS_ACCEPTED = 2; + // Indaicate of an event rejected by the vega network + STATUS_REJECTED = 3; } // The internal ID for this staking event @@ -35,6 +46,35 @@ message StakingEvent { string party = 4; // The amount of stake deposited or removed string amount = 5; + // The status of the event + Status status = 6; + // The time at which the vega network finalized the state of the event + int64 finalized_at = 7; + // The hash of the transaction from which the events happen + string tx_hash = 8; +} + +message CheckpointEvent { + string hash = 1; + string block_hash = 2; + uint64 block_height = 3; +} + +message RewardPayoutEvent { + string party = 1; + string epoch_seq = 2; + string asset = 3; + string amount = 4; + string percent_of_total_reward = 5; + int64 timestamp = 6; +} + +//ValidatorScoreEvent is the score a validator gets for a given epoch +message ValidatorScoreEvent { + string node_id = 1; + string epoch_seq = 2; + string validator_score = 3; + string normalised_score = 4; } //DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect @@ -42,6 +82,7 @@ message DelegationBalanceEvent { string party = 1; string node_id = 2; uint64 amount = 3; + string epoch_seq = 4; } //PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch @@ -50,6 +91,7 @@ message PendingDelegationBalanceEvent { string node_id = 2; uint64 delegation_amount = 3; uint64 undelegation_amount = 4; + string epoch_seq = 5; } // MarketEvent - the common denominator for all market events @@ -86,14 +128,14 @@ message TimeUpdate { // Epoch details message EpochEvent { - // Sequence number that increases by one each epoch - uint64 seq = 1; - // What time did this epoch start - int64 start_time = 2; - // What time should this epoch end - int64 expire_time = 3; - // What time did it actually end - int64 end_time = 4; + // Sequence number that increases by one each epoch + uint64 seq = 1; + // What time did this epoch start + int64 start_time = 2; + // What time should this epoch end + int64 expire_time = 3; + // What time did it actually end + int64 end_time = 4; } // A transfer responses event contains a collection of transfer information @@ -192,14 +234,16 @@ message AuctionEvent { // A validator update event contains information about validator node message ValidatorUpdate { - // Public key of validator node - string pub_key = 1; + // Vega public key of validator node + string vega_pub_key = 1; + // Ethereum public key of validator node + string ethereum_address = 2; // Public key of Tendermint - string tm_pub_key = 2; + string tm_pub_key = 3; // URL with more info on the node - string info_url = 3; + string info_url = 4; // Country code (ISO 3166-1 alpha-2) for the location of the node - string country = 4; + string country = 5; } // An (event) bus event type is used to specify a type of event @@ -207,78 +251,83 @@ message ValidatorUpdate { // Single values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item // Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items enum BusEventType { - // Default value, always invalid - BUS_EVENT_TYPE_UNSPECIFIED = 0; - // Events of ALL event types, used when filtering stream from event bus - BUS_EVENT_TYPE_ALL = 1; - // Event for blockchain time updates - BUS_EVENT_TYPE_TIME_UPDATE = 2; - // Event for when a transfer happens internally, contains the transfer information - BUS_EVENT_TYPE_TRANSFER_RESPONSES = 3; - // Event indicating position resolution has occurred - BUS_EVENT_TYPE_POSITION_RESOLUTION = 4; - // Event for order updates, both new and existing orders - BUS_EVENT_TYPE_ORDER = 5; - // Event for account updates - BUS_EVENT_TYPE_ACCOUNT = 6; - // Event for party updates - BUS_EVENT_TYPE_PARTY = 7; - // Event indicating a new trade has occurred - BUS_EVENT_TYPE_TRADE = 8; - // Event indicating margin levels have changed for a party - BUS_EVENT_TYPE_MARGIN_LEVELS = 9; - // Event for proposal updates (for governance) - BUS_EVENT_TYPE_PROPOSAL = 10; - // Event indicating a new vote has occurred (for governance) - BUS_EVENT_TYPE_VOTE = 11; - // Event for market data updates - BUS_EVENT_TYPE_MARKET_DATA = 12; - // Event for a new signature for a Vega node - BUS_EVENT_TYPE_NODE_SIGNATURE = 13; - // Event indicating loss socialisation occurred for a party - BUS_EVENT_TYPE_LOSS_SOCIALIZATION = 14; - // Event for when a position is being settled - BUS_EVENT_TYPE_SETTLE_POSITION = 15; - // Event for when a position is distressed - BUS_EVENT_TYPE_SETTLE_DISTRESSED = 16; - // Event indicating a new market was created - BUS_EVENT_TYPE_MARKET_CREATED = 17; - // Event for when an asset is added to Vega - BUS_EVENT_TYPE_ASSET = 18; - // Event indicating a market tick event - BUS_EVENT_TYPE_MARKET_TICK = 19; - // Event for when a withdrawal occurs - BUS_EVENT_TYPE_WITHDRAWAL = 20; - // Event for when a deposit occurs - BUS_EVENT_TYPE_DEPOSIT = 21; - // Event indicating a change in auction state, for example starting or ending an auction - BUS_EVENT_TYPE_AUCTION = 22; - // Event indicating a risk factor has been updated - BUS_EVENT_TYPE_RISK_FACTOR = 23; - // Event indicating a network parameter has been added or updated - BUS_EVENT_TYPE_NETWORK_PARAMETER = 24; - // Event indicating a liquidity provision has been created or updated - BUS_EVENT_TYPE_LIQUIDITY_PROVISION = 25; - // Event indicating a new market was created - BUS_EVENT_TYPE_MARKET_UPDATED = 26; - // Event indicating an oracle spec has been created or updated - BUS_EVENT_TYPE_ORACLE_SPEC = 27; - // Event indicating that an oracle data has been broadcast - BUS_EVENT_TYPE_ORACLE_DATA = 28; - // Event indicating that an delegation balance of a party to a node for current epoch has changed - BUS_EVENT_TYPE_DELEGATION_BALANCE = 29; - // Event indicating that an delegation balance of a party to a node for next epoch has changed - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE = 30; - // Event indicating the start or end of an epoch - BUS_EVENT_TYPE_EPOCH_UPDATE = 31; - // Event indicating that validator node has been updated - BUS_EVENT_TYPE_VALIDATOR_UPDATE = 32; - // Event indicating a new staking event have been processed by the network - BUS_EVENT_TYPE_STAKING_EVENT = 33; - // Event indicating a market related event, for example when a market opens - BUS_EVENT_TYPE_MARKET = 101; - // Event used to report failed transactions back to a user, this is excluded from the ALL type - BUS_EVENT_TYPE_TX_ERROR = 201; + // Default value, always invalid + BUS_EVENT_TYPE_UNSPECIFIED = 0; + // Events of ALL event types, used when filtering stream from event bus + BUS_EVENT_TYPE_ALL = 1; + // Event for blockchain time updates + BUS_EVENT_TYPE_TIME_UPDATE = 2; + // Event for when a transfer happens internally, contains the transfer information + BUS_EVENT_TYPE_TRANSFER_RESPONSES = 3; + // Event indicating position resolution has occurred + BUS_EVENT_TYPE_POSITION_RESOLUTION = 4; + // Event for order updates, both new and existing orders + BUS_EVENT_TYPE_ORDER = 5; + // Event for account updates + BUS_EVENT_TYPE_ACCOUNT = 6; + // Event for party updates + BUS_EVENT_TYPE_PARTY = 7; + // Event indicating a new trade has occurred + BUS_EVENT_TYPE_TRADE = 8; + // Event indicating margin levels have changed for a party + BUS_EVENT_TYPE_MARGIN_LEVELS = 9; + // Event for proposal updates (for governance) + BUS_EVENT_TYPE_PROPOSAL = 10; + // Event indicating a new vote has occurred (for governance) + BUS_EVENT_TYPE_VOTE = 11; + // Event for market data updates + BUS_EVENT_TYPE_MARKET_DATA = 12; + // Event for a new signature for a Vega node + BUS_EVENT_TYPE_NODE_SIGNATURE = 13; + // Event indicating loss socialisation occurred for a party + BUS_EVENT_TYPE_LOSS_SOCIALIZATION = 14; + // Event for when a position is being settled + BUS_EVENT_TYPE_SETTLE_POSITION = 15; + // Event for when a position is distressed + BUS_EVENT_TYPE_SETTLE_DISTRESSED = 16; + // Event indicating a new market was created + BUS_EVENT_TYPE_MARKET_CREATED = 17; + // Event for when an asset is added to Vega + BUS_EVENT_TYPE_ASSET = 18; + // Event indicating a market tick event + BUS_EVENT_TYPE_MARKET_TICK = 19; + // Event for when a withdrawal occurs + BUS_EVENT_TYPE_WITHDRAWAL = 20; + // Event for when a deposit occurs + BUS_EVENT_TYPE_DEPOSIT = 21; + // Event indicating a change in auction state, for example starting or ending an auction + BUS_EVENT_TYPE_AUCTION = 22; + // Event indicating a risk factor has been updated + BUS_EVENT_TYPE_RISK_FACTOR = 23; + // Event indicating a network parameter has been added or updated + BUS_EVENT_TYPE_NETWORK_PARAMETER = 24; + // Event indicating a liquidity provision has been created or updated + BUS_EVENT_TYPE_LIQUIDITY_PROVISION = 25; + // Event indicating a new market was created + BUS_EVENT_TYPE_MARKET_UPDATED = 26; + // Event indicating an oracle spec has been created or updated + BUS_EVENT_TYPE_ORACLE_SPEC = 27; + // Event indicating that an oracle data has been broadcast + BUS_EVENT_TYPE_ORACLE_DATA = 28; + // Event indicating that an delegation balance of a party to a node for current epoch has changed + BUS_EVENT_TYPE_DELEGATION_BALANCE = 29; + // Event indicating the validator score for the given epoch + BUS_EVENT_TYPE_VALIDATOR_SCORE = 30; + // Event indicating the start or end of an epoch + BUS_EVENT_TYPE_EPOCH_UPDATE = 31; + // Event indicating that validator node has been updated + BUS_EVENT_TYPE_VALIDATOR_UPDATE = 32; + // Event indicating a new staking event have been processed by the network + BUS_EVENT_TYPE_STAKE_LINKING = 33; + // Event indicating the payout of a reward has been initiated + BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT = 34; + // Event indicating a new checkpoint was created + BUS_EVENT_TYPE_CHECKPOINT = 35; + + // Event indicating a market related event, for example when a market opens + BUS_EVENT_TYPE_MARKET = 101; + // Event used to report failed transactions back to a user, this is excluded from the ALL type + BUS_EVENT_TYPE_TX_ERROR = 201; } // A bus event is a container for event bus events emitted by Vega @@ -346,17 +395,21 @@ message BusEvent { oracles.v1.OracleData oracle_data = 127; // Delegation balance events DelegationBalanceEvent delegation_balance = 129; - // Pending delegation balance events - PendingDelegationBalanceEvent pending_delegation_balance = 130; + // Validator score calcualted + ValidatorScoreEvent validator_score = 130; // Epoch update events - See [Epoch](#vega.Epoch) EpochEvent epoch_event = 131; // Validator update events ValidatorUpdate validator_update = 132; // Staking event - StakingEvent staking_event = 133; + StakeLinking stake_linking = 133; + // Reward payout event + RewardPayoutEvent reward_payout = 134; + // Checkpoint was created + CheckpointEvent checkpoint = 135; // Market tick events - See [MarketEvent](#vega.MarketEvent) MarketEvent market = 1001; // Transaction error events, not included in the ALL event type TxErrorEvent tx_err_event = 2001; } -} \ No newline at end of file +} diff --git a/proto/from.txt b/proto/from.txt index 9dedf1e9..1f61beba 100644 --- a/proto/from.txt +++ b/proto/from.txt @@ -1 +1 @@ -v0.41.0 +v0.42.0-pre4 diff --git a/proto/snapshot/v1/snapshot.proto b/proto/snapshot/v1/snapshot.proto new file mode 100644 index 00000000..b061168f --- /dev/null +++ b/proto/snapshot/v1/snapshot.proto @@ -0,0 +1,73 @@ +syntax = "proto3"; + +package vega.snapshot.v1; +option java_package = "io.vegaprotocol.vega.snapshot.v1"; +option go_package = "code.vegaprotocol.io/vega/proto/snapshot/v1"; + +import "vega.proto"; +import "assets.proto"; +import "governance.proto"; + +// Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash) +message Snapshot { + bytes hash = 1; + bytes state = 2; +} + +// Checkpoint aggregates the various engine snapshots +message Checkpoint { + bytes governance = 1; + bytes assets = 2; + bytes collateral = 3; + bytes network_parameters = 4; + bytes delegation = 5; +} + +// AssetEntrty is a single (enabled) asset +message AssetEntry { + string id = 1; + vega.AssetDetails asset_details = 2; +} + +// Assets contains all the enabled assets as AssetEntries +message Assets { + repeated AssetEntry assets = 1; +} + +// AssetBalance represents the total balance of a given asset for a party +message AssetBalance { + string party = 1; + string asset = 2; + string balance = 3; +} + +// Collateral contains the balances per party +message Collateral { + repeated AssetBalance balances = 1; +} + +// NetParams contains all network parameters +message NetParams { + repeated vega.NetworkParameter params = 1; +} + +// Proposals will contain all accepted proposals +message Proposals { + repeated vega.Proposal proposals = 1; +} + +// Delegated amounts for party/node +// undelegate and epoch seq are only relevant for pending entries +message DelegateEntry { + string party = 1; + string node = 2; + string amount = 3; + bool undelegate = 4; + uint64 epoch_seq = 5; +} + +// Delegate contains all entries for a checkpoint +message Delegate { + repeated DelegateEntry active = 1; + repeated DelegateEntry pending = 2; +} diff --git a/proto/vega.proto b/proto/vega.proto index e5e968fb..3076303d 100644 --- a/proto/vega.proto +++ b/proto/vega.proto @@ -6,6 +6,7 @@ option go_package = "code.vegaprotocol.io/vega/proto"; import "github.com/mwitkow/go-proto-validators/validator.proto"; import "markets.proto"; +import "assets.proto"; // A side relates to the direction of an order, to Buy, or Sell @@ -61,6 +62,7 @@ message Timestamp { message Party { // A unique identifier for the party, typically represented by a public key string id = 1 [(validator.field) = {msg_exists : true}]; + repeated Delegation delegations = 2; } // Risk factors are used to calculate the current risk associated with orders trading on a given market @@ -531,75 +533,6 @@ message PositionTrade { uint64 price = 2; } -// Vega domain specific statistics as reported by the node the caller is connected to -message Statistics { - // Current block height as reported by the Vega blockchain - uint64 block_height = 1; - // Current backlog length (number of transactions) that are waiting to be included in a block - uint64 backlog_length = 2; - // Total number of connected peers to this node - uint64 total_peers = 3; - // Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision - string genesis_time = 4; - // Current system date and time formatted in ISO-8601 datetime format with nanosecond precision - string current_time = 5; - // Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision - string vega_time = 6; - // Status of the connection to the Vega blockchain - // - See [`ChainStatus`](#vega.ChainStatus) - ChainStatus status = 7; - // Transactions per block - uint64 tx_per_block = 8; - // Average transaction size in bytes - uint64 average_tx_bytes = 9; - // Average orders per block - uint64 average_orders_per_block = 10; - // Trades emitted per second - uint64 trades_per_second = 11; - // Orders processed per second - uint64 orders_per_second = 12; - // Total markets on this Vega network - uint64 total_markets = 13; - // Total number of order amendments since genesis (on all markets) - uint64 total_amend_order = 16; - // Total number of order cancellations since genesis (on all markets) - uint64 total_cancel_order = 17; - // Total number of order submissions since genesis (on all markets) - uint64 total_create_order = 18; - // Total number of orders processed since genesis (on all markets) - uint64 total_orders = 19; - // Total number of trades emitted since genesis (on all markets) - uint64 total_trades = 20; - // Current number of stream subscribers to order data - uint32 order_subscriptions = 21; - // Current number of stream subscribers to trade data - uint32 trade_subscriptions = 22; - // Current number of stream subscribers to candle-stick data - uint32 candle_subscriptions = 23; - // Current number of stream subscribers to market depth data - uint32 market_depth_subscriptions = 24; - // Current number of stream subscribers to positions data - uint32 positions_subscriptions = 25; - // Current number of stream subscribers to account data - uint32 account_subscriptions = 26; - // Current number of stream subscribers to market data - uint32 market_data_subscriptions = 27; - // The version hash of the Vega node software - string app_version_hash = 28; - // The version of the Vega node software - string app_version = 29; - // The version of the underlying Vega blockchain - string chain_version = 30; - // Current block duration, in nanoseconds - uint64 block_duration = 31; - // Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision - string uptime = 32; - // Unique identifier for the underlying Vega blockchain - string chain_id = 33; - // Current number of stream subscribers to market depth update data - uint32 market_depth_updates_subscriptions = 34; -} - // The Vega blockchain status as reported by the node the caller is connected to enum ChainStatus { // Default value, always invalid @@ -999,45 +932,6 @@ message ErrorDetail { string inner = 3; } -// Represents a transaction to be sent to Vega -message Transaction { - // One of the set of Vega commands (proto marshalled) - bytes input_data = 1; - // A random number used to provide uniqueness and prevent against replay attack - uint64 nonce = 2; - // The block height associated to the transaction, this should always be current block height - // of the node at the time of sending the Tx and block height is used as a mechanism - // for replay protection - uint64 block_height = 3; - // The sender of the transaction, - // any of the following would be valid: - oneof from { - // The address of the sender - bytes address = 1001; - // The public key of the sender - bytes pub_key = 1002; - } -} - -// A signature to be authenticate a transaction -// and to be verified by the vega network -message Signature { - // The bytes of the signature - bytes sig = 1; - // The algorithm used to create the signature - string algo = 2; - // The version of the signature used to create the signature - uint32 version = 3; -} - -// A bundle of a transaction and it's signature -message SignedBundle { - // Transaction payload (proto marshalled) - bytes tx = 1; - // The signature authenticating the transaction - Signature sig = 2; -} - // Represents a network parameter on Vega message NetworkParameter { // The unique key @@ -1124,4 +1018,127 @@ message EthereumConfig { string bridge_address = 3; // Number of confirmations uint32 confirmations = 4; + // Staking Bridge addresses for the ethereum network + repeated string staking_bridge_addresses = 5; +} + +// Node status type +enum NodeStatus { + NODE_STATUS_UNSPECIFIED = 0; + // The node is validating + NODE_STATUS_VALIDATOR = 1; + // The node is non-validating + NODE_STATUS_NON_VALIDATOR = 2; +} + +// Describes in both human readable and block time when an epoch spans +message EpochTimestamps { + // Timestamp of epoch start in nanoseconds, empty if not started + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + int64 start_time = 1; + // Timestamp of epoch end in nanoseconds, empty if not started + // - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` + int64 end_time = 2; + // Height of first block in the epoch + uint64 first_block = 3; + // Height of last block in the epoch, empty if not ended + uint64 last_block = 4; +} + +message Epoch { + // Sequence is used as epoch indentifier + uint64 seq = 1; + // Timestamps for start/end etc + EpochTimestamps timestamps = 2 [(validator.field) = {msg_exists : true}]; + // Validators that participated in this epoch + repeated Node validators = 3; + // List of all delegations in epoch + repeated Delegation delegations = 4; +} + +message EpochParticipation { + Epoch epoch = 1 [(validator.field) = {string_not_empty : true}]; + uint64 offline = 2; + uint64 online = 3; + double total_rewards = 4; +} + +message EpochData { + // Total number of epochs since node was created + int32 total = 1; + // Total number of offline epochs since node was created + int32 offline = 2; + // Total number of online epochs since node was created + int32 online = 3; +} + +message Node { + // The node url eg n01.vega.xyz + string id = 1; + // Pub key of the node operator + string pub_key = 2 [(validator.field) = {string_not_empty : true}]; + // URL where I can find out more info on the node + string info_url = 3; + // Country code for the location of the node + string location = 4; + // The amount the node has put up themselves + string staked_by_operator = 5; + // The amount of stake that has been delegated by token holders + string staked_by_delegates = 6;; + // Total amount staked on node + string staked_total = 7; + // Max amount of (wanted) stake, is this a network param or a node param + string max_intended_stake = 8; + // Amount of stake on the next epoch + string pending_stake = 9; + // Informantion about epoch + EpochData epoch_data = 10 [(validator.field) = {msg_exists : true}]; + // Node status + NodeStatus status = 11 [(validator.field) = {msg_exists : true}]; + // Node's delegations + repeated Delegation delagations = 12; +} + +message NodeData { + // Total staked amount across all nodes + string staked_total = 1; + // Total number of nodes + uint32 total_nodes = 2; + // Number of inactive nodes + uint32 inactive_nodes = 3; + // Number of nodes validating + uint32 validating_nodes = 4; + // Total uptime for all epochs across all nodes + float uptime = 5; +} + +message Delegation { + // Party which is delegating + string party = 1; + // Node ID + string node_id = 2; + // Amount delegated + string amount = 3; + // Epoch of delegation + string epoch_seq = 4; +} + +// Details for a single reward payment +message RewardDetails { + string asset_id = 1; + string party_id = 2; + uint64 epoch = 3; + string amount = 4; + string percentage_of_total = 5; + int64 received_at = 6; +} + +// Details for rewards for a single asset +message RewardPerAssetDetail { + // asset details + string asset = 1; + // rewards ordered by received_at + repeated RewardDetails details = 2; + // Total amount of rewards for the asset + string total_for_asset = 3; } diff --git a/rest/api/trading.swagger.json b/rest/api/trading.swagger.json index 755b5fc4..98b85ca0 100644 --- a/rest/api/trading.swagger.json +++ b/rest/api/trading.swagger.json @@ -55,53 +55,6 @@ "title": "Vote value", "type": "string" }, - "commandsv1Signature": { - "description": "A signature to be authenticate a transaction and to be verified by the vega\nnetwork.", - "properties": { - "algo": { - "description": "The algorithm used to create the signature.", - "type": "string" - }, - "value": { - "description": "The bytes of the signature (hex-encoded).", - "type": "string" - }, - "version": { - "description": "The version of the signature used to create the signature.", - "format": "int64", - "type": "integer" - } - }, - "type": "object" - }, - "commandsv1Transaction": { - "description": "Represents a transaction to be sent to Vega.", - "properties": { - "address": { - "description": "The address of the sender (hex-encoded). Not supported yet.", - "type": "string" - }, - "input_data": { - "description": "One of the set of Vega commands (proto marshalled).", - "format": "byte", - "type": "string" - }, - "pub_key": { - "description": "The public key of the sender (hex-encoded).", - "type": "string" - }, - "signature": { - "$ref": "#/definitions/commandsv1Signature", - "description": "The signature of the inputData." - }, - "version": { - "description": "A version of the transaction, to be used in the future in case we want to\nimplement changes to the Transaction format.", - "format": "int64", - "type": "integer" - } - }, - "type": "object" - }, "protobufAny": { "properties": { "type_url": { @@ -139,37 +92,6 @@ }, "type": "object" }, - "v1AccountsSubscribeResponse": { - "properties": { - "account": { - "$ref": "#/definitions/vegaAccount" - } - }, - "type": "object" - }, - "v1AssetByIDResponse": { - "properties": { - "asset": { - "$ref": "#/definitions/vegaAsset", - "title": "An asset record, if found" - } - }, - "title": "Response for an asset given an asset identifier", - "type": "object" - }, - "v1AssetsResponse": { - "properties": { - "assets": { - "items": { - "$ref": "#/definitions/vegaAsset" - }, - "title": "A list of 0 or more assets", - "type": "array" - } - }, - "title": "Response for a list of all assets enabled on Vega", - "type": "object" - }, "v1AuctionEvent": { "properties": { "end": { @@ -226,6 +148,10 @@ "title": "The batch (or block) of transactions that the events relate to", "type": "string" }, + "checkpoint": { + "$ref": "#/definitions/v1CheckpointEvent", + "title": "Checkpoint was created" + }, "delegation_balance": { "$ref": "#/definitions/v1DelegationBalanceEvent", "title": "Delegation balance events" @@ -298,10 +224,6 @@ "$ref": "#/definitions/vegaParty", "title": "Party events" }, - "pending_delegation_balance": { - "$ref": "#/definitions/v1PendingDelegationBalanceEvent", - "title": "Pending delegation balance events" - }, "position_resolution": { "$ref": "#/definitions/v1PositionResolution", "title": "Position resolution events - See [PositionResolution](#vega.PositionResolution)" @@ -310,6 +232,10 @@ "$ref": "#/definitions/vegaProposal", "title": "Proposal events (for governance)" }, + "reward_payout": { + "$ref": "#/definitions/v1RewardPayoutEvent", + "title": "Reward payout event" + }, "risk_factor": { "$ref": "#/definitions/vegaRiskFactor", "title": "Risk factor events" @@ -322,8 +248,8 @@ "$ref": "#/definitions/v1SettlePosition", "title": "Position settlement events - See [SettlePosition](#vega.SettlePosition)" }, - "staking_event": { - "$ref": "#/definitions/v1StakingEvent", + "stake_linking": { + "$ref": "#/definitions/v1StakeLinking", "title": "Staking event" }, "time_update": { @@ -346,6 +272,10 @@ "$ref": "#/definitions/v1BusEventType", "title": "The type of bus event (one of the list below)" }, + "validator_score": { + "$ref": "#/definitions/v1ValidatorScoreEvent", + "title": "Validator score calcualted" + }, "validator_update": { "$ref": "#/definitions/v1ValidatorUpdate", "title": "Validator update events" @@ -364,7 +294,7 @@ }, "v1BusEventType": { "default": "BUS_EVENT_TYPE_UNSPECIFIED", - "description": "- BUS_EVENT_TYPE_UNSPECIFIED: Default value, always invalid\n - BUS_EVENT_TYPE_ALL: Events of ALL event types, used when filtering stream from event bus\n - BUS_EVENT_TYPE_TIME_UPDATE: Event for blockchain time updates\n - BUS_EVENT_TYPE_TRANSFER_RESPONSES: Event for when a transfer happens internally, contains the transfer information\n - BUS_EVENT_TYPE_POSITION_RESOLUTION: Event indicating position resolution has occurred\n - BUS_EVENT_TYPE_ORDER: Event for order updates, both new and existing orders\n - BUS_EVENT_TYPE_ACCOUNT: Event for account updates\n - BUS_EVENT_TYPE_PARTY: Event for party updates\n - BUS_EVENT_TYPE_TRADE: Event indicating a new trade has occurred\n - BUS_EVENT_TYPE_MARGIN_LEVELS: Event indicating margin levels have changed for a party\n - BUS_EVENT_TYPE_PROPOSAL: Event for proposal updates (for governance)\n - BUS_EVENT_TYPE_VOTE: Event indicating a new vote has occurred (for governance)\n - BUS_EVENT_TYPE_MARKET_DATA: Event for market data updates\n - BUS_EVENT_TYPE_NODE_SIGNATURE: Event for a new signature for a Vega node\n - BUS_EVENT_TYPE_LOSS_SOCIALIZATION: Event indicating loss socialisation occurred for a party\n - BUS_EVENT_TYPE_SETTLE_POSITION: Event for when a position is being settled\n - BUS_EVENT_TYPE_SETTLE_DISTRESSED: Event for when a position is distressed\n - BUS_EVENT_TYPE_MARKET_CREATED: Event indicating a new market was created\n - BUS_EVENT_TYPE_ASSET: Event for when an asset is added to Vega\n - BUS_EVENT_TYPE_MARKET_TICK: Event indicating a market tick event\n - BUS_EVENT_TYPE_WITHDRAWAL: Event for when a withdrawal occurs\n - BUS_EVENT_TYPE_DEPOSIT: Event for when a deposit occurs\n - BUS_EVENT_TYPE_AUCTION: Event indicating a change in auction state, for example starting or ending an auction\n - BUS_EVENT_TYPE_RISK_FACTOR: Event indicating a risk factor has been updated\n - BUS_EVENT_TYPE_NETWORK_PARAMETER: Event indicating a network parameter has been added or updated\n - BUS_EVENT_TYPE_LIQUIDITY_PROVISION: Event indicating a liquidity provision has been created or updated\n - BUS_EVENT_TYPE_MARKET_UPDATED: Event indicating a new market was created\n - BUS_EVENT_TYPE_ORACLE_SPEC: Event indicating an oracle spec has been created or updated\n - BUS_EVENT_TYPE_ORACLE_DATA: Event indicating that an oracle data has been broadcast\n - BUS_EVENT_TYPE_DELEGATION_BALANCE: Event indicating that an delegation balance of a party to a node for current epoch has changed\n - BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE: Event indicating that an delegation balance of a party to a node for next epoch has changed\n - BUS_EVENT_TYPE_EPOCH_UPDATE: Event indicating the start or end of an epoch\n - BUS_EVENT_TYPE_VALIDATOR_UPDATE: Event indicating that validator node has been updated\n - BUS_EVENT_TYPE_STAKING_EVENT: Event indicating a new staking event have been processed by the network\n - BUS_EVENT_TYPE_MARKET: Event indicating a market related event, for example when a market opens\n - BUS_EVENT_TYPE_TX_ERROR: Event used to report failed transactions back to a user, this is excluded from the ALL type", + "description": "- BUS_EVENT_TYPE_UNSPECIFIED: Default value, always invalid\n - BUS_EVENT_TYPE_ALL: Events of ALL event types, used when filtering stream from event bus\n - BUS_EVENT_TYPE_TIME_UPDATE: Event for blockchain time updates\n - BUS_EVENT_TYPE_TRANSFER_RESPONSES: Event for when a transfer happens internally, contains the transfer information\n - BUS_EVENT_TYPE_POSITION_RESOLUTION: Event indicating position resolution has occurred\n - BUS_EVENT_TYPE_ORDER: Event for order updates, both new and existing orders\n - BUS_EVENT_TYPE_ACCOUNT: Event for account updates\n - BUS_EVENT_TYPE_PARTY: Event for party updates\n - BUS_EVENT_TYPE_TRADE: Event indicating a new trade has occurred\n - BUS_EVENT_TYPE_MARGIN_LEVELS: Event indicating margin levels have changed for a party\n - BUS_EVENT_TYPE_PROPOSAL: Event for proposal updates (for governance)\n - BUS_EVENT_TYPE_VOTE: Event indicating a new vote has occurred (for governance)\n - BUS_EVENT_TYPE_MARKET_DATA: Event for market data updates\n - BUS_EVENT_TYPE_NODE_SIGNATURE: Event for a new signature for a Vega node\n - BUS_EVENT_TYPE_LOSS_SOCIALIZATION: Event indicating loss socialisation occurred for a party\n - BUS_EVENT_TYPE_SETTLE_POSITION: Event for when a position is being settled\n - BUS_EVENT_TYPE_SETTLE_DISTRESSED: Event for when a position is distressed\n - BUS_EVENT_TYPE_MARKET_CREATED: Event indicating a new market was created\n - BUS_EVENT_TYPE_ASSET: Event for when an asset is added to Vega\n - BUS_EVENT_TYPE_MARKET_TICK: Event indicating a market tick event\n - BUS_EVENT_TYPE_WITHDRAWAL: Event for when a withdrawal occurs\n - BUS_EVENT_TYPE_DEPOSIT: Event for when a deposit occurs\n - BUS_EVENT_TYPE_AUCTION: Event indicating a change in auction state, for example starting or ending an auction\n - BUS_EVENT_TYPE_RISK_FACTOR: Event indicating a risk factor has been updated\n - BUS_EVENT_TYPE_NETWORK_PARAMETER: Event indicating a network parameter has been added or updated\n - BUS_EVENT_TYPE_LIQUIDITY_PROVISION: Event indicating a liquidity provision has been created or updated\n - BUS_EVENT_TYPE_MARKET_UPDATED: Event indicating a new market was created\n - BUS_EVENT_TYPE_ORACLE_SPEC: Event indicating an oracle spec has been created or updated\n - BUS_EVENT_TYPE_ORACLE_DATA: Event indicating that an oracle data has been broadcast\n - BUS_EVENT_TYPE_DELEGATION_BALANCE: Event indicating that an delegation balance of a party to a node for current epoch has changed\n - BUS_EVENT_TYPE_VALIDATOR_SCORE: Event indicating the validator score for the given epoch\n - BUS_EVENT_TYPE_EPOCH_UPDATE: Event indicating the start or end of an epoch\n - BUS_EVENT_TYPE_VALIDATOR_UPDATE: Event indicating that validator node has been updated\n - BUS_EVENT_TYPE_STAKE_LINKING: Event indicating a new staking event have been processed by the network\n - BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT: Event indicating the payout of a reward has been initiated\n - BUS_EVENT_TYPE_CHECKPOINT: Event indicating a new checkpoint was created\n - BUS_EVENT_TYPE_MARKET: Event indicating a market related event, for example when a market opens\n - BUS_EVENT_TYPE_TX_ERROR: Event used to report failed transactions back to a user, this is excluded from the ALL type", "enum": [ "BUS_EVENT_TYPE_UNSPECIFIED", "BUS_EVENT_TYPE_ALL", @@ -396,66 +326,31 @@ "BUS_EVENT_TYPE_ORACLE_SPEC", "BUS_EVENT_TYPE_ORACLE_DATA", "BUS_EVENT_TYPE_DELEGATION_BALANCE", - "BUS_EVENT_TYPE_PENDING_DELEGATION_BALANCE", + "BUS_EVENT_TYPE_VALIDATOR_SCORE", "BUS_EVENT_TYPE_EPOCH_UPDATE", "BUS_EVENT_TYPE_VALIDATOR_UPDATE", - "BUS_EVENT_TYPE_STAKING_EVENT", + "BUS_EVENT_TYPE_STAKE_LINKING", + "BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT", + "BUS_EVENT_TYPE_CHECKPOINT", "BUS_EVENT_TYPE_MARKET", "BUS_EVENT_TYPE_TX_ERROR" ], "title": "An (event) bus event type is used to specify a type of event\nIt has 2 styles of event:\nSingle values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item\nGroup values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items", "type": "string" }, - "v1CandlesResponse": { - "properties": { - "candles": { - "items": { - "$ref": "#/definitions/vegaCandle" - }, - "title": "A list of 0 or more candles", - "type": "array" - } - }, - "title": "Response for a list of candles for a market at an interval", - "type": "object" - }, - "v1CandlesSubscribeResponse": { - "properties": { - "candle": { - "$ref": "#/definitions/vegaCandle" - } - }, - "type": "object" - }, - "v1ChainEvent": { + "v1CheckpointEvent": { "properties": { - "btc": { - "$ref": "#/definitions/vegaBTCEvent", - "title": "Bitcoin BTC event" - }, - "builtin": { - "$ref": "#/definitions/vegaBuiltinAssetEvent", - "title": "Built-in asset event" - }, - "erc20": { - "$ref": "#/definitions/vegaERC20Event", - "title": "Ethereum ERC20 event" + "block_hash": { + "type": "string" }, - "nonce": { + "block_height": { "format": "uint64", - "title": "Arbitrary one-time integer used to prevent replay attacks", "type": "string" }, - "tx_id": { - "title": "The identifier of the transaction in which the events happened, usually a hash", + "hash": { "type": "string" - }, - "validator": { - "$ref": "#/definitions/vegaValidatorEvent", - "title": "Validator event" } }, - "title": "An event forwarded to the Vega network to provide information on events happening on other networks", "type": "object" }, "v1Condition": { @@ -478,6 +373,9 @@ "format": "uint64", "type": "string" }, + "epoch_seq": { + "type": "string" + }, "node_id": { "type": "string" }, @@ -488,56 +386,6 @@ "title": "DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect", "type": "object" }, - "v1DepositResponse": { - "properties": { - "deposit": { - "$ref": "#/definitions/vegaDeposit", - "title": "The deposit matching the identifier from the request" - } - }, - "title": "A response for a deposit", - "type": "object" - }, - "v1DepositsResponse": { - "properties": { - "deposits": { - "items": { - "$ref": "#/definitions/vegaDeposit" - }, - "title": "The list of deposits for the specified party", - "type": "array" - } - }, - "title": "The response for a list of deposits", - "type": "object" - }, - "v1ERC20WithdrawalApprovalResponse": { - "properties": { - "amount": { - "title": "The amount to be withdrawn", - "type": "string" - }, - "asset_source": { - "title": "The address of asset on ethereum", - "type": "string" - }, - "expiry": { - "format": "int64", - "title": "The expiry / until what time the request is valid", - "type": "string" - }, - "nonce": { - "title": "The nonce, which is actually the internal reference for the withdrawal", - "type": "string" - }, - "signatures": { - "title": "The signatures bundle as hex encoded data, forward by 0x\ne.g: 0x + sig1 + sig2 + ... + sixN", - "type": "string" - } - }, - "title": "The response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge\nfunction withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)", - "type": "object" - }, "v1EpochEvent": { "properties": { "end_time": { @@ -564,59 +412,6 @@ "title": "Epoch details", "type": "object" }, - "v1EstimateFeeRequest": { - "properties": { - "order": { - "$ref": "#/definitions/vegaOrder", - "title": "Order to estimate fees for\nthe following fields in the order are required:\nMarketID (used to specify the fee factors)\nPrice (the price at which the order could trade)\nSize (the size at which the order could eventually trade)" - } - }, - "title": "Request to fetch the estimated fee if an order were to trade immediately", - "type": "object" - }, - "v1EstimateFeeResponse": { - "properties": { - "fee": { - "$ref": "#/definitions/vegaFee", - "title": "Summary of the estimated fees for this order if it were to trade now" - } - }, - "title": "Response to a EstimateFeeRequest, containing the estimated fees for a given order", - "type": "object" - }, - "v1EstimateMarginRequest": { - "properties": { - "order": { - "$ref": "#/definitions/vegaOrder", - "title": "Order to estimate fees for" - } - }, - "title": "Request to fetch the estimated MarginLevels if an order were to trade immediately", - "type": "object" - }, - "v1EstimateMarginResponse": { - "properties": { - "margin_levels": { - "$ref": "#/definitions/vegaMarginLevels", - "title": "Summary of the estimated margins for this order if it were to trade now" - } - }, - "title": "Response to a EstimateMarginRequest, containing the estimated marginLevels for a given order", - "type": "object" - }, - "v1FeeInfrastructureAccountsResponse": { - "properties": { - "accounts": { - "items": { - "$ref": "#/definitions/vegaAccount" - }, - "title": "A list of 0 or more infrastructure fee accounts", - "type": "array" - } - }, - "title": "Response for a list of infrastructure fee accounts", - "type": "object" - }, "v1Filter": { "description": "Filter describes the conditions under which an oracle data is considered of\ninterest or not.", "properties": { @@ -634,117 +429,6 @@ }, "type": "object" }, - "v1GetNetworkParametersProposalsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of network parameter proposals", - "type": "object" - }, - "v1GetNewAssetProposalsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of new asset proposals", - "type": "object" - }, - "v1GetNewMarketProposalsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of new market proposals", - "type": "object" - }, - "v1GetNodeSignaturesAggregateResponse": { - "properties": { - "signatures": { - "items": { - "$ref": "#/definitions/v1NodeSignature" - }, - "title": "A list of 0 or more signatures", - "type": "array" - } - }, - "title": "Response to specify the identifier of the resource we want to retrieve aggregated signatures for", - "type": "object" - }, - "v1GetProposalByIDResponse": { - "properties": { - "data": { - "$ref": "#/definitions/vegaGovernanceData", - "title": "Governance data, if found" - } - }, - "title": "Response for a governance proposal given a proposal identifier", - "type": "object" - }, - "v1GetProposalByReferenceResponse": { - "properties": { - "data": { - "$ref": "#/definitions/vegaGovernanceData", - "title": "Governance data, if found" - } - }, - "title": "Response for a governance proposal given a proposal reference", - "type": "object" - }, - "v1GetProposalsByPartyResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of proposals for a party", - "type": "object" - }, - "v1GetProposalsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of proposals", - "type": "object" - }, - "v1GetUpdateMarketProposalsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/definitions/vegaGovernanceData" - }, - "title": "A list of 0 or more governance data", - "type": "array" - } - }, - "title": "Response for a list of update market proposals", - "type": "object" - }, "v1GetVegaTimeResponse": { "properties": { "timestamp": { @@ -756,19 +440,6 @@ "title": "Response for the current consensus coordinated time on the Vega network, referred to as \"VegaTime\"", "type": "object" }, - "v1GetVotesByPartyResponse": { - "properties": { - "votes": { - "items": { - "$ref": "#/definitions/vegaVote" - }, - "title": "A list of 0 or more votes", - "type": "array" - } - }, - "title": "Response for a list of votes for a party", - "type": "object" - }, "v1LastBlockHeightResponse": { "properties": { "height": { @@ -779,16 +450,6 @@ "title": "A response with the height of the last block processed by\ntendermint", "type": "object" }, - "v1LastTradeResponse": { - "properties": { - "trade": { - "$ref": "#/definitions/vegaTrade", - "title": "A trade, if found" - } - }, - "title": "Response for the latest trade that occurred on Vega for a given market", - "type": "object" - }, "v1LiquidityProvisionSubmission": { "properties": { "buys": { @@ -826,18 +487,6 @@ "title": "A liquidity provision submitted for a given market", "type": "object" }, - "v1LiquidityProvisionsResponse": { - "properties": { - "liquidity_provisions": { - "items": { - "$ref": "#/definitions/vegaLiquidityProvision" - }, - "type": "array" - } - }, - "title": "A response containing all of the Vega liquidity provision orders", - "type": "object" - }, "v1LossSocialization": { "properties": { "amount": { @@ -857,109 +506,6 @@ "title": "A loss socialization event contains details on the amount of wins unable to be distributed", "type": "object" }, - "v1MarginLevelsResponse": { - "properties": { - "margin_levels": { - "items": { - "$ref": "#/definitions/vegaMarginLevels" - }, - "title": "A list of 0 or more margin levels", - "type": "array" - } - }, - "title": "Response for margin levels for a party", - "type": "object" - }, - "v1MarginLevelsSubscribeResponse": { - "properties": { - "margin_levels": { - "$ref": "#/definitions/vegaMarginLevels" - } - }, - "type": "object" - }, - "v1MarketAccountsResponse": { - "properties": { - "accounts": { - "items": { - "$ref": "#/definitions/vegaAccount" - }, - "title": "A list of 0 or more accounts", - "type": "array" - } - }, - "title": "Response for a list of accounts for a market", - "type": "object" - }, - "v1MarketByIDResponse": { - "properties": { - "market": { - "$ref": "#/definitions/vegaMarket", - "title": "A market, if found" - } - }, - "title": "Response for a market given a market identifier", - "type": "object" - }, - "v1MarketDataByIDResponse": { - "properties": { - "market_data": { - "$ref": "#/definitions/vegaMarketData", - "title": "Market data, if found" - } - }, - "title": "Response for market data for a market", - "type": "object" - }, - "v1MarketDepthResponse": { - "properties": { - "buy": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Zero or more price levels for the buy side of the market depth data", - "type": "array" - }, - "last_trade": { - "$ref": "#/definitions/vegaTrade", - "title": "Last trade recorded on Vega at the time of retrieving the `MarketDepthResponse`" - }, - "market_id": { - "title": "Market identifier", - "type": "string" - }, - "sell": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Zero or more price levels for the sell side of the market depth data", - "type": "array" - }, - "sequence_number": { - "format": "uint64", - "title": "Sequence number incremented after each update", - "type": "string" - } - }, - "title": "Response for the market depth/order book price levels on a market", - "type": "object" - }, - "v1MarketDepthSubscribeResponse": { - "properties": { - "market_depth": { - "$ref": "#/definitions/vegaMarketDepth" - } - }, - "type": "object" - }, - "v1MarketDepthUpdatesSubscribeResponse": { - "properties": { - "update": { - "$ref": "#/definitions/vegaMarketDepthUpdate" - } - }, - "type": "object" - }, "v1MarketEvent": { "properties": { "market_id": { @@ -989,52 +535,6 @@ "title": "A market ticket event contains the time value for when a particular market was last processed on Vega", "type": "object" }, - "v1MarketsDataResponse": { - "properties": { - "markets_data": { - "items": { - "$ref": "#/definitions/vegaMarketData" - }, - "title": "A list of 0 or more market data", - "type": "array" - } - }, - "title": "Response for market data", - "type": "object" - }, - "v1MarketsDataSubscribeResponse": { - "properties": { - "market_data": { - "$ref": "#/definitions/vegaMarketData" - } - }, - "type": "object" - }, - "v1MarketsResponse": { - "properties": { - "markets": { - "items": { - "$ref": "#/definitions/vegaMarket" - }, - "title": "A list of 0 or more markets", - "type": "array" - } - }, - "title": "Response for a list of markets on Vega", - "type": "object" - }, - "v1NetworkParametersResponse": { - "properties": { - "network_parameters": { - "items": { - "$ref": "#/definitions/vegaNetworkParameter" - }, - "type": "array" - } - }, - "title": "A response containing all of the vega network parameters", - "type": "object" - }, "v1NodeSignature": { "properties": { "id": { @@ -1078,49 +578,6 @@ "title": "Response to a subscribed stream of events from the Vega event bus", "type": "object" }, - "v1ObserveGovernanceResponse": { - "properties": { - "data": { - "$ref": "#/definitions/vegaGovernanceData" - } - }, - "title": "All events related to governance", - "type": "object" - }, - "v1ObservePartyProposalsResponse": { - "properties": { - "data": { - "$ref": "#/definitions/vegaGovernanceData" - } - }, - "type": "object" - }, - "v1ObservePartyVotesResponse": { - "properties": { - "vote": { - "$ref": "#/definitions/vegaVote" - } - }, - "type": "object" - }, - "v1ObserveProposalVotesResponse": { - "properties": { - "vote": { - "$ref": "#/definitions/vegaVote" - } - }, - "type": "object" - }, - "v1OptionalProposalState": { - "properties": { - "value": { - "$ref": "#/definitions/vegaProposalState", - "title": "Proposal state value" - } - }, - "title": "Optional proposal state", - "type": "object" - }, "v1OracleData": { "description": "OracleData describes an oracle data that has been broadcast.", "properties": { @@ -1153,19 +610,6 @@ }, "type": "object" }, - "v1OracleDataBySpecResponse": { - "properties": { - "oracle_data": { - "items": { - "$ref": "#/definitions/v1OracleData" - }, - "title": "The list of oracle data broadcast to a given spec", - "type": "array" - } - }, - "title": "The response for a list of all oracle data broadcast to a given spec", - "type": "object" - }, "v1OracleSpec": { "description": "An oracle spec describe the oracle data that a product (or a risk model)\nwants to get from the oracle engine.\nThis message contains additional information used by the API.", "properties": { @@ -1224,16 +668,6 @@ }, "type": "object" }, - "v1OracleSpecResponse": { - "properties": { - "oracle_spec": { - "$ref": "#/definitions/v1OracleSpec", - "title": "The withdrawal matching the identifier from the request" - } - }, - "title": "A response for a oracle spec", - "type": "object" - }, "v1OracleSpecStatus": { "default": "STATUS_UNSPECIFIED", "description": "- STATUS_UNSPECIFIED: The default value.\n - STATUS_ACTIVE: STATUS_ACTIVE describes an active oracle spec.\n - STATUS_DEACTIVATED: STATUS_DEACTIVATED describes an oracle spec that is not listening to data\nanymore.", @@ -1245,19 +679,6 @@ "title": "Status describe the status of the oracle spec", "type": "string" }, - "v1OracleSpecsResponse": { - "properties": { - "oracle_specs": { - "items": { - "$ref": "#/definitions/v1OracleSpec" - }, - "title": "The list of oracle specs", - "type": "array" - } - }, - "title": "The response for a list of withdrawals", - "type": "object" - }, "v1OrderAmendment": { "properties": { "expires_at": { @@ -1298,34 +719,6 @@ "title": "An order amendment is a request to amend or update an existing order on Vega", "type": "object" }, - "v1OrderByIDResponse": { - "properties": { - "order": { - "$ref": "#/definitions/vegaOrder" - } - }, - "type": "object" - }, - "v1OrderByMarketAndIDResponse": { - "properties": { - "order": { - "$ref": "#/definitions/vegaOrder", - "title": "An order, if found" - } - }, - "title": "Response for an order on a market given an order identifier", - "type": "object" - }, - "v1OrderByReferenceResponse": { - "properties": { - "order": { - "$ref": "#/definitions/vegaOrder", - "title": "An order, if found" - } - }, - "title": "Response for an order given an order reference", - "type": "object" - }, "v1OrderCancellation": { "properties": { "market_id": { @@ -1385,404 +778,120 @@ "title": "An order submission is a request to submit or create a new order on Vega", "type": "object" }, - "v1OrderVersionsByIDResponse": { + "v1PositionResolution": { "properties": { - "orders": { - "items": { - "$ref": "#/definitions/vegaOrder" - }, - "title": "A list of 0 or more orders (list will contain the same order but with different versions, if it has been amended)", - "type": "array" + "closed": { + "format": "int64", + "title": "Number of close outs", + "type": "string" + }, + "distressed": { + "format": "int64", + "title": "Number of distressed traders", + "type": "string" + }, + "mark_price": { + "format": "uint64", + "title": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", + "type": "string" + }, + "market_id": { + "title": "Market identifier for the event", + "type": "string" } }, - "title": "Response to a request for a list of all versions of an order", + "title": "A position resolution event contains information on distressed trades", "type": "object" }, - "v1OrdersByMarketResponse": { + "v1PropagateChainEventResponse": { "properties": { - "orders": { - "items": { - "$ref": "#/definitions/vegaOrder" - }, - "title": "A list of 0 or more orders", - "type": "array" + "success": { + "format": "boolean", + "title": "Success will be true if the event was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", + "type": "boolean" } }, - "title": "Response for a list of orders for a market", + "title": "Response for a new event sent by the blockchain queue to be propagated on Vega", "type": "object" }, - "v1OrdersByPartyResponse": { + "v1Property": { + "description": "Property describes one property of an oracle spec with a key with its value.", "properties": { - "orders": { - "items": { - "$ref": "#/definitions/vegaOrder" - }, - "title": "A list of 0 or more orders", - "type": "array" + "name": { + "description": "name is the name of the property.", + "type": "string" + }, + "value": { + "description": "value is the value of the property.", + "type": "string" } }, - "title": "Response for a list of orders for a party", "type": "object" }, - "v1OrdersSubscribeResponse": { + "v1PropertyKey": { + "description": "PropertyKey describes the property key contained in an oracle data.", "properties": { - "orders": { - "items": { - "$ref": "#/definitions/vegaOrder" - }, - "title": "A list of 0 or more orders", - "type": "array" + "name": { + "description": "name is the name of the property.", + "type": "string" + }, + "type": { + "$ref": "#/definitions/v1PropertyKeyType", + "description": "type is the type of the property." } }, - "title": "A stream of orders", "type": "object" }, - "v1Pagination": { + "v1PropertyKeyType": { + "default": "TYPE_UNSPECIFIED", + "description": "Type describes the type of properties that are supported by the oracle\nengine.\n\n - TYPE_UNSPECIFIED: The default value.\n - TYPE_EMPTY: Any type.\n - TYPE_INTEGER: Integer type.\n - TYPE_STRING: String type.\n - TYPE_BOOLEAN: Boolean type.\n - TYPE_DECIMAL: Any floating point decimal type.\n - TYPE_TIMESTAMP: Timestamp date type.", + "enum": [ + "TYPE_UNSPECIFIED", + "TYPE_EMPTY", + "TYPE_INTEGER", + "TYPE_STRING", + "TYPE_BOOLEAN", + "TYPE_DECIMAL", + "TYPE_TIMESTAMP" + ], + "type": "string" + }, + "v1ProposalSubmission": { "properties": { - "descending": { - "format": "boolean", - "title": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order", - "type": "boolean" - }, - "limit": { - "format": "uint64", - "title": "Limit the number of returned records to the value specified, default is 50", + "reference": { + "title": "Proposal reference", "type": "string" }, - "skip": { - "format": "uint64", - "title": "Skip the number of records specified, default is 0", - "type": "string" + "terms": { + "$ref": "#/definitions/vegaProposalTerms", + "title": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted" } }, - "title": "Pagination controls", + "title": "A command to submit a new proposal for the\nvega network governance", "type": "object" }, - "v1PartiesResponse": { + "v1RewardPayoutEvent": { "properties": { - "parties": { - "items": { - "$ref": "#/definitions/vegaParty" - }, - "title": "A list of 0 or more parties", - "type": "array" - } - }, - "title": "Response to a request for a list of parties", - "type": "object" - }, - "v1PartyAccountsResponse": { - "properties": { - "accounts": { - "items": { - "$ref": "#/definitions/vegaAccount" - }, - "title": "A list of 0 or more accounts", - "type": "array" - } - }, - "title": "Response for a list of accounts for a party", - "type": "object" - }, - "v1PartyByIDResponse": { - "properties": { - "party": { - "$ref": "#/definitions/vegaParty", - "title": "A party, if found" - } - }, - "title": "Response for a party given a party identifier", - "type": "object" - }, - "v1PendingDelegationBalanceEvent": { - "properties": { - "delegation_amount": { - "format": "uint64", - "type": "string" - }, - "node_id": { - "type": "string" - }, - "party": { - "type": "string" - }, - "undelegation_amount": { - "format": "uint64", - "type": "string" - } - }, - "title": "PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch", - "type": "object" - }, - "v1PositionResolution": { - "properties": { - "closed": { - "format": "int64", - "title": "Number of close outs", - "type": "string" - }, - "distressed": { - "format": "int64", - "title": "Number of distressed traders", - "type": "string" - }, - "mark_price": { - "format": "uint64", - "title": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", - "type": "string" - }, - "market_id": { - "title": "Market identifier for the event", - "type": "string" - } - }, - "title": "A position resolution event contains information on distressed trades", - "type": "object" - }, - "v1PositionsByPartyResponse": { - "properties": { - "positions": { - "items": { - "$ref": "#/definitions/vegaPosition" - }, - "title": "A list of 0 or more positions", - "type": "array" - } - }, - "title": "Response for a list of positions for a party", - "type": "object" - }, - "v1PositionsSubscribeResponse": { - "properties": { - "position": { - "$ref": "#/definitions/vegaPosition" - } - }, - "type": "object" - }, - "v1PrepareAmendOrderRequest": { - "properties": { - "amendment": { - "$ref": "#/definitions/v1OrderAmendment", - "title": "An order amendment" - } - }, - "title": "Request to amend an existing order", - "type": "object" - }, - "v1PrepareAmendOrderResponse": { - "properties": { - "blob": { - "description": "Blob is an encoded representation of the order amendment ready to sign using the Vega Wallet and then submit as a transaction.", - "format": "byte", - "type": "string" - } - }, - "title": "Response for preparing an order amendment", - "type": "object" - }, - "v1PrepareCancelOrderRequest": { - "properties": { - "cancellation": { - "$ref": "#/definitions/v1OrderCancellation", - "title": "An order cancellation" - } - }, - "title": "Request to cancel an existing order", - "type": "object" - }, - "v1PrepareCancelOrderResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "Blob is an encoded representation of the order cancellation ready to sign using the Vega Wallet and then submit as a transaction", - "type": "string" - } - }, - "title": "Response for preparing an order cancellation", - "type": "object" - }, - "v1PrepareLiquidityProvisionRequest": { - "properties": { - "submission": { - "$ref": "#/definitions/v1LiquidityProvisionSubmission", - "title": "Submission, required field" - } - }, - "title": "Request to prepare liquiditity provision", - "type": "object" - }, - "v1PrepareLiquidityProvisionResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "A blob is an encoded representation of the liquidity provision message ready to sign using the Vega Wallet and then submit as a transaction", - "type": "string" - } - }, - "title": "Response to a liquidity provision request", - "type": "object" - }, - "v1PrepareProposalSubmissionRequest": { - "properties": { - "submission": { - "$ref": "#/definitions/v1ProposalSubmission" - } - }, - "title": "Request to prepare a governance proposal", - "type": "object" - }, - "v1PrepareProposalSubmissionResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "A blob is an encoded representation of the proposal ready to sign using the Vega Wallet and then submit as a transaction", + "amount": { "type": "string" }, - "submission": { - "$ref": "#/definitions/v1ProposalSubmission", - "title": "A copy of the prepared proposal" - } - }, - "title": "Response to prepare a governance proposal", - "type": "object" - }, - "v1PrepareSubmitOrderRequest": { - "properties": { - "submission": { - "$ref": "#/definitions/v1OrderSubmission", - "title": "An order submission" - } - }, - "title": "Request to submit a new order", - "type": "object" - }, - "v1PrepareSubmitOrderResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "Blob is an encoded representation of the order submission ready to sign using the Vega Wallet and then submit as a transaction", + "asset": { "type": "string" }, - "submit_id": { - "title": "Submission identifier (order reference)", - "type": "string" - } - }, - "title": "Response for preparing an order submission", - "type": "object" - }, - "v1PrepareVoteSubmissionRequest": { - "properties": { - "submission": { - "$ref": "#/definitions/v1VoteSubmission", - "title": "Vote, required field" - } - }, - "title": "Request to prepare a governance vote", - "type": "object" - }, - "v1PrepareVoteSubmissionResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "A blob is an encoded representation of the vote ready to sign using the Vega Wallet and then submit as a transaction", + "epoch_seq": { "type": "string" }, - "submission": { - "$ref": "#/definitions/v1VoteSubmission", - "title": "A copy of the prepared vote" - } - }, - "title": "Response to prepare a governance vote", - "type": "object" - }, - "v1PrepareWithdrawRequest": { - "properties": { - "withdraw": { - "$ref": "#/definitions/v1WithdrawSubmission", - "title": "An asset withdrawal" - } - }, - "title": "Request for preparing a withdrawal", - "type": "object" - }, - "v1PrepareWithdrawResponse": { - "properties": { - "blob": { - "format": "byte", - "title": "Blob is an encoded representation of the withdrawal ready to sign using the Vega Wallet and then submit as a transaction", - "type": "string" - } - }, - "title": "Response for preparing a withdrawal", - "type": "object" - }, - "v1PropagateChainEventResponse": { - "properties": { - "success": { - "format": "boolean", - "title": "Success will be true if the event was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", - "type": "boolean" - } - }, - "title": "Response for a new event sent by the blockchain queue to be propagated on Vega", - "type": "object" - }, - "v1Property": { - "description": "Property describes one property of an oracle spec with a key with its value.", - "properties": { - "name": { - "description": "name is the name of the property.", + "party": { "type": "string" }, - "value": { - "description": "value is the value of the property.", - "type": "string" - } - }, - "type": "object" - }, - "v1PropertyKey": { - "description": "PropertyKey describes the property key contained in an oracle data.", - "properties": { - "name": { - "description": "name is the name of the property.", + "percent_of_total_reward": { "type": "string" }, - "type": { - "$ref": "#/definitions/v1PropertyKeyType", - "description": "type is the type of the property." - } - }, - "type": "object" - }, - "v1PropertyKeyType": { - "default": "TYPE_UNSPECIFIED", - "description": "Type describes the type of properties that are supported by the oracle\nengine.\n\n - TYPE_UNSPECIFIED: The default value.\n - TYPE_EMPTY: Any type.\n - TYPE_INTEGER: Integer type.\n - TYPE_STRING: String type.\n - TYPE_BOOLEAN: Boolean type.\n - TYPE_DECIMAL: Any floating point decimal type.\n - TYPE_TIMESTAMP: Timestamp date type.", - "enum": [ - "TYPE_UNSPECIFIED", - "TYPE_EMPTY", - "TYPE_INTEGER", - "TYPE_STRING", - "TYPE_BOOLEAN", - "TYPE_DECIMAL", - "TYPE_TIMESTAMP" - ], - "type": "string" - }, - "v1ProposalSubmission": { - "properties": { - "reference": { - "title": "Proposal reference", + "timestamp": { + "format": "int64", "type": "string" - }, - "terms": { - "$ref": "#/definitions/vegaProposalTerms", - "title": "Proposal configuration and the actual change that is meant to be executed when proposal is enacted" } }, - "title": "A command to submit a new proposal for the\nvega network governance", "type": "object" }, "v1SettleDistressed": { @@ -1835,12 +944,36 @@ "title": "A settle position event contains position settlement information for a party", "type": "object" }, - "v1StakingEvent": { + "v1Signature": { + "description": "A signature to be authenticate a transaction and to be verified by the vega\nnetwork.", + "properties": { + "algo": { + "description": "The algorithm used to create the signature.", + "type": "string" + }, + "value": { + "description": "The bytes of the signature (hex-encoded).", + "type": "string" + }, + "version": { + "description": "The version of the signature used to create the signature.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "v1StakeLinking": { "properties": { "amount": { "title": "The amount of stake deposited or removed", "type": "string" }, + "finalized_at": { + "format": "int64", + "title": "The time at which the vega network finalized the state of the event", + "type": "string" + }, "id": { "title": "The internal ID for this staking event", "type": "string" @@ -1849,72 +982,225 @@ "description": "The party to whom the event is directed at.", "type": "string" }, + "status": { + "$ref": "#/definitions/v1StakeLinkingStatus", + "title": "The status of the event" + }, "ts": { "format": "int64", "title": "The timestamps at which the event was emitted by ethereum", "type": "string" }, + "tx_hash": { + "title": "The hash of the transaction from which the events happen", + "type": "string" + }, "type": { - "$ref": "#/definitions/v1StakingEventType", + "$ref": "#/definitions/v1StakeLinkingType", "title": "The type of event" } }, - "title": "StakingEvent - an event notifying of stake being deposited or removed for a given party\nThese events are emitted for every Staking deposit or removed accepted by the network", + "title": "StakeLinking - an event notifying of stake being deposited or removed for a given party\nThese events are emitted for every Staking deposit or removed accepted by the network", "type": "object" }, - "v1StakingEventType": { + "v1StakeLinkingStatus": { + "default": "STATUS_UNSPECIFIED", + "enum": [ + "STATUS_UNSPECIFIED", + "STATUS_PENDING", + "STATUS_ACCEPTED", + "STATUS_REJECTED" + ], + "title": "- STATUS_UNSPECIFIED: Default value\n - STATUS_PENDING: Indicate an event waiting for confirmation from the vega network\n - STATUS_ACCEPTED: Indicate of an event accepted by the vega network\n - STATUS_REJECTED: Indaicate of an event rejected by the vega network", + "type": "string" + }, + "v1StakeLinkingType": { "default": "TYPE_UNSPECIFIED", "enum": [ "TYPE_UNSPECIFIED", - "TYPE_DEPOSIT", - "TYPE_REMOVE" + "TYPE_LINK", + "TYPE_UNLINK" ], - "title": "- TYPE_UNSPECIFIED: Default value\n - TYPE_DEPOSIT: Indicate of a stake deposit instruction\n - TYPE_REMOVE: Indicate of a stake remove instruction", + "title": "- TYPE_UNSPECIFIED: Default value\n - TYPE_LINK: Indicate of a stake deposit instruction\n - TYPE_UNLINK: Indicate of a stake remove instruction", "type": "string" }, - "v1StatisticsResponse": { + "v1Statistics": { "properties": { - "statistics": { - "$ref": "#/definitions/vegaStatistics" + "account_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to account data", + "type": "integer" + }, + "app_version": { + "title": "The version of the Vega node software", + "type": "string" + }, + "app_version_hash": { + "title": "The version hash of the Vega node software", + "type": "string" + }, + "average_orders_per_block": { + "format": "uint64", + "title": "Average orders per block", + "type": "string" + }, + "average_tx_bytes": { + "format": "uint64", + "title": "Average transaction size in bytes", + "type": "string" + }, + "backlog_length": { + "format": "uint64", + "title": "Current backlog length (number of transactions) that are waiting to be included in a block", + "type": "string" + }, + "block_duration": { + "format": "uint64", + "title": "Current block duration, in nanoseconds", + "type": "string" + }, + "block_height": { + "format": "uint64", + "title": "Current block height as reported by the Vega blockchain", + "type": "string" + }, + "candle_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to candle-stick data", + "type": "integer" + }, + "chain_id": { + "title": "Unique identifier for the underlying Vega blockchain", + "type": "string" + }, + "chain_version": { + "title": "The version of the underlying Vega blockchain", + "type": "string" + }, + "current_time": { + "title": "Current system date and time formatted in ISO-8601 datetime format with nanosecond precision", + "type": "string" + }, + "genesis_time": { + "title": "Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision", + "type": "string" + }, + "market_data_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to market data", + "type": "integer" + }, + "market_depth_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to market depth data", + "type": "integer" + }, + "market_depth_updates_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to market depth update data", + "type": "integer" + }, + "order_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to order data", + "type": "integer" + }, + "orders_per_second": { + "format": "uint64", + "title": "Orders processed per second", + "type": "string" + }, + "positions_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to positions data", + "type": "integer" + }, + "status": { + "$ref": "#/definitions/vegaChainStatus", + "title": "Status of the connection to the Vega blockchain\n- See [`ChainStatus`](#vega.ChainStatus)" + }, + "total_amend_order": { + "format": "uint64", + "title": "Total number of order amendments since genesis (on all markets)", + "type": "string" + }, + "total_cancel_order": { + "format": "uint64", + "title": "Total number of order cancellations since genesis (on all markets)", + "type": "string" + }, + "total_create_order": { + "format": "uint64", + "title": "Total number of order submissions since genesis (on all markets)", + "type": "string" + }, + "total_markets": { + "format": "uint64", + "title": "Total markets on this Vega network", + "type": "string" + }, + "total_orders": { + "format": "uint64", + "title": "Total number of orders processed since genesis (on all markets)", + "type": "string" + }, + "total_peers": { + "format": "uint64", + "title": "Total number of connected peers to this node", + "type": "string" + }, + "total_trades": { + "format": "uint64", + "title": "Total number of trades emitted since genesis (on all markets)", + "type": "string" + }, + "trade_subscriptions": { + "format": "int64", + "title": "Current number of stream subscribers to trade data", + "type": "integer" + }, + "trades_per_second": { + "format": "uint64", + "title": "Trades emitted per second", + "type": "string" + }, + "tx_per_block": { + "format": "uint64", + "title": "Transactions per block", + "type": "string" + }, + "uptime": { + "title": "Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision", + "type": "string" + }, + "vega_time": { + "title": "Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision", + "type": "string" } }, + "title": "Vega domain specific statistics as reported by the node the caller is connected to", "type": "object" }, - "v1SubmitTransactionRequest": { + "v1StatisticsResponse": { "properties": { - "tx": { - "$ref": "#/definitions/vegaSignedBundle", - "title": "A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain" - }, - "type": { - "$ref": "#/definitions/v1SubmitTransactionRequestType", - "title": "Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response" + "statistics": { + "$ref": "#/definitions/v1Statistics" } }, - "title": "Request for submitting a transaction on Vega", "type": "object" }, - "v1SubmitTransactionRequestType": { - "default": "TYPE_UNSPECIFIED", - "description": "- TYPE_ASYNC: The transaction will be submitted without waiting for response\n - TYPE_SYNC: The transaction will be submitted, and blocking until the\ntendermint mempool return a response\n - TYPE_COMMIT: The transaction will submitted, and blocking until the tendermint\nnetwork will have committed it into a block", - "enum": [ - "TYPE_UNSPECIFIED", - "TYPE_ASYNC", - "TYPE_SYNC", - "TYPE_COMMIT" - ], - "title": "Blockchain transaction type", - "type": "string" - }, - "v1SubmitTransactionResponse": { + "v1SubmitTransactionV2Request": { "properties": { - "success": { - "format": "boolean", - "title": "Success will be true if the transaction was accepted by the node,\n**Important** - success does not mean that the event is confirmed by consensus", - "type": "boolean" + "tx": { + "$ref": "#/definitions/v1Transaction", + "title": "A bundle of signed payload and signature, to form a transaction that will be submitted to the Vega blockchain" + }, + "type": { + "$ref": "#/definitions/v1SubmitTransactionV2RequestType", + "title": "Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response" } }, - "title": "Response for submitting a transaction on Vega", + "title": "Request for submitting a transaction v2 on Vega", "type": "object" }, "v1SubmitTransactionV2RequestType": { @@ -1967,56 +1253,32 @@ "title": "A trade settlement is part of the settle position event", "type": "object" }, - "v1TradesByMarketResponse": { - "properties": { - "trades": { - "items": { - "$ref": "#/definitions/vegaTrade" - }, - "title": "A list of 0 or more trades", - "type": "array" - } - }, - "title": "Response for a list of trades on a market", - "type": "object" - }, - "v1TradesByOrderResponse": { - "properties": { - "trades": { - "items": { - "$ref": "#/definitions/vegaTrade" - }, - "title": "A list of 0 or more trades", - "type": "array" - } - }, - "title": "Response for a list of trades related to an order", - "type": "object" - }, - "v1TradesByPartyResponse": { - "properties": { - "trades": { - "items": { - "$ref": "#/definitions/vegaTrade" - }, - "title": "A list of 0 or more trades", - "type": "array" - } - }, - "title": "Response for a list of trades relating to a party", - "type": "object" - }, - "v1TradesSubscribeResponse": { + "v1Transaction": { + "description": "Represents a transaction to be sent to Vega.", "properties": { - "trades": { - "items": { - "$ref": "#/definitions/vegaTrade" - }, - "title": "A list of 0 or more trades", - "type": "array" + "address": { + "description": "The address of the sender (hex-encoded). Not supported yet.", + "type": "string" + }, + "input_data": { + "description": "One of the set of Vega commands (proto marshalled).", + "format": "byte", + "type": "string" + }, + "pub_key": { + "description": "The public key of the sender (hex-encoded).", + "type": "string" + }, + "signature": { + "$ref": "#/definitions/v1Signature", + "description": "The signature of the inputData." + }, + "version": { + "description": "A version of the transaction, to be used in the future in case we want to\nimplement changes to the Transaction format.", + "format": "int64", + "type": "integer" } }, - "title": "A stream of trades", "type": "object" }, "v1TransferResponses": { @@ -2032,14 +1294,6 @@ "title": "A transfer responses event contains a collection of transfer information", "type": "object" }, - "v1TransferResponsesSubscribeResponse": { - "properties": { - "response": { - "$ref": "#/definitions/vegaTransferResponse" - } - }, - "type": "object" - }, "v1TxErrorEvent": { "properties": { "err_msg": { @@ -2074,23 +1328,45 @@ }, "type": "object" }, + "v1ValidatorScoreEvent": { + "properties": { + "epoch_seq": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "normalised_score": { + "type": "string" + }, + "validator_score": { + "type": "string" + } + }, + "title": "ValidatorScoreEvent is the score a validator gets for a given epoch", + "type": "object" + }, "v1ValidatorUpdate": { "properties": { "country": { "title": "Country code (ISO 3166-1 alpha-2) for the location of the node", "type": "string" }, - "info_url": { - "title": "URL with more info on the node", + "ethereum_address": { + "title": "Ethereum public key of validator node", "type": "string" }, - "pub_key": { - "title": "Public key of validator node", + "info_url": { + "title": "URL with more info on the node", "type": "string" }, "tm_pub_key": { "title": "Public key of Tendermint", "type": "string" + }, + "vega_pub_key": { + "title": "Vega public key of validator node", + "type": "string" } }, "title": "A validator update event contains information about validator node", @@ -2129,30 +1405,7 @@ "title": "Represents the submission request to withdraw funds for a party on Vega", "type": "object" }, - "v1WithdrawalResponse": { - "properties": { - "withdrawal": { - "$ref": "#/definitions/vegaWithdrawal", - "title": "The withdrawal matching the identifier from the request" - } - }, - "title": "A response for a withdrawal", - "type": "object" - }, - "v1WithdrawalsResponse": { - "properties": { - "withdrawals": { - "items": { - "$ref": "#/definitions/vegaWithdrawal" - }, - "title": "The list of withdrawals for the specified party", - "type": "array" - } - }, - "title": "The response for a list of withdrawals", - "type": "object" - }, - "vegaAccount": { + "vegaAccount": { "properties": { "asset": { "title": "Asset identifier for the account", @@ -2204,16 +1457,6 @@ "title": "Various collateral/account types as used by Vega", "type": "string" }, - "vegaAddValidator": { - "properties": { - "id": { - "$ref": "#/definitions/vegaIdentifier", - "title": "The identifier of the validator" - } - }, - "title": "A message to notify when a new validator is being added to the Vega network", - "type": "object" - }, "vegaAsset": { "properties": { "details": { @@ -2292,80 +1535,6 @@ "title": "Auction triggers indicate what condition triggered an auction (if market is in auction mode)", "type": "string" }, - "vegaBTCDeposit": { - "properties": { - "source_btc_address": { - "title": "The BTC wallet initiating the deposit", - "type": "string" - }, - "target_party_id": { - "title": "The Vega party identifier (pub-key) which is the target of the deposit", - "type": "string" - }, - "vega_asset_id": { - "title": "The Vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "A Bitcoin deposit into Vega", - "type": "object" - }, - "vegaBTCEvent": { - "properties": { - "block": { - "format": "uint64", - "title": "The block in which the transaction happened", - "type": "string" - }, - "deposit": { - "$ref": "#/definitions/vegaBTCDeposit", - "title": "Deposit BTC asset" - }, - "index": { - "format": "uint64", - "title": "The index of the transaction", - "type": "string" - }, - "withdrawal": { - "$ref": "#/definitions/vegaBTCWithdrawal", - "title": "Withdraw BTC asset" - } - }, - "title": "An event from the Bitcoin network", - "type": "object" - }, - "vegaBTCWithdrawal": { - "properties": { - "reference_nonce": { - "title": "The nonce reference of the transaction", - "type": "string" - }, - "source_party_id": { - "title": "The party identifier (pub-key) initiating the withdrawal", - "type": "string" - }, - "target_btc_address": { - "title": "Target Bitcoin wallet address", - "type": "string" - }, - "vega_asset_id": { - "title": "The vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "A Bitcoin withdrawal from Vega", - "type": "object" - }, - "vegaBitcoinAddress": { - "properties": { - "address": { - "title": "A Bitcoin address", - "type": "string" - } - }, - "title": "Used as a wrapper for a Bitcoin address (wallet)", - "type": "object" - }, "vegaBuiltinAsset": { "properties": { "max_faucet_amount_mint": { @@ -2376,102 +1545,6 @@ "title": "A Vega internal asset", "type": "object" }, - "vegaBuiltinAssetDeposit": { - "properties": { - "amount": { - "format": "uint64", - "title": "The amount to be deposited", - "type": "string" - }, - "party_id": { - "title": "A Vega party identifier (pub-key)", - "type": "string" - }, - "vega_asset_id": { - "title": "A Vega network internal asset identifier", - "type": "string" - } - }, - "title": "A deposit for a Vega built-in asset", - "type": "object" - }, - "vegaBuiltinAssetEvent": { - "properties": { - "deposit": { - "$ref": "#/definitions/vegaBuiltinAssetDeposit", - "title": "Built-in asset deposit" - }, - "withdrawal": { - "$ref": "#/definitions/vegaBuiltinAssetWithdrawal", - "title": "Built-in asset withdrawal" - } - }, - "title": "An event related to a Vega built-in asset", - "type": "object" - }, - "vegaBuiltinAssetWithdrawal": { - "properties": { - "amount": { - "format": "uint64", - "title": "The amount to be withdrawn", - "type": "string" - }, - "party_id": { - "title": "A Vega network party identifier (pub-key)", - "type": "string" - }, - "vega_asset_id": { - "title": "A Vega network internal asset identifier", - "type": "string" - } - }, - "title": "A withdrawal for a Vega built-in asset", - "type": "object" - }, - "vegaCandle": { - "properties": { - "close": { - "format": "uint64", - "title": "Closing trade price", - "type": "string" - }, - "datetime": { - "title": "An ISO-8601 datetime with nanosecond precision for when the candle was last updated", - "type": "string" - }, - "high": { - "format": "uint64", - "title": "Highest price for trading during the candle interval", - "type": "string" - }, - "interval": { - "$ref": "#/definitions/vegaInterval", - "title": "Time interval for the candle - See [`Interval`](#vega.Interval)" - }, - "low": { - "format": "uint64", - "title": "Lowest price for trading during the candle interval", - "type": "string" - }, - "open": { - "format": "uint64", - "title": "Open trade price", - "type": "string" - }, - "timestamp": { - "format": "int64", - "title": "Timestamp for the point in time when the candle was initially created/opened, in nanoseconds since the epoch\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "type": "string" - }, - "volume": { - "format": "uint64", - "title": "Total trading volume during the candle interval", - "type": "string" - } - }, - "title": "Represents the high, low, open, and closing prices for an interval of trading,\nreferred to commonly as a candlestick or candle", - "type": "object" - }, "vegaChainStatus": { "default": "CHAIN_STATUS_UNSPECIFIED", "description": "- CHAIN_STATUS_UNSPECIFIED: Default value, always invalid\n - CHAIN_STATUS_DISCONNECTED: Blockchain is disconnected\n - CHAIN_STATUS_REPLAYING: Blockchain is replaying historic transactions\n - CHAIN_STATUS_CONNECTED: Blockchain is connected and receiving transactions", @@ -2494,6 +1567,27 @@ "title": "Continuous trading", "type": "object" }, + "vegaDelegation": { + "properties": { + "amount": { + "title": "Amount delegated", + "type": "string" + }, + "epoch_seq": { + "title": "Epoch of delegation", + "type": "string" + }, + "node_id": { + "title": "Node ID", + "type": "string" + }, + "party": { + "title": "Party which is delegating", + "type": "string" + } + }, + "type": "object" + }, "vegaDeposit": { "properties": { "amount": { @@ -2571,98 +1665,6 @@ "title": "An ERC20 token based asset, living on the ethereum network", "type": "object" }, - "vegaERC20AssetDelist": { - "properties": { - "vega_asset_id": { - "title": "The Vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "An asset deny-listing for an ERC20 token", - "type": "object" - }, - "vegaERC20AssetList": { - "properties": { - "vega_asset_id": { - "title": "The Vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "An asset allow-listing for an ERC20 token", - "type": "object" - }, - "vegaERC20Deposit": { - "properties": { - "amount": { - "title": "The amount to be deposited", - "type": "string" - }, - "source_ethereum_address": { - "title": "The Ethereum wallet that initiated the deposit", - "type": "string" - }, - "target_party_id": { - "title": "The Vega party identifier (pub-key) which is the target of the deposit", - "type": "string" - }, - "vega_asset_id": { - "title": "The vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "An asset deposit for an ERC20 token", - "type": "object" - }, - "vegaERC20Event": { - "properties": { - "asset_delist": { - "$ref": "#/definitions/vegaERC20AssetDelist", - "title": "De-list an ERC20 asset" - }, - "asset_list": { - "$ref": "#/definitions/vegaERC20AssetList", - "title": "List an ERC20 asset" - }, - "block": { - "format": "uint64", - "title": "The block in which the transaction was added", - "type": "string" - }, - "deposit": { - "$ref": "#/definitions/vegaERC20Deposit", - "title": "Deposit ERC20 asset" - }, - "index": { - "format": "uint64", - "title": "Index of the transaction", - "type": "string" - }, - "withdrawal": { - "$ref": "#/definitions/vegaERC20Withdrawal", - "title": "Withdraw ERC20 asset" - } - }, - "title": "An event related to an ERC20 token", - "type": "object" - }, - "vegaERC20Withdrawal": { - "properties": { - "reference_nonce": { - "title": "The reference nonce used for the transaction", - "type": "string" - }, - "target_ethereum_address": { - "title": "The target Ethereum wallet address", - "type": "string" - }, - "vega_asset_id": { - "title": "The Vega network internal identifier of the asset", - "type": "string" - } - }, - "title": "An asset withdrawal for an ERC20 token", - "type": "object" - }, "vegaErc20WithdrawExt": { "properties": { "receiver_address": { @@ -2673,16 +1675,6 @@ "title": "An extension of data required for the withdraw submissions", "type": "object" }, - "vegaEthereumAddress": { - "properties": { - "address": { - "title": "An Ethereum address", - "type": "string" - } - }, - "title": "Used as a wrapper for an Ethereum address (wallet/contract)", - "type": "object" - }, "vegaFee": { "properties": { "infrastructure_fee": { @@ -2792,58 +1784,6 @@ "title": "Future product configuration", "type": "object" }, - "vegaGovernanceData": { - "properties": { - "no": { - "items": { - "$ref": "#/definitions/vegaVote" - }, - "title": "All \"no\" votes against the proposal above", - "type": "array" - }, - "no_party": { - "additionalProperties": { - "$ref": "#/definitions/vegaVote" - }, - "title": "All latest NO votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", - "type": "object" - }, - "proposal": { - "$ref": "#/definitions/vegaProposal", - "title": "The governance proposal" - }, - "yes": { - "items": { - "$ref": "#/definitions/vegaVote" - }, - "title": "All \"yes\" votes in favour of the proposal above", - "type": "array" - }, - "yes_party": { - "additionalProperties": { - "$ref": "#/definitions/vegaVote" - }, - "title": "All latest YES votes by party (guaranteed to be unique),\nwhere key (string) is the party ID (public key) and\nvalue (Vote) is the vote cast by the given party", - "type": "object" - } - }, - "title": "Governance data", - "type": "object" - }, - "vegaIdentifier": { - "properties": { - "bitcoin_address": { - "$ref": "#/definitions/vegaBitcoinAddress", - "title": "Bitcoin network" - }, - "ethereum_address": { - "$ref": "#/definitions/vegaEthereumAddress", - "title": "Ethereum network" - } - }, - "title": "Used as a wrapper type on any possible network address supported by Vega", - "type": "object" - }, "vegaInstrument": { "properties": { "code": { @@ -2901,21 +1841,6 @@ "title": "Instrument metadata definition", "type": "object" }, - "vegaInterval": { - "default": "INTERVAL_UNSPECIFIED", - "description": "- INTERVAL_UNSPECIFIED: Default value, always invalid\n - INTERVAL_I1M: 1 minute.\n - INTERVAL_I5M: 5 minutes.\n - INTERVAL_I15M: 15 minutes.\n - INTERVAL_I1H: 1 hour.\n - INTERVAL_I6H: 6 hours.\n - INTERVAL_I1D: 1 day.", - "enum": [ - "INTERVAL_UNSPECIFIED", - "INTERVAL_I1M", - "INTERVAL_I5M", - "INTERVAL_I15M", - "INTERVAL_I1H", - "INTERVAL_I6H", - "INTERVAL_I1D" - ], - "title": "Represents a set of time intervals that are used when querying for candle-stick data", - "type": "string" - }, "vegaLedgerEntry": { "properties": { "amount": { @@ -3380,83 +2305,25 @@ "title": "Represents data generated by a market when open", "type": "object" }, - "vegaMarketDepth": { - "properties": { - "buy": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Collection of price levels for the buy side of the book", - "type": "array" - }, - "market_id": { - "title": "Market identifier", - "type": "string" - }, - "sell": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Collection of price levels for the sell side of the book", - "type": "array" - }, - "sequence_number": { - "format": "uint64", - "title": "Sequence number for the market depth data returned", - "type": "string" - } - }, - "title": "Represents market depth or order book data for the specified market on Vega", - "type": "object" - }, - "vegaMarketDepthUpdate": { - "properties": { - "buy": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Collection of updated price levels for the buy side of the book", - "type": "array" - }, - "market_id": { - "title": "Market identifier", - "type": "string" - }, - "sell": { - "items": { - "$ref": "#/definitions/vegaPriceLevel" - }, - "title": "Collection of updated price levels for the sell side of the book", - "type": "array" - }, - "sequence_number": { - "format": "uint64", - "title": "Sequence number for the market depth update data returned", - "type": "string" - } - }, - "title": "Represents the changed market depth since the last update", - "type": "object" - }, - "vegaMarketState": { - "default": "STATE_UNSPECIFIED", - "description": "- STATE_UNSPECIFIED: Default value, invalid\n - STATE_PROPOSED: The Governance proposal valid and accepted\n - STATE_REJECTED: Outcome of governance votes is to reject the market\n - STATE_PENDING: Governance vote passes/wins\n - STATE_CANCELLED: Market triggers cancellation condition or governance\nvotes to close before market becomes Active\n - STATE_ACTIVE: Enactment date reached and usual auction exit checks pass\n - STATE_SUSPENDED: Price monitoring or liquidity monitoring trigger\n - STATE_CLOSED: Governance vote (to close)\n - STATE_TRADING_TERMINATED: Defined by the product (i.e. from a product parameter,\nspecified in market definition, giving close date/time)\n - STATE_SETTLED: Settlement triggered and completed as defined by product", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_PROPOSED", - "STATE_REJECTED", - "STATE_PENDING", - "STATE_CANCELLED", - "STATE_ACTIVE", - "STATE_SUSPENDED", - "STATE_CLOSED", - "STATE_TRADING_TERMINATED", - "STATE_SETTLED" - ], - "title": "The current state of the Market", - "type": "string" - }, - "vegaMarketTimestamps": { + "vegaMarketState": { + "default": "STATE_UNSPECIFIED", + "description": "- STATE_UNSPECIFIED: Default value, invalid\n - STATE_PROPOSED: The Governance proposal valid and accepted\n - STATE_REJECTED: Outcome of governance votes is to reject the market\n - STATE_PENDING: Governance vote passes/wins\n - STATE_CANCELLED: Market triggers cancellation condition or governance\nvotes to close before market becomes Active\n - STATE_ACTIVE: Enactment date reached and usual auction exit checks pass\n - STATE_SUSPENDED: Price monitoring or liquidity monitoring trigger\n - STATE_CLOSED: Governance vote (to close)\n - STATE_TRADING_TERMINATED: Defined by the product (i.e. from a product parameter,\nspecified in market definition, giving close date/time)\n - STATE_SETTLED: Settlement triggered and completed as defined by product", + "enum": [ + "STATE_UNSPECIFIED", + "STATE_PROPOSED", + "STATE_REJECTED", + "STATE_PENDING", + "STATE_CANCELLED", + "STATE_ACTIVE", + "STATE_SUSPENDED", + "STATE_CLOSED", + "STATE_TRADING_TERMINATED", + "STATE_SETTLED" + ], + "title": "The current state of the Market", + "type": "string" + }, + "vegaMarketTimestamps": { "properties": { "close": { "format": "int64", @@ -3789,6 +2656,12 @@ }, "vegaParty": { "properties": { + "delegations": { + "items": { + "$ref": "#/definitions/vegaDelegation" + }, + "type": "array" + }, "id": { "title": "A unique identifier for the party, typically represented by a public key", "type": "string" @@ -3824,45 +2697,6 @@ "title": "A pegged reference defines which price point a pegged order is linked to - meaning\nthe price for a pegged order is calculated from the value of the reference price point", "type": "string" }, - "vegaPosition": { - "properties": { - "average_entry_price": { - "format": "uint64", - "title": "Average entry price for the position, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", - "type": "string" - }, - "market_id": { - "title": "Market identifier", - "type": "string" - }, - "open_volume": { - "format": "int64", - "title": "Open volume for the position, value is signed +ve for long and -ve for short", - "type": "string" - }, - "party_id": { - "title": "Party identifier", - "type": "string" - }, - "realised_pnl": { - "format": "int64", - "title": "Realised profit and loss for the position, value is signed +ve for long and -ve for short", - "type": "string" - }, - "unrealised_pnl": { - "format": "int64", - "title": "Unrealised profit and loss for the position, value is signed +ve for long and -ve for short", - "type": "string" - }, - "updated_at": { - "format": "int64", - "title": "Timestamp for the latest time the position was updated", - "type": "string" - } - }, - "title": "Represents position data for a party on the specified market on Vega", - "type": "object" - }, "vegaPrice": { "properties": { "value": { @@ -3873,27 +2707,6 @@ }, "type": "object" }, - "vegaPriceLevel": { - "properties": { - "number_of_orders": { - "format": "uint64", - "title": "Number of orders at the price level", - "type": "string" - }, - "price": { - "format": "uint64", - "title": "Price for the price level, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", - "type": "string" - }, - "volume": { - "format": "uint64", - "title": "Volume at the price level", - "type": "string" - } - }, - "title": "Represents a price level from market depth or order book data", - "type": "object" - }, "vegaPriceMonitoringBounds": { "properties": { "max_valid_price": { @@ -4101,16 +2914,6 @@ "title": "Terms for a governance proposal on Vega", "type": "object" }, - "vegaRemoveValidator": { - "properties": { - "id": { - "$ref": "#/definitions/vegaIdentifier", - "title": "The identifier of the validator" - } - }, - "title": "A message to notify when a validator is being removed from the Vega network", - "type": "object" - }, "vegaRiskFactor": { "properties": { "long": { @@ -4163,41 +2966,6 @@ "title": "A side relates to the direction of an order, to Buy, or Sell", "type": "string" }, - "vegaSignature": { - "properties": { - "algo": { - "title": "The algorithm used to create the signature", - "type": "string" - }, - "sig": { - "format": "byte", - "title": "The bytes of the signature", - "type": "string" - }, - "version": { - "format": "int64", - "title": "The version of the signature used to create the signature", - "type": "integer" - } - }, - "title": "A signature to be authenticate a transaction\nand to be verified by the vega network", - "type": "object" - }, - "vegaSignedBundle": { - "properties": { - "sig": { - "$ref": "#/definitions/vegaSignature", - "title": "The signature authenticating the transaction" - }, - "tx": { - "format": "byte", - "title": "Transaction payload (proto marshalled)", - "type": "string" - } - }, - "title": "A bundle of a transaction and it's signature", - "type": "object" - }, "vegaSimpleModelParams": { "properties": { "factor_long": { @@ -4239,274 +3007,117 @@ "title": "Risk model for simple modelling", "type": "object" }, - "vegaStatistics": { + "vegaTargetStakeParameters": { "properties": { - "account_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to account data", - "type": "integer" + "scaling_factor": { + "format": "double", + "title": "Specifies scaling factors used in target stake calculation", + "type": "number" }, - "app_version": { - "title": "The version of the Vega node software", + "time_window": { + "format": "int64", + "title": "Specifies length of time window expressed in seconds for target stake calculation", + "type": "string" + } + }, + "title": "TargetStakeParameters contains parameters used in target stake calculation", + "type": "object" + }, + "vegaTimestamp": { + "properties": { + "value": { + "format": "int64", + "title": "Timestamp value", "type": "string" + } + }, + "title": "A timestamp in nanoseconds since epoch\nSee [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", + "type": "object" + }, + "vegaTradableInstrument": { + "properties": { + "instrument": { + "$ref": "#/definitions/vegaInstrument", + "title": "Instrument details" }, - "app_version_hash": { - "title": "The version hash of the Vega node software", + "log_normal_risk_model": { + "$ref": "#/definitions/vegaLogNormalRiskModel", + "title": "Log normal" + }, + "margin_calculator": { + "$ref": "#/definitions/vegaMarginCalculator", + "title": "Margin calculator for the instrument" + }, + "simple_risk_model": { + "$ref": "#/definitions/vegaSimpleRiskModel", + "title": "Simple" + } + }, + "title": "Tradable Instrument definition", + "type": "object" + }, + "vegaTrade": { + "properties": { + "aggressor": { + "$ref": "#/definitions/vegaSide", + "title": "Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)" + }, + "buy_order": { + "title": "Identifier of the order from the buy side", "type": "string" }, - "average_orders_per_block": { - "format": "uint64", - "title": "Average orders per block", + "buyer": { + "title": "Unique party identifier for the buyer", "type": "string" }, - "average_tx_bytes": { + "buyer_auction_batch": { "format": "uint64", - "title": "Average transaction size in bytes", + "title": "Auction batch number that the buy side order was placed in", "type": "string" }, - "backlog_length": { - "format": "uint64", - "title": "Current backlog length (number of transactions) that are waiting to be included in a block", + "buyer_fee": { + "$ref": "#/definitions/vegaFee", + "title": "Fee amount charged to the buyer party for the trade" + }, + "id": { + "title": "Unique identifier for the trade (generated by Vega)", "type": "string" }, - "block_duration": { - "format": "uint64", - "title": "Current block duration, in nanoseconds", + "market_id": { + "title": "Market identifier (the market that the trade occurred on)", "type": "string" }, - "block_height": { + "price": { "format": "uint64", - "title": "Current block height as reported by the Vega blockchain", + "title": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, - "candle_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to candle-stick data", - "type": "integer" - }, - "chain_id": { - "title": "Unique identifier for the underlying Vega blockchain", + "sell_order": { + "title": "Identifier of the order from the sell side", "type": "string" }, - "chain_version": { - "title": "The version of the underlying Vega blockchain", + "seller": { + "title": "Unique party identifier for the seller", "type": "string" }, - "current_time": { - "title": "Current system date and time formatted in ISO-8601 datetime format with nanosecond precision", + "seller_auction_batch": { + "format": "uint64", + "title": "Auction batch number that the sell side order was placed in", "type": "string" }, - "genesis_time": { - "title": "Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision", + "seller_fee": { + "$ref": "#/definitions/vegaFee", + "title": "Fee amount charged to the seller party for the trade" + }, + "size": { + "format": "uint64", + "title": "Size filled for the trade", "type": "string" }, - "market_data_subscriptions": { + "timestamp": { "format": "int64", - "title": "Current number of stream subscribers to market data", - "type": "integer" - }, - "market_depth_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to market depth data", - "type": "integer" - }, - "market_depth_updates_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to market depth update data", - "type": "integer" - }, - "order_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to order data", - "type": "integer" - }, - "orders_per_second": { - "format": "uint64", - "title": "Orders processed per second", - "type": "string" - }, - "positions_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to positions data", - "type": "integer" - }, - "status": { - "$ref": "#/definitions/vegaChainStatus", - "title": "Status of the connection to the Vega blockchain\n- See [`ChainStatus`](#vega.ChainStatus)" - }, - "total_amend_order": { - "format": "uint64", - "title": "Total number of order amendments since genesis (on all markets)", - "type": "string" - }, - "total_cancel_order": { - "format": "uint64", - "title": "Total number of order cancellations since genesis (on all markets)", - "type": "string" - }, - "total_create_order": { - "format": "uint64", - "title": "Total number of order submissions since genesis (on all markets)", - "type": "string" - }, - "total_markets": { - "format": "uint64", - "title": "Total markets on this Vega network", - "type": "string" - }, - "total_orders": { - "format": "uint64", - "title": "Total number of orders processed since genesis (on all markets)", - "type": "string" - }, - "total_peers": { - "format": "uint64", - "title": "Total number of connected peers to this node", - "type": "string" - }, - "total_trades": { - "format": "uint64", - "title": "Total number of trades emitted since genesis (on all markets)", - "type": "string" - }, - "trade_subscriptions": { - "format": "int64", - "title": "Current number of stream subscribers to trade data", - "type": "integer" - }, - "trades_per_second": { - "format": "uint64", - "title": "Trades emitted per second", - "type": "string" - }, - "tx_per_block": { - "format": "uint64", - "title": "Transactions per block", - "type": "string" - }, - "uptime": { - "title": "Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision", - "type": "string" - }, - "vega_time": { - "title": "Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision", - "type": "string" - } - }, - "title": "Vega domain specific statistics as reported by the node the caller is connected to", - "type": "object" - }, - "vegaTargetStakeParameters": { - "properties": { - "scaling_factor": { - "format": "double", - "title": "Specifies scaling factors used in target stake calculation", - "type": "number" - }, - "time_window": { - "format": "int64", - "title": "Specifies length of time window expressed in seconds for target stake calculation", - "type": "string" - } - }, - "title": "TargetStakeParameters contains parameters used in target stake calculation", - "type": "object" - }, - "vegaTimestamp": { - "properties": { - "value": { - "format": "int64", - "title": "Timestamp value", - "type": "string" - } - }, - "title": "A timestamp in nanoseconds since epoch\nSee [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "type": "object" - }, - "vegaTradableInstrument": { - "properties": { - "instrument": { - "$ref": "#/definitions/vegaInstrument", - "title": "Instrument details" - }, - "log_normal_risk_model": { - "$ref": "#/definitions/vegaLogNormalRiskModel", - "title": "Log normal" - }, - "margin_calculator": { - "$ref": "#/definitions/vegaMarginCalculator", - "title": "Margin calculator for the instrument" - }, - "simple_risk_model": { - "$ref": "#/definitions/vegaSimpleRiskModel", - "title": "Simple" - } - }, - "title": "Tradable Instrument definition", - "type": "object" - }, - "vegaTrade": { - "properties": { - "aggressor": { - "$ref": "#/definitions/vegaSide", - "title": "Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)" - }, - "buy_order": { - "title": "Identifier of the order from the buy side", - "type": "string" - }, - "buyer": { - "title": "Unique party identifier for the buyer", - "type": "string" - }, - "buyer_auction_batch": { - "format": "uint64", - "title": "Auction batch number that the buy side order was placed in", - "type": "string" - }, - "buyer_fee": { - "$ref": "#/definitions/vegaFee", - "title": "Fee amount charged to the buyer party for the trade" - }, - "id": { - "title": "Unique identifier for the trade (generated by Vega)", - "type": "string" - }, - "market_id": { - "title": "Market identifier (the market that the trade occurred on)", - "type": "string" - }, - "price": { - "format": "uint64", - "title": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", - "type": "string" - }, - "sell_order": { - "title": "Identifier of the order from the sell side", - "type": "string" - }, - "seller": { - "title": "Unique party identifier for the seller", - "type": "string" - }, - "seller_auction_batch": { - "format": "uint64", - "title": "Auction batch number that the sell side order was placed in", - "type": "string" - }, - "seller_fee": { - "$ref": "#/definitions/vegaFee", - "title": "Fee amount charged to the seller party for the trade" - }, - "size": { - "format": "uint64", - "title": "Size filled for the trade", - "type": "string" - }, - "timestamp": { - "format": "int64", - "title": "Timestamp for when the trade occurred, in nanoseconds since the epoch\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", - "type": "string" + "title": "Timestamp for when the trade occurred, in nanoseconds since the epoch\n- See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`", + "type": "string" }, "type": { "$ref": "#/definitions/vegaTradeType", @@ -4577,24 +3188,6 @@ "title": "Update network configuration on Vega", "type": "object" }, - "vegaValidatorEvent": { - "properties": { - "add": { - "$ref": "#/definitions/vegaAddValidator", - "title": "Add a new validator" - }, - "rm": { - "$ref": "#/definitions/vegaRemoveValidator", - "title": "Remove an existing validator" - }, - "source_id": { - "title": "The source identifier of the event", - "type": "string" - } - }, - "title": "An event related to validator management with foreign networks", - "type": "object" - }, "vegaVote": { "properties": { "party_id": { @@ -4674,1514 +3267,55 @@ "title": "The reference which is used by the foreign chain\nto refer to this withdrawal", "type": "string" }, - "status": { - "$ref": "#/definitions/vegaWithdrawalStatus", - "title": "The status of the withdrawal" - }, - "tx_hash": { - "title": "The hash of the foreign chain for this transaction", - "type": "string" - }, - "withdrawn_timestamp": { - "format": "int64", - "title": "Timestamp for when the withdrawal was finalised by the network", - "type": "string" - } - }, - "title": "A withdrawal from the Vega network", - "type": "object" - }, - "vegaWithdrawalStatus": { - "default": "STATUS_UNSPECIFIED", - "description": "- STATUS_UNSPECIFIED: Default value, always invalid\n - STATUS_OPEN: The withdrawal is open and being processed by the network\n - STATUS_CANCELLED: The withdrawal have been cancelled\n - STATUS_FINALIZED: The withdrawal went through and is fully finalised, the funds are removed from the\nVega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network", - "enum": [ - "STATUS_UNSPECIFIED", - "STATUS_OPEN", - "STATUS_CANCELLED", - "STATUS_FINALIZED" - ], - "title": "The status of the withdrawal", - "type": "string" - } - }, - "info": { - "title": "api/trading.proto", - "version": "version not set" - }, - "paths": { - "/assets": { - "get": { - "operationId": "Assets", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AssetsResponse" - } - } - }, - "summary": "Get a list of all assets on Vega", - "tags": [ - "TradingDataService" - ] - } - }, - "/assets/{asset}/infrastructureFeeAccount": { - "get": { - "operationId": "FeeInfrastructureAccounts", - "parameters": [ - { - "description": "Asset identifier, required field\n- Set to an empty string to return all accounts\n- Set to an asset ID to return a single infrastructure fee account for a given asset", - "in": "path", - "name": "asset", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1FeeInfrastructureAccountsResponse" - } - } - }, - "summary": "Get a list of accounts holding infrastructure fees.\nCan be filtered by asset, there will be 1 infrastructure fee account per\nasset in the network.", - "tags": [ - "TradingDataService" - ] - } - }, - "/assets/{id}": { - "get": { - "operationId": "AssetByID", - "parameters": [ - { - "description": "Asset identifier, required field", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AssetByIDResponse" - } - } - }, - "summary": "Get an asset by its identifier", - "tags": [ - "TradingDataService" - ] - } - }, - "/blockchain/height": { - "get": { - "operationId": "LastBlockHeight", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LastBlockHeightResponse" - } - } - }, - "tags": [ - "TradingDataService" - ] - } - }, - "/deposits/{id}": { - "get": { - "operationId": "Deposit", - "parameters": [ - { - "description": "The identifier of the deposit", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DepositResponse" - } - } - }, - "summary": "Get a deposit by its identifier", - "tags": [ - "TradingDataService" - ] - } - }, - "/governance/asset/proposals": { - "get": { - "operationId": "GetNewAssetProposals", - "parameters": [ - { - "default": "STATE_UNSPECIFIED", - "description": "Proposal state value.\n\n - STATE_UNSPECIFIED: Default value, always invalid\n - STATE_FAILED: Proposal enactment has failed - even though proposal has passed, its execution could not be performed\n - STATE_OPEN: Proposal is open for voting\n - STATE_PASSED: Proposal has gained enough support to be executed\n - STATE_REJECTED: Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)\n - STATE_DECLINED: Proposal didn't get enough votes (either failing to gain required participation or majority level)\n - STATE_ENACTED: Proposal enacted\n - STATE_WAITING_FOR_NODE_VOTE: Waiting for node validation of the proposal", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_FAILED", - "STATE_OPEN", - "STATE_PASSED", - "STATE_REJECTED", - "STATE_DECLINED", - "STATE_ENACTED", - "STATE_WAITING_FOR_NODE_VOTE" - ], - "in": "query", - "name": "select_in_state.value", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetNewAssetProposalsResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for proposals aiming to create new assets", - "tags": [ - "TradingDataService" - ] - } - }, - "/governance/market/proposals": { - "get": { - "operationId": "GetNewMarketProposals", - "parameters": [ - { - "default": "STATE_UNSPECIFIED", - "description": "Proposal state value.\n\n - STATE_UNSPECIFIED: Default value, always invalid\n - STATE_FAILED: Proposal enactment has failed - even though proposal has passed, its execution could not be performed\n - STATE_OPEN: Proposal is open for voting\n - STATE_PASSED: Proposal has gained enough support to be executed\n - STATE_REJECTED: Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)\n - STATE_DECLINED: Proposal didn't get enough votes (either failing to gain required participation or majority level)\n - STATE_ENACTED: Proposal enacted\n - STATE_WAITING_FOR_NODE_VOTE: Waiting for node validation of the proposal", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_FAILED", - "STATE_OPEN", - "STATE_PASSED", - "STATE_REJECTED", - "STATE_DECLINED", - "STATE_ENACTED", - "STATE_WAITING_FOR_NODE_VOTE" - ], - "in": "query", - "name": "select_in_state.value", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetNewMarketProposalsResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for proposals that aim creating new markets", - "tags": [ - "TradingDataService" - ] - } - }, - "/governance/prepare/proposal": { - "post": { - "operationId": "PrepareProposalSubmission", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareProposalSubmissionRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareProposalSubmissionResponse" - } - } - }, - "summary": "Prepare a governance proposal", - "tags": [ - "TradingService" - ] - } - }, - "/governance/prepare/vote": { - "post": { - "operationId": "PrepareVoteSubmission", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareVoteSubmissionRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareVoteSubmissionResponse" - } - } - }, - "summary": "Prepare a governance vote", - "tags": [ - "TradingService" - ] - } - }, - "/governance/proposal/reference/{reference}": { - "get": { - "operationId": "GetProposalByReference", - "parameters": [ - { - "description": "Proposal reference. Required field", - "in": "path", - "name": "reference", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetProposalByReferenceResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for a proposal located by reference", - "tags": [ - "TradingDataService" - ] - } - }, - "/governance/proposal/{proposal_id}": { - "get": { - "operationId": "GetProposalByID", - "parameters": [ - { - "description": "Proposal identifier, required field", - "in": "path", - "name": "proposal_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetProposalByIDResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for a proposal located by ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/governance/proposals": { - "get": { - "operationId": "GetProposals", - "parameters": [ - { - "default": "STATE_UNSPECIFIED", - "description": "Proposal state value.\n\n - STATE_UNSPECIFIED: Default value, always invalid\n - STATE_FAILED: Proposal enactment has failed - even though proposal has passed, its execution could not be performed\n - STATE_OPEN: Proposal is open for voting\n - STATE_PASSED: Proposal has gained enough support to be executed\n - STATE_REJECTED: Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)\n - STATE_DECLINED: Proposal didn't get enough votes (either failing to gain required participation or majority level)\n - STATE_ENACTED: Proposal enacted\n - STATE_WAITING_FOR_NODE_VOTE: Waiting for node validation of the proposal", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_FAILED", - "STATE_OPEN", - "STATE_PASSED", - "STATE_REJECTED", - "STATE_DECLINED", - "STATE_ENACTED", - "STATE_WAITING_FOR_NODE_VOTE" - ], - "in": "query", - "name": "select_in_state.value", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetProposalsResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for all proposals", - "tags": [ - "TradingDataService" - ] - } - }, - "/liquidity-provisions/party/{party}/market/{market}": { - "get": { - "operationId": "LiquidityProvisions", - "parameters": [ - { - "description": "The party which submitted the liquidity provision orders", - "in": "path", - "name": "party", - "required": true, - "type": "string" - }, - { - "description": "The target market for the liquidity provision orders", - "in": "path", - "name": "market", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LiquidityProvisionsResponse" - } - } - }, - "summary": "Get the liquidity provision orders", - "tags": [ - "TradingDataService" - ] - } - }, - "/liquidity-provisions/prepare/submit": { - "post": { - "operationId": "PrepareLiquidityProvision", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareLiquidityProvisionRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareLiquidityProvisionResponse" - } - } - }, - "summary": "Prepare a liquidity provision request", - "tags": [ - "TradingService" - ] - } - }, - "/markets": { - "get": { - "operationId": "Markets", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketsResponse" - } - } - }, - "summary": "Get a list of Markets", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets-data": { - "get": { - "operationId": "MarketsData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketsDataResponse" - } - } - }, - "summary": "Get a list of Market Data", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets-data/{market_id}": { - "get": { - "operationId": "MarketDataByID", - "parameters": [ - { - "description": "Market identifier", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketDataByIDResponse" - } - } - }, - "summary": "Get Market Data by Market ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}": { - "get": { - "operationId": "MarketByID", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketByIDResponse" - } - } - }, - "summary": "Get a Market by ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/accounts": { - "get": { - "operationId": "MarketAccounts", - "parameters": [ - { - "description": "Market identifier", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Asset identifier.", - "in": "query", - "name": "asset", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketAccountsResponse" - } - } - }, - "summary": "Get a list of Accounts by Market", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/candles": { - "get": { - "operationId": "Candles", - "parameters": [ - { - "description": "Market identifier, required field.", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Timestamp to retrieve candles since, in nanoseconds since the epoch,\nrequired field - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`.", - "format": "int64", - "in": "query", - "name": "since_timestamp", - "required": false, - "type": "string" - }, - { - "default": "INTERVAL_UNSPECIFIED", - "description": "Time interval for the candles, required field.\n\n - INTERVAL_UNSPECIFIED: Default value, always invalid\n - INTERVAL_I1M: 1 minute.\n - INTERVAL_I5M: 5 minutes.\n - INTERVAL_I15M: 15 minutes.\n - INTERVAL_I1H: 1 hour.\n - INTERVAL_I6H: 6 hours.\n - INTERVAL_I1D: 1 day.", - "enum": [ - "INTERVAL_UNSPECIFIED", - "INTERVAL_I1M", - "INTERVAL_I5M", - "INTERVAL_I15M", - "INTERVAL_I1H", - "INTERVAL_I6H", - "INTERVAL_I1D" - ], - "in": "query", - "name": "interval", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1CandlesResponse" - } - } - }, - "summary": "Get a list of Candles by Market", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/depth": { - "get": { - "operationId": "MarketDepth", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Max depth limits the number of levels returned. Default is 0, which returns all levels.", - "format": "uint64", - "in": "query", - "name": "max_depth", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarketDepthResponse" - } - } - }, - "summary": "Get Market Depth", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/orders": { - "get": { - "operationId": "OrdersByMarket", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Skip the number of records specified, default is 0.", - "format": "uint64", - "in": "query", - "name": "pagination.skip", - "required": false, - "type": "string" - }, - { - "description": "Limit the number of returned records to the value specified, default is 50.", - "format": "uint64", - "in": "query", - "name": "pagination.limit", - "required": false, - "type": "string" - }, - { - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order.", - "format": "boolean", - "in": "query", - "name": "pagination.descending", - "required": false, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrdersByMarketResponse" - } - } - }, - "summary": "Get a list of Orders by Market", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/orders/{order_id}": { - "get": { - "operationId": "OrderByMarketAndID", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Order identifier, required field", - "in": "path", - "name": "order_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrderByMarketAndIDResponse" - } - } - }, - "summary": "Get an Order by Market and Order ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/trades": { - "get": { - "operationId": "TradesByMarket", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - }, - { - "description": "Skip the number of records specified, default is 0.", - "format": "uint64", - "in": "query", - "name": "pagination.skip", - "required": false, - "type": "string" - }, - { - "description": "Limit the number of returned records to the value specified, default is 50.", - "format": "uint64", - "in": "query", - "name": "pagination.limit", - "required": false, - "type": "string" - }, - { - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order.", - "format": "boolean", - "in": "query", - "name": "pagination.descending", - "required": false, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1TradesByMarketResponse" - } - } - }, - "summary": "Get a list of Trades by Market", - "tags": [ - "TradingDataService" - ] - } - }, - "/markets/{market_id}/trades/latest": { - "get": { - "operationId": "LastTrade", - "parameters": [ - { - "description": "Market identifier, required field", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LastTradeResponse" - } - } - }, - "summary": "Get latest Trade", - "tags": [ - "TradingDataService" - ] - } - }, - "/network/parameters": { - "get": { - "operationId": "NetworkParameters", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1NetworkParametersResponse" - } - } - }, - "summary": "Get the network parameters", - "tags": [ - "TradingDataService" - ] - } - }, - "/oracle-specs": { - "get": { - "operationId": "OracleSpecs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OracleSpecsResponse" - } - } - }, - "summary": "Get the oracle specs", - "tags": [ - "TradingDataService" - ] - } - }, - "/oracle-specs/{id}": { - "get": { - "operationId": "OracleSpec", - "parameters": [ - { - "description": "The id to get the oracle spec for", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OracleSpecResponse" - } - } - }, - "summary": "Get an oracle spec by ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/oracle-specs/{id}/oracle-data": { - "get": { - "operationId": "OracleDataBySpec", - "parameters": [ - { - "description": "The id to get the oracle spec for", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OracleDataBySpecResponse" - } - } - }, - "summary": "Get all oracle data", - "tags": [ - "TradingDataService" - ] - } - }, - "/orders/fee/estimate": { - "post": { - "operationId": "EstimateFee", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1EstimateFeeRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1EstimateFeeResponse" - } - } - }, - "summary": "Get an estimate for the fee to be paid for a given order", - "tags": [ - "TradingDataService" - ] - } - }, - "/orders/margins/estimate": { - "post": { - "operationId": "EstimateMargin", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1EstimateMarginRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1EstimateMarginResponse" - } - } - }, - "summary": "Get an estimate for the margin required for a new order", - "tags": [ - "TradingDataService" - ] - } - }, - "/orders/prepare/amend": { - "post": { - "operationId": "PrepareAmendOrder", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareAmendOrderRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareAmendOrderResponse" - } - } - }, - "summary": "Prepare an amend order request", - "tags": [ - "TradingService" - ] - } - }, - "/orders/prepare/cancel": { - "post": { - "operationId": "PrepareCancelOrder", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareCancelOrderRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareCancelOrderResponse" - } - } - }, - "summary": "Prepare a cancel order request", - "tags": [ - "TradingService" - ] - } - }, - "/orders/prepare/submit": { - "post": { - "operationId": "PrepareSubmitOrder", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareSubmitOrderRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareSubmitOrderResponse" - } - } - }, - "summary": "Prepare a submit order request", - "tags": [ - "TradingService" - ] - } - }, - "/orders/{order_id}/trades": { - "get": { - "operationId": "TradesByOrder", - "parameters": [ - { - "description": "Order identifier, required field", - "in": "path", - "name": "order_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1TradesByOrderResponse" - } - } - }, - "summary": "Get a list of Trades by Order", - "tags": [ - "TradingDataService" - ] - } - }, - "/orders/{order_id}/versions": { - "get": { - "operationId": "OrderVersionsByID", - "parameters": [ - { - "description": "Order identifier, required field", - "in": "path", - "name": "order_id", - "required": true, - "type": "string" - }, - { - "description": "Skip the number of records specified, default is 0.", - "format": "uint64", - "in": "query", - "name": "pagination.skip", - "required": false, - "type": "string" - }, - { - "description": "Limit the number of returned records to the value specified, default is 50.", - "format": "uint64", - "in": "query", - "name": "pagination.limit", - "required": false, - "type": "string" - }, - { - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order.", - "format": "boolean", - "in": "query", - "name": "pagination.descending", - "required": false, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrderVersionsByIDResponse" - } - } - }, - "summary": "Get all versions of the order by its orderID", - "tags": [ - "TradingDataService" - ] - } - }, - "/orders/{reference}": { - "get": { - "operationId": "OrderByReference", - "parameters": [ - { - "description": "Unique reference, required field", - "in": "path", - "name": "reference", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrderByReferenceResponse" - } - } - }, - "summary": "Get an Order by Pending Order reference (UUID)", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties": { - "get": { - "operationId": "Parties", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PartiesResponse" - } - } - }, - "summary": "Get a list of Parties", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/prepare/withdraw": { - "post": { - "operationId": "PrepareWithdraw", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PrepareWithdrawRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PrepareWithdrawResponse" - } - } - }, - "summary": "Request a withdrawal", - "tags": [ - "TradingService" - ] - } - }, - "/parties/{party_id}": { - "get": { - "operationId": "PartyByID", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PartyByIDResponse" - } - } - }, - "summary": "Get a Party by ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/accounts": { - "get": { - "operationId": "PartyAccounts", - "parameters": [ - { - "description": "Party identifier", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "description": "Market identifier.", - "in": "query", - "name": "market_id", - "required": false, - "type": "string" - }, - { - "default": "ACCOUNT_TYPE_UNSPECIFIED", - "description": "Account type, required field.\n\n - ACCOUNT_TYPE_UNSPECIFIED: Default value\n - ACCOUNT_TYPE_INSURANCE: Insurance pool accounts contain insurance pool funds for a market\n - ACCOUNT_TYPE_SETTLEMENT: Settlement accounts exist only during settlement or mark-to-market\n - ACCOUNT_TYPE_MARGIN: Margin accounts contain margin funds for a party and each party will\nhave multiple margin accounts, one for each market they have traded in\n\nMargin account funds will alter as margin requirements on positions change\n - ACCOUNT_TYPE_GENERAL: General accounts contains general funds for a party. A party will\nhave multiple general accounts, one for each asset they want\nto trade with\n\nGeneral accounts are where funds are initially deposited or withdrawn from,\nit is also the account where funds are taken to fulfil fees and initial margin requirements\n - ACCOUNT_TYPE_FEES_INFRASTRUCTURE: Infrastructure accounts contain fees earned by providing infrastructure on Vega\n - ACCOUNT_TYPE_FEES_LIQUIDITY: Liquidity accounts contain fees earned by providing liquidity on Vega markets\n - ACCOUNT_TYPE_FEES_MAKER: This account is created to hold fees earned by placing orders that sit on the book\nand are then matched with an incoming order to create a trade - These fees reward parties\nwho provide the best priced liquidity that actually allows trading to take place\n - ACCOUNT_TYPE_LOCK_WITHDRAW: This account is created to lock funds to be withdrawn by parties\n - ACCOUNT_TYPE_BOND: This account is created to maintain liquidity providers funds commitments\n - ACCOUNT_TYPE_EXTERNAL: External account represents an external source (deposit/withdrawal)\n - ACCOUNT_TYPE_GLOBAL_INSURANCE: Global insurance account for the asset\n - ACCOUNT_TYPE_GLOBAL_REWARD: Global reward account for the asset", - "enum": [ - "ACCOUNT_TYPE_UNSPECIFIED", - "ACCOUNT_TYPE_INSURANCE", - "ACCOUNT_TYPE_SETTLEMENT", - "ACCOUNT_TYPE_MARGIN", - "ACCOUNT_TYPE_GENERAL", - "ACCOUNT_TYPE_FEES_INFRASTRUCTURE", - "ACCOUNT_TYPE_FEES_LIQUIDITY", - "ACCOUNT_TYPE_FEES_MAKER", - "ACCOUNT_TYPE_LOCK_WITHDRAW", - "ACCOUNT_TYPE_BOND", - "ACCOUNT_TYPE_EXTERNAL", - "ACCOUNT_TYPE_GLOBAL_INSURANCE", - "ACCOUNT_TYPE_GLOBAL_REWARD" - ], - "in": "query", - "name": "type", - "required": false, - "type": "string" - }, - { - "description": "Asset identifier.", - "in": "query", - "name": "asset", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PartyAccountsResponse" - } - } - }, - "summary": "Get a list of Accounts by Party", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/deposits": { - "get": { - "operationId": "Deposits", - "parameters": [ - { - "description": "The party to get the deposits for", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DepositsResponse" - } - } - }, - "summary": "Get deposits for a party", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/markets/{market_id}/margin": { - "get": { - "operationId": "MarginLevels", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "description": "Market identifier", - "in": "path", - "name": "market_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MarginLevelsResponse" - } - } - }, - "summary": "Get Margin Levels by Party ID", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/orders": { - "get": { - "operationId": "OrdersByParty", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "description": "Skip the number of records specified, default is 0.", - "format": "uint64", - "in": "query", - "name": "pagination.skip", - "required": false, - "type": "string" - }, - { - "description": "Limit the number of returned records to the value specified, default is 50.", - "format": "uint64", - "in": "query", - "name": "pagination.limit", - "required": false, - "type": "string" - }, - { - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order.", - "format": "boolean", - "in": "query", - "name": "pagination.descending", - "required": false, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrdersByPartyResponse" - } - } - }, - "summary": "Get a list of Orders by Party", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/positions": { - "get": { - "operationId": "PositionsByParty", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "description": "Market identifier.", - "in": "query", - "name": "market_id", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PositionsByPartyResponse" - } - } - }, - "summary": "Get a list of Positions by Party", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/proposals": { - "get": { - "operationId": "GetProposalsByParty", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "default": "STATE_UNSPECIFIED", - "description": "Proposal state value.\n\n - STATE_UNSPECIFIED: Default value, always invalid\n - STATE_FAILED: Proposal enactment has failed - even though proposal has passed, its execution could not be performed\n - STATE_OPEN: Proposal is open for voting\n - STATE_PASSED: Proposal has gained enough support to be executed\n - STATE_REJECTED: Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)\n - STATE_DECLINED: Proposal didn't get enough votes (either failing to gain required participation or majority level)\n - STATE_ENACTED: Proposal enacted\n - STATE_WAITING_FOR_NODE_VOTE: Waiting for node validation of the proposal", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_FAILED", - "STATE_OPEN", - "STATE_PASSED", - "STATE_REJECTED", - "STATE_DECLINED", - "STATE_ENACTED", - "STATE_WAITING_FOR_NODE_VOTE" - ], - "in": "query", - "name": "select_in_state.value", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetProposalsByPartyResponse" - } - } - }, - "summary": "Get governance data (proposals and votes) for proposals by party authoring them", - "tags": [ - "TradingDataService" - ] - } - }, - "/parties/{party_id}/trades": { - "get": { - "operationId": "TradesByParty", - "parameters": [ - { - "description": "Party identifier. Required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - }, - { - "description": "Market identifier.", - "in": "query", - "name": "market_id", - "required": false, - "type": "string" - }, - { - "description": "Skip the number of records specified, default is 0.", - "format": "uint64", - "in": "query", - "name": "pagination.skip", - "required": false, - "type": "string" - }, - { - "description": "Limit the number of returned records to the value specified, default is 50.", - "format": "uint64", - "in": "query", - "name": "pagination.limit", - "required": false, - "type": "string" - }, - { - "description": "Descending reverses the order of the records returned,\ndefault is true, if false the results will be returned in ascending order.", - "format": "boolean", - "in": "query", - "name": "pagination.descending", - "required": false, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1TradesByPartyResponse" - } - } + "status": { + "$ref": "#/definitions/vegaWithdrawalStatus", + "title": "The status of the withdrawal" }, - "summary": "Get a list of Trades by Party", - "tags": [ - "TradingDataService" - ] - } + "tx_hash": { + "title": "The hash of the foreign chain for this transaction", + "type": "string" + }, + "withdrawn_timestamp": { + "format": "int64", + "title": "Timestamp for when the withdrawal was finalised by the network", + "type": "string" + } + }, + "title": "A withdrawal from the Vega network", + "type": "object" }, - "/parties/{party_id}/votes": { + "vegaWithdrawalStatus": { + "default": "STATUS_UNSPECIFIED", + "description": "- STATUS_UNSPECIFIED: Default value, always invalid\n - STATUS_OPEN: The withdrawal is open and being processed by the network\n - STATUS_CANCELLED: The withdrawal have been cancelled\n - STATUS_FINALIZED: The withdrawal went through and is fully finalised, the funds are removed from the\nVega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network", + "enum": [ + "STATUS_UNSPECIFIED", + "STATUS_OPEN", + "STATUS_CANCELLED", + "STATUS_FINALIZED" + ], + "title": "The status of the withdrawal", + "type": "string" + } + }, + "info": { + "title": "api/trading.proto", + "version": "version not set" + }, + "paths": { + "/blockchain/height": { "get": { - "operationId": "GetVotesByParty", - "parameters": [ - { - "description": "Party identifier, required field", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - } - ], + "operationId": "LastBlockHeight", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1GetVotesByPartyResponse" + "$ref": "#/definitions/v1LastBlockHeightResponse" } } }, - "summary": "Get votes by party casting them", + "summary": "Get the height of the last tendermint block", "tags": [ - "TradingDataService" + "TradingService" ] } }, @@ -6198,7 +3332,7 @@ }, "summary": "Get Statistics on Vega", "tags": [ - "TradingDataService" + "TradingService" ] } }, @@ -6215,20 +3349,20 @@ }, "summary": "Get Time", "tags": [ - "TradingDataService" + "TradingService" ] } }, "/transaction": { "post": { - "operationId": "SubmitTransaction", + "operationId": "SubmitTransactionV2", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1SubmitTransactionRequest" + "$ref": "#/definitions/v1SubmitTransactionV2Request" } } ], @@ -6236,93 +3370,15 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1SubmitTransactionResponse" + "$ref": "#/definitions/v1SubmitTransactionV2Response" } } }, - "summary": "Submit a signed transaction", + "summary": "Submit a signed transaction (v2)", "tags": [ "TradingService" ] } - }, - "/withdrawals/party/{party_id}": { - "get": { - "operationId": "Withdrawals", - "parameters": [ - { - "description": "The party to get the withdrawals for", - "in": "path", - "name": "party_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1WithdrawalsResponse" - } - } - }, - "summary": "Get withdrawals for a party", - "tags": [ - "TradingDataService" - ] - } - }, - "/withdrawals/{id}": { - "get": { - "operationId": "Withdrawal", - "parameters": [ - { - "description": "The identifier of the withdrawal", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1WithdrawalResponse" - } - } - }, - "summary": "Get a withdrawal by its identifier", - "tags": [ - "TradingDataService" - ] - } - }, - "/withdrawals/{withdrawal_id}/approval/erc20": { - "get": { - "operationId": "ERC20WithdrawalApproval", - "parameters": [ - { - "description": "The identifier of the withdrawal", - "in": "path", - "name": "withdrawal_id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ERC20WithdrawalApprovalResponse" - } - } - }, - "summary": "Get the bundle approval for an ERC20 withdrawal,\nthese data are being used to bundle the call to the smart contract on the ethereum bridge", - "tags": [ - "TradingDataService" - ] - } } }, "produces": [ @@ -6340,78 +3396,6 @@ ], "swagger": "2.0", "x-stream-definitions": { - "v1AccountsSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1AccountsSubscribeResponse" - } - }, - "title": "Stream result of v1AccountsSubscribeResponse", - "type": "object" - }, - "v1CandlesSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1CandlesSubscribeResponse" - } - }, - "title": "Stream result of v1CandlesSubscribeResponse", - "type": "object" - }, - "v1MarginLevelsSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1MarginLevelsSubscribeResponse" - } - }, - "title": "Stream result of v1MarginLevelsSubscribeResponse", - "type": "object" - }, - "v1MarketDepthSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1MarketDepthSubscribeResponse" - } - }, - "title": "Stream result of v1MarketDepthSubscribeResponse", - "type": "object" - }, - "v1MarketDepthUpdatesSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1MarketDepthUpdatesSubscribeResponse" - } - }, - "title": "Stream result of v1MarketDepthUpdatesSubscribeResponse", - "type": "object" - }, - "v1MarketsDataSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1MarketsDataSubscribeResponse" - } - }, - "title": "Stream result of v1MarketsDataSubscribeResponse", - "type": "object" - }, "v1ObserveEventBusResponse": { "properties": { "error": { @@ -6423,102 +3407,6 @@ }, "title": "Stream result of v1ObserveEventBusResponse", "type": "object" - }, - "v1ObserveGovernanceResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1ObserveGovernanceResponse" - } - }, - "title": "Stream result of v1ObserveGovernanceResponse", - "type": "object" - }, - "v1ObservePartyProposalsResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1ObservePartyProposalsResponse" - } - }, - "title": "Stream result of v1ObservePartyProposalsResponse", - "type": "object" - }, - "v1ObservePartyVotesResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1ObservePartyVotesResponse" - } - }, - "title": "Stream result of v1ObservePartyVotesResponse", - "type": "object" - }, - "v1ObserveProposalVotesResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1ObserveProposalVotesResponse" - } - }, - "title": "Stream result of v1ObserveProposalVotesResponse", - "type": "object" - }, - "v1OrdersSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1OrdersSubscribeResponse" - } - }, - "title": "Stream result of v1OrdersSubscribeResponse", - "type": "object" - }, - "v1PositionsSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1PositionsSubscribeResponse" - } - }, - "title": "Stream result of v1PositionsSubscribeResponse", - "type": "object" - }, - "v1TradesSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1TradesSubscribeResponse" - } - }, - "title": "Stream result of v1TradesSubscribeResponse", - "type": "object" - }, - "v1TransferResponsesSubscribeResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/v1TransferResponsesSubscribeResponse" - } - }, - "title": "Stream result of v1TransferResponsesSubscribeResponse", - "type": "object" } } } diff --git a/rest/grpc-rest-bindings.yml b/rest/grpc-rest-bindings.yml index db53fd2a..ba7387ea 100644 --- a/rest/grpc-rest-bindings.yml +++ b/rest/grpc-rest-bindings.yml @@ -7,162 +7,39 @@ title: Vega Trading API apis: - name: TradingService - - name: TradingDataService + - name: CoreApiService http: rules: - # Markets - - selector: api.v1.TradingDataService.Markets - get: '/markets' - - selector: api.v1.TradingDataService.MarketByID - get: '/markets/{market_id}' - - selector: api.v1.TradingDataService.Candles - get: '/markets/{market_id}/candles' - - selector: api.v1.TradingDataService.MarketDepth - get: '/markets/{market_id}/depth' - - selector: api.v1.TradingDataService.OrdersByMarket - get: '/markets/{market_id}/orders' - - selector: api.v1.TradingDataService.OrderByMarketAndID - get: '/markets/{market_id}/orders/{order_id}' - - selector: api.v1.TradingDataService.TradesByMarket - get: '/markets/{market_id}/trades' - - selector: api.v1.TradingDataService.LastTrade - get: '/markets/{market_id}/trades/latest' - - selector: api.v1.TradingDataService.MarketAccounts - get: '/markets/{market_id}/accounts' - - # assets - - selector: api.v1.TradingDataService.Assets - get: '/assets' - - selector: api.v1.TradingDataService.AssetByID - get: '/assets/{id}' - - selector: api.v1.TradingDataService.FeeInfrastructureAccounts - get: '/assets/{asset}/infrastructureFeeAccount' - - - # MarketData - - selector: api.v1.TradingDataService.MarketsData - get: '/markets-data' - - selector: api.v1.TradingDataService.MarketDataByID - get: '/markets-data/{market_id}' - - - # transaction bundles - - selector: api.v1.TradingService.SubmitTransaction + # transaction + - selector: api.v1.TradingService.SubmitTransactionV2 post: '/transaction' body: "*" - # Orders - - selector: api.v1.TradingService.PrepareSubmitOrder - post: '/orders/prepare/submit' - body: "*" - - selector: api.v1.TradingService.PrepareCancelOrder - post: '/orders/prepare/cancel' - body: "*" - - selector: api.v1.TradingService.PrepareAmendOrder - post: '/orders/prepare/amend' - body: "*" - - selector: api.v1.TradingDataService.OrderByReference - get: '/orders/{reference}' - - selector: api.v1.TradingDataService.OrderVersionsByID - get: '/orders/{order_id}/versions' - - selector: api.v1.TradingDataService.TradesByOrder - get: '/orders/{order_id}/trades' - - # Fee - - selector: api.v1.TradingDataService.EstimateFee - post: '/orders/fee/estimate' - body: "*" - - # Margins - - selector: api.v1.TradingDataService.EstimateMargin - post: '/orders/margins/estimate' - body: "*" - - # Network parameters - - selector: api.v1.TradingDataService.NetworkParameters - get: '/network/parameters' - - # Parties - - selector: api.v1.TradingDataService.Parties - get: '/parties' - - selector: api.v1.TradingDataService.PartyByID - get: '/parties/{party_id}' - - selector: api.v1.TradingDataService.OrdersByParty - get: '/parties/{party_id}/orders' - - selector: api.v1.TradingDataService.PositionsByParty - get: '/parties/{party_id}/positions' - - selector: api.v1.TradingDataService.TradesByParty - get: '/parties/{party_id}/trades' - - selector: api.v1.TradingDataService.PartyAccounts - get: '/parties/{party_id}/accounts' - - selector: api.v1.TradingDataService.MarginLevels - get: '/parties/{party_id}/markets/{market_id}/margin' - - - selector: api.v1.TradingService.PrepareWithdraw - post: '/parties/prepare/withdraw' - body: '*' - - # governance stuff by party - - selector: api.v1.TradingDataService.GetProposalsByParty - get: '/parties/{party_id}/proposals' - - selector: api.v1.TradingDataService.GetVotesByParty - get: '/parties/{party_id}/votes' - - # withdrawals - - selector: api.v1.TradingDataService.Withdrawal - get: '/withdrawals/{id}' - - selector: api.v1.TradingDataService.Withdrawals - get: '/withdrawals/party/{party_id}' - - selector: api.v1.TradingDataService.ERC20WithdrawalApproval - get: '/withdrawals/{withdrawal_id}/approval/erc20' - - # deposits - - selector: api.v1.TradingDataService.Deposit - get: '/deposits/{id}' - - selector: api.v1.TradingDataService.Deposits - get: '/parties/{party_id}/deposits' - - # Governance - - selector: api.v1.TradingService.PrepareProposalSubmission - post: '/governance/prepare/proposal' - body: "*" - - selector: api.v1.TradingService.PrepareVoteSubmission - post: '/governance/prepare/vote' - body: "*" - - # Governance queries - - selector: api.v1.TradingDataService.GetProposalByID - get: '/governance/proposal/{proposal_id}' - - selector: api.v1.TradingDataService.GetProposalByReference - get: '/governance/proposal/reference/{reference}' - - selector: api.v1.TradingDataService.GetNewMarketProposals - get: '/governance/market/proposals' - - selector: api.v1.TradingDataService.GetNewAssetProposals - get: '/governance/asset/proposals' - - selector: api.v1.TradingDataService.GetProposals - get: '/governance/proposals' - - - # LiquidityProvision - - selector: api.v1.TradingService.PrepareLiquidityProvision - post: '/liquidity-provisions/prepare/submit' - body: "*" - - selector: api.v1.TradingDataService.LiquidityProvisions - get: '/liquidity-provisions/party/{party}/market/{market}' - # Miscellaneous - - selector: api.v1.TradingDataService.Statistics + - selector: api.v1.TradingService.Statistics get: '/statistics' - - selector: api.v1.TradingDataService.LastBlockHeight + - selector: api.v1.TradingService.LastBlockHeight get: '/blockchain/height' - - selector: api.v1.TradingDataService.GetVegaTime + - selector: api.v1.TradingService.GetVegaTime get: '/time' - # oracles - - selector: api.v1.TradingDataService.OracleSpec - get: '/oracle-specs/{id}' - - selector: api.v1.TradingDataService.OracleDataBySpec - get: '/oracle-specs/{id}/oracle-data' - - selector: api.v1.TradingDataService.OracleSpecs - get: '/oracle-specs' + # Core APIs + - selector: vega.coreapi.v1.CoreApiService.ListNetworkParameters + get: '/network/parameters' + - selector: vega.coreapi.v1.CoreApiService.ListAccounts + get: '/accounts' + - selector: vega.coreapi.v1.CoreApiService.ListAssets + get: '/assets' + - selector: vega.coreapi.v1.CoreApiService.ListParties + get: '/parties' + - selector: vega.coreapi.v1.CoreApiService.ListValidators + get: '/validators' + - selector: vega.coreapi.v1.CoreApiService.ListProposals + get: '/proposals' + - selector: vega.coreapi.v1.CoreApiService.ListVotes + get: '/votes' + - selector: vega.coreapi.v1.CoreApiService.ListMarkets + get: '/markets' + - selector: vega.coreapi.v1.CoreApiService.ListMarketsData + get: '/markets/data' From 39832844507f794a994de12294805f132a48ce43 Mon Sep 17 00:00:00 2001 From: Ashley C Date: Tue, 31 Aug 2021 19:23:03 +0100 Subject: [PATCH 2/8] Set version 0.42.0-pre4 --- README.md | 2 +- grpc/clients/java/pom.xml | 2 +- grpc/clients/js/package-lock.json | 4 ++-- grpc/clients/js/package.json | 2 +- grpc/clients/python/setup.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 66f3e09b..7e81cf99 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Vega API -Version: 0.41.0 +Version: 0.42.0-pre4 This repository contains everything you need for interacting with the Vega APIs. diff --git a/grpc/clients/java/pom.xml b/grpc/clients/java/pom.xml index 31e26cf0..5978ba70 100644 --- a/grpc/clients/java/pom.xml +++ b/grpc/clients/java/pom.xml @@ -6,7 +6,7 @@ io.vegaprotocol vega - 0.41.0 + 0.42.0-pre4 jar src diff --git a/grpc/clients/js/package-lock.json b/grpc/clients/js/package-lock.json index 7467897d..f177741a 100644 --- a/grpc/clients/js/package-lock.json +++ b/grpc/clients/js/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vegaprotocol/vega-grpc", - "version": "0.41.0", + "version": "0.42.0-pre4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vegaprotocol/vega-grpc", - "version": "0.41.0", + "version": "0.42.0-pre4", "license": "MIT", "dependencies": { "@grpc/grpc-js": "^1.3.7", diff --git a/grpc/clients/js/package.json b/grpc/clients/js/package.json index e43690f2..f4db5892 100644 --- a/grpc/clients/js/package.json +++ b/grpc/clients/js/package.json @@ -1,6 +1,6 @@ { "name": "@vegaprotocol/vega-grpc", - "version": "0.41.0", + "version": "0.42.0-pre4", "description": "A gRPC client for Vega Protocol", "main": "index.js", "types": "./index.d.ts", diff --git a/grpc/clients/python/setup.py b/grpc/clients/python/setup.py index c9bc3a2f..402eddc2 100644 --- a/grpc/clients/python/setup.py +++ b/grpc/clients/python/setup.py @@ -3,7 +3,7 @@ with open("README.md", "r") as fh: long_description = fh.read() -VERSION = "0.41.0" +VERSION = "0.42.0-pre4" setuptools.setup( name="Vega API client", From 9dfcef487e87477e6d817179e39176ac68eac51f Mon Sep 17 00:00:00 2001 From: Ashley C Date: Tue, 31 Aug 2021 19:50:57 +0100 Subject: [PATCH 3/8] Update tests and scripts --- grpc/clients/js/test/outline.test.js | 10 --- grpc/clients/js/test/vega/order.test.js | 68 +------------------ grpc/clients/python/Makefile | 6 +- grpc/clients/python/generate_init.py | 8 ++- grpc/clients/python/post-generate.sh | 12 +++- grpc/clients/python/tests/conftest.py | 10 +-- .../python/tests/test_coreapi_accounts.py | 13 ++++ .../python/tests/test_coreapi_assets.py | 13 ++++ .../python/tests/test_grpc_error_detail.py | 10 ++- .../python/tests/test_trading_submitorder.py | 8 +-- .../python/tests/test_tradingdata_markets.py | 19 ------ .../tests/test_tradingdata_marketsdata.py | 6 -- grpc/clients/python/vegaapiclient/__init__.py | 8 ++- .../generated/coreapi/__init__.py | 0 .../generated/coreapi/v1/__init__.py | 7 ++ .../generated/coreapi/v1/coreapi_pb2.py | 10 +-- .../generated/coreapi/v1/coreapi_pb2_grpc.py | 2 +- .../generated/snapshot/__init__.py | 0 .../generated/snapshot/v1/__init__.py | 7 ++ .../generated/snapshot/v1/snapshot_pb2.py | 6 +- ...dingdataclient.py => vegacoreapiclient.py} | 8 +-- 21 files changed, 98 insertions(+), 133 deletions(-) delete mode 100644 grpc/clients/js/test/outline.test.js create mode 100644 grpc/clients/python/tests/test_coreapi_accounts.py create mode 100644 grpc/clients/python/tests/test_coreapi_assets.py delete mode 100644 grpc/clients/python/tests/test_tradingdata_markets.py delete mode 100644 grpc/clients/python/tests/test_tradingdata_marketsdata.py create mode 100644 grpc/clients/python/vegaapiclient/generated/coreapi/__init__.py create mode 100644 grpc/clients/python/vegaapiclient/generated/coreapi/v1/__init__.py create mode 100644 grpc/clients/python/vegaapiclient/generated/snapshot/__init__.py create mode 100644 grpc/clients/python/vegaapiclient/generated/snapshot/v1/__init__.py rename grpc/clients/python/vegaapiclient/{vegatradingdataclient.py => vegacoreapiclient.py} (52%) diff --git a/grpc/clients/js/test/outline.test.js b/grpc/clients/js/test/outline.test.js deleted file mode 100644 index 6e490f2b..00000000 --- a/grpc/clients/js/test/outline.test.js +++ /dev/null @@ -1,10 +0,0 @@ -var test = require('tape'); -// var grpc = require('@grpc/grpc-js'); -// var protoLoader = require('@grpc/proto-loader'); - -var { api } = require('../index') - -test('Voting: PrepareVoteSubmissionRequest exists', t => { - t.equal(typeof api.trading.PrepareVoteSubmissionRequest, 'function'); - t.end() -}); diff --git a/grpc/clients/js/test/vega/order.test.js b/grpc/clients/js/test/vega/order.test.js index d3dd0065..c5a4ff22 100644 --- a/grpc/clients/js/test/vega/order.test.js +++ b/grpc/clients/js/test/vega/order.test.js @@ -3,31 +3,8 @@ var { skipIfLocalOnly } = require('../lib/env') // var grpc = require('@grpc/grpc-js'); // var protoLoader = require('@grpc/proto-loader'); -var xhr = require("xmlhttprequest"); - -var { commands, vega, api } = require('../../index') - -function wallet_server_login(walletServerURL, walletName, walletPassphrase) { - var request = new xhr.XMLHttpRequest(); - var token; - request.onload = function () { - if (request.status !== 200) { - throw "Failed to log in to wallet server: HTTP " + request.status + " " + request.responseText; - } - var j = JSON.parse(request.responseText); - if (j === undefined) { - throw "Failed to get parse response JSON: " + request.responseText; - } - token = j.token; - if (token === undefined) { - throw "Failed to get token from response body: " + request.responseText; - } - } - request.open("POST", walletServerURL + "/api/v1/auth/token", true); - request.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); - request.send(JSON.stringify({wallet: walletName, passphrase: walletPassphrase}, null, 2)); - return token; -} + +var { commands, vega } = require('../../index') test('Basic test: Can create an order', t => { const order = new commands.v1.commands.OrderSubmission() @@ -119,44 +96,3 @@ test('Order can be a pegged order when an order peg is provided', t => { }) t.end() }) - -test('Submit Order', t => { - // Log in to wallet server - const walletName = "demo"; - const walletPass = "123"; - const walletServer = process.env.WALLETSERVER; - let token - - if (walletServer === undefined) { - t.fail("Missing WALLETSERVER"); - return t.end() - } - - try { - token = wallet_server_login(walletServer, walletName, walletPass); - } catch (e) { - t.fail("Failed to log in to waller server: " + e); - return t.end() - } - - const sub = new commands.v1.commands.OrderSubmission() - sub.setExpiresAt(2000000000000000000) - sub.setMarketId("AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP") - sub.setPrice(99912345) - sub.setSide(vega.Side.SIDE_BUY) // 1 - sub.setSize(555) - sub.setTimeInForce(vega.Order.TimeInForce.TIME_IN_FORCE_FOK) // 4 - sub.setType(vega.Order.Type.TYPE_MARKET) // 2 - - const req1 = new api.trading.PrepareSubmitOrderRequest(); - req1.setSubmission(sub) - - const req2 = api.trading.PrepareSubmitOrderRequest.deserializeBinary(req1.serializeBinary()) - - // For some reason, nested wrappers can be null or {}. - req2.wrappers_["1"].wrappers_ = {}; - - t.deepEqual(req2, req1) - t.end() - -}, skipIfLocalOnly); diff --git a/grpc/clients/python/Makefile b/grpc/clients/python/Makefile index 393d022d..b13db129 100644 --- a/grpc/clients/python/Makefile +++ b/grpc/clients/python/Makefile @@ -17,7 +17,8 @@ check_dist: .PHONY: coverage coverage: - @if test -z "$$GRPC_NODE" ; then echo "Please set GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi + @if test -z "$$CORE_GRPC_NODE" ; then echo "Please set CORE_GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi + @if test -z "$$DATA_GRPC_NODE" ; then echo "Please set DATA_GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi @if test -z "$$WALLETSERVER" ; then echo "Please set WALLETSERVER (e.g. https://wallet.xx.vega.zzz)." ; exit 1 ; fi @rm -rf .coverage.d @pipenv --bare install # 1>/dev/null 2>&1 @@ -54,7 +55,8 @@ pylint: .PHONY: test test: - @if test -z "$$GRPC_NODE" ; then echo "Please set GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi + @if test -z "$$CORE_GRPC_NODE" ; then echo "Please set CORE_GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi + @if test -z "$$DATA_GRPC_NODE" ; then echo "Please set DATA_GRPC_NODE (e.g. node.xx.vega.zzz:1111)." ; exit 1 ; fi @if test -z "$$WALLETSERVER" ; then echo "Please set WALLETSERVER (e.g. https://wallet.xx.vega.zzz)." ; exit 1 ; fi @pipenv --bare install # 1>/dev/null 2>&1 @pipenv run pip install -e . diff --git a/grpc/clients/python/generate_init.py b/grpc/clients/python/generate_init.py index 5e83963d..2c2f1f74 100644 --- a/grpc/clients/python/generate_init.py +++ b/grpc/clients/python/generate_init.py @@ -9,15 +9,17 @@ \"\"\" from .vegatradingclient import VegaTradingClient -from .vegatradingdataclient import VegaTradingDataClient +from .vegacoreapiclient import VegaCoreAPIClient from .faucetclient import FaucetClient from .helpers import grpc_error_detail from .walletclient import WalletClient from .generated import ( api, commands, + coreapi, events, oracles, + snapshot, tm, wallet, {%- for i in imports %} @@ -27,14 +29,16 @@ __all__ = [ "VegaTradingClient", - "VegaTradingDataClient", + "VegaCoreAPIClient", "FaucetClient", "WalletClient", "grpc_error_detail", "api", "commands", + "coreapi", "events", "oracles", + "snapshot", "tm", "wallet", {%- for a in all_list %} diff --git a/grpc/clients/python/post-generate.sh b/grpc/clients/python/post-generate.sh index b1a15e59..39e90c46 100755 --- a/grpc/clients/python/post-generate.sh +++ b/grpc/clients/python/post-generate.sh @@ -20,9 +20,11 @@ EOF for x in \ api \ commands/v1 \ + coreapi/v1 \ events/v1 \ github/com/mwitkow/go_proto_validators \ oracles/v1 \ + snapshot/v1 \ tm \ wallet/v1 do @@ -63,11 +65,13 @@ done for x in \ commands \ + coreapi \ events \ github \ github/com \ github/com/mwitkow \ oracles \ + snapshot \ wallet do touch "$python_generated_dir/$x/__init__.py" @@ -77,28 +81,34 @@ touch "$python_generated_dir/__init__.py" find "$python_generated_dir" -maxdepth 1 -name '*.py' -print0 | xargs -0r sed --in-place -r \ -e 's#^from github.com.mwitkow.go_proto_validators #from .github.com.mwitkow.go_proto_validators #' \ -e 's#^from commands.v1 import#from .commands.v1 import#' \ + -e 's#^from coreapi.v1 import#from .coreapi.v1 import#' \ -e 's#^from events.v1 import#from .events.v1 import#' \ -e 's#^from oracles.v1 import#from .oracles.v1 import#' \ + -e 's#^from snapshot.v1 import#from .snapshot.v1 import#' \ -e 's#^from wallet.v1 import#from .wallet.v1 import#' \ -e 's#^import ([a-z_]*)_pb2 as #from . import \1_pb2 as #' find "$python_generated_dir/api" -maxdepth 1 -name '*.py' -print0 | xargs -0r sed --in-place -r \ -e 's#^from github.com.mwitkow.go_proto_validators #from ..github.com.mwitkow.go_proto_validators #' \ -e 's#^from commands.v1 import#from ..commands.v1 import#' \ + -e 's#^from coreapi.v1 import#from ..coreapi.v1 import#' \ -e 's#^from events.v1 import#from ..events.v1 import#' \ -e 's#^from oracles.v1 import#from ..oracles.v1 import#' \ + -e 's#^from snapshot.v1 import#from ..snapshot.v1 import#' \ -e 's#^from wallet.v1 import#from ..wallet.v1 import#' \ -e 's#^import ([a-z_]*)_pb2 as #from .. import \1_pb2 as #' \ -e 's#^from api import #from . import #' find \ "$python_generated_dir/commands/v1" \ + "$python_generated_dir/coreapi/v1" \ "$python_generated_dir/events/v1" \ "$python_generated_dir/oracles/v1" \ + "$python_generated_dir/snapshot/v1" \ "$python_generated_dir/wallet/v1" \ -maxdepth 1 -name '*.py' -print0 | xargs -0r sed --in-place -r \ -e 's#^import ([a-z_]*_pb2) as #from ... import \1 as #' \ - -e 's#^from (commands.v1|events.v2|oracles.v1|wallet.v1|github.com.mwitkow.go_proto_validators) import #from ...\1 import #' + -e 's#^from (commands.v1|coreapi.v1|events.v1|oracles.v1|snapshot.v1|wallet.v1|github.com.mwitkow.go_proto_validators) import #from ...\1 import #' pushd grpc/clients/python 1>/dev/null || exit 1 python3 generate_init.py >"vegaapiclient/__init__.py" diff --git a/grpc/clients/python/tests/conftest.py b/grpc/clients/python/tests/conftest.py index 95a5c155..fe334d3e 100644 --- a/grpc/clients/python/tests/conftest.py +++ b/grpc/clients/python/tests/conftest.py @@ -12,19 +12,19 @@ def trading(): """ Provide a `VegaTradingClient`, connected to $GRPC_NODE. """ - grpc_node = os.getenv("GRPC_NODE") + grpc_node = os.getenv("CORE_GRPC_NODE") assert grpc_node is not None and grpc_node != "" return vac.VegaTradingClient(grpc_node) @pytest.fixture(scope="module") -def tradingdata(): +def coreapi(): """ - Provide a `VegaTradingDataClient`, connected to $GRPC_NODE. + Provide a `VegaCoreAPIClient`, connected to $GRPC_NODE. """ - grpc_node = os.getenv("GRPC_NODE") + grpc_node = os.getenv("DATA_GRPC_NODE") assert grpc_node is not None and grpc_node != "" - return vac.VegaTradingDataClient(grpc_node) + return vac.VegaCoreAPIClient(grpc_node) @pytest.fixture(scope="module") diff --git a/grpc/clients/python/tests/test_coreapi_accounts.py b/grpc/clients/python/tests/test_coreapi_accounts.py new file mode 100644 index 00000000..34c4a608 --- /dev/null +++ b/grpc/clients/python/tests/test_coreapi_accounts.py @@ -0,0 +1,13 @@ +import vegaapiclient as vac + + +def test_ListAccounts(coreapi): + req = vac.coreapi.v1.coreapi.ListAccountsRequest() + accounts = coreapi.ListAccounts(req).accounts + assert len(accounts) > 0 + party_id = accounts[0].id + + req = vac.coreapi.v1.coreapi.ListAccountsRequest(party=party_id) + accounts = coreapi.ListAccounts(req).accounts + assert len(accounts) == 1 + assert accounts[0].id == party_id diff --git a/grpc/clients/python/tests/test_coreapi_assets.py b/grpc/clients/python/tests/test_coreapi_assets.py new file mode 100644 index 00000000..5bcc6c0a --- /dev/null +++ b/grpc/clients/python/tests/test_coreapi_assets.py @@ -0,0 +1,13 @@ +import vegaapiclient as vac + + +def test_ListAssets(coreapi): + req = vac.coreapi.v1.coreapi.ListAssetsRequest() + assets = coreapi.ListAssets(req).assets + assert len(assets) > 0 + asset_id = assets[0].id + + req = vac.coreapi.v1.coreapi.ListAssetsRequest(asset=asset_id) + assets = coreapi.ListAssets(req).assets + assert len(assets) == 1 + assert assets[0].id == asset_id diff --git a/grpc/clients/python/tests/test_grpc_error_detail.py b/grpc/clients/python/tests/test_grpc_error_detail.py index cd3ac8b1..313ea1c3 100644 --- a/grpc/clients/python/tests/test_grpc_error_detail.py +++ b/grpc/clients/python/tests/test_grpc_error_detail.py @@ -5,13 +5,17 @@ import vegaapiclient as vac -def test_grpc_error_detail(tradingdata): +def test_grpc_error_detail(coreapi): # Construct a request of the WRONG type. - req = vac.api.trading.MarketByIDRequest(market_id="1234") + req = vac.api.trading.SubmitTransactionV2Request( + tx=vac.commands.v1.transaction.Transaction( + input_data=bytes("\x00\x01\x02", "ascii"), + ), + ) # TODO: use: with pytest.raises(grpc.RpcError) as e_info: try: # Make a call using the WRONG request type. - result = tradingdata.Candles(req) + result = coreapi.ListAccounts(req) print(f"result={result}") assert False, ( "The gRPC call using the WRONG request message type should have" diff --git a/grpc/clients/python/tests/test_trading_submitorder.py b/grpc/clients/python/tests/test_trading_submitorder.py index e6558302..0e3f122b 100644 --- a/grpc/clients/python/tests/test_trading_submitorder.py +++ b/grpc/clients/python/tests/test_trading_submitorder.py @@ -1,18 +1,18 @@ import vegaapiclient as vac -def test_order_submission(trading, tradingdata, walletClientWalletKeypair): +def test_order_submission(trading, coreapi, walletClientWalletKeypair): (walletclient, _, _, pub_key) = walletClientWalletKeypair # Get a market - req = vac.api.trading.MarketsRequest() - markets = tradingdata.Markets(req).markets + req = vac.coreapi.v1.coreapi.ListMarketsRequest() + markets = coreapi.ListMarkets(req).markets assert len(markets) > 0 market = markets[0] # Get the chain time timereq = vac.api.trading.GetVegaTimeRequest() - now = int(tradingdata.GetVegaTime(timereq).timestamp) + now = int(trading.GetVegaTime(timereq).timestamp) # Create the tx req = vac.wallet.v1.wallet.SubmitTransactionRequest( diff --git a/grpc/clients/python/tests/test_tradingdata_markets.py b/grpc/clients/python/tests/test_tradingdata_markets.py deleted file mode 100644 index e71e561d..00000000 --- a/grpc/clients/python/tests/test_tradingdata_markets.py +++ /dev/null @@ -1,19 +0,0 @@ -from google.protobuf.empty_pb2 import Empty - -import vegaapiclient as vac - - -def test_MarketByID(tradingdata): - markets = tradingdata.Markets(Empty()).markets - assert len(markets) > 0 - marketID = markets[0].id - - req = vac.api.trading.MarketByIDRequest(market_id=marketID) - market = tradingdata.MarketByID(req) - - assert market.market.id == markets[0].id - - -def test_Markets(tradingdata): - markets = tradingdata.Markets(Empty()) - assert len(markets.markets) > 0 diff --git a/grpc/clients/python/tests/test_tradingdata_marketsdata.py b/grpc/clients/python/tests/test_tradingdata_marketsdata.py deleted file mode 100644 index e1aa514e..00000000 --- a/grpc/clients/python/tests/test_tradingdata_marketsdata.py +++ /dev/null @@ -1,6 +0,0 @@ -from google.protobuf.empty_pb2 import Empty - - -def test_MarketsData(tradingdata): - md = tradingdata.MarketsData(Empty()) - assert len(md.markets_data) > 0 diff --git a/grpc/clients/python/vegaapiclient/__init__.py b/grpc/clients/python/vegaapiclient/__init__.py index 5c893b24..6b4806cd 100644 --- a/grpc/clients/python/vegaapiclient/__init__.py +++ b/grpc/clients/python/vegaapiclient/__init__.py @@ -5,15 +5,17 @@ """ from .vegatradingclient import VegaTradingClient -from .vegatradingdataclient import VegaTradingDataClient +from .vegacoreapiclient import VegaCoreAPIClient from .faucetclient import FaucetClient from .helpers import grpc_error_detail from .walletclient import WalletClient from .generated import ( api, commands, + coreapi, events, oracles, + snapshot, tm, wallet, assets_pb2 as assets, @@ -30,14 +32,16 @@ __all__ = [ "VegaTradingClient", - "VegaTradingDataClient", + "VegaCoreAPIClient", "FaucetClient", "WalletClient", "grpc_error_detail", "api", "commands", + "coreapi", "events", "oracles", + "snapshot", "tm", "wallet", "assets", diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/__init__.py b/grpc/clients/python/vegaapiclient/generated/coreapi/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/__init__.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/__init__.py new file mode 100644 index 00000000..86894965 --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/__init__.py @@ -0,0 +1,7 @@ +from . import coreapi_pb2_grpc as coreapi_grpc +from . import coreapi_pb2 as coreapi + +__all__ = [ + "coreapi_grpc", + "coreapi", +] diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py index 25d0a575..84e4147e 100644 --- a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py @@ -11,11 +11,11 @@ _sym_db = _symbol_database.Default() -import assets_pb2 as assets__pb2 -import governance_pb2 as governance__pb2 -import markets_pb2 as markets__pb2 -import vega_pb2 as vega__pb2 -from events.v1 import events_pb2 as events_dot_v1_dot_events__pb2 +from ... import assets_pb2 as assets__pb2 +from ... import governance_pb2 as governance__pb2 +from ... import markets_pb2 as markets__pb2 +from ... import vega_pb2 as vega__pb2 +from ...events.v1 import events_pb2 as events_dot_v1_dot_events__pb2 DESCRIPTOR = _descriptor.FileDescriptor( diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py index 3e180315..2c8b56f5 100644 --- a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from coreapi.v1 import coreapi_pb2 as coreapi_dot_v1_dot_coreapi__pb2 +from ...coreapi.v1 import coreapi_pb2 as coreapi_dot_v1_dot_coreapi__pb2 class CoreApiServiceStub(object): diff --git a/grpc/clients/python/vegaapiclient/generated/snapshot/__init__.py b/grpc/clients/python/vegaapiclient/generated/snapshot/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/__init__.py b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/__init__.py new file mode 100644 index 00000000..1cec17f8 --- /dev/null +++ b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/__init__.py @@ -0,0 +1,7 @@ +from . import snapshot_pb2_grpc as snapshot_grpc +from . import snapshot_pb2 as snapshot + +__all__ = [ + "snapshot_grpc", + "snapshot", +] diff --git a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py index 5c006ebb..af885815 100644 --- a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py @@ -11,9 +11,9 @@ _sym_db = _symbol_database.Default() -import vega_pb2 as vega__pb2 -import assets_pb2 as assets__pb2 -import governance_pb2 as governance__pb2 +from ... import vega_pb2 as vega__pb2 +from ... import assets_pb2 as assets__pb2 +from ... import governance_pb2 as governance__pb2 DESCRIPTOR = _descriptor.FileDescriptor( diff --git a/grpc/clients/python/vegaapiclient/vegatradingdataclient.py b/grpc/clients/python/vegaapiclient/vegacoreapiclient.py similarity index 52% rename from grpc/clients/python/vegaapiclient/vegatradingdataclient.py rename to grpc/clients/python/vegaapiclient/vegacoreapiclient.py index 41c37289..ef324a3b 100644 --- a/grpc/clients/python/vegaapiclient/vegatradingdataclient.py +++ b/grpc/clients/python/vegaapiclient/vegacoreapiclient.py @@ -1,15 +1,15 @@ -from .generated.api import trading_pb2_grpc as trading_grpc +from .generated.coreapi.v1 import coreapi_pb2_grpc as coreapi_grpc from .grpcclient import GRPCClient -class VegaTradingDataClient(GRPCClient): +class VegaCoreAPIClient(GRPCClient): """ The Vega Trading Data Client talks to a back-end node. """ def __init__(self, url: str, channel=None) -> None: super().__init__(url, channel=channel) - self._trading_data = trading_grpc.TradingDataServiceStub(self.channel) + self._core_api = coreapi_grpc.CoreApiServiceStub(self.channel) def __getattr__(self, funcname): - return getattr(self._trading_data, funcname) + return getattr(self._core_api, funcname) From faa8b824237e661110abbdbabc591e4eac199a1d Mon Sep 17 00:00:00 2001 From: Ashley C Date: Tue, 31 Aug 2021 20:02:01 +0100 Subject: [PATCH 4/8] Update env var names --- .github/workflows/javascript.yml | 3 ++- .github/workflows/python.yml | 15 +++++++++++---- README.md | 2 +- grpc/clients/python/tests/conftest.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 44a3aa4a..82819949 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -46,7 +46,8 @@ jobs: - name: Test env: CI: true - GRPC_NODE: ${{ secrets.GRPC_NODE }} + CORE_GRPC_NODE: ${{ secrets.CORE_GRPC_NODE }} + DATA_GRPC_NODE: ${{ secrets.DATA_GRPC_NODE }} WALLETSERVER: ${{ secrets.WALLETSERVER }} run: | cd grpc/clients/js diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 25e4b9fb..79dc190e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -48,7 +48,8 @@ jobs: - name: Test with pytest env: - GRPC_NODE: ${{ secrets.GRPC_NODE }} + CORE_GRPC_NODE: ${{ secrets.CORE_GRPC_NODE }} + DATA_GRPC_NODE: ${{ secrets.DATA_GRPC_NODE }} FAUCETSERVER: ${{ secrets.FAUCETSERVER }} WALLETSERVER: ${{ secrets.WALLETSERVER }} run: | @@ -64,7 +65,9 @@ jobs: - name: Run example scripts for gRPC env: - NODE_URL_GRPC: ${{ secrets.GRPC_NODE }} + CORE_GRPC_NODE: ${{ secrets.CORE_GRPC_NODE }} + DATA_GRPC_NODE: ${{ secrets.DATA_GRPC_NODE }} + NODE_URL_GRPC: ${{ secrets.CORE_GRPC_NODE }} # deprecated WALLET_NAME: ${{ secrets.WALLET_NAME }} WALLET_PASSPHRASE: ${{ secrets.WALLET_PASSPHRASE }} WALLETSERVER_URL: ${{ secrets.WALLETSERVER }} @@ -76,7 +79,9 @@ jobs: # - name: Run example scripts for GraphQL # env: - # NODE_URL_REST: ${{ secrets.NODE_URL_REST }} + # CORE_REST_NODE: ${{ secrets.CORE_REST_NODE }} + # DATA_REST_NODE: ${{ secrets.DATA_REST_NODE }} + # NODE_URL_REST: ${{ secrets.NODE_URL_REST }} # deprecated # WALLET_NAME: ${{ secrets.WALLET_NAME }} # WALLET_PASSPHRASE: ${{ secrets.WALLET_PASSPHRASE }} # WALLETSERVER_URL: ${{ secrets.WALLETSERVER }} @@ -88,7 +93,9 @@ jobs: - name: Run example scripts for REST env: - NODE_URL_REST: ${{ secrets.NODE_URL_REST }} + CORE_REST_NODE: ${{ secrets.CORE_REST_NODE }} + DATA_REST_NODE: ${{ secrets.DATA_REST_NODE }} + NODE_URL_REST: ${{ secrets.NODE_URL_REST }} # deprecated WALLET_NAME: ${{ secrets.WALLET_NAME }} WALLET_PASSPHRASE: ${{ secrets.WALLET_PASSPHRASE }} WALLETSERVER_URL: ${{ secrets.WALLETSERVER }} diff --git a/README.md b/README.md index 7e81cf99..cfc7ea5f 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ VEGACORE=/path/to/go/src/vega make preproto make proto # Run tests -GRPC_NODE=veganode.example.com:1234 WALLETSERVER=https://vegawallet.example.com make test +CORE_GRPC_NODE=veganode.example.com:1234 DATA_GRPC_NODE=veganode.example.com:1235 WALLETSERVER=https://vegawallet.example.com make test ``` ### Java gRPC generation diff --git a/grpc/clients/python/tests/conftest.py b/grpc/clients/python/tests/conftest.py index fe334d3e..6c9bdde5 100644 --- a/grpc/clients/python/tests/conftest.py +++ b/grpc/clients/python/tests/conftest.py @@ -10,7 +10,7 @@ @pytest.fixture(scope="module") def trading(): """ - Provide a `VegaTradingClient`, connected to $GRPC_NODE. + Provide a `VegaTradingClient`, connected to $CORE_GRPC_NODE. """ grpc_node = os.getenv("CORE_GRPC_NODE") assert grpc_node is not None and grpc_node != "" @@ -20,7 +20,7 @@ def trading(): @pytest.fixture(scope="module") def coreapi(): """ - Provide a `VegaCoreAPIClient`, connected to $GRPC_NODE. + Provide a `VegaCoreAPIClient`, connected to $DATA_GRPC_NODE. """ grpc_node = os.getenv("DATA_GRPC_NODE") assert grpc_node is not None and grpc_node != "" From 12dd52afd2e7a3d4f175b5e43d610c9a1a8f4ffa Mon Sep 17 00:00:00 2001 From: Ashley C Date: Tue, 31 Aug 2021 20:10:51 +0100 Subject: [PATCH 5/8] Switch from TradingData to CoreAPI --- grpc/examples/python/submit-order.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grpc/examples/python/submit-order.py b/grpc/examples/python/submit-order.py index b3bc8552..25e658d6 100644 --- a/grpc/examples/python/submit-order.py +++ b/grpc/examples/python/submit-order.py @@ -66,7 +66,7 @@ # __create_wallet: # Vega node: Create client for accessing public data -datacli = vac.VegaTradingDataClient(node_url_grpc) +coreapicli = vac.VegaCoreAPIClient(node_url_grpc) # Vega node: Create client for trading (e.g. submitting orders) tradingcli = vac.VegaTradingClient(node_url_grpc) @@ -79,7 +79,8 @@ # __get_market: # Get a list of markets -markets = datacli.Markets(vac.api.trading.MarketsRequest()).markets +req = vac.coreapi.v1.coreapi.ListMarketsRequest() +markets = coreapicli.ListMarkets(req).markets # Choose the first. marketID = markets[0].id # :get_market__ From 3ca3c05b4cac3a771fc20714abf2bddc1e1872e8 Mon Sep 17 00:00:00 2001 From: Ashley C Date: Thu, 2 Sep 2021 14:15:55 +0100 Subject: [PATCH 6/8] Bump Vega protos to latest --- grpc/clients/cpp/generated/chain_events.pb.cc | 43 +- grpc/clients/cpp/generated/chain_events.pb.h | 82 +- .../cpp/generated/commands/v1/commands.pb.cc | 281 +- .../cpp/generated/commands/v1/commands.pb.h | 440 +- .../generated/coreapi/v1/coreapi.grpc.pb.cc | 42 + .../generated/coreapi/v1/coreapi.grpc.pb.h | 211 +- .../cpp/generated/coreapi/v1/coreapi.pb.cc | 934 ++- .../cpp/generated/coreapi/v1/coreapi.pb.h | 759 +- .../cpp/generated/events/v1/events.pb.cc | 495 +- .../cpp/generated/events/v1/events.pb.h | 261 + grpc/clients/cpp/generated/governance.pb.cc | 106 +- grpc/clients/cpp/generated/governance.pb.h | 184 +- grpc/clients/cpp/generated/vega.pb.cc | 2413 +++--- grpc/clients/cpp/generated/vega.pb.h | 3754 ++++++--- .../vega/proto/chain_events.pb.go | 8 +- .../vega/proto/commands/v1/commands.pb.go | 40 +- .../vega/proto/coreapi/v1/coreapi.pb.go | 422 +- .../proto/coreapi/v1/coreapi.validator.pb.go | 23 + .../vega/proto/coreapi/v1/coreapi_grpc.pb.go | 36 + .../vega/proto/events/v1/events.pb.go | 827 +- .../proto/events/v1/events.validator.pb.go | 21 + .../vega/proto/governance.pb.go | 16 +- .../vega/proto/vega.pb.go | 902 +-- .../src/io/vegaprotocol/vega/ChainEvents.java | 155 +- .../src/io/vegaprotocol/vega/Governance.java | 310 +- .../src/io/vegaprotocol/vega/Vega.java | 6695 +++++++++++++---- .../vega/commands/v1/Commands.java | 783 +- .../vega/coreapi/v1/CoreApiServiceGrpc.java | 74 + .../vegaprotocol/vega/coreapi/v1/Coreapi.java | 2547 ++++++- .../vegaprotocol/vega/events/v1/Events.java | 949 ++- .../clients/js/generated/chain_events_pb.d.ts | 6 +- grpc/clients/js/generated/chain_events_pb.js | 18 +- .../js/generated/commands/v1/commands_pb.d.ts | 30 +- .../js/generated/commands/v1/commands_pb.js | 90 +- .../generated/coreapi/v1/coreapi_grpc_pb.d.ts | 17 + .../generated/coreapi/v1/coreapi_grpc_pb.js | 33 + .../js/generated/coreapi/v1/coreapi_pb.d.ts | 70 + .../js/generated/coreapi/v1/coreapi_pb.js | 576 ++ .../js/generated/events/v1/events_pb.d.ts | 21 + .../js/generated/events/v1/events_pb.js | 162 +- grpc/clients/js/generated/governance_pb.d.ts | 12 +- grpc/clients/js/generated/governance_pb.js | 36 +- grpc/clients/js/generated/vega_pb.d.ts | 240 +- grpc/clients/js/generated/vega_pb.js | 764 +- .../generated/chain_events_pb2.py | 6 +- .../generated/commands/v1/commands_pb2.py | 22 +- .../generated/coreapi/v1/coreapi_pb2.py | 152 +- .../generated/coreapi/v1/coreapi_pb2_grpc.py | 33 + .../generated/events/v1/events_pb2.py | 89 +- .../vegaapiclient/generated/governance_pb2.py | 10 +- .../vegaapiclient/generated/vega_pb2.py | 226 +- grpc/doc/doc.json | 450 +- grpc/doc/index.html | 234 +- grpc/doc/index.md | 150 +- proto/chain_events.proto | 2 +- proto/commands/v1/commands.proto | 10 +- proto/coreapi/v1/coreapi.proto | 17 +- proto/events/v1/events.proto | 3 + proto/from.txt | 2 +- proto/governance.proto | 4 +- proto/vega.proto | 84 +- rest/api/trading.swagger.json | 88 +- rest/grpc-rest-bindings.yml | 2 + 63 files changed, 21459 insertions(+), 6013 deletions(-) diff --git a/grpc/clients/cpp/generated/chain_events.pb.cc b/grpc/clients/cpp/generated/chain_events.pb.cc index 7f83c5e6..cc4fb956 100644 --- a/grpc/clients/cpp/generated/chain_events.pb.cc +++ b/grpc/clients/cpp/generated/chain_events.pb.cc @@ -607,7 +607,7 @@ const char descriptor_table_protodef_chain_5fevents_2eproto[] PROTOBUF_SECTION_V "nt\030\003 \001(\004R\006amount\"o\n\026BuiltinAssetWithdraw" "al\022\"\n\rvega_asset_id\030\001 \001(\tR\013vegaAssetId\022\031" "\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(" - "\004R\006amount\"\226\001\n\021BuiltinAssetEvent\0226\n\007depos" + "\tR\006amount\"\226\001\n\021BuiltinAssetEvent\0226\n\007depos" "it\030\351\007 \001(\0132\031.vega.BuiltinAssetDepositH\000R\007" "deposit\022\?\n\nwithdrawal\030\352\007 \001(\0132\034.vega.Buil" "tinAssetWithdrawalH\000R\nwithdrawalB\010\n\006acti" @@ -1002,7 +1002,11 @@ BuiltinAssetWithdrawal::BuiltinAssetWithdrawal(const BuiltinAssetWithdrawal& fro party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } - amount_ = from.amount_; + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } // @@protoc_insertion_point(copy_constructor:vega.BuiltinAssetWithdrawal) } @@ -1010,7 +1014,7 @@ void BuiltinAssetWithdrawal::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BuiltinAssetWithdrawal_chain_5fevents_2eproto.base); vega_asset_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_ = PROTOBUF_ULONGLONG(0); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } BuiltinAssetWithdrawal::~BuiltinAssetWithdrawal() { @@ -1023,6 +1027,7 @@ void BuiltinAssetWithdrawal::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); vega_asset_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void BuiltinAssetWithdrawal::ArenaDtor(void* object) { @@ -1048,7 +1053,7 @@ void BuiltinAssetWithdrawal::Clear() { vega_asset_id_.ClearToEmpty(); party_id_.ClearToEmpty(); - amount_ = PROTOBUF_ULONGLONG(0); + amount_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1077,10 +1082,12 @@ const char* BuiltinAssetWithdrawal::_InternalParse(const char* ptr, ::PROTOBUF_N CHK_(ptr); } else goto handle_unusual; continue; - // uint64 amount = 3 [json_name = "amount"]; + // string amount = 3 [json_name = "amount"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.BuiltinAssetWithdrawal.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -1132,10 +1139,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* BuiltinAssetWithdrawal::_InternalSerialize( 2, this->_internal_party_id(), target); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.BuiltinAssetWithdrawal.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1168,10 +1179,10 @@ size_t BuiltinAssetWithdrawal::ByteSizeLong() const { this->_internal_party_id()); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_amount()); } @@ -1212,7 +1223,7 @@ void BuiltinAssetWithdrawal::MergeFrom(const BuiltinAssetWithdrawal& from) { if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } - if (from.amount() != 0) { + if (from.amount().size() > 0) { _internal_set_amount(from._internal_amount()); } } @@ -1240,7 +1251,7 @@ void BuiltinAssetWithdrawal::InternalSwap(BuiltinAssetWithdrawal* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); vega_asset_id_.Swap(&other->vega_asset_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(amount_, other->amount_); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata BuiltinAssetWithdrawal::GetMetadata() const { diff --git a/grpc/clients/cpp/generated/chain_events.pb.h b/grpc/clients/cpp/generated/chain_events.pb.h index c321ec83..26a59e91 100644 --- a/grpc/clients/cpp/generated/chain_events.pb.h +++ b/grpc/clients/cpp/generated/chain_events.pb.h @@ -461,13 +461,20 @@ class BuiltinAssetWithdrawal PROTOBUF_FINAL : std::string* _internal_mutable_party_id(); public: - // uint64 amount = 3 [json_name = "amount"]; + // string amount = 3 [json_name = "amount"]; void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: // @@protoc_insertion_point(class_scope:vega.BuiltinAssetWithdrawal) @@ -479,7 +486,7 @@ class BuiltinAssetWithdrawal PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vega_asset_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_chain_5fevents_2eproto; }; @@ -3982,25 +3989,66 @@ inline void BuiltinAssetWithdrawal::set_allocated_party_id(std::string* party_id // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.party_id) } -// uint64 amount = 3 [json_name = "amount"]; +// string amount = 3 [json_name = "amount"]; inline void BuiltinAssetWithdrawal::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 BuiltinAssetWithdrawal::amount() const { +inline const std::string& BuiltinAssetWithdrawal::amount() const { // @@protoc_insertion_point(field_get:vega.BuiltinAssetWithdrawal.amount) return _internal_amount(); } -inline void BuiltinAssetWithdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void BuiltinAssetWithdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void BuiltinAssetWithdrawal::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.BuiltinAssetWithdrawal.amount) } +inline std::string* BuiltinAssetWithdrawal::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.BuiltinAssetWithdrawal.amount) + return _internal_mutable_amount(); +} +inline const std::string& BuiltinAssetWithdrawal::_internal_amount() const { + return amount_.Get(); +} +inline void BuiltinAssetWithdrawal::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void BuiltinAssetWithdrawal::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.BuiltinAssetWithdrawal.amount) +} +inline void BuiltinAssetWithdrawal::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.BuiltinAssetWithdrawal.amount) +} +inline void BuiltinAssetWithdrawal::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.BuiltinAssetWithdrawal.amount) +} +inline std::string* BuiltinAssetWithdrawal::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* BuiltinAssetWithdrawal::release_amount() { + // @@protoc_insertion_point(field_release:vega.BuiltinAssetWithdrawal.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void BuiltinAssetWithdrawal::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.BuiltinAssetWithdrawal.amount) +} // ------------------------------------------------------------------- diff --git a/grpc/clients/cpp/generated/commands/v1/commands.pb.cc b/grpc/clients/cpp/generated/commands/v1/commands.pb.cc index 653502db..1d8a9c0d 100644 --- a/grpc/clients/cpp/generated/commands/v1/commands.pb.cc +++ b/grpc/clients/cpp/generated/commands/v1/commands.pb.cc @@ -330,7 +330,7 @@ const char descriptor_table_protodef_commands_2fv1_2fcommands_2eproto[] PROTOBUF "ogle/protobuf/wrappers.proto\0326github.com" "/mwitkow/go-proto-validators/validator.p" "roto\"\336\002\n\017OrderSubmission\022#\n\tmarket_id\030\001 " - "\001(\tB\006\342\337\037\002X\001R\010marketId\022\024\n\005price\030\002 \001(\004R\005pr" + "\001(\tB\006\342\337\037\002X\001R\010marketId\022\024\n\005price\030\002 \001(\tR\005pr" "ice\022\032\n\004size\030\003 \001(\004B\006\342\337\037\002\020\000R\004size\022\036\n\004side\030" "\004 \001(\0162\n.vega.SideR\004side\022;\n\rtime_in_force" "\030\005 \001(\0162\027.vega.Order.TimeInForceR\013timeInF" @@ -352,11 +352,11 @@ const char descriptor_table_protodef_commands_2fv1_2fcommands_2eproto[] PROTOBUF "ferenceR\017peggedReference\"\366\001\n\034LiquidityPr" "ovisionSubmission\022#\n\tmarket_id\030\001 \001(\tB\006\342\337" "\037\002X\001R\010marketId\022+\n\021commitment_amount\030\002 \001(" - "\004R\020commitmentAmount\022\020\n\003fee\030\003 \001(\tR\003fee\022*\n" + "\tR\020commitmentAmount\022\020\n\003fee\030\003 \001(\tR\003fee\022*\n" "\005sells\030\004 \003(\0132\024.vega.LiquidityOrderR\005sell" "s\022(\n\004buys\030\005 \003(\0132\024.vega.LiquidityOrderR\004b" "uys\022\034\n\treference\030\006 \001(\tR\treference\"g\n\022Wit" - "hdrawSubmission\022\026\n\006amount\030\001 \001(\004R\006amount\022" + "hdrawSubmission\022\026\n\006amount\030\001 \001(\tR\006amount\022" "\024\n\005asset\030\002 \001(\tR\005asset\022#\n\003ext\030\003 \001(\0132\021.veg" "a.WithdrawExtR\003ext\"e\n\022ProposalSubmission" "\022\034\n\treference\030\001 \001(\tR\treference\0221\n\005terms\030" @@ -365,9 +365,9 @@ const char descriptor_table_protodef_commands_2fv1_2fcommands_2eproto[] PROTOBUF "B\006\342\337\037\002X\001R\nproposalId\022&\n\005value\030\002 \001(\0162\020.ve" "ga.Vote.ValueR\005value\"M\n\022DelegateSubmissi" "on\022\037\n\007node_id\030\001 \001(\tB\006\342\337\037\002X\001R\006nodeId\022\026\n\006a" - "mount\030\002 \001(\004R\006amount\"\371\001\n\024UndelegateSubmis" + "mount\030\002 \001(\tR\006amount\"\371\001\n\024UndelegateSubmis" "sion\022\037\n\007node_id\030\001 \001(\tB\006\342\337\037\002X\001R\006nodeId\022\026\n" - "\006amount\030\002 \001(\004R\006amount\022E\n\006method\030\003 \001(\0162-." + "\006amount\030\002 \001(\tR\006amount\022E\n\006method\030\003 \001(\0162-." "vega.commands.v1.UndelegateSubmission.Me" "thodR\006method\"a\n\006Method\022\026\n\022METHOD_UNSPECI" "FIED\020\000\022\016\n\nMETHOD_NOW\020\001\022\032\n\026METHOD_AT_END_" @@ -464,6 +464,11 @@ OrderSubmission::OrderSubmission(const OrderSubmission& from) market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_price().empty()) { + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_price(), + GetArena()); + } reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_reference().empty()) { reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), @@ -474,15 +479,16 @@ OrderSubmission::OrderSubmission(const OrderSubmission& from) } else { pegged_order_ = nullptr; } - ::memcpy(&price_, &from.price_, + ::memcpy(&size_, &from.size_, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&price_)) + sizeof(type_)); + reinterpret_cast(&size_)) + sizeof(type_)); // @@protoc_insertion_point(copy_constructor:vega.commands.v1.OrderSubmission) } void OrderSubmission::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto.base); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&pegged_order_) - reinterpret_cast(this)), @@ -499,6 +505,7 @@ OrderSubmission::~OrderSubmission() { void OrderSubmission::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete pegged_order_; } @@ -525,14 +532,15 @@ void OrderSubmission::Clear() { (void) cached_has_bits; market_id_.ClearToEmpty(); + price_.ClearToEmpty(); reference_.ClearToEmpty(); if (GetArena() == nullptr && pegged_order_ != nullptr) { delete pegged_order_; } pegged_order_ = nullptr; - ::memset(&price_, 0, static_cast( + ::memset(&size_, 0, static_cast( reinterpret_cast(&type_) - - reinterpret_cast(&price_)) + sizeof(type_)); + reinterpret_cast(&size_)) + sizeof(type_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -552,10 +560,12 @@ const char* OrderSubmission::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr); } else goto handle_unusual; continue; - // uint64 price = 2 [json_name = "price"]; + // string price = 2 [json_name = "price"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.OrderSubmission.price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -651,10 +661,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* OrderSubmission::_InternalSerialize( 1, this->_internal_market_id(), target); } - // uint64 price = 2 [json_name = "price"]; - if (this->price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_price(), target); + // string price = 2 [json_name = "price"]; + if (this->price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_price().data(), static_cast(this->_internal_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.OrderSubmission.price"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_price(), target); } // uint64 size = 3 [json_name = "size", (.validator.field) = { @@ -731,6 +745,13 @@ size_t OrderSubmission::ByteSizeLong() const { this->_internal_market_id()); } + // string price = 2 [json_name = "price"]; + if (this->price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_price()); + } + // string reference = 8 [json_name = "reference"]; if (this->reference().size() > 0) { total_size += 1 + @@ -745,13 +766,6 @@ size_t OrderSubmission::ByteSizeLong() const { *pegged_order_); } - // uint64 price = 2 [json_name = "price"]; - if (this->price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_price()); - } - // uint64 size = 3 [json_name = "size", (.validator.field) = { if (this->size() != 0) { total_size += 1 + @@ -818,15 +832,15 @@ void OrderSubmission::MergeFrom(const OrderSubmission& from) { if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } + if (from.price().size() > 0) { + _internal_set_price(from._internal_price()); + } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } if (from.has_pegged_order()) { _internal_mutable_pegged_order()->::vega::PeggedOrder::MergeFrom(from._internal_pegged_order()); } - if (from.price() != 0) { - _internal_set_price(from._internal_price()); - } if (from.size() != 0) { _internal_set_size(from._internal_size()); } @@ -866,6 +880,7 @@ void OrderSubmission::InternalSwap(OrderSubmission* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + price_.Swap(&other->price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(OrderSubmission, type_) @@ -1623,6 +1638,11 @@ LiquidityProvisionSubmission::LiquidityProvisionSubmission(const LiquidityProvis market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_commitment_amount().empty()) { + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_commitment_amount(), + GetArena()); + } fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_fee().empty()) { fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fee(), @@ -1633,16 +1653,15 @@ LiquidityProvisionSubmission::LiquidityProvisionSubmission(const LiquidityProvis reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), GetArena()); } - commitment_amount_ = from.commitment_amount_; // @@protoc_insertion_point(copy_constructor:vega.commands.v1.LiquidityProvisionSubmission) } void LiquidityProvisionSubmission::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto.base); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - commitment_amount_ = PROTOBUF_ULONGLONG(0); } LiquidityProvisionSubmission::~LiquidityProvisionSubmission() { @@ -1654,6 +1673,7 @@ LiquidityProvisionSubmission::~LiquidityProvisionSubmission() { void LiquidityProvisionSubmission::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + commitment_amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -1682,9 +1702,9 @@ void LiquidityProvisionSubmission::Clear() { sells_.Clear(); buys_.Clear(); market_id_.ClearToEmpty(); + commitment_amount_.ClearToEmpty(); fee_.ClearToEmpty(); reference_.ClearToEmpty(); - commitment_amount_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1704,10 +1724,12 @@ const char* LiquidityProvisionSubmission::_InternalParse(const char* ptr, ::PROT CHK_(ptr); } else goto handle_unusual; continue; - // uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + // string commitment_amount = 2 [json_name = "commitmentAmount"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - commitment_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_commitment_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.LiquidityProvisionSubmission.commitment_amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -1791,10 +1813,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvisionSubmission::_InternalSerialize 1, this->_internal_market_id(), target); } - // uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_commitment_amount(), target); + // string commitment_amount = 2 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_commitment_amount().data(), static_cast(this->_internal_commitment_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.LiquidityProvisionSubmission.commitment_amount"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_commitment_amount(), target); } // string fee = 3 [json_name = "fee"]; @@ -1870,6 +1896,13 @@ size_t LiquidityProvisionSubmission::ByteSizeLong() const { this->_internal_market_id()); } + // string commitment_amount = 2 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_commitment_amount()); + } + // string fee = 3 [json_name = "fee"]; if (this->fee().size() > 0) { total_size += 1 + @@ -1884,13 +1917,6 @@ size_t LiquidityProvisionSubmission::ByteSizeLong() const { this->_internal_reference()); } - // uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_commitment_amount()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -1927,15 +1953,15 @@ void LiquidityProvisionSubmission::MergeFrom(const LiquidityProvisionSubmission& if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } + if (from.commitment_amount().size() > 0) { + _internal_set_commitment_amount(from._internal_commitment_amount()); + } if (from.fee().size() > 0) { _internal_set_fee(from._internal_fee()); } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } - if (from.commitment_amount() != 0) { - _internal_set_commitment_amount(from._internal_commitment_amount()); - } } void LiquidityProvisionSubmission::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -1962,9 +1988,9 @@ void LiquidityProvisionSubmission::InternalSwap(LiquidityProvisionSubmission* ot sells_.InternalSwap(&other->sells_); buys_.InternalSwap(&other->buys_); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + commitment_amount_.Swap(&other->commitment_amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fee_.Swap(&other->fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(commitment_amount_, other->commitment_amount_); } ::PROTOBUF_NAMESPACE_ID::Metadata LiquidityProvisionSubmission::GetMetadata() const { @@ -1998,6 +2024,11 @@ WithdrawSubmission::WithdrawSubmission(::PROTOBUF_NAMESPACE_ID::Arena* arena) WithdrawSubmission::WithdrawSubmission(const WithdrawSubmission& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_asset().empty()) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), @@ -2008,17 +2039,14 @@ WithdrawSubmission::WithdrawSubmission(const WithdrawSubmission& from) } else { ext_ = nullptr; } - amount_ = from.amount_; // @@protoc_insertion_point(copy_constructor:vega.commands.v1.WithdrawSubmission) } void WithdrawSubmission::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&ext_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&amount_) - - reinterpret_cast(&ext_)) + sizeof(amount_)); + ext_ = nullptr; } WithdrawSubmission::~WithdrawSubmission() { @@ -2029,6 +2057,7 @@ WithdrawSubmission::~WithdrawSubmission() { void WithdrawSubmission::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete ext_; } @@ -2054,12 +2083,12 @@ void WithdrawSubmission::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + amount_.ClearToEmpty(); asset_.ClearToEmpty(); if (GetArena() == nullptr && ext_ != nullptr) { delete ext_; } ext_ = nullptr; - amount_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2070,10 +2099,12 @@ const char* WithdrawSubmission::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 amount = 1 [json_name = "amount"]; + // string amount = 1 [json_name = "amount"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.WithdrawSubmission.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -2121,10 +2152,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* WithdrawSubmission::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 amount = 1 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_amount(), target); + // string amount = 1 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.WithdrawSubmission.amount"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_amount(), target); } // string asset = 2 [json_name = "asset"]; @@ -2161,6 +2196,13 @@ size_t WithdrawSubmission::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string amount = 1 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + // string asset = 2 [json_name = "asset"]; if (this->asset().size() > 0) { total_size += 1 + @@ -2175,13 +2217,6 @@ size_t WithdrawSubmission::ByteSizeLong() const { *ext_); } - // uint64 amount = 1 [json_name = "amount"]; - if (this->amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -2213,15 +2248,15 @@ void WithdrawSubmission::MergeFrom(const WithdrawSubmission& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } if (from.has_ext()) { _internal_mutable_ext()->::vega::WithdrawExt::MergeFrom(from._internal_ext()); } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } } void WithdrawSubmission::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -2245,13 +2280,9 @@ bool WithdrawSubmission::IsInitialized() const { void WithdrawSubmission::InternalSwap(WithdrawSubmission* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(WithdrawSubmission, amount_) - + sizeof(WithdrawSubmission::amount_) - - PROTOBUF_FIELD_OFFSET(WithdrawSubmission, ext_)>( - reinterpret_cast(&ext_), - reinterpret_cast(&other->ext_)); + swap(ext_, other->ext_); } ::PROTOBUF_NAMESPACE_ID::Metadata WithdrawSubmission::GetMetadata() const { @@ -2767,14 +2798,18 @@ DelegateSubmission::DelegateSubmission(const DelegateSubmission& from) node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), GetArena()); } - amount_ = from.amount_; + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } // @@protoc_insertion_point(copy_constructor:vega.commands.v1.DelegateSubmission) } void DelegateSubmission::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto.base); node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_ = PROTOBUF_ULONGLONG(0); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } DelegateSubmission::~DelegateSubmission() { @@ -2786,6 +2821,7 @@ DelegateSubmission::~DelegateSubmission() { void DelegateSubmission::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void DelegateSubmission::ArenaDtor(void* object) { @@ -2810,7 +2846,7 @@ void DelegateSubmission::Clear() { (void) cached_has_bits; node_id_.ClearToEmpty(); - amount_ = PROTOBUF_ULONGLONG(0); + amount_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2830,10 +2866,12 @@ const char* DelegateSubmission::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr); } else goto handle_unusual; continue; - // uint64 amount = 2 [json_name = "amount"]; + // string amount = 2 [json_name = "amount"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.DelegateSubmission.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -2875,10 +2913,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* DelegateSubmission::_InternalSerialize( 1, this->_internal_node_id(), target); } - // uint64 amount = 2 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount(), target); + // string amount = 2 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.DelegateSubmission.amount"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_amount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2904,10 +2946,10 @@ size_t DelegateSubmission::ByteSizeLong() const { this->_internal_node_id()); } - // uint64 amount = 2 [json_name = "amount"]; - if (this->amount() != 0) { + // string amount = 2 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_amount()); } @@ -2945,7 +2987,7 @@ void DelegateSubmission::MergeFrom(const DelegateSubmission& from) { if (from.node_id().size() > 0) { _internal_set_node_id(from._internal_node_id()); } - if (from.amount() != 0) { + if (from.amount().size() > 0) { _internal_set_amount(from._internal_amount()); } } @@ -2972,7 +3014,7 @@ void DelegateSubmission::InternalSwap(DelegateSubmission* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(amount_, other->amount_); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata DelegateSubmission::GetMetadata() const { @@ -3000,19 +3042,20 @@ UndelegateSubmission::UndelegateSubmission(const UndelegateSubmission& from) node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(), GetArena()); } - ::memcpy(&amount_, &from.amount_, - static_cast(reinterpret_cast(&method_) - - reinterpret_cast(&amount_)) + sizeof(method_)); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + method_ = from.method_; // @@protoc_insertion_point(copy_constructor:vega.commands.v1.UndelegateSubmission) } void UndelegateSubmission::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto.base); node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&amount_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&method_) - - reinterpret_cast(&amount_)) + sizeof(method_)); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + method_ = 0; } UndelegateSubmission::~UndelegateSubmission() { @@ -3024,6 +3067,7 @@ UndelegateSubmission::~UndelegateSubmission() { void UndelegateSubmission::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void UndelegateSubmission::ArenaDtor(void* object) { @@ -3048,9 +3092,8 @@ void UndelegateSubmission::Clear() { (void) cached_has_bits; node_id_.ClearToEmpty(); - ::memset(&amount_, 0, static_cast( - reinterpret_cast(&method_) - - reinterpret_cast(&amount_)) + sizeof(method_)); + amount_.ClearToEmpty(); + method_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3070,10 +3113,12 @@ const char* UndelegateSubmission::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr); } else goto handle_unusual; continue; - // uint64 amount = 2 [json_name = "amount"]; + // string amount = 2 [json_name = "amount"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.commands.v1.UndelegateSubmission.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -3123,10 +3168,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* UndelegateSubmission::_InternalSerialize( 1, this->_internal_node_id(), target); } - // uint64 amount = 2 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount(), target); + // string amount = 2 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.commands.v1.UndelegateSubmission.amount"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_amount(), target); } // .vega.commands.v1.UndelegateSubmission.Method method = 3 [json_name = "method"]; @@ -3159,10 +3208,10 @@ size_t UndelegateSubmission::ByteSizeLong() const { this->_internal_node_id()); } - // uint64 amount = 2 [json_name = "amount"]; - if (this->amount() != 0) { + // string amount = 2 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_amount()); } @@ -3206,7 +3255,7 @@ void UndelegateSubmission::MergeFrom(const UndelegateSubmission& from) { if (from.node_id().size() > 0) { _internal_set_node_id(from._internal_node_id()); } - if (from.amount() != 0) { + if (from.amount().size() > 0) { _internal_set_amount(from._internal_amount()); } if (from.method() != 0) { @@ -3236,12 +3285,8 @@ void UndelegateSubmission::InternalSwap(UndelegateSubmission* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); node_id_.Swap(&other->node_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UndelegateSubmission, method_) - + sizeof(UndelegateSubmission::method_) - - PROTOBUF_FIELD_OFFSET(UndelegateSubmission, amount_)>( - reinterpret_cast(&amount_), - reinterpret_cast(&other->amount_)); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(method_, other->method_); } ::PROTOBUF_NAMESPACE_ID::Metadata UndelegateSubmission::GetMetadata() const { diff --git a/grpc/clients/cpp/generated/commands/v1/commands.pb.h b/grpc/clients/cpp/generated/commands/v1/commands.pb.h index 062d1449..37df4461 100644 --- a/grpc/clients/cpp/generated/commands/v1/commands.pb.h +++ b/grpc/clients/cpp/generated/commands/v1/commands.pb.h @@ -252,9 +252,9 @@ class OrderSubmission PROTOBUF_FINAL : enum : int { kMarketIdFieldNumber = 1, + kPriceFieldNumber = 2, kReferenceFieldNumber = 8, kPeggedOrderFieldNumber = 9, - kPriceFieldNumber = 2, kSizeFieldNumber = 3, kSideFieldNumber = 4, kTimeInForceFieldNumber = 5, @@ -277,6 +277,22 @@ class OrderSubmission PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: + // string price = 2 [json_name = "price"]; + void clear_price(); + const std::string& price() const; + void set_price(const std::string& value); + void set_price(std::string&& value); + void set_price(const char* value); + void set_price(const char* value, size_t size); + std::string* mutable_price(); + std::string* release_price(); + void set_allocated_price(std::string* price); + private: + const std::string& _internal_price() const; + void _internal_set_price(const std::string& value); + std::string* _internal_mutable_price(); + public: + // string reference = 8 [json_name = "reference"]; void clear_reference(); const std::string& reference() const; @@ -311,15 +327,6 @@ class OrderSubmission PROTOBUF_FINAL : ::vega::PeggedOrder* pegged_order); ::vega::PeggedOrder* unsafe_arena_release_pegged_order(); - // uint64 price = 2 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 size = 3 [json_name = "size", (.validator.field) = { void clear_size(); ::PROTOBUF_NAMESPACE_ID::uint64 size() const; @@ -373,9 +380,9 @@ class OrderSubmission PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr price_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; ::vega::PeggedOrder* pegged_order_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; ::PROTOBUF_NAMESPACE_ID::uint64 size_; int side_; int time_in_force_; @@ -916,9 +923,9 @@ class LiquidityProvisionSubmission PROTOBUF_FINAL : kSellsFieldNumber = 4, kBuysFieldNumber = 5, kMarketIdFieldNumber = 1, + kCommitmentAmountFieldNumber = 2, kFeeFieldNumber = 3, kReferenceFieldNumber = 6, - kCommitmentAmountFieldNumber = 2, }; // repeated .vega.LiquidityOrder sells = 4 [json_name = "sells"]; int sells_size() const; @@ -972,6 +979,22 @@ class LiquidityProvisionSubmission PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: + // string commitment_amount = 2 [json_name = "commitmentAmount"]; + void clear_commitment_amount(); + const std::string& commitment_amount() const; + void set_commitment_amount(const std::string& value); + void set_commitment_amount(std::string&& value); + void set_commitment_amount(const char* value); + void set_commitment_amount(const char* value, size_t size); + std::string* mutable_commitment_amount(); + std::string* release_commitment_amount(); + void set_allocated_commitment_amount(std::string* commitment_amount); + private: + const std::string& _internal_commitment_amount() const; + void _internal_set_commitment_amount(const std::string& value); + std::string* _internal_mutable_commitment_amount(); + public: + // string fee = 3 [json_name = "fee"]; void clear_fee(); const std::string& fee() const; @@ -1004,15 +1027,6 @@ class LiquidityProvisionSubmission PROTOBUF_FINAL : std::string* _internal_mutable_reference(); public: - // uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; - void clear_commitment_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount() const; - void set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_commitment_amount() const; - void _internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.commands.v1.LiquidityProvisionSubmission) private: class _Internal; @@ -1023,9 +1037,9 @@ class LiquidityProvisionSubmission PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrder > sells_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrder > buys_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr commitment_amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fee_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; }; @@ -1143,10 +1157,26 @@ class WithdrawSubmission PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { + kAmountFieldNumber = 1, kAssetFieldNumber = 2, kExtFieldNumber = 3, - kAmountFieldNumber = 1, }; + // string amount = 1 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + // string asset = 2 [json_name = "asset"]; void clear_asset(); const std::string& asset() const; @@ -1181,15 +1211,6 @@ class WithdrawSubmission PROTOBUF_FINAL : ::vega::WithdrawExt* ext); ::vega::WithdrawExt* unsafe_arena_release_ext(); - // uint64 amount = 1 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.commands.v1.WithdrawSubmission) private: class _Internal; @@ -1197,9 +1218,9 @@ class WithdrawSubmission PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; ::vega::WithdrawExt* ext_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; }; @@ -1653,13 +1674,20 @@ class DelegateSubmission PROTOBUF_FINAL : std::string* _internal_mutable_node_id(); public: - // uint64 amount = 2 [json_name = "amount"]; + // string amount = 2 [json_name = "amount"]; void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: // @@protoc_insertion_point(class_scope:vega.commands.v1.DelegateSubmission) @@ -1670,7 +1698,7 @@ class DelegateSubmission PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; }; @@ -1842,13 +1870,20 @@ class UndelegateSubmission PROTOBUF_FINAL : std::string* _internal_mutable_node_id(); public: - // uint64 amount = 2 [json_name = "amount"]; + // string amount = 2 [json_name = "amount"]; void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); public: // .vega.commands.v1.UndelegateSubmission.Method method = 3 [json_name = "method"]; @@ -1868,7 +1903,7 @@ class UndelegateSubmission PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; int method_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_commands_2fv1_2fcommands_2eproto; @@ -2088,25 +2123,66 @@ inline void OrderSubmission::set_allocated_market_id(std::string* market_id) { // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.OrderSubmission.market_id) } -// uint64 price = 2 [json_name = "price"]; +// string price = 2 [json_name = "price"]; inline void OrderSubmission::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 OrderSubmission::_internal_price() const { - return price_; + price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 OrderSubmission::price() const { +inline const std::string& OrderSubmission::price() const { // @@protoc_insertion_point(field_get:vega.commands.v1.OrderSubmission.price) return _internal_price(); } -inline void OrderSubmission::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; -} -inline void OrderSubmission::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void OrderSubmission::set_price(const std::string& value) { _internal_set_price(value); // @@protoc_insertion_point(field_set:vega.commands.v1.OrderSubmission.price) } +inline std::string* OrderSubmission::mutable_price() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.OrderSubmission.price) + return _internal_mutable_price(); +} +inline const std::string& OrderSubmission::_internal_price() const { + return price_.Get(); +} +inline void OrderSubmission::_internal_set_price(const std::string& value) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderSubmission::set_price(std::string&& value) { + + price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.OrderSubmission.price) +} +inline void OrderSubmission::set_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.OrderSubmission.price) +} +inline void OrderSubmission::set_price(const char* value, + size_t size) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.OrderSubmission.price) +} +inline std::string* OrderSubmission::_internal_mutable_price() { + + return price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderSubmission::release_price() { + // @@protoc_insertion_point(field_release:vega.commands.v1.OrderSubmission.price) + return price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderSubmission::set_allocated_price(std::string* price) { + if (price != nullptr) { + + } else { + + } + price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.OrderSubmission.price) +} // uint64 size = 3 [json_name = "size", (.validator.field) = { inline void OrderSubmission::clear_size() { @@ -2954,25 +3030,66 @@ inline void LiquidityProvisionSubmission::set_allocated_market_id(std::string* m // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.LiquidityProvisionSubmission.market_id) } -// uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; +// string commitment_amount = 2 [json_name = "commitmentAmount"]; inline void LiquidityProvisionSubmission::clear_commitment_amount() { - commitment_amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvisionSubmission::_internal_commitment_amount() const { - return commitment_amount_; + commitment_amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvisionSubmission::commitment_amount() const { +inline const std::string& LiquidityProvisionSubmission::commitment_amount() const { // @@protoc_insertion_point(field_get:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) return _internal_commitment_amount(); } -inline void LiquidityProvisionSubmission::_internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - commitment_amount_ = value; -} -inline void LiquidityProvisionSubmission::set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityProvisionSubmission::set_commitment_amount(const std::string& value) { _internal_set_commitment_amount(value); // @@protoc_insertion_point(field_set:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) } +inline std::string* LiquidityProvisionSubmission::mutable_commitment_amount() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) + return _internal_mutable_commitment_amount(); +} +inline const std::string& LiquidityProvisionSubmission::_internal_commitment_amount() const { + return commitment_amount_.Get(); +} +inline void LiquidityProvisionSubmission::_internal_set_commitment_amount(const std::string& value) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LiquidityProvisionSubmission::set_commitment_amount(std::string&& value) { + + commitment_amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) +} +inline void LiquidityProvisionSubmission::set_commitment_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) +} +inline void LiquidityProvisionSubmission::set_commitment_amount(const char* value, + size_t size) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) +} +inline std::string* LiquidityProvisionSubmission::_internal_mutable_commitment_amount() { + + return commitment_amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LiquidityProvisionSubmission::release_commitment_amount() { + // @@protoc_insertion_point(field_release:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) + return commitment_amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LiquidityProvisionSubmission::set_allocated_commitment_amount(std::string* commitment_amount) { + if (commitment_amount != nullptr) { + + } else { + + } + commitment_amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), commitment_amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.LiquidityProvisionSubmission.commitment_amount) +} // string fee = 3 [json_name = "fee"]; inline void LiquidityProvisionSubmission::clear_fee() { @@ -3172,25 +3289,66 @@ inline void LiquidityProvisionSubmission::set_allocated_reference(std::string* r // WithdrawSubmission -// uint64 amount = 1 [json_name = "amount"]; +// string amount = 1 [json_name = "amount"]; inline void WithdrawSubmission::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 WithdrawSubmission::_internal_amount() const { - return amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 WithdrawSubmission::amount() const { +inline const std::string& WithdrawSubmission::amount() const { // @@protoc_insertion_point(field_get:vega.commands.v1.WithdrawSubmission.amount) return _internal_amount(); } -inline void WithdrawSubmission::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void WithdrawSubmission::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void WithdrawSubmission::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.commands.v1.WithdrawSubmission.amount) } +inline std::string* WithdrawSubmission::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.WithdrawSubmission.amount) + return _internal_mutable_amount(); +} +inline const std::string& WithdrawSubmission::_internal_amount() const { + return amount_.Get(); +} +inline void WithdrawSubmission::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void WithdrawSubmission::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.WithdrawSubmission.amount) +} +inline void WithdrawSubmission::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.WithdrawSubmission.amount) +} +inline void WithdrawSubmission::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.WithdrawSubmission.amount) +} +inline std::string* WithdrawSubmission::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* WithdrawSubmission::release_amount() { + // @@protoc_insertion_point(field_release:vega.commands.v1.WithdrawSubmission.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void WithdrawSubmission::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.WithdrawSubmission.amount) +} // string asset = 2 [json_name = "asset"]; inline void WithdrawSubmission::clear_asset() { @@ -3622,25 +3780,66 @@ inline void DelegateSubmission::set_allocated_node_id(std::string* node_id) { // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.DelegateSubmission.node_id) } -// uint64 amount = 2 [json_name = "amount"]; +// string amount = 2 [json_name = "amount"]; inline void DelegateSubmission::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 DelegateSubmission::_internal_amount() const { - return amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 DelegateSubmission::amount() const { +inline const std::string& DelegateSubmission::amount() const { // @@protoc_insertion_point(field_get:vega.commands.v1.DelegateSubmission.amount) return _internal_amount(); } -inline void DelegateSubmission::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void DelegateSubmission::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void DelegateSubmission::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.commands.v1.DelegateSubmission.amount) } +inline std::string* DelegateSubmission::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.DelegateSubmission.amount) + return _internal_mutable_amount(); +} +inline const std::string& DelegateSubmission::_internal_amount() const { + return amount_.Get(); +} +inline void DelegateSubmission::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DelegateSubmission::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.DelegateSubmission.amount) +} +inline void DelegateSubmission::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.DelegateSubmission.amount) +} +inline void DelegateSubmission::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.DelegateSubmission.amount) +} +inline std::string* DelegateSubmission::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DelegateSubmission::release_amount() { + // @@protoc_insertion_point(field_release:vega.commands.v1.DelegateSubmission.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DelegateSubmission::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.DelegateSubmission.amount) +} // ------------------------------------------------------------------- @@ -3707,25 +3906,66 @@ inline void UndelegateSubmission::set_allocated_node_id(std::string* node_id) { // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.UndelegateSubmission.node_id) } -// uint64 amount = 2 [json_name = "amount"]; +// string amount = 2 [json_name = "amount"]; inline void UndelegateSubmission::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 UndelegateSubmission::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 UndelegateSubmission::amount() const { +inline const std::string& UndelegateSubmission::amount() const { // @@protoc_insertion_point(field_get:vega.commands.v1.UndelegateSubmission.amount) return _internal_amount(); } -inline void UndelegateSubmission::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void UndelegateSubmission::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void UndelegateSubmission::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.commands.v1.UndelegateSubmission.amount) } +inline std::string* UndelegateSubmission::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.commands.v1.UndelegateSubmission.amount) + return _internal_mutable_amount(); +} +inline const std::string& UndelegateSubmission::_internal_amount() const { + return amount_.Get(); +} +inline void UndelegateSubmission::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void UndelegateSubmission::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.commands.v1.UndelegateSubmission.amount) +} +inline void UndelegateSubmission::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.commands.v1.UndelegateSubmission.amount) +} +inline void UndelegateSubmission::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.commands.v1.UndelegateSubmission.amount) +} +inline std::string* UndelegateSubmission::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* UndelegateSubmission::release_amount() { + // @@protoc_insertion_point(field_release:vega.commands.v1.UndelegateSubmission.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void UndelegateSubmission::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.commands.v1.UndelegateSubmission.amount) +} // .vega.commands.v1.UndelegateSubmission.Method method = 3 [json_name = "method"]; inline void UndelegateSubmission::clear_method() { diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc index 54ada505..27282ce5 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc @@ -33,6 +33,7 @@ static const char* CoreApiService_method_names[] = { "/vega.coreapi.v1.CoreApiService/ListProposals", "/vega.coreapi.v1.CoreApiService/ListMarketsData", "/vega.coreapi.v1.CoreApiService/ListVotes", + "/vega.coreapi.v1.CoreApiService/ListPartiesStake", }; std::unique_ptr< CoreApiService::Stub> CoreApiService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -51,6 +52,7 @@ CoreApiService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& cha , rpcmethod_ListProposals_(CoreApiService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ListMarketsData_(CoreApiService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ListVotes_(CoreApiService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListPartiesStake_(CoreApiService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status CoreApiService::Stub::ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::vega::coreapi::v1::ListAccountsResponse* response) { @@ -260,6 +262,29 @@ ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* Core return result; } +::grpc::Status CoreApiService::Stub::ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::vega::coreapi::v1::ListPartiesStakeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListPartiesStake_, context, request, response); +} + +void CoreApiService::Stub::experimental_async::ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPartiesStake_, context, request, response, std::move(f)); +} + +void CoreApiService::Stub::experimental_async::ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPartiesStake_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>* CoreApiService::Stub::PrepareAsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::vega::coreapi::v1::ListPartiesStakeResponse, ::vega::coreapi::v1::ListPartiesStakeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListPartiesStake_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>* CoreApiService::Stub::AsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListPartiesStakeRaw(context, request, cq); + result->StartCall(); + return result; +} + CoreApiService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CoreApiService_method_names[0], @@ -351,6 +376,16 @@ CoreApiService::Service::Service() { ::vega::coreapi::v1::ListVotesResponse* resp) { return service->ListVotes(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CoreApiService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CoreApiService::Service, ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CoreApiService::Service* service, + ::grpc::ServerContext* ctx, + const ::vega::coreapi::v1::ListPartiesStakeRequest* req, + ::vega::coreapi::v1::ListPartiesStakeResponse* resp) { + return service->ListPartiesStake(ctx, req, resp); + }, this))); } CoreApiService::Service::~Service() { @@ -419,6 +454,13 @@ ::grpc::Status CoreApiService::Service::ListVotes(::grpc::ServerContext* context return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status CoreApiService::Service::ListPartiesStake(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace vega } // namespace coreapi diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h index 0b5ac6b3..22ca9a7d 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h @@ -101,6 +101,13 @@ class CoreApiService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>> PrepareAsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>>(PrepareAsyncListVotesRaw(context, request, cq)); } + virtual ::grpc::Status ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::vega::coreapi::v1::ListPartiesStakeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>> AsyncListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>>(AsyncListPartiesStakeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>> PrepareAsyncListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>>(PrepareAsyncListPartiesStakeRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -158,6 +165,12 @@ class CoreApiService final { #else virtual void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; #endif + virtual void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL typedef class experimental_async_interface async_interface; @@ -185,6 +198,8 @@ class CoreApiService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListMarketsDataResponse>* PrepareAsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>* AsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListVotesResponse>* PrepareAsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>* AsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::vega::coreapi::v1::ListPartiesStakeResponse>* PrepareAsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -252,6 +267,13 @@ class CoreApiService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>> PrepareAsyncListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>>(PrepareAsyncListVotesRaw(context, request, cq)); } + ::grpc::Status ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::vega::coreapi::v1::ListPartiesStakeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>> AsyncListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>>(AsyncListPartiesStakeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>> PrepareAsyncListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>>(PrepareAsyncListPartiesStakeRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -309,6 +331,12 @@ class CoreApiService final { #else void ListVotes(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; #endif + void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListPartiesStake(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -338,6 +366,8 @@ class CoreApiService final { ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListMarketsDataResponse>* PrepareAsyncListMarketsDataRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* AsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListVotesResponse>* PrepareAsyncListVotesRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListVotesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>* AsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListPartiesStakeResponse>* PrepareAsyncListPartiesStakeRaw(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_ListAccounts_; const ::grpc::internal::RpcMethod rpcmethod_ListAssets_; const ::grpc::internal::RpcMethod rpcmethod_ListNetworkParameters_; @@ -347,6 +377,7 @@ class CoreApiService final { const ::grpc::internal::RpcMethod rpcmethod_ListProposals_; const ::grpc::internal::RpcMethod rpcmethod_ListMarketsData_; const ::grpc::internal::RpcMethod rpcmethod_ListVotes_; + const ::grpc::internal::RpcMethod rpcmethod_ListPartiesStake_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -363,6 +394,7 @@ class CoreApiService final { virtual ::grpc::Status ListProposals(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListProposalsRequest* request, ::vega::coreapi::v1::ListProposalsResponse* response); virtual ::grpc::Status ListMarketsData(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListMarketsDataRequest* request, ::vega::coreapi::v1::ListMarketsDataResponse* response); virtual ::grpc::Status ListVotes(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListVotesRequest* request, ::vega::coreapi::v1::ListVotesResponse* response); + virtual ::grpc::Status ListPartiesStake(::grpc::ServerContext* context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response); }; template class WithAsyncMethod_ListAccounts : public BaseClass { @@ -544,7 +576,27 @@ class CoreApiService final { ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_ListAccounts > > > > > > > > AsyncService; + template + class WithAsyncMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListPartiesStake() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListPartiesStake(::grpc::ServerContext* context, ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::grpc::ServerAsyncResponseWriter< ::vega::coreapi::v1::ListPartiesStakeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListAccounts > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_ListAccounts : public BaseClass { private: @@ -968,11 +1020,58 @@ class CoreApiService final { #endif { return nullptr; } }; + template + class ExperimentalWithCallbackMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListPartiesStake() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::vega::coreapi::v1::ListPartiesStakeRequest* request, ::vega::coreapi::v1::ListPartiesStakeResponse* response) { return this->ListPartiesStake(context, request, response); }));} + void SetMessageAllocatorFor_ListPartiesStake( + ::grpc::experimental::MessageAllocator< ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc::internal::CallbackUnaryHandler< ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListPartiesStake( + ::grpc::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPartiesStake( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) + #endif + { return nullptr; } + }; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL - typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > CallbackService; + typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > > CallbackService; #endif - typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_ListAccounts > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_ListAccounts : public BaseClass { private: @@ -1127,6 +1226,23 @@ class CoreApiService final { } }; template + class WithGenericMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListPartiesStake() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1307,6 +1423,26 @@ class CoreApiService final { } }; template + class WithRawMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListPartiesStake() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListPartiesStake(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1649,6 +1785,44 @@ class CoreApiService final { { return nullptr; } }; template + class ExperimentalWithRawCallbackMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_ListPartiesStake() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPartiesStake(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListPartiesStake( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPartiesStake( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template class WithStreamedUnaryMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1891,9 +2065,36 @@ class CoreApiService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedListVotes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListVotesRequest,::vega::coreapi::v1::ListVotesResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_ListPartiesStake : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListPartiesStake() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::vega::coreapi::v1::ListPartiesStakeRequest, ::vega::coreapi::v1::ListPartiesStakeResponse>* streamer) { + return this->StreamedListPartiesStake(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListPartiesStake() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListPartiesStake(::grpc::ServerContext* /*context*/, const ::vega::coreapi::v1::ListPartiesStakeRequest* /*request*/, ::vega::coreapi::v1::ListPartiesStakeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListPartiesStake(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::vega::coreapi::v1::ListPartiesStakeRequest,::vega::coreapi::v1::ListPartiesStakeResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_ListAccounts > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc index 065ccfc8..b796fa7b 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc @@ -22,6 +22,8 @@ extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal:: extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Proposal_governance_2eproto; extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Vote_governance_2eproto; extern PROTOBUF_INTERNAL_EXPORT_coreapi_2fv1_2fcoreapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_coreapi_2fv1_2fcoreapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StakeLinking_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto; namespace vega { namespace coreapi { @@ -102,6 +104,18 @@ class ListVotesResponseDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ListVotesResponse_default_instance_; +class PartyStakeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PartyStake_default_instance_; +class ListPartiesStakeRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListPartiesStakeRequest_default_instance_; +class ListPartiesStakeResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ListPartiesStakeResponse_default_instance_; } // namespace v1 } // namespace coreapi } // namespace vega @@ -280,6 +294,33 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListPartiesResponse_corea {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto}, { &scc_info_Party_vega_2eproto.base,}}; +static void InitDefaultsscc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListPartiesStakeRequest_default_instance_; + new (ptr) ::vega::coreapi::v1::ListPartiesStakeRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto}, {}}; + +static void InitDefaultsscc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_ListPartiesStakeResponse_default_instance_; + new (ptr) ::vega::coreapi::v1::ListPartiesStakeResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto.base,}}; + static void InitDefaultsscc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -361,7 +402,21 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListVotesResponse_coreapi {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto}, { &scc_info_Vote_governance_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto[19]; +static void InitDefaultsscc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::vega::coreapi::v1::_PartyStake_default_instance_; + new (ptr) ::vega::coreapi::v1::PartyStake(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto}, { + &scc_info_StakeLinking_events_2fv1_2fevents_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto[22]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto = nullptr; @@ -485,6 +540,26 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_coreapi_2fv1_2fcoreapi_2eproto ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListVotesResponse, votes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::PartyStake, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::PartyStake, party_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::PartyStake, current_stake_available_), + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::PartyStake, stake_linkings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesStakeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesStakeRequest, party_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesStakeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::vega::coreapi::v1::ListPartiesStakeResponse, parties_stake_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::coreapi::v1::Account)}, @@ -506,6 +581,9 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 100, -1, sizeof(::vega::coreapi::v1::ListMarketsDataResponse)}, { 106, -1, sizeof(::vega::coreapi::v1::ListVotesRequest)}, { 113, -1, sizeof(::vega::coreapi::v1::ListVotesResponse)}, + { 119, -1, sizeof(::vega::coreapi::v1::PartyStake)}, + { 127, -1, sizeof(::vega::coreapi::v1::ListPartiesStakeRequest)}, + { 133, -1, sizeof(::vega::coreapi::v1::ListPartiesStakeResponse)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -528,6 +606,9 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::vega::coreapi::v1::_ListMarketsDataResponse_default_instance_), reinterpret_cast(&::vega::coreapi::v1::_ListVotesRequest_default_instance_), reinterpret_cast(&::vega::coreapi::v1::_ListVotesResponse_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_PartyStake_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListPartiesStakeRequest_default_instance_), + reinterpret_cast(&::vega::coreapi::v1::_ListPartiesStakeResponse_default_instance_), }; const char descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -566,31 +647,41 @@ const char descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto[] PROTOBUF_S "\n\020ListVotesRequest\022\032\n\010proposal\030\001 \001(\tR\010pr" "oposal\022\024\n\005party\030\002 \001(\tR\005party\"5\n\021ListVote" "sResponse\022 \n\005votes\030\001 \003(\0132\n.vega.VoteR\005vo" - "tes2\355\006\n\016CoreApiService\022[\n\014ListAccounts\022$" - ".vega.coreapi.v1.ListAccountsRequest\032%.v" - "ega.coreapi.v1.ListAccountsResponse\022U\n\nL" - "istAssets\022\".vega.coreapi.v1.ListAssetsRe" - "quest\032#.vega.coreapi.v1.ListAssetsRespon" - "se\022v\n\025ListNetworkParameters\022-.vega.corea" - "pi.v1.ListNetworkParametersRequest\032..veg" - "a.coreapi.v1.ListNetworkParametersRespon" - "se\022X\n\013ListParties\022#.vega.coreapi.v1.List" - "PartiesRequest\032$.vega.coreapi.v1.ListPar" - "tiesResponse\022a\n\016ListValidators\022&.vega.co" - "reapi.v1.ListValidatorsRequest\032\'.vega.co" - "reapi.v1.ListValidatorsResponse\022X\n\013ListM" - "arkets\022#.vega.coreapi.v1.ListMarketsRequ" - "est\032$.vega.coreapi.v1.ListMarketsRespons" - "e\022^\n\rListProposals\022%.vega.coreapi.v1.Lis" - "tProposalsRequest\032&.vega.coreapi.v1.List" - "ProposalsResponse\022d\n\017ListMarketsData\022\'.v" - "ega.coreapi.v1.ListMarketsDataRequest\032(." - "vega.coreapi.v1.ListMarketsDataResponse\022" - "R\n\tListVotes\022!.vega.coreapi.v1.ListVotes" - "Request\032\".vega.coreapi.v1.ListVotesRespo" - "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" - "code.vegaprotocol.io/vega/proto/coreapi/" - "v1b\006proto3" + "tes\"\237\001\n\nPartyStake\022\024\n\005party\030\001 \001(\tR\005party" + "\0226\n\027current_stake_available\030\002 \001(\tR\025curre" + "ntStakeAvailable\022C\n\016stake_linkings\030\003 \003(\013" + "2\034.vega.events.v1.StakeLinkingR\rstakeLin" + "kings\"/\n\027ListPartiesStakeRequest\022\024\n\005part" + "y\030\001 \001(\tR\005party\"\\\n\030ListPartiesStakeRespon" + "se\022@\n\rparties_stake\030\001 \003(\0132\033.vega.coreapi" + ".v1.PartyStakeR\014partiesStake2\326\007\n\016CoreApi" + "Service\022[\n\014ListAccounts\022$.vega.coreapi.v" + "1.ListAccountsRequest\032%.vega.coreapi.v1." + "ListAccountsResponse\022U\n\nListAssets\022\".veg" + "a.coreapi.v1.ListAssetsRequest\032#.vega.co" + "reapi.v1.ListAssetsResponse\022v\n\025ListNetwo" + "rkParameters\022-.vega.coreapi.v1.ListNetwo" + "rkParametersRequest\032..vega.coreapi.v1.Li" + "stNetworkParametersResponse\022X\n\013ListParti" + "es\022#.vega.coreapi.v1.ListPartiesRequest\032" + "$.vega.coreapi.v1.ListPartiesResponse\022a\n" + "\016ListValidators\022&.vega.coreapi.v1.ListVa" + "lidatorsRequest\032\'.vega.coreapi.v1.ListVa" + "lidatorsResponse\022X\n\013ListMarkets\022#.vega.c" + "oreapi.v1.ListMarketsRequest\032$.vega.core" + "api.v1.ListMarketsResponse\022^\n\rListPropos" + "als\022%.vega.coreapi.v1.ListProposalsReque" + "st\032&.vega.coreapi.v1.ListProposalsRespon" + "se\022d\n\017ListMarketsData\022\'.vega.coreapi.v1." + "ListMarketsDataRequest\032(.vega.coreapi.v1" + ".ListMarketsDataResponse\022R\n\tListVotes\022!." + "vega.coreapi.v1.ListVotesRequest\032\".vega." + "coreapi.v1.ListVotesResponse\022g\n\020ListPart" + "iesStake\022(.vega.coreapi.v1.ListPartiesSt" + "akeRequest\032).vega.coreapi.v1.ListParties" + "StakeResponseBM\n\037io.vegaprotocol.vega.co" + "reapi.v1Z*code.vegaprotocol.io/vega/prot" + "o/coreapi/v1b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps[5] = { &::descriptor_table_assets_2eproto, @@ -599,7 +690,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_markets_2eproto, &::descriptor_table_vega_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs[19] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs[22] = { &scc_info_Account_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListAccountsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListAccountsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, @@ -613,19 +704,22 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_cor &scc_info_ListNetworkParametersResponse_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListPartiesRequest_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListPartiesResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListProposalsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListProposalsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListValidatorsRequest_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListValidatorsResponse_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListVotesRequest_coreapi_2fv1_2fcoreapi_2eproto.base, &scc_info_ListVotesResponse_coreapi_2fv1_2fcoreapi_2eproto.base, + &scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_coreapi_2fv1_2fcoreapi_2eproto = { - false, false, descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto, "coreapi/v1/coreapi.proto", 2370, - &descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps, 19, 5, + false, false, descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto, "coreapi/v1/coreapi.proto", 2780, + &descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps, 22, 5, schemas, file_default_instances, TableStruct_coreapi_2fv1_2fcoreapi_2eproto::offsets, - file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto, 19, file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto, file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto, + file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto, 22, file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto, file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -4696,67 +4790,761 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListVotesResponse::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace coreapi -} // namespace vega -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::Account* Arena::CreateMaybeMessage< ::vega::coreapi::v1::Account >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::Account >(arena); +// =================================================================== + +class PartyStake::_Internal { + public: +}; + +void PartyStake::clear_stake_linkings() { + stake_linkings_.Clear(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsRequest >(arena); +PartyStake::PartyStake(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + stake_linkings_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.PartyStake) } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsResponse >(arena); +PartyStake::PartyStake(const PartyStake& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + stake_linkings_(from.stake_linkings_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + current_stake_available_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_current_stake_available().empty()) { + current_stake_available_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_current_stake_available(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.PartyStake) } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsRequest >(arena); + +void PartyStake::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + current_stake_available_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsResponse >(arena); + +PartyStake::~PartyStake() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.PartyStake) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersRequest >(arena); + +void PartyStake::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + current_stake_available_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersResponse >(arena); + +void PartyStake::ArenaDtor(void* object) { + PartyStake* _this = reinterpret_cast< PartyStake* >(object); + (void)_this; } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesRequest >(arena); +void PartyStake::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesResponse >(arena); +void PartyStake::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsRequest >(arena); +const PartyStake& PartyStake::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartyStake_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsResponse >(arena); + + +void PartyStake::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.PartyStake) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stake_linkings_.Clear(); + party_.ClearToEmpty(); + current_stake_available_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsRequest >(arena); + +const char* PartyStake::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.PartyStake.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_current_stake_available(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.PartyStake.current_stake_available")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_stake_linkings(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsResponse >(arena); + +::PROTOBUF_NAMESPACE_ID::uint8* PartyStake::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.PartyStake) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.PartyStake.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + // string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + if (this->current_stake_available().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_current_stake_available().data(), static_cast(this->_internal_current_stake_available().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.PartyStake.current_stake_available"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_current_stake_available(), target); + } + + // repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_stake_linkings_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_stake_linkings(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.PartyStake) + return target; } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsRequest >(arena); + +size_t PartyStake::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.PartyStake) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + total_size += 1UL * this->_internal_stake_linkings_size(); + for (const auto& msg : this->stake_linkings_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + // string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + if (this->current_stake_available().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_current_stake_available()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsResponse >(arena); + +void PartyStake::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.PartyStake) + GOOGLE_DCHECK_NE(&from, this); + const PartyStake* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.PartyStake) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.PartyStake) + MergeFrom(*source); + } } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataRequest >(arena); + +void PartyStake::MergeFrom(const PartyStake& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.PartyStake) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + stake_linkings_.MergeFrom(from.stake_linkings_); + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } + if (from.current_stake_available().size() > 0) { + _internal_set_current_stake_available(from._internal_current_stake_available()); + } } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataResponse >(arena); + +void PartyStake::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.PartyStake) + if (&from == this) return; + Clear(); + MergeFrom(from); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesRequest >(arena); + +void PartyStake::CopyFrom(const PartyStake& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.PartyStake) + if (&from == this) return; + Clear(); + MergeFrom(from); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesResponse >(arena); + +bool PartyStake::IsInitialized() const { + return true; +} + +void PartyStake::InternalSwap(PartyStake* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + stake_linkings_.InternalSwap(&other->stake_linkings_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + current_stake_available_.Swap(&other->current_stake_available_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PartyStake::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListPartiesStakeRequest::_Internal { + public: +}; + +ListPartiesStakeRequest::ListPartiesStakeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListPartiesStakeRequest) +} +ListPartiesStakeRequest::ListPartiesStakeRequest(const ListPartiesStakeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_party().empty()) { + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListPartiesStakeRequest) +} + +void ListPartiesStakeRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + party_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ListPartiesStakeRequest::~ListPartiesStakeRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListPartiesStakeRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListPartiesStakeRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + party_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListPartiesStakeRequest::ArenaDtor(void* object) { + ListPartiesStakeRequest* _this = reinterpret_cast< ListPartiesStakeRequest* >(object); + (void)_this; +} +void ListPartiesStakeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListPartiesStakeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListPartiesStakeRequest& ListPartiesStakeRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListPartiesStakeRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListPartiesStakeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListPartiesStakeRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + party_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPartiesStakeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string party = 1 [json_name = "party"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_party(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.coreapi.v1.ListPartiesStakeRequest.party")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListPartiesStakeRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListPartiesStakeRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_party().data(), static_cast(this->_internal_party().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.coreapi.v1.ListPartiesStakeRequest.party"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_party(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListPartiesStakeRequest) + return target; +} + +size_t ListPartiesStakeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListPartiesStakeRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string party = 1 [json_name = "party"]; + if (this->party().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListPartiesStakeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListPartiesStakeRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListPartiesStakeRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListPartiesStakeRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListPartiesStakeRequest) + MergeFrom(*source); + } +} + +void ListPartiesStakeRequest::MergeFrom(const ListPartiesStakeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListPartiesStakeRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.party().size() > 0) { + _internal_set_party(from._internal_party()); + } +} + +void ListPartiesStakeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListPartiesStakeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListPartiesStakeRequest::CopyFrom(const ListPartiesStakeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListPartiesStakeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListPartiesStakeRequest::IsInitialized() const { + return true; +} + +void ListPartiesStakeRequest::InternalSwap(ListPartiesStakeRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + party_.Swap(&other->party_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListPartiesStakeRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ListPartiesStakeResponse::_Internal { + public: +}; + +ListPartiesStakeResponse::ListPartiesStakeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + parties_stake_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:vega.coreapi.v1.ListPartiesStakeResponse) +} +ListPartiesStakeResponse::ListPartiesStakeResponse(const ListPartiesStakeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + parties_stake_(from.parties_stake_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:vega.coreapi.v1.ListPartiesStakeResponse) +} + +void ListPartiesStakeResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto.base); +} + +ListPartiesStakeResponse::~ListPartiesStakeResponse() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListPartiesStakeResponse) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ListPartiesStakeResponse::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ListPartiesStakeResponse::ArenaDtor(void* object) { + ListPartiesStakeResponse* _this = reinterpret_cast< ListPartiesStakeResponse* >(object); + (void)_this; +} +void ListPartiesStakeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListPartiesStakeResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListPartiesStakeResponse& ListPartiesStakeResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListPartiesStakeResponse_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); +} + + +void ListPartiesStakeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:vega.coreapi.v1.ListPartiesStakeResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parties_stake_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPartiesStakeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parties_stake(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ListPartiesStakeResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:vega.coreapi.v1.ListPartiesStakeResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_parties_stake_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_parties_stake(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:vega.coreapi.v1.ListPartiesStakeResponse) + return target; +} + +size_t ListPartiesStakeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:vega.coreapi.v1.ListPartiesStakeResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + total_size += 1UL * this->_internal_parties_stake_size(); + for (const auto& msg : this->parties_stake_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListPartiesStakeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:vega.coreapi.v1.ListPartiesStakeResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListPartiesStakeResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:vega.coreapi.v1.ListPartiesStakeResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:vega.coreapi.v1.ListPartiesStakeResponse) + MergeFrom(*source); + } +} + +void ListPartiesStakeResponse::MergeFrom(const ListPartiesStakeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:vega.coreapi.v1.ListPartiesStakeResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parties_stake_.MergeFrom(from.parties_stake_); +} + +void ListPartiesStakeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:vega.coreapi.v1.ListPartiesStakeResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListPartiesStakeResponse::CopyFrom(const ListPartiesStakeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:vega.coreapi.v1.ListPartiesStakeResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListPartiesStakeResponse::IsInitialized() const { + return true; +} + +void ListPartiesStakeResponse::InternalSwap(ListPartiesStakeResponse* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + parties_stake_.InternalSwap(&other->parties_stake_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListPartiesStakeResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace coreapi +} // namespace vega +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::Account* Arena::CreateMaybeMessage< ::vega::coreapi::v1::Account >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::Account >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListProposalsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListProposalsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListProposalsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListMarketsDataResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListMarketsDataResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListMarketsDataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListVotesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListVotesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListVotesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::PartyStake* Arena::CreateMaybeMessage< ::vega::coreapi::v1::PartyStake >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::PartyStake >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesStakeRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesStakeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesStakeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesStakeResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesStakeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesStakeResponse >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h index b3e0233b..c5adc6d4 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h @@ -51,7 +51,7 @@ struct TableStruct_coreapi_2fv1_2fcoreapi_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[19] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[22] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -100,6 +100,12 @@ extern ListPartiesRequestDefaultTypeInternal _ListPartiesRequest_default_instanc class ListPartiesResponse; class ListPartiesResponseDefaultTypeInternal; extern ListPartiesResponseDefaultTypeInternal _ListPartiesResponse_default_instance_; +class ListPartiesStakeRequest; +class ListPartiesStakeRequestDefaultTypeInternal; +extern ListPartiesStakeRequestDefaultTypeInternal _ListPartiesStakeRequest_default_instance_; +class ListPartiesStakeResponse; +class ListPartiesStakeResponseDefaultTypeInternal; +extern ListPartiesStakeResponseDefaultTypeInternal _ListPartiesStakeResponse_default_instance_; class ListProposalsRequest; class ListProposalsRequestDefaultTypeInternal; extern ListProposalsRequestDefaultTypeInternal _ListProposalsRequest_default_instance_; @@ -118,6 +124,9 @@ extern ListVotesRequestDefaultTypeInternal _ListVotesRequest_default_instance_; class ListVotesResponse; class ListVotesResponseDefaultTypeInternal; extern ListVotesResponseDefaultTypeInternal _ListVotesResponse_default_instance_; +class PartyStake; +class PartyStakeDefaultTypeInternal; +extern PartyStakeDefaultTypeInternal _PartyStake_default_instance_; } // namespace v1 } // namespace coreapi } // namespace vega @@ -135,12 +144,15 @@ template<> ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybe template<> ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListNetworkParametersResponse>(Arena*); template<> ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesRequest>(Arena*); template<> ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesResponse>(Arena*); +template<> ::vega::coreapi::v1::ListPartiesStakeRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesStakeRequest>(Arena*); +template<> ::vega::coreapi::v1::ListPartiesStakeResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListPartiesStakeResponse>(Arena*); template<> ::vega::coreapi::v1::ListProposalsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListProposalsRequest>(Arena*); template<> ::vega::coreapi::v1::ListProposalsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListProposalsResponse>(Arena*); template<> ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListValidatorsRequest>(Arena*); template<> ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListValidatorsResponse>(Arena*); template<> ::vega::coreapi::v1::ListVotesRequest* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListVotesRequest>(Arena*); template<> ::vega::coreapi::v1::ListVotesResponse* Arena::CreateMaybeMessage<::vega::coreapi::v1::ListVotesResponse>(Arena*); +template<> ::vega::coreapi::v1::PartyStake* Arena::CreateMaybeMessage<::vega::coreapi::v1::PartyStake>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace vega { namespace coreapi { @@ -2967,6 +2979,475 @@ class ListVotesResponse PROTOBUF_FINAL : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; }; +// ------------------------------------------------------------------- + +class PartyStake PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.PartyStake) */ { + public: + inline PartyStake() : PartyStake(nullptr) {} + virtual ~PartyStake(); + + PartyStake(const PartyStake& from); + PartyStake(PartyStake&& from) noexcept + : PartyStake() { + *this = ::std::move(from); + } + + inline PartyStake& operator=(const PartyStake& from) { + CopyFrom(from); + return *this; + } + inline PartyStake& operator=(PartyStake&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const PartyStake& default_instance(); + + static inline const PartyStake* internal_default_instance() { + return reinterpret_cast( + &_PartyStake_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(PartyStake& a, PartyStake& b) { + a.Swap(&b); + } + inline void Swap(PartyStake* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PartyStake* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PartyStake* New() const final { + return CreateMaybeMessage(nullptr); + } + + PartyStake* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PartyStake& from); + void MergeFrom(const PartyStake& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PartyStake* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.PartyStake"; + } + protected: + explicit PartyStake(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStakeLinkingsFieldNumber = 3, + kPartyFieldNumber = 1, + kCurrentStakeAvailableFieldNumber = 2, + }; + // repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + int stake_linkings_size() const; + private: + int _internal_stake_linkings_size() const; + public: + void clear_stake_linkings(); + ::vega::events::v1::StakeLinking* mutable_stake_linkings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::StakeLinking >* + mutable_stake_linkings(); + private: + const ::vega::events::v1::StakeLinking& _internal_stake_linkings(int index) const; + ::vega::events::v1::StakeLinking* _internal_add_stake_linkings(); + public: + const ::vega::events::v1::StakeLinking& stake_linkings(int index) const; + ::vega::events::v1::StakeLinking* add_stake_linkings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::StakeLinking >& + stake_linkings() const; + + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + void clear_current_stake_available(); + const std::string& current_stake_available() const; + void set_current_stake_available(const std::string& value); + void set_current_stake_available(std::string&& value); + void set_current_stake_available(const char* value); + void set_current_stake_available(const char* value, size_t size); + std::string* mutable_current_stake_available(); + std::string* release_current_stake_available(); + void set_allocated_current_stake_available(std::string* current_stake_available); + private: + const std::string& _internal_current_stake_available() const; + void _internal_set_current_stake_available(const std::string& value); + std::string* _internal_mutable_current_stake_available(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.PartyStake) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::StakeLinking > stake_linkings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_stake_available_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListPartiesStakeRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListPartiesStakeRequest) */ { + public: + inline ListPartiesStakeRequest() : ListPartiesStakeRequest(nullptr) {} + virtual ~ListPartiesStakeRequest(); + + ListPartiesStakeRequest(const ListPartiesStakeRequest& from); + ListPartiesStakeRequest(ListPartiesStakeRequest&& from) noexcept + : ListPartiesStakeRequest() { + *this = ::std::move(from); + } + + inline ListPartiesStakeRequest& operator=(const ListPartiesStakeRequest& from) { + CopyFrom(from); + return *this; + } + inline ListPartiesStakeRequest& operator=(ListPartiesStakeRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListPartiesStakeRequest& default_instance(); + + static inline const ListPartiesStakeRequest* internal_default_instance() { + return reinterpret_cast( + &_ListPartiesStakeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(ListPartiesStakeRequest& a, ListPartiesStakeRequest& b) { + a.Swap(&b); + } + inline void Swap(ListPartiesStakeRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListPartiesStakeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListPartiesStakeRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListPartiesStakeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListPartiesStakeRequest& from); + void MergeFrom(const ListPartiesStakeRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListPartiesStakeRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListPartiesStakeRequest"; + } + protected: + explicit ListPartiesStakeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartyFieldNumber = 1, + }; + // string party = 1 [json_name = "party"]; + void clear_party(); + const std::string& party() const; + void set_party(const std::string& value); + void set_party(std::string&& value); + void set_party(const char* value); + void set_party(const char* value, size_t size); + std::string* mutable_party(); + std::string* release_party(); + void set_allocated_party(std::string* party); + private: + const std::string& _internal_party() const; + void _internal_set_party(const std::string& value); + std::string* _internal_mutable_party(); + public: + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; +// ------------------------------------------------------------------- + +class ListPartiesStakeResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:vega.coreapi.v1.ListPartiesStakeResponse) */ { + public: + inline ListPartiesStakeResponse() : ListPartiesStakeResponse(nullptr) {} + virtual ~ListPartiesStakeResponse(); + + ListPartiesStakeResponse(const ListPartiesStakeResponse& from); + ListPartiesStakeResponse(ListPartiesStakeResponse&& from) noexcept + : ListPartiesStakeResponse() { + *this = ::std::move(from); + } + + inline ListPartiesStakeResponse& operator=(const ListPartiesStakeResponse& from) { + CopyFrom(from); + return *this; + } + inline ListPartiesStakeResponse& operator=(ListPartiesStakeResponse&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListPartiesStakeResponse& default_instance(); + + static inline const ListPartiesStakeResponse* internal_default_instance() { + return reinterpret_cast( + &_ListPartiesStakeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(ListPartiesStakeResponse& a, ListPartiesStakeResponse& b) { + a.Swap(&b); + } + inline void Swap(ListPartiesStakeResponse* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListPartiesStakeResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListPartiesStakeResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListPartiesStakeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListPartiesStakeResponse& from); + void MergeFrom(const ListPartiesStakeResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListPartiesStakeResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "vega.coreapi.v1.ListPartiesStakeResponse"; + } + protected: + explicit ListPartiesStakeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto); + return ::descriptor_table_coreapi_2fv1_2fcoreapi_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartiesStakeFieldNumber = 1, + }; + // repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + int parties_stake_size() const; + private: + int _internal_parties_stake_size() const; + public: + void clear_parties_stake(); + ::vega::coreapi::v1::PartyStake* mutable_parties_stake(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::PartyStake >* + mutable_parties_stake(); + private: + const ::vega::coreapi::v1::PartyStake& _internal_parties_stake(int index) const; + ::vega::coreapi::v1::PartyStake* _internal_add_parties_stake(); + public: + const ::vega::coreapi::v1::PartyStake& parties_stake(int index) const; + ::vega::coreapi::v1::PartyStake* add_parties_stake(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::PartyStake >& + parties_stake() const; + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::PartyStake > parties_stake_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_coreapi_2fv1_2fcoreapi_2eproto; +}; // =================================================================== @@ -4292,6 +4773,276 @@ ListVotesResponse::votes() const { return votes_; } +// ------------------------------------------------------------------- + +// PartyStake + +// string party = 1 [json_name = "party"]; +inline void PartyStake::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& PartyStake::party() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.PartyStake.party) + return _internal_party(); +} +inline void PartyStake::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.PartyStake.party) +} +inline std::string* PartyStake::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.PartyStake.party) + return _internal_mutable_party(); +} +inline const std::string& PartyStake::_internal_party() const { + return party_.Get(); +} +inline void PartyStake::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PartyStake::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.PartyStake.party) +} +inline void PartyStake::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.PartyStake.party) +} +inline void PartyStake::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.PartyStake.party) +} +inline std::string* PartyStake::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PartyStake::release_party() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.PartyStake.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PartyStake::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.PartyStake.party) +} + +// string current_stake_available = 2 [json_name = "currentStakeAvailable"]; +inline void PartyStake::clear_current_stake_available() { + current_stake_available_.ClearToEmpty(); +} +inline const std::string& PartyStake::current_stake_available() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.PartyStake.current_stake_available) + return _internal_current_stake_available(); +} +inline void PartyStake::set_current_stake_available(const std::string& value) { + _internal_set_current_stake_available(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.PartyStake.current_stake_available) +} +inline std::string* PartyStake::mutable_current_stake_available() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.PartyStake.current_stake_available) + return _internal_mutable_current_stake_available(); +} +inline const std::string& PartyStake::_internal_current_stake_available() const { + return current_stake_available_.Get(); +} +inline void PartyStake::_internal_set_current_stake_available(const std::string& value) { + + current_stake_available_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PartyStake::set_current_stake_available(std::string&& value) { + + current_stake_available_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.PartyStake.current_stake_available) +} +inline void PartyStake::set_current_stake_available(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + current_stake_available_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.PartyStake.current_stake_available) +} +inline void PartyStake::set_current_stake_available(const char* value, + size_t size) { + + current_stake_available_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.PartyStake.current_stake_available) +} +inline std::string* PartyStake::_internal_mutable_current_stake_available() { + + return current_stake_available_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PartyStake::release_current_stake_available() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.PartyStake.current_stake_available) + return current_stake_available_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PartyStake::set_allocated_current_stake_available(std::string* current_stake_available) { + if (current_stake_available != nullptr) { + + } else { + + } + current_stake_available_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), current_stake_available, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.PartyStake.current_stake_available) +} + +// repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; +inline int PartyStake::_internal_stake_linkings_size() const { + return stake_linkings_.size(); +} +inline int PartyStake::stake_linkings_size() const { + return _internal_stake_linkings_size(); +} +inline ::vega::events::v1::StakeLinking* PartyStake::mutable_stake_linkings(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.PartyStake.stake_linkings) + return stake_linkings_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::StakeLinking >* +PartyStake::mutable_stake_linkings() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.PartyStake.stake_linkings) + return &stake_linkings_; +} +inline const ::vega::events::v1::StakeLinking& PartyStake::_internal_stake_linkings(int index) const { + return stake_linkings_.Get(index); +} +inline const ::vega::events::v1::StakeLinking& PartyStake::stake_linkings(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.PartyStake.stake_linkings) + return _internal_stake_linkings(index); +} +inline ::vega::events::v1::StakeLinking* PartyStake::_internal_add_stake_linkings() { + return stake_linkings_.Add(); +} +inline ::vega::events::v1::StakeLinking* PartyStake::add_stake_linkings() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.PartyStake.stake_linkings) + return _internal_add_stake_linkings(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::events::v1::StakeLinking >& +PartyStake::stake_linkings() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.PartyStake.stake_linkings) + return stake_linkings_; +} + +// ------------------------------------------------------------------- + +// ListPartiesStakeRequest + +// string party = 1 [json_name = "party"]; +inline void ListPartiesStakeRequest::clear_party() { + party_.ClearToEmpty(); +} +inline const std::string& ListPartiesStakeRequest::party() const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListPartiesStakeRequest.party) + return _internal_party(); +} +inline void ListPartiesStakeRequest::set_party(const std::string& value) { + _internal_set_party(value); + // @@protoc_insertion_point(field_set:vega.coreapi.v1.ListPartiesStakeRequest.party) +} +inline std::string* ListPartiesStakeRequest::mutable_party() { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListPartiesStakeRequest.party) + return _internal_mutable_party(); +} +inline const std::string& ListPartiesStakeRequest::_internal_party() const { + return party_.Get(); +} +inline void ListPartiesStakeRequest::_internal_set_party(const std::string& value) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListPartiesStakeRequest::set_party(std::string&& value) { + + party_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.coreapi.v1.ListPartiesStakeRequest.party) +} +inline void ListPartiesStakeRequest::set_party(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.coreapi.v1.ListPartiesStakeRequest.party) +} +inline void ListPartiesStakeRequest::set_party(const char* value, + size_t size) { + + party_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.coreapi.v1.ListPartiesStakeRequest.party) +} +inline std::string* ListPartiesStakeRequest::_internal_mutable_party() { + + return party_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListPartiesStakeRequest::release_party() { + // @@protoc_insertion_point(field_release:vega.coreapi.v1.ListPartiesStakeRequest.party) + return party_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListPartiesStakeRequest::set_allocated_party(std::string* party) { + if (party != nullptr) { + + } else { + + } + party_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), party, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.coreapi.v1.ListPartiesStakeRequest.party) +} + +// ------------------------------------------------------------------- + +// ListPartiesStakeResponse + +// repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; +inline int ListPartiesStakeResponse::_internal_parties_stake_size() const { + return parties_stake_.size(); +} +inline int ListPartiesStakeResponse::parties_stake_size() const { + return _internal_parties_stake_size(); +} +inline void ListPartiesStakeResponse::clear_parties_stake() { + parties_stake_.Clear(); +} +inline ::vega::coreapi::v1::PartyStake* ListPartiesStakeResponse::mutable_parties_stake(int index) { + // @@protoc_insertion_point(field_mutable:vega.coreapi.v1.ListPartiesStakeResponse.parties_stake) + return parties_stake_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::PartyStake >* +ListPartiesStakeResponse::mutable_parties_stake() { + // @@protoc_insertion_point(field_mutable_list:vega.coreapi.v1.ListPartiesStakeResponse.parties_stake) + return &parties_stake_; +} +inline const ::vega::coreapi::v1::PartyStake& ListPartiesStakeResponse::_internal_parties_stake(int index) const { + return parties_stake_.Get(index); +} +inline const ::vega::coreapi::v1::PartyStake& ListPartiesStakeResponse::parties_stake(int index) const { + // @@protoc_insertion_point(field_get:vega.coreapi.v1.ListPartiesStakeResponse.parties_stake) + return _internal_parties_stake(index); +} +inline ::vega::coreapi::v1::PartyStake* ListPartiesStakeResponse::_internal_add_parties_stake() { + return parties_stake_.Add(); +} +inline ::vega::coreapi::v1::PartyStake* ListPartiesStakeResponse::add_parties_stake() { + // @@protoc_insertion_point(field_add:vega.coreapi.v1.ListPartiesStakeResponse.parties_stake) + return _internal_add_parties_stake(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::coreapi::v1::PartyStake >& +ListPartiesStakeResponse::parties_stake() const { + // @@protoc_insertion_point(field_list:vega.coreapi.v1.ListPartiesStakeResponse.parties_stake) + return parties_stake_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -4331,6 +5082,12 @@ ListVotesResponse::votes() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/grpc/clients/cpp/generated/events/v1/events.pb.cc b/grpc/clients/cpp/generated/events/v1/events.pb.cc index 58d748c1..a6c8d09c 100644 --- a/grpc/clients/cpp/generated/events/v1/events.pb.cc +++ b/grpc/clients/cpp/generated/events/v1/events.pb.cc @@ -32,12 +32,15 @@ extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal:: extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TransferResponse_vega_2eproto; extern PROTOBUF_INTERNAL_EXPORT_governance_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Vote_governance_2eproto; extern PROTOBUF_INTERNAL_EXPORT_vega_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_vega_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fvalidator_5fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeSignature_commands_2fv1_2fvalidator_5fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_commands_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuctionEvent_events_2fv1_2fevents_2eproto; @@ -55,7 +58,7 @@ extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPAC extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeUpdate_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TradeSettlement_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransferResponses_events_2fv1_2fevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<10> scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_events_2fv1_2fevents_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidatorUpdate_events_2fv1_2fevents_2eproto; namespace vega { @@ -412,15 +415,18 @@ static void InitDefaultsscc_info_TxErrorEvent_events_2fv1_2fevents_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 7, 0, InitDefaultsscc_info_TxErrorEvent_events_2fv1_2fevents_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<10> scc_info_TxErrorEvent_events_2fv1_2fevents_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 10, 0, InitDefaultsscc_info_TxErrorEvent_events_2fv1_2fevents_2eproto}, { &scc_info_OrderSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderAmendment_commands_2fv1_2fcommands_2eproto.base, &scc_info_OrderCancellation_commands_2fv1_2fcommands_2eproto.base, &scc_info_ProposalSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_VoteSubmission_commands_2fv1_2fcommands_2eproto.base, &scc_info_LiquidityProvisionSubmission_commands_2fv1_2fcommands_2eproto.base, - &scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base,}}; + &scc_info_WithdrawSubmission_commands_2fv1_2fcommands_2eproto.base, + &scc_info_DelegateSubmission_commands_2fv1_2fcommands_2eproto.base, + &scc_info_UndelegateSubmission_commands_2fv1_2fcommands_2eproto.base, + &scc_info_RestoreSnapshot_commands_2fv1_2fcommands_2eproto.base,}}; static void InitDefaultsscc_info_ValidatorScoreEvent_events_2fv1_2fevents_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -534,6 +540,9 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_events_2fv1_2fevents_2eproto:: ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::vega::events::v1::TxErrorEvent, transaction_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::events::v1::TimeUpdate, _internal_metadata_), @@ -682,18 +691,18 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 50, -1, sizeof(::vega::events::v1::PendingDelegationBalanceEvent)}, { 60, -1, sizeof(::vega::events::v1::MarketEvent)}, { 67, -1, sizeof(::vega::events::v1::TxErrorEvent)}, - { 82, -1, sizeof(::vega::events::v1::TimeUpdate)}, - { 88, -1, sizeof(::vega::events::v1::EpochEvent)}, - { 97, -1, sizeof(::vega::events::v1::TransferResponses)}, - { 103, -1, sizeof(::vega::events::v1::PositionResolution)}, - { 112, -1, sizeof(::vega::events::v1::LossSocialization)}, - { 120, -1, sizeof(::vega::events::v1::TradeSettlement)}, - { 127, -1, sizeof(::vega::events::v1::SettlePosition)}, - { 136, -1, sizeof(::vega::events::v1::SettleDistressed)}, - { 145, -1, sizeof(::vega::events::v1::MarketTick)}, - { 152, -1, sizeof(::vega::events::v1::AuctionEvent)}, - { 164, -1, sizeof(::vega::events::v1::ValidatorUpdate)}, - { 174, -1, sizeof(::vega::events::v1::BusEvent)}, + { 85, -1, sizeof(::vega::events::v1::TimeUpdate)}, + { 91, -1, sizeof(::vega::events::v1::EpochEvent)}, + { 100, -1, sizeof(::vega::events::v1::TransferResponses)}, + { 106, -1, sizeof(::vega::events::v1::PositionResolution)}, + { 115, -1, sizeof(::vega::events::v1::LossSocialization)}, + { 123, -1, sizeof(::vega::events::v1::TradeSettlement)}, + { 130, -1, sizeof(::vega::events::v1::SettlePosition)}, + { 139, -1, sizeof(::vega::events::v1::SettleDistressed)}, + { 148, -1, sizeof(::vega::events::v1::MarketTick)}, + { 155, -1, sizeof(::vega::events::v1::AuctionEvent)}, + { 167, -1, sizeof(::vega::events::v1::ValidatorUpdate)}, + { 177, -1, sizeof(::vega::events::v1::BusEvent)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -757,7 +766,7 @@ const char descriptor_table_protodef_events_2fv1_2fevents_2eproto[] PROTOBUF_SEC "unt\022/\n\023undelegation_amount\030\004 \001(\004R\022undele" "gationAmount\022\033\n\tepoch_seq\030\005 \001(\tR\010epochSe" "q\"D\n\013MarketEvent\022\033\n\tmarket_id\030\001 \001(\tR\010mar" - "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\246\005\n\014TxEr" + "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\256\007\n\014TxEr" "rorEvent\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\027\n\007e" "rr_msg\030\002 \001(\tR\006errMsg\022N\n\020order_submission" "\030e \001(\0132!.vega.commands.v1.OrderSubmissio" @@ -774,133 +783,139 @@ const char descriptor_table_protodef_events_2fv1_2fevents_2eproto[] PROTOBUF_SEC "visionSubmissionH\000R\034liquidityProvisionSu" "bmission\022W\n\023withdraw_submission\030k \001(\0132$." "vega.commands.v1.WithdrawSubmissionH\000R\022w" - "ithdrawSubmissionB\r\n\013transaction\"*\n\nTime" - "Update\022\034\n\ttimestamp\030\001 \001(\003R\ttimestamp\"y\n\n" - "EpochEvent\022\020\n\003seq\030\001 \001(\004R\003seq\022\035\n\nstart_ti" - "me\030\002 \001(\003R\tstartTime\022\037\n\013expire_time\030\003 \001(\003" - "R\nexpireTime\022\031\n\010end_time\030\004 \001(\003R\007endTime\"" - "I\n\021TransferResponses\0224\n\tresponses\030\001 \003(\0132" - "\026.vega.TransferResponseR\tresponses\"\210\001\n\022P" - "ositionResolution\022\033\n\tmarket_id\030\001 \001(\tR\010ma" - "rketId\022\036\n\ndistressed\030\002 \001(\003R\ndistressed\022\026" - "\n\006closed\030\003 \001(\003R\006closed\022\035\n\nmark_price\030\004 \001" - "(\004R\tmarkPrice\"c\n\021LossSocialization\022\033\n\tma" - "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" - "\tR\007partyId\022\026\n\006amount\030\003 \001(\003R\006amount\";\n\017Tr" - "adeSettlement\022\022\n\004size\030\001 \001(\003R\004size\022\024\n\005pri" - "ce\030\002 \001(\004R\005price\"\254\001\n\016SettlePosition\022\033\n\tma" + "ithdrawSubmission\022W\n\023delegate_submission" + "\030l \001(\0132$.vega.commands.v1.DelegateSubmis" + "sionH\000R\022delegateSubmission\022]\n\025undelegate" + "_submission\030m \001(\0132&.vega.commands.v1.Und" + "elegateSubmissionH\000R\024undelegateSubmissio" + "n\022N\n\020restore_snapshot\030n \001(\0132!.vega.comma" + "nds.v1.RestoreSnapshotH\000R\017restoreSnapsho" + "tB\r\n\013transaction\"*\n\nTimeUpdate\022\034\n\ttimest" + "amp\030\001 \001(\003R\ttimestamp\"y\n\nEpochEvent\022\020\n\003se" + "q\030\001 \001(\004R\003seq\022\035\n\nstart_time\030\002 \001(\003R\tstartT" + "ime\022\037\n\013expire_time\030\003 \001(\003R\nexpireTime\022\031\n\010" + "end_time\030\004 \001(\003R\007endTime\"I\n\021TransferRespo" + "nses\0224\n\tresponses\030\001 \003(\0132\026.vega.TransferR" + "esponseR\tresponses\"\210\001\n\022PositionResolutio" + "n\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\036\n\ndistre" + "ssed\030\002 \001(\003R\ndistressed\022\026\n\006closed\030\003 \001(\003R\006" + "closed\022\035\n\nmark_price\030\004 \001(\004R\tmarkPrice\"c\n" + "\021LossSocialization\022\033\n\tmarket_id\030\001 \001(\tR\010m" + "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006am" + "ount\030\003 \001(\003R\006amount\";\n\017TradeSettlement\022\022\n" + "\004size\030\001 \001(\003R\004size\022\024\n\005price\030\002 \001(\004R\005price\"" + "\254\001\n\016SettlePosition\022\033\n\tmarket_id\030\001 \001(\tR\010m" + "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005pr" + "ice\030\003 \001(\004R\005price\022L\n\021trade_settlements\030\004 " + "\003(\0132\037.vega.events.v1.TradeSettlementR\020tr" + "adeSettlements\"x\n\020SettleDistressed\022\033\n\tma" "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" - "\tR\007partyId\022\024\n\005price\030\003 \001(\004R\005price\022L\n\021trad" - "e_settlements\030\004 \003(\0132\037.vega.events.v1.Tra" - "deSettlementR\020tradeSettlements\"x\n\020Settle" - "Distressed\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022" - "\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006margin\030\003 \001" - "(\004R\006margin\022\024\n\005price\030\004 \001(\004R\005price\"0\n\nMark" - "etTick\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004time\030\002 \001(\003R\004ti" - "me\"\205\002\n\014AuctionEvent\022\033\n\tmarket_id\030\001 \001(\tR\010" - "marketId\022\'\n\017opening_auction\030\002 \001(\010R\016openi" - "ngAuction\022\024\n\005leave\030\003 \001(\010R\005leave\022\024\n\005start" - "\030\004 \001(\003R\005start\022\020\n\003end\030\005 \001(\003R\003end\022.\n\007trigg" - "er\030\006 \001(\0162\024.vega.AuctionTriggerR\007trigger\022" - "A\n\021extension_trigger\030\007 \001(\0162\024.vega.Auctio" - "nTriggerR\020extensionTrigger\"\261\001\n\017Validator" - "Update\022 \n\014vega_pub_key\030\001 \001(\tR\nvegaPubKey" - "\022)\n\020ethereum_address\030\002 \001(\tR\017ethereumAddr" - "ess\022\034\n\ntm_pub_key\030\003 \001(\tR\010tmPubKey\022\031\n\010inf" - "o_url\030\004 \001(\tR\007infoUrl\022\030\n\007country\030\005 \001(\tR\007c" - "ountry\"\235\022\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005b" - "lock\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.vega.e" - "vents.v1.BusEventTypeR\004type\022=\n\013time_upda" - "te\030e \001(\0132\032.vega.events.v1.TimeUpdateH\000R\n" - "timeUpdate\022R\n\022transfer_responses\030f \001(\0132!" - ".vega.events.v1.TransferResponsesH\000R\021tra" - "nsferResponses\022U\n\023position_resolution\030g " - "\001(\0132\".vega.events.v1.PositionResolutionH" - "\000R\022positionResolution\022#\n\005order\030h \001(\0132\013.v" - "ega.OrderH\000R\005order\022)\n\007account\030i \001(\0132\r.ve" - "ga.AccountH\000R\007account\022#\n\005party\030j \001(\0132\013.v" - "ega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013.vega" - ".TradeH\000R\005trade\0229\n\rmargin_levels\030l \001(\0132\022" - ".vega.MarginLevelsH\000R\014marginLevels\022,\n\010pr" - "oposal\030m \001(\0132\016.vega.ProposalH\000R\010proposal" - "\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223\n\013ma" - "rket_data\030o \001(\0132\020.vega.MarketDataH\000R\nmar" - "ketData\022H\n\016node_signature\030p \001(\0132\037.vega.c" - "ommands.v1.NodeSignatureH\000R\rnodeSignatur" - "e\022R\n\022loss_socialization\030q \001(\0132!.vega.eve" - "nts.v1.LossSocializationH\000R\021lossSocializ" - "ation\022I\n\017settle_position\030r \001(\0132\036.vega.ev" - "ents.v1.SettlePositionH\000R\016settlePosition" - "\022O\n\021settle_distressed\030s \001(\0132 .vega.event" - "s.v1.SettleDistressedH\000R\020settleDistresse" - "d\0225\n\016market_created\030t \001(\0132\014.vega.MarketH" - "\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.vega.A" - "ssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032.veg" - "a.events.v1.MarketTickH\000R\nmarketTick\0222\n\n" - "withdrawal\030w \001(\0132\020.vega.WithdrawalH\000R\nwi" - "thdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Deposit" - "H\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega.even" - "ts.v1.AuctionEventH\000R\007auction\0223\n\013risk_fa" - "ctor\030z \001(\0132\020.vega.RiskFactorH\000R\nriskFact" - "or\022E\n\021network_parameter\030{ \001(\0132\026.vega.Net" - "workParameterH\000R\020networkParameter\022K\n\023liq" - "uidity_provision\030| \001(\0132\030.vega.LiquidityP" - "rovisionH\000R\022liquidityProvision\0225\n\016market" - "_updated\030} \001(\0132\014.vega.MarketH\000R\rmarketUp" - "dated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles.v1." - "OracleSpecH\000R\noracleSpec\0229\n\013oracle_data\030" - "\177 \001(\0132\026.oracles.v1.OracleDataH\000R\noracleD" - "ata\022X\n\022delegation_balance\030\201\001 \001(\0132&.vega." - "events.v1.DelegationBalanceEventH\000R\021dele" - "gationBalance\022O\n\017validator_score\030\202\001 \001(\0132" - "#.vega.events.v1.ValidatorScoreEventH\000R\016" - "validatorScore\022>\n\013epoch_event\030\203\001 \001(\0132\032.v" - "ega.events.v1.EpochEventH\000R\nepochEvent\022M" - "\n\020validator_update\030\204\001 \001(\0132\037.vega.events." - "v1.ValidatorUpdateH\000R\017validatorUpdate\022D\n" - "\rstake_linking\030\205\001 \001(\0132\034.vega.events.v1.S" - "takeLinkingH\000R\014stakeLinking\022I\n\rreward_pa" - "yout\030\206\001 \001(\0132!.vega.events.v1.RewardPayou" - "tEventH\000R\014rewardPayout\022B\n\ncheckpoint\030\207\001 " - "\001(\0132\037.vega.events.v1.CheckpointEventH\000R\n" - "checkpoint\0226\n\006market\030\351\007 \001(\0132\033.vega.event" - "s.v1.MarketEventH\000R\006market\022A\n\014tx_err_eve" - "nt\030\321\017 \001(\0132\034.vega.events.v1.TxErrorEventH" - "\000R\ntxErrEventB\007\n\005event*\343\t\n\014BusEventType\022" - "\036\n\032BUS_EVENT_TYPE_UNSPECIFIED\020\000\022\026\n\022BUS_E" - "VENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT_TYPE_TIME_U" - "PDATE\020\002\022%\n!BUS_EVENT_TYPE_TRANSFER_RESPO" - "NSES\020\003\022&\n\"BUS_EVENT_TYPE_POSITION_RESOLU" - "TION\020\004\022\030\n\024BUS_EVENT_TYPE_ORDER\020\005\022\032\n\026BUS_" - "EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_EVENT_TYPE_P" - "ARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRADE\020\010\022 \n\034BUS_" - "EVENT_TYPE_MARGIN_LEVELS\020\t\022\033\n\027BUS_EVENT_" - "TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT_TYPE_VOTE\020\013" - "\022\036\n\032BUS_EVENT_TYPE_MARKET_DATA\020\014\022!\n\035BUS_" - "EVENT_TYPE_NODE_SIGNATURE\020\r\022%\n!BUS_EVENT" - "_TYPE_LOSS_SOCIALIZATION\020\016\022\"\n\036BUS_EVENT_" - "TYPE_SETTLE_POSITION\020\017\022$\n BUS_EVENT_TYPE" - "_SETTLE_DISTRESSED\020\020\022!\n\035BUS_EVENT_TYPE_M" - "ARKET_CREATED\020\021\022\030\n\024BUS_EVENT_TYPE_ASSET\020" - "\022\022\036\n\032BUS_EVENT_TYPE_MARKET_TICK\020\023\022\035\n\031BUS" - "_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026BUS_EVENT_TY" - "PE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TYPE_AUCTION\020\026" - "\022\036\n\032BUS_EVENT_TYPE_RISK_FACTOR\020\027\022$\n BUS_" - "EVENT_TYPE_NETWORK_PARAMETER\020\030\022&\n\"BUS_EV" - "ENT_TYPE_LIQUIDITY_PROVISION\020\031\022!\n\035BUS_EV" - "ENT_TYPE_MARKET_UPDATED\020\032\022\036\n\032BUS_EVENT_T" - "YPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVENT_TYPE_ORAC" - "LE_DATA\020\034\022%\n!BUS_EVENT_TYPE_DELEGATION_B" - "ALANCE\020\035\022\"\n\036BUS_EVENT_TYPE_VALIDATOR_SCO" - "RE\020\036\022\037\n\033BUS_EVENT_TYPE_EPOCH_UPDATE\020\037\022#\n" - "\037BUS_EVENT_TYPE_VALIDATOR_UPDATE\020 \022 \n\034BU" - "S_EVENT_TYPE_STAKE_LINKING\020!\022&\n\"BUS_EVEN" - "T_TYPE_REWARD_PAYOUT_EVENT\020\"\022\035\n\031BUS_EVEN" - "T_TYPE_CHECKPOINT\020#\022\031\n\025BUS_EVENT_TYPE_MA" - "RKET\020e\022\034\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036" - "io.vegaprotocol.vega.events.v1Z)code.veg" - "aprotocol.io/vega/proto/events/v1b\006proto" - "3" + "\tR\007partyId\022\026\n\006margin\030\003 \001(\004R\006margin\022\024\n\005pr" + "ice\030\004 \001(\004R\005price\"0\n\nMarketTick\022\016\n\002id\030\001 \001" + "(\tR\002id\022\022\n\004time\030\002 \001(\003R\004time\"\205\002\n\014AuctionEv" + "ent\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\'\n\017open" + "ing_auction\030\002 \001(\010R\016openingAuction\022\024\n\005lea" + "ve\030\003 \001(\010R\005leave\022\024\n\005start\030\004 \001(\003R\005start\022\020\n" + "\003end\030\005 \001(\003R\003end\022.\n\007trigger\030\006 \001(\0162\024.vega." + "AuctionTriggerR\007trigger\022A\n\021extension_tri" + "gger\030\007 \001(\0162\024.vega.AuctionTriggerR\020extens" + "ionTrigger\"\261\001\n\017ValidatorUpdate\022 \n\014vega_p" + "ub_key\030\001 \001(\tR\nvegaPubKey\022)\n\020ethereum_add" + "ress\030\002 \001(\tR\017ethereumAddress\022\034\n\ntm_pub_ke" + "y\030\003 \001(\tR\010tmPubKey\022\031\n\010info_url\030\004 \001(\tR\007inf" + "oUrl\022\030\n\007country\030\005 \001(\tR\007country\"\235\022\n\010BusEv" + "ent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005block\030\002 \001(\tR\005bloc" + "k\0220\n\004type\030\003 \001(\0162\034.vega.events.v1.BusEven" + "tTypeR\004type\022=\n\013time_update\030e \001(\0132\032.vega." + "events.v1.TimeUpdateH\000R\ntimeUpdate\022R\n\022tr" + "ansfer_responses\030f \001(\0132!.vega.events.v1." + "TransferResponsesH\000R\021transferResponses\022U" + "\n\023position_resolution\030g \001(\0132\".vega.event" + "s.v1.PositionResolutionH\000R\022positionResol" + "ution\022#\n\005order\030h \001(\0132\013.vega.OrderH\000R\005ord" + "er\022)\n\007account\030i \001(\0132\r.vega.AccountH\000R\007ac" + "count\022#\n\005party\030j \001(\0132\013.vega.PartyH\000R\005par" + "ty\022#\n\005trade\030k \001(\0132\013.vega.TradeH\000R\005trade\022" + "9\n\rmargin_levels\030l \001(\0132\022.vega.MarginLeve" + "lsH\000R\014marginLevels\022,\n\010proposal\030m \001(\0132\016.v" + "ega.ProposalH\000R\010proposal\022 \n\004vote\030n \001(\0132\n" + ".vega.VoteH\000R\004vote\0223\n\013market_data\030o \001(\0132" + "\020.vega.MarketDataH\000R\nmarketData\022H\n\016node_" + "signature\030p \001(\0132\037.vega.commands.v1.NodeS" + "ignatureH\000R\rnodeSignature\022R\n\022loss_social" + "ization\030q \001(\0132!.vega.events.v1.LossSocia" + "lizationH\000R\021lossSocialization\022I\n\017settle_" + "position\030r \001(\0132\036.vega.events.v1.SettlePo" + "sitionH\000R\016settlePosition\022O\n\021settle_distr" + "essed\030s \001(\0132 .vega.events.v1.SettleDistr" + "essedH\000R\020settleDistressed\0225\n\016market_crea" + "ted\030t \001(\0132\014.vega.MarketH\000R\rmarketCreated" + "\022#\n\005asset\030u \001(\0132\013.vega.AssetH\000R\005asset\022=\n" + "\013market_tick\030v \001(\0132\032.vega.events.v1.Mark" + "etTickH\000R\nmarketTick\0222\n\nwithdrawal\030w \001(\013" + "2\020.vega.WithdrawalH\000R\nwithdrawal\022)\n\007depo" + "sit\030x \001(\0132\r.vega.DepositH\000R\007deposit\0228\n\007a" + "uction\030y \001(\0132\034.vega.events.v1.AuctionEve" + "ntH\000R\007auction\0223\n\013risk_factor\030z \001(\0132\020.veg" + "a.RiskFactorH\000R\nriskFactor\022E\n\021network_pa" + "rameter\030{ \001(\0132\026.vega.NetworkParameterH\000R" + "\020networkParameter\022K\n\023liquidity_provision" + "\030| \001(\0132\030.vega.LiquidityProvisionH\000R\022liqu" + "idityProvision\0225\n\016market_updated\030} \001(\0132\014" + ".vega.MarketH\000R\rmarketUpdated\0229\n\013oracle_" + "spec\030~ \001(\0132\026.oracles.v1.OracleSpecH\000R\nor" + "acleSpec\0229\n\013oracle_data\030\177 \001(\0132\026.oracles." + "v1.OracleDataH\000R\noracleData\022X\n\022delegatio" + "n_balance\030\201\001 \001(\0132&.vega.events.v1.Delega" + "tionBalanceEventH\000R\021delegationBalance\022O\n" + "\017validator_score\030\202\001 \001(\0132#.vega.events.v1" + ".ValidatorScoreEventH\000R\016validatorScore\022>" + "\n\013epoch_event\030\203\001 \001(\0132\032.vega.events.v1.Ep" + "ochEventH\000R\nepochEvent\022M\n\020validator_upda" + "te\030\204\001 \001(\0132\037.vega.events.v1.ValidatorUpda" + "teH\000R\017validatorUpdate\022D\n\rstake_linking\030\205" + "\001 \001(\0132\034.vega.events.v1.StakeLinkingH\000R\014s" + "takeLinking\022I\n\rreward_payout\030\206\001 \001(\0132!.ve" + "ga.events.v1.RewardPayoutEventH\000R\014reward" + "Payout\022B\n\ncheckpoint\030\207\001 \001(\0132\037.vega.event" + "s.v1.CheckpointEventH\000R\ncheckpoint\0226\n\006ma" + "rket\030\351\007 \001(\0132\033.vega.events.v1.MarketEvent" + "H\000R\006market\022A\n\014tx_err_event\030\321\017 \001(\0132\034.vega" + ".events.v1.TxErrorEventH\000R\ntxErrEventB\007\n" + "\005event*\343\t\n\014BusEventType\022\036\n\032BUS_EVENT_TYP" + "E_UNSPECIFIED\020\000\022\026\n\022BUS_EVENT_TYPE_ALL\020\001\022" + "\036\n\032BUS_EVENT_TYPE_TIME_UPDATE\020\002\022%\n!BUS_E" + "VENT_TYPE_TRANSFER_RESPONSES\020\003\022&\n\"BUS_EV" + "ENT_TYPE_POSITION_RESOLUTION\020\004\022\030\n\024BUS_EV" + "ENT_TYPE_ORDER\020\005\022\032\n\026BUS_EVENT_TYPE_ACCOU" + "NT\020\006\022\030\n\024BUS_EVENT_TYPE_PARTY\020\007\022\030\n\024BUS_EV" + "ENT_TYPE_TRADE\020\010\022 \n\034BUS_EVENT_TYPE_MARGI" + "N_LEVELS\020\t\022\033\n\027BUS_EVENT_TYPE_PROPOSAL\020\n\022" + "\027\n\023BUS_EVENT_TYPE_VOTE\020\013\022\036\n\032BUS_EVENT_TY" + "PE_MARKET_DATA\020\014\022!\n\035BUS_EVENT_TYPE_NODE_" + "SIGNATURE\020\r\022%\n!BUS_EVENT_TYPE_LOSS_SOCIA" + "LIZATION\020\016\022\"\n\036BUS_EVENT_TYPE_SETTLE_POSI" + "TION\020\017\022$\n BUS_EVENT_TYPE_SETTLE_DISTRESS" + "ED\020\020\022!\n\035BUS_EVENT_TYPE_MARKET_CREATED\020\021\022" + "\030\n\024BUS_EVENT_TYPE_ASSET\020\022\022\036\n\032BUS_EVENT_T" + "YPE_MARKET_TICK\020\023\022\035\n\031BUS_EVENT_TYPE_WITH" + "DRAWAL\020\024\022\032\n\026BUS_EVENT_TYPE_DEPOSIT\020\025\022\032\n\026" + "BUS_EVENT_TYPE_AUCTION\020\026\022\036\n\032BUS_EVENT_TY" + "PE_RISK_FACTOR\020\027\022$\n BUS_EVENT_TYPE_NETWO" + "RK_PARAMETER\020\030\022&\n\"BUS_EVENT_TYPE_LIQUIDI" + "TY_PROVISION\020\031\022!\n\035BUS_EVENT_TYPE_MARKET_" + "UPDATED\020\032\022\036\n\032BUS_EVENT_TYPE_ORACLE_SPEC\020" + "\033\022\036\n\032BUS_EVENT_TYPE_ORACLE_DATA\020\034\022%\n!BUS" + "_EVENT_TYPE_DELEGATION_BALANCE\020\035\022\"\n\036BUS_" + "EVENT_TYPE_VALIDATOR_SCORE\020\036\022\037\n\033BUS_EVEN" + "T_TYPE_EPOCH_UPDATE\020\037\022#\n\037BUS_EVENT_TYPE_" + "VALIDATOR_UPDATE\020 \022 \n\034BUS_EVENT_TYPE_STA" + "KE_LINKING\020!\022&\n\"BUS_EVENT_TYPE_REWARD_PA" + "YOUT_EVENT\020\"\022\035\n\031BUS_EVENT_TYPE_CHECKPOIN" + "T\020#\022\031\n\025BUS_EVENT_TYPE_MARKET\020e\022\034\n\027BUS_EV" + "ENT_TYPE_TX_ERROR\020\311\001BK\n\036io.vegaprotocol." + "vega.events.v1Z)code.vegaprotocol.io/veg" + "a/proto/events/v1b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_events_2fv1_2fevents_2eproto_deps[8] = { &::descriptor_table_assets_2eproto, @@ -936,7 +951,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_eve }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_events_2fv1_2fevents_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_events_2fv1_2fevents_2eproto = { - false, false, descriptor_table_protodef_events_2fv1_2fevents_2eproto, "events/v1/events.proto", 7201, + false, false, descriptor_table_protodef_events_2fv1_2fevents_2eproto, "events/v1/events.proto", 7465, &descriptor_table_events_2fv1_2fevents_2eproto_once, descriptor_table_events_2fv1_2fevents_2eproto_sccs, descriptor_table_events_2fv1_2fevents_2eproto_deps, 20, 8, schemas, file_default_instances, TableStruct_events_2fv1_2fevents_2eproto::offsets, file_level_metadata_events_2fv1_2fevents_2eproto, 20, file_level_enum_descriptors_events_2fv1_2fevents_2eproto, file_level_service_descriptors_events_2fv1_2fevents_2eproto, @@ -3360,6 +3375,9 @@ class TxErrorEvent::_Internal { static const ::vega::commands::v1::VoteSubmission& vote_submission(const TxErrorEvent* msg); static const ::vega::commands::v1::LiquidityProvisionSubmission& liquidity_provision_submission(const TxErrorEvent* msg); static const ::vega::commands::v1::WithdrawSubmission& withdraw_submission(const TxErrorEvent* msg); + static const ::vega::commands::v1::DelegateSubmission& delegate_submission(const TxErrorEvent* msg); + static const ::vega::commands::v1::UndelegateSubmission& undelegate_submission(const TxErrorEvent* msg); + static const ::vega::commands::v1::RestoreSnapshot& restore_snapshot(const TxErrorEvent* msg); }; const ::vega::commands::v1::OrderSubmission& @@ -3390,6 +3408,18 @@ const ::vega::commands::v1::WithdrawSubmission& TxErrorEvent::_Internal::withdraw_submission(const TxErrorEvent* msg) { return *msg->transaction_.withdraw_submission_; } +const ::vega::commands::v1::DelegateSubmission& +TxErrorEvent::_Internal::delegate_submission(const TxErrorEvent* msg) { + return *msg->transaction_.delegate_submission_; +} +const ::vega::commands::v1::UndelegateSubmission& +TxErrorEvent::_Internal::undelegate_submission(const TxErrorEvent* msg) { + return *msg->transaction_.undelegate_submission_; +} +const ::vega::commands::v1::RestoreSnapshot& +TxErrorEvent::_Internal::restore_snapshot(const TxErrorEvent* msg) { + return *msg->transaction_.restore_snapshot_; +} void TxErrorEvent::set_allocated_order_submission(::vega::commands::v1::OrderSubmission* order_submission) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_transaction(); @@ -3551,6 +3581,75 @@ void TxErrorEvent::clear_withdraw_submission() { clear_has_transaction(); } } +void TxErrorEvent::set_allocated_delegate_submission(::vega::commands::v1::DelegateSubmission* delegate_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_transaction(); + if (delegate_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(delegate_submission)->GetArena(); + if (message_arena != submessage_arena) { + delegate_submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, delegate_submission, submessage_arena); + } + set_has_delegate_submission(); + transaction_.delegate_submission_ = delegate_submission; + } + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.TxErrorEvent.delegate_submission) +} +void TxErrorEvent::clear_delegate_submission() { + if (_internal_has_delegate_submission()) { + if (GetArena() == nullptr) { + delete transaction_.delegate_submission_; + } + clear_has_transaction(); + } +} +void TxErrorEvent::set_allocated_undelegate_submission(::vega::commands::v1::UndelegateSubmission* undelegate_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_transaction(); + if (undelegate_submission) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(undelegate_submission)->GetArena(); + if (message_arena != submessage_arena) { + undelegate_submission = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, undelegate_submission, submessage_arena); + } + set_has_undelegate_submission(); + transaction_.undelegate_submission_ = undelegate_submission; + } + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.TxErrorEvent.undelegate_submission) +} +void TxErrorEvent::clear_undelegate_submission() { + if (_internal_has_undelegate_submission()) { + if (GetArena() == nullptr) { + delete transaction_.undelegate_submission_; + } + clear_has_transaction(); + } +} +void TxErrorEvent::set_allocated_restore_snapshot(::vega::commands::v1::RestoreSnapshot* restore_snapshot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_transaction(); + if (restore_snapshot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(restore_snapshot)->GetArena(); + if (message_arena != submessage_arena) { + restore_snapshot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, restore_snapshot, submessage_arena); + } + set_has_restore_snapshot(); + transaction_.restore_snapshot_ = restore_snapshot; + } + // @@protoc_insertion_point(field_set_allocated:vega.events.v1.TxErrorEvent.restore_snapshot) +} +void TxErrorEvent::clear_restore_snapshot() { + if (_internal_has_restore_snapshot()) { + if (GetArena() == nullptr) { + delete transaction_.restore_snapshot_; + } + clear_has_transaction(); + } +} TxErrorEvent::TxErrorEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -3600,6 +3699,18 @@ TxErrorEvent::TxErrorEvent(const TxErrorEvent& from) _internal_mutable_withdraw_submission()->::vega::commands::v1::WithdrawSubmission::MergeFrom(from._internal_withdraw_submission()); break; } + case kDelegateSubmission: { + _internal_mutable_delegate_submission()->::vega::commands::v1::DelegateSubmission::MergeFrom(from._internal_delegate_submission()); + break; + } + case kUndelegateSubmission: { + _internal_mutable_undelegate_submission()->::vega::commands::v1::UndelegateSubmission::MergeFrom(from._internal_undelegate_submission()); + break; + } + case kRestoreSnapshot: { + _internal_mutable_restore_snapshot()->::vega::commands::v1::RestoreSnapshot::MergeFrom(from._internal_restore_snapshot()); + break; + } case TRANSACTION_NOT_SET: { break; } @@ -3689,6 +3800,24 @@ void TxErrorEvent::clear_transaction() { } break; } + case kDelegateSubmission: { + if (GetArena() == nullptr) { + delete transaction_.delegate_submission_; + } + break; + } + case kUndelegateSubmission: { + if (GetArena() == nullptr) { + delete transaction_.undelegate_submission_; + } + break; + } + case kRestoreSnapshot: { + if (GetArena() == nullptr) { + delete transaction_.restore_snapshot_; + } + break; + } case TRANSACTION_NOT_SET: { break; } @@ -3783,6 +3912,27 @@ const char* TxErrorEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr); } else goto handle_unusual; continue; + // .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + case 108: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_delegate_submission(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + case 109: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_undelegate_submission(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + case 110: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_restore_snapshot(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -3887,6 +4037,30 @@ ::PROTOBUF_NAMESPACE_ID::uint8* TxErrorEvent::_InternalSerialize( 107, _Internal::withdraw_submission(this), target, stream); } + // .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + if (_internal_has_delegate_submission()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 108, _Internal::delegate_submission(this), target, stream); + } + + // .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + if (_internal_has_undelegate_submission()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 109, _Internal::undelegate_submission(this), target, stream); + } + + // .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + if (_internal_has_restore_snapshot()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 110, _Internal::restore_snapshot(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -3967,6 +4141,27 @@ size_t TxErrorEvent::ByteSizeLong() const { *transaction_.withdraw_submission_); break; } + // .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + case kDelegateSubmission: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *transaction_.delegate_submission_); + break; + } + // .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + case kUndelegateSubmission: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *transaction_.undelegate_submission_); + break; + } + // .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + case kRestoreSnapshot: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *transaction_.restore_snapshot_); + break; + } case TRANSACTION_NOT_SET: { break; } @@ -4037,6 +4232,18 @@ void TxErrorEvent::MergeFrom(const TxErrorEvent& from) { _internal_mutable_withdraw_submission()->::vega::commands::v1::WithdrawSubmission::MergeFrom(from._internal_withdraw_submission()); break; } + case kDelegateSubmission: { + _internal_mutable_delegate_submission()->::vega::commands::v1::DelegateSubmission::MergeFrom(from._internal_delegate_submission()); + break; + } + case kUndelegateSubmission: { + _internal_mutable_undelegate_submission()->::vega::commands::v1::UndelegateSubmission::MergeFrom(from._internal_undelegate_submission()); + break; + } + case kRestoreSnapshot: { + _internal_mutable_restore_snapshot()->::vega::commands::v1::RestoreSnapshot::MergeFrom(from._internal_restore_snapshot()); + break; + } case TRANSACTION_NOT_SET: { break; } diff --git a/grpc/clients/cpp/generated/events/v1/events.pb.h b/grpc/clients/cpp/generated/events/v1/events.pb.h index 52d5d5a3..6f9ab27e 100644 --- a/grpc/clients/cpp/generated/events/v1/events.pb.h +++ b/grpc/clients/cpp/generated/events/v1/events.pb.h @@ -1768,6 +1768,9 @@ class TxErrorEvent PROTOBUF_FINAL : kVoteSubmission = 105, kLiquidityProvisionSubmission = 106, kWithdrawSubmission = 107, + kDelegateSubmission = 108, + kUndelegateSubmission = 109, + kRestoreSnapshot = 110, TRANSACTION_NOT_SET = 0, }; @@ -1856,6 +1859,9 @@ class TxErrorEvent PROTOBUF_FINAL : kVoteSubmissionFieldNumber = 105, kLiquidityProvisionSubmissionFieldNumber = 106, kWithdrawSubmissionFieldNumber = 107, + kDelegateSubmissionFieldNumber = 108, + kUndelegateSubmissionFieldNumber = 109, + kRestoreSnapshotFieldNumber = 110, }; // string party_id = 1 [json_name = "partyId"]; void clear_party_id(); @@ -2015,6 +2021,60 @@ class TxErrorEvent PROTOBUF_FINAL : ::vega::commands::v1::WithdrawSubmission* withdraw_submission); ::vega::commands::v1::WithdrawSubmission* unsafe_arena_release_withdraw_submission(); + // .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + bool has_delegate_submission() const; + private: + bool _internal_has_delegate_submission() const; + public: + void clear_delegate_submission(); + const ::vega::commands::v1::DelegateSubmission& delegate_submission() const; + ::vega::commands::v1::DelegateSubmission* release_delegate_submission(); + ::vega::commands::v1::DelegateSubmission* mutable_delegate_submission(); + void set_allocated_delegate_submission(::vega::commands::v1::DelegateSubmission* delegate_submission); + private: + const ::vega::commands::v1::DelegateSubmission& _internal_delegate_submission() const; + ::vega::commands::v1::DelegateSubmission* _internal_mutable_delegate_submission(); + public: + void unsafe_arena_set_allocated_delegate_submission( + ::vega::commands::v1::DelegateSubmission* delegate_submission); + ::vega::commands::v1::DelegateSubmission* unsafe_arena_release_delegate_submission(); + + // .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + bool has_undelegate_submission() const; + private: + bool _internal_has_undelegate_submission() const; + public: + void clear_undelegate_submission(); + const ::vega::commands::v1::UndelegateSubmission& undelegate_submission() const; + ::vega::commands::v1::UndelegateSubmission* release_undelegate_submission(); + ::vega::commands::v1::UndelegateSubmission* mutable_undelegate_submission(); + void set_allocated_undelegate_submission(::vega::commands::v1::UndelegateSubmission* undelegate_submission); + private: + const ::vega::commands::v1::UndelegateSubmission& _internal_undelegate_submission() const; + ::vega::commands::v1::UndelegateSubmission* _internal_mutable_undelegate_submission(); + public: + void unsafe_arena_set_allocated_undelegate_submission( + ::vega::commands::v1::UndelegateSubmission* undelegate_submission); + ::vega::commands::v1::UndelegateSubmission* unsafe_arena_release_undelegate_submission(); + + // .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + bool has_restore_snapshot() const; + private: + bool _internal_has_restore_snapshot() const; + public: + void clear_restore_snapshot(); + const ::vega::commands::v1::RestoreSnapshot& restore_snapshot() const; + ::vega::commands::v1::RestoreSnapshot* release_restore_snapshot(); + ::vega::commands::v1::RestoreSnapshot* mutable_restore_snapshot(); + void set_allocated_restore_snapshot(::vega::commands::v1::RestoreSnapshot* restore_snapshot); + private: + const ::vega::commands::v1::RestoreSnapshot& _internal_restore_snapshot() const; + ::vega::commands::v1::RestoreSnapshot* _internal_mutable_restore_snapshot(); + public: + void unsafe_arena_set_allocated_restore_snapshot( + ::vega::commands::v1::RestoreSnapshot* restore_snapshot); + ::vega::commands::v1::RestoreSnapshot* unsafe_arena_release_restore_snapshot(); + void clear_transaction(); TransactionCase transaction_case() const; // @@protoc_insertion_point(class_scope:vega.events.v1.TxErrorEvent) @@ -2027,6 +2087,9 @@ class TxErrorEvent PROTOBUF_FINAL : void set_has_vote_submission(); void set_has_liquidity_provision_submission(); void set_has_withdraw_submission(); + void set_has_delegate_submission(); + void set_has_undelegate_submission(); + void set_has_restore_snapshot(); inline bool has_transaction() const; inline void clear_has_transaction(); @@ -2045,6 +2108,9 @@ class TxErrorEvent PROTOBUF_FINAL : ::vega::commands::v1::VoteSubmission* vote_submission_; ::vega::commands::v1::LiquidityProvisionSubmission* liquidity_provision_submission_; ::vega::commands::v1::WithdrawSubmission* withdraw_submission_; + ::vega::commands::v1::DelegateSubmission* delegate_submission_; + ::vega::commands::v1::UndelegateSubmission* undelegate_submission_; + ::vega::commands::v1::RestoreSnapshot* restore_snapshot_; } transaction_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -7126,6 +7192,201 @@ inline ::vega::commands::v1::WithdrawSubmission* TxErrorEvent::mutable_withdraw_ return _internal_mutable_withdraw_submission(); } +// .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; +inline bool TxErrorEvent::_internal_has_delegate_submission() const { + return transaction_case() == kDelegateSubmission; +} +inline bool TxErrorEvent::has_delegate_submission() const { + return _internal_has_delegate_submission(); +} +inline void TxErrorEvent::set_has_delegate_submission() { + _oneof_case_[0] = kDelegateSubmission; +} +inline ::vega::commands::v1::DelegateSubmission* TxErrorEvent::release_delegate_submission() { + // @@protoc_insertion_point(field_release:vega.events.v1.TxErrorEvent.delegate_submission) + if (_internal_has_delegate_submission()) { + clear_has_transaction(); + ::vega::commands::v1::DelegateSubmission* temp = transaction_.delegate_submission_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + transaction_.delegate_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::commands::v1::DelegateSubmission& TxErrorEvent::_internal_delegate_submission() const { + return _internal_has_delegate_submission() + ? *transaction_.delegate_submission_ + : reinterpret_cast< ::vega::commands::v1::DelegateSubmission&>(::vega::commands::v1::_DelegateSubmission_default_instance_); +} +inline const ::vega::commands::v1::DelegateSubmission& TxErrorEvent::delegate_submission() const { + // @@protoc_insertion_point(field_get:vega.events.v1.TxErrorEvent.delegate_submission) + return _internal_delegate_submission(); +} +inline ::vega::commands::v1::DelegateSubmission* TxErrorEvent::unsafe_arena_release_delegate_submission() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.TxErrorEvent.delegate_submission) + if (_internal_has_delegate_submission()) { + clear_has_transaction(); + ::vega::commands::v1::DelegateSubmission* temp = transaction_.delegate_submission_; + transaction_.delegate_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TxErrorEvent::unsafe_arena_set_allocated_delegate_submission(::vega::commands::v1::DelegateSubmission* delegate_submission) { + clear_transaction(); + if (delegate_submission) { + set_has_delegate_submission(); + transaction_.delegate_submission_ = delegate_submission; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.TxErrorEvent.delegate_submission) +} +inline ::vega::commands::v1::DelegateSubmission* TxErrorEvent::_internal_mutable_delegate_submission() { + if (!_internal_has_delegate_submission()) { + clear_transaction(); + set_has_delegate_submission(); + transaction_.delegate_submission_ = CreateMaybeMessage< ::vega::commands::v1::DelegateSubmission >(GetArena()); + } + return transaction_.delegate_submission_; +} +inline ::vega::commands::v1::DelegateSubmission* TxErrorEvent::mutable_delegate_submission() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.TxErrorEvent.delegate_submission) + return _internal_mutable_delegate_submission(); +} + +// .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; +inline bool TxErrorEvent::_internal_has_undelegate_submission() const { + return transaction_case() == kUndelegateSubmission; +} +inline bool TxErrorEvent::has_undelegate_submission() const { + return _internal_has_undelegate_submission(); +} +inline void TxErrorEvent::set_has_undelegate_submission() { + _oneof_case_[0] = kUndelegateSubmission; +} +inline ::vega::commands::v1::UndelegateSubmission* TxErrorEvent::release_undelegate_submission() { + // @@protoc_insertion_point(field_release:vega.events.v1.TxErrorEvent.undelegate_submission) + if (_internal_has_undelegate_submission()) { + clear_has_transaction(); + ::vega::commands::v1::UndelegateSubmission* temp = transaction_.undelegate_submission_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + transaction_.undelegate_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::commands::v1::UndelegateSubmission& TxErrorEvent::_internal_undelegate_submission() const { + return _internal_has_undelegate_submission() + ? *transaction_.undelegate_submission_ + : reinterpret_cast< ::vega::commands::v1::UndelegateSubmission&>(::vega::commands::v1::_UndelegateSubmission_default_instance_); +} +inline const ::vega::commands::v1::UndelegateSubmission& TxErrorEvent::undelegate_submission() const { + // @@protoc_insertion_point(field_get:vega.events.v1.TxErrorEvent.undelegate_submission) + return _internal_undelegate_submission(); +} +inline ::vega::commands::v1::UndelegateSubmission* TxErrorEvent::unsafe_arena_release_undelegate_submission() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.TxErrorEvent.undelegate_submission) + if (_internal_has_undelegate_submission()) { + clear_has_transaction(); + ::vega::commands::v1::UndelegateSubmission* temp = transaction_.undelegate_submission_; + transaction_.undelegate_submission_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TxErrorEvent::unsafe_arena_set_allocated_undelegate_submission(::vega::commands::v1::UndelegateSubmission* undelegate_submission) { + clear_transaction(); + if (undelegate_submission) { + set_has_undelegate_submission(); + transaction_.undelegate_submission_ = undelegate_submission; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.TxErrorEvent.undelegate_submission) +} +inline ::vega::commands::v1::UndelegateSubmission* TxErrorEvent::_internal_mutable_undelegate_submission() { + if (!_internal_has_undelegate_submission()) { + clear_transaction(); + set_has_undelegate_submission(); + transaction_.undelegate_submission_ = CreateMaybeMessage< ::vega::commands::v1::UndelegateSubmission >(GetArena()); + } + return transaction_.undelegate_submission_; +} +inline ::vega::commands::v1::UndelegateSubmission* TxErrorEvent::mutable_undelegate_submission() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.TxErrorEvent.undelegate_submission) + return _internal_mutable_undelegate_submission(); +} + +// .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; +inline bool TxErrorEvent::_internal_has_restore_snapshot() const { + return transaction_case() == kRestoreSnapshot; +} +inline bool TxErrorEvent::has_restore_snapshot() const { + return _internal_has_restore_snapshot(); +} +inline void TxErrorEvent::set_has_restore_snapshot() { + _oneof_case_[0] = kRestoreSnapshot; +} +inline ::vega::commands::v1::RestoreSnapshot* TxErrorEvent::release_restore_snapshot() { + // @@protoc_insertion_point(field_release:vega.events.v1.TxErrorEvent.restore_snapshot) + if (_internal_has_restore_snapshot()) { + clear_has_transaction(); + ::vega::commands::v1::RestoreSnapshot* temp = transaction_.restore_snapshot_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + transaction_.restore_snapshot_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::vega::commands::v1::RestoreSnapshot& TxErrorEvent::_internal_restore_snapshot() const { + return _internal_has_restore_snapshot() + ? *transaction_.restore_snapshot_ + : reinterpret_cast< ::vega::commands::v1::RestoreSnapshot&>(::vega::commands::v1::_RestoreSnapshot_default_instance_); +} +inline const ::vega::commands::v1::RestoreSnapshot& TxErrorEvent::restore_snapshot() const { + // @@protoc_insertion_point(field_get:vega.events.v1.TxErrorEvent.restore_snapshot) + return _internal_restore_snapshot(); +} +inline ::vega::commands::v1::RestoreSnapshot* TxErrorEvent::unsafe_arena_release_restore_snapshot() { + // @@protoc_insertion_point(field_unsafe_arena_release:vega.events.v1.TxErrorEvent.restore_snapshot) + if (_internal_has_restore_snapshot()) { + clear_has_transaction(); + ::vega::commands::v1::RestoreSnapshot* temp = transaction_.restore_snapshot_; + transaction_.restore_snapshot_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TxErrorEvent::unsafe_arena_set_allocated_restore_snapshot(::vega::commands::v1::RestoreSnapshot* restore_snapshot) { + clear_transaction(); + if (restore_snapshot) { + set_has_restore_snapshot(); + transaction_.restore_snapshot_ = restore_snapshot; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:vega.events.v1.TxErrorEvent.restore_snapshot) +} +inline ::vega::commands::v1::RestoreSnapshot* TxErrorEvent::_internal_mutable_restore_snapshot() { + if (!_internal_has_restore_snapshot()) { + clear_transaction(); + set_has_restore_snapshot(); + transaction_.restore_snapshot_ = CreateMaybeMessage< ::vega::commands::v1::RestoreSnapshot >(GetArena()); + } + return transaction_.restore_snapshot_; +} +inline ::vega::commands::v1::RestoreSnapshot* TxErrorEvent::mutable_restore_snapshot() { + // @@protoc_insertion_point(field_mutable:vega.events.v1.TxErrorEvent.restore_snapshot) + return _internal_mutable_restore_snapshot(); +} + inline bool TxErrorEvent::has_transaction() const { return transaction_case() != TRANSACTION_NOT_SET; } diff --git a/grpc/clients/cpp/generated/governance.pb.cc b/grpc/clients/cpp/generated/governance.pb.cc index 48f3aa62..9b525713 100644 --- a/grpc/clients/cpp/generated/governance.pb.cc +++ b/grpc/clients/cpp/generated/governance.pb.cc @@ -513,7 +513,7 @@ const char descriptor_table_protodef_governance_2eproto[] PROTOBUF_SECTION_VARIA "nuous\0224\n\010discrete\030\311\001 \001(\0132\025.vega.Discrete" "TradingH\001R\010discreteB\021\n\017risk_parametersB\016" "\n\014trading_mode\"\310\001\n\023NewMarketCommitment\022+" - "\n\021commitment_amount\030\001 \001(\004R\020commitmentAmo" + "\n\021commitment_amount\030\001 \001(\tR\020commitmentAmo" "unt\022\020\n\003fee\030\002 \001(\tR\003fee\022*\n\005sells\030\003 \003(\0132\024.v" "ega.LiquidityOrderR\005sells\022(\n\004buys\030\004 \003(\0132" "\024.vega.LiquidityOrderR\004buys\022\034\n\treference" @@ -563,7 +563,7 @@ const char descriptor_table_protodef_governance_2eproto[] PROTOBUF_SECTION_VARIA ".Vote.ValueB\007\342\337\037\003\210\001\001R\005value\022\'\n\013proposal_" "id\030\003 \001(\tB\006\342\337\037\002X\001R\nproposalId\022\034\n\ttimestam" "p\030\004 \001(\003R\ttimestamp\022C\n\036total_governance_t" - "oken_balance\030\005 \001(\004R\033totalGovernanceToken" + "oken_balance\030\005 \001(\tR\033totalGovernanceToken" "Balance\022A\n\035total_governance_token_weight" "\030\006 \001(\tR\032totalGovernanceTokenWeight\";\n\005Va" "lue\022\025\n\021VALUE_UNSPECIFIED\020\000\022\014\n\010VALUE_NO\020\001" @@ -2230,6 +2230,11 @@ NewMarketCommitment::NewMarketCommitment(const NewMarketCommitment& from) sells_(from.sells_), buys_(from.buys_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_commitment_amount().empty()) { + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_commitment_amount(), + GetArena()); + } fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_fee().empty()) { fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fee(), @@ -2240,15 +2245,14 @@ NewMarketCommitment::NewMarketCommitment(const NewMarketCommitment& from) reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), GetArena()); } - commitment_amount_ = from.commitment_amount_; // @@protoc_insertion_point(copy_constructor:vega.NewMarketCommitment) } void NewMarketCommitment::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NewMarketCommitment_governance_2eproto.base); + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - commitment_amount_ = PROTOBUF_ULONGLONG(0); } NewMarketCommitment::~NewMarketCommitment() { @@ -2259,6 +2263,7 @@ NewMarketCommitment::~NewMarketCommitment() { void NewMarketCommitment::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + commitment_amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -2286,9 +2291,9 @@ void NewMarketCommitment::Clear() { sells_.Clear(); buys_.Clear(); + commitment_amount_.ClearToEmpty(); fee_.ClearToEmpty(); reference_.ClearToEmpty(); - commitment_amount_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2299,10 +2304,12 @@ const char* NewMarketCommitment::_InternalParse(const char* ptr, ::PROTOBUF_NAME ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + // string commitment_amount = 1 [json_name = "commitmentAmount"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - commitment_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_commitment_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.NewMarketCommitment.commitment_amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -2376,10 +2383,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* NewMarketCommitment::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_commitment_amount(), target); + // string commitment_amount = 1 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_commitment_amount().data(), static_cast(this->_internal_commitment_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.NewMarketCommitment.commitment_amount"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_commitment_amount(), target); } // string fee = 2 [json_name = "fee"]; @@ -2448,6 +2459,13 @@ size_t NewMarketCommitment::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string commitment_amount = 1 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_commitment_amount()); + } + // string fee = 2 [json_name = "fee"]; if (this->fee().size() > 0) { total_size += 1 + @@ -2462,13 +2480,6 @@ size_t NewMarketCommitment::ByteSizeLong() const { this->_internal_reference()); } - // uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_commitment_amount()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -2502,15 +2513,15 @@ void NewMarketCommitment::MergeFrom(const NewMarketCommitment& from) { sells_.MergeFrom(from.sells_); buys_.MergeFrom(from.buys_); + if (from.commitment_amount().size() > 0) { + _internal_set_commitment_amount(from._internal_commitment_amount()); + } if (from.fee().size() > 0) { _internal_set_fee(from._internal_fee()); } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } - if (from.commitment_amount() != 0) { - _internal_set_commitment_amount(from._internal_commitment_amount()); - } } void NewMarketCommitment::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -2536,9 +2547,9 @@ void NewMarketCommitment::InternalSwap(NewMarketCommitment* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); sells_.InternalSwap(&other->sells_); buys_.InternalSwap(&other->buys_); + commitment_amount_.Swap(&other->commitment_amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fee_.Swap(&other->fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(commitment_amount_, other->commitment_amount_); } ::PROTOBUF_NAMESPACE_ID::Metadata NewMarketCommitment::GetMetadata() const { @@ -4823,6 +4834,11 @@ Vote::Vote(const Vote& from) proposal_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_proposal_id(), GetArena()); } + total_governance_token_balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_total_governance_token_balance().empty()) { + total_governance_token_balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_total_governance_token_balance(), + GetArena()); + } total_governance_token_weight_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_total_governance_token_weight().empty()) { total_governance_token_weight_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_total_governance_token_weight(), @@ -4838,6 +4854,7 @@ void Vote::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Vote_governance_2eproto.base); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); proposal_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + total_governance_token_balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); total_governance_token_weight_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(×tamp_) - reinterpret_cast(this)), @@ -4855,6 +4872,7 @@ void Vote::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); proposal_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + total_governance_token_balance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); total_governance_token_weight_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -4881,6 +4899,7 @@ void Vote::Clear() { party_id_.ClearToEmpty(); proposal_id_.ClearToEmpty(); + total_governance_token_balance_.ClearToEmpty(); total_governance_token_weight_.ClearToEmpty(); ::memset(×tamp_, 0, static_cast( reinterpret_cast(&value_) - @@ -4928,10 +4947,12 @@ const char* Vote::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter CHK_(ptr); } else goto handle_unusual; continue; - // uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + // string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - total_governance_token_balance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_total_governance_token_balance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Vote.total_governance_token_balance")); CHK_(ptr); } else goto handle_unusual; continue; @@ -5005,10 +5026,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Vote::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_timestamp(), target); } - // uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; - if (this->total_governance_token_balance() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_total_governance_token_balance(), target); + // string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + if (this->total_governance_token_balance().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_total_governance_token_balance().data(), static_cast(this->_internal_total_governance_token_balance().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Vote.total_governance_token_balance"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_total_governance_token_balance(), target); } // string total_governance_token_weight = 6 [json_name = "totalGovernanceTokenWeight"]; @@ -5051,6 +5076,13 @@ size_t Vote::ByteSizeLong() const { this->_internal_proposal_id()); } + // string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + if (this->total_governance_token_balance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_total_governance_token_balance()); + } + // string total_governance_token_weight = 6 [json_name = "totalGovernanceTokenWeight"]; if (this->total_governance_token_weight().size() > 0) { total_size += 1 + @@ -5065,13 +5097,6 @@ size_t Vote::ByteSizeLong() const { this->_internal_timestamp()); } - // uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; - if (this->total_governance_token_balance() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_total_governance_token_balance()); - } - // .vega.Vote.Value value = 2 [json_name = "value", (.validator.field) = { if (this->value() != 0) { total_size += 1 + @@ -5115,15 +5140,15 @@ void Vote::MergeFrom(const Vote& from) { if (from.proposal_id().size() > 0) { _internal_set_proposal_id(from._internal_proposal_id()); } + if (from.total_governance_token_balance().size() > 0) { + _internal_set_total_governance_token_balance(from._internal_total_governance_token_balance()); + } if (from.total_governance_token_weight().size() > 0) { _internal_set_total_governance_token_weight(from._internal_total_governance_token_weight()); } if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } - if (from.total_governance_token_balance() != 0) { - _internal_set_total_governance_token_balance(from._internal_total_governance_token_balance()); - } if (from.value() != 0) { _internal_set_value(from._internal_value()); } @@ -5152,6 +5177,7 @@ void Vote::InternalSwap(Vote* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); proposal_id_.Swap(&other->proposal_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + total_governance_token_balance_.Swap(&other->total_governance_token_balance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); total_governance_token_weight_.Swap(&other->total_governance_token_weight_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Vote, value_) diff --git a/grpc/clients/cpp/generated/governance.pb.h b/grpc/clients/cpp/generated/governance.pb.h index 0377c7c7..895aa447 100644 --- a/grpc/clients/cpp/generated/governance.pb.h +++ b/grpc/clients/cpp/generated/governance.pb.h @@ -1126,9 +1126,9 @@ class NewMarketCommitment PROTOBUF_FINAL : enum : int { kSellsFieldNumber = 3, kBuysFieldNumber = 4, + kCommitmentAmountFieldNumber = 1, kFeeFieldNumber = 2, kReferenceFieldNumber = 5, - kCommitmentAmountFieldNumber = 1, }; // repeated .vega.LiquidityOrder sells = 3 [json_name = "sells"]; int sells_size() const; @@ -1166,6 +1166,22 @@ class NewMarketCommitment PROTOBUF_FINAL : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrder >& buys() const; + // string commitment_amount = 1 [json_name = "commitmentAmount"]; + void clear_commitment_amount(); + const std::string& commitment_amount() const; + void set_commitment_amount(const std::string& value); + void set_commitment_amount(std::string&& value); + void set_commitment_amount(const char* value); + void set_commitment_amount(const char* value, size_t size); + std::string* mutable_commitment_amount(); + std::string* release_commitment_amount(); + void set_allocated_commitment_amount(std::string* commitment_amount); + private: + const std::string& _internal_commitment_amount() const; + void _internal_set_commitment_amount(const std::string& value); + std::string* _internal_mutable_commitment_amount(); + public: + // string fee = 2 [json_name = "fee"]; void clear_fee(); const std::string& fee() const; @@ -1198,15 +1214,6 @@ class NewMarketCommitment PROTOBUF_FINAL : std::string* _internal_mutable_reference(); public: - // uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; - void clear_commitment_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount() const; - void set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_commitment_amount() const; - void _internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.NewMarketCommitment) private: class _Internal; @@ -1216,9 +1223,9 @@ class NewMarketCommitment PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrder > sells_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityOrder > buys_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr commitment_amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fee_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_governance_2eproto; }; @@ -2792,9 +2799,9 @@ class Vote PROTOBUF_FINAL : enum : int { kPartyIdFieldNumber = 1, kProposalIdFieldNumber = 3, + kTotalGovernanceTokenBalanceFieldNumber = 5, kTotalGovernanceTokenWeightFieldNumber = 6, kTimestampFieldNumber = 4, - kTotalGovernanceTokenBalanceFieldNumber = 5, kValueFieldNumber = 2, }; // string party_id = 1 [json_name = "partyId", (.validator.field) = { @@ -2829,6 +2836,22 @@ class Vote PROTOBUF_FINAL : std::string* _internal_mutable_proposal_id(); public: + // string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + void clear_total_governance_token_balance(); + const std::string& total_governance_token_balance() const; + void set_total_governance_token_balance(const std::string& value); + void set_total_governance_token_balance(std::string&& value); + void set_total_governance_token_balance(const char* value); + void set_total_governance_token_balance(const char* value, size_t size); + std::string* mutable_total_governance_token_balance(); + std::string* release_total_governance_token_balance(); + void set_allocated_total_governance_token_balance(std::string* total_governance_token_balance); + private: + const std::string& _internal_total_governance_token_balance() const; + void _internal_set_total_governance_token_balance(const std::string& value); + std::string* _internal_mutable_total_governance_token_balance(); + public: + // string total_governance_token_weight = 6 [json_name = "totalGovernanceTokenWeight"]; void clear_total_governance_token_weight(); const std::string& total_governance_token_weight() const; @@ -2854,15 +2877,6 @@ class Vote PROTOBUF_FINAL : void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; - void clear_total_governance_token_balance(); - ::PROTOBUF_NAMESPACE_ID::uint64 total_governance_token_balance() const; - void set_total_governance_token_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_governance_token_balance() const; - void _internal_set_total_governance_token_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // .vega.Vote.Value value = 2 [json_name = "value", (.validator.field) = { void clear_value(); ::vega::Vote_Value value() const; @@ -2881,9 +2895,9 @@ class Vote PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proposal_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr total_governance_token_balance_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr total_governance_token_weight_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; - ::PROTOBUF_NAMESPACE_ID::uint64 total_governance_token_balance_; int value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_governance_2eproto; @@ -4138,25 +4152,66 @@ inline NewMarketConfiguration::TradingModeCase NewMarketConfiguration::trading_m // NewMarketCommitment -// uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; +// string commitment_amount = 1 [json_name = "commitmentAmount"]; inline void NewMarketCommitment::clear_commitment_amount() { - commitment_amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 NewMarketCommitment::_internal_commitment_amount() const { - return commitment_amount_; + commitment_amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 NewMarketCommitment::commitment_amount() const { +inline const std::string& NewMarketCommitment::commitment_amount() const { // @@protoc_insertion_point(field_get:vega.NewMarketCommitment.commitment_amount) return _internal_commitment_amount(); } -inline void NewMarketCommitment::_internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - commitment_amount_ = value; -} -inline void NewMarketCommitment::set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void NewMarketCommitment::set_commitment_amount(const std::string& value) { _internal_set_commitment_amount(value); // @@protoc_insertion_point(field_set:vega.NewMarketCommitment.commitment_amount) } +inline std::string* NewMarketCommitment::mutable_commitment_amount() { + // @@protoc_insertion_point(field_mutable:vega.NewMarketCommitment.commitment_amount) + return _internal_mutable_commitment_amount(); +} +inline const std::string& NewMarketCommitment::_internal_commitment_amount() const { + return commitment_amount_.Get(); +} +inline void NewMarketCommitment::_internal_set_commitment_amount(const std::string& value) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void NewMarketCommitment::set_commitment_amount(std::string&& value) { + + commitment_amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.NewMarketCommitment.commitment_amount) +} +inline void NewMarketCommitment::set_commitment_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.NewMarketCommitment.commitment_amount) +} +inline void NewMarketCommitment::set_commitment_amount(const char* value, + size_t size) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.NewMarketCommitment.commitment_amount) +} +inline std::string* NewMarketCommitment::_internal_mutable_commitment_amount() { + + return commitment_amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* NewMarketCommitment::release_commitment_amount() { + // @@protoc_insertion_point(field_release:vega.NewMarketCommitment.commitment_amount) + return commitment_amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void NewMarketCommitment::set_allocated_commitment_amount(std::string* commitment_amount) { + if (commitment_amount != nullptr) { + + } else { + + } + commitment_amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), commitment_amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.NewMarketCommitment.commitment_amount) +} // string fee = 2 [json_name = "fee"]; inline void NewMarketCommitment::clear_fee() { @@ -5837,25 +5892,66 @@ inline void Vote::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { // @@protoc_insertion_point(field_set:vega.Vote.timestamp) } -// uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; +// string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; inline void Vote::clear_total_governance_token_balance() { - total_governance_token_balance_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Vote::_internal_total_governance_token_balance() const { - return total_governance_token_balance_; + total_governance_token_balance_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Vote::total_governance_token_balance() const { +inline const std::string& Vote::total_governance_token_balance() const { // @@protoc_insertion_point(field_get:vega.Vote.total_governance_token_balance) return _internal_total_governance_token_balance(); } -inline void Vote::_internal_set_total_governance_token_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - total_governance_token_balance_ = value; -} -inline void Vote::set_total_governance_token_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Vote::set_total_governance_token_balance(const std::string& value) { _internal_set_total_governance_token_balance(value); // @@protoc_insertion_point(field_set:vega.Vote.total_governance_token_balance) } +inline std::string* Vote::mutable_total_governance_token_balance() { + // @@protoc_insertion_point(field_mutable:vega.Vote.total_governance_token_balance) + return _internal_mutable_total_governance_token_balance(); +} +inline const std::string& Vote::_internal_total_governance_token_balance() const { + return total_governance_token_balance_.Get(); +} +inline void Vote::_internal_set_total_governance_token_balance(const std::string& value) { + + total_governance_token_balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Vote::set_total_governance_token_balance(std::string&& value) { + + total_governance_token_balance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Vote.total_governance_token_balance) +} +inline void Vote::set_total_governance_token_balance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + total_governance_token_balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Vote.total_governance_token_balance) +} +inline void Vote::set_total_governance_token_balance(const char* value, + size_t size) { + + total_governance_token_balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Vote.total_governance_token_balance) +} +inline std::string* Vote::_internal_mutable_total_governance_token_balance() { + + return total_governance_token_balance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Vote::release_total_governance_token_balance() { + // @@protoc_insertion_point(field_release:vega.Vote.total_governance_token_balance) + return total_governance_token_balance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Vote::set_allocated_total_governance_token_balance(std::string* total_governance_token_balance) { + if (total_governance_token_balance != nullptr) { + + } else { + + } + total_governance_token_balance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), total_governance_token_balance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Vote.total_governance_token_balance) +} // string total_governance_token_weight = 6 [json_name = "totalGovernanceTokenWeight"]; inline void Vote::clear_total_governance_token_weight() { diff --git a/grpc/clients/cpp/generated/vega.pb.cc b/grpc/clients/cpp/generated/vega.pb.cc index c6d93399..eb6291b9 100644 --- a/grpc/clients/cpp/generated/vega.pb.cc +++ b/grpc/clients/cpp/generated/vega.pb.cc @@ -1419,6 +1419,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB PROTOBUF_FIELD_OFFSET(::vega::Node, epoch_data_), PROTOBUF_FIELD_OFFSET(::vega::Node, status_), PROTOBUF_FIELD_OFFSET(::vega::Node, delagations_), + PROTOBUF_FIELD_OFFSET(::vega::Node, score_), + PROTOBUF_FIELD_OFFSET(::vega::Node, normalised_score_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::NodeData, _internal_metadata_), ~0u, // no _extensions_ @@ -1506,10 +1508,10 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 442, -1, sizeof(::vega::EpochParticipation)}, { 451, -1, sizeof(::vega::EpochData)}, { 459, -1, sizeof(::vega::Node)}, - { 476, -1, sizeof(::vega::NodeData)}, - { 486, -1, sizeof(::vega::Delegation)}, - { 495, -1, sizeof(::vega::RewardDetails)}, - { 506, -1, sizeof(::vega::RewardPerAssetDetail)}, + { 478, -1, sizeof(::vega::NodeData)}, + { 488, -1, sizeof(::vega::Delegation)}, + { 497, -1, sizeof(::vega::RewardDetails)}, + { 508, -1, sizeof(::vega::RewardPerAssetDetail)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -1570,7 +1572,7 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "\n\nvega.proto\022\004vega\0326github.com/mwitkow/g" "o-proto-validators/validator.proto\032\rmark" "ets.proto\032\014assets.proto\"\035\n\005Price\022\024\n\005valu" - "e\030\001 \001(\004R\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" + "e\030\001 \001(\tR\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" "(\003R\005value\"S\n\005Party\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002" "id\0222\n\013delegations\030\002 \003(\0132\020.vega.Delegatio" "nR\013delegations\"N\n\nRiskFactor\022\026\n\006market\030\001" @@ -1592,7 +1594,7 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "et\030\002 \001(\003R\006offset\"\342\010\n\005Order\022\016\n\002id\030\001 \001(\tR\002" "id\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\022\031\n\010party" "_id\030\003 \001(\tR\007partyId\022\036\n\004side\030\004 \001(\0162\n.vega." - "SideR\004side\022\024\n\005price\030\005 \001(\004R\005price\022\022\n\004size" + "SideR\004side\022\024\n\005price\030\005 \001(\tR\005price\022\022\n\004size" "\030\006 \001(\004R\004size\022\034\n\tremaining\030\007 \001(\004R\tremaini" "ng\022;\n\rtime_in_force\030\010 \001(\0162\027.vega.Order.T" "imeInForceR\013timeInForce\022$\n\004type\030\t \001(\0162\020." @@ -1625,12 +1627,12 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "s_affected\030\003 \003(\0132\013.vega.OrderR\025passiveOr" "dersAffected\"\323\001\n\026AuctionIndicativeState\022" "\033\n\tmarket_id\030\001 \001(\tR\010marketId\022)\n\020indicati" - "ve_price\030\002 \001(\004R\017indicativePrice\022+\n\021indic" + "ve_price\030\002 \001(\tR\017indicativePrice\022+\n\021indic" "ative_volume\030\003 \001(\004R\020indicativeVolume\022#\n\r" "auction_start\030\004 \001(\003R\014auctionStart\022\037\n\013auc" "tion_end\030\005 \001(\003R\nauctionEnd\"\333\004\n\005Trade\022\016\n\002" "id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010marketI" - "d\022\024\n\005price\030\003 \001(\004R\005price\022\022\n\004size\030\004 \001(\004R\004s" + "d\022\024\n\005price\030\003 \001(\tR\005price\022\022\n\004size\030\004 \001(\004R\004s" "ize\022\024\n\005buyer\030\005 \001(\tR\005buyer\022\026\n\006seller\030\006 \001(" "\tR\006seller\022(\n\taggressor\030\007 \001(\0162\n.vega.Side" "R\taggressor\022\033\n\tbuy_order\030\010 \001(\tR\010buyOrder" @@ -1644,17 +1646,17 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "o\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_DE" "FAULT\020\001\022\037\n\033TYPE_NETWORK_CLOSE_OUT_GOOD\020\002" "\022\036\n\032TYPE_NETWORK_CLOSE_OUT_BAD\020\003\"v\n\003Fee\022" - "\033\n\tmaker_fee\030\001 \001(\004R\010makerFee\022-\n\022infrastr" - "ucture_fee\030\002 \001(\004R\021infrastructureFee\022#\n\rl" - "iquidity_fee\030\003 \001(\004R\014liquidityFee\"/\n\010Trad" + "\033\n\tmaker_fee\030\001 \001(\tR\010makerFee\022-\n\022infrastr" + "ucture_fee\030\002 \001(\tR\021infrastructureFee\022#\n\rl" + "iquidity_fee\030\003 \001(\tR\014liquidityFee\"/\n\010Trad" "eSet\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" "s\"\326\001\n\006Candle\022\034\n\ttimestamp\030\001 \001(\003R\ttimesta" "mp\022\032\n\010datetime\030\002 \001(\tR\010datetime\022\022\n\004high\030\003" - " \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003low\022\022\n\004open\030\005 \001" - "(\004R\004open\022\024\n\005close\030\006 \001(\004R\005close\022\026\n\006volume" + " \001(\tR\004high\022\020\n\003low\030\004 \001(\tR\003low\022\022\n\004open\030\005 \001" + "(\tR\004open\022\024\n\005close\030\006 \001(\tR\005close\022\026\n\006volume" "\030\007 \001(\004R\006volume\022*\n\010interval\030\010 \001(\0162\016.vega." "IntervalR\010interval\"d\n\nPriceLevel\022\024\n\005pric" - "e\030\001 \001(\004R\005price\022(\n\020number_of_orders\030\002 \001(\004" + "e\030\001 \001(\tR\005price\022(\n\020number_of_orders\030\002 \001(\004" "R\016numberOfOrders\022\026\n\006volume\030\003 \001(\004R\006volume" "\"\235\001\n\013MarketDepth\022\033\n\tmarket_id\030\001 \001(\tR\010mar" "ketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevelR\003bu" @@ -1667,11 +1669,11 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "Number\"\374\001\n\010Position\022\033\n\tmarket_id\030\001 \001(\tR\010" "marketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\037\n\013o" "pen_volume\030\003 \001(\003R\nopenVolume\022!\n\014realised" - "_pnl\030\004 \001(\003R\013realisedPnl\022%\n\016unrealised_pn" - "l\030\005 \001(\003R\runrealisedPnl\022.\n\023average_entry_" - "price\030\006 \001(\004R\021averageEntryPrice\022\035\n\nupdate" + "_pnl\030\004 \001(\tR\013realisedPnl\022%\n\016unrealised_pn" + "l\030\005 \001(\tR\runrealisedPnl\022.\n\023average_entry_" + "price\030\006 \001(\tR\021averageEntryPrice\022\035\n\nupdate" "d_at\030\007 \001(\003R\tupdatedAt\"=\n\rPositionTrade\022\026" - "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\004R\005p" + "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\tR\005p" "rice\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006stat" "us\030\002 \001(\0162\024.vega.Deposit.StatusR\006status\022\031" "\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001(\t" @@ -1682,7 +1684,7 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020\001\022" "\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALIZE" "D\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010pa" - "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R\006a" + "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\tR\006a" "mount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030\005 " "\001(\0162\027.vega.Withdrawal.StatusR\006status\022\020\n\003" "ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry\022\027" @@ -1697,55 +1699,55 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "=\n\020Erc20WithdrawExt\022)\n\020receiver_address\030" "\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002id" "\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007bala" - "nce\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" + "nce\030\003 \001(\tR\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" "\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030\006 " "\001(\0162\021.vega.AccountTypeR\004type\"\?\n\017Financia" - "lAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005asset" + "lAmount\022\026\n\006amount\030\001 \001(\tR\006amount\022\024\n\005asset" "\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 \001(" "\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financia" "lAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.Tra" - "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tmin" + "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\tR\tmin" "Amount\"\334\001\n\017TransferRequest\0220\n\014from_accou" "nt\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022,\n\n" "to_account\030\002 \003(\0132\r.vega.AccountR\ttoAccou" - "nt\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amount" - "\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" + "nt\022\026\n\006amount\030\003 \001(\tR\006amount\022\035\n\nmin_amount" + "\030\004 \001(\tR\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" "\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledger" "Entry\022!\n\014from_account\030\001 \001(\tR\013fromAccount" "\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amoun" - "t\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\trefe" + "t\030\003 \001(\tR\006amount\022\034\n\treference\030\004 \001(\tR\trefe" "rence\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp\030\006" " \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007ac" "count\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n\007b" - "alance\030\002 \001(\004R\007balance\"v\n\020TransferRespons" + "alance\030\002 \001(\tR\007balance\"v\n\020TransferRespons" "e\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntryR" "\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tran" "sferBalanceR\010balances\"\255\002\n\014MarginLevels\022-" - "\n\022maintenance_margin\030\001 \001(\004R\021maintenanceM" - "argin\022!\n\014search_level\030\002 \001(\004R\013searchLevel" - "\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargin\022" - "8\n\030collateral_release_level\030\004 \001(\004R\026colla" + "\n\022maintenance_margin\030\001 \001(\tR\021maintenanceM" + "argin\022!\n\014search_level\030\002 \001(\tR\013searchLevel" + "\022%\n\016initial_margin\030\003 \001(\tR\rinitialMargin\022" + "8\n\030collateral_release_level\030\004 \001(\tR\026colla" "teralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007par" "tyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005ass" "et\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\ttime" - "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\004" - "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014bes" + "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\t" + "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\tR\014bes" "tBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbest" - "BidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016bes" + "BidVolume\022(\n\020best_offer_price\030\004 \001(\tR\016bes" "tOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004R\017" "bestOfferVolume\0221\n\025best_static_bid_price" - "\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_stati" + "\030\006 \001(\tR\022bestStaticBidPrice\0223\n\026best_stati" "c_bid_volume\030\007 \001(\004R\023bestStaticBidVolume\022" - "5\n\027best_static_offer_price\030\010 \001(\004R\024bestSt" + "5\n\027best_static_offer_price\030\010 \001(\tR\024bestSt" "aticOfferPrice\0227\n\030best_static_offer_volu" "me\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid_p" - "rice\030\n \001(\004R\010midPrice\022(\n\020static_mid_price" - "\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" + "rice\030\n \001(\tR\010midPrice\022(\n\020static_mid_price" + "\030\013 \001(\tR\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" "market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#\n\r" "open_interest\030\016 \001(\004R\014openInterest\022\037\n\013auc" "tion_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_st" "art\030\020 \001(\003R\014auctionStart\022)\n\020indicative_pr" - "ice\030\021 \001(\004R\017indicativePrice\022+\n\021indicative" + "ice\030\021 \001(\tR\017indicativePrice\022+\n\021indicative" "_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023marke" "t_trading_mode\030\023 \001(\0162\030.vega.Market.Tradi" "ngModeR\021marketTradingMode\022.\n\007trigger\030\024 \001" @@ -1764,8 +1766,8 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "(\tR\017equityLikeShare\0226\n\027average_entry_val" "uation\030\003 \001(\tR\025averageEntryValuation\"\310\001\n\025" "PriceMonitoringBounds\022&\n\017min_valid_price" - "\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_price" - "\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" + "\030\001 \001(\tR\rminValidPrice\022&\n\017max_valid_price" + "\030\002 \001(\tR\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" ".vega.PriceMonitoringTriggerR\007trigger\022\'\n" "\017reference_price\030\004 \001(\001R\016referencePrice\"Q" "\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007mes" @@ -1782,7 +1784,7 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "(\tR\007partyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreated" "At\022\035\n\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmar" "ket_id\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commit" - "ment_amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003f" + "ment_amount\030\006 \001(\tR\020commitmentAmount\022\020\n\003f" "ee\030\007 \001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liqu" "idityOrderReferenceR\005sells\0221\n\004buys\030\t \003(\013" "2\035.vega.LiquidityOrderReferenceR\004buys\022\030\n" @@ -1812,7 +1814,7 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "\006online\022#\n\rtotal_rewards\030\004 \001(\001R\014totalRew" "ards\"S\n\tEpochData\022\024\n\005total\030\001 \001(\005R\005total\022" "\030\n\007offline\030\002 \001(\005R\007offline\022\026\n\006online\030\003 \001(" - "\005R\006online\"\340\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + "\005R\006online\"\241\004\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" "b_key\030\002 \001(\tB\006\342\337\037\002X\001R\006pubKey\022\031\n\010info_url\030" "\003 \001(\tR\007infoUrl\022\032\n\010location\030\004 \001(\tR\010locati" "on\022,\n\022staked_by_operator\030\005 \001(\tR\020stakedBy" @@ -1824,122 +1826,124 @@ const char descriptor_table_protodef_vega_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "a.EpochDataB\006\342\337\037\002 \001R\tepochData\0220\n\006status" "\030\013 \001(\0162\020.vega.NodeStatusB\006\342\337\037\002 \001R\006status" "\0222\n\013delagations\030\014 \003(\0132\020.vega.DelegationR" - "\013delagations\"\270\001\n\010NodeData\022!\n\014staked_tota" - "l\030\001 \001(\tR\013stakedTotal\022\037\n\013total_nodes\030\002 \001(" - "\rR\ntotalNodes\022%\n\016inactive_nodes\030\003 \001(\rR\ri" - "nactiveNodes\022)\n\020validating_nodes\030\004 \001(\rR\017" - "validatingNodes\022\026\n\006uptime\030\005 \001(\002R\006uptime\"" - "p\n\nDelegation\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007n" - "ode_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\tR\006am" - "ount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRe" - "wardDetails\022\031\n\010asset_id\030\001 \001(\tR\007assetId\022\031" - "\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005epoch\030\003 \001(\004" - "R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amount\022.\n\023perce" - "ntage_of_total\030\005 \001(\tR\021percentageOfTotal\022" - "\037\n\013received_at\030\006 \001(\003R\nreceivedAt\"\203\001\n\024Rew" - "ardPerAssetDetail\022\024\n\005asset\030\001 \001(\tR\005asset\022" - "-\n\007details\030\002 \003(\0132\023.vega.RewardDetailsR\007d" - "etails\022&\n\017total_for_asset\030\003 \001(\tR\rtotalFo" - "rAsset*9\n\004Side\022\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010" - "SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230\001\n\010Interval\022\030" - "\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n\014INTERVAL_I1M" - "\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204" - "\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001" - "\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016AuctionTrigger\022" - "\037\n\033AUCTION_TRIGGER_UNSPECIFIED\020\000\022\031\n\025AUCT" - "ION_TRIGGER_BATCH\020\001\022\033\n\027AUCTION_TRIGGER_O" - "PENING\020\002\022\031\n\025AUCTION_TRIGGER_PRICE\020\003\022\035\n\031A" - "UCTION_TRIGGER_LIQUIDITY\020\004*\213\001\n\017PeggedRef" - "erence\022 \n\034PEGGED_REFERENCE_UNSPECIFIED\020\000" - "\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n\031PEGGED_REF" - "ERENCE_BEST_BID\020\002\022\035\n\031PEGGED_REFERENCE_BE" - "ST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027ORDER_ERROR_U" - "NSPECIFIED\020\000\022!\n\035ORDER_ERROR_INVALID_MARK" - "ET_ID\020\001\022 \n\034ORDER_ERROR_INVALID_ORDER_ID\020" - "\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUENCE\020\003\022&\n\"OR" - "DER_ERROR_INVALID_REMAINING_SIZE\020\004\022\034\n\030OR" - "DER_ERROR_TIME_FAILURE\020\005\022\037\n\033ORDER_ERROR_" - "REMOVAL_FAILURE\020\006\022+\n\'ORDER_ERROR_INVALID" - "_EXPIRATION_DATETIME\020\007\022\'\n#ORDER_ERROR_IN" - "VALID_ORDER_REFERENCE\020\010\022 \n\034ORDER_ERROR_E" - "DIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ERROR_AMEND_F" - "AILURE\020\n\022\031\n\025ORDER_ERROR_NOT_FOUND\020\013\022 \n\034O" - "RDER_ERROR_INVALID_PARTY_ID\020\014\022\035\n\031ORDER_E" - "RROR_MARKET_CLOSED\020\r\022#\n\037ORDER_ERROR_MARG" - "IN_CHECK_FAILED\020\016\022\'\n#ORDER_ERROR_MISSING" - "_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_ERROR_INTERN" - "AL_ERROR\020\020\022\034\n\030ORDER_ERROR_INVALID_SIZE\020\021" - "\022#\n\037ORDER_ERROR_INVALID_PERSISTENCE\020\022\022\034\n" - "\030ORDER_ERROR_INVALID_TYPE\020\023\022\034\n\030ORDER_ERR" - "OR_SELF_TRADING\020\024\022.\n*ORDER_ERROR_INSUFFI" - "CIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!ORDER_ERROR" - "_INCORRECT_MARKET_TYPE\020\026\022%\n!ORDER_ERROR_" - "INVALID_TIME_IN_FORCE\020\027\022+\n\'ORDER_ERROR_G" - "FN_ORDER_DURING_AN_AUCTION\020\030\0223\n/ORDER_ER" - "ROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\020" - "\031\0224\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WIT" - "HOUT_EXPIRYAT\020\032\022)\n%ORDER_ERROR_EXPIRYAT_" - "BEFORE_CREATEDAT\020\033\022,\n(ORDER_ERROR_CANNOT" - "_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&ORDER_ERROR_" - "CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022*\n&ORDER_ER" - "ROR_CANNOT_AMEND_TO_GFA_OR_GFN\020\036\022,\n(ORDE" - "R_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\020\037\0224" - "\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURI" - "NG_AUCTION\020 \0224\n0ORDER_ERROR_CANNOT_SEND_" - "FOK_ORDER_DURING_AUCTION\020!\022#\n\037ORDER_ERRO" - "R_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036ORDER_ERROR_M" - "UST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_ERROR_WITHO" - "UT_REFERENCE_PRICE\020$\0223\n/ORDER_ERROR_BUY_" - "CANNOT_REFERENCE_BEST_ASK_PRICE\020%\0224\n0ORD" - "ER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO" - "_ZERO\020&\022-\n)ORDER_ERROR_OFFSET_MUST_BE_LE" - "SS_THAN_ZERO\020\'\0227\n3ORDER_ERROR_OFFSET_MUS" - "T_BE_GREATER_OR_EQUAL_TO_ZERO\020(\0224\n0ORDER" - "_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PR" - "ICE\020)\0220\n,ORDER_ERROR_OFFSET_MUST_BE_GREA" - "TER_THAN_ZERO\020*\022*\n&ORDER_ERROR_INSUFFICI" - "ENT_ASSET_BALANCE\020+\022E\nAORDER_ERROR_CANNO" - "T_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGG" - "ED_ORDER\020,\022.\n*ORDER_ERROR_UNABLE_TO_REPR" - "ICE_PEGGED_ORDER\020-\0225\n1ORDER_ERROR_UNABLE" - "_TO_AMEND_PRICE_ON_PEGGED_ORDER\020.\0228\n4ORD" - "ER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRI" - "CE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034\n\030CHAIN_STA" - "TUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_STATUS_DISCON" - "NECTED\020\001\022\032\n\026CHAIN_STATUS_REPLAYING\020\002\022\032\n\026" - "CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013AccountType" - "\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020\000\022\032\n\026ACCOUN" - "T_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT_TYPE_SETTL" - "EMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGIN\020\003\022\030\n\024ACCO" - "UNT_TYPE_GENERAL\020\004\022$\n ACCOUNT_TYPE_FEES_" - "INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_TYPE_FEES_LI" - "QUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEES_MAKER\020\007\022\036" - "\n\032ACCOUNT_TYPE_LOCK_WITHDRAW\020\010\022\025\n\021ACCOUN" - "T_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TYPE_EXTERNAL\020\n" - "\022!\n\035ACCOUNT_TYPE_GLOBAL_INSURANCE\020\013\022\036\n\032A" - "CCOUNT_TYPE_GLOBAL_REWARD\020\014*\323\005\n\014Transfer" - "Type\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020\000\022\026\n\022T" - "RANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSFER_TYPE_WIN" - "\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003\022\032\n\026TRANSFER_" - "TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER_TYPE_MTM_WIN" - "\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LOW\020\006\022\035\n\031TRAN" - "SFER_TYPE_MARGIN_HIGH\020\007\022$\n TRANSFER_TYPE" - "_MARGIN_CONFISCATED\020\010\022\037\n\033TRANSFER_TYPE_M" - "AKER_FEE_PAY\020\t\022#\n\037TRANSFER_TYPE_MAKER_FE" - "E_RECEIVE\020\n\022(\n$TRANSFER_TYPE_INFRASTRUCT" - "URE_FEE_PAY\020\013\022/\n+TRANSFER_TYPE_INFRASTRU" - "CTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRANSFER_TYPE_" - "LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSFER_TYPE_LIQ" - "UIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TRANSFER_TYPE" - "_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_BOND_HIGH\020\020" - "\022\037\n\033TRANSFER_TYPE_WITHDRAW_LOCK\020\021\022\032\n\026TRA" - "NSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRANSFER_TYPE_D" - "EPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BOND_SLASHING\020" - "\024\022\036\n\032TRANSFER_TYPE_STAKE_REWARD\020\025*c\n\nNod" - "eStatus\022\033\n\027NODE_STATUS_UNSPECIFIED\020\000\022\031\n\025" - "NODE_STATUS_VALIDATOR\020\001\022\035\n\031NODE_STATUS_N" - "ON_VALIDATOR\020\002B7\n\024io.vegaprotocol.vegaZ\037" - "code.vegaprotocol.io/vega/protob\006proto3" + "\013delagations\022\024\n\005score\030\r \001(\tR\005score\022)\n\020no" + "rmalised_score\030\016 \001(\tR\017normalisedScore\"\270\001" + "\n\010NodeData\022!\n\014staked_total\030\001 \001(\tR\013staked" + "Total\022\037\n\013total_nodes\030\002 \001(\rR\ntotalNodes\022%" + "\n\016inactive_nodes\030\003 \001(\rR\rinactiveNodes\022)\n" + "\020validating_nodes\030\004 \001(\rR\017validatingNodes" + "\022\026\n\006uptime\030\005 \001(\002R\006uptime\"p\n\nDelegation\022\024" + "\n\005party\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006n" + "odeId\022\026\n\006amount\030\003 \001(\tR\006amount\022\033\n\tepoch_s" + "eq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRewardDetails\022\031\n\010" + "asset_id\030\001 \001(\tR\007assetId\022\031\n\010party_id\030\002 \001(" + "\tR\007partyId\022\024\n\005epoch\030\003 \001(\004R\005epoch\022\026\n\006amou" + "nt\030\004 \001(\tR\006amount\022.\n\023percentage_of_total\030" + "\005 \001(\tR\021percentageOfTotal\022\037\n\013received_at\030" + "\006 \001(\003R\nreceivedAt\"\203\001\n\024RewardPerAssetDeta" + "il\022\024\n\005asset\030\001 \001(\tR\005asset\022-\n\007details\030\002 \003(" + "\0132\023.vega.RewardDetailsR\007details\022&\n\017total" + "_for_asset\030\003 \001(\tR\rtotalForAsset*9\n\004Side\022" + "\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010SIDE_BUY\020\001\022\r\n\tS" + "IDE_SELL\020\002*\230\001\n\010Interval\022\030\n\024INTERVAL_UNSP" + "ECIFIED\020\000\022\020\n\014INTERVAL_I1M\020<\022\021\n\014INTERVAL_" + "I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204\007\022\021\n\014INTERVAL_I" + "1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1" + "D\020\200\243\005*\243\001\n\016AuctionTrigger\022\037\n\033AUCTION_TRIG" + "GER_UNSPECIFIED\020\000\022\031\n\025AUCTION_TRIGGER_BAT" + "CH\020\001\022\033\n\027AUCTION_TRIGGER_OPENING\020\002\022\031\n\025AUC" + "TION_TRIGGER_PRICE\020\003\022\035\n\031AUCTION_TRIGGER_" + "LIQUIDITY\020\004*\213\001\n\017PeggedReference\022 \n\034PEGGE" + "D_REFERENCE_UNSPECIFIED\020\000\022\030\n\024PEGGED_REFE" + "RENCE_MID\020\001\022\035\n\031PEGGED_REFERENCE_BEST_BID" + "\020\002\022\035\n\031PEGGED_REFERENCE_BEST_ASK\020\003*\370\017\n\nOr" + "derError\022\033\n\027ORDER_ERROR_UNSPECIFIED\020\000\022!\n" + "\035ORDER_ERROR_INVALID_MARKET_ID\020\001\022 \n\034ORDE" + "R_ERROR_INVALID_ORDER_ID\020\002\022\037\n\033ORDER_ERRO" + "R_OUT_OF_SEQUENCE\020\003\022&\n\"ORDER_ERROR_INVAL" + "ID_REMAINING_SIZE\020\004\022\034\n\030ORDER_ERROR_TIME_" + "FAILURE\020\005\022\037\n\033ORDER_ERROR_REMOVAL_FAILURE" + "\020\006\022+\n\'ORDER_ERROR_INVALID_EXPIRATION_DAT" + "ETIME\020\007\022\'\n#ORDER_ERROR_INVALID_ORDER_REF" + "ERENCE\020\010\022 \n\034ORDER_ERROR_EDIT_NOT_ALLOWED" + "\020\t\022\035\n\031ORDER_ERROR_AMEND_FAILURE\020\n\022\031\n\025ORD" + "ER_ERROR_NOT_FOUND\020\013\022 \n\034ORDER_ERROR_INVA" + "LID_PARTY_ID\020\014\022\035\n\031ORDER_ERROR_MARKET_CLO" + "SED\020\r\022#\n\037ORDER_ERROR_MARGIN_CHECK_FAILED" + "\020\016\022\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUN" + "T\020\017\022\036\n\032ORDER_ERROR_INTERNAL_ERROR\020\020\022\034\n\030O" + "RDER_ERROR_INVALID_SIZE\020\021\022#\n\037ORDER_ERROR" + "_INVALID_PERSISTENCE\020\022\022\034\n\030ORDER_ERROR_IN" + "VALID_TYPE\020\023\022\034\n\030ORDER_ERROR_SELF_TRADING" + "\020\024\022.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_" + "PAY_FEES\020\025\022%\n!ORDER_ERROR_INCORRECT_MARK" + "ET_TYPE\020\026\022%\n!ORDER_ERROR_INVALID_TIME_IN" + "_FORCE\020\027\022+\n\'ORDER_ERROR_GFN_ORDER_DURING" + "_AN_AUCTION\020\030\0223\n/ORDER_ERROR_GFA_ORDER_D" + "URING_CONTINUOUS_TRADING\020\031\0224\n0ORDER_ERRO" + "R_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\020\032" + "\022)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDA" + "T\020\033\022,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_E" + "XPIRYAT\020\034\022*\n&ORDER_ERROR_CANNOT_AMEND_TO" + "_FOK_OR_IOC\020\035\022*\n&ORDER_ERROR_CANNOT_AMEN" + "D_TO_GFA_OR_GFN\020\036\022,\n(ORDER_ERROR_CANNOT_" + "AMEND_FROM_GFA_OR_GFN\020\037\0224\n0ORDER_ERROR_C" + "ANNOT_SEND_IOC_ORDER_DURING_AUCTION\020 \0224\n" + "0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURIN" + "G_AUCTION\020!\022#\n\037ORDER_ERROR_MUST_BE_LIMIT" + "_ORDER\020\"\022\"\n\036ORDER_ERROR_MUST_BE_GTT_OR_G" + "TC\020#\022\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PR" + "ICE\020$\0223\n/ORDER_ERROR_BUY_CANNOT_REFERENC" + "E_BEST_ASK_PRICE\020%\0224\n0ORDER_ERROR_OFFSET" + "_MUST_BE_LESS_OR_EQUAL_TO_ZERO\020&\022-\n)ORDE" + "R_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\020\'\022" + "7\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR" + "_EQUAL_TO_ZERO\020(\0224\n0ORDER_ERROR_SELL_CAN" + "NOT_REFERENCE_BEST_BID_PRICE\020)\0220\n,ORDER_" + "ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\020*" + "\022*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALAN" + "CE\020+\022E\nAORDER_ERROR_CANNOT_AMEND_PEGGED_" + "ORDER_DETAILS_ON_NON_PEGGED_ORDER\020,\022.\n*O" + "RDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDE" + "R\020-\0225\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE" + "_ON_PEGGED_ORDER\020.\0228\n4ORDER_ERROR_NON_PE" + "RSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\020/*\202\001\n" + "\013ChainStatus\022\034\n\030CHAIN_STATUS_UNSPECIFIED" + "\020\000\022\035\n\031CHAIN_STATUS_DISCONNECTED\020\001\022\032\n\026CHA" + "IN_STATUS_REPLAYING\020\002\022\032\n\026CHAIN_STATUS_CO" + "NNECTED\020\003*\220\003\n\013AccountType\022\034\n\030ACCOUNT_TYP" + "E_UNSPECIFIED\020\000\022\032\n\026ACCOUNT_TYPE_INSURANC" + "E\020\001\022\033\n\027ACCOUNT_TYPE_SETTLEMENT\020\002\022\027\n\023ACCO" + "UNT_TYPE_MARGIN\020\003\022\030\n\024ACCOUNT_TYPE_GENERA" + "L\020\004\022$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\020" + "\005\022\037\n\033ACCOUNT_TYPE_FEES_LIQUIDITY\020\006\022\033\n\027AC" + "COUNT_TYPE_FEES_MAKER\020\007\022\036\n\032ACCOUNT_TYPE_" + "LOCK_WITHDRAW\020\010\022\025\n\021ACCOUNT_TYPE_BOND\020\t\022\031" + "\n\025ACCOUNT_TYPE_EXTERNAL\020\n\022!\n\035ACCOUNT_TYP" + "E_GLOBAL_INSURANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLO" + "BAL_REWARD\020\014*\323\005\n\014TransferType\022\035\n\031TRANSFE" + "R_TYPE_UNSPECIFIED\020\000\022\026\n\022TRANSFER_TYPE_LO" + "SS\020\001\022\025\n\021TRANSFER_TYPE_WIN\020\002\022\027\n\023TRANSFER_" + "TYPE_CLOSE\020\003\022\032\n\026TRANSFER_TYPE_MTM_LOSS\020\004" + "\022\031\n\025TRANSFER_TYPE_MTM_WIN\020\005\022\034\n\030TRANSFER_" + "TYPE_MARGIN_LOW\020\006\022\035\n\031TRANSFER_TYPE_MARGI" + "N_HIGH\020\007\022$\n TRANSFER_TYPE_MARGIN_CONFISC" + "ATED\020\010\022\037\n\033TRANSFER_TYPE_MAKER_FEE_PAY\020\t\022" + "#\n\037TRANSFER_TYPE_MAKER_FEE_RECEIVE\020\n\022(\n$" + "TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\020\013\022/" + "\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTR" + "IBUTE\020\014\022#\n\037TRANSFER_TYPE_LIQUIDITY_FEE_P" + "AY\020\r\022*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DIST" + "RIBUTE\020\016\022\032\n\026TRANSFER_TYPE_BOND_LOW\020\017\022\033\n\027" + "TRANSFER_TYPE_BOND_HIGH\020\020\022\037\n\033TRANSFER_TY" + "PE_WITHDRAW_LOCK\020\021\022\032\n\026TRANSFER_TYPE_WITH" + "DRAW\020\022\022\031\n\025TRANSFER_TYPE_DEPOSIT\020\023\022\037\n\033TRA" + "NSFER_TYPE_BOND_SLASHING\020\024\022\036\n\032TRANSFER_T" + "YPE_STAKE_REWARD\020\025*c\n\nNodeStatus\022\033\n\027NODE" + "_STATUS_UNSPECIFIED\020\000\022\031\n\025NODE_STATUS_VAL" + "IDATOR\020\001\022\035\n\031NODE_STATUS_NON_VALIDATOR\020\002B" + "7\n\024io.vegaprotocol.vegaZ\037code.vegaprotoc" + "ol.io/vega/protob\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_vega_2eproto_deps[3] = { &::descriptor_table_assets_2eproto, @@ -2001,7 +2005,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_veg }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_vega_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_vega_2eproto = { - false, false, descriptor_table_protodef_vega_2eproto, "vega.proto", 14919, + false, false, descriptor_table_protodef_vega_2eproto, "vega.proto", 14984, &descriptor_table_vega_2eproto_once, descriptor_table_vega_2eproto_sccs, descriptor_table_vega_2eproto_deps, 51, 3, schemas, file_default_instances, TableStruct_vega_2eproto::offsets, file_level_metadata_vega_2eproto, 51, file_level_enum_descriptors_vega_2eproto, file_level_service_descriptors_vega_2eproto, @@ -2440,12 +2444,17 @@ Price::Price(::PROTOBUF_NAMESPACE_ID::Arena* arena) Price::Price(const Price& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - value_ = from.value_; + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_value().empty()) { + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_value(), + GetArena()); + } // @@protoc_insertion_point(copy_constructor:vega.Price) } void Price::SharedCtor() { - value_ = PROTOBUF_ULONGLONG(0); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Price_vega_2eproto.base); + value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Price::~Price() { @@ -2456,6 +2465,7 @@ Price::~Price() { void Price::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Price::ArenaDtor(void* object) { @@ -2479,7 +2489,7 @@ void Price::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - value_ = PROTOBUF_ULONGLONG(0); + value_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2490,10 +2500,12 @@ const char* Price::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 value = 1 [json_name = "value"]; + // string value = 1 [json_name = "value"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_value(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Price.value")); CHK_(ptr); } else goto handle_unusual; continue; @@ -2525,10 +2537,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Price::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 value = 1 [json_name = "value"]; - if (this->value() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_value(), target); + // string value = 1 [json_name = "value"]; + if (this->value().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Price.value"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2547,10 +2563,10 @@ size_t Price::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint64 value = 1 [json_name = "value"]; - if (this->value() != 0) { + // string value = 1 [json_name = "value"]; + if (this->value().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_value()); } @@ -2585,7 +2601,7 @@ void Price::MergeFrom(const Price& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.value() != 0) { + if (from.value().size() > 0) { _internal_set_value(from._internal_value()); } } @@ -2611,7 +2627,7 @@ bool Price::IsInitialized() const { void Price::InternalSwap(Price* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(value_, other->value_); + value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Price::GetMetadata() const { @@ -3978,6 +3994,11 @@ Order::Order(const Order& from) party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_price().empty()) { + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_price(), + GetArena()); + } reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_reference().empty()) { reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), @@ -3993,9 +4014,9 @@ Order::Order(const Order& from) } else { pegged_order_ = nullptr; } - ::memcpy(&price_, &from.price_, + ::memcpy(&size_, &from.size_, static_cast(reinterpret_cast(&reason_) - - reinterpret_cast(&price_)) + sizeof(reason_)); + reinterpret_cast(&size_)) + sizeof(reason_)); // @@protoc_insertion_point(copy_constructor:vega.Order) } @@ -4004,6 +4025,7 @@ void Order::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); liquidity_provision_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( @@ -4023,6 +4045,7 @@ void Order::SharedDtor() { id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); liquidity_provision_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete pegged_order_; @@ -4052,15 +4075,16 @@ void Order::Clear() { id_.ClearToEmpty(); market_id_.ClearToEmpty(); party_id_.ClearToEmpty(); + price_.ClearToEmpty(); reference_.ClearToEmpty(); liquidity_provision_id_.ClearToEmpty(); if (GetArena() == nullptr && pegged_order_ != nullptr) { delete pegged_order_; } pegged_order_ = nullptr; - ::memset(&price_, 0, static_cast( + ::memset(&size_, 0, static_cast( reinterpret_cast(&reason_) - - reinterpret_cast(&price_)) + sizeof(reason_)); + reinterpret_cast(&size_)) + sizeof(reason_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -4106,10 +4130,12 @@ const char* Order::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte _internal_set_side(static_cast<::vega::Side>(val)); } else goto handle_unusual; continue; - // uint64 price = 5 [json_name = "price"]; + // string price = 5 [json_name = "price"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Order.price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -4284,10 +4310,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Order::_InternalSerialize( 4, this->_internal_side(), target); } - // uint64 price = 5 [json_name = "price"]; - if (this->price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_price(), target); + // string price = 5 [json_name = "price"]; + if (this->price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_price().data(), static_cast(this->_internal_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Order.price"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_price(), target); } // uint64 size = 6 [json_name = "size"]; @@ -4425,6 +4455,13 @@ size_t Order::ByteSizeLong() const { this->_internal_party_id()); } + // string price = 5 [json_name = "price"]; + if (this->price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_price()); + } + // string reference = 13 [json_name = "reference"]; if (this->reference().size() > 0) { total_size += 1 + @@ -4446,13 +4483,6 @@ size_t Order::ByteSizeLong() const { *pegged_order_); } - // uint64 price = 5 [json_name = "price"]; - if (this->price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_price()); - } - // uint64 size = 6 [json_name = "size"]; if (this->size() != 0) { total_size += 1 + @@ -4572,6 +4602,9 @@ void Order::MergeFrom(const Order& from) { if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } + if (from.price().size() > 0) { + _internal_set_price(from._internal_price()); + } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } @@ -4581,9 +4614,6 @@ void Order::MergeFrom(const Order& from) { if (from.has_pegged_order()) { _internal_mutable_pegged_order()->::vega::PeggedOrder::MergeFrom(from._internal_pegged_order()); } - if (from.price() != 0) { - _internal_set_price(from._internal_price()); - } if (from.size() != 0) { _internal_set_size(from._internal_size()); } @@ -4646,6 +4676,7 @@ void Order::InternalSwap(Order* other) { id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + price_.Swap(&other->price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); liquidity_provision_id_.Swap(&other->liquidity_provision_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< @@ -5165,19 +5196,25 @@ AuctionIndicativeState::AuctionIndicativeState(const AuctionIndicativeState& fro market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } - ::memcpy(&indicative_price_, &from.indicative_price_, + indicative_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_indicative_price().empty()) { + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_indicative_price(), + GetArena()); + } + ::memcpy(&indicative_volume_, &from.indicative_volume_, static_cast(reinterpret_cast(&auction_end_) - - reinterpret_cast(&indicative_price_)) + sizeof(auction_end_)); + reinterpret_cast(&indicative_volume_)) + sizeof(auction_end_)); // @@protoc_insertion_point(copy_constructor:vega.AuctionIndicativeState) } void AuctionIndicativeState::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AuctionIndicativeState_vega_2eproto.base); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + indicative_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&indicative_price_) - reinterpret_cast(this)), + reinterpret_cast(&indicative_volume_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&auction_end_) - - reinterpret_cast(&indicative_price_)) + sizeof(auction_end_)); + reinterpret_cast(&indicative_volume_)) + sizeof(auction_end_)); } AuctionIndicativeState::~AuctionIndicativeState() { @@ -5189,6 +5226,7 @@ AuctionIndicativeState::~AuctionIndicativeState() { void AuctionIndicativeState::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + indicative_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void AuctionIndicativeState::ArenaDtor(void* object) { @@ -5213,9 +5251,10 @@ void AuctionIndicativeState::Clear() { (void) cached_has_bits; market_id_.ClearToEmpty(); - ::memset(&indicative_price_, 0, static_cast( + indicative_price_.ClearToEmpty(); + ::memset(&indicative_volume_, 0, static_cast( reinterpret_cast(&auction_end_) - - reinterpret_cast(&indicative_price_)) + sizeof(auction_end_)); + reinterpret_cast(&indicative_volume_)) + sizeof(auction_end_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -5235,10 +5274,12 @@ const char* AuctionIndicativeState::_InternalParse(const char* ptr, ::PROTOBUF_N CHK_(ptr); } else goto handle_unusual; continue; - // uint64 indicative_price = 2 [json_name = "indicativePrice"]; + // string indicative_price = 2 [json_name = "indicativePrice"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - indicative_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_indicative_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.AuctionIndicativeState.indicative_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -5301,10 +5342,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* AuctionIndicativeState::_InternalSerialize( 1, this->_internal_market_id(), target); } - // uint64 indicative_price = 2 [json_name = "indicativePrice"]; - if (this->indicative_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_indicative_price(), target); + // string indicative_price = 2 [json_name = "indicativePrice"]; + if (this->indicative_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_indicative_price().data(), static_cast(this->_internal_indicative_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.AuctionIndicativeState.indicative_price"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_indicative_price(), target); } // uint64 indicative_volume = 3 [json_name = "indicativeVolume"]; @@ -5348,10 +5393,10 @@ size_t AuctionIndicativeState::ByteSizeLong() const { this->_internal_market_id()); } - // uint64 indicative_price = 2 [json_name = "indicativePrice"]; - if (this->indicative_price() != 0) { + // string indicative_price = 2 [json_name = "indicativePrice"]; + if (this->indicative_price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_indicative_price()); } @@ -5410,7 +5455,7 @@ void AuctionIndicativeState::MergeFrom(const AuctionIndicativeState& from) { if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } - if (from.indicative_price() != 0) { + if (from.indicative_price().size() > 0) { _internal_set_indicative_price(from._internal_indicative_price()); } if (from.indicative_volume() != 0) { @@ -5446,12 +5491,13 @@ void AuctionIndicativeState::InternalSwap(AuctionIndicativeState* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + indicative_price_.Swap(&other->indicative_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AuctionIndicativeState, auction_end_) + sizeof(AuctionIndicativeState::auction_end_) - - PROTOBUF_FIELD_OFFSET(AuctionIndicativeState, indicative_price_)>( - reinterpret_cast(&indicative_price_), - reinterpret_cast(&other->indicative_price_)); + - PROTOBUF_FIELD_OFFSET(AuctionIndicativeState, indicative_volume_)>( + reinterpret_cast(&indicative_volume_), + reinterpret_cast(&other->indicative_volume_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AuctionIndicativeState::GetMetadata() const { @@ -5494,6 +5540,11 @@ Trade::Trade(const Trade& from) market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_price().empty()) { + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_price(), + GetArena()); + } buyer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_buyer().empty()) { buyer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buyer(), @@ -5524,9 +5575,9 @@ Trade::Trade(const Trade& from) } else { seller_fee_ = nullptr; } - ::memcpy(&price_, &from.price_, + ::memcpy(&size_, &from.size_, static_cast(reinterpret_cast(&seller_auction_batch_) - - reinterpret_cast(&price_)) + sizeof(seller_auction_batch_)); + reinterpret_cast(&size_)) + sizeof(seller_auction_batch_)); // @@protoc_insertion_point(copy_constructor:vega.Trade) } @@ -5534,6 +5585,7 @@ void Trade::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Trade_vega_2eproto.base); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buyer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); seller_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buy_order_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -5554,6 +5606,7 @@ void Trade::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buyer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); seller_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buy_order_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -5585,6 +5638,7 @@ void Trade::Clear() { id_.ClearToEmpty(); market_id_.ClearToEmpty(); + price_.ClearToEmpty(); buyer_.ClearToEmpty(); seller_.ClearToEmpty(); buy_order_.ClearToEmpty(); @@ -5597,9 +5651,9 @@ void Trade::Clear() { delete seller_fee_; } seller_fee_ = nullptr; - ::memset(&price_, 0, static_cast( + ::memset(&size_, 0, static_cast( reinterpret_cast(&seller_auction_batch_) - - reinterpret_cast(&price_)) + sizeof(seller_auction_batch_)); + reinterpret_cast(&size_)) + sizeof(seller_auction_batch_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -5628,10 +5682,12 @@ const char* Trade::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte CHK_(ptr); } else goto handle_unusual; continue; - // uint64 price = 3 [json_name = "price"]; + // string price = 3 [json_name = "price"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Trade.price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -5777,10 +5833,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Trade::_InternalSerialize( 2, this->_internal_market_id(), target); } - // uint64 price = 3 [json_name = "price"]; - if (this->price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_price(), target); + // string price = 3 [json_name = "price"]; + if (this->price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_price().data(), static_cast(this->_internal_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Trade.price"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_price(), target); } // uint64 size = 4 [json_name = "size"]; @@ -5907,6 +5967,13 @@ size_t Trade::ByteSizeLong() const { this->_internal_market_id()); } + // string price = 3 [json_name = "price"]; + if (this->price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_price()); + } + // string buyer = 5 [json_name = "buyer"]; if (this->buyer().size() > 0) { total_size += 1 + @@ -5949,13 +6016,6 @@ size_t Trade::ByteSizeLong() const { *seller_fee_); } - // uint64 price = 3 [json_name = "price"]; - if (this->price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_price()); - } - // uint64 size = 4 [json_name = "size"]; if (this->size() != 0) { total_size += 1 + @@ -6033,6 +6093,9 @@ void Trade::MergeFrom(const Trade& from) { if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } + if (from.price().size() > 0) { + _internal_set_price(from._internal_price()); + } if (from.buyer().size() > 0) { _internal_set_buyer(from._internal_buyer()); } @@ -6051,9 +6114,6 @@ void Trade::MergeFrom(const Trade& from) { if (from.has_seller_fee()) { _internal_mutable_seller_fee()->::vega::Fee::MergeFrom(from._internal_seller_fee()); } - if (from.price() != 0) { - _internal_set_price(from._internal_price()); - } if (from.size() != 0) { _internal_set_size(from._internal_size()); } @@ -6097,6 +6157,7 @@ void Trade::InternalSwap(Trade* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + price_.Swap(&other->price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); buyer_.Swap(&other->buyer_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); seller_.Swap(&other->seller_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); buy_order_.Swap(&other->buy_order_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -6129,17 +6190,29 @@ Fee::Fee(::PROTOBUF_NAMESPACE_ID::Arena* arena) Fee::Fee(const Fee& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&maker_fee_, &from.maker_fee_, - static_cast(reinterpret_cast(&liquidity_fee_) - - reinterpret_cast(&maker_fee_)) + sizeof(liquidity_fee_)); + maker_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_maker_fee().empty()) { + maker_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_maker_fee(), + GetArena()); + } + infrastructure_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_infrastructure_fee().empty()) { + infrastructure_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_infrastructure_fee(), + GetArena()); + } + liquidity_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_liquidity_fee().empty()) { + liquidity_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_liquidity_fee(), + GetArena()); + } // @@protoc_insertion_point(copy_constructor:vega.Fee) } void Fee::SharedCtor() { - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&maker_fee_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&liquidity_fee_) - - reinterpret_cast(&maker_fee_)) + sizeof(liquidity_fee_)); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Fee_vega_2eproto.base); + maker_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + infrastructure_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + liquidity_fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Fee::~Fee() { @@ -6150,6 +6223,9 @@ Fee::~Fee() { void Fee::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + maker_fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + infrastructure_fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + liquidity_fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Fee::ArenaDtor(void* object) { @@ -6173,9 +6249,9 @@ void Fee::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&maker_fee_, 0, static_cast( - reinterpret_cast(&liquidity_fee_) - - reinterpret_cast(&maker_fee_)) + sizeof(liquidity_fee_)); + maker_fee_.ClearToEmpty(); + infrastructure_fee_.ClearToEmpty(); + liquidity_fee_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -6186,24 +6262,30 @@ const char* Fee::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 maker_fee = 1 [json_name = "makerFee"]; + // string maker_fee = 1 [json_name = "makerFee"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - maker_fee_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_maker_fee(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Fee.maker_fee")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + // string infrastructure_fee = 2 [json_name = "infrastructureFee"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - infrastructure_fee_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_infrastructure_fee(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Fee.infrastructure_fee")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + // string liquidity_fee = 3 [json_name = "liquidityFee"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - liquidity_fee_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_liquidity_fee(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Fee.liquidity_fee")); CHK_(ptr); } else goto handle_unusual; continue; @@ -6235,22 +6317,34 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Fee::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 maker_fee = 1 [json_name = "makerFee"]; - if (this->maker_fee() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_maker_fee(), target); + // string maker_fee = 1 [json_name = "makerFee"]; + if (this->maker_fee().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_maker_fee().data(), static_cast(this->_internal_maker_fee().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Fee.maker_fee"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_maker_fee(), target); } - // uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; - if (this->infrastructure_fee() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_infrastructure_fee(), target); + // string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + if (this->infrastructure_fee().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_infrastructure_fee().data(), static_cast(this->_internal_infrastructure_fee().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Fee.infrastructure_fee"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_infrastructure_fee(), target); } - // uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; - if (this->liquidity_fee() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_liquidity_fee(), target); + // string liquidity_fee = 3 [json_name = "liquidityFee"]; + if (this->liquidity_fee().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_liquidity_fee().data(), static_cast(this->_internal_liquidity_fee().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Fee.liquidity_fee"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_liquidity_fee(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -6269,24 +6363,24 @@ size_t Fee::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint64 maker_fee = 1 [json_name = "makerFee"]; - if (this->maker_fee() != 0) { + // string maker_fee = 1 [json_name = "makerFee"]; + if (this->maker_fee().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_maker_fee()); } - // uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; - if (this->infrastructure_fee() != 0) { + // string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + if (this->infrastructure_fee().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_infrastructure_fee()); } - // uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; - if (this->liquidity_fee() != 0) { + // string liquidity_fee = 3 [json_name = "liquidityFee"]; + if (this->liquidity_fee().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_liquidity_fee()); } @@ -6321,13 +6415,13 @@ void Fee::MergeFrom(const Fee& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.maker_fee() != 0) { + if (from.maker_fee().size() > 0) { _internal_set_maker_fee(from._internal_maker_fee()); } - if (from.infrastructure_fee() != 0) { + if (from.infrastructure_fee().size() > 0) { _internal_set_infrastructure_fee(from._internal_infrastructure_fee()); } - if (from.liquidity_fee() != 0) { + if (from.liquidity_fee().size() > 0) { _internal_set_liquidity_fee(from._internal_liquidity_fee()); } } @@ -6353,12 +6447,9 @@ bool Fee::IsInitialized() const { void Fee::InternalSwap(Fee* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Fee, liquidity_fee_) - + sizeof(Fee::liquidity_fee_) - - PROTOBUF_FIELD_OFFSET(Fee, maker_fee_)>( - reinterpret_cast(&maker_fee_), - reinterpret_cast(&other->maker_fee_)); + maker_fee_.Swap(&other->maker_fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + infrastructure_fee_.Swap(&other->infrastructure_fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + liquidity_fee_.Swap(&other->liquidity_fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Fee::GetMetadata() const { @@ -6586,6 +6677,26 @@ Candle::Candle(const Candle& from) datetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_datetime(), GetArena()); } + high_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_high().empty()) { + high_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_high(), + GetArena()); + } + low_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_low().empty()) { + low_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_low(), + GetArena()); + } + open_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_open().empty()) { + open_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_open(), + GetArena()); + } + close_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_close().empty()) { + close_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_close(), + GetArena()); + } ::memcpy(×tamp_, &from.timestamp_, static_cast(reinterpret_cast(&interval_) - reinterpret_cast(×tamp_)) + sizeof(interval_)); @@ -6595,6 +6706,10 @@ Candle::Candle(const Candle& from) void Candle::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Candle_vega_2eproto.base); datetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + high_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + low_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + open_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + close_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(×tamp_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&interval_) - @@ -6610,6 +6725,10 @@ Candle::~Candle() { void Candle::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); datetime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + high_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + low_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + open_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + close_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Candle::ArenaDtor(void* object) { @@ -6634,6 +6753,10 @@ void Candle::Clear() { (void) cached_has_bits; datetime_.ClearToEmpty(); + high_.ClearToEmpty(); + low_.ClearToEmpty(); + open_.ClearToEmpty(); + close_.ClearToEmpty(); ::memset(×tamp_, 0, static_cast( reinterpret_cast(&interval_) - reinterpret_cast(×tamp_)) + sizeof(interval_)); @@ -6663,31 +6786,39 @@ const char* Candle::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int CHK_(ptr); } else goto handle_unusual; continue; - // uint64 high = 3 [json_name = "high"]; + // string high = 3 [json_name = "high"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_high(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Candle.high")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 low = 4 [json_name = "low"]; + // string low = 4 [json_name = "low"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - low_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_low(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Candle.low")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 open = 5 [json_name = "open"]; + // string open = 5 [json_name = "open"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_open(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Candle.open")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 close = 6 [json_name = "close"]; + // string close = 6 [json_name = "close"]; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - close_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_close(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Candle.close")); CHK_(ptr); } else goto handle_unusual; continue; @@ -6750,28 +6881,44 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Candle::_InternalSerialize( 2, this->_internal_datetime(), target); } - // uint64 high = 3 [json_name = "high"]; - if (this->high() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_high(), target); + // string high = 3 [json_name = "high"]; + if (this->high().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_high().data(), static_cast(this->_internal_high().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Candle.high"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_high(), target); } - // uint64 low = 4 [json_name = "low"]; - if (this->low() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_low(), target); + // string low = 4 [json_name = "low"]; + if (this->low().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_low().data(), static_cast(this->_internal_low().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Candle.low"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_low(), target); } - // uint64 open = 5 [json_name = "open"]; - if (this->open() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_open(), target); + // string open = 5 [json_name = "open"]; + if (this->open().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_open().data(), static_cast(this->_internal_open().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Candle.open"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_open(), target); } - // uint64 close = 6 [json_name = "close"]; - if (this->close() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_close(), target); + // string close = 6 [json_name = "close"]; + if (this->close().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_close().data(), static_cast(this->_internal_close().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Candle.close"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_close(), target); } // uint64 volume = 7 [json_name = "volume"]; @@ -6810,41 +6957,41 @@ size_t Candle::ByteSizeLong() const { this->_internal_datetime()); } - // int64 timestamp = 1 [json_name = "timestamp"]; - if (this->timestamp() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_timestamp()); - } - - // uint64 high = 3 [json_name = "high"]; - if (this->high() != 0) { + // string high = 3 [json_name = "high"]; + if (this->high().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_high()); } - // uint64 low = 4 [json_name = "low"]; - if (this->low() != 0) { + // string low = 4 [json_name = "low"]; + if (this->low().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_low()); } - // uint64 open = 5 [json_name = "open"]; - if (this->open() != 0) { + // string open = 5 [json_name = "open"]; + if (this->open().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_open()); } - // uint64 close = 6 [json_name = "close"]; - if (this->close() != 0) { + // string close = 6 [json_name = "close"]; + if (this->close().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_close()); } + // int64 timestamp = 1 [json_name = "timestamp"]; + if (this->timestamp() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_timestamp()); + } + // uint64 volume = 7 [json_name = "volume"]; if (this->volume() != 0) { total_size += 1 + @@ -6892,21 +7039,21 @@ void Candle::MergeFrom(const Candle& from) { if (from.datetime().size() > 0) { _internal_set_datetime(from._internal_datetime()); } - if (from.timestamp() != 0) { - _internal_set_timestamp(from._internal_timestamp()); - } - if (from.high() != 0) { + if (from.high().size() > 0) { _internal_set_high(from._internal_high()); } - if (from.low() != 0) { + if (from.low().size() > 0) { _internal_set_low(from._internal_low()); } - if (from.open() != 0) { + if (from.open().size() > 0) { _internal_set_open(from._internal_open()); } - if (from.close() != 0) { + if (from.close().size() > 0) { _internal_set_close(from._internal_close()); } + if (from.timestamp() != 0) { + _internal_set_timestamp(from._internal_timestamp()); + } if (from.volume() != 0) { _internal_set_volume(from._internal_volume()); } @@ -6937,6 +7084,10 @@ void Candle::InternalSwap(Candle* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); datetime_.Swap(&other->datetime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + high_.Swap(&other->high_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + low_.Swap(&other->low_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + open_.Swap(&other->open_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + close_.Swap(&other->close_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Candle, interval_) + sizeof(Candle::interval_) @@ -6965,17 +7116,24 @@ PriceLevel::PriceLevel(::PROTOBUF_NAMESPACE_ID::Arena* arena) PriceLevel::PriceLevel(const PriceLevel& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&price_, &from.price_, + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_price().empty()) { + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_price(), + GetArena()); + } + ::memcpy(&number_of_orders_, &from.number_of_orders_, static_cast(reinterpret_cast(&volume_) - - reinterpret_cast(&price_)) + sizeof(volume_)); + reinterpret_cast(&number_of_orders_)) + sizeof(volume_)); // @@protoc_insertion_point(copy_constructor:vega.PriceLevel) } void PriceLevel::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PriceLevel_vega_2eproto.base); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&price_) - reinterpret_cast(this)), + reinterpret_cast(&number_of_orders_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&volume_) - - reinterpret_cast(&price_)) + sizeof(volume_)); + reinterpret_cast(&number_of_orders_)) + sizeof(volume_)); } PriceLevel::~PriceLevel() { @@ -6986,6 +7144,7 @@ PriceLevel::~PriceLevel() { void PriceLevel::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PriceLevel::ArenaDtor(void* object) { @@ -7009,9 +7168,10 @@ void PriceLevel::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&price_, 0, static_cast( + price_.ClearToEmpty(); + ::memset(&number_of_orders_, 0, static_cast( reinterpret_cast(&volume_) - - reinterpret_cast(&price_)) + sizeof(volume_)); + reinterpret_cast(&number_of_orders_)) + sizeof(volume_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -7022,10 +7182,12 @@ const char* PriceLevel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 price = 1 [json_name = "price"]; + // string price = 1 [json_name = "price"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.PriceLevel.price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -7071,10 +7233,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* PriceLevel::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 price = 1 [json_name = "price"]; - if (this->price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_price(), target); + // string price = 1 [json_name = "price"]; + if (this->price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_price().data(), static_cast(this->_internal_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.PriceLevel.price"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_price(), target); } // uint64 number_of_orders = 2 [json_name = "numberOfOrders"]; @@ -7105,10 +7271,10 @@ size_t PriceLevel::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint64 price = 1 [json_name = "price"]; - if (this->price() != 0) { + // string price = 1 [json_name = "price"]; + if (this->price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_price()); } @@ -7157,7 +7323,7 @@ void PriceLevel::MergeFrom(const PriceLevel& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.price() != 0) { + if (from.price().size() > 0) { _internal_set_price(from._internal_price()); } if (from.number_of_orders() != 0) { @@ -7189,12 +7355,13 @@ bool PriceLevel::IsInitialized() const { void PriceLevel::InternalSwap(PriceLevel* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + price_.Swap(&other->price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PriceLevel, volume_) + sizeof(PriceLevel::volume_) - - PROTOBUF_FIELD_OFFSET(PriceLevel, price_)>( - reinterpret_cast(&price_), - reinterpret_cast(&other->price_)); + - PROTOBUF_FIELD_OFFSET(PriceLevel, number_of_orders_)>( + reinterpret_cast(&number_of_orders_), + reinterpret_cast(&other->number_of_orders_)); } ::PROTOBUF_NAMESPACE_ID::Metadata PriceLevel::GetMetadata() const { @@ -7821,6 +7988,21 @@ Position::Position(const Position& from) party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } + realised_pnl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_realised_pnl().empty()) { + realised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_realised_pnl(), + GetArena()); + } + unrealised_pnl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_unrealised_pnl().empty()) { + unrealised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_unrealised_pnl(), + GetArena()); + } + average_entry_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_average_entry_price().empty()) { + average_entry_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_average_entry_price(), + GetArena()); + } ::memcpy(&open_volume_, &from.open_volume_, static_cast(reinterpret_cast(&updated_at_) - reinterpret_cast(&open_volume_)) + sizeof(updated_at_)); @@ -7831,6 +8013,9 @@ void Position::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Position_vega_2eproto.base); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + realised_pnl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + unrealised_pnl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + average_entry_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&open_volume_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&updated_at_) - @@ -7847,6 +8032,9 @@ void Position::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + realised_pnl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + unrealised_pnl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + average_entry_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Position::ArenaDtor(void* object) { @@ -7872,6 +8060,9 @@ void Position::Clear() { market_id_.ClearToEmpty(); party_id_.ClearToEmpty(); + realised_pnl_.ClearToEmpty(); + unrealised_pnl_.ClearToEmpty(); + average_entry_price_.ClearToEmpty(); ::memset(&open_volume_, 0, static_cast( reinterpret_cast(&updated_at_) - reinterpret_cast(&open_volume_)) + sizeof(updated_at_)); @@ -7910,24 +8101,30 @@ const char* Position::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); } else goto handle_unusual; continue; - // int64 realised_pnl = 4 [json_name = "realisedPnl"]; + // string realised_pnl = 4 [json_name = "realisedPnl"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - realised_pnl_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_realised_pnl(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Position.realised_pnl")); CHK_(ptr); } else goto handle_unusual; continue; - // int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + // string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - unrealised_pnl_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_unrealised_pnl(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Position.unrealised_pnl")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + // string average_entry_price = 6 [json_name = "averageEntryPrice"]; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - average_entry_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_average_entry_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Position.average_entry_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -7992,22 +8189,34 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Position::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_open_volume(), target); } - // int64 realised_pnl = 4 [json_name = "realisedPnl"]; - if (this->realised_pnl() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_realised_pnl(), target); + // string realised_pnl = 4 [json_name = "realisedPnl"]; + if (this->realised_pnl().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_realised_pnl().data(), static_cast(this->_internal_realised_pnl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Position.realised_pnl"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_realised_pnl(), target); } - // int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; - if (this->unrealised_pnl() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_unrealised_pnl(), target); + // string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + if (this->unrealised_pnl().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_unrealised_pnl().data(), static_cast(this->_internal_unrealised_pnl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Position.unrealised_pnl"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_unrealised_pnl(), target); } - // uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; - if (this->average_entry_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_average_entry_price(), target); + // string average_entry_price = 6 [json_name = "averageEntryPrice"]; + if (this->average_entry_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_average_entry_price().data(), static_cast(this->_internal_average_entry_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Position.average_entry_price"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_average_entry_price(), target); } // int64 updated_at = 7 [json_name = "updatedAt"]; @@ -8046,34 +8255,34 @@ size_t Position::ByteSizeLong() const { this->_internal_party_id()); } - // int64 open_volume = 3 [json_name = "openVolume"]; - if (this->open_volume() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_open_volume()); - } - - // int64 realised_pnl = 4 [json_name = "realisedPnl"]; - if (this->realised_pnl() != 0) { + // string realised_pnl = 4 [json_name = "realisedPnl"]; + if (this->realised_pnl().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_realised_pnl()); } - // int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; - if (this->unrealised_pnl() != 0) { + // string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + if (this->unrealised_pnl().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_unrealised_pnl()); } - // uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; - if (this->average_entry_price() != 0) { + // string average_entry_price = 6 [json_name = "averageEntryPrice"]; + if (this->average_entry_price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_average_entry_price()); } + // int64 open_volume = 3 [json_name = "openVolume"]; + if (this->open_volume() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_open_volume()); + } + // int64 updated_at = 7 [json_name = "updatedAt"]; if (this->updated_at() != 0) { total_size += 1 + @@ -8118,18 +8327,18 @@ void Position::MergeFrom(const Position& from) { if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } - if (from.open_volume() != 0) { - _internal_set_open_volume(from._internal_open_volume()); - } - if (from.realised_pnl() != 0) { + if (from.realised_pnl().size() > 0) { _internal_set_realised_pnl(from._internal_realised_pnl()); } - if (from.unrealised_pnl() != 0) { + if (from.unrealised_pnl().size() > 0) { _internal_set_unrealised_pnl(from._internal_unrealised_pnl()); } - if (from.average_entry_price() != 0) { + if (from.average_entry_price().size() > 0) { _internal_set_average_entry_price(from._internal_average_entry_price()); } + if (from.open_volume() != 0) { + _internal_set_open_volume(from._internal_open_volume()); + } if (from.updated_at() != 0) { _internal_set_updated_at(from._internal_updated_at()); } @@ -8158,6 +8367,9 @@ void Position::InternalSwap(Position* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + realised_pnl_.Swap(&other->realised_pnl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + unrealised_pnl_.Swap(&other->unrealised_pnl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + average_entry_price_.Swap(&other->average_entry_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Position, updated_at_) + sizeof(Position::updated_at_) @@ -8186,17 +8398,19 @@ PositionTrade::PositionTrade(::PROTOBUF_NAMESPACE_ID::Arena* arena) PositionTrade::PositionTrade(const PositionTrade& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&volume_, &from.volume_, - static_cast(reinterpret_cast(&price_) - - reinterpret_cast(&volume_)) + sizeof(price_)); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_price().empty()) { + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_price(), + GetArena()); + } + volume_ = from.volume_; // @@protoc_insertion_point(copy_constructor:vega.PositionTrade) } void PositionTrade::SharedCtor() { - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&volume_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&price_) - - reinterpret_cast(&volume_)) + sizeof(price_)); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PositionTrade_vega_2eproto.base); + price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + volume_ = PROTOBUF_LONGLONG(0); } PositionTrade::~PositionTrade() { @@ -8207,6 +8421,7 @@ PositionTrade::~PositionTrade() { void PositionTrade::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PositionTrade::ArenaDtor(void* object) { @@ -8230,9 +8445,8 @@ void PositionTrade::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&volume_, 0, static_cast( - reinterpret_cast(&price_) - - reinterpret_cast(&volume_)) + sizeof(price_)); + price_.ClearToEmpty(); + volume_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -8250,10 +8464,12 @@ const char* PositionTrade::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ CHK_(ptr); } else goto handle_unusual; continue; - // uint64 price = 2 [json_name = "price"]; + // string price = 2 [json_name = "price"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.PositionTrade.price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -8291,10 +8507,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* PositionTrade::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_volume(), target); } - // uint64 price = 2 [json_name = "price"]; - if (this->price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_price(), target); + // string price = 2 [json_name = "price"]; + if (this->price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_price().data(), static_cast(this->_internal_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.PositionTrade.price"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_price(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -8313,6 +8533,13 @@ size_t PositionTrade::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string price = 2 [json_name = "price"]; + if (this->price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_price()); + } + // int64 volume = 1 [json_name = "volume"]; if (this->volume() != 0) { total_size += 1 + @@ -8320,13 +8547,6 @@ size_t PositionTrade::ByteSizeLong() const { this->_internal_volume()); } - // uint64 price = 2 [json_name = "price"]; - if (this->price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_price()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -8358,12 +8578,12 @@ void PositionTrade::MergeFrom(const PositionTrade& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.price().size() > 0) { + _internal_set_price(from._internal_price()); + } if (from.volume() != 0) { _internal_set_volume(from._internal_volume()); } - if (from.price() != 0) { - _internal_set_price(from._internal_price()); - } } void PositionTrade::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -8387,12 +8607,8 @@ bool PositionTrade::IsInitialized() const { void PositionTrade::InternalSwap(PositionTrade* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PositionTrade, price_) - + sizeof(PositionTrade::price_) - - PROTOBUF_FIELD_OFFSET(PositionTrade, volume_)>( - reinterpret_cast(&volume_), - reinterpret_cast(&other->volume_)); + price_.Swap(&other->price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(volume_, other->volume_); } ::PROTOBUF_NAMESPACE_ID::Metadata PositionTrade::GetMetadata() const { @@ -8874,6 +9090,11 @@ Withdrawal::Withdrawal(const Withdrawal& from) party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), GetArena()); } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_asset().empty()) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), @@ -8894,9 +9115,9 @@ Withdrawal::Withdrawal(const Withdrawal& from) } else { ext_ = nullptr; } - ::memcpy(&amount_, &from.amount_, + ::memcpy(&expiry_, &from.expiry_, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&amount_)) + sizeof(status_)); + reinterpret_cast(&expiry_)) + sizeof(status_)); // @@protoc_insertion_point(copy_constructor:vega.Withdrawal) } @@ -8904,6 +9125,7 @@ void Withdrawal::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Withdrawal_vega_2eproto.base); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ref_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -8923,6 +9145,7 @@ void Withdrawal::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ref_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -8952,6 +9175,7 @@ void Withdrawal::Clear() { id_.ClearToEmpty(); party_id_.ClearToEmpty(); + amount_.ClearToEmpty(); asset_.ClearToEmpty(); ref_.ClearToEmpty(); tx_hash_.ClearToEmpty(); @@ -8959,9 +9183,9 @@ void Withdrawal::Clear() { delete ext_; } ext_ = nullptr; - ::memset(&amount_, 0, static_cast( + ::memset(&expiry_, 0, static_cast( reinterpret_cast(&status_) - - reinterpret_cast(&amount_)) + sizeof(status_)); + reinterpret_cast(&expiry_)) + sizeof(status_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -8990,10 +9214,12 @@ const char* Withdrawal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 amount = 3 [json_name = "amount"]; + // string amount = 3 [json_name = "amount"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Withdrawal.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -9108,10 +9334,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Withdrawal::_InternalSerialize( 2, this->_internal_party_id(), target); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Withdrawal.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); } // string asset = 4 [json_name = "asset"]; @@ -9207,6 +9437,13 @@ size_t Withdrawal::ByteSizeLong() const { this->_internal_party_id()); } + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + // string asset = 4 [json_name = "asset"]; if (this->asset().size() > 0) { total_size += 1 + @@ -9235,13 +9472,6 @@ size_t Withdrawal::ByteSizeLong() const { *ext_); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); - } - // int64 expiry = 7 [json_name = "expiry"]; if (this->expiry() != 0) { total_size += 1 + @@ -9306,6 +9536,9 @@ void Withdrawal::MergeFrom(const Withdrawal& from) { if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } @@ -9318,9 +9551,6 @@ void Withdrawal::MergeFrom(const Withdrawal& from) { if (from.has_ext()) { _internal_mutable_ext()->::vega::WithdrawExt::MergeFrom(from._internal_ext()); } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } if (from.expiry() != 0) { _internal_set_expiry(from._internal_expiry()); } @@ -9358,6 +9588,7 @@ void Withdrawal::InternalSwap(Withdrawal* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ref_.Swap(&other->ref_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -9863,6 +10094,11 @@ Account::Account(const Account& from) owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_owner(), GetArena()); } + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_balance().empty()) { + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_balance(), + GetArena()); + } asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_asset().empty()) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), @@ -9873,9 +10109,7 @@ Account::Account(const Account& from) market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } - ::memcpy(&balance_, &from.balance_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&balance_)) + sizeof(type_)); + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:vega.Account) } @@ -9883,12 +10117,10 @@ void Account::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Account_vega_2eproto.base); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); owner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&balance_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&balance_)) + sizeof(type_)); + type_ = 0; } Account::~Account() { @@ -9901,6 +10133,7 @@ void Account::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); owner_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + balance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -9928,11 +10161,10 @@ void Account::Clear() { id_.ClearToEmpty(); owner_.ClearToEmpty(); + balance_.ClearToEmpty(); asset_.ClearToEmpty(); market_id_.ClearToEmpty(); - ::memset(&balance_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&balance_)) + sizeof(type_)); + type_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -9961,10 +10193,12 @@ const char* Account::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in CHK_(ptr); } else goto handle_unusual; continue; - // uint64 balance = 3 [json_name = "balance"]; + // string balance = 3 [json_name = "balance"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - balance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_balance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Account.balance")); CHK_(ptr); } else goto handle_unusual; continue; @@ -10042,10 +10276,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Account::_InternalSerialize( 2, this->_internal_owner(), target); } - // uint64 balance = 3 [json_name = "balance"]; - if (this->balance() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_balance(), target); + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_balance().data(), static_cast(this->_internal_balance().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Account.balance"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_balance(), target); } // string asset = 4 [json_name = "asset"]; @@ -10105,6 +10343,13 @@ size_t Account::ByteSizeLong() const { this->_internal_owner()); } + // string balance = 3 [json_name = "balance"]; + if (this->balance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_balance()); + } + // string asset = 4 [json_name = "asset"]; if (this->asset().size() > 0) { total_size += 1 + @@ -10119,13 +10364,6 @@ size_t Account::ByteSizeLong() const { this->_internal_market_id()); } - // uint64 balance = 3 [json_name = "balance"]; - if (this->balance() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_balance()); - } - // .vega.AccountType type = 6 [json_name = "type"]; if (this->type() != 0) { total_size += 1 + @@ -10169,15 +10407,15 @@ void Account::MergeFrom(const Account& from) { if (from.owner().size() > 0) { _internal_set_owner(from._internal_owner()); } + if (from.balance().size() > 0) { + _internal_set_balance(from._internal_balance()); + } if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } - if (from.balance() != 0) { - _internal_set_balance(from._internal_balance()); - } if (from.type() != 0) { _internal_set_type(from._internal_type()); } @@ -10206,14 +10444,10 @@ void Account::InternalSwap(Account* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); owner_.Swap(&other->owner_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + balance_.Swap(&other->balance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Account, type_) - + sizeof(Account::type_) - - PROTOBUF_FIELD_OFFSET(Account, balance_)>( - reinterpret_cast(&balance_), - reinterpret_cast(&other->balance_)); + swap(type_, other->type_); } ::PROTOBUF_NAMESPACE_ID::Metadata Account::GetMetadata() const { @@ -10236,19 +10470,23 @@ FinancialAmount::FinancialAmount(::PROTOBUF_NAMESPACE_ID::Arena* arena) FinancialAmount::FinancialAmount(const FinancialAmount& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_asset().empty()) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), GetArena()); } - amount_ = from.amount_; // @@protoc_insertion_point(copy_constructor:vega.FinancialAmount) } void FinancialAmount::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FinancialAmount_vega_2eproto.base); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_ = PROTOBUF_ULONGLONG(0); } FinancialAmount::~FinancialAmount() { @@ -10259,6 +10497,7 @@ FinancialAmount::~FinancialAmount() { void FinancialAmount::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -10283,8 +10522,8 @@ void FinancialAmount::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + amount_.ClearToEmpty(); asset_.ClearToEmpty(); - amount_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -10295,10 +10534,12 @@ const char* FinancialAmount::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 amount = 1 [json_name = "amount"]; + // string amount = 1 [json_name = "amount"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.FinancialAmount.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -10339,10 +10580,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* FinancialAmount::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 amount = 1 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_amount(), target); + // string amount = 1 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.FinancialAmount.amount"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_amount(), target); } // string asset = 2 [json_name = "asset"]; @@ -10371,18 +10616,18 @@ size_t FinancialAmount::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string asset = 2 [json_name = "asset"]; - if (this->asset().size() > 0) { + // string amount = 1 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); + this->_internal_amount()); } - // uint64 amount = 1 [json_name = "amount"]; - if (this->amount() != 0) { + // string asset = 2 [json_name = "asset"]; + if (this->asset().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10416,12 +10661,12 @@ void FinancialAmount::MergeFrom(const FinancialAmount& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } } void FinancialAmount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -10445,8 +10690,8 @@ bool FinancialAmount::IsInitialized() const { void FinancialAmount::InternalSwap(FinancialAmount* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(amount_, other->amount_); } ::PROTOBUF_NAMESPACE_ID::Metadata FinancialAmount::GetMetadata() const { @@ -10479,20 +10724,24 @@ Transfer::Transfer(const Transfer& from) owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_owner(), GetArena()); } + min_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_min_amount().empty()) { + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_min_amount(), + GetArena()); + } if (from._internal_has_amount()) { amount_ = new ::vega::FinancialAmount(*from.amount_); } else { amount_ = nullptr; } - ::memcpy(&min_amount_, &from.min_amount_, - static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&min_amount_)) + sizeof(type_)); + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:vega.Transfer) } void Transfer::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Transfer_vega_2eproto.base); owner_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + min_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&amount_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&type_) - @@ -10508,6 +10757,7 @@ Transfer::~Transfer() { void Transfer::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); owner_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + min_amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete amount_; } @@ -10533,13 +10783,12 @@ void Transfer::Clear() { (void) cached_has_bits; owner_.ClearToEmpty(); + min_amount_.ClearToEmpty(); if (GetArena() == nullptr && amount_ != nullptr) { delete amount_; } amount_ = nullptr; - ::memset(&min_amount_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&min_amount_)) + sizeof(type_)); + type_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -10574,10 +10823,12 @@ const char* Transfer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i _internal_set_type(static_cast<::vega::TransferType>(val)); } else goto handle_unusual; continue; - // uint64 min_amount = 4 [json_name = "minAmount"]; + // string min_amount = 4 [json_name = "minAmount"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - min_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_min_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Transfer.min_amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -10634,10 +10885,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Transfer::_InternalSerialize( 3, this->_internal_type(), target); } - // uint64 min_amount = 4 [json_name = "minAmount"]; - if (this->min_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_min_amount(), target); + // string min_amount = 4 [json_name = "minAmount"]; + if (this->min_amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_min_amount().data(), static_cast(this->_internal_min_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Transfer.min_amount"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_min_amount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10663,6 +10918,13 @@ size_t Transfer::ByteSizeLong() const { this->_internal_owner()); } + // string min_amount = 4 [json_name = "minAmount"]; + if (this->min_amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_min_amount()); + } + // .vega.FinancialAmount amount = 2 [json_name = "amount"]; if (this->has_amount()) { total_size += 1 + @@ -10670,13 +10932,6 @@ size_t Transfer::ByteSizeLong() const { *amount_); } - // uint64 min_amount = 4 [json_name = "minAmount"]; - if (this->min_amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_min_amount()); - } - // .vega.TransferType type = 3 [json_name = "type"]; if (this->type() != 0) { total_size += 1 + @@ -10717,12 +10972,12 @@ void Transfer::MergeFrom(const Transfer& from) { if (from.owner().size() > 0) { _internal_set_owner(from._internal_owner()); } + if (from.min_amount().size() > 0) { + _internal_set_min_amount(from._internal_min_amount()); + } if (from.has_amount()) { _internal_mutable_amount()->::vega::FinancialAmount::MergeFrom(from._internal_amount()); } - if (from.min_amount() != 0) { - _internal_set_min_amount(from._internal_min_amount()); - } if (from.type() != 0) { _internal_set_type(from._internal_type()); } @@ -10750,6 +11005,7 @@ void Transfer::InternalSwap(Transfer* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); owner_.Swap(&other->owner_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + min_amount_.Swap(&other->min_amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Transfer, type_) + sizeof(Transfer::type_) @@ -10782,6 +11038,16 @@ TransferRequest::TransferRequest(const TransferRequest& from) from_account_(from.from_account_), to_account_(from.to_account_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } + min_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_min_amount().empty()) { + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_min_amount(), + GetArena()); + } asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_asset().empty()) { asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), @@ -10792,20 +11058,15 @@ TransferRequest::TransferRequest(const TransferRequest& from) reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), GetArena()); } - ::memcpy(&amount_, &from.amount_, - static_cast(reinterpret_cast(&min_amount_) - - reinterpret_cast(&amount_)) + sizeof(min_amount_)); // @@protoc_insertion_point(copy_constructor:vega.TransferRequest) } void TransferRequest::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransferRequest_vega_2eproto.base); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + min_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&amount_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&min_amount_) - - reinterpret_cast(&amount_)) + sizeof(min_amount_)); } TransferRequest::~TransferRequest() { @@ -10816,6 +11077,8 @@ TransferRequest::~TransferRequest() { void TransferRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + min_amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -10843,11 +11106,10 @@ void TransferRequest::Clear() { from_account_.Clear(); to_account_.Clear(); + amount_.ClearToEmpty(); + min_amount_.ClearToEmpty(); asset_.ClearToEmpty(); reference_.ClearToEmpty(); - ::memset(&amount_, 0, static_cast( - reinterpret_cast(&min_amount_) - - reinterpret_cast(&amount_)) + sizeof(min_amount_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -10882,17 +11144,21 @@ const char* TransferRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; - // uint64 amount = 3 [json_name = "amount"]; + // string amount = 3 [json_name = "amount"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.TransferRequest.amount")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 min_amount = 4 [json_name = "minAmount"]; + // string min_amount = 4 [json_name = "minAmount"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - min_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_min_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.TransferRequest.min_amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -10958,16 +11224,24 @@ ::PROTOBUF_NAMESPACE_ID::uint8* TransferRequest::_InternalSerialize( InternalWriteMessage(2, this->_internal_to_account(i), target, stream); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.TransferRequest.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); } - // uint64 min_amount = 4 [json_name = "minAmount"]; - if (this->min_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_min_amount(), target); + // string min_amount = 4 [json_name = "minAmount"]; + if (this->min_amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_min_amount().data(), static_cast(this->_internal_min_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.TransferRequest.min_amount"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_min_amount(), target); } // string asset = 5 [json_name = "asset"]; @@ -11020,32 +11294,32 @@ size_t TransferRequest::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string asset = 5 [json_name = "asset"]; - if (this->asset().size() > 0) { + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); + this->_internal_amount()); } - // string reference = 6 [json_name = "reference"]; - if (this->reference().size() > 0) { + // string min_amount = 4 [json_name = "minAmount"]; + if (this->min_amount().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_reference()); + this->_internal_min_amount()); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { + // string asset = 5 [json_name = "asset"]; + if (this->asset().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); } - // uint64 min_amount = 4 [json_name = "minAmount"]; - if (this->min_amount() != 0) { + // string reference = 6 [json_name = "reference"]; + if (this->reference().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_min_amount()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -11081,18 +11355,18 @@ void TransferRequest::MergeFrom(const TransferRequest& from) { from_account_.MergeFrom(from.from_account_); to_account_.MergeFrom(from.to_account_); + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } + if (from.min_amount().size() > 0) { + _internal_set_min_amount(from._internal_min_amount()); + } if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } - if (from.min_amount() != 0) { - _internal_set_min_amount(from._internal_min_amount()); - } } void TransferRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -11118,14 +11392,10 @@ void TransferRequest::InternalSwap(TransferRequest* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); from_account_.InternalSwap(&other->from_account_); to_account_.InternalSwap(&other->to_account_); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + min_amount_.Swap(&other->min_amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TransferRequest, min_amount_) - + sizeof(TransferRequest::min_amount_) - - PROTOBUF_FIELD_OFFSET(TransferRequest, amount_)>( - reinterpret_cast(&amount_), - reinterpret_cast(&other->amount_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TransferRequest::GetMetadata() const { @@ -11158,6 +11428,11 @@ LedgerEntry::LedgerEntry(const LedgerEntry& from) to_account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_to_account(), GetArena()); } + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_amount().empty()) { + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_amount(), + GetArena()); + } reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_reference().empty()) { reference_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reference(), @@ -11168,9 +11443,7 @@ LedgerEntry::LedgerEntry(const LedgerEntry& from) type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(), GetArena()); } - ::memcpy(&amount_, &from.amount_, - static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&amount_)) + sizeof(timestamp_)); + timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:vega.LedgerEntry) } @@ -11178,12 +11451,10 @@ void LedgerEntry::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LedgerEntry_vega_2eproto.base); from_account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); to_account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&amount_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&amount_)) + sizeof(timestamp_)); + timestamp_ = PROTOBUF_LONGLONG(0); } LedgerEntry::~LedgerEntry() { @@ -11196,6 +11467,7 @@ void LedgerEntry::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); from_account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); to_account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -11223,11 +11495,10 @@ void LedgerEntry::Clear() { from_account_.ClearToEmpty(); to_account_.ClearToEmpty(); + amount_.ClearToEmpty(); reference_.ClearToEmpty(); type_.ClearToEmpty(); - ::memset(&amount_, 0, static_cast( - reinterpret_cast(×tamp_) - - reinterpret_cast(&amount_)) + sizeof(timestamp_)); + timestamp_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -11256,10 +11527,12 @@ const char* LedgerEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr); } else goto handle_unusual; continue; - // uint64 amount = 3 [json_name = "amount"]; + // string amount = 3 [json_name = "amount"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LedgerEntry.amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -11336,10 +11609,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* LedgerEntry::_InternalSerialize( 2, this->_internal_to_account(), target); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target); + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_amount().data(), static_cast(this->_internal_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LedgerEntry.amount"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_amount(), target); } // string reference = 4 [json_name = "reference"]; @@ -11398,6 +11675,13 @@ size_t LedgerEntry::ByteSizeLong() const { this->_internal_to_account()); } + // string amount = 3 [json_name = "amount"]; + if (this->amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_amount()); + } + // string reference = 4 [json_name = "reference"]; if (this->reference().size() > 0) { total_size += 1 + @@ -11412,13 +11696,6 @@ size_t LedgerEntry::ByteSizeLong() const { this->_internal_type()); } - // uint64 amount = 3 [json_name = "amount"]; - if (this->amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount()); - } - // int64 timestamp = 6 [json_name = "timestamp"]; if (this->timestamp() != 0) { total_size += 1 + @@ -11463,15 +11740,15 @@ void LedgerEntry::MergeFrom(const LedgerEntry& from) { if (from.to_account().size() > 0) { _internal_set_to_account(from._internal_to_account()); } + if (from.amount().size() > 0) { + _internal_set_amount(from._internal_amount()); + } if (from.reference().size() > 0) { _internal_set_reference(from._internal_reference()); } if (from.type().size() > 0) { _internal_set_type(from._internal_type()); } - if (from.amount() != 0) { - _internal_set_amount(from._internal_amount()); - } if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } @@ -11500,14 +11777,10 @@ void LedgerEntry::InternalSwap(LedgerEntry* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); from_account_.Swap(&other->from_account_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); to_account_.Swap(&other->to_account_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LedgerEntry, timestamp_) - + sizeof(LedgerEntry::timestamp_) - - PROTOBUF_FIELD_OFFSET(LedgerEntry, amount_)>( - reinterpret_cast(&amount_), - reinterpret_cast(&other->amount_)); + swap(timestamp_, other->timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata LedgerEntry::GetMetadata() const { @@ -11535,21 +11808,23 @@ TransferBalance::TransferBalance(::PROTOBUF_NAMESPACE_ID::Arena* arena) TransferBalance::TransferBalance(const TransferBalance& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_balance().empty()) { + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_balance(), + GetArena()); + } if (from._internal_has_account()) { account_ = new ::vega::Account(*from.account_); } else { account_ = nullptr; } - balance_ = from.balance_; // @@protoc_insertion_point(copy_constructor:vega.TransferBalance) } void TransferBalance::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransferBalance_vega_2eproto.base); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&account_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&balance_) - - reinterpret_cast(&account_)) + sizeof(balance_)); + balance_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + account_ = nullptr; } TransferBalance::~TransferBalance() { @@ -11560,6 +11835,7 @@ TransferBalance::~TransferBalance() { void TransferBalance::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + balance_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete account_; } @@ -11584,11 +11860,11 @@ void TransferBalance::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + balance_.ClearToEmpty(); if (GetArena() == nullptr && account_ != nullptr) { delete account_; } account_ = nullptr; - balance_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -11606,10 +11882,12 @@ const char* TransferBalance::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr); } else goto handle_unusual; continue; - // uint64 balance = 2 [json_name = "balance"]; + // string balance = 2 [json_name = "balance"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - balance_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_balance(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.TransferBalance.balance")); CHK_(ptr); } else goto handle_unusual; continue; @@ -11649,10 +11927,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* TransferBalance::_InternalSerialize( 1, _Internal::account(this), target, stream); } - // uint64 balance = 2 [json_name = "balance"]; - if (this->balance() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_balance(), target); + // string balance = 2 [json_name = "balance"]; + if (this->balance().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_balance().data(), static_cast(this->_internal_balance().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.TransferBalance.balance"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_balance(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -11671,6 +11953,13 @@ size_t TransferBalance::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string balance = 2 [json_name = "balance"]; + if (this->balance().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_balance()); + } + // .vega.Account account = 1 [json_name = "account"]; if (this->has_account()) { total_size += 1 + @@ -11678,13 +11967,6 @@ size_t TransferBalance::ByteSizeLong() const { *account_); } - // uint64 balance = 2 [json_name = "balance"]; - if (this->balance() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_balance()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -11716,12 +11998,12 @@ void TransferBalance::MergeFrom(const TransferBalance& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.balance().size() > 0) { + _internal_set_balance(from._internal_balance()); + } if (from.has_account()) { _internal_mutable_account()->::vega::Account::MergeFrom(from._internal_account()); } - if (from.balance() != 0) { - _internal_set_balance(from._internal_balance()); - } } void TransferBalance::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -11745,12 +12027,8 @@ bool TransferBalance::IsInitialized() const { void TransferBalance::InternalSwap(TransferBalance* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TransferBalance, balance_) - + sizeof(TransferBalance::balance_) - - PROTOBUF_FIELD_OFFSET(TransferBalance, account_)>( - reinterpret_cast(&account_), - reinterpret_cast(&other->account_)); + balance_.Swap(&other->balance_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(account_, other->account_); } ::PROTOBUF_NAMESPACE_ID::Metadata TransferBalance::GetMetadata() const { @@ -12005,6 +12283,26 @@ MarginLevels::MarginLevels(::PROTOBUF_NAMESPACE_ID::Arena* arena) MarginLevels::MarginLevels(const MarginLevels& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + maintenance_margin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_maintenance_margin().empty()) { + maintenance_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_maintenance_margin(), + GetArena()); + } + search_level_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_search_level().empty()) { + search_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_search_level(), + GetArena()); + } + initial_margin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_initial_margin().empty()) { + initial_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_initial_margin(), + GetArena()); + } + collateral_release_level_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_collateral_release_level().empty()) { + collateral_release_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_collateral_release_level(), + GetArena()); + } party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_party_id().empty()) { party_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_party_id(), @@ -12020,21 +12318,20 @@ MarginLevels::MarginLevels(const MarginLevels& from) asset_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_asset(), GetArena()); } - ::memcpy(&maintenance_margin_, &from.maintenance_margin_, - static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&maintenance_margin_)) + sizeof(timestamp_)); + timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:vega.MarginLevels) } void MarginLevels::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarginLevels_vega_2eproto.base); + maintenance_margin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + search_level_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + initial_margin_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collateral_release_level_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&maintenance_margin_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&maintenance_margin_)) + sizeof(timestamp_)); + timestamp_ = PROTOBUF_LONGLONG(0); } MarginLevels::~MarginLevels() { @@ -12045,6 +12342,10 @@ MarginLevels::~MarginLevels() { void MarginLevels::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + maintenance_margin_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + search_level_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + initial_margin_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collateral_release_level_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); asset_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -12071,12 +12372,14 @@ void MarginLevels::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + maintenance_margin_.ClearToEmpty(); + search_level_.ClearToEmpty(); + initial_margin_.ClearToEmpty(); + collateral_release_level_.ClearToEmpty(); party_id_.ClearToEmpty(); market_id_.ClearToEmpty(); asset_.ClearToEmpty(); - ::memset(&maintenance_margin_, 0, static_cast( - reinterpret_cast(×tamp_) - - reinterpret_cast(&maintenance_margin_)) + sizeof(timestamp_)); + timestamp_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -12087,31 +12390,39 @@ const char* MarginLevels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + // string maintenance_margin = 1 [json_name = "maintenanceMargin"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - maintenance_margin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_maintenance_margin(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarginLevels.maintenance_margin")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 search_level = 2 [json_name = "searchLevel"]; + // string search_level = 2 [json_name = "searchLevel"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - search_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_search_level(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarginLevels.search_level")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 initial_margin = 3 [json_name = "initialMargin"]; + // string initial_margin = 3 [json_name = "initialMargin"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - initial_margin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_initial_margin(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarginLevels.initial_margin")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + // string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - collateral_release_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_collateral_release_level(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarginLevels.collateral_release_level")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12177,28 +12488,44 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarginLevels::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - if (this->maintenance_margin() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_maintenance_margin(), target); + // string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + if (this->maintenance_margin().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_maintenance_margin().data(), static_cast(this->_internal_maintenance_margin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarginLevels.maintenance_margin"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_maintenance_margin(), target); } - // uint64 search_level = 2 [json_name = "searchLevel"]; - if (this->search_level() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_search_level(), target); + // string search_level = 2 [json_name = "searchLevel"]; + if (this->search_level().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_search_level().data(), static_cast(this->_internal_search_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarginLevels.search_level"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_search_level(), target); } - // uint64 initial_margin = 3 [json_name = "initialMargin"]; - if (this->initial_margin() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_initial_margin(), target); + // string initial_margin = 3 [json_name = "initialMargin"]; + if (this->initial_margin().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_initial_margin().data(), static_cast(this->_internal_initial_margin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarginLevels.initial_margin"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_initial_margin(), target); } - // uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - if (this->collateral_release_level() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_collateral_release_level(), target); + // string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + if (this->collateral_release_level().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_collateral_release_level().data(), static_cast(this->_internal_collateral_release_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarginLevels.collateral_release_level"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_collateral_release_level(), target); } // string party_id = 5 [json_name = "partyId"]; @@ -12253,53 +12580,53 @@ size_t MarginLevels::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string party_id = 5 [json_name = "partyId"]; - if (this->party_id().size() > 0) { + // string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + if (this->maintenance_margin().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_party_id()); + this->_internal_maintenance_margin()); } - // string market_id = 6 [json_name = "marketId"]; - if (this->market_id().size() > 0) { + // string search_level = 2 [json_name = "searchLevel"]; + if (this->search_level().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_market_id()); + this->_internal_search_level()); } - // string asset = 7 [json_name = "asset"]; - if (this->asset().size() > 0) { + // string initial_margin = 3 [json_name = "initialMargin"]; + if (this->initial_margin().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_asset()); + this->_internal_initial_margin()); } - // uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - if (this->maintenance_margin() != 0) { + // string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + if (this->collateral_release_level().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_maintenance_margin()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_collateral_release_level()); } - // uint64 search_level = 2 [json_name = "searchLevel"]; - if (this->search_level() != 0) { + // string party_id = 5 [json_name = "partyId"]; + if (this->party_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_search_level()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_party_id()); } - // uint64 initial_margin = 3 [json_name = "initialMargin"]; - if (this->initial_margin() != 0) { + // string market_id = 6 [json_name = "marketId"]; + if (this->market_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_initial_margin()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_market_id()); } - // uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - if (this->collateral_release_level() != 0) { + // string asset = 7 [json_name = "asset"]; + if (this->asset().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_collateral_release_level()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_asset()); } // int64 timestamp = 8 [json_name = "timestamp"]; @@ -12340,6 +12667,18 @@ void MarginLevels::MergeFrom(const MarginLevels& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.maintenance_margin().size() > 0) { + _internal_set_maintenance_margin(from._internal_maintenance_margin()); + } + if (from.search_level().size() > 0) { + _internal_set_search_level(from._internal_search_level()); + } + if (from.initial_margin().size() > 0) { + _internal_set_initial_margin(from._internal_initial_margin()); + } + if (from.collateral_release_level().size() > 0) { + _internal_set_collateral_release_level(from._internal_collateral_release_level()); + } if (from.party_id().size() > 0) { _internal_set_party_id(from._internal_party_id()); } @@ -12349,18 +12688,6 @@ void MarginLevels::MergeFrom(const MarginLevels& from) { if (from.asset().size() > 0) { _internal_set_asset(from._internal_asset()); } - if (from.maintenance_margin() != 0) { - _internal_set_maintenance_margin(from._internal_maintenance_margin()); - } - if (from.search_level() != 0) { - _internal_set_search_level(from._internal_search_level()); - } - if (from.initial_margin() != 0) { - _internal_set_initial_margin(from._internal_initial_margin()); - } - if (from.collateral_release_level() != 0) { - _internal_set_collateral_release_level(from._internal_collateral_release_level()); - } if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } @@ -12387,15 +12714,14 @@ bool MarginLevels::IsInitialized() const { void MarginLevels::InternalSwap(MarginLevels* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + maintenance_margin_.Swap(&other->maintenance_margin_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + search_level_.Swap(&other->search_level_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + initial_margin_.Swap(&other->initial_margin_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + collateral_release_level_.Swap(&other->collateral_release_level_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); asset_.Swap(&other->asset_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MarginLevels, timestamp_) - + sizeof(MarginLevels::timestamp_) - - PROTOBUF_FIELD_OFFSET(MarginLevels, maintenance_margin_)>( - reinterpret_cast(&maintenance_margin_), - reinterpret_cast(&other->maintenance_margin_)); + swap(timestamp_, other->timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata MarginLevels::GetMetadata() const { @@ -12422,11 +12748,51 @@ MarketData::MarketData(const MarketData& from) price_monitoring_bounds_(from.price_monitoring_bounds_), liquidity_provider_fee_share_(from.liquidity_provider_fee_share_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + mark_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_mark_price().empty()) { + mark_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mark_price(), + GetArena()); + } + best_bid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_best_bid_price().empty()) { + best_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_best_bid_price(), + GetArena()); + } + best_offer_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_best_offer_price().empty()) { + best_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_best_offer_price(), + GetArena()); + } + best_static_bid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_best_static_bid_price().empty()) { + best_static_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_best_static_bid_price(), + GetArena()); + } + best_static_offer_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_best_static_offer_price().empty()) { + best_static_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_best_static_offer_price(), + GetArena()); + } + mid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_mid_price().empty()) { + mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mid_price(), + GetArena()); + } + static_mid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_static_mid_price().empty()) { + static_mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_static_mid_price(), + GetArena()); + } market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_market().empty()) { market_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market(), GetArena()); } + indicative_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_indicative_price().empty()) { + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_indicative_price(), + GetArena()); + } target_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_target_stake().empty()) { target_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_target_stake(), @@ -12442,22 +12808,30 @@ MarketData::MarketData(const MarketData& from) market_value_proxy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_value_proxy(), GetArena()); } - ::memcpy(&mark_price_, &from.mark_price_, + ::memcpy(&best_bid_volume_, &from.best_bid_volume_, static_cast(reinterpret_cast(&extension_trigger_) - - reinterpret_cast(&mark_price_)) + sizeof(extension_trigger_)); + reinterpret_cast(&best_bid_volume_)) + sizeof(extension_trigger_)); // @@protoc_insertion_point(copy_constructor:vega.MarketData) } void MarketData::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MarketData_vega_2eproto.base); + mark_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_bid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_offer_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_static_bid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_static_offer_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + mid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + static_mid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + indicative_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); target_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); supplied_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_value_proxy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&mark_price_) - reinterpret_cast(this)), + reinterpret_cast(&best_bid_volume_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&extension_trigger_) - - reinterpret_cast(&mark_price_)) + sizeof(extension_trigger_)); + reinterpret_cast(&best_bid_volume_)) + sizeof(extension_trigger_)); } MarketData::~MarketData() { @@ -12468,7 +12842,15 @@ MarketData::~MarketData() { void MarketData::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + mark_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_bid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_offer_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_static_bid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + best_static_offer_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + mid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + static_mid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + indicative_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); target_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); supplied_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_value_proxy_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -12497,13 +12879,21 @@ void MarketData::Clear() { price_monitoring_bounds_.Clear(); liquidity_provider_fee_share_.Clear(); + mark_price_.ClearToEmpty(); + best_bid_price_.ClearToEmpty(); + best_offer_price_.ClearToEmpty(); + best_static_bid_price_.ClearToEmpty(); + best_static_offer_price_.ClearToEmpty(); + mid_price_.ClearToEmpty(); + static_mid_price_.ClearToEmpty(); market_.ClearToEmpty(); + indicative_price_.ClearToEmpty(); target_stake_.ClearToEmpty(); supplied_stake_.ClearToEmpty(); market_value_proxy_.ClearToEmpty(); - ::memset(&mark_price_, 0, static_cast( + ::memset(&best_bid_volume_, 0, static_cast( reinterpret_cast(&extension_trigger_) - - reinterpret_cast(&mark_price_)) + sizeof(extension_trigger_)); + reinterpret_cast(&best_bid_volume_)) + sizeof(extension_trigger_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -12514,17 +12904,21 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 mark_price = 1 [json_name = "markPrice"]; + // string mark_price = 1 [json_name = "markPrice"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - mark_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_mark_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.mark_price")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + // string best_bid_price = 2 [json_name = "bestBidPrice"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - best_bid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_best_bid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.best_bid_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12535,10 +12929,12 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + // string best_offer_price = 4 [json_name = "bestOfferPrice"]; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - best_offer_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_best_offer_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.best_offer_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12549,10 +12945,12 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + // string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - best_static_bid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_best_static_bid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.best_static_bid_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12563,10 +12961,12 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + // string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - best_static_offer_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_best_static_offer_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.best_static_offer_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12577,17 +12977,21 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 mid_price = 10 [json_name = "midPrice"]; + // string mid_price = 10 [json_name = "midPrice"]; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - mid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + auto str = _internal_mutable_mid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.mid_price")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + // string static_mid_price = 11 [json_name = "staticMidPrice"]; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { - static_mid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + auto str = _internal_mutable_static_mid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.static_mid_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12628,10 +13032,12 @@ const char* MarketData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // uint64 indicative_price = 17 [json_name = "indicativePrice"]; + // string indicative_price = 17 [json_name = "indicativePrice"]; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { - indicative_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + auto str = _internal_mutable_indicative_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.MarketData.indicative_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -12745,16 +13151,24 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 mark_price = 1 [json_name = "markPrice"]; - if (this->mark_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_mark_price(), target); + // string mark_price = 1 [json_name = "markPrice"]; + if (this->mark_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mark_price().data(), static_cast(this->_internal_mark_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.mark_price"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mark_price(), target); } - // uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - if (this->best_bid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_best_bid_price(), target); + // string best_bid_price = 2 [json_name = "bestBidPrice"]; + if (this->best_bid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_best_bid_price().data(), static_cast(this->_internal_best_bid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.best_bid_price"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_best_bid_price(), target); } // uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; @@ -12763,10 +13177,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_best_bid_volume(), target); } - // uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - if (this->best_offer_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_best_offer_price(), target); + // string best_offer_price = 4 [json_name = "bestOfferPrice"]; + if (this->best_offer_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_best_offer_price().data(), static_cast(this->_internal_best_offer_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.best_offer_price"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_best_offer_price(), target); } // uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; @@ -12775,10 +13193,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_best_offer_volume(), target); } - // uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - if (this->best_static_bid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_best_static_bid_price(), target); + // string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + if (this->best_static_bid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_best_static_bid_price().data(), static_cast(this->_internal_best_static_bid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.best_static_bid_price"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_best_static_bid_price(), target); } // uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; @@ -12787,10 +13209,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_best_static_bid_volume(), target); } - // uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - if (this->best_static_offer_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_best_static_offer_price(), target); + // string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + if (this->best_static_offer_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_best_static_offer_price().data(), static_cast(this->_internal_best_static_offer_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.best_static_offer_price"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_best_static_offer_price(), target); } // uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; @@ -12799,16 +13225,24 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_best_static_offer_volume(), target); } - // uint64 mid_price = 10 [json_name = "midPrice"]; - if (this->mid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_mid_price(), target); + // string mid_price = 10 [json_name = "midPrice"]; + if (this->mid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mid_price().data(), static_cast(this->_internal_mid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.mid_price"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_mid_price(), target); } - // uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - if (this->static_mid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_static_mid_price(), target); + // string static_mid_price = 11 [json_name = "staticMidPrice"]; + if (this->static_mid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_static_mid_price().data(), static_cast(this->_internal_static_mid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.static_mid_price"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_static_mid_price(), target); } // string market = 12 [json_name = "market"]; @@ -12845,10 +13279,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MarketData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(16, this->_internal_auction_start(), target); } - // uint64 indicative_price = 17 [json_name = "indicativePrice"]; - if (this->indicative_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(17, this->_internal_indicative_price(), target); + // string indicative_price = 17 [json_name = "indicativePrice"]; + if (this->indicative_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_indicative_price().data(), static_cast(this->_internal_indicative_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.MarketData.indicative_price"); + target = stream->WriteStringMaybeAliased( + 17, this->_internal_indicative_price(), target); } // uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; @@ -12954,6 +13392,55 @@ size_t MarketData::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string mark_price = 1 [json_name = "markPrice"]; + if (this->mark_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mark_price()); + } + + // string best_bid_price = 2 [json_name = "bestBidPrice"]; + if (this->best_bid_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_best_bid_price()); + } + + // string best_offer_price = 4 [json_name = "bestOfferPrice"]; + if (this->best_offer_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_best_offer_price()); + } + + // string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + if (this->best_static_bid_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_best_static_bid_price()); + } + + // string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + if (this->best_static_offer_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_best_static_offer_price()); + } + + // string mid_price = 10 [json_name = "midPrice"]; + if (this->mid_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mid_price()); + } + + // string static_mid_price = 11 [json_name = "staticMidPrice"]; + if (this->static_mid_price().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_static_mid_price()); + } + // string market = 12 [json_name = "market"]; if (this->market().size() > 0) { total_size += 1 + @@ -12961,6 +13448,13 @@ size_t MarketData::ByteSizeLong() const { this->_internal_market()); } + // string indicative_price = 17 [json_name = "indicativePrice"]; + if (this->indicative_price().size() > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_indicative_price()); + } + // string target_stake = 22 [json_name = "targetStake"]; if (this->target_stake().size() > 0) { total_size += 2 + @@ -12982,20 +13476,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_market_value_proxy()); } - // uint64 mark_price = 1 [json_name = "markPrice"]; - if (this->mark_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_mark_price()); - } - - // uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - if (this->best_bid_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_best_bid_price()); - } - // uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; if (this->best_bid_volume() != 0) { total_size += 1 + @@ -13003,13 +13483,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_best_bid_volume()); } - // uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - if (this->best_offer_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_best_offer_price()); - } - // uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; if (this->best_offer_volume() != 0) { total_size += 1 + @@ -13017,13 +13490,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_best_offer_volume()); } - // uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - if (this->best_static_bid_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_best_static_bid_price()); - } - // uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; if (this->best_static_bid_volume() != 0) { total_size += 1 + @@ -13031,13 +13497,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_best_static_bid_volume()); } - // uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - if (this->best_static_offer_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_best_static_offer_price()); - } - // uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; if (this->best_static_offer_volume() != 0) { total_size += 1 + @@ -13045,20 +13504,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_best_static_offer_volume()); } - // uint64 mid_price = 10 [json_name = "midPrice"]; - if (this->mid_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_mid_price()); - } - - // uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - if (this->static_mid_price() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_static_mid_price()); - } - // int64 timestamp = 13 [json_name = "timestamp"]; if (this->timestamp() != 0) { total_size += 1 + @@ -13087,13 +13532,6 @@ size_t MarketData::ByteSizeLong() const { this->_internal_auction_start()); } - // uint64 indicative_price = 17 [json_name = "indicativePrice"]; - if (this->indicative_price() != 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_indicative_price()); - } - // uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; if (this->indicative_volume() != 0) { total_size += 2 + @@ -13152,9 +13590,33 @@ void MarketData::MergeFrom(const MarketData& from) { price_monitoring_bounds_.MergeFrom(from.price_monitoring_bounds_); liquidity_provider_fee_share_.MergeFrom(from.liquidity_provider_fee_share_); + if (from.mark_price().size() > 0) { + _internal_set_mark_price(from._internal_mark_price()); + } + if (from.best_bid_price().size() > 0) { + _internal_set_best_bid_price(from._internal_best_bid_price()); + } + if (from.best_offer_price().size() > 0) { + _internal_set_best_offer_price(from._internal_best_offer_price()); + } + if (from.best_static_bid_price().size() > 0) { + _internal_set_best_static_bid_price(from._internal_best_static_bid_price()); + } + if (from.best_static_offer_price().size() > 0) { + _internal_set_best_static_offer_price(from._internal_best_static_offer_price()); + } + if (from.mid_price().size() > 0) { + _internal_set_mid_price(from._internal_mid_price()); + } + if (from.static_mid_price().size() > 0) { + _internal_set_static_mid_price(from._internal_static_mid_price()); + } if (from.market().size() > 0) { _internal_set_market(from._internal_market()); } + if (from.indicative_price().size() > 0) { + _internal_set_indicative_price(from._internal_indicative_price()); + } if (from.target_stake().size() > 0) { _internal_set_target_stake(from._internal_target_stake()); } @@ -13164,39 +13626,18 @@ void MarketData::MergeFrom(const MarketData& from) { if (from.market_value_proxy().size() > 0) { _internal_set_market_value_proxy(from._internal_market_value_proxy()); } - if (from.mark_price() != 0) { - _internal_set_mark_price(from._internal_mark_price()); - } - if (from.best_bid_price() != 0) { - _internal_set_best_bid_price(from._internal_best_bid_price()); - } if (from.best_bid_volume() != 0) { _internal_set_best_bid_volume(from._internal_best_bid_volume()); } - if (from.best_offer_price() != 0) { - _internal_set_best_offer_price(from._internal_best_offer_price()); - } if (from.best_offer_volume() != 0) { _internal_set_best_offer_volume(from._internal_best_offer_volume()); } - if (from.best_static_bid_price() != 0) { - _internal_set_best_static_bid_price(from._internal_best_static_bid_price()); - } if (from.best_static_bid_volume() != 0) { _internal_set_best_static_bid_volume(from._internal_best_static_bid_volume()); } - if (from.best_static_offer_price() != 0) { - _internal_set_best_static_offer_price(from._internal_best_static_offer_price()); - } if (from.best_static_offer_volume() != 0) { _internal_set_best_static_offer_volume(from._internal_best_static_offer_volume()); } - if (from.mid_price() != 0) { - _internal_set_mid_price(from._internal_mid_price()); - } - if (from.static_mid_price() != 0) { - _internal_set_static_mid_price(from._internal_static_mid_price()); - } if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } @@ -13209,9 +13650,6 @@ void MarketData::MergeFrom(const MarketData& from) { if (from.auction_start() != 0) { _internal_set_auction_start(from._internal_auction_start()); } - if (from.indicative_price() != 0) { - _internal_set_indicative_price(from._internal_indicative_price()); - } if (from.indicative_volume() != 0) { _internal_set_indicative_volume(from._internal_indicative_volume()); } @@ -13249,16 +13687,24 @@ void MarketData::InternalSwap(MarketData* other) { _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); price_monitoring_bounds_.InternalSwap(&other->price_monitoring_bounds_); liquidity_provider_fee_share_.InternalSwap(&other->liquidity_provider_fee_share_); + mark_price_.Swap(&other->mark_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + best_bid_price_.Swap(&other->best_bid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + best_offer_price_.Swap(&other->best_offer_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + best_static_bid_price_.Swap(&other->best_static_bid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + best_static_offer_price_.Swap(&other->best_static_offer_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + mid_price_.Swap(&other->mid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + static_mid_price_.Swap(&other->static_mid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_.Swap(&other->market_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + indicative_price_.Swap(&other->indicative_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); target_stake_.Swap(&other->target_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); supplied_stake_.Swap(&other->supplied_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_value_proxy_.Swap(&other->market_value_proxy_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MarketData, extension_trigger_) + sizeof(MarketData::extension_trigger_) - - PROTOBUF_FIELD_OFFSET(MarketData, mark_price_)>( - reinterpret_cast(&mark_price_), - reinterpret_cast(&other->mark_price_)); + - PROTOBUF_FIELD_OFFSET(MarketData, best_bid_volume_)>( + reinterpret_cast(&best_bid_volume_), + reinterpret_cast(&other->best_bid_volume_)); } ::PROTOBUF_NAMESPACE_ID::Metadata MarketData::GetMetadata() const { @@ -13574,19 +14020,29 @@ PriceMonitoringBounds::PriceMonitoringBounds(::PROTOBUF_NAMESPACE_ID::Arena* are PriceMonitoringBounds::PriceMonitoringBounds(const PriceMonitoringBounds& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + min_valid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_min_valid_price().empty()) { + min_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_min_valid_price(), + GetArena()); + } + max_valid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_max_valid_price().empty()) { + max_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_max_valid_price(), + GetArena()); + } if (from._internal_has_trigger()) { trigger_ = new ::vega::PriceMonitoringTrigger(*from.trigger_); } else { trigger_ = nullptr; } - ::memcpy(&min_valid_price_, &from.min_valid_price_, - static_cast(reinterpret_cast(&reference_price_) - - reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); + reference_price_ = from.reference_price_; // @@protoc_insertion_point(copy_constructor:vega.PriceMonitoringBounds) } void PriceMonitoringBounds::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PriceMonitoringBounds_vega_2eproto.base); + min_valid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + max_valid_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&trigger_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&reference_price_) - @@ -13601,6 +14057,8 @@ PriceMonitoringBounds::~PriceMonitoringBounds() { void PriceMonitoringBounds::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); + min_valid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + max_valid_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete trigger_; } @@ -13625,13 +14083,13 @@ void PriceMonitoringBounds::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + min_valid_price_.ClearToEmpty(); + max_valid_price_.ClearToEmpty(); if (GetArena() == nullptr && trigger_ != nullptr) { delete trigger_; } trigger_ = nullptr; - ::memset(&min_valid_price_, 0, static_cast( - reinterpret_cast(&reference_price_) - - reinterpret_cast(&min_valid_price_)) + sizeof(reference_price_)); + reference_price_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -13642,17 +14100,21 @@ const char* PriceMonitoringBounds::_InternalParse(const char* ptr, ::PROTOBUF_NA ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + // string min_valid_price = 1 [json_name = "minValidPrice"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - min_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_min_valid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.PriceMonitoringBounds.min_valid_price")); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + // string max_valid_price = 2 [json_name = "maxValidPrice"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - max_valid_price_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_max_valid_price(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.PriceMonitoringBounds.max_valid_price")); CHK_(ptr); } else goto handle_unusual; continue; @@ -13698,16 +14160,24 @@ ::PROTOBUF_NAMESPACE_ID::uint8* PriceMonitoringBounds::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - if (this->min_valid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_min_valid_price(), target); + // string min_valid_price = 1 [json_name = "minValidPrice"]; + if (this->min_valid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_min_valid_price().data(), static_cast(this->_internal_min_valid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.PriceMonitoringBounds.min_valid_price"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_min_valid_price(), target); } - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - if (this->max_valid_price() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_max_valid_price(), target); + // string max_valid_price = 2 [json_name = "maxValidPrice"]; + if (this->max_valid_price().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_max_valid_price().data(), static_cast(this->_internal_max_valid_price().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.PriceMonitoringBounds.max_valid_price"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_max_valid_price(), target); } // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; @@ -13740,25 +14210,25 @@ size_t PriceMonitoringBounds::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; - if (this->has_trigger()) { + // string min_valid_price = 1 [json_name = "minValidPrice"]; + if (this->min_valid_price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *trigger_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_min_valid_price()); } - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - if (this->min_valid_price() != 0) { + // string max_valid_price = 2 [json_name = "maxValidPrice"]; + if (this->max_valid_price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_min_valid_price()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_max_valid_price()); } - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - if (this->max_valid_price() != 0) { + // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; + if (this->has_trigger()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_max_valid_price()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *trigger_); } // double reference_price = 4 [json_name = "referencePrice"]; @@ -13797,15 +14267,15 @@ void PriceMonitoringBounds::MergeFrom(const PriceMonitoringBounds& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_trigger()) { - _internal_mutable_trigger()->::vega::PriceMonitoringTrigger::MergeFrom(from._internal_trigger()); - } - if (from.min_valid_price() != 0) { + if (from.min_valid_price().size() > 0) { _internal_set_min_valid_price(from._internal_min_valid_price()); } - if (from.max_valid_price() != 0) { + if (from.max_valid_price().size() > 0) { _internal_set_max_valid_price(from._internal_max_valid_price()); } + if (from.has_trigger()) { + _internal_mutable_trigger()->::vega::PriceMonitoringTrigger::MergeFrom(from._internal_trigger()); + } if (!(from.reference_price() <= 0 && from.reference_price() >= 0)) { _internal_set_reference_price(from._internal_reference_price()); } @@ -13832,6 +14302,8 @@ bool PriceMonitoringBounds::IsInitialized() const { void PriceMonitoringBounds::InternalSwap(PriceMonitoringBounds* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + min_valid_price_.Swap(&other->min_valid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + max_valid_price_.Swap(&other->max_valid_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PriceMonitoringBounds, reference_price_) + sizeof(PriceMonitoringBounds::reference_price_) @@ -14895,6 +15367,11 @@ LiquidityProvision::LiquidityProvision(const LiquidityProvision& from) market_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_market_id(), GetArena()); } + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_commitment_amount().empty()) { + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_commitment_amount(), + GetArena()); + } fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_fee().empty()) { fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fee(), @@ -14921,6 +15398,7 @@ void LiquidityProvision::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + commitment_amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -14941,6 +15419,7 @@ void LiquidityProvision::SharedDtor() { id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); party_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); market_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + commitment_amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); reference_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -14972,6 +15451,7 @@ void LiquidityProvision::Clear() { id_.ClearToEmpty(); party_id_.ClearToEmpty(); market_id_.ClearToEmpty(); + commitment_amount_.ClearToEmpty(); fee_.ClearToEmpty(); version_.ClearToEmpty(); reference_.ClearToEmpty(); @@ -15029,10 +15509,12 @@ const char* LiquidityProvision::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr); } else goto handle_unusual; continue; - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + // string commitment_amount = 6 [json_name = "commitmentAmount"]; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - commitment_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_commitment_amount(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.LiquidityProvision.commitment_amount")); CHK_(ptr); } else goto handle_unusual; continue; @@ -15165,10 +15647,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* LiquidityProvision::_InternalSerialize( 5, this->_internal_market_id(), target); } - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_commitment_amount(), target); + // string commitment_amount = 6 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_commitment_amount().data(), static_cast(this->_internal_commitment_amount().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.LiquidityProvision.commitment_amount"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_commitment_amount(), target); } // string fee = 7 [json_name = "fee"]; @@ -15275,6 +15761,13 @@ size_t LiquidityProvision::ByteSizeLong() const { this->_internal_market_id()); } + // string commitment_amount = 6 [json_name = "commitmentAmount"]; + if (this->commitment_amount().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_commitment_amount()); + } + // string fee = 7 [json_name = "fee"]; if (this->fee().size() > 0) { total_size += 1 + @@ -15310,13 +15803,6 @@ size_t LiquidityProvision::ByteSizeLong() const { this->_internal_updated_at()); } - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - if (this->commitment_amount() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_commitment_amount()); - } - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; if (this->status() != 0) { total_size += 1 + @@ -15365,6 +15851,9 @@ void LiquidityProvision::MergeFrom(const LiquidityProvision& from) { if (from.market_id().size() > 0) { _internal_set_market_id(from._internal_market_id()); } + if (from.commitment_amount().size() > 0) { + _internal_set_commitment_amount(from._internal_commitment_amount()); + } if (from.fee().size() > 0) { _internal_set_fee(from._internal_fee()); } @@ -15380,9 +15869,6 @@ void LiquidityProvision::MergeFrom(const LiquidityProvision& from) { if (from.updated_at() != 0) { _internal_set_updated_at(from._internal_updated_at()); } - if (from.commitment_amount() != 0) { - _internal_set_commitment_amount(from._internal_commitment_amount()); - } if (from.status() != 0) { _internal_set_status(from._internal_status()); } @@ -15414,6 +15900,7 @@ void LiquidityProvision::InternalSwap(LiquidityProvision* other) { id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); party_id_.Swap(&other->party_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); market_id_.Swap(&other->market_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + commitment_amount_.Swap(&other->commitment_amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fee_.Swap(&other->fee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); reference_.Swap(&other->reference_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); @@ -16968,6 +17455,16 @@ Node::Node(const Node& from) pending_stake_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pending_stake(), GetArena()); } + score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_score().empty()) { + score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_score(), + GetArena()); + } + normalised_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_normalised_score().empty()) { + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_normalised_score(), + GetArena()); + } if (from._internal_has_epoch_data()) { epoch_data_ = new ::vega::EpochData(*from.epoch_data_); } else { @@ -16988,6 +17485,8 @@ void Node::SharedCtor() { staked_total_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); max_intended_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); pending_stake_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + normalised_score_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&epoch_data_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&status_) - @@ -17011,6 +17510,8 @@ void Node::SharedDtor() { staked_total_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); max_intended_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); pending_stake_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + score_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + normalised_score_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete epoch_data_; } @@ -17045,6 +17546,8 @@ void Node::Clear() { staked_total_.ClearToEmpty(); max_intended_stake_.ClearToEmpty(); pending_stake_.ClearToEmpty(); + score_.ClearToEmpty(); + normalised_score_.ClearToEmpty(); if (GetArena() == nullptr && epoch_data_ != nullptr) { delete epoch_data_; } @@ -17168,6 +17671,24 @@ const char* Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); } else goto handle_unusual; continue; + // string score = 13 [json_name = "score"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + auto str = _internal_mutable_score(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.score")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string normalised_score = 14 [json_name = "normalisedScore"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + auto str = _internal_mutable_normalised_score(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "vega.Node.normalised_score")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -17309,6 +17830,26 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Node::_InternalSerialize( InternalWriteMessage(12, this->_internal_delagations(i), target, stream); } + // string score = 13 [json_name = "score"]; + if (this->score().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_score().data(), static_cast(this->_internal_score().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.score"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_score(), target); + } + + // string normalised_score = 14 [json_name = "normalisedScore"]; + if (this->normalised_score().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_normalised_score().data(), static_cast(this->_internal_normalised_score().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "vega.Node.normalised_score"); + target = stream->WriteStringMaybeAliased( + 14, this->_internal_normalised_score(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -17395,6 +17936,20 @@ size_t Node::ByteSizeLong() const { this->_internal_pending_stake()); } + // string score = 13 [json_name = "score"]; + if (this->score().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_score()); + } + + // string normalised_score = 14 [json_name = "normalisedScore"]; + if (this->normalised_score().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_normalised_score()); + } + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { if (this->has_epoch_data()) { total_size += 1 + @@ -17467,6 +18022,12 @@ void Node::MergeFrom(const Node& from) { if (from.pending_stake().size() > 0) { _internal_set_pending_stake(from._internal_pending_stake()); } + if (from.score().size() > 0) { + _internal_set_score(from._internal_score()); + } + if (from.normalised_score().size() > 0) { + _internal_set_normalised_score(from._internal_normalised_score()); + } if (from.has_epoch_data()) { _internal_mutable_epoch_data()->::vega::EpochData::MergeFrom(from._internal_epoch_data()); } @@ -17506,6 +18067,8 @@ void Node::InternalSwap(Node* other) { staked_total_.Swap(&other->staked_total_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); max_intended_stake_.Swap(&other->max_intended_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); pending_stake_.Swap(&other->pending_stake_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + score_.Swap(&other->score_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + normalised_score_.Swap(&other->normalised_score_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Node, status_) + sizeof(Node::status_) diff --git a/grpc/clients/cpp/generated/vega.pb.h b/grpc/clients/cpp/generated/vega.pb.h index 581b7080..3775f32c 100644 --- a/grpc/clients/cpp/generated/vega.pb.h +++ b/grpc/clients/cpp/generated/vega.pb.h @@ -902,13 +902,20 @@ class Price PROTOBUF_FINAL : enum : int { kValueFieldNumber = 1, }; - // uint64 value = 1 [json_name = "value"]; + // string value = 1 [json_name = "value"]; void clear_value(); - ::PROTOBUF_NAMESPACE_ID::uint64 value() const; - void set_value(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& value() const; + void set_value(const std::string& value); + void set_value(std::string&& value); + void set_value(const char* value); + void set_value(const char* value, size_t size); + std::string* mutable_value(); + std::string* release_value(); + void set_allocated_value(std::string* value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_value() const; - void _internal_set_value(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_value() const; + void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); public: // @@protoc_insertion_point(class_scope:vega.Price) @@ -918,7 +925,7 @@ class Price PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -2022,10 +2029,10 @@ class Order PROTOBUF_FINAL : kIdFieldNumber = 1, kMarketIdFieldNumber = 2, kPartyIdFieldNumber = 3, + kPriceFieldNumber = 5, kReferenceFieldNumber = 13, kLiquidityProvisionIdFieldNumber = 19, kPeggedOrderFieldNumber = 18, - kPriceFieldNumber = 5, kSizeFieldNumber = 6, kSideFieldNumber = 4, kTimeInForceFieldNumber = 8, @@ -2087,6 +2094,22 @@ class Order PROTOBUF_FINAL : std::string* _internal_mutable_party_id(); public: + // string price = 5 [json_name = "price"]; + void clear_price(); + const std::string& price() const; + void set_price(const std::string& value); + void set_price(std::string&& value); + void set_price(const char* value); + void set_price(const char* value, size_t size); + std::string* mutable_price(); + std::string* release_price(); + void set_allocated_price(std::string* price); + private: + const std::string& _internal_price() const; + void _internal_set_price(const std::string& value); + std::string* _internal_mutable_price(); + public: + // string reference = 13 [json_name = "reference"]; void clear_reference(); const std::string& reference() const; @@ -2137,15 +2160,6 @@ class Order PROTOBUF_FINAL : ::vega::PeggedOrder* pegged_order); ::vega::PeggedOrder* unsafe_arena_release_pegged_order(); - // uint64 price = 5 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 size = 6 [json_name = "size"]; void clear_size(); ::PROTOBUF_NAMESPACE_ID::uint64 size() const; @@ -2264,10 +2278,10 @@ class Order PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr price_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr liquidity_provision_id_; ::vega::PeggedOrder* pegged_order_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; ::PROTOBUF_NAMESPACE_ID::uint64 size_; int side_; int time_in_force_; @@ -2749,13 +2763,20 @@ class AuctionIndicativeState PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: - // uint64 indicative_price = 2 [json_name = "indicativePrice"]; + // string indicative_price = 2 [json_name = "indicativePrice"]; void clear_indicative_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 indicative_price() const; - void set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& indicative_price() const; + void set_indicative_price(const std::string& value); + void set_indicative_price(std::string&& value); + void set_indicative_price(const char* value); + void set_indicative_price(const char* value, size_t size); + std::string* mutable_indicative_price(); + std::string* release_indicative_price(); + void set_allocated_indicative_price(std::string* indicative_price); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_indicative_price() const; - void _internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_indicative_price() const; + void _internal_set_indicative_price(const std::string& value); + std::string* _internal_mutable_indicative_price(); public: // uint64 indicative_volume = 3 [json_name = "indicativeVolume"]; @@ -2793,7 +2814,7 @@ class AuctionIndicativeState PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 indicative_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indicative_price_; ::PROTOBUF_NAMESPACE_ID::uint64 indicative_volume_; ::PROTOBUF_NAMESPACE_ID::int64 auction_start_; ::PROTOBUF_NAMESPACE_ID::int64 auction_end_; @@ -2950,13 +2971,13 @@ class Trade PROTOBUF_FINAL : enum : int { kIdFieldNumber = 1, kMarketIdFieldNumber = 2, + kPriceFieldNumber = 3, kBuyerFieldNumber = 5, kSellerFieldNumber = 6, kBuyOrderFieldNumber = 8, kSellOrderFieldNumber = 9, kBuyerFeeFieldNumber = 12, kSellerFeeFieldNumber = 13, - kPriceFieldNumber = 3, kSizeFieldNumber = 4, kAggressorFieldNumber = 7, kTypeFieldNumber = 11, @@ -2996,6 +3017,22 @@ class Trade PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: + // string price = 3 [json_name = "price"]; + void clear_price(); + const std::string& price() const; + void set_price(const std::string& value); + void set_price(std::string&& value); + void set_price(const char* value); + void set_price(const char* value, size_t size); + std::string* mutable_price(); + std::string* release_price(); + void set_allocated_price(std::string* price); + private: + const std::string& _internal_price() const; + void _internal_set_price(const std::string& value); + std::string* _internal_mutable_price(); + public: + // string buyer = 5 [json_name = "buyer"]; void clear_buyer(); const std::string& buyer() const; @@ -3096,15 +3133,6 @@ class Trade PROTOBUF_FINAL : ::vega::Fee* seller_fee); ::vega::Fee* unsafe_arena_release_seller_fee(); - // uint64 price = 3 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 size = 4 [json_name = "size"]; void clear_size(); ::PROTOBUF_NAMESPACE_ID::uint64 size() const; @@ -3168,13 +3196,13 @@ class Trade PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr price_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buyer_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr seller_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buy_order_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sell_order_; ::vega::Fee* buyer_fee_; ::vega::Fee* seller_fee_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; ::PROTOBUF_NAMESPACE_ID::uint64 size_; int aggressor_; int type_; @@ -3302,31 +3330,52 @@ class Fee PROTOBUF_FINAL : kInfrastructureFeeFieldNumber = 2, kLiquidityFeeFieldNumber = 3, }; - // uint64 maker_fee = 1 [json_name = "makerFee"]; + // string maker_fee = 1 [json_name = "makerFee"]; void clear_maker_fee(); - ::PROTOBUF_NAMESPACE_ID::uint64 maker_fee() const; - void set_maker_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& maker_fee() const; + void set_maker_fee(const std::string& value); + void set_maker_fee(std::string&& value); + void set_maker_fee(const char* value); + void set_maker_fee(const char* value, size_t size); + std::string* mutable_maker_fee(); + std::string* release_maker_fee(); + void set_allocated_maker_fee(std::string* maker_fee); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_maker_fee() const; - void _internal_set_maker_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_maker_fee() const; + void _internal_set_maker_fee(const std::string& value); + std::string* _internal_mutable_maker_fee(); public: - // uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + // string infrastructure_fee = 2 [json_name = "infrastructureFee"]; void clear_infrastructure_fee(); - ::PROTOBUF_NAMESPACE_ID::uint64 infrastructure_fee() const; - void set_infrastructure_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& infrastructure_fee() const; + void set_infrastructure_fee(const std::string& value); + void set_infrastructure_fee(std::string&& value); + void set_infrastructure_fee(const char* value); + void set_infrastructure_fee(const char* value, size_t size); + std::string* mutable_infrastructure_fee(); + std::string* release_infrastructure_fee(); + void set_allocated_infrastructure_fee(std::string* infrastructure_fee); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_infrastructure_fee() const; - void _internal_set_infrastructure_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_infrastructure_fee() const; + void _internal_set_infrastructure_fee(const std::string& value); + std::string* _internal_mutable_infrastructure_fee(); public: - // uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + // string liquidity_fee = 3 [json_name = "liquidityFee"]; void clear_liquidity_fee(); - ::PROTOBUF_NAMESPACE_ID::uint64 liquidity_fee() const; - void set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& liquidity_fee() const; + void set_liquidity_fee(const std::string& value); + void set_liquidity_fee(std::string&& value); + void set_liquidity_fee(const char* value); + void set_liquidity_fee(const char* value, size_t size); + std::string* mutable_liquidity_fee(); + std::string* release_liquidity_fee(); + void set_allocated_liquidity_fee(std::string* liquidity_fee); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_liquidity_fee() const; - void _internal_set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_liquidity_fee() const; + void _internal_set_liquidity_fee(const std::string& value); + std::string* _internal_mutable_liquidity_fee(); public: // @@protoc_insertion_point(class_scope:vega.Fee) @@ -3336,9 +3385,9 @@ class Fee PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 maker_fee_; - ::PROTOBUF_NAMESPACE_ID::uint64 infrastructure_fee_; - ::PROTOBUF_NAMESPACE_ID::uint64 liquidity_fee_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr maker_fee_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr infrastructure_fee_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr liquidity_fee_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -3602,11 +3651,11 @@ class Candle PROTOBUF_FINAL : enum : int { kDatetimeFieldNumber = 2, - kTimestampFieldNumber = 1, kHighFieldNumber = 3, kLowFieldNumber = 4, kOpenFieldNumber = 5, kCloseFieldNumber = 6, + kTimestampFieldNumber = 1, kVolumeFieldNumber = 7, kIntervalFieldNumber = 8, }; @@ -3626,49 +3675,77 @@ class Candle PROTOBUF_FINAL : std::string* _internal_mutable_datetime(); public: - // int64 timestamp = 1 [json_name = "timestamp"]; - void clear_timestamp(); - ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; - void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; - void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // uint64 high = 3 [json_name = "high"]; + // string high = 3 [json_name = "high"]; void clear_high(); - ::PROTOBUF_NAMESPACE_ID::uint64 high() const; - void set_high(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& high() const; + void set_high(const std::string& value); + void set_high(std::string&& value); + void set_high(const char* value); + void set_high(const char* value, size_t size); + std::string* mutable_high(); + std::string* release_high(); + void set_allocated_high(std::string* high); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_high() const; - void _internal_set_high(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_high() const; + void _internal_set_high(const std::string& value); + std::string* _internal_mutable_high(); public: - // uint64 low = 4 [json_name = "low"]; + // string low = 4 [json_name = "low"]; void clear_low(); - ::PROTOBUF_NAMESPACE_ID::uint64 low() const; - void set_low(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& low() const; + void set_low(const std::string& value); + void set_low(std::string&& value); + void set_low(const char* value); + void set_low(const char* value, size_t size); + std::string* mutable_low(); + std::string* release_low(); + void set_allocated_low(std::string* low); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_low() const; - void _internal_set_low(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_low() const; + void _internal_set_low(const std::string& value); + std::string* _internal_mutable_low(); public: - // uint64 open = 5 [json_name = "open"]; + // string open = 5 [json_name = "open"]; void clear_open(); - ::PROTOBUF_NAMESPACE_ID::uint64 open() const; - void set_open(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& open() const; + void set_open(const std::string& value); + void set_open(std::string&& value); + void set_open(const char* value); + void set_open(const char* value, size_t size); + std::string* mutable_open(); + std::string* release_open(); + void set_allocated_open(std::string* open); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_open() const; - void _internal_set_open(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_open() const; + void _internal_set_open(const std::string& value); + std::string* _internal_mutable_open(); public: - // uint64 close = 6 [json_name = "close"]; + // string close = 6 [json_name = "close"]; void clear_close(); - ::PROTOBUF_NAMESPACE_ID::uint64 close() const; - void set_close(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& close() const; + void set_close(const std::string& value); + void set_close(std::string&& value); + void set_close(const char* value); + void set_close(const char* value, size_t size); + std::string* mutable_close(); + std::string* release_close(); + void set_allocated_close(std::string* close); + private: + const std::string& _internal_close() const; + void _internal_set_close(const std::string& value); + std::string* _internal_mutable_close(); + public: + + // int64 timestamp = 1 [json_name = "timestamp"]; + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_close() const; - void _internal_set_close(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); public: // uint64 volume = 7 [json_name = "volume"]; @@ -3697,11 +3774,11 @@ class Candle PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr datetime_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr high_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr low_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr open_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr close_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; - ::PROTOBUF_NAMESPACE_ID::uint64 high_; - ::PROTOBUF_NAMESPACE_ID::uint64 low_; - ::PROTOBUF_NAMESPACE_ID::uint64 open_; - ::PROTOBUF_NAMESPACE_ID::uint64 close_; ::PROTOBUF_NAMESPACE_ID::uint64 volume_; int interval_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -3825,13 +3902,20 @@ class PriceLevel PROTOBUF_FINAL : kNumberOfOrdersFieldNumber = 2, kVolumeFieldNumber = 3, }; - // uint64 price = 1 [json_name = "price"]; + // string price = 1 [json_name = "price"]; void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& price() const; + void set_price(const std::string& value); + void set_price(std::string&& value); + void set_price(const char* value); + void set_price(const char* value, size_t size); + std::string* mutable_price(); + std::string* release_price(); + void set_allocated_price(std::string* price); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_price() const; + void _internal_set_price(const std::string& value); + std::string* _internal_mutable_price(); public: // uint64 number_of_orders = 2 [json_name = "numberOfOrders"]; @@ -3859,7 +3943,7 @@ class PriceLevel PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr price_; ::PROTOBUF_NAMESPACE_ID::uint64 number_of_orders_; ::PROTOBUF_NAMESPACE_ID::uint64 volume_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -4369,10 +4453,10 @@ class Position PROTOBUF_FINAL : enum : int { kMarketIdFieldNumber = 1, kPartyIdFieldNumber = 2, - kOpenVolumeFieldNumber = 3, kRealisedPnlFieldNumber = 4, kUnrealisedPnlFieldNumber = 5, kAverageEntryPriceFieldNumber = 6, + kOpenVolumeFieldNumber = 3, kUpdatedAtFieldNumber = 7, }; // string market_id = 1 [json_name = "marketId"]; @@ -4407,40 +4491,61 @@ class Position PROTOBUF_FINAL : std::string* _internal_mutable_party_id(); public: - // int64 open_volume = 3 [json_name = "openVolume"]; - void clear_open_volume(); - ::PROTOBUF_NAMESPACE_ID::int64 open_volume() const; - void set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_open_volume() const; - void _internal_set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value); - public: - - // int64 realised_pnl = 4 [json_name = "realisedPnl"]; + // string realised_pnl = 4 [json_name = "realisedPnl"]; void clear_realised_pnl(); - ::PROTOBUF_NAMESPACE_ID::int64 realised_pnl() const; - void set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& realised_pnl() const; + void set_realised_pnl(const std::string& value); + void set_realised_pnl(std::string&& value); + void set_realised_pnl(const char* value); + void set_realised_pnl(const char* value, size_t size); + std::string* mutable_realised_pnl(); + std::string* release_realised_pnl(); + void set_allocated_realised_pnl(std::string* realised_pnl); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_realised_pnl() const; - void _internal_set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_realised_pnl() const; + void _internal_set_realised_pnl(const std::string& value); + std::string* _internal_mutable_realised_pnl(); public: - // int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + // string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; void clear_unrealised_pnl(); - ::PROTOBUF_NAMESPACE_ID::int64 unrealised_pnl() const; - void set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& unrealised_pnl() const; + void set_unrealised_pnl(const std::string& value); + void set_unrealised_pnl(std::string&& value); + void set_unrealised_pnl(const char* value); + void set_unrealised_pnl(const char* value, size_t size); + std::string* mutable_unrealised_pnl(); + std::string* release_unrealised_pnl(); + void set_allocated_unrealised_pnl(std::string* unrealised_pnl); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_unrealised_pnl() const; - void _internal_set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value); + const std::string& _internal_unrealised_pnl() const; + void _internal_set_unrealised_pnl(const std::string& value); + std::string* _internal_mutable_unrealised_pnl(); public: - // uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + // string average_entry_price = 6 [json_name = "averageEntryPrice"]; void clear_average_entry_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 average_entry_price() const; - void set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& average_entry_price() const; + void set_average_entry_price(const std::string& value); + void set_average_entry_price(std::string&& value); + void set_average_entry_price(const char* value); + void set_average_entry_price(const char* value, size_t size); + std::string* mutable_average_entry_price(); + std::string* release_average_entry_price(); + void set_allocated_average_entry_price(std::string* average_entry_price); + private: + const std::string& _internal_average_entry_price() const; + void _internal_set_average_entry_price(const std::string& value); + std::string* _internal_mutable_average_entry_price(); + public: + + // int64 open_volume = 3 [json_name = "openVolume"]; + void clear_open_volume(); + ::PROTOBUF_NAMESPACE_ID::int64 open_volume() const; + void set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_average_entry_price() const; - void _internal_set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_open_volume() const; + void _internal_set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value); public: // int64 updated_at = 7 [json_name = "updatedAt"]; @@ -4461,10 +4566,10 @@ class Position PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr realised_pnl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unrealised_pnl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr average_entry_price_; ::PROTOBUF_NAMESPACE_ID::int64 open_volume_; - ::PROTOBUF_NAMESPACE_ID::int64 realised_pnl_; - ::PROTOBUF_NAMESPACE_ID::int64 unrealised_pnl_; - ::PROTOBUF_NAMESPACE_ID::uint64 average_entry_price_; ::PROTOBUF_NAMESPACE_ID::int64 updated_at_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -4583,9 +4688,25 @@ class PositionTrade PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kVolumeFieldNumber = 1, kPriceFieldNumber = 2, + kVolumeFieldNumber = 1, }; + // string price = 2 [json_name = "price"]; + void clear_price(); + const std::string& price() const; + void set_price(const std::string& value); + void set_price(std::string&& value); + void set_price(const char* value); + void set_price(const char* value, size_t size); + std::string* mutable_price(); + std::string* release_price(); + void set_allocated_price(std::string* price); + private: + const std::string& _internal_price() const; + void _internal_set_price(const std::string& value); + std::string* _internal_mutable_price(); + public: + // int64 volume = 1 [json_name = "volume"]; void clear_volume(); ::PROTOBUF_NAMESPACE_ID::int64 volume() const; @@ -4595,15 +4716,6 @@ class PositionTrade PROTOBUF_FINAL : void _internal_set_volume(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 price = 2 [json_name = "price"]; - void clear_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 price() const; - void set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_price() const; - void _internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.PositionTrade) private: class _Internal; @@ -4611,8 +4723,8 @@ class PositionTrade PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr price_; ::PROTOBUF_NAMESPACE_ID::int64 volume_; - ::PROTOBUF_NAMESPACE_ID::uint64 price_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -5048,11 +5160,11 @@ class Withdrawal PROTOBUF_FINAL : enum : int { kIdFieldNumber = 1, kPartyIdFieldNumber = 2, + kAmountFieldNumber = 3, kAssetFieldNumber = 4, kRefFieldNumber = 6, kTxHashFieldNumber = 8, kExtFieldNumber = 11, - kAmountFieldNumber = 3, kExpiryFieldNumber = 7, kCreatedTimestampFieldNumber = 9, kWithdrawnTimestampFieldNumber = 10, @@ -5090,6 +5202,22 @@ class Withdrawal PROTOBUF_FINAL : std::string* _internal_mutable_party_id(); public: + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + // string asset = 4 [json_name = "asset"]; void clear_asset(); const std::string& asset() const; @@ -5156,15 +5284,6 @@ class Withdrawal PROTOBUF_FINAL : ::vega::WithdrawExt* ext); ::vega::WithdrawExt* unsafe_arena_release_ext(); - // uint64 amount = 3 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // int64 expiry = 7 [json_name = "expiry"]; void clear_expiry(); ::PROTOBUF_NAMESPACE_ID::int64 expiry() const; @@ -5210,11 +5329,11 @@ class Withdrawal PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tx_hash_; ::vega::WithdrawExt* ext_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; ::PROTOBUF_NAMESPACE_ID::int64 expiry_; ::PROTOBUF_NAMESPACE_ID::int64 created_timestamp_; ::PROTOBUF_NAMESPACE_ID::int64 withdrawn_timestamp_; @@ -5642,9 +5761,9 @@ class Account PROTOBUF_FINAL : enum : int { kIdFieldNumber = 1, kOwnerFieldNumber = 2, + kBalanceFieldNumber = 3, kAssetFieldNumber = 4, kMarketIdFieldNumber = 5, - kBalanceFieldNumber = 3, kTypeFieldNumber = 6, }; // string id = 1 [json_name = "id"]; @@ -5679,6 +5798,22 @@ class Account PROTOBUF_FINAL : std::string* _internal_mutable_owner(); public: + // string balance = 3 [json_name = "balance"]; + void clear_balance(); + const std::string& balance() const; + void set_balance(const std::string& value); + void set_balance(std::string&& value); + void set_balance(const char* value); + void set_balance(const char* value, size_t size); + std::string* mutable_balance(); + std::string* release_balance(); + void set_allocated_balance(std::string* balance); + private: + const std::string& _internal_balance() const; + void _internal_set_balance(const std::string& value); + std::string* _internal_mutable_balance(); + public: + // string asset = 4 [json_name = "asset"]; void clear_asset(); const std::string& asset() const; @@ -5711,15 +5846,6 @@ class Account PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: - // uint64 balance = 3 [json_name = "balance"]; - void clear_balance(); - ::PROTOBUF_NAMESPACE_ID::uint64 balance() const; - void set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_balance() const; - void _internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // .vega.AccountType type = 6 [json_name = "type"]; void clear_type(); ::vega::AccountType type() const; @@ -5738,9 +5864,9 @@ class Account PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr balance_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; - ::PROTOBUF_NAMESPACE_ID::uint64 balance_; int type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -5859,9 +5985,25 @@ class FinancialAmount PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kAssetFieldNumber = 2, kAmountFieldNumber = 1, + kAssetFieldNumber = 2, }; + // string amount = 1 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + // string asset = 2 [json_name = "asset"]; void clear_asset(); const std::string& asset() const; @@ -5878,15 +6020,6 @@ class FinancialAmount PROTOBUF_FINAL : std::string* _internal_mutable_asset(); public: - // uint64 amount = 1 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.FinancialAmount) private: class _Internal; @@ -5894,8 +6027,8 @@ class FinancialAmount PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -6014,8 +6147,8 @@ class Transfer PROTOBUF_FINAL : enum : int { kOwnerFieldNumber = 1, - kAmountFieldNumber = 2, kMinAmountFieldNumber = 4, + kAmountFieldNumber = 2, kTypeFieldNumber = 3, }; // string owner = 1 [json_name = "owner"]; @@ -6034,6 +6167,22 @@ class Transfer PROTOBUF_FINAL : std::string* _internal_mutable_owner(); public: + // string min_amount = 4 [json_name = "minAmount"]; + void clear_min_amount(); + const std::string& min_amount() const; + void set_min_amount(const std::string& value); + void set_min_amount(std::string&& value); + void set_min_amount(const char* value); + void set_min_amount(const char* value, size_t size); + std::string* mutable_min_amount(); + std::string* release_min_amount(); + void set_allocated_min_amount(std::string* min_amount); + private: + const std::string& _internal_min_amount() const; + void _internal_set_min_amount(const std::string& value); + std::string* _internal_mutable_min_amount(); + public: + // .vega.FinancialAmount amount = 2 [json_name = "amount"]; bool has_amount() const; private: @@ -6052,15 +6201,6 @@ class Transfer PROTOBUF_FINAL : ::vega::FinancialAmount* amount); ::vega::FinancialAmount* unsafe_arena_release_amount(); - // uint64 min_amount = 4 [json_name = "minAmount"]; - void clear_min_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 min_amount() const; - void set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_min_amount() const; - void _internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // .vega.TransferType type = 3 [json_name = "type"]; void clear_type(); ::vega::TransferType type() const; @@ -6078,8 +6218,8 @@ class Transfer PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr min_amount_; ::vega::FinancialAmount* amount_; - ::PROTOBUF_NAMESPACE_ID::uint64 min_amount_; int type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -6200,10 +6340,10 @@ class TransferRequest PROTOBUF_FINAL : enum : int { kFromAccountFieldNumber = 1, kToAccountFieldNumber = 2, - kAssetFieldNumber = 5, - kReferenceFieldNumber = 6, kAmountFieldNumber = 3, kMinAmountFieldNumber = 4, + kAssetFieldNumber = 5, + kReferenceFieldNumber = 6, }; // repeated .vega.Account from_account = 1 [json_name = "fromAccount"]; int from_account_size() const; @@ -6241,6 +6381,38 @@ class TransferRequest PROTOBUF_FINAL : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account >& to_account() const; + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + + // string min_amount = 4 [json_name = "minAmount"]; + void clear_min_amount(); + const std::string& min_amount() const; + void set_min_amount(const std::string& value); + void set_min_amount(std::string&& value); + void set_min_amount(const char* value); + void set_min_amount(const char* value, size_t size); + std::string* mutable_min_amount(); + std::string* release_min_amount(); + void set_allocated_min_amount(std::string* min_amount); + private: + const std::string& _internal_min_amount() const; + void _internal_set_min_amount(const std::string& value); + std::string* _internal_mutable_min_amount(); + public: + // string asset = 5 [json_name = "asset"]; void clear_asset(); const std::string& asset() const; @@ -6273,24 +6445,6 @@ class TransferRequest PROTOBUF_FINAL : std::string* _internal_mutable_reference(); public: - // uint64 amount = 3 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 min_amount = 4 [json_name = "minAmount"]; - void clear_min_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 min_amount() const; - void set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_min_amount() const; - void _internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.TransferRequest) private: class _Internal; @@ -6300,10 +6454,10 @@ class TransferRequest PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account > from_account_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::Account > to_account_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr min_amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; - ::PROTOBUF_NAMESPACE_ID::uint64 min_amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -6423,9 +6577,9 @@ class LedgerEntry PROTOBUF_FINAL : enum : int { kFromAccountFieldNumber = 1, kToAccountFieldNumber = 2, + kAmountFieldNumber = 3, kReferenceFieldNumber = 4, kTypeFieldNumber = 5, - kAmountFieldNumber = 3, kTimestampFieldNumber = 6, }; // string from_account = 1 [json_name = "fromAccount"]; @@ -6460,6 +6614,22 @@ class LedgerEntry PROTOBUF_FINAL : std::string* _internal_mutable_to_account(); public: + // string amount = 3 [json_name = "amount"]; + void clear_amount(); + const std::string& amount() const; + void set_amount(const std::string& value); + void set_amount(std::string&& value); + void set_amount(const char* value); + void set_amount(const char* value, size_t size); + std::string* mutable_amount(); + std::string* release_amount(); + void set_allocated_amount(std::string* amount); + private: + const std::string& _internal_amount() const; + void _internal_set_amount(const std::string& value); + std::string* _internal_mutable_amount(); + public: + // string reference = 4 [json_name = "reference"]; void clear_reference(); const std::string& reference() const; @@ -6492,15 +6662,6 @@ class LedgerEntry PROTOBUF_FINAL : std::string* _internal_mutable_type(); public: - // uint64 amount = 3 [json_name = "amount"]; - void clear_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; - void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; - void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // int64 timestamp = 6 [json_name = "timestamp"]; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; @@ -6519,9 +6680,9 @@ class LedgerEntry PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_account_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_account_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; - ::PROTOBUF_NAMESPACE_ID::uint64 amount_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -6640,9 +6801,25 @@ class TransferBalance PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kAccountFieldNumber = 1, kBalanceFieldNumber = 2, + kAccountFieldNumber = 1, }; + // string balance = 2 [json_name = "balance"]; + void clear_balance(); + const std::string& balance() const; + void set_balance(const std::string& value); + void set_balance(std::string&& value); + void set_balance(const char* value); + void set_balance(const char* value, size_t size); + std::string* mutable_balance(); + std::string* release_balance(); + void set_allocated_balance(std::string* balance); + private: + const std::string& _internal_balance() const; + void _internal_set_balance(const std::string& value); + std::string* _internal_mutable_balance(); + public: + // .vega.Account account = 1 [json_name = "account"]; bool has_account() const; private: @@ -6661,15 +6838,6 @@ class TransferBalance PROTOBUF_FINAL : ::vega::Account* account); ::vega::Account* unsafe_arena_release_account(); - // uint64 balance = 2 [json_name = "balance"]; - void clear_balance(); - ::PROTOBUF_NAMESPACE_ID::uint64 balance() const; - void set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_balance() const; - void _internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // @@protoc_insertion_point(class_scope:vega.TransferBalance) private: class _Internal; @@ -6677,8 +6845,8 @@ class TransferBalance PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr balance_; ::vega::Account* account_; - ::PROTOBUF_NAMESPACE_ID::uint64 balance_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; }; @@ -6961,15 +7129,79 @@ class MarginLevels PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPartyIdFieldNumber = 5, - kMarketIdFieldNumber = 6, - kAssetFieldNumber = 7, kMaintenanceMarginFieldNumber = 1, kSearchLevelFieldNumber = 2, kInitialMarginFieldNumber = 3, kCollateralReleaseLevelFieldNumber = 4, + kPartyIdFieldNumber = 5, + kMarketIdFieldNumber = 6, + kAssetFieldNumber = 7, kTimestampFieldNumber = 8, }; + // string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + void clear_maintenance_margin(); + const std::string& maintenance_margin() const; + void set_maintenance_margin(const std::string& value); + void set_maintenance_margin(std::string&& value); + void set_maintenance_margin(const char* value); + void set_maintenance_margin(const char* value, size_t size); + std::string* mutable_maintenance_margin(); + std::string* release_maintenance_margin(); + void set_allocated_maintenance_margin(std::string* maintenance_margin); + private: + const std::string& _internal_maintenance_margin() const; + void _internal_set_maintenance_margin(const std::string& value); + std::string* _internal_mutable_maintenance_margin(); + public: + + // string search_level = 2 [json_name = "searchLevel"]; + void clear_search_level(); + const std::string& search_level() const; + void set_search_level(const std::string& value); + void set_search_level(std::string&& value); + void set_search_level(const char* value); + void set_search_level(const char* value, size_t size); + std::string* mutable_search_level(); + std::string* release_search_level(); + void set_allocated_search_level(std::string* search_level); + private: + const std::string& _internal_search_level() const; + void _internal_set_search_level(const std::string& value); + std::string* _internal_mutable_search_level(); + public: + + // string initial_margin = 3 [json_name = "initialMargin"]; + void clear_initial_margin(); + const std::string& initial_margin() const; + void set_initial_margin(const std::string& value); + void set_initial_margin(std::string&& value); + void set_initial_margin(const char* value); + void set_initial_margin(const char* value, size_t size); + std::string* mutable_initial_margin(); + std::string* release_initial_margin(); + void set_allocated_initial_margin(std::string* initial_margin); + private: + const std::string& _internal_initial_margin() const; + void _internal_set_initial_margin(const std::string& value); + std::string* _internal_mutable_initial_margin(); + public: + + // string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + void clear_collateral_release_level(); + const std::string& collateral_release_level() const; + void set_collateral_release_level(const std::string& value); + void set_collateral_release_level(std::string&& value); + void set_collateral_release_level(const char* value); + void set_collateral_release_level(const char* value, size_t size); + std::string* mutable_collateral_release_level(); + std::string* release_collateral_release_level(); + void set_allocated_collateral_release_level(std::string* collateral_release_level); + private: + const std::string& _internal_collateral_release_level() const; + void _internal_set_collateral_release_level(const std::string& value); + std::string* _internal_mutable_collateral_release_level(); + public: + // string party_id = 5 [json_name = "partyId"]; void clear_party_id(); const std::string& party_id() const; @@ -7018,42 +7250,6 @@ class MarginLevels PROTOBUF_FINAL : std::string* _internal_mutable_asset(); public: - // uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; - void clear_maintenance_margin(); - ::PROTOBUF_NAMESPACE_ID::uint64 maintenance_margin() const; - void set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_maintenance_margin() const; - void _internal_set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 search_level = 2 [json_name = "searchLevel"]; - void clear_search_level(); - ::PROTOBUF_NAMESPACE_ID::uint64 search_level() const; - void set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_search_level() const; - void _internal_set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 initial_margin = 3 [json_name = "initialMargin"]; - void clear_initial_margin(); - ::PROTOBUF_NAMESPACE_ID::uint64 initial_margin() const; - void set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_initial_margin() const; - void _internal_set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; - void clear_collateral_release_level(); - ::PROTOBUF_NAMESPACE_ID::uint64 collateral_release_level() const; - void set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_collateral_release_level() const; - void _internal_set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // int64 timestamp = 8 [json_name = "timestamp"]; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; @@ -7070,13 +7266,13 @@ class MarginLevels PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr maintenance_margin_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr search_level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr initial_margin_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collateral_release_level_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr asset_; - ::PROTOBUF_NAMESPACE_ID::uint64 maintenance_margin_; - ::PROTOBUF_NAMESPACE_ID::uint64 search_level_; - ::PROTOBUF_NAMESPACE_ID::uint64 initial_margin_; - ::PROTOBUF_NAMESPACE_ID::uint64 collateral_release_level_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -7197,26 +7393,26 @@ class MarketData PROTOBUF_FINAL : enum : int { kPriceMonitoringBoundsFieldNumber = 24, kLiquidityProviderFeeShareFieldNumber = 26, - kMarketFieldNumber = 12, - kTargetStakeFieldNumber = 22, - kSuppliedStakeFieldNumber = 23, - kMarketValueProxyFieldNumber = 25, kMarkPriceFieldNumber = 1, kBestBidPriceFieldNumber = 2, - kBestBidVolumeFieldNumber = 3, kBestOfferPriceFieldNumber = 4, - kBestOfferVolumeFieldNumber = 5, kBestStaticBidPriceFieldNumber = 6, - kBestStaticBidVolumeFieldNumber = 7, kBestStaticOfferPriceFieldNumber = 8, - kBestStaticOfferVolumeFieldNumber = 9, kMidPriceFieldNumber = 10, kStaticMidPriceFieldNumber = 11, + kMarketFieldNumber = 12, + kIndicativePriceFieldNumber = 17, + kTargetStakeFieldNumber = 22, + kSuppliedStakeFieldNumber = 23, + kMarketValueProxyFieldNumber = 25, + kBestBidVolumeFieldNumber = 3, + kBestOfferVolumeFieldNumber = 5, + kBestStaticBidVolumeFieldNumber = 7, + kBestStaticOfferVolumeFieldNumber = 9, kTimestampFieldNumber = 13, kOpenInterestFieldNumber = 14, kAuctionEndFieldNumber = 15, kAuctionStartFieldNumber = 16, - kIndicativePriceFieldNumber = 17, kIndicativeVolumeFieldNumber = 18, kMarketTradingModeFieldNumber = 19, kTriggerFieldNumber = 20, @@ -7258,6 +7454,118 @@ class MarketData PROTOBUF_FINAL : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare >& liquidity_provider_fee_share() const; + // string mark_price = 1 [json_name = "markPrice"]; + void clear_mark_price(); + const std::string& mark_price() const; + void set_mark_price(const std::string& value); + void set_mark_price(std::string&& value); + void set_mark_price(const char* value); + void set_mark_price(const char* value, size_t size); + std::string* mutable_mark_price(); + std::string* release_mark_price(); + void set_allocated_mark_price(std::string* mark_price); + private: + const std::string& _internal_mark_price() const; + void _internal_set_mark_price(const std::string& value); + std::string* _internal_mutable_mark_price(); + public: + + // string best_bid_price = 2 [json_name = "bestBidPrice"]; + void clear_best_bid_price(); + const std::string& best_bid_price() const; + void set_best_bid_price(const std::string& value); + void set_best_bid_price(std::string&& value); + void set_best_bid_price(const char* value); + void set_best_bid_price(const char* value, size_t size); + std::string* mutable_best_bid_price(); + std::string* release_best_bid_price(); + void set_allocated_best_bid_price(std::string* best_bid_price); + private: + const std::string& _internal_best_bid_price() const; + void _internal_set_best_bid_price(const std::string& value); + std::string* _internal_mutable_best_bid_price(); + public: + + // string best_offer_price = 4 [json_name = "bestOfferPrice"]; + void clear_best_offer_price(); + const std::string& best_offer_price() const; + void set_best_offer_price(const std::string& value); + void set_best_offer_price(std::string&& value); + void set_best_offer_price(const char* value); + void set_best_offer_price(const char* value, size_t size); + std::string* mutable_best_offer_price(); + std::string* release_best_offer_price(); + void set_allocated_best_offer_price(std::string* best_offer_price); + private: + const std::string& _internal_best_offer_price() const; + void _internal_set_best_offer_price(const std::string& value); + std::string* _internal_mutable_best_offer_price(); + public: + + // string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + void clear_best_static_bid_price(); + const std::string& best_static_bid_price() const; + void set_best_static_bid_price(const std::string& value); + void set_best_static_bid_price(std::string&& value); + void set_best_static_bid_price(const char* value); + void set_best_static_bid_price(const char* value, size_t size); + std::string* mutable_best_static_bid_price(); + std::string* release_best_static_bid_price(); + void set_allocated_best_static_bid_price(std::string* best_static_bid_price); + private: + const std::string& _internal_best_static_bid_price() const; + void _internal_set_best_static_bid_price(const std::string& value); + std::string* _internal_mutable_best_static_bid_price(); + public: + + // string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + void clear_best_static_offer_price(); + const std::string& best_static_offer_price() const; + void set_best_static_offer_price(const std::string& value); + void set_best_static_offer_price(std::string&& value); + void set_best_static_offer_price(const char* value); + void set_best_static_offer_price(const char* value, size_t size); + std::string* mutable_best_static_offer_price(); + std::string* release_best_static_offer_price(); + void set_allocated_best_static_offer_price(std::string* best_static_offer_price); + private: + const std::string& _internal_best_static_offer_price() const; + void _internal_set_best_static_offer_price(const std::string& value); + std::string* _internal_mutable_best_static_offer_price(); + public: + + // string mid_price = 10 [json_name = "midPrice"]; + void clear_mid_price(); + const std::string& mid_price() const; + void set_mid_price(const std::string& value); + void set_mid_price(std::string&& value); + void set_mid_price(const char* value); + void set_mid_price(const char* value, size_t size); + std::string* mutable_mid_price(); + std::string* release_mid_price(); + void set_allocated_mid_price(std::string* mid_price); + private: + const std::string& _internal_mid_price() const; + void _internal_set_mid_price(const std::string& value); + std::string* _internal_mutable_mid_price(); + public: + + // string static_mid_price = 11 [json_name = "staticMidPrice"]; + void clear_static_mid_price(); + const std::string& static_mid_price() const; + void set_static_mid_price(const std::string& value); + void set_static_mid_price(std::string&& value); + void set_static_mid_price(const char* value); + void set_static_mid_price(const char* value, size_t size); + std::string* mutable_static_mid_price(); + std::string* release_static_mid_price(); + void set_allocated_static_mid_price(std::string* static_mid_price); + private: + const std::string& _internal_static_mid_price() const; + void _internal_set_static_mid_price(const std::string& value); + std::string* _internal_mutable_static_mid_price(); + public: + // string market = 12 [json_name = "market"]; void clear_market(); const std::string& market() const; @@ -7274,6 +7582,22 @@ class MarketData PROTOBUF_FINAL : std::string* _internal_mutable_market(); public: + // string indicative_price = 17 [json_name = "indicativePrice"]; + void clear_indicative_price(); + const std::string& indicative_price() const; + void set_indicative_price(const std::string& value); + void set_indicative_price(std::string&& value); + void set_indicative_price(const char* value); + void set_indicative_price(const char* value, size_t size); + std::string* mutable_indicative_price(); + std::string* release_indicative_price(); + void set_allocated_indicative_price(std::string* indicative_price); + private: + const std::string& _internal_indicative_price() const; + void _internal_set_indicative_price(const std::string& value); + std::string* _internal_mutable_indicative_price(); + public: + // string target_stake = 22 [json_name = "targetStake"]; void clear_target_stake(); const std::string& target_stake() const; @@ -7322,24 +7646,6 @@ class MarketData PROTOBUF_FINAL : std::string* _internal_mutable_market_value_proxy(); public: - // uint64 mark_price = 1 [json_name = "markPrice"]; - void clear_mark_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 mark_price() const; - void set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_mark_price() const; - void _internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; - void clear_best_bid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 best_bid_price() const; - void set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_best_bid_price() const; - void _internal_set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; void clear_best_bid_volume(); ::PROTOBUF_NAMESPACE_ID::uint64 best_bid_volume() const; @@ -7349,15 +7655,6 @@ class MarketData PROTOBUF_FINAL : void _internal_set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; - void clear_best_offer_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 best_offer_price() const; - void set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_best_offer_price() const; - void _internal_set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; void clear_best_offer_volume(); ::PROTOBUF_NAMESPACE_ID::uint64 best_offer_volume() const; @@ -7367,15 +7664,6 @@ class MarketData PROTOBUF_FINAL : void _internal_set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; - void clear_best_static_bid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 best_static_bid_price() const; - void set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_best_static_bid_price() const; - void _internal_set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; void clear_best_static_bid_volume(); ::PROTOBUF_NAMESPACE_ID::uint64 best_static_bid_volume() const; @@ -7385,15 +7673,6 @@ class MarketData PROTOBUF_FINAL : void _internal_set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; - void clear_best_static_offer_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 best_static_offer_price() const; - void set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_best_static_offer_price() const; - void _internal_set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; void clear_best_static_offer_volume(); ::PROTOBUF_NAMESPACE_ID::uint64 best_static_offer_volume() const; @@ -7403,24 +7682,6 @@ class MarketData PROTOBUF_FINAL : void _internal_set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 mid_price = 10 [json_name = "midPrice"]; - void clear_mid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 mid_price() const; - void set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_mid_price() const; - void _internal_set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; - void clear_static_mid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 static_mid_price() const; - void set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_static_mid_price() const; - void _internal_set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // int64 timestamp = 13 [json_name = "timestamp"]; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; @@ -7457,15 +7718,6 @@ class MarketData PROTOBUF_FINAL : void _internal_set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 indicative_price = 17 [json_name = "indicativePrice"]; - void clear_indicative_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 indicative_price() const; - void set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_indicative_price() const; - void _internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; void clear_indicative_volume(); ::PROTOBUF_NAMESPACE_ID::uint64 indicative_volume() const; @@ -7511,26 +7763,26 @@ class MarketData PROTOBUF_FINAL : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::PriceMonitoringBounds > price_monitoring_bounds_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::vega::LiquidityProviderFeeShare > liquidity_provider_fee_share_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mark_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr best_bid_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr best_offer_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr best_static_bid_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr best_static_offer_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mid_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr static_mid_price_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indicative_price_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr target_stake_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr supplied_stake_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_value_proxy_; - ::PROTOBUF_NAMESPACE_ID::uint64 mark_price_; - ::PROTOBUF_NAMESPACE_ID::uint64 best_bid_price_; ::PROTOBUF_NAMESPACE_ID::uint64 best_bid_volume_; - ::PROTOBUF_NAMESPACE_ID::uint64 best_offer_price_; ::PROTOBUF_NAMESPACE_ID::uint64 best_offer_volume_; - ::PROTOBUF_NAMESPACE_ID::uint64 best_static_bid_price_; ::PROTOBUF_NAMESPACE_ID::uint64 best_static_bid_volume_; - ::PROTOBUF_NAMESPACE_ID::uint64 best_static_offer_price_; ::PROTOBUF_NAMESPACE_ID::uint64 best_static_offer_volume_; - ::PROTOBUF_NAMESPACE_ID::uint64 mid_price_; - ::PROTOBUF_NAMESPACE_ID::uint64 static_mid_price_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; ::PROTOBUF_NAMESPACE_ID::uint64 open_interest_; ::PROTOBUF_NAMESPACE_ID::int64 auction_end_; ::PROTOBUF_NAMESPACE_ID::int64 auction_start_; - ::PROTOBUF_NAMESPACE_ID::uint64 indicative_price_; ::PROTOBUF_NAMESPACE_ID::uint64 indicative_volume_; int market_trading_mode_; int trigger_; @@ -7831,11 +8083,43 @@ class PriceMonitoringBounds PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTriggerFieldNumber = 3, kMinValidPriceFieldNumber = 1, kMaxValidPriceFieldNumber = 2, + kTriggerFieldNumber = 3, kReferencePriceFieldNumber = 4, }; + // string min_valid_price = 1 [json_name = "minValidPrice"]; + void clear_min_valid_price(); + const std::string& min_valid_price() const; + void set_min_valid_price(const std::string& value); + void set_min_valid_price(std::string&& value); + void set_min_valid_price(const char* value); + void set_min_valid_price(const char* value, size_t size); + std::string* mutable_min_valid_price(); + std::string* release_min_valid_price(); + void set_allocated_min_valid_price(std::string* min_valid_price); + private: + const std::string& _internal_min_valid_price() const; + void _internal_set_min_valid_price(const std::string& value); + std::string* _internal_mutable_min_valid_price(); + public: + + // string max_valid_price = 2 [json_name = "maxValidPrice"]; + void clear_max_valid_price(); + const std::string& max_valid_price() const; + void set_max_valid_price(const std::string& value); + void set_max_valid_price(std::string&& value); + void set_max_valid_price(const char* value); + void set_max_valid_price(const char* value, size_t size); + std::string* mutable_max_valid_price(); + std::string* release_max_valid_price(); + void set_allocated_max_valid_price(std::string* max_valid_price); + private: + const std::string& _internal_max_valid_price() const; + void _internal_set_max_valid_price(const std::string& value); + std::string* _internal_mutable_max_valid_price(); + public: + // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; bool has_trigger() const; private: @@ -7854,24 +8138,6 @@ class PriceMonitoringBounds PROTOBUF_FINAL : ::vega::PriceMonitoringTrigger* trigger); ::vega::PriceMonitoringTrigger* unsafe_arena_release_trigger(); - // uint64 min_valid_price = 1 [json_name = "minValidPrice"]; - void clear_min_valid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 min_valid_price() const; - void set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_min_valid_price() const; - void _internal_set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; - void clear_max_valid_price(); - ::PROTOBUF_NAMESPACE_ID::uint64 max_valid_price() const; - void set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_max_valid_price() const; - void _internal_set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // double reference_price = 4 [json_name = "referencePrice"]; void clear_reference_price(); double reference_price() const; @@ -7888,9 +8154,9 @@ class PriceMonitoringBounds PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr min_valid_price_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr max_valid_price_; ::vega::PriceMonitoringTrigger* trigger_; - ::PROTOBUF_NAMESPACE_ID::uint64 min_valid_price_; - ::PROTOBUF_NAMESPACE_ID::uint64 max_valid_price_; double reference_price_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -8708,12 +8974,12 @@ class LiquidityProvision PROTOBUF_FINAL : kIdFieldNumber = 1, kPartyIdFieldNumber = 2, kMarketIdFieldNumber = 5, + kCommitmentAmountFieldNumber = 6, kFeeFieldNumber = 7, kVersionFieldNumber = 10, kReferenceFieldNumber = 12, kCreatedAtFieldNumber = 3, kUpdatedAtFieldNumber = 4, - kCommitmentAmountFieldNumber = 6, kStatusFieldNumber = 11, }; // repeated .vega.LiquidityOrderReference sells = 8 [json_name = "sells"]; @@ -8800,6 +9066,22 @@ class LiquidityProvision PROTOBUF_FINAL : std::string* _internal_mutable_market_id(); public: + // string commitment_amount = 6 [json_name = "commitmentAmount"]; + void clear_commitment_amount(); + const std::string& commitment_amount() const; + void set_commitment_amount(const std::string& value); + void set_commitment_amount(std::string&& value); + void set_commitment_amount(const char* value); + void set_commitment_amount(const char* value, size_t size); + std::string* mutable_commitment_amount(); + std::string* release_commitment_amount(); + void set_allocated_commitment_amount(std::string* commitment_amount); + private: + const std::string& _internal_commitment_amount() const; + void _internal_set_commitment_amount(const std::string& value); + std::string* _internal_mutable_commitment_amount(); + public: + // string fee = 7 [json_name = "fee"]; void clear_fee(); const std::string& fee() const; @@ -8866,15 +9148,6 @@ class LiquidityProvision PROTOBUF_FINAL : void _internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value); public: - // uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; - void clear_commitment_amount(); - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount() const; - void set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_commitment_amount() const; - void _internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - // .vega.LiquidityProvision.Status status = 11 [json_name = "status"]; void clear_status(); ::vega::LiquidityProvision_Status status() const; @@ -8896,12 +9169,12 @@ class LiquidityProvision PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr party_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr market_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr commitment_amount_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fee_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_; ::PROTOBUF_NAMESPACE_ID::int64 created_at_; ::PROTOBUF_NAMESPACE_ID::int64 updated_at_; - ::PROTOBUF_NAMESPACE_ID::uint64 commitment_amount_; int status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -9947,6 +10220,8 @@ class Node PROTOBUF_FINAL : kStakedTotalFieldNumber = 7, kMaxIntendedStakeFieldNumber = 8, kPendingStakeFieldNumber = 9, + kScoreFieldNumber = 13, + kNormalisedScoreFieldNumber = 14, kEpochDataFieldNumber = 10, kStatusFieldNumber = 11, }; @@ -10112,6 +10387,38 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_pending_stake(); public: + // string score = 13 [json_name = "score"]; + void clear_score(); + const std::string& score() const; + void set_score(const std::string& value); + void set_score(std::string&& value); + void set_score(const char* value); + void set_score(const char* value, size_t size); + std::string* mutable_score(); + std::string* release_score(); + void set_allocated_score(std::string* score); + private: + const std::string& _internal_score() const; + void _internal_set_score(const std::string& value); + std::string* _internal_mutable_score(); + public: + + // string normalised_score = 14 [json_name = "normalisedScore"]; + void clear_normalised_score(); + const std::string& normalised_score() const; + void set_normalised_score(const std::string& value); + void set_normalised_score(std::string&& value); + void set_normalised_score(const char* value); + void set_normalised_score(const char* value, size_t size); + std::string* mutable_normalised_score(); + std::string* release_normalised_score(); + void set_allocated_normalised_score(std::string* normalised_score); + private: + const std::string& _internal_normalised_score() const; + void _internal_set_normalised_score(const std::string& value); + std::string* _internal_mutable_normalised_score(); + public: + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { bool has_epoch_data() const; private: @@ -10156,6 +10463,8 @@ class Node PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr staked_total_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr max_intended_stake_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pending_stake_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr score_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr normalised_score_; ::vega::EpochData* epoch_data_; int status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -10956,25 +11265,66 @@ class RewardPerAssetDetail PROTOBUF_FINAL : #endif // __GNUC__ // Price -// uint64 value = 1 [json_name = "value"]; +// string value = 1 [json_name = "value"]; inline void Price::clear_value() { - value_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Price::_internal_value() const { - return value_; + value_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Price::value() const { +inline const std::string& Price::value() const { // @@protoc_insertion_point(field_get:vega.Price.value) return _internal_value(); } -inline void Price::_internal_set_value(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - value_ = value; -} -inline void Price::set_value(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Price::set_value(const std::string& value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:vega.Price.value) } +inline std::string* Price::mutable_value() { + // @@protoc_insertion_point(field_mutable:vega.Price.value) + return _internal_mutable_value(); +} +inline const std::string& Price::_internal_value() const { + return value_.Get(); +} +inline void Price::_internal_set_value(const std::string& value) { + + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Price::set_value(std::string&& value) { + + value_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Price.value) +} +inline void Price::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Price.value) +} +inline void Price::set_value(const char* value, + size_t size) { + + value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Price.value) +} +inline std::string* Price::_internal_mutable_value() { + + return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Price::release_value() { + // @@protoc_insertion_point(field_release:vega.Price.value) + return value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Price::set_allocated_value(std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Price.value) +} // ------------------------------------------------------------------- @@ -11566,25 +11916,66 @@ inline void Order::set_side(::vega::Side value) { // @@protoc_insertion_point(field_set:vega.Order.side) } -// uint64 price = 5 [json_name = "price"]; +// string price = 5 [json_name = "price"]; inline void Order::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); + price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Order::_internal_price() const { - return price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Order::price() const { +inline const std::string& Order::price() const { // @@protoc_insertion_point(field_get:vega.Order.price) return _internal_price(); } -inline void Order::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; -} -inline void Order::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Order::set_price(const std::string& value) { _internal_set_price(value); // @@protoc_insertion_point(field_set:vega.Order.price) } +inline std::string* Order::mutable_price() { + // @@protoc_insertion_point(field_mutable:vega.Order.price) + return _internal_mutable_price(); +} +inline const std::string& Order::_internal_price() const { + return price_.Get(); +} +inline void Order::_internal_set_price(const std::string& value) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Order::set_price(std::string&& value) { + + price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Order.price) +} +inline void Order::set_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Order.price) +} +inline void Order::set_price(const char* value, + size_t size) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Order.price) +} +inline std::string* Order::_internal_mutable_price() { + + return price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Order::release_price() { + // @@protoc_insertion_point(field_release:vega.Order.price) + return price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Order::set_allocated_price(std::string* price) { + if (price != nullptr) { + + } else { + + } + price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Order.price) +} // uint64 size = 6 [json_name = "size"]; inline void Order::clear_size() { @@ -12328,25 +12719,66 @@ inline void AuctionIndicativeState::set_allocated_market_id(std::string* market_ // @@protoc_insertion_point(field_set_allocated:vega.AuctionIndicativeState.market_id) } -// uint64 indicative_price = 2 [json_name = "indicativePrice"]; +// string indicative_price = 2 [json_name = "indicativePrice"]; inline void AuctionIndicativeState::clear_indicative_price() { - indicative_price_ = PROTOBUF_ULONGLONG(0); + indicative_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 AuctionIndicativeState::_internal_indicative_price() const { - return indicative_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 AuctionIndicativeState::indicative_price() const { +inline const std::string& AuctionIndicativeState::indicative_price() const { // @@protoc_insertion_point(field_get:vega.AuctionIndicativeState.indicative_price) return _internal_indicative_price(); } -inline void AuctionIndicativeState::_internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - indicative_price_ = value; -} -inline void AuctionIndicativeState::set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void AuctionIndicativeState::set_indicative_price(const std::string& value) { _internal_set_indicative_price(value); // @@protoc_insertion_point(field_set:vega.AuctionIndicativeState.indicative_price) } +inline std::string* AuctionIndicativeState::mutable_indicative_price() { + // @@protoc_insertion_point(field_mutable:vega.AuctionIndicativeState.indicative_price) + return _internal_mutable_indicative_price(); +} +inline const std::string& AuctionIndicativeState::_internal_indicative_price() const { + return indicative_price_.Get(); +} +inline void AuctionIndicativeState::_internal_set_indicative_price(const std::string& value) { + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AuctionIndicativeState::set_indicative_price(std::string&& value) { + + indicative_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.AuctionIndicativeState.indicative_price) +} +inline void AuctionIndicativeState::set_indicative_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.AuctionIndicativeState.indicative_price) +} +inline void AuctionIndicativeState::set_indicative_price(const char* value, + size_t size) { + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.AuctionIndicativeState.indicative_price) +} +inline std::string* AuctionIndicativeState::_internal_mutable_indicative_price() { + + return indicative_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AuctionIndicativeState::release_indicative_price() { + // @@protoc_insertion_point(field_release:vega.AuctionIndicativeState.indicative_price) + return indicative_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AuctionIndicativeState::set_allocated_indicative_price(std::string* indicative_price) { + if (indicative_price != nullptr) { + + } else { + + } + indicative_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), indicative_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.AuctionIndicativeState.indicative_price) +} // uint64 indicative_volume = 3 [json_name = "indicativeVolume"]; inline void AuctionIndicativeState::clear_indicative_volume() { @@ -12534,25 +12966,66 @@ inline void Trade::set_allocated_market_id(std::string* market_id) { // @@protoc_insertion_point(field_set_allocated:vega.Trade.market_id) } -// uint64 price = 3 [json_name = "price"]; +// string price = 3 [json_name = "price"]; inline void Trade::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); + price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Trade::_internal_price() const { - return price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Trade::price() const { +inline const std::string& Trade::price() const { // @@protoc_insertion_point(field_get:vega.Trade.price) return _internal_price(); } -inline void Trade::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; -} -inline void Trade::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Trade::set_price(const std::string& value) { _internal_set_price(value); // @@protoc_insertion_point(field_set:vega.Trade.price) } +inline std::string* Trade::mutable_price() { + // @@protoc_insertion_point(field_mutable:vega.Trade.price) + return _internal_mutable_price(); +} +inline const std::string& Trade::_internal_price() const { + return price_.Get(); +} +inline void Trade::_internal_set_price(const std::string& value) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Trade::set_price(std::string&& value) { + + price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Trade.price) +} +inline void Trade::set_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Trade.price) +} +inline void Trade::set_price(const char* value, + size_t size) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Trade.price) +} +inline std::string* Trade::_internal_mutable_price() { + + return price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Trade::release_price() { + // @@protoc_insertion_point(field_release:vega.Trade.price) + return price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Trade::set_allocated_price(std::string* price) { + if (price != nullptr) { + + } else { + + } + price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Trade.price) +} // uint64 size = 4 [json_name = "size"]; inline void Trade::clear_size() { @@ -13088,69 +13561,192 @@ inline void Trade::set_seller_auction_batch(::PROTOBUF_NAMESPACE_ID::uint64 valu // Fee -// uint64 maker_fee = 1 [json_name = "makerFee"]; +// string maker_fee = 1 [json_name = "makerFee"]; inline void Fee::clear_maker_fee() { - maker_fee_ = PROTOBUF_ULONGLONG(0); + maker_fee_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::_internal_maker_fee() const { - return maker_fee_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::maker_fee() const { +inline const std::string& Fee::maker_fee() const { // @@protoc_insertion_point(field_get:vega.Fee.maker_fee) return _internal_maker_fee(); } -inline void Fee::_internal_set_maker_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - maker_fee_ = value; -} -inline void Fee::set_maker_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Fee::set_maker_fee(const std::string& value) { _internal_set_maker_fee(value); // @@protoc_insertion_point(field_set:vega.Fee.maker_fee) } - -// uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; -inline void Fee::clear_infrastructure_fee() { - infrastructure_fee_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::_internal_infrastructure_fee() const { - return infrastructure_fee_; +inline std::string* Fee::mutable_maker_fee() { + // @@protoc_insertion_point(field_mutable:vega.Fee.maker_fee) + return _internal_mutable_maker_fee(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::infrastructure_fee() const { - // @@protoc_insertion_point(field_get:vega.Fee.infrastructure_fee) - return _internal_infrastructure_fee(); +inline const std::string& Fee::_internal_maker_fee() const { + return maker_fee_.Get(); } -inline void Fee::_internal_set_infrastructure_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Fee::_internal_set_maker_fee(const std::string& value) { - infrastructure_fee_ = value; -} -inline void Fee::set_infrastructure_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_infrastructure_fee(value); - // @@protoc_insertion_point(field_set:vega.Fee.infrastructure_fee) + maker_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } +inline void Fee::set_maker_fee(std::string&& value) { -// uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; -inline void Fee::clear_liquidity_fee() { - liquidity_fee_ = PROTOBUF_ULONGLONG(0); + maker_fee_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Fee.maker_fee) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::_internal_liquidity_fee() const { - return liquidity_fee_; +inline void Fee::set_maker_fee(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + maker_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Fee.maker_fee) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Fee::liquidity_fee() const { - // @@protoc_insertion_point(field_get:vega.Fee.liquidity_fee) - return _internal_liquidity_fee(); +inline void Fee::set_maker_fee(const char* value, + size_t size) { + + maker_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Fee.maker_fee) } -inline void Fee::_internal_set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* Fee::_internal_mutable_maker_fee() { - liquidity_fee_ = value; + return maker_fee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void Fee::set_liquidity_fee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_liquidity_fee(value); - // @@protoc_insertion_point(field_set:vega.Fee.liquidity_fee) +inline std::string* Fee::release_maker_fee() { + // @@protoc_insertion_point(field_release:vega.Fee.maker_fee) + return maker_fee_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } +inline void Fee::set_allocated_maker_fee(std::string* maker_fee) { + if (maker_fee != nullptr) { -// ------------------------------------------------------------------- + } else { -// TradeSet + } + maker_fee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), maker_fee, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Fee.maker_fee) +} + +// string infrastructure_fee = 2 [json_name = "infrastructureFee"]; +inline void Fee::clear_infrastructure_fee() { + infrastructure_fee_.ClearToEmpty(); +} +inline const std::string& Fee::infrastructure_fee() const { + // @@protoc_insertion_point(field_get:vega.Fee.infrastructure_fee) + return _internal_infrastructure_fee(); +} +inline void Fee::set_infrastructure_fee(const std::string& value) { + _internal_set_infrastructure_fee(value); + // @@protoc_insertion_point(field_set:vega.Fee.infrastructure_fee) +} +inline std::string* Fee::mutable_infrastructure_fee() { + // @@protoc_insertion_point(field_mutable:vega.Fee.infrastructure_fee) + return _internal_mutable_infrastructure_fee(); +} +inline const std::string& Fee::_internal_infrastructure_fee() const { + return infrastructure_fee_.Get(); +} +inline void Fee::_internal_set_infrastructure_fee(const std::string& value) { + + infrastructure_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Fee::set_infrastructure_fee(std::string&& value) { + + infrastructure_fee_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Fee.infrastructure_fee) +} +inline void Fee::set_infrastructure_fee(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + infrastructure_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Fee.infrastructure_fee) +} +inline void Fee::set_infrastructure_fee(const char* value, + size_t size) { + + infrastructure_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Fee.infrastructure_fee) +} +inline std::string* Fee::_internal_mutable_infrastructure_fee() { + + return infrastructure_fee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Fee::release_infrastructure_fee() { + // @@protoc_insertion_point(field_release:vega.Fee.infrastructure_fee) + return infrastructure_fee_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Fee::set_allocated_infrastructure_fee(std::string* infrastructure_fee) { + if (infrastructure_fee != nullptr) { + + } else { + + } + infrastructure_fee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), infrastructure_fee, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Fee.infrastructure_fee) +} + +// string liquidity_fee = 3 [json_name = "liquidityFee"]; +inline void Fee::clear_liquidity_fee() { + liquidity_fee_.ClearToEmpty(); +} +inline const std::string& Fee::liquidity_fee() const { + // @@protoc_insertion_point(field_get:vega.Fee.liquidity_fee) + return _internal_liquidity_fee(); +} +inline void Fee::set_liquidity_fee(const std::string& value) { + _internal_set_liquidity_fee(value); + // @@protoc_insertion_point(field_set:vega.Fee.liquidity_fee) +} +inline std::string* Fee::mutable_liquidity_fee() { + // @@protoc_insertion_point(field_mutable:vega.Fee.liquidity_fee) + return _internal_mutable_liquidity_fee(); +} +inline const std::string& Fee::_internal_liquidity_fee() const { + return liquidity_fee_.Get(); +} +inline void Fee::_internal_set_liquidity_fee(const std::string& value) { + + liquidity_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Fee::set_liquidity_fee(std::string&& value) { + + liquidity_fee_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Fee.liquidity_fee) +} +inline void Fee::set_liquidity_fee(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + liquidity_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Fee.liquidity_fee) +} +inline void Fee::set_liquidity_fee(const char* value, + size_t size) { + + liquidity_fee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Fee.liquidity_fee) +} +inline std::string* Fee::_internal_mutable_liquidity_fee() { + + return liquidity_fee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Fee::release_liquidity_fee() { + // @@protoc_insertion_point(field_release:vega.Fee.liquidity_fee) + return liquidity_fee_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Fee::set_allocated_liquidity_fee(std::string* liquidity_fee) { + if (liquidity_fee != nullptr) { + + } else { + + } + liquidity_fee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), liquidity_fee, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Fee.liquidity_fee) +} + +// ------------------------------------------------------------------- + +// TradeSet // repeated .vega.Trade trades = 1 [json_name = "trades"]; inline int TradeSet::_internal_trades_size() const { @@ -13276,85 +13872,249 @@ inline void Candle::set_allocated_datetime(std::string* datetime) { // @@protoc_insertion_point(field_set_allocated:vega.Candle.datetime) } -// uint64 high = 3 [json_name = "high"]; +// string high = 3 [json_name = "high"]; inline void Candle::clear_high() { - high_ = PROTOBUF_ULONGLONG(0); + high_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_high() const { - return high_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::high() const { +inline const std::string& Candle::high() const { // @@protoc_insertion_point(field_get:vega.Candle.high) return _internal_high(); } -inline void Candle::_internal_set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - high_ = value; -} -inline void Candle::set_high(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Candle::set_high(const std::string& value) { _internal_set_high(value); // @@protoc_insertion_point(field_set:vega.Candle.high) } +inline std::string* Candle::mutable_high() { + // @@protoc_insertion_point(field_mutable:vega.Candle.high) + return _internal_mutable_high(); +} +inline const std::string& Candle::_internal_high() const { + return high_.Get(); +} +inline void Candle::_internal_set_high(const std::string& value) { -// uint64 low = 4 [json_name = "low"]; -inline void Candle::clear_low() { - low_ = PROTOBUF_ULONGLONG(0); + high_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_low() const { - return low_; +inline void Candle::set_high(std::string&& value) { + + high_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Candle.high) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::low() const { - // @@protoc_insertion_point(field_get:vega.Candle.low) - return _internal_low(); +inline void Candle::set_high(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + high_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Candle.high) +} +inline void Candle::set_high(const char* value, + size_t size) { + + high_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Candle.high) +} +inline std::string* Candle::_internal_mutable_high() { + + return high_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Candle::release_high() { + // @@protoc_insertion_point(field_release:vega.Candle.high) + return high_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Candle::set_allocated_high(std::string* high) { + if (high != nullptr) { + + } else { + + } + high_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), high, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Candle.high) } -inline void Candle::_internal_set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { - low_ = value; +// string low = 4 [json_name = "low"]; +inline void Candle::clear_low() { + low_.ClearToEmpty(); +} +inline const std::string& Candle::low() const { + // @@protoc_insertion_point(field_get:vega.Candle.low) + return _internal_low(); } -inline void Candle::set_low(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Candle::set_low(const std::string& value) { _internal_set_low(value); // @@protoc_insertion_point(field_set:vega.Candle.low) } +inline std::string* Candle::mutable_low() { + // @@protoc_insertion_point(field_mutable:vega.Candle.low) + return _internal_mutable_low(); +} +inline const std::string& Candle::_internal_low() const { + return low_.Get(); +} +inline void Candle::_internal_set_low(const std::string& value) { -// uint64 open = 5 [json_name = "open"]; -inline void Candle::clear_open() { - open_ = PROTOBUF_ULONGLONG(0); + low_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_open() const { - return open_; +inline void Candle::set_low(std::string&& value) { + + low_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Candle.low) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::open() const { - // @@protoc_insertion_point(field_get:vega.Candle.open) - return _internal_open(); +inline void Candle::set_low(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + low_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Candle.low) +} +inline void Candle::set_low(const char* value, + size_t size) { + + low_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Candle.low) +} +inline std::string* Candle::_internal_mutable_low() { + + return low_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Candle::release_low() { + // @@protoc_insertion_point(field_release:vega.Candle.low) + return low_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Candle::set_allocated_low(std::string* low) { + if (low != nullptr) { + + } else { + + } + low_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), low, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Candle.low) } -inline void Candle::_internal_set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { - open_ = value; +// string open = 5 [json_name = "open"]; +inline void Candle::clear_open() { + open_.ClearToEmpty(); } -inline void Candle::set_open(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline const std::string& Candle::open() const { + // @@protoc_insertion_point(field_get:vega.Candle.open) + return _internal_open(); +} +inline void Candle::set_open(const std::string& value) { _internal_set_open(value); // @@protoc_insertion_point(field_set:vega.Candle.open) } +inline std::string* Candle::mutable_open() { + // @@protoc_insertion_point(field_mutable:vega.Candle.open) + return _internal_mutable_open(); +} +inline const std::string& Candle::_internal_open() const { + return open_.Get(); +} +inline void Candle::_internal_set_open(const std::string& value) { -// uint64 close = 6 [json_name = "close"]; -inline void Candle::clear_close() { - close_ = PROTOBUF_ULONGLONG(0); + open_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Candle::set_open(std::string&& value) { + + open_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Candle.open) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::_internal_close() const { - return close_; +inline void Candle::set_open(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + open_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Candle.open) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Candle::close() const { - // @@protoc_insertion_point(field_get:vega.Candle.close) - return _internal_close(); +inline void Candle::set_open(const char* value, + size_t size) { + + open_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Candle.open) +} +inline std::string* Candle::_internal_mutable_open() { + + return open_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Candle::release_open() { + // @@protoc_insertion_point(field_release:vega.Candle.open) + return open_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Candle::set_allocated_open(std::string* open) { + if (open != nullptr) { + + } else { + + } + open_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), open, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Candle.open) } -inline void Candle::_internal_set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { - close_ = value; +// string close = 6 [json_name = "close"]; +inline void Candle::clear_close() { + close_.ClearToEmpty(); +} +inline const std::string& Candle::close() const { + // @@protoc_insertion_point(field_get:vega.Candle.close) + return _internal_close(); } -inline void Candle::set_close(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Candle::set_close(const std::string& value) { _internal_set_close(value); // @@protoc_insertion_point(field_set:vega.Candle.close) } +inline std::string* Candle::mutable_close() { + // @@protoc_insertion_point(field_mutable:vega.Candle.close) + return _internal_mutable_close(); +} +inline const std::string& Candle::_internal_close() const { + return close_.Get(); +} +inline void Candle::_internal_set_close(const std::string& value) { + + close_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Candle::set_close(std::string&& value) { + + close_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Candle.close) +} +inline void Candle::set_close(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + close_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Candle.close) +} +inline void Candle::set_close(const char* value, + size_t size) { + + close_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Candle.close) +} +inline std::string* Candle::_internal_mutable_close() { + + return close_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Candle::release_close() { + // @@protoc_insertion_point(field_release:vega.Candle.close) + return close_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Candle::set_allocated_close(std::string* close) { + if (close != nullptr) { + + } else { + + } + close_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), close, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Candle.close) +} // uint64 volume = 7 [json_name = "volume"]; inline void Candle::clear_volume() { @@ -13400,25 +14160,66 @@ inline void Candle::set_interval(::vega::Interval value) { // PriceLevel -// uint64 price = 1 [json_name = "price"]; +// string price = 1 [json_name = "price"]; inline void PriceLevel::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); + price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::_internal_price() const { - return price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceLevel::price() const { +inline const std::string& PriceLevel::price() const { // @@protoc_insertion_point(field_get:vega.PriceLevel.price) return _internal_price(); } -inline void PriceLevel::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; -} -inline void PriceLevel::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PriceLevel::set_price(const std::string& value) { _internal_set_price(value); // @@protoc_insertion_point(field_set:vega.PriceLevel.price) } +inline std::string* PriceLevel::mutable_price() { + // @@protoc_insertion_point(field_mutable:vega.PriceLevel.price) + return _internal_mutable_price(); +} +inline const std::string& PriceLevel::_internal_price() const { + return price_.Get(); +} +inline void PriceLevel::_internal_set_price(const std::string& value) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PriceLevel::set_price(std::string&& value) { + + price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.PriceLevel.price) +} +inline void PriceLevel::set_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.PriceLevel.price) +} +inline void PriceLevel::set_price(const char* value, + size_t size) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.PriceLevel.price) +} +inline std::string* PriceLevel::_internal_mutable_price() { + + return price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PriceLevel::release_price() { + // @@protoc_insertion_point(field_release:vega.PriceLevel.price) + return price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PriceLevel::set_allocated_price(std::string* price) { + if (price != nullptr) { + + } else { + + } + price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.PriceLevel.price) +} // uint64 number_of_orders = 2 [json_name = "numberOfOrders"]; inline void PriceLevel::clear_number_of_orders() { @@ -13932,93 +14733,216 @@ inline void Position::set_open_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { // @@protoc_insertion_point(field_set:vega.Position.open_volume) } -// int64 realised_pnl = 4 [json_name = "realisedPnl"]; +// string realised_pnl = 4 [json_name = "realisedPnl"]; inline void Position::clear_realised_pnl() { - realised_pnl_ = PROTOBUF_LONGLONG(0); + realised_pnl_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_realised_pnl() const { - return realised_pnl_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::realised_pnl() const { +inline const std::string& Position::realised_pnl() const { // @@protoc_insertion_point(field_get:vega.Position.realised_pnl) return _internal_realised_pnl(); } -inline void Position::_internal_set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { - - realised_pnl_ = value; -} -inline void Position::set_realised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Position::set_realised_pnl(const std::string& value) { _internal_set_realised_pnl(value); // @@protoc_insertion_point(field_set:vega.Position.realised_pnl) } - -// int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; -inline void Position::clear_unrealised_pnl() { - unrealised_pnl_ = PROTOBUF_LONGLONG(0); +inline std::string* Position::mutable_realised_pnl() { + // @@protoc_insertion_point(field_mutable:vega.Position.realised_pnl) + return _internal_mutable_realised_pnl(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_unrealised_pnl() const { - return unrealised_pnl_; +inline const std::string& Position::_internal_realised_pnl() const { + return realised_pnl_.Get(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::unrealised_pnl() const { - // @@protoc_insertion_point(field_get:vega.Position.unrealised_pnl) - return _internal_unrealised_pnl(); +inline void Position::_internal_set_realised_pnl(const std::string& value) { + + realised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Position::_internal_set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Position::set_realised_pnl(std::string&& value) { - unrealised_pnl_ = value; + realised_pnl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Position.realised_pnl) } -inline void Position::set_unrealised_pnl(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_unrealised_pnl(value); - // @@protoc_insertion_point(field_set:vega.Position.unrealised_pnl) +inline void Position::set_realised_pnl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + realised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Position.realised_pnl) } +inline void Position::set_realised_pnl(const char* value, + size_t size) { -// uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; -inline void Position::clear_average_entry_price() { - average_entry_price_ = PROTOBUF_ULONGLONG(0); + realised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Position.realised_pnl) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::_internal_average_entry_price() const { - return average_entry_price_; +inline std::string* Position::_internal_mutable_realised_pnl() { + + return realised_pnl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Position::average_entry_price() const { - // @@protoc_insertion_point(field_get:vega.Position.average_entry_price) - return _internal_average_entry_price(); +inline std::string* Position::release_realised_pnl() { + // @@protoc_insertion_point(field_release:vega.Position.realised_pnl) + return realised_pnl_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Position::_internal_set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Position::set_allocated_realised_pnl(std::string* realised_pnl) { + if (realised_pnl != nullptr) { - average_entry_price_ = value; -} -inline void Position::set_average_entry_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_average_entry_price(value); - // @@protoc_insertion_point(field_set:vega.Position.average_entry_price) + } else { + + } + realised_pnl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), realised_pnl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Position.realised_pnl) } -// int64 updated_at = 7 [json_name = "updatedAt"]; -inline void Position::clear_updated_at() { - updated_at_ = PROTOBUF_LONGLONG(0); +// string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; +inline void Position::clear_unrealised_pnl() { + unrealised_pnl_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_updated_at() const { - return updated_at_; +inline const std::string& Position::unrealised_pnl() const { + // @@protoc_insertion_point(field_get:vega.Position.unrealised_pnl) + return _internal_unrealised_pnl(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Position::updated_at() const { - // @@protoc_insertion_point(field_get:vega.Position.updated_at) - return _internal_updated_at(); +inline void Position::set_unrealised_pnl(const std::string& value) { + _internal_set_unrealised_pnl(value); + // @@protoc_insertion_point(field_set:vega.Position.unrealised_pnl) } -inline void Position::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline std::string* Position::mutable_unrealised_pnl() { + // @@protoc_insertion_point(field_mutable:vega.Position.unrealised_pnl) + return _internal_mutable_unrealised_pnl(); +} +inline const std::string& Position::_internal_unrealised_pnl() const { + return unrealised_pnl_.Get(); +} +inline void Position::_internal_set_unrealised_pnl(const std::string& value) { - updated_at_ = value; + unrealised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Position::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_updated_at(value); - // @@protoc_insertion_point(field_set:vega.Position.updated_at) +inline void Position::set_unrealised_pnl(std::string&& value) { + + unrealised_pnl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Position.unrealised_pnl) } +inline void Position::set_unrealised_pnl(const char* value) { + GOOGLE_DCHECK(value != nullptr); -// ------------------------------------------------------------------- + unrealised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Position.unrealised_pnl) +} +inline void Position::set_unrealised_pnl(const char* value, + size_t size) { -// PositionTrade + unrealised_pnl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Position.unrealised_pnl) +} +inline std::string* Position::_internal_mutable_unrealised_pnl() { -// int64 volume = 1 [json_name = "volume"]; -inline void PositionTrade::clear_volume() { - volume_ = PROTOBUF_LONGLONG(0); + return unrealised_pnl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Position::release_unrealised_pnl() { + // @@protoc_insertion_point(field_release:vega.Position.unrealised_pnl) + return unrealised_pnl_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Position::set_allocated_unrealised_pnl(std::string* unrealised_pnl) { + if (unrealised_pnl != nullptr) { + + } else { + + } + unrealised_pnl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unrealised_pnl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Position.unrealised_pnl) +} + +// string average_entry_price = 6 [json_name = "averageEntryPrice"]; +inline void Position::clear_average_entry_price() { + average_entry_price_.ClearToEmpty(); +} +inline const std::string& Position::average_entry_price() const { + // @@protoc_insertion_point(field_get:vega.Position.average_entry_price) + return _internal_average_entry_price(); +} +inline void Position::set_average_entry_price(const std::string& value) { + _internal_set_average_entry_price(value); + // @@protoc_insertion_point(field_set:vega.Position.average_entry_price) +} +inline std::string* Position::mutable_average_entry_price() { + // @@protoc_insertion_point(field_mutable:vega.Position.average_entry_price) + return _internal_mutable_average_entry_price(); +} +inline const std::string& Position::_internal_average_entry_price() const { + return average_entry_price_.Get(); +} +inline void Position::_internal_set_average_entry_price(const std::string& value) { + + average_entry_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Position::set_average_entry_price(std::string&& value) { + + average_entry_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Position.average_entry_price) +} +inline void Position::set_average_entry_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + average_entry_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Position.average_entry_price) +} +inline void Position::set_average_entry_price(const char* value, + size_t size) { + + average_entry_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Position.average_entry_price) +} +inline std::string* Position::_internal_mutable_average_entry_price() { + + return average_entry_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Position::release_average_entry_price() { + // @@protoc_insertion_point(field_release:vega.Position.average_entry_price) + return average_entry_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Position::set_allocated_average_entry_price(std::string* average_entry_price) { + if (average_entry_price != nullptr) { + + } else { + + } + average_entry_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), average_entry_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Position.average_entry_price) +} + +// int64 updated_at = 7 [json_name = "updatedAt"]; +inline void Position::clear_updated_at() { + updated_at_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::_internal_updated_at() const { + return updated_at_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Position::updated_at() const { + // @@protoc_insertion_point(field_get:vega.Position.updated_at) + return _internal_updated_at(); +} +inline void Position::_internal_set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + + updated_at_ = value; +} +inline void Position::set_updated_at(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_updated_at(value); + // @@protoc_insertion_point(field_set:vega.Position.updated_at) +} + +// ------------------------------------------------------------------- + +// PositionTrade + +// int64 volume = 1 [json_name = "volume"]; +inline void PositionTrade::clear_volume() { + volume_ = PROTOBUF_LONGLONG(0); } inline ::PROTOBUF_NAMESPACE_ID::int64 PositionTrade::_internal_volume() const { return volume_; @@ -14036,25 +14960,66 @@ inline void PositionTrade::set_volume(::PROTOBUF_NAMESPACE_ID::int64 value) { // @@protoc_insertion_point(field_set:vega.PositionTrade.volume) } -// uint64 price = 2 [json_name = "price"]; +// string price = 2 [json_name = "price"]; inline void PositionTrade::clear_price() { - price_ = PROTOBUF_ULONGLONG(0); + price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::_internal_price() const { - return price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 PositionTrade::price() const { +inline const std::string& PositionTrade::price() const { // @@protoc_insertion_point(field_get:vega.PositionTrade.price) return _internal_price(); } -inline void PositionTrade::_internal_set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - price_ = value; -} -inline void PositionTrade::set_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PositionTrade::set_price(const std::string& value) { _internal_set_price(value); // @@protoc_insertion_point(field_set:vega.PositionTrade.price) } +inline std::string* PositionTrade::mutable_price() { + // @@protoc_insertion_point(field_mutable:vega.PositionTrade.price) + return _internal_mutable_price(); +} +inline const std::string& PositionTrade::_internal_price() const { + return price_.Get(); +} +inline void PositionTrade::_internal_set_price(const std::string& value) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PositionTrade::set_price(std::string&& value) { + + price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.PositionTrade.price) +} +inline void PositionTrade::set_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.PositionTrade.price) +} +inline void PositionTrade::set_price(const char* value, + size_t size) { + + price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.PositionTrade.price) +} +inline std::string* PositionTrade::_internal_mutable_price() { + + return price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PositionTrade::release_price() { + // @@protoc_insertion_point(field_release:vega.PositionTrade.price) + return price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PositionTrade::set_allocated_price(std::string* price) { + if (price != nullptr) { + + } else { + + } + price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.PositionTrade.price) +} // ------------------------------------------------------------------- @@ -14551,25 +15516,66 @@ inline void Withdrawal::set_allocated_party_id(std::string* party_id) { // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.party_id) } -// uint64 amount = 3 [json_name = "amount"]; +// string amount = 3 [json_name = "amount"]; inline void Withdrawal::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::amount() const { +inline const std::string& Withdrawal::amount() const { // @@protoc_insertion_point(field_get:vega.Withdrawal.amount) return _internal_amount(); } -inline void Withdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void Withdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Withdrawal::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.Withdrawal.amount) } +inline std::string* Withdrawal::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.Withdrawal.amount) + return _internal_mutable_amount(); +} +inline const std::string& Withdrawal::_internal_amount() const { + return amount_.Get(); +} +inline void Withdrawal::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Withdrawal::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Withdrawal.amount) +} +inline void Withdrawal::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Withdrawal.amount) +} +inline void Withdrawal::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Withdrawal.amount) +} +inline std::string* Withdrawal::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Withdrawal::release_amount() { + // @@protoc_insertion_point(field_release:vega.Withdrawal.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Withdrawal::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Withdrawal.amount) +} // string asset = 4 [json_name = "asset"]; inline void Withdrawal::clear_asset() { @@ -15194,25 +16200,66 @@ inline void Account::set_allocated_owner(std::string* owner) { // @@protoc_insertion_point(field_set_allocated:vega.Account.owner) } -// uint64 balance = 3 [json_name = "balance"]; +// string balance = 3 [json_name = "balance"]; inline void Account::clear_balance() { - balance_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::_internal_balance() const { - return balance_; + balance_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::balance() const { +inline const std::string& Account::balance() const { // @@protoc_insertion_point(field_get:vega.Account.balance) return _internal_balance(); } -inline void Account::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - balance_ = value; -} -inline void Account::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Account::set_balance(const std::string& value) { _internal_set_balance(value); // @@protoc_insertion_point(field_set:vega.Account.balance) } +inline std::string* Account::mutable_balance() { + // @@protoc_insertion_point(field_mutable:vega.Account.balance) + return _internal_mutable_balance(); +} +inline const std::string& Account::_internal_balance() const { + return balance_.Get(); +} +inline void Account::_internal_set_balance(const std::string& value) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Account::set_balance(std::string&& value) { + + balance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Account.balance) +} +inline void Account::set_balance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Account.balance) +} +inline void Account::set_balance(const char* value, + size_t size) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Account.balance) +} +inline std::string* Account::_internal_mutable_balance() { + + return balance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Account::release_balance() { + // @@protoc_insertion_point(field_release:vega.Account.balance) + return balance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Account::set_allocated_balance(std::string* balance) { + if (balance != nullptr) { + + } else { + + } + balance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), balance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Account.balance) +} // string asset = 4 [json_name = "asset"]; inline void Account::clear_asset() { @@ -15360,25 +16407,66 @@ inline void Account::set_type(::vega::AccountType value) { // FinancialAmount -// uint64 amount = 1 [json_name = "amount"]; +// string amount = 1 [json_name = "amount"]; inline void FinancialAmount::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 FinancialAmount::amount() const { +inline const std::string& FinancialAmount::amount() const { // @@protoc_insertion_point(field_get:vega.FinancialAmount.amount) return _internal_amount(); } -inline void FinancialAmount::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void FinancialAmount::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void FinancialAmount::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.FinancialAmount.amount) } +inline std::string* FinancialAmount::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.FinancialAmount.amount) + return _internal_mutable_amount(); +} +inline const std::string& FinancialAmount::_internal_amount() const { + return amount_.Get(); +} +inline void FinancialAmount::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void FinancialAmount::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.FinancialAmount.amount) +} +inline void FinancialAmount::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.FinancialAmount.amount) +} +inline void FinancialAmount::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.FinancialAmount.amount) +} +inline std::string* FinancialAmount::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* FinancialAmount::release_amount() { + // @@protoc_insertion_point(field_release:vega.FinancialAmount.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void FinancialAmount::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.FinancialAmount.amount) +} // string asset = 2 [json_name = "asset"]; inline void FinancialAmount::clear_asset() { @@ -15609,25 +16697,66 @@ inline void Transfer::set_type(::vega::TransferType value) { // @@protoc_insertion_point(field_set:vega.Transfer.type) } -// uint64 min_amount = 4 [json_name = "minAmount"]; +// string min_amount = 4 [json_name = "minAmount"]; inline void Transfer::clear_min_amount() { - min_amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::_internal_min_amount() const { - return min_amount_; + min_amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Transfer::min_amount() const { +inline const std::string& Transfer::min_amount() const { // @@protoc_insertion_point(field_get:vega.Transfer.min_amount) return _internal_min_amount(); } -inline void Transfer::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - min_amount_ = value; -} -inline void Transfer::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void Transfer::set_min_amount(const std::string& value) { _internal_set_min_amount(value); // @@protoc_insertion_point(field_set:vega.Transfer.min_amount) } +inline std::string* Transfer::mutable_min_amount() { + // @@protoc_insertion_point(field_mutable:vega.Transfer.min_amount) + return _internal_mutable_min_amount(); +} +inline const std::string& Transfer::_internal_min_amount() const { + return min_amount_.Get(); +} +inline void Transfer::_internal_set_min_amount(const std::string& value) { + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Transfer::set_min_amount(std::string&& value) { + + min_amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Transfer.min_amount) +} +inline void Transfer::set_min_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Transfer.min_amount) +} +inline void Transfer::set_min_amount(const char* value, + size_t size) { + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Transfer.min_amount) +} +inline std::string* Transfer::_internal_mutable_min_amount() { + + return min_amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Transfer::release_min_amount() { + // @@protoc_insertion_point(field_release:vega.Transfer.min_amount) + return min_amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Transfer::set_allocated_min_amount(std::string* min_amount) { + if (min_amount != nullptr) { + + } else { + + } + min_amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), min_amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Transfer.min_amount) +} // ------------------------------------------------------------------- @@ -15711,55 +16840,137 @@ TransferRequest::to_account() const { return to_account_; } -// uint64 amount = 3 [json_name = "amount"]; +// string amount = 3 [json_name = "amount"]; inline void TransferRequest::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::amount() const { +inline const std::string& TransferRequest::amount() const { // @@protoc_insertion_point(field_get:vega.TransferRequest.amount) return _internal_amount(); } -inline void TransferRequest::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void TransferRequest::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void TransferRequest::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.TransferRequest.amount) } - -// uint64 min_amount = 4 [json_name = "minAmount"]; -inline void TransferRequest::clear_min_amount() { - min_amount_ = PROTOBUF_ULONGLONG(0); +inline std::string* TransferRequest::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.amount) + return _internal_mutable_amount(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::_internal_min_amount() const { - return min_amount_; +inline const std::string& TransferRequest::_internal_amount() const { + return amount_.Get(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferRequest::min_amount() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.min_amount) - return _internal_min_amount(); +inline void TransferRequest::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void TransferRequest::_internal_set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void TransferRequest::set_amount(std::string&& value) { - min_amount_ = value; + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.amount) } -inline void TransferRequest::set_min_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_min_amount(value); - // @@protoc_insertion_point(field_set:vega.TransferRequest.min_amount) +inline void TransferRequest::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.TransferRequest.amount) } +inline void TransferRequest::set_amount(const char* value, + size_t size) { -// string asset = 5 [json_name = "asset"]; -inline void TransferRequest::clear_asset() { - asset_.ClearToEmpty(); + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.amount) } -inline const std::string& TransferRequest::asset() const { - // @@protoc_insertion_point(field_get:vega.TransferRequest.asset) - return _internal_asset(); +inline std::string* TransferRequest::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline void TransferRequest::set_asset(const std::string& value) { +inline std::string* TransferRequest::release_amount() { + // @@protoc_insertion_point(field_release:vega.TransferRequest.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void TransferRequest::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.amount) +} + +// string min_amount = 4 [json_name = "minAmount"]; +inline void TransferRequest::clear_min_amount() { + min_amount_.ClearToEmpty(); +} +inline const std::string& TransferRequest::min_amount() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.min_amount) + return _internal_min_amount(); +} +inline void TransferRequest::set_min_amount(const std::string& value) { + _internal_set_min_amount(value); + // @@protoc_insertion_point(field_set:vega.TransferRequest.min_amount) +} +inline std::string* TransferRequest::mutable_min_amount() { + // @@protoc_insertion_point(field_mutable:vega.TransferRequest.min_amount) + return _internal_mutable_min_amount(); +} +inline const std::string& TransferRequest::_internal_min_amount() const { + return min_amount_.Get(); +} +inline void TransferRequest::_internal_set_min_amount(const std::string& value) { + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void TransferRequest::set_min_amount(std::string&& value) { + + min_amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.TransferRequest.min_amount) +} +inline void TransferRequest::set_min_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.TransferRequest.min_amount) +} +inline void TransferRequest::set_min_amount(const char* value, + size_t size) { + + min_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.TransferRequest.min_amount) +} +inline std::string* TransferRequest::_internal_mutable_min_amount() { + + return min_amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* TransferRequest::release_min_amount() { + // @@protoc_insertion_point(field_release:vega.TransferRequest.min_amount) + return min_amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void TransferRequest::set_allocated_min_amount(std::string* min_amount) { + if (min_amount != nullptr) { + + } else { + + } + min_amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), min_amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.TransferRequest.min_amount) +} + +// string asset = 5 [json_name = "asset"]; +inline void TransferRequest::clear_asset() { + asset_.ClearToEmpty(); +} +inline const std::string& TransferRequest::asset() const { + // @@protoc_insertion_point(field_get:vega.TransferRequest.asset) + return _internal_asset(); +} +inline void TransferRequest::set_asset(const std::string& value) { _internal_set_asset(value); // @@protoc_insertion_point(field_set:vega.TransferRequest.asset) } @@ -15999,25 +17210,66 @@ inline void LedgerEntry::set_allocated_to_account(std::string* to_account) { // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.to_account) } -// uint64 amount = 3 [json_name = "amount"]; +// string amount = 3 [json_name = "amount"]; inline void LedgerEntry::clear_amount() { - amount_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::_internal_amount() const { - return amount_; + amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 LedgerEntry::amount() const { +inline const std::string& LedgerEntry::amount() const { // @@protoc_insertion_point(field_get:vega.LedgerEntry.amount) return _internal_amount(); } -inline void LedgerEntry::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - amount_ = value; -} -inline void LedgerEntry::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LedgerEntry::set_amount(const std::string& value) { _internal_set_amount(value); // @@protoc_insertion_point(field_set:vega.LedgerEntry.amount) } +inline std::string* LedgerEntry::mutable_amount() { + // @@protoc_insertion_point(field_mutable:vega.LedgerEntry.amount) + return _internal_mutable_amount(); +} +inline const std::string& LedgerEntry::_internal_amount() const { + return amount_.Get(); +} +inline void LedgerEntry::_internal_set_amount(const std::string& value) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LedgerEntry::set_amount(std::string&& value) { + + amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.LedgerEntry.amount) +} +inline void LedgerEntry::set_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LedgerEntry.amount) +} +inline void LedgerEntry::set_amount(const char* value, + size_t size) { + + amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.LedgerEntry.amount) +} +inline std::string* LedgerEntry::_internal_mutable_amount() { + + return amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LedgerEntry::release_amount() { + // @@protoc_insertion_point(field_release:vega.LedgerEntry.amount) + return amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LedgerEntry::set_allocated_amount(std::string* amount) { + if (amount != nullptr) { + + } else { + + } + amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LedgerEntry.amount) +} // string reference = 4 [json_name = "reference"]; inline void LedgerEntry::clear_reference() { @@ -16248,25 +17500,66 @@ inline void TransferBalance::set_allocated_account(::vega::Account* account) { // @@protoc_insertion_point(field_set_allocated:vega.TransferBalance.account) } -// uint64 balance = 2 [json_name = "balance"]; +// string balance = 2 [json_name = "balance"]; inline void TransferBalance::clear_balance() { - balance_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::_internal_balance() const { - return balance_; + balance_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 TransferBalance::balance() const { +inline const std::string& TransferBalance::balance() const { // @@protoc_insertion_point(field_get:vega.TransferBalance.balance) return _internal_balance(); } -inline void TransferBalance::_internal_set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - balance_ = value; -} -inline void TransferBalance::set_balance(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void TransferBalance::set_balance(const std::string& value) { _internal_set_balance(value); // @@protoc_insertion_point(field_set:vega.TransferBalance.balance) } +inline std::string* TransferBalance::mutable_balance() { + // @@protoc_insertion_point(field_mutable:vega.TransferBalance.balance) + return _internal_mutable_balance(); +} +inline const std::string& TransferBalance::_internal_balance() const { + return balance_.Get(); +} +inline void TransferBalance::_internal_set_balance(const std::string& value) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void TransferBalance::set_balance(std::string&& value) { + + balance_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.TransferBalance.balance) +} +inline void TransferBalance::set_balance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.TransferBalance.balance) +} +inline void TransferBalance::set_balance(const char* value, + size_t size) { + + balance_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.TransferBalance.balance) +} +inline std::string* TransferBalance::_internal_mutable_balance() { + + return balance_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* TransferBalance::release_balance() { + // @@protoc_insertion_point(field_release:vega.TransferBalance.balance) + return balance_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void TransferBalance::set_allocated_balance(std::string* balance) { + if (balance != nullptr) { + + } else { + + } + balance_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), balance, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.TransferBalance.balance) +} // ------------------------------------------------------------------- @@ -16354,85 +17647,249 @@ TransferResponse::balances() const { // MarginLevels -// uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; +// string maintenance_margin = 1 [json_name = "maintenanceMargin"]; inline void MarginLevels::clear_maintenance_margin() { - maintenance_margin_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_maintenance_margin() const { - return maintenance_margin_; + maintenance_margin_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::maintenance_margin() const { +inline const std::string& MarginLevels::maintenance_margin() const { // @@protoc_insertion_point(field_get:vega.MarginLevels.maintenance_margin) return _internal_maintenance_margin(); } -inline void MarginLevels::_internal_set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - maintenance_margin_ = value; -} -inline void MarginLevels::set_maintenance_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarginLevels::set_maintenance_margin(const std::string& value) { _internal_set_maintenance_margin(value); // @@protoc_insertion_point(field_set:vega.MarginLevels.maintenance_margin) } +inline std::string* MarginLevels::mutable_maintenance_margin() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.maintenance_margin) + return _internal_mutable_maintenance_margin(); +} +inline const std::string& MarginLevels::_internal_maintenance_margin() const { + return maintenance_margin_.Get(); +} +inline void MarginLevels::_internal_set_maintenance_margin(const std::string& value) { -// uint64 search_level = 2 [json_name = "searchLevel"]; -inline void MarginLevels::clear_search_level() { - search_level_ = PROTOBUF_ULONGLONG(0); + maintenance_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarginLevels::set_maintenance_margin(std::string&& value) { + + maintenance_margin_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.maintenance_margin) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_search_level() const { - return search_level_; +inline void MarginLevels::set_maintenance_margin(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + maintenance_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.maintenance_margin) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::search_level() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.search_level) - return _internal_search_level(); +inline void MarginLevels::set_maintenance_margin(const char* value, + size_t size) { + + maintenance_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.maintenance_margin) +} +inline std::string* MarginLevels::_internal_mutable_maintenance_margin() { + + return maintenance_margin_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarginLevels::release_maintenance_margin() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.maintenance_margin) + return maintenance_margin_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarginLevels::set_allocated_maintenance_margin(std::string* maintenance_margin) { + if (maintenance_margin != nullptr) { + + } else { + + } + maintenance_margin_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), maintenance_margin, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.maintenance_margin) } -inline void MarginLevels::_internal_set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { - search_level_ = value; +// string search_level = 2 [json_name = "searchLevel"]; +inline void MarginLevels::clear_search_level() { + search_level_.ClearToEmpty(); +} +inline const std::string& MarginLevels::search_level() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.search_level) + return _internal_search_level(); } -inline void MarginLevels::set_search_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarginLevels::set_search_level(const std::string& value) { _internal_set_search_level(value); // @@protoc_insertion_point(field_set:vega.MarginLevels.search_level) } +inline std::string* MarginLevels::mutable_search_level() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.search_level) + return _internal_mutable_search_level(); +} +inline const std::string& MarginLevels::_internal_search_level() const { + return search_level_.Get(); +} +inline void MarginLevels::_internal_set_search_level(const std::string& value) { -// uint64 initial_margin = 3 [json_name = "initialMargin"]; -inline void MarginLevels::clear_initial_margin() { - initial_margin_ = PROTOBUF_ULONGLONG(0); + search_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarginLevels::set_search_level(std::string&& value) { + + search_level_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.search_level) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_initial_margin() const { - return initial_margin_; +inline void MarginLevels::set_search_level(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + search_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.search_level) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::initial_margin() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.initial_margin) - return _internal_initial_margin(); +inline void MarginLevels::set_search_level(const char* value, + size_t size) { + + search_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.search_level) } -inline void MarginLevels::_internal_set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* MarginLevels::_internal_mutable_search_level() { - initial_margin_ = value; + return search_level_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarginLevels::release_search_level() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.search_level) + return search_level_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarginLevels::set_initial_margin(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarginLevels::set_allocated_search_level(std::string* search_level) { + if (search_level != nullptr) { + + } else { + + } + search_level_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), search_level, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.search_level) +} + +// string initial_margin = 3 [json_name = "initialMargin"]; +inline void MarginLevels::clear_initial_margin() { + initial_margin_.ClearToEmpty(); +} +inline const std::string& MarginLevels::initial_margin() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.initial_margin) + return _internal_initial_margin(); +} +inline void MarginLevels::set_initial_margin(const std::string& value) { _internal_set_initial_margin(value); // @@protoc_insertion_point(field_set:vega.MarginLevels.initial_margin) } +inline std::string* MarginLevels::mutable_initial_margin() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.initial_margin) + return _internal_mutable_initial_margin(); +} +inline const std::string& MarginLevels::_internal_initial_margin() const { + return initial_margin_.Get(); +} +inline void MarginLevels::_internal_set_initial_margin(const std::string& value) { -// uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; -inline void MarginLevels::clear_collateral_release_level() { - collateral_release_level_ = PROTOBUF_ULONGLONG(0); + initial_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::_internal_collateral_release_level() const { - return collateral_release_level_; +inline void MarginLevels::set_initial_margin(std::string&& value) { + + initial_margin_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.initial_margin) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarginLevels::collateral_release_level() const { - // @@protoc_insertion_point(field_get:vega.MarginLevels.collateral_release_level) - return _internal_collateral_release_level(); +inline void MarginLevels::set_initial_margin(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + initial_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.initial_margin) +} +inline void MarginLevels::set_initial_margin(const char* value, + size_t size) { + + initial_margin_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.initial_margin) +} +inline std::string* MarginLevels::_internal_mutable_initial_margin() { + + return initial_margin_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarginLevels::release_initial_margin() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.initial_margin) + return initial_margin_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarginLevels::set_allocated_initial_margin(std::string* initial_margin) { + if (initial_margin != nullptr) { + + } else { + + } + initial_margin_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), initial_margin, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.initial_margin) } -inline void MarginLevels::_internal_set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { - collateral_release_level_ = value; +// string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; +inline void MarginLevels::clear_collateral_release_level() { + collateral_release_level_.ClearToEmpty(); } -inline void MarginLevels::set_collateral_release_level(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline const std::string& MarginLevels::collateral_release_level() const { + // @@protoc_insertion_point(field_get:vega.MarginLevels.collateral_release_level) + return _internal_collateral_release_level(); +} +inline void MarginLevels::set_collateral_release_level(const std::string& value) { _internal_set_collateral_release_level(value); // @@protoc_insertion_point(field_set:vega.MarginLevels.collateral_release_level) } +inline std::string* MarginLevels::mutable_collateral_release_level() { + // @@protoc_insertion_point(field_mutable:vega.MarginLevels.collateral_release_level) + return _internal_mutable_collateral_release_level(); +} +inline const std::string& MarginLevels::_internal_collateral_release_level() const { + return collateral_release_level_.Get(); +} +inline void MarginLevels::_internal_set_collateral_release_level(const std::string& value) { + + collateral_release_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarginLevels::set_collateral_release_level(std::string&& value) { + + collateral_release_level_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarginLevels.collateral_release_level) +} +inline void MarginLevels::set_collateral_release_level(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collateral_release_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarginLevels.collateral_release_level) +} +inline void MarginLevels::set_collateral_release_level(const char* value, + size_t size) { + + collateral_release_level_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarginLevels.collateral_release_level) +} +inline std::string* MarginLevels::_internal_mutable_collateral_release_level() { + + return collateral_release_level_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarginLevels::release_collateral_release_level() { + // @@protoc_insertion_point(field_release:vega.MarginLevels.collateral_release_level) + return collateral_release_level_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarginLevels::set_allocated_collateral_release_level(std::string* collateral_release_level) { + if (collateral_release_level != nullptr) { + + } else { + + } + collateral_release_level_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collateral_release_level, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarginLevels.collateral_release_level) +} // string party_id = 5 [json_name = "partyId"]; inline void MarginLevels::clear_party_id() { @@ -16641,45 +18098,127 @@ inline void MarginLevels::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { // MarketData -// uint64 mark_price = 1 [json_name = "markPrice"]; +// string mark_price = 1 [json_name = "markPrice"]; inline void MarketData::clear_mark_price() { - mark_price_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mark_price() const { - return mark_price_; + mark_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mark_price() const { +inline const std::string& MarketData::mark_price() const { // @@protoc_insertion_point(field_get:vega.MarketData.mark_price) return _internal_mark_price(); } -inline void MarketData::_internal_set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - mark_price_ = value; -} -inline void MarketData::set_mark_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_mark_price(const std::string& value) { _internal_set_mark_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.mark_price) } +inline std::string* MarketData::mutable_mark_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.mark_price) + return _internal_mutable_mark_price(); +} +inline const std::string& MarketData::_internal_mark_price() const { + return mark_price_.Get(); +} +inline void MarketData::_internal_set_mark_price(const std::string& value) { -// uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; -inline void MarketData::clear_best_bid_price() { - best_bid_price_ = PROTOBUF_ULONGLONG(0); + mark_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_bid_price() const { - return best_bid_price_; +inline void MarketData::set_mark_price(std::string&& value) { + + mark_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.mark_price) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_bid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_price) - return _internal_best_bid_price(); +inline void MarketData::set_mark_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + mark_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.mark_price) +} +inline void MarketData::set_mark_price(const char* value, + size_t size) { + + mark_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.mark_price) } -inline void MarketData::_internal_set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline std::string* MarketData::_internal_mutable_mark_price() { - best_bid_price_ = value; + return mark_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_mark_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.mark_price) + return mark_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::set_best_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_allocated_mark_price(std::string* mark_price) { + if (mark_price != nullptr) { + + } else { + + } + mark_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mark_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.mark_price) +} + +// string best_bid_price = 2 [json_name = "bestBidPrice"]; +inline void MarketData::clear_best_bid_price() { + best_bid_price_.ClearToEmpty(); +} +inline const std::string& MarketData::best_bid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_bid_price) + return _internal_best_bid_price(); +} +inline void MarketData::set_best_bid_price(const std::string& value) { _internal_set_best_bid_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_price) } +inline std::string* MarketData::mutable_best_bid_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.best_bid_price) + return _internal_mutable_best_bid_price(); +} +inline const std::string& MarketData::_internal_best_bid_price() const { + return best_bid_price_.Get(); +} +inline void MarketData::_internal_set_best_bid_price(const std::string& value) { + + best_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_best_bid_price(std::string&& value) { + + best_bid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.best_bid_price) +} +inline void MarketData::set_best_bid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + best_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.best_bid_price) +} +inline void MarketData::set_best_bid_price(const char* value, + size_t size) { + + best_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.best_bid_price) +} +inline std::string* MarketData::_internal_mutable_best_bid_price() { + + return best_bid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_best_bid_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.best_bid_price) + return best_bid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_best_bid_price(std::string* best_bid_price) { + if (best_bid_price != nullptr) { + + } else { + + } + best_bid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), best_bid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.best_bid_price) +} // uint64 best_bid_volume = 3 [json_name = "bestBidVolume"]; inline void MarketData::clear_best_bid_volume() { @@ -16701,25 +18240,66 @@ inline void MarketData::set_best_bid_volume(::PROTOBUF_NAMESPACE_ID::uint64 valu // @@protoc_insertion_point(field_set:vega.MarketData.best_bid_volume) } -// uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; +// string best_offer_price = 4 [json_name = "bestOfferPrice"]; inline void MarketData::clear_best_offer_price() { - best_offer_price_ = PROTOBUF_ULONGLONG(0); + best_offer_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_offer_price() const { - return best_offer_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_price() const { +inline const std::string& MarketData::best_offer_price() const { // @@protoc_insertion_point(field_get:vega.MarketData.best_offer_price) return _internal_best_offer_price(); } -inline void MarketData::_internal_set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - best_offer_price_ = value; -} -inline void MarketData::set_best_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_best_offer_price(const std::string& value) { _internal_set_best_offer_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_price) } +inline std::string* MarketData::mutable_best_offer_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.best_offer_price) + return _internal_mutable_best_offer_price(); +} +inline const std::string& MarketData::_internal_best_offer_price() const { + return best_offer_price_.Get(); +} +inline void MarketData::_internal_set_best_offer_price(const std::string& value) { + + best_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_best_offer_price(std::string&& value) { + + best_offer_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.best_offer_price) +} +inline void MarketData::set_best_offer_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + best_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.best_offer_price) +} +inline void MarketData::set_best_offer_price(const char* value, + size_t size) { + + best_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.best_offer_price) +} +inline std::string* MarketData::_internal_mutable_best_offer_price() { + + return best_offer_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_best_offer_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.best_offer_price) + return best_offer_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_best_offer_price(std::string* best_offer_price) { + if (best_offer_price != nullptr) { + + } else { + + } + best_offer_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), best_offer_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.best_offer_price) +} // uint64 best_offer_volume = 5 [json_name = "bestOfferVolume"]; inline void MarketData::clear_best_offer_volume() { @@ -16734,31 +18314,72 @@ inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_offer_volume() const { } inline void MarketData::_internal_set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - best_offer_volume_ = value; + best_offer_volume_ = value; +} +inline void MarketData::set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_best_offer_volume(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_volume) +} + +// string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; +inline void MarketData::clear_best_static_bid_price() { + best_static_bid_price_.ClearToEmpty(); +} +inline const std::string& MarketData::best_static_bid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_price) + return _internal_best_static_bid_price(); +} +inline void MarketData::set_best_static_bid_price(const std::string& value) { + _internal_set_best_static_bid_price(value); + // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_price) +} +inline std::string* MarketData::mutable_best_static_bid_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.best_static_bid_price) + return _internal_mutable_best_static_bid_price(); +} +inline const std::string& MarketData::_internal_best_static_bid_price() const { + return best_static_bid_price_.Get(); +} +inline void MarketData::_internal_set_best_static_bid_price(const std::string& value) { + + best_static_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_best_static_bid_price(std::string&& value) { + + best_static_bid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.best_static_bid_price) } -inline void MarketData::set_best_offer_volume(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_offer_volume(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_offer_volume) +inline void MarketData::set_best_static_bid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + best_static_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.best_static_bid_price) } +inline void MarketData::set_best_static_bid_price(const char* value, + size_t size) { -// uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; -inline void MarketData::clear_best_static_bid_price() { - best_static_bid_price_ = PROTOBUF_ULONGLONG(0); + best_static_bid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.best_static_bid_price) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_bid_price() const { - return best_static_bid_price_; +inline std::string* MarketData::_internal_mutable_best_static_bid_price() { + + return best_static_bid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_bid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.best_static_bid_price) - return _internal_best_static_bid_price(); +inline std::string* MarketData::release_best_static_bid_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.best_static_bid_price) + return best_static_bid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void MarketData::_internal_set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_allocated_best_static_bid_price(std::string* best_static_bid_price) { + if (best_static_bid_price != nullptr) { - best_static_bid_price_ = value; -} -inline void MarketData::set_best_static_bid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_best_static_bid_price(value); - // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_price) + } else { + + } + best_static_bid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), best_static_bid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.best_static_bid_price) } // uint64 best_static_bid_volume = 7 [json_name = "bestStaticBidVolume"]; @@ -16781,25 +18402,66 @@ inline void MarketData::set_best_static_bid_volume(::PROTOBUF_NAMESPACE_ID::uint // @@protoc_insertion_point(field_set:vega.MarketData.best_static_bid_volume) } -// uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; +// string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; inline void MarketData::clear_best_static_offer_price() { - best_static_offer_price_ = PROTOBUF_ULONGLONG(0); + best_static_offer_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_best_static_offer_price() const { - return best_static_offer_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::best_static_offer_price() const { +inline const std::string& MarketData::best_static_offer_price() const { // @@protoc_insertion_point(field_get:vega.MarketData.best_static_offer_price) return _internal_best_static_offer_price(); } -inline void MarketData::_internal_set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - best_static_offer_price_ = value; -} -inline void MarketData::set_best_static_offer_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_best_static_offer_price(const std::string& value) { _internal_set_best_static_offer_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_price) } +inline std::string* MarketData::mutable_best_static_offer_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.best_static_offer_price) + return _internal_mutable_best_static_offer_price(); +} +inline const std::string& MarketData::_internal_best_static_offer_price() const { + return best_static_offer_price_.Get(); +} +inline void MarketData::_internal_set_best_static_offer_price(const std::string& value) { + + best_static_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_best_static_offer_price(std::string&& value) { + + best_static_offer_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.best_static_offer_price) +} +inline void MarketData::set_best_static_offer_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + best_static_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.best_static_offer_price) +} +inline void MarketData::set_best_static_offer_price(const char* value, + size_t size) { + + best_static_offer_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.best_static_offer_price) +} +inline std::string* MarketData::_internal_mutable_best_static_offer_price() { + + return best_static_offer_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_best_static_offer_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.best_static_offer_price) + return best_static_offer_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_best_static_offer_price(std::string* best_static_offer_price) { + if (best_static_offer_price != nullptr) { + + } else { + + } + best_static_offer_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), best_static_offer_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.best_static_offer_price) +} // uint64 best_static_offer_volume = 9 [json_name = "bestStaticOfferVolume"]; inline void MarketData::clear_best_static_offer_volume() { @@ -16821,45 +18483,127 @@ inline void MarketData::set_best_static_offer_volume(::PROTOBUF_NAMESPACE_ID::ui // @@protoc_insertion_point(field_set:vega.MarketData.best_static_offer_volume) } -// uint64 mid_price = 10 [json_name = "midPrice"]; +// string mid_price = 10 [json_name = "midPrice"]; inline void MarketData::clear_mid_price() { - mid_price_ = PROTOBUF_ULONGLONG(0); + mid_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_mid_price() const { - return mid_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::mid_price() const { +inline const std::string& MarketData::mid_price() const { // @@protoc_insertion_point(field_get:vega.MarketData.mid_price) return _internal_mid_price(); } -inline void MarketData::_internal_set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - mid_price_ = value; -} -inline void MarketData::set_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_mid_price(const std::string& value) { _internal_set_mid_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.mid_price) } +inline std::string* MarketData::mutable_mid_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.mid_price) + return _internal_mutable_mid_price(); +} +inline const std::string& MarketData::_internal_mid_price() const { + return mid_price_.Get(); +} +inline void MarketData::_internal_set_mid_price(const std::string& value) { -// uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; -inline void MarketData::clear_static_mid_price() { - static_mid_price_ = PROTOBUF_ULONGLONG(0); + mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_static_mid_price() const { - return static_mid_price_; +inline void MarketData::set_mid_price(std::string&& value) { + + mid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.mid_price) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::static_mid_price() const { - // @@protoc_insertion_point(field_get:vega.MarketData.static_mid_price) - return _internal_static_mid_price(); +inline void MarketData::set_mid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.mid_price) +} +inline void MarketData::set_mid_price(const char* value, + size_t size) { + + mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.mid_price) +} +inline std::string* MarketData::_internal_mutable_mid_price() { + + return mid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_mid_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.mid_price) + return mid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_mid_price(std::string* mid_price) { + if (mid_price != nullptr) { + + } else { + + } + mid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.mid_price) } -inline void MarketData::_internal_set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - static_mid_price_ = value; +// string static_mid_price = 11 [json_name = "staticMidPrice"]; +inline void MarketData::clear_static_mid_price() { + static_mid_price_.ClearToEmpty(); } -inline void MarketData::set_static_mid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline const std::string& MarketData::static_mid_price() const { + // @@protoc_insertion_point(field_get:vega.MarketData.static_mid_price) + return _internal_static_mid_price(); +} +inline void MarketData::set_static_mid_price(const std::string& value) { _internal_set_static_mid_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.static_mid_price) } +inline std::string* MarketData::mutable_static_mid_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.static_mid_price) + return _internal_mutable_static_mid_price(); +} +inline const std::string& MarketData::_internal_static_mid_price() const { + return static_mid_price_.Get(); +} +inline void MarketData::_internal_set_static_mid_price(const std::string& value) { + + static_mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_static_mid_price(std::string&& value) { + + static_mid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.static_mid_price) +} +inline void MarketData::set_static_mid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + static_mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.static_mid_price) +} +inline void MarketData::set_static_mid_price(const char* value, + size_t size) { + + static_mid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.static_mid_price) +} +inline std::string* MarketData::_internal_mutable_static_mid_price() { + + return static_mid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_static_mid_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.static_mid_price) + return static_mid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_static_mid_price(std::string* static_mid_price) { + if (static_mid_price != nullptr) { + + } else { + + } + static_mid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), static_mid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.static_mid_price) +} // string market = 12 [json_name = "market"]; inline void MarketData::clear_market() { @@ -17002,25 +18746,66 @@ inline void MarketData::set_auction_start(::PROTOBUF_NAMESPACE_ID::int64 value) // @@protoc_insertion_point(field_set:vega.MarketData.auction_start) } -// uint64 indicative_price = 17 [json_name = "indicativePrice"]; +// string indicative_price = 17 [json_name = "indicativePrice"]; inline void MarketData::clear_indicative_price() { - indicative_price_ = PROTOBUF_ULONGLONG(0); + indicative_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::_internal_indicative_price() const { - return indicative_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 MarketData::indicative_price() const { +inline const std::string& MarketData::indicative_price() const { // @@protoc_insertion_point(field_get:vega.MarketData.indicative_price) return _internal_indicative_price(); } -inline void MarketData::_internal_set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - indicative_price_ = value; -} -inline void MarketData::set_indicative_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void MarketData::set_indicative_price(const std::string& value) { _internal_set_indicative_price(value); // @@protoc_insertion_point(field_set:vega.MarketData.indicative_price) } +inline std::string* MarketData::mutable_indicative_price() { + // @@protoc_insertion_point(field_mutable:vega.MarketData.indicative_price) + return _internal_mutable_indicative_price(); +} +inline const std::string& MarketData::_internal_indicative_price() const { + return indicative_price_.Get(); +} +inline void MarketData::_internal_set_indicative_price(const std::string& value) { + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MarketData::set_indicative_price(std::string&& value) { + + indicative_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.MarketData.indicative_price) +} +inline void MarketData::set_indicative_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.MarketData.indicative_price) +} +inline void MarketData::set_indicative_price(const char* value, + size_t size) { + + indicative_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.MarketData.indicative_price) +} +inline std::string* MarketData::_internal_mutable_indicative_price() { + + return indicative_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MarketData::release_indicative_price() { + // @@protoc_insertion_point(field_release:vega.MarketData.indicative_price) + return indicative_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MarketData::set_allocated_indicative_price(std::string* indicative_price) { + if (indicative_price != nullptr) { + + } else { + + } + indicative_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), indicative_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.MarketData.indicative_price) +} // uint64 indicative_volume = 18 [json_name = "indicativeVolume"]; inline void MarketData::clear_indicative_volume() { @@ -17554,45 +19339,127 @@ inline void LiquidityProviderFeeShare::set_allocated_average_entry_valuation(std // PriceMonitoringBounds -// uint64 min_valid_price = 1 [json_name = "minValidPrice"]; +// string min_valid_price = 1 [json_name = "minValidPrice"]; inline void PriceMonitoringBounds::clear_min_valid_price() { - min_valid_price_ = PROTOBUF_ULONGLONG(0); + min_valid_price_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_min_valid_price() const { - return min_valid_price_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::min_valid_price() const { +inline const std::string& PriceMonitoringBounds::min_valid_price() const { // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.min_valid_price) return _internal_min_valid_price(); } -inline void PriceMonitoringBounds::_internal_set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - min_valid_price_ = value; -} -inline void PriceMonitoringBounds::set_min_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PriceMonitoringBounds::set_min_valid_price(const std::string& value) { _internal_set_min_valid_price(value); // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.min_valid_price) } +inline std::string* PriceMonitoringBounds::mutable_min_valid_price() { + // @@protoc_insertion_point(field_mutable:vega.PriceMonitoringBounds.min_valid_price) + return _internal_mutable_min_valid_price(); +} +inline const std::string& PriceMonitoringBounds::_internal_min_valid_price() const { + return min_valid_price_.Get(); +} +inline void PriceMonitoringBounds::_internal_set_min_valid_price(const std::string& value) { -// uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; -inline void PriceMonitoringBounds::clear_max_valid_price() { - max_valid_price_ = PROTOBUF_ULONGLONG(0); + min_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::_internal_max_valid_price() const { - return max_valid_price_; +inline void PriceMonitoringBounds::set_min_valid_price(std::string&& value) { + + min_valid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.PriceMonitoringBounds.min_valid_price) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PriceMonitoringBounds::max_valid_price() const { - // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.max_valid_price) - return _internal_max_valid_price(); +inline void PriceMonitoringBounds::set_min_valid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + min_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.PriceMonitoringBounds.min_valid_price) +} +inline void PriceMonitoringBounds::set_min_valid_price(const char* value, + size_t size) { + + min_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.PriceMonitoringBounds.min_valid_price) +} +inline std::string* PriceMonitoringBounds::_internal_mutable_min_valid_price() { + + return min_valid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PriceMonitoringBounds::release_min_valid_price() { + // @@protoc_insertion_point(field_release:vega.PriceMonitoringBounds.min_valid_price) + return min_valid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PriceMonitoringBounds::set_allocated_min_valid_price(std::string* min_valid_price) { + if (min_valid_price != nullptr) { + + } else { + + } + min_valid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), min_valid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.PriceMonitoringBounds.min_valid_price) } -inline void PriceMonitoringBounds::_internal_set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { - max_valid_price_ = value; +// string max_valid_price = 2 [json_name = "maxValidPrice"]; +inline void PriceMonitoringBounds::clear_max_valid_price() { + max_valid_price_.ClearToEmpty(); +} +inline const std::string& PriceMonitoringBounds::max_valid_price() const { + // @@protoc_insertion_point(field_get:vega.PriceMonitoringBounds.max_valid_price) + return _internal_max_valid_price(); } -inline void PriceMonitoringBounds::set_max_valid_price(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PriceMonitoringBounds::set_max_valid_price(const std::string& value) { _internal_set_max_valid_price(value); // @@protoc_insertion_point(field_set:vega.PriceMonitoringBounds.max_valid_price) } +inline std::string* PriceMonitoringBounds::mutable_max_valid_price() { + // @@protoc_insertion_point(field_mutable:vega.PriceMonitoringBounds.max_valid_price) + return _internal_mutable_max_valid_price(); +} +inline const std::string& PriceMonitoringBounds::_internal_max_valid_price() const { + return max_valid_price_.Get(); +} +inline void PriceMonitoringBounds::_internal_set_max_valid_price(const std::string& value) { + + max_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PriceMonitoringBounds::set_max_valid_price(std::string&& value) { + + max_valid_price_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.PriceMonitoringBounds.max_valid_price) +} +inline void PriceMonitoringBounds::set_max_valid_price(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + max_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.PriceMonitoringBounds.max_valid_price) +} +inline void PriceMonitoringBounds::set_max_valid_price(const char* value, + size_t size) { + + max_valid_price_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.PriceMonitoringBounds.max_valid_price) +} +inline std::string* PriceMonitoringBounds::_internal_mutable_max_valid_price() { + + return max_valid_price_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PriceMonitoringBounds::release_max_valid_price() { + // @@protoc_insertion_point(field_release:vega.PriceMonitoringBounds.max_valid_price) + return max_valid_price_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PriceMonitoringBounds::set_allocated_max_valid_price(std::string* max_valid_price) { + if (max_valid_price != nullptr) { + + } else { + + } + max_valid_price_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), max_valid_price, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.PriceMonitoringBounds.max_valid_price) +} // .vega.PriceMonitoringTrigger trigger = 3 [json_name = "trigger"]; inline bool PriceMonitoringBounds::_internal_has_trigger() const { @@ -18402,25 +20269,66 @@ inline void LiquidityProvision::set_allocated_market_id(std::string* market_id) // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.market_id) } -// uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; +// string commitment_amount = 6 [json_name = "commitmentAmount"]; inline void LiquidityProvision::clear_commitment_amount() { - commitment_amount_ = PROTOBUF_ULONGLONG(0); + commitment_amount_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::_internal_commitment_amount() const { - return commitment_amount_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 LiquidityProvision::commitment_amount() const { +inline const std::string& LiquidityProvision::commitment_amount() const { // @@protoc_insertion_point(field_get:vega.LiquidityProvision.commitment_amount) return _internal_commitment_amount(); } -inline void LiquidityProvision::_internal_set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - commitment_amount_ = value; -} -inline void LiquidityProvision::set_commitment_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void LiquidityProvision::set_commitment_amount(const std::string& value) { _internal_set_commitment_amount(value); // @@protoc_insertion_point(field_set:vega.LiquidityProvision.commitment_amount) } +inline std::string* LiquidityProvision::mutable_commitment_amount() { + // @@protoc_insertion_point(field_mutable:vega.LiquidityProvision.commitment_amount) + return _internal_mutable_commitment_amount(); +} +inline const std::string& LiquidityProvision::_internal_commitment_amount() const { + return commitment_amount_.Get(); +} +inline void LiquidityProvision::_internal_set_commitment_amount(const std::string& value) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LiquidityProvision::set_commitment_amount(std::string&& value) { + + commitment_amount_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.LiquidityProvision.commitment_amount) +} +inline void LiquidityProvision::set_commitment_amount(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.LiquidityProvision.commitment_amount) +} +inline void LiquidityProvision::set_commitment_amount(const char* value, + size_t size) { + + commitment_amount_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.LiquidityProvision.commitment_amount) +} +inline std::string* LiquidityProvision::_internal_mutable_commitment_amount() { + + return commitment_amount_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LiquidityProvision::release_commitment_amount() { + // @@protoc_insertion_point(field_release:vega.LiquidityProvision.commitment_amount) + return commitment_amount_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LiquidityProvision::set_allocated_commitment_amount(std::string* commitment_amount) { + if (commitment_amount != nullptr) { + + } else { + + } + commitment_amount_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), commitment_amount, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.LiquidityProvision.commitment_amount) +} // string fee = 7 [json_name = "fee"]; inline void LiquidityProvision::clear_fee() { @@ -20159,6 +22067,128 @@ Node::delagations() const { return delagations_; } +// string score = 13 [json_name = "score"]; +inline void Node::clear_score() { + score_.ClearToEmpty(); +} +inline const std::string& Node::score() const { + // @@protoc_insertion_point(field_get:vega.Node.score) + return _internal_score(); +} +inline void Node::set_score(const std::string& value) { + _internal_set_score(value); + // @@protoc_insertion_point(field_set:vega.Node.score) +} +inline std::string* Node::mutable_score() { + // @@protoc_insertion_point(field_mutable:vega.Node.score) + return _internal_mutable_score(); +} +inline const std::string& Node::_internal_score() const { + return score_.Get(); +} +inline void Node::_internal_set_score(const std::string& value) { + + score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Node::set_score(std::string&& value) { + + score_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Node.score) +} +inline void Node::set_score(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.score) +} +inline void Node::set_score(const char* value, + size_t size) { + + score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Node.score) +} +inline std::string* Node::_internal_mutable_score() { + + return score_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Node::release_score() { + // @@protoc_insertion_point(field_release:vega.Node.score) + return score_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Node::set_allocated_score(std::string* score) { + if (score != nullptr) { + + } else { + + } + score_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), score, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Node.score) +} + +// string normalised_score = 14 [json_name = "normalisedScore"]; +inline void Node::clear_normalised_score() { + normalised_score_.ClearToEmpty(); +} +inline const std::string& Node::normalised_score() const { + // @@protoc_insertion_point(field_get:vega.Node.normalised_score) + return _internal_normalised_score(); +} +inline void Node::set_normalised_score(const std::string& value) { + _internal_set_normalised_score(value); + // @@protoc_insertion_point(field_set:vega.Node.normalised_score) +} +inline std::string* Node::mutable_normalised_score() { + // @@protoc_insertion_point(field_mutable:vega.Node.normalised_score) + return _internal_mutable_normalised_score(); +} +inline const std::string& Node::_internal_normalised_score() const { + return normalised_score_.Get(); +} +inline void Node::_internal_set_normalised_score(const std::string& value) { + + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Node::set_normalised_score(std::string&& value) { + + normalised_score_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:vega.Node.normalised_score) +} +inline void Node::set_normalised_score(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:vega.Node.normalised_score) +} +inline void Node::set_normalised_score(const char* value, + size_t size) { + + normalised_score_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:vega.Node.normalised_score) +} +inline std::string* Node::_internal_mutable_normalised_score() { + + return normalised_score_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Node::release_normalised_score() { + // @@protoc_insertion_point(field_release:vega.Node.normalised_score) + return normalised_score_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Node::set_allocated_normalised_score(std::string* normalised_score) { + if (normalised_score != nullptr) { + + } else { + + } + normalised_score_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), normalised_score, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:vega.Node.normalised_score) +} + // ------------------------------------------------------------------- // NodeData diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go index 3fda8210..2f748468 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/chain_events.pb.go @@ -104,7 +104,7 @@ type BuiltinAssetWithdrawal struct { // A Vega network party identifier (pub-key) PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // The amount to be withdrawn - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` } func (x *BuiltinAssetWithdrawal) Reset() { @@ -153,11 +153,11 @@ func (x *BuiltinAssetWithdrawal) GetPartyId() string { return "" } -func (x *BuiltinAssetWithdrawal) GetAmount() uint64 { +func (x *BuiltinAssetWithdrawal) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } // An event related to a Vega built-in asset @@ -1508,7 +1508,7 @@ var file_chain_events_proto_rawDesc = []byte{ 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x11, 0x42, 0x75, + 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x11, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go index a936160f..1d3cef3e 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/commands/v1/commands.pb.go @@ -92,7 +92,7 @@ type OrderSubmission struct { // Price for the order, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places, // , required field for limit orders, however it is not required for market orders - Price uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` + Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` // Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side) @@ -153,11 +153,11 @@ func (x *OrderSubmission) GetMarketId() string { return "" } -func (x *OrderSubmission) GetPrice() uint64 { +func (x *OrderSubmission) GetPrice() string { if x != nil { return x.Price } - return 0 + return "" } func (x *OrderSubmission) GetSize() uint64 { @@ -394,7 +394,7 @@ type LiquidityProvisionSubmission struct { // Market identifier for the order, required field MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Specified as a unitless number that represents the amount of settlement asset of the market - CommitmentAmount uint64 `protobuf:"varint,2,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` + CommitmentAmount string `protobuf:"bytes,2,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // A set of liquidity sell orders to meet the liquidity provision obligation @@ -444,11 +444,11 @@ func (x *LiquidityProvisionSubmission) GetMarketId() string { return "" } -func (x *LiquidityProvisionSubmission) GetCommitmentAmount() uint64 { +func (x *LiquidityProvisionSubmission) GetCommitmentAmount() string { if x != nil { return x.CommitmentAmount } - return 0 + return "" } func (x *LiquidityProvisionSubmission) GetFee() string { @@ -486,7 +486,7 @@ type WithdrawSubmission struct { unknownFields protoimpl.UnknownFields // The amount to be withdrawn - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // The asset we want to withdraw Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // Foreign chain specifics @@ -525,11 +525,11 @@ func (*WithdrawSubmission) Descriptor() ([]byte, []int) { return file_commands_v1_commands_proto_rawDescGZIP(), []int{4} } -func (x *WithdrawSubmission) GetAmount() uint64 { +func (x *WithdrawSubmission) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } func (x *WithdrawSubmission) GetAsset() string { @@ -673,7 +673,7 @@ type DelegateSubmission struct { // The ID for the node to delegate to NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // The amount of stake to delegate - Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` } func (x *DelegateSubmission) Reset() { @@ -715,11 +715,11 @@ func (x *DelegateSubmission) GetNodeId() string { return "" } -func (x *DelegateSubmission) GetAmount() uint64 { +func (x *DelegateSubmission) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } type UndelegateSubmission struct { @@ -729,7 +729,7 @@ type UndelegateSubmission struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // optional, if not specified = ALL - Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` Method UndelegateSubmission_Method `protobuf:"varint,3,opt,name=method,proto3,enum=vega.commands.v1.UndelegateSubmission_Method" json:"method,omitempty"` } @@ -772,11 +772,11 @@ func (x *UndelegateSubmission) GetNodeId() string { return "" } -func (x *UndelegateSubmission) GetAmount() uint64 { +func (x *UndelegateSubmission) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } func (x *UndelegateSubmission) GetMethod() UndelegateSubmission_Method { @@ -851,7 +851,7 @@ var file_commands_v1_commands_proto_rawDesc = []byte{ 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, + 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, @@ -904,7 +904,7 @@ var file_commands_v1_commands_proto_rawDesc = []byte{ 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, @@ -916,7 +916,7 @@ var file_commands_v1_commands_proto_rawDesc = []byte{ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x67, 0x0a, 0x12, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, @@ -937,12 +937,12 @@ var file_commands_v1_commands_proto_rawDesc = []byte{ 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf9, 0x01, 0x0a, 0x14, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go index f75fab41..f8adbe3e 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.pb.go @@ -959,6 +959,163 @@ func (x *ListVotesResponse) GetVotes() []*proto1.Vote { return nil } +type PartyStake struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` + CurrentStakeAvailable string `protobuf:"bytes,2,opt,name=current_stake_available,json=currentStakeAvailable,proto3" json:"current_stake_available,omitempty"` + StakeLinkings []*v1.StakeLinking `protobuf:"bytes,3,rep,name=stake_linkings,json=stakeLinkings,proto3" json:"stake_linkings,omitempty"` +} + +func (x *PartyStake) Reset() { + *x = PartyStake{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PartyStake) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PartyStake) ProtoMessage() {} + +func (x *PartyStake) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PartyStake.ProtoReflect.Descriptor instead. +func (*PartyStake) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{19} +} + +func (x *PartyStake) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +func (x *PartyStake) GetCurrentStakeAvailable() string { + if x != nil { + return x.CurrentStakeAvailable + } + return "" +} + +func (x *PartyStake) GetStakeLinkings() []*v1.StakeLinking { + if x != nil { + return x.StakeLinkings + } + return nil +} + +type ListPartiesStakeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` +} + +func (x *ListPartiesStakeRequest) Reset() { + *x = ListPartiesStakeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPartiesStakeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPartiesStakeRequest) ProtoMessage() {} + +func (x *ListPartiesStakeRequest) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPartiesStakeRequest.ProtoReflect.Descriptor instead. +func (*ListPartiesStakeRequest) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{20} +} + +func (x *ListPartiesStakeRequest) GetParty() string { + if x != nil { + return x.Party + } + return "" +} + +type ListPartiesStakeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PartiesStake []*PartyStake `protobuf:"bytes,1,rep,name=parties_stake,json=partiesStake,proto3" json:"parties_stake,omitempty"` +} + +func (x *ListPartiesStakeResponse) Reset() { + *x = ListPartiesStakeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPartiesStakeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPartiesStakeResponse) ProtoMessage() {} + +func (x *ListPartiesStakeResponse) ProtoReflect() protoreflect.Message { + mi := &file_coreapi_v1_coreapi_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPartiesStakeResponse.ProtoReflect.Descriptor instead. +func (*ListPartiesStakeResponse) Descriptor() ([]byte, []int) { + return file_coreapi_v1_coreapi_proto_rawDescGZIP(), []int{21} +} + +func (x *ListPartiesStakeResponse) GetPartiesStake() []*PartyStake { + if x != nil { + return x.PartiesStake + } + return nil +} + var File_coreapi_v1_coreapi_proto protoreflect.FileDescriptor var file_coreapi_v1_coreapi_proto_rawDesc = []byte{ @@ -1049,68 +1206,93 @@ var file_coreapi_v1_coreapi_proto_rawDesc = []byte{ 0x61, 0x72, 0x74, 0x79, 0x22, 0x35, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x32, 0xed, 0x06, 0x0a, 0x0e, - 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5b, - 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x24, + 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0a, + 0x50, 0x61, 0x72, 0x74, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, + 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x12, 0x36, 0x0a, 0x17, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x15, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x0d, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x2f, 0x0a, + 0x17, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x22, 0x5c, + 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x61, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x0c, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x32, 0xd6, 0x07, 0x0a, + 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x5b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, + 0x24, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0a, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0a, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x76, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x76, 0x65, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x65, 0x67, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, 0x69, - 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x24, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x12, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x73, 0x12, 0x25, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x64, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x4d, 0x0a, 0x1f, 0x69, - 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x2a, - 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, + 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, + 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x10, + 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x12, 0x28, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x65, 0x73, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x4d, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x2a, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, + 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1125,7 +1307,7 @@ func file_coreapi_v1_coreapi_proto_rawDescGZIP() []byte { return file_coreapi_v1_coreapi_proto_rawDescData } -var file_coreapi_v1_coreapi_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_coreapi_v1_coreapi_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_coreapi_v1_coreapi_proto_goTypes = []interface{}{ (*Account)(nil), // 0: vega.coreapi.v1.Account (*ListAccountsRequest)(nil), // 1: vega.coreapi.v1.ListAccountsRequest @@ -1146,48 +1328,56 @@ var file_coreapi_v1_coreapi_proto_goTypes = []interface{}{ (*ListMarketsDataResponse)(nil), // 16: vega.coreapi.v1.ListMarketsDataResponse (*ListVotesRequest)(nil), // 17: vega.coreapi.v1.ListVotesRequest (*ListVotesResponse)(nil), // 18: vega.coreapi.v1.ListVotesResponse - (*proto1.Asset)(nil), // 19: vega.Asset - (*proto1.NetworkParameter)(nil), // 20: vega.NetworkParameter - (*proto1.Party)(nil), // 21: vega.Party - (*v1.ValidatorUpdate)(nil), // 22: vega.events.v1.ValidatorUpdate - (*proto1.Market)(nil), // 23: vega.Market - (*proto1.Proposal)(nil), // 24: vega.Proposal - (*proto1.MarketData)(nil), // 25: vega.MarketData - (*proto1.Vote)(nil), // 26: vega.Vote + (*PartyStake)(nil), // 19: vega.coreapi.v1.PartyStake + (*ListPartiesStakeRequest)(nil), // 20: vega.coreapi.v1.ListPartiesStakeRequest + (*ListPartiesStakeResponse)(nil), // 21: vega.coreapi.v1.ListPartiesStakeResponse + (*proto1.Asset)(nil), // 22: vega.Asset + (*proto1.NetworkParameter)(nil), // 23: vega.NetworkParameter + (*proto1.Party)(nil), // 24: vega.Party + (*v1.ValidatorUpdate)(nil), // 25: vega.events.v1.ValidatorUpdate + (*proto1.Market)(nil), // 26: vega.Market + (*proto1.Proposal)(nil), // 27: vega.Proposal + (*proto1.MarketData)(nil), // 28: vega.MarketData + (*proto1.Vote)(nil), // 29: vega.Vote + (*v1.StakeLinking)(nil), // 30: vega.events.v1.StakeLinking } var file_coreapi_v1_coreapi_proto_depIdxs = []int32{ 0, // 0: vega.coreapi.v1.ListAccountsResponse.accounts:type_name -> vega.coreapi.v1.Account - 19, // 1: vega.coreapi.v1.ListAssetsResponse.assets:type_name -> vega.Asset - 20, // 2: vega.coreapi.v1.ListNetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter - 21, // 3: vega.coreapi.v1.ListPartiesResponse.parties:type_name -> vega.Party - 22, // 4: vega.coreapi.v1.ListValidatorsResponse.validators:type_name -> vega.events.v1.ValidatorUpdate - 23, // 5: vega.coreapi.v1.ListMarketsResponse.markets:type_name -> vega.Market - 24, // 6: vega.coreapi.v1.ListProposalsResponse.proposals:type_name -> vega.Proposal - 25, // 7: vega.coreapi.v1.ListMarketsDataResponse.markets_data:type_name -> vega.MarketData - 26, // 8: vega.coreapi.v1.ListVotesResponse.votes:type_name -> vega.Vote - 1, // 9: vega.coreapi.v1.CoreApiService.ListAccounts:input_type -> vega.coreapi.v1.ListAccountsRequest - 3, // 10: vega.coreapi.v1.CoreApiService.ListAssets:input_type -> vega.coreapi.v1.ListAssetsRequest - 5, // 11: vega.coreapi.v1.CoreApiService.ListNetworkParameters:input_type -> vega.coreapi.v1.ListNetworkParametersRequest - 7, // 12: vega.coreapi.v1.CoreApiService.ListParties:input_type -> vega.coreapi.v1.ListPartiesRequest - 9, // 13: vega.coreapi.v1.CoreApiService.ListValidators:input_type -> vega.coreapi.v1.ListValidatorsRequest - 11, // 14: vega.coreapi.v1.CoreApiService.ListMarkets:input_type -> vega.coreapi.v1.ListMarketsRequest - 13, // 15: vega.coreapi.v1.CoreApiService.ListProposals:input_type -> vega.coreapi.v1.ListProposalsRequest - 15, // 16: vega.coreapi.v1.CoreApiService.ListMarketsData:input_type -> vega.coreapi.v1.ListMarketsDataRequest - 17, // 17: vega.coreapi.v1.CoreApiService.ListVotes:input_type -> vega.coreapi.v1.ListVotesRequest - 2, // 18: vega.coreapi.v1.CoreApiService.ListAccounts:output_type -> vega.coreapi.v1.ListAccountsResponse - 4, // 19: vega.coreapi.v1.CoreApiService.ListAssets:output_type -> vega.coreapi.v1.ListAssetsResponse - 6, // 20: vega.coreapi.v1.CoreApiService.ListNetworkParameters:output_type -> vega.coreapi.v1.ListNetworkParametersResponse - 8, // 21: vega.coreapi.v1.CoreApiService.ListParties:output_type -> vega.coreapi.v1.ListPartiesResponse - 10, // 22: vega.coreapi.v1.CoreApiService.ListValidators:output_type -> vega.coreapi.v1.ListValidatorsResponse - 12, // 23: vega.coreapi.v1.CoreApiService.ListMarkets:output_type -> vega.coreapi.v1.ListMarketsResponse - 14, // 24: vega.coreapi.v1.CoreApiService.ListProposals:output_type -> vega.coreapi.v1.ListProposalsResponse - 16, // 25: vega.coreapi.v1.CoreApiService.ListMarketsData:output_type -> vega.coreapi.v1.ListMarketsDataResponse - 18, // 26: vega.coreapi.v1.CoreApiService.ListVotes:output_type -> vega.coreapi.v1.ListVotesResponse - 18, // [18:27] is the sub-list for method output_type - 9, // [9:18] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 22, // 1: vega.coreapi.v1.ListAssetsResponse.assets:type_name -> vega.Asset + 23, // 2: vega.coreapi.v1.ListNetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter + 24, // 3: vega.coreapi.v1.ListPartiesResponse.parties:type_name -> vega.Party + 25, // 4: vega.coreapi.v1.ListValidatorsResponse.validators:type_name -> vega.events.v1.ValidatorUpdate + 26, // 5: vega.coreapi.v1.ListMarketsResponse.markets:type_name -> vega.Market + 27, // 6: vega.coreapi.v1.ListProposalsResponse.proposals:type_name -> vega.Proposal + 28, // 7: vega.coreapi.v1.ListMarketsDataResponse.markets_data:type_name -> vega.MarketData + 29, // 8: vega.coreapi.v1.ListVotesResponse.votes:type_name -> vega.Vote + 30, // 9: vega.coreapi.v1.PartyStake.stake_linkings:type_name -> vega.events.v1.StakeLinking + 19, // 10: vega.coreapi.v1.ListPartiesStakeResponse.parties_stake:type_name -> vega.coreapi.v1.PartyStake + 1, // 11: vega.coreapi.v1.CoreApiService.ListAccounts:input_type -> vega.coreapi.v1.ListAccountsRequest + 3, // 12: vega.coreapi.v1.CoreApiService.ListAssets:input_type -> vega.coreapi.v1.ListAssetsRequest + 5, // 13: vega.coreapi.v1.CoreApiService.ListNetworkParameters:input_type -> vega.coreapi.v1.ListNetworkParametersRequest + 7, // 14: vega.coreapi.v1.CoreApiService.ListParties:input_type -> vega.coreapi.v1.ListPartiesRequest + 9, // 15: vega.coreapi.v1.CoreApiService.ListValidators:input_type -> vega.coreapi.v1.ListValidatorsRequest + 11, // 16: vega.coreapi.v1.CoreApiService.ListMarkets:input_type -> vega.coreapi.v1.ListMarketsRequest + 13, // 17: vega.coreapi.v1.CoreApiService.ListProposals:input_type -> vega.coreapi.v1.ListProposalsRequest + 15, // 18: vega.coreapi.v1.CoreApiService.ListMarketsData:input_type -> vega.coreapi.v1.ListMarketsDataRequest + 17, // 19: vega.coreapi.v1.CoreApiService.ListVotes:input_type -> vega.coreapi.v1.ListVotesRequest + 20, // 20: vega.coreapi.v1.CoreApiService.ListPartiesStake:input_type -> vega.coreapi.v1.ListPartiesStakeRequest + 2, // 21: vega.coreapi.v1.CoreApiService.ListAccounts:output_type -> vega.coreapi.v1.ListAccountsResponse + 4, // 22: vega.coreapi.v1.CoreApiService.ListAssets:output_type -> vega.coreapi.v1.ListAssetsResponse + 6, // 23: vega.coreapi.v1.CoreApiService.ListNetworkParameters:output_type -> vega.coreapi.v1.ListNetworkParametersResponse + 8, // 24: vega.coreapi.v1.CoreApiService.ListParties:output_type -> vega.coreapi.v1.ListPartiesResponse + 10, // 25: vega.coreapi.v1.CoreApiService.ListValidators:output_type -> vega.coreapi.v1.ListValidatorsResponse + 12, // 26: vega.coreapi.v1.CoreApiService.ListMarkets:output_type -> vega.coreapi.v1.ListMarketsResponse + 14, // 27: vega.coreapi.v1.CoreApiService.ListProposals:output_type -> vega.coreapi.v1.ListProposalsResponse + 16, // 28: vega.coreapi.v1.CoreApiService.ListMarketsData:output_type -> vega.coreapi.v1.ListMarketsDataResponse + 18, // 29: vega.coreapi.v1.CoreApiService.ListVotes:output_type -> vega.coreapi.v1.ListVotesResponse + 21, // 30: vega.coreapi.v1.CoreApiService.ListPartiesStake:output_type -> vega.coreapi.v1.ListPartiesStakeResponse + 21, // [21:31] is the sub-list for method output_type + 11, // [11:21] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_coreapi_v1_coreapi_proto_init() } @@ -1424,6 +1614,42 @@ func file_coreapi_v1_coreapi_proto_init() { return nil } } + file_coreapi_v1_coreapi_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PartyStake); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPartiesStakeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreapi_v1_coreapi_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPartiesStakeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1431,7 +1657,7 @@ func file_coreapi_v1_coreapi_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_coreapi_v1_coreapi_proto_rawDesc, NumEnums: 0, - NumMessages: 19, + NumMessages: 22, NumExtensions: 0, NumServices: 1, }, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go index 2cfdb2a3..3dce3855 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi.validator.pb.go @@ -138,3 +138,26 @@ func (this *ListVotesResponse) Validate() error { } return nil } +func (this *PartyStake) Validate() error { + for _, item := range this.StakeLinkings { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StakeLinkings", err) + } + } + } + return nil +} +func (this *ListPartiesStakeRequest) Validate() error { + return nil +} +func (this *ListPartiesStakeResponse) Validate() error { + for _, item := range this.PartiesStake { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("PartiesStake", err) + } + } + } + return nil +} diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go index e6d0efad..1b550b2d 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/coreapi/v1/coreapi_grpc.pb.go @@ -28,6 +28,7 @@ type CoreApiServiceClient interface { ListProposals(ctx context.Context, in *ListProposalsRequest, opts ...grpc.CallOption) (*ListProposalsResponse, error) ListMarketsData(ctx context.Context, in *ListMarketsDataRequest, opts ...grpc.CallOption) (*ListMarketsDataResponse, error) ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesResponse, error) + ListPartiesStake(ctx context.Context, in *ListPartiesStakeRequest, opts ...grpc.CallOption) (*ListPartiesStakeResponse, error) } type coreApiServiceClient struct { @@ -119,6 +120,15 @@ func (c *coreApiServiceClient) ListVotes(ctx context.Context, in *ListVotesReque return out, nil } +func (c *coreApiServiceClient) ListPartiesStake(ctx context.Context, in *ListPartiesStakeRequest, opts ...grpc.CallOption) (*ListPartiesStakeResponse, error) { + out := new(ListPartiesStakeResponse) + err := c.cc.Invoke(ctx, "/vega.coreapi.v1.CoreApiService/ListPartiesStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // CoreApiServiceServer is the server API for CoreApiService service. // All implementations must embed UnimplementedCoreApiServiceServer // for forward compatibility @@ -132,6 +142,7 @@ type CoreApiServiceServer interface { ListProposals(context.Context, *ListProposalsRequest) (*ListProposalsResponse, error) ListMarketsData(context.Context, *ListMarketsDataRequest) (*ListMarketsDataResponse, error) ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error) + ListPartiesStake(context.Context, *ListPartiesStakeRequest) (*ListPartiesStakeResponse, error) mustEmbedUnimplementedCoreApiServiceServer() } @@ -166,6 +177,9 @@ func (UnimplementedCoreApiServiceServer) ListMarketsData(context.Context, *ListM func (UnimplementedCoreApiServiceServer) ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListVotes not implemented") } +func (UnimplementedCoreApiServiceServer) ListPartiesStake(context.Context, *ListPartiesStakeRequest) (*ListPartiesStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPartiesStake not implemented") +} func (UnimplementedCoreApiServiceServer) mustEmbedUnimplementedCoreApiServiceServer() {} // UnsafeCoreApiServiceServer may be embedded to opt out of forward compatibility for this service. @@ -341,6 +355,24 @@ func _CoreApiService_ListVotes_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _CoreApiService_ListPartiesStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPartiesStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CoreApiServiceServer).ListPartiesStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vega.coreapi.v1.CoreApiService/ListPartiesStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CoreApiServiceServer).ListPartiesStake(ctx, req.(*ListPartiesStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + // CoreApiService_ServiceDesc is the grpc.ServiceDesc for CoreApiService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -384,6 +416,10 @@ var CoreApiService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListVotes", Handler: _CoreApiService_ListVotes_Handler, }, + { + MethodName: "ListPartiesStake", + Handler: _CoreApiService_ListPartiesStake_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "coreapi/v1/coreapi.proto", diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go index 9d4a6fd9..a43d1821 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.pb.go @@ -898,6 +898,9 @@ type TxErrorEvent struct { // *TxErrorEvent_VoteSubmission // *TxErrorEvent_LiquidityProvisionSubmission // *TxErrorEvent_WithdrawSubmission + // *TxErrorEvent_DelegateSubmission + // *TxErrorEvent_UndelegateSubmission + // *TxErrorEvent_RestoreSnapshot Transaction isTxErrorEvent_Transaction `protobuf_oneof:"transaction"` } @@ -1003,6 +1006,27 @@ func (x *TxErrorEvent) GetWithdrawSubmission() *v1.WithdrawSubmission { return nil } +func (x *TxErrorEvent) GetDelegateSubmission() *v1.DelegateSubmission { + if x, ok := x.GetTransaction().(*TxErrorEvent_DelegateSubmission); ok { + return x.DelegateSubmission + } + return nil +} + +func (x *TxErrorEvent) GetUndelegateSubmission() *v1.UndelegateSubmission { + if x, ok := x.GetTransaction().(*TxErrorEvent_UndelegateSubmission); ok { + return x.UndelegateSubmission + } + return nil +} + +func (x *TxErrorEvent) GetRestoreSnapshot() *v1.RestoreSnapshot { + if x, ok := x.GetTransaction().(*TxErrorEvent_RestoreSnapshot); ok { + return x.RestoreSnapshot + } + return nil +} + type isTxErrorEvent_Transaction interface { isTxErrorEvent_Transaction() } @@ -1035,6 +1059,18 @@ type TxErrorEvent_WithdrawSubmission struct { WithdrawSubmission *v1.WithdrawSubmission `protobuf:"bytes,107,opt,name=withdraw_submission,json=withdrawSubmission,proto3,oneof"` } +type TxErrorEvent_DelegateSubmission struct { + DelegateSubmission *v1.DelegateSubmission `protobuf:"bytes,108,opt,name=delegate_submission,json=delegateSubmission,proto3,oneof"` +} + +type TxErrorEvent_UndelegateSubmission struct { + UndelegateSubmission *v1.UndelegateSubmission `protobuf:"bytes,109,opt,name=undelegate_submission,json=undelegateSubmission,proto3,oneof"` +} + +type TxErrorEvent_RestoreSnapshot struct { + RestoreSnapshot *v1.RestoreSnapshot `protobuf:"bytes,110,opt,name=restore_snapshot,json=restoreSnapshot,proto3,oneof"` +} + func (*TxErrorEvent_OrderSubmission) isTxErrorEvent_Transaction() {} func (*TxErrorEvent_OrderAmendment) isTxErrorEvent_Transaction() {} @@ -1049,6 +1085,12 @@ func (*TxErrorEvent_LiquidityProvisionSubmission) isTxErrorEvent_Transaction() { func (*TxErrorEvent_WithdrawSubmission) isTxErrorEvent_Transaction() {} +func (*TxErrorEvent_DelegateSubmission) isTxErrorEvent_Transaction() {} + +func (*TxErrorEvent_UndelegateSubmission) isTxErrorEvent_Transaction() {} + +func (*TxErrorEvent_RestoreSnapshot) isTxErrorEvent_Transaction() {} + // A time update event contains the latest time update from Vega blockchain type TimeUpdate struct { state protoimpl.MessageState @@ -2545,7 +2587,7 @@ var file_events_v1_events_proto_rawDesc = []byte{ 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xa6, 0x05, 0x0a, 0x0c, 0x54, 0x78, 0x45, 0x72, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xae, 0x07, 0x0a, 0x0c, 0x54, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, @@ -2587,321 +2629,337 @@ var file_events_v1_events_proto_rawDesc = []byte{ 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x2a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x79, 0x0a, 0x0a, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, - 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x09, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, - 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, - 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x63, 0x0a, - 0x11, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, - 0xac, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x12, 0x4c, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, - 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x72, - 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x78, - 0x0a, 0x10, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x67, - 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x30, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x85, 0x02, 0x0a, 0x0c, 0x41, - 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x70, 0x65, 0x6e, - 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0e, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, - 0x2e, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, - 0x41, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x69, - 0x67, 0x67, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x70, - 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, - 0x67, 0x61, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x74, 0x68, 0x65, - 0x72, 0x65, 0x75, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x74, 0x6d, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6d, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x9d, 0x12, 0x0a, 0x08, 0x42, 0x75, 0x73, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x74, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, - 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x55, - 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, - 0x00, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x68, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x6a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, - 0x79, 0x48, 0x00, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x72, - 0x61, 0x64, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x48, 0x00, 0x52, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x12, - 0x39, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, - 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, - 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, - 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, 0x6f, - 0x74, 0x65, 0x48, 0x00, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x48, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x6c, 0x6f, 0x73, - 0x73, 0x5f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, - 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x73, 0x73, - 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, - 0x0f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, - 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x11, 0x73, 0x65, 0x74, 0x74, - 0x6c, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x73, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, - 0x65, 0x73, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x74, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x48, - 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x12, 0x23, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x05, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, - 0x74, 0x69, 0x63, 0x6b, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x54, 0x69, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x61, 0x6c, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0a, 0x77, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x18, 0x78, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x79, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, - 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x7a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, - 0x63, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x13, 0x6c, 0x69, 0x71, - 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x7c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, - 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x12, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x7d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, - 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0d, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, - 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x7e, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, - 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, - 0x6c, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x7f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x81, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x4f, 0x0a, - 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, - 0x18, 0x82, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x3e, - 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x83, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, - 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x84, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, - 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x85, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, - 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, - 0x69, 0x6e, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x61, - 0x79, 0x6f, 0x75, 0x74, 0x18, 0x86, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, - 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x0c, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x42, - 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x87, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x74, 0x78, - 0x5f, 0x65, 0x72, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0xd1, 0x0f, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, - 0x00, 0x52, 0x0a, 0x74, 0x78, 0x45, 0x72, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x07, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0xe3, 0x09, 0x0a, 0x0c, 0x42, 0x75, 0x73, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x42, 0x55, 0x53, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, + 0x6e, 0x12, 0x57, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x75, + 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x15, 0x75, 0x6e, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x10, 0x72, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x6e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x22, 0x79, 0x0a, 0x0a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x03, 0x73, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0x49, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1e, + 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x63, 0x0a, 0x11, 0x4c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, + 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x0f, 0x54, 0x72, + 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, + 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x64, + 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x74, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x78, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x22, 0x30, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, + 0x6d, 0x65, 0x22, 0x85, 0x02, 0x0a, 0x0c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, + 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x70, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x75, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x70, 0x65, 0x6e, 0x69, + 0x6e, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x61, + 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, + 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, + 0x0a, 0x0c, 0x76, 0x65, 0x67, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x67, 0x61, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x12, 0x29, 0x0a, 0x10, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x65, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x74, + 0x6d, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x6d, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x66, + 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, + 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x9d, + 0x12, 0x0a, 0x08, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, + 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x69, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, + 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x79, 0x48, 0x00, 0x52, 0x05, 0x70, 0x61, 0x72, + 0x74, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x48, 0x00, + 0x52, 0x05, 0x74, 0x72, 0x61, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x6d, 0x61, 0x72, 0x67, 0x69, + 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x6d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x12, 0x20, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x48, 0x00, 0x52, 0x04, 0x76, 0x6f, + 0x74, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x48, 0x00, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x12, 0x52, 0x0a, 0x12, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x73, 0x73, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0e, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x4f, 0x0a, 0x11, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, + 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x10, 0x73, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x64, 0x12, 0x35, 0x0a, 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x3d, 0x0a, + 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x18, 0x76, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x48, 0x00, + 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x0a, + 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x12, 0x29, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x78, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x61, + 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x79, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x75, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x0b, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x66, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x18, 0x7a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, + 0x72, 0x69, 0x73, 0x6b, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x11, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, + 0x7b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, + 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x12, 0x4b, 0x0a, 0x13, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x7c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x6c, 0x69, 0x71, 0x75, + 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, + 0x0a, 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x7d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x7e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, + 0x65, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, + 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x7f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, + 0x0a, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x12, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x81, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x82, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x83, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, + 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x84, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x6c, + 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x85, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x72, + 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x18, 0x86, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6f, 0x75, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x50, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x87, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x74, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x18, 0xd1, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x78, 0x45, 0x72, 0x72, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0xe3, + 0x09, 0x0a, 0x0c, 0x42, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, - 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, - 0x4e, 0x53, 0x45, 0x53, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x18, - 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, - 0x4e, 0x54, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x59, 0x10, 0x07, 0x12, 0x18, - 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x52, 0x41, 0x44, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, - 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x53, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x55, - 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, - 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x55, 0x53, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x0b, - 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x0c, - 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, - 0x45, 0x10, 0x0d, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, - 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, - 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, - 0x54, 0x4c, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0f, 0x12, 0x24, - 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x45, 0x53, 0x53, - 0x45, 0x44, 0x10, 0x10, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x52, - 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x10, - 0x12, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x54, 0x49, 0x43, 0x4b, 0x10, - 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x10, 0x14, - 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x15, 0x12, 0x1a, 0x0a, 0x16, - 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, - 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x49, 0x53, 0x4b, 0x5f, - 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x17, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, - 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, - 0x52, 0x4b, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x18, 0x12, 0x26, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x16, 0x0a, 0x12, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, + 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, + 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x53, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, - 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x19, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, - 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x1a, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, - 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, - 0x4c, 0x45, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x10, 0x1b, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, - 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, - 0x4c, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x1c, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, - 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, - 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x1d, - 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x53, 0x43, 0x4f, - 0x52, 0x45, 0x10, 0x1e, 0x12, 0x1f, 0x0a, 0x1b, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x50, 0x4f, 0x43, 0x48, 0x5f, 0x55, 0x50, 0x44, - 0x41, 0x54, 0x45, 0x10, 0x1f, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, - 0x52, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x20, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, - 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, - 0x4b, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x21, 0x12, 0x26, 0x0a, 0x22, - 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, - 0x45, 0x57, 0x41, 0x52, 0x44, 0x5f, 0x50, 0x41, 0x59, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x56, 0x45, - 0x4e, 0x54, 0x10, 0x22, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x50, 0x4f, 0x49, 0x4e, - 0x54, 0x10, 0x23, 0x12, 0x19, 0x0a, 0x15, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x10, 0x65, 0x12, 0x1c, - 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x58, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xc9, 0x01, 0x42, 0x4b, 0x0a, 0x1e, - 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, - 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x29, - 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x05, + 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, + 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x41, 0x52, 0x54, 0x59, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x45, 0x10, 0x08, + 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x53, + 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x10, 0x0a, 0x12, + 0x17, 0x0a, 0x13, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x56, 0x4f, 0x54, 0x45, 0x10, 0x0b, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, + 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x0c, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, + 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x0d, 0x12, 0x25, 0x0a, 0x21, 0x42, + 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, + 0x53, 0x53, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0f, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x5f, + 0x44, 0x49, 0x53, 0x54, 0x52, 0x45, 0x53, 0x53, 0x45, 0x44, 0x10, 0x10, 0x12, 0x21, 0x0a, 0x1d, + 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, + 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x11, 0x12, + 0x18, 0x0a, 0x14, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x10, 0x12, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x4b, + 0x45, 0x54, 0x5f, 0x54, 0x49, 0x43, 0x4b, 0x10, 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x55, 0x53, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x10, 0x14, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x10, 0x15, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, + 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x52, 0x49, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x17, + 0x12, 0x24, 0x0a, 0x20, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, + 0x45, 0x54, 0x45, 0x52, 0x10, 0x18, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, + 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x19, 0x12, 0x21, + 0x0a, 0x1d, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, + 0x1a, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x10, + 0x1b, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, + 0x1c, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, + 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x1d, 0x12, 0x22, 0x0a, 0x1e, 0x42, 0x55, 0x53, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x53, 0x43, 0x4f, 0x52, 0x45, 0x10, 0x1e, 0x12, 0x1f, 0x0a, 0x1b, + 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, + 0x50, 0x4f, 0x43, 0x48, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x1f, 0x12, 0x23, 0x0a, + 0x1f, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, + 0x10, 0x20, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x49, + 0x4e, 0x47, 0x10, 0x21, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x5f, 0x50, 0x41, + 0x59, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 0x22, 0x12, 0x1d, 0x0a, 0x19, + 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, + 0x48, 0x45, 0x43, 0x4b, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x23, 0x12, 0x19, 0x0a, 0x15, 0x42, + 0x55, 0x53, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, + 0x52, 0x4b, 0x45, 0x54, 0x10, 0x65, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x55, 0x53, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x58, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x10, 0xc9, 0x01, 0x42, 0x4b, 0x0a, 0x1e, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x29, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, + 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, + 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2949,26 +3007,29 @@ var file_events_v1_events_proto_goTypes = []interface{}{ (*v1.VoteSubmission)(nil), // 27: vega.commands.v1.VoteSubmission (*v1.LiquidityProvisionSubmission)(nil), // 28: vega.commands.v1.LiquidityProvisionSubmission (*v1.WithdrawSubmission)(nil), // 29: vega.commands.v1.WithdrawSubmission - (*proto1.TransferResponse)(nil), // 30: vega.TransferResponse - (proto1.AuctionTrigger)(0), // 31: vega.AuctionTrigger - (*proto1.Order)(nil), // 32: vega.Order - (*proto1.Account)(nil), // 33: vega.Account - (*proto1.Party)(nil), // 34: vega.Party - (*proto1.Trade)(nil), // 35: vega.Trade - (*proto1.MarginLevels)(nil), // 36: vega.MarginLevels - (*proto1.Proposal)(nil), // 37: vega.Proposal - (*proto1.Vote)(nil), // 38: vega.Vote - (*proto1.MarketData)(nil), // 39: vega.MarketData - (*v1.NodeSignature)(nil), // 40: vega.commands.v1.NodeSignature - (*proto1.Market)(nil), // 41: vega.Market - (*proto1.Asset)(nil), // 42: vega.Asset - (*proto1.Withdrawal)(nil), // 43: vega.Withdrawal - (*proto1.Deposit)(nil), // 44: vega.Deposit - (*proto1.RiskFactor)(nil), // 45: vega.RiskFactor - (*proto1.NetworkParameter)(nil), // 46: vega.NetworkParameter - (*proto1.LiquidityProvision)(nil), // 47: vega.LiquidityProvision - (*v11.OracleSpec)(nil), // 48: oracles.v1.OracleSpec - (*v11.OracleData)(nil), // 49: oracles.v1.OracleData + (*v1.DelegateSubmission)(nil), // 30: vega.commands.v1.DelegateSubmission + (*v1.UndelegateSubmission)(nil), // 31: vega.commands.v1.UndelegateSubmission + (*v1.RestoreSnapshot)(nil), // 32: vega.commands.v1.RestoreSnapshot + (*proto1.TransferResponse)(nil), // 33: vega.TransferResponse + (proto1.AuctionTrigger)(0), // 34: vega.AuctionTrigger + (*proto1.Order)(nil), // 35: vega.Order + (*proto1.Account)(nil), // 36: vega.Account + (*proto1.Party)(nil), // 37: vega.Party + (*proto1.Trade)(nil), // 38: vega.Trade + (*proto1.MarginLevels)(nil), // 39: vega.MarginLevels + (*proto1.Proposal)(nil), // 40: vega.Proposal + (*proto1.Vote)(nil), // 41: vega.Vote + (*proto1.MarketData)(nil), // 42: vega.MarketData + (*v1.NodeSignature)(nil), // 43: vega.commands.v1.NodeSignature + (*proto1.Market)(nil), // 44: vega.Market + (*proto1.Asset)(nil), // 45: vega.Asset + (*proto1.Withdrawal)(nil), // 46: vega.Withdrawal + (*proto1.Deposit)(nil), // 47: vega.Deposit + (*proto1.RiskFactor)(nil), // 48: vega.RiskFactor + (*proto1.NetworkParameter)(nil), // 49: vega.NetworkParameter + (*proto1.LiquidityProvision)(nil), // 50: vega.LiquidityProvision + (*v11.OracleSpec)(nil), // 51: oracles.v1.OracleSpec + (*v11.OracleData)(nil), // 52: oracles.v1.OracleData } var file_events_v1_events_proto_depIdxs = []int32{ 1, // 0: vega.events.v1.StakeLinking.type:type_name -> vega.events.v1.StakeLinking.Type @@ -2980,52 +3041,55 @@ var file_events_v1_events_proto_depIdxs = []int32{ 27, // 6: vega.events.v1.TxErrorEvent.vote_submission:type_name -> vega.commands.v1.VoteSubmission 28, // 7: vega.events.v1.TxErrorEvent.liquidity_provision_submission:type_name -> vega.commands.v1.LiquidityProvisionSubmission 29, // 8: vega.events.v1.TxErrorEvent.withdraw_submission:type_name -> vega.commands.v1.WithdrawSubmission - 30, // 9: vega.events.v1.TransferResponses.responses:type_name -> vega.TransferResponse - 16, // 10: vega.events.v1.SettlePosition.trade_settlements:type_name -> vega.events.v1.TradeSettlement - 31, // 11: vega.events.v1.AuctionEvent.trigger:type_name -> vega.AuctionTrigger - 31, // 12: vega.events.v1.AuctionEvent.extension_trigger:type_name -> vega.AuctionTrigger - 0, // 13: vega.events.v1.BusEvent.type:type_name -> vega.events.v1.BusEventType - 11, // 14: vega.events.v1.BusEvent.time_update:type_name -> vega.events.v1.TimeUpdate - 13, // 15: vega.events.v1.BusEvent.transfer_responses:type_name -> vega.events.v1.TransferResponses - 14, // 16: vega.events.v1.BusEvent.position_resolution:type_name -> vega.events.v1.PositionResolution - 32, // 17: vega.events.v1.BusEvent.order:type_name -> vega.Order - 33, // 18: vega.events.v1.BusEvent.account:type_name -> vega.Account - 34, // 19: vega.events.v1.BusEvent.party:type_name -> vega.Party - 35, // 20: vega.events.v1.BusEvent.trade:type_name -> vega.Trade - 36, // 21: vega.events.v1.BusEvent.margin_levels:type_name -> vega.MarginLevels - 37, // 22: vega.events.v1.BusEvent.proposal:type_name -> vega.Proposal - 38, // 23: vega.events.v1.BusEvent.vote:type_name -> vega.Vote - 39, // 24: vega.events.v1.BusEvent.market_data:type_name -> vega.MarketData - 40, // 25: vega.events.v1.BusEvent.node_signature:type_name -> vega.commands.v1.NodeSignature - 15, // 26: vega.events.v1.BusEvent.loss_socialization:type_name -> vega.events.v1.LossSocialization - 17, // 27: vega.events.v1.BusEvent.settle_position:type_name -> vega.events.v1.SettlePosition - 18, // 28: vega.events.v1.BusEvent.settle_distressed:type_name -> vega.events.v1.SettleDistressed - 41, // 29: vega.events.v1.BusEvent.market_created:type_name -> vega.Market - 42, // 30: vega.events.v1.BusEvent.asset:type_name -> vega.Asset - 19, // 31: vega.events.v1.BusEvent.market_tick:type_name -> vega.events.v1.MarketTick - 43, // 32: vega.events.v1.BusEvent.withdrawal:type_name -> vega.Withdrawal - 44, // 33: vega.events.v1.BusEvent.deposit:type_name -> vega.Deposit - 20, // 34: vega.events.v1.BusEvent.auction:type_name -> vega.events.v1.AuctionEvent - 45, // 35: vega.events.v1.BusEvent.risk_factor:type_name -> vega.RiskFactor - 46, // 36: vega.events.v1.BusEvent.network_parameter:type_name -> vega.NetworkParameter - 47, // 37: vega.events.v1.BusEvent.liquidity_provision:type_name -> vega.LiquidityProvision - 41, // 38: vega.events.v1.BusEvent.market_updated:type_name -> vega.Market - 48, // 39: vega.events.v1.BusEvent.oracle_spec:type_name -> oracles.v1.OracleSpec - 49, // 40: vega.events.v1.BusEvent.oracle_data:type_name -> oracles.v1.OracleData - 7, // 41: vega.events.v1.BusEvent.delegation_balance:type_name -> vega.events.v1.DelegationBalanceEvent - 6, // 42: vega.events.v1.BusEvent.validator_score:type_name -> vega.events.v1.ValidatorScoreEvent - 12, // 43: vega.events.v1.BusEvent.epoch_event:type_name -> vega.events.v1.EpochEvent - 21, // 44: vega.events.v1.BusEvent.validator_update:type_name -> vega.events.v1.ValidatorUpdate - 3, // 45: vega.events.v1.BusEvent.stake_linking:type_name -> vega.events.v1.StakeLinking - 5, // 46: vega.events.v1.BusEvent.reward_payout:type_name -> vega.events.v1.RewardPayoutEvent - 4, // 47: vega.events.v1.BusEvent.checkpoint:type_name -> vega.events.v1.CheckpointEvent - 9, // 48: vega.events.v1.BusEvent.market:type_name -> vega.events.v1.MarketEvent - 10, // 49: vega.events.v1.BusEvent.tx_err_event:type_name -> vega.events.v1.TxErrorEvent - 50, // [50:50] is the sub-list for method output_type - 50, // [50:50] is the sub-list for method input_type - 50, // [50:50] is the sub-list for extension type_name - 50, // [50:50] is the sub-list for extension extendee - 0, // [0:50] is the sub-list for field type_name + 30, // 9: vega.events.v1.TxErrorEvent.delegate_submission:type_name -> vega.commands.v1.DelegateSubmission + 31, // 10: vega.events.v1.TxErrorEvent.undelegate_submission:type_name -> vega.commands.v1.UndelegateSubmission + 32, // 11: vega.events.v1.TxErrorEvent.restore_snapshot:type_name -> vega.commands.v1.RestoreSnapshot + 33, // 12: vega.events.v1.TransferResponses.responses:type_name -> vega.TransferResponse + 16, // 13: vega.events.v1.SettlePosition.trade_settlements:type_name -> vega.events.v1.TradeSettlement + 34, // 14: vega.events.v1.AuctionEvent.trigger:type_name -> vega.AuctionTrigger + 34, // 15: vega.events.v1.AuctionEvent.extension_trigger:type_name -> vega.AuctionTrigger + 0, // 16: vega.events.v1.BusEvent.type:type_name -> vega.events.v1.BusEventType + 11, // 17: vega.events.v1.BusEvent.time_update:type_name -> vega.events.v1.TimeUpdate + 13, // 18: vega.events.v1.BusEvent.transfer_responses:type_name -> vega.events.v1.TransferResponses + 14, // 19: vega.events.v1.BusEvent.position_resolution:type_name -> vega.events.v1.PositionResolution + 35, // 20: vega.events.v1.BusEvent.order:type_name -> vega.Order + 36, // 21: vega.events.v1.BusEvent.account:type_name -> vega.Account + 37, // 22: vega.events.v1.BusEvent.party:type_name -> vega.Party + 38, // 23: vega.events.v1.BusEvent.trade:type_name -> vega.Trade + 39, // 24: vega.events.v1.BusEvent.margin_levels:type_name -> vega.MarginLevels + 40, // 25: vega.events.v1.BusEvent.proposal:type_name -> vega.Proposal + 41, // 26: vega.events.v1.BusEvent.vote:type_name -> vega.Vote + 42, // 27: vega.events.v1.BusEvent.market_data:type_name -> vega.MarketData + 43, // 28: vega.events.v1.BusEvent.node_signature:type_name -> vega.commands.v1.NodeSignature + 15, // 29: vega.events.v1.BusEvent.loss_socialization:type_name -> vega.events.v1.LossSocialization + 17, // 30: vega.events.v1.BusEvent.settle_position:type_name -> vega.events.v1.SettlePosition + 18, // 31: vega.events.v1.BusEvent.settle_distressed:type_name -> vega.events.v1.SettleDistressed + 44, // 32: vega.events.v1.BusEvent.market_created:type_name -> vega.Market + 45, // 33: vega.events.v1.BusEvent.asset:type_name -> vega.Asset + 19, // 34: vega.events.v1.BusEvent.market_tick:type_name -> vega.events.v1.MarketTick + 46, // 35: vega.events.v1.BusEvent.withdrawal:type_name -> vega.Withdrawal + 47, // 36: vega.events.v1.BusEvent.deposit:type_name -> vega.Deposit + 20, // 37: vega.events.v1.BusEvent.auction:type_name -> vega.events.v1.AuctionEvent + 48, // 38: vega.events.v1.BusEvent.risk_factor:type_name -> vega.RiskFactor + 49, // 39: vega.events.v1.BusEvent.network_parameter:type_name -> vega.NetworkParameter + 50, // 40: vega.events.v1.BusEvent.liquidity_provision:type_name -> vega.LiquidityProvision + 44, // 41: vega.events.v1.BusEvent.market_updated:type_name -> vega.Market + 51, // 42: vega.events.v1.BusEvent.oracle_spec:type_name -> oracles.v1.OracleSpec + 52, // 43: vega.events.v1.BusEvent.oracle_data:type_name -> oracles.v1.OracleData + 7, // 44: vega.events.v1.BusEvent.delegation_balance:type_name -> vega.events.v1.DelegationBalanceEvent + 6, // 45: vega.events.v1.BusEvent.validator_score:type_name -> vega.events.v1.ValidatorScoreEvent + 12, // 46: vega.events.v1.BusEvent.epoch_event:type_name -> vega.events.v1.EpochEvent + 21, // 47: vega.events.v1.BusEvent.validator_update:type_name -> vega.events.v1.ValidatorUpdate + 3, // 48: vega.events.v1.BusEvent.stake_linking:type_name -> vega.events.v1.StakeLinking + 5, // 49: vega.events.v1.BusEvent.reward_payout:type_name -> vega.events.v1.RewardPayoutEvent + 4, // 50: vega.events.v1.BusEvent.checkpoint:type_name -> vega.events.v1.CheckpointEvent + 9, // 51: vega.events.v1.BusEvent.market:type_name -> vega.events.v1.MarketEvent + 10, // 52: vega.events.v1.BusEvent.tx_err_event:type_name -> vega.events.v1.TxErrorEvent + 53, // [53:53] is the sub-list for method output_type + 53, // [53:53] is the sub-list for method input_type + 53, // [53:53] is the sub-list for extension type_name + 53, // [53:53] is the sub-list for extension extendee + 0, // [0:53] is the sub-list for field type_name } func init() { file_events_v1_events_proto_init() } @@ -3283,6 +3347,9 @@ func file_events_v1_events_proto_init() { (*TxErrorEvent_VoteSubmission)(nil), (*TxErrorEvent_LiquidityProvisionSubmission)(nil), (*TxErrorEvent_WithdrawSubmission)(nil), + (*TxErrorEvent_DelegateSubmission)(nil), + (*TxErrorEvent_UndelegateSubmission)(nil), + (*TxErrorEvent_RestoreSnapshot)(nil), } file_events_v1_events_proto_msgTypes[19].OneofWrappers = []interface{}{ (*BusEvent_TimeUpdate)(nil), diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go index 768ac809..51ba0037 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/events/v1/events.validator.pb.go @@ -90,6 +90,27 @@ func (this *TxErrorEvent) Validate() error { } } } + if oneOfNester, ok := this.GetTransaction().(*TxErrorEvent_DelegateSubmission); ok { + if oneOfNester.DelegateSubmission != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.DelegateSubmission); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("DelegateSubmission", err) + } + } + } + if oneOfNester, ok := this.GetTransaction().(*TxErrorEvent_UndelegateSubmission); ok { + if oneOfNester.UndelegateSubmission != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.UndelegateSubmission); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("UndelegateSubmission", err) + } + } + } + if oneOfNester, ok := this.GetTransaction().(*TxErrorEvent_RestoreSnapshot); ok { + if oneOfNester.RestoreSnapshot != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.RestoreSnapshot); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("RestoreSnapshot", err) + } + } + } return nil } func (this *TimeUpdate) Validate() error { diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/governance.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/governance.pb.go index e001708f..df23c9fa 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/governance.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/governance.pb.go @@ -701,7 +701,7 @@ type NewMarketCommitment struct { unknownFields protoimpl.UnknownFields // Specified as a unitless number that represents the amount of settlement asset of the market - CommitmentAmount uint64 `protobuf:"varint,1,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` + CommitmentAmount string `protobuf:"bytes,1,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers Fee string `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // A set of liquidity sell orders to meet the liquidity provision obligation @@ -744,11 +744,11 @@ func (*NewMarketCommitment) Descriptor() ([]byte, []int) { return file_governance_proto_rawDescGZIP(), []int{3} } -func (x *NewMarketCommitment) GetCommitmentAmount() uint64 { +func (x *NewMarketCommitment) GetCommitmentAmount() string { if x != nil { return x.CommitmentAmount } - return 0 + return "" } func (x *NewMarketCommitment) GetFee() string { @@ -1334,7 +1334,7 @@ type Vote struct { // Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Total number of governance token for the party that casted the vote - TotalGovernanceTokenBalance uint64 `protobuf:"varint,5,opt,name=total_governance_token_balance,json=totalGovernanceTokenBalance,proto3" json:"total_governance_token_balance,omitempty"` + TotalGovernanceTokenBalance string `protobuf:"bytes,5,opt,name=total_governance_token_balance,json=totalGovernanceTokenBalance,proto3" json:"total_governance_token_balance,omitempty"` // The weight of this vote based on the total of governance token TotalGovernanceTokenWeight string `protobuf:"bytes,6,opt,name=total_governance_token_weight,json=totalGovernanceTokenWeight,proto3" json:"total_governance_token_weight,omitempty"` } @@ -1399,11 +1399,11 @@ func (x *Vote) GetTimestamp() int64 { return 0 } -func (x *Vote) GetTotalGovernanceTokenBalance() uint64 { +func (x *Vote) GetTotalGovernanceTokenBalance() string { if x != nil { return x.TotalGovernanceTokenBalance } - return 0 + return "" } func (x *Vote) GetTotalGovernanceTokenWeight() string { @@ -1505,7 +1505,7 @@ var file_governance_proto_rawDesc = []byte{ 0x01, 0x0a, 0x13, 0x4e, 0x65, 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, + 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x4c, 0x69, 0x71, 0x75, @@ -1629,7 +1629,7 @@ var file_governance_proto_rawDesc = []byte{ 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x1e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1b, 0x74, 0x6f, 0x74, 0x61, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x1d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, diff --git a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go index e889f690..ac907a64 100644 --- a/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go +++ b/grpc/clients/go/generated/code.vegaprotocol.io/vega/proto/vega.pb.go @@ -1303,7 +1303,7 @@ type Price struct { // Price value, given as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *Price) Reset() { @@ -1338,11 +1338,11 @@ func (*Price) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{0} } -func (x *Price) GetValue() uint64 { +func (x *Price) GetValue() string { if x != nil { return x.Value } - return 0 + return "" } // A timestamp in nanoseconds since epoch @@ -1670,7 +1670,7 @@ type Order struct { Side Side `protobuf:"varint,4,opt,name=side,proto3,enum=vega.Side" json:"side,omitempty"` // Price for the order, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - Price uint64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` + Price string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"` // Size for the order, for example, in a futures market the size equals the number of contracts Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED @@ -1769,11 +1769,11 @@ func (x *Order) GetSide() Side { return Side_SIDE_UNSPECIFIED } -func (x *Order) GetPrice() uint64 { +func (x *Order) GetPrice() string { if x != nil { return x.Price } - return 0 + return "" } func (x *Order) GetSize() uint64 { @@ -1999,7 +1999,7 @@ type AuctionIndicativeState struct { // The market identifier for which this state relates to MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now - IndicativePrice uint64 `protobuf:"varint,2,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"` + IndicativePrice string `protobuf:"bytes,2,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"` // The Indicative Uncrossing Volume is the volume available at the Indicative crossing price if we uncrossed the auction now IndicativeVolume uint64 `protobuf:"varint,3,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"` // The timestamp at which the auction started @@ -2047,11 +2047,11 @@ func (x *AuctionIndicativeState) GetMarketId() string { return "" } -func (x *AuctionIndicativeState) GetIndicativePrice() uint64 { +func (x *AuctionIndicativeState) GetIndicativePrice() string { if x != nil { return x.IndicativePrice } - return 0 + return "" } func (x *AuctionIndicativeState) GetIndicativeVolume() uint64 { @@ -2087,7 +2087,7 @@ type Trade struct { MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Price for the trade, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` + Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` // Size filled for the trade Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Unique party identifier for the buyer @@ -2161,11 +2161,11 @@ func (x *Trade) GetMarketId() string { return "" } -func (x *Trade) GetPrice() uint64 { +func (x *Trade) GetPrice() string { if x != nil { return x.Price } - return 0 + return "" } func (x *Trade) GetSize() uint64 { @@ -2259,11 +2259,11 @@ type Fee struct { unknownFields protoimpl.UnknownFields // Fee amount paid to the non-aggressive party of the trade - MakerFee uint64 `protobuf:"varint,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"` + MakerFee string `protobuf:"bytes,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"` // Fee amount paid for maintaining the Vega infrastructure - InfrastructureFee uint64 `protobuf:"varint,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"` + InfrastructureFee string `protobuf:"bytes,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"` // Fee amount paid to market makers - LiquidityFee uint64 `protobuf:"varint,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"` + LiquidityFee string `protobuf:"bytes,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"` } func (x *Fee) Reset() { @@ -2298,25 +2298,25 @@ func (*Fee) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{11} } -func (x *Fee) GetMakerFee() uint64 { +func (x *Fee) GetMakerFee() string { if x != nil { return x.MakerFee } - return 0 + return "" } -func (x *Fee) GetInfrastructureFee() uint64 { +func (x *Fee) GetInfrastructureFee() string { if x != nil { return x.InfrastructureFee } - return 0 + return "" } -func (x *Fee) GetLiquidityFee() uint64 { +func (x *Fee) GetLiquidityFee() string { if x != nil { return x.LiquidityFee } - return 0 + return "" } type TradeSet struct { @@ -2380,13 +2380,13 @@ type Candle struct { // An ISO-8601 datetime with nanosecond precision for when the candle was last updated Datetime string `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"` // Highest price for trading during the candle interval - High uint64 `protobuf:"varint,3,opt,name=high,proto3" json:"high,omitempty"` + High string `protobuf:"bytes,3,opt,name=high,proto3" json:"high,omitempty"` // Lowest price for trading during the candle interval - Low uint64 `protobuf:"varint,4,opt,name=low,proto3" json:"low,omitempty"` + Low string `protobuf:"bytes,4,opt,name=low,proto3" json:"low,omitempty"` // Open trade price - Open uint64 `protobuf:"varint,5,opt,name=open,proto3" json:"open,omitempty"` + Open string `protobuf:"bytes,5,opt,name=open,proto3" json:"open,omitempty"` // Closing trade price - Close uint64 `protobuf:"varint,6,opt,name=close,proto3" json:"close,omitempty"` + Close string `protobuf:"bytes,6,opt,name=close,proto3" json:"close,omitempty"` // Total trading volume during the candle interval Volume uint64 `protobuf:"varint,7,opt,name=volume,proto3" json:"volume,omitempty"` // Time interval for the candle - See [`Interval`](#vega.Interval) @@ -2439,32 +2439,32 @@ func (x *Candle) GetDatetime() string { return "" } -func (x *Candle) GetHigh() uint64 { +func (x *Candle) GetHigh() string { if x != nil { return x.High } - return 0 + return "" } -func (x *Candle) GetLow() uint64 { +func (x *Candle) GetLow() string { if x != nil { return x.Low } - return 0 + return "" } -func (x *Candle) GetOpen() uint64 { +func (x *Candle) GetOpen() string { if x != nil { return x.Open } - return 0 + return "" } -func (x *Candle) GetClose() uint64 { +func (x *Candle) GetClose() string { if x != nil { return x.Close } - return 0 + return "" } func (x *Candle) GetVolume() uint64 { @@ -2489,7 +2489,7 @@ type PriceLevel struct { // Price for the price level, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - Price uint64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"` + Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` // Number of orders at the price level NumberOfOrders uint64 `protobuf:"varint,2,opt,name=number_of_orders,json=numberOfOrders,proto3" json:"number_of_orders,omitempty"` // Volume at the price level @@ -2528,11 +2528,11 @@ func (*PriceLevel) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{14} } -func (x *PriceLevel) GetPrice() uint64 { +func (x *PriceLevel) GetPrice() string { if x != nil { return x.Price } - return 0 + return "" } func (x *PriceLevel) GetNumberOfOrders() uint64 { @@ -2714,12 +2714,12 @@ type Position struct { // Open volume for the position, value is signed +ve for long and -ve for short OpenVolume int64 `protobuf:"varint,3,opt,name=open_volume,json=openVolume,proto3" json:"open_volume,omitempty"` // Realised profit and loss for the position, value is signed +ve for long and -ve for short - RealisedPnl int64 `protobuf:"varint,4,opt,name=realised_pnl,json=realisedPnl,proto3" json:"realised_pnl,omitempty"` + RealisedPnl string `protobuf:"bytes,4,opt,name=realised_pnl,json=realisedPnl,proto3" json:"realised_pnl,omitempty"` // Unrealised profit and loss for the position, value is signed +ve for long and -ve for short - UnrealisedPnl int64 `protobuf:"varint,5,opt,name=unrealised_pnl,json=unrealisedPnl,proto3" json:"unrealised_pnl,omitempty"` + UnrealisedPnl string `protobuf:"bytes,5,opt,name=unrealised_pnl,json=unrealisedPnl,proto3" json:"unrealised_pnl,omitempty"` // Average entry price for the position, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - AverageEntryPrice uint64 `protobuf:"varint,6,opt,name=average_entry_price,json=averageEntryPrice,proto3" json:"average_entry_price,omitempty"` + AverageEntryPrice string `protobuf:"bytes,6,opt,name=average_entry_price,json=averageEntryPrice,proto3" json:"average_entry_price,omitempty"` // Timestamp for the latest time the position was updated UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` } @@ -2777,25 +2777,25 @@ func (x *Position) GetOpenVolume() int64 { return 0 } -func (x *Position) GetRealisedPnl() int64 { +func (x *Position) GetRealisedPnl() string { if x != nil { return x.RealisedPnl } - return 0 + return "" } -func (x *Position) GetUnrealisedPnl() int64 { +func (x *Position) GetUnrealisedPnl() string { if x != nil { return x.UnrealisedPnl } - return 0 + return "" } -func (x *Position) GetAverageEntryPrice() uint64 { +func (x *Position) GetAverageEntryPrice() string { if x != nil { return x.AverageEntryPrice } - return 0 + return "" } func (x *Position) GetUpdatedAt() int64 { @@ -2814,7 +2814,7 @@ type PositionTrade struct { Volume int64 `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"` // Price for the position trade, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - Price uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` + Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` } func (x *PositionTrade) Reset() { @@ -2856,11 +2856,11 @@ func (x *PositionTrade) GetVolume() int64 { return 0 } -func (x *PositionTrade) GetPrice() uint64 { +func (x *PositionTrade) GetPrice() string { if x != nil { return x.Price } - return 0 + return "" } // A deposit on to the Vega network @@ -2986,7 +2986,7 @@ type Withdrawal struct { // Unique party identifier of the user initiating the withdrawal PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // The amount to be withdrawn - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // The asset we want to withdraw funds from Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` // The status of the withdrawal @@ -3052,11 +3052,11 @@ func (x *Withdrawal) GetPartyId() string { return "" } -func (x *Withdrawal) GetAmount() uint64 { +func (x *Withdrawal) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } func (x *Withdrawal) GetAsset() string { @@ -3248,7 +3248,7 @@ type Account struct { // Balance of the asset, the balance is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places // and importantly balances cannot be negative - Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` + Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` // Asset identifier for the account Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` // Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty @@ -3303,11 +3303,11 @@ func (x *Account) GetOwner() string { return "" } -func (x *Account) GetBalance() uint64 { +func (x *Account) GetBalance() string { if x != nil { return x.Balance } - return 0 + return "" } func (x *Account) GetAsset() string { @@ -3338,7 +3338,7 @@ type FinancialAmount struct { unknownFields protoimpl.UnknownFields // A signed integer amount of asset - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // Asset identifier Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` } @@ -3375,11 +3375,11 @@ func (*FinancialAmount) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{24} } -func (x *FinancialAmount) GetAmount() uint64 { +func (x *FinancialAmount) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } func (x *FinancialAmount) GetAsset() string { @@ -3402,7 +3402,7 @@ type Transfer struct { // The type of transfer, gives the reason for the transfer Type TransferType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"` // A minimum amount - MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + MinAmount string `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` } func (x *Transfer) Reset() { @@ -3458,11 +3458,11 @@ func (x *Transfer) GetType() TransferType { return TransferType_TRANSFER_TYPE_UNSPECIFIED } -func (x *Transfer) GetMinAmount() uint64 { +func (x *Transfer) GetMinAmount() string { if x != nil { return x.MinAmount } - return 0 + return "" } // Represents a request to transfer from one set of accounts to another @@ -3476,9 +3476,9 @@ type TransferRequest struct { // One or more accounts to transfer to ToAccount []*Account `protobuf:"bytes,2,rep,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` // An amount to transfer for the asset - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // A minimum amount - MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + MinAmount string `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` // Asset identifier Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` // A reference for auditing purposes @@ -3531,18 +3531,18 @@ func (x *TransferRequest) GetToAccount() []*Account { return nil } -func (x *TransferRequest) GetAmount() uint64 { +func (x *TransferRequest) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } -func (x *TransferRequest) GetMinAmount() uint64 { +func (x *TransferRequest) GetMinAmount() string { if x != nil { return x.MinAmount } - return 0 + return "" } func (x *TransferRequest) GetAsset() string { @@ -3570,7 +3570,7 @@ type LedgerEntry struct { // One or more accounts to transfer to ToAccount string `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` // An amount to transfer - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // A reference for auditing purposes Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` // Type of ledger entry @@ -3626,11 +3626,11 @@ func (x *LedgerEntry) GetToAccount() string { return "" } -func (x *LedgerEntry) GetAmount() uint64 { +func (x *LedgerEntry) GetAmount() string { if x != nil { return x.Amount } - return 0 + return "" } func (x *LedgerEntry) GetReference() string { @@ -3663,7 +3663,7 @@ type TransferBalance struct { // The account relating to the transfer Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The balance relating to the transfer - Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` + Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` } func (x *TransferBalance) Reset() { @@ -3705,11 +3705,11 @@ func (x *TransferBalance) GetAccount() *Account { return nil } -func (x *TransferBalance) GetBalance() uint64 { +func (x *TransferBalance) GetBalance() string { if x != nil { return x.Balance } - return 0 + return "" } // Represents the response from a transfer @@ -3777,13 +3777,13 @@ type MarginLevels struct { unknownFields protoimpl.UnknownFields // Maintenance margin value - MaintenanceMargin uint64 `protobuf:"varint,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"` + MaintenanceMargin string `protobuf:"bytes,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"` // Search level value - SearchLevel uint64 `protobuf:"varint,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"` + SearchLevel string `protobuf:"bytes,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"` // Initial margin value - InitialMargin uint64 `protobuf:"varint,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"` + InitialMargin string `protobuf:"bytes,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"` // Collateral release level value - CollateralReleaseLevel uint64 `protobuf:"varint,4,opt,name=collateral_release_level,json=collateralReleaseLevel,proto3" json:"collateral_release_level,omitempty"` + CollateralReleaseLevel string `protobuf:"bytes,4,opt,name=collateral_release_level,json=collateralReleaseLevel,proto3" json:"collateral_release_level,omitempty"` // Party identifier PartyId string `protobuf:"bytes,5,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // Market identifier @@ -3827,32 +3827,32 @@ func (*MarginLevels) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{30} } -func (x *MarginLevels) GetMaintenanceMargin() uint64 { +func (x *MarginLevels) GetMaintenanceMargin() string { if x != nil { return x.MaintenanceMargin } - return 0 + return "" } -func (x *MarginLevels) GetSearchLevel() uint64 { +func (x *MarginLevels) GetSearchLevel() string { if x != nil { return x.SearchLevel } - return 0 + return "" } -func (x *MarginLevels) GetInitialMargin() uint64 { +func (x *MarginLevels) GetInitialMargin() string { if x != nil { return x.InitialMargin } - return 0 + return "" } -func (x *MarginLevels) GetCollateralReleaseLevel() uint64 { +func (x *MarginLevels) GetCollateralReleaseLevel() string { if x != nil { return x.CollateralReleaseLevel } - return 0 + return "" } func (x *MarginLevels) GetPartyId() string { @@ -3891,30 +3891,30 @@ type MarketData struct { // Mark price, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - MarkPrice uint64 `protobuf:"varint,1,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"` + MarkPrice string `protobuf:"bytes,1,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"` // Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - BestBidPrice uint64 `protobuf:"varint,2,opt,name=best_bid_price,json=bestBidPrice,proto3" json:"best_bid_price,omitempty"` + BestBidPrice string `protobuf:"bytes,2,opt,name=best_bid_price,json=bestBidPrice,proto3" json:"best_bid_price,omitempty"` // Aggregated volume being bid at the best bid price BestBidVolume uint64 `protobuf:"varint,3,opt,name=best_bid_volume,json=bestBidVolume,proto3" json:"best_bid_volume,omitempty"` // Lowest price level on an order book for offer orders - BestOfferPrice uint64 `protobuf:"varint,4,opt,name=best_offer_price,json=bestOfferPrice,proto3" json:"best_offer_price,omitempty"` + BestOfferPrice string `protobuf:"bytes,4,opt,name=best_offer_price,json=bestOfferPrice,proto3" json:"best_offer_price,omitempty"` // Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly // // formatted price of `1.23456` assuming market configured to 5 decimal places BestOfferVolume uint64 `protobuf:"varint,5,opt,name=best_offer_volume,json=bestOfferVolume,proto3" json:"best_offer_volume,omitempty"` // Highest price on the order book for buy orders not including pegged orders - BestStaticBidPrice uint64 `protobuf:"varint,6,opt,name=best_static_bid_price,json=bestStaticBidPrice,proto3" json:"best_static_bid_price,omitempty"` + BestStaticBidPrice string `protobuf:"bytes,6,opt,name=best_static_bid_price,json=bestStaticBidPrice,proto3" json:"best_static_bid_price,omitempty"` // Total volume at the best static bid price excluding pegged orders BestStaticBidVolume uint64 `protobuf:"varint,7,opt,name=best_static_bid_volume,json=bestStaticBidVolume,proto3" json:"best_static_bid_volume,omitempty"` // Lowest price on the order book for sell orders not including pegged orders - BestStaticOfferPrice uint64 `protobuf:"varint,8,opt,name=best_static_offer_price,json=bestStaticOfferPrice,proto3" json:"best_static_offer_price,omitempty"` + BestStaticOfferPrice string `protobuf:"bytes,8,opt,name=best_static_offer_price,json=bestStaticOfferPrice,proto3" json:"best_static_offer_price,omitempty"` // Total volume at the best static offer price excluding pegged orders BestStaticOfferVolume uint64 `protobuf:"varint,9,opt,name=best_static_offer_volume,json=bestStaticOfferVolume,proto3" json:"best_static_offer_volume,omitempty"` // Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - MidPrice uint64 `protobuf:"varint,10,opt,name=mid_price,json=midPrice,proto3" json:"mid_price,omitempty"` + MidPrice string `protobuf:"bytes,10,opt,name=mid_price,json=midPrice,proto3" json:"mid_price,omitempty"` // Arithmetic average of the best static bid price and best static offer price - StaticMidPrice uint64 `protobuf:"varint,11,opt,name=static_mid_price,json=staticMidPrice,proto3" json:"static_mid_price,omitempty"` + StaticMidPrice string `protobuf:"bytes,11,opt,name=static_mid_price,json=staticMidPrice,proto3" json:"static_mid_price,omitempty"` // Market identifier for the data Market string `protobuf:"bytes,12,opt,name=market,proto3" json:"market,omitempty"` // Timestamp at which this mark price was relevant, in nanoseconds since the epoch @@ -3927,7 +3927,7 @@ type MarketData struct { // Time until next auction (used in FBA's) - currently always 0 AuctionStart int64 `protobuf:"varint,16,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"` // Indicative price (zero if not in auction) - IndicativePrice uint64 `protobuf:"varint,17,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"` + IndicativePrice string `protobuf:"bytes,17,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"` // Indicative volume (zero if not in auction) IndicativeVolume uint64 `protobuf:"varint,18,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"` // The current trading mode for the market @@ -3980,18 +3980,18 @@ func (*MarketData) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{31} } -func (x *MarketData) GetMarkPrice() uint64 { +func (x *MarketData) GetMarkPrice() string { if x != nil { return x.MarkPrice } - return 0 + return "" } -func (x *MarketData) GetBestBidPrice() uint64 { +func (x *MarketData) GetBestBidPrice() string { if x != nil { return x.BestBidPrice } - return 0 + return "" } func (x *MarketData) GetBestBidVolume() uint64 { @@ -4001,11 +4001,11 @@ func (x *MarketData) GetBestBidVolume() uint64 { return 0 } -func (x *MarketData) GetBestOfferPrice() uint64 { +func (x *MarketData) GetBestOfferPrice() string { if x != nil { return x.BestOfferPrice } - return 0 + return "" } func (x *MarketData) GetBestOfferVolume() uint64 { @@ -4015,11 +4015,11 @@ func (x *MarketData) GetBestOfferVolume() uint64 { return 0 } -func (x *MarketData) GetBestStaticBidPrice() uint64 { +func (x *MarketData) GetBestStaticBidPrice() string { if x != nil { return x.BestStaticBidPrice } - return 0 + return "" } func (x *MarketData) GetBestStaticBidVolume() uint64 { @@ -4029,11 +4029,11 @@ func (x *MarketData) GetBestStaticBidVolume() uint64 { return 0 } -func (x *MarketData) GetBestStaticOfferPrice() uint64 { +func (x *MarketData) GetBestStaticOfferPrice() string { if x != nil { return x.BestStaticOfferPrice } - return 0 + return "" } func (x *MarketData) GetBestStaticOfferVolume() uint64 { @@ -4043,18 +4043,18 @@ func (x *MarketData) GetBestStaticOfferVolume() uint64 { return 0 } -func (x *MarketData) GetMidPrice() uint64 { +func (x *MarketData) GetMidPrice() string { if x != nil { return x.MidPrice } - return 0 + return "" } -func (x *MarketData) GetStaticMidPrice() uint64 { +func (x *MarketData) GetStaticMidPrice() string { if x != nil { return x.StaticMidPrice } - return 0 + return "" } func (x *MarketData) GetMarket() string { @@ -4092,11 +4092,11 @@ func (x *MarketData) GetAuctionStart() int64 { return 0 } -func (x *MarketData) GetIndicativePrice() uint64 { +func (x *MarketData) GetIndicativePrice() string { if x != nil { return x.IndicativePrice } - return 0 + return "" } func (x *MarketData) GetIndicativeVolume() uint64 { @@ -4236,9 +4236,9 @@ type PriceMonitoringBounds struct { unknownFields protoimpl.UnknownFields // Minimum price that isn't currently breaching the specified price monitoring trigger - MinValidPrice uint64 `protobuf:"varint,1,opt,name=min_valid_price,json=minValidPrice,proto3" json:"min_valid_price,omitempty"` + MinValidPrice string `protobuf:"bytes,1,opt,name=min_valid_price,json=minValidPrice,proto3" json:"min_valid_price,omitempty"` // Maximum price that isn't currently breaching the specified price monitoring trigger - MaxValidPrice uint64 `protobuf:"varint,2,opt,name=max_valid_price,json=maxValidPrice,proto3" json:"max_valid_price,omitempty"` + MaxValidPrice string `protobuf:"bytes,2,opt,name=max_valid_price,json=maxValidPrice,proto3" json:"max_valid_price,omitempty"` // Price monitoring trigger associated with the bounds Trigger *PriceMonitoringTrigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"` // Reference price used to calculate the valid price range @@ -4277,18 +4277,18 @@ func (*PriceMonitoringBounds) Descriptor() ([]byte, []int) { return file_vega_proto_rawDescGZIP(), []int{33} } -func (x *PriceMonitoringBounds) GetMinValidPrice() uint64 { +func (x *PriceMonitoringBounds) GetMinValidPrice() string { if x != nil { return x.MinValidPrice } - return 0 + return "" } -func (x *PriceMonitoringBounds) GetMaxValidPrice() uint64 { +func (x *PriceMonitoringBounds) GetMaxValidPrice() string { if x != nil { return x.MaxValidPrice } - return 0 + return "" } func (x *PriceMonitoringBounds) GetTrigger() *PriceMonitoringTrigger { @@ -4574,7 +4574,7 @@ type LiquidityProvision struct { // Market identifier for the order, required field MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Specified as a unitless number that represents the amount of settlement asset of the market - CommitmentAmount uint64 `protobuf:"varint,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` + CommitmentAmount string `protobuf:"bytes,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"` // A set of liquidity sell orders to meet the liquidity provision obligation @@ -4656,11 +4656,11 @@ func (x *LiquidityProvision) GetMarketId() string { return "" } -func (x *LiquidityProvision) GetCommitmentAmount() uint64 { +func (x *LiquidityProvision) GetCommitmentAmount() string { if x != nil { return x.CommitmentAmount } - return 0 + return "" } func (x *LiquidityProvision) GetFee() string { @@ -5109,6 +5109,10 @@ type Node struct { Status NodeStatus `protobuf:"varint,11,opt,name=status,proto3,enum=vega.NodeStatus" json:"status,omitempty"` // Node's delegations Delagations []*Delegation `protobuf:"bytes,12,rep,name=delagations,proto3" json:"delagations,omitempty"` + // Node score + Score string `protobuf:"bytes,13,opt,name=score,proto3" json:"score,omitempty"` + // Node normalised score + NormalisedScore string `protobuf:"bytes,14,opt,name=normalised_score,json=normalisedScore,proto3" json:"normalised_score,omitempty"` } func (x *Node) Reset() { @@ -5227,6 +5231,20 @@ func (x *Node) GetDelagations() []*Delegation { return nil } +func (x *Node) GetScore() string { + if x != nil { + return x.Score + } + return "" +} + +func (x *Node) GetNormalisedScore() string { + if x != nil { + return x.NormalisedScore + } + return "" +} + type NodeData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5551,7 +5569,7 @@ var file_vega_proto_rawDesc = []byte{ 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1d, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x53, 0x0a, 0x05, 0x50, 0x61, 0x72, @@ -5608,7 +5626,7 @@ var file_vega_proto_rawDesc = []byte{ 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x0d, 0x74, 0x69, @@ -5689,7 +5707,7 @@ var file_vega_proto_rawDesc = []byte{ 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, + 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, @@ -5702,7 +5720,7 @@ var file_vega_proto_rawDesc = []byte{ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6c, @@ -5737,12 +5755,12 @@ var file_vega_proto_rawDesc = []byte{ 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x42, 0x41, 0x44, 0x10, 0x03, 0x22, 0x76, 0x0a, 0x03, 0x46, 0x65, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x6b, 0x65, 0x72, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x6b, 0x65, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x6b, 0x65, 0x72, 0x46, 0x65, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x46, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x69, 0x71, 0x75, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x46, 0x65, 0x65, 0x22, 0x2f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x64, @@ -5751,17 +5769,17 @@ var file_vega_proto_rawDesc = []byte{ 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x68, 0x69, - 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x69, + 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, + 0x28, 0x09, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x64, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, @@ -5794,19 +5812,19 @@ var file_vega_proto_rawDesc = []byte{ 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x6e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, - 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x6c, + 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x6e, 0x72, 0x65, 0x61, - 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x6e, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x50, 0x6e, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x76, 0x65, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x3d, 0x0a, 0x0d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xe4, 0x02, 0x0a, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, @@ -5833,7 +5851,7 @@ var file_vega_proto_rawDesc = []byte{ 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x76, 0x65, @@ -5869,7 +5887,7 @@ var file_vega_proto_rawDesc = []byte{ 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, @@ -5877,7 +5895,7 @@ var file_vega_proto_rawDesc = []byte{ 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3f, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, @@ -5888,7 +5906,7 @@ var file_vega_proto_rawDesc = []byte{ 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xdc, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, @@ -5897,9 +5915,9 @@ var file_vega_proto_rawDesc = []byte{ 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x09, 0x74, 0x6f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, @@ -5909,7 +5927,7 @@ var file_vega_proto_rawDesc = []byte{ 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, @@ -5919,7 +5937,7 @@ var file_vega_proto_rawDesc = []byte{ 0x63, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, @@ -5930,15 +5948,15 @@ var file_vega_proto_rawDesc = []byte{ 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xad, 0x02, 0x0a, 0x0c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x61, - 0x72, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x69, 0x6e, + 0x72, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x72, 0x67, - 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x63, 0x6f, 0x6c, 0x6c, 0x61, + 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, @@ -5948,35 +5966,35 @@ var file_vega_proto_rawDesc = []byte{ 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xd3, 0x09, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0c, 0x62, 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x65, 0x73, 0x74, 0x42, 0x69, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0e, 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x62, 0x65, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x62, - 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x62, 0x69, 0x64, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x42, 0x69, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x17, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, + 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x62, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x64, 0x5f, 0x70, - 0x72, 0x69, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x69, 0x64, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6d, - 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4d, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, @@ -5989,7 +6007,7 @@ var file_vega_proto_rawDesc = []byte{ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x69, 0x6e, 0x64, 0x69, 0x63, + 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x76, @@ -6036,10 +6054,10 @@ var file_vega_proto_rawDesc = []byte{ 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, + 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x69, @@ -6082,7 +6100,7 @@ var file_vega_proto_rawDesc = []byte{ 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x73, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, @@ -6157,7 +6175,7 @@ var file_vega_proto_rawDesc = []byte{ 0x18, 0x0a, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, - 0x65, 0x22, 0xe0, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x65, 0x22, 0xa1, 0x04, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, @@ -6187,296 +6205,300 @@ var file_vega_proto_rawDesc = []byte{ 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x61, 0x67, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x54, - 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x69, - 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x22, - 0x70, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, - 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x65, - 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x65, - 0x71, 0x22, 0xc4, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, - 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x65, 0x72, 0x63, 0x65, - 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, - 0x4f, 0x66, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x66, 0x6f, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2a, 0x39, - 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, - 0x53, 0x49, 0x44, 0x45, 0x5f, 0x42, 0x55, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x49, - 0x44, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x98, 0x01, 0x0a, 0x08, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, - 0x41, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x4d, - 0x10, 0x3c, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, - 0x35, 0x4d, 0x10, 0xac, 0x02, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, - 0x4c, 0x5f, 0x49, 0x31, 0x35, 0x4d, 0x10, 0x84, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, - 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x48, 0x10, 0x90, 0x1c, 0x12, 0x12, 0x0a, 0x0c, - 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x36, 0x48, 0x10, 0xe0, 0xa8, 0x01, - 0x12, 0x12, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x44, - 0x10, 0x80, 0xa3, 0x05, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x42, 0x41, 0x54, 0x43, - 0x48, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, - 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, - 0x47, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x41, - 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4c, - 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x04, 0x2a, 0x8b, 0x01, 0x0a, 0x0f, 0x50, - 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x20, - 0x0a, 0x1c, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, - 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x14, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, - 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x49, 0x44, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x45, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, + 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a, + 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x22, 0x70, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, + 0x61, 0x72, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, + 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x53, + 0x65, 0x71, 0x22, 0xc4, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x65, 0x72, 0x63, + 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, + 0x65, 0x4f, 0x66, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x41, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x65, 0x67, 0x61, + 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2a, + 0x39, 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x49, 0x44, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x42, 0x55, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, + 0x49, 0x44, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x98, 0x01, 0x0a, 0x08, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x54, 0x45, 0x52, + 0x56, 0x41, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, + 0x4d, 0x10, 0x3c, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, + 0x49, 0x35, 0x4d, 0x10, 0xac, 0x02, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, + 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x35, 0x4d, 0x10, 0x84, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x4e, + 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, 0x48, 0x10, 0x90, 0x1c, 0x12, 0x12, 0x0a, + 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x36, 0x48, 0x10, 0xe0, 0xa8, + 0x01, 0x12, 0x12, 0x0a, 0x0c, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x49, 0x31, + 0x44, 0x10, 0x80, 0xa3, 0x05, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x43, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x42, 0x41, 0x54, + 0x43, 0x48, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, + 0x47, 0x47, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, + 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, + 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x04, 0x2a, 0x8b, 0x01, 0x0a, 0x0f, + 0x50, 0x65, 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x20, 0x0a, 0x1c, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, + 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, + 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x49, 0x44, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x50, + 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, + 0x42, 0x45, 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, - 0x45, 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x45, 0x47, - 0x47, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, - 0x53, 0x54, 0x5f, 0x41, 0x53, 0x4b, 0x10, 0x03, 0x2a, 0xf8, 0x0f, 0x0a, 0x0a, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x52, 0x4b, - 0x45, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, - 0x52, 0x44, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, - 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x4f, 0x52, - 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x5f, 0x52, 0x45, 0x4d, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x49, 0x5a, 0x45, - 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, - 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, - 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x07, 0x12, 0x27, - 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x45, - 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, - 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, - 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, - 0x44, 0x10, 0x0b, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x59, - 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x4c, 0x4f, 0x53, - 0x45, 0x44, 0x10, 0x0d, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, - 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, - 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x11, - 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x49, 0x53, 0x54, 0x45, - 0x4e, 0x43, 0x45, 0x10, 0x12, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, - 0x14, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x55, - 0x4e, 0x44, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x10, - 0x15, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x16, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, + 0x45, 0x53, 0x54, 0x5f, 0x41, 0x53, 0x4b, 0x10, 0x03, 0x2a, 0xf8, 0x0f, 0x0a, 0x0a, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x52, + 0x4b, 0x45, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, - 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x10, 0x17, 0x12, - 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x47, - 0x46, 0x4e, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, - 0x41, 0x4e, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x18, 0x12, 0x33, 0x0a, 0x2f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x41, 0x5f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x4f, 0x4e, - 0x54, 0x49, 0x4e, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, - 0x19, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, + 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x5f, 0x52, 0x45, 0x4d, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x49, 0x5a, + 0x45, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, + 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, + 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x07, 0x12, + 0x27, 0x0a, 0x23, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, + 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, + 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x4e, 0x4f, 0x54, + 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, + 0x4e, 0x44, 0x10, 0x0b, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x52, 0x54, + 0x59, 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x4c, 0x4f, + 0x53, 0x45, 0x44, 0x10, 0x0d, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x48, 0x45, 0x43, + 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, + 0x47, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, + 0x54, 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, + 0x11, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x49, 0x53, 0x54, + 0x45, 0x4e, 0x43, 0x45, 0x10, 0x12, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, + 0x10, 0x14, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x46, + 0x55, 0x4e, 0x44, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x53, + 0x10, 0x15, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x52, 0x4b, + 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x16, 0x12, 0x25, 0x0a, 0x21, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x10, 0x17, + 0x12, 0x2b, 0x0a, 0x27, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x47, 0x46, 0x4e, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, + 0x5f, 0x41, 0x4e, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x18, 0x12, 0x33, 0x0a, + 0x2f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x41, + 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x4f, + 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x4f, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x4e, 0x47, + 0x10, 0x19, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, + 0x4f, 0x5f, 0x47, 0x54, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x58, + 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1a, 0x12, 0x29, 0x0a, 0x25, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, + 0x5f, 0x42, 0x45, 0x46, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x41, + 0x54, 0x10, 0x1b, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x48, 0x41, 0x56, 0x45, 0x5f, 0x47, + 0x54, 0x43, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, + 0x1c, 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, - 0x5f, 0x47, 0x54, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, 0x54, 0x5f, 0x45, 0x58, 0x50, - 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1a, 0x12, 0x29, 0x0a, 0x25, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x5f, - 0x42, 0x45, 0x46, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x41, 0x54, - 0x10, 0x1b, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x48, 0x41, 0x56, 0x45, 0x5f, 0x47, 0x54, - 0x43, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x41, 0x54, 0x10, 0x1c, + 0x5f, 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x5f, 0x49, 0x4f, 0x43, 0x10, 0x1d, 0x12, 0x2a, 0x0a, + 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, + 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x47, 0x46, 0x41, + 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1e, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, + 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x47, 0x46, 0x41, 0x5f, 0x4f, + 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1f, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, + 0x4e, 0x44, 0x5f, 0x49, 0x4f, 0x43, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, + 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x20, 0x12, 0x34, 0x0a, + 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, + 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x10, 0x21, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, + 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x22, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, + 0x47, 0x54, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x54, 0x43, 0x10, 0x23, 0x12, 0x27, 0x0a, 0x23, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x4f, 0x55, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, + 0x49, 0x43, 0x45, 0x10, 0x24, 0x12, 0x33, 0x0a, 0x2f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x42, 0x55, 0x59, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, + 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x41, + 0x53, 0x4b, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x25, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, + 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x4f, 0x52, + 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x26, + 0x12, 0x2d, 0x0a, 0x29, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, + 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x27, 0x12, + 0x37, 0x0a, 0x33, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, + 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, + 0x4f, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x28, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x5f, 0x43, 0x41, 0x4e, + 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, + 0x53, 0x54, 0x5f, 0x42, 0x49, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x29, 0x12, 0x30, + 0x0a, 0x2c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, + 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, 0x45, + 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x2a, 0x12, 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, - 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x5f, 0x49, 0x4f, 0x43, 0x10, 0x1d, 0x12, 0x2a, 0x0a, 0x26, + 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x53, + 0x45, 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x2b, 0x12, 0x45, 0x0a, 0x41, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, - 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x47, 0x46, 0x41, 0x5f, - 0x4f, 0x52, 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1e, 0x12, 0x2c, 0x0a, 0x28, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, - 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x47, 0x46, 0x41, 0x5f, 0x4f, 0x52, - 0x5f, 0x47, 0x46, 0x4e, 0x10, 0x1f, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, - 0x44, 0x5f, 0x49, 0x4f, 0x43, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, - 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x20, 0x12, 0x34, 0x0a, 0x30, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, - 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x4b, 0x5f, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x44, 0x55, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x21, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x5f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x22, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, - 0x54, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x47, 0x54, 0x43, 0x10, 0x23, 0x12, 0x27, 0x0a, 0x23, 0x4f, - 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x4f, - 0x55, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x49, - 0x43, 0x45, 0x10, 0x24, 0x12, 0x33, 0x0a, 0x2f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x5f, 0x42, 0x55, 0x59, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x52, - 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x53, - 0x4b, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x25, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, - 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x4f, 0x52, 0x5f, - 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x26, 0x12, - 0x2d, 0x0a, 0x29, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, - 0x46, 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x4c, 0x45, - 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x27, 0x12, 0x37, - 0x0a, 0x33, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, - 0x46, 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, 0x45, - 0x41, 0x54, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x5f, 0x54, 0x4f, - 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x28, 0x12, 0x34, 0x0a, 0x30, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x5f, 0x43, 0x41, 0x4e, 0x4e, - 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x45, 0x53, - 0x54, 0x5f, 0x42, 0x49, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0x29, 0x12, 0x30, 0x0a, - 0x2c, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4f, 0x46, 0x46, - 0x53, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x42, 0x45, 0x5f, 0x47, 0x52, 0x45, 0x41, - 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x2a, 0x12, - 0x2a, 0x0a, 0x26, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, - 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, - 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x2b, 0x12, 0x45, 0x0a, 0x41, 0x4f, - 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, - 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, - 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x53, 0x5f, 0x4f, 0x4e, 0x5f, - 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x10, 0x2c, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x50, 0x52, - 0x49, 0x43, 0x45, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x10, 0x2d, 0x12, 0x35, 0x0a, 0x31, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x41, 0x4d, 0x45, 0x4e, - 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, - 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x38, 0x0a, 0x34, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x52, - 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x4f, 0x55, - 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x42, 0x4f, 0x55, 0x4e, 0x44, - 0x53, 0x10, 0x2f, 0x2a, 0x82, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, - 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, - 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4e, - 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x90, 0x03, 0x0a, 0x0b, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, - 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, - 0x17, 0x0a, 0x13, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, - 0x10, 0x04, 0x12, 0x24, 0x0a, 0x20, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, - 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x4c, 0x49, - 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, - 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x4d, - 0x41, 0x4b, 0x45, 0x52, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x57, 0x49, 0x54, 0x48, - 0x44, 0x52, 0x41, 0x57, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x19, 0x0a, - 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, - 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x5f, - 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x1e, 0x0a, 0x1a, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, 0x42, - 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 0x0c, 0x2a, 0xd3, 0x05, 0x0a, 0x0c, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, - 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x54, - 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x53, - 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, - 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, - 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x04, 0x12, - 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x52, - 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, - 0x49, 0x4e, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, 0x4e, + 0x4f, 0x54, 0x5f, 0x41, 0x4d, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, + 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x53, 0x5f, 0x4f, 0x4e, + 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x10, 0x2c, 0x12, 0x2e, 0x0a, 0x2a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x50, + 0x52, 0x49, 0x43, 0x45, 0x5f, 0x50, 0x45, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x10, 0x2d, 0x12, 0x35, 0x0a, 0x31, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x41, 0x4d, 0x45, + 0x4e, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x47, 0x47, + 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x38, 0x0a, 0x34, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x50, 0x45, + 0x52, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x4f, + 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x5f, 0x42, 0x4f, 0x55, 0x4e, + 0x44, 0x53, 0x10, 0x2f, 0x2a, 0x82, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, + 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1a, 0x0a, + 0x16, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, + 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x90, 0x03, 0x0a, 0x0b, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, + 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, + 0x12, 0x17, 0x0a, 0x13, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, + 0x4c, 0x10, 0x04, 0x12, 0x24, 0x0a, 0x20, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, + 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, 0x4c, + 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, + 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x5f, + 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x43, 0x4f, 0x55, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x57, 0x49, 0x54, + 0x48, 0x44, 0x52, 0x41, 0x57, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x43, 0x4f, 0x55, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x19, + 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, + 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, + 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x1e, 0x0a, 0x1a, + 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4c, 0x4f, + 0x42, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 0x0c, 0x2a, 0xd3, 0x05, 0x0a, + 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x19, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, + 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, + 0x53, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x4f, + 0x53, 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x04, + 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4d, 0x54, 0x4d, 0x5f, 0x57, 0x49, 0x4e, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, + 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, + 0x4e, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x07, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, - 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x07, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x52, 0x41, 0x4e, 0x53, - 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x52, 0x47, 0x49, 0x4e, 0x5f, - 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x53, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x1f, 0x0a, - 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, - 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x09, 0x12, 0x23, - 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x49, 0x56, - 0x45, 0x10, 0x0a, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, - 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x0b, 0x12, 0x2f, 0x0a, - 0x2b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, - 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, - 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x23, - 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, - 0x59, 0x10, 0x0d, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x46, - 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0e, 0x12, - 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x0f, 0x12, 0x1b, 0x0a, 0x17, 0x54, - 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, - 0x44, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x10, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, - 0x41, 0x57, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x11, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, + 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x53, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x1f, + 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x09, 0x12, + 0x23, 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4d, 0x41, 0x4b, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x49, + 0x56, 0x45, 0x10, 0x0a, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, + 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x10, 0x0b, 0x12, 0x2f, + 0x0a, 0x2b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x49, 0x4e, 0x46, 0x52, 0x41, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, + 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0c, 0x12, + 0x23, 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x45, 0x45, 0x5f, 0x50, + 0x41, 0x59, 0x10, 0x0d, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, 0x49, 0x54, 0x59, 0x5f, + 0x46, 0x45, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x0e, + 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x0f, 0x12, 0x1b, 0x0a, 0x17, + 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, + 0x4e, 0x44, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x10, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, - 0x52, 0x41, 0x57, 0x10, 0x12, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, - 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x13, - 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x41, 0x53, 0x48, 0x49, 0x4e, 0x47, 0x10, - 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, - 0x15, 0x2a, 0x63, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x1b, 0x0a, 0x17, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, - 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4e, 0x4f, 0x44, 0x45, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x41, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, 0x67, - 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x5a, 0x1f, - 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x41, 0x57, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x11, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x52, + 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x44, 0x52, 0x41, 0x57, 0x10, 0x12, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, + 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, + 0x13, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x41, 0x53, 0x48, 0x49, 0x4e, 0x47, + 0x10, 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, + 0x10, 0x15, 0x2a, 0x63, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, + 0x15, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4e, 0x4f, 0x44, 0x45, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x37, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x76, 0x65, + 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x5a, + 0x1f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java index cc5379b9..85ca0425 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/ChainEvents.java @@ -952,10 +952,20 @@ public interface BuiltinAssetWithdrawalOrBuilder extends * The amount to be withdrawn * * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); } /** *
    @@ -976,6 +986,7 @@ private BuiltinAssetWithdrawal(com.google.protobuf.GeneratedMessageV3.Builder
         private BuiltinAssetWithdrawal() {
           vegaAssetId_ = "";
           partyId_ = "";
    +      amount_ = "";
         }
     
         @java.lang.Override
    @@ -1020,9 +1031,10 @@ private BuiltinAssetWithdrawal(
                   partyId_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 default: {
    @@ -1150,18 +1162,49 @@ public java.lang.String getPartyId() {
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 3;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * The amount to be withdrawn
          * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -1184,8 +1227,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPartyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } unknownFields.writeTo(output); } @@ -1202,9 +1245,8 @@ public int getSerializedSize() { if (!getPartyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1225,8 +1267,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVegaAssetId())) return false; if (!getPartyId() .equals(other.getPartyId())) return false; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1243,8 +1285,7 @@ public int hashCode() { hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; hash = (53 * hash) + getPartyId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1386,7 +1427,7 @@ public Builder clear() { partyId_ = ""; - amount_ = 0L; + amount_ = ""; return this; } @@ -1473,8 +1514,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.ChainEvents.BuiltinAssetWithdrawal partyId_ = other.partyId_; onChanged(); } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1697,29 +1739,62 @@ public Builder setPartyIdBytes( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -1730,12 +1805,32 @@ public Builder setAmount(long value) { * The amount to be withdrawn *
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -19827,7 +19922,7 @@ public io.vegaprotocol.vega.ChainEvents.StakeRemoved getDefaultInstanceForType() "nt\030\003 \001(\004R\006amount\"o\n\026BuiltinAssetWithdraw" + "al\022\"\n\rvega_asset_id\030\001 \001(\tR\013vegaAssetId\022\031" + "\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(" + - "\004R\006amount\"\226\001\n\021BuiltinAssetEvent\0226\n\007depos" + + "\tR\006amount\"\226\001\n\021BuiltinAssetEvent\0226\n\007depos" + "it\030\351\007 \001(\0132\031.vega.BuiltinAssetDepositH\000R\007" + "deposit\022?\n\nwithdrawal\030\352\007 \001(\0132\034.vega.Buil" + "tinAssetWithdrawalH\000R\nwithdrawalB\010\n\006acti" + diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Governance.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Governance.java index 073a685a..03b8b775 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Governance.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Governance.java @@ -6518,10 +6518,20 @@ public interface NewMarketCommitmentOrBuilder extends * Specified as a unitless number that represents the amount of settlement asset of the market * * - * uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + * string commitment_amount = 1 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - long getCommitmentAmount(); + java.lang.String getCommitmentAmount(); + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 1 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + com.google.protobuf.ByteString + getCommitmentAmountBytes(); /** *
    @@ -6668,6 +6678,7 @@ private NewMarketCommitment(com.google.protobuf.GeneratedMessageV3.Builder bu
           super(builder);
         }
         private NewMarketCommitment() {
    +      commitmentAmount_ = "";
           fee_ = "";
           sells_ = java.util.Collections.emptyList();
           buys_ = java.util.Collections.emptyList();
    @@ -6705,9 +6716,10 @@ private NewMarketCommitment(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              commitmentAmount_ = input.readUInt64();
    +              commitmentAmount_ = s;
                   break;
                 }
                 case 18: {
    @@ -6779,18 +6791,49 @@ private NewMarketCommitment(
         }
     
         public static final int COMMITMENT_AMOUNT_FIELD_NUMBER = 1;
    -    private long commitmentAmount_;
    +    private volatile java.lang.Object commitmentAmount_;
         /**
          * 
          * Specified as a unitless number that represents the amount of settlement asset of the market
          * 
    * - * uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + * string commitment_amount = 1 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } + } + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 1 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FEE_FIELD_NUMBER = 2; @@ -7019,8 +7062,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (commitmentAmount_ != 0L) { - output.writeUInt64(1, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fee_); @@ -7043,9 +7086,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (commitmentAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fee_); @@ -7076,8 +7118,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Governance.NewMarketCommitment other = (io.vegaprotocol.vega.Governance.NewMarketCommitment) obj; - if (getCommitmentAmount() - != other.getCommitmentAmount()) return false; + if (!getCommitmentAmount() + .equals(other.getCommitmentAmount())) return false; if (!getFee() .equals(other.getFee())) return false; if (!getSellsList() @@ -7098,8 +7140,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COMMITMENT_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommitmentAmount()); + hash = (53 * hash) + getCommitmentAmount().hashCode(); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + getFee().hashCode(); if (getSellsCount() > 0) { @@ -7251,7 +7292,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - commitmentAmount_ = 0L; + commitmentAmount_ = ""; fee_ = ""; @@ -7365,8 +7406,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Governance.NewMarketCommitment other) { if (other == io.vegaprotocol.vega.Governance.NewMarketCommitment.getDefaultInstance()) return this; - if (other.getCommitmentAmount() != 0L) { - setCommitmentAmount(other.getCommitmentAmount()); + if (!other.getCommitmentAmount().isEmpty()) { + commitmentAmount_ = other.commitmentAmount_; + onChanged(); } if (!other.getFee().isEmpty()) { fee_ = other.fee_; @@ -7458,29 +7500,62 @@ public Builder mergeFrom( } private int bitField0_; - private long commitmentAmount_ ; + private java.lang.Object commitmentAmount_ = ""; /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + * string commitment_amount = 1 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 1 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + * string commitment_amount = 1 [json_name = "commitmentAmount"]; * @param value The commitmentAmount to set. * @return This builder for chaining. */ - public Builder setCommitmentAmount(long value) { + public Builder setCommitmentAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } commitmentAmount_ = value; onChanged(); @@ -7491,12 +7566,32 @@ public Builder setCommitmentAmount(long value) { * Specified as a unitless number that represents the amount of settlement asset of the market *
    * - * uint64 commitment_amount = 1 [json_name = "commitmentAmount"]; + * string commitment_amount = 1 [json_name = "commitmentAmount"]; * @return This builder for chaining. */ public Builder clearCommitmentAmount() { - commitmentAmount_ = 0L; + commitmentAmount_ = getDefaultInstance().getCommitmentAmount(); + onChanged(); + return this; + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 1 [json_name = "commitmentAmount"]; + * @param value The bytes for commitmentAmount to set. + * @return This builder for chaining. + */ + public Builder setCommitmentAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commitmentAmount_ = value; onChanged(); return this; } @@ -17643,10 +17738,20 @@ public interface VoteOrBuilder extends * Total number of governance token for the party that casted the vote * * - * uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; * @return The totalGovernanceTokenBalance. */ - long getTotalGovernanceTokenBalance(); + java.lang.String getTotalGovernanceTokenBalance(); + /** + *
    +     * Total number of governance token for the party that casted the vote
    +     * 
    + * + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * @return The bytes for totalGovernanceTokenBalance. + */ + com.google.protobuf.ByteString + getTotalGovernanceTokenBalanceBytes(); /** *
    @@ -17688,6 +17793,7 @@ private Vote() {
           partyId_ = "";
           value_ = 0;
           proposalId_ = "";
    +      totalGovernanceTokenBalance_ = "";
           totalGovernanceTokenWeight_ = "";
         }
     
    @@ -17744,9 +17850,10 @@ private Vote(
                   timestamp_ = input.readInt64();
                   break;
                 }
    -            case 40: {
    +            case 42: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              totalGovernanceTokenBalance_ = input.readUInt64();
    +              totalGovernanceTokenBalance_ = s;
                   break;
                 }
                 case 50: {
    @@ -18067,18 +18174,49 @@ public long getTimestamp() {
         }
     
         public static final int TOTAL_GOVERNANCE_TOKEN_BALANCE_FIELD_NUMBER = 5;
    -    private long totalGovernanceTokenBalance_;
    +    private volatile java.lang.Object totalGovernanceTokenBalance_;
         /**
          * 
          * Total number of governance token for the party that casted the vote
          * 
    * - * uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; * @return The totalGovernanceTokenBalance. */ @java.lang.Override - public long getTotalGovernanceTokenBalance() { - return totalGovernanceTokenBalance_; + public java.lang.String getTotalGovernanceTokenBalance() { + java.lang.Object ref = totalGovernanceTokenBalance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + totalGovernanceTokenBalance_ = s; + return s; + } + } + /** + *
    +     * Total number of governance token for the party that casted the vote
    +     * 
    + * + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * @return The bytes for totalGovernanceTokenBalance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTotalGovernanceTokenBalanceBytes() { + java.lang.Object ref = totalGovernanceTokenBalance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + totalGovernanceTokenBalance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TOTAL_GOVERNANCE_TOKEN_WEIGHT_FIELD_NUMBER = 6; @@ -18153,8 +18291,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (timestamp_ != 0L) { output.writeInt64(4, timestamp_); } - if (totalGovernanceTokenBalance_ != 0L) { - output.writeUInt64(5, totalGovernanceTokenBalance_); + if (!getTotalGovernanceTokenBalanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, totalGovernanceTokenBalance_); } if (!getTotalGovernanceTokenWeightBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, totalGovernanceTokenWeight_); @@ -18182,9 +18320,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, timestamp_); } - if (totalGovernanceTokenBalance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, totalGovernanceTokenBalance_); + if (!getTotalGovernanceTokenBalanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, totalGovernanceTokenBalance_); } if (!getTotalGovernanceTokenWeightBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, totalGovernanceTokenWeight_); @@ -18211,8 +18348,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getProposalId())) return false; if (getTimestamp() != other.getTimestamp()) return false; - if (getTotalGovernanceTokenBalance() - != other.getTotalGovernanceTokenBalance()) return false; + if (!getTotalGovernanceTokenBalance() + .equals(other.getTotalGovernanceTokenBalance())) return false; if (!getTotalGovernanceTokenWeight() .equals(other.getTotalGovernanceTokenWeight())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -18236,8 +18373,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + TOTAL_GOVERNANCE_TOKEN_BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalGovernanceTokenBalance()); + hash = (53 * hash) + getTotalGovernanceTokenBalance().hashCode(); hash = (37 * hash) + TOTAL_GOVERNANCE_TOKEN_WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getTotalGovernanceTokenWeight().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -18385,7 +18521,7 @@ public Builder clear() { timestamp_ = 0L; - totalGovernanceTokenBalance_ = 0L; + totalGovernanceTokenBalance_ = ""; totalGovernanceTokenWeight_ = ""; @@ -18483,8 +18619,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Governance.Vote other) { if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } - if (other.getTotalGovernanceTokenBalance() != 0L) { - setTotalGovernanceTokenBalance(other.getTotalGovernanceTokenBalance()); + if (!other.getTotalGovernanceTokenBalance().isEmpty()) { + totalGovernanceTokenBalance_ = other.totalGovernanceTokenBalance_; + onChanged(); } if (!other.getTotalGovernanceTokenWeight().isEmpty()) { totalGovernanceTokenWeight_ = other.totalGovernanceTokenWeight_; @@ -18828,29 +18965,62 @@ public Builder clearTimestamp() { return this; } - private long totalGovernanceTokenBalance_ ; + private java.lang.Object totalGovernanceTokenBalance_ = ""; /** *
            * Total number of governance token for the party that casted the vote
            * 
    * - * uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; * @return The totalGovernanceTokenBalance. */ - @java.lang.Override - public long getTotalGovernanceTokenBalance() { - return totalGovernanceTokenBalance_; + public java.lang.String getTotalGovernanceTokenBalance() { + java.lang.Object ref = totalGovernanceTokenBalance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + totalGovernanceTokenBalance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Total number of governance token for the party that casted the vote
    +       * 
    + * + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * @return The bytes for totalGovernanceTokenBalance. + */ + public com.google.protobuf.ByteString + getTotalGovernanceTokenBalanceBytes() { + java.lang.Object ref = totalGovernanceTokenBalance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + totalGovernanceTokenBalance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Total number of governance token for the party that casted the vote
            * 
    * - * uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; * @param value The totalGovernanceTokenBalance to set. * @return This builder for chaining. */ - public Builder setTotalGovernanceTokenBalance(long value) { + public Builder setTotalGovernanceTokenBalance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } totalGovernanceTokenBalance_ = value; onChanged(); @@ -18861,12 +19031,32 @@ public Builder setTotalGovernanceTokenBalance(long value) { * Total number of governance token for the party that casted the vote *
    * - * uint64 total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; * @return This builder for chaining. */ public Builder clearTotalGovernanceTokenBalance() { - totalGovernanceTokenBalance_ = 0L; + totalGovernanceTokenBalance_ = getDefaultInstance().getTotalGovernanceTokenBalance(); + onChanged(); + return this; + } + /** + *
    +       * Total number of governance token for the party that casted the vote
    +       * 
    + * + * string total_governance_token_balance = 5 [json_name = "totalGovernanceTokenBalance"]; + * @param value The bytes for totalGovernanceTokenBalance to set. + * @return This builder for chaining. + */ + public Builder setTotalGovernanceTokenBalanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + totalGovernanceTokenBalance_ = value; onChanged(); return this; } @@ -19133,7 +19323,7 @@ public io.vegaprotocol.vega.Governance.Vote getDefaultInstanceForType() { "nuous\0224\n\010discrete\030\311\001 \001(\0132\025.vega.Discrete" + "TradingH\001R\010discreteB\021\n\017risk_parametersB\016" + "\n\014trading_mode\"\310\001\n\023NewMarketCommitment\022+" + - "\n\021commitment_amount\030\001 \001(\004R\020commitmentAmo" + + "\n\021commitment_amount\030\001 \001(\tR\020commitmentAmo" + "unt\022\020\n\003fee\030\002 \001(\tR\003fee\022*\n\005sells\030\003 \003(\0132\024.v" + "ega.LiquidityOrderR\005sells\022(\n\004buys\030\004 \003(\0132" + "\024.vega.LiquidityOrderR\004buys\022\034\n\treference" + @@ -19183,7 +19373,7 @@ public io.vegaprotocol.vega.Governance.Vote getDefaultInstanceForType() { ".Vote.ValueB\007\342\337\037\003\210\001\001R\005value\022\'\n\013proposal_" + "id\030\003 \001(\tB\006\342\337\037\002X\001R\nproposalId\022\034\n\ttimestam" + "p\030\004 \001(\003R\ttimestamp\022C\n\036total_governance_t" + - "oken_balance\030\005 \001(\004R\033totalGovernanceToken" + + "oken_balance\030\005 \001(\tR\033totalGovernanceToken" + "Balance\022A\n\035total_governance_token_weight" + "\030\006 \001(\tR\032totalGovernanceTokenWeight\";\n\005Va" + "lue\022\025\n\021VALUE_UNSPECIFIED\020\000\022\014\n\010VALUE_NO\020\001" + diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java index 8100c43c..edf74211 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java @@ -2739,10 +2739,21 @@ public interface PriceOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 value = 1 [json_name = "value"]; + * string value = 1 [json_name = "value"]; * @return The value. */ - long getValue(); + java.lang.String getValue(); + /** + *
    +     * Price value, given as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string value = 1 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); } /** * Protobuf type {@code vega.Price} @@ -2757,6 +2768,7 @@ private Price(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Price() { + value_ = ""; } @java.lang.Override @@ -2789,9 +2801,10 @@ private Price( case 0: done = true; break; - case 8: { + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = input.readUInt64(); + value_ = s; break; } default: { @@ -2827,19 +2840,51 @@ private Price( } public static final int VALUE_FIELD_NUMBER = 1; - private long value_; + private volatile java.lang.Object value_; /** *
          * Price value, given as an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 value = 1 [json_name = "value"]; + * string value = 1 [json_name = "value"]; * @return The value. */ @java.lang.Override - public long getValue() { - return value_; + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
    +     * Price value, given as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string value = 1 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -2856,8 +2901,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (value_ != 0L) { - output.writeUInt64(1, value_); + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } @@ -2868,9 +2913,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, value_); + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2887,8 +2931,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.Price other = (io.vegaprotocol.vega.Vega.Price) obj; - if (getValue() - != other.getValue()) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2901,8 +2945,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValue()); + hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3036,7 +3079,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - value_ = 0L; + value_ = ""; return this; } @@ -3113,8 +3156,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.Price other) { if (other == io.vegaprotocol.vega.Vega.Price.getDefaultInstance()) return this; - if (other.getValue() != 0L) { - setValue(other.getValue()); + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3145,19 +3189,27 @@ public Builder mergeFrom( return this; } - private long value_ ; + private java.lang.Object value_ = ""; /** *
            * Price value, given as an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 value = 1 [json_name = "value"]; + * string value = 1 [json_name = "value"]; * @return The value. */ - @java.lang.Override - public long getValue() { - return value_; + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
    @@ -3165,11 +3217,37 @@ public long getValue() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 value = 1 [json_name = "value"]; + * string value = 1 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Price value, given as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string value = 1 [json_name = "value"]; * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(long value) { + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; onChanged(); @@ -3181,12 +3259,33 @@ public Builder setValue(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 value = 1 [json_name = "value"]; + * string value = 1 [json_name = "value"]; * @return This builder for chaining. */ public Builder clearValue() { - value_ = 0L; + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
    +       * Price value, given as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string value = 1 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; onChanged(); return this; } @@ -7641,10 +7740,21 @@ public interface OrderOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 price = 5 [json_name = "price"]; + * string price = 5 [json_name = "price"]; * @return The price. */ - long getPrice(); + java.lang.String getPrice(); + /** + *
    +     * Price for the order, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 5 [json_name = "price"]; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); /** *
    @@ -7892,6 +8002,7 @@ private Order() {
           marketId_ = "";
           partyId_ = "";
           side_ = 0;
    +      price_ = "";
           timeInForce_ = 0;
           type_ = 0;
           status_ = 0;
    @@ -7954,9 +8065,10 @@ private Order(
                   side_ = rawValue;
                   break;
                 }
    -            case 40: {
    +            case 42: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              price_ = input.readUInt64();
    +              price_ = s;
                   break;
                 }
                 case 48: {
    @@ -8865,19 +8977,51 @@ public java.lang.String getPartyId() {
         }
     
         public static final int PRICE_FIELD_NUMBER = 5;
    -    private long price_;
    +    private volatile java.lang.Object price_;
         /**
          * 
          * Price for the order, the price is an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 price = 5 [json_name = "price"]; + * string price = 5 [json_name = "price"]; * @return The price. */ @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
    +     * Price for the order, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 5 [json_name = "price"]; + * @return The bytes for price. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SIZE_FIELD_NUMBER = 6; @@ -9261,8 +9405,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (side_ != io.vegaprotocol.vega.Vega.Side.SIDE_UNSPECIFIED.getNumber()) { output.writeEnum(4, side_); } - if (price_ != 0L) { - output.writeUInt64(5, price_); + if (!getPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, price_); } if (size_ != 0L) { output.writeUInt64(6, size_); @@ -9328,9 +9472,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, side_); } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, price_); + if (!getPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, price_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -9408,8 +9551,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPartyId() .equals(other.getPartyId())) return false; if (side_ != other.side_) return false; - if (getPrice() - != other.getPrice()) return false; + if (!getPrice() + .equals(other.getPrice())) return false; if (getSize() != other.getSize()) return false; if (getRemaining() @@ -9457,8 +9600,7 @@ public int hashCode() { hash = (37 * hash) + SIDE_FIELD_NUMBER; hash = (53 * hash) + side_; hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); + hash = (53 * hash) + getPrice().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); @@ -9641,7 +9783,7 @@ public Builder clear() { side_ = 0; - price_ = 0L; + price_ = ""; size_ = 0L; @@ -9787,8 +9929,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Order other) { if (other.side_ != 0) { setSideValue(other.getSideValue()); } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); @@ -10225,19 +10368,49 @@ public Builder clearSide() { return this; } - private long price_ ; + private java.lang.Object price_ = ""; /** *
            * Price for the order, the price is an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 5 [json_name = "price"]; + * string price = 5 [json_name = "price"]; * @return The price. */ - @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Price for the order, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 5 [json_name = "price"]; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -10245,11 +10418,15 @@ public long getPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 5 [json_name = "price"]; + * string price = 5 [json_name = "price"]; * @param value The price to set. * @return This builder for chaining. */ - public Builder setPrice(long value) { + public Builder setPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } price_ = value; onChanged(); @@ -10261,12 +10438,33 @@ public Builder setPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places *
    * - * uint64 price = 5 [json_name = "price"]; + * string price = 5 [json_name = "price"]; * @return This builder for chaining. */ public Builder clearPrice() { - price_ = 0L; + price_ = getDefaultInstance().getPrice(); + onChanged(); + return this; + } + /** + *
    +       * Price for the order, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 5 [json_name = "price"]; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + price_ = value; onChanged(); return this; } @@ -13677,10 +13875,20 @@ public interface AuctionIndicativeStateOrBuilder extends * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now * * - * uint64 indicative_price = 2 [json_name = "indicativePrice"]; + * string indicative_price = 2 [json_name = "indicativePrice"]; * @return The indicativePrice. */ - long getIndicativePrice(); + java.lang.String getIndicativePrice(); + /** + *
    +     * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
    +     * 
    + * + * string indicative_price = 2 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + com.google.protobuf.ByteString + getIndicativePriceBytes(); /** *
    @@ -13730,6 +13938,7 @@ private AuctionIndicativeState(com.google.protobuf.GeneratedMessageV3.Builder
         }
         private AuctionIndicativeState() {
           marketId_ = "";
    +      indicativePrice_ = "";
         }
     
         @java.lang.Override
    @@ -13768,9 +13977,10 @@ private AuctionIndicativeState(
                   marketId_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              indicativePrice_ = input.readUInt64();
    +              indicativePrice_ = s;
                   break;
                 }
                 case 24: {
    @@ -13867,18 +14077,49 @@ public java.lang.String getMarketId() {
         }
     
         public static final int INDICATIVE_PRICE_FIELD_NUMBER = 2;
    -    private long indicativePrice_;
    +    private volatile java.lang.Object indicativePrice_;
         /**
          * 
          * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
          * 
    * - * uint64 indicative_price = 2 [json_name = "indicativePrice"]; + * string indicative_price = 2 [json_name = "indicativePrice"]; * @return The indicativePrice. */ @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; + public java.lang.String getIndicativePrice() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indicativePrice_ = s; + return s; + } + } + /** + *
    +     * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
    +     * 
    + * + * string indicative_price = 2 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIndicativePriceBytes() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicativePrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INDICATIVE_VOLUME_FIELD_NUMBER = 3; @@ -13943,8 +14184,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMarketIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); } - if (indicativePrice_ != 0L) { - output.writeUInt64(2, indicativePrice_); + if (!getIndicativePriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indicativePrice_); } if (indicativeVolume_ != 0L) { output.writeUInt64(3, indicativeVolume_); @@ -13967,9 +14208,8 @@ public int getSerializedSize() { if (!getMarketIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); } - if (indicativePrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, indicativePrice_); + if (!getIndicativePriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, indicativePrice_); } if (indicativeVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -14000,8 +14240,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMarketId() .equals(other.getMarketId())) return false; - if (getIndicativePrice() - != other.getIndicativePrice()) return false; + if (!getIndicativePrice() + .equals(other.getIndicativePrice())) return false; if (getIndicativeVolume() != other.getIndicativeVolume()) return false; if (getAuctionStart() @@ -14022,8 +14262,7 @@ public int hashCode() { hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; hash = (53 * hash) + getMarketId().hashCode(); hash = (37 * hash) + INDICATIVE_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndicativePrice()); + hash = (53 * hash) + getIndicativePrice().hashCode(); hash = (37 * hash) + INDICATIVE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndicativeVolume()); @@ -14172,7 +14411,7 @@ public Builder clear() { super.clear(); marketId_ = ""; - indicativePrice_ = 0L; + indicativePrice_ = ""; indicativeVolume_ = 0L; @@ -14263,8 +14502,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.AuctionIndicativeState other) marketId_ = other.marketId_; onChanged(); } - if (other.getIndicativePrice() != 0L) { - setIndicativePrice(other.getIndicativePrice()); + if (!other.getIndicativePrice().isEmpty()) { + indicativePrice_ = other.indicativePrice_; + onChanged(); } if (other.getIndicativeVolume() != 0L) { setIndicativeVolume(other.getIndicativeVolume()); @@ -14400,29 +14640,62 @@ public Builder setMarketIdBytes( return this; } - private long indicativePrice_ ; + private java.lang.Object indicativePrice_ = ""; /** *
            * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
            * 
    * - * uint64 indicative_price = 2 [json_name = "indicativePrice"]; + * string indicative_price = 2 [json_name = "indicativePrice"]; * @return The indicativePrice. */ - @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; + public java.lang.String getIndicativePrice() { + java.lang.Object ref = indicativePrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indicativePrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
    +       * 
    + * + * string indicative_price = 2 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + public com.google.protobuf.ByteString + getIndicativePriceBytes() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicativePrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
            * 
    * - * uint64 indicative_price = 2 [json_name = "indicativePrice"]; + * string indicative_price = 2 [json_name = "indicativePrice"]; * @param value The indicativePrice to set. * @return This builder for chaining. */ - public Builder setIndicativePrice(long value) { + public Builder setIndicativePrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } indicativePrice_ = value; onChanged(); @@ -14433,12 +14706,32 @@ public Builder setIndicativePrice(long value) { * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now *
    * - * uint64 indicative_price = 2 [json_name = "indicativePrice"]; + * string indicative_price = 2 [json_name = "indicativePrice"]; * @return This builder for chaining. */ public Builder clearIndicativePrice() { - indicativePrice_ = 0L; + indicativePrice_ = getDefaultInstance().getIndicativePrice(); + onChanged(); + return this; + } + /** + *
    +       * The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
    +       * 
    + * + * string indicative_price = 2 [json_name = "indicativePrice"]; + * @param value The bytes for indicativePrice to set. + * @return This builder for chaining. + */ + public Builder setIndicativePriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indicativePrice_ = value; onChanged(); return this; } @@ -14674,10 +14967,21 @@ public interface TradeOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 price = 3 [json_name = "price"]; + * string price = 3 [json_name = "price"]; * @return The price. */ - long getPrice(); + java.lang.String getPrice(); + /** + *
    +     * Price for the trade, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 3 [json_name = "price"]; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); /** *
    @@ -14911,6 +15215,7 @@ private Trade(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private Trade() {
           id_ = "";
           marketId_ = "";
    +      price_ = "";
           buyer_ = "";
           seller_ = "";
           aggressor_ = 0;
    @@ -14961,9 +15266,10 @@ private Trade(
                   marketId_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              price_ = input.readUInt64();
    +              price_ = s;
                   break;
                 }
                 case 32: {
    @@ -15339,19 +15645,51 @@ public java.lang.String getMarketId() {
         }
     
         public static final int PRICE_FIELD_NUMBER = 3;
    -    private long price_;
    +    private volatile java.lang.Object price_;
         /**
          * 
          * Price for the trade, the price is an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 price = 3 [json_name = "price"]; + * string price = 3 [json_name = "price"]; * @return The price. */ @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
    +     * Price for the trade, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 3 [json_name = "price"]; + * @return The bytes for price. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SIZE_FIELD_NUMBER = 4; @@ -15749,8 +16087,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMarketIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, marketId_); } - if (price_ != 0L) { - output.writeUInt64(3, price_); + if (!getPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, price_); } if (size_ != 0L) { output.writeUInt64(4, size_); @@ -15803,9 +16141,8 @@ public int getSerializedSize() { if (!getMarketIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, marketId_); } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, price_); + if (!getPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, price_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -15870,8 +16207,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getId())) return false; if (!getMarketId() .equals(other.getMarketId())) return false; - if (getPrice() - != other.getPrice()) return false; + if (!getPrice() + .equals(other.getPrice())) return false; if (getSize() != other.getSize()) return false; if (!getBuyer() @@ -15916,8 +16253,7 @@ public int hashCode() { hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; hash = (53 * hash) + getMarketId().hashCode(); hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); + hash = (53 * hash) + getPrice().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); @@ -16091,7 +16427,7 @@ public Builder clear() { marketId_ = ""; - price_ = 0L; + price_ = ""; size_ = 0L; @@ -16230,8 +16566,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Trade other) { marketId_ = other.marketId_; onChanged(); } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); @@ -16494,19 +16831,49 @@ public Builder setMarketIdBytes( return this; } - private long price_ ; + private java.lang.Object price_ = ""; /** *
            * Price for the trade, the price is an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 3 [json_name = "price"]; + * string price = 3 [json_name = "price"]; * @return The price. */ - @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Price for the trade, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 3 [json_name = "price"]; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -16514,11 +16881,15 @@ public long getPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 3 [json_name = "price"]; + * string price = 3 [json_name = "price"]; * @param value The price to set. * @return This builder for chaining. */ - public Builder setPrice(long value) { + public Builder setPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } price_ = value; onChanged(); @@ -16530,12 +16901,33 @@ public Builder setPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places *
    * - * uint64 price = 3 [json_name = "price"]; + * string price = 3 [json_name = "price"]; * @return This builder for chaining. */ public Builder clearPrice() { - price_ = 0L; + price_ = getDefaultInstance().getPrice(); + onChanged(); + return this; + } + /** + *
    +       * Price for the trade, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 3 [json_name = "price"]; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + price_ = value; onChanged(); return this; } @@ -17618,30 +18010,60 @@ public interface FeeOrBuilder extends * Fee amount paid to the non-aggressive party of the trade * * - * uint64 maker_fee = 1 [json_name = "makerFee"]; + * string maker_fee = 1 [json_name = "makerFee"]; * @return The makerFee. */ - long getMakerFee(); + java.lang.String getMakerFee(); + /** + *
    +     * Fee amount paid to the non-aggressive party of the trade
    +     * 
    + * + * string maker_fee = 1 [json_name = "makerFee"]; + * @return The bytes for makerFee. + */ + com.google.protobuf.ByteString + getMakerFeeBytes(); /** *
          * Fee amount paid for maintaining the Vega infrastructure
          * 
    * - * uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; * @return The infrastructureFee. */ - long getInfrastructureFee(); + java.lang.String getInfrastructureFee(); + /** + *
    +     * Fee amount paid for maintaining the Vega infrastructure
    +     * 
    + * + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * @return The bytes for infrastructureFee. + */ + com.google.protobuf.ByteString + getInfrastructureFeeBytes(); /** *
          * Fee amount paid to market makers
          * 
    * - * uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + * string liquidity_fee = 3 [json_name = "liquidityFee"]; * @return The liquidityFee. */ - long getLiquidityFee(); + java.lang.String getLiquidityFee(); + /** + *
    +     * Fee amount paid to market makers
    +     * 
    + * + * string liquidity_fee = 3 [json_name = "liquidityFee"]; + * @return The bytes for liquidityFee. + */ + com.google.protobuf.ByteString + getLiquidityFeeBytes(); } /** *
    @@ -17660,6 +18082,9 @@ private Fee(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
         private Fee() {
    +      makerFee_ = "";
    +      infrastructureFee_ = "";
    +      liquidityFee_ = "";
         }
     
         @java.lang.Override
    @@ -17692,19 +18117,22 @@ private Fee(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              makerFee_ = input.readUInt64();
    +              makerFee_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              infrastructureFee_ = input.readUInt64();
    +              infrastructureFee_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              liquidityFee_ = input.readUInt64();
    +              liquidityFee_ = s;
                   break;
                 }
                 default: {
    @@ -17740,48 +18168,141 @@ private Fee(
         }
     
         public static final int MAKER_FEE_FIELD_NUMBER = 1;
    -    private long makerFee_;
    +    private volatile java.lang.Object makerFee_;
         /**
          * 
          * Fee amount paid to the non-aggressive party of the trade
          * 
    * - * uint64 maker_fee = 1 [json_name = "makerFee"]; + * string maker_fee = 1 [json_name = "makerFee"]; * @return The makerFee. */ @java.lang.Override - public long getMakerFee() { - return makerFee_; + public java.lang.String getMakerFee() { + java.lang.Object ref = makerFee_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + makerFee_ = s; + return s; + } + } + /** + *
    +     * Fee amount paid to the non-aggressive party of the trade
    +     * 
    + * + * string maker_fee = 1 [json_name = "makerFee"]; + * @return The bytes for makerFee. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMakerFeeBytes() { + java.lang.Object ref = makerFee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + makerFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INFRASTRUCTURE_FEE_FIELD_NUMBER = 2; - private long infrastructureFee_; + private volatile java.lang.Object infrastructureFee_; /** *
          * Fee amount paid for maintaining the Vega infrastructure
          * 
    * - * uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; * @return The infrastructureFee. */ @java.lang.Override - public long getInfrastructureFee() { - return infrastructureFee_; + public java.lang.String getInfrastructureFee() { + java.lang.Object ref = infrastructureFee_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + infrastructureFee_ = s; + return s; + } + } + /** + *
    +     * Fee amount paid for maintaining the Vega infrastructure
    +     * 
    + * + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * @return The bytes for infrastructureFee. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInfrastructureFeeBytes() { + java.lang.Object ref = infrastructureFee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + infrastructureFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LIQUIDITY_FEE_FIELD_NUMBER = 3; - private long liquidityFee_; + private volatile java.lang.Object liquidityFee_; /** *
          * Fee amount paid to market makers
          * 
    * - * uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + * string liquidity_fee = 3 [json_name = "liquidityFee"]; * @return The liquidityFee. */ @java.lang.Override - public long getLiquidityFee() { - return liquidityFee_; + public java.lang.String getLiquidityFee() { + java.lang.Object ref = liquidityFee_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + liquidityFee_ = s; + return s; + } + } + /** + *
    +     * Fee amount paid to market makers
    +     * 
    + * + * string liquidity_fee = 3 [json_name = "liquidityFee"]; + * @return The bytes for liquidityFee. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLiquidityFeeBytes() { + java.lang.Object ref = liquidityFee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + liquidityFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -17798,14 +18319,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (makerFee_ != 0L) { - output.writeUInt64(1, makerFee_); + if (!getMakerFeeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, makerFee_); } - if (infrastructureFee_ != 0L) { - output.writeUInt64(2, infrastructureFee_); + if (!getInfrastructureFeeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, infrastructureFee_); } - if (liquidityFee_ != 0L) { - output.writeUInt64(3, liquidityFee_); + if (!getLiquidityFeeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, liquidityFee_); } unknownFields.writeTo(output); } @@ -17816,17 +18337,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (makerFee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, makerFee_); + if (!getMakerFeeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, makerFee_); } - if (infrastructureFee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, infrastructureFee_); + if (!getInfrastructureFeeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, infrastructureFee_); } - if (liquidityFee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, liquidityFee_); + if (!getLiquidityFeeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, liquidityFee_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -17843,12 +18361,12 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.Fee other = (io.vegaprotocol.vega.Vega.Fee) obj; - if (getMakerFee() - != other.getMakerFee()) return false; - if (getInfrastructureFee() - != other.getInfrastructureFee()) return false; - if (getLiquidityFee() - != other.getLiquidityFee()) return false; + if (!getMakerFee() + .equals(other.getMakerFee())) return false; + if (!getInfrastructureFee() + .equals(other.getInfrastructureFee())) return false; + if (!getLiquidityFee() + .equals(other.getLiquidityFee())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -17861,14 +18379,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAKER_FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMakerFee()); + hash = (53 * hash) + getMakerFee().hashCode(); hash = (37 * hash) + INFRASTRUCTURE_FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInfrastructureFee()); + hash = (53 * hash) + getInfrastructureFee().hashCode(); hash = (37 * hash) + LIQUIDITY_FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLiquidityFee()); + hash = (53 * hash) + getLiquidityFee().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -18006,11 +18521,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - makerFee_ = 0L; + makerFee_ = ""; - infrastructureFee_ = 0L; + infrastructureFee_ = ""; - liquidityFee_ = 0L; + liquidityFee_ = ""; return this; } @@ -18089,14 +18604,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.Fee other) { if (other == io.vegaprotocol.vega.Vega.Fee.getDefaultInstance()) return this; - if (other.getMakerFee() != 0L) { - setMakerFee(other.getMakerFee()); + if (!other.getMakerFee().isEmpty()) { + makerFee_ = other.makerFee_; + onChanged(); } - if (other.getInfrastructureFee() != 0L) { - setInfrastructureFee(other.getInfrastructureFee()); + if (!other.getInfrastructureFee().isEmpty()) { + infrastructureFee_ = other.infrastructureFee_; + onChanged(); } - if (other.getLiquidityFee() != 0L) { - setLiquidityFee(other.getLiquidityFee()); + if (!other.getLiquidityFee().isEmpty()) { + liquidityFee_ = other.liquidityFee_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -18127,29 +18645,62 @@ public Builder mergeFrom( return this; } - private long makerFee_ ; + private java.lang.Object makerFee_ = ""; /** *
            * Fee amount paid to the non-aggressive party of the trade
            * 
    * - * uint64 maker_fee = 1 [json_name = "makerFee"]; + * string maker_fee = 1 [json_name = "makerFee"]; * @return The makerFee. */ - @java.lang.Override - public long getMakerFee() { - return makerFee_; + public java.lang.String getMakerFee() { + java.lang.Object ref = makerFee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + makerFee_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Fee amount paid to the non-aggressive party of the trade
            * 
    * - * uint64 maker_fee = 1 [json_name = "makerFee"]; + * string maker_fee = 1 [json_name = "makerFee"]; + * @return The bytes for makerFee. + */ + public com.google.protobuf.ByteString + getMakerFeeBytes() { + java.lang.Object ref = makerFee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + makerFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Fee amount paid to the non-aggressive party of the trade
    +       * 
    + * + * string maker_fee = 1 [json_name = "makerFee"]; * @param value The makerFee to set. * @return This builder for chaining. */ - public Builder setMakerFee(long value) { + public Builder setMakerFee( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } makerFee_ = value; onChanged(); @@ -18160,39 +18711,92 @@ public Builder setMakerFee(long value) { * Fee amount paid to the non-aggressive party of the trade *
    * - * uint64 maker_fee = 1 [json_name = "makerFee"]; + * string maker_fee = 1 [json_name = "makerFee"]; * @return This builder for chaining. */ public Builder clearMakerFee() { - makerFee_ = 0L; + makerFee_ = getDefaultInstance().getMakerFee(); + onChanged(); + return this; + } + /** + *
    +       * Fee amount paid to the non-aggressive party of the trade
    +       * 
    + * + * string maker_fee = 1 [json_name = "makerFee"]; + * @param value The bytes for makerFee to set. + * @return This builder for chaining. + */ + public Builder setMakerFeeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + makerFee_ = value; onChanged(); return this; } - private long infrastructureFee_ ; + private java.lang.Object infrastructureFee_ = ""; /** *
            * Fee amount paid for maintaining the Vega infrastructure
            * 
    * - * uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; * @return The infrastructureFee. */ - @java.lang.Override - public long getInfrastructureFee() { - return infrastructureFee_; + public java.lang.String getInfrastructureFee() { + java.lang.Object ref = infrastructureFee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + infrastructureFee_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Fee amount paid for maintaining the Vega infrastructure
    +       * 
    + * + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * @return The bytes for infrastructureFee. + */ + public com.google.protobuf.ByteString + getInfrastructureFeeBytes() { + java.lang.Object ref = infrastructureFee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + infrastructureFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Fee amount paid for maintaining the Vega infrastructure
            * 
    * - * uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; * @param value The infrastructureFee to set. * @return This builder for chaining. */ - public Builder setInfrastructureFee(long value) { + public Builder setInfrastructureFee( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } infrastructureFee_ = value; onChanged(); @@ -18203,39 +18807,92 @@ public Builder setInfrastructureFee(long value) { * Fee amount paid for maintaining the Vega infrastructure * * - * uint64 infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; * @return This builder for chaining. */ public Builder clearInfrastructureFee() { - infrastructureFee_ = 0L; + infrastructureFee_ = getDefaultInstance().getInfrastructureFee(); onChanged(); return this; } + /** + *
    +       * Fee amount paid for maintaining the Vega infrastructure
    +       * 
    + * + * string infrastructure_fee = 2 [json_name = "infrastructureFee"]; + * @param value The bytes for infrastructureFee to set. + * @return This builder for chaining. + */ + public Builder setInfrastructureFeeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private long liquidityFee_ ; + infrastructureFee_ = value; + onChanged(); + return this; + } + + private java.lang.Object liquidityFee_ = ""; /** *
            * Fee amount paid to market makers
            * 
    * - * uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + * string liquidity_fee = 3 [json_name = "liquidityFee"]; * @return The liquidityFee. */ - @java.lang.Override - public long getLiquidityFee() { - return liquidityFee_; + public java.lang.String getLiquidityFee() { + java.lang.Object ref = liquidityFee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + liquidityFee_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Fee amount paid to market makers
    +       * 
    + * + * string liquidity_fee = 3 [json_name = "liquidityFee"]; + * @return The bytes for liquidityFee. + */ + public com.google.protobuf.ByteString + getLiquidityFeeBytes() { + java.lang.Object ref = liquidityFee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + liquidityFee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Fee amount paid to market makers
            * 
    * - * uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + * string liquidity_fee = 3 [json_name = "liquidityFee"]; * @param value The liquidityFee to set. * @return This builder for chaining. */ - public Builder setLiquidityFee(long value) { + public Builder setLiquidityFee( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } liquidityFee_ = value; onChanged(); @@ -18246,12 +18903,32 @@ public Builder setLiquidityFee(long value) { * Fee amount paid to market makers * * - * uint64 liquidity_fee = 3 [json_name = "liquidityFee"]; + * string liquidity_fee = 3 [json_name = "liquidityFee"]; * @return This builder for chaining. */ public Builder clearLiquidityFee() { - liquidityFee_ = 0L; + liquidityFee_ = getDefaultInstance().getLiquidityFee(); + onChanged(); + return this; + } + /** + *
    +       * Fee amount paid to market makers
    +       * 
    + * + * string liquidity_fee = 3 [json_name = "liquidityFee"]; + * @param value The bytes for liquidityFee to set. + * @return This builder for chaining. + */ + public Builder setLiquidityFeeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + liquidityFee_ = value; onChanged(); return this; } @@ -19253,40 +19930,80 @@ public interface CandleOrBuilder extends * Highest price for trading during the candle interval * * - * uint64 high = 3 [json_name = "high"]; + * string high = 3 [json_name = "high"]; * @return The high. */ - long getHigh(); + java.lang.String getHigh(); + /** + *
    +     * Highest price for trading during the candle interval
    +     * 
    + * + * string high = 3 [json_name = "high"]; + * @return The bytes for high. + */ + com.google.protobuf.ByteString + getHighBytes(); /** *
          * Lowest price for trading during the candle interval
          * 
    * - * uint64 low = 4 [json_name = "low"]; + * string low = 4 [json_name = "low"]; * @return The low. */ - long getLow(); + java.lang.String getLow(); + /** + *
    +     * Lowest price for trading during the candle interval
    +     * 
    + * + * string low = 4 [json_name = "low"]; + * @return The bytes for low. + */ + com.google.protobuf.ByteString + getLowBytes(); /** *
          * Open trade price
          * 
    * - * uint64 open = 5 [json_name = "open"]; + * string open = 5 [json_name = "open"]; * @return The open. */ - long getOpen(); + java.lang.String getOpen(); + /** + *
    +     * Open trade price
    +     * 
    + * + * string open = 5 [json_name = "open"]; + * @return The bytes for open. + */ + com.google.protobuf.ByteString + getOpenBytes(); /** *
          * Closing trade price
          * 
    * - * uint64 close = 6 [json_name = "close"]; + * string close = 6 [json_name = "close"]; * @return The close. */ - long getClose(); + java.lang.String getClose(); + /** + *
    +     * Closing trade price
    +     * 
    + * + * string close = 6 [json_name = "close"]; + * @return The bytes for close. + */ + com.google.protobuf.ByteString + getCloseBytes(); /** *
    @@ -19336,6 +20053,10 @@ private Candle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         }
         private Candle() {
           datetime_ = "";
    +      high_ = "";
    +      low_ = "";
    +      open_ = "";
    +      close_ = "";
           interval_ = 0;
         }
     
    @@ -19380,24 +20101,28 @@ private Candle(
                   datetime_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              high_ = input.readUInt64();
    +              high_ = s;
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              low_ = input.readUInt64();
    +              low_ = s;
                   break;
                 }
    -            case 40: {
    +            case 42: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              open_ = input.readUInt64();
    +              open_ = s;
                   break;
                 }
    -            case 48: {
    +            case 50: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              close_ = input.readUInt64();
    +              close_ = s;
                   break;
                 }
                 case 56: {
    @@ -19506,63 +20231,187 @@ public java.lang.String getDatetime() {
         }
     
         public static final int HIGH_FIELD_NUMBER = 3;
    -    private long high_;
    +    private volatile java.lang.Object high_;
         /**
          * 
          * Highest price for trading during the candle interval
          * 
    * - * uint64 high = 3 [json_name = "high"]; + * string high = 3 [json_name = "high"]; * @return The high. */ @java.lang.Override - public long getHigh() { - return high_; + public java.lang.String getHigh() { + java.lang.Object ref = high_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + high_ = s; + return s; + } + } + /** + *
    +     * Highest price for trading during the candle interval
    +     * 
    + * + * string high = 3 [json_name = "high"]; + * @return The bytes for high. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int LOW_FIELD_NUMBER = 4; - private long low_; + private volatile java.lang.Object low_; /** *
          * Lowest price for trading during the candle interval
          * 
    * - * uint64 low = 4 [json_name = "low"]; + * string low = 4 [json_name = "low"]; * @return The low. */ @java.lang.Override - public long getLow() { - return low_; + public java.lang.String getLow() { + java.lang.Object ref = low_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + low_ = s; + return s; + } + } + /** + *
    +     * Lowest price for trading during the candle interval
    +     * 
    + * + * string low = 4 [json_name = "low"]; + * @return The bytes for low. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int OPEN_FIELD_NUMBER = 5; - private long open_; + private volatile java.lang.Object open_; /** *
          * Open trade price
          * 
    * - * uint64 open = 5 [json_name = "open"]; + * string open = 5 [json_name = "open"]; * @return The open. */ @java.lang.Override - public long getOpen() { - return open_; + public java.lang.String getOpen() { + java.lang.Object ref = open_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + open_ = s; + return s; + } + } + /** + *
    +     * Open trade price
    +     * 
    + * + * string open = 5 [json_name = "open"]; + * @return The bytes for open. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOpenBytes() { + java.lang.Object ref = open_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + open_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int CLOSE_FIELD_NUMBER = 6; - private long close_; + private volatile java.lang.Object close_; /** *
          * Closing trade price
          * 
    * - * uint64 close = 6 [json_name = "close"]; + * string close = 6 [json_name = "close"]; * @return The close. */ @java.lang.Override - public long getClose() { - return close_; + public java.lang.String getClose() { + java.lang.Object ref = close_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + close_ = s; + return s; + } + } + /** + *
    +     * Closing trade price
    +     * 
    + * + * string close = 6 [json_name = "close"]; + * @return The bytes for close. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloseBytes() { + java.lang.Object ref = close_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + close_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int VOLUME_FIELD_NUMBER = 7; @@ -19627,17 +20476,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getDatetimeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datetime_); } - if (high_ != 0L) { - output.writeUInt64(3, high_); + if (!getHighBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, high_); } - if (low_ != 0L) { - output.writeUInt64(4, low_); + if (!getLowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, low_); } - if (open_ != 0L) { - output.writeUInt64(5, open_); + if (!getOpenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, open_); } - if (close_ != 0L) { - output.writeUInt64(6, close_); + if (!getCloseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, close_); } if (volume_ != 0L) { output.writeUInt64(7, volume_); @@ -19661,21 +20510,17 @@ public int getSerializedSize() { if (!getDatetimeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datetime_); } - if (high_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, high_); + if (!getHighBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, high_); } - if (low_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, low_); + if (!getLowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, low_); } - if (open_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, open_); + if (!getOpenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, open_); } - if (close_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, close_); + if (!getCloseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, close_); } if (volume_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -19704,14 +20549,14 @@ public boolean equals(final java.lang.Object obj) { != other.getTimestamp()) return false; if (!getDatetime() .equals(other.getDatetime())) return false; - if (getHigh() - != other.getHigh()) return false; - if (getLow() - != other.getLow()) return false; - if (getOpen() - != other.getOpen()) return false; - if (getClose() - != other.getClose()) return false; + if (!getHigh() + .equals(other.getHigh())) return false; + if (!getLow() + .equals(other.getLow())) return false; + if (!getOpen() + .equals(other.getOpen())) return false; + if (!getClose() + .equals(other.getClose())) return false; if (getVolume() != other.getVolume()) return false; if (interval_ != other.interval_) return false; @@ -19732,17 +20577,13 @@ public int hashCode() { hash = (37 * hash) + DATETIME_FIELD_NUMBER; hash = (53 * hash) + getDatetime().hashCode(); hash = (37 * hash) + HIGH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHigh()); + hash = (53 * hash) + getHigh().hashCode(); hash = (37 * hash) + LOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLow()); + hash = (53 * hash) + getLow().hashCode(); hash = (37 * hash) + OPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOpen()); + hash = (53 * hash) + getOpen().hashCode(); hash = (37 * hash) + CLOSE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClose()); + hash = (53 * hash) + getClose().hashCode(); hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVolume()); @@ -19890,13 +20731,13 @@ public Builder clear() { datetime_ = ""; - high_ = 0L; + high_ = ""; - low_ = 0L; + low_ = ""; - open_ = 0L; + open_ = ""; - close_ = 0L; + close_ = ""; volume_ = 0L; @@ -19991,17 +20832,21 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Candle other) { datetime_ = other.datetime_; onChanged(); } - if (other.getHigh() != 0L) { - setHigh(other.getHigh()); + if (!other.getHigh().isEmpty()) { + high_ = other.high_; + onChanged(); } - if (other.getLow() != 0L) { - setLow(other.getLow()); + if (!other.getLow().isEmpty()) { + low_ = other.low_; + onChanged(); } - if (other.getOpen() != 0L) { - setOpen(other.getOpen()); + if (!other.getOpen().isEmpty()) { + open_ = other.open_; + onChanged(); } - if (other.getClose() != 0L) { - setClose(other.getClose()); + if (!other.getClose().isEmpty()) { + close_ = other.close_; + onChanged(); } if (other.getVolume() != 0L) { setVolume(other.getVolume()); @@ -20180,29 +21025,62 @@ public Builder setDatetimeBytes( return this; } - private long high_ ; + private java.lang.Object high_ = ""; /** *
            * Highest price for trading during the candle interval
            * 
    * - * uint64 high = 3 [json_name = "high"]; + * string high = 3 [json_name = "high"]; * @return The high. */ - @java.lang.Override - public long getHigh() { - return high_; + public java.lang.String getHigh() { + java.lang.Object ref = high_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + high_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Highest price for trading during the candle interval
    +       * 
    + * + * string high = 3 [json_name = "high"]; + * @return The bytes for high. + */ + public com.google.protobuf.ByteString + getHighBytes() { + java.lang.Object ref = high_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Highest price for trading during the candle interval
            * 
    * - * uint64 high = 3 [json_name = "high"]; + * string high = 3 [json_name = "high"]; * @param value The high to set. * @return This builder for chaining. */ - public Builder setHigh(long value) { + public Builder setHigh( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } high_ = value; onChanged(); @@ -20213,39 +21091,92 @@ public Builder setHigh(long value) { * Highest price for trading during the candle interval *
    * - * uint64 high = 3 [json_name = "high"]; + * string high = 3 [json_name = "high"]; * @return This builder for chaining. */ public Builder clearHigh() { - high_ = 0L; + high_ = getDefaultInstance().getHigh(); + onChanged(); + return this; + } + /** + *
    +       * Highest price for trading during the candle interval
    +       * 
    + * + * string high = 3 [json_name = "high"]; + * @param value The bytes for high to set. + * @return This builder for chaining. + */ + public Builder setHighBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + high_ = value; onChanged(); return this; } - private long low_ ; + private java.lang.Object low_ = ""; /** *
            * Lowest price for trading during the candle interval
            * 
    * - * uint64 low = 4 [json_name = "low"]; + * string low = 4 [json_name = "low"]; * @return The low. */ - @java.lang.Override - public long getLow() { - return low_; + public java.lang.String getLow() { + java.lang.Object ref = low_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + low_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Lowest price for trading during the candle interval
    +       * 
    + * + * string low = 4 [json_name = "low"]; + * @return The bytes for low. + */ + public com.google.protobuf.ByteString + getLowBytes() { + java.lang.Object ref = low_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Lowest price for trading during the candle interval
            * 
    * - * uint64 low = 4 [json_name = "low"]; + * string low = 4 [json_name = "low"]; * @param value The low to set. * @return This builder for chaining. */ - public Builder setLow(long value) { + public Builder setLow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } low_ = value; onChanged(); @@ -20256,39 +21187,92 @@ public Builder setLow(long value) { * Lowest price for trading during the candle interval * * - * uint64 low = 4 [json_name = "low"]; + * string low = 4 [json_name = "low"]; * @return This builder for chaining. */ public Builder clearLow() { - low_ = 0L; + low_ = getDefaultInstance().getLow(); + onChanged(); + return this; + } + /** + *
    +       * Lowest price for trading during the candle interval
    +       * 
    + * + * string low = 4 [json_name = "low"]; + * @param value The bytes for low to set. + * @return This builder for chaining. + */ + public Builder setLowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + low_ = value; onChanged(); return this; } - private long open_ ; + private java.lang.Object open_ = ""; /** *
            * Open trade price
            * 
    * - * uint64 open = 5 [json_name = "open"]; + * string open = 5 [json_name = "open"]; * @return The open. */ - @java.lang.Override - public long getOpen() { - return open_; + public java.lang.String getOpen() { + java.lang.Object ref = open_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + open_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Open trade price
    +       * 
    + * + * string open = 5 [json_name = "open"]; + * @return The bytes for open. + */ + public com.google.protobuf.ByteString + getOpenBytes() { + java.lang.Object ref = open_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + open_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Open trade price
            * 
    * - * uint64 open = 5 [json_name = "open"]; + * string open = 5 [json_name = "open"]; * @param value The open to set. * @return This builder for chaining. */ - public Builder setOpen(long value) { + public Builder setOpen( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } open_ = value; onChanged(); @@ -20299,39 +21283,92 @@ public Builder setOpen(long value) { * Open trade price * * - * uint64 open = 5 [json_name = "open"]; + * string open = 5 [json_name = "open"]; * @return This builder for chaining. */ public Builder clearOpen() { - open_ = 0L; + open_ = getDefaultInstance().getOpen(); + onChanged(); + return this; + } + /** + *
    +       * Open trade price
    +       * 
    + * + * string open = 5 [json_name = "open"]; + * @param value The bytes for open to set. + * @return This builder for chaining. + */ + public Builder setOpenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + open_ = value; onChanged(); return this; } - private long close_ ; + private java.lang.Object close_ = ""; /** *
            * Closing trade price
            * 
    * - * uint64 close = 6 [json_name = "close"]; + * string close = 6 [json_name = "close"]; * @return The close. */ - @java.lang.Override - public long getClose() { - return close_; + public java.lang.String getClose() { + java.lang.Object ref = close_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + close_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Closing trade price
            * 
    * - * uint64 close = 6 [json_name = "close"]; + * string close = 6 [json_name = "close"]; + * @return The bytes for close. + */ + public com.google.protobuf.ByteString + getCloseBytes() { + java.lang.Object ref = close_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + close_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Closing trade price
    +       * 
    + * + * string close = 6 [json_name = "close"]; * @param value The close to set. * @return This builder for chaining. */ - public Builder setClose(long value) { + public Builder setClose( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } close_ = value; onChanged(); @@ -20342,12 +21379,32 @@ public Builder setClose(long value) { * Closing trade price * * - * uint64 close = 6 [json_name = "close"]; + * string close = 6 [json_name = "close"]; * @return This builder for chaining. */ public Builder clearClose() { - close_ = 0L; + close_ = getDefaultInstance().getClose(); + onChanged(); + return this; + } + /** + *
    +       * Closing trade price
    +       * 
    + * + * string close = 6 [json_name = "close"]; + * @param value The bytes for close to set. + * @return This builder for chaining. + */ + public Builder setCloseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + close_ = value; onChanged(); return this; } @@ -20531,10 +21588,21 @@ public interface PriceLevelOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 price = 1 [json_name = "price"]; + * string price = 1 [json_name = "price"]; * @return The price. */ - long getPrice(); + java.lang.String getPrice(); + /** + *
    +     * Price for the price level, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 1 [json_name = "price"]; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); /** *
    @@ -20573,6 +21641,7 @@ private PriceLevel(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
         private PriceLevel() {
    +      price_ = "";
         }
     
         @java.lang.Override
    @@ -20605,9 +21674,10 @@ private PriceLevel(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              price_ = input.readUInt64();
    +              price_ = s;
                   break;
                 }
                 case 16: {
    @@ -20653,19 +21723,51 @@ private PriceLevel(
         }
     
         public static final int PRICE_FIELD_NUMBER = 1;
    -    private long price_;
    +    private volatile java.lang.Object price_;
         /**
          * 
          * Price for the price level, the price is an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 price = 1 [json_name = "price"]; + * string price = 1 [json_name = "price"]; * @return The price. */ @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
    +     * Price for the price level, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 1 [json_name = "price"]; + * @return The bytes for price. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int NUMBER_OF_ORDERS_FIELD_NUMBER = 2; @@ -20712,8 +21814,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (price_ != 0L) { - output.writeUInt64(1, price_); + if (!getPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, price_); } if (numberOfOrders_ != 0L) { output.writeUInt64(2, numberOfOrders_); @@ -20730,9 +21832,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, price_); + if (!getPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, price_); } if (numberOfOrders_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -20757,8 +21858,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.PriceLevel other = (io.vegaprotocol.vega.Vega.PriceLevel) obj; - if (getPrice() - != other.getPrice()) return false; + if (!getPrice() + .equals(other.getPrice())) return false; if (getNumberOfOrders() != other.getNumberOfOrders()) return false; if (getVolume() @@ -20775,8 +21876,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); + hash = (53 * hash) + getPrice().hashCode(); hash = (37 * hash) + NUMBER_OF_ORDERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumberOfOrders()); @@ -20920,7 +22020,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - price_ = 0L; + price_ = ""; numberOfOrders_ = 0L; @@ -21003,8 +22103,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.PriceLevel other) { if (other == io.vegaprotocol.vega.Vega.PriceLevel.getDefaultInstance()) return this; - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + onChanged(); } if (other.getNumberOfOrders() != 0L) { setNumberOfOrders(other.getNumberOfOrders()); @@ -21041,19 +22142,49 @@ public Builder mergeFrom( return this; } - private long price_ ; + private java.lang.Object price_ = ""; /** *
            * Price for the price level, the price is an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 1 [json_name = "price"]; + * string price = 1 [json_name = "price"]; * @return The price. */ - @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Price for the price level, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 1 [json_name = "price"]; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -21061,11 +22192,15 @@ public long getPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 1 [json_name = "price"]; + * string price = 1 [json_name = "price"]; * @param value The price to set. * @return This builder for chaining. */ - public Builder setPrice(long value) { + public Builder setPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } price_ = value; onChanged(); @@ -21077,12 +22212,33 @@ public Builder setPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places *
    * - * uint64 price = 1 [json_name = "price"]; + * string price = 1 [json_name = "price"]; * @return This builder for chaining. */ public Builder clearPrice() { - price_ = 0L; + price_ = getDefaultInstance().getPrice(); + onChanged(); + return this; + } + /** + *
    +       * Price for the price level, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 1 [json_name = "price"]; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + price_ = value; onChanged(); return this; } @@ -24632,20 +25788,40 @@ public interface PositionOrBuilder extends * Realised profit and loss for the position, value is signed +ve for long and -ve for short * * - * int64 realised_pnl = 4 [json_name = "realisedPnl"]; + * string realised_pnl = 4 [json_name = "realisedPnl"]; * @return The realisedPnl. */ - long getRealisedPnl(); + java.lang.String getRealisedPnl(); + /** + *
    +     * Realised profit and loss for the position, value is signed +ve for long and -ve for short
    +     * 
    + * + * string realised_pnl = 4 [json_name = "realisedPnl"]; + * @return The bytes for realisedPnl. + */ + com.google.protobuf.ByteString + getRealisedPnlBytes(); /** *
          * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
          * 
    * - * int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; * @return The unrealisedPnl. */ - long getUnrealisedPnl(); + java.lang.String getUnrealisedPnl(); + /** + *
    +     * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
    +     * 
    + * + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * @return The bytes for unrealisedPnl. + */ + com.google.protobuf.ByteString + getUnrealisedPnlBytes(); /** *
    @@ -24653,10 +25829,21 @@ public interface PositionOrBuilder extends
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; * @return The averageEntryPrice. */ - long getAverageEntryPrice(); + java.lang.String getAverageEntryPrice(); + /** + *
    +     * Average entry price for the position, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; + * @return The bytes for averageEntryPrice. + */ + com.google.protobuf.ByteString + getAverageEntryPriceBytes(); /** *
    @@ -24687,6 +25874,9 @@ private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private Position() {
           marketId_ = "";
           partyId_ = "";
    +      realisedPnl_ = "";
    +      unrealisedPnl_ = "";
    +      averageEntryPrice_ = "";
         }
     
         @java.lang.Override
    @@ -24736,19 +25926,22 @@ private Position(
                   openVolume_ = input.readInt64();
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              realisedPnl_ = input.readInt64();
    +              realisedPnl_ = s;
                   break;
                 }
    -            case 40: {
    +            case 42: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              unrealisedPnl_ = input.readInt64();
    +              unrealisedPnl_ = s;
                   break;
                 }
    -            case 48: {
    +            case 50: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              averageEntryPrice_ = input.readUInt64();
    +              averageEntryPrice_ = s;
                   break;
                 }
                 case 56: {
    @@ -24896,49 +26089,143 @@ public long getOpenVolume() {
         }
     
         public static final int REALISED_PNL_FIELD_NUMBER = 4;
    -    private long realisedPnl_;
    +    private volatile java.lang.Object realisedPnl_;
         /**
          * 
          * Realised profit and loss for the position, value is signed +ve for long and -ve for short
          * 
    * - * int64 realised_pnl = 4 [json_name = "realisedPnl"]; + * string realised_pnl = 4 [json_name = "realisedPnl"]; * @return The realisedPnl. */ @java.lang.Override - public long getRealisedPnl() { - return realisedPnl_; + public java.lang.String getRealisedPnl() { + java.lang.Object ref = realisedPnl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + realisedPnl_ = s; + return s; + } + } + /** + *
    +     * Realised profit and loss for the position, value is signed +ve for long and -ve for short
    +     * 
    + * + * string realised_pnl = 4 [json_name = "realisedPnl"]; + * @return The bytes for realisedPnl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRealisedPnlBytes() { + java.lang.Object ref = realisedPnl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + realisedPnl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int UNREALISED_PNL_FIELD_NUMBER = 5; - private long unrealisedPnl_; + private volatile java.lang.Object unrealisedPnl_; /** *
          * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
          * 
    * - * int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; * @return The unrealisedPnl. */ @java.lang.Override - public long getUnrealisedPnl() { - return unrealisedPnl_; + public java.lang.String getUnrealisedPnl() { + java.lang.Object ref = unrealisedPnl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unrealisedPnl_ = s; + return s; + } + } + /** + *
    +     * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
    +     * 
    + * + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * @return The bytes for unrealisedPnl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUnrealisedPnlBytes() { + java.lang.Object ref = unrealisedPnl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unrealisedPnl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int AVERAGE_ENTRY_PRICE_FIELD_NUMBER = 6; - private long averageEntryPrice_; + private volatile java.lang.Object averageEntryPrice_; /** *
          * Average entry price for the position, the price is an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; * @return The averageEntryPrice. */ @java.lang.Override - public long getAverageEntryPrice() { - return averageEntryPrice_; + public java.lang.String getAverageEntryPrice() { + java.lang.Object ref = averageEntryPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + averageEntryPrice_ = s; + return s; + } + } + /** + *
    +     * Average entry price for the position, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; + * @return The bytes for averageEntryPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAverageEntryPriceBytes() { + java.lang.Object ref = averageEntryPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + averageEntryPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int UPDATED_AT_FIELD_NUMBER = 7; @@ -24979,14 +26266,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (openVolume_ != 0L) { output.writeInt64(3, openVolume_); } - if (realisedPnl_ != 0L) { - output.writeInt64(4, realisedPnl_); + if (!getRealisedPnlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, realisedPnl_); } - if (unrealisedPnl_ != 0L) { - output.writeInt64(5, unrealisedPnl_); + if (!getUnrealisedPnlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unrealisedPnl_); } - if (averageEntryPrice_ != 0L) { - output.writeUInt64(6, averageEntryPrice_); + if (!getAverageEntryPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, averageEntryPrice_); } if (updatedAt_ != 0L) { output.writeInt64(7, updatedAt_); @@ -25010,17 +26297,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, openVolume_); } - if (realisedPnl_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, realisedPnl_); + if (!getRealisedPnlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, realisedPnl_); } - if (unrealisedPnl_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, unrealisedPnl_); + if (!getUnrealisedPnlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unrealisedPnl_); } - if (averageEntryPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, averageEntryPrice_); + if (!getAverageEntryPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, averageEntryPrice_); } if (updatedAt_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -25047,12 +26331,12 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPartyId())) return false; if (getOpenVolume() != other.getOpenVolume()) return false; - if (getRealisedPnl() - != other.getRealisedPnl()) return false; - if (getUnrealisedPnl() - != other.getUnrealisedPnl()) return false; - if (getAverageEntryPrice() - != other.getAverageEntryPrice()) return false; + if (!getRealisedPnl() + .equals(other.getRealisedPnl())) return false; + if (!getUnrealisedPnl() + .equals(other.getUnrealisedPnl())) return false; + if (!getAverageEntryPrice() + .equals(other.getAverageEntryPrice())) return false; if (getUpdatedAt() != other.getUpdatedAt()) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -25074,14 +26358,11 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOpenVolume()); hash = (37 * hash) + REALISED_PNL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRealisedPnl()); + hash = (53 * hash) + getRealisedPnl().hashCode(); hash = (37 * hash) + UNREALISED_PNL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUnrealisedPnl()); + hash = (53 * hash) + getUnrealisedPnl().hashCode(); hash = (37 * hash) + AVERAGE_ENTRY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAverageEntryPrice()); + hash = (53 * hash) + getAverageEntryPrice().hashCode(); hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUpdatedAt()); @@ -25228,11 +26509,11 @@ public Builder clear() { openVolume_ = 0L; - realisedPnl_ = 0L; + realisedPnl_ = ""; - unrealisedPnl_ = 0L; + unrealisedPnl_ = ""; - averageEntryPrice_ = 0L; + averageEntryPrice_ = ""; updatedAt_ = 0L; @@ -25328,14 +26609,17 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Position other) { if (other.getOpenVolume() != 0L) { setOpenVolume(other.getOpenVolume()); } - if (other.getRealisedPnl() != 0L) { - setRealisedPnl(other.getRealisedPnl()); + if (!other.getRealisedPnl().isEmpty()) { + realisedPnl_ = other.realisedPnl_; + onChanged(); } - if (other.getUnrealisedPnl() != 0L) { - setUnrealisedPnl(other.getUnrealisedPnl()); + if (!other.getUnrealisedPnl().isEmpty()) { + unrealisedPnl_ = other.unrealisedPnl_; + onChanged(); } - if (other.getAverageEntryPrice() != 0L) { - setAverageEntryPrice(other.getAverageEntryPrice()); + if (!other.getAverageEntryPrice().isEmpty()) { + averageEntryPrice_ = other.averageEntryPrice_; + onChanged(); } if (other.getUpdatedAt() != 0L) { setUpdatedAt(other.getUpdatedAt()); @@ -25604,29 +26888,62 @@ public Builder clearOpenVolume() { return this; } - private long realisedPnl_ ; + private java.lang.Object realisedPnl_ = ""; /** *
            * Realised profit and loss for the position, value is signed +ve for long and -ve for short
            * 
    * - * int64 realised_pnl = 4 [json_name = "realisedPnl"]; + * string realised_pnl = 4 [json_name = "realisedPnl"]; * @return The realisedPnl. */ - @java.lang.Override - public long getRealisedPnl() { - return realisedPnl_; + public java.lang.String getRealisedPnl() { + java.lang.Object ref = realisedPnl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + realisedPnl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Realised profit and loss for the position, value is signed +ve for long and -ve for short
    +       * 
    + * + * string realised_pnl = 4 [json_name = "realisedPnl"]; + * @return The bytes for realisedPnl. + */ + public com.google.protobuf.ByteString + getRealisedPnlBytes() { + java.lang.Object ref = realisedPnl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + realisedPnl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Realised profit and loss for the position, value is signed +ve for long and -ve for short
            * 
    * - * int64 realised_pnl = 4 [json_name = "realisedPnl"]; + * string realised_pnl = 4 [json_name = "realisedPnl"]; * @param value The realisedPnl to set. * @return This builder for chaining. */ - public Builder setRealisedPnl(long value) { + public Builder setRealisedPnl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } realisedPnl_ = value; onChanged(); @@ -25637,39 +26954,92 @@ public Builder setRealisedPnl(long value) { * Realised profit and loss for the position, value is signed +ve for long and -ve for short *
    * - * int64 realised_pnl = 4 [json_name = "realisedPnl"]; + * string realised_pnl = 4 [json_name = "realisedPnl"]; * @return This builder for chaining. */ public Builder clearRealisedPnl() { - realisedPnl_ = 0L; + realisedPnl_ = getDefaultInstance().getRealisedPnl(); + onChanged(); + return this; + } + /** + *
    +       * Realised profit and loss for the position, value is signed +ve for long and -ve for short
    +       * 
    + * + * string realised_pnl = 4 [json_name = "realisedPnl"]; + * @param value The bytes for realisedPnl to set. + * @return This builder for chaining. + */ + public Builder setRealisedPnlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + realisedPnl_ = value; onChanged(); return this; } - private long unrealisedPnl_ ; + private java.lang.Object unrealisedPnl_ = ""; /** *
            * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
            * 
    * - * int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; * @return The unrealisedPnl. */ - @java.lang.Override - public long getUnrealisedPnl() { - return unrealisedPnl_; + public java.lang.String getUnrealisedPnl() { + java.lang.Object ref = unrealisedPnl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unrealisedPnl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
            * 
    * - * int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * @return The bytes for unrealisedPnl. + */ + public com.google.protobuf.ByteString + getUnrealisedPnlBytes() { + java.lang.Object ref = unrealisedPnl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + unrealisedPnl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
    +       * 
    + * + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; * @param value The unrealisedPnl to set. * @return This builder for chaining. */ - public Builder setUnrealisedPnl(long value) { + public Builder setUnrealisedPnl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } unrealisedPnl_ = value; onChanged(); @@ -25680,29 +27050,79 @@ public Builder setUnrealisedPnl(long value) { * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short * * - * int64 unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; * @return This builder for chaining. */ public Builder clearUnrealisedPnl() { - unrealisedPnl_ = 0L; + unrealisedPnl_ = getDefaultInstance().getUnrealisedPnl(); + onChanged(); + return this; + } + /** + *
    +       * Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
    +       * 
    + * + * string unrealised_pnl = 5 [json_name = "unrealisedPnl"]; + * @param value The bytes for unrealisedPnl to set. + * @return This builder for chaining. + */ + public Builder setUnrealisedPnlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + unrealisedPnl_ = value; onChanged(); return this; } - private long averageEntryPrice_ ; + private java.lang.Object averageEntryPrice_ = ""; /** *
            * Average entry price for the position, the price is an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; * @return The averageEntryPrice. */ - @java.lang.Override - public long getAverageEntryPrice() { - return averageEntryPrice_; + public java.lang.String getAverageEntryPrice() { + java.lang.Object ref = averageEntryPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + averageEntryPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Average entry price for the position, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; + * @return The bytes for averageEntryPrice. + */ + public com.google.protobuf.ByteString + getAverageEntryPriceBytes() { + java.lang.Object ref = averageEntryPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + averageEntryPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -25710,11 +27130,15 @@ public long getAverageEntryPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; * @param value The averageEntryPrice to set. * @return This builder for chaining. */ - public Builder setAverageEntryPrice(long value) { + public Builder setAverageEntryPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } averageEntryPrice_ = value; onChanged(); @@ -25726,12 +27150,33 @@ public Builder setAverageEntryPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 average_entry_price = 6 [json_name = "averageEntryPrice"]; + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; * @return This builder for chaining. */ public Builder clearAverageEntryPrice() { - averageEntryPrice_ = 0L; + averageEntryPrice_ = getDefaultInstance().getAverageEntryPrice(); + onChanged(); + return this; + } + /** + *
    +       * Average entry price for the position, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string average_entry_price = 6 [json_name = "averageEntryPrice"]; + * @param value The bytes for averageEntryPrice to set. + * @return This builder for chaining. + */ + public Builder setAverageEntryPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + averageEntryPrice_ = value; onChanged(); return this; } @@ -25851,10 +27296,21 @@ public interface PositionTradeOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ - long getPrice(); + java.lang.String getPrice(); + /** + *
    +     * Price for the position trade, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); } /** * Protobuf type {@code vega.PositionTrade} @@ -25869,6 +27325,7 @@ private PositionTrade(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } private PositionTrade() { + price_ = ""; } @java.lang.Override @@ -25906,9 +27363,10 @@ private PositionTrade( volume_ = input.readInt64(); break; } - case 16: { + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - price_ = input.readUInt64(); + price_ = s; break; } default: { @@ -25959,19 +27417,51 @@ public long getVolume() { } public static final int PRICE_FIELD_NUMBER = 2; - private long price_; + private volatile java.lang.Object price_; /** *
          * Price for the position trade, the price is an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
    +     * Price for the position trade, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -25991,8 +27481,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (volume_ != 0L) { output.writeInt64(1, volume_); } - if (price_ != 0L) { - output.writeUInt64(2, price_); + if (!getPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, price_); } unknownFields.writeTo(output); } @@ -26007,9 +27497,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, volume_); } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, price_); + if (!getPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, price_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -26028,8 +27517,8 @@ public boolean equals(final java.lang.Object obj) { if (getVolume() != other.getVolume()) return false; - if (getPrice() - != other.getPrice()) return false; + if (!getPrice() + .equals(other.getPrice())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -26045,8 +27534,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVolume()); hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); + hash = (53 * hash) + getPrice().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -26182,7 +27670,7 @@ public Builder clear() { super.clear(); volume_ = 0L; - price_ = 0L; + price_ = ""; return this; } @@ -26263,8 +27751,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.PositionTrade other) { if (other.getVolume() != 0L) { setVolume(other.getVolume()); } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -26338,19 +27827,49 @@ public Builder clearVolume() { return this; } - private long price_ ; + private java.lang.Object price_ = ""; /** *
            * Price for the position trade, the price is an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ - @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Price for the position trade, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -26358,11 +27877,15 @@ public long getPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @param value The price to set. * @return This builder for chaining. */ - public Builder setPrice(long value) { + public Builder setPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } price_ = value; onChanged(); @@ -26374,12 +27897,33 @@ public Builder setPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return This builder for chaining. */ public Builder clearPrice() { - price_ = 0L; + price_ = getDefaultInstance().getPrice(); + onChanged(); + return this; + } + /** + *
    +       * Price for the position trade, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string price = 2 [json_name = "price"]; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + price_ = value; onChanged(); return this; } @@ -28328,10 +29872,20 @@ public interface WithdrawalOrBuilder extends * The amount to be withdrawn * * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** *
    @@ -28490,6 +30044,7 @@ private Withdrawal(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private Withdrawal() {
           id_ = "";
           partyId_ = "";
    +      amount_ = "";
           asset_ = "";
           status_ = 0;
           ref_ = "";
    @@ -28538,9 +30093,10 @@ private Withdrawal(
                   partyId_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 case 34: {
    @@ -28884,18 +30440,49 @@ public java.lang.String getPartyId() {
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 3;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * The amount to be withdrawn
          * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ASSET_FIELD_NUMBER = 4; @@ -29168,8 +30755,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPartyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partyId_); } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } if (!getAssetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); @@ -29210,9 +30797,8 @@ public int getSerializedSize() { if (!getPartyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partyId_); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } if (!getAssetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); @@ -29262,8 +30848,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getId())) return false; if (!getPartyId() .equals(other.getPartyId())) return false; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!getAsset() .equals(other.getAsset())) return false; if (status_ != other.status_) return false; @@ -29298,8 +30884,7 @@ public int hashCode() { hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; hash = (53 * hash) + getPartyId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; @@ -29462,7 +31047,7 @@ public Builder clear() { partyId_ = ""; - amount_ = 0L; + amount_ = ""; asset_ = ""; @@ -29581,8 +31166,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Withdrawal other) { partyId_ = other.partyId_; onChanged(); } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; @@ -29832,29 +31418,62 @@ public Builder setPartyIdBytes( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -29865,12 +31484,32 @@ public Builder setAmount(long value) { * The amount to be withdrawn *
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -32029,10 +33668,22 @@ public interface AccountOrBuilder extends * and importantly balances cannot be negative * * - * uint64 balance = 3 [json_name = "balance"]; + * string balance = 3 [json_name = "balance"]; * @return The balance. */ - long getBalance(); + java.lang.String getBalance(); + /** + *
    +     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * and importantly balances cannot be negative
    +     * 
    + * + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + com.google.protobuf.ByteString + getBalanceBytes(); /** *
    @@ -32112,6 +33763,7 @@ private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private Account() {
           id_ = "";
           owner_ = "";
    +      balance_ = "";
           asset_ = "";
           marketId_ = "";
           type_ = 0;
    @@ -32159,9 +33811,10 @@ private Account(
                   owner_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              balance_ = input.readUInt64();
    +              balance_ = s;
                   break;
                 }
                 case 34: {
    @@ -32309,7 +33962,7 @@ public java.lang.String getOwner() {
         }
     
         public static final int BALANCE_FIELD_NUMBER = 3;
    -    private long balance_;
    +    private volatile java.lang.Object balance_;
         /**
          * 
          * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    @@ -32317,12 +33970,45 @@ public java.lang.String getOwner() {
          * and importantly balances cannot be negative
          * 
    * - * uint64 balance = 3 [json_name = "balance"]; + * string balance = 3 [json_name = "balance"]; * @return The balance. */ @java.lang.Override - public long getBalance() { - return balance_; + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } + } + /** + *
    +     * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * and importantly balances cannot be negative
    +     * 
    + * + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ASSET_FIELD_NUMBER = 4; @@ -32464,8 +34150,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getOwnerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); } - if (balance_ != 0L) { - output.writeUInt64(3, balance_); + if (!getBalanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, balance_); } if (!getAssetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, asset_); @@ -32491,9 +34177,8 @@ public int getSerializedSize() { if (!getOwnerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, balance_); + if (!getBalanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, balance_); } if (!getAssetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, asset_); @@ -32524,8 +34209,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getId())) return false; if (!getOwner() .equals(other.getOwner())) return false; - if (getBalance() - != other.getBalance()) return false; + if (!getBalance() + .equals(other.getBalance())) return false; if (!getAsset() .equals(other.getAsset())) return false; if (!getMarketId() @@ -32547,8 +34232,7 @@ public int hashCode() { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); + hash = (53 * hash) + getBalance().hashCode(); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; @@ -32696,7 +34380,7 @@ public Builder clear() { owner_ = ""; - balance_ = 0L; + balance_ = ""; asset_ = ""; @@ -32792,8 +34476,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Account other) { owner_ = other.owner_; onChanged(); } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); + if (!other.getBalance().isEmpty()) { + balance_ = other.balance_; + onChanged(); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; @@ -33032,7 +34717,7 @@ public Builder setOwnerBytes( return this; } - private long balance_ ; + private java.lang.Object balance_ = ""; /** *
            * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    @@ -33040,12 +34725,20 @@ public Builder setOwnerBytes(
            * and importantly balances cannot be negative
            * 
    * - * uint64 balance = 3 [json_name = "balance"]; + * string balance = 3 [json_name = "balance"]; * @return The balance. */ - @java.lang.Override - public long getBalance() { - return balance_; + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
    @@ -33054,11 +34747,38 @@ public long getBalance() {
            * and importantly balances cannot be negative
            * 
    * - * uint64 balance = 3 [json_name = "balance"]; + * string balance = 3 [json_name = "balance"]; + * @return The bytes for balance. + */ + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * and importantly balances cannot be negative
    +       * 
    + * + * string balance = 3 [json_name = "balance"]; * @param value The balance to set. * @return This builder for chaining. */ - public Builder setBalance(long value) { + public Builder setBalance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } balance_ = value; onChanged(); @@ -33071,12 +34791,34 @@ public Builder setBalance(long value) { * and importantly balances cannot be negative *
    * - * uint64 balance = 3 [json_name = "balance"]; + * string balance = 3 [json_name = "balance"]; * @return This builder for chaining. */ public Builder clearBalance() { - balance_ = 0L; + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + /** + *
    +       * Balance of the asset, the balance is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * and importantly balances cannot be negative
    +       * 
    + * + * string balance = 3 [json_name = "balance"]; + * @param value The bytes for balance to set. + * @return This builder for chaining. + */ + public Builder setBalanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + balance_ = value; onChanged(); return this; } @@ -33408,10 +35150,20 @@ public interface FinancialAmountOrBuilder extends * A signed integer amount of asset * * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * A signed integer amount of asset
    +     * 
    + * + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** *
    @@ -33450,6 +35202,7 @@ private FinancialAmount(com.google.protobuf.GeneratedMessageV3.Builder builde
           super(builder);
         }
         private FinancialAmount() {
    +      amount_ = "";
           asset_ = "";
         }
     
    @@ -33483,9 +35236,10 @@ private FinancialAmount(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 case 18: {
    @@ -33527,18 +35281,49 @@ private FinancialAmount(
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 1;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * A signed integer amount of asset
          * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * A signed integer amount of asset
    +     * 
    + * + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ASSET_FIELD_NUMBER = 2; @@ -33601,8 +35386,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (amount_ != 0L) { - output.writeUInt64(1, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, amount_); } if (!getAssetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); @@ -33616,9 +35401,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, amount_); } if (!getAssetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); @@ -33638,8 +35422,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.FinancialAmount other = (io.vegaprotocol.vega.Vega.FinancialAmount) obj; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!getAsset() .equals(other.getAsset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -33654,8 +35438,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -33795,7 +35578,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - amount_ = 0L; + amount_ = ""; asset_ = ""; @@ -33875,8 +35658,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.FinancialAmount other) { if (other == io.vegaprotocol.vega.Vega.FinancialAmount.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; @@ -33911,29 +35695,62 @@ public Builder mergeFrom( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * A signed integer amount of asset
            * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * A signed integer amount of asset
            * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * A signed integer amount of asset
    +       * 
    + * + * string amount = 1 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -33944,12 +35761,32 @@ public Builder setAmount(long value) { * A signed integer amount of asset *
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * A signed integer amount of asset
    +       * 
    + * + * string amount = 1 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -34177,10 +36014,20 @@ public interface TransferOrBuilder extends * A minimum amount * * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ - long getMinAmount(); + java.lang.String getMinAmount(); + /** + *
    +     * A minimum amount
    +     * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + com.google.protobuf.ByteString + getMinAmountBytes(); } /** *
    @@ -34201,6 +36048,7 @@ private Transfer(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private Transfer() {
           owner_ = "";
           type_ = 0;
    +      minAmount_ = "";
         }
     
         @java.lang.Override
    @@ -34258,9 +36106,10 @@ private Transfer(
                   type_ = rawValue;
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              minAmount_ = input.readUInt64();
    +              minAmount_ = s;
                   break;
                 }
                 default: {
    @@ -34407,18 +36256,49 @@ public io.vegaprotocol.vega.Vega.FinancialAmountOrBuilder getAmountOrBuilder() {
         }
     
         public static final int MIN_AMOUNT_FIELD_NUMBER = 4;
    -    private long minAmount_;
    +    private volatile java.lang.Object minAmount_;
         /**
          * 
          * A minimum amount
          * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ @java.lang.Override - public long getMinAmount() { - return minAmount_; + public java.lang.String getMinAmount() { + java.lang.Object ref = minAmount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minAmount_ = s; + return s; + } + } + /** + *
    +     * A minimum amount
    +     * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMinAmountBytes() { + java.lang.Object ref = minAmount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -34444,8 +36324,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (type_ != io.vegaprotocol.vega.Vega.TransferType.TRANSFER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } - if (minAmount_ != 0L) { - output.writeUInt64(4, minAmount_); + if (!getMinAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, minAmount_); } unknownFields.writeTo(output); } @@ -34467,9 +36347,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } - if (minAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, minAmount_); + if (!getMinAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, minAmount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -34494,8 +36373,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAmount())) return false; } if (type_ != other.type_) return false; - if (getMinAmount() - != other.getMinAmount()) return false; + if (!getMinAmount() + .equals(other.getMinAmount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -34516,8 +36395,7 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinAmount()); + hash = (53 * hash) + getMinAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -34665,7 +36543,7 @@ public Builder clear() { } type_ = 0; - minAmount_ = 0L; + minAmount_ = ""; return this; } @@ -34759,8 +36637,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Transfer other) { if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - if (other.getMinAmount() != 0L) { - setMinAmount(other.getMinAmount()); + if (!other.getMinAmount().isEmpty()) { + minAmount_ = other.minAmount_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -35116,29 +36995,62 @@ public Builder clearType() { return this; } - private long minAmount_ ; + private java.lang.Object minAmount_ = ""; /** *
            * A minimum amount
            * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ - @java.lang.Override - public long getMinAmount() { - return minAmount_; + public java.lang.String getMinAmount() { + java.lang.Object ref = minAmount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minAmount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * A minimum amount
    +       * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + public com.google.protobuf.ByteString + getMinAmountBytes() { + java.lang.Object ref = minAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * A minimum amount
            * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @param value The minAmount to set. * @return This builder for chaining. */ - public Builder setMinAmount(long value) { + public Builder setMinAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } minAmount_ = value; onChanged(); @@ -35149,12 +37061,32 @@ public Builder setMinAmount(long value) { * A minimum amount *
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return This builder for chaining. */ public Builder clearMinAmount() { - minAmount_ = 0L; + minAmount_ = getDefaultInstance().getMinAmount(); + onChanged(); + return this; + } + /** + *
    +       * A minimum amount
    +       * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @param value The bytes for minAmount to set. + * @return This builder for chaining. + */ + public Builder setMinAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minAmount_ = value; onChanged(); return this; } @@ -35308,20 +37240,40 @@ io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder( * An amount to transfer for the asset * * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * An amount to transfer for the asset
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** *
          * A minimum amount
          * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ - long getMinAmount(); + java.lang.String getMinAmount(); + /** + *
    +     * A minimum amount
    +     * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + com.google.protobuf.ByteString + getMinAmountBytes(); /** *
    @@ -35382,6 +37334,8 @@ private TransferRequest(com.google.protobuf.GeneratedMessageV3.Builder builde
         private TransferRequest() {
           fromAccount_ = java.util.Collections.emptyList();
           toAccount_ = java.util.Collections.emptyList();
    +      amount_ = "";
    +      minAmount_ = "";
           asset_ = "";
           reference_ = "";
         }
    @@ -35435,14 +37389,16 @@ private TransferRequest(
                       input.readMessage(io.vegaprotocol.vega.Vega.Account.parser(), extensionRegistry));
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              minAmount_ = input.readUInt64();
    +              minAmount_ = s;
                   break;
                 }
                 case 42: {
    @@ -35616,33 +37572,95 @@ public io.vegaprotocol.vega.Vega.AccountOrBuilder getToAccountOrBuilder(
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 3;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * An amount to transfer for the asset
          * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * An amount to transfer for the asset
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MIN_AMOUNT_FIELD_NUMBER = 4; - private long minAmount_; + private volatile java.lang.Object minAmount_; /** *
          * A minimum amount
          * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ @java.lang.Override - public long getMinAmount() { - return minAmount_; + public java.lang.String getMinAmount() { + java.lang.Object ref = minAmount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minAmount_ = s; + return s; + } + } + /** + *
    +     * A minimum amount
    +     * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMinAmountBytes() { + java.lang.Object ref = minAmount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ASSET_FIELD_NUMBER = 5; @@ -35757,11 +37775,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < toAccount_.size(); i++) { output.writeMessage(2, toAccount_.get(i)); } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } - if (minAmount_ != 0L) { - output.writeUInt64(4, minAmount_); + if (!getMinAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, minAmount_); } if (!getAssetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, asset_); @@ -35786,13 +37804,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, toAccount_.get(i)); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } - if (minAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, minAmount_); + if (!getMinAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, minAmount_); } if (!getAssetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, asset_); @@ -35819,10 +37835,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getFromAccountList())) return false; if (!getToAccountList() .equals(other.getToAccountList())) return false; - if (getAmount() - != other.getAmount()) return false; - if (getMinAmount() - != other.getMinAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getMinAmount() + .equals(other.getMinAmount())) return false; if (!getAsset() .equals(other.getAsset())) return false; if (!getReference() @@ -35847,11 +37863,9 @@ public int hashCode() { hash = (53 * hash) + getToAccountList().hashCode(); } hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + MIN_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinAmount()); + hash = (53 * hash) + getMinAmount().hashCode(); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (37 * hash) + REFERENCE_FIELD_NUMBER; @@ -36007,9 +38021,9 @@ public Builder clear() { } else { toAccountBuilder_.clear(); } - amount_ = 0L; + amount_ = ""; - minAmount_ = 0L; + minAmount_ = ""; asset_ = ""; @@ -36164,11 +38178,13 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferRequest other) { } } } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } - if (other.getMinAmount() != 0L) { - setMinAmount(other.getMinAmount()); + if (!other.getMinAmount().isEmpty()) { + minAmount_ = other.minAmount_; + onChanged(); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; @@ -36832,29 +38848,62 @@ public io.vegaprotocol.vega.Vega.Account.Builder addToAccountBuilder( return toAccountBuilder_; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * An amount to transfer for the asset
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * An amount to transfer for the asset
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * An amount to transfer for the asset
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -36865,39 +38914,92 @@ public Builder setAmount(long value) { * An amount to transfer for the asset *
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } + /** + *
    +       * An amount to transfer for the asset
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private long minAmount_ ; + amount_ = value; + onChanged(); + return this; + } + + private java.lang.Object minAmount_ = ""; /** *
            * A minimum amount
            * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return The minAmount. */ - @java.lang.Override - public long getMinAmount() { - return minAmount_; + public java.lang.String getMinAmount() { + java.lang.Object ref = minAmount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minAmount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * A minimum amount
    +       * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @return The bytes for minAmount. + */ + public com.google.protobuf.ByteString + getMinAmountBytes() { + java.lang.Object ref = minAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * A minimum amount
            * 
    * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @param value The minAmount to set. * @return This builder for chaining. */ - public Builder setMinAmount(long value) { + public Builder setMinAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } minAmount_ = value; onChanged(); @@ -36908,12 +39010,32 @@ public Builder setMinAmount(long value) { * A minimum amount * * - * uint64 min_amount = 4 [json_name = "minAmount"]; + * string min_amount = 4 [json_name = "minAmount"]; * @return This builder for chaining. */ public Builder clearMinAmount() { - minAmount_ = 0L; + minAmount_ = getDefaultInstance().getMinAmount(); + onChanged(); + return this; + } + /** + *
    +       * A minimum amount
    +       * 
    + * + * string min_amount = 4 [json_name = "minAmount"]; + * @param value The bytes for minAmount to set. + * @return This builder for chaining. + */ + public Builder setMinAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minAmount_ = value; onChanged(); return this; } @@ -37211,10 +39333,20 @@ public interface LedgerEntryOrBuilder extends * An amount to transfer * * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * An amount to transfer
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** *
    @@ -37286,6 +39418,7 @@ private LedgerEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         private LedgerEntry() {
           fromAccount_ = "";
           toAccount_ = "";
    +      amount_ = "";
           reference_ = "";
           type_ = "";
         }
    @@ -37332,9 +39465,10 @@ private LedgerEntry(
                   toAccount_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 case 34: {
    @@ -37479,18 +39613,49 @@ public java.lang.String getToAccount() {
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 3;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * An amount to transfer
          * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * An amount to transfer
    +     * 
    + * + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int REFERENCE_FIELD_NUMBER = 4; @@ -37621,8 +39786,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getToAccountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toAccount_); } - if (amount_ != 0L) { - output.writeUInt64(3, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } if (!getReferenceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reference_); @@ -37648,9 +39813,8 @@ public int getSerializedSize() { if (!getToAccountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toAccount_); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } if (!getReferenceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reference_); @@ -37681,8 +39845,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getFromAccount())) return false; if (!getToAccount() .equals(other.getToAccount())) return false; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!getReference() .equals(other.getReference())) return false; if (!getType() @@ -37705,8 +39869,7 @@ public int hashCode() { hash = (37 * hash) + TO_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getToAccount().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; @@ -37855,7 +40018,7 @@ public Builder clear() { toAccount_ = ""; - amount_ = 0L; + amount_ = ""; reference_ = ""; @@ -37951,8 +40114,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.LedgerEntry other) { toAccount_ = other.toAccount_; onChanged(); } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } if (!other.getReference().isEmpty()) { reference_ = other.reference_; @@ -38186,29 +40350,62 @@ public Builder setToAccountBytes( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * An amount to transfer
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * An amount to transfer
            * 
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * An amount to transfer
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -38219,12 +40416,32 @@ public Builder setAmount(long value) { * An amount to transfer *
    * - * uint64 amount = 3 [json_name = "amount"]; + * string amount = 3 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * An amount to transfer
    +       * 
    + * + * string amount = 3 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -38555,10 +40772,20 @@ public interface TransferBalanceOrBuilder extends * The balance relating to the transfer * * - * uint64 balance = 2 [json_name = "balance"]; + * string balance = 2 [json_name = "balance"]; * @return The balance. */ - long getBalance(); + java.lang.String getBalance(); + /** + *
    +     * The balance relating to the transfer
    +     * 
    + * + * string balance = 2 [json_name = "balance"]; + * @return The bytes for balance. + */ + com.google.protobuf.ByteString + getBalanceBytes(); } /** *
    @@ -38577,6 +40804,7 @@ private TransferBalance(com.google.protobuf.GeneratedMessageV3.Builder builde
           super(builder);
         }
         private TransferBalance() {
    +      balance_ = "";
         }
     
         @java.lang.Override
    @@ -38622,9 +40850,10 @@ private TransferBalance(
     
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              balance_ = input.readUInt64();
    +              balance_ = s;
                   break;
                 }
                 default: {
    @@ -38698,18 +40927,49 @@ public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() {
         }
     
         public static final int BALANCE_FIELD_NUMBER = 2;
    -    private long balance_;
    +    private volatile java.lang.Object balance_;
         /**
          * 
          * The balance relating to the transfer
          * 
    * - * uint64 balance = 2 [json_name = "balance"]; + * string balance = 2 [json_name = "balance"]; * @return The balance. */ @java.lang.Override - public long getBalance() { - return balance_; + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } + } + /** + *
    +     * The balance relating to the transfer
    +     * 
    + * + * string balance = 2 [json_name = "balance"]; + * @return The bytes for balance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -38729,8 +40989,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (account_ != null) { output.writeMessage(1, getAccount()); } - if (balance_ != 0L) { - output.writeUInt64(2, balance_); + if (!getBalanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, balance_); } unknownFields.writeTo(output); } @@ -38745,9 +41005,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAccount()); } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, balance_); + if (!getBalanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, balance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -38769,8 +41028,8 @@ public boolean equals(final java.lang.Object obj) { if (!getAccount() .equals(other.getAccount())) return false; } - if (getBalance() - != other.getBalance()) return false; + if (!getBalance() + .equals(other.getBalance())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -38787,8 +41046,7 @@ public int hashCode() { hash = (53 * hash) + getAccount().hashCode(); } hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); + hash = (53 * hash) + getBalance().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -38932,7 +41190,7 @@ public Builder clear() { account_ = null; accountBuilder_ = null; } - balance_ = 0L; + balance_ = ""; return this; } @@ -39017,8 +41275,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.TransferBalance other) { if (other.hasAccount()) { mergeAccount(other.getAccount()); } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); + if (!other.getBalance().isEmpty()) { + balance_ = other.balance_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -39204,29 +41463,62 @@ public io.vegaprotocol.vega.Vega.AccountOrBuilder getAccountOrBuilder() { return accountBuilder_; } - private long balance_ ; + private java.lang.Object balance_ = ""; /** *
            * The balance relating to the transfer
            * 
    * - * uint64 balance = 2 [json_name = "balance"]; + * string balance = 2 [json_name = "balance"]; * @return The balance. */ - @java.lang.Override - public long getBalance() { - return balance_; + public java.lang.String getBalance() { + java.lang.Object ref = balance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + balance_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * The balance relating to the transfer
            * 
    * - * uint64 balance = 2 [json_name = "balance"]; + * string balance = 2 [json_name = "balance"]; + * @return The bytes for balance. + */ + public com.google.protobuf.ByteString + getBalanceBytes() { + java.lang.Object ref = balance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + balance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * The balance relating to the transfer
    +       * 
    + * + * string balance = 2 [json_name = "balance"]; * @param value The balance to set. * @return This builder for chaining. */ - public Builder setBalance(long value) { + public Builder setBalance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } balance_ = value; onChanged(); @@ -39237,12 +41529,32 @@ public Builder setBalance(long value) { * The balance relating to the transfer *
    * - * uint64 balance = 2 [json_name = "balance"]; + * string balance = 2 [json_name = "balance"]; * @return This builder for chaining. */ public Builder clearBalance() { - balance_ = 0L; + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + /** + *
    +       * The balance relating to the transfer
    +       * 
    + * + * string balance = 2 [json_name = "balance"]; + * @param value The bytes for balance to set. + * @return This builder for chaining. + */ + public Builder setBalanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + balance_ = value; onChanged(); return this; } @@ -40705,40 +43017,80 @@ public interface MarginLevelsOrBuilder extends * Maintenance margin value * * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; * @return The maintenanceMargin. */ - long getMaintenanceMargin(); + java.lang.String getMaintenanceMargin(); + /** + *
    +     * Maintenance margin value
    +     * 
    + * + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The bytes for maintenanceMargin. + */ + com.google.protobuf.ByteString + getMaintenanceMarginBytes(); /** *
          * Search level value
          * 
    * - * uint64 search_level = 2 [json_name = "searchLevel"]; + * string search_level = 2 [json_name = "searchLevel"]; * @return The searchLevel. */ - long getSearchLevel(); + java.lang.String getSearchLevel(); + /** + *
    +     * Search level value
    +     * 
    + * + * string search_level = 2 [json_name = "searchLevel"]; + * @return The bytes for searchLevel. + */ + com.google.protobuf.ByteString + getSearchLevelBytes(); /** *
          * Initial margin value
          * 
    * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * string initial_margin = 3 [json_name = "initialMargin"]; * @return The initialMargin. */ - long getInitialMargin(); + java.lang.String getInitialMargin(); + /** + *
    +     * Initial margin value
    +     * 
    + * + * string initial_margin = 3 [json_name = "initialMargin"]; + * @return The bytes for initialMargin. + */ + com.google.protobuf.ByteString + getInitialMarginBytes(); /** *
          * Collateral release level value
          * 
    * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; * @return The collateralReleaseLevel. */ - long getCollateralReleaseLevel(); + java.lang.String getCollateralReleaseLevel(); + /** + *
    +     * Collateral release level value
    +     * 
    + * + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The bytes for collateralReleaseLevel. + */ + com.google.protobuf.ByteString + getCollateralReleaseLevelBytes(); /** *
    @@ -40828,6 +43180,10 @@ private MarginLevels(com.google.protobuf.GeneratedMessageV3.Builder builder)
           super(builder);
         }
         private MarginLevels() {
    +      maintenanceMargin_ = "";
    +      searchLevel_ = "";
    +      initialMargin_ = "";
    +      collateralReleaseLevel_ = "";
           partyId_ = "";
           marketId_ = "";
           asset_ = "";
    @@ -40863,24 +43219,28 @@ private MarginLevels(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              maintenanceMargin_ = input.readUInt64();
    +              maintenanceMargin_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              searchLevel_ = input.readUInt64();
    +              searchLevel_ = s;
                   break;
                 }
    -            case 24: {
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              initialMargin_ = input.readUInt64();
    +              initialMargin_ = s;
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              collateralReleaseLevel_ = input.readUInt64();
    +              collateralReleaseLevel_ = s;
                   break;
                 }
                 case 42: {
    @@ -40939,63 +43299,187 @@ private MarginLevels(
         }
     
         public static final int MAINTENANCE_MARGIN_FIELD_NUMBER = 1;
    -    private long maintenanceMargin_;
    +    private volatile java.lang.Object maintenanceMargin_;
         /**
          * 
          * Maintenance margin value
          * 
    * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; * @return The maintenanceMargin. */ @java.lang.Override - public long getMaintenanceMargin() { - return maintenanceMargin_; + public java.lang.String getMaintenanceMargin() { + java.lang.Object ref = maintenanceMargin_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maintenanceMargin_ = s; + return s; + } + } + /** + *
    +     * Maintenance margin value
    +     * 
    + * + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The bytes for maintenanceMargin. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMaintenanceMarginBytes() { + java.lang.Object ref = maintenanceMargin_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maintenanceMargin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SEARCH_LEVEL_FIELD_NUMBER = 2; - private long searchLevel_; + private volatile java.lang.Object searchLevel_; /** *
          * Search level value
          * 
    * - * uint64 search_level = 2 [json_name = "searchLevel"]; + * string search_level = 2 [json_name = "searchLevel"]; * @return The searchLevel. */ @java.lang.Override - public long getSearchLevel() { - return searchLevel_; + public java.lang.String getSearchLevel() { + java.lang.Object ref = searchLevel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchLevel_ = s; + return s; + } + } + /** + *
    +     * Search level value
    +     * 
    + * + * string search_level = 2 [json_name = "searchLevel"]; + * @return The bytes for searchLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchLevelBytes() { + java.lang.Object ref = searchLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INITIAL_MARGIN_FIELD_NUMBER = 3; - private long initialMargin_; + private volatile java.lang.Object initialMargin_; /** *
          * Initial margin value
          * 
    * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * string initial_margin = 3 [json_name = "initialMargin"]; * @return The initialMargin. */ @java.lang.Override - public long getInitialMargin() { - return initialMargin_; + public java.lang.String getInitialMargin() { + java.lang.Object ref = initialMargin_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialMargin_ = s; + return s; + } + } + /** + *
    +     * Initial margin value
    +     * 
    + * + * string initial_margin = 3 [json_name = "initialMargin"]; + * @return The bytes for initialMargin. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInitialMarginBytes() { + java.lang.Object ref = initialMargin_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialMargin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER = 4; - private long collateralReleaseLevel_; + private volatile java.lang.Object collateralReleaseLevel_; /** *
          * Collateral release level value
          * 
    * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; * @return The collateralReleaseLevel. */ @java.lang.Override - public long getCollateralReleaseLevel() { - return collateralReleaseLevel_; + public java.lang.String getCollateralReleaseLevel() { + java.lang.Object ref = collateralReleaseLevel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collateralReleaseLevel_ = s; + return s; + } + } + /** + *
    +     * Collateral release level value
    +     * 
    + * + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The bytes for collateralReleaseLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCollateralReleaseLevelBytes() { + java.lang.Object ref = collateralReleaseLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collateralReleaseLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int PARTY_ID_FIELD_NUMBER = 5; @@ -41166,17 +43650,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maintenanceMargin_ != 0L) { - output.writeUInt64(1, maintenanceMargin_); + if (!getMaintenanceMarginBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, maintenanceMargin_); } - if (searchLevel_ != 0L) { - output.writeUInt64(2, searchLevel_); + if (!getSearchLevelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchLevel_); } - if (initialMargin_ != 0L) { - output.writeUInt64(3, initialMargin_); + if (!getInitialMarginBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, initialMargin_); } - if (collateralReleaseLevel_ != 0L) { - output.writeUInt64(4, collateralReleaseLevel_); + if (!getCollateralReleaseLevelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, collateralReleaseLevel_); } if (!getPartyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partyId_); @@ -41199,21 +43683,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maintenanceMargin_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, maintenanceMargin_); + if (!getMaintenanceMarginBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, maintenanceMargin_); } - if (searchLevel_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, searchLevel_); + if (!getSearchLevelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchLevel_); } - if (initialMargin_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, initialMargin_); + if (!getInitialMarginBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, initialMargin_); } - if (collateralReleaseLevel_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, collateralReleaseLevel_); + if (!getCollateralReleaseLevelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collateralReleaseLevel_); } if (!getPartyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partyId_); @@ -41243,14 +43723,14 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.MarginLevels other = (io.vegaprotocol.vega.Vega.MarginLevels) obj; - if (getMaintenanceMargin() - != other.getMaintenanceMargin()) return false; - if (getSearchLevel() - != other.getSearchLevel()) return false; - if (getInitialMargin() - != other.getInitialMargin()) return false; - if (getCollateralReleaseLevel() - != other.getCollateralReleaseLevel()) return false; + if (!getMaintenanceMargin() + .equals(other.getMaintenanceMargin())) return false; + if (!getSearchLevel() + .equals(other.getSearchLevel())) return false; + if (!getInitialMargin() + .equals(other.getInitialMargin())) return false; + if (!getCollateralReleaseLevel() + .equals(other.getCollateralReleaseLevel())) return false; if (!getPartyId() .equals(other.getPartyId())) return false; if (!getMarketId() @@ -41271,17 +43751,13 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAINTENANCE_MARGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaintenanceMargin()); + hash = (53 * hash) + getMaintenanceMargin().hashCode(); hash = (37 * hash) + SEARCH_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSearchLevel()); + hash = (53 * hash) + getSearchLevel().hashCode(); hash = (37 * hash) + INITIAL_MARGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInitialMargin()); + hash = (53 * hash) + getInitialMargin().hashCode(); hash = (37 * hash) + COLLATERAL_RELEASE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCollateralReleaseLevel()); + hash = (53 * hash) + getCollateralReleaseLevel().hashCode(); hash = (37 * hash) + PARTY_ID_FIELD_NUMBER; hash = (53 * hash) + getPartyId().hashCode(); hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; @@ -41428,13 +43904,13 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maintenanceMargin_ = 0L; + maintenanceMargin_ = ""; - searchLevel_ = 0L; + searchLevel_ = ""; - initialMargin_ = 0L; + initialMargin_ = ""; - collateralReleaseLevel_ = 0L; + collateralReleaseLevel_ = ""; partyId_ = ""; @@ -41526,17 +44002,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarginLevels other) { if (other == io.vegaprotocol.vega.Vega.MarginLevels.getDefaultInstance()) return this; - if (other.getMaintenanceMargin() != 0L) { - setMaintenanceMargin(other.getMaintenanceMargin()); + if (!other.getMaintenanceMargin().isEmpty()) { + maintenanceMargin_ = other.maintenanceMargin_; + onChanged(); } - if (other.getSearchLevel() != 0L) { - setSearchLevel(other.getSearchLevel()); + if (!other.getSearchLevel().isEmpty()) { + searchLevel_ = other.searchLevel_; + onChanged(); } - if (other.getInitialMargin() != 0L) { - setInitialMargin(other.getInitialMargin()); + if (!other.getInitialMargin().isEmpty()) { + initialMargin_ = other.initialMargin_; + onChanged(); } - if (other.getCollateralReleaseLevel() != 0L) { - setCollateralReleaseLevel(other.getCollateralReleaseLevel()); + if (!other.getCollateralReleaseLevel().isEmpty()) { + collateralReleaseLevel_ = other.collateralReleaseLevel_; + onChanged(); } if (!other.getPartyId().isEmpty()) { partyId_ = other.partyId_; @@ -41582,29 +44062,62 @@ public Builder mergeFrom( return this; } - private long maintenanceMargin_ ; + private java.lang.Object maintenanceMargin_ = ""; /** *
            * Maintenance margin value
            * 
    * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; * @return The maintenanceMargin. */ - @java.lang.Override - public long getMaintenanceMargin() { - return maintenanceMargin_; + public java.lang.String getMaintenanceMargin() { + java.lang.Object ref = maintenanceMargin_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maintenanceMargin_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Maintenance margin value
            * 
    * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @return The bytes for maintenanceMargin. + */ + public com.google.protobuf.ByteString + getMaintenanceMarginBytes() { + java.lang.Object ref = maintenanceMargin_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maintenanceMargin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Maintenance margin value
    +       * 
    + * + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; * @param value The maintenanceMargin to set. * @return This builder for chaining. */ - public Builder setMaintenanceMargin(long value) { + public Builder setMaintenanceMargin( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } maintenanceMargin_ = value; onChanged(); @@ -41615,39 +44128,92 @@ public Builder setMaintenanceMargin(long value) { * Maintenance margin value *
    * - * uint64 maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; * @return This builder for chaining. */ public Builder clearMaintenanceMargin() { - maintenanceMargin_ = 0L; + maintenanceMargin_ = getDefaultInstance().getMaintenanceMargin(); + onChanged(); + return this; + } + /** + *
    +       * Maintenance margin value
    +       * 
    + * + * string maintenance_margin = 1 [json_name = "maintenanceMargin"]; + * @param value The bytes for maintenanceMargin to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceMarginBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + maintenanceMargin_ = value; onChanged(); return this; } - private long searchLevel_ ; + private java.lang.Object searchLevel_ = ""; /** *
            * Search level value
            * 
    * - * uint64 search_level = 2 [json_name = "searchLevel"]; + * string search_level = 2 [json_name = "searchLevel"]; * @return The searchLevel. */ - @java.lang.Override - public long getSearchLevel() { - return searchLevel_; + public java.lang.String getSearchLevel() { + java.lang.Object ref = searchLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Search level value
            * 
    * - * uint64 search_level = 2 [json_name = "searchLevel"]; + * string search_level = 2 [json_name = "searchLevel"]; + * @return The bytes for searchLevel. + */ + public com.google.protobuf.ByteString + getSearchLevelBytes() { + java.lang.Object ref = searchLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Search level value
    +       * 
    + * + * string search_level = 2 [json_name = "searchLevel"]; * @param value The searchLevel to set. * @return This builder for chaining. */ - public Builder setSearchLevel(long value) { + public Builder setSearchLevel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } searchLevel_ = value; onChanged(); @@ -41658,39 +44224,92 @@ public Builder setSearchLevel(long value) { * Search level value * * - * uint64 search_level = 2 [json_name = "searchLevel"]; + * string search_level = 2 [json_name = "searchLevel"]; * @return This builder for chaining. */ public Builder clearSearchLevel() { - searchLevel_ = 0L; + searchLevel_ = getDefaultInstance().getSearchLevel(); + onChanged(); + return this; + } + /** + *
    +       * Search level value
    +       * 
    + * + * string search_level = 2 [json_name = "searchLevel"]; + * @param value The bytes for searchLevel to set. + * @return This builder for chaining. + */ + public Builder setSearchLevelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + searchLevel_ = value; onChanged(); return this; } - private long initialMargin_ ; + private java.lang.Object initialMargin_ = ""; /** *
            * Initial margin value
            * 
    * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * string initial_margin = 3 [json_name = "initialMargin"]; * @return The initialMargin. */ - @java.lang.Override - public long getInitialMargin() { - return initialMargin_; + public java.lang.String getInitialMargin() { + java.lang.Object ref = initialMargin_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialMargin_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Initial margin value
    +       * 
    + * + * string initial_margin = 3 [json_name = "initialMargin"]; + * @return The bytes for initialMargin. + */ + public com.google.protobuf.ByteString + getInitialMarginBytes() { + java.lang.Object ref = initialMargin_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialMargin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Initial margin value
            * 
    * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * string initial_margin = 3 [json_name = "initialMargin"]; * @param value The initialMargin to set. * @return This builder for chaining. */ - public Builder setInitialMargin(long value) { + public Builder setInitialMargin( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } initialMargin_ = value; onChanged(); @@ -41701,39 +44320,92 @@ public Builder setInitialMargin(long value) { * Initial margin value * * - * uint64 initial_margin = 3 [json_name = "initialMargin"]; + * string initial_margin = 3 [json_name = "initialMargin"]; * @return This builder for chaining. */ public Builder clearInitialMargin() { - initialMargin_ = 0L; + initialMargin_ = getDefaultInstance().getInitialMargin(); + onChanged(); + return this; + } + /** + *
    +       * Initial margin value
    +       * 
    + * + * string initial_margin = 3 [json_name = "initialMargin"]; + * @param value The bytes for initialMargin to set. + * @return This builder for chaining. + */ + public Builder setInitialMarginBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialMargin_ = value; onChanged(); return this; } - private long collateralReleaseLevel_ ; + private java.lang.Object collateralReleaseLevel_ = ""; /** *
            * Collateral release level value
            * 
    * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; * @return The collateralReleaseLevel. */ - @java.lang.Override - public long getCollateralReleaseLevel() { - return collateralReleaseLevel_; + public java.lang.String getCollateralReleaseLevel() { + java.lang.Object ref = collateralReleaseLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collateralReleaseLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Collateral release level value
            * 
    * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @return The bytes for collateralReleaseLevel. + */ + public com.google.protobuf.ByteString + getCollateralReleaseLevelBytes() { + java.lang.Object ref = collateralReleaseLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collateralReleaseLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Collateral release level value
    +       * 
    + * + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; * @param value The collateralReleaseLevel to set. * @return This builder for chaining. */ - public Builder setCollateralReleaseLevel(long value) { + public Builder setCollateralReleaseLevel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } collateralReleaseLevel_ = value; onChanged(); @@ -41744,12 +44416,32 @@ public Builder setCollateralReleaseLevel(long value) { * Collateral release level value * * - * uint64 collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; * @return This builder for chaining. */ public Builder clearCollateralReleaseLevel() { - collateralReleaseLevel_ = 0L; + collateralReleaseLevel_ = getDefaultInstance().getCollateralReleaseLevel(); + onChanged(); + return this; + } + /** + *
    +       * Collateral release level value
    +       * 
    + * + * string collateral_release_level = 4 [json_name = "collateralReleaseLevel"]; + * @param value The bytes for collateralReleaseLevel to set. + * @return This builder for chaining. + */ + public Builder setCollateralReleaseLevelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + collateralReleaseLevel_ = value; onChanged(); return this; } @@ -42150,10 +44842,21 @@ public interface MarketDataOrBuilder extends * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string mark_price = 1 [json_name = "markPrice"]; * @return The markPrice. */ - long getMarkPrice(); + java.lang.String getMarkPrice(); + /** + *
    +     * Mark price, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string mark_price = 1 [json_name = "markPrice"]; + * @return The bytes for markPrice. + */ + com.google.protobuf.ByteString + getMarkPriceBytes(); /** *
    @@ -42161,10 +44864,21 @@ public interface MarketDataOrBuilder extends
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string best_bid_price = 2 [json_name = "bestBidPrice"]; * @return The bestBidPrice. */ - long getBestBidPrice(); + java.lang.String getBestBidPrice(); + /** + *
    +     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bytes for bestBidPrice. + */ + com.google.protobuf.ByteString + getBestBidPriceBytes(); /** *
    @@ -42181,10 +44895,20 @@ public interface MarketDataOrBuilder extends
          * Lowest price level on an order book for offer orders
          * 
    * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; * @return The bestOfferPrice. */ - long getBestOfferPrice(); + java.lang.String getBestOfferPrice(); + /** + *
    +     * Lowest price level on an order book for offer orders
    +     * 
    + * + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bytes for bestOfferPrice. + */ + com.google.protobuf.ByteString + getBestOfferPriceBytes(); /** *
    @@ -42202,10 +44926,20 @@ public interface MarketDataOrBuilder extends
          * Highest price on the order book for buy orders not including pegged orders
          * 
    * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; * @return The bestStaticBidPrice. */ - long getBestStaticBidPrice(); + java.lang.String getBestStaticBidPrice(); + /** + *
    +     * Highest price on the order book for buy orders not including pegged orders
    +     * 
    + * + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bytes for bestStaticBidPrice. + */ + com.google.protobuf.ByteString + getBestStaticBidPriceBytes(); /** *
    @@ -42222,10 +44956,20 @@ public interface MarketDataOrBuilder extends
          * Lowest price on the order book for sell orders not including pegged orders
          * 
    * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; * @return The bestStaticOfferPrice. */ - long getBestStaticOfferPrice(); + java.lang.String getBestStaticOfferPrice(); + /** + *
    +     * Lowest price on the order book for sell orders not including pegged orders
    +     * 
    + * + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bytes for bestStaticOfferPrice. + */ + com.google.protobuf.ByteString + getBestStaticOfferPriceBytes(); /** *
    @@ -42243,20 +44987,41 @@ public interface MarketDataOrBuilder extends
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 mid_price = 10 [json_name = "midPrice"]; + * string mid_price = 10 [json_name = "midPrice"]; * @return The midPrice. */ - long getMidPrice(); + java.lang.String getMidPrice(); + /** + *
    +     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string mid_price = 10 [json_name = "midPrice"]; + * @return The bytes for midPrice. + */ + com.google.protobuf.ByteString + getMidPriceBytes(); /** *
          * Arithmetic average of the best static bid price and best static offer price
          * 
    * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * string static_mid_price = 11 [json_name = "staticMidPrice"]; * @return The staticMidPrice. */ - long getStaticMidPrice(); + java.lang.String getStaticMidPrice(); + /** + *
    +     * Arithmetic average of the best static bid price and best static offer price
    +     * 
    + * + * string static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The bytes for staticMidPrice. + */ + com.google.protobuf.ByteString + getStaticMidPriceBytes(); /** *
    @@ -42324,10 +45089,20 @@ public interface MarketDataOrBuilder extends
          * Indicative price (zero if not in auction)
          * 
    * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * string indicative_price = 17 [json_name = "indicativePrice"]; * @return The indicativePrice. */ - long getIndicativePrice(); + java.lang.String getIndicativePrice(); + /** + *
    +     * Indicative price (zero if not in auction)
    +     * 
    + * + * string indicative_price = 17 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + com.google.protobuf.ByteString + getIndicativePriceBytes(); /** *
    @@ -42561,7 +45336,15 @@ private MarketData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
         private MarketData() {
    +      markPrice_ = "";
    +      bestBidPrice_ = "";
    +      bestOfferPrice_ = "";
    +      bestStaticBidPrice_ = "";
    +      bestStaticOfferPrice_ = "";
    +      midPrice_ = "";
    +      staticMidPrice_ = "";
           market_ = "";
    +      indicativePrice_ = "";
           marketTradingMode_ = 0;
           trigger_ = 0;
           extensionTrigger_ = 0;
    @@ -42603,14 +45386,16 @@ private MarketData(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              markPrice_ = input.readUInt64();
    +              markPrice_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              bestBidPrice_ = input.readUInt64();
    +              bestBidPrice_ = s;
                   break;
                 }
                 case 24: {
    @@ -42618,9 +45403,10 @@ private MarketData(
                   bestBidVolume_ = input.readUInt64();
                   break;
                 }
    -            case 32: {
    +            case 34: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              bestOfferPrice_ = input.readUInt64();
    +              bestOfferPrice_ = s;
                   break;
                 }
                 case 40: {
    @@ -42628,9 +45414,10 @@ private MarketData(
                   bestOfferVolume_ = input.readUInt64();
                   break;
                 }
    -            case 48: {
    +            case 50: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              bestStaticBidPrice_ = input.readUInt64();
    +              bestStaticBidPrice_ = s;
                   break;
                 }
                 case 56: {
    @@ -42638,9 +45425,10 @@ private MarketData(
                   bestStaticBidVolume_ = input.readUInt64();
                   break;
                 }
    -            case 64: {
    +            case 66: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              bestStaticOfferPrice_ = input.readUInt64();
    +              bestStaticOfferPrice_ = s;
                   break;
                 }
                 case 72: {
    @@ -42648,14 +45436,16 @@ private MarketData(
                   bestStaticOfferVolume_ = input.readUInt64();
                   break;
                 }
    -            case 80: {
    +            case 82: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              midPrice_ = input.readUInt64();
    +              midPrice_ = s;
                   break;
                 }
    -            case 88: {
    +            case 90: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              staticMidPrice_ = input.readUInt64();
    +              staticMidPrice_ = s;
                   break;
                 }
                 case 98: {
    @@ -42684,9 +45474,10 @@ private MarketData(
                   auctionStart_ = input.readInt64();
                   break;
                 }
    -            case 136: {
    +            case 138: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              indicativePrice_ = input.readUInt64();
    +              indicativePrice_ = s;
                   break;
                 }
                 case 144: {
    @@ -42787,35 +45578,99 @@ private MarketData(
         }
     
         public static final int MARK_PRICE_FIELD_NUMBER = 1;
    -    private long markPrice_;
    +    private volatile java.lang.Object markPrice_;
         /**
          * 
          * Mark price, as an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string mark_price = 1 [json_name = "markPrice"]; * @return The markPrice. */ @java.lang.Override - public long getMarkPrice() { - return markPrice_; + public java.lang.String getMarkPrice() { + java.lang.Object ref = markPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + markPrice_ = s; + return s; + } + } + /** + *
    +     * Mark price, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string mark_price = 1 [json_name = "markPrice"]; + * @return The bytes for markPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMarkPriceBytes() { + java.lang.Object ref = markPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + markPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BEST_BID_PRICE_FIELD_NUMBER = 2; - private long bestBidPrice_; + private volatile java.lang.Object bestBidPrice_; /** *
          * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string best_bid_price = 2 [json_name = "bestBidPrice"]; * @return The bestBidPrice. */ @java.lang.Override - public long getBestBidPrice() { - return bestBidPrice_; + public java.lang.String getBestBidPrice() { + java.lang.Object ref = bestBidPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestBidPrice_ = s; + return s; + } + } + /** + *
    +     * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bytes for bestBidPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBestBidPriceBytes() { + java.lang.Object ref = bestBidPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestBidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BEST_BID_VOLUME_FIELD_NUMBER = 3; @@ -42834,18 +45689,49 @@ public long getBestBidVolume() { } public static final int BEST_OFFER_PRICE_FIELD_NUMBER = 4; - private long bestOfferPrice_; + private volatile java.lang.Object bestOfferPrice_; /** *
          * Lowest price level on an order book for offer orders
          * 
    * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; * @return The bestOfferPrice. */ @java.lang.Override - public long getBestOfferPrice() { - return bestOfferPrice_; + public java.lang.String getBestOfferPrice() { + java.lang.Object ref = bestOfferPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestOfferPrice_ = s; + return s; + } + } + /** + *
    +     * Lowest price level on an order book for offer orders
    +     * 
    + * + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bytes for bestOfferPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBestOfferPriceBytes() { + java.lang.Object ref = bestOfferPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestOfferPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BEST_OFFER_VOLUME_FIELD_NUMBER = 5; @@ -42865,18 +45751,49 @@ public long getBestOfferVolume() { } public static final int BEST_STATIC_BID_PRICE_FIELD_NUMBER = 6; - private long bestStaticBidPrice_; + private volatile java.lang.Object bestStaticBidPrice_; /** *
          * Highest price on the order book for buy orders not including pegged orders
          * 
    * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; * @return The bestStaticBidPrice. */ @java.lang.Override - public long getBestStaticBidPrice() { - return bestStaticBidPrice_; + public java.lang.String getBestStaticBidPrice() { + java.lang.Object ref = bestStaticBidPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestStaticBidPrice_ = s; + return s; + } + } + /** + *
    +     * Highest price on the order book for buy orders not including pegged orders
    +     * 
    + * + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bytes for bestStaticBidPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBestStaticBidPriceBytes() { + java.lang.Object ref = bestStaticBidPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestStaticBidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BEST_STATIC_BID_VOLUME_FIELD_NUMBER = 7; @@ -42895,18 +45812,49 @@ public long getBestStaticBidVolume() { } public static final int BEST_STATIC_OFFER_PRICE_FIELD_NUMBER = 8; - private long bestStaticOfferPrice_; + private volatile java.lang.Object bestStaticOfferPrice_; /** *
          * Lowest price on the order book for sell orders not including pegged orders
          * 
    * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; * @return The bestStaticOfferPrice. */ @java.lang.Override - public long getBestStaticOfferPrice() { - return bestStaticOfferPrice_; + public java.lang.String getBestStaticOfferPrice() { + java.lang.Object ref = bestStaticOfferPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestStaticOfferPrice_ = s; + return s; + } + } + /** + *
    +     * Lowest price on the order book for sell orders not including pegged orders
    +     * 
    + * + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bytes for bestStaticOfferPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBestStaticOfferPriceBytes() { + java.lang.Object ref = bestStaticOfferPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestStaticOfferPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER = 9; @@ -42925,34 +45873,97 @@ public long getBestStaticOfferVolume() { } public static final int MID_PRICE_FIELD_NUMBER = 10; - private long midPrice_; + private volatile java.lang.Object midPrice_; /** *
          * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
          * formatted price of `1.23456` assuming market configured to 5 decimal places
          * 
    * - * uint64 mid_price = 10 [json_name = "midPrice"]; + * string mid_price = 10 [json_name = "midPrice"]; * @return The midPrice. */ @java.lang.Override - public long getMidPrice() { - return midPrice_; + public java.lang.String getMidPrice() { + java.lang.Object ref = midPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + midPrice_ = s; + return s; + } + } + /** + *
    +     * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places
    +     * 
    + * + * string mid_price = 10 [json_name = "midPrice"]; + * @return The bytes for midPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMidPriceBytes() { + java.lang.Object ref = midPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + midPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int STATIC_MID_PRICE_FIELD_NUMBER = 11; - private long staticMidPrice_; + private volatile java.lang.Object staticMidPrice_; /** *
          * Arithmetic average of the best static bid price and best static offer price
          * 
    * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * string static_mid_price = 11 [json_name = "staticMidPrice"]; * @return The staticMidPrice. */ @java.lang.Override - public long getStaticMidPrice() { - return staticMidPrice_; + public java.lang.String getStaticMidPrice() { + java.lang.Object ref = staticMidPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + staticMidPrice_ = s; + return s; + } + } + /** + *
    +     * Arithmetic average of the best static bid price and best static offer price
    +     * 
    + * + * string static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The bytes for staticMidPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStaticMidPriceBytes() { + java.lang.Object ref = staticMidPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + staticMidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MARKET_FIELD_NUMBER = 12; @@ -43063,18 +46074,49 @@ public long getAuctionStart() { } public static final int INDICATIVE_PRICE_FIELD_NUMBER = 17; - private long indicativePrice_; + private volatile java.lang.Object indicativePrice_; /** *
          * Indicative price (zero if not in auction)
          * 
    * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * string indicative_price = 17 [json_name = "indicativePrice"]; * @return The indicativePrice. */ @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; + public java.lang.String getIndicativePrice() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indicativePrice_ = s; + return s; + } + } + /** + *
    +     * Indicative price (zero if not in auction)
    +     * 
    + * + * string indicative_price = 17 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIndicativePriceBytes() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicativePrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int INDICATIVE_VOLUME_FIELD_NUMBER = 18; @@ -43445,38 +46487,38 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (markPrice_ != 0L) { - output.writeUInt64(1, markPrice_); + if (!getMarkPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, markPrice_); } - if (bestBidPrice_ != 0L) { - output.writeUInt64(2, bestBidPrice_); + if (!getBestBidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bestBidPrice_); } if (bestBidVolume_ != 0L) { output.writeUInt64(3, bestBidVolume_); } - if (bestOfferPrice_ != 0L) { - output.writeUInt64(4, bestOfferPrice_); + if (!getBestOfferPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bestOfferPrice_); } if (bestOfferVolume_ != 0L) { output.writeUInt64(5, bestOfferVolume_); } - if (bestStaticBidPrice_ != 0L) { - output.writeUInt64(6, bestStaticBidPrice_); + if (!getBestStaticBidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, bestStaticBidPrice_); } if (bestStaticBidVolume_ != 0L) { output.writeUInt64(7, bestStaticBidVolume_); } - if (bestStaticOfferPrice_ != 0L) { - output.writeUInt64(8, bestStaticOfferPrice_); + if (!getBestStaticOfferPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, bestStaticOfferPrice_); } if (bestStaticOfferVolume_ != 0L) { output.writeUInt64(9, bestStaticOfferVolume_); } - if (midPrice_ != 0L) { - output.writeUInt64(10, midPrice_); + if (!getMidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, midPrice_); } - if (staticMidPrice_ != 0L) { - output.writeUInt64(11, staticMidPrice_); + if (!getStaticMidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, staticMidPrice_); } if (!getMarketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, market_); @@ -43493,8 +46535,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (auctionStart_ != 0L) { output.writeInt64(16, auctionStart_); } - if (indicativePrice_ != 0L) { - output.writeUInt64(17, indicativePrice_); + if (!getIndicativePriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, indicativePrice_); } if (indicativeVolume_ != 0L) { output.writeUInt64(18, indicativeVolume_); @@ -43532,49 +46574,42 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (markPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, markPrice_); + if (!getMarkPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, markPrice_); } - if (bestBidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, bestBidPrice_); + if (!getBestBidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bestBidPrice_); } if (bestBidVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, bestBidVolume_); } - if (bestOfferPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, bestOfferPrice_); + if (!getBestOfferPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bestOfferPrice_); } if (bestOfferVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, bestOfferVolume_); } - if (bestStaticBidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, bestStaticBidPrice_); + if (!getBestStaticBidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, bestStaticBidPrice_); } if (bestStaticBidVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, bestStaticBidVolume_); } - if (bestStaticOfferPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, bestStaticOfferPrice_); + if (!getBestStaticOfferPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, bestStaticOfferPrice_); } if (bestStaticOfferVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, bestStaticOfferVolume_); } - if (midPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, midPrice_); + if (!getMidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, midPrice_); } - if (staticMidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, staticMidPrice_); + if (!getStaticMidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, staticMidPrice_); } if (!getMarketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, market_); @@ -43595,9 +46630,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, auctionStart_); } - if (indicativePrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, indicativePrice_); + if (!getIndicativePriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, indicativePrice_); } if (indicativeVolume_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -43647,28 +46681,28 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.MarketData other = (io.vegaprotocol.vega.Vega.MarketData) obj; - if (getMarkPrice() - != other.getMarkPrice()) return false; - if (getBestBidPrice() - != other.getBestBidPrice()) return false; + if (!getMarkPrice() + .equals(other.getMarkPrice())) return false; + if (!getBestBidPrice() + .equals(other.getBestBidPrice())) return false; if (getBestBidVolume() != other.getBestBidVolume()) return false; - if (getBestOfferPrice() - != other.getBestOfferPrice()) return false; + if (!getBestOfferPrice() + .equals(other.getBestOfferPrice())) return false; if (getBestOfferVolume() != other.getBestOfferVolume()) return false; - if (getBestStaticBidPrice() - != other.getBestStaticBidPrice()) return false; + if (!getBestStaticBidPrice() + .equals(other.getBestStaticBidPrice())) return false; if (getBestStaticBidVolume() != other.getBestStaticBidVolume()) return false; - if (getBestStaticOfferPrice() - != other.getBestStaticOfferPrice()) return false; + if (!getBestStaticOfferPrice() + .equals(other.getBestStaticOfferPrice())) return false; if (getBestStaticOfferVolume() != other.getBestStaticOfferVolume()) return false; - if (getMidPrice() - != other.getMidPrice()) return false; - if (getStaticMidPrice() - != other.getStaticMidPrice()) return false; + if (!getMidPrice() + .equals(other.getMidPrice())) return false; + if (!getStaticMidPrice() + .equals(other.getStaticMidPrice())) return false; if (!getMarket() .equals(other.getMarket())) return false; if (getTimestamp() @@ -43679,8 +46713,8 @@ public boolean equals(final java.lang.Object obj) { != other.getAuctionEnd()) return false; if (getAuctionStart() != other.getAuctionStart()) return false; - if (getIndicativePrice() - != other.getIndicativePrice()) return false; + if (!getIndicativePrice() + .equals(other.getIndicativePrice())) return false; if (getIndicativeVolume() != other.getIndicativeVolume()) return false; if (marketTradingMode_ != other.marketTradingMode_) return false; @@ -43708,38 +46742,31 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MARK_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMarkPrice()); + hash = (53 * hash) + getMarkPrice().hashCode(); hash = (37 * hash) + BEST_BID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestBidPrice()); + hash = (53 * hash) + getBestBidPrice().hashCode(); hash = (37 * hash) + BEST_BID_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBestBidVolume()); hash = (37 * hash) + BEST_OFFER_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestOfferPrice()); + hash = (53 * hash) + getBestOfferPrice().hashCode(); hash = (37 * hash) + BEST_OFFER_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBestOfferVolume()); hash = (37 * hash) + BEST_STATIC_BID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticBidPrice()); + hash = (53 * hash) + getBestStaticBidPrice().hashCode(); hash = (37 * hash) + BEST_STATIC_BID_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBestStaticBidVolume()); hash = (37 * hash) + BEST_STATIC_OFFER_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBestStaticOfferPrice()); + hash = (53 * hash) + getBestStaticOfferPrice().hashCode(); hash = (37 * hash) + BEST_STATIC_OFFER_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBestStaticOfferVolume()); hash = (37 * hash) + MID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMidPrice()); + hash = (53 * hash) + getMidPrice().hashCode(); hash = (37 * hash) + STATIC_MID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStaticMidPrice()); + hash = (53 * hash) + getStaticMidPrice().hashCode(); hash = (37 * hash) + MARKET_FIELD_NUMBER; hash = (53 * hash) + getMarket().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; @@ -43755,8 +46782,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAuctionStart()); hash = (37 * hash) + INDICATIVE_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndicativePrice()); + hash = (53 * hash) + getIndicativePrice().hashCode(); hash = (37 * hash) + INDICATIVE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndicativeVolume()); @@ -43919,27 +46945,27 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - markPrice_ = 0L; + markPrice_ = ""; - bestBidPrice_ = 0L; + bestBidPrice_ = ""; bestBidVolume_ = 0L; - bestOfferPrice_ = 0L; + bestOfferPrice_ = ""; bestOfferVolume_ = 0L; - bestStaticBidPrice_ = 0L; + bestStaticBidPrice_ = ""; bestStaticBidVolume_ = 0L; - bestStaticOfferPrice_ = 0L; + bestStaticOfferPrice_ = ""; bestStaticOfferVolume_ = 0L; - midPrice_ = 0L; + midPrice_ = ""; - staticMidPrice_ = 0L; + staticMidPrice_ = ""; market_ = ""; @@ -43951,7 +46977,7 @@ public Builder clear() { auctionStart_ = 0L; - indicativePrice_ = 0L; + indicativePrice_ = ""; indicativeVolume_ = 0L; @@ -44096,38 +47122,45 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarketData other) { if (other == io.vegaprotocol.vega.Vega.MarketData.getDefaultInstance()) return this; - if (other.getMarkPrice() != 0L) { - setMarkPrice(other.getMarkPrice()); + if (!other.getMarkPrice().isEmpty()) { + markPrice_ = other.markPrice_; + onChanged(); } - if (other.getBestBidPrice() != 0L) { - setBestBidPrice(other.getBestBidPrice()); + if (!other.getBestBidPrice().isEmpty()) { + bestBidPrice_ = other.bestBidPrice_; + onChanged(); } if (other.getBestBidVolume() != 0L) { setBestBidVolume(other.getBestBidVolume()); } - if (other.getBestOfferPrice() != 0L) { - setBestOfferPrice(other.getBestOfferPrice()); + if (!other.getBestOfferPrice().isEmpty()) { + bestOfferPrice_ = other.bestOfferPrice_; + onChanged(); } if (other.getBestOfferVolume() != 0L) { setBestOfferVolume(other.getBestOfferVolume()); } - if (other.getBestStaticBidPrice() != 0L) { - setBestStaticBidPrice(other.getBestStaticBidPrice()); + if (!other.getBestStaticBidPrice().isEmpty()) { + bestStaticBidPrice_ = other.bestStaticBidPrice_; + onChanged(); } if (other.getBestStaticBidVolume() != 0L) { setBestStaticBidVolume(other.getBestStaticBidVolume()); } - if (other.getBestStaticOfferPrice() != 0L) { - setBestStaticOfferPrice(other.getBestStaticOfferPrice()); + if (!other.getBestStaticOfferPrice().isEmpty()) { + bestStaticOfferPrice_ = other.bestStaticOfferPrice_; + onChanged(); } if (other.getBestStaticOfferVolume() != 0L) { setBestStaticOfferVolume(other.getBestStaticOfferVolume()); } - if (other.getMidPrice() != 0L) { - setMidPrice(other.getMidPrice()); + if (!other.getMidPrice().isEmpty()) { + midPrice_ = other.midPrice_; + onChanged(); } - if (other.getStaticMidPrice() != 0L) { - setStaticMidPrice(other.getStaticMidPrice()); + if (!other.getStaticMidPrice().isEmpty()) { + staticMidPrice_ = other.staticMidPrice_; + onChanged(); } if (!other.getMarket().isEmpty()) { market_ = other.market_; @@ -44145,8 +47178,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.MarketData other) { if (other.getAuctionStart() != 0L) { setAuctionStart(other.getAuctionStart()); } - if (other.getIndicativePrice() != 0L) { - setIndicativePrice(other.getIndicativePrice()); + if (!other.getIndicativePrice().isEmpty()) { + indicativePrice_ = other.indicativePrice_; + onChanged(); } if (other.getIndicativeVolume() != 0L) { setIndicativeVolume(other.getIndicativeVolume()); @@ -44254,19 +47288,27 @@ public Builder mergeFrom( } private int bitField0_; - private long markPrice_ ; + private java.lang.Object markPrice_ = ""; /** *
            * Mark price, as an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string mark_price = 1 [json_name = "markPrice"]; * @return The markPrice. */ - @java.lang.Override - public long getMarkPrice() { - return markPrice_; + public java.lang.String getMarkPrice() { + java.lang.Object ref = markPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + markPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
    @@ -44274,11 +47316,37 @@ public long getMarkPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string mark_price = 1 [json_name = "markPrice"]; + * @return The bytes for markPrice. + */ + public com.google.protobuf.ByteString + getMarkPriceBytes() { + java.lang.Object ref = markPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + markPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Mark price, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string mark_price = 1 [json_name = "markPrice"]; * @param value The markPrice to set. * @return This builder for chaining. */ - public Builder setMarkPrice(long value) { + public Builder setMarkPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } markPrice_ = value; onChanged(); @@ -44290,29 +47358,80 @@ public Builder setMarkPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places *
    * - * uint64 mark_price = 1 [json_name = "markPrice"]; + * string mark_price = 1 [json_name = "markPrice"]; * @return This builder for chaining. */ public Builder clearMarkPrice() { - markPrice_ = 0L; + markPrice_ = getDefaultInstance().getMarkPrice(); + onChanged(); + return this; + } + /** + *
    +       * Mark price, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string mark_price = 1 [json_name = "markPrice"]; + * @param value The bytes for markPrice to set. + * @return This builder for chaining. + */ + public Builder setMarkPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + markPrice_ = value; onChanged(); return this; } - private long bestBidPrice_ ; + private java.lang.Object bestBidPrice_ = ""; /** *
            * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string best_bid_price = 2 [json_name = "bestBidPrice"]; * @return The bestBidPrice. */ - @java.lang.Override - public long getBestBidPrice() { - return bestBidPrice_; + public java.lang.String getBestBidPrice() { + java.lang.Object ref = bestBidPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestBidPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string best_bid_price = 2 [json_name = "bestBidPrice"]; + * @return The bytes for bestBidPrice. + */ + public com.google.protobuf.ByteString + getBestBidPriceBytes() { + java.lang.Object ref = bestBidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestBidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -44320,11 +47439,15 @@ public long getBestBidPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string best_bid_price = 2 [json_name = "bestBidPrice"]; * @param value The bestBidPrice to set. * @return This builder for chaining. */ - public Builder setBestBidPrice(long value) { + public Builder setBestBidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bestBidPrice_ = value; onChanged(); @@ -44336,12 +47459,33 @@ public Builder setBestBidPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 best_bid_price = 2 [json_name = "bestBidPrice"]; + * string best_bid_price = 2 [json_name = "bestBidPrice"]; * @return This builder for chaining. */ public Builder clearBestBidPrice() { - bestBidPrice_ = 0L; + bestBidPrice_ = getDefaultInstance().getBestBidPrice(); + onChanged(); + return this; + } + /** + *
    +       * Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string best_bid_price = 2 [json_name = "bestBidPrice"]; + * @param value The bytes for bestBidPrice to set. + * @return This builder for chaining. + */ + public Builder setBestBidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bestBidPrice_ = value; onChanged(); return this; } @@ -44389,29 +47533,62 @@ public Builder clearBestBidVolume() { return this; } - private long bestOfferPrice_ ; + private java.lang.Object bestOfferPrice_ = ""; /** *
            * Lowest price level on an order book for offer orders
            * 
    * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; * @return The bestOfferPrice. */ - @java.lang.Override - public long getBestOfferPrice() { - return bestOfferPrice_; + public java.lang.String getBestOfferPrice() { + java.lang.Object ref = bestOfferPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestOfferPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Lowest price level on an order book for offer orders
            * 
    * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @return The bytes for bestOfferPrice. + */ + public com.google.protobuf.ByteString + getBestOfferPriceBytes() { + java.lang.Object ref = bestOfferPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestOfferPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Lowest price level on an order book for offer orders
    +       * 
    + * + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; * @param value The bestOfferPrice to set. * @return This builder for chaining. */ - public Builder setBestOfferPrice(long value) { + public Builder setBestOfferPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bestOfferPrice_ = value; onChanged(); @@ -44422,12 +47599,32 @@ public Builder setBestOfferPrice(long value) { * Lowest price level on an order book for offer orders * * - * uint64 best_offer_price = 4 [json_name = "bestOfferPrice"]; + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; * @return This builder for chaining. */ public Builder clearBestOfferPrice() { - bestOfferPrice_ = 0L; + bestOfferPrice_ = getDefaultInstance().getBestOfferPrice(); + onChanged(); + return this; + } + /** + *
    +       * Lowest price level on an order book for offer orders
    +       * 
    + * + * string best_offer_price = 4 [json_name = "bestOfferPrice"]; + * @param value The bytes for bestOfferPrice to set. + * @return This builder for chaining. + */ + public Builder setBestOfferPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bestOfferPrice_ = value; onChanged(); return this; } @@ -44478,29 +47675,62 @@ public Builder clearBestOfferVolume() { return this; } - private long bestStaticBidPrice_ ; + private java.lang.Object bestStaticBidPrice_ = ""; /** *
            * Highest price on the order book for buy orders not including pegged orders
            * 
    * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; * @return The bestStaticBidPrice. */ - @java.lang.Override - public long getBestStaticBidPrice() { - return bestStaticBidPrice_; + public java.lang.String getBestStaticBidPrice() { + java.lang.Object ref = bestStaticBidPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestStaticBidPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Highest price on the order book for buy orders not including pegged orders
    +       * 
    + * + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @return The bytes for bestStaticBidPrice. + */ + public com.google.protobuf.ByteString + getBestStaticBidPriceBytes() { + java.lang.Object ref = bestStaticBidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestStaticBidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Highest price on the order book for buy orders not including pegged orders
            * 
    * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; * @param value The bestStaticBidPrice to set. * @return This builder for chaining. */ - public Builder setBestStaticBidPrice(long value) { + public Builder setBestStaticBidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bestStaticBidPrice_ = value; onChanged(); @@ -44511,12 +47741,32 @@ public Builder setBestStaticBidPrice(long value) { * Highest price on the order book for buy orders not including pegged orders * * - * uint64 best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; * @return This builder for chaining. */ public Builder clearBestStaticBidPrice() { - bestStaticBidPrice_ = 0L; + bestStaticBidPrice_ = getDefaultInstance().getBestStaticBidPrice(); + onChanged(); + return this; + } + /** + *
    +       * Highest price on the order book for buy orders not including pegged orders
    +       * 
    + * + * string best_static_bid_price = 6 [json_name = "bestStaticBidPrice"]; + * @param value The bytes for bestStaticBidPrice to set. + * @return This builder for chaining. + */ + public Builder setBestStaticBidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bestStaticBidPrice_ = value; onChanged(); return this; } @@ -44564,29 +47814,62 @@ public Builder clearBestStaticBidVolume() { return this; } - private long bestStaticOfferPrice_ ; + private java.lang.Object bestStaticOfferPrice_ = ""; /** *
            * Lowest price on the order book for sell orders not including pegged orders
            * 
    * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; * @return The bestStaticOfferPrice. */ - @java.lang.Override - public long getBestStaticOfferPrice() { - return bestStaticOfferPrice_; + public java.lang.String getBestStaticOfferPrice() { + java.lang.Object ref = bestStaticOfferPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bestStaticOfferPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Lowest price on the order book for sell orders not including pegged orders
    +       * 
    + * + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @return The bytes for bestStaticOfferPrice. + */ + public com.google.protobuf.ByteString + getBestStaticOfferPriceBytes() { + java.lang.Object ref = bestStaticOfferPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bestStaticOfferPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * Lowest price on the order book for sell orders not including pegged orders
            * 
    * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; * @param value The bestStaticOfferPrice to set. * @return This builder for chaining. */ - public Builder setBestStaticOfferPrice(long value) { + public Builder setBestStaticOfferPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bestStaticOfferPrice_ = value; onChanged(); @@ -44597,12 +47880,32 @@ public Builder setBestStaticOfferPrice(long value) { * Lowest price on the order book for sell orders not including pegged orders * * - * uint64 best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; * @return This builder for chaining. */ public Builder clearBestStaticOfferPrice() { - bestStaticOfferPrice_ = 0L; + bestStaticOfferPrice_ = getDefaultInstance().getBestStaticOfferPrice(); + onChanged(); + return this; + } + /** + *
    +       * Lowest price on the order book for sell orders not including pegged orders
    +       * 
    + * + * string best_static_offer_price = 8 [json_name = "bestStaticOfferPrice"]; + * @param value The bytes for bestStaticOfferPrice to set. + * @return This builder for chaining. + */ + public Builder setBestStaticOfferPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bestStaticOfferPrice_ = value; onChanged(); return this; } @@ -44650,19 +47953,49 @@ public Builder clearBestStaticOfferVolume() { return this; } - private long midPrice_ ; + private java.lang.Object midPrice_ = ""; /** *
            * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 mid_price = 10 [json_name = "midPrice"]; + * string mid_price = 10 [json_name = "midPrice"]; * @return The midPrice. */ - @java.lang.Override - public long getMidPrice() { - return midPrice_; + public java.lang.String getMidPrice() { + java.lang.Object ref = midPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + midPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string mid_price = 10 [json_name = "midPrice"]; + * @return The bytes for midPrice. + */ + public com.google.protobuf.ByteString + getMidPriceBytes() { + java.lang.Object ref = midPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + midPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
    @@ -44670,11 +48003,15 @@ public long getMidPrice() {
            * formatted price of `1.23456` assuming market configured to 5 decimal places
            * 
    * - * uint64 mid_price = 10 [json_name = "midPrice"]; + * string mid_price = 10 [json_name = "midPrice"]; * @param value The midPrice to set. * @return This builder for chaining. */ - public Builder setMidPrice(long value) { + public Builder setMidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } midPrice_ = value; onChanged(); @@ -44686,39 +48023,93 @@ public Builder setMidPrice(long value) { * formatted price of `1.23456` assuming market configured to 5 decimal places * * - * uint64 mid_price = 10 [json_name = "midPrice"]; + * string mid_price = 10 [json_name = "midPrice"]; * @return This builder for chaining. */ public Builder clearMidPrice() { - midPrice_ = 0L; + midPrice_ = getDefaultInstance().getMidPrice(); onChanged(); return this; } + /** + *
    +       * Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places
    +       * 
    + * + * string mid_price = 10 [json_name = "midPrice"]; + * @param value The bytes for midPrice to set. + * @return This builder for chaining. + */ + public Builder setMidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private long staticMidPrice_ ; + midPrice_ = value; + onChanged(); + return this; + } + + private java.lang.Object staticMidPrice_ = ""; /** *
            * Arithmetic average of the best static bid price and best static offer price
            * 
    * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * string static_mid_price = 11 [json_name = "staticMidPrice"]; * @return The staticMidPrice. */ - @java.lang.Override - public long getStaticMidPrice() { - return staticMidPrice_; + public java.lang.String getStaticMidPrice() { + java.lang.Object ref = staticMidPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + staticMidPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Arithmetic average of the best static bid price and best static offer price
            * 
    * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * string static_mid_price = 11 [json_name = "staticMidPrice"]; + * @return The bytes for staticMidPrice. + */ + public com.google.protobuf.ByteString + getStaticMidPriceBytes() { + java.lang.Object ref = staticMidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + staticMidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Arithmetic average of the best static bid price and best static offer price
    +       * 
    + * + * string static_mid_price = 11 [json_name = "staticMidPrice"]; * @param value The staticMidPrice to set. * @return This builder for chaining. */ - public Builder setStaticMidPrice(long value) { + public Builder setStaticMidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } staticMidPrice_ = value; onChanged(); @@ -44729,12 +48120,32 @@ public Builder setStaticMidPrice(long value) { * Arithmetic average of the best static bid price and best static offer price * * - * uint64 static_mid_price = 11 [json_name = "staticMidPrice"]; + * string static_mid_price = 11 [json_name = "staticMidPrice"]; * @return This builder for chaining. */ public Builder clearStaticMidPrice() { - staticMidPrice_ = 0L; + staticMidPrice_ = getDefaultInstance().getStaticMidPrice(); + onChanged(); + return this; + } + /** + *
    +       * Arithmetic average of the best static bid price and best static offer price
    +       * 
    + * + * string static_mid_price = 11 [json_name = "staticMidPrice"]; + * @param value The bytes for staticMidPrice to set. + * @return This builder for chaining. + */ + public Builder setStaticMidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + staticMidPrice_ = value; onChanged(); return this; } @@ -45010,29 +48421,62 @@ public Builder clearAuctionStart() { return this; } - private long indicativePrice_ ; + private java.lang.Object indicativePrice_ = ""; /** *
            * Indicative price (zero if not in auction)
            * 
    * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * string indicative_price = 17 [json_name = "indicativePrice"]; * @return The indicativePrice. */ - @java.lang.Override - public long getIndicativePrice() { - return indicativePrice_; + public java.lang.String getIndicativePrice() { + java.lang.Object ref = indicativePrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indicativePrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Indicative price (zero if not in auction)
            * 
    * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * string indicative_price = 17 [json_name = "indicativePrice"]; + * @return The bytes for indicativePrice. + */ + public com.google.protobuf.ByteString + getIndicativePriceBytes() { + java.lang.Object ref = indicativePrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicativePrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Indicative price (zero if not in auction)
    +       * 
    + * + * string indicative_price = 17 [json_name = "indicativePrice"]; * @param value The indicativePrice to set. * @return This builder for chaining. */ - public Builder setIndicativePrice(long value) { + public Builder setIndicativePrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } indicativePrice_ = value; onChanged(); @@ -45043,12 +48487,32 @@ public Builder setIndicativePrice(long value) { * Indicative price (zero if not in auction) * * - * uint64 indicative_price = 17 [json_name = "indicativePrice"]; + * string indicative_price = 17 [json_name = "indicativePrice"]; * @return This builder for chaining. */ public Builder clearIndicativePrice() { - indicativePrice_ = 0L; + indicativePrice_ = getDefaultInstance().getIndicativePrice(); + onChanged(); + return this; + } + /** + *
    +       * Indicative price (zero if not in auction)
    +       * 
    + * + * string indicative_price = 17 [json_name = "indicativePrice"]; + * @param value The bytes for indicativePrice to set. + * @return This builder for chaining. + */ + public Builder setIndicativePriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indicativePrice_ = value; onChanged(); return this; } @@ -47275,20 +50739,40 @@ public interface PriceMonitoringBoundsOrBuilder extends * Minimum price that isn't currently breaching the specified price monitoring trigger * * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * string min_valid_price = 1 [json_name = "minValidPrice"]; * @return The minValidPrice. */ - long getMinValidPrice(); + java.lang.String getMinValidPrice(); + /** + *
    +     * Minimum price that isn't currently breaching the specified price monitoring trigger
    +     * 
    + * + * string min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The bytes for minValidPrice. + */ + com.google.protobuf.ByteString + getMinValidPriceBytes(); /** *
          * Maximum price that isn't currently breaching the specified price monitoring trigger
          * 
    * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string max_valid_price = 2 [json_name = "maxValidPrice"]; * @return The maxValidPrice. */ - long getMaxValidPrice(); + java.lang.String getMaxValidPrice(); + /** + *
    +     * Maximum price that isn't currently breaching the specified price monitoring trigger
    +     * 
    + * + * string max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The bytes for maxValidPrice. + */ + com.google.protobuf.ByteString + getMaxValidPriceBytes(); /** *
    @@ -47344,6 +50828,8 @@ private PriceMonitoringBounds(com.google.protobuf.GeneratedMessageV3.Builder
           super(builder);
         }
         private PriceMonitoringBounds() {
    +      minValidPrice_ = "";
    +      maxValidPrice_ = "";
         }
     
         @java.lang.Override
    @@ -47376,14 +50862,16 @@ private PriceMonitoringBounds(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              minValidPrice_ = input.readUInt64();
    +              minValidPrice_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              maxValidPrice_ = input.readUInt64();
    +              maxValidPrice_ = s;
                   break;
                 }
                 case 26: {
    @@ -47437,33 +50925,95 @@ private PriceMonitoringBounds(
         }
     
         public static final int MIN_VALID_PRICE_FIELD_NUMBER = 1;
    -    private long minValidPrice_;
    +    private volatile java.lang.Object minValidPrice_;
         /**
          * 
          * Minimum price that isn't currently breaching the specified price monitoring trigger
          * 
    * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * string min_valid_price = 1 [json_name = "minValidPrice"]; * @return The minValidPrice. */ @java.lang.Override - public long getMinValidPrice() { - return minValidPrice_; + public java.lang.String getMinValidPrice() { + java.lang.Object ref = minValidPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minValidPrice_ = s; + return s; + } + } + /** + *
    +     * Minimum price that isn't currently breaching the specified price monitoring trigger
    +     * 
    + * + * string min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The bytes for minValidPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMinValidPriceBytes() { + java.lang.Object ref = minValidPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minValidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int MAX_VALID_PRICE_FIELD_NUMBER = 2; - private long maxValidPrice_; + private volatile java.lang.Object maxValidPrice_; /** *
          * Maximum price that isn't currently breaching the specified price monitoring trigger
          * 
    * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string max_valid_price = 2 [json_name = "maxValidPrice"]; * @return The maxValidPrice. */ @java.lang.Override - public long getMaxValidPrice() { - return maxValidPrice_; + public java.lang.String getMaxValidPrice() { + java.lang.Object ref = maxValidPrice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxValidPrice_ = s; + return s; + } + } + /** + *
    +     * Maximum price that isn't currently breaching the specified price monitoring trigger
    +     * 
    + * + * string max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The bytes for maxValidPrice. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMaxValidPriceBytes() { + java.lang.Object ref = maxValidPrice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maxValidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int TRIGGER_FIELD_NUMBER = 3; @@ -47533,11 +51083,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minValidPrice_ != 0L) { - output.writeUInt64(1, minValidPrice_); + if (!getMinValidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, minValidPrice_); } - if (maxValidPrice_ != 0L) { - output.writeUInt64(2, maxValidPrice_); + if (!getMaxValidPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maxValidPrice_); } if (trigger_ != null) { output.writeMessage(3, getTrigger()); @@ -47554,13 +51104,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (minValidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, minValidPrice_); + if (!getMinValidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, minValidPrice_); } - if (maxValidPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxValidPrice_); + if (!getMaxValidPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, maxValidPrice_); } if (trigger_ != null) { size += com.google.protobuf.CodedOutputStream @@ -47585,10 +51133,10 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.Vega.PriceMonitoringBounds other = (io.vegaprotocol.vega.Vega.PriceMonitoringBounds) obj; - if (getMinValidPrice() - != other.getMinValidPrice()) return false; - if (getMaxValidPrice() - != other.getMaxValidPrice()) return false; + if (!getMinValidPrice() + .equals(other.getMinValidPrice())) return false; + if (!getMaxValidPrice() + .equals(other.getMaxValidPrice())) return false; if (hasTrigger() != other.hasTrigger()) return false; if (hasTrigger()) { if (!getTrigger() @@ -47609,11 +51157,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_VALID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinValidPrice()); + hash = (53 * hash) + getMinValidPrice().hashCode(); hash = (37 * hash) + MAX_VALID_PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxValidPrice()); + hash = (53 * hash) + getMaxValidPrice().hashCode(); if (hasTrigger()) { hash = (37 * hash) + TRIGGER_FIELD_NUMBER; hash = (53 * hash) + getTrigger().hashCode(); @@ -47758,9 +51304,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - minValidPrice_ = 0L; + minValidPrice_ = ""; - maxValidPrice_ = 0L; + maxValidPrice_ = ""; if (triggerBuilder_ == null) { trigger_ = null; @@ -47852,11 +51398,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.Vega.PriceMonitoringBounds other) { if (other == io.vegaprotocol.vega.Vega.PriceMonitoringBounds.getDefaultInstance()) return this; - if (other.getMinValidPrice() != 0L) { - setMinValidPrice(other.getMinValidPrice()); + if (!other.getMinValidPrice().isEmpty()) { + minValidPrice_ = other.minValidPrice_; + onChanged(); } - if (other.getMaxValidPrice() != 0L) { - setMaxValidPrice(other.getMaxValidPrice()); + if (!other.getMaxValidPrice().isEmpty()) { + maxValidPrice_ = other.maxValidPrice_; + onChanged(); } if (other.hasTrigger()) { mergeTrigger(other.getTrigger()); @@ -47893,29 +51441,62 @@ public Builder mergeFrom( return this; } - private long minValidPrice_ ; + private java.lang.Object minValidPrice_ = ""; /** *
            * Minimum price that isn't currently breaching the specified price monitoring trigger
            * 
    * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * string min_valid_price = 1 [json_name = "minValidPrice"]; * @return The minValidPrice. */ - @java.lang.Override - public long getMinValidPrice() { - return minValidPrice_; + public java.lang.String getMinValidPrice() { + java.lang.Object ref = minValidPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minValidPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Minimum price that isn't currently breaching the specified price monitoring trigger
            * 
    * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * string min_valid_price = 1 [json_name = "minValidPrice"]; + * @return The bytes for minValidPrice. + */ + public com.google.protobuf.ByteString + getMinValidPriceBytes() { + java.lang.Object ref = minValidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minValidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Minimum price that isn't currently breaching the specified price monitoring trigger
    +       * 
    + * + * string min_valid_price = 1 [json_name = "minValidPrice"]; * @param value The minValidPrice to set. * @return This builder for chaining. */ - public Builder setMinValidPrice(long value) { + public Builder setMinValidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } minValidPrice_ = value; onChanged(); @@ -47926,39 +51507,92 @@ public Builder setMinValidPrice(long value) { * Minimum price that isn't currently breaching the specified price monitoring trigger *
    * - * uint64 min_valid_price = 1 [json_name = "minValidPrice"]; + * string min_valid_price = 1 [json_name = "minValidPrice"]; * @return This builder for chaining. */ public Builder clearMinValidPrice() { - minValidPrice_ = 0L; + minValidPrice_ = getDefaultInstance().getMinValidPrice(); onChanged(); return this; } + /** + *
    +       * Minimum price that isn't currently breaching the specified price monitoring trigger
    +       * 
    + * + * string min_valid_price = 1 [json_name = "minValidPrice"]; + * @param value The bytes for minValidPrice to set. + * @return This builder for chaining. + */ + public Builder setMinValidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private long maxValidPrice_ ; + minValidPrice_ = value; + onChanged(); + return this; + } + + private java.lang.Object maxValidPrice_ = ""; /** *
            * Maximum price that isn't currently breaching the specified price monitoring trigger
            * 
    * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string max_valid_price = 2 [json_name = "maxValidPrice"]; * @return The maxValidPrice. */ - @java.lang.Override - public long getMaxValidPrice() { - return maxValidPrice_; + public java.lang.String getMaxValidPrice() { + java.lang.Object ref = maxValidPrice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxValidPrice_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Maximum price that isn't currently breaching the specified price monitoring trigger
            * 
    * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string max_valid_price = 2 [json_name = "maxValidPrice"]; + * @return The bytes for maxValidPrice. + */ + public com.google.protobuf.ByteString + getMaxValidPriceBytes() { + java.lang.Object ref = maxValidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maxValidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Maximum price that isn't currently breaching the specified price monitoring trigger
    +       * 
    + * + * string max_valid_price = 2 [json_name = "maxValidPrice"]; * @param value The maxValidPrice to set. * @return This builder for chaining. */ - public Builder setMaxValidPrice(long value) { + public Builder setMaxValidPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } maxValidPrice_ = value; onChanged(); @@ -47969,12 +51603,32 @@ public Builder setMaxValidPrice(long value) { * Maximum price that isn't currently breaching the specified price monitoring trigger * * - * uint64 max_valid_price = 2 [json_name = "maxValidPrice"]; + * string max_valid_price = 2 [json_name = "maxValidPrice"]; * @return This builder for chaining. */ public Builder clearMaxValidPrice() { - maxValidPrice_ = 0L; + maxValidPrice_ = getDefaultInstance().getMaxValidPrice(); + onChanged(); + return this; + } + /** + *
    +       * Maximum price that isn't currently breaching the specified price monitoring trigger
    +       * 
    + * + * string max_valid_price = 2 [json_name = "maxValidPrice"]; + * @param value The bytes for maxValidPrice to set. + * @return This builder for chaining. + */ + public Builder setMaxValidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + maxValidPrice_ = value; onChanged(); return this; } @@ -51631,10 +55285,20 @@ public interface LiquidityProvisionOrBuilder extends * Specified as a unitless number that represents the amount of settlement asset of the market * * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * string commitment_amount = 6 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - long getCommitmentAmount(); + java.lang.String getCommitmentAmount(); + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + com.google.protobuf.ByteString + getCommitmentAmountBytes(); /** *
    @@ -51823,6 +55487,7 @@ private LiquidityProvision() {
           id_ = "";
           partyId_ = "";
           marketId_ = "";
    +      commitmentAmount_ = "";
           fee_ = "";
           sells_ = java.util.Collections.emptyList();
           buys_ = java.util.Collections.emptyList();
    @@ -51890,9 +55555,10 @@ private LiquidityProvision(
                   marketId_ = s;
                   break;
                 }
    -            case 48: {
    +            case 50: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              commitmentAmount_ = input.readUInt64();
    +              commitmentAmount_ = s;
                   break;
                 }
                 case 58: {
    @@ -52363,18 +56029,49 @@ public java.lang.String getMarketId() {
         }
     
         public static final int COMMITMENT_AMOUNT_FIELD_NUMBER = 6;
    -    private long commitmentAmount_;
    +    private volatile java.lang.Object commitmentAmount_;
         /**
          * 
          * Specified as a unitless number that represents the amount of settlement asset of the market
          * 
    * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * string commitment_amount = 6 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } + } + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FEE_FIELD_NUMBER = 7; @@ -52691,8 +56388,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMarketIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_); } - if (commitmentAmount_ != 0L) { - output.writeUInt64(6, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fee_); @@ -52738,9 +56435,8 @@ public int getSerializedSize() { if (!getMarketIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_); } - if (commitmentAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fee_); @@ -52788,8 +56484,8 @@ public boolean equals(final java.lang.Object obj) { != other.getUpdatedAt()) return false; if (!getMarketId() .equals(other.getMarketId())) return false; - if (getCommitmentAmount() - != other.getCommitmentAmount()) return false; + if (!getCommitmentAmount() + .equals(other.getCommitmentAmount())) return false; if (!getFee() .equals(other.getFee())) return false; if (!getSellsList() @@ -52825,8 +56521,7 @@ public int hashCode() { hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; hash = (53 * hash) + getMarketId().hashCode(); hash = (37 * hash) + COMMITMENT_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommitmentAmount()); + hash = (53 * hash) + getCommitmentAmount().hashCode(); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + getFee().hashCode(); if (getSellsCount() > 0) { @@ -52992,7 +56687,7 @@ public Builder clear() { marketId_ = ""; - commitmentAmount_ = 0L; + commitmentAmount_ = ""; fee_ = ""; @@ -53135,8 +56830,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.LiquidityProvision other) { marketId_ = other.marketId_; onChanged(); } - if (other.getCommitmentAmount() != 0L) { - setCommitmentAmount(other.getCommitmentAmount()); + if (!other.getCommitmentAmount().isEmpty()) { + commitmentAmount_ = other.commitmentAmount_; + onChanged(); } if (!other.getFee().isEmpty()) { fee_ = other.fee_; @@ -53615,29 +57311,62 @@ public Builder setMarketIdBytes( return this; } - private long commitmentAmount_ ; + private java.lang.Object commitmentAmount_ = ""; /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * string commitment_amount = 6 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * string commitment_amount = 6 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 6 [json_name = "commitmentAmount"]; * @param value The commitmentAmount to set. * @return This builder for chaining. */ - public Builder setCommitmentAmount(long value) { + public Builder setCommitmentAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } commitmentAmount_ = value; onChanged(); @@ -53648,12 +57377,32 @@ public Builder setCommitmentAmount(long value) { * Specified as a unitless number that represents the amount of settlement asset of the market *
    * - * uint64 commitment_amount = 6 [json_name = "commitmentAmount"]; + * string commitment_amount = 6 [json_name = "commitmentAmount"]; * @return This builder for chaining. */ public Builder clearCommitmentAmount() { - commitmentAmount_ = 0L; + commitmentAmount_ = getDefaultInstance().getCommitmentAmount(); + onChanged(); + return this; + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 6 [json_name = "commitmentAmount"]; + * @param value The bytes for commitmentAmount to set. + * @return This builder for chaining. + */ + public Builder setCommitmentAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commitmentAmount_ = value; onChanged(); return this; } @@ -60397,6 +64146,46 @@ public interface NodeOrBuilder extends */ io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( int index); + + /** + *
    +     * Node score
    +     * 
    + * + * string score = 13 [json_name = "score"]; + * @return The score. + */ + java.lang.String getScore(); + /** + *
    +     * Node score
    +     * 
    + * + * string score = 13 [json_name = "score"]; + * @return The bytes for score. + */ + com.google.protobuf.ByteString + getScoreBytes(); + + /** + *
    +     * Node normalised score
    +     * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The normalisedScore. + */ + java.lang.String getNormalisedScore(); + /** + *
    +     * Node normalised score
    +     * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. + */ + com.google.protobuf.ByteString + getNormalisedScoreBytes(); } /** * Protobuf type {@code vega.Node} @@ -60422,6 +64211,8 @@ private Node() { pendingStake_ = ""; status_ = 0; delagations_ = java.util.Collections.emptyList(); + score_ = ""; + normalisedScore_ = ""; } @java.lang.Override @@ -60537,6 +64328,18 @@ private Node( input.readMessage(io.vegaprotocol.vega.Vega.Delegation.parser(), extensionRegistry)); break; } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + score_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + normalisedScore_ = s; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -61111,6 +64914,98 @@ public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( return delagations_.get(index); } + public static final int SCORE_FIELD_NUMBER = 13; + private volatile java.lang.Object score_; + /** + *
    +     * Node score
    +     * 
    + * + * string score = 13 [json_name = "score"]; + * @return The score. + */ + @java.lang.Override + public java.lang.String getScore() { + java.lang.Object ref = score_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + score_ = s; + return s; + } + } + /** + *
    +     * Node score
    +     * 
    + * + * string score = 13 [json_name = "score"]; + * @return The bytes for score. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getScoreBytes() { + java.lang.Object ref = score_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + score_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NORMALISED_SCORE_FIELD_NUMBER = 14; + private volatile java.lang.Object normalisedScore_; + /** + *
    +     * Node normalised score
    +     * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The normalisedScore. + */ + @java.lang.Override + public java.lang.String getNormalisedScore() { + java.lang.Object ref = normalisedScore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalisedScore_ = s; + return s; + } + } + /** + *
    +     * Node normalised score
    +     * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNormalisedScoreBytes() { + java.lang.Object ref = normalisedScore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + normalisedScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -61161,6 +65056,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < delagations_.size(); i++) { output.writeMessage(12, delagations_.get(i)); } + if (!getScoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, score_); + } + if (!getNormalisedScoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, normalisedScore_); + } unknownFields.writeTo(output); } @@ -61209,6 +65110,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, delagations_.get(i)); } + if (!getScoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, score_); + } + if (!getNormalisedScoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, normalisedScore_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -61250,6 +65157,10 @@ public boolean equals(final java.lang.Object obj) { if (status_ != other.status_) return false; if (!getDelagationsList() .equals(other.getDelagationsList())) return false; + if (!getScore() + .equals(other.getScore())) return false; + if (!getNormalisedScore() + .equals(other.getNormalisedScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -61289,6 +65200,10 @@ public int hashCode() { hash = (37 * hash) + DELAGATIONS_FIELD_NUMBER; hash = (53 * hash) + getDelagationsList().hashCode(); } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + getScore().hashCode(); + hash = (37 * hash) + NORMALISED_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getNormalisedScore().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -61455,6 +65370,10 @@ public Builder clear() { } else { delagationsBuilder_.clear(); } + score_ = ""; + + normalisedScore_ = ""; + return this; } @@ -61506,6 +65425,8 @@ public io.vegaprotocol.vega.Vega.Node buildPartial() { } else { result.delagations_ = delagationsBuilder_.build(); } + result.score_ = score_; + result.normalisedScore_ = normalisedScore_; onBuilt(); return result; } @@ -61622,6 +65543,14 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Node other) { } } } + if (!other.getScore().isEmpty()) { + score_ = other.score_; + onChanged(); + } + if (!other.getNormalisedScore().isEmpty()) { + normalisedScore_ = other.normalisedScore_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -63056,6 +66985,198 @@ public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder( } return delagationsBuilder_; } + + private java.lang.Object score_ = ""; + /** + *
    +       * Node score
    +       * 
    + * + * string score = 13 [json_name = "score"]; + * @return The score. + */ + public java.lang.String getScore() { + java.lang.Object ref = score_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + score_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Node score
    +       * 
    + * + * string score = 13 [json_name = "score"]; + * @return The bytes for score. + */ + public com.google.protobuf.ByteString + getScoreBytes() { + java.lang.Object ref = score_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + score_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Node score
    +       * 
    + * + * string score = 13 [json_name = "score"]; + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + score_ = value; + onChanged(); + return this; + } + /** + *
    +       * Node score
    +       * 
    + * + * string score = 13 [json_name = "score"]; + * @return This builder for chaining. + */ + public Builder clearScore() { + + score_ = getDefaultInstance().getScore(); + onChanged(); + return this; + } + /** + *
    +       * Node score
    +       * 
    + * + * string score = 13 [json_name = "score"]; + * @param value The bytes for score to set. + * @return This builder for chaining. + */ + public Builder setScoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + score_ = value; + onChanged(); + return this; + } + + private java.lang.Object normalisedScore_ = ""; + /** + *
    +       * Node normalised score
    +       * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The normalisedScore. + */ + public java.lang.String getNormalisedScore() { + java.lang.Object ref = normalisedScore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalisedScore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * Node normalised score
    +       * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return The bytes for normalisedScore. + */ + public com.google.protobuf.ByteString + getNormalisedScoreBytes() { + java.lang.Object ref = normalisedScore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + normalisedScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Node normalised score
    +       * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @param value The normalisedScore to set. + * @return This builder for chaining. + */ + public Builder setNormalisedScore( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + normalisedScore_ = value; + onChanged(); + return this; + } + /** + *
    +       * Node normalised score
    +       * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @return This builder for chaining. + */ + public Builder clearNormalisedScore() { + + normalisedScore_ = getDefaultInstance().getNormalisedScore(); + onChanged(); + return this; + } + /** + *
    +       * Node normalised score
    +       * 
    + * + * string normalised_score = 14 [json_name = "normalisedScore"]; + * @param value The bytes for normalisedScore to set. + * @return This builder for chaining. + */ + public Builder setNormalisedScoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + normalisedScore_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -67957,7 +72078,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "\n\nvega.proto\022\004vega\0326github.com/mwitkow/g" + "o-proto-validators/validator.proto\032\rmark" + "ets.proto\032\014assets.proto\"\035\n\005Price\022\024\n\005valu" + - "e\030\001 \001(\004R\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" + + "e\030\001 \001(\tR\005value\"!\n\tTimestamp\022\024\n\005value\030\001 \001" + "(\003R\005value\"S\n\005Party\022\026\n\002id\030\001 \001(\tB\006\342\337\037\002 \001R\002" + "id\0222\n\013delegations\030\002 \003(\0132\020.vega.Delegatio" + "nR\013delegations\"N\n\nRiskFactor\022\026\n\006market\030\001" + @@ -67979,7 +72100,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "et\030\002 \001(\003R\006offset\"\342\010\n\005Order\022\016\n\002id\030\001 \001(\tR\002" + "id\022\033\n\tmarket_id\030\002 \001(\tR\010marketId\022\031\n\010party" + "_id\030\003 \001(\tR\007partyId\022\036\n\004side\030\004 \001(\0162\n.vega." + - "SideR\004side\022\024\n\005price\030\005 \001(\004R\005price\022\022\n\004size" + + "SideR\004side\022\024\n\005price\030\005 \001(\tR\005price\022\022\n\004size" + "\030\006 \001(\004R\004size\022\034\n\tremaining\030\007 \001(\004R\tremaini" + "ng\022;\n\rtime_in_force\030\010 \001(\0162\027.vega.Order.T" + "imeInForceR\013timeInForce\022$\n\004type\030\t \001(\0162\020." + @@ -68012,12 +72133,12 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "s_affected\030\003 \003(\0132\013.vega.OrderR\025passiveOr" + "dersAffected\"\323\001\n\026AuctionIndicativeState\022" + "\033\n\tmarket_id\030\001 \001(\tR\010marketId\022)\n\020indicati" + - "ve_price\030\002 \001(\004R\017indicativePrice\022+\n\021indic" + + "ve_price\030\002 \001(\tR\017indicativePrice\022+\n\021indic" + "ative_volume\030\003 \001(\004R\020indicativeVolume\022#\n\r" + "auction_start\030\004 \001(\003R\014auctionStart\022\037\n\013auc" + "tion_end\030\005 \001(\003R\nauctionEnd\"\333\004\n\005Trade\022\016\n\002" + "id\030\001 \001(\tR\002id\022\033\n\tmarket_id\030\002 \001(\tR\010marketI" + - "d\022\024\n\005price\030\003 \001(\004R\005price\022\022\n\004size\030\004 \001(\004R\004s" + + "d\022\024\n\005price\030\003 \001(\tR\005price\022\022\n\004size\030\004 \001(\004R\004s" + "ize\022\024\n\005buyer\030\005 \001(\tR\005buyer\022\026\n\006seller\030\006 \001(" + "\tR\006seller\022(\n\taggressor\030\007 \001(\0162\n.vega.Side" + "R\taggressor\022\033\n\tbuy_order\030\010 \001(\tR\010buyOrder" + @@ -68031,17 +72152,17 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "o\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_DE" + "FAULT\020\001\022\037\n\033TYPE_NETWORK_CLOSE_OUT_GOOD\020\002" + "\022\036\n\032TYPE_NETWORK_CLOSE_OUT_BAD\020\003\"v\n\003Fee\022" + - "\033\n\tmaker_fee\030\001 \001(\004R\010makerFee\022-\n\022infrastr" + - "ucture_fee\030\002 \001(\004R\021infrastructureFee\022#\n\rl" + - "iquidity_fee\030\003 \001(\004R\014liquidityFee\"/\n\010Trad" + + "\033\n\tmaker_fee\030\001 \001(\tR\010makerFee\022-\n\022infrastr" + + "ucture_fee\030\002 \001(\tR\021infrastructureFee\022#\n\rl" + + "iquidity_fee\030\003 \001(\tR\014liquidityFee\"/\n\010Trad" + "eSet\022#\n\006trades\030\001 \003(\0132\013.vega.TradeR\006trade" + "s\"\326\001\n\006Candle\022\034\n\ttimestamp\030\001 \001(\003R\ttimesta" + "mp\022\032\n\010datetime\030\002 \001(\tR\010datetime\022\022\n\004high\030\003" + - " \001(\004R\004high\022\020\n\003low\030\004 \001(\004R\003low\022\022\n\004open\030\005 \001" + - "(\004R\004open\022\024\n\005close\030\006 \001(\004R\005close\022\026\n\006volume" + + " \001(\tR\004high\022\020\n\003low\030\004 \001(\tR\003low\022\022\n\004open\030\005 \001" + + "(\tR\004open\022\024\n\005close\030\006 \001(\tR\005close\022\026\n\006volume" + "\030\007 \001(\004R\006volume\022*\n\010interval\030\010 \001(\0162\016.vega." + "IntervalR\010interval\"d\n\nPriceLevel\022\024\n\005pric" + - "e\030\001 \001(\004R\005price\022(\n\020number_of_orders\030\002 \001(\004" + + "e\030\001 \001(\tR\005price\022(\n\020number_of_orders\030\002 \001(\004" + "R\016numberOfOrders\022\026\n\006volume\030\003 \001(\004R\006volume" + "\"\235\001\n\013MarketDepth\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + "ketId\022\"\n\003buy\030\002 \003(\0132\020.vega.PriceLevelR\003bu" + @@ -68054,11 +72175,11 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "Number\"\374\001\n\010Position\022\033\n\tmarket_id\030\001 \001(\tR\010" + "marketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\037\n\013o" + "pen_volume\030\003 \001(\003R\nopenVolume\022!\n\014realised" + - "_pnl\030\004 \001(\003R\013realisedPnl\022%\n\016unrealised_pn" + - "l\030\005 \001(\003R\runrealisedPnl\022.\n\023average_entry_" + - "price\030\006 \001(\004R\021averageEntryPrice\022\035\n\nupdate" + + "_pnl\030\004 \001(\tR\013realisedPnl\022%\n\016unrealised_pn" + + "l\030\005 \001(\tR\runrealisedPnl\022.\n\023average_entry_" + + "price\030\006 \001(\tR\021averageEntryPrice\022\035\n\nupdate" + "d_at\030\007 \001(\003R\tupdatedAt\"=\n\rPositionTrade\022\026" + - "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\004R\005p" + + "\n\006volume\030\001 \001(\003R\006volume\022\024\n\005price\030\002 \001(\tR\005p" + "rice\"\344\002\n\007Deposit\022\016\n\002id\030\001 \001(\tR\002id\022,\n\006stat" + "us\030\002 \001(\0162\024.vega.Deposit.StatusR\006status\022\031" + "\n\010party_id\030\003 \001(\tR\007partyId\022\024\n\005asset\030\004 \001(\t" + @@ -68069,7 +72190,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "\n\022STATUS_UNSPECIFIED\020\000\022\017\n\013STATUS_OPEN\020\001\022" + "\024\n\020STATUS_CANCELLED\020\002\022\024\n\020STATUS_FINALIZE" + "D\020\003\"\273\003\n\nWithdrawal\022\016\n\002id\030\001 \001(\tR\002id\022\031\n\010pa" + - "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\004R\006a" + + "rty_id\030\002 \001(\tR\007partyId\022\026\n\006amount\030\003 \001(\tR\006a" + "mount\022\024\n\005asset\030\004 \001(\tR\005asset\022/\n\006status\030\005 " + "\001(\0162\027.vega.Withdrawal.StatusR\006status\022\020\n\003" + "ref\030\006 \001(\tR\003ref\022\026\n\006expiry\030\007 \001(\003R\006expiry\022\027" + @@ -68084,55 +72205,55 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "=\n\020Erc20WithdrawExt\022)\n\020receiver_address\030" + "\001 \001(\tR\017receiverAddress\"\243\001\n\007Account\022\016\n\002id" + "\030\001 \001(\tR\002id\022\024\n\005owner\030\002 \001(\tR\005owner\022\030\n\007bala" + - "nce\030\003 \001(\004R\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" + + "nce\030\003 \001(\tR\007balance\022\024\n\005asset\030\004 \001(\tR\005asset" + "\022\033\n\tmarket_id\030\005 \001(\tR\010marketId\022%\n\004type\030\006 " + "\001(\0162\021.vega.AccountTypeR\004type\"?\n\017Financia" + - "lAmount\022\026\n\006amount\030\001 \001(\004R\006amount\022\024\n\005asset" + + "lAmount\022\026\n\006amount\030\001 \001(\tR\006amount\022\024\n\005asset" + "\030\002 \001(\tR\005asset\"\226\001\n\010Transfer\022\024\n\005owner\030\001 \001(" + "\tR\005owner\022-\n\006amount\030\002 \001(\0132\025.vega.Financia" + "lAmountR\006amount\022&\n\004type\030\003 \001(\0162\022.vega.Tra" + - "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\004R\tmin" + + "nsferTypeR\004type\022\035\n\nmin_amount\030\004 \001(\tR\tmin" + "Amount\"\334\001\n\017TransferRequest\0220\n\014from_accou" + "nt\030\001 \003(\0132\r.vega.AccountR\013fromAccount\022,\n\n" + "to_account\030\002 \003(\0132\r.vega.AccountR\ttoAccou" + - "nt\022\026\n\006amount\030\003 \001(\004R\006amount\022\035\n\nmin_amount" + - "\030\004 \001(\004R\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" + + "nt\022\026\n\006amount\030\003 \001(\tR\006amount\022\035\n\nmin_amount" + + "\030\004 \001(\tR\tminAmount\022\024\n\005asset\030\005 \001(\tR\005asset\022" + "\034\n\treference\030\006 \001(\tR\treference\"\267\001\n\013Ledger" + "Entry\022!\n\014from_account\030\001 \001(\tR\013fromAccount" + "\022\035\n\nto_account\030\002 \001(\tR\ttoAccount\022\026\n\006amoun" + - "t\030\003 \001(\004R\006amount\022\034\n\treference\030\004 \001(\tR\trefe" + + "t\030\003 \001(\tR\006amount\022\034\n\treference\030\004 \001(\tR\trefe" + "rence\022\022\n\004type\030\005 \001(\tR\004type\022\034\n\ttimestamp\030\006" + " \001(\003R\ttimestamp\"T\n\017TransferBalance\022\'\n\007ac" + "count\030\001 \001(\0132\r.vega.AccountR\007account\022\030\n\007b" + - "alance\030\002 \001(\004R\007balance\"v\n\020TransferRespons" + + "alance\030\002 \001(\tR\007balance\"v\n\020TransferRespons" + "e\022/\n\ttransfers\030\001 \003(\0132\021.vega.LedgerEntryR" + "\ttransfers\0221\n\010balances\030\002 \003(\0132\025.vega.Tran" + "sferBalanceR\010balances\"\255\002\n\014MarginLevels\022-" + - "\n\022maintenance_margin\030\001 \001(\004R\021maintenanceM" + - "argin\022!\n\014search_level\030\002 \001(\004R\013searchLevel" + - "\022%\n\016initial_margin\030\003 \001(\004R\rinitialMargin\022" + - "8\n\030collateral_release_level\030\004 \001(\004R\026colla" + + "\n\022maintenance_margin\030\001 \001(\tR\021maintenanceM" + + "argin\022!\n\014search_level\030\002 \001(\tR\013searchLevel" + + "\022%\n\016initial_margin\030\003 \001(\tR\rinitialMargin\022" + + "8\n\030collateral_release_level\030\004 \001(\tR\026colla" + "teralReleaseLevel\022\031\n\010party_id\030\005 \001(\tR\007par" + "tyId\022\033\n\tmarket_id\030\006 \001(\tR\010marketId\022\024\n\005ass" + "et\030\007 \001(\tR\005asset\022\034\n\ttimestamp\030\010 \001(\003R\ttime" + - "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\004" + - "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\004R\014bes" + + "stamp\"\323\t\n\nMarketData\022\035\n\nmark_price\030\001 \001(\t" + + "R\tmarkPrice\022$\n\016best_bid_price\030\002 \001(\tR\014bes" + "tBidPrice\022&\n\017best_bid_volume\030\003 \001(\004R\rbest" + - "BidVolume\022(\n\020best_offer_price\030\004 \001(\004R\016bes" + + "BidVolume\022(\n\020best_offer_price\030\004 \001(\tR\016bes" + "tOfferPrice\022*\n\021best_offer_volume\030\005 \001(\004R\017" + "bestOfferVolume\0221\n\025best_static_bid_price" + - "\030\006 \001(\004R\022bestStaticBidPrice\0223\n\026best_stati" + + "\030\006 \001(\tR\022bestStaticBidPrice\0223\n\026best_stati" + "c_bid_volume\030\007 \001(\004R\023bestStaticBidVolume\022" + - "5\n\027best_static_offer_price\030\010 \001(\004R\024bestSt" + + "5\n\027best_static_offer_price\030\010 \001(\tR\024bestSt" + "aticOfferPrice\0227\n\030best_static_offer_volu" + "me\030\t \001(\004R\025bestStaticOfferVolume\022\033\n\tmid_p" + - "rice\030\n \001(\004R\010midPrice\022(\n\020static_mid_price" + - "\030\013 \001(\004R\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" + + "rice\030\n \001(\tR\010midPrice\022(\n\020static_mid_price" + + "\030\013 \001(\tR\016staticMidPrice\022\026\n\006market\030\014 \001(\tR\006" + "market\022\034\n\ttimestamp\030\r \001(\003R\ttimestamp\022#\n\r" + "open_interest\030\016 \001(\004R\014openInterest\022\037\n\013auc" + "tion_end\030\017 \001(\003R\nauctionEnd\022#\n\rauction_st" + "art\030\020 \001(\003R\014auctionStart\022)\n\020indicative_pr" + - "ice\030\021 \001(\004R\017indicativePrice\022+\n\021indicative" + + "ice\030\021 \001(\tR\017indicativePrice\022+\n\021indicative" + "_volume\030\022 \001(\004R\020indicativeVolume\022H\n\023marke" + "t_trading_mode\030\023 \001(\0162\030.vega.Market.Tradi" + "ngModeR\021marketTradingMode\022.\n\007trigger\030\024 \001" + @@ -68151,8 +72272,8 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "(\tR\017equityLikeShare\0226\n\027average_entry_val" + "uation\030\003 \001(\tR\025averageEntryValuation\"\310\001\n\025" + "PriceMonitoringBounds\022&\n\017min_valid_price" + - "\030\001 \001(\004R\rminValidPrice\022&\n\017max_valid_price" + - "\030\002 \001(\004R\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" + + "\030\001 \001(\tR\rminValidPrice\022&\n\017max_valid_price" + + "\030\002 \001(\tR\rmaxValidPrice\0226\n\007trigger\030\003 \001(\0132\034" + ".vega.PriceMonitoringTriggerR\007trigger\022\'\n" + "\017reference_price\030\004 \001(\001R\016referencePrice\"Q" + "\n\013ErrorDetail\022\022\n\004code\030\001 \001(\005R\004code\022\030\n\007mes" + @@ -68169,7 +72290,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "(\tR\007partyId\022\035\n\ncreated_at\030\003 \001(\003R\tcreated" + "At\022\035\n\nupdated_at\030\004 \001(\003R\tupdatedAt\022#\n\tmar" + "ket_id\030\005 \001(\tB\006\342\337\037\002X\001R\010marketId\022+\n\021commit" + - "ment_amount\030\006 \001(\004R\020commitmentAmount\022\020\n\003f" + + "ment_amount\030\006 \001(\tR\020commitmentAmount\022\020\n\003f" + "ee\030\007 \001(\tR\003fee\0223\n\005sells\030\010 \003(\0132\035.vega.Liqu" + "idityOrderReferenceR\005sells\0221\n\004buys\030\t \003(\013" + "2\035.vega.LiquidityOrderReferenceR\004buys\022\030\n" + @@ -68199,7 +72320,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "\006online\022#\n\rtotal_rewards\030\004 \001(\001R\014totalRew" + "ards\"S\n\tEpochData\022\024\n\005total\030\001 \001(\005R\005total\022" + "\030\n\007offline\030\002 \001(\005R\007offline\022\026\n\006online\030\003 \001(" + - "\005R\006online\"\340\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + + "\005R\006online\"\241\004\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + "b_key\030\002 \001(\tB\006\342\337\037\002X\001R\006pubKey\022\031\n\010info_url\030" + "\003 \001(\tR\007infoUrl\022\032\n\010location\030\004 \001(\tR\010locati" + "on\022,\n\022staked_by_operator\030\005 \001(\tR\020stakedBy" + @@ -68211,122 +72332,124 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( "a.EpochDataB\006\342\337\037\002 \001R\tepochData\0220\n\006status" + "\030\013 \001(\0162\020.vega.NodeStatusB\006\342\337\037\002 \001R\006status" + "\0222\n\013delagations\030\014 \003(\0132\020.vega.DelegationR" + - "\013delagations\"\270\001\n\010NodeData\022!\n\014staked_tota" + - "l\030\001 \001(\tR\013stakedTotal\022\037\n\013total_nodes\030\002 \001(" + - "\rR\ntotalNodes\022%\n\016inactive_nodes\030\003 \001(\rR\ri" + - "nactiveNodes\022)\n\020validating_nodes\030\004 \001(\rR\017" + - "validatingNodes\022\026\n\006uptime\030\005 \001(\002R\006uptime\"" + - "p\n\nDelegation\022\024\n\005party\030\001 \001(\tR\005party\022\027\n\007n" + - "ode_id\030\002 \001(\tR\006nodeId\022\026\n\006amount\030\003 \001(\tR\006am" + - "ount\022\033\n\tepoch_seq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRe" + - "wardDetails\022\031\n\010asset_id\030\001 \001(\tR\007assetId\022\031" + - "\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005epoch\030\003 \001(\004" + - "R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amount\022.\n\023perce" + - "ntage_of_total\030\005 \001(\tR\021percentageOfTotal\022" + - "\037\n\013received_at\030\006 \001(\003R\nreceivedAt\"\203\001\n\024Rew" + - "ardPerAssetDetail\022\024\n\005asset\030\001 \001(\tR\005asset\022" + - "-\n\007details\030\002 \003(\0132\023.vega.RewardDetailsR\007d" + - "etails\022&\n\017total_for_asset\030\003 \001(\tR\rtotalFo" + - "rAsset*9\n\004Side\022\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010" + - "SIDE_BUY\020\001\022\r\n\tSIDE_SELL\020\002*\230\001\n\010Interval\022\030" + - "\n\024INTERVAL_UNSPECIFIED\020\000\022\020\n\014INTERVAL_I1M" + - "\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204" + - "\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001" + - "\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016AuctionTrigger\022" + - "\037\n\033AUCTION_TRIGGER_UNSPECIFIED\020\000\022\031\n\025AUCT" + - "ION_TRIGGER_BATCH\020\001\022\033\n\027AUCTION_TRIGGER_O" + - "PENING\020\002\022\031\n\025AUCTION_TRIGGER_PRICE\020\003\022\035\n\031A" + - "UCTION_TRIGGER_LIQUIDITY\020\004*\213\001\n\017PeggedRef" + - "erence\022 \n\034PEGGED_REFERENCE_UNSPECIFIED\020\000" + - "\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n\031PEGGED_REF" + - "ERENCE_BEST_BID\020\002\022\035\n\031PEGGED_REFERENCE_BE" + - "ST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027ORDER_ERROR_U" + - "NSPECIFIED\020\000\022!\n\035ORDER_ERROR_INVALID_MARK" + - "ET_ID\020\001\022 \n\034ORDER_ERROR_INVALID_ORDER_ID\020" + - "\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUENCE\020\003\022&\n\"OR" + - "DER_ERROR_INVALID_REMAINING_SIZE\020\004\022\034\n\030OR" + - "DER_ERROR_TIME_FAILURE\020\005\022\037\n\033ORDER_ERROR_" + - "REMOVAL_FAILURE\020\006\022+\n\'ORDER_ERROR_INVALID" + - "_EXPIRATION_DATETIME\020\007\022\'\n#ORDER_ERROR_IN" + - "VALID_ORDER_REFERENCE\020\010\022 \n\034ORDER_ERROR_E" + - "DIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ERROR_AMEND_F" + - "AILURE\020\n\022\031\n\025ORDER_ERROR_NOT_FOUND\020\013\022 \n\034O" + - "RDER_ERROR_INVALID_PARTY_ID\020\014\022\035\n\031ORDER_E" + - "RROR_MARKET_CLOSED\020\r\022#\n\037ORDER_ERROR_MARG" + - "IN_CHECK_FAILED\020\016\022\'\n#ORDER_ERROR_MISSING" + - "_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_ERROR_INTERN" + - "AL_ERROR\020\020\022\034\n\030ORDER_ERROR_INVALID_SIZE\020\021" + - "\022#\n\037ORDER_ERROR_INVALID_PERSISTENCE\020\022\022\034\n" + - "\030ORDER_ERROR_INVALID_TYPE\020\023\022\034\n\030ORDER_ERR" + - "OR_SELF_TRADING\020\024\022.\n*ORDER_ERROR_INSUFFI" + - "CIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!ORDER_ERROR" + - "_INCORRECT_MARKET_TYPE\020\026\022%\n!ORDER_ERROR_" + - "INVALID_TIME_IN_FORCE\020\027\022+\n\'ORDER_ERROR_G" + - "FN_ORDER_DURING_AN_AUCTION\020\030\0223\n/ORDER_ER" + - "ROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\020" + - "\031\0224\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WIT" + - "HOUT_EXPIRYAT\020\032\022)\n%ORDER_ERROR_EXPIRYAT_" + - "BEFORE_CREATEDAT\020\033\022,\n(ORDER_ERROR_CANNOT" + - "_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&ORDER_ERROR_" + - "CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022*\n&ORDER_ER" + - "ROR_CANNOT_AMEND_TO_GFA_OR_GFN\020\036\022,\n(ORDE" + - "R_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\020\037\0224" + - "\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURI" + - "NG_AUCTION\020 \0224\n0ORDER_ERROR_CANNOT_SEND_" + - "FOK_ORDER_DURING_AUCTION\020!\022#\n\037ORDER_ERRO" + - "R_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036ORDER_ERROR_M" + - "UST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_ERROR_WITHO" + - "UT_REFERENCE_PRICE\020$\0223\n/ORDER_ERROR_BUY_" + - "CANNOT_REFERENCE_BEST_ASK_PRICE\020%\0224\n0ORD" + - "ER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO" + - "_ZERO\020&\022-\n)ORDER_ERROR_OFFSET_MUST_BE_LE" + - "SS_THAN_ZERO\020\'\0227\n3ORDER_ERROR_OFFSET_MUS" + - "T_BE_GREATER_OR_EQUAL_TO_ZERO\020(\0224\n0ORDER" + - "_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PR" + - "ICE\020)\0220\n,ORDER_ERROR_OFFSET_MUST_BE_GREA" + - "TER_THAN_ZERO\020*\022*\n&ORDER_ERROR_INSUFFICI" + - "ENT_ASSET_BALANCE\020+\022E\nAORDER_ERROR_CANNO" + - "T_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGG" + - "ED_ORDER\020,\022.\n*ORDER_ERROR_UNABLE_TO_REPR" + - "ICE_PEGGED_ORDER\020-\0225\n1ORDER_ERROR_UNABLE" + - "_TO_AMEND_PRICE_ON_PEGGED_ORDER\020.\0228\n4ORD" + - "ER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRI" + - "CE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034\n\030CHAIN_STA" + - "TUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_STATUS_DISCON" + - "NECTED\020\001\022\032\n\026CHAIN_STATUS_REPLAYING\020\002\022\032\n\026" + - "CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013AccountType" + - "\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020\000\022\032\n\026ACCOUN" + - "T_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT_TYPE_SETTL" + - "EMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGIN\020\003\022\030\n\024ACCO" + - "UNT_TYPE_GENERAL\020\004\022$\n ACCOUNT_TYPE_FEES_" + - "INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_TYPE_FEES_LI" + - "QUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEES_MAKER\020\007\022\036" + - "\n\032ACCOUNT_TYPE_LOCK_WITHDRAW\020\010\022\025\n\021ACCOUN" + - "T_TYPE_BOND\020\t\022\031\n\025ACCOUNT_TYPE_EXTERNAL\020\n" + - "\022!\n\035ACCOUNT_TYPE_GLOBAL_INSURANCE\020\013\022\036\n\032A" + - "CCOUNT_TYPE_GLOBAL_REWARD\020\014*\323\005\n\014Transfer" + - "Type\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020\000\022\026\n\022T" + - "RANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSFER_TYPE_WIN" + - "\020\002\022\027\n\023TRANSFER_TYPE_CLOSE\020\003\022\032\n\026TRANSFER_" + - "TYPE_MTM_LOSS\020\004\022\031\n\025TRANSFER_TYPE_MTM_WIN" + - "\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LOW\020\006\022\035\n\031TRAN" + - "SFER_TYPE_MARGIN_HIGH\020\007\022$\n TRANSFER_TYPE" + - "_MARGIN_CONFISCATED\020\010\022\037\n\033TRANSFER_TYPE_M" + - "AKER_FEE_PAY\020\t\022#\n\037TRANSFER_TYPE_MAKER_FE" + - "E_RECEIVE\020\n\022(\n$TRANSFER_TYPE_INFRASTRUCT" + - "URE_FEE_PAY\020\013\022/\n+TRANSFER_TYPE_INFRASTRU" + - "CTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRANSFER_TYPE_" + - "LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSFER_TYPE_LIQ" + - "UIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TRANSFER_TYPE" + - "_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_BOND_HIGH\020\020" + - "\022\037\n\033TRANSFER_TYPE_WITHDRAW_LOCK\020\021\022\032\n\026TRA" + - "NSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRANSFER_TYPE_D" + - "EPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BOND_SLASHING\020" + - "\024\022\036\n\032TRANSFER_TYPE_STAKE_REWARD\020\025*c\n\nNod" + - "eStatus\022\033\n\027NODE_STATUS_UNSPECIFIED\020\000\022\031\n\025" + - "NODE_STATUS_VALIDATOR\020\001\022\035\n\031NODE_STATUS_N" + - "ON_VALIDATOR\020\002B7\n\024io.vegaprotocol.vegaZ\037" + - "code.vegaprotocol.io/vega/protob\006proto3" + "\013delagations\022\024\n\005score\030\r \001(\tR\005score\022)\n\020no" + + "rmalised_score\030\016 \001(\tR\017normalisedScore\"\270\001" + + "\n\010NodeData\022!\n\014staked_total\030\001 \001(\tR\013staked" + + "Total\022\037\n\013total_nodes\030\002 \001(\rR\ntotalNodes\022%" + + "\n\016inactive_nodes\030\003 \001(\rR\rinactiveNodes\022)\n" + + "\020validating_nodes\030\004 \001(\rR\017validatingNodes" + + "\022\026\n\006uptime\030\005 \001(\002R\006uptime\"p\n\nDelegation\022\024" + + "\n\005party\030\001 \001(\tR\005party\022\027\n\007node_id\030\002 \001(\tR\006n" + + "odeId\022\026\n\006amount\030\003 \001(\tR\006amount\022\033\n\tepoch_s" + + "eq\030\004 \001(\tR\010epochSeq\"\304\001\n\rRewardDetails\022\031\n\010" + + "asset_id\030\001 \001(\tR\007assetId\022\031\n\010party_id\030\002 \001(" + + "\tR\007partyId\022\024\n\005epoch\030\003 \001(\004R\005epoch\022\026\n\006amou" + + "nt\030\004 \001(\tR\006amount\022.\n\023percentage_of_total\030" + + "\005 \001(\tR\021percentageOfTotal\022\037\n\013received_at\030" + + "\006 \001(\003R\nreceivedAt\"\203\001\n\024RewardPerAssetDeta" + + "il\022\024\n\005asset\030\001 \001(\tR\005asset\022-\n\007details\030\002 \003(" + + "\0132\023.vega.RewardDetailsR\007details\022&\n\017total" + + "_for_asset\030\003 \001(\tR\rtotalForAsset*9\n\004Side\022" + + "\024\n\020SIDE_UNSPECIFIED\020\000\022\014\n\010SIDE_BUY\020\001\022\r\n\tS" + + "IDE_SELL\020\002*\230\001\n\010Interval\022\030\n\024INTERVAL_UNSP" + + "ECIFIED\020\000\022\020\n\014INTERVAL_I1M\020<\022\021\n\014INTERVAL_" + + "I5M\020\254\002\022\022\n\rINTERVAL_I15M\020\204\007\022\021\n\014INTERVAL_I" + + "1H\020\220\034\022\022\n\014INTERVAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1" + + "D\020\200\243\005*\243\001\n\016AuctionTrigger\022\037\n\033AUCTION_TRIG" + + "GER_UNSPECIFIED\020\000\022\031\n\025AUCTION_TRIGGER_BAT" + + "CH\020\001\022\033\n\027AUCTION_TRIGGER_OPENING\020\002\022\031\n\025AUC" + + "TION_TRIGGER_PRICE\020\003\022\035\n\031AUCTION_TRIGGER_" + + "LIQUIDITY\020\004*\213\001\n\017PeggedReference\022 \n\034PEGGE" + + "D_REFERENCE_UNSPECIFIED\020\000\022\030\n\024PEGGED_REFE" + + "RENCE_MID\020\001\022\035\n\031PEGGED_REFERENCE_BEST_BID" + + "\020\002\022\035\n\031PEGGED_REFERENCE_BEST_ASK\020\003*\370\017\n\nOr" + + "derError\022\033\n\027ORDER_ERROR_UNSPECIFIED\020\000\022!\n" + + "\035ORDER_ERROR_INVALID_MARKET_ID\020\001\022 \n\034ORDE" + + "R_ERROR_INVALID_ORDER_ID\020\002\022\037\n\033ORDER_ERRO" + + "R_OUT_OF_SEQUENCE\020\003\022&\n\"ORDER_ERROR_INVAL" + + "ID_REMAINING_SIZE\020\004\022\034\n\030ORDER_ERROR_TIME_" + + "FAILURE\020\005\022\037\n\033ORDER_ERROR_REMOVAL_FAILURE" + + "\020\006\022+\n\'ORDER_ERROR_INVALID_EXPIRATION_DAT" + + "ETIME\020\007\022\'\n#ORDER_ERROR_INVALID_ORDER_REF" + + "ERENCE\020\010\022 \n\034ORDER_ERROR_EDIT_NOT_ALLOWED" + + "\020\t\022\035\n\031ORDER_ERROR_AMEND_FAILURE\020\n\022\031\n\025ORD" + + "ER_ERROR_NOT_FOUND\020\013\022 \n\034ORDER_ERROR_INVA" + + "LID_PARTY_ID\020\014\022\035\n\031ORDER_ERROR_MARKET_CLO" + + "SED\020\r\022#\n\037ORDER_ERROR_MARGIN_CHECK_FAILED" + + "\020\016\022\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUN" + + "T\020\017\022\036\n\032ORDER_ERROR_INTERNAL_ERROR\020\020\022\034\n\030O" + + "RDER_ERROR_INVALID_SIZE\020\021\022#\n\037ORDER_ERROR" + + "_INVALID_PERSISTENCE\020\022\022\034\n\030ORDER_ERROR_IN" + + "VALID_TYPE\020\023\022\034\n\030ORDER_ERROR_SELF_TRADING" + + "\020\024\022.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_" + + "PAY_FEES\020\025\022%\n!ORDER_ERROR_INCORRECT_MARK" + + "ET_TYPE\020\026\022%\n!ORDER_ERROR_INVALID_TIME_IN" + + "_FORCE\020\027\022+\n\'ORDER_ERROR_GFN_ORDER_DURING" + + "_AN_AUCTION\020\030\0223\n/ORDER_ERROR_GFA_ORDER_D" + + "URING_CONTINUOUS_TRADING\020\031\0224\n0ORDER_ERRO" + + "R_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\020\032" + + "\022)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDA" + + "T\020\033\022,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_E" + + "XPIRYAT\020\034\022*\n&ORDER_ERROR_CANNOT_AMEND_TO" + + "_FOK_OR_IOC\020\035\022*\n&ORDER_ERROR_CANNOT_AMEN" + + "D_TO_GFA_OR_GFN\020\036\022,\n(ORDER_ERROR_CANNOT_" + + "AMEND_FROM_GFA_OR_GFN\020\037\0224\n0ORDER_ERROR_C" + + "ANNOT_SEND_IOC_ORDER_DURING_AUCTION\020 \0224\n" + + "0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURIN" + + "G_AUCTION\020!\022#\n\037ORDER_ERROR_MUST_BE_LIMIT" + + "_ORDER\020\"\022\"\n\036ORDER_ERROR_MUST_BE_GTT_OR_G" + + "TC\020#\022\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PR" + + "ICE\020$\0223\n/ORDER_ERROR_BUY_CANNOT_REFERENC" + + "E_BEST_ASK_PRICE\020%\0224\n0ORDER_ERROR_OFFSET" + + "_MUST_BE_LESS_OR_EQUAL_TO_ZERO\020&\022-\n)ORDE" + + "R_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\020\'\022" + + "7\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR" + + "_EQUAL_TO_ZERO\020(\0224\n0ORDER_ERROR_SELL_CAN" + + "NOT_REFERENCE_BEST_BID_PRICE\020)\0220\n,ORDER_" + + "ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\020*" + + "\022*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALAN" + + "CE\020+\022E\nAORDER_ERROR_CANNOT_AMEND_PEGGED_" + + "ORDER_DETAILS_ON_NON_PEGGED_ORDER\020,\022.\n*O" + + "RDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDE" + + "R\020-\0225\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE" + + "_ON_PEGGED_ORDER\020.\0228\n4ORDER_ERROR_NON_PE" + + "RSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\020/*\202\001\n" + + "\013ChainStatus\022\034\n\030CHAIN_STATUS_UNSPECIFIED" + + "\020\000\022\035\n\031CHAIN_STATUS_DISCONNECTED\020\001\022\032\n\026CHA" + + "IN_STATUS_REPLAYING\020\002\022\032\n\026CHAIN_STATUS_CO" + + "NNECTED\020\003*\220\003\n\013AccountType\022\034\n\030ACCOUNT_TYP" + + "E_UNSPECIFIED\020\000\022\032\n\026ACCOUNT_TYPE_INSURANC" + + "E\020\001\022\033\n\027ACCOUNT_TYPE_SETTLEMENT\020\002\022\027\n\023ACCO" + + "UNT_TYPE_MARGIN\020\003\022\030\n\024ACCOUNT_TYPE_GENERA" + + "L\020\004\022$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\020" + + "\005\022\037\n\033ACCOUNT_TYPE_FEES_LIQUIDITY\020\006\022\033\n\027AC" + + "COUNT_TYPE_FEES_MAKER\020\007\022\036\n\032ACCOUNT_TYPE_" + + "LOCK_WITHDRAW\020\010\022\025\n\021ACCOUNT_TYPE_BOND\020\t\022\031" + + "\n\025ACCOUNT_TYPE_EXTERNAL\020\n\022!\n\035ACCOUNT_TYP" + + "E_GLOBAL_INSURANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLO" + + "BAL_REWARD\020\014*\323\005\n\014TransferType\022\035\n\031TRANSFE" + + "R_TYPE_UNSPECIFIED\020\000\022\026\n\022TRANSFER_TYPE_LO" + + "SS\020\001\022\025\n\021TRANSFER_TYPE_WIN\020\002\022\027\n\023TRANSFER_" + + "TYPE_CLOSE\020\003\022\032\n\026TRANSFER_TYPE_MTM_LOSS\020\004" + + "\022\031\n\025TRANSFER_TYPE_MTM_WIN\020\005\022\034\n\030TRANSFER_" + + "TYPE_MARGIN_LOW\020\006\022\035\n\031TRANSFER_TYPE_MARGI" + + "N_HIGH\020\007\022$\n TRANSFER_TYPE_MARGIN_CONFISC" + + "ATED\020\010\022\037\n\033TRANSFER_TYPE_MAKER_FEE_PAY\020\t\022" + + "#\n\037TRANSFER_TYPE_MAKER_FEE_RECEIVE\020\n\022(\n$" + + "TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\020\013\022/" + + "\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTR" + + "IBUTE\020\014\022#\n\037TRANSFER_TYPE_LIQUIDITY_FEE_P" + + "AY\020\r\022*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DIST" + + "RIBUTE\020\016\022\032\n\026TRANSFER_TYPE_BOND_LOW\020\017\022\033\n\027" + + "TRANSFER_TYPE_BOND_HIGH\020\020\022\037\n\033TRANSFER_TY" + + "PE_WITHDRAW_LOCK\020\021\022\032\n\026TRANSFER_TYPE_WITH" + + "DRAW\020\022\022\031\n\025TRANSFER_TYPE_DEPOSIT\020\023\022\037\n\033TRA" + + "NSFER_TYPE_BOND_SLASHING\020\024\022\036\n\032TRANSFER_T" + + "YPE_STAKE_REWARD\020\025*c\n\nNodeStatus\022\033\n\027NODE" + + "_STATUS_UNSPECIFIED\020\000\022\031\n\025NODE_STATUS_VAL" + + "IDATOR\020\001\022\035\n\031NODE_STATUS_NON_VALIDATOR\020\002B" + + "7\n\024io.vegaprotocol.vegaZ\037code.vegaprotoc" + + "ol.io/vega/protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -68616,7 +72739,7 @@ public io.vegaprotocol.vega.Vega.RewardPerAssetDetail getDefaultInstanceForType( internal_static_vega_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_Node_descriptor, - new java.lang.String[] { "Id", "PubKey", "InfoUrl", "Location", "StakedByOperator", "StakedByDelegates", "StakedTotal", "MaxIntendedStake", "PendingStake", "EpochData", "Status", "Delagations", }); + new java.lang.String[] { "Id", "PubKey", "InfoUrl", "Location", "StakedByOperator", "StakedByDelegates", "StakedTotal", "MaxIntendedStake", "PendingStake", "EpochData", "Status", "Delagations", "Score", "NormalisedScore", }); internal_static_vega_NodeData_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_vega_NodeData_fieldAccessorTable = new diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java index 9663810d..b7835787 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/commands/v1/Commands.java @@ -45,10 +45,22 @@ public interface OrderSubmissionOrBuilder extends * , required field for limit orders, however it is not required for market orders * * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ - long getPrice(); + java.lang.String getPrice(); + /** + *
    +     * Price for the order, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places,
    +     * , required field for limit orders, however it is not required for market orders
    +     * 
    + * + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); /** *
    @@ -201,6 +213,7 @@ private OrderSubmission(com.google.protobuf.GeneratedMessageV3.Builder builde
         }
         private OrderSubmission() {
           marketId_ = "";
    +      price_ = "";
           side_ = 0;
           timeInForce_ = 0;
           type_ = 0;
    @@ -243,9 +256,10 @@ private OrderSubmission(
                   marketId_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              price_ = input.readUInt64();
    +              price_ = s;
                   break;
                 }
                 case 24: {
    @@ -374,7 +388,7 @@ public java.lang.String getMarketId() {
         }
     
         public static final int PRICE_FIELD_NUMBER = 2;
    -    private long price_;
    +    private volatile java.lang.Object price_;
         /**
          * 
          * Price for the order, the price is an integer, for example `123456` is a correctly
    @@ -382,12 +396,45 @@ public java.lang.String getMarketId() {
          * , required field for limit orders, however it is not required for market orders
          * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
    +     * Price for the order, the price is an integer, for example `123456` is a correctly
    +     * formatted price of `1.23456` assuming market configured to 5 decimal places,
    +     * , required field for limit orders, however it is not required for market orders
    +     * 
    + * + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int SIZE_FIELD_NUMBER = 3; @@ -611,8 +658,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMarketIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); } - if (price_ != 0L) { - output.writeUInt64(2, price_); + if (!getPriceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, price_); } if (size_ != 0L) { output.writeUInt64(3, size_); @@ -647,9 +694,8 @@ public int getSerializedSize() { if (!getMarketIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, price_); + if (!getPriceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, price_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -695,8 +741,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMarketId() .equals(other.getMarketId())) return false; - if (getPrice() - != other.getPrice()) return false; + if (!getPrice() + .equals(other.getPrice())) return false; if (getSize() != other.getSize()) return false; if (side_ != other.side_) return false; @@ -725,8 +771,7 @@ public int hashCode() { hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; hash = (53 * hash) + getMarketId().hashCode(); hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); + hash = (53 * hash) + getPrice().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); @@ -884,7 +929,7 @@ public Builder clear() { super.clear(); marketId_ = ""; - price_ = 0L; + price_ = ""; size_ = 0L; @@ -995,8 +1040,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.OrderSubmissi marketId_ = other.marketId_; onChanged(); } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); @@ -1145,7 +1191,7 @@ public Builder setMarketIdBytes( return this; } - private long price_ ; + private java.lang.Object price_ = ""; /** *
            * Price for the order, the price is an integer, for example `123456` is a correctly
    @@ -1153,12 +1199,20 @@ public Builder setMarketIdBytes(
            * , required field for limit orders, however it is not required for market orders
            * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return The price. */ - @java.lang.Override - public long getPrice() { - return price_; + public java.lang.String getPrice() { + java.lang.Object ref = price_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
    @@ -1167,11 +1221,38 @@ public long getPrice() {
            * , required field for limit orders, however it is not required for market orders
            * 
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + java.lang.Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Price for the order, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places,
    +       * , required field for limit orders, however it is not required for market orders
    +       * 
    + * + * string price = 2 [json_name = "price"]; * @param value The price to set. * @return This builder for chaining. */ - public Builder setPrice(long value) { + public Builder setPrice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } price_ = value; onChanged(); @@ -1184,12 +1265,34 @@ public Builder setPrice(long value) { * , required field for limit orders, however it is not required for market orders *
    * - * uint64 price = 2 [json_name = "price"]; + * string price = 2 [json_name = "price"]; * @return This builder for chaining. */ public Builder clearPrice() { - price_ = 0L; + price_ = getDefaultInstance().getPrice(); + onChanged(); + return this; + } + /** + *
    +       * Price for the order, the price is an integer, for example `123456` is a correctly
    +       * formatted price of `1.23456` assuming market configured to 5 decimal places,
    +       * , required field for limit orders, however it is not required for market orders
    +       * 
    + * + * string price = 2 [json_name = "price"]; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + price_ = value; onChanged(); return this; } @@ -4669,10 +4772,20 @@ public interface LiquidityProvisionSubmissionOrBuilder extends * Specified as a unitless number that represents the amount of settlement asset of the market * * - * uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + * string commitment_amount = 2 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - long getCommitmentAmount(); + java.lang.String getCommitmentAmount(); + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 2 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + com.google.protobuf.ByteString + getCommitmentAmountBytes(); /** *
    @@ -4820,6 +4933,7 @@ private LiquidityProvisionSubmission(com.google.protobuf.GeneratedMessageV3.Buil
         }
         private LiquidityProvisionSubmission() {
           marketId_ = "";
    +      commitmentAmount_ = "";
           fee_ = "";
           sells_ = java.util.Collections.emptyList();
           buys_ = java.util.Collections.emptyList();
    @@ -4863,9 +4977,10 @@ private LiquidityProvisionSubmission(
                   marketId_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              commitmentAmount_ = input.readUInt64();
    +              commitmentAmount_ = s;
                   break;
                 }
                 case 26: {
    @@ -4983,18 +5098,49 @@ public java.lang.String getMarketId() {
         }
     
         public static final int COMMITMENT_AMOUNT_FIELD_NUMBER = 2;
    -    private long commitmentAmount_;
    +    private volatile java.lang.Object commitmentAmount_;
         /**
          * 
          * Specified as a unitless number that represents the amount of settlement asset of the market
          * 
    * - * uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + * string commitment_amount = 2 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } + } + /** + *
    +     * Specified as a unitless number that represents the amount of settlement asset of the market
    +     * 
    + * + * string commitment_amount = 2 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int FEE_FIELD_NUMBER = 3; @@ -5226,8 +5372,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMarketIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, marketId_); } - if (commitmentAmount_ != 0L) { - output.writeUInt64(2, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fee_); @@ -5253,9 +5399,8 @@ public int getSerializedSize() { if (!getMarketIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, marketId_); } - if (commitmentAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, commitmentAmount_); + if (!getCommitmentAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitmentAmount_); } if (!getFeeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fee_); @@ -5288,8 +5433,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMarketId() .equals(other.getMarketId())) return false; - if (getCommitmentAmount() - != other.getCommitmentAmount()) return false; + if (!getCommitmentAmount() + .equals(other.getCommitmentAmount())) return false; if (!getFee() .equals(other.getFee())) return false; if (!getSellsList() @@ -5312,8 +5457,7 @@ public int hashCode() { hash = (37 * hash) + MARKET_ID_FIELD_NUMBER; hash = (53 * hash) + getMarketId().hashCode(); hash = (37 * hash) + COMMITMENT_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommitmentAmount()); + hash = (53 * hash) + getCommitmentAmount().hashCode(); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + getFee().hashCode(); if (getSellsCount() > 0) { @@ -5467,7 +5611,7 @@ public Builder clear() { super.clear(); marketId_ = ""; - commitmentAmount_ = 0L; + commitmentAmount_ = ""; fee_ = ""; @@ -5586,8 +5730,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.LiquidityProv marketId_ = other.marketId_; onChanged(); } - if (other.getCommitmentAmount() != 0L) { - setCommitmentAmount(other.getCommitmentAmount()); + if (!other.getCommitmentAmount().isEmpty()) { + commitmentAmount_ = other.commitmentAmount_; + onChanged(); } if (!other.getFee().isEmpty()) { fee_ = other.fee_; @@ -5775,29 +5920,62 @@ public Builder setMarketIdBytes( return this; } - private long commitmentAmount_ ; + private java.lang.Object commitmentAmount_ = ""; /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + * string commitment_amount = 2 [json_name = "commitmentAmount"]; * @return The commitmentAmount. */ - @java.lang.Override - public long getCommitmentAmount() { - return commitmentAmount_; + public java.lang.String getCommitmentAmount() { + java.lang.Object ref = commitmentAmount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitmentAmount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * Specified as a unitless number that represents the amount of settlement asset of the market
            * 
    * - * uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + * string commitment_amount = 2 [json_name = "commitmentAmount"]; + * @return The bytes for commitmentAmount. + */ + public com.google.protobuf.ByteString + getCommitmentAmountBytes() { + java.lang.Object ref = commitmentAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commitmentAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 2 [json_name = "commitmentAmount"]; * @param value The commitmentAmount to set. * @return This builder for chaining. */ - public Builder setCommitmentAmount(long value) { + public Builder setCommitmentAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } commitmentAmount_ = value; onChanged(); @@ -5808,12 +5986,32 @@ public Builder setCommitmentAmount(long value) { * Specified as a unitless number that represents the amount of settlement asset of the market *
    * - * uint64 commitment_amount = 2 [json_name = "commitmentAmount"]; + * string commitment_amount = 2 [json_name = "commitmentAmount"]; * @return This builder for chaining. */ public Builder clearCommitmentAmount() { - commitmentAmount_ = 0L; + commitmentAmount_ = getDefaultInstance().getCommitmentAmount(); + onChanged(); + return this; + } + /** + *
    +       * Specified as a unitless number that represents the amount of settlement asset of the market
    +       * 
    + * + * string commitment_amount = 2 [json_name = "commitmentAmount"]; + * @param value The bytes for commitmentAmount to set. + * @return This builder for chaining. + */ + public Builder setCommitmentAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commitmentAmount_ = value; onChanged(); return this; } @@ -6695,10 +6893,20 @@ public interface WithdrawSubmissionOrBuilder extends * The amount to be withdrawn * * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** *
    @@ -6764,6 +6972,7 @@ private WithdrawSubmission(com.google.protobuf.GeneratedMessageV3.Builder bui
           super(builder);
         }
         private WithdrawSubmission() {
    +      amount_ = "";
           asset_ = "";
         }
     
    @@ -6797,9 +7006,10 @@ private WithdrawSubmission(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    +            case 10: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 case 18: {
    @@ -6854,18 +7064,49 @@ private WithdrawSubmission(
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 1;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * The amount to be withdrawn
          * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * The amount to be withdrawn
    +     * 
    + * + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int ASSET_FIELD_NUMBER = 2; @@ -6966,8 +7207,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (amount_ != 0L) { - output.writeUInt64(1, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, amount_); } if (!getAssetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); @@ -6984,9 +7225,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, amount_); } if (!getAssetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); @@ -7010,8 +7250,8 @@ public boolean equals(final java.lang.Object obj) { } io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission other = (io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission) obj; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!getAsset() .equals(other.getAsset())) return false; if (hasExt() != other.hasExt()) return false; @@ -7031,8 +7271,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); if (hasExt()) { @@ -7176,7 +7415,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - amount_ = 0L; + amount_ = ""; asset_ = ""; @@ -7267,8 +7506,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission other) { if (other == io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; @@ -7306,29 +7546,62 @@ public Builder mergeFrom( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * The amount to be withdrawn
            * 
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 1 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -7339,12 +7612,32 @@ public Builder setAmount(long value) { * The amount to be withdrawn *
    * - * uint64 amount = 1 [json_name = "amount"]; + * string amount = 1 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * The amount to be withdrawn
    +       * 
    + * + * string amount = 1 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -9315,10 +9608,20 @@ public interface DelegateSubmissionOrBuilder extends * The amount of stake to delegate * * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * The amount of stake to delegate
    +     * 
    + * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); } /** *
    @@ -9338,6 +9641,7 @@ private DelegateSubmission(com.google.protobuf.GeneratedMessageV3.Builder bui
         }
         private DelegateSubmission() {
           nodeId_ = "";
    +      amount_ = "";
         }
     
         @java.lang.Override
    @@ -9376,9 +9680,10 @@ private DelegateSubmission(
                   nodeId_ = s;
                   break;
                 }
    -            case 16: {
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -              amount_ = input.readUInt64();
    +              amount_ = s;
                   break;
                 }
                 default: {
    @@ -9460,18 +9765,49 @@ public java.lang.String getNodeId() {
         }
     
         public static final int AMOUNT_FIELD_NUMBER = 2;
    -    private long amount_;
    +    private volatile java.lang.Object amount_;
         /**
          * 
          * The amount of stake to delegate
          * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * The amount of stake to delegate
    +     * 
    + * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -9491,8 +9827,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodeIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } - if (amount_ != 0L) { - output.writeUInt64(2, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); } unknownFields.writeTo(output); } @@ -9506,9 +9842,8 @@ public int getSerializedSize() { if (!getNodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9527,8 +9862,8 @@ public boolean equals(final java.lang.Object obj) { if (!getNodeId() .equals(other.getNodeId())) return false; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9543,8 +9878,7 @@ public int hashCode() { hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -9684,7 +10018,7 @@ public Builder clear() { super.clear(); nodeId_ = ""; - amount_ = 0L; + amount_ = ""; return this; } @@ -9766,8 +10100,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmi nodeId_ = other.nodeId_; onChanged(); } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -9894,29 +10229,62 @@ public Builder setNodeIdBytes( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * The amount of stake to delegate
            * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * The amount of stake to delegate
    +       * 
    + * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** *
            * The amount of stake to delegate
            * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -9927,12 +10295,32 @@ public Builder setAmount(long value) { * The amount of stake to delegate *
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * The amount of stake to delegate
    +       * 
    + * + * string amount = 2 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -10010,10 +10398,20 @@ public interface UndelegateSubmissionOrBuilder extends * optional, if not specified = ALL * * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ - long getAmount(); + java.lang.String getAmount(); + /** + *
    +     * optional, if not specified = ALL
    +     * 
    + * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); /** * .vega.commands.v1.UndelegateSubmission.Method method = 3 [json_name = "method"]; @@ -10040,6 +10438,7 @@ private UndelegateSubmission(com.google.protobuf.GeneratedMessageV3.Builder b } private UndelegateSubmission() { nodeId_ = ""; + amount_ = ""; method_ = 0; } @@ -10079,9 +10478,10 @@ private UndelegateSubmission( nodeId_ = s; break; } - case 16: { + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - amount_ = input.readUInt64(); + amount_ = s; break; } case 24: { @@ -10287,18 +10687,49 @@ public java.lang.String getNodeId() { } public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; + private volatile java.lang.Object amount_; /** *
          * optional, if not specified = ALL
          * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
    +     * optional, if not specified = ALL
    +     * 
    + * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int METHOD_FIELD_NUMBER = 3; @@ -10337,8 +10768,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodeIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } - if (amount_ != 0L) { - output.writeUInt64(2, amount_); + if (!getAmountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); } if (method_ != io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Method.METHOD_UNSPECIFIED.getNumber()) { output.writeEnum(3, method_); @@ -10355,9 +10786,8 @@ public int getSerializedSize() { if (!getNodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, amount_); + if (!getAmountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); } if (method_ != io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Method.METHOD_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -10380,8 +10810,8 @@ public boolean equals(final java.lang.Object obj) { if (!getNodeId() .equals(other.getNodeId())) return false; - if (getAmount() - != other.getAmount()) return false; + if (!getAmount() + .equals(other.getAmount())) return false; if (method_ != other.method_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -10397,8 +10827,7 @@ public int hashCode() { hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + method_; hash = (29 * hash) + unknownFields.hashCode(); @@ -10536,7 +10965,7 @@ public Builder clear() { super.clear(); nodeId_ = ""; - amount_ = 0L; + amount_ = ""; method_ = 0; @@ -10621,8 +11050,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.commands.v1.Commands.UndelegateSub nodeId_ = other.nodeId_; onChanged(); } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + onChanged(); } if (other.method_ != 0) { setMethodValue(other.getMethodValue()); @@ -10732,29 +11162,62 @@ public Builder setNodeIdBytes( return this; } - private long amount_ ; + private java.lang.Object amount_ = ""; /** *
            * optional, if not specified = ALL
            * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return The amount. */ - @java.lang.Override - public long getAmount() { - return amount_; + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** *
            * optional, if not specified = ALL
            * 
    * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * optional, if not specified = ALL
    +       * 
    + * + * string amount = 2 [json_name = "amount"]; * @param value The amount to set. * @return This builder for chaining. */ - public Builder setAmount(long value) { + public Builder setAmount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } amount_ = value; onChanged(); @@ -10765,12 +11228,32 @@ public Builder setAmount(long value) { * optional, if not specified = ALL * * - * uint64 amount = 2 [json_name = "amount"]; + * string amount = 2 [json_name = "amount"]; * @return This builder for chaining. */ public Builder clearAmount() { - amount_ = 0L; + amount_ = getDefaultInstance().getAmount(); + onChanged(); + return this; + } + /** + *
    +       * optional, if not specified = ALL
    +       * 
    + * + * string amount = 2 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + amount_ = value; onChanged(); return this; } @@ -11445,7 +11928,7 @@ public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInsta "ogle/protobuf/wrappers.proto\0326github.com" + "/mwitkow/go-proto-validators/validator.p" + "roto\"\336\002\n\017OrderSubmission\022#\n\tmarket_id\030\001 " + - "\001(\tB\006\342\337\037\002X\001R\010marketId\022\024\n\005price\030\002 \001(\004R\005pr" + + "\001(\tB\006\342\337\037\002X\001R\010marketId\022\024\n\005price\030\002 \001(\tR\005pr" + "ice\022\032\n\004size\030\003 \001(\004B\006\342\337\037\002\020\000R\004size\022\036\n\004side\030" + "\004 \001(\0162\n.vega.SideR\004side\022;\n\rtime_in_force" + "\030\005 \001(\0162\027.vega.Order.TimeInForceR\013timeInF" + @@ -11467,11 +11950,11 @@ public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInsta "ferenceR\017peggedReference\"\366\001\n\034LiquidityPr" + "ovisionSubmission\022#\n\tmarket_id\030\001 \001(\tB\006\342\337" + "\037\002X\001R\010marketId\022+\n\021commitment_amount\030\002 \001(" + - "\004R\020commitmentAmount\022\020\n\003fee\030\003 \001(\tR\003fee\022*\n" + + "\tR\020commitmentAmount\022\020\n\003fee\030\003 \001(\tR\003fee\022*\n" + "\005sells\030\004 \003(\0132\024.vega.LiquidityOrderR\005sell" + "s\022(\n\004buys\030\005 \003(\0132\024.vega.LiquidityOrderR\004b" + "uys\022\034\n\treference\030\006 \001(\tR\treference\"g\n\022Wit" + - "hdrawSubmission\022\026\n\006amount\030\001 \001(\004R\006amount\022" + + "hdrawSubmission\022\026\n\006amount\030\001 \001(\tR\006amount\022" + "\024\n\005asset\030\002 \001(\tR\005asset\022#\n\003ext\030\003 \001(\0132\021.veg" + "a.WithdrawExtR\003ext\"e\n\022ProposalSubmission" + "\022\034\n\treference\030\001 \001(\tR\treference\0221\n\005terms\030" + @@ -11480,9 +11963,9 @@ public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getDefaultInsta "B\006\342\337\037\002X\001R\nproposalId\022&\n\005value\030\002 \001(\0162\020.ve" + "ga.Vote.ValueR\005value\"M\n\022DelegateSubmissi" + "on\022\037\n\007node_id\030\001 \001(\tB\006\342\337\037\002X\001R\006nodeId\022\026\n\006a" + - "mount\030\002 \001(\004R\006amount\"\371\001\n\024UndelegateSubmis" + + "mount\030\002 \001(\tR\006amount\"\371\001\n\024UndelegateSubmis" + "sion\022\037\n\007node_id\030\001 \001(\tB\006\342\337\037\002X\001R\006nodeId\022\026\n" + - "\006amount\030\002 \001(\004R\006amount\022E\n\006method\030\003 \001(\0162-." + + "\006amount\030\002 \001(\tR\006amount\022E\n\006method\030\003 \001(\0162-." + "vega.commands.v1.UndelegateSubmission.Me" + "thodR\006method\"a\n\006Method\022\026\n\022METHOD_UNSPECI" + "FIED\020\000\022\016\n\nMETHOD_NOW\020\001\022\032\n\026METHOD_AT_END_" + diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java index 421a945d..73dc6b76 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/CoreApiServiceGrpc.java @@ -293,6 +293,37 @@ io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse> getListVotesMethod() return getListVotesMethod; } + private static volatile io.grpc.MethodDescriptor getListPartiesStakeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPartiesStake", + requestType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.class, + responseType = io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPartiesStakeMethod() { + io.grpc.MethodDescriptor getListPartiesStakeMethod; + if ((getListPartiesStakeMethod = CoreApiServiceGrpc.getListPartiesStakeMethod) == null) { + synchronized (CoreApiServiceGrpc.class) { + if ((getListPartiesStakeMethod = CoreApiServiceGrpc.getListPartiesStakeMethod) == null) { + CoreApiServiceGrpc.getListPartiesStakeMethod = getListPartiesStakeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPartiesStake")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.getDefaultInstance())) + .setSchemaDescriptor(new CoreApiServiceMethodDescriptorSupplier("ListPartiesStake")) + .build(); + } + } + } + return getListPartiesStakeMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -404,6 +435,13 @@ public void listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest r io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVotesMethod(), responseObserver); } + /** + */ + public void listPartiesStake(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartiesStakeMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -469,6 +507,13 @@ public void listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest r io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse>( this, METHODID_LIST_VOTES))) + .addMethod( + getListPartiesStakeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest, + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse>( + this, METHODID_LIST_PARTIES_STAKE))) .build(); } } @@ -558,6 +603,14 @@ public void listVotes(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest r io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListVotesMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void listPartiesStake(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPartiesStakeMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -636,6 +689,13 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse listVotes(io.ve return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListVotesMethod(), getCallOptions(), request); } + + /** + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse listPartiesStake(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPartiesStakeMethod(), getCallOptions(), request); + } } /** @@ -723,6 +783,14 @@ public com.google.common.util.concurrent.ListenableFuture listPartiesStake( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPartiesStakeMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ACCOUNTS = 0; @@ -734,6 +802,7 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -788,6 +857,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.listVotes((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_PARTIES_STAKE: + serviceImpl.listPartiesStake((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -858,6 +931,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListProposalsMethod()) .addMethod(getListMarketsDataMethod()) .addMethod(getListVotesMethod()) + .addMethod(getListPartiesStakeMethod()) .build(); } } diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java index a10833f8..2e2af70b 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/coreapi/v1/Coreapi.java @@ -13725,6 +13725,2460 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInsta } + public interface PartyStakeOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.PartyStake) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The currentStakeAvailable. + */ + java.lang.String getCurrentStakeAvailable(); + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The bytes for currentStakeAvailable. + */ + com.google.protobuf.ByteString + getCurrentStakeAvailableBytes(); + + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + java.util.List + getStakeLinkingsList(); + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinkings(int index); + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + int getStakeLinkingsCount(); + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + java.util.List + getStakeLinkingsOrBuilderList(); + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingsOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.PartyStake} + */ + public static final class PartyStake extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.PartyStake) + PartyStakeOrBuilder { + private static final long serialVersionUID = 0L; + // Use PartyStake.newBuilder() to construct. + private PartyStake(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PartyStake() { + party_ = ""; + currentStakeAvailable_ = ""; + stakeLinkings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PartyStake(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PartyStake( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + currentStakeAvailable_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stakeLinkings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stakeLinkings_.add( + input.readMessage(io.vegaprotocol.vega.events.v1.Events.StakeLinking.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stakeLinkings_ = java.util.Collections.unmodifiableList(stakeLinkings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_PartyStake_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_PartyStake_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_STAKE_AVAILABLE_FIELD_NUMBER = 2; + private volatile java.lang.Object currentStakeAvailable_; + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The currentStakeAvailable. + */ + @java.lang.Override + public java.lang.String getCurrentStakeAvailable() { + java.lang.Object ref = currentStakeAvailable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentStakeAvailable_ = s; + return s; + } + } + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The bytes for currentStakeAvailable. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentStakeAvailableBytes() { + java.lang.Object ref = currentStakeAvailable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentStakeAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STAKE_LINKINGS_FIELD_NUMBER = 3; + private java.util.List stakeLinkings_; + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + @java.lang.Override + public java.util.List getStakeLinkingsList() { + return stakeLinkings_; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + @java.lang.Override + public java.util.List + getStakeLinkingsOrBuilderList() { + return stakeLinkings_; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + @java.lang.Override + public int getStakeLinkingsCount() { + return stakeLinkings_.size(); + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinkings(int index) { + return stakeLinkings_.get(index); + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingsOrBuilder( + int index) { + return stakeLinkings_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + if (!getCurrentStakeAvailableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentStakeAvailable_); + } + for (int i = 0; i < stakeLinkings_.size(); i++) { + output.writeMessage(3, stakeLinkings_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + if (!getCurrentStakeAvailableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentStakeAvailable_); + } + for (int i = 0; i < stakeLinkings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, stakeLinkings_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!getCurrentStakeAvailable() + .equals(other.getCurrentStakeAvailable())) return false; + if (!getStakeLinkingsList() + .equals(other.getStakeLinkingsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (37 * hash) + CURRENT_STAKE_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentStakeAvailable().hashCode(); + if (getStakeLinkingsCount() > 0) { + hash = (37 * hash) + STAKE_LINKINGS_FIELD_NUMBER; + hash = (53 * hash) + getStakeLinkingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.PartyStake} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.PartyStake) + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_PartyStake_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_PartyStake_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStakeLinkingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + currentStakeAvailable_ = ""; + + if (stakeLinkingsBuilder_ == null) { + stakeLinkings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + stakeLinkingsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_PartyStake_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake(this); + int from_bitField0_ = bitField0_; + result.party_ = party_; + result.currentStakeAvailable_ = currentStakeAvailable_; + if (stakeLinkingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stakeLinkings_ = java.util.Collections.unmodifiableList(stakeLinkings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stakeLinkings_ = stakeLinkings_; + } else { + result.stakeLinkings_ = stakeLinkingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + if (!other.getCurrentStakeAvailable().isEmpty()) { + currentStakeAvailable_ = other.currentStakeAvailable_; + onChanged(); + } + if (stakeLinkingsBuilder_ == null) { + if (!other.stakeLinkings_.isEmpty()) { + if (stakeLinkings_.isEmpty()) { + stakeLinkings_ = other.stakeLinkings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStakeLinkingsIsMutable(); + stakeLinkings_.addAll(other.stakeLinkings_); + } + onChanged(); + } + } else { + if (!other.stakeLinkings_.isEmpty()) { + if (stakeLinkingsBuilder_.isEmpty()) { + stakeLinkingsBuilder_.dispose(); + stakeLinkingsBuilder_ = null; + stakeLinkings_ = other.stakeLinkings_; + bitField0_ = (bitField0_ & ~0x00000001); + stakeLinkingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStakeLinkingsFieldBuilder() : null; + } else { + stakeLinkingsBuilder_.addAllMessages(other.stakeLinkings_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentStakeAvailable_ = ""; + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The currentStakeAvailable. + */ + public java.lang.String getCurrentStakeAvailable() { + java.lang.Object ref = currentStakeAvailable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentStakeAvailable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return The bytes for currentStakeAvailable. + */ + public com.google.protobuf.ByteString + getCurrentStakeAvailableBytes() { + java.lang.Object ref = currentStakeAvailable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentStakeAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @param value The currentStakeAvailable to set. + * @return This builder for chaining. + */ + public Builder setCurrentStakeAvailable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentStakeAvailable_ = value; + onChanged(); + return this; + } + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @return This builder for chaining. + */ + public Builder clearCurrentStakeAvailable() { + + currentStakeAvailable_ = getDefaultInstance().getCurrentStakeAvailable(); + onChanged(); + return this; + } + /** + * string current_stake_available = 2 [json_name = "currentStakeAvailable"]; + * @param value The bytes for currentStakeAvailable to set. + * @return This builder for chaining. + */ + public Builder setCurrentStakeAvailableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentStakeAvailable_ = value; + onChanged(); + return this; + } + + private java.util.List stakeLinkings_ = + java.util.Collections.emptyList(); + private void ensureStakeLinkingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stakeLinkings_ = new java.util.ArrayList(stakeLinkings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder> stakeLinkingsBuilder_; + + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public java.util.List getStakeLinkingsList() { + if (stakeLinkingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stakeLinkings_); + } else { + return stakeLinkingsBuilder_.getMessageList(); + } + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public int getStakeLinkingsCount() { + if (stakeLinkingsBuilder_ == null) { + return stakeLinkings_.size(); + } else { + return stakeLinkingsBuilder_.getCount(); + } + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public io.vegaprotocol.vega.events.v1.Events.StakeLinking getStakeLinkings(int index) { + if (stakeLinkingsBuilder_ == null) { + return stakeLinkings_.get(index); + } else { + return stakeLinkingsBuilder_.getMessage(index); + } + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder setStakeLinkings( + int index, io.vegaprotocol.vega.events.v1.Events.StakeLinking value) { + if (stakeLinkingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStakeLinkingsIsMutable(); + stakeLinkings_.set(index, value); + onChanged(); + } else { + stakeLinkingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder setStakeLinkings( + int index, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder builderForValue) { + if (stakeLinkingsBuilder_ == null) { + ensureStakeLinkingsIsMutable(); + stakeLinkings_.set(index, builderForValue.build()); + onChanged(); + } else { + stakeLinkingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder addStakeLinkings(io.vegaprotocol.vega.events.v1.Events.StakeLinking value) { + if (stakeLinkingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStakeLinkingsIsMutable(); + stakeLinkings_.add(value); + onChanged(); + } else { + stakeLinkingsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder addStakeLinkings( + int index, io.vegaprotocol.vega.events.v1.Events.StakeLinking value) { + if (stakeLinkingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStakeLinkingsIsMutable(); + stakeLinkings_.add(index, value); + onChanged(); + } else { + stakeLinkingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder addStakeLinkings( + io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder builderForValue) { + if (stakeLinkingsBuilder_ == null) { + ensureStakeLinkingsIsMutable(); + stakeLinkings_.add(builderForValue.build()); + onChanged(); + } else { + stakeLinkingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder addStakeLinkings( + int index, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder builderForValue) { + if (stakeLinkingsBuilder_ == null) { + ensureStakeLinkingsIsMutable(); + stakeLinkings_.add(index, builderForValue.build()); + onChanged(); + } else { + stakeLinkingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder addAllStakeLinkings( + java.lang.Iterable values) { + if (stakeLinkingsBuilder_ == null) { + ensureStakeLinkingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stakeLinkings_); + onChanged(); + } else { + stakeLinkingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder clearStakeLinkings() { + if (stakeLinkingsBuilder_ == null) { + stakeLinkings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stakeLinkingsBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public Builder removeStakeLinkings(int index) { + if (stakeLinkingsBuilder_ == null) { + ensureStakeLinkingsIsMutable(); + stakeLinkings_.remove(index); + onChanged(); + } else { + stakeLinkingsBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder getStakeLinkingsBuilder( + int index) { + return getStakeLinkingsFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder getStakeLinkingsOrBuilder( + int index) { + if (stakeLinkingsBuilder_ == null) { + return stakeLinkings_.get(index); } else { + return stakeLinkingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public java.util.List + getStakeLinkingsOrBuilderList() { + if (stakeLinkingsBuilder_ != null) { + return stakeLinkingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stakeLinkings_); + } + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder addStakeLinkingsBuilder() { + return getStakeLinkingsFieldBuilder().addBuilder( + io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance()); + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder addStakeLinkingsBuilder( + int index) { + return getStakeLinkingsFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.events.v1.Events.StakeLinking.getDefaultInstance()); + } + /** + * repeated .vega.events.v1.StakeLinking stake_linkings = 3 [json_name = "stakeLinkings"]; + */ + public java.util.List + getStakeLinkingsBuilderList() { + return getStakeLinkingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder> + getStakeLinkingsFieldBuilder() { + if (stakeLinkingsBuilder_ == null) { + stakeLinkingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.events.v1.Events.StakeLinking, io.vegaprotocol.vega.events.v1.Events.StakeLinking.Builder, io.vegaprotocol.vega.events.v1.Events.StakeLinkingOrBuilder>( + stakeLinkings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stakeLinkings_ = null; + } + return stakeLinkingsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.PartyStake) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.PartyStake) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartyStake parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PartyStake(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPartiesStakeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListPartiesStakeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + java.lang.String getParty(); + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + com.google.protobuf.ByteString + getPartyBytes(); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesStakeRequest} + */ + public static final class ListPartiesStakeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListPartiesStakeRequest) + ListPartiesStakeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPartiesStakeRequest.newBuilder() to construct. + private ListPartiesStakeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPartiesStakeRequest() { + party_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPartiesStakeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPartiesStakeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + party_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.Builder.class); + } + + public static final int PARTY_FIELD_NUMBER = 1; + private volatile java.lang.Object party_; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + @java.lang.Override + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPartyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, party_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPartyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, party_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest) obj; + + if (!getParty() + .equals(other.getParty())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTY_FIELD_NUMBER; + hash = (53 * hash) + getParty().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesStakeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListPartiesStakeRequest) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + party_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest(this); + result.party_ = party_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest.getDefaultInstance()) return this; + if (!other.getParty().isEmpty()) { + party_ = other.party_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object party_ = ""; + /** + * string party = 1 [json_name = "party"]; + * @return The party. + */ + public java.lang.String getParty() { + java.lang.Object ref = party_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + party_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @return The bytes for party. + */ + public com.google.protobuf.ByteString + getPartyBytes() { + java.lang.Object ref = party_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + party_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string party = 1 [json_name = "party"]; + * @param value The party to set. + * @return This builder for chaining. + */ + public Builder setParty( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + party_ = value; + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @return This builder for chaining. + */ + public Builder clearParty() { + + party_ = getDefaultInstance().getParty(); + onChanged(); + return this; + } + /** + * string party = 1 [json_name = "party"]; + * @param value The bytes for party to set. + * @return This builder for chaining. + */ + public Builder setPartyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + party_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListPartiesStakeRequest) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeRequest) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartiesStakeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPartiesStakeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPartiesStakeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:vega.coreapi.v1.ListPartiesStakeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + java.util.List + getPartiesStakeList(); + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getPartiesStake(int index); + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + int getPartiesStakeCount(); + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + java.util.List + getPartiesStakeOrBuilderList(); + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder getPartiesStakeOrBuilder( + int index); + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesStakeResponse} + */ + public static final class ListPartiesStakeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:vega.coreapi.v1.ListPartiesStakeResponse) + ListPartiesStakeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPartiesStakeResponse.newBuilder() to construct. + private ListPartiesStakeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPartiesStakeResponse() { + partiesStake_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPartiesStakeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPartiesStakeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partiesStake_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + partiesStake_.add( + input.readMessage(io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + partiesStake_ = java.util.Collections.unmodifiableList(partiesStake_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.Builder.class); + } + + public static final int PARTIES_STAKE_FIELD_NUMBER = 1; + private java.util.List partiesStake_; + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + @java.lang.Override + public java.util.List getPartiesStakeList() { + return partiesStake_; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + @java.lang.Override + public java.util.List + getPartiesStakeOrBuilderList() { + return partiesStake_; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + @java.lang.Override + public int getPartiesStakeCount() { + return partiesStake_.size(); + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getPartiesStake(int index) { + return partiesStake_.get(index); + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder getPartiesStakeOrBuilder( + int index) { + return partiesStake_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < partiesStake_.size(); i++) { + output.writeMessage(1, partiesStake_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < partiesStake_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, partiesStake_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse)) { + return super.equals(obj); + } + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse other = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse) obj; + + if (!getPartiesStakeList() + .equals(other.getPartiesStakeList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPartiesStakeCount() > 0) { + hash = (37 * hash) + PARTIES_STAKE_FIELD_NUMBER; + hash = (53 * hash) + getPartiesStakeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code vega.coreapi.v1.ListPartiesStakeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:vega.coreapi.v1.ListPartiesStakeResponse) + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.class, io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.Builder.class); + } + + // Construct using io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPartiesStakeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (partiesStakeBuilder_ == null) { + partiesStake_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + partiesStakeBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse getDefaultInstanceForType() { + return io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse build() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse buildPartial() { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse result = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse(this); + int from_bitField0_ = bitField0_; + if (partiesStakeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partiesStake_ = java.util.Collections.unmodifiableList(partiesStake_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partiesStake_ = partiesStake_; + } else { + result.partiesStake_ = partiesStakeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse) { + return mergeFrom((io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse other) { + if (other == io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse.getDefaultInstance()) return this; + if (partiesStakeBuilder_ == null) { + if (!other.partiesStake_.isEmpty()) { + if (partiesStake_.isEmpty()) { + partiesStake_ = other.partiesStake_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartiesStakeIsMutable(); + partiesStake_.addAll(other.partiesStake_); + } + onChanged(); + } + } else { + if (!other.partiesStake_.isEmpty()) { + if (partiesStakeBuilder_.isEmpty()) { + partiesStakeBuilder_.dispose(); + partiesStakeBuilder_ = null; + partiesStake_ = other.partiesStake_; + bitField0_ = (bitField0_ & ~0x00000001); + partiesStakeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartiesStakeFieldBuilder() : null; + } else { + partiesStakeBuilder_.addAllMessages(other.partiesStake_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List partiesStake_ = + java.util.Collections.emptyList(); + private void ensurePartiesStakeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partiesStake_ = new java.util.ArrayList(partiesStake_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder> partiesStakeBuilder_; + + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public java.util.List getPartiesStakeList() { + if (partiesStakeBuilder_ == null) { + return java.util.Collections.unmodifiableList(partiesStake_); + } else { + return partiesStakeBuilder_.getMessageList(); + } + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public int getPartiesStakeCount() { + if (partiesStakeBuilder_ == null) { + return partiesStake_.size(); + } else { + return partiesStakeBuilder_.getCount(); + } + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake getPartiesStake(int index) { + if (partiesStakeBuilder_ == null) { + return partiesStake_.get(index); + } else { + return partiesStakeBuilder_.getMessage(index); + } + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder setPartiesStake( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake value) { + if (partiesStakeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesStakeIsMutable(); + partiesStake_.set(index, value); + onChanged(); + } else { + partiesStakeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder setPartiesStake( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder builderForValue) { + if (partiesStakeBuilder_ == null) { + ensurePartiesStakeIsMutable(); + partiesStake_.set(index, builderForValue.build()); + onChanged(); + } else { + partiesStakeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder addPartiesStake(io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake value) { + if (partiesStakeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesStakeIsMutable(); + partiesStake_.add(value); + onChanged(); + } else { + partiesStakeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder addPartiesStake( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake value) { + if (partiesStakeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartiesStakeIsMutable(); + partiesStake_.add(index, value); + onChanged(); + } else { + partiesStakeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder addPartiesStake( + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder builderForValue) { + if (partiesStakeBuilder_ == null) { + ensurePartiesStakeIsMutable(); + partiesStake_.add(builderForValue.build()); + onChanged(); + } else { + partiesStakeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder addPartiesStake( + int index, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder builderForValue) { + if (partiesStakeBuilder_ == null) { + ensurePartiesStakeIsMutable(); + partiesStake_.add(index, builderForValue.build()); + onChanged(); + } else { + partiesStakeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder addAllPartiesStake( + java.lang.Iterable values) { + if (partiesStakeBuilder_ == null) { + ensurePartiesStakeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partiesStake_); + onChanged(); + } else { + partiesStakeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder clearPartiesStake() { + if (partiesStakeBuilder_ == null) { + partiesStake_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + partiesStakeBuilder_.clear(); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public Builder removePartiesStake(int index) { + if (partiesStakeBuilder_ == null) { + ensurePartiesStakeIsMutable(); + partiesStake_.remove(index); + onChanged(); + } else { + partiesStakeBuilder_.remove(index); + } + return this; + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder getPartiesStakeBuilder( + int index) { + return getPartiesStakeFieldBuilder().getBuilder(index); + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder getPartiesStakeOrBuilder( + int index) { + if (partiesStakeBuilder_ == null) { + return partiesStake_.get(index); } else { + return partiesStakeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public java.util.List + getPartiesStakeOrBuilderList() { + if (partiesStakeBuilder_ != null) { + return partiesStakeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partiesStake_); + } + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder addPartiesStakeBuilder() { + return getPartiesStakeFieldBuilder().addBuilder( + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.getDefaultInstance()); + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder addPartiesStakeBuilder( + int index) { + return getPartiesStakeFieldBuilder().addBuilder( + index, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.getDefaultInstance()); + } + /** + * repeated .vega.coreapi.v1.PartyStake parties_stake = 1 [json_name = "partiesStake"]; + */ + public java.util.List + getPartiesStakeBuilderList() { + return getPartiesStakeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder> + getPartiesStakeFieldBuilder() { + if (partiesStakeBuilder_ == null) { + partiesStakeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStake.Builder, io.vegaprotocol.vega.coreapi.v1.Coreapi.PartyStakeOrBuilder>( + partiesStake_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + partiesStake_ = null; + } + return partiesStakeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:vega.coreapi.v1.ListPartiesStakeResponse) + } + + // @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeResponse) + private static final io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse(); + } + + public static io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartiesStakeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPartiesStakeResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListPartiesStakeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_coreapi_v1_Account_descriptor; private static final @@ -13820,6 +16274,21 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInsta private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vega_coreapi_v1_ListVotesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_PartyStake_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_PartyStake_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListPartiesStakeRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_vega_coreapi_v1_ListPartiesStakeResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -13864,31 +16333,41 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInsta "\n\020ListVotesRequest\022\032\n\010proposal\030\001 \001(\tR\010pr" + "oposal\022\024\n\005party\030\002 \001(\tR\005party\"5\n\021ListVote" + "sResponse\022 \n\005votes\030\001 \003(\0132\n.vega.VoteR\005vo" + - "tes2\355\006\n\016CoreApiService\022[\n\014ListAccounts\022$" + - ".vega.coreapi.v1.ListAccountsRequest\032%.v" + - "ega.coreapi.v1.ListAccountsResponse\022U\n\nL" + - "istAssets\022\".vega.coreapi.v1.ListAssetsRe" + - "quest\032#.vega.coreapi.v1.ListAssetsRespon" + - "se\022v\n\025ListNetworkParameters\022-.vega.corea" + - "pi.v1.ListNetworkParametersRequest\032..veg" + - "a.coreapi.v1.ListNetworkParametersRespon" + - "se\022X\n\013ListParties\022#.vega.coreapi.v1.List" + - "PartiesRequest\032$.vega.coreapi.v1.ListPar" + - "tiesResponse\022a\n\016ListValidators\022&.vega.co" + - "reapi.v1.ListValidatorsRequest\032\'.vega.co" + - "reapi.v1.ListValidatorsResponse\022X\n\013ListM" + - "arkets\022#.vega.coreapi.v1.ListMarketsRequ" + - "est\032$.vega.coreapi.v1.ListMarketsRespons" + - "e\022^\n\rListProposals\022%.vega.coreapi.v1.Lis" + - "tProposalsRequest\032&.vega.coreapi.v1.List" + - "ProposalsResponse\022d\n\017ListMarketsData\022\'.v" + - "ega.coreapi.v1.ListMarketsDataRequest\032(." + - "vega.coreapi.v1.ListMarketsDataResponse\022" + - "R\n\tListVotes\022!.vega.coreapi.v1.ListVotes" + - "Request\032\".vega.coreapi.v1.ListVotesRespo" + - "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" + - "code.vegaprotocol.io/vega/proto/coreapi/" + - "v1b\006proto3" + "tes\"\237\001\n\nPartyStake\022\024\n\005party\030\001 \001(\tR\005party" + + "\0226\n\027current_stake_available\030\002 \001(\tR\025curre" + + "ntStakeAvailable\022C\n\016stake_linkings\030\003 \003(\013" + + "2\034.vega.events.v1.StakeLinkingR\rstakeLin" + + "kings\"/\n\027ListPartiesStakeRequest\022\024\n\005part" + + "y\030\001 \001(\tR\005party\"\\\n\030ListPartiesStakeRespon" + + "se\022@\n\rparties_stake\030\001 \003(\0132\033.vega.coreapi" + + ".v1.PartyStakeR\014partiesStake2\326\007\n\016CoreApi" + + "Service\022[\n\014ListAccounts\022$.vega.coreapi.v" + + "1.ListAccountsRequest\032%.vega.coreapi.v1." + + "ListAccountsResponse\022U\n\nListAssets\022\".veg" + + "a.coreapi.v1.ListAssetsRequest\032#.vega.co" + + "reapi.v1.ListAssetsResponse\022v\n\025ListNetwo" + + "rkParameters\022-.vega.coreapi.v1.ListNetwo" + + "rkParametersRequest\032..vega.coreapi.v1.Li" + + "stNetworkParametersResponse\022X\n\013ListParti" + + "es\022#.vega.coreapi.v1.ListPartiesRequest\032" + + "$.vega.coreapi.v1.ListPartiesResponse\022a\n" + + "\016ListValidators\022&.vega.coreapi.v1.ListVa" + + "lidatorsRequest\032\'.vega.coreapi.v1.ListVa" + + "lidatorsResponse\022X\n\013ListMarkets\022#.vega.c" + + "oreapi.v1.ListMarketsRequest\032$.vega.core" + + "api.v1.ListMarketsResponse\022^\n\rListPropos" + + "als\022%.vega.coreapi.v1.ListProposalsReque" + + "st\032&.vega.coreapi.v1.ListProposalsRespon" + + "se\022d\n\017ListMarketsData\022\'.vega.coreapi.v1." + + "ListMarketsDataRequest\032(.vega.coreapi.v1" + + ".ListMarketsDataResponse\022R\n\tListVotes\022!." + + "vega.coreapi.v1.ListVotesRequest\032\".vega." + + "coreapi.v1.ListVotesResponse\022g\n\020ListPart" + + "iesStake\022(.vega.coreapi.v1.ListPartiesSt" + + "akeRequest\032).vega.coreapi.v1.ListParties" + + "StakeResponseBM\n\037io.vegaprotocol.vega.co" + + "reapi.v1Z*code.vegaprotocol.io/vega/prot" + + "o/coreapi/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -14013,6 +16492,24 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListVotesResponse getDefaultInsta com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_coreapi_v1_ListVotesResponse_descriptor, new java.lang.String[] { "Votes", }); + internal_static_vega_coreapi_v1_PartyStake_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_vega_coreapi_v1_PartyStake_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_PartyStake_descriptor, + new java.lang.String[] { "Party", "CurrentStakeAvailable", "StakeLinkings", }); + internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_vega_coreapi_v1_ListPartiesStakeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListPartiesStakeRequest_descriptor, + new java.lang.String[] { "Party", }); + internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_vega_coreapi_v1_ListPartiesStakeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_vega_coreapi_v1_ListPartiesStakeResponse_descriptor, + new java.lang.String[] { "PartiesStake", }); io.vegaprotocol.vega.Assets.getDescriptor(); io.vegaprotocol.vega.Governance.getDescriptor(); io.vegaprotocol.vega.Markets.getDescriptor(); diff --git a/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java index adb056a3..9732fcb6 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/events/v1/Events.java @@ -8664,6 +8664,51 @@ public interface TxErrorEventOrBuilder extends */ io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder getWithdrawSubmissionOrBuilder(); + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return Whether the delegateSubmission field is set. + */ + boolean hasDelegateSubmission(); + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return The delegateSubmission. + */ + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission getDelegateSubmission(); + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder getDelegateSubmissionOrBuilder(); + + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return Whether the undelegateSubmission field is set. + */ + boolean hasUndelegateSubmission(); + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return The undelegateSubmission. + */ + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getUndelegateSubmission(); + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder getUndelegateSubmissionOrBuilder(); + + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return Whether the restoreSnapshot field is set. + */ + boolean hasRestoreSnapshot(); + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return The restoreSnapshot. + */ + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshot(); + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotOrBuilder(); + public io.vegaprotocol.vega.events.v1.Events.TxErrorEvent.TransactionCase getTransactionCase(); } /** @@ -8823,6 +8868,48 @@ private TxErrorEvent( transactionCase_ = 107; break; } + case 866: { + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder subBuilder = null; + if (transactionCase_ == 108) { + subBuilder = ((io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_).toBuilder(); + } + transaction_ = + input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_); + transaction_ = subBuilder.buildPartial(); + } + transactionCase_ = 108; + break; + } + case 874: { + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder subBuilder = null; + if (transactionCase_ == 109) { + subBuilder = ((io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_).toBuilder(); + } + transaction_ = + input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_); + transaction_ = subBuilder.buildPartial(); + } + transactionCase_ = 109; + break; + } + case 882: { + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder subBuilder = null; + if (transactionCase_ == 110) { + subBuilder = ((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_).toBuilder(); + } + transaction_ = + input.readMessage(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_); + transaction_ = subBuilder.buildPartial(); + } + transactionCase_ = 110; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -8867,6 +8954,9 @@ public enum TransactionCase VOTE_SUBMISSION(105), LIQUIDITY_PROVISION_SUBMISSION(106), WITHDRAW_SUBMISSION(107), + DELEGATE_SUBMISSION(108), + UNDELEGATE_SUBMISSION(109), + RESTORE_SNAPSHOT(110), TRANSACTION_NOT_SET(0); private final int value; private TransactionCase(int value) { @@ -8891,6 +8981,9 @@ public static TransactionCase forNumber(int value) { case 105: return VOTE_SUBMISSION; case 106: return LIQUIDITY_PROVISION_SUBMISSION; case 107: return WITHDRAW_SUBMISSION; + case 108: return DELEGATE_SUBMISSION; + case 109: return UNDELEGATE_SUBMISSION; + case 110: return RESTORE_SNAPSHOT; case 0: return TRANSACTION_NOT_SET; default: return null; } @@ -9215,6 +9308,99 @@ public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder get return io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission.getDefaultInstance(); } + public static final int DELEGATE_SUBMISSION_FIELD_NUMBER = 108; + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return Whether the delegateSubmission field is set. + */ + @java.lang.Override + public boolean hasDelegateSubmission() { + return transactionCase_ == 108; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return The delegateSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission getDelegateSubmission() { + if (transactionCase_ == 108) { + return (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder getDelegateSubmissionOrBuilder() { + if (transactionCase_ == 108) { + return (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } + + public static final int UNDELEGATE_SUBMISSION_FIELD_NUMBER = 109; + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return Whether the undelegateSubmission field is set. + */ + @java.lang.Override + public boolean hasUndelegateSubmission() { + return transactionCase_ == 109; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return The undelegateSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getUndelegateSubmission() { + if (transactionCase_ == 109) { + return (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder getUndelegateSubmissionOrBuilder() { + if (transactionCase_ == 109) { + return (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } + + public static final int RESTORE_SNAPSHOT_FIELD_NUMBER = 110; + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return Whether the restoreSnapshot field is set. + */ + @java.lang.Override + public boolean hasRestoreSnapshot() { + return transactionCase_ == 110; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return The restoreSnapshot. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshot() { + if (transactionCase_ == 110) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotOrBuilder() { + if (transactionCase_ == 110) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -9256,6 +9442,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (transactionCase_ == 107) { output.writeMessage(107, (io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission) transaction_); } + if (transactionCase_ == 108) { + output.writeMessage(108, (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_); + } + if (transactionCase_ == 109) { + output.writeMessage(109, (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_); + } + if (transactionCase_ == 110) { + output.writeMessage(110, (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_); + } unknownFields.writeTo(output); } @@ -9299,6 +9494,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(107, (io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmission) transaction_); } + if (transactionCase_ == 108) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(108, (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_); + } + if (transactionCase_ == 109) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(109, (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_); + } + if (transactionCase_ == 110) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(110, (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -9348,6 +9555,18 @@ public boolean equals(final java.lang.Object obj) { if (!getWithdrawSubmission() .equals(other.getWithdrawSubmission())) return false; break; + case 108: + if (!getDelegateSubmission() + .equals(other.getDelegateSubmission())) return false; + break; + case 109: + if (!getUndelegateSubmission() + .equals(other.getUndelegateSubmission())) return false; + break; + case 110: + if (!getRestoreSnapshot() + .equals(other.getRestoreSnapshot())) return false; + break; case 0: default: } @@ -9395,6 +9614,18 @@ public int hashCode() { hash = (37 * hash) + WITHDRAW_SUBMISSION_FIELD_NUMBER; hash = (53 * hash) + getWithdrawSubmission().hashCode(); break; + case 108: + hash = (37 * hash) + DELEGATE_SUBMISSION_FIELD_NUMBER; + hash = (53 * hash) + getDelegateSubmission().hashCode(); + break; + case 109: + hash = (37 * hash) + UNDELEGATE_SUBMISSION_FIELD_NUMBER; + hash = (53 * hash) + getUndelegateSubmission().hashCode(); + break; + case 110: + hash = (37 * hash) + RESTORE_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getRestoreSnapshot().hashCode(); + break; case 0: default: } @@ -9614,6 +9845,27 @@ public io.vegaprotocol.vega.events.v1.Events.TxErrorEvent buildPartial() { result.transaction_ = withdrawSubmissionBuilder_.build(); } } + if (transactionCase_ == 108) { + if (delegateSubmissionBuilder_ == null) { + result.transaction_ = transaction_; + } else { + result.transaction_ = delegateSubmissionBuilder_.build(); + } + } + if (transactionCase_ == 109) { + if (undelegateSubmissionBuilder_ == null) { + result.transaction_ = transaction_; + } else { + result.transaction_ = undelegateSubmissionBuilder_.build(); + } + } + if (transactionCase_ == 110) { + if (restoreSnapshotBuilder_ == null) { + result.transaction_ = transaction_; + } else { + result.transaction_ = restoreSnapshotBuilder_.build(); + } + } result.transactionCase_ = transactionCase_; onBuilt(); return result; @@ -9700,6 +9952,18 @@ public Builder mergeFrom(io.vegaprotocol.vega.events.v1.Events.TxErrorEvent othe mergeWithdrawSubmission(other.getWithdrawSubmission()); break; } + case DELEGATE_SUBMISSION: { + mergeDelegateSubmission(other.getDelegateSubmission()); + break; + } + case UNDELEGATE_SUBMISSION: { + mergeUndelegateSubmission(other.getUndelegateSubmission()); + break; + } + case RESTORE_SNAPSHOT: { + mergeRestoreSnapshot(other.getRestoreSnapshot()); + break; + } case TRANSACTION_NOT_SET: { break; } @@ -10926,6 +11190,429 @@ public io.vegaprotocol.vega.commands.v1.Commands.WithdrawSubmissionOrBuilder get onChanged();; return withdrawSubmissionBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder> delegateSubmissionBuilder_; + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return Whether the delegateSubmission field is set. + */ + @java.lang.Override + public boolean hasDelegateSubmission() { + return transactionCase_ == 108; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + * @return The delegateSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission getDelegateSubmission() { + if (delegateSubmissionBuilder_ == null) { + if (transactionCase_ == 108) { + return (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } else { + if (transactionCase_ == 108) { + return delegateSubmissionBuilder_.getMessage(); + } + return io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + public Builder setDelegateSubmission(io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission value) { + if (delegateSubmissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transaction_ = value; + onChanged(); + } else { + delegateSubmissionBuilder_.setMessage(value); + } + transactionCase_ = 108; + return this; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + public Builder setDelegateSubmission( + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder builderForValue) { + if (delegateSubmissionBuilder_ == null) { + transaction_ = builderForValue.build(); + onChanged(); + } else { + delegateSubmissionBuilder_.setMessage(builderForValue.build()); + } + transactionCase_ = 108; + return this; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + public Builder mergeDelegateSubmission(io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission value) { + if (delegateSubmissionBuilder_ == null) { + if (transactionCase_ == 108 && + transaction_ != io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance()) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.newBuilder((io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_) + .mergeFrom(value).buildPartial(); + } else { + transaction_ = value; + } + onChanged(); + } else { + if (transactionCase_ == 108) { + delegateSubmissionBuilder_.mergeFrom(value); + } + delegateSubmissionBuilder_.setMessage(value); + } + transactionCase_ = 108; + return this; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + public Builder clearDelegateSubmission() { + if (delegateSubmissionBuilder_ == null) { + if (transactionCase_ == 108) { + transactionCase_ = 0; + transaction_ = null; + onChanged(); + } + } else { + if (transactionCase_ == 108) { + transactionCase_ = 0; + transaction_ = null; + } + delegateSubmissionBuilder_.clear(); + } + return this; + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + public io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder getDelegateSubmissionBuilder() { + return getDelegateSubmissionFieldBuilder().getBuilder(); + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder getDelegateSubmissionOrBuilder() { + if ((transactionCase_ == 108) && (delegateSubmissionBuilder_ != null)) { + return delegateSubmissionBuilder_.getMessageOrBuilder(); + } else { + if (transactionCase_ == 108) { + return (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.DelegateSubmission delegate_submission = 108 [json_name = "delegateSubmission"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder> + getDelegateSubmissionFieldBuilder() { + if (delegateSubmissionBuilder_ == null) { + if (!(transactionCase_ == 108)) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.getDefaultInstance(); + } + delegateSubmissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmissionOrBuilder>( + (io.vegaprotocol.vega.commands.v1.Commands.DelegateSubmission) transaction_, + getParentForChildren(), + isClean()); + transaction_ = null; + } + transactionCase_ = 108; + onChanged();; + return delegateSubmissionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder> undelegateSubmissionBuilder_; + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return Whether the undelegateSubmission field is set. + */ + @java.lang.Override + public boolean hasUndelegateSubmission() { + return transactionCase_ == 109; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + * @return The undelegateSubmission. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission getUndelegateSubmission() { + if (undelegateSubmissionBuilder_ == null) { + if (transactionCase_ == 109) { + return (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } else { + if (transactionCase_ == 109) { + return undelegateSubmissionBuilder_.getMessage(); + } + return io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + public Builder setUndelegateSubmission(io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission value) { + if (undelegateSubmissionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transaction_ = value; + onChanged(); + } else { + undelegateSubmissionBuilder_.setMessage(value); + } + transactionCase_ = 109; + return this; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + public Builder setUndelegateSubmission( + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder builderForValue) { + if (undelegateSubmissionBuilder_ == null) { + transaction_ = builderForValue.build(); + onChanged(); + } else { + undelegateSubmissionBuilder_.setMessage(builderForValue.build()); + } + transactionCase_ = 109; + return this; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + public Builder mergeUndelegateSubmission(io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission value) { + if (undelegateSubmissionBuilder_ == null) { + if (transactionCase_ == 109 && + transaction_ != io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance()) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.newBuilder((io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_) + .mergeFrom(value).buildPartial(); + } else { + transaction_ = value; + } + onChanged(); + } else { + if (transactionCase_ == 109) { + undelegateSubmissionBuilder_.mergeFrom(value); + } + undelegateSubmissionBuilder_.setMessage(value); + } + transactionCase_ = 109; + return this; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + public Builder clearUndelegateSubmission() { + if (undelegateSubmissionBuilder_ == null) { + if (transactionCase_ == 109) { + transactionCase_ = 0; + transaction_ = null; + onChanged(); + } + } else { + if (transactionCase_ == 109) { + transactionCase_ = 0; + transaction_ = null; + } + undelegateSubmissionBuilder_.clear(); + } + return this; + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder getUndelegateSubmissionBuilder() { + return getUndelegateSubmissionFieldBuilder().getBuilder(); + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder getUndelegateSubmissionOrBuilder() { + if ((transactionCase_ == 109) && (undelegateSubmissionBuilder_ != null)) { + return undelegateSubmissionBuilder_.getMessageOrBuilder(); + } else { + if (transactionCase_ == 109) { + return (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.UndelegateSubmission undelegate_submission = 109 [json_name = "undelegateSubmission"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder> + getUndelegateSubmissionFieldBuilder() { + if (undelegateSubmissionBuilder_ == null) { + if (!(transactionCase_ == 109)) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.getDefaultInstance(); + } + undelegateSubmissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission.Builder, io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmissionOrBuilder>( + (io.vegaprotocol.vega.commands.v1.Commands.UndelegateSubmission) transaction_, + getParentForChildren(), + isClean()); + transaction_ = null; + } + transactionCase_ = 109; + onChanged();; + return undelegateSubmissionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder> restoreSnapshotBuilder_; + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return Whether the restoreSnapshot field is set. + */ + @java.lang.Override + public boolean hasRestoreSnapshot() { + return transactionCase_ == 110; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + * @return The restoreSnapshot. + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot getRestoreSnapshot() { + if (restoreSnapshotBuilder_ == null) { + if (transactionCase_ == 110) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } else { + if (transactionCase_ == 110) { + return restoreSnapshotBuilder_.getMessage(); + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + public Builder setRestoreSnapshot(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot value) { + if (restoreSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transaction_ = value; + onChanged(); + } else { + restoreSnapshotBuilder_.setMessage(value); + } + transactionCase_ = 110; + return this; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + public Builder setRestoreSnapshot( + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder builderForValue) { + if (restoreSnapshotBuilder_ == null) { + transaction_ = builderForValue.build(); + onChanged(); + } else { + restoreSnapshotBuilder_.setMessage(builderForValue.build()); + } + transactionCase_ = 110; + return this; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + public Builder mergeRestoreSnapshot(io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot value) { + if (restoreSnapshotBuilder_ == null) { + if (transactionCase_ == 110 && + transaction_ != io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance()) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.newBuilder((io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_) + .mergeFrom(value).buildPartial(); + } else { + transaction_ = value; + } + onChanged(); + } else { + if (transactionCase_ == 110) { + restoreSnapshotBuilder_.mergeFrom(value); + } + restoreSnapshotBuilder_.setMessage(value); + } + transactionCase_ = 110; + return this; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + public Builder clearRestoreSnapshot() { + if (restoreSnapshotBuilder_ == null) { + if (transactionCase_ == 110) { + transactionCase_ = 0; + transaction_ = null; + onChanged(); + } + } else { + if (transactionCase_ == 110) { + transactionCase_ = 0; + transaction_ = null; + } + restoreSnapshotBuilder_.clear(); + } + return this; + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder getRestoreSnapshotBuilder() { + return getRestoreSnapshotFieldBuilder().getBuilder(); + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + @java.lang.Override + public io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder getRestoreSnapshotOrBuilder() { + if ((transactionCase_ == 110) && (restoreSnapshotBuilder_ != null)) { + return restoreSnapshotBuilder_.getMessageOrBuilder(); + } else { + if (transactionCase_ == 110) { + return (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_; + } + return io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + } + /** + * .vega.commands.v1.RestoreSnapshot restore_snapshot = 110 [json_name = "restoreSnapshot"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder> + getRestoreSnapshotFieldBuilder() { + if (restoreSnapshotBuilder_ == null) { + if (!(transactionCase_ == 110)) { + transaction_ = io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.getDefaultInstance(); + } + restoreSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot.Builder, io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshotOrBuilder>( + (io.vegaprotocol.vega.commands.v1.Commands.RestoreSnapshot) transaction_, + getParentForChildren(), + isClean()); + transaction_ = null; + } + transactionCase_ = 110; + onChanged();; + return restoreSnapshotBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -32854,7 +33541,7 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( "unt\022/\n\023undelegation_amount\030\004 \001(\004R\022undele" + "gationAmount\022\033\n\tepoch_seq\030\005 \001(\tR\010epochSe" + "q\"D\n\013MarketEvent\022\033\n\tmarket_id\030\001 \001(\tR\010mar" + - "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\246\005\n\014TxEr" + + "ketId\022\030\n\007payload\030\002 \001(\tR\007payload\"\256\007\n\014TxEr" + "rorEvent\022\031\n\010party_id\030\001 \001(\tR\007partyId\022\027\n\007e" + "rr_msg\030\002 \001(\tR\006errMsg\022N\n\020order_submission" + "\030e \001(\0132!.vega.commands.v1.OrderSubmissio" + @@ -32871,133 +33558,139 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( "visionSubmissionH\000R\034liquidityProvisionSu" + "bmission\022W\n\023withdraw_submission\030k \001(\0132$." + "vega.commands.v1.WithdrawSubmissionH\000R\022w" + - "ithdrawSubmissionB\r\n\013transaction\"*\n\nTime" + - "Update\022\034\n\ttimestamp\030\001 \001(\003R\ttimestamp\"y\n\n" + - "EpochEvent\022\020\n\003seq\030\001 \001(\004R\003seq\022\035\n\nstart_ti" + - "me\030\002 \001(\003R\tstartTime\022\037\n\013expire_time\030\003 \001(\003" + - "R\nexpireTime\022\031\n\010end_time\030\004 \001(\003R\007endTime\"" + - "I\n\021TransferResponses\0224\n\tresponses\030\001 \003(\0132" + - "\026.vega.TransferResponseR\tresponses\"\210\001\n\022P" + - "ositionResolution\022\033\n\tmarket_id\030\001 \001(\tR\010ma" + - "rketId\022\036\n\ndistressed\030\002 \001(\003R\ndistressed\022\026" + - "\n\006closed\030\003 \001(\003R\006closed\022\035\n\nmark_price\030\004 \001" + - "(\004R\tmarkPrice\"c\n\021LossSocialization\022\033\n\tma" + - "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + - "\tR\007partyId\022\026\n\006amount\030\003 \001(\003R\006amount\";\n\017Tr" + - "adeSettlement\022\022\n\004size\030\001 \001(\003R\004size\022\024\n\005pri" + - "ce\030\002 \001(\004R\005price\"\254\001\n\016SettlePosition\022\033\n\tma" + + "ithdrawSubmission\022W\n\023delegate_submission" + + "\030l \001(\0132$.vega.commands.v1.DelegateSubmis" + + "sionH\000R\022delegateSubmission\022]\n\025undelegate" + + "_submission\030m \001(\0132&.vega.commands.v1.Und" + + "elegateSubmissionH\000R\024undelegateSubmissio" + + "n\022N\n\020restore_snapshot\030n \001(\0132!.vega.comma" + + "nds.v1.RestoreSnapshotH\000R\017restoreSnapsho" + + "tB\r\n\013transaction\"*\n\nTimeUpdate\022\034\n\ttimest" + + "amp\030\001 \001(\003R\ttimestamp\"y\n\nEpochEvent\022\020\n\003se" + + "q\030\001 \001(\004R\003seq\022\035\n\nstart_time\030\002 \001(\003R\tstartT" + + "ime\022\037\n\013expire_time\030\003 \001(\003R\nexpireTime\022\031\n\010" + + "end_time\030\004 \001(\003R\007endTime\"I\n\021TransferRespo" + + "nses\0224\n\tresponses\030\001 \003(\0132\026.vega.TransferR" + + "esponseR\tresponses\"\210\001\n\022PositionResolutio" + + "n\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\036\n\ndistre" + + "ssed\030\002 \001(\003R\ndistressed\022\026\n\006closed\030\003 \001(\003R\006" + + "closed\022\035\n\nmark_price\030\004 \001(\004R\tmarkPrice\"c\n" + + "\021LossSocialization\022\033\n\tmarket_id\030\001 \001(\tR\010m" + + "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006am" + + "ount\030\003 \001(\003R\006amount\";\n\017TradeSettlement\022\022\n" + + "\004size\030\001 \001(\003R\004size\022\024\n\005price\030\002 \001(\004R\005price\"" + + "\254\001\n\016SettlePosition\022\033\n\tmarket_id\030\001 \001(\tR\010m" + + "arketId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005pr" + + "ice\030\003 \001(\004R\005price\022L\n\021trade_settlements\030\004 " + + "\003(\0132\037.vega.events.v1.TradeSettlementR\020tr" + + "adeSettlements\"x\n\020SettleDistressed\022\033\n\tma" + "rket_id\030\001 \001(\tR\010marketId\022\031\n\010party_id\030\002 \001(" + - "\tR\007partyId\022\024\n\005price\030\003 \001(\004R\005price\022L\n\021trad" + - "e_settlements\030\004 \003(\0132\037.vega.events.v1.Tra" + - "deSettlementR\020tradeSettlements\"x\n\020Settle" + - "Distressed\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022" + - "\031\n\010party_id\030\002 \001(\tR\007partyId\022\026\n\006margin\030\003 \001" + - "(\004R\006margin\022\024\n\005price\030\004 \001(\004R\005price\"0\n\nMark" + - "etTick\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004time\030\002 \001(\003R\004ti" + - "me\"\205\002\n\014AuctionEvent\022\033\n\tmarket_id\030\001 \001(\tR\010" + - "marketId\022\'\n\017opening_auction\030\002 \001(\010R\016openi" + - "ngAuction\022\024\n\005leave\030\003 \001(\010R\005leave\022\024\n\005start" + - "\030\004 \001(\003R\005start\022\020\n\003end\030\005 \001(\003R\003end\022.\n\007trigg" + - "er\030\006 \001(\0162\024.vega.AuctionTriggerR\007trigger\022" + - "A\n\021extension_trigger\030\007 \001(\0162\024.vega.Auctio" + - "nTriggerR\020extensionTrigger\"\261\001\n\017Validator" + - "Update\022 \n\014vega_pub_key\030\001 \001(\tR\nvegaPubKey" + - "\022)\n\020ethereum_address\030\002 \001(\tR\017ethereumAddr" + - "ess\022\034\n\ntm_pub_key\030\003 \001(\tR\010tmPubKey\022\031\n\010inf" + - "o_url\030\004 \001(\tR\007infoUrl\022\030\n\007country\030\005 \001(\tR\007c" + - "ountry\"\235\022\n\010BusEvent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005b" + - "lock\030\002 \001(\tR\005block\0220\n\004type\030\003 \001(\0162\034.vega.e" + - "vents.v1.BusEventTypeR\004type\022=\n\013time_upda" + - "te\030e \001(\0132\032.vega.events.v1.TimeUpdateH\000R\n" + - "timeUpdate\022R\n\022transfer_responses\030f \001(\0132!" + - ".vega.events.v1.TransferResponsesH\000R\021tra" + - "nsferResponses\022U\n\023position_resolution\030g " + - "\001(\0132\".vega.events.v1.PositionResolutionH" + - "\000R\022positionResolution\022#\n\005order\030h \001(\0132\013.v" + - "ega.OrderH\000R\005order\022)\n\007account\030i \001(\0132\r.ve" + - "ga.AccountH\000R\007account\022#\n\005party\030j \001(\0132\013.v" + - "ega.PartyH\000R\005party\022#\n\005trade\030k \001(\0132\013.vega" + - ".TradeH\000R\005trade\0229\n\rmargin_levels\030l \001(\0132\022" + - ".vega.MarginLevelsH\000R\014marginLevels\022,\n\010pr" + - "oposal\030m \001(\0132\016.vega.ProposalH\000R\010proposal" + - "\022 \n\004vote\030n \001(\0132\n.vega.VoteH\000R\004vote\0223\n\013ma" + - "rket_data\030o \001(\0132\020.vega.MarketDataH\000R\nmar" + - "ketData\022H\n\016node_signature\030p \001(\0132\037.vega.c" + - "ommands.v1.NodeSignatureH\000R\rnodeSignatur" + - "e\022R\n\022loss_socialization\030q \001(\0132!.vega.eve" + - "nts.v1.LossSocializationH\000R\021lossSocializ" + - "ation\022I\n\017settle_position\030r \001(\0132\036.vega.ev" + - "ents.v1.SettlePositionH\000R\016settlePosition" + - "\022O\n\021settle_distressed\030s \001(\0132 .vega.event" + - "s.v1.SettleDistressedH\000R\020settleDistresse" + - "d\0225\n\016market_created\030t \001(\0132\014.vega.MarketH" + - "\000R\rmarketCreated\022#\n\005asset\030u \001(\0132\013.vega.A" + - "ssetH\000R\005asset\022=\n\013market_tick\030v \001(\0132\032.veg" + - "a.events.v1.MarketTickH\000R\nmarketTick\0222\n\n" + - "withdrawal\030w \001(\0132\020.vega.WithdrawalH\000R\nwi" + - "thdrawal\022)\n\007deposit\030x \001(\0132\r.vega.Deposit" + - "H\000R\007deposit\0228\n\007auction\030y \001(\0132\034.vega.even" + - "ts.v1.AuctionEventH\000R\007auction\0223\n\013risk_fa" + - "ctor\030z \001(\0132\020.vega.RiskFactorH\000R\nriskFact" + - "or\022E\n\021network_parameter\030{ \001(\0132\026.vega.Net" + - "workParameterH\000R\020networkParameter\022K\n\023liq" + - "uidity_provision\030| \001(\0132\030.vega.LiquidityP" + - "rovisionH\000R\022liquidityProvision\0225\n\016market" + - "_updated\030} \001(\0132\014.vega.MarketH\000R\rmarketUp" + - "dated\0229\n\013oracle_spec\030~ \001(\0132\026.oracles.v1." + - "OracleSpecH\000R\noracleSpec\0229\n\013oracle_data\030" + - "\177 \001(\0132\026.oracles.v1.OracleDataH\000R\noracleD" + - "ata\022X\n\022delegation_balance\030\201\001 \001(\0132&.vega." + - "events.v1.DelegationBalanceEventH\000R\021dele" + - "gationBalance\022O\n\017validator_score\030\202\001 \001(\0132" + - "#.vega.events.v1.ValidatorScoreEventH\000R\016" + - "validatorScore\022>\n\013epoch_event\030\203\001 \001(\0132\032.v" + - "ega.events.v1.EpochEventH\000R\nepochEvent\022M" + - "\n\020validator_update\030\204\001 \001(\0132\037.vega.events." + - "v1.ValidatorUpdateH\000R\017validatorUpdate\022D\n" + - "\rstake_linking\030\205\001 \001(\0132\034.vega.events.v1.S" + - "takeLinkingH\000R\014stakeLinking\022I\n\rreward_pa" + - "yout\030\206\001 \001(\0132!.vega.events.v1.RewardPayou" + - "tEventH\000R\014rewardPayout\022B\n\ncheckpoint\030\207\001 " + - "\001(\0132\037.vega.events.v1.CheckpointEventH\000R\n" + - "checkpoint\0226\n\006market\030\351\007 \001(\0132\033.vega.event" + - "s.v1.MarketEventH\000R\006market\022A\n\014tx_err_eve" + - "nt\030\321\017 \001(\0132\034.vega.events.v1.TxErrorEventH" + - "\000R\ntxErrEventB\007\n\005event*\343\t\n\014BusEventType\022" + - "\036\n\032BUS_EVENT_TYPE_UNSPECIFIED\020\000\022\026\n\022BUS_E" + - "VENT_TYPE_ALL\020\001\022\036\n\032BUS_EVENT_TYPE_TIME_U" + - "PDATE\020\002\022%\n!BUS_EVENT_TYPE_TRANSFER_RESPO" + - "NSES\020\003\022&\n\"BUS_EVENT_TYPE_POSITION_RESOLU" + - "TION\020\004\022\030\n\024BUS_EVENT_TYPE_ORDER\020\005\022\032\n\026BUS_" + - "EVENT_TYPE_ACCOUNT\020\006\022\030\n\024BUS_EVENT_TYPE_P" + - "ARTY\020\007\022\030\n\024BUS_EVENT_TYPE_TRADE\020\010\022 \n\034BUS_" + - "EVENT_TYPE_MARGIN_LEVELS\020\t\022\033\n\027BUS_EVENT_" + - "TYPE_PROPOSAL\020\n\022\027\n\023BUS_EVENT_TYPE_VOTE\020\013" + - "\022\036\n\032BUS_EVENT_TYPE_MARKET_DATA\020\014\022!\n\035BUS_" + - "EVENT_TYPE_NODE_SIGNATURE\020\r\022%\n!BUS_EVENT" + - "_TYPE_LOSS_SOCIALIZATION\020\016\022\"\n\036BUS_EVENT_" + - "TYPE_SETTLE_POSITION\020\017\022$\n BUS_EVENT_TYPE" + - "_SETTLE_DISTRESSED\020\020\022!\n\035BUS_EVENT_TYPE_M" + - "ARKET_CREATED\020\021\022\030\n\024BUS_EVENT_TYPE_ASSET\020" + - "\022\022\036\n\032BUS_EVENT_TYPE_MARKET_TICK\020\023\022\035\n\031BUS" + - "_EVENT_TYPE_WITHDRAWAL\020\024\022\032\n\026BUS_EVENT_TY" + - "PE_DEPOSIT\020\025\022\032\n\026BUS_EVENT_TYPE_AUCTION\020\026" + - "\022\036\n\032BUS_EVENT_TYPE_RISK_FACTOR\020\027\022$\n BUS_" + - "EVENT_TYPE_NETWORK_PARAMETER\020\030\022&\n\"BUS_EV" + - "ENT_TYPE_LIQUIDITY_PROVISION\020\031\022!\n\035BUS_EV" + - "ENT_TYPE_MARKET_UPDATED\020\032\022\036\n\032BUS_EVENT_T" + - "YPE_ORACLE_SPEC\020\033\022\036\n\032BUS_EVENT_TYPE_ORAC" + - "LE_DATA\020\034\022%\n!BUS_EVENT_TYPE_DELEGATION_B" + - "ALANCE\020\035\022\"\n\036BUS_EVENT_TYPE_VALIDATOR_SCO" + - "RE\020\036\022\037\n\033BUS_EVENT_TYPE_EPOCH_UPDATE\020\037\022#\n" + - "\037BUS_EVENT_TYPE_VALIDATOR_UPDATE\020 \022 \n\034BU" + - "S_EVENT_TYPE_STAKE_LINKING\020!\022&\n\"BUS_EVEN" + - "T_TYPE_REWARD_PAYOUT_EVENT\020\"\022\035\n\031BUS_EVEN" + - "T_TYPE_CHECKPOINT\020#\022\031\n\025BUS_EVENT_TYPE_MA" + - "RKET\020e\022\034\n\027BUS_EVENT_TYPE_TX_ERROR\020\311\001BK\n\036" + - "io.vegaprotocol.vega.events.v1Z)code.veg" + - "aprotocol.io/vega/proto/events/v1b\006proto" + - "3" + "\tR\007partyId\022\026\n\006margin\030\003 \001(\004R\006margin\022\024\n\005pr" + + "ice\030\004 \001(\004R\005price\"0\n\nMarketTick\022\016\n\002id\030\001 \001" + + "(\tR\002id\022\022\n\004time\030\002 \001(\003R\004time\"\205\002\n\014AuctionEv" + + "ent\022\033\n\tmarket_id\030\001 \001(\tR\010marketId\022\'\n\017open" + + "ing_auction\030\002 \001(\010R\016openingAuction\022\024\n\005lea" + + "ve\030\003 \001(\010R\005leave\022\024\n\005start\030\004 \001(\003R\005start\022\020\n" + + "\003end\030\005 \001(\003R\003end\022.\n\007trigger\030\006 \001(\0162\024.vega." + + "AuctionTriggerR\007trigger\022A\n\021extension_tri" + + "gger\030\007 \001(\0162\024.vega.AuctionTriggerR\020extens" + + "ionTrigger\"\261\001\n\017ValidatorUpdate\022 \n\014vega_p" + + "ub_key\030\001 \001(\tR\nvegaPubKey\022)\n\020ethereum_add" + + "ress\030\002 \001(\tR\017ethereumAddress\022\034\n\ntm_pub_ke" + + "y\030\003 \001(\tR\010tmPubKey\022\031\n\010info_url\030\004 \001(\tR\007inf" + + "oUrl\022\030\n\007country\030\005 \001(\tR\007country\"\235\022\n\010BusEv" + + "ent\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005block\030\002 \001(\tR\005bloc" + + "k\0220\n\004type\030\003 \001(\0162\034.vega.events.v1.BusEven" + + "tTypeR\004type\022=\n\013time_update\030e \001(\0132\032.vega." + + "events.v1.TimeUpdateH\000R\ntimeUpdate\022R\n\022tr" + + "ansfer_responses\030f \001(\0132!.vega.events.v1." + + "TransferResponsesH\000R\021transferResponses\022U" + + "\n\023position_resolution\030g \001(\0132\".vega.event" + + "s.v1.PositionResolutionH\000R\022positionResol" + + "ution\022#\n\005order\030h \001(\0132\013.vega.OrderH\000R\005ord" + + "er\022)\n\007account\030i \001(\0132\r.vega.AccountH\000R\007ac" + + "count\022#\n\005party\030j \001(\0132\013.vega.PartyH\000R\005par" + + "ty\022#\n\005trade\030k \001(\0132\013.vega.TradeH\000R\005trade\022" + + "9\n\rmargin_levels\030l \001(\0132\022.vega.MarginLeve" + + "lsH\000R\014marginLevels\022,\n\010proposal\030m \001(\0132\016.v" + + "ega.ProposalH\000R\010proposal\022 \n\004vote\030n \001(\0132\n" + + ".vega.VoteH\000R\004vote\0223\n\013market_data\030o \001(\0132" + + "\020.vega.MarketDataH\000R\nmarketData\022H\n\016node_" + + "signature\030p \001(\0132\037.vega.commands.v1.NodeS" + + "ignatureH\000R\rnodeSignature\022R\n\022loss_social" + + "ization\030q \001(\0132!.vega.events.v1.LossSocia" + + "lizationH\000R\021lossSocialization\022I\n\017settle_" + + "position\030r \001(\0132\036.vega.events.v1.SettlePo" + + "sitionH\000R\016settlePosition\022O\n\021settle_distr" + + "essed\030s \001(\0132 .vega.events.v1.SettleDistr" + + "essedH\000R\020settleDistressed\0225\n\016market_crea" + + "ted\030t \001(\0132\014.vega.MarketH\000R\rmarketCreated" + + "\022#\n\005asset\030u \001(\0132\013.vega.AssetH\000R\005asset\022=\n" + + "\013market_tick\030v \001(\0132\032.vega.events.v1.Mark" + + "etTickH\000R\nmarketTick\0222\n\nwithdrawal\030w \001(\013" + + "2\020.vega.WithdrawalH\000R\nwithdrawal\022)\n\007depo" + + "sit\030x \001(\0132\r.vega.DepositH\000R\007deposit\0228\n\007a" + + "uction\030y \001(\0132\034.vega.events.v1.AuctionEve" + + "ntH\000R\007auction\0223\n\013risk_factor\030z \001(\0132\020.veg" + + "a.RiskFactorH\000R\nriskFactor\022E\n\021network_pa" + + "rameter\030{ \001(\0132\026.vega.NetworkParameterH\000R" + + "\020networkParameter\022K\n\023liquidity_provision" + + "\030| \001(\0132\030.vega.LiquidityProvisionH\000R\022liqu" + + "idityProvision\0225\n\016market_updated\030} \001(\0132\014" + + ".vega.MarketH\000R\rmarketUpdated\0229\n\013oracle_" + + "spec\030~ \001(\0132\026.oracles.v1.OracleSpecH\000R\nor" + + "acleSpec\0229\n\013oracle_data\030\177 \001(\0132\026.oracles." + + "v1.OracleDataH\000R\noracleData\022X\n\022delegatio" + + "n_balance\030\201\001 \001(\0132&.vega.events.v1.Delega" + + "tionBalanceEventH\000R\021delegationBalance\022O\n" + + "\017validator_score\030\202\001 \001(\0132#.vega.events.v1" + + ".ValidatorScoreEventH\000R\016validatorScore\022>" + + "\n\013epoch_event\030\203\001 \001(\0132\032.vega.events.v1.Ep" + + "ochEventH\000R\nepochEvent\022M\n\020validator_upda" + + "te\030\204\001 \001(\0132\037.vega.events.v1.ValidatorUpda" + + "teH\000R\017validatorUpdate\022D\n\rstake_linking\030\205" + + "\001 \001(\0132\034.vega.events.v1.StakeLinkingH\000R\014s" + + "takeLinking\022I\n\rreward_payout\030\206\001 \001(\0132!.ve" + + "ga.events.v1.RewardPayoutEventH\000R\014reward" + + "Payout\022B\n\ncheckpoint\030\207\001 \001(\0132\037.vega.event" + + "s.v1.CheckpointEventH\000R\ncheckpoint\0226\n\006ma" + + "rket\030\351\007 \001(\0132\033.vega.events.v1.MarketEvent" + + "H\000R\006market\022A\n\014tx_err_event\030\321\017 \001(\0132\034.vega" + + ".events.v1.TxErrorEventH\000R\ntxErrEventB\007\n" + + "\005event*\343\t\n\014BusEventType\022\036\n\032BUS_EVENT_TYP" + + "E_UNSPECIFIED\020\000\022\026\n\022BUS_EVENT_TYPE_ALL\020\001\022" + + "\036\n\032BUS_EVENT_TYPE_TIME_UPDATE\020\002\022%\n!BUS_E" + + "VENT_TYPE_TRANSFER_RESPONSES\020\003\022&\n\"BUS_EV" + + "ENT_TYPE_POSITION_RESOLUTION\020\004\022\030\n\024BUS_EV" + + "ENT_TYPE_ORDER\020\005\022\032\n\026BUS_EVENT_TYPE_ACCOU" + + "NT\020\006\022\030\n\024BUS_EVENT_TYPE_PARTY\020\007\022\030\n\024BUS_EV" + + "ENT_TYPE_TRADE\020\010\022 \n\034BUS_EVENT_TYPE_MARGI" + + "N_LEVELS\020\t\022\033\n\027BUS_EVENT_TYPE_PROPOSAL\020\n\022" + + "\027\n\023BUS_EVENT_TYPE_VOTE\020\013\022\036\n\032BUS_EVENT_TY" + + "PE_MARKET_DATA\020\014\022!\n\035BUS_EVENT_TYPE_NODE_" + + "SIGNATURE\020\r\022%\n!BUS_EVENT_TYPE_LOSS_SOCIA" + + "LIZATION\020\016\022\"\n\036BUS_EVENT_TYPE_SETTLE_POSI" + + "TION\020\017\022$\n BUS_EVENT_TYPE_SETTLE_DISTRESS" + + "ED\020\020\022!\n\035BUS_EVENT_TYPE_MARKET_CREATED\020\021\022" + + "\030\n\024BUS_EVENT_TYPE_ASSET\020\022\022\036\n\032BUS_EVENT_T" + + "YPE_MARKET_TICK\020\023\022\035\n\031BUS_EVENT_TYPE_WITH" + + "DRAWAL\020\024\022\032\n\026BUS_EVENT_TYPE_DEPOSIT\020\025\022\032\n\026" + + "BUS_EVENT_TYPE_AUCTION\020\026\022\036\n\032BUS_EVENT_TY" + + "PE_RISK_FACTOR\020\027\022$\n BUS_EVENT_TYPE_NETWO" + + "RK_PARAMETER\020\030\022&\n\"BUS_EVENT_TYPE_LIQUIDI" + + "TY_PROVISION\020\031\022!\n\035BUS_EVENT_TYPE_MARKET_" + + "UPDATED\020\032\022\036\n\032BUS_EVENT_TYPE_ORACLE_SPEC\020" + + "\033\022\036\n\032BUS_EVENT_TYPE_ORACLE_DATA\020\034\022%\n!BUS" + + "_EVENT_TYPE_DELEGATION_BALANCE\020\035\022\"\n\036BUS_" + + "EVENT_TYPE_VALIDATOR_SCORE\020\036\022\037\n\033BUS_EVEN" + + "T_TYPE_EPOCH_UPDATE\020\037\022#\n\037BUS_EVENT_TYPE_" + + "VALIDATOR_UPDATE\020 \022 \n\034BUS_EVENT_TYPE_STA" + + "KE_LINKING\020!\022&\n\"BUS_EVENT_TYPE_REWARD_PA" + + "YOUT_EVENT\020\"\022\035\n\031BUS_EVENT_TYPE_CHECKPOIN" + + "T\020#\022\031\n\025BUS_EVENT_TYPE_MARKET\020e\022\034\n\027BUS_EV" + + "ENT_TYPE_TX_ERROR\020\311\001BK\n\036io.vegaprotocol." + + "vega.events.v1Z)code.vegaprotocol.io/veg" + + "a/proto/events/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -33058,7 +33751,7 @@ public io.vegaprotocol.vega.events.v1.Events.BusEvent getDefaultInstanceForType( internal_static_vega_events_v1_TxErrorEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vega_events_v1_TxErrorEvent_descriptor, - new java.lang.String[] { "PartyId", "ErrMsg", "OrderSubmission", "OrderAmendment", "OrderCancellation", "Proposal", "VoteSubmission", "LiquidityProvisionSubmission", "WithdrawSubmission", "Transaction", }); + new java.lang.String[] { "PartyId", "ErrMsg", "OrderSubmission", "OrderAmendment", "OrderCancellation", "Proposal", "VoteSubmission", "LiquidityProvisionSubmission", "WithdrawSubmission", "DelegateSubmission", "UndelegateSubmission", "RestoreSnapshot", "Transaction", }); internal_static_vega_events_v1_TimeUpdate_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_vega_events_v1_TimeUpdate_fieldAccessorTable = new diff --git a/grpc/clients/js/generated/chain_events_pb.d.ts b/grpc/clients/js/generated/chain_events_pb.d.ts index 7a9504ee..5ca17b0d 100644 --- a/grpc/clients/js/generated/chain_events_pb.d.ts +++ b/grpc/clients/js/generated/chain_events_pb.d.ts @@ -37,8 +37,8 @@ export class BuiltinAssetWithdrawal extends jspb.Message { setVegaAssetId(value: string): BuiltinAssetWithdrawal; getPartyId(): string; setPartyId(value: string): BuiltinAssetWithdrawal; - getAmount(): number; - setAmount(value: number): BuiltinAssetWithdrawal; + getAmount(): string; + setAmount(value: string): BuiltinAssetWithdrawal; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BuiltinAssetWithdrawal.AsObject; @@ -54,7 +54,7 @@ export namespace BuiltinAssetWithdrawal { export type AsObject = { vegaAssetId: string, partyId: string, - amount: number, + amount: string, } } diff --git a/grpc/clients/js/generated/chain_events_pb.js b/grpc/clients/js/generated/chain_events_pb.js index a321dc6c..8acf52ee 100644 --- a/grpc/clients/js/generated/chain_events_pb.js +++ b/grpc/clients/js/generated/chain_events_pb.js @@ -684,7 +684,7 @@ proto.vega.BuiltinAssetWithdrawal.toObject = function(includeInstance, msg) { var f, obj = { vegaAssetId: jspb.Message.getFieldWithDefault(msg, 1, ""), partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0) + amount: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -730,7 +730,7 @@ proto.vega.BuiltinAssetWithdrawal.deserializeBinaryFromReader = function(msg, re msg.setPartyId(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; default: @@ -777,8 +777,8 @@ proto.vega.BuiltinAssetWithdrawal.serializeBinaryToWriter = function(message, wr ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -823,20 +823,20 @@ proto.vega.BuiltinAssetWithdrawal.prototype.setPartyId = function(value) { /** - * optional uint64 amount = 3; - * @return {number} + * optional string amount = 3; + * @return {string} */ proto.vega.BuiltinAssetWithdrawal.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.BuiltinAssetWithdrawal} returns this */ proto.vega.BuiltinAssetWithdrawal.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; diff --git a/grpc/clients/js/generated/commands/v1/commands_pb.d.ts b/grpc/clients/js/generated/commands/v1/commands_pb.d.ts index 416f36b5..5946a9a7 100644 --- a/grpc/clients/js/generated/commands/v1/commands_pb.d.ts +++ b/grpc/clients/js/generated/commands/v1/commands_pb.d.ts @@ -13,8 +13,8 @@ import * as github_com_mwitkow_go_proto_validators_validator_pb from "../../gith export class OrderSubmission extends jspb.Message { getMarketId(): string; setMarketId(value: string): OrderSubmission; - getPrice(): number; - setPrice(value: number): OrderSubmission; + getPrice(): string; + setPrice(value: string): OrderSubmission; getSize(): number; setSize(value: number): OrderSubmission; getSide(): vega_pb.Side; @@ -46,7 +46,7 @@ export class OrderSubmission extends jspb.Message { export namespace OrderSubmission { export type AsObject = { marketId: string, - price: number, + price: string, size: number, side: vega_pb.Side, timeInForce: vega_pb.Order.TimeInForce, @@ -133,8 +133,8 @@ export namespace OrderAmendment { export class LiquidityProvisionSubmission extends jspb.Message { getMarketId(): string; setMarketId(value: string): LiquidityProvisionSubmission; - getCommitmentAmount(): number; - setCommitmentAmount(value: number): LiquidityProvisionSubmission; + getCommitmentAmount(): string; + setCommitmentAmount(value: string): LiquidityProvisionSubmission; getFee(): string; setFee(value: string): LiquidityProvisionSubmission; clearSellsList(): void; @@ -161,7 +161,7 @@ export class LiquidityProvisionSubmission extends jspb.Message { export namespace LiquidityProvisionSubmission { export type AsObject = { marketId: string, - commitmentAmount: number, + commitmentAmount: string, fee: string, sellsList: Array, buysList: Array, @@ -170,8 +170,8 @@ export namespace LiquidityProvisionSubmission { } export class WithdrawSubmission extends jspb.Message { - getAmount(): number; - setAmount(value: number): WithdrawSubmission; + getAmount(): string; + setAmount(value: string): WithdrawSubmission; getAsset(): string; setAsset(value: string): WithdrawSubmission; @@ -192,7 +192,7 @@ export class WithdrawSubmission extends jspb.Message { export namespace WithdrawSubmission { export type AsObject = { - amount: number, + amount: string, asset: string, ext?: vega_pb.WithdrawExt.AsObject, } @@ -250,8 +250,8 @@ export namespace VoteSubmission { export class DelegateSubmission extends jspb.Message { getNodeId(): string; setNodeId(value: string): DelegateSubmission; - getAmount(): number; - setAmount(value: number): DelegateSubmission; + getAmount(): string; + setAmount(value: string): DelegateSubmission; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DelegateSubmission.AsObject; @@ -266,15 +266,15 @@ export class DelegateSubmission extends jspb.Message { export namespace DelegateSubmission { export type AsObject = { nodeId: string, - amount: number, + amount: string, } } export class UndelegateSubmission extends jspb.Message { getNodeId(): string; setNodeId(value: string): UndelegateSubmission; - getAmount(): number; - setAmount(value: number): UndelegateSubmission; + getAmount(): string; + setAmount(value: string): UndelegateSubmission; getMethod(): UndelegateSubmission.Method; setMethod(value: UndelegateSubmission.Method): UndelegateSubmission; @@ -291,7 +291,7 @@ export class UndelegateSubmission extends jspb.Message { export namespace UndelegateSubmission { export type AsObject = { nodeId: string, - amount: number, + amount: string, method: UndelegateSubmission.Method, } diff --git a/grpc/clients/js/generated/commands/v1/commands_pb.js b/grpc/clients/js/generated/commands/v1/commands_pb.js index b23343af..49f8d9b4 100644 --- a/grpc/clients/js/generated/commands/v1/commands_pb.js +++ b/grpc/clients/js/generated/commands/v1/commands_pb.js @@ -276,7 +276,7 @@ proto.vega.commands.v1.OrderSubmission.prototype.toObject = function(opt_include proto.vega.commands.v1.OrderSubmission.toObject = function(includeInstance, msg) { var f, obj = { marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - price: jspb.Message.getFieldWithDefault(msg, 2, 0), + price: jspb.Message.getFieldWithDefault(msg, 2, ""), size: jspb.Message.getFieldWithDefault(msg, 3, 0), side: jspb.Message.getFieldWithDefault(msg, 4, 0), timeInForce: jspb.Message.getFieldWithDefault(msg, 5, 0), @@ -325,7 +325,7 @@ proto.vega.commands.v1.OrderSubmission.deserializeBinaryFromReader = function(ms msg.setMarketId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setPrice(value); break; case 3: @@ -394,8 +394,8 @@ proto.vega.commands.v1.OrderSubmission.serializeBinaryToWriter = function(messag ); } f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -472,20 +472,20 @@ proto.vega.commands.v1.OrderSubmission.prototype.setMarketId = function(value) { /** - * optional uint64 price = 2; - * @return {number} + * optional string price = 2; + * @return {string} */ proto.vega.commands.v1.OrderSubmission.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.commands.v1.OrderSubmission} returns this */ proto.vega.commands.v1.OrderSubmission.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1237,7 +1237,7 @@ proto.vega.commands.v1.LiquidityProvisionSubmission.prototype.toObject = functio proto.vega.commands.v1.LiquidityProvisionSubmission.toObject = function(includeInstance, msg) { var f, obj = { marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - commitmentAmount: jspb.Message.getFieldWithDefault(msg, 2, 0), + commitmentAmount: jspb.Message.getFieldWithDefault(msg, 2, ""), fee: jspb.Message.getFieldWithDefault(msg, 3, ""), sellsList: jspb.Message.toObjectList(msg.getSellsList(), vega_pb.LiquidityOrder.toObject, includeInstance), @@ -1285,7 +1285,7 @@ proto.vega.commands.v1.LiquidityProvisionSubmission.deserializeBinaryFromReader msg.setMarketId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setCommitmentAmount(value); break; case 3: @@ -1343,8 +1343,8 @@ proto.vega.commands.v1.LiquidityProvisionSubmission.serializeBinaryToWriter = fu ); } f = message.getCommitmentAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -1401,20 +1401,20 @@ proto.vega.commands.v1.LiquidityProvisionSubmission.prototype.setMarketId = func /** - * optional uint64 commitment_amount = 2; - * @return {number} + * optional string commitment_amount = 2; + * @return {string} */ proto.vega.commands.v1.LiquidityProvisionSubmission.prototype.getCommitmentAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.commands.v1.LiquidityProvisionSubmission} returns this */ proto.vega.commands.v1.LiquidityProvisionSubmission.prototype.setCommitmentAmount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1562,7 +1562,7 @@ proto.vega.commands.v1.WithdrawSubmission.prototype.toObject = function(opt_incl */ proto.vega.commands.v1.WithdrawSubmission.toObject = function(includeInstance, msg) { var f, obj = { - amount: jspb.Message.getFieldWithDefault(msg, 1, 0), + amount: jspb.Message.getFieldWithDefault(msg, 1, ""), asset: jspb.Message.getFieldWithDefault(msg, 2, ""), ext: (f = msg.getExt()) && vega_pb.WithdrawExt.toObject(includeInstance, f) }; @@ -1602,7 +1602,7 @@ proto.vega.commands.v1.WithdrawSubmission.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 2: @@ -1644,8 +1644,8 @@ proto.vega.commands.v1.WithdrawSubmission.prototype.serializeBinary = function() proto.vega.commands.v1.WithdrawSubmission.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); @@ -1669,20 +1669,20 @@ proto.vega.commands.v1.WithdrawSubmission.serializeBinaryToWriter = function(mes /** - * optional uint64 amount = 1; - * @return {number} + * optional string amount = 1; + * @return {string} */ proto.vega.commands.v1.WithdrawSubmission.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.commands.v1.WithdrawSubmission} returns this */ proto.vega.commands.v1.WithdrawSubmission.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2115,7 +2115,7 @@ proto.vega.commands.v1.DelegateSubmission.prototype.toObject = function(opt_incl proto.vega.commands.v1.DelegateSubmission.toObject = function(includeInstance, msg) { var f, obj = { nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: jspb.Message.getFieldWithDefault(msg, 2, 0) + amount: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -2157,7 +2157,7 @@ proto.vega.commands.v1.DelegateSubmission.deserializeBinaryFromReader = function msg.setNodeId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; default: @@ -2197,8 +2197,8 @@ proto.vega.commands.v1.DelegateSubmission.serializeBinaryToWriter = function(mes ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -2225,20 +2225,20 @@ proto.vega.commands.v1.DelegateSubmission.prototype.setNodeId = function(value) /** - * optional uint64 amount = 2; - * @return {number} + * optional string amount = 2; + * @return {string} */ proto.vega.commands.v1.DelegateSubmission.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.commands.v1.DelegateSubmission} returns this */ proto.vega.commands.v1.DelegateSubmission.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2275,7 +2275,7 @@ proto.vega.commands.v1.UndelegateSubmission.prototype.toObject = function(opt_in proto.vega.commands.v1.UndelegateSubmission.toObject = function(includeInstance, msg) { var f, obj = { nodeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: jspb.Message.getFieldWithDefault(msg, 2, 0), + amount: jspb.Message.getFieldWithDefault(msg, 2, ""), method: jspb.Message.getFieldWithDefault(msg, 3, 0) }; @@ -2318,7 +2318,7 @@ proto.vega.commands.v1.UndelegateSubmission.deserializeBinaryFromReader = functi msg.setNodeId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 3: @@ -2362,8 +2362,8 @@ proto.vega.commands.v1.UndelegateSubmission.serializeBinaryToWriter = function(m ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -2407,20 +2407,20 @@ proto.vega.commands.v1.UndelegateSubmission.prototype.setNodeId = function(value /** - * optional uint64 amount = 2; - * @return {number} + * optional string amount = 2; + * @return {string} */ proto.vega.commands.v1.UndelegateSubmission.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.commands.v1.UndelegateSubmission} returns this */ proto.vega.commands.v1.UndelegateSubmission.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts index 097e058d..2922480b 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.d.ts @@ -22,6 +22,7 @@ interface ICoreApiServiceService extends grpc.ServiceDefinition { @@ -105,6 +106,15 @@ interface ICoreApiServiceService_IListVotes extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface ICoreApiServiceService_IListPartiesStake extends grpc.MethodDefinition { + path: "/vega.coreapi.v1.CoreApiService/ListPartiesStake"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} export const CoreApiServiceService: ICoreApiServiceService; @@ -118,6 +128,7 @@ export interface ICoreApiServiceServer extends grpc.UntypedServiceImplementation listProposals: grpc.handleUnaryCall; listMarketsData: grpc.handleUnaryCall; listVotes: grpc.handleUnaryCall; + listPartiesStake: grpc.handleUnaryCall; } export interface ICoreApiServiceClient { @@ -148,6 +159,9 @@ export interface ICoreApiServiceClient { listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; + listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; + listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; } export class CoreApiServiceClient extends grpc.Client implements ICoreApiServiceClient { @@ -179,4 +193,7 @@ export class CoreApiServiceClient extends grpc.Client implements ICoreApiService public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; public listVotes(request: coreapi_v1_coreapi_pb.ListVotesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListVotesResponse) => void): grpc.ClientUnaryCall; + public listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; + public listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; + public listPartiesStake(request: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: coreapi_v1_coreapi_pb.ListPartiesStakeResponse) => void): grpc.ClientUnaryCall; } diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js index caa0eb89..3c392ad4 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js @@ -141,6 +141,28 @@ function deserialize_vega_coreapi_v1_ListPartiesResponse(buffer_arg) { return coreapi_v1_coreapi_pb.ListPartiesResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_vega_coreapi_v1_ListPartiesStakeRequest(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListPartiesStakeRequest)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListPartiesStakeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListPartiesStakeRequest(buffer_arg) { + return coreapi_v1_coreapi_pb.ListPartiesStakeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_vega_coreapi_v1_ListPartiesStakeResponse(arg) { + if (!(arg instanceof coreapi_v1_coreapi_pb.ListPartiesStakeResponse)) { + throw new Error('Expected argument of type vega.coreapi.v1.ListPartiesStakeResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_vega_coreapi_v1_ListPartiesStakeResponse(buffer_arg) { + return coreapi_v1_coreapi_pb.ListPartiesStakeResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_vega_coreapi_v1_ListProposalsRequest(arg) { if (!(arg instanceof coreapi_v1_coreapi_pb.ListProposalsRequest)) { throw new Error('Expected argument of type vega.coreapi.v1.ListProposalsRequest'); @@ -308,6 +330,17 @@ var CoreApiServiceService = exports.CoreApiServiceService = { responseSerialize: serialize_vega_coreapi_v1_ListVotesResponse, responseDeserialize: deserialize_vega_coreapi_v1_ListVotesResponse, }, + listPartiesStake: { + path: '/vega.coreapi.v1.CoreApiService/ListPartiesStake', + requestStream: false, + responseStream: false, + requestType: coreapi_v1_coreapi_pb.ListPartiesStakeRequest, + responseType: coreapi_v1_coreapi_pb.ListPartiesStakeResponse, + requestSerialize: serialize_vega_coreapi_v1_ListPartiesStakeRequest, + requestDeserialize: deserialize_vega_coreapi_v1_ListPartiesStakeRequest, + responseSerialize: serialize_vega_coreapi_v1_ListPartiesStakeResponse, + responseDeserialize: deserialize_vega_coreapi_v1_ListPartiesStakeResponse, + }, }; exports.CoreApiServiceClient = grpc.makeGenericClientConstructor(CoreApiServiceService); diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts index 0c8df20b..00be2303 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts @@ -423,3 +423,73 @@ export namespace ListVotesResponse { votesList: Array, } } + +export class PartyStake extends jspb.Message { + getParty(): string; + setParty(value: string): PartyStake; + getCurrentStakeAvailable(): string; + setCurrentStakeAvailable(value: string): PartyStake; + clearStakeLinkingsList(): void; + getStakeLinkingsList(): Array; + setStakeLinkingsList(value: Array): PartyStake; + addStakeLinkings(value?: events_v1_events_pb.StakeLinking, index?: number): events_v1_events_pb.StakeLinking; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PartyStake.AsObject; + static toObject(includeInstance: boolean, msg: PartyStake): PartyStake.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PartyStake, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PartyStake; + static deserializeBinaryFromReader(message: PartyStake, reader: jspb.BinaryReader): PartyStake; +} + +export namespace PartyStake { + export type AsObject = { + party: string, + currentStakeAvailable: string, + stakeLinkingsList: Array, + } +} + +export class ListPartiesStakeRequest extends jspb.Message { + getParty(): string; + setParty(value: string): ListPartiesStakeRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListPartiesStakeRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListPartiesStakeRequest): ListPartiesStakeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListPartiesStakeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListPartiesStakeRequest; + static deserializeBinaryFromReader(message: ListPartiesStakeRequest, reader: jspb.BinaryReader): ListPartiesStakeRequest; +} + +export namespace ListPartiesStakeRequest { + export type AsObject = { + party: string, + } +} + +export class ListPartiesStakeResponse extends jspb.Message { + clearPartiesStakeList(): void; + getPartiesStakeList(): Array; + setPartiesStakeList(value: Array): ListPartiesStakeResponse; + addPartiesStake(value?: PartyStake, index?: number): PartyStake; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListPartiesStakeResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListPartiesStakeResponse): ListPartiesStakeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListPartiesStakeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListPartiesStakeResponse; + static deserializeBinaryFromReader(message: ListPartiesStakeResponse, reader: jspb.BinaryReader): ListPartiesStakeResponse; +} + +export namespace ListPartiesStakeResponse { + export type AsObject = { + partiesStakeList: Array, + } +} diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js index e3203a95..2f0bb727 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js @@ -37,12 +37,15 @@ goog.exportSymbol('proto.vega.coreapi.v1.ListNetworkParametersRequest', null, gl goog.exportSymbol('proto.vega.coreapi.v1.ListNetworkParametersResponse', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesRequest', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesStakeRequest', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.ListPartiesStakeResponse', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListProposalsRequest', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListProposalsResponse', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListValidatorsRequest', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListValidatorsResponse', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListVotesRequest', null, global); goog.exportSymbol('proto.vega.coreapi.v1.ListVotesResponse', null, global); +goog.exportSymbol('proto.vega.coreapi.v1.PartyStake', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -442,6 +445,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.vega.coreapi.v1.ListVotesResponse.displayName = 'proto.vega.coreapi.v1.ListVotesResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.PartyStake = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.PartyStake.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.PartyStake, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.PartyStake.displayName = 'proto.vega.coreapi.v1.PartyStake'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListPartiesStakeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListPartiesStakeRequest.displayName = 'proto.vega.coreapi.v1.ListPartiesStakeRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vega.coreapi.v1.ListPartiesStakeResponse.repeatedFields_, null); +}; +goog.inherits(proto.vega.coreapi.v1.ListPartiesStakeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.vega.coreapi.v1.ListPartiesStakeResponse.displayName = 'proto.vega.coreapi.v1.ListPartiesStakeResponse'; +} @@ -3334,4 +3400,514 @@ proto.vega.coreapi.v1.ListVotesResponse.prototype.clearVotesList = function() { }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.PartyStake.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.PartyStake.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.PartyStake.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.PartyStake} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.PartyStake.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, ""), + currentStakeAvailable: jspb.Message.getFieldWithDefault(msg, 2, ""), + stakeLinkingsList: jspb.Message.toObjectList(msg.getStakeLinkingsList(), + events_v1_events_pb.StakeLinking.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.PartyStake} + */ +proto.vega.coreapi.v1.PartyStake.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.PartyStake; + return proto.vega.coreapi.v1.PartyStake.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.PartyStake} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.PartyStake} + */ +proto.vega.coreapi.v1.PartyStake.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrentStakeAvailable(value); + break; + case 3: + var value = new events_v1_events_pb.StakeLinking; + reader.readMessage(value,events_v1_events_pb.StakeLinking.deserializeBinaryFromReader); + msg.addStakeLinkings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.PartyStake.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.PartyStake.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.PartyStake} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.PartyStake.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCurrentStakeAvailable(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getStakeLinkingsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + events_v1_events_pb.StakeLinking.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.coreapi.v1.PartyStake.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.PartyStake} returns this + */ +proto.vega.coreapi.v1.PartyStake.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string current_stake_available = 2; + * @return {string} + */ +proto.vega.coreapi.v1.PartyStake.prototype.getCurrentStakeAvailable = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.PartyStake} returns this + */ +proto.vega.coreapi.v1.PartyStake.prototype.setCurrentStakeAvailable = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated vega.events.v1.StakeLinking stake_linkings = 3; + * @return {!Array} + */ +proto.vega.coreapi.v1.PartyStake.prototype.getStakeLinkingsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, events_v1_events_pb.StakeLinking, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.PartyStake} returns this +*/ +proto.vega.coreapi.v1.PartyStake.prototype.setStakeLinkingsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.vega.events.v1.StakeLinking=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.events.v1.StakeLinking} + */ +proto.vega.coreapi.v1.PartyStake.prototype.addStakeLinkings = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.vega.events.v1.StakeLinking, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.PartyStake} returns this + */ +proto.vega.coreapi.v1.PartyStake.prototype.clearStakeLinkingsList = function() { + return this.setStakeLinkingsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListPartiesStakeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListPartiesStakeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + party: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListPartiesStakeRequest} + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListPartiesStakeRequest; + return proto.vega.coreapi.v1.ListPartiesStakeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListPartiesStakeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListPartiesStakeRequest} + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParty(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListPartiesStakeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListPartiesStakeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParty(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string party = 1; + * @return {string} + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.prototype.getParty = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.coreapi.v1.ListPartiesStakeRequest} returns this + */ +proto.vega.coreapi.v1.ListPartiesStakeRequest.prototype.setParty = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vega.coreapi.v1.ListPartiesStakeResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vega.coreapi.v1.ListPartiesStakeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + partiesStakeList: jspb.Message.toObjectList(msg.getPartiesStakeList(), + proto.vega.coreapi.v1.PartyStake.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.vega.coreapi.v1.ListPartiesStakeResponse} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vega.coreapi.v1.ListPartiesStakeResponse; + return proto.vega.coreapi.v1.ListPartiesStakeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vega.coreapi.v1.ListPartiesStakeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vega.coreapi.v1.ListPartiesStakeResponse} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.vega.coreapi.v1.PartyStake; + reader.readMessage(value,proto.vega.coreapi.v1.PartyStake.deserializeBinaryFromReader); + msg.addPartiesStake(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vega.coreapi.v1.ListPartiesStakeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vega.coreapi.v1.ListPartiesStakeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPartiesStakeList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.vega.coreapi.v1.PartyStake.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated PartyStake parties_stake = 1; + * @return {!Array} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.getPartiesStakeList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vega.coreapi.v1.PartyStake, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.vega.coreapi.v1.ListPartiesStakeResponse} returns this +*/ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.setPartiesStakeList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.vega.coreapi.v1.PartyStake=} opt_value + * @param {number=} opt_index + * @return {!proto.vega.coreapi.v1.PartyStake} + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.addPartiesStake = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.vega.coreapi.v1.PartyStake, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.vega.coreapi.v1.ListPartiesStakeResponse} returns this + */ +proto.vega.coreapi.v1.ListPartiesStakeResponse.prototype.clearPartiesStakeList = function() { + return this.setPartiesStakeList([]); +}; + + goog.object.extend(exports, proto.vega.coreapi.v1); diff --git a/grpc/clients/js/generated/events/v1/events_pb.d.ts b/grpc/clients/js/generated/events/v1/events_pb.d.ts index 735c626e..1d0d67c9 100644 --- a/grpc/clients/js/generated/events/v1/events_pb.d.ts +++ b/grpc/clients/js/generated/events/v1/events_pb.d.ts @@ -284,6 +284,21 @@ export class TxErrorEvent extends jspb.Message { getWithdrawSubmission(): commands_v1_commands_pb.WithdrawSubmission | undefined; setWithdrawSubmission(value?: commands_v1_commands_pb.WithdrawSubmission): TxErrorEvent; + hasDelegateSubmission(): boolean; + clearDelegateSubmission(): void; + getDelegateSubmission(): commands_v1_commands_pb.DelegateSubmission | undefined; + setDelegateSubmission(value?: commands_v1_commands_pb.DelegateSubmission): TxErrorEvent; + + hasUndelegateSubmission(): boolean; + clearUndelegateSubmission(): void; + getUndelegateSubmission(): commands_v1_commands_pb.UndelegateSubmission | undefined; + setUndelegateSubmission(value?: commands_v1_commands_pb.UndelegateSubmission): TxErrorEvent; + + hasRestoreSnapshot(): boolean; + clearRestoreSnapshot(): void; + getRestoreSnapshot(): commands_v1_commands_pb.RestoreSnapshot | undefined; + setRestoreSnapshot(value?: commands_v1_commands_pb.RestoreSnapshot): TxErrorEvent; + getTransactionCase(): TxErrorEvent.TransactionCase; serializeBinary(): Uint8Array; @@ -307,6 +322,9 @@ export namespace TxErrorEvent { voteSubmission?: commands_v1_commands_pb.VoteSubmission.AsObject, liquidityProvisionSubmission?: commands_v1_commands_pb.LiquidityProvisionSubmission.AsObject, withdrawSubmission?: commands_v1_commands_pb.WithdrawSubmission.AsObject, + delegateSubmission?: commands_v1_commands_pb.DelegateSubmission.AsObject, + undelegateSubmission?: commands_v1_commands_pb.UndelegateSubmission.AsObject, + restoreSnapshot?: commands_v1_commands_pb.RestoreSnapshot.AsObject, } export enum TransactionCase { @@ -318,6 +336,9 @@ export namespace TxErrorEvent { VOTE_SUBMISSION = 105, LIQUIDITY_PROVISION_SUBMISSION = 106, WITHDRAW_SUBMISSION = 107, + DELEGATE_SUBMISSION = 108, + UNDELEGATE_SUBMISSION = 109, + RESTORE_SNAPSHOT = 110, } } diff --git a/grpc/clients/js/generated/events/v1/events_pb.js b/grpc/clients/js/generated/events/v1/events_pb.js index df9ebe91..ca1c5232 100644 --- a/grpc/clients/js/generated/events/v1/events_pb.js +++ b/grpc/clients/js/generated/events/v1/events_pb.js @@ -2163,7 +2163,7 @@ proto.vega.events.v1.MarketEvent.prototype.setPayload = function(value) { * @private {!Array>} * @const */ -proto.vega.events.v1.TxErrorEvent.oneofGroups_ = [[101,102,103,104,105,106,107]]; +proto.vega.events.v1.TxErrorEvent.oneofGroups_ = [[101,102,103,104,105,106,107,108,109,110]]; /** * @enum {number} @@ -2176,7 +2176,10 @@ proto.vega.events.v1.TxErrorEvent.TransactionCase = { PROPOSAL: 104, VOTE_SUBMISSION: 105, LIQUIDITY_PROVISION_SUBMISSION: 106, - WITHDRAW_SUBMISSION: 107 + WITHDRAW_SUBMISSION: 107, + DELEGATE_SUBMISSION: 108, + UNDELEGATE_SUBMISSION: 109, + RESTORE_SNAPSHOT: 110 }; /** @@ -2225,7 +2228,10 @@ proto.vega.events.v1.TxErrorEvent.toObject = function(includeInstance, msg) { proposal: (f = msg.getProposal()) && commands_v1_commands_pb.ProposalSubmission.toObject(includeInstance, f), voteSubmission: (f = msg.getVoteSubmission()) && commands_v1_commands_pb.VoteSubmission.toObject(includeInstance, f), liquidityProvisionSubmission: (f = msg.getLiquidityProvisionSubmission()) && commands_v1_commands_pb.LiquidityProvisionSubmission.toObject(includeInstance, f), - withdrawSubmission: (f = msg.getWithdrawSubmission()) && commands_v1_commands_pb.WithdrawSubmission.toObject(includeInstance, f) + withdrawSubmission: (f = msg.getWithdrawSubmission()) && commands_v1_commands_pb.WithdrawSubmission.toObject(includeInstance, f), + delegateSubmission: (f = msg.getDelegateSubmission()) && commands_v1_commands_pb.DelegateSubmission.toObject(includeInstance, f), + undelegateSubmission: (f = msg.getUndelegateSubmission()) && commands_v1_commands_pb.UndelegateSubmission.toObject(includeInstance, f), + restoreSnapshot: (f = msg.getRestoreSnapshot()) && commands_v1_commands_pb.RestoreSnapshot.toObject(includeInstance, f) }; if (includeInstance) { @@ -2305,6 +2311,21 @@ proto.vega.events.v1.TxErrorEvent.deserializeBinaryFromReader = function(msg, re reader.readMessage(value,commands_v1_commands_pb.WithdrawSubmission.deserializeBinaryFromReader); msg.setWithdrawSubmission(value); break; + case 108: + var value = new commands_v1_commands_pb.DelegateSubmission; + reader.readMessage(value,commands_v1_commands_pb.DelegateSubmission.deserializeBinaryFromReader); + msg.setDelegateSubmission(value); + break; + case 109: + var value = new commands_v1_commands_pb.UndelegateSubmission; + reader.readMessage(value,commands_v1_commands_pb.UndelegateSubmission.deserializeBinaryFromReader); + msg.setUndelegateSubmission(value); + break; + case 110: + var value = new commands_v1_commands_pb.RestoreSnapshot; + reader.readMessage(value,commands_v1_commands_pb.RestoreSnapshot.deserializeBinaryFromReader); + msg.setRestoreSnapshot(value); + break; default: reader.skipField(); break; @@ -2404,6 +2425,30 @@ proto.vega.events.v1.TxErrorEvent.serializeBinaryToWriter = function(message, wr commands_v1_commands_pb.WithdrawSubmission.serializeBinaryToWriter ); } + f = message.getDelegateSubmission(); + if (f != null) { + writer.writeMessage( + 108, + f, + commands_v1_commands_pb.DelegateSubmission.serializeBinaryToWriter + ); + } + f = message.getUndelegateSubmission(); + if (f != null) { + writer.writeMessage( + 109, + f, + commands_v1_commands_pb.UndelegateSubmission.serializeBinaryToWriter + ); + } + f = message.getRestoreSnapshot(); + if (f != null) { + writer.writeMessage( + 110, + f, + commands_v1_commands_pb.RestoreSnapshot.serializeBinaryToWriter + ); + } }; @@ -2702,6 +2747,117 @@ proto.vega.events.v1.TxErrorEvent.prototype.hasWithdrawSubmission = function() { }; +/** + * optional vega.commands.v1.DelegateSubmission delegate_submission = 108; + * @return {?proto.vega.commands.v1.DelegateSubmission} + */ +proto.vega.events.v1.TxErrorEvent.prototype.getDelegateSubmission = function() { + return /** @type{?proto.vega.commands.v1.DelegateSubmission} */ ( + jspb.Message.getWrapperField(this, commands_v1_commands_pb.DelegateSubmission, 108)); +}; + + +/** + * @param {?proto.vega.commands.v1.DelegateSubmission|undefined} value + * @return {!proto.vega.events.v1.TxErrorEvent} returns this +*/ +proto.vega.events.v1.TxErrorEvent.prototype.setDelegateSubmission = function(value) { + return jspb.Message.setOneofWrapperField(this, 108, proto.vega.events.v1.TxErrorEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.events.v1.TxErrorEvent} returns this + */ +proto.vega.events.v1.TxErrorEvent.prototype.clearDelegateSubmission = function() { + return this.setDelegateSubmission(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.events.v1.TxErrorEvent.prototype.hasDelegateSubmission = function() { + return jspb.Message.getField(this, 108) != null; +}; + + +/** + * optional vega.commands.v1.UndelegateSubmission undelegate_submission = 109; + * @return {?proto.vega.commands.v1.UndelegateSubmission} + */ +proto.vega.events.v1.TxErrorEvent.prototype.getUndelegateSubmission = function() { + return /** @type{?proto.vega.commands.v1.UndelegateSubmission} */ ( + jspb.Message.getWrapperField(this, commands_v1_commands_pb.UndelegateSubmission, 109)); +}; + + +/** + * @param {?proto.vega.commands.v1.UndelegateSubmission|undefined} value + * @return {!proto.vega.events.v1.TxErrorEvent} returns this +*/ +proto.vega.events.v1.TxErrorEvent.prototype.setUndelegateSubmission = function(value) { + return jspb.Message.setOneofWrapperField(this, 109, proto.vega.events.v1.TxErrorEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.events.v1.TxErrorEvent} returns this + */ +proto.vega.events.v1.TxErrorEvent.prototype.clearUndelegateSubmission = function() { + return this.setUndelegateSubmission(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.events.v1.TxErrorEvent.prototype.hasUndelegateSubmission = function() { + return jspb.Message.getField(this, 109) != null; +}; + + +/** + * optional vega.commands.v1.RestoreSnapshot restore_snapshot = 110; + * @return {?proto.vega.commands.v1.RestoreSnapshot} + */ +proto.vega.events.v1.TxErrorEvent.prototype.getRestoreSnapshot = function() { + return /** @type{?proto.vega.commands.v1.RestoreSnapshot} */ ( + jspb.Message.getWrapperField(this, commands_v1_commands_pb.RestoreSnapshot, 110)); +}; + + +/** + * @param {?proto.vega.commands.v1.RestoreSnapshot|undefined} value + * @return {!proto.vega.events.v1.TxErrorEvent} returns this +*/ +proto.vega.events.v1.TxErrorEvent.prototype.setRestoreSnapshot = function(value) { + return jspb.Message.setOneofWrapperField(this, 110, proto.vega.events.v1.TxErrorEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.vega.events.v1.TxErrorEvent} returns this + */ +proto.vega.events.v1.TxErrorEvent.prototype.clearRestoreSnapshot = function() { + return this.setRestoreSnapshot(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.vega.events.v1.TxErrorEvent.prototype.hasRestoreSnapshot = function() { + return jspb.Message.getField(this, 110) != null; +}; + + diff --git a/grpc/clients/js/generated/governance_pb.d.ts b/grpc/clients/js/generated/governance_pb.d.ts index 128fa63b..a7510150 100644 --- a/grpc/clients/js/generated/governance_pb.d.ts +++ b/grpc/clients/js/generated/governance_pb.d.ts @@ -176,8 +176,8 @@ export namespace NewMarketConfiguration { } export class NewMarketCommitment extends jspb.Message { - getCommitmentAmount(): number; - setCommitmentAmount(value: number): NewMarketCommitment; + getCommitmentAmount(): string; + setCommitmentAmount(value: string): NewMarketCommitment; getFee(): string; setFee(value: string): NewMarketCommitment; clearSellsList(): void; @@ -203,7 +203,7 @@ export class NewMarketCommitment extends jspb.Message { export namespace NewMarketCommitment { export type AsObject = { - commitmentAmount: number, + commitmentAmount: string, fee: string, sellsList: Array, buysList: Array, @@ -472,8 +472,8 @@ export class Vote extends jspb.Message { setProposalId(value: string): Vote; getTimestamp(): number; setTimestamp(value: number): Vote; - getTotalGovernanceTokenBalance(): number; - setTotalGovernanceTokenBalance(value: number): Vote; + getTotalGovernanceTokenBalance(): string; + setTotalGovernanceTokenBalance(value: string): Vote; getTotalGovernanceTokenWeight(): string; setTotalGovernanceTokenWeight(value: string): Vote; @@ -493,7 +493,7 @@ export namespace Vote { value: Vote.Value, proposalId: string, timestamp: number, - totalGovernanceTokenBalance: number, + totalGovernanceTokenBalance: string, totalGovernanceTokenWeight: string, } diff --git a/grpc/clients/js/generated/governance_pb.js b/grpc/clients/js/generated/governance_pb.js index 059bf9ee..95111a18 100644 --- a/grpc/clients/js/generated/governance_pb.js +++ b/grpc/clients/js/generated/governance_pb.js @@ -1498,7 +1498,7 @@ proto.vega.NewMarketCommitment.prototype.toObject = function(opt_includeInstance */ proto.vega.NewMarketCommitment.toObject = function(includeInstance, msg) { var f, obj = { - commitmentAmount: jspb.Message.getFieldWithDefault(msg, 1, 0), + commitmentAmount: jspb.Message.getFieldWithDefault(msg, 1, ""), fee: jspb.Message.getFieldWithDefault(msg, 2, ""), sellsList: jspb.Message.toObjectList(msg.getSellsList(), vega_pb.LiquidityOrder.toObject, includeInstance), @@ -1542,7 +1542,7 @@ proto.vega.NewMarketCommitment.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setCommitmentAmount(value); break; case 2: @@ -1593,8 +1593,8 @@ proto.vega.NewMarketCommitment.prototype.serializeBinary = function() { proto.vega.NewMarketCommitment.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCommitmentAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); @@ -1633,20 +1633,20 @@ proto.vega.NewMarketCommitment.serializeBinaryToWriter = function(message, write /** - * optional uint64 commitment_amount = 1; - * @return {number} + * optional string commitment_amount = 1; + * @return {string} */ proto.vega.NewMarketCommitment.prototype.getCommitmentAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.NewMarketCommitment} returns this */ proto.vega.NewMarketCommitment.prototype.setCommitmentAmount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3530,7 +3530,7 @@ proto.vega.Vote.toObject = function(includeInstance, msg) { value: jspb.Message.getFieldWithDefault(msg, 2, 0), proposalId: jspb.Message.getFieldWithDefault(msg, 3, ""), timestamp: jspb.Message.getFieldWithDefault(msg, 4, 0), - totalGovernanceTokenBalance: jspb.Message.getFieldWithDefault(msg, 5, 0), + totalGovernanceTokenBalance: jspb.Message.getFieldWithDefault(msg, 5, ""), totalGovernanceTokenWeight: jspb.Message.getFieldWithDefault(msg, 6, "") }; @@ -3585,7 +3585,7 @@ proto.vega.Vote.deserializeBinaryFromReader = function(msg, reader) { msg.setTimestamp(value); break; case 5: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setTotalGovernanceTokenBalance(value); break; case 6: @@ -3650,8 +3650,8 @@ proto.vega.Vote.serializeBinaryToWriter = function(message, writer) { ); } f = message.getTotalGovernanceTokenBalance(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 5, f ); @@ -3748,20 +3748,20 @@ proto.vega.Vote.prototype.setTimestamp = function(value) { /** - * optional uint64 total_governance_token_balance = 5; - * @return {number} + * optional string total_governance_token_balance = 5; + * @return {string} */ proto.vega.Vote.prototype.getTotalGovernanceTokenBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Vote} returns this */ proto.vega.Vote.prototype.setTotalGovernanceTokenBalance = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; diff --git a/grpc/clients/js/generated/vega_pb.d.ts b/grpc/clients/js/generated/vega_pb.d.ts index aae23e2a..a90b3a31 100644 --- a/grpc/clients/js/generated/vega_pb.d.ts +++ b/grpc/clients/js/generated/vega_pb.d.ts @@ -10,8 +10,8 @@ import * as markets_pb from "./markets_pb"; import * as assets_pb from "./assets_pb"; export class Price extends jspb.Message { - getValue(): number; - setValue(value: number): Price; + getValue(): string; + setValue(value: string): Price; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Price.AsObject; @@ -25,7 +25,7 @@ export class Price extends jspb.Message { export namespace Price { export type AsObject = { - value: number, + value: string, } } @@ -165,8 +165,8 @@ export class Order extends jspb.Message { setPartyId(value: string): Order; getSide(): Side; setSide(value: Side): Order; - getPrice(): number; - setPrice(value: number): Order; + getPrice(): string; + setPrice(value: string): Order; getSize(): number; setSize(value: number): Order; getRemaining(): number; @@ -215,7 +215,7 @@ export namespace Order { marketId: string, partyId: string, side: Side, - price: number, + price: string, size: number, remaining: number, timeInForce: Order.TimeInForce, @@ -322,8 +322,8 @@ export namespace OrderConfirmation { export class AuctionIndicativeState extends jspb.Message { getMarketId(): string; setMarketId(value: string): AuctionIndicativeState; - getIndicativePrice(): number; - setIndicativePrice(value: number): AuctionIndicativeState; + getIndicativePrice(): string; + setIndicativePrice(value: string): AuctionIndicativeState; getIndicativeVolume(): number; setIndicativeVolume(value: number): AuctionIndicativeState; getAuctionStart(): number; @@ -344,7 +344,7 @@ export class AuctionIndicativeState extends jspb.Message { export namespace AuctionIndicativeState { export type AsObject = { marketId: string, - indicativePrice: number, + indicativePrice: string, indicativeVolume: number, auctionStart: number, auctionEnd: number, @@ -356,8 +356,8 @@ export class Trade extends jspb.Message { setId(value: string): Trade; getMarketId(): string; setMarketId(value: string): Trade; - getPrice(): number; - setPrice(value: number): Trade; + getPrice(): string; + setPrice(value: string): Trade; getSize(): number; setSize(value: number): Trade; getBuyer(): string; @@ -403,7 +403,7 @@ export namespace Trade { export type AsObject = { id: string, marketId: string, - price: number, + price: string, size: number, buyer: string, seller: string, @@ -428,12 +428,12 @@ export namespace Trade { } export class Fee extends jspb.Message { - getMakerFee(): number; - setMakerFee(value: number): Fee; - getInfrastructureFee(): number; - setInfrastructureFee(value: number): Fee; - getLiquidityFee(): number; - setLiquidityFee(value: number): Fee; + getMakerFee(): string; + setMakerFee(value: string): Fee; + getInfrastructureFee(): string; + setInfrastructureFee(value: string): Fee; + getLiquidityFee(): string; + setLiquidityFee(value: string): Fee; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Fee.AsObject; @@ -447,9 +447,9 @@ export class Fee extends jspb.Message { export namespace Fee { export type AsObject = { - makerFee: number, - infrastructureFee: number, - liquidityFee: number, + makerFee: string, + infrastructureFee: string, + liquidityFee: string, } } @@ -480,14 +480,14 @@ export class Candle extends jspb.Message { setTimestamp(value: number): Candle; getDatetime(): string; setDatetime(value: string): Candle; - getHigh(): number; - setHigh(value: number): Candle; - getLow(): number; - setLow(value: number): Candle; - getOpen(): number; - setOpen(value: number): Candle; - getClose(): number; - setClose(value: number): Candle; + getHigh(): string; + setHigh(value: string): Candle; + getLow(): string; + setLow(value: string): Candle; + getOpen(): string; + setOpen(value: string): Candle; + getClose(): string; + setClose(value: string): Candle; getVolume(): number; setVolume(value: number): Candle; getInterval(): Interval; @@ -507,18 +507,18 @@ export namespace Candle { export type AsObject = { timestamp: number, datetime: string, - high: number, - low: number, - open: number, - close: number, + high: string, + low: string, + open: string, + close: string, volume: number, interval: Interval, } } export class PriceLevel extends jspb.Message { - getPrice(): number; - setPrice(value: number): PriceLevel; + getPrice(): string; + setPrice(value: string): PriceLevel; getNumberOfOrders(): number; setNumberOfOrders(value: number): PriceLevel; getVolume(): number; @@ -536,7 +536,7 @@ export class PriceLevel extends jspb.Message { export namespace PriceLevel { export type AsObject = { - price: number, + price: string, numberOfOrders: number, volume: number, } @@ -615,12 +615,12 @@ export class Position extends jspb.Message { setPartyId(value: string): Position; getOpenVolume(): number; setOpenVolume(value: number): Position; - getRealisedPnl(): number; - setRealisedPnl(value: number): Position; - getUnrealisedPnl(): number; - setUnrealisedPnl(value: number): Position; - getAverageEntryPrice(): number; - setAverageEntryPrice(value: number): Position; + getRealisedPnl(): string; + setRealisedPnl(value: string): Position; + getUnrealisedPnl(): string; + setUnrealisedPnl(value: string): Position; + getAverageEntryPrice(): string; + setAverageEntryPrice(value: string): Position; getUpdatedAt(): number; setUpdatedAt(value: number): Position; @@ -639,9 +639,9 @@ export namespace Position { marketId: string, partyId: string, openVolume: number, - realisedPnl: number, - unrealisedPnl: number, - averageEntryPrice: number, + realisedPnl: string, + unrealisedPnl: string, + averageEntryPrice: string, updatedAt: number, } } @@ -649,8 +649,8 @@ export namespace Position { export class PositionTrade extends jspb.Message { getVolume(): number; setVolume(value: number): PositionTrade; - getPrice(): number; - setPrice(value: number): PositionTrade; + getPrice(): string; + setPrice(value: string): PositionTrade; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PositionTrade.AsObject; @@ -665,7 +665,7 @@ export class PositionTrade extends jspb.Message { export namespace PositionTrade { export type AsObject = { volume: number, - price: number, + price: string, } } @@ -723,8 +723,8 @@ export class Withdrawal extends jspb.Message { setId(value: string): Withdrawal; getPartyId(): string; setPartyId(value: string): Withdrawal; - getAmount(): number; - setAmount(value: number): Withdrawal; + getAmount(): string; + setAmount(value: string): Withdrawal; getAsset(): string; setAsset(value: string): Withdrawal; getStatus(): Withdrawal.Status; @@ -759,7 +759,7 @@ export namespace Withdrawal { export type AsObject = { id: string, partyId: string, - amount: number, + amount: string, asset: string, status: Withdrawal.Status, ref: string, @@ -835,8 +835,8 @@ export class Account extends jspb.Message { setId(value: string): Account; getOwner(): string; setOwner(value: string): Account; - getBalance(): number; - setBalance(value: number): Account; + getBalance(): string; + setBalance(value: string): Account; getAsset(): string; setAsset(value: string): Account; getMarketId(): string; @@ -858,7 +858,7 @@ export namespace Account { export type AsObject = { id: string, owner: string, - balance: number, + balance: string, asset: string, marketId: string, type: AccountType, @@ -866,8 +866,8 @@ export namespace Account { } export class FinancialAmount extends jspb.Message { - getAmount(): number; - setAmount(value: number): FinancialAmount; + getAmount(): string; + setAmount(value: string): FinancialAmount; getAsset(): string; setAsset(value: string): FinancialAmount; @@ -883,7 +883,7 @@ export class FinancialAmount extends jspb.Message { export namespace FinancialAmount { export type AsObject = { - amount: number, + amount: string, asset: string, } } @@ -898,8 +898,8 @@ export class Transfer extends jspb.Message { setAmount(value?: FinancialAmount): Transfer; getType(): TransferType; setType(value: TransferType): Transfer; - getMinAmount(): number; - setMinAmount(value: number): Transfer; + getMinAmount(): string; + setMinAmount(value: string): Transfer; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Transfer.AsObject; @@ -916,7 +916,7 @@ export namespace Transfer { owner: string, amount?: FinancialAmount.AsObject, type: TransferType, - minAmount: number, + minAmount: string, } } @@ -929,10 +929,10 @@ export class TransferRequest extends jspb.Message { getToAccountList(): Array; setToAccountList(value: Array): TransferRequest; addToAccount(value?: Account, index?: number): Account; - getAmount(): number; - setAmount(value: number): TransferRequest; - getMinAmount(): number; - setMinAmount(value: number): TransferRequest; + getAmount(): string; + setAmount(value: string): TransferRequest; + getMinAmount(): string; + setMinAmount(value: string): TransferRequest; getAsset(): string; setAsset(value: string): TransferRequest; getReference(): string; @@ -952,8 +952,8 @@ export namespace TransferRequest { export type AsObject = { fromAccountList: Array, toAccountList: Array, - amount: number, - minAmount: number, + amount: string, + minAmount: string, asset: string, reference: string, } @@ -964,8 +964,8 @@ export class LedgerEntry extends jspb.Message { setFromAccount(value: string): LedgerEntry; getToAccount(): string; setToAccount(value: string): LedgerEntry; - getAmount(): number; - setAmount(value: number): LedgerEntry; + getAmount(): string; + setAmount(value: string): LedgerEntry; getReference(): string; setReference(value: string): LedgerEntry; getType(): string; @@ -987,7 +987,7 @@ export namespace LedgerEntry { export type AsObject = { fromAccount: string, toAccount: string, - amount: number, + amount: string, reference: string, type: string, timestamp: number, @@ -1000,8 +1000,8 @@ export class TransferBalance extends jspb.Message { clearAccount(): void; getAccount(): Account | undefined; setAccount(value?: Account): TransferBalance; - getBalance(): number; - setBalance(value: number): TransferBalance; + getBalance(): string; + setBalance(value: string): TransferBalance; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TransferBalance.AsObject; @@ -1016,7 +1016,7 @@ export class TransferBalance extends jspb.Message { export namespace TransferBalance { export type AsObject = { account?: Account.AsObject, - balance: number, + balance: string, } } @@ -1048,14 +1048,14 @@ export namespace TransferResponse { } export class MarginLevels extends jspb.Message { - getMaintenanceMargin(): number; - setMaintenanceMargin(value: number): MarginLevels; - getSearchLevel(): number; - setSearchLevel(value: number): MarginLevels; - getInitialMargin(): number; - setInitialMargin(value: number): MarginLevels; - getCollateralReleaseLevel(): number; - setCollateralReleaseLevel(value: number): MarginLevels; + getMaintenanceMargin(): string; + setMaintenanceMargin(value: string): MarginLevels; + getSearchLevel(): string; + setSearchLevel(value: string): MarginLevels; + getInitialMargin(): string; + setInitialMargin(value: string): MarginLevels; + getCollateralReleaseLevel(): string; + setCollateralReleaseLevel(value: string): MarginLevels; getPartyId(): string; setPartyId(value: string): MarginLevels; getMarketId(): string; @@ -1077,10 +1077,10 @@ export class MarginLevels extends jspb.Message { export namespace MarginLevels { export type AsObject = { - maintenanceMargin: number, - searchLevel: number, - initialMargin: number, - collateralReleaseLevel: number, + maintenanceMargin: string, + searchLevel: string, + initialMargin: string, + collateralReleaseLevel: string, partyId: string, marketId: string, asset: string, @@ -1089,28 +1089,28 @@ export namespace MarginLevels { } export class MarketData extends jspb.Message { - getMarkPrice(): number; - setMarkPrice(value: number): MarketData; - getBestBidPrice(): number; - setBestBidPrice(value: number): MarketData; + getMarkPrice(): string; + setMarkPrice(value: string): MarketData; + getBestBidPrice(): string; + setBestBidPrice(value: string): MarketData; getBestBidVolume(): number; setBestBidVolume(value: number): MarketData; - getBestOfferPrice(): number; - setBestOfferPrice(value: number): MarketData; + getBestOfferPrice(): string; + setBestOfferPrice(value: string): MarketData; getBestOfferVolume(): number; setBestOfferVolume(value: number): MarketData; - getBestStaticBidPrice(): number; - setBestStaticBidPrice(value: number): MarketData; + getBestStaticBidPrice(): string; + setBestStaticBidPrice(value: string): MarketData; getBestStaticBidVolume(): number; setBestStaticBidVolume(value: number): MarketData; - getBestStaticOfferPrice(): number; - setBestStaticOfferPrice(value: number): MarketData; + getBestStaticOfferPrice(): string; + setBestStaticOfferPrice(value: string): MarketData; getBestStaticOfferVolume(): number; setBestStaticOfferVolume(value: number): MarketData; - getMidPrice(): number; - setMidPrice(value: number): MarketData; - getStaticMidPrice(): number; - setStaticMidPrice(value: number): MarketData; + getMidPrice(): string; + setMidPrice(value: string): MarketData; + getStaticMidPrice(): string; + setStaticMidPrice(value: string): MarketData; getMarket(): string; setMarket(value: string): MarketData; getTimestamp(): number; @@ -1121,8 +1121,8 @@ export class MarketData extends jspb.Message { setAuctionEnd(value: number): MarketData; getAuctionStart(): number; setAuctionStart(value: number): MarketData; - getIndicativePrice(): number; - setIndicativePrice(value: number): MarketData; + getIndicativePrice(): string; + setIndicativePrice(value: string): MarketData; getIndicativeVolume(): number; setIndicativeVolume(value: number): MarketData; getMarketTradingMode(): markets_pb.Market.TradingMode; @@ -1158,23 +1158,23 @@ export class MarketData extends jspb.Message { export namespace MarketData { export type AsObject = { - markPrice: number, - bestBidPrice: number, + markPrice: string, + bestBidPrice: string, bestBidVolume: number, - bestOfferPrice: number, + bestOfferPrice: string, bestOfferVolume: number, - bestStaticBidPrice: number, + bestStaticBidPrice: string, bestStaticBidVolume: number, - bestStaticOfferPrice: number, + bestStaticOfferPrice: string, bestStaticOfferVolume: number, - midPrice: number, - staticMidPrice: number, + midPrice: string, + staticMidPrice: string, market: string, timestamp: number, openInterest: number, auctionEnd: number, auctionStart: number, - indicativePrice: number, + indicativePrice: string, indicativeVolume: number, marketTradingMode: markets_pb.Market.TradingMode, trigger: AuctionTrigger, @@ -1214,10 +1214,10 @@ export namespace LiquidityProviderFeeShare { } export class PriceMonitoringBounds extends jspb.Message { - getMinValidPrice(): number; - setMinValidPrice(value: number): PriceMonitoringBounds; - getMaxValidPrice(): number; - setMaxValidPrice(value: number): PriceMonitoringBounds; + getMinValidPrice(): string; + setMinValidPrice(value: string): PriceMonitoringBounds; + getMaxValidPrice(): string; + setMaxValidPrice(value: string): PriceMonitoringBounds; hasTrigger(): boolean; clearTrigger(): void; @@ -1238,8 +1238,8 @@ export class PriceMonitoringBounds extends jspb.Message { export namespace PriceMonitoringBounds { export type AsObject = { - minValidPrice: number, - maxValidPrice: number, + minValidPrice: string, + maxValidPrice: string, trigger?: markets_pb.PriceMonitoringTrigger.AsObject, referencePrice: number, } @@ -1357,8 +1357,8 @@ export class LiquidityProvision extends jspb.Message { setUpdatedAt(value: number): LiquidityProvision; getMarketId(): string; setMarketId(value: string): LiquidityProvision; - getCommitmentAmount(): number; - setCommitmentAmount(value: number): LiquidityProvision; + getCommitmentAmount(): string; + setCommitmentAmount(value: string): LiquidityProvision; getFee(): string; setFee(value: string): LiquidityProvision; clearSellsList(): void; @@ -1393,7 +1393,7 @@ export namespace LiquidityProvision { createdAt: number, updatedAt: number, marketId: string, - commitmentAmount: number, + commitmentAmount: string, fee: string, sellsList: Array, buysList: Array, @@ -1601,6 +1601,10 @@ export class Node extends jspb.Message { getDelagationsList(): Array; setDelagationsList(value: Array): Node; addDelagations(value?: Delegation, index?: number): Delegation; + getScore(): string; + setScore(value: string): Node; + getNormalisedScore(): string; + setNormalisedScore(value: string): Node; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Node.AsObject; @@ -1626,6 +1630,8 @@ export namespace Node { epochData?: EpochData.AsObject, status: NodeStatus, delagationsList: Array, + score: string, + normalisedScore: string, } } diff --git a/grpc/clients/js/generated/vega_pb.js b/grpc/clients/js/generated/vega_pb.js index e09fe2d8..071cfb42 100644 --- a/grpc/clients/js/generated/vega_pb.js +++ b/grpc/clients/js/generated/vega_pb.js @@ -1147,7 +1147,7 @@ proto.vega.Price.prototype.toObject = function(opt_includeInstance) { */ proto.vega.Price.toObject = function(includeInstance, msg) { var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) + value: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -1185,7 +1185,7 @@ proto.vega.Price.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setValue(value); break; default: @@ -1218,8 +1218,8 @@ proto.vega.Price.prototype.serializeBinary = function() { proto.vega.Price.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getValue(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); @@ -1228,20 +1228,20 @@ proto.vega.Price.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 value = 1; - * @return {number} + * optional string value = 1; + * @return {string} */ proto.vega.Price.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Price} returns this */ proto.vega.Price.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2177,7 +2177,7 @@ proto.vega.Order.toObject = function(includeInstance, msg) { marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), partyId: jspb.Message.getFieldWithDefault(msg, 3, ""), side: jspb.Message.getFieldWithDefault(msg, 4, 0), - price: jspb.Message.getFieldWithDefault(msg, 5, 0), + price: jspb.Message.getFieldWithDefault(msg, 5, ""), size: jspb.Message.getFieldWithDefault(msg, 6, 0), remaining: jspb.Message.getFieldWithDefault(msg, 7, 0), timeInForce: jspb.Message.getFieldWithDefault(msg, 8, 0), @@ -2245,7 +2245,7 @@ proto.vega.Order.deserializeBinaryFromReader = function(msg, reader) { msg.setSide(value); break; case 5: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setPrice(value); break; case 6: @@ -2363,8 +2363,8 @@ proto.vega.Order.serializeBinaryToWriter = function(message, writer) { ); } f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 5, f ); @@ -2582,20 +2582,20 @@ proto.vega.Order.prototype.setSide = function(value) { /** - * optional uint64 price = 5; - * @return {number} + * optional string price = 5; + * @return {string} */ proto.vega.Order.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Order} returns this */ proto.vega.Order.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -3318,7 +3318,7 @@ proto.vega.AuctionIndicativeState.prototype.toObject = function(opt_includeInsta proto.vega.AuctionIndicativeState.toObject = function(includeInstance, msg) { var f, obj = { marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), - indicativePrice: jspb.Message.getFieldWithDefault(msg, 2, 0), + indicativePrice: jspb.Message.getFieldWithDefault(msg, 2, ""), indicativeVolume: jspb.Message.getFieldWithDefault(msg, 3, 0), auctionStart: jspb.Message.getFieldWithDefault(msg, 4, 0), auctionEnd: jspb.Message.getFieldWithDefault(msg, 5, 0) @@ -3363,7 +3363,7 @@ proto.vega.AuctionIndicativeState.deserializeBinaryFromReader = function(msg, re msg.setMarketId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setIndicativePrice(value); break; case 3: @@ -3415,8 +3415,8 @@ proto.vega.AuctionIndicativeState.serializeBinaryToWriter = function(message, wr ); } f = message.getIndicativePrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -3464,20 +3464,20 @@ proto.vega.AuctionIndicativeState.prototype.setMarketId = function(value) { /** - * optional uint64 indicative_price = 2; - * @return {number} + * optional string indicative_price = 2; + * @return {string} */ proto.vega.AuctionIndicativeState.prototype.getIndicativePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.AuctionIndicativeState} returns this */ proto.vega.AuctionIndicativeState.prototype.setIndicativePrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3569,7 +3569,7 @@ proto.vega.Trade.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), marketId: jspb.Message.getFieldWithDefault(msg, 2, ""), - price: jspb.Message.getFieldWithDefault(msg, 3, 0), + price: jspb.Message.getFieldWithDefault(msg, 3, ""), size: jspb.Message.getFieldWithDefault(msg, 4, 0), buyer: jspb.Message.getFieldWithDefault(msg, 5, ""), seller: jspb.Message.getFieldWithDefault(msg, 6, ""), @@ -3627,7 +3627,7 @@ proto.vega.Trade.deserializeBinaryFromReader = function(msg, reader) { msg.setMarketId(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setPrice(value); break; case 4: @@ -3724,8 +3724,8 @@ proto.vega.Trade.serializeBinaryToWriter = function(message, writer) { ); } f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -3866,20 +3866,20 @@ proto.vega.Trade.prototype.setMarketId = function(value) { /** - * optional uint64 price = 3; - * @return {number} + * optional string price = 3; + * @return {string} */ proto.vega.Trade.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Trade} returns this */ proto.vega.Trade.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -4169,9 +4169,9 @@ proto.vega.Fee.prototype.toObject = function(opt_includeInstance) { */ proto.vega.Fee.toObject = function(includeInstance, msg) { var f, obj = { - makerFee: jspb.Message.getFieldWithDefault(msg, 1, 0), - infrastructureFee: jspb.Message.getFieldWithDefault(msg, 2, 0), - liquidityFee: jspb.Message.getFieldWithDefault(msg, 3, 0) + makerFee: jspb.Message.getFieldWithDefault(msg, 1, ""), + infrastructureFee: jspb.Message.getFieldWithDefault(msg, 2, ""), + liquidityFee: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -4209,15 +4209,15 @@ proto.vega.Fee.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMakerFee(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setInfrastructureFee(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setLiquidityFee(value); break; default: @@ -4250,22 +4250,22 @@ proto.vega.Fee.prototype.serializeBinary = function() { proto.vega.Fee.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMakerFee(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); } f = message.getInfrastructureFee(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); } f = message.getLiquidityFee(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -4274,56 +4274,56 @@ proto.vega.Fee.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 maker_fee = 1; - * @return {number} + * optional string maker_fee = 1; + * @return {string} */ proto.vega.Fee.prototype.getMakerFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Fee} returns this */ proto.vega.Fee.prototype.setMakerFee = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 infrastructure_fee = 2; - * @return {number} + * optional string infrastructure_fee = 2; + * @return {string} */ proto.vega.Fee.prototype.getInfrastructureFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Fee} returns this */ proto.vega.Fee.prototype.setInfrastructureFee = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 liquidity_fee = 3; - * @return {number} + * optional string liquidity_fee = 3; + * @return {string} */ proto.vega.Fee.prototype.getLiquidityFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Fee} returns this */ proto.vega.Fee.prototype.setLiquidityFee = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -4521,10 +4521,10 @@ proto.vega.Candle.toObject = function(includeInstance, msg) { var f, obj = { timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), datetime: jspb.Message.getFieldWithDefault(msg, 2, ""), - high: jspb.Message.getFieldWithDefault(msg, 3, 0), - low: jspb.Message.getFieldWithDefault(msg, 4, 0), - open: jspb.Message.getFieldWithDefault(msg, 5, 0), - close: jspb.Message.getFieldWithDefault(msg, 6, 0), + high: jspb.Message.getFieldWithDefault(msg, 3, ""), + low: jspb.Message.getFieldWithDefault(msg, 4, ""), + open: jspb.Message.getFieldWithDefault(msg, 5, ""), + close: jspb.Message.getFieldWithDefault(msg, 6, ""), volume: jspb.Message.getFieldWithDefault(msg, 7, 0), interval: jspb.Message.getFieldWithDefault(msg, 8, 0) }; @@ -4572,19 +4572,19 @@ proto.vega.Candle.deserializeBinaryFromReader = function(msg, reader) { msg.setDatetime(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setHigh(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setLow(value); break; case 5: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setOpen(value); break; case 6: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setClose(value); break; case 7: @@ -4639,29 +4639,29 @@ proto.vega.Candle.serializeBinaryToWriter = function(message, writer) { ); } f = message.getHigh(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); } f = message.getLow(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 4, f ); } f = message.getOpen(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 5, f ); } f = message.getClose(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 6, f ); @@ -4720,74 +4720,74 @@ proto.vega.Candle.prototype.setDatetime = function(value) { /** - * optional uint64 high = 3; - * @return {number} + * optional string high = 3; + * @return {string} */ proto.vega.Candle.prototype.getHigh = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Candle} returns this */ proto.vega.Candle.prototype.setHigh = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint64 low = 4; - * @return {number} + * optional string low = 4; + * @return {string} */ proto.vega.Candle.prototype.getLow = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Candle} returns this */ proto.vega.Candle.prototype.setLow = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional uint64 open = 5; - * @return {number} + * optional string open = 5; + * @return {string} */ proto.vega.Candle.prototype.getOpen = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Candle} returns this */ proto.vega.Candle.prototype.setOpen = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional uint64 close = 6; - * @return {number} + * optional string close = 6; + * @return {string} */ proto.vega.Candle.prototype.getClose = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Candle} returns this */ proto.vega.Candle.prototype.setClose = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -4859,7 +4859,7 @@ proto.vega.PriceLevel.prototype.toObject = function(opt_includeInstance) { */ proto.vega.PriceLevel.toObject = function(includeInstance, msg) { var f, obj = { - price: jspb.Message.getFieldWithDefault(msg, 1, 0), + price: jspb.Message.getFieldWithDefault(msg, 1, ""), numberOfOrders: jspb.Message.getFieldWithDefault(msg, 2, 0), volume: jspb.Message.getFieldWithDefault(msg, 3, 0) }; @@ -4899,7 +4899,7 @@ proto.vega.PriceLevel.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setPrice(value); break; case 2: @@ -4940,8 +4940,8 @@ proto.vega.PriceLevel.prototype.serializeBinary = function() { proto.vega.PriceLevel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); @@ -4964,20 +4964,20 @@ proto.vega.PriceLevel.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 price = 1; - * @return {number} + * optional string price = 1; + * @return {string} */ proto.vega.PriceLevel.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.PriceLevel} returns this */ proto.vega.PriceLevel.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5598,9 +5598,9 @@ proto.vega.Position.toObject = function(includeInstance, msg) { marketId: jspb.Message.getFieldWithDefault(msg, 1, ""), partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), openVolume: jspb.Message.getFieldWithDefault(msg, 3, 0), - realisedPnl: jspb.Message.getFieldWithDefault(msg, 4, 0), - unrealisedPnl: jspb.Message.getFieldWithDefault(msg, 5, 0), - averageEntryPrice: jspb.Message.getFieldWithDefault(msg, 6, 0), + realisedPnl: jspb.Message.getFieldWithDefault(msg, 4, ""), + unrealisedPnl: jspb.Message.getFieldWithDefault(msg, 5, ""), + averageEntryPrice: jspb.Message.getFieldWithDefault(msg, 6, ""), updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 0) }; @@ -5651,15 +5651,15 @@ proto.vega.Position.deserializeBinaryFromReader = function(msg, reader) { msg.setOpenVolume(value); break; case 4: - var value = /** @type {number} */ (reader.readInt64()); + var value = /** @type {string} */ (reader.readString()); msg.setRealisedPnl(value); break; case 5: - var value = /** @type {number} */ (reader.readInt64()); + var value = /** @type {string} */ (reader.readString()); msg.setUnrealisedPnl(value); break; case 6: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAverageEntryPrice(value); break; case 7: @@ -5717,22 +5717,22 @@ proto.vega.Position.serializeBinaryToWriter = function(message, writer) { ); } f = message.getRealisedPnl(); - if (f !== 0) { - writer.writeInt64( + if (f.length > 0) { + writer.writeString( 4, f ); } f = message.getUnrealisedPnl(); - if (f !== 0) { - writer.writeInt64( + if (f.length > 0) { + writer.writeString( 5, f ); } f = message.getAverageEntryPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 6, f ); @@ -5802,56 +5802,56 @@ proto.vega.Position.prototype.setOpenVolume = function(value) { /** - * optional int64 realised_pnl = 4; - * @return {number} + * optional string realised_pnl = 4; + * @return {string} */ proto.vega.Position.prototype.getRealisedPnl = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Position} returns this */ proto.vega.Position.prototype.setRealisedPnl = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional int64 unrealised_pnl = 5; - * @return {number} + * optional string unrealised_pnl = 5; + * @return {string} */ proto.vega.Position.prototype.getUnrealisedPnl = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Position} returns this */ proto.vega.Position.prototype.setUnrealisedPnl = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional uint64 average_entry_price = 6; - * @return {number} + * optional string average_entry_price = 6; + * @return {string} */ proto.vega.Position.prototype.getAverageEntryPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Position} returns this */ proto.vega.Position.prototype.setAverageEntryPrice = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -5906,7 +5906,7 @@ proto.vega.PositionTrade.prototype.toObject = function(opt_includeInstance) { proto.vega.PositionTrade.toObject = function(includeInstance, msg) { var f, obj = { volume: jspb.Message.getFieldWithDefault(msg, 1, 0), - price: jspb.Message.getFieldWithDefault(msg, 2, 0) + price: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -5948,7 +5948,7 @@ proto.vega.PositionTrade.deserializeBinaryFromReader = function(msg, reader) { msg.setVolume(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setPrice(value); break; default: @@ -5988,8 +5988,8 @@ proto.vega.PositionTrade.serializeBinaryToWriter = function(message, writer) { ); } f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -6016,20 +6016,20 @@ proto.vega.PositionTrade.prototype.setVolume = function(value) { /** - * optional uint64 price = 2; - * @return {number} + * optional string price = 2; + * @return {string} */ proto.vega.PositionTrade.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.PositionTrade} returns this */ proto.vega.PositionTrade.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -6417,7 +6417,7 @@ proto.vega.Withdrawal.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), partyId: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), asset: jspb.Message.getFieldWithDefault(msg, 4, ""), status: jspb.Message.getFieldWithDefault(msg, 5, 0), ref: jspb.Message.getFieldWithDefault(msg, 6, ""), @@ -6471,7 +6471,7 @@ proto.vega.Withdrawal.deserializeBinaryFromReader = function(msg, reader) { msg.setPartyId(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 4: @@ -6551,8 +6551,8 @@ proto.vega.Withdrawal.serializeBinaryToWriter = function(message, writer) { ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -6664,20 +6664,20 @@ proto.vega.Withdrawal.prototype.setPartyId = function(value) { /** - * optional uint64 amount = 3; - * @return {number} + * optional string amount = 3; + * @return {string} */ proto.vega.Withdrawal.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Withdrawal} returns this */ proto.vega.Withdrawal.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -7184,7 +7184,7 @@ proto.vega.Account.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), owner: jspb.Message.getFieldWithDefault(msg, 2, ""), - balance: jspb.Message.getFieldWithDefault(msg, 3, 0), + balance: jspb.Message.getFieldWithDefault(msg, 3, ""), asset: jspb.Message.getFieldWithDefault(msg, 4, ""), marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), type: jspb.Message.getFieldWithDefault(msg, 6, 0) @@ -7233,7 +7233,7 @@ proto.vega.Account.deserializeBinaryFromReader = function(msg, reader) { msg.setOwner(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBalance(value); break; case 4: @@ -7292,8 +7292,8 @@ proto.vega.Account.serializeBinaryToWriter = function(message, writer) { ); } f = message.getBalance(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -7359,20 +7359,20 @@ proto.vega.Account.prototype.setOwner = function(value) { /** - * optional uint64 balance = 3; - * @return {number} + * optional string balance = 3; + * @return {string} */ proto.vega.Account.prototype.getBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Account} returns this */ proto.vega.Account.prototype.setBalance = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -7462,7 +7462,7 @@ proto.vega.FinancialAmount.prototype.toObject = function(opt_includeInstance) { */ proto.vega.FinancialAmount.toObject = function(includeInstance, msg) { var f, obj = { - amount: jspb.Message.getFieldWithDefault(msg, 1, 0), + amount: jspb.Message.getFieldWithDefault(msg, 1, ""), asset: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -7501,7 +7501,7 @@ proto.vega.FinancialAmount.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 2: @@ -7538,8 +7538,8 @@ proto.vega.FinancialAmount.prototype.serializeBinary = function() { proto.vega.FinancialAmount.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); @@ -7555,20 +7555,20 @@ proto.vega.FinancialAmount.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 amount = 1; - * @return {number} + * optional string amount = 1; + * @return {string} */ proto.vega.FinancialAmount.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.FinancialAmount} returns this */ proto.vega.FinancialAmount.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7625,7 +7625,7 @@ proto.vega.Transfer.toObject = function(includeInstance, msg) { owner: jspb.Message.getFieldWithDefault(msg, 1, ""), amount: (f = msg.getAmount()) && proto.vega.FinancialAmount.toObject(includeInstance, f), type: jspb.Message.getFieldWithDefault(msg, 3, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0) + minAmount: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -7676,7 +7676,7 @@ proto.vega.Transfer.deserializeBinaryFromReader = function(msg, reader) { msg.setType(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMinAmount(value); break; default: @@ -7731,8 +7731,8 @@ proto.vega.Transfer.serializeBinaryToWriter = function(message, writer) { ); } f = message.getMinAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 4, f ); @@ -7814,20 +7814,20 @@ proto.vega.Transfer.prototype.setType = function(value) { /** - * optional uint64 min_amount = 4; - * @return {number} + * optional string min_amount = 4; + * @return {string} */ proto.vega.Transfer.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.Transfer} returns this */ proto.vega.Transfer.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -7874,8 +7874,8 @@ proto.vega.TransferRequest.toObject = function(includeInstance, msg) { proto.vega.Account.toObject, includeInstance), toAccountList: jspb.Message.toObjectList(msg.getToAccountList(), proto.vega.Account.toObject, includeInstance), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + minAmount: jspb.Message.getFieldWithDefault(msg, 4, ""), asset: jspb.Message.getFieldWithDefault(msg, 5, ""), reference: jspb.Message.getFieldWithDefault(msg, 6, "") }; @@ -7925,11 +7925,11 @@ proto.vega.TransferRequest.deserializeBinaryFromReader = function(msg, reader) { msg.addToAccount(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMinAmount(value); break; case 5: @@ -7986,15 +7986,15 @@ proto.vega.TransferRequest.serializeBinaryToWriter = function(message, writer) { ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); } f = message.getMinAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 4, f ); @@ -8093,38 +8093,38 @@ proto.vega.TransferRequest.prototype.clearToAccountList = function() { /** - * optional uint64 amount = 3; - * @return {number} + * optional string amount = 3; + * @return {string} */ proto.vega.TransferRequest.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.TransferRequest} returns this */ proto.vega.TransferRequest.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint64 min_amount = 4; - * @return {number} + * optional string min_amount = 4; + * @return {string} */ proto.vega.TransferRequest.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.TransferRequest} returns this */ proto.vega.TransferRequest.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -8198,7 +8198,7 @@ proto.vega.LedgerEntry.toObject = function(includeInstance, msg) { var f, obj = { fromAccount: jspb.Message.getFieldWithDefault(msg, 1, ""), toAccount: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + amount: jspb.Message.getFieldWithDefault(msg, 3, ""), reference: jspb.Message.getFieldWithDefault(msg, 4, ""), type: jspb.Message.getFieldWithDefault(msg, 5, ""), timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0) @@ -8247,7 +8247,7 @@ proto.vega.LedgerEntry.deserializeBinaryFromReader = function(msg, reader) { msg.setToAccount(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 4: @@ -8306,8 +8306,8 @@ proto.vega.LedgerEntry.serializeBinaryToWriter = function(message, writer) { ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); @@ -8373,20 +8373,20 @@ proto.vega.LedgerEntry.prototype.setToAccount = function(value) { /** - * optional uint64 amount = 3; - * @return {number} + * optional string amount = 3; + * @return {string} */ proto.vega.LedgerEntry.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.LedgerEntry} returns this */ proto.vega.LedgerEntry.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -8477,7 +8477,7 @@ proto.vega.TransferBalance.prototype.toObject = function(opt_includeInstance) { proto.vega.TransferBalance.toObject = function(includeInstance, msg) { var f, obj = { account: (f = msg.getAccount()) && proto.vega.Account.toObject(includeInstance, f), - balance: jspb.Message.getFieldWithDefault(msg, 2, 0) + balance: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -8520,7 +8520,7 @@ proto.vega.TransferBalance.deserializeBinaryFromReader = function(msg, reader) { msg.setAccount(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBalance(value); break; default: @@ -8561,8 +8561,8 @@ proto.vega.TransferBalance.serializeBinaryToWriter = function(message, writer) { ); } f = message.getBalance(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -8608,20 +8608,20 @@ proto.vega.TransferBalance.prototype.hasAccount = function() { /** - * optional uint64 balance = 2; - * @return {number} + * optional string balance = 2; + * @return {string} */ proto.vega.TransferBalance.prototype.getBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.TransferBalance} returns this */ proto.vega.TransferBalance.prototype.setBalance = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8870,10 +8870,10 @@ proto.vega.MarginLevels.prototype.toObject = function(opt_includeInstance) { */ proto.vega.MarginLevels.toObject = function(includeInstance, msg) { var f, obj = { - maintenanceMargin: jspb.Message.getFieldWithDefault(msg, 1, 0), - searchLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), - initialMargin: jspb.Message.getFieldWithDefault(msg, 3, 0), - collateralReleaseLevel: jspb.Message.getFieldWithDefault(msg, 4, 0), + maintenanceMargin: jspb.Message.getFieldWithDefault(msg, 1, ""), + searchLevel: jspb.Message.getFieldWithDefault(msg, 2, ""), + initialMargin: jspb.Message.getFieldWithDefault(msg, 3, ""), + collateralReleaseLevel: jspb.Message.getFieldWithDefault(msg, 4, ""), partyId: jspb.Message.getFieldWithDefault(msg, 5, ""), marketId: jspb.Message.getFieldWithDefault(msg, 6, ""), asset: jspb.Message.getFieldWithDefault(msg, 7, ""), @@ -8915,19 +8915,19 @@ proto.vega.MarginLevels.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMaintenanceMargin(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setSearchLevel(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setInitialMargin(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setCollateralReleaseLevel(value); break; case 5: @@ -8976,29 +8976,29 @@ proto.vega.MarginLevels.prototype.serializeBinary = function() { proto.vega.MarginLevels.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMaintenanceMargin(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); } f = message.getSearchLevel(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); } f = message.getInitialMargin(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 3, f ); } f = message.getCollateralReleaseLevel(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 4, f ); @@ -9035,74 +9035,74 @@ proto.vega.MarginLevels.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 maintenance_margin = 1; - * @return {number} + * optional string maintenance_margin = 1; + * @return {string} */ proto.vega.MarginLevels.prototype.getMaintenanceMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarginLevels} returns this */ proto.vega.MarginLevels.prototype.setMaintenanceMargin = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 search_level = 2; - * @return {number} + * optional string search_level = 2; + * @return {string} */ proto.vega.MarginLevels.prototype.getSearchLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarginLevels} returns this */ proto.vega.MarginLevels.prototype.setSearchLevel = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 initial_margin = 3; - * @return {number} + * optional string initial_margin = 3; + * @return {string} */ proto.vega.MarginLevels.prototype.getInitialMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarginLevels} returns this */ proto.vega.MarginLevels.prototype.setInitialMargin = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint64 collateral_release_level = 4; - * @return {number} + * optional string collateral_release_level = 4; + * @return {string} */ proto.vega.MarginLevels.prototype.getCollateralReleaseLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarginLevels} returns this */ proto.vega.MarginLevels.prototype.setCollateralReleaseLevel = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -9217,23 +9217,23 @@ proto.vega.MarketData.prototype.toObject = function(opt_includeInstance) { */ proto.vega.MarketData.toObject = function(includeInstance, msg) { var f, obj = { - markPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), - bestBidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), + markPrice: jspb.Message.getFieldWithDefault(msg, 1, ""), + bestBidPrice: jspb.Message.getFieldWithDefault(msg, 2, ""), bestBidVolume: jspb.Message.getFieldWithDefault(msg, 3, 0), - bestOfferPrice: jspb.Message.getFieldWithDefault(msg, 4, 0), + bestOfferPrice: jspb.Message.getFieldWithDefault(msg, 4, ""), bestOfferVolume: jspb.Message.getFieldWithDefault(msg, 5, 0), - bestStaticBidPrice: jspb.Message.getFieldWithDefault(msg, 6, 0), + bestStaticBidPrice: jspb.Message.getFieldWithDefault(msg, 6, ""), bestStaticBidVolume: jspb.Message.getFieldWithDefault(msg, 7, 0), - bestStaticOfferPrice: jspb.Message.getFieldWithDefault(msg, 8, 0), + bestStaticOfferPrice: jspb.Message.getFieldWithDefault(msg, 8, ""), bestStaticOfferVolume: jspb.Message.getFieldWithDefault(msg, 9, 0), - midPrice: jspb.Message.getFieldWithDefault(msg, 10, 0), - staticMidPrice: jspb.Message.getFieldWithDefault(msg, 11, 0), + midPrice: jspb.Message.getFieldWithDefault(msg, 10, ""), + staticMidPrice: jspb.Message.getFieldWithDefault(msg, 11, ""), market: jspb.Message.getFieldWithDefault(msg, 12, ""), timestamp: jspb.Message.getFieldWithDefault(msg, 13, 0), openInterest: jspb.Message.getFieldWithDefault(msg, 14, 0), auctionEnd: jspb.Message.getFieldWithDefault(msg, 15, 0), auctionStart: jspb.Message.getFieldWithDefault(msg, 16, 0), - indicativePrice: jspb.Message.getFieldWithDefault(msg, 17, 0), + indicativePrice: jspb.Message.getFieldWithDefault(msg, 17, ""), indicativeVolume: jspb.Message.getFieldWithDefault(msg, 18, 0), marketTradingMode: jspb.Message.getFieldWithDefault(msg, 19, 0), trigger: jspb.Message.getFieldWithDefault(msg, 20, 0), @@ -9282,11 +9282,11 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMarkPrice(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBestBidPrice(value); break; case 3: @@ -9294,7 +9294,7 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { msg.setBestBidVolume(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBestOfferPrice(value); break; case 5: @@ -9302,7 +9302,7 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { msg.setBestOfferVolume(value); break; case 6: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBestStaticBidPrice(value); break; case 7: @@ -9310,7 +9310,7 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { msg.setBestStaticBidVolume(value); break; case 8: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setBestStaticOfferPrice(value); break; case 9: @@ -9318,11 +9318,11 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { msg.setBestStaticOfferVolume(value); break; case 10: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMidPrice(value); break; case 11: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setStaticMidPrice(value); break; case 12: @@ -9346,7 +9346,7 @@ proto.vega.MarketData.deserializeBinaryFromReader = function(msg, reader) { msg.setAuctionStart(value); break; case 17: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setIndicativePrice(value); break; case 18: @@ -9417,15 +9417,15 @@ proto.vega.MarketData.prototype.serializeBinary = function() { proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMarkPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); } f = message.getBestBidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -9438,8 +9438,8 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { ); } f = message.getBestOfferPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 4, f ); @@ -9452,8 +9452,8 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { ); } f = message.getBestStaticBidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 6, f ); @@ -9466,8 +9466,8 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { ); } f = message.getBestStaticOfferPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 8, f ); @@ -9480,15 +9480,15 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { ); } f = message.getMidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 10, f ); } f = message.getStaticMidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 11, f ); @@ -9529,8 +9529,8 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { ); } f = message.getIndicativePrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 17, f ); @@ -9604,38 +9604,38 @@ proto.vega.MarketData.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 mark_price = 1; - * @return {number} + * optional string mark_price = 1; + * @return {string} */ proto.vega.MarketData.prototype.getMarkPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setMarkPrice = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 best_bid_price = 2; - * @return {number} + * optional string best_bid_price = 2; + * @return {string} */ proto.vega.MarketData.prototype.getBestBidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setBestBidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9658,20 +9658,20 @@ proto.vega.MarketData.prototype.setBestBidVolume = function(value) { /** - * optional uint64 best_offer_price = 4; - * @return {number} + * optional string best_offer_price = 4; + * @return {string} */ proto.vega.MarketData.prototype.getBestOfferPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setBestOfferPrice = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -9694,20 +9694,20 @@ proto.vega.MarketData.prototype.setBestOfferVolume = function(value) { /** - * optional uint64 best_static_bid_price = 6; - * @return {number} + * optional string best_static_bid_price = 6; + * @return {string} */ proto.vega.MarketData.prototype.getBestStaticBidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setBestStaticBidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -9730,20 +9730,20 @@ proto.vega.MarketData.prototype.setBestStaticBidVolume = function(value) { /** - * optional uint64 best_static_offer_price = 8; - * @return {number} + * optional string best_static_offer_price = 8; + * @return {string} */ proto.vega.MarketData.prototype.getBestStaticOfferPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setBestStaticOfferPrice = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -9766,38 +9766,38 @@ proto.vega.MarketData.prototype.setBestStaticOfferVolume = function(value) { /** - * optional uint64 mid_price = 10; - * @return {number} + * optional string mid_price = 10; + * @return {string} */ proto.vega.MarketData.prototype.getMidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setMidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * optional uint64 static_mid_price = 11; - * @return {number} + * optional string static_mid_price = 11; + * @return {string} */ proto.vega.MarketData.prototype.getStaticMidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setStaticMidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3StringField(this, 11, value); }; @@ -9892,20 +9892,20 @@ proto.vega.MarketData.prototype.setAuctionStart = function(value) { /** - * optional uint64 indicative_price = 17; - * @return {number} + * optional string indicative_price = 17; + * @return {string} */ proto.vega.MarketData.prototype.getIndicativePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.MarketData} returns this */ proto.vega.MarketData.prototype.setIndicativePrice = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); + return jspb.Message.setProto3StringField(this, 17, value); }; @@ -10333,8 +10333,8 @@ proto.vega.PriceMonitoringBounds.prototype.toObject = function(opt_includeInstan */ proto.vega.PriceMonitoringBounds.toObject = function(includeInstance, msg) { var f, obj = { - minValidPrice: jspb.Message.getFieldWithDefault(msg, 1, 0), - maxValidPrice: jspb.Message.getFieldWithDefault(msg, 2, 0), + minValidPrice: jspb.Message.getFieldWithDefault(msg, 1, ""), + maxValidPrice: jspb.Message.getFieldWithDefault(msg, 2, ""), trigger: (f = msg.getTrigger()) && markets_pb.PriceMonitoringTrigger.toObject(includeInstance, f), referencePrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; @@ -10374,11 +10374,11 @@ proto.vega.PriceMonitoringBounds.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMinValidPrice(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setMaxValidPrice(value); break; case 3: @@ -10420,15 +10420,15 @@ proto.vega.PriceMonitoringBounds.prototype.serializeBinary = function() { proto.vega.PriceMonitoringBounds.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMinValidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 1, f ); } f = message.getMaxValidPrice(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 2, f ); @@ -10452,38 +10452,38 @@ proto.vega.PriceMonitoringBounds.serializeBinaryToWriter = function(message, wri /** - * optional uint64 min_valid_price = 1; - * @return {number} + * optional string min_valid_price = 1; + * @return {string} */ proto.vega.PriceMonitoringBounds.prototype.getMinValidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.PriceMonitoringBounds} returns this */ proto.vega.PriceMonitoringBounds.prototype.setMinValidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 max_valid_price = 2; - * @return {number} + * optional string max_valid_price = 2; + * @return {string} */ proto.vega.PriceMonitoringBounds.prototype.getMaxValidPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.PriceMonitoringBounds} returns this */ proto.vega.PriceMonitoringBounds.prototype.setMaxValidPrice = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -11307,7 +11307,7 @@ proto.vega.LiquidityProvision.toObject = function(includeInstance, msg) { createdAt: jspb.Message.getFieldWithDefault(msg, 3, 0), updatedAt: jspb.Message.getFieldWithDefault(msg, 4, 0), marketId: jspb.Message.getFieldWithDefault(msg, 5, ""), - commitmentAmount: jspb.Message.getFieldWithDefault(msg, 6, 0), + commitmentAmount: jspb.Message.getFieldWithDefault(msg, 6, ""), fee: jspb.Message.getFieldWithDefault(msg, 7, ""), sellsList: jspb.Message.toObjectList(msg.getSellsList(), proto.vega.LiquidityOrderReference.toObject, includeInstance), @@ -11373,7 +11373,7 @@ proto.vega.LiquidityProvision.deserializeBinaryFromReader = function(msg, reader msg.setMarketId(value); break; case 6: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readString()); msg.setCommitmentAmount(value); break; case 7: @@ -11467,8 +11467,8 @@ proto.vega.LiquidityProvision.serializeBinaryToWriter = function(message, writer ); } f = message.getCommitmentAmount(); - if (f !== 0) { - writer.writeUint64( + if (f.length > 0) { + writer.writeString( 6, f ); @@ -11624,20 +11624,20 @@ proto.vega.LiquidityProvision.prototype.setMarketId = function(value) { /** - * optional uint64 commitment_amount = 6; - * @return {number} + * optional string commitment_amount = 6; + * @return {string} */ proto.vega.LiquidityProvision.prototype.getCommitmentAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.vega.LiquidityProvision} returns this */ proto.vega.LiquidityProvision.prototype.setCommitmentAmount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -13061,7 +13061,9 @@ proto.vega.Node.toObject = function(includeInstance, msg) { epochData: (f = msg.getEpochData()) && proto.vega.EpochData.toObject(includeInstance, f), status: jspb.Message.getFieldWithDefault(msg, 11, 0), delagationsList: jspb.Message.toObjectList(msg.getDelagationsList(), - proto.vega.Delegation.toObject, includeInstance) + proto.vega.Delegation.toObject, includeInstance), + score: jspb.Message.getFieldWithDefault(msg, 13, ""), + normalisedScore: jspb.Message.getFieldWithDefault(msg, 14, "") }; if (includeInstance) { @@ -13148,6 +13150,14 @@ proto.vega.Node.deserializeBinaryFromReader = function(msg, reader) { reader.readMessage(value,proto.vega.Delegation.deserializeBinaryFromReader); msg.addDelagations(value); break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setScore(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setNormalisedScore(value); + break; default: reader.skipField(); break; @@ -13263,6 +13273,20 @@ proto.vega.Node.serializeBinaryToWriter = function(message, writer) { proto.vega.Delegation.serializeBinaryToWriter ); } + f = message.getScore(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getNormalisedScore(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } }; @@ -13521,6 +13545,42 @@ proto.vega.Node.prototype.clearDelagationsList = function() { }; +/** + * optional string score = 13; + * @return {string} + */ +proto.vega.Node.prototype.getScore = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setScore = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + + +/** + * optional string normalised_score = 14; + * @return {string} + */ +proto.vega.Node.prototype.getNormalisedScore = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.vega.Node} returns this + */ +proto.vega.Node.prototype.setNormalisedScore = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + diff --git a/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py b/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py index 7beb9372..56649c6c 100644 --- a/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/chain_events_pb2.py @@ -19,7 +19,7 @@ syntax='proto3', serialized_options=b'\n\024io.vegaprotocol.vegaZ\037code.vegaprotocol.io/vega/proto', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x12\x63hain_events.proto\x12\x04vega\"l\n\x13\x42uiltinAssetDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"o\n\x16\x42uiltinAssetWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"\x96\x01\n\x11\x42uiltinAssetEvent\x12\x36\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x19.vega.BuiltinAssetDepositH\x00R\x07\x64\x65posit\x12?\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x1c.vega.BuiltinAssetWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"4\n\x0e\x45RC20AssetList\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"6\n\x10\x45RC20AssetDelist\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"\xaa\x01\n\x0c\x45RC20Deposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17source_ethereum_address\x18\x02 \x01(\tR\x15sourceEthereumAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\"\x96\x01\n\x0f\x45RC20Withdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17target_ethereum_address\x18\x02 \x01(\tR\x15targetEthereumAddress\x12\'\n\x0freference_nonce\x18\x03 \x01(\tR\x0ereferenceNonce\"\xa3\x02\n\nERC20Event\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12\x36\n\nasset_list\x18\xe9\x07 \x01(\x0b\x32\x14.vega.ERC20AssetListH\x00R\tassetList\x12<\n\x0c\x61sset_delist\x18\xea\x07 \x01(\x0b\x32\x16.vega.ERC20AssetDelistH\x00R\x0b\x61ssetDelist\x12/\n\x07\x64\x65posit\x18\xeb\x07 \x01(\x0b\x32\x12.vega.ERC20DepositH\x00R\x07\x64\x65posit\x12\x38\n\nwithdrawal\x18\xec\x07 \x01(\x0b\x32\x15.vega.ERC20WithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"\x86\x01\n\nBTCDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12,\n\x12source_btc_address\x18\x02 \x01(\tR\x10sourceBtcAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\"\xb2\x01\n\rBTCWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12&\n\x0fsource_party_id\x18\x02 \x01(\tR\rsourcePartyId\x12,\n\x12target_btc_address\x18\x03 \x01(\tR\x10targetBtcAddress\x12\'\n\x0freference_nonce\x18\x04 \x01(\tR\x0ereferenceNonce\"\xa7\x01\n\x08\x42TCEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12-\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x10.vega.BTCDepositH\x00R\x07\x64\x65posit\x12\x36\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x13.vega.BTCWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"+\n\x0f\x45thereumAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"*\n\x0e\x42itcoinAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x9f\x01\n\nIdentifier\x12\x42\n\x10\x65thereum_address\x18\x01 \x01(\x0b\x32\x15.vega.EthereumAddressH\x00R\x0f\x65thereumAddress\x12?\n\x0f\x62itcoin_address\x18\x02 \x01(\x0b\x32\x14.vega.BitcoinAddressH\x00R\x0e\x62itcoinAddressB\x0c\n\nidentifier\"0\n\x0c\x41\x64\x64Validator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"3\n\x0fRemoveValidator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"\x8a\x01\n\x0eValidatorEvent\x12\x1b\n\tsource_id\x18\x01 \x01(\tR\x08sourceId\x12\'\n\x03\x61\x64\x64\x18\xe9\x07 \x01(\x0b\x32\x12.vega.AddValidatorH\x00R\x03\x61\x64\x64\x12(\n\x02rm\x18\xea\x07 \x01(\x0b\x32\x15.vega.RemoveValidatorH\x00R\x02rmB\x08\n\x06\x61\x63tion\"\xc2\x01\n\x0cStakingEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12@\n\x0fstake_deposited\x18\xe9\x07 \x01(\x0b\x32\x14.vega.StakeDepositedH\x00R\x0estakeDeposited\x12:\n\rstake_removed\x18\xea\x07 \x01(\x0b\x32\x12.vega.StakeRemovedH\x00R\x0cstakeRemovedB\x08\n\x06\x61\x63tion\"\x9a\x01\n\x0eStakeDeposited\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTime\"\x98\x01\n\x0cStakeRemoved\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTimeB7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' + serialized_pb=b'\n\x12\x63hain_events.proto\x12\x04vega\"l\n\x13\x42uiltinAssetDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\"o\n\x16\x42uiltinAssetWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\"\x96\x01\n\x11\x42uiltinAssetEvent\x12\x36\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x19.vega.BuiltinAssetDepositH\x00R\x07\x64\x65posit\x12?\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x1c.vega.BuiltinAssetWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"4\n\x0e\x45RC20AssetList\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"6\n\x10\x45RC20AssetDelist\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\"\xaa\x01\n\x0c\x45RC20Deposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17source_ethereum_address\x18\x02 \x01(\tR\x15sourceEthereumAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\"\x96\x01\n\x0f\x45RC20Withdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12\x36\n\x17target_ethereum_address\x18\x02 \x01(\tR\x15targetEthereumAddress\x12\'\n\x0freference_nonce\x18\x03 \x01(\tR\x0ereferenceNonce\"\xa3\x02\n\nERC20Event\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12\x36\n\nasset_list\x18\xe9\x07 \x01(\x0b\x32\x14.vega.ERC20AssetListH\x00R\tassetList\x12<\n\x0c\x61sset_delist\x18\xea\x07 \x01(\x0b\x32\x16.vega.ERC20AssetDelistH\x00R\x0b\x61ssetDelist\x12/\n\x07\x64\x65posit\x18\xeb\x07 \x01(\x0b\x32\x12.vega.ERC20DepositH\x00R\x07\x64\x65posit\x12\x38\n\nwithdrawal\x18\xec\x07 \x01(\x0b\x32\x15.vega.ERC20WithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"\x86\x01\n\nBTCDeposit\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12,\n\x12source_btc_address\x18\x02 \x01(\tR\x10sourceBtcAddress\x12&\n\x0ftarget_party_id\x18\x03 \x01(\tR\rtargetPartyId\"\xb2\x01\n\rBTCWithdrawal\x12\"\n\rvega_asset_id\x18\x01 \x01(\tR\x0bvegaAssetId\x12&\n\x0fsource_party_id\x18\x02 \x01(\tR\rsourcePartyId\x12,\n\x12target_btc_address\x18\x03 \x01(\tR\x10targetBtcAddress\x12\'\n\x0freference_nonce\x18\x04 \x01(\tR\x0ereferenceNonce\"\xa7\x01\n\x08\x42TCEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12-\n\x07\x64\x65posit\x18\xe9\x07 \x01(\x0b\x32\x10.vega.BTCDepositH\x00R\x07\x64\x65posit\x12\x36\n\nwithdrawal\x18\xea\x07 \x01(\x0b\x32\x13.vega.BTCWithdrawalH\x00R\nwithdrawalB\x08\n\x06\x61\x63tion\"+\n\x0f\x45thereumAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"*\n\x0e\x42itcoinAddress\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x9f\x01\n\nIdentifier\x12\x42\n\x10\x65thereum_address\x18\x01 \x01(\x0b\x32\x15.vega.EthereumAddressH\x00R\x0f\x65thereumAddress\x12?\n\x0f\x62itcoin_address\x18\x02 \x01(\x0b\x32\x14.vega.BitcoinAddressH\x00R\x0e\x62itcoinAddressB\x0c\n\nidentifier\"0\n\x0c\x41\x64\x64Validator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"3\n\x0fRemoveValidator\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x10.vega.IdentifierR\x02id\"\x8a\x01\n\x0eValidatorEvent\x12\x1b\n\tsource_id\x18\x01 \x01(\tR\x08sourceId\x12\'\n\x03\x61\x64\x64\x18\xe9\x07 \x01(\x0b\x32\x12.vega.AddValidatorH\x00R\x03\x61\x64\x64\x12(\n\x02rm\x18\xea\x07 \x01(\x0b\x32\x15.vega.RemoveValidatorH\x00R\x02rmB\x08\n\x06\x61\x63tion\"\xc2\x01\n\x0cStakingEvent\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12@\n\x0fstake_deposited\x18\xe9\x07 \x01(\x0b\x32\x14.vega.StakeDepositedH\x00R\x0estakeDeposited\x12:\n\rstake_removed\x18\xea\x07 \x01(\x0b\x32\x12.vega.StakeRemovedH\x00R\x0cstakeRemovedB\x08\n\x06\x61\x63tion\"\x9a\x01\n\x0eStakeDeposited\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTime\"\x98\x01\n\x0cStakeRemoved\x12)\n\x10\x65thereum_address\x18\x01 \x01(\tR\x0f\x65thereumAddress\x12&\n\x0fvega_public_key\x18\x02 \x01(\tR\rvegaPublicKey\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nblock_time\x18\x04 \x01(\x03R\tblockTimeB7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' ) @@ -95,8 +95,8 @@ serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.BuiltinAssetWithdrawal.amount', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), diff --git a/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py b/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py index 7798f32f..99afedbc 100644 --- a/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/commands/v1/commands_pb2.py @@ -23,7 +23,7 @@ syntax='proto3', serialized_options=b'\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1a\x63ommands/v1/commands.proto\x12\x10vega.commands.v1\x1a\x10governance.proto\x1a\nvega.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xde\x02\n\x0fOrderSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\x12\x1a\n\x04size\x18\x03 \x01(\x04\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x04size\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12;\n\rtime_in_force\x18\x05 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12\x1d\n\nexpires_at\x18\x06 \x01(\x03R\texpiresAt\x12$\n\x04type\x18\x07 \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1c\n\treference\x18\x08 \x01(\tR\treference\x12\x34\n\x0cpegged_order\x18\t \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\"K\n\x11OrderCancellation\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"\x83\x03\n\x0eOrderAmendment\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12!\n\x05price\x18\x03 \x01(\x0b\x32\x0b.vega.PriceR\x05price\x12\x1d\n\nsize_delta\x18\x04 \x01(\x03R\tsizeDelta\x12.\n\nexpires_at\x18\x05 \x01(\x0b\x32\x0f.vega.TimestampR\texpiresAt\x12;\n\rtime_in_force\x18\x06 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12@\n\rpegged_offset\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x0cpeggedOffset\x12@\n\x10pegged_reference\x18\x08 \x01(\x0e\x32\x15.vega.PeggedReferenceR\x0fpeggedReference\"\xf6\x01\n\x1cLiquidityProvisionSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x02 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x03 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x05 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"g\n\x12WithdrawSubmission\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\x12#\n\x03\x65xt\x18\x03 \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"e\n\x12ProposalSubmission\x12\x1c\n\treference\x18\x01 \x01(\tR\treference\x12\x31\n\x05terms\x18\x02 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\"a\n\x0eVoteSubmission\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12&\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueR\x05value\"M\n\x12\x44\x65legateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\"\xf9\x01\n\x14UndelegateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\x04R\x06\x61mount\x12\x45\n\x06method\x18\x03 \x01(\x0e\x32-.vega.commands.v1.UndelegateSubmission.MethodR\x06method\"a\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0e\n\nMETHOD_NOW\x10\x01\x12\x1a\n\x16METHOD_AT_END_OF_EPOCH\x10\x02\x12\x13\n\x0fMETHOD_IN_ANGER\x10\x03\"%\n\x0fRestoreSnapshot\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61taBO\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' + serialized_pb=b'\n\x1a\x63ommands/v1/commands.proto\x12\x10vega.commands.v1\x1a\x10governance.proto\x1a\nvega.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\"\xde\x02\n\x0fOrderSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12\x14\n\x05price\x18\x02 \x01(\tR\x05price\x12\x1a\n\x04size\x18\x03 \x01(\x04\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x04size\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12;\n\rtime_in_force\x18\x05 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12\x1d\n\nexpires_at\x18\x06 \x01(\x03R\texpiresAt\x12$\n\x04type\x18\x07 \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1c\n\treference\x18\x08 \x01(\tR\treference\x12\x34\n\x0cpegged_order\x18\t \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\"K\n\x11OrderCancellation\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\"\x83\x03\n\x0eOrderAmendment\x12!\n\x08order_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07orderId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12!\n\x05price\x18\x03 \x01(\x0b\x32\x0b.vega.PriceR\x05price\x12\x1d\n\nsize_delta\x18\x04 \x01(\x03R\tsizeDelta\x12.\n\nexpires_at\x18\x05 \x01(\x0b\x32\x0f.vega.TimestampR\texpiresAt\x12;\n\rtime_in_force\x18\x06 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12@\n\rpegged_offset\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x0cpeggedOffset\x12@\n\x10pegged_reference\x18\x08 \x01(\x0e\x32\x15.vega.PeggedReferenceR\x0fpeggedReference\"\xf6\x01\n\x1cLiquidityProvisionSubmission\x12#\n\tmarket_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x02 \x01(\tR\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x03 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x05 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"g\n\x12WithdrawSubmission\x12\x16\n\x06\x61mount\x18\x01 \x01(\tR\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\x12#\n\x03\x65xt\x18\x03 \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"e\n\x12ProposalSubmission\x12\x1c\n\treference\x18\x01 \x01(\tR\treference\x12\x31\n\x05terms\x18\x02 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\"a\n\x0eVoteSubmission\x12\'\n\x0bproposal_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12&\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueR\x05value\"M\n\x12\x44\x65legateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\"\xf9\x01\n\x14UndelegateSubmission\x12\x1f\n\x07node_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06nodeId\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\x12\x45\n\x06method\x18\x03 \x01(\x0e\x32-.vega.commands.v1.UndelegateSubmission.MethodR\x06method\"a\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0e\n\nMETHOD_NOW\x10\x01\x12\x1a\n\x16METHOD_AT_END_OF_EPOCH\x10\x02\x12\x13\n\x0fMETHOD_IN_ANGER\x10\x03\"%\n\x0fRestoreSnapshot\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61taBO\n io.vegaprotocol.vega.commands.v1Z+code.vegaprotocol.io/vega/proto/commands/v1b\x06proto3' , dependencies=[governance__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,]) @@ -82,8 +82,8 @@ serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='price', full_name='vega.commands.v1.OrderSubmission.price', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='price', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -290,8 +290,8 @@ serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='commitment_amount', full_name='vega.commands.v1.LiquidityProvisionSubmission.commitment_amount', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='commitmentAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -350,8 +350,8 @@ fields=[ _descriptor.FieldDescriptor( name='amount', full_name='vega.commands.v1.WithdrawSubmission.amount', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -481,8 +481,8 @@ serialized_options=b'\342\337\037\002X\001', json_name='nodeId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.commands.v1.DelegateSubmission.amount', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -520,8 +520,8 @@ serialized_options=b'\342\337\037\002X\001', json_name='nodeId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.commands.v1.UndelegateSubmission.amount', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py index 84e4147e..f71a9ba1 100644 --- a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py @@ -24,7 +24,7 @@ syntax='proto3', serialized_options=b'\n\037io.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x18\x63oreapi/v1/coreapi.proto\x12\x0fvega.coreapi.v1\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\rmarkets.proto\x1a\nvega.proto\x1a\x16\x65vents/v1/events.proto\"{\n\x07\x41\x63\x63ount\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x12\n\x04type\x18\x06 \x01(\tR\x04type\"C\n\x13ListAccountsRequest\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\"L\n\x14ListAccountsResponse\x12\x34\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x18.vega.coreapi.v1.AccountR\x08\x61\x63\x63ounts\")\n\x11ListAssetsRequest\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\"9\n\x12ListAssetsResponse\x12#\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x0b.vega.AssetR\x06\x61ssets\"R\n\x1cListNetworkParametersRequest\x12\x32\n\x15network_parameter_key\x18\x01 \x01(\tR\x13networkParameterKey\"f\n\x1dListNetworkParametersResponse\x12\x45\n\x12network_parameters\x18\x01 \x03(\x0b\x32\x16.vega.NetworkParameterR\x11networkParameters\"\x14\n\x12ListPartiesRequest\"<\n\x13ListPartiesResponse\x12%\n\x07parties\x18\x01 \x03(\x0b\x32\x0b.vega.PartyR\x07parties\"\x17\n\x15ListValidatorsRequest\"Y\n\x16ListValidatorsResponse\x12?\n\nvalidators\x18\x01 \x03(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateR\nvalidators\",\n\x12ListMarketsRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"=\n\x13ListMarketsResponse\x12&\n\x07markets\x18\x01 \x03(\x0b\x32\x0c.vega.MarketR\x07markets\"N\n\x14ListProposalsRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\"E\n\x15ListProposalsResponse\x12,\n\tproposals\x18\x01 \x03(\x0b\x32\x0e.vega.ProposalR\tproposals\"0\n\x16ListMarketsDataRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"N\n\x17ListMarketsDataResponse\x12\x33\n\x0cmarkets_data\x18\x01 \x03(\x0b\x32\x10.vega.MarketDataR\x0bmarketsData\"D\n\x10ListVotesRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x14\n\x05party\x18\x02 \x01(\tR\x05party\"5\n\x11ListVotesResponse\x12 \n\x05votes\x18\x01 \x03(\x0b\x32\n.vega.VoteR\x05votes2\xed\x06\n\x0e\x43oreApiService\x12[\n\x0cListAccounts\x12$.vega.coreapi.v1.ListAccountsRequest\x1a%.vega.coreapi.v1.ListAccountsResponse\x12U\n\nListAssets\x12\".vega.coreapi.v1.ListAssetsRequest\x1a#.vega.coreapi.v1.ListAssetsResponse\x12v\n\x15ListNetworkParameters\x12-.vega.coreapi.v1.ListNetworkParametersRequest\x1a..vega.coreapi.v1.ListNetworkParametersResponse\x12X\n\x0bListParties\x12#.vega.coreapi.v1.ListPartiesRequest\x1a$.vega.coreapi.v1.ListPartiesResponse\x12\x61\n\x0eListValidators\x12&.vega.coreapi.v1.ListValidatorsRequest\x1a\'.vega.coreapi.v1.ListValidatorsResponse\x12X\n\x0bListMarkets\x12#.vega.coreapi.v1.ListMarketsRequest\x1a$.vega.coreapi.v1.ListMarketsResponse\x12^\n\rListProposals\x12%.vega.coreapi.v1.ListProposalsRequest\x1a&.vega.coreapi.v1.ListProposalsResponse\x12\x64\n\x0fListMarketsData\x12\'.vega.coreapi.v1.ListMarketsDataRequest\x1a(.vega.coreapi.v1.ListMarketsDataResponse\x12R\n\tListVotes\x12!.vega.coreapi.v1.ListVotesRequest\x1a\".vega.coreapi.v1.ListVotesResponseBM\n\x1fio.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1b\x06proto3' + serialized_pb=b'\n\x18\x63oreapi/v1/coreapi.proto\x12\x0fvega.coreapi.v1\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\rmarkets.proto\x1a\nvega.proto\x1a\x16\x65vents/v1/events.proto\"{\n\x07\x41\x63\x63ount\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x12\n\x04type\x18\x06 \x01(\tR\x04type\"C\n\x13ListAccountsRequest\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x16\n\x06market\x18\x02 \x01(\tR\x06market\"L\n\x14ListAccountsResponse\x12\x34\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x18.vega.coreapi.v1.AccountR\x08\x61\x63\x63ounts\")\n\x11ListAssetsRequest\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\"9\n\x12ListAssetsResponse\x12#\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x0b.vega.AssetR\x06\x61ssets\"R\n\x1cListNetworkParametersRequest\x12\x32\n\x15network_parameter_key\x18\x01 \x01(\tR\x13networkParameterKey\"f\n\x1dListNetworkParametersResponse\x12\x45\n\x12network_parameters\x18\x01 \x03(\x0b\x32\x16.vega.NetworkParameterR\x11networkParameters\"\x14\n\x12ListPartiesRequest\"<\n\x13ListPartiesResponse\x12%\n\x07parties\x18\x01 \x03(\x0b\x32\x0b.vega.PartyR\x07parties\"\x17\n\x15ListValidatorsRequest\"Y\n\x16ListValidatorsResponse\x12?\n\nvalidators\x18\x01 \x03(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateR\nvalidators\",\n\x12ListMarketsRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"=\n\x13ListMarketsResponse\x12&\n\x07markets\x18\x01 \x03(\x0b\x32\x0c.vega.MarketR\x07markets\"N\n\x14ListProposalsRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\"E\n\x15ListProposalsResponse\x12,\n\tproposals\x18\x01 \x03(\x0b\x32\x0e.vega.ProposalR\tproposals\"0\n\x16ListMarketsDataRequest\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\"N\n\x17ListMarketsDataResponse\x12\x33\n\x0cmarkets_data\x18\x01 \x03(\x0b\x32\x10.vega.MarketDataR\x0bmarketsData\"D\n\x10ListVotesRequest\x12\x1a\n\x08proposal\x18\x01 \x01(\tR\x08proposal\x12\x14\n\x05party\x18\x02 \x01(\tR\x05party\"5\n\x11ListVotesResponse\x12 \n\x05votes\x18\x01 \x03(\x0b\x32\n.vega.VoteR\x05votes\"\x9f\x01\n\nPartyStake\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x36\n\x17\x63urrent_stake_available\x18\x02 \x01(\tR\x15\x63urrentStakeAvailable\x12\x43\n\x0estake_linkings\x18\x03 \x03(\x0b\x32\x1c.vega.events.v1.StakeLinkingR\rstakeLinkings\"/\n\x17ListPartiesStakeRequest\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\"\\\n\x18ListPartiesStakeResponse\x12@\n\rparties_stake\x18\x01 \x03(\x0b\x32\x1b.vega.coreapi.v1.PartyStakeR\x0cpartiesStake2\xd6\x07\n\x0e\x43oreApiService\x12[\n\x0cListAccounts\x12$.vega.coreapi.v1.ListAccountsRequest\x1a%.vega.coreapi.v1.ListAccountsResponse\x12U\n\nListAssets\x12\".vega.coreapi.v1.ListAssetsRequest\x1a#.vega.coreapi.v1.ListAssetsResponse\x12v\n\x15ListNetworkParameters\x12-.vega.coreapi.v1.ListNetworkParametersRequest\x1a..vega.coreapi.v1.ListNetworkParametersResponse\x12X\n\x0bListParties\x12#.vega.coreapi.v1.ListPartiesRequest\x1a$.vega.coreapi.v1.ListPartiesResponse\x12\x61\n\x0eListValidators\x12&.vega.coreapi.v1.ListValidatorsRequest\x1a\'.vega.coreapi.v1.ListValidatorsResponse\x12X\n\x0bListMarkets\x12#.vega.coreapi.v1.ListMarketsRequest\x1a$.vega.coreapi.v1.ListMarketsResponse\x12^\n\rListProposals\x12%.vega.coreapi.v1.ListProposalsRequest\x1a&.vega.coreapi.v1.ListProposalsResponse\x12\x64\n\x0fListMarketsData\x12\'.vega.coreapi.v1.ListMarketsDataRequest\x1a(.vega.coreapi.v1.ListMarketsDataResponse\x12R\n\tListVotes\x12!.vega.coreapi.v1.ListVotesRequest\x1a\".vega.coreapi.v1.ListVotesResponse\x12g\n\x10ListPartiesStake\x12(.vega.coreapi.v1.ListPartiesStakeRequest\x1a).vega.coreapi.v1.ListPartiesStakeResponseBM\n\x1fio.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1b\x06proto3' , dependencies=[assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,events_dot_v1_dot_events__pb2.DESCRIPTOR,]) @@ -673,6 +673,116 @@ serialized_end=1403, ) + +_PARTYSTAKE = _descriptor.Descriptor( + name='PartyStake', + full_name='vega.coreapi.v1.PartyStake', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.coreapi.v1.PartyStake.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='current_stake_available', full_name='vega.coreapi.v1.PartyStake.current_stake_available', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='currentStakeAvailable', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='stake_linkings', full_name='vega.coreapi.v1.PartyStake.stake_linkings', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='stakeLinkings', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1406, + serialized_end=1565, +) + + +_LISTPARTIESSTAKEREQUEST = _descriptor.Descriptor( + name='ListPartiesStakeRequest', + full_name='vega.coreapi.v1.ListPartiesStakeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='party', full_name='vega.coreapi.v1.ListPartiesStakeRequest.party', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='party', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1567, + serialized_end=1614, +) + + +_LISTPARTIESSTAKERESPONSE = _descriptor.Descriptor( + name='ListPartiesStakeResponse', + full_name='vega.coreapi.v1.ListPartiesStakeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parties_stake', full_name='vega.coreapi.v1.ListPartiesStakeResponse.parties_stake', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='partiesStake', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1616, + serialized_end=1708, +) + _LISTACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = _ACCOUNT _LISTASSETSRESPONSE.fields_by_name['assets'].message_type = assets__pb2._ASSET _LISTNETWORKPARAMETERSRESPONSE.fields_by_name['network_parameters'].message_type = vega__pb2._NETWORKPARAMETER @@ -682,6 +792,8 @@ _LISTPROPOSALSRESPONSE.fields_by_name['proposals'].message_type = governance__pb2._PROPOSAL _LISTMARKETSDATARESPONSE.fields_by_name['markets_data'].message_type = vega__pb2._MARKETDATA _LISTVOTESRESPONSE.fields_by_name['votes'].message_type = governance__pb2._VOTE +_PARTYSTAKE.fields_by_name['stake_linkings'].message_type = events_dot_v1_dot_events__pb2._STAKELINKING +_LISTPARTIESSTAKERESPONSE.fields_by_name['parties_stake'].message_type = _PARTYSTAKE DESCRIPTOR.message_types_by_name['Account'] = _ACCOUNT DESCRIPTOR.message_types_by_name['ListAccountsRequest'] = _LISTACCOUNTSREQUEST DESCRIPTOR.message_types_by_name['ListAccountsResponse'] = _LISTACCOUNTSRESPONSE @@ -701,6 +813,9 @@ DESCRIPTOR.message_types_by_name['ListMarketsDataResponse'] = _LISTMARKETSDATARESPONSE DESCRIPTOR.message_types_by_name['ListVotesRequest'] = _LISTVOTESREQUEST DESCRIPTOR.message_types_by_name['ListVotesResponse'] = _LISTVOTESRESPONSE +DESCRIPTOR.message_types_by_name['PartyStake'] = _PARTYSTAKE +DESCRIPTOR.message_types_by_name['ListPartiesStakeRequest'] = _LISTPARTIESSTAKEREQUEST +DESCRIPTOR.message_types_by_name['ListPartiesStakeResponse'] = _LISTPARTIESSTAKERESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) Account = _reflection.GeneratedProtocolMessageType('Account', (_message.Message,), { @@ -836,6 +951,27 @@ }) _sym_db.RegisterMessage(ListVotesResponse) +PartyStake = _reflection.GeneratedProtocolMessageType('PartyStake', (_message.Message,), { + 'DESCRIPTOR' : _PARTYSTAKE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.PartyStake) + }) +_sym_db.RegisterMessage(PartyStake) + +ListPartiesStakeRequest = _reflection.GeneratedProtocolMessageType('ListPartiesStakeRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTIESSTAKEREQUEST, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeRequest) + }) +_sym_db.RegisterMessage(ListPartiesStakeRequest) + +ListPartiesStakeResponse = _reflection.GeneratedProtocolMessageType('ListPartiesStakeResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTIESSTAKERESPONSE, + '__module__' : 'coreapi.v1.coreapi_pb2' + # @@protoc_insertion_point(class_scope:vega.coreapi.v1.ListPartiesStakeResponse) + }) +_sym_db.RegisterMessage(ListPartiesStakeResponse) + DESCRIPTOR._options = None @@ -846,8 +982,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1406, - serialized_end=2283, + serialized_start=1711, + serialized_end=2693, methods=[ _descriptor.MethodDescriptor( name='ListAccounts', @@ -939,6 +1075,16 @@ serialized_options=None, create_key=_descriptor._internal_create_key, ), + _descriptor.MethodDescriptor( + name='ListPartiesStake', + full_name='vega.coreapi.v1.CoreApiService.ListPartiesStake', + index=9, + containing_service=None, + input_type=_LISTPARTIESSTAKEREQUEST, + output_type=_LISTPARTIESSTAKERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), ]) _sym_db.RegisterServiceDescriptor(_COREAPISERVICE) diff --git a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py index 2c8b56f5..adb2835d 100644 --- a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2_grpc.py @@ -59,6 +59,11 @@ def __init__(self, channel): request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesRequest.SerializeToString, response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.FromString, ) + self.ListPartiesStake = channel.unary_unary( + '/vega.coreapi.v1.CoreApiService/ListPartiesStake', + request_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeRequest.SerializeToString, + response_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeResponse.FromString, + ) class CoreApiServiceServicer(object): @@ -118,6 +123,12 @@ def ListVotes(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ListPartiesStake(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_CoreApiServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -166,6 +177,11 @@ def add_CoreApiServiceServicer_to_server(servicer, server): request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesRequest.FromString, response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.SerializeToString, ), + 'ListPartiesStake': grpc.unary_unary_rpc_method_handler( + servicer.ListPartiesStake, + request_deserializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeRequest.FromString, + response_serializer=coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'vega.coreapi.v1.CoreApiService', rpc_method_handlers) @@ -328,3 +344,20 @@ def ListVotes(request, coreapi_dot_v1_dot_coreapi__pb2.ListVotesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListPartiesStake(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vega.coreapi.v1.CoreApiService/ListPartiesStake', + coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeRequest.SerializeToString, + coreapi_dot_v1_dot_coreapi__pb2.ListPartiesStakeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py b/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py index b1d54019..aa91e3ea 100644 --- a/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/events/v1/events_pb2.py @@ -28,7 +28,7 @@ syntax='proto3', serialized_options=b'\n\036io.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x16\x65vents/v1/events.proto\x12\x0evega.events.v1\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\nvega.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\"\xaa\x03\n\x0cStakeLinking\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x35\n\x04type\x18\x02 \x01(\x0e\x32!.vega.events.v1.StakeLinking.TypeR\x04type\x12\x0e\n\x02ts\x18\x03 \x01(\x03R\x02ts\x12\x14\n\x05party\x18\x04 \x01(\tR\x05party\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12;\n\x06status\x18\x06 \x01(\x0e\x32#.vega.events.v1.StakeLinking.StatusR\x06status\x12!\n\x0c\x66inalized_at\x18\x07 \x01(\x03R\x0b\x66inalizedAt\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\"<\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTYPE_LINK\x10\x01\x12\x0f\n\x0bTYPE_UNLINK\x10\x02\"^\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_PENDING\x10\x01\x12\x13\n\x0fSTATUS_ACCEPTED\x10\x02\x12\x13\n\x0fSTATUS_REJECTED\x10\x03\"g\n\x0f\x43heckpointEvent\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x1d\n\nblock_hash\x18\x02 \x01(\tR\tblockHash\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\"\xc9\x01\n\x11RewardPayoutEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\x14\n\x05\x61sset\x18\x03 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12\x35\n\x17percent_of_total_reward\x18\x05 \x01(\tR\x14percentOfTotalReward\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"\x9f\x01\n\x13ValidatorScoreEvent\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\'\n\x0fvalidator_score\x18\x03 \x01(\tR\x0evalidatorScore\x12)\n\x10normalised_score\x18\x04 \x01(\tR\x0fnormalisedScore\"|\n\x16\x44\x65legationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc9\x01\n\x1dPendingDelegationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12+\n\x11\x64\x65legation_amount\x18\x03 \x01(\x04R\x10\x64\x65legationAmount\x12/\n\x13undelegation_amount\x18\x04 \x01(\x04R\x12undelegationAmount\x12\x1b\n\tepoch_seq\x18\x05 \x01(\tR\x08\x65pochSeq\"D\n\x0bMarketEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload\"\xa6\x05\n\x0cTxErrorEvent\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x17\n\x07\x65rr_msg\x18\x02 \x01(\tR\x06\x65rrMsg\x12N\n\x10order_submission\x18\x65 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12K\n\x0forder_amendment\x18\x66 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12T\n\x12order_cancellation\x18g \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12\x42\n\x08proposal\x18h \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x08proposal\x12K\n\x0fvote_submission\x18i \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12v\n\x1eliquidity_provision_submission\x18j \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12W\n\x13withdraw_submission\x18k \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmissionB\r\n\x0btransaction\"*\n\nTimeUpdate\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"y\n\nEpochEvent\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime\x12\x1f\n\x0b\x65xpire_time\x18\x03 \x01(\x03R\nexpireTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x03R\x07\x65ndTime\"I\n\x11TransferResponses\x12\x34\n\tresponses\x18\x01 \x03(\x0b\x32\x16.vega.TransferResponseR\tresponses\"\x88\x01\n\x12PositionResolution\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\ndistressed\x18\x02 \x01(\x03R\ndistressed\x12\x16\n\x06\x63losed\x18\x03 \x01(\x03R\x06\x63losed\x12\x1d\n\nmark_price\x18\x04 \x01(\x04R\tmarkPrice\"c\n\x11LossSocialization\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\";\n\x0fTradeSettlement\x12\x12\n\x04size\x18\x01 \x01(\x03R\x04size\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xac\x01\n\x0eSettlePosition\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12L\n\x11trade_settlements\x18\x04 \x03(\x0b\x32\x1f.vega.events.v1.TradeSettlementR\x10tradeSettlements\"x\n\x10SettleDistressed\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06margin\x18\x03 \x01(\x04R\x06margin\x12\x14\n\x05price\x18\x04 \x01(\x04R\x05price\"0\n\nMarketTick\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04time\x18\x02 \x01(\x03R\x04time\"\x85\x02\n\x0c\x41uctionEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\'\n\x0fopening_auction\x18\x02 \x01(\x08R\x0eopeningAuction\x12\x14\n\x05leave\x18\x03 \x01(\x08R\x05leave\x12\x14\n\x05start\x18\x04 \x01(\x03R\x05start\x12\x10\n\x03\x65nd\x18\x05 \x01(\x03R\x03\x65nd\x12.\n\x07trigger\x18\x06 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x07 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\"\xb1\x01\n\x0fValidatorUpdate\x12 \n\x0cvega_pub_key\x18\x01 \x01(\tR\nvegaPubKey\x12)\n\x10\x65thereum_address\x18\x02 \x01(\tR\x0f\x65thereumAddress\x12\x1c\n\ntm_pub_key\x18\x03 \x01(\tR\x08tmPubKey\x12\x19\n\x08info_url\x18\x04 \x01(\tR\x07infoUrl\x12\x18\n\x07\x63ountry\x18\x05 \x01(\tR\x07\x63ountry\"\x9d\x12\n\x08\x42usEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05\x62lock\x18\x02 \x01(\tR\x05\x62lock\x12\x30\n\x04type\x18\x03 \x01(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12=\n\x0btime_update\x18\x65 \x01(\x0b\x32\x1a.vega.events.v1.TimeUpdateH\x00R\ntimeUpdate\x12R\n\x12transfer_responses\x18\x66 \x01(\x0b\x32!.vega.events.v1.TransferResponsesH\x00R\x11transferResponses\x12U\n\x13position_resolution\x18g \x01(\x0b\x32\".vega.events.v1.PositionResolutionH\x00R\x12positionResolution\x12#\n\x05order\x18h \x01(\x0b\x32\x0b.vega.OrderH\x00R\x05order\x12)\n\x07\x61\x63\x63ount\x18i \x01(\x0b\x32\r.vega.AccountH\x00R\x07\x61\x63\x63ount\x12#\n\x05party\x18j \x01(\x0b\x32\x0b.vega.PartyH\x00R\x05party\x12#\n\x05trade\x18k \x01(\x0b\x32\x0b.vega.TradeH\x00R\x05trade\x12\x39\n\rmargin_levels\x18l \x01(\x0b\x32\x12.vega.MarginLevelsH\x00R\x0cmarginLevels\x12,\n\x08proposal\x18m \x01(\x0b\x32\x0e.vega.ProposalH\x00R\x08proposal\x12 \n\x04vote\x18n \x01(\x0b\x32\n.vega.VoteH\x00R\x04vote\x12\x33\n\x0bmarket_data\x18o \x01(\x0b\x32\x10.vega.MarketDataH\x00R\nmarketData\x12H\n\x0enode_signature\x18p \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12R\n\x12loss_socialization\x18q \x01(\x0b\x32!.vega.events.v1.LossSocializationH\x00R\x11lossSocialization\x12I\n\x0fsettle_position\x18r \x01(\x0b\x32\x1e.vega.events.v1.SettlePositionH\x00R\x0esettlePosition\x12O\n\x11settle_distressed\x18s \x01(\x0b\x32 .vega.events.v1.SettleDistressedH\x00R\x10settleDistressed\x12\x35\n\x0emarket_created\x18t \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketCreated\x12#\n\x05\x61sset\x18u \x01(\x0b\x32\x0b.vega.AssetH\x00R\x05\x61sset\x12=\n\x0bmarket_tick\x18v \x01(\x0b\x32\x1a.vega.events.v1.MarketTickH\x00R\nmarketTick\x12\x32\n\nwithdrawal\x18w \x01(\x0b\x32\x10.vega.WithdrawalH\x00R\nwithdrawal\x12)\n\x07\x64\x65posit\x18x \x01(\x0b\x32\r.vega.DepositH\x00R\x07\x64\x65posit\x12\x38\n\x07\x61uction\x18y \x01(\x0b\x32\x1c.vega.events.v1.AuctionEventH\x00R\x07\x61uction\x12\x33\n\x0brisk_factor\x18z \x01(\x0b\x32\x10.vega.RiskFactorH\x00R\nriskFactor\x12\x45\n\x11network_parameter\x18{ \x01(\x0b\x32\x16.vega.NetworkParameterH\x00R\x10networkParameter\x12K\n\x13liquidity_provision\x18| \x01(\x0b\x32\x18.vega.LiquidityProvisionH\x00R\x12liquidityProvision\x12\x35\n\x0emarket_updated\x18} \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketUpdated\x12\x39\n\x0boracle_spec\x18~ \x01(\x0b\x32\x16.oracles.v1.OracleSpecH\x00R\noracleSpec\x12\x39\n\x0boracle_data\x18\x7f \x01(\x0b\x32\x16.oracles.v1.OracleDataH\x00R\noracleData\x12X\n\x12\x64\x65legation_balance\x18\x81\x01 \x01(\x0b\x32&.vega.events.v1.DelegationBalanceEventH\x00R\x11\x64\x65legationBalance\x12O\n\x0fvalidator_score\x18\x82\x01 \x01(\x0b\x32#.vega.events.v1.ValidatorScoreEventH\x00R\x0evalidatorScore\x12>\n\x0b\x65poch_event\x18\x83\x01 \x01(\x0b\x32\x1a.vega.events.v1.EpochEventH\x00R\nepochEvent\x12M\n\x10validator_update\x18\x84\x01 \x01(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateH\x00R\x0fvalidatorUpdate\x12\x44\n\rstake_linking\x18\x85\x01 \x01(\x0b\x32\x1c.vega.events.v1.StakeLinkingH\x00R\x0cstakeLinking\x12I\n\rreward_payout\x18\x86\x01 \x01(\x0b\x32!.vega.events.v1.RewardPayoutEventH\x00R\x0crewardPayout\x12\x42\n\ncheckpoint\x18\x87\x01 \x01(\x0b\x32\x1f.vega.events.v1.CheckpointEventH\x00R\ncheckpoint\x12\x36\n\x06market\x18\xe9\x07 \x01(\x0b\x32\x1b.vega.events.v1.MarketEventH\x00R\x06market\x12\x41\n\x0ctx_err_event\x18\xd1\x0f \x01(\x0b\x32\x1c.vega.events.v1.TxErrorEventH\x00R\ntxErrEventB\x07\n\x05\x65vent*\xe3\t\n\x0c\x42usEventType\x12\x1e\n\x1a\x42US_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x42US_EVENT_TYPE_ALL\x10\x01\x12\x1e\n\x1a\x42US_EVENT_TYPE_TIME_UPDATE\x10\x02\x12%\n!BUS_EVENT_TYPE_TRANSFER_RESPONSES\x10\x03\x12&\n\"BUS_EVENT_TYPE_POSITION_RESOLUTION\x10\x04\x12\x18\n\x14\x42US_EVENT_TYPE_ORDER\x10\x05\x12\x1a\n\x16\x42US_EVENT_TYPE_ACCOUNT\x10\x06\x12\x18\n\x14\x42US_EVENT_TYPE_PARTY\x10\x07\x12\x18\n\x14\x42US_EVENT_TYPE_TRADE\x10\x08\x12 \n\x1c\x42US_EVENT_TYPE_MARGIN_LEVELS\x10\t\x12\x1b\n\x17\x42US_EVENT_TYPE_PROPOSAL\x10\n\x12\x17\n\x13\x42US_EVENT_TYPE_VOTE\x10\x0b\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_DATA\x10\x0c\x12!\n\x1d\x42US_EVENT_TYPE_NODE_SIGNATURE\x10\r\x12%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\x10\x0e\x12\"\n\x1e\x42US_EVENT_TYPE_SETTLE_POSITION\x10\x0f\x12$\n BUS_EVENT_TYPE_SETTLE_DISTRESSED\x10\x10\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_CREATED\x10\x11\x12\x18\n\x14\x42US_EVENT_TYPE_ASSET\x10\x12\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_TICK\x10\x13\x12\x1d\n\x19\x42US_EVENT_TYPE_WITHDRAWAL\x10\x14\x12\x1a\n\x16\x42US_EVENT_TYPE_DEPOSIT\x10\x15\x12\x1a\n\x16\x42US_EVENT_TYPE_AUCTION\x10\x16\x12\x1e\n\x1a\x42US_EVENT_TYPE_RISK_FACTOR\x10\x17\x12$\n BUS_EVENT_TYPE_NETWORK_PARAMETER\x10\x18\x12&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION\x10\x19\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_UPDATED\x10\x1a\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_SPEC\x10\x1b\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_DATA\x10\x1c\x12%\n!BUS_EVENT_TYPE_DELEGATION_BALANCE\x10\x1d\x12\"\n\x1e\x42US_EVENT_TYPE_VALIDATOR_SCORE\x10\x1e\x12\x1f\n\x1b\x42US_EVENT_TYPE_EPOCH_UPDATE\x10\x1f\x12#\n\x1f\x42US_EVENT_TYPE_VALIDATOR_UPDATE\x10 \x12 \n\x1c\x42US_EVENT_TYPE_STAKE_LINKING\x10!\x12&\n\"BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT\x10\"\x12\x1d\n\x19\x42US_EVENT_TYPE_CHECKPOINT\x10#\x12\x19\n\x15\x42US_EVENT_TYPE_MARKET\x10\x65\x12\x1c\n\x17\x42US_EVENT_TYPE_TX_ERROR\x10\xc9\x01\x42K\n\x1eio.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1b\x06proto3' + serialized_pb=b'\n\x16\x65vents/v1/events.proto\x12\x0evega.events.v1\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\x1a\x10governance.proto\x1a\nvega.proto\x1a\x15oracles/v1/spec.proto\x1a\x15oracles/v1/data.proto\x1a\x1a\x63ommands/v1/commands.proto\x1a$commands/v1/validator_commands.proto\"\xaa\x03\n\x0cStakeLinking\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x35\n\x04type\x18\x02 \x01(\x0e\x32!.vega.events.v1.StakeLinking.TypeR\x04type\x12\x0e\n\x02ts\x18\x03 \x01(\x03R\x02ts\x12\x14\n\x05party\x18\x04 \x01(\tR\x05party\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12;\n\x06status\x18\x06 \x01(\x0e\x32#.vega.events.v1.StakeLinking.StatusR\x06status\x12!\n\x0c\x66inalized_at\x18\x07 \x01(\x03R\x0b\x66inalizedAt\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\"<\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTYPE_LINK\x10\x01\x12\x0f\n\x0bTYPE_UNLINK\x10\x02\"^\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_PENDING\x10\x01\x12\x13\n\x0fSTATUS_ACCEPTED\x10\x02\x12\x13\n\x0fSTATUS_REJECTED\x10\x03\"g\n\x0f\x43heckpointEvent\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x1d\n\nblock_hash\x18\x02 \x01(\tR\tblockHash\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\"\xc9\x01\n\x11RewardPayoutEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\x14\n\x05\x61sset\x18\x03 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12\x35\n\x17percent_of_total_reward\x18\x05 \x01(\tR\x14percentOfTotalReward\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"\x9f\x01\n\x13ValidatorScoreEvent\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x1b\n\tepoch_seq\x18\x02 \x01(\tR\x08\x65pochSeq\x12\'\n\x0fvalidator_score\x18\x03 \x01(\tR\x0evalidatorScore\x12)\n\x10normalised_score\x18\x04 \x01(\tR\x0fnormalisedScore\"|\n\x16\x44\x65legationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc9\x01\n\x1dPendingDelegationBalanceEvent\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12+\n\x11\x64\x65legation_amount\x18\x03 \x01(\x04R\x10\x64\x65legationAmount\x12/\n\x13undelegation_amount\x18\x04 \x01(\x04R\x12undelegationAmount\x12\x1b\n\tepoch_seq\x18\x05 \x01(\tR\x08\x65pochSeq\"D\n\x0bMarketEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload\"\xae\x07\n\x0cTxErrorEvent\x12\x19\n\x08party_id\x18\x01 \x01(\tR\x07partyId\x12\x17\n\x07\x65rr_msg\x18\x02 \x01(\tR\x06\x65rrMsg\x12N\n\x10order_submission\x18\x65 \x01(\x0b\x32!.vega.commands.v1.OrderSubmissionH\x00R\x0forderSubmission\x12K\n\x0forder_amendment\x18\x66 \x01(\x0b\x32 .vega.commands.v1.OrderAmendmentH\x00R\x0eorderAmendment\x12T\n\x12order_cancellation\x18g \x01(\x0b\x32#.vega.commands.v1.OrderCancellationH\x00R\x11orderCancellation\x12\x42\n\x08proposal\x18h \x01(\x0b\x32$.vega.commands.v1.ProposalSubmissionH\x00R\x08proposal\x12K\n\x0fvote_submission\x18i \x01(\x0b\x32 .vega.commands.v1.VoteSubmissionH\x00R\x0evoteSubmission\x12v\n\x1eliquidity_provision_submission\x18j \x01(\x0b\x32..vega.commands.v1.LiquidityProvisionSubmissionH\x00R\x1cliquidityProvisionSubmission\x12W\n\x13withdraw_submission\x18k \x01(\x0b\x32$.vega.commands.v1.WithdrawSubmissionH\x00R\x12withdrawSubmission\x12W\n\x13\x64\x65legate_submission\x18l \x01(\x0b\x32$.vega.commands.v1.DelegateSubmissionH\x00R\x12\x64\x65legateSubmission\x12]\n\x15undelegate_submission\x18m \x01(\x0b\x32&.vega.commands.v1.UndelegateSubmissionH\x00R\x14undelegateSubmission\x12N\n\x10restore_snapshot\x18n \x01(\x0b\x32!.vega.commands.v1.RestoreSnapshotH\x00R\x0frestoreSnapshotB\r\n\x0btransaction\"*\n\nTimeUpdate\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\"y\n\nEpochEvent\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime\x12\x1f\n\x0b\x65xpire_time\x18\x03 \x01(\x03R\nexpireTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x03R\x07\x65ndTime\"I\n\x11TransferResponses\x12\x34\n\tresponses\x18\x01 \x03(\x0b\x32\x16.vega.TransferResponseR\tresponses\"\x88\x01\n\x12PositionResolution\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\ndistressed\x18\x02 \x01(\x03R\ndistressed\x12\x16\n\x06\x63losed\x18\x03 \x01(\x03R\x06\x63losed\x12\x1d\n\nmark_price\x18\x04 \x01(\x04R\tmarkPrice\"c\n\x11LossSocialization\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\";\n\x0fTradeSettlement\x12\x12\n\x04size\x18\x01 \x01(\x03R\x04size\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xac\x01\n\x0eSettlePosition\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12L\n\x11trade_settlements\x18\x04 \x03(\x0b\x32\x1f.vega.events.v1.TradeSettlementR\x10tradeSettlements\"x\n\x10SettleDistressed\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06margin\x18\x03 \x01(\x04R\x06margin\x12\x14\n\x05price\x18\x04 \x01(\x04R\x05price\"0\n\nMarketTick\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04time\x18\x02 \x01(\x03R\x04time\"\x85\x02\n\x0c\x41uctionEvent\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\'\n\x0fopening_auction\x18\x02 \x01(\x08R\x0eopeningAuction\x12\x14\n\x05leave\x18\x03 \x01(\x08R\x05leave\x12\x14\n\x05start\x18\x04 \x01(\x03R\x05start\x12\x10\n\x03\x65nd\x18\x05 \x01(\x03R\x03\x65nd\x12.\n\x07trigger\x18\x06 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x07 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\"\xb1\x01\n\x0fValidatorUpdate\x12 \n\x0cvega_pub_key\x18\x01 \x01(\tR\nvegaPubKey\x12)\n\x10\x65thereum_address\x18\x02 \x01(\tR\x0f\x65thereumAddress\x12\x1c\n\ntm_pub_key\x18\x03 \x01(\tR\x08tmPubKey\x12\x19\n\x08info_url\x18\x04 \x01(\tR\x07infoUrl\x12\x18\n\x07\x63ountry\x18\x05 \x01(\tR\x07\x63ountry\"\x9d\x12\n\x08\x42usEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05\x62lock\x18\x02 \x01(\tR\x05\x62lock\x12\x30\n\x04type\x18\x03 \x01(\x0e\x32\x1c.vega.events.v1.BusEventTypeR\x04type\x12=\n\x0btime_update\x18\x65 \x01(\x0b\x32\x1a.vega.events.v1.TimeUpdateH\x00R\ntimeUpdate\x12R\n\x12transfer_responses\x18\x66 \x01(\x0b\x32!.vega.events.v1.TransferResponsesH\x00R\x11transferResponses\x12U\n\x13position_resolution\x18g \x01(\x0b\x32\".vega.events.v1.PositionResolutionH\x00R\x12positionResolution\x12#\n\x05order\x18h \x01(\x0b\x32\x0b.vega.OrderH\x00R\x05order\x12)\n\x07\x61\x63\x63ount\x18i \x01(\x0b\x32\r.vega.AccountH\x00R\x07\x61\x63\x63ount\x12#\n\x05party\x18j \x01(\x0b\x32\x0b.vega.PartyH\x00R\x05party\x12#\n\x05trade\x18k \x01(\x0b\x32\x0b.vega.TradeH\x00R\x05trade\x12\x39\n\rmargin_levels\x18l \x01(\x0b\x32\x12.vega.MarginLevelsH\x00R\x0cmarginLevels\x12,\n\x08proposal\x18m \x01(\x0b\x32\x0e.vega.ProposalH\x00R\x08proposal\x12 \n\x04vote\x18n \x01(\x0b\x32\n.vega.VoteH\x00R\x04vote\x12\x33\n\x0bmarket_data\x18o \x01(\x0b\x32\x10.vega.MarketDataH\x00R\nmarketData\x12H\n\x0enode_signature\x18p \x01(\x0b\x32\x1f.vega.commands.v1.NodeSignatureH\x00R\rnodeSignature\x12R\n\x12loss_socialization\x18q \x01(\x0b\x32!.vega.events.v1.LossSocializationH\x00R\x11lossSocialization\x12I\n\x0fsettle_position\x18r \x01(\x0b\x32\x1e.vega.events.v1.SettlePositionH\x00R\x0esettlePosition\x12O\n\x11settle_distressed\x18s \x01(\x0b\x32 .vega.events.v1.SettleDistressedH\x00R\x10settleDistressed\x12\x35\n\x0emarket_created\x18t \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketCreated\x12#\n\x05\x61sset\x18u \x01(\x0b\x32\x0b.vega.AssetH\x00R\x05\x61sset\x12=\n\x0bmarket_tick\x18v \x01(\x0b\x32\x1a.vega.events.v1.MarketTickH\x00R\nmarketTick\x12\x32\n\nwithdrawal\x18w \x01(\x0b\x32\x10.vega.WithdrawalH\x00R\nwithdrawal\x12)\n\x07\x64\x65posit\x18x \x01(\x0b\x32\r.vega.DepositH\x00R\x07\x64\x65posit\x12\x38\n\x07\x61uction\x18y \x01(\x0b\x32\x1c.vega.events.v1.AuctionEventH\x00R\x07\x61uction\x12\x33\n\x0brisk_factor\x18z \x01(\x0b\x32\x10.vega.RiskFactorH\x00R\nriskFactor\x12\x45\n\x11network_parameter\x18{ \x01(\x0b\x32\x16.vega.NetworkParameterH\x00R\x10networkParameter\x12K\n\x13liquidity_provision\x18| \x01(\x0b\x32\x18.vega.LiquidityProvisionH\x00R\x12liquidityProvision\x12\x35\n\x0emarket_updated\x18} \x01(\x0b\x32\x0c.vega.MarketH\x00R\rmarketUpdated\x12\x39\n\x0boracle_spec\x18~ \x01(\x0b\x32\x16.oracles.v1.OracleSpecH\x00R\noracleSpec\x12\x39\n\x0boracle_data\x18\x7f \x01(\x0b\x32\x16.oracles.v1.OracleDataH\x00R\noracleData\x12X\n\x12\x64\x65legation_balance\x18\x81\x01 \x01(\x0b\x32&.vega.events.v1.DelegationBalanceEventH\x00R\x11\x64\x65legationBalance\x12O\n\x0fvalidator_score\x18\x82\x01 \x01(\x0b\x32#.vega.events.v1.ValidatorScoreEventH\x00R\x0evalidatorScore\x12>\n\x0b\x65poch_event\x18\x83\x01 \x01(\x0b\x32\x1a.vega.events.v1.EpochEventH\x00R\nepochEvent\x12M\n\x10validator_update\x18\x84\x01 \x01(\x0b\x32\x1f.vega.events.v1.ValidatorUpdateH\x00R\x0fvalidatorUpdate\x12\x44\n\rstake_linking\x18\x85\x01 \x01(\x0b\x32\x1c.vega.events.v1.StakeLinkingH\x00R\x0cstakeLinking\x12I\n\rreward_payout\x18\x86\x01 \x01(\x0b\x32!.vega.events.v1.RewardPayoutEventH\x00R\x0crewardPayout\x12\x42\n\ncheckpoint\x18\x87\x01 \x01(\x0b\x32\x1f.vega.events.v1.CheckpointEventH\x00R\ncheckpoint\x12\x36\n\x06market\x18\xe9\x07 \x01(\x0b\x32\x1b.vega.events.v1.MarketEventH\x00R\x06market\x12\x41\n\x0ctx_err_event\x18\xd1\x0f \x01(\x0b\x32\x1c.vega.events.v1.TxErrorEventH\x00R\ntxErrEventB\x07\n\x05\x65vent*\xe3\t\n\x0c\x42usEventType\x12\x1e\n\x1a\x42US_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x42US_EVENT_TYPE_ALL\x10\x01\x12\x1e\n\x1a\x42US_EVENT_TYPE_TIME_UPDATE\x10\x02\x12%\n!BUS_EVENT_TYPE_TRANSFER_RESPONSES\x10\x03\x12&\n\"BUS_EVENT_TYPE_POSITION_RESOLUTION\x10\x04\x12\x18\n\x14\x42US_EVENT_TYPE_ORDER\x10\x05\x12\x1a\n\x16\x42US_EVENT_TYPE_ACCOUNT\x10\x06\x12\x18\n\x14\x42US_EVENT_TYPE_PARTY\x10\x07\x12\x18\n\x14\x42US_EVENT_TYPE_TRADE\x10\x08\x12 \n\x1c\x42US_EVENT_TYPE_MARGIN_LEVELS\x10\t\x12\x1b\n\x17\x42US_EVENT_TYPE_PROPOSAL\x10\n\x12\x17\n\x13\x42US_EVENT_TYPE_VOTE\x10\x0b\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_DATA\x10\x0c\x12!\n\x1d\x42US_EVENT_TYPE_NODE_SIGNATURE\x10\r\x12%\n!BUS_EVENT_TYPE_LOSS_SOCIALIZATION\x10\x0e\x12\"\n\x1e\x42US_EVENT_TYPE_SETTLE_POSITION\x10\x0f\x12$\n BUS_EVENT_TYPE_SETTLE_DISTRESSED\x10\x10\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_CREATED\x10\x11\x12\x18\n\x14\x42US_EVENT_TYPE_ASSET\x10\x12\x12\x1e\n\x1a\x42US_EVENT_TYPE_MARKET_TICK\x10\x13\x12\x1d\n\x19\x42US_EVENT_TYPE_WITHDRAWAL\x10\x14\x12\x1a\n\x16\x42US_EVENT_TYPE_DEPOSIT\x10\x15\x12\x1a\n\x16\x42US_EVENT_TYPE_AUCTION\x10\x16\x12\x1e\n\x1a\x42US_EVENT_TYPE_RISK_FACTOR\x10\x17\x12$\n BUS_EVENT_TYPE_NETWORK_PARAMETER\x10\x18\x12&\n\"BUS_EVENT_TYPE_LIQUIDITY_PROVISION\x10\x19\x12!\n\x1d\x42US_EVENT_TYPE_MARKET_UPDATED\x10\x1a\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_SPEC\x10\x1b\x12\x1e\n\x1a\x42US_EVENT_TYPE_ORACLE_DATA\x10\x1c\x12%\n!BUS_EVENT_TYPE_DELEGATION_BALANCE\x10\x1d\x12\"\n\x1e\x42US_EVENT_TYPE_VALIDATOR_SCORE\x10\x1e\x12\x1f\n\x1b\x42US_EVENT_TYPE_EPOCH_UPDATE\x10\x1f\x12#\n\x1f\x42US_EVENT_TYPE_VALIDATOR_UPDATE\x10 \x12 \n\x1c\x42US_EVENT_TYPE_STAKE_LINKING\x10!\x12&\n\"BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT\x10\"\x12\x1d\n\x19\x42US_EVENT_TYPE_CHECKPOINT\x10#\x12\x19\n\x15\x42US_EVENT_TYPE_MARKET\x10\x65\x12\x1c\n\x17\x42US_EVENT_TYPE_TX_ERROR\x10\xc9\x01\x42K\n\x1eio.vegaprotocol.vega.events.v1Z)code.vegaprotocol.io/vega/proto/events/v1b\x06proto3' , dependencies=[markets__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,oracles_dot_v1_dot_spec__pb2.DESCRIPTOR,oracles_dot_v1_dot_data__pb2.DESCRIPTOR,commands_dot_v1_dot_commands__pb2.DESCRIPTOR,commands_dot_v1_dot_validator__commands__pb2.DESCRIPTOR,]) @@ -232,8 +232,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=5865, - serialized_end=7116, + serialized_start=6129, + serialized_end=7380, ) _sym_db.RegisterEnumDescriptor(_BUSEVENTTYPE) @@ -816,6 +816,27 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='withdrawSubmission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='delegate_submission', full_name='vega.events.v1.TxErrorEvent.delegate_submission', index=9, + number=108, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='delegateSubmission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='undelegate_submission', full_name='vega.events.v1.TxErrorEvent.undelegate_submission', index=10, + number=109, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='undelegateSubmission', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='restore_snapshot', full_name='vega.events.v1.TxErrorEvent.restore_snapshot', index=11, + number=110, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='restoreSnapshot', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -834,7 +855,7 @@ fields=[]), ], serialized_start=1514, - serialized_end=2192, + serialized_end=2456, ) @@ -865,8 +886,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2194, - serialized_end=2236, + serialized_start=2458, + serialized_end=2500, ) @@ -918,8 +939,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2238, - serialized_end=2359, + serialized_start=2502, + serialized_end=2623, ) @@ -950,8 +971,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2361, - serialized_end=2434, + serialized_start=2625, + serialized_end=2698, ) @@ -1003,8 +1024,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2437, - serialized_end=2573, + serialized_start=2701, + serialized_end=2837, ) @@ -1049,8 +1070,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2575, - serialized_end=2674, + serialized_start=2839, + serialized_end=2938, ) @@ -1088,8 +1109,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2676, - serialized_end=2735, + serialized_start=2940, + serialized_end=2999, ) @@ -1141,8 +1162,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2738, - serialized_end=2910, + serialized_start=3002, + serialized_end=3174, ) @@ -1194,8 +1215,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2912, - serialized_end=3032, + serialized_start=3176, + serialized_end=3296, ) @@ -1233,8 +1254,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3034, - serialized_end=3082, + serialized_start=3298, + serialized_end=3346, ) @@ -1307,8 +1328,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3085, - serialized_end=3346, + serialized_start=3349, + serialized_end=3610, ) @@ -1367,8 +1388,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3349, - serialized_end=3526, + serialized_start=3613, + serialized_end=3790, ) @@ -1670,8 +1691,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=3529, - serialized_end=5862, + serialized_start=3793, + serialized_end=6126, ) _STAKELINKING.fields_by_name['type'].enum_type = _STAKELINKING_TYPE @@ -1685,6 +1706,9 @@ _TXERROREVENT.fields_by_name['vote_submission'].message_type = commands_dot_v1_dot_commands__pb2._VOTESUBMISSION _TXERROREVENT.fields_by_name['liquidity_provision_submission'].message_type = commands_dot_v1_dot_commands__pb2._LIQUIDITYPROVISIONSUBMISSION _TXERROREVENT.fields_by_name['withdraw_submission'].message_type = commands_dot_v1_dot_commands__pb2._WITHDRAWSUBMISSION +_TXERROREVENT.fields_by_name['delegate_submission'].message_type = commands_dot_v1_dot_commands__pb2._DELEGATESUBMISSION +_TXERROREVENT.fields_by_name['undelegate_submission'].message_type = commands_dot_v1_dot_commands__pb2._UNDELEGATESUBMISSION +_TXERROREVENT.fields_by_name['restore_snapshot'].message_type = commands_dot_v1_dot_commands__pb2._RESTORESNAPSHOT _TXERROREVENT.oneofs_by_name['transaction'].fields.append( _TXERROREVENT.fields_by_name['order_submission']) _TXERROREVENT.fields_by_name['order_submission'].containing_oneof = _TXERROREVENT.oneofs_by_name['transaction'] @@ -1706,6 +1730,15 @@ _TXERROREVENT.oneofs_by_name['transaction'].fields.append( _TXERROREVENT.fields_by_name['withdraw_submission']) _TXERROREVENT.fields_by_name['withdraw_submission'].containing_oneof = _TXERROREVENT.oneofs_by_name['transaction'] +_TXERROREVENT.oneofs_by_name['transaction'].fields.append( + _TXERROREVENT.fields_by_name['delegate_submission']) +_TXERROREVENT.fields_by_name['delegate_submission'].containing_oneof = _TXERROREVENT.oneofs_by_name['transaction'] +_TXERROREVENT.oneofs_by_name['transaction'].fields.append( + _TXERROREVENT.fields_by_name['undelegate_submission']) +_TXERROREVENT.fields_by_name['undelegate_submission'].containing_oneof = _TXERROREVENT.oneofs_by_name['transaction'] +_TXERROREVENT.oneofs_by_name['transaction'].fields.append( + _TXERROREVENT.fields_by_name['restore_snapshot']) +_TXERROREVENT.fields_by_name['restore_snapshot'].containing_oneof = _TXERROREVENT.oneofs_by_name['transaction'] _TRANSFERRESPONSES.fields_by_name['responses'].message_type = vega__pb2._TRANSFERRESPONSE _SETTLEPOSITION.fields_by_name['trade_settlements'].message_type = _TRADESETTLEMENT _AUCTIONEVENT.fields_by_name['trigger'].enum_type = vega__pb2._AUCTIONTRIGGER diff --git a/grpc/clients/python/vegaapiclient/generated/governance_pb2.py b/grpc/clients/python/vegaapiclient/generated/governance_pb2.py index da8b1be1..b186cc90 100644 --- a/grpc/clients/python/vegaapiclient/generated/governance_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/governance_pb2.py @@ -25,7 +25,7 @@ syntax='proto3', serialized_options=b'\n\024io.vegaprotocol.vegaZ\037code.vegaprotocol.io/vega/proto', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x10governance.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\x1a\nvega.proto\x1a\x0c\x61ssets.proto\x1a\x15oracles/v1/spec.proto\"\xbe\x03\n\rFutureProduct\x12\"\n\x08maturity\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08maturity\x12\x31\n\x10settlement_asset\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x0fsettlementAsset\x12%\n\nquote_name\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\tquoteName\x12k\n oracle_spec_for_settlement_price\x18\x05 \x01(\x0b\x32#.oracles.v1.OracleSpecConfigurationR\x1coracleSpecForSettlementPrice\x12q\n#oracle_spec_for_trading_termination\x18\x06 \x01(\x0b\x32#.oracles.v1.OracleSpecConfigurationR\x1foracleSpecForTradingTermination\x12O\n\x13oracle_spec_binding\x18\x07 \x01(\x0b\x32\x1f.vega.OracleSpecToFutureBindingR\x11oracleSpecBinding\"\x8b\x01\n\x17InstrumentConfiguration\x12\x1a\n\x04name\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x04name\x12\x1a\n\x04\x63ode\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x04\x63ode\x12-\n\x06\x66uture\x18\x64 \x01(\x0b\x32\x13.vega.FutureProductH\x00R\x06\x66utureB\t\n\x07product\"\xfc\x04\n\x16NewMarketConfiguration\x12\x45\n\ninstrument\x18\x01 \x01(\x0b\x32\x1d.vega.InstrumentConfigurationB\x06\xe2\xdf\x1f\x02 \x01R\ninstrument\x12.\n\x0e\x64\x65\x63imal_places\x18\x02 \x01(\x04\x42\x07\xe2\xdf\x1f\x03\x18\x96\x01R\rdecimalPlaces\x12\x1a\n\x08metadata\x18\x03 \x03(\tR\x08metadata\x12_\n\x1bprice_monitoring_parameters\x18\x04 \x01(\x0b\x32\x1f.vega.PriceMonitoringParametersR\x19priceMonitoringParameters\x12k\n\x1fliquidity_monitoring_parameters\x18\x05 \x01(\x0b\x32#.vega.LiquidityMonitoringParametersR\x1dliquidityMonitoringParameters\x12\x31\n\x06simple\x18\x64 \x01(\x0b\x32\x17.vega.SimpleModelParamsH\x00R\x06simple\x12\x39\n\nlog_normal\x18\x65 \x01(\x0b\x32\x18.vega.LogNormalRiskModelH\x00R\tlogNormal\x12:\n\ncontinuous\x18\xc8\x01 \x01(\x0b\x32\x17.vega.ContinuousTradingH\x01R\ncontinuous\x12\x34\n\x08\x64iscrete\x18\xc9\x01 \x01(\x0b\x32\x15.vega.DiscreteTradingH\x01R\x08\x64iscreteB\x11\n\x0frisk_parametersB\x0e\n\x0ctrading_mode\"\xc8\x01\n\x13NewMarketCommitment\x12+\n\x11\x63ommitment_amount\x18\x01 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x02 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x03 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x05 \x01(\tR\treference\"\x99\x01\n\tNewMarket\x12>\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x1c.vega.NewMarketConfigurationB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\x12L\n\x14liquidity_commitment\x18\x02 \x01(\x0b\x32\x19.vega.NewMarketCommitmentR\x13liquidityCommitment\"\x0e\n\x0cUpdateMarket\"R\n\x16UpdateNetworkParameter\x12\x38\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x16.vega.NetworkParameterB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\"@\n\x08NewAsset\x12\x34\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x12.vega.AssetDetailsB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\"\xb0\x03\n\rProposalTerms\x12\x33\n\x11\x63losing_timestamp\x18\x01 \x01(\x03\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x10\x63losingTimestamp\x12\x37\n\x13\x65nactment_timestamp\x18\x02 \x01(\x03\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x12\x65nactmentTimestamp\x12\x31\n\x14validation_timestamp\x18\x03 \x01(\x03R\x13validationTimestamp\x12\x39\n\rupdate_market\x18\x65 \x01(\x0b\x32\x12.vega.UpdateMarketH\x00R\x0cupdateMarket\x12\x30\n\nnew_market\x18\x66 \x01(\x0b\x32\x0f.vega.NewMarketH\x00R\tnewMarket\x12X\n\x18update_network_parameter\x18g \x01(\x0b\x32\x1c.vega.UpdateNetworkParameterH\x00R\x16updateNetworkParameter\x12-\n\tnew_asset\x18h \x01(\x0b\x32\x0e.vega.NewAssetH\x00R\x08newAssetB\x08\n\x06\x63hange\"\x86\x03\n\x0eGovernanceData\x12*\n\x08proposal\x18\x01 \x01(\x0b\x32\x0e.vega.ProposalR\x08proposal\x12\x1c\n\x03yes\x18\x02 \x03(\x0b\x32\n.vega.VoteR\x03yes\x12\x1a\n\x02no\x18\x03 \x03(\x0b\x32\n.vega.VoteR\x02no\x12?\n\tyes_party\x18\x04 \x03(\x0b\x32\".vega.GovernanceData.YesPartyEntryR\x08yesParty\x12<\n\x08no_party\x18\x05 \x03(\x0b\x32!.vega.GovernanceData.NoPartyEntryR\x07noParty\x1aG\n\rYesPartyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12 \n\x05value\x18\x02 \x01(\x0b\x32\n.vega.VoteR\x05value:\x02\x38\x01\x1a\x46\n\x0cNoPartyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12 \n\x05value\x18\x02 \x01(\x0b\x32\n.vega.VoteR\x05value:\x02\x38\x01\"\xe4\x03\n\x08Proposal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\treference\x18\x02 \x01(\tR\treference\x12!\n\x08party_id\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32\x14.vega.Proposal.StateB\x07\xe2\xdf\x1f\x03\x88\x01\x01R\x05state\x12\x1c\n\ttimestamp\x18\x05 \x01(\x03R\ttimestamp\x12\x31\n\x05terms\x18\x06 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\x12+\n\x06reason\x18\x07 \x01(\x0e\x32\x13.vega.ProposalErrorR\x06reason\x12#\n\rerror_details\x18\x08 \x01(\tR\x0c\x65rrorDetails\"\xae\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTATE_FAILED\x10\x01\x12\x0e\n\nSTATE_OPEN\x10\x02\x12\x10\n\x0cSTATE_PASSED\x10\x03\x12\x12\n\x0eSTATE_REJECTED\x10\x04\x12\x12\n\x0eSTATE_DECLINED\x10\x05\x12\x11\n\rSTATE_ENACTED\x10\x06\x12\x1f\n\x1bSTATE_WAITING_FOR_NODE_VOTE\x10\x07\"\xe6\x02\n\x04Vote\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12/\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueB\x07\xe2\xdf\x1f\x03\x88\x01\x01R\x05value\x12\'\n\x0bproposal_id\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12\x1c\n\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x43\n\x1etotal_governance_token_balance\x18\x05 \x01(\x04R\x1btotalGovernanceTokenBalance\x12\x41\n\x1dtotal_governance_token_weight\x18\x06 \x01(\tR\x1atotalGovernanceTokenWeight\";\n\x05Value\x12\x15\n\x11VALUE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VALUE_NO\x10\x01\x12\r\n\tVALUE_YES\x10\x02*\xfd\x0b\n\rProposalError\x12\x1e\n\x1aPROPOSAL_ERROR_UNSPECIFIED\x10\x00\x12&\n\"PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON\x10\x01\x12&\n\"PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE\x10\x02\x12&\n\"PROPOSAL_ERROR_ENACT_TIME_TOO_SOON\x10\x03\x12&\n\"PROPOSAL_ERROR_ENACT_TIME_TOO_LATE\x10\x04\x12&\n\"PROPOSAL_ERROR_INSUFFICIENT_TOKENS\x10\x05\x12.\n*PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY\x10\x06\x12\x1d\n\x19PROPOSAL_ERROR_NO_PRODUCT\x10\x07\x12&\n\"PROPOSAL_ERROR_UNSUPPORTED_PRODUCT\x10\x08\x12\x33\n/PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP\x10\t\x12-\n)PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED\x10\n\x12\"\n\x1ePROPOSAL_ERROR_NO_TRADING_MODE\x10\x0b\x12+\n\'PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE\x10\x0c\x12)\n%PROPOSAL_ERROR_NODE_VALIDATION_FAILED\x10\r\x12.\n*PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD\x10\x0e\x12\x31\n-PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS\x10\x0f\x12 \n\x1cPROPOSAL_ERROR_INVALID_ASSET\x10\x10\x12*\n&PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS\x10\x11\x12%\n!PROPOSAL_ERROR_NO_RISK_PARAMETERS\x10\x12\x12\x30\n,PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY\x10\x13\x12\x32\n.PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE\x10\x14\x12\x36\n2PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED\x10\x15\x12\x35\n1PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL\x10\x16\x12\x35\n1PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE\x10\x17\x12\x36\n2PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT\x10\x18\x12/\n+PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET\x10\x19\x12)\n%PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT\x10\x1a\x12,\n(PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT\x10\x1b\x12%\n!PROPOSAL_ERROR_INVALID_FEE_AMOUNT\x10\x1c\x12 \n\x1cPROPOSAL_ERROR_INVALID_SHAPE\x10\x1d\x12)\n%PROPOSAL_ERROR_INVALID_RISK_PARAMETER\x10\x1e\x12\x31\n-PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED\x10\x1f\x12\x36\n2PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED\x10 \x12(\n$PROPOSAL_ERROR_INVALID_ASSET_DETAILS\x10!B7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' + serialized_pb=b'\n\x10governance.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\x1a\nvega.proto\x1a\x0c\x61ssets.proto\x1a\x15oracles/v1/spec.proto\"\xbe\x03\n\rFutureProduct\x12\"\n\x08maturity\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08maturity\x12\x31\n\x10settlement_asset\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x0fsettlementAsset\x12%\n\nquote_name\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\tquoteName\x12k\n oracle_spec_for_settlement_price\x18\x05 \x01(\x0b\x32#.oracles.v1.OracleSpecConfigurationR\x1coracleSpecForSettlementPrice\x12q\n#oracle_spec_for_trading_termination\x18\x06 \x01(\x0b\x32#.oracles.v1.OracleSpecConfigurationR\x1foracleSpecForTradingTermination\x12O\n\x13oracle_spec_binding\x18\x07 \x01(\x0b\x32\x1f.vega.OracleSpecToFutureBindingR\x11oracleSpecBinding\"\x8b\x01\n\x17InstrumentConfiguration\x12\x1a\n\x04name\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x04name\x12\x1a\n\x04\x63ode\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x04\x63ode\x12-\n\x06\x66uture\x18\x64 \x01(\x0b\x32\x13.vega.FutureProductH\x00R\x06\x66utureB\t\n\x07product\"\xfc\x04\n\x16NewMarketConfiguration\x12\x45\n\ninstrument\x18\x01 \x01(\x0b\x32\x1d.vega.InstrumentConfigurationB\x06\xe2\xdf\x1f\x02 \x01R\ninstrument\x12.\n\x0e\x64\x65\x63imal_places\x18\x02 \x01(\x04\x42\x07\xe2\xdf\x1f\x03\x18\x96\x01R\rdecimalPlaces\x12\x1a\n\x08metadata\x18\x03 \x03(\tR\x08metadata\x12_\n\x1bprice_monitoring_parameters\x18\x04 \x01(\x0b\x32\x1f.vega.PriceMonitoringParametersR\x19priceMonitoringParameters\x12k\n\x1fliquidity_monitoring_parameters\x18\x05 \x01(\x0b\x32#.vega.LiquidityMonitoringParametersR\x1dliquidityMonitoringParameters\x12\x31\n\x06simple\x18\x64 \x01(\x0b\x32\x17.vega.SimpleModelParamsH\x00R\x06simple\x12\x39\n\nlog_normal\x18\x65 \x01(\x0b\x32\x18.vega.LogNormalRiskModelH\x00R\tlogNormal\x12:\n\ncontinuous\x18\xc8\x01 \x01(\x0b\x32\x17.vega.ContinuousTradingH\x01R\ncontinuous\x12\x34\n\x08\x64iscrete\x18\xc9\x01 \x01(\x0b\x32\x15.vega.DiscreteTradingH\x01R\x08\x64iscreteB\x11\n\x0frisk_parametersB\x0e\n\x0ctrading_mode\"\xc8\x01\n\x13NewMarketCommitment\x12+\n\x11\x63ommitment_amount\x18\x01 \x01(\tR\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x02 \x01(\tR\x03\x66\x65\x65\x12*\n\x05sells\x18\x03 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x05sells\x12(\n\x04\x62uys\x18\x04 \x03(\x0b\x32\x14.vega.LiquidityOrderR\x04\x62uys\x12\x1c\n\treference\x18\x05 \x01(\tR\treference\"\x99\x01\n\tNewMarket\x12>\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x1c.vega.NewMarketConfigurationB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\x12L\n\x14liquidity_commitment\x18\x02 \x01(\x0b\x32\x19.vega.NewMarketCommitmentR\x13liquidityCommitment\"\x0e\n\x0cUpdateMarket\"R\n\x16UpdateNetworkParameter\x12\x38\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x16.vega.NetworkParameterB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\"@\n\x08NewAsset\x12\x34\n\x07\x63hanges\x18\x01 \x01(\x0b\x32\x12.vega.AssetDetailsB\x06\xe2\xdf\x1f\x02 \x01R\x07\x63hanges\"\xb0\x03\n\rProposalTerms\x12\x33\n\x11\x63losing_timestamp\x18\x01 \x01(\x03\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x10\x63losingTimestamp\x12\x37\n\x13\x65nactment_timestamp\x18\x02 \x01(\x03\x42\x06\xe2\xdf\x1f\x02\x10\x00R\x12\x65nactmentTimestamp\x12\x31\n\x14validation_timestamp\x18\x03 \x01(\x03R\x13validationTimestamp\x12\x39\n\rupdate_market\x18\x65 \x01(\x0b\x32\x12.vega.UpdateMarketH\x00R\x0cupdateMarket\x12\x30\n\nnew_market\x18\x66 \x01(\x0b\x32\x0f.vega.NewMarketH\x00R\tnewMarket\x12X\n\x18update_network_parameter\x18g \x01(\x0b\x32\x1c.vega.UpdateNetworkParameterH\x00R\x16updateNetworkParameter\x12-\n\tnew_asset\x18h \x01(\x0b\x32\x0e.vega.NewAssetH\x00R\x08newAssetB\x08\n\x06\x63hange\"\x86\x03\n\x0eGovernanceData\x12*\n\x08proposal\x18\x01 \x01(\x0b\x32\x0e.vega.ProposalR\x08proposal\x12\x1c\n\x03yes\x18\x02 \x03(\x0b\x32\n.vega.VoteR\x03yes\x12\x1a\n\x02no\x18\x03 \x03(\x0b\x32\n.vega.VoteR\x02no\x12?\n\tyes_party\x18\x04 \x03(\x0b\x32\".vega.GovernanceData.YesPartyEntryR\x08yesParty\x12<\n\x08no_party\x18\x05 \x03(\x0b\x32!.vega.GovernanceData.NoPartyEntryR\x07noParty\x1aG\n\rYesPartyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12 \n\x05value\x18\x02 \x01(\x0b\x32\n.vega.VoteR\x05value:\x02\x38\x01\x1a\x46\n\x0cNoPartyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12 \n\x05value\x18\x02 \x01(\x0b\x32\n.vega.VoteR\x05value:\x02\x38\x01\"\xe4\x03\n\x08Proposal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\treference\x18\x02 \x01(\tR\treference\x12!\n\x08party_id\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32\x14.vega.Proposal.StateB\x07\xe2\xdf\x1f\x03\x88\x01\x01R\x05state\x12\x1c\n\ttimestamp\x18\x05 \x01(\x03R\ttimestamp\x12\x31\n\x05terms\x18\x06 \x01(\x0b\x32\x13.vega.ProposalTermsB\x06\xe2\xdf\x1f\x02 \x01R\x05terms\x12+\n\x06reason\x18\x07 \x01(\x0e\x32\x13.vega.ProposalErrorR\x06reason\x12#\n\rerror_details\x18\x08 \x01(\tR\x0c\x65rrorDetails\"\xae\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTATE_FAILED\x10\x01\x12\x0e\n\nSTATE_OPEN\x10\x02\x12\x10\n\x0cSTATE_PASSED\x10\x03\x12\x12\n\x0eSTATE_REJECTED\x10\x04\x12\x12\n\x0eSTATE_DECLINED\x10\x05\x12\x11\n\rSTATE_ENACTED\x10\x06\x12\x1f\n\x1bSTATE_WAITING_FOR_NODE_VOTE\x10\x07\"\xe6\x02\n\x04Vote\x12!\n\x08party_id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x07partyId\x12/\n\x05value\x18\x02 \x01(\x0e\x32\x10.vega.Vote.ValueB\x07\xe2\xdf\x1f\x03\x88\x01\x01R\x05value\x12\'\n\x0bproposal_id\x18\x03 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\nproposalId\x12\x1c\n\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x43\n\x1etotal_governance_token_balance\x18\x05 \x01(\tR\x1btotalGovernanceTokenBalance\x12\x41\n\x1dtotal_governance_token_weight\x18\x06 \x01(\tR\x1atotalGovernanceTokenWeight\";\n\x05Value\x12\x15\n\x11VALUE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VALUE_NO\x10\x01\x12\r\n\tVALUE_YES\x10\x02*\xfd\x0b\n\rProposalError\x12\x1e\n\x1aPROPOSAL_ERROR_UNSPECIFIED\x10\x00\x12&\n\"PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON\x10\x01\x12&\n\"PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE\x10\x02\x12&\n\"PROPOSAL_ERROR_ENACT_TIME_TOO_SOON\x10\x03\x12&\n\"PROPOSAL_ERROR_ENACT_TIME_TOO_LATE\x10\x04\x12&\n\"PROPOSAL_ERROR_INSUFFICIENT_TOKENS\x10\x05\x12.\n*PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY\x10\x06\x12\x1d\n\x19PROPOSAL_ERROR_NO_PRODUCT\x10\x07\x12&\n\"PROPOSAL_ERROR_UNSUPPORTED_PRODUCT\x10\x08\x12\x33\n/PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP\x10\t\x12-\n)PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED\x10\n\x12\"\n\x1ePROPOSAL_ERROR_NO_TRADING_MODE\x10\x0b\x12+\n\'PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE\x10\x0c\x12)\n%PROPOSAL_ERROR_NODE_VALIDATION_FAILED\x10\r\x12.\n*PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD\x10\x0e\x12\x31\n-PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS\x10\x0f\x12 \n\x1cPROPOSAL_ERROR_INVALID_ASSET\x10\x10\x12*\n&PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS\x10\x11\x12%\n!PROPOSAL_ERROR_NO_RISK_PARAMETERS\x10\x12\x12\x30\n,PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY\x10\x13\x12\x32\n.PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE\x10\x14\x12\x36\n2PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED\x10\x15\x12\x35\n1PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL\x10\x16\x12\x35\n1PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE\x10\x17\x12\x36\n2PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT\x10\x18\x12/\n+PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET\x10\x19\x12)\n%PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT\x10\x1a\x12,\n(PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT\x10\x1b\x12%\n!PROPOSAL_ERROR_INVALID_FEE_AMOUNT\x10\x1c\x12 \n\x1cPROPOSAL_ERROR_INVALID_SHAPE\x10\x1d\x12)\n%PROPOSAL_ERROR_INVALID_RISK_PARAMETER\x10\x1e\x12\x31\n-PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED\x10\x1f\x12\x36\n2PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED\x10 \x12(\n$PROPOSAL_ERROR_INVALID_ASSET_DETAILS\x10!B7\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' , dependencies=[github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,oracles_dot_v1_dot_spec__pb2.DESCRIPTOR,]) @@ -563,8 +563,8 @@ fields=[ _descriptor.FieldDescriptor( name='commitment_amount', full_name='vega.NewMarketCommitment.commitment_amount', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='commitmentAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1076,8 +1076,8 @@ serialized_options=None, json_name='timestamp', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='total_governance_token_balance', full_name='vega.Vote.total_governance_token_balance', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='totalGovernanceTokenBalance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), diff --git a/grpc/clients/python/vegaapiclient/generated/vega_pb2.py b/grpc/clients/python/vegaapiclient/generated/vega_pb2.py index 18263de9..b513ba4b 100644 --- a/grpc/clients/python/vegaapiclient/generated/vega_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/vega_pb2.py @@ -23,7 +23,7 @@ syntax='proto3', serialized_options=b'\n\024io.vegaprotocol.vegaZ\037code.vegaprotocol.io/vega/proto', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\nvega.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\"\x1d\n\x05Price\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value\"!\n\tTimestamp\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"S\n\x05Party\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x02id\x12\x32\n\x0b\x64\x65legations\x18\x02 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"N\n\nRiskFactor\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\x12\x14\n\x05short\x18\x02 \x01(\x01R\x05short\x12\x12\n\x04long\x18\x03 \x01(\x01R\x04long\"\xd3\x03\n\nRiskResult\x12+\n\x11updated_timestamp\x18\x01 \x01(\x03R\x10updatedTimestamp\x12\x44\n\x0crisk_factors\x18\x02 \x03(\x0b\x32!.vega.RiskResult.RiskFactorsEntryR\x0briskFactors\x12\x32\n\x15next_update_timestamp\x18\x03 \x01(\x03R\x13nextUpdateTimestamp\x12m\n\x1bpredicted_next_risk_factors\x18\x04 \x03(\x0b\x32..vega.RiskResult.PredictedNextRiskFactorsEntryR\x18predictedNextRiskFactors\x1aP\n\x10RiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\x1a]\n\x1dPredictedNextRiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\"Z\n\x0bPeggedOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x16\n\x06offset\x18\x02 \x01(\x03R\x06offset\"\xe2\x08\n\x05Order\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12\x14\n\x05price\x18\x05 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x1c\n\tremaining\x18\x07 \x01(\x04R\tremaining\x12;\n\rtime_in_force\x18\x08 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12$\n\x04type\x18\t \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\x12*\n\x06status\x18\x0b \x01(\x0e\x32\x12.vega.Order.StatusR\x06status\x12\x1d\n\nexpires_at\x18\x0c \x01(\x03R\texpiresAt\x12\x1c\n\treference\x18\r \x01(\tR\treference\x12(\n\x06reason\x18\x0e \x01(\x0e\x32\x10.vega.OrderErrorR\x06reason\x12\x1d\n\nupdated_at\x18\x0f \x01(\x03R\tupdatedAt\x12\x18\n\x07version\x18\x10 \x01(\x04R\x07version\x12\x19\n\x08\x62\x61tch_id\x18\x11 \x01(\x04R\x07\x62\x61tchId\x12\x34\n\x0cpegged_order\x18\x12 \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\x12\x34\n\x16liquidity_provision_id\x18\x13 \x01(\tR\x14liquidityProvisionId\"\xb6\x01\n\x0bTimeInForce\x12\x1d\n\x19TIME_IN_FORCE_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_IN_FORCE_GTC\x10\x01\x12\x15\n\x11TIME_IN_FORCE_GTT\x10\x02\x12\x15\n\x11TIME_IN_FORCE_IOC\x10\x03\x12\x15\n\x11TIME_IN_FORCE_FOK\x10\x04\x12\x15\n\x11TIME_IN_FORCE_GFA\x10\x05\x12\x15\n\x11TIME_IN_FORCE_GFN\x10\x06\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_LIMIT\x10\x01\x12\x0f\n\x0bTYPE_MARKET\x10\x02\x12\x10\n\x0cTYPE_NETWORK\x10\x03\"\xc9\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_EXPIRED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x12\n\x0eSTATUS_STOPPED\x10\x04\x12\x11\n\rSTATUS_FILLED\x10\x05\x12\x13\n\x0fSTATUS_REJECTED\x10\x06\x12\x1b\n\x17STATUS_PARTIALLY_FILLED\x10\x07\x12\x11\n\rSTATUS_PARKED\x10\x08\"B\n\x1dOrderCancellationConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"\xa0\x01\n\x11OrderConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\x12#\n\x06trades\x18\x02 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\x12\x43\n\x17passive_orders_affected\x18\x03 \x03(\x0b\x32\x0b.vega.OrderR\x15passiveOrdersAffected\"\xd3\x01\n\x16\x41uctionIndicativeState\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12)\n\x10indicative_price\x18\x02 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x03 \x01(\x04R\x10indicativeVolume\x12#\n\rauction_start\x18\x04 \x01(\x03R\x0c\x61uctionStart\x12\x1f\n\x0b\x61uction_end\x18\x05 \x01(\x03R\nauctionEnd\"\xdb\x04\n\x05Trade\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05price\x18\x03 \x01(\x04R\x05price\x12\x12\n\x04size\x18\x04 \x01(\x04R\x04size\x12\x14\n\x05\x62uyer\x18\x05 \x01(\tR\x05\x62uyer\x12\x16\n\x06seller\x18\x06 \x01(\tR\x06seller\x12(\n\taggressor\x18\x07 \x01(\x0e\x32\n.vega.SideR\taggressor\x12\x1b\n\tbuy_order\x18\x08 \x01(\tR\x08\x62uyOrder\x12\x1d\n\nsell_order\x18\t \x01(\tR\tsellOrder\x12\x1c\n\ttimestamp\x18\n \x01(\x03R\ttimestamp\x12$\n\x04type\x18\x0b \x01(\x0e\x32\x10.vega.Trade.TypeR\x04type\x12&\n\tbuyer_fee\x18\x0c \x01(\x0b\x32\t.vega.FeeR\x08\x62uyerFee\x12(\n\nseller_fee\x18\r \x01(\x0b\x32\t.vega.FeeR\tsellerFee\x12.\n\x13\x62uyer_auction_batch\x18\x0e \x01(\x04R\x11\x62uyerAuctionBatch\x12\x30\n\x14seller_auction_batch\x18\x0f \x01(\x04R\x12sellerAuctionBatch\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_DEFAULT\x10\x01\x12\x1f\n\x1bTYPE_NETWORK_CLOSE_OUT_GOOD\x10\x02\x12\x1e\n\x1aTYPE_NETWORK_CLOSE_OUT_BAD\x10\x03\"v\n\x03\x46\x65\x65\x12\x1b\n\tmaker_fee\x18\x01 \x01(\x04R\x08makerFee\x12-\n\x12infrastructure_fee\x18\x02 \x01(\x04R\x11infrastructureFee\x12#\n\rliquidity_fee\x18\x03 \x01(\x04R\x0cliquidityFee\"/\n\x08TradeSet\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"\xd6\x01\n\x06\x43\x61ndle\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x1a\n\x08\x64\x61tetime\x18\x02 \x01(\tR\x08\x64\x61tetime\x12\x12\n\x04high\x18\x03 \x01(\x04R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x04R\x03low\x12\x12\n\x04open\x18\x05 \x01(\x04R\x04open\x12\x14\n\x05\x63lose\x18\x06 \x01(\x04R\x05\x63lose\x12\x16\n\x06volume\x18\x07 \x01(\x04R\x06volume\x12*\n\x08interval\x18\x08 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"d\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\x04R\x05price\x12(\n\x10number_of_orders\x18\x02 \x01(\x04R\x0enumberOfOrders\x12\x16\n\x06volume\x18\x03 \x01(\x04R\x06volume\"\x9d\x01\n\x0bMarketDepth\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xa3\x01\n\x11MarketDepthUpdate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xfc\x01\n\x08Position\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1f\n\x0bopen_volume\x18\x03 \x01(\x03R\nopenVolume\x12!\n\x0crealised_pnl\x18\x04 \x01(\x03R\x0brealisedPnl\x12%\n\x0eunrealised_pnl\x18\x05 \x01(\x03R\runrealisedPnl\x12.\n\x13\x61verage_entry_price\x18\x06 \x01(\x04R\x11\x61verageEntryPrice\x12\x1d\n\nupdated_at\x18\x07 \x01(\x03R\tupdatedAt\"=\n\rPositionTrade\x12\x16\n\x06volume\x18\x01 \x01(\x03R\x06volume\x12\x14\n\x05price\x18\x02 \x01(\x04R\x05price\"\xe4\x02\n\x07\x44\x65posit\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12,\n\x06status\x18\x02 \x01(\x0e\x32\x14.vega.Deposit.StatusR\x06status\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x17\n\x07tx_hash\x18\x06 \x01(\tR\x06txHash\x12-\n\x12\x63redited_timestamp\x18\x07 \x01(\x03R\x11\x63reditedTimestamp\x12+\n\x11\x63reated_timestamp\x18\x08 \x01(\x03R\x10\x63reatedTimestamp\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"\xbb\x03\n\nWithdrawal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12/\n\x06status\x18\x05 \x01(\x0e\x32\x17.vega.Withdrawal.StatusR\x06status\x12\x10\n\x03ref\x18\x06 \x01(\tR\x03ref\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\x12+\n\x11\x63reated_timestamp\x18\t \x01(\x03R\x10\x63reatedTimestamp\x12/\n\x13withdrawn_timestamp\x18\n \x01(\x03R\x12withdrawnTimestamp\x12#\n\x03\x65xt\x18\x0b \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"D\n\x0bWithdrawExt\x12.\n\x05\x65rc20\x18\x01 \x01(\x0b\x32\x16.vega.Erc20WithdrawExtH\x00R\x05\x65rc20B\x05\n\x03\x65xt\"=\n\x10\x45rc20WithdrawExt\x12)\n\x10receiver_address\x18\x01 \x01(\tR\x0freceiverAddress\"\xa3\x01\n\x07\x41\x63\x63ount\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\x04R\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x1b\n\tmarket_id\x18\x05 \x01(\tR\x08marketId\x12%\n\x04type\x18\x06 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\"?\n\x0f\x46inancialAmount\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\"\x96\x01\n\x08Transfer\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\x12-\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x15.vega.FinancialAmountR\x06\x61mount\x12&\n\x04type\x18\x03 \x01(\x0e\x32\x12.vega.TransferTypeR\x04type\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\"\xdc\x01\n\x0fTransferRequest\x12\x30\n\x0c\x66rom_account\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x0b\x66romAccount\x12,\n\nto_account\x18\x02 \x03(\x0b\x32\r.vega.AccountR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1d\n\nmin_amount\x18\x04 \x01(\x04R\tminAmount\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"\xb7\x01\n\x0bLedgerEntry\x12!\n\x0c\x66rom_account\x18\x01 \x01(\tR\x0b\x66romAccount\x12\x1d\n\nto_account\x18\x02 \x01(\tR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\x04R\x06\x61mount\x12\x1c\n\treference\x18\x04 \x01(\tR\treference\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"T\n\x0fTransferBalance\x12\'\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\r.vega.AccountR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\x04R\x07\x62\x61lance\"v\n\x10TransferResponse\x12/\n\ttransfers\x18\x01 \x03(\x0b\x32\x11.vega.LedgerEntryR\ttransfers\x12\x31\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32\x15.vega.TransferBalanceR\x08\x62\x61lances\"\xad\x02\n\x0cMarginLevels\x12-\n\x12maintenance_margin\x18\x01 \x01(\x04R\x11maintenanceMargin\x12!\n\x0csearch_level\x18\x02 \x01(\x04R\x0bsearchLevel\x12%\n\x0einitial_margin\x18\x03 \x01(\x04R\rinitialMargin\x12\x38\n\x18\x63ollateral_release_level\x18\x04 \x01(\x04R\x16\x63ollateralReleaseLevel\x12\x19\n\x08party_id\x18\x05 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12\x14\n\x05\x61sset\x18\x07 \x01(\tR\x05\x61sset\x12\x1c\n\ttimestamp\x18\x08 \x01(\x03R\ttimestamp\"\xd3\t\n\nMarketData\x12\x1d\n\nmark_price\x18\x01 \x01(\x04R\tmarkPrice\x12$\n\x0e\x62\x65st_bid_price\x18\x02 \x01(\x04R\x0c\x62\x65stBidPrice\x12&\n\x0f\x62\x65st_bid_volume\x18\x03 \x01(\x04R\rbestBidVolume\x12(\n\x10\x62\x65st_offer_price\x18\x04 \x01(\x04R\x0e\x62\x65stOfferPrice\x12*\n\x11\x62\x65st_offer_volume\x18\x05 \x01(\x04R\x0f\x62\x65stOfferVolume\x12\x31\n\x15\x62\x65st_static_bid_price\x18\x06 \x01(\x04R\x12\x62\x65stStaticBidPrice\x12\x33\n\x16\x62\x65st_static_bid_volume\x18\x07 \x01(\x04R\x13\x62\x65stStaticBidVolume\x12\x35\n\x17\x62\x65st_static_offer_price\x18\x08 \x01(\x04R\x14\x62\x65stStaticOfferPrice\x12\x37\n\x18\x62\x65st_static_offer_volume\x18\t \x01(\x04R\x15\x62\x65stStaticOfferVolume\x12\x1b\n\tmid_price\x18\n \x01(\x04R\x08midPrice\x12(\n\x10static_mid_price\x18\x0b \x01(\x04R\x0estaticMidPrice\x12\x16\n\x06market\x18\x0c \x01(\tR\x06market\x12\x1c\n\ttimestamp\x18\r \x01(\x03R\ttimestamp\x12#\n\ropen_interest\x18\x0e \x01(\x04R\x0copenInterest\x12\x1f\n\x0b\x61uction_end\x18\x0f \x01(\x03R\nauctionEnd\x12#\n\rauction_start\x18\x10 \x01(\x03R\x0c\x61uctionStart\x12)\n\x10indicative_price\x18\x11 \x01(\x04R\x0findicativePrice\x12+\n\x11indicative_volume\x18\x12 \x01(\x04R\x10indicativeVolume\x12H\n\x13market_trading_mode\x18\x13 \x01(\x0e\x32\x18.vega.Market.TradingModeR\x11marketTradingMode\x12.\n\x07trigger\x18\x14 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x15 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\x12!\n\x0ctarget_stake\x18\x16 \x01(\tR\x0btargetStake\x12%\n\x0esupplied_stake\x18\x17 \x01(\tR\rsuppliedStake\x12S\n\x17price_monitoring_bounds\x18\x18 \x03(\x0b\x32\x1b.vega.PriceMonitoringBoundsR\x15priceMonitoringBounds\x12,\n\x12market_value_proxy\x18\x19 \x01(\tR\x10marketValueProxy\x12`\n\x1cliquidity_provider_fee_share\x18\x1a \x03(\x0b\x32\x1f.vega.LiquidityProviderFeeShareR\x19liquidityProviderFeeShare\"\x95\x01\n\x19LiquidityProviderFeeShare\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12*\n\x11\x65quity_like_share\x18\x02 \x01(\tR\x0f\x65quityLikeShare\x12\x36\n\x17\x61verage_entry_valuation\x18\x03 \x01(\tR\x15\x61verageEntryValuation\"\xc8\x01\n\x15PriceMonitoringBounds\x12&\n\x0fmin_valid_price\x18\x01 \x01(\x04R\rminValidPrice\x12&\n\x0fmax_valid_price\x18\x02 \x01(\x04R\rmaxValidPrice\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32\x1c.vega.PriceMonitoringTriggerR\x07trigger\x12\'\n\x0freference_price\x18\x04 \x01(\x01R\x0ereferencePrice\"Q\n\x0b\x45rrorDetail\x12\x12\n\x04\x63ode\x18\x01 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x14\n\x05inner\x18\x03 \x01(\tR\x05inner\":\n\x10NetworkParameter\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"}\n\x0eLiquidityOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x1e\n\nproportion\x18\x02 \x01(\rR\nproportion\x12\x16\n\x06offset\x18\x03 \x01(\x03R\x06offset\"s\n\x17LiquidityOrderReference\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12=\n\x0fliquidity_order\x18\x02 \x01(\x0b\x32\x14.vega.LiquidityOrderR\x0eliquidityOrder\"\xda\x04\n\x12LiquidityProvision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1d\n\ncreated_at\x18\x03 \x01(\x03R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x04 \x01(\x03R\tupdatedAt\x12#\n\tmarket_id\x18\x05 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x06 \x01(\x04R\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x07 \x01(\tR\x03\x66\x65\x65\x12\x33\n\x05sells\x18\x08 \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x05sells\x12\x31\n\x04\x62uys\x18\t \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x04\x62uys\x12\x18\n\x07version\x18\n \x01(\tR\x07version\x12\x37\n\x06status\x18\x0b \x01(\x0e\x32\x1f.vega.LiquidityProvision.StatusR\x06status\x12\x1c\n\treference\x18\x0c \x01(\tR\treference\"\x9d\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_STOPPED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x13\n\x0fSTATUS_REJECTED\x10\x04\x12\x15\n\x11STATUS_UNDEPLOYED\x10\x05\x12\x12\n\x0eSTATUS_PENDING\x10\x06\"\xd1\x01\n\x0e\x45thereumConfig\x12\x1d\n\nnetwork_id\x18\x01 \x01(\tR\tnetworkId\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12%\n\x0e\x62ridge_address\x18\x03 \x01(\tR\rbridgeAddress\x12$\n\rconfirmations\x18\x04 \x01(\rR\rconfirmations\x12\x38\n\x18staking_bridge_addresses\x18\x05 \x03(\tR\x16stakingBridgeAddresses\"\x8b\x01\n\x0f\x45pochTimestamps\x12\x1d\n\nstart_time\x18\x01 \x01(\x03R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x02 \x01(\x03R\x07\x65ndTime\x12\x1f\n\x0b\x66irst_block\x18\x03 \x01(\x04R\nfirstBlock\x12\x1d\n\nlast_block\x18\x04 \x01(\x04R\tlastBlock\"\xb8\x01\n\x05\x45poch\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12=\n\ntimestamps\x18\x02 \x01(\x0b\x32\x15.vega.EpochTimestampsB\x06\xe2\xdf\x1f\x02 \x01R\ntimestamps\x12*\n\nvalidators\x18\x03 \x03(\x0b\x32\n.vega.NodeR\nvalidators\x12\x32\n\x0b\x64\x65legations\x18\x04 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"\x96\x01\n\x12\x45pochParticipation\x12)\n\x05\x65poch\x18\x01 \x01(\x0b\x32\x0b.vega.EpochB\x06\xe2\xdf\x1f\x02X\x01R\x05\x65poch\x12\x18\n\x07offline\x18\x02 \x01(\x04R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x04R\x06online\x12#\n\rtotal_rewards\x18\x04 \x01(\x01R\x0ctotalRewards\"S\n\tEpochData\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n\x07offline\x18\x02 \x01(\x05R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x05R\x06online\"\xe0\x03\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n\x07pub_key\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12\x19\n\x08info_url\x18\x03 \x01(\tR\x07infoUrl\x12\x1a\n\x08location\x18\x04 \x01(\tR\x08location\x12,\n\x12staked_by_operator\x18\x05 \x01(\tR\x10stakedByOperator\x12.\n\x13staked_by_delegates\x18\x06 \x01(\tR\x11stakedByDelegates\x12!\n\x0cstaked_total\x18\x07 \x01(\tR\x0bstakedTotal\x12,\n\x12max_intended_stake\x18\x08 \x01(\tR\x10maxIntendedStake\x12#\n\rpending_stake\x18\t \x01(\tR\x0cpendingStake\x12\x36\n\nepoch_data\x18\n \x01(\x0b\x32\x0f.vega.EpochDataB\x06\xe2\xdf\x1f\x02 \x01R\tepochData\x12\x30\n\x06status\x18\x0b \x01(\x0e\x32\x10.vega.NodeStatusB\x06\xe2\xdf\x1f\x02 \x01R\x06status\x12\x32\n\x0b\x64\x65lagations\x18\x0c \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65lagations\"\xb8\x01\n\x08NodeData\x12!\n\x0cstaked_total\x18\x01 \x01(\tR\x0bstakedTotal\x12\x1f\n\x0btotal_nodes\x18\x02 \x01(\rR\ntotalNodes\x12%\n\x0einactive_nodes\x18\x03 \x01(\rR\rinactiveNodes\x12)\n\x10validating_nodes\x18\x04 \x01(\rR\x0fvalidatingNodes\x12\x16\n\x06uptime\x18\x05 \x01(\x02R\x06uptime\"p\n\nDelegation\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc4\x01\n\rRewardDetails\x12\x19\n\x08\x61sset_id\x18\x01 \x01(\tR\x07\x61ssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05\x65poch\x18\x03 \x01(\x04R\x05\x65poch\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12.\n\x13percentage_of_total\x18\x05 \x01(\tR\x11percentageOfTotal\x12\x1f\n\x0breceived_at\x18\x06 \x01(\x03R\nreceivedAt\"\x83\x01\n\x14RewardPerAssetDetail\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\x12-\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x13.vega.RewardDetailsR\x07\x64\x65tails\x12&\n\x0ftotal_for_asset\x18\x03 \x01(\tR\rtotalForAsset*9\n\x04Side\x12\x14\n\x10SIDE_UNSPECIFIED\x10\x00\x12\x0c\n\x08SIDE_BUY\x10\x01\x12\r\n\tSIDE_SELL\x10\x02*\x98\x01\n\x08Interval\x12\x18\n\x14INTERVAL_UNSPECIFIED\x10\x00\x12\x10\n\x0cINTERVAL_I1M\x10<\x12\x11\n\x0cINTERVAL_I5M\x10\xac\x02\x12\x12\n\rINTERVAL_I15M\x10\x84\x07\x12\x11\n\x0cINTERVAL_I1H\x10\x90\x1c\x12\x12\n\x0cINTERVAL_I6H\x10\xe0\xa8\x01\x12\x12\n\x0cINTERVAL_I1D\x10\x80\xa3\x05*\xa3\x01\n\x0e\x41uctionTrigger\x12\x1f\n\x1b\x41UCTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41UCTION_TRIGGER_BATCH\x10\x01\x12\x1b\n\x17\x41UCTION_TRIGGER_OPENING\x10\x02\x12\x19\n\x15\x41UCTION_TRIGGER_PRICE\x10\x03\x12\x1d\n\x19\x41UCTION_TRIGGER_LIQUIDITY\x10\x04*\x8b\x01\n\x0fPeggedReference\x12 \n\x1cPEGGED_REFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14PEGGED_REFERENCE_MID\x10\x01\x12\x1d\n\x19PEGGED_REFERENCE_BEST_BID\x10\x02\x12\x1d\n\x19PEGGED_REFERENCE_BEST_ASK\x10\x03*\xf8\x0f\n\nOrderError\x12\x1b\n\x17ORDER_ERROR_UNSPECIFIED\x10\x00\x12!\n\x1dORDER_ERROR_INVALID_MARKET_ID\x10\x01\x12 \n\x1cORDER_ERROR_INVALID_ORDER_ID\x10\x02\x12\x1f\n\x1bORDER_ERROR_OUT_OF_SEQUENCE\x10\x03\x12&\n\"ORDER_ERROR_INVALID_REMAINING_SIZE\x10\x04\x12\x1c\n\x18ORDER_ERROR_TIME_FAILURE\x10\x05\x12\x1f\n\x1bORDER_ERROR_REMOVAL_FAILURE\x10\x06\x12+\n\'ORDER_ERROR_INVALID_EXPIRATION_DATETIME\x10\x07\x12\'\n#ORDER_ERROR_INVALID_ORDER_REFERENCE\x10\x08\x12 \n\x1cORDER_ERROR_EDIT_NOT_ALLOWED\x10\t\x12\x1d\n\x19ORDER_ERROR_AMEND_FAILURE\x10\n\x12\x19\n\x15ORDER_ERROR_NOT_FOUND\x10\x0b\x12 \n\x1cORDER_ERROR_INVALID_PARTY_ID\x10\x0c\x12\x1d\n\x19ORDER_ERROR_MARKET_CLOSED\x10\r\x12#\n\x1fORDER_ERROR_MARGIN_CHECK_FAILED\x10\x0e\x12\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUNT\x10\x0f\x12\x1e\n\x1aORDER_ERROR_INTERNAL_ERROR\x10\x10\x12\x1c\n\x18ORDER_ERROR_INVALID_SIZE\x10\x11\x12#\n\x1fORDER_ERROR_INVALID_PERSISTENCE\x10\x12\x12\x1c\n\x18ORDER_ERROR_INVALID_TYPE\x10\x13\x12\x1c\n\x18ORDER_ERROR_SELF_TRADING\x10\x14\x12.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\x10\x15\x12%\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\x10\x16\x12%\n!ORDER_ERROR_INVALID_TIME_IN_FORCE\x10\x17\x12+\n\'ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\x10\x18\x12\x33\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\x10\x19\x12\x34\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\x10\x1a\x12)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT\x10\x1b\x12,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\x10\x1c\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\x10\x1d\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN\x10\x1e\x12,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\x10\x1f\x12\x34\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION\x10 \x12\x34\n0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\x10!\x12#\n\x1fORDER_ERROR_MUST_BE_LIMIT_ORDER\x10\"\x12\"\n\x1eORDER_ERROR_MUST_BE_GTT_OR_GTC\x10#\x12\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PRICE\x10$\x12\x33\n/ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE\x10%\x12\x34\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO\x10&\x12-\n)ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\x10\'\x12\x37\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO\x10(\x12\x34\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE\x10)\x12\x30\n,ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\x10*\x12*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE\x10+\x12\x45\nAORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER\x10,\x12.\n*ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER\x10-\x12\x35\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER\x10.\x12\x38\n4ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\x10/*\x82\x01\n\x0b\x43hainStatus\x12\x1c\n\x18\x43HAIN_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43HAIN_STATUS_DISCONNECTED\x10\x01\x12\x1a\n\x16\x43HAIN_STATUS_REPLAYING\x10\x02\x12\x1a\n\x16\x43HAIN_STATUS_CONNECTED\x10\x03*\x90\x03\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNT_TYPE_INSURANCE\x10\x01\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_SETTLEMENT\x10\x02\x12\x17\n\x13\x41\x43\x43OUNT_TYPE_MARGIN\x10\x03\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_GENERAL\x10\x04\x12$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\x10\x05\x12\x1f\n\x1b\x41\x43\x43OUNT_TYPE_FEES_LIQUIDITY\x10\x06\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_FEES_MAKER\x10\x07\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_LOCK_WITHDRAW\x10\x08\x12\x15\n\x11\x41\x43\x43OUNT_TYPE_BOND\x10\t\x12\x19\n\x15\x41\x43\x43OUNT_TYPE_EXTERNAL\x10\n\x12!\n\x1d\x41\x43\x43OUNT_TYPE_GLOBAL_INSURANCE\x10\x0b\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_GLOBAL_REWARD\x10\x0c*\xd3\x05\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12TRANSFER_TYPE_LOSS\x10\x01\x12\x15\n\x11TRANSFER_TYPE_WIN\x10\x02\x12\x17\n\x13TRANSFER_TYPE_CLOSE\x10\x03\x12\x1a\n\x16TRANSFER_TYPE_MTM_LOSS\x10\x04\x12\x19\n\x15TRANSFER_TYPE_MTM_WIN\x10\x05\x12\x1c\n\x18TRANSFER_TYPE_MARGIN_LOW\x10\x06\x12\x1d\n\x19TRANSFER_TYPE_MARGIN_HIGH\x10\x07\x12$\n TRANSFER_TYPE_MARGIN_CONFISCATED\x10\x08\x12\x1f\n\x1bTRANSFER_TYPE_MAKER_FEE_PAY\x10\t\x12#\n\x1fTRANSFER_TYPE_MAKER_FEE_RECEIVE\x10\n\x12(\n$TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\x10\x0b\x12/\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE\x10\x0c\x12#\n\x1fTRANSFER_TYPE_LIQUIDITY_FEE_PAY\x10\r\x12*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\x10\x0e\x12\x1a\n\x16TRANSFER_TYPE_BOND_LOW\x10\x0f\x12\x1b\n\x17TRANSFER_TYPE_BOND_HIGH\x10\x10\x12\x1f\n\x1bTRANSFER_TYPE_WITHDRAW_LOCK\x10\x11\x12\x1a\n\x16TRANSFER_TYPE_WITHDRAW\x10\x12\x12\x19\n\x15TRANSFER_TYPE_DEPOSIT\x10\x13\x12\x1f\n\x1bTRANSFER_TYPE_BOND_SLASHING\x10\x14\x12\x1e\n\x1aTRANSFER_TYPE_STAKE_REWARD\x10\x15*c\n\nNodeStatus\x12\x1b\n\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15NODE_STATUS_VALIDATOR\x10\x01\x12\x1d\n\x19NODE_STATUS_NON_VALIDATOR\x10\x02\x42\x37\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' + serialized_pb=b'\n\nvega.proto\x12\x04vega\x1a\x36github.com/mwitkow/go-proto-validators/validator.proto\x1a\rmarkets.proto\x1a\x0c\x61ssets.proto\"\x1d\n\x05Price\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"!\n\tTimestamp\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"S\n\x05Party\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xdf\x1f\x02 \x01R\x02id\x12\x32\n\x0b\x64\x65legations\x18\x02 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"N\n\nRiskFactor\x12\x16\n\x06market\x18\x01 \x01(\tR\x06market\x12\x14\n\x05short\x18\x02 \x01(\x01R\x05short\x12\x12\n\x04long\x18\x03 \x01(\x01R\x04long\"\xd3\x03\n\nRiskResult\x12+\n\x11updated_timestamp\x18\x01 \x01(\x03R\x10updatedTimestamp\x12\x44\n\x0crisk_factors\x18\x02 \x03(\x0b\x32!.vega.RiskResult.RiskFactorsEntryR\x0briskFactors\x12\x32\n\x15next_update_timestamp\x18\x03 \x01(\x03R\x13nextUpdateTimestamp\x12m\n\x1bpredicted_next_risk_factors\x18\x04 \x03(\x0b\x32..vega.RiskResult.PredictedNextRiskFactorsEntryR\x18predictedNextRiskFactors\x1aP\n\x10RiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\x1a]\n\x1dPredictedNextRiskFactorsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x10.vega.RiskFactorR\x05value:\x02\x38\x01\"Z\n\x0bPeggedOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x16\n\x06offset\x18\x02 \x01(\x03R\x06offset\"\xe2\x08\n\x05Order\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x1e\n\x04side\x18\x04 \x01(\x0e\x32\n.vega.SideR\x04side\x12\x14\n\x05price\x18\x05 \x01(\tR\x05price\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x1c\n\tremaining\x18\x07 \x01(\x04R\tremaining\x12;\n\rtime_in_force\x18\x08 \x01(\x0e\x32\x17.vega.Order.TimeInForceR\x0btimeInForce\x12$\n\x04type\x18\t \x01(\x0e\x32\x10.vega.Order.TypeR\x04type\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\x12*\n\x06status\x18\x0b \x01(\x0e\x32\x12.vega.Order.StatusR\x06status\x12\x1d\n\nexpires_at\x18\x0c \x01(\x03R\texpiresAt\x12\x1c\n\treference\x18\r \x01(\tR\treference\x12(\n\x06reason\x18\x0e \x01(\x0e\x32\x10.vega.OrderErrorR\x06reason\x12\x1d\n\nupdated_at\x18\x0f \x01(\x03R\tupdatedAt\x12\x18\n\x07version\x18\x10 \x01(\x04R\x07version\x12\x19\n\x08\x62\x61tch_id\x18\x11 \x01(\x04R\x07\x62\x61tchId\x12\x34\n\x0cpegged_order\x18\x12 \x01(\x0b\x32\x11.vega.PeggedOrderR\x0bpeggedOrder\x12\x34\n\x16liquidity_provision_id\x18\x13 \x01(\tR\x14liquidityProvisionId\"\xb6\x01\n\x0bTimeInForce\x12\x1d\n\x19TIME_IN_FORCE_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_IN_FORCE_GTC\x10\x01\x12\x15\n\x11TIME_IN_FORCE_GTT\x10\x02\x12\x15\n\x11TIME_IN_FORCE_IOC\x10\x03\x12\x15\n\x11TIME_IN_FORCE_FOK\x10\x04\x12\x15\n\x11TIME_IN_FORCE_GFA\x10\x05\x12\x15\n\x11TIME_IN_FORCE_GFN\x10\x06\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_LIMIT\x10\x01\x12\x0f\n\x0bTYPE_MARKET\x10\x02\x12\x10\n\x0cTYPE_NETWORK\x10\x03\"\xc9\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_EXPIRED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x12\n\x0eSTATUS_STOPPED\x10\x04\x12\x11\n\rSTATUS_FILLED\x10\x05\x12\x13\n\x0fSTATUS_REJECTED\x10\x06\x12\x1b\n\x17STATUS_PARTIALLY_FILLED\x10\x07\x12\x11\n\rSTATUS_PARKED\x10\x08\"B\n\x1dOrderCancellationConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\"\xa0\x01\n\x11OrderConfirmation\x12!\n\x05order\x18\x01 \x01(\x0b\x32\x0b.vega.OrderR\x05order\x12#\n\x06trades\x18\x02 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\x12\x43\n\x17passive_orders_affected\x18\x03 \x03(\x0b\x32\x0b.vega.OrderR\x15passiveOrdersAffected\"\xd3\x01\n\x16\x41uctionIndicativeState\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12)\n\x10indicative_price\x18\x02 \x01(\tR\x0findicativePrice\x12+\n\x11indicative_volume\x18\x03 \x01(\x04R\x10indicativeVolume\x12#\n\rauction_start\x18\x04 \x01(\x03R\x0c\x61uctionStart\x12\x1f\n\x0b\x61uction_end\x18\x05 \x01(\x03R\nauctionEnd\"\xdb\x04\n\x05Trade\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05price\x18\x03 \x01(\tR\x05price\x12\x12\n\x04size\x18\x04 \x01(\x04R\x04size\x12\x14\n\x05\x62uyer\x18\x05 \x01(\tR\x05\x62uyer\x12\x16\n\x06seller\x18\x06 \x01(\tR\x06seller\x12(\n\taggressor\x18\x07 \x01(\x0e\x32\n.vega.SideR\taggressor\x12\x1b\n\tbuy_order\x18\x08 \x01(\tR\x08\x62uyOrder\x12\x1d\n\nsell_order\x18\t \x01(\tR\tsellOrder\x12\x1c\n\ttimestamp\x18\n \x01(\x03R\ttimestamp\x12$\n\x04type\x18\x0b \x01(\x0e\x32\x10.vega.Trade.TypeR\x04type\x12&\n\tbuyer_fee\x18\x0c \x01(\x0b\x32\t.vega.FeeR\x08\x62uyerFee\x12(\n\nseller_fee\x18\r \x01(\x0b\x32\t.vega.FeeR\tsellerFee\x12.\n\x13\x62uyer_auction_batch\x18\x0e \x01(\x04R\x11\x62uyerAuctionBatch\x12\x30\n\x14seller_auction_batch\x18\x0f \x01(\x04R\x12sellerAuctionBatch\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_DEFAULT\x10\x01\x12\x1f\n\x1bTYPE_NETWORK_CLOSE_OUT_GOOD\x10\x02\x12\x1e\n\x1aTYPE_NETWORK_CLOSE_OUT_BAD\x10\x03\"v\n\x03\x46\x65\x65\x12\x1b\n\tmaker_fee\x18\x01 \x01(\tR\x08makerFee\x12-\n\x12infrastructure_fee\x18\x02 \x01(\tR\x11infrastructureFee\x12#\n\rliquidity_fee\x18\x03 \x01(\tR\x0cliquidityFee\"/\n\x08TradeSet\x12#\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.vega.TradeR\x06trades\"\xd6\x01\n\x06\x43\x61ndle\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x1a\n\x08\x64\x61tetime\x18\x02 \x01(\tR\x08\x64\x61tetime\x12\x12\n\x04high\x18\x03 \x01(\tR\x04high\x12\x10\n\x03low\x18\x04 \x01(\tR\x03low\x12\x12\n\x04open\x18\x05 \x01(\tR\x04open\x12\x14\n\x05\x63lose\x18\x06 \x01(\tR\x05\x63lose\x12\x16\n\x06volume\x18\x07 \x01(\x04R\x06volume\x12*\n\x08interval\x18\x08 \x01(\x0e\x32\x0e.vega.IntervalR\x08interval\"d\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12(\n\x10number_of_orders\x18\x02 \x01(\x04R\x0enumberOfOrders\x12\x16\n\x06volume\x18\x03 \x01(\x04R\x06volume\"\x9d\x01\n\x0bMarketDepth\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xa3\x01\n\x11MarketDepthUpdate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\"\n\x03\x62uy\x18\x02 \x03(\x0b\x32\x10.vega.PriceLevelR\x03\x62uy\x12$\n\x04sell\x18\x03 \x03(\x0b\x32\x10.vega.PriceLevelR\x04sell\x12\'\n\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"\xfc\x01\n\x08Position\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1f\n\x0bopen_volume\x18\x03 \x01(\x03R\nopenVolume\x12!\n\x0crealised_pnl\x18\x04 \x01(\tR\x0brealisedPnl\x12%\n\x0eunrealised_pnl\x18\x05 \x01(\tR\runrealisedPnl\x12.\n\x13\x61verage_entry_price\x18\x06 \x01(\tR\x11\x61verageEntryPrice\x12\x1d\n\nupdated_at\x18\x07 \x01(\x03R\tupdatedAt\"=\n\rPositionTrade\x12\x16\n\x06volume\x18\x01 \x01(\x03R\x06volume\x12\x14\n\x05price\x18\x02 \x01(\tR\x05price\"\xe4\x02\n\x07\x44\x65posit\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12,\n\x06status\x18\x02 \x01(\x0e\x32\x14.vega.Deposit.StatusR\x06status\x12\x19\n\x08party_id\x18\x03 \x01(\tR\x07partyId\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x17\n\x07tx_hash\x18\x06 \x01(\tR\x06txHash\x12-\n\x12\x63redited_timestamp\x18\x07 \x01(\x03R\x11\x63reditedTimestamp\x12+\n\x11\x63reated_timestamp\x18\x08 \x01(\x03R\x10\x63reatedTimestamp\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"\xbb\x03\n\nWithdrawal\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12/\n\x06status\x18\x05 \x01(\x0e\x32\x17.vega.Withdrawal.StatusR\x06status\x12\x10\n\x03ref\x18\x06 \x01(\tR\x03ref\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12\x17\n\x07tx_hash\x18\x08 \x01(\tR\x06txHash\x12+\n\x11\x63reated_timestamp\x18\t \x01(\x03R\x10\x63reatedTimestamp\x12/\n\x13withdrawn_timestamp\x18\n \x01(\x03R\x12withdrawnTimestamp\x12#\n\x03\x65xt\x18\x0b \x01(\x0b\x32\x11.vega.WithdrawExtR\x03\x65xt\"]\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATUS_OPEN\x10\x01\x12\x14\n\x10STATUS_CANCELLED\x10\x02\x12\x14\n\x10STATUS_FINALIZED\x10\x03\"D\n\x0bWithdrawExt\x12.\n\x05\x65rc20\x18\x01 \x01(\x0b\x32\x16.vega.Erc20WithdrawExtH\x00R\x05\x65rc20B\x05\n\x03\x65xt\"=\n\x10\x45rc20WithdrawExt\x12)\n\x10receiver_address\x18\x01 \x01(\tR\x0freceiverAddress\"\xa3\x01\n\x07\x41\x63\x63ount\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x14\n\x05\x61sset\x18\x04 \x01(\tR\x05\x61sset\x12\x1b\n\tmarket_id\x18\x05 \x01(\tR\x08marketId\x12%\n\x04type\x18\x06 \x01(\x0e\x32\x11.vega.AccountTypeR\x04type\"?\n\x0f\x46inancialAmount\x12\x16\n\x06\x61mount\x18\x01 \x01(\tR\x06\x61mount\x12\x14\n\x05\x61sset\x18\x02 \x01(\tR\x05\x61sset\"\x96\x01\n\x08Transfer\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\x12-\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x15.vega.FinancialAmountR\x06\x61mount\x12&\n\x04type\x18\x03 \x01(\x0e\x32\x12.vega.TransferTypeR\x04type\x12\x1d\n\nmin_amount\x18\x04 \x01(\tR\tminAmount\"\xdc\x01\n\x0fTransferRequest\x12\x30\n\x0c\x66rom_account\x18\x01 \x03(\x0b\x32\r.vega.AccountR\x0b\x66romAccount\x12,\n\nto_account\x18\x02 \x03(\x0b\x32\r.vega.AccountR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1d\n\nmin_amount\x18\x04 \x01(\tR\tminAmount\x12\x14\n\x05\x61sset\x18\x05 \x01(\tR\x05\x61sset\x12\x1c\n\treference\x18\x06 \x01(\tR\treference\"\xb7\x01\n\x0bLedgerEntry\x12!\n\x0c\x66rom_account\x18\x01 \x01(\tR\x0b\x66romAccount\x12\x1d\n\nto_account\x18\x02 \x01(\tR\ttoAccount\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1c\n\treference\x18\x04 \x01(\tR\treference\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\"T\n\x0fTransferBalance\x12\'\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\r.vega.AccountR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\tR\x07\x62\x61lance\"v\n\x10TransferResponse\x12/\n\ttransfers\x18\x01 \x03(\x0b\x32\x11.vega.LedgerEntryR\ttransfers\x12\x31\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32\x15.vega.TransferBalanceR\x08\x62\x61lances\"\xad\x02\n\x0cMarginLevels\x12-\n\x12maintenance_margin\x18\x01 \x01(\tR\x11maintenanceMargin\x12!\n\x0csearch_level\x18\x02 \x01(\tR\x0bsearchLevel\x12%\n\x0einitial_margin\x18\x03 \x01(\tR\rinitialMargin\x12\x38\n\x18\x63ollateral_release_level\x18\x04 \x01(\tR\x16\x63ollateralReleaseLevel\x12\x19\n\x08party_id\x18\x05 \x01(\tR\x07partyId\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12\x14\n\x05\x61sset\x18\x07 \x01(\tR\x05\x61sset\x12\x1c\n\ttimestamp\x18\x08 \x01(\x03R\ttimestamp\"\xd3\t\n\nMarketData\x12\x1d\n\nmark_price\x18\x01 \x01(\tR\tmarkPrice\x12$\n\x0e\x62\x65st_bid_price\x18\x02 \x01(\tR\x0c\x62\x65stBidPrice\x12&\n\x0f\x62\x65st_bid_volume\x18\x03 \x01(\x04R\rbestBidVolume\x12(\n\x10\x62\x65st_offer_price\x18\x04 \x01(\tR\x0e\x62\x65stOfferPrice\x12*\n\x11\x62\x65st_offer_volume\x18\x05 \x01(\x04R\x0f\x62\x65stOfferVolume\x12\x31\n\x15\x62\x65st_static_bid_price\x18\x06 \x01(\tR\x12\x62\x65stStaticBidPrice\x12\x33\n\x16\x62\x65st_static_bid_volume\x18\x07 \x01(\x04R\x13\x62\x65stStaticBidVolume\x12\x35\n\x17\x62\x65st_static_offer_price\x18\x08 \x01(\tR\x14\x62\x65stStaticOfferPrice\x12\x37\n\x18\x62\x65st_static_offer_volume\x18\t \x01(\x04R\x15\x62\x65stStaticOfferVolume\x12\x1b\n\tmid_price\x18\n \x01(\tR\x08midPrice\x12(\n\x10static_mid_price\x18\x0b \x01(\tR\x0estaticMidPrice\x12\x16\n\x06market\x18\x0c \x01(\tR\x06market\x12\x1c\n\ttimestamp\x18\r \x01(\x03R\ttimestamp\x12#\n\ropen_interest\x18\x0e \x01(\x04R\x0copenInterest\x12\x1f\n\x0b\x61uction_end\x18\x0f \x01(\x03R\nauctionEnd\x12#\n\rauction_start\x18\x10 \x01(\x03R\x0c\x61uctionStart\x12)\n\x10indicative_price\x18\x11 \x01(\tR\x0findicativePrice\x12+\n\x11indicative_volume\x18\x12 \x01(\x04R\x10indicativeVolume\x12H\n\x13market_trading_mode\x18\x13 \x01(\x0e\x32\x18.vega.Market.TradingModeR\x11marketTradingMode\x12.\n\x07trigger\x18\x14 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x07trigger\x12\x41\n\x11\x65xtension_trigger\x18\x15 \x01(\x0e\x32\x14.vega.AuctionTriggerR\x10\x65xtensionTrigger\x12!\n\x0ctarget_stake\x18\x16 \x01(\tR\x0btargetStake\x12%\n\x0esupplied_stake\x18\x17 \x01(\tR\rsuppliedStake\x12S\n\x17price_monitoring_bounds\x18\x18 \x03(\x0b\x32\x1b.vega.PriceMonitoringBoundsR\x15priceMonitoringBounds\x12,\n\x12market_value_proxy\x18\x19 \x01(\tR\x10marketValueProxy\x12`\n\x1cliquidity_provider_fee_share\x18\x1a \x03(\x0b\x32\x1f.vega.LiquidityProviderFeeShareR\x19liquidityProviderFeeShare\"\x95\x01\n\x19LiquidityProviderFeeShare\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12*\n\x11\x65quity_like_share\x18\x02 \x01(\tR\x0f\x65quityLikeShare\x12\x36\n\x17\x61verage_entry_valuation\x18\x03 \x01(\tR\x15\x61verageEntryValuation\"\xc8\x01\n\x15PriceMonitoringBounds\x12&\n\x0fmin_valid_price\x18\x01 \x01(\tR\rminValidPrice\x12&\n\x0fmax_valid_price\x18\x02 \x01(\tR\rmaxValidPrice\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32\x1c.vega.PriceMonitoringTriggerR\x07trigger\x12\'\n\x0freference_price\x18\x04 \x01(\x01R\x0ereferencePrice\"Q\n\x0b\x45rrorDetail\x12\x12\n\x04\x63ode\x18\x01 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x14\n\x05inner\x18\x03 \x01(\tR\x05inner\":\n\x10NetworkParameter\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"}\n\x0eLiquidityOrder\x12\x33\n\treference\x18\x01 \x01(\x0e\x32\x15.vega.PeggedReferenceR\treference\x12\x1e\n\nproportion\x18\x02 \x01(\rR\nproportion\x12\x16\n\x06offset\x18\x03 \x01(\x03R\x06offset\"s\n\x17LiquidityOrderReference\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\x12=\n\x0fliquidity_order\x18\x02 \x01(\x0b\x32\x14.vega.LiquidityOrderR\x0eliquidityOrder\"\xda\x04\n\x12LiquidityProvision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x1d\n\ncreated_at\x18\x03 \x01(\x03R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x04 \x01(\x03R\tupdatedAt\x12#\n\tmarket_id\x18\x05 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x08marketId\x12+\n\x11\x63ommitment_amount\x18\x06 \x01(\tR\x10\x63ommitmentAmount\x12\x10\n\x03\x66\x65\x65\x18\x07 \x01(\tR\x03\x66\x65\x65\x12\x33\n\x05sells\x18\x08 \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x05sells\x12\x31\n\x04\x62uys\x18\t \x03(\x0b\x32\x1d.vega.LiquidityOrderReferenceR\x04\x62uys\x12\x18\n\x07version\x18\n \x01(\tR\x07version\x12\x37\n\x06status\x18\x0b \x01(\x0e\x32\x1f.vega.LiquidityProvision.StatusR\x06status\x12\x1c\n\treference\x18\x0c \x01(\tR\treference\"\x9d\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x11\n\rSTATUS_ACTIVE\x10\x01\x12\x12\n\x0eSTATUS_STOPPED\x10\x02\x12\x14\n\x10STATUS_CANCELLED\x10\x03\x12\x13\n\x0fSTATUS_REJECTED\x10\x04\x12\x15\n\x11STATUS_UNDEPLOYED\x10\x05\x12\x12\n\x0eSTATUS_PENDING\x10\x06\"\xd1\x01\n\x0e\x45thereumConfig\x12\x1d\n\nnetwork_id\x18\x01 \x01(\tR\tnetworkId\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12%\n\x0e\x62ridge_address\x18\x03 \x01(\tR\rbridgeAddress\x12$\n\rconfirmations\x18\x04 \x01(\rR\rconfirmations\x12\x38\n\x18staking_bridge_addresses\x18\x05 \x03(\tR\x16stakingBridgeAddresses\"\x8b\x01\n\x0f\x45pochTimestamps\x12\x1d\n\nstart_time\x18\x01 \x01(\x03R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x02 \x01(\x03R\x07\x65ndTime\x12\x1f\n\x0b\x66irst_block\x18\x03 \x01(\x04R\nfirstBlock\x12\x1d\n\nlast_block\x18\x04 \x01(\x04R\tlastBlock\"\xb8\x01\n\x05\x45poch\x12\x10\n\x03seq\x18\x01 \x01(\x04R\x03seq\x12=\n\ntimestamps\x18\x02 \x01(\x0b\x32\x15.vega.EpochTimestampsB\x06\xe2\xdf\x1f\x02 \x01R\ntimestamps\x12*\n\nvalidators\x18\x03 \x03(\x0b\x32\n.vega.NodeR\nvalidators\x12\x32\n\x0b\x64\x65legations\x18\x04 \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65legations\"\x96\x01\n\x12\x45pochParticipation\x12)\n\x05\x65poch\x18\x01 \x01(\x0b\x32\x0b.vega.EpochB\x06\xe2\xdf\x1f\x02X\x01R\x05\x65poch\x12\x18\n\x07offline\x18\x02 \x01(\x04R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x04R\x06online\x12#\n\rtotal_rewards\x18\x04 \x01(\x01R\x0ctotalRewards\"S\n\tEpochData\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n\x07offline\x18\x02 \x01(\x05R\x07offline\x12\x16\n\x06online\x18\x03 \x01(\x05R\x06online\"\xa1\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n\x07pub_key\x18\x02 \x01(\tB\x06\xe2\xdf\x1f\x02X\x01R\x06pubKey\x12\x19\n\x08info_url\x18\x03 \x01(\tR\x07infoUrl\x12\x1a\n\x08location\x18\x04 \x01(\tR\x08location\x12,\n\x12staked_by_operator\x18\x05 \x01(\tR\x10stakedByOperator\x12.\n\x13staked_by_delegates\x18\x06 \x01(\tR\x11stakedByDelegates\x12!\n\x0cstaked_total\x18\x07 \x01(\tR\x0bstakedTotal\x12,\n\x12max_intended_stake\x18\x08 \x01(\tR\x10maxIntendedStake\x12#\n\rpending_stake\x18\t \x01(\tR\x0cpendingStake\x12\x36\n\nepoch_data\x18\n \x01(\x0b\x32\x0f.vega.EpochDataB\x06\xe2\xdf\x1f\x02 \x01R\tepochData\x12\x30\n\x06status\x18\x0b \x01(\x0e\x32\x10.vega.NodeStatusB\x06\xe2\xdf\x1f\x02 \x01R\x06status\x12\x32\n\x0b\x64\x65lagations\x18\x0c \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65lagations\x12\x14\n\x05score\x18\r \x01(\tR\x05score\x12)\n\x10normalised_score\x18\x0e \x01(\tR\x0fnormalisedScore\"\xb8\x01\n\x08NodeData\x12!\n\x0cstaked_total\x18\x01 \x01(\tR\x0bstakedTotal\x12\x1f\n\x0btotal_nodes\x18\x02 \x01(\rR\ntotalNodes\x12%\n\x0einactive_nodes\x18\x03 \x01(\rR\rinactiveNodes\x12)\n\x10validating_nodes\x18\x04 \x01(\rR\x0fvalidatingNodes\x12\x16\n\x06uptime\x18\x05 \x01(\x02R\x06uptime\"p\n\nDelegation\x12\x14\n\x05party\x18\x01 \x01(\tR\x05party\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1b\n\tepoch_seq\x18\x04 \x01(\tR\x08\x65pochSeq\"\xc4\x01\n\rRewardDetails\x12\x19\n\x08\x61sset_id\x18\x01 \x01(\tR\x07\x61ssetId\x12\x19\n\x08party_id\x18\x02 \x01(\tR\x07partyId\x12\x14\n\x05\x65poch\x18\x03 \x01(\x04R\x05\x65poch\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12.\n\x13percentage_of_total\x18\x05 \x01(\tR\x11percentageOfTotal\x12\x1f\n\x0breceived_at\x18\x06 \x01(\x03R\nreceivedAt\"\x83\x01\n\x14RewardPerAssetDetail\x12\x14\n\x05\x61sset\x18\x01 \x01(\tR\x05\x61sset\x12-\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x13.vega.RewardDetailsR\x07\x64\x65tails\x12&\n\x0ftotal_for_asset\x18\x03 \x01(\tR\rtotalForAsset*9\n\x04Side\x12\x14\n\x10SIDE_UNSPECIFIED\x10\x00\x12\x0c\n\x08SIDE_BUY\x10\x01\x12\r\n\tSIDE_SELL\x10\x02*\x98\x01\n\x08Interval\x12\x18\n\x14INTERVAL_UNSPECIFIED\x10\x00\x12\x10\n\x0cINTERVAL_I1M\x10<\x12\x11\n\x0cINTERVAL_I5M\x10\xac\x02\x12\x12\n\rINTERVAL_I15M\x10\x84\x07\x12\x11\n\x0cINTERVAL_I1H\x10\x90\x1c\x12\x12\n\x0cINTERVAL_I6H\x10\xe0\xa8\x01\x12\x12\n\x0cINTERVAL_I1D\x10\x80\xa3\x05*\xa3\x01\n\x0e\x41uctionTrigger\x12\x1f\n\x1b\x41UCTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41UCTION_TRIGGER_BATCH\x10\x01\x12\x1b\n\x17\x41UCTION_TRIGGER_OPENING\x10\x02\x12\x19\n\x15\x41UCTION_TRIGGER_PRICE\x10\x03\x12\x1d\n\x19\x41UCTION_TRIGGER_LIQUIDITY\x10\x04*\x8b\x01\n\x0fPeggedReference\x12 \n\x1cPEGGED_REFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14PEGGED_REFERENCE_MID\x10\x01\x12\x1d\n\x19PEGGED_REFERENCE_BEST_BID\x10\x02\x12\x1d\n\x19PEGGED_REFERENCE_BEST_ASK\x10\x03*\xf8\x0f\n\nOrderError\x12\x1b\n\x17ORDER_ERROR_UNSPECIFIED\x10\x00\x12!\n\x1dORDER_ERROR_INVALID_MARKET_ID\x10\x01\x12 \n\x1cORDER_ERROR_INVALID_ORDER_ID\x10\x02\x12\x1f\n\x1bORDER_ERROR_OUT_OF_SEQUENCE\x10\x03\x12&\n\"ORDER_ERROR_INVALID_REMAINING_SIZE\x10\x04\x12\x1c\n\x18ORDER_ERROR_TIME_FAILURE\x10\x05\x12\x1f\n\x1bORDER_ERROR_REMOVAL_FAILURE\x10\x06\x12+\n\'ORDER_ERROR_INVALID_EXPIRATION_DATETIME\x10\x07\x12\'\n#ORDER_ERROR_INVALID_ORDER_REFERENCE\x10\x08\x12 \n\x1cORDER_ERROR_EDIT_NOT_ALLOWED\x10\t\x12\x1d\n\x19ORDER_ERROR_AMEND_FAILURE\x10\n\x12\x19\n\x15ORDER_ERROR_NOT_FOUND\x10\x0b\x12 \n\x1cORDER_ERROR_INVALID_PARTY_ID\x10\x0c\x12\x1d\n\x19ORDER_ERROR_MARKET_CLOSED\x10\r\x12#\n\x1fORDER_ERROR_MARGIN_CHECK_FAILED\x10\x0e\x12\'\n#ORDER_ERROR_MISSING_GENERAL_ACCOUNT\x10\x0f\x12\x1e\n\x1aORDER_ERROR_INTERNAL_ERROR\x10\x10\x12\x1c\n\x18ORDER_ERROR_INVALID_SIZE\x10\x11\x12#\n\x1fORDER_ERROR_INVALID_PERSISTENCE\x10\x12\x12\x1c\n\x18ORDER_ERROR_INVALID_TYPE\x10\x13\x12\x1c\n\x18ORDER_ERROR_SELF_TRADING\x10\x14\x12.\n*ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\x10\x15\x12%\n!ORDER_ERROR_INCORRECT_MARKET_TYPE\x10\x16\x12%\n!ORDER_ERROR_INVALID_TIME_IN_FORCE\x10\x17\x12+\n\'ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION\x10\x18\x12\x33\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING\x10\x19\x12\x34\n0ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT\x10\x1a\x12)\n%ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT\x10\x1b\x12,\n(ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\x10\x1c\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\x10\x1d\x12*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN\x10\x1e\x12,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN\x10\x1f\x12\x34\n0ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION\x10 \x12\x34\n0ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION\x10!\x12#\n\x1fORDER_ERROR_MUST_BE_LIMIT_ORDER\x10\"\x12\"\n\x1eORDER_ERROR_MUST_BE_GTT_OR_GTC\x10#\x12\'\n#ORDER_ERROR_WITHOUT_REFERENCE_PRICE\x10$\x12\x33\n/ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE\x10%\x12\x34\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO\x10&\x12-\n)ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO\x10\'\x12\x37\n3ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO\x10(\x12\x34\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE\x10)\x12\x30\n,ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO\x10*\x12*\n&ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE\x10+\x12\x45\nAORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER\x10,\x12.\n*ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER\x10-\x12\x35\n1ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER\x10.\x12\x38\n4ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS\x10/*\x82\x01\n\x0b\x43hainStatus\x12\x1c\n\x18\x43HAIN_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43HAIN_STATUS_DISCONNECTED\x10\x01\x12\x1a\n\x16\x43HAIN_STATUS_REPLAYING\x10\x02\x12\x1a\n\x16\x43HAIN_STATUS_CONNECTED\x10\x03*\x90\x03\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNT_TYPE_INSURANCE\x10\x01\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_SETTLEMENT\x10\x02\x12\x17\n\x13\x41\x43\x43OUNT_TYPE_MARGIN\x10\x03\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_GENERAL\x10\x04\x12$\n ACCOUNT_TYPE_FEES_INFRASTRUCTURE\x10\x05\x12\x1f\n\x1b\x41\x43\x43OUNT_TYPE_FEES_LIQUIDITY\x10\x06\x12\x1b\n\x17\x41\x43\x43OUNT_TYPE_FEES_MAKER\x10\x07\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_LOCK_WITHDRAW\x10\x08\x12\x15\n\x11\x41\x43\x43OUNT_TYPE_BOND\x10\t\x12\x19\n\x15\x41\x43\x43OUNT_TYPE_EXTERNAL\x10\n\x12!\n\x1d\x41\x43\x43OUNT_TYPE_GLOBAL_INSURANCE\x10\x0b\x12\x1e\n\x1a\x41\x43\x43OUNT_TYPE_GLOBAL_REWARD\x10\x0c*\xd3\x05\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12TRANSFER_TYPE_LOSS\x10\x01\x12\x15\n\x11TRANSFER_TYPE_WIN\x10\x02\x12\x17\n\x13TRANSFER_TYPE_CLOSE\x10\x03\x12\x1a\n\x16TRANSFER_TYPE_MTM_LOSS\x10\x04\x12\x19\n\x15TRANSFER_TYPE_MTM_WIN\x10\x05\x12\x1c\n\x18TRANSFER_TYPE_MARGIN_LOW\x10\x06\x12\x1d\n\x19TRANSFER_TYPE_MARGIN_HIGH\x10\x07\x12$\n TRANSFER_TYPE_MARGIN_CONFISCATED\x10\x08\x12\x1f\n\x1bTRANSFER_TYPE_MAKER_FEE_PAY\x10\t\x12#\n\x1fTRANSFER_TYPE_MAKER_FEE_RECEIVE\x10\n\x12(\n$TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY\x10\x0b\x12/\n+TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE\x10\x0c\x12#\n\x1fTRANSFER_TYPE_LIQUIDITY_FEE_PAY\x10\r\x12*\n&TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\x10\x0e\x12\x1a\n\x16TRANSFER_TYPE_BOND_LOW\x10\x0f\x12\x1b\n\x17TRANSFER_TYPE_BOND_HIGH\x10\x10\x12\x1f\n\x1bTRANSFER_TYPE_WITHDRAW_LOCK\x10\x11\x12\x1a\n\x16TRANSFER_TYPE_WITHDRAW\x10\x12\x12\x19\n\x15TRANSFER_TYPE_DEPOSIT\x10\x13\x12\x1f\n\x1bTRANSFER_TYPE_BOND_SLASHING\x10\x14\x12\x1e\n\x1aTRANSFER_TYPE_STAKE_REWARD\x10\x15*c\n\nNodeStatus\x12\x1b\n\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15NODE_STATUS_VALIDATOR\x10\x01\x12\x1d\n\x19NODE_STATUS_NON_VALIDATOR\x10\x02\x42\x37\n\x14io.vegaprotocol.vegaZ\x1f\x63ode.vegaprotocol.io/vega/protob\x06proto3' , dependencies=[github_dot_com_dot_mwitkow_dot_go__proto__validators_dot_validator__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,assets__pb2.DESCRIPTOR,]) @@ -52,8 +52,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10928, - serialized_end=10985, + serialized_start=10993, + serialized_end=11050, ) _sym_db.RegisterEnumDescriptor(_SIDE) @@ -103,8 +103,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10988, - serialized_end=11140, + serialized_start=11053, + serialized_end=11205, ) _sym_db.RegisterEnumDescriptor(_INTERVAL) @@ -144,8 +144,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11143, - serialized_end=11306, + serialized_start=11208, + serialized_end=11371, ) _sym_db.RegisterEnumDescriptor(_AUCTIONTRIGGER) @@ -180,8 +180,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11309, - serialized_end=11448, + serialized_start=11374, + serialized_end=11513, ) _sym_db.RegisterEnumDescriptor(_PEGGEDREFERENCE) @@ -436,8 +436,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11451, - serialized_end=13491, + serialized_start=11516, + serialized_end=13556, ) _sym_db.RegisterEnumDescriptor(_ORDERERROR) @@ -472,8 +472,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13494, - serialized_end=13624, + serialized_start=13559, + serialized_end=13689, ) _sym_db.RegisterEnumDescriptor(_CHAINSTATUS) @@ -553,8 +553,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13627, - serialized_end=14027, + serialized_start=13692, + serialized_end=14092, ) _sym_db.RegisterEnumDescriptor(_ACCOUNTTYPE) @@ -679,8 +679,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=14030, - serialized_end=14753, + serialized_start=14095, + serialized_end=14818, ) _sym_db.RegisterEnumDescriptor(_TRANSFERTYPE) @@ -710,8 +710,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=14755, - serialized_end=14854, + serialized_start=14820, + serialized_end=14919, ) _sym_db.RegisterEnumDescriptor(_NODESTATUS) @@ -1138,8 +1138,8 @@ fields=[ _descriptor.FieldDescriptor( name='value', full_name='vega.Price.value', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='value', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1483,8 +1483,8 @@ serialized_options=None, json_name='side', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='price', full_name='vega.Order.price', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='price', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1701,8 +1701,8 @@ serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='indicative_price', full_name='vega.AuctionIndicativeState.indicative_price', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='indicativePrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1768,8 +1768,8 @@ serialized_options=None, json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='price', full_name='vega.Trade.price', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='price', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1885,22 +1885,22 @@ fields=[ _descriptor.FieldDescriptor( name='maker_fee', full_name='vega.Fee.maker_fee', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='makerFee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='infrastructure_fee', full_name='vega.Fee.infrastructure_fee', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='infrastructureFee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='liquidity_fee', full_name='vega.Fee.liquidity_fee', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='liquidityFee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -1977,29 +1977,29 @@ serialized_options=None, json_name='datetime', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='high', full_name='vega.Candle.high', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='high', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='low', full_name='vega.Candle.low', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='low', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='open', full_name='vega.Candle.open', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='open', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='close', full_name='vega.Candle.close', index=5, - number=6, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='close', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2044,8 +2044,8 @@ fields=[ _descriptor.FieldDescriptor( name='price', full_name='vega.PriceLevel.price', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='price', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2217,22 +2217,22 @@ serialized_options=None, json_name='openVolume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='realised_pnl', full_name='vega.Position.realised_pnl', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='realisedPnl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='unrealised_pnl', full_name='vega.Position.unrealised_pnl', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='unrealisedPnl', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='average_entry_price', full_name='vega.Position.average_entry_price', index=5, - number=6, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='averageEntryPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2277,8 +2277,8 @@ serialized_options=None, json_name='volume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='price', full_name='vega.PositionTrade.price', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='price', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2405,8 +2405,8 @@ serialized_options=None, json_name='partyId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.Withdrawal.amount', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2577,8 +2577,8 @@ serialized_options=None, json_name='owner', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='balance', full_name='vega.Account.balance', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='balance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2630,8 +2630,8 @@ fields=[ _descriptor.FieldDescriptor( name='amount', full_name='vega.FinancialAmount.amount', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2690,8 +2690,8 @@ serialized_options=None, json_name='type', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='min_amount', full_name='vega.Transfer.min_amount', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='minAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2736,15 +2736,15 @@ serialized_options=None, json_name='toAccount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.TransferRequest.amount', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='min_amount', full_name='vega.TransferRequest.min_amount', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='minAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2803,8 +2803,8 @@ serialized_options=None, json_name='toAccount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='amount', full_name='vega.LedgerEntry.amount', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='amount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2863,8 +2863,8 @@ serialized_options=None, json_name='account', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='balance', full_name='vega.TransferBalance.balance', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='balance', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -2934,29 +2934,29 @@ fields=[ _descriptor.FieldDescriptor( name='maintenance_margin', full_name='vega.MarginLevels.maintenance_margin', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='maintenanceMargin', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='search_level', full_name='vega.MarginLevels.search_level', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='searchLevel', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='initial_margin', full_name='vega.MarginLevels.initial_margin', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='initialMargin', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='collateral_release_level', full_name='vega.MarginLevels.collateral_release_level', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='collateralReleaseLevel', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3015,15 +3015,15 @@ fields=[ _descriptor.FieldDescriptor( name='mark_price', full_name='vega.MarketData.mark_price', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='markPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='best_bid_price', full_name='vega.MarketData.best_bid_price', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='bestBidPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3036,8 +3036,8 @@ serialized_options=None, json_name='bestBidVolume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='best_offer_price', full_name='vega.MarketData.best_offer_price', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='bestOfferPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3050,8 +3050,8 @@ serialized_options=None, json_name='bestOfferVolume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='best_static_bid_price', full_name='vega.MarketData.best_static_bid_price', index=5, - number=6, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='bestStaticBidPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3064,8 +3064,8 @@ serialized_options=None, json_name='bestStaticBidVolume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='best_static_offer_price', full_name='vega.MarketData.best_static_offer_price', index=7, - number=8, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='bestStaticOfferPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3078,15 +3078,15 @@ serialized_options=None, json_name='bestStaticOfferVolume', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='mid_price', full_name='vega.MarketData.mid_price', index=9, - number=10, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=10, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='midPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='static_mid_price', full_name='vega.MarketData.static_mid_price', index=10, - number=11, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=11, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='staticMidPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3127,8 +3127,8 @@ serialized_options=None, json_name='auctionStart', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='indicative_price', full_name='vega.MarketData.indicative_price', index=16, - number=17, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=17, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='indicativePrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3268,15 +3268,15 @@ fields=[ _descriptor.FieldDescriptor( name='min_valid_price', full_name='vega.PriceMonitoringBounds.min_valid_price', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='minValidPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='max_valid_price', full_name='vega.PriceMonitoringBounds.max_valid_price', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='maxValidPrice', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3526,8 +3526,8 @@ serialized_options=b'\342\337\037\002X\001', json_name='marketId', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='commitment_amount', full_name='vega.LiquidityProvision.commitment_amount', index=5, - number=6, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='commitmentAmount', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -3948,6 +3948,20 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, json_name='delagations', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='score', full_name='vega.Node.score', index=12, + number=13, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='score', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='normalised_score', full_name='vega.Node.normalised_score', index=13, + number=14, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, json_name='normalisedScore', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3961,7 +3975,7 @@ oneofs=[ ], serialized_start=9812, - serialized_end=10292, + serialized_end=10357, ) @@ -4020,8 +4034,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10295, - serialized_end=10479, + serialized_start=10360, + serialized_end=10544, ) @@ -4073,8 +4087,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10481, - serialized_end=10593, + serialized_start=10546, + serialized_end=10658, ) @@ -4140,8 +4154,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10596, - serialized_end=10792, + serialized_start=10661, + serialized_end=10857, ) @@ -4186,8 +4200,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10795, - serialized_end=10926, + serialized_start=10860, + serialized_end=10991, ) _PARTY.fields_by_name['delegations'].message_type = _DELEGATION diff --git a/grpc/doc/doc.json b/grpc/doc/doc.json index d78f02dc..f0bc930f 100644 --- a/grpc/doc/doc.json +++ b/grpc/doc/doc.json @@ -3074,9 +3074,9 @@ "name": "balance", "description": "Balance of the asset, the balance is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places\nand importantly balances cannot be negative", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3146,9 +3146,9 @@ "name": "indicative_price", "description": "The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3230,9 +3230,9 @@ "name": "high", "description": "Highest price for trading during the candle interval", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3242,9 +3242,9 @@ "name": "low", "description": "Lowest price for trading during the candle interval", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3254,9 +3254,9 @@ "name": "open", "description": "Open trade price", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3266,9 +3266,9 @@ "name": "close", "description": "Closing trade price", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3870,9 +3870,9 @@ "name": "maker_fee", "description": "Fee amount paid to the non-aggressive party of the trade", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3882,9 +3882,9 @@ "name": "infrastructure_fee", "description": "Fee amount paid for maintaining the Vega infrastructure", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3894,9 +3894,9 @@ "name": "liquidity_fee", "description": "Fee amount paid to market makers", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3918,9 +3918,9 @@ "name": "amount", "description": "A signed integer amount of asset", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -3978,9 +3978,9 @@ "name": "amount", "description": "An amount to transfer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4238,9 +4238,9 @@ "name": "commitment_amount", "description": "Specified as a unitless number that represents the amount of settlement asset of the market", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4334,9 +4334,9 @@ "name": "maintenance_margin", "description": "Maintenance margin value", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4346,9 +4346,9 @@ "name": "search_level", "description": "Search level value", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4358,9 +4358,9 @@ "name": "initial_margin", "description": "Initial margin value", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4370,9 +4370,9 @@ "name": "collateral_release_level", "description": "Collateral release level value", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4442,9 +4442,9 @@ "name": "mark_price", "description": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4454,9 +4454,9 @@ "name": "best_bid_price", "description": "Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4478,9 +4478,9 @@ "name": "best_offer_price", "description": "Lowest price level on an order book for offer orders", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4502,9 +4502,9 @@ "name": "best_static_bid_price", "description": "Highest price on the order book for buy orders not including pegged orders", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4526,9 +4526,9 @@ "name": "best_static_offer_price", "description": "Lowest price on the order book for sell orders not including pegged orders", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4550,9 +4550,9 @@ "name": "mid_price", "description": "Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4562,9 +4562,9 @@ "name": "static_mid_price", "description": "Arithmetic average of the best static bid price and best static offer price", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -4634,9 +4634,9 @@ "name": "indicative_price", "description": "Indicative price (zero if not in auction)", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5085,6 +5085,30 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" + }, + { + "name": "score", + "description": "Node score", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "normalised_score", + "description": "Node normalised score", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, @@ -5222,9 +5246,9 @@ "name": "price", "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5602,9 +5626,9 @@ "name": "realised_pnl", "description": "Realised profit and loss for the position, value is signed +ve for long and -ve for short", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5614,9 +5638,9 @@ "name": "unrealised_pnl", "description": "Unrealised profit and loss for the position, value is signed +ve for long and -ve for short", "label": "", - "type": "int64", - "longType": "int64", - "fullType": "int64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5626,9 +5650,9 @@ "name": "average_entry_price", "description": "Average entry price for the position, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5674,9 +5698,9 @@ "name": "price", "description": "Price for the position trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5698,9 +5722,9 @@ "name": "value", "description": "Price value, given as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5722,9 +5746,9 @@ "name": "price", "description": "Price for the price level, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5770,9 +5794,9 @@ "name": "min_valid_price", "description": "Minimum price that isn't currently breaching the specified price monitoring trigger", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -5782,9 +5806,9 @@ "name": "max_valid_price", "description": "Maximum price that isn't currently breaching the specified price monitoring trigger", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6190,9 +6214,9 @@ "name": "price", "description": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6418,9 +6442,9 @@ "name": "min_amount", "description": "A minimum amount", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6454,9 +6478,9 @@ "name": "balance", "description": "The balance relating to the transfer", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6502,9 +6526,9 @@ "name": "amount", "description": "An amount to transfer for the asset", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6514,9 +6538,9 @@ "name": "min_amount", "description": "A minimum amount", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -6646,9 +6670,9 @@ "name": "amount", "description": "The amount to be withdrawn", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -7422,9 +7446,9 @@ "name": "commitment_amount", "description": "Specified as a unitless number that represents the amount of settlement asset of the market", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -7979,9 +8003,9 @@ "name": "total_governance_token_balance", "description": "Total number of governance token for the party that casted the vote", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -8188,9 +8212,9 @@ "name": "amount", "description": "The amount of stake to delegate", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -8232,9 +8256,9 @@ "name": "commitment_amount", "description": "Specified as a unitless number that represents the amount of settlement asset of the market", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -8476,9 +8500,9 @@ "name": "price", "description": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places,\n, required field for limit orders, however it is not required for market orders", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -8680,9 +8704,9 @@ "name": "amount", "description": "optional, if not specified = ALL", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -8760,9 +8784,9 @@ "name": "amount", "description": "The amount to be withdrawn", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -9146,9 +9170,9 @@ "name": "amount", "description": "The amount to be withdrawn", "label": "", - "type": "uint64", - "longType": "uint64", - "fullType": "uint64", + "type": "string", + "longType": "string", + "fullType": "string", "ismap": false, "isoneof": false, "oneofdecl": "", @@ -11827,6 +11851,42 @@ "isoneof": true, "oneofdecl": "transaction", "defaultValue": "" + }, + { + "name": "delegate_submission", + "description": "", + "label": "", + "type": "DelegateSubmission", + "longType": "vega.commands.v1.DelegateSubmission", + "fullType": "vega.commands.v1.DelegateSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" + }, + { + "name": "undelegate_submission", + "description": "", + "label": "", + "type": "UndelegateSubmission", + "longType": "vega.commands.v1.UndelegateSubmission", + "fullType": "vega.commands.v1.UndelegateSubmission", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" + }, + { + "name": "restore_snapshot", + "description": "", + "label": "", + "type": "RestoreSnapshot", + "longType": "vega.commands.v1.RestoreSnapshot", + "fullType": "vega.commands.v1.RestoreSnapshot", + "ismap": false, + "isoneof": true, + "oneofdecl": "transaction", + "defaultValue": "" } ] }, @@ -13595,6 +13655,54 @@ } ] }, + { + "name": "ListPartiesStakeRequest", + "longName": "ListPartiesStakeRequest", + "fullName": "vega.coreapi.v1.ListPartiesStakeRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ListPartiesStakeResponse", + "longName": "ListPartiesStakeResponse", + "fullName": "vega.coreapi.v1.ListPartiesStakeResponse", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "parties_stake", + "description": "", + "label": "repeated", + "type": "PartyStake", + "longType": "PartyStake", + "fullType": "vega.coreapi.v1.PartyStake", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, { "name": "ListProposalsRequest", "longName": "ListProposalsRequest", @@ -13749,6 +13857,54 @@ "defaultValue": "" } ] + }, + { + "name": "PartyStake", + "longName": "PartyStake", + "fullName": "vega.coreapi.v1.PartyStake", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "current_stake_available", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "stake_linkings", + "description": "", + "label": "repeated", + "type": "StakeLinking", + "longType": "vega.events.v1.StakeLinking", + "fullType": "vega.events.v1.StakeLinking", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] } ], "services": [ @@ -13865,6 +14021,18 @@ "responseLongType": "ListVotesResponse", "responseFullType": "vega.coreapi.v1.ListVotesResponse", "responseStreaming": false + }, + { + "name": "ListPartiesStake", + "description": "", + "requestType": "ListPartiesStakeRequest", + "requestLongType": "ListPartiesStakeRequest", + "requestFullType": "vega.coreapi.v1.ListPartiesStakeRequest", + "requestStreaming": false, + "responseType": "ListPartiesStakeResponse", + "responseLongType": "ListPartiesStakeResponse", + "responseFullType": "vega.coreapi.v1.ListPartiesStakeResponse", + "responseStreaming": false } ] } diff --git a/grpc/doc/index.html b/grpc/doc/index.html index 8aa739c6..9188de30 100644 --- a/grpc/doc/index.html +++ b/grpc/doc/index.html @@ -1208,6 +1208,14 @@

    Table of Contents

    MListPartiesResponse
  • +
  • + MListPartiesStakeRequest +
  • + +
  • + MListPartiesStakeResponse +
  • +
  • MListProposalsRequest
  • @@ -1232,6 +1240,10 @@

    Table of Contents

    MListVotesResponse +
  • + MPartyStake +
  • + @@ -3375,7 +3387,7 @@

    Account

    balance - uint64 + string

    Balance of the asset, the balance is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places @@ -3429,7 +3441,7 @@

    AuctionIndicativeState

    indicative_price - uint64 + string

    The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now

    @@ -3489,28 +3501,28 @@

    Candle

    high - uint64 + string

    Highest price for trading during the candle interval

    low - uint64 + string

    Lowest price for trading during the candle interval

    open - uint64 + string

    Open trade price

    close - uint64 + string

    Closing trade price

    @@ -4009,21 +4021,21 @@

    Fee

    maker_fee - uint64 + string

    Fee amount paid to the non-aggressive party of the trade

    infrastructure_fee - uint64 + string

    Fee amount paid for maintaining the Vega infrastructure

    liquidity_fee - uint64 + string

    Fee amount paid to market makers

    @@ -4047,7 +4059,7 @@

    FinancialAmount

    amount - uint64 + string

    A signed integer amount of asset

    @@ -4092,7 +4104,7 @@

    LedgerEntry

    amount - uint64 + string

    An amount to transfer

    @@ -4282,7 +4294,7 @@

    LiquidityProvision

    commitment_amount - uint64 + string

    Specified as a unitless number that represents the amount of settlement asset of the market

    @@ -4375,28 +4387,28 @@

    MarginLevels

    maintenance_margin - uint64 + string

    Maintenance margin value

    search_level - uint64 + string

    Search level value

    initial_margin - uint64 + string

    Initial margin value

    collateral_release_level - uint64 + string

    Collateral release level value

    @@ -4449,7 +4461,7 @@

    MarketData

    mark_price - uint64 + string

    Mark price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -4457,7 +4469,7 @@

    MarketData

    best_bid_price - uint64 + string

    Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -4472,7 +4484,7 @@

    MarketData

    best_offer_price - uint64 + string

    Lowest price level on an order book for offer orders

    @@ -4487,7 +4499,7 @@

    MarketData

    best_static_bid_price - uint64 + string

    Highest price on the order book for buy orders not including pegged orders

    @@ -4501,7 +4513,7 @@

    MarketData

    best_static_offer_price - uint64 + string

    Lowest price on the order book for sell orders not including pegged orders

    @@ -4515,7 +4527,7 @@

    MarketData

    mid_price - uint64 + string

    Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -4523,7 +4535,7 @@

    MarketData

    static_mid_price - uint64 + string

    Arithmetic average of the best static bid price and best static offer price

    @@ -4566,7 +4578,7 @@

    MarketData

    indicative_price - uint64 + string

    Indicative price (zero if not in auction)

    @@ -4856,6 +4868,20 @@

    Node

    Node's delegations

    + + score + string + +

    Node score

    + + + + normalised_score + string + +

    Node normalised score

    + + @@ -5004,7 +5030,7 @@

    Order

    price - uint64 + string

    Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5307,21 +5333,21 @@

    Position

    realised_pnl - int64 + string

    Realised profit and loss for the position, value is signed +ve for long and -ve for short

    unrealised_pnl - int64 + string

    Unrealised profit and loss for the position, value is signed +ve for long and -ve for short

    average_entry_price - uint64 + string

    Average entry price for the position, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5360,7 +5386,7 @@

    PositionTrade

    price - uint64 + string

    Price for the position trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5385,7 +5411,7 @@

    Price

    value - uint64 + string

    Price value, given as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5410,7 +5436,7 @@

    PriceLevel

    price - uint64 + string

    Price for the price level, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5449,14 +5475,14 @@

    PriceMonitoringBounds

    min_valid_price - uint64 + string

    Minimum price that isn't currently breaching the specified price monitoring trigger

    max_valid_price - uint64 + string

    Maximum price that isn't currently breaching the specified price monitoring trigger

    @@ -5774,7 +5800,7 @@

    Trade

    price - uint64 + string

    Price for the trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places

    @@ -5929,7 +5955,7 @@

    Transfer

    min_amount - uint64 + string

    A minimum amount

    @@ -5960,7 +5986,7 @@

    TransferBalance

    balance - uint64 + string

    The balance relating to the transfer

    @@ -5998,14 +6024,14 @@

    TransferRequest

    amount - uint64 + string

    An amount to transfer for the asset

    min_amount - uint64 + string

    A minimum amount

    @@ -6112,7 +6138,7 @@

    Withdrawal

    amount - uint64 + string

    The amount to be withdrawn

    @@ -7700,7 +7726,7 @@

    NewMarketCommitment

    commitment_amount - uint64 + string

    Specified as a unitless number that represents the amount of settlement asset of the market

    @@ -8182,7 +8208,7 @@

    Vote

    total_governance_token_balance - uint64 + string

    Total number of governance token for the party that casted the vote

    @@ -8677,7 +8703,7 @@

    DelegateSubmission

    amount - uint64 + string

    The amount of stake to delegate

    @@ -8735,7 +8761,7 @@

    LiquidityProvisionSubmiss commitment_amount - uint64 + string

    Specified as a unitless number that represents the amount of settlement asset of the market

    @@ -8958,7 +8984,7 @@

    OrderSubmission

    price - uint64 + string

    Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places, @@ -9165,7 +9191,7 @@

    UndelegateSubmission

    amount - uint64 + string

    optional, if not specified = ALL

    @@ -9281,7 +9307,7 @@

    WithdrawSubmission

    amount - uint64 + string

    The amount to be withdrawn

    @@ -9627,7 +9653,7 @@

    BuiltinAssetWithdrawal

    amount - uint64 + string

    The amount to be withdrawn

    @@ -11499,6 +11525,27 @@

    TxErrorEvent

    + + delegate_submission + vega.commands.v1.DelegateSubmission + +

    + + + + undelegate_submission + vega.commands.v1.UndelegateSubmission + +

    + + + + restore_snapshot + vega.commands.v1.RestoreSnapshot + +

    + + @@ -13197,6 +13244,54 @@

    ListPartiesResponse

    +

    ListPartiesStakeRequest

    +

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    partystring

    + + + + + +

    ListPartiesStakeResponse

    +

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    parties_stakePartyStakerepeated

    + + + + +

    ListProposalsRequest

    @@ -13338,6 +13433,44 @@

    ListVotesResponse

    +

    PartyStake

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    partystring

    current_stake_availablestring

    stake_linkingsvega.events.v1.StakeLinkingrepeated

    + + + + + @@ -13415,6 +13548,13 @@

    CoreApiService

    + + ListPartiesStake + ListPartiesStakeRequest + ListPartiesStakeResponse +

    + + diff --git a/grpc/doc/index.md b/grpc/doc/index.md index cf3a98d5..2ab50364 100644 --- a/grpc/doc/index.md +++ b/grpc/doc/index.md @@ -262,12 +262,15 @@ - [ListNetworkParametersResponse](#vega.coreapi.v1.ListNetworkParametersResponse) - [ListPartiesRequest](#vega.coreapi.v1.ListPartiesRequest) - [ListPartiesResponse](#vega.coreapi.v1.ListPartiesResponse) + - [ListPartiesStakeRequest](#vega.coreapi.v1.ListPartiesStakeRequest) + - [ListPartiesStakeResponse](#vega.coreapi.v1.ListPartiesStakeResponse) - [ListProposalsRequest](#vega.coreapi.v1.ListProposalsRequest) - [ListProposalsResponse](#vega.coreapi.v1.ListProposalsResponse) - [ListValidatorsRequest](#vega.coreapi.v1.ListValidatorsRequest) - [ListValidatorsResponse](#vega.coreapi.v1.ListValidatorsResponse) - [ListVotesRequest](#vega.coreapi.v1.ListVotesRequest) - [ListVotesResponse](#vega.coreapi.v1.ListVotesResponse) + - [PartyStake](#vega.coreapi.v1.PartyStake) - [CoreApiService](#vega.coreapi.v1.CoreApiService) @@ -1088,7 +1091,7 @@ Represents an account for an asset on Vega for a particular owner or party | ----- | ---- | ----- | ----------- | | id | [string](#string) | | Unique account identifier (used internally by Vega) | | owner | [string](#string) | | The party that the account belongs to, special values include `network`, which represents the Vega network and is most commonly seen during liquidation of distressed trading positions | -| balance | [uint64](#uint64) | | Balance of the asset, the balance is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places and importantly balances cannot be negative | +| balance | [string](#string) | | Balance of the asset, the balance is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places and importantly balances cannot be negative | | asset | [string](#string) | | Asset identifier for the account | | market_id | [string](#string) | | Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty | | type | [AccountType](#vega.AccountType) | | The account type related to this account | @@ -1107,7 +1110,7 @@ AuctionIndicativeState is used to emit an event with the indicative price/volume | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | market_id | [string](#string) | | The market identifier for which this state relates to | -| indicative_price | [uint64](#uint64) | | The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now | +| indicative_price | [string](#string) | | The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now | | indicative_volume | [uint64](#uint64) | | The Indicative Uncrossing Volume is the volume available at the Indicative crossing price if we uncrossed the auction now | | auction_start | [int64](#int64) | | The timestamp at which the auction started | | auction_end | [int64](#int64) | | The timestamp at which the auction is meant to stop | @@ -1128,10 +1131,10 @@ referred to commonly as a candlestick or candle | ----- | ---- | ----- | ----------- | | timestamp | [int64](#int64) | | Timestamp for the point in time when the candle was initially created/opened, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | | datetime | [string](#string) | | An ISO-8601 datetime with nanosecond precision for when the candle was last updated | -| high | [uint64](#uint64) | | Highest price for trading during the candle interval | -| low | [uint64](#uint64) | | Lowest price for trading during the candle interval | -| open | [uint64](#uint64) | | Open trade price | -| close | [uint64](#uint64) | | Closing trade price | +| high | [string](#string) | | Highest price for trading during the candle interval | +| low | [string](#string) | | Lowest price for trading during the candle interval | +| open | [string](#string) | | Open trade price | +| close | [string](#string) | | Closing trade price | | volume | [uint64](#uint64) | | Total trading volume during the candle interval | | interval | [Interval](#vega.Interval) | | Time interval for the candle - See [`Interval`](#vega.Interval) | @@ -1310,9 +1313,9 @@ Represents any fees paid by a party, resulting from a trade | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| maker_fee | [uint64](#uint64) | | Fee amount paid to the non-aggressive party of the trade | -| infrastructure_fee | [uint64](#uint64) | | Fee amount paid for maintaining the Vega infrastructure | -| liquidity_fee | [uint64](#uint64) | | Fee amount paid to market makers | +| maker_fee | [string](#string) | | Fee amount paid to the non-aggressive party of the trade | +| infrastructure_fee | [string](#string) | | Fee amount paid for maintaining the Vega infrastructure | +| liquidity_fee | [string](#string) | | Fee amount paid to market makers | @@ -1327,7 +1330,7 @@ Asset value information used within a transfer | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| amount | [uint64](#uint64) | | A signed integer amount of asset | +| amount | [string](#string) | | A signed integer amount of asset | | asset | [string](#string) | | Asset identifier | @@ -1345,7 +1348,7 @@ Represents a ledger entry on Vega | ----- | ---- | ----- | ----------- | | from_account | [string](#string) | | One or more accounts to transfer from | | to_account | [string](#string) | | One or more accounts to transfer to | -| amount | [uint64](#uint64) | | An amount to transfer | +| amount | [string](#string) | | An amount to transfer | | reference | [string](#string) | | A reference for auditing purposes | | type | [string](#string) | | Type of ledger entry | | timestamp | [int64](#int64) | | Timestamp for the time the ledger entry was created, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | @@ -1418,7 +1421,7 @@ An Liquidity provider commitment | created_at | [int64](#int64) | | Timestamp for when the order was created at, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | | updated_at | [int64](#int64) | | Timestamp for when the order was updated at, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | | market_id | [string](#string) | | Market identifier for the order, required field | -| commitment_amount | [uint64](#uint64) | | Specified as a unitless number that represents the amount of settlement asset of the market | +| commitment_amount | [string](#string) | | Specified as a unitless number that represents the amount of settlement asset of the market | | fee | [string](#string) | | Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers | | sells | [LiquidityOrderReference](#vega.LiquidityOrderReference) | repeated | A set of liquidity sell orders to meet the liquidity provision obligation | | buys | [LiquidityOrderReference](#vega.LiquidityOrderReference) | repeated | A set of liquidity buy orders to meet the liquidity provision obligation | @@ -1439,10 +1442,10 @@ Represents the margin levels for a party on a market at a given time | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| maintenance_margin | [uint64](#uint64) | | Maintenance margin value | -| search_level | [uint64](#uint64) | | Search level value | -| initial_margin | [uint64](#uint64) | | Initial margin value | -| collateral_release_level | [uint64](#uint64) | | Collateral release level value | +| maintenance_margin | [string](#string) | | Maintenance margin value | +| search_level | [string](#string) | | Search level value | +| initial_margin | [string](#string) | | Initial margin value | +| collateral_release_level | [string](#string) | | Collateral release level value | | party_id | [string](#string) | | Party identifier | | market_id | [string](#string) | | Market identifier | | asset | [string](#string) | | Asset identifier | @@ -1461,23 +1464,23 @@ Represents data generated by a market when open | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| mark_price | [uint64](#uint64) | | Mark price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | -| best_bid_price | [uint64](#uint64) | | Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| mark_price | [string](#string) | | Mark price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| best_bid_price | [string](#string) | | Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | | best_bid_volume | [uint64](#uint64) | | Aggregated volume being bid at the best bid price | -| best_offer_price | [uint64](#uint64) | | Lowest price level on an order book for offer orders | +| best_offer_price | [string](#string) | | Lowest price level on an order book for offer orders | | best_offer_volume | [uint64](#uint64) | | Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places | -| best_static_bid_price | [uint64](#uint64) | | Highest price on the order book for buy orders not including pegged orders | +| best_static_bid_price | [string](#string) | | Highest price on the order book for buy orders not including pegged orders | | best_static_bid_volume | [uint64](#uint64) | | Total volume at the best static bid price excluding pegged orders | -| best_static_offer_price | [uint64](#uint64) | | Lowest price on the order book for sell orders not including pegged orders | +| best_static_offer_price | [string](#string) | | Lowest price on the order book for sell orders not including pegged orders | | best_static_offer_volume | [uint64](#uint64) | | Total volume at the best static offer price excluding pegged orders | -| mid_price | [uint64](#uint64) | | Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | -| static_mid_price | [uint64](#uint64) | | Arithmetic average of the best static bid price and best static offer price | +| mid_price | [string](#string) | | Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| static_mid_price | [string](#string) | | Arithmetic average of the best static bid price and best static offer price | | market | [string](#string) | | Market identifier for the data | | timestamp | [int64](#int64) | | Timestamp at which this mark price was relevant, in nanoseconds since the epoch - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp` | | open_interest | [uint64](#uint64) | | The sum of the size of all positions greater than 0 on the market | | auction_end | [int64](#int64) | | Time in seconds until the end of the auction (0 if currently not in auction period) | | auction_start | [int64](#int64) | | Time until next auction (used in FBA's) - currently always 0 | -| indicative_price | [uint64](#uint64) | | Indicative price (zero if not in auction) | +| indicative_price | [string](#string) | | Indicative price (zero if not in auction) | | indicative_volume | [uint64](#uint64) | | Indicative volume (zero if not in auction) | | market_trading_mode | [Market.TradingMode](#vega.Market.TradingMode) | | The current trading mode for the market | | trigger | [AuctionTrigger](#vega.AuctionTrigger) | | When a market is in an auction trading mode, this field indicates what triggered the auction | @@ -1565,6 +1568,8 @@ Represents a network parameter on Vega | epoch_data | [EpochData](#vega.EpochData) | | Informantion about epoch | | status | [NodeStatus](#vega.NodeStatus) | | Node status | | delagations | [Delegation](#vega.Delegation) | repeated | Node's delegations | +| score | [string](#string) | | Node score | +| normalised_score | [string](#string) | | Node normalised score | @@ -1602,7 +1607,7 @@ An order can be submitted, amended and cancelled on Vega in an attempt to make t | market_id | [string](#string) | | Market identifier for the order | | party_id | [string](#string) | | Party identifier for the order | | side | [Side](#vega.Side) | | Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side) | -| price | [uint64](#uint64) | | Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| price | [string](#string) | | Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | | size | [uint64](#uint64) | | Size for the order, for example, in a futures market the size equals the number of contracts | | remaining | [uint64](#uint64) | | Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED | | time_in_force | [Order.TimeInForce](#vega.Order.TimeInForce) | | Time in force indicates how long an order will remain active before it is executed or expires. - See [`Order.TimeInForce`](#vega.Order.TimeInForce) | @@ -1699,9 +1704,9 @@ Represents position data for a party on the specified market on Vega | market_id | [string](#string) | | Market identifier | | party_id | [string](#string) | | Party identifier | | open_volume | [int64](#int64) | | Open volume for the position, value is signed +ve for long and -ve for short | -| realised_pnl | [int64](#int64) | | Realised profit and loss for the position, value is signed +ve for long and -ve for short | -| unrealised_pnl | [int64](#int64) | | Unrealised profit and loss for the position, value is signed +ve for long and -ve for short | -| average_entry_price | [uint64](#uint64) | | Average entry price for the position, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| realised_pnl | [string](#string) | | Realised profit and loss for the position, value is signed +ve for long and -ve for short | +| unrealised_pnl | [string](#string) | | Unrealised profit and loss for the position, value is signed +ve for long and -ve for short | +| average_entry_price | [string](#string) | | Average entry price for the position, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | | updated_at | [int64](#int64) | | Timestamp for the latest time the position was updated | @@ -1718,7 +1723,7 @@ Represents position data for a party on the specified market on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | volume | [int64](#int64) | | Volume for the position trade, value is signed +ve for long and -ve for short | -| price | [uint64](#uint64) | | Price for the position trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| price | [string](#string) | | Price for the position trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | @@ -1733,7 +1738,7 @@ Represents position data for a party on the specified market on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| value | [uint64](#uint64) | | Price value, given as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| value | [string](#string) | | Price value, given as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | @@ -1748,7 +1753,7 @@ Represents a price level from market depth or order book data | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| price | [uint64](#uint64) | | Price for the price level, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| price | [string](#string) | | Price for the price level, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | | number_of_orders | [uint64](#uint64) | | Number of orders at the price level | | volume | [uint64](#uint64) | | Volume at the price level | @@ -1765,8 +1770,8 @@ Represents a list of valid (at the current timestamp) price ranges per associate | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| min_valid_price | [uint64](#uint64) | | Minimum price that isn't currently breaching the specified price monitoring trigger | -| max_valid_price | [uint64](#uint64) | | Maximum price that isn't currently breaching the specified price monitoring trigger | +| min_valid_price | [string](#string) | | Minimum price that isn't currently breaching the specified price monitoring trigger | +| max_valid_price | [string](#string) | | Maximum price that isn't currently breaching the specified price monitoring trigger | | trigger | [PriceMonitoringTrigger](#vega.PriceMonitoringTrigger) | | Price monitoring trigger associated with the bounds | | reference_price | [double](#double) | | Reference price used to calculate the valid price range | @@ -1905,7 +1910,7 @@ A trade occurs when an aggressive order crosses one or more passive orders on th | ----- | ---- | ----- | ----------- | | id | [string](#string) | | Unique identifier for the trade (generated by Vega) | | market_id | [string](#string) | | Market identifier (the market that the trade occurred on) | -| price | [uint64](#uint64) | | Price for the trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | +| price | [string](#string) | | Price for the trade, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places | | size | [uint64](#uint64) | | Size filled for the trade | | buyer | [string](#string) | | Unique party identifier for the buyer | | seller | [string](#string) | | Unique party identifier for the seller | @@ -1950,7 +1955,7 @@ Represents a financial transfer within Vega | owner | [string](#string) | | Party identifier for the owner of the transfer | | amount | [FinancialAmount](#vega.FinancialAmount) | | A financial amount (of an asset) to transfer | | type | [TransferType](#vega.TransferType) | | The type of transfer, gives the reason for the transfer | -| min_amount | [uint64](#uint64) | | A minimum amount | +| min_amount | [string](#string) | | A minimum amount | @@ -1966,7 +1971,7 @@ Represents the balance for an account during a transfer | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | account | [Account](#vega.Account) | | The account relating to the transfer | -| balance | [uint64](#uint64) | | The balance relating to the transfer | +| balance | [string](#string) | | The balance relating to the transfer | @@ -1983,8 +1988,8 @@ Represents a request to transfer from one set of accounts to another | ----- | ---- | ----- | ----------- | | from_account | [Account](#vega.Account) | repeated | One or more accounts to transfer from | | to_account | [Account](#vega.Account) | repeated | One or more accounts to transfer to | -| amount | [uint64](#uint64) | | An amount to transfer for the asset | -| min_amount | [uint64](#uint64) | | A minimum amount | +| amount | [string](#string) | | An amount to transfer for the asset | +| min_amount | [string](#string) | | A minimum amount | | asset | [string](#string) | | Asset identifier | | reference | [string](#string) | | A reference for auditing purposes | @@ -2034,7 +2039,7 @@ A withdrawal from the Vega network | ----- | ---- | ----- | ----------- | | id | [string](#string) | | Unique identifier for the withdrawal | | party_id | [string](#string) | | Unique party identifier of the user initiating the withdrawal | -| amount | [uint64](#uint64) | | The amount to be withdrawn | +| amount | [string](#string) | | The amount to be withdrawn | | asset | [string](#string) | | The asset we want to withdraw funds from | | status | [Withdrawal.Status](#vega.Withdrawal.Status) | | The status of the withdrawal | | ref | [string](#string) | | The reference which is used by the foreign chain to refer to this withdrawal | @@ -2508,7 +2513,7 @@ A commitment of liquidity to be made by the party which proposes a market | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| commitment_amount | [uint64](#uint64) | | Specified as a unitless number that represents the amount of settlement asset of the market | +| commitment_amount | [string](#string) | | Specified as a unitless number that represents the amount of settlement asset of the market | | fee | [string](#string) | | Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers | | sells | [LiquidityOrder](#vega.LiquidityOrder) | repeated | A set of liquidity sell orders to meet the liquidity provision obligation | | buys | [LiquidityOrder](#vega.LiquidityOrder) | repeated | A set of liquidity buy orders to meet the liquidity provision obligation | @@ -2622,7 +2627,7 @@ Governance vote | value | [Vote.Value](#vega.Vote.Value) | | Actual vote | | proposal_id | [string](#string) | | Identifier of the proposal being voted on | | timestamp | [int64](#int64) | | Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network | -| total_governance_token_balance | [uint64](#uint64) | | Total number of governance token for the party that casted the vote | +| total_governance_token_balance | [string](#string) | | Total number of governance token for the party that casted the vote | | total_governance_token_weight | [string](#string) | | The weight of this vote based on the total of governance token | @@ -2786,7 +2791,7 @@ A command to submit an instruction to delegate some stake to a node | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | node_id | [string](#string) | | The ID for the node to delegate to | -| amount | [uint64](#uint64) | | The amount of stake to delegate | +| amount | [string](#string) | | The amount of stake to delegate | @@ -2802,7 +2807,7 @@ A liquidity provision submitted for a given market | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | market_id | [string](#string) | | Market identifier for the order, required field | -| commitment_amount | [uint64](#uint64) | | Specified as a unitless number that represents the amount of settlement asset of the market | +| commitment_amount | [string](#string) | | Specified as a unitless number that represents the amount of settlement asset of the market | | fee | [string](#string) | | Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers | | sells | [vega.LiquidityOrder](#vega.LiquidityOrder) | repeated | A set of liquidity sell orders to meet the liquidity provision obligation | | buys | [vega.LiquidityOrder](#vega.LiquidityOrder) | repeated | A set of liquidity buy orders to meet the liquidity provision obligation | @@ -2860,7 +2865,7 @@ An order submission is a request to submit or create a new order on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | market_id | [string](#string) | | Market identifier for the order, required field | -| price | [uint64](#uint64) | | Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places, , required field for limit orders, however it is not required for market orders | +| price | [string](#string) | | Price for the order, the price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places, , required field for limit orders, however it is not required for market orders | | size | [uint64](#uint64) | | Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative | | side | [vega.Side](#vega.Side) | | Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side) | | time_in_force | [vega.Order.TimeInForce](#vega.Order.TimeInForce) | | Time in force indicates how long an order will remain active before it is executed or expires, required field - See [`Order.TimeInForce`](#vega.Order.TimeInForce) | @@ -2915,7 +2920,7 @@ A command that loads the state from a given checkpoint | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | node_id | [string](#string) | | | -| amount | [uint64](#uint64) | | optional, if not specified = ALL | +| amount | [string](#string) | | optional, if not specified = ALL | | method | [UndelegateSubmission.Method](#vega.commands.v1.UndelegateSubmission.Method) | | | @@ -2948,7 +2953,7 @@ Represents the submission request to withdraw funds for a party on Vega | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| amount | [uint64](#uint64) | | The amount to be withdrawn | +| amount | [string](#string) | | The amount to be withdrawn | | asset | [string](#string) | | The asset we want to withdraw | | ext | [vega.WithdrawExt](#vega.WithdrawExt) | | Foreign chain specifics | @@ -3113,7 +3118,7 @@ A withdrawal for a Vega built-in asset | ----- | ---- | ----- | ----------- | | vega_asset_id | [string](#string) | | A Vega network internal asset identifier | | party_id | [string](#string) | | A Vega network party identifier (pub-key) | -| amount | [uint64](#uint64) | | The amount to be withdrawn | +| amount | [string](#string) | | The amount to be withdrawn | @@ -3797,6 +3802,9 @@ A transfer responses event contains a collection of transfer information | vote_submission | [vega.commands.v1.VoteSubmission](#vega.commands.v1.VoteSubmission) | | | | liquidity_provision_submission | [vega.commands.v1.LiquidityProvisionSubmission](#vega.commands.v1.LiquidityProvisionSubmission) | | | | withdraw_submission | [vega.commands.v1.WithdrawSubmission](#vega.commands.v1.WithdrawSubmission) | | | +| delegate_submission | [vega.commands.v1.DelegateSubmission](#vega.commands.v1.DelegateSubmission) | | | +| undelegate_submission | [vega.commands.v1.UndelegateSubmission](#vega.commands.v1.UndelegateSubmission) | | | +| restore_snapshot | [vega.commands.v1.RestoreSnapshot](#vega.commands.v1.RestoreSnapshot) | | | @@ -4521,6 +4529,36 @@ Blockchain transaction type + + +### ListPartiesStakeRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| party | [string](#string) | | | + + + + + + + + +### ListPartiesStakeResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| parties_stake | [PartyStake](#vega.coreapi.v1.PartyStake) | repeated | | + + + + + + ### ListProposalsRequest @@ -4608,6 +4646,23 @@ Blockchain transaction type + + +### PartyStake + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| party | [string](#string) | | | +| current_stake_available | [string](#string) | | | +| stake_linkings | [vega.events.v1.StakeLinking](#vega.events.v1.StakeLinking) | repeated | | + + + + + + @@ -4630,6 +4685,7 @@ Blockchain transaction type | ListProposals | [ListProposalsRequest](#vega.coreapi.v1.ListProposalsRequest) | [ListProposalsResponse](#vega.coreapi.v1.ListProposalsResponse) | | | ListMarketsData | [ListMarketsDataRequest](#vega.coreapi.v1.ListMarketsDataRequest) | [ListMarketsDataResponse](#vega.coreapi.v1.ListMarketsDataResponse) | | | ListVotes | [ListVotesRequest](#vega.coreapi.v1.ListVotesRequest) | [ListVotesResponse](#vega.coreapi.v1.ListVotesResponse) | | +| ListPartiesStake | [ListPartiesStakeRequest](#vega.coreapi.v1.ListPartiesStakeRequest) | [ListPartiesStakeResponse](#vega.coreapi.v1.ListPartiesStakeResponse) | | diff --git a/proto/chain_events.proto b/proto/chain_events.proto index d114d8f0..0daa7311 100644 --- a/proto/chain_events.proto +++ b/proto/chain_events.proto @@ -21,7 +21,7 @@ message BuiltinAssetWithdrawal { // A Vega network party identifier (pub-key) string party_id = 2; // The amount to be withdrawn - uint64 amount = 3; + string amount = 3; } // An event related to a Vega built-in asset diff --git a/proto/commands/v1/commands.proto b/proto/commands/v1/commands.proto index de670e2f..b5f9549c 100644 --- a/proto/commands/v1/commands.proto +++ b/proto/commands/v1/commands.proto @@ -16,7 +16,7 @@ message OrderSubmission { // Price for the order, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places, // , required field for limit orders, however it is not required for market orders - uint64 price = 2; + string price = 2; // Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative uint64 size = 3 [(validator.field) = {int_gt: 0}]; // Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side) @@ -82,7 +82,7 @@ message LiquidityProvisionSubmission { // Market identifier for the order, required field string market_id = 1 [(validator.field) = {string_not_empty: true}]; // Specified as a unitless number that represents the amount of settlement asset of the market - uint64 commitment_amount = 2; + string commitment_amount = 2; // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers string fee = 3; // A set of liquidity sell orders to meet the liquidity provision obligation @@ -96,7 +96,7 @@ message LiquidityProvisionSubmission { // Represents the submission request to withdraw funds for a party on Vega message WithdrawSubmission { // The amount to be withdrawn - uint64 amount = 1; + string amount = 1; // The asset we want to withdraw string asset = 2; // Foreign chain specifics @@ -126,7 +126,7 @@ message DelegateSubmission { // The ID for the node to delegate to string node_id = 1 [(validator.field) = {string_not_empty : true}]; // The amount of stake to delegate - uint64 amount = 2; + string amount = 2; } message UndelegateSubmission { @@ -138,7 +138,7 @@ message UndelegateSubmission { } string node_id = 1 [(validator.field) = {string_not_empty : true}]; // optional, if not specified = ALL - uint64 amount = 2; + string amount = 2; Method method = 3; } diff --git a/proto/coreapi/v1/coreapi.proto b/proto/coreapi/v1/coreapi.proto index b049ef3f..4eaa1a75 100644 --- a/proto/coreapi/v1/coreapi.proto +++ b/proto/coreapi/v1/coreapi.proto @@ -20,6 +20,7 @@ service CoreApiService { rpc ListProposals(ListProposalsRequest) returns (ListProposalsResponse); rpc ListMarketsData(ListMarketsDataRequest) returns (ListMarketsDataResponse); rpc ListVotes(ListVotesRequest) returns (ListVotesResponse); + rpc ListPartiesStake(ListPartiesStakeRequest) returns (ListPartiesStakeResponse); } message Account { @@ -99,4 +100,18 @@ message ListVotesRequest { message ListVotesResponse { repeated vega.Vote votes = 1; -} \ No newline at end of file +} + +message PartyStake { + string party = 1; + string current_stake_available = 2; + repeated vega.events.v1.StakeLinking stake_linkings = 3; +} + +message ListPartiesStakeRequest { + string party = 1; +} + +message ListPartiesStakeResponse { + repeated PartyStake parties_stake = 1; +} diff --git a/proto/events/v1/events.proto b/proto/events/v1/events.proto index aec5a644..dc2c3cb6 100644 --- a/proto/events/v1/events.proto +++ b/proto/events/v1/events.proto @@ -117,6 +117,9 @@ message TxErrorEvent { commands.v1.VoteSubmission vote_submission = 105; commands.v1.LiquidityProvisionSubmission liquidity_provision_submission = 106; commands.v1.WithdrawSubmission withdraw_submission = 107; + commands.v1.DelegateSubmission delegate_submission = 108; + commands.v1.UndelegateSubmission undelegate_submission = 109; + commands.v1.RestoreSnapshot restore_snapshot = 110; } } diff --git a/proto/from.txt b/proto/from.txt index 1f61beba..1d4e18c0 100644 --- a/proto/from.txt +++ b/proto/from.txt @@ -1 +1 @@ -v0.42.0-pre4 +v0.42.0-pre6 diff --git a/proto/governance.proto b/proto/governance.proto index cb643b43..a9a8b68e 100644 --- a/proto/governance.proto +++ b/proto/governance.proto @@ -71,7 +71,7 @@ message NewMarketConfiguration { // A commitment of liquidity to be made by the party which proposes a market message NewMarketCommitment { // Specified as a unitless number that represents the amount of settlement asset of the market - uint64 commitment_amount = 1; + string commitment_amount = 1; // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers string fee = 2; // A set of liquidity sell orders to meet the liquidity provision obligation @@ -300,7 +300,7 @@ message Vote { // Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network int64 timestamp = 4; // Total number of governance token for the party that casted the vote - uint64 total_governance_token_balance = 5; + string total_governance_token_balance = 5; // The weight of this vote based on the total of governance token string total_governance_token_weight = 6; } diff --git a/proto/vega.proto b/proto/vega.proto index 3076303d..28705082 100644 --- a/proto/vega.proto +++ b/proto/vega.proto @@ -48,7 +48,7 @@ enum Interval { message Price { // Price value, given as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 value = 1; + string value = 1; } // A timestamp in nanoseconds since epoch @@ -202,7 +202,7 @@ message Order { Side side = 4; // Price for the order, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 price = 5; + string price = 5; // Size for the order, for example, in a futures market the size equals the number of contracts uint64 size = 6; // Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED @@ -262,7 +262,7 @@ message AuctionIndicativeState { // The market identifier for which this state relates to string market_id = 1; // The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now - uint64 indicative_price = 2; + string indicative_price = 2; // The Indicative Uncrossing Volume is the volume available at the Indicative crossing price if we uncrossed the auction now uint64 indicative_volume = 3; // The timestamp at which the auction started @@ -406,7 +406,7 @@ message Trade { string market_id = 2; // Price for the trade, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 price = 3; + string price = 3; // Size filled for the trade uint64 size = 4; // Unique party identifier for the buyer @@ -437,11 +437,11 @@ message Trade { // Represents any fees paid by a party, resulting from a trade message Fee { // Fee amount paid to the non-aggressive party of the trade - uint64 maker_fee = 1; + string maker_fee = 1; // Fee amount paid for maintaining the Vega infrastructure - uint64 infrastructure_fee = 2; + string infrastructure_fee = 2; // Fee amount paid to market makers - uint64 liquidity_fee = 3; + string liquidity_fee = 3; } message TradeSet { @@ -458,13 +458,13 @@ message Candle { // An ISO-8601 datetime with nanosecond precision for when the candle was last updated string datetime = 2; // Highest price for trading during the candle interval - uint64 high = 3; + string high = 3; // Lowest price for trading during the candle interval - uint64 low = 4; + string low = 4; // Open trade price - uint64 open = 5; + string open = 5; // Closing trade price - uint64 close = 6; + string close = 6; // Total trading volume during the candle interval uint64 volume = 7; // Time interval for the candle - See [`Interval`](#vega.Interval) @@ -475,7 +475,7 @@ message Candle { message PriceLevel { // Price for the price level, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 price = 1; + string price = 1; // Number of orders at the price level uint64 number_of_orders = 2; // Volume at the price level @@ -507,7 +507,7 @@ message MarketDepthUpdate { } // Represents position data for a party on the specified market on Vega -message Position{ +message Position { // Market identifier string market_id = 1; // Party identifier @@ -515,12 +515,12 @@ message Position{ // Open volume for the position, value is signed +ve for long and -ve for short int64 open_volume = 3; // Realised profit and loss for the position, value is signed +ve for long and -ve for short - int64 realised_pnl = 4; + string realised_pnl = 4; // Unrealised profit and loss for the position, value is signed +ve for long and -ve for short - int64 unrealised_pnl = 5; + string unrealised_pnl = 5; // Average entry price for the position, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 average_entry_price = 6; + string average_entry_price = 6; // Timestamp for the latest time the position was updated int64 updated_at = 7; } @@ -530,7 +530,7 @@ message PositionTrade { int64 volume = 1; // Price for the position trade, the price is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 price = 2; + string price = 2; } // The Vega blockchain status as reported by the node the caller is connected to @@ -599,7 +599,7 @@ message Withdrawal { // Unique party identifier of the user initiating the withdrawal string party_id = 2; // The amount to be withdrawn - uint64 amount = 3; + string amount = 3; // The asset we want to withdraw funds from string asset = 4; // The status of the withdrawal @@ -691,7 +691,7 @@ message Account { // Balance of the asset, the balance is an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places // and importantly balances cannot be negative - uint64 balance = 3; + string balance = 3; // Asset identifier for the account string asset = 4; // Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty @@ -703,7 +703,7 @@ message Account { // Asset value information used within a transfer message FinancialAmount { // A signed integer amount of asset - uint64 amount = 1; + string amount = 1; // Asset identifier string asset = 2; } @@ -765,7 +765,7 @@ message Transfer { // The type of transfer, gives the reason for the transfer TransferType type = 3; // A minimum amount - uint64 min_amount = 4; + string min_amount = 4; } // Represents a request to transfer from one set of accounts to another @@ -775,9 +775,9 @@ message TransferRequest { // One or more accounts to transfer to repeated Account to_account = 2; // An amount to transfer for the asset - uint64 amount = 3; + string amount = 3; // A minimum amount - uint64 min_amount = 4; + string min_amount = 4; // Asset identifier string asset = 5; // A reference for auditing purposes @@ -791,7 +791,7 @@ message LedgerEntry { // One or more accounts to transfer to string to_account = 2; // An amount to transfer - uint64 amount = 3; + string amount = 3; // A reference for auditing purposes string reference = 4; // Type of ledger entry @@ -806,7 +806,7 @@ message TransferBalance { // The account relating to the transfer Account account = 1; // The balance relating to the transfer - uint64 balance = 2; + string balance = 2; } // Represents the response from a transfer @@ -820,13 +820,13 @@ message TransferResponse { // Represents the margin levels for a party on a market at a given time message MarginLevels { // Maintenance margin value - uint64 maintenance_margin = 1; + string maintenance_margin = 1; // Search level value - uint64 search_level = 2; + string search_level = 2; // Initial margin value - uint64 initial_margin = 3; + string initial_margin = 3; // Collateral release level value - uint64 collateral_release_level = 4; + string collateral_release_level = 4; // Party identifier string party_id = 5; // Market identifier @@ -842,30 +842,30 @@ message MarginLevels { message MarketData { // Mark price, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 mark_price = 1; + string mark_price = 1; // Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 best_bid_price = 2; + string best_bid_price = 2; // Aggregated volume being bid at the best bid price uint64 best_bid_volume = 3; // Lowest price level on an order book for offer orders - uint64 best_offer_price = 4; + string best_offer_price = 4; // Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly // // formatted price of `1.23456` assuming market configured to 5 decimal places uint64 best_offer_volume = 5; // Highest price on the order book for buy orders not including pegged orders - uint64 best_static_bid_price = 6; + string best_static_bid_price = 6; // Total volume at the best static bid price excluding pegged orders uint64 best_static_bid_volume = 7; // Lowest price on the order book for sell orders not including pegged orders - uint64 best_static_offer_price = 8; + string best_static_offer_price = 8; // Total volume at the best static offer price excluding pegged orders uint64 best_static_offer_volume = 9; // Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly // formatted price of `1.23456` assuming market configured to 5 decimal places - uint64 mid_price = 10; + string mid_price = 10; // Arithmetic average of the best static bid price and best static offer price - uint64 static_mid_price = 11; + string static_mid_price = 11; // Market identifier for the data string market = 12; // Timestamp at which this mark price was relevant, in nanoseconds since the epoch @@ -878,7 +878,7 @@ message MarketData { // Time until next auction (used in FBA's) - currently always 0 int64 auction_start = 16; // Indicative price (zero if not in auction) - uint64 indicative_price = 17; + string indicative_price = 17; // Indicative volume (zero if not in auction) uint64 indicative_volume = 18; // The current trading mode for the market @@ -913,9 +913,9 @@ message LiquidityProviderFeeShare { // Represents a list of valid (at the current timestamp) price ranges per associated trigger message PriceMonitoringBounds { // Minimum price that isn't currently breaching the specified price monitoring trigger - uint64 min_valid_price = 1; + string min_valid_price = 1; // Maximum price that isn't currently breaching the specified price monitoring trigger - uint64 max_valid_price = 2; + string max_valid_price = 2; // Price monitoring trigger associated with the bounds PriceMonitoringTrigger trigger = 3; // Reference price used to calculate the valid price range @@ -993,7 +993,7 @@ message LiquidityProvision { // Market identifier for the order, required field string market_id = 5 [(validator.field) = {string_not_empty: true}]; // Specified as a unitless number that represents the amount of settlement asset of the market - uint64 commitment_amount = 6; + string commitment_amount = 6; // Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers string fee = 7; // A set of liquidity sell orders to meet the liquidity provision obligation @@ -1097,6 +1097,10 @@ message Node { NodeStatus status = 11 [(validator.field) = {msg_exists : true}]; // Node's delegations repeated Delegation delagations = 12; + // Node score + string score = 13; + // Node normalised score + string normalised_score = 14; } message NodeData { diff --git a/rest/api/trading.swagger.json b/rest/api/trading.swagger.json index 98b85ca0..6fa85781 100644 --- a/rest/api/trading.swagger.json +++ b/rest/api/trading.swagger.json @@ -44,6 +44,16 @@ "title": "Time In Force for an order\nSee [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail", "type": "string" }, + "UndelegateSubmissionMethod": { + "default": "METHOD_UNSPECIFIED", + "enum": [ + "METHOD_UNSPECIFIED", + "METHOD_NOW", + "METHOD_AT_END_OF_EPOCH", + "METHOD_IN_ANGER" + ], + "type": "string" + }, "VoteValue": { "default": "VALUE_UNSPECIFIED", "description": "- VALUE_UNSPECIFIED: Default value, always invalid\n - VALUE_NO: A vote against the proposal\n - VALUE_YES: A vote in favour of the proposal", @@ -367,6 +377,20 @@ "title": "Condition describes the condition that must be validated by the", "type": "object" }, + "v1DelegateSubmission": { + "properties": { + "amount": { + "title": "The amount of stake to delegate", + "type": "string" + }, + "node_id": { + "title": "The ID for the node to delegate to", + "type": "string" + } + }, + "title": "A command to submit an instruction to delegate some stake to a node", + "type": "object" + }, "v1DelegationBalanceEvent": { "properties": { "amount": { @@ -460,7 +484,6 @@ "type": "array" }, "commitment_amount": { - "format": "uint64", "title": "Specified as a unitless number that represents the amount of settlement asset of the market", "type": "string" }, @@ -749,7 +772,6 @@ "title": "Used to specify the details for a pegged order\n- See [`PeggedOrder`](#vega.PeggedOrder)" }, "price": { - "format": "uint64", "title": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places,\n, required field for limit orders, however it is not required for market orders", "type": "string" }, @@ -870,6 +892,16 @@ "title": "A command to submit a new proposal for the\nvega network governance", "type": "object" }, + "v1RestoreSnapshot": { + "properties": { + "data": { + "format": "byte", + "type": "string" + } + }, + "title": "A command that loads the state from a given checkpoint", + "type": "object" + }, "v1RewardPayoutEvent": { "properties": { "amount": { @@ -1296,6 +1328,9 @@ }, "v1TxErrorEvent": { "properties": { + "delegate_submission": { + "$ref": "#/definitions/v1DelegateSubmission" + }, "err_msg": { "title": "An error message describing what went wrong", "type": "string" @@ -1319,6 +1354,12 @@ "proposal": { "$ref": "#/definitions/v1ProposalSubmission" }, + "restore_snapshot": { + "$ref": "#/definitions/v1RestoreSnapshot" + }, + "undelegate_submission": { + "$ref": "#/definitions/v1UndelegateSubmission" + }, "vote_submission": { "$ref": "#/definitions/v1VoteSubmission" }, @@ -1328,6 +1369,21 @@ }, "type": "object" }, + "v1UndelegateSubmission": { + "properties": { + "amount": { + "title": "optional, if not specified = ALL", + "type": "string" + }, + "method": { + "$ref": "#/definitions/UndelegateSubmissionMethod" + }, + "node_id": { + "type": "string" + } + }, + "type": "object" + }, "v1ValidatorScoreEvent": { "properties": { "epoch_seq": { @@ -1389,7 +1445,6 @@ "v1WithdrawSubmission": { "properties": { "amount": { - "format": "uint64", "title": "The amount to be withdrawn", "type": "string" }, @@ -1412,7 +1467,6 @@ "type": "string" }, "balance": { - "format": "uint64", "title": "Balance of the asset, the balance is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places\nand importantly balances cannot be negative", "type": "string" }, @@ -1678,17 +1732,14 @@ "vegaFee": { "properties": { "infrastructure_fee": { - "format": "uint64", "title": "Fee amount paid for maintaining the Vega infrastructure", "type": "string" }, "liquidity_fee": { - "format": "uint64", "title": "Fee amount paid to market makers", "type": "string" }, "maker_fee": { - "format": "uint64", "title": "Fee amount paid to the non-aggressive party of the trade", "type": "string" } @@ -1844,7 +1895,6 @@ "vegaLedgerEntry": { "properties": { "amount": { - "format": "uint64", "title": "An amount to transfer", "type": "string" }, @@ -1955,7 +2005,6 @@ "type": "array" }, "commitment_amount": { - "format": "uint64", "title": "Specified as a unitless number that represents the amount of settlement asset of the market", "type": "string" }, @@ -2081,17 +2130,14 @@ "type": "string" }, "collateral_release_level": { - "format": "uint64", "title": "Collateral release level value", "type": "string" }, "initial_margin": { - "format": "uint64", "title": "Initial margin value", "type": "string" }, "maintenance_margin": { - "format": "uint64", "title": "Maintenance margin value", "type": "string" }, @@ -2104,7 +2150,6 @@ "type": "string" }, "search_level": { - "format": "uint64", "title": "Search level value", "type": "string" }, @@ -2185,7 +2230,6 @@ "type": "string" }, "best_bid_price": { - "format": "uint64", "title": "Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, @@ -2195,7 +2239,6 @@ "type": "string" }, "best_offer_price": { - "format": "uint64", "title": "Lowest price level on an order book for offer orders", "type": "string" }, @@ -2205,7 +2248,6 @@ "type": "string" }, "best_static_bid_price": { - "format": "uint64", "title": "Highest price on the order book for buy orders not including pegged orders", "type": "string" }, @@ -2215,7 +2257,6 @@ "type": "string" }, "best_static_offer_price": { - "format": "uint64", "title": "Lowest price on the order book for sell orders not including pegged orders", "type": "string" }, @@ -2229,7 +2270,6 @@ "title": "When a market auction is extended, this field indicates what caused the extension" }, "indicative_price": { - "format": "uint64", "title": "Indicative price (zero if not in auction)", "type": "string" }, @@ -2246,7 +2286,6 @@ "type": "array" }, "mark_price": { - "format": "uint64", "title": "Mark price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, @@ -2263,7 +2302,6 @@ "type": "string" }, "mid_price": { - "format": "uint64", "title": "Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, @@ -2280,7 +2318,6 @@ "type": "array" }, "static_mid_price": { - "format": "uint64", "title": "Arithmetic average of the best static bid price and best static offer price", "type": "string" }, @@ -2397,7 +2434,6 @@ "type": "array" }, "commitment_amount": { - "format": "uint64", "title": "Specified as a unitless number that represents the amount of settlement asset of the market", "type": "string" }, @@ -2518,7 +2554,6 @@ "description": "Pegged order details, used only if the order represents a pegged order." }, "price": { - "format": "uint64", "title": "Price for the order, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, @@ -2700,7 +2735,6 @@ "vegaPrice": { "properties": { "value": { - "format": "uint64", "title": "Price value, given as an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" } @@ -2710,12 +2744,10 @@ "vegaPriceMonitoringBounds": { "properties": { "max_valid_price": { - "format": "uint64", "title": "Maximum price that isn't currently breaching the specified price monitoring trigger", "type": "string" }, "min_valid_price": { - "format": "uint64", "title": "Minimum price that isn't currently breaching the specified price monitoring trigger", "type": "string" }, @@ -3088,7 +3120,6 @@ "type": "string" }, "price": { - "format": "uint64", "title": "Price for the trade, the price is an integer, for example `123456` is a correctly\nformatted price of `1.23456` assuming market configured to 5 decimal places", "type": "string" }, @@ -3146,7 +3177,6 @@ "title": "The account relating to the transfer" }, "balance": { - "format": "uint64", "title": "The balance relating to the transfer", "type": "string" } @@ -3204,7 +3234,6 @@ "type": "string" }, "total_governance_token_balance": { - "format": "uint64", "title": "Total number of governance token for the party that casted the vote", "type": "string" }, @@ -3233,7 +3262,6 @@ "vegaWithdrawal": { "properties": { "amount": { - "format": "uint64", "title": "The amount to be withdrawn", "type": "string" }, diff --git a/rest/grpc-rest-bindings.yml b/rest/grpc-rest-bindings.yml index ba7387ea..b2cab70d 100644 --- a/rest/grpc-rest-bindings.yml +++ b/rest/grpc-rest-bindings.yml @@ -33,6 +33,8 @@ http: get: '/assets' - selector: vega.coreapi.v1.CoreApiService.ListParties get: '/parties' + - selector: vega.coreapi.v1.CoreApiService.ListPartiesStake + get: '/parties/stake' - selector: vega.coreapi.v1.CoreApiService.ListValidators get: '/validators' - selector: vega.coreapi.v1.CoreApiService.ListProposals From aacf7c7a3ac039c9fefbb14869fcf57a0bcd54fb Mon Sep 17 00:00:00 2001 From: Ashley C Date: Thu, 2 Sep 2021 15:09:29 +0100 Subject: [PATCH 7/8] Python: Ditch wallet txv1 --- grpc/clients/python/vegaapiclient/walletclient.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/grpc/clients/python/vegaapiclient/walletclient.py b/grpc/clients/python/vegaapiclient/walletclient.py index 8f8329c9..c50ea6ce 100644 --- a/grpc/clients/python/vegaapiclient/walletclient.py +++ b/grpc/clients/python/vegaapiclient/walletclient.py @@ -99,21 +99,6 @@ def generatekey( url = "{}/api/v1/keys".format(self.url) return self._httpsession.post(url, headers=self._header(), json=req) - def signtx(self, txn, pub_key, propagate) -> requests.Response: - """ - Sign a transaction. - - `txn` must be a base64-encoded string, e.g. - ``` - txn = base64.b64encode(b"someblob").decode("ascii") - ``` - - pub_key must be a hex-encoded string. - """ - req = {"tx": txn, "pubKey": pub_key, "propagate": propagate} - url = "{}/api/v1/messages".format(self.url) - return self._httpsession.post(url, headers=self._header(), json=req) - def signtxv2(self, txn) -> requests.Response: """Sign a transaction V2.""" # `https://googleapis.dev/python/protobuf/latest/google/protobuf` From 2013e8b8f580e399e5b043403a9b5ec985ea67d8 Mon Sep 17 00:00:00 2001 From: Ashley C Date: Thu, 2 Sep 2021 15:10:38 +0100 Subject: [PATCH 8/8] Set version 0.42.0-pre6 --- README.md | 2 +- grpc/clients/java/pom.xml | 2 +- grpc/clients/js/package-lock.json | 4 ++-- grpc/clients/js/package.json | 2 +- grpc/clients/python/setup.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cfc7ea5f..4cf7b6ac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Vega API -Version: 0.42.0-pre4 +Version: 0.42.0-pre6 This repository contains everything you need for interacting with the Vega APIs. diff --git a/grpc/clients/java/pom.xml b/grpc/clients/java/pom.xml index 5978ba70..5512b24e 100644 --- a/grpc/clients/java/pom.xml +++ b/grpc/clients/java/pom.xml @@ -6,7 +6,7 @@ io.vegaprotocol vega - 0.42.0-pre4 + 0.42.0-pre6 jar src diff --git a/grpc/clients/js/package-lock.json b/grpc/clients/js/package-lock.json index f177741a..7d3feef5 100644 --- a/grpc/clients/js/package-lock.json +++ b/grpc/clients/js/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vegaprotocol/vega-grpc", - "version": "0.42.0-pre4", + "version": "0.42.0-pre6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vegaprotocol/vega-grpc", - "version": "0.42.0-pre4", + "version": "0.42.0-pre6", "license": "MIT", "dependencies": { "@grpc/grpc-js": "^1.3.7", diff --git a/grpc/clients/js/package.json b/grpc/clients/js/package.json index f4db5892..27412c08 100644 --- a/grpc/clients/js/package.json +++ b/grpc/clients/js/package.json @@ -1,6 +1,6 @@ { "name": "@vegaprotocol/vega-grpc", - "version": "0.42.0-pre4", + "version": "0.42.0-pre6", "description": "A gRPC client for Vega Protocol", "main": "index.js", "types": "./index.d.ts", diff --git a/grpc/clients/python/setup.py b/grpc/clients/python/setup.py index 402eddc2..b2987916 100644 --- a/grpc/clients/python/setup.py +++ b/grpc/clients/python/setup.py @@ -3,7 +3,7 @@ with open("README.md", "r") as fh: long_description = fh.read() -VERSION = "0.42.0-pre4" +VERSION = "0.42.0-pre6" setuptools.setup( name="Vega API client",